var u1=e=>{throw TypeError(e)};var my=(e,t,n)=>t.has(e)||u1("Cannot "+n);var C=(e,t,n)=>(my(e,t,"read from private field"),n?n.call(e):t.get(e)),te=(e,t,n)=>t.has(e)?u1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),V=(e,t,n,r)=>(my(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),pe=(e,t,n)=>(my(e,t,"access private method"),n);var rf=(e,t,n,r)=>({set _(a){V(e,t,a,n)},get _(){return C(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const o of i.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var af=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ue(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var I2={exports:{}},Yh={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var zR=Symbol.for("react.transitional.element"),BR=Symbol.for("react.fragment");function U2(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:zR,type:e,key:r,ref:t!==void 0?t:null,props:n}}Yh.Fragment=BR;Yh.jsx=U2;Yh.jsxs=U2;I2.exports=Yh;var d=I2.exports,H2={exports:{}},ce={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var $0=Symbol.for("react.transitional.element"),IR=Symbol.for("react.portal"),UR=Symbol.for("react.fragment"),HR=Symbol.for("react.strict_mode"),qR=Symbol.for("react.profiler"),FR=Symbol.for("react.consumer"),GR=Symbol.for("react.context"),YR=Symbol.for("react.forward_ref"),KR=Symbol.for("react.suspense"),VR=Symbol.for("react.memo"),q2=Symbol.for("react.lazy"),XR=Symbol.for("react.activity"),c1=Symbol.iterator;function QR(e){return e===null||typeof e!="object"?null:(e=c1&&e[c1]||e["@@iterator"],typeof e=="function"?e:null)}var F2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},G2=Object.assign,Y2={};function ss(e,t,n){this.props=e,this.context=t,this.refs=Y2,this.updater=n||F2}ss.prototype.isReactComponent={};ss.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("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")};ss.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function K2(){}K2.prototype=ss.prototype;function D0(e,t,n){this.props=e,this.context=t,this.refs=Y2,this.updater=n||F2}var k0=D0.prototype=new K2;k0.constructor=D0;G2(k0,ss.prototype);k0.isPureReactComponent=!0;var f1=Array.isArray;function Um(){}var Je={H:null,A:null,T:null,S:null},V2=Object.prototype.hasOwnProperty;function L0(e,t,n){var r=n.ref;return{$$typeof:$0,type:e,key:t,ref:r!==void 0?r:null,props:n}}function WR(e,t){return L0(e.type,t,e.props)}function z0(e){return typeof e=="object"&&e!==null&&e.$$typeof===$0}function ZR(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var d1=/\/+/g;function vy(e,t){return typeof e=="object"&&e!==null&&e.key!=null?ZR(""+e.key):t.toString(36)}function JR(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Um,Um):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function $o(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var o=!1;if(e===null)o=!0;else switch(i){case"bigint":case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case $0:case IR:o=!0;break;case q2:return o=e._init,$o(o(e._payload),t,n,r,a)}}if(o)return a=a(e),o=r===""?"."+vy(e,0):r,f1(a)?(n="",o!=null&&(n=o.replace(d1,"$&/")+"/"),$o(a,t,n,"",function(u){return u})):a!=null&&(z0(a)&&(a=WR(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(d1,"$&/")+"/")+o)),t.push(a)),1;o=0;var l=r===""?".":r+":";if(f1(e))for(var s=0;s<e.length;s++)r=e[s],i=l+vy(r,s),o+=$o(r,t,n,i,a);else if(s=QR(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,i=l+vy(r,s++),o+=$o(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return $o(JR(e),t,n,r,a);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 of(e,t,n){if(e==null)return e;var r=[],a=0;return $o(e,r,"","",function(i){return t.call(n,i,a++)}),r}function e$(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var h1=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},t$={map:of,forEach:function(e,t,n){of(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return of(e,function(){t++}),t},toArray:function(e){return of(e,function(t){return t})||[]},only:function(e){if(!z0(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ce.Activity=XR;ce.Children=t$;ce.Component=ss;ce.Fragment=UR;ce.Profiler=qR;ce.PureComponent=D0;ce.StrictMode=HR;ce.Suspense=KR;ce.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Je;ce.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Je.H.useMemoCache(e)}};ce.cache=function(e){return function(){return e.apply(null,arguments)}};ce.cacheSignal=function(){return null};ce.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=G2({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!V2.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var o=Array(i),l=0;l<i;l++)o[l]=arguments[l+2];r.children=o}return L0(e.type,a,r)};ce.createContext=function(e){return e={$$typeof:GR,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:FR,_context:e},e};ce.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)V2.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var o=arguments.length-2;if(o===1)a.children=n;else if(1<o){for(var l=Array(o),s=0;s<o;s++)l[s]=arguments[s+2];a.children=l}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)a[r]===void 0&&(a[r]=o[r]);return L0(e,i,a)};ce.createRef=function(){return{current:null}};ce.forwardRef=function(e){return{$$typeof:YR,render:e}};ce.isValidElement=z0;ce.lazy=function(e){return{$$typeof:q2,_payload:{_status:-1,_result:e},_init:e$}};ce.memo=function(e,t){return{$$typeof:VR,type:e,compare:t===void 0?null:t}};ce.startTransition=function(e){var t=Je.T,n={};Je.T=n;try{var r=e(),a=Je.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Um,h1)}catch(i){h1(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),Je.T=t}};ce.unstable_useCacheRefresh=function(){return Je.H.useCacheRefresh()};ce.use=function(e){return Je.H.use(e)};ce.useActionState=function(e,t,n){return Je.H.useActionState(e,t,n)};ce.useCallback=function(e,t){return Je.H.useCallback(e,t)};ce.useContext=function(e){return Je.H.useContext(e)};ce.useDebugValue=function(){};ce.useDeferredValue=function(e,t){return Je.H.useDeferredValue(e,t)};ce.useEffect=function(e,t){return Je.H.useEffect(e,t)};ce.useEffectEvent=function(e){return Je.H.useEffectEvent(e)};ce.useId=function(){return Je.H.useId()};ce.useImperativeHandle=function(e,t,n){return Je.H.useImperativeHandle(e,t,n)};ce.useInsertionEffect=function(e,t){return Je.H.useInsertionEffect(e,t)};ce.useLayoutEffect=function(e,t){return Je.H.useLayoutEffect(e,t)};ce.useMemo=function(e,t){return Je.H.useMemo(e,t)};ce.useOptimistic=function(e,t){return Je.H.useOptimistic(e,t)};ce.useReducer=function(e,t,n){return Je.H.useReducer(e,t,n)};ce.useRef=function(e){return Je.H.useRef(e)};ce.useState=function(e){return Je.H.useState(e)};ce.useSyncExternalStore=function(e,t,n){return Je.H.useSyncExternalStore(e,t,n)};ce.useTransition=function(){return Je.H.useTransition()};ce.version="19.2.7";H2.exports=ce;var j=H2.exports;const D=Ue(j);var X2={exports:{}},Kh={},Q2={exports:{}},W2={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and 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($,z){var B=$.length;$.push(z);e:for(;0<B;){var q=B-1>>>1,F=$[q];if(0<a(F,z))$[q]=z,$[B]=F,B=q;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var z=$[0],B=$.pop();if(B!==z){$[0]=B;e:for(var q=0,F=$.length,Q=F>>>1;q<Q;){var Y=2*(q+1)-1,ee=$[Y],ye=Y+1,ke=$[ye];if(0>a(ee,B))ye<F&&0>a(ke,ee)?($[q]=ke,$[ye]=B,q=ye):($[q]=ee,$[Y]=B,q=Y);else if(ye<F&&0>a(ke,B))$[q]=ke,$[ye]=B,q=ye;else break e}}return z}function a($,z){var B=$.sortIndex-z.sortIndex;return B!==0?B:$.id-z.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var s=[],u=[],f=1,c=null,h=3,p=!1,b=!1,v=!1,g=!1,y=typeof setTimeout=="function"?setTimeout:null,m=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function S($){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=$)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function w($){if(v=!1,S($),!b)if(n(s)!==null)b=!0,O||(O=!0,E());else{var z=n(u);z!==null&&P(w,z.startTime-$)}}var O=!1,A=-1,_=5,T=-1;function M(){return g?!0:!(e.unstable_now()-T<_)}function L(){if(g=!1,O){var $=e.unstable_now();T=$;var z=!0;try{e:{b=!1,v&&(v=!1,m(A),A=-1),p=!0;var B=h;try{t:{for(S($),c=n(s);c!==null&&!(c.expirationTime>$&&M());){var q=c.callback;if(typeof q=="function"){c.callback=null,h=c.priorityLevel;var F=q(c.expirationTime<=$);if($=e.unstable_now(),typeof F=="function"){c.callback=F,S($),z=!0;break t}c===n(s)&&r(s),S($)}else r(s);c=n(s)}if(c!==null)z=!0;else{var Q=n(u);Q!==null&&P(w,Q.startTime-$),z=!1}}break e}finally{c=null,h=B,p=!1}z=void 0}}finally{z?E():O=!1}}}var E;if(typeof x=="function")E=function(){x(L)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,k=N.port2;N.port1.onmessage=L,E=function(){k.postMessage(null)}}else E=function(){y(L,0)};function P($,z){A=y(function(){$(e.unstable_now())},z)}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($){$.callback=null},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function($){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var B=h;h=z;try{return $()}finally{h=B}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function($,z){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var B=h;h=$;try{return z()}finally{h=B}},e.unstable_scheduleCallback=function($,z,B){var q=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?q+B:q):B=q,$){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=B+F,$={id:f++,callback:z,priorityLevel:$,startTime:B,expirationTime:F,sortIndex:-1},B>q?($.sortIndex=B,t(u,$),n(s)===null&&$===n(u)&&(v?(m(A),A=-1):v=!0,P(w,B-q))):($.sortIndex=F,t(s,$),b||p||(b=!0,O||(O=!0,E()))),$},e.unstable_shouldYield=M,e.unstable_wrapCallback=function($){var z=h;return function(){var B=h;h=z;try{return $.apply(this,arguments)}finally{h=B}}}})(W2);Q2.exports=W2;var n$=Q2.exports,Z2={exports:{}},tn={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var r$=j;function J2(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function wa(){}var Wt={d:{f:wa,r:function(){throw Error(J2(522))},D:wa,C:wa,L:wa,m:wa,X:wa,S:wa,M:wa},p:0,findDOMNode:null},a$=Symbol.for("react.portal");function i$(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a$,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var lu=r$.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Vh(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}tn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Wt;tn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(J2(299));return i$(e,t,null,n)};tn.flushSync=function(e){var t=lu.T,n=Wt.p;try{if(lu.T=null,Wt.p=2,e)return e()}finally{lu.T=t,Wt.p=n,Wt.d.f()}};tn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Wt.d.C(e,t))};tn.prefetchDNS=function(e){typeof e=="string"&&Wt.d.D(e)};tn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Vh(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Wt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&Wt.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};tn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Vh(t.as,t.crossOrigin);Wt.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Wt.d.M(e)};tn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Vh(n,t.crossOrigin);Wt.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};tn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Vh(t.as,t.crossOrigin);Wt.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Wt.d.m(e)};tn.requestFormReset=function(e){Wt.d.r(e)};tn.unstable_batchedUpdates=function(e,t){return e(t)};tn.useFormState=function(e,t,n){return lu.H.useFormState(e,t,n)};tn.useFormStatus=function(){return lu.H.useHostTransitionStatus()};tn.version="19.2.7";function eE(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(eE)}catch(e){console.error(e)}}eE(),Z2.exports=tn;var o$=Z2.exports;/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Ot=n$,tE=j,l$=o$;function U(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function nE(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Pc(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function rE(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 aE(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function p1(e){if(Pc(e)!==e)throw Error(U(188))}function s$(e){var t=e.alternate;if(!t){if(t=Pc(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return p1(a),e;if(i===r)return p1(a),t;i=i.sibling}throw Error(U(188))}if(n.return!==r.return)n=a,r=i;else{for(var o=!1,l=a.child;l;){if(l===n){o=!0,n=a,r=i;break}if(l===r){o=!0,r=a,n=i;break}l=l.sibling}if(!o){for(l=i.child;l;){if(l===n){o=!0,n=i,r=a;break}if(l===r){o=!0,r=i,n=a;break}l=l.sibling}if(!o)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function iE(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=iE(e),t!==null)return t;e=e.sibling}return null}var et=Object.assign,u$=Symbol.for("react.element"),lf=Symbol.for("react.transitional.element"),eu=Symbol.for("react.portal"),zo=Symbol.for("react.fragment"),oE=Symbol.for("react.strict_mode"),Hm=Symbol.for("react.profiler"),lE=Symbol.for("react.consumer"),Xr=Symbol.for("react.context"),B0=Symbol.for("react.forward_ref"),qm=Symbol.for("react.suspense"),Fm=Symbol.for("react.suspense_list"),I0=Symbol.for("react.memo"),ja=Symbol.for("react.lazy"),Gm=Symbol.for("react.activity"),c$=Symbol.for("react.memo_cache_sentinel"),y1=Symbol.iterator;function Ds(e){return e===null||typeof e!="object"?null:(e=y1&&e[y1]||e["@@iterator"],typeof e=="function"?e:null)}var f$=Symbol.for("react.client.reference");function Ym(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===f$?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case zo:return"Fragment";case Hm:return"Profiler";case oE:return"StrictMode";case qm:return"Suspense";case Fm:return"SuspenseList";case Gm:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case eu:return"Portal";case Xr:return e.displayName||"Context";case lE:return(e._context.displayName||"Context")+".Consumer";case B0:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case I0:return t=e.displayName||null,t!==null?t:Ym(e.type)||"Memo";case ja:t=e._payload,e=e._init;try{return Ym(e(t))}catch{}}return null}var tu=Array.isArray,ie=tE.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Te=l$.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Fi={pending:!1,data:null,method:null,action:null},Km=[],Bo=-1;function Cr(e){return{current:e}}function Mt(e){0>Bo||(e.current=Km[Bo],Km[Bo]=null,Bo--)}function Ye(e,t){Bo++,Km[Bo]=e.current,e.current=t}var Ar=Cr(null),_u=Cr(null),Ka=Cr(null),ud=Cr(null);function cd(e,t){switch(Ye(Ka,t),Ye(_u,e),Ye(Ar,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?SS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=SS(t),e=_T(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Mt(Ar),Ye(Ar,e)}function Al(){Mt(Ar),Mt(_u),Mt(Ka)}function Vm(e){e.memoizedState!==null&&Ye(ud,e);var t=Ar.current,n=_T(t,e.type);t!==n&&(Ye(_u,e),Ye(Ar,n))}function fd(e){_u.current===e&&(Mt(Ar),Mt(_u)),ud.current===e&&(Mt(ud),zu._currentValue=Fi)}var gy,m1;function Si(e){if(gy===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);gy=t&&t[1]||"",m1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+gy+e+m1}var by=!1;function xy(e,t){if(!e||by)return"";by=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var c=function(){throw Error()};if(Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(p){var h=p}Reflect.construct(e,[],c)}else{try{c.call()}catch(p){h=p}e.call(c.prototype)}}else{try{throw Error()}catch(p){h=p}(c=e())&&typeof c.catch=="function"&&c.catch(function(){})}}catch(p){if(p&&h&&typeof p.stack=="string")return[p.stack,h.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),o=i[0],l=i[1];if(o&&l){var s=o.split(`
`),u=l.split(`
`);for(a=r=0;r<s.length&&!s[r].includes("DetermineComponentFrameRoot");)r++;for(;a<u.length&&!u[a].includes("DetermineComponentFrameRoot");)a++;if(r===s.length||a===u.length)for(r=s.length-1,a=u.length-1;1<=r&&0<=a&&s[r]!==u[a];)a--;for(;1<=r&&0<=a;r--,a--)if(s[r]!==u[a]){if(r!==1||a!==1)do if(r--,a--,0>a||s[r]!==u[a]){var f=`
`+s[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{by=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Si(n):""}function d$(e,t){switch(e.tag){case 26:case 27:case 5:return Si(e.type);case 16:return Si("Lazy");case 13:return e.child!==t&&t!==null?Si("Suspense Fallback"):Si("Suspense");case 19:return Si("SuspenseList");case 0:case 15:return xy(e.type,!1);case 11:return xy(e.type.render,!1);case 1:return xy(e.type,!0);case 31:return Si("Activity");default:return""}}function v1(e){try{var t="",n=null;do t+=d$(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var Xm=Object.prototype.hasOwnProperty,U0=Ot.unstable_scheduleCallback,Sy=Ot.unstable_cancelCallback,h$=Ot.unstable_shouldYield,p$=Ot.unstable_requestPaint,En=Ot.unstable_now,y$=Ot.unstable_getCurrentPriorityLevel,sE=Ot.unstable_ImmediatePriority,uE=Ot.unstable_UserBlockingPriority,dd=Ot.unstable_NormalPriority,m$=Ot.unstable_LowPriority,cE=Ot.unstable_IdlePriority,v$=Ot.log,g$=Ot.unstable_setDisableYieldValue,Rc=null,_n=null;function Ua(e){if(typeof v$=="function"&&g$(e),_n&&typeof _n.setStrictMode=="function")try{_n.setStrictMode(Rc,e)}catch{}}var Tn=Math.clz32?Math.clz32:S$,b$=Math.log,x$=Math.LN2;function S$(e){return e>>>=0,e===0?32:31-(b$(e)/x$|0)|0}var sf=256,uf=262144,cf=4194304;function wi(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Xh(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var l=r&134217727;return l!==0?(r=l&~i,r!==0?a=wi(r):(o&=l,o!==0?a=wi(o):n||(n=l&~e,n!==0&&(a=wi(n))))):(l=r&~i,l!==0?a=wi(l):o!==0?a=wi(o):n||(n=r&~e,n!==0&&(a=wi(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function $c(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function w$(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function fE(){var e=cf;return cf<<=1,!(cf&62914560)&&(cf=4194304),e}function wy(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Dc(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function O$(e,t,n,r,a,i){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var l=e.entanglements,s=e.expirationTimes,u=e.hiddenUpdates;for(n=o&~n;0<n;){var f=31-Tn(n),c=1<<f;l[f]=0,s[f]=-1;var h=u[f];if(h!==null)for(u[f]=null,f=0;f<h.length;f++){var p=h[f];p!==null&&(p.lane&=-536870913)}n&=~c}r!==0&&dE(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function dE(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Tn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function hE(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Tn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function pE(e,t){var n=t&-t;return n=n&42?1:H0(n),n&(e.suspendedLanes|t)?0:n}function H0(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function q0(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function yE(){var e=Te.p;return e!==0?e:(e=window.event,e===void 0?32:zT(e.type))}function g1(e,t){var n=Te.p;try{return Te.p=e,t()}finally{Te.p=n}}var ui=Math.random().toString(36).slice(2),Lt="__reactFiber$"+ui,hn="__reactProps$"+ui,us="__reactContainer$"+ui,Qm="__reactEvents$"+ui,j$="__reactListeners$"+ui,A$="__reactHandles$"+ui,b1="__reactResources$"+ui,kc="__reactMarker$"+ui;function F0(e){delete e[Lt],delete e[hn],delete e[Qm],delete e[j$],delete e[A$]}function Io(e){var t=e[Lt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[us]||n[Lt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ES(e);e!==null;){if(n=e[Lt])return n;e=ES(e)}return t}e=n,n=e.parentNode}return null}function cs(e){if(e=e[Lt]||e[us]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function tl(e){var t=e[b1];return t||(t=e[b1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[kc]=!0}var mE=new Set,vE={};function fo(e,t){El(e,t),El(e+"Capture",t)}function El(e,t){for(vE[e]=t,e=0;e<t.length;e++)mE.add(t[e])}var E$=RegExp("^[: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]*$"),x1={},S1={};function _$(e){return Xm.call(S1,e)?!0:Xm.call(x1,e)?!1:E$.test(e)?S1[e]=!0:(x1[e]=!0,!1)}function Bf(e,t,n){if(_$(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ff(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function Dr(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function Un(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function gE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function T$(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(o){n=""+o,i.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 Wm(e){if(!e._valueTracker){var t=gE(e)?"checked":"value";e._valueTracker=T$(e,t,""+e[t])}}function bE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=gE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function hd(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}}var C$=/[\n"\\]/g;function Fn(e){return e.replace(C$,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zm(e,t,n,r,a,i,o,l){e.name="",o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.type=o:e.removeAttribute("type"),t!=null?o==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Un(t)):e.value!==""+Un(t)&&(e.value=""+Un(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Jm(e,o,Un(t)):n!=null?Jm(e,o,Un(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"?e.name=""+Un(l):e.removeAttribute("name")}function xE(e,t,n,r,a,i,o,l){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Wm(e);return}n=n!=null?""+Un(n):"",t=t!=null?""+Un(t):n,l||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=l?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"&&(e.name=o),Wm(e)}function Jm(e,t,n){t==="number"&&hd(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function nl(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Un(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function SE(e,t,n){if(t!=null&&(t=""+Un(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Un(n):""}function wE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(U(92));if(tu(r)){if(1<r.length)throw Error(U(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=Un(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Wm(e)}function _l(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var N$=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function w1(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||N$.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function OE(e,t,n){if(t!=null&&typeof t!="object")throw Error(U(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&w1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&w1(e,i,t[i])}function G0(e){if(e.indexOf("-")===-1)return!1;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 M$=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),P$=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function If(e){return P$.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Qr(){}var ev=null;function Y0(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Uo=null,rl=null;function O1(e){var t=cs(e);if(t&&(e=t.stateNode)){var n=e[hn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Zm(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+Fn(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[hn]||null;if(!a)throw Error(U(90));Zm(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&bE(r)}break e;case"textarea":SE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&nl(e,!!n.multiple,t,!1)}}}var Oy=!1;function jE(e,t,n){if(Oy)return e(t,n);Oy=!0;try{var r=e(t);return r}finally{if(Oy=!1,(Uo!==null||rl!==null)&&(lp(),Uo&&(t=Uo,e=rl,rl=Uo=null,O1(t),e)))for(t=0;t<e.length;t++)O1(e[t])}}function Tu(e,t){var n=e.stateNode;if(n===null)return null;var r=n[hn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(U(231,t,typeof n));return n}var la=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tv=!1;if(la)try{var ks={};Object.defineProperty(ks,"passive",{get:function(){tv=!0}}),window.addEventListener("test",ks,ks),window.removeEventListener("test",ks,ks)}catch{tv=!1}var Ha=null,K0=null,Uf=null;function AE(){if(Uf)return Uf;var e,t=K0,n=t.length,r,a="value"in Ha?Ha.value:Ha.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===a[i-r];r++);return Uf=a.slice(e,1<r?1-r:void 0)}function Hf(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 df(){return!0}function j1(){return!1}function pn(e){function t(n,r,a,i,o){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(i):i[l]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?df:j1,this.isPropagationStopped=j1,this}return et(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=df)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=df)},persist:function(){},isPersistent:df}),t}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Qh=pn(ho),Lc=et({},ho,{view:0,detail:0}),R$=pn(Lc),jy,Ay,Ls,Wh=et({},Lc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:V0,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!==Ls&&(Ls&&e.type==="mousemove"?(jy=e.screenX-Ls.screenX,Ay=e.screenY-Ls.screenY):Ay=jy=0,Ls=e),jy)},movementY:function(e){return"movementY"in e?e.movementY:Ay}}),A1=pn(Wh),$$=et({},Wh,{dataTransfer:0}),D$=pn($$),k$=et({},Lc,{relatedTarget:0}),Ey=pn(k$),L$=et({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),z$=pn(L$),B$=et({},ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),I$=pn(B$),U$=et({},ho,{data:0}),E1=pn(U$),H$={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},q$={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"},F$={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function G$(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=F$[e])?!!t[e]:!1}function V0(){return G$}var Y$=et({},Lc,{key:function(e){if(e.key){var t=H$[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Hf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?q$[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:V0,charCode:function(e){return e.type==="keypress"?Hf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Hf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),K$=pn(Y$),V$=et({},Wh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),_1=pn(V$),X$=et({},Lc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:V0}),Q$=pn(X$),W$=et({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),Z$=pn(W$),J$=et({},Wh,{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}),e3=pn(J$),t3=et({},ho,{newState:0,oldState:0}),n3=pn(t3),r3=[9,13,27,32],X0=la&&"CompositionEvent"in window,su=null;la&&"documentMode"in document&&(su=document.documentMode);var a3=la&&"TextEvent"in window&&!su,EE=la&&(!X0||su&&8<su&&11>=su),T1=" ",C1=!1;function _E(e,t){switch(e){case"keyup":return r3.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function TE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Ho=!1;function i3(e,t){switch(e){case"compositionend":return TE(t);case"keypress":return t.which!==32?null:(C1=!0,T1);case"textInput":return e=t.data,e===T1&&C1?null:e;default:return null}}function o3(e,t){if(Ho)return e==="compositionend"||!X0&&_E(e,t)?(e=AE(),Uf=K0=Ha=null,Ho=!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 EE&&t.locale!=="ko"?null:t.data;default:return null}}var l3={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 N1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!l3[e.type]:t==="textarea"}function CE(e,t,n,r){Uo?rl?rl.push(r):rl=[r]:Uo=r,t=Md(t,"onChange"),0<t.length&&(n=new Qh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var uu=null,Cu=null;function s3(e){jT(e,0)}function Zh(e){var t=nu(e);if(bE(t))return e}function M1(e,t){if(e==="change")return t}var NE=!1;if(la){var _y;if(la){var Ty="oninput"in document;if(!Ty){var P1=document.createElement("div");P1.setAttribute("oninput","return;"),Ty=typeof P1.oninput=="function"}_y=Ty}else _y=!1;NE=_y&&(!document.documentMode||9<document.documentMode)}function R1(){uu&&(uu.detachEvent("onpropertychange",ME),Cu=uu=null)}function ME(e){if(e.propertyName==="value"&&Zh(Cu)){var t=[];CE(t,Cu,e,Y0(e)),jE(s3,t)}}function u3(e,t,n){e==="focusin"?(R1(),uu=t,Cu=n,uu.attachEvent("onpropertychange",ME)):e==="focusout"&&R1()}function c3(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Zh(Cu)}function f3(e,t){if(e==="click")return Zh(t)}function d3(e,t){if(e==="input"||e==="change")return Zh(t)}function h3(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mn=typeof Object.is=="function"?Object.is:h3;function Nu(e,t){if(Mn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!Xm.call(t,a)||!Mn(e[a],t[a]))return!1}return!0}function $1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function D1(e,t){var n=$1(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=$1(n)}}function PE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?PE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function RE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=hd(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=hd(e.document)}return t}function Q0(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")}var p3=la&&"documentMode"in document&&11>=document.documentMode,qo=null,nv=null,cu=null,rv=!1;function k1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;rv||qo==null||qo!==hd(r)||(r=qo,"selectionStart"in r&&Q0(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),cu&&Nu(cu,r)||(cu=r,r=Md(nv,"onSelect"),0<r.length&&(t=new Qh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=qo)))}function vi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Fo={animationend:vi("Animation","AnimationEnd"),animationiteration:vi("Animation","AnimationIteration"),animationstart:vi("Animation","AnimationStart"),transitionrun:vi("Transition","TransitionRun"),transitionstart:vi("Transition","TransitionStart"),transitioncancel:vi("Transition","TransitionCancel"),transitionend:vi("Transition","TransitionEnd")},Cy={},$E={};la&&($E=document.createElement("div").style,"AnimationEvent"in window||(delete Fo.animationend.animation,delete Fo.animationiteration.animation,delete Fo.animationstart.animation),"TransitionEvent"in window||delete Fo.transitionend.transition);function po(e){if(Cy[e])return Cy[e];if(!Fo[e])return e;var t=Fo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $E)return Cy[e]=t[n];return e}var DE=po("animationend"),kE=po("animationiteration"),LE=po("animationstart"),y3=po("transitionrun"),m3=po("transitionstart"),v3=po("transitioncancel"),zE=po("transitionend"),BE=new Map,av="abort auxClick beforeToggle 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(" ");av.push("scrollEnd");function hr(e,t){BE.set(e,t),fo(t,[e])}var pd=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},In=[],Go=0,W0=0;function Jh(){for(var e=Go,t=W0=Go=0;t<e;){var n=In[t];In[t++]=null;var r=In[t];In[t++]=null;var a=In[t];In[t++]=null;var i=In[t];if(In[t++]=null,r!==null&&a!==null){var o=r.pending;o===null?a.next=a:(a.next=o.next,o.next=a),r.pending=a}i!==0&&IE(n,a,i)}}function ep(e,t,n,r){In[Go++]=e,In[Go++]=t,In[Go++]=n,In[Go++]=r,W0|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Z0(e,t,n,r){return ep(e,t,n,r),yd(e)}function yo(e,t){return ep(e,null,null,t),yd(e)}function IE(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,r=i.alternate,r!==null&&(r.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Tn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function yd(e){if(50<bu)throw bu=0,Av=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yo={};function g3(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function On(e,t,n,r){return new g3(e,t,n,r)}function J0(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ea(e,t){var n=e.alternate;return n===null?(n=On(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function UE(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function qf(e,t,n,r,a,i){var o=0;if(r=e,typeof e=="function")J0(e)&&(o=1);else if(typeof e=="string")o=OD(e,n,Ar.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Gm:return e=On(31,n,t,a),e.elementType=Gm,e.lanes=i,e;case zo:return Gi(n.children,a,i,t);case oE:o=8,a|=24;break;case Hm:return e=On(12,n,t,a|2),e.elementType=Hm,e.lanes=i,e;case qm:return e=On(13,n,t,a),e.elementType=qm,e.lanes=i,e;case Fm:return e=On(19,n,t,a),e.elementType=Fm,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Xr:o=10;break e;case lE:o=9;break e;case B0:o=11;break e;case I0:o=14;break e;case ja:o=16,r=null;break e}o=29,n=Error(U(130,e===null?"null":typeof e,"")),r=null}return t=On(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Gi(e,t,n,r){return e=On(7,e,r,t),e.lanes=n,e}function Ny(e,t,n){return e=On(6,e,null,t),e.lanes=n,e}function HE(e){var t=On(18,null,null,0);return t.stateNode=e,t}function My(e,t,n){return t=On(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var L1=new WeakMap;function Gn(e,t){if(typeof e=="object"&&e!==null){var n=L1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:v1(t)},L1.set(e,t),t)}return{value:e,source:t,stack:v1(t)}}var Ko=[],Vo=0,md=null,Mu=0,Hn=[],qn=0,ii=null,Sr=1,wr="";function qr(e,t){Ko[Vo++]=Mu,Ko[Vo++]=md,md=e,Mu=t}function qE(e,t,n){Hn[qn++]=Sr,Hn[qn++]=wr,Hn[qn++]=ii,ii=e;var r=Sr;e=wr;var a=32-Tn(r)-1;r&=~(1<<a),n+=1;var i=32-Tn(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Sr=1<<32-Tn(t)+a|n<<a|r,wr=i+e}else Sr=1<<i|n<<a|r,wr=e}function eb(e){e.return!==null&&(qr(e,1),qE(e,1,0))}function tb(e){for(;e===md;)md=Ko[--Vo],Ko[Vo]=null,Mu=Ko[--Vo],Ko[Vo]=null;for(;e===ii;)ii=Hn[--qn],Hn[qn]=null,wr=Hn[--qn],Hn[qn]=null,Sr=Hn[--qn],Hn[qn]=null}function FE(e,t){Hn[qn++]=Sr,Hn[qn++]=wr,Hn[qn++]=ii,Sr=t.id,wr=t.overflow,ii=e}var zt=null,Ze=null,Oe=!1,Va=null,Yn=!1,iv=Error(U(519));function oi(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Pu(Gn(t,e)),iv}function z1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Lt]=e,t[hn]=r,n){case"dialog":be("cancel",t),be("close",t);break;case"iframe":case"object":case"embed":be("load",t);break;case"video":case"audio":for(n=0;n<ku.length;n++)be(ku[n],t);break;case"source":be("error",t);break;case"img":case"image":case"link":be("error",t),be("load",t);break;case"details":be("toggle",t);break;case"input":be("invalid",t),xE(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":be("invalid",t);break;case"textarea":be("invalid",t),wE(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||ET(t.textContent,n)?(r.popover!=null&&(be("beforetoggle",t),be("toggle",t)),r.onScroll!=null&&be("scroll",t),r.onScrollEnd!=null&&be("scrollend",t),r.onClick!=null&&(t.onclick=Qr),t=!0):t=!1,t||oi(e,!0)}function B1(e){for(zt=e.return;zt;)switch(zt.tag){case 5:case 31:case 13:Yn=!1;return;case 27:case 3:Yn=!0;return;default:zt=zt.return}}function To(e){if(e!==zt)return!1;if(!Oe)return B1(e),Oe=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Nv(e.type,e.memoizedProps)),n=!n),n&&Ze&&oi(e),B1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Ze=AS(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));Ze=AS(e)}else t===27?(t=Ze,ci(e.type)?(e=$v,$v=null,Ze=e):Ze=t):Ze=zt?Qn(e.stateNode.nextSibling):null;return!0}function Zi(){Ze=zt=null,Oe=!1}function Py(){var e=Va;return e!==null&&(un===null?un=e:un.push.apply(un,e),Va=null),e}function Pu(e){Va===null?Va=[e]:Va.push(e)}var ov=Cr(null),mo=null,Wr=null;function Ta(e,t,n){Ye(ov,t._currentValue),t._currentValue=n}function ta(e){e._currentValue=ov.current,Mt(ov)}function lv(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function sv(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var o=a.child;i=i.firstContext;e:for(;i!==null;){var l=i;i=a;for(var s=0;s<t.length;s++)if(l.context===t[s]){i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),lv(i.return,n,e),r||(o=null);break e}i=l.next}}else if(a.tag===18){if(o=a.return,o===null)throw Error(U(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),lv(o,n,e),o=null}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}}function fs(e,t,n,r){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var o=a.alternate;if(o===null)throw Error(U(387));if(o=o.memoizedProps,o!==null){var l=a.type;Mn(a.pendingProps.value,o.value)||(e!==null?e.push(l):e=[l])}}else if(a===ud.current){if(o=a.alternate,o===null)throw Error(U(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(zu):e=[zu])}a=a.return}e!==null&&sv(t,e,n,r),t.flags|=262144}function vd(e){for(e=e.firstContext;e!==null;){if(!Mn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ji(e){mo=e,Wr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function It(e){return GE(mo,e)}function hf(e,t){return mo===null&&Ji(e),GE(e,t)}function GE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wr===null){if(e===null)throw Error(U(308));Wr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wr=Wr.next=t;return n}var b3=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},x3=Ot.unstable_scheduleCallback,S3=Ot.unstable_NormalPriority,pt={$$typeof:Xr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function nb(){return{controller:new b3,data:new Map,refCount:0}}function zc(e){e.refCount--,e.refCount===0&&x3(S3,function(){e.controller.abort()})}var fu=null,uv=0,Tl=0,al=null;function w3(e,t){if(fu===null){var n=fu=[];uv=0,Tl=_b(),al={status:"pending",value:void 0,then:function(r){n.push(r)}}}return uv++,t.then(I1,I1),t}function I1(){if(--uv===0&&fu!==null){al!==null&&(al.status="fulfilled");var e=fu;fu=null,Tl=0,al=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function O3(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var U1=ie.S;ie.S=function(e,t){iT=En(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&w3(e,t),U1!==null&&U1(e,t)};var Yi=Cr(null);function rb(){var e=Yi.current;return e!==null?e:qe.pooledCache}function Ff(e,t){t===null?Ye(Yi,Yi.current):Ye(Yi,t.pool)}function YE(){var e=rb();return e===null?null:{parent:pt._currentValue,pool:e}}var ds=Error(U(460)),ab=Error(U(474)),tp=Error(U(542)),gd={then:function(){}};function H1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function KE(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Qr,Qr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,F1(e),e;default:if(typeof t.status=="string")t.then(Qr,Qr);else{if(e=qe,e!==null&&100<e.shellSuspendCounter)throw Error(U(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,F1(e),e}throw Ki=t,ds}}function Oi(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ki=n,ds):n}}var Ki=null;function q1(){if(Ki===null)throw Error(U(459));var e=Ki;return Ki=null,e}function F1(e){if(e===ds||e===tp)throw Error(U(483))}var il=null,Ru=0;function pf(e){var t=Ru;return Ru+=1,il===null&&(il=[]),KE(il,e,t)}function zs(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function yf(e,t){throw t.$$typeof===u$?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function VE(e){function t(y,m){if(e){var x=y.deletions;x===null?(y.deletions=[m],y.flags|=16):x.push(m)}}function n(y,m){if(!e)return null;for(;m!==null;)t(y,m),m=m.sibling;return null}function r(y){for(var m=new Map;y!==null;)y.key!==null?m.set(y.key,y):m.set(y.index,y),y=y.sibling;return m}function a(y,m){return y=ea(y,m),y.index=0,y.sibling=null,y}function i(y,m,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<m?(y.flags|=67108866,m):x):(y.flags|=67108866,m)):(y.flags|=1048576,m)}function o(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function l(y,m,x,S){return m===null||m.tag!==6?(m=Ny(x,y.mode,S),m.return=y,m):(m=a(m,x),m.return=y,m)}function s(y,m,x,S){var w=x.type;return w===zo?f(y,m,x.props.children,S,x.key):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ja&&Oi(w)===m.type)?(m=a(m,x.props),zs(m,x),m.return=y,m):(m=qf(x.type,x.key,x.props,null,y.mode,S),zs(m,x),m.return=y,m)}function u(y,m,x,S){return m===null||m.tag!==4||m.stateNode.containerInfo!==x.containerInfo||m.stateNode.implementation!==x.implementation?(m=My(x,y.mode,S),m.return=y,m):(m=a(m,x.children||[]),m.return=y,m)}function f(y,m,x,S,w){return m===null||m.tag!==7?(m=Gi(x,y.mode,S,w),m.return=y,m):(m=a(m,x),m.return=y,m)}function c(y,m,x){if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return m=Ny(""+m,y.mode,x),m.return=y,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case lf:return x=qf(m.type,m.key,m.props,null,y.mode,x),zs(x,m),x.return=y,x;case eu:return m=My(m,y.mode,x),m.return=y,m;case ja:return m=Oi(m),c(y,m,x)}if(tu(m)||Ds(m))return m=Gi(m,y.mode,x,null),m.return=y,m;if(typeof m.then=="function")return c(y,pf(m),x);if(m.$$typeof===Xr)return c(y,hf(y,m),x);yf(y,m)}return null}function h(y,m,x,S){var w=m!==null?m.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return w!==null?null:l(y,m,""+x,S);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case lf:return x.key===w?s(y,m,x,S):null;case eu:return x.key===w?u(y,m,x,S):null;case ja:return x=Oi(x),h(y,m,x,S)}if(tu(x)||Ds(x))return w!==null?null:f(y,m,x,S,null);if(typeof x.then=="function")return h(y,m,pf(x),S);if(x.$$typeof===Xr)return h(y,m,hf(y,x),S);yf(y,x)}return null}function p(y,m,x,S,w){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return y=y.get(x)||null,l(m,y,""+S,w);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case lf:return y=y.get(S.key===null?x:S.key)||null,s(m,y,S,w);case eu:return y=y.get(S.key===null?x:S.key)||null,u(m,y,S,w);case ja:return S=Oi(S),p(y,m,x,S,w)}if(tu(S)||Ds(S))return y=y.get(x)||null,f(m,y,S,w,null);if(typeof S.then=="function")return p(y,m,x,pf(S),w);if(S.$$typeof===Xr)return p(y,m,x,hf(m,S),w);yf(m,S)}return null}function b(y,m,x,S){for(var w=null,O=null,A=m,_=m=0,T=null;A!==null&&_<x.length;_++){A.index>_?(T=A,A=null):T=A.sibling;var M=h(y,A,x[_],S);if(M===null){A===null&&(A=T);break}e&&A&&M.alternate===null&&t(y,A),m=i(M,m,_),O===null?w=M:O.sibling=M,O=M,A=T}if(_===x.length)return n(y,A),Oe&&qr(y,_),w;if(A===null){for(;_<x.length;_++)A=c(y,x[_],S),A!==null&&(m=i(A,m,_),O===null?w=A:O.sibling=A,O=A);return Oe&&qr(y,_),w}for(A=r(A);_<x.length;_++)T=p(A,y,_,x[_],S),T!==null&&(e&&T.alternate!==null&&A.delete(T.key===null?_:T.key),m=i(T,m,_),O===null?w=T:O.sibling=T,O=T);return e&&A.forEach(function(L){return t(y,L)}),Oe&&qr(y,_),w}function v(y,m,x,S){if(x==null)throw Error(U(151));for(var w=null,O=null,A=m,_=m=0,T=null,M=x.next();A!==null&&!M.done;_++,M=x.next()){A.index>_?(T=A,A=null):T=A.sibling;var L=h(y,A,M.value,S);if(L===null){A===null&&(A=T);break}e&&A&&L.alternate===null&&t(y,A),m=i(L,m,_),O===null?w=L:O.sibling=L,O=L,A=T}if(M.done)return n(y,A),Oe&&qr(y,_),w;if(A===null){for(;!M.done;_++,M=x.next())M=c(y,M.value,S),M!==null&&(m=i(M,m,_),O===null?w=M:O.sibling=M,O=M);return Oe&&qr(y,_),w}for(A=r(A);!M.done;_++,M=x.next())M=p(A,y,_,M.value,S),M!==null&&(e&&M.alternate!==null&&A.delete(M.key===null?_:M.key),m=i(M,m,_),O===null?w=M:O.sibling=M,O=M);return e&&A.forEach(function(E){return t(y,E)}),Oe&&qr(y,_),w}function g(y,m,x,S){if(typeof x=="object"&&x!==null&&x.type===zo&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case lf:e:{for(var w=x.key;m!==null;){if(m.key===w){if(w=x.type,w===zo){if(m.tag===7){n(y,m.sibling),S=a(m,x.props.children),S.return=y,y=S;break e}}else if(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ja&&Oi(w)===m.type){n(y,m.sibling),S=a(m,x.props),zs(S,x),S.return=y,y=S;break e}n(y,m);break}else t(y,m);m=m.sibling}x.type===zo?(S=Gi(x.props.children,y.mode,S,x.key),S.return=y,y=S):(S=qf(x.type,x.key,x.props,null,y.mode,S),zs(S,x),S.return=y,y=S)}return o(y);case eu:e:{for(w=x.key;m!==null;){if(m.key===w)if(m.tag===4&&m.stateNode.containerInfo===x.containerInfo&&m.stateNode.implementation===x.implementation){n(y,m.sibling),S=a(m,x.children||[]),S.return=y,y=S;break e}else{n(y,m);break}else t(y,m);m=m.sibling}S=My(x,y.mode,S),S.return=y,y=S}return o(y);case ja:return x=Oi(x),g(y,m,x,S)}if(tu(x))return b(y,m,x,S);if(Ds(x)){if(w=Ds(x),typeof w!="function")throw Error(U(150));return x=w.call(x),v(y,m,x,S)}if(typeof x.then=="function")return g(y,m,pf(x),S);if(x.$$typeof===Xr)return g(y,m,hf(y,x),S);yf(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,m!==null&&m.tag===6?(n(y,m.sibling),S=a(m,x),S.return=y,y=S):(n(y,m),S=Ny(x,y.mode,S),S.return=y,y=S),o(y)):n(y,m)}return function(y,m,x,S){try{Ru=0;var w=g(y,m,x,S);return il=null,w}catch(A){if(A===ds||A===tp)throw A;var O=On(29,A,null,y.mode);return O.lanes=S,O.return=y,O}finally{}}}var eo=VE(!0),XE=VE(!1),Aa=!1;function ib(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function cv(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Xa(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Qa(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,_e&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=yd(e),IE(e,null,n),t}return ep(e,r,t,n),yd(e)}function du(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hE(e,n)}}function Ry(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=o:i=i.next=o,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var fv=!1;function hu(){if(fv){var e=al;if(e!==null)throw e}}function pu(e,t,n,r){fv=!1;var a=e.updateQueue;Aa=!1;var i=a.firstBaseUpdate,o=a.lastBaseUpdate,l=a.shared.pending;if(l!==null){a.shared.pending=null;var s=l,u=s.next;s.next=null,o===null?i=u:o.next=u,o=s;var f=e.alternate;f!==null&&(f=f.updateQueue,l=f.lastBaseUpdate,l!==o&&(l===null?f.firstBaseUpdate=u:l.next=u,f.lastBaseUpdate=s))}if(i!==null){var c=a.baseState;o=0,f=u=s=null,l=i;do{var h=l.lane&-536870913,p=h!==l.lane;if(p?(Se&h)===h:(r&h)===h){h!==0&&h===Tl&&(fv=!0),f!==null&&(f=f.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var b=e,v=l;h=t;var g=n;switch(v.tag){case 1:if(b=v.payload,typeof b=="function"){c=b.call(g,c,h);break e}c=b;break e;case 3:b.flags=b.flags&-65537|128;case 0:if(b=v.payload,h=typeof b=="function"?b.call(g,c,h):b,h==null)break e;c=et({},c,h);break e;case 2:Aa=!0}}h=l.callback,h!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[h]:p.push(h))}else p={lane:h,tag:l.tag,payload:l.payload,callback:l.callback,next:null},f===null?(u=f=p,s=c):f=f.next=p,o|=h;if(l=l.next,l===null){if(l=a.shared.pending,l===null)break;p=l,l=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);f===null&&(s=c),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),si|=o,e.lanes=o,e.memoizedState=c}}function QE(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function WE(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)QE(n[e],t)}var Cl=Cr(null),bd=Cr(0);function G1(e,t){e=fa,Ye(bd,e),Ye(Cl,t),fa=e|t.baseLanes}function dv(){Ye(bd,fa),Ye(Cl,Cl.current)}function ob(){fa=bd.current,Mt(Cl),Mt(bd)}var Pn=Cr(null),Xn=null;function Ca(e){var t=e.alternate;Ye(st,st.current&1),Ye(Pn,e),Xn===null&&(t===null||Cl.current!==null||t.memoizedState!==null)&&(Xn=e)}function hv(e){Ye(st,st.current),Ye(Pn,e),Xn===null&&(Xn=e)}function ZE(e){e.tag===22?(Ye(st,st.current),Ye(Pn,e),Xn===null&&(Xn=e)):Na()}function Na(){Ye(st,st.current),Ye(Pn,Pn.current)}function wn(e){Mt(Pn),Xn===e&&(Xn=null),Mt(st)}var st=Cr(0);function xd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Pv(n)||Rv(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){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 sa=0,he=null,Ie=null,dt=null,Sd=!1,ol=!1,to=!1,wd=0,$u=0,ll=null,j3=0;function at(){throw Error(U(321))}function lb(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mn(e[n],t[n]))return!1;return!0}function sb(e,t,n,r,a,i){return sa=i,he=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ie.H=e===null||e.memoizedState===null?C_:bb,to=!1,i=n(r,a),to=!1,ol&&(i=e_(t,n,r,a)),JE(e),i}function JE(e){ie.H=Du;var t=Ie!==null&&Ie.next!==null;if(sa=0,dt=Ie=he=null,Sd=!1,$u=0,ll=null,t)throw Error(U(300));e===null||yt||(e=e.dependencies,e!==null&&vd(e)&&(yt=!0))}function e_(e,t,n,r){he=e;var a=0;do{if(ol&&(ll=null),$u=0,ol=!1,25<=a)throw Error(U(301));if(a+=1,dt=Ie=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}ie.H=N_,i=t(n,r)}while(ol);return i}function A3(){var e=ie.H,t=e.useState()[0];return t=typeof t.then=="function"?Bc(t):t,e=e.useState()[0],(Ie!==null?Ie.memoizedState:null)!==e&&(he.flags|=1024),t}function ub(){var e=wd!==0;return wd=0,e}function cb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function fb(e){if(Sd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Sd=!1}sa=0,dt=Ie=he=null,ol=!1,$u=wd=0,ll=null}function Xt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return dt===null?he.memoizedState=dt=e:dt=dt.next=e,dt}function ut(){if(Ie===null){var e=he.alternate;e=e!==null?e.memoizedState:null}else e=Ie.next;var t=dt===null?he.memoizedState:dt.next;if(t!==null)dt=t,Ie=e;else{if(e===null)throw he.alternate===null?Error(U(467)):Error(U(310));Ie=e,e={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},dt===null?he.memoizedState=dt=e:dt=dt.next=e}return dt}function np(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Bc(e){var t=$u;return $u+=1,ll===null&&(ll=[]),e=KE(ll,e,t),t=he,(dt===null?t.memoizedState:dt.next)===null&&(t=t.alternate,ie.H=t===null||t.memoizedState===null?C_:bb),e}function rp(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Bc(e);if(e.$$typeof===Xr)return It(e)}throw Error(U(438,String(e)))}function db(e){var t=null,n=he.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=he.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=np(),he.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=c$;return t.index++,n}function ua(e,t){return typeof t=="function"?t(e):t}function Gf(e){var t=ut();return hb(t,Ie,e)}function hb(e,t,n){var r=e.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var o=a.next;a.next=i.next,i.next=o}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var l=o=null,s=null,u=t,f=!1;do{var c=u.lane&-536870913;if(c!==u.lane?(Se&c)===c:(sa&c)===c){var h=u.revertLane;if(h===0)s!==null&&(s=s.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),c===Tl&&(f=!0);else if((sa&h)===h){u=u.next,h===Tl&&(f=!0);continue}else c={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=c,o=i):s=s.next=c,he.lanes|=h,si|=h;c=u.action,to&&n(i,c),i=u.hasEagerState?u.eagerState:n(i,c)}else h={lane:c,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=h,o=i):s=s.next=h,he.lanes|=c,si|=c;u=u.next}while(u!==null&&u!==t);if(s===null?o=i:s.next=l,!Mn(i,e.memoizedState)&&(yt=!0,f&&(n=al,n!==null)))throw n;e.memoizedState=i,e.baseState=o,e.baseQueue=s,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function $y(e){var t=ut(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var o=a=a.next;do i=e(i,o.action),o=o.next;while(o!==a);Mn(i,t.memoizedState)||(yt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function t_(e,t,n){var r=he,a=ut(),i=Oe;if(i){if(n===void 0)throw Error(U(407));n=n()}else n=t();var o=!Mn((Ie||a).memoizedState,n);if(o&&(a.memoizedState=n,yt=!0),a=a.queue,pb(a_.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||dt!==null&&dt.memoizedState.tag&1){if(r.flags|=2048,Nl(9,{destroy:void 0},r_.bind(null,r,a,n,t),null),qe===null)throw Error(U(349));i||sa&127||n_(r,t,n)}return n}function n_(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=he.updateQueue,t===null?(t=np(),he.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function r_(e,t,n,r){t.value=n,t.getSnapshot=r,i_(t)&&o_(e)}function a_(e,t,n){return n(function(){i_(t)&&o_(e)})}function i_(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mn(e,n)}catch{return!0}}function o_(e){var t=yo(e,2);t!==null&&fn(t,e,2)}function pv(e){var t=Xt();if(typeof e=="function"){var n=e;if(e=n(),to){Ua(!0);try{n()}finally{Ua(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:e},t}function l_(e,t,n,r){return e.baseState=n,hb(e,Ie,typeof r=="function"?r:ua)}function E3(e,t,n,r,a){if(ip(e))throw Error(U(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(o){i.listeners.push(o)}};ie.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,s_(t,i)):(i.next=n.next,t.pending=n.next=i)}}function s_(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=ie.T,o={};ie.T=o;try{var l=n(a,r),s=ie.S;s!==null&&s(o,l),Y1(e,t,l)}catch(u){yv(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),ie.T=i}}else try{i=n(a,r),Y1(e,t,i)}catch(u){yv(e,t,u)}}function Y1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){K1(e,t,r)},function(r){return yv(e,t,r)}):K1(e,t,n)}function K1(e,t,n){t.status="fulfilled",t.value=n,u_(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,s_(e,n)))}function yv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,u_(t),t=t.next;while(t!==r)}e.action=null}function u_(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function c_(e,t){return t}function V1(e,t){if(Oe){var n=qe.formState;if(n!==null){e:{var r=he;if(Oe){if(Ze){t:{for(var a=Ze,i=Yn;a.nodeType!==8;){if(!i){a=null;break t}if(a=Qn(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ze=Qn(a.nextSibling),r=a.data==="F!";break e}}oi(r)}r=!1}r&&(t=n[0])}}return n=Xt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c_,lastRenderedState:t},n.queue=r,n=E_.bind(null,he,r),r.dispatch=n,r=pv(!1),i=gb.bind(null,he,!1,r.queue),r=Xt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=E3.bind(null,he,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function X1(e){var t=ut();return f_(t,Ie,e)}function f_(e,t,n){if(t=hb(e,t,c_)[0],e=Gf(ua)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Bc(t)}catch(o){throw o===ds?tp:o}else r=t;t=ut();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(he.flags|=2048,Nl(9,{destroy:void 0},_3.bind(null,a,n),null)),[r,i,e]}function _3(e,t){e.action=t}function Q1(e){var t=ut(),n=Ie;if(n!==null)return f_(t,n,e);ut(),t=t.memoizedState,n=ut();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Nl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=he.updateQueue,t===null&&(t=np(),he.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function d_(){return ut().memoizedState}function Yf(e,t,n,r){var a=Xt();he.flags|=e,a.memoizedState=Nl(1|t,{destroy:void 0},n,r===void 0?null:r)}function ap(e,t,n,r){var a=ut();r=r===void 0?null:r;var i=a.memoizedState.inst;Ie!==null&&r!==null&&lb(r,Ie.memoizedState.deps)?a.memoizedState=Nl(t,i,n,r):(he.flags|=e,a.memoizedState=Nl(1|t,i,n,r))}function W1(e,t){Yf(8390656,8,e,t)}function pb(e,t){ap(2048,8,e,t)}function T3(e){he.flags|=4;var t=he.updateQueue;if(t===null)t=np(),he.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function h_(e){var t=ut().memoizedState;return T3({ref:t,nextImpl:e}),function(){if(_e&2)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function p_(e,t){return ap(4,2,e,t)}function y_(e,t){return ap(4,4,e,t)}function m_(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function v_(e,t,n){n=n!=null?n.concat([e]):null,ap(4,4,m_.bind(null,t,e),n)}function yb(){}function g_(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&lb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function b_(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&lb(t,r[1]))return r[0];if(r=e(),to){Ua(!0);try{e()}finally{Ua(!1)}}return n.memoizedState=[r,t],r}function mb(e,t,n){return n===void 0||sa&1073741824&&!(Se&261930)?e.memoizedState=t:(e.memoizedState=n,e=lT(),he.lanes|=e,si|=e,n)}function x_(e,t,n,r){return Mn(n,t)?n:Cl.current!==null?(e=mb(e,n,r),Mn(e,t)||(yt=!0),e):!(sa&42)||sa&1073741824&&!(Se&261930)?(yt=!0,e.memoizedState=n):(e=lT(),he.lanes|=e,si|=e,t)}function S_(e,t,n,r,a){var i=Te.p;Te.p=i!==0&&8>i?i:8;var o=ie.T,l={};ie.T=l,gb(e,!1,t,n);try{var s=a(),u=ie.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var f=O3(s,r);yu(e,t,f,Cn(e))}else yu(e,t,r,Cn(e))}catch(c){yu(e,t,{then:function(){},status:"rejected",reason:c},Cn())}finally{Te.p=i,o!==null&&l.types!==null&&(o.types=l.types),ie.T=o}}function C3(){}function mv(e,t,n,r){if(e.tag!==5)throw Error(U(476));var a=w_(e).queue;S_(e,a,t,Fi,n===null?C3:function(){return O_(e),n(r)})}function w_(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Fi,baseState:Fi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:Fi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ua,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function O_(e){var t=w_(e);t.next===null&&(t=e.alternate.memoizedState),yu(e,t.next.queue,{},Cn())}function vb(){return It(zu)}function j_(){return ut().memoizedState}function A_(){return ut().memoizedState}function N3(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Cn();e=Xa(n);var r=Qa(t,e,n);r!==null&&(fn(r,t,n),du(r,t,n)),t={cache:nb()},e.payload=t;return}t=t.return}}function M3(e,t,n){var r=Cn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},ip(e)?__(t,n):(n=Z0(e,t,n,r),n!==null&&(fn(n,e,r),T_(n,t,r)))}function E_(e,t,n){var r=Cn();yu(e,t,n,r)}function yu(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(ip(e))__(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var o=t.lastRenderedState,l=i(o,n);if(a.hasEagerState=!0,a.eagerState=l,Mn(l,o))return ep(e,t,a,0),qe===null&&Jh(),!1}catch{}finally{}if(n=Z0(e,t,a,r),n!==null)return fn(n,e,r),T_(n,t,r),!0}return!1}function gb(e,t,n,r){if(r={lane:2,revertLane:_b(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},ip(e)){if(t)throw Error(U(479))}else t=Z0(e,n,r,2),t!==null&&fn(t,e,2)}function ip(e){var t=e.alternate;return e===he||t!==null&&t===he}function __(e,t){ol=Sd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function T_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,hE(e,n)}}var Du={readContext:It,use:rp,useCallback:at,useContext:at,useEffect:at,useImperativeHandle:at,useLayoutEffect:at,useInsertionEffect:at,useMemo:at,useReducer:at,useRef:at,useState:at,useDebugValue:at,useDeferredValue:at,useTransition:at,useSyncExternalStore:at,useId:at,useHostTransitionStatus:at,useFormState:at,useActionState:at,useOptimistic:at,useMemoCache:at,useCacheRefresh:at};Du.useEffectEvent=at;var C_={readContext:It,use:rp,useCallback:function(e,t){return Xt().memoizedState=[e,t===void 0?null:t],e},useContext:It,useEffect:W1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Yf(4194308,4,m_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Yf(4194308,4,e,t)},useInsertionEffect:function(e,t){Yf(4,2,e,t)},useMemo:function(e,t){var n=Xt();t=t===void 0?null:t;var r=e();if(to){Ua(!0);try{e()}finally{Ua(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Xt();if(n!==void 0){var a=n(t);if(to){Ua(!0);try{n(t)}finally{Ua(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=M3.bind(null,he,e),[r.memoizedState,e]},useRef:function(e){var t=Xt();return e={current:e},t.memoizedState=e},useState:function(e){e=pv(e);var t=e.queue,n=E_.bind(null,he,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:yb,useDeferredValue:function(e,t){var n=Xt();return mb(n,e,t)},useTransition:function(){var e=pv(!1);return e=S_.bind(null,he,e.queue,!0,!1),Xt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=he,a=Xt();if(Oe){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),qe===null)throw Error(U(349));Se&127||n_(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,W1(a_.bind(null,r,i,e),[e]),r.flags|=2048,Nl(9,{destroy:void 0},r_.bind(null,r,i,n,t),null),n},useId:function(){var e=Xt(),t=qe.identifierPrefix;if(Oe){var n=wr,r=Sr;n=(r&~(1<<32-Tn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=wd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=j3++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:vb,useFormState:V1,useActionState:V1,useOptimistic:function(e){var t=Xt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=gb.bind(null,he,!0,n),n.dispatch=t,[e,t]},useMemoCache:db,useCacheRefresh:function(){return Xt().memoizedState=N3.bind(null,he)},useEffectEvent:function(e){var t=Xt(),n={impl:e};return t.memoizedState=n,function(){if(_e&2)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},bb={readContext:It,use:rp,useCallback:g_,useContext:It,useEffect:pb,useImperativeHandle:v_,useInsertionEffect:p_,useLayoutEffect:y_,useMemo:b_,useReducer:Gf,useRef:d_,useState:function(){return Gf(ua)},useDebugValue:yb,useDeferredValue:function(e,t){var n=ut();return x_(n,Ie.memoizedState,e,t)},useTransition:function(){var e=Gf(ua)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Bc(e),t]},useSyncExternalStore:t_,useId:j_,useHostTransitionStatus:vb,useFormState:X1,useActionState:X1,useOptimistic:function(e,t){var n=ut();return l_(n,Ie,e,t)},useMemoCache:db,useCacheRefresh:A_};bb.useEffectEvent=h_;var N_={readContext:It,use:rp,useCallback:g_,useContext:It,useEffect:pb,useImperativeHandle:v_,useInsertionEffect:p_,useLayoutEffect:y_,useMemo:b_,useReducer:$y,useRef:d_,useState:function(){return $y(ua)},useDebugValue:yb,useDeferredValue:function(e,t){var n=ut();return Ie===null?mb(n,e,t):x_(n,Ie.memoizedState,e,t)},useTransition:function(){var e=$y(ua)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Bc(e),t]},useSyncExternalStore:t_,useId:j_,useHostTransitionStatus:vb,useFormState:Q1,useActionState:Q1,useOptimistic:function(e,t){var n=ut();return Ie!==null?l_(n,Ie,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:db,useCacheRefresh:A_};N_.useEffectEvent=h_;function Dy(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:et({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var vv={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Cn(),a=Xa(r);a.payload=t,n!=null&&(a.callback=n),t=Qa(e,a,r),t!==null&&(fn(t,e,r),du(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Cn(),a=Xa(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Qa(e,a,r),t!==null&&(fn(t,e,r),du(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Cn(),r=Xa(n);r.tag=2,t!=null&&(r.callback=t),t=Qa(e,r,n),t!==null&&(fn(t,e,n),du(t,e,n))}};function Z1(e,t,n,r,a,i,o){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,o):t.prototype&&t.prototype.isPureReactComponent?!Nu(n,r)||!Nu(a,i):!0}function J1(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&vv.enqueueReplaceState(t,t.state,null)}function no(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=et({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function M_(e){pd(e)}function P_(e){console.error(e)}function R_(e){pd(e)}function Od(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function eS(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function gv(e,t,n){return n=Xa(n),n.tag=3,n.payload={element:null},n.callback=function(){Od(e,t)},n}function $_(e){return e=Xa(e),e.tag=3,e}function D_(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=r.value;e.payload=function(){return a(i)},e.callback=function(){eS(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){eS(t,n,r),typeof a!="function"&&(Wa===null?Wa=new Set([this]):Wa.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function P3(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&fs(t,n,a,!0),n=Pn.current,n!==null){switch(n.tag){case 31:case 13:return Xn===null?Td():n.alternate===null&&lt===0&&(lt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===gd?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Yy(e,r,a)),!1;case 22:return n.flags|=65536,r===gd?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Yy(e,r,a)),!1}throw Error(U(435,n.tag))}return Yy(e,r,a),Td(),!1}if(Oe)return t=Pn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==iv&&(e=Error(U(422),{cause:r}),Pu(Gn(e,n)))):(r!==iv&&(t=Error(U(423),{cause:r}),Pu(Gn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Gn(r,n),a=gv(e.stateNode,r,a),Ry(e,a),lt!==4&&(lt=2)),!1;var i=Error(U(520),{cause:r});if(i=Gn(i,n),gu===null?gu=[i]:gu.push(i),lt!==4&&(lt=2),t===null)return!0;r=Gn(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=gv(n.stateNode,r,e),Ry(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Wa===null||!Wa.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=$_(a),D_(a,e,n,r),Ry(n,a),!1}n=n.return}while(n!==null);return!1}var xb=Error(U(461)),yt=!1;function kt(e,t,n,r){t.child=e===null?XE(t,null,n,r):eo(t,e.child,n,r)}function tS(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var o={};for(var l in r)l!=="ref"&&(o[l]=r[l])}else o=r;return Ji(t),r=sb(e,t,n,o,i,a),l=ub(),e!==null&&!yt?(cb(e,t,a),ca(e,t,a)):(Oe&&l&&eb(t),t.flags|=1,kt(e,t,r,a),t.child)}function nS(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!J0(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,k_(e,t,i,r,a)):(e=qf(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!Sb(e,a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:Nu,n(o,r)&&e.ref===t.ref)return ca(e,t,a)}return t.flags|=1,e=ea(i,r),e.ref=t.ref,e.return=t,t.child=e}function k_(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Nu(i,r)&&e.ref===t.ref)if(yt=!1,t.pendingProps=r=i,Sb(e,a))e.flags&131072&&(yt=!0);else return t.lanes=e.lanes,ca(e,t,a)}return bv(e,t,n,r,a)}function L_(e,t,n,r){var a=r.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~i}else r=0,t.child=null;return rS(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ff(t,i!==null?i.cachePool:null),i!==null?G1(t,i):dv(),ZE(t);else return r=t.lanes=536870912,rS(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(Ff(t,i.cachePool),G1(t,i),Na(),t.memoizedState=null):(e!==null&&Ff(t,null),dv(),Na());return kt(e,t,a,n),t.child}function ru(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function rS(e,t,n,r,a){var i=rb();return i=i===null?null:{parent:pt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Ff(t,null),dv(),ZE(t),e!==null&&fs(e,t,r,!0),t.childLanes=a,null}function Kf(e,t){return t=jd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function aS(e,t,n){return eo(t,e.child,null,n),e=Kf(t,t.pendingProps),e.flags|=2,wn(t),t.memoizedState=null,e}function R3(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Oe){if(r.mode==="hidden")return e=Kf(t,r),t.lanes=536870912,ru(null,e);if(hv(t),(e=Ze)?(e=CT(e,Yn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ii!==null?{id:Sr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},n=HE(e),n.return=t,t.child=n,zt=t,Ze=null)):e=null,e===null)throw oi(t);return t.lanes=536870912,null}return Kf(t,r)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(hv(t),a)if(t.flags&256)t.flags&=-257,t=aS(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(yt||fs(e,t,n,!1),a=(n&e.childLanes)!==0,yt||a){if(r=qe,r!==null&&(o=pE(r,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,yo(e,o),fn(r,e,o),xb;Td(),t=aS(e,t,n)}else e=i.treeContext,Ze=Qn(o.nextSibling),zt=t,Oe=!0,Va=null,Yn=!1,e!==null&&FE(t,e),t=Kf(t,r),t.flags|=4096;return t}return e=ea(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vf(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(U(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function bv(e,t,n,r,a){return Ji(t),n=sb(e,t,n,r,void 0,a),r=ub(),e!==null&&!yt?(cb(e,t,a),ca(e,t,a)):(Oe&&r&&eb(t),t.flags|=1,kt(e,t,n,a),t.child)}function iS(e,t,n,r,a,i){return Ji(t),t.updateQueue=null,n=e_(t,r,n,a),JE(e),r=ub(),e!==null&&!yt?(cb(e,t,i),ca(e,t,i)):(Oe&&r&&eb(t),t.flags|=1,kt(e,t,n,i),t.child)}function oS(e,t,n,r,a){if(Ji(t),t.stateNode===null){var i=Yo,o=n.contextType;typeof o=="object"&&o!==null&&(i=It(o)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=vv,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},ib(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?It(o):Yo,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&(Dy(t,n,o,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(o=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),o!==i.state&&vv.enqueueReplaceState(i,i.state,null),pu(t,r,i,a),hu(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var l=t.memoizedProps,s=no(n,l);i.props=s;var u=i.context,f=n.contextType;o=Yo,typeof f=="object"&&f!==null&&(o=It(f));var c=n.getDerivedStateFromProps;f=typeof c=="function"||typeof i.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l||u!==o)&&J1(t,i,r,o),Aa=!1;var h=t.memoizedState;i.state=h,pu(t,r,i,a),hu(),u=t.memoizedState,l||h!==u||Aa?(typeof c=="function"&&(Dy(t,n,c,r),u=t.memoizedState),(s=Aa||Z1(t,n,s,r,h,u,o))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),i.props=r,i.state=u,i.context=o,r=s):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,cv(e,t),o=t.memoizedProps,f=no(n,o),i.props=f,c=t.pendingProps,h=i.context,u=n.contextType,s=Yo,typeof u=="object"&&u!==null&&(s=It(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==c||h!==s)&&J1(t,i,r,s),Aa=!1,h=t.memoizedState,i.state=h,pu(t,r,i,a),hu();var p=t.memoizedState;o!==c||h!==p||Aa||e!==null&&e.dependencies!==null&&vd(e.dependencies)?(typeof l=="function"&&(Dy(t,n,l,r),p=t.memoizedState),(f=Aa||Z1(t,n,f,r,h,p,s)||e!==null&&e.dependencies!==null&&vd(e.dependencies))?(u||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,s),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,s)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=s,r=f):(typeof i.componentDidUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||o===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Vf(e,t),r=(t.flags&128)!==0,i||r?(i=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&r?(t.child=eo(t,e.child,null,a),t.child=eo(t,null,n,a)):kt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=ca(e,t,a),e}function lS(e,t,n,r){return Zi(),t.flags|=256,kt(e,t,n,r),t.child}var ky={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ly(e){return{baseLanes:e,cachePool:YE()}}function zy(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=An),e}function z_(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,o;if((o=i)||(o=e!==null&&e.memoizedState===null?!1:(st.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(Oe){if(a?Ca(t):Na(),(e=Ze)?(e=CT(e,Yn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ii!==null?{id:Sr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},n=HE(e),n.return=t,t.child=n,zt=t,Ze=null)):e=null,e===null)throw oi(t);return Rv(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,a?(Na(),a=t.mode,l=jd({mode:"hidden",children:l},a),r=Gi(r,a,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=Ly(n),r.childLanes=zy(e,o,n),t.memoizedState=ky,ru(null,r)):(Ca(t),xv(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(i)t.flags&256?(Ca(t),t.flags&=-257,t=By(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),l=r.fallback,a=t.mode,r=jd({mode:"visible",children:r.children},a),l=Gi(l,a,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,eo(t,e.child,null,n),r=t.child,r.memoizedState=Ly(n),r.childLanes=zy(e,o,n),t.memoizedState=ky,t=ru(null,r));else if(Ca(t),Rv(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(U(419)),r.stack="",r.digest=o,Pu({value:r,source:null,stack:null}),t=By(e,t,n)}else if(yt||fs(e,t,n,!1),o=(n&e.childLanes)!==0,yt||o){if(o=qe,o!==null&&(r=pE(o,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,yo(e,r),fn(o,e,r),xb;Pv(l)||Td(),t=By(e,t,n)}else Pv(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Ze=Qn(l.nextSibling),zt=t,Oe=!0,Va=null,Yn=!1,e!==null&&FE(t,e),t=xv(t,r.children),t.flags|=4096);return t}return a?(Na(),l=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=ea(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=ea(u,l):(l=Gi(l,a,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,ru(null,r),r=t.child,l=e.child.memoizedState,l===null?l=Ly(n):(a=l.cachePool,a!==null?(s=pt._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=YE(),l={baseLanes:l.baseLanes|n,cachePool:a}),r.memoizedState=l,r.childLanes=zy(e,o,n),t.memoizedState=ky,ru(e.child,r)):(Ca(t),n=e.child,e=n.sibling,n=ea(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function xv(e,t){return t=jd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function jd(e,t){return e=On(22,e,null,t),e.lanes=0,e}function By(e,t,n){return eo(t,e.child,null,n),e=xv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sS(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),lv(e.return,t,n)}function Iy(e,t,n,r,a,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a,o.treeForkCount=i)}function B_(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var o=st.current,l=(o&2)!==0;if(l?(o=o&1|2,t.flags|=128):o&=1,Ye(st,o),kt(e,t,r,n),r=Oe?Mu:0,!l&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&sS(e,n,t);else if(e.tag===19)sS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&xd(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Iy(t,!1,a,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&xd(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Iy(t,!0,n,null,i,r);break;case"together":Iy(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ca(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),si|=t.lanes,!(n&t.childLanes))if(e!==null){if(fs(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=ea(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ea(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sb(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&vd(e)))}function $3(e,t,n){switch(t.tag){case 3:cd(t,t.stateNode.containerInfo),Ta(t,pt,e.memoizedState.cache),Zi();break;case 27:case 5:Vm(t);break;case 4:cd(t,t.stateNode.containerInfo);break;case 10:Ta(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,hv(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ca(t),t.flags|=128,null):n&t.child.childLanes?z_(e,t,n):(Ca(t),e=ca(e,t,n),e!==null?e.sibling:null);Ca(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(fs(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return B_(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ye(st,st.current),r)break;return null;case 22:return t.lanes=0,L_(e,t,n,t.pendingProps);case 24:Ta(t,pt,e.memoizedState.cache)}return ca(e,t,n)}function I_(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)yt=!0;else{if(!Sb(e,n)&&!(t.flags&128))return yt=!1,$3(e,t,n);yt=!!(e.flags&131072)}else yt=!1,Oe&&t.flags&1048576&&qE(t,Mu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=Oi(t.elementType),t.type=e,typeof e=="function")J0(e)?(r=no(e,r),t.tag=1,t=oS(null,t,e,r,n)):(t.tag=0,t=bv(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===B0){t.tag=11,t=tS(null,t,e,r,n);break e}else if(a===I0){t.tag=14,t=nS(null,t,e,r,n);break e}}throw t=Ym(e)||e,Error(U(306,t,""))}}return t;case 0:return bv(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=no(r,t.pendingProps),oS(e,t,r,a,n);case 3:e:{if(cd(t,t.stateNode.containerInfo),e===null)throw Error(U(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,cv(e,t),pu(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Ta(t,pt,r),r!==i.cache&&sv(t,[pt],n,!0),hu(),r=o.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=lS(e,t,r,n);break e}else if(r!==a){a=Gn(Error(U(424)),t),Pu(a),t=lS(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(Ze=Qn(e.firstChild),zt=t,Oe=!0,Va=null,Yn=!0,n=XE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Zi(),r===a){t=ca(e,t,n);break e}kt(e,t,r,n)}t=t.child}return t;case 26:return Vf(e,t),e===null?(n=TS(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oe||(n=t.type,e=t.pendingProps,r=Pd(Ka.current).createElement(n),r[Lt]=t,r[hn]=e,Ut(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=TS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Vm(t),e===null&&Oe&&(r=t.stateNode=NT(t.type,t.pendingProps,Ka.current),zt=t,Yn=!0,a=Ze,ci(t.type)?($v=a,Ze=Qn(r.firstChild)):Ze=a),kt(e,t,t.pendingProps.children,n),Vf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oe&&((a=r=Ze)&&(r=cD(r,t.type,t.pendingProps,Yn),r!==null?(t.stateNode=r,zt=t,Ze=Qn(r.firstChild),Yn=!1,a=!0):a=!1),a||oi(t)),Vm(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,Nv(a,i)?r=null:o!==null&&Nv(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=sb(e,t,A3,null,null,n),zu._currentValue=a),Vf(e,t),kt(e,t,r,n),t.child;case 6:return e===null&&Oe&&((e=n=Ze)&&(n=fD(n,t.pendingProps,Yn),n!==null?(t.stateNode=n,zt=t,Ze=null,e=!0):e=!1),e||oi(t)),null;case 13:return z_(e,t,n);case 4:return cd(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=eo(t,null,r,n):kt(e,t,r,n),t.child;case 11:return tS(e,t,t.type,t.pendingProps,n);case 7:return kt(e,t,t.pendingProps,n),t.child;case 8:return kt(e,t,t.pendingProps.children,n),t.child;case 12:return kt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ta(t,t.type,r.value),kt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ji(t),a=It(a),r=r(a),t.flags|=1,kt(e,t,r,n),t.child;case 14:return nS(e,t,t.type,t.pendingProps,n);case 15:return k_(e,t,t.type,t.pendingProps,n);case 19:return B_(e,t,n);case 31:return R3(e,t,n);case 22:return L_(e,t,n,t.pendingProps);case 24:return Ji(t),r=It(pt),e===null?(a=rb(),a===null&&(a=qe,i=nb(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},ib(t),Ta(t,pt,a)):(e.lanes&n&&(cv(e,t),pu(t,null,null,n),hu()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Ta(t,pt,r)):(r=i.cache,Ta(t,pt,r),r!==a.cache&&sv(t,[pt],n,!0))),kt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function kr(e){e.flags|=4}function Uy(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(cT())e.flags|=8192;else throw Ki=gd,ab}else e.flags&=-16777217}function uS(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!RT(t))if(cT())e.flags|=8192;else throw Ki=gd,ab}function mf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?fE():536870912,e.lanes|=t,Ml|=t)}function Bs(e,t){if(!Oe)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Xe(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function D3(e,t,n){var r=t.pendingProps;switch(tb(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xe(t),null;case 1:return Xe(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),ta(pt),Al(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(To(t)?kr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Py())),Xe(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(kr(t),i!==null?(Xe(t),uS(t,i)):(Xe(t),Uy(t,a,null,r,n))):i?i!==e.memoizedState?(kr(t),Xe(t),uS(t,i)):(Xe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&kr(t),Xe(t),Uy(t,a,e,r,n)),null;case 27:if(fd(t),n=Ka.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Xe(t),null}e=Ar.current,To(t)?z1(t):(e=NT(a,r,n),t.stateNode=e,kr(t))}return Xe(t),null;case 5:if(fd(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Xe(t),null}if(i=Ar.current,To(t))z1(t);else{var o=Pd(Ka.current);switch(i){case 1:i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=o.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?o.createElement("select",{is:r.is}):o.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?o.createElement(a,{is:r.is}):o.createElement(a)}}i[Lt]=t,i[hn]=r;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)i.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=i;e:switch(Ut(i,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&kr(t)}}return Xe(t),Uy(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&kr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(e=Ka.current,To(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=zt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Lt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||ET(e.nodeValue,n)),e||oi(t,!0)}else e=Pd(e).createTextNode(r),e[Lt]=t,t.stateNode=e}return Xe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=To(t),n!==null){if(e===null){if(!r)throw Error(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[Lt]=t}else Zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),e=!1}else n=Py(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(wn(t),t):(wn(t),null);if(t.flags&128)throw Error(U(558))}return Xe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=To(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(U(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(U(317));a[Lt]=t}else Zi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Xe(t),a=!1}else a=Py(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(wn(t),t):(wn(t),null)}return wn(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),mf(t,t.updateQueue),Xe(t),null);case 4:return Al(),e===null&&Tb(t.stateNode.containerInfo),Xe(t),null;case 10:return ta(t.type),Xe(t),null;case 19:if(Mt(st),r=t.memoizedState,r===null)return Xe(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Bs(r,!1);else{if(lt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=xd(e),i!==null){for(t.flags|=128,Bs(r,!1),e=i.updateQueue,t.updateQueue=e,mf(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)UE(n,e),n=n.sibling;return Ye(st,st.current&1|2),Oe&&qr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&En()>Ed&&(t.flags|=128,a=!0,Bs(r,!1),t.lanes=4194304)}else{if(!a)if(e=xd(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,mf(t,e),Bs(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Oe)return Xe(t),null}else 2*En()-r.renderingStartTime>Ed&&n!==536870912&&(t.flags|=128,a=!0,Bs(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(e=r.last,e!==null?e.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=En(),e.sibling=null,n=st.current,Ye(st,a?n&1|2:n&1),Oe&&qr(t,r.treeForkCount),e):(Xe(t),null);case 22:case 23:return wn(t),ob(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Xe(t),t.subtreeFlags&6&&(t.flags|=8192)):Xe(t),n=t.updateQueue,n!==null&&mf(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Mt(Yi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),ta(pt),Xe(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function k3(e,t){switch(tb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return ta(pt),Al(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return fd(t),null;case 31:if(t.memoizedState!==null){if(wn(t),t.alternate===null)throw Error(U(340));Zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(wn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Zi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Mt(st),null;case 4:return Al(),null;case 10:return ta(t.type),null;case 22:case 23:return wn(t),ob(),e!==null&&Mt(Yi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return ta(pt),null;case 25:return null;default:return null}}function U_(e,t){switch(tb(t),t.tag){case 3:ta(pt),Al();break;case 26:case 27:case 5:fd(t);break;case 4:Al();break;case 31:t.memoizedState!==null&&wn(t);break;case 13:wn(t);break;case 19:Mt(st);break;case 10:ta(t.type);break;case 22:case 23:wn(t),ob(),e!==null&&Mt(Yi);break;case 24:ta(pt)}}function Ic(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,o=n.inst;r=i(),o.destroy=r}n=n.next}while(n!==a)}}catch(l){Re(t,t.return,l)}}function li(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var o=r.inst,l=o.destroy;if(l!==void 0){o.destroy=void 0,a=t;var s=n,u=l;try{u()}catch(f){Re(a,s,f)}}}r=r.next}while(r!==i)}}catch(f){Re(t,t.return,f)}}function H_(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{WE(t,n)}catch(r){Re(e,e.return,r)}}}function q_(e,t,n){n.props=no(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Re(e,t,r)}}function mu(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){Re(e,t,a)}}function Or(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){Re(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Re(e,t,a)}else n.current=null}function F_(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){Re(e,e.return,a)}}function Hy(e,t,n){try{var r=e.stateNode;aD(r,e.type,n,t),r[hn]=t}catch(a){Re(e,e.return,a)}}function G_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ci(e.type)||e.tag===4}function qy(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||G_(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.tag===27&&ci(e.type)||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 Sv(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qr));else if(r!==4&&(r===27&&ci(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Sv(e,t,n),e=e.sibling;e!==null;)Sv(e,t,n),e=e.sibling}function Ad(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&ci(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ad(e,t,n),e=e.sibling;e!==null;)Ad(e,t,n),e=e.sibling}function Y_(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);Ut(t,r,n),t[Lt]=e,t[hn]=n}catch(i){Re(e,e.return,i)}}var Vr=!1,ht=!1,Fy=!1,cS=typeof WeakSet=="function"?WeakSet:Set,Tt=null;function L3(e,t){if(e=e.containerInfo,Tv=kd,e=RE(e),Q0(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var o=0,l=-1,s=-1,u=0,f=0,c=e,h=null;t:for(;;){for(var p;c!==n||a!==0&&c.nodeType!==3||(l=o+a),c!==i||r!==0&&c.nodeType!==3||(s=o+r),c.nodeType===3&&(o+=c.nodeValue.length),(p=c.firstChild)!==null;)h=c,c=p;for(;;){if(c===e)break t;if(h===n&&++u===a&&(l=o),h===i&&++f===r&&(s=o),(p=c.nextSibling)!==null)break;c=h,h=c.parentNode}c=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(Cv={focusedElem:e,selectionRange:n},kd=!1,Tt=t;Tt!==null;)if(t=Tt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Tt=e;else for(;Tt!==null;){switch(t=Tt,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var b=no(n.type,a);e=r.getSnapshotBeforeUpdate(b,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(v){Re(n,n.return,v)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Mv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Mv(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(U(163))}if(e=t.sibling,e!==null){e.return=t.return,Tt=e;break}Tt=t.return}}function K_(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:zr(e,n),r&4&&Ic(5,n);break;case 1:if(zr(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){Re(n,n.return,o)}else{var a=no(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){Re(n,n.return,o)}}r&64&&H_(n),r&512&&mu(n,n.return);break;case 3:if(zr(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{WE(e,t)}catch(o){Re(n,n.return,o)}}break;case 27:t===null&&r&4&&Y_(n);case 26:case 5:zr(e,n),t===null&&r&4&&F_(n),r&512&&mu(n,n.return);break;case 12:zr(e,n);break;case 31:zr(e,n),r&4&&Q_(e,n);break;case 13:zr(e,n),r&4&&W_(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Y3.bind(null,n),dD(e,n))));break;case 22:if(r=n.memoizedState!==null||Vr,!r){t=t!==null&&t.memoizedState!==null||ht,a=Vr;var i=ht;Vr=r,(ht=t)&&!i?Ir(e,n,(n.subtreeFlags&8772)!==0):zr(e,n),Vr=a,ht=i}break;case 30:break;default:zr(e,n)}}function V_(e){var t=e.alternate;t!==null&&(e.alternate=null,V_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&F0(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var tt=null,sn=!1;function Lr(e,t,n){for(n=n.child;n!==null;)X_(e,t,n),n=n.sibling}function X_(e,t,n){if(_n&&typeof _n.onCommitFiberUnmount=="function")try{_n.onCommitFiberUnmount(Rc,n)}catch{}switch(n.tag){case 26:ht||Or(n,t),Lr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ht||Or(n,t);var r=tt,a=sn;ci(n.type)&&(tt=n.stateNode,sn=!1),Lr(e,t,n),xu(n.stateNode),tt=r,sn=a;break;case 5:ht||Or(n,t);case 6:if(r=tt,a=sn,tt=null,Lr(e,t,n),tt=r,sn=a,tt!==null)if(sn)try{(tt.nodeType===9?tt.body:tt.nodeName==="HTML"?tt.ownerDocument.body:tt).removeChild(n.stateNode)}catch(i){Re(n,t,i)}else try{tt.removeChild(n.stateNode)}catch(i){Re(n,t,i)}break;case 18:tt!==null&&(sn?(e=tt,OS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Dl(e)):OS(tt,n.stateNode));break;case 4:r=tt,a=sn,tt=n.stateNode.containerInfo,sn=!0,Lr(e,t,n),tt=r,sn=a;break;case 0:case 11:case 14:case 15:li(2,n,t),ht||li(4,n,t),Lr(e,t,n);break;case 1:ht||(Or(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&q_(n,t,r)),Lr(e,t,n);break;case 21:Lr(e,t,n);break;case 22:ht=(r=ht)||n.memoizedState!==null,Lr(e,t,n),ht=r;break;default:Lr(e,t,n)}}function Q_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Dl(e)}catch(n){Re(t,t.return,n)}}}function W_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Dl(e)}catch(n){Re(t,t.return,n)}}function z3(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new cS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new cS),t;default:throw Error(U(435,e.tag))}}function vf(e,t){var n=z3(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=K3.bind(null,e,r);r.then(a,a)}})}function rn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,o=t,l=o;e:for(;l!==null;){switch(l.tag){case 27:if(ci(l.type)){tt=l.stateNode,sn=!1;break e}break;case 5:tt=l.stateNode,sn=!1;break e;case 3:case 4:tt=l.stateNode.containerInfo,sn=!0;break e}l=l.return}if(tt===null)throw Error(U(160));X_(i,o,a),tt=null,sn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Z_(t,e),t=t.sibling}var ir=null;function Z_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:rn(t,e),an(e),r&4&&(li(3,e,e.return),Ic(3,e),li(5,e,e.return));break;case 1:rn(t,e),an(e),r&512&&(ht||n===null||Or(n,n.return)),r&64&&Vr&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=ir;if(rn(t,e),an(e),r&512&&(ht||n===null||Or(n,n.return)),r&4){var i=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":i=a.getElementsByTagName("title")[0],(!i||i[kc]||i[Lt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),Ut(i,r,n),i[Lt]=e,Ct(i),r=i;break e;case"link":var o=NS("link","href",a).get(r+(n.href||""));if(o){for(var l=0;l<o.length;l++)if(i=o[l],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(l,1);break t}}i=a.createElement(r),Ut(i,r,n),a.head.appendChild(i);break;case"meta":if(o=NS("meta","content",a).get(r+(n.content||""))){for(l=0;l<o.length;l++)if(i=o[l],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){o.splice(l,1);break t}}i=a.createElement(r),Ut(i,r,n),a.head.appendChild(i);break;default:throw Error(U(468,r))}i[Lt]=e,Ct(i),r=i}e.stateNode=r}else MS(a,e.type,e.stateNode);else e.stateNode=CS(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?MS(a,e.type,e.stateNode):CS(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Hy(e,e.memoizedProps,n.memoizedProps)}break;case 27:rn(t,e),an(e),r&512&&(ht||n===null||Or(n,n.return)),n!==null&&r&4&&Hy(e,e.memoizedProps,n.memoizedProps);break;case 5:if(rn(t,e),an(e),r&512&&(ht||n===null||Or(n,n.return)),e.flags&32){a=e.stateNode;try{_l(a,"")}catch(b){Re(e,e.return,b)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Hy(e,a,n!==null?n.memoizedProps:a)),r&1024&&(Fy=!0);break;case 6:if(rn(t,e),an(e),r&4){if(e.stateNode===null)throw Error(U(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(b){Re(e,e.return,b)}}break;case 3:if(Wf=null,a=ir,ir=Rd(t.containerInfo),rn(t,e),ir=a,an(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Dl(t.containerInfo)}catch(b){Re(e,e.return,b)}Fy&&(Fy=!1,J_(e));break;case 4:r=ir,ir=Rd(e.stateNode.containerInfo),rn(t,e),an(e),ir=r;break;case 12:rn(t,e),an(e);break;case 31:rn(t,e),an(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vf(e,r)));break;case 13:rn(t,e),an(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(op=En()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vf(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=Vr,f=ht;if(Vr=u||a,ht=f||s,rn(t,e),ht=f,Vr=u,an(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||Vr||ht||ji(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){s=n=t;try{if(i=s.stateNode,a)o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none";else{l=s.stateNode;var c=s.memoizedProps.style,h=c!=null&&c.hasOwnProperty("display")?c.display:null;l.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(b){Re(s,s.return,b)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(b){Re(s,s.return,b)}}}else if(t.tag===18){if(n===null){s=t;try{var p=s.stateNode;a?jS(p,!0):jS(s.stateNode,!1)}catch(b){Re(s,s.return,b)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,vf(e,n))));break;case 19:rn(t,e),an(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,vf(e,r)));break;case 30:break;case 21:break;default:rn(t,e),an(e)}}function an(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(G_(r)){n=r;break}r=r.return}if(n==null)throw Error(U(160));switch(n.tag){case 27:var a=n.stateNode,i=qy(e);Ad(e,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(_l(o,""),n.flags&=-33);var l=qy(e);Ad(e,l,o);break;case 3:case 4:var s=n.stateNode.containerInfo,u=qy(e);Sv(e,u,s);break;default:throw Error(U(161))}}catch(f){Re(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function J_(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;J_(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function zr(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)K_(e,t.alternate,t),t=t.sibling}function ji(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:li(4,t,t.return),ji(t);break;case 1:Or(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&q_(t,t.return,n),ji(t);break;case 27:xu(t.stateNode);case 26:case 5:Or(t,t.return),ji(t);break;case 22:t.memoizedState===null&&ji(t);break;case 30:ji(t);break;default:ji(t)}e=e.sibling}}function Ir(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,o=i.flags;switch(i.tag){case 0:case 11:case 15:Ir(a,i,n),Ic(4,i);break;case 1:if(Ir(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){Re(r,r.return,u)}if(r=i,a=r.updateQueue,a!==null){var l=r.stateNode;try{var s=a.shared.hiddenCallbacks;if(s!==null)for(a.shared.hiddenCallbacks=null,a=0;a<s.length;a++)QE(s[a],l)}catch(u){Re(r,r.return,u)}}n&&o&64&&H_(i),mu(i,i.return);break;case 27:Y_(i);case 26:case 5:Ir(a,i,n),n&&r===null&&o&4&&F_(i),mu(i,i.return);break;case 12:Ir(a,i,n);break;case 31:Ir(a,i,n),n&&o&4&&Q_(a,i);break;case 13:Ir(a,i,n),n&&o&4&&W_(a,i);break;case 22:i.memoizedState===null&&Ir(a,i,n),mu(i,i.return);break;case 30:break;default:Ir(a,i,n)}t=t.sibling}}function wb(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&zc(n))}function Ob(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zc(e))}function nr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)eT(e,t,n,r),t=t.sibling}function eT(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:nr(e,t,n,r),a&2048&&Ic(9,t);break;case 1:nr(e,t,n,r);break;case 3:nr(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&zc(e)));break;case 12:if(a&2048){nr(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,o=i.id,l=i.onPostCommit;typeof l=="function"&&l(o,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(s){Re(t,t.return,s)}}else nr(e,t,n,r);break;case 31:nr(e,t,n,r);break;case 13:nr(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,o=t.alternate,t.memoizedState!==null?i._visibility&2?nr(e,t,n,r):vu(e,t):i._visibility&2?nr(e,t,n,r):(i._visibility|=2,Do(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&wb(o,t);break;case 24:nr(e,t,n,r),a&2048&&Ob(t.alternate,t);break;default:nr(e,t,n,r)}}function Do(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,o=t,l=n,s=r,u=o.flags;switch(o.tag){case 0:case 11:case 15:Do(i,o,l,s,a),Ic(8,o);break;case 23:break;case 22:var f=o.stateNode;o.memoizedState!==null?f._visibility&2?Do(i,o,l,s,a):vu(i,o):(f._visibility|=2,Do(i,o,l,s,a)),a&&u&2048&&wb(o.alternate,o);break;case 24:Do(i,o,l,s,a),a&&u&2048&&Ob(o.alternate,o);break;default:Do(i,o,l,s,a)}t=t.sibling}}function vu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:vu(n,r),a&2048&&wb(r.alternate,r);break;case 24:vu(n,r),a&2048&&Ob(r.alternate,r);break;default:vu(n,r)}t=t.sibling}}var au=8192;function Co(e,t,n){if(e.subtreeFlags&au)for(e=e.child;e!==null;)tT(e,t,n),e=e.sibling}function tT(e,t,n){switch(e.tag){case 26:Co(e,t,n),e.flags&au&&e.memoizedState!==null&&jD(n,ir,e.memoizedState,e.memoizedProps);break;case 5:Co(e,t,n);break;case 3:case 4:var r=ir;ir=Rd(e.stateNode.containerInfo),Co(e,t,n),ir=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=au,au=16777216,Co(e,t,n),au=r):Co(e,t,n));break;default:Co(e,t,n)}}function nT(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Is(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Tt=r,aT(r,e)}nT(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rT(e),e=e.sibling}function rT(e){switch(e.tag){case 0:case 11:case 15:Is(e),e.flags&2048&&li(9,e,e.return);break;case 3:Is(e);break;case 12:Is(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Xf(e)):Is(e);break;default:Is(e)}}function Xf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Tt=r,aT(r,e)}nT(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:li(8,t,t.return),Xf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Xf(t));break;default:Xf(t)}e=e.sibling}}function aT(e,t){for(;Tt!==null;){var n=Tt;switch(n.tag){case 0:case 11:case 15:li(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:zc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Tt=r;else e:for(n=e;Tt!==null;){r=Tt;var a=r.sibling,i=r.return;if(V_(r),r===n){Tt=null;break e}if(a!==null){a.return=i,Tt=a;break e}Tt=i}}}var B3={getCacheForType:function(e){var t=It(pt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return It(pt).controller.signal}},I3=typeof WeakMap=="function"?WeakMap:Map,_e=0,qe=null,xe=null,Se=0,Pe=0,gn=null,qa=!1,hs=!1,jb=!1,fa=0,lt=0,si=0,Vi=0,Ab=0,An=0,Ml=0,gu=null,un=null,wv=!1,op=0,iT=0,Ed=1/0,_d=null,Wa=null,St=0,Za=null,Pl=null,na=0,Ov=0,jv=null,oT=null,bu=0,Av=null;function Cn(){return _e&2&&Se!==0?Se&-Se:ie.T!==null?_b():yE()}function lT(){if(An===0)if(!(Se&536870912)||Oe){var e=uf;uf<<=1,!(uf&3932160)&&(uf=262144),An=e}else An=536870912;return e=Pn.current,e!==null&&(e.flags|=32),An}function fn(e,t,n){(e===qe&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)&&(Rl(e,0),Fa(e,Se,An,!1)),Dc(e,n),(!(_e&2)||e!==qe)&&(e===qe&&(!(_e&2)&&(Vi|=n),lt===4&&Fa(e,Se,An,!1)),Nr(e))}function sT(e,t,n){if(_e&6)throw Error(U(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||$c(e,t),a=r?q3(e,t):Gy(e,t,!0),i=r;do{if(a===0){hs&&!r&&Fa(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!U3(n)){a=Gy(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var o=0;else o=e.pendingLanes&-536870913,o=o!==0?o:o&536870912?536870912:0;if(o!==0){t=o;e:{var l=e;a=gu;var s=l.current.memoizedState.isDehydrated;if(s&&(Rl(l,o).flags|=256),o=Gy(l,o,!1),o!==2){if(jb&&!s){l.errorRecoveryDisabledLanes|=i,Vi|=i,a=4;break e}i=un,un=a,i!==null&&(un===null?un=i:un.push.apply(un,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){Rl(e,0),Fa(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(U(345));case 4:if((t&4194048)!==t)break;case 6:Fa(r,t,An,!qa);break e;case 2:un=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(a=op+300-En(),10<a)){if(Fa(r,t,An,!qa),Xh(r,0,!0)!==0)break e;na=t,r.timeoutHandle=TT(fS.bind(null,r,n,un,_d,wv,t,An,Vi,Ml,qa,i,"Throttled",-0,0),a);break e}fS(r,n,un,_d,wv,t,An,Vi,Ml,qa,i,null,-0,0)}}break}while(!0);Nr(e)}function fS(e,t,n,r,a,i,o,l,s,u,f,c,h,p){if(e.timeoutHandle=-1,c=t.subtreeFlags,c&8192||(c&16785408)===16785408){c={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qr},tT(t,i,c);var b=(i&62914560)===i?op-En():(i&4194048)===i?iT-En():0;if(b=AD(c,b),b!==null){na=i,e.cancelPendingCommit=b(hS.bind(null,e,t,i,n,r,a,o,l,s,f,c,null,h,p)),Fa(e,i,o,!u);return}}hS(e,t,i,n,r,a,o,l,s)}function U3(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!Mn(i(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Fa(e,t,n,r){t&=~Ab,t&=~Vi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Tn(a),o=1<<i;r[i]=-1,a&=~o}n!==0&&dE(e,n,t)}function lp(){return _e&6?!0:(Uc(0),!1)}function Eb(){if(xe!==null){if(Pe===0)var e=xe.return;else e=xe,Wr=mo=null,fb(e),il=null,Ru=0,e=xe;for(;e!==null;)U_(e.alternate,e),e=e.return;xe=null}}function Rl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,lD(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),na=0,Eb(),qe=e,xe=n=ea(e.current,null),Se=t,Pe=0,gn=null,qa=!1,hs=$c(e,t),jb=!1,Ml=An=Ab=Vi=si=lt=0,un=gu=null,wv=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Tn(r),i=1<<a;t|=e[a],r&=~i}return fa=t,Jh(),n}function uT(e,t){he=null,ie.H=Du,t===ds||t===tp?(t=q1(),Pe=3):t===ab?(t=q1(),Pe=4):Pe=t===xb?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,gn=t,xe===null&&(lt=1,Od(e,Gn(t,e.current)))}function cT(){var e=Pn.current;return e===null?!0:(Se&4194048)===Se?Xn===null:(Se&62914560)===Se||Se&536870912?e===Xn:!1}function fT(){var e=ie.H;return ie.H=Du,e===null?Du:e}function dT(){var e=ie.A;return ie.A=B3,e}function Td(){lt=4,qa||(Se&4194048)!==Se&&Pn.current!==null||(hs=!0),!(si&134217727)&&!(Vi&134217727)||qe===null||Fa(qe,Se,An,!1)}function Gy(e,t,n){var r=_e;_e|=2;var a=fT(),i=dT();(qe!==e||Se!==t)&&(_d=null,Rl(e,t)),t=!1;var o=lt;e:do try{if(Pe!==0&&xe!==null){var l=xe,s=gn;switch(Pe){case 8:Eb(),o=6;break e;case 3:case 2:case 9:case 6:Pn.current===null&&(t=!0);var u=Pe;if(Pe=0,gn=null,Xo(e,l,s,u),n&&hs){o=0;break e}break;default:u=Pe,Pe=0,gn=null,Xo(e,l,s,u)}}H3(),o=lt;break}catch(f){uT(e,f)}while(!0);return t&&e.shellSuspendCounter++,Wr=mo=null,_e=r,ie.H=a,ie.A=i,xe===null&&(qe=null,Se=0,Jh()),o}function H3(){for(;xe!==null;)hT(xe)}function q3(e,t){var n=_e;_e|=2;var r=fT(),a=dT();qe!==e||Se!==t?(_d=null,Ed=En()+500,Rl(e,t)):hs=$c(e,t);e:do try{if(Pe!==0&&xe!==null){t=xe;var i=gn;t:switch(Pe){case 1:Pe=0,gn=null,Xo(e,t,i,1);break;case 2:case 9:if(H1(i)){Pe=0,gn=null,dS(t);break}t=function(){Pe!==2&&Pe!==9||qe!==e||(Pe=7),Nr(e)},i.then(t,t);break e;case 3:Pe=7;break e;case 4:Pe=5;break e;case 7:H1(i)?(Pe=0,gn=null,dS(t)):(Pe=0,gn=null,Xo(e,t,i,7));break;case 5:var o=null;switch(xe.tag){case 26:o=xe.memoizedState;case 5:case 27:var l=xe;if(o?RT(o):l.stateNode.complete){Pe=0,gn=null;var s=l.sibling;if(s!==null)xe=s;else{var u=l.return;u!==null?(xe=u,sp(u)):xe=null}break t}}Pe=0,gn=null,Xo(e,t,i,5);break;case 6:Pe=0,gn=null,Xo(e,t,i,6);break;case 8:Eb(),lt=6;break e;default:throw Error(U(462))}}F3();break}catch(f){uT(e,f)}while(!0);return Wr=mo=null,ie.H=r,ie.A=a,_e=n,xe!==null?0:(qe=null,Se=0,Jh(),lt)}function F3(){for(;xe!==null&&!h$();)hT(xe)}function hT(e){var t=I_(e.alternate,e,fa);e.memoizedProps=e.pendingProps,t===null?sp(e):xe=t}function dS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=iS(n,t,t.pendingProps,t.type,void 0,Se);break;case 11:t=iS(n,t,t.pendingProps,t.type.render,t.ref,Se);break;case 5:fb(t);default:U_(n,t),t=xe=UE(t,fa),t=I_(n,t,fa)}e.memoizedProps=e.pendingProps,t===null?sp(e):xe=t}function Xo(e,t,n,r){Wr=mo=null,fb(t),il=null,Ru=0;var a=t.return;try{if(P3(e,a,t,n,Se)){lt=1,Od(e,Gn(n,e.current)),xe=null;return}}catch(i){if(a!==null)throw xe=a,i;lt=1,Od(e,Gn(n,e.current)),xe=null;return}t.flags&32768?(Oe||r===1?e=!0:hs||Se&536870912?e=!1:(qa=e=!0,(r===2||r===9||r===3||r===6)&&(r=Pn.current,r!==null&&r.tag===13&&(r.flags|=16384))),pT(t,e)):sp(t)}function sp(e){var t=e;do{if(t.flags&32768){pT(t,qa);return}e=t.return;var n=D3(t.alternate,t,fa);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);lt===0&&(lt=5)}function pT(e,t){do{var n=k3(e.alternate,e);if(n!==null){n.flags&=32767,xe=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){xe=e;return}xe=e=n}while(e!==null);lt=6,xe=null}function hS(e,t,n,r,a,i,o,l,s){e.cancelPendingCommit=null;do up();while(St!==0);if(_e&6)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(i=t.lanes|t.childLanes,i|=W0,O$(e,n,i,o,l,s),e===qe&&(xe=qe=null,Se=0),Pl=t,Za=e,na=n,Ov=i,jv=a,oT=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,V3(dd,function(){return bT(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=ie.T,ie.T=null,a=Te.p,Te.p=2,o=_e,_e|=4;try{L3(e,t,n)}finally{_e=o,Te.p=a,ie.T=r}}St=1,yT(),mT(),vT()}}function yT(){if(St===1){St=0;var e=Za,t=Pl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=ie.T,ie.T=null;var r=Te.p;Te.p=2;var a=_e;_e|=4;try{Z_(t,e);var i=Cv,o=RE(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&PE(l.ownerDocument.documentElement,l)){if(s!==null&&Q0(l)){var u=s.start,f=s.end;if(f===void 0&&(f=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(f,l.value.length);else{var c=l.ownerDocument||document,h=c&&c.defaultView||window;if(h.getSelection){var p=h.getSelection(),b=l.textContent.length,v=Math.min(s.start,b),g=s.end===void 0?v:Math.min(s.end,b);!p.extend&&v>g&&(o=g,g=v,v=o);var y=D1(l,v),m=D1(l,g);if(y&&m&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==m.node||p.focusOffset!==m.offset)){var x=c.createRange();x.setStart(y.node,y.offset),p.removeAllRanges(),v>g?(p.addRange(x),p.extend(m.node,m.offset)):(x.setEnd(m.node,m.offset),p.addRange(x))}}}}for(c=[],p=l;p=p.parentNode;)p.nodeType===1&&c.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<c.length;l++){var S=c[l];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}kd=!!Tv,Cv=Tv=null}finally{_e=a,Te.p=r,ie.T=n}}e.current=t,St=2}}function mT(){if(St===2){St=0;var e=Za,t=Pl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=ie.T,ie.T=null;var r=Te.p;Te.p=2;var a=_e;_e|=4;try{K_(e,t.alternate,t)}finally{_e=a,Te.p=r,ie.T=n}}St=3}}function vT(){if(St===4||St===3){St=0,p$();var e=Za,t=Pl,n=na,r=oT;t.subtreeFlags&10256||t.flags&10256?St=5:(St=0,Pl=Za=null,gT(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Wa=null),q0(n),t=t.stateNode,_n&&typeof _n.onCommitFiberRoot=="function")try{_n.onCommitFiberRoot(Rc,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=ie.T,a=Te.p,Te.p=2,ie.T=null;try{for(var i=e.onRecoverableError,o=0;o<r.length;o++){var l=r[o];i(l.value,{componentStack:l.stack})}}finally{ie.T=t,Te.p=a}}na&3&&up(),Nr(e),a=e.pendingLanes,n&261930&&a&42?e===Av?bu++:(bu=0,Av=e):bu=0,Uc(0)}}function gT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zc(t)))}function up(){return yT(),mT(),vT(),bT()}function bT(){if(St!==5)return!1;var e=Za,t=Ov;Ov=0;var n=q0(na),r=ie.T,a=Te.p;try{Te.p=32>n?32:n,ie.T=null,n=jv,jv=null;var i=Za,o=na;if(St=0,Pl=Za=null,na=0,_e&6)throw Error(U(331));var l=_e;if(_e|=4,rT(i.current),eT(i,i.current,o,n),_e=l,Uc(0,!1),_n&&typeof _n.onPostCommitFiberRoot=="function")try{_n.onPostCommitFiberRoot(Rc,i)}catch{}return!0}finally{Te.p=a,ie.T=r,gT(e,t)}}function pS(e,t,n){t=Gn(n,t),t=gv(e.stateNode,t,2),e=Qa(e,t,2),e!==null&&(Dc(e,2),Nr(e))}function Re(e,t,n){if(e.tag===3)pS(e,e,n);else for(;t!==null;){if(t.tag===3){pS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Wa===null||!Wa.has(r))){e=Gn(n,e),n=$_(2),r=Qa(t,n,2),r!==null&&(D_(n,r,t,e),Dc(r,2),Nr(r));break}}t=t.return}}function Yy(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new I3;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(jb=!0,a.add(n),e=G3.bind(null,e,t,n),t.then(e,e))}function G3(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,qe===e&&(Se&n)===n&&(lt===4||lt===3&&(Se&62914560)===Se&&300>En()-op?!(_e&2)&&Rl(e,0):Ab|=n,Ml===Se&&(Ml=0)),Nr(e)}function xT(e,t){t===0&&(t=fE()),e=yo(e,t),e!==null&&(Dc(e,t),Nr(e))}function Y3(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),xT(e,n)}function K3(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(U(314))}r!==null&&r.delete(t),xT(e,n)}function V3(e,t){return U0(e,t)}var Cd=null,ko=null,Ev=!1,Nd=!1,Ky=!1,Ga=0;function Nr(e){e!==ko&&e.next===null&&(ko===null?Cd=ko=e:ko=ko.next=e),Nd=!0,Ev||(Ev=!0,Q3())}function Uc(e,t){if(!Ky&&Nd){Ky=!0;do for(var n=!1,r=Cd;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var o=r.suspendedLanes,l=r.pingedLanes;i=(1<<31-Tn(42|e)+1)-1,i&=a&~(o&~l),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,yS(r,i))}else i=Se,i=Xh(r,r===qe?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||$c(r,i)||(n=!0,yS(r,i));r=r.next}while(n);Ky=!1}}function X3(){ST()}function ST(){Nd=Ev=!1;var e=0;Ga!==0&&oD()&&(e=Ga);for(var t=En(),n=null,r=Cd;r!==null;){var a=r.next,i=wT(r,t);i===0?(r.next=null,n===null?Cd=a:n.next=a,a===null&&(ko=n)):(n=r,(e!==0||i&3)&&(Nd=!0)),r=a}St!==0&&St!==5||Uc(e),Ga!==0&&(Ga=0)}function wT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-Tn(i),l=1<<o,s=a[o];s===-1?(!(l&n)||l&r)&&(a[o]=w$(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(t=qe,n=Se,n=Xh(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Pe===2||Pe===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Sy(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||$c(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Sy(r),q0(n)){case 2:case 8:n=uE;break;case 32:n=dd;break;case 268435456:n=cE;break;default:n=dd}return r=OT.bind(null,e),n=U0(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Sy(r),e.callbackPriority=2,e.callbackNode=null,2}function OT(e,t){if(St!==0&&St!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(up()&&e.callbackNode!==n)return null;var r=Se;return r=Xh(e,e===qe?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(sT(e,r,t),wT(e,En()),e.callbackNode!=null&&e.callbackNode===n?OT.bind(null,e):null)}function yS(e,t){if(up())return null;sT(e,t,!0)}function Q3(){sD(function(){_e&6?U0(sE,X3):ST()})}function _b(){if(Ga===0){var e=Tl;e===0&&(e=sf,sf<<=1,!(sf&261888)&&(sf=256)),Ga=e}return Ga}function mS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:If(""+e)}function vS(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function W3(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=mS((a[hn]||null).action),o=r.submitter;o&&(t=(t=o[hn]||null)?mS(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var l=new Qh("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ga!==0){var s=o?vS(a,o):new FormData(a);mv(n,{pending:!0,data:s,method:a.method,action:i},null,s)}}else typeof i=="function"&&(l.preventDefault(),s=o?vS(a,o):new FormData(a),mv(n,{pending:!0,data:s,method:a.method,action:i},i,s))},currentTarget:a}]})}}for(var Vy=0;Vy<av.length;Vy++){var Xy=av[Vy],Z3=Xy.toLowerCase(),J3=Xy[0].toUpperCase()+Xy.slice(1);hr(Z3,"on"+J3)}hr(DE,"onAnimationEnd");hr(kE,"onAnimationIteration");hr(LE,"onAnimationStart");hr("dblclick","onDoubleClick");hr("focusin","onFocus");hr("focusout","onBlur");hr(y3,"onTransitionRun");hr(m3,"onTransitionStart");hr(v3,"onTransitionCancel");hr(zE,"onTransitionEnd");El("onMouseEnter",["mouseout","mouseover"]);El("onMouseLeave",["mouseout","mouseover"]);El("onPointerEnter",["pointerout","pointerover"]);El("onPointerLeave",["pointerout","pointerover"]);fo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));fo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));fo("onBeforeInput",["compositionend","keypress","textInput","paste"]);fo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));fo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ku="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(" "),eD=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ku));function jT(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var o=r.length-1;0<=o;o--){var l=r[o],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&a.isPropagationStopped())break e;i=l,a.currentTarget=u;try{i(a)}catch(f){pd(f)}a.currentTarget=null,i=s}else for(o=0;o<r.length;o++){if(l=r[o],s=l.instance,u=l.currentTarget,l=l.listener,s!==i&&a.isPropagationStopped())break e;i=l,a.currentTarget=u;try{i(a)}catch(f){pd(f)}a.currentTarget=null,i=s}}}}function be(e,t){var n=t[Qm];n===void 0&&(n=t[Qm]=new Set);var r=e+"__bubble";n.has(r)||(AT(t,e,2,!1),n.add(r))}function Qy(e,t,n){var r=0;t&&(r|=4),AT(n,e,r,t)}var gf="_reactListening"+Math.random().toString(36).slice(2);function Tb(e){if(!e[gf]){e[gf]=!0,mE.forEach(function(n){n!=="selectionchange"&&(eD.has(n)||Qy(n,!1,e),Qy(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[gf]||(t[gf]=!0,Qy("selectionchange",!1,t))}}function AT(e,t,n,r){switch(zT(t)){case 2:var a=TD;break;case 8:a=CD;break;default:a=Pb}n=a.bind(null,t,n,e),a=void 0,!tv||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Wy(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var l=r.stateNode.containerInfo;if(l===a)break;if(o===4)for(o=r.return;o!==null;){var s=o.tag;if((s===3||s===4)&&o.stateNode.containerInfo===a)return;o=o.return}for(;l!==null;){if(o=Io(l),o===null)return;if(s=o.tag,s===5||s===6||s===26||s===27){r=i=o;continue e}l=l.parentNode}}r=r.return}jE(function(){var u=i,f=Y0(n),c=[];e:{var h=BE.get(e);if(h!==void 0){var p=Qh,b=e;switch(e){case"keypress":if(Hf(n)===0)break e;case"keydown":case"keyup":p=K$;break;case"focusin":b="focus",p=Ey;break;case"focusout":b="blur",p=Ey;break;case"beforeblur":case"afterblur":p=Ey;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=A1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=D$;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=Q$;break;case DE:case kE:case LE:p=z$;break;case zE:p=Z$;break;case"scroll":case"scrollend":p=R$;break;case"wheel":p=e3;break;case"copy":case"cut":case"paste":p=I$;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=_1;break;case"toggle":case"beforetoggle":p=n3}var v=(t&4)!==0,g=!v&&(e==="scroll"||e==="scrollend"),y=v?h!==null?h+"Capture":null:h;v=[];for(var m=u,x;m!==null;){var S=m;if(x=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||x===null||y===null||(S=Tu(m,y),S!=null&&v.push(Lu(m,S,x))),g)break;m=m.return}0<v.length&&(h=new p(h,b,null,n,f),c.push({event:h,listeners:v}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==ev&&(b=n.relatedTarget||n.fromElement)&&(Io(b)||b[us]))break e;if((p||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,p?(b=n.relatedTarget||n.toElement,p=u,b=b?Io(b):null,b!==null&&(g=Pc(b),v=b.tag,b!==g||v!==5&&v!==27&&v!==6)&&(b=null)):(p=null,b=u),p!==b)){if(v=A1,S="onMouseLeave",y="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(v=_1,S="onPointerLeave",y="onPointerEnter",m="pointer"),g=p==null?h:nu(p),x=b==null?h:nu(b),h=new v(S,m+"leave",p,n,f),h.target=g,h.relatedTarget=x,S=null,Io(f)===u&&(v=new v(y,m+"enter",b,n,f),v.target=x,v.relatedTarget=g,S=v),g=S,p&&b)t:{for(v=tD,y=p,m=b,x=0,S=y;S;S=v(S))x++;S=0;for(var w=m;w;w=v(w))S++;for(;0<x-S;)y=v(y),x--;for(;0<S-x;)m=v(m),S--;for(;x--;){if(y===m||m!==null&&y===m.alternate){v=y;break t}y=v(y),m=v(m)}v=null}else v=null;p!==null&&gS(c,h,p,v,!1),b!==null&&g!==null&&gS(c,g,b,v,!0)}}e:{if(h=u?nu(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var O=M1;else if(N1(h))if(NE)O=d3;else{O=c3;var A=u3}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&G0(u.elementType)&&(O=M1):O=f3;if(O&&(O=O(e,u))){CE(c,O,n,f);break e}A&&A(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&Jm(h,"number",h.value)}switch(A=u?nu(u):window,e){case"focusin":(N1(A)||A.contentEditable==="true")&&(qo=A,nv=u,cu=null);break;case"focusout":cu=nv=qo=null;break;case"mousedown":rv=!0;break;case"contextmenu":case"mouseup":case"dragend":rv=!1,k1(c,n,f);break;case"selectionchange":if(p3)break;case"keydown":case"keyup":k1(c,n,f)}var _;if(X0)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Ho?_E(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(EE&&n.locale!=="ko"&&(Ho||T!=="onCompositionStart"?T==="onCompositionEnd"&&Ho&&(_=AE()):(Ha=f,K0="value"in Ha?Ha.value:Ha.textContent,Ho=!0)),A=Md(u,T),0<A.length&&(T=new E1(T,e,null,n,f),c.push({event:T,listeners:A}),_?T.data=_:(_=TE(n),_!==null&&(T.data=_)))),(_=a3?i3(e,n):o3(e,n))&&(T=Md(u,"onBeforeInput"),0<T.length&&(A=new E1("onBeforeInput","beforeinput",null,n,f),c.push({event:A,listeners:T}),A.data=_)),W3(c,e,u,n,f)}jT(c,t)})}function Lu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Md(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Tu(e,n),a!=null&&r.unshift(Lu(e,a,i)),a=Tu(e,t),a!=null&&r.push(Lu(e,a,i))),e.tag===3)return r;e=e.return}return[]}function tD(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gS(e,t,n,r,a){for(var i=t._reactName,o=[];n!==null&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(l=l.tag,s!==null&&s===r)break;l!==5&&l!==26&&l!==27||u===null||(s=u,a?(u=Tu(n,i),u!=null&&o.unshift(Lu(n,u,s))):a||(u=Tu(n,i),u!=null&&o.push(Lu(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var nD=/\r\n?/g,rD=/\u0000|\uFFFD/g;function bS(e){return(typeof e=="string"?e:""+e).replace(nD,`
`).replace(rD,"")}function ET(e,t){return t=bS(t),bS(e)===t}function ze(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||_l(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&_l(e,""+r);break;case"className":ff(e,"class",r);break;case"tabIndex":ff(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ff(e,n,r);break;case"style":OE(e,r,i);break;case"data":if(t!=="object"){ff(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=If(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(t!=="input"&&ze(e,t,"name",a.name,a,null),ze(e,t,"formEncType",a.formEncType,a,null),ze(e,t,"formMethod",a.formMethod,a,null),ze(e,t,"formTarget",a.formTarget,a,null)):(ze(e,t,"encType",a.encType,a,null),ze(e,t,"method",a.method,a,null),ze(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=If(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Qr);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=If(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":be("beforetoggle",e),be("toggle",e),Bf(e,"popover",r);break;case"xlinkActuate":Dr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":Dr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":Dr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":Dr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":Dr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":Dr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":Dr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":Dr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":Dr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Bf(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=M$.get(n)||n,Bf(e,n,r))}}function _v(e,t,n,r,a,i){switch(n){case"style":OE(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"children":typeof r=="string"?_l(e,r):(typeof r=="number"||typeof r=="bigint")&&_l(e,""+r);break;case"onScroll":r!=null&&be("scroll",e);break;case"onScrollEnd":r!=null&&be("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Qr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vE.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),i=e[hn]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof r=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):Bf(e,n,r)}}}function Ut(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":be("error",e),be("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var o=n[i];if(o!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:ze(e,t,i,o,n,null)}}a&&ze(e,t,"srcSet",n.srcSet,n,null),r&&ze(e,t,"src",n.src,n,null);return;case"input":be("invalid",e);var l=i=o=a=null,s=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":o=f;break;case"checked":s=f;break;case"defaultChecked":u=f;break;case"value":i=f;break;case"defaultValue":l=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(U(137,t));break;default:ze(e,t,r,f,n,null)}}xE(e,i,l,s,u,o,a,!1);return;case"select":be("invalid",e),r=o=i=null;for(a in n)if(n.hasOwnProperty(a)&&(l=n[a],l!=null))switch(a){case"value":i=l;break;case"defaultValue":o=l;break;case"multiple":r=l;default:ze(e,t,a,l,n,null)}t=i,n=o,e.multiple=!!r,t!=null?nl(e,!!r,t,!1):n!=null&&nl(e,!!r,n,!0);return;case"textarea":be("invalid",e),i=a=r=null;for(o in n)if(n.hasOwnProperty(o)&&(l=n[o],l!=null))switch(o){case"value":r=l;break;case"defaultValue":a=l;break;case"children":i=l;break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(U(91));break;default:ze(e,t,o,l,n,null)}wE(e,r,a,i);return;case"option":for(s in n)if(n.hasOwnProperty(s)&&(r=n[s],r!=null))switch(s){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:ze(e,t,s,r,n,null)}return;case"dialog":be("beforetoggle",e),be("toggle",e),be("cancel",e),be("close",e);break;case"iframe":case"object":be("load",e);break;case"video":case"audio":for(r=0;r<ku.length;r++)be(ku[r],e);break;case"image":be("error",e),be("load",e);break;case"details":be("toggle",e);break;case"embed":case"source":case"link":be("error",e),be("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:ze(e,t,u,r,n,null)}return;default:if(G0(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&_v(e,t,f,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&ze(e,t,l,r,n,null))}function aD(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,o=null,l=null,s=null,u=null,f=null;for(p in n){var c=n[p];if(n.hasOwnProperty(p)&&c!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=c;default:r.hasOwnProperty(p)||ze(e,t,p,null,r,c)}}for(var h in r){var p=r[h];if(c=n[h],r.hasOwnProperty(h)&&(p!=null||c!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":f=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,t));break;default:p!==c&&ze(e,t,h,p,r,c)}}Zm(e,o,l,s,u,f,i,a);return;case"select":p=o=l=h=null;for(i in n)if(s=n[i],n.hasOwnProperty(i)&&s!=null)switch(i){case"value":break;case"multiple":p=s;default:r.hasOwnProperty(i)||ze(e,t,i,null,r,s)}for(a in r)if(i=r[a],s=n[a],r.hasOwnProperty(a)&&(i!=null||s!=null))switch(a){case"value":h=i;break;case"defaultValue":l=i;break;case"multiple":o=i;default:i!==s&&ze(e,t,a,i,r,s)}t=l,n=o,r=p,h!=null?nl(e,!!n,h,!1):!!r!=!!n&&(t!=null?nl(e,!!n,t,!0):nl(e,!!n,n?[]:"",!1));return;case"textarea":p=h=null;for(l in n)if(a=n[l],n.hasOwnProperty(l)&&a!=null&&!r.hasOwnProperty(l))switch(l){case"value":break;case"children":break;default:ze(e,t,l,null,r,a)}for(o in r)if(a=r[o],i=n[o],r.hasOwnProperty(o)&&(a!=null||i!=null))switch(o){case"value":h=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(U(91));break;default:a!==i&&ze(e,t,o,a,r,i)}SE(e,h,p);return;case"option":for(var b in n)if(h=n[b],n.hasOwnProperty(b)&&h!=null&&!r.hasOwnProperty(b))switch(b){case"selected":e.selected=!1;break;default:ze(e,t,b,null,r,h)}for(s in r)if(h=r[s],p=n[s],r.hasOwnProperty(s)&&h!==p&&(h!=null||p!=null))switch(s){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ze(e,t,s,h,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var v in n)h=n[v],n.hasOwnProperty(v)&&h!=null&&!r.hasOwnProperty(v)&&ze(e,t,v,null,r,h);for(u in r)if(h=r[u],p=n[u],r.hasOwnProperty(u)&&h!==p&&(h!=null||p!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(U(137,t));break;default:ze(e,t,u,h,r,p)}return;default:if(G0(t)){for(var g in n)h=n[g],n.hasOwnProperty(g)&&h!==void 0&&!r.hasOwnProperty(g)&&_v(e,t,g,void 0,r,h);for(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h===void 0&&p===void 0||_v(e,t,f,h,r,p);return}}for(var y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&ze(e,t,y,null,r,h);for(c in r)h=r[c],p=n[c],!r.hasOwnProperty(c)||h===p||h==null&&p==null||ze(e,t,c,h,r,p)}function xS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function iD(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],i=a.transferSize,o=a.initiatorType,l=a.duration;if(i&&l&&xS(o)){for(o=0,l=a.responseEnd,r+=1;r<n.length;r++){var s=n[r],u=s.startTime;if(u>l)break;var f=s.transferSize,c=s.initiatorType;f&&xS(c)&&(s=s.responseEnd,o+=f*(s<l?1:(l-u)/(s-u)))}if(--r,t+=8*(i+o)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Tv=null,Cv=null;function Pd(e){return e.nodeType===9?e:e.ownerDocument}function SS(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _T(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Nv(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Zy=null;function oD(){var e=window.event;return e&&e.type==="popstate"?e===Zy?!1:(Zy=e,!0):(Zy=null,!1)}var TT=typeof setTimeout=="function"?setTimeout:void 0,lD=typeof clearTimeout=="function"?clearTimeout:void 0,wS=typeof Promise=="function"?Promise:void 0,sD=typeof queueMicrotask=="function"?queueMicrotask:typeof wS<"u"?function(e){return wS.resolve(null).then(e).catch(uD)}:TT;function uD(e){setTimeout(function(){throw e})}function ci(e){return e==="head"}function OS(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),Dl(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")xu(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,xu(n);for(var i=n.firstChild;i;){var o=i.nextSibling,l=i.nodeName;i[kc]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o}}else n==="body"&&xu(e.ownerDocument.body);n=a}while(n);Dl(t)}function jS(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function Mv(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Mv(n),F0(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function cD(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[kc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=Qn(e.nextSibling),e===null)break}return null}function fD(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Qn(e.nextSibling),e===null))return null;return e}function CT(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Qn(e.nextSibling),e===null))return null;return e}function Pv(e){return e.data==="$?"||e.data==="$~"}function Rv(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function dD(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function Qn(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==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var $v=null;function AS(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Qn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function ES(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function NT(e,t,n){switch(t=Pd(n),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function xu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);F0(e)}var Zn=new Map,_S=new Set;function Rd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var va=Te.d;Te.d={f:hD,r:pD,D:yD,C:mD,L:vD,m:gD,X:xD,S:bD,M:SD};function hD(){var e=va.f(),t=lp();return e||t}function pD(e){var t=cs(e);t!==null&&t.tag===5&&t.type==="form"?O_(t):va.r(e)}var ps=typeof document>"u"?null:document;function MT(e,t,n){var r=ps;if(r&&typeof t=="string"&&t){var a=Fn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),_S.has(a)||(_S.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),Ut(t,"link",e),Ct(t),r.head.appendChild(t)))}}function yD(e){va.D(e),MT("dns-prefetch",e,null)}function mD(e,t){va.C(e,t),MT("preconnect",e,t)}function vD(e,t,n){va.L(e,t,n);var r=ps;if(r&&e&&t){var a='link[rel="preload"][as="'+Fn(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+Fn(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+Fn(n.imageSizes)+'"]')):a+='[href="'+Fn(e)+'"]';var i=a;switch(t){case"style":i=$l(e);break;case"script":i=ys(e)}Zn.has(i)||(e=et({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zn.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(Hc(i))||t==="script"&&r.querySelector(qc(i))||(t=r.createElement("link"),Ut(t,"link",e),Ct(t),r.head.appendChild(t)))}}function gD(e,t){va.m(e,t);var n=ps;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+Fn(r)+'"][href="'+Fn(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=ys(e)}if(!Zn.has(i)&&(e=et({rel:"modulepreload",href:e},t),Zn.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(qc(i)))return}r=n.createElement("link"),Ut(r,"link",e),Ct(r),n.head.appendChild(r)}}}function bD(e,t,n){va.S(e,t,n);var r=ps;if(r&&e){var a=tl(r).hoistableStyles,i=$l(e);t=t||"default";var o=a.get(i);if(!o){var l={loading:0,preload:null};if(o=r.querySelector(Hc(i)))l.loading=5;else{e=et({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zn.get(i))&&Cb(e,n);var s=o=r.createElement("link");Ct(s),Ut(s,"link",e),s._p=new Promise(function(u,f){s.onload=u,s.onerror=f}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Qf(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:l},a.set(i,o)}}}function xD(e,t){va.X(e,t);var n=ps;if(n&&e){var r=tl(n).hoistableScripts,a=ys(e),i=r.get(a);i||(i=n.querySelector(qc(a)),i||(e=et({src:e,async:!0},t),(t=Zn.get(a))&&Nb(e,t),i=n.createElement("script"),Ct(i),Ut(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function SD(e,t){va.M(e,t);var n=ps;if(n&&e){var r=tl(n).hoistableScripts,a=ys(e),i=r.get(a);i||(i=n.querySelector(qc(a)),i||(e=et({src:e,async:!0,type:"module"},t),(t=Zn.get(a))&&Nb(e,t),i=n.createElement("script"),Ct(i),Ut(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function TS(e,t,n,r){var a=(a=Ka.current)?Rd(a):null;if(!a)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=$l(n.href),n=tl(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=$l(n.href);var i=tl(a).hoistableStyles,o=i.get(e);if(o||(a=a.ownerDocument||a,o={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,o),(i=a.querySelector(Hc(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Zn.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zn.set(e,n),i||wD(a,e,n,o.state))),t&&r===null)throw Error(U(528,""));return o}if(t&&r!==null)throw Error(U(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ys(n),n=tl(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,e))}}function $l(e){return'href="'+Fn(e)+'"'}function Hc(e){return'link[rel="stylesheet"]['+e+"]"}function PT(e){return et({},e,{"data-precedence":e.precedence,precedence:null})}function wD(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),Ut(t,"link",n),Ct(t),e.head.appendChild(t))}function ys(e){return'[src="'+Fn(e)+'"]'}function qc(e){return"script[async]"+e}function CS(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+Fn(n.href)+'"]');if(r)return t.instance=r,Ct(r),r;var a=et({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ct(r),Ut(r,"style",a),Qf(r,n.precedence,e),t.instance=r;case"stylesheet":a=$l(n.href);var i=e.querySelector(Hc(a));if(i)return t.state.loading|=4,t.instance=i,Ct(i),i;r=PT(n),(a=Zn.get(a))&&Cb(r,a),i=(e.ownerDocument||e).createElement("link"),Ct(i);var o=i;return o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),Ut(i,"link",r),t.state.loading|=4,Qf(i,n.precedence,e),t.instance=i;case"script":return i=ys(n.src),(a=e.querySelector(qc(i)))?(t.instance=a,Ct(a),a):(r=n,(a=Zn.get(i))&&(r=et({},n),Nb(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ct(a),Ut(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Qf(r,n.precedence,e));return t.instance}function Qf(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,o=0;o<r.length;o++){var l=r[o];if(l.dataset.precedence===t)i=l;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Cb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Nb(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Wf=null;function NS(e,t,n){if(Wf===null){var r=new Map,a=Wf=new Map;a.set(n,r)}else a=Wf,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[kc]||i[Lt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var o=i.getAttribute(t)||"";o=e+o;var l=r.get(o);l?l.push(i):r.set(o,[i])}}return r}function MS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function OD(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function RT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function jD(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=$l(r.href),i=t.querySelector(Hc(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=$d.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Ct(i);return}i=t.ownerDocument||t,r=PT(r),(a=Zn.get(a))&&Cb(r,a),i=i.createElement("link"),Ct(i);var o=i;o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),Ut(i,"link",r),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=$d.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Jy=0;function AD(e,t){return e.stylesheets&&e.count===0&&Zf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Jy===0&&(Jy=62500*iD());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zf(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Jy?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function $d(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Dd=null;function Zf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Dd=new Map,t.forEach(ED,e),Dd=null,$d.call(e))}function ED(e,t){if(!(t.state.loading&4)){var n=Dd.get(e);if(n)var r=n.get(null);else{n=new Map,Dd.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var o=a[i];(o.nodeName==="LINK"||o.getAttribute("media")!=="not all")&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}a=t.instance,o=a.getAttribute("data-precedence"),i=n.get(o)||r,i===r&&n.set(null,a),n.set(o,a),this.count++,r=$d.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var zu={$$typeof:Xr,Provider:null,Consumer:null,_currentValue:Fi,_currentValue2:Fi,_threadCount:0};function _D(e,t,n,r,a,i,o,l,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=wy(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=wy(0),this.hiddenUpdates=wy(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function $T(e,t,n,r,a,i,o,l,s,u,f,c){return e=new _D(e,t,n,o,s,u,f,c,l),t=1,i===!0&&(t|=24),i=On(3,null,null,t),e.current=i,i.stateNode=e,t=nb(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},ib(i),e}function DT(e){return e?(e=Yo,e):Yo}function kT(e,t,n,r,a,i){a=DT(a),r.context===null?r.context=a:r.pendingContext=a,r=Xa(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Qa(e,r,t),n!==null&&(fn(n,e,t),du(n,e,t))}function PS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Mb(e,t){PS(e,t),(e=e.alternate)&&PS(e,t)}function LT(e){if(e.tag===13||e.tag===31){var t=yo(e,67108864);t!==null&&fn(t,e,67108864),Mb(e,67108864)}}function RS(e){if(e.tag===13||e.tag===31){var t=Cn();t=H0(t);var n=yo(e,t);n!==null&&fn(n,e,t),Mb(e,t)}}var kd=!0;function TD(e,t,n,r){var a=ie.T;ie.T=null;var i=Te.p;try{Te.p=2,Pb(e,t,n,r)}finally{Te.p=i,ie.T=a}}function CD(e,t,n,r){var a=ie.T;ie.T=null;var i=Te.p;try{Te.p=8,Pb(e,t,n,r)}finally{Te.p=i,ie.T=a}}function Pb(e,t,n,r){if(kd){var a=Dv(r);if(a===null)Wy(e,t,r,Ld,n),$S(e,r);else if(MD(a,e,t,n,r))r.stopPropagation();else if($S(e,r),t&4&&-1<ND.indexOf(e)){for(;a!==null;){var i=cs(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=wi(i.pendingLanes);if(o!==0){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;o;){var s=1<<31-Tn(o);l.entanglements[1]|=s,o&=~s}Nr(i),!(_e&6)&&(Ed=En()+500,Uc(0))}}break;case 31:case 13:l=yo(i,2),l!==null&&fn(l,i,2),lp(),Mb(i,2)}if(i=Dv(r),i===null&&Wy(e,t,r,Ld,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Wy(e,t,r,null,n)}}function Dv(e){return e=Y0(e),Rb(e)}var Ld=null;function Rb(e){if(Ld=null,e=Io(e),e!==null){var t=Pc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=rE(t),e!==null)return e;e=null}else if(n===31){if(e=aE(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ld=e,null}function zT(e){switch(e){case"beforetoggle":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"toggle":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 2;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"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(y$()){case sE:return 2;case uE:return 8;case dd:case m$:return 32;case cE:return 268435456;default:return 32}default:return 32}}var kv=!1,Ja=null,ei=null,ti=null,Bu=new Map,Iu=new Map,Ma=[],ND="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".split(" ");function $S(e,t){switch(e){case"focusin":case"focusout":Ja=null;break;case"dragenter":case"dragleave":ei=null;break;case"mouseover":case"mouseout":ti=null;break;case"pointerover":case"pointerout":Bu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Iu.delete(t.pointerId)}}function Us(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=cs(t),t!==null&&LT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function MD(e,t,n,r,a){switch(t){case"focusin":return Ja=Us(Ja,e,t,n,r,a),!0;case"dragenter":return ei=Us(ei,e,t,n,r,a),!0;case"mouseover":return ti=Us(ti,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Bu.set(i,Us(Bu.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Iu.set(i,Us(Iu.get(i)||null,e,t,n,r,a)),!0}return!1}function BT(e){var t=Io(e.target);if(t!==null){var n=Pc(t);if(n!==null){if(t=n.tag,t===13){if(t=rE(n),t!==null){e.blockedOn=t,g1(e.priority,function(){RS(n)});return}}else if(t===31){if(t=aE(n),t!==null){e.blockedOn=t,g1(e.priority,function(){RS(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Jf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Dv(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);ev=r,n.target.dispatchEvent(r),ev=null}else return t=cs(n),t!==null&&LT(t),e.blockedOn=n,!1;t.shift()}return!0}function DS(e,t,n){Jf(e)&&n.delete(t)}function PD(){kv=!1,Ja!==null&&Jf(Ja)&&(Ja=null),ei!==null&&Jf(ei)&&(ei=null),ti!==null&&Jf(ti)&&(ti=null),Bu.forEach(DS),Iu.forEach(DS)}function bf(e,t){e.blockedOn===t&&(e.blockedOn=null,kv||(kv=!0,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,PD)))}var xf=null;function kS(e){xf!==e&&(xf=e,Ot.unstable_scheduleCallback(Ot.unstable_NormalPriority,function(){xf===e&&(xf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(Rb(r||n)===null)continue;break}var i=cs(n);i!==null&&(e.splice(t,3),t-=3,mv(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Dl(e){function t(s){return bf(s,e)}Ja!==null&&bf(Ja,e),ei!==null&&bf(ei,e),ti!==null&&bf(ti,e),Bu.forEach(t),Iu.forEach(t);for(var n=0;n<Ma.length;n++){var r=Ma[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ma.length&&(n=Ma[0],n.blockedOn===null);)BT(n),n.blockedOn===null&&Ma.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],i=n[r+1],o=a[hn]||null;if(typeof i=="function")o||kS(n);else if(o){var l=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[hn]||null)l=o.formAction;else if(Rb(a)!==null)continue}else l=o.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),kS(n)}}}function IT(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(o){return a=o})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function $b(e){this._internalRoot=e}cp.prototype.render=$b.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,r=Cn();kT(n,r,e,t,null,null)};cp.prototype.unmount=$b.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;kT(e.current,2,null,e,null,null),lp(),t[us]=null}};function cp(e){this._internalRoot=e}cp.prototype.unstable_scheduleHydration=function(e){if(e){var t=yE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ma.length&&t!==0&&t<Ma[n].priority;n++);Ma.splice(n,0,e),n===0&&BT(e)}};var LS=tE.version;if(LS!=="19.2.7")throw Error(U(527,LS,"19.2.7"));Te.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=s$(t),e=e!==null?iE(e):null,e=e===null?null:e.stateNode,e};var RD={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:ie,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Sf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Sf.isDisabled&&Sf.supportsFiber)try{Rc=Sf.inject(RD),_n=Sf}catch{}}Kh.createRoot=function(e,t){if(!nE(e))throw Error(U(299));var n=!1,r="",a=M_,i=P_,o=R_;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=$T(e,1,!1,null,null,n,r,null,a,i,o,IT),e[us]=t.current,Tb(e),new $b(t)};Kh.hydrateRoot=function(e,t,n){if(!nE(e))throw Error(U(299));var r=!1,a="",i=M_,o=P_,l=R_,s=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(l=n.onRecoverableError),n.formState!==void 0&&(s=n.formState)),t=$T(e,1,!0,t,n??null,r,a,s,i,o,l,IT),t.context=DT(null),n=t.current,r=Cn(),r=H0(r),a=Xa(r),a.callback=null,Qa(n,a,r),n=r,t.current.lanes=n,Dc(t,n),Nr(t),e[us]=t.current,Tb(e),new cp(t)};Kh.version="19.2.7";function UT(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(UT)}catch(e){console.error(e)}}UT(),X2.exports=Kh;var $D=X2.exports;const HT=j.createContext({theme:"dark",toggle:()=>{},setTheme:()=>{}}),zS="esn_theme";function DD(e){document.documentElement.setAttribute("data-theme",e)}function kD({children:e}){const[t,n]=j.useState(()=>localStorage.getItem(zS)==="light"?"light":"dark");j.useEffect(()=>{DD(t),localStorage.setItem(zS,t)},[t]);const r=i=>n(i),a=()=>n(i=>i==="dark"?"light":"dark");return d.jsx(HT.Provider,{value:{theme:t,toggle:a,setTheme:r},children:e})}function LD(){return j.useContext(HT)}/**
 * react-router v7.17.0
 *
 * 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
 */var BS="popstate";function IS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function zD(e={}){function t(r,a){var u;let i=(u=a.state)==null?void 0:u.masked,{pathname:o,search:l,hash:s}=i||r.location;return Lv("",{pathname:o,search:l,hash:s},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:Uu(a)}return ID(t,n,null,e)}function rt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function fr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BD(){return Math.random().toString(36).substring(2,10)}function US(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function Lv(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ms(t):t,state:n,key:t&&t.key||r||BD(),mask:a}}function Uu({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function ms(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function ID(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l="POP",s=null,u=f();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function f(){return(o.state||{idx:null}).idx}function c(){l="POP";let g=f(),y=g==null?null:g-u;u=g,s&&s({action:l,location:v.location,delta:y})}function h(g,y){l="PUSH";let m=IS(g)?g:Lv(v.location,g,y);u=f()+1;let x=US(m,u),S=v.createHref(m.mask||m);try{o.pushState(x,"",S)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(S)}i&&s&&s({action:l,location:v.location,delta:1})}function p(g,y){l="REPLACE";let m=IS(g)?g:Lv(v.location,g,y);u=f();let x=US(m,u),S=v.createHref(m.mask||m);o.replaceState(x,"",S),i&&s&&s({action:l,location:v.location,delta:0})}function b(g){return UD(a,g)}let v={get action(){return l},get location(){return e(a,o)},listen(g){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(BS,c),s=g,()=>{a.removeEventListener(BS,c),s=null}},createHref(g){return t(a,g)},createURL:b,encodeLocation(g){let y=b(g);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(g){return o.go(g)}};return v}function UD(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),rt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Uu(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function qT(e,t,n="/"){return HD(e,t,n,!1)}function HD(e,t,n,r,a){let i=typeof t=="string"?ms(t):t,o=da(i.pathname||"/",n);if(o==null)return null;let l=qD(e),s=null,u=t4(o);for(let f=0;s==null&&f<l.length;++f)s=JD(l[f],u,r);return s}function qD(e){let t=FT(e);return FD(t),t}function FT(e,t=[],n=[],r="",a=!1){let i=(o,l,s=a,u)=>{let f={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&s)return;rt(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let c=ur([r,f.relativePath]),h=n.concat(f);o.children&&o.children.length>0&&(rt(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${c}".`),FT(o.children,t,h,c,s)),!(o.path==null&&!o.index)&&t.push({path:c,score:WD(c,o.index),routesMeta:h})};return e.forEach((o,l)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))i(o,l);else for(let u of GT(o.path))i(o,l,!0,u)}),t}function GT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let o=GT(r.join("/")),l=[];return l.push(...o.map(s=>s===""?i:[i,s].join("/"))),a&&l.push(...o),l.map(s=>e.startsWith("/")&&s===""?"/":s)}function FD(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ZD(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var GD=/^:[\w-]+$/,YD=3,KD=2,VD=1,XD=10,QD=-2,HS=e=>e==="*";function WD(e,t){let n=e.split("/"),r=n.length;return n.some(HS)&&(r+=QD),t&&(r+=KD),n.filter(a=>!HS(a)).reduce((a,i)=>a+(GD.test(i)?YD:i===""?VD:XD),r)}function ZD(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function JD(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",o=[];for(let l=0;l<r.length;++l){let s=r[l],u=l===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",c=zd({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},f),h=s.route;if(!c&&u&&n&&!r[r.length-1].route.index&&(c=zd({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},f)),!c)return null;Object.assign(a,c.params),o.push({params:a,pathname:ur([i,c.pathname]),pathnameBase:i4(ur([i,c.pathnameBase])),route:h}),c.pathnameBase!=="/"&&(i=ur([i,c.pathnameBase]))}return o}function zd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=e4(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],o=i.replace(/(.)\/+$/,"$1"),l=a.slice(1);return{params:r.reduce((u,{paramName:f,isOptional:c},h)=>{if(f==="*"){let b=l[h]||"";o=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const p=l[h];return c&&!p?u[f]=void 0:u[f]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function e4(e,t=!1,n=!0){fr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,l,s,u,f)=>{if(r.push({paramName:l,isOptional:s!=null}),s){let c=f.charAt(u+o.length);return c&&c!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function t4(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return fr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function da(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var n4=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function r4(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?ms(e):e,i;return n?(n=YT(n),n.startsWith("/")?i=qS(n.substring(1),"/"):i=qS(n,t)):i=t,{pathname:i,search:o4(r),hash:l4(a)}}function qS(e,t){let n=Bd(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function em(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function a4(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Db(e){let t=a4(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function fp(e,t,n,r=!1){let a;typeof e=="string"?a=ms(e):(a={...e},rt(!a.pathname||!a.pathname.includes("?"),em("?","pathname","search",a)),rt(!a.pathname||!a.pathname.includes("#"),em("#","pathname","hash",a)),rt(!a.search||!a.search.includes("#"),em("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let c=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),c-=1;a.pathname=h.join("/")}l=c>=0?t[c]:"/"}let s=r4(a,l),u=o&&o!=="/"&&o.endsWith("/"),f=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||f)&&(s.pathname+="/"),s}var YT=e=>e.replace(/\/\/+/g,"/"),ur=e=>YT(e.join("/")),Bd=e=>e.replace(/\/+$/,""),i4=e=>Bd(e).replace(/^\/*/,"/"),o4=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,l4=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,s4=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function u4(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function c4(e){let t=e.map(n=>n.route.path).filter(Boolean);return ur(t)||"/"}var KT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function VT(e,t){let n=e;if(typeof n!="string"||!n4.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(KT)try{let i=new URL(window.location.href),o=n.startsWith("//")?new URL(i.protocol+n):new URL(n),l=da(o.pathname,t);o.origin===i.origin&&l!=null?n=l+o.search+o.hash:a=!0}catch{fr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var XT=["POST","PUT","PATCH","DELETE"];new Set(XT);var f4=["GET",...XT];new Set(f4);var vs=j.createContext(null);vs.displayName="DataRouter";var dp=j.createContext(null);dp.displayName="DataRouterState";var QT=j.createContext(!1);function d4(){return j.useContext(QT)}var WT=j.createContext({isTransitioning:!1});WT.displayName="ViewTransition";var h4=j.createContext(new Map);h4.displayName="Fetchers";var p4=j.createContext(null);p4.displayName="Await";var Rn=j.createContext(null);Rn.displayName="Navigation";var Fc=j.createContext(null);Fc.displayName="Location";var pr=j.createContext({outlet:null,matches:[],isDataRoute:!1});pr.displayName="Route";var kb=j.createContext(null);kb.displayName="RouteError";var ZT="REACT_ROUTER_ERROR",y4="REDIRECT",m4="ROUTE_ERROR_RESPONSE";function v4(e){if(e.startsWith(`${ZT}:${y4}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function g4(e){if(e.startsWith(`${ZT}:${m4}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new s4(t.status,t.statusText,t.data)}catch{}}function b4(e,{relative:t}={}){rt(gs(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=j.useContext(Rn),{hash:a,pathname:i,search:o}=Gc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:ur([n,i])),r.createHref({pathname:l,search:o,hash:a})}function gs(){return j.useContext(Fc)!=null}function Mr(){return rt(gs(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Fc).location}var JT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eC(e){j.useContext(Rn).static||j.useLayoutEffect(e)}function vo(){let{isDataRoute:e}=j.useContext(pr);return e?$4():x4()}function x4(){rt(gs(),"useNavigate() may be used only in the context of a <Router> component.");let e=j.useContext(vs),{basename:t,navigator:n}=j.useContext(Rn),{matches:r}=j.useContext(pr),{pathname:a}=Mr(),i=JSON.stringify(Db(r)),o=j.useRef(!1);return eC(()=>{o.current=!0}),j.useCallback((s,u={})=>{if(fr(o.current,JT),!o.current)return;if(typeof s=="number"){n.go(s);return}let f=fp(s,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:ur([t,f.pathname])),(u.replace?n.replace:n.push)(f,u.state,u)},[t,n,i,a,e])}var S4=j.createContext(null);function w4(e){let t=j.useContext(pr).outlet;return j.useMemo(()=>t&&j.createElement(S4.Provider,{value:e},t),[t,e])}function Gc(e,{relative:t}={}){let{matches:n}=j.useContext(pr),{pathname:r}=Mr(),a=JSON.stringify(Db(n));return j.useMemo(()=>fp(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function O4(e,t){return tC(e,t)}function tC(e,t,n){var g;rt(gs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=j.useContext(Rn),{matches:a}=j.useContext(pr),i=a[a.length-1],o=i?i.params:{},l=i?i.pathname:"/",s=i?i.pathnameBase:"/",u=i&&i.route;{let y=u&&u.path||"";rC(l,!u||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let f=Mr(),c;if(t){let y=typeof t=="string"?ms(t):t;rt(s==="/"||((g=y.pathname)==null?void 0:g.startsWith(s)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${s}" but pathname "${y.pathname}" was given in the \`location\` prop.`),c=y}else c=f;let h=c.pathname||"/",p=h;if(s!=="/"){let y=s.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let b=n&&n.state.matches.length?n.state.matches.map(y=>Object.assign(y,{route:n.manifest[y.route.id]||y.route})):qT(e,{pathname:p});fr(u||b!=null,`No routes matched location "${c.pathname}${c.search}${c.hash}" `),fr(b==null||b[b.length-1].route.element!==void 0||b[b.length-1].route.Component!==void 0||b[b.length-1].route.lazy!==void 0,`Matched leaf route at location "${c.pathname}${c.search}${c.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let v=T4(b&&b.map(y=>Object.assign({},y,{params:Object.assign({},o,y.params),pathname:ur([s,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?s:ur([s,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,n);return t&&v?j.createElement(Fc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...c},navigationType:"POP"}},v):v}function j4(){let e=R4(),t=u4(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=j.createElement(j.Fragment,null,j.createElement("p",null,"💿 Hey developer 👋"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:i},"ErrorBoundary")," or"," ",j.createElement("code",{style:i},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},t),n?j.createElement("pre",{style:a},n):null,o)}var A4=j.createElement(j4,null),nC=class extends j.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=g4(e.digest);n&&(e=n)}let t=e!==void 0?j.createElement(pr.Provider,{value:this.props.routeContext},j.createElement(kb.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?j.createElement(E4,{error:e},t):t}};nC.contextType=QT;var tm=new WeakMap;function E4({children:e,error:t}){let{basename:n}=j.useContext(Rn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=v4(t.digest);if(r){let a=tm.get(t);if(a)throw a;let i=VT(r.location,n);if(KT&&!tm.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const o=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw tm.set(t,o),o}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function _4({routeContext:e,match:t,children:n}){let r=j.useContext(vs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),j.createElement(pr.Provider,{value:e},n)}function T4(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r==null?void 0:r.errors;if(i!=null){let f=a.findIndex(c=>c.route.id&&(i==null?void 0:i[c.route.id])!==void 0);rt(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let o=!1,l=-1;if(n&&r){o=r.renderFallback;for(let f=0;f<a.length;f++){let c=a[f];if((c.route.HydrateFallback||c.route.hydrateFallbackElement)&&(l=f),c.route.id){let{loaderData:h,errors:p}=r,b=c.route.loader&&!h.hasOwnProperty(c.route.id)&&(!p||p[c.route.id]===void 0);if(c.route.lazy||b){n.isStatic&&(o=!0),l>=0?a=a.slice(0,l+1):a=[a[0]];break}}}}let s=n==null?void 0:n.onError,u=r&&s?(f,c)=>{var h,p;s(f,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:c4(r.matches),errorInfo:c})}:void 0;return a.reduceRight((f,c,h)=>{let p,b=!1,v=null,g=null;r&&(p=i&&c.route.id?i[c.route.id]:void 0,v=c.route.errorElement||A4,o&&(l<0&&h===0?(rC("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,g=null):l===h&&(b=!0,g=c.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,h+1)),m=()=>{let x;return p?x=v:b?x=g:c.route.Component?x=j.createElement(c.route.Component,null):c.route.element?x=c.route.element:x=f,j.createElement(_4,{match:c,routeContext:{outlet:f,matches:y,isDataRoute:r!=null},children:x})};return r&&(c.route.ErrorBoundary||c.route.errorElement||h===0)?j.createElement(nC,{location:r.location,revalidation:r.revalidation,component:v,error:p,children:m(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):m()},null)}function Lb(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function C4(e){let t=j.useContext(vs);return rt(t,Lb(e)),t}function N4(e){let t=j.useContext(dp);return rt(t,Lb(e)),t}function M4(e){let t=j.useContext(pr);return rt(t,Lb(e)),t}function zb(e){let t=M4(e),n=t.matches[t.matches.length-1];return rt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function P4(){return zb("useRouteId")}function R4(){var r;let e=j.useContext(kb),t=N4("useRouteError"),n=zb("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function $4(){let{router:e}=C4("useNavigate"),t=zb("useNavigate"),n=j.useRef(!1);return eC(()=>{n.current=!0}),j.useCallback(async(a,i={})=>{fr(n.current,JT),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var FS={};function rC(e,t,n){!t&&!FS[e]&&(FS[e]=!0,fr(!1,n))}j.memo(D4);function D4({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return tC(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function aC({to:e,replace:t,state:n,relative:r}){rt(gs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=j.useContext(Rn);fr(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=j.useContext(pr),{pathname:o}=Mr(),l=vo(),s=fp(e,Db(i),o,r==="path"),u=JSON.stringify(s);return j.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function k4(e){return w4(e.context)}function Ae(e){rt(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function L4({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:o}){rt(!gs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=j.useMemo(()=>({basename:l,navigator:a,static:i,useTransitions:o,future:{}}),[l,a,i,o]);typeof n=="string"&&(n=ms(n));let{pathname:u="/",search:f="",hash:c="",state:h=null,key:p="default",mask:b}=n,v=j.useMemo(()=>{let g=da(u,l);return g==null?null:{location:{pathname:g,search:f,hash:c,state:h,key:p,mask:b},navigationType:r}},[l,u,f,c,h,p,r,b]);return fr(v!=null,`<Router basename="${l}"> is not able to match the URL "${u}${f}${c}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:j.createElement(Rn.Provider,{value:s},j.createElement(Fc.Provider,{children:t,value:v}))}function z4({children:e,location:t}){return O4(zv(e),t)}function zv(e,t=[]){let n=[];return j.Children.forEach(e,(r,a)=>{if(!j.isValidElement(r))return;let i=[...t,a];if(r.type===j.Fragment){n.push.apply(n,zv(r.props.children,i));return}rt(r.type===Ae,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),rt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=zv(r.props.children,i)),n.push(o)}),n}var ed="get",td="application/x-www-form-urlencoded";function hp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function B4(e){return hp(e)&&e.tagName.toLowerCase()==="button"}function I4(e){return hp(e)&&e.tagName.toLowerCase()==="form"}function U4(e){return hp(e)&&e.tagName.toLowerCase()==="input"}function H4(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function q4(e,t){return e.button===0&&(!t||t==="_self")&&!H4(e)}var wf=null;function F4(){if(wf===null)try{new FormData(document.createElement("form"),0),wf=!1}catch{wf=!0}return wf}var G4=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function nm(e){return e!=null&&!G4.has(e)?(fr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${td}"`),null):e}function Y4(e,t){let n,r,a,i,o;if(I4(e)){let l=e.getAttribute("action");r=l?da(l,t):null,n=e.getAttribute("method")||ed,a=nm(e.getAttribute("enctype"))||td,i=new FormData(e)}else if(B4(e)||U4(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let s=e.getAttribute("formaction")||l.getAttribute("action");if(r=s?da(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||ed,a=nm(e.getAttribute("formenctype"))||nm(l.getAttribute("enctype"))||td,i=new FormData(l,e),!F4()){let{name:u,type:f,value:c}=e;if(f==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,c)}}else{if(hp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ed,r=null,a=td,o=e}return i&&a==="text/plain"&&(o=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Bb(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function iC(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&da(a.pathname,t)==="/"?a.pathname=`${Bd(t)}/_root.${r}`:a.pathname=`${Bd(a.pathname)}.${r}`,a}async function K4(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function V4(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function X4(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await K4(i,n);return o.links?o.links():[]}return[]}));return J4(r.flat(1).filter(V4).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function GS(e,t,n,r,a,i){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var f;return n[u].pathname!==s.pathname||((f=n[u].route.path)==null?void 0:f.endsWith("*"))&&n[u].params["*"]!==s.params["*"]};return i==="assets"?t.filter((s,u)=>o(s,u)||l(s,u)):i==="data"?t.filter((s,u)=>{var c;let f=r.routes[s.route.id];if(!f||!f.hasLoader)return!1;if(o(s,u)||l(s,u))return!0;if(s.route.shouldRevalidate){let h=s.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((c=n[0])==null?void 0:c.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Q4(e,t,{includeHydrateFallback:n}={}){return W4(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function W4(e){return[...new Set(e)]}function Z4(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function J4(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(Z4(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function Ib(){let e=j.useContext(vs);return Bb(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ek(){let e=j.useContext(dp);return Bb(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Ub=j.createContext(void 0);Ub.displayName="FrameworkContext";function Hb(){let e=j.useContext(Ub);return Bb(e,"You must render this element inside a <HydratedRouter> element"),e}function tk(e,t){let n=j.useContext(Ub),[r,a]=j.useState(!1),[i,o]=j.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:f,onTouchStart:c}=t,h=j.useRef(null);j.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let v=y=>{y.forEach(m=>{o(m.isIntersecting)})},g=new IntersectionObserver(v,{threshold:.5});return h.current&&g.observe(h.current),()=>{g.disconnect()}}},[e]),j.useEffect(()=>{if(r){let v=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(v)}}},[r]);let p=()=>{a(!0)},b=()=>{a(!1),o(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Hs(l,p),onBlur:Hs(s,b),onMouseEnter:Hs(u,p),onMouseLeave:Hs(f,b),onTouchStart:Hs(c,p)}]:[!1,h,{}]}function Hs(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function nk({page:e,...t}){let n=d4(),{router:r}=Ib(),a=j.useMemo(()=>qT(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?j.createElement(ak,{page:e,matches:a,...t}):j.createElement(ik,{page:e,matches:a,...t}):null}function rk(e){let{manifest:t,routeModules:n}=Hb(),[r,a]=j.useState([]);return j.useEffect(()=>{let i=!1;return X4(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function ak({page:e,matches:t,...n}){let r=Mr(),{future:a}=Hb(),{basename:i}=Ib(),o=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=iC(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,u=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?s=!0:u.push(f.route.id);return s&&u.length>0&&l.searchParams.set("_routes",u.join(",")),[l.pathname+l.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return j.createElement(j.Fragment,null,o.map(l=>j.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function ik({page:e,matches:t,...n}){let r=Mr(),{future:a,manifest:i,routeModules:o}=Hb(),{basename:l}=Ib(),{loaderData:s,matches:u}=ek(),f=j.useMemo(()=>GS(e,t,u,i,r,"data"),[e,t,u,i,r]),c=j.useMemo(()=>GS(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=j.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let v=new Set,g=!1;if(t.forEach(m=>{var S;let x=i.routes[m.route.id];!x||!x.hasLoader||(!f.some(w=>w.route.id===m.route.id)&&m.route.id in s&&((S=o[m.route.id])!=null&&S.shouldRevalidate)||x.hasClientLoader?g=!0:v.add(m.route.id))}),v.size===0)return[];let y=iC(e,l,a.v8_trailingSlashAwareDataRequests,"data");return g&&v.size>0&&y.searchParams.set("_routes",t.filter(m=>v.has(m.route.id)).map(m=>m.route.id).join(",")),[y.pathname+y.search]},[l,a.v8_trailingSlashAwareDataRequests,s,r,i,f,t,e,o]),p=j.useMemo(()=>Q4(c,i),[c,i]),b=rk(c);return j.createElement(j.Fragment,null,h.map(v=>j.createElement("link",{key:v,rel:"prefetch",as:"fetch",href:v,...n})),p.map(v=>j.createElement("link",{key:v,rel:"modulepreload",href:v,...n})),b.map(({key:v,link:g})=>j.createElement("link",{key:v,nonce:n.nonce,...g,crossOrigin:g.crossOrigin??n.crossOrigin})))}function ok(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var lk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{lk&&(window.__reactRouterVersion="7.17.0")}catch{}function sk({basename:e,children:t,useTransitions:n,window:r}){let a=j.useRef();a.current==null&&(a.current=zD({window:r,v5Compat:!0}));let i=a.current,[o,l]=j.useState({action:i.action,location:i.location}),s=j.useCallback(u=>{n===!1?l(u):j.startTransition(()=>l(u))},[n]);return j.useLayoutEffect(()=>i.listen(s),[i,s]),j.createElement(L4,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:n})}var oC=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cr=j.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:o,mask:l,state:s,target:u,to:f,preventScrollReset:c,viewTransition:h,defaultShouldRevalidate:p,...b},v){let{basename:g,navigator:y,useTransitions:m}=j.useContext(Rn),x=typeof f=="string"&&oC.test(f),S=VT(f,g);f=S.to;let w=b4(f,{relative:a}),O=Mr(),A=null;if(l){let P=fp(l,[],O.mask?O.mask.pathname:"/",!0);g!=="/"&&(P.pathname=P.pathname==="/"?g:ur([g,P.pathname])),A=y.createHref(P)}let[_,T,M]=tk(r,b),L=fk(f,{replace:o,mask:l,state:s,target:u,preventScrollReset:c,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:m});function E(P){t&&t(P),P.defaultPrevented||L(P)}let N=!(S.isExternal||i),k=j.createElement("a",{...b,...M,href:(N?A:void 0)||S.absoluteURL||w,onClick:N?E:t,ref:ok(v,T),target:u,"data-discover":!x&&n==="render"?"true":void 0});return _&&!x?j.createElement(j.Fragment,null,k,j.createElement(nk,{page:w})):k});cr.displayName="Link";var Bv=j.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:o,viewTransition:l,children:s,...u},f){let c=Gc(o,{relative:u.relative}),h=Mr(),p=j.useContext(dp),{navigator:b,basename:v}=j.useContext(Rn),g=p!=null&&mk(c)&&l===!0,y=b.encodeLocation?b.encodeLocation(c).pathname:c.pathname,m=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(m=m.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&v&&(x=da(x,v)||x);const S=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let w=m===y||!a&&m.startsWith(y)&&m.charAt(S)==="/",O=x!=null&&(x===y||!a&&x.startsWith(y)&&x.charAt(y.length)==="/"),A={isActive:w,isPending:O,isTransitioning:g},_=w?t:void 0,T;typeof r=="function"?T=r(A):T=[r,w?"active":null,O?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let M=typeof i=="function"?i(A):i;return j.createElement(cr,{...u,"aria-current":_,className:T,ref:f,style:M,to:o,viewTransition:l},typeof s=="function"?s(A):s)});Bv.displayName="NavLink";var uk=j.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=ed,action:l,onSubmit:s,relative:u,preventScrollReset:f,viewTransition:c,defaultShouldRevalidate:h,...p},b)=>{let{useTransitions:v}=j.useContext(Rn),g=pk(),y=yk(l,{relative:u}),m=o.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&oC.test(l),S=w=>{if(s&&s(w),w.defaultPrevented)return;w.preventDefault();let O=w.nativeEvent.submitter,A=(O==null?void 0:O.getAttribute("formmethod"))||o,_=()=>g(O||w.currentTarget,{fetcherKey:t,method:A,navigate:n,replace:a,state:i,relative:u,preventScrollReset:f,viewTransition:c,defaultShouldRevalidate:h});v&&n!==!1?j.startTransition(()=>_()):_()};return j.createElement("form",{ref:b,method:m,action:y,onSubmit:r?s:S,...p,"data-discover":!x&&e==="render"?"true":void 0})});uk.displayName="Form";function ck(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function lC(e){let t=j.useContext(vs);return rt(t,ck(e)),t}function fk(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s,useTransitions:u}={}){let f=vo(),c=Mr(),h=Gc(e,{relative:o});return j.useCallback(p=>{if(q4(p,t)){p.preventDefault();let b=n!==void 0?n:Uu(c)===Uu(h),v=()=>f(e,{replace:b,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s});u?j.startTransition(()=>v()):v()}},[c,f,h,n,r,a,t,e,i,o,l,s,u])}var dk=0,hk=()=>`__${String(++dk)}__`;function pk(){let{router:e}=lC("useSubmit"),{basename:t}=j.useContext(Rn),n=P4(),r=e.fetch,a=e.navigate;return j.useCallback(async(i,o={})=>{let{action:l,method:s,encType:u,formData:f,body:c}=Y4(i,t);if(o.navigate===!1){let h=o.fetcherKey||hk();await r(h,n,o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:c,formMethod:o.method||s,formEncType:o.encType||u,flushSync:o.flushSync})}else await a(o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:f,body:c,formMethod:o.method||s,formEncType:o.encType||u,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[r,a,t,n])}function yk(e,{relative:t}={}){let{basename:n}=j.useContext(Rn),r=j.useContext(pr);rt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Gc(e||".",{relative:t})},o=Mr();if(e==null){i.search=o.search;let l=new URLSearchParams(i.search),s=l.getAll("index");if(s.some(f=>f==="")){l.delete("index"),s.filter(c=>c).forEach(c=>l.append("index",c));let f=l.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:ur([n,i.pathname])),Uu(i)}function mk(e,{relative:t}={}){let n=j.useContext(WT);rt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lC("useViewTransitionState"),a=Gc(e,{relative:t});if(!n.isTransitioning)return!1;let i=da(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=da(n.nextLocation.pathname,r)||n.nextLocation.pathname;return zd(a.pathname,o)!=null||zd(a.pathname,i)!=null}var bs=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(){}},Di,Pa,dl,C2,vk=(C2=class extends bs{constructor(){super();te(this,Di);te(this,Pa);te(this,dl);V(this,dl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){C(this,Pa)||this.setEventListener(C(this,dl))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,Pa))==null||t.call(this),V(this,Pa,void 0))}setEventListener(t){var n;V(this,dl,t),(n=C(this,Pa))==null||n.call(this),V(this,Pa,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){C(this,Di)!==t&&(V(this,Di,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof C(this,Di)=="boolean"?C(this,Di):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Di=new WeakMap,Pa=new WeakMap,dl=new WeakMap,C2),qb=new vk,gk={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Ra,R0,N2,bk=(N2=class{constructor(){te(this,Ra,gk);te(this,R0,!1)}setTimeoutProvider(e){V(this,Ra,e)}setTimeout(e,t){return C(this,Ra).setTimeout(e,t)}clearTimeout(e){C(this,Ra).clearTimeout(e)}setInterval(e,t){return C(this,Ra).setInterval(e,t)}clearInterval(e){C(this,Ra).clearInterval(e)}},Ra=new WeakMap,R0=new WeakMap,N2),Ci=new bk;function xk(e){setTimeout(e,0)}var Sk=typeof window>"u"||"Deno"in globalThis;function Qt(){}function wk(e,t){return typeof e=="function"?e(t):e}function Iv(e){return typeof e=="number"&&e>=0&&e!==1/0}function sC(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ni(e,t){return typeof e=="function"?e(t):e}function Sn(e,t){return typeof e=="function"?e(t):e}function YS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==Fb(o,t.options))return!1}else if(!Hu(t.queryKey,o))return!1}if(n!=="all"){const s=t.isActive();if(n==="active"&&!s||n==="inactive"&&s)return!1}return!(typeof l=="boolean"&&t.isStale()!==l||a&&a!==t.state.fetchStatus||i&&!i(t))}function KS(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ro(t.options.mutationKey)!==ro(i))return!1}else if(!Hu(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function Fb(e,t){return((t==null?void 0:t.queryKeyHashFn)||ro)(e)}function ro(e){return JSON.stringify(e,(t,n)=>Uv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Hu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Hu(e[n],t[n])):!1}var Ok=Object.prototype.hasOwnProperty;function uC(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=VS(e)&&VS(t);if(!r&&!(Uv(e)&&Uv(t)))return t;const i=(r?e:Object.keys(e)).length,o=r?t:Object.keys(t),l=o.length,s=r?new Array(l):{};let u=0;for(let f=0;f<l;f++){const c=r?f:o[f],h=e[c],p=t[c];if(h===p){s[c]=h,(r?f<i:Ok.call(e,c))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){s[c]=p;continue}const b=uC(h,p,n+1);s[c]=b,b===h&&u++}return i===l&&u===i?e:s}function Id(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function VS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Uv(e){if(!XS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!XS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function XS(e){return Object.prototype.toString.call(e)==="[object Object]"}function jk(e){return new Promise(t=>{Ci.setTimeout(t,e)})}function Hv(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?uC(e,t):t}function Ak(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function Ek(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Gb=Symbol();function cC(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Gb?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function Yb(e,t){return typeof e=="function"?e(...t):!!e}function _k(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var qu=(()=>{let e=()=>Sk;return{isServer(){return e()},setIsServer(t){e=t}}})();function qv(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var Tk=xk;function Ck(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=Tk;const i=l=>{t?e.push(l):a(()=>{n(l)})},o=()=>{const l=e;e=[],l.length&&a(()=>{r(()=>{l.forEach(s=>{n(s)})})})};return{batch:l=>{let s;t++;try{s=l()}finally{t--,t||o()}return s},batchCalls:l=>(...s)=>{i(()=>{l(...s)})},schedule:i,setNotifyFunction:l=>{n=l},setBatchNotifyFunction:l=>{r=l},setScheduler:l=>{a=l}}}var xt=Ck(),hl,$a,pl,M2,Nk=(M2=class extends bs{constructor(){super();te(this,hl,!0);te(this,$a);te(this,pl);V(this,pl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){C(this,$a)||this.setEventListener(C(this,pl))}onUnsubscribe(){var t;this.hasListeners()||((t=C(this,$a))==null||t.call(this),V(this,$a,void 0))}setEventListener(t){var n;V(this,pl,t),(n=C(this,$a))==null||n.call(this),V(this,$a,t(this.setOnline.bind(this)))}setOnline(t){C(this,hl)!==t&&(V(this,hl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return C(this,hl)}},hl=new WeakMap,$a=new WeakMap,pl=new WeakMap,M2),Ud=new Nk;function Mk(e){return Math.min(1e3*2**e,3e4)}function fC(e){return(e??"online")==="online"?Ud.isOnline():!0}var Fv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function dC(e){let t=!1,n=0,r;const a=qv(),i=()=>a.status!=="pending",o=v=>{var g;if(!i()){const y=new Fv(v);h(y),(g=e.onCancel)==null||g.call(e,y)}},l=()=>{t=!0},s=()=>{t=!1},u=()=>qb.isFocused()&&(e.networkMode==="always"||Ud.isOnline())&&e.canRun(),f=()=>fC(e.networkMode)&&e.canRun(),c=v=>{i()||(r==null||r(),a.resolve(v))},h=v=>{i()||(r==null||r(),a.reject(v))},p=()=>new Promise(v=>{var g;r=y=>{(i()||u())&&v(y)},(g=e.onPause)==null||g.call(e)}).then(()=>{var v;r=void 0,i()||(v=e.onContinue)==null||v.call(e)}),b=()=>{if(i())return;let v;const g=n===0?e.initialPromise:void 0;try{v=g??e.fn()}catch(y){v=Promise.reject(y)}Promise.resolve(v).then(c).catch(y=>{var O;if(i())return;const m=e.retry??(qu.isServer()?0:3),x=e.retryDelay??Mk,S=typeof x=="function"?x(n,y):x,w=m===!0||typeof m=="number"&&n<m||typeof m=="function"&&m(n,y);if(t||!w){h(y);return}n++,(O=e.onFail)==null||O.call(e,n,y),jk(S).then(()=>u()?void 0:p()).then(()=>{t?h(y):b()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(r==null||r(),a),cancelRetry:l,continueRetry:s,canStart:f,start:()=>(f()?b():p().then(b),a)}}var ki,P2,hC=(P2=class{constructor(){te(this,ki)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Iv(this.gcTime)&&V(this,ki,Ci.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(qu.isServer()?1/0:5*60*1e3))}clearGcTimeout(){C(this,ki)!==void 0&&(Ci.clearTimeout(C(this,ki)),V(this,ki,void 0))}},ki=new WeakMap,P2);function Pk(e){return{onFetch:(t,n)=>{var f,c,h,p,b;const r=t.options,a=(h=(c=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:c.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((b=t.state.data)==null?void 0:b.pageParams)||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let v=!1;const g=x=>{_k(x,()=>t.signal,()=>v=!0)},y=cC(t.options,t.fetchOptions),m=async(x,S,w)=>{if(v)return Promise.reject(t.signal.reason);if(S==null&&x.pages.length)return Promise.resolve(x);const A=(()=>{const L={client:t.client,queryKey:t.queryKey,pageParam:S,direction:w?"backward":"forward",meta:t.options.meta};return g(L),L})(),_=await y(A),{maxPages:T}=t.options,M=w?Ek:Ak;return{pages:M(x.pages,_,T),pageParams:M(x.pageParams,S,T)}};if(a&&i.length){const x=a==="backward",S=x?Rk:QS,w={pages:i,pageParams:o},O=S(r,w);l=await m(w,O,x)}else{const x=e??i.length;do{const S=s===0?o[0]??r.initialPageParam:QS(r,l);if(s>0&&S==null)break;l=await m(l,S),s++}while(s<x)}return l};t.options.persister?t.fetchFn=()=>{var v,g;return(g=(v=t.options).persister)==null?void 0:g.call(v,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function QS(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Rk(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var yl,Li,ml,Bn,zi,Et,_c,Bi,xn,pC,Ur,R2,$k=(R2=class extends hC{constructor(t){super();te(this,xn);te(this,yl);te(this,Li);te(this,ml);te(this,Bn);te(this,zi);te(this,Et);te(this,_c);te(this,Bi);V(this,Bi,!1),V(this,_c,t.defaultOptions),this.setOptions(t.options),this.observers=[],V(this,zi,t.client),V(this,Bn,C(this,zi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,V(this,Li,ZS(this.options)),this.state=t.state??C(this,Li),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return C(this,yl)}get promise(){var t;return(t=C(this,Et))==null?void 0:t.promise}setOptions(t){if(this.options={...C(this,_c),...t},t!=null&&t._type&&V(this,yl,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=ZS(this.options);n.data!==void 0&&(this.setState(WS(n.data,n.dataUpdatedAt)),V(this,Li,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&C(this,Bn).remove(this)}setData(t,n){const r=Hv(this.state.data,t,this.options);return pe(this,xn,Ur).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){pe(this,xn,Ur).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=C(this,Et))==null?void 0:r.promise;return(a=C(this,Et))==null||a.cancel(t),n?n.then(Qt).catch(Qt):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return C(this,Li)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Sn(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Gb||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>ni(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:!sC(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Et))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=C(this,Et))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),C(this,Bn).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(C(this,Et)&&(C(this,Bi)||pe(this,xn,pC).call(this)?C(this,Et).cancel({revert:!0}):C(this,Et).cancelRetry()),this.scheduleGc()),C(this,Bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||pe(this,xn,Ur).call(this,{type:"invalidate"})}async fetch(t,n){var u,f,c,h,p,b,v,g,y,m,x;if(this.state.fetchStatus!=="idle"&&((u=C(this,Et))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(C(this,Et))return C(this,Et).continueRetry(),C(this,Et).promise}if(t&&this.setOptions(t),!this.options.queryFn){const S=this.observers.find(w=>w.options.queryFn);S&&this.setOptions(S.options)}const r=new AbortController,a=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(V(this,Bi,!0),r.signal)})},i=()=>{const S=cC(this.options,n),O=(()=>{const A={client:C(this,zi),queryKey:this.queryKey,meta:this.meta};return a(A),A})();return V(this,Bi,!1),this.options.persister?this.options.persister(S,O,this):S(O)},l=(()=>{const S={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:C(this,zi),state:this.state,fetchFn:i};return a(S),S})(),s=C(this,yl)==="infinite"?Pk(this.options.pages):this.options.behavior;s==null||s.onFetch(l,this),V(this,ml,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=l.fetchOptions)==null?void 0:f.meta))&&pe(this,xn,Ur).call(this,{type:"fetch",meta:(c=l.fetchOptions)==null?void 0:c.meta}),V(this,Et,dC({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:S=>{S instanceof Fv&&S.revert&&this.setState({...C(this,ml),fetchStatus:"idle"}),r.abort()},onFail:(S,w)=>{pe(this,xn,Ur).call(this,{type:"failed",failureCount:S,error:w})},onPause:()=>{pe(this,xn,Ur).call(this,{type:"pause"})},onContinue:()=>{pe(this,xn,Ur).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const S=await C(this,Et).start();if(S===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(S),(p=(h=C(this,Bn).config).onSuccess)==null||p.call(h,S,this),(v=(b=C(this,Bn).config).onSettled)==null||v.call(b,S,this.state.error,this),S}catch(S){if(S instanceof Fv){if(S.silent)return C(this,Et).promise;if(S.revert){if(this.state.data===void 0)throw S;return this.state.data}}throw pe(this,xn,Ur).call(this,{type:"error",error:S}),(y=(g=C(this,Bn).config).onError)==null||y.call(g,S,this),(x=(m=C(this,Bn).config).onSettled)==null||x.call(m,this.state.data,S,this),S}finally{this.scheduleGc()}}},yl=new WeakMap,Li=new WeakMap,ml=new WeakMap,Bn=new WeakMap,zi=new WeakMap,Et=new WeakMap,_c=new WeakMap,Bi=new WeakMap,xn=new WeakSet,pC=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ur=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...yC(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...WS(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return V(this,ml,t.manual?a:void 0),a;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),C(this,Bn).notify({query:this,type:"updated",action:t})})},R2);function yC(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:fC(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function WS(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function ZS(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var on,we,Tc,Vt,Ii,vl,Fr,Da,Cc,gl,bl,Ui,Hi,ka,xl,Ne,iu,Gv,Yv,Kv,Vv,Xv,Qv,Wv,mC,$2,Dk=($2=class extends bs{constructor(t,n){super();te(this,Ne);te(this,on);te(this,we);te(this,Tc);te(this,Vt);te(this,Ii);te(this,vl);te(this,Fr);te(this,Da);te(this,Cc);te(this,gl);te(this,bl);te(this,Ui);te(this,Hi);te(this,ka);te(this,xl,new Set);this.options=n,V(this,on,t),V(this,Da,null),V(this,Fr,qv()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(C(this,we).addObserver(this),JS(C(this,we),this.options)?pe(this,Ne,iu).call(this):this.updateResult(),pe(this,Ne,Vv).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Zv(C(this,we),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Zv(C(this,we),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,pe(this,Ne,Xv).call(this),pe(this,Ne,Qv).call(this),C(this,we).removeObserver(this)}setOptions(t){const n=this.options,r=C(this,we);if(this.options=C(this,on).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Sn(this.options.enabled,C(this,we))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");pe(this,Ne,Wv).call(this),C(this,we).setOptions(this.options),n._defaulted&&!Id(this.options,n)&&C(this,on).getQueryCache().notify({type:"observerOptionsUpdated",query:C(this,we),observer:this});const a=this.hasListeners();a&&ew(C(this,we),r,this.options,n)&&pe(this,Ne,iu).call(this),this.updateResult(),a&&(C(this,we)!==r||Sn(this.options.enabled,C(this,we))!==Sn(n.enabled,C(this,we))||ni(this.options.staleTime,C(this,we))!==ni(n.staleTime,C(this,we)))&&pe(this,Ne,Gv).call(this);const i=pe(this,Ne,Yv).call(this);a&&(C(this,we)!==r||Sn(this.options.enabled,C(this,we))!==Sn(n.enabled,C(this,we))||i!==C(this,ka))&&pe(this,Ne,Kv).call(this,i)}getOptimisticResult(t){const n=C(this,on).getQueryCache().build(C(this,on),t),r=this.createResult(n,t);return Lk(this,r)&&(V(this,Vt,r),V(this,vl,this.options),V(this,Ii,C(this,we).state)),r}getCurrentResult(){return C(this,Vt)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&C(this,Fr).status==="pending"&&C(this,Fr).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){C(this,xl).add(t)}getCurrentQuery(){return C(this,we)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=C(this,on).defaultQueryOptions(t),r=C(this,on).getQueryCache().build(C(this,on),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return pe(this,Ne,iu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),C(this,Vt)))}createResult(t,n){var T;const r=C(this,we),a=this.options,i=C(this,Vt),o=C(this,Ii),l=C(this,vl),u=t!==r?t.state:C(this,Tc),{state:f}=t;let c={...f},h=!1,p;if(n._optimisticResults){const M=this.hasListeners(),L=!M&&JS(t,n),E=M&&ew(t,r,n,a);(L||E)&&(c={...c,...yC(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(c.fetchStatus="idle")}let{error:b,errorUpdatedAt:v,status:g}=c;p=c.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&g==="pending"){let M;i!=null&&i.isPlaceholderData&&n.placeholderData===(l==null?void 0:l.placeholderData)?(M=i.data,y=!0):M=typeof n.placeholderData=="function"?n.placeholderData((T=C(this,bl))==null?void 0:T.state.data,C(this,bl)):n.placeholderData,M!==void 0&&(g="success",p=Hv(i==null?void 0:i.data,M,n),h=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(o==null?void 0:o.data)&&n.select===C(this,Cc))p=C(this,gl);else try{V(this,Cc,n.select),p=n.select(p),p=Hv(i==null?void 0:i.data,p,n),V(this,gl,p),V(this,Da,null)}catch(M){V(this,Da,M)}C(this,Da)&&(b=C(this,Da),p=C(this,gl),v=Date.now(),g="error");const m=c.fetchStatus==="fetching",x=g==="pending",S=g==="error",w=x&&m,O=p!==void 0,_={status:g,fetchStatus:c.fetchStatus,isPending:x,isSuccess:g==="success",isError:S,isInitialLoading:w,isLoading:w,data:p,dataUpdatedAt:c.dataUpdatedAt,error:b,errorUpdatedAt:v,failureCount:c.fetchFailureCount,failureReason:c.fetchFailureReason,errorUpdateCount:c.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:c.dataUpdateCount>u.dataUpdateCount||c.errorUpdateCount>u.errorUpdateCount,isFetching:m,isRefetching:m&&!x,isLoadingError:S&&!O,isPaused:c.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:S&&O,isStale:Kb(t,n),refetch:this.refetch,promise:C(this,Fr),isEnabled:Sn(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const M=_.data!==void 0,L=_.status==="error"&&!M,E=P=>{L?P.reject(_.error):M&&P.resolve(_.data)},N=()=>{const P=V(this,Fr,_.promise=qv());E(P)},k=C(this,Fr);switch(k.status){case"pending":t.queryHash===r.queryHash&&E(k);break;case"fulfilled":(L||_.data!==k.value)&&N();break;case"rejected":(!L||_.error!==k.reason)&&N();break}}return _}updateResult(){const t=C(this,Vt),n=this.createResult(C(this,we),this.options);if(V(this,Ii,C(this,we).state),V(this,vl,this.options),C(this,Ii).data!==void 0&&V(this,bl,C(this,we)),Id(n,t))return;V(this,Vt,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!C(this,xl).size)return!0;const o=new Set(i??C(this,xl));return this.options.throwOnError&&o.add("error"),Object.keys(C(this,Vt)).some(l=>{const s=l;return C(this,Vt)[s]!==t[s]&&o.has(s)})};pe(this,Ne,mC).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&pe(this,Ne,Vv).call(this)}},on=new WeakMap,we=new WeakMap,Tc=new WeakMap,Vt=new WeakMap,Ii=new WeakMap,vl=new WeakMap,Fr=new WeakMap,Da=new WeakMap,Cc=new WeakMap,gl=new WeakMap,bl=new WeakMap,Ui=new WeakMap,Hi=new WeakMap,ka=new WeakMap,xl=new WeakMap,Ne=new WeakSet,iu=function(t){pe(this,Ne,Wv).call(this);let n=C(this,we).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Qt)),n},Gv=function(){pe(this,Ne,Xv).call(this);const t=ni(this.options.staleTime,C(this,we));if(qu.isServer()||C(this,Vt).isStale||!Iv(t))return;const r=sC(C(this,Vt).dataUpdatedAt,t)+1;V(this,Ui,Ci.setTimeout(()=>{C(this,Vt).isStale||this.updateResult()},r))},Yv=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(C(this,we)):this.options.refetchInterval)??!1},Kv=function(t){pe(this,Ne,Qv).call(this),V(this,ka,t),!(qu.isServer()||Sn(this.options.enabled,C(this,we))===!1||!Iv(C(this,ka))||C(this,ka)===0)&&V(this,Hi,Ci.setInterval(()=>{(this.options.refetchIntervalInBackground||qb.isFocused())&&pe(this,Ne,iu).call(this)},C(this,ka)))},Vv=function(){pe(this,Ne,Gv).call(this),pe(this,Ne,Kv).call(this,pe(this,Ne,Yv).call(this))},Xv=function(){C(this,Ui)!==void 0&&(Ci.clearTimeout(C(this,Ui)),V(this,Ui,void 0))},Qv=function(){C(this,Hi)!==void 0&&(Ci.clearInterval(C(this,Hi)),V(this,Hi,void 0))},Wv=function(){const t=C(this,on).getQueryCache().build(C(this,on),this.options);if(t===C(this,we))return;const n=C(this,we);V(this,we,t),V(this,Tc,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},mC=function(t){xt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(C(this,Vt))}),C(this,on).getQueryCache().notify({query:C(this,we),type:"observerResultsUpdated"})})},$2);function kk(e,t){return Sn(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Sn(t.retryOnMount,e)===!1)}function JS(e,t){return kk(e,t)||e.state.data!==void 0&&Zv(e,t,t.refetchOnMount)}function Zv(e,t,n){if(Sn(t.enabled,e)!==!1&&ni(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&Kb(e,t)}return!1}function ew(e,t,n,r){return(e!==t||Sn(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&Kb(e,n)}function Kb(e,t){return Sn(t.enabled,e)!==!1&&e.isStaleByTime(ni(t.staleTime,e))}function Lk(e,t){return!Id(e.getCurrentResult(),t)}var Nc,gr,Ft,qi,br,Oa,D2,zk=(D2=class extends hC{constructor(t){super();te(this,br);te(this,Nc);te(this,gr);te(this,Ft);te(this,qi);V(this,Nc,t.client),this.mutationId=t.mutationId,V(this,Ft,t.mutationCache),V(this,gr,[]),this.state=t.state||vC(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){C(this,gr).includes(t)||(C(this,gr).push(t),this.clearGcTimeout(),C(this,Ft).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){V(this,gr,C(this,gr).filter(n=>n!==t)),this.scheduleGc(),C(this,Ft).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){C(this,gr).length||(this.state.status==="pending"?this.scheduleGc():C(this,Ft).remove(this))}continue(){var t;return((t=C(this,qi))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,s,u,f,c,h,p,b,v,g,y,m,x,S,w,O,A;const n=()=>{pe(this,br,Oa).call(this,{type:"continue"})},r={client:C(this,Nc),meta:this.options.meta,mutationKey:this.options.mutationKey};V(this,qi,dC({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(_,T)=>{pe(this,br,Oa).call(this,{type:"failed",failureCount:_,error:T})},onPause:()=>{pe(this,br,Oa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>C(this,Ft).canRun(this)}));const a=this.state.status==="pending",i=!C(this,qi).canStart();try{if(a)n();else{pe(this,br,Oa).call(this,{type:"pending",variables:t,isPaused:i}),C(this,Ft).config.onMutate&&await C(this,Ft).config.onMutate(t,this,r);const T=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t,r));T!==this.state.context&&pe(this,br,Oa).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const _=await C(this,qi).start();return await((u=(s=C(this,Ft).config).onSuccess)==null?void 0:u.call(s,_,t,this.state.context,this,r)),await((c=(f=this.options).onSuccess)==null?void 0:c.call(f,_,t,this.state.context,r)),await((p=(h=C(this,Ft).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this,r)),await((v=(b=this.options).onSettled)==null?void 0:v.call(b,_,null,t,this.state.context,r)),pe(this,br,Oa).call(this,{type:"success",data:_}),_}catch(_){try{await((y=(g=C(this,Ft).config).onError)==null?void 0:y.call(g,_,t,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((x=(m=this.options).onError)==null?void 0:x.call(m,_,t,this.state.context,r))}catch(T){Promise.reject(T)}try{await((w=(S=C(this,Ft).config).onSettled)==null?void 0:w.call(S,void 0,_,this.state.variables,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((A=(O=this.options).onSettled)==null?void 0:A.call(O,void 0,_,t,this.state.context,r))}catch(T){Promise.reject(T)}throw pe(this,br,Oa).call(this,{type:"error",error:_}),_}finally{C(this,Ft).runNext(this)}}},Nc=new WeakMap,gr=new WeakMap,Ft=new WeakMap,qi=new WeakMap,br=new WeakSet,Oa=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,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{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),xt.batch(()=>{C(this,gr).forEach(r=>{r.onMutationUpdate(t)}),C(this,Ft).notify({mutation:this,type:"updated",action:t})})},D2);function vC(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gr,ar,Mc,k2,Bk=(k2=class extends bs{constructor(t={}){super();te(this,Gr);te(this,ar);te(this,Mc);this.config=t,V(this,Gr,new Set),V(this,ar,new Map),V(this,Mc,0)}build(t,n,r){const a=new zk({client:t,mutationCache:this,mutationId:++rf(this,Mc)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){C(this,Gr).add(t);const n=Of(t);if(typeof n=="string"){const r=C(this,ar).get(n);r?r.push(t):C(this,ar).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(C(this,Gr).delete(t)){const n=Of(t);if(typeof n=="string"){const r=C(this,ar).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&C(this,ar).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Of(t);if(typeof n=="string"){const r=C(this,ar).get(n),a=r==null?void 0:r.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=Of(t);if(typeof n=="string"){const a=(r=C(this,ar).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){xt.batch(()=>{C(this,Gr).forEach(t=>{this.notify({type:"removed",mutation:t})}),C(this,Gr).clear(),C(this,ar).clear()})}getAll(){return Array.from(C(this,Gr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>KS(n,r))}findAll(t={}){return this.getAll().filter(n=>KS(t,n))}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return xt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Qt))))}},Gr=new WeakMap,ar=new WeakMap,Mc=new WeakMap,k2);function Of(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Yr,La,ln,Kr,oa,nd,Jv,L2,Ik=(L2=class extends bs{constructor(n,r){super();te(this,oa);te(this,Yr);te(this,La);te(this,ln);te(this,Kr);V(this,Yr,n),this.setOptions(r),this.bindMethods(),pe(this,oa,nd).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(n){var a;const r=this.options;this.options=C(this,Yr).defaultMutationOptions(n),Id(this.options,r)||C(this,Yr).getMutationCache().notify({type:"observerOptionsUpdated",mutation:C(this,ln),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&ro(r.mutationKey)!==ro(this.options.mutationKey)?this.reset():((a=C(this,ln))==null?void 0:a.state.status)==="pending"&&C(this,ln).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=C(this,ln))==null||n.removeObserver(this)}onMutationUpdate(n){pe(this,oa,nd).call(this),pe(this,oa,Jv).call(this,n)}getCurrentResult(){return C(this,La)}reset(){var n;(n=C(this,ln))==null||n.removeObserver(this),V(this,ln,void 0),pe(this,oa,nd).call(this),pe(this,oa,Jv).call(this)}mutate(n,r){var a;return V(this,Kr,r),(a=C(this,ln))==null||a.removeObserver(this),V(this,ln,C(this,Yr).getMutationCache().build(C(this,Yr),this.options)),C(this,ln).addObserver(this),C(this,ln).execute(n)}},Yr=new WeakMap,La=new WeakMap,ln=new WeakMap,Kr=new WeakMap,oa=new WeakSet,nd=function(){var r;const n=((r=C(this,ln))==null?void 0:r.state)??vC();V(this,La,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},Jv=function(n){xt.batch(()=>{var r,a,i,o,l,s,u,f;if(C(this,Kr)&&this.hasListeners()){const c=C(this,La).variables,h=C(this,La).context,p={client:C(this,Yr),meta:this.options.meta,mutationKey:this.options.mutationKey};if((n==null?void 0:n.type)==="success"){try{(a=(r=C(this,Kr)).onSuccess)==null||a.call(r,n.data,c,h,p)}catch(b){Promise.reject(b)}try{(o=(i=C(this,Kr)).onSettled)==null||o.call(i,n.data,null,c,h,p)}catch(b){Promise.reject(b)}}else if((n==null?void 0:n.type)==="error"){try{(s=(l=C(this,Kr)).onError)==null||s.call(l,n.error,c,h,p)}catch(b){Promise.reject(b)}try{(f=(u=C(this,Kr)).onSettled)==null||f.call(u,void 0,n.error,c,h,p)}catch(b){Promise.reject(b)}}}this.listeners.forEach(c=>{c(C(this,La))})})},L2),xr,z2,Uk=(z2=class extends bs{constructor(t={}){super();te(this,xr);this.config=t,V(this,xr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??Fb(a,n);let o=this.get(i);return o||(o=new $k({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){C(this,xr).has(t.queryHash)||(C(this,xr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=C(this,xr).get(t.queryHash);n&&(t.destroy(),n===t&&C(this,xr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return C(this,xr).get(t)}getAll(){return[...C(this,xr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>YS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>YS(t,r)):n}notify(t){xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xr=new WeakMap,z2),it,za,Ba,Sl,wl,Ia,Ol,jl,B2,Hk=(B2=class{constructor(e={}){te(this,it);te(this,za);te(this,Ba);te(this,Sl);te(this,wl);te(this,Ia);te(this,Ol);te(this,jl);V(this,it,e.queryCache||new Uk),V(this,za,e.mutationCache||new Bk),V(this,Ba,e.defaultOptions||{}),V(this,Sl,new Map),V(this,wl,new Map),V(this,Ia,0)}mount(){rf(this,Ia)._++,C(this,Ia)===1&&(V(this,Ol,qb.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,it).onFocus())})),V(this,jl,Ud.subscribe(async e=>{e&&(await this.resumePausedMutations(),C(this,it).onOnline())})))}unmount(){var e,t;rf(this,Ia)._--,C(this,Ia)===0&&((e=C(this,Ol))==null||e.call(this),V(this,Ol,void 0),(t=C(this,jl))==null||t.call(this),V(this,jl,void 0))}isFetching(e){return C(this,it).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return C(this,za).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,it).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=C(this,it).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(ni(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return C(this,it).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=C(this,it).get(r.queryHash),i=a==null?void 0:a.state.data,o=wk(t,i);if(o!==void 0)return C(this,it).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return xt.batch(()=>C(this,it).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=C(this,it).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=C(this,it);xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=C(this,it);return xt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=xt.batch(()=>C(this,it).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Qt).catch(Qt)}invalidateQueries(e,t={}){return xt.batch(()=>(C(this,it).findAll(e).forEach(n=>{n.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 n={...t,cancelRefetch:t.cancelRefetch??!0},r=xt.batch(()=>C(this,it).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Qt)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Qt)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=C(this,it).build(this,t);return n.isStaleByTime(ni(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Qt).catch(Qt)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Qt).catch(Qt)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return Ud.isOnline()?C(this,za).resumePausedMutations():Promise.resolve()}getQueryCache(){return C(this,it)}getMutationCache(){return C(this,za)}getDefaultOptions(){return C(this,Ba)}setDefaultOptions(e){V(this,Ba,e)}setQueryDefaults(e,t){C(this,Sl).set(ro(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...C(this,Sl).values()],n={};return t.forEach(r=>{Hu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){C(this,wl).set(ro(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...C(this,wl).values()],n={};return t.forEach(r=>{Hu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...C(this,Ba).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=Fb(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===Gb&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...C(this,Ba).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){C(this,it).clear(),C(this,za).clear()}},it=new WeakMap,za=new WeakMap,Ba=new WeakMap,Sl=new WeakMap,wl=new WeakMap,Ia=new WeakMap,Ol=new WeakMap,jl=new WeakMap,B2),gC=j.createContext(void 0),$n=e=>{const t=j.useContext(gC);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qk=({client:e,children:t})=>(j.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),d.jsx(gC.Provider,{value:e,children:t})),bC=j.createContext(!1),Fk=()=>j.useContext(bC);bC.Provider;function Gk(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var Yk=j.createContext(Gk()),Kk=()=>j.useContext(Yk),Vk=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?Yb(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Xk=e=>{j.useEffect(()=>{e.clearReset()},[e])},Qk=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||Yb(n,[e.error,r])),Wk=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},Zk=(e,t)=>e.isLoading&&e.isFetching&&!t,Jk=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,tw=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function e5(e,t,n){var p,b,v,g;const r=Fk(),a=Kk(),i=$n(),o=i.defaultQueryOptions(e);(b=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||b.call(p,o);const l=i.getQueryCache().get(o.queryHash),s=e.subscribed!==!1;o._optimisticResults=r?"isRestoring":s?"optimistic":void 0,Wk(o),Vk(o,a,l),Xk(a);const u=!i.getQueryCache().get(o.queryHash),[f]=j.useState(()=>new t(i,o)),c=f.getOptimisticResult(o),h=!r&&s;if(j.useSyncExternalStore(j.useCallback(y=>{const m=h?f.subscribe(xt.batchCalls(y)):Qt;return f.updateResult(),m},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),j.useEffect(()=>{f.setOptions(o)},[o,f]),Jk(o,c))throw tw(o,f,a);if(Qk({result:c,errorResetBoundary:a,throwOnError:o.throwOnError,query:l,suspense:o.suspense}))throw c.error;if((g=(v=i.getDefaultOptions().queries)==null?void 0:v._experimental_afterQuery)==null||g.call(v,o,c),o.experimental_prefetchInRender&&!qu.isServer()&&Zk(c,r)){const y=u?tw(o,f,a):l==null?void 0:l.promise;y==null||y.catch(Qt).finally(()=>{f.updateResult()})}return o.notifyOnChangeProps?c:f.trackResult(c)}function Dn(e,t){return e5(e,Dk)}function Ht(e,t){const n=$n(),[r]=j.useState(()=>new Ik(n,e));j.useEffect(()=>{r.setOptions(e)},[r,e]);const a=j.useSyncExternalStore(j.useCallback(o=>r.subscribe(xt.batchCalls(o)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),i=j.useCallback((o,l)=>{r.mutate(o,l).catch(Qt)},[r]);if(a.error&&Yb(r.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:i,mutateAsync:a.mutate}}/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const t5=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xC=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var n5={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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const r5=j.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},s)=>j.createElement("svg",{ref:s,...n5,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:xC("lucide",a),...l},[...o.map(([u,f])=>j.createElement(u,f)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ne=(e,t)=>{const n=j.forwardRef(({className:r,...a},i)=>j.createElement(r5,{ref:i,iconNode:t,className:xC(`lucide-${t5(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a5=ne("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SC=ne("Battery",[["rect",{width:"16",height:"10",x:"2",y:"7",rx:"2",ry:"2",key:"1w10f2"}],["line",{x1:"22",x2:"22",y1:"11",y2:"13",key:"4dh1rd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wC=ne("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i5=ne("BookOpen",[["path",{d:"M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z",key:"vv98re"}],["path",{d:"M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z",key:"1cyq3y"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o5=ne("Bot",[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OC=ne("Brain",[["path",{d:"M12 5a3 3 0 1 0-5.997.125 4 4 0 0 0-2.526 5.77 4 4 0 0 0 .556 6.588A4 4 0 1 0 12 18Z",key:"l5xja"}],["path",{d:"M12 5a3 3 0 1 1 5.997.125 4 4 0 0 1 2.526 5.77 4 4 0 0 1-.556 6.588A4 4 0 1 1 12 18Z",key:"ep3f8r"}],["path",{d:"M15 13a4.5 4.5 0 0 1-3-4 4.5 4.5 0 0 1-3 4",key:"1p4c4q"}],["path",{d:"M17.599 6.5a3 3 0 0 0 .399-1.375",key:"tmeiqw"}],["path",{d:"M6.003 5.125A3 3 0 0 0 6.401 6.5",key:"105sqy"}],["path",{d:"M3.477 10.896a4 4 0 0 1 .585-.396",key:"ql3yin"}],["path",{d:"M19.938 10.5a4 4 0 0 1 .585.396",key:"1qfode"}],["path",{d:"M6 18a4 4 0 0 1-1.967-.516",key:"2e4loj"}],["path",{d:"M19.967 17.484A4 4 0 0 1 18 18",key:"159ez6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l5=ne("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jC=ne("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s5=ne("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u5=ne("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c5=ne("CircleAlert",[["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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vb=ne("CircleCheckBig",[["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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f5=ne("CircleMinus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d5=ne("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h5=ne("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p5=ne("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y5=ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Fu=ne("Cpu",[["rect",{width:"16",height:"16",x:"4",y:"4",rx:"2",key:"14l7u7"}],["rect",{width:"6",height:"6",x:"9",y:"9",rx:"1",key:"5aljv4"}],["path",{d:"M15 2v2",key:"13l42r"}],["path",{d:"M15 20v2",key:"15mkzm"}],["path",{d:"M2 15h2",key:"1gxd5l"}],["path",{d:"M2 9h2",key:"1bbxkp"}],["path",{d:"M20 15h2",key:"19e6y8"}],["path",{d:"M20 9h2",key:"19tzq7"}],["path",{d:"M9 2v2",key:"165o2o"}],["path",{d:"M9 20v2",key:"i2bqo8"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m5=ne("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v5=ne("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g5=ne("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AC=ne("KeyRound",[["path",{d:"M2 18v3c0 .6.4 1 1 1h4v-3h3v-3h2l1.4-1.4a6.5 6.5 0 1 0-4-4Z",key:"167ctg"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b5=ne("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x5=ne("Link2Off",[["path",{d:"M9 17H7A5 5 0 0 1 7 7",key:"10o201"}],["path",{d:"M15 7h2a5 5 0 0 1 4 8",key:"1d3206"}],["line",{x1:"8",x2:"12",y1:"12",y2:"12",key:"rvw6j4"}],["line",{x1:"2",x2:"22",y1:"2",y2:"22",key:"a6p6uj"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const EC=ne("Link2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S5=ne("ListOrdered",[["line",{x1:"10",x2:"21",y1:"6",y2:"6",key:"76qw6h"}],["line",{x1:"10",x2:"21",y1:"12",y2:"12",key:"16nom4"}],["line",{x1:"10",x2:"21",y1:"18",y2:"18",key:"u3jurt"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w5=ne("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O5=ne("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j5=ne("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A5=ne("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E5=ne("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _5=ne("Network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T5=ne("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C5=ne("PlugZap",[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N5=ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pp=ne("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M5=ne("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nw=ne("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P5=ne("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rd=ne("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R5=ne("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $5=ne("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eg=ne("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D5=ne("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k5=ne("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const L5=ne("Tags",[["path",{d:"m15 5 6.3 6.3a2.4 2.4 0 0 1 0 3.4L17 19",key:"1cbfv1"}],["path",{d:"M9.586 5.586A2 2 0 0 0 8.172 5H3a1 1 0 0 0-1 1v5.172a2 2 0 0 0 .586 1.414L8.29 18.29a2.426 2.426 0 0 0 3.42 0l3.58-3.58a2.426 2.426 0 0 0 0-3.42z",key:"135mg7"}],["circle",{cx:"6.5",cy:"9.5",r:".5",fill:"currentColor",key:"5pm5xn"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const go=ne("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.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Xb=ne("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z5=ne("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B5=ne("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _C=ne("WifiOff",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}],["path",{d:"M5 12.859a10 10 0 0 1 5.17-2.69",key:"1dl1wf"}],["path",{d:"M19 12.859a10 10 0 0 0-2.007-1.523",key:"4k23kn"}],["path",{d:"M2 8.82a15 15 0 0 1 4.177-2.643",key:"1grhjp"}],["path",{d:"M22 8.82a15 15 0 0 0-11.288-3.764",key:"z3jwby"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TC=ne("Wifi",[["path",{d:"M12 20h.01",key:"zekei9"}],["path",{d:"M2 8.82a15 15 0 0 1 20 0",key:"dnpr2z"}],["path",{d:"M5 12.859a10 10 0 0 1 14 0",key:"1x1e6c"}],["path",{d:"M8.5 16.429a5 5 0 0 1 7 0",key:"1bycff"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I5=ne("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const tg=ne("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]),U5=[{to:"/dashboard",icon:b5,label:"대시보드"},{to:"/stores",icon:eg,label:"매장 관리"},{to:"/templates",icon:g5,label:"ESL 템플릿"},{to:"/pos-cvt",icon:pp,label:"POS 가격변환"},{to:"/tag-binding",icon:EC,label:"태그 바인딩"},{to:"/update-queue",icon:S5,label:"업데이트 큐"},{to:"/alarms",icon:wC,label:"알람 관리"},{to:"/hcore",icon:Fu,label:"HCore 장치"},{to:"/works",icon:h5,label:"작업 이력"},{to:"/firmware",icon:tg,label:"펌웨어"},{to:"/products",icon:T5,label:"상품/가격"},{to:"/users",icon:B5,label:"사용자"},{to:"/tenants",icon:jC,label:"테넌트 관리"},{to:"/ai",icon:OC,label:"AI 분석"},{to:"/worklogs",icon:i5,label:"업무일지"},{to:"/schedules",icon:s5,label:"일정 관리"},{to:"/messages",icon:O5,label:"쪽지"},{to:"/work-stats",icon:a5,label:"업무 통계"},{to:"/mobile-app",icon:rd,label:"모바일 앱"}],H5=[{to:"/system/roles",icon:P5,label:"역할/권한"},{to:"/system/role-menus",icon:AC,label:"메뉴 권한"},{to:"/system/menus",icon:A5,label:"메뉴 관리"},{to:"/system/codes",icon:L5,label:"공통코드"},{to:"/system/depts",icon:_5,label:"부서 관리"},{to:"/system/companies",icon:l5,label:"거래처 관리"},{to:"/system/ai-config",icon:o5,label:"AI 플랫폼 설정"}],rw=({isActive:e})=>`flex items-center gap-3 px-4 py-2.5 text-sm transition-colors ${e?"bg-brand/15 text-brand border-r-2 border-brand":"text-gray-400 hover:text-white hover:bg-edge/50"}`;function q5(){const e=localStorage.getItem("esn_role"),t=e==="ADMIN"||e==="MANAGER";return d.jsxs("aside",{className:"w-56 bg-panel flex flex-col border-r border-edge flex-shrink-0",children:[d.jsxs("div",{className:"h-14 flex items-center px-4 border-b border-edge",children:[d.jsx("span",{className:"text-brand font-bold text-sm tracking-wide",children:"ESN"}),d.jsx("span",{className:"ml-2 text-xs text-gray-400",children:"ESL 통합 관리"})]}),d.jsxs("nav",{className:"flex-1 overflow-y-auto py-3",children:[U5.map(({to:n,icon:r,label:a})=>d.jsxs(Bv,{to:n,className:rw,children:[d.jsx(r,{size:16}),a]},n)),t&&d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"px-4 pt-4 pb-1 text-[11px] font-semibold uppercase tracking-wider text-gray-500",children:"시스템관리 (권한)"}),H5.map(({to:n,icon:r,label:a})=>d.jsxs(Bv,{to:n,className:rw,children:[d.jsx(r,{size:16}),a]},n))]})]}),d.jsx("div",{className:"p-4 border-t border-edge text-xs text-gray-500",children:"zioinfo-esn v1.0"})]})}function F5(){const{theme:e,toggle:t}=LD();return d.jsxs("button",{onClick:t,title:"테마 전환",style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",background:"none",border:"1px solid var(--uiws-border, #2d3448)",borderRadius:8,color:"var(--uiws-text-muted, #8892b0)",cursor:"pointer",fontSize:13,width:"100%"},children:[e==="dark"?d.jsx(D5,{size:16}):d.jsx(E5,{size:16}),e==="dark"?"라이트 모드":"다크 모드"]})}function G5(){const e=vo(),t=localStorage.getItem("esn_user")||"admin",n=localStorage.getItem("esn_role")||"ADMIN",r=localStorage.getItem("esn_tenant")||"ALL";function a(){localStorage.removeItem("esn_token"),localStorage.removeItem("esn_role"),localStorage.removeItem("esn_user"),localStorage.removeItem("esn_tenant"),e("/login")}return d.jsxs("header",{className:"h-14 bg-panel border-b border-edge flex items-center px-6 gap-4 flex-shrink-0",children:[d.jsx("div",{className:"flex-1"}),d.jsx("div",{className:"w-32",children:d.jsx(F5,{})}),d.jsxs("span",{className:"text-xs text-gray-400",children:["테넌트: ",d.jsx("span",{className:"text-brand",children:r})]}),d.jsx("span",{className:"text-xs text-gray-400",children:"|"}),d.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-300",children:[d.jsx(z5,{size:14}),d.jsx("span",{children:t}),d.jsx("span",{className:"text-xs text-brand bg-brand/10 px-2 py-0.5 rounded",children:n})]}),d.jsxs("button",{onClick:a,className:"flex items-center gap-1.5 text-gray-400 hover:text-white text-sm",children:[d.jsx(w5,{size:14}),"로그아웃"]})]})}function CC(e,t){return function(){return e.apply(t,arguments)}}const{toString:Y5}=Object.prototype,{getPrototypeOf:kl}=Object,{iterator:Yc,toStringTag:NC}=Symbol,Hd=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Gu=(e,t)=>{let n=e;const r=[];for(;n!=null&&n!==Object.prototype;){if(r.indexOf(n)!==-1)return!1;if(r.push(n),Hd(n,t))return!0;n=kl(n)}return!1},K5=(e,t)=>e!=null&&Gu(e,t)?e[t]:void 0,Qb=(e=>t=>{const n=Y5.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),yr=e=>(e=e.toLowerCase(),t=>Qb(t)===e),yp=e=>t=>typeof t===e,{isArray:ao}=Array,Ll=yp("undefined");function xs(e){return e!==null&&!Ll(e)&&e.constructor!==null&&!Ll(e.constructor)&&dn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const MC=yr("ArrayBuffer");function V5(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&MC(e.buffer),t}const X5=yp("string"),dn=yp("function"),PC=yp("number"),Ss=e=>e!==null&&typeof e=="object",Q5=e=>e===!0||e===!1,ad=e=>{if(!Ss(e))return!1;const t=kl(e);return(t===null||t===Object.prototype||kl(t)===null)&&!Gu(e,NC)&&!Gu(e,Yc)},W5=e=>{if(!Ss(e)||xs(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Z5=yr("Date"),J5=yr("File"),eL=e=>!!(e&&typeof e.uri<"u"),tL=e=>e&&typeof e.getParts<"u",nL=yr("Blob"),rL=yr("FileList"),aL=e=>Ss(e)&&dn(e.pipe);function iL(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const aw=iL(),iw=typeof aw.FormData<"u"?aw.FormData:void 0,oL=e=>{if(!e)return!1;if(iw&&e instanceof iw)return!0;const t=kl(e);if(!t||t===Object.prototype||!dn(e.append))return!1;const n=Qb(e);return n==="formdata"||n==="object"&&dn(e.toString)&&e.toString()==="[object FormData]"},lL=yr("URLSearchParams"),[sL,uL,cL,fL]=["ReadableStream","Request","Response","Headers"].map(yr),dL=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),ao(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(xs(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),o=i.length;let l;for(r=0;r<o;r++)l=i[r],t.call(null,e[l],l,e)}}function RC(e,t){if(xs(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const Ni=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,$C=e=>!Ll(e)&&e!==Ni;function ng(...e){const{caseless:t,skipUndefined:n}=$C(this)&&this||{},r={},a=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&RC(r,o)||o,s=Hd(r,l)?r[l]:void 0;ad(s)&&ad(i)?r[l]=ng(s,i):ad(i)?r[l]=ng({},i):ao(i)?r[l]=i.slice():(!n||!Ll(i))&&(r[l]=i)};for(let i=0,o=e.length;i<o;i++){const l=e[i];if(!l||xs(l)||(Kc(l,a),typeof l!="object"||ao(l)))continue;const s=Object.getOwnPropertySymbols(l);for(let u=0;u<s.length;u++){const f=s[u];jL.call(l,f)&&a(l[f],f)}}return r}const hL=(e,t,n,{allOwnKeys:r}={})=>(Kc(t,(a,i)=>{n&&dn(a)?Object.defineProperty(e,i,{__proto__:null,value:CC(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),pL=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),yL=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},mL=(e,t,n,r)=>{let a,i,o;const l={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)o=a[i],(!r||r(o,e,t))&&!l[o]&&(t[o]=e[o],l[o]=!0);e=n!==!1&&kl(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},vL=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},gL=e=>{if(!e)return null;if(ao(e))return e;let t=e.length;if(!PC(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},bL=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&kl(Uint8Array)),xL=(e,t)=>{const r=(e&&e[Yc]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},SL=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},wL=yr("HTMLFormElement"),OL=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),{propertyIsEnumerable:jL}=Object.prototype,AL=yr("RegExp"),DC=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Kc(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},EL=e=>{DC(e,(t,n)=>{if(dn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(dn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},_L=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return ao(e)?r(e):r(String(e).split(t)),n},TL=()=>{},CL=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function NL(e){return!!(e&&dn(e.append)&&e[NC]==="FormData"&&e[Yc])}const ML=e=>{const t=new WeakSet,n=r=>{if(Ss(r)){if(t.has(r))return;if(xs(r))return r;if(!("toJSON"in r)){t.add(r);const a=ao(r)?[]:{};return Kc(r,(i,o)=>{const l=n(i);!Ll(l)&&(a[o]=l)}),t.delete(r),a}}return r};return n(e)},PL=yr("AsyncFunction"),RL=e=>e&&(Ss(e)||dn(e))&&dn(e.then)&&dn(e.catch),kC=((e,t)=>e?setImmediate:t?((n,r)=>(Ni.addEventListener("message",({source:a,data:i})=>{a===Ni&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ni.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",dn(Ni.postMessage)),$L=typeof queueMicrotask<"u"?queueMicrotask.bind(Ni):typeof process<"u"&&process.nextTick||kC,LC=e=>e!=null&&dn(e[Yc]),DL=e=>e!=null&&Gu(e,Yc)&&LC(e),R={isArray:ao,isArrayBuffer:MC,isBuffer:xs,isFormData:oL,isArrayBufferView:V5,isString:X5,isNumber:PC,isBoolean:Q5,isObject:Ss,isPlainObject:ad,isEmptyObject:W5,isReadableStream:sL,isRequest:uL,isResponse:cL,isHeaders:fL,isUndefined:Ll,isDate:Z5,isFile:J5,isReactNativeBlob:eL,isReactNative:tL,isBlob:nL,isRegExp:AL,isFunction:dn,isStream:aL,isURLSearchParams:lL,isTypedArray:bL,isFileList:rL,forEach:Kc,merge:ng,extend:hL,trim:dL,stripBOM:pL,inherits:yL,toFlatObject:mL,kindOf:Qb,kindOfTest:yr,endsWith:vL,toArray:gL,forEachEntry:xL,matchAll:SL,isHTMLForm:wL,hasOwnProperty:Hd,hasOwnProp:Hd,hasOwnInPrototypeChain:Gu,getSafeProp:K5,reduceDescriptors:DC,freezeMethods:EL,toObjectSet:_L,toCamelCase:OL,noop:TL,toFiniteNumber:CL,findKey:RC,global:Ni,isContextDefined:$C,isSpecCompliantForm:NL,toJSONObject:ML,isAsyncFn:PL,isThenable:RL,setImmediate:kC,asap:$L,isIterable:LC,isSafeIterable:DL},kL=R.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"]),LL=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(o){a=o.indexOf(":"),n=o.substring(0,a).trim().toLowerCase(),r=o.substring(a+1).trim(),!(!n||t[n]&&kL[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function zL(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const BL=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),IL=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Wb(e,t){return R.isArray(e)?e.map(n=>Wb(n,t)):zL(String(e).replace(t,""))}const UL=e=>Wb(e,BL),HL=e=>Wb(e,IL);function zC(e){const t=Object.create(null);return R.forEach(e.toJSON(),(n,r)=>{t[r]=HL(n)}),t}const ow=Symbol("internals");function qs(e){return e&&String(e).trim().toLowerCase()}function id(e){return e===!1||e==null?e:R.isArray(e)?e.map(id):UL(String(e))}function qL(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const FL=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function rm(e,t,n,r,a){if(R.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!R.isString(t)){if(R.isString(r))return t.indexOf(r)!==-1;if(R.isRegExp(r))return r.test(t)}}function GL(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function YL(e,t){const n=R.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,o){return this[r].call(this,t,a,i,o)},configurable:!0})})}let Kt=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const f=qs(s);if(!f)return;const c=R.findKey(a,f);(!c||a[c]===void 0||u===!0||u===void 0&&a[c]!==!1)&&(a[c||s]=id(l))}const o=(l,s)=>R.forEach(l,(u,f)=>i(u,f,s));if(R.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(R.isString(t)&&(t=t.trim())&&!FL(t))o(LL(t),n);else if(R.isObject(t)&&R.isSafeIterable(t)){let l=Object.create(null),s,u;for(const f of t){if(!R.isArray(f))throw new TypeError("Object iterator must return a key-value pair");u=f[0],R.hasOwnProp(l,u)?(s=l[u],l[u]=R.isArray(s)?[...s,f[1]]:[s,f[1]]):l[u]=f[1]}o(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=qs(t),t){const r=R.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return qL(a);if(R.isFunction(n))return n.call(this,a,r);if(R.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qs(t),t){const r=R.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||rm(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=qs(o),o){const l=R.findKey(r,o);l&&(!n||rm(r,r[l],l,n))&&(delete r[l],a=!0)}}return R.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||rm(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return R.forEach(this,(a,i)=>{const o=R.findKey(r,i);if(o){n[o]=id(a),delete n[i];return}const l=t?GL(i):String(i).trim();l!==i&&delete n[i],n[l]=id(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return R.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&R.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).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,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[ow]=this[ow]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=qs(o);r[l]||(YL(a,o),r[l]=!0)}return R.isArray(t)?t.forEach(i):i(t),this}};Kt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);R.reduceDescriptors(Kt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});R.freezeMethods(Kt);const KL="[REDACTED ****]";function VL(e){if(R.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(R.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function XL(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||R.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Kt&&(i=i.toJSON()),r.push(i);let o;if(R.isArray(i))o=[],i.forEach((l,s)=>{const u=a(l);R.isUndefined(u)||(o[s]=u)});else{if(!R.isPlainObject(i)&&VL(i))return r.pop(),i;o=Object.create(null);for(const[l,s]of Object.entries(i)){const u=n.has(l.toLowerCase())?KL:a(s);R.isUndefined(u)||(o[l]=u)}}return r.pop(),o};return a(e)}let W=class BC extends Error{static from(t,n,r,a,i,o){const l=new BC(t.message,n||t.code,r,a,i);return l.cause=t,l.name=t.name,t.status!=null&&l.status==null&&(l.status=t.status),o&&Object.assign(l,o),l}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&R.hasOwnProp(t,"redact")?t.redact:void 0,r=R.isArray(n)&&n.length>0?XL(t,n):R.toJSONObject(t);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:r,code:this.code,status:this.status}}};W.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";W.ERR_BAD_OPTION="ERR_BAD_OPTION";W.ECONNABORTED="ECONNABORTED";W.ETIMEDOUT="ETIMEDOUT";W.ECONNREFUSED="ECONNREFUSED";W.ERR_NETWORK="ERR_NETWORK";W.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";W.ERR_DEPRECATED="ERR_DEPRECATED";W.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";W.ERR_BAD_REQUEST="ERR_BAD_REQUEST";W.ERR_CANCELED="ERR_CANCELED";W.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";W.ERR_INVALID_URL="ERR_INVALID_URL";W.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const QL=null,IC=100;function rg(e){return R.isPlainObject(e)||R.isArray(e)}function UC(e){return R.endsWith(e,"[]")?e.slice(0,-2):e}function am(e,t,n){return e?e.concat(t).map(function(a,i){return a=UC(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function WL(e){return R.isArray(e)&&!e.some(rg)}const ZL=R.toFlatObject(R,{},null,function(t){return/^is[A-Z]/.test(t)});function mp(e,t,n){if(!R.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=R.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,x){return!R.isUndefined(x[m])});const r=n.metaTokens,a=n.visitor||b,i=n.dots,o=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,s=n.maxDepth===void 0?IC:n.maxDepth,u=l&&R.isSpecCompliantForm(t),f=[];if(!R.isFunction(a))throw new TypeError("visitor must be a function");function c(y){if(y===null)return"";if(R.isDate(y))return y.toISOString();if(R.isBoolean(y))return y.toString();if(!u&&R.isBlob(y))throw new W("Blob is not supported. Use a Buffer instead.");return R.isArrayBuffer(y)||R.isTypedArray(y)?u&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function h(y){if(y>s)throw new W("Object is too deeply nested ("+y+" levels). Max depth: "+s,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function p(y,m){if(s===1/0)return JSON.stringify(y);const x=[];return JSON.stringify(y,function(w,O){if(!R.isObject(O))return O;for(;x.length&&x[x.length-1]!==this;)x.pop();return x.push(O),h(m+x.length-1),O})}function b(y,m,x){let S=y;if(R.isReactNative(t)&&R.isReactNativeBlob(y))return t.append(am(x,m,i),c(y)),!1;if(y&&!x&&typeof y=="object"){if(R.endsWith(m,"{}"))m=r?m:m.slice(0,-2),y=p(y,1);else if(R.isArray(y)&&WL(y)||(R.isFileList(y)||R.endsWith(m,"[]"))&&(S=R.toArray(y)))return m=UC(m),S.forEach(function(O,A){!(R.isUndefined(O)||O===null)&&t.append(o===!0?am([m],A,i):o===null?m:m+"[]",c(O))}),!1}return rg(y)?!0:(t.append(am(x,m,i),c(y)),!1)}const v=Object.assign(ZL,{defaultVisitor:b,convertValue:c,isVisitable:rg});function g(y,m,x=0){if(!R.isUndefined(y)){if(h(x),f.indexOf(y)!==-1)throw new Error("Circular reference detected in "+m.join("."));f.push(y),R.forEach(y,function(w,O){(!(R.isUndefined(w)||w===null)&&a.call(t,w,R.isString(O)?O.trim():O,m,v))===!0&&g(w,m?m.concat(O):[O],x+1)}),f.pop()}}if(!R.isObject(e))throw new TypeError("data must be an object");return g(e),t}function lw(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Zb(e,t){this._pairs=[],e&&mp(e,this,t)}const HC=Zb.prototype;HC.append=function(t,n){this._pairs.push([t,n])};HC.toString=function(t){const n=t?function(r){return t.call(this,r,lw)}:lw;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function JL(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function qC(e,t,n){if(!t)return e;const r=R.isFunction(n)?{serialize:n}:n,a=R.getSafeProp(r,"encode")||JL,i=R.getSafeProp(r,"serialize");let o;if(i?o=i(t,r):o=R.isURLSearchParams(t)?t.toString():new Zb(t,r).toString(a),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class sw{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){R.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Jb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1,validateStatusUndefinedResolves:!0},e6=typeof URLSearchParams<"u"?URLSearchParams:Zb,t6=typeof FormData<"u"?FormData:null,n6=typeof Blob<"u"?Blob:null,r6={isBrowser:!0,classes:{URLSearchParams:e6,FormData:t6,Blob:n6},protocols:["http","https","file","blob","url","data"]},ex=typeof window<"u"&&typeof document<"u",ag=typeof navigator=="object"&&navigator||void 0,a6=ex&&(!ag||["ReactNative","NativeScript","NS"].indexOf(ag.product)<0),i6=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",o6=ex&&window.location.href||"http://localhost",l6=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ex,hasStandardBrowserEnv:a6,hasStandardBrowserWebWorkerEnv:i6,navigator:ag,origin:o6},Symbol.toStringTag,{value:"Module"})),Bt={...l6,...r6};function s6(e,t){return mp(e,new Bt.classes.URLSearchParams,{visitor:function(n,r,a,i){return Bt.isNode&&R.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}const uw=IC;function FC(e){if(e>uw)throw new W("FormData field is too deeply nested ("+e+" levels). Max depth: "+uw,W.ERR_FORM_DATA_DEPTH_EXCEEDED)}function u6(e){const t=[],n=/\w+|\[(\w*)]/g;let r;for(;(r=n.exec(e))!==null;)FC(t.length),t.push(r[0]==="[]"?"":r[1]||r[0]);return t}function c6(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function GC(e){function t(n,r,a,i){FC(i);let o=n[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),s=i>=n.length;return o=!o&&R.isArray(a)?a.length:o,s?(R.hasOwnProp(a,o)?a[o]=R.isArray(a[o])?a[o].concat(r):[a[o],r]:a[o]=r,!l):((!R.hasOwnProp(a,o)||!R.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&R.isArray(a[o])&&(a[o]=c6(a[o])),!l)}if(R.isFormData(e)&&R.isFunction(e.entries)){const n={};return R.forEachEntry(e,(r,a)=>{t(u6(r),a,n,0)}),n}return null}const No=(e,t)=>e!=null&&R.hasOwnProp(e,t)?e[t]:void 0;function f6(e,t,n){if(R.isString(e))try{return(t||JSON.parse)(e),R.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Vc={transitional:Jb,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=R.isObject(t);if(i&&R.isHTMLForm(t)&&(t=new FormData(t)),R.isFormData(t))return a?JSON.stringify(GC(t)):t;if(R.isArrayBuffer(t)||R.isBuffer(t)||R.isStream(t)||R.isFile(t)||R.isBlob(t)||R.isReadableStream(t))return t;if(R.isArrayBufferView(t))return t.buffer;if(R.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){const s=No(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return s6(t,s).toString();if((l=R.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=No(this,"env"),f=u&&u.FormData;return mp(l?{"files[]":t}:t,f&&new f,s)}}return i||a?(n.setContentType("application/json",!1),f6(t)):t}],transformResponse:[function(t){const n=No(this,"transitional")||Vc.transitional,r=n&&n.forcedJSONParsing,a=No(this,"responseType"),i=a==="json";if(R.isResponse(t)||R.isReadableStream(t))return t;if(t&&R.isString(t)&&(r&&!a||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,No(this,"parseReviver"))}catch(s){if(l)throw s.name==="SyntaxError"?W.from(s,W.ERR_BAD_RESPONSE,this,null,No(this,"response")):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bt.classes.FormData,Blob:Bt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};R.forEach(["delete","get","head","post","put","patch","query"],e=>{Vc.headers[e]={}});function im(e,t){const n=this||Vc,r=t||n,a=Kt.from(r.headers);let i=r.data;return R.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function YC(e){return!!(e&&e.__CANCEL__)}let Xc=class extends W{constructor(t,n,r){super(t??"canceled",W.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function KC(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new W("Request failed with status code "+n.status,n.status>=400&&n.status<500?W.ERR_BAD_REQUEST:W.ERR_BAD_RESPONSE,n.config,n.request,n))}function d6(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function h6(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,o;return t=t!==void 0?t:1e3,function(s){const u=Date.now(),f=r[i];o||(o=u),n[a]=s,r[a]=u;let c=i,h=0;for(;c!==a;)h+=n[c++],c=c%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const p=f&&u-f;return p?Math.round(h*1e3/p):void 0}}function p6(e,t){let n=0,r=1e3/t,a,i;const o=(u,f=Date.now())=>{n=f,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const f=Date.now(),c=f-n;c>=r?o(u,f):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-c)))},()=>a&&o(a)]}const qd=(e,t,n=3)=>{let r=0;const a=h6(50,250);return p6(i=>{if(!i||typeof i.loaded!="number")return;const o=i.loaded,l=i.lengthComputable?i.total:void 0,s=l!=null?Math.min(o,l):o,u=Math.max(0,s-r),f=a(u);r=Math.max(r,s);const c={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:f||void 0,estimated:f&&l?(l-s)/f:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(c)},n)},cw=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fw=e=>(...t)=>R.asap(()=>e(...t)),y6=Bt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Bt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Bt.origin),Bt.navigator&&/(msie|trident)/i.test(Bt.navigator.userAgent)):()=>!0,m6=Bt.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];R.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),R.isString(r)&&l.push(`path=${r}`),R.isString(a)&&l.push(`domain=${a}`),i===!0&&l.push("secure"),R.isString(o)&&l.push(`SameSite=${o}`),document.cookie=l.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(a!==-1&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function v6(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function g6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}const b6=/^https?:(?!\/\/)/i,x6=/[\t\n\r]/g;function S6(e){let t=0;for(;t<e.length&&e.charCodeAt(t)<=32;)t++;return e.slice(t)}function w6(e){return S6(e).replace(x6,"")}function dw(e,t){if(typeof e=="string"&&b6.test(w6(e)))throw new W('Invalid URL: missing "//" after protocol',W.ERR_INVALID_URL,t)}function VC(e,t,n,r){dw(t,r);let a=!v6(t);return e&&(a||n===!1)?(dw(e,r),g6(e,t)):t}const hw=e=>e instanceof Kt?{...e}:e;function io(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(f,c,h,p){return R.isPlainObject(f)&&R.isPlainObject(c)?R.merge.call({caseless:p},f,c):R.isPlainObject(c)?R.merge({},c):R.isArray(c)?c.slice():c}function a(f,c,h,p){if(R.isUndefined(c)){if(!R.isUndefined(f))return r(void 0,f,h,p)}else return r(f,c,h,p)}function i(f,c){if(!R.isUndefined(c))return r(void 0,c)}function o(f,c){if(R.isUndefined(c)){if(!R.isUndefined(f))return r(void 0,f)}else return r(void 0,c)}function l(f){const c=R.hasOwnProp(t,"transitional")?t.transitional:void 0;if(!R.isUndefined(c))if(R.isPlainObject(c)){if(R.hasOwnProp(c,f))return c[f]}else return;const h=R.hasOwnProp(e,"transitional")?e.transitional:void 0;if(R.isPlainObject(h)&&R.hasOwnProp(h,f))return h[f]}function s(f,c,h){if(R.hasOwnProp(t,h))return r(f,c);if(R.hasOwnProp(e,h))return r(void 0,f)}const u={url:i,method:i,data:i,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,allowedSocketPaths:o,responseEncoding:o,validateStatus:s,headers:(f,c,h)=>a(hw(f),hw(c),h,!0)};return R.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const h=R.hasOwnProp(u,c)?u[c]:a,p=R.hasOwnProp(e,c)?e[c]:void 0,b=R.hasOwnProp(t,c)?t[c]:void 0,v=h(p,b,c);R.isUndefined(v)&&h!==s||(n[c]=v)}),R.hasOwnProp(t,"validateStatus")&&R.isUndefined(t.validateStatus)&&l("validateStatusUndefinedResolves")===!1&&(R.hasOwnProp(e,"validateStatus")?n.validateStatus=r(void 0,e.validateStatus):delete n.validateStatus),n}const O6=["content-type","content-length"];function j6(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{O6.includes(r.toLowerCase())&&e.set(r,a)})}const A6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function XC(e){const t=io({},e),n=h=>R.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),o=n("xsrfCookieName");let l=n("headers");const s=n("auth"),u=n("baseURL"),f=n("allowAbsoluteUrls"),c=n("url");if(t.headers=l=Kt.from(l),t.url=qC(VC(u,c,f,t),n("params"),n("paramsSerializer")),s){const h=R.getSafeProp(s,"username")||"",p=R.getSafeProp(s,"password")||"";l.set("Authorization","Basic "+btoa(h+":"+(p?A6(p):"")))}if(R.isFormData(r)&&(Bt.hasStandardBrowserEnv||Bt.hasStandardBrowserWebWorkerEnv||R.isReactNative(r)?l.setContentType(void 0):R.isFunction(r.getHeaders)&&j6(l,r.getHeaders(),n("formDataHeaderPolicy"))),Bt.hasStandardBrowserEnv&&(R.isFunction(a)&&(a=a(t)),a===!0||a==null&&y6(t.url))){const p=i&&o&&m6.read(o);p&&l.set(i,p)}return t}const E6=typeof XMLHttpRequest<"u",_6=E6&&function(e){return new Promise(function(n,r){const a=XC(e);let i=a.data;const o=Kt.from(a.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=a,f,c,h,p,b;function v(){p&&p(),b&&b(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const x=Kt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:x,config:e,request:g};KC(function(A){n(A),v()},function(A){r(A),v()},w),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.startsWith("file:"))||setTimeout(y)},g.onabort=function(){g&&(r(new W("Request aborted",W.ECONNABORTED,e,g)),v(),g=null)},g.onerror=function(S){const w=S&&S.message?S.message:"Network Error",O=new W(w,W.ERR_NETWORK,e,g);O.event=S||null,r(O),v(),g=null},g.ontimeout=function(){let S=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||Jb;a.timeoutErrorMessage&&(S=a.timeoutErrorMessage),r(new W(S,w.clarifyTimeoutError?W.ETIMEDOUT:W.ECONNABORTED,e,g)),v(),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&R.forEach(zC(o),function(S,w){g.setRequestHeader(w,S)}),R.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),l&&l!=="json"&&(g.responseType=a.responseType),u&&([h,b]=qd(u,!0),g.addEventListener("progress",h)),s&&g.upload&&([c,p]=qd(s),g.upload.addEventListener("progress",c),g.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(f=x=>{g&&(r(!x||x.type?new Xc(null,e,g):x),g.abort(),v(),g=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const m=d6(a.url);if(m&&!Bt.protocols.includes(m)){r(new W("Unsupported protocol "+m+":",W.ERR_BAD_REQUEST,e));return}g.send(i||null)})},T6=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(s){if(!r){r=!0,o();const u=s instanceof Error?s:this.reason;n.abort(u instanceof W?u:new Xc(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new W(`timeout of ${t}ms exceeded`,W.ETIMEDOUT))},t);const o=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(s=>{s.unsubscribe?s.unsubscribe(a):s.removeEventListener("abort",a)}),e=null)};e.forEach(s=>s.addEventListener("abort",a));const{signal:l}=n;return l.unsubscribe=()=>R.asap(o),l},C6=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},N6=async function*(e,t){for await(const n of M6(e))yield*C6(n,t)},M6=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},pw=(e,t,n,r)=>{const a=N6(e,t);let i=0,o,l=s=>{o||(o=!0,r&&r(s))};return new ReadableStream({async pull(s){try{const{done:u,value:f}=await a.next();if(u){l(),s.close();return}let c=f.byteLength;if(n){let h=i+=c;n(h)}s.enqueue(new Uint8Array(f))}catch(u){throw l(u),u}},cancel(s){return l(s),a.return()}},{highWaterMark:2})},Fd=e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102,P6=(e,t,n)=>t+2<n&&Fd(e.charCodeAt(t+1))&&Fd(e.charCodeAt(t+2));function R6(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let o=r.length;const l=r.length;for(let p=0;p<l;p++)if(r.charCodeAt(p)===37&&p+2<l){const b=r.charCodeAt(p+1),v=r.charCodeAt(p+2);Fd(b)&&Fd(v)&&(o-=2,p+=2)}let s=0,u=l-1;const f=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);u>=0&&(r.charCodeAt(u)===61?(s++,u--):f(u)&&(s++,u-=3)),s===1&&u>=0&&(r.charCodeAt(u)===61||f(u))&&s++;const h=Math.floor(o/4)*3-(s||0);return h>0?h:0}let i=0;for(let o=0,l=r.length;o<l;o++){const s=r.charCodeAt(o);if(s===37&&P6(r,o,l))i+=1,o+=2;else if(s<128)i+=1;else if(s<2048)i+=2;else if(s>=55296&&s<=56319&&o+1<l){const u=r.charCodeAt(o+1);u>=56320&&u<=57343?(i+=4,o++):i+=3}else i+=3}return i}const tx="1.18.0",yw=64*1024,{isFunction:jf}=R,$6=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),mw=e=>{if(!R.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},vw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},D6=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},k6=e=>{const t=R.global!==void 0&&R.global!==null?R.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=R.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,l=a?jf(a):typeof fetch=="function",s=jf(i),u=jf(o);if(!l)return!1;const f=l&&jf(n),c=l&&(typeof r=="function"?(y=>m=>y.encode(m))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),h=s&&f&&vw(()=>{let y=!1;const m=new i(Bt.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),x=m.headers.has("Content-Type");return m.body!=null&&m.body.cancel(),y&&!x}),p=u&&f&&vw(()=>R.isReadableStream(new o("").body)),b={stream:p&&(y=>y.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!b[y]&&(b[y]=(m,x)=>{let S=m&&m[y];if(S)return S.call(m);throw new W(`Response type '${y}' is not supported`,W.ERR_NOT_SUPPORT,x)})});const v=async y=>{if(y==null)return 0;if(R.isBlob(y))return y.size;if(R.isSpecCompliantForm(y))return(await new i(Bt.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(R.isArrayBufferView(y)||R.isArrayBuffer(y))return y.byteLength;if(R.isURLSearchParams(y)&&(y=y+""),R.isString(y))return(await c(y)).byteLength},g=async(y,m)=>{const x=R.toFiniteNumber(y.getContentLength());return x??v(m)};return async y=>{let{url:m,method:x,data:S,signal:w,cancelToken:O,timeout:A,onDownloadProgress:_,onUploadProgress:T,responseType:M,headers:L,withCredentials:E="same-origin",fetchOptions:N,maxContentLength:k,maxBodyLength:P}=XC(y);const $=R.isNumber(k)&&k>-1,z=R.isNumber(P)&&P>-1,B=fe=>R.hasOwnProp(y,fe)?y[fe]:void 0;let q=a||fetch;M=M?(M+"").toLowerCase():"text";let F=T6([w,O&&O.toAbortSignal()],A),Q=null;const Y=F&&F.unsubscribe&&(()=>{F.unsubscribe()});let ee,ye=null;const ke=()=>new W("Request body larger than maxBodyLength limit",W.ERR_BAD_REQUEST,y,Q);try{let fe;const Rt=B("auth");if(Rt){const J=R.getSafeProp(Rt,"username")||"",Le=R.getSafeProp(Rt,"password")||"";fe={username:J,password:Le}}if(D6(m)){const J=new URL(m,Bt.origin);if(!fe&&(J.username||J.password)){const Le=mw(J.username),$t=mw(J.password);fe={username:Le,password:$t}}(J.username||J.password)&&(J.username="",J.password="",m=J.href)}if(fe&&(L.delete("authorization"),L.set("Authorization","Basic "+btoa($6((fe.username||"")+":"+(fe.password||""))))),$&&typeof m=="string"&&m.startsWith("data:")&&R6(m)>k)throw new W("maxContentLength size of "+k+" exceeded",W.ERR_BAD_RESPONSE,y,Q);if(z&&x!=="get"&&x!=="head"){const J=await v(S);if(typeof J=="number"&&isFinite(J)&&(ee=J,J>P))throw ke()}const vt=z&&(R.isReadableStream(S)||R.isStream(S)),X=(J,Le,$t)=>pw(J,yw,nn=>{if(z&&nn>P)throw ye=ke();Le&&Le(nn)},$t);if(h&&x!=="get"&&x!=="head"&&(T||vt)){if(ee=ee??await g(L,S),ee!==0||vt){let J=new i(m,{method:"POST",body:S,duplex:"half"}),Le;if(R.isFormData(S)&&(Le=J.headers.get("content-type"))&&L.setContentType(Le),J.body){const[$t,nn]=T&&cw(ee,qd(fw(T)))||[];S=X(J.body,$t,nn)}}}else if(vt&&!s&&f&&x!=="get"&&x!=="head")S=X(S);else if(vt&&s&&!h&&x!=="get"&&x!=="head")throw new W("Stream request bodies are not supported by the current fetch implementation",W.ERR_NOT_SUPPORT,y,Q);R.isString(E)||(E=E?"include":"omit");const se=s&&"credentials"in i.prototype;if(R.isFormData(S)){const J=L.getContentType();J&&/^multipart\/form-data/i.test(J)&&!/boundary=/i.test(J)&&L.delete("content-type")}L.set("User-Agent","axios/"+tx,!1);const de={...N,signal:F,method:x.toUpperCase(),headers:zC(L.normalize()),body:S,duplex:"half",credentials:se?E:void 0};Q=s&&new i(m,de);let H=await(s?q(Q,N):q(m,de));const Ve=Kt.from(H.headers);if($){const J=R.toFiniteNumber(Ve.getContentLength());if(J!=null&&J>k)throw new W("maxContentLength size of "+k+" exceeded",W.ERR_BAD_RESPONSE,y,Q)}const ge=p&&(M==="stream"||M==="response");if(p&&H.body&&(_||$||ge&&Y)){const J={};["status","statusText","headers"].forEach(mn=>{J[mn]=H[mn]});const Le=R.toFiniteNumber(Ve.getContentLength()),[$t,nn]=_&&cw(Le,qd(fw(_),!0))||[];let mi=0;const $r=mn=>{if($&&(mi=mn,mi>k))throw new W("maxContentLength size of "+k+" exceeded",W.ERR_BAD_RESPONSE,y,Q);$t&&$t(mn)};H=new o(pw(H.body,yw,$r,()=>{nn&&nn(),Y&&Y()}),J)}M=M||"text";let Me=await b[R.findKey(b,M)||"text"](H,y);if($&&!p&&!ge){let J;if(Me!=null&&(typeof Me.byteLength=="number"?J=Me.byteLength:typeof Me.size=="number"?J=Me.size:typeof Me=="string"&&(J=typeof r=="function"?new r().encode(Me).byteLength:Me.length)),typeof J=="number"&&J>k)throw new W("maxContentLength size of "+k+" exceeded",W.ERR_BAD_RESPONSE,y,Q)}return!ge&&Y&&Y(),await new Promise((J,Le)=>{KC(J,Le,{data:Me,headers:Kt.from(H.headers),status:H.status,statusText:H.statusText,config:y,request:Q})})}catch(fe){if(Y&&Y(),F&&F.aborted&&F.reason instanceof W){const Rt=F.reason;throw Rt.config=y,Q&&(Rt.request=Q),fe!==Rt&&(Rt.cause=fe),Rt}throw ye?(Q&&!ye.request&&(ye.request=Q),ye):fe instanceof W?(Q&&!fe.request&&(fe.request=Q),fe):fe&&fe.name==="TypeError"&&/Load failed|fetch/i.test(fe.message)?Object.assign(new W("Network Error",W.ERR_NETWORK,y,Q,fe&&fe.response),{cause:fe.cause||fe}):W.from(fe,fe&&fe.code,y,Q,fe&&fe.response)}}},L6=new Map,QC=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let o=i.length,l=o,s,u,f=L6;for(;l--;)s=i[l],u=f.get(s),u===void 0&&f.set(s,u=l?new Map:k6(t)),f=u;return u};QC();const nx={http:QL,xhr:_6,fetch:{get:QC}};R.forEach(nx,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const gw=e=>`- ${e}`,z6=e=>R.isFunction(e)||e===null||e===!1;function B6(e,t){e=R.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let o=0;o<n;o++){r=e[o];let l;if(a=r,!z6(r)&&(a=nx[(l=String(r)).toLowerCase()],a===void 0))throw new W(`Unknown adapter '${l}'`);if(a&&(R.isFunction(a)||(a=a.get(t))))break;i[l||"#"+o]=a}if(!a){const o=Object.entries(i).map(([s,u])=>`adapter ${s} `+(u===!1?"is not supported by the environment":"is not available in the build"));let l=n?o.length>1?`since :
`+o.map(gw).join(`
`):" "+gw(o[0]):"as no adapter specified";throw new W("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a}const WC={getAdapter:B6,adapters:nx};function om(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Xc(null,e)}function bw(e){return om(e),e.headers=Kt.from(e.headers),e.data=im.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),WC.getAdapter(e.adapter||Vc.adapter,e)(e).then(function(r){om(e),e.response=r;try{r.data=im.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Kt.from(r.headers),r},function(r){if(!YC(r)&&(om(e),r&&r.response)){e.response=r.response;try{r.response.data=im.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Kt.from(r.response.headers)}return Promise.reject(r)})}const vp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xw={};vp.transitional=function(t,n,r){function a(i,o){return"[Axios v"+tx+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new W(a(o," has been removed"+(n?" in "+n:"")),W.ERR_DEPRECATED);return n&&!xw[o]&&(xw[o]=!0,console.warn(a(o," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,o,l):!0}};vp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function I6(e,t,n){if(typeof e!="object")throw new W("options must be an object",W.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],o=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(o){const l=e[i],s=l===void 0||o(l,i,e);if(s!==!0)throw new W("option "+i+" must be "+s,W.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new W("Unknown option "+i,W.ERR_BAD_OPTION)}}const od={assertOptions:I6,validators:vp},qt=od.validators;let Xi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new sw,response:new sw}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const o=a.stack.indexOf(`
`);return o===-1?"":a.stack.slice(o+1)})();try{if(!r.stack)r.stack=i;else if(i){const o=i.indexOf(`
`),l=o===-1?-1:i.indexOf(`
`,o+1),s=l===-1?"":i.slice(l+1);String(r.stack).endsWith(s)||(r.stack+=`
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=io(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&od.assertOptions(r,{silentJSONParsing:qt.transitional(qt.boolean),forcedJSONParsing:qt.transitional(qt.boolean),clarifyTimeoutError:qt.transitional(qt.boolean),legacyInterceptorReqResOrdering:qt.transitional(qt.boolean),advertiseZstdAcceptEncoding:qt.transitional(qt.boolean),validateStatusUndefinedResolves:qt.transitional(qt.boolean)},!1),a!=null&&(R.isFunction(a)?n.paramsSerializer={serialize:a}:od.assertOptions(a,{encode:qt.function,serialize:qt.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),od.assertOptions(n,{baseUrl:qt.spelling("baseURL"),withXsrfToken:qt.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&R.merge(i.common,i[n.method]);i&&R.forEach(["delete","get","head","post","put","patch","query","common"],b=>{delete i[b]}),n.headers=Kt.concat(o,i);const l=[];let s=!0;this.interceptors.request.forEach(function(v){if(typeof v.runWhen=="function"&&v.runWhen(n)===!1)return;s=s&&v.synchronous;const g=n.transitional||Jb;g&&g.legacyInterceptorReqResOrdering?l.unshift(v.fulfilled,v.rejected):l.push(v.fulfilled,v.rejected)});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let f,c=0,h;if(!s){const b=[bw.bind(this),void 0];for(b.unshift(...l),b.push(...u),h=b.length,f=Promise.resolve(n);c<h;)f=f.then(b[c++],b[c++]);return f}h=l.length;let p=n;for(;c<h;){const b=l[c++],v=l[c++];try{p=b(p)}catch(g){v.call(this,g);break}}try{f=bw.call(this,p)}catch(b){return Promise.reject(b)}for(c=0,h=u.length;c<h;)f=f.then(u[c++],u[c++]);return f}getUri(t){t=io(this.defaults,t);const n=VC(t.baseURL,t.url,t.allowAbsoluteUrls,t);return qC(n,t.params,t.paramsSerializer)}};R.forEach(["delete","get","head","options"],function(t){Xi.prototype[t]=function(n,r){return this.request(io(r||{},{method:t,url:n,data:r&&R.hasOwnProp(r,"data")?r.data:void 0}))}});R.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,o,l){return this.request(io(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Xi.prototype[t]=n(),t!=="query"&&(Xi.prototype[t+"Form"]=n(!0))});let U6=class ZC{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(l=>{r.subscribe(l),i=l}).then(a);return o.cancel=function(){r.unsubscribe(i)},o},t(function(i,o,l){r.reason||(r.reason=new Xc(i,o,l),n(r.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 n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new ZC(function(a){t=a}),cancel:t}}};function H6(e){return function(n){return e.apply(null,n)}}function q6(e){return R.isObject(e)&&e.isAxiosError===!0}const ig={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(ig).forEach(([e,t])=>{ig[t]=e});function JC(e){const t=new Xi(e),n=CC(Xi.prototype.request,t);return R.extend(n,Xi.prototype,t,{allOwnKeys:!0}),R.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return JC(io(e,a))},n}const ct=JC(Vc);ct.Axios=Xi;ct.CanceledError=Xc;ct.CancelToken=U6;ct.isCancel=YC;ct.VERSION=tx;ct.toFormData=mp;ct.AxiosError=W;ct.Cancel=ct.CanceledError;ct.all=function(t){return Promise.all(t)};ct.spread=H6;ct.isAxiosError=q6;ct.mergeConfig=io;ct.AxiosHeaders=Kt;ct.formToJSON=e=>GC(R.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=WC.getAdapter;ct.HttpStatusCode=ig;ct.default=ct;const{Axios:ife,AxiosError:ofe,CanceledError:lfe,isCancel:sfe,CancelToken:ufe,VERSION:cfe,all:ffe,Cancel:dfe,isAxiosError:hfe,spread:pfe,toFormData:yfe,AxiosHeaders:mfe,HttpStatusCode:vfe,formToJSON:gfe,getAdapter:bfe,mergeConfig:xfe,create:Sfe}=ct,G=ct.create({baseURL:""});G.interceptors.request.use(e=>{const t=localStorage.getItem("esn_token");return t&&(e.headers.Authorization=`Bearer ${t}`),e});G.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem("esn_token"),location.pathname!=="/login"&&(location.href="/login")),Promise.reject(e)});const jt=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),F6=(e,t)=>G.post("/api/auth/login",{username:e,password:t}),G6=()=>G.get("/api/auth/me"),Y6=e=>jt(G.get(`/api/dashboard${e?`?tenantCode=${e}`:""}`)),K6=()=>jt(G.get("/api/tenants")),V6=e=>G.delete(`/api/tenants/${e}`),X6=e=>jt(G.get("/api/stores",{params:e})),Q6=e=>jt(G.post("/api/stores",e)),W6=(e,t)=>jt(G.put(`/api/stores/${e}`,t)),Z6=e=>G.delete(`/api/stores/${e}`),J6=e=>jt(G.get("/api/templates",{params:e})),ez=e=>G.delete(`/api/templates/${e}`),tz=e=>jt(G.get("/api/pos-cvt",{params:e})),nz=e=>jt(G.put(`/api/pos-cvt/${e}/process`)),rz=e=>jt(G.put(`/api/pos-cvt/${e}/ignore`)),az=e=>jt(G.get("/api/alarms",{params:e})),iz=(e,t)=>jt(G.put(`/api/alarms/${e}/resolve`,{resolution:t})),oz=e=>G.delete(`/api/alarms/${e}`),lz=e=>jt(G.get("/api/hcore",{params:e})),sz=(e,t)=>jt(G.put(`/api/hcore/${e}/status`,{status:t})),uz=e=>jt(G.get("/api/works",{params:e})),cz=e=>jt(G.get("/api/firmware",{params:e})),fz=e=>G.delete(`/api/firmware/${e}`),dz=e=>jt(G.get("/api/users",{params:e})),hz=e=>G.delete(`/api/users/${e}`),pz=e=>jt(G.get("/api/products",{params:e})),yz=e=>G.delete(`/api/products/${e}`),mz=e=>jt(G.post("/api/ai/analyze-alarm",e)),vz=e=>jt(G.post("/api/ai/classify-pos",e));function gz(){const e=localStorage.getItem("esn_token");return j.useEffect(()=>{e&&G6().then(t=>{var r;const n=((r=t.data)==null?void 0:r.data)||{};n.role&&localStorage.setItem("esn_role",n.role),n.username&&localStorage.setItem("esn_user",n.username),n.tenant&&localStorage.setItem("esn_tenant",n.tenant)}).catch(()=>{})},[e]),e?d.jsxs("div",{className:"flex h-screen bg-ink",children:[d.jsx(q5,{}),d.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[d.jsx(G5,{}),d.jsx("main",{className:"flex-1 overflow-auto p-6",children:d.jsx(k4,{})})]})]}):d.jsx(aC,{to:"/login",replace:!0})}const bz=(e,t)=>G.post("/api/auth/verify",{verifyToken:e,code:t}),xz=e=>G.post("/api/messages",e),Sz=e=>G.get("/api/messages/sent",{params:e}),wz=e=>G.get(`/api/messages/sent/${e}`),Oz=e=>G.get("/api/messages/received",{params:e}),jz=e=>G.get(`/api/messages/received/${e}`),Az=e=>G.get("/api/schedules",{params:e}),Ez=e=>G.post("/api/schedules",e),_z=e=>G.get(`/api/schedules/${e}`),Tz=e=>G.delete(`/api/schedules/${e}`),Cz=e=>G.get("/api/worklogs",{params:e}),Nz=e=>G.get("/api/worklogs/dashboard/progress",{params:e}),Mz=e=>G.post("/api/worklogs",e),Pz=e=>G.get(`/api/worklogs/${e}`),Rz=e=>G.delete(`/api/worklogs/${e}`),$z=(e,t)=>G.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),Dz=e=>G.get("/api/stats/personal-work",{params:e}),kz=e=>G.get("/api/stats/company-work",{params:e}),Lz=e=>G.post("/api/auth/signup",e),zz=e=>G.post("/api/auth/find-id",e),Bz=e=>G.post("/api/auth/reset-password",e),Iz=e=>G.get("/api/system/roles",{params:e}),Uz=e=>G.post("/api/system/roles",e),Hz=(e,t)=>G.put(`/api/system/roles/${e}`,t),qz=e=>G.delete("/api/system/roles",{data:{ids:e}}),Fz=e=>G.get("/api/system/role-menus",{params:e}),Gz=e=>G.get(`/api/system/roles/${e}/menus`),Yz=(e,t)=>G.put(`/api/system/roles/${e}/menus`,{menus:t}),Kz=e=>G.get("/api/system/codes",{params:e}),Vz=e=>G.get(`/api/system/codes/${e}`),Xz=e=>G.post("/api/system/codes",e),Qz=(e,t)=>G.put(`/api/system/codes/${e}`,t),Wz=e=>G.delete(`/api/system/codes/${e}`),Zz=e=>G.get("/api/system/menus",{params:e}),Jz=e=>G.post("/api/system/menus",e),e8=(e,t)=>G.put(`/api/system/menus/${e}`,t),t8=e=>G.delete("/api/system/menus",{data:{ids:e}}),n8=e=>G.get("/api/system/programs",{params:e}),r8=e=>G.get("/api/system/depts",{params:e}),a8=e=>G.post("/api/system/depts",e),i8=(e,t)=>G.put(`/api/system/depts/${e}`,t),o8=e=>G.delete(`/api/system/depts/${e}`),l8=e=>G.get("/api/system/companies",{params:e}),s8=e=>G.post("/api/system/companies",e),u8=(e,t)=>G.put(`/api/system/companies/${e}`,t),c8=e=>G.delete("/api/system/companies",{data:{ids:e}});function f8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,f]=j.useState("login"),[c,h]=j.useState(""),[p,b]=j.useState(""),[v,g]=j.useState("");function y(S){localStorage.setItem("esn_token",S),localStorage.setItem("esn_user",t),e("/dashboard")}async function m(S){var w;S.preventDefault(),s(!0),o("");try{const A=(w=(await F6(t,r)).data)==null?void 0:w.data;if((A==null?void 0:A.twofa)==="true")h(A.verifyToken),b(A.maskedEmail||""),f("verify");else{if(!(A!=null&&A.token))throw new Error("토큰 없음");y(A.token)}}catch{o("아이디/비밀번호가 올바르지 않거나 계정이 잠겼습니다.")}finally{s(!1)}}async function x(S){var w,O;S.preventDefault(),s(!0),o("");try{const A=await bz(c,v);y((O=(w=A.data)==null?void 0:w.data)==null?void 0:O.token)}catch{o("인증 코드가 올바르지 않거나 만료되었습니다.")}finally{s(!1)}}return d.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-bold text-brand",children:"zioinfo-esn"}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:u==="login"?"ESL 통합 관리 플랫폼":"2차 인증"})]}),u==="login"?d.jsxs("form",{onSubmit:m,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),d.jsx("input",{value:t,onChange:S=>n(S.target.value),placeholder:"admin",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"비밀번호"}),d.jsx("input",{type:"password",value:r,onChange:S=>a(S.target.value),placeholder:"••••••••",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsx("p",{className:"text-red-400 text-xs",children:i}),d.jsx("button",{type:"submit",disabled:l,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:l?"로그인 중...":"로그인"}),d.jsxs("div",{className:"flex items-center justify-center gap-3 pt-1 text-xs text-gray-400",children:[d.jsx(cr,{to:"/signup",className:"hover:text-brand transition-colors",children:"회원가입"}),d.jsx("span",{className:"text-edge",children:"|"}),d.jsx(cr,{to:"/find-id",className:"hover:text-brand transition-colors",children:"아이디 찾기"}),d.jsx("span",{className:"text-edge",children:"|"}),d.jsx(cr,{to:"/reset-pw",className:"hover:text-brand transition-colors",children:"비밀번호 초기화"})]})]}):d.jsxs("form",{onSubmit:x,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:p?`${p} 로 발송된 인증코드를 입력하세요.`:"발송된 인증코드를 입력하세요."}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"인증코드 6자리"}),d.jsx("input",{inputMode:"numeric",maxLength:6,value:v,onChange:S=>g(S.target.value),placeholder:"000000",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white text-center tracking-[0.4em] placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsx("p",{className:"text-red-400 text-xs",children:i}),d.jsx("button",{type:"submit",disabled:l,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:l?"인증 중...":"인증하고 로그인"}),d.jsx("button",{type:"button",onClick:()=>{f("login"),g(""),o("")},className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"뒤로"})]})]})})}function d8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(""),[u,f]=j.useState(""),[c,h]=j.useState(!1),[p,b]=j.useState(!1);async function v(g){var y;g.preventDefault(),b(!0),f("");try{const x=(y=(await Lz({username:t,password:r,displayName:i,email:l})).data)==null?void 0:y.data;h(!!(x!=null&&x.success)),f((x==null?void 0:x.message)||"처리되었습니다.")}catch{h(!1),f("가입 신청 처리 중 오류가 발생했습니다.")}finally{b(!1)}}return d.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-bold text-brand",children:"회원가입"}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"관리자 승인 후 로그인할 수 있습니다."})]}),d.jsxs("form",{onSubmit:v,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),d.jsx("input",{value:t,onChange:g=>n(g.target.value),placeholder:"아이디",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"비밀번호 (4자 이상)"}),d.jsx("input",{type:"password",value:r,onChange:g=>a(g.target.value),placeholder:"••••••••",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이름"}),d.jsx("input",{value:i,onChange:g=>o(g.target.value),placeholder:"홍길동",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이메일"}),d.jsx("input",{type:"email",value:l,onChange:g=>s(g.target.value),placeholder:"user@zioinfo.co.kr",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),u&&d.jsx("p",{className:`text-xs ${c?"text-accent":"text-red-400"}`,children:u}),d.jsx("button",{type:"submit",disabled:p,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:p?"처리 중...":"가입 신청"}),d.jsx("button",{type:"button",onClick:()=>e("/login"),className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"로그인으로"}),d.jsxs("div",{className:"text-center text-xs text-gray-400 pt-1",children:[d.jsx(cr,{to:"/find-id",className:"hover:text-brand",children:"아이디 찾기"}),d.jsx("span",{className:"text-edge mx-2",children:"|"}),d.jsx(cr,{to:"/reset-pw",className:"hover:text-brand",children:"비밀번호 초기화"})]})]})]})})}function h8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(null),[l,s]=j.useState(!1),[u,f]=j.useState(!1);async function c(h){var p;h.preventDefault(),f(!0),o(null),s(!1);try{const v=(p=(await zz({displayName:t,email:r})).data)==null?void 0:p.data;v!=null&&v.found?o(v.maskedUsername):s(!0)}catch{s(!0)}finally{f(!1)}}return d.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-bold text-brand",children:"아이디 찾기"}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"이름과 이메일로 아이디를 확인합니다."})]}),d.jsxs("form",{onSubmit:c,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이름"}),d.jsx("input",{value:t,onChange:h=>n(h.target.value),placeholder:"홍길동",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이메일"}),d.jsx("input",{type:"email",value:r,onChange:h=>a(h.target.value),placeholder:"user@zioinfo.co.kr",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsxs("p",{className:"text-xs text-accent",children:["회원님의 아이디: ",d.jsx("span",{className:"font-mono font-bold tracking-wider",children:i})]}),l&&d.jsx("p",{className:"text-xs text-red-400",children:"일치하는 계정을 찾을 수 없습니다."}),d.jsx("button",{type:"submit",disabled:u,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:u?"확인 중...":"아이디 찾기"}),d.jsx("button",{type:"button",onClick:()=>e("/login"),className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"로그인으로"}),d.jsxs("div",{className:"text-center text-xs text-gray-400 pt-1",children:[d.jsx(cr,{to:"/signup",className:"hover:text-brand",children:"회원가입"}),d.jsx("span",{className:"text-edge mx-2",children:"|"}),d.jsx(cr,{to:"/reset-pw",className:"hover:text-brand",children:"비밀번호 초기화"})]})]})]})})}function p8(){const e=vo(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,f]=j.useState(!1);async function c(h){var p;h.preventDefault(),f(!0),o("");try{const v=(p=(await Bz({username:t,email:r})).data)==null?void 0:p.data;s(!!(v!=null&&v.success)),o((v==null?void 0:v.message)||"처리되었습니다.")}catch{s(!1),o("비밀번호 초기화 처리 중 오류가 발생했습니다.")}finally{f(!1)}}return d.jsx("div",{className:"min-h-screen bg-ink flex items-center justify-center",children:d.jsxs("div",{className:"w-full max-w-sm",children:[d.jsxs("div",{className:"text-center mb-8",children:[d.jsx("h1",{className:"text-2xl font-bold text-brand",children:"비밀번호 초기화"}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"임시 비밀번호를 이메일로 발송합니다."})]}),d.jsxs("form",{onSubmit:c,className:"bg-card border border-edge rounded-lg p-6 space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"아이디"}),d.jsx("input",{value:t,onChange:h=>n(h.target.value),placeholder:"아이디",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:"이메일"}),d.jsx("input",{type:"email",value:r,onChange:h=>a(h.target.value),placeholder:"user@zioinfo.co.kr",className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white placeholder-gray-600 focus:border-brand focus:outline-none"})]}),i&&d.jsx("p",{className:`text-xs ${l?"text-accent":"text-red-400"}`,children:i}),d.jsx("button",{type:"submit",disabled:u,className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm font-medium transition-colors disabled:opacity-50",children:u?"처리 중...":"임시 비밀번호 발송"}),d.jsx("button",{type:"button",onClick:()=>e("/login"),className:"w-full border border-edge text-gray-400 hover:text-white py-2 rounded text-sm transition-colors",children:"로그인으로"}),d.jsxs("div",{className:"text-center text-xs text-gray-400 pt-1",children:[d.jsx(cr,{to:"/signup",className:"hover:text-brand",children:"회원가입"}),d.jsx("span",{className:"text-edge mx-2",children:"|"}),d.jsx(cr,{to:"/find-id",className:"hover:text-brand",children:"아이디 찾기"})]})]})]})})}function eN(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=eN(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function me(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=eN(e))&&(r&&(r+=" "),r+=t);return r}var y8=Array.isArray,yn=y8,m8=typeof af=="object"&&af&&af.Object===Object&&af,tN=m8,v8=tN,g8=typeof self=="object"&&self&&self.Object===Object&&self,b8=v8||g8||Function("return this")(),Pr=b8,x8=Pr,S8=x8.Symbol,Qc=S8,Sw=Qc,nN=Object.prototype,w8=nN.hasOwnProperty,O8=nN.toString,Fs=Sw?Sw.toStringTag:void 0;function j8(e){var t=w8.call(e,Fs),n=e[Fs];try{e[Fs]=void 0;var r=!0}catch{}var a=O8.call(e);return r&&(t?e[Fs]=n:delete e[Fs]),a}var A8=j8,E8=Object.prototype,_8=E8.toString;function T8(e){return _8.call(e)}var C8=T8,ww=Qc,N8=A8,M8=C8,P8="[object Null]",R8="[object Undefined]",Ow=ww?ww.toStringTag:void 0;function $8(e){return e==null?e===void 0?R8:P8:Ow&&Ow in Object(e)?N8(e):M8(e)}var ga=$8;function D8(e){return e!=null&&typeof e=="object"}var ba=D8,k8=ga,L8=ba,z8="[object Symbol]";function B8(e){return typeof e=="symbol"||L8(e)&&k8(e)==z8}var ws=B8,I8=yn,U8=ws,H8=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q8=/^\w*$/;function F8(e,t){if(I8(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||U8(e)?!0:q8.test(e)||!H8.test(e)||t!=null&&e in Object(t)}var rx=F8;function G8(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var fi=G8;const Os=Ue(fi);var Y8=ga,K8=fi,V8="[object AsyncFunction]",X8="[object Function]",Q8="[object GeneratorFunction]",W8="[object Proxy]";function Z8(e){if(!K8(e))return!1;var t=Y8(e);return t==X8||t==Q8||t==V8||t==W8}var ax=Z8;const ue=Ue(ax);var J8=Pr,eB=J8["__core-js_shared__"],tB=eB,lm=tB,jw=function(){var e=/[^.]+$/.exec(lm&&lm.keys&&lm.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function nB(e){return!!jw&&jw in e}var rB=nB,aB=Function.prototype,iB=aB.toString;function oB(e){if(e!=null){try{return iB.call(e)}catch{}try{return e+""}catch{}}return""}var rN=oB,lB=ax,sB=rB,uB=fi,cB=rN,fB=/[\\^$.*+?()[\]{}|]/g,dB=/^\[object .+?Constructor\]$/,hB=Function.prototype,pB=Object.prototype,yB=hB.toString,mB=pB.hasOwnProperty,vB=RegExp("^"+yB.call(mB).replace(fB,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function gB(e){if(!uB(e)||sB(e))return!1;var t=lB(e)?vB:dB;return t.test(cB(e))}var bB=gB;function xB(e,t){return e==null?void 0:e[t]}var SB=xB,wB=bB,OB=SB;function jB(e,t){var n=OB(e,t);return wB(n)?n:void 0}var bo=jB,AB=bo,EB=AB(Object,"create"),gp=EB,Aw=gp;function _B(){this.__data__=Aw?Aw(null):{},this.size=0}var TB=_B;function CB(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var NB=CB,MB=gp,PB="__lodash_hash_undefined__",RB=Object.prototype,$B=RB.hasOwnProperty;function DB(e){var t=this.__data__;if(MB){var n=t[e];return n===PB?void 0:n}return $B.call(t,e)?t[e]:void 0}var kB=DB,LB=gp,zB=Object.prototype,BB=zB.hasOwnProperty;function IB(e){var t=this.__data__;return LB?t[e]!==void 0:BB.call(t,e)}var UB=IB,HB=gp,qB="__lodash_hash_undefined__";function FB(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=HB&&t===void 0?qB:t,this}var GB=FB,YB=TB,KB=NB,VB=kB,XB=UB,QB=GB;function js(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}js.prototype.clear=YB;js.prototype.delete=KB;js.prototype.get=VB;js.prototype.has=XB;js.prototype.set=QB;var WB=js;function ZB(){this.__data__=[],this.size=0}var JB=ZB;function eI(e,t){return e===t||e!==e&&t!==t}var ix=eI,tI=ix;function nI(e,t){for(var n=e.length;n--;)if(tI(e[n][0],t))return n;return-1}var bp=nI,rI=bp,aI=Array.prototype,iI=aI.splice;function oI(e){var t=this.__data__,n=rI(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():iI.call(t,n,1),--this.size,!0}var lI=oI,sI=bp;function uI(e){var t=this.__data__,n=sI(t,e);return n<0?void 0:t[n][1]}var cI=uI,fI=bp;function dI(e){return fI(this.__data__,e)>-1}var hI=dI,pI=bp;function yI(e,t){var n=this.__data__,r=pI(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var mI=yI,vI=JB,gI=lI,bI=cI,xI=hI,SI=mI;function As(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}As.prototype.clear=vI;As.prototype.delete=gI;As.prototype.get=bI;As.prototype.has=xI;As.prototype.set=SI;var xp=As,wI=bo,OI=Pr,jI=wI(OI,"Map"),ox=jI,Ew=WB,AI=xp,EI=ox;function _I(){this.size=0,this.__data__={hash:new Ew,map:new(EI||AI),string:new Ew}}var TI=_I;function CI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var NI=CI,MI=NI;function PI(e,t){var n=e.__data__;return MI(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Sp=PI,RI=Sp;function $I(e){var t=RI(this,e).delete(e);return this.size-=t?1:0,t}var DI=$I,kI=Sp;function LI(e){return kI(this,e).get(e)}var zI=LI,BI=Sp;function II(e){return BI(this,e).has(e)}var UI=II,HI=Sp;function qI(e,t){var n=HI(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var FI=qI,GI=TI,YI=DI,KI=zI,VI=UI,XI=FI;function Es(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Es.prototype.clear=GI;Es.prototype.delete=YI;Es.prototype.get=KI;Es.prototype.has=VI;Es.prototype.set=XI;var lx=Es,aN=lx,QI="Expected a function";function sx(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(QI);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var o=e.apply(this,r);return n.cache=i.set(a,o)||i,o};return n.cache=new(sx.Cache||aN),n}sx.Cache=aN;var iN=sx;const WI=Ue(iN);var ZI=iN,JI=500;function eU(e){var t=ZI(e,function(r){return n.size===JI&&n.clear(),r}),n=t.cache;return t}var tU=eU,nU=tU,rU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,aU=/\\(\\)?/g,iU=nU(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(rU,function(n,r,a,i){t.push(a?i.replace(aU,"$1"):r||n)}),t}),oU=iU;function lU(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var ux=lU,_w=Qc,sU=ux,uU=yn,cU=ws,Tw=_w?_w.prototype:void 0,Cw=Tw?Tw.toString:void 0;function oN(e){if(typeof e=="string")return e;if(uU(e))return sU(e,oN)+"";if(cU(e))return Cw?Cw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var fU=oN,dU=fU;function hU(e){return e==null?"":dU(e)}var lN=hU,pU=yn,yU=rx,mU=oU,vU=lN;function gU(e,t){return pU(e)?e:yU(e,t)?[e]:mU(vU(e))}var sN=gU,bU=ws;function xU(e){if(typeof e=="string"||bU(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var wp=xU,SU=sN,wU=wp;function OU(e,t){t=SU(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[wU(t[n++])];return n&&n==r?e:void 0}var cx=OU,jU=cx;function AU(e,t,n){var r=e==null?void 0:jU(e,t);return r===void 0?n:r}var uN=AU;const Nn=Ue(uN);function EU(e){return e==null}var _U=EU;const ve=Ue(_U);var TU=ga,CU=yn,NU=ba,MU="[object String]";function PU(e){return typeof e=="string"||!CU(e)&&NU(e)&&TU(e)==MU}var RU=PU;const oo=Ue(RU);var cN={exports:{}},De={};/**
 * @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 fx=Symbol.for("react.element"),dx=Symbol.for("react.portal"),Op=Symbol.for("react.fragment"),jp=Symbol.for("react.strict_mode"),Ap=Symbol.for("react.profiler"),Ep=Symbol.for("react.provider"),_p=Symbol.for("react.context"),$U=Symbol.for("react.server_context"),Tp=Symbol.for("react.forward_ref"),Cp=Symbol.for("react.suspense"),Np=Symbol.for("react.suspense_list"),Mp=Symbol.for("react.memo"),Pp=Symbol.for("react.lazy"),DU=Symbol.for("react.offscreen"),fN;fN=Symbol.for("react.module.reference");function er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case fx:switch(e=e.type,e){case Op:case Ap:case jp:case Cp:case Np:return e;default:switch(e=e&&e.$$typeof,e){case $U:case _p:case Tp:case Pp:case Mp:case Ep:return e;default:return t}}case dx:return t}}}De.ContextConsumer=_p;De.ContextProvider=Ep;De.Element=fx;De.ForwardRef=Tp;De.Fragment=Op;De.Lazy=Pp;De.Memo=Mp;De.Portal=dx;De.Profiler=Ap;De.StrictMode=jp;De.Suspense=Cp;De.SuspenseList=Np;De.isAsyncMode=function(){return!1};De.isConcurrentMode=function(){return!1};De.isContextConsumer=function(e){return er(e)===_p};De.isContextProvider=function(e){return er(e)===Ep};De.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===fx};De.isForwardRef=function(e){return er(e)===Tp};De.isFragment=function(e){return er(e)===Op};De.isLazy=function(e){return er(e)===Pp};De.isMemo=function(e){return er(e)===Mp};De.isPortal=function(e){return er(e)===dx};De.isProfiler=function(e){return er(e)===Ap};De.isStrictMode=function(e){return er(e)===jp};De.isSuspense=function(e){return er(e)===Cp};De.isSuspenseList=function(e){return er(e)===Np};De.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Op||e===Ap||e===jp||e===Cp||e===Np||e===DU||typeof e=="object"&&e!==null&&(e.$$typeof===Pp||e.$$typeof===Mp||e.$$typeof===Ep||e.$$typeof===_p||e.$$typeof===Tp||e.$$typeof===fN||e.getModuleId!==void 0)};De.typeOf=er;cN.exports=De;var kU=cN.exports,LU=ga,zU=ba,BU="[object Number]";function IU(e){return typeof e=="number"||zU(e)&&LU(e)==BU}var dN=IU;const UU=Ue(dN);var HU=dN;function qU(e){return HU(e)&&e!=+e}var FU=qU;const Wc=Ue(FU);var Zt=function(t){return t===0?0:t>0?1:-1},Mi=function(t){return oo(t)&&t.indexOf("%")===t.length-1},K=function(t){return UU(t)&&!Wc(t)},GU=function(t){return ve(t)},wt=function(t){return K(t)||oo(t)},YU=0,Zc=function(t){var n=++YU;return"".concat(t||"").concat(n)},Jt=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!K(t)&&!oo(t))return r;var i;if(Mi(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return Wc(i)&&(i=r),a&&i>n&&(i=n),i},Lo=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},KU=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},Ea=function(t,n){return K(t)&&K(n)?function(r){return t+r*(n-t)}:function(){return n}};function og(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Nn(r,t))===n})}var VU=function(t,n){return K(t)&&K(n)?t-n:oo(t)&&oo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function sl(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function lg(e){"@babel/helpers - typeof";return lg=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},lg(e)}var XU=["viewBox","children"],QU=["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"],Nw=["points","pathLength"],sm={svg:XU,polygon:Nw,polyline:Nw},hx=["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"],Gd=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(j.isValidElement(t)&&(r=t.props),!Os(r))return null;var a={};return Object.keys(r).forEach(function(i){hx.includes(i)&&(a[i]=n||function(o){return r[i](r,o)})}),a},WU=function(t,n,r){return function(a){return t(n,r,a),null}},lo=function(t,n,r){if(!Os(t)||lg(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];hx.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=WU(o,n,r))}),a},ZU=["children"],JU=["children"];function Mw(e,t){if(e==null)return{};var n=e7(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function e7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Pw={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"},ra=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},Rw=null,um=null,px=function e(t){if(t===Rw&&Array.isArray(um))return um;var n=[];return j.Children.forEach(t,function(r){ve(r)||(kU.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),um=n,Rw=t,n};function Wn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return ra(a)}):r=[ra(t)],px(e).forEach(function(a){var i=Nn(a,"type.displayName")||Nn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function bn(e,t){var n=Wn(e,t);return n&&n[0]}var $w=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!K(r)||r<=0||!K(a)||a<=0)},t7=["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"],n7=function(t){return t&&t.type&&oo(t.type)&&t7.indexOf(t.type)>=0},r7=function(t,n,r,a){var i,o=(i=sm==null?void 0:sm[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!ue(t)&&(a&&o.includes(n)||QU.includes(n))||r&&hx.includes(n)},oe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(j.isValidElement(t)&&(a=t.props),!Os(a))return null;var i={};return Object.keys(a).forEach(function(o){var l;r7((l=a)===null||l===void 0?void 0:l[o],o,n,r)&&(i[o]=a[o])}),i},sg=function e(t,n){if(t===n)return!0;var r=j.Children.count(t);if(r!==j.Children.count(n))return!1;if(r===0)return!0;if(r===1)return Dw(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],o=n[a];if(Array.isArray(i)||Array.isArray(o)){if(!e(i,o))return!1}else if(!Dw(i,o))return!1}return!0},Dw=function(t,n){if(ve(t)&&ve(n))return!0;if(!ve(t)&&!ve(n)){var r=t.props||{},a=r.children,i=Mw(r,ZU),o=n.props||{},l=o.children,s=Mw(o,JU);return a&&l?sl(i,s)&&sg(a,l):!a&&!l?sl(i,s):!1}return!1},kw=function(t,n){var r=[],a={};return px(t).forEach(function(i,o){if(n7(i))r.push(i);else if(i){var l=ra(i.type),s=n[l]||{},u=s.handler,f=s.once;if(u&&(!f||!a[l])){var c=u(i,l,o);r.push(c),a[l]=!0}}}),r},a7=function(t){var n=t&&t.type;return n&&Pw[n]?Pw[n]:null},i7=function(t,n){return px(n).indexOf(t)},o7=["children","width","height","viewBox","className","style","title","desc"];function ug(){return ug=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ug.apply(this,arguments)}function l7(e,t){if(e==null)return{};var n=s7(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function s7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function cg(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,o=e.style,l=e.title,s=e.desc,u=l7(e,o7),f=a||{width:n,height:r,x:0,y:0},c=me("recharts-surface",i);return D.createElement("svg",ug({},oe(u,!0,"svg"),{className:c,width:n,height:r,style:o,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),D.createElement("title",null,l),D.createElement("desc",null,s),t)}var u7=["children","className"];function fg(){return fg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fg.apply(this,arguments)}function c7(e,t){if(e==null)return{};var n=f7(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f7(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var $e=D.forwardRef(function(e,t){var n=e.children,r=e.className,a=c7(e,u7),i=me("recharts-layer",r);return D.createElement("g",fg({className:i},oe(a,!0),{ref:t}),n)}),aa=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i]};function d7(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}var h7=d7,p7=h7;function y7(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:p7(e,t,n)}var m7=y7,v7="\\ud800-\\udfff",g7="\\u0300-\\u036f",b7="\\ufe20-\\ufe2f",x7="\\u20d0-\\u20ff",S7=g7+b7+x7,w7="\\ufe0e\\ufe0f",O7="\\u200d",j7=RegExp("["+O7+v7+S7+w7+"]");function A7(e){return j7.test(e)}var hN=A7;function E7(e){return e.split("")}var _7=E7,pN="\\ud800-\\udfff",T7="\\u0300-\\u036f",C7="\\ufe20-\\ufe2f",N7="\\u20d0-\\u20ff",M7=T7+C7+N7,P7="\\ufe0e\\ufe0f",R7="["+pN+"]",dg="["+M7+"]",hg="\\ud83c[\\udffb-\\udfff]",$7="(?:"+dg+"|"+hg+")",yN="[^"+pN+"]",mN="(?:\\ud83c[\\udde6-\\uddff]){2}",vN="[\\ud800-\\udbff][\\udc00-\\udfff]",D7="\\u200d",gN=$7+"?",bN="["+P7+"]?",k7="(?:"+D7+"(?:"+[yN,mN,vN].join("|")+")"+bN+gN+")*",L7=bN+gN+k7,z7="(?:"+[yN+dg+"?",dg,mN,vN,R7].join("|")+")",B7=RegExp(hg+"(?="+hg+")|"+z7+L7,"g");function I7(e){return e.match(B7)||[]}var U7=I7,H7=_7,q7=hN,F7=U7;function G7(e){return q7(e)?F7(e):H7(e)}var Y7=G7,K7=m7,V7=hN,X7=Y7,Q7=lN;function W7(e){return function(t){t=Q7(t);var n=V7(t)?X7(t):void 0,r=n?n[0]:t.charAt(0),a=n?K7(n,1).join(""):t.slice(1);return r[e]()+a}}var Z7=W7,J7=Z7,e9=J7("toUpperCase"),t9=e9;const Rp=Ue(t9);function Ge(e){return function(){return e}}const xN=Math.cos,Yd=Math.sin,mr=Math.sqrt,Kd=Math.PI,$p=2*Kd,pg=Math.PI,yg=2*pg,Ai=1e-6,n9=yg-Ai;function SN(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function r9(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return SN;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class a9{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?SN:r9(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,o){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+o}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let o=this._x1,l=this._y1,s=r-t,u=a-n,f=o-t,c=l-n,h=f*f+c*c;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ai)if(!(Math.abs(c*s-u*f)>Ai)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,b=a-l,v=s*s+u*u,g=p*p+b*b,y=Math.sqrt(v),m=Math.sqrt(h),x=i*Math.tan((pg-Math.acos((v+h-g)/(2*y*m)))/2),S=x/m,w=x/y;Math.abs(S-1)>Ai&&this._append`L${t+S*f},${n+S*c}`,this._append`A${i},${i},0,0,${+(c*p>f*b)},${this._x1=t+w*s},${this._y1=n+w*u}`}}arc(t,n,r,a,i,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(a),s=r*Math.sin(a),u=t+l,f=n+s,c=1^o,h=o?a-i:i-a;this._x1===null?this._append`M${u},${f}`:(Math.abs(this._x1-u)>Ai||Math.abs(this._y1-f)>Ai)&&this._append`L${u},${f}`,r&&(h<0&&(h=h%yg+yg),h>n9?this._append`A${r},${r},0,1,${c},${t-l},${n-s}A${r},${r},0,1,${c},${this._x1=u},${this._y1=f}`:h>Ai&&this._append`A${r},${r},0,${+(h>=pg)},${c},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function yx(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new a9(t)}function mx(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function wN(e){this._context=e}wN.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 Dp(e){return new wN(e)}function ON(e){return e[0]}function jN(e){return e[1]}function AN(e,t){var n=Ge(!0),r=null,a=Dp,i=null,o=yx(l);e=typeof e=="function"?e:e===void 0?ON:Ge(e),t=typeof t=="function"?t:t===void 0?jN:Ge(t);function l(s){var u,f=(s=mx(s)).length,c,h=!1,p;for(r==null&&(i=a(p=o())),u=0;u<=f;++u)!(u<f&&n(c=s[u],u,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(c,u,s),+t(c,u,s));if(p)return i=null,p+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:Ge(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:Ge(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Ge(!!s),l):n},l.curve=function(s){return arguments.length?(a=s,r!=null&&(i=a(r)),l):a},l.context=function(s){return arguments.length?(s==null?r=i=null:i=a(r=s),l):r},l}function Af(e,t,n){var r=null,a=Ge(!0),i=null,o=Dp,l=null,s=yx(u);e=typeof e=="function"?e:e===void 0?ON:Ge(+e),t=typeof t=="function"?t:Ge(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?jN:Ge(+n);function u(c){var h,p,b,v=(c=mx(c)).length,g,y=!1,m,x=new Array(v),S=new Array(v);for(i==null&&(l=o(m=s())),h=0;h<=v;++h){if(!(h<v&&a(g=c[h],h,c))===y)if(y=!y)p=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),b=h-1;b>=p;--b)l.point(x[b],S[b]);l.lineEnd(),l.areaEnd()}y&&(x[h]=+e(g,h,c),S[h]=+t(g,h,c),l.point(r?+r(g,h,c):x[h],n?+n(g,h,c):S[h]))}if(m)return l=null,m+""||null}function f(){return AN().defined(a).curve(o).context(i)}return u.x=function(c){return arguments.length?(e=typeof c=="function"?c:Ge(+c),r=null,u):e},u.x0=function(c){return arguments.length?(e=typeof c=="function"?c:Ge(+c),u):e},u.x1=function(c){return arguments.length?(r=c==null?null:typeof c=="function"?c:Ge(+c),u):r},u.y=function(c){return arguments.length?(t=typeof c=="function"?c:Ge(+c),n=null,u):t},u.y0=function(c){return arguments.length?(t=typeof c=="function"?c:Ge(+c),u):t},u.y1=function(c){return arguments.length?(n=c==null?null:typeof c=="function"?c:Ge(+c),u):n},u.lineX0=u.lineY0=function(){return f().x(e).y(t)},u.lineY1=function(){return f().x(e).y(n)},u.lineX1=function(){return f().x(r).y(t)},u.defined=function(c){return arguments.length?(a=typeof c=="function"?c:Ge(!!c),u):a},u.curve=function(c){return arguments.length?(o=c,i!=null&&(l=o(i)),u):o},u.context=function(c){return arguments.length?(c==null?i=l=null:l=o(i=c),u):i},u}class EN{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function i9(e){return new EN(e,!0)}function o9(e){return new EN(e,!1)}const vx={draw(e,t){const n=mr(t/Kd);e.moveTo(n,0),e.arc(0,0,n,0,$p)}},l9={draw(e,t){const n=mr(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},_N=mr(1/3),s9=_N*2,u9={draw(e,t){const n=mr(t/s9),r=n*_N;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},c9={draw(e,t){const n=mr(t),r=-n/2;e.rect(r,r,n,n)}},f9=.8908130915292852,TN=Yd(Kd/10)/Yd(7*Kd/10),d9=Yd($p/10)*TN,h9=-xN($p/10)*TN,p9={draw(e,t){const n=mr(t*f9),r=d9*n,a=h9*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=$p*i/5,l=xN(o),s=Yd(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},cm=mr(3),y9={draw(e,t){const n=-mr(t/(cm*3));e.moveTo(0,n*2),e.lineTo(-cm*n,-n),e.lineTo(cm*n,-n),e.closePath()}},kn=-.5,Ln=mr(3)/2,mg=1/mr(12),m9=(mg/2+1)*3,v9={draw(e,t){const n=mr(t/m9),r=n/2,a=n*mg,i=r,o=n*mg+n,l=-i,s=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(kn*r-Ln*a,Ln*r+kn*a),e.lineTo(kn*i-Ln*o,Ln*i+kn*o),e.lineTo(kn*l-Ln*s,Ln*l+kn*s),e.lineTo(kn*r+Ln*a,kn*a-Ln*r),e.lineTo(kn*i+Ln*o,kn*o-Ln*i),e.lineTo(kn*l+Ln*s,kn*s-Ln*l),e.closePath()}};function g9(e,t){let n=null,r=yx(a);e=typeof e=="function"?e:Ge(e||vx),t=typeof t=="function"?t:Ge(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ge(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ge(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Vd(){}function Xd(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function CN(e){this._context=e}CN.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:Xd(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:Xd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function b9(e){return new CN(e)}function NN(e){this._context=e}NN.prototype={areaStart:Vd,areaEnd:Vd,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:Xd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function x9(e){return new NN(e)}function MN(e){this._context=e}MN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:Xd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function S9(e){return new MN(e)}function PN(e){this._context=e}PN.prototype={areaStart:Vd,areaEnd:Vd,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 w9(e){return new PN(e)}function Lw(e){return e<0?-1:1}function zw(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),o=(n-e._y1)/(a||r<0&&-0),l=(i*a+o*r)/(r+a);return(Lw(i)+Lw(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function Bw(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function fm(e,t,n){var r=e._x0,a=e._y0,i=e._x1,o=e._y1,l=(i-r)/3;e._context.bezierCurveTo(r+l,a+l*t,i-l,o-l*n,i,o)}function Qd(e){this._context=e}Qd.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:fm(this,this._t0,Bw(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,fm(this,Bw(this,n=zw(this,e,t)),n);break;default:fm(this,this._t0,n=zw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function RN(e){this._context=new $N(e)}(RN.prototype=Object.create(Qd.prototype)).point=function(e,t){Qd.prototype.point.call(this,t,e)};function $N(e){this._context=e}$N.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function O9(e){return new Qd(e)}function j9(e){return new RN(e)}function DN(e){this._context=e}DN.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=Iw(e),a=Iw(t),i=0,o=1;o<n;++i,++o)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[o],t[o]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function Iw(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),o=new Array(n);for(a[0]=0,i[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,o[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,o[t]-=r*o[t-1];for(a[n-1]=o[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(o[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function A9(e){return new DN(e)}function kp(e,t){this._context=e,this._t=t}kp.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function E9(e){return new kp(e,.5)}function _9(e){return new kp(e,0)}function T9(e){return new kp(e,1)}function zl(e,t){if((o=e.length)>1)for(var n=1,r,a,i=e[t[0]],o,l=i.length;n<o;++n)for(a=i,i=e[t[n]],r=0;r<l;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function vg(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function C9(e,t){return e[t]}function N9(e){const t=[];return t.key=e,t}function M9(){var e=Ge([]),t=vg,n=zl,r=C9;function a(i){var o=Array.from(e.apply(this,arguments),N9),l,s=o.length,u=-1,f;for(const c of i)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(c,o[l].key,u,i)]).data=c;for(l=0,f=mx(t(o));l<s;++l)o[f[l]].index=l;return n(o,f),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ge(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Ge(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?vg:typeof i=="function"?i:Ge(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??zl,a):n},a}function P9(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,o;a<i;++a){for(o=n=0;n<r;++n)o+=e[n][a][1]||0;if(o)for(n=0;n<r;++n)e[n][a][1]/=o}zl(e,t)}}function R9(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var o=0,l=0;o<a;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}zl(e,t)}}function $9(e,t){if(!(!((o=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,o;r<i;++r){for(var l=0,s=0,u=0;l<o;++l){for(var f=e[t[l]],c=f[r][1]||0,h=f[r-1][1]||0,p=(c-h)/2,b=0;b<l;++b){var v=e[t[b]],g=v[r][1]||0,y=v[r-1][1]||0;p+=g-y}s+=c,u+=p*c}a[r-1][1]+=a[r-1][0]=n,s&&(n-=u/s)}a[r-1][1]+=a[r-1][0]=n,zl(e,t)}}function Yu(e){"@babel/helpers - typeof";return Yu=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},Yu(e)}var D9=["type","size","sizeType"];function gg(){return gg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gg.apply(this,arguments)}function Uw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uw(Object(n),!0).forEach(function(r){k9(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k9(e,t,n){return t=L9(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L9(e){var t=z9(e,"string");return Yu(t)=="symbol"?t:t+""}function z9(e,t){if(Yu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B9(e,t){if(e==null)return{};var n=I9(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I9(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var kN={symbolCircle:vx,symbolCross:l9,symbolDiamond:u9,symbolSquare:c9,symbolStar:p9,symbolTriangle:y9,symbolWye:v9},U9=Math.PI/180,H9=function(t){var n="symbol".concat(Rp(t));return kN[n]||vx},q9=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*U9;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),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}},F9=function(t,n){kN["symbol".concat(Rp(t))]=n},gx=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,o=t.sizeType,l=o===void 0?"area":o,s=B9(t,D9),u=Hw(Hw({},s),{},{type:r,size:i,sizeType:l}),f=function(){var g=H9(r),y=g9().type(g).size(q9(i,l,r));return y()},c=u.className,h=u.cx,p=u.cy,b=oe(u,!0);return h===+h&&p===+p&&i===+i?D.createElement("path",gg({},b,{className:me("recharts-symbols",c),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};gx.registerSymbol=F9;function Bl(e){"@babel/helpers - typeof";return Bl=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},Bl(e)}function bg(){return bg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bg.apply(this,arguments)}function qw(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function G9(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qw(Object(n),!0).forEach(function(r){Ku(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Y9(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K9(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zN(r.key),r)}}function V9(e,t,n){return t&&K9(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function X9(e,t,n){return t=Wd(t),Q9(e,LN()?Reflect.construct(t,n||[],Wd(e).constructor):t.apply(e,n))}function Q9(e,t){if(t&&(Bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return W9(e)}function W9(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LN(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LN=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wd(e)}function Z9(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&&xg(e,t)}function xg(e,t){return xg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},xg(e,t)}function Ku(e,t,n){return t=zN(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zN(e){var t=J9(e,"string");return Bl(t)=="symbol"?t:t+""}function J9(e,t){if(Bl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zn=32,bx=function(e){function t(){return Y9(this,t),X9(this,t,arguments)}return Z9(t,e),V9(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=zn/2,o=zn/6,l=zn/3,s=r.inactive?a:r.color;if(r.type==="plainline")return D.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:zn,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return D.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(i,"h").concat(l,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(i,`
            H`).concat(zn,"M").concat(2*l,",").concat(i,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return D.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(zn/8,"h").concat(zn,"v").concat(zn*3/4,"h").concat(-zn,"z"),className:"recharts-legend-icon"});if(D.isValidElement(r.legendIcon)){var u=G9({},r);return delete u.legendIcon,D.cloneElement(r.legendIcon,u)}return D.createElement(gx,{fill:s,cx:i,cy:i,size:zn,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,o=a.iconSize,l=a.layout,s=a.formatter,u=a.inactiveColor,f={x:0,y:0,width:zn,height:zn},c={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,b){var v=p.formatter||s,g=me(Ku(Ku({"recharts-legend-item":!0},"legend-item-".concat(b),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=ue(p.value)?null:p.value;aa(!ue(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var m=p.inactive?u:p.color;return D.createElement("li",bg({className:g,style:c,key:"legend-item-".concat(b)},lo(r.props,p,b)),D.createElement(cg,{width:o,height:o,viewBox:f,style:h},r.renderIcon(p)),D.createElement("span",{className:"recharts-legend-item-text",style:{color:m}},v?v(y,p,b):y))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,o=r.align;if(!a||!a.length)return null;var l={padding:0,margin:0,textAlign:i==="horizontal"?o:"left"};return D.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(j.PureComponent);Ku(bx,"displayName","Legend");Ku(bx,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var eH=xp;function tH(){this.__data__=new eH,this.size=0}var nH=tH;function rH(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var aH=rH;function iH(e){return this.__data__.get(e)}var oH=iH;function lH(e){return this.__data__.has(e)}var sH=lH,uH=xp,cH=ox,fH=lx,dH=200;function hH(e,t){var n=this.__data__;if(n instanceof uH){var r=n.__data__;if(!cH||r.length<dH-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new fH(r)}return n.set(e,t),this.size=n.size,this}var pH=hH,yH=xp,mH=nH,vH=aH,gH=oH,bH=sH,xH=pH;function _s(e){var t=this.__data__=new yH(e);this.size=t.size}_s.prototype.clear=mH;_s.prototype.delete=vH;_s.prototype.get=gH;_s.prototype.has=bH;_s.prototype.set=xH;var BN=_s,SH="__lodash_hash_undefined__";function wH(e){return this.__data__.set(e,SH),this}var OH=wH;function jH(e){return this.__data__.has(e)}var AH=jH,EH=lx,_H=OH,TH=AH;function Zd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new EH;++t<n;)this.add(e[t])}Zd.prototype.add=Zd.prototype.push=_H;Zd.prototype.has=TH;var IN=Zd;function CH(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var UN=CH;function NH(e,t){return e.has(t)}var HN=NH,MH=IN,PH=UN,RH=HN,$H=1,DH=2;function kH(e,t,n,r,a,i){var o=n&$H,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=i.get(e),f=i.get(t);if(u&&f)return u==t&&f==e;var c=-1,h=!0,p=n&DH?new MH:void 0;for(i.set(e,t),i.set(t,e);++c<l;){var b=e[c],v=t[c];if(r)var g=o?r(v,b,c,t,e,i):r(b,v,c,e,t,i);if(g!==void 0){if(g)continue;h=!1;break}if(p){if(!PH(t,function(y,m){if(!RH(p,m)&&(b===y||a(b,y,n,r,i)))return p.push(m)})){h=!1;break}}else if(!(b===v||a(b,v,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var qN=kH,LH=Pr,zH=LH.Uint8Array,BH=zH;function IH(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var UH=IH;function HH(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var xx=HH,Fw=Qc,Gw=BH,qH=ix,FH=qN,GH=UH,YH=xx,KH=1,VH=2,XH="[object Boolean]",QH="[object Date]",WH="[object Error]",ZH="[object Map]",JH="[object Number]",eq="[object RegExp]",tq="[object Set]",nq="[object String]",rq="[object Symbol]",aq="[object ArrayBuffer]",iq="[object DataView]",Yw=Fw?Fw.prototype:void 0,dm=Yw?Yw.valueOf:void 0;function oq(e,t,n,r,a,i,o){switch(n){case iq:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case aq:return!(e.byteLength!=t.byteLength||!i(new Gw(e),new Gw(t)));case XH:case QH:case JH:return qH(+e,+t);case WH:return e.name==t.name&&e.message==t.message;case eq:case nq:return e==t+"";case ZH:var l=GH;case tq:var s=r&KH;if(l||(l=YH),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=VH,o.set(e,t);var f=FH(l(e),l(t),r,a,i,o);return o.delete(e),f;case rq:if(dm)return dm.call(e)==dm.call(t)}return!1}var lq=oq;function sq(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var FN=sq,uq=FN,cq=yn;function fq(e,t,n){var r=t(e);return cq(e)?r:uq(r,n(e))}var dq=fq;function hq(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[a++]=o)}return i}var pq=hq;function yq(){return[]}var mq=yq,vq=pq,gq=mq,bq=Object.prototype,xq=bq.propertyIsEnumerable,Kw=Object.getOwnPropertySymbols,Sq=Kw?function(e){return e==null?[]:(e=Object(e),vq(Kw(e),function(t){return xq.call(e,t)}))}:gq,wq=Sq;function Oq(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var jq=Oq,Aq=ga,Eq=ba,_q="[object Arguments]";function Tq(e){return Eq(e)&&Aq(e)==_q}var Cq=Tq,Vw=Cq,Nq=ba,GN=Object.prototype,Mq=GN.hasOwnProperty,Pq=GN.propertyIsEnumerable,Rq=Vw(function(){return arguments}())?Vw:function(e){return Nq(e)&&Mq.call(e,"callee")&&!Pq.call(e,"callee")},Sx=Rq,Jd={exports:{}};function $q(){return!1}var Dq=$q;Jd.exports;(function(e,t){var n=Pr,r=Dq,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,o=i&&i.exports===a,l=o?n.Buffer:void 0,s=l?l.isBuffer:void 0,u=s||r;e.exports=u})(Jd,Jd.exports);var YN=Jd.exports,kq=9007199254740991,Lq=/^(?:0|[1-9]\d*)$/;function zq(e,t){var n=typeof e;return t=t??kq,!!t&&(n=="number"||n!="symbol"&&Lq.test(e))&&e>-1&&e%1==0&&e<t}var wx=zq,Bq=9007199254740991;function Iq(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Bq}var Ox=Iq,Uq=ga,Hq=Ox,qq=ba,Fq="[object Arguments]",Gq="[object Array]",Yq="[object Boolean]",Kq="[object Date]",Vq="[object Error]",Xq="[object Function]",Qq="[object Map]",Wq="[object Number]",Zq="[object Object]",Jq="[object RegExp]",eF="[object Set]",tF="[object String]",nF="[object WeakMap]",rF="[object ArrayBuffer]",aF="[object DataView]",iF="[object Float32Array]",oF="[object Float64Array]",lF="[object Int8Array]",sF="[object Int16Array]",uF="[object Int32Array]",cF="[object Uint8Array]",fF="[object Uint8ClampedArray]",dF="[object Uint16Array]",hF="[object Uint32Array]",Qe={};Qe[iF]=Qe[oF]=Qe[lF]=Qe[sF]=Qe[uF]=Qe[cF]=Qe[fF]=Qe[dF]=Qe[hF]=!0;Qe[Fq]=Qe[Gq]=Qe[rF]=Qe[Yq]=Qe[aF]=Qe[Kq]=Qe[Vq]=Qe[Xq]=Qe[Qq]=Qe[Wq]=Qe[Zq]=Qe[Jq]=Qe[eF]=Qe[tF]=Qe[nF]=!1;function pF(e){return qq(e)&&Hq(e.length)&&!!Qe[Uq(e)]}var yF=pF;function mF(e){return function(t){return e(t)}}var KN=mF,eh={exports:{}};eh.exports;(function(e,t){var n=tN,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,o=i&&n.process,l=function(){try{var s=a&&a.require&&a.require("util").types;return s||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l})(eh,eh.exports);var vF=eh.exports,gF=yF,bF=KN,Xw=vF,Qw=Xw&&Xw.isTypedArray,xF=Qw?bF(Qw):gF,VN=xF,SF=jq,wF=Sx,OF=yn,jF=YN,AF=wx,EF=VN,_F=Object.prototype,TF=_F.hasOwnProperty;function CF(e,t){var n=OF(e),r=!n&&wF(e),a=!n&&!r&&jF(e),i=!n&&!r&&!a&&EF(e),o=n||r||a||i,l=o?SF(e.length,String):[],s=l.length;for(var u in e)(t||TF.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||AF(u,s)))&&l.push(u);return l}var NF=CF,MF=Object.prototype;function PF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||MF;return e===n}var RF=PF;function $F(e,t){return function(n){return e(t(n))}}var XN=$F,DF=XN,kF=DF(Object.keys,Object),LF=kF,zF=RF,BF=LF,IF=Object.prototype,UF=IF.hasOwnProperty;function HF(e){if(!zF(e))return BF(e);var t=[];for(var n in Object(e))UF.call(e,n)&&n!="constructor"&&t.push(n);return t}var qF=HF,FF=ax,GF=Ox;function YF(e){return e!=null&&GF(e.length)&&!FF(e)}var Lp=YF,KF=NF,VF=qF,XF=Lp;function QF(e){return XF(e)?KF(e):VF(e)}var jx=QF,WF=dq,ZF=wq,JF=jx;function eG(e){return WF(e,JF,ZF)}var tG=eG,Ww=tG,nG=1,rG=Object.prototype,aG=rG.hasOwnProperty;function iG(e,t,n,r,a,i){var o=n&nG,l=Ww(e),s=l.length,u=Ww(t),f=u.length;if(s!=f&&!o)return!1;for(var c=s;c--;){var h=l[c];if(!(o?h in t:aG.call(t,h)))return!1}var p=i.get(e),b=i.get(t);if(p&&b)return p==t&&b==e;var v=!0;i.set(e,t),i.set(t,e);for(var g=o;++c<s;){h=l[c];var y=e[h],m=t[h];if(r)var x=o?r(m,y,h,t,e,i):r(y,m,h,e,t,i);if(!(x===void 0?y===m||a(y,m,n,r,i):x)){v=!1;break}g||(g=h=="constructor")}if(v&&!g){var S=e.constructor,w=t.constructor;S!=w&&"constructor"in e&&"constructor"in t&&!(typeof S=="function"&&S instanceof S&&typeof w=="function"&&w instanceof w)&&(v=!1)}return i.delete(e),i.delete(t),v}var oG=iG,lG=bo,sG=Pr,uG=lG(sG,"DataView"),cG=uG,fG=bo,dG=Pr,hG=fG(dG,"Promise"),pG=hG,yG=bo,mG=Pr,vG=yG(mG,"Set"),QN=vG,gG=bo,bG=Pr,xG=gG(bG,"WeakMap"),SG=xG,Sg=cG,wg=ox,Og=pG,jg=QN,Ag=SG,WN=ga,Ts=rN,Zw="[object Map]",wG="[object Object]",Jw="[object Promise]",eO="[object Set]",tO="[object WeakMap]",nO="[object DataView]",OG=Ts(Sg),jG=Ts(wg),AG=Ts(Og),EG=Ts(jg),_G=Ts(Ag),Ei=WN;(Sg&&Ei(new Sg(new ArrayBuffer(1)))!=nO||wg&&Ei(new wg)!=Zw||Og&&Ei(Og.resolve())!=Jw||jg&&Ei(new jg)!=eO||Ag&&Ei(new Ag)!=tO)&&(Ei=function(e){var t=WN(e),n=t==wG?e.constructor:void 0,r=n?Ts(n):"";if(r)switch(r){case OG:return nO;case jG:return Zw;case AG:return Jw;case EG:return eO;case _G:return tO}return t});var TG=Ei,hm=BN,CG=qN,NG=lq,MG=oG,rO=TG,aO=yn,iO=YN,PG=VN,RG=1,oO="[object Arguments]",lO="[object Array]",Ef="[object Object]",$G=Object.prototype,sO=$G.hasOwnProperty;function DG(e,t,n,r,a,i){var o=aO(e),l=aO(t),s=o?lO:rO(e),u=l?lO:rO(t);s=s==oO?Ef:s,u=u==oO?Ef:u;var f=s==Ef,c=u==Ef,h=s==u;if(h&&iO(e)){if(!iO(t))return!1;o=!0,f=!1}if(h&&!f)return i||(i=new hm),o||PG(e)?CG(e,t,n,r,a,i):NG(e,t,s,n,r,a,i);if(!(n&RG)){var p=f&&sO.call(e,"__wrapped__"),b=c&&sO.call(t,"__wrapped__");if(p||b){var v=p?e.value():e,g=b?t.value():t;return i||(i=new hm),a(v,g,n,r,i)}}return h?(i||(i=new hm),MG(e,t,n,r,a,i)):!1}var kG=DG,LG=kG,uO=ba;function ZN(e,t,n,r,a){return e===t?!0:e==null||t==null||!uO(e)&&!uO(t)?e!==e&&t!==t:LG(e,t,n,r,ZN,a)}var Ax=ZN,zG=BN,BG=Ax,IG=1,UG=2;function HG(e,t,n,r){var a=n.length,i=a,o=!r;if(e==null)return!i;for(e=Object(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<i;){l=n[a];var s=l[0],u=e[s],f=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var c=new zG;if(r)var h=r(u,f,s,e,t,c);if(!(h===void 0?BG(f,u,IG|UG,r,c):h))return!1}}return!0}var qG=HG,FG=fi;function GG(e){return e===e&&!FG(e)}var JN=GG,YG=JN,KG=jx;function VG(e){for(var t=KG(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,YG(a)]}return t}var XG=VG;function QG(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var eM=QG,WG=qG,ZG=XG,JG=eM;function eY(e){var t=ZG(e);return t.length==1&&t[0][2]?JG(t[0][0],t[0][1]):function(n){return n===e||WG(n,e,t)}}var tY=eY;function nY(e,t){return e!=null&&t in Object(e)}var rY=nY,aY=sN,iY=Sx,oY=yn,lY=wx,sY=Ox,uY=wp;function cY(e,t,n){t=aY(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=uY(t[r]);if(!(i=e!=null&&n(e,o)))break;e=e[o]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&sY(a)&&lY(o,a)&&(oY(e)||iY(e)))}var fY=cY,dY=rY,hY=fY;function pY(e,t){return e!=null&&hY(e,t,dY)}var yY=pY,mY=Ax,vY=uN,gY=yY,bY=rx,xY=JN,SY=eM,wY=wp,OY=1,jY=2;function AY(e,t){return bY(e)&&xY(t)?SY(wY(e),t):function(n){var r=vY(n,e);return r===void 0&&r===t?gY(n,e):mY(t,r,OY|jY)}}var EY=AY;function _Y(e){return e}var Cs=_Y;function TY(e){return function(t){return t==null?void 0:t[e]}}var CY=TY,NY=cx;function MY(e){return function(t){return NY(t,e)}}var PY=MY,RY=CY,$Y=PY,DY=rx,kY=wp;function LY(e){return DY(e)?RY(kY(e)):$Y(e)}var zY=LY,BY=tY,IY=EY,UY=Cs,HY=yn,qY=zY;function FY(e){return typeof e=="function"?e:e==null?UY:typeof e=="object"?HY(e)?IY(e[0],e[1]):BY(e):qY(e)}var di=FY;function GY(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var YY=GY;function KY(e){return e!==e}var VY=KY;function XY(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var QY=XY,WY=YY,ZY=VY,JY=QY;function eK(e,t,n){return t===t?JY(e,t,n):WY(e,ZY,n)}var tK=eK,nK=tK;function rK(e,t){var n=e==null?0:e.length;return!!n&&nK(e,t,0)>-1}var aK=rK;function iK(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var oK=iK;function lK(){}var sK=lK,pm=QN,uK=sK,cK=xx,fK=1/0,dK=pm&&1/cK(new pm([,-0]))[1]==fK?function(e){return new pm(e)}:uK,hK=dK,pK=IN,yK=aK,mK=oK,vK=HN,gK=hK,bK=xx,xK=200;function SK(e,t,n){var r=-1,a=yK,i=e.length,o=!0,l=[],s=l;if(n)o=!1,a=mK;else if(i>=xK){var u=t?null:gK(e);if(u)return bK(u);o=!1,a=vK,s=new pK}else s=t?[]:l;e:for(;++r<i;){var f=e[r],c=t?t(f):f;if(f=n||f!==0?f:0,o&&c===c){for(var h=s.length;h--;)if(s[h]===c)continue e;t&&s.push(c),l.push(f)}else a(s,c,n)||(s!==l&&s.push(c),l.push(f))}return l}var wK=SK,OK=di,jK=wK;function AK(e,t){return e&&e.length?jK(e,OK(t)):[]}var EK=AK;const cO=Ue(EK);function tM(e,t,n){return t===!0?cO(e,n):ue(t)?cO(e,t):e}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)}var _K=["ref"];function fO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fO(Object(n),!0).forEach(function(r){zp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function dO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rM(r.key),r)}}function CK(e,t,n){return t&&dO(e.prototype,t),n&&dO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function NK(e,t,n){return t=th(t),MK(e,nM()?Reflect.construct(t,n||[],th(e).constructor):t.apply(e,n))}function MK(e,t){if(t&&(Il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PK(e)}function PK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nM=function(){return!!e})()}function th(e){return th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},th(e)}function RK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Eg(e,t)}function Eg(e,t){return Eg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Eg(e,t)}function zp(e,t,n){return t=rM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rM(e){var t=$K(e,"string");return Il(t)=="symbol"?t:t+""}function $K(e,t){if(Il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function DK(e,t){if(e==null)return{};var n=kK(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kK(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LK(e){return e.value}function zK(e,t){if(D.isValidElement(e))return D.cloneElement(e,t);if(typeof e=="function")return D.createElement(e,t);t.ref;var n=DK(t,_K);return D.createElement(bx,n)}var hO=1,ul=function(e){function t(){var n;TK(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=NK(this,t,[].concat(a)),zp(n,"lastBoundingBox",{width:-1,height:-1}),n}return RK(t,e),CK(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>hO||Math.abs(a.height-this.lastBoundingBox.height)>hO)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Br({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,o=a.align,l=a.verticalAlign,s=a.margin,u=a.chartWidth,f=a.chartHeight,c,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();c={left:((u||0)-p.width)/2}}else c=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();h={top:((f||0)-b.height)/2}}else h=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Br(Br({},c),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,o=a.width,l=a.height,s=a.wrapperStyle,u=a.payloadUniqBy,f=a.payload,c=Br(Br({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return D.createElement("div",{className:"recharts-legend-wrapper",style:c,ref:function(p){r.wrapperNode=p}},zK(i,Br(Br({},this.props),{},{payload:tM(f,u,LK)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Br(Br({},this.defaultProps),r.props),o=i.layout;return o==="vertical"&&K(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||a}:null}}])}(j.PureComponent);zp(ul,"displayName","Legend");zp(ul,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var pO=Qc,BK=Sx,IK=yn,yO=pO?pO.isConcatSpreadable:void 0;function UK(e){return IK(e)||BK(e)||!!(yO&&e&&e[yO])}var HK=UK,qK=FN,FK=HK;function aM(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=FK),a||(a=[]);++i<o;){var l=e[i];t>0&&n(l)?t>1?aM(l,t-1,n,r,a):qK(a,l):r||(a[a.length]=l)}return a}var iM=aM;function GK(e){return function(t,n,r){for(var a=-1,i=Object(t),o=r(t),l=o.length;l--;){var s=o[e?l:++a];if(n(i[s],s,i)===!1)break}return t}}var YK=GK,KK=YK,VK=KK(),XK=VK,QK=XK,WK=jx;function ZK(e,t){return e&&QK(e,t,WK)}var oM=ZK,JK=Lp;function eV(e,t){return function(n,r){if(n==null)return n;if(!JK(n))return e(n,r);for(var a=n.length,i=t?a:-1,o=Object(n);(t?i--:++i<a)&&r(o[i],i,o)!==!1;);return n}}var tV=eV,nV=oM,rV=tV,aV=rV(nV),Ex=aV,iV=Ex,oV=Lp;function lV(e,t){var n=-1,r=oV(e)?Array(e.length):[];return iV(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var lM=lV;function sV(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var uV=sV,mO=ws;function cV(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=mO(e),o=t!==void 0,l=t===null,s=t===t,u=mO(t);if(!l&&!u&&!i&&e>t||i&&o&&s&&!l&&!u||r&&o&&s||!n&&s||!a)return 1;if(!r&&!i&&!u&&e<t||u&&n&&a&&!r&&!i||l&&n&&a||!o&&a||!s)return-1}return 0}var fV=cV,dV=fV;function hV(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var s=dV(a[r],i[r]);if(s){if(r>=l)return s;var u=n[r];return s*(u=="desc"?-1:1)}}return e.index-t.index}var pV=hV,ym=ux,yV=cx,mV=di,vV=lM,gV=uV,bV=KN,xV=pV,SV=Cs,wV=yn;function OV(e,t,n){t.length?t=ym(t,function(i){return wV(i)?function(o){return yV(o,i.length===1?i[0]:i)}:i}):t=[SV];var r=-1;t=ym(t,bV(mV));var a=vV(e,function(i,o,l){var s=ym(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return gV(a,function(i,o){return xV(i,o,n)})}var jV=OV;function AV(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var EV=AV,_V=EV,vO=Math.max;function TV(e,t,n){return t=vO(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=vO(r.length-t,0),o=Array(i);++a<i;)o[a]=r[t+a];a=-1;for(var l=Array(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),_V(e,this,l)}}var CV=TV;function NV(e){return function(){return e}}var MV=NV,PV=bo,RV=function(){try{var e=PV(Object,"defineProperty");return e({},"",{}),e}catch{}}(),sM=RV,$V=MV,gO=sM,DV=Cs,kV=gO?function(e,t){return gO(e,"toString",{configurable:!0,enumerable:!1,value:$V(t),writable:!0})}:DV,LV=kV,zV=800,BV=16,IV=Date.now;function UV(e){var t=0,n=0;return function(){var r=IV(),a=BV-(r-n);if(n=r,a>0){if(++t>=zV)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var HV=UV,qV=LV,FV=HV,GV=FV(qV),YV=GV,KV=Cs,VV=CV,XV=YV;function QV(e,t){return XV(VV(e,t,KV),e+"")}var WV=QV,ZV=ix,JV=Lp,eX=wx,tX=fi;function nX(e,t,n){if(!tX(n))return!1;var r=typeof t;return(r=="number"?JV(n)&&eX(t,n.length):r=="string"&&t in n)?ZV(n[t],e):!1}var Bp=nX,rX=iM,aX=jV,iX=WV,bO=Bp,oX=iX(function(e,t){if(e==null)return[];var n=t.length;return n>1&&bO(e,t[0],t[1])?t=[]:n>2&&bO(t[0],t[1],t[2])&&(t=[t[0]]),aX(e,rX(t,1),[])}),lX=oX;const _x=Ue(lX);function Vu(e){"@babel/helpers - typeof";return Vu=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},Vu(e)}function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_g.apply(this,arguments)}function sX(e,t){return dX(e)||fX(e,t)||cX(e,t)||uX()}function uX(){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 cX(e,t){if(e){if(typeof e=="string")return xO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xO(e,t)}}function xO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function dX(e){if(Array.isArray(e))return e}function SO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SO(Object(n),!0).forEach(function(r){hX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hX(e,t,n){return t=pX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pX(e){var t=yX(e,"string");return Vu(t)=="symbol"?t:t+""}function yX(e,t){if(Vu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mX(e){return Array.isArray(e)&&wt(e[0])&&wt(e[1])?e.join(" ~ "):e}var vX=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,o=t.itemStyle,l=o===void 0?{}:o,s=t.labelStyle,u=s===void 0?{}:s,f=t.payload,c=t.formatter,h=t.itemSorter,p=t.wrapperClassName,b=t.labelClassName,v=t.label,g=t.labelFormatter,y=t.accessibilityLayer,m=y===void 0?!1:y,x=function(){if(f&&f.length){var E={padding:0,margin:0},N=(h?_x(f,h):f).map(function(k,P){if(k.type==="none")return null;var $=mm({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},l),z=k.formatter||c||mX,B=k.value,q=k.name,F=B,Q=q;if(z&&F!=null&&Q!=null){var Y=z(B,q,k,P,f);if(Array.isArray(Y)){var ee=sX(Y,2);F=ee[0],Q=ee[1]}else F=Y}return D.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(P),style:$},wt(Q)?D.createElement("span",{className:"recharts-tooltip-item-name"},Q):null,wt(Q)?D.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,D.createElement("span",{className:"recharts-tooltip-item-value"},F),D.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return D.createElement("ul",{className:"recharts-tooltip-item-list",style:E},N)}return null},S=mm({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=mm({margin:0},u),O=!ve(v),A=O?v:"",_=me("recharts-default-tooltip",p),T=me("recharts-tooltip-label",b);O&&g&&f!==void 0&&f!==null&&(A=g(v,f));var M=m?{role:"status","aria-live":"assertive"}:{};return D.createElement("div",_g({className:_,style:S},M),D.createElement("p",{className:T,style:w},D.isValidElement(A)?A:"".concat(A)),x())};function Xu(e){"@babel/helpers - typeof";return Xu=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},Xu(e)}function _f(e,t,n){return t=gX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gX(e){var t=bX(e,"string");return Xu(t)=="symbol"?t:t+""}function bX(e,t){if(Xu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gs="recharts-tooltip-wrapper",xX={visibility:"hidden"};function SX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return me(Gs,_f(_f(_f(_f({},"".concat(Gs,"-right"),K(n)&&t&&K(t.x)&&n>=t.x),"".concat(Gs,"-left"),K(n)&&t&&K(t.x)&&n<t.x),"".concat(Gs,"-bottom"),K(r)&&t&&K(t.y)&&r>=t.y),"".concat(Gs,"-top"),K(r)&&t&&K(t.y)&&r<t.y))}function wO(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,o=e.reverseDirection,l=e.tooltipDimension,s=e.viewBox,u=e.viewBoxDimension;if(i&&K(i[r]))return i[r];var f=n[r]-l-a,c=n[r]+a;if(t[r])return o[r]?f:c;if(o[r]){var h=f,p=s[r];return h<p?Math.max(c,s[r]):Math.max(f,s[r])}var b=c+l,v=s[r]+u;return b>v?Math.max(f,s[r]):Math.max(c,s[r])}function wX(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function OX(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,s=e.viewBox,u,f,c;return o.height>0&&o.width>0&&n?(f=wO({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),c=wO({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=wX({translateX:f,translateY:c,useTranslate3d:l})):u=xX,{cssProperties:u,cssClasses:SX({translateX:f,translateY:c,coordinate:n})}}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 OO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OO(Object(n),!0).forEach(function(r){Cg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function AX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cM(r.key),r)}}function EX(e,t,n){return t&&AX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _X(e,t,n){return t=nh(t),TX(e,uM()?Reflect.construct(t,n||[],nh(e).constructor):t.apply(e,n))}function TX(e,t){if(t&&(Ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return CX(e)}function CX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uM=function(){return!!e})()}function nh(e){return nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nh(e)}function NX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tg(e,t)}function Tg(e,t){return Tg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Tg(e,t)}function Cg(e,t,n){return t=cM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cM(e){var t=MX(e,"string");return Ul(t)=="symbol"?t:t+""}function MX(e,t){if(Ul(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ul(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var AO=1,PX=function(e){function t(){var n;jX(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_X(this,t,[].concat(a)),Cg(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Cg(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,s,u,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(s=n.props.coordinate)===null||s===void 0?void 0:s.x)!==null&&l!==void 0?l:0,y:(u=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&u!==void 0?u:0}})}}),n}return NX(t,e),EX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>AO||Math.abs(r.height-this.state.lastBoundingBox.height)>AO)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,s=a.animationEasing,u=a.children,f=a.coordinate,c=a.hasPayload,h=a.isAnimationActive,p=a.offset,b=a.position,v=a.reverseDirection,g=a.useTranslate3d,y=a.viewBox,m=a.wrapperStyle,x=OX({allowEscapeViewBox:o,coordinate:f,offsetTopLeft:p,position:b,reverseDirection:v,tooltipBox:this.state.lastBoundingBox,useTranslate3d:g,viewBox:y}),S=x.cssClasses,w=x.cssProperties,O=jO(jO({transition:h&&i?"transform ".concat(l,"ms ").concat(s):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&c?"visible":"hidden",position:"absolute",top:0,left:0},m);return D.createElement("div",{tabIndex:-1,className:S,style:O,ref:function(_){r.wrapperNode=_}},u)}}])}(j.PureComponent),RX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ns={isSsr:RX()};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 EO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _O(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EO(Object(n),!0).forEach(function(r){Tx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $X(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,dM(r.key),r)}}function kX(e,t,n){return t&&DX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LX(e,t,n){return t=rh(t),zX(e,fM()?Reflect.construct(t,n||[],rh(e).constructor):t.apply(e,n))}function zX(e,t){if(t&&(Hl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BX(e)}function BX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fM=function(){return!!e})()}function rh(e){return rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rh(e)}function IX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ng(e,t)}function Ng(e,t){return Ng=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ng(e,t)}function Tx(e,t,n){return t=dM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dM(e){var t=UX(e,"string");return Hl(t)=="symbol"?t:t+""}function UX(e,t){if(Hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function HX(e){return e.dataKey}function qX(e,t){return D.isValidElement(e)?D.cloneElement(e,t):typeof e=="function"?D.createElement(e,t):D.createElement(vX,t)}var or=function(e){function t(){return $X(this,t),LX(this,t,arguments)}return IX(t,e),kX(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,o=a.allowEscapeViewBox,l=a.animationDuration,s=a.animationEasing,u=a.content,f=a.coordinate,c=a.filterNull,h=a.isAnimationActive,p=a.offset,b=a.payload,v=a.payloadUniqBy,g=a.position,y=a.reverseDirection,m=a.useTranslate3d,x=a.viewBox,S=a.wrapperStyle,w=b??[];c&&w.length&&(w=tM(b.filter(function(A){return A.value!=null&&(A.hide!==!0||r.props.includeHidden)}),v,HX));var O=w.length>0;return D.createElement(PX,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:h,active:i,coordinate:f,hasPayload:O,offset:p,position:g,reverseDirection:y,useTranslate3d:m,viewBox:x,wrapperStyle:S},qX(u,_O(_O({},this.props),{},{payload:w})))}}])}(j.PureComponent);Tx(or,"displayName","Tooltip");Tx(or,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ns.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 FX=Pr,GX=function(){return FX.Date.now()},YX=GX,KX=/\s/;function VX(e){for(var t=e.length;t--&&KX.test(e.charAt(t)););return t}var XX=VX,QX=XX,WX=/^\s+/;function ZX(e){return e&&e.slice(0,QX(e)+1).replace(WX,"")}var JX=ZX,eQ=JX,TO=fi,tQ=ws,CO=NaN,nQ=/^[-+]0x[0-9a-f]+$/i,rQ=/^0b[01]+$/i,aQ=/^0o[0-7]+$/i,iQ=parseInt;function oQ(e){if(typeof e=="number")return e;if(tQ(e))return CO;if(TO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=TO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=eQ(e);var n=rQ.test(e);return n||aQ.test(e)?iQ(e.slice(2),n?2:8):nQ.test(e)?CO:+e}var hM=oQ,lQ=fi,vm=YX,NO=hM,sQ="Expected a function",uQ=Math.max,cQ=Math.min;function fQ(e,t,n){var r,a,i,o,l,s,u=0,f=!1,c=!1,h=!0;if(typeof e!="function")throw new TypeError(sQ);t=NO(t)||0,lQ(n)&&(f=!!n.leading,c="maxWait"in n,i=c?uQ(NO(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(O){var A=r,_=a;return r=a=void 0,u=O,o=e.apply(_,A),o}function b(O){return u=O,l=setTimeout(y,t),f?p(O):o}function v(O){var A=O-s,_=O-u,T=t-A;return c?cQ(T,i-_):T}function g(O){var A=O-s,_=O-u;return s===void 0||A>=t||A<0||c&&_>=i}function y(){var O=vm();if(g(O))return m(O);l=setTimeout(y,v(O))}function m(O){return l=void 0,h&&r?p(O):(r=a=void 0,o)}function x(){l!==void 0&&clearTimeout(l),u=0,r=s=a=l=void 0}function S(){return l===void 0?o:m(vm())}function w(){var O=vm(),A=g(O);if(r=arguments,a=this,s=O,A){if(l===void 0)return b(s);if(c)return clearTimeout(l),l=setTimeout(y,t),p(s)}return l===void 0&&(l=setTimeout(y,t)),o}return w.cancel=x,w.flush=S,w}var dQ=fQ,hQ=dQ,pQ=fi,yQ="Expected a function";function mQ(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(yQ);return pQ(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),hQ(e,t,{leading:r,maxWait:t,trailing:a})}var vQ=mQ;const pM=Ue(vQ);function Qu(e){"@babel/helpers - typeof";return Qu=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},Qu(e)}function MO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Tf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MO(Object(n),!0).forEach(function(r){gQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gQ(e,t,n){return t=bQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bQ(e){var t=xQ(e,"string");return Qu(t)=="symbol"?t:t+""}function xQ(e,t){if(Qu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SQ(e,t){return AQ(e)||jQ(e,t)||OQ(e,t)||wQ()}function wQ(){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 PO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PO(e,t)}}function PO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function AQ(e){if(Array.isArray(e))return e}var RO=j.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,o=i===void 0?"100%":i,l=e.height,s=l===void 0?"100%":l,u=e.minWidth,f=u===void 0?0:u,c=e.minHeight,h=e.maxHeight,p=e.children,b=e.debounce,v=b===void 0?0:b,g=e.id,y=e.className,m=e.onResize,x=e.style,S=x===void 0?{}:x,w=j.useRef(null),O=j.useRef();O.current=m,j.useImperativeHandle(t,function(){return Object.defineProperty(w.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),w.current},configurable:!0})});var A=j.useState({containerWidth:a.width,containerHeight:a.height}),_=SQ(A,2),T=_[0],M=_[1],L=j.useCallback(function(N,k){M(function(P){var $=Math.round(N),z=Math.round(k);return P.containerWidth===$&&P.containerHeight===z?P:{containerWidth:$,containerHeight:z}})},[]);j.useEffect(function(){var N=function(q){var F,Q=q[0].contentRect,Y=Q.width,ee=Q.height;L(Y,ee),(F=O.current)===null||F===void 0||F.call(O,Y,ee)};v>0&&(N=pM(N,v,{trailing:!0,leading:!1}));var k=new ResizeObserver(N),P=w.current.getBoundingClientRect(),$=P.width,z=P.height;return L($,z),k.observe(w.current),function(){k.disconnect()}},[L,v]);var E=j.useMemo(function(){var N=T.containerWidth,k=T.containerHeight;if(N<0||k<0)return null;aa(Mi(o)||Mi(s),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,o,s),aa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var P=Mi(o)?N:o,$=Mi(s)?k:s;n&&n>0&&(P?$=P/n:$&&(P=$*n),h&&$>h&&($=h)),aa(P>0||$>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.`,P,$,o,s,f,c,n);var z=!Array.isArray(p)&&ra(p.type).endsWith("Chart");return D.Children.map(p,function(B){return D.isValidElement(B)?j.cloneElement(B,Tf({width:P,height:$},z?{style:Tf({height:"100%",width:"100%",maxHeight:$,maxWidth:P},B.props.style)}:{})):B})},[n,p,s,h,c,f,T,o]);return D.createElement("div",{id:g?"".concat(g):void 0,className:me("recharts-responsive-container",y),style:Tf(Tf({},S),{},{width:o,height:s,minWidth:f,minHeight:c,maxHeight:h}),ref:w},E)}),Ip=function(t){return null};Ip.displayName="Cell";function Wu(e){"@babel/helpers - typeof";return Wu=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},Wu(e)}function $O(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$O(Object(n),!0).forEach(function(r){EQ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$O(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EQ(e,t,n){return t=_Q(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Q(e){var t=TQ(e,"string");return Wu(t)=="symbol"?t:t+""}function TQ(e,t){if(Wu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Mo={widthCache:{},cacheCount:0},CQ=2e3,NQ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},DO="recharts_measurement_span";function MQ(e){var t=Mg({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Su=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ns.isSsr)return{width:0,height:0};var r=MQ(n),a=JSON.stringify({text:t,copyStyle:r});if(Mo.widthCache[a])return Mo.widthCache[a];try{var i=document.getElementById(DO);i||(i=document.createElement("span"),i.setAttribute("id",DO),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=Mg(Mg({},NQ),r);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return Mo.widthCache[a]=s,++Mo.cacheCount>CQ&&(Mo.cacheCount=0,Mo.widthCache={}),s}catch{return{width:0,height:0}}},PQ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Zu(e){"@babel/helpers - typeof";return Zu=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},Zu(e)}function ah(e,t){return kQ(e)||DQ(e,t)||$Q(e,t)||RQ()}function RQ(){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 kO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return kO(e,t)}}function kO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function DQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function kQ(e){if(Array.isArray(e))return e}function LQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BQ(r.key),r)}}function zQ(e,t,n){return t&&LO(e.prototype,t),n&&LO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function BQ(e){var t=IQ(e,"string");return Zu(t)=="symbol"?t:t+""}function IQ(e,t){if(Zu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,BO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,UQ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,HQ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,yM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},qQ=Object.keys(yM),Qo="NaN";function FQ(e,t){return e*yM[t]}var Cf=function(){function e(t,n){LQ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!UQ.test(n)&&(this.num=NaN,this.unit=""),qQ.includes(n)&&(this.num=FQ(t,n),this.unit="px")}return zQ(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,a=(r=HQ.exec(n))!==null&&r!==void 0?r:[],i=ah(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function mM(e){if(e.includes(Qo))return Qo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=zO.exec(t))!==null&&n!==void 0?n:[],a=ah(r,4),i=a[1],o=a[2],l=a[3],s=Cf.parse(i??""),u=Cf.parse(l??""),f=o==="*"?s.multiply(u):s.divide(u);if(f.isNaN())return Qo;t=t.replace(zO,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var c,h=(c=BO.exec(t))!==null&&c!==void 0?c:[],p=ah(h,4),b=p[1],v=p[2],g=p[3],y=Cf.parse(b??""),m=Cf.parse(g??""),x=v==="+"?y.add(m):y.subtract(m);if(x.isNaN())return Qo;t=t.replace(BO,x.toString())}return t}var IO=/\(([^()]*)\)/;function GQ(e){for(var t=e;t.includes("(");){var n=IO.exec(t),r=ah(n,2),a=r[1];t=t.replace(IO,mM(a))}return t}function YQ(e){var t=e.replace(/\s+/g,"");return t=GQ(t),t=mM(t),t}function KQ(e){try{return YQ(e)}catch{return Qo}}function gm(e){var t=KQ(e.slice(5,-1));return t===Qo?"":t}var VQ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],XQ=["dx","dy","angle","className","breakAll"];function Pg(){return Pg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pg.apply(this,arguments)}function UO(e,t){if(e==null)return{};var n=QQ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QQ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function HO(e,t){return eW(e)||JQ(e,t)||ZQ(e,t)||WQ()}function WQ(){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 ZQ(e,t){if(e){if(typeof e=="string")return qO(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qO(e,t)}}function qO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JQ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function eW(e){if(Array.isArray(e))return e}var vM=/[ \f\n\r\t\v\u2028\u2029]+/,gM=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];ve(n)||(r?i=n.toString().split(""):i=n.toString().split(vM));var o=i.map(function(s){return{word:s,width:Su(s,a).width}}),l=r?0:Su(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},tW=function(t,n,r,a,i){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,f=K(o),c=l,h=function(){var P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return P.reduce(function($,z){var B=z.word,q=z.width,F=$[$.length-1];if(F&&(a==null||i||F.width+q+r<Number(a)))F.words.push(B),F.width+=q+r;else{var Q={words:[B],width:q};$.push(Q)}return $},[])},p=h(n),b=function(P){return P.reduce(function($,z){return $.width>z.width?$:z})};if(!f)return p;for(var v="…",g=function(P){var $=c.slice(0,P),z=gM({breakAll:u,style:s,children:$+v}).wordsWithComputedWidth,B=h(z),q=B.length>o||b(B).width>Number(a);return[q,B]},y=0,m=c.length-1,x=0,S;y<=m&&x<=c.length-1;){var w=Math.floor((y+m)/2),O=w-1,A=g(O),_=HO(A,2),T=_[0],M=_[1],L=g(w),E=HO(L,1),N=E[0];if(!T&&!N&&(y=w+1),T&&N&&(m=w-1),!T&&N){S=M;break}x++}return S||p},FO=function(t){var n=ve(t)?[]:t.toString().split(vM);return[{words:n}]},nW=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!Ns.isSsr){var s,u,f=gM({breakAll:o,children:a,style:i});if(f){var c=f.wordsWithComputedWidth,h=f.spaceWidth;s=c,u=h}else return FO(a);return tW({breakAll:o,children:a,maxLines:l,style:i},s,u,n,r)}return FO(a)},GO="#808080",so=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.lineHeight,l=o===void 0?"1em":o,s=t.capHeight,u=s===void 0?"0.71em":s,f=t.scaleToFit,c=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,b=t.verticalAnchor,v=b===void 0?"end":b,g=t.fill,y=g===void 0?GO:g,m=UO(t,VQ),x=j.useMemo(function(){return nW({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:c,style:m.style,width:m.width})},[m.breakAll,m.children,m.maxLines,c,m.style,m.width]),S=m.dx,w=m.dy,O=m.angle,A=m.className,_=m.breakAll,T=UO(m,XQ);if(!wt(r)||!wt(i))return null;var M=r+(K(S)?S:0),L=i+(K(w)?w:0),E;switch(v){case"start":E=gm("calc(".concat(u,")"));break;case"middle":E=gm("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:E=gm("calc(".concat(x.length-1," * -").concat(l,")"));break}var N=[];if(c){var k=x[0].width,P=m.width;N.push("scale(".concat((K(P)?P/k:1)/k,")"))}return O&&N.push("rotate(".concat(O,", ").concat(M,", ").concat(L,")")),N.length&&(T.transform=N.join(" ")),D.createElement("text",Pg({},oe(T,!0),{x:M,y:L,className:me("recharts-text",A),textAnchor:p,fill:y.includes("url")?GO:y}),x.map(function($,z){var B=$.words.join(_?"":" ");return D.createElement("tspan",{x:M,dy:z===0?E:l,key:"".concat(B,"-").concat(z)},B)}))};function ri(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function rW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Cx(e){let t,n,r;e.length!==2?(t=ri,n=(l,s)=>ri(e(l),s),r=(l,s)=>e(l)-s):(t=e===ri||e===rW?e:aW,n=e,r=e);function a(l,s,u=0,f=l.length){if(u<f){if(t(s,s)!==0)return f;do{const c=u+f>>>1;n(l[c],s)<0?u=c+1:f=c}while(u<f)}return u}function i(l,s,u=0,f=l.length){if(u<f){if(t(s,s)!==0)return f;do{const c=u+f>>>1;n(l[c],s)<=0?u=c+1:f=c}while(u<f)}return u}function o(l,s,u=0,f=l.length){const c=a(l,s,u,f-1);return c>u&&r(l[c-1],s)>-r(l[c],s)?c-1:c}return{left:a,center:o,right:i}}function aW(){return 0}function bM(e){return e===null?NaN:+e}function*iW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const oW=Cx(ri),Jc=oW.right;Cx(bM).center;class YO extends Map{constructor(t,n=uW){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(KO(this,t))}has(t){return super.has(KO(this,t))}set(t,n){return super.set(lW(this,t),n)}delete(t){return super.delete(sW(this,t))}}function KO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function lW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function sW({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function uW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function cW(e=ri){if(e===ri)return xM;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function xM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const fW=Math.sqrt(50),dW=Math.sqrt(10),hW=Math.sqrt(2);function ih(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),o=i>=fW?10:i>=dW?5:i>=hW?2:1;let l,s,u;return a<0?(u=Math.pow(10,-a)/o,l=Math.round(e*u),s=Math.round(t*u),l/u<e&&++l,s/u>t&&--s,u=-u):(u=Math.pow(10,a)*o,l=Math.round(e/u),s=Math.round(t/u),l*u<e&&++l,s*u>t&&--s),s<l&&.5<=n&&n<2?ih(e,t,n*2):[l,s,u]}function Rg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,o]=r?ih(t,e,n):ih(e,t,n);if(!(i>=a))return[];const l=i-a+1,s=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)s[u]=(i-u)/-o;else for(let u=0;u<l;++u)s[u]=(i-u)*o;else if(o<0)for(let u=0;u<l;++u)s[u]=(a+u)/-o;else for(let u=0;u<l;++u)s[u]=(a+u)*o;return s}function $g(e,t,n){return t=+t,e=+e,n=+n,ih(e,t,n)[2]}function Dg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?$g(t,e,n):$g(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function VO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function XO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function SM(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?xM:cW(a);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,f=Math.log(s),c=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*c*(s-c)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*c/s+h)),b=Math.min(r,Math.floor(t+(s-u)*c/s+h));SM(e,t,p,b,a)}const i=e[t];let o=n,l=r;for(Ys(e,n,t),a(e[r],i)>0&&Ys(e,n,r);o<l;){for(Ys(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[n],i)===0?Ys(e,n,l):(++l,Ys(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Ys(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function pW(e,t,n){if(e=Float64Array.from(iW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return XO(e);if(t>=1)return VO(e);var r,a=(r-1)*t,i=Math.floor(a),o=VO(SM(e,i).subarray(0,i+1)),l=XO(e.subarray(i+1));return o+(l-o)*(a-i)}}function yW(e,t,n=bM){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),o=+n(e[i],i,e),l=+n(e[i+1],i+1,e);return o+(l-o)*(a-i)}}function mW(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function tr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function xa(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 kg=Symbol("implicit");function Nx(){var e=new YO,t=[],n=[],r=kg;function a(i){let o=e.get(i);if(o===void 0){if(r!==kg)return r;e.set(i,o=t.push(i)-1)}return n[o%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new YO;for(const o of i)e.has(o)||e.set(o,t.push(o)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Nx(t,n).unknown(r)},tr.apply(a,arguments),a}function Ju(){var e=Nx().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,l=!1,s=0,u=0,f=.5;delete e.unknown;function c(){var h=t().length,p=a<r,b=p?a:r,v=p?r:a;i=(v-b)/Math.max(1,h-s+u*2),l&&(i=Math.floor(i)),b+=(v-b-i*(h-s))*f,o=i*(1-s),l&&(b=Math.round(b),o=Math.round(o));var g=mW(h).map(function(y){return b+i*y});return n(p?g.reverse():g)}return e.domain=function(h){return arguments.length?(t(h),c()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,c()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,l=!0,c()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(h){return arguments.length?(l=!!h,c()):l},e.padding=function(h){return arguments.length?(s=Math.min(1,u=+h),c()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),c()):s},e.paddingOuter=function(h){return arguments.length?(u=+h,c()):u},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),c()):f},e.copy=function(){return Ju(t(),[r,a]).round(l).paddingInner(s).paddingOuter(u).align(f)},tr.apply(c(),arguments)}function wM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return wM(t())},e}function wu(){return wM(Ju.apply(null,arguments).paddingInner(1))}function Mx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function OM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ef(){}var ec=.7,oh=1/ec,cl="\\s*([+-]?\\d+)\\s*",tc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Er="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vW=/^#([0-9a-f]{3,8})$/,gW=new RegExp(`^rgb\\(${cl},${cl},${cl}\\)$`),bW=new RegExp(`^rgb\\(${Er},${Er},${Er}\\)$`),xW=new RegExp(`^rgba\\(${cl},${cl},${cl},${tc}\\)$`),SW=new RegExp(`^rgba\\(${Er},${Er},${Er},${tc}\\)$`),wW=new RegExp(`^hsl\\(${tc},${Er},${Er}\\)$`),OW=new RegExp(`^hsla\\(${tc},${Er},${Er},${tc}\\)$`),QO={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};Mx(ef,nc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:WO,formatHex:WO,formatHex8:jW,formatHsl:AW,formatRgb:ZO,toString:ZO});function WO(){return this.rgb().formatHex()}function jW(){return this.rgb().formatHex8()}function AW(){return jM(this).formatHsl()}function ZO(){return this.rgb().formatRgb()}function nc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=vW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?JO(t):n===3?new cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Nf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Nf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=gW.exec(e))?new cn(t[1],t[2],t[3],1):(t=bW.exec(e))?new cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=xW.exec(e))?Nf(t[1],t[2],t[3],t[4]):(t=SW.exec(e))?Nf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wW.exec(e))?nj(t[1],t[2]/100,t[3]/100,1):(t=OW.exec(e))?nj(t[1],t[2]/100,t[3]/100,t[4]):QO.hasOwnProperty(e)?JO(QO[e]):e==="transparent"?new cn(NaN,NaN,NaN,0):null}function JO(e){return new cn(e>>16&255,e>>8&255,e&255,1)}function Nf(e,t,n,r){return r<=0&&(e=t=n=NaN),new cn(e,t,n,r)}function EW(e){return e instanceof ef||(e=nc(e)),e?(e=e.rgb(),new cn(e.r,e.g,e.b,e.opacity)):new cn}function Lg(e,t,n,r){return arguments.length===1?EW(e):new cn(e,t,n,r??1)}function cn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Mx(cn,Lg,OM(ef,{brighter(e){return e=e==null?oh:Math.pow(oh,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?ec:Math.pow(ec,e),new cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new cn(Qi(this.r),Qi(this.g),Qi(this.b),lh(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:ej,formatHex:ej,formatHex8:_W,formatRgb:tj,toString:tj}));function ej(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}`}function _W(){return`#${Pi(this.r)}${Pi(this.g)}${Pi(this.b)}${Pi((isNaN(this.opacity)?1:this.opacity)*255)}`}function tj(){const e=lh(this.opacity);return`${e===1?"rgb(":"rgba("}${Qi(this.r)}, ${Qi(this.g)}, ${Qi(this.b)}${e===1?")":`, ${e})`}`}function lh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Qi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Pi(e){return e=Qi(e),(e<16?"0":"")+e.toString(16)}function nj(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sr(e,t,n,r)}function jM(e){if(e instanceof sr)return new sr(e.h,e.s,e.l,e.opacity);if(e instanceof ef||(e=nc(e)),!e)return new sr;if(e instanceof sr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),o=NaN,l=i-a,s=(i+a)/2;return l?(t===i?o=(n-r)/l+(n<r)*6:n===i?o=(r-t)/l+2:o=(t-n)/l+4,l/=s<.5?i+a:2-i-a,o*=60):l=s>0&&s<1?0:o,new sr(o,l,s,e.opacity)}function TW(e,t,n,r){return arguments.length===1?jM(e):new sr(e,t,n,r??1)}function sr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Mx(sr,TW,OM(ef,{brighter(e){return e=e==null?oh:Math.pow(oh,e),new sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?ec:Math.pow(ec,e),new sr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new cn(bm(e>=240?e-240:e+120,a,r),bm(e,a,r),bm(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new sr(rj(this.h),Mf(this.s),Mf(this.l),lh(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=lh(this.opacity);return`${e===1?"hsl(":"hsla("}${rj(this.h)}, ${Mf(this.s)*100}%, ${Mf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function rj(e){return e=(e||0)%360,e<0?e+360:e}function Mf(e){return Math.max(0,Math.min(1,e||0))}function bm(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Px=e=>()=>e;function CW(e,t){return function(n){return e+n*t}}function NW(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function MW(e){return(e=+e)==1?AM:function(t,n){return n-t?NW(t,n,e):Px(isNaN(t)?n:t)}}function AM(e,t){var n=t-e;return n?CW(e,n):Px(isNaN(e)?t:e)}const aj=function e(t){var n=MW(t);function r(a,i){var o=n((a=Lg(a)).r,(i=Lg(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=AM(a.opacity,i.opacity);return function(f){return a.r=o(f),a.g=l(f),a.b=s(f),a.opacity=u(f),a+""}}return r.gamma=e,r}(1);function PW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function RW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function $W(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),o;for(o=0;o<r;++o)a[o]=Ms(e[o],t[o]);for(;o<n;++o)i[o]=t[o];return function(l){for(o=0;o<r;++o)i[o]=a[o](l);return i}}function DW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function sh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function kW(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Ms(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var zg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xm=new RegExp(zg.source,"g");function LW(e){return function(){return e}}function zW(e){return function(t){return e(t)+""}}function BW(e,t){var n=zg.lastIndex=xm.lastIndex=0,r,a,i,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=zg.exec(e))&&(a=xm.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),l[o]?l[o]+=i:l[++o]=i),(r=r[0])===(a=a[0])?l[o]?l[o]+=a:l[++o]=a:(l[++o]=null,s.push({i:o,x:sh(r,a)})),n=xm.lastIndex;return n<t.length&&(i=t.slice(n),l[o]?l[o]+=i:l[++o]=i),l.length<2?s[0]?zW(s[0].x):LW(t):(t=s.length,function(u){for(var f=0,c;f<t;++f)l[(c=s[f]).i]=c.x(u);return l.join("")})}function Ms(e,t){var n=typeof t,r;return t==null||n==="boolean"?Px(t):(n==="number"?sh:n==="string"?(r=nc(t))?(t=r,aj):BW:t instanceof nc?aj:t instanceof Date?DW:RW(t)?PW:Array.isArray(t)?$W:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?kW:sh)(e,t)}function Rx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function IW(e,t){t===void 0&&(t=e,e=Ms);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return i[l](o-l)}}function UW(e){return function(){return e}}function uh(e){return+e}var ij=[0,1];function en(e){return e}function Bg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:UW(isNaN(t)?NaN:.5)}function HW(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function qW(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=Bg(a,r),i=n(o,i)):(r=Bg(r,a),i=n(i,o)),function(l){return i(r(l))}}function FW(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)a[o]=Bg(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(l){var s=Jc(e,l,1,r)-1;return i[s](a[s](l))}}function tf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Up(){var e=ij,t=ij,n=Ms,r,a,i,o=en,l,s,u;function f(){var h=Math.min(e.length,t.length);return o!==en&&(o=HW(e[0],e[h-1])),l=h>2?FW:qW,s=u=null,c}function c(h){return h==null||isNaN(h=+h)?i:(s||(s=l(e.map(r),t,n)))(r(o(h)))}return c.invert=function(h){return o(a((u||(u=l(t,e.map(r),sh)))(h)))},c.domain=function(h){return arguments.length?(e=Array.from(h,uh),f()):e.slice()},c.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},c.rangeRound=function(h){return t=Array.from(h),n=Rx,f()},c.clamp=function(h){return arguments.length?(o=h?!0:en,f()):o!==en},c.interpolate=function(h){return arguments.length?(n=h,f()):n},c.unknown=function(h){return arguments.length?(i=h,c):i},function(h,p){return r=h,a=p,f()}}function $x(){return Up()(en,en)}function GW(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ch(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function ql(e){return e=ch(Math.abs(e)),e?e[1]:NaN}function YW(e,t){return function(n,r){for(var a=n.length,i=[],o=0,l=e[0],s=0;a>0&&l>0&&(s+l+1>r&&(l=Math.max(1,r-s)),i.push(n.substring(a-=l,a+l)),!((s+=l+1)>r));)l=e[o=(o+1)%e.length];return i.reverse().join(t)}}function KW(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var VW=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function rc(e){if(!(t=VW.exec(e)))throw new Error("invalid format: "+e);var t;return new Dx({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]})}rc.prototype=Dx.prototype;function Dx(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+""}Dx.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 XW(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var fh;function QW(e,t){var n=ch(e,t);if(!n)return fh=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(fh=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=r.length;return i===o?r:i>o?r+new Array(i-o+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+ch(e,Math.max(0,t+i-1))[0]}function oj(e,t){var n=ch(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const lj={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:GW,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)=>oj(e*100,t),r:oj,s:QW,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function sj(e){return e}var uj=Array.prototype.map,cj=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function WW(e){var t=e.grouping===void 0||e.thousands===void 0?sj:YW(uj.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?sj:KW(uj.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(c,h){c=rc(c);var p=c.fill,b=c.align,v=c.sign,g=c.symbol,y=c.zero,m=c.width,x=c.comma,S=c.precision,w=c.trim,O=c.type;O==="n"?(x=!0,O="g"):lj[O]||(S===void 0&&(S=12),w=!0,O="g"),(y||p==="0"&&b==="=")&&(y=!0,p="0",b="=");var A=(h&&h.prefix!==void 0?h.prefix:"")+(g==="$"?n:g==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),_=(g==="$"?r:/[%p]/.test(O)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),T=lj[O],M=/[defgprs%]/.test(O);S=S===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,S)):Math.max(0,Math.min(20,S));function L(E){var N=A,k=_,P,$,z;if(O==="c")k=T(E)+k,E="";else{E=+E;var B=E<0||1/E<0;if(E=isNaN(E)?s:T(Math.abs(E),S),w&&(E=XW(E)),B&&+E==0&&v!=="+"&&(B=!1),N=(B?v==="("?v:l:v==="-"||v==="("?"":v)+N,k=(O==="s"&&!isNaN(E)&&fh!==void 0?cj[8+fh/3]:"")+k+(B&&v==="("?")":""),M){for(P=-1,$=E.length;++P<$;)if(z=E.charCodeAt(P),48>z||z>57){k=(z===46?a+E.slice(P+1):E.slice(P))+k,E=E.slice(0,P);break}}}x&&!y&&(E=t(E,1/0));var q=N.length+E.length+k.length,F=q<m?new Array(m-q+1).join(p):"";switch(x&&y&&(E=t(F+E,F.length?m-k.length:1/0),F=""),b){case"<":E=N+E+k+F;break;case"=":E=N+F+E+k;break;case"^":E=F.slice(0,q=F.length>>1)+N+E+k+F.slice(q);break;default:E=F+N+E+k;break}return i(E)}return L.toString=function(){return c+""},L}function f(c,h){var p=Math.max(-8,Math.min(8,Math.floor(ql(h)/3)))*3,b=Math.pow(10,-p),v=u((c=rc(c),c.type="f",c),{suffix:cj[8+p/3]});return function(g){return v(b*g)}}return{format:u,formatPrefix:f}}var Pf,kx,EM;ZW({thousands:",",grouping:[3],currency:["$",""]});function ZW(e){return Pf=WW(e),kx=Pf.format,EM=Pf.formatPrefix,Pf}function JW(e){return Math.max(0,-ql(Math.abs(e)))}function eZ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ql(t)/3)))*3-ql(Math.abs(e)))}function tZ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ql(t)-ql(e))+1}function _M(e,t,n,r){var a=Dg(e,t,n),i;switch(r=rc(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=eZ(a,o))&&(r.precision=i),EM(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=tZ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=JW(a))&&(r.precision=i-(r.type==="%")*2);break}}return kx(r)}function hi(e){var t=e.domain;return e.ticks=function(n){var r=t();return Rg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return _M(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,o=r[a],l=r[i],s,u,f=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);f-- >0;){if(u=$g(o,l,n),u===s)return r[a]=o,r[i]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;s=u}return e},e}function dh(){var e=$x();return e.copy=function(){return tf(e,dh())},tr.apply(e,arguments),hi(e)}function TM(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,uh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return TM(e).unknown(t)},e=arguments.length?Array.from(e,uh):[0,1],hi(n)}function CM(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],o;return i<a&&(o=n,n=r,r=o,o=a,a=i,i=o),e[n]=t.floor(a),e[r]=t.ceil(i),e}function fj(e){return Math.log(e)}function dj(e){return Math.exp(e)}function nZ(e){return-Math.log(-e)}function rZ(e){return-Math.exp(-e)}function aZ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function iZ(e){return e===10?aZ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function oZ(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 hj(e){return(t,n)=>-e(-t,n)}function Lx(e){const t=e(fj,dj),n=t.domain;let r=10,a,i;function o(){return a=oZ(r),i=iZ(r),n()[0]<0?(a=hj(a),i=hj(i),e(nZ,rZ)):e(fj,dj),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const s=n();let u=s[0],f=s[s.length-1];const c=f<u;c&&([u,f]=[f,u]);let h=a(u),p=a(f),b,v;const g=l==null?10:+l;let y=[];if(!(r%1)&&p-h<g){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(b=1;b<r;++b)if(v=h<0?b/i(-h):b*i(h),!(v<u)){if(v>f)break;y.push(v)}}else for(;h<=p;++h)for(b=r-1;b>=1;--b)if(v=h>0?b/i(-h):b*i(h),!(v<u)){if(v>f)break;y.push(v)}y.length*2<g&&(y=Rg(u,f,g))}else y=Rg(h,p,Math.min(p-h,g)).map(i);return c?y.reverse():y},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=rc(s)).precision==null&&(s.trim=!0),s=kx(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return f=>{let c=f/i(Math.round(a(f)));return c*r<r-.5&&(c*=r),c<=u?s(f):""}},t.nice=()=>n(CM(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function NM(){const e=Lx(Up()).domain([1,10]);return e.copy=()=>tf(e,NM()).base(e.base()),tr.apply(e,arguments),e}function pj(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function yj(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function zx(e){var t=1,n=e(pj(t),yj(t));return n.constant=function(r){return arguments.length?e(pj(t=+r),yj(t)):t},hi(n)}function MM(){var e=zx(Up());return e.copy=function(){return tf(e,MM()).constant(e.constant())},tr.apply(e,arguments)}function mj(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function lZ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function sZ(e){return e<0?-e*e:e*e}function Bx(e){var t=e(en,en),n=1;function r(){return n===1?e(en,en):n===.5?e(lZ,sZ):e(mj(n),mj(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},hi(t)}function Ix(){var e=Bx(Up());return e.copy=function(){return tf(e,Ix()).exponent(e.exponent())},tr.apply(e,arguments),e}function uZ(){return Ix.apply(null,arguments).exponent(.5)}function vj(e){return Math.sign(e)*e*e}function cZ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function PM(){var e=$x(),t=[0,1],n=!1,r;function a(i){var o=cZ(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(vj(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,uh)).map(vj)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return PM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},tr.apply(a,arguments),hi(a)}function RM(){var e=[],t=[],n=[],r;function a(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=yW(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?r:t[Jc(n,o)]}return i.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},i.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(ri),a()},i.range=function(o){return arguments.length?(t=Array.from(o),a()):t.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return RM().domain(e).range(t).unknown(r)},tr.apply(i,arguments)}function $M(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function o(s){return s!=null&&s<=s?a[Jc(r,s,0,n)]:i}function l(){var s=-1;for(r=new Array(n);++s<n;)r[s]=((s+1)*t-(s-n)*e)/(n+1);return o}return o.domain=function(s){return arguments.length?([e,t]=s,e=+e,t=+t,l()):[e,t]},o.range=function(s){return arguments.length?(n=(a=Array.from(s)).length-1,l()):a.slice()},o.invertExtent=function(s){var u=a.indexOf(s);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(s){return arguments.length&&(i=s),o},o.thresholds=function(){return r.slice()},o.copy=function(){return $M().domain([e,t]).range(a).unknown(i)},tr.apply(hi(o),arguments)}function DM(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Jc(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var o=t.indexOf(i);return[e[o-1],e[o]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return DM().domain(e).range(t).unknown(n)},tr.apply(a,arguments)}const Sm=new Date,wm=new Date;function At(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const o=a(i),l=a.ceil(i);return i-o<l-i?o:l},a.offset=(i,o)=>(t(i=new Date(+i),o==null?1:Math.floor(o)),i),a.range=(i,o,l)=>{const s=[];if(i=a.ceil(i),l=l==null?1:Math.floor(l),!(i<o)||!(l>0))return s;let u;do s.push(u=new Date(+i)),t(i,l),e(i);while(u<i&&i<o);return s},a.filter=i=>At(o=>{if(o>=o)for(;e(o),!i(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!i(o););else for(;--l>=0;)for(;t(o,1),!i(o););}),n&&(a.count=(i,o)=>(Sm.setTime(+i),wm.setTime(+o),e(Sm),e(wm),Math.floor(n(Sm,wm))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?o=>r(o)%i===0:o=>a.count(0,o)%i===0):a)),a}const hh=At(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);hh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?At(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):hh);hh.range;const Zr=1e3,Vn=Zr*60,Jr=Vn*60,ha=Jr*24,Ux=ha*7,gj=ha*30,Om=ha*365,Ri=At(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCSeconds());Ri.range;const Hx=At(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zr)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getMinutes());Hx.range;const qx=At(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Vn)},(e,t)=>(t-e)/Vn,e=>e.getUTCMinutes());qx.range;const Fx=At(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Zr-e.getMinutes()*Vn)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getHours());Fx.range;const Gx=At(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Jr)},(e,t)=>(t-e)/Jr,e=>e.getUTCHours());Gx.range;const nf=At(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Vn)/ha,e=>e.getDate()-1);nf.range;const Hp=At(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha,e=>e.getUTCDate()-1);Hp.range;const kM=At(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ha,e=>Math.floor(e/ha));kM.range;function xo(e){return At(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Vn)/Ux)}const qp=xo(0),ph=xo(1),fZ=xo(2),dZ=xo(3),Fl=xo(4),hZ=xo(5),pZ=xo(6);qp.range;ph.range;fZ.range;dZ.range;Fl.range;hZ.range;pZ.range;function So(e){return At(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Ux)}const Fp=So(0),yh=So(1),yZ=So(2),mZ=So(3),Gl=So(4),vZ=So(5),gZ=So(6);Fp.range;yh.range;yZ.range;mZ.range;Gl.range;vZ.range;gZ.range;const Yx=At(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());Yx.range;const Kx=At(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());Kx.range;const pa=At(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());pa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:At(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});pa.range;const ya=At(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());ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:At(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ya.range;function LM(e,t,n,r,a,i){const o=[[Ri,1,Zr],[Ri,5,5*Zr],[Ri,15,15*Zr],[Ri,30,30*Zr],[i,1,Vn],[i,5,5*Vn],[i,15,15*Vn],[i,30,30*Vn],[a,1,Jr],[a,3,3*Jr],[a,6,6*Jr],[a,12,12*Jr],[r,1,ha],[r,2,2*ha],[n,1,Ux],[t,1,gj],[t,3,3*gj],[e,1,Om]];function l(u,f,c){const h=f<u;h&&([u,f]=[f,u]);const p=c&&typeof c.range=="function"?c:s(u,f,c),b=p?p.range(u,+f+1):[];return h?b.reverse():b}function s(u,f,c){const h=Math.abs(f-u)/c,p=Cx(([,,g])=>g).right(o,h);if(p===o.length)return e.every(Dg(u/Om,f/Om,c));if(p===0)return hh.every(Math.max(Dg(u,f,c),1));const[b,v]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return b.every(v)}return[l,s]}const[bZ,xZ]=LM(ya,Kx,Fp,kM,Gx,qx),[SZ,wZ]=LM(pa,Yx,qp,nf,Fx,Hx);function jm(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 Am(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 Ks(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function OZ(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,o=e.shortDays,l=e.months,s=e.shortMonths,u=Vs(a),f=Xs(a),c=Vs(i),h=Xs(i),p=Vs(o),b=Xs(o),v=Vs(l),g=Xs(l),y=Vs(s),m=Xs(s),x={a:z,A:B,b:q,B:F,c:null,d:jj,e:jj,f:YZ,g:nJ,G:aJ,H:qZ,I:FZ,j:GZ,L:zM,m:KZ,M:VZ,p:Q,q:Y,Q:_j,s:Tj,S:XZ,u:QZ,U:WZ,V:ZZ,w:JZ,W:eJ,x:null,X:null,y:tJ,Y:rJ,Z:iJ,"%":Ej},S={a:ee,A:ye,b:ke,B:fe,c:null,d:Aj,e:Aj,f:uJ,g:bJ,G:SJ,H:oJ,I:lJ,j:sJ,L:IM,m:cJ,M:fJ,p:Rt,q:vt,Q:_j,s:Tj,S:dJ,u:hJ,U:pJ,V:yJ,w:mJ,W:vJ,x:null,X:null,y:gJ,Y:xJ,Z:wJ,"%":Ej},w={a:M,A:L,b:E,B:N,c:k,d:wj,e:wj,f:BZ,g:Sj,G:xj,H:Oj,I:Oj,j:DZ,L:zZ,m:$Z,M:kZ,p:T,q:RZ,Q:UZ,s:HZ,S:LZ,u:TZ,U:CZ,V:NZ,w:_Z,W:MZ,x:P,X:$,y:Sj,Y:xj,Z:PZ,"%":IZ};x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),S.x=O(n,S),S.X=O(r,S),S.c=O(t,S);function O(X,se){return function(de){var H=[],Ve=-1,ge=0,Me=X.length,J,Le,$t;for(de instanceof Date||(de=new Date(+de));++Ve<Me;)X.charCodeAt(Ve)===37&&(H.push(X.slice(ge,Ve)),(Le=bj[J=X.charAt(++Ve)])!=null?J=X.charAt(++Ve):Le=J==="e"?" ":"0",($t=se[J])&&(J=$t(de,Le)),H.push(J),ge=Ve+1);return H.push(X.slice(ge,Ve)),H.join("")}}function A(X,se){return function(de){var H=Ks(1900,void 0,1),Ve=_(H,X,de+="",0),ge,Me;if(Ve!=de.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(se&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(ge=Am(Ks(H.y,0,1)),Me=ge.getUTCDay(),ge=Me>4||Me===0?yh.ceil(ge):yh(ge),ge=Hp.offset(ge,(H.V-1)*7),H.y=ge.getUTCFullYear(),H.m=ge.getUTCMonth(),H.d=ge.getUTCDate()+(H.w+6)%7):(ge=jm(Ks(H.y,0,1)),Me=ge.getDay(),ge=Me>4||Me===0?ph.ceil(ge):ph(ge),ge=nf.offset(ge,(H.V-1)*7),H.y=ge.getFullYear(),H.m=ge.getMonth(),H.d=ge.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),Me="Z"in H?Am(Ks(H.y,0,1)).getUTCDay():jm(Ks(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(Me+5)%7:H.w+H.U*7-(Me+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,Am(H)):jm(H)}}function _(X,se,de,H){for(var Ve=0,ge=se.length,Me=de.length,J,Le;Ve<ge;){if(H>=Me)return-1;if(J=se.charCodeAt(Ve++),J===37){if(J=se.charAt(Ve++),Le=w[J in bj?se.charAt(Ve++):J],!Le||(H=Le(X,de,H))<0)return-1}else if(J!=de.charCodeAt(H++))return-1}return H}function T(X,se,de){var H=u.exec(se.slice(de));return H?(X.p=f.get(H[0].toLowerCase()),de+H[0].length):-1}function M(X,se,de){var H=p.exec(se.slice(de));return H?(X.w=b.get(H[0].toLowerCase()),de+H[0].length):-1}function L(X,se,de){var H=c.exec(se.slice(de));return H?(X.w=h.get(H[0].toLowerCase()),de+H[0].length):-1}function E(X,se,de){var H=y.exec(se.slice(de));return H?(X.m=m.get(H[0].toLowerCase()),de+H[0].length):-1}function N(X,se,de){var H=v.exec(se.slice(de));return H?(X.m=g.get(H[0].toLowerCase()),de+H[0].length):-1}function k(X,se,de){return _(X,t,se,de)}function P(X,se,de){return _(X,n,se,de)}function $(X,se,de){return _(X,r,se,de)}function z(X){return o[X.getDay()]}function B(X){return i[X.getDay()]}function q(X){return s[X.getMonth()]}function F(X){return l[X.getMonth()]}function Q(X){return a[+(X.getHours()>=12)]}function Y(X){return 1+~~(X.getMonth()/3)}function ee(X){return o[X.getUTCDay()]}function ye(X){return i[X.getUTCDay()]}function ke(X){return s[X.getUTCMonth()]}function fe(X){return l[X.getUTCMonth()]}function Rt(X){return a[+(X.getUTCHours()>=12)]}function vt(X){return 1+~~(X.getUTCMonth()/3)}return{format:function(X){var se=O(X+="",x);return se.toString=function(){return X},se},parse:function(X){var se=A(X+="",!1);return se.toString=function(){return X},se},utcFormat:function(X){var se=O(X+="",S);return se.toString=function(){return X},se},utcParse:function(X){var se=A(X+="",!0);return se.toString=function(){return X},se}}}var bj={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,jZ=/^%/,AZ=/[\\^$*+?|[\]().{}]/g;function Ee(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function EZ(e){return e.replace(AZ,"\\$&")}function Vs(e){return new RegExp("^(?:"+e.map(EZ).join("|")+")","i")}function Xs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function _Z(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function TZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function CZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function NZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function MZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function xj(e,t,n){var r=Pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Sj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function PZ(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function RZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function $Z(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function wj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function DZ(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Oj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function LZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function zZ(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function BZ(e,t,n){var r=Pt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function IZ(e,t,n){var r=jZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function UZ(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function HZ(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function jj(e,t){return Ee(e.getDate(),t,2)}function qZ(e,t){return Ee(e.getHours(),t,2)}function FZ(e,t){return Ee(e.getHours()%12||12,t,2)}function GZ(e,t){return Ee(1+nf.count(pa(e),e),t,3)}function zM(e,t){return Ee(e.getMilliseconds(),t,3)}function YZ(e,t){return zM(e,t)+"000"}function KZ(e,t){return Ee(e.getMonth()+1,t,2)}function VZ(e,t){return Ee(e.getMinutes(),t,2)}function XZ(e,t){return Ee(e.getSeconds(),t,2)}function QZ(e){var t=e.getDay();return t===0?7:t}function WZ(e,t){return Ee(qp.count(pa(e)-1,e),t,2)}function BM(e){var t=e.getDay();return t>=4||t===0?Fl(e):Fl.ceil(e)}function ZZ(e,t){return e=BM(e),Ee(Fl.count(pa(e),e)+(pa(e).getDay()===4),t,2)}function JZ(e){return e.getDay()}function eJ(e,t){return Ee(ph.count(pa(e)-1,e),t,2)}function tJ(e,t){return Ee(e.getFullYear()%100,t,2)}function nJ(e,t){return e=BM(e),Ee(e.getFullYear()%100,t,2)}function rJ(e,t){return Ee(e.getFullYear()%1e4,t,4)}function aJ(e,t){var n=e.getDay();return e=n>=4||n===0?Fl(e):Fl.ceil(e),Ee(e.getFullYear()%1e4,t,4)}function iJ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ee(t/60|0,"0",2)+Ee(t%60,"0",2)}function Aj(e,t){return Ee(e.getUTCDate(),t,2)}function oJ(e,t){return Ee(e.getUTCHours(),t,2)}function lJ(e,t){return Ee(e.getUTCHours()%12||12,t,2)}function sJ(e,t){return Ee(1+Hp.count(ya(e),e),t,3)}function IM(e,t){return Ee(e.getUTCMilliseconds(),t,3)}function uJ(e,t){return IM(e,t)+"000"}function cJ(e,t){return Ee(e.getUTCMonth()+1,t,2)}function fJ(e,t){return Ee(e.getUTCMinutes(),t,2)}function dJ(e,t){return Ee(e.getUTCSeconds(),t,2)}function hJ(e){var t=e.getUTCDay();return t===0?7:t}function pJ(e,t){return Ee(Fp.count(ya(e)-1,e),t,2)}function UM(e){var t=e.getUTCDay();return t>=4||t===0?Gl(e):Gl.ceil(e)}function yJ(e,t){return e=UM(e),Ee(Gl.count(ya(e),e)+(ya(e).getUTCDay()===4),t,2)}function mJ(e){return e.getUTCDay()}function vJ(e,t){return Ee(yh.count(ya(e)-1,e),t,2)}function gJ(e,t){return Ee(e.getUTCFullYear()%100,t,2)}function bJ(e,t){return e=UM(e),Ee(e.getUTCFullYear()%100,t,2)}function xJ(e,t){return Ee(e.getUTCFullYear()%1e4,t,4)}function SJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Gl(e):Gl.ceil(e),Ee(e.getUTCFullYear()%1e4,t,4)}function wJ(){return"+0000"}function Ej(){return"%"}function _j(e){return+e}function Tj(e){return Math.floor(+e/1e3)}var Po,HM,qM;OJ({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 OJ(e){return Po=OZ(e),HM=Po.format,Po.parse,qM=Po.utcFormat,Po.utcParse,Po}function jJ(e){return new Date(e)}function AJ(e){return e instanceof Date?+e:+new Date(+e)}function Vx(e,t,n,r,a,i,o,l,s,u){var f=$x(),c=f.invert,h=f.domain,p=u(".%L"),b=u(":%S"),v=u("%I:%M"),g=u("%I %p"),y=u("%a %d"),m=u("%b %d"),x=u("%B"),S=u("%Y");function w(O){return(s(O)<O?p:l(O)<O?b:o(O)<O?v:i(O)<O?g:r(O)<O?a(O)<O?y:m:n(O)<O?x:S)(O)}return f.invert=function(O){return new Date(c(O))},f.domain=function(O){return arguments.length?h(Array.from(O,AJ)):h().map(jJ)},f.ticks=function(O){var A=h();return e(A[0],A[A.length-1],O??10)},f.tickFormat=function(O,A){return A==null?w:u(A)},f.nice=function(O){var A=h();return(!O||typeof O.range!="function")&&(O=t(A[0],A[A.length-1],O??10)),O?h(CM(A,O)):f},f.copy=function(){return tf(f,Vx(e,t,n,r,a,i,o,l,s,u))},f}function EJ(){return tr.apply(Vx(SZ,wZ,pa,Yx,qp,nf,Fx,Hx,Ri,HM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function _J(){return tr.apply(Vx(bZ,xZ,ya,Kx,Fp,Hp,Gx,qx,Ri,qM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Gp(){var e=0,t=1,n,r,a,i,o=en,l=!1,s;function u(c){return c==null||isNaN(c=+c)?s:o(a===0?.5:(c=(i(c)-n)*a,l?Math.max(0,Math.min(1,c)):c))}u.domain=function(c){return arguments.length?([e,t]=c,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(c){return arguments.length?(l=!!c,u):l},u.interpolator=function(c){return arguments.length?(o=c,u):o};function f(c){return function(h){var p,b;return arguments.length?([p,b]=h,o=c(p,b),u):[o(0),o(1)]}}return u.range=f(Ms),u.rangeRound=f(Rx),u.unknown=function(c){return arguments.length?(s=c,u):s},function(c){return i=c,n=c(e),r=c(t),a=n===r?0:1/(r-n),u}}function pi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function FM(){var e=hi(Gp()(en));return e.copy=function(){return pi(e,FM())},xa.apply(e,arguments)}function GM(){var e=Lx(Gp()).domain([1,10]);return e.copy=function(){return pi(e,GM()).base(e.base())},xa.apply(e,arguments)}function YM(){var e=zx(Gp());return e.copy=function(){return pi(e,YM()).constant(e.constant())},xa.apply(e,arguments)}function Xx(){var e=Bx(Gp());return e.copy=function(){return pi(e,Xx()).exponent(e.exponent())},xa.apply(e,arguments)}function TJ(){return Xx.apply(null,arguments).exponent(.5)}function KM(){var e=[],t=en;function n(r){if(r!=null&&!isNaN(r=+r))return t((Jc(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(ri),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>pW(e,i/r))},n.copy=function(){return KM(t).domain(e)},xa.apply(n,arguments)}function Yp(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=en,f,c=!1,h;function p(v){return isNaN(v=+v)?h:(v=.5+((v=+f(v))-i)*(r*v<r*i?l:s),u(c?Math.max(0,Math.min(1,v)):v))}p.domain=function(v){return arguments.length?([e,t,n]=v,a=f(e=+e),i=f(t=+t),o=f(n=+n),l=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),r=i<a?-1:1,p):[e,t,n]},p.clamp=function(v){return arguments.length?(c=!!v,p):c},p.interpolator=function(v){return arguments.length?(u=v,p):u};function b(v){return function(g){var y,m,x;return arguments.length?([y,m,x]=g,u=IW(v,[y,m,x]),p):[u(0),u(.5),u(1)]}}return p.range=b(Ms),p.rangeRound=b(Rx),p.unknown=function(v){return arguments.length?(h=v,p):h},function(v){return f=v,a=v(e),i=v(t),o=v(n),l=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),r=i<a?-1:1,p}}function VM(){var e=hi(Yp()(en));return e.copy=function(){return pi(e,VM())},xa.apply(e,arguments)}function XM(){var e=Lx(Yp()).domain([.1,1,10]);return e.copy=function(){return pi(e,XM()).base(e.base())},xa.apply(e,arguments)}function QM(){var e=zx(Yp());return e.copy=function(){return pi(e,QM()).constant(e.constant())},xa.apply(e,arguments)}function Qx(){var e=Bx(Yp());return e.copy=function(){return pi(e,Qx()).exponent(e.exponent())},xa.apply(e,arguments)}function CJ(){return Qx.apply(null,arguments).exponent(.5)}const Cj=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Ju,scaleDiverging:VM,scaleDivergingLog:XM,scaleDivergingPow:Qx,scaleDivergingSqrt:CJ,scaleDivergingSymlog:QM,scaleIdentity:TM,scaleImplicit:kg,scaleLinear:dh,scaleLog:NM,scaleOrdinal:Nx,scalePoint:wu,scalePow:Ix,scaleQuantile:RM,scaleQuantize:$M,scaleRadial:PM,scaleSequential:FM,scaleSequentialLog:GM,scaleSequentialPow:Xx,scaleSequentialQuantile:KM,scaleSequentialSqrt:TJ,scaleSequentialSymlog:YM,scaleSqrt:uZ,scaleSymlog:MM,scaleThreshold:DM,scaleTime:EJ,scaleUtc:_J,tickFormat:_M},Symbol.toStringTag,{value:"Module"}));var NJ=ws;function MJ(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],o=t(i);if(o!=null&&(l===void 0?o===o&&!NJ(o):n(o,l)))var l=o,s=i}return s}var Kp=MJ;function PJ(e,t){return e>t}var WM=PJ,RJ=Kp,$J=WM,DJ=Cs;function kJ(e){return e&&e.length?RJ(e,DJ,$J):void 0}var LJ=kJ;const Vp=Ue(LJ);function zJ(e,t){return e<t}var ZM=zJ,BJ=Kp,IJ=ZM,UJ=Cs;function HJ(e){return e&&e.length?BJ(e,UJ,IJ):void 0}var qJ=HJ;const Xp=Ue(qJ);var FJ=ux,GJ=di,YJ=lM,KJ=yn;function VJ(e,t){var n=KJ(e)?FJ:YJ;return n(e,GJ(t))}var XJ=VJ,QJ=iM,WJ=XJ;function ZJ(e,t){return QJ(WJ(e,t),1)}var JJ=ZJ;const eee=Ue(JJ);var tee=Ax;function nee(e,t){return tee(e,t)}var ree=nee;const Qp=Ue(ree);var Ps=1e9,aee={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Zx,nt=!0,Jn="[DecimalError] ",Wi=Jn+"Invalid argument: ",Wx=Jn+"Exponent out of range: ",Rs=Math.floor,_i=Math.pow,iee=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,jn,_t=1e7,We=7,JM=9007199254740991,mh=Rs(JM/We),Z={};Z.absoluteValue=Z.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Z.comparedTo=Z.cmp=function(e){var t,n,r,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};Z.decimalPlaces=Z.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*We;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Z.dividedBy=Z.div=function(e){return ia(this,new this.constructor(e))};Z.dividedToIntegerBy=Z.idiv=function(e){var t=this,n=t.constructor;return He(ia(t,new n(e),0,1),n.precision)};Z.equals=Z.eq=function(e){return!this.cmp(e)};Z.exponent=function(){return mt(this)};Z.greaterThan=Z.gt=function(e){return this.cmp(e)>0};Z.greaterThanOrEqualTo=Z.gte=function(e){return this.cmp(e)>=0};Z.isInteger=Z.isint=function(){return this.e>this.d.length-2};Z.isNegative=Z.isneg=function(){return this.s<0};Z.isPositive=Z.ispos=function(){return this.s>0};Z.isZero=function(){return this.s===0};Z.lessThan=Z.lt=function(e){return this.cmp(e)<0};Z.lessThanOrEqualTo=Z.lte=function(e){return this.cmp(e)<1};Z.logarithm=Z.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(jn))throw Error(Jn+"NaN");if(n.s<1)throw Error(Jn+(n.s?"NaN":"-Infinity"));return n.eq(jn)?new r(0):(nt=!1,t=ia(ac(n,i),ac(e,i),i),nt=!0,He(t,a))};Z.minus=Z.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?nP(t,e):eP(t,(e.s=-e.s,e))};Z.modulo=Z.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Jn+"NaN");return n.s?(nt=!1,t=ia(n,e,0,1).times(e),nt=!0,n.minus(t)):He(new r(n),a)};Z.naturalExponential=Z.exp=function(){return tP(this)};Z.naturalLogarithm=Z.ln=function(){return ac(this)};Z.negated=Z.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Z.plus=Z.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?eP(t,e):nP(t,(e.s=-e.s,e))};Z.precision=Z.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Wi+e);if(t=mt(a)+1,r=a.d.length-1,n=r*We+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Z.squareRoot=Z.sqrt=function(){var e,t,n,r,a,i,o,l=this,s=l.constructor;if(l.s<1){if(!l.s)return new s(0);throw Error(Jn+"NaN")}for(e=mt(l),nt=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=jr(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Rs((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new s(t)):r=new s(a.toString()),n=s.precision,a=o=n+3;;)if(i=r,r=i.plus(ia(l,i,o+2)).times(.5),jr(i.d).slice(0,o)===(t=jr(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(He(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if(t!="9999")break;o+=4}return nt=!0,He(r,n)};Z.times=Z.mul=function(e){var t,n,r,a,i,o,l,s,u,f=this,c=f.constructor,h=f.d,p=(e=new c(e)).d;if(!f.s||!e.s)return new c(0);for(e.s*=f.s,n=f.e+e.e,s=h.length,u=p.length,s<u&&(i=h,h=p,p=i,o=s,s=u,u=o),i=[],o=s+u,r=o;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,a=s+r;a>r;)l=i[a]+p[r]*h[a-r-1]+t,i[a--]=l%_t|0,t=l/_t|0;i[a]=(i[a]+t)%_t|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,nt?He(e,c.precision):e};Z.toDecimalPlaces=Z.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Tr(e,0,Ps),t===void 0?t=r.rounding:Tr(t,0,8),He(n,e+mt(n)+1,t))};Z.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=uo(r,!0):(Tr(e,0,Ps),t===void 0?t=a.rounding:Tr(t,0,8),r=He(new a(r),e+1,t),n=uo(r,!0,e+1)),n};Z.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?uo(a):(Tr(e,0,Ps),t===void 0?t=i.rounding:Tr(t,0,8),r=He(new i(a),e+mt(a)+1,t),n=uo(r.abs(),!1,e+mt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};Z.toInteger=Z.toint=function(){var e=this,t=e.constructor;return He(new t(e),mt(e)+1,t.rounding)};Z.toNumber=function(){return+this};Z.toPower=Z.pow=function(e){var t,n,r,a,i,o,l=this,s=l.constructor,u=12,f=+(e=new s(e));if(!e.s)return new s(jn);if(l=new s(l),!l.s){if(e.s<1)throw Error(Jn+"Infinity");return l}if(l.eq(jn))return l;if(r=s.precision,e.eq(jn))return He(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=l.s,o){if((n=f<0?-f:f)<=JM){for(a=new s(jn),t=Math.ceil(r/We+4),nt=!1;n%2&&(a=a.times(l),Mj(a.d,t)),n=Rs(n/2),n!==0;)l=l.times(l),Mj(l.d,t);return nt=!0,e.s<0?new s(jn).div(a):He(a,r)}}else if(i<0)throw Error(Jn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,nt=!1,a=e.times(ac(l,r+u)),nt=!0,a=tP(a),a.s=i,a};Z.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=mt(a),r=uo(a,n<=i.toExpNeg||n>=i.toExpPos)):(Tr(e,1,Ps),t===void 0?t=i.rounding:Tr(t,0,8),a=He(new i(a),e,t),n=mt(a),r=uo(a,e<=n||n<=i.toExpNeg,e)),r};Z.toSignificantDigits=Z.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Tr(e,1,Ps),t===void 0?t=r.rounding:Tr(t,0,8)),He(new r(n),e,t)};Z.toString=Z.valueOf=Z.val=Z.toJSON=Z[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=mt(e),n=e.constructor;return uo(e,t<=n.toExpNeg||t>=n.toExpPos)};function eP(e,t){var n,r,a,i,o,l,s,u,f=e.constructor,c=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),nt?He(t,c):t;if(s=e.d,u=t.d,o=e.e,a=t.e,s=s.slice(),i=o-a,i){for(i<0?(r=s,i=-i,l=u.length):(r=u,a=o,l=s.length),o=Math.ceil(c/We),l=o>l?o+1:l+1,i>l&&(i=l,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(l=s.length,i=u.length,l-i<0&&(i=l,r=u,u=s,s=r),n=0;i;)n=(s[--i]=s[i]+u[i]+n)/_t|0,s[i]%=_t;for(n&&(s.unshift(n),++a),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=a,nt?He(t,c):t}function Tr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Wi+e)}function jr(e){var t,n,r,a=e.length-1,i="",o=e[0];if(a>0){for(i+=o,t=1;t<a;t++)r=e[t]+"",n=We-r.length,n&&(i+=_a(n)),i+=r;o=e[t],r=o+"",n=We-r.length,n&&(i+=_a(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return i+o}var ia=function(){function e(r,a){var i,o=0,l=r.length;for(r=r.slice();l--;)i=r[l]*a+o,r[l]=i%_t|0,o=i/_t|0;return o&&r.unshift(o),r}function t(r,a,i,o){var l,s;if(i!=o)s=i>o?1:-1;else for(l=s=0;l<i;l++)if(r[l]!=a[l]){s=r[l]>a[l]?1:-1;break}return s}function n(r,a,i){for(var o=0;i--;)r[i]-=o,o=r[i]<a[i]?1:0,r[i]=o*_t+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,o){var l,s,u,f,c,h,p,b,v,g,y,m,x,S,w,O,A,_,T=r.constructor,M=r.s==a.s?1:-1,L=r.d,E=a.d;if(!r.s)return new T(r);if(!a.s)throw Error(Jn+"Division by zero");for(s=r.e-a.e,A=E.length,w=L.length,p=new T(M),b=p.d=[],u=0;E[u]==(L[u]||0);)++u;if(E[u]>(L[u]||0)&&--s,i==null?m=i=T.precision:o?m=i+(mt(r)-mt(a))+1:m=i,m<0)return new T(0);if(m=m/We+2|0,u=0,A==1)for(f=0,E=E[0],m++;(u<w||f)&&m--;u++)x=f*_t+(L[u]||0),b[u]=x/E|0,f=x%E|0;else{for(f=_t/(E[0]+1)|0,f>1&&(E=e(E,f),L=e(L,f),A=E.length,w=L.length),S=A,v=L.slice(0,A),g=v.length;g<A;)v[g++]=0;_=E.slice(),_.unshift(0),O=E[0],E[1]>=_t/2&&++O;do f=0,l=t(E,v,A,g),l<0?(y=v[0],A!=g&&(y=y*_t+(v[1]||0)),f=y/O|0,f>1?(f>=_t&&(f=_t-1),c=e(E,f),h=c.length,g=v.length,l=t(c,v,h,g),l==1&&(f--,n(c,A<h?_:E,h))):(f==0&&(l=f=1),c=E.slice()),h=c.length,h<g&&c.unshift(0),n(v,c,g),l==-1&&(g=v.length,l=t(E,v,A,g),l<1&&(f++,n(v,A<g?_:E,g))),g=v.length):l===0&&(f++,v=[0]),b[u++]=f,l&&v[0]?v[g++]=L[S]||0:(v=[L[S]],g=1);while((S++<w||v[0]!==void 0)&&m--)}return b[0]||b.shift(),p.e=s,He(p,o?i+mt(p)+1:i)}}();function tP(e,t){var n,r,a,i,o,l,s=0,u=0,f=e.constructor,c=f.precision;if(mt(e)>16)throw Error(Wx+mt(e));if(!e.s)return new f(jn);for(nt=!1,l=c,o=new f(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(_i(2,u))/Math.LN10*2+5|0,l+=r,n=a=i=new f(jn),f.precision=l;;){if(a=He(a.times(e),l),n=n.times(++s),o=i.plus(ia(a,n,l)),jr(o.d).slice(0,l)===jr(i.d).slice(0,l)){for(;u--;)i=He(i.times(i),l);return f.precision=c,t==null?(nt=!0,He(i,c)):i}i=o}}function mt(e){for(var t=e.e*We,n=e.d[0];n>=10;n/=10)t++;return t}function Em(e,t,n){if(t>e.LN10.sd())throw nt=!0,n&&(e.precision=n),Error(Jn+"LN10 precision limit exceeded");return He(new e(e.LN10),t)}function _a(e){for(var t="";e--;)t+="0";return t}function ac(e,t){var n,r,a,i,o,l,s,u,f,c=1,h=10,p=e,b=p.d,v=p.constructor,g=v.precision;if(p.s<1)throw Error(Jn+(p.s?"NaN":"-Infinity"));if(p.eq(jn))return new v(0);if(t==null?(nt=!1,u=g):u=t,p.eq(10))return t==null&&(nt=!0),Em(v,u);if(u+=h,v.precision=u,n=jr(b),r=n.charAt(0),i=mt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=jr(p.d),r=n.charAt(0),c++;i=mt(p),r>1?(p=new v("0."+n),i++):p=new v(r+"."+n.slice(1))}else return s=Em(v,u+2,g).times(i+""),p=ac(new v(r+"."+n.slice(1)),u-h).plus(s),v.precision=g,t==null?(nt=!0,He(p,g)):p;for(l=o=p=ia(p.minus(jn),p.plus(jn),u),f=He(p.times(p),u),a=3;;){if(o=He(o.times(f),u),s=l.plus(ia(o,new v(a),u)),jr(s.d).slice(0,u)===jr(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(Em(v,u+2,g).times(i+""))),l=ia(l,new v(c),u),v.precision=g,t==null?(nt=!0,He(l,g)):l;l=s,a+=2}}function Nj(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Rs(n/We),e.d=[],r=(n+1)%We,n<0&&(r+=We),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=We;r<a;)e.d.push(+t.slice(r,r+=We));t=t.slice(r),r=We-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),nt&&(e.e>mh||e.e<-mh))throw Error(Wx+n)}else e.s=0,e.e=0,e.d=[0];return e}function He(e,t,n){var r,a,i,o,l,s,u,f,c=e.d;for(o=1,i=c[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=We,a=t,u=c[f=0];else{if(f=Math.ceil((r+1)/We),i=c.length,f>=i)return e;for(u=i=c[f],o=1;i>=10;i/=10)o++;r%=We,a=r-We+o}if(n!==void 0&&(i=_i(10,o-a-1),l=u/i%10|0,s=t<0||c[f+1]!==void 0||u%i,s=n<4?(l||s)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||s||n==6&&(r>0?a>0?u/_i(10,o-a):0:c[f-1])%10&1||n==(e.s<0?8:7))),t<1||!c[0])return s?(i=mt(e),c.length=1,t=t-i-1,c[0]=_i(10,(We-t%We)%We),e.e=Rs(-t/We)||0):(c.length=1,c[0]=e.e=e.s=0),e;if(r==0?(c.length=f,i=1,f--):(c.length=f+1,i=_i(10,We-r),c[f]=a>0?(u/_i(10,o-a)%_i(10,a)|0)*i:0),s)for(;;)if(f==0){(c[0]+=i)==_t&&(c[0]=1,++e.e);break}else{if(c[f]+=i,c[f]!=_t)break;c[f--]=0,i=1}for(r=c.length;c[--r]===0;)c.pop();if(nt&&(e.e>mh||e.e<-mh))throw Error(Wx+mt(e));return e}function nP(e,t){var n,r,a,i,o,l,s,u,f,c,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),nt?He(t,p):t;if(s=e.d,c=t.d,r=t.e,u=e.e,s=s.slice(),o=u-r,o){for(f=o<0,f?(n=s,o=-o,l=c.length):(n=c,r=u,l=s.length),a=Math.max(Math.ceil(p/We),l)+2,o>a&&(o=a,n.length=1),n.reverse(),a=o;a--;)n.push(0);n.reverse()}else{for(a=s.length,l=c.length,f=a<l,f&&(l=a),a=0;a<l;a++)if(s[a]!=c[a]){f=s[a]<c[a];break}o=0}for(f&&(n=s,s=c,c=n,t.s=-t.s),l=s.length,a=c.length-l;a>0;--a)s[l++]=0;for(a=c.length;a>o;){if(s[--a]<c[a]){for(i=a;i&&s[--i]===0;)s[i]=_t-1;--s[i],s[a]+=_t}s[a]-=c[a]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,nt?He(t,p):t):new h(0)}function uo(e,t,n){var r,a=mt(e),i=jr(e.d),o=i.length;return t?(n&&(r=n-o)>0?i=i.charAt(0)+"."+i.slice(1)+_a(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+_a(-a-1)+i,n&&(r=n-o)>0&&(i+=_a(r))):a>=o?(i+=_a(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+_a(r))):((r=a+1)<o&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-o)>0&&(a+1===o&&(i+="."),i+=_a(r))),e.s<0?"-"+i:i}function Mj(e,t){if(e.length>t)return e.length=t,!0}function rP(e){var t,n,r;function a(i){var o=this;if(!(o instanceof a))return new a(i);if(o.constructor=a,i instanceof a){o.s=i.s,o.e=i.e,o.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Wi+i);if(i>0)o.s=1;else if(i<0)i=-i,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(i===~~i&&i<1e7){o.e=0,o.d=[i];return}return Nj(o,i.toString())}else if(typeof i!="string")throw Error(Wi+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,iee.test(i))Nj(o,i);else throw Error(Wi+i)}if(a.prototype=Z,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=rP,a.config=a.set=oee,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function oee(e){if(!e||typeof e!="object")throw Error(Jn+"Object expected");var t,n,r,a=["precision",1,Ps,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(Rs(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Wi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Wi+n+": "+r);return this}var Zx=rP(aee);jn=new Zx(1);const Be=Zx;function lee(e){return fee(e)||cee(e)||uee(e)||see()}function see(){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 uee(e,t){if(e){if(typeof e=="string")return Ig(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ig(e,t)}}function cee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function fee(e){if(Array.isArray(e))return Ig(e)}function Ig(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var dee=function(t){return t},aP={},iP=function(t){return t===aP},Pj=function(t){return function n(){return arguments.length===0||arguments.length===1&&iP(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},hee=function e(t,n){return t===1?n:Pj(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var o=a.filter(function(l){return l!==aP}).length;return o>=t?n.apply(void 0,a):e(t-o,Pj(function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var f=a.map(function(c){return iP(c)?s.shift():c});return n.apply(void 0,lee(f).concat(s))}))})},Wp=function(t){return hee(t.length,t)},Ug=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},pee=Wp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),yee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return dee;var a=n.reverse(),i=a[0],o=a.slice(1);return function(){return o.reduce(function(l,s){return s(l)},i.apply(void 0,arguments))}},Hg=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},oP=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n&&i.every(function(l,s){return l===n[s]})||(n=i,r=t.apply(void 0,i)),r}};function mee(e){var t;return e===0?t=1:t=Math.floor(new Be(e).abs().log(10).toNumber())+1,t}function vee(e,t,n){for(var r=new Be(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var gee=Wp(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),bee=Wp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),xee=Wp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Zp={rangeStep:vee,getDigitCount:mee,interpolateNumber:gee,uninterpolateNumber:bee,uninterpolateTruncation:xee};function qg(e){return Oee(e)||wee(e)||lP(e)||See()}function See(){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 wee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Oee(e){if(Array.isArray(e))return Fg(e)}function ic(e,t){return Eee(e)||Aee(e,t)||lP(e,t)||jee()}function jee(){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 lP(e,t){if(e){if(typeof e=="string")return Fg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fg(e,t)}}function Fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Aee(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(s){a=!0,i=s}finally{try{!r&&o.return!=null&&o.return()}finally{if(a)throw i}}return n}}function Eee(e){if(Array.isArray(e))return e}function sP(e){var t=ic(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function uP(e,t,n){if(e.lte(0))return new Be(0);var r=Zp.getDigitCount(e.toNumber()),a=new Be(10).pow(r),i=e.div(a),o=r!==1?.05:.1,l=new Be(Math.ceil(i.div(o).toNumber())).add(n).mul(o),s=l.mul(a);return t?s:new Be(Math.ceil(s))}function _ee(e,t,n){var r=1,a=new Be(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Be(10).pow(Zp.getDigitCount(e)-1),a=new Be(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Be(Math.floor(e)))}else e===0?a=new Be(Math.floor((t-1)/2)):n||(a=new Be(Math.floor(e)));var o=Math.floor((t-1)/2),l=yee(pee(function(s){return a.add(new Be(s-o).mul(r)).toNumber()}),Ug);return l(0,t)}function cP(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Be(0),tickMin:new Be(0),tickMax:new Be(0)};var i=uP(new Be(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new Be(0):(o=new Be(e).add(t).div(2),o=o.sub(new Be(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),s=Math.ceil(new Be(t).sub(o).div(i).toNumber()),u=l+s+1;return u>n?cP(e,t,n,r,a+1):(u<n&&(s=t>0?s+(n-u):s,l=t>0?l:l+(n-u)),{step:i,tickMin:o.sub(new Be(l).mul(i)),tickMax:o.add(new Be(s).mul(i))})}function Tee(e){var t=ic(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(a,2),l=sP([n,r]),s=ic(l,2),u=s[0],f=s[1];if(u===-1/0||f===1/0){var c=f===1/0?[u].concat(qg(Ug(0,a-1).map(function(){return 1/0}))):[].concat(qg(Ug(0,a-1).map(function(){return-1/0})),[f]);return n>r?Hg(c):c}if(u===f)return _ee(u,a,i);var h=cP(u,f,o,i),p=h.step,b=h.tickMin,v=h.tickMax,g=Zp.rangeStep(b,v.add(new Be(.1).mul(p)),p);return n>r?Hg(g):g}function Cee(e,t){var n=ic(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=sP([r,a]),l=ic(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[r,a];if(s===u)return[s];var f=Math.max(t,2),c=uP(new Be(u).sub(s).div(f-1),i,0),h=[].concat(qg(Zp.rangeStep(new Be(s),new Be(u).sub(new Be(.99).mul(c)),c)),[u]);return r>a?Hg(h):h}var Nee=oP(Tee),Mee=oP(Cee),Pee="Invariant failed";function co(e,t){throw new Error(Pee)}var Ree=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];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 vh(){return vh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vh.apply(this,arguments)}function $ee(e,t){return zee(e)||Lee(e,t)||kee(e,t)||Dee()}function Dee(){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 kee(e,t){if(e){if(typeof e=="string")return Rj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rj(e,t)}}function Rj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Lee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function zee(e){if(Array.isArray(e))return e}function Bee(e,t){if(e==null)return{};var n=Iee(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Iee(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Uee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hP(r.key),r)}}function qee(e,t,n){return t&&Hee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fee(e,t,n){return t=gh(t),Gee(e,fP()?Reflect.construct(t,n||[],gh(e).constructor):t.apply(e,n))}function Gee(e,t){if(t&&(Yl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yee(e)}function Yee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fP=function(){return!!e})()}function gh(e){return gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gh(e)}function Kee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gg(e,t)}function Gg(e,t){return Gg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Gg(e,t)}function dP(e,t,n){return t=hP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hP(e){var t=Vee(e,"string");return Yl(t)=="symbol"?t:t+""}function Vee(e,t){if(Yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Jp=function(e){function t(){return Uee(this,t),Fee(this,t,arguments)}return Kee(t,e),qee(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,o=r.width,l=r.dataKey,s=r.data,u=r.dataPointFormatter,f=r.xAxis,c=r.yAxis,h=Bee(r,Ree),p=oe(h,!1);this.props.direction==="x"&&f.type!=="number"&&co();var b=s.map(function(v){var g=u(v,l),y=g.x,m=g.y,x=g.value,S=g.errorVal;if(!S)return null;var w=[],O,A;if(Array.isArray(S)){var _=$ee(S,2);O=_[0],A=_[1]}else O=A=S;if(i==="vertical"){var T=f.scale,M=m+a,L=M+o,E=M-o,N=T(x-O),k=T(x+A);w.push({x1:k,y1:L,x2:k,y2:E}),w.push({x1:N,y1:M,x2:k,y2:M}),w.push({x1:N,y1:L,x2:N,y2:E})}else if(i==="horizontal"){var P=c.scale,$=y+a,z=$-o,B=$+o,q=P(x-O),F=P(x+A);w.push({x1:z,y1:F,x2:B,y2:F}),w.push({x1:$,y1:q,x2:$,y2:F}),w.push({x1:z,y1:q,x2:B,y2:q})}return D.createElement($e,vh({className:"recharts-errorBar",key:"bar-".concat(w.map(function(Q){return"".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))},p),w.map(function(Q){return D.createElement("line",vh({},Q,{key:"line-".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))}))});return D.createElement($e,{className:"recharts-errorBars"},b)}}])}(D.Component);dP(Jp,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});dP(Jp,"displayName","ErrorBar");function oc(e){"@babel/helpers - typeof";return oc=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},oc(e)}function $j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$j(Object(n),!0).forEach(function(r){Xee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$j(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xee(e,t,n){return t=Qee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qee(e){var t=Wee(e,"string");return oc(t)=="symbol"?t:t+""}function Wee(e,t){if(oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pP=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=bn(n,ul);if(!o)return null;var l=ul.defaultProps,s=l!==void 0?gi(gi({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(r||[]).reduce(function(f,c){var h=c.item,p=c.props,b=p.sectors||p.data||[];return f.concat(b.map(function(v){return{type:o.props.iconType||h.props.legendType,value:v.name,color:v.fill,payload:v}}))},[]):u=(r||[]).map(function(f){var c=f.item,h=c.type.defaultProps,p=h!==void 0?gi(gi({},h),c.props):{},b=p.dataKey,v=p.name,g=p.legendType,y=p.hide;return{inactive:y,dataKey:b,type:s.iconType||g||"square",color:Jx(c),value:v||b,payload:p}}),gi(gi(gi({},s),ul.getWithHeight(o,a)),{},{payload:u,item:o})};function lc(e){"@babel/helpers - typeof";return lc=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},lc(e)}function Dj(e){return tte(e)||ete(e)||Jee(e)||Zee()}function Zee(){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 Jee(e,t){if(e){if(typeof e=="string")return Yg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yg(e,t)}}function ete(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function tte(e){if(Array.isArray(e))return Yg(e)}function Yg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kj(Object(n),!0).forEach(function(r){fl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fl(e,t,n){return t=nte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nte(e){var t=rte(e,"string");return lc(t)=="symbol"?t:t+""}function rte(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Yt(e,t,n){return ve(e)||ve(t)?n:wt(t)?Nn(e,t,n):ue(t)?t(e):n}function Ou(e,t,n,r){var a=eee(e,function(l){return Yt(l,t)});if(n==="number"){var i=a.filter(function(l){return K(l)||parseFloat(l)});return i.length?[Xp(i),Vp(i)]:[1/0,-1/0]}var o=r?a.filter(function(l){return!ve(l)}):a;return o.map(function(l){return wt(l)||l instanceof Date?l:""})}var ate=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var s=i.range,u=0;u<l;u++){var f=u>0?a[u-1].coordinate:a[l-1].coordinate,c=a[u].coordinate,h=u>=l-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(Zt(c-f)!==Zt(h-c)){var b=[];if(Zt(h-c)===Zt(s[1]-s[0])){p=h;var v=c+s[1]-s[0];b[0]=Math.min(v,(v+f)/2),b[1]=Math.max(v,(v+f)/2)}else{p=f;var g=h+s[1]-s[0];b[0]=Math.min(c,(g+c)/2),b[1]=Math.max(c,(g+c)/2)}var y=[Math.min(c,(p+c)/2),Math.max(c,(p+c)/2)];if(t>y[0]&&t<=y[1]||t>=b[0]&&t<=b[1]){o=a[u].index;break}}else{var m=Math.min(f,h),x=Math.max(f,h);if(t>(m+c)/2&&t<=(x+c)/2){o=a[u].index;break}}}else for(var S=0;S<l;S++)if(S===0&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S>0&&S<l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2&&t<=(r[S].coordinate+r[S+1].coordinate)/2||S===l-1&&t>(r[S].coordinate+r[S-1].coordinate)/2){o=r[S].index;break}return o},Jx=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,o=i.stroke,l=i.fill,s;switch(a){case"Line":s=o;break;case"Area":case"Radar":s=o&&o!=="none"?o:l;break;default:s=l;break}return s},ite=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var o={},l=Object.keys(i),s=0,u=l.length;s<u;s++)for(var f=i[l[s]].stackGroups,c=Object.keys(f),h=0,p=c.length;h<p;h++){var b=f[c[h]],v=b.items,g=b.cateAxisId,y=v.filter(function(A){return ra(A.type).indexOf("Bar")>=0});if(y&&y.length){var m=y[0].type.defaultProps,x=m!==void 0?ot(ot({},m),y[0].props):y[0].props,S=x.barSize,w=x[g];o[w]||(o[w]=[]);var O=ve(S)?n:S;o[w].push({item:y[0],stackList:y.slice(1),barSize:ve(O)?void 0:Jt(O,r,0)})}}return o},ote=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,o=i===void 0?[]:i,l=t.maxBarSize,s=o.length;if(s<1)return null;var u=Jt(n,a,0,!0),f,c=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=a/s,b=o.reduce(function(S,w){return S+w.barSize||0},0);b+=(s-1)*u,b>=a&&(b-=(s-1)*u,u=0),b>=a&&p>0&&(h=!0,p*=.9,b=s*p);var v=(a-b)/2>>0,g={offset:v-u,size:0};f=o.reduce(function(S,w){var O={item:w.item,position:{offset:g.offset+g.size+u,size:h?p:w.barSize}},A=[].concat(Dj(S),[O]);return g=A[A.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){A.push({item:_,position:g})}),A},c)}else{var y=Jt(r,a,0,!0);a-2*y-(s-1)*u<=0&&(u=0);var m=(a-2*y-(s-1)*u)/s;m>1&&(m>>=0);var x=l===+l?Math.min(m,l):m;f=o.reduce(function(S,w,O){var A=[].concat(Dj(S),[{item:w.item,position:{offset:y+(m+u)*O+(m-x)/2,size:x}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){A.push({item:_,position:A[A.length-1].position})}),A},c)}return f},lte=function(t,n,r,a){var i=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=pP({children:i,legendWidth:s});if(u){var f=a||{},c=f.width,h=f.height,p=u.align,b=u.verticalAlign,v=u.layout;if((v==="vertical"||v==="horizontal"&&b==="middle")&&p!=="center"&&K(t[p]))return ot(ot({},t),{},fl({},p,t[p]+(c||0)));if((v==="horizontal"||v==="vertical"&&p==="center")&&b!=="middle"&&K(t[b]))return ot(ot({},t),{},fl({},b,t[b]+(h||0)))}return t},ste=function(t,n,r){return ve(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},yP=function(t,n,r,a,i){var o=n.props.children,l=Wn(o,Jp).filter(function(u){return ste(a,i,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,f){var c=Yt(f,r);if(ve(c))return u;var h=Array.isArray(c)?[Xp(c),Vp(c)]:[c,c],p=s.reduce(function(b,v){var g=Yt(f,v,0),y=h[0]-Math.abs(Array.isArray(g)?g[0]:g),m=h[1]+Math.abs(Array.isArray(g)?g[1]:g);return[Math.min(y,b[0]),Math.max(m,b[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},ute=function(t,n,r,a,i){var o=n.map(function(l){return yP(t,l,r,i,a)}).filter(function(l){return!ve(l)});return o&&o.length?o.reduce(function(l,s){return[Math.min(l[0],s[0]),Math.max(l[1],s[1])]},[1/0,-1/0]):null},mP=function(t,n,r,a,i){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&yP(t,s,u,a)||Ou(t,u,r,i)});if(r==="number")return o.reduce(function(s,u){return[Math.min(s[0],u[0]),Math.max(s[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(s,u){for(var f=0,c=u.length;f<c;f++)l[u[f]]||(l[u[f]]=!0,s.push(u[f]));return s},[])},vP=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},$i=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,o=t.type,l=t.range,s=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,u=(n||r)&&o==="category"&&a.bandwidth?a.bandwidth()/s:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Zt(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(c){var h=i?i.indexOf(c):c;return{coordinate:a(h)+u,value:c,offset:u}});return f.filter(function(c){return!Wc(c.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(c,h){return{coordinate:a(c)+u,value:c,index:h,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(c){return{coordinate:a(c)+u,value:c,offset:u}}):a.domain().map(function(c,h){return{coordinate:a(c)+u,value:i?i[c]:c,index:h,offset:u}})},_m=new WeakMap,Rf=function(t,n){if(typeof n!="function")return t;_m.has(t)||_m.set(t,new WeakMap);var r=_m.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},gP=function(t,n,r){var a=t.scale,i=t.type,o=t.layout,l=t.axisType;if(a==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Ju(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:dh(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:wu(),realScaleType:"point"}:i==="category"?{scale:Ju(),realScaleType:"band"}:{scale:dh(),realScaleType:"linear"};if(oo(a)){var s="scale".concat(Rp(a));return{scale:(Cj[s]||wu)(),realScaleType:Cj[s]?s:"point"}}return ue(a)?{scale:a}:{scale:wu(),realScaleType:"point"}},Lj=1e-4,bP=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-Lj,o=Math.max(a[0],a[1])+Lj,l=t(n[0]),s=t(n[r-1]);(l<i||l>o||s<i||s>o)&&t.domain([n[0],n[r-1]])}},cte=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},fte=function(t,n){if(!n||n.length!==2||!K(n[0])||!K(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!K(t[0])||t[0]<r)&&(i[0]=r),(!K(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},dte=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0,l=0;l<n;++l){var s=Wc(t[l][r][1])?t[l][r][0]:t[l][r][1];s>=0?(t[l][r][0]=i,t[l][r][1]=i+s,i=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+s,o=t[l][r][1])}},hte=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,o=0;o<n;++o){var l=Wc(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=i,t[o][r][1]=i+l,i=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},pte={sign:dte,expand:P9,none:zl,silhouette:R9,wiggle:$9,positive:hte},yte=function(t,n,r){var a=n.map(function(l){return l.props.dataKey}),i=pte[r],o=M9().keys(a).value(function(l,s){return+Yt(l,s,0)}).order(vg).offset(i);return o(t)},mte=function(t,n,r,a,i,o){if(!t)return null;var l=o?n.reverse():n,s={},u=l.reduce(function(c,h){var p,b=(p=h.type)!==null&&p!==void 0&&p.defaultProps?ot(ot({},h.type.defaultProps),h.props):h.props,v=b.stackId,g=b.hide;if(g)return c;var y=b[r],m=c[y]||{hasStack:!1,stackGroups:{}};if(wt(v)){var x=m.stackGroups[v]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),m.hasStack=!0,m.stackGroups[v]=x}else m.stackGroups[Zc("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return ot(ot({},c),{},fl({},y,m))},s),f={};return Object.keys(u).reduce(function(c,h){var p=u[h];if(p.hasStack){var b={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(v,g){var y=p.stackGroups[g];return ot(ot({},v),{},fl({},g,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:yte(t,y.items,i)}))},b)}return ot(ot({},c),{},fl({},h,p))},f)},xP=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,o=n.originalDomain,l=n.allowDecimals,s=r||n.scale;if(s!=="auto"&&s!=="linear")return null;if(i&&a==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var f=Nee(u,i,l);return t.domain([Xp(f),Vp(f)]),{niceTicks:f}}if(i&&a==="number"){var c=t.domain(),h=Mee(c,i,l);return{niceTicks:h}}return null},zj=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+a:null;var s=Yt(o,n.dataKey,n.domain[l]);return ve(s)?null:n.scale(s)-i/2+a},vte=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},gte=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(wt(i)){var o=n[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},bte=function(t){return t.reduce(function(n,r){return[Xp(r.concat([n[0]]).filter(K)),Vp(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},SP=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,s=l.reduce(function(u,f){var c=bte(f.slice(n,r+1));return[Math.min(u[0],c[0]),Math.max(u[1],c[1])]},[1/0,-1/0]);return[Math.min(s[0],a[0]),Math.max(s[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},Bj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ij=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Kg=function(t,n,r){if(ue(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(K(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(Bj.test(t[0])){var i=+Bj.exec(t[0])[1];a[0]=n[0]-i}else ue(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(K(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(Ij.test(t[1])){var o=+Ij.exec(t[1])[1];a[1]=n[1]+o}else ue(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},bh=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=_x(n,function(c){return c.coordinate}),o=1/0,l=1,s=i.length;l<s;l++){var u=i[l],f=i[l-1];o=Math.min((u.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},Uj=function(t,n,r){return!t||!t.length||Qp(t,Nn(r,"type.defaultProps.domain"))?n:t},wP=function(t,n){var r=t.type.defaultProps?ot(ot({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,o=r.unit,l=r.formatter,s=r.tooltipType,u=r.chartType,f=r.hide;return ot(ot({},oe(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:Jx(t),value:Yt(n,a),type:s,payload:n,chartType:u,hide:f})};function sc(e){"@babel/helpers - typeof";return sc=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},sc(e)}function Hj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Hj(Object(n),!0).forEach(function(r){OP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Hj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OP(e,t,n){return t=xte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xte(e){var t=Ste(e,"string");return sc(t)=="symbol"?t:t+""}function Ste(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wte(e,t){return Ete(e)||Ate(e,t)||jte(e,t)||Ote()}function Ote(){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 jte(e,t){if(e){if(typeof e=="string")return qj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qj(e,t)}}function qj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ate(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Ete(e){if(Array.isArray(e))return e}var xh=Math.PI/180,_te=function(t){return t*180/Math.PI},Ke=function(t,n,r,a){return{x:t+Math.cos(-xh*a)*r,y:n+Math.sin(-xh*a)*r}},jP=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Tte=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,f=Jt(t.cx,o,o/2),c=Jt(t.cy,l,l/2),h=jP(o,l,r),p=Jt(t.innerRadius,h,0),b=Jt(t.outerRadius,h,h*.8),v=Object.keys(n);return v.reduce(function(g,y){var m=n[y],x=m.domain,S=m.reversed,w;if(ve(m.range))a==="angleAxis"?w=[s,u]:a==="radiusAxis"&&(w=[p,b]),S&&(w=[w[1],w[0]]);else{w=m.range;var O=w,A=wte(O,2);s=A[0],u=A[1]}var _=gP(m,i),T=_.realScaleType,M=_.scale;M.domain(x).range(w),bP(M);var L=xP(M,Hr(Hr({},m),{},{realScaleType:T})),E=Hr(Hr(Hr({},m),L),{},{range:w,radius:b,realScaleType:T,scale:M,cx:f,cy:c,innerRadius:p,outerRadius:b,startAngle:s,endAngle:u});return Hr(Hr({},g),{},OP({},y,E))},{})},Cte=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-o,2))},Nte=function(t,n){var r=t.x,a=t.y,i=n.cx,o=n.cy,l=Cte({x:r,y:a},{x:i,y:o});if(l<=0)return{radius:l};var s=(r-i)/l,u=Math.acos(s);return a>o&&(u=2*Math.PI-u),{radius:l,angle:_te(u),angleInRadian:u}},Mte=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),o=Math.min(a,i);return{startAngle:n-o*360,endAngle:r-o*360}},Pte=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),o=Math.floor(a/360),l=Math.min(i,o);return t+l*360},Fj=function(t,n){var r=t.x,a=t.y,i=Nte({x:r,y:a},n),o=i.radius,l=i.angle,s=n.innerRadius,u=n.outerRadius;if(o<s||o>u)return!1;if(o===0)return!0;var f=Mte(n),c=f.startAngle,h=f.endAngle,p=l,b;if(c<=h){for(;p>h;)p-=360;for(;p<c;)p+=360;b=p>=c&&p<=h}else{for(;p>c;)p-=360;for(;p<h;)p+=360;b=p>=h&&p<=c}return b?Hr(Hr({},n),{},{radius:o,angle:Pte(p,n)}):null},AP=function(t){return!j.isValidElement(t)&&!ue(t)&&typeof t!="boolean"?t.className:""};function uc(e){"@babel/helpers - typeof";return uc=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},uc(e)}var Rte=["offset"];function $te(e){return zte(e)||Lte(e)||kte(e)||Dte()}function Dte(){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 kte(e,t){if(e){if(typeof e=="string")return Vg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vg(e,t)}}function Lte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zte(e){if(Array.isArray(e))return Vg(e)}function Vg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bte(e,t){if(e==null)return{};var n=Ite(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ite(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Gj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Gj(Object(n),!0).forEach(function(r){Ute(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ute(e,t,n){return t=Hte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hte(e){var t=qte(e,"string");return uc(t)=="symbol"?t:t+""}function qte(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cc(){return cc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cc.apply(this,arguments)}var Fte=function(t){var n=t.value,r=t.formatter,a=ve(t.children)?n:t.children;return ue(r)?r(a):a},Gte=function(t,n){var r=Zt(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Yte=function(t,n,r){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,s=i,u=s.cx,f=s.cy,c=s.innerRadius,h=s.outerRadius,p=s.startAngle,b=s.endAngle,v=s.clockWise,g=(c+h)/2,y=Gte(p,b),m=y>=0?1:-1,x,S;a==="insideStart"?(x=p+m*o,S=v):a==="insideEnd"?(x=b-m*o,S=!v):a==="end"&&(x=b+m*o,S=v),S=y<=0?S:!S;var w=Ke(u,f,g,x),O=Ke(u,f,g,x+(S?1:-1)*359),A="M".concat(w.x,",").concat(w.y,`
    A`).concat(g,",").concat(g,",0,1,").concat(S?0:1,`,
    `).concat(O.x,",").concat(O.y),_=ve(t.id)?Zc("recharts-radial-line-"):t.id;return D.createElement("text",cc({},r,{dominantBaseline:"central",className:me("recharts-radial-bar-label",l)}),D.createElement("defs",null,D.createElement("path",{id:_,d:A})),D.createElement("textPath",{xlinkHref:"#".concat(_)},n))},Kte=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,o=i.cx,l=i.cy,s=i.innerRadius,u=i.outerRadius,f=i.startAngle,c=i.endAngle,h=(f+c)/2;if(a==="outside"){var p=Ke(o,l,u+r,h),b=p.x,v=p.y;return{x:b,y:v,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var g=(s+u)/2,y=Ke(o,l,g,h),m=y.x,x=y.y;return{x:m,y:x,textAnchor:"middle",verticalAnchor:"middle"}},Vte=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,o=n,l=o.x,s=o.y,u=o.width,f=o.height,c=f>=0?1:-1,h=c*a,p=c>0?"end":"start",b=c>0?"start":"end",v=u>=0?1:-1,g=v*a,y=v>0?"end":"start",m=v>0?"start":"end";if(i==="top"){var x={x:l+u/2,y:s-c*a,textAnchor:"middle",verticalAnchor:p};return bt(bt({},x),r?{height:Math.max(s-r.y,0),width:u}:{})}if(i==="bottom"){var S={x:l+u/2,y:s+f+h,textAnchor:"middle",verticalAnchor:b};return bt(bt({},S),r?{height:Math.max(r.y+r.height-(s+f),0),width:u}:{})}if(i==="left"){var w={x:l-g,y:s+f/2,textAnchor:y,verticalAnchor:"middle"};return bt(bt({},w),r?{width:Math.max(w.x-r.x,0),height:f}:{})}if(i==="right"){var O={x:l+u+g,y:s+f/2,textAnchor:m,verticalAnchor:"middle"};return bt(bt({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:f}:{})}var A=r?{width:u,height:f}:{};return i==="insideLeft"?bt({x:l+g,y:s+f/2,textAnchor:m,verticalAnchor:"middle"},A):i==="insideRight"?bt({x:l+u-g,y:s+f/2,textAnchor:y,verticalAnchor:"middle"},A):i==="insideTop"?bt({x:l+u/2,y:s+h,textAnchor:"middle",verticalAnchor:b},A):i==="insideBottom"?bt({x:l+u/2,y:s+f-h,textAnchor:"middle",verticalAnchor:p},A):i==="insideTopLeft"?bt({x:l+g,y:s+h,textAnchor:m,verticalAnchor:b},A):i==="insideTopRight"?bt({x:l+u-g,y:s+h,textAnchor:y,verticalAnchor:b},A):i==="insideBottomLeft"?bt({x:l+g,y:s+f-h,textAnchor:m,verticalAnchor:p},A):i==="insideBottomRight"?bt({x:l+u-g,y:s+f-h,textAnchor:y,verticalAnchor:p},A):Os(i)&&(K(i.x)||Mi(i.x))&&(K(i.y)||Mi(i.y))?bt({x:l+Jt(i.x,u),y:s+Jt(i.y,f),textAnchor:"end",verticalAnchor:"end"},A):bt({x:l+u/2,y:s+f/2,textAnchor:"middle",verticalAnchor:"middle"},A)},Xte=function(t){return"cx"in t&&K(t.cx)};function Nt(e){var t=e.offset,n=t===void 0?5:t,r=Bte(e,Rte),a=bt({offset:n},r),i=a.viewBox,o=a.position,l=a.value,s=a.children,u=a.content,f=a.className,c=f===void 0?"":f,h=a.textBreakAll;if(!i||ve(l)&&ve(s)&&!j.isValidElement(u)&&!ue(u))return null;if(j.isValidElement(u))return j.cloneElement(u,a);var p;if(ue(u)){if(p=j.createElement(u,a),j.isValidElement(p))return p}else p=Fte(a);var b=Xte(i),v=oe(a,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return Yte(a,p,v);var g=b?Kte(a):Vte(a);return D.createElement(so,cc({className:me("recharts-label",c)},v,g,{breakAll:h}),p)}Nt.displayName="Label";var EP=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,o=t.endAngle,l=t.r,s=t.radius,u=t.innerRadius,f=t.outerRadius,c=t.x,h=t.y,p=t.top,b=t.left,v=t.width,g=t.height,y=t.clockWise,m=t.labelViewBox;if(m)return m;if(K(v)&&K(g)){if(K(c)&&K(h))return{x:c,y:h,width:v,height:g};if(K(p)&&K(b))return{x:p,y:b,width:v,height:g}}return K(c)&&K(h)?{x:c,y:h,width:0,height:0}:K(n)&&K(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:o||a||0,innerRadius:u||0,outerRadius:f||s||l||0,clockWise:y}:t.viewBox?t.viewBox:{}},Qte=function(t,n){return t?t===!0?D.createElement(Nt,{key:"label-implicit",viewBox:n}):wt(t)?D.createElement(Nt,{key:"label-implicit",viewBox:n,value:t}):j.isValidElement(t)?t.type===Nt?j.cloneElement(t,{key:"label-implicit",viewBox:n}):D.createElement(Nt,{key:"label-implicit",content:t,viewBox:n}):ue(t)?D.createElement(Nt,{key:"label-implicit",content:t,viewBox:n}):Os(t)?D.createElement(Nt,cc({viewBox:n},t,{key:"label-implicit"})):null:null},Wte=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,i=EP(t),o=Wn(a,Nt).map(function(s,u){return j.cloneElement(s,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var l=Qte(t.label,n||i);return[l].concat($te(o))};Nt.parseViewBox=EP;Nt.renderCallByParent=Wte;function Zte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Jte=Zte;const ene=Ue(Jte);function fc(e){"@babel/helpers - typeof";return fc=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},fc(e)}var tne=["valueAccessor"],nne=["data","dataKey","clockWise","id","textBreakAll"];function rne(e){return lne(e)||one(e)||ine(e)||ane()}function ane(){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 ine(e,t){if(e){if(typeof e=="string")return Xg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xg(e,t)}}function one(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lne(e){if(Array.isArray(e))return Xg(e)}function Xg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Sh(){return Sh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sh.apply(this,arguments)}function Yj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yj(Object(n),!0).forEach(function(r){sne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sne(e,t,n){return t=une(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function une(e){var t=cne(e,"string");return fc(t)=="symbol"?t:t+""}function cne(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vj(e,t){if(e==null)return{};var n=fne(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var dne=function(t){return Array.isArray(t.value)?ene(t.value):t.value};function ai(e){var t=e.valueAccessor,n=t===void 0?dne:t,r=Vj(e,tne),a=r.data,i=r.dataKey,o=r.clockWise,l=r.id,s=r.textBreakAll,u=Vj(r,nne);return!a||!a.length?null:D.createElement($e,{className:"recharts-label-list"},a.map(function(f,c){var h=ve(i)?n(f,c):Yt(f&&f.payload,i),p=ve(l)?{}:{id:"".concat(l,"-").concat(c)};return D.createElement(Nt,Sh({},oe(f,!0),u,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:s,viewBox:Nt.parseViewBox(ve(o)?f:Kj(Kj({},f),{},{clockWise:o})),key:"label-".concat(c),index:c}))}))}ai.displayName="LabelList";function hne(e,t){return e?e===!0?D.createElement(ai,{key:"labelList-implicit",data:t}):D.isValidElement(e)||ue(e)?D.createElement(ai,{key:"labelList-implicit",data:t,content:e}):Os(e)?D.createElement(ai,Sh({data:t},e,{key:"labelList-implicit"})):null:null}function pne(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=Wn(r,ai).map(function(o,l){return j.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return a;var i=hne(e.label,t);return[i].concat(rne(a))}ai.renderCallByParent=pne;function dc(e){"@babel/helpers - typeof";return dc=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},dc(e)}function Qg(){return Qg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qg.apply(this,arguments)}function Xj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Qj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Xj(Object(n),!0).forEach(function(r){yne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yne(e,t,n){return t=mne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mne(e){var t=vne(e,"string");return dc(t)=="symbol"?t:t+""}function vne(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gne=function(t,n){var r=Zt(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},$f=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,o=t.sign,l=t.isExternal,s=t.cornerRadius,u=t.cornerIsExternal,f=s*(l?1:-1)+a,c=Math.asin(s/f)/xh,h=u?i:i+o*c,p=Ke(n,r,f,h),b=Ke(n,r,a,h),v=u?i-o*c:i,g=Ke(n,r,f*Math.cos(c*xh),v);return{center:p,circleTangency:b,lineTangency:g,theta:c}},_P=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,s=gne(o,l),u=o+s,f=Ke(n,r,i,o),c=Ke(n,r,i,u),h="M ".concat(f.x,",").concat(f.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(o>u),`,
    `).concat(c.x,",").concat(c.y,`
  `);if(a>0){var p=Ke(n,r,a,o),b=Ke(n,r,a,u);h+="L ".concat(b.x,",").concat(b.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(s)>180),",").concat(+(o<=u),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},bne=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,s=t.cornerIsExternal,u=t.startAngle,f=t.endAngle,c=Zt(f-u),h=$f({cx:n,cy:r,radius:i,angle:u,sign:c,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,b=h.lineTangency,v=h.theta,g=$f({cx:n,cy:r,radius:i,angle:f,sign:-c,cornerRadius:o,cornerIsExternal:s}),y=g.circleTangency,m=g.lineTangency,x=g.theta,S=s?Math.abs(u-f):Math.abs(u-f)-v-x;if(S<0)return l?"M ".concat(b.x,",").concat(b.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
      `):_P({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:f});var w="M ".concat(b.x,",").concat(b.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(S>180),",").concat(+(c<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(m.x,",").concat(m.y,`
  `);if(a>0){var O=$f({cx:n,cy:r,radius:a,angle:u,sign:c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),A=O.circleTangency,_=O.lineTangency,T=O.theta,M=$f({cx:n,cy:r,radius:a,angle:f,sign:-c,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),L=M.circleTangency,E=M.lineTangency,N=M.theta,k=s?Math.abs(u-f):Math.abs(u-f)-T-N;if(k<0&&o===0)return"".concat(w,"L").concat(n,",").concat(r,"Z");w+="L".concat(E.x,",").concat(E.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(L.x,",").concat(L.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(k>180),",").concat(+(c>0),",").concat(A.x,",").concat(A.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(c<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(n,",").concat(r,"Z");return w},xne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},TP=function(t){var n=Qj(Qj({},xne),t),r=n.cx,a=n.cy,i=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,f=n.startAngle,c=n.endAngle,h=n.className;if(o<i||f===c)return null;var p=me("recharts-sector",h),b=o-i,v=Jt(l,b,0,!0),g;return v>0&&Math.abs(f-c)<360?g=bne({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(v,b/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:f,endAngle:c}):g=_P({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:f,endAngle:c}),D.createElement("path",Qg({},oe(n,!0),{className:p,d:g,role:"img"}))};function hc(e){"@babel/helpers - typeof";return hc=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},hc(e)}function Wg(){return Wg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wg.apply(this,arguments)}function Wj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Zj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wj(Object(n),!0).forEach(function(r){Sne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sne(e,t,n){return t=wne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wne(e){var t=One(e,"string");return hc(t)=="symbol"?t:t+""}function One(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jj={curveBasisClosed:x9,curveBasisOpen:S9,curveBasis:b9,curveBumpX:i9,curveBumpY:o9,curveLinearClosed:w9,curveLinear:Dp,curveMonotoneX:O9,curveMonotoneY:j9,curveNatural:A9,curveStep:E9,curveStepAfter:T9,curveStepBefore:_9},Df=function(t){return t.x===+t.x&&t.y===+t.y},Qs=function(t){return t.x},Ws=function(t){return t.y},jne=function(t,n){if(ue(t))return t;var r="curve".concat(Rp(t));return(r==="curveMonotone"||r==="curveBump")&&n?Jj["".concat(r).concat(n==="vertical"?"Y":"X")]:Jj[r]||Dp},Ane=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,o=t.baseLine,l=t.layout,s=t.connectNulls,u=s===void 0?!1:s,f=jne(r,l),c=u?i.filter(function(v){return Df(v)}):i,h;if(Array.isArray(o)){var p=u?o.filter(function(v){return Df(v)}):o,b=c.map(function(v,g){return Zj(Zj({},v),{},{base:p[g]})});return l==="vertical"?h=Af().y(Ws).x1(Qs).x0(function(v){return v.base.x}):h=Af().x(Qs).y1(Ws).y0(function(v){return v.base.y}),h.defined(Df).curve(f),h(b)}return l==="vertical"&&K(o)?h=Af().y(Ws).x1(Qs).x0(o):K(o)?h=Af().x(Qs).y1(Ws).y0(o):h=AN().x(Qs).y(Ws),h.defined(Df).curve(f),h(c)},Zg=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var o=r&&r.length?Ane(t):a;return j.createElement("path",Wg({},oe(t,!1),Gd(t),{className:me("recharts-curve",n),d:o,ref:i}))},CP={exports:{}},Ene="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_ne=Ene,Tne=_ne;function NP(){}function MP(){}MP.resetWarningCache=NP;var Cne=function(){function e(r,a,i,o,l,s){if(s!==Tne){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:MP,resetWarningCache:NP};return n.PropTypes=n,n};CP.exports=Cne();var Nne=CP.exports;const Ce=Ue(Nne),{getOwnPropertyNames:Mne,getOwnPropertySymbols:Pne}=Object,{hasOwnProperty:Rne}=Object.prototype;function Tm(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function kf(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,o=i.get(n),l=i.get(r);if(o&&l)return o===r&&l===n;i.set(n,r),i.set(r,n);const s=e(n,r,a);return i.delete(n),i.delete(r),s}}function $ne(e){return e!=null?e[Symbol.toStringTag]:void 0}function eA(e){return Mne(e).concat(Pne(e))}const Dne=Object.hasOwn||((e,t)=>Rne.call(e,t));function wo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const kne="__v",Lne="__o",zne="_owner",{getOwnPropertyDescriptor:tA,keys:nA}=Object;function Bne(e,t){return e.byteLength===t.byteLength&&wh(new Uint8Array(e),new Uint8Array(t))}function Ine(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Une(e,t){return e.byteLength===t.byteLength&&wh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Hne(e,t){return wo(e.getTime(),t.getTime())}function qne(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Fne(e,t){return e===t}function rA(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let o,l,s=0;for(;(o=i.next())&&!o.done;){const u=t.entries();let f=!1,c=0;for(;(l=u.next())&&!l.done;){if(a[c]){c++;continue}const h=o.value,p=l.value;if(n.equals(h[0],p[0],s,c,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){f=a[c]=!0;break}c++}if(!f)return!1;s++}return!0}const Gne=wo;function Yne(e,t,n){const r=nA(e);let a=r.length;if(nA(t).length!==a)return!1;for(;a-- >0;)if(!PP(e,t,n,r[a]))return!1;return!0}function Zs(e,t,n){const r=eA(e);let a=r.length;if(eA(t).length!==a)return!1;let i,o,l;for(;a-- >0;)if(i=r[a],!PP(e,t,n,i)||(o=tA(e,i),l=tA(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Kne(e,t){return wo(e.valueOf(),t.valueOf())}function Vne(e,t){return e.source===t.source&&e.flags===t.flags}function aA(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let o,l;for(;(o=i.next())&&!o.done;){const s=t.values();let u=!1,f=0;for(;(l=s.next())&&!l.done;){if(!a[f]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){u=a[f]=!0;break}f++}if(!u)return!1}return!0}function wh(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Xne(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 PP(e,t,n,r){return(r===zne||r===Lne||r===kne)&&(e.$$typeof||t.$$typeof)?!0:Dne(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Qne="[object ArrayBuffer]",Wne="[object Arguments]",Zne="[object Boolean]",Jne="[object DataView]",ere="[object Date]",tre="[object Error]",nre="[object Map]",rre="[object Number]",are="[object Object]",ire="[object RegExp]",ore="[object Set]",lre="[object String]",sre={"[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},ure="[object URL]",cre=Object.prototype.toString;function fre({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:f,areSetsEqual:c,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:b}){return function(g,y,m){if(g===y)return!0;if(g==null||y==null)return!1;const x=typeof g;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?l(g,y,m):x==="function"?i(g,y,m):!1;const S=g.constructor;if(S!==y.constructor)return!1;if(S===Object)return s(g,y,m);if(Array.isArray(g))return t(g,y,m);if(S===Date)return r(g,y,m);if(S===RegExp)return f(g,y,m);if(S===Map)return o(g,y,m);if(S===Set)return c(g,y,m);const w=cre.call(g);if(w===ere)return r(g,y,m);if(w===ire)return f(g,y,m);if(w===nre)return o(g,y,m);if(w===ore)return c(g,y,m);if(w===are)return typeof g.then!="function"&&typeof y.then!="function"&&s(g,y,m);if(w===ure)return p(g,y,m);if(w===tre)return a(g,y,m);if(w===Wne)return s(g,y,m);if(sre[w])return h(g,y,m);if(w===Qne)return e(g,y,m);if(w===Jne)return n(g,y,m);if(w===Zne||w===rre||w===lre)return u(g,y,m);if(b){let O=b[w];if(!O){const A=$ne(g);A&&(O=b[A])}if(O)return O(g,y,m)}return!1}}function dre({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Bne,areArraysEqual:n?Zs:Ine,areDataViewsEqual:Une,areDatesEqual:Hne,areErrorsEqual:qne,areFunctionsEqual:Fne,areMapsEqual:n?Tm(rA,Zs):rA,areNumbersEqual:Gne,areObjectsEqual:n?Zs:Yne,arePrimitiveWrappersEqual:Kne,areRegExpsEqual:Vne,areSetsEqual:n?Tm(aA,Zs):aA,areTypedArraysEqual:n?Tm(wh,Zs):wh,areUrlsEqual:Xne,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=kf(r.areArraysEqual),i=kf(r.areMapsEqual),o=kf(r.areObjectsEqual),l=kf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:l})}return r}function hre(e){return function(t,n,r,a,i,o,l){return e(t,n,l)}}function pre({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(l,s){const{cache:u=e?new WeakMap:void 0,meta:f}=n();return t(l,s,{cache:u,equals:r,meta:f,strict:a})};if(e)return function(l,s){return t(l,s,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(l,s){return t(l,s,i)}}const yre=yi();yi({strict:!0});yi({circular:!0});yi({circular:!0,strict:!0});yi({createInternalComparator:()=>wo});yi({strict:!0,createInternalComparator:()=>wo});yi({circular:!0,createInternalComparator:()=>wo});yi({circular:!0,createInternalComparator:()=>wo,strict:!0});function yi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=dre(e),o=fre(i),l=n?n(o):hre(o);return pre({circular:t,comparator:o,createState:r,equals:l,strict:a})}function mre(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function iA(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):mre(a)};requestAnimationFrame(r)}function Jg(e){"@babel/helpers - typeof";return Jg=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},Jg(e)}function vre(e){return Sre(e)||xre(e)||bre(e)||gre()}function gre(){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 bre(e,t){if(e){if(typeof e=="string")return oA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oA(e,t)}}function oA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sre(e){if(Array.isArray(e))return e}function wre(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var o=i,l=vre(o),s=l[0],u=l.slice(1);if(typeof s=="number"){iA(a.bind(null,u),s);return}a(s),iA(a.bind(null,u));return}Jg(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function pc(e){"@babel/helpers - typeof";return pc=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},pc(e)}function lA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lA(Object(n),!0).forEach(function(r){RP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function RP(e,t,n){return t=Ore(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ore(e){var t=jre(e,"string");return pc(t)==="symbol"?t:String(t)}function jre(e,t){if(pc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Are=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},Ere=function(t){return t},_re=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},ju=function(t,n){return Object.keys(n).reduce(function(r,a){return sA(sA({},r),{},RP({},a,t(a,n[a])))},{})},uA=function(t,n,r){return t.map(function(a){return"".concat(_re(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Tre(e,t){return Mre(e)||Nre(e,t)||$P(e,t)||Cre()}function Cre(){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 Nre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Mre(e){if(Array.isArray(e))return e}function Pre(e){return Dre(e)||$re(e)||$P(e)||Rre()}function Rre(){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 $P(e,t){if(e){if(typeof e=="string")return e0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e0(e,t)}}function $re(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dre(e){if(Array.isArray(e))return e0(e)}function e0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Oh=1e-4,DP=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},kP=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},cA=function(t,n){return function(r){var a=DP(t,n);return kP(a,r)}},kre=function(t,n){return function(r){var a=DP(t,n),i=[].concat(Pre(a.map(function(o,l){return o*l}).slice(1)),[0]);return kP(i,r)}},fA=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],i=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,o=1,l=1;break;case"ease":a=.25,i=.1,o=.25,l=1;break;case"ease-in":a=.42,i=0,o=1,l=1;break;case"ease-out":a=.42,i=0,o=.58,l=1;break;case"ease-in-out":a=0,i=0,o=.58,l=1;break;default:{var s=n[0].split("(");if(s[0]==="cubic-bezier"&&s[1].split(")")[0].split(",").length===4){var u=s[1].split(")")[0].split(",").map(function(g){return parseFloat(g)}),f=Tre(u,4);a=f[0],i=f[1],o=f[2],l=f[3]}}}var c=cA(a,o),h=cA(i,l),p=kre(a,o),b=function(y){return y>1?1:y<0?0:y},v=function(y){for(var m=y>1?1:y,x=m,S=0;S<8;++S){var w=c(x)-m,O=p(x);if(Math.abs(w-m)<Oh||O<Oh)return h(x);x=b(x-w/O)}return h(x)};return v.isStepper=!1,v},Lre=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,o=t.dt,l=o===void 0?17:o,s=function(f,c,h){var p=-(f-c)*r,b=h*i,v=h+(p-b)*l/1e3,g=h*l/1e3+f;return Math.abs(g-c)<Oh&&Math.abs(v)<Oh?[c,0]:[g,v]};return s.isStepper=!0,s.dt=l,s},zre=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return fA(a);case"spring":return Lre();default:if(a.split("(")[0]==="cubic-bezier")return fA(a)}return typeof a=="function"?a:null};function yc(e){"@babel/helpers - typeof";return yc=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},yc(e)}function dA(e){return Ure(e)||Ire(e)||LP(e)||Bre()}function Bre(){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 Ire(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ure(e){if(Array.isArray(e))return n0(e)}function hA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hA(Object(n),!0).forEach(function(r){t0(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t0(e,t,n){return t=Hre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hre(e){var t=qre(e,"string");return yc(t)==="symbol"?t:String(t)}function qre(e,t){if(yc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fre(e,t){return Kre(e)||Yre(e,t)||LP(e,t)||Gre()}function Gre(){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 LP(e,t){if(e){if(typeof e=="string")return n0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return n0(e,t)}}function n0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Kre(e){if(Array.isArray(e))return e}var jh=function(t,n,r){return t+(n-t)*r},r0=function(t){var n=t.from,r=t.to;return n!==r},Vre=function e(t,n,r){var a=ju(function(i,o){if(r0(o)){var l=t(o.from,o.to,o.velocity),s=Fre(l,2),u=s[0],f=s[1];return Dt(Dt({},o),{},{from:u,velocity:f})}return o},n);return r<1?ju(function(i,o){return r0(o)?Dt(Dt({},o),{},{velocity:jh(o.velocity,a[i].velocity,r),from:jh(o.from,a[i].from,r)}):o},n):e(t,a,r-1)};const Xre=function(e,t,n,r,a){var i=Are(e,t),o=i.reduce(function(g,y){return Dt(Dt({},g),{},t0({},y,[e[y],t[y]]))},{}),l=i.reduce(function(g,y){return Dt(Dt({},g),{},t0({},y,{from:e[y],velocity:0,to:t[y]}))},{}),s=-1,u,f,c=function(){return null},h=function(){return ju(function(y,m){return m.from},l)},p=function(){return!Object.values(l).filter(r0).length},b=function(y){u||(u=y);var m=y-u,x=m/n.dt;l=Vre(n,l,x),a(Dt(Dt(Dt({},e),t),h())),u=y,p()||(s=requestAnimationFrame(c))},v=function(y){f||(f=y);var m=(y-f)/r,x=ju(function(w,O){return jh.apply(void 0,dA(O).concat([n(m)]))},o);if(a(Dt(Dt(Dt({},e),t),x)),m<1)s=requestAnimationFrame(c);else{var S=ju(function(w,O){return jh.apply(void 0,dA(O).concat([n(1)]))},o);a(Dt(Dt(Dt({},e),t),S))}};return c=n.isStepper?b:v,function(){return requestAnimationFrame(c),function(){cancelAnimationFrame(s)}}};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 Qre=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Wre(e,t){if(e==null)return{};var n=Zre(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zre(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Cm(e){return nae(e)||tae(e)||eae(e)||Jre()}function Jre(){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 eae(e,t){if(e){if(typeof e=="string")return a0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a0(e,t)}}function tae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nae(e){if(Array.isArray(e))return a0(e)}function a0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pA(Object(n),!0).forEach(function(r){ou(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ou(e,t,n){return t=zP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,zP(r.key),r)}}function iae(e,t,n){return t&&aae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function zP(e){var t=oae(e,"string");return Kl(t)==="symbol"?t:String(t)}function oae(e,t){if(Kl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lae(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&&i0(e,t)}function i0(e,t){return i0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},i0(e,t)}function sae(e){var t=uae();return function(){var r=Ah(e),a;if(t){var i=Ah(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return o0(this,a)}}function o0(e,t){if(t&&(Kl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l0(e)}function l0(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uae(){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 Ah(e){return Ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ah(e)}var ma=function(e){lae(n,e);var t=sae(n);function n(r,a){var i;rae(this,n),i=t.call(this,r,a);var o=i.props,l=o.isActive,s=o.attributeName,u=o.from,f=o.to,c=o.steps,h=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(l0(i)),i.changeStyle=i.changeStyle.bind(l0(i)),!l||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:f}),o0(i);if(c&&c.length)i.state={style:c[0].style};else if(u){if(typeof h=="function")return i.state={style:u},o0(i);i.state={style:s?ou({},s,u):u}}else i.state={style:{}};return i}return iae(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,o=a.canBegin;this.mounted=!0,!(!i||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,o=i.isActive,l=i.canBegin,s=i.attributeName,u=i.shouldReAnimate,f=i.to,c=i.from,h=this.state.style;if(l){if(!o){var p={style:s?ou({},s,f):f};this.state&&h&&(s&&h[s]!==f||!s&&h!==f)&&this.setState(p);return}if(!(yre(a.to,f)&&a.canBegin&&a.isActive)){var b=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var v=b||u?c:a.to;if(this.state&&h){var g={style:s?ou({},s,v):v};(s&&h[s]!==v||!s&&h!==v)&&this.setState(g)}this.runAnimation(rr(rr({},this.props),{},{from:v,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,o=a.from,l=a.to,s=a.duration,u=a.easing,f=a.begin,c=a.onAnimationEnd,h=a.onAnimationStart,p=Xre(o,l,zre(u),s,this.changeStyle),b=function(){i.stopJSAnimation=p()};this.manager.start([h,f,b,s,c])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,s=a.onAnimationStart,u=o[0],f=u.style,c=u.duration,h=c===void 0?0:c,p=function(v,g,y){if(y===0)return v;var m=g.duration,x=g.easing,S=x===void 0?"ease":x,w=g.style,O=g.properties,A=g.onAnimationEnd,_=y>0?o[y-1]:g,T=O||Object.keys(w);if(typeof S=="function"||S==="spring")return[].concat(Cm(v),[i.runJSAnimation.bind(i,{from:_.style,to:w,duration:m,easing:S}),m]);var M=uA(T,m,S),L=rr(rr(rr({},_.style),w),{},{transition:M});return[].concat(Cm(v),[L,m,A]).filter(Ere)};return this.manager.start([s].concat(Cm(o.reduce(p,[f,Math.max(h,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=wre());var i=a.begin,o=a.duration,l=a.attributeName,s=a.to,u=a.easing,f=a.onAnimationStart,c=a.onAnimationEnd,h=a.steps,p=a.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var v=l?ou({},l,s):s,g=uA(Object.keys(v),o,u);b.start([f,i,rr(rr({},v),{},{transition:g}),o,c])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var o=a.duration;a.attributeName,a.easing;var l=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var s=Wre(a,Qre),u=j.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!l||u===0||o<=0)return i;var c=function(p){var b=p.props,v=b.style,g=v===void 0?{}:v,y=b.className,m=j.cloneElement(p,rr(rr({},s),{},{style:rr(rr({},g),f),className:y}));return m};return u===1?c(j.Children.only(i)):D.createElement("div",null,j.Children.map(i,function(h){return c(h)}))}}]),n}(j.PureComponent);ma.displayName="Animate";ma.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};ma.propTypes={from:Ce.oneOfType([Ce.object,Ce.string]),to:Ce.oneOfType([Ce.object,Ce.string]),attributeName:Ce.string,duration:Ce.number,begin:Ce.number,easing:Ce.oneOfType([Ce.string,Ce.func]),steps:Ce.arrayOf(Ce.shape({duration:Ce.number.isRequired,style:Ce.object.isRequired,easing:Ce.oneOfType([Ce.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ce.func]),properties:Ce.arrayOf("string"),onAnimationEnd:Ce.func})),children:Ce.oneOfType([Ce.node,Ce.func]),isActive:Ce.bool,canBegin:Ce.bool,onAnimationEnd:Ce.func,shouldReAnimate:Ce.bool,onAnimationStart:Ce.func,onAnimationReStart:Ce.func};function mc(e){"@babel/helpers - typeof";return mc=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},mc(e)}function Eh(){return Eh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eh.apply(this,arguments)}function cae(e,t){return pae(e)||hae(e,t)||dae(e,t)||fae()}function fae(){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 dae(e,t){if(e){if(typeof e=="string")return yA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yA(e,t)}}function yA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function hae(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function pae(e){if(Array.isArray(e))return e}function mA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mA(Object(n),!0).forEach(function(r){yae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yae(e,t,n){return t=mae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mae(e){var t=vae(e,"string");return mc(t)=="symbol"?t:t+""}function vae(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gA=function(t,n,r,a,i){var o=Math.min(Math.abs(r)/2,Math.abs(a)/2),l=a>=0?1:-1,s=r>=0?1:-1,u=a>=0&&r>=0||a<0&&r<0?1:0,f;if(o>0&&i instanceof Array){for(var c=[0,0,0,0],h=0,p=4;h<p;h++)c[h]=i[h]>o?o:i[h];f="M".concat(t,",").concat(n+l*c[0]),c[0]>0&&(f+="A ".concat(c[0],",").concat(c[0],",0,0,").concat(u,",").concat(t+s*c[0],",").concat(n)),f+="L ".concat(t+r-s*c[1],",").concat(n),c[1]>0&&(f+="A ".concat(c[1],",").concat(c[1],",0,0,").concat(u,`,
        `).concat(t+r,",").concat(n+l*c[1])),f+="L ".concat(t+r,",").concat(n+a-l*c[2]),c[2]>0&&(f+="A ".concat(c[2],",").concat(c[2],",0,0,").concat(u,`,
        `).concat(t+r-s*c[2],",").concat(n+a)),f+="L ".concat(t+s*c[3],",").concat(n+a),c[3]>0&&(f+="A ".concat(c[3],",").concat(c[3],",0,0,").concat(u,`,
        `).concat(t,",").concat(n+a-l*c[3])),f+="Z"}else if(o>0&&i===+i&&i>0){var b=Math.min(o,i);f="M ".concat(t,",").concat(n+l*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+s*b,",").concat(n,`
            L `).concat(t+r-s*b,",").concat(n,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r,",").concat(n+l*b,`
            L `).concat(t+r,",").concat(n+a-l*b,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t+r-s*b,",").concat(n+a,`
            L `).concat(t+s*b,",").concat(n+a,`
            A `).concat(b,",").concat(b,",0,0,").concat(u,",").concat(t,",").concat(n+a-l*b," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return f},gae=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,o=n.y,l=n.width,s=n.height;if(Math.abs(l)>0&&Math.abs(s)>0){var u=Math.min(i,i+l),f=Math.max(i,i+l),c=Math.min(o,o+s),h=Math.max(o,o+s);return r>=u&&r<=f&&a>=c&&a<=h}return!1},bae={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},e1=function(t){var n=vA(vA({},bae),t),r=j.useRef(),a=j.useState(-1),i=cae(a,2),o=i[0],l=i[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var S=r.current.getTotalLength();S&&l(S)}catch{}},[]);var s=n.x,u=n.y,f=n.width,c=n.height,h=n.radius,p=n.className,b=n.animationEasing,v=n.animationDuration,g=n.animationBegin,y=n.isAnimationActive,m=n.isUpdateAnimationActive;if(s!==+s||u!==+u||f!==+f||c!==+c||f===0||c===0)return null;var x=me("recharts-rectangle",p);return m?D.createElement(ma,{canBegin:o>0,from:{width:f,height:c,x:s,y:u},to:{width:f,height:c,x:s,y:u},duration:v,animationEasing:b,isActive:m},function(S){var w=S.width,O=S.height,A=S.x,_=S.y;return D.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,isActive:y,easing:b},D.createElement("path",Eh({},oe(n,!0),{className:x,d:gA(A,_,w,O,h),ref:r})))}):D.createElement("path",Eh({},oe(n,!0),{className:x,d:gA(s,u,f,c,h)}))},xae=["points","className","baseLinePoints","connectNulls"];function Wo(){return Wo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wo.apply(this,arguments)}function Sae(e,t){if(e==null)return{};var n=wae(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function bA(e){return Eae(e)||Aae(e)||jae(e)||Oae()}function Oae(){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 jae(e,t){if(e){if(typeof e=="string")return s0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s0(e,t)}}function Aae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eae(e){if(Array.isArray(e))return s0(e)}function s0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var xA=function(t){return t&&t.x===+t.x&&t.y===+t.y},_ae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){xA(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),xA(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Au=function(t,n){var r=_ae(t);n&&(r=[r.reduce(function(i,o){return[].concat(bA(i),bA(o))},[])]);var a=r.map(function(i){return i.reduce(function(o,l,s){return"".concat(o).concat(s===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Tae=function(t,n,r){var a=Au(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(Au(n.reverse(),r).slice(1))},Cae=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,o=Sae(t,xae);if(!n||!n.length)return null;var l=me("recharts-polygon",r);if(a&&a.length){var s=o.stroke&&o.stroke!=="none",u=Tae(n,a,i);return D.createElement("g",{className:l},D.createElement("path",Wo({},oe(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?D.createElement("path",Wo({},oe(o,!0),{fill:"none",d:Au(n,i)})):null,s?D.createElement("path",Wo({},oe(o,!0),{fill:"none",d:Au(a,i)})):null)}var f=Au(n,i);return D.createElement("path",Wo({},oe(o,!0),{fill:f.slice(-1)==="Z"?o.fill:"none",className:l,d:f}))};function u0(){return u0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u0.apply(this,arguments)}var t1=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,o=me("recharts-dot",i);return n===+n&&r===+r&&a===+a?j.createElement("circle",u0({},oe(t,!1),Gd(t),{className:o,cx:n,cy:r,r:a})):null};function vc(e){"@babel/helpers - typeof";return vc=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},vc(e)}var Nae=["x","y","top","left","width","height","className"];function c0(){return c0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c0.apply(this,arguments)}function SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SA(Object(n),!0).forEach(function(r){Pae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pae(e,t,n){return t=Rae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rae(e){var t=$ae(e,"string");return vc(t)=="symbol"?t:t+""}function $ae(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dae(e,t){if(e==null)return{};var n=kae(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Lae=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},zae=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,o=t.top,l=o===void 0?0:o,s=t.left,u=s===void 0?0:s,f=t.width,c=f===void 0?0:f,h=t.height,p=h===void 0?0:h,b=t.className,v=Dae(t,Nae),g=Mae({x:r,y:i,top:l,left:u,width:c,height:p},v);return!K(r)||!K(i)||!K(c)||!K(p)||!K(l)||!K(u)?null:D.createElement("path",c0({},oe(g,!0),{className:me("recharts-cross",b),d:Lae(r,i,c,p,l,u)}))},Bae=Kp,Iae=WM,Uae=di;function Hae(e,t){return e&&e.length?Bae(e,Uae(t),Iae):void 0}var qae=Hae;const Fae=Ue(qae);var Gae=Kp,Yae=di,Kae=ZM;function Vae(e,t){return e&&e.length?Gae(e,Yae(t),Kae):void 0}var Xae=Vae;const Qae=Ue(Xae);var Wae=["cx","cy","angle","ticks","axisLine"],Zae=["ticks","tick","angle","tickFormatter","stroke"];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 Eu(){return Eu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eu.apply(this,arguments)}function wA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wA(Object(n),!0).forEach(function(r){ey(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OA(e,t){if(e==null)return{};var n=Jae(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function eie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,IP(r.key),r)}}function tie(e,t,n){return t&&jA(e.prototype,t),n&&jA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nie(e,t,n){return t=_h(t),rie(e,BP()?Reflect.construct(t,n||[],_h(e).constructor):t.apply(e,n))}function rie(e,t){if(t&&(Vl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aie(e)}function aie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function BP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(BP=function(){return!!e})()}function _h(e){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_h(e)}function iie(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&&f0(e,t)}function f0(e,t){return f0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},f0(e,t)}function ey(e,t,n){return t=IP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function IP(e){var t=oie(e,"string");return Vl(t)=="symbol"?t:t+""}function oie(e,t){if(Vl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ty=function(e){function t(){return eie(this,t),nie(this,t,arguments)}return iie(t,e),tie(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,o=i.angle,l=i.cx,s=i.cy;return Ke(l,s,a,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.angle,l=r.ticks,s=Fae(l,function(f){return f.coordinate||0}),u=Qae(l,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:s.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.angle,l=r.ticks,s=r.axisLine,u=OA(r,Wae),f=l.reduce(function(b,v){return[Math.min(b[0],v.coordinate),Math.max(b[1],v.coordinate)]},[1/0,-1/0]),c=Ke(a,i,f[0],o),h=Ke(a,i,f[1],o),p=bi(bi(bi({},oe(u,!1)),{},{fill:"none"},oe(s,!1)),{},{x1:c.x,y1:c.y,x2:h.x,y2:h.y});return D.createElement("line",Eu({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,o=a.tick,l=a.angle,s=a.tickFormatter,u=a.stroke,f=OA(a,Zae),c=this.getTickTextAnchor(),h=oe(f,!1),p=oe(o,!1),b=i.map(function(v,g){var y=r.getTickValueCoord(v),m=bi(bi(bi(bi({textAnchor:c,transform:"rotate(".concat(90-l,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:g},y),{},{payload:v});return D.createElement($e,Eu({className:me("recharts-polar-radius-axis-tick",AP(o)),key:"tick-".concat(v.coordinate)},lo(r.props,v,g)),t.renderTickItem(o,m,s?s(v.value,g):v.value))});return D.createElement($e,{className:"recharts-polar-radius-axis-ticks"},b)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,o=r.tick;return!a||!a.length?null:D.createElement($e,{className:me("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Nt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var o;return D.isValidElement(r)?o=D.cloneElement(r,a):ue(r)?o=r(a):o=D.createElement(so,Eu({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(j.PureComponent);ey(ty,"displayName","PolarRadiusAxis");ey(ty,"axisType","radiusAxis");ey(ty,"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 Xl(e){"@babel/helpers - typeof";return Xl=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},Xl(e)}function Ti(){return Ti=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ti.apply(this,arguments)}function AA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AA(Object(n),!0).forEach(function(r){ny(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HP(r.key),r)}}function sie(e,t,n){return t&&EA(e.prototype,t),n&&EA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uie(e,t,n){return t=Th(t),cie(e,UP()?Reflect.construct(t,n||[],Th(e).constructor):t.apply(e,n))}function cie(e,t){if(t&&(Xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return fie(e)}function fie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function UP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(UP=function(){return!!e})()}function Th(e){return Th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Th(e)}function die(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&&d0(e,t)}function d0(e,t){return d0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},d0(e,t)}function ny(e,t,n){return t=HP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HP(e){var t=hie(e,"string");return Xl(t)=="symbol"?t:t+""}function hie(e,t){if(Xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pie=Math.PI/180,_A=1e-5,ry=function(e){function t(){return lie(this,t),uie(this,t,arguments)}return die(t,e),sie(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,o=a.cy,l=a.radius,s=a.orientation,u=a.tickSize,f=u||8,c=Ke(i,o,l,r.coordinate),h=Ke(i,o,l+(s==="inner"?-1:1)*f,r.coordinate);return{x1:c.x,y1:c.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*pie),o;return i>_A?o=a==="outer"?"start":"end":i<-_A?o=a==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,o=r.radius,l=r.axisLine,s=r.axisLineType,u=xi(xi({},oe(this.props,!1)),{},{fill:"none"},oe(l,!1));if(s==="circle")return D.createElement(t1,Ti({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:o}));var f=this.props.ticks,c=f.map(function(h){return Ke(a,i,o,h.coordinate)});return D.createElement(Cae,Ti({className:"recharts-polar-angle-axis-line"},u,{points:c}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,o=a.tick,l=a.tickLine,s=a.tickFormatter,u=a.stroke,f=oe(this.props,!1),c=oe(o,!1),h=xi(xi({},f),{},{fill:"none"},oe(l,!1)),p=i.map(function(b,v){var g=r.getTickLineCoord(b),y=r.getTickTextAnchor(b),m=xi(xi(xi({textAnchor:y},f),{},{stroke:"none",fill:u},c),{},{index:v,payload:b,x:g.x2,y:g.y2});return D.createElement($e,Ti({className:me("recharts-polar-angle-axis-tick",AP(o)),key:"tick-".concat(b.coordinate)},lo(r.props,b,v)),l&&D.createElement("line",Ti({className:"recharts-polar-angle-axis-tick-line"},h,g)),o&&t.renderTickItem(o,m,s?s(b.value,v):b.value))});return D.createElement($e,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,o=r.axisLine;return i<=0||!a||!a.length?null:D.createElement($e,{className:me("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var o;return D.isValidElement(r)?o=D.cloneElement(r,a):ue(r)?o=r(a):o=D.createElement(so,Ti({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(j.PureComponent);ny(ry,"displayName","PolarAngleAxis");ny(ry,"axisType","angleAxis");ny(ry,"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 yie=XN,mie=yie(Object.getPrototypeOf,Object),vie=mie,gie=ga,bie=vie,xie=ba,Sie="[object Object]",wie=Function.prototype,Oie=Object.prototype,qP=wie.toString,jie=Oie.hasOwnProperty,Aie=qP.call(Object);function Eie(e){if(!xie(e)||gie(e)!=Sie)return!1;var t=bie(e);if(t===null)return!0;var n=jie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&qP.call(n)==Aie}var _ie=Eie;const Tie=Ue(_ie);var Cie=ga,Nie=ba,Mie="[object Boolean]";function Pie(e){return e===!0||e===!1||Nie(e)&&Cie(e)==Mie}var Rie=Pie;const $ie=Ue(Rie);function gc(e){"@babel/helpers - typeof";return gc=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},gc(e)}function Ch(){return Ch=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ch.apply(this,arguments)}function Die(e,t){return Bie(e)||zie(e,t)||Lie(e,t)||kie()}function kie(){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 Lie(e,t){if(e){if(typeof e=="string")return TA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return TA(e,t)}}function TA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Bie(e){if(Array.isArray(e))return e}function CA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function NA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CA(Object(n),!0).forEach(function(r){Iie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Iie(e,t,n){return t=Uie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uie(e){var t=Hie(e,"string");return gc(t)=="symbol"?t:t+""}function Hie(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var MA=function(t,n,r,a,i){var o=r-a,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+i),l+="L ".concat(t+r-o/2-a,",").concat(n+i),l+="L ".concat(t,",").concat(n," Z"),l},qie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Fie=function(t){var n=NA(NA({},qie),t),r=j.useRef(),a=j.useState(-1),i=Die(a,2),o=i[0],l=i[1];j.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&l(x)}catch{}},[]);var s=n.x,u=n.y,f=n.upperWidth,c=n.lowerWidth,h=n.height,p=n.className,b=n.animationEasing,v=n.animationDuration,g=n.animationBegin,y=n.isUpdateAnimationActive;if(s!==+s||u!==+u||f!==+f||c!==+c||h!==+h||f===0&&c===0||h===0)return null;var m=me("recharts-trapezoid",p);return y?D.createElement(ma,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:u},to:{upperWidth:f,lowerWidth:c,height:h,x:s,y:u},duration:v,animationEasing:b,isActive:y},function(x){var S=x.upperWidth,w=x.lowerWidth,O=x.height,A=x.x,_=x.y;return D.createElement(ma,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:g,duration:v,easing:b},D.createElement("path",Ch({},oe(n,!0),{className:m,d:MA(A,_,S,w,O),ref:r})))}):D.createElement("g",null,D.createElement("path",Ch({},oe(n,!0),{className:m,d:MA(s,u,f,c,h)})))},Gie=["option","shapeType","propTransformer","activeClassName","isActive"];function bc(e){"@babel/helpers - typeof";return bc=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},bc(e)}function Yie(e,t){if(e==null)return{};var n=Kie(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function PA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Nh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PA(Object(n),!0).forEach(function(r){Vie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vie(e,t,n){return t=Xie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xie(e){var t=Qie(e,"string");return bc(t)=="symbol"?t:t+""}function Qie(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wie(e,t){return Nh(Nh({},t),e)}function Zie(e,t){return e==="symbols"}function RA(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return D.createElement(e1,n);case"trapezoid":return D.createElement(Fie,n);case"sector":return D.createElement(TP,n);case"symbols":if(Zie(t))return D.createElement(gx,n);break;default:return null}}function Jie(e){return j.isValidElement(e)?e.props:e}function FP(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Wie:r,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,s=Yie(e,Gie),u;if(j.isValidElement(t))u=j.cloneElement(t,Nh(Nh({},s),Jie(t)));else if(ue(t))u=t(s);else if(Tie(t)&&!$ie(t)){var f=a(t,s);u=D.createElement(RA,{shapeType:n,elementProps:f})}else{var c=s;u=D.createElement(RA,{shapeType:n,elementProps:c})}return l?D.createElement($e,{className:o},u):u}function ay(e,t){return t!=null&&"trapezoids"in e.props}function iy(e,t){return t!=null&&"sectors"in e.props}function xc(e,t){return t!=null&&"points"in e.props}function eoe(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&i}function toe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function noe(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function roe(e,t){var n;return ay(e,t)?n=eoe:iy(e,t)?n=toe:xc(e,t)&&(n=noe),n}function aoe(e,t){var n;return ay(e,t)?n="trapezoids":iy(e,t)?n="sectors":xc(e,t)&&(n="points"),n}function ioe(e,t){if(ay(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(iy(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return xc(e,t)?t.payload:{}}function ooe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=aoe(n,t),i=ioe(n,t),o=r.filter(function(s,u){var f=Qp(i,s),c=n.props[a].filter(function(b){var v=roe(n,t);return v(b,t)}),h=n.props[a].indexOf(c[c.length-1]),p=u===h;return f&&p}),l=r.indexOf(o[o.length-1]);return l}var ld;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 Zo(){return Zo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zo.apply(this,arguments)}function $A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(n),!0).forEach(function(r){Kn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function loe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YP(r.key),r)}}function soe(e,t,n){return t&&DA(e.prototype,t),n&&DA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uoe(e,t,n){return t=Mh(t),coe(e,GP()?Reflect.construct(t,n||[],Mh(e).constructor):t.apply(e,n))}function coe(e,t){if(t&&(Ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return foe(e)}function foe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GP=function(){return!!e})()}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mh(e)}function doe(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&&h0(e,t)}function h0(e,t){return h0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},h0(e,t)}function Kn(e,t,n){return t=YP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YP(e){var t=hoe(e,"string");return Ql(t)=="symbol"?t:t+""}function hoe(e,t){if(Ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Sa=function(e){function t(n){var r;return loe(this,t),r=uoe(this,t,[n]),Kn(r,"pieRef",null),Kn(r,"sectorRefs",[]),Kn(r,"id",Zc("recharts-pie-")),Kn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ue(a)&&a()}),Kn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ue(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return doe(t,e),soe(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.label,l=i.labelLine,s=i.dataKey,u=i.valueKey,f=oe(this.props,!1),c=oe(o,!1),h=oe(l,!1),p=o&&o.offsetRadius||20,b=r.map(function(v,g){var y=(v.startAngle+v.endAngle)/2,m=Ke(v.cx,v.cy,v.outerRadius+p,y),x=Fe(Fe(Fe(Fe({},f),v),{},{stroke:"none"},c),{},{index:g,textAnchor:t.getTextAnchor(m.x,v.cx)},m),S=Fe(Fe(Fe(Fe({},f),v),{},{fill:"none",stroke:v.fill},h),{},{index:g,points:[Ke(v.cx,v.cy,v.outerRadius,y),m]}),w=s;return ve(s)&&ve(u)?w="value":ve(s)&&(w=u),D.createElement($e,{key:"label-".concat(v.startAngle,"-").concat(v.endAngle,"-").concat(v.midAngle,"-").concat(g)},l&&t.renderLabelLineItem(l,S,"line"),t.renderLabelItem(o,x,Yt(v,w)))});return D.createElement($e,{className:"recharts-pie-labels"},b)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,o=i.activeShape,l=i.blendStroke,s=i.inactiveShape;return r.map(function(u,f){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var c=a.isActiveIndex(f),h=s&&a.hasActiveIndex()?s:null,p=c?o:h,b=Fe(Fe({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return D.createElement($e,Zo({ref:function(g){g&&!a.sectorRefs.includes(g)&&a.sectorRefs.push(g)},tabIndex:-1,className:"recharts-pie-sector"},lo(a.props,u,f),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(f)}),D.createElement(FP,Zo({option:p,isActive:c,shapeType:"sector"},b)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,o=a.isAnimationActive,l=a.animationBegin,s=a.animationDuration,u=a.animationEasing,f=a.animationId,c=this.state,h=c.prevSectors,p=c.prevIsAnimationActive;return D.createElement(ma,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(b){var v=b.t,g=[],y=i&&i[0],m=y.startAngle;return i.forEach(function(x,S){var w=h&&h[S],O=S>0?Nn(x,"paddingAngle",0):0;if(w){var A=Ea(w.endAngle-w.startAngle,x.endAngle-x.startAngle),_=Fe(Fe({},x),{},{startAngle:m+O,endAngle:m+A(v)+O});g.push(_),m=_.endAngle}else{var T=x.endAngle,M=x.startAngle,L=Ea(0,T-M),E=L(v),N=Fe(Fe({},x),{},{startAngle:m+O,endAngle:m+E+O});g.push(N),m=N.endAngle}}),D.createElement($e,null,r.renderSectorsStatically(g))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var o=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,i=r.isAnimationActive,o=this.state.prevSectors;return i&&a&&a.length&&(!o||!Qp(o,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,i=a.hide,o=a.sectors,l=a.className,s=a.label,u=a.cx,f=a.cy,c=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,b=this.state.isAnimationFinished;if(i||!o||!o.length||!K(u)||!K(f)||!K(c)||!K(h))return null;var v=me("recharts-pie",l);return D.createElement($e,{tabIndex:this.props.rootTabIndex,className:v,ref:function(y){r.pieRef=y}},this.renderSectors(),s&&this.renderLabels(o),Nt.renderCallByParent(this.props,null,!1),(!p||b)&&ai.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,i){if(D.isValidElement(r))return D.cloneElement(r,a);if(ue(r))return r(a);var o=me("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return D.createElement(Zg,Zo({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,a,i){if(D.isValidElement(r))return D.cloneElement(r,a);var o=i;if(ue(r)&&(o=r(a),D.isValidElement(o)))return o;var l=me("recharts-pie-label-text",typeof r!="boolean"&&!ue(r)?r.className:"");return D.createElement(so,Zo({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(j.PureComponent);ld=Sa;Kn(Sa,"displayName","Pie");Kn(Sa,"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:!Ns.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Kn(Sa,"parseDeltaAngle",function(e,t){var n=Zt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Kn(Sa,"getRealPieData",function(e){var t=e.data,n=e.children,r=oe(e,!1),a=Wn(n,Ip);return t&&t.length?t.map(function(i,o){return Fe(Fe(Fe({payload:i},r),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return Fe(Fe({},r),i.props)}):[]});Kn(Sa,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=jP(a,i),l=r+Jt(e.cx,a,a/2),s=n+Jt(e.cy,i,i/2),u=Jt(e.innerRadius,o,0),f=Jt(e.outerRadius,o,o*.8),c=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:f,maxRadius:c}});Kn(Sa,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Fe(Fe({},t.type.defaultProps),t.props):t.props,a=ld.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,o=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,f=r.nameKey,c=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),b=ld.parseCoordinateOfPie(r,n),v=ld.parseDeltaAngle(o,l),g=Math.abs(v),y=u;ve(u)&&ve(c)?(aa(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y="value"):ve(u)&&(aa(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y=c);var m=a.filter(function(_){return Yt(_,y,0)!==0}).length,x=(g>=360?m:m-1)*s,S=g-m*p-x,w=a.reduce(function(_,T){var M=Yt(T,y,0);return _+(K(M)?M:0)},0),O;if(w>0){var A;O=a.map(function(_,T){var M=Yt(_,y,0),L=Yt(_,f,T),E=(K(M)?M:0)/w,N;T?N=A.endAngle+Zt(v)*s*(M!==0?1:0):N=o;var k=N+Zt(v)*((M!==0?p:0)+E*S),P=(N+k)/2,$=(b.innerRadius+b.outerRadius)/2,z=[{name:L,value:M,payload:_,dataKey:y,type:h}],B=Ke(b.cx,b.cy,$,P);return A=Fe(Fe(Fe({percent:E,cornerRadius:i,name:L,tooltipPayload:z,midAngle:P,middleRadius:$,tooltipPosition:B},_),b),{},{value:Yt(_,y),startAngle:N,endAngle:k,payload:_,paddingAngle:Zt(v)*s}),A})}return Fe(Fe({},b),{},{sectors:O,data:a})});var poe=Math.ceil,yoe=Math.max;function moe(e,t,n,r){for(var a=-1,i=yoe(poe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var voe=moe,goe=hM,kA=1/0,boe=17976931348623157e292;function xoe(e){if(!e)return e===0?e:0;if(e=goe(e),e===kA||e===-kA){var t=e<0?-1:1;return t*boe}return e===e?e:0}var Soe=xoe,woe=voe,Ooe=Bp,Nm=Soe;function joe(e){return function(t,n,r){return r&&typeof r!="number"&&Ooe(t,n,r)&&(n=r=void 0),t=Nm(t),n===void 0?(n=t,t=0):n=Nm(n),r=r===void 0?t<n?1:-1:Nm(r),woe(t,n,r,e)}}var Aoe=joe,Eoe=Aoe,_oe=Eoe(),Toe=_oe;const Ph=Ue(Toe);function Sc(e){"@babel/helpers - typeof";return Sc=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},Sc(e)}function LA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LA(Object(n),!0).forEach(function(r){KP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KP(e,t,n){return t=Coe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Coe(e){var t=Noe(e,"string");return Sc(t)=="symbol"?t:t+""}function Noe(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Moe=["Webkit","Moz","O","ms"],Poe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Moe.reduce(function(i,o){return zA(zA({},i),{},KP({},o+r,n))},{});return a[t]=n,a};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 Rh(){return Rh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rh.apply(this,arguments)}function BA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(n),!0).forEach(function(r){vn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Roe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function IA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,XP(r.key),r)}}function $oe(e,t,n){return t&&IA(e.prototype,t),n&&IA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Doe(e,t,n){return t=$h(t),koe(e,VP()?Reflect.construct(t,n||[],$h(e).constructor):t.apply(e,n))}function koe(e,t){if(t&&(Wl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Loe(e)}function Loe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VP=function(){return!!e})()}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$h(e)}function zoe(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&&p0(e,t)}function p0(e,t){return p0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},p0(e,t)}function vn(e,t,n){return t=XP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XP(e){var t=Boe(e,"string");return Wl(t)=="symbol"?t:t+""}function Boe(e,t){if(Wl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ioe=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var s=n.length,u=wu().domain(Ph(0,s)).range([i,i+o-l]),f=u.domain().map(function(c){return u(c)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:f}},UA=function(t){return t.changedTouches&&!!t.changedTouches.length},Zl=function(e){function t(n){var r;return Roe(this,t),r=Doe(this,t,[n]),vn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),vn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),vn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,o=a.onDragEnd,l=a.startIndex;o==null||o({endIndex:i,startIndex:l})}),r.detachDragEndListener()}),vn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),vn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),vn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),vn(r,"handleSlideDragStart",function(a){var i=UA(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return zoe(t,e),$oe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,i=r.endX,o=this.state.scaleValues,l=this.props,s=l.gap,u=l.data,f=u.length-1,c=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(o,c),b=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:b===f?f:b-b%s}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,s=Yt(i[r],l,r);return ue(o)?o(s,r):s}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var a=this.state,i=a.slideMoveStartX,o=a.startX,l=a.endX,s=this.props,u=s.x,f=s.width,c=s.travellerWidth,h=s.startIndex,p=s.endIndex,b=s.onChange,v=r.pageX-i;v>0?v=Math.min(v,u+f-c-l,u+f-c-o):v<0&&(v=Math.max(v,u-o,u-l));var g=this.getIndex({startX:o+v,endX:l+v});(g.startIndex!==h||g.endIndex!==p)&&b&&b(g),this.setState({startX:o+v,endX:l+v,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=UA(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,i=a.brushMoveStartX,o=a.movingTravellerId,l=a.endX,s=a.startX,u=this.state[o],f=this.props,c=f.x,h=f.width,p=f.travellerWidth,b=f.onChange,v=f.gap,g=f.data,y={startX:this.state.startX,endX:this.state.endX},m=r.pageX-i;m>0?m=Math.min(m,c+h-p-u):m<0&&(m=Math.max(m,c-u)),y[o]=u+m;var x=this.getIndex(y),S=x.startIndex,w=x.endIndex,O=function(){var _=g.length-1;return o==="startX"&&(l>s?S%v===0:w%v===0)||l<s&&w===_||o==="endX"&&(l>s?w%v===0:S%v===0)||l>s&&w===_};this.setState(vn(vn({},o,u+m),"brushMoveStartX",r.pageX),function(){b&&O()&&b(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,o=this.state,l=o.scaleValues,s=o.startX,u=o.endX,f=this.state[a],c=l.indexOf(f);if(c!==-1){var h=c+r;if(!(h===-1||h>=l.length)){var p=l[h];a==="startX"&&p>=u||a==="endX"&&p<=s||this.setState(vn({},a,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.fill,u=r.stroke;return D.createElement("rect",{stroke:u,fill:s,x:a,y:i,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.data,u=r.children,f=r.padding,c=j.Children.only(u);return c?D.cloneElement(c,{x:a,y:i,width:o,height:l,margin:f,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,o,l=this,s=this.props,u=s.y,f=s.travellerWidth,c=s.height,h=s.traveller,p=s.ariaLabel,b=s.data,v=s.startIndex,g=s.endIndex,y=Math.max(r,this.props.x),m=Mm(Mm({},oe(this.props,!1)),{},{x:y,y:u,width:f,height:c}),x=p||"Min value: ".concat((i=b[v])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=b[g])===null||o===void 0?void 0:o.name);return D.createElement($e,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(w){["ArrowLeft","ArrowRight"].includes(w.key)&&(w.preventDefault(),w.stopPropagation(),l.handleTravellerMoveKeyboard(w.key==="ArrowRight"?1:-1,a))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,m))}},{key:"renderSlide",value:function(r,a){var i=this.props,o=i.y,l=i.height,s=i.stroke,u=i.travellerWidth,f=Math.min(r,a)+u,c=Math.max(Math.abs(a-r)-u,0);return D.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:f,y:o,width:c,height:l})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,o=r.y,l=r.height,s=r.travellerWidth,u=r.stroke,f=this.state,c=f.startX,h=f.endX,p=5,b={pointerEvents:"none",fill:u};return D.createElement($e,{className:"recharts-brush-texts"},D.createElement(so,Rh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(c,h)-p,y:o+l/2},b),this.getTextOfTick(a)),D.createElement(so,Rh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(c,h)+s+p,y:o+l/2},b),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,o=r.children,l=r.x,s=r.y,u=r.width,f=r.height,c=r.alwaysShowText,h=this.state,p=h.startX,b=h.endX,v=h.isTextActive,g=h.isSlideMoving,y=h.isTravellerMoving,m=h.isTravellerFocused;if(!a||!a.length||!K(l)||!K(s)||!K(u)||!K(f)||u<=0||f<=0)return null;var x=me("recharts-brush",i),S=D.Children.count(o)===1,w=Poe("userSelect","none");return D.createElement($e,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),S&&this.renderPanorama(),this.renderSlide(p,b),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(b,"endX"),(v||g||y||m||c)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,o=r.width,l=r.height,s=r.stroke,u=Math.floor(i+l/2)-1;return D.createElement(D.Fragment,null,D.createElement("rect",{x:a,y:i,width:o,height:l,fill:s,stroke:"none"}),D.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),D.createElement("line",{x1:a+1,y1:u+2,x2:a+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return D.isValidElement(r)?i=D.cloneElement(r,a):ue(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,o=r.width,l=r.x,s=r.travellerWidth,u=r.updateId,f=r.startIndex,c=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Mm({prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?Ioe({data:i,width:o,x:l,travellerWidth:s,startIndex:f,endIndex:c}):{scale:null,scaleValues:null});if(a.scale&&(o!==a.prevWidth||l!==a.prevX||s!==a.prevTravellerWidth)){a.scale.range([l,l+o-s]);var h=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,a){for(var i=r.length,o=0,l=i-1;l-o>1;){var s=Math.floor((o+l)/2);r[s]>a?l=s:o=s}return a>=r[l]?l:o}}])}(j.PureComponent);vn(Zl,"displayName","Brush");vn(Zl,"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 Uoe=Ex;function Hoe(e,t){var n;return Uoe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var qoe=Hoe,Foe=UN,Goe=di,Yoe=qoe,Koe=yn,Voe=Bp;function Xoe(e,t,n){var r=Koe(e)?Foe:Yoe;return n&&Voe(e,t,n)&&(t=void 0),r(e,Goe(t))}var Qoe=Xoe;const Woe=Ue(Qoe);var _r=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},HA=sM;function Zoe(e,t,n){t=="__proto__"&&HA?HA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var Joe=Zoe,ele=Joe,tle=oM,nle=di;function rle(e,t){var n={};return t=nle(t),tle(e,function(r,a,i){ele(n,a,t(r,a,i))}),n}var ale=rle;const ile=Ue(ale);function ole(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var lle=ole,sle=Ex;function ule(e,t){var n=!0;return sle(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var cle=ule,fle=lle,dle=cle,hle=di,ple=yn,yle=Bp;function mle(e,t,n){var r=ple(e)?fle:dle;return n&&yle(e,t,n)&&(t=void 0),r(e,hle(t))}var vle=mle;const gle=Ue(vle);var ble=["x","y"];function wc(e){"@babel/helpers - typeof";return wc=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},wc(e)}function y0(){return y0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y0.apply(this,arguments)}function qA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Js(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qA(Object(n),!0).forEach(function(r){xle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xle(e,t,n){return t=Sle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sle(e){var t=wle(e,"string");return wc(t)=="symbol"?t:t+""}function wle(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ole(e,t){if(e==null)return{};var n=jle(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ale(e,t){var n=e.x,r=e.y,a=Ole(e,ble),i="".concat(n),o=parseInt(i,10),l="".concat(r),s=parseInt(l,10),u="".concat(t.height||a.height),f=parseInt(u,10),c="".concat(t.width||a.width),h=parseInt(c,10);return Js(Js(Js(Js(Js({},t),a),o?{x:o}:{}),s?{y:s}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function FA(e){return D.createElement(FP,y0({shapeType:"rectangle",propTransformer:Ale,activeClassName:"recharts-active-bar"},e))}var Ele=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=K(r)||GU(r);return i?t(r,a):(i||co(),n)}},_le=["value","background"],QP;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 Tle(e,t){if(e==null)return{};var n=Cle(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cle(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Dh(){return Dh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dh.apply(this,arguments)}function GA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ft(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GA(Object(n),!0).forEach(function(r){Ya(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ZP(r.key),r)}}function Mle(e,t,n){return t&&YA(e.prototype,t),n&&YA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ple(e,t,n){return t=kh(t),Rle(e,WP()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function Rle(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $le(e)}function $le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WP=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function Dle(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&&m0(e,t)}function m0(e,t){return m0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},m0(e,t)}function Ya(e,t,n){return t=ZP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZP(e){var t=kle(e,"string");return Jl(t)=="symbol"?t:t+""}function kle(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Oo=function(e){function t(){var n;Nle(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Ple(this,t,[].concat(a)),Ya(n,"state",{isAnimationFinished:!1}),Ya(n,"id",Zc("recharts-bar-")),Ya(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Ya(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return Dle(t,e),Mle(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,o=i.shape,l=i.dataKey,s=i.activeIndex,u=i.activeBar,f=oe(this.props,!1);return r&&r.map(function(c,h){var p=h===s,b=p?u:o,v=ft(ft(ft({},f),c),{},{isActive:p,option:b,index:h,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return D.createElement($e,Dh({className:"recharts-bar-rectangle"},lo(a.props,c,h),{key:"rectangle-".concat(c==null?void 0:c.x,"-").concat(c==null?void 0:c.y,"-").concat(c==null?void 0:c.value,"-").concat(h)}),D.createElement(FA,v))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,o=a.layout,l=a.isAnimationActive,s=a.animationBegin,u=a.animationDuration,f=a.animationEasing,c=a.animationId,h=this.state.prevData;return D.createElement(ma,{begin:s,duration:u,isActive:l,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(c),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var b=p.t,v=i.map(function(g,y){var m=h&&h[y];if(m){var x=Ea(m.x,g.x),S=Ea(m.y,g.y),w=Ea(m.width,g.width),O=Ea(m.height,g.height);return ft(ft({},g),{},{x:x(b),y:S(b),width:w(b),height:O(b)})}if(o==="horizontal"){var A=Ea(0,g.height),_=A(b);return ft(ft({},g),{},{y:g.y+g.height-_,height:_})}var T=Ea(0,g.width),M=T(b);return ft(ft({},g),{},{width:M})});return D.createElement($e,null,r.renderRectanglesStatically(v))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!Qp(o,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,o=a.dataKey,l=a.activeIndex,s=oe(this.props.background,!1);return i.map(function(u,f){u.value;var c=u.background,h=Tle(u,_le);if(!c)return null;var p=ft(ft(ft(ft(ft({},h),{},{fill:"#eee"},c),s),lo(r.props,u,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:f,className:"recharts-bar-background-rectangle"});return D.createElement(FA,Dh({key:"background-bar-".concat(f),option:r.props.background,isActive:f===l},p))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.data,l=i.xAxis,s=i.yAxis,u=i.layout,f=i.children,c=Wn(f,Jp);if(!c)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(g,y){var m=Array.isArray(g.value)?g.value[1]:g.value;return{x:g.x,y:g.y,value:m,errorVal:Yt(g,y)}},b={clipPath:r?"url(#clipPath-".concat(a,")"):null};return D.createElement($e,b,c.map(function(v){return D.cloneElement(v,{key:"error-bar-".concat(a,"-").concat(v.props.dataKey),data:o,xAxis:l,yAxis:s,layout:u,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,o=r.className,l=r.xAxis,s=r.yAxis,u=r.left,f=r.top,c=r.width,h=r.height,p=r.isAnimationActive,b=r.background,v=r.id;if(a||!i||!i.length)return null;var g=this.state.isAnimationFinished,y=me("recharts-bar",o),m=l&&l.allowDataOverflow,x=s&&s.allowDataOverflow,S=m||x,w=ve(v)?this.id:v;return D.createElement($e,{className:y},m||x?D.createElement("defs",null,D.createElement("clipPath",{id:"clipPath-".concat(w)},D.createElement("rect",{x:m?u:u-c/2,y:x?f:f-h/2,width:m?c:c*2,height:x?h:h*2}))):null,D.createElement($e,{className:"recharts-bar-rectangles",clipPath:S?"url(#clipPath-".concat(w,")"):null},b?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(S,w),(!p||g)&&ai.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])}(j.PureComponent);QP=Oo;Ya(Oo,"displayName","Bar");Ya(Oo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ns.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ya(Oo,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,o=e.yAxis,l=e.xAxisTicks,s=e.yAxisTicks,u=e.stackedData,f=e.dataStartIndex,c=e.displayedData,h=e.offset,p=cte(r,n);if(!p)return null;var b=t.layout,v=n.type.defaultProps,g=v!==void 0?ft(ft({},v),n.props):n.props,y=g.dataKey,m=g.children,x=g.minPointSize,S=b==="horizontal"?o:i,w=u?S.scale.domain():null,O=vte({numericAxis:S}),A=Wn(m,Ip),_=c.map(function(T,M){var L,E,N,k,P,$;u?L=fte(u[f+M],w):(L=Yt(T,y),Array.isArray(L)||(L=[O,L]));var z=Ele(x,QP.defaultProps.minPointSize)(L[1],M);if(b==="horizontal"){var B,q=[o.scale(L[0]),o.scale(L[1])],F=q[0],Q=q[1];E=zj({axis:i,ticks:l,bandSize:a,offset:p.offset,entry:T,index:M}),N=(B=Q??F)!==null&&B!==void 0?B:void 0,k=p.size;var Y=F-Q;if(P=Number.isNaN(Y)?0:Y,$={x:E,y:o.y,width:k,height:o.height},Math.abs(z)>0&&Math.abs(P)<Math.abs(z)){var ee=Zt(P||z)*(Math.abs(z)-Math.abs(P));N-=ee,P+=ee}}else{var ye=[i.scale(L[0]),i.scale(L[1])],ke=ye[0],fe=ye[1];if(E=ke,N=zj({axis:o,ticks:s,bandSize:a,offset:p.offset,entry:T,index:M}),k=fe-ke,P=p.size,$={x:i.x,y:N,width:i.width,height:P},Math.abs(z)>0&&Math.abs(k)<Math.abs(z)){var Rt=Zt(k||z)*(Math.abs(z)-Math.abs(k));k+=Rt}}return ft(ft(ft({},T),{},{x:E,y:N,width:k,height:P,value:u?L:L[1],payload:T,background:$},A&&A[M]&&A[M].props),{},{tooltipPayload:[wP(n,T)],tooltipPosition:{x:E+k/2,y:N+P/2}})});return ft({data:_,layout:b},h)});function Oc(e){"@babel/helpers - typeof";return Oc=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},Oc(e)}function Lle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KA(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,JP(r.key),r)}}function zle(e,t,n){return t&&KA(e.prototype,t),n&&KA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VA(Object(n),!0).forEach(function(r){oy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oy(e,t,n){return t=JP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JP(e){var t=Ble(e,"string");return Oc(t)=="symbol"?t:t+""}function Ble(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ile=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.layout,u=t.children,f=Object.keys(n),c={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},h=!!bn(u,Oo);return f.reduce(function(p,b){var v=n[b],g=v.orientation,y=v.domain,m=v.padding,x=m===void 0?{}:m,S=v.mirror,w=v.reversed,O="".concat(g).concat(S?"Mirror":""),A,_,T,M,L;if(v.type==="number"&&(v.padding==="gap"||v.padding==="no-gap")){var E=y[1]-y[0],N=1/0,k=v.categoricalDomain.sort(VU);if(k.forEach(function(ye,ke){ke>0&&(N=Math.min((ye||0)-(k[ke-1]||0),N))}),Number.isFinite(N)){var P=N/E,$=v.layout==="vertical"?r.height:r.width;if(v.padding==="gap"&&(A=P*$/2),v.padding==="no-gap"){var z=Jt(t.barCategoryGap,P*$),B=P*$/2;A=B-z-(B-z)/$*z}}}a==="xAxis"?_=[r.left+(x.left||0)+(A||0),r.left+r.width-(x.right||0)-(A||0)]:a==="yAxis"?_=s==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(A||0),r.top+r.height-(x.bottom||0)-(A||0)]:_=v.range,w&&(_=[_[1],_[0]]);var q=gP(v,i,h),F=q.scale,Q=q.realScaleType;F.domain(y).range(_),bP(F);var Y=xP(F,lr(lr({},v),{},{realScaleType:Q}));a==="xAxis"?(L=g==="top"&&!S||g==="bottom"&&S,T=r.left,M=c[O]-L*v.height):a==="yAxis"&&(L=g==="left"&&!S||g==="right"&&S,T=c[O]-L*v.width,M=r.top);var ee=lr(lr(lr({},v),Y),{},{realScaleType:Q,x:T,y:M,scale:F,width:a==="xAxis"?r.width:v.width,height:a==="yAxis"?r.height:v.height});return ee.bandSize=bh(ee,Y),!v.hide&&a==="xAxis"?c[O]+=(L?-1:1)*ee.height:v.hide||(c[O]+=(L?-1:1)*ee.width),lr(lr({},p),{},oy({},b,ee))},{})},eR=function(t,n){var r=t.x,a=t.y,i=n.x,o=n.y;return{x:Math.min(r,i),y:Math.min(a,o),width:Math.abs(i-r),height:Math.abs(o-a)}},Ule=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return eR({x:n,y:r},{x:a,y:i})},tR=function(){function e(t){Lle(this,e),this.scale=t}return zle(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(a){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])}();oy(tR,"EPS",1e-4);var n1=function(t){var n=Object.keys(t).reduce(function(r,a){return lr(lr({},r),{},oy({},a,tR.create(t[a])))},{});return lr(lr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=i.bandAware,l=i.position;return ile(a,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(a){return gle(a,function(i,o){return n[o].isInRange(i)})}})};function Hle(e){return(e%180+180)%180}var qle=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Hle(a),o=i*Math.PI/180,l=Math.atan(r/n),s=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(s)},Fle=WI(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("")}),nR=j.createContext(void 0),rR=j.createContext(void 0),aR=j.createContext(void 0),Gle=j.createContext({}),iR=j.createContext(void 0),oR=j.createContext(0),lR=j.createContext(0),XA=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,o=t.clipPathId,l=t.children,s=t.width,u=t.height,f=Fle(i);return D.createElement(nR.Provider,{value:r},D.createElement(rR.Provider,{value:a},D.createElement(Gle.Provider,{value:i},D.createElement(aR.Provider,{value:f},D.createElement(iR.Provider,{value:o},D.createElement(oR.Provider,{value:u},D.createElement(lR.Provider,{value:s},l)))))))},Yle=function(){return j.useContext(iR)},sR=function(t){var n=j.useContext(nR);n==null&&co();var r=n[t];return r==null&&co(),r},uR=function(t){var n=j.useContext(rR);n==null&&co();var r=n[t];return r==null&&co(),r},Kle=function(){var t=j.useContext(aR);return t},cR=function(){return j.useContext(lR)},fR=function(){return j.useContext(oR)};function es(e){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},es(e)}function Vle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,hR(r.key),r)}}function Qle(e,t,n){return t&&Xle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wle(e,t,n){return t=Lh(t),Zle(e,dR()?Reflect.construct(t,n||[],Lh(e).constructor):t.apply(e,n))}function Zle(e,t){if(t&&(es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jle(e)}function Jle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dR=function(){return!!e})()}function Lh(e){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lh(e)}function ese(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&&v0(e,t)}function v0(e,t){return v0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},v0(e,t)}function QA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function WA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QA(Object(n),!0).forEach(function(r){r1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function r1(e,t,n){return t=hR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hR(e){var t=tse(e,"string");return es(t)=="symbol"?t:t+""}function tse(e,t){if(es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function nse(e,t){return ose(e)||ise(e,t)||ase(e,t)||rse()}function rse(){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 ase(e,t){if(e){if(typeof e=="string")return ZA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZA(e,t)}}function ZA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ise(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function ose(e){if(Array.isArray(e))return e}function g0(){return g0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g0.apply(this,arguments)}var lse=function(t,n){var r;return D.isValidElement(t)?r=D.cloneElement(t,n):ue(t)?r=t(n):r=D.createElement("line",g0({},n,{className:"recharts-reference-line-line"})),r},sse=function(t,n,r,a,i,o,l,s,u){var f=i.x,c=i.y,h=i.width,p=i.height;if(r){var b=u.y,v=t.y.apply(b,{position:o});if(_r(u,"discard")&&!t.y.isInRange(v))return null;var g=[{x:f+h,y:v},{x:f,y:v}];return s==="left"?g.reverse():g}if(n){var y=u.x,m=t.x.apply(y,{position:o});if(_r(u,"discard")&&!t.x.isInRange(m))return null;var x=[{x:m,y:c+p},{x:m,y:c}];return l==="top"?x.reverse():x}if(a){var S=u.segment,w=S.map(function(O){return t.apply(O,{position:o})});return _r(u,"discard")&&Woe(w,function(O){return!t.isInRange(O)})?null:w}return null};function use(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,o=e.shape,l=e.className,s=e.alwaysShow,u=Yle(),f=sR(a),c=uR(i),h=Kle();if(!u||!h)return null;aa(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=n1({x:f.scale,y:c.scale}),b=wt(t),v=wt(n),g=r&&r.length===2,y=sse(p,b,v,g,h,e.position,f.orientation,c.orientation,e);if(!y)return null;var m=nse(y,2),x=m[0],S=x.x,w=x.y,O=m[1],A=O.x,_=O.y,T=_r(e,"hidden")?"url(#".concat(u,")"):void 0,M=WA(WA({clipPath:T},oe(e,!0)),{},{x1:S,y1:w,x2:A,y2:_});return D.createElement($e,{className:me("recharts-reference-line",l)},lse(o,M),Nt.renderCallByParent(e,Ule({x1:S,y1:w,x2:A,y2:_})))}var a1=function(e){function t(){return Vle(this,t),Wle(this,t,arguments)}return ese(t,e),Qle(t,[{key:"render",value:function(){return D.createElement(use,this.props)}}])}(D.Component);r1(a1,"displayName","ReferenceLine");r1(a1,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function b0(){return b0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b0.apply(this,arguments)}function ts(e){"@babel/helpers - typeof";return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(e)}function JA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function e2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JA(Object(n),!0).forEach(function(r){ly(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,yR(r.key),r)}}function dse(e,t,n){return t&&fse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hse(e,t,n){return t=zh(t),pse(e,pR()?Reflect.construct(t,n||[],zh(e).constructor):t.apply(e,n))}function pse(e,t){if(t&&(ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yse(e)}function yse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pR=function(){return!!e})()}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zh(e)}function mse(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&&x0(e,t)}function x0(e,t){return x0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},x0(e,t)}function ly(e,t,n){return t=yR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yR(e){var t=vse(e,"string");return ts(t)=="symbol"?t:t+""}function vse(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var gse=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,o=n1({x:a.scale,y:i.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return _r(t,"discard")&&!o.isInRange(l)?null:l},sy=function(e){function t(){return cse(this,t),hse(this,t,arguments)}return mse(t,e),dse(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,o=r.r,l=r.alwaysShow,s=r.clipPathId,u=wt(a),f=wt(i);if(aa(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!f)return null;var c=gse(this.props);if(!c)return null;var h=c.x,p=c.y,b=this.props,v=b.shape,g=b.className,y=_r(this.props,"hidden")?"url(#".concat(s,")"):void 0,m=e2(e2({clipPath:y},oe(this.props,!0)),{},{cx:h,cy:p});return D.createElement($e,{className:me("recharts-reference-dot",g)},t.renderDot(v,m),Nt.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(D.Component);ly(sy,"displayName","ReferenceDot");ly(sy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});ly(sy,"renderDot",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):ue(e)?n=e(t):n=D.createElement(t1,b0({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function S0(){return S0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S0.apply(this,arguments)}function ns(e){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ns(e)}function t2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function n2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t2(Object(n),!0).forEach(function(r){uy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,vR(r.key),r)}}function Sse(e,t,n){return t&&xse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function wse(e,t,n){return t=Bh(t),Ose(e,mR()?Reflect.construct(t,n||[],Bh(e).constructor):t.apply(e,n))}function Ose(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jse(e)}function jse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mR=function(){return!!e})()}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(e)}function Ase(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&&w0(e,t)}function w0(e,t){return w0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},w0(e,t)}function uy(e,t,n){return t=vR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vR(e){var t=Ese(e,"string");return ns(t)=="symbol"?t:t+""}function Ese(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _se=function(t,n,r,a,i){var o=i.x1,l=i.x2,s=i.y1,u=i.y2,f=i.xAxis,c=i.yAxis;if(!f||!c)return null;var h=n1({x:f.scale,y:c.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(s,{position:"start"}):h.y.rangeMin},b={x:n?h.x.apply(l,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(u,{position:"end"}):h.y.rangeMax};return _r(i,"discard")&&(!h.isInRange(p)||!h.isInRange(b))?null:eR(p,b)},cy=function(e){function t(){return bse(this,t),wse(this,t,arguments)}return Ase(t,e),Sse(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,o=r.y1,l=r.y2,s=r.className,u=r.alwaysShow,f=r.clipPathId;aa(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var c=wt(a),h=wt(i),p=wt(o),b=wt(l),v=this.props.shape;if(!c&&!h&&!p&&!b&&!v)return null;var g=_se(c,h,p,b,this.props);if(!g&&!v)return null;var y=_r(this.props,"hidden")?"url(#".concat(f,")"):void 0;return D.createElement($e,{className:me("recharts-reference-area",s)},t.renderRect(v,n2(n2({clipPath:y},oe(this.props,!0)),g)),Nt.renderCallByParent(this.props,g))}}])}(D.Component);uy(cy,"displayName","ReferenceArea");uy(cy,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});uy(cy,"renderRect",function(e,t){var n;return D.isValidElement(e)?n=D.cloneElement(e,t):ue(e)?n=e(t):n=D.createElement(e1,S0({},t,{className:"recharts-reference-area-rect"})),n});function gR(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function Tse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return qle(r,n)}function Cse(e,t,n){var r=n==="width",a=e.x,i=e.y,o=e.width,l=e.height;return t===1?{start:r?a:i,end:r?a+o:i+l}:{start:r?a+o:i+l,end:r?a:i}}function Ih(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function Nse(e,t){return gR(e,t+1)}function Mse(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,l=t.end,s=0,u=1,f=o,c=function(){var b=r==null?void 0:r[s];if(b===void 0)return{v:gR(r,u)};var v=s,g,y=function(){return g===void 0&&(g=n(b,v)),g},m=b.coordinate,x=s===0||Ih(e,m,y,f,l);x||(s=0,f=o,u+=1),x&&(f=m+e*(y()/2+a),s+=u)},h;u<=i.length;)if(h=c(),h)return h.v;return[]}function jc(e){"@babel/helpers - typeof";return jc=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},jc(e)}function r2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r2(Object(n),!0).forEach(function(r){Pse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pse(e,t,n){return t=Rse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rse(e){var t=$se(e,"string");return jc(t)=="symbol"?t:t+""}function $se(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Dse(e,t,n,r,a){for(var i=(r||[]).slice(),o=i.length,l=t.start,s=t.end,u=function(h){var p=i[h],b,v=function(){return b===void 0&&(b=n(p,h)),b};if(h===o-1){var g=e*(p.coordinate+e*v()/2-s);i[h]=p=Gt(Gt({},p),{},{tickCoord:g>0?p.coordinate-g*e:p.coordinate})}else i[h]=p=Gt(Gt({},p),{},{tickCoord:p.coordinate});var y=Ih(e,p.tickCoord,v,l,s);y&&(s=p.tickCoord-e*(v()/2+a),i[h]=Gt(Gt({},p),{},{isShow:!0}))},f=o-1;f>=0;f--)u(f);return i}function kse(e,t,n,r,a,i){var o=(r||[]).slice(),l=o.length,s=t.start,u=t.end;if(i){var f=r[l-1],c=n(f,l-1),h=e*(f.coordinate+e*c/2-u);o[l-1]=f=Gt(Gt({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=Ih(e,f.tickCoord,function(){return c},s,u);p&&(u=f.tickCoord-e*(c/2+a),o[l-1]=Gt(Gt({},f),{},{isShow:!0}))}for(var b=i?l-1:l,v=function(m){var x=o[m],S,w=function(){return S===void 0&&(S=n(x,m)),S};if(m===0){var O=e*(x.coordinate-e*w()/2-s);o[m]=x=Gt(Gt({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[m]=x=Gt(Gt({},x),{},{tickCoord:x.coordinate});var A=Ih(e,x.tickCoord,w,s,u);A&&(s=x.tickCoord+e*(w()/2+a),o[m]=Gt(Gt({},x),{},{isShow:!0}))},g=0;g<b;g++)v(g);return o}function Lse(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,o=e.minTickGap,l=e.orientation,s=e.interval,u=e.tickFormatter,f=e.unit,c=e.angle;if(!a||!a.length||!r)return[];if(K(s)||Ns.isSsr)return Nse(a,typeof s=="number"&&K(s)?s:0);var h=[],p=l==="top"||l==="bottom"?"width":"height",b=f&&p==="width"?Su(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=function(x,S){var w=ue(u)?u(x.value,S):x.value;return p==="width"?Tse(Su(w,{fontSize:t,letterSpacing:n}),b,c):Su(w,{fontSize:t,letterSpacing:n})[p]},g=a.length>=2?Zt(a[1].coordinate-a[0].coordinate):1,y=Cse(i,g,p);return s==="equidistantPreserveStart"?Mse(g,y,v,a,o):(s==="preserveStart"||s==="preserveStartEnd"?h=kse(g,y,v,a,o,s==="preserveStartEnd"):h=Dse(g,y,v,a,o),h.filter(function(m){return m.isShow}))}var zse=["viewBox"],Bse=["viewBox"],Ise=["ticks"];function rs(e){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rs(e)}function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jo.apply(this,arguments)}function a2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function gt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a2(Object(n),!0).forEach(function(r){i1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pm(e,t){if(e==null)return{};var n=Use(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Use(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Hse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i2(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,xR(r.key),r)}}function qse(e,t,n){return t&&i2(e.prototype,t),n&&i2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Fse(e,t,n){return t=Uh(t),Gse(e,bR()?Reflect.construct(t,n||[],Uh(e).constructor):t.apply(e,n))}function Gse(e,t){if(t&&(rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yse(e)}function Yse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bR=function(){return!!e})()}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(e)}function Kse(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&&O0(e,t)}function O0(e,t){return O0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},O0(e,t)}function i1(e,t,n){return t=xR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xR(e){var t=Vse(e,"string");return rs(t)=="symbol"?t:t+""}function Vse(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fy=function(e){function t(n){var r;return Hse(this,t),r=Fse(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Kse(t,e),qse(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,o=Pm(r,zse),l=this.props,s=l.viewBox,u=Pm(l,Bse);return!sl(i,s)||!sl(o,u)||!sl(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.x,o=a.y,l=a.width,s=a.height,u=a.orientation,f=a.tickSize,c=a.mirror,h=a.tickMargin,p,b,v,g,y,m,x=c?-1:1,S=r.tickSize||f,w=K(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=b=r.coordinate,g=o+ +!c*s,v=g-x*S,m=v-x*h,y=w;break;case"left":v=g=r.coordinate,b=i+ +!c*l,p=b-x*S,y=p-x*h,m=w;break;case"right":v=g=r.coordinate,b=i+ +c*l,p=b+x*S,y=p+x*h,m=w;break;default:p=b=r.coordinate,g=o+ +c*s,v=g+x*S,m=v+x*h,y=w;break}return{line:{x1:p,y1:v,x2:b,y2:g},tick:{x:y,y:m}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o;switch(a){case"left":o=i?"start":"end";break;case"right":o=i?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,o="end";switch(a){case"left":case"right":o="middle";break;case"top":o=i?"start":"end";break;default:o=i?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,o=r.width,l=r.height,s=r.orientation,u=r.mirror,f=r.axisLine,c=gt(gt(gt({},oe(this.props,!1)),oe(f,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!u||s==="bottom"&&u);c=gt(gt({},c),{},{x1:a,y1:i+h*l,x2:a+o,y2:i+h*l})}else{var p=+(s==="left"&&!u||s==="right"&&u);c=gt(gt({},c),{},{x1:a+p*o,y1:i,x2:a+p*o,y2:i+l})}return D.createElement("line",Jo({},c,{className:me("recharts-cartesian-axis-line",Nn(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var o=this,l=this.props,s=l.tickLine,u=l.stroke,f=l.tick,c=l.tickFormatter,h=l.unit,p=Lse(gt(gt({},this.props),{},{ticks:r}),a,i),b=this.getTickTextAnchor(),v=this.getTickVerticalAnchor(),g=oe(this.props,!1),y=oe(f,!1),m=gt(gt({},g),{},{fill:"none"},oe(s,!1)),x=p.map(function(S,w){var O=o.getTickLineCoord(S),A=O.line,_=O.tick,T=gt(gt(gt(gt({textAnchor:b,verticalAnchor:v},g),{},{stroke:"none",fill:u},y),_),{},{index:w,payload:S,visibleTicksCount:p.length,tickFormatter:c});return D.createElement($e,Jo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(S.value,"-").concat(S.coordinate,"-").concat(S.tickCoord)},lo(o.props,S,w)),s&&D.createElement("line",Jo({},m,A,{className:me("recharts-cartesian-axis-tick-line",Nn(s,"className"))})),f&&t.renderTickItem(f,T,"".concat(ue(c)?c(S.value,w):S.value).concat(h||"")))});return D.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,o=a.width,l=a.height,s=a.ticksGenerator,u=a.className,f=a.hide;if(f)return null;var c=this.props,h=c.ticks,p=Pm(c,Ise),b=h;return ue(s)&&(b=h&&h.length>0?s(this.props):s(p)),o<=0||l<=0||!b||!b.length?null:D.createElement($e,{className:me("recharts-cartesian-axis",u),ref:function(g){r.layerReference=g}},i&&this.renderAxisLine(),this.renderTicks(b,this.state.fontSize,this.state.letterSpacing),Nt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var o,l=me(a.className,"recharts-cartesian-axis-tick-value");return D.isValidElement(r)?o=D.cloneElement(r,gt(gt({},a),{},{className:l})):ue(r)?o=r(gt(gt({},a),{},{className:l})):o=D.createElement(so,Jo({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(j.Component);i1(fy,"displayName","CartesianAxis");i1(fy,"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 as(e){"@babel/helpers - typeof";return as=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},as(e)}function Xse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,OR(r.key),r)}}function Wse(e,t,n){return t&&Qse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zse(e,t,n){return t=Hh(t),Jse(e,SR()?Reflect.construct(t,n||[],Hh(e).constructor):t.apply(e,n))}function Jse(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return eue(e)}function eue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SR=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(e)}function tue(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&&j0(e,t)}function j0(e,t){return j0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},j0(e,t)}function wR(e,t,n){return t=OR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OR(e){var t=nue(e,"string");return as(t)=="symbol"?t:t+""}function nue(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function A0(){return A0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},A0.apply(this,arguments)}function rue(e){var t=e.xAxisId,n=cR(),r=fR(),a=sR(t);return a==null?null:j.createElement(fy,A0({},a,{className:me("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return $i(o,!0)}}))}var dy=function(e){function t(){return Xse(this,t),Zse(this,t,arguments)}return tue(t,e),Wse(t,[{key:"render",value:function(){return j.createElement(rue,this.props)}}])}(j.Component);wR(dy,"displayName","XAxis");wR(dy,"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 is(e){"@babel/helpers - typeof";return is=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},is(e)}function aue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ER(r.key),r)}}function oue(e,t,n){return t&&iue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lue(e,t,n){return t=qh(t),sue(e,jR()?Reflect.construct(t,n||[],qh(e).constructor):t.apply(e,n))}function sue(e,t){if(t&&(is(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uue(e)}function uue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jR=function(){return!!e})()}function qh(e){return qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qh(e)}function cue(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&&E0(e,t)}function E0(e,t){return E0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},E0(e,t)}function AR(e,t,n){return t=ER(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ER(e){var t=fue(e,"string");return is(t)=="symbol"?t:t+""}function fue(e,t){if(is(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(is(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _0(){return _0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_0.apply(this,arguments)}var due=function(t){var n=t.yAxisId,r=cR(),a=fR(),i=uR(n);return i==null?null:j.createElement(fy,_0({},i,{className:me("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(l){return $i(l,!0)}}))},hy=function(e){function t(){return aue(this,t),lue(this,t,arguments)}return cue(t,e),oue(t,[{key:"render",value:function(){return j.createElement(due,this.props)}}])}(j.Component);AR(hy,"displayName","YAxis");AR(hy,"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 o2(e){return mue(e)||yue(e)||pue(e)||hue()}function hue(){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 pue(e,t){if(e){if(typeof e=="string")return T0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return T0(e,t)}}function yue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function mue(e){if(Array.isArray(e))return T0(e)}function T0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var C0=function(t,n,r,a,i){var o=Wn(t,a1),l=Wn(t,sy),s=[].concat(o2(o),o2(l)),u=Wn(t,cy),f="".concat(a,"Id"),c=a[0],h=n;if(s.length&&(h=s.reduce(function(v,g){if(g.props[f]===r&&_r(g.props,"extendDomain")&&K(g.props[c])){var y=g.props[c];return[Math.min(v[0],y),Math.max(v[1],y)]}return v},h)),u.length){var p="".concat(c,"1"),b="".concat(c,"2");h=u.reduce(function(v,g){if(g.props[f]===r&&_r(g.props,"extendDomain")&&K(g.props[p])&&K(g.props[b])){var y=g.props[p],m=g.props[b];return[Math.min(v[0],y,m),Math.max(v[1],y,m)]}return v},h)}return i&&i.length&&(h=i.reduce(function(v,g){return K(g)?[Math.min(v[0],g),Math.max(v[1],g)]:v},h)),h},_R={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(s,u,f){this.fn=s,this.context=u,this.once=f||!1}function i(s,u,f,c,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new a(f,c||s,h),b=n?n+u:u;return s._events[b]?s._events[b].fn?s._events[b]=[s._events[b],p]:s._events[b].push(p):(s._events[b]=p,s._eventsCount++),s}function o(s,u){--s._eventsCount===0?s._events=new r:delete s._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],f,c;if(this._eventsCount===0)return u;for(c in f=this._events)t.call(f,c)&&u.push(n?c.slice(1):c);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},l.prototype.listeners=function(u){var f=n?n+u:u,c=this._events[f];if(!c)return[];if(c.fn)return[c.fn];for(var h=0,p=c.length,b=new Array(p);h<p;h++)b[h]=c[h].fn;return b},l.prototype.listenerCount=function(u){var f=n?n+u:u,c=this._events[f];return c?c.fn?1:c.length:0},l.prototype.emit=function(u,f,c,h,p,b){var v=n?n+u:u;if(!this._events[v])return!1;var g=this._events[v],y=arguments.length,m,x;if(g.fn){switch(g.once&&this.removeListener(u,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,f),!0;case 3:return g.fn.call(g.context,f,c),!0;case 4:return g.fn.call(g.context,f,c,h),!0;case 5:return g.fn.call(g.context,f,c,h,p),!0;case 6:return g.fn.call(g.context,f,c,h,p,b),!0}for(x=1,m=new Array(y-1);x<y;x++)m[x-1]=arguments[x];g.fn.apply(g.context,m)}else{var S=g.length,w;for(x=0;x<S;x++)switch(g[x].once&&this.removeListener(u,g[x].fn,void 0,!0),y){case 1:g[x].fn.call(g[x].context);break;case 2:g[x].fn.call(g[x].context,f);break;case 3:g[x].fn.call(g[x].context,f,c);break;case 4:g[x].fn.call(g[x].context,f,c,h);break;default:if(!m)for(w=1,m=new Array(y-1);w<y;w++)m[w-1]=arguments[w];g[x].fn.apply(g[x].context,m)}}return!0},l.prototype.on=function(u,f,c){return i(this,u,f,c,!1)},l.prototype.once=function(u,f,c){return i(this,u,f,c,!0)},l.prototype.removeListener=function(u,f,c,h){var p=n?n+u:u;if(!this._events[p])return this;if(!f)return o(this,p),this;var b=this._events[p];if(b.fn)b.fn===f&&(!h||b.once)&&(!c||b.context===c)&&o(this,p);else{for(var v=0,g=[],y=b.length;v<y;v++)(b[v].fn!==f||h&&!b[v].once||c&&b[v].context!==c)&&g.push(b[v]);g.length?this._events[p]=g.length===1?g[0]:g:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var f;return u?(f=n?n+u:u,this._events[f]&&o(this,f)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l})(_R);var vue=_R.exports;const gue=Ue(vue);var Rm=new gue,$m="recharts.syncMouseEvents";function Ac(e){"@babel/helpers - typeof";return Ac=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},Ac(e)}function bue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,TR(r.key),r)}}function Sue(e,t,n){return t&&xue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dm(e,t,n){return t=TR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TR(e){var t=wue(e,"string");return Ac(t)=="symbol"?t:t+""}function wue(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Oue=function(){function e(){bue(this,e),Dm(this,"activeIndex",0),Dm(this,"coordinateList",[]),Dm(this,"layout","horizontal")}return Sue(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,o=n.container,l=o===void 0?null:o,s=n.layout,u=s===void 0?null:s,f=n.offset,c=f===void 0?null:f,h=n.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=c??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,o=a.y,l=a.height,s=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,c=i+s+u,h=o+this.offset.top+l/2+f;this.mouseHandlerCallback({pageX:c,pageY:h})}}}])}();function jue(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&K(r)&&K(a))return!0}return!1}function Aue(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function CR(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=Ke(t,n,r,a),l=Ke(t,n,r,i);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function Eue(e,t,n){var r,a,i,o;if(e==="horizontal")r=t.x,i=r,a=n.top,o=n.top+n.height;else if(e==="vertical")a=t.y,o=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,s=t.cy,u=t.innerRadius,f=t.outerRadius,c=t.angle,h=Ke(l,s,u,c),p=Ke(l,s,f,c);r=h.x,a=h.y,i=p.x,o=p.y}else return CR(t);return[{x:r,y:a},{x:i,y:o}]}function Ec(e){"@babel/helpers - typeof";return Ec=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},Ec(e)}function l2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Lf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l2(Object(n),!0).forEach(function(r){_ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ue(e,t,n){return t=Tue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tue(e){var t=Cue(e,"string");return Ec(t)=="symbol"?t:t+""}function Cue(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nue(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,o=e.activeCoordinate,l=e.activePayload,s=e.offset,u=e.activeTooltipIndex,f=e.tooltipAxisBandSize,c=e.layout,h=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!i||!o||h!=="ScatterChart"&&a!=="axis")return null;var b,v=Zg;if(h==="ScatterChart")b=o,v=zae;else if(h==="BarChart")b=Aue(c,o,s,f),v=e1;else if(c==="radial"){var g=CR(o),y=g.cx,m=g.cy,x=g.radius,S=g.startAngle,w=g.endAngle;b={cx:y,cy:m,startAngle:S,endAngle:w,innerRadius:x,outerRadius:x},v=TP}else b={points:Eue(c,o,s)},v=Zg;var O=Lf(Lf(Lf(Lf({stroke:"#ccc",pointerEvents:"none"},s),b),oe(p,!1)),{},{payload:l,payloadIndex:u,className:me("recharts-tooltip-cursor",p.className)});return j.isValidElement(p)?j.cloneElement(p,O):j.createElement(v,O)}var Mue=["item"],Pue=["children","className","width","height","style","compact","title","desc"];function os(e){"@babel/helpers - typeof";return os=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},os(e)}function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},el.apply(this,arguments)}function s2(e,t){return Due(e)||$ue(e,t)||MR(e,t)||Rue()}function Rue(){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 $ue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,o,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(f){u=!0,a=f}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Due(e){if(Array.isArray(e))return e}function u2(e,t){if(e==null)return{};var n=kue(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kue(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,PR(r.key),r)}}function Bue(e,t,n){return t&&zue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iue(e,t,n){return t=Fh(t),Uue(e,NR()?Reflect.construct(t,n||[],Fh(e).constructor):t.apply(e,n))}function Uue(e,t){if(t&&(os(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Hue(e)}function Hue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NR=function(){return!!e})()}function Fh(e){return Fh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fh(e)}function que(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&&N0(e,t)}function N0(e,t){return N0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},N0(e,t)}function ls(e){return Yue(e)||Gue(e)||MR(e)||Fue()}function Fue(){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 MR(e,t){if(e){if(typeof e=="string")return M0(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return M0(e,t)}}function Gue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Yue(e){if(Array.isArray(e))return M0(e)}function M0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?c2(Object(n),!0).forEach(function(r){ae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ae(e,t,n){return t=PR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PR(e){var t=Kue(e,"string");return os(t)=="symbol"?t:t+""}function Kue(e,t){if(os(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(os(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Vue={xAxis:["bottom","top"],yAxis:["left","right"]},Xue={width:"100%",height:"100%"},RR={x:0,y:0};function zf(e){return e}var Que=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Wue=function(t,n,r,a){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var o=i.coordinate,l=a.radius;return I(I(I({},a),Ke(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var s=i.coordinate,u=a.angle;return I(I(I({},a),Ke(a.cx,a.cy,s,u)),{},{angle:u,radius:s})}return RR},py=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,o=(r??[]).reduce(function(l,s){var u=s.props.data;return u&&u.length?[].concat(ls(l),ls(u)):l},[]);return o.length>0?o:t&&t.length&&K(a)&&K(i)?t.slice(a,i+1):[]};function $R(e){return e==="number"?[0,"auto"]:void 0}var P0=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,l=py(n,t);return r<0||!i||!i.length||r>=l.length?null:i.reduce(function(s,u){var f,c=(f=u.props.data)!==null&&f!==void 0?f:n;c&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(c=c.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=c===void 0?l:c;h=og(p,o.dataKey,a)}else h=c&&c[r]||l[r];return h?[].concat(ls(s),[wP(u,h)]):s},[])},f2=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=Que(i,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,f=ate(o,l,u,s);if(f>=0&&u){var c=u[f]&&u[f].value,h=P0(t,n,f,c),p=Wue(r,l,f,i);return{activeTooltipIndex:f,activeLabel:c,activePayload:h,activeCoordinate:p}}return null},Zue=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,h=t.stackOffset,p=vP(f,i);return r.reduce(function(b,v){var g,y=v.type.defaultProps!==void 0?I(I({},v.type.defaultProps),v.props):v.props,m=y.type,x=y.dataKey,S=y.allowDataOverflow,w=y.allowDuplicatedCategory,O=y.scale,A=y.ticks,_=y.includeHidden,T=y[o];if(b[T])return b;var M=py(t.data,{graphicalItems:a.filter(function(Y){var ee,ye=o in Y.props?Y.props[o]:(ee=Y.type.defaultProps)===null||ee===void 0?void 0:ee[o];return ye===T}),dataStartIndex:s,dataEndIndex:u}),L=M.length,E,N,k;jue(y.domain,S,m)&&(E=Kg(y.domain,null,S),p&&(m==="number"||O!=="auto")&&(k=Ou(M,x,"category")));var P=$R(m);if(!E||E.length===0){var $,z=($=y.domain)!==null&&$!==void 0?$:P;if(x){if(E=Ou(M,x,m),m==="category"&&p){var B=KU(E);w&&B?(N=E,E=Ph(0,L)):w||(E=Uj(z,E,v).reduce(function(Y,ee){return Y.indexOf(ee)>=0?Y:[].concat(ls(Y),[ee])},[]))}else if(m==="category")w?E=E.filter(function(Y){return Y!==""&&!ve(Y)}):E=Uj(z,E,v).reduce(function(Y,ee){return Y.indexOf(ee)>=0||ee===""||ve(ee)?Y:[].concat(ls(Y),[ee])},[]);else if(m==="number"){var q=ute(M,a.filter(function(Y){var ee,ye,ke=o in Y.props?Y.props[o]:(ee=Y.type.defaultProps)===null||ee===void 0?void 0:ee[o],fe="hide"in Y.props?Y.props.hide:(ye=Y.type.defaultProps)===null||ye===void 0?void 0:ye.hide;return ke===T&&(_||!fe)}),x,i,f);q&&(E=q)}p&&(m==="number"||O!=="auto")&&(k=Ou(M,x,"category"))}else p?E=Ph(0,L):l&&l[T]&&l[T].hasStack&&m==="number"?E=h==="expand"?[0,1]:SP(l[T].stackGroups,s,u):E=mP(M,a.filter(function(Y){var ee=o in Y.props?Y.props[o]:Y.type.defaultProps[o],ye="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return ee===T&&(_||!ye)}),m,f,!0);if(m==="number")E=C0(c,E,T,i,A),z&&(E=Kg(z,E,S));else if(m==="category"&&z){var F=z,Q=E.every(function(Y){return F.indexOf(Y)>=0});Q&&(E=F)}}return I(I({},b),{},ae({},T,I(I({},y),{},{axisType:i,domain:E,categoricalDomain:k,duplicateDomain:N,originalDomain:(g=y.domain)!==null&&g!==void 0?g:P,isCategorical:p,layout:f})))},{})},Jue=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,o=n.axisIdKey,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,f=t.layout,c=t.children,h=py(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=h.length,b=vP(f,i),v=-1;return r.reduce(function(g,y){var m=y.type.defaultProps!==void 0?I(I({},y.type.defaultProps),y.props):y.props,x=m[o],S=$R("number");if(!g[x]){v++;var w;return b?w=Ph(0,p):l&&l[x]&&l[x].hasStack?(w=SP(l[x].stackGroups,s,u),w=C0(c,w,x,i)):(w=Kg(S,mP(h,r.filter(function(O){var A,_,T=o in O.props?O.props[o]:(A=O.type.defaultProps)===null||A===void 0?void 0:A[o],M="hide"in O.props?O.props.hide:(_=O.type.defaultProps)===null||_===void 0?void 0:_.hide;return T===x&&!M}),"number",f),a.defaultProps.allowDataOverflow),w=C0(c,w,x,i)),I(I({},g),{},ae({},x,I(I({axisType:i},a.defaultProps),{},{hide:!0,orientation:Nn(Vue,"".concat(i,".").concat(v%2),null),domain:w,originalDomain:S,isCategorical:b,layout:f})))}return g},{})},ece=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,s=n.dataStartIndex,u=n.dataEndIndex,f=t.children,c="".concat(a,"Id"),h=Wn(f,i),p={};return h&&h.length?p=Zue(t,{axes:h,graphicalItems:o,axisType:a,axisIdKey:c,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=Jue(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:c,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},tce=function(t){var n=Lo(t),r=$i(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:_x(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:bh(n,r)}},d2=function(t){var n=t.children,r=t.defaultShowTooltip,a=bn(n,Zl),i=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(o=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},nce=function(t){return!t||!t.length?!1:t.some(function(n){var r=ra(n&&n.type);return r&&r.indexOf("Bar")>=0})},h2=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"}},rce=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,o=i===void 0?{}:i,l=t.yAxisMap,s=l===void 0?{}:l,u=r.width,f=r.height,c=r.children,h=r.margin||{},p=bn(c,Zl),b=bn(c,ul),v=Object.keys(s).reduce(function(w,O){var A=s[O],_=A.orientation;return!A.mirror&&!A.hide?I(I({},w),{},ae({},_,w[_]+A.width)):w},{left:h.left||0,right:h.right||0}),g=Object.keys(o).reduce(function(w,O){var A=o[O],_=A.orientation;return!A.mirror&&!A.hide?I(I({},w),{},ae({},_,Nn(w,"".concat(_))+A.height)):w},{top:h.top||0,bottom:h.bottom||0}),y=I(I({},g),v),m=y.bottom;p&&(y.bottom+=p.props.height||Zl.defaultProps.height),b&&n&&(y=lte(y,a,r,n));var x=u-y.left-y.right,S=f-y.top-y.bottom;return I(I({brushBottom:m},y),{},{width:Math.max(x,0),height:Math.max(S,0)})},ace=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},DR=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,s=t.axisComponents,u=t.legendContent,f=t.formatAxisMap,c=t.defaultProps,h=function(y,m){var x=m.graphicalItems,S=m.stackGroups,w=m.offset,O=m.updateId,A=m.dataStartIndex,_=m.dataEndIndex,T=y.barSize,M=y.layout,L=y.barGap,E=y.barCategoryGap,N=y.maxBarSize,k=h2(M),P=k.numericAxisName,$=k.cateAxisName,z=nce(x),B=[];return x.forEach(function(q,F){var Q=py(y.data,{graphicalItems:[q],dataStartIndex:A,dataEndIndex:_}),Y=q.type.defaultProps!==void 0?I(I({},q.type.defaultProps),q.props):q.props,ee=Y.dataKey,ye=Y.maxBarSize,ke=Y["".concat(P,"Id")],fe=Y["".concat($,"Id")],Rt={},vt=s.reduce(function($r,mn){var yy=m["".concat(mn.axisType,"Map")],l1=Y["".concat(mn.axisType,"Id")];yy&&yy[l1]||mn.axisType==="zAxis"||co();var s1=yy[l1];return I(I({},$r),{},ae(ae({},mn.axisType,s1),"".concat(mn.axisType,"Ticks"),$i(s1)))},Rt),X=vt[$],se=vt["".concat($,"Ticks")],de=S&&S[ke]&&S[ke].hasStack&&gte(q,S[ke].stackGroups),H=ra(q.type).indexOf("Bar")>=0,Ve=bh(X,se),ge=[],Me=z&&ite({barSize:T,stackGroups:S,totalSize:ace(vt,$)});if(H){var J,Le,$t=ve(ye)?N:ye,nn=(J=(Le=bh(X,se,!0))!==null&&Le!==void 0?Le:$t)!==null&&J!==void 0?J:0;ge=ote({barGap:L,barCategoryGap:E,bandSize:nn!==Ve?nn:Ve,sizeList:Me[fe],maxBarSize:$t}),nn!==Ve&&(ge=ge.map(function($r){return I(I({},$r),{},{position:I(I({},$r.position),{},{offset:$r.position.offset-nn/2})})}))}var mi=q&&q.type&&q.type.getComposedData;mi&&B.push({props:I(I({},mi(I(I({},vt),{},{displayedData:Q,props:y,dataKey:ee,item:q,bandSize:Ve,barPosition:ge,offset:w,stackedData:de,layout:M,dataStartIndex:A,dataEndIndex:_}))),{},ae(ae(ae({key:q.key||"item-".concat(F)},P,vt[P]),$,vt[$]),"animationId",O)),childIndex:i7(q,y.children),item:q})}),B},p=function(y,m){var x=y.props,S=y.dataStartIndex,w=y.dataEndIndex,O=y.updateId;if(!$w({props:x}))return null;var A=x.children,_=x.layout,T=x.stackOffset,M=x.data,L=x.reverseStackOrder,E=h2(_),N=E.numericAxisName,k=E.cateAxisName,P=Wn(A,r),$=mte(M,P,"".concat(N,"Id"),"".concat(k,"Id"),T,L),z=s.reduce(function(Y,ee){var ye="".concat(ee.axisType,"Map");return I(I({},Y),{},ae({},ye,ece(x,I(I({},ee),{},{graphicalItems:P,stackGroups:ee.axisType===N&&$,dataStartIndex:S,dataEndIndex:w}))))},{}),B=rce(I(I({},z),{},{props:x,graphicalItems:P}),m==null?void 0:m.legendBBox);Object.keys(z).forEach(function(Y){z[Y]=f(x,z[Y],B,Y.replace("Map",""),n)});var q=z["".concat(k,"Map")],F=tce(q),Q=h(x,I(I({},z),{},{dataStartIndex:S,dataEndIndex:w,updateId:O,graphicalItems:P,stackGroups:$,offset:B}));return I(I({formattedGraphicalItems:Q,graphicalItems:P,offset:B,stackGroups:$},F),z)},b=function(g){function y(m){var x,S,w;return Lue(this,y),w=Iue(this,y,[m]),ae(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ae(w,"accessibilityManager",new Oue),ae(w,"handleLegendBBoxUpdate",function(O){if(O){var A=w.state,_=A.dataStartIndex,T=A.dataEndIndex,M=A.updateId;w.setState(I({legendBBox:O},p({props:w.props,dataStartIndex:_,dataEndIndex:T,updateId:M},I(I({},w.state),{},{legendBBox:O}))))}}),ae(w,"handleReceiveSyncEvent",function(O,A,_){if(w.props.syncId===O){if(_===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(A)}}),ae(w,"handleBrushChange",function(O){var A=O.startIndex,_=O.endIndex;if(A!==w.state.dataStartIndex||_!==w.state.dataEndIndex){var T=w.state.updateId;w.setState(function(){return I({dataStartIndex:A,dataEndIndex:_},p({props:w.props,dataStartIndex:A,dataEndIndex:_,updateId:T},w.state))}),w.triggerSyncEvent({dataStartIndex:A,dataEndIndex:_})}}),ae(w,"handleMouseEnter",function(O){var A=w.getMouseInfo(O);if(A){var _=I(I({},A),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var T=w.props.onMouseEnter;ue(T)&&T(_,O)}}),ae(w,"triggeredAfterMouseMove",function(O){var A=w.getMouseInfo(O),_=A?I(I({},A),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var T=w.props.onMouseMove;ue(T)&&T(_,O)}),ae(w,"handleItemMouseEnter",function(O){w.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),ae(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),ae(w,"handleMouseMove",function(O){O.persist(),w.throttleTriggeredAfterMouseMove(O)}),ae(w,"handleMouseLeave",function(O){w.throttleTriggeredAfterMouseMove.cancel();var A={isTooltipActive:!1};w.setState(A),w.triggerSyncEvent(A);var _=w.props.onMouseLeave;ue(_)&&_(A,O)}),ae(w,"handleOuterEvent",function(O){var A=a7(O),_=Nn(w.props,"".concat(A));if(A&&ue(_)){var T,M;/.*touch.*/i.test(A)?M=w.getMouseInfo(O.changedTouches[0]):M=w.getMouseInfo(O),_((T=M)!==null&&T!==void 0?T:{},O)}}),ae(w,"handleClick",function(O){var A=w.getMouseInfo(O);if(A){var _=I(I({},A),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var T=w.props.onClick;ue(T)&&T(_,O)}}),ae(w,"handleMouseDown",function(O){var A=w.props.onMouseDown;if(ue(A)){var _=w.getMouseInfo(O);A(_,O)}}),ae(w,"handleMouseUp",function(O){var A=w.props.onMouseUp;if(ue(A)){var _=w.getMouseInfo(O);A(_,O)}}),ae(w,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),ae(w,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseDown(O.changedTouches[0])}),ae(w,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseUp(O.changedTouches[0])}),ae(w,"handleDoubleClick",function(O){var A=w.props.onDoubleClick;if(ue(A)){var _=w.getMouseInfo(O);A(_,O)}}),ae(w,"handleContextMenu",function(O){var A=w.props.onContextMenu;if(ue(A)){var _=w.getMouseInfo(O);A(_,O)}}),ae(w,"triggerSyncEvent",function(O){w.props.syncId!==void 0&&Rm.emit($m,w.props.syncId,O,w.eventEmitterSymbol)}),ae(w,"applySyncEvent",function(O){var A=w.props,_=A.layout,T=A.syncMethod,M=w.state.updateId,L=O.dataStartIndex,E=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)w.setState(I({dataStartIndex:L,dataEndIndex:E},p({props:w.props,dataStartIndex:L,dataEndIndex:E,updateId:M},w.state)));else if(O.activeTooltipIndex!==void 0){var N=O.chartX,k=O.chartY,P=O.activeTooltipIndex,$=w.state,z=$.offset,B=$.tooltipTicks;if(!z)return;if(typeof T=="function")P=T(B,O);else if(T==="value"){P=-1;for(var q=0;q<B.length;q++)if(B[q].value===O.activeLabel){P=q;break}}var F=I(I({},z),{},{x:z.left,y:z.top}),Q=Math.min(N,F.x+F.width),Y=Math.min(k,F.y+F.height),ee=B[P]&&B[P].value,ye=P0(w.state,w.props.data,P),ke=B[P]?{x:_==="horizontal"?B[P].coordinate:Q,y:_==="horizontal"?Y:B[P].coordinate}:RR;w.setState(I(I({},O),{},{activeLabel:ee,activeCoordinate:ke,activePayload:ye,activeTooltipIndex:P}))}else w.setState(O)}),ae(w,"renderCursor",function(O){var A,_=w.state,T=_.isTooltipActive,M=_.activeCoordinate,L=_.activePayload,E=_.offset,N=_.activeTooltipIndex,k=_.tooltipAxisBandSize,P=w.getTooltipEventType(),$=(A=O.props.active)!==null&&A!==void 0?A:T,z=w.props.layout,B=O.key||"_recharts-cursor";return D.createElement(Nue,{key:B,activeCoordinate:M,activePayload:L,activeTooltipIndex:N,chartName:n,element:O,isActive:$,layout:z,offset:E,tooltipAxisBandSize:k,tooltipEventType:P})}),ae(w,"renderPolarAxis",function(O,A,_){var T=Nn(O,"type.axisType"),M=Nn(w.state,"".concat(T,"Map")),L=O.type.defaultProps,E=L!==void 0?I(I({},L),O.props):O.props,N=M&&M[E["".concat(T,"Id")]];return j.cloneElement(O,I(I({},N),{},{className:me(T,N.className),key:O.key||"".concat(A,"-").concat(_),ticks:$i(N,!0)}))}),ae(w,"renderPolarGrid",function(O){var A=O.props,_=A.radialLines,T=A.polarAngles,M=A.polarRadius,L=w.state,E=L.radiusAxisMap,N=L.angleAxisMap,k=Lo(E),P=Lo(N),$=P.cx,z=P.cy,B=P.innerRadius,q=P.outerRadius;return j.cloneElement(O,{polarAngles:Array.isArray(T)?T:$i(P,!0).map(function(F){return F.coordinate}),polarRadius:Array.isArray(M)?M:$i(k,!0).map(function(F){return F.coordinate}),cx:$,cy:z,innerRadius:B,outerRadius:q,key:O.key||"polar-grid",radialLines:_})}),ae(w,"renderLegend",function(){var O=w.state.formattedGraphicalItems,A=w.props,_=A.children,T=A.width,M=A.height,L=w.props.margin||{},E=T-(L.left||0)-(L.right||0),N=pP({children:_,formattedGraphicalItems:O,legendWidth:E,legendContent:u});if(!N)return null;var k=N.item,P=u2(N,Mue);return j.cloneElement(k,I(I({},P),{},{chartWidth:T,chartHeight:M,margin:L,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),ae(w,"renderTooltip",function(){var O,A=w.props,_=A.children,T=A.accessibilityLayer,M=bn(_,or);if(!M)return null;var L=w.state,E=L.isTooltipActive,N=L.activeCoordinate,k=L.activePayload,P=L.activeLabel,$=L.offset,z=(O=M.props.active)!==null&&O!==void 0?O:E;return j.cloneElement(M,{viewBox:I(I({},$),{},{x:$.left,y:$.top}),active:z,label:P,payload:z?k:[],coordinate:N,accessibilityLayer:T})}),ae(w,"renderBrush",function(O){var A=w.props,_=A.margin,T=A.data,M=w.state,L=M.offset,E=M.dataStartIndex,N=M.dataEndIndex,k=M.updateId;return j.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Rf(w.handleBrushChange,O.props.onChange),data:T,x:K(O.props.x)?O.props.x:L.left,y:K(O.props.y)?O.props.y:L.top+L.height+L.brushBottom-(_.bottom||0),width:K(O.props.width)?O.props.width:L.width,startIndex:E,endIndex:N,updateId:"brush-".concat(k)})}),ae(w,"renderReferenceElement",function(O,A,_){if(!O)return null;var T=w,M=T.clipPathId,L=w.state,E=L.xAxisMap,N=L.yAxisMap,k=L.offset,P=O.type.defaultProps||{},$=O.props,z=$.xAxisId,B=z===void 0?P.xAxisId:z,q=$.yAxisId,F=q===void 0?P.yAxisId:q;return j.cloneElement(O,{key:O.key||"".concat(A,"-").concat(_),xAxis:E[B],yAxis:N[F],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:M})}),ae(w,"renderActivePoints",function(O){var A=O.item,_=O.activePoint,T=O.basePoint,M=O.childIndex,L=O.isRange,E=[],N=A.props.key,k=A.item.type.defaultProps!==void 0?I(I({},A.item.type.defaultProps),A.item.props):A.item.props,P=k.activeDot,$=k.dataKey,z=I(I({index:M,dataKey:$,cx:_.x,cy:_.y,r:4,fill:Jx(A.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},oe(P,!1)),Gd(P));return E.push(y.renderActiveDot(P,z,"".concat(N,"-activePoint-").concat(M))),T?E.push(y.renderActiveDot(P,I(I({},z),{},{cx:T.x,cy:T.y}),"".concat(N,"-basePoint-").concat(M))):L&&E.push(null),E}),ae(w,"renderGraphicChild",function(O,A,_){var T=w.filterFormatItem(O,A,_);if(!T)return null;var M=w.getTooltipEventType(),L=w.state,E=L.isTooltipActive,N=L.tooltipAxis,k=L.activeTooltipIndex,P=L.activeLabel,$=w.props.children,z=bn($,or),B=T.props,q=B.points,F=B.isRange,Q=B.baseLine,Y=T.item.type.defaultProps!==void 0?I(I({},T.item.type.defaultProps),T.item.props):T.item.props,ee=Y.activeDot,ye=Y.hide,ke=Y.activeBar,fe=Y.activeShape,Rt=!!(!ye&&E&&z&&(ee||ke||fe)),vt={};M!=="axis"&&z&&z.props.trigger==="click"?vt={onClick:Rf(w.handleItemMouseEnter,O.props.onClick)}:M!=="axis"&&(vt={onMouseLeave:Rf(w.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Rf(w.handleItemMouseEnter,O.props.onMouseEnter)});var X=j.cloneElement(O,I(I({},T.props),vt));function se(mn){return typeof N.dataKey=="function"?N.dataKey(mn.payload):null}if(Rt)if(k>=0){var de,H;if(N.dataKey&&!N.allowDuplicatedCategory){var Ve=typeof N.dataKey=="function"?se:"payload.".concat(N.dataKey.toString());de=og(q,Ve,P),H=F&&Q&&og(Q,Ve,P)}else de=q==null?void 0:q[k],H=F&&Q&&Q[k];if(fe||ke){var ge=O.props.activeIndex!==void 0?O.props.activeIndex:k;return[j.cloneElement(O,I(I(I({},T.props),vt),{},{activeIndex:ge})),null,null]}if(!ve(de))return[X].concat(ls(w.renderActivePoints({item:T,activePoint:de,basePoint:H,childIndex:k,isRange:F})))}else{var Me,J=(Me=w.getItemByXY(w.state.activeCoordinate))!==null&&Me!==void 0?Me:{graphicalItem:X},Le=J.graphicalItem,$t=Le.item,nn=$t===void 0?O:$t,mi=Le.childIndex,$r=I(I(I({},T.props),vt),{},{activeIndex:mi});return[j.cloneElement(nn,$r),null,null]}return F?[X,null,null]:[X,null]}),ae(w,"renderCustomized",function(O,A,_){return j.cloneElement(O,I(I({key:"recharts-customized-".concat(_)},w.props),w.state))}),ae(w,"renderMap",{CartesianGrid:{handler:zf,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:zf},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:zf},YAxis:{handler:zf},Brush:{handler:w.renderBrush,once:!0},Bar:{handler:w.renderGraphicChild},Line:{handler:w.renderGraphicChild},Area:{handler:w.renderGraphicChild},Radar:{handler:w.renderGraphicChild},RadialBar:{handler:w.renderGraphicChild},Scatter:{handler:w.renderGraphicChild},Pie:{handler:w.renderGraphicChild},Funnel:{handler:w.renderGraphicChild},Tooltip:{handler:w.renderCursor,once:!0},PolarGrid:{handler:w.renderPolarGrid,once:!0},PolarAngleAxis:{handler:w.renderPolarAxis},PolarRadiusAxis:{handler:w.renderPolarAxis},Customized:{handler:w.renderCustomized}}),w.clipPathId="".concat((x=m.id)!==null&&x!==void 0?x:Zc("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=pM(w.triggeredAfterMouseMove,(S=m.throttleDelay)!==null&&S!==void 0?S:1e3/60),w.state={},w}return que(y,g),Bue(y,[{key:"componentDidMount",value:function(){var x,S;this.addListener(),this.accessibilityManager.setDetails({container:this.container,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},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,S=x.children,w=x.data,O=x.height,A=x.layout,_=bn(S,or);if(_){var T=_.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var M=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,L=P0(this.state,w,T,M),E=this.state.tooltipTicks[T].coordinate,N=(this.state.offset.top+O)/2,k=A==="horizontal",P=k?{x:E,y:N}:{y:E,x:N},$=this.state.formattedGraphicalItems.find(function(B){var q=B.item;return q.type.name==="Scatter"});$&&(P=I(I({},P),$.props.points[T].tooltipPosition),L=$.props.points[T].tooltipPayload);var z={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:M,activePayload:L,activeCoordinate:P};this.setState(z),this.renderCursor(_),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,S){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==S.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var w,O;this.accessibilityManager.setDetails({offset:{left:(w=this.props.margin.left)!==null&&w!==void 0?w:0,top:(O=this.props.margin.top)!==null&&O!==void 0?O:0}})}return null}},{key:"componentDidUpdate",value:function(x){sg([bn(x.children,or)],[bn(this.props.children,or)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=bn(this.props.children,or);if(x&&typeof x.props.shared=="boolean"){var S=x.props.shared?"axis":"item";return l.indexOf(S)>=0?S:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var S=this.container,w=S.getBoundingClientRect(),O=PQ(w),A={chartX:Math.round(x.pageX-O.left),chartY:Math.round(x.pageY-O.top)},_=w.width/S.offsetWidth||1,T=this.inRange(A.chartX,A.chartY,_);if(!T)return null;var M=this.state,L=M.xAxisMap,E=M.yAxisMap,N=this.getTooltipEventType(),k=f2(this.state,this.props.data,this.props.layout,T);if(N!=="axis"&&L&&E){var P=Lo(L).scale,$=Lo(E).scale,z=P&&P.invert?P.invert(A.chartX):null,B=$&&$.invert?$.invert(A.chartY):null;return I(I({},A),{},{xValue:z,yValue:B},k)}return k?I(I({},A),k):null}},{key:"inRange",value:function(x,S){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,A=x/w,_=S/w;if(O==="horizontal"||O==="vertical"){var T=this.state.offset,M=A>=T.left&&A<=T.left+T.width&&_>=T.top&&_<=T.top+T.height;return M?{x:A,y:_}:null}var L=this.state,E=L.angleAxisMap,N=L.radiusAxisMap;if(E&&N){var k=Lo(E);return Fj({x:A,y:_},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,S=this.getTooltipEventType(),w=bn(x,or),O={};w&&S==="axis"&&(w.props.trigger==="click"?O={onClick:this.handleClick}:O={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 A=Gd(this.props,this.handleOuterEvent);return I(I({},A),O)}},{key:"addListener",value:function(){Rm.on($m,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Rm.removeListener($m,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,S,w){for(var O=this.state.formattedGraphicalItems,A=0,_=O.length;A<_;A++){var T=O[A];if(T.item===x||T.props.key===x.key||S===ra(T.item.type)&&w===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,S=this.state.offset,w=S.left,O=S.top,A=S.height,_=S.width;return D.createElement("defs",null,D.createElement("clipPath",{id:x},D.createElement("rect",{x:w,y:O,height:A,width:_})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(S,w){var O=s2(w,2),A=O[0],_=O[1];return I(I({},S),{},ae({},A,_.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(S,w){var O=s2(w,2),A=O[0],_=O[1];return I(I({},S),{},ae({},A,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var S;return(S=this.state.xAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getYScaleByAxisId",value:function(x){var S;return(S=this.state.yAxisMap)===null||S===void 0||(S=S[x])===null||S===void 0?void 0:S.scale}},{key:"getItemByXY",value:function(x){var S=this.state,w=S.formattedGraphicalItems,O=S.activeItem;if(w&&w.length)for(var A=0,_=w.length;A<_;A++){var T=w[A],M=T.props,L=T.item,E=L.type.defaultProps!==void 0?I(I({},L.type.defaultProps),L.props):L.props,N=ra(L.type);if(N==="Bar"){var k=(M.data||[]).find(function(B){return gae(x,B)});if(k)return{graphicalItem:T,payload:k}}else if(N==="RadialBar"){var P=(M.data||[]).find(function(B){return Fj(x,B)});if(P)return{graphicalItem:T,payload:P}}else if(ay(T,O)||iy(T,O)||xc(T,O)){var $=ooe({graphicalItem:T,activeTooltipItem:O,itemData:E.data}),z=E.activeIndex===void 0?$:E.activeIndex;return{graphicalItem:I(I({},T),{},{childIndex:z}),payload:xc(T,O)?E.data[$]:T.props.data[$]}}}return null}},{key:"render",value:function(){var x=this;if(!$w(this))return null;var S=this.props,w=S.children,O=S.className,A=S.width,_=S.height,T=S.style,M=S.compact,L=S.title,E=S.desc,N=u2(S,Pue),k=oe(N,!1);if(M)return D.createElement(XA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement(cg,el({},k,{width:A,height:_,title:L,desc:E}),this.renderClipPath(),kw(w,this.renderMap)));if(this.props.accessibilityLayer){var P,$;k.tabIndex=(P=this.props.tabIndex)!==null&&P!==void 0?P:0,k.role=($=this.props.role)!==null&&$!==void 0?$:"application",k.onKeyDown=function(B){x.accessibilityManager.keyboardEvent(B)},k.onFocus=function(){x.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return D.createElement(XA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},D.createElement("div",el({className:me("recharts-wrapper",O),style:I({position:"relative",cursor:"default",width:A,height:_},T)},z,{ref:function(q){x.container=q}}),D.createElement(cg,el({},k,{width:A,height:_,title:L,desc:E,style:Xue}),this.renderClipPath(),kw(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(j.Component);ae(b,"displayName",n),ae(b,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},c)),ae(b,"getDerivedStateFromProps",function(g,y){var m=g.dataKey,x=g.data,S=g.children,w=g.width,O=g.height,A=g.layout,_=g.stackOffset,T=g.margin,M=y.dataStartIndex,L=y.dataEndIndex;if(y.updateId===void 0){var E=d2(g);return I(I(I({},E),{},{updateId:0},p(I(I({props:g},E),{},{updateId:0}),y)),{},{prevDataKey:m,prevData:x,prevWidth:w,prevHeight:O,prevLayout:A,prevStackOffset:_,prevMargin:T,prevChildren:S})}if(m!==y.prevDataKey||x!==y.prevData||w!==y.prevWidth||O!==y.prevHeight||A!==y.prevLayout||_!==y.prevStackOffset||!sl(T,y.prevMargin)){var N=d2(g),k={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},P=I(I({},f2(y,x,A)),{},{updateId:y.updateId+1}),$=I(I(I({},N),k),P);return I(I(I({},$),p(I({props:g},$),y)),{},{prevDataKey:m,prevData:x,prevWidth:w,prevHeight:O,prevLayout:A,prevStackOffset:_,prevMargin:T,prevChildren:S})}if(!sg(S,y.prevChildren)){var z,B,q,F,Q=bn(S,Zl),Y=Q&&(z=(B=Q.props)===null||B===void 0?void 0:B.startIndex)!==null&&z!==void 0?z:M,ee=Q&&(q=(F=Q.props)===null||F===void 0?void 0:F.endIndex)!==null&&q!==void 0?q:L,ye=Y!==M||ee!==L,ke=!ve(x),fe=ke&&!ye?y.updateId:y.updateId+1;return I(I({updateId:fe},p(I(I({props:g},y),{},{updateId:fe,dataStartIndex:Y,dataEndIndex:ee}),y)),{},{prevChildren:S,dataStartIndex:Y,dataEndIndex:ee})}return null}),ae(b,"renderActiveDot",function(g,y,m){var x;return j.isValidElement(g)?x=j.cloneElement(g,y):ue(g)?x=g(y):x=D.createElement(t1,y),D.createElement($e,{className:"recharts-active-dot",key:m},x)});var v=j.forwardRef(function(y,m){return D.createElement(b,el({},y,{ref:m}))});return v.displayName=b.displayName,v},ice=DR({chartName:"BarChart",GraphicalChild:Oo,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:dy},{axisType:"yAxis",AxisComp:hy}],formatAxisMap:Ile}),oce=DR({chartName:"PieChart",GraphicalChild:Sa,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:ry},{axisType:"radiusAxis",AxisComp:ty}],formatAxisMap:Tte,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}});function Ro({title:e,value:t,icon:n,color:r="brand",sub:a}){const i={brand:"text-brand  bg-brand/10",green:"text-green-400  bg-green-400/10",red:"text-red-400    bg-red-400/10",orange:"text-orange-400 bg-orange-400/10",yellow:"text-yellow-400 bg-yellow-400/10",accent:"text-accent  bg-accent/10"},o=i[r]||i.brand;return d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4 flex items-center gap-4",children:[d.jsx("div",{className:`p-3 rounded-lg ${o}`,children:d.jsx(n,{size:20})}),d.jsxs("div",{children:[d.jsx("p",{className:"text-xs text-gray-400",children:e}),d.jsx("p",{className:`text-2xl font-bold ${o.split(" ")[0]}`,children:t}),a&&d.jsx("p",{className:"text-xs text-gray-500",children:a})]})]})}const p2=["#00a0c8","#3ddc97","#f59e0b","#ef4444"];function lce(){const e=localStorage.getItem("esn_tenant")||void 0,{data:t,isLoading:n}=Dn({queryKey:["dashboard",e],queryFn:()=>Y6(e),refetchInterval:3e4});if(n)return d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."});if(!t)return d.jsx("div",{className:"text-red-400 p-8",children:"데이터를 가져올 수 없습니다."});const r=[{name:"ONLINE",value:t.onlineDevices||0},{name:"OFFLINE",value:t.offlineDevices||0}],a=[{name:"오늘 작업",value:t.totalWorkToday||0},{name:"완료",value:t.completedWorkToday||0},{name:"POS 대기",value:t.pendingPosCvt||0},{name:"POS 처리",value:t.processedPosCvtToday||0}];return d.jsxs("div",{className:"space-y-6",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"대시보드"}),d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4",children:[d.jsx(Ro,{title:"전체 매장",value:t.totalStores||0,icon:eg,color:"brand"}),d.jsx(Ro,{title:"운영 매장",value:t.activeStores||0,icon:eg,color:"green"}),d.jsx(Ro,{title:"미해결 알람",value:t.unresolvedAlarms||0,icon:wC,color:"red"}),d.jsx(Ro,{title:"긴급 알람",value:t.criticalAlarms||0,icon:Xb,color:"red"}),d.jsx(Ro,{title:"온라인 장치",value:t.onlineDevices||0,icon:Fu,color:"green"}),d.jsx(Ro,{title:"POS 대기",value:t.pendingPosCvt||0,icon:pp,color:"yellow"})]}),d.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"장치 상태 현황"}),d.jsx(RO,{width:"100%",height:200,children:d.jsxs(oce,{children:[d.jsx(Sa,{data:r,cx:"50%",cy:"50%",outerRadius:70,dataKey:"value",label:({name:i,value:o})=>`${i}: ${o}`,children:r.map((i,o)=>d.jsx(Ip,{fill:p2[o%p2.length]},o))}),d.jsx(or,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}})]})})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("h2",{className:"text-sm font-medium text-gray-300 mb-4",children:"오늘의 작업/POS 현황"}),d.jsx(RO,{width:"100%",height:200,children:d.jsxs(ice,{data:a,children:[d.jsx(dy,{dataKey:"name",tick:{fill:"#9ca3af",fontSize:11}}),d.jsx(hy,{tick:{fill:"#9ca3af",fontSize:11}}),d.jsx(or,{contentStyle:{background:"#1a2234",border:"1px solid #26304a",color:"#fff"}}),d.jsx(Oo,{dataKey:"value",fill:"#00a0c8",radius:[3,3,0,0]})]})})]})]}),d.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:[d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"오늘 작업"}),d.jsx("p",{className:"text-2xl font-bold text-brand",children:t.totalWorkToday||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["완료: ",t.completedWorkToday||0]})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"전체 알람"}),d.jsx("p",{className:"text-2xl font-bold text-yellow-400",children:t.totalAlarms||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["미해결: ",t.unresolvedAlarms||0]})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"전체 장치"}),d.jsx("p",{className:"text-2xl font-bold text-accent",children:t.totalDevices||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["오프라인: ",t.offlineDevices||0]})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsx("p",{className:"text-xs text-gray-400",children:"POS 처리(오늘)"}),d.jsx("p",{className:"text-2xl font-bold text-green-400",children:t.processedPosCvtToday||0}),d.jsxs("p",{className:"text-xs text-gray-500",children:["대기: ",t.pendingPosCvt||0]})]})]})]})}function sce(){const e=$n(),[t,n]=j.useState(null),[r,a]=j.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["stores",r],queryFn:()=>X6({keyword:r||void 0})}),l=Ht({mutationFn:u=>u.id?W6(u.id,u):Q6(u),onSuccess:()=>{e.invalidateQueries({queryKey:["stores"]}),n(null)}}),s=Ht({mutationFn:Z6,onSuccess:()=>e.invalidateQueries({queryKey:["stores"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"매장 관리"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{value:r,onChange:u=>a(u.target.value),placeholder:"매장명·코드 검색",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-48"}),d.jsxs("button",{onClick:()=>n({}),className:"flex items-center gap-1.5 bg-brand hover:bg-brand2 text-white px-3 py-1.5 rounded text-sm",children:[d.jsx(N5,{size:14})," 매장 추가"]})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","코드","매장명","주소","담당자","상태","액션"].map(u=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:u.tenantCode}),d.jsx("td",{className:"px-4 py-3 text-gray-300 font-mono text-xs",children:u.storeCode}),d.jsx("td",{className:"px-4 py-3 text-white",children:u.storeName}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs truncate max-w-xs",children:u.address}),d.jsx("td",{className:"px-4 py-3 text-gray-400",children:u.managerName}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:u.active?"운영":"중지"})}),d.jsx("td",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>n(u),className:"text-brand hover:text-blue-300",children:d.jsx(R5,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})]})})]},u.id)),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"매장이 없습니다"})})]})]})}),t&&d.jsx("div",{className:"fixed inset-0 bg-black/60 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 w-full max-w-md",children:[d.jsxs("div",{className:"flex justify-between mb-4",children:[d.jsx("h2",{className:"font-semibold",children:t.id?"매장 수정":"매장 추가"}),d.jsx("button",{onClick:()=>n(null),children:d.jsx(I5,{size:16})})]}),d.jsx(uce,{initial:t,onSave:u=>l.mutate(u)})]})})]})}function uce({initial:e,onSave:t}){const[n,r]=j.useState({tenantCode:e.tenantCode||"",storeCode:e.storeCode||"",storeName:e.storeName||"",address:e.address||"",phone:e.phone||"",managerName:e.managerName||"",active:e.active!==!1,id:e.id}),a=i=>o=>r(l=>({...l,[i]:o.target.value}));return d.jsxs("form",{onSubmit:i=>{i.preventDefault(),t(n)},className:"space-y-3",children:[[{label:"테넌트",key:"tenantCode",type:"select",opts:["LGINNOTEK","LGIT","EMART","ZIOINFO"]},{label:"매장코드",key:"storeCode"},{label:"매장명",key:"storeName"},{label:"주소",key:"address"},{label:"전화",key:"phone"},{label:"담당자",key:"managerName"}].map(({label:i,key:o,type:l,opts:s})=>d.jsxs("div",{children:[d.jsx("label",{className:"block text-xs text-gray-400 mb-1",children:i}),l==="select"?d.jsx("select",{value:n[o],onChange:a(o),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white",children:(s||[]).map(u=>d.jsx("option",{value:u,children:u},u))}):d.jsx("input",{value:n[o],onChange:a(o),className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-white"})]},o)),d.jsx("button",{type:"submit",className:"w-full bg-brand hover:bg-brand2 text-white py-2 rounded text-sm",children:"저장"})]})}function cce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["templates"],queryFn:()=>J6()}),r=Ht({mutationFn:ez,onSuccess:()=>e.invalidateQueries({queryKey:["templates"]})});return n?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("div",{className:"flex items-center justify-between",children:d.jsx("h1",{className:"text-xl font-semibold text-white",children:"ESL 템플릿"})}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[t.map(a=>d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsxs("div",{className:"flex justify-between items-start mb-2",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm font-medium text-white",children:a.templateName}),d.jsxs("p",{className:"text-xs text-brand mt-0.5",children:[a.tenantCode," · ",a.templateType]})]}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(a.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})]}),d.jsx("div",{className:"bg-panel border border-edge rounded p-3 flex items-center justify-center",style:{height:Math.min((a.height||76)/2+40,120)},children:d.jsxs("div",{className:"text-center",children:[d.jsxs("p",{className:"text-xs text-gray-400",children:[a.width,"×",a.height,"px"]}),d.jsx("p",{className:"text-xs text-gray-500 mt-1",children:a.description})]})}),d.jsxs("p",{className:"text-xs text-gray-500 mt-2",children:["코드: ",a.templateCode]})]},a.id)),t.length===0&&d.jsx("div",{className:"col-span-3 text-center text-gray-500 py-8",children:"템플릿이 없습니다"})]})]})}function fce(){const e=$n(),[t,n]=j.useState("PENDING"),[r,a]=j.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["pos-cvt",t,r],queryFn:()=>tz({status:t||void 0,keyword:r||void 0})}),l=Ht({mutationFn:nz,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})}),s=Ht({mutationFn:rz,onSuccess:()=>e.invalidateQueries({queryKey:["pos-cvt"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"POS 가격 변환"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{value:r,onChange:u=>a(u.target.value),placeholder:"상품코드·상품명 검색",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-48"}),d.jsx("select",{value:t,onChange:u=>n(u.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:["","PENDING","PROCESSED","ERROR","IGNORED"].map(u=>d.jsx("option",{value:u,children:u||"전체"},u))})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","매장","상품코드","상품명","정가","판매가","상태","수신일시","액션"].map(u=>d.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>{var f,c;return d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:u.tenantCode}),d.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:u.storeName||"-"}),d.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:u.productCode}),d.jsx("td",{className:"px-3 py-3 text-white text-xs",children:u.productName}),d.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(f=u.price)==null?void 0:f.toLocaleString()}),d.jsx("td",{className:"px-3 py-3 text-accent text-xs",children:(c=u.salePrice)==null?void 0:c.toLocaleString()}),d.jsx("td",{className:"px-3 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.status==="PROCESSED"?"bg-green-500/20 text-green-400":u.status==="PENDING"?"bg-yellow-500/20 text-yellow-400":u.status==="ERROR"?"bg-red-500/20 text-red-400":"bg-gray-500/20 text-gray-400"}`,children:u.status})}),d.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-3 py-3",children:u.status==="PENDING"&&d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>l.mutate(u.id),title:"처리",className:"text-green-400 hover:text-green-300",children:d.jsx(Vb,{size:14})}),d.jsx("button",{onClick:()=>s.mutate(u.id),title:"무시",className:"text-gray-400 hover:text-gray-300",children:d.jsx(f5,{size:14})})]})})]},u.id)}),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"데이터가 없습니다"})})]})]})})]})}function dce({severity:e}){const t={CRITICAL:"bg-red-500/20    text-red-400    border border-red-500/40",HIGH:"bg-orange-500/20 text-orange-400 border border-orange-500/40",MEDIUM:"bg-yellow-500/20 text-yellow-400 border border-yellow-500/40",LOW:"bg-gray-500/20   text-gray-400   border border-gray-500/40"},n=t[e]||t.LOW;return d.jsx("span",{className:`px-2 py-0.5 rounded text-xs font-medium ${n}`,children:e})}function hce(){const e=$n(),[t,n]=j.useState(""),[r,a]=j.useState("OPEN"),{data:i=[],isLoading:o}=Dn({queryKey:["alarms",t,r],queryFn:()=>az({severity:t||void 0,status:r||void 0})}),l=Ht({mutationFn:({id:u,resolution:f})=>iz(u,f),onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})}),s=Ht({mutationFn:oz,onSuccess:()=>e.invalidateQueries({queryKey:["alarms"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"알람 관리"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("select",{value:t,onChange:u=>n(u.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 심각도"}),["CRITICAL","HIGH","MEDIUM","LOW"].map(u=>d.jsx("option",{value:u,children:u},u))]}),d.jsxs("select",{value:r,onChange:u=>a(u.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 상태"}),["OPEN","ACKNOWLEDGED","RESOLVED"].map(u=>d.jsx("option",{value:u,children:u},u))]})]})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["매장","유형","심각도","메시지","상태","발생일시","액션"].map(u=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:u},u))})}),d.jsxs("tbody",{children:[i.map(u=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30 transition-colors",children:[d.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.storeName||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:u.alarmType}),d.jsx("td",{className:"px-4 py-3",children:d.jsx(dce,{severity:u.severity})}),d.jsx("td",{className:"px-4 py-3 text-gray-400 max-w-xs truncate",children:u.message}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${u.status==="RESOLVED"?"bg-green-500/20 text-green-400":u.status==="OPEN"?"bg-red-500/20 text-red-400":"bg-yellow-500/20 text-yellow-400"}`,children:u.status})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsxs("div",{className:"flex gap-2",children:[u.status!=="RESOLVED"&&d.jsx("button",{onClick:()=>l.mutate({id:u.id,resolution:"운영자 확인 후 해결"}),className:"text-green-400 hover:text-green-300",title:"해결 처리",children:d.jsx(Vb,{size:14})}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&s.mutate(u.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})]})})]},u.id)),i.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:7,className:"px-4 py-8 text-center text-gray-500",children:"알람이 없습니다"})})]})]})})]})}const pce={ONLINE:d.jsx(TC,{size:14,className:"text-green-400"}),OFFLINE:d.jsx(_C,{size:14,className:"text-red-400"}),ERROR:d.jsx(Xb,{size:14,className:"text-orange-400"}),UPDATING:d.jsx(Fu,{size:14,className:"text-yellow-400"})},yce={ONLINE:"border-green-500/30 bg-green-500/5",OFFLINE:"border-red-500/30 bg-red-500/5",ERROR:"border-orange-500/30 bg-orange-500/5",UPDATING:"border-yellow-500/30 bg-yellow-500/5"};function mce(){const e=$n(),[t,n]=D.useState(""),[r,a]=D.useState(""),{data:i=[],isLoading:o}=Dn({queryKey:["hcore",t,r],queryFn:()=>lz({deviceType:t||void 0,status:r||void 0}),refetchInterval:15e3}),l=Ht({mutationFn:({id:s,status:u})=>sz(s,u),onSuccess:()=>e.invalidateQueries({queryKey:["hcore"]})});return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"HCore 장치 현황"}),d.jsxs("div",{className:"flex gap-2",children:[d.jsxs("select",{value:t,onChange:s=>n(s.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 유형"}),["GATEWAY","HUB","ESL_DEVICE"].map(s=>d.jsx("option",{value:s,children:s},s))]}),d.jsxs("select",{value:r,onChange:s=>a(s.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 상태"}),["ONLINE","OFFLINE","ERROR","UPDATING"].map(s=>d.jsx("option",{value:s,children:s},s))]})]})]}),d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3",children:[i.map(s=>d.jsxs("div",{className:`border rounded-lg p-4 ${yce[s.status]||"border-edge bg-card"}`,children:[d.jsxs("div",{className:"flex items-center justify-between mb-2",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[pce[s.status],d.jsx("span",{className:"text-xs font-mono text-gray-300",children:s.deviceId})]}),d.jsx("span",{className:"text-xs text-brand",children:s.deviceType})]}),d.jsx("p",{className:"text-xs text-gray-400",children:s.storeName||"미배정"}),d.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["FW: ",s.firmwareVersion||"-"]}),s.ipAddress&&d.jsx("p",{className:"text-xs text-gray-600 font-mono",children:s.ipAddress}),s.batteryLevel!=null&&d.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[d.jsx(SC,{size:12,className:s.batteryLevel<20?"text-red-400":"text-gray-400"}),d.jsxs("span",{className:`text-xs ${s.batteryLevel<20?"text-red-400":"text-gray-400"}`,children:[s.batteryLevel,"%"]})]}),s.status==="OFFLINE"&&d.jsx("button",{onClick:()=>l.mutate({id:s.id,status:"ONLINE"}),className:"mt-2 text-xs text-brand hover:underline",children:"온라인으로 변경"})]},s.id)),i.length===0&&d.jsx("div",{className:"col-span-4 text-center text-gray-500 py-8",children:"장치가 없습니다"})]})]})}const vce={SCHEDULED:"bg-blue-500/20 text-blue-400",IN_PROGRESS:"bg-yellow-500/20 text-yellow-400",COMPLETED:"bg-green-500/20 text-green-400",CANCELLED:"bg-gray-500/20 text-gray-400"};function gce(){const{data:e=[],isLoading:t}=Dn({queryKey:["works"],queryFn:()=>uz()});return t?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"작업 이력"}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","매장","작업유형","작업내용","담당자","상태","시작일시","완료일시"].map(n=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:n},n))})}),d.jsxs("tbody",{children:[e.map(n=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:n.tenantCode}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.storeName||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:n.workType}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs max-w-xs truncate",children:n.workContent}),d.jsx("td",{className:"px-4 py-3 text-gray-300",children:n.workerName}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${vce[n.status]||"bg-gray-500/20 text-gray-400"}`,children:n.status})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:n.startedAt?new Date(n.startedAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:n.completedAt?new Date(n.completedAt).toLocaleString("ko-KR"):"-"})]},n.id)),e.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:8,className:"px-4 py-8 text-center text-gray-500",children:"작업 이력이 없습니다"})})]})]})})]})}function bce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["firmware"],queryFn:()=>cz()}),r=Ht({mutationFn:fz,onSuccess:()=>e.invalidateQueries({queryKey:["firmware"]})});return n?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"펌웨어 관리"}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["버전","테넌트","장치유형","파일명","크기","체크섬","최신","등록일","액션"].map(a=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:a},a))})}),d.jsxs("tbody",{children:[t.map(a=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-brand font-mono text-xs",children:a.firmwareVersion}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.tenantCode}),d.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:a.deviceType}),d.jsx("td",{className:"px-4 py-3 text-gray-300 text-xs",children:a.fileName}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.fileSize?`${(a.fileSize/1024).toFixed(1)}KB`:"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs font-mono truncate max-w-[80px]",children:a.checksum?a.checksum.substring(0,8)+"...":"-"}),d.jsx("td",{className:"px-4 py-3",children:a.latest&&d.jsx($5,{size:14,className:"text-yellow-400",fill:"currentColor"})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:a.createdAt?new Date(a.createdAt).toLocaleDateString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(a.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})})]},a.id)),t.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:9,className:"px-4 py-8 text-center text-gray-500",children:"펌웨어가 없습니다"})})]})]})})]})}function xce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["users"],queryFn:()=>dz()}),r=Ht({mutationFn:hz,onSuccess:()=>e.invalidateQueries({queryKey:["users"]})});return n?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"사용자 관리"}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["아이디","테넌트","역할","이메일","전화","상태","마지막 로그인","액션"].map(a=>d.jsx("th",{className:"px-4 py-3 text-left text-xs text-gray-400 font-medium",children:a},a))})}),d.jsx("tbody",{children:t.map(a=>d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-4 py-3 text-white font-medium",children:a.username}),d.jsx("td",{className:"px-4 py-3 text-brand text-xs",children:a.tenantCode||"SUPER"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${a.role==="ADMIN"?"bg-red-500/20 text-red-400":a.role==="MANAGER"?"bg-brand/20 text-brand":"bg-gray-500/20 text-gray-400"}`,children:a.role})}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.email||"-"}),d.jsx("td",{className:"px-4 py-3 text-gray-400 text-xs",children:a.phone||"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${a.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:a.active?"활성":"비활성"})}),d.jsx("td",{className:"px-4 py-3 text-gray-500 text-xs",children:a.lastLoginAt?new Date(a.lastLoginAt).toLocaleString("ko-KR"):"-"}),d.jsx("td",{className:"px-4 py-3",children:d.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(a.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})})]},a.id))})]})})]})}function Sce(){const e=$n(),[t,n]=j.useState(""),{data:r=[],isLoading:a}=Dn({queryKey:["products",t],queryFn:()=>pz({keyword:t||void 0})}),i=Ht({mutationFn:yz,onSuccess:()=>e.invalidateQueries({queryKey:["products"]})});return a?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"상품/가격 관리"}),d.jsx("input",{value:t,onChange:o=>n(o.target.value),placeholder:"상품명·코드 검색",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-48"})]}),d.jsx("div",{className:"bg-card border border-edge rounded-lg overflow-hidden",children:d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{className:"bg-panel border-b border-edge",children:d.jsx("tr",{children:["테넌트","매장","상품코드","상품명","카테고리","정가","판매가","화폐","상태","액션"].map(o=>d.jsx("th",{className:"px-3 py-3 text-left text-xs text-gray-400 font-medium",children:o},o))})}),d.jsxs("tbody",{children:[r.map(o=>{var l,s;return d.jsxs("tr",{className:"border-b border-edge hover:bg-edge/30",children:[d.jsx("td",{className:"px-3 py-3 text-brand text-xs",children:o.tenantCode}),d.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:o.storeName||"-"}),d.jsx("td",{className:"px-3 py-3 text-gray-300 font-mono text-xs",children:o.productCode}),d.jsx("td",{className:"px-3 py-3 text-white",children:o.productName}),d.jsx("td",{className:"px-3 py-3 text-gray-400 text-xs",children:o.category}),d.jsx("td",{className:"px-3 py-3 text-gray-300 text-xs",children:(l=o.price)==null?void 0:l.toLocaleString()}),d.jsx("td",{className:"px-3 py-3 text-accent text-xs font-medium",children:(s=o.salePrice)==null?void 0:s.toLocaleString()}),d.jsx("td",{className:"px-3 py-3 text-gray-500 text-xs",children:o.currency}),d.jsx("td",{className:"px-3 py-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${o.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:o.active?"활성":"비활성"})}),d.jsx("td",{className:"px-3 py-3",children:d.jsx("button",{onClick:()=>{confirm("삭제?")&&i.mutate(o.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})})]},o.id)}),r.length===0&&d.jsx("tr",{children:d.jsx("td",{colSpan:10,className:"px-4 py-8 text-center text-gray-500",children:"상품이 없습니다"})})]})]})})]})}function wce(){const e=$n(),{data:t=[],isLoading:n}=Dn({queryKey:["tenants"],queryFn:()=>K6()}),r=Ht({mutationFn:V6,onSuccess:()=>e.invalidateQueries({queryKey:["tenants"]})});return n?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):localStorage.getItem("esn_role")!=="ADMIN"?d.jsx("div",{className:"text-center py-16",children:d.jsx("p",{className:"text-gray-400",children:"관리자 전용 메뉴입니다."})}):d.jsxs("div",{className:"space-y-4",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"테넌트 관리"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4",children:t.map(i=>d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-4",children:[d.jsxs("div",{className:"flex items-center justify-between mb-3",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(jC,{size:18,className:"text-brand"}),d.jsx("span",{className:"font-bold text-brand",children:i.tenantCode})]}),d.jsx("button",{onClick:()=>{confirm("삭제?")&&r.mutate(i.id)},className:"text-red-400 hover:text-red-300",children:d.jsx(go,{size:14})})]}),d.jsx("p",{className:"text-sm text-white",children:i.tenantName}),d.jsx("p",{className:"text-xs text-gray-400 mt-1",children:i.description}),d.jsx("div",{className:"mt-3",children:d.jsx("span",{className:`px-2 py-0.5 rounded text-xs ${i.active?"bg-green-500/20 text-green-400":"bg-gray-500/20 text-gray-400"}`,children:i.active?"운영중":"비활성"})})]},i.id))})]})}function Oce(){const[e,t]=j.useState(""),[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),s=Ht({mutationFn:mz,onSuccess:f=>r(f.analysis||JSON.stringify(f)),onError:()=>r("Ollama 응답 실패 — 서비스를 확인해주세요.")}),u=Ht({mutationFn:vz,onSuccess:f=>l(f.category||JSON.stringify(f)),onError:()=>l("Ollama 응답 실패 — 서비스를 확인해주세요.")});return d.jsxs("div",{className:"space-y-6",children:[d.jsxs("h1",{className:"text-xl font-semibold text-white flex items-center gap-2",children:[d.jsx(OC,{size:20,className:"text-brand"})," AI 분석"]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[d.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[d.jsx(Xb,{size:16,className:"text-yellow-400"})," 알람 원인 분석"]}),d.jsx("textarea",{value:e,onChange:f=>t(f.target.value),rows:4,placeholder:`알람 메시지를 입력하세요
예: ESL-001 배터리 부족 경고 — Store: LG이노텍 구미, Device: ESL-A123`,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-gray-300 placeholder-gray-600 resize-none mb-3"}),d.jsxs("button",{onClick:()=>s.mutate({message:e}),disabled:!e.trim()||s.isPending,className:"flex items-center gap-2 px-4 py-2 bg-brand/20 text-brand border border-brand/40 rounded hover:bg-brand/30 disabled:opacity-40 text-sm",children:[d.jsx(tg,{size:14}),s.isPending?"분석 중...":"Ollama 분석"]}),n&&d.jsx("div",{className:"mt-4 bg-panel border border-edge rounded p-4 text-sm text-gray-300 whitespace-pre-wrap",children:n})]}),d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-5",children:[d.jsxs("h2",{className:"text-sm font-medium text-white mb-3 flex items-center gap-2",children:[d.jsx(k5,{size:16,className:"text-accent"})," POS 데이터 자동 분류"]}),d.jsx("textarea",{value:a,onChange:f=>i(f.target.value),rows:4,placeholder:`POS 데이터를 입력하세요
예: 상품코드=P001, 상품명=과자, 가격=1500, 판매수량=100, 점포=이마트 광명점`,className:"w-full bg-panel border border-edge rounded px-3 py-2 text-sm text-gray-300 placeholder-gray-600 resize-none mb-3"}),d.jsxs("button",{onClick:()=>u.mutate({data:a}),disabled:!a.trim()||u.isPending,className:"flex items-center gap-2 px-4 py-2 bg-accent/20 text-accent border border-accent/40 rounded hover:bg-accent/30 disabled:opacity-40 text-sm",children:[d.jsx(tg,{size:14}),u.isPending?"분류 중...":"Ollama 분류"]}),o&&d.jsx("div",{className:"mt-4 bg-panel border border-edge rounded p-4 text-sm text-gray-300 whitespace-pre-wrap",children:o})]})]})}const jce={ACTIVE:"text-green-400 bg-green-500/10 border-green-500/30",UNBOUND:"text-gray-400 bg-gray-500/10 border-gray-500/30",ERROR:"text-red-400 bg-red-500/10 border-red-500/30"},Ace=e=>e==="ONLINE"?d.jsx(TC,{size:13,className:"text-green-400"}):d.jsx(_C,{size:13,className:"text-red-400"});function Ece(){const e=$n(),[t,n]=j.useState(""),[r,a]=j.useState(""),[i,o]=j.useState(""),[l,s]=j.useState(!1),[u,f]=j.useState({tenantCode:"",storeId:"",deviceId:"",productCode:"",locationCode:"",templateCode:"EM-PRICE-STD"}),{data:c=[],isLoading:h}=Dn({queryKey:["tag-binding",t,r,i],queryFn:()=>G.get("/tag-binding",{params:{tenantCode:t||void 0,storeId:r||void 0,keyword:i||void 0,bindStatus:"ACTIVE"}}).then(v=>v.data.data),refetchInterval:2e4}),p=Ht({mutationFn:v=>G.post("/tag-binding",{...v,storeId:Number(v.storeId)}),onSuccess:()=>{e.invalidateQueries({queryKey:["tag-binding"]}),s(!1)}}),b=Ht({mutationFn:v=>G.put(`/tag-binding/${v}/unbind`),onSuccess:()=>e.invalidateQueries({queryKey:["tag-binding"]})});return h?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"태그 바인딩 관리"}),d.jsxs("button",{onClick:()=>s(v=>!v),className:"flex items-center gap-2 px-3 py-1.5 bg-brand text-white rounded text-sm",children:[d.jsx(EC,{size:14})," 바인딩 추가"]})]}),l&&d.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-4 space-y-3",children:[d.jsx("h2",{className:"text-sm font-medium text-white",children:"e-paper 태그 → 상품 바인딩"}),d.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{key:"tenantCode",label:"테넌트",ph:"EMART"},{key:"storeId",label:"매장ID",ph:"1"},{key:"deviceId",label:"태그 Device ID",ph:"ESL-EM-001-0001"},{key:"productCode",label:"상품코드",ph:"P-001"},{key:"locationCode",label:"선반 위치코드",ph:"A01-03"},{key:"templateCode",label:"템플릿",ph:"EM-PRICE-STD"}].map(({key:v,label:g,ph:y})=>d.jsxs("div",{children:[d.jsx("label",{className:"text-xs text-gray-400 mb-1 block",children:g}),d.jsx("input",{value:u[v],onChange:m=>f(x=>({...x,[v]:m.target.value})),placeholder:y,className:"w-full bg-edge border border-gray-600 rounded px-2 py-1.5 text-sm text-white"})]},v))}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>p.mutate(u),className:"px-3 py-1.5 bg-brand text-white rounded text-sm",children:"바인딩 저장"}),d.jsx("button",{onClick:()=>s(!1),className:"px-3 py-1.5 bg-edge text-gray-300 rounded text-sm",children:"취소"})]})]}),d.jsx("div",{className:"flex gap-3",children:[{val:t,set:n,ph:"테넌트 필터"},{val:i,set:o,ph:"태그ID / 상품코드 / 위치 검색"}].map(({val:v,set:g,ph:y},m)=>d.jsx("input",{value:v,onChange:x=>g(x.target.value),placeholder:y,className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-64"},m))}),d.jsxs("div",{className:"grid grid-cols-1 gap-3",children:[c.map(v=>d.jsxs("div",{className:`bg-panel border rounded-lg p-4 flex items-center justify-between
              ${v.deviceStatus==="ONLINE"?"border-green-500/20":"border-red-500/20"}`,children:[d.jsxs("div",{className:"flex items-center gap-4",children:[d.jsxs("div",{className:"flex flex-col items-center gap-1 w-16",children:[Ace(v.deviceStatus),v.batteryLevel!==null&&d.jsxs("div",{className:"flex items-center gap-1 text-xs text-gray-400",children:[d.jsx(SC,{size:11}),d.jsxs("span",{className:v.batteryLevel<20?"text-red-400":"",children:[v.batteryLevel,"%"]})]})]}),d.jsxs("div",{children:[d.jsx("div",{className:"text-xs font-mono text-brand",children:v.deviceId}),d.jsxs("div",{className:"flex items-center gap-2 mt-1",children:[d.jsx(j5,{size:11,className:"text-gray-500"}),d.jsx("span",{className:"text-xs text-gray-400",children:v.locationCode||"위치 미지정"}),d.jsx("span",{className:"text-xs text-gray-600",children:"|"}),d.jsx("span",{className:"text-xs text-gray-300",children:v.storeName})]})]}),d.jsxs("div",{className:"ml-4 pl-4 border-l border-edge",children:[d.jsx("div",{className:"text-sm text-white",children:v.productName||v.productCode}),d.jsxs("div",{className:"text-xs text-gray-400 mt-0.5",children:["현재가: ",d.jsx("span",{className:"text-brand font-mono",children:v.lastPrice?v.lastPrice.toLocaleString()+"원":"미전송"}),v.lastUpdatedAt&&d.jsxs("span",{className:"ml-2 text-gray-600",children:["갱신: ",new Date(v.lastUpdatedAt).toLocaleString()]})]}),d.jsxs("div",{className:"text-xs text-gray-500 mt-0.5",children:["템플릿: ",v.templateCode]})]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("span",{className:`text-xs px-2 py-0.5 rounded border ${jce[v.bindStatus]||""}`,children:v.bindStatus}),d.jsx("button",{onClick:()=>{confirm(`태그 ${v.deviceId} 언바인딩하겠습니까?`)&&b.mutate(v.id)},className:"p-1.5 rounded bg-edge text-gray-400 hover:text-red-400",title:"언바인딩",children:d.jsx(x5,{size:14})})]})]},v.id)),c.length===0&&d.jsx("div",{className:"text-center text-gray-500 py-12",children:'바인딩된 태그가 없습니다. 우측 상단 "바인딩 추가"를 클릭하세요.'})]})]})}const km={PENDING:{icon:d.jsx(p5,{size:13}),color:"text-yellow-400 bg-yellow-500/10 border-yellow-500/30",label:"대기"},SENDING:{icon:d.jsx(nw,{size:13}),color:"text-blue-400 bg-blue-500/10 border-blue-500/30",label:"전송중"},SENT:{icon:d.jsx(nw,{size:13}),color:"text-cyan-400 bg-cyan-500/10 border-cyan-500/30",label:"전송됨"},CONFIRMED:{icon:d.jsx(Vb,{size:13}),color:"text-green-400 bg-green-500/10 border-green-500/30",label:"확인됨"},FAILED:{icon:d.jsx(d5,{size:13}),color:"text-red-400 bg-red-500/10 border-red-500/30",label:"실패"},CANCELLED:{icon:d.jsx(c5,{size:13}),color:"text-gray-400 bg-gray-500/10 border-gray-500/30",label:"취소됨"}};function _ce(){const e=$n(),[t,n]=j.useState(""),[r,a]=j.useState(""),{data:i=[],isLoading:o,refetch:l}=Dn({queryKey:["update-queue",t,r],queryFn:()=>G.get("/update-queue",{params:{tenantCode:t||void 0,status:r||void 0}}).then(h=>h.data.data),refetchInterval:5e3}),s=Ht({mutationFn:h=>G.put(`/update-queue/${h}/cancel`),onSuccess:()=>e.invalidateQueries({queryKey:["update-queue"]})}),u=i.filter(h=>h.status==="PENDING").length,f=i.filter(h=>h.status==="FAILED").length,c=i.filter(h=>h.status==="CONFIRMED").length;return o?d.jsx("div",{className:"text-gray-400 p-8",children:"로딩 중..."}):d.jsxs("div",{className:"space-y-4",children:[d.jsxs("div",{className:"flex items-center justify-between",children:[d.jsx("h1",{className:"text-xl font-semibold text-white",children:"e-paper 가격 업데이트 큐"}),d.jsxs("button",{onClick:()=>l(),className:"flex items-center gap-1.5 px-3 py-1.5 bg-edge text-gray-300 rounded text-sm",children:[d.jsx(pp,{size:13})," 새로고침"]})]}),d.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{label:"대기중",count:u,color:"text-yellow-400",bg:"bg-yellow-500/5 border-yellow-500/20"},{label:"실패",count:f,color:"text-red-400",bg:"bg-red-500/5 border-red-500/20"},{label:"완료",count:c,color:"text-green-400",bg:"bg-green-500/5 border-green-500/20"}].map(({label:h,count:p,color:b,bg:v})=>d.jsxs("div",{className:`border rounded-lg p-3 ${v}`,children:[d.jsx("div",{className:`text-2xl font-bold font-mono ${b}`,children:p}),d.jsx("div",{className:"text-xs text-gray-400 mt-0.5",children:h})]},h))}),d.jsxs("div",{className:"flex gap-3",children:[d.jsx("input",{value:t,onChange:h=>n(h.target.value),placeholder:"테넌트 필터",className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300 w-40"}),d.jsxs("select",{value:r,onChange:h=>a(h.target.value),className:"bg-panel border border-edge rounded px-3 py-1.5 text-sm text-gray-300",children:[d.jsx("option",{value:"",children:"전체 상태"}),Object.entries(km).map(([h,p])=>d.jsx("option",{value:h,children:p.label},h))]})]}),d.jsxs("div",{className:"overflow-x-auto",children:[d.jsxs("table",{className:"w-full text-sm",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-edge text-xs text-gray-500",children:[d.jsx("th",{className:"text-left py-2 px-3",children:"#"}),d.jsx("th",{className:"text-left py-2 px-3",children:"태그 ID"}),d.jsx("th",{className:"text-left py-2 px-3",children:"위치"}),d.jsx("th",{className:"text-left py-2 px-3",children:"상품"}),d.jsx("th",{className:"text-right py-2 px-3",children:"가격"}),d.jsx("th",{className:"text-center py-2 px-3",children:"우선순위"}),d.jsx("th",{className:"text-center py-2 px-3",children:"상태"}),d.jsx("th",{className:"text-center py-2 px-3",children:"재시도"}),d.jsx("th",{className:"text-left py-2 px-3",children:"등록 시각"}),d.jsx("th",{className:"text-center py-2 px-3",children:"액션"})]})}),d.jsx("tbody",{children:i.map(h=>{var b;const p=km[h.status]||km.PENDING;return d.jsxs("tr",{className:"border-b border-edge/50 hover:bg-edge/30",children:[d.jsx("td",{className:"py-2 px-3 text-gray-500 font-mono text-xs",children:h.id}),d.jsx("td",{className:"py-2 px-3 text-brand font-mono text-xs",children:h.deviceId}),d.jsx("td",{className:"py-2 px-3 text-gray-300 text-xs",children:h.locationCode||"-"}),d.jsx("td",{className:"py-2 px-3 text-white text-xs",children:h.productName||h.productCode}),d.jsxs("td",{className:"py-2 px-3 text-right font-mono text-xs",children:[(b=h.newPrice)==null?void 0:b.toLocaleString(),"원",h.newSalePrice&&h.newSalePrice!==h.newPrice&&d.jsxs("span",{className:"ml-1 text-red-400",children:["→ ",h.newSalePrice.toLocaleString(),"원"]})]}),d.jsx("td",{className:"py-2 px-3 text-center",children:d.jsxs("span",{className:`text-xs font-mono ${h.priority<=2?"text-red-400":"text-gray-400"}`,children:["P",h.priority]})}),d.jsx("td",{className:"py-2 px-3 text-center",children:d.jsxs("span",{className:`inline-flex items-center gap-1 text-xs px-2 py-0.5 rounded border ${p.color}`,children:[p.icon," ",p.label]})}),d.jsxs("td",{className:"py-2 px-3 text-center text-xs text-gray-400",children:[h.retryCount,"/",h.maxRetry]}),d.jsx("td",{className:"py-2 px-3 text-xs text-gray-500",children:new Date(h.createdAt).toLocaleString()}),d.jsx("td",{className:"py-2 px-3 text-center",children:["PENDING","FAILED"].includes(h.status)&&d.jsx("button",{onClick:()=>s.mutate(h.id),className:"text-xs text-gray-500 hover:text-red-400 px-2 py-0.5 rounded bg-edge",children:"취소"})})]},h.id)})})]}),i.length===0&&d.jsx("div",{className:"text-center text-gray-500 py-12",children:"업데이트 큐가 비어있습니다."})]})]})}const kR="https://itsm.zioinfo.co.kr",Lm=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,kR);function Tce(){const[e,t]=j.useState(null),[n,r]=j.useState(!0),[a,i]=j.useState(""),[o,l]=j.useState(!1),s=()=>{r(!0),i(""),fetch(`${kR}/api/app/public-latest`).then(f=>f.json()).then(f=>t({...f,qr_url:Lm(f.qr_url),landing_url:Lm(f.landing_url),download_url:Lm(f.download_url)})).catch(()=>i("버전 정보를 불러올 수 없습니다. (중앙 앱 저장소 연결 실패)")).finally(()=>r(!1))};j.useEffect(()=>{s()},[]);const u=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),l(!0),setTimeout(()=>l(!1),2e3)}catch{}};return d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-5",children:[d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(rd,{className:"text-brand",size:22}),d.jsx("h1",{className:"text-xl font-semibold text-white",children:"GUARDiA 통합 메신저 앱 설치"})]}),d.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-gray-300 hover:text-brand",children:[d.jsx(pp,{size:15})," 새로고침"]})]}),d.jsxs("p",{className:"text-sm text-gray-400 mb-6",children:["QR 코드를 스캔하면 ",d.jsx("span",{className:"text-brand font-semibold",children:"GUARDiA Messenger"})," 앱 설치 페이지로 이동합니다. 앱스토어 없이 바로 설치할 수 있으며, 앱 업로드·버전 관리는 GUARDiA Manager에서 일원화되어 있습니다."]}),n&&d.jsx("div",{className:"text-gray-400 text-sm",children:"불러오는 중…"}),a&&d.jsx("div",{className:"bg-card border border-edge rounded-lg p-6 text-red-400 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-8 text-center text-gray-400",children:[d.jsx(rd,{size:36,className:"mx-auto mb-3 text-gray-600"}),"아직 등록된 앱 버전이 없습니다.",d.jsx("br",{}),d.jsx("span",{className:"text-xs",children:"GUARDiA Manager에서 APK를 업로드하면 여기에 QR이 표시됩니다."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&d.jsxs("div",{className:"bg-card border border-edge rounded-lg p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[d.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:e.qr_url?d.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"}):d.jsx(rd,{size:64,className:"text-gray-400"})}),d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[d.jsx("span",{className:"text-lg font-bold text-white",children:e.app_name||"GUARDiA Messenger"}),d.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand text-white text-xs font-semibold",children:["v",e.version]})]}),d.jsxs("div",{className:"text-xs text-gray-400 mb-4",children:[e.platform,e.file_size_mb?` · ${e.file_size_mb}MB`:"",e.download_count!=null&&` · 다운로드 ${e.download_count}회`]}),e.release_notes&&d.jsxs("div",{className:"mb-4",children:[d.jsx("div",{className:"text-[11px] font-semibold text-gray-500 uppercase tracking-wider mb-1",children:"릴리즈 노트"}),d.jsx("div",{className:"text-sm text-gray-300 whitespace-pre-line bg-ink border border-edge rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),d.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&d.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-white text-sm font-semibold",children:[d.jsx(v5,{size:15})," 설치 페이지 열기"]}),e.download_url&&d.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-gray-300 hover:text-brand",children:[d.jsx(m5,{size:15})," APK 직접 다운로드"]}),d.jsxs("button",{onClick:u,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-gray-300 hover:text-brand",children:[o?d.jsx(u5,{size:15,className:"text-green-400"}):d.jsx(y5,{size:15}),o?"복사됨":"다운로드 링크 복사"]})]})]})]})]})}const o1={background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,boxShadow:"var(--uiws-shadow)"};function Rr({title:e,subtitle:t,actions:n}){return d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[d.jsxs("div",{children:[d.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&d.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),d.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function Gh({children:e,style:t}){return d.jsx("div",{style:{...o1,padding:18,...t},children:e})}function re({children:e,onClick:t,variant:n="primary",type:r="button",disabled:a}){const i={primary:{background:"var(--uiws-primary)",color:"var(--uiws-primary-contrast)",border:"none"},ghost:{background:"transparent",color:"var(--uiws-text-muted)",border:"1px solid var(--uiws-border)"},danger:{background:"var(--uiws-danger)",color:"#fff",border:"none"}};return d.jsx("button",{type:r,onClick:t,disabled:a,style:{padding:"9px 16px",borderRadius:8,fontSize:13,fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.5:1,...i[n]},children:e})}function le({value:e,onChange:t,placeholder:n,type:r="text",style:a}){return d.jsx("input",{type:r,value:e,placeholder:n,onChange:i=>t(i.target.value),style:{padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)",...a}})}function je({label:e,children:t}){return d.jsxs("label",{style:{display:"block",marginBottom:12},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function jo({children:e}){return d.jsx(Gh,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function Ao({columns:e,rows:t,rowKey:n,onRowClick:r,empty:a="데이터가 없습니다."}){return d.jsx("div",{style:{...o1,overflow:"hidden"},children:d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[d.jsx("thead",{children:d.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>d.jsx("th",{style:{textAlign:i.align??"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)",width:i.width},children:i.header},i.key))})}),d.jsx("tbody",{children:t.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>d.jsx("tr",{onClick:()=>r==null?void 0:r(i),style:{cursor:r?"pointer":"default",borderBottom:"1px solid var(--uiws-border)"},onMouseEnter:o=>o.currentTarget.style.background="var(--uiws-row-hover)",onMouseLeave:o=>o.currentTarget.style.background="transparent",children:e.map(o=>d.jsx("td",{style:{padding:"11px 14px",textAlign:o.align??"left"},children:o.render?o.render(i):String(i[o.key]??"")},o.key))},n(i)))})]})})}function Eo({page:e,totalPages:t,onChange:n}){return t<=1?null:d.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[d.jsx(re,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),d.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),d.jsx(re,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function _o({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return d.jsx("span",{style:{fontSize:11,fontWeight:600,padding:"2px 9px",borderRadius:999,color:r?"var(--uiws-success)":"var(--uiws-text-muted)",background:r?"rgba(46,204,113,0.12)":"var(--uiws-surface-2)",border:"1px solid var(--uiws-border)"},children:r?t:n})}function vr({title:e,onClose:t,children:n,footer:r}){return d.jsx("div",{onClick:t,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},children:d.jsxs("div",{onClick:a=>a.stopPropagation(),style:{...o1,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[d.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),d.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),d.jsx("div",{children:n}),r&&d.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function dr({label:e="불러오는 중..."}){return d.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const y2={ONGOING:"진행중",DONE:"종료"};function Cce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState([]),[s,u]=j.useState(""),[f,c]=j.useState(""),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(null),m=async()=>{p(!0);try{const O=(await Cz({page:n,size:20,progressCd:s||void 0})).data.data;t(O.content??[]),i(O.totalPages??0);const A=await Nz({});l(A.data.data??[])}finally{p(!1)}};j.useEffect(()=>{m()},[n,s]);const x=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:w=>y2[w.progressCd]??w.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],S=async w=>{const O=await Pz(w.worklogId);y(O.data.data)};return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:d.jsx(re,{onClick:()=>v(!0),children:"+ 업무일지 작성"})}),d.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:o.map(w=>d.jsxs("div",{onClick:()=>{u(s===w.progressCd?"":w.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${s===w.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:w.progressNm}),d.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:w.count})]},w.progressCd))}),d.jsxs(jo,{children:[d.jsx(le,{value:f,onChange:c,placeholder:"제목 검색",style:{minWidth:220}}),d.jsx(re,{variant:"ghost",onClick:()=>{r(0),m()},children:"검색"}),s&&d.jsxs(re,{variant:"ghost",onClick:()=>u(""),children:["필터 해제: ",y2[s]??s]})]}),h?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:x,rows:e,rowKey:w=>w.worklogId,onRowClick:S,empty:"업무일지가 없습니다."}),d.jsx(Eo,{page:n,totalPages:a,onChange:r})]}),b&&d.jsx(Nce,{onClose:()=>v(!1),onSaved:()=>{v(!1),m()}}),g&&d.jsx(Mce,{detail:g,onClose:()=>y(null),onChanged:()=>{y(null),m()}})]})}function Nce({onClose:e,onSaved:t}){const[n,r]=j.useState(""),[a,i]=j.useState(localStorage.getItem("esn_user")||"admin"),[o,l]=j.useState(new Date().toISOString().slice(0,10)),[s,u]=j.useState("NORMAL"),[f,c]=j.useState(""),h=async()=>{var p,b;c("");try{await Mz({title:n,writerId:a,workDate:o,workStatusCd:s,progressCd:"ONGOING",details:[]}),t()}catch(v){c(((b=(p=v==null?void 0:v.response)==null?void 0:p.data)==null?void 0:b.message)||"저장 실패")}};return d.jsxs(vr,{title:"업무일지 작성",onClose:e,footer:d.jsxs(d.Fragment,{children:[d.jsx(re,{variant:"ghost",onClick:e,children:"취소"}),d.jsx(re,{onClick:h,children:"저장"})]}),children:[d.jsx(je,{label:"제목",children:d.jsx(le,{value:n,onChange:r,style:{width:"100%"}})}),d.jsx(je,{label:"작성자 ID",children:d.jsx(le,{value:a,onChange:i,style:{width:"100%"}})}),d.jsx(je,{label:"근무일자",children:d.jsx(le,{type:"date",value:o,onChange:l,style:{width:"100%"}})}),d.jsx(je,{label:"근무상태 코드",children:d.jsx(le,{value:s,onChange:u,style:{width:"100%"}})}),f&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:f})]})}function Mce({detail:e,onClose:t,onChanged:n}){var u;const[r,a]=j.useState(""),[i,o]=j.useState(""),l=async()=>{await Rz(e.worklogId),n()},s=async()=>{var f,c;o("");try{await $z(e.worklogId,r),a(""),n()}catch(h){o(((c=(f=h==null?void 0:h.response)==null?void 0:f.data)==null?void 0:c.message)||"댓글 등록 실패")}};return d.jsxs(vr,{title:e.title,onClose:t,footer:d.jsxs(d.Fragment,{children:[d.jsx(re,{variant:"danger",onClick:l,children:"삭제"}),d.jsx(re,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[d.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),d.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((u=e.details)==null?void 0:u.length)??0,"건"]}),d.jsxs("div",{style:{marginTop:14},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(f=>d.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[d.jsx("b",{children:f.writerNm})," · ",d.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:f.createdAt}),d.jsx("br",{}),f.cmtContent]},f.cmtId)),d.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[d.jsx(le,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),d.jsx(re,{onClick:s,children:"등록"})]}),i&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const Pce=["일","월","화","수","목","금","토"];function Rce(){const[e,t]=j.useState(new Date),[n,r]=j.useState("PERSONAL"),[a,i]=j.useState([]),[o,l]=j.useState(!1),[s,u]=j.useState(null),[f,c]=j.useState(null),h=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`,p=async()=>{l(!0);try{const S=await Az({type:n,view:"month",baseDate:`${h}-01`});i(S.data.data??[])}finally{l(!1)}};j.useEffect(()=>{p()},[h,n]);const v=new Date(e.getFullYear(),e.getMonth(),1).getDay(),g=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),y=[...Array(v).fill(null),...Array.from({length:g},(S,w)=>w+1)],m=S=>{const w=`${h}-${String(S).padStart(2,"0")}`;return a.filter(O=>(O.startDt??"").slice(0,10)<=w&&w<=(O.endDt??"").slice(0,10))},x=S=>t(new Date(e.getFullYear(),e.getMonth()+S,1));return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:d.jsx(re,{onClick:()=>u(`${h}-01`),children:"+ 일정 등록"})}),d.jsxs(Gh,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[d.jsx(re,{variant:"ghost",onClick:()=>x(-1),children:"‹ 이전"}),d.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),d.jsx(re,{variant:"ghost",onClick:()=>x(1),children:"다음 ›"}),d.jsx("div",{style:{flex:1}}),d.jsx(re,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),d.jsx(re,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),o?d.jsx(dr,{}):d.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[Pce.map((S,w)=>d.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:w===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:S},S)),y.map((S,w)=>d.jsxs("div",{onClick:()=>S&&u(`${h}-${String(S).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:S?"pointer":"default"},children:[S&&d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:S}),S&&m(S).slice(0,3).map(O=>d.jsx("div",{onClick:A=>{A.stopPropagation(),_z(O.scheduleId).then(_=>c(_.data.data))},style:{fontSize:11,padding:"2px 6px",borderRadius:6,marginBottom:3,background:"var(--uiws-primary-soft)",color:"var(--uiws-primary)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:O.title},O.scheduleId))]},w))]})}),s&&d.jsx($ce,{date:s,type:n,onClose:()=>u(null),onSaved:()=>{u(null),p()}}),f&&d.jsx(Dce,{detail:f,onClose:()=>c(null),onDeleted:()=>{c(null),p()}})]})}function $ce({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=j.useState(""),[o,l]=j.useState(`${e}T09:00:00`),[s,u]=j.useState(`${e}T18:00:00`),[f,c]=j.useState(""),[h,p]=j.useState(""),b=async()=>{var v,g;p("");try{await Ez({scheType:t,title:a,startDt:o,endDt:s,content:f,attachmentIds:[]}),r()}catch(y){p(((g=(v=y==null?void 0:y.response)==null?void 0:v.data)==null?void 0:g.message)||"저장 실패")}};return d.jsxs(vr,{title:"일정 등록",onClose:n,footer:d.jsxs(d.Fragment,{children:[d.jsx(re,{variant:"ghost",onClick:n,children:"취소"}),d.jsx(re,{onClick:b,children:"저장"})]}),children:[d.jsx(je,{label:"제목",children:d.jsx(le,{value:a,onChange:i,style:{width:"100%"}})}),d.jsx(je,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:d.jsx(le,{value:o,onChange:l,style:{width:"100%"}})}),d.jsx(je,{label:"종료",children:d.jsx(le,{value:s,onChange:u,style:{width:"100%"}})}),d.jsx(je,{label:"내용",children:d.jsx(le,{value:f,onChange:c,style:{width:"100%"}})}),h&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function Dce({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await Tz(e.scheduleId),n()};return d.jsxs(vr,{title:e.title,onClose:t,footer:d.jsxs(d.Fragment,{children:[d.jsx(re,{variant:"danger",onClick:r,children:"삭제"}),d.jsx(re,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[d.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),d.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function kce(){const[e,t]=j.useState("received"),[n,r]=j.useState([]),[a,i]=j.useState(0),[o,l]=j.useState(0),[s,u]=j.useState(""),[f,c]=j.useState(!1),[h,p]=j.useState(!1),[b,v]=j.useState(null),g=async()=>{c(!0);try{const O=(await(e==="received"?Oz:Sz)({page:a,size:20,titleKeyword:s||void 0})).data.data;r(O.content??[]),l(O.totalPages??0)}finally{c(!1)}};j.useEffect(()=>{g()},[e,a]);const y=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:S=>d.jsx(_o,{yn:S.readYn})}],m=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:S=>`${S.openCount}/${S.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],x=async S=>{const w=e==="received"?await jz(S.messageId):await wz(S.messageId);v({...w.data.data,_tab:e}),e==="received"&&g()};return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:d.jsx(re,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),d.jsxs(jo,{children:[d.jsx(re,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),d.jsx(re,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),d.jsx("div",{style:{flex:1}}),d.jsx(le,{value:s,onChange:u,placeholder:"제목 검색",style:{minWidth:200}}),d.jsx(re,{variant:"ghost",onClick:()=>{i(0),g()},children:"검색"})]}),f?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:e==="received"?y:m,rows:n,rowKey:S=>S.messageId,onRowClick:x,empty:"쪽지가 없습니다."}),d.jsx(Eo,{page:a,totalPages:o,onChange:i})]}),h&&d.jsx(Lce,{onClose:()=>p(!1),onSent:()=>{p(!1),g()}}),b&&d.jsx(zce,{detail:b,onClose:()=>v(null)})]})}function Lce({onClose:e,onSent:t}){const[n,r]=j.useState(""),[a,i]=j.useState(""),[o,l]=j.useState(""),[s,u]=j.useState(""),f=async()=>{var c,h;u("");try{await xz({title:a,content:o,receivers:[{receiverId:n,rcvType:"RECV"}]}),t()}catch(p){u(((h=(c=p==null?void 0:p.response)==null?void 0:c.data)==null?void 0:h.message)||"전송 실패")}};return d.jsxs(vr,{title:"쪽지 보내기",onClose:e,footer:d.jsxs(d.Fragment,{children:[d.jsx(re,{variant:"ghost",onClick:e,children:"취소"}),d.jsx(re,{onClick:f,children:"보내기"})]}),children:[d.jsx(je,{label:"받는사람 ID",children:d.jsx(le,{value:n,onChange:r,style:{width:"100%"}})}),d.jsx(je,{label:"제목",children:d.jsx(le,{value:a,onChange:i,style:{width:"100%"}})}),d.jsx(je,{label:"내용",children:d.jsx(le,{value:o,onChange:l,style:{width:"100%"}})}),s&&d.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:s})]})}function zce({detail:e,onClose:t}){return d.jsxs(vr,{title:e.title,onClose:t,footer:d.jsx(re,{variant:"ghost",onClick:t,children:"닫기"}),children:[d.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),d.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&d.jsxs("div",{style:{marginTop:14},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>d.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[d.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),d.jsx(_o,{yn:n.readYn})]},r))]})]})}function Bce(){const[e,t]=j.useState("personal"),[n,r]=j.useState(null),[a,i]=j.useState(!1),o=new Date().toISOString().slice(0,10),l=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[s,u]=j.useState(l),[f,c]=j.useState(o),h=async()=>{i(!0);try{const v=await(e==="personal"?Dz:kz)({fromDate:s,toDate:f});r(v.data.data)}finally{i(!1)}};j.useEffect(()=>{h()},[e]);const p=n?[...n.fixedColumns,...n.dynamicColumns]:[];return d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),d.jsxs(jo,{children:[d.jsx(re,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),d.jsx(re,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),d.jsx("div",{style:{flex:1}}),d.jsx(le,{type:"date",value:s,onChange:u}),d.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),d.jsx(le,{type:"date",value:f,onChange:c}),d.jsx(re,{variant:"ghost",onClick:h,children:"조회"})]}),a?d.jsx(dr,{}):!n||n.rows.length===0?d.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):d.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[d.jsx("thead",{children:d.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:p.map(b=>d.jsx("th",{style:{padding:"11px 14px",textAlign:"left",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)",whiteSpace:"nowrap"},children:b.label},b.key))})}),d.jsx("tbody",{children:n.rows.map((b,v)=>d.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(g=>d.jsx("td",{style:{padding:"10px 14px"},children:String(b[g.key]??"")},g.key))},v))})]})})]})}function $s({children:e}){const t=localStorage.getItem("esn_role");return t!=="ADMIN"&&t!=="MANAGER"?d.jsx("div",{className:"uiws-scope",style:{textAlign:"center",padding:"64px 0"},children:d.jsx("p",{style:{color:"var(--uiws-text-muted)",fontSize:14},children:"관리자 전용 메뉴입니다."})}):d.jsx(d.Fragment,{children:e})}const m2={roleId:"",roleNm:"",roleDesc:"",useYn:"Y"},v2=20;function g2(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 역할 ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function Ice(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[f,c]=j.useState(new Set),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(m2),[m,x]=j.useState("");async function S(E=a,N=o){var k,P,$,z;u(!0);try{const B=await Iz({keyword:N||void 0,page:E,size:v2});t(((P=(k=B.data)==null?void 0:k.data)==null?void 0:P.content)||[]),r(((z=($=B.data)==null?void 0:$.data)==null?void 0:z.total)||0),c(new Set)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{S(0,"")},[]);function w(){y(m2),v(!1),x(""),p(!0)}function O(E){y({...E}),v(!0),x(""),p(!0)}async function A(){if(x(""),!g.roleId.trim()||!g.roleNm.trim()){x("역할 ID와 이름은 필수입니다.");return}try{b?await Hz(g.roleId,g):await Uz(g),p(!1),S()}catch(E){x(g2(E))}}async function _(){if(f.size!==0&&confirm(`선택한 ${f.size}개 역할을 삭제할까요?`))try{await qz([...f]),S()}catch(E){alert(g2(E))}}const T=E=>c(N=>{const k=new Set(N);return k.has(E)?k.delete(E):k.add(E),k}),M=Math.max(1,Math.ceil(n/v2)),L=[{key:"sel",header:"",width:36,render:E=>d.jsx("input",{type:"checkbox",checked:f.has(E.roleId),onChange:()=>T(E.roleId),onClick:N=>N.stopPropagation()})},{key:"roleId",header:"역할 ID",render:E=>d.jsx("span",{className:"font-mono",children:E.roleId})},{key:"roleNm",header:"이름"},{key:"roleDesc",header:"설명"},{key:"useYn",header:"사용",width:80,render:E=>d.jsx(_o,{yn:E.useYn,yes:"사용",no:"미사용"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"역할/권한 관리",subtitle:"시스템 권한(Role) 정의 — RBAC",actions:d.jsxs(d.Fragment,{children:[d.jsxs(re,{variant:"danger",onClick:_,disabled:f.size===0,children:["삭제 (",f.size,")"]}),d.jsx(re,{onClick:w,children:"역할 추가"})]})}),d.jsxs(jo,{children:[d.jsx(le,{value:o,onChange:l,placeholder:"역할명/설명 검색",style:{flex:1,minWidth:220}}),d.jsx(re,{onClick:()=>{i(0),S(0,o)},children:"검색"})]}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:L,rows:e,rowKey:E=>E.roleId,onRowClick:E=>O(E),empty:"등록된 역할이 없습니다."}),d.jsx(Eo,{page:a,totalPages:M,onChange:E=>{i(E),S(E)}})]}),h&&d.jsxs(vr,{title:b?"역할 수정":"역할 추가",onClose:()=>p(!1),children:[d.jsx(je,{label:"역할 ID",children:d.jsx(le,{value:g.roleId,onChange:E=>y({...g,roleId:E}),placeholder:"예: AUDITOR",style:{width:"100%"}})}),d.jsx(je,{label:"이름",children:d.jsx(le,{value:g.roleNm,onChange:E=>y({...g,roleNm:E}),placeholder:"예: 감사자",style:{width:"100%"}})}),d.jsx(je,{label:"설명",children:d.jsx(le,{value:g.roleDesc,onChange:E=>y({...g,roleDesc:E}),style:{width:"100%"}})}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:g.useYn,onChange:E=>y({...g,useYn:E}),placeholder:"Y / N",style:{width:"100%"}})}),m&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:m}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(re,{variant:"ghost",onClick:()=>p(!1),children:"취소"}),d.jsx(re,{onClick:A,children:"저장"})]})]})]})})}function Uce(e){var t,n,r;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"요청을 처리하지 못했습니다."}function Hce(){const[e,t]=j.useState([]),[n,r]=j.useState(""),[a,i]=j.useState([]),[o,l]=j.useState(!1),[s,u]=j.useState(!1),[f,c]=j.useState(!1),[h,p]=j.useState("");async function b(){var m,x;l(!0);try{const w=((x=(m=(await Fz({page:0,size:100})).data)==null?void 0:m.data)==null?void 0:x.content)||[];t(w),w.length&&!n&&v(w[0].roleId)}catch{t([])}finally{l(!1)}}j.useEffect(()=>{b()},[]);async function v(m){var x;r(m),p(""),u(!0);try{const S=await Gz(m);i(((x=S.data)==null?void 0:x.data)||[])}catch{i([])}finally{u(!1)}}function g(m,x){i(S=>S.map(w=>{if(w.menuId!==m)return w;const O={...w,[x]:w[x]==="Y"?"N":"Y"};return x==="writeYn"&&O.writeYn==="Y"&&(O.readYn="Y"),x==="readYn"&&O.readYn==="N"&&(O.writeYn="N"),O}))}async function y(){if(n){c(!0),p("");try{await Yz(n,a),p("저장되었습니다.")}catch(m){p(Uce(m))}finally{c(!1)}}}return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"메뉴 권한(권한별 메뉴 매핑)",subtitle:"역할별 메뉴 읽기/쓰기 권한 부여",actions:d.jsx(re,{onClick:y,disabled:!n||f,children:f?"저장 중...":"저장"})}),d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"240px 1fr",gap:16},children:[d.jsxs(Gh,{style:{padding:12},children:[d.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",padding:"4px 6px 10px"},children:"역할 선택"}),o?d.jsx(dr,{}):e.length===0?d.jsx("div",{style:{padding:16,fontSize:13,color:"var(--uiws-text-faint)"},children:"역할이 없습니다."}):e.map(m=>d.jsxs("button",{onClick:()=>v(m.roleId),style:{display:"block",width:"100%",textAlign:"left",padding:"9px 10px",borderRadius:8,fontSize:13,marginBottom:2,border:"none",cursor:"pointer",background:n===m.roleId?"var(--uiws-row-hover)":"transparent",color:n===m.roleId?"var(--uiws-primary)":"var(--uiws-text)",fontWeight:n===m.roleId?600:400},children:[m.roleNm," ",d.jsxs("span",{style:{color:"var(--uiws-text-faint)",fontFamily:"monospace",fontSize:11},children:["(",m.roleId,")"]})]},m.roleId))]}),d.jsx(Gh,{style:{padding:0,overflow:"hidden"},children:s?d.jsx(dr,{}):d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[d.jsx("thead",{children:d.jsxs("tr",{style:{background:"var(--uiws-surface-2)"},children:[d.jsx("th",{style:{textAlign:"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontSize:12,fontWeight:600,borderBottom:"1px solid var(--uiws-border)"},children:"메뉴"}),d.jsx("th",{style:{textAlign:"center",padding:"11px 14px",color:"var(--uiws-text-muted)",fontSize:12,fontWeight:600,borderBottom:"1px solid var(--uiws-border)",width:90},children:"읽기"}),d.jsx("th",{style:{textAlign:"center",padding:"11px 14px",color:"var(--uiws-text-muted)",fontSize:12,fontWeight:600,borderBottom:"1px solid var(--uiws-border)",width:90},children:"쓰기"})]})}),d.jsx("tbody",{children:a.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:3,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"매핑할 메뉴가 없습니다."})}):a.map(m=>d.jsxs("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:[d.jsxs("td",{style:{padding:"10px 14px"},children:[m.menuNm," ",d.jsx("span",{style:{color:"var(--uiws-text-faint)",fontFamily:"monospace",fontSize:11},children:m.menuId})]}),d.jsx("td",{style:{textAlign:"center"},children:d.jsx("input",{type:"checkbox",checked:m.readYn==="Y",onChange:()=>g(m.menuId,"readYn")})}),d.jsx("td",{style:{textAlign:"center"},children:d.jsx("input",{type:"checkbox",checked:m.writeYn==="Y",onChange:()=>g(m.menuId,"writeYn")})})]},m.menuId))})]})})]}),h&&d.jsx("p",{style:{marginTop:12,fontSize:13,color:"var(--uiws-text-muted)"},children:h})]})})}const b2=20;function zm(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 코드 그룹입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function qce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[f,c]=j.useState(!1),[h,p]=j.useState(!1),[b,v]=j.useState({grpCd:"",grpNm:"",useYn:"Y",values:[]}),[g,y]=j.useState("");async function m(E=a,N=o){var k,P,$,z;u(!0);try{const B=await Kz({keyword:N||void 0,page:E,size:b2});t(((P=(k=B.data)==null?void 0:k.data)==null?void 0:P.content)||[]),r(((z=($=B.data)==null?void 0:$.data)==null?void 0:z.total)||0)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{m(0,"")},[]);function x(){v({grpCd:"",grpNm:"",useYn:"Y",values:[]}),p(!1),y(""),c(!0)}async function S(E){var N;y("");try{const P=(N=(await Vz(E.grpCd)).data)==null?void 0:N.data;v({grpCd:P.grpCd,grpNm:P.grpNm,useYn:P.useYn,values:P.values||[]}),p(!0),c(!0)}catch(k){alert(zm(k))}}function w(){v(E=>({...E,values:[...E.values,{grpCd:E.grpCd,codeVal:"",codeNm:"",sortOrd:E.values.length+1,useYn:"Y"}]}))}function O(E,N){v(k=>({...k,values:k.values.map((P,$)=>$===E?{...P,...N}:P)}))}function A(E){v(N=>({...N,values:N.values.filter((k,P)=>P!==E)}))}async function _(){if(y(""),!b.grpCd.trim()||!b.grpNm.trim()){y("그룹 코드와 이름은 필수입니다.");return}const E={...b,values:b.values.map(N=>({...N,grpCd:b.grpCd}))};try{h?await Qz(b.grpCd,E):await Xz(E),c(!1),m()}catch(N){y(zm(N))}}async function T(E){if(confirm(`코드 그룹 '${E}' 을(를) 삭제할까요?`))try{await Wz(E),m()}catch(N){alert(zm(N))}}const M=Math.max(1,Math.ceil(n/b2)),L=[{key:"grpCd",header:"그룹 코드",render:E=>d.jsx("span",{className:"font-mono",children:E.grpCd})},{key:"grpNm",header:"그룹명"},{key:"useYn",header:"사용",width:80,render:E=>d.jsx(_o,{yn:E.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:64,align:"right",render:E=>d.jsx("button",{onClick:N=>{N.stopPropagation(),T(E.grpCd)},className:"text-xs",style:{color:"var(--uiws-danger)"},children:"삭제"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"공통코드 관리",subtitle:"코드 그룹 및 코드값 정의",actions:d.jsx(re,{onClick:x,children:"그룹 추가"})}),d.jsxs(jo,{children:[d.jsx(le,{value:o,onChange:l,placeholder:"그룹코드/그룹명 검색",style:{flex:1,minWidth:220}}),d.jsx(re,{onClick:()=>{i(0),m(0,o)},children:"검색"})]}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:L,rows:e,rowKey:E=>E.grpCd,onRowClick:E=>S(E),empty:"등록된 코드 그룹이 없습니다."}),d.jsx(Eo,{page:a,totalPages:M,onChange:E=>{i(E),m(E)}})]}),f&&d.jsxs(vr,{title:h?"코드 그룹 수정":"코드 그룹 추가",onClose:()=>c(!1),children:[d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[d.jsx(je,{label:"그룹 코드",children:d.jsx(le,{value:b.grpCd,onChange:E=>v({...b,grpCd:E}),placeholder:"예: ALARM_TYPE",style:{width:"100%"}})}),d.jsx(je,{label:"그룹명",children:d.jsx(le,{value:b.grpNm,onChange:E=>v({...b,grpNm:E}),style:{width:"100%"}})})]}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:b.useYn,onChange:E=>v({...b,useYn:E}),placeholder:"Y / N"})}),d.jsxs("div",{style:{marginTop:8,marginBottom:6,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[d.jsx("span",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:"코드값"}),d.jsx(re,{variant:"ghost",onClick:w,children:"+ 값 추가"})]}),d.jsx("div",{style:{border:"1px solid var(--uiws-border)",borderRadius:8,overflow:"hidden"},children:d.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:12},children:[d.jsx("thead",{children:d.jsxs("tr",{style:{background:"var(--uiws-surface-2)",color:"var(--uiws-text-muted)"},children:[d.jsx("th",{style:{padding:"7px 8px",textAlign:"left"},children:"코드값"}),d.jsx("th",{style:{padding:"7px 8px",textAlign:"left"},children:"코드명"}),d.jsx("th",{style:{padding:"7px 8px",textAlign:"left",width:60},children:"순서"}),d.jsx("th",{style:{padding:"7px 8px",textAlign:"left",width:50},children:"사용"}),d.jsx("th",{style:{width:36}})]})}),d.jsx("tbody",{children:b.values.length===0?d.jsx("tr",{children:d.jsx("td",{colSpan:5,style:{padding:14,textAlign:"center",color:"var(--uiws-text-faint)"},children:"코드값이 없습니다."})}):b.values.map((E,N)=>d.jsxs("tr",{style:{borderTop:"1px solid var(--uiws-border)"},children:[d.jsx("td",{style:{padding:4},children:d.jsx(le,{value:E.codeVal,onChange:k=>O(N,{codeVal:k}),style:{width:"100%",padding:"6px 8px"}})}),d.jsx("td",{style:{padding:4},children:d.jsx(le,{value:E.codeNm,onChange:k=>O(N,{codeNm:k}),style:{width:"100%",padding:"6px 8px"}})}),d.jsx("td",{style:{padding:4},children:d.jsx(le,{type:"number",value:String(E.sortOrd??""),onChange:k=>O(N,{sortOrd:k===""?null:Number(k)}),style:{width:"100%",padding:"6px 8px"}})}),d.jsx("td",{style:{padding:4},children:d.jsx(le,{value:E.useYn,onChange:k=>O(N,{useYn:k}),style:{width:"100%",padding:"6px 8px"}})}),d.jsx("td",{style:{textAlign:"center"},children:d.jsx("button",{onClick:()=>A(N),style:{background:"none",border:"none",color:"var(--uiws-danger)",cursor:"pointer"},children:"×"})})]},N))})]})}),g&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)",marginTop:8},children:g}),d.jsxs("div",{className:"flex justify-end gap-2 pt-3",children:[d.jsx(re,{variant:"ghost",onClick:()=>c(!1),children:"취소"}),d.jsx(re,{onClick:_,children:"저장"})]})]})]})})}const x2={menuId:"",menuNm:"",parentMenuId:"",programId:"",menuUrl:"",sortOrd:null,useYn:"Y"},S2=100;function w2(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 메뉴 ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function Fce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState([]),[s,u]=j.useState(!1),[f,c]=j.useState(new Set),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(x2),[m,x]=j.useState("");async function S(N=a){var k,P,$,z;u(!0);try{const B=await Zz({page:N,size:S2});t(((P=(k=B.data)==null?void 0:k.data)==null?void 0:P.content)||[]),r(((z=($=B.data)==null?void 0:$.data)==null?void 0:z.total)||0),c(new Set)}catch{t([]),r(0)}finally{u(!1)}}async function w(){var N,k;try{const P=await n8({page:0,size:200});l(((k=(N=P.data)==null?void 0:N.data)==null?void 0:k.content)||[])}catch{l([])}}j.useEffect(()=>{S(0),w()},[]);function O(){y(x2),v(!1),x(""),p(!0)}function A(N){y({...N}),v(!0),x(""),p(!0)}async function _(){if(x(""),!g.menuId.trim()||!g.menuNm.trim()){x("메뉴 ID와 이름은 필수입니다.");return}try{b?await e8(g.menuId,g):await Jz(g),p(!1),S()}catch(N){x(w2(N))}}async function T(){if(f.size!==0&&confirm(`선택한 ${f.size}개 메뉴를 삭제할까요?`))try{await t8([...f]),S()}catch(N){alert(w2(N))}}const M=N=>c(k=>{const P=new Set(k);return P.has(N)?P.delete(N):P.add(N),P}),L=Math.max(1,Math.ceil(n/S2)),E=[{key:"sel",header:"",width:36,render:N=>d.jsx("input",{type:"checkbox",checked:f.has(N.menuId),onChange:()=>M(N.menuId),onClick:k=>k.stopPropagation()})},{key:"menuId",header:"메뉴 ID",render:N=>d.jsx("span",{className:"font-mono",children:N.menuId})},{key:"menuNm",header:"메뉴명"},{key:"parentMenuId",header:"상위"},{key:"programId",header:"프로그램"},{key:"menuUrl",header:"URL"},{key:"sortOrd",header:"순서",width:60},{key:"useYn",header:"사용",width:80,render:N=>d.jsx(_o,{yn:N.useYn,yes:"사용",no:"미사용"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"메뉴 관리",subtitle:"시스템 메뉴 트리/프로그램 연결",actions:d.jsxs(d.Fragment,{children:[d.jsxs(re,{variant:"danger",onClick:T,disabled:f.size===0,children:["삭제 (",f.size,")"]}),d.jsx(re,{onClick:O,children:"메뉴 추가"})]})}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:E,rows:e,rowKey:N=>N.menuId,onRowClick:N=>A(N),empty:"등록된 메뉴가 없습니다."}),d.jsx(Eo,{page:a,totalPages:L,onChange:N=>{i(N),S(N)}})]}),h&&d.jsxs(vr,{title:b?"메뉴 수정":"메뉴 추가",onClose:()=>p(!1),children:[d.jsxs("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:10},children:[d.jsx(je,{label:"메뉴 ID",children:d.jsx(le,{value:g.menuId,onChange:N=>y({...g,menuId:N}),style:{width:"100%"}})}),d.jsx(je,{label:"메뉴명",children:d.jsx(le,{value:g.menuNm,onChange:N=>y({...g,menuNm:N}),style:{width:"100%"}})}),d.jsx(je,{label:"상위 메뉴 ID",children:d.jsx(le,{value:g.parentMenuId,onChange:N=>y({...g,parentMenuId:N}),style:{width:"100%"}})}),d.jsx(je,{label:"프로그램",children:d.jsxs("select",{value:g.programId,onChange:N=>y({...g,programId:N.target.value}),style:{width:"100%",padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)"},children:[d.jsx("option",{value:"",children:"(선택 안 함)"}),o.map(N=>d.jsxs("option",{value:N.programId,children:[N.programNm," (",N.programId,")"]},N.programId))]})}),d.jsx(je,{label:"메뉴 URL",children:d.jsx(le,{value:g.menuUrl,onChange:N=>y({...g,menuUrl:N}),style:{width:"100%"}})}),d.jsx(je,{label:"정렬 순서",children:d.jsx(le,{type:"number",value:String(g.sortOrd??""),onChange:N=>y({...g,sortOrd:N===""?null:Number(N)}),style:{width:"100%"}})})]}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:g.useYn,onChange:N=>y({...g,useYn:N}),placeholder:"Y / N"})}),m&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:m}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(re,{variant:"ghost",onClick:()=>p(!1),children:"취소"}),d.jsx(re,{onClick:_,children:"저장"})]})]})]})})}const O2={deptId:"",deptNm:"",parentDeptId:"",sortOrd:null,useYn:"Y"},j2=20;function A2(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 부서 ID입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function Gce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[f,c]=j.useState(!1),[h,p]=j.useState(!1),[b,v]=j.useState(O2),[g,y]=j.useState("");async function m(T=a,M=o){var L,E,N,k;u(!0);try{const P=await r8({keyword:M||void 0,page:T,size:j2});t(((E=(L=P.data)==null?void 0:L.data)==null?void 0:E.content)||[]),r(((k=(N=P.data)==null?void 0:N.data)==null?void 0:k.total)||0)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{m(0,"")},[]);function x(){v(O2),p(!1),y(""),c(!0)}function S(T){v({...T}),p(!0),y(""),c(!0)}async function w(){if(y(""),!b.deptNm.trim()){y("부서명은 필수입니다.");return}try{h?await i8(b.deptId,b):await a8(b),c(!1),m()}catch(T){y(A2(T))}}async function O(T){if(confirm(`부서 '${T}' 을(를) 삭제할까요?`))try{await o8(T),m()}catch(M){alert(A2(M))}}const A=Math.max(1,Math.ceil(n/j2)),_=[{key:"deptId",header:"부서 ID",render:T=>d.jsx("span",{className:"font-mono",children:T.deptId})},{key:"deptNm",header:"부서명"},{key:"parentDeptId",header:"상위 부서"},{key:"sortOrd",header:"순서",width:60},{key:"useYn",header:"사용",width:80,render:T=>d.jsx(_o,{yn:T.useYn,yes:"사용",no:"미사용"})},{key:"act",header:"",width:64,align:"right",render:T=>d.jsx("button",{onClick:M=>{M.stopPropagation(),O(T.deptId)},className:"text-xs",style:{color:"var(--uiws-danger)"},children:"삭제"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"부서 관리",subtitle:"조직 부서 계층/정렬",actions:d.jsx(re,{onClick:x,children:"부서 추가"})}),d.jsxs(jo,{children:[d.jsx(le,{value:o,onChange:l,placeholder:"부서명 검색",style:{flex:1,minWidth:220}}),d.jsx(re,{onClick:()=>{i(0),m(0,o)},children:"검색"})]}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:_,rows:e,rowKey:T=>T.deptId,onRowClick:T=>S(T),empty:"등록된 부서가 없습니다."}),d.jsx(Eo,{page:a,totalPages:A,onChange:T=>{i(T),m(T)}})]}),f&&d.jsxs(vr,{title:h?"부서 수정":"부서 추가",onClose:()=>c(!1),children:[d.jsx(je,{label:"부서 ID (수정 불가)",children:d.jsx(le,{value:b.deptId,onChange:T=>v({...b,deptId:T}),placeholder:"비우면 자동 생성",style:{width:"100%"}})}),d.jsx(je,{label:"부서명",children:d.jsx(le,{value:b.deptNm,onChange:T=>v({...b,deptNm:T}),style:{width:"100%"}})}),d.jsx(je,{label:"상위 부서 ID",children:d.jsx(le,{value:b.parentDeptId,onChange:T=>v({...b,parentDeptId:T}),style:{width:"100%"}})}),d.jsx(je,{label:"정렬 순서",children:d.jsx(le,{type:"number",value:String(b.sortOrd??""),onChange:T=>v({...b,sortOrd:T===""?null:Number(T)}),style:{width:"100%"}})}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:b.useYn,onChange:T=>v({...b,useYn:T}),placeholder:"Y / N"})}),g&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:g}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(re,{variant:"ghost",onClick:()=>c(!1),children:"취소"}),d.jsx(re,{onClick:w,children:"저장"})]})]})]})})}const E2={companyId:"",companyNm:"",bizNo:"",useYn:"Y"},_2=20;function T2(e){var t,n,r,a;return((t=e==null?void 0:e.response)==null?void 0:t.status)===403?"권한이 없습니다 (관리자 전용).":((n=e==null?void 0:e.response)==null?void 0:n.status)===409?"이미 존재하는 거래처입니다.":((a=(r=e==null?void 0:e.response)==null?void 0:r.data)==null?void 0:a.message)||"요청을 처리하지 못했습니다."}function Yce(){const[e,t]=j.useState([]),[n,r]=j.useState(0),[a,i]=j.useState(0),[o,l]=j.useState(""),[s,u]=j.useState(!1),[f,c]=j.useState(new Set),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(E2),[m,x]=j.useState("");async function S(E=a,N=o){var k,P,$,z;u(!0);try{const B=await l8({keyword:N||void 0,page:E,size:_2});t(((P=(k=B.data)==null?void 0:k.data)==null?void 0:P.content)||[]),r(((z=($=B.data)==null?void 0:$.data)==null?void 0:z.total)||0),c(new Set)}catch{t([]),r(0)}finally{u(!1)}}j.useEffect(()=>{S(0,"")},[]);function w(){y(E2),v(!1),x(""),p(!0)}function O(E){y({...E}),v(!0),x(""),p(!0)}async function A(){if(x(""),!g.companyNm.trim()){x("거래처명은 필수입니다.");return}try{b?await u8(g.companyId,g):await s8(g),p(!1),S()}catch(E){x(T2(E))}}async function _(){if(f.size!==0&&confirm(`선택한 ${f.size}개 거래처를 삭제할까요?`))try{await c8([...f]),S()}catch(E){alert(T2(E))}}const T=E=>c(N=>{const k=new Set(N);return k.has(E)?k.delete(E):k.add(E),k}),M=Math.max(1,Math.ceil(n/_2)),L=[{key:"sel",header:"",width:36,render:E=>d.jsx("input",{type:"checkbox",checked:f.has(E.companyId),onChange:()=>T(E.companyId),onClick:N=>N.stopPropagation()})},{key:"companyId",header:"거래처 ID",render:E=>d.jsx("span",{className:"font-mono",children:E.companyId})},{key:"companyNm",header:"거래처명"},{key:"bizNo",header:"사업자번호"},{key:"useYn",header:"사용",width:80,render:E=>d.jsx(_o,{yn:E.useYn,yes:"사용",no:"미사용"})}];return d.jsx($s,{children:d.jsxs("div",{className:"uiws-scope",children:[d.jsx(Rr,{title:"거래처 관리",subtitle:"거래처(협력사) 마스터",actions:d.jsxs(d.Fragment,{children:[d.jsxs(re,{variant:"danger",onClick:_,disabled:f.size===0,children:["삭제 (",f.size,")"]}),d.jsx(re,{onClick:w,children:"거래처 추가"})]})}),d.jsxs(jo,{children:[d.jsx(le,{value:o,onChange:l,placeholder:"거래처명/사업자번호 검색",style:{flex:1,minWidth:220}}),d.jsx(re,{onClick:()=>{i(0),S(0,o)},children:"검색"})]}),s?d.jsx(dr,{}):d.jsxs(d.Fragment,{children:[d.jsx(Ao,{columns:L,rows:e,rowKey:E=>E.companyId,onRowClick:E=>O(E),empty:"등록된 거래처가 없습니다."}),d.jsx(Eo,{page:a,totalPages:M,onChange:E=>{i(E),S(E)}})]}),h&&d.jsxs(vr,{title:b?"거래처 수정":"거래처 추가",onClose:()=>p(!1),children:[d.jsx(je,{label:"거래처 ID",children:d.jsx(le,{value:g.companyId,onChange:E=>y({...g,companyId:E}),placeholder:"비우면 자동 생성",style:{width:"100%"}})}),d.jsx(je,{label:"거래처명",children:d.jsx(le,{value:g.companyNm,onChange:E=>y({...g,companyNm:E}),style:{width:"100%"}})}),d.jsx(je,{label:"사업자번호",children:d.jsx(le,{value:g.bizNo,onChange:E=>y({...g,bizNo:E}),style:{width:"100%"}})}),d.jsx(je,{label:"사용 여부",children:d.jsx(le,{value:g.useYn,onChange:E=>y({...g,useYn:E}),placeholder:"Y / N"})}),m&&d.jsx("p",{className:"text-xs",style:{color:"var(--uiws-danger)"},children:m}),d.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[d.jsx(re,{variant:"ghost",onClick:()=>p(!1),children:"취소"}),d.jsx(re,{onClick:A,children:"저장"})]})]})]})})}const Kce=()=>G.get("/api/admin/ai-config").then(e=>{var t;return(t=e.data)==null?void 0:t.data}),Vce=e=>G.put("/api/admin/ai-config",e).then(t=>{var n;return(n=t.data)==null?void 0:n.data}),Xce=()=>G.post("/api/admin/ai-config/test",{}).then(e=>{var t;return(t=e.data)==null?void 0:t.data}),Qce=[{id:"ollama",label:"Ollama (기본)",hint:"온프레미스 · llama3.2:1b"},{id:"qwen3",label:"Qwen3",hint:"온프레미스 · qwen3:1.7b"},{id:"deepseek",label:"DeepSeek",hint:"온프레미스 · deepseek-r1:1.5b"},{id:"glm",label:"GLM",hint:"온프레미스 · glm4:9b",ram:!0},{id:"claude",label:"Claude (외부)",hint:"api.anthropic.com · 키 필요"}],LR=["claude-sonnet-4-6","claude-haiku-4-5","claude-opus-4-8"],sd="claude-sonnet-4-6",Bm=e=>LR.includes(e)?e:sd;function Im(e){var n,r,a;const t=((r=(n=e==null?void 0:e.response)==null?void 0:n.data)==null?void 0:r.message)||"";return((a=e==null?void 0:e.response)==null?void 0:a.status)===403?"권한이 없습니다 (AI 설정은 ADMIN 전용).":t.includes("ERR-AI-400")?t.replace(/^ERR-AI-400:\s*/,""):"AI 설정을 처리하지 못했습니다."}function Wce(){const[e,t]=j.useState("ollama"),[n,r]=j.useState(sd),[a,i]=j.useState(!1),[o,l]=j.useState(""),[s,u]=j.useState(!0),[f,c]=j.useState(!1),[h,p]=j.useState(!1),[b,v]=j.useState(!1),[g,y]=j.useState(""),[m,x]=j.useState(!1),[S,w]=j.useState(null),O=()=>{c(!0),Kce().then(P=>{t(P.provider),r(Bm(P.claudeModel??sd)),i(!!P.claudeKeySet),l(P.ollamaTextModel??""),u(!!P.aiEnabled),y("")}).catch(P=>y(Im(P))).finally(()=>c(!1))};j.useEffect(()=>{O()},[]);const A=()=>{v(!1),w(null)},_=async()=>{p(!0),v(!1);try{const P=await Vce({provider:e,claudeModel:n});t(P.provider),r(Bm(P.claudeModel??sd)),i(!!P.claudeKeySet),l(P.ollamaTextModel??""),u(!!P.aiEnabled),v(!0),y("")}catch(P){y(Im(P))}finally{p(!1)}},T=async()=>{x(!0),w(null);try{w(await Xce())}catch(P){w({ok:!1,degraded:!1,message:Im(P)})}finally{x(!1)}},M=e==="claude",L=e==="glm",E=M&&!a,N=!M&&!s,k=S?S.degraded?"text-amber-300":S.ok?"text-emerald-300":"text-rose-300":"";return d.jsxs("div",{children:[d.jsxs("div",{className:"flex items-center justify-between mb-6",children:[d.jsxs("div",{children:[d.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[d.jsx(Fu,{size:20,className:"text-brand"})," AI 플랫폼 설정"]}),d.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"알람 분석·POS 분류·채팅 등 텍스트 생성에 사용할 LLM 제공자와 모델을 선택합니다."})]}),d.jsx("button",{onClick:O,disabled:f,className:"px-3 py-1.5 rounded-lg bg-card border border-edge text-sm disabled:opacity-40",children:"새로고침"})]}),g&&d.jsx("div",{className:"bg-rose-500/10 border border-rose-500/40 text-rose-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:g}),(E||N)&&d.jsx("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:E?"Claude API 키가 설정되지 않아 Ollama(온프레미스)로 폴백 동작합니다. 서버 환경변수 ANTHROPIC_API_KEY 설정 후 사용하세요.":"AI 기능이 비활성 상태입니다. 모든 AI 결과는 규칙 기반(degraded)으로 동작합니다."}),L&&d.jsx("div",{className:"bg-amber-500/10 border border-amber-500/40 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:"GLM(glm4:9b)은 약 5.5GB 로드가 필요해 현재 서버 RAM 여유(~2.1GB)로는 콜드로드가 실패할 수 있습니다. 선택은 가능하나 실패 시 Ollama 소형 모델로 자동 폴백합니다. RAM 증설 후 사용을 권장합니다."}),d.jsxs("div",{className:"grid gap-5 md:grid-cols-2",children:[d.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[d.jsxs("h2",{className:"text-sm font-semibold mb-4 flex items-center gap-2",children:[d.jsx(Fu,{size:16,className:"text-brand"})," 제공자 & 모델"]}),d.jsx("div",{className:"grid grid-cols-2 gap-2 mb-4",children:Qce.map(P=>d.jsxs("button",{onClick:()=>{t(P.id),A()},className:`text-left px-3 py-2.5 rounded-lg border text-sm transition-colors ${e===P.id?"bg-brand/15 border-brand text-brand":"bg-ink border-edge text-gray-300 hover:border-brand/50"}`,children:[d.jsxs("div",{className:"font-semibold flex items-center gap-1.5",children:[P.label,P.ram&&d.jsx("span",{className:"text-[9px] px-1 py-0.5 rounded bg-amber-500/20 text-amber-300 border border-amber-500/40",children:"RAM"})]}),d.jsx("div",{className:"text-[11px] text-gray-500 mt-0.5",children:P.hint})]},P.id))}),!M&&d.jsxs("div",{className:"mb-4",children:[d.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Ollama 텍스트 모델"}),d.jsx("div",{className:"px-3 py-2 rounded-lg bg-ink border border-edge text-sm font-mono",children:o||"llama3.2:1b"}),d.jsx("p",{className:"text-[11px] text-gray-500 mt-1",children:"온프레미스 모델 — provider 별로 고정. 외부 호출 없음."})]}),M&&d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"mb-4",children:[d.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Claude 모델"}),d.jsx("select",{value:n,onChange:P=>{r(Bm(P.target.value)),A()},className:"w-full px-3 py-2 rounded-lg bg-ink border border-edge text-sm focus:border-brand outline-none",children:LR.map(P=>d.jsx("option",{value:P,children:P},P))})]}),d.jsxs("div",{className:"mb-4",children:[d.jsxs("label",{className:"block text-xs text-gray-500 mb-1 flex items-center gap-1",children:[d.jsx(AC,{size:13})," API 키"]}),d.jsx("span",{className:`inline-block px-3 py-1 rounded-lg text-xs font-semibold ${a?"bg-emerald-500/15 text-emerald-300 border border-emerald-500/40":"bg-rose-500/15 text-rose-300 border border-rose-500/40"}`,children:a?"설정됨":"미설정"}),d.jsx("p",{className:"text-[11px] text-gray-500 mt-1.5",children:"키는 서버 환경변수(ANTHROPIC_API_KEY)로만 주입되며 화면·응답·로그에 노출되지 않습니다."})]})]}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsxs("button",{onClick:_,disabled:h||f,className:"flex items-center gap-1.5 px-4 py-2 rounded-lg bg-brand text-ink text-sm font-semibold disabled:opacity-40",children:[d.jsx(M5,{size:15})," ",h?"저장 중…":"저장"]}),b&&d.jsx("span",{className:"text-emerald-300 text-xs",children:"저장됨"})]})]}),d.jsxs("section",{className:"bg-card border border-edge rounded-xl p-5",children:[d.jsxs("h2",{className:"text-sm font-semibold mb-2 flex items-center gap-2",children:[d.jsx(C5,{size:16,className:"text-brand"})," 연결 테스트"]}),d.jsx("p",{className:"text-sm text-gray-400 mb-4",children:"저장된 설정 기준으로 선택한 제공자에 짧은 ping 을 보내 연결을 확인합니다(요약 결과만)."}),d.jsxs("div",{className:"flex items-center gap-3",children:[d.jsx("button",{onClick:T,disabled:m,className:"px-4 py-2 rounded-lg bg-card border border-edge text-sm disabled:opacity-40 hover:border-brand/50",children:m?"테스트 중…":"테스트 실행"}),S&&d.jsx("span",{className:`text-sm ${k}`,role:"status","aria-live":"polite",children:S.message})]}),d.jsx("p",{className:"text-[11px] text-gray-500 mt-3",children:"먼저 변경 사항을 저장한 뒤 테스트하세요. Claude 실패 시 Ollama 로 자동 폴백합니다."})]})]})]})}const Zce=new Hk;function Jce(){return d.jsx(qk,{client:Zce,children:d.jsx(sk,{children:d.jsxs(z4,{children:[d.jsx(Ae,{path:"/login",element:d.jsx(f8,{})}),d.jsx(Ae,{path:"/signup",element:d.jsx(d8,{})}),d.jsx(Ae,{path:"/find-id",element:d.jsx(h8,{})}),d.jsx(Ae,{path:"/reset-pw",element:d.jsx(p8,{})}),d.jsxs(Ae,{element:d.jsx(gz,{}),children:[d.jsx(Ae,{path:"/dashboard",element:d.jsx(lce,{})}),d.jsx(Ae,{path:"/stores",element:d.jsx(sce,{})}),d.jsx(Ae,{path:"/templates",element:d.jsx(cce,{})}),d.jsx(Ae,{path:"/pos-cvt",element:d.jsx(fce,{})}),d.jsx(Ae,{path:"/tag-binding",element:d.jsx(Ece,{})}),d.jsx(Ae,{path:"/update-queue",element:d.jsx(_ce,{})}),d.jsx(Ae,{path:"/alarms",element:d.jsx(hce,{})}),d.jsx(Ae,{path:"/hcore",element:d.jsx(mce,{})}),d.jsx(Ae,{path:"/works",element:d.jsx(gce,{})}),d.jsx(Ae,{path:"/firmware",element:d.jsx(bce,{})}),d.jsx(Ae,{path:"/products",element:d.jsx(Sce,{})}),d.jsx(Ae,{path:"/users",element:d.jsx(xce,{})}),d.jsx(Ae,{path:"/tenants",element:d.jsx(wce,{})}),d.jsx(Ae,{path:"/ai",element:d.jsx(Oce,{})}),d.jsx(Ae,{path:"/mobile-app",element:d.jsx(Tce,{})}),d.jsx(Ae,{path:"/worklogs",element:d.jsx(Cce,{})}),d.jsx(Ae,{path:"/schedules",element:d.jsx(Rce,{})}),d.jsx(Ae,{path:"/messages",element:d.jsx(kce,{})}),d.jsx(Ae,{path:"/work-stats",element:d.jsx(Bce,{})}),d.jsx(Ae,{path:"/system/roles",element:d.jsx(Ice,{})}),d.jsx(Ae,{path:"/system/role-menus",element:d.jsx(Hce,{})}),d.jsx(Ae,{path:"/system/codes",element:d.jsx(qce,{})}),d.jsx(Ae,{path:"/system/menus",element:d.jsx(Fce,{})}),d.jsx(Ae,{path:"/system/depts",element:d.jsx(Gce,{})}),d.jsx(Ae,{path:"/system/companies",element:d.jsx(Yce,{})}),d.jsx(Ae,{path:"/system/ai-config",element:d.jsx(Wce,{})})]}),d.jsx(Ae,{path:"*",element:d.jsx(aC,{to:"/dashboard",replace:!0})})]})})})}$D.createRoot(document.getElementById("root")).render(d.jsx(j.StrictMode,{children:d.jsx(kD,{children:d.jsx(Jce,{})})}));
