var e1=e=>{throw TypeError(e)};var hm=(e,t,n)=>t.has(e)||e1("Cannot "+n);var U=(e,t,n)=>(hm(e,t,"read from private field"),n?n.call(e):t.get(e)),we=(e,t,n)=>t.has(e)?e1("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),he=(e,t,n,r)=>(hm(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Rt=(e,t,n)=>(hm(e,t,"access private method"),n);var Zc=(e,t,n,r)=>({set _(a){he(e,t,a,n)},get _(){return U(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 Jc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ne(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var A2={exports:{}},qh={};/**
 * @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 zP=Symbol.for("react.transitional.element"),LP=Symbol.for("react.fragment");function E2(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:zP,type:e,key:r,ref:t!==void 0?t:null,props:n}}qh.Fragment=LP;qh.jsx=E2;qh.jsxs=E2;A2.exports=qh;var c=A2.exports,_2={exports:{}},ye={};/**
 * @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 Sb=Symbol.for("react.transitional.element"),BP=Symbol.for("react.portal"),UP=Symbol.for("react.fragment"),IP=Symbol.for("react.strict_mode"),HP=Symbol.for("react.profiler"),qP=Symbol.for("react.consumer"),FP=Symbol.for("react.context"),GP=Symbol.for("react.forward_ref"),VP=Symbol.for("react.suspense"),KP=Symbol.for("react.memo"),T2=Symbol.for("react.lazy"),YP=Symbol.for("react.activity"),t1=Symbol.iterator;function XP(e){return e===null||typeof e!="object"?null:(e=t1&&e[t1]||e["@@iterator"],typeof e=="function"?e:null)}var N2={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C2=Object.assign,M2={};function ns(e,t,n){this.props=e,this.context=t,this.refs=M2,this.updater=n||N2}ns.prototype.isReactComponent={};ns.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")};ns.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function $2(){}$2.prototype=ns.prototype;function wb(e,t,n){this.props=e,this.context=t,this.refs=M2,this.updater=n||N2}var Ob=wb.prototype=new $2;Ob.constructor=wb;C2(Ob,ns.prototype);Ob.isPureReactComponent=!0;var n1=Array.isArray;function Ry(){}var Ye={H:null,A:null,T:null,S:null},P2=Object.prototype.hasOwnProperty;function jb(e,t,n){var r=n.ref;return{$$typeof:Sb,type:e,key:t,ref:r!==void 0?r:null,props:n}}function WP(e,t){return jb(e.type,t,e.props)}function Ab(e){return typeof e=="object"&&e!==null&&e.$$typeof===Sb}function QP(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var r1=/\/+/g;function pm(e,t){return typeof e=="object"&&e!==null&&e.key!=null?QP(""+e.key):t.toString(36)}function ZP(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Ry,Ry):(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 Po(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 Sb:case BP:o=!0;break;case T2:return o=e._init,Po(o(e._payload),t,n,r,a)}}if(o)return a=a(e),o=r===""?"."+pm(e,0):r,n1(a)?(n="",o!=null&&(n=o.replace(r1,"$&/")+"/"),Po(a,t,n,"",function(u){return u})):a!=null&&(Ab(a)&&(a=WP(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(r1,"$&/")+"/")+o)),t.push(a)),1;o=0;var l=r===""?".":r+":";if(n1(e))for(var s=0;s<e.length;s++)r=e[s],i=l+pm(r,s),o+=Po(r,t,n,i,a);else if(s=XP(e),typeof s=="function")for(e=s.call(e),s=0;!(r=e.next()).done;)r=r.value,i=l+pm(r,s++),o+=Po(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Po(ZP(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 ef(e,t,n){if(e==null)return e;var r=[],a=0;return Po(e,r,"","",function(i){return t.call(n,i,a++)}),r}function JP(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 a1=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)},eR={map:ef,forEach:function(e,t,n){ef(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ef(e,function(){t++}),t},toArray:function(e){return ef(e,function(t){return t})||[]},only:function(e){if(!Ab(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ye.Activity=YP;ye.Children=eR;ye.Component=ns;ye.Fragment=UP;ye.Profiler=HP;ye.PureComponent=wb;ye.StrictMode=IP;ye.Suspense=VP;ye.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ye;ye.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Ye.H.useMemoCache(e)}};ye.cache=function(e){return function(){return e.apply(null,arguments)}};ye.cacheSignal=function(){return null};ye.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=C2({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!P2.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 jb(e.type,a,r)};ye.createContext=function(e){return e={$$typeof:FP,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:qP,_context:e},e};ye.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)P2.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 jb(e,i,a)};ye.createRef=function(){return{current:null}};ye.forwardRef=function(e){return{$$typeof:GP,render:e}};ye.isValidElement=Ab;ye.lazy=function(e){return{$$typeof:T2,_payload:{_status:-1,_result:e},_init:JP}};ye.memo=function(e,t){return{$$typeof:KP,type:e,compare:t===void 0?null:t}};ye.startTransition=function(e){var t=Ye.T,n={};Ye.T=n;try{var r=e(),a=Ye.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Ry,a1)}catch(i){a1(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),Ye.T=t}};ye.unstable_useCacheRefresh=function(){return Ye.H.useCacheRefresh()};ye.use=function(e){return Ye.H.use(e)};ye.useActionState=function(e,t,n){return Ye.H.useActionState(e,t,n)};ye.useCallback=function(e,t){return Ye.H.useCallback(e,t)};ye.useContext=function(e){return Ye.H.useContext(e)};ye.useDebugValue=function(){};ye.useDeferredValue=function(e,t){return Ye.H.useDeferredValue(e,t)};ye.useEffect=function(e,t){return Ye.H.useEffect(e,t)};ye.useEffectEvent=function(e){return Ye.H.useEffectEvent(e)};ye.useId=function(){return Ye.H.useId()};ye.useImperativeHandle=function(e,t,n){return Ye.H.useImperativeHandle(e,t,n)};ye.useInsertionEffect=function(e,t){return Ye.H.useInsertionEffect(e,t)};ye.useLayoutEffect=function(e,t){return Ye.H.useLayoutEffect(e,t)};ye.useMemo=function(e,t){return Ye.H.useMemo(e,t)};ye.useOptimistic=function(e,t){return Ye.H.useOptimistic(e,t)};ye.useReducer=function(e,t,n){return Ye.H.useReducer(e,t,n)};ye.useRef=function(e){return Ye.H.useRef(e)};ye.useState=function(e){return Ye.H.useState(e)};ye.useSyncExternalStore=function(e,t,n){return Ye.H.useSyncExternalStore(e,t,n)};ye.useTransition=function(){return Ye.H.useTransition()};ye.version="19.2.7";_2.exports=ye;var A=_2.exports;const T=Ne(A);var R2={exports:{}},Fh={},D2={exports:{}},k2={};/**
 * @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(M,z){var B=M.length;M.push(z);e:for(;0<B;){var F=B-1>>>1,V=M[F];if(0<a(V,z))M[F]=z,M[B]=V,B=F;else break e}}function n(M){return M.length===0?null:M[0]}function r(M){if(M.length===0)return null;var z=M[0],B=M.pop();if(B!==z){M[0]=B;e:for(var F=0,V=M.length,ee=V>>>1;F<ee;){var X=2*(F+1)-1,ie=M[X],D=X+1,W=M[D];if(0>a(ie,B))D<V&&0>a(W,ie)?(M[F]=W,M[D]=B,F=D):(M[F]=ie,M[X]=B,F=X);else if(D<V&&0>a(W,B))M[F]=W,M[D]=B,F=D;else break e}}return z}function a(M,z){var B=M.sortIndex-z.sortIndex;return B!==0?B:M.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=[],d=1,f=null,h=3,p=!1,y=!1,m=!1,b=!1,g=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function v(M){for(var z=n(u);z!==null;){if(z.callback===null)r(u);else if(z.startTime<=M)r(u),z.sortIndex=z.expirationTime,t(s,z);else break;z=n(u)}}function w(M){if(m=!1,v(M),!y)if(n(s)!==null)y=!0,O||(O=!0,C());else{var z=n(u);z!==null&&R(w,z.startTime-M)}}var O=!1,j=-1,_=5,E=-1;function N(){return b?!0:!(e.unstable_now()-E<_)}function $(){if(b=!1,O){var M=e.unstable_now();E=M;var z=!0;try{e:{y=!1,m&&(m=!1,S(j),j=-1),p=!0;var B=h;try{t:{for(v(M),f=n(s);f!==null&&!(f.expirationTime>M&&N());){var F=f.callback;if(typeof F=="function"){f.callback=null,h=f.priorityLevel;var V=F(f.expirationTime<=M);if(M=e.unstable_now(),typeof V=="function"){f.callback=V,v(M),z=!0;break t}f===n(s)&&r(s),v(M)}else r(s);f=n(s)}if(f!==null)z=!0;else{var ee=n(u);ee!==null&&R(w,ee.startTime-M),z=!1}}break e}finally{f=null,h=B,p=!1}z=void 0}}finally{z?C():O=!1}}}var C;if(typeof x=="function")C=function(){x($)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,k=L.port2;L.port1.onmessage=$,C=function(){k.postMessage(null)}}else C=function(){g($,0)};function R(M,z){j=g(function(){M(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(M){M.callback=null},e.unstable_forceFrameRate=function(M){0>M||125<M?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<M?Math.floor(1e3/M):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(M){switch(h){case 1:case 2:case 3:var z=3;break;default:z=h}var B=h;h=z;try{return M()}finally{h=B}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(M,z){switch(M){case 1:case 2:case 3:case 4:case 5:break;default:M=3}var B=h;h=M;try{return z()}finally{h=B}},e.unstable_scheduleCallback=function(M,z,B){var F=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?F+B:F):B=F,M){case 1:var V=-1;break;case 2:V=250;break;case 5:V=1073741823;break;case 4:V=1e4;break;default:V=5e3}return V=B+V,M={id:d++,callback:z,priorityLevel:M,startTime:B,expirationTime:V,sortIndex:-1},B>F?(M.sortIndex=B,t(u,M),n(s)===null&&M===n(u)&&(m?(S(j),j=-1):m=!0,R(w,B-F))):(M.sortIndex=V,t(s,M),y||p||(y=!0,O||(O=!0,C()))),M},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(M){var z=h;return function(){var B=h;h=z;try{return M.apply(this,arguments)}finally{h=B}}}})(k2);D2.exports=k2;var tR=D2.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 nR=A;function L2(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 Sa(){}var Xt={d:{f:Sa,r:function(){throw Error(L2(522))},D:Sa,C:Sa,L:Sa,m:Sa,X:Sa,S:Sa,M:Sa},p:0,findDOMNode:null},rR=Symbol.for("react.portal");function aR(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:rR,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var eu=nR.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Gh(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=Xt;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(L2(299));return aR(e,t,null,n)};tn.flushSync=function(e){var t=eu.T,n=Xt.p;try{if(eu.T=null,Xt.p=2,e)return e()}finally{eu.T=t,Xt.p=n,Xt.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,Xt.d.C(e,t))};tn.prefetchDNS=function(e){typeof e=="string"&&Xt.d.D(e)};tn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Gh(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Xt.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&Xt.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=Gh(t.as,t.crossOrigin);Xt.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&&Xt.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=Gh(n,t.crossOrigin);Xt.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=Gh(t.as,t.crossOrigin);Xt.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 Xt.d.m(e)};tn.requestFormReset=function(e){Xt.d.r(e)};tn.unstable_batchedUpdates=function(e,t){return e(t)};tn.useFormState=function(e,t,n){return eu.H.useFormState(e,t,n)};tn.useFormStatus=function(){return eu.H.useHostTransitionStatus()};tn.version="19.2.7";function B2(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(B2)}catch(e){console.error(e)}}B2(),z2.exports=tn;var iR=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 At=tR,U2=A,oR=iR;function H(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 I2(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function wc(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 H2(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 q2(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 i1(e){if(wc(e)!==e)throw Error(H(188))}function lR(e){var t=e.alternate;if(!t){if(t=wc(e),t===null)throw Error(H(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 i1(a),e;if(i===r)return i1(a),t;i=i.sibling}throw Error(H(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(H(189))}}if(n.alternate!==r)throw Error(H(190))}if(n.tag!==3)throw Error(H(188));return n.stateNode.current===n?e:t}function F2(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=F2(e),t!==null)return t;e=e.sibling}return null}var Xe=Object.assign,sR=Symbol.for("react.element"),tf=Symbol.for("react.transitional.element"),Ys=Symbol.for("react.portal"),ko=Symbol.for("react.fragment"),G2=Symbol.for("react.strict_mode"),Dy=Symbol.for("react.profiler"),V2=Symbol.for("react.consumer"),Yr=Symbol.for("react.context"),Eb=Symbol.for("react.forward_ref"),ky=Symbol.for("react.suspense"),zy=Symbol.for("react.suspense_list"),_b=Symbol.for("react.memo"),ja=Symbol.for("react.lazy"),Ly=Symbol.for("react.activity"),uR=Symbol.for("react.memo_cache_sentinel"),o1=Symbol.iterator;function Ns(e){return e===null||typeof e!="object"?null:(e=o1&&e[o1]||e["@@iterator"],typeof e=="function"?e:null)}var cR=Symbol.for("react.client.reference");function By(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===cR?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ko:return"Fragment";case Dy:return"Profiler";case G2:return"StrictMode";case ky:return"Suspense";case zy:return"SuspenseList";case Ly:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ys:return"Portal";case Yr:return e.displayName||"Context";case V2:return(e._context.displayName||"Context")+".Consumer";case Eb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case _b:return t=e.displayName||null,t!==null?t:By(e.type)||"Memo";case ja:t=e._payload,e=e._init;try{return By(e(t))}catch{}}return null}var Xs=Array.isArray,de=U2.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_e=oR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Hi={pending:!1,data:null,method:null,action:null},Uy=[],zo=-1;function $r(e){return{current:e}}function $t(e){0>zo||(e.current=Uy[zo],Uy[zo]=null,zo--)}function Ie(e,t){zo++,Uy[zo]=e.current,e.current=t}var _r=$r(null),Su=$r(null),Ga=$r(null),id=$r(null);function od(e,t){switch(Ie(Ga,t),Ie(Su,e),Ie(_r,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dS(t),e=dT(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}$t(_r),Ie(_r,e)}function gl(){$t(_r),$t(Su),$t(Ga)}function Iy(e){e.memoizedState!==null&&Ie(id,e);var t=_r.current,n=dT(t,e.type);t!==n&&(Ie(Su,e),Ie(_r,n))}function ld(e){Su.current===e&&($t(_r),$t(Su)),id.current===e&&($t(id),$u._currentValue=Hi)}var mm,l1;function wi(e){if(mm===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);mm=t&&t[1]||"",l1=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+mm+e+l1}var ym=!1;function vm(e,t){if(!e||ym)return"";ym=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(p){var h=p}Reflect.construct(e,[],f)}else{try{f.call()}catch(p){h=p}e.call(f.prototype)}}else{try{throw Error()}catch(p){h=p}(f=e())&&typeof f.catch=="function"&&f.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 d=`
`+s[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=a);break}}}finally{ym=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?wi(n):""}function fR(e,t){switch(e.tag){case 26:case 27:case 5:return wi(e.type);case 16:return wi("Lazy");case 13:return e.child!==t&&t!==null?wi("Suspense Fallback"):wi("Suspense");case 19:return wi("SuspenseList");case 0:case 15:return vm(e.type,!1);case 11:return vm(e.type.render,!1);case 1:return vm(e.type,!0);case 31:return wi("Activity");default:return""}}function s1(e){try{var t="",n=null;do t+=fR(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var Hy=Object.prototype.hasOwnProperty,Tb=At.unstable_scheduleCallback,gm=At.unstable_cancelCallback,dR=At.unstable_shouldYield,hR=At.unstable_requestPaint,jn=At.unstable_now,pR=At.unstable_getCurrentPriorityLevel,K2=At.unstable_ImmediatePriority,Y2=At.unstable_UserBlockingPriority,sd=At.unstable_NormalPriority,mR=At.unstable_LowPriority,X2=At.unstable_IdlePriority,yR=At.log,vR=At.unstable_setDisableYieldValue,Oc=null,An=null;function La(e){if(typeof yR=="function"&&vR(e),An&&typeof An.setStrictMode=="function")try{An.setStrictMode(Oc,e)}catch{}}var En=Math.clz32?Math.clz32:xR,gR=Math.log,bR=Math.LN2;function xR(e){return e>>>=0,e===0?32:31-(gR(e)/bR|0)|0}var nf=256,rf=262144,af=4194304;function Oi(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 Vh(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=Oi(r):(o&=l,o!==0?a=Oi(o):n||(n=l&~e,n!==0&&(a=Oi(n))))):(l=r&~i,l!==0?a=Oi(l):o!==0?a=Oi(o):n||(n=r&~e,n!==0&&(a=Oi(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 jc(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function SR(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 W2(){var e=af;return af<<=1,!(af&62914560)&&(af=4194304),e}function bm(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ac(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function wR(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 d=31-En(n),f=1<<d;l[d]=0,s[d]=-1;var h=u[d];if(h!==null)for(u[d]=null,d=0;d<h.length;d++){var p=h[d];p!==null&&(p.lane&=-536870913)}n&=~f}r!==0&&Q2(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(o&~t))}function Q2(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-En(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Z2(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-En(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function J2(e,t){var n=t&-t;return n=n&42?1:Nb(n),n&(e.suspendedLanes|t)?0:n}function Nb(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 Cb(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function eE(){var e=_e.p;return e!==0?e:(e=window.event,e===void 0?32:OT(e.type))}function u1(e,t){var n=_e.p;try{return _e.p=e,t()}finally{_e.p=n}}var si=Math.random().toString(36).slice(2),zt="__reactFiber$"+si,fn="__reactProps$"+si,rs="__reactContainer$"+si,qy="__reactEvents$"+si,OR="__reactListeners$"+si,jR="__reactHandles$"+si,c1="__reactResources$"+si,Ec="__reactMarker$"+si;function Mb(e){delete e[zt],delete e[fn],delete e[qy],delete e[OR],delete e[jR]}function Lo(e){var t=e[zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rs]||n[zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=vS(e);e!==null;){if(n=e[zt])return n;e=vS(e)}return t}e=n,n=e.parentNode}return null}function as(e){if(e=e[zt]||e[rs]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Ws(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(H(33))}function Jo(e){var t=e[c1];return t||(t=e[c1]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ct(e){e[Ec]=!0}var tE=new Set,nE={};function fo(e,t){bl(e,t),bl(e+"Capture",t)}function bl(e,t){for(nE[e]=t,e=0;e<t.length;e++)tE.add(t[e])}var AR=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]*$"),f1={},d1={};function ER(e){return Hy.call(d1,e)?!0:Hy.call(f1,e)?!1:AR.test(e)?d1[e]=!0:(f1[e]=!0,!1)}function zf(e,t,n){if(ER(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 of(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 zr(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 In(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function rE(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _R(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 Fy(e){if(!e._valueTracker){var t=rE(e)?"checked":"value";e._valueTracker=_R(e,t,""+e[t])}}function aE(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=rE(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function ud(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 TR=/[\n"\\]/g;function Fn(e){return e.replace(TR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gy(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=""+In(t)):e.value!==""+In(t)&&(e.value=""+In(t)):o!=="submit"&&o!=="reset"||e.removeAttribute("value"),t!=null?Vy(e,o,In(t)):n!=null?Vy(e,o,In(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=""+In(l):e.removeAttribute("name")}function iE(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)){Fy(e);return}n=n!=null?""+In(n):"",t=t!=null?""+In(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),Fy(e)}function Vy(e,t,n){t==="number"&&ud(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function el(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=""+In(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 oE(e,t,n){if(t!=null&&(t=""+In(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+In(n):""}function lE(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(H(92));if(Xs(r)){if(1<r.length)throw Error(H(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=In(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Fy(e)}function xl(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var NR=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 h1(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||NR.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function sE(e,t,n){if(t!=null&&typeof t!="object")throw Error(H(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&&h1(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&h1(e,i,t[i])}function $b(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 CR=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"]]),MR=/^[\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 Lf(e){return MR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Xr(){}var Ky=null;function Pb(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bo=null,tl=null;function p1(e){var t=as(e);if(t&&(e=t.stateNode)){var n=e[fn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Gy(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[fn]||null;if(!a)throw Error(H(90));Gy(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&&aE(r)}break e;case"textarea":oE(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&el(e,!!n.multiple,t,!1)}}}var xm=!1;function uE(e,t,n){if(xm)return e(t,n);xm=!0;try{var r=e(t);return r}finally{if(xm=!1,(Bo!==null||tl!==null)&&(ap(),Bo&&(t=Bo,e=tl,tl=Bo=null,p1(t),e)))for(t=0;t<e.length;t++)p1(e[t])}}function wu(e,t){var n=e.stateNode;if(n===null)return null;var r=n[fn]||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(H(231,t,typeof n));return n}var oa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Yy=!1;if(oa)try{var Cs={};Object.defineProperty(Cs,"passive",{get:function(){Yy=!0}}),window.addEventListener("test",Cs,Cs),window.removeEventListener("test",Cs,Cs)}catch{Yy=!1}var Ba=null,Rb=null,Bf=null;function cE(){if(Bf)return Bf;var e,t=Rb,n=t.length,r,a="value"in Ba?Ba.value:Ba.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 Bf=a.slice(e,1<r?1-r:void 0)}function Uf(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 lf(){return!0}function m1(){return!1}function dn(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)?lf:m1,this.isPropagationStopped=m1,this}return Xe(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=lf)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=lf)},persist:function(){},isPersistent:lf}),t}var ho={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Kh=dn(ho),_c=Xe({},ho,{view:0,detail:0}),$R=dn(_c),Sm,wm,Ms,Yh=Xe({},_c,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Db,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!==Ms&&(Ms&&e.type==="mousemove"?(Sm=e.screenX-Ms.screenX,wm=e.screenY-Ms.screenY):wm=Sm=0,Ms=e),Sm)},movementY:function(e){return"movementY"in e?e.movementY:wm}}),y1=dn(Yh),PR=Xe({},Yh,{dataTransfer:0}),RR=dn(PR),DR=Xe({},_c,{relatedTarget:0}),Om=dn(DR),kR=Xe({},ho,{animationName:0,elapsedTime:0,pseudoElement:0}),zR=dn(kR),LR=Xe({},ho,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),BR=dn(LR),UR=Xe({},ho,{data:0}),v1=dn(UR),IR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HR={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"},qR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function FR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=qR[e])?!!t[e]:!1}function Db(){return FR}var GR=Xe({},_c,{key:function(e){if(e.key){var t=IR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Uf(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?HR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Db,charCode:function(e){return e.type==="keypress"?Uf(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Uf(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VR=dn(GR),KR=Xe({},Yh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),g1=dn(KR),YR=Xe({},_c,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Db}),XR=dn(YR),WR=Xe({},ho,{propertyName:0,elapsedTime:0,pseudoElement:0}),QR=dn(WR),ZR=Xe({},Yh,{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}),JR=dn(ZR),eD=Xe({},ho,{newState:0,oldState:0}),tD=dn(eD),nD=[9,13,27,32],kb=oa&&"CompositionEvent"in window,tu=null;oa&&"documentMode"in document&&(tu=document.documentMode);var rD=oa&&"TextEvent"in window&&!tu,fE=oa&&(!kb||tu&&8<tu&&11>=tu),b1=" ",x1=!1;function dE(e,t){switch(e){case"keyup":return nD.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function hE(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Uo=!1;function aD(e,t){switch(e){case"compositionend":return hE(t);case"keypress":return t.which!==32?null:(x1=!0,b1);case"textInput":return e=t.data,e===b1&&x1?null:e;default:return null}}function iD(e,t){if(Uo)return e==="compositionend"||!kb&&dE(e,t)?(e=cE(),Bf=Rb=Ba=null,Uo=!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 fE&&t.locale!=="ko"?null:t.data;default:return null}}var oD={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 S1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oD[e.type]:t==="textarea"}function pE(e,t,n,r){Bo?tl?tl.push(r):tl=[r]:Bo=r,t=_d(t,"onChange"),0<t.length&&(n=new Kh("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var nu=null,Ou=null;function lD(e){uT(e,0)}function Xh(e){var t=Ws(e);if(aE(t))return e}function w1(e,t){if(e==="change")return t}var mE=!1;if(oa){var jm;if(oa){var Am="oninput"in document;if(!Am){var O1=document.createElement("div");O1.setAttribute("oninput","return;"),Am=typeof O1.oninput=="function"}jm=Am}else jm=!1;mE=jm&&(!document.documentMode||9<document.documentMode)}function j1(){nu&&(nu.detachEvent("onpropertychange",yE),Ou=nu=null)}function yE(e){if(e.propertyName==="value"&&Xh(Ou)){var t=[];pE(t,Ou,e,Pb(e)),uE(lD,t)}}function sD(e,t,n){e==="focusin"?(j1(),nu=t,Ou=n,nu.attachEvent("onpropertychange",yE)):e==="focusout"&&j1()}function uD(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Xh(Ou)}function cD(e,t){if(e==="click")return Xh(t)}function fD(e,t){if(e==="input"||e==="change")return Xh(t)}function dD(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Mn=typeof Object.is=="function"?Object.is:dD;function ju(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(!Hy.call(t,a)||!Mn(e[a],t[a]))return!1}return!0}function A1(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function E1(e,t){var n=A1(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=A1(n)}}function vE(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?vE(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function gE(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=ud(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=ud(e.document)}return t}function zb(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 hD=oa&&"documentMode"in document&&11>=document.documentMode,Io=null,Xy=null,ru=null,Wy=!1;function _1(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wy||Io==null||Io!==ud(r)||(r=Io,"selectionStart"in r&&zb(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}),ru&&ju(ru,r)||(ru=r,r=_d(Xy,"onSelect"),0<r.length&&(t=new Kh("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Io)))}function gi(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ho={animationend:gi("Animation","AnimationEnd"),animationiteration:gi("Animation","AnimationIteration"),animationstart:gi("Animation","AnimationStart"),transitionrun:gi("Transition","TransitionRun"),transitionstart:gi("Transition","TransitionStart"),transitioncancel:gi("Transition","TransitionCancel"),transitionend:gi("Transition","TransitionEnd")},Em={},bE={};oa&&(bE=document.createElement("div").style,"AnimationEvent"in window||(delete Ho.animationend.animation,delete Ho.animationiteration.animation,delete Ho.animationstart.animation),"TransitionEvent"in window||delete Ho.transitionend.transition);function po(e){if(Em[e])return Em[e];if(!Ho[e])return e;var t=Ho[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in bE)return Em[e]=t[n];return e}var xE=po("animationend"),SE=po("animationiteration"),wE=po("animationstart"),pD=po("transitionrun"),mD=po("transitionstart"),yD=po("transitioncancel"),OE=po("transitionend"),jE=new Map,Qy="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(" ");Qy.push("scrollEnd");function pr(e,t){jE.set(e,t),fo(t,[e])}var cd=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)},Un=[],qo=0,Lb=0;function Wh(){for(var e=qo,t=Lb=qo=0;t<e;){var n=Un[t];Un[t++]=null;var r=Un[t];Un[t++]=null;var a=Un[t];Un[t++]=null;var i=Un[t];if(Un[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&&AE(n,a,i)}}function Qh(e,t,n,r){Un[qo++]=e,Un[qo++]=t,Un[qo++]=n,Un[qo++]=r,Lb|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Bb(e,t,n,r){return Qh(e,t,n,r),fd(e)}function mo(e,t){return Qh(e,null,null,t),fd(e)}function AE(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-En(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function fd(e){if(50<du)throw du=0,gv=null,Error(H(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Fo={};function vD(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 Sn(e,t,n,r){return new vD(e,t,n,r)}function Ub(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ta(e,t){var n=e.alternate;return n===null?(n=Sn(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 EE(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 If(e,t,n,r,a,i){var o=0;if(r=e,typeof e=="function")Ub(e)&&(o=1);else if(typeof e=="string")o=w3(e,n,_r.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Ly:return e=Sn(31,n,t,a),e.elementType=Ly,e.lanes=i,e;case ko:return qi(n.children,a,i,t);case G2:o=8,a|=24;break;case Dy:return e=Sn(12,n,t,a|2),e.elementType=Dy,e.lanes=i,e;case ky:return e=Sn(13,n,t,a),e.elementType=ky,e.lanes=i,e;case zy:return e=Sn(19,n,t,a),e.elementType=zy,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yr:o=10;break e;case V2:o=9;break e;case Eb:o=11;break e;case _b:o=14;break e;case ja:o=16,r=null;break e}o=29,n=Error(H(130,e===null?"null":typeof e,"")),r=null}return t=Sn(o,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function qi(e,t,n,r){return e=Sn(7,e,r,t),e.lanes=n,e}function _m(e,t,n){return e=Sn(6,e,null,t),e.lanes=n,e}function _E(e){var t=Sn(18,null,null,0);return t.stateNode=e,t}function Tm(e,t,n){return t=Sn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var T1=new WeakMap;function Gn(e,t){if(typeof e=="object"&&e!==null){var n=T1.get(e);return n!==void 0?n:(t={value:e,source:t,stack:s1(t)},T1.set(e,t),t)}return{value:e,source:t,stack:s1(t)}}var Go=[],Vo=0,dd=null,Au=0,Hn=[],qn=0,ri=null,Sr=1,wr="";function Gr(e,t){Go[Vo++]=Au,Go[Vo++]=dd,dd=e,Au=t}function TE(e,t,n){Hn[qn++]=Sr,Hn[qn++]=wr,Hn[qn++]=ri,ri=e;var r=Sr;e=wr;var a=32-En(r)-1;r&=~(1<<a),n+=1;var i=32-En(t)+a;if(30<i){var o=a-a%5;i=(r&(1<<o)-1).toString(32),r>>=o,a-=o,Sr=1<<32-En(t)+a|n<<a|r,wr=i+e}else Sr=1<<i|n<<a|r,wr=e}function Ib(e){e.return!==null&&(Gr(e,1),TE(e,1,0))}function Hb(e){for(;e===dd;)dd=Go[--Vo],Go[Vo]=null,Au=Go[--Vo],Go[Vo]=null;for(;e===ri;)ri=Hn[--qn],Hn[qn]=null,wr=Hn[--qn],Hn[qn]=null,Sr=Hn[--qn],Hn[qn]=null}function NE(e,t){Hn[qn++]=Sr,Hn[qn++]=wr,Hn[qn++]=ri,Sr=t.id,wr=t.overflow,ri=e}var Lt=null,Ke=null,je=!1,Va=null,Vn=!1,Zy=Error(H(519));function ai(e){var t=Error(H(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Eu(Gn(t,e)),Zy}function N1(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[zt]=e,t[fn]=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<Cu.length;n++)be(Cu[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),iE(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),lE(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||fT(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=Xr),t=!0):t=!1,t||ai(e,!0)}function C1(e){for(Lt=e.return;Lt;)switch(Lt.tag){case 5:case 31:case 13:Vn=!1;return;case 27:case 3:Vn=!0;return;default:Lt=Lt.return}}function Ao(e){if(e!==Lt)return!1;if(!je)return C1(e),je=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Ov(e.type,e.memoizedProps)),n=!n),n&&Ke&&ai(e),C1(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));Ke=yS(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(317));Ke=yS(e)}else t===27?(t=Ke,ui(e.type)?(e=_v,_v=null,Ke=e):Ke=t):Ke=Lt?Wn(e.stateNode.nextSibling):null;return!0}function Qi(){Ke=Lt=null,je=!1}function Nm(){var e=Va;return e!==null&&(ln===null?ln=e:ln.push.apply(ln,e),Va=null),e}function Eu(e){Va===null?Va=[e]:Va.push(e)}var Jy=$r(null),yo=null,Wr=null;function _a(e,t,n){Ie(Jy,t._currentValue),t._currentValue=n}function na(e){e._currentValue=Jy.current,$t(Jy)}function ev(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 tv(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),ev(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(H(341));o.lanes|=n,i=o.alternate,i!==null&&(i.lanes|=n),ev(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 is(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(H(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===id.current){if(o=a.alternate,o===null)throw Error(H(387));o.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push($u):e=[$u])}a=a.return}e!==null&&tv(t,e,n,r),t.flags|=262144}function hd(e){for(e=e.firstContext;e!==null;){if(!Mn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Zi(e){yo=e,Wr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ut(e){return CE(yo,e)}function sf(e,t){return yo===null&&Zi(e),CE(e,t)}function CE(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Wr===null){if(e===null)throw Error(H(308));Wr=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Wr=Wr.next=t;return n}var gD=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()})}},bD=At.unstable_scheduleCallback,xD=At.unstable_NormalPriority,mt={$$typeof:Yr,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function qb(){return{controller:new gD,data:new Map,refCount:0}}function Tc(e){e.refCount--,e.refCount===0&&bD(xD,function(){e.controller.abort()})}var au=null,nv=0,Sl=0,nl=null;function SD(e,t){if(au===null){var n=au=[];nv=0,Sl=p0(),nl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return nv++,t.then(M1,M1),t}function M1(){if(--nv===0&&au!==null){nl!==null&&(nl.status="fulfilled");var e=au;au=null,Sl=0,nl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function wD(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 $1=de.S;de.S=function(e,t){F_=jn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&SD(e,t),$1!==null&&$1(e,t)};var Fi=$r(null);function Fb(){var e=Fi.current;return e!==null?e:Le.pooledCache}function Hf(e,t){t===null?Ie(Fi,Fi.current):Ie(Fi,t.pool)}function ME(){var e=Fb();return e===null?null:{parent:mt._currentValue,pool:e}}var os=Error(H(460)),Gb=Error(H(474)),Zh=Error(H(542)),pd={then:function(){}};function P1(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $E(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Xr,Xr),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,D1(e),e;default:if(typeof t.status=="string")t.then(Xr,Xr);else{if(e=Le,e!==null&&100<e.shellSuspendCounter)throw Error(H(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,D1(e),e}throw Gi=t,os}}function ji(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Gi=n,os):n}}var Gi=null;function R1(){if(Gi===null)throw Error(H(459));var e=Gi;return Gi=null,e}function D1(e){if(e===os||e===Zh)throw Error(H(483))}var rl=null,_u=0;function uf(e){var t=_u;return _u+=1,rl===null&&(rl=[]),$E(rl,e,t)}function $s(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function cf(e,t){throw t.$$typeof===sR?Error(H(525)):(e=Object.prototype.toString.call(t),Error(H(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function PE(e){function t(g,S){if(e){var x=g.deletions;x===null?(g.deletions=[S],g.flags|=16):x.push(S)}}function n(g,S){if(!e)return null;for(;S!==null;)t(g,S),S=S.sibling;return null}function r(g){for(var S=new Map;g!==null;)g.key!==null?S.set(g.key,g):S.set(g.index,g),g=g.sibling;return S}function a(g,S){return g=ta(g,S),g.index=0,g.sibling=null,g}function i(g,S,x){return g.index=x,e?(x=g.alternate,x!==null?(x=x.index,x<S?(g.flags|=67108866,S):x):(g.flags|=67108866,S)):(g.flags|=1048576,S)}function o(g){return e&&g.alternate===null&&(g.flags|=67108866),g}function l(g,S,x,v){return S===null||S.tag!==6?(S=_m(x,g.mode,v),S.return=g,S):(S=a(S,x),S.return=g,S)}function s(g,S,x,v){var w=x.type;return w===ko?d(g,S,x.props.children,v,x.key):S!==null&&(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ja&&ji(w)===S.type)?(S=a(S,x.props),$s(S,x),S.return=g,S):(S=If(x.type,x.key,x.props,null,g.mode,v),$s(S,x),S.return=g,S)}function u(g,S,x,v){return S===null||S.tag!==4||S.stateNode.containerInfo!==x.containerInfo||S.stateNode.implementation!==x.implementation?(S=Tm(x,g.mode,v),S.return=g,S):(S=a(S,x.children||[]),S.return=g,S)}function d(g,S,x,v,w){return S===null||S.tag!==7?(S=qi(x,g.mode,v,w),S.return=g,S):(S=a(S,x),S.return=g,S)}function f(g,S,x){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return S=_m(""+S,g.mode,x),S.return=g,S;if(typeof S=="object"&&S!==null){switch(S.$$typeof){case tf:return x=If(S.type,S.key,S.props,null,g.mode,x),$s(x,S),x.return=g,x;case Ys:return S=Tm(S,g.mode,x),S.return=g,S;case ja:return S=ji(S),f(g,S,x)}if(Xs(S)||Ns(S))return S=qi(S,g.mode,x,null),S.return=g,S;if(typeof S.then=="function")return f(g,uf(S),x);if(S.$$typeof===Yr)return f(g,sf(g,S),x);cf(g,S)}return null}function h(g,S,x,v){var w=S!==null?S.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return w!==null?null:l(g,S,""+x,v);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case tf:return x.key===w?s(g,S,x,v):null;case Ys:return x.key===w?u(g,S,x,v):null;case ja:return x=ji(x),h(g,S,x,v)}if(Xs(x)||Ns(x))return w!==null?null:d(g,S,x,v,null);if(typeof x.then=="function")return h(g,S,uf(x),v);if(x.$$typeof===Yr)return h(g,S,sf(g,x),v);cf(g,x)}return null}function p(g,S,x,v,w){if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return g=g.get(x)||null,l(S,g,""+v,w);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case tf:return g=g.get(v.key===null?x:v.key)||null,s(S,g,v,w);case Ys:return g=g.get(v.key===null?x:v.key)||null,u(S,g,v,w);case ja:return v=ji(v),p(g,S,x,v,w)}if(Xs(v)||Ns(v))return g=g.get(x)||null,d(S,g,v,w,null);if(typeof v.then=="function")return p(g,S,x,uf(v),w);if(v.$$typeof===Yr)return p(g,S,x,sf(S,v),w);cf(S,v)}return null}function y(g,S,x,v){for(var w=null,O=null,j=S,_=S=0,E=null;j!==null&&_<x.length;_++){j.index>_?(E=j,j=null):E=j.sibling;var N=h(g,j,x[_],v);if(N===null){j===null&&(j=E);break}e&&j&&N.alternate===null&&t(g,j),S=i(N,S,_),O===null?w=N:O.sibling=N,O=N,j=E}if(_===x.length)return n(g,j),je&&Gr(g,_),w;if(j===null){for(;_<x.length;_++)j=f(g,x[_],v),j!==null&&(S=i(j,S,_),O===null?w=j:O.sibling=j,O=j);return je&&Gr(g,_),w}for(j=r(j);_<x.length;_++)E=p(j,g,_,x[_],v),E!==null&&(e&&E.alternate!==null&&j.delete(E.key===null?_:E.key),S=i(E,S,_),O===null?w=E:O.sibling=E,O=E);return e&&j.forEach(function($){return t(g,$)}),je&&Gr(g,_),w}function m(g,S,x,v){if(x==null)throw Error(H(151));for(var w=null,O=null,j=S,_=S=0,E=null,N=x.next();j!==null&&!N.done;_++,N=x.next()){j.index>_?(E=j,j=null):E=j.sibling;var $=h(g,j,N.value,v);if($===null){j===null&&(j=E);break}e&&j&&$.alternate===null&&t(g,j),S=i($,S,_),O===null?w=$:O.sibling=$,O=$,j=E}if(N.done)return n(g,j),je&&Gr(g,_),w;if(j===null){for(;!N.done;_++,N=x.next())N=f(g,N.value,v),N!==null&&(S=i(N,S,_),O===null?w=N:O.sibling=N,O=N);return je&&Gr(g,_),w}for(j=r(j);!N.done;_++,N=x.next())N=p(j,g,_,N.value,v),N!==null&&(e&&N.alternate!==null&&j.delete(N.key===null?_:N.key),S=i(N,S,_),O===null?w=N:O.sibling=N,O=N);return e&&j.forEach(function(C){return t(g,C)}),je&&Gr(g,_),w}function b(g,S,x,v){if(typeof x=="object"&&x!==null&&x.type===ko&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case tf:e:{for(var w=x.key;S!==null;){if(S.key===w){if(w=x.type,w===ko){if(S.tag===7){n(g,S.sibling),v=a(S,x.props.children),v.return=g,g=v;break e}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===ja&&ji(w)===S.type){n(g,S.sibling),v=a(S,x.props),$s(v,x),v.return=g,g=v;break e}n(g,S);break}else t(g,S);S=S.sibling}x.type===ko?(v=qi(x.props.children,g.mode,v,x.key),v.return=g,g=v):(v=If(x.type,x.key,x.props,null,g.mode,v),$s(v,x),v.return=g,g=v)}return o(g);case Ys:e:{for(w=x.key;S!==null;){if(S.key===w)if(S.tag===4&&S.stateNode.containerInfo===x.containerInfo&&S.stateNode.implementation===x.implementation){n(g,S.sibling),v=a(S,x.children||[]),v.return=g,g=v;break e}else{n(g,S);break}else t(g,S);S=S.sibling}v=Tm(x,g.mode,v),v.return=g,g=v}return o(g);case ja:return x=ji(x),b(g,S,x,v)}if(Xs(x))return y(g,S,x,v);if(Ns(x)){if(w=Ns(x),typeof w!="function")throw Error(H(150));return x=w.call(x),m(g,S,x,v)}if(typeof x.then=="function")return b(g,S,uf(x),v);if(x.$$typeof===Yr)return b(g,S,sf(g,x),v);cf(g,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,S!==null&&S.tag===6?(n(g,S.sibling),v=a(S,x),v.return=g,g=v):(n(g,S),v=_m(x,g.mode,v),v.return=g,g=v),o(g)):n(g,S)}return function(g,S,x,v){try{_u=0;var w=b(g,S,x,v);return rl=null,w}catch(j){if(j===os||j===Zh)throw j;var O=Sn(29,j,null,g.mode);return O.lanes=v,O.return=g,O}finally{}}}var Ji=PE(!0),RE=PE(!1),Aa=!1;function Vb(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function rv(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 Ka(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ya(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Ee&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=fd(e),AE(e,null,n),t}return Qh(e,r,t,n),fd(e)}function iu(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,Z2(e,n)}}function Cm(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 av=!1;function ou(){if(av){var e=nl;if(e!==null)throw e}}function lu(e,t,n,r){av=!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 d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==o&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=s))}if(i!==null){var f=a.baseState;o=0,d=u=s=null,l=i;do{var h=l.lane&-536870913,p=h!==l.lane;if(p?(Oe&h)===h:(r&h)===h){h!==0&&h===Sl&&(av=!0),d!==null&&(d=d.next={lane:0,tag:l.tag,payload:l.payload,callback:null,next:null});e:{var y=e,m=l;h=t;var b=n;switch(m.tag){case 1:if(y=m.payload,typeof y=="function"){f=y.call(b,f,h);break e}f=y;break e;case 3:y.flags=y.flags&-65537|128;case 0:if(y=m.payload,h=typeof y=="function"?y.call(b,f,h):y,h==null)break e;f=Xe({},f,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},d===null?(u=d=p,s=f):d=d.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);d===null&&(s=f),a.baseState=s,a.firstBaseUpdate=u,a.lastBaseUpdate=d,i===null&&(a.shared.lanes=0),oi|=o,e.lanes=o,e.memoizedState=f}}function DE(e,t){if(typeof e!="function")throw Error(H(191,e));e.call(t)}function kE(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)DE(n[e],t)}var wl=$r(null),md=$r(0);function k1(e,t){e=ca,Ie(md,e),Ie(wl,t),ca=e|t.baseLanes}function iv(){Ie(md,ca),Ie(wl,wl.current)}function Kb(){ca=md.current,$t(wl),$t(md)}var $n=$r(null),Xn=null;function Ta(e){var t=e.alternate;Ie(lt,lt.current&1),Ie($n,e),Xn===null&&(t===null||wl.current!==null||t.memoizedState!==null)&&(Xn=e)}function ov(e){Ie(lt,lt.current),Ie($n,e),Xn===null&&(Xn=e)}function zE(e){e.tag===22?(Ie(lt,lt.current),Ie($n,e),Xn===null&&(Xn=e)):Na()}function Na(){Ie(lt,lt.current),Ie($n,$n.current)}function xn(e){$t($n),Xn===e&&(Xn=null),$t(lt)}var lt=$r(0);function yd(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Av(n)||Ev(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 la=0,ve=null,ke=null,ht=null,vd=!1,al=!1,eo=!1,gd=0,Tu=0,il=null,OD=0;function nt(){throw Error(H(321))}function Yb(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 Xb(e,t,n,r,a,i){return la=i,ve=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,de.H=e===null||e.memoizedState===null?p_:o0,eo=!1,i=n(r,a),eo=!1,al&&(i=BE(t,n,r,a)),LE(e),i}function LE(e){de.H=Nu;var t=ke!==null&&ke.next!==null;if(la=0,ht=ke=ve=null,vd=!1,Tu=0,il=null,t)throw Error(H(300));e===null||vt||(e=e.dependencies,e!==null&&hd(e)&&(vt=!0))}function BE(e,t,n,r){ve=e;var a=0;do{if(al&&(il=null),Tu=0,al=!1,25<=a)throw Error(H(301));if(a+=1,ht=ke=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}de.H=m_,i=t(n,r)}while(al);return i}function jD(){var e=de.H,t=e.useState()[0];return t=typeof t.then=="function"?Nc(t):t,e=e.useState()[0],(ke!==null?ke.memoizedState:null)!==e&&(ve.flags|=1024),t}function Wb(){var e=gd!==0;return gd=0,e}function Qb(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Zb(e){if(vd){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}vd=!1}la=0,ht=ke=ve=null,al=!1,Tu=gd=0,il=null}function Kt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?ve.memoizedState=ht=e:ht=ht.next=e,ht}function ut(){if(ke===null){var e=ve.alternate;e=e!==null?e.memoizedState:null}else e=ke.next;var t=ht===null?ve.memoizedState:ht.next;if(t!==null)ht=t,ke=e;else{if(e===null)throw ve.alternate===null?Error(H(467)):Error(H(310));ke=e,e={memoizedState:ke.memoizedState,baseState:ke.baseState,baseQueue:ke.baseQueue,queue:ke.queue,next:null},ht===null?ve.memoizedState=ht=e:ht=ht.next=e}return ht}function Jh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Nc(e){var t=Tu;return Tu+=1,il===null&&(il=[]),e=$E(il,e,t),t=ve,(ht===null?t.memoizedState:ht.next)===null&&(t=t.alternate,de.H=t===null||t.memoizedState===null?p_:o0),e}function ep(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Nc(e);if(e.$$typeof===Yr)return Ut(e)}throw Error(H(438,String(e)))}function Jb(e){var t=null,n=ve.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ve.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=Jh(),ve.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]=uR;return t.index++,n}function sa(e,t){return typeof t=="function"?t(e):t}function qf(e){var t=ut();return e0(t,ke,e)}function e0(e,t,n){var r=e.queue;if(r===null)throw Error(H(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,d=!1;do{var f=u.lane&-536870913;if(f!==u.lane?(Oe&f)===f:(la&f)===f){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}),f===Sl&&(d=!0);else if((la&h)===h){u=u.next,h===Sl&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},s===null?(l=s=f,o=i):s=s.next=f,ve.lanes|=h,oi|=h;f=u.action,eo&&n(i,f),i=u.hasEagerState?u.eagerState:n(i,f)}else h={lane:f,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,ve.lanes|=f,oi|=f;u=u.next}while(u!==null&&u!==t);if(s===null?o=i:s.next=l,!Mn(i,e.memoizedState)&&(vt=!0,d&&(n=nl,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 Mm(e){var t=ut(),n=t.queue;if(n===null)throw Error(H(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)||(vt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function UE(e,t,n){var r=ve,a=ut(),i=je;if(i){if(n===void 0)throw Error(H(407));n=n()}else n=t();var o=!Mn((ke||a).memoizedState,n);if(o&&(a.memoizedState=n,vt=!0),a=a.queue,t0(qE.bind(null,r,a,e),[e]),a.getSnapshot!==t||o||ht!==null&&ht.memoizedState.tag&1){if(r.flags|=2048,Ol(9,{destroy:void 0},HE.bind(null,r,a,n,t),null),Le===null)throw Error(H(349));i||la&127||IE(r,t,n)}return n}function IE(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ve.updateQueue,t===null?(t=Jh(),ve.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function HE(e,t,n,r){t.value=n,t.getSnapshot=r,FE(t)&&GE(e)}function qE(e,t,n){return n(function(){FE(t)&&GE(e)})}function FE(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mn(e,n)}catch{return!0}}function GE(e){var t=mo(e,2);t!==null&&un(t,e,2)}function lv(e){var t=Kt();if(typeof e=="function"){var n=e;if(e=n(),eo){La(!0);try{n()}finally{La(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:e},t}function VE(e,t,n,r){return e.baseState=n,e0(e,ke,typeof r=="function"?r:sa)}function AD(e,t,n,r,a){if(np(e))throw Error(H(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)}};de.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,KE(t,i)):(i.next=n.next,t.pending=n.next=i)}}function KE(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=de.T,o={};de.T=o;try{var l=n(a,r),s=de.S;s!==null&&s(o,l),z1(e,t,l)}catch(u){sv(e,t,u)}finally{i!==null&&o.types!==null&&(i.types=o.types),de.T=i}}else try{i=n(a,r),z1(e,t,i)}catch(u){sv(e,t,u)}}function z1(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){L1(e,t,r)},function(r){return sv(e,t,r)}):L1(e,t,n)}function L1(e,t,n){t.status="fulfilled",t.value=n,YE(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,KE(e,n)))}function sv(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,YE(t),t=t.next;while(t!==r)}e.action=null}function YE(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function XE(e,t){return t}function B1(e,t){if(je){var n=Le.formState;if(n!==null){e:{var r=ve;if(je){if(Ke){t:{for(var a=Ke,i=Vn;a.nodeType!==8;){if(!i){a=null;break t}if(a=Wn(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){Ke=Wn(a.nextSibling),r=a.data==="F!";break e}}ai(r)}r=!1}r&&(t=n[0])}}return n=Kt(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:XE,lastRenderedState:t},n.queue=r,n=f_.bind(null,ve,r),r.dispatch=n,r=lv(!1),i=i0.bind(null,ve,!1,r.queue),r=Kt(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=AD.bind(null,ve,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function U1(e){var t=ut();return WE(t,ke,e)}function WE(e,t,n){if(t=e0(e,t,XE)[0],e=qf(sa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Nc(t)}catch(o){throw o===os?Zh:o}else r=t;t=ut();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(ve.flags|=2048,Ol(9,{destroy:void 0},ED.bind(null,a,n),null)),[r,i,e]}function ED(e,t){e.action=t}function I1(e){var t=ut(),n=ke;if(n!==null)return WE(t,n,e);ut(),t=t.memoizedState,n=ut();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ol(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ve.updateQueue,t===null&&(t=Jh(),ve.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 QE(){return ut().memoizedState}function Ff(e,t,n,r){var a=Kt();ve.flags|=e,a.memoizedState=Ol(1|t,{destroy:void 0},n,r===void 0?null:r)}function tp(e,t,n,r){var a=ut();r=r===void 0?null:r;var i=a.memoizedState.inst;ke!==null&&r!==null&&Yb(r,ke.memoizedState.deps)?a.memoizedState=Ol(t,i,n,r):(ve.flags|=e,a.memoizedState=Ol(1|t,i,n,r))}function H1(e,t){Ff(8390656,8,e,t)}function t0(e,t){tp(2048,8,e,t)}function _D(e){ve.flags|=4;var t=ve.updateQueue;if(t===null)t=Jh(),ve.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function ZE(e){var t=ut().memoizedState;return _D({ref:t,nextImpl:e}),function(){if(Ee&2)throw Error(H(440));return t.impl.apply(void 0,arguments)}}function JE(e,t){return tp(4,2,e,t)}function e_(e,t){return tp(4,4,e,t)}function t_(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 n_(e,t,n){n=n!=null?n.concat([e]):null,tp(4,4,t_.bind(null,t,e),n)}function n0(){}function r_(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Yb(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function a_(e,t){var n=ut();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Yb(t,r[1]))return r[0];if(r=e(),eo){La(!0);try{e()}finally{La(!1)}}return n.memoizedState=[r,t],r}function r0(e,t,n){return n===void 0||la&1073741824&&!(Oe&261930)?e.memoizedState=t:(e.memoizedState=n,e=V_(),ve.lanes|=e,oi|=e,n)}function i_(e,t,n,r){return Mn(n,t)?n:wl.current!==null?(e=r0(e,n,r),Mn(e,t)||(vt=!0),e):!(la&42)||la&1073741824&&!(Oe&261930)?(vt=!0,e.memoizedState=n):(e=V_(),ve.lanes|=e,oi|=e,t)}function o_(e,t,n,r,a){var i=_e.p;_e.p=i!==0&&8>i?i:8;var o=de.T,l={};de.T=l,i0(e,!1,t,n);try{var s=a(),u=de.S;if(u!==null&&u(l,s),s!==null&&typeof s=="object"&&typeof s.then=="function"){var d=wD(s,r);su(e,t,d,_n(e))}else su(e,t,r,_n(e))}catch(f){su(e,t,{then:function(){},status:"rejected",reason:f},_n())}finally{_e.p=i,o!==null&&l.types!==null&&(o.types=l.types),de.T=o}}function TD(){}function uv(e,t,n,r){if(e.tag!==5)throw Error(H(476));var a=l_(e).queue;o_(e,a,t,Hi,n===null?TD:function(){return s_(e),n(r)})}function l_(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Hi,baseState:Hi,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:Hi},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function s_(e){var t=l_(e);t.next===null&&(t=e.alternate.memoizedState),su(e,t.next.queue,{},_n())}function a0(){return Ut($u)}function u_(){return ut().memoizedState}function c_(){return ut().memoizedState}function ND(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=_n();e=Ka(n);var r=Ya(t,e,n);r!==null&&(un(r,t,n),iu(r,t,n)),t={cache:qb()},e.payload=t;return}t=t.return}}function CD(e,t,n){var r=_n();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},np(e)?d_(t,n):(n=Bb(e,t,n,r),n!==null&&(un(n,e,r),h_(n,t,r)))}function f_(e,t,n){var r=_n();su(e,t,n,r)}function su(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(np(e))d_(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 Qh(e,t,a,0),Le===null&&Wh(),!1}catch{}finally{}if(n=Bb(e,t,a,r),n!==null)return un(n,e,r),h_(n,t,r),!0}return!1}function i0(e,t,n,r){if(r={lane:2,revertLane:p0(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},np(e)){if(t)throw Error(H(479))}else t=Bb(e,n,r,2),t!==null&&un(t,e,2)}function np(e){var t=e.alternate;return e===ve||t!==null&&t===ve}function d_(e,t){al=vd=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function h_(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Z2(e,n)}}var Nu={readContext:Ut,use:ep,useCallback:nt,useContext:nt,useEffect:nt,useImperativeHandle:nt,useLayoutEffect:nt,useInsertionEffect:nt,useMemo:nt,useReducer:nt,useRef:nt,useState:nt,useDebugValue:nt,useDeferredValue:nt,useTransition:nt,useSyncExternalStore:nt,useId:nt,useHostTransitionStatus:nt,useFormState:nt,useActionState:nt,useOptimistic:nt,useMemoCache:nt,useCacheRefresh:nt};Nu.useEffectEvent=nt;var p_={readContext:Ut,use:ep,useCallback:function(e,t){return Kt().memoizedState=[e,t===void 0?null:t],e},useContext:Ut,useEffect:H1,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ff(4194308,4,t_.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ff(4194308,4,e,t)},useInsertionEffect:function(e,t){Ff(4,2,e,t)},useMemo:function(e,t){var n=Kt();t=t===void 0?null:t;var r=e();if(eo){La(!0);try{e()}finally{La(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Kt();if(n!==void 0){var a=n(t);if(eo){La(!0);try{n(t)}finally{La(!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=CD.bind(null,ve,e),[r.memoizedState,e]},useRef:function(e){var t=Kt();return e={current:e},t.memoizedState=e},useState:function(e){e=lv(e);var t=e.queue,n=f_.bind(null,ve,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:n0,useDeferredValue:function(e,t){var n=Kt();return r0(n,e,t)},useTransition:function(){var e=lv(!1);return e=o_.bind(null,ve,e.queue,!0,!1),Kt().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ve,a=Kt();if(je){if(n===void 0)throw Error(H(407));n=n()}else{if(n=t(),Le===null)throw Error(H(349));Oe&127||IE(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,H1(qE.bind(null,r,i,e),[e]),r.flags|=2048,Ol(9,{destroy:void 0},HE.bind(null,r,i,n,t),null),n},useId:function(){var e=Kt(),t=Le.identifierPrefix;if(je){var n=wr,r=Sr;n=(r&~(1<<32-En(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=gd++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=OD++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:a0,useFormState:B1,useActionState:B1,useOptimistic:function(e){var t=Kt();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=i0.bind(null,ve,!0,n),n.dispatch=t,[e,t]},useMemoCache:Jb,useCacheRefresh:function(){return Kt().memoizedState=ND.bind(null,ve)},useEffectEvent:function(e){var t=Kt(),n={impl:e};return t.memoizedState=n,function(){if(Ee&2)throw Error(H(440));return n.impl.apply(void 0,arguments)}}},o0={readContext:Ut,use:ep,useCallback:r_,useContext:Ut,useEffect:t0,useImperativeHandle:n_,useInsertionEffect:JE,useLayoutEffect:e_,useMemo:a_,useReducer:qf,useRef:QE,useState:function(){return qf(sa)},useDebugValue:n0,useDeferredValue:function(e,t){var n=ut();return i_(n,ke.memoizedState,e,t)},useTransition:function(){var e=qf(sa)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Nc(e),t]},useSyncExternalStore:UE,useId:u_,useHostTransitionStatus:a0,useFormState:U1,useActionState:U1,useOptimistic:function(e,t){var n=ut();return VE(n,ke,e,t)},useMemoCache:Jb,useCacheRefresh:c_};o0.useEffectEvent=ZE;var m_={readContext:Ut,use:ep,useCallback:r_,useContext:Ut,useEffect:t0,useImperativeHandle:n_,useInsertionEffect:JE,useLayoutEffect:e_,useMemo:a_,useReducer:Mm,useRef:QE,useState:function(){return Mm(sa)},useDebugValue:n0,useDeferredValue:function(e,t){var n=ut();return ke===null?r0(n,e,t):i_(n,ke.memoizedState,e,t)},useTransition:function(){var e=Mm(sa)[0],t=ut().memoizedState;return[typeof e=="boolean"?e:Nc(e),t]},useSyncExternalStore:UE,useId:u_,useHostTransitionStatus:a0,useFormState:I1,useActionState:I1,useOptimistic:function(e,t){var n=ut();return ke!==null?VE(n,ke,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Jb,useCacheRefresh:c_};m_.useEffectEvent=ZE;function $m(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Xe({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var cv={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=_n(),a=Ka(r);a.payload=t,n!=null&&(a.callback=n),t=Ya(e,a,r),t!==null&&(un(t,e,r),iu(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=_n(),a=Ka(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Ya(e,a,r),t!==null&&(un(t,e,r),iu(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=_n(),r=Ka(n);r.tag=2,t!=null&&(r.callback=t),t=Ya(e,r,n),t!==null&&(un(t,e,n),iu(t,e,n))}};function q1(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?!ju(n,r)||!ju(a,i):!0}function F1(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&&cv.enqueueReplaceState(t,t.state,null)}function to(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=Xe({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function y_(e){cd(e)}function v_(e){console.error(e)}function g_(e){cd(e)}function bd(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function G1(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 fv(e,t,n){return n=Ka(n),n.tag=3,n.payload={element:null},n.callback=function(){bd(e,t)},n}function b_(e){return e=Ka(e),e.tag=3,e}function x_(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(){G1(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch=="function"&&(e.callback=function(){G1(t,n,r),typeof a!="function"&&(Xa===null?Xa=new Set([this]):Xa.add(this));var l=r.stack;this.componentDidCatch(r.value,{componentStack:l!==null?l:""})})}function MD(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&is(t,n,a,!0),n=$n.current,n!==null){switch(n.tag){case 31:case 13:return Xn===null?jd():n.alternate===null&&it===0&&(it=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===pd?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),qm(e,r,a)),!1;case 22:return n.flags|=65536,r===pd?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)),qm(e,r,a)),!1}throw Error(H(435,n.tag))}return qm(e,r,a),jd(),!1}if(je)return t=$n.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==Zy&&(e=Error(H(422),{cause:r}),Eu(Gn(e,n)))):(r!==Zy&&(t=Error(H(423),{cause:r}),Eu(Gn(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=Gn(r,n),a=fv(e.stateNode,r,a),Cm(e,a),it!==4&&(it=2)),!1;var i=Error(H(520),{cause:r});if(i=Gn(i,n),fu===null?fu=[i]:fu.push(i),it!==4&&(it=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=fv(n.stateNode,r,e),Cm(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"&&(Xa===null||!Xa.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=b_(a),x_(a,e,n,r),Cm(n,a),!1}n=n.return}while(n!==null);return!1}var l0=Error(H(461)),vt=!1;function kt(e,t,n,r){t.child=e===null?RE(t,null,n,r):Ji(t,e.child,n,r)}function V1(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 Zi(t),r=Xb(e,t,n,o,i,a),l=Wb(),e!==null&&!vt?(Qb(e,t,a),ua(e,t,a)):(je&&l&&Ib(t),t.flags|=1,kt(e,t,r,a),t.child)}function K1(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!Ub(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,S_(e,t,i,r,a)):(e=If(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!s0(e,a)){var o=i.memoizedProps;if(n=n.compare,n=n!==null?n:ju,n(o,r)&&e.ref===t.ref)return ua(e,t,a)}return t.flags|=1,e=ta(i,r),e.ref=t.ref,e.return=t,t.child=e}function S_(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(ju(i,r)&&e.ref===t.ref)if(vt=!1,t.pendingProps=r=i,s0(e,a))e.flags&131072&&(vt=!0);else return t.lanes=e.lanes,ua(e,t,a)}return dv(e,t,n,r,a)}function w_(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 Y1(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Hf(t,i!==null?i.cachePool:null),i!==null?k1(t,i):iv(),zE(t);else return r=t.lanes=536870912,Y1(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(Hf(t,i.cachePool),k1(t,i),Na(),t.memoizedState=null):(e!==null&&Hf(t,null),iv(),Na());return kt(e,t,a,n),t.child}function Qs(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Y1(e,t,n,r,a){var i=Fb();return i=i===null?null:{parent:mt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Hf(t,null),iv(),zE(t),e!==null&&is(e,t,r,!0),t.childLanes=a,null}function Gf(e,t){return t=xd({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function X1(e,t,n){return Ji(t,e.child,null,n),e=Gf(t,t.pendingProps),e.flags|=2,xn(t),t.memoizedState=null,e}function $D(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(je){if(r.mode==="hidden")return e=Gf(t,r),t.lanes=536870912,Qs(null,e);if(ov(t),(e=Ke)?(e=pT(e,Vn),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ri!==null?{id:Sr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},n=_E(e),n.return=t,t.child=n,Lt=t,Ke=null)):e=null,e===null)throw ai(t);return t.lanes=536870912,null}return Gf(t,r)}var i=e.memoizedState;if(i!==null){var o=i.dehydrated;if(ov(t),a)if(t.flags&256)t.flags&=-257,t=X1(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(H(558));else if(vt||is(e,t,n,!1),a=(n&e.childLanes)!==0,vt||a){if(r=Le,r!==null&&(o=J2(r,n),o!==0&&o!==i.retryLane))throw i.retryLane=o,mo(e,o),un(r,e,o),l0;jd(),t=X1(e,t,n)}else e=i.treeContext,Ke=Wn(o.nextSibling),Lt=t,je=!0,Va=null,Vn=!1,e!==null&&NE(t,e),t=Gf(t,r),t.flags|=4096;return t}return e=ta(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(H(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function dv(e,t,n,r,a){return Zi(t),n=Xb(e,t,n,r,void 0,a),r=Wb(),e!==null&&!vt?(Qb(e,t,a),ua(e,t,a)):(je&&r&&Ib(t),t.flags|=1,kt(e,t,n,a),t.child)}function W1(e,t,n,r,a,i){return Zi(t),t.updateQueue=null,n=BE(t,r,n,a),LE(e),r=Wb(),e!==null&&!vt?(Qb(e,t,i),ua(e,t,i)):(je&&r&&Ib(t),t.flags|=1,kt(e,t,n,i),t.child)}function Q1(e,t,n,r,a){if(Zi(t),t.stateNode===null){var i=Fo,o=n.contextType;typeof o=="object"&&o!==null&&(i=Ut(o)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=cv,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},Vb(t),o=n.contextType,i.context=typeof o=="object"&&o!==null?Ut(o):Fo,i.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o=="function"&&($m(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&&cv.enqueueReplaceState(i,i.state,null),lu(t,r,i,a),ou(),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=to(n,l);i.props=s;var u=i.context,d=n.contextType;o=Fo,typeof d=="object"&&d!==null&&(o=Ut(d));var f=n.getDerivedStateFromProps;d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function",l=t.pendingProps!==l,d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(l||u!==o)&&F1(t,i,r,o),Aa=!1;var h=t.memoizedState;i.state=h,lu(t,r,i,a),ou(),u=t.memoizedState,l||h!==u||Aa?(typeof f=="function"&&($m(t,n,f,r),u=t.memoizedState),(s=Aa||q1(t,n,s,r,h,u,o))?(d||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,rv(e,t),o=t.memoizedProps,d=to(n,o),i.props=d,f=t.pendingProps,h=i.context,u=n.contextType,s=Fo,typeof u=="object"&&u!==null&&(s=Ut(u)),l=n.getDerivedStateFromProps,(u=typeof l=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o!==f||h!==s)&&F1(t,i,r,s),Aa=!1,h=t.memoizedState,i.state=h,lu(t,r,i,a),ou();var p=t.memoizedState;o!==f||h!==p||Aa||e!==null&&e.dependencies!==null&&hd(e.dependencies)?(typeof l=="function"&&($m(t,n,l,r),p=t.memoizedState),(d=Aa||q1(t,n,d,r,h,p,s)||e!==null&&e.dependencies!==null&&hd(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=d):(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=Ji(t,e.child,null,a),t.child=Ji(t,null,n,a)):kt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=ua(e,t,a),e}function Z1(e,t,n,r){return Qi(),t.flags|=256,kt(e,t,n,r),t.child}var Pm={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Rm(e){return{baseLanes:e,cachePool:ME()}}function Dm(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=On),e}function O_(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:(lt.current&2)!==0),o&&(a=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(je){if(a?Ta(t):Na(),(e=Ke)?(e=pT(e,Vn),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:ri!==null?{id:Sr,overflow:wr}:null,retryLane:536870912,hydrationErrors:null},n=_E(e),n.return=t,t.child=n,Lt=t,Ke=null)):e=null,e===null)throw ai(t);return Ev(e)?t.lanes=32:t.lanes=536870912,null}var l=r.children;return r=r.fallback,a?(Na(),a=t.mode,l=xd({mode:"hidden",children:l},a),r=qi(r,a,n,null),l.return=t,r.return=t,l.sibling=r,t.child=l,r=t.child,r.memoizedState=Rm(n),r.childLanes=Dm(e,o,n),t.memoizedState=Pm,Qs(null,r)):(Ta(t),hv(t,l))}var s=e.memoizedState;if(s!==null&&(l=s.dehydrated,l!==null)){if(i)t.flags&256?(Ta(t),t.flags&=-257,t=km(e,t,n)):t.memoizedState!==null?(Na(),t.child=e.child,t.flags|=128,t=null):(Na(),l=r.fallback,a=t.mode,r=xd({mode:"visible",children:r.children},a),l=qi(l,a,n,null),l.flags|=2,r.return=t,l.return=t,r.sibling=l,t.child=r,Ji(t,e.child,null,n),r=t.child,r.memoizedState=Rm(n),r.childLanes=Dm(e,o,n),t.memoizedState=Pm,t=Qs(null,r));else if(Ta(t),Ev(l)){if(o=l.nextSibling&&l.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(H(419)),r.stack="",r.digest=o,Eu({value:r,source:null,stack:null}),t=km(e,t,n)}else if(vt||is(e,t,n,!1),o=(n&e.childLanes)!==0,vt||o){if(o=Le,o!==null&&(r=J2(o,n),r!==0&&r!==s.retryLane))throw s.retryLane=r,mo(e,r),un(o,e,r),l0;Av(l)||jd(),t=km(e,t,n)}else Av(l)?(t.flags|=192,t.child=e.child,t=null):(e=s.treeContext,Ke=Wn(l.nextSibling),Lt=t,je=!0,Va=null,Vn=!1,e!==null&&NE(t,e),t=hv(t,r.children),t.flags|=4096);return t}return a?(Na(),l=r.fallback,a=t.mode,s=e.child,u=s.sibling,r=ta(s,{mode:"hidden",children:r.children}),r.subtreeFlags=s.subtreeFlags&65011712,u!==null?l=ta(u,l):(l=qi(l,a,n,null),l.flags|=2),l.return=t,r.return=t,r.sibling=l,t.child=r,Qs(null,r),r=t.child,l=e.child.memoizedState,l===null?l=Rm(n):(a=l.cachePool,a!==null?(s=mt._currentValue,a=a.parent!==s?{parent:s,pool:s}:a):a=ME(),l={baseLanes:l.baseLanes|n,cachePool:a}),r.memoizedState=l,r.childLanes=Dm(e,o,n),t.memoizedState=Pm,Qs(e.child,r)):(Ta(t),n=e.child,e=n.sibling,n=ta(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 hv(e,t){return t=xd({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function xd(e,t){return e=Sn(22,e,null,t),e.lanes=0,e}function km(e,t,n){return Ji(t,e.child,null,n),e=hv(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function J1(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ev(e.return,t,n)}function zm(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 j_(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var o=lt.current,l=(o&2)!==0;if(l?(o=o&1|2,t.flags|=128):o&=1,Ie(lt,o),kt(e,t,r,n),r=je?Au:0,!l&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&J1(e,n,t);else if(e.tag===19)J1(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&&yd(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),zm(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&&yd(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}zm(t,!0,n,null,i,r);break;case"together":zm(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function ua(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),oi|=t.lanes,!(n&t.childLanes))if(e!==null){if(is(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(H(153));if(t.child!==null){for(e=t.child,n=ta(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ta(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function s0(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&hd(e)))}function PD(e,t,n){switch(t.tag){case 3:od(t,t.stateNode.containerInfo),_a(t,mt,e.memoizedState.cache),Qi();break;case 27:case 5:Iy(t);break;case 4:od(t,t.stateNode.containerInfo);break;case 10:_a(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,ov(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(Ta(t),t.flags|=128,null):n&t.child.childLanes?O_(e,t,n):(Ta(t),e=ua(e,t,n),e!==null?e.sibling:null);Ta(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(is(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return j_(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Ie(lt,lt.current),r)break;return null;case 22:return t.lanes=0,w_(e,t,n,t.pendingProps);case 24:_a(t,mt,e.memoizedState.cache)}return ua(e,t,n)}function A_(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)vt=!0;else{if(!s0(e,n)&&!(t.flags&128))return vt=!1,PD(e,t,n);vt=!!(e.flags&131072)}else vt=!1,je&&t.flags&1048576&&TE(t,Au,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ji(t.elementType),t.type=e,typeof e=="function")Ub(e)?(r=to(e,r),t.tag=1,t=Q1(null,t,e,r,n)):(t.tag=0,t=dv(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===Eb){t.tag=11,t=V1(null,t,e,r,n);break e}else if(a===_b){t.tag=14,t=K1(null,t,e,r,n);break e}}throw t=By(e)||e,Error(H(306,t,""))}}return t;case 0:return dv(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=to(r,t.pendingProps),Q1(e,t,r,a,n);case 3:e:{if(od(t,t.stateNode.containerInfo),e===null)throw Error(H(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,rv(e,t),lu(t,r,null,n);var o=t.memoizedState;if(r=o.cache,_a(t,mt,r),r!==i.cache&&tv(t,[mt],n,!0),ou(),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=Z1(e,t,r,n);break e}else if(r!==a){a=Gn(Error(H(424)),t),Eu(a),t=Z1(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(Ke=Wn(e.firstChild),Lt=t,je=!0,Va=null,Vn=!0,n=RE(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Qi(),r===a){t=ua(e,t,n);break e}kt(e,t,r,n)}t=t.child}return t;case 26:return Vf(e,t),e===null?(n=bS(t.type,null,t.pendingProps,null))?t.memoizedState=n:je||(n=t.type,e=t.pendingProps,r=Td(Ga.current).createElement(n),r[zt]=t,r[fn]=e,It(r,n,e),Ct(r),t.stateNode=r):t.memoizedState=bS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Iy(t),e===null&&je&&(r=t.stateNode=mT(t.type,t.pendingProps,Ga.current),Lt=t,Vn=!0,a=Ke,ui(t.type)?(_v=a,Ke=Wn(r.firstChild)):Ke=a),kt(e,t,t.pendingProps.children,n),Vf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&je&&((a=r=Ke)&&(r=u3(r,t.type,t.pendingProps,Vn),r!==null?(t.stateNode=r,Lt=t,Ke=Wn(r.firstChild),Vn=!1,a=!0):a=!1),a||ai(t)),Iy(t),a=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,Ov(a,i)?r=null:o!==null&&Ov(a,o)&&(t.flags|=32),t.memoizedState!==null&&(a=Xb(e,t,jD,null,null,n),$u._currentValue=a),Vf(e,t),kt(e,t,r,n),t.child;case 6:return e===null&&je&&((e=n=Ke)&&(n=c3(n,t.pendingProps,Vn),n!==null?(t.stateNode=n,Lt=t,Ke=null,e=!0):e=!1),e||ai(t)),null;case 13:return O_(e,t,n);case 4:return od(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ji(t,null,r,n):kt(e,t,r,n),t.child;case 11:return V1(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,_a(t,t.type,r.value),kt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Zi(t),a=Ut(a),r=r(a),t.flags|=1,kt(e,t,r,n),t.child;case 14:return K1(e,t,t.type,t.pendingProps,n);case 15:return S_(e,t,t.type,t.pendingProps,n);case 19:return j_(e,t,n);case 31:return $D(e,t,n);case 22:return w_(e,t,n,t.pendingProps);case 24:return Zi(t),r=Ut(mt),e===null?(a=Fb(),a===null&&(a=Le,i=qb(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},Vb(t),_a(t,mt,a)):(e.lanes&n&&(rv(e,t),lu(t,null,null,n),ou()),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),_a(t,mt,r)):(r=i.cache,_a(t,mt,r),r!==a.cache&&tv(t,[mt],n,!0))),kt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(H(156,t.tag))}function Lr(e){e.flags|=4}function Lm(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(X_())e.flags|=8192;else throw Gi=pd,Gb}else e.flags&=-16777217}function eS(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!gT(t))if(X_())e.flags|=8192;else throw Gi=pd,Gb}function ff(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?W2():536870912,e.lanes|=t,jl|=t)}function Ps(e,t){if(!je)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 Fe(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 RD(e,t,n){var r=t.pendingProps;switch(Hb(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Fe(t),null;case 1:return Fe(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),na(mt),gl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ao(t)?Lr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Nm())),Fe(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(Lr(t),i!==null?(Fe(t),eS(t,i)):(Fe(t),Lm(t,a,null,r,n))):i?i!==e.memoizedState?(Lr(t),Fe(t),eS(t,i)):(Fe(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&Lr(t),Fe(t),Lm(t,a,e,r,n)),null;case 27:if(ld(t),n=Ga.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Lr(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Fe(t),null}e=_r.current,Ao(t)?N1(t):(e=mT(a,r,n),t.stateNode=e,Lr(t))}return Fe(t),null;case 5:if(ld(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Lr(t);else{if(!r){if(t.stateNode===null)throw Error(H(166));return Fe(t),null}if(i=_r.current,Ao(t))N1(t);else{var o=Td(Ga.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[zt]=t,i[fn]=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(It(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&&Lr(t)}}return Fe(t),Lm(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Lr(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(H(166));if(e=Ga.current,Ao(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Lt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[zt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||fT(e.nodeValue,n)),e||ai(t,!0)}else e=Td(e).createTextNode(r),e[zt]=t,t.stateNode=e}return Fe(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ao(t),n!==null){if(e===null){if(!r)throw Error(H(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(H(557));e[zt]=t}else Qi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),e=!1}else n=Nm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(xn(t),t):(xn(t),null);if(t.flags&128)throw Error(H(558))}return Fe(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ao(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(H(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(H(317));a[zt]=t}else Qi(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Fe(t),a=!1}else a=Nm(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(xn(t),t):(xn(t),null)}return xn(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),ff(t,t.updateQueue),Fe(t),null);case 4:return gl(),e===null&&m0(t.stateNode.containerInfo),Fe(t),null;case 10:return na(t.type),Fe(t),null;case 19:if($t(lt),r=t.memoizedState,r===null)return Fe(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Ps(r,!1);else{if(it!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=yd(e),i!==null){for(t.flags|=128,Ps(r,!1),e=i.updateQueue,t.updateQueue=e,ff(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)EE(n,e),n=n.sibling;return Ie(lt,lt.current&1|2),je&&Gr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&jn()>wd&&(t.flags|=128,a=!0,Ps(r,!1),t.lanes=4194304)}else{if(!a)if(e=yd(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ff(t,e),Ps(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!je)return Fe(t),null}else 2*jn()-r.renderingStartTime>wd&&n!==536870912&&(t.flags|=128,a=!0,Ps(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=jn(),e.sibling=null,n=lt.current,Ie(lt,a?n&1|2:n&1),je&&Gr(t,r.treeForkCount),e):(Fe(t),null);case 22:case 23:return xn(t),Kb(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Fe(t),t.subtreeFlags&6&&(t.flags|=8192)):Fe(t),n=t.updateQueue,n!==null&&ff(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&&$t(Fi),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),na(mt),Fe(t),null;case 25:return null;case 30:return null}throw Error(H(156,t.tag))}function DD(e,t){switch(Hb(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return na(mt),gl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ld(t),null;case 31:if(t.memoizedState!==null){if(xn(t),t.alternate===null)throw Error(H(340));Qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(xn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(H(340));Qi()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return $t(lt),null;case 4:return gl(),null;case 10:return na(t.type),null;case 22:case 23:return xn(t),Kb(),e!==null&&$t(Fi),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return na(mt),null;case 25:return null;default:return null}}function E_(e,t){switch(Hb(t),t.tag){case 3:na(mt),gl();break;case 26:case 27:case 5:ld(t);break;case 4:gl();break;case 31:t.memoizedState!==null&&xn(t);break;case 13:xn(t);break;case 19:$t(lt);break;case 10:na(t.type);break;case 22:case 23:xn(t),Kb(),e!==null&&$t(Fi);break;case 24:na(mt)}}function Cc(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){$e(t,t.return,l)}}function ii(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(d){$e(a,s,d)}}}r=r.next}while(r!==i)}}catch(d){$e(t,t.return,d)}}function __(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{kE(t,n)}catch(r){$e(e,e.return,r)}}}function T_(e,t,n){n.props=to(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){$e(e,t,r)}}function uu(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){$e(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){$e(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){$e(e,t,a)}else n.current=null}function N_(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){$e(e,e.return,a)}}function Bm(e,t,n){try{var r=e.stateNode;r3(r,e.type,n,t),r[fn]=t}catch(a){$e(e,e.return,a)}}function C_(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&ui(e.type)||e.tag===4}function Um(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||C_(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&&ui(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 pv(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=Xr));else if(r!==4&&(r===27&&ui(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(pv(e,t,n),e=e.sibling;e!==null;)pv(e,t,n),e=e.sibling}function Sd(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&&ui(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Sd(e,t,n),e=e.sibling;e!==null;)Sd(e,t,n),e=e.sibling}function M_(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);It(t,r,n),t[zt]=e,t[fn]=n}catch(i){$e(e,e.return,i)}}var Kr=!1,pt=!1,Im=!1,tS=typeof WeakSet=="function"?WeakSet:Set,Nt=null;function kD(e,t){if(e=e.containerInfo,Sv=$d,e=gE(e),zb(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,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||a!==0&&f.nodeType!==3||(l=o+a),f!==i||r!==0&&f.nodeType!==3||(s=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++u===a&&(l=o),h===i&&++d===r&&(s=o),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=l===-1||s===-1?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(wv={focusedElem:e,selectionRange:n},$d=!1,Nt=t;Nt!==null;)if(t=Nt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Nt=e;else for(;Nt!==null;){switch(t=Nt,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 y=to(n.type,a);e=r.getSnapshotBeforeUpdate(y,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(m){$e(n,n.return,m)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)jv(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":jv(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(H(163))}if(e=t.sibling,e!==null){e.return=t.return,Nt=e;break}Nt=t.return}}function $_(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ur(e,n),r&4&&Cc(5,n);break;case 1:if(Ur(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(o){$e(n,n.return,o)}else{var a=to(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(o){$e(n,n.return,o)}}r&64&&__(n),r&512&&uu(n,n.return);break;case 3:if(Ur(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{kE(e,t)}catch(o){$e(n,n.return,o)}}break;case 27:t===null&&r&4&&M_(n);case 26:case 5:Ur(e,n),t===null&&r&4&&N_(n),r&512&&uu(n,n.return);break;case 12:Ur(e,n);break;case 31:Ur(e,n),r&4&&D_(e,n);break;case 13:Ur(e,n),r&4&&k_(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=GD.bind(null,n),f3(e,n))));break;case 22:if(r=n.memoizedState!==null||Kr,!r){t=t!==null&&t.memoizedState!==null||pt,a=Kr;var i=pt;Kr=r,(pt=t)&&!i?Hr(e,n,(n.subtreeFlags&8772)!==0):Ur(e,n),Kr=a,pt=i}break;case 30:break;default:Ur(e,n)}}function P_(e){var t=e.alternate;t!==null&&(e.alternate=null,P_(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Mb(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 Qe=null,on=!1;function Br(e,t,n){for(n=n.child;n!==null;)R_(e,t,n),n=n.sibling}function R_(e,t,n){if(An&&typeof An.onCommitFiberUnmount=="function")try{An.onCommitFiberUnmount(Oc,n)}catch{}switch(n.tag){case 26:pt||Or(n,t),Br(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:pt||Or(n,t);var r=Qe,a=on;ui(n.type)&&(Qe=n.stateNode,on=!1),Br(e,t,n),hu(n.stateNode),Qe=r,on=a;break;case 5:pt||Or(n,t);case 6:if(r=Qe,a=on,Qe=null,Br(e,t,n),Qe=r,on=a,Qe!==null)if(on)try{(Qe.nodeType===9?Qe.body:Qe.nodeName==="HTML"?Qe.ownerDocument.body:Qe).removeChild(n.stateNode)}catch(i){$e(n,t,i)}else try{Qe.removeChild(n.stateNode)}catch(i){$e(n,t,i)}break;case 18:Qe!==null&&(on?(e=Qe,pS(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Tl(e)):pS(Qe,n.stateNode));break;case 4:r=Qe,a=on,Qe=n.stateNode.containerInfo,on=!0,Br(e,t,n),Qe=r,on=a;break;case 0:case 11:case 14:case 15:ii(2,n,t),pt||ii(4,n,t),Br(e,t,n);break;case 1:pt||(Or(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&T_(n,t,r)),Br(e,t,n);break;case 21:Br(e,t,n);break;case 22:pt=(r=pt)||n.memoizedState!==null,Br(e,t,n),pt=r;break;default:Br(e,t,n)}}function D_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Tl(e)}catch(n){$e(t,t.return,n)}}}function k_(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Tl(e)}catch(n){$e(t,t.return,n)}}function zD(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new tS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new tS),t;default:throw Error(H(435,e.tag))}}function df(e,t){var n=zD(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=VD.bind(null,e,r);r.then(a,a)}})}function nn(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(ui(l.type)){Qe=l.stateNode,on=!1;break e}break;case 5:Qe=l.stateNode,on=!1;break e;case 3:case 4:Qe=l.stateNode.containerInfo,on=!0;break e}l=l.return}if(Qe===null)throw Error(H(160));R_(i,o,a),Qe=null,on=!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 or=null;function z_(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:nn(t,e),rn(e),r&4&&(ii(3,e,e.return),Cc(3,e),ii(5,e,e.return));break;case 1:nn(t,e),rn(e),r&512&&(pt||n===null||Or(n,n.return)),r&64&&Kr&&(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=or;if(nn(t,e),rn(e),r&512&&(pt||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[Ec]||i[zt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),It(i,r,n),i[zt]=e,Ct(i),r=i;break e;case"link":var o=SS("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),It(i,r,n),a.head.appendChild(i);break;case"meta":if(o=SS("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),It(i,r,n),a.head.appendChild(i);break;default:throw Error(H(468,r))}i[zt]=e,Ct(i),r=i}e.stateNode=r}else wS(a,e.type,e.stateNode);else e.stateNode=xS(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?wS(a,e.type,e.stateNode):xS(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Bm(e,e.memoizedProps,n.memoizedProps)}break;case 27:nn(t,e),rn(e),r&512&&(pt||n===null||Or(n,n.return)),n!==null&&r&4&&Bm(e,e.memoizedProps,n.memoizedProps);break;case 5:if(nn(t,e),rn(e),r&512&&(pt||n===null||Or(n,n.return)),e.flags&32){a=e.stateNode;try{xl(a,"")}catch(y){$e(e,e.return,y)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Bm(e,a,n!==null?n.memoizedProps:a)),r&1024&&(Im=!0);break;case 6:if(nn(t,e),rn(e),r&4){if(e.stateNode===null)throw Error(H(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(y){$e(e,e.return,y)}}break;case 3:if(Xf=null,a=or,or=Nd(t.containerInfo),nn(t,e),or=a,rn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Tl(t.containerInfo)}catch(y){$e(e,e.return,y)}Im&&(Im=!1,L_(e));break;case 4:r=or,or=Nd(e.stateNode.containerInfo),nn(t,e),rn(e),or=r;break;case 12:nn(t,e),rn(e);break;case 31:nn(t,e),rn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,df(e,r)));break;case 13:nn(t,e),rn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(rp=jn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,df(e,r)));break;case 22:a=e.memoizedState!==null;var s=n!==null&&n.memoizedState!==null,u=Kr,d=pt;if(Kr=u||a,pt=d||s,nn(t,e),pt=d,Kr=u,rn(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||s||Kr||pt||Ai(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 f=s.memoizedProps.style,h=f!=null&&f.hasOwnProperty("display")?f.display:null;l.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(y){$e(s,s.return,y)}}}else if(t.tag===6){if(n===null){s=t;try{s.stateNode.nodeValue=a?"":s.memoizedProps}catch(y){$e(s,s.return,y)}}}else if(t.tag===18){if(n===null){s=t;try{var p=s.stateNode;a?mS(p,!0):mS(s.stateNode,!1)}catch(y){$e(s,s.return,y)}}}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,df(e,n))));break;case 19:nn(t,e),rn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,df(e,r)));break;case 30:break;case 21:break;default:nn(t,e),rn(e)}}function rn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(C_(r)){n=r;break}r=r.return}if(n==null)throw Error(H(160));switch(n.tag){case 27:var a=n.stateNode,i=Um(e);Sd(e,i,a);break;case 5:var o=n.stateNode;n.flags&32&&(xl(o,""),n.flags&=-33);var l=Um(e);Sd(e,l,o);break;case 3:case 4:var s=n.stateNode.containerInfo,u=Um(e);pv(e,u,s);break;default:throw Error(H(161))}}catch(d){$e(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function L_(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;L_(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ur(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)$_(e,t.alternate,t),t=t.sibling}function Ai(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ii(4,t,t.return),Ai(t);break;case 1:Or(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&T_(t,t.return,n),Ai(t);break;case 27:hu(t.stateNode);case 26:case 5:Or(t,t.return),Ai(t);break;case 22:t.memoizedState===null&&Ai(t);break;case 30:Ai(t);break;default:Ai(t)}e=e.sibling}}function Hr(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:Hr(a,i,n),Cc(4,i);break;case 1:if(Hr(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(u){$e(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++)DE(s[a],l)}catch(u){$e(r,r.return,u)}}n&&o&64&&__(i),uu(i,i.return);break;case 27:M_(i);case 26:case 5:Hr(a,i,n),n&&r===null&&o&4&&N_(i),uu(i,i.return);break;case 12:Hr(a,i,n);break;case 31:Hr(a,i,n),n&&o&4&&D_(a,i);break;case 13:Hr(a,i,n),n&&o&4&&k_(a,i);break;case 22:i.memoizedState===null&&Hr(a,i,n),uu(i,i.return);break;case 30:break;default:Hr(a,i,n)}t=t.sibling}}function u0(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&&Tc(n))}function c0(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Tc(e))}function nr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)B_(e,t,n,r),t=t.sibling}function B_(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:nr(e,t,n,r),a&2048&&Cc(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&&Tc(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){$e(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):cu(e,t):i._visibility&2?nr(e,t,n,r):(i._visibility|=2,Ro(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&u0(o,t);break;case 24:nr(e,t,n,r),a&2048&&c0(t.alternate,t);break;default:nr(e,t,n,r)}}function Ro(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:Ro(i,o,l,s,a),Cc(8,o);break;case 23:break;case 22:var d=o.stateNode;o.memoizedState!==null?d._visibility&2?Ro(i,o,l,s,a):cu(i,o):(d._visibility|=2,Ro(i,o,l,s,a)),a&&u&2048&&u0(o.alternate,o);break;case 24:Ro(i,o,l,s,a),a&&u&2048&&c0(o.alternate,o);break;default:Ro(i,o,l,s,a)}t=t.sibling}}function cu(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:cu(n,r),a&2048&&u0(r.alternate,r);break;case 24:cu(n,r),a&2048&&c0(r.alternate,r);break;default:cu(n,r)}t=t.sibling}}var Zs=8192;function Eo(e,t,n){if(e.subtreeFlags&Zs)for(e=e.child;e!==null;)U_(e,t,n),e=e.sibling}function U_(e,t,n){switch(e.tag){case 26:Eo(e,t,n),e.flags&Zs&&e.memoizedState!==null&&O3(n,or,e.memoizedState,e.memoizedProps);break;case 5:Eo(e,t,n);break;case 3:case 4:var r=or;or=Nd(e.stateNode.containerInfo),Eo(e,t,n),or=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Zs,Zs=16777216,Eo(e,t,n),Zs=r):Eo(e,t,n));break;default:Eo(e,t,n)}}function I_(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 Rs(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Nt=r,q_(r,e)}I_(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)H_(e),e=e.sibling}function H_(e){switch(e.tag){case 0:case 11:case 15:Rs(e),e.flags&2048&&ii(9,e,e.return);break;case 3:Rs(e);break;case 12:Rs(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Kf(e)):Rs(e);break;default:Rs(e)}}function Kf(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Nt=r,q_(r,e)}I_(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ii(8,t,t.return),Kf(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Kf(t));break;default:Kf(t)}e=e.sibling}}function q_(e,t){for(;Nt!==null;){var n=Nt;switch(n.tag){case 0:case 11:case 15:ii(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:Tc(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Nt=r;else e:for(n=e;Nt!==null;){r=Nt;var a=r.sibling,i=r.return;if(P_(r),r===n){Nt=null;break e}if(a!==null){a.return=i,Nt=a;break e}Nt=i}}}var LD={getCacheForType:function(e){var t=Ut(mt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ut(mt).controller.signal}},BD=typeof WeakMap=="function"?WeakMap:Map,Ee=0,Le=null,xe=null,Oe=0,Me=0,yn=null,Ua=!1,ls=!1,f0=!1,ca=0,it=0,oi=0,Vi=0,d0=0,On=0,jl=0,fu=null,ln=null,mv=!1,rp=0,F_=0,wd=1/0,Od=null,Xa=null,Ot=0,Wa=null,Al=null,ra=0,yv=0,vv=null,G_=null,du=0,gv=null;function _n(){return Ee&2&&Oe!==0?Oe&-Oe:de.T!==null?p0():eE()}function V_(){if(On===0)if(!(Oe&536870912)||je){var e=rf;rf<<=1,!(rf&3932160)&&(rf=262144),On=e}else On=536870912;return e=$n.current,e!==null&&(e.flags|=32),On}function un(e,t,n){(e===Le&&(Me===2||Me===9)||e.cancelPendingCommit!==null)&&(El(e,0),Ia(e,Oe,On,!1)),Ac(e,n),(!(Ee&2)||e!==Le)&&(e===Le&&(!(Ee&2)&&(Vi|=n),it===4&&Ia(e,Oe,On,!1)),Pr(e))}function K_(e,t,n){if(Ee&6)throw Error(H(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||jc(e,t),a=r?HD(e,t):Hm(e,t,!0),i=r;do{if(a===0){ls&&!r&&Ia(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!UD(n)){a=Hm(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=fu;var s=l.current.memoizedState.isDehydrated;if(s&&(El(l,o).flags|=256),o=Hm(l,o,!1),o!==2){if(f0&&!s){l.errorRecoveryDisabledLanes|=i,Vi|=i,a=4;break e}i=ln,ln=a,i!==null&&(ln===null?ln=i:ln.push.apply(ln,i))}a=o}if(i=!1,a!==2)continue}}if(a===1){El(e,0),Ia(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(H(345));case 4:if((t&4194048)!==t)break;case 6:Ia(r,t,On,!Ua);break e;case 2:ln=null;break;case 3:case 5:break;default:throw Error(H(329))}if((t&62914560)===t&&(a=rp+300-jn(),10<a)){if(Ia(r,t,On,!Ua),Vh(r,0,!0)!==0)break e;ra=t,r.timeoutHandle=hT(nS.bind(null,r,n,ln,Od,mv,t,On,Vi,jl,Ua,i,"Throttled",-0,0),a);break e}nS(r,n,ln,Od,mv,t,On,Vi,jl,Ua,i,null,-0,0)}}break}while(!0);Pr(e)}function nS(e,t,n,r,a,i,o,l,s,u,d,f,h,p){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Xr},U_(t,i,f);var y=(i&62914560)===i?rp-jn():(i&4194048)===i?F_-jn():0;if(y=j3(f,y),y!==null){ra=i,e.cancelPendingCommit=y(aS.bind(null,e,t,i,n,r,a,o,l,s,d,f,null,h,p)),Ia(e,i,o,!u);return}}aS(e,t,i,n,r,a,o,l,s)}function UD(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 Ia(e,t,n,r){t&=~d0,t&=~Vi,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-En(a),o=1<<i;r[i]=-1,a&=~o}n!==0&&Q2(e,n,t)}function ap(){return Ee&6?!0:(Mc(0),!1)}function h0(){if(xe!==null){if(Me===0)var e=xe.return;else e=xe,Wr=yo=null,Zb(e),rl=null,_u=0,e=xe;for(;e!==null;)E_(e.alternate,e),e=e.return;xe=null}}function El(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,o3(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),ra=0,h0(),Le=e,xe=n=ta(e.current,null),Oe=t,Me=0,yn=null,Ua=!1,ls=jc(e,t),f0=!1,jl=On=d0=Vi=oi=it=0,ln=fu=null,mv=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-En(r),i=1<<a;t|=e[a],r&=~i}return ca=t,Wh(),n}function Y_(e,t){ve=null,de.H=Nu,t===os||t===Zh?(t=R1(),Me=3):t===Gb?(t=R1(),Me=4):Me=t===l0?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,yn=t,xe===null&&(it=1,bd(e,Gn(t,e.current)))}function X_(){var e=$n.current;return e===null?!0:(Oe&4194048)===Oe?Xn===null:(Oe&62914560)===Oe||Oe&536870912?e===Xn:!1}function W_(){var e=de.H;return de.H=Nu,e===null?Nu:e}function Q_(){var e=de.A;return de.A=LD,e}function jd(){it=4,Ua||(Oe&4194048)!==Oe&&$n.current!==null||(ls=!0),!(oi&134217727)&&!(Vi&134217727)||Le===null||Ia(Le,Oe,On,!1)}function Hm(e,t,n){var r=Ee;Ee|=2;var a=W_(),i=Q_();(Le!==e||Oe!==t)&&(Od=null,El(e,t)),t=!1;var o=it;e:do try{if(Me!==0&&xe!==null){var l=xe,s=yn;switch(Me){case 8:h0(),o=6;break e;case 3:case 2:case 9:case 6:$n.current===null&&(t=!0);var u=Me;if(Me=0,yn=null,Ko(e,l,s,u),n&&ls){o=0;break e}break;default:u=Me,Me=0,yn=null,Ko(e,l,s,u)}}ID(),o=it;break}catch(d){Y_(e,d)}while(!0);return t&&e.shellSuspendCounter++,Wr=yo=null,Ee=r,de.H=a,de.A=i,xe===null&&(Le=null,Oe=0,Wh()),o}function ID(){for(;xe!==null;)Z_(xe)}function HD(e,t){var n=Ee;Ee|=2;var r=W_(),a=Q_();Le!==e||Oe!==t?(Od=null,wd=jn()+500,El(e,t)):ls=jc(e,t);e:do try{if(Me!==0&&xe!==null){t=xe;var i=yn;t:switch(Me){case 1:Me=0,yn=null,Ko(e,t,i,1);break;case 2:case 9:if(P1(i)){Me=0,yn=null,rS(t);break}t=function(){Me!==2&&Me!==9||Le!==e||(Me=7),Pr(e)},i.then(t,t);break e;case 3:Me=7;break e;case 4:Me=5;break e;case 7:P1(i)?(Me=0,yn=null,rS(t)):(Me=0,yn=null,Ko(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?gT(o):l.stateNode.complete){Me=0,yn=null;var s=l.sibling;if(s!==null)xe=s;else{var u=l.return;u!==null?(xe=u,ip(u)):xe=null}break t}}Me=0,yn=null,Ko(e,t,i,5);break;case 6:Me=0,yn=null,Ko(e,t,i,6);break;case 8:h0(),it=6;break e;default:throw Error(H(462))}}qD();break}catch(d){Y_(e,d)}while(!0);return Wr=yo=null,de.H=r,de.A=a,Ee=n,xe!==null?0:(Le=null,Oe=0,Wh(),it)}function qD(){for(;xe!==null&&!dR();)Z_(xe)}function Z_(e){var t=A_(e.alternate,e,ca);e.memoizedProps=e.pendingProps,t===null?ip(e):xe=t}function rS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=W1(n,t,t.pendingProps,t.type,void 0,Oe);break;case 11:t=W1(n,t,t.pendingProps,t.type.render,t.ref,Oe);break;case 5:Zb(t);default:E_(n,t),t=xe=EE(t,ca),t=A_(n,t,ca)}e.memoizedProps=e.pendingProps,t===null?ip(e):xe=t}function Ko(e,t,n,r){Wr=yo=null,Zb(t),rl=null,_u=0;var a=t.return;try{if(MD(e,a,t,n,Oe)){it=1,bd(e,Gn(n,e.current)),xe=null;return}}catch(i){if(a!==null)throw xe=a,i;it=1,bd(e,Gn(n,e.current)),xe=null;return}t.flags&32768?(je||r===1?e=!0:ls||Oe&536870912?e=!1:(Ua=e=!0,(r===2||r===9||r===3||r===6)&&(r=$n.current,r!==null&&r.tag===13&&(r.flags|=16384))),J_(t,e)):ip(t)}function ip(e){var t=e;do{if(t.flags&32768){J_(t,Ua);return}e=t.return;var n=RD(t.alternate,t,ca);if(n!==null){xe=n;return}if(t=t.sibling,t!==null){xe=t;return}xe=t=e}while(t!==null);it===0&&(it=5)}function J_(e,t){do{var n=DD(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);it=6,xe=null}function aS(e,t,n,r,a,i,o,l,s){e.cancelPendingCommit=null;do op();while(Ot!==0);if(Ee&6)throw Error(H(327));if(t!==null){if(t===e.current)throw Error(H(177));if(i=t.lanes|t.childLanes,i|=Lb,wR(e,n,i,o,l,s),e===Le&&(xe=Le=null,Oe=0),Al=t,Wa=e,ra=n,yv=i,vv=a,G_=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,KD(sd,function(){return aT(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=de.T,de.T=null,a=_e.p,_e.p=2,o=Ee,Ee|=4;try{kD(e,t,n)}finally{Ee=o,_e.p=a,de.T=r}}Ot=1,eT(),tT(),nT()}}function eT(){if(Ot===1){Ot=0;var e=Wa,t=Al,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=de.T,de.T=null;var r=_e.p;_e.p=2;var a=Ee;Ee|=4;try{z_(t,e);var i=wv,o=gE(e.containerInfo),l=i.focusedElem,s=i.selectionRange;if(o!==l&&l&&l.ownerDocument&&vE(l.ownerDocument.documentElement,l)){if(s!==null&&zb(l)){var u=s.start,d=s.end;if(d===void 0&&(d=u),"selectionStart"in l)l.selectionStart=u,l.selectionEnd=Math.min(d,l.value.length);else{var f=l.ownerDocument||document,h=f&&f.defaultView||window;if(h.getSelection){var p=h.getSelection(),y=l.textContent.length,m=Math.min(s.start,y),b=s.end===void 0?m:Math.min(s.end,y);!p.extend&&m>b&&(o=b,b=m,m=o);var g=E1(l,m),S=E1(l,b);if(g&&S&&(p.rangeCount!==1||p.anchorNode!==g.node||p.anchorOffset!==g.offset||p.focusNode!==S.node||p.focusOffset!==S.offset)){var x=f.createRange();x.setStart(g.node,g.offset),p.removeAllRanges(),m>b?(p.addRange(x),p.extend(S.node,S.offset)):(x.setEnd(S.node,S.offset),p.addRange(x))}}}}for(f=[],p=l;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof l.focus=="function"&&l.focus(),l=0;l<f.length;l++){var v=f[l];v.element.scrollLeft=v.left,v.element.scrollTop=v.top}}$d=!!Sv,wv=Sv=null}finally{Ee=a,_e.p=r,de.T=n}}e.current=t,Ot=2}}function tT(){if(Ot===2){Ot=0;var e=Wa,t=Al,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=de.T,de.T=null;var r=_e.p;_e.p=2;var a=Ee;Ee|=4;try{$_(e,t.alternate,t)}finally{Ee=a,_e.p=r,de.T=n}}Ot=3}}function nT(){if(Ot===4||Ot===3){Ot=0,hR();var e=Wa,t=Al,n=ra,r=G_;t.subtreeFlags&10256||t.flags&10256?Ot=5:(Ot=0,Al=Wa=null,rT(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Xa=null),Cb(n),t=t.stateNode,An&&typeof An.onCommitFiberRoot=="function")try{An.onCommitFiberRoot(Oc,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=de.T,a=_e.p,_e.p=2,de.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{de.T=t,_e.p=a}}ra&3&&op(),Pr(e),a=e.pendingLanes,n&261930&&a&42?e===gv?du++:(du=0,gv=e):du=0,Mc(0)}}function rT(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Tc(t)))}function op(){return eT(),tT(),nT(),aT()}function aT(){if(Ot!==5)return!1;var e=Wa,t=yv;yv=0;var n=Cb(ra),r=de.T,a=_e.p;try{_e.p=32>n?32:n,de.T=null,n=vv,vv=null;var i=Wa,o=ra;if(Ot=0,Al=Wa=null,ra=0,Ee&6)throw Error(H(331));var l=Ee;if(Ee|=4,H_(i.current),B_(i,i.current,o,n),Ee=l,Mc(0,!1),An&&typeof An.onPostCommitFiberRoot=="function")try{An.onPostCommitFiberRoot(Oc,i)}catch{}return!0}finally{_e.p=a,de.T=r,rT(e,t)}}function iS(e,t,n){t=Gn(n,t),t=fv(e.stateNode,t,2),e=Ya(e,t,2),e!==null&&(Ac(e,2),Pr(e))}function $e(e,t,n){if(e.tag===3)iS(e,e,n);else for(;t!==null;){if(t.tag===3){iS(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Xa===null||!Xa.has(r))){e=Gn(n,e),n=b_(2),r=Ya(t,n,2),r!==null&&(x_(n,r,t,e),Ac(r,2),Pr(r));break}}t=t.return}}function qm(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new BD;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)||(f0=!0,a.add(n),e=FD.bind(null,e,t,n),t.then(e,e))}function FD(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Le===e&&(Oe&n)===n&&(it===4||it===3&&(Oe&62914560)===Oe&&300>jn()-rp?!(Ee&2)&&El(e,0):d0|=n,jl===Oe&&(jl=0)),Pr(e)}function iT(e,t){t===0&&(t=W2()),e=mo(e,t),e!==null&&(Ac(e,t),Pr(e))}function GD(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),iT(e,n)}function VD(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(H(314))}r!==null&&r.delete(t),iT(e,n)}function KD(e,t){return Tb(e,t)}var Ad=null,Do=null,bv=!1,Ed=!1,Fm=!1,Ha=0;function Pr(e){e!==Do&&e.next===null&&(Do===null?Ad=Do=e:Do=Do.next=e),Ed=!0,bv||(bv=!0,XD())}function Mc(e,t){if(!Fm&&Ed){Fm=!0;do for(var n=!1,r=Ad;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-En(42|e)+1)-1,i&=a&~(o&~l),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,oS(r,i))}else i=Oe,i=Vh(r,r===Le?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||jc(r,i)||(n=!0,oS(r,i));r=r.next}while(n);Fm=!1}}function YD(){oT()}function oT(){Ed=bv=!1;var e=0;Ha!==0&&i3()&&(e=Ha);for(var t=jn(),n=null,r=Ad;r!==null;){var a=r.next,i=lT(r,t);i===0?(r.next=null,n===null?Ad=a:n.next=a,a===null&&(Do=n)):(n=r,(e!==0||i&3)&&(Ed=!0)),r=a}Ot!==0&&Ot!==5||Mc(e),Ha!==0&&(Ha=0)}function lT(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var o=31-En(i),l=1<<o,s=a[o];s===-1?(!(l&n)||l&r)&&(a[o]=SR(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}if(t=Le,n=Oe,n=Vh(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Me===2||Me===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&gm(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||jc(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&gm(r),Cb(n)){case 2:case 8:n=Y2;break;case 32:n=sd;break;case 268435456:n=X2;break;default:n=sd}return r=sT.bind(null,e),n=Tb(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&gm(r),e.callbackPriority=2,e.callbackNode=null,2}function sT(e,t){if(Ot!==0&&Ot!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(op()&&e.callbackNode!==n)return null;var r=Oe;return r=Vh(e,e===Le?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(K_(e,r,t),lT(e,jn()),e.callbackNode!=null&&e.callbackNode===n?sT.bind(null,e):null)}function oS(e,t){if(op())return null;K_(e,t,!0)}function XD(){l3(function(){Ee&6?Tb(K2,YD):oT()})}function p0(){if(Ha===0){var e=Sl;e===0&&(e=nf,nf<<=1,!(nf&261888)&&(nf=256)),Ha=e}return Ha}function lS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Lf(""+e)}function sS(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 WD(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=lS((a[fn]||null).action),o=r.submitter;o&&(t=(t=o[fn]||null)?lS(t.formAction):o.getAttribute("formAction"),t!==null&&(i=t,o=null));var l=new Kh("action","action",null,r,a);e.push({event:l,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ha!==0){var s=o?sS(a,o):new FormData(a);uv(n,{pending:!0,data:s,method:a.method,action:i},null,s)}}else typeof i=="function"&&(l.preventDefault(),s=o?sS(a,o):new FormData(a),uv(n,{pending:!0,data:s,method:a.method,action:i},i,s))},currentTarget:a}]})}}for(var Gm=0;Gm<Qy.length;Gm++){var Vm=Qy[Gm],QD=Vm.toLowerCase(),ZD=Vm[0].toUpperCase()+Vm.slice(1);pr(QD,"on"+ZD)}pr(xE,"onAnimationEnd");pr(SE,"onAnimationIteration");pr(wE,"onAnimationStart");pr("dblclick","onDoubleClick");pr("focusin","onFocus");pr("focusout","onBlur");pr(pD,"onTransitionRun");pr(mD,"onTransitionStart");pr(yD,"onTransitionCancel");pr(OE,"onTransitionEnd");bl("onMouseEnter",["mouseout","mouseover"]);bl("onMouseLeave",["mouseout","mouseover"]);bl("onPointerEnter",["pointerout","pointerover"]);bl("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 Cu="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(" "),JD=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Cu));function uT(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(d){cd(d)}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(d){cd(d)}a.currentTarget=null,i=s}}}}function be(e,t){var n=t[qy];n===void 0&&(n=t[qy]=new Set);var r=e+"__bubble";n.has(r)||(cT(t,e,2,!1),n.add(r))}function Km(e,t,n){var r=0;t&&(r|=4),cT(n,e,r,t)}var hf="_reactListening"+Math.random().toString(36).slice(2);function m0(e){if(!e[hf]){e[hf]=!0,tE.forEach(function(n){n!=="selectionchange"&&(JD.has(n)||Km(n,!1,e),Km(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[hf]||(t[hf]=!0,Km("selectionchange",!1,t))}}function cT(e,t,n,r){switch(OT(t)){case 2:var a=_3;break;case 8:a=T3;break;default:a=b0}n=a.bind(null,t,n,e),a=void 0,!Yy||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 Ym(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=Lo(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}uE(function(){var u=i,d=Pb(n),f=[];e:{var h=jE.get(e);if(h!==void 0){var p=Kh,y=e;switch(e){case"keypress":if(Uf(n)===0)break e;case"keydown":case"keyup":p=VR;break;case"focusin":y="focus",p=Om;break;case"focusout":y="blur",p=Om;break;case"beforeblur":case"afterblur":p=Om;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=y1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=RR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=XR;break;case xE:case SE:case wE:p=zR;break;case OE:p=QR;break;case"scroll":case"scrollend":p=$R;break;case"wheel":p=JR;break;case"copy":case"cut":case"paste":p=BR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=g1;break;case"toggle":case"beforetoggle":p=tD}var m=(t&4)!==0,b=!m&&(e==="scroll"||e==="scrollend"),g=m?h!==null?h+"Capture":null:h;m=[];for(var S=u,x;S!==null;){var v=S;if(x=v.stateNode,v=v.tag,v!==5&&v!==26&&v!==27||x===null||g===null||(v=wu(S,g),v!=null&&m.push(Mu(S,v,x))),b)break;S=S.return}0<m.length&&(h=new p(h,y,null,n,d),f.push({event:h,listeners:m}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Ky&&(y=n.relatedTarget||n.fromElement)&&(Lo(y)||y[rs]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(y=n.relatedTarget||n.toElement,p=u,y=y?Lo(y):null,y!==null&&(b=wc(y),m=y.tag,y!==b||m!==5&&m!==27&&m!==6)&&(y=null)):(p=null,y=u),p!==y)){if(m=y1,v="onMouseLeave",g="onMouseEnter",S="mouse",(e==="pointerout"||e==="pointerover")&&(m=g1,v="onPointerLeave",g="onPointerEnter",S="pointer"),b=p==null?h:Ws(p),x=y==null?h:Ws(y),h=new m(v,S+"leave",p,n,d),h.target=b,h.relatedTarget=x,v=null,Lo(d)===u&&(m=new m(g,S+"enter",y,n,d),m.target=x,m.relatedTarget=b,v=m),b=v,p&&y)t:{for(m=e3,g=p,S=y,x=0,v=g;v;v=m(v))x++;v=0;for(var w=S;w;w=m(w))v++;for(;0<x-v;)g=m(g),x--;for(;0<v-x;)S=m(S),v--;for(;x--;){if(g===S||S!==null&&g===S.alternate){m=g;break t}g=m(g),S=m(S)}m=null}else m=null;p!==null&&uS(f,h,p,m,!1),y!==null&&b!==null&&uS(f,b,y,m,!0)}}e:{if(h=u?Ws(u):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var O=w1;else if(S1(h))if(mE)O=fD;else{O=uD;var j=sD}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?u&&$b(u.elementType)&&(O=w1):O=cD;if(O&&(O=O(e,u))){pE(f,O,n,d);break e}j&&j(e,h,u),e==="focusout"&&u&&h.type==="number"&&u.memoizedProps.value!=null&&Vy(h,"number",h.value)}switch(j=u?Ws(u):window,e){case"focusin":(S1(j)||j.contentEditable==="true")&&(Io=j,Xy=u,ru=null);break;case"focusout":ru=Xy=Io=null;break;case"mousedown":Wy=!0;break;case"contextmenu":case"mouseup":case"dragend":Wy=!1,_1(f,n,d);break;case"selectionchange":if(hD)break;case"keydown":case"keyup":_1(f,n,d)}var _;if(kb)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Uo?dE(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(fE&&n.locale!=="ko"&&(Uo||E!=="onCompositionStart"?E==="onCompositionEnd"&&Uo&&(_=cE()):(Ba=d,Rb="value"in Ba?Ba.value:Ba.textContent,Uo=!0)),j=_d(u,E),0<j.length&&(E=new v1(E,e,null,n,d),f.push({event:E,listeners:j}),_?E.data=_:(_=hE(n),_!==null&&(E.data=_)))),(_=rD?aD(e,n):iD(e,n))&&(E=_d(u,"onBeforeInput"),0<E.length&&(j=new v1("onBeforeInput","beforeinput",null,n,d),f.push({event:j,listeners:E}),j.data=_)),WD(f,e,u,n,d)}uT(f,t)})}function Mu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _d(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=wu(e,n),a!=null&&r.unshift(Mu(e,a,i)),a=wu(e,t),a!=null&&r.push(Mu(e,a,i))),e.tag===3)return r;e=e.return}return[]}function e3(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function uS(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=wu(n,i),u!=null&&o.unshift(Mu(n,u,s))):a||(u=wu(n,i),u!=null&&o.push(Mu(n,u,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var t3=/\r\n?/g,n3=/\u0000|\uFFFD/g;function cS(e){return(typeof e=="string"?e:""+e).replace(t3,`
`).replace(n3,"")}function fT(e,t){return t=cS(t),cS(e)===t}function Re(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||xl(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&xl(e,""+r);break;case"className":of(e,"class",r);break;case"tabIndex":of(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":of(e,n,r);break;case"style":sE(e,r,i);break;case"data":if(t!=="object"){of(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=Lf(""+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"&&Re(e,t,"name",a.name,a,null),Re(e,t,"formEncType",a.formEncType,a,null),Re(e,t,"formMethod",a.formMethod,a,null),Re(e,t,"formTarget",a.formTarget,a,null)):(Re(e,t,"encType",a.encType,a,null),Re(e,t,"method",a.method,a,null),Re(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=Lf(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Xr);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(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(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=Lf(""+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),zf(e,"popover",r);break;case"xlinkActuate":zr(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":zr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":zr(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":zr(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":zr(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":zr(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":zr(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":zr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":zr(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":zf(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=CR.get(n)||n,zf(e,n,r))}}function xv(e,t,n,r,a,i){switch(n){case"style":sE(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(H(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(H(60));e.innerHTML=n}}break;case"children":typeof r=="string"?xl(e,r):(typeof r=="number"||typeof r=="bigint")&&xl(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=Xr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!nE.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[fn]||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,""):zf(e,n,r)}}}function It(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(H(137,t));default:Re(e,t,i,o,n,null)}}a&&Re(e,t,"srcSet",n.srcSet,n,null),r&&Re(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 d=n[r];if(d!=null)switch(r){case"name":a=d;break;case"type":o=d;break;case"checked":s=d;break;case"defaultChecked":u=d;break;case"value":i=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(H(137,t));break;default:Re(e,t,r,d,n,null)}}iE(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:Re(e,t,a,l,n,null)}t=i,n=o,e.multiple=!!r,t!=null?el(e,!!r,t,!1):n!=null&&el(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(H(91));break;default:Re(e,t,o,l,n,null)}lE(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:Re(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<Cu.length;r++)be(Cu[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(H(137,t));default:Re(e,t,u,r,n,null)}return;default:if($b(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&xv(e,t,d,r,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(r=n[l],r!=null&&Re(e,t,l,r,n,null))}function r3(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,d=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&f!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":s=f;default:r.hasOwnProperty(p)||Re(e,t,p,null,r,f)}}for(var h in r){var p=r[h];if(f=n[h],r.hasOwnProperty(h)&&(p!=null||f!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":u=p;break;case"defaultChecked":d=p;break;case"value":o=p;break;case"defaultValue":l=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(H(137,t));break;default:p!==f&&Re(e,t,h,p,r,f)}}Gy(e,o,l,s,u,d,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)||Re(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&&Re(e,t,a,i,r,s)}t=l,n=o,r=p,h!=null?el(e,!!n,h,!1):!!r!=!!n&&(t!=null?el(e,!!n,t,!0):el(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:Re(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(H(91));break;default:a!==i&&Re(e,t,o,a,r,i)}oE(e,h,p);return;case"option":for(var y in n)if(h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y))switch(y){case"selected":e.selected=!1;break;default:Re(e,t,y,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:Re(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 m in n)h=n[m],n.hasOwnProperty(m)&&h!=null&&!r.hasOwnProperty(m)&&Re(e,t,m,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(H(137,t));break;default:Re(e,t,u,h,r,p)}return;default:if($b(t)){for(var b in n)h=n[b],n.hasOwnProperty(b)&&h!==void 0&&!r.hasOwnProperty(b)&&xv(e,t,b,void 0,r,h);for(d in r)h=r[d],p=n[d],!r.hasOwnProperty(d)||h===p||h===void 0&&p===void 0||xv(e,t,d,h,r,p);return}}for(var g in n)h=n[g],n.hasOwnProperty(g)&&h!=null&&!r.hasOwnProperty(g)&&Re(e,t,g,null,r,h);for(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h==null&&p==null||Re(e,t,f,h,r,p)}function fS(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function a3(){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&&fS(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 d=s.transferSize,f=s.initiatorType;d&&fS(f)&&(s=s.responseEnd,o+=d*(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 Sv=null,wv=null;function Td(e){return e.nodeType===9?e:e.ownerDocument}function dS(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 dT(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 Ov(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 Xm=null;function i3(){var e=window.event;return e&&e.type==="popstate"?e===Xm?!1:(Xm=e,!0):(Xm=null,!1)}var hT=typeof setTimeout=="function"?setTimeout:void 0,o3=typeof clearTimeout=="function"?clearTimeout:void 0,hS=typeof Promise=="function"?Promise:void 0,l3=typeof queueMicrotask=="function"?queueMicrotask:typeof hS<"u"?function(e){return hS.resolve(null).then(e).catch(s3)}:hT;function s3(e){setTimeout(function(){throw e})}function ui(e){return e==="head"}function pS(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),Tl(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")hu(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,hu(n);for(var i=n.firstChild;i;){var o=i.nextSibling,l=i.nodeName;i[Ec]||l==="SCRIPT"||l==="STYLE"||l==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=o}}else n==="body"&&hu(e.ownerDocument.body);n=a}while(n);Tl(t)}function mS(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 jv(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":jv(n),Mb(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function u3(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[Ec])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=Wn(e.nextSibling),e===null)break}return null}function c3(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=Wn(e.nextSibling),e===null))return null;return e}function pT(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=Wn(e.nextSibling),e===null))return null;return e}function Av(e){return e.data==="$?"||e.data==="$~"}function Ev(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function f3(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 Wn(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 yS(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return Wn(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function vS(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 mT(e,t,n){switch(t=Td(n),e){case"html":if(e=t.documentElement,!e)throw Error(H(452));return e;case"head":if(e=t.head,!e)throw Error(H(453));return e;case"body":if(e=t.body,!e)throw Error(H(454));return e;default:throw Error(H(451))}}function hu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Mb(e)}var Qn=new Map,gS=new Set;function Nd(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ma=_e.d;_e.d={f:d3,r:h3,D:p3,C:m3,L:y3,m:v3,X:b3,S:g3,M:x3};function d3(){var e=ma.f(),t=ap();return e||t}function h3(e){var t=as(e);t!==null&&t.tag===5&&t.type==="form"?s_(t):ma.r(e)}var ss=typeof document>"u"?null:document;function yT(e,t,n){var r=ss;if(r&&typeof t=="string"&&t){var a=Fn(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),gS.has(a)||(gS.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),It(t,"link",e),Ct(t),r.head.appendChild(t)))}}function p3(e){ma.D(e),yT("dns-prefetch",e,null)}function m3(e,t){ma.C(e,t),yT("preconnect",e,t)}function y3(e,t,n){ma.L(e,t,n);var r=ss;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=us(e)}Qn.has(i)||(e=Xe({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Qn.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector($c(i))||t==="script"&&r.querySelector(Pc(i))||(t=r.createElement("link"),It(t,"link",e),Ct(t),r.head.appendChild(t)))}}function v3(e,t){ma.m(e,t);var n=ss;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=us(e)}if(!Qn.has(i)&&(e=Xe({rel:"modulepreload",href:e},t),Qn.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Pc(i)))return}r=n.createElement("link"),It(r,"link",e),Ct(r),n.head.appendChild(r)}}}function g3(e,t,n){ma.S(e,t,n);var r=ss;if(r&&e){var a=Jo(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($c(i)))l.loading=5;else{e=Xe({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Qn.get(i))&&y0(e,n);var s=o=r.createElement("link");Ct(s),It(s,"link",e),s._p=new Promise(function(u,d){s.onload=u,s.onerror=d}),s.addEventListener("load",function(){l.loading|=1}),s.addEventListener("error",function(){l.loading|=2}),l.loading|=4,Yf(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:l},a.set(i,o)}}}function b3(e,t){ma.X(e,t);var n=ss;if(n&&e){var r=Jo(n).hoistableScripts,a=us(e),i=r.get(a);i||(i=n.querySelector(Pc(a)),i||(e=Xe({src:e,async:!0},t),(t=Qn.get(a))&&v0(e,t),i=n.createElement("script"),Ct(i),It(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function x3(e,t){ma.M(e,t);var n=ss;if(n&&e){var r=Jo(n).hoistableScripts,a=us(e),i=r.get(a);i||(i=n.querySelector(Pc(a)),i||(e=Xe({src:e,async:!0,type:"module"},t),(t=Qn.get(a))&&v0(e,t),i=n.createElement("script"),Ct(i),It(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function bS(e,t,n,r){var a=(a=Ga.current)?Nd(a):null;if(!a)throw Error(H(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=Jo(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=Jo(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($c(e)))&&!i._p&&(o.instance=i,o.state.loading=5),Qn.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},Qn.set(e,n),i||S3(a,e,n,o.state))),t&&r===null)throw Error(H(528,""));return o}if(t&&r!==null)throw Error(H(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=us(n),n=Jo(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(H(444,e))}}function _l(e){return'href="'+Fn(e)+'"'}function $c(e){return'link[rel="stylesheet"]['+e+"]"}function vT(e){return Xe({},e,{"data-precedence":e.precedence,precedence:null})}function S3(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}),It(t,"link",n),Ct(t),e.head.appendChild(t))}function us(e){return'[src="'+Fn(e)+'"]'}function Pc(e){return"script[async]"+e}function xS(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=Xe({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ct(r),It(r,"style",a),Yf(r,n.precedence,e),t.instance=r;case"stylesheet":a=_l(n.href);var i=e.querySelector($c(a));if(i)return t.state.loading|=4,t.instance=i,Ct(i),i;r=vT(n),(a=Qn.get(a))&&y0(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}),It(i,"link",r),t.state.loading|=4,Yf(i,n.precedence,e),t.instance=i;case"script":return i=us(n.src),(a=e.querySelector(Pc(i)))?(t.instance=a,Ct(a),a):(r=n,(a=Qn.get(i))&&(r=Xe({},n),v0(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ct(a),It(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(H(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Yf(r,n.precedence,e));return t.instance}function Yf(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 y0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function v0(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Xf=null;function SS(e,t,n){if(Xf===null){var r=new Map,a=Xf=new Map;a.set(n,r)}else a=Xf,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[Ec]||i[zt]||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 wS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function w3(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 gT(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function O3(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($c(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Cd.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Ct(i);return}i=t.ownerDocument||t,r=vT(r),(a=Qn.get(a))&&y0(r,a),i=i.createElement("link"),Ct(i);var o=i;o._p=new Promise(function(l,s){o.onload=l,o.onerror=s}),It(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=Cd.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Wm=0;function j3(e,t){return e.stylesheets&&e.count===0&&Wf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Wm===0&&(Wm=62500*a3());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Wm?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Cd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Md=null;function Wf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Md=new Map,t.forEach(A3,e),Md=null,Cd.call(e))}function A3(e,t){if(!(t.state.loading&4)){var n=Md.get(e);if(n)var r=n.get(null);else{n=new Map,Md.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=Cd.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 $u={$$typeof:Yr,Provider:null,Consumer:null,_currentValue:Hi,_currentValue2:Hi,_threadCount:0};function E3(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=bm(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=bm(0),this.hiddenUpdates=bm(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 bT(e,t,n,r,a,i,o,l,s,u,d,f){return e=new E3(e,t,n,o,s,u,d,f,l),t=1,i===!0&&(t|=24),i=Sn(3,null,null,t),e.current=i,i.stateNode=e,t=qb(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},Vb(i),e}function xT(e){return e?(e=Fo,e):Fo}function ST(e,t,n,r,a,i){a=xT(a),r.context===null?r.context=a:r.pendingContext=a,r=Ka(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Ya(e,r,t),n!==null&&(un(n,e,t),iu(n,e,t))}function OS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function g0(e,t){OS(e,t),(e=e.alternate)&&OS(e,t)}function wT(e){if(e.tag===13||e.tag===31){var t=mo(e,67108864);t!==null&&un(t,e,67108864),g0(e,67108864)}}function jS(e){if(e.tag===13||e.tag===31){var t=_n();t=Nb(t);var n=mo(e,t);n!==null&&un(n,e,t),g0(e,t)}}var $d=!0;function _3(e,t,n,r){var a=de.T;de.T=null;var i=_e.p;try{_e.p=2,b0(e,t,n,r)}finally{_e.p=i,de.T=a}}function T3(e,t,n,r){var a=de.T;de.T=null;var i=_e.p;try{_e.p=8,b0(e,t,n,r)}finally{_e.p=i,de.T=a}}function b0(e,t,n,r){if($d){var a=Tv(r);if(a===null)Ym(e,t,r,Pd,n),AS(e,r);else if(C3(a,e,t,n,r))r.stopPropagation();else if(AS(e,r),t&4&&-1<N3.indexOf(e)){for(;a!==null;){var i=as(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var o=Oi(i.pendingLanes);if(o!==0){var l=i;for(l.pendingLanes|=2,l.entangledLanes|=2;o;){var s=1<<31-En(o);l.entanglements[1]|=s,o&=~s}Pr(i),!(Ee&6)&&(wd=jn()+500,Mc(0))}}break;case 31:case 13:l=mo(i,2),l!==null&&un(l,i,2),ap(),g0(i,2)}if(i=Tv(r),i===null&&Ym(e,t,r,Pd,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Ym(e,t,r,null,n)}}function Tv(e){return e=Pb(e),x0(e)}var Pd=null;function x0(e){if(Pd=null,e=Lo(e),e!==null){var t=wc(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=H2(t),e!==null)return e;e=null}else if(n===31){if(e=q2(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 Pd=e,null}function OT(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(pR()){case K2:return 2;case Y2:return 8;case sd:case mR:return 32;case X2:return 268435456;default:return 32}default:return 32}}var Nv=!1,Qa=null,Za=null,Ja=null,Pu=new Map,Ru=new Map,Ca=[],N3="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 AS(e,t){switch(e){case"focusin":case"focusout":Qa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Ja=null;break;case"pointerover":case"pointerout":Pu.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ru.delete(t.pointerId)}}function Ds(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=as(t),t!==null&&wT(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function C3(e,t,n,r,a){switch(t){case"focusin":return Qa=Ds(Qa,e,t,n,r,a),!0;case"dragenter":return Za=Ds(Za,e,t,n,r,a),!0;case"mouseover":return Ja=Ds(Ja,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Pu.set(i,Ds(Pu.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Ru.set(i,Ds(Ru.get(i)||null,e,t,n,r,a)),!0}return!1}function jT(e){var t=Lo(e.target);if(t!==null){var n=wc(t);if(n!==null){if(t=n.tag,t===13){if(t=H2(n),t!==null){e.blockedOn=t,u1(e.priority,function(){jS(n)});return}}else if(t===31){if(t=q2(n),t!==null){e.blockedOn=t,u1(e.priority,function(){jS(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 Qf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Tv(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ky=r,n.target.dispatchEvent(r),Ky=null}else return t=as(n),t!==null&&wT(t),e.blockedOn=n,!1;t.shift()}return!0}function ES(e,t,n){Qf(e)&&n.delete(t)}function M3(){Nv=!1,Qa!==null&&Qf(Qa)&&(Qa=null),Za!==null&&Qf(Za)&&(Za=null),Ja!==null&&Qf(Ja)&&(Ja=null),Pu.forEach(ES),Ru.forEach(ES)}function pf(e,t){e.blockedOn===t&&(e.blockedOn=null,Nv||(Nv=!0,At.unstable_scheduleCallback(At.unstable_NormalPriority,M3)))}var mf=null;function _S(e){mf!==e&&(mf=e,At.unstable_scheduleCallback(At.unstable_NormalPriority,function(){mf===e&&(mf=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(x0(r||n)===null)continue;break}var i=as(n);i!==null&&(e.splice(t,3),t-=3,uv(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Tl(e){function t(s){return pf(s,e)}Qa!==null&&pf(Qa,e),Za!==null&&pf(Za,e),Ja!==null&&pf(Ja,e),Pu.forEach(t),Ru.forEach(t);for(var n=0;n<Ca.length;n++){var r=Ca[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<Ca.length&&(n=Ca[0],n.blockedOn===null);)jT(n),n.blockedOn===null&&Ca.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[fn]||null;if(typeof i=="function")o||_S(n);else if(o){var l=null;if(i&&i.hasAttribute("formAction")){if(a=i,o=i[fn]||null)l=o.formAction;else if(x0(a)!==null)continue}else l=o.action;typeof l=="function"?n[r+1]=l:(n.splice(r,3),r-=3),_S(n)}}}function AT(){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 S0(e){this._internalRoot=e}lp.prototype.render=S0.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(H(409));var n=t.current,r=_n();ST(n,r,e,t,null,null)};lp.prototype.unmount=S0.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;ST(e.current,2,null,e,null,null),ap(),t[rs]=null}};function lp(e){this._internalRoot=e}lp.prototype.unstable_scheduleHydration=function(e){if(e){var t=eE();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ca.length&&t!==0&&t<Ca[n].priority;n++);Ca.splice(n,0,e),n===0&&jT(e)}};var TS=U2.version;if(TS!=="19.2.7")throw Error(H(527,TS,"19.2.7"));_e.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(H(188)):(e=Object.keys(e).join(","),Error(H(268,e)));return e=lR(t),e=e!==null?F2(e):null,e=e===null?null:e.stateNode,e};var $3={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:de,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!yf.isDisabled&&yf.supportsFiber)try{Oc=yf.inject($3),An=yf}catch{}}Fh.createRoot=function(e,t){if(!I2(e))throw Error(H(299));var n=!1,r="",a=y_,i=v_,o=g_;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=bT(e,1,!1,null,null,n,r,null,a,i,o,AT),e[rs]=t.current,m0(e),new S0(t)};Fh.hydrateRoot=function(e,t,n){if(!I2(e))throw Error(H(299));var r=!1,a="",i=y_,o=v_,l=g_,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=bT(e,1,!0,t,n??null,r,a,s,i,o,l,AT),t.context=xT(null),n=t.current,r=_n(),r=Nb(r),a=Ka(r),a.callback=null,Ya(n,a,r),n=r,t.current.lanes=n,Ac(t,n),Pr(t),e[rs]=t.current,m0(e),new lp(t)};Fh.version="19.2.7";function ET(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ET)}catch(e){console.error(e)}}ET(),R2.exports=Fh;var P3=R2.exports;const R3=Ne(P3);/**
 * 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 NS="popstate";function CS(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function D3(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 Cv("",{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:Du(a)}return z3(t,n,null,e)}function Je(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function dr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function k3(){return Math.random().toString(36).substring(2,10)}function MS(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 Cv(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?cs(t):t,state:n,key:t&&t.key||r||k3(),mask:a}}function Du({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 cs(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 z3(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,o=a.history,l="POP",s=null,u=d();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function d(){return(o.state||{idx:null}).idx}function f(){l="POP";let b=d(),g=b==null?null:b-u;u=b,s&&s({action:l,location:m.location,delta:g})}function h(b,g){l="PUSH";let S=CS(b)?b:Cv(m.location,b,g);u=d()+1;let x=MS(S,u),v=m.createHref(S.mask||S);try{o.pushState(x,"",v)}catch(w){if(w instanceof DOMException&&w.name==="DataCloneError")throw w;a.location.assign(v)}i&&s&&s({action:l,location:m.location,delta:1})}function p(b,g){l="REPLACE";let S=CS(b)?b:Cv(m.location,b,g);u=d();let x=MS(S,u),v=m.createHref(S.mask||S);o.replaceState(x,"",v),i&&s&&s({action:l,location:m.location,delta:0})}function y(b){return L3(a,b)}let m={get action(){return l},get location(){return e(a,o)},listen(b){if(s)throw new Error("A history only accepts one active listener");return a.addEventListener(NS,f),s=b,()=>{a.removeEventListener(NS,f),s=null}},createHref(b){return t(a,b)},createURL:y,encodeLocation(b){let g=y(b);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:p,go(b){return o.go(b)}};return m}function L3(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),Je(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:Du(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function _T(e,t,n="/"){return B3(e,t,n,!1)}function B3(e,t,n,r,a){let i=typeof t=="string"?cs(t):t,o=fa(i.pathname||"/",n);if(o==null)return null;let l=U3(e),s=null,u=Z3(o);for(let d=0;s==null&&d<l.length;++d)s=W3(l[d],u,r);return s}function U3(e){let t=TT(e);return I3(t),t}function TT(e,t=[],n=[],r="",a=!1){let i=(o,l,s=a,u)=>{let d={relativePath:u===void 0?o.path||"":u,caseSensitive:o.caseSensitive===!0,childrenIndex:l,route:o};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&s)return;Je(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let f=cr([r,d.relativePath]),h=n.concat(d);o.children&&o.children.length>0&&(Je(o.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),TT(o.children,t,h,f,s)),!(o.path==null&&!o.index)&&t.push({path:f,score:Y3(f,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 NT(o.path))i(o,l,!0,u)}),t}function NT(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=NT(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 I3(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:X3(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var H3=/^:[\w-]+$/,q3=3,F3=2,G3=1,V3=10,K3=-2,$S=e=>e==="*";function Y3(e,t){let n=e.split("/"),r=n.length;return n.some($S)&&(r+=K3),t&&(r+=F3),n.filter(a=>!$S(a)).reduce((a,i)=>a+(H3.test(i)?q3:i===""?G3:V3),r)}function X3(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 W3(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,d=i==="/"?t:t.slice(i.length)||"/",f=Rd({path:s.relativePath,caseSensitive:s.caseSensitive,end:u},d),h=s.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=Rd({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},d)),!f)return null;Object.assign(a,f.params),o.push({params:a,pathname:cr([i,f.pathname]),pathnameBase:nk(cr([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=cr([i,f.pathnameBase]))}return o}function Rd(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Q3(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:d,isOptional:f},h)=>{if(d==="*"){let y=l[h]||"";o=i.slice(0,i.length-y.length).replace(/(.)\/+$/,"$1")}const p=l[h];return f&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:o,pattern:e}}function Q3(e,t=!1,n=!0){dr(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,d)=>{if(r.push({paramName:l,isOptional:s!=null}),s){let f=d.charAt(u+o.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 Z3(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return dr(!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 fa(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 J3=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function ek(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?cs(e):e,i;return n?(n=CT(n),n.startsWith("/")?i=PS(n.substring(1),"/"):i=PS(n,t)):i=t,{pathname:i,search:rk(r),hash:ak(a)}}function PS(e,t){let n=Dd(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Qm(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 tk(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function w0(e){let t=tk(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function sp(e,t,n,r=!1){let a;typeof e=="string"?a=cs(e):(a={...e},Je(!a.pathname||!a.pathname.includes("?"),Qm("?","pathname","search",a)),Je(!a.pathname||!a.pathname.includes("#"),Qm("#","pathname","hash",a)),Je(!a.search||!a.search.includes("#"),Qm("#","search","hash",a)));let i=e===""||a.pathname==="",o=i?"/":a.pathname,l;if(o==null)l=n;else{let f=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}l=f>=0?t[f]:"/"}let s=ek(a,l),u=o&&o!=="/"&&o.endsWith("/"),d=(i||o===".")&&n.endsWith("/");return!s.pathname.endsWith("/")&&(u||d)&&(s.pathname+="/"),s}var CT=e=>e.replace(/\/\/+/g,"/"),cr=e=>CT(e.join("/")),Dd=e=>e.replace(/\/+$/,""),nk=e=>Dd(e).replace(/^\/*/,"/"),rk=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,ak=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,ik=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 ok(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function lk(e){let t=e.map(n=>n.route.path).filter(Boolean);return cr(t)||"/"}var MT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function $T(e,t){let n=e;if(typeof n!="string"||!J3.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(MT)try{let i=new URL(window.location.href),o=n.startsWith("//")?new URL(i.protocol+n):new URL(n),l=fa(o.pathname,t);o.origin===i.origin&&l!=null?n=l+o.search+o.hash:a=!0}catch{dr(!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 PT=["POST","PUT","PATCH","DELETE"];new Set(PT);var sk=["GET",...PT];new Set(sk);var fs=A.createContext(null);fs.displayName="DataRouter";var up=A.createContext(null);up.displayName="DataRouterState";var RT=A.createContext(!1);function uk(){return A.useContext(RT)}var DT=A.createContext({isTransitioning:!1});DT.displayName="ViewTransition";var ck=A.createContext(new Map);ck.displayName="Fetchers";var fk=A.createContext(null);fk.displayName="Await";var Pn=A.createContext(null);Pn.displayName="Navigation";var Rc=A.createContext(null);Rc.displayName="Location";var Jn=A.createContext({outlet:null,matches:[],isDataRoute:!1});Jn.displayName="Route";var O0=A.createContext(null);O0.displayName="RouteError";var kT="REACT_ROUTER_ERROR",dk="REDIRECT",hk="ROUTE_ERROR_RESPONSE";function pk(e){if(e.startsWith(`${kT}:${dk}:{`))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 mk(e){if(e.startsWith(`${kT}:${hk}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new ik(t.status,t.statusText,t.data)}catch{}}function yk(e,{relative:t}={}){Je(ds(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=A.useContext(Pn),{hash:a,pathname:i,search:o}=Dc(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:cr([n,i])),r.createHref({pathname:l,search:o,hash:a})}function ds(){return A.useContext(Rc)!=null}function Rr(){return Je(ds(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Rc).location}var zT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function LT(e){A.useContext(Pn).static||A.useLayoutEffect(e)}function hs(){let{isDataRoute:e}=A.useContext(Jn);return e?$k():vk()}function vk(){Je(ds(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(fs),{basename:t,navigator:n}=A.useContext(Pn),{matches:r}=A.useContext(Jn),{pathname:a}=Rr(),i=JSON.stringify(w0(r)),o=A.useRef(!1);return LT(()=>{o.current=!0}),A.useCallback((s,u={})=>{if(dr(o.current,zT),!o.current)return;if(typeof s=="number"){n.go(s);return}let d=sp(s,JSON.parse(i),a,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:cr([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,a,e])}var gk=A.createContext(null);function bk(e){let t=A.useContext(Jn).outlet;return A.useMemo(()=>t&&A.createElement(gk.Provider,{value:e},t),[t,e])}function xk(){let{matches:e}=A.useContext(Jn),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Dc(e,{relative:t}={}){let{matches:n}=A.useContext(Jn),{pathname:r}=Rr(),a=JSON.stringify(w0(n));return A.useMemo(()=>sp(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function Sk(e,t){return BT(e,t)}function BT(e,t,n){var b;Je(ds(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=A.useContext(Pn),{matches:a}=A.useContext(Jn),i=a[a.length-1],o=i?i.params:{},l=i?i.pathname:"/",s=i?i.pathnameBase:"/",u=i&&i.route;{let g=u&&u.path||"";IT(l,!u||g.endsWith("*")||g.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${g}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${g}"> to <Route path="${g==="/"?"*":`${g}/*`}">.`)}let d=Rr(),f;if(t){let g=typeof t=="string"?cs(t):t;Je(s==="/"||((b=g.pathname)==null?void 0:b.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 "${g.pathname}" was given in the \`location\` prop.`),f=g}else f=d;let h=f.pathname||"/",p=h;if(s!=="/"){let g=s.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(g.length).join("/")}let y=n&&n.state.matches.length?n.state.matches.map(g=>Object.assign(g,{route:n.manifest[g.route.id]||g.route})):_T(e,{pathname:p});dr(u||y!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),dr(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.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 m=Ek(y&&y.map(g=>Object.assign({},g,{params:Object.assign({},o,g.params),pathname:cr([s,r.encodeLocation?r.encodeLocation(g.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathname]),pathnameBase:g.pathnameBase==="/"?s:cr([s,r.encodeLocation?r.encodeLocation(g.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:g.pathnameBase])})),a,n);return t&&m?A.createElement(Rc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},m):m}function wk(){let e=Mk(),t=ok(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=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:i},"ErrorBoundary")," or"," ",A.createElement("code",{style:i},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:a},n):null,o)}var Ok=A.createElement(wk,null),UT=class extends A.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=mk(e.digest);n&&(e=n)}let t=e!==void 0?A.createElement(Jn.Provider,{value:this.props.routeContext},A.createElement(O0.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?A.createElement(jk,{error:e},t):t}};UT.contextType=RT;var Zm=new WeakMap;function jk({children:e,error:t}){let{basename:n}=A.useContext(Pn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=pk(t.digest);if(r){let a=Zm.get(t);if(a)throw a;let i=$T(r.location,n);if(MT&&!Zm.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 Zm.set(t,o),o}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function Ak({routeContext:e,match:t,children:n}){let r=A.useContext(fs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(Jn.Provider,{value:e},n)}function Ek(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 d=a.findIndex(f=>f.route.id&&(i==null?void 0:i[f.route.id])!==void 0);Je(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let o=!1,l=-1;if(n&&r){o=r.renderFallback;for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(l=d),f.route.id){let{loaderData:h,errors:p}=r,y=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||y){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?(d,f)=>{var h,p;s(d,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:lk(r.matches),errorInfo:f})}:void 0;return a.reduceRight((d,f,h)=>{let p,y=!1,m=null,b=null;r&&(p=i&&f.route.id?i[f.route.id]:void 0,m=f.route.errorElement||Ok,o&&(l<0&&h===0?(IT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,b=null):l===h&&(y=!0,b=f.route.hydrateFallbackElement||null)));let g=t.concat(a.slice(0,h+1)),S=()=>{let x;return p?x=m:y?x=b:f.route.Component?x=A.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,A.createElement(Ak,{match:f,routeContext:{outlet:d,matches:g,isDataRoute:r!=null},children:x})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?A.createElement(UT,{location:r.location,revalidation:r.revalidation,component:m,error:p,children:S(),routeContext:{outlet:null,matches:g,isDataRoute:!0},onError:u}):S()},null)}function j0(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function _k(e){let t=A.useContext(fs);return Je(t,j0(e)),t}function Tk(e){let t=A.useContext(up);return Je(t,j0(e)),t}function Nk(e){let t=A.useContext(Jn);return Je(t,j0(e)),t}function A0(e){let t=Nk(e),n=t.matches[t.matches.length-1];return Je(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Ck(){return A0("useRouteId")}function Mk(){var r;let e=A.useContext(O0),t=Tk("useRouteError"),n=A0("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function $k(){let{router:e}=_k("useNavigate"),t=A0("useNavigate"),n=A.useRef(!1);return LT(()=>{n.current=!0}),A.useCallback(async(a,i={})=>{dr(n.current,zT),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var RS={};function IT(e,t,n){!t&&!RS[e]&&(RS[e]=!0,dr(!1,n))}A.memo(Pk);function Pk({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return BT(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function HT({to:e,replace:t,state:n,relative:r}){Je(ds(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=A.useContext(Pn);dr(!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}=A.useContext(Jn),{pathname:o}=Rr(),l=hs(),s=sp(e,w0(i),o,r==="path"),u=JSON.stringify(s);return A.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function Rk(e){return bk(e.context)}function We(e){Je(!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 Dk({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:o}){Je(!ds(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),s=A.useMemo(()=>({basename:l,navigator:a,static:i,useTransitions:o,future:{}}),[l,a,i,o]);typeof n=="string"&&(n=cs(n));let{pathname:u="/",search:d="",hash:f="",state:h=null,key:p="default",mask:y}=n,m=A.useMemo(()=>{let b=fa(u,l);return b==null?null:{location:{pathname:b,search:d,hash:f,state:h,key:p,mask:y},navigationType:r}},[l,u,d,f,h,p,r,y]);return dr(m!=null,`<Router basename="${l}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),m==null?null:A.createElement(Pn.Provider,{value:s},A.createElement(Rc.Provider,{children:t,value:m}))}function kk({children:e,location:t}){return Sk(Mv(e),t)}function Mv(e,t=[]){let n=[];return A.Children.forEach(e,(r,a)=>{if(!A.isValidElement(r))return;let i=[...t,a];if(r.type===A.Fragment){n.push.apply(n,Mv(r.props.children,i));return}Je(r.type===We,`[${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>`),Je(!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=Mv(r.props.children,i)),n.push(o)}),n}var Zf="get",Jf="application/x-www-form-urlencoded";function cp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function zk(e){return cp(e)&&e.tagName.toLowerCase()==="button"}function Lk(e){return cp(e)&&e.tagName.toLowerCase()==="form"}function Bk(e){return cp(e)&&e.tagName.toLowerCase()==="input"}function Uk(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Ik(e,t){return e.button===0&&(!t||t==="_self")&&!Uk(e)}var vf=null;function Hk(){if(vf===null)try{new FormData(document.createElement("form"),0),vf=!1}catch{vf=!0}return vf}var qk=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jm(e){return e!=null&&!qk.has(e)?(dr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Jf}"`),null):e}function Fk(e,t){let n,r,a,i,o;if(Lk(e)){let l=e.getAttribute("action");r=l?fa(l,t):null,n=e.getAttribute("method")||Zf,a=Jm(e.getAttribute("enctype"))||Jf,i=new FormData(e)}else if(zk(e)||Bk(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?fa(s,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Zf,a=Jm(e.getAttribute("formenctype"))||Jm(l.getAttribute("enctype"))||Jf,i=new FormData(l,e),!Hk()){let{name:u,type:d,value:f}=e;if(d==="image"){let h=u?`${u}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else u&&i.append(u,f)}}else{if(cp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Zf,r=null,a=Jf,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 E0(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function qT(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&&fa(a.pathname,t)==="/"?a.pathname=`${Dd(t)}/_root.${r}`:a.pathname=`${Dd(a.pathname)}.${r}`,a}async function Gk(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 Vk(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 Kk(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let o=await Gk(i,n);return o.links?o.links():[]}return[]}));return Qk(r.flat(1).filter(Vk).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function DS(e,t,n,r,a,i){let o=(s,u)=>n[u]?s.route.id!==n[u].route.id:!0,l=(s,u)=>{var d;return n[u].pathname!==s.pathname||((d=n[u].route.path)==null?void 0:d.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 f;let d=r.routes[s.route.id];if(!d||!d.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:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:s.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function Yk(e,t,{includeHydrateFallback:n}={}){return Xk(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 Xk(e){return[...new Set(e)]}function Wk(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Qk(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(Wk(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function _0(){let e=A.useContext(fs);return E0(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Zk(){let e=A.useContext(up);return E0(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var T0=A.createContext(void 0);T0.displayName="FrameworkContext";function N0(){let e=A.useContext(T0);return E0(e,"You must render this element inside a <HydratedRouter> element"),e}function Jk(e,t){let n=A.useContext(T0),[r,a]=A.useState(!1),[i,o]=A.useState(!1),{onFocus:l,onBlur:s,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,h=A.useRef(null);A.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let m=g=>{g.forEach(S=>{o(S.isIntersecting)})},b=new IntersectionObserver(m,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),A.useEffect(()=>{if(r){let m=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(m)}}},[r]);let p=()=>{a(!0)},y=()=>{a(!1),o(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:ks(l,p),onBlur:ks(s,y),onMouseEnter:ks(u,p),onMouseLeave:ks(d,y),onTouchStart:ks(f,p)}]:[!1,h,{}]}function ks(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function e5({page:e,...t}){let n=uk(),{router:r}=_0(),a=A.useMemo(()=>_T(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?A.createElement(n5,{page:e,matches:a,...t}):A.createElement(r5,{page:e,matches:a,...t}):null}function t5(e){let{manifest:t,routeModules:n}=N0(),[r,a]=A.useState([]);return A.useEffect(()=>{let i=!1;return Kk(e,t,n).then(o=>{i||a(o)}),()=>{i=!0}},[e,t,n]),r}function n5({page:e,matches:t,...n}){let r=Rr(),{future:a}=N0(),{basename:i}=_0(),o=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let l=qT(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),s=!1,u=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?s=!0:u.push(d.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 A.createElement(A.Fragment,null,o.map(l=>A.createElement("link",{key:l,rel:"prefetch",as:"fetch",href:l,...n})))}function r5({page:e,matches:t,...n}){let r=Rr(),{future:a,manifest:i,routeModules:o}=N0(),{basename:l}=_0(),{loaderData:s,matches:u}=Zk(),d=A.useMemo(()=>DS(e,t,u,i,r,"data"),[e,t,u,i,r]),f=A.useMemo(()=>DS(e,t,u,i,r,"assets"),[e,t,u,i,r]),h=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let m=new Set,b=!1;if(t.forEach(S=>{var v;let x=i.routes[S.route.id];!x||!x.hasLoader||(!d.some(w=>w.route.id===S.route.id)&&S.route.id in s&&((v=o[S.route.id])!=null&&v.shouldRevalidate)||x.hasClientLoader?b=!0:m.add(S.route.id))}),m.size===0)return[];let g=qT(e,l,a.v8_trailingSlashAwareDataRequests,"data");return b&&m.size>0&&g.searchParams.set("_routes",t.filter(S=>m.has(S.route.id)).map(S=>S.route.id).join(",")),[g.pathname+g.search]},[l,a.v8_trailingSlashAwareDataRequests,s,r,i,d,t,e,o]),p=A.useMemo(()=>Yk(f,i),[f,i]),y=t5(f);return A.createElement(A.Fragment,null,h.map(m=>A.createElement("link",{key:m,rel:"prefetch",as:"fetch",href:m,...n})),p.map(m=>A.createElement("link",{key:m,rel:"modulepreload",href:m,...n})),y.map(({key:m,link:b})=>A.createElement("link",{key:m,nonce:n.nonce,...b,crossOrigin:b.crossOrigin??n.crossOrigin})))}function a5(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var i5=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{i5&&(window.__reactRouterVersion="7.17.0")}catch{}function o5({basename:e,children:t,useTransitions:n,window:r}){let a=A.useRef();a.current==null&&(a.current=D3({window:r,v5Compat:!0}));let i=a.current,[o,l]=A.useState({action:i.action,location:i.location}),s=A.useCallback(u=>{n===!1?l(u):A.startTransition(()=>l(u))},[n]);return A.useLayoutEffect(()=>i.listen(s),[i,s]),A.createElement(Dk,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i,useTransitions:n})}var FT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,C0=A.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:o,mask:l,state:s,target:u,to:d,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:p,...y},m){let{basename:b,navigator:g,useTransitions:S}=A.useContext(Pn),x=typeof d=="string"&&FT.test(d),v=$T(d,b);d=v.to;let w=yk(d,{relative:a}),O=Rr(),j=null;if(l){let R=sp(l,[],O.mask?O.mask.pathname:"/",!0);b!=="/"&&(R.pathname=R.pathname==="/"?b:cr([b,R.pathname])),j=g.createHref(R)}let[_,E,N]=Jk(r,y),$=u5(d,{replace:o,mask:l,state:s,target:u,preventScrollReset:f,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:S});function C(R){t&&t(R),R.defaultPrevented||$(R)}let L=!(v.isExternal||i),k=A.createElement("a",{...y,...N,href:(L?j:void 0)||v.absoluteURL||w,onClick:L?C:t,ref:a5(m,E),target:u,"data-discover":!x&&n==="render"?"true":void 0});return _&&!x?A.createElement(A.Fragment,null,k,A.createElement(e5,{page:w})):k});C0.displayName="Link";var GT=A.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:o,viewTransition:l,children:s,...u},d){let f=Dc(o,{relative:u.relative}),h=Rr(),p=A.useContext(up),{navigator:y,basename:m}=A.useContext(Pn),b=p!=null&&p5(f)&&l===!0,g=y.encodeLocation?y.encodeLocation(f).pathname:f.pathname,S=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(S=S.toLowerCase(),x=x?x.toLowerCase():null,g=g.toLowerCase()),x&&m&&(x=fa(x,m)||x);const v=g!=="/"&&g.endsWith("/")?g.length-1:g.length;let w=S===g||!a&&S.startsWith(g)&&S.charAt(v)==="/",O=x!=null&&(x===g||!a&&x.startsWith(g)&&x.charAt(g.length)==="/"),j={isActive:w,isPending:O,isTransitioning:b},_=w?t:void 0,E;typeof r=="function"?E=r(j):E=[r,w?"active":null,O?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let N=typeof i=="function"?i(j):i;return A.createElement(C0,{...u,"aria-current":_,className:E,ref:d,style:N,to:o,viewTransition:l},typeof s=="function"?s(j):s)});GT.displayName="NavLink";var l5=A.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:o=Zf,action:l,onSubmit:s,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h,...p},y)=>{let{useTransitions:m}=A.useContext(Pn),b=d5(),g=h5(l,{relative:u}),S=o.toLowerCase()==="get"?"get":"post",x=typeof l=="string"&&FT.test(l),v=w=>{if(s&&s(w),w.defaultPrevented)return;w.preventDefault();let O=w.nativeEvent.submitter,j=(O==null?void 0:O.getAttribute("formmethod"))||o,_=()=>b(O||w.currentTarget,{fetcherKey:t,method:j,navigate:n,replace:a,state:i,relative:u,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h});m&&n!==!1?A.startTransition(()=>_()):_()};return A.createElement("form",{ref:y,method:S,action:g,onSubmit:r?s:v,...p,"data-discover":!x&&e==="render"?"true":void 0})});l5.displayName="Form";function s5(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function VT(e){let t=A.useContext(fs);return Je(t,s5(e)),t}function u5(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s,useTransitions:u}={}){let d=hs(),f=Rr(),h=Dc(e,{relative:o});return A.useCallback(p=>{if(Ik(p,t)){p.preventDefault();let y=n!==void 0?n:Du(f)===Du(h),m=()=>d(e,{replace:y,mask:r,state:a,preventScrollReset:i,relative:o,viewTransition:l,defaultShouldRevalidate:s});u?A.startTransition(()=>m()):m()}},[f,d,h,n,r,a,t,e,i,o,l,s,u])}var c5=0,f5=()=>`__${String(++c5)}__`;function d5(){let{router:e}=VT("useSubmit"),{basename:t}=A.useContext(Pn),n=Ck(),r=e.fetch,a=e.navigate;return A.useCallback(async(i,o={})=>{let{action:l,method:s,encType:u,formData:d,body:f}=Fk(i,t);if(o.navigate===!1){let h=o.fetcherKey||f5();await r(h,n,o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:f,formMethod:o.method||s,formEncType:o.encType||u,flushSync:o.flushSync})}else await a(o.action||l,{defaultShouldRevalidate:o.defaultShouldRevalidate,preventScrollReset:o.preventScrollReset,formData:d,body:f,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 h5(e,{relative:t}={}){let{basename:n}=A.useContext(Pn),r=A.useContext(Jn);Je(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Dc(e||".",{relative:t})},o=Rr();if(e==null){i.search=o.search;let l=new URLSearchParams(i.search),s=l.getAll("index");if(s.some(d=>d==="")){l.delete("index"),s.filter(f=>f).forEach(f=>l.append("index",f));let d=l.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:cr([n,i.pathname])),Du(i)}function p5(e,{relative:t}={}){let n=A.useContext(DT);Je(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=VT("useViewTransitionState"),a=Dc(e,{relative:t});if(!n.isTransitioning)return!1;let i=fa(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=fa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Rd(a.pathname,o)!=null||Rd(a.pathname,i)!=null}var fp=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(){}},ki,$a,ul,y2,m5=(y2=class extends fp{constructor(){super();we(this,ki);we(this,$a);we(this,ul);he(this,ul,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){U(this,$a)||this.setEventListener(U(this,ul))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,$a))==null||t.call(this),he(this,$a,void 0))}setEventListener(t){var n;he(this,ul,t),(n=U(this,$a))==null||n.call(this),he(this,$a,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){U(this,ki)!==t&&(he(this,ki,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof U(this,ki)=="boolean"?U(this,ki):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},ki=new WeakMap,$a=new WeakMap,ul=new WeakMap,y2),KT=new m5,y5={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Pa,xb,v2,v5=(v2=class{constructor(){we(this,Pa,y5);we(this,xb,!1)}setTimeoutProvider(e){he(this,Pa,e)}setTimeout(e,t){return U(this,Pa).setTimeout(e,t)}clearTimeout(e){U(this,Pa).clearTimeout(e)}setInterval(e,t){return U(this,Pa).setInterval(e,t)}clearInterval(e){U(this,Pa).clearInterval(e)}},Pa=new WeakMap,xb=new WeakMap,v2),$v=new v5;function g5(e){setTimeout(e,0)}var b5=typeof window>"u"||"Deno"in globalThis;function ar(){}function x5(e,t){return typeof e=="function"?e(t):e}function S5(e){return typeof e=="number"&&e>=0&&e!==1/0}function w5(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Pv(e,t){return typeof e=="function"?e(t):e}function O5(e,t){return typeof e=="function"?e(t):e}function kS(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:o,stale:l}=e;if(o){if(r){if(t.queryHash!==M0(o,t.options))return!1}else if(!zu(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 zS(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(ku(t.options.mutationKey)!==ku(i))return!1}else if(!zu(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function M0(e,t){return((t==null?void 0:t.queryKeyHashFn)||ku)(e)}function ku(e){return JSON.stringify(e,(t,n)=>Rv(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function zu(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>zu(e[n],t[n])):!1}var j5=Object.prototype.hasOwnProperty;function YT(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=LS(e)&&LS(t);if(!r&&!(Rv(e)&&Rv(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 d=0;d<l;d++){const f=r?d:o[d],h=e[f],p=t[f];if(h===p){s[f]=h,(r?d<i:j5.call(e,f))&&u++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){s[f]=p;continue}const y=YT(h,p,n+1);s[f]=y,y===h&&u++}return i===l&&u===i?e:s}function LS(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function Rv(e){if(!BS(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!BS(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function BS(e){return Object.prototype.toString.call(e)==="[object Object]"}function A5(e){return new Promise(t=>{$v.setTimeout(t,e)})}function E5(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?YT(e,t):t}function _5(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function T5(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var $0=Symbol();function XT(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===$0?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function N5(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 WT=(()=>{let e=()=>b5;return{isServer(){return e()},setIsServer(t){e=t}}})();function C5(){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 M5=g5;function $5(){let e=[],t=0,n=l=>{l()},r=l=>{l()},a=M5;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 Yt=$5(),cl,Ra,fl,g2,P5=(g2=class extends fp{constructor(){super();we(this,cl,!0);we(this,Ra);we(this,fl);he(this,fl,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(){U(this,Ra)||this.setEventListener(U(this,fl))}onUnsubscribe(){var t;this.hasListeners()||((t=U(this,Ra))==null||t.call(this),he(this,Ra,void 0))}setEventListener(t){var n;he(this,fl,t),(n=U(this,Ra))==null||n.call(this),he(this,Ra,t(this.setOnline.bind(this)))}setOnline(t){U(this,cl)!==t&&(he(this,cl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return U(this,cl)}},cl=new WeakMap,Ra=new WeakMap,fl=new WeakMap,g2),kd=new P5;function R5(e){return Math.min(1e3*2**e,3e4)}function QT(e){return(e??"online")==="online"?kd.isOnline():!0}var Dv=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function ZT(e){let t=!1,n=0,r;const a=C5(),i=()=>a.status!=="pending",o=m=>{var b;if(!i()){const g=new Dv(m);h(g),(b=e.onCancel)==null||b.call(e,g)}},l=()=>{t=!0},s=()=>{t=!1},u=()=>KT.isFocused()&&(e.networkMode==="always"||kd.isOnline())&&e.canRun(),d=()=>QT(e.networkMode)&&e.canRun(),f=m=>{i()||(r==null||r(),a.resolve(m))},h=m=>{i()||(r==null||r(),a.reject(m))},p=()=>new Promise(m=>{var b;r=g=>{(i()||u())&&m(g)},(b=e.onPause)==null||b.call(e)}).then(()=>{var m;r=void 0,i()||(m=e.onContinue)==null||m.call(e)}),y=()=>{if(i())return;let m;const b=n===0?e.initialPromise:void 0;try{m=b??e.fn()}catch(g){m=Promise.reject(g)}Promise.resolve(m).then(f).catch(g=>{var O;if(i())return;const S=e.retry??(WT.isServer()?0:3),x=e.retryDelay??R5,v=typeof x=="function"?x(n,g):x,w=S===!0||typeof S=="number"&&n<S||typeof S=="function"&&S(n,g);if(t||!w){h(g);return}n++,(O=e.onFail)==null||O.call(e,n,g),A5(v).then(()=>u()?void 0:p()).then(()=>{t?h(g):y()})})};return{promise:a,status:()=>a.status,cancel:o,continue:()=>(r==null||r(),a),cancelRetry:l,continueRetry:s,canStart:d,start:()=>(d()?y():p().then(y),a)}}var zi,b2,JT=(b2=class{constructor(){we(this,zi)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),S5(this.gcTime)&&he(this,zi,$v.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(WT.isServer()?1/0:5*60*1e3))}clearGcTimeout(){U(this,zi)!==void 0&&($v.clearTimeout(U(this,zi)),he(this,zi,void 0))}},zi=new WeakMap,b2);function D5(e){return{onFetch:(t,n)=>{var d,f,h,p,y;const r=t.options,a=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],o=((y=t.state.data)==null?void 0:y.pageParams)||[];let l={pages:[],pageParams:[]},s=0;const u=async()=>{let m=!1;const b=x=>{N5(x,()=>t.signal,()=>m=!0)},g=XT(t.options,t.fetchOptions),S=async(x,v,w)=>{if(m)return Promise.reject(t.signal.reason);if(v==null&&x.pages.length)return Promise.resolve(x);const j=(()=>{const $={client:t.client,queryKey:t.queryKey,pageParam:v,direction:w?"backward":"forward",meta:t.options.meta};return b($),$})(),_=await g(j),{maxPages:E}=t.options,N=w?T5:_5;return{pages:N(x.pages,_,E),pageParams:N(x.pageParams,v,E)}};if(a&&i.length){const x=a==="backward",v=x?k5:US,w={pages:i,pageParams:o},O=v(r,w);l=await S(w,O,x)}else{const x=e??i.length;do{const v=s===0?o[0]??r.initialPageParam:US(r,l);if(s>0&&v==null)break;l=await S(l,v),s++}while(s<x)}return l};t.options.persister?t.fetchFn=()=>{var m,b;return(b=(m=t.options).persister)==null?void 0:b.call(m,u,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=u}}}function US(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 k5(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 dl,Li,hl,Bn,Bi,_t,bc,Ui,gn,eN,qr,x2,z5=(x2=class extends JT{constructor(t){super();we(this,gn);we(this,dl);we(this,Li);we(this,hl);we(this,Bn);we(this,Bi);we(this,_t);we(this,bc);we(this,Ui);he(this,Ui,!1),he(this,bc,t.defaultOptions),this.setOptions(t.options),this.observers=[],he(this,Bi,t.client),he(this,Bn,U(this,Bi).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,he(this,Li,HS(this.options)),this.state=t.state??U(this,Li),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return U(this,dl)}get promise(){var t;return(t=U(this,_t))==null?void 0:t.promise}setOptions(t){if(this.options={...U(this,bc),...t},t!=null&&t._type&&he(this,dl,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=HS(this.options);n.data!==void 0&&(this.setState(IS(n.data,n.dataUpdatedAt)),he(this,Li,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&U(this,Bn).remove(this)}setData(t,n){const r=E5(this.state.data,t,this.options);return Rt(this,gn,qr).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Rt(this,gn,qr).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=U(this,_t))==null?void 0:r.promise;return(a=U(this,_t))==null||a.cancel(t),n?n.then(ar).catch(ar):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return U(this,Li)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>O5(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===$0||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Pv(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:!w5(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=U(this,_t))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=U(this,_t))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),U(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||(U(this,_t)&&(U(this,Ui)||Rt(this,gn,eN).call(this)?U(this,_t).cancel({revert:!0}):U(this,_t).cancelRetry()),this.scheduleGc()),U(this,Bn).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Rt(this,gn,qr).call(this,{type:"invalidate"})}async fetch(t,n){var u,d,f,h,p,y,m,b,g,S,x;if(this.state.fetchStatus!=="idle"&&((u=U(this,_t))==null?void 0:u.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(U(this,_t))return U(this,_t).continueRetry(),U(this,_t).promise}if(t&&this.setOptions(t),!this.options.queryFn){const v=this.observers.find(w=>w.options.queryFn);v&&this.setOptions(v.options)}const r=new AbortController,a=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(he(this,Ui,!0),r.signal)})},i=()=>{const v=XT(this.options,n),O=(()=>{const j={client:U(this,Bi),queryKey:this.queryKey,meta:this.meta};return a(j),j})();return he(this,Ui,!1),this.options.persister?this.options.persister(v,O,this):v(O)},l=(()=>{const v={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:U(this,Bi),state:this.state,fetchFn:i};return a(v),v})(),s=U(this,dl)==="infinite"?D5(this.options.pages):this.options.behavior;s==null||s.onFetch(l,this),he(this,hl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=l.fetchOptions)==null?void 0:d.meta))&&Rt(this,gn,qr).call(this,{type:"fetch",meta:(f=l.fetchOptions)==null?void 0:f.meta}),he(this,_t,ZT({initialPromise:n==null?void 0:n.initialPromise,fn:l.fetchFn,onCancel:v=>{v instanceof Dv&&v.revert&&this.setState({...U(this,hl),fetchStatus:"idle"}),r.abort()},onFail:(v,w)=>{Rt(this,gn,qr).call(this,{type:"failed",failureCount:v,error:w})},onPause:()=>{Rt(this,gn,qr).call(this,{type:"pause"})},onContinue:()=>{Rt(this,gn,qr).call(this,{type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}));try{const v=await U(this,_t).start();if(v===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(v),(p=(h=U(this,Bn).config).onSuccess)==null||p.call(h,v,this),(m=(y=U(this,Bn).config).onSettled)==null||m.call(y,v,this.state.error,this),v}catch(v){if(v instanceof Dv){if(v.silent)return U(this,_t).promise;if(v.revert){if(this.state.data===void 0)throw v;return this.state.data}}throw Rt(this,gn,qr).call(this,{type:"error",error:v}),(g=(b=U(this,Bn).config).onError)==null||g.call(b,v,this),(x=(S=U(this,Bn).config).onSettled)==null||x.call(S,this.state.data,v,this),v}finally{this.scheduleGc()}}},dl=new WeakMap,Li=new WeakMap,hl=new WeakMap,Bn=new WeakMap,Bi=new WeakMap,_t=new WeakMap,bc=new WeakMap,Ui=new WeakMap,gn=new WeakSet,eN=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},qr=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,...L5(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...IS(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return he(this,hl,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),Yt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),U(this,Bn).notify({query:this,type:"updated",action:t})})},x2);function L5(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:QT(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function IS(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function HS(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 xc,gr,qt,Ii,br,wa,S2,B5=(S2=class extends JT{constructor(t){super();we(this,br);we(this,xc);we(this,gr);we(this,qt);we(this,Ii);he(this,xc,t.client),this.mutationId=t.mutationId,he(this,qt,t.mutationCache),he(this,gr,[]),this.state=t.state||U5(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){U(this,gr).includes(t)||(U(this,gr).push(t),this.clearGcTimeout(),U(this,qt).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){he(this,gr,U(this,gr).filter(n=>n!==t)),this.scheduleGc(),U(this,qt).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){U(this,gr).length||(this.state.status==="pending"?this.scheduleGc():U(this,qt).remove(this))}continue(){var t;return((t=U(this,Ii))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var o,l,s,u,d,f,h,p,y,m,b,g,S,x,v,w,O,j;const n=()=>{Rt(this,br,wa).call(this,{type:"continue"})},r={client:U(this,xc),meta:this.options.meta,mutationKey:this.options.mutationKey};he(this,Ii,ZT({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(_,E)=>{Rt(this,br,wa).call(this,{type:"failed",failureCount:_,error:E})},onPause:()=>{Rt(this,br,wa).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>U(this,qt).canRun(this)}));const a=this.state.status==="pending",i=!U(this,Ii).canStart();try{if(a)n();else{Rt(this,br,wa).call(this,{type:"pending",variables:t,isPaused:i}),U(this,qt).config.onMutate&&await U(this,qt).config.onMutate(t,this,r);const E=await((l=(o=this.options).onMutate)==null?void 0:l.call(o,t,r));E!==this.state.context&&Rt(this,br,wa).call(this,{type:"pending",context:E,variables:t,isPaused:i})}const _=await U(this,Ii).start();return await((u=(s=U(this,qt).config).onSuccess)==null?void 0:u.call(s,_,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,_,t,this.state.context,r)),await((p=(h=U(this,qt).config).onSettled)==null?void 0:p.call(h,_,null,this.state.variables,this.state.context,this,r)),await((m=(y=this.options).onSettled)==null?void 0:m.call(y,_,null,t,this.state.context,r)),Rt(this,br,wa).call(this,{type:"success",data:_}),_}catch(_){try{await((g=(b=U(this,qt).config).onError)==null?void 0:g.call(b,_,t,this.state.context,this,r))}catch(E){Promise.reject(E)}try{await((x=(S=this.options).onError)==null?void 0:x.call(S,_,t,this.state.context,r))}catch(E){Promise.reject(E)}try{await((w=(v=U(this,qt).config).onSettled)==null?void 0:w.call(v,void 0,_,this.state.variables,this.state.context,this,r))}catch(E){Promise.reject(E)}try{await((j=(O=this.options).onSettled)==null?void 0:j.call(O,void 0,_,t,this.state.context,r))}catch(E){Promise.reject(E)}throw Rt(this,br,wa).call(this,{type:"error",error:_}),_}finally{U(this,qt).runNext(this)}}},xc=new WeakMap,gr=new WeakMap,qt=new WeakMap,Ii=new WeakMap,br=new WeakSet,wa=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),Yt.batch(()=>{U(this,gr).forEach(r=>{r.onMutationUpdate(t)}),U(this,qt).notify({mutation:this,type:"updated",action:t})})},S2);function U5(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Vr,ir,Sc,w2,I5=(w2=class extends fp{constructor(t={}){super();we(this,Vr);we(this,ir);we(this,Sc);this.config=t,he(this,Vr,new Set),he(this,ir,new Map),he(this,Sc,0)}build(t,n,r){const a=new B5({client:t,mutationCache:this,mutationId:++Zc(this,Sc)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){U(this,Vr).add(t);const n=gf(t);if(typeof n=="string"){const r=U(this,ir).get(n);r?r.push(t):U(this,ir).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(U(this,Vr).delete(t)){const n=gf(t);if(typeof n=="string"){const r=U(this,ir).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&U(this,ir).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=gf(t);if(typeof n=="string"){const r=U(this,ir).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=gf(t);if(typeof n=="string"){const a=(r=U(this,ir).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(){Yt.batch(()=>{U(this,Vr).forEach(t=>{this.notify({type:"removed",mutation:t})}),U(this,Vr).clear(),U(this,ir).clear()})}getAll(){return Array.from(U(this,Vr))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>zS(n,r))}findAll(t={}){return this.getAll().filter(n=>zS(t,n))}notify(t){Yt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Yt.batch(()=>Promise.all(t.map(n=>n.continue().catch(ar))))}},Vr=new WeakMap,ir=new WeakMap,Sc=new WeakMap,w2);function gf(e){var t;return(t=e.options.scope)==null?void 0:t.id}var xr,O2,H5=(O2=class extends fp{constructor(t={}){super();we(this,xr);this.config=t,he(this,xr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??M0(a,n);let o=this.get(i);return o||(o=new z5({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(o)),o}add(t){U(this,xr).has(t.queryHash)||(U(this,xr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=U(this,xr).get(t.queryHash);n&&(t.destroy(),n===t&&U(this,xr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Yt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return U(this,xr).get(t)}getAll(){return[...U(this,xr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>kS(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>kS(t,r)):n}notify(t){Yt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Yt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Yt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},xr=new WeakMap,O2),rt,Da,ka,pl,ml,za,yl,vl,j2,q5=(j2=class{constructor(e={}){we(this,rt);we(this,Da);we(this,ka);we(this,pl);we(this,ml);we(this,za);we(this,yl);we(this,vl);he(this,rt,e.queryCache||new H5),he(this,Da,e.mutationCache||new I5),he(this,ka,e.defaultOptions||{}),he(this,pl,new Map),he(this,ml,new Map),he(this,za,0)}mount(){Zc(this,za)._++,U(this,za)===1&&(he(this,yl,KT.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,rt).onFocus())})),he(this,vl,kd.subscribe(async e=>{e&&(await this.resumePausedMutations(),U(this,rt).onOnline())})))}unmount(){var e,t;Zc(this,za)._--,U(this,za)===0&&((e=U(this,yl))==null||e.call(this),he(this,yl,void 0),(t=U(this,vl))==null||t.call(this),he(this,vl,void 0))}isFetching(e){return U(this,rt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return U(this,Da).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=U(this,rt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=U(this,rt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Pv(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return U(this,rt).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=U(this,rt).get(r.queryHash),i=a==null?void 0:a.state.data,o=x5(t,i);if(o!==void 0)return U(this,rt).build(this,r).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return Yt.batch(()=>U(this,rt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=U(this,rt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=U(this,rt);Yt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=U(this,rt);return Yt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Yt.batch(()=>U(this,rt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(ar).catch(ar)}invalidateQueries(e,t={}){return Yt.batch(()=>(U(this,rt).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=Yt.batch(()=>U(this,rt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(ar)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(ar)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=U(this,rt).build(this,t);return n.isStaleByTime(Pv(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ar).catch(ar)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ar).catch(ar)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return kd.isOnline()?U(this,Da).resumePausedMutations():Promise.resolve()}getQueryCache(){return U(this,rt)}getMutationCache(){return U(this,Da)}getDefaultOptions(){return U(this,ka)}setDefaultOptions(e){he(this,ka,e)}setQueryDefaults(e,t){U(this,pl).set(ku(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...U(this,pl).values()],n={};return t.forEach(r=>{zu(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){U(this,ml).set(ku(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...U(this,ml).values()],n={};return t.forEach(r=>{zu(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...U(this,ka).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=M0(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===$0&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...U(this,ka).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){U(this,rt).clear(),U(this,Da).clear()}},rt=new WeakMap,Da=new WeakMap,ka=new WeakMap,pl=new WeakMap,ml=new WeakMap,za=new WeakMap,yl=new WeakMap,vl=new WeakMap,j2),F5=A.createContext(void 0),G5=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(F5.Provider,{value:e,children:t}));/**
 * @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=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),tN=(...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 K5={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 Y5=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:o,...l},s)=>A.createElement("svg",{ref:s,...K5,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:tN("lucide",a),...l},[...o.map(([u,d])=>A.createElement(u,d)),...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 re=(e,t)=>{const n=A.forwardRef(({className:r,...a},i)=>A.createElement(Y5,{ref:i,iconNode:t,className:tN(`lucide-${V5(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 X5=re("AppWindow",[["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}],["path",{d:"M10 4v4",key:"pp8u80"}],["path",{d:"M2 8h20",key:"d11cs7"}],["path",{d:"M6 4v4",key:"1svtjw"}]]);/**
 * @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=re("Archive",[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]]);/**
 * @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 Q5=re("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
 * @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=re("ArrowRightLeft",[["path",{d:"m16 3 4 4-4 4",key:"1x1c3m"}],["path",{d:"M20 7H4",key:"zbl0bi"}],["path",{d:"m8 21-4-4 4-4",key:"h9nckh"}],["path",{d:"M4 17h16",key:"g4d7ey"}]]);/**
 * @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=re("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @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 nN=re("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 e4=re("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
 * @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 rN=re("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 t4=re("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
 * @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 n4=re("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @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 r4=re("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["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 a4=re("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
 * @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 i4=re("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 zd=re("Eye",[["path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7-10-7-10-7Z",key:"rwhkz3"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.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 o4=re("FileCheck2",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m3 15 2 2 4-4",key:"1lhrkk"}]]);/**
 * @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 l4=re("FileClock",[["path",{d:"M16 22h2a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"37hlfg"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}],["path",{d:"M9.5 17.5 8 16.25V14",key:"1o80t2"}]]);/**
 * @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 aN=re("FileCode",[["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7z",key:"1mlx9k"}]]);/**
 * @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 iN=re("FileInput",[["path",{d:"M4 22h14a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v4",key:"1pf5j1"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M2 15h10",key:"jfw4w8"}],["path",{d:"m9 18 3-3-3-3",key:"112psh"}]]);/**
 * @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 oN=re("FileSearch",[["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M4.268 21a2 2 0 0 0 1.727 1H18a2 2 0 0 0 2-2V7l-5-5H6a2 2 0 0 0-2 2v3",key:"ms7g94"}],["path",{d:"m9 18-1.5-1.5",key:"1j6qii"}],["circle",{cx:"5",cy:"14",r:"3",key:"ufru5t"}]]);/**
 * @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 lN=re("FileStack",[["path",{d:"M21 7h-3a2 2 0 0 1-2-2V2",key:"9rb54x"}],["path",{d:"M21 6v6.5c0 .8-.7 1.5-1.5 1.5h-7c-.8 0-1.5-.7-1.5-1.5v-9c0-.8.7-1.5 1.5-1.5H17Z",key:"1059l0"}],["path",{d:"M7 8v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H15",key:"16874u"}],["path",{d:"M3 12v8.8c0 .3.2.6.4.8.2.2.5.4.8.4H11",key:"k2ox98"}]]);/**
 * @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 dp=re("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 s4=re("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
 * @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 u4=re("FolderOpen",[["path",{d:"m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2",key:"usdka0"}]]);/**
 * @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 P0=re("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @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 sN=re("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
 * @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 c4=re("History",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M12 7v5l4 2",key:"1fdv2h"}]]);/**
 * @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 hp=re("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
 * @license lucide-react v0.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 uN=re("Inbox",[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]);/**
 * @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 f4=re("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 R0=re("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]);/**
 * @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 d4=re("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 h4=re("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 p4=re("ListChecks",[["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["path",{d:"m3 7 2 2 4-4",key:"1obspn"}],["path",{d:"M13 6h8",key:"15sg57"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 18h8",key:"oe0vm4"}]]);/**
 * @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 cN=re("ListTree",[["path",{d:"M21 12h-8",key:"1bmf0i"}],["path",{d:"M21 6H8",key:"1pqkrb"}],["path",{d:"M21 18h-8",key:"1tm79t"}],["path",{d:"M3 6v4c0 1.1.9 2 2 2h3",key:"1ywdgy"}],["path",{d:"M3 10v6c0 1.1.9 2 2 2h3",key:"2wc746"}]]);/**
 * @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 m4=re("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 D0=re("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
 * @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 fN=re("MessageSquareWarning",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}],["path",{d:"M12 7v2",key:"stiyo7"}],["path",{d:"M12 13h.01",key:"y0uutt"}]]);/**
 * @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 y4=re("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
 * @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 k0=re("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 dN=re("Palette",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
 * @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 ps=re("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
 * @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 v4=re("Percent",[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]]);/**
 * @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 Vt=re("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 g4=re("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
 * @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 b4=re("RotateCcw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/**
 * @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 hN=re("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 x4=re("ScanText",[["path",{d:"M3 7V5a2 2 0 0 1 2-2h2",key:"aa7l1z"}],["path",{d:"M17 3h2a2 2 0 0 1 2 2v2",key:"4qcy5o"}],["path",{d:"M21 17v2a2 2 0 0 1-2 2h-2",key:"6vwrx8"}],["path",{d:"M7 21H5a2 2 0 0 1-2-2v-2",key:"ioqczr"}],["path",{d:"M7 8h8",key:"1jbsf9"}],["path",{d:"M7 12h10",key:"b7w52i"}],["path",{d:"M7 16h6",key:"1vyc9m"}]]);/**
 * @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 pN=re("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
 * @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 kc=re("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @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 S4=re("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 mN=re("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.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 yN=re("Share2",[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]]);/**
 * @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 z0=re("ShieldAlert",[["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:"M12 8v4",key:"1got3b"}],["path",{d:"M12 16h.01",key:"1drbdi"}]]);/**
 * @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 vN=re("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 w4=re("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 gt=re("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @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 O4=re("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 kv=re("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
 * @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 Ht=re("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 j4=re("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/**
 * @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 A4=re("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
 * @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 L0=re("UsersRound",[["path",{d:"M18 21a8 8 0 0 0-16 0",key:"3ypg7q"}],["circle",{cx:"10",cy:"8",r:"5",key:"o932ke"}],["path",{d:"M22 20c0-3.37-2-6.5-4-8a5 5 0 0 0-.45-8.3",key:"10s06x"}]]);/**
 * @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 zv=re("WandSparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/**
 * @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 gN=re("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),qS={SUPERADMIN:4,EDITOR:3,AUTHOR:2,VIEWER:1},FS=["SUPERADMIN","EDITOR","AUTHOR","VIEWER"];function li(){return(localStorage.getItem("cms_role")||"VIEWER").toUpperCase()}function zc(e,t=li()){return(qS[t]||0)>=(qS[e.toUpperCase()]||99)}const Rn=(e=li())=>zc("AUTHOR",e),bN=(e=li())=>zc("EDITOR",e),E4=(e=li())=>zc("SUPERADMIN",e),_4=[{to:"/dashboard",label:"개요",icon:d4},{to:"/contents",label:"콘텐츠",icon:dp},{to:"/media",label:"미디어",icon:hp},{to:"/products",label:"상품 콘텐츠",icon:k0},{to:"/banners",label:"배너/프로모션",icon:D0},{to:"/menus",label:"메뉴/카테고리",icon:cN}],T4=[{to:"/themes",label:"테마/템플릿",icon:dN},{to:"/i18n",label:"다국어",icon:R0},{to:"/seo",label:"SEO",icon:kc},{to:"/forms",label:"폼빌더",icon:iN},{to:"/channels",label:"채널",icon:yN}],N4=[{to:"/ugc",label:"UGC 모더레이션",icon:fN},{to:"/members",label:"회원",icon:L0},{to:"/analytics",label:"콘텐츠 분석",icon:nN},{to:"/ai-tools",label:"AI 도구",icon:gt}],C4=[{to:"/admin/users",label:"사용자/권한",icon:vN,min:"SUPERADMIN"},{to:"/admin/audit",label:"감사 로그",icon:pN,min:"EDITOR"},{to:"/admin/settings",label:"시스템 설정",icon:mN,min:"EDITOR"}],M4=({isActive:e})=>`flex items-center gap-3 px-5 py-2 text-sm transition-colors ${e?"bg-card text-brand border-r-2 border-brand":"text-slate-300 hover:bg-card/60"}`;function bf({title:e,links:t}){return c.jsxs(c.Fragment,{children:[e&&c.jsx("div",{className:"px-5 pt-4 pb-1.5 text-[10px] font-semibold tracking-wider text-slate-500 uppercase",children:e}),t.map(({to:n,label:r,icon:a})=>c.jsxs(GT,{to:n,className:M4,children:[c.jsx(a,{size:17}),r]},n))]})}function $4(){const[e,t]=A.useState(li);A.useEffect(()=>{const r=()=>{const i=li();t(o=>o===i?o:i)},a=window.setInterval(r,800);return window.addEventListener("storage",r),()=>{window.clearInterval(a),window.removeEventListener("storage",r)}},[]);const n=C4.filter(r=>zc(r.min||"VIEWER",e));return c.jsxs("aside",{className:"w-60 bg-panel border-r border-edge flex flex-col",children:[c.jsxs("div",{className:"h-16 flex items-center gap-2 px-5 border-b border-edge",children:[c.jsx(lN,{className:"text-brand",size:24}),c.jsxs("div",{children:[c.jsx("div",{className:"font-bold text-base leading-tight",children:"GUARDiA CMS"}),c.jsx("div",{className:"text-[11px] text-slate-400",children:"콘텐츠 관리 시스템"})]})]}),c.jsxs("nav",{className:"flex-1 py-2 overflow-auto",children:[c.jsx(bf,{links:_4}),c.jsx(bf,{title:"사이트",links:T4}),c.jsx(bf,{title:"참여 · 분석",links:N4}),n.length>0&&c.jsx("div",{className:"border-t border-edge mt-3",children:c.jsx(bf,{title:"관리자",links:n})})]}),c.jsx("div",{className:"p-4 text-[11px] text-slate-500 border-t border-edge",children:"Ollama 온프레미스 · 헤드리스 CMS"})]})}function xN(e,t){return function(){return e.apply(t,arguments)}}const{toString:P4}=Object.prototype,{getPrototypeOf:pp}=Object,{iterator:mp,toStringTag:SN}=Symbol,yp=(e=>t=>{const n=P4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),mr=e=>(e=e.toLowerCase(),t=>yp(t)===e),vp=e=>t=>typeof t===e,{isArray:no}=Array,Nl=vp("undefined");function ms(e){return e!==null&&!Nl(e)&&e.constructor!==null&&!Nl(e.constructor)&&cn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const wN=mr("ArrayBuffer");function R4(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&wN(e.buffer),t}const D4=vp("string"),cn=vp("function"),ON=vp("number"),Lc=e=>e!==null&&typeof e=="object",k4=e=>e===!0||e===!1,ed=e=>{if(yp(e)!=="object")return!1;const t=pp(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(SN in e)&&!(mp in e)},z4=e=>{if(!Lc(e)||ms(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},L4=mr("Date"),B4=mr("File"),U4=e=>!!(e&&typeof e.uri<"u"),I4=e=>e&&typeof e.getParts<"u",H4=mr("Blob"),q4=mr("FileList"),F4=e=>Lc(e)&&cn(e.pipe);function G4(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const GS=G4(),VS=typeof GS.FormData<"u"?GS.FormData:void 0,V4=e=>{if(!e)return!1;if(VS&&e instanceof VS)return!0;const t=pp(e);if(!t||t===Object.prototype||!cn(e.append))return!1;const n=yp(e);return n==="formdata"||n==="object"&&cn(e.toString)&&e.toString()==="[object FormData]"},K4=mr("URLSearchParams"),[Y4,X4,W4,Q4]=["ReadableStream","Request","Response","Headers"].map(mr),Z4=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bc(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),no(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(ms(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 jN(e,t){if(ms(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 Ci=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,AN=e=>!Nl(e)&&e!==Ci;function Lv(...e){const{caseless:t,skipUndefined:n}=AN(this)&&this||{},r={},a=(i,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const l=t&&typeof o=="string"&&jN(r,o)||o,s=Bv(r,l)?r[l]:void 0;ed(s)&&ed(i)?r[l]=Lv(s,i):ed(i)?r[l]=Lv({},i):no(i)?r[l]=i.slice():(!n||!Nl(i))&&(r[l]=i)};for(let i=0,o=e.length;i<o;i++){const l=e[i];if(!l||ms(l)||(Bc(l,a),typeof l!="object"||no(l)))continue;const s=Object.getOwnPropertySymbols(l);for(let u=0;u<s.length;u++){const d=s[u];cz.call(l,d)&&a(l[d],d)}}return r}const J4=(e,t,n,{allOwnKeys:r}={})=>(Bc(t,(a,i)=>{n&&cn(a)?Object.defineProperty(e,i,{__proto__:null,value:xN(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),ez=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),tz=(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)},nz=(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&&pp(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},rz=(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},az=e=>{if(!e)return null;if(no(e))return e;let t=e.length;if(!ON(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},iz=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&pp(Uint8Array)),oz=(e,t)=>{const r=(e&&e[mp]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},lz=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},sz=mr("HTMLFormElement"),uz=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Bv=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:cz}=Object.prototype,fz=mr("RegExp"),EN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bc(n,(a,i)=>{let o;(o=t(a,i,e))!==!1&&(r[i]=o||a)}),Object.defineProperties(e,r)},dz=e=>{EN(e,(t,n)=>{if(cn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(cn(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+"'")})}})},hz=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return no(e)?r(e):r(String(e).split(t)),n},pz=()=>{},mz=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function yz(e){return!!(e&&cn(e.append)&&e[SN]==="FormData"&&e[mp])}const vz=e=>{const t=new WeakSet,n=r=>{if(Lc(r)){if(t.has(r))return;if(ms(r))return r;if(!("toJSON"in r)){t.add(r);const a=no(r)?[]:{};return Bc(r,(i,o)=>{const l=n(i);!Nl(l)&&(a[o]=l)}),t.delete(r),a}}return r};return n(e)},gz=mr("AsyncFunction"),bz=e=>e&&(Lc(e)||cn(e))&&cn(e.then)&&cn(e.catch),_N=((e,t)=>e?setImmediate:t?((n,r)=>(Ci.addEventListener("message",({source:a,data:i})=>{a===Ci&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),Ci.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",cn(Ci.postMessage)),xz=typeof queueMicrotask<"u"?queueMicrotask.bind(Ci):typeof process<"u"&&process.nextTick||_N,Sz=e=>e!=null&&cn(e[mp]),P={isArray:no,isArrayBuffer:wN,isBuffer:ms,isFormData:V4,isArrayBufferView:R4,isString:D4,isNumber:ON,isBoolean:k4,isObject:Lc,isPlainObject:ed,isEmptyObject:z4,isReadableStream:Y4,isRequest:X4,isResponse:W4,isHeaders:Q4,isUndefined:Nl,isDate:L4,isFile:B4,isReactNativeBlob:U4,isReactNative:I4,isBlob:H4,isRegExp:fz,isFunction:cn,isStream:F4,isURLSearchParams:K4,isTypedArray:iz,isFileList:q4,forEach:Bc,merge:Lv,extend:J4,trim:Z4,stripBOM:ez,inherits:tz,toFlatObject:nz,kindOf:yp,kindOfTest:mr,endsWith:rz,toArray:az,forEachEntry:oz,matchAll:lz,isHTMLForm:sz,hasOwnProperty:Bv,hasOwnProp:Bv,reduceDescriptors:EN,freezeMethods:dz,toObjectSet:hz,toCamelCase:uz,noop:pz,toFiniteNumber:mz,findKey:jN,global:Ci,isContextDefined:AN,isSpecCompliantForm:yz,toJSONObject:vz,isAsyncFn:gz,isThenable:bz,setImmediate:_N,asap:xz,isIterable:Sz},wz=P.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"]),Oz=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]&&wz[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function jz(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 Az=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),Ez=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function B0(e,t){return P.isArray(e)?e.map(n=>B0(n,t)):jz(String(e).replace(t,""))}const _z=e=>B0(e,Az),Tz=e=>B0(e,Ez);function TN(e){const t=Object.create(null);return P.forEach(e.toJSON(),(n,r)=>{t[r]=Tz(n)}),t}const KS=Symbol("internals");function zs(e){return e&&String(e).trim().toLowerCase()}function td(e){return e===!1||e==null?e:P.isArray(e)?e.map(td):_z(String(e))}function Nz(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 Cz=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ey(e,t,n,r,a){if(P.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!P.isString(t)){if(P.isString(r))return t.indexOf(r)!==-1;if(P.isRegExp(r))return r.test(t)}}function Mz(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function $z(e,t){const n=P.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 Jt=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(l,s,u){const d=zs(s);if(!d)return;const f=P.findKey(a,d);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||s]=td(l))}const o=(l,s)=>P.forEach(l,(u,d)=>i(u,d,s));if(P.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(P.isString(t)&&(t=t.trim())&&!Cz(t))o(Oz(t),n);else if(P.isObject(t)&&P.isIterable(t)){let l={},s,u;for(const d of t){if(!P.isArray(d))throw new TypeError("Object iterator must return a key-value pair");l[u=d[0]]=(s=l[u])?P.isArray(s)?[...s,d[1]]:[s,d[1]]:d[1]}o(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=zs(t),t){const r=P.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return Nz(a);if(P.isFunction(n))return n.call(this,a,r);if(P.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=zs(t),t){const r=P.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ey(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(o){if(o=zs(o),o){const l=P.findKey(r,o);l&&(!n||ey(r,r[l],l,n))&&(delete r[l],a=!0)}}return P.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||ey(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return P.forEach(this,(a,i)=>{const o=P.findKey(r,i);if(o){n[o]=td(a),delete n[i];return}const l=t?Mz(i):String(i).trim();l!==i&&delete n[i],n[l]=td(a),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return P.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&P.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[KS]=this[KS]={accessors:{}}).accessors,a=this.prototype;function i(o){const l=zs(o);r[l]||($z(a,o),r[l]=!0)}return P.isArray(t)?t.forEach(i):i(t),this}};Jt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);P.reduceDescriptors(Jt.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});P.freezeMethods(Jt);const Pz="[REDACTED ****]";function Rz(e){if(P.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(P.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function Dz(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||P.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof Jt&&(i=i.toJSON()),r.push(i);let o;if(P.isArray(i))o=[],i.forEach((l,s)=>{const u=a(l);P.isUndefined(u)||(o[s]=u)});else{if(!P.isPlainObject(i)&&Rz(i))return r.pop(),i;o=Object.create(null);for(const[l,s]of Object.entries(i)){const u=n.has(l.toLowerCase())?Pz:a(s);P.isUndefined(u)||(o[l]=u)}}return r.pop(),o};return a(e)}let ae=class NN extends Error{static from(t,n,r,a,i,o){const l=new NN(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&&P.hasOwnProp(t,"redact")?t.redact:void 0,r=P.isArray(n)&&n.length>0?Dz(t,n):P.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}}};ae.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ae.ERR_BAD_OPTION="ERR_BAD_OPTION";ae.ECONNABORTED="ECONNABORTED";ae.ETIMEDOUT="ETIMEDOUT";ae.ECONNREFUSED="ECONNREFUSED";ae.ERR_NETWORK="ERR_NETWORK";ae.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ae.ERR_DEPRECATED="ERR_DEPRECATED";ae.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ae.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ae.ERR_CANCELED="ERR_CANCELED";ae.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ae.ERR_INVALID_URL="ERR_INVALID_URL";ae.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const kz=null;function Uv(e){return P.isPlainObject(e)||P.isArray(e)}function CN(e){return P.endsWith(e,"[]")?e.slice(0,-2):e}function ty(e,t,n){return e?e.concat(t).map(function(a,i){return a=CN(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function zz(e){return P.isArray(e)&&!e.some(Uv)}const Lz=P.toFlatObject(P,{},null,function(t){return/^is[A-Z]/.test(t)});function gp(e,t,n){if(!P.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=P.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,g){return!P.isUndefined(g[b])});const r=n.metaTokens,a=n.visitor||f,i=n.dots,o=n.indexes,l=n.Blob||typeof Blob<"u"&&Blob,s=n.maxDepth===void 0?100:n.maxDepth,u=l&&P.isSpecCompliantForm(t);if(!P.isFunction(a))throw new TypeError("visitor must be a function");function d(m){if(m===null)return"";if(P.isDate(m))return m.toISOString();if(P.isBoolean(m))return m.toString();if(!u&&P.isBlob(m))throw new ae("Blob is not supported. Use a Buffer instead.");return P.isArrayBuffer(m)||P.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function f(m,b,g){let S=m;if(P.isReactNative(t)&&P.isReactNativeBlob(m))return t.append(ty(g,b,i),d(m)),!1;if(m&&!g&&typeof m=="object"){if(P.endsWith(b,"{}"))b=r?b:b.slice(0,-2),m=JSON.stringify(m);else if(P.isArray(m)&&zz(m)||(P.isFileList(m)||P.endsWith(b,"[]"))&&(S=P.toArray(m)))return b=CN(b),S.forEach(function(v,w){!(P.isUndefined(v)||v===null)&&t.append(o===!0?ty([b],w,i):o===null?b:b+"[]",d(v))}),!1}return Uv(m)?!0:(t.append(ty(g,b,i),d(m)),!1)}const h=[],p=Object.assign(Lz,{defaultVisitor:f,convertValue:d,isVisitable:Uv});function y(m,b,g=0){if(!P.isUndefined(m)){if(g>s)throw new ae("Object is too deeply nested ("+g+" levels). Max depth: "+s,ae.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(m)!==-1)throw new Error("Circular reference detected in "+b.join("."));h.push(m),P.forEach(m,function(x,v){(!(P.isUndefined(x)||x===null)&&a.call(t,x,P.isString(v)?v.trim():v,b,p))===!0&&y(x,b?b.concat(v):[v],g+1)}),h.pop()}}if(!P.isObject(e))throw new TypeError("data must be an object");return y(e),t}function YS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function U0(e,t){this._pairs=[],e&&gp(e,this,t)}const MN=U0.prototype;MN.append=function(t,n){this._pairs.push([t,n])};MN.toString=function(t){const n=t?function(r){return t.call(this,r,YS)}:YS;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function Bz(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $N(e,t,n){if(!t)return e;const r=n&&n.encode||Bz,a=P.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let o;if(i?o=i(t,a):o=P.isURLSearchParams(t)?t.toString():new U0(t,a).toString(r),o){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class XS{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){P.forEach(this.handlers,function(r){r!==null&&t(r)})}}const I0={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},Uz=typeof URLSearchParams<"u"?URLSearchParams:U0,Iz=typeof FormData<"u"?FormData:null,Hz=typeof Blob<"u"?Blob:null,qz={isBrowser:!0,classes:{URLSearchParams:Uz,FormData:Iz,Blob:Hz},protocols:["http","https","file","blob","url","data"]},H0=typeof window<"u"&&typeof document<"u",Iv=typeof navigator=="object"&&navigator||void 0,Fz=H0&&(!Iv||["ReactNative","NativeScript","NS"].indexOf(Iv.product)<0),Gz=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Vz=H0&&window.location.href||"http://localhost",Kz=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:H0,hasStandardBrowserEnv:Fz,hasStandardBrowserWebWorkerEnv:Gz,navigator:Iv,origin:Vz},Symbol.toStringTag,{value:"Module"})),Bt={...Kz,...qz};function Yz(e,t){return gp(e,new Bt.classes.URLSearchParams,{visitor:function(n,r,a,i){return Bt.isNode&&P.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Xz(e){return P.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Wz(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 PN(e){function t(n,r,a,i){let o=n[i++];if(o==="__proto__")return!0;const l=Number.isFinite(+o),s=i>=n.length;return o=!o&&P.isArray(a)?a.length:o,s?(P.hasOwnProp(a,o)?a[o]=P.isArray(a[o])?a[o].concat(r):[a[o],r]:a[o]=r,!l):((!P.hasOwnProp(a,o)||!P.isObject(a[o]))&&(a[o]=[]),t(n,r,a[o],i)&&P.isArray(a[o])&&(a[o]=Wz(a[o])),!l)}if(P.isFormData(e)&&P.isFunction(e.entries)){const n={};return P.forEachEntry(e,(r,a)=>{t(Xz(r),a,n,0)}),n}return null}const _o=(e,t)=>e!=null&&P.hasOwnProp(e,t)?e[t]:void 0;function Qz(e,t,n){if(P.isString(e))try{return(t||JSON.parse)(e),P.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Uc={transitional:I0,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=P.isObject(t);if(i&&P.isHTMLForm(t)&&(t=new FormData(t)),P.isFormData(t))return a?JSON.stringify(PN(t)):t;if(P.isArrayBuffer(t)||P.isBuffer(t)||P.isStream(t)||P.isFile(t)||P.isBlob(t)||P.isReadableStream(t))return t;if(P.isArrayBufferView(t))return t.buffer;if(P.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){const s=_o(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return Yz(t,s).toString();if((l=P.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=_o(this,"env"),d=u&&u.FormData;return gp(l?{"files[]":t}:t,d&&new d,s)}}return i||a?(n.setContentType("application/json",!1),Qz(t)):t}],transformResponse:[function(t){const n=_o(this,"transitional")||Uc.transitional,r=n&&n.forcedJSONParsing,a=_o(this,"responseType"),i=a==="json";if(P.isResponse(t)||P.isReadableStream(t))return t;if(t&&P.isString(t)&&(r&&!a||i)){const l=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,_o(this,"parseReviver"))}catch(s){if(l)throw s.name==="SyntaxError"?ae.from(s,ae.ERR_BAD_RESPONSE,this,null,_o(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}}};P.forEach(["delete","get","head","post","put","patch","query"],e=>{Uc.headers[e]={}});function ny(e,t){const n=this||Uc,r=t||n,a=Jt.from(r.headers);let i=r.data;return P.forEach(e,function(l){i=l.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function RN(e){return!!(e&&e.__CANCEL__)}let Ic=class extends ae{constructor(t,n,r){super(t??"canceled",ae.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function DN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ae("Request failed with status code "+n.status,n.status>=400&&n.status<500?ae.ERR_BAD_REQUEST:ae.ERR_BAD_RESPONSE,n.config,n.request,n))}function Zz(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function Jz(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(),d=r[i];o||(o=u),n[a]=s,r[a]=u;let f=i,h=0;for(;f!==a;)h+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),u-o<t)return;const p=d&&u-d;return p?Math.round(h*1e3/p):void 0}}function eL(e,t){let n=0,r=1e3/t,a,i;const o=(u,d=Date.now())=>{n=d,a=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?o(u,d):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},r-f)))},()=>a&&o(a)]}const Ld=(e,t,n=3)=>{let r=0;const a=Jz(50,250);return eL(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),d=a(u);r=Math.max(r,s);const f={loaded:s,total:l,progress:l?s/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l?(l-s)/d:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(f)},n)},WS=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},QS=e=>(...t)=>P.asap(()=>e(...t)),tL=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,nL=Bt.hasStandardBrowserEnv?{write(e,t,n,r,a,i,o){if(typeof document>"u")return;const l=[`${e}=${encodeURIComponent(t)}`];P.isNumber(n)&&l.push(`expires=${new Date(n).toUTCString()}`),P.isString(r)&&l.push(`path=${r}`),P.isString(a)&&l.push(`domain=${a}`),i===!0&&l.push("secure"),P.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 rL(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function aL(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kN(e,t,n){let r=!rL(t);return e&&(r||n===!1)?aL(e,t):t}const ZS=e=>e instanceof Jt?{...e}:e;function ro(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(u,d,f,h){return P.isPlainObject(u)&&P.isPlainObject(d)?P.merge.call({caseless:h},u,d):P.isPlainObject(d)?P.merge({},d):P.isArray(d)?d.slice():d}function a(u,d,f,h){if(P.isUndefined(d)){if(!P.isUndefined(u))return r(void 0,u,f,h)}else return r(u,d,f,h)}function i(u,d){if(!P.isUndefined(d))return r(void 0,d)}function o(u,d){if(P.isUndefined(d)){if(!P.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function l(u,d,f){if(P.hasOwnProp(t,f))return r(u,d);if(P.hasOwnProp(e,f))return r(void 0,u)}const s={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:l,headers:(u,d,f)=>a(ZS(u),ZS(d),f,!0)};return P.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=P.hasOwnProp(s,d)?s[d]:a,h=P.hasOwnProp(e,d)?e[d]:void 0,p=P.hasOwnProp(t,d)?t[d]:void 0,y=f(h,p,d);P.isUndefined(y)&&f!==l||(n[d]=y)}),n}const iL=["content-type","content-length"];function oL(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{iL.includes(r.toLowerCase())&&e.set(r,a)})}const lL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function zN(e){const t=ro({},e),n=h=>P.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"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=l=Jt.from(l),t.url=$N(kN(u,f,d),n("params"),n("paramsSerializer")),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?lL(s.password):""))),P.isFormData(r)&&(Bt.hasStandardBrowserEnv||Bt.hasStandardBrowserWebWorkerEnv||P.isReactNative(r)?l.setContentType(void 0):P.isFunction(r.getHeaders)&&oL(l,r.getHeaders(),n("formDataHeaderPolicy"))),Bt.hasStandardBrowserEnv&&(P.isFunction(a)&&(a=a(t)),a===!0||a==null&&tL(t.url))){const p=i&&o&&nL.read(o);p&&l.set(i,p)}return t}const sL=typeof XMLHttpRequest<"u",uL=sL&&function(e){return new Promise(function(n,r){const a=zN(e);let i=a.data;const o=Jt.from(a.headers).normalize();let{responseType:l,onUploadProgress:s,onDownloadProgress:u}=a,d,f,h,p,y;function m(){p&&p(),y&&y(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let b=new XMLHttpRequest;b.open(a.method.toUpperCase(),a.url,!0),b.timeout=a.timeout;function g(){if(!b)return;const x=Jt.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),w={data:!l||l==="text"||l==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:x,config:e,request:b};DN(function(j){n(j),m()},function(j){r(j),m()},w),b=null}"onloadend"in b?b.onloadend=g:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(g)},b.onabort=function(){b&&(r(new ae("Request aborted",ae.ECONNABORTED,e,b)),m(),b=null)},b.onerror=function(v){const w=v&&v.message?v.message:"Network Error",O=new ae(w,ae.ERR_NETWORK,e,b);O.event=v||null,r(O),m(),b=null},b.ontimeout=function(){let v=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const w=a.transitional||I0;a.timeoutErrorMessage&&(v=a.timeoutErrorMessage),r(new ae(v,w.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,b)),m(),b=null},i===void 0&&o.setContentType(null),"setRequestHeader"in b&&P.forEach(TN(o),function(v,w){b.setRequestHeader(w,v)}),P.isUndefined(a.withCredentials)||(b.withCredentials=!!a.withCredentials),l&&l!=="json"&&(b.responseType=a.responseType),u&&([h,y]=Ld(u,!0),b.addEventListener("progress",h)),s&&b.upload&&([f,p]=Ld(s),b.upload.addEventListener("progress",f),b.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=x=>{b&&(r(!x||x.type?new Ic(null,e,b):x),b.abort(),m(),b=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const S=Zz(a.url);if(S&&!Bt.protocols.includes(S)){r(new ae("Unsupported protocol "+S+":",ae.ERR_BAD_REQUEST,e));return}b.send(i||null)})},cL=(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 ae?u:new Ic(u instanceof Error?u.message:u))}};let i=t&&setTimeout(()=>{i=null,a(new ae(`timeout of ${t}ms exceeded`,ae.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=()=>P.asap(o),l},fL=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},dL=async function*(e,t){for await(const n of hL(e))yield*fL(n,t)},hL=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()}},JS=(e,t,n,r)=>{const a=dL(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:d}=await a.next();if(u){l(),s.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}s.enqueue(new Uint8Array(d))}catch(u){throw l(u),u}},cancel(s){return l(s),a.return()}},{highWaterMark:2})};function pL(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 y=r.charCodeAt(p+1),m=r.charCodeAt(p+2);(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(o-=2,p+=2)}let s=0,u=l-1;const d=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--):d(u)&&(s++,u-=3)),s===1&&u>=0&&(r.charCodeAt(u)===61||d(u))&&s++;const h=Math.floor(o/4)*3-(s||0);return h>0?h:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let i=0;for(let o=0,l=r.length;o<l;o++){const s=r.charCodeAt(o);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 q0="1.17.0",ew=64*1024,{isFunction:xf}=P,mL=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),tw=e=>{if(!P.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},nw=(e,...t)=>{try{return!!e(...t)}catch{return!1}},yL=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},vL=e=>{const t=P.global!==void 0&&P.global!==null?P.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=P.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:o}=e,l=a?xf(a):typeof fetch=="function",s=xf(i),u=xf(o);if(!l)return!1;const d=l&&xf(n),f=l&&(typeof r=="function"?(g=>S=>g.encode(S))(new r):async g=>new Uint8Array(await new i(g).arrayBuffer())),h=s&&d&&nw(()=>{let g=!1;const S=new i(Bt.origin,{body:new n,method:"POST",get duplex(){return g=!0,"half"}}),x=S.headers.has("Content-Type");return S.body!=null&&S.body.cancel(),g&&!x}),p=u&&d&&nw(()=>P.isReadableStream(new o("").body)),y={stream:p&&(g=>g.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!y[g]&&(y[g]=(S,x)=>{let v=S&&S[g];if(v)return v.call(S);throw new ae(`Response type '${g}' is not supported`,ae.ERR_NOT_SUPPORT,x)})});const m=async g=>{if(g==null)return 0;if(P.isBlob(g))return g.size;if(P.isSpecCompliantForm(g))return(await new i(Bt.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(P.isArrayBufferView(g)||P.isArrayBuffer(g))return g.byteLength;if(P.isURLSearchParams(g)&&(g=g+""),P.isString(g))return(await f(g)).byteLength},b=async(g,S)=>{const x=P.toFiniteNumber(g.getContentLength());return x??m(S)};return async g=>{let{url:S,method:x,data:v,signal:w,cancelToken:O,timeout:j,onDownloadProgress:_,onUploadProgress:E,responseType:N,headers:$,withCredentials:C="same-origin",fetchOptions:L,maxContentLength:k,maxBodyLength:R}=zN(g);const M=P.isNumber(k)&&k>-1,z=P.isNumber(R)&&R>-1,B=D=>P.hasOwnProp(g,D)?g[D]:void 0;let F=a||fetch;N=N?(N+"").toLowerCase():"text";let V=cL([w,O&&O.toAbortSignal()],j),ee=null;const X=V&&V.unsubscribe&&(()=>{V.unsubscribe()});let ie;try{let D;const W=B("auth");if(W){const Z=W.username||"",q=W.password||"";D={username:Z,password:q}}if(yL(S)){const Z=new URL(S,Bt.origin);if(!D&&(Z.username||Z.password)){const q=tw(Z.username),Ce=tw(Z.password);D={username:q,password:Ce}}(Z.username||Z.password)&&(Z.username="",Z.password="",S=Z.href)}if(D&&($.delete("authorization"),$.set("Authorization","Basic "+btoa(mL((D.username||"")+":"+(D.password||""))))),M&&typeof S=="string"&&S.startsWith("data:")&&pL(S)>k)throw new ae("maxContentLength size of "+k+" exceeded",ae.ERR_BAD_RESPONSE,g,ee);if(z&&x!=="get"&&x!=="head"){const Z=await b($,v);if(typeof Z=="number"&&isFinite(Z)&&Z>R)throw new ae("Request body larger than maxBodyLength limit",ae.ERR_BAD_REQUEST,g,ee)}if(E&&h&&x!=="get"&&x!=="head"&&(ie=await b($,v))!==0){let Z=new i(S,{method:"POST",body:v,duplex:"half"}),q;if(P.isFormData(v)&&(q=Z.headers.get("content-type"))&&$.setContentType(q),Z.body){const[Ce,ge]=WS(ie,Ld(QS(E)));v=JS(Z.body,ew,Ce,ge)}}P.isString(C)||(C=C?"include":"omit");const se=s&&"credentials"in i.prototype;if(P.isFormData(v)){const Z=$.getContentType();Z&&/^multipart\/form-data/i.test(Z)&&!/boundary=/i.test(Z)&&$.delete("content-type")}$.set("User-Agent","axios/"+q0,!1);const fe={...L,signal:V,method:x.toUpperCase(),headers:TN($.normalize()),body:v,duplex:"half",credentials:se?C:void 0};ee=s&&new i(S,fe);let qe=await(s?F(ee,L):F(S,fe));if(M){const Z=P.toFiniteNumber(qe.headers.get("content-length"));if(Z!=null&&Z>k)throw new ae("maxContentLength size of "+k+" exceeded",ae.ERR_BAD_RESPONSE,g,ee)}const J=p&&(N==="stream"||N==="response");if(p&&qe.body&&(_||M||J&&X)){const Z={};["status","statusText","headers"].forEach(ft=>{Z[ft]=qe[ft]});const q=P.toFiniteNumber(qe.headers.get("content-length")),[Ce,ge]=_&&WS(q,Ld(QS(_),!0))||[];let tt=0;const ot=ft=>{if(M&&(tt=ft,tt>k))throw new ae("maxContentLength size of "+k+" exceeded",ae.ERR_BAD_RESPONSE,g,ee);Ce&&Ce(ft)};qe=new o(JS(qe.body,ew,ot,()=>{ge&&ge(),X&&X()}),Z)}N=N||"text";let le=await y[P.findKey(y,N)||"text"](qe,g);if(M&&!p&&!J){let Z;if(le!=null&&(typeof le.byteLength=="number"?Z=le.byteLength:typeof le.size=="number"?Z=le.size:typeof le=="string"&&(Z=typeof r=="function"?new r().encode(le).byteLength:le.length)),typeof Z=="number"&&Z>k)throw new ae("maxContentLength size of "+k+" exceeded",ae.ERR_BAD_RESPONSE,g,ee)}return!J&&X&&X(),await new Promise((Z,q)=>{DN(Z,q,{data:le,headers:Jt.from(qe.headers),status:qe.status,statusText:qe.statusText,config:g,request:ee})})}catch(D){if(X&&X(),V&&V.aborted&&V.reason instanceof ae){const W=V.reason;throw W.config=g,ee&&(W.request=ee),D!==W&&(W.cause=D),W}throw D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,g,ee,D&&D.response),{cause:D.cause||D}):ae.from(D,D&&D.code,g,ee,D&&D.response)}}},gL=new Map,LN=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,d=gL;for(;l--;)s=i[l],u=d.get(s),u===void 0&&d.set(s,u=l?new Map:vL(t)),d=u;return u};LN();const F0={http:kz,xhr:uL,fetch:{get:LN}};P.forEach(F0,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const rw=e=>`- ${e}`,bL=e=>P.isFunction(e)||e===null||e===!1;function xL(e,t){e=P.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,!bL(r)&&(a=F0[(l=String(r)).toLowerCase()],a===void 0))throw new ae(`Unknown adapter '${l}'`);if(a&&(P.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(rw).join(`
`):" "+rw(o[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return a}const BN={getAdapter:xL,adapters:F0};function ry(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ic(null,e)}function aw(e){return ry(e),e.headers=Jt.from(e.headers),e.data=ny.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),BN.getAdapter(e.adapter||Uc.adapter,e)(e).then(function(r){ry(e),e.response=r;try{r.data=ny.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=Jt.from(r.headers),r},function(r){if(!RN(r)&&(ry(e),r&&r.response)){e.response=r.response;try{r.response.data=ny.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=Jt.from(r.response.headers)}return Promise.reject(r)})}const bp={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{bp[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const iw={};bp.transitional=function(t,n,r){function a(i,o){return"[Axios v"+q0+"] Transitional option '"+i+"'"+o+(r?". "+r:"")}return(i,o,l)=>{if(t===!1)throw new ae(a(o," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!iw[o]&&(iw[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}};bp.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function SL(e,t,n){if(typeof e!="object")throw new ae("options must be an object",ae.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 ae("option "+i+" must be "+s,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}}const nd={assertOptions:SL,validators:bp},an=nd.validators;let Ki=class{constructor(t){this.defaults=t||{},this.interceptors={request:new XS,response:new XS}}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=ro(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&nd.assertOptions(r,{silentJSONParsing:an.transitional(an.boolean),forcedJSONParsing:an.transitional(an.boolean),clarifyTimeoutError:an.transitional(an.boolean),legacyInterceptorReqResOrdering:an.transitional(an.boolean),advertiseZstdAcceptEncoding:an.transitional(an.boolean)},!1),a!=null&&(P.isFunction(a)?n.paramsSerializer={serialize:a}:nd.assertOptions(a,{encode:an.function,serialize:an.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),nd.assertOptions(n,{baseUrl:an.spelling("baseURL"),withXsrfToken:an.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=i&&P.merge(i.common,i[n.method]);i&&P.forEach(["delete","get","head","post","put","patch","query","common"],y=>{delete i[y]}),n.headers=Jt.concat(o,i);const l=[];let s=!0;this.interceptors.request.forEach(function(m){if(typeof m.runWhen=="function"&&m.runWhen(n)===!1)return;s=s&&m.synchronous;const b=n.transitional||I0;b&&b.legacyInterceptorReqResOrdering?l.unshift(m.fulfilled,m.rejected):l.push(m.fulfilled,m.rejected)});const u=[];this.interceptors.response.forEach(function(m){u.push(m.fulfilled,m.rejected)});let d,f=0,h;if(!s){const y=[aw.bind(this),void 0];for(y.unshift(...l),y.push(...u),h=y.length,d=Promise.resolve(n);f<h;)d=d.then(y[f++],y[f++]);return d}h=l.length;let p=n;for(;f<h;){const y=l[f++],m=l[f++];try{p=y(p)}catch(b){m.call(this,b);break}}try{d=aw.call(this,p)}catch(y){return Promise.reject(y)}for(f=0,h=u.length;f<h;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=ro(this.defaults,t);const n=kN(t.baseURL,t.url,t.allowAbsoluteUrls);return $N(n,t.params,t.paramsSerializer)}};P.forEach(["delete","get","head","options"],function(t){Ki.prototype[t]=function(n,r){return this.request(ro(r||{},{method:t,url:n,data:(r||{}).data}))}});P.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,o,l){return this.request(ro(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Ki.prototype[t]=n(),t!=="query"&&(Ki.prototype[t+"Form"]=n(!0))});let wL=class UN{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 Ic(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 UN(function(a){t=a}),cancel:t}}};function OL(e){return function(n){return e.apply(null,n)}}function jL(e){return P.isObject(e)&&e.isAxiosError===!0}const Hv={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(Hv).forEach(([e,t])=>{Hv[t]=e});function IN(e){const t=new Ki(e),n=xN(Ki.prototype.request,t);return P.extend(n,Ki.prototype,t,{allOwnKeys:!0}),P.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return IN(ro(e,a))},n}const ct=IN(Uc);ct.Axios=Ki;ct.CanceledError=Ic;ct.CancelToken=wL;ct.isCancel=RN;ct.VERSION=q0;ct.toFormData=gp;ct.AxiosError=ae;ct.Cancel=ct.CanceledError;ct.all=function(t){return Promise.all(t)};ct.spread=OL;ct.isAxiosError=jL;ct.mergeConfig=ro;ct.AxiosHeaders=Jt;ct.formToJSON=e=>PN(P.isHTMLForm(e)?new FormData(e):e);ct.getAdapter=BN.getAdapter;ct.HttpStatusCode=Hv;ct.default=ct;const{Axios:nde,AxiosError:rde,CanceledError:ade,isCancel:ide,CancelToken:ode,VERSION:lde,all:sde,Cancel:ude,isAxiosError:cde,spread:fde,toFormData:dde,AxiosHeaders:hde,HttpStatusCode:pde,formToJSON:mde,getAdapter:yde,mergeConfig:vde,create:gde}=ct,G=ct.create({baseURL:"http://localhost:8012"});G.interceptors.request.use(e=>{const t=localStorage.getItem("cms_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("cms_token"),location.pathname!=="/login"&&(location.href="/login")),Promise.reject(e)});const te=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),vo=e=>{const t=new URLSearchParams;Object.entries(e).forEach(([r,a])=>{a!=null&&a!==""&&t.set(r,String(a))});const n=t.toString();return n?`?${n}`:""},AL=(e,t)=>G.post("/api/cms/auth/login",{username:e,password:t}),HN=()=>G.get("/api/cms/auth/me"),EL=()=>te(G.get("/api/cms/dashboard/summary")),_L=()=>te(G.get("/api/cms/dashboard/workflow")),TL=()=>te(G.get("/api/cms/dashboard/top-content")),NL=(e={})=>te(G.get(`/api/cms/content${vo(e)}`)),CL=e=>te(G.get(`/api/cms/content/${e}`)),ML=e=>te(G.get(`/api/cms/content/${e}/versions`)),$L=e=>te(G.post("/api/cms/content",e)),PL=(e,t)=>te(G.put(`/api/cms/content/${e}`,t)),RL=e=>G.delete(`/api/cms/content/${e}`),ow=(e,t)=>te(G.post(`/api/cms/content/${e}/transition`,t)),DL=(e,t)=>te(G.post(`/api/cms/content/${e}/rollback`,{version:t})),kL=(e={})=>te(G.get(`/api/cms/product${vo(e)}`)),zL=e=>te(G.get(`/api/cms/product/${e}`)),LL=e=>te(G.post("/api/cms/product",e)),BL=(e,t)=>te(G.put(`/api/cms/product/${e}`,t)),UL=e=>te(G.post(`/api/cms/product/${e}/publish`)),IL=(e,t)=>te(G.post("/api/cms/product/ai-draft",{topic:e,tone:t})),HL=e=>te(G.get(`/api/cms/product/ocr-extract/${e}`)),qL=e=>G.delete(`/api/cms/product/${e}`),FL=(e={})=>te(G.get(`/api/cms/banner${vo(e)}`)),GL=e=>te(G.post("/api/cms/banner",e)),VL=(e,t)=>te(G.put(`/api/cms/banner/${e}`,t)),KL=e=>G.delete(`/api/cms/banner/${e}`),YL=(e={})=>te(G.get(`/api/cms/media${vo(e)}`)),XL=e=>te(G.post("/api/cms/media",e)),WL=(e,t)=>te(G.post(`/api/cms/media/${e}/auto-tag`,{imageBase64:t})),QL=(e,t)=>te(G.put(`/api/cms/media/${e}/meta`,t)),ZL=e=>G.delete(`/api/cms/media/${e}`),JL=(e="")=>te(G.get(`/api/cms/menu${e?`?menuType=${e}`:""}`)),e6=(e="")=>te(G.get(`/api/cms/menu/tree${e?`?menuType=${e}`:""}`)),t6=e=>te(G.post("/api/cms/menu",e)),n6=(e,t)=>te(G.put(`/api/cms/menu/${e}`,t)),r6=e=>G.delete(`/api/cms/menu/${e}`),a6=(e="")=>te(G.get(`/api/cms/menu/sitemap${e?`?baseUrl=${encodeURIComponent(e)}`:""}`)),i6=()=>te(G.get("/api/cms/theme")),o6=e=>te(G.post("/api/cms/theme",e)),l6=(e,t)=>te(G.put(`/api/cms/theme/${e}`,t)),s6=e=>te(G.post(`/api/cms/theme/${e}/activate`)),u6=e=>G.delete(`/api/cms/theme/${e}`),c6=()=>te(G.get("/api/cms/i18n/locales")),f6=(e="")=>te(G.get(`/api/cms/i18n/resources${e?`?locale=${e}`:""}`)),d6=e=>te(G.post("/api/cms/i18n/resources",e)),h6=e=>G.delete(`/api/cms/i18n/resources/${e}`),p6=(e,t)=>te(G.post("/api/cms/i18n/translate",{text:e,targetLocale:t})),m6=(e,t)=>te(G.post("/api/cms/i18n/translate-batch",{sourceLocale:e,targetLocale:t})),y6=()=>te(G.get("/api/cms/seo/meta")),v6=e=>te(G.post("/api/cms/seo/meta",e)),g6=(e,t)=>te(G.put(`/api/cms/seo/meta/${e}`,t)),b6=e=>G.delete(`/api/cms/seo/meta/${e}`),x6=()=>te(G.get("/api/cms/seo/redirect")),S6=e=>te(G.post("/api/cms/seo/redirect",e)),w6=e=>G.delete(`/api/cms/seo/redirect/${e}`),O6=(e="")=>te(G.get(`/api/cms/seo/robots${e?`?baseUrl=${encodeURIComponent(e)}`:""}`)),j6=(e,t)=>te(G.post("/api/cms/seo/ai-suggest",{title:e,body:t})),A6=()=>te(G.get("/api/cms/form")),E6=e=>te(G.post("/api/cms/form",e)),_6=(e,t)=>te(G.put(`/api/cms/form/${e}`,t)),T6=e=>G.delete(`/api/cms/form/${e}`),N6=(e,t=!1)=>te(G.get(`/api/cms/form/${e}/submissions${t?"?includeSpam=true":""}`)),C6=()=>te(G.get("/api/cms/channel")),M6=e=>te(G.post("/api/cms/channel",e)),$6=(e,t)=>te(G.put(`/api/cms/channel/${e}`,t)),P6=e=>G.delete(`/api/cms/channel/${e}`),R6=(e={})=>te(G.get(`/api/cms/ugc${vo(e)}`)),D6=()=>te(G.get("/api/cms/ugc/queue")),lw=(e,t,n="")=>te(G.put(`/api/cms/ugc/${e}/moderate`,{status:t,reason:n})),k6=e=>te(G.get(`/api/cms/ugc/review-summary${e?`?targetRef=${encodeURIComponent(e)}`:""}`)),z6=e=>G.delete(`/api/cms/ugc/${e}`),L6=(e={})=>te(G.get(`/api/cms/member${vo(e)}`)),B6=e=>te(G.post("/api/cms/member",e)),U6=(e,t)=>te(G.put(`/api/cms/member/${e}`,t)),I6=e=>te(G.get(`/api/cms/member/${e}/crm-insight`)),H6=e=>G.delete(`/api/cms/member/${e}`),q6=(e=10)=>te(G.get(`/api/cms/analytics/top?limit=${e}`)),F6=()=>te(G.get("/api/cms/analytics/summary")),qN=()=>te(G.get("/api/cms/ai/status")),FN=(e,t,n)=>te(G.post("/api/cms/ai/draft",{kind:e,topic:t,tone:n})),GN=(e,t)=>te(G.post("/api/cms/ai/seo",{title:e,body:t})),G6=(e,t)=>te(G.post("/api/cms/ai/translate",{text:e,targetLocale:t})),V6=e=>te(G.post("/api/cms/ai/review-summary",{reviews:e})),K6=e=>te(G.post("/api/cms/ai/search-keywords",{query:e})),Y6=e=>te(G.post("/api/cms/ai/moderate",{text:e})),X6=()=>G.get("/api/admin/users"),W6=e=>G.post("/api/admin/users",e),Q6=(e,t)=>G.put(`/api/admin/users/${e}/role`,{role:t}),Z6=(e,t)=>G.put(`/api/admin/users/${e}/active`,{active:t}),J6=(e,t)=>G.put(`/api/admin/users/${e}/password`,{password:t}),eB=e=>G.delete(`/api/admin/users/${e}`),tB=(e="",t="",n=100)=>G.get(`/api/admin/audit${vo({action:e,actor:t,limit:n})}`),nB=()=>G.get("/api/admin/settings"),rB=(e,t)=>G.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t});function aB(){const e=hs(),t=localStorage.getItem("cms_user")||"admin",n=localStorage.getItem("cms_role")||"",[r,a]=A.useState(null);A.useEffect(()=>{qN().then(o=>a(!!(o!=null&&o.ollamaAvailable))).catch(()=>a(!1))},[]);const i=()=>{localStorage.removeItem("cms_token"),localStorage.removeItem("cms_role"),localStorage.removeItem("cms_user"),e("/login")};return c.jsxs("header",{className:"h-16 bg-panel border-b border-edge flex items-center justify-between px-6",children:[c.jsx("div",{className:"text-sm text-slate-400",children:"AI 콘텐츠 관리 시스템 · 헤드리스 CMS · Ollama 온프레미스"}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsxs("span",{className:`flex items-center gap-1.5 text-xs px-2 py-1 rounded-md border ${r?"text-accent border-accent/30 bg-accent/10":"text-slate-400 border-edge bg-card"}`,children:[c.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${r?"bg-accent":"bg-slate-500"}`}),"AI ",r===null?"확인 중":r?"온라인":"폴백"]}),c.jsxs("span",{className:"flex items-center gap-1.5 text-sm text-slate-300",children:[c.jsx(a4,{size:18})," ",t,n&&c.jsxs("span",{className:"text-[11px] text-slate-500",children:["(",n,")"]})]}),c.jsxs("button",{onClick:i,className:"flex items-center gap-1.5 text-sm text-slate-400 hover:text-brand",children:[c.jsx(m4,{size:16})," 로그아웃"]})]})]})}function iB(){const e=localStorage.getItem("cms_token");return A.useEffect(()=>{e&&HN().then(t=>{var r;const n=((r=t.data)==null?void 0:r.data)||{};n.role&&localStorage.setItem("cms_role",n.role),n.username&&localStorage.setItem("cms_user",n.username)}).catch(()=>{})},[e]),e?c.jsxs("div",{className:"flex h-screen bg-ink",children:[c.jsx($4,{}),c.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[c.jsx(aB,{}),c.jsx("main",{className:"flex-1 overflow-auto p-6",children:c.jsx(Rk,{})})]})]}):c.jsx(HT,{to:"/login",replace:!0})}function ay({min:e,children:t}){const[n,r]=A.useState(li());return A.useEffect(()=>{const a=window.setInterval(()=>{const i=li();r(o=>o===i?o:i)},500);return()=>window.clearInterval(a)},[]),zc(e,n)?c.jsx(c.Fragment,{children:t}):c.jsxs("div",{className:"flex flex-col items-center justify-center h-full text-center",children:[c.jsx(z0,{size:48,className:"text-rose-400 mb-4"}),c.jsx("h2",{className:"text-lg font-bold mb-1",children:"접근 권한이 없습니다"}),c.jsxs("p",{className:"text-sm text-slate-400",children:["이 화면은 ",c.jsx("b",{className:"text-brand",children:e})," 이상 권한이 필요합니다. (현재: ",n,")"]})]})}function oB(){const[e,t]=A.useState("admin"),[n,r]=A.useState(""),[a,i]=A.useState(""),[o,l]=A.useState(!1),s=hs(),u=async d=>{var f,h,p;d.preventDefault(),i(""),l(!0);try{const m=(h=(f=(await AL(e,n)).data)==null?void 0:f.data)==null?void 0:h.token;if(!m)throw new Error("no token");localStorage.setItem("cms_token",m);try{const g=((p=(await HN()).data)==null?void 0:p.data)||{};g.role&&localStorage.setItem("cms_role",g.role),g.username&&localStorage.setItem("cms_user",g.username)}catch{}s("/dashboard")}catch{i("로그인 실패 — 아이디/비밀번호를 확인하세요.")}finally{l(!1)}};return c.jsx("div",{className:"min-h-screen flex items-center justify-center bg-ink",children:c.jsxs("form",{onSubmit:u,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[c.jsxs("div",{className:"flex items-center gap-2 justify-center mb-6",children:[c.jsx(lN,{className:"text-brand",size:28}),c.jsx("span",{className:"text-xl font-bold",children:"GUARDiA CMS"})]}),c.jsx("p",{className:"text-center text-sm text-slate-400 mb-6",children:"AI 콘텐츠 관리 시스템"}),c.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"아이디"}),c.jsx("input",{value:e,onChange:d=>t(d.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),c.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"비밀번호"}),c.jsx("input",{type:"password",value:n,onChange:d=>r(d.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),a&&c.jsx("p",{className:"text-rose-400 text-xs mb-3",children:a}),c.jsx("button",{disabled:o,className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90 disabled:opacity-60",children:o?"로그인 중…":"로그인"}),c.jsx("p",{className:"text-center text-[11px] text-slate-500 mt-4",children:"admin / editor / author · admin123"})]})})}function VN(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=VN(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=VN(e))&&(r&&(r+=" "),r+=t);return r}var lB=Array.isArray,hn=lB,sB=typeof Jc=="object"&&Jc&&Jc.Object===Object&&Jc,KN=sB,uB=KN,cB=typeof self=="object"&&self&&self.Object===Object&&self,fB=uB||cB||Function("return this")(),Dr=fB,dB=Dr,hB=dB.Symbol,Hc=hB,sw=Hc,YN=Object.prototype,pB=YN.hasOwnProperty,mB=YN.toString,Ls=sw?sw.toStringTag:void 0;function yB(e){var t=pB.call(e,Ls),n=e[Ls];try{e[Ls]=void 0;var r=!0}catch{}var a=mB.call(e);return r&&(t?e[Ls]=n:delete e[Ls]),a}var vB=yB,gB=Object.prototype,bB=gB.toString;function xB(e){return bB.call(e)}var SB=xB,uw=Hc,wB=vB,OB=SB,jB="[object Null]",AB="[object Undefined]",cw=uw?uw.toStringTag:void 0;function EB(e){return e==null?e===void 0?AB:jB:cw&&cw in Object(e)?wB(e):OB(e)}var ya=EB;function _B(e){return e!=null&&typeof e=="object"}var va=_B,TB=ya,NB=va,CB="[object Symbol]";function MB(e){return typeof e=="symbol"||NB(e)&&TB(e)==CB}var ys=MB,$B=hn,PB=ys,RB=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,DB=/^\w*$/;function kB(e,t){if($B(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||PB(e)?!0:DB.test(e)||!RB.test(e)||t!=null&&e in Object(t)}var G0=kB;function zB(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ci=zB;const vs=Ne(ci);var LB=ya,BB=ci,UB="[object AsyncFunction]",IB="[object Function]",HB="[object GeneratorFunction]",qB="[object Proxy]";function FB(e){if(!BB(e))return!1;var t=LB(e);return t==IB||t==HB||t==UB||t==qB}var V0=FB;const ce=Ne(V0);var GB=Dr,VB=GB["__core-js_shared__"],KB=VB,iy=KB,fw=function(){var e=/[^.]+$/.exec(iy&&iy.keys&&iy.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function YB(e){return!!fw&&fw in e}var XB=YB,WB=Function.prototype,QB=WB.toString;function ZB(e){if(e!=null){try{return QB.call(e)}catch{}try{return e+""}catch{}}return""}var XN=ZB,JB=V0,e8=XB,t8=ci,n8=XN,r8=/[\\^$.*+?()[\]{}|]/g,a8=/^\[object .+?Constructor\]$/,i8=Function.prototype,o8=Object.prototype,l8=i8.toString,s8=o8.hasOwnProperty,u8=RegExp("^"+l8.call(s8).replace(r8,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function c8(e){if(!t8(e)||e8(e))return!1;var t=JB(e)?u8:a8;return t.test(n8(e))}var f8=c8;function d8(e,t){return e==null?void 0:e[t]}var h8=d8,p8=f8,m8=h8;function y8(e,t){var n=m8(e,t);return p8(n)?n:void 0}var go=y8,v8=go,g8=v8(Object,"create"),xp=g8,dw=xp;function b8(){this.__data__=dw?dw(null):{},this.size=0}var x8=b8;function S8(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var w8=S8,O8=xp,j8="__lodash_hash_undefined__",A8=Object.prototype,E8=A8.hasOwnProperty;function _8(e){var t=this.__data__;if(O8){var n=t[e];return n===j8?void 0:n}return E8.call(t,e)?t[e]:void 0}var T8=_8,N8=xp,C8=Object.prototype,M8=C8.hasOwnProperty;function $8(e){var t=this.__data__;return N8?t[e]!==void 0:M8.call(t,e)}var P8=$8,R8=xp,D8="__lodash_hash_undefined__";function k8(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=R8&&t===void 0?D8:t,this}var z8=k8,L8=x8,B8=w8,U8=T8,I8=P8,H8=z8;function gs(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])}}gs.prototype.clear=L8;gs.prototype.delete=B8;gs.prototype.get=U8;gs.prototype.has=I8;gs.prototype.set=H8;var q8=gs;function F8(){this.__data__=[],this.size=0}var G8=F8;function V8(e,t){return e===t||e!==e&&t!==t}var K0=V8,K8=K0;function Y8(e,t){for(var n=e.length;n--;)if(K8(e[n][0],t))return n;return-1}var Sp=Y8,X8=Sp,W8=Array.prototype,Q8=W8.splice;function Z8(e){var t=this.__data__,n=X8(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Q8.call(t,n,1),--this.size,!0}var J8=Z8,eU=Sp;function tU(e){var t=this.__data__,n=eU(t,e);return n<0?void 0:t[n][1]}var nU=tU,rU=Sp;function aU(e){return rU(this.__data__,e)>-1}var iU=aU,oU=Sp;function lU(e,t){var n=this.__data__,r=oU(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var sU=lU,uU=G8,cU=J8,fU=nU,dU=iU,hU=sU;function bs(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])}}bs.prototype.clear=uU;bs.prototype.delete=cU;bs.prototype.get=fU;bs.prototype.has=dU;bs.prototype.set=hU;var wp=bs,pU=go,mU=Dr,yU=pU(mU,"Map"),Y0=yU,hw=q8,vU=wp,gU=Y0;function bU(){this.size=0,this.__data__={hash:new hw,map:new(gU||vU),string:new hw}}var xU=bU;function SU(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var wU=SU,OU=wU;function jU(e,t){var n=e.__data__;return OU(t)?n[typeof t=="string"?"string":"hash"]:n.map}var Op=jU,AU=Op;function EU(e){var t=AU(this,e).delete(e);return this.size-=t?1:0,t}var _U=EU,TU=Op;function NU(e){return TU(this,e).get(e)}var CU=NU,MU=Op;function $U(e){return MU(this,e).has(e)}var PU=$U,RU=Op;function DU(e,t){var n=RU(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var kU=DU,zU=xU,LU=_U,BU=CU,UU=PU,IU=kU;function xs(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])}}xs.prototype.clear=zU;xs.prototype.delete=LU;xs.prototype.get=BU;xs.prototype.has=UU;xs.prototype.set=IU;var X0=xs,WN=X0,HU="Expected a function";function W0(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(HU);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(W0.Cache||WN),n}W0.Cache=WN;var QN=W0;const qU=Ne(QN);var FU=QN,GU=500;function VU(e){var t=FU(e,function(r){return n.size===GU&&n.clear(),r}),n=t.cache;return t}var KU=VU,YU=KU,XU=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,WU=/\\(\\)?/g,QU=YU(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(XU,function(n,r,a,i){t.push(a?i.replace(WU,"$1"):r||n)}),t}),ZU=QU;function JU(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 Q0=JU,pw=Hc,eI=Q0,tI=hn,nI=ys,mw=pw?pw.prototype:void 0,yw=mw?mw.toString:void 0;function ZN(e){if(typeof e=="string")return e;if(tI(e))return eI(e,ZN)+"";if(nI(e))return yw?yw.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var rI=ZN,aI=rI;function iI(e){return e==null?"":aI(e)}var JN=iI,oI=hn,lI=G0,sI=ZU,uI=JN;function cI(e,t){return oI(e)?e:lI(e,t)?[e]:sI(uI(e))}var eC=cI,fI=ys;function dI(e){if(typeof e=="string"||fI(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var jp=dI,hI=eC,pI=jp;function mI(e,t){t=hI(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[pI(t[n++])];return n&&n==r?e:void 0}var Z0=mI,yI=Z0;function vI(e,t,n){var r=e==null?void 0:yI(e,t);return r===void 0?n:r}var tC=vI;const Tn=Ne(tC);function gI(e){return e==null}var bI=gI;const pe=Ne(bI);var xI=ya,SI=hn,wI=va,OI="[object String]";function jI(e){return typeof e=="string"||!SI(e)&&wI(e)&&xI(e)==OI}var AI=jI;const ao=Ne(AI);var nC={exports:{}},Pe={};/**
 * @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 J0=Symbol.for("react.element"),ex=Symbol.for("react.portal"),Ap=Symbol.for("react.fragment"),Ep=Symbol.for("react.strict_mode"),_p=Symbol.for("react.profiler"),Tp=Symbol.for("react.provider"),Np=Symbol.for("react.context"),EI=Symbol.for("react.server_context"),Cp=Symbol.for("react.forward_ref"),Mp=Symbol.for("react.suspense"),$p=Symbol.for("react.suspense_list"),Pp=Symbol.for("react.memo"),Rp=Symbol.for("react.lazy"),_I=Symbol.for("react.offscreen"),rC;rC=Symbol.for("react.module.reference");function er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case J0:switch(e=e.type,e){case Ap:case _p:case Ep:case Mp:case $p:return e;default:switch(e=e&&e.$$typeof,e){case EI:case Np:case Cp:case Rp:case Pp:case Tp:return e;default:return t}}case ex:return t}}}Pe.ContextConsumer=Np;Pe.ContextProvider=Tp;Pe.Element=J0;Pe.ForwardRef=Cp;Pe.Fragment=Ap;Pe.Lazy=Rp;Pe.Memo=Pp;Pe.Portal=ex;Pe.Profiler=_p;Pe.StrictMode=Ep;Pe.Suspense=Mp;Pe.SuspenseList=$p;Pe.isAsyncMode=function(){return!1};Pe.isConcurrentMode=function(){return!1};Pe.isContextConsumer=function(e){return er(e)===Np};Pe.isContextProvider=function(e){return er(e)===Tp};Pe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===J0};Pe.isForwardRef=function(e){return er(e)===Cp};Pe.isFragment=function(e){return er(e)===Ap};Pe.isLazy=function(e){return er(e)===Rp};Pe.isMemo=function(e){return er(e)===Pp};Pe.isPortal=function(e){return er(e)===ex};Pe.isProfiler=function(e){return er(e)===_p};Pe.isStrictMode=function(e){return er(e)===Ep};Pe.isSuspense=function(e){return er(e)===Mp};Pe.isSuspenseList=function(e){return er(e)===$p};Pe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ap||e===_p||e===Ep||e===Mp||e===$p||e===_I||typeof e=="object"&&e!==null&&(e.$$typeof===Rp||e.$$typeof===Pp||e.$$typeof===Tp||e.$$typeof===Np||e.$$typeof===Cp||e.$$typeof===rC||e.getModuleId!==void 0)};Pe.typeOf=er;nC.exports=Pe;var TI=nC.exports,NI=ya,CI=va,MI="[object Number]";function $I(e){return typeof e=="number"||CI(e)&&NI(e)==MI}var aC=$I;const PI=Ne(aC);var RI=aC;function DI(e){return RI(e)&&e!=+e}var kI=DI;const Ss=Ne(kI);var Wt=function(t){return t===0?0:t>0?1:-1},Mi=function(t){return ao(t)&&t.indexOf("%")===t.length-1},K=function(t){return PI(t)&&!Ss(t)},zI=function(t){return pe(t)},jt=function(t){return K(t)||ao(t)},LI=0,bo=function(t){var n=++LI;return"".concat(t||"").concat(n)},Qt=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)&&!ao(t))return r;var i;if(Mi(t)){var o=t.indexOf("%");i=n*parseFloat(t.slice(0,o))/100}else i=+t;return Ss(i)&&(i=r),a&&i>n&&(i=n),i},Ma=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},BI=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},wt=function(t,n){return K(t)&&K(n)?function(r){return t+r*(n-t)}:function(){return n}};function Bd(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Tn(r,t))===n})}var UI=function(t,n){return K(t)&&K(n)?t-n:ao(t)&&ao(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function ol(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 qv(e){"@babel/helpers - typeof";return qv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qv(e)}var II=["viewBox","children"],HI=["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"],vw=["points","pathLength"],oy={svg:II,polygon:vw,polyline:vw},tx=["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"],Ud=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(A.isValidElement(t)&&(r=t.props),!vs(r))return null;var a={};return Object.keys(r).forEach(function(i){tx.includes(i)&&(a[i]=n||function(o){return r[i](r,o)})}),a},qI=function(t,n,r){return function(a){return t(n,r,a),null}},io=function(t,n,r){if(!vs(t)||qv(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var o=t[i];tx.includes(i)&&typeof o=="function"&&(a||(a={}),a[i]=qI(o,n,r))}),a},FI=["children"],GI=["children"];function gw(e,t){if(e==null)return{};var n=VI(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 VI(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 Fv(e){"@babel/helpers - typeof";return Fv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fv(e)}var bw={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"},aa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},xw=null,ly=null,nx=function e(t){if(t===xw&&Array.isArray(ly))return ly;var n=[];return A.Children.forEach(t,function(r){pe(r)||(TI.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),ly=n,xw=t,n};function Nn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return aa(a)}):r=[aa(t)],nx(e).forEach(function(a){var i=Tn(a,"type.displayName")||Tn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function vn(e,t){var n=Nn(e,t);return n&&n[0]}var Sw=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)},KI=["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"],YI=function(t){return t&&t.type&&ao(t.type)&&KI.indexOf(t.type)>=0},iC=function(t){return t&&Fv(t)==="object"&&"clipDot"in t},XI=function(t,n,r,a){var i,o=(i=oy==null?void 0:oy[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!ce(t)&&(a&&o.includes(n)||HI.includes(n))||r&&tx.includes(n)},oe=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(A.isValidElement(t)&&(a=t.props),!vs(a))return null;var i={};return Object.keys(a).forEach(function(o){var l;XI((l=a)===null||l===void 0?void 0:l[o],o,n,r)&&(i[o]=a[o])}),i},Gv=function e(t,n){if(t===n)return!0;var r=A.Children.count(t);if(r!==A.Children.count(n))return!1;if(r===0)return!0;if(r===1)return ww(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(!ww(i,o))return!1}return!0},ww=function(t,n){if(pe(t)&&pe(n))return!0;if(!pe(t)&&!pe(n)){var r=t.props||{},a=r.children,i=gw(r,FI),o=n.props||{},l=o.children,s=gw(o,GI);return a&&l?ol(i,s)&&Gv(a,l):!a&&!l?ol(i,s):!1}return!1},Ow=function(t,n){var r=[],a={};return nx(t).forEach(function(i,o){if(YI(i))r.push(i);else if(i){var l=aa(i.type),s=n[l]||{},u=s.handler,d=s.once;if(u&&(!d||!a[l])){var f=u(i,l,o);r.push(f),a[l]=!0}}}),r},WI=function(t){var n=t&&t.type;return n&&bw[n]?bw[n]:null},QI=function(t,n){return nx(n).indexOf(t)},ZI=["children","width","height","viewBox","className","style","title","desc"];function Vv(){return Vv=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},Vv.apply(this,arguments)}function JI(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}function Kv(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=JI(e,ZI),d=a||{width:n,height:r,x:0,y:0},f=me("recharts-surface",i);return T.createElement("svg",Vv({},oe(u,!0,"svg"),{className:f,width:n,height:r,style:o,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),T.createElement("title",null,l),T.createElement("desc",null,s),t)}var t7=["children","className"];function Yv(){return Yv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yv.apply(this,arguments)}function n7(e,t){if(e==null)return{};var n=r7(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 r7(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 Se=T.forwardRef(function(e,t){var n=e.children,r=e.className,a=n7(e,t7),i=me("recharts-layer",r);return T.createElement("g",Yv({className:i},oe(a,!0),{ref:t}),n)}),fr=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 a7(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 i7=a7,o7=i7;function l7(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:o7(e,t,n)}var s7=l7,u7="\\ud800-\\udfff",c7="\\u0300-\\u036f",f7="\\ufe20-\\ufe2f",d7="\\u20d0-\\u20ff",h7=c7+f7+d7,p7="\\ufe0e\\ufe0f",m7="\\u200d",y7=RegExp("["+m7+u7+h7+p7+"]");function v7(e){return y7.test(e)}var oC=v7;function g7(e){return e.split("")}var b7=g7,lC="\\ud800-\\udfff",x7="\\u0300-\\u036f",S7="\\ufe20-\\ufe2f",w7="\\u20d0-\\u20ff",O7=x7+S7+w7,j7="\\ufe0e\\ufe0f",A7="["+lC+"]",Xv="["+O7+"]",Wv="\\ud83c[\\udffb-\\udfff]",E7="(?:"+Xv+"|"+Wv+")",sC="[^"+lC+"]",uC="(?:\\ud83c[\\udde6-\\uddff]){2}",cC="[\\ud800-\\udbff][\\udc00-\\udfff]",_7="\\u200d",fC=E7+"?",dC="["+j7+"]?",T7="(?:"+_7+"(?:"+[sC,uC,cC].join("|")+")"+dC+fC+")*",N7=dC+fC+T7,C7="(?:"+[sC+Xv+"?",Xv,uC,cC,A7].join("|")+")",M7=RegExp(Wv+"(?="+Wv+")|"+C7+N7,"g");function $7(e){return e.match(M7)||[]}var P7=$7,R7=b7,D7=oC,k7=P7;function z7(e){return D7(e)?k7(e):R7(e)}var L7=z7,B7=s7,U7=oC,I7=L7,H7=JN;function q7(e){return function(t){t=H7(t);var n=U7(t)?I7(t):void 0,r=n?n[0]:t.charAt(0),a=n?B7(n,1).join(""):t.slice(1);return r[e]()+a}}var F7=q7,G7=F7,V7=G7("toUpperCase"),K7=V7;const Dp=Ne(K7);function Ue(e){return function(){return e}}const hC=Math.cos,Id=Math.sin,yr=Math.sqrt,Hd=Math.PI,kp=2*Hd,Qv=Math.PI,Zv=2*Qv,Ei=1e-6,Y7=Zv-Ei;function pC(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function X7(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return pC;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 W7{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?pC:X7(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,d=o-t,f=l-n,h=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>Ei)if(!(Math.abs(f*s-u*d)>Ei)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-o,y=a-l,m=s*s+u*u,b=p*p+y*y,g=Math.sqrt(m),S=Math.sqrt(h),x=i*Math.tan((Qv-Math.acos((m+h-b)/(2*g*S)))/2),v=x/S,w=x/g;Math.abs(v-1)>Ei&&this._append`L${t+v*d},${n+v*f}`,this._append`A${i},${i},0,0,${+(f*p>d*y)},${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,d=n+s,f=1^o,h=o?a-i:i-a;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>Ei||Math.abs(this._y1-d)>Ei)&&this._append`L${u},${d}`,r&&(h<0&&(h=h%Zv+Zv),h>Y7?this._append`A${r},${r},0,1,${f},${t-l},${n-s}A${r},${r},0,1,${f},${this._x1=u},${this._y1=d}`:h>Ei&&this._append`A${r},${r},0,${+(h>=Qv)},${f},${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 rx(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 W7(t)}function ax(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function mC(e){this._context=e}mC.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 zp(e){return new mC(e)}function yC(e){return e[0]}function vC(e){return e[1]}function gC(e,t){var n=Ue(!0),r=null,a=zp,i=null,o=rx(l);e=typeof e=="function"?e:e===void 0?yC:Ue(e),t=typeof t=="function"?t:t===void 0?vC:Ue(t);function l(s){var u,d=(s=ax(s)).length,f,h=!1,p;for(r==null&&(i=a(p=o())),u=0;u<=d;++u)!(u<d&&n(f=s[u],u,s))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(f,u,s),+t(f,u,s));if(p)return i=null,p+""||null}return l.x=function(s){return arguments.length?(e=typeof s=="function"?s:Ue(+s),l):e},l.y=function(s){return arguments.length?(t=typeof s=="function"?s:Ue(+s),l):t},l.defined=function(s){return arguments.length?(n=typeof s=="function"?s:Ue(!!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 Sf(e,t,n){var r=null,a=Ue(!0),i=null,o=zp,l=null,s=rx(u);e=typeof e=="function"?e:e===void 0?yC:Ue(+e),t=typeof t=="function"?t:Ue(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?vC:Ue(+n);function u(f){var h,p,y,m=(f=ax(f)).length,b,g=!1,S,x=new Array(m),v=new Array(m);for(i==null&&(l=o(S=s())),h=0;h<=m;++h){if(!(h<m&&a(b=f[h],h,f))===g)if(g=!g)p=h,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),y=h-1;y>=p;--y)l.point(x[y],v[y]);l.lineEnd(),l.areaEnd()}g&&(x[h]=+e(b,h,f),v[h]=+t(b,h,f),l.point(r?+r(b,h,f):x[h],n?+n(b,h,f):v[h]))}if(S)return l=null,S+""||null}function d(){return gC().defined(a).curve(o).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ue(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ue(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ue(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ue(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ue(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ue(+f),u):n},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(n)},u.lineX1=function(){return d().x(r).y(t)},u.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Ue(!!f),u):a},u.curve=function(f){return arguments.length?(o=f,i!=null&&(l=o(i)),u):o},u.context=function(f){return arguments.length?(f==null?i=l=null:l=o(i=f),u):i},u}class bC{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 Q7(e){return new bC(e,!0)}function Z7(e){return new bC(e,!1)}const ix={draw(e,t){const n=yr(t/Hd);e.moveTo(n,0),e.arc(0,0,n,0,kp)}},J7={draw(e,t){const n=yr(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()}},xC=yr(1/3),eH=xC*2,tH={draw(e,t){const n=yr(t/eH),r=n*xC;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},nH={draw(e,t){const n=yr(t),r=-n/2;e.rect(r,r,n,n)}},rH=.8908130915292852,SC=Id(Hd/10)/Id(7*Hd/10),aH=Id(kp/10)*SC,iH=-hC(kp/10)*SC,oH={draw(e,t){const n=yr(t*rH),r=aH*n,a=iH*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const o=kp*i/5,l=hC(o),s=Id(o);e.lineTo(s*n,-l*n),e.lineTo(l*r-s*a,s*r+l*a)}e.closePath()}},sy=yr(3),lH={draw(e,t){const n=-yr(t/(sy*3));e.moveTo(0,n*2),e.lineTo(-sy*n,-n),e.lineTo(sy*n,-n),e.closePath()}},kn=-.5,zn=yr(3)/2,Jv=1/yr(12),sH=(Jv/2+1)*3,uH={draw(e,t){const n=yr(t/sH),r=n/2,a=n*Jv,i=r,o=n*Jv+n,l=-i,s=o;e.moveTo(r,a),e.lineTo(i,o),e.lineTo(l,s),e.lineTo(kn*r-zn*a,zn*r+kn*a),e.lineTo(kn*i-zn*o,zn*i+kn*o),e.lineTo(kn*l-zn*s,zn*l+kn*s),e.lineTo(kn*r+zn*a,kn*a-zn*r),e.lineTo(kn*i+zn*o,kn*o-zn*i),e.lineTo(kn*l+zn*s,kn*s-zn*l),e.closePath()}};function cH(e,t){let n=null,r=rx(a);e=typeof e=="function"?e:Ue(e||ix),t=typeof t=="function"?t:Ue(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:Ue(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ue(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function qd(){}function Fd(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 wC(e){this._context=e}wC.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:Fd(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:Fd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fH(e){return new wC(e)}function OC(e){this._context=e}OC.prototype={areaStart:qd,areaEnd:qd,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:Fd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dH(e){return new OC(e)}function jC(e){this._context=e}jC.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:Fd(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hH(e){return new jC(e)}function AC(e){this._context=e}AC.prototype={areaStart:qd,areaEnd:qd,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 pH(e){return new AC(e)}function jw(e){return e<0?-1:1}function Aw(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(jw(i)+jw(o))*Math.min(Math.abs(i),Math.abs(o),.5*Math.abs(l))||0}function Ew(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function uy(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 Gd(e){this._context=e}Gd.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:uy(this,this._t0,Ew(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,uy(this,Ew(this,n=Aw(this,e,t)),n);break;default:uy(this,this._t0,n=Aw(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function EC(e){this._context=new _C(e)}(EC.prototype=Object.create(Gd.prototype)).point=function(e,t){Gd.prototype.point.call(this,t,e)};function _C(e){this._context=e}_C.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 mH(e){return new Gd(e)}function yH(e){return new EC(e)}function TC(e){this._context=e}TC.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=_w(e),a=_w(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 _w(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 vH(e){return new TC(e)}function Lp(e,t){this._context=e,this._t=t}Lp.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 gH(e){return new Lp(e,.5)}function bH(e){return new Lp(e,0)}function xH(e){return new Lp(e,1)}function Cl(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 eg(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function SH(e,t){return e[t]}function wH(e){const t=[];return t.key=e,t}function OH(){var e=Ue([]),t=eg,n=Cl,r=SH;function a(i){var o=Array.from(e.apply(this,arguments),wH),l,s=o.length,u=-1,d;for(const f of i)for(l=0,++u;l<s;++l)(o[l][u]=[0,+r(f,o[l].key,u,i)]).data=f;for(l=0,d=ax(t(o));l<s;++l)o[d[l]].index=l;return n(o,d),o}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ue(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Ue(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?eg:typeof i=="function"?i:Ue(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Cl,a):n},a}function jH(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}Cl(e,t)}}function AH(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}Cl(e,t)}}function EH(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 d=e[t[l]],f=d[r][1]||0,h=d[r-1][1]||0,p=(f-h)/2,y=0;y<l;++y){var m=e[t[y]],b=m[r][1]||0,g=m[r-1][1]||0;p+=b-g}s+=f,u+=p*f}a[r-1][1]+=a[r-1][0]=n,s&&(n-=u/s)}a[r-1][1]+=a[r-1][0]=n,Cl(e,t)}}function Lu(e){"@babel/helpers - typeof";return Lu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lu(e)}var _H=["type","size","sizeType"];function tg(){return tg=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},tg.apply(this,arguments)}function Tw(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 Nw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tw(Object(n),!0).forEach(function(r){TH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TH(e,t,n){return t=NH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NH(e){var t=CH(e,"string");return Lu(t)=="symbol"?t:t+""}function CH(e,t){if(Lu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MH(e,t){if(e==null)return{};var n=$H(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 $H(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 NC={symbolCircle:ix,symbolCross:J7,symbolDiamond:tH,symbolSquare:nH,symbolStar:oH,symbolTriangle:lH,symbolWye:uH},PH=Math.PI/180,RH=function(t){var n="symbol".concat(Dp(t));return NC[n]||ix},DH=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*PH;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}},kH=function(t,n){NC["symbol".concat(Dp(t))]=n},ox=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=MH(t,_H),u=Nw(Nw({},s),{},{type:r,size:i,sizeType:l}),d=function(){var b=RH(r),g=cH().type(b).size(DH(i,l,r));return g()},f=u.className,h=u.cx,p=u.cy,y=oe(u,!0);return h===+h&&p===+p&&i===+i?T.createElement("path",tg({},y,{className:me("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:d()})):null};ox.registerSymbol=kH;function Ml(e){"@babel/helpers - typeof";return Ml=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ml(e)}function ng(){return ng=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},ng.apply(this,arguments)}function Cw(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 zH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Cw(Object(n),!0).forEach(function(r){Bu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LH(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BH(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,MC(r.key),r)}}function UH(e,t,n){return t&&BH(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IH(e,t,n){return t=Vd(t),HH(e,CC()?Reflect.construct(t,n||[],Vd(e).constructor):t.apply(e,n))}function HH(e,t){if(t&&(Ml(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qH(e)}function qH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CC=function(){return!!e})()}function Vd(e){return Vd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vd(e)}function FH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&rg(e,t)}function rg(e,t){return rg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},rg(e,t)}function Bu(e,t,n){return t=MC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MC(e){var t=GH(e,"string");return Ml(t)=="symbol"?t:t+""}function GH(e,t){if(Ml(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ml(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ln=32,lx=function(e){function t(){return LH(this,t),IH(this,t,arguments)}return FH(t,e),UH(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=Ln/2,o=Ln/6,l=Ln/3,s=r.inactive?a:r.color;if(r.type==="plainline")return T.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:Ln,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return T.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(Ln,"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 T.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Ln/8,"h").concat(Ln,"v").concat(Ln*3/4,"h").concat(-Ln,"z"),className:"recharts-legend-icon"});if(T.isValidElement(r.legendIcon)){var u=zH({},r);return delete u.legendIcon,T.cloneElement(r.legendIcon,u)}return T.createElement(ox,{fill:s,cx:i,cy:i,size:Ln,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,d={x:0,y:0,width:Ln,height:Ln},f={display:l==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,y){var m=p.formatter||s,b=me(Bu(Bu({"recharts-legend-item":!0},"legend-item-".concat(y),!0),"inactive",p.inactive));if(p.type==="none")return null;var g=ce(p.value)?null:p.value;fr(!ce(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 S=p.inactive?u:p.color;return T.createElement("li",ng({className:b,style:f,key:"legend-item-".concat(y)},io(r.props,p,y)),T.createElement(Kv,{width:o,height:o,viewBox:d,style:h},r.renderIcon(p)),T.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},m?m(g,p,y):g))})}},{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 T.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(A.PureComponent);Bu(lx,"displayName","Legend");Bu(lx,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var VH=wp;function KH(){this.__data__=new VH,this.size=0}var YH=KH;function XH(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var WH=XH;function QH(e){return this.__data__.get(e)}var ZH=QH;function JH(e){return this.__data__.has(e)}var e9=JH,t9=wp,n9=Y0,r9=X0,a9=200;function i9(e,t){var n=this.__data__;if(n instanceof t9){var r=n.__data__;if(!n9||r.length<a9-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new r9(r)}return n.set(e,t),this.size=n.size,this}var o9=i9,l9=wp,s9=YH,u9=WH,c9=ZH,f9=e9,d9=o9;function ws(e){var t=this.__data__=new l9(e);this.size=t.size}ws.prototype.clear=s9;ws.prototype.delete=u9;ws.prototype.get=c9;ws.prototype.has=f9;ws.prototype.set=d9;var $C=ws,h9="__lodash_hash_undefined__";function p9(e){return this.__data__.set(e,h9),this}var m9=p9;function y9(e){return this.__data__.has(e)}var v9=y9,g9=X0,b9=m9,x9=v9;function Kd(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new g9;++t<n;)this.add(e[t])}Kd.prototype.add=Kd.prototype.push=b9;Kd.prototype.has=x9;var PC=Kd;function S9(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 RC=S9;function w9(e,t){return e.has(t)}var DC=w9,O9=PC,j9=RC,A9=DC,E9=1,_9=2;function T9(e,t,n,r,a,i){var o=n&E9,l=e.length,s=t.length;if(l!=s&&!(o&&s>l))return!1;var u=i.get(e),d=i.get(t);if(u&&d)return u==t&&d==e;var f=-1,h=!0,p=n&_9?new O9:void 0;for(i.set(e,t),i.set(t,e);++f<l;){var y=e[f],m=t[f];if(r)var b=o?r(m,y,f,t,e,i):r(y,m,f,e,t,i);if(b!==void 0){if(b)continue;h=!1;break}if(p){if(!j9(t,function(g,S){if(!A9(p,S)&&(y===g||a(y,g,n,r,i)))return p.push(S)})){h=!1;break}}else if(!(y===m||a(y,m,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var kC=T9,N9=Dr,C9=N9.Uint8Array,M9=C9;function $9(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var P9=$9;function R9(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var sx=R9,Mw=Hc,$w=M9,D9=K0,k9=kC,z9=P9,L9=sx,B9=1,U9=2,I9="[object Boolean]",H9="[object Date]",q9="[object Error]",F9="[object Map]",G9="[object Number]",V9="[object RegExp]",K9="[object Set]",Y9="[object String]",X9="[object Symbol]",W9="[object ArrayBuffer]",Q9="[object DataView]",Pw=Mw?Mw.prototype:void 0,cy=Pw?Pw.valueOf:void 0;function Z9(e,t,n,r,a,i,o){switch(n){case Q9:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case W9:return!(e.byteLength!=t.byteLength||!i(new $w(e),new $w(t)));case I9:case H9:case G9:return D9(+e,+t);case q9:return e.name==t.name&&e.message==t.message;case V9:case Y9:return e==t+"";case F9:var l=z9;case K9:var s=r&B9;if(l||(l=L9),e.size!=t.size&&!s)return!1;var u=o.get(e);if(u)return u==t;r|=U9,o.set(e,t);var d=k9(l(e),l(t),r,a,i,o);return o.delete(e),d;case X9:if(cy)return cy.call(e)==cy.call(t)}return!1}var J9=Z9;function eq(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var zC=eq,tq=zC,nq=hn;function rq(e,t,n){var r=t(e);return nq(e)?r:tq(r,n(e))}var aq=rq;function iq(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 oq=iq;function lq(){return[]}var sq=lq,uq=oq,cq=sq,fq=Object.prototype,dq=fq.propertyIsEnumerable,Rw=Object.getOwnPropertySymbols,hq=Rw?function(e){return e==null?[]:(e=Object(e),uq(Rw(e),function(t){return dq.call(e,t)}))}:cq,pq=hq;function mq(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var yq=mq,vq=ya,gq=va,bq="[object Arguments]";function xq(e){return gq(e)&&vq(e)==bq}var Sq=xq,Dw=Sq,wq=va,LC=Object.prototype,Oq=LC.hasOwnProperty,jq=LC.propertyIsEnumerable,Aq=Dw(function(){return arguments}())?Dw:function(e){return wq(e)&&Oq.call(e,"callee")&&!jq.call(e,"callee")},ux=Aq,Yd={exports:{}};function Eq(){return!1}var _q=Eq;Yd.exports;(function(e,t){var n=Dr,r=_q,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})(Yd,Yd.exports);var BC=Yd.exports,Tq=9007199254740991,Nq=/^(?:0|[1-9]\d*)$/;function Cq(e,t){var n=typeof e;return t=t??Tq,!!t&&(n=="number"||n!="symbol"&&Nq.test(e))&&e>-1&&e%1==0&&e<t}var cx=Cq,Mq=9007199254740991;function $q(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Mq}var fx=$q,Pq=ya,Rq=fx,Dq=va,kq="[object Arguments]",zq="[object Array]",Lq="[object Boolean]",Bq="[object Date]",Uq="[object Error]",Iq="[object Function]",Hq="[object Map]",qq="[object Number]",Fq="[object Object]",Gq="[object RegExp]",Vq="[object Set]",Kq="[object String]",Yq="[object WeakMap]",Xq="[object ArrayBuffer]",Wq="[object DataView]",Qq="[object Float32Array]",Zq="[object Float64Array]",Jq="[object Int8Array]",eF="[object Int16Array]",tF="[object Int32Array]",nF="[object Uint8Array]",rF="[object Uint8ClampedArray]",aF="[object Uint16Array]",iF="[object Uint32Array]",Ge={};Ge[Qq]=Ge[Zq]=Ge[Jq]=Ge[eF]=Ge[tF]=Ge[nF]=Ge[rF]=Ge[aF]=Ge[iF]=!0;Ge[kq]=Ge[zq]=Ge[Xq]=Ge[Lq]=Ge[Wq]=Ge[Bq]=Ge[Uq]=Ge[Iq]=Ge[Hq]=Ge[qq]=Ge[Fq]=Ge[Gq]=Ge[Vq]=Ge[Kq]=Ge[Yq]=!1;function oF(e){return Dq(e)&&Rq(e.length)&&!!Ge[Pq(e)]}var lF=oF;function sF(e){return function(t){return e(t)}}var UC=sF,Xd={exports:{}};Xd.exports;(function(e,t){var n=KN,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})(Xd,Xd.exports);var uF=Xd.exports,cF=lF,fF=UC,kw=uF,zw=kw&&kw.isTypedArray,dF=zw?fF(zw):cF,IC=dF,hF=yq,pF=ux,mF=hn,yF=BC,vF=cx,gF=IC,bF=Object.prototype,xF=bF.hasOwnProperty;function SF(e,t){var n=mF(e),r=!n&&pF(e),a=!n&&!r&&yF(e),i=!n&&!r&&!a&&gF(e),o=n||r||a||i,l=o?hF(e.length,String):[],s=l.length;for(var u in e)(t||xF.call(e,u))&&!(o&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||vF(u,s)))&&l.push(u);return l}var wF=SF,OF=Object.prototype;function jF(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||OF;return e===n}var AF=jF;function EF(e,t){return function(n){return e(t(n))}}var HC=EF,_F=HC,TF=_F(Object.keys,Object),NF=TF,CF=AF,MF=NF,$F=Object.prototype,PF=$F.hasOwnProperty;function RF(e){if(!CF(e))return MF(e);var t=[];for(var n in Object(e))PF.call(e,n)&&n!="constructor"&&t.push(n);return t}var DF=RF,kF=V0,zF=fx;function LF(e){return e!=null&&zF(e.length)&&!kF(e)}var qc=LF,BF=wF,UF=DF,IF=qc;function HF(e){return IF(e)?BF(e):UF(e)}var Bp=HF,qF=aq,FF=pq,GF=Bp;function VF(e){return qF(e,GF,FF)}var KF=VF,Lw=KF,YF=1,XF=Object.prototype,WF=XF.hasOwnProperty;function QF(e,t,n,r,a,i){var o=n&YF,l=Lw(e),s=l.length,u=Lw(t),d=u.length;if(s!=d&&!o)return!1;for(var f=s;f--;){var h=l[f];if(!(o?h in t:WF.call(t,h)))return!1}var p=i.get(e),y=i.get(t);if(p&&y)return p==t&&y==e;var m=!0;i.set(e,t),i.set(t,e);for(var b=o;++f<s;){h=l[f];var g=e[h],S=t[h];if(r)var x=o?r(S,g,h,t,e,i):r(g,S,h,e,t,i);if(!(x===void 0?g===S||a(g,S,n,r,i):x)){m=!1;break}b||(b=h=="constructor")}if(m&&!b){var v=e.constructor,w=t.constructor;v!=w&&"constructor"in e&&"constructor"in t&&!(typeof v=="function"&&v instanceof v&&typeof w=="function"&&w instanceof w)&&(m=!1)}return i.delete(e),i.delete(t),m}var ZF=QF,JF=go,eG=Dr,tG=JF(eG,"DataView"),nG=tG,rG=go,aG=Dr,iG=rG(aG,"Promise"),oG=iG,lG=go,sG=Dr,uG=lG(sG,"Set"),qC=uG,cG=go,fG=Dr,dG=cG(fG,"WeakMap"),hG=dG,ag=nG,ig=Y0,og=oG,lg=qC,sg=hG,FC=ya,Os=XN,Bw="[object Map]",pG="[object Object]",Uw="[object Promise]",Iw="[object Set]",Hw="[object WeakMap]",qw="[object DataView]",mG=Os(ag),yG=Os(ig),vG=Os(og),gG=Os(lg),bG=Os(sg),_i=FC;(ag&&_i(new ag(new ArrayBuffer(1)))!=qw||ig&&_i(new ig)!=Bw||og&&_i(og.resolve())!=Uw||lg&&_i(new lg)!=Iw||sg&&_i(new sg)!=Hw)&&(_i=function(e){var t=FC(e),n=t==pG?e.constructor:void 0,r=n?Os(n):"";if(r)switch(r){case mG:return qw;case yG:return Bw;case vG:return Uw;case gG:return Iw;case bG:return Hw}return t});var xG=_i,fy=$C,SG=kC,wG=J9,OG=ZF,Fw=xG,Gw=hn,Vw=BC,jG=IC,AG=1,Kw="[object Arguments]",Yw="[object Array]",wf="[object Object]",EG=Object.prototype,Xw=EG.hasOwnProperty;function _G(e,t,n,r,a,i){var o=Gw(e),l=Gw(t),s=o?Yw:Fw(e),u=l?Yw:Fw(t);s=s==Kw?wf:s,u=u==Kw?wf:u;var d=s==wf,f=u==wf,h=s==u;if(h&&Vw(e)){if(!Vw(t))return!1;o=!0,d=!1}if(h&&!d)return i||(i=new fy),o||jG(e)?SG(e,t,n,r,a,i):wG(e,t,s,n,r,a,i);if(!(n&AG)){var p=d&&Xw.call(e,"__wrapped__"),y=f&&Xw.call(t,"__wrapped__");if(p||y){var m=p?e.value():e,b=y?t.value():t;return i||(i=new fy),a(m,b,n,r,i)}}return h?(i||(i=new fy),OG(e,t,n,r,a,i)):!1}var TG=_G,NG=TG,Ww=va;function GC(e,t,n,r,a){return e===t?!0:e==null||t==null||!Ww(e)&&!Ww(t)?e!==e&&t!==t:NG(e,t,n,r,GC,a)}var dx=GC,CG=$C,MG=dx,$G=1,PG=2;function RG(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],d=l[1];if(o&&l[2]){if(u===void 0&&!(s in e))return!1}else{var f=new CG;if(r)var h=r(u,d,s,e,t,f);if(!(h===void 0?MG(d,u,$G|PG,r,f):h))return!1}}return!0}var DG=RG,kG=ci;function zG(e){return e===e&&!kG(e)}var VC=zG,LG=VC,BG=Bp;function UG(e){for(var t=BG(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,LG(a)]}return t}var IG=UG;function HG(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var KC=HG,qG=DG,FG=IG,GG=KC;function VG(e){var t=FG(e);return t.length==1&&t[0][2]?GG(t[0][0],t[0][1]):function(n){return n===e||qG(n,e,t)}}var KG=VG;function YG(e,t){return e!=null&&t in Object(e)}var XG=YG,WG=eC,QG=ux,ZG=hn,JG=cx,eV=fx,tV=jp;function nV(e,t,n){t=WG(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var o=tV(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&&eV(a)&&JG(o,a)&&(ZG(e)||QG(e)))}var rV=nV,aV=XG,iV=rV;function oV(e,t){return e!=null&&iV(e,t,aV)}var lV=oV,sV=dx,uV=tC,cV=lV,fV=G0,dV=VC,hV=KC,pV=jp,mV=1,yV=2;function vV(e,t){return fV(e)&&dV(t)?hV(pV(e),t):function(n){var r=uV(n,e);return r===void 0&&r===t?cV(n,e):sV(t,r,mV|yV)}}var gV=vV;function bV(e){return e}var js=bV;function xV(e){return function(t){return t==null?void 0:t[e]}}var SV=xV,wV=Z0;function OV(e){return function(t){return wV(t,e)}}var jV=OV,AV=SV,EV=jV,_V=G0,TV=jp;function NV(e){return _V(e)?AV(TV(e)):EV(e)}var CV=NV,MV=KG,$V=gV,PV=js,RV=hn,DV=CV;function kV(e){return typeof e=="function"?e:e==null?PV:typeof e=="object"?RV(e)?$V(e[0],e[1]):MV(e):DV(e)}var kr=kV;function zV(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 YC=zV;function LV(e){return e!==e}var BV=LV;function UV(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var IV=UV,HV=YC,qV=BV,FV=IV;function GV(e,t,n){return t===t?FV(e,t,n):HV(e,qV,n)}var VV=GV,KV=VV;function YV(e,t){var n=e==null?0:e.length;return!!n&&KV(e,t,0)>-1}var XV=YV;function WV(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 QV=WV;function ZV(){}var JV=ZV,dy=qC,eK=JV,tK=sx,nK=1/0,rK=dy&&1/tK(new dy([,-0]))[1]==nK?function(e){return new dy(e)}:eK,aK=rK,iK=PC,oK=XV,lK=QV,sK=DC,uK=aK,cK=sx,fK=200;function dK(e,t,n){var r=-1,a=oK,i=e.length,o=!0,l=[],s=l;if(n)o=!1,a=lK;else if(i>=fK){var u=t?null:uK(e);if(u)return cK(u);o=!1,a=sK,s=new iK}else s=t?[]:l;e:for(;++r<i;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,o&&f===f){for(var h=s.length;h--;)if(s[h]===f)continue e;t&&s.push(f),l.push(d)}else a(s,f,n)||(s!==l&&s.push(f),l.push(d))}return l}var hK=dK,pK=kr,mK=hK;function yK(e,t){return e&&e.length?mK(e,pK(t)):[]}var vK=yK;const Qw=Ne(vK);function XC(e,t,n){return t===!0?Qw(e,n):ce(t)?Qw(e,t):e}function $l(e){"@babel/helpers - typeof";return $l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$l(e)}var gK=["ref"];function Zw(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 Ir(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Zw(Object(n),!0).forEach(function(r){Up(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Zw(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jw(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,QC(r.key),r)}}function xK(e,t,n){return t&&Jw(e.prototype,t),n&&Jw(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SK(e,t,n){return t=Wd(t),wK(e,WC()?Reflect.construct(t,n||[],Wd(e).constructor):t.apply(e,n))}function wK(e,t){if(t&&($l(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return OK(e)}function OK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function WC(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(WC=function(){return!!e})()}function Wd(e){return Wd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wd(e)}function jK(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ug(e,t)}function ug(e,t){return ug=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ug(e,t)}function Up(e,t,n){return t=QC(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QC(e){var t=AK(e,"string");return $l(t)=="symbol"?t:t+""}function AK(e,t){if($l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function EK(e,t){if(e==null)return{};var n=_K(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 _K(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 TK(e){return e.value}function NK(e,t){if(T.isValidElement(e))return T.cloneElement(e,t);if(typeof e=="function")return T.createElement(e,t);t.ref;var n=EK(t,gK);return T.createElement(lx,n)}var eO=1,jr=function(e){function t(){var n;bK(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=SK(this,t,[].concat(a)),Up(n,"lastBoundingBox",{width:-1,height:-1}),n}return jK(t,e),xK(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)>eO||Math.abs(a.height-this.lastBoundingBox.height)>eO)&&(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?Ir({},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,d=a.chartHeight,f,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();f={left:((u||0)-p.width)/2}}else f=o==="right"?{right:s&&s.right||0}:{left:s&&s.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var y=this.getBBoxSnapshot();h={top:((d||0)-y.height)/2}}else h=l==="bottom"?{bottom:s&&s.bottom||0}:{top:s&&s.top||0};return Ir(Ir({},f),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,d=a.payload,f=Ir(Ir({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(s)),s);return T.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},NK(i,Ir(Ir({},this.props),{},{payload:XC(d,u,TK)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Ir(Ir({},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}}])}(A.PureComponent);Up(jr,"displayName","Legend");Up(jr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var tO=Hc,CK=ux,MK=hn,nO=tO?tO.isConcatSpreadable:void 0;function $K(e){return MK(e)||CK(e)||!!(nO&&e&&e[nO])}var PK=$K,RK=zC,DK=PK;function ZC(e,t,n,r,a){var i=-1,o=e.length;for(n||(n=DK),a||(a=[]);++i<o;){var l=e[i];t>0&&n(l)?t>1?ZC(l,t-1,n,r,a):RK(a,l):r||(a[a.length]=l)}return a}var JC=ZC;function kK(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 zK=kK,LK=zK,BK=LK(),UK=BK,IK=UK,HK=Bp;function qK(e,t){return e&&IK(e,t,HK)}var eM=qK,FK=qc;function GK(e,t){return function(n,r){if(n==null)return n;if(!FK(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 VK=GK,KK=eM,YK=VK,XK=YK(KK),hx=XK,WK=hx,QK=qc;function ZK(e,t){var n=-1,r=QK(e)?Array(e.length):[];return WK(e,function(a,i,o){r[++n]=t(a,i,o)}),r}var tM=ZK;function JK(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var eY=JK,rO=ys;function tY(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=rO(e),o=t!==void 0,l=t===null,s=t===t,u=rO(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 nY=tY,rY=nY;function aY(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,o=a.length,l=n.length;++r<o;){var s=rY(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 iY=aY,hy=Q0,oY=Z0,lY=kr,sY=tM,uY=eY,cY=UC,fY=iY,dY=js,hY=hn;function pY(e,t,n){t.length?t=hy(t,function(i){return hY(i)?function(o){return oY(o,i.length===1?i[0]:i)}:i}):t=[dY];var r=-1;t=hy(t,cY(lY));var a=sY(e,function(i,o,l){var s=hy(t,function(u){return u(i)});return{criteria:s,index:++r,value:i}});return uY(a,function(i,o){return fY(i,o,n)})}var mY=pY;function yY(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 vY=yY,gY=vY,aO=Math.max;function bY(e,t,n){return t=aO(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=aO(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),gY(e,this,l)}}var xY=bY;function SY(e){return function(){return e}}var wY=SY,OY=go,jY=function(){try{var e=OY(Object,"defineProperty");return e({},"",{}),e}catch{}}(),nM=jY,AY=wY,iO=nM,EY=js,_Y=iO?function(e,t){return iO(e,"toString",{configurable:!0,enumerable:!1,value:AY(t),writable:!0})}:EY,TY=_Y,NY=800,CY=16,MY=Date.now;function $Y(e){var t=0,n=0;return function(){var r=MY(),a=CY-(r-n);if(n=r,a>0){if(++t>=NY)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var PY=$Y,RY=TY,DY=PY,kY=DY(RY),zY=kY,LY=js,BY=xY,UY=zY;function IY(e,t){return UY(BY(e,t,LY),e+"")}var HY=IY,qY=K0,FY=qc,GY=cx,VY=ci;function KY(e,t,n){if(!VY(n))return!1;var r=typeof t;return(r=="number"?FY(n)&&GY(t,n.length):r=="string"&&t in n)?qY(n[t],e):!1}var Ip=KY,YY=JC,XY=mY,WY=HY,oO=Ip,QY=WY(function(e,t){if(e==null)return[];var n=t.length;return n>1&&oO(e,t[0],t[1])?t=[]:n>2&&oO(t[0],t[1],t[2])&&(t=[t[0]]),XY(e,YY(t,1),[])}),ZY=QY;const px=Ne(ZY);function Uu(e){"@babel/helpers - typeof";return Uu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uu(e)}function cg(){return cg=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},cg.apply(this,arguments)}function JY(e,t){return rX(e)||nX(e,t)||tX(e,t)||eX()}function eX(){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 tX(e,t){if(e){if(typeof e=="string")return lO(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 lO(e,t)}}function lO(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 nX(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function rX(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 py(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){aX(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 aX(e,t,n){return t=iX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iX(e){var t=oX(e,"string");return Uu(t)=="symbol"?t:t+""}function oX(e,t){if(Uu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lX(e){return Array.isArray(e)&&jt(e[0])&&jt(e[1])?e.join(" ~ "):e}var sX=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,d=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,y=t.labelClassName,m=t.label,b=t.labelFormatter,g=t.accessibilityLayer,S=g===void 0?!1:g,x=function(){if(d&&d.length){var C={padding:0,margin:0},L=(h?px(d,h):d).map(function(k,R){if(k.type==="none")return null;var M=py({display:"block",paddingTop:4,paddingBottom:4,color:k.color||"#000"},l),z=k.formatter||f||lX,B=k.value,F=k.name,V=B,ee=F;if(z&&V!=null&&ee!=null){var X=z(B,F,k,R,d);if(Array.isArray(X)){var ie=JY(X,2);V=ie[0],ee=ie[1]}else V=X}return T.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(R),style:M},jt(ee)?T.createElement("span",{className:"recharts-tooltip-item-name"},ee):null,jt(ee)?T.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,T.createElement("span",{className:"recharts-tooltip-item-value"},V),T.createElement("span",{className:"recharts-tooltip-item-unit"},k.unit||""))});return T.createElement("ul",{className:"recharts-tooltip-item-list",style:C},L)}return null},v=py({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),w=py({margin:0},u),O=!pe(m),j=O?m:"",_=me("recharts-default-tooltip",p),E=me("recharts-tooltip-label",y);O&&b&&d!==void 0&&d!==null&&(j=b(m,d));var N=S?{role:"status","aria-live":"assertive"}:{};return T.createElement("div",cg({className:_,style:v},N),T.createElement("p",{className:E,style:w},T.isValidElement(j)?j:"".concat(j)),x())};function Iu(e){"@babel/helpers - typeof";return Iu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Iu(e)}function Of(e,t,n){return t=uX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uX(e){var t=cX(e,"string");return Iu(t)=="symbol"?t:t+""}function cX(e,t){if(Iu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Iu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bs="recharts-tooltip-wrapper",fX={visibility:"hidden"};function dX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return me(Bs,Of(Of(Of(Of({},"".concat(Bs,"-right"),K(n)&&t&&K(t.x)&&n>=t.x),"".concat(Bs,"-left"),K(n)&&t&&K(t.x)&&n<t.x),"".concat(Bs,"-bottom"),K(r)&&t&&K(t.y)&&r>=t.y),"".concat(Bs,"-top"),K(r)&&t&&K(t.y)&&r<t.y))}function uO(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 d=n[r]-l-a,f=n[r]+a;if(t[r])return o[r]?d:f;if(o[r]){var h=d,p=s[r];return h<p?Math.max(f,s[r]):Math.max(d,s[r])}var y=f+l,m=s[r]+u;return y>m?Math.max(d,s[r]):Math.max(f,s[r])}function hX(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 pX(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,d,f;return o.height>0&&o.width>0&&n?(d=uO({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.width,viewBox:s,viewBoxDimension:s.width}),f=uO({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:o.height,viewBox:s,viewBoxDimension:s.height}),u=hX({translateX:d,translateY:f,useTranslate3d:l})):u=fX,{cssProperties:u,cssClasses:dX({translateX:d,translateY:f,coordinate:n})}}function Pl(e){"@babel/helpers - typeof";return Pl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pl(e)}function cO(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 fO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cO(Object(n),!0).forEach(function(r){dg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yX(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,aM(r.key),r)}}function vX(e,t,n){return t&&yX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gX(e,t,n){return t=Qd(t),bX(e,rM()?Reflect.construct(t,n||[],Qd(e).constructor):t.apply(e,n))}function bX(e,t){if(t&&(Pl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xX(e)}function xX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rM=function(){return!!e})()}function Qd(e){return Qd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qd(e)}function SX(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&&fg(e,t)}function fg(e,t){return fg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},fg(e,t)}function dg(e,t,n){return t=aM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aM(e){var t=wX(e,"string");return Pl(t)=="symbol"?t:t+""}function wX(e,t){if(Pl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dO=1,OX=function(e){function t(){var n;mX(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=gX(this,t,[].concat(a)),dg(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),dg(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,s,u,d;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=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&u!==void 0?u:0}})}}),n}return SX(t,e),vX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>dO||Math.abs(r.height-this.state.lastBoundingBox.height)>dO)&&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,d=a.coordinate,f=a.hasPayload,h=a.isAnimationActive,p=a.offset,y=a.position,m=a.reverseDirection,b=a.useTranslate3d,g=a.viewBox,S=a.wrapperStyle,x=pX({allowEscapeViewBox:o,coordinate:d,offsetTopLeft:p,position:y,reverseDirection:m,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:g}),v=x.cssClasses,w=x.cssProperties,O=fO(fO({transition:h&&i?"transform ".concat(l,"ms ").concat(s):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},S);return T.createElement("div",{tabIndex:-1,className:v,style:O,ref:function(_){r.wrapperNode=_}},u)}}])}(A.PureComponent),jX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},fi={isSsr:jX()};function Rl(e){"@babel/helpers - typeof";return Rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rl(e)}function hO(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 pO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hO(Object(n),!0).forEach(function(r){mx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function EX(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,oM(r.key),r)}}function _X(e,t,n){return t&&EX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function TX(e,t,n){return t=Zd(t),NX(e,iM()?Reflect.construct(t,n||[],Zd(e).constructor):t.apply(e,n))}function NX(e,t){if(t&&(Rl(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 iM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iM=function(){return!!e})()}function Zd(e){return Zd=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zd(e)}function MX(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&&hg(e,t)}function hg(e,t){return hg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},hg(e,t)}function mx(e,t,n){return t=oM(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oM(e){var t=$X(e,"string");return Rl(t)=="symbol"?t:t+""}function $X(e,t){if(Rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function PX(e){return e.dataKey}function RX(e,t){return T.isValidElement(e)?T.cloneElement(e,t):typeof e=="function"?T.createElement(e,t):T.createElement(sX,t)}var bn=function(e){function t(){return AX(this,t),TX(this,t,arguments)}return MX(t,e),_X(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,d=a.coordinate,f=a.filterNull,h=a.isAnimationActive,p=a.offset,y=a.payload,m=a.payloadUniqBy,b=a.position,g=a.reverseDirection,S=a.useTranslate3d,x=a.viewBox,v=a.wrapperStyle,w=y??[];f&&w.length&&(w=XC(y.filter(function(j){return j.value!=null&&(j.hide!==!0||r.props.includeHidden)}),m,PX));var O=w.length>0;return T.createElement(OX,{allowEscapeViewBox:o,animationDuration:l,animationEasing:s,isAnimationActive:h,active:i,coordinate:d,hasPayload:O,offset:p,position:b,reverseDirection:g,useTranslate3d:S,viewBox:x,wrapperStyle:v},RX(u,pO(pO({},this.props),{},{payload:w})))}}])}(A.PureComponent);mx(bn,"displayName","Tooltip");mx(bn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!fi.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 DX=Dr,kX=function(){return DX.Date.now()},zX=kX,LX=/\s/;function BX(e){for(var t=e.length;t--&&LX.test(e.charAt(t)););return t}var UX=BX,IX=UX,HX=/^\s+/;function qX(e){return e&&e.slice(0,IX(e)+1).replace(HX,"")}var FX=qX,GX=FX,mO=ci,VX=ys,yO=NaN,KX=/^[-+]0x[0-9a-f]+$/i,YX=/^0b[01]+$/i,XX=/^0o[0-7]+$/i,WX=parseInt;function QX(e){if(typeof e=="number")return e;if(VX(e))return yO;if(mO(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=mO(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=GX(e);var n=YX.test(e);return n||XX.test(e)?WX(e.slice(2),n?2:8):KX.test(e)?yO:+e}var lM=QX,ZX=ci,my=zX,vO=lM,JX="Expected a function",eW=Math.max,tW=Math.min;function nW(e,t,n){var r,a,i,o,l,s,u=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(JX);t=vO(t)||0,ZX(n)&&(d=!!n.leading,f="maxWait"in n,i=f?eW(vO(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(O){var j=r,_=a;return r=a=void 0,u=O,o=e.apply(_,j),o}function y(O){return u=O,l=setTimeout(g,t),d?p(O):o}function m(O){var j=O-s,_=O-u,E=t-j;return f?tW(E,i-_):E}function b(O){var j=O-s,_=O-u;return s===void 0||j>=t||j<0||f&&_>=i}function g(){var O=my();if(b(O))return S(O);l=setTimeout(g,m(O))}function S(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 v(){return l===void 0?o:S(my())}function w(){var O=my(),j=b(O);if(r=arguments,a=this,s=O,j){if(l===void 0)return y(s);if(f)return clearTimeout(l),l=setTimeout(g,t),p(s)}return l===void 0&&(l=setTimeout(g,t)),o}return w.cancel=x,w.flush=v,w}var rW=nW,aW=rW,iW=ci,oW="Expected a function";function lW(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(oW);return iW(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),aW(e,t,{leading:r,maxWait:t,trailing:a})}var sW=lW;const sM=Ne(sW);function Hu(e){"@babel/helpers - typeof";return Hu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hu(e)}function gO(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 jf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gO(Object(n),!0).forEach(function(r){uW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uW(e,t,n){return t=cW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cW(e){var t=fW(e,"string");return Hu(t)=="symbol"?t:t+""}function fW(e,t){if(Hu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dW(e,t){return yW(e)||mW(e,t)||pW(e,t)||hW()}function hW(){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 pW(e,t){if(e){if(typeof e=="string")return bO(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 bO(e,t)}}function bO(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 mW(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function yW(e){if(Array.isArray(e))return e}var Af=A.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,d=u===void 0?0:u,f=e.minHeight,h=e.maxHeight,p=e.children,y=e.debounce,m=y===void 0?0:y,b=e.id,g=e.className,S=e.onResize,x=e.style,v=x===void 0?{}:x,w=A.useRef(null),O=A.useRef();O.current=S,A.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 j=A.useState({containerWidth:a.width,containerHeight:a.height}),_=dW(j,2),E=_[0],N=_[1],$=A.useCallback(function(L,k){N(function(R){var M=Math.round(L),z=Math.round(k);return R.containerWidth===M&&R.containerHeight===z?R:{containerWidth:M,containerHeight:z}})},[]);A.useEffect(function(){var L=function(F){var V,ee=F[0].contentRect,X=ee.width,ie=ee.height;$(X,ie),(V=O.current)===null||V===void 0||V.call(O,X,ie)};m>0&&(L=sM(L,m,{trailing:!0,leading:!1}));var k=new ResizeObserver(L),R=w.current.getBoundingClientRect(),M=R.width,z=R.height;return $(M,z),k.observe(w.current),function(){k.disconnect()}},[$,m]);var C=A.useMemo(function(){var L=E.containerWidth,k=E.containerHeight;if(L<0||k<0)return null;fr(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),fr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var R=Mi(o)?L:o,M=Mi(s)?k:s;n&&n>0&&(R?M=R/n:M&&(R=M*n),h&&M>h&&(M=h)),fr(R>0||M>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,R,M,o,s,d,f,n);var z=!Array.isArray(p)&&aa(p.type).endsWith("Chart");return T.Children.map(p,function(B){return T.isValidElement(B)?A.cloneElement(B,jf({width:R,height:M},z?{style:jf({height:"100%",width:"100%",maxHeight:M,maxWidth:R},B.props.style)}:{})):B})},[n,p,s,h,f,d,E,o]);return T.createElement("div",{id:b?"".concat(b):void 0,className:me("recharts-responsive-container",g),style:jf(jf({},v),{},{width:o,height:s,minWidth:d,minHeight:f,maxHeight:h}),ref:w},C)}),Hp=function(t){return null};Hp.displayName="Cell";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 xO(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 pg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xO(Object(n),!0).forEach(function(r){vW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vW(e,t,n){return t=gW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gW(e){var t=bW(e,"string");return qu(t)=="symbol"?t:t+""}function bW(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)}var To={widthCache:{},cacheCount:0},xW=2e3,SW={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},SO="recharts_measurement_span";function wW(e){var t=pg({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var pu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||fi.isSsr)return{width:0,height:0};var r=wW(n),a=JSON.stringify({text:t,copyStyle:r});if(To.widthCache[a])return To.widthCache[a];try{var i=document.getElementById(SO);i||(i=document.createElement("span"),i.setAttribute("id",SO),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var o=pg(pg({},SW),r);Object.assign(i.style,o),i.textContent="".concat(t);var l=i.getBoundingClientRect(),s={width:l.width,height:l.height};return To.widthCache[a]=s,++To.cacheCount>xW&&(To.cacheCount=0,To.widthCache={}),s}catch{return{width:0,height:0}}},OW=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Fu(e){"@babel/helpers - typeof";return Fu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fu(e)}function Jd(e,t){return _W(e)||EW(e,t)||AW(e,t)||jW()}function jW(){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 AW(e,t){if(e){if(typeof e=="string")return wO(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 wO(e,t)}}function wO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function _W(e){if(Array.isArray(e))return e}function TW(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function OO(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,CW(r.key),r)}}function NW(e,t,n){return t&&OO(e.prototype,t),n&&OO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function CW(e){var t=MW(e,"string");return Fu(t)=="symbol"?t:t+""}function MW(e,t){if(Fu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fu(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var jO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,AO=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,$W=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,PW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,uM={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},RW=Object.keys(uM),Yo="NaN";function DW(e,t){return e*uM[t]}var Ef=function(){function e(t,n){TW(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!$W.test(n)&&(this.num=NaN,this.unit=""),RW.includes(n)&&(this.num=DW(t,n),this.unit="px")}return NW(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=PW.exec(n))!==null&&r!==void 0?r:[],i=Jd(a,3),o=i[1],l=i[2];return new e(parseFloat(o),l??"")}}])}();function cM(e){if(e.includes(Yo))return Yo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=jO.exec(t))!==null&&n!==void 0?n:[],a=Jd(r,4),i=a[1],o=a[2],l=a[3],s=Ef.parse(i??""),u=Ef.parse(l??""),d=o==="*"?s.multiply(u):s.divide(u);if(d.isNaN())return Yo;t=t.replace(jO,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=AO.exec(t))!==null&&f!==void 0?f:[],p=Jd(h,4),y=p[1],m=p[2],b=p[3],g=Ef.parse(y??""),S=Ef.parse(b??""),x=m==="+"?g.add(S):g.subtract(S);if(x.isNaN())return Yo;t=t.replace(AO,x.toString())}return t}var EO=/\(([^()]*)\)/;function kW(e){for(var t=e;t.includes("(");){var n=EO.exec(t),r=Jd(n,2),a=r[1];t=t.replace(EO,cM(a))}return t}function zW(e){var t=e.replace(/\s+/g,"");return t=kW(t),t=cM(t),t}function LW(e){try{return zW(e)}catch{return Yo}}function yy(e){var t=LW(e.slice(5,-1));return t===Yo?"":t}var BW=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],UW=["dx","dy","angle","className","breakAll"];function mg(){return mg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mg.apply(this,arguments)}function _O(e,t){if(e==null)return{};var n=IW(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 IW(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 TO(e,t){return GW(e)||FW(e,t)||qW(e,t)||HW()}function HW(){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 qW(e,t){if(e){if(typeof e=="string")return NO(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 NO(e,t)}}function NO(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function GW(e){if(Array.isArray(e))return e}var fM=/[ \f\n\r\t\v\u2028\u2029]+/,dM=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];pe(n)||(r?i=n.toString().split(""):i=n.toString().split(fM));var o=i.map(function(s){return{word:s,width:pu(s,a).width}}),l=r?0:pu(" ",a).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},VW=function(t,n,r,a,i){var o=t.maxLines,l=t.children,s=t.style,u=t.breakAll,d=K(o),f=l,h=function(){var R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return R.reduce(function(M,z){var B=z.word,F=z.width,V=M[M.length-1];if(V&&(a==null||i||V.width+F+r<Number(a)))V.words.push(B),V.width+=F+r;else{var ee={words:[B],width:F};M.push(ee)}return M},[])},p=h(n),y=function(R){return R.reduce(function(M,z){return M.width>z.width?M:z})};if(!d)return p;for(var m="…",b=function(R){var M=f.slice(0,R),z=dM({breakAll:u,style:s,children:M+m}).wordsWithComputedWidth,B=h(z),F=B.length>o||y(B).width>Number(a);return[F,B]},g=0,S=f.length-1,x=0,v;g<=S&&x<=f.length-1;){var w=Math.floor((g+S)/2),O=w-1,j=b(O),_=TO(j,2),E=_[0],N=_[1],$=b(w),C=TO($,1),L=C[0];if(!E&&!L&&(g=w+1),E&&L&&(S=w-1),!E&&L){v=N;break}x++}return v||p},CO=function(t){var n=pe(t)?[]:t.toString().split(fM);return[{words:n}]},KW=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!fi.isSsr){var s,u,d=dM({breakAll:o,children:a,style:i});if(d){var f=d.wordsWithComputedWidth,h=d.spaceWidth;s=f,u=h}else return CO(a);return VW({breakAll:o,children:a,maxLines:l,style:i},s,u,n,r)}return CO(a)},MO="#808080",oo=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,d=t.scaleToFit,f=d===void 0?!1:d,h=t.textAnchor,p=h===void 0?"start":h,y=t.verticalAnchor,m=y===void 0?"end":y,b=t.fill,g=b===void 0?MO:b,S=_O(t,BW),x=A.useMemo(function(){return KW({breakAll:S.breakAll,children:S.children,maxLines:S.maxLines,scaleToFit:f,style:S.style,width:S.width})},[S.breakAll,S.children,S.maxLines,f,S.style,S.width]),v=S.dx,w=S.dy,O=S.angle,j=S.className,_=S.breakAll,E=_O(S,UW);if(!jt(r)||!jt(i))return null;var N=r+(K(v)?v:0),$=i+(K(w)?w:0),C;switch(m){case"start":C=yy("calc(".concat(u,")"));break;case"middle":C=yy("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:C=yy("calc(".concat(x.length-1," * -").concat(l,")"));break}var L=[];if(f){var k=x[0].width,R=S.width;L.push("scale(".concat((K(R)?R/k:1)/k,")"))}return O&&L.push("rotate(".concat(O,", ").concat(N,", ").concat($,")")),L.length&&(E.transform=L.join(" ")),T.createElement("text",mg({},oe(E,!0),{x:N,y:$,className:me("recharts-text",j),textAnchor:p,fill:g.includes("url")?MO:g}),x.map(function(M,z){var B=M.words.join(_?"":" ");return T.createElement("tspan",{x:N,dy:z===0?C:l,key:"".concat(B,"-").concat(z)},B)}))};function ei(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function YW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function yx(e){let t,n,r;e.length!==2?(t=ei,n=(l,s)=>ei(e(l),s),r=(l,s)=>e(l)-s):(t=e===ei||e===YW?e:XW,n=e,r=e);function a(l,s,u=0,d=l.length){if(u<d){if(t(s,s)!==0)return d;do{const f=u+d>>>1;n(l[f],s)<0?u=f+1:d=f}while(u<d)}return u}function i(l,s,u=0,d=l.length){if(u<d){if(t(s,s)!==0)return d;do{const f=u+d>>>1;n(l[f],s)<=0?u=f+1:d=f}while(u<d)}return u}function o(l,s,u=0,d=l.length){const f=a(l,s,u,d-1);return f>u&&r(l[f-1],s)>-r(l[f],s)?f-1:f}return{left:a,center:o,right:i}}function XW(){return 0}function hM(e){return e===null?NaN:+e}function*WW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const QW=yx(ei),Fc=QW.right;yx(hM).center;class $O extends Map{constructor(t,n=eQ){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(PO(this,t))}has(t){return super.has(PO(this,t))}set(t,n){return super.set(ZW(this,t),n)}delete(t){return super.delete(JW(this,t))}}function PO({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ZW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function JW({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function eQ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function tQ(e=ei){if(e===ei)return pM;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 pM(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const nQ=Math.sqrt(50),rQ=Math.sqrt(10),aQ=Math.sqrt(2);function eh(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>=nQ?10:i>=rQ?5:i>=aQ?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?eh(e,t,n*2):[l,s,u]}function yg(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?eh(t,e,n):eh(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 vg(e,t,n){return t=+t,e=+e,n=+n,eh(e,t,n)[2]}function gg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?vg(t,e,n):vg(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function RO(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function DO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function mM(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?pM:tQ(a);r>n;){if(r-n>600){const s=r-n+1,u=t-n+1,d=Math.log(s),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(s-f)/s)*(u-s/2<0?-1:1),p=Math.max(n,Math.floor(t-u*f/s+h)),y=Math.min(r,Math.floor(t+(s-u)*f/s+h));mM(e,t,p,y,a)}const i=e[t];let o=n,l=r;for(Us(e,n,t),a(e[r],i)>0&&Us(e,n,r);o<l;){for(Us(e,o,l),++o,--l;a(e[o],i)<0;)++o;for(;a(e[l],i)>0;)--l}a(e[n],i)===0?Us(e,n,l):(++l,Us(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Us(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function iQ(e,t,n){if(e=Float64Array.from(WW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return DO(e);if(t>=1)return RO(e);var r,a=(r-1)*t,i=Math.floor(a),o=RO(mM(e,i).subarray(0,i+1)),l=DO(e.subarray(i+1));return o+(l-o)*(a-i)}}function oQ(e,t,n=hM){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 lQ(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 ga(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 bg=Symbol("implicit");function vx(){var e=new $O,t=[],n=[],r=bg;function a(i){let o=e.get(i);if(o===void 0){if(r!==bg)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 $O;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 vx(t,n).unknown(r)},tr.apply(a,arguments),a}function Gu(){var e=vx().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,o,l=!1,s=0,u=0,d=.5;delete e.unknown;function f(){var h=t().length,p=a<r,y=p?a:r,m=p?r:a;i=(m-y)/Math.max(1,h-s+u*2),l&&(i=Math.floor(i)),y+=(m-y-i*(h-s))*d,o=i*(1-s),l&&(y=Math.round(y),o=Math.round(o));var b=lQ(h).map(function(g){return y+i*g});return n(p?b.reverse():b)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,f()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,l=!0,f()},e.bandwidth=function(){return o},e.step=function(){return i},e.round=function(h){return arguments.length?(l=!!h,f()):l},e.padding=function(h){return arguments.length?(s=Math.min(1,u=+h),f()):s},e.paddingInner=function(h){return arguments.length?(s=Math.min(1,h),f()):s},e.paddingOuter=function(h){return arguments.length?(u=+h,f()):u},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),f()):d},e.copy=function(){return Gu(t(),[r,a]).round(l).paddingInner(s).paddingOuter(u).align(d)},tr.apply(f(),arguments)}function yM(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return yM(t())},e}function mu(){return yM(Gu.apply(null,arguments).paddingInner(1))}function gx(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function vM(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Gc(){}var Vu=.7,th=1/Vu,ll="\\s*([+-]?\\d+)\\s*",Ku="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",sQ=/^#([0-9a-f]{3,8})$/,uQ=new RegExp(`^rgb\\(${ll},${ll},${ll}\\)$`),cQ=new RegExp(`^rgb\\(${Tr},${Tr},${Tr}\\)$`),fQ=new RegExp(`^rgba\\(${ll},${ll},${ll},${Ku}\\)$`),dQ=new RegExp(`^rgba\\(${Tr},${Tr},${Tr},${Ku}\\)$`),hQ=new RegExp(`^hsl\\(${Ku},${Tr},${Tr}\\)$`),pQ=new RegExp(`^hsla\\(${Ku},${Tr},${Tr},${Ku}\\)$`),kO={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};gx(Gc,Yu,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zO,formatHex:zO,formatHex8:mQ,formatHsl:yQ,formatRgb:LO,toString:LO});function zO(){return this.rgb().formatHex()}function mQ(){return this.rgb().formatHex8()}function yQ(){return gM(this).formatHsl()}function LO(){return this.rgb().formatRgb()}function Yu(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=sQ.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?BO(t):n===3?new sn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?_f(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?_f(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=uQ.exec(e))?new sn(t[1],t[2],t[3],1):(t=cQ.exec(e))?new sn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=fQ.exec(e))?_f(t[1],t[2],t[3],t[4]):(t=dQ.exec(e))?_f(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=hQ.exec(e))?HO(t[1],t[2]/100,t[3]/100,1):(t=pQ.exec(e))?HO(t[1],t[2]/100,t[3]/100,t[4]):kO.hasOwnProperty(e)?BO(kO[e]):e==="transparent"?new sn(NaN,NaN,NaN,0):null}function BO(e){return new sn(e>>16&255,e>>8&255,e&255,1)}function _f(e,t,n,r){return r<=0&&(e=t=n=NaN),new sn(e,t,n,r)}function vQ(e){return e instanceof Gc||(e=Yu(e)),e?(e=e.rgb(),new sn(e.r,e.g,e.b,e.opacity)):new sn}function xg(e,t,n,r){return arguments.length===1?vQ(e):new sn(e,t,n,r??1)}function sn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}gx(sn,xg,vM(Gc,{brighter(e){return e=e==null?th:Math.pow(th,e),new sn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Vu:Math.pow(Vu,e),new sn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new sn(Yi(this.r),Yi(this.g),Yi(this.b),nh(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:UO,formatHex:UO,formatHex8:gQ,formatRgb:IO,toString:IO}));function UO(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}`}function gQ(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}${$i((isNaN(this.opacity)?1:this.opacity)*255)}`}function IO(){const e=nh(this.opacity);return`${e===1?"rgb(":"rgba("}${Yi(this.r)}, ${Yi(this.g)}, ${Yi(this.b)}${e===1?")":`, ${e})`}`}function nh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Yi(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function $i(e){return e=Yi(e),(e<16?"0":"")+e.toString(16)}function HO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ur(e,t,n,r)}function gM(e){if(e instanceof ur)return new ur(e.h,e.s,e.l,e.opacity);if(e instanceof Gc||(e=Yu(e)),!e)return new ur;if(e instanceof ur)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 ur(o,l,s,e.opacity)}function bQ(e,t,n,r){return arguments.length===1?gM(e):new ur(e,t,n,r??1)}function ur(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}gx(ur,bQ,vM(Gc,{brighter(e){return e=e==null?th:Math.pow(th,e),new ur(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Vu:Math.pow(Vu,e),new ur(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 sn(vy(e>=240?e-240:e+120,a,r),vy(e,a,r),vy(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new ur(qO(this.h),Tf(this.s),Tf(this.l),nh(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=nh(this.opacity);return`${e===1?"hsl(":"hsla("}${qO(this.h)}, ${Tf(this.s)*100}%, ${Tf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function qO(e){return e=(e||0)%360,e<0?e+360:e}function Tf(e){return Math.max(0,Math.min(1,e||0))}function vy(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 bx=e=>()=>e;function xQ(e,t){return function(n){return e+n*t}}function SQ(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 wQ(e){return(e=+e)==1?bM:function(t,n){return n-t?SQ(t,n,e):bx(isNaN(t)?n:t)}}function bM(e,t){var n=t-e;return n?xQ(e,n):bx(isNaN(e)?t:e)}const FO=function e(t){var n=wQ(t);function r(a,i){var o=n((a=xg(a)).r,(i=xg(i)).r),l=n(a.g,i.g),s=n(a.b,i.b),u=bM(a.opacity,i.opacity);return function(d){return a.r=o(d),a.g=l(d),a.b=s(d),a.opacity=u(d),a+""}}return r.gamma=e,r}(1);function OQ(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 jQ(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function AQ(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]=As(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 EQ(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function rh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _Q(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]=As(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Sg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,gy=new RegExp(Sg.source,"g");function TQ(e){return function(){return e}}function NQ(e){return function(t){return e(t)+""}}function CQ(e,t){var n=Sg.lastIndex=gy.lastIndex=0,r,a,i,o=-1,l=[],s=[];for(e=e+"",t=t+"";(r=Sg.exec(e))&&(a=gy.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:rh(r,a)})),n=gy.lastIndex;return n<t.length&&(i=t.slice(n),l[o]?l[o]+=i:l[++o]=i),l.length<2?s[0]?NQ(s[0].x):TQ(t):(t=s.length,function(u){for(var d=0,f;d<t;++d)l[(f=s[d]).i]=f.x(u);return l.join("")})}function As(e,t){var n=typeof t,r;return t==null||n==="boolean"?bx(t):(n==="number"?rh:n==="string"?(r=Yu(t))?(t=r,FO):CQ:t instanceof Yu?FO:t instanceof Date?EQ:jQ(t)?OQ:Array.isArray(t)?AQ:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?_Q:rh)(e,t)}function xx(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function MQ(e,t){t===void 0&&(t=e,e=As);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 $Q(e){return function(){return e}}function ah(e){return+e}var GO=[0,1];function Zt(e){return e}function wg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:$Q(isNaN(t)?NaN:.5)}function PQ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function RQ(e,t,n){var r=e[0],a=e[1],i=t[0],o=t[1];return a<r?(r=wg(a,r),i=n(o,i)):(r=wg(r,a),i=n(i,o)),function(l){return i(r(l))}}function DQ(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]=wg(e[o],e[o+1]),i[o]=n(t[o],t[o+1]);return function(l){var s=Fc(e,l,1,r)-1;return i[s](a[s](l))}}function Vc(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function qp(){var e=GO,t=GO,n=As,r,a,i,o=Zt,l,s,u;function d(){var h=Math.min(e.length,t.length);return o!==Zt&&(o=PQ(e[0],e[h-1])),l=h>2?DQ:RQ,s=u=null,f}function f(h){return h==null||isNaN(h=+h)?i:(s||(s=l(e.map(r),t,n)))(r(o(h)))}return f.invert=function(h){return o(a((u||(u=l(t,e.map(r),rh)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,ah),d()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=xx,d()},f.clamp=function(h){return arguments.length?(o=h?!0:Zt,d()):o!==Zt},f.interpolate=function(h){return arguments.length?(n=h,d()):n},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,p){return r=h,a=p,d()}}function Sx(){return qp()(Zt,Zt)}function kQ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ih(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 Dl(e){return e=ih(Math.abs(e)),e?e[1]:NaN}function zQ(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 LQ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var BQ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xu(e){if(!(t=BQ.exec(e)))throw new Error("invalid format: "+e);var t;return new wx({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]})}Xu.prototype=wx.prototype;function wx(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+""}wx.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 UQ(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 oh;function IQ(e,t){var n=ih(e,t);if(!n)return oh=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(oh=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")+ih(e,Math.max(0,t+i-1))[0]}function VO(e,t){var n=ih(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 KO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:kQ,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)=>VO(e*100,t),r:VO,s:IQ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function YO(e){return e}var XO=Array.prototype.map,WO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function HQ(e){var t=e.grouping===void 0||e.thousands===void 0?YO:zQ(XO.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?YO:LQ(XO.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",s=e.nan===void 0?"NaN":e.nan+"";function u(f,h){f=Xu(f);var p=f.fill,y=f.align,m=f.sign,b=f.symbol,g=f.zero,S=f.width,x=f.comma,v=f.precision,w=f.trim,O=f.type;O==="n"?(x=!0,O="g"):KO[O]||(v===void 0&&(v=12),w=!0,O="g"),(g||p==="0"&&y==="=")&&(g=!0,p="0",y="=");var j=(h&&h.prefix!==void 0?h.prefix:"")+(b==="$"?n:b==="#"&&/[boxX]/.test(O)?"0"+O.toLowerCase():""),_=(b==="$"?r:/[%p]/.test(O)?o:"")+(h&&h.suffix!==void 0?h.suffix:""),E=KO[O],N=/[defgprs%]/.test(O);v=v===void 0?6:/[gprs]/.test(O)?Math.max(1,Math.min(21,v)):Math.max(0,Math.min(20,v));function $(C){var L=j,k=_,R,M,z;if(O==="c")k=E(C)+k,C="";else{C=+C;var B=C<0||1/C<0;if(C=isNaN(C)?s:E(Math.abs(C),v),w&&(C=UQ(C)),B&&+C==0&&m!=="+"&&(B=!1),L=(B?m==="("?m:l:m==="-"||m==="("?"":m)+L,k=(O==="s"&&!isNaN(C)&&oh!==void 0?WO[8+oh/3]:"")+k+(B&&m==="("?")":""),N){for(R=-1,M=C.length;++R<M;)if(z=C.charCodeAt(R),48>z||z>57){k=(z===46?a+C.slice(R+1):C.slice(R))+k,C=C.slice(0,R);break}}}x&&!g&&(C=t(C,1/0));var F=L.length+C.length+k.length,V=F<S?new Array(S-F+1).join(p):"";switch(x&&g&&(C=t(V+C,V.length?S-k.length:1/0),V=""),y){case"<":C=L+C+k+V;break;case"=":C=L+V+C+k;break;case"^":C=V.slice(0,F=V.length>>1)+L+C+k+V.slice(F);break;default:C=V+L+C+k;break}return i(C)}return $.toString=function(){return f+""},$}function d(f,h){var p=Math.max(-8,Math.min(8,Math.floor(Dl(h)/3)))*3,y=Math.pow(10,-p),m=u((f=Xu(f),f.type="f",f),{suffix:WO[8+p/3]});return function(b){return m(y*b)}}return{format:u,formatPrefix:d}}var Nf,Ox,xM;qQ({thousands:",",grouping:[3],currency:["$",""]});function qQ(e){return Nf=HQ(e),Ox=Nf.format,xM=Nf.formatPrefix,Nf}function FQ(e){return Math.max(0,-Dl(Math.abs(e)))}function GQ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Dl(t)/3)))*3-Dl(Math.abs(e)))}function VQ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Dl(t)-Dl(e))+1}function SM(e,t,n,r){var a=gg(e,t,n),i;switch(r=Xu(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=GQ(a,o))&&(r.precision=i),xM(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=VQ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=FQ(a))&&(r.precision=i-(r.type==="%")*2);break}}return Ox(r)}function di(e){var t=e.domain;return e.ticks=function(n){var r=t();return yg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return SM(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,d=10;for(l<o&&(u=o,o=l,l=u,u=a,a=i,i=u);d-- >0;){if(u=vg(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 lh(){var e=Sx();return e.copy=function(){return Vc(e,lh())},tr.apply(e,arguments),di(e)}function wM(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,ah),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return wM(e).unknown(t)},e=arguments.length?Array.from(e,ah):[0,1],di(n)}function OM(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 QO(e){return Math.log(e)}function ZO(e){return Math.exp(e)}function KQ(e){return-Math.log(-e)}function YQ(e){return-Math.exp(-e)}function XQ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function WQ(e){return e===10?XQ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function QQ(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 JO(e){return(t,n)=>-e(-t,n)}function jx(e){const t=e(QO,ZO),n=t.domain;let r=10,a,i;function o(){return a=QQ(r),i=WQ(r),n()[0]<0?(a=JO(a),i=JO(i),e(KQ,YQ)):e(QO,ZO),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],d=s[s.length-1];const f=d<u;f&&([u,d]=[d,u]);let h=a(u),p=a(d),y,m;const b=l==null?10:+l;let g=[];if(!(r%1)&&p-h<b){if(h=Math.floor(h),p=Math.ceil(p),u>0){for(;h<=p;++h)for(y=1;y<r;++y)if(m=h<0?y/i(-h):y*i(h),!(m<u)){if(m>d)break;g.push(m)}}else for(;h<=p;++h)for(y=r-1;y>=1;--y)if(m=h>0?y/i(-h):y*i(h),!(m<u)){if(m>d)break;g.push(m)}g.length*2<b&&(g=yg(u,d,b))}else g=yg(h,p,Math.min(p-h,b)).map(i);return f?g.reverse():g},t.tickFormat=(l,s)=>{if(l==null&&(l=10),s==null&&(s=r===10?"s":","),typeof s!="function"&&(!(r%1)&&(s=Xu(s)).precision==null&&(s.trim=!0),s=Ox(s)),l===1/0)return s;const u=Math.max(1,r*l/t.ticks().length);return d=>{let f=d/i(Math.round(a(d)));return f*r<r-.5&&(f*=r),f<=u?s(d):""}},t.nice=()=>n(OM(n(),{floor:l=>i(Math.floor(a(l))),ceil:l=>i(Math.ceil(a(l)))})),t}function jM(){const e=jx(qp()).domain([1,10]);return e.copy=()=>Vc(e,jM()).base(e.base()),tr.apply(e,arguments),e}function ej(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function tj(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Ax(e){var t=1,n=e(ej(t),tj(t));return n.constant=function(r){return arguments.length?e(ej(t=+r),tj(t)):t},di(n)}function AM(){var e=Ax(qp());return e.copy=function(){return Vc(e,AM()).constant(e.constant())},tr.apply(e,arguments)}function nj(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function ZQ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function JQ(e){return e<0?-e*e:e*e}function Ex(e){var t=e(Zt,Zt),n=1;function r(){return n===1?e(Zt,Zt):n===.5?e(ZQ,JQ):e(nj(n),nj(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},di(t)}function _x(){var e=Ex(qp());return e.copy=function(){return Vc(e,_x()).exponent(e.exponent())},tr.apply(e,arguments),e}function eZ(){return _x.apply(null,arguments).exponent(.5)}function rj(e){return Math.sign(e)*e*e}function tZ(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function EM(){var e=Sx(),t=[0,1],n=!1,r;function a(i){var o=tZ(e(i));return isNaN(o)?r:n?Math.round(o):o}return a.invert=function(i){return e.invert(rj(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,ah)).map(rj)),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 EM(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},tr.apply(a,arguments),di(a)}function _M(){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]=oQ(e,o/l);return i}function i(o){return o==null||isNaN(o=+o)?r:t[Fc(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(ei),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 _M().domain(e).range(t).unknown(r)},tr.apply(i,arguments)}function TM(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function o(s){return s!=null&&s<=s?a[Fc(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 TM().domain([e,t]).range(a).unknown(i)},tr.apply(di(o),arguments)}function NM(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Fc(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 NM().domain(e).range(t).unknown(n)},tr.apply(a,arguments)}const by=new Date,xy=new Date;function Et(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=>Et(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)=>(by.setTime(+i),xy.setTime(+o),e(by),e(xy),Math.floor(n(by,xy))),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 sh=Et(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);sh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Et(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):sh);sh.range;const Qr=1e3,Yn=Qr*60,Zr=Yn*60,da=Zr*24,Tx=da*7,aj=da*30,Sy=da*365,Pi=Et(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Qr)},(e,t)=>(t-e)/Qr,e=>e.getUTCSeconds());Pi.range;const Nx=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qr)},(e,t)=>{e.setTime(+e+t*Yn)},(e,t)=>(t-e)/Yn,e=>e.getMinutes());Nx.range;const Cx=Et(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Yn)},(e,t)=>(t-e)/Yn,e=>e.getUTCMinutes());Cx.range;const Mx=Et(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Qr-e.getMinutes()*Yn)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getHours());Mx.range;const $x=Et(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Zr)},(e,t)=>(t-e)/Zr,e=>e.getUTCHours());$x.range;const Kc=Et(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Yn)/da,e=>e.getDate()-1);Kc.range;const Fp=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/da,e=>e.getUTCDate()-1);Fp.range;const CM=Et(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/da,e=>Math.floor(e/da));CM.range;function xo(e){return Et(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Yn)/Tx)}const Gp=xo(0),uh=xo(1),nZ=xo(2),rZ=xo(3),kl=xo(4),aZ=xo(5),iZ=xo(6);Gp.range;uh.range;nZ.range;rZ.range;kl.range;aZ.range;iZ.range;function So(e){return Et(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/Tx)}const Vp=So(0),ch=So(1),oZ=So(2),lZ=So(3),zl=So(4),sZ=So(5),uZ=So(6);Vp.range;ch.range;oZ.range;lZ.range;zl.range;sZ.range;uZ.range;const Px=Et(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Px.range;const Rx=Et(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Rx.range;const ha=Et(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ha.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ha.range;const pa=Et(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());pa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Et(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});pa.range;function MM(e,t,n,r,a,i){const o=[[Pi,1,Qr],[Pi,5,5*Qr],[Pi,15,15*Qr],[Pi,30,30*Qr],[i,1,Yn],[i,5,5*Yn],[i,15,15*Yn],[i,30,30*Yn],[a,1,Zr],[a,3,3*Zr],[a,6,6*Zr],[a,12,12*Zr],[r,1,da],[r,2,2*da],[n,1,Tx],[t,1,aj],[t,3,3*aj],[e,1,Sy]];function l(u,d,f){const h=d<u;h&&([u,d]=[d,u]);const p=f&&typeof f.range=="function"?f:s(u,d,f),y=p?p.range(u,+d+1):[];return h?y.reverse():y}function s(u,d,f){const h=Math.abs(d-u)/f,p=yx(([,,b])=>b).right(o,h);if(p===o.length)return e.every(gg(u/Sy,d/Sy,f));if(p===0)return sh.every(Math.max(gg(u,d,f),1));const[y,m]=o[h/o[p-1][2]<o[p][2]/h?p-1:p];return y.every(m)}return[l,s]}const[cZ,fZ]=MM(pa,Rx,Vp,CM,$x,Cx),[dZ,hZ]=MM(ha,Px,Gp,Kc,Mx,Nx);function wy(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 Oy(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 Is(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function pZ(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=Hs(a),d=qs(a),f=Hs(i),h=qs(i),p=Hs(o),y=qs(o),m=Hs(l),b=qs(l),g=Hs(s),S=qs(s),x={a:z,A:B,b:F,B:V,c:null,d:cj,e:cj,f:zZ,g:KZ,G:XZ,H:RZ,I:DZ,j:kZ,L:$M,m:LZ,M:BZ,p:ee,q:X,Q:hj,s:pj,S:UZ,u:IZ,U:HZ,V:qZ,w:FZ,W:GZ,x:null,X:null,y:VZ,Y:YZ,Z:WZ,"%":dj},v={a:ie,A:D,b:W,B:se,c:null,d:fj,e:fj,f:eJ,g:cJ,G:dJ,H:QZ,I:ZZ,j:JZ,L:RM,m:tJ,M:nJ,p:fe,q:qe,Q:hj,s:pj,S:rJ,u:aJ,U:iJ,V:oJ,w:lJ,W:sJ,x:null,X:null,y:uJ,Y:fJ,Z:hJ,"%":dj},w={a:N,A:$,b:C,B:L,c:k,d:sj,e:sj,f:CZ,g:lj,G:oj,H:uj,I:uj,j:EZ,L:NZ,m:AZ,M:_Z,p:E,q:jZ,Q:$Z,s:PZ,S:TZ,u:bZ,U:xZ,V:SZ,w:gZ,W:wZ,x:R,X:M,y:lj,Y:oj,Z:OZ,"%":MZ};x.x=O(n,x),x.X=O(r,x),x.c=O(t,x),v.x=O(n,v),v.X=O(r,v),v.c=O(t,v);function O(J,le){return function(Z){var q=[],Ce=-1,ge=0,tt=J.length,ot,ft,xa;for(Z instanceof Date||(Z=new Date(+Z));++Ce<tt;)J.charCodeAt(Ce)===37&&(q.push(J.slice(ge,Ce)),(ft=ij[ot=J.charAt(++Ce)])!=null?ot=J.charAt(++Ce):ft=ot==="e"?" ":"0",(xa=le[ot])&&(ot=xa(Z,ft)),q.push(ot),ge=Ce+1);return q.push(J.slice(ge,Ce)),q.join("")}}function j(J,le){return function(Z){var q=Is(1900,void 0,1),Ce=_(q,J,Z+="",0),ge,tt;if(Ce!=Z.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(le&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(ge=Oy(Is(q.y,0,1)),tt=ge.getUTCDay(),ge=tt>4||tt===0?ch.ceil(ge):ch(ge),ge=Fp.offset(ge,(q.V-1)*7),q.y=ge.getUTCFullYear(),q.m=ge.getUTCMonth(),q.d=ge.getUTCDate()+(q.w+6)%7):(ge=wy(Is(q.y,0,1)),tt=ge.getDay(),ge=tt>4||tt===0?uh.ceil(ge):uh(ge),ge=Kc.offset(ge,(q.V-1)*7),q.y=ge.getFullYear(),q.m=ge.getMonth(),q.d=ge.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),tt="Z"in q?Oy(Is(q.y,0,1)).getUTCDay():wy(Is(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(tt+5)%7:q.w+q.U*7-(tt+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,Oy(q)):wy(q)}}function _(J,le,Z,q){for(var Ce=0,ge=le.length,tt=Z.length,ot,ft;Ce<ge;){if(q>=tt)return-1;if(ot=le.charCodeAt(Ce++),ot===37){if(ot=le.charAt(Ce++),ft=w[ot in ij?le.charAt(Ce++):ot],!ft||(q=ft(J,Z,q))<0)return-1}else if(ot!=Z.charCodeAt(q++))return-1}return q}function E(J,le,Z){var q=u.exec(le.slice(Z));return q?(J.p=d.get(q[0].toLowerCase()),Z+q[0].length):-1}function N(J,le,Z){var q=p.exec(le.slice(Z));return q?(J.w=y.get(q[0].toLowerCase()),Z+q[0].length):-1}function $(J,le,Z){var q=f.exec(le.slice(Z));return q?(J.w=h.get(q[0].toLowerCase()),Z+q[0].length):-1}function C(J,le,Z){var q=g.exec(le.slice(Z));return q?(J.m=S.get(q[0].toLowerCase()),Z+q[0].length):-1}function L(J,le,Z){var q=m.exec(le.slice(Z));return q?(J.m=b.get(q[0].toLowerCase()),Z+q[0].length):-1}function k(J,le,Z){return _(J,t,le,Z)}function R(J,le,Z){return _(J,n,le,Z)}function M(J,le,Z){return _(J,r,le,Z)}function z(J){return o[J.getDay()]}function B(J){return i[J.getDay()]}function F(J){return s[J.getMonth()]}function V(J){return l[J.getMonth()]}function ee(J){return a[+(J.getHours()>=12)]}function X(J){return 1+~~(J.getMonth()/3)}function ie(J){return o[J.getUTCDay()]}function D(J){return i[J.getUTCDay()]}function W(J){return s[J.getUTCMonth()]}function se(J){return l[J.getUTCMonth()]}function fe(J){return a[+(J.getUTCHours()>=12)]}function qe(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var le=O(J+="",x);return le.toString=function(){return J},le},parse:function(J){var le=j(J+="",!1);return le.toString=function(){return J},le},utcFormat:function(J){var le=O(J+="",v);return le.toString=function(){return J},le},utcParse:function(J){var le=j(J+="",!0);return le.toString=function(){return J},le}}}var ij={"-":"",_:" ",0:"0"},Pt=/^\s*\d+/,mZ=/^%/,yZ=/[\\^$*+?|[\]().{}]/g;function Ae(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 vZ(e){return e.replace(yZ,"\\$&")}function Hs(e){return new RegExp("^(?:"+e.map(vZ).join("|")+")","i")}function qs(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function gZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function bZ(e,t,n){var r=Pt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function xZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function SZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function wZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function oj(e,t,n){var r=Pt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function lj(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 OZ(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 jZ(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 AZ(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 sj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function EZ(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 uj(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.H=+r[0],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],n+r[0].length):-1}function TZ(e,t,n){var r=Pt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function NZ(e,t,n){var r=Pt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function CZ(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 MZ(e,t,n){var r=mZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function $Z(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function PZ(e,t,n){var r=Pt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function cj(e,t){return Ae(e.getDate(),t,2)}function RZ(e,t){return Ae(e.getHours(),t,2)}function DZ(e,t){return Ae(e.getHours()%12||12,t,2)}function kZ(e,t){return Ae(1+Kc.count(ha(e),e),t,3)}function $M(e,t){return Ae(e.getMilliseconds(),t,3)}function zZ(e,t){return $M(e,t)+"000"}function LZ(e,t){return Ae(e.getMonth()+1,t,2)}function BZ(e,t){return Ae(e.getMinutes(),t,2)}function UZ(e,t){return Ae(e.getSeconds(),t,2)}function IZ(e){var t=e.getDay();return t===0?7:t}function HZ(e,t){return Ae(Gp.count(ha(e)-1,e),t,2)}function PM(e){var t=e.getDay();return t>=4||t===0?kl(e):kl.ceil(e)}function qZ(e,t){return e=PM(e),Ae(kl.count(ha(e),e)+(ha(e).getDay()===4),t,2)}function FZ(e){return e.getDay()}function GZ(e,t){return Ae(uh.count(ha(e)-1,e),t,2)}function VZ(e,t){return Ae(e.getFullYear()%100,t,2)}function KZ(e,t){return e=PM(e),Ae(e.getFullYear()%100,t,2)}function YZ(e,t){return Ae(e.getFullYear()%1e4,t,4)}function XZ(e,t){var n=e.getDay();return e=n>=4||n===0?kl(e):kl.ceil(e),Ae(e.getFullYear()%1e4,t,4)}function WZ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ae(t/60|0,"0",2)+Ae(t%60,"0",2)}function fj(e,t){return Ae(e.getUTCDate(),t,2)}function QZ(e,t){return Ae(e.getUTCHours(),t,2)}function ZZ(e,t){return Ae(e.getUTCHours()%12||12,t,2)}function JZ(e,t){return Ae(1+Fp.count(pa(e),e),t,3)}function RM(e,t){return Ae(e.getUTCMilliseconds(),t,3)}function eJ(e,t){return RM(e,t)+"000"}function tJ(e,t){return Ae(e.getUTCMonth()+1,t,2)}function nJ(e,t){return Ae(e.getUTCMinutes(),t,2)}function rJ(e,t){return Ae(e.getUTCSeconds(),t,2)}function aJ(e){var t=e.getUTCDay();return t===0?7:t}function iJ(e,t){return Ae(Vp.count(pa(e)-1,e),t,2)}function DM(e){var t=e.getUTCDay();return t>=4||t===0?zl(e):zl.ceil(e)}function oJ(e,t){return e=DM(e),Ae(zl.count(pa(e),e)+(pa(e).getUTCDay()===4),t,2)}function lJ(e){return e.getUTCDay()}function sJ(e,t){return Ae(ch.count(pa(e)-1,e),t,2)}function uJ(e,t){return Ae(e.getUTCFullYear()%100,t,2)}function cJ(e,t){return e=DM(e),Ae(e.getUTCFullYear()%100,t,2)}function fJ(e,t){return Ae(e.getUTCFullYear()%1e4,t,4)}function dJ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?zl(e):zl.ceil(e),Ae(e.getUTCFullYear()%1e4,t,4)}function hJ(){return"+0000"}function dj(){return"%"}function hj(e){return+e}function pj(e){return Math.floor(+e/1e3)}var No,kM,zM;pJ({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 pJ(e){return No=pZ(e),kM=No.format,No.parse,zM=No.utcFormat,No.utcParse,No}function mJ(e){return new Date(e)}function yJ(e){return e instanceof Date?+e:+new Date(+e)}function Dx(e,t,n,r,a,i,o,l,s,u){var d=Sx(),f=d.invert,h=d.domain,p=u(".%L"),y=u(":%S"),m=u("%I:%M"),b=u("%I %p"),g=u("%a %d"),S=u("%b %d"),x=u("%B"),v=u("%Y");function w(O){return(s(O)<O?p:l(O)<O?y:o(O)<O?m:i(O)<O?b:r(O)<O?a(O)<O?g:S:n(O)<O?x:v)(O)}return d.invert=function(O){return new Date(f(O))},d.domain=function(O){return arguments.length?h(Array.from(O,yJ)):h().map(mJ)},d.ticks=function(O){var j=h();return e(j[0],j[j.length-1],O??10)},d.tickFormat=function(O,j){return j==null?w:u(j)},d.nice=function(O){var j=h();return(!O||typeof O.range!="function")&&(O=t(j[0],j[j.length-1],O??10)),O?h(OM(j,O)):d},d.copy=function(){return Vc(d,Dx(e,t,n,r,a,i,o,l,s,u))},d}function vJ(){return tr.apply(Dx(dZ,hZ,ha,Px,Gp,Kc,Mx,Nx,Pi,kM).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function gJ(){return tr.apply(Dx(cZ,fZ,pa,Rx,Vp,Fp,$x,Cx,Pi,zM).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Kp(){var e=0,t=1,n,r,a,i,o=Zt,l=!1,s;function u(f){return f==null||isNaN(f=+f)?s:o(a===0?.5:(f=(i(f)-n)*a,l?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(l=!!f,u):l},u.interpolator=function(f){return arguments.length?(o=f,u):o};function d(f){return function(h){var p,y;return arguments.length?([p,y]=h,o=f(p,y),u):[o(0),o(1)]}}return u.range=d(As),u.rangeRound=d(xx),u.unknown=function(f){return arguments.length?(s=f,u):s},function(f){return i=f,n=f(e),r=f(t),a=n===r?0:1/(r-n),u}}function hi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function LM(){var e=di(Kp()(Zt));return e.copy=function(){return hi(e,LM())},ga.apply(e,arguments)}function BM(){var e=jx(Kp()).domain([1,10]);return e.copy=function(){return hi(e,BM()).base(e.base())},ga.apply(e,arguments)}function UM(){var e=Ax(Kp());return e.copy=function(){return hi(e,UM()).constant(e.constant())},ga.apply(e,arguments)}function kx(){var e=Ex(Kp());return e.copy=function(){return hi(e,kx()).exponent(e.exponent())},ga.apply(e,arguments)}function bJ(){return kx.apply(null,arguments).exponent(.5)}function IM(){var e=[],t=Zt;function n(r){if(r!=null&&!isNaN(r=+r))return t((Fc(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(ei),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)=>iQ(e,i/r))},n.copy=function(){return IM(t).domain(e)},ga.apply(n,arguments)}function Yp(){var e=0,t=.5,n=1,r=1,a,i,o,l,s,u=Zt,d,f=!1,h;function p(m){return isNaN(m=+m)?h:(m=.5+((m=+d(m))-i)*(r*m<r*i?l:s),u(f?Math.max(0,Math.min(1,m)):m))}p.domain=function(m){return arguments.length?([e,t,n]=m,a=d(e=+e),i=d(t=+t),o=d(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(m){return arguments.length?(f=!!m,p):f},p.interpolator=function(m){return arguments.length?(u=m,p):u};function y(m){return function(b){var g,S,x;return arguments.length?([g,S,x]=b,u=MQ(m,[g,S,x]),p):[u(0),u(.5),u(1)]}}return p.range=y(As),p.rangeRound=y(xx),p.unknown=function(m){return arguments.length?(h=m,p):h},function(m){return d=m,a=m(e),i=m(t),o=m(n),l=a===i?0:.5/(i-a),s=i===o?0:.5/(o-i),r=i<a?-1:1,p}}function HM(){var e=di(Yp()(Zt));return e.copy=function(){return hi(e,HM())},ga.apply(e,arguments)}function qM(){var e=jx(Yp()).domain([.1,1,10]);return e.copy=function(){return hi(e,qM()).base(e.base())},ga.apply(e,arguments)}function FM(){var e=Ax(Yp());return e.copy=function(){return hi(e,FM()).constant(e.constant())},ga.apply(e,arguments)}function zx(){var e=Ex(Yp());return e.copy=function(){return hi(e,zx()).exponent(e.exponent())},ga.apply(e,arguments)}function xJ(){return zx.apply(null,arguments).exponent(.5)}const mj=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Gu,scaleDiverging:HM,scaleDivergingLog:qM,scaleDivergingPow:zx,scaleDivergingSqrt:xJ,scaleDivergingSymlog:FM,scaleIdentity:wM,scaleImplicit:bg,scaleLinear:lh,scaleLog:jM,scaleOrdinal:vx,scalePoint:mu,scalePow:_x,scaleQuantile:_M,scaleQuantize:TM,scaleRadial:EM,scaleSequential:LM,scaleSequentialLog:BM,scaleSequentialPow:kx,scaleSequentialQuantile:IM,scaleSequentialSqrt:bJ,scaleSequentialSymlog:UM,scaleSqrt:eZ,scaleSymlog:AM,scaleThreshold:NM,scaleTime:vJ,scaleUtc:gJ,tickFormat:SM},Symbol.toStringTag,{value:"Module"}));var SJ=ys;function wJ(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&&!SJ(o):n(o,l)))var l=o,s=i}return s}var Xp=wJ;function OJ(e,t){return e>t}var GM=OJ,jJ=Xp,AJ=GM,EJ=js;function _J(e){return e&&e.length?jJ(e,EJ,AJ):void 0}var TJ=_J;const qa=Ne(TJ);function NJ(e,t){return e<t}var VM=NJ,CJ=Xp,MJ=VM,$J=js;function PJ(e){return e&&e.length?CJ(e,$J,MJ):void 0}var RJ=PJ;const Wp=Ne(RJ);var DJ=Q0,kJ=kr,zJ=tM,LJ=hn;function BJ(e,t){var n=LJ(e)?DJ:zJ;return n(e,kJ(t))}var UJ=BJ,IJ=JC,HJ=UJ;function qJ(e,t){return IJ(HJ(e,t),1)}var FJ=qJ;const GJ=Ne(FJ);var VJ=dx;function KJ(e,t){return VJ(e,t)}var YJ=KJ;const lo=Ne(YJ);var Es=1e9,XJ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Bx,Ze=!0,Zn="[DecimalError] ",Xi=Zn+"Invalid argument: ",Lx=Zn+"Exponent out of range: ",_s=Math.floor,Ti=Math.pow,WJ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,wn,Tt=1e7,Ve=7,KM=9007199254740991,fh=_s(KM/Ve),ne={};ne.absoluteValue=ne.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};ne.comparedTo=ne.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};ne.decimalPlaces=ne.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*Ve;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};ne.dividedBy=ne.div=function(e){return ia(this,new this.constructor(e))};ne.dividedToIntegerBy=ne.idiv=function(e){var t=this,n=t.constructor;return ze(ia(t,new n(e),0,1),n.precision)};ne.equals=ne.eq=function(e){return!this.cmp(e)};ne.exponent=function(){return bt(this)};ne.greaterThan=ne.gt=function(e){return this.cmp(e)>0};ne.greaterThanOrEqualTo=ne.gte=function(e){return this.cmp(e)>=0};ne.isInteger=ne.isint=function(){return this.e>this.d.length-2};ne.isNegative=ne.isneg=function(){return this.s<0};ne.isPositive=ne.ispos=function(){return this.s>0};ne.isZero=function(){return this.s===0};ne.lessThan=ne.lt=function(e){return this.cmp(e)<0};ne.lessThanOrEqualTo=ne.lte=function(e){return this.cmp(e)<1};ne.logarithm=ne.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(wn))throw Error(Zn+"NaN");if(n.s<1)throw Error(Zn+(n.s?"NaN":"-Infinity"));return n.eq(wn)?new r(0):(Ze=!1,t=ia(Wu(n,i),Wu(e,i),i),Ze=!0,ze(t,a))};ne.minus=ne.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?WM(t,e):YM(t,(e.s=-e.s,e))};ne.modulo=ne.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(Zn+"NaN");return n.s?(Ze=!1,t=ia(n,e,0,1).times(e),Ze=!0,n.minus(t)):ze(new r(n),a)};ne.naturalExponential=ne.exp=function(){return XM(this)};ne.naturalLogarithm=ne.ln=function(){return Wu(this)};ne.negated=ne.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};ne.plus=ne.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?YM(t,e):WM(t,(e.s=-e.s,e))};ne.precision=ne.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Xi+e);if(t=bt(a)+1,r=a.d.length-1,n=r*Ve+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};ne.squareRoot=ne.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(Zn+"NaN")}for(e=bt(l),Ze=!1,a=Math.sqrt(+l),a==0||a==1/0?(t=Ar(l.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=_s((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),Ar(i.d).slice(0,o)===(t=Ar(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),a==o&&t=="4999"){if(ze(i,n+1,0),i.times(i).eq(l)){r=i;break}}else if(t!="9999")break;o+=4}return Ze=!0,ze(r,n)};ne.times=ne.mul=function(e){var t,n,r,a,i,o,l,s,u,d=this,f=d.constructor,h=d.d,p=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.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%Tt|0,t=l/Tt|0;i[a]=(i[a]+t)%Tt|0}for(;!i[--o];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Ze?ze(e,f.precision):e};ne.toDecimalPlaces=ne.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Mr(e,0,Es),t===void 0?t=r.rounding:Mr(t,0,8),ze(n,e+bt(n)+1,t))};ne.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=so(r,!0):(Mr(e,0,Es),t===void 0?t=a.rounding:Mr(t,0,8),r=ze(new a(r),e+1,t),n=so(r,!0,e+1)),n};ne.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?so(a):(Mr(e,0,Es),t===void 0?t=i.rounding:Mr(t,0,8),r=ze(new i(a),e+bt(a)+1,t),n=so(r.abs(),!1,e+bt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};ne.toInteger=ne.toint=function(){var e=this,t=e.constructor;return ze(new t(e),bt(e)+1,t.rounding)};ne.toNumber=function(){return+this};ne.toPower=ne.pow=function(e){var t,n,r,a,i,o,l=this,s=l.constructor,u=12,d=+(e=new s(e));if(!e.s)return new s(wn);if(l=new s(l),!l.s){if(e.s<1)throw Error(Zn+"Infinity");return l}if(l.eq(wn))return l;if(r=s.precision,e.eq(wn))return ze(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,i=l.s,o){if((n=d<0?-d:d)<=KM){for(a=new s(wn),t=Math.ceil(r/Ve+4),Ze=!1;n%2&&(a=a.times(l),vj(a.d,t)),n=_s(n/2),n!==0;)l=l.times(l),vj(l.d,t);return Ze=!0,e.s<0?new s(wn).div(a):ze(a,r)}}else if(i<0)throw Error(Zn+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,Ze=!1,a=e.times(Wu(l,r+u)),Ze=!0,a=XM(a),a.s=i,a};ne.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=bt(a),r=so(a,n<=i.toExpNeg||n>=i.toExpPos)):(Mr(e,1,Es),t===void 0?t=i.rounding:Mr(t,0,8),a=ze(new i(a),e,t),n=bt(a),r=so(a,e<=n||n<=i.toExpNeg,e)),r};ne.toSignificantDigits=ne.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Mr(e,1,Es),t===void 0?t=r.rounding:Mr(t,0,8)),ze(new r(n),e,t)};ne.toString=ne.valueOf=ne.val=ne.toJSON=ne[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=bt(e),n=e.constructor;return so(e,t<=n.toExpNeg||t>=n.toExpPos)};function YM(e,t){var n,r,a,i,o,l,s,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),Ze?ze(t,f):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(f/Ve),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)/Tt|0,s[i]%=Tt;for(n&&(s.unshift(n),++a),l=s.length;s[--l]==0;)s.pop();return t.d=s,t.e=a,Ze?ze(t,f):t}function Mr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Xi+e)}function Ar(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=Ve-r.length,n&&(i+=Ea(n)),i+=r;o=e[t],r=o+"",n=Ve-r.length,n&&(i+=Ea(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%Tt|0,o=i/Tt|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*Tt+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,o){var l,s,u,d,f,h,p,y,m,b,g,S,x,v,w,O,j,_,E=r.constructor,N=r.s==a.s?1:-1,$=r.d,C=a.d;if(!r.s)return new E(r);if(!a.s)throw Error(Zn+"Division by zero");for(s=r.e-a.e,j=C.length,w=$.length,p=new E(N),y=p.d=[],u=0;C[u]==($[u]||0);)++u;if(C[u]>($[u]||0)&&--s,i==null?S=i=E.precision:o?S=i+(bt(r)-bt(a))+1:S=i,S<0)return new E(0);if(S=S/Ve+2|0,u=0,j==1)for(d=0,C=C[0],S++;(u<w||d)&&S--;u++)x=d*Tt+($[u]||0),y[u]=x/C|0,d=x%C|0;else{for(d=Tt/(C[0]+1)|0,d>1&&(C=e(C,d),$=e($,d),j=C.length,w=$.length),v=j,m=$.slice(0,j),b=m.length;b<j;)m[b++]=0;_=C.slice(),_.unshift(0),O=C[0],C[1]>=Tt/2&&++O;do d=0,l=t(C,m,j,b),l<0?(g=m[0],j!=b&&(g=g*Tt+(m[1]||0)),d=g/O|0,d>1?(d>=Tt&&(d=Tt-1),f=e(C,d),h=f.length,b=m.length,l=t(f,m,h,b),l==1&&(d--,n(f,j<h?_:C,h))):(d==0&&(l=d=1),f=C.slice()),h=f.length,h<b&&f.unshift(0),n(m,f,b),l==-1&&(b=m.length,l=t(C,m,j,b),l<1&&(d++,n(m,j<b?_:C,b))),b=m.length):l===0&&(d++,m=[0]),y[u++]=d,l&&m[0]?m[b++]=$[v]||0:(m=[$[v]],b=1);while((v++<w||m[0]!==void 0)&&S--)}return y[0]||y.shift(),p.e=s,ze(p,o?i+bt(p)+1:i)}}();function XM(e,t){var n,r,a,i,o,l,s=0,u=0,d=e.constructor,f=d.precision;if(bt(e)>16)throw Error(Lx+bt(e));if(!e.s)return new d(wn);for(Ze=!1,l=f,o=new d(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Ti(2,u))/Math.LN10*2+5|0,l+=r,n=a=i=new d(wn),d.precision=l;;){if(a=ze(a.times(e),l),n=n.times(++s),o=i.plus(ia(a,n,l)),Ar(o.d).slice(0,l)===Ar(i.d).slice(0,l)){for(;u--;)i=ze(i.times(i),l);return d.precision=f,t==null?(Ze=!0,ze(i,f)):i}i=o}}function bt(e){for(var t=e.e*Ve,n=e.d[0];n>=10;n/=10)t++;return t}function jy(e,t,n){if(t>e.LN10.sd())throw Ze=!0,n&&(e.precision=n),Error(Zn+"LN10 precision limit exceeded");return ze(new e(e.LN10),t)}function Ea(e){for(var t="";e--;)t+="0";return t}function Wu(e,t){var n,r,a,i,o,l,s,u,d,f=1,h=10,p=e,y=p.d,m=p.constructor,b=m.precision;if(p.s<1)throw Error(Zn+(p.s?"NaN":"-Infinity"));if(p.eq(wn))return new m(0);if(t==null?(Ze=!1,u=b):u=t,p.eq(10))return t==null&&(Ze=!0),jy(m,u);if(u+=h,m.precision=u,n=Ar(y),r=n.charAt(0),i=bt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Ar(p.d),r=n.charAt(0),f++;i=bt(p),r>1?(p=new m("0."+n),i++):p=new m(r+"."+n.slice(1))}else return s=jy(m,u+2,b).times(i+""),p=Wu(new m(r+"."+n.slice(1)),u-h).plus(s),m.precision=b,t==null?(Ze=!0,ze(p,b)):p;for(l=o=p=ia(p.minus(wn),p.plus(wn),u),d=ze(p.times(p),u),a=3;;){if(o=ze(o.times(d),u),s=l.plus(ia(o,new m(a),u)),Ar(s.d).slice(0,u)===Ar(l.d).slice(0,u))return l=l.times(2),i!==0&&(l=l.plus(jy(m,u+2,b).times(i+""))),l=ia(l,new m(f),u),m.precision=b,t==null?(Ze=!0,ze(l,b)):l;l=s,a+=2}}function yj(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=_s(n/Ve),e.d=[],r=(n+1)%Ve,n<0&&(r+=Ve),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=Ve;r<a;)e.d.push(+t.slice(r,r+=Ve));t=t.slice(r),r=Ve-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),Ze&&(e.e>fh||e.e<-fh))throw Error(Lx+n)}else e.s=0,e.e=0,e.d=[0];return e}function ze(e,t,n){var r,a,i,o,l,s,u,d,f=e.d;for(o=1,i=f[0];i>=10;i/=10)o++;if(r=t-o,r<0)r+=Ve,a=t,u=f[d=0];else{if(d=Math.ceil((r+1)/Ve),i=f.length,d>=i)return e;for(u=i=f[d],o=1;i>=10;i/=10)o++;r%=Ve,a=r-Ve+o}if(n!==void 0&&(i=Ti(10,o-a-1),l=u/i%10|0,s=t<0||f[d+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/Ti(10,o-a):0:f[d-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return s?(i=bt(e),f.length=1,t=t-i-1,f[0]=Ti(10,(Ve-t%Ve)%Ve),e.e=_s(-t/Ve)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=d,i=1,d--):(f.length=d+1,i=Ti(10,Ve-r),f[d]=a>0?(u/Ti(10,o-a)%Ti(10,a)|0)*i:0),s)for(;;)if(d==0){(f[0]+=i)==Tt&&(f[0]=1,++e.e);break}else{if(f[d]+=i,f[d]!=Tt)break;f[d--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(Ze&&(e.e>fh||e.e<-fh))throw Error(Lx+bt(e));return e}function WM(e,t){var n,r,a,i,o,l,s,u,d,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),Ze?ze(t,p):t;if(s=e.d,f=t.d,r=t.e,u=e.e,s=s.slice(),o=u-r,o){for(d=o<0,d?(n=s,o=-o,l=f.length):(n=f,r=u,l=s.length),a=Math.max(Math.ceil(p/Ve),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=f.length,d=a<l,d&&(l=a),a=0;a<l;a++)if(s[a]!=f[a]){d=s[a]<f[a];break}o=0}for(d&&(n=s,s=f,f=n,t.s=-t.s),l=s.length,a=f.length-l;a>0;--a)s[l++]=0;for(a=f.length;a>o;){if(s[--a]<f[a]){for(i=a;i&&s[--i]===0;)s[i]=Tt-1;--s[i],s[a]+=Tt}s[a]-=f[a]}for(;s[--l]===0;)s.pop();for(;s[0]===0;s.shift())--r;return s[0]?(t.d=s,t.e=r,Ze?ze(t,p):t):new h(0)}function so(e,t,n){var r,a=bt(e),i=Ar(e.d),o=i.length;return t?(n&&(r=n-o)>0?i=i.charAt(0)+"."+i.slice(1)+Ea(r):o>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+Ea(-a-1)+i,n&&(r=n-o)>0&&(i+=Ea(r))):a>=o?(i+=Ea(a+1-o),n&&(r=n-a-1)>0&&(i=i+"."+Ea(r))):((r=a+1)<o&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-o)>0&&(a+1===o&&(i+="."),i+=Ea(r))),e.s<0?"-"+i:i}function vj(e,t){if(e.length>t)return e.length=t,!0}function QM(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(Xi+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 yj(o,i.toString())}else if(typeof i!="string")throw Error(Xi+i);if(i.charCodeAt(0)===45?(i=i.slice(1),o.s=-1):o.s=1,WJ.test(i))yj(o,i);else throw Error(Xi+i)}if(a.prototype=ne,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=QM,a.config=a.set=QJ,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 QJ(e){if(!e||typeof e!="object")throw Error(Zn+"Object expected");var t,n,r,a=["precision",1,Es,"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(_s(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Xi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Xi+n+": "+r);return this}var Bx=QM(XJ);wn=new Bx(1);const De=Bx;function ZJ(e){return nee(e)||tee(e)||eee(e)||JJ()}function JJ(){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 eee(e,t){if(e){if(typeof e=="string")return Og(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 Og(e,t)}}function tee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nee(e){if(Array.isArray(e))return Og(e)}function Og(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 ree=function(t){return t},ZM={},JM=function(t){return t===ZM},gj=function(t){return function n(){return arguments.length===0||arguments.length===1&&JM(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},aee=function e(t,n){return t===1?n:gj(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!==ZM}).length;return o>=t?n.apply(void 0,a):e(t-o,gj(function(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];var d=a.map(function(f){return JM(f)?s.shift():f});return n.apply(void 0,ZJ(d).concat(s))}))})},Qp=function(t){return aee(t.length,t)},jg=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},iee=Qp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),oee=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return ree;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))}},Ag=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},e$=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 lee(e){var t;return e===0?t=1:t=Math.floor(new De(e).abs().log(10).toNumber())+1,t}function see(e,t,n){for(var r=new De(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var uee=Qp(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),cee=Qp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),fee=Qp(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:see,getDigitCount:lee,interpolateNumber:uee,uninterpolateNumber:cee,uninterpolateTruncation:fee};function Eg(e){return pee(e)||hee(e)||t$(e)||dee()}function dee(){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 hee(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function pee(e){if(Array.isArray(e))return _g(e)}function Qu(e,t){return vee(e)||yee(e,t)||t$(e,t)||mee()}function mee(){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 t$(e,t){if(e){if(typeof e=="string")return _g(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 _g(e,t)}}function _g(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 yee(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 vee(e){if(Array.isArray(e))return e}function n$(e){var t=Qu(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function r$(e,t,n){if(e.lte(0))return new De(0);var r=Zp.getDigitCount(e.toNumber()),a=new De(10).pow(r),i=e.div(a),o=r!==1?.05:.1,l=new De(Math.ceil(i.div(o).toNumber())).add(n).mul(o),s=l.mul(a);return t?s:new De(Math.ceil(s))}function gee(e,t,n){var r=1,a=new De(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new De(10).pow(Zp.getDigitCount(e)-1),a=new De(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new De(Math.floor(e)))}else e===0?a=new De(Math.floor((t-1)/2)):n||(a=new De(Math.floor(e)));var o=Math.floor((t-1)/2),l=oee(iee(function(s){return a.add(new De(s-o).mul(r)).toNumber()}),jg);return l(0,t)}function a$(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 De(0),tickMin:new De(0),tickMax:new De(0)};var i=r$(new De(t).sub(e).div(n-1),r,a),o;e<=0&&t>=0?o=new De(0):(o=new De(e).add(t).div(2),o=o.sub(new De(o).mod(i)));var l=Math.ceil(o.sub(e).div(i).toNumber()),s=Math.ceil(new De(t).sub(o).div(i).toNumber()),u=l+s+1;return u>n?a$(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 De(l).mul(i)),tickMax:o.add(new De(s).mul(i))})}function bee(e){var t=Qu(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=n$([n,r]),s=Qu(l,2),u=s[0],d=s[1];if(u===-1/0||d===1/0){var f=d===1/0?[u].concat(Eg(jg(0,a-1).map(function(){return 1/0}))):[].concat(Eg(jg(0,a-1).map(function(){return-1/0})),[d]);return n>r?Ag(f):f}if(u===d)return gee(u,a,i);var h=a$(u,d,o,i),p=h.step,y=h.tickMin,m=h.tickMax,b=Zp.rangeStep(y,m.add(new De(.1).mul(p)),p);return n>r?Ag(b):b}function xee(e,t){var n=Qu(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=n$([r,a]),l=Qu(o,2),s=l[0],u=l[1];if(s===-1/0||u===1/0)return[r,a];if(s===u)return[s];var d=Math.max(t,2),f=r$(new De(u).sub(s).div(d-1),i,0),h=[].concat(Eg(Zp.rangeStep(new De(s),new De(u).sub(new De(.99).mul(f)),f)),[u]);return r>a?Ag(h):h}var See=e$(bee),wee=e$(xee),Oee="Invariant failed";function uo(e,t){throw new Error(Oee)}var jee=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ll(e){"@babel/helpers - typeof";return Ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ll(e)}function 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 Aee(e,t){return Nee(e)||Tee(e,t)||_ee(e,t)||Eee()}function Eee(){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 _ee(e,t){if(e){if(typeof e=="string")return bj(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 bj(e,t)}}function bj(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 Tee(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Nee(e){if(Array.isArray(e))return e}function Cee(e,t){if(e==null)return{};var n=Mee(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 Mee(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 $ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pee(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,l$(r.key),r)}}function Ree(e,t,n){return t&&Pee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dee(e,t,n){return t=hh(t),kee(e,i$()?Reflect.construct(t,n||[],hh(e).constructor):t.apply(e,n))}function kee(e,t){if(t&&(Ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zee(e)}function zee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i$=function(){return!!e})()}function hh(e){return hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hh(e)}function Lee(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 o$(e,t,n){return t=l$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l$(e){var t=Bee(e,"string");return Ll(t)=="symbol"?t:t+""}function Bee(e,t){if(Ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Yc=function(e){function t(){return $ee(this,t),Dee(this,t,arguments)}return Lee(t,e),Ree(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,d=r.xAxis,f=r.yAxis,h=Cee(r,jee),p=oe(h,!1);this.props.direction==="x"&&d.type!=="number"&&uo();var y=s.map(function(m){var b=u(m,l),g=b.x,S=b.y,x=b.value,v=b.errorVal;if(!v)return null;var w=[],O,j;if(Array.isArray(v)){var _=Aee(v,2);O=_[0],j=_[1]}else O=j=v;if(i==="vertical"){var E=d.scale,N=S+a,$=N+o,C=N-o,L=E(x-O),k=E(x+j);w.push({x1:k,y1:$,x2:k,y2:C}),w.push({x1:L,y1:N,x2:k,y2:N}),w.push({x1:L,y1:$,x2:L,y2:C})}else if(i==="horizontal"){var R=f.scale,M=g+a,z=M-o,B=M+o,F=R(x-O),V=R(x+j);w.push({x1:z,y1:V,x2:B,y2:V}),w.push({x1:M,y1:F,x2:M,y2:V}),w.push({x1:z,y1:F,x2:B,y2:F})}return T.createElement(Se,dh({className:"recharts-errorBar",key:"bar-".concat(w.map(function(ee){return"".concat(ee.x1,"-").concat(ee.x2,"-").concat(ee.y1,"-").concat(ee.y2)}))},p),w.map(function(ee){return T.createElement("line",dh({},ee,{key:"line-".concat(ee.x1,"-").concat(ee.x2,"-").concat(ee.y1,"-").concat(ee.y2)}))}))});return T.createElement(Se,{className:"recharts-errorBars"},y)}}])}(T.Component);o$(Yc,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});o$(Yc,"displayName","ErrorBar");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 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 bi(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){Uee(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 Uee(e,t,n){return t=Iee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iee(e){var t=Hee(e,"string");return Zu(t)=="symbol"?t:t+""}function Hee(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(t==="string"?String:Number)(e)}var s$=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,o=vn(n,jr);if(!o)return null;var l=jr.defaultProps,s=l!==void 0?bi(bi({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:i==="children"?u=(r||[]).reduce(function(d,f){var h=f.item,p=f.props,y=p.sectors||p.data||[];return d.concat(y.map(function(m){return{type:o.props.iconType||h.props.legendType,value:m.name,color:m.fill,payload:m}}))},[]):u=(r||[]).map(function(d){var f=d.item,h=f.type.defaultProps,p=h!==void 0?bi(bi({},h),f.props):{},y=p.dataKey,m=p.name,b=p.legendType,g=p.hide;return{inactive:g,dataKey:y,type:s.iconType||b||"square",color:Ux(f),value:m||y,payload:p}}),bi(bi(bi({},s),jr.getWithHeight(o,a)),{},{payload:u,item:o})};function Ju(e){"@babel/helpers - typeof";return Ju=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ju(e)}function Sj(e){return Vee(e)||Gee(e)||Fee(e)||qee()}function qee(){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 Fee(e,t){if(e){if(typeof e=="string")return Ng(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 Ng(e,t)}}function Gee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Vee(e){if(Array.isArray(e))return Ng(e)}function Ng(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 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 at(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){sl(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 sl(e,t,n){return t=Kee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kee(e){var t=Yee(e,"string");return Ju(t)=="symbol"?t:t+""}function Yee(e,t){if(Ju(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ju(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function st(e,t,n){return pe(e)||pe(t)?n:jt(t)?Tn(e,t,n):ce(t)?t(e):n}function yu(e,t,n,r){var a=GJ(e,function(l){return st(l,t)});if(n==="number"){var i=a.filter(function(l){return K(l)||parseFloat(l)});return i.length?[Wp(i),qa(i)]:[1/0,-1/0]}var o=r?a.filter(function(l){return!pe(l)}):a;return o.map(function(l){return jt(l)||l instanceof Date?l:""})}var Xee=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 d=u>0?a[u-1].coordinate:a[l-1].coordinate,f=a[u].coordinate,h=u>=l-1?a[0].coordinate:a[u+1].coordinate,p=void 0;if(Wt(f-d)!==Wt(h-f)){var y=[];if(Wt(h-f)===Wt(s[1]-s[0])){p=h;var m=f+s[1]-s[0];y[0]=Math.min(m,(m+d)/2),y[1]=Math.max(m,(m+d)/2)}else{p=d;var b=h+s[1]-s[0];y[0]=Math.min(f,(b+f)/2),y[1]=Math.max(f,(b+f)/2)}var g=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>g[0]&&t<=g[1]||t>=y[0]&&t<=y[1]){o=a[u].index;break}}else{var S=Math.min(d,h),x=Math.max(d,h);if(t>(S+f)/2&&t<=(x+f)/2){o=a[u].index;break}}}else for(var v=0;v<l;v++)if(v===0&&t<=(r[v].coordinate+r[v+1].coordinate)/2||v>0&&v<l-1&&t>(r[v].coordinate+r[v-1].coordinate)/2&&t<=(r[v].coordinate+r[v+1].coordinate)/2||v===l-1&&t>(r[v].coordinate+r[v-1].coordinate)/2){o=r[v].index;break}return o},Ux=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?at(at({},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},Wee=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 d=i[l[s]].stackGroups,f=Object.keys(d),h=0,p=f.length;h<p;h++){var y=d[f[h]],m=y.items,b=y.cateAxisId,g=m.filter(function(j){return aa(j.type).indexOf("Bar")>=0});if(g&&g.length){var S=g[0].type.defaultProps,x=S!==void 0?at(at({},S),g[0].props):g[0].props,v=x.barSize,w=x[b];o[w]||(o[w]=[]);var O=pe(v)?n:v;o[w].push({item:g[0],stackList:g.slice(1),barSize:pe(O)?void 0:Qt(O,r,0)})}}return o},Qee=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=Qt(n,a,0,!0),d,f=[];if(o[0].barSize===+o[0].barSize){var h=!1,p=a/s,y=o.reduce(function(v,w){return v+w.barSize||0},0);y+=(s-1)*u,y>=a&&(y-=(s-1)*u,u=0),y>=a&&p>0&&(h=!0,p*=.9,y=s*p);var m=(a-y)/2>>0,b={offset:m-u,size:0};d=o.reduce(function(v,w){var O={item:w.item,position:{offset:b.offset+b.size+u,size:h?p:w.barSize}},j=[].concat(Sj(v),[O]);return b=j[j.length-1].position,w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){j.push({item:_,position:b})}),j},f)}else{var g=Qt(r,a,0,!0);a-2*g-(s-1)*u<=0&&(u=0);var S=(a-2*g-(s-1)*u)/s;S>1&&(S>>=0);var x=l===+l?Math.min(S,l):S;d=o.reduce(function(v,w,O){var j=[].concat(Sj(v),[{item:w.item,position:{offset:g+(S+u)*O+(S-x)/2,size:x}}]);return w.stackList&&w.stackList.length&&w.stackList.forEach(function(_){j.push({item:_,position:j[j.length-1].position})}),j},f)}return d},Zee=function(t,n,r,a){var i=r.children,o=r.width,l=r.margin,s=o-(l.left||0)-(l.right||0),u=s$({children:i,legendWidth:s});if(u){var d=a||{},f=d.width,h=d.height,p=u.align,y=u.verticalAlign,m=u.layout;if((m==="vertical"||m==="horizontal"&&y==="middle")&&p!=="center"&&K(t[p]))return at(at({},t),{},sl({},p,t[p]+(f||0)));if((m==="horizontal"||m==="vertical"&&p==="center")&&y!=="middle"&&K(t[y]))return at(at({},t),{},sl({},y,t[y]+(h||0)))}return t},Jee=function(t,n,r){return pe(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},u$=function(t,n,r,a,i){var o=n.props.children,l=Nn(o,Yc).filter(function(u){return Jee(a,i,u.props.direction)});if(l&&l.length){var s=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,d){var f=st(d,r);if(pe(f))return u;var h=Array.isArray(f)?[Wp(f),qa(f)]:[f,f],p=s.reduce(function(y,m){var b=st(d,m,0),g=h[0]-Math.abs(Array.isArray(b)?b[0]:b),S=h[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(g,y[0]),Math.max(S,y[1])]},[1/0,-1/0]);return[Math.min(p[0],u[0]),Math.max(p[1],u[1])]},[1/0,-1/0])}return null},ete=function(t,n,r,a,i){var o=n.map(function(l){return u$(t,l,r,i,a)}).filter(function(l){return!pe(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},c$=function(t,n,r,a,i){var o=n.map(function(s){var u=s.props.dataKey;return r==="number"&&u&&u$(t,s,u,a)||yu(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 d=0,f=u.length;d<f;d++)l[u[d]]||(l[u[d]]=!0,s.push(u[d]));return s},[])},f$=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},d$=function(t,n,r,a){if(a)return t.map(function(s){return s.coordinate});var i,o,l=t.map(function(s){return s.coordinate===n&&(i=!0),s.coordinate===r&&(o=!0),s.coordinate});return i||l.push(n),o||l.push(r),l},Jr=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?Wt(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(f){var h=i?i.indexOf(f):f;return{coordinate:a(h)+u,value:f,offset:u}});return d.filter(function(f){return!Ss(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:a(f)+u,value:f,index:h,offset:u}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+u,value:f,offset:u}}):a.domain().map(function(f,h){return{coordinate:a(f)+u,value:i?i[f]:f,index:h,offset:u}})},Ay=new WeakMap,Cf=function(t,n){if(typeof n!="function")return t;Ay.has(t)||Ay.set(t,new WeakMap);var r=Ay.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},h$=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:Gu(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:lh(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:mu(),realScaleType:"point"}:i==="category"?{scale:Gu(),realScaleType:"band"}:{scale:lh(),realScaleType:"linear"};if(ao(a)){var s="scale".concat(Dp(a));return{scale:(mj[s]||mu)(),realScaleType:mj[s]?s:"point"}}return ce(a)?{scale:a}:{scale:mu(),realScaleType:"point"}},Oj=1e-4,p$=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])-Oj,o=Math.max(a[0],a[1])+Oj,l=t(n[0]),s=t(n[r-1]);(l<i||l>o||s<i||s>o)&&t.domain([n[0],n[r-1]])}},tte=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},nte=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},rte=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=Ss(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])}},ate=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=Ss(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)}},ite={sign:rte,expand:jH,none:Cl,silhouette:AH,wiggle:EH,positive:ate},ote=function(t,n,r){var a=n.map(function(l){return l.props.dataKey}),i=ite[r],o=OH().keys(a).value(function(l,s){return+st(l,s,0)}).order(eg).offset(i);return o(t)},lte=function(t,n,r,a,i,o){if(!t)return null;var l=o?n.reverse():n,s={},u=l.reduce(function(f,h){var p,y=(p=h.type)!==null&&p!==void 0&&p.defaultProps?at(at({},h.type.defaultProps),h.props):h.props,m=y.stackId,b=y.hide;if(b)return f;var g=y[r],S=f[g]||{hasStack:!1,stackGroups:{}};if(jt(m)){var x=S.stackGroups[m]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),S.hasStack=!0,S.stackGroups[m]=x}else S.stackGroups[bo("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return at(at({},f),{},sl({},g,S))},s),d={};return Object.keys(u).reduce(function(f,h){var p=u[h];if(p.hasStack){var y={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(m,b){var g=p.stackGroups[b];return at(at({},m),{},sl({},b,{numericAxisId:r,cateAxisId:a,items:g.items,stackedData:ote(t,g.items,i)}))},y)}return at(at({},f),{},sl({},h,p))},d)},m$=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 d=See(u,i,l);return t.domain([Wp(d),qa(d)]),{niceTicks:d}}if(i&&a==="number"){var f=t.domain(),h=wee(f,i,l);return{niceTicks:h}}return null};function ph(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,i=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!pe(a[t.dataKey])){var l=Bd(n,"value",a[t.dataKey]);if(l)return l.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var s=st(a,pe(o)?t.dataKey:o);return pe(s)?null:t.scale(s)}var jj=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=st(o,n.dataKey,n.domain[l]);return pe(s)?null:n.scale(s)-i/2+a},ste=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]},ute=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?at(at({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(jt(i)){var o=n[i];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},cte=function(t){return t.reduce(function(n,r){return[Wp(r.concat([n[0]]).filter(K)),qa(r.concat([n[1]]).filter(K))]},[1/0,-1/0])},y$=function(t,n,r){return Object.keys(t).reduce(function(a,i){var o=t[i],l=o.stackedData,s=l.reduce(function(u,d){var f=cte(d.slice(n,r+1));return[Math.min(u[0],f[0]),Math.max(u[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],a[0]),Math.max(s[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},Aj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ej=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Cg=function(t,n,r){if(ce(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(Aj.test(t[0])){var i=+Aj.exec(t[0])[1];a[0]=n[0]-i}else ce(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(Ej.test(t[1])){var o=+Ej.exec(t[1])[1];a[1]=n[1]+o}else ce(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},mh=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=px(n,function(f){return f.coordinate}),o=1/0,l=1,s=i.length;l<s;l++){var u=i[l],d=i[l-1];o=Math.min((u.coordinate||0)-(d.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},_j=function(t,n,r){return!t||!t.length||lo(t,Tn(r,"type.defaultProps.domain"))?n:t},v$=function(t,n){var r=t.type.defaultProps?at(at({},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,d=r.hide;return at(at({},oe(t,!1)),{},{dataKey:a,unit:o,formatter:l,name:i||a,color:Ux(t),value:st(n,a),type:s,payload:n,chartType:u,hide:d})};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 Tj(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 Fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tj(Object(n),!0).forEach(function(r){g$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g$(e,t,n){return t=fte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fte(e){var t=dte(e,"string");return ec(t)=="symbol"?t:t+""}function dte(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 hte(e,t){return vte(e)||yte(e,t)||mte(e,t)||pte()}function pte(){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 mte(e,t){if(e){if(typeof e=="string")return Nj(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 Nj(e,t)}}function Nj(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 yte(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function vte(e){if(Array.isArray(e))return e}var yh=Math.PI/180,gte=function(t){return t*180/Math.PI},He=function(t,n,r,a){return{x:t+Math.cos(-yh*a)*r,y:n+Math.sin(-yh*a)*r}},b$=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},bte=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.startAngle,u=t.endAngle,d=Qt(t.cx,o,o/2),f=Qt(t.cy,l,l/2),h=b$(o,l,r),p=Qt(t.innerRadius,h,0),y=Qt(t.outerRadius,h,h*.8),m=Object.keys(n);return m.reduce(function(b,g){var S=n[g],x=S.domain,v=S.reversed,w;if(pe(S.range))a==="angleAxis"?w=[s,u]:a==="radiusAxis"&&(w=[p,y]),v&&(w=[w[1],w[0]]);else{w=S.range;var O=w,j=hte(O,2);s=j[0],u=j[1]}var _=h$(S,i),E=_.realScaleType,N=_.scale;N.domain(x).range(w),p$(N);var $=m$(N,Fr(Fr({},S),{},{realScaleType:E})),C=Fr(Fr(Fr({},S),$),{},{range:w,radius:y,realScaleType:E,scale:N,cx:d,cy:f,innerRadius:p,outerRadius:y,startAngle:s,endAngle:u});return Fr(Fr({},b),{},g$({},g,C))},{})},xte=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))},Ste=function(t,n){var r=t.x,a=t.y,i=n.cx,o=n.cy,l=xte({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:gte(u),angleInRadian:u}},wte=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}},Ote=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},Cj=function(t,n){var r=t.x,a=t.y,i=Ste({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 d=wte(n),f=d.startAngle,h=d.endAngle,p=l,y;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;y=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=f}return y?Fr(Fr({},n),{},{radius:o,angle:Ote(p,n)}):null},x$=function(t){return!A.isValidElement(t)&&!ce(t)&&typeof t!="boolean"?t.className:""};function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}var jte=["offset"];function Ate(e){return Nte(e)||Tte(e)||_te(e)||Ete()}function Ete(){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 _te(e,t){if(e){if(typeof e=="string")return Mg(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 Mg(e,t)}}function Tte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nte(e){if(Array.isArray(e))return Mg(e)}function Mg(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 Cte(e,t){if(e==null)return{};var n=Mte(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 Mte(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 Mj(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 St(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Mj(Object(n),!0).forEach(function(r){$te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $te(e,t,n){return t=Pte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pte(e){var t=Rte(e,"string");return tc(t)=="symbol"?t:t+""}function Rte(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nc(){return nc=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},nc.apply(this,arguments)}var Dte=function(t){var n=t.value,r=t.formatter,a=pe(t.children)?n:t.children;return ce(r)?r(a):a},kte=function(t,n){var r=Wt(n-t),a=Math.min(Math.abs(n-t),360);return r*a},zte=function(t,n,r){var a=t.position,i=t.viewBox,o=t.offset,l=t.className,s=i,u=s.cx,d=s.cy,f=s.innerRadius,h=s.outerRadius,p=s.startAngle,y=s.endAngle,m=s.clockWise,b=(f+h)/2,g=kte(p,y),S=g>=0?1:-1,x,v;a==="insideStart"?(x=p+S*o,v=m):a==="insideEnd"?(x=y-S*o,v=!m):a==="end"&&(x=y+S*o,v=m),v=g<=0?v:!v;var w=He(u,d,b,x),O=He(u,d,b,x+(v?1:-1)*359),j="M".concat(w.x,",").concat(w.y,`
    A`).concat(b,",").concat(b,",0,1,").concat(v?0:1,`,
    `).concat(O.x,",").concat(O.y),_=pe(t.id)?bo("recharts-radial-line-"):t.id;return T.createElement("text",nc({},r,{dominantBaseline:"central",className:me("recharts-radial-bar-label",l)}),T.createElement("defs",null,T.createElement("path",{id:_,d:j})),T.createElement("textPath",{xlinkHref:"#".concat(_)},n))},Lte=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,d=i.startAngle,f=i.endAngle,h=(d+f)/2;if(a==="outside"){var p=He(o,l,u+r,h),y=p.x,m=p.y;return{x:y,y:m,textAnchor:y>=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 b=(s+u)/2,g=He(o,l,b,h),S=g.x,x=g.y;return{x:S,y:x,textAnchor:"middle",verticalAnchor:"middle"}},Bte=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,d=o.height,f=d>=0?1:-1,h=f*a,p=f>0?"end":"start",y=f>0?"start":"end",m=u>=0?1:-1,b=m*a,g=m>0?"end":"start",S=m>0?"start":"end";if(i==="top"){var x={x:l+u/2,y:s-f*a,textAnchor:"middle",verticalAnchor:p};return St(St({},x),r?{height:Math.max(s-r.y,0),width:u}:{})}if(i==="bottom"){var v={x:l+u/2,y:s+d+h,textAnchor:"middle",verticalAnchor:y};return St(St({},v),r?{height:Math.max(r.y+r.height-(s+d),0),width:u}:{})}if(i==="left"){var w={x:l-b,y:s+d/2,textAnchor:g,verticalAnchor:"middle"};return St(St({},w),r?{width:Math.max(w.x-r.x,0),height:d}:{})}if(i==="right"){var O={x:l+u+b,y:s+d/2,textAnchor:S,verticalAnchor:"middle"};return St(St({},O),r?{width:Math.max(r.x+r.width-O.x,0),height:d}:{})}var j=r?{width:u,height:d}:{};return i==="insideLeft"?St({x:l+b,y:s+d/2,textAnchor:S,verticalAnchor:"middle"},j):i==="insideRight"?St({x:l+u-b,y:s+d/2,textAnchor:g,verticalAnchor:"middle"},j):i==="insideTop"?St({x:l+u/2,y:s+h,textAnchor:"middle",verticalAnchor:y},j):i==="insideBottom"?St({x:l+u/2,y:s+d-h,textAnchor:"middle",verticalAnchor:p},j):i==="insideTopLeft"?St({x:l+b,y:s+h,textAnchor:S,verticalAnchor:y},j):i==="insideTopRight"?St({x:l+u-b,y:s+h,textAnchor:g,verticalAnchor:y},j):i==="insideBottomLeft"?St({x:l+b,y:s+d-h,textAnchor:S,verticalAnchor:p},j):i==="insideBottomRight"?St({x:l+u-b,y:s+d-h,textAnchor:g,verticalAnchor:p},j):vs(i)&&(K(i.x)||Mi(i.x))&&(K(i.y)||Mi(i.y))?St({x:l+Qt(i.x,u),y:s+Qt(i.y,d),textAnchor:"end",verticalAnchor:"end"},j):St({x:l+u/2,y:s+d/2,textAnchor:"middle",verticalAnchor:"middle"},j)},Ute=function(t){return"cx"in t&&K(t.cx)};function Mt(e){var t=e.offset,n=t===void 0?5:t,r=Cte(e,jte),a=St({offset:n},r),i=a.viewBox,o=a.position,l=a.value,s=a.children,u=a.content,d=a.className,f=d===void 0?"":d,h=a.textBreakAll;if(!i||pe(l)&&pe(s)&&!A.isValidElement(u)&&!ce(u))return null;if(A.isValidElement(u))return A.cloneElement(u,a);var p;if(ce(u)){if(p=A.createElement(u,a),A.isValidElement(p))return p}else p=Dte(a);var y=Ute(i),m=oe(a,!0);if(y&&(o==="insideStart"||o==="insideEnd"||o==="end"))return zte(a,p,m);var b=y?Lte(a):Bte(a);return T.createElement(oo,nc({className:me("recharts-label",f)},m,b,{breakAll:h}),p)}Mt.displayName="Label";var S$=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,d=t.outerRadius,f=t.x,h=t.y,p=t.top,y=t.left,m=t.width,b=t.height,g=t.clockWise,S=t.labelViewBox;if(S)return S;if(K(m)&&K(b)){if(K(f)&&K(h))return{x:f,y:h,width:m,height:b};if(K(p)&&K(y))return{x:p,y,width:m,height:b}}return K(f)&&K(h)?{x:f,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:d||s||l||0,clockWise:g}:t.viewBox?t.viewBox:{}},Ite=function(t,n){return t?t===!0?T.createElement(Mt,{key:"label-implicit",viewBox:n}):jt(t)?T.createElement(Mt,{key:"label-implicit",viewBox:n,value:t}):A.isValidElement(t)?t.type===Mt?A.cloneElement(t,{key:"label-implicit",viewBox:n}):T.createElement(Mt,{key:"label-implicit",content:t,viewBox:n}):ce(t)?T.createElement(Mt,{key:"label-implicit",content:t,viewBox:n}):vs(t)?T.createElement(Mt,nc({viewBox:n},t,{key:"label-implicit"})):null:null},Hte=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=S$(t),o=Nn(a,Mt).map(function(s,u){return A.cloneElement(s,{viewBox:n||i,key:"label-".concat(u)})});if(!r)return o;var l=Ite(t.label,n||i);return[l].concat(Ate(o))};Mt.parseViewBox=S$;Mt.renderCallByParent=Hte;function qte(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var Fte=qte;const Gte=Ne(Fte);function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}var Vte=["valueAccessor"],Kte=["data","dataKey","clockWise","id","textBreakAll"];function Yte(e){return Zte(e)||Qte(e)||Wte(e)||Xte()}function Xte(){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 Wte(e,t){if(e){if(typeof e=="string")return $g(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 $g(e,t)}}function Qte(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Zte(e){if(Array.isArray(e))return $g(e)}function $g(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 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 $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 Pj(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){Jte(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 Jte(e,t,n){return t=ene(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ene(e){var t=tne(e,"string");return rc(t)=="symbol"?t:t+""}function tne(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rj(e,t){if(e==null)return{};var n=nne(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 nne(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 rne=function(t){return Array.isArray(t.value)?Gte(t.value):t.value};function Nr(e){var t=e.valueAccessor,n=t===void 0?rne:t,r=Rj(e,Vte),a=r.data,i=r.dataKey,o=r.clockWise,l=r.id,s=r.textBreakAll,u=Rj(r,Kte);return!a||!a.length?null:T.createElement(Se,{className:"recharts-label-list"},a.map(function(d,f){var h=pe(i)?n(d,f):st(d&&d.payload,i),p=pe(l)?{}:{id:"".concat(l,"-").concat(f)};return T.createElement(Mt,vh({},oe(d,!0),u,p,{parentViewBox:d.parentViewBox,value:h,textBreakAll:s,viewBox:Mt.parseViewBox(pe(o)?d:Pj(Pj({},d),{},{clockWise:o})),key:"label-".concat(f),index:f}))}))}Nr.displayName="LabelList";function ane(e,t){return e?e===!0?T.createElement(Nr,{key:"labelList-implicit",data:t}):T.isValidElement(e)||ce(e)?T.createElement(Nr,{key:"labelList-implicit",data:t,content:e}):vs(e)?T.createElement(Nr,vh({data:t},e,{key:"labelList-implicit"})):null:null}function ine(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=Nn(r,Nr).map(function(o,l){return A.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return a;var i=ane(e.label,t);return[i].concat(Yte(a))}Nr.renderCallByParent=ine;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 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 Dj(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?Dj(Object(n),!0).forEach(function(r){one(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Dj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function one(e,t,n){return t=lne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lne(e){var t=sne(e,"string");return ac(t)=="symbol"?t:t+""}function sne(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(t==="string"?String:Number)(e)}var une=function(t,n){var r=Wt(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Mf=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,d=s*(l?1:-1)+a,f=Math.asin(s/d)/yh,h=u?i:i+o*f,p=He(n,r,d,h),y=He(n,r,a,h),m=u?i-o*f:i,b=He(n,r,d*Math.cos(f*yh),m);return{center:p,circleTangency:y,lineTangency:b,theta:f}},w$=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,o=t.startAngle,l=t.endAngle,s=une(o,l),u=o+s,d=He(n,r,i,o),f=He(n,r,i,u),h="M ".concat(d.x,",").concat(d.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(s)>180),",").concat(+(o>u),`,
    `).concat(f.x,",").concat(f.y,`
  `);if(a>0){var p=He(n,r,a,o),y=He(n,r,a,u);h+="L ".concat(y.x,",").concat(y.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},cne=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,d=t.endAngle,f=Wt(d-u),h=Mf({cx:n,cy:r,radius:i,angle:u,sign:f,cornerRadius:o,cornerIsExternal:s}),p=h.circleTangency,y=h.lineTangency,m=h.theta,b=Mf({cx:n,cy:r,radius:i,angle:d,sign:-f,cornerRadius:o,cornerIsExternal:s}),g=b.circleTangency,S=b.lineTangency,x=b.theta,v=s?Math.abs(u-d):Math.abs(u-d)-m-x;if(v<0)return l?"M ".concat(y.x,",").concat(y.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
      `):w$({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:u,endAngle:d});var w="M ".concat(y.x,",").concat(y.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(v>180),",").concat(+(f<0),",").concat(g.x,",").concat(g.y,`
    A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(S.x,",").concat(S.y,`
  `);if(a>0){var O=Mf({cx:n,cy:r,radius:a,angle:u,sign:f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),j=O.circleTangency,_=O.lineTangency,E=O.theta,N=Mf({cx:n,cy:r,radius:a,angle:d,sign:-f,isExternal:!0,cornerRadius:o,cornerIsExternal:s}),$=N.circleTangency,C=N.lineTangency,L=N.theta,k=s?Math.abs(u-d):Math.abs(u-d)-E-L;if(k<0&&o===0)return"".concat(w,"L").concat(n,",").concat(r,"Z");w+="L".concat(C.x,",").concat(C.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat($.x,",").concat($.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(k>180),",").concat(+(f>0),",").concat(j.x,",").concat(j.y,`
      A`).concat(o,",").concat(o,",0,0,").concat(+(f<0),",").concat(_.x,",").concat(_.y,"Z")}else w+="L".concat(n,",").concat(r,"Z");return w},fne={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},O$=function(t){var n=kj(kj({},fne),t),r=n.cx,a=n.cy,i=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,s=n.forceCornerRadius,u=n.cornerIsExternal,d=n.startAngle,f=n.endAngle,h=n.className;if(o<i||d===f)return null;var p=me("recharts-sector",h),y=o-i,m=Qt(l,y,0,!0),b;return m>0&&Math.abs(d-f)<360?b=cne({cx:r,cy:a,innerRadius:i,outerRadius:o,cornerRadius:Math.min(m,y/2),forceCornerRadius:s,cornerIsExternal:u,startAngle:d,endAngle:f}):b=w$({cx:r,cy:a,innerRadius:i,outerRadius:o,startAngle:d,endAngle:f}),T.createElement("path",Pg({},oe(n,!0),{className:p,d:b,role:"img"}))};function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}function Rg(){return Rg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rg.apply(this,arguments)}function zj(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 Lj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zj(Object(n),!0).forEach(function(r){dne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dne(e,t,n){return t=hne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hne(e){var t=pne(e,"string");return ic(t)=="symbol"?t:t+""}function pne(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bj={curveBasisClosed:dH,curveBasisOpen:hH,curveBasis:fH,curveBumpX:Q7,curveBumpY:Z7,curveLinearClosed:pH,curveLinear:zp,curveMonotoneX:mH,curveMonotoneY:yH,curveNatural:vH,curveStep:gH,curveStepAfter:xH,curveStepBefore:bH},$f=function(t){return t.x===+t.x&&t.y===+t.y},Fs=function(t){return t.x},Gs=function(t){return t.y},mne=function(t,n){if(ce(t))return t;var r="curve".concat(Dp(t));return(r==="curveMonotone"||r==="curveBump")&&n?Bj["".concat(r).concat(n==="vertical"?"Y":"X")]:Bj[r]||zp},yne=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,d=mne(r,l),f=u?i.filter(function(m){return $f(m)}):i,h;if(Array.isArray(o)){var p=u?o.filter(function(m){return $f(m)}):o,y=f.map(function(m,b){return Lj(Lj({},m),{},{base:p[b]})});return l==="vertical"?h=Sf().y(Gs).x1(Fs).x0(function(m){return m.base.x}):h=Sf().x(Fs).y1(Gs).y0(function(m){return m.base.y}),h.defined($f).curve(d),h(y)}return l==="vertical"&&K(o)?h=Sf().y(Gs).x1(Fs).x0(o):K(o)?h=Sf().x(Fs).y1(Gs).y0(o):h=gC().x(Fs).y(Gs),h.defined($f).curve(d),h(f)},Wi=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?yne(t):a;return A.createElement("path",Rg({},oe(t,!1),Ud(t),{className:me("recharts-curve",n),d:o,ref:i}))},j$={exports:{}},vne="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",gne=vne,bne=gne;function A$(){}function E$(){}E$.resetWarningCache=A$;var xne=function(){function e(r,a,i,o,l,s){if(s!==bne){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:E$,resetWarningCache:A$};return n.PropTypes=n,n};j$.exports=xne();var Sne=j$.exports;const Te=Ne(Sne),{getOwnPropertyNames:wne,getOwnPropertySymbols:One}=Object,{hasOwnProperty:jne}=Object.prototype;function Ey(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Pf(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 Ane(e){return e!=null?e[Symbol.toStringTag]:void 0}function Uj(e){return wne(e).concat(One(e))}const Ene=Object.hasOwn||((e,t)=>jne.call(e,t));function wo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const _ne="__v",Tne="__o",Nne="_owner",{getOwnPropertyDescriptor:Ij,keys:Hj}=Object;function Cne(e,t){return e.byteLength===t.byteLength&&gh(new Uint8Array(e),new Uint8Array(t))}function Mne(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 $ne(e,t){return e.byteLength===t.byteLength&&gh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Pne(e,t){return wo(e.getTime(),t.getTime())}function Rne(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Dne(e,t){return e===t}function qj(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 d=!1,f=0;for(;(l=u.next())&&!l.done;){if(a[f]){f++;continue}const h=o.value,p=l.value;if(n.equals(h[0],p[0],s,f,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){d=a[f]=!0;break}f++}if(!d)return!1;s++}return!0}const kne=wo;function zne(e,t,n){const r=Hj(e);let a=r.length;if(Hj(t).length!==a)return!1;for(;a-- >0;)if(!_$(e,t,n,r[a]))return!1;return!0}function Vs(e,t,n){const r=Uj(e);let a=r.length;if(Uj(t).length!==a)return!1;let i,o,l;for(;a-- >0;)if(i=r[a],!_$(e,t,n,i)||(o=Ij(e,i),l=Ij(t,i),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function Lne(e,t){return wo(e.valueOf(),t.valueOf())}function Bne(e,t){return e.source===t.source&&e.flags===t.flags}function Fj(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,d=0;for(;(l=s.next())&&!l.done;){if(!a[d]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){u=a[d]=!0;break}d++}if(!u)return!1}return!0}function gh(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 Une(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 _$(e,t,n,r){return(r===Nne||r===Tne||r===_ne)&&(e.$$typeof||t.$$typeof)?!0:Ene(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Ine="[object ArrayBuffer]",Hne="[object Arguments]",qne="[object Boolean]",Fne="[object DataView]",Gne="[object Date]",Vne="[object Error]",Kne="[object Map]",Yne="[object Number]",Xne="[object Object]",Wne="[object RegExp]",Qne="[object Set]",Zne="[object String]",Jne={"[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},ere="[object URL]",tre=Object.prototype.toString;function nre({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:s,arePrimitiveWrappersEqual:u,areRegExpsEqual:d,areSetsEqual:f,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:y}){return function(b,g,S){if(b===g)return!0;if(b==null||g==null)return!1;const x=typeof b;if(x!==typeof g)return!1;if(x!=="object")return x==="number"?l(b,g,S):x==="function"?i(b,g,S):!1;const v=b.constructor;if(v!==g.constructor)return!1;if(v===Object)return s(b,g,S);if(Array.isArray(b))return t(b,g,S);if(v===Date)return r(b,g,S);if(v===RegExp)return d(b,g,S);if(v===Map)return o(b,g,S);if(v===Set)return f(b,g,S);const w=tre.call(b);if(w===Gne)return r(b,g,S);if(w===Wne)return d(b,g,S);if(w===Kne)return o(b,g,S);if(w===Qne)return f(b,g,S);if(w===Xne)return typeof b.then!="function"&&typeof g.then!="function"&&s(b,g,S);if(w===ere)return p(b,g,S);if(w===Vne)return a(b,g,S);if(w===Hne)return s(b,g,S);if(Jne[w])return h(b,g,S);if(w===Ine)return e(b,g,S);if(w===Fne)return n(b,g,S);if(w===qne||w===Yne||w===Zne)return u(b,g,S);if(y){let O=y[w];if(!O){const j=Ane(b);j&&(O=y[j])}if(O)return O(b,g,S)}return!1}}function rre({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Cne,areArraysEqual:n?Vs:Mne,areDataViewsEqual:$ne,areDatesEqual:Pne,areErrorsEqual:Rne,areFunctionsEqual:Dne,areMapsEqual:n?Ey(qj,Vs):qj,areNumbersEqual:kne,areObjectsEqual:n?Vs:zne,arePrimitiveWrappersEqual:Lne,areRegExpsEqual:Bne,areSetsEqual:n?Ey(Fj,Vs):Fj,areTypedArraysEqual:n?Ey(gh,Vs):gh,areUrlsEqual:Une,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Pf(r.areArraysEqual),i=Pf(r.areMapsEqual),o=Pf(r.areObjectsEqual),l=Pf(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:o,areSetsEqual:l})}return r}function are(e){return function(t,n,r,a,i,o,l){return e(t,n,l)}}function ire({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:d}=n();return t(l,s,{cache:u,equals:r,meta:d,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 ore=pi();pi({strict:!0});pi({circular:!0});pi({circular:!0,strict:!0});pi({createInternalComparator:()=>wo});pi({strict:!0,createInternalComparator:()=>wo});pi({circular:!0,createInternalComparator:()=>wo});pi({circular:!0,createInternalComparator:()=>wo,strict:!0});function pi(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=rre(e),o=nre(i),l=n?n(o):are(o);return ire({circular:t,comparator:o,createState:r,equals:l,strict:a})}function lre(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function Gj(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):lre(a)};requestAnimationFrame(r)}function Dg(e){"@babel/helpers - typeof";return Dg=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dg(e)}function sre(e){return dre(e)||fre(e)||cre(e)||ure()}function ure(){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 cre(e,t){if(e){if(typeof e=="string")return Vj(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 Vj(e,t)}}function Vj(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 fre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dre(e){if(Array.isArray(e))return e}function hre(){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=sre(o),s=l[0],u=l.slice(1);if(typeof s=="number"){Gj(a.bind(null,u),s);return}a(s),Gj(a.bind(null,u));return}Dg(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 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 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 Yj(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){T$(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 T$(e,t,n){return t=pre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pre(e){var t=mre(e,"string");return oc(t)==="symbol"?t:String(t)}function mre(e,t){if(oc(e)!=="object"||e===null)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 yre=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},vre=function(t){return t},gre=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},vu=function(t,n){return Object.keys(n).reduce(function(r,a){return Yj(Yj({},r),{},T$({},a,t(a,n[a])))},{})},Xj=function(t,n,r){return t.map(function(a){return"".concat(gre(a)," ").concat(n,"ms ").concat(r)}).join(",")};function bre(e,t){return wre(e)||Sre(e,t)||N$(e,t)||xre()}function xre(){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 Sre(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function wre(e){if(Array.isArray(e))return e}function Ore(e){return Ere(e)||Are(e)||N$(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 N$(e,t){if(e){if(typeof e=="string")return kg(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 kg(e,t)}}function Are(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ere(e){if(Array.isArray(e))return kg(e)}function kg(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 bh=1e-4,C$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},M$=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},Wj=function(t,n){return function(r){var a=C$(t,n);return M$(a,r)}},_re=function(t,n){return function(r){var a=C$(t,n),i=[].concat(Ore(a.map(function(o,l){return o*l}).slice(1)),[0]);return M$(i,r)}},Qj=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(b){return parseFloat(b)}),d=bre(u,4);a=d[0],i=d[1],o=d[2],l=d[3]}}}var f=Wj(a,o),h=Wj(i,l),p=_re(a,o),y=function(g){return g>1?1:g<0?0:g},m=function(g){for(var S=g>1?1:g,x=S,v=0;v<8;++v){var w=f(x)-S,O=p(x);if(Math.abs(w-S)<bh||O<bh)return h(x);x=y(x-w/O)}return h(x)};return m.isStepper=!1,m},Tre=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(d,f,h){var p=-(d-f)*r,y=h*i,m=h+(p-y)*l/1e3,b=h*l/1e3+d;return Math.abs(b-f)<bh&&Math.abs(m)<bh?[f,0]:[b,m]};return s.isStepper=!0,s.dt=l,s},Nre=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 Qj(a);case"spring":return Tre();default:if(a.split("(")[0]==="cubic-bezier")return Qj(a)}return typeof a=="function"?a:null};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 Zj(e){return $re(e)||Mre(e)||$$(e)||Cre()}function Cre(){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 Mre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $re(e){if(Array.isArray(e))return Lg(e)}function Jj(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?Jj(Object(n),!0).forEach(function(r){zg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zg(e,t,n){return t=Pre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pre(e){var t=Rre(e,"string");return lc(t)==="symbol"?t:String(t)}function Rre(e,t){if(lc(e)!=="object"||e===null)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 Dre(e,t){return Lre(e)||zre(e,t)||$$(e,t)||kre()}function kre(){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 $$(e,t){if(e){if(typeof e=="string")return Lg(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 Lg(e,t)}}function Lg(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 zre(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Lre(e){if(Array.isArray(e))return e}var xh=function(t,n,r){return t+(n-t)*r},Bg=function(t){var n=t.from,r=t.to;return n!==r},Bre=function e(t,n,r){var a=vu(function(i,o){if(Bg(o)){var l=t(o.from,o.to,o.velocity),s=Dre(l,2),u=s[0],d=s[1];return Dt(Dt({},o),{},{from:u,velocity:d})}return o},n);return r<1?vu(function(i,o){return Bg(o)?Dt(Dt({},o),{},{velocity:xh(o.velocity,a[i].velocity,r),from:xh(o.from,a[i].from,r)}):o},n):e(t,a,r-1)};const Ure=function(e,t,n,r,a){var i=yre(e,t),o=i.reduce(function(b,g){return Dt(Dt({},b),{},zg({},g,[e[g],t[g]]))},{}),l=i.reduce(function(b,g){return Dt(Dt({},b),{},zg({},g,{from:e[g],velocity:0,to:t[g]}))},{}),s=-1,u,d,f=function(){return null},h=function(){return vu(function(g,S){return S.from},l)},p=function(){return!Object.values(l).filter(Bg).length},y=function(g){u||(u=g);var S=g-u,x=S/n.dt;l=Bre(n,l,x),a(Dt(Dt(Dt({},e),t),h())),u=g,p()||(s=requestAnimationFrame(f))},m=function(g){d||(d=g);var S=(g-d)/r,x=vu(function(w,O){return xh.apply(void 0,Zj(O).concat([n(S)]))},o);if(a(Dt(Dt(Dt({},e),t),x)),S<1)s=requestAnimationFrame(f);else{var v=vu(function(w,O){return xh.apply(void 0,Zj(O).concat([n(1)]))},o);a(Dt(Dt(Dt({},e),t),v))}};return f=n.isStepper?y:m,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(s)}}};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)}var Ire=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Hre(e,t){if(e==null)return{};var n=qre(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 qre(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 _y(e){return Kre(e)||Vre(e)||Gre(e)||Fre()}function Fre(){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 Gre(e,t){if(e){if(typeof e=="string")return Ug(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 Ug(e,t)}}function Vre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kre(e){if(Array.isArray(e))return Ug(e)}function Ug(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 eA(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?eA(Object(n),!0).forEach(function(r){Js(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Js(e,t,n){return t=P$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xre(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,P$(r.key),r)}}function Wre(e,t,n){return t&&Xre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function P$(e){var t=Qre(e,"string");return Bl(t)==="symbol"?t:String(t)}function Qre(e,t){if(Bl(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function Zre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ig(e,t)}function Ig(e,t){return Ig=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Ig(e,t)}function Jre(e){var t=eae();return function(){var r=Sh(e),a;if(t){var i=Sh(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Hg(this,a)}}function Hg(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 qg(e)}function qg(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eae(){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 Sh(e){return Sh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sh(e)}var hr=function(e){Zre(n,e);var t=Jre(n);function n(r,a){var i;Yre(this,n),i=t.call(this,r,a);var o=i.props,l=o.isActive,s=o.attributeName,u=o.from,d=o.to,f=o.steps,h=o.children,p=o.duration;if(i.handleStyleChange=i.handleStyleChange.bind(qg(i)),i.changeStyle=i.changeStyle.bind(qg(i)),!l||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:d}),Hg(i);if(f&&f.length)i.state={style:f[0].style};else if(u){if(typeof h=="function")return i.state={style:u},Hg(i);i.state={style:s?Js({},s,u):u}}else i.state={style:{}};return i}return Wre(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,d=i.to,f=i.from,h=this.state.style;if(l){if(!o){var p={style:s?Js({},s,d):d};this.state&&h&&(s&&h[s]!==d||!s&&h!==d)&&this.setState(p);return}if(!(ore(a.to,d)&&a.canBegin&&a.isActive)){var y=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var m=y||u?f:a.to;if(this.state&&h){var b={style:s?Js({},s,m):m};(s&&h[s]!==m||!s&&h!==m)&&this.setState(b)}this.runAnimation(rr(rr({},this.props),{},{from:m,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,d=a.begin,f=a.onAnimationEnd,h=a.onAnimationStart,p=Ure(o,l,Nre(u),s,this.changeStyle),y=function(){i.stopJSAnimation=p()};this.manager.start([h,d,y,s,f])}},{key:"runStepAnimation",value:function(a){var i=this,o=a.steps,l=a.begin,s=a.onAnimationStart,u=o[0],d=u.style,f=u.duration,h=f===void 0?0:f,p=function(m,b,g){if(g===0)return m;var S=b.duration,x=b.easing,v=x===void 0?"ease":x,w=b.style,O=b.properties,j=b.onAnimationEnd,_=g>0?o[g-1]:b,E=O||Object.keys(w);if(typeof v=="function"||v==="spring")return[].concat(_y(m),[i.runJSAnimation.bind(i,{from:_.style,to:w,duration:S,easing:v}),S]);var N=Xj(E,S,v),$=rr(rr(rr({},_.style),w),{},{transition:N});return[].concat(_y(m),[$,S,j]).filter(vre)};return this.manager.start([s].concat(_y(o.reduce(p,[d,Math.max(h,l)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=hre());var i=a.begin,o=a.duration,l=a.attributeName,s=a.to,u=a.easing,d=a.onAnimationStart,f=a.onAnimationEnd,h=a.steps,p=a.children,y=this.manager;if(this.unSubscribe=y.subscribe(this.handleStyleChange),typeof u=="function"||typeof p=="function"||u==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var m=l?Js({},l,s):s,b=Xj(Object.keys(m),o,u);y.start([d,i,rr(rr({},m),{},{transition:b}),o,f])}},{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=Hre(a,Ire),u=A.Children.count(i),d=this.state.style;if(typeof i=="function")return i(d);if(!l||u===0||o<=0)return i;var f=function(p){var y=p.props,m=y.style,b=m===void 0?{}:m,g=y.className,S=A.cloneElement(p,rr(rr({},s),{},{style:rr(rr({},b),d),className:g}));return S};return u===1?f(A.Children.only(i)):T.createElement("div",null,A.Children.map(i,function(h){return f(h)}))}}]),n}(A.PureComponent);hr.displayName="Animate";hr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};hr.propTypes={from:Te.oneOfType([Te.object,Te.string]),to:Te.oneOfType([Te.object,Te.string]),attributeName:Te.string,duration:Te.number,begin:Te.number,easing:Te.oneOfType([Te.string,Te.func]),steps:Te.arrayOf(Te.shape({duration:Te.number.isRequired,style:Te.object.isRequired,easing:Te.oneOfType([Te.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Te.func]),properties:Te.arrayOf("string"),onAnimationEnd:Te.func})),children:Te.oneOfType([Te.node,Te.func]),isActive:Te.bool,canBegin:Te.bool,onAnimationEnd:Te.func,shouldReAnimate:Te.bool,onAnimationStart:Te.func,onAnimationReStart:Te.func};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 wh(){return wh=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},wh.apply(this,arguments)}function tae(e,t){return iae(e)||aae(e,t)||rae(e,t)||nae()}function nae(){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 rae(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 aae(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function iae(e){if(Array.isArray(e))return e}function nA(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 rA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nA(Object(n),!0).forEach(function(r){oae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oae(e,t,n){return t=lae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lae(e){var t=sae(e,"string");return sc(t)=="symbol"?t:t+""}function sae(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 aA=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,d;if(o>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=i[h]>o?o:i[h];d="M".concat(t,",").concat(n+l*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(u,",").concat(t+s*f[0],",").concat(n)),d+="L ".concat(t+r-s*f[1],",").concat(n),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(u,`,
        `).concat(t+r,",").concat(n+l*f[1])),d+="L ".concat(t+r,",").concat(n+a-l*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(u,`,
        `).concat(t+r-s*f[2],",").concat(n+a)),d+="L ".concat(t+s*f[3],",").concat(n+a),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(u,`,
        `).concat(t,",").concat(n+a-l*f[3])),d+="Z"}else if(o>0&&i===+i&&i>0){var y=Math.min(o,i);d="M ".concat(t,",").concat(n+l*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+s*y,",").concat(n,`
            L `).concat(t+r-s*y,",").concat(n,`
            A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+r,",").concat(n+l*y,`
            L `).concat(t+r,",").concat(n+a-l*y,`
            A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t+r-s*y,",").concat(n+a,`
            L `).concat(t+s*y,",").concat(n+a,`
            A `).concat(y,",").concat(y,",0,0,").concat(u,",").concat(t,",").concat(n+a-l*y," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return d},uae=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),d=Math.max(i,i+l),f=Math.min(o,o+s),h=Math.max(o,o+s);return r>=u&&r<=d&&a>=f&&a<=h}return!1},cae={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Ix=function(t){var n=rA(rA({},cae),t),r=A.useRef(),a=A.useState(-1),i=tae(a,2),o=i[0],l=i[1];A.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var v=r.current.getTotalLength();v&&l(v)}catch{}},[]);var s=n.x,u=n.y,d=n.width,f=n.height,h=n.radius,p=n.className,y=n.animationEasing,m=n.animationDuration,b=n.animationBegin,g=n.isAnimationActive,S=n.isUpdateAnimationActive;if(s!==+s||u!==+u||d!==+d||f!==+f||d===0||f===0)return null;var x=me("recharts-rectangle",p);return S?T.createElement(hr,{canBegin:o>0,from:{width:d,height:f,x:s,y:u},to:{width:d,height:f,x:s,y:u},duration:m,animationEasing:y,isActive:S},function(v){var w=v.width,O=v.height,j=v.x,_=v.y;return T.createElement(hr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,isActive:g,easing:y},T.createElement("path",wh({},oe(n,!0),{className:x,d:aA(j,_,w,O,h),ref:r})))}):T.createElement("path",wh({},oe(n,!0),{className:x,d:aA(s,u,d,f,h)}))},fae=["points","className","baseLinePoints","connectNulls"];function Xo(){return Xo=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},Xo.apply(this,arguments)}function dae(e,t){if(e==null)return{};var n=hae(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 hae(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 iA(e){return vae(e)||yae(e)||mae(e)||pae()}function pae(){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 mae(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 yae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vae(e){if(Array.isArray(e))return Fg(e)}function Fg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oA=function(t){return t&&t.x===+t.x&&t.y===+t.y},gae=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){oA(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),oA(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},gu=function(t,n){var r=gae(t);n&&(r=[r.reduce(function(i,o){return[].concat(iA(i),iA(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},bae=function(t,n,r){var a=gu(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(gu(n.reverse(),r).slice(1))},xae=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,o=dae(t,fae);if(!n||!n.length)return null;var l=me("recharts-polygon",r);if(a&&a.length){var s=o.stroke&&o.stroke!=="none",u=bae(n,a,i);return T.createElement("g",{className:l},T.createElement("path",Xo({},oe(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),s?T.createElement("path",Xo({},oe(o,!0),{fill:"none",d:gu(n,i)})):null,s?T.createElement("path",Xo({},oe(o,!0),{fill:"none",d:gu(a,i)})):null)}var d=gu(n,i);return T.createElement("path",Xo({},oe(o,!0),{fill:d.slice(-1)==="Z"?o.fill:"none",className:l,d}))};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)}var Xc=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?A.createElement("circle",Gg({},oe(t,!1),Ud(t),{className:o,cx:n,cy:r,r:a})):null};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 Sae=["x","y","top","left","width","height","className"];function Vg(){return Vg=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},Vg.apply(this,arguments)}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 wae(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){Oae(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 Oae(e,t,n){return t=jae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jae(e){var t=Aae(e,"string");return uc(t)=="symbol"?t:t+""}function Aae(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 Eae(e,t){if(e==null)return{};var n=_ae(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 _ae(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 Tae=function(t,n,r,a,i,o){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(o,",").concat(n,"h").concat(r)},Nae=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,d=t.width,f=d===void 0?0:d,h=t.height,p=h===void 0?0:h,y=t.className,m=Eae(t,Sae),b=wae({x:r,y:i,top:l,left:u,width:f,height:p},m);return!K(r)||!K(i)||!K(f)||!K(p)||!K(l)||!K(u)?null:T.createElement("path",Vg({},oe(b,!0),{className:me("recharts-cross",y),d:Tae(r,i,f,p,l,u)}))},Cae=Xp,Mae=GM,$ae=kr;function Pae(e,t){return e&&e.length?Cae(e,$ae(t),Mae):void 0}var Rae=Pae;const Dae=Ne(Rae);var kae=Xp,zae=kr,Lae=VM;function Bae(e,t){return e&&e.length?kae(e,zae(t),Lae):void 0}var Uae=Bae;const Iae=Ne(Uae);var Hae=["cx","cy","angle","ticks","axisLine"],qae=["ticks","tick","angle","tickFormatter","stroke"];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 bu(){return bu=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},bu.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 xi(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){Jp(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 uA(e,t){if(e==null)return{};var n=Fae(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 Fae(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 Gae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cA(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,D$(r.key),r)}}function Vae(e,t,n){return t&&cA(e.prototype,t),n&&cA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kae(e,t,n){return t=Oh(t),Yae(e,R$()?Reflect.construct(t,n||[],Oh(e).constructor):t.apply(e,n))}function Yae(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 Xae(e)}function Xae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R$=function(){return!!e})()}function Oh(e){return Oh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Oh(e)}function Wae(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&&Kg(e,t)}function Kg(e,t){return Kg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Kg(e,t)}function Jp(e,t,n){return t=D$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D$(e){var t=Qae(e,"string");return Ul(t)=="symbol"?t:t+""}function Qae(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(t==="string"?String:Number)(e)}var em=function(e){function t(){return Gae(this,t),Kae(this,t,arguments)}return Wae(t,e),Vae(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,o=i.angle,l=i.cx,s=i.cy;return He(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=Dae(l,function(d){return d.coordinate||0}),u=Iae(l,function(d){return d.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=uA(r,Hae),d=l.reduce(function(y,m){return[Math.min(y[0],m.coordinate),Math.max(y[1],m.coordinate)]},[1/0,-1/0]),f=He(a,i,d[0],o),h=He(a,i,d[1],o),p=xi(xi(xi({},oe(u,!1)),{},{fill:"none"},oe(s,!1)),{},{x1:f.x,y1:f.y,x2:h.x,y2:h.y});return T.createElement("line",bu({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,d=uA(a,qae),f=this.getTickTextAnchor(),h=oe(d,!1),p=oe(o,!1),y=i.map(function(m,b){var g=r.getTickValueCoord(m),S=xi(xi(xi(xi({textAnchor:f,transform:"rotate(".concat(90-l,", ").concat(g.x,", ").concat(g.y,")")},h),{},{stroke:"none",fill:u},p),{},{index:b},g),{},{payload:m});return T.createElement(Se,bu({className:me("recharts-polar-radius-axis-tick",x$(o)),key:"tick-".concat(m.coordinate)},io(r.props,m,b)),t.renderTickItem(o,S,s?s(m.value,b):m.value))});return T.createElement(Se,{className:"recharts-polar-radius-axis-ticks"},y)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,o=r.tick;return!a||!a.length?null:T.createElement(Se,{className:me("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),o&&this.renderTicks(),Mt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var o;return T.isValidElement(r)?o=T.cloneElement(r,a):ce(r)?o=r(a):o=T.createElement(oo,bu({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),o}}])}(A.PureComponent);Jp(em,"displayName","PolarRadiusAxis");Jp(em,"axisType","radiusAxis");Jp(em,"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 Il(e){"@babel/helpers - typeof";return Il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Il(e)}function Ni(){return Ni=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},Ni.apply(this,arguments)}function fA(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 Si(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fA(Object(n),!0).forEach(function(r){tm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zae(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,z$(r.key),r)}}function Jae(e,t,n){return t&&dA(e.prototype,t),n&&dA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eie(e,t,n){return t=jh(t),tie(e,k$()?Reflect.construct(t,n||[],jh(e).constructor):t.apply(e,n))}function tie(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 nie(e)}function nie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k$=function(){return!!e})()}function jh(e){return jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jh(e)}function rie(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&&Yg(e,t)}function Yg(e,t){return Yg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Yg(e,t)}function tm(e,t,n){return t=z$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z$(e){var t=aie(e,"string");return Il(t)=="symbol"?t:t+""}function aie(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(t==="string"?String:Number)(e)}var iie=Math.PI/180,hA=1e-5,nm=function(e){function t(){return Zae(this,t),eie(this,t,arguments)}return rie(t,e),Jae(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,d=u||8,f=He(i,o,l,r.coordinate),h=He(i,o,l+(s==="inner"?-1:1)*d,r.coordinate);return{x1:f.x,y1:f.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*iie),o;return i>hA?o=a==="outer"?"start":"end":i<-hA?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=Si(Si({},oe(this.props,!1)),{},{fill:"none"},oe(l,!1));if(s==="circle")return T.createElement(Xc,Ni({className:"recharts-polar-angle-axis-line"},u,{cx:a,cy:i,r:o}));var d=this.props.ticks,f=d.map(function(h){return He(a,i,o,h.coordinate)});return T.createElement(xae,Ni({className:"recharts-polar-angle-axis-line"},u,{points:f}))}},{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,d=oe(this.props,!1),f=oe(o,!1),h=Si(Si({},d),{},{fill:"none"},oe(l,!1)),p=i.map(function(y,m){var b=r.getTickLineCoord(y),g=r.getTickTextAnchor(y),S=Si(Si(Si({textAnchor:g},d),{},{stroke:"none",fill:u},f),{},{index:m,payload:y,x:b.x2,y:b.y2});return T.createElement(Se,Ni({className:me("recharts-polar-angle-axis-tick",x$(o)),key:"tick-".concat(y.coordinate)},io(r.props,y,m)),l&&T.createElement("line",Ni({className:"recharts-polar-angle-axis-tick-line"},h,b)),o&&t.renderTickItem(o,S,s?s(y.value,m):y.value))});return T.createElement(Se,{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:T.createElement(Se,{className:me("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var o;return T.isValidElement(r)?o=T.cloneElement(r,a):ce(r)?o=r(a):o=T.createElement(oo,Ni({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),o}}])}(A.PureComponent);tm(nm,"displayName","PolarAngleAxis");tm(nm,"axisType","angleAxis");tm(nm,"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 oie=HC,lie=oie(Object.getPrototypeOf,Object),sie=lie,uie=ya,cie=sie,fie=va,die="[object Object]",hie=Function.prototype,pie=Object.prototype,L$=hie.toString,mie=pie.hasOwnProperty,yie=L$.call(Object);function vie(e){if(!fie(e)||uie(e)!=die)return!1;var t=cie(e);if(t===null)return!0;var n=mie.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&L$.call(n)==yie}var gie=vie;const bie=Ne(gie);var xie=ya,Sie=va,wie="[object Boolean]";function Oie(e){return e===!0||e===!1||Sie(e)&&xie(e)==wie}var jie=Oie;const Aie=Ne(jie);function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function Ah(){return Ah=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},Ah.apply(this,arguments)}function Eie(e,t){return Cie(e)||Nie(e,t)||Tie(e,t)||_ie()}function _ie(){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 Tie(e,t){if(e){if(typeof e=="string")return pA(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 pA(e,t)}}function pA(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 Nie(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Cie(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 yA(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){Mie(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 Mie(e,t,n){return t=$ie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ie(e){var t=Pie(e,"string");return cc(t)=="symbol"?t:t+""}function Pie(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vA=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},Rie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Die=function(t){var n=yA(yA({},Rie),t),r=A.useRef(),a=A.useState(-1),i=Eie(a,2),o=i[0],l=i[1];A.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,d=n.upperWidth,f=n.lowerWidth,h=n.height,p=n.className,y=n.animationEasing,m=n.animationDuration,b=n.animationBegin,g=n.isUpdateAnimationActive;if(s!==+s||u!==+u||d!==+d||f!==+f||h!==+h||d===0&&f===0||h===0)return null;var S=me("recharts-trapezoid",p);return g?T.createElement(hr,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:h,x:s,y:u},to:{upperWidth:d,lowerWidth:f,height:h,x:s,y:u},duration:m,animationEasing:y,isActive:g},function(x){var v=x.upperWidth,w=x.lowerWidth,O=x.height,j=x.x,_=x.y;return T.createElement(hr,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:m,easing:y},T.createElement("path",Ah({},oe(n,!0),{className:S,d:vA(j,_,v,w,O),ref:r})))}):T.createElement("g",null,T.createElement("path",Ah({},oe(n,!0),{className:S,d:vA(s,u,d,f,h)})))},kie=["option","shapeType","propTransformer","activeClassName","isActive"];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)}function zie(e,t){if(e==null)return{};var n=Lie(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 Lie(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 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 Eh(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){Bie(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 Bie(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=Iie(e,"string");return fc(t)=="symbol"?t:t+""}function Iie(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 Hie(e,t){return Eh(Eh({},t),e)}function qie(e,t){return e==="symbols"}function bA(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return T.createElement(Ix,n);case"trapezoid":return T.createElement(Die,n);case"sector":return T.createElement(O$,n);case"symbols":if(qie(t))return T.createElement(ox,n);break;default:return null}}function Fie(e){return A.isValidElement(e)?e.props:e}function B$(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Hie:r,i=e.activeClassName,o=i===void 0?"recharts-active-shape":i,l=e.isActive,s=zie(e,kie),u;if(A.isValidElement(t))u=A.cloneElement(t,Eh(Eh({},s),Fie(t)));else if(ce(t))u=t(s);else if(bie(t)&&!Aie(t)){var d=a(t,s);u=T.createElement(bA,{shapeType:n,elementProps:d})}else{var f=s;u=T.createElement(bA,{shapeType:n,elementProps:f})}return l?T.createElement(Se,{className:o},u):u}function rm(e,t){return t!=null&&"trapezoids"in e.props}function am(e,t){return t!=null&&"sectors"in e.props}function dc(e,t){return t!=null&&"points"in e.props}function Gie(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 Vie(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Kie(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function Yie(e,t){var n;return rm(e,t)?n=Gie:am(e,t)?n=Vie:dc(e,t)&&(n=Kie),n}function Xie(e,t){var n;return rm(e,t)?n="trapezoids":am(e,t)?n="sectors":dc(e,t)&&(n="points"),n}function Wie(e,t){if(rm(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(am(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 dc(e,t)?t.payload:{}}function Qie(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Xie(n,t),i=Wie(n,t),o=r.filter(function(s,u){var d=lo(i,s),f=n.props[a].filter(function(y){var m=Yie(n,t);return m(y,t)}),h=n.props[a].indexOf(f[f.length-1]),p=u===h;return d&&p}),l=r.indexOf(o[o.length-1]);return l}var rd;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 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 xA(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 Be(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xA(Object(n),!0).forEach(function(r){Kn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SA(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,I$(r.key),r)}}function Jie(e,t,n){return t&&SA(e.prototype,t),n&&SA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eoe(e,t,n){return t=_h(t),toe(e,U$()?Reflect.construct(t,n||[],_h(e).constructor):t.apply(e,n))}function toe(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 noe(e)}function noe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U$=function(){return!!e})()}function _h(e){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_h(e)}function roe(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 Kn(e,t,n){return t=I$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I$(e){var t=aoe(e,"string");return Hl(t)=="symbol"?t:t+""}function aoe(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)}var ba=function(e){function t(n){var r;return Zie(this,t),r=eoe(this,t,[n]),Kn(r,"pieRef",null),Kn(r,"sectorRefs",[]),Kn(r,"id",bo("recharts-pie-")),Kn(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ce(a)&&a()}),Kn(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ce(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return roe(t,e),Jie(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,d=oe(this.props,!1),f=oe(o,!1),h=oe(l,!1),p=o&&o.offsetRadius||20,y=r.map(function(m,b){var g=(m.startAngle+m.endAngle)/2,S=He(m.cx,m.cy,m.outerRadius+p,g),x=Be(Be(Be(Be({},d),m),{},{stroke:"none"},f),{},{index:b,textAnchor:t.getTextAnchor(S.x,m.cx)},S),v=Be(Be(Be(Be({},d),m),{},{fill:"none",stroke:m.fill},h),{},{index:b,points:[He(m.cx,m.cy,m.outerRadius,g),S]}),w=s;return pe(s)&&pe(u)?w="value":pe(s)&&(w=u),T.createElement(Se,{key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(b)},l&&t.renderLabelLineItem(l,v,"line"),t.renderLabelItem(o,x,st(m,w)))});return T.createElement(Se,{className:"recharts-pie-labels"},y)}},{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,d){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var f=a.isActiveIndex(d),h=s&&a.hasActiveIndex()?s:null,p=f?o:h,y=Be(Be({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return T.createElement(Se,Wo({ref:function(b){b&&!a.sectorRefs.includes(b)&&a.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},io(a.props,u,d),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(d)}),T.createElement(B$,Wo({option:p,isActive:f,shapeType:"sector"},y)))})}},{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,d=a.animationId,f=this.state,h=f.prevSectors,p=f.prevIsAnimationActive;return T.createElement(hr,{begin:l,duration:s,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(y){var m=y.t,b=[],g=i&&i[0],S=g.startAngle;return i.forEach(function(x,v){var w=h&&h[v],O=v>0?Tn(x,"paddingAngle",0):0;if(w){var j=wt(w.endAngle-w.startAngle,x.endAngle-x.startAngle),_=Be(Be({},x),{},{startAngle:S+O,endAngle:S+j(m)+O});b.push(_),S=_.endAngle}else{var E=x.endAngle,N=x.startAngle,$=wt(0,E-N),C=$(m),L=Be(Be({},x),{},{startAngle:S+O,endAngle:S+C+O});b.push(L),S=L.endAngle}}),T.createElement(Se,null,r.renderSectorsStatically(b))})}},{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||!lo(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,d=a.cy,f=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,y=this.state.isAnimationFinished;if(i||!o||!o.length||!K(u)||!K(d)||!K(f)||!K(h))return null;var m=me("recharts-pie",l);return T.createElement(Se,{tabIndex:this.props.rootTabIndex,className:m,ref:function(g){r.pieRef=g}},this.renderSectors(),s&&this.renderLabels(o),Mt.renderCallByParent(this.props,null,!1),(!p||y)&&Nr.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(T.isValidElement(r))return T.cloneElement(r,a);if(ce(r))return r(a);var o=me("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return T.createElement(Wi,Wo({},a,{key:i,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,a,i){if(T.isValidElement(r))return T.cloneElement(r,a);var o=i;if(ce(r)&&(o=r(a),T.isValidElement(o)))return o;var l=me("recharts-pie-label-text",typeof r!="boolean"&&!ce(r)?r.className:"");return T.createElement(oo,Wo({},a,{alignmentBaseline:"middle",className:l}),o)}}])}(A.PureComponent);rd=ba;Kn(ba,"displayName","Pie");Kn(ba,"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:!fi.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});Kn(ba,"parseDeltaAngle",function(e,t){var n=Wt(t-e),r=Math.min(Math.abs(t-e),360);return n*r});Kn(ba,"getRealPieData",function(e){var t=e.data,n=e.children,r=oe(e,!1),a=Nn(n,Hp);return t&&t.length?t.map(function(i,o){return Be(Be(Be({payload:i},r),i),a&&a[o]&&a[o].props)}):a&&a.length?a.map(function(i){return Be(Be({},r),i.props)}):[]});Kn(ba,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,o=b$(a,i),l=r+Qt(e.cx,a,a/2),s=n+Qt(e.cy,i,i/2),u=Qt(e.innerRadius,o,0),d=Qt(e.outerRadius,o,o*.8),f=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:l,cy:s,innerRadius:u,outerRadius:d,maxRadius:f}});Kn(ba,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Be(Be({},t.type.defaultProps),t.props):t.props,a=rd.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,o=r.startAngle,l=r.endAngle,s=r.paddingAngle,u=r.dataKey,d=r.nameKey,f=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),y=rd.parseCoordinateOfPie(r,n),m=rd.parseDeltaAngle(o,l),b=Math.abs(m),g=u;pe(u)&&pe(f)?(fr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),g="value"):pe(u)&&(fr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),g=f);var S=a.filter(function(_){return st(_,g,0)!==0}).length,x=(b>=360?S:S-1)*s,v=b-S*p-x,w=a.reduce(function(_,E){var N=st(E,g,0);return _+(K(N)?N:0)},0),O;if(w>0){var j;O=a.map(function(_,E){var N=st(_,g,0),$=st(_,d,E),C=(K(N)?N:0)/w,L;E?L=j.endAngle+Wt(m)*s*(N!==0?1:0):L=o;var k=L+Wt(m)*((N!==0?p:0)+C*v),R=(L+k)/2,M=(y.innerRadius+y.outerRadius)/2,z=[{name:$,value:N,payload:_,dataKey:g,type:h}],B=He(y.cx,y.cy,M,R);return j=Be(Be(Be({percent:C,cornerRadius:i,name:$,tooltipPayload:z,midAngle:R,middleRadius:M,tooltipPosition:B},_),y),{},{value:st(_,g),startAngle:L,endAngle:k,payload:_,paddingAngle:Wt(m)*s}),j})}return Be(Be({},y),{},{sectors:O,data:a})});var ioe=Math.ceil,ooe=Math.max;function loe(e,t,n,r){for(var a=-1,i=ooe(ioe((t-e)/(n||1)),0),o=Array(i);i--;)o[r?i:++a]=e,e+=n;return o}var soe=loe,uoe=lM,wA=1/0,coe=17976931348623157e292;function foe(e){if(!e)return e===0?e:0;if(e=uoe(e),e===wA||e===-wA){var t=e<0?-1:1;return t*coe}return e===e?e:0}var H$=foe,doe=soe,hoe=Ip,Ty=H$;function poe(e){return function(t,n,r){return r&&typeof r!="number"&&hoe(t,n,r)&&(n=r=void 0),t=Ty(t),n===void 0?(n=t,t=0):n=Ty(n),r=r===void 0?t<n?1:-1:Ty(r),doe(t,n,r,e)}}var moe=poe,yoe=moe,voe=yoe(),goe=voe;const Th=Ne(goe);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 OA(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 jA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OA(Object(n),!0).forEach(function(r){q$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function q$(e,t,n){return t=boe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function boe(e){var t=xoe(e,"string");return hc(t)=="symbol"?t:t+""}function xoe(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 Soe=["Webkit","Moz","O","ms"],woe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Soe.reduce(function(i,o){return jA(jA({},i),{},q$({},o+r,n))},{});return a[t]=n,a};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 Nh(){return Nh=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},Nh.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 Ny(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){mn(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 Ooe(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,G$(r.key),r)}}function joe(e,t,n){return t&&EA(e.prototype,t),n&&EA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aoe(e,t,n){return t=Ch(t),Eoe(e,F$()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function Eoe(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 _oe(e)}function _oe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F$=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function Toe(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&&Wg(e,t)}function Wg(e,t){return Wg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Wg(e,t)}function mn(e,t,n){return t=G$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G$(e){var t=Noe(e,"string");return ql(t)=="symbol"?t:t+""}function Noe(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 Coe=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=mu().domain(Th(0,s)).range([i,i+o-l]),d=u.domain().map(function(f){return u(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(a),scale:u,scaleValues:d}},_A=function(t){return t.changedTouches&&!!t.changedTouches.length},Fl=function(e){function t(n){var r;return Ooe(this,t),r=Aoe(this,t,[n]),mn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),mn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),mn(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()}),mn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),mn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),mn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),mn(r,"handleSlideDragStart",function(a){var i=_A(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 Toe(t,e),joe(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,d=u.length-1,f=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(o,f),y=t.getIndexInRange(o,h);return{startIndex:p-p%s,endIndex:y===d?d:y-y%s}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,o=a.tickFormatter,l=a.dataKey,s=st(i[r],l,r);return ce(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,d=s.width,f=s.travellerWidth,h=s.startIndex,p=s.endIndex,y=s.onChange,m=r.pageX-i;m>0?m=Math.min(m,u+d-f-l,u+d-f-o):m<0&&(m=Math.max(m,u-o,u-l));var b=this.getIndex({startX:o+m,endX:l+m});(b.startIndex!==h||b.endIndex!==p)&&y&&y(b),this.setState({startX:o+m,endX:l+m,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=_A(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],d=this.props,f=d.x,h=d.width,p=d.travellerWidth,y=d.onChange,m=d.gap,b=d.data,g={startX:this.state.startX,endX:this.state.endX},S=r.pageX-i;S>0?S=Math.min(S,f+h-p-u):S<0&&(S=Math.max(S,f-u)),g[o]=u+S;var x=this.getIndex(g),v=x.startIndex,w=x.endIndex,O=function(){var _=b.length-1;return o==="startX"&&(l>s?v%m===0:w%m===0)||l<s&&w===_||o==="endX"&&(l>s?w%m===0:v%m===0)||l>s&&w===_};this.setState(mn(mn({},o,u+S),"brushMoveStartX",r.pageX),function(){y&&O()&&y(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,o=this.state,l=o.scaleValues,s=o.startX,u=o.endX,d=this.state[a],f=l.indexOf(d);if(f!==-1){var h=f+r;if(!(h===-1||h>=l.length)){var p=l[h];a==="startX"&&p>=u||a==="endX"&&p<=s||this.setState(mn({},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 T.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,d=r.padding,f=A.Children.only(u);return f?T.cloneElement(f,{x:a,y:i,width:o,height:l,margin:d,compact:!0,data:s}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,o,l=this,s=this.props,u=s.y,d=s.travellerWidth,f=s.height,h=s.traveller,p=s.ariaLabel,y=s.data,m=s.startIndex,b=s.endIndex,g=Math.max(r,this.props.x),S=Ny(Ny({},oe(this.props,!1)),{},{x:g,y:u,width:d,height:f}),x=p||"Min value: ".concat((i=y[m])===null||i===void 0?void 0:i.name,", Max value: ").concat((o=y[b])===null||o===void 0?void 0:o.name);return T.createElement(Se,{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,S))}},{key:"renderSlide",value:function(r,a){var i=this.props,o=i.y,l=i.height,s=i.stroke,u=i.travellerWidth,d=Math.min(r,a)+u,f=Math.max(Math.abs(a-r)-u,0);return T.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:s,fillOpacity:.2,x:d,y:o,width:f,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,d=this.state,f=d.startX,h=d.endX,p=5,y={pointerEvents:"none",fill:u};return T.createElement(Se,{className:"recharts-brush-texts"},T.createElement(oo,Nh({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:o+l/2},y),this.getTextOfTick(a)),T.createElement(oo,Nh({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+s+p,y:o+l/2},y),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,d=r.height,f=r.alwaysShowText,h=this.state,p=h.startX,y=h.endX,m=h.isTextActive,b=h.isSlideMoving,g=h.isTravellerMoving,S=h.isTravellerFocused;if(!a||!a.length||!K(l)||!K(s)||!K(u)||!K(d)||u<=0||d<=0)return null;var x=me("recharts-brush",i),v=T.Children.count(o)===1,w=woe("userSelect","none");return T.createElement(Se,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:w},this.renderBackground(),v&&this.renderPanorama(),this.renderSlide(p,y),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(y,"endX"),(m||b||g||S||f)&&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 T.createElement(T.Fragment,null,T.createElement("rect",{x:a,y:i,width:o,height:l,fill:s,stroke:"none"}),T.createElement("line",{x1:a+1,y1:u,x2:a+o-1,y2:u,fill:"none",stroke:"#fff"}),T.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 T.isValidElement(r)?i=T.cloneElement(r,a):ce(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,d=r.startIndex,f=r.endIndex;if(i!==a.prevData||u!==a.prevUpdateId)return Ny({prevData:i,prevTravellerWidth:s,prevUpdateId:u,prevX:l,prevWidth:o},i&&i.length?Coe({data:i,width:o,x:l,travellerWidth:s,startIndex:d,endIndex:f}):{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}}])}(A.PureComponent);mn(Fl,"displayName","Brush");mn(Fl,"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 Moe=hx;function $oe(e,t){var n;return Moe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var Poe=$oe,Roe=RC,Doe=kr,koe=Poe,zoe=hn,Loe=Ip;function Boe(e,t,n){var r=zoe(e)?Roe:koe;return n&&Loe(e,t,n)&&(t=void 0),r(e,Doe(t))}var Uoe=Boe;const Ioe=Ne(Uoe);var Cr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},TA=nM;function Hoe(e,t,n){t=="__proto__"&&TA?TA(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var qoe=Hoe,Foe=qoe,Goe=eM,Voe=kr;function Koe(e,t){var n={};return t=Voe(t),Goe(e,function(r,a,i){Foe(n,a,t(r,a,i))}),n}var Yoe=Koe;const Xoe=Ne(Yoe);function Woe(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 Qoe=Woe,Zoe=hx;function Joe(e,t){var n=!0;return Zoe(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var ele=Joe,tle=Qoe,nle=ele,rle=kr,ale=hn,ile=Ip;function ole(e,t,n){var r=ale(e)?tle:nle;return n&&ile(e,t,n)&&(t=void 0),r(e,rle(t))}var lle=ole;const V$=Ne(lle);var sle=["x","y"];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 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 NA(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 Ks(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NA(Object(n),!0).forEach(function(r){ule(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ule(e,t,n){return t=cle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cle(e){var t=fle(e,"string");return pc(t)=="symbol"?t:t+""}function fle(e,t){if(pc(e)!="object"||!e)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)}function dle(e,t){if(e==null)return{};var n=hle(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 hle(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 ple(e,t){var n=e.x,r=e.y,a=dle(e,sle),i="".concat(n),o=parseInt(i,10),l="".concat(r),s=parseInt(l,10),u="".concat(t.height||a.height),d=parseInt(u,10),f="".concat(t.width||a.width),h=parseInt(f,10);return Ks(Ks(Ks(Ks(Ks({},t),a),o?{x:o}:{}),s?{y:s}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function CA(e){return T.createElement(B$,Qg({shapeType:"rectangle",propTransformer:ple,activeClassName:"recharts-active-bar"},e))}var mle=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)||zI(r);return i?t(r,a):(i||uo(),n)}},yle=["value","background"],K$;function Gl(e){"@babel/helpers - typeof";return Gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gl(e)}function vle(e,t){if(e==null)return{};var n=gle(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 gle(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 Mh(){return Mh=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},Mh.apply(this,arguments)}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 dt(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){Fa(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 ble(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $A(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X$(r.key),r)}}function xle(e,t,n){return t&&$A(e.prototype,t),n&&$A(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sle(e,t,n){return t=$h(t),wle(e,Y$()?Reflect.construct(t,n||[],$h(e).constructor):t.apply(e,n))}function wle(e,t){if(t&&(Gl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ole(e)}function Ole(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y$=function(){return!!e})()}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$h(e)}function jle(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&&Zg(e,t)}function Zg(e,t){return Zg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Zg(e,t)}function Fa(e,t,n){return t=X$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X$(e){var t=Ale(e,"string");return Gl(t)=="symbol"?t:t+""}function Ale(e,t){if(Gl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Oo=function(e){function t(){var n;ble(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Sle(this,t,[].concat(a)),Fa(n,"state",{isAnimationFinished:!1}),Fa(n,"id",bo("recharts-bar-")),Fa(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Fa(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return jle(t,e),xle(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,o=i.shape,l=i.dataKey,s=i.activeIndex,u=i.activeBar,d=oe(this.props,!1);return r&&r.map(function(f,h){var p=h===s,y=p?u:o,m=dt(dt(dt({},d),f),{},{isActive:p,option:y,index:h,dataKey:l,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return T.createElement(Se,Mh({className:"recharts-bar-rectangle"},io(a.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),T.createElement(CA,m))})}},{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,d=a.animationEasing,f=a.animationId,h=this.state.prevData;return T.createElement(hr,{begin:s,duration:u,isActive:l,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var y=p.t,m=i.map(function(b,g){var S=h&&h[g];if(S){var x=wt(S.x,b.x),v=wt(S.y,b.y),w=wt(S.width,b.width),O=wt(S.height,b.height);return dt(dt({},b),{},{x:x(y),y:v(y),width:w(y),height:O(y)})}if(o==="horizontal"){var j=wt(0,b.height),_=j(y);return dt(dt({},b),{},{y:b.y+b.height-_,height:_})}var E=wt(0,b.width),N=E(y);return dt(dt({},b),{},{width:N})});return T.createElement(Se,null,r.renderRectanglesStatically(m))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,o=this.state.prevData;return i&&a&&a.length&&(!o||!lo(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,d){u.value;var f=u.background,h=vle(u,yle);if(!f)return null;var p=dt(dt(dt(dt(dt({},h),{},{fill:"#eee"},f),s),io(r.props,u,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:d,className:"recharts-bar-background-rectangle"});return T.createElement(CA,Mh({key:"background-bar-".concat(d),option:r.props.background,isActive:d===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,d=i.children,f=Nn(d,Yc);if(!f)return null;var h=u==="vertical"?o[0].height/2:o[0].width/2,p=function(b,g){var S=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:S,errorVal:st(b,g)}},y={clipPath:r?"url(#clipPath-".concat(a,")"):null};return T.createElement(Se,y,f.map(function(m){return T.cloneElement(m,{key:"error-bar-".concat(a,"-").concat(m.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,d=r.top,f=r.width,h=r.height,p=r.isAnimationActive,y=r.background,m=r.id;if(a||!i||!i.length)return null;var b=this.state.isAnimationFinished,g=me("recharts-bar",o),S=l&&l.allowDataOverflow,x=s&&s.allowDataOverflow,v=S||x,w=pe(m)?this.id:m;return T.createElement(Se,{className:g},S||x?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(w)},T.createElement("rect",{x:S?u:u-f/2,y:x?d:d-h/2,width:S?f:f*2,height:x?h:h*2}))):null,T.createElement(Se,{className:"recharts-bar-rectangles",clipPath:v?"url(#clipPath-".concat(w,")"):null},y?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(v,w),(!p||b)&&Nr.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}}])}(A.PureComponent);K$=Oo;Fa(Oo,"displayName","Bar");Fa(Oo,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!fi.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Fa(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,d=e.dataStartIndex,f=e.displayedData,h=e.offset,p=tte(r,n);if(!p)return null;var y=t.layout,m=n.type.defaultProps,b=m!==void 0?dt(dt({},m),n.props):n.props,g=b.dataKey,S=b.children,x=b.minPointSize,v=y==="horizontal"?o:i,w=u?v.scale.domain():null,O=ste({numericAxis:v}),j=Nn(S,Hp),_=f.map(function(E,N){var $,C,L,k,R,M;u?$=nte(u[d+N],w):($=st(E,g),Array.isArray($)||($=[O,$]));var z=mle(x,K$.defaultProps.minPointSize)($[1],N);if(y==="horizontal"){var B,F=[o.scale($[0]),o.scale($[1])],V=F[0],ee=F[1];C=jj({axis:i,ticks:l,bandSize:a,offset:p.offset,entry:E,index:N}),L=(B=ee??V)!==null&&B!==void 0?B:void 0,k=p.size;var X=V-ee;if(R=Number.isNaN(X)?0:X,M={x:C,y:o.y,width:k,height:o.height},Math.abs(z)>0&&Math.abs(R)<Math.abs(z)){var ie=Wt(R||z)*(Math.abs(z)-Math.abs(R));L-=ie,R+=ie}}else{var D=[i.scale($[0]),i.scale($[1])],W=D[0],se=D[1];if(C=W,L=jj({axis:o,ticks:s,bandSize:a,offset:p.offset,entry:E,index:N}),k=se-W,R=p.size,M={x:i.x,y:L,width:i.width,height:R},Math.abs(z)>0&&Math.abs(k)<Math.abs(z)){var fe=Wt(k||z)*(Math.abs(z)-Math.abs(k));k+=fe}}return dt(dt(dt({},E),{},{x:C,y:L,width:k,height:R,value:u?$:$[1],payload:E,background:M},j&&j[N]&&j[N].props),{},{tooltipPayload:[v$(n,E)],tooltipPosition:{x:C+k/2,y:L+R/2}})});return dt({data:_,layout:y},h)});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 Ele(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function PA(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,W$(r.key),r)}}function _le(e,t,n){return t&&PA(e.prototype,t),n&&PA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function RA(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?RA(Object(n),!0).forEach(function(r){im(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function im(e,t,n){return t=W$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W$(e){var t=Tle(e,"string");return mc(t)=="symbol"?t:t+""}function Tle(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 Hx=function(t,n,r,a,i){var o=t.width,l=t.height,s=t.layout,u=t.children,d=Object.keys(n),f={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=!!vn(u,Oo);return d.reduce(function(p,y){var m=n[y],b=m.orientation,g=m.domain,S=m.padding,x=S===void 0?{}:S,v=m.mirror,w=m.reversed,O="".concat(b).concat(v?"Mirror":""),j,_,E,N,$;if(m.type==="number"&&(m.padding==="gap"||m.padding==="no-gap")){var C=g[1]-g[0],L=1/0,k=m.categoricalDomain.sort(UI);if(k.forEach(function(D,W){W>0&&(L=Math.min((D||0)-(k[W-1]||0),L))}),Number.isFinite(L)){var R=L/C,M=m.layout==="vertical"?r.height:r.width;if(m.padding==="gap"&&(j=R*M/2),m.padding==="no-gap"){var z=Qt(t.barCategoryGap,R*M),B=R*M/2;j=B-z-(B-z)/M*z}}}a==="xAxis"?_=[r.left+(x.left||0)+(j||0),r.left+r.width-(x.right||0)-(j||0)]:a==="yAxis"?_=s==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(j||0),r.top+r.height-(x.bottom||0)-(j||0)]:_=m.range,w&&(_=[_[1],_[0]]);var F=h$(m,i,h),V=F.scale,ee=F.realScaleType;V.domain(g).range(_),p$(V);var X=m$(V,lr(lr({},m),{},{realScaleType:ee}));a==="xAxis"?($=b==="top"&&!v||b==="bottom"&&v,E=r.left,N=f[O]-$*m.height):a==="yAxis"&&($=b==="left"&&!v||b==="right"&&v,E=f[O]-$*m.width,N=r.top);var ie=lr(lr(lr({},m),X),{},{realScaleType:ee,x:E,y:N,scale:V,width:a==="xAxis"?r.width:m.width,height:a==="yAxis"?r.height:m.height});return ie.bandSize=mh(ie,X),!m.hide&&a==="xAxis"?f[O]+=($?-1:1)*ie.height:m.hide||(f[O]+=($?-1:1)*ie.width),lr(lr({},p),{},im({},y,ie))},{})},Q$=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)}},Nle=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return Q$({x:n,y:r},{x:a,y:i})},Z$=function(){function e(t){Ele(this,e),this.scale=t}return _le(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)}}])}();im(Z$,"EPS",1e-4);var qx=function(t){var n=Object.keys(t).reduce(function(r,a){return lr(lr({},r),{},im({},a,Z$.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 Xoe(a,function(s,u){return n[u].apply(s,{bandAware:o,position:l})})},isInRange:function(a){return V$(a,function(i,o){return n[o].isInRange(i)})}})};function Cle(e){return(e%180+180)%180}var Mle=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=Cle(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)},$le=kr,Ple=qc,Rle=Bp;function Dle(e){return function(t,n,r){var a=Object(t);if(!Ple(t)){var i=$le(n);t=Rle(t),n=function(l){return i(a[l],l,a)}}var o=e(t,n,r);return o>-1?a[i?t[o]:o]:void 0}}var kle=Dle,zle=H$;function Lle(e){var t=zle(e),n=t%1;return t===t?n?t-n:t:0}var Ble=Lle,Ule=YC,Ile=kr,Hle=Ble,qle=Math.max;function Fle(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:Hle(n);return a<0&&(a=qle(r+a,0)),Ule(e,Ile(t),a)}var Gle=Fle,Vle=kle,Kle=Gle,Yle=Vle(Kle),Xle=Yle;const Wle=Ne(Xle);var Qle=qU(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("")}),Fx=A.createContext(void 0),Gx=A.createContext(void 0),J$=A.createContext(void 0),eP=A.createContext({}),tP=A.createContext(void 0),nP=A.createContext(0),rP=A.createContext(0),DA=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,d=Qle(i);return T.createElement(Fx.Provider,{value:r},T.createElement(Gx.Provider,{value:a},T.createElement(eP.Provider,{value:i},T.createElement(J$.Provider,{value:d},T.createElement(tP.Provider,{value:o},T.createElement(nP.Provider,{value:u},T.createElement(rP.Provider,{value:s},l)))))))},Zle=function(){return A.useContext(tP)},aP=function(t){var n=A.useContext(Fx);n==null&&uo();var r=n[t];return r==null&&uo(),r},Jle=function(){var t=A.useContext(Fx);return Ma(t)},ese=function(){var t=A.useContext(Gx),n=Wle(t,function(r){return V$(r.domain,Number.isFinite)});return n||Ma(t)},iP=function(t){var n=A.useContext(Gx);n==null&&uo();var r=n[t];return r==null&&uo(),r},tse=function(){var t=A.useContext(J$);return t},nse=function(){return A.useContext(eP)},Vx=function(){return A.useContext(rP)},Kx=function(){return A.useContext(nP)};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 rse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ase(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,lP(r.key),r)}}function ise(e,t,n){return t&&ase(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ose(e,t,n){return t=Ph(t),lse(e,oP()?Reflect.construct(t,n||[],Ph(e).constructor):t.apply(e,n))}function lse(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 sse(e)}function sse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oP=function(){return!!e})()}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ph(e)}function use(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&&Jg(e,t)}function Jg(e,t){return Jg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Jg(e,t)}function kA(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?kA(Object(n),!0).forEach(function(r){Yx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yx(e,t,n){return t=lP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lP(e){var t=cse(e,"string");return Vl(t)=="symbol"?t:t+""}function cse(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 String(e)}function fse(e,t){return mse(e)||pse(e,t)||hse(e,t)||dse()}function dse(){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 hse(e,t){if(e){if(typeof e=="string")return LA(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 LA(e,t)}}function LA(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 pse(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function mse(e){if(Array.isArray(e))return e}function eb(){return eb=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},eb.apply(this,arguments)}var yse=function(t,n){var r;return T.isValidElement(t)?r=T.cloneElement(t,n):ce(t)?r=t(n):r=T.createElement("line",eb({},n,{className:"recharts-reference-line-line"})),r},vse=function(t,n,r,a,i,o,l,s,u){var d=i.x,f=i.y,h=i.width,p=i.height;if(r){var y=u.y,m=t.y.apply(y,{position:o});if(Cr(u,"discard")&&!t.y.isInRange(m))return null;var b=[{x:d+h,y:m},{x:d,y:m}];return s==="left"?b.reverse():b}if(n){var g=u.x,S=t.x.apply(g,{position:o});if(Cr(u,"discard")&&!t.x.isInRange(S))return null;var x=[{x:S,y:f+p},{x:S,y:f}];return l==="top"?x.reverse():x}if(a){var v=u.segment,w=v.map(function(O){return t.apply(O,{position:o})});return Cr(u,"discard")&&Ioe(w,function(O){return!t.isInRange(O)})?null:w}return null};function gse(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=Zle(),d=aP(a),f=iP(i),h=tse();if(!u||!h)return null;fr(s===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=qx({x:d.scale,y:f.scale}),y=jt(t),m=jt(n),b=r&&r.length===2,g=vse(p,y,m,b,h,e.position,d.orientation,f.orientation,e);if(!g)return null;var S=fse(g,2),x=S[0],v=x.x,w=x.y,O=S[1],j=O.x,_=O.y,E=Cr(e,"hidden")?"url(#".concat(u,")"):void 0,N=zA(zA({clipPath:E},oe(e,!0)),{},{x1:v,y1:w,x2:j,y2:_});return T.createElement(Se,{className:me("recharts-reference-line",l)},yse(o,N),Mt.renderCallByParent(e,Nle({x1:v,y1:w,x2:j,y2:_})))}var Xx=function(e){function t(){return rse(this,t),ose(this,t,arguments)}return use(t,e),ise(t,[{key:"render",value:function(){return T.createElement(gse,this.props)}}])}(T.Component);Yx(Xx,"displayName","ReferenceLine");Yx(Xx,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function tb(){return tb=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},tb.apply(this,arguments)}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)}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 UA(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){om(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 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,uP(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=Rh(t),Ose(e,sP()?Reflect.construct(t,n||[],Rh(e).constructor):t.apply(e,n))}function Ose(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 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 sP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sP=function(){return!!e})()}function Rh(e){return Rh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rh(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&&nb(e,t)}function nb(e,t){return nb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},nb(e,t)}function om(e,t,n){return t=uP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uP(e){var t=Ese(e,"string");return Kl(t)=="symbol"?t:t+""}function Ese(e,t){if(Kl(e)!="object"||!e)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 String(e)}var _se=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,o=qx({x:a.scale,y:i.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return Cr(t,"discard")&&!o.isInRange(l)?null:l},lm=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.x,i=r.y,o=r.r,l=r.alwaysShow,s=r.clipPathId,u=jt(a),d=jt(i);if(fr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!d)return null;var f=_se(this.props);if(!f)return null;var h=f.x,p=f.y,y=this.props,m=y.shape,b=y.className,g=Cr(this.props,"hidden")?"url(#".concat(s,")"):void 0,S=UA(UA({clipPath:g},oe(this.props,!0)),{},{cx:h,cy:p});return T.createElement(Se,{className:me("recharts-reference-dot",b)},t.renderDot(m,S),Mt.renderCallByParent(this.props,{x:h-o,y:p-o,width:2*o,height:2*o}))}}])}(T.Component);om(lm,"displayName","ReferenceDot");om(lm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});om(lm,"renderDot",function(e,t){var n;return T.isValidElement(e)?n=T.cloneElement(e,t):ce(e)?n=e(t):n=T.createElement(Xc,tb({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function rb(){return rb=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},rb.apply(this,arguments)}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 IA(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 HA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IA(Object(n),!0).forEach(function(r){sm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nse(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fP(r.key),r)}}function Cse(e,t,n){return t&&Nse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mse(e,t,n){return t=Dh(t),$se(e,cP()?Reflect.construct(t,n||[],Dh(e).constructor):t.apply(e,n))}function $se(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 Pse(e)}function Pse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cP=function(){return!!e})()}function Dh(e){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dh(e)}function Rse(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&&ab(e,t)}function ab(e,t){return ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ab(e,t)}function sm(e,t,n){return t=fP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fP(e){var t=Dse(e,"string");return Yl(t)=="symbol"?t:t+""}function Dse(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 kse=function(t,n,r,a,i){var o=i.x1,l=i.x2,s=i.y1,u=i.y2,d=i.xAxis,f=i.yAxis;if(!d||!f)return null;var h=qx({x:d.scale,y:f.scale}),p={x:t?h.x.apply(o,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(s,{position:"start"}):h.y.rangeMin},y={x:n?h.x.apply(l,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(u,{position:"end"}):h.y.rangeMax};return Cr(i,"discard")&&(!h.isInRange(p)||!h.isInRange(y))?null:Q$(p,y)},um=function(e){function t(){return Tse(this,t),Mse(this,t,arguments)}return Rse(t,e),Cse(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,d=r.clipPathId;fr(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=jt(a),h=jt(i),p=jt(o),y=jt(l),m=this.props.shape;if(!f&&!h&&!p&&!y&&!m)return null;var b=kse(f,h,p,y,this.props);if(!b&&!m)return null;var g=Cr(this.props,"hidden")?"url(#".concat(d,")"):void 0;return T.createElement(Se,{className:me("recharts-reference-area",s)},t.renderRect(m,HA(HA({clipPath:g},oe(this.props,!0)),b)),Mt.renderCallByParent(this.props,b))}}])}(T.Component);sm(um,"displayName","ReferenceArea");sm(um,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});sm(um,"renderRect",function(e,t){var n;return T.isValidElement(e)?n=T.cloneElement(e,t):ce(e)?n=e(t):n=T.createElement(Ix,rb({},t,{className:"recharts-reference-area-rect"})),n});function dP(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 zse(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Mle(r,n)}function Lse(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 kh(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 Bse(e,t){return dP(e,t+1)}function Use(e,t,n,r,a){for(var i=(r||[]).slice(),o=t.start,l=t.end,s=0,u=1,d=o,f=function(){var y=r==null?void 0:r[s];if(y===void 0)return{v:dP(r,u)};var m=s,b,g=function(){return b===void 0&&(b=n(y,m)),b},S=y.coordinate,x=s===0||kh(e,S,g,d,l);x||(s=0,d=o,u+=1),x&&(d=S+e*(g()/2+a),s+=u)},h;u<=i.length;)if(h=f(),h)return h.v;return[]}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 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 Ft(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){Ise(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 Ise(e,t,n){return t=Hse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hse(e){var t=qse(e,"string");return yc(t)=="symbol"?t:t+""}function qse(e,t){if(yc(e)!="object"||!e)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 Fse(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],y,m=function(){return y===void 0&&(y=n(p,h)),y};if(h===o-1){var b=e*(p.coordinate+e*m()/2-s);i[h]=p=Ft(Ft({},p),{},{tickCoord:b>0?p.coordinate-b*e:p.coordinate})}else i[h]=p=Ft(Ft({},p),{},{tickCoord:p.coordinate});var g=kh(e,p.tickCoord,m,l,s);g&&(s=p.tickCoord-e*(m()/2+a),i[h]=Ft(Ft({},p),{},{isShow:!0}))},d=o-1;d>=0;d--)u(d);return i}function Gse(e,t,n,r,a,i){var o=(r||[]).slice(),l=o.length,s=t.start,u=t.end;if(i){var d=r[l-1],f=n(d,l-1),h=e*(d.coordinate+e*f/2-u);o[l-1]=d=Ft(Ft({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate});var p=kh(e,d.tickCoord,function(){return f},s,u);p&&(u=d.tickCoord-e*(f/2+a),o[l-1]=Ft(Ft({},d),{},{isShow:!0}))}for(var y=i?l-1:l,m=function(S){var x=o[S],v,w=function(){return v===void 0&&(v=n(x,S)),v};if(S===0){var O=e*(x.coordinate-e*w()/2-s);o[S]=x=Ft(Ft({},x),{},{tickCoord:O<0?x.coordinate-O*e:x.coordinate})}else o[S]=x=Ft(Ft({},x),{},{tickCoord:x.coordinate});var j=kh(e,x.tickCoord,w,s,u);j&&(s=x.tickCoord+e*(w()/2+a),o[S]=Ft(Ft({},x),{},{isShow:!0}))},b=0;b<y;b++)m(b);return o}function Wx(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,d=e.unit,f=e.angle;if(!a||!a.length||!r)return[];if(K(s)||fi.isSsr)return Bse(a,typeof s=="number"&&K(s)?s:0);var h=[],p=l==="top"||l==="bottom"?"width":"height",y=d&&p==="width"?pu(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},m=function(x,v){var w=ce(u)?u(x.value,v):x.value;return p==="width"?zse(pu(w,{fontSize:t,letterSpacing:n}),y,f):pu(w,{fontSize:t,letterSpacing:n})[p]},b=a.length>=2?Wt(a[1].coordinate-a[0].coordinate):1,g=Lse(i,b,p);return s==="equidistantPreserveStart"?Use(b,g,m,a,o):(s==="preserveStart"||s==="preserveStartEnd"?h=Gse(b,g,m,a,o,s==="preserveStartEnd"):h=Fse(b,g,m,a,o),h.filter(function(S){return S.isShow}))}var Vse=["viewBox"],Kse=["viewBox"],Yse=["ticks"];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 Qo(){return Qo=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},Qo.apply(this,arguments)}function FA(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 xt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FA(Object(n),!0).forEach(function(r){Qx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cy(e,t){if(e==null)return{};var n=Xse(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 Xse(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 Wse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GA(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,pP(r.key),r)}}function Qse(e,t,n){return t&&GA(e.prototype,t),n&&GA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zse(e,t,n){return t=zh(t),Jse(e,hP()?Reflect.construct(t,n||[],zh(e).constructor):t.apply(e,n))}function Jse(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 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 hP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hP=function(){return!!e})()}function zh(e){return zh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zh(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&&ib(e,t)}function ib(e,t){return ib=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ib(e,t)}function Qx(e,t,n){return t=pP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pP(e){var t=nue(e,"string");return Xl(t)=="symbol"?t:t+""}function nue(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 String(e)}var Ts=function(e){function t(n){var r;return Wse(this,t),r=Zse(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return tue(t,e),Qse(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,o=Cy(r,Vse),l=this.props,s=l.viewBox,u=Cy(l,Kse);return!ol(i,s)||!ol(o,u)||!ol(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,d=a.tickSize,f=a.mirror,h=a.tickMargin,p,y,m,b,g,S,x=f?-1:1,v=r.tickSize||d,w=K(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":p=y=r.coordinate,b=o+ +!f*s,m=b-x*v,S=m-x*h,g=w;break;case"left":m=b=r.coordinate,y=i+ +!f*l,p=y-x*v,g=p-x*h,S=w;break;case"right":m=b=r.coordinate,y=i+ +f*l,p=y+x*v,g=p+x*h,S=w;break;default:p=y=r.coordinate,b=o+ +f*s,m=b+x*v,S=m+x*h,g=w;break}return{line:{x1:p,y1:m,x2:y,y2:b},tick:{x:g,y:S}}}},{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,d=r.axisLine,f=xt(xt(xt({},oe(this.props,!1)),oe(d,!1)),{},{fill:"none"});if(s==="top"||s==="bottom"){var h=+(s==="top"&&!u||s==="bottom"&&u);f=xt(xt({},f),{},{x1:a,y1:i+h*l,x2:a+o,y2:i+h*l})}else{var p=+(s==="left"&&!u||s==="right"&&u);f=xt(xt({},f),{},{x1:a+p*o,y1:i,x2:a+p*o,y2:i+l})}return T.createElement("line",Qo({},f,{className:me("recharts-cartesian-axis-line",Tn(d,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var o=this,l=this.props,s=l.tickLine,u=l.stroke,d=l.tick,f=l.tickFormatter,h=l.unit,p=Wx(xt(xt({},this.props),{},{ticks:r}),a,i),y=this.getTickTextAnchor(),m=this.getTickVerticalAnchor(),b=oe(this.props,!1),g=oe(d,!1),S=xt(xt({},b),{},{fill:"none"},oe(s,!1)),x=p.map(function(v,w){var O=o.getTickLineCoord(v),j=O.line,_=O.tick,E=xt(xt(xt(xt({textAnchor:y,verticalAnchor:m},b),{},{stroke:"none",fill:u},g),_),{},{index:w,payload:v,visibleTicksCount:p.length,tickFormatter:f});return T.createElement(Se,Qo({className:"recharts-cartesian-axis-tick",key:"tick-".concat(v.value,"-").concat(v.coordinate,"-").concat(v.tickCoord)},io(o.props,v,w)),s&&T.createElement("line",Qo({},S,j,{className:me("recharts-cartesian-axis-tick-line",Tn(s,"className"))})),d&&t.renderTickItem(d,E,"".concat(ce(f)?f(v.value,w):v.value).concat(h||"")))});return T.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,d=a.hide;if(d)return null;var f=this.props,h=f.ticks,p=Cy(f,Yse),y=h;return ce(s)&&(y=h&&h.length>0?s(this.props):s(p)),o<=0||l<=0||!y||!y.length?null:T.createElement(Se,{className:me("recharts-cartesian-axis",u),ref:function(b){r.layerReference=b}},i&&this.renderAxisLine(),this.renderTicks(y,this.state.fontSize,this.state.letterSpacing),Mt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var o,l=me(a.className,"recharts-cartesian-axis-tick-value");return T.isValidElement(r)?o=T.cloneElement(r,xt(xt({},a),{},{className:l})):ce(r)?o=r(xt(xt({},a),{},{className:l})):o=T.createElement(oo,Qo({},a,{className:"recharts-cartesian-axis-tick-value"}),i),o}}])}(A.Component);Qx(Ts,"displayName","CartesianAxis");Qx(Ts,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var rue=["x1","y1","x2","y2","key"],aue=["offset"];function co(e){"@babel/helpers - typeof";return co=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},co(e)}function 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 Gt(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){iue(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 iue(e,t,n){return t=oue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oue(e){var t=lue(e,"string");return co(t)=="symbol"?t:t+""}function lue(e,t){if(co(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(co(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ri(){return Ri=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},Ri.apply(this,arguments)}function KA(e,t){if(e==null)return{};var n=sue(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 sue(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 uue=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,i=t.y,o=t.width,l=t.height,s=t.ry;return T.createElement("rect",{x:a,y:i,ry:s,width:o,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function mP(e,t){var n;if(T.isValidElement(e))n=T.cloneElement(e,t);else if(ce(e))n=e(t);else{var r=t.x1,a=t.y1,i=t.x2,o=t.y2,l=t.key,s=KA(t,rue),u=oe(s,!1);u.offset;var d=KA(u,aue);n=T.createElement("line",Ri({},d,{x1:r,y1:a,x2:i,y2:o,fill:"none",key:l}))}return n}function cue(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,s){var u=Gt(Gt({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(s),index:s});return mP(a,u)});return T.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function fue(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,i=e.verticalPoints;if(!a||!i||!i.length)return null;var o=i.map(function(l,s){var u=Gt(Gt({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(s),index:s});return mP(a,u)});return T.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function due(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,i=e.width,o=e.height,l=e.horizontalPoints,s=e.horizontal,u=s===void 0?!0:s;if(!u||!t||!t.length)return null;var d=l.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==d[0]&&d.unshift(0);var f=d.map(function(h,p){var y=!d[p+1],m=y?a+o-h:d[p+1]-h;if(m<=0)return null;var b=p%t.length;return T.createElement("rect",{key:"react-".concat(p),y:h,x:r,height:m,width:i,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function hue(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,i=e.x,o=e.y,l=e.width,s=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var d=u.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==d[0]&&d.unshift(0);var f=d.map(function(h,p){var y=!d[p+1],m=y?i+l-h:d[p+1]-h;if(m<=0)return null;var b=p%r.length;return T.createElement("rect",{key:"react-".concat(p),x:h,y:o,width:m,height:s,stroke:"none",fill:r[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return T.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var pue=function(t,n){var r=t.xAxis,a=t.width,i=t.height,o=t.offset;return d$(Wx(Gt(Gt(Gt({},Ts.defaultProps),r),{},{ticks:Jr(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.left,o.left+o.width,n)},mue=function(t,n){var r=t.yAxis,a=t.width,i=t.height,o=t.offset;return d$(Wx(Gt(Gt(Gt({},Ts.defaultProps),r),{},{ticks:Jr(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),o.top,o.top+o.height,n)},Co={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function ad(e){var t,n,r,a,i,o,l=Vx(),s=Kx(),u=nse(),d=Gt(Gt({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Co.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Co.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Co.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:Co.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:Co.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Co.verticalFill,x:K(e.x)?e.x:u.left,y:K(e.y)?e.y:u.top,width:K(e.width)?e.width:u.width,height:K(e.height)?e.height:u.height}),f=d.x,h=d.y,p=d.width,y=d.height,m=d.syncWithTicks,b=d.horizontalValues,g=d.verticalValues,S=Jle(),x=ese();if(!K(p)||p<=0||!K(y)||y<=0||!K(f)||f!==+f||!K(h)||h!==+h)return null;var v=d.verticalCoordinatesGenerator||pue,w=d.horizontalCoordinatesGenerator||mue,O=d.horizontalPoints,j=d.verticalPoints;if((!O||!O.length)&&ce(w)){var _=b&&b.length,E=w({yAxis:x?Gt(Gt({},x),{},{ticks:_?b:x.ticks}):void 0,width:l,height:s,offset:u},_?!0:m);fr(Array.isArray(E),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(co(E),"]")),Array.isArray(E)&&(O=E)}if((!j||!j.length)&&ce(v)){var N=g&&g.length,$=v({xAxis:S?Gt(Gt({},S),{},{ticks:N?g:S.ticks}):void 0,width:l,height:s,offset:u},N?!0:m);fr(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(co($),"]")),Array.isArray($)&&(j=$)}return T.createElement("g",{className:"recharts-cartesian-grid"},T.createElement(uue,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),T.createElement(cue,Ri({},d,{offset:u,horizontalPoints:O,xAxis:S,yAxis:x})),T.createElement(fue,Ri({},d,{offset:u,verticalPoints:j,xAxis:S,yAxis:x})),T.createElement(due,Ri({},d,{horizontalPoints:O})),T.createElement(hue,Ri({},d,{verticalPoints:j})))}ad.displayName="CartesianGrid";var yue=["type","layout","connectNulls","ref"],vue=["key"];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 YA(e,t){if(e==null)return{};var n=gue(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 gue(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 xu(){return xu=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},xu.apply(this,arguments)}function XA(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 pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XA(Object(n),!0).forEach(function(r){sr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mo(e){return wue(e)||Sue(e)||xue(e)||bue()}function bue(){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 xue(e,t){if(e){if(typeof e=="string")return ob(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 ob(e,t)}}function Sue(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function wue(e){if(Array.isArray(e))return ob(e)}function ob(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 Oue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WA(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,vP(r.key),r)}}function jue(e,t,n){return t&&WA(e.prototype,t),n&&WA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Aue(e,t,n){return t=Lh(t),Eue(e,yP()?Reflect.construct(t,n||[],Lh(e).constructor):t.apply(e,n))}function Eue(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 _ue(e)}function _ue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yP=function(){return!!e})()}function Lh(e){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lh(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&&lb(e,t)}function lb(e,t){return lb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},lb(e,t)}function sr(e,t,n){return t=vP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vP(e){var t=Nue(e,"string");return Wl(t)=="symbol"?t:t+""}function Nue(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 Wc=function(e){function t(){var n;Oue(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Aue(this,t,[].concat(a)),sr(n,"state",{isAnimationFinished:!0,totalLength:0}),sr(n,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),sr(n,"getStrokeDasharray",function(o,l,s){var u=s.reduce(function(g,S){return g+S});if(!u)return n.generateSimpleStrokeDasharray(l,o);for(var d=Math.floor(o/u),f=o%u,h=l-o,p=[],y=0,m=0;y<s.length;m+=s[y],++y)if(m+s[y]>f){p=[].concat(Mo(s.slice(0,y)),[f-m]);break}var b=p.length%2===0?[0,h]:[h];return[].concat(Mo(t.repeat(s,d)),Mo(p),b).map(function(g){return"".concat(g,"px")}).join(", ")}),sr(n,"id",bo("recharts-line-")),sr(n,"pathRef",function(o){n.mainCurve=o}),sr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),sr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Tue(t,e),jue(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,o=i.points,l=i.xAxis,s=i.yAxis,u=i.layout,d=i.children,f=Nn(d,Yc);if(!f)return null;var h=function(m,b){return{x:m.x,y:m.y,value:m.value,errorVal:st(m.payload,b)}},p={clipPath:r?"url(#clipPath-".concat(a,")"):null};return T.createElement(Se,p,f.map(function(y){return T.cloneElement(y,{key:"bar-".concat(y.props.dataKey),data:o,xAxis:l,yAxis:s,layout:u,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,a,i){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.dot,u=l.points,d=l.dataKey,f=oe(this.props,!1),h=oe(s,!0),p=u.map(function(m,b){var g=pn(pn(pn({key:"dot-".concat(b),r:3},f),h),{},{index:b,cx:m.x,cy:m.y,value:m.value,dataKey:d,payload:m.payload,points:u});return t.renderDotItem(s,g)}),y={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return T.createElement(Se,xu({className:"recharts-line-dots",key:"dots"},y),p)}},{key:"renderCurveStatically",value:function(r,a,i,o){var l=this.props,s=l.type,u=l.layout,d=l.connectNulls;l.ref;var f=YA(l,yue),h=pn(pn(pn({},oe(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:r},o),{},{type:s,layout:u,connectNulls:d});return T.createElement(Wi,xu({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var i=this,o=this.props,l=o.points,s=o.strokeDasharray,u=o.isAnimationActive,d=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=o.animateNewValues,m=o.width,b=o.height,g=this.state,S=g.prevPoints,x=g.totalLength;return T.createElement(hr,{begin:d,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var w=v.t;if(S){var O=S.length/l.length,j=l.map(function(C,L){var k=Math.floor(L*O);if(S[k]){var R=S[k],M=wt(R.x,C.x),z=wt(R.y,C.y);return pn(pn({},C),{},{x:M(w),y:z(w)})}if(y){var B=wt(m*2,C.x),F=wt(b/2,C.y);return pn(pn({},C),{},{x:B(w),y:F(w)})}return pn(pn({},C),{},{x:C.x,y:C.y})});return i.renderCurveStatically(j,r,a)}var _=wt(0,x),E=_(w),N;if(s){var $="".concat(s).split(/[,\s]+/gim).map(function(C){return parseFloat(C)});N=i.getStrokeDasharray(E,x,$)}else N=i.generateSimpleStrokeDasharray(x,E);return i.renderCurveStatically(l,r,a,{strokeDasharray:N})})}},{key:"renderCurve",value:function(r,a){var i=this.props,o=i.points,l=i.isAnimationActive,s=this.state,u=s.prevPoints,d=s.totalLength;return l&&o&&o.length&&(!u&&d>0||!lo(u,o))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(o,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,o=a.dot,l=a.points,s=a.className,u=a.xAxis,d=a.yAxis,f=a.top,h=a.left,p=a.width,y=a.height,m=a.isAnimationActive,b=a.id;if(i||!l||!l.length)return null;var g=this.state.isAnimationFinished,S=l.length===1,x=me("recharts-line",s),v=u&&u.allowDataOverflow,w=d&&d.allowDataOverflow,O=v||w,j=pe(b)?this.id:b,_=(r=oe(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},E=_.r,N=E===void 0?3:E,$=_.strokeWidth,C=$===void 0?2:$,L=iC(o)?o:{},k=L.clipDot,R=k===void 0?!0:k,M=N*2+C;return T.createElement(Se,{className:x},v||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(j)},T.createElement("rect",{x:v?h:h-p/2,y:w?f:f-y/2,width:v?p:p*2,height:w?y:y*2})),!R&&T.createElement("clipPath",{id:"clipPath-dots-".concat(j)},T.createElement("rect",{x:h-M/2,y:f-M/2,width:p+M,height:y+M}))):null,!S&&this.renderCurve(O,j),this.renderErrorBar(O,j),(S||o)&&this.renderDots(O,R,j),(!m||g)&&Nr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var i=r.length%2!==0?[].concat(Mo(r),[0]):r,o=[],l=0;l<a;++l)o=[].concat(Mo(o),Mo(i));return o}},{key:"renderDotItem",value:function(r,a){var i;if(T.isValidElement(r))i=T.cloneElement(r,a);else if(ce(r))i=r(a);else{var o=a.key,l=YA(a,vue),s=me("recharts-line-dot",typeof r!="boolean"?r.className:"");i=T.createElement(Xc,xu({key:o},l,{className:s}))}return i}}])}(A.PureComponent);sr(Wc,"displayName","Line");sr(Wc,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!fi.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});sr(Wc,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,o=e.dataKey,l=e.bandSize,s=e.displayedData,u=e.offset,d=t.layout,f=s.map(function(h,p){var y=st(h,o);return d==="horizontal"?{x:ph({axis:n,ticks:a,bandSize:l,entry:h,index:p}),y:pe(y)?null:r.scale(y),value:y,payload:h}:{x:pe(y)?null:n.scale(y),y:ph({axis:r,ticks:i,bandSize:l,entry:h,index:p}),value:y,payload:h}});return pn({points:f,layout:d},u)});var Cue=["layout","type","stroke","connectNulls","isRange","ref"],Mue=["key"],gP;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 bP(e,t){if(e==null)return{};var n=$ue(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 $ue(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 Di(){return Di=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},Di.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 Oa(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){Er(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 Pue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZA(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,SP(r.key),r)}}function Rue(e,t,n){return t&&ZA(e.prototype,t),n&&ZA(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Due(e,t,n){return t=Bh(t),kue(e,xP()?Reflect.construct(t,n||[],Bh(e).constructor):t.apply(e,n))}function kue(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 zue(e)}function zue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xP=function(){return!!e})()}function Bh(e){return Bh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bh(e)}function Lue(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&&sb(e,t)}function sb(e,t){return sb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},sb(e,t)}function Er(e,t,n){return t=SP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SP(e){var t=Bue(e,"string");return Ql(t)=="symbol"?t:t+""}function Bue(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 mi=function(e){function t(){var n;Pue(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Due(this,t,[].concat(a)),Er(n,"state",{isAnimationFinished:!0}),Er(n,"id",bo("recharts-area-")),Er(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ce(o)&&o()}),Er(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ce(o)&&o()}),n}return Lue(t,e),Rue(t,[{key:"renderDots",value:function(r,a,i){var o=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(o&&!l)return null;var s=this.props,u=s.dot,d=s.points,f=s.dataKey,h=oe(this.props,!1),p=oe(u,!0),y=d.map(function(b,g){var S=Oa(Oa(Oa({key:"dot-".concat(g),r:3},h),p),{},{index:g,cx:b.x,cy:b.y,dataKey:f,value:b.value,payload:b.payload,points:d});return t.renderDotItem(u,S)}),m={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return T.createElement(Se,Di({className:"recharts-area-dots"},m),y)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,i=a.baseLine,o=a.points,l=a.strokeWidth,s=o[0].x,u=o[o.length-1].x,d=r*Math.abs(s-u),f=qa(o.map(function(h){return h.y||0}));return K(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(qa(i.map(function(h){return h.y||0})),f)),K(f)?T.createElement("rect",{x:s<u?s:s-d,y:0,width:d,height:Math.floor(f+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,i=a.baseLine,o=a.points,l=a.strokeWidth,s=o[0].y,u=o[o.length-1].y,d=r*Math.abs(s-u),f=qa(o.map(function(h){return h.x||0}));return K(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(qa(i.map(function(h){return h.x||0})),f)),K(f)?T.createElement("rect",{x:0,y:s<u?s:s-d,width:f+(l?parseInt("".concat(l),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,i,o){var l=this.props,s=l.layout,u=l.type,d=l.stroke,f=l.connectNulls,h=l.isRange;l.ref;var p=bP(l,Cue);return T.createElement(Se,{clipPath:i?"url(#clipPath-".concat(o,")"):null},T.createElement(Wi,Di({},oe(p,!0),{points:r,connectNulls:f,type:u,baseLine:a,layout:s,stroke:"none",className:"recharts-area-area"})),d!=="none"&&T.createElement(Wi,Di({},oe(this.props,!1),{className:"recharts-area-curve",layout:s,type:u,connectNulls:f,fill:"none",points:r})),d!=="none"&&h&&T.createElement(Wi,Di({},oe(this.props,!1),{className:"recharts-area-curve",layout:s,type:u,connectNulls:f,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var i=this,o=this.props,l=o.points,s=o.baseLine,u=o.isAnimationActive,d=o.animationBegin,f=o.animationDuration,h=o.animationEasing,p=o.animationId,y=this.state,m=y.prevPoints,b=y.prevBaseLine;return T.createElement(hr,{begin:d,duration:f,isActive:u,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(g){var S=g.t;if(m){var x=m.length/l.length,v=l.map(function(_,E){var N=Math.floor(E*x);if(m[N]){var $=m[N],C=wt($.x,_.x),L=wt($.y,_.y);return Oa(Oa({},_),{},{x:C(S),y:L(S)})}return _}),w;if(K(s)&&typeof s=="number"){var O=wt(b,s);w=O(S)}else if(pe(s)||Ss(s)){var j=wt(b,0);w=j(S)}else w=s.map(function(_,E){var N=Math.floor(E*x);if(b[N]){var $=b[N],C=wt($.x,_.x),L=wt($.y,_.y);return Oa(Oa({},_),{},{x:C(S),y:L(S)})}return _});return i.renderAreaStatically(v,w,r,a)}return T.createElement(Se,null,T.createElement("defs",null,T.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(S))),T.createElement(Se,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(l,s,r,a)))})}},{key:"renderArea",value:function(r,a){var i=this.props,o=i.points,l=i.baseLine,s=i.isAnimationActive,u=this.state,d=u.prevPoints,f=u.prevBaseLine,h=u.totalLength;return s&&o&&o.length&&(!d&&h>0||!lo(d,o)||!lo(f,l))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(o,l,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,o=a.dot,l=a.points,s=a.className,u=a.top,d=a.left,f=a.xAxis,h=a.yAxis,p=a.width,y=a.height,m=a.isAnimationActive,b=a.id;if(i||!l||!l.length)return null;var g=this.state.isAnimationFinished,S=l.length===1,x=me("recharts-area",s),v=f&&f.allowDataOverflow,w=h&&h.allowDataOverflow,O=v||w,j=pe(b)?this.id:b,_=(r=oe(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},E=_.r,N=E===void 0?3:E,$=_.strokeWidth,C=$===void 0?2:$,L=iC(o)?o:{},k=L.clipDot,R=k===void 0?!0:k,M=N*2+C;return T.createElement(Se,{className:x},v||w?T.createElement("defs",null,T.createElement("clipPath",{id:"clipPath-".concat(j)},T.createElement("rect",{x:v?d:d-p/2,y:w?u:u-y/2,width:v?p:p*2,height:w?y:y*2})),!R&&T.createElement("clipPath",{id:"clipPath-dots-".concat(j)},T.createElement("rect",{x:d-M/2,y:u-M/2,width:p+M,height:y+M}))):null,S?null:this.renderArea(O,j),(o||S)&&this.renderDots(O,R,j),(!m||g)&&Nr.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(A.PureComponent);gP=mi;Er(mi,"displayName","Area");Er(mi,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!fi.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Er(mi,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,o=t.props.baseValue,l=o??i;if(K(l)&&typeof l=="number")return l;var s=a==="horizontal"?r:n,u=s.scale.domain();if(s.type==="number"){var d=Math.max(u[0],u[1]),f=Math.min(u[0],u[1]);return l==="dataMin"?f:l==="dataMax"||d<0?d:Math.max(Math.min(u[0],u[1]),0)}return l==="dataMin"?u[0]:l==="dataMax"?u[1]:u[0]});Er(mi,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,s=e.dataKey,u=e.stackedData,d=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,y=u&&u.length,m=gP.getBaseValue(t,n,r,a),b=p==="horizontal",g=!1,S=f.map(function(v,w){var O;y?O=u[d+w]:(O=st(v,s),Array.isArray(O)?g=!0:O=[m,O]);var j=O[1]==null||y&&st(v,s)==null;return b?{x:ph({axis:r,ticks:i,bandSize:l,entry:v,index:w}),y:j?null:a.scale(O[1]),value:O,payload:v}:{x:j?null:r.scale(O[1]),y:ph({axis:a,ticks:o,bandSize:l,entry:v,index:w}),value:O,payload:v}}),x;return y||g?x=S.map(function(v){var w=Array.isArray(v.value)?v.value[0]:null;return b?{x:v.x,y:w!=null&&v.y!=null?a.scale(w):null}:{x:w!=null?r.scale(w):null,y:v.y}}):x=b?a.scale(m):r.scale(m),Oa({points:S,baseLine:x,layout:p,isRange:g},h)});Er(mi,"renderDotItem",function(e,t){var n;if(T.isValidElement(e))n=T.cloneElement(e,t);else if(ce(e))n=e(t);else{var r=me("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=bP(t,Mue);n=T.createElement(Xc,Di({},i,{key:a,className:r}))}return n});function Zl(e){"@babel/helpers - typeof";return Zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zl(e)}function Uue(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,jP(r.key),r)}}function Hue(e,t,n){return t&&Iue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function que(e,t,n){return t=Uh(t),Fue(e,wP()?Reflect.construct(t,n||[],Uh(e).constructor):t.apply(e,n))}function Fue(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Gue(e)}function Gue(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 Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Uh(e)}function Vue(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&&ub(e,t)}function ub(e,t){return ub=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ub(e,t)}function OP(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=Kue(e,"string");return Zl(t)=="symbol"?t:t+""}function Kue(e,t){if(Zl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function cb(){return cb=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},cb.apply(this,arguments)}function Yue(e){var t=e.xAxisId,n=Vx(),r=Kx(),a=aP(t);return a==null?null:A.createElement(Ts,cb({},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 Jr(o,!0)}}))}var ti=function(e){function t(){return Uue(this,t),que(this,t,arguments)}return Vue(t,e),Hue(t,[{key:"render",value:function(){return A.createElement(Yue,this.props)}}])}(A.Component);OP(ti,"displayName","XAxis");OP(ti,"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 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 Xue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wue(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,_P(r.key),r)}}function Que(e,t,n){return t&&Wue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Zue(e,t,n){return t=Ih(t),Jue(e,AP()?Reflect.construct(t,n||[],Ih(e).constructor):t.apply(e,n))}function Jue(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 ece(e)}function ece(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AP=function(){return!!e})()}function Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(e)}function tce(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&&fb(e,t)}function fb(e,t){return fb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},fb(e,t)}function EP(e,t,n){return t=_P(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _P(e){var t=nce(e,"string");return Jl(t)=="symbol"?t:t+""}function nce(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)}function db(){return db=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},db.apply(this,arguments)}var rce=function(t){var n=t.yAxisId,r=Vx(),a=Kx(),i=iP(n);return i==null?null:A.createElement(Ts,db({},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 Jr(l,!0)}}))},ni=function(e){function t(){return Xue(this,t),Zue(this,t,arguments)}return tce(t,e),Que(t,[{key:"render",value:function(){return A.createElement(rce,this.props)}}])}(A.Component);EP(ni,"displayName","YAxis");EP(ni,"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 JA(e){return lce(e)||oce(e)||ice(e)||ace()}function ace(){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 ice(e,t){if(e){if(typeof e=="string")return hb(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 hb(e,t)}}function oce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lce(e){if(Array.isArray(e))return hb(e)}function hb(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 pb=function(t,n,r,a,i){var o=Nn(t,Xx),l=Nn(t,lm),s=[].concat(JA(o),JA(l)),u=Nn(t,um),d="".concat(a,"Id"),f=a[0],h=n;if(s.length&&(h=s.reduce(function(m,b){if(b.props[d]===r&&Cr(b.props,"extendDomain")&&K(b.props[f])){var g=b.props[f];return[Math.min(m[0],g),Math.max(m[1],g)]}return m},h)),u.length){var p="".concat(f,"1"),y="".concat(f,"2");h=u.reduce(function(m,b){if(b.props[d]===r&&Cr(b.props,"extendDomain")&&K(b.props[p])&&K(b.props[y])){var g=b.props[p],S=b.props[y];return[Math.min(m[0],g,S),Math.max(m[1],g,S)]}return m},h)}return i&&i.length&&(h=i.reduce(function(m,b){return K(b)?[Math.min(m[0],b),Math.max(m[1],b)]:m},h)),h},TP={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,d){this.fn=s,this.context=u,this.once=d||!1}function i(s,u,d,f,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new a(d,f||s,h),y=n?n+u:u;return s._events[y]?s._events[y].fn?s._events[y]=[s._events[y],p]:s._events[y].push(p):(s._events[y]=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=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)t.call(d,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},l.prototype.listeners=function(u){var d=n?n+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,y=new Array(p);h<p;h++)y[h]=f[h].fn;return y},l.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},l.prototype.emit=function(u,d,f,h,p,y){var m=n?n+u:u;if(!this._events[m])return!1;var b=this._events[m],g=arguments.length,S,x;if(b.fn){switch(b.once&&this.removeListener(u,b.fn,void 0,!0),g){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,d),!0;case 3:return b.fn.call(b.context,d,f),!0;case 4:return b.fn.call(b.context,d,f,h),!0;case 5:return b.fn.call(b.context,d,f,h,p),!0;case 6:return b.fn.call(b.context,d,f,h,p,y),!0}for(x=1,S=new Array(g-1);x<g;x++)S[x-1]=arguments[x];b.fn.apply(b.context,S)}else{var v=b.length,w;for(x=0;x<v;x++)switch(b[x].once&&this.removeListener(u,b[x].fn,void 0,!0),g){case 1:b[x].fn.call(b[x].context);break;case 2:b[x].fn.call(b[x].context,d);break;case 3:b[x].fn.call(b[x].context,d,f);break;case 4:b[x].fn.call(b[x].context,d,f,h);break;default:if(!S)for(w=1,S=new Array(g-1);w<g;w++)S[w-1]=arguments[w];b[x].fn.apply(b[x].context,S)}}return!0},l.prototype.on=function(u,d,f){return i(this,u,d,f,!1)},l.prototype.once=function(u,d,f){return i(this,u,d,f,!0)},l.prototype.removeListener=function(u,d,f,h){var p=n?n+u:u;if(!this._events[p])return this;if(!d)return o(this,p),this;var y=this._events[p];if(y.fn)y.fn===d&&(!h||y.once)&&(!f||y.context===f)&&o(this,p);else{for(var m=0,b=[],g=y.length;m<g;m++)(y[m].fn!==d||h&&!y[m].once||f&&y[m].context!==f)&&b.push(y[m]);b.length?this._events[p]=b.length===1?b[0]:b:o(this,p)}return this},l.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&o(this,d)):(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})(TP);var sce=TP.exports;const uce=Ne(sce);var My=new uce,$y="recharts.syncMouseEvents";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)}function cce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fce(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,NP(r.key),r)}}function dce(e,t,n){return t&&fce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Py(e,t,n){return t=NP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NP(e){var t=hce(e,"string");return vc(t)=="symbol"?t:t+""}function hce(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 String(e)}var pce=function(){function e(){cce(this,e),Py(this,"activeIndex",0),Py(this,"coordinateList",[]),Py(this,"layout","horizontal")}return dce(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,d=n.offset,f=d===void 0?null:d,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=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var 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,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=i+s+u,h=o+this.offset.top+l/2+d;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])}();function mce(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 yce(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 CP(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,o=He(t,n,r,a),l=He(t,n,r,i);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function vce(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,d=t.outerRadius,f=t.angle,h=He(l,s,u,f),p=He(l,s,d,f);r=h.x,a=h.y,i=p.x,o=p.y}else return CP(t);return[{x:r,y:a},{x:i,y:o}]}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 e2(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 Rf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e2(Object(n),!0).forEach(function(r){gce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gce(e,t,n){return t=bce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bce(e){var t=xce(e,"string");return gc(t)=="symbol"?t:t+""}function xce(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)}function Sce(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,d=e.tooltipAxisBandSize,f=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 y,m=Wi;if(h==="ScatterChart")y=o,m=Nae;else if(h==="BarChart")y=yce(f,o,s,d),m=Ix;else if(f==="radial"){var b=CP(o),g=b.cx,S=b.cy,x=b.radius,v=b.startAngle,w=b.endAngle;y={cx:g,cy:S,startAngle:v,endAngle:w,innerRadius:x,outerRadius:x},m=O$}else y={points:vce(f,o,s)},m=Wi;var O=Rf(Rf(Rf(Rf({stroke:"#ccc",pointerEvents:"none"},s),y),oe(p,!1)),{},{payload:l,payloadIndex:u,className:me("recharts-tooltip-cursor",p.className)});return A.isValidElement(p)?A.cloneElement(p,O):A.createElement(m,O)}var wce=["item"],Oce=["children","className","width","height","style","compact","title","desc"];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 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 t2(e,t){return Ece(e)||Ace(e,t)||$P(e,t)||jce()}function jce(){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 Ace(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(d){u=!0,a=d}finally{try{if(!s&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw a}}return l}}function Ece(e){if(Array.isArray(e))return e}function n2(e,t){if(e==null)return{};var n=_ce(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 _ce(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 Tce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nce(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,PP(r.key),r)}}function Cce(e,t,n){return t&&Nce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Mce(e,t,n){return t=Hh(t),$ce(e,MP()?Reflect.construct(t,n||[],Hh(e).constructor):t.apply(e,n))}function $ce(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 Pce(e)}function Pce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MP(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MP=function(){return!!e})()}function Hh(e){return Hh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hh(e)}function Rce(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&&mb(e,t)}function mb(e,t){return mb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},mb(e,t)}function ts(e){return zce(e)||kce(e)||$P(e)||Dce()}function Dce(){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 yb(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 yb(e,t)}}function kce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zce(e){if(Array.isArray(e))return yb(e)}function yb(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 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 I(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){ue(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 ue(e,t,n){return t=PP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PP(e){var t=Lce(e,"string");return es(t)=="symbol"?t:t+""}function Lce(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(t==="string"?String:Number)(e)}var Bce={xAxis:["bottom","top"],yAxis:["left","right"]},Uce={width:"100%",height:"100%"},RP={x:0,y:0};function Df(e){return e}var Ice=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Hce=function(t,n,r,a){var i=n.find(function(d){return d&&d.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),He(a.cx,a.cy,l,o)),{},{angle:o,radius:l})}var s=i.coordinate,u=a.angle;return I(I(I({},a),He(a.cx,a.cy,s,u)),{},{angle:u,radius:s})}return RP},cm=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(ts(l),ts(u)):l},[]);return o.length>0?o:t&&t.length&&K(a)&&K(i)?t.slice(a,i+1):[]};function DP(e){return e==="number"?[0,"auto"]:void 0}var vb=function(t,n,r,a){var i=t.graphicalItems,o=t.tooltipAxis,l=cm(n,t);return r<0||!i||!i.length||r>=l.length?null:i.reduce(function(s,u){var d,f=(d=u.props.data)!==null&&d!==void 0?d:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(o.dataKey&&!o.allowDuplicatedCategory){var p=f===void 0?l:f;h=Bd(p,o.dataKey,a)}else h=f&&f[r]||l[r];return h?[].concat(ts(s),[v$(u,h)]):s},[])},a2=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},o=Ice(i,r),l=t.orderedTooltipTicks,s=t.tooltipAxis,u=t.tooltipTicks,d=Xee(o,l,u,s);if(d>=0&&u){var f=u[d]&&u[d].value,h=vb(t,n,d,f),p=Hce(r,l,d,i);return{activeTooltipIndex:d,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},qce=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,d=t.layout,f=t.children,h=t.stackOffset,p=f$(d,i);return r.reduce(function(y,m){var b,g=m.type.defaultProps!==void 0?I(I({},m.type.defaultProps),m.props):m.props,S=g.type,x=g.dataKey,v=g.allowDataOverflow,w=g.allowDuplicatedCategory,O=g.scale,j=g.ticks,_=g.includeHidden,E=g[o];if(y[E])return y;var N=cm(t.data,{graphicalItems:a.filter(function(X){var ie,D=o in X.props?X.props[o]:(ie=X.type.defaultProps)===null||ie===void 0?void 0:ie[o];return D===E}),dataStartIndex:s,dataEndIndex:u}),$=N.length,C,L,k;mce(g.domain,v,S)&&(C=Cg(g.domain,null,v),p&&(S==="number"||O!=="auto")&&(k=yu(N,x,"category")));var R=DP(S);if(!C||C.length===0){var M,z=(M=g.domain)!==null&&M!==void 0?M:R;if(x){if(C=yu(N,x,S),S==="category"&&p){var B=BI(C);w&&B?(L=C,C=Th(0,$)):w||(C=_j(z,C,m).reduce(function(X,ie){return X.indexOf(ie)>=0?X:[].concat(ts(X),[ie])},[]))}else if(S==="category")w?C=C.filter(function(X){return X!==""&&!pe(X)}):C=_j(z,C,m).reduce(function(X,ie){return X.indexOf(ie)>=0||ie===""||pe(ie)?X:[].concat(ts(X),[ie])},[]);else if(S==="number"){var F=ete(N,a.filter(function(X){var ie,D,W=o in X.props?X.props[o]:(ie=X.type.defaultProps)===null||ie===void 0?void 0:ie[o],se="hide"in X.props?X.props.hide:(D=X.type.defaultProps)===null||D===void 0?void 0:D.hide;return W===E&&(_||!se)}),x,i,d);F&&(C=F)}p&&(S==="number"||O!=="auto")&&(k=yu(N,x,"category"))}else p?C=Th(0,$):l&&l[E]&&l[E].hasStack&&S==="number"?C=h==="expand"?[0,1]:y$(l[E].stackGroups,s,u):C=c$(N,a.filter(function(X){var ie=o in X.props?X.props[o]:X.type.defaultProps[o],D="hide"in X.props?X.props.hide:X.type.defaultProps.hide;return ie===E&&(_||!D)}),S,d,!0);if(S==="number")C=pb(f,C,E,i,j),z&&(C=Cg(z,C,v));else if(S==="category"&&z){var V=z,ee=C.every(function(X){return V.indexOf(X)>=0});ee&&(C=V)}}return I(I({},y),{},ue({},E,I(I({},g),{},{axisType:i,domain:C,categoricalDomain:k,duplicateDomain:L,originalDomain:(b=g.domain)!==null&&b!==void 0?b:R,isCategorical:p,layout:d})))},{})},Fce=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,d=t.layout,f=t.children,h=cm(t.data,{graphicalItems:r,dataStartIndex:s,dataEndIndex:u}),p=h.length,y=f$(d,i),m=-1;return r.reduce(function(b,g){var S=g.type.defaultProps!==void 0?I(I({},g.type.defaultProps),g.props):g.props,x=S[o],v=DP("number");if(!b[x]){m++;var w;return y?w=Th(0,p):l&&l[x]&&l[x].hasStack?(w=y$(l[x].stackGroups,s,u),w=pb(f,w,x,i)):(w=Cg(v,c$(h,r.filter(function(O){var j,_,E=o in O.props?O.props[o]:(j=O.type.defaultProps)===null||j===void 0?void 0:j[o],N="hide"in O.props?O.props.hide:(_=O.type.defaultProps)===null||_===void 0?void 0:_.hide;return E===x&&!N}),"number",d),a.defaultProps.allowDataOverflow),w=pb(f,w,x,i)),I(I({},b),{},ue({},x,I(I({axisType:i},a.defaultProps),{},{hide:!0,orientation:Tn(Bce,"".concat(i,".").concat(m%2),null),domain:w,originalDomain:v,isCategorical:y,layout:d})))}return b},{})},Gce=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,d=t.children,f="".concat(a,"Id"),h=Nn(d,i),p={};return h&&h.length?p=qce(t,{axes:h,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u}):o&&o.length&&(p=Fce(t,{Axis:i,graphicalItems:o,axisType:a,axisIdKey:f,stackGroups:l,dataStartIndex:s,dataEndIndex:u})),p},Vce=function(t){var n=Ma(t),r=Jr(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:px(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:mh(n,r)}},i2=function(t){var n=t.children,r=t.defaultShowTooltip,a=vn(n,Fl),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}},Kce=function(t){return!t||!t.length?!1:t.some(function(n){var r=aa(n&&n.type);return r&&r.indexOf("Bar")>=0})},o2=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"}},Yce=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,d=r.height,f=r.children,h=r.margin||{},p=vn(f,Fl),y=vn(f,jr),m=Object.keys(s).reduce(function(w,O){var j=s[O],_=j.orientation;return!j.mirror&&!j.hide?I(I({},w),{},ue({},_,w[_]+j.width)):w},{left:h.left||0,right:h.right||0}),b=Object.keys(o).reduce(function(w,O){var j=o[O],_=j.orientation;return!j.mirror&&!j.hide?I(I({},w),{},ue({},_,Tn(w,"".concat(_))+j.height)):w},{top:h.top||0,bottom:h.bottom||0}),g=I(I({},b),m),S=g.bottom;p&&(g.bottom+=p.props.height||Fl.defaultProps.height),y&&n&&(g=Zee(g,a,r,n));var x=u-g.left-g.right,v=d-g.top-g.bottom;return I(I({brushBottom:S},g),{},{width:Math.max(x,0),height:Math.max(v,0)})},Xce=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},fm=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,d=t.formatAxisMap,f=t.defaultProps,h=function(g,S){var x=S.graphicalItems,v=S.stackGroups,w=S.offset,O=S.updateId,j=S.dataStartIndex,_=S.dataEndIndex,E=g.barSize,N=g.layout,$=g.barGap,C=g.barCategoryGap,L=g.maxBarSize,k=o2(N),R=k.numericAxisName,M=k.cateAxisName,z=Kce(x),B=[];return x.forEach(function(F,V){var ee=cm(g.data,{graphicalItems:[F],dataStartIndex:j,dataEndIndex:_}),X=F.type.defaultProps!==void 0?I(I({},F.type.defaultProps),F.props):F.props,ie=X.dataKey,D=X.maxBarSize,W=X["".concat(R,"Id")],se=X["".concat(M,"Id")],fe={},qe=s.reduce(function(yi,vi){var dm=S["".concat(vi.axisType,"Map")],Zx=X["".concat(vi.axisType,"Id")];dm&&dm[Zx]||vi.axisType==="zAxis"||uo();var Jx=dm[Zx];return I(I({},yi),{},ue(ue({},vi.axisType,Jx),"".concat(vi.axisType,"Ticks"),Jr(Jx)))},fe),J=qe[M],le=qe["".concat(M,"Ticks")],Z=v&&v[W]&&v[W].hasStack&&ute(F,v[W].stackGroups),q=aa(F.type).indexOf("Bar")>=0,Ce=mh(J,le),ge=[],tt=z&&Wee({barSize:E,stackGroups:v,totalSize:Xce(qe,M)});if(q){var ot,ft,xa=pe(D)?L:D,jo=(ot=(ft=mh(J,le,!0))!==null&&ft!==void 0?ft:xa)!==null&&ot!==void 0?ot:0;ge=Qee({barGap:$,barCategoryGap:C,bandSize:jo!==Ce?jo:Ce,sizeList:tt[se],maxBarSize:xa}),jo!==Ce&&(ge=ge.map(function(yi){return I(I({},yi),{},{position:I(I({},yi.position),{},{offset:yi.position.offset-jo/2})})}))}var Qc=F&&F.type&&F.type.getComposedData;Qc&&B.push({props:I(I({},Qc(I(I({},qe),{},{displayedData:ee,props:g,dataKey:ie,item:F,bandSize:Ce,barPosition:ge,offset:w,stackedData:Z,layout:N,dataStartIndex:j,dataEndIndex:_}))),{},ue(ue(ue({key:F.key||"item-".concat(V)},R,qe[R]),M,qe[M]),"animationId",O)),childIndex:QI(F,g.children),item:F})}),B},p=function(g,S){var x=g.props,v=g.dataStartIndex,w=g.dataEndIndex,O=g.updateId;if(!Sw({props:x}))return null;var j=x.children,_=x.layout,E=x.stackOffset,N=x.data,$=x.reverseStackOrder,C=o2(_),L=C.numericAxisName,k=C.cateAxisName,R=Nn(j,r),M=lte(N,R,"".concat(L,"Id"),"".concat(k,"Id"),E,$),z=s.reduce(function(X,ie){var D="".concat(ie.axisType,"Map");return I(I({},X),{},ue({},D,Gce(x,I(I({},ie),{},{graphicalItems:R,stackGroups:ie.axisType===L&&M,dataStartIndex:v,dataEndIndex:w}))))},{}),B=Yce(I(I({},z),{},{props:x,graphicalItems:R}),S==null?void 0:S.legendBBox);Object.keys(z).forEach(function(X){z[X]=d(x,z[X],B,X.replace("Map",""),n)});var F=z["".concat(k,"Map")],V=Vce(F),ee=h(x,I(I({},z),{},{dataStartIndex:v,dataEndIndex:w,updateId:O,graphicalItems:R,stackGroups:M,offset:B}));return I(I({formattedGraphicalItems:ee,graphicalItems:R,offset:B,stackGroups:M},V),z)},y=function(b){function g(S){var x,v,w;return Tce(this,g),w=Mce(this,g,[S]),ue(w,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(w,"accessibilityManager",new pce),ue(w,"handleLegendBBoxUpdate",function(O){if(O){var j=w.state,_=j.dataStartIndex,E=j.dataEndIndex,N=j.updateId;w.setState(I({legendBBox:O},p({props:w.props,dataStartIndex:_,dataEndIndex:E,updateId:N},I(I({},w.state),{},{legendBBox:O}))))}}),ue(w,"handleReceiveSyncEvent",function(O,j,_){if(w.props.syncId===O){if(_===w.eventEmitterSymbol&&typeof w.props.syncMethod!="function")return;w.applySyncEvent(j)}}),ue(w,"handleBrushChange",function(O){var j=O.startIndex,_=O.endIndex;if(j!==w.state.dataStartIndex||_!==w.state.dataEndIndex){var E=w.state.updateId;w.setState(function(){return I({dataStartIndex:j,dataEndIndex:_},p({props:w.props,dataStartIndex:j,dataEndIndex:_,updateId:E},w.state))}),w.triggerSyncEvent({dataStartIndex:j,dataEndIndex:_})}}),ue(w,"handleMouseEnter",function(O){var j=w.getMouseInfo(O);if(j){var _=I(I({},j),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var E=w.props.onMouseEnter;ce(E)&&E(_,O)}}),ue(w,"triggeredAfterMouseMove",function(O){var j=w.getMouseInfo(O),_=j?I(I({},j),{},{isTooltipActive:!0}):{isTooltipActive:!1};w.setState(_),w.triggerSyncEvent(_);var E=w.props.onMouseMove;ce(E)&&E(_,O)}),ue(w,"handleItemMouseEnter",function(O){w.setState(function(){return{isTooltipActive:!0,activeItem:O,activePayload:O.tooltipPayload,activeCoordinate:O.tooltipPosition||{x:O.cx,y:O.cy}}})}),ue(w,"handleItemMouseLeave",function(){w.setState(function(){return{isTooltipActive:!1}})}),ue(w,"handleMouseMove",function(O){O.persist(),w.throttleTriggeredAfterMouseMove(O)}),ue(w,"handleMouseLeave",function(O){w.throttleTriggeredAfterMouseMove.cancel();var j={isTooltipActive:!1};w.setState(j),w.triggerSyncEvent(j);var _=w.props.onMouseLeave;ce(_)&&_(j,O)}),ue(w,"handleOuterEvent",function(O){var j=WI(O),_=Tn(w.props,"".concat(j));if(j&&ce(_)){var E,N;/.*touch.*/i.test(j)?N=w.getMouseInfo(O.changedTouches[0]):N=w.getMouseInfo(O),_((E=N)!==null&&E!==void 0?E:{},O)}}),ue(w,"handleClick",function(O){var j=w.getMouseInfo(O);if(j){var _=I(I({},j),{},{isTooltipActive:!0});w.setState(_),w.triggerSyncEvent(_);var E=w.props.onClick;ce(E)&&E(_,O)}}),ue(w,"handleMouseDown",function(O){var j=w.props.onMouseDown;if(ce(j)){var _=w.getMouseInfo(O);j(_,O)}}),ue(w,"handleMouseUp",function(O){var j=w.props.onMouseUp;if(ce(j)){var _=w.getMouseInfo(O);j(_,O)}}),ue(w,"handleTouchMove",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.throttleTriggeredAfterMouseMove(O.changedTouches[0])}),ue(w,"handleTouchStart",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseDown(O.changedTouches[0])}),ue(w,"handleTouchEnd",function(O){O.changedTouches!=null&&O.changedTouches.length>0&&w.handleMouseUp(O.changedTouches[0])}),ue(w,"handleDoubleClick",function(O){var j=w.props.onDoubleClick;if(ce(j)){var _=w.getMouseInfo(O);j(_,O)}}),ue(w,"handleContextMenu",function(O){var j=w.props.onContextMenu;if(ce(j)){var _=w.getMouseInfo(O);j(_,O)}}),ue(w,"triggerSyncEvent",function(O){w.props.syncId!==void 0&&My.emit($y,w.props.syncId,O,w.eventEmitterSymbol)}),ue(w,"applySyncEvent",function(O){var j=w.props,_=j.layout,E=j.syncMethod,N=w.state.updateId,$=O.dataStartIndex,C=O.dataEndIndex;if(O.dataStartIndex!==void 0||O.dataEndIndex!==void 0)w.setState(I({dataStartIndex:$,dataEndIndex:C},p({props:w.props,dataStartIndex:$,dataEndIndex:C,updateId:N},w.state)));else if(O.activeTooltipIndex!==void 0){var L=O.chartX,k=O.chartY,R=O.activeTooltipIndex,M=w.state,z=M.offset,B=M.tooltipTicks;if(!z)return;if(typeof E=="function")R=E(B,O);else if(E==="value"){R=-1;for(var F=0;F<B.length;F++)if(B[F].value===O.activeLabel){R=F;break}}var V=I(I({},z),{},{x:z.left,y:z.top}),ee=Math.min(L,V.x+V.width),X=Math.min(k,V.y+V.height),ie=B[R]&&B[R].value,D=vb(w.state,w.props.data,R),W=B[R]?{x:_==="horizontal"?B[R].coordinate:ee,y:_==="horizontal"?X:B[R].coordinate}:RP;w.setState(I(I({},O),{},{activeLabel:ie,activeCoordinate:W,activePayload:D,activeTooltipIndex:R}))}else w.setState(O)}),ue(w,"renderCursor",function(O){var j,_=w.state,E=_.isTooltipActive,N=_.activeCoordinate,$=_.activePayload,C=_.offset,L=_.activeTooltipIndex,k=_.tooltipAxisBandSize,R=w.getTooltipEventType(),M=(j=O.props.active)!==null&&j!==void 0?j:E,z=w.props.layout,B=O.key||"_recharts-cursor";return T.createElement(Sce,{key:B,activeCoordinate:N,activePayload:$,activeTooltipIndex:L,chartName:n,element:O,isActive:M,layout:z,offset:C,tooltipAxisBandSize:k,tooltipEventType:R})}),ue(w,"renderPolarAxis",function(O,j,_){var E=Tn(O,"type.axisType"),N=Tn(w.state,"".concat(E,"Map")),$=O.type.defaultProps,C=$!==void 0?I(I({},$),O.props):O.props,L=N&&N[C["".concat(E,"Id")]];return A.cloneElement(O,I(I({},L),{},{className:me(E,L.className),key:O.key||"".concat(j,"-").concat(_),ticks:Jr(L,!0)}))}),ue(w,"renderPolarGrid",function(O){var j=O.props,_=j.radialLines,E=j.polarAngles,N=j.polarRadius,$=w.state,C=$.radiusAxisMap,L=$.angleAxisMap,k=Ma(C),R=Ma(L),M=R.cx,z=R.cy,B=R.innerRadius,F=R.outerRadius;return A.cloneElement(O,{polarAngles:Array.isArray(E)?E:Jr(R,!0).map(function(V){return V.coordinate}),polarRadius:Array.isArray(N)?N:Jr(k,!0).map(function(V){return V.coordinate}),cx:M,cy:z,innerRadius:B,outerRadius:F,key:O.key||"polar-grid",radialLines:_})}),ue(w,"renderLegend",function(){var O=w.state.formattedGraphicalItems,j=w.props,_=j.children,E=j.width,N=j.height,$=w.props.margin||{},C=E-($.left||0)-($.right||0),L=s$({children:_,formattedGraphicalItems:O,legendWidth:C,legendContent:u});if(!L)return null;var k=L.item,R=n2(L,wce);return A.cloneElement(k,I(I({},R),{},{chartWidth:E,chartHeight:N,margin:$,onBBoxUpdate:w.handleLegendBBoxUpdate}))}),ue(w,"renderTooltip",function(){var O,j=w.props,_=j.children,E=j.accessibilityLayer,N=vn(_,bn);if(!N)return null;var $=w.state,C=$.isTooltipActive,L=$.activeCoordinate,k=$.activePayload,R=$.activeLabel,M=$.offset,z=(O=N.props.active)!==null&&O!==void 0?O:C;return A.cloneElement(N,{viewBox:I(I({},M),{},{x:M.left,y:M.top}),active:z,label:R,payload:z?k:[],coordinate:L,accessibilityLayer:E})}),ue(w,"renderBrush",function(O){var j=w.props,_=j.margin,E=j.data,N=w.state,$=N.offset,C=N.dataStartIndex,L=N.dataEndIndex,k=N.updateId;return A.cloneElement(O,{key:O.key||"_recharts-brush",onChange:Cf(w.handleBrushChange,O.props.onChange),data:E,x:K(O.props.x)?O.props.x:$.left,y:K(O.props.y)?O.props.y:$.top+$.height+$.brushBottom-(_.bottom||0),width:K(O.props.width)?O.props.width:$.width,startIndex:C,endIndex:L,updateId:"brush-".concat(k)})}),ue(w,"renderReferenceElement",function(O,j,_){if(!O)return null;var E=w,N=E.clipPathId,$=w.state,C=$.xAxisMap,L=$.yAxisMap,k=$.offset,R=O.type.defaultProps||{},M=O.props,z=M.xAxisId,B=z===void 0?R.xAxisId:z,F=M.yAxisId,V=F===void 0?R.yAxisId:F;return A.cloneElement(O,{key:O.key||"".concat(j,"-").concat(_),xAxis:C[B],yAxis:L[V],viewBox:{x:k.left,y:k.top,width:k.width,height:k.height},clipPathId:N})}),ue(w,"renderActivePoints",function(O){var j=O.item,_=O.activePoint,E=O.basePoint,N=O.childIndex,$=O.isRange,C=[],L=j.props.key,k=j.item.type.defaultProps!==void 0?I(I({},j.item.type.defaultProps),j.item.props):j.item.props,R=k.activeDot,M=k.dataKey,z=I(I({index:N,dataKey:M,cx:_.x,cy:_.y,r:4,fill:Ux(j.item),strokeWidth:2,stroke:"#fff",payload:_.payload,value:_.value},oe(R,!1)),Ud(R));return C.push(g.renderActiveDot(R,z,"".concat(L,"-activePoint-").concat(N))),E?C.push(g.renderActiveDot(R,I(I({},z),{},{cx:E.x,cy:E.y}),"".concat(L,"-basePoint-").concat(N))):$&&C.push(null),C}),ue(w,"renderGraphicChild",function(O,j,_){var E=w.filterFormatItem(O,j,_);if(!E)return null;var N=w.getTooltipEventType(),$=w.state,C=$.isTooltipActive,L=$.tooltipAxis,k=$.activeTooltipIndex,R=$.activeLabel,M=w.props.children,z=vn(M,bn),B=E.props,F=B.points,V=B.isRange,ee=B.baseLine,X=E.item.type.defaultProps!==void 0?I(I({},E.item.type.defaultProps),E.item.props):E.item.props,ie=X.activeDot,D=X.hide,W=X.activeBar,se=X.activeShape,fe=!!(!D&&C&&z&&(ie||W||se)),qe={};N!=="axis"&&z&&z.props.trigger==="click"?qe={onClick:Cf(w.handleItemMouseEnter,O.props.onClick)}:N!=="axis"&&(qe={onMouseLeave:Cf(w.handleItemMouseLeave,O.props.onMouseLeave),onMouseEnter:Cf(w.handleItemMouseEnter,O.props.onMouseEnter)});var J=A.cloneElement(O,I(I({},E.props),qe));function le(vi){return typeof L.dataKey=="function"?L.dataKey(vi.payload):null}if(fe)if(k>=0){var Z,q;if(L.dataKey&&!L.allowDuplicatedCategory){var Ce=typeof L.dataKey=="function"?le:"payload.".concat(L.dataKey.toString());Z=Bd(F,Ce,R),q=V&&ee&&Bd(ee,Ce,R)}else Z=F==null?void 0:F[k],q=V&&ee&&ee[k];if(se||W){var ge=O.props.activeIndex!==void 0?O.props.activeIndex:k;return[A.cloneElement(O,I(I(I({},E.props),qe),{},{activeIndex:ge})),null,null]}if(!pe(Z))return[J].concat(ts(w.renderActivePoints({item:E,activePoint:Z,basePoint:q,childIndex:k,isRange:V})))}else{var tt,ot=(tt=w.getItemByXY(w.state.activeCoordinate))!==null&&tt!==void 0?tt:{graphicalItem:J},ft=ot.graphicalItem,xa=ft.item,jo=xa===void 0?O:xa,Qc=ft.childIndex,yi=I(I(I({},E.props),qe),{},{activeIndex:Qc});return[A.cloneElement(jo,yi),null,null]}return V?[J,null,null]:[J,null]}),ue(w,"renderCustomized",function(O,j,_){return A.cloneElement(O,I(I({key:"recharts-customized-".concat(_)},w.props),w.state))}),ue(w,"renderMap",{CartesianGrid:{handler:Df,once:!0},ReferenceArea:{handler:w.renderReferenceElement},ReferenceLine:{handler:Df},ReferenceDot:{handler:w.renderReferenceElement},XAxis:{handler:Df},YAxis:{handler:Df},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=S.id)!==null&&x!==void 0?x:bo("recharts"),"-clip"),w.throttleTriggeredAfterMouseMove=sM(w.triggeredAfterMouseMove,(v=S.throttleDelay)!==null&&v!==void 0?v:1e3/60),w.state={},w}return Rce(g,b),Cce(g,[{key:"componentDidMount",value:function(){var x,v;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(v=this.props.margin.top)!==null&&v!==void 0?v:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,v=x.children,w=x.data,O=x.height,j=x.layout,_=vn(v,bn);if(_){var E=_.props.defaultIndex;if(!(typeof E!="number"||E<0||E>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[E]&&this.state.tooltipTicks[E].value,$=vb(this.state,w,E,N),C=this.state.tooltipTicks[E].coordinate,L=(this.state.offset.top+O)/2,k=j==="horizontal",R=k?{x:C,y:L}:{y:C,x:L},M=this.state.formattedGraphicalItems.find(function(B){var F=B.item;return F.type.name==="Scatter"});M&&(R=I(I({},R),M.props.points[E].tooltipPosition),$=M.props.points[E].tooltipPayload);var z={activeTooltipIndex:E,isTooltipActive:!0,activeLabel:N,activePayload:$,activeCoordinate:R};this.setState(z),this.renderCursor(_),this.accessibilityManager.setIndex(E)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,v){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==v.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){Gv([vn(x.children,bn)],[vn(this.props.children,bn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=vn(this.props.children,bn);if(x&&typeof x.props.shared=="boolean"){var v=x.props.shared?"axis":"item";return l.indexOf(v)>=0?v:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var v=this.container,w=v.getBoundingClientRect(),O=OW(w),j={chartX:Math.round(x.pageX-O.left),chartY:Math.round(x.pageY-O.top)},_=w.width/v.offsetWidth||1,E=this.inRange(j.chartX,j.chartY,_);if(!E)return null;var N=this.state,$=N.xAxisMap,C=N.yAxisMap,L=this.getTooltipEventType(),k=a2(this.state,this.props.data,this.props.layout,E);if(L!=="axis"&&$&&C){var R=Ma($).scale,M=Ma(C).scale,z=R&&R.invert?R.invert(j.chartX):null,B=M&&M.invert?M.invert(j.chartY):null;return I(I({},j),{},{xValue:z,yValue:B},k)}return k?I(I({},j),k):null}},{key:"inRange",value:function(x,v){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,O=this.props.layout,j=x/w,_=v/w;if(O==="horizontal"||O==="vertical"){var E=this.state.offset,N=j>=E.left&&j<=E.left+E.width&&_>=E.top&&_<=E.top+E.height;return N?{x:j,y:_}:null}var $=this.state,C=$.angleAxisMap,L=$.radiusAxisMap;if(C&&L){var k=Ma(C);return Cj({x:j,y:_},k)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,v=this.getTooltipEventType(),w=vn(x,bn),O={};w&&v==="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 j=Ud(this.props,this.handleOuterEvent);return I(I({},j),O)}},{key:"addListener",value:function(){My.on($y,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){My.removeListener($y,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,v,w){for(var O=this.state.formattedGraphicalItems,j=0,_=O.length;j<_;j++){var E=O[j];if(E.item===x||E.props.key===x.key||v===aa(E.item.type)&&w===E.childIndex)return E}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,v=this.state.offset,w=v.left,O=v.top,j=v.height,_=v.width;return T.createElement("defs",null,T.createElement("clipPath",{id:x},T.createElement("rect",{x:w,y:O,height:j,width:_})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(v,w){var O=t2(w,2),j=O[0],_=O[1];return I(I({},v),{},ue({},j,_.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(v,w){var O=t2(w,2),j=O[0],_=O[1];return I(I({},v),{},ue({},j,_.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var v;return(v=this.state.xAxisMap)===null||v===void 0||(v=v[x])===null||v===void 0?void 0:v.scale}},{key:"getYScaleByAxisId",value:function(x){var v;return(v=this.state.yAxisMap)===null||v===void 0||(v=v[x])===null||v===void 0?void 0:v.scale}},{key:"getItemByXY",value:function(x){var v=this.state,w=v.formattedGraphicalItems,O=v.activeItem;if(w&&w.length)for(var j=0,_=w.length;j<_;j++){var E=w[j],N=E.props,$=E.item,C=$.type.defaultProps!==void 0?I(I({},$.type.defaultProps),$.props):$.props,L=aa($.type);if(L==="Bar"){var k=(N.data||[]).find(function(B){return uae(x,B)});if(k)return{graphicalItem:E,payload:k}}else if(L==="RadialBar"){var R=(N.data||[]).find(function(B){return Cj(x,B)});if(R)return{graphicalItem:E,payload:R}}else if(rm(E,O)||am(E,O)||dc(E,O)){var M=Qie({graphicalItem:E,activeTooltipItem:O,itemData:C.data}),z=C.activeIndex===void 0?M:C.activeIndex;return{graphicalItem:I(I({},E),{},{childIndex:z}),payload:dc(E,O)?C.data[M]:E.props.data[M]}}}return null}},{key:"render",value:function(){var x=this;if(!Sw(this))return null;var v=this.props,w=v.children,O=v.className,j=v.width,_=v.height,E=v.style,N=v.compact,$=v.title,C=v.desc,L=n2(v,Oce),k=oe(L,!1);if(N)return T.createElement(DA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement(Kv,Zo({},k,{width:j,height:_,title:$,desc:C}),this.renderClipPath(),Ow(w,this.renderMap)));if(this.props.accessibilityLayer){var R,M;k.tabIndex=(R=this.props.tabIndex)!==null&&R!==void 0?R:0,k.role=(M=this.props.role)!==null&&M!==void 0?M:"application",k.onKeyDown=function(B){x.accessibilityManager.keyboardEvent(B)},k.onFocus=function(){x.accessibilityManager.focus()}}var z=this.parseEventsOfWrapper();return T.createElement(DA,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},T.createElement("div",Zo({className:me("recharts-wrapper",O),style:I({position:"relative",cursor:"default",width:j,height:_},E)},z,{ref:function(F){x.container=F}}),T.createElement(Kv,Zo({},k,{width:j,height:_,title:$,desc:C,style:Uce}),this.renderClipPath(),Ow(w,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(A.Component);ue(y,"displayName",n),ue(y,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ue(y,"getDerivedStateFromProps",function(b,g){var S=b.dataKey,x=b.data,v=b.children,w=b.width,O=b.height,j=b.layout,_=b.stackOffset,E=b.margin,N=g.dataStartIndex,$=g.dataEndIndex;if(g.updateId===void 0){var C=i2(b);return I(I(I({},C),{},{updateId:0},p(I(I({props:b},C),{},{updateId:0}),g)),{},{prevDataKey:S,prevData:x,prevWidth:w,prevHeight:O,prevLayout:j,prevStackOffset:_,prevMargin:E,prevChildren:v})}if(S!==g.prevDataKey||x!==g.prevData||w!==g.prevWidth||O!==g.prevHeight||j!==g.prevLayout||_!==g.prevStackOffset||!ol(E,g.prevMargin)){var L=i2(b),k={chartX:g.chartX,chartY:g.chartY,isTooltipActive:g.isTooltipActive},R=I(I({},a2(g,x,j)),{},{updateId:g.updateId+1}),M=I(I(I({},L),k),R);return I(I(I({},M),p(I({props:b},M),g)),{},{prevDataKey:S,prevData:x,prevWidth:w,prevHeight:O,prevLayout:j,prevStackOffset:_,prevMargin:E,prevChildren:v})}if(!Gv(v,g.prevChildren)){var z,B,F,V,ee=vn(v,Fl),X=ee&&(z=(B=ee.props)===null||B===void 0?void 0:B.startIndex)!==null&&z!==void 0?z:N,ie=ee&&(F=(V=ee.props)===null||V===void 0?void 0:V.endIndex)!==null&&F!==void 0?F:$,D=X!==N||ie!==$,W=!pe(x),se=W&&!D?g.updateId:g.updateId+1;return I(I({updateId:se},p(I(I({props:b},g),{},{updateId:se,dataStartIndex:X,dataEndIndex:ie}),g)),{},{prevChildren:v,dataStartIndex:X,dataEndIndex:ie})}return null}),ue(y,"renderActiveDot",function(b,g,S){var x;return A.isValidElement(b)?x=A.cloneElement(b,g):ce(b)?x=b(g):x=T.createElement(Xc,g),T.createElement(Se,{className:"recharts-active-dot",key:S},x)});var m=A.forwardRef(function(g,S){return T.createElement(y,Zo({},g,{ref:S}))});return m.displayName=y.displayName,m},Wce=fm({chartName:"LineChart",GraphicalChild:Wc,axisComponents:[{axisType:"xAxis",AxisComp:ti},{axisType:"yAxis",AxisComp:ni}],formatAxisMap:Hx}),Qce=fm({chartName:"BarChart",GraphicalChild:Oo,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:ti},{axisType:"yAxis",AxisComp:ni}],formatAxisMap:Hx}),Zce=fm({chartName:"PieChart",GraphicalChild:ba,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:nm},{axisType:"radiusAxis",AxisComp:em}],formatAxisMap:bte,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),Jce=fm({chartName:"AreaChart",GraphicalChild:mi,axisComponents:[{axisType:"xAxis",AxisComp:ti},{axisType:"yAxis",AxisComp:ni}],formatAxisMap:Hx});const vr=["#00a0c8","#3ddc97","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899"],$o={fontSize:11,fill:"#94a3b8"},kf={background:"#0f172a",border:"1px solid #26304a",borderRadius:8,fontSize:12,color:"#e2e8f0"};function efe(e){const t=e.labels||[],n=e.series||[];return t.map((r,a)=>{const i={name:r};return n.forEach(o=>{var l;i[o.name]=((l=o.data)==null?void 0:l[a])??0}),i})}function gb({type:e="BAR",data:t,height:n=240}){const r=t||{},a=r.series||[],i=efe(r);if(!i.length)return c.jsx("div",{className:"flex items-center justify-center text-slate-500 text-sm",style:{height:n},children:"데이터 없음"});const o=(e||"BAR").toUpperCase();if(o==="PIE"){const l=a[0],s=(r.labels||[]).map((u,d)=>{var f;return{name:u,value:((f=l==null?void 0:l.data)==null?void 0:f[d])??0}});return c.jsx(Af,{width:"100%",height:n,children:c.jsxs(Zce,{children:[c.jsx(ba,{data:s,dataKey:"value",nameKey:"name",outerRadius:n/2.8,innerRadius:n/5,children:s.map((u,d)=>c.jsx(Hp,{fill:vr[d%vr.length]},d))}),c.jsx(bn,{contentStyle:kf}),c.jsx(jr,{wrapperStyle:{fontSize:11}})]})})}return o==="LINE"?c.jsx(Af,{width:"100%",height:n,children:c.jsxs(Wce,{data:i,children:[c.jsx(ad,{strokeDasharray:"3 3",stroke:"#26304a"}),c.jsx(ti,{dataKey:"name",tick:$o}),c.jsx(ni,{tick:$o}),c.jsx(bn,{contentStyle:kf}),c.jsx(jr,{wrapperStyle:{fontSize:11}}),a.map((l,s)=>c.jsx(Wc,{type:"monotone",dataKey:l.name,stroke:vr[s%vr.length],strokeWidth:2,dot:!1},l.name))]})}):o==="AREA"?c.jsx(Af,{width:"100%",height:n,children:c.jsxs(Jce,{data:i,children:[c.jsx(ad,{strokeDasharray:"3 3",stroke:"#26304a"}),c.jsx(ti,{dataKey:"name",tick:$o}),c.jsx(ni,{tick:$o}),c.jsx(bn,{contentStyle:kf}),c.jsx(jr,{wrapperStyle:{fontSize:11}}),a.map((l,s)=>c.jsx(mi,{type:"monotone",dataKey:l.name,stroke:vr[s%vr.length],fill:vr[s%vr.length],fillOpacity:.18,strokeWidth:2},l.name))]})}):c.jsx(Af,{width:"100%",height:n,children:c.jsxs(Qce,{data:i,children:[c.jsx(ad,{strokeDasharray:"3 3",stroke:"#26304a"}),c.jsx(ti,{dataKey:"name",tick:$o}),c.jsx(ni,{tick:$o}),c.jsx(bn,{contentStyle:kf,cursor:{fill:"#26304a55"}}),c.jsx(jr,{wrapperStyle:{fontSize:11}}),a.map((l,s)=>c.jsx(Oo,{dataKey:l.name,fill:vr[s%vr.length],radius:[3,3,0,0]},l.name))]})})}function Dn({title:e,subtitle:t,actions:n}){return c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-xl font-bold",children:e}),t&&c.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:t})]}),n&&c.jsx("div",{className:"flex items-center gap-2",children:n})]})}function Y({label:e,children:t,hint:n}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e}),t,n&&c.jsx("p",{className:"text-[11px] text-slate-500 mt-1",children:n})]})}function et({title:e,onClose:t,children:n,wide:r}){return c.jsx("div",{className:"fixed inset-0 bg-black/50 flex items-center justify-center z-50 p-4",onClick:t,children:c.jsxs("div",{className:`bg-panel border border-edge rounded-2xl p-6 ${r?"w-[760px]":"w-[480px]"} max-h-[90vh] overflow-auto`,onClick:a=>a.stopPropagation(),children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h2",{className:"text-lg font-bold",children:e}),c.jsx("button",{onClick:t,className:"text-slate-400 hover:text-slate-200",children:c.jsx(gN,{size:18})})]}),n]})})}function Q({children:e,onClick:t,variant:n="primary",size:r="md",disabled:a,title:i,type:o}){const l="inline-flex items-center gap-1.5 rounded-lg font-semibold transition-colors disabled:opacity-50",s=r==="sm"?"px-2.5 py-1 text-xs":"px-3 py-2 text-sm",u=n==="primary"?"bg-brand text-ink hover:bg-brand/90":n==="danger"?"bg-rose-500/90 text-white hover:bg-rose-500":"bg-card border border-edge text-slate-300 hover:border-brand";return c.jsx("button",{type:o||"button",onClick:t,disabled:a,title:i,className:`${l} ${s} ${u}`,children:e})}function en({msg:e="데이터가 없습니다.",colSpan:t}){return t?c.jsx("tr",{children:c.jsx("td",{colSpan:t,className:"py-6 text-center text-slate-500 text-sm",children:e})}):c.jsx("div",{className:"py-8 text-center text-slate-500 text-sm bg-card border border-edge rounded-xl",children:e})}function yt({title:e,icon:t,children:n,className:r=""}){return c.jsxs("div",{className:`bg-card border border-edge rounded-xl p-4 ${r}`,children:[e&&c.jsxs("h3",{className:"text-sm font-semibold mb-3 flex items-center gap-1.5",children:[t,e]}),n]})}function ea(e,t=[]){if(e==null)return t;if(typeof e=="object")return e;try{return JSON.parse(e)}catch{return t}}function bb(e){if(e==null)return"";if(typeof e=="string")return e;try{return JSON.stringify(e,null,2)}catch{return""}}const tfe=[{key:"totalContent",label:"전체 콘텐츠",icon:dp,color:"text-brand"},{key:"publishedContent",label:"게시됨",icon:o4,color:"text-emerald-400"},{key:"draftContent",label:"초안",icon:l4,color:"text-slate-300"},{key:"reviewContent",label:"검토 대기",icon:oN,color:"text-amber-400"},{key:"mediaCount",label:"미디어",icon:hp,color:"text-sky-400"},{key:"pendingUgc",label:"UGC 대기",icon:fN,color:"text-rose-400"},{key:"memberCount",label:"회원",icon:L0,color:"text-violet-400"},{key:"totalViews",label:"총 조회수",icon:zd,color:"text-accent"}];function nfe(){const[e,t]=A.useState({}),[n,r]=A.useState(null),[a,i]=A.useState([]);A.useEffect(()=>{EL().then(s=>t(s||{})).catch(()=>t({})),_L().then(r).catch(()=>r(null)),TL().then(s=>i(Array.isArray(s)?s:(s==null?void 0:s.items)||[])).catch(()=>i([]))},[]);const o=(()=>{if(!n)return null;if(n.labels&&n.series)return n;const s=Object.entries(n).filter(([,u])=>typeof u=="number");return s.length?{labels:s.map(u=>u[0]),series:[{name:"콘텐츠",data:s.map(u=>u[1])}]}:null})(),l=e.totalViews?((e.totalConversions||0)/e.totalViews*100).toFixed(1):"0.0";return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"text-xl font-bold",children:"콘텐츠 개요"}),c.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"게시 현황 · 워크플로우 · 콘텐츠 성과 통합 뷰"})]}),c.jsxs(C0,{to:"/ai-tools",className:"flex items-center gap-1.5 text-sm text-brand hover:underline",children:[c.jsx(gt,{size:16})," AI 도구 열기 ",c.jsx(J5,{size:14})]})]}),c.jsx("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-4 mb-6",children:tfe.map(({key:s,label:u,icon:d,color:f})=>c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[c.jsx(d,{size:13})," ",u]}),c.jsx("div",{className:`text-2xl font-bold mt-2 ${f}`,children:Number(e[s]??0).toLocaleString()})]},s))}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[c.jsx(yt,{title:"게시 워크플로우 현황",icon:c.jsx(oN,{size:15}),className:"lg:col-span-2",children:c.jsx(gb,{type:"BAR",data:o||void 0})}),c.jsx(yt,{title:"전환율",icon:c.jsx(kv,{size:15}),children:c.jsxs("div",{className:"flex flex-col items-center justify-center h-[240px]",children:[c.jsxs("div",{className:"text-5xl font-bold text-accent",children:[l,"%"]}),c.jsxs("div",{className:"text-sm text-slate-400 mt-3",children:["전환 ",Number(e.totalConversions??0).toLocaleString()," / 조회 ",Number(e.totalViews??0).toLocaleString()]})]})})]}),c.jsx(yt,{title:"인기 콘텐츠 TOP",icon:c.jsx(zd,{size:15}),children:a.length===0?c.jsx("p",{className:"text-slate-500 text-sm py-2",children:"데이터가 없습니다."}):c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-2",children:"제목"}),c.jsx("th",{className:"text-left",children:"유형"}),c.jsx("th",{className:"text-right",children:"조회"}),c.jsx("th",{className:"text-right",children:"전환"})]})}),c.jsx("tbody",{children:a.slice(0,8).map((s,u)=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsx("td",{className:"py-2 font-medium",children:s.title||s.contentTitle||`#${s.contentId??s.id}`}),c.jsx("td",{className:"text-slate-400",children:s.contentType||"-"}),c.jsx("td",{className:"text-right text-slate-300",children:Number(s.views??s.totalViews??0).toLocaleString()}),c.jsx("td",{className:"text-right text-slate-300",children:Number(s.conversions??s.totalConversions??0).toLocaleString()})]},s.id??u))})]})})]})}const l2={PUBLISHED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",APPROVED:"bg-sky-500/15 text-sky-400 border-sky-500/30",REVIEW:"bg-amber-500/15 text-amber-400 border-amber-500/30",DRAFT:"bg-slate-500/15 text-slate-400 border-slate-500/30",ARCHIVED:"bg-slate-600/15 text-slate-500 border-slate-600/30",SCHEDULED:"bg-violet-500/15 text-violet-400 border-violet-500/30",PENDING:"bg-amber-500/15 text-amber-400 border-amber-500/30",REJECTED:"bg-rose-500/15 text-rose-400 border-rose-500/30",SPAM:"bg-rose-500/15 text-rose-400 border-rose-500/30",OK:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",ACTIVE:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",INACTIVE:"bg-slate-500/15 text-slate-400 border-slate-500/30",FAIL:"bg-rose-500/15 text-rose-400 border-rose-500/30",POSITIVE:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",NEUTRAL:"bg-slate-500/15 text-slate-400 border-slate-500/30",NEGATIVE:"bg-rose-500/15 text-rose-400 border-rose-500/30"};function Cn({status:e}){const t=(e||"").toUpperCase(),n=l2[t]||l2.DRAFT;return c.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-medium border ${n}`,children:e||"-"})}const rfe=["","PAGE","POST","PRODUCT","LANDING"],afe=["","DRAFT","REVIEW","APPROVED","PUBLISHED","ARCHIVED","SCHEDULED"];function ife(){const e=hs(),[t,n]=A.useState([]),[r,a]=A.useState(""),[i,o]=A.useState(""),[l,s]=A.useState(""),[u,d]=A.useState(!1),f=Rn(),h=()=>{d(!0),NL({contentType:r,status:i,keyword:l}).then(y=>n(y||[])).catch(()=>n([])).finally(()=>d(!1))};A.useEffect(()=>{h()},[r,i]);const p=async y=>{window.confirm("이 콘텐츠를 삭제하시겠습니까?")&&(await RL(y),h())};return c.jsxs("div",{children:[c.jsx(Dn,{title:"콘텐츠",subtitle:"페이지 · 포스트 · 헤드리스 블록 콘텐츠",actions:f&&c.jsxs(Q,{onClick:()=>e("/contents/new"),children:[c.jsx(Vt,{size:16})," 새 콘텐츠"]})}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[c.jsxs("div",{className:"relative",children:[c.jsx(kc,{size:14,className:"absolute left-2.5 top-2.5 text-slate-500"}),c.jsx("input",{value:l,onChange:y=>s(y.target.value),onKeyDown:y=>y.key==="Enter"&&h(),placeholder:"제목/슬러그 검색",className:"inp pl-8 w-56"})]}),c.jsx("select",{className:"inp w-36",value:r,onChange:y=>a(y.target.value),children:rfe.map(y=>c.jsx("option",{value:y,children:y||"전체 유형"},y))}),c.jsx("select",{className:"inp w-36",value:i,onChange:y=>o(y.target.value),children:afe.map(y=>c.jsx("option",{value:y,children:y||"전체 상태"},y))}),c.jsx(Q,{variant:"ghost",onClick:h,children:"검색"})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"제목"}),c.jsx("th",{className:"text-left",children:"유형"}),c.jsx("th",{className:"text-left",children:"로케일"}),c.jsx("th",{className:"text-left",children:"상태"}),c.jsx("th",{className:"text-left",children:"버전"}),c.jsx("th",{className:"text-left",children:"수정일"}),c.jsx("th",{className:"text-right px-4",children:"작업"})]})}),c.jsxs("tbody",{children:[t.map(y=>c.jsxs("tr",{className:"border-t border-edge/50 hover:bg-panel/40 cursor-pointer",onClick:()=>e(`/contents/${y.id}`),children:[c.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-2",children:[c.jsx(dp,{size:15,className:"text-brand"}),c.jsxs("div",{children:[c.jsx("div",{children:y.title}),c.jsxs("div",{className:"text-[11px] text-slate-500 font-mono",children:["/",y.slug]})]})]}),c.jsx("td",{className:"text-slate-400",children:y.contentType}),c.jsx("td",{className:"text-slate-400",children:y.locale}),c.jsx("td",{children:c.jsx(Cn,{status:y.scheduledAt&&y.status!=="PUBLISHED"?"SCHEDULED":y.status})}),c.jsxs("td",{className:"text-slate-500",children:["v",y.version]}),c.jsx("td",{className:"text-slate-500 text-xs",children:y.updatedAt?new Date(y.updatedAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4",onClick:m=>m.stopPropagation(),children:c.jsxs("div",{className:"flex items-center justify-end gap-3",children:[c.jsx("button",{onClick:()=>e(`/contents/${y.id}`),className:"text-slate-400 hover:text-brand",children:c.jsx(ps,{size:15})}),f&&c.jsx("button",{onClick:()=>p(y.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:15})})]})})]},y.id)),t.length===0&&c.jsx(en,{colSpan:7,msg:u?"불러오는 중…":"콘텐츠가 없습니다."})]})]})})]})}const ofe=[{type:"text",label:"텍스트",icon:A4},{type:"image",label:"이미지",icon:hp},{type:"product",label:"상품",icon:k0},{type:"banner",label:"배너",icon:D0}];function lfe(e){switch(e){case"image":return{type:e,url:"",alt:""};case"product":return{type:e,productId:"",label:""};case"banner":return{type:e,bannerId:"",label:""};default:return{type:"text",text:""}}}const sfe={contentType:"PAGE",slug:"",title:"",summary:"",blocks:[],locale:"ko",tags:"",seoMeta:{title:"",description:"",keywords:""},menuId:null};function s2(){var ee,X,ie;const{id:e}=xk(),t=hs(),n=!e||e==="new",[r,a]=A.useState({...sfe}),[i,o]=A.useState("DRAFT"),[l,s]=A.useState(1),[u,d]=A.useState(null),[f,h]=A.useState([]),[p,y]=A.useState(!1),[m,b]=A.useState(!1),[g,S]=A.useState(""),[x,v]=A.useState(""),[w,O]=A.useState(""),j=Rn(),_=bN();A.useEffect(()=>{n||CL(Number(e)).then(D=>{D&&(a({contentType:D.contentType,slug:D.slug,title:D.title,summary:D.summary||"",blocks:ea(D.blocks,[]),locale:D.locale,tags:D.tags||"",seoMeta:ea(D.seoMeta,{title:"",description:"",keywords:""}),menuId:D.menuId??null}),o(D.status),s(D.version),d(D.scheduledAt))}).catch(()=>{})},[e]);const E=()=>{ML(Number(e)).then(D=>{h(D||[]),y(!0)}).catch(()=>h([]))},N=(D,W)=>{const se=[...r.blocks];se[D]={...se[D],...W},a({...r,blocks:se})},$=D=>a({...r,blocks:[...r.blocks,lfe(D)]}),C=D=>a({...r,blocks:r.blocks.filter((W,se)=>se!==D)}),L=(D,W)=>{const se=D+W;if(se<0||se>=r.blocks.length)return;const fe=[...r.blocks];[fe[D],fe[se]]=[fe[se],fe[D]],a({...r,blocks:fe})},k=async()=>{var W,se;O("");const D={...r};try{if(n){const fe=await $L(D);t(`/contents/${fe.id}`,{replace:!0})}else{const fe=await PL(Number(e),D);s(fe.version),O("저장되었습니다.")}}catch(fe){O(((se=(W=fe==null?void 0:fe.response)==null?void 0:W.data)==null?void 0:se.message)||"저장에 실패했습니다.")}},R=async D=>{var W,se;if(n){O("먼저 저장하세요.");return}try{const fe=await ow(Number(e),{action:D});o(fe.status),d(fe.scheduledAt),O(`상태 전환: ${fe.status}`)}catch(fe){O(((se=(W=fe==null?void 0:fe.response)==null?void 0:W.data)==null?void 0:se.message)||"상태 전환에 실패했습니다 (권한 확인).")}},M=async()=>{var D,W;if(g)try{const se=await ow(Number(e),{action:"schedule",scheduledAt:new Date(g).toISOString()});o(se.status),d(se.scheduledAt),b(!1),O("예약 게시가 설정되었습니다.")}catch(se){O(((W=(D=se==null?void 0:se.response)==null?void 0:D.data)==null?void 0:W.message)||"예약에 실패했습니다.")}},z=async D=>{var W,se;if(window.confirm(`v${D} 로 롤백하시겠습니까? (DRAFT 로 복원)`))try{const fe=await DL(Number(e),D);a({contentType:fe.contentType,slug:fe.slug,title:fe.title,summary:fe.summary||"",blocks:ea(fe.blocks,[]),locale:fe.locale,tags:fe.tags||"",seoMeta:ea(fe.seoMeta,{}),menuId:fe.menuId??null}),o(fe.status),s(fe.version),y(!1),O(`v${D} 로 롤백되었습니다.`)}catch(fe){O(((se=(W=fe==null?void 0:fe.response)==null?void 0:W.data)==null?void 0:se.message)||"롤백에 실패했습니다.")}},B=async()=>{var D;v("draft");try{const W=await FN(((D=r.contentType)==null?void 0:D.toLowerCase())||"page",r.title||r.slug||"콘텐츠","professional");W!=null&&W.draft&&F(W.draft)}catch{O("AI 초안 생성 실패 (Ollama 폴백)")}finally{v("")}},F=D=>a(W=>({...W,blocks:[...W.blocks,{type:"text",text:D}]})),V=async()=>{v("seo");const D=r.blocks.filter(W=>W.type==="text").map(W=>W.text).join(`
`);try{const W=await GN(r.title||"",D);a(se=>({...se,seoMeta:{...se.seoMeta,description:(W==null?void 0:W.metaDescription)||se.seoMeta.description,keywords:((W==null?void 0:W.keywords)||[]).join(", ")}})),O(`AI SEO 제안 적용 (점수 ${(W==null?void 0:W.score)??"-"})`)}catch{O("AI SEO 제안 실패")}finally{v("")}};return c.jsxs("div",{children:[c.jsx(Dn,{title:n?"새 콘텐츠":"콘텐츠 편집",subtitle:n?"헤드리스 블록 콘텐츠 작성":`v${l}`,actions:c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs(Q,{variant:"ghost",onClick:()=>t("/contents"),children:[c.jsx(Q5,{size:15})," 목록"]}),!n&&c.jsx(Cn,{status:u&&i!=="PUBLISHED"?"SCHEDULED":i}),!n&&c.jsxs(Q,{variant:"ghost",onClick:E,children:[c.jsx(c4,{size:15})," 버전"]}),j&&c.jsxs(Q,{onClick:k,children:[c.jsx(hN,{size:15})," 저장"]})]})}),w&&c.jsx("div",{className:"mb-4 text-sm rounded-lg px-4 py-2.5 bg-brand/10 border border-brand/30 text-brand",children:w}),!n&&c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-5 bg-card border border-edge rounded-xl p-3",children:[c.jsx("span",{className:"text-xs text-slate-500 mr-1",children:"워크플로우:"}),c.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>R("submit"),children:[c.jsx(S4,{size:13})," 검토 요청"]}),c.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>R("approve"),title:_?"":"Editor+ 필요",children:[c.jsx(r4,{size:13})," 승인"]}),c.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>R("publish"),title:_?"":"Editor+ 필요",children:[c.jsx(P0,{size:13})," 발행"]}),c.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>R("reject"),title:_?"":"Editor+ 필요",children:[c.jsx(i4,{size:13})," 반려"]}),c.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>R("archive"),title:_?"":"Editor+ 필요",children:[c.jsx(W5,{size:13})," 보관"]}),c.jsxs(Q,{size:"sm",variant:"ghost",disabled:!_,onClick:()=>{S(""),b(!0)},title:_?"":"Editor+ 필요",children:[c.jsx(e4,{size:13})," 예약 게시"]}),u&&c.jsxs("span",{className:"text-[11px] text-violet-400 ml-1",children:["예약: ",new Date(u).toLocaleString("ko-KR")]})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[c.jsxs(yt,{title:"기본 정보",className:"lg:col-span-1 self-start",children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"제목",children:c.jsx("input",{className:"inp",value:r.title,onChange:D=>a({...r,title:D.target.value})})}),c.jsx(Y,{label:"슬러그",children:c.jsx("input",{className:"inp",value:r.slug,onChange:D=>a({...r,slug:D.target.value}),placeholder:"url-slug"})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"유형",children:c.jsx("select",{className:"inp",value:r.contentType,onChange:D=>a({...r,contentType:D.target.value}),children:["PAGE","POST","PRODUCT","LANDING"].map(D=>c.jsx("option",{children:D},D))})}),c.jsx(Y,{label:"로케일",children:c.jsx("select",{className:"inp",value:r.locale,onChange:D=>a({...r,locale:D.target.value}),children:["ko","en","ja","zh"].map(D=>c.jsx("option",{children:D},D))})})]}),c.jsx(Y,{label:"요약",children:c.jsx("textarea",{className:"inp",value:r.summary,onChange:D=>a({...r,summary:D.target.value})})}),c.jsx(Y,{label:"태그 (쉼표 구분)",children:c.jsx("input",{className:"inp",value:r.tags,onChange:D=>a({...r,tags:D.target.value})})})]}),c.jsxs("div",{className:"mt-5 pt-4 border-t border-edge",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"text-xs font-semibold text-slate-300 flex items-center gap-1",children:[c.jsx(gt,{size:13,className:"text-accent"})," SEO 메타"]}),c.jsxs(Q,{size:"sm",variant:"ghost",disabled:!!x,onClick:V,children:[c.jsx(gt,{size:12})," ",x==="seo"?"생성 중…":"AI 제안"]})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("input",{className:"inp",placeholder:"SEO 제목",value:((ee=r.seoMeta)==null?void 0:ee.title)||"",onChange:D=>a({...r,seoMeta:{...r.seoMeta,title:D.target.value}})}),c.jsx("textarea",{className:"inp",placeholder:"메타 설명",value:((X=r.seoMeta)==null?void 0:X.description)||"",onChange:D=>a({...r,seoMeta:{...r.seoMeta,description:D.target.value}})}),c.jsx("input",{className:"inp",placeholder:"키워드",value:((ie=r.seoMeta)==null?void 0:ie.keywords)||"",onChange:D=>a({...r,seoMeta:{...r.seoMeta,keywords:D.target.value}})})]})]})]}),c.jsx("div",{className:"lg:col-span-2",children:c.jsxs(yt,{title:"블록 에디터",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-4 flex-wrap",children:[ofe.map(({type:D,label:W,icon:se})=>c.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>$(D),children:[c.jsx(se,{size:13})," ",W]},D)),c.jsxs(Q,{size:"sm",variant:"ghost",disabled:!!x,onClick:B,children:[c.jsx(gt,{size:13})," ",x==="draft"?"AI 초안…":"AI 초안 블록"]})]}),r.blocks.length===0&&c.jsx("div",{className:"text-center text-slate-500 text-sm py-10 border border-dashed border-edge rounded-lg",children:"블록을 추가하세요. (텍스트 / 이미지 / 상품 / 배너)"}),c.jsx("div",{className:"space-y-3",children:r.blocks.map((D,W)=>c.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-3",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"flex items-center gap-1.5 text-xs font-semibold text-brand",children:[c.jsx(sN,{size:13,className:"text-slate-500"})," ",D.type.toUpperCase()," ",c.jsxs("span",{className:"text-slate-500",children:["#",W+1]})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("button",{onClick:()=>L(W,-1),className:"text-slate-500 hover:text-brand text-xs",children:"▲"}),c.jsx("button",{onClick:()=>L(W,1),className:"text-slate-500 hover:text-brand text-xs",children:"▼"}),c.jsx("button",{onClick:()=>C(W),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:14})})]})]}),c.jsx(ufe,{block:D,onChange:se=>N(W,se)})]},W))}),c.jsxs("details",{className:"mt-4",children:[c.jsx("summary",{className:"text-[11px] text-slate-500 cursor-pointer",children:"블록 JSON 보기"}),c.jsx("pre",{className:"mt-2 text-[11px] text-slate-400 bg-ink border border-edge rounded p-3 overflow-auto max-h-48",children:JSON.stringify(r.blocks,null,2)})]})]})})]}),p&&c.jsx(et,{title:"버전 히스토리",onClose:()=>y(!1),children:f.length===0?c.jsx("p",{className:"text-slate-500 text-sm",children:"버전 기록이 없습니다."}):c.jsx("ul",{className:"divide-y divide-edge/50",children:f.map(D=>c.jsxs("li",{className:"flex items-center justify-between py-2.5 text-sm",children:[c.jsxs("div",{children:[c.jsxs("span",{className:"font-medium",children:["v",D.version]}),c.jsx("span",{className:"text-slate-400 ml-2",children:D.title}),c.jsxs("div",{className:"text-[11px] text-slate-500",children:[D.createdAt?new Date(D.createdAt).toLocaleString("ko-KR"):""," · ",D.createdBy||""]})]}),c.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>z(D.version),children:[c.jsx(b4,{size:13})," 롤백"]})]},D.id??D.version))})}),m&&c.jsxs(et,{title:"예약 게시",onClose:()=>b(!1),children:[c.jsx(Y,{label:"게시 일시",hint:"도래 시 스케줄러가 자동 PUBLISHED 처리합니다.",children:c.jsx("input",{className:"inp",type:"datetime-local",value:g,onChange:D=>S(D.target.value)})}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>b(!1),children:"취소"}),c.jsx(Q,{onClick:M,children:"예약"})]})]})]})}function ufe({block:e,onChange:t}){return e.type==="text"?c.jsx("textarea",{className:"inp",value:e.text||"",onChange:n=>t({text:n.target.value}),placeholder:"텍스트 내용"}):e.type==="image"?c.jsxs("div",{className:"space-y-2",children:[c.jsx("input",{className:"inp",value:e.url||"",onChange:n=>t({url:n.target.value}),placeholder:"이미지 URL"}),c.jsx("input",{className:"inp",value:e.alt||"",onChange:n=>t({alt:n.target.value}),placeholder:"대체 텍스트"})]}):e.type==="product"?c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsx("input",{className:"inp",value:e.productId||"",onChange:n=>t({productId:n.target.value}),placeholder:"상품 ID"}),c.jsx("input",{className:"inp",value:e.label||"",onChange:n=>t({label:n.target.value}),placeholder:"라벨"})]}):e.type==="banner"?c.jsxs("div",{className:"grid grid-cols-2 gap-2",children:[c.jsx("input",{className:"inp",value:e.bannerId||"",onChange:n=>t({bannerId:n.target.value}),placeholder:"배너 ID"}),c.jsx("input",{className:"inp",value:e.label||"",onChange:n=>t({label:n.target.value}),placeholder:"라벨"})]}):null}const cfe=["","IMAGE","VIDEO","FILE"],ffe={fileName:"",mediaType:"IMAGE",url:"",folder:"",mimeType:"image/png",sizeBytes:0,altText:"",tags:""};function dfe(){const[e,t]=A.useState([]),[n,r]=A.useState(""),[a,i]=A.useState(""),[o,l]=A.useState(""),[s,u]=A.useState(null),[d,f]=A.useState(null),[h,p]=A.useState(null),y=Rn(),m=()=>YL({folder:n,mediaType:a,keyword:o}).then(v=>t(v||[])).catch(()=>t([]));A.useEffect(()=>{m()},[a]);const b=async()=>{await XL(s),u(null),m()},g=async v=>{window.confirm("삭제하시겠습니까?")&&(await ZL(v),m())},S=async v=>{p(v);try{await WL(v),m()}finally{p(null)}},x=async()=>{await QL(d.id,{altText:d.altText,tags:d.tags}),f(null),m()};return c.jsxs("div",{children:[c.jsx(Dn,{title:"미디어 라이브러리",subtitle:"이미지 · 동영상 · 파일 · AI 대체텍스트",actions:y&&c.jsxs(Q,{onClick:()=>u({...ffe}),children:[c.jsx(Vt,{size:16})," 미디어 등록"]})}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[c.jsxs("div",{className:"relative",children:[c.jsx(u4,{size:14,className:"absolute left-2.5 top-2.5 text-slate-500"}),c.jsx("input",{value:n,onChange:v=>r(v.target.value),onKeyDown:v=>v.key==="Enter"&&m(),placeholder:"폴더",className:"inp pl-8 w-40"})]}),c.jsx("select",{className:"inp w-32",value:a,onChange:v=>i(v.target.value),children:cfe.map(v=>c.jsx("option",{value:v,children:v||"전체"},v))}),c.jsx("input",{value:o,onChange:v=>l(v.target.value),onKeyDown:v=>v.key==="Enter"&&m(),placeholder:"검색",className:"inp w-44"}),c.jsx(Q,{variant:"ghost",onClick:m,children:"검색"})]}),e.length===0?c.jsx(en,{msg:"미디어가 없습니다."}):c.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-4",children:e.map(v=>c.jsxs("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:[c.jsx("div",{className:"aspect-video bg-ink flex items-center justify-center overflow-hidden",children:v.mediaType==="IMAGE"&&v.url?c.jsx("img",{src:v.url,alt:v.altText||v.fileName,className:"object-cover w-full h-full",onError:w=>{w.target.style.display="none"}}):v.mediaType==="VIDEO"?c.jsx(s4,{size:28,className:"text-slate-600"}):c.jsx(hp,{size:28,className:"text-slate-600"})}),c.jsxs("div",{className:"p-3",children:[c.jsx("div",{className:"text-xs font-medium truncate",title:v.fileName,children:v.fileName}),c.jsx("div",{className:"text-[11px] text-slate-500 truncate",children:v.altText||"대체텍스트 없음"}),v.tags&&c.jsxs("div",{className:"text-[10px] text-brand truncate mt-1",children:["# ",v.tags]}),y&&c.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[c.jsx("button",{onClick:()=>S(v.id),disabled:h===v.id,title:"AI 대체텍스트",className:"text-accent hover:text-accent/80",children:c.jsx(gt,{size:14})}),c.jsx("button",{onClick:()=>f({id:v.id,altText:v.altText||"",tags:v.tags||""}),title:"메타 편집",className:"text-slate-400 hover:text-brand",children:c.jsx(O4,{size:14})}),c.jsx("button",{onClick:()=>g(v.id),className:"text-rose-400 hover:text-rose-300 ml-auto",children:c.jsx(Ht,{size:14})})]})]})]},v.id))}),s&&c.jsxs(et,{title:"미디어 등록",onClose:()=>u(null),children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"파일명",children:c.jsx("input",{className:"inp",value:s.fileName,onChange:v=>u({...s,fileName:v.target.value})})}),c.jsx(Y,{label:"URL",children:c.jsx("input",{className:"inp",value:s.url,onChange:v=>u({...s,url:v.target.value}),placeholder:"https://..."})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"유형",children:c.jsx("select",{className:"inp",value:s.mediaType,onChange:v=>u({...s,mediaType:v.target.value}),children:["IMAGE","VIDEO","FILE"].map(v=>c.jsx("option",{children:v},v))})}),c.jsx(Y,{label:"폴더",children:c.jsx("input",{className:"inp",value:s.folder,onChange:v=>u({...s,folder:v.target.value})})})]}),c.jsx(Y,{label:"대체 텍스트",children:c.jsx("input",{className:"inp",value:s.altText,onChange:v=>u({...s,altText:v.target.value})})}),c.jsx(Y,{label:"태그",children:c.jsx("input",{className:"inp",value:s.tags,onChange:v=>u({...s,tags:v.target.value})})})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>u(null),children:"취소"}),c.jsx(Q,{onClick:b,children:"저장"})]})]}),d&&c.jsxs(et,{title:"메타 편집",onClose:()=>f(null),children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"대체 텍스트",children:c.jsx("input",{className:"inp",value:d.altText,onChange:v=>f({...d,altText:v.target.value})})}),c.jsx(Y,{label:"태그",children:c.jsx("input",{className:"inp",value:d.tags,onChange:v=>f({...d,tags:v.target.value})})})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>f(null),children:"취소"}),c.jsx(Q,{onClick:x,children:"저장"})]})]})]})}const hfe=["","DRAFT","PUBLISHED","ARCHIVED"],pfe={mallProductId:"",productName:"",summary:"",detailBlocks:[],specs:"",locale:"ko"};function mfe(){const[e,t]=A.useState([]),[n,r]=A.useState(""),[a,i]=A.useState(""),[o,l]=A.useState(null),[s,u]=A.useState(!1),[d,f]=A.useState(""),h=Rn(),p=bN(),y=()=>kL({status:n,keyword:a}).then(E=>t(E||[])).catch(()=>t([]));A.useEffect(()=>{y()},[n]);const m=()=>l({...pfe,_new:!0}),b=async E=>{const N=await zL(E);l({...N,detailBlocks:ea(N.detailBlocks,[]),_new:!1})},g=async()=>{const{_new:E,id:N,...$}=o;E?await LL($):await BL(N,$),l(null),y()},S=async E=>{window.confirm("삭제하시겠습니까?")&&(await qL(E),y())},x=async E=>{await UL(E),y()},v=async()=>{u(!0);try{const E=await IL(o.productName||"상품","marketing");E!=null&&E.draft&&l(N=>({...N,detailBlocks:[...N.detailBlocks,{type:"text",text:E.draft}]}))}catch{}finally{u(!1)}},w=async()=>{if(d)try{const E=await HL(d);l(N=>({...N,productName:N.productName||(E==null?void 0:E.productName)||"",summary:N.summary||(E==null?void 0:E.summary)||"",specs:N.specs||(E==null?void 0:E.specs)||""}))}catch{}},O=()=>l(E=>({...E,detailBlocks:[...E.detailBlocks,{type:"text",text:""}]})),j=(E,N)=>l($=>{const C=[...$.detailBlocks];return C[E]={...C[E],text:N},{...$,detailBlocks:C}}),_=E=>l(N=>({...N,detailBlocks:N.detailBlocks.filter(($,C)=>C!==E)}));return c.jsxs("div",{children:[c.jsx(Dn,{title:"상품 콘텐츠",subtitle:"상품 상세페이지 빌더 · Mall 연계 · AI 초안 · OCR 추출",actions:h&&c.jsxs(Q,{onClick:m,children:[c.jsx(Vt,{size:16})," 상품 콘텐츠"]})}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[c.jsx("select",{className:"inp w-36",value:n,onChange:E=>r(E.target.value),children:hfe.map(E=>c.jsx("option",{value:E,children:E||"전체 상태"},E))}),c.jsx("input",{value:a,onChange:E=>i(E.target.value),onKeyDown:E=>E.key==="Enter"&&y(),placeholder:"상품명 검색",className:"inp w-52"}),c.jsx(Q,{variant:"ghost",onClick:y,children:"검색"})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"상품명"}),c.jsx("th",{className:"text-left",children:"Mall ID"}),c.jsx("th",{className:"text-left",children:"로케일"}),c.jsx("th",{className:"text-left",children:"상태"}),c.jsx("th",{className:"text-right px-4",children:"작업"})]})}),c.jsxs("tbody",{children:[e.map(E=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-2",children:[c.jsx(k0,{size:15,className:"text-brand"}),E.productName]}),c.jsx("td",{className:"text-slate-400 font-mono text-xs",children:E.mallProductId||"-"}),c.jsx("td",{className:"text-slate-400",children:E.locale}),c.jsx("td",{children:c.jsx(Cn,{status:E.status})}),c.jsx("td",{className:"px-4",children:c.jsxs("div",{className:"flex items-center justify-end gap-3",children:[c.jsx("button",{onClick:()=>b(E.id),className:"text-slate-400 hover:text-brand text-xs",children:"편집"}),p&&E.status!=="PUBLISHED"&&c.jsx("button",{onClick:()=>x(E.id),title:"발행",className:"text-emerald-400 hover:text-emerald-300",children:c.jsx(P0,{size:15})}),h&&c.jsx("button",{onClick:()=>S(E.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:15})})]})})]},E.id)),e.length===0&&c.jsx(en,{colSpan:5,msg:"상품 콘텐츠가 없습니다."})]})]})}),o&&c.jsxs(et,{title:o._new?"상품 콘텐츠 작성":"상품 콘텐츠 편집",onClose:()=>l(null),wide:!0,children:[c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"상품명",children:c.jsx("input",{className:"inp",value:o.productName,onChange:E=>l({...o,productName:E.target.value})})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"Mall 상품 ID",children:c.jsx("input",{className:"inp",value:o.mallProductId||"",onChange:E=>l({...o,mallProductId:E.target.value})})}),c.jsx(Y,{label:"로케일",children:c.jsx("select",{className:"inp",value:o.locale,onChange:E=>l({...o,locale:E.target.value}),children:["ko","en","ja","zh"].map(E=>c.jsx("option",{children:E},E))})})]}),c.jsx(Y,{label:"요약",children:c.jsx("textarea",{className:"inp",value:o.summary||"",onChange:E=>l({...o,summary:E.target.value})})}),c.jsx(Y,{label:"사양 (specs)",children:c.jsx("textarea",{className:"inp",value:o.specs||"",onChange:E=>l({...o,specs:E.target.value})})}),c.jsx(Y,{label:"OCR 문서로 채우기",children:c.jsxs("div",{className:"flex gap-2",children:[c.jsx("input",{className:"inp",placeholder:"documentId",value:d,onChange:E=>f(E.target.value)}),c.jsxs(Q,{variant:"ghost",onClick:w,children:[c.jsx(x4,{size:13})," 추출"]})]})})]}),c.jsxs(yt,{title:"상세페이지 빌더",children:[c.jsxs("div",{className:"flex gap-2 mb-3",children:[c.jsxs(Q,{size:"sm",variant:"ghost",onClick:O,children:[c.jsx(Vt,{size:13})," 텍스트 블록"]}),c.jsxs(Q,{size:"sm",variant:"ghost",disabled:s,onClick:v,children:[c.jsx(gt,{size:13})," ",s?"AI…":"AI 초안"]})]}),o.detailBlocks.length===0&&c.jsx("div",{className:"text-center text-slate-500 text-xs py-6 border border-dashed border-edge rounded",children:"블록을 추가하세요."}),c.jsx("div",{className:"space-y-2 max-h-72 overflow-auto",children:o.detailBlocks.map((E,N)=>c.jsxs("div",{className:"bg-panel border border-edge rounded p-2",children:[c.jsxs("div",{className:"flex items-center justify-between mb-1",children:[c.jsxs("span",{className:"text-[11px] text-brand flex items-center gap-1",children:[c.jsx(sN,{size:11,className:"text-slate-500"})," #",N+1]}),c.jsx("button",{onClick:()=>_(N),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:12})})]}),c.jsx("textarea",{className:"inp text-xs",value:E.text||"",onChange:$=>j(N,$.target.value)})]},N))})]})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>l(null),children:"취소"}),c.jsx(Q,{onClick:g,children:"저장"})]})]})]})}const u2=["HERO","PROMOTION","POPUP","CAMPAIGN","EXHIBITION"],yfe={name:"",bannerType:"HERO",imageUrl:"",linkUrl:"",position:"main_top",targetRule:"",sortOrder:0,active:!0,startAt:"",endAt:""};function vfe(){const[e,t]=A.useState([]),[n,r]=A.useState(""),[a,i]=A.useState(""),[o,l]=A.useState(null),s=Rn(),u=()=>FL({bannerType:n,position:a}).then(y=>t(y||[])).catch(()=>t([]));A.useEffect(()=>{u()},[n]);const d=()=>l({...yfe}),f=y=>l({...y,targetRule:bb(y.targetRule),startAt:c2(y.startAt),endAt:c2(y.endAt)}),h=async()=>{const y={...o,targetRule:o.targetRule?ea(o.targetRule,{}):null};o.id?await VL(o.id,y):await GL(y),l(null),u()},p=async y=>{window.confirm("삭제하시겠습니까?")&&(await KL(y),u())};return c.jsxs("div",{children:[c.jsx(Dn,{title:"배너 / 프로모션",subtitle:"히어로 · 프로모션 · 팝업 · 기획전 · 노출 스케줄",actions:s&&c.jsxs(Q,{onClick:d,children:[c.jsx(Vt,{size:16})," 배너 추가"]})}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[c.jsxs("select",{className:"inp w-40",value:n,onChange:y=>r(y.target.value),children:[c.jsx("option",{value:"",children:"전체 유형"}),u2.map(y=>c.jsx("option",{children:y},y))]}),c.jsx("input",{className:"inp w-40",placeholder:"position",value:a,onChange:y=>i(y.target.value),onKeyDown:y=>y.key==="Enter"&&u()}),c.jsx(Q,{variant:"ghost",onClick:u,children:"검색"})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.map(y=>c.jsxs("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:[c.jsx("div",{className:"aspect-[16/6] bg-ink flex items-center justify-center overflow-hidden",children:y.imageUrl?c.jsx("img",{src:y.imageUrl,alt:y.name,className:"object-cover w-full h-full",onError:m=>{m.target.style.display="none"}}):c.jsx(D0,{size:26,className:"text-slate-600"})}),c.jsxs("div",{className:"p-3",children:[c.jsxs("div",{className:"flex items-center justify-between",children:[c.jsx("span",{className:"font-medium text-sm",children:y.name}),c.jsx(Cn,{status:y.active?"ACTIVE":"INACTIVE"})]}),c.jsxs("div",{className:"text-[11px] text-slate-500 mt-1",children:[y.bannerType," · ",y.position," · 순서 ",y.sortOrder]}),s&&c.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[c.jsx("button",{onClick:()=>f(y),className:"text-slate-400 hover:text-brand",children:c.jsx(ps,{size:14})}),c.jsx("button",{onClick:()=>p(y.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:14})})]})]})]},y.id)),e.length===0&&c.jsx("div",{className:"col-span-3",children:c.jsx(en,{msg:"배너가 없습니다."})})]}),o&&c.jsxs(et,{title:o.id?"배너 편집":"배너 추가",onClose:()=>l(null),children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"이름",children:c.jsx("input",{className:"inp",value:o.name,onChange:y=>l({...o,name:y.target.value})})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"유형",children:c.jsx("select",{className:"inp",value:o.bannerType,onChange:y=>l({...o,bannerType:y.target.value}),children:u2.map(y=>c.jsx("option",{children:y},y))})}),c.jsx(Y,{label:"position",children:c.jsx("input",{className:"inp",value:o.position,onChange:y=>l({...o,position:y.target.value})})})]}),c.jsx(Y,{label:"이미지 URL",children:c.jsx("input",{className:"inp",value:o.imageUrl,onChange:y=>l({...o,imageUrl:y.target.value})})}),c.jsx(Y,{label:"링크 URL",children:c.jsx("input",{className:"inp",value:o.linkUrl,onChange:y=>l({...o,linkUrl:y.target.value})})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"시작",children:c.jsx("input",{className:"inp",type:"datetime-local",value:o.startAt,onChange:y=>l({...o,startAt:y.target.value})})}),c.jsx(Y,{label:"종료",children:c.jsx("input",{className:"inp",type:"datetime-local",value:o.endAt,onChange:y=>l({...o,endAt:y.target.value})})})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"정렬 순서",children:c.jsx("input",{className:"inp",type:"number",value:o.sortOrder,onChange:y=>l({...o,sortOrder:Number(y.target.value)})})}),c.jsx(Y,{label:"활성",children:c.jsxs("select",{className:"inp",value:String(o.active),onChange:y=>l({...o,active:y.target.value==="true"}),children:[c.jsx("option",{value:"true",children:"활성"}),c.jsx("option",{value:"false",children:"비활성"})]})})]}),c.jsx(Y,{label:"타겟 규칙 (JSON)",hint:'예: {"segment":"VIP"}',children:c.jsx("textarea",{className:"inp",value:o.targetRule,onChange:y=>l({...o,targetRule:y.target.value})})})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>l(null),children:"취소"}),c.jsx(Q,{onClick:h,children:"저장"})]})]})]})}function c2(e){if(!e)return"";try{const t=new Date(e);return new Date(t.getTime()-t.getTimezoneOffset()*6e4).toISOString().slice(0,16)}catch{return""}}const gfe=["MAIN","FOOTER","CATEGORY","SIDEBAR"],f2={parentId:null,name:"",menuType:"MAIN",url:"",slug:"",sortOrder:0,active:!0};function bfe(){const[e,t]=A.useState("MAIN"),[n,r]=A.useState([]),[a,i]=A.useState([]),[o,l]=A.useState(null),[s,u]=A.useState(""),d=Rn(),f=()=>{e6(e).then(m=>r(m||[])).catch(()=>r([])),JL(e).then(m=>i(m||[])).catch(()=>i([]))};A.useEffect(()=>{f()},[e]);const h=async()=>{const m={...o,menuType:e};o.id?await n6(o.id,m):await t6(m),l(null),f()},p=async m=>{var b;if(window.confirm("삭제하시겠습니까? (하위 메뉴가 있으면 거부됩니다)"))try{await r6(m),f()}catch(g){window.alert(((b=g==null?void 0:g.response)==null?void 0:b.status)===409?"하위 메뉴가 있어 삭제할 수 없습니다.":"삭제 실패")}},y=async()=>{const m=await a6("https://example.com");u((m==null?void 0:m.xml)||"")};return c.jsxs("div",{children:[c.jsx(Dn,{title:"메뉴 / 카테고리",subtitle:"내비게이션 · 카테고리 트리 · 사이트맵",actions:c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(Q,{variant:"ghost",onClick:y,children:[c.jsx(aN,{size:15})," 사이트맵"]}),d&&c.jsxs(Q,{onClick:()=>l({...f2}),children:[c.jsx(Vt,{size:16})," 메뉴 추가"]})]})}),c.jsx("div",{className:"flex items-center gap-2 mb-4",children:c.jsx("select",{className:"inp w-44",value:e,onChange:m=>t(m.target.value),children:gfe.map(m=>c.jsx("option",{children:m},m))})}),c.jsx("div",{className:"bg-card border border-edge rounded-xl p-4",children:n.length===0?c.jsx("p",{className:"text-slate-500 text-sm py-4 text-center",children:"메뉴가 없습니다."}):n.map(m=>c.jsx(kP,{node:m,depth:0,onEdit:b=>l({...b}),onAddChild:b=>l({...f2,parentId:b}),onDel:p,writable:d},m.id))}),o&&c.jsxs(et,{title:o.id?"메뉴 편집":"메뉴 추가",onClose:()=>l(null),children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"이름",children:c.jsx("input",{className:"inp",value:o.name,onChange:m=>l({...o,name:m.target.value})})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"URL",children:c.jsx("input",{className:"inp",value:o.url||"",onChange:m=>l({...o,url:m.target.value})})}),c.jsx(Y,{label:"슬러그",children:c.jsx("input",{className:"inp",value:o.slug||"",onChange:m=>l({...o,slug:m.target.value})})})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"상위 메뉴",children:c.jsxs("select",{className:"inp",value:o.parentId??"",onChange:m=>l({...o,parentId:m.target.value?Number(m.target.value):null}),children:[c.jsx("option",{value:"",children:"(최상위)"}),a.filter(m=>m.id!==o.id).map(m=>c.jsx("option",{value:m.id,children:m.name},m.id))]})}),c.jsx(Y,{label:"정렬 순서",children:c.jsx("input",{className:"inp",type:"number",value:o.sortOrder,onChange:m=>l({...o,sortOrder:Number(m.target.value)})})})]}),c.jsx(Y,{label:"활성",children:c.jsxs("select",{className:"inp",value:String(o.active),onChange:m=>l({...o,active:m.target.value==="true"}),children:[c.jsx("option",{value:"true",children:"활성"}),c.jsx("option",{value:"false",children:"비활성"})]})})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>l(null),children:"취소"}),c.jsx(Q,{onClick:h,children:"저장"})]})]}),s&&c.jsx(et,{title:"sitemap.xml",onClose:()=>u(""),wide:!0,children:c.jsx("pre",{className:"text-[11px] text-slate-400 bg-ink border border-edge rounded p-3 overflow-auto max-h-[60vh]",children:s})})]})}function kP({node:e,depth:t,onEdit:n,onAddChild:r,onDel:a,writable:i}){const[o,l]=A.useState(!0),s=e.children||[];return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center gap-2 py-1.5 hover:bg-panel/40 rounded px-2",style:{marginLeft:t*18},children:[s.length>0?c.jsx("button",{onClick:()=>l(!o),className:"text-slate-500",children:o?c.jsx(t4,{size:14}):c.jsx(n4,{size:14})}):c.jsx("span",{className:"w-3.5 inline-block"}),c.jsx(cN,{size:14,className:"text-brand"}),c.jsx("span",{className:"text-sm font-medium",children:e.name}),e.url&&c.jsx("span",{className:"text-[11px] text-slate-500 font-mono",children:e.url}),!e.active&&c.jsx("span",{className:"text-[10px] text-slate-500",children:"(비활성)"}),i&&c.jsxs("div",{className:"flex items-center gap-2 ml-auto",children:[c.jsx("button",{onClick:()=>r(e.id),className:"text-slate-500 hover:text-brand",children:c.jsx(Vt,{size:13})}),c.jsx("button",{onClick:()=>n(e),className:"text-slate-400 hover:text-brand text-xs",children:"편집"}),c.jsx("button",{onClick:()=>a(e.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:13})})]})]}),o&&s.map(u=>c.jsx(kP,{node:u,depth:t+1,onEdit:n,onAddChild:r,onDel:a,writable:i},u.id))]})}const xfe={name:"",layout:`{
  "slots": ["header", "main", "footer"]
}`,tokens:`{
  "brand": "#00a0c8"
}`,active:!1};function Sfe(){const[e,t]=A.useState([]),[n,r]=A.useState(null),a=Rn(),i=()=>i6().then(f=>t(f||[])).catch(()=>t([]));A.useEffect(()=>{i()},[]);const o=()=>r({...xfe}),l=f=>r({...f,layout:bb(f.layout),tokens:bb(f.tokens)}),s=async()=>{const f={...n,layout:ea(n.layout,{}),tokens:ea(n.tokens,{})};n.id?await l6(n.id,f):await o6(f),r(null),i()},u=async f=>{await s6(f),i()},d=async f=>{window.confirm("삭제하시겠습니까?")&&(await u6(f),i())};return c.jsxs("div",{children:[c.jsx(Dn,{title:"테마 / 템플릿",subtitle:"레이아웃 슬롯 · 디자인 토큰 · 단일 활성",actions:a&&c.jsxs(Q,{onClick:o,children:[c.jsx(Vt,{size:16})," 테마 추가"]})}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.map(f=>{const h=ea(f.tokens,{});return c.jsxs("div",{className:`bg-card border rounded-xl p-4 ${f.active?"border-brand":"border-edge"}`,children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"font-medium flex items-center gap-1.5",children:[c.jsx(dN,{size:15,className:"text-brand"})," ",f.name]}),c.jsx(Cn,{status:f.active?"ACTIVE":"INACTIVE"})]}),c.jsx("div",{className:"flex gap-1.5 mb-3",children:Object.values(h).slice(0,6).map((p,y)=>typeof p=="string"&&p.startsWith("#")&&c.jsx("span",{className:"w-6 h-6 rounded border border-edge",style:{background:p},title:p},y))}),a&&c.jsxs("div",{className:"flex items-center gap-3",children:[!f.active&&c.jsx("button",{onClick:()=>u(f.id),title:"활성화",className:"text-emerald-400 hover:text-emerald-300",children:c.jsx(rN,{size:15})}),c.jsx("button",{onClick:()=>l(f),className:"text-slate-400 hover:text-brand",children:c.jsx(ps,{size:14})}),c.jsx("button",{onClick:()=>d(f.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:14})})]})]},f.id)}),e.length===0&&c.jsx("div",{className:"col-span-3",children:c.jsx(en,{msg:"테마가 없습니다."})})]}),n&&c.jsxs(et,{title:n.id?"테마 편집":"테마 추가",onClose:()=>r(null),wide:!0,children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"이름",children:c.jsx("input",{className:"inp",value:n.name,onChange:f=>r({...n,name:f.target.value})})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"레이아웃 (JSON)",children:c.jsx("textarea",{className:"inp font-mono text-xs",style:{minHeight:140},value:n.layout,onChange:f=>r({...n,layout:f.target.value})})}),c.jsx(Y,{label:"토큰 (JSON)",children:c.jsx("textarea",{className:"inp font-mono text-xs",style:{minHeight:140},value:n.tokens,onChange:f=>r({...n,tokens:f.target.value})})})]})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>r(null),children:"취소"}),c.jsx(Q,{onClick:s,children:"저장"})]})]})]})}function wfe(){const[e,t]=A.useState([]),[n,r]=A.useState(""),[a,i]=A.useState([]),[o,l]=A.useState(null),[s,u]=A.useState(null),[d,f]=A.useState(null),[h,p]=A.useState(""),y=Rn();A.useEffect(()=>{c6().then(v=>{t(v||[]),v!=null&&v[0]&&r(v[0])}).catch(()=>t([]))},[]);const m=()=>f6(n).then(v=>i(v||[])).catch(()=>i([]));A.useEffect(()=>{n&&m()},[n]);const b=async()=>{await d6({locale:o.locale,resourceKey:o.resourceKey,value:o.value}),l(null),m()},g=async v=>{window.confirm("삭제하시겠습니까?")&&(await h6(v),m())},S=async()=>{if(!s)return;const v=await p6(s.text,s.target);u({...s,result:(v==null?void 0:v.translated)||""})},x=async()=>{if(!d)return;const v=await m6(d.source,d.target);p(`일괄 번역 완료: ${(v==null?void 0:v.translated)??0}건 → ${(v==null?void 0:v.targetLocale)||d.target}`),f(null),m()};return c.jsxs("div",{children:[c.jsx(Dn,{title:"다국어 (i18n)",subtitle:"로케일 · 번역 리소스 · AI 번역",actions:c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(Q,{variant:"ghost",onClick:()=>u({text:"",target:"en",result:""}),children:[c.jsx(gt,{size:15})," AI 번역"]}),c.jsxs(Q,{variant:"ghost",onClick:()=>f({source:"ko",target:"en"}),children:[c.jsx(zv,{size:15})," 일괄 번역"]}),y&&c.jsxs(Q,{onClick:()=>l({locale:n||"ko",resourceKey:"",value:""}),children:[c.jsx(Vt,{size:16})," 리소스 추가"]})]})}),h&&c.jsx("div",{className:"mb-4 text-sm rounded-lg px-4 py-2.5 bg-brand/10 border border-brand/30 text-brand",children:h}),c.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[c.jsx(R0,{size:16,className:"text-slate-400"}),c.jsxs("select",{className:"inp w-40",value:n,onChange:v=>r(v.target.value),children:[e.length===0&&c.jsx("option",{value:"",children:"로케일 없음"}),e.map(v=>c.jsx("option",{value:v,children:v},v))]})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"키"}),c.jsx("th",{className:"text-left",children:"값"}),c.jsx("th",{className:"text-right px-4",children:"작업"})]})}),c.jsxs("tbody",{children:[a.map(v=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsx("td",{className:"py-3 px-4 font-mono text-xs text-brand",children:v.resourceKey}),c.jsx("td",{className:"text-slate-300",children:v.value}),c.jsx("td",{className:"px-4 text-right",children:y&&c.jsx("button",{onClick:()=>g(v.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:15})})})]},v.id)),a.length===0&&c.jsx(en,{colSpan:3,msg:"번역 리소스가 없습니다."})]})]})}),o&&c.jsxs(et,{title:"리소스 추가",onClose:()=>l(null),children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"로케일",children:c.jsx("input",{className:"inp",value:o.locale,onChange:v=>l({...o,locale:v.target.value})})}),c.jsx(Y,{label:"키",children:c.jsx("input",{className:"inp",value:o.resourceKey,onChange:v=>l({...o,resourceKey:v.target.value}),placeholder:"home.title"})}),c.jsx(Y,{label:"값",children:c.jsx("textarea",{className:"inp",value:o.value,onChange:v=>l({...o,value:v.target.value})})})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>l(null),children:"취소"}),c.jsx(Q,{onClick:b,children:"저장"})]})]}),s&&c.jsx(et,{title:"AI 번역",onClose:()=>u(null),children:c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"원문",children:c.jsx("textarea",{className:"inp",value:s.text,onChange:v=>u({...s,text:v.target.value})})}),c.jsx(Y,{label:"대상 로케일",children:c.jsx("input",{className:"inp",value:s.target,onChange:v=>u({...s,target:v.target.value})})}),c.jsxs(Q,{onClick:S,children:[c.jsx(gt,{size:14})," 번역"]}),s.result&&c.jsx(Y,{label:"번역 결과",children:c.jsx("div",{className:"inp min-h-[60px] whitespace-pre-wrap",children:s.result})})]})}),d&&c.jsxs(et,{title:"일괄 번역",onClose:()=>f(null),children:[c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"원본 로케일",children:c.jsx("input",{className:"inp",value:d.source,onChange:v=>f({...d,source:v.target.value})})}),c.jsx(Y,{label:"대상 로케일",children:c.jsx("input",{className:"inp",value:d.target,onChange:v=>f({...d,target:v.target.value})})})]}),c.jsx("p",{className:"text-[11px] text-slate-500",children:"원본 로케일의 모든 리소스를 대상 로케일로 AI 번역하여 생성합니다."})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>f(null),children:"취소"}),c.jsxs(Q,{onClick:x,children:[c.jsx(zv,{size:14})," 일괄 번역 실행"]})]})]})]})}const Ofe={pathKey:"",title:"",description:"",keywords:"",ogTitle:"",ogImage:"",canonical:"",locale:"ko"},jfe={fromPath:"",toPath:"",statusCode:301,active:!0};function Afe(){const[e,t]=A.useState("meta"),[n,r]=A.useState([]),[a,i]=A.useState([]),[o,l]=A.useState(null),[s,u]=A.useState(null),[d,f]=A.useState(""),[h,p]=A.useState(null),y=Rn(),m=()=>{y6().then(O=>r(O||[])).catch(()=>r([])),x6().then(O=>i(O||[])).catch(()=>i([]))};A.useEffect(()=>{m()},[]);const b=async()=>{o.id?await g6(o.id,o):await v6(o),l(null),m()},g=async O=>{window.confirm("삭제하시겠습니까?")&&(await b6(O),m())},S=async()=>{await S6(s),u(null),m()},x=async O=>{window.confirm("삭제하시겠습니까?")&&(await w6(O),m())},v=async()=>{const O=await O6("https://example.com");f((O==null?void 0:O.robots)||"")},w=async()=>{if(!h)return;const O=await j6(h.title,h.body);p({...h,result:O})};return c.jsxs("div",{children:[c.jsx(Dn,{title:"SEO",subtitle:"메타데이터 · OG · 리다이렉트 · robots/sitemap · AI 제안",actions:c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(Q,{variant:"ghost",onClick:v,children:[c.jsx(aN,{size:15})," robots.txt"]}),c.jsxs(Q,{variant:"ghost",onClick:()=>p({title:"",body:"",result:null}),children:[c.jsx(gt,{size:15})," AI 제안"]})]})}),c.jsxs("div",{className:"flex gap-2 mb-4",children:[c.jsx("button",{onClick:()=>t("meta"),className:`px-3 py-1.5 rounded-lg text-sm ${e==="meta"?"bg-brand text-ink font-semibold":"bg-card border border-edge text-slate-300"}`,children:"메타데이터"}),c.jsx("button",{onClick:()=>t("redirect"),className:`px-3 py-1.5 rounded-lg text-sm ${e==="redirect"?"bg-brand text-ink font-semibold":"bg-card border border-edge text-slate-300"}`,children:"리다이렉트"}),c.jsxs("div",{className:"ml-auto",children:[y&&e==="meta"&&c.jsxs(Q,{onClick:()=>l({...Ofe}),children:[c.jsx(Vt,{size:16})," 메타 추가"]}),y&&e==="redirect"&&c.jsxs(Q,{onClick:()=>u({...jfe}),children:[c.jsx(Vt,{size:16})," 리다이렉트 추가"]})]})]}),e==="meta"?c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"경로"}),c.jsx("th",{className:"text-left",children:"제목"}),c.jsx("th",{className:"text-left",children:"설명"}),c.jsx("th",{className:"text-left",children:"로케일"}),c.jsx("th",{className:"text-right px-4",children:"작업"})]})}),c.jsxs("tbody",{children:[n.map(O=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsx("td",{className:"py-3 px-4 font-mono text-xs text-brand",children:O.pathKey}),c.jsx("td",{children:O.title}),c.jsx("td",{className:"text-slate-400 text-xs truncate max-w-[280px]",children:O.description}),c.jsx("td",{className:"text-slate-400",children:O.locale}),c.jsx("td",{className:"px-4",children:c.jsxs("div",{className:"flex items-center justify-end gap-3",children:[y&&c.jsx("button",{onClick:()=>l({...O}),className:"text-slate-400 hover:text-brand",children:c.jsx(ps,{size:14})}),y&&c.jsx("button",{onClick:()=>g(O.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:14})})]})})]},O.id)),n.length===0&&c.jsx(en,{colSpan:5,msg:"메타데이터가 없습니다."})]})]})}):c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"From"}),c.jsx("th",{}),c.jsx("th",{className:"text-left",children:"To"}),c.jsx("th",{className:"text-left",children:"코드"}),c.jsx("th",{className:"text-left",children:"활성"}),c.jsx("th",{className:"text-right px-4",children:"작업"})]})}),c.jsxs("tbody",{children:[a.map(O=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsx("td",{className:"py-3 px-4 font-mono text-xs",children:O.fromPath}),c.jsx("td",{children:c.jsx(Z5,{size:13,className:"text-slate-500"})}),c.jsx("td",{className:"font-mono text-xs text-brand",children:O.toPath}),c.jsx("td",{className:"text-slate-400",children:O.statusCode}),c.jsx("td",{children:O.active?"활성":"비활성"}),c.jsx("td",{className:"px-4 text-right",children:y&&c.jsx("button",{onClick:()=>x(O.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:14})})})]},O.id)),a.length===0&&c.jsx(en,{colSpan:6,msg:"리다이렉트가 없습니다."})]})]})}),o&&c.jsxs(et,{title:o.id?"메타 편집":"메타 추가",onClose:()=>l(null),wide:!0,children:[c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"경로 키",children:c.jsx("input",{className:"inp",value:o.pathKey,onChange:O=>l({...o,pathKey:O.target.value}),placeholder:"/about"})}),c.jsx(Y,{label:"로케일",children:c.jsx("input",{className:"inp",value:o.locale,onChange:O=>l({...o,locale:O.target.value})})}),c.jsx(Y,{label:"제목",children:c.jsx("input",{className:"inp",value:o.title,onChange:O=>l({...o,title:O.target.value})})}),c.jsx(Y,{label:"canonical",children:c.jsx("input",{className:"inp",value:o.canonical,onChange:O=>l({...o,canonical:O.target.value})})}),c.jsx(Y,{label:"설명",children:c.jsx("textarea",{className:"inp",value:o.description,onChange:O=>l({...o,description:O.target.value})})}),c.jsx(Y,{label:"키워드",children:c.jsx("textarea",{className:"inp",value:o.keywords,onChange:O=>l({...o,keywords:O.target.value})})}),c.jsx(Y,{label:"OG 제목",children:c.jsx("input",{className:"inp",value:o.ogTitle,onChange:O=>l({...o,ogTitle:O.target.value})})}),c.jsx(Y,{label:"OG 이미지",children:c.jsx("input",{className:"inp",value:o.ogImage,onChange:O=>l({...o,ogImage:O.target.value})})})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>l(null),children:"취소"}),c.jsx(Q,{onClick:b,children:"저장"})]})]}),s&&c.jsxs(et,{title:"리다이렉트 추가",onClose:()=>u(null),children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"From 경로",children:c.jsx("input",{className:"inp",value:s.fromPath,onChange:O=>u({...s,fromPath:O.target.value})})}),c.jsx(Y,{label:"To 경로",children:c.jsx("input",{className:"inp",value:s.toPath,onChange:O=>u({...s,toPath:O.target.value})})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"상태 코드",children:c.jsx("select",{className:"inp",value:s.statusCode,onChange:O=>u({...s,statusCode:Number(O.target.value)}),children:[301,302,307,308].map(O=>c.jsx("option",{children:O},O))})}),c.jsx(Y,{label:"활성",children:c.jsxs("select",{className:"inp",value:String(s.active),onChange:O=>u({...s,active:O.target.value==="true"}),children:[c.jsx("option",{value:"true",children:"활성"}),c.jsx("option",{value:"false",children:"비활성"})]})})]})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>u(null),children:"취소"}),c.jsx(Q,{onClick:S,children:"저장"})]})]}),d&&c.jsx(et,{title:"robots.txt",onClose:()=>f(""),children:c.jsx("pre",{className:"text-xs text-slate-400 bg-ink border border-edge rounded p-3 overflow-auto max-h-[50vh]",children:d})}),h&&c.jsx(et,{title:"AI SEO 제안",onClose:()=>p(null),wide:!0,children:c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"제목",children:c.jsx("input",{className:"inp",value:h.title,onChange:O=>p({...h,title:O.target.value})})}),c.jsx(Y,{label:"본문",children:c.jsx("textarea",{className:"inp",value:h.body,onChange:O=>p({...h,body:O.target.value})})}),c.jsxs(Q,{onClick:w,children:[c.jsx(gt,{size:14})," 제안 생성"]}),h.result&&c.jsxs("div",{className:"bg-ink border border-edge rounded-lg p-3 text-sm space-y-2",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-slate-500 text-xs",children:"메타 설명:"})," ",h.result.metaDescription]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-slate-500 text-xs",children:"키워드:"})," ",(h.result.keywords||[]).join(", ")]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-slate-500 text-xs",children:"점수:"})," ",c.jsx("span",{className:"text-accent",children:h.result.score})]})]})]})})]})}const Efe=["text","email","tel","textarea","select","checkbox","number"],_fe={name:"",slug:"",fields:[],active:!0};function Tfe(){const[e,t]=A.useState([]),[n,r]=A.useState(null),[a,i]=A.useState(null),[o,l]=A.useState([]),[s,u]=A.useState(!1),d=Rn(),f=()=>A6().then(v=>t(v||[])).catch(()=>t([]));A.useEffect(()=>{f()},[]);const h=()=>r({..._fe}),p=v=>r({...v,fields:Array.isArray(v.fields)?v.fields:d2(v.fields)}),y=async()=>{n.id?await _6(n.id,n):await E6(n),r(null),f()},m=async v=>{window.confirm("삭제하시겠습니까?")&&(await T6(v),f())},b=()=>r(v=>({...v,fields:[...v.fields,{name:"",label:"",type:"text",required:!1}]})),g=(v,w)=>r(O=>{const j=[...O.fields];return j[v]={...j[v],...w},{...O,fields:j}}),S=v=>r(w=>({...w,fields:w.fields.filter((O,j)=>j!==v)})),x=async(v,w=!1)=>{i(v),u(w);const O=await N6(v.id,w);l(O||[])};return c.jsxs("div",{children:[c.jsx(Dn,{title:"폼빌더",subtitle:"필드 정의 · 제출 수집 · AI 스팸 필터",actions:d&&c.jsxs(Q,{onClick:h,children:[c.jsx(Vt,{size:16})," 폼 생성"]})}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"이름"}),c.jsx("th",{className:"text-left",children:"슬러그"}),c.jsx("th",{className:"text-left",children:"필드 수"}),c.jsx("th",{className:"text-left",children:"활성"}),c.jsx("th",{className:"text-right px-4",children:"작업"})]})}),c.jsxs("tbody",{children:[e.map(v=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsxs("td",{className:"py-3 px-4 font-medium flex items-center gap-2",children:[c.jsx(iN,{size:15,className:"text-brand"}),v.name]}),c.jsx("td",{className:"text-slate-400 font-mono text-xs",children:v.slug}),c.jsx("td",{className:"text-slate-400",children:(Array.isArray(v.fields)?v.fields:d2(v.fields)).length}),c.jsx("td",{children:v.active?"활성":"비활성"}),c.jsx("td",{className:"px-4",children:c.jsxs("div",{className:"flex items-center justify-end gap-3",children:[c.jsx("button",{onClick:()=>x(v),title:"제출 내역",className:"text-slate-400 hover:text-brand",children:c.jsx(uN,{size:15})}),d&&c.jsx("button",{onClick:()=>p(v),className:"text-slate-400 hover:text-brand text-xs",children:"편집"}),d&&c.jsx("button",{onClick:()=>m(v.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:15})})]})})]},v.id)),e.length===0&&c.jsx(en,{colSpan:5,msg:"폼이 없습니다."})]})]})}),n&&c.jsxs(et,{title:n.id?"폼 편집":"폼 생성",onClose:()=>r(null),wide:!0,children:[c.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[c.jsx(Y,{label:"이름",children:c.jsx("input",{className:"inp",value:n.name,onChange:v=>r({...n,name:v.target.value})})}),c.jsx(Y,{label:"슬러그",children:c.jsx("input",{className:"inp",value:n.slug,onChange:v=>r({...n,slug:v.target.value})})})]}),c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"text-sm font-semibold flex items-center gap-1.5",children:[c.jsx(p4,{size:15})," 필드 정의"]}),c.jsxs(Q,{size:"sm",variant:"ghost",onClick:b,children:[c.jsx(Vt,{size:13})," 필드"]})]}),c.jsxs("div",{className:"space-y-2 max-h-72 overflow-auto",children:[n.fields.map((v,w)=>c.jsxs("div",{className:"grid grid-cols-12 gap-2 items-center bg-panel border border-edge rounded p-2",children:[c.jsx("input",{className:"inp col-span-3",placeholder:"name",value:v.name,onChange:O=>g(w,{name:O.target.value})}),c.jsx("input",{className:"inp col-span-3",placeholder:"라벨",value:v.label,onChange:O=>g(w,{label:O.target.value})}),c.jsx("select",{className:"inp col-span-3",value:v.type,onChange:O=>g(w,{type:O.target.value}),children:Efe.map(O=>c.jsx("option",{children:O},O))}),c.jsxs("label",{className:"col-span-2 text-xs flex items-center gap-1 text-slate-400",children:[c.jsx("input",{type:"checkbox",checked:!!v.required,onChange:O=>g(w,{required:O.target.checked})})," 필수"]}),c.jsx("button",{onClick:()=>S(w),className:"col-span-1 text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:14})})]},w)),n.fields.length===0&&c.jsx("div",{className:"text-center text-slate-500 text-xs py-6 border border-dashed border-edge rounded",children:"필드를 추가하세요."})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>r(null),children:"취소"}),c.jsx(Q,{onClick:y,children:"저장"})]})]}),a&&c.jsxs(et,{title:`제출 내역 — ${a.name}`,onClose:()=>i(null),wide:!0,children:[c.jsx("div",{className:"flex items-center gap-2 mb-3",children:c.jsxs("label",{className:"text-xs flex items-center gap-1 text-slate-400",children:[c.jsx("input",{type:"checkbox",checked:s,onChange:v=>x(a,v.target.checked)})," 스팸 포함"]})}),o.length===0?c.jsx("p",{className:"text-slate-500 text-sm",children:"제출 내역이 없습니다."}):c.jsx("div",{className:"space-y-2 max-h-[60vh] overflow-auto",children:o.map((v,w)=>c.jsxs("div",{className:"bg-ink border border-edge rounded p-3 text-xs",children:[c.jsxs("div",{className:"flex items-center justify-between mb-1",children:[c.jsx("span",{className:"text-slate-500",children:v.createdAt?new Date(v.createdAt).toLocaleString("ko-KR"):""}),v.spam&&c.jsx("span",{className:"text-rose-400",children:"SPAM"})]}),c.jsx("pre",{className:"text-slate-300 whitespace-pre-wrap",children:JSON.stringify(v.payload??v,null,2)})]},v.id??w))})]})]})}function d2(e){if(Array.isArray(e))return e;try{const t=JSON.parse(e);return Array.isArray(t)?t:[]}catch{return[]}}const Nfe=["","REVIEW","COMMENT","POST","INQUIRY"],Cfe=["","PENDING","APPROVED","REJECTED"];function Mfe({risk:e}){if(e==null)return null;const t=Math.round(e*100),n=e>=.7?"bg-rose-500/15 text-rose-400 border-rose-500/30":e>=.3?"bg-amber-500/15 text-amber-400 border-amber-500/30":"bg-emerald-500/15 text-emerald-400 border-emerald-500/30";return c.jsxs("span",{className:`inline-flex items-center gap-1 px-2 py-0.5 rounded text-xs border ${n}`,children:[c.jsx(z0,{size:11})," 위험 ",t,"%"]})}function $fe(){const[e,t]=A.useState(!0),[n,r]=A.useState(""),[a,i]=A.useState(""),[o,l]=A.useState([]),[s,u]=A.useState(null),[d,f]=A.useState(""),[h,p]=A.useState(null),y=Rn(),m=()=>{(e?D6():R6({ugcType:n,moderationStatus:a})).then(w=>l(w||[])).catch(()=>l([]))};A.useEffect(()=>{m()},[e,n,a]);const b=async v=>{await lw(v,"APPROVED"),m()},g=async()=>{await lw(s.id,"REJECTED",d),u(null),f(""),m()},S=async v=>{window.confirm("삭제하시겠습니까?")&&(await z6(v),m())},x=async v=>{const w=await k6(v);p({ref:v,data:w})};return c.jsxs("div",{children:[c.jsx(Dn,{title:"UGC 모더레이션",subtitle:"리뷰 · 댓글 · 게시글 · 문의 — AI 위험도 자동 분류",actions:c.jsxs("div",{className:"flex gap-2",children:[c.jsxs(Q,{variant:e?"primary":"ghost",onClick:()=>t(!0),children:[c.jsx(uN,{size:15})," 대기 큐"]}),c.jsx(Q,{variant:e?"ghost":"primary",onClick:()=>t(!1),children:"전체"})]})}),!e&&c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[c.jsx("select",{className:"inp w-36",value:n,onChange:v=>r(v.target.value),children:Nfe.map(v=>c.jsx("option",{value:v,children:v||"전체 유형"},v))}),c.jsx("select",{className:"inp w-36",value:a,onChange:v=>i(v.target.value),children:Cfe.map(v=>c.jsx("option",{value:v,children:v||"전체 상태"},v))})]}),o.length===0?c.jsx(en,{msg:e?"검토 대기 항목이 없습니다.":"UGC가 없습니다."}):c.jsx("div",{className:"space-y-3",children:o.map(v=>c.jsx("div",{className:"bg-card border border-edge rounded-xl p-4",children:c.jsxs("div",{className:"flex items-start justify-between gap-4",children:[c.jsxs("div",{className:"flex-1 min-w-0",children:[c.jsxs("div",{className:"flex items-center gap-2 flex-wrap mb-1.5",children:[c.jsx("span",{className:"text-xs font-semibold text-brand",children:v.ugcType}),c.jsx(Cn,{status:v.moderationStatus}),c.jsx(Mfe,{risk:v.aiRisk}),v.sentiment&&c.jsx(Cn,{status:v.sentiment}),v.rating!=null&&c.jsxs("span",{className:"text-xs text-amber-400",children:["★ ",v.rating]}),v.itsmSrId&&c.jsxs("span",{className:"text-[11px] text-sky-400 flex items-center gap-0.5",children:[c.jsx(h4,{size:11})," SR #",v.itsmSrId]})]}),c.jsx("p",{className:"text-sm text-slate-200",children:v.body}),c.jsxs("div",{className:"text-[11px] text-slate-500 mt-1.5",children:[v.authorName||"익명"," · ",v.authorEmail||""," · ",v.createdAt?new Date(v.createdAt).toLocaleString("ko-KR"):"",v.targetRef&&c.jsxs(c.Fragment,{children:[" · 대상 ",v.targetRef]})]}),v.aiReason&&c.jsxs("div",{className:"text-[11px] text-amber-400/80 mt-1",children:["AI: ",v.aiReason]})]}),y&&c.jsxs("div",{className:"flex flex-col gap-2 shrink-0",children:[v.moderationStatus!=="APPROVED"&&c.jsxs(Q,{size:"sm",onClick:()=>b(v.id),children:[c.jsx(rN,{size:13})," 승인"]}),v.moderationStatus!=="REJECTED"&&c.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>{u(v),f("")},children:[c.jsx(gN,{size:13})," 반려"]}),v.ugcType==="REVIEW"&&v.targetRef&&c.jsxs(Q,{size:"sm",variant:"ghost",onClick:()=>x(v.targetRef),children:[c.jsx(gt,{size:13})," AI 요약"]}),c.jsx(Q,{size:"sm",variant:"danger",onClick:()=>S(v.id),children:c.jsx(Ht,{size:13})})]})]})},v.id))}),s&&c.jsxs(et,{title:"UGC 반려",onClose:()=>u(null),children:[c.jsx("p",{className:"text-sm text-slate-300 mb-3 line-clamp-2",children:s.body}),c.jsx("textarea",{className:"inp",placeholder:"반려 사유 (선택)",value:d,onChange:v=>f(v.target.value)}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>u(null),children:"취소"}),c.jsx(Q,{variant:"danger",onClick:g,children:"반려"})]})]}),h&&c.jsx(et,{title:`AI 리뷰 요약 — ${h.ref}`,onClose:()=>p(null),children:h.data?c.jsxs(yt,{children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(Cn,{status:h.data.sentiment}),c.jsxs("span",{className:"text-xs text-slate-400",children:["점수 ",h.data.score]})]}),c.jsx("p",{className:"text-sm text-slate-200",children:h.data.summary})]}):c.jsx("p",{className:"text-slate-500 text-sm",children:"요약 데이터가 없습니다."})})]})}const Pfe=["WEB","MOBILE","APP","KIOSK"],Rfe={WEB:P0,MOBILE:w4,APP:X5,KIOSK:j4},Dfe={name:"",channelType:"WEB",endpoint:"",active:!0};function kfe(){const[e,t]=A.useState([]),[n,r]=A.useState(null),a=Rn(),i=()=>C6().then(s=>t(s||[])).catch(()=>t([]));A.useEffect(()=>{i()},[]);const o=async()=>{n.id?await $6(n.id,n):await M6(n),r(null),i()},l=async s=>{window.confirm("삭제하시겠습니까?")&&(await P6(s),i())};return c.jsxs("div",{children:[c.jsx(Dn,{title:"채널",subtitle:"다채널 배포 타겟 — 웹 · 모바일 · 앱 · 키오스크",actions:a&&c.jsxs(Q,{onClick:()=>r({...Dfe}),children:[c.jsx(Vt,{size:16})," 채널 추가"]})}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[e.map(s=>{const u=Rfe[s.channelType]||yN;return c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4",children:[c.jsxs("div",{className:"flex items-center justify-between mb-2",children:[c.jsxs("span",{className:"font-medium flex items-center gap-2",children:[c.jsx(u,{size:16,className:"text-brand"})," ",s.name]}),c.jsx(Cn,{status:s.active?"ACTIVE":"INACTIVE"})]}),c.jsx("div",{className:"text-xs text-slate-400",children:s.channelType}),c.jsx("div",{className:"text-[11px] text-slate-500 font-mono truncate mt-1",children:s.endpoint}),a&&c.jsxs("div",{className:"flex items-center gap-3 mt-3",children:[c.jsx("button",{onClick:()=>r({...s}),className:"text-slate-400 hover:text-brand",children:c.jsx(ps,{size:14})}),c.jsx("button",{onClick:()=>l(s.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:14})})]})]},s.id)}),e.length===0&&c.jsx("div",{className:"col-span-3",children:c.jsx(en,{msg:"채널이 없습니다."})})]}),n&&c.jsxs(et,{title:n.id?"채널 편집":"채널 추가",onClose:()=>r(null),children:[c.jsxs("div",{className:"space-y-3",children:[c.jsx(Y,{label:"이름",children:c.jsx("input",{className:"inp",value:n.name,onChange:s=>r({...n,name:s.target.value})})}),c.jsx(Y,{label:"유형",children:c.jsx("select",{className:"inp",value:n.channelType,onChange:s=>r({...n,channelType:s.target.value}),children:Pfe.map(s=>c.jsx("option",{children:s},s))})}),c.jsx(Y,{label:"엔드포인트",children:c.jsx("input",{className:"inp",value:n.endpoint,onChange:s=>r({...n,endpoint:s.target.value}),placeholder:"https://..."})}),c.jsx(Y,{label:"활성",children:c.jsxs("select",{className:"inp",value:String(n.active),onChange:s=>r({...n,active:s.target.value==="true"}),children:[c.jsx("option",{value:"true",children:"활성"}),c.jsx("option",{value:"false",children:"비활성"})]})})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>r(null),children:"취소"}),c.jsx(Q,{onClick:o,children:"저장"})]})]})]})}const h2=["","VIP","REGULAR","NEW","DORMANT"],p2=["","ACTIVE","INACTIVE","BLOCKED"],zfe={memberCode:"",name:"",email:"",phone:"",segment:"NEW",status:"ACTIVE",crmCustomerId:""};function Lfe(){const[e,t]=A.useState([]),[n,r]=A.useState(""),[a,i]=A.useState(""),[o,l]=A.useState(""),[s,u]=A.useState(null),[d,f]=A.useState(null),h=Rn(),p=()=>L6({segment:n,status:a,keyword:o}).then(x=>t(x||[])).catch(()=>t([]));A.useEffect(()=>{p()},[n,a]);const y=()=>u({...zfe}),m=x=>u({id:x.id,memberCode:x.memberCode,name:x.name,email:"",phone:"",segment:x.segment,status:x.status,crmCustomerId:x.crmCustomerId||""}),b=async()=>{const x={...s};x.email||delete x.email,x.phone||delete x.phone,s.id?await U6(s.id,x):await B6(x),u(null),p()},g=async x=>{window.confirm("삭제하시겠습니까?")&&(await H6(x),p())},S=async x=>{const v=await I6(x.id);f({name:x.name,data:v})};return c.jsxs("div",{children:[c.jsx(Dn,{title:"회원",subtitle:"회원 관리 · PII 마스킹 · CRM 인사이트 연계",actions:h&&c.jsxs(Q,{onClick:y,children:[c.jsx(Vt,{size:16})," 회원 추가"]})}),c.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-4",children:[c.jsxs("div",{className:"relative",children:[c.jsx(kc,{size:14,className:"absolute left-2.5 top-2.5 text-slate-500"}),c.jsx("input",{value:o,onChange:x=>l(x.target.value),onKeyDown:x=>x.key==="Enter"&&p(),placeholder:"이름/코드 검색",className:"inp pl-8 w-52"})]}),c.jsx("select",{className:"inp w-36",value:n,onChange:x=>r(x.target.value),children:h2.map(x=>c.jsx("option",{value:x,children:x||"전체 세그먼트"},x))}),c.jsx("select",{className:"inp w-36",value:a,onChange:x=>i(x.target.value),children:p2.map(x=>c.jsx("option",{value:x,children:x||"전체 상태"},x))}),c.jsx(Q,{variant:"ghost",onClick:p,children:"검색"})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"코드"}),c.jsx("th",{className:"text-left",children:"이름"}),c.jsx("th",{className:"text-left",children:"이메일"}),c.jsx("th",{className:"text-left",children:"전화"}),c.jsx("th",{className:"text-left",children:"세그먼트"}),c.jsx("th",{className:"text-left",children:"상태"}),c.jsx("th",{className:"text-right px-4",children:"작업"})]})}),c.jsxs("tbody",{children:[e.map(x=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsx("td",{className:"py-3 px-4 font-mono text-xs text-slate-400",children:x.memberCode}),c.jsxs("td",{className:"font-medium flex items-center gap-2",children:[c.jsx(L0,{size:14,className:"text-brand"}),x.name]}),c.jsx("td",{className:"text-slate-400 font-mono text-xs",children:x.emailEnc||"—"}),c.jsx("td",{className:"text-slate-400 font-mono text-xs",children:x.phoneEnc||"—"}),c.jsx("td",{children:c.jsx(Cn,{status:x.segment})}),c.jsx("td",{children:c.jsx(Cn,{status:x.status})}),c.jsx("td",{className:"px-4",children:c.jsxs("div",{className:"flex items-center justify-end gap-3",children:[x.crmCustomerId&&c.jsx("button",{onClick:()=>S(x),title:"CRM 인사이트",className:"text-accent hover:text-accent/80",children:c.jsx(gt,{size:15})}),h&&c.jsx("button",{onClick:()=>m(x),className:"text-slate-400 hover:text-brand",children:c.jsx(ps,{size:14})}),h&&c.jsx("button",{onClick:()=>g(x.id),className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:14})})]})})]},x.id)),e.length===0&&c.jsx(en,{colSpan:7,msg:"회원이 없습니다."})]})]})}),s&&c.jsxs(et,{title:s.id?"회원 편집":"회원 추가",onClose:()=>u(null),children:[c.jsxs("div",{className:"space-y-3",children:[c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"회원 코드",children:c.jsx("input",{className:"inp",value:s.memberCode,onChange:x=>u({...s,memberCode:x.target.value})})}),c.jsx(Y,{label:"이름",children:c.jsx("input",{className:"inp",value:s.name,onChange:x=>u({...s,name:x.target.value})})})]}),c.jsx(Y,{label:"이메일",hint:s.id?"변경 시에만 입력 (빈 값은 기존 유지)":void 0,children:c.jsx("input",{className:"inp",value:s.email,onChange:x=>u({...s,email:x.target.value})})}),c.jsx(Y,{label:"전화",hint:s.id?"변경 시에만 입력 (빈 값은 기존 유지)":void 0,children:c.jsx("input",{className:"inp",value:s.phone,onChange:x=>u({...s,phone:x.target.value})})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Y,{label:"세그먼트",children:c.jsx("select",{className:"inp",value:s.segment,onChange:x=>u({...s,segment:x.target.value}),children:h2.filter(Boolean).map(x=>c.jsx("option",{children:x},x))})}),c.jsx(Y,{label:"상태",children:c.jsx("select",{className:"inp",value:s.status,onChange:x=>u({...s,status:x.target.value}),children:p2.filter(Boolean).map(x=>c.jsx("option",{children:x},x))})})]}),c.jsx(Y,{label:"CRM 고객 ID",children:c.jsx("input",{className:"inp",value:s.crmCustomerId,onChange:x=>u({...s,crmCustomerId:x.target.value})})})]}),c.jsxs("div",{className:"flex justify-end gap-2 mt-5",children:[c.jsx(Q,{variant:"ghost",onClick:()=>u(null),children:"취소"}),c.jsx(Q,{onClick:b,children:"저장"})]})]}),d&&c.jsx(et,{title:`CRM 인사이트 — ${d.name}`,onClose:()=>f(null),children:d.data?c.jsx(yt,{children:c.jsx("pre",{className:"text-xs text-slate-300 whitespace-pre-wrap",children:JSON.stringify(d.data,null,2)})}):c.jsx("p",{className:"text-slate-500 text-sm",children:"CRM 인사이트가 없습니다."})})]})}function Bfe(){const[e,t]=A.useState({}),[n,r]=A.useState([]);A.useEffect(()=>{F6().then(l=>t(l||{})).catch(()=>t({})),q6(10).then(l=>r(Array.isArray(l)?l:(l==null?void 0:l.items)||[])).catch(()=>r([]))},[]);const a=e.conversionRate!=null?Number(e.conversionRate):e.totalViews?(e.totalConversions||0)/e.totalViews*100:0,i={labels:n.slice(0,8).map(l=>{var s;return(s=l.title||l.contentTitle||`#${l.contentId??l.id}`)==null?void 0:s.slice(0,14)}),series:[{name:"조회수",data:n.slice(0,8).map(l=>Number(l.views??l.totalViews??0))}]},o={labels:n.slice(0,8).map(l=>{var s;return(s=l.title||l.contentTitle||`#${l.contentId??l.id}`)==null?void 0:s.slice(0,14)}),series:[{name:"전환",data:n.slice(0,8).map(l=>Number(l.conversions??l.totalConversions??0))}]};return c.jsxs("div",{children:[c.jsxs("div",{className:"mb-6",children:[c.jsx("h1",{className:"text-xl font-bold",children:"콘텐츠 분석"}),c.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"조회 · 체류 · 전환 · 인기 콘텐츠 성과 (Recharts)"})]}),c.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6",children:[c.jsxs(yt,{children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[c.jsx(zd,{size:13})," 총 조회수"]}),c.jsx("div",{className:"text-3xl font-bold mt-2 text-brand",children:Number(e.totalViews??0).toLocaleString()})]}),c.jsxs(yt,{children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[c.jsx(kv,{size:13})," 총 전환"]}),c.jsx("div",{className:"text-3xl font-bold mt-2 text-accent",children:Number(e.totalConversions??0).toLocaleString()})]}),c.jsxs(yt,{children:[c.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-slate-400",children:[c.jsx(v4,{size:13})," 전환율"]}),c.jsxs("div",{className:"text-3xl font-bold mt-2 text-amber-400",children:[a.toFixed(1),"%"]})]})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[c.jsx(yt,{title:"인기 콘텐츠 조회수",icon:c.jsx(nN,{size:15}),children:n.length?c.jsx(gb,{type:"BAR",data:i}):c.jsx(en,{msg:"데이터가 없습니다."})}),c.jsx(yt,{title:"콘텐츠별 전환",icon:c.jsx(kv,{size:15}),children:n.length?c.jsx(gb,{type:"BAR",data:o}):c.jsx(en,{msg:"데이터가 없습니다."})})]}),c.jsx(yt,{title:"인기 콘텐츠 상세",icon:c.jsx(zd,{size:15}),className:"mt-4",children:n.length===0?c.jsx(en,{msg:"데이터가 없습니다."}):c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-2",children:"제목"}),c.jsx("th",{className:"text-left",children:"유형"}),c.jsx("th",{className:"text-right",children:"조회"}),c.jsx("th",{className:"text-right",children:"전환"})]})}),c.jsx("tbody",{children:n.map((l,s)=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsx("td",{className:"py-2 font-medium",children:l.title||l.contentTitle||`#${l.contentId??l.id}`}),c.jsx("td",{className:"text-slate-400",children:l.contentType||"-"}),c.jsx("td",{className:"text-right text-slate-300",children:Number(l.views??l.totalViews??0).toLocaleString()}),c.jsx("td",{className:"text-right text-slate-300",children:Number(l.conversions??l.totalConversions??0).toLocaleString()})]},l.id??l.contentId??s))})]})})]})}function Ufe(){const[e,t]=A.useState(null);return A.useEffect(()=>{qN().then(n=>t(!!(n!=null&&n.ollamaAvailable))).catch(()=>t(!1))},[]),c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("div",{children:[c.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[c.jsx(gt,{className:"text-accent",size:20})," AI 도구"]}),c.jsx("p",{className:"text-sm text-slate-400 mt-0.5",children:"콘텐츠 초안 · SEO · 번역 · 모더레이션 · 리뷰 요약 · 자연어 검색 (Ollama 온프레미스)"})]}),c.jsxs("span",{className:`flex items-center gap-1.5 text-xs px-3 py-1.5 rounded-lg border ${e?"text-accent border-accent/30 bg-accent/10":"text-slate-400 border-edge bg-card"}`,children:[c.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${e?"bg-accent":"bg-slate-500"}`}),"Ollama ",e===null?"확인 중":e?"온라인":"오프라인 (Java 폴백)"]})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-5",children:[c.jsx(Ife,{}),c.jsx(Hfe,{}),c.jsx(qfe,{}),c.jsx(Ffe,{}),c.jsx(Gfe,{}),c.jsx(Vfe,{})]})]})}function Ife(){const[e,t]=A.useState("post"),[n,r]=A.useState(""),[a,i]=A.useState("professional"),[o,l]=A.useState(""),[s,u]=A.useState(!1),d=async()=>{u(!0);try{const f=await FN(e,n,a);l((f==null?void 0:f.draft)||"")}finally{u(!1)}};return c.jsxs(yt,{title:"콘텐츠 초안 생성",icon:c.jsx(dp,{size:15}),children:[c.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-2",children:[c.jsx(Y,{label:"종류",children:c.jsx("select",{className:"inp",value:e,onChange:f=>t(f.target.value),children:["post","page","product","banner"].map(f=>c.jsx("option",{children:f},f))})}),c.jsx(Y,{label:"톤",children:c.jsx("select",{className:"inp",value:a,onChange:f=>i(f.target.value),children:["professional","casual","marketing","formal"].map(f=>c.jsx("option",{children:f},f))})})]}),c.jsx(Y,{label:"주제",children:c.jsx("input",{className:"inp",value:n,onChange:f=>r(f.target.value),placeholder:"예: 봄 시즌 프로모션"})}),c.jsxs(Q,{onClick:d,disabled:s,size:"sm",children:[c.jsx(gt,{size:13})," ",s?"생성 중…":"초안 생성"]}),o&&c.jsx("pre",{className:"mt-3 text-xs text-slate-300 bg-ink border border-edge rounded p-3 whitespace-pre-wrap max-h-48 overflow-auto",children:o})]})}function Hfe(){const[e,t]=A.useState(""),[n,r]=A.useState(""),[a,i]=A.useState(null),[o,l]=A.useState(!1),s=async()=>{l(!0);try{i(await GN(e,n))}finally{l(!1)}};return c.jsxs(yt,{title:"SEO 최적화 제안",icon:c.jsx(kc,{size:15}),children:[c.jsx(Y,{label:"제목",children:c.jsx("input",{className:"inp",value:e,onChange:u=>t(u.target.value)})}),c.jsx(Y,{label:"본문",children:c.jsx("textarea",{className:"inp",value:n,onChange:u=>r(u.target.value)})}),c.jsxs(Q,{onClick:s,disabled:o,size:"sm",children:[c.jsx(gt,{size:13})," ",o?"분석 중…":"제안 생성"]}),a&&c.jsxs("div",{className:"mt-3 text-sm bg-ink border border-edge rounded p-3 space-y-1.5",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-slate-500 text-xs",children:"메타:"})," ",a.metaDescription]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-slate-500 text-xs",children:"키워드:"})," ",(a.keywords||[]).join(", ")]}),c.jsxs("div",{children:[c.jsx("span",{className:"text-slate-500 text-xs",children:"점수:"})," ",c.jsx("span",{className:"text-accent",children:a.score})]})]})]})}function qfe(){const[e,t]=A.useState(""),[n,r]=A.useState("en"),[a,i]=A.useState(""),[o,l]=A.useState(!1),s=async()=>{l(!0);try{const u=await G6(e,n);i((u==null?void 0:u.translated)||"")}finally{l(!1)}};return c.jsxs(yt,{title:"다국어 번역",icon:c.jsx(R0,{size:15}),children:[c.jsx(Y,{label:"원문",children:c.jsx("textarea",{className:"inp",value:e,onChange:u=>t(u.target.value)})}),c.jsx(Y,{label:"대상 로케일",children:c.jsx("input",{className:"inp",value:n,onChange:u=>r(u.target.value)})}),c.jsxs(Q,{onClick:s,disabled:o,size:"sm",children:[c.jsx(gt,{size:13})," ",o?"번역 중…":"번역"]}),a&&c.jsx("div",{className:"mt-3 text-sm text-slate-200 bg-ink border border-edge rounded p-3 whitespace-pre-wrap",children:a})]})}function Ffe(){const[e,t]=A.useState(""),[n,r]=A.useState([]),[a,i]=A.useState(!1),o=async()=>{i(!0);try{const l=await K6(e);r((l==null?void 0:l.keywords)||[])}finally{i(!1)}};return c.jsxs(yt,{title:"자연어 콘텐츠 검색",icon:c.jsx(zv,{size:15}),children:[c.jsx(Y,{label:"자연어 질의",children:c.jsx("input",{className:"inp",value:e,onChange:l=>t(l.target.value),placeholder:"예: 환불 정책 관련 페이지",onKeyDown:l=>l.key==="Enter"&&o()})}),c.jsxs(Q,{onClick:o,disabled:a,size:"sm",children:[c.jsx(gt,{size:13})," ",a?"추출 중…":"키워드 추출"]}),n.length>0&&c.jsx("div",{className:"mt-3 flex flex-wrap gap-1.5",children:n.map((l,s)=>c.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:l},s))})]})}function Gfe(){const[e,t]=A.useState(""),[n,r]=A.useState(null),[a,i]=A.useState(!1),o=async()=>{i(!0);try{r(await Y6(e))}finally{i(!1)}};return c.jsxs(yt,{title:"UGC 모더레이션 판정",icon:c.jsx(z0,{size:15}),children:[c.jsx(Y,{label:"검사 텍스트",children:c.jsx("textarea",{className:"inp",value:e,onChange:l=>t(l.target.value)})}),c.jsxs(Q,{onClick:o,disabled:a,size:"sm",children:[c.jsx(gt,{size:13})," ",a?"판정 중…":"위험도 판정"]}),n&&c.jsxs("div",{className:"mt-3 text-sm bg-ink border border-edge rounded p-3 flex items-center gap-3",children:[c.jsx(Cn,{status:n.decision==="APPROVE"?"APPROVED":n.decision==="REJECT"?"REJECTED":"PENDING"}),c.jsxs("span",{className:"text-slate-400 text-xs",children:["위험 ",Math.round((n.risk??0)*100),"%"]}),c.jsx("span",{className:"text-slate-400 text-xs",children:n.reason})]})]})}function Vfe(){const[e,t]=A.useState(""),[n,r]=A.useState(null),[a,i]=A.useState(!1),o=async()=>{i(!0);try{r(await V6(e.split(`
`).map(l=>l.trim()).filter(Boolean)))}finally{i(!1)}};return c.jsxs(yt,{title:"리뷰 요약·감성 분석",icon:c.jsx(y4,{size:15}),children:[c.jsx(Y,{label:"리뷰 (줄바꿈 구분)",children:c.jsx("textarea",{className:"inp",value:e,onChange:l=>t(l.target.value),placeholder:`리뷰 1
리뷰 2`})}),c.jsxs(Q,{onClick:o,disabled:a,size:"sm",children:[c.jsx(gt,{size:13})," ",a?"요약 중…":"요약 생성"]}),n&&c.jsxs("div",{className:"mt-3 text-sm bg-ink border border-edge rounded p-3 space-y-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx(Cn,{status:n.sentiment}),c.jsxs("span",{className:"text-slate-400 text-xs",children:["점수 ",n.score]})]}),c.jsx("p",{className:"text-slate-200",children:n.summary})]})]})}function m2(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?"권한이 없습니다 (SuperAdmin 전용).":/409|exist|이미/i.test(t)?"이미 존재하는 사용자명입니다.":/last|마지막|423/i.test(t)?"마지막 SuperAdmin은 강등/삭제/비활성화할 수 없습니다.":/404|not found/i.test(t)?"대상 사용자를 찾을 수 없습니다.":"요청을 처리하지 못했습니다. 잠시 후 다시 시도하세요."}function Kfe(){const[e,t]=A.useState([]),[n,r]=A.useState({username:"",password:"",displayName:"",role:"AUTHOR"}),[a,i]=A.useState(!1),[o,l]=A.useState(""),s=()=>X6().then(m=>{var b;t(((b=m.data)==null?void 0:b.data)||[]),l("")}).catch(m=>l(m2(m)));A.useEffect(()=>{s()},[]);const u=async m=>{try{await m(),l(""),await s()}catch(b){l(m2(b))}},d=async()=>{if(!n.username||!n.password){l("사용자명과 비밀번호를 입력하세요.");return}await u(async()=>{await W6(n),r({username:"",password:"",displayName:"",role:"AUTHOR"}),i(!1)})},f=(m,b)=>u(()=>Q6(m.id,b)),h=m=>u(()=>Z6(m.id,!m.active)),p=m=>{const b=window.prompt(`'${m.username}' 의 새 비밀번호`);b&&u(()=>J6(m.id,b))},y=m=>{window.confirm(`'${m.username}' 삭제?`)&&u(()=>eB(m.id))};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex items-center justify-between mb-6",children:[c.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[c.jsx(vN,{className:"text-brand",size:20})," 사용자 / 권한"]}),c.jsxs("button",{onClick:()=>i(!a),className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-ink text-sm font-semibold",children:[c.jsx(Vt,{size:16})," 새 사용자"]})]}),o&&c.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:o}),a&&c.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-6 grid grid-cols-5 gap-3",children:[c.jsx("input",{placeholder:"사용자명",value:n.username,onChange:m=>r({...n,username:m.target.value}),className:"inp"}),c.jsx("input",{placeholder:"표시 이름",value:n.displayName,onChange:m=>r({...n,displayName:m.target.value}),className:"inp"}),c.jsx("input",{placeholder:"비밀번호",type:"password",value:n.password,onChange:m=>r({...n,password:m.target.value}),className:"inp"}),c.jsx("select",{value:n.role,onChange:m=>r({...n,role:m.target.value}),className:"inp",children:FS.map(m=>c.jsx("option",{value:m,children:m},m))}),c.jsx("button",{onClick:d,className:"px-4 rounded-lg bg-brand text-ink text-sm font-semibold",children:"저장"})]}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"ID"}),c.jsx("th",{className:"text-left",children:"사용자명"}),c.jsx("th",{className:"text-left",children:"표시 이름"}),c.jsx("th",{className:"text-left",children:"역할"}),c.jsx("th",{className:"text-left",children:"상태"}),c.jsx("th",{className:"text-left",children:"생성일"}),c.jsx("th",{className:"text-right px-4",children:"작업"})]})}),c.jsxs("tbody",{children:[e.map(m=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsx("td",{className:"py-3 px-4 text-slate-500",children:m.id}),c.jsx("td",{className:"font-medium",children:m.username}),c.jsx("td",{className:"text-slate-400",children:m.displayName||"-"}),c.jsx("td",{children:c.jsx("select",{value:m.role,onChange:b=>f(m,b.target.value),className:"px-2 py-1 rounded-md bg-ink border border-edge text-xs focus:border-brand outline-none",children:FS.map(b=>c.jsx("option",{value:b,children:b},b))})}),c.jsx("td",{children:c.jsx("span",{className:`inline-block px-2 py-0.5 rounded-md text-xs font-medium ${m.active?"bg-accent/15 text-accent":"bg-slate-500/15 text-slate-400"}`,children:m.active?"활성":"비활성"})}),c.jsx("td",{className:"text-slate-500 text-xs",children:m.createdAt?new Date(m.createdAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"px-4",children:c.jsxs("div",{className:"flex items-center justify-end gap-3",children:[c.jsx("button",{onClick:()=>h(m),title:m.active?"비활성화":"활성화",className:"text-slate-400 hover:text-brand",children:c.jsx(g4,{size:16})}),c.jsx("button",{onClick:()=>p(m),title:"비밀번호 재설정",className:"text-slate-400 hover:text-brand",children:c.jsx(f4,{size:16})}),c.jsx("button",{onClick:()=>y(m),title:"삭제",className:"text-rose-400 hover:text-rose-300",children:c.jsx(Ht,{size:16})})]})})]},m.id)),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"py-6 text-center text-slate-500",children:"사용자가 없습니다."})})]})]})})]})}function Yfe(){const[e,t]=A.useState([]),[n,r]=A.useState(""),[a,i]=A.useState(""),[o,l]=A.useState(""),s=()=>tB(n,a,200).then(u=>{var d;t(((d=u.data)==null?void 0:d.data)||[]),l("")}).catch(u=>{var d;return l(((d=u==null?void 0:u.response)==null?void 0:d.status)===403?"권한이 없습니다 (Editor+).":"감사 로그를 불러오지 못했습니다.")});return A.useEffect(()=>{s()},[]),c.jsxs("div",{children:[c.jsx("div",{className:"flex items-center justify-between mb-6",children:c.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[c.jsx(pN,{className:"text-brand",size:20})," 감사 로그"]})}),c.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[c.jsx("input",{placeholder:"action 필터",value:n,onChange:u=>r(u.target.value),onKeyDown:u=>u.key==="Enter"&&s(),className:"inp w-44"}),c.jsx("input",{placeholder:"actor 필터",value:a,onChange:u=>i(u.target.value),onKeyDown:u=>u.key==="Enter"&&s(),className:"inp w-44"}),c.jsxs("button",{onClick:s,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm hover:border-brand",children:[c.jsx(kc,{size:15})," 검색"]})]}),o&&c.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:o}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"시각"}),c.jsx("th",{className:"text-left",children:"행위자"}),c.jsx("th",{className:"text-left",children:"액션"}),c.jsx("th",{className:"text-left",children:"대상"}),c.jsx("th",{className:"text-left",children:"상세"})]})}),c.jsxs("tbody",{children:[e.map(u=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsx("td",{className:"py-3 px-4 text-slate-500 text-xs whitespace-nowrap",children:u.createdAt?new Date(u.createdAt).toLocaleString("ko-KR"):"-"}),c.jsx("td",{className:"text-slate-300",children:u.actor}),c.jsx("td",{children:c.jsx("span",{className:"px-2 py-0.5 rounded bg-brand/15 text-brand text-xs border border-brand/30",children:u.action})}),c.jsx("td",{className:"text-slate-400 font-mono text-xs",children:u.target||"-"}),c.jsx("td",{className:"text-slate-400 text-xs truncate max-w-[360px]",children:u.detail||"-"})]},u.id)),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:5,className:"py-6 text-center text-slate-500",children:"감사 로그가 없습니다."})})]})]})})]})}function Xfe(){const[e,t]=A.useState([]),[n,r]=A.useState({}),[a,i]=A.useState(""),[o,l]=A.useState(""),s=E4(),u=()=>nB().then(f=>{var y;const h=((y=f.data)==null?void 0:y.data)||[],p=Array.isArray(h)?h:Object.entries(h).map(([m,b])=>({key:m,value:String(b)}));t(p),l("")}).catch(f=>{var h;return l(((h=f==null?void 0:f.response)==null?void 0:h.status)===403?"권한이 없습니다 (Editor+).":"시스템 설정을 불러오지 못했습니다.")});A.useEffect(()=>{u()},[]);const d=async f=>{var h;i(""),l("");try{await rB(f,n[f]??""),i(`'${f}' 저장됨`),u()}catch(p){l(((h=p==null?void 0:p.response)==null?void 0:h.status)===403?"SuperAdmin 권한이 필요합니다.":"저장 실패")}};return c.jsxs("div",{children:[c.jsx("div",{className:"flex items-center justify-between mb-6",children:c.jsxs("h1",{className:"text-xl font-bold flex items-center gap-2",children:[c.jsx(mN,{className:"text-brand",size:20})," 시스템 설정"]})}),a&&c.jsx("div",{className:"bg-brand/10 border border-brand/30 text-brand text-sm rounded-lg px-4 py-2.5 mb-4",children:a}),o&&c.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:o}),!s&&c.jsx("div",{className:"bg-amber-500/10 border border-amber-500/30 text-amber-300 text-sm rounded-lg px-4 py-2.5 mb-4",children:"조회 전용입니다. 설정 변경은 SuperAdmin 권한이 필요합니다."}),c.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:c.jsxs("table",{className:"w-full text-sm",children:[c.jsx("thead",{className:"text-slate-500 text-xs bg-panel",children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-left py-3 px-4",children:"키"}),c.jsx("th",{className:"text-left",children:"값"}),c.jsx("th",{className:"text-right px-4",children:"작업"})]})}),c.jsxs("tbody",{children:[e.map(f=>c.jsxs("tr",{className:"border-t border-edge/50",children:[c.jsxs("td",{className:"py-3 px-4 font-mono text-xs text-brand align-top",children:[f.key,f.description&&c.jsx("div",{className:"text-[11px] text-slate-500 font-sans mt-0.5",children:f.description})]}),c.jsx("td",{className:"py-3",children:c.jsx("input",{className:"inp",defaultValue:f.value,disabled:!s,onChange:h=>r({...n,[f.key]:h.target.value})})}),c.jsx("td",{className:"px-4 text-right align-top",children:s&&c.jsxs("button",{onClick:()=>d(f.key),className:"inline-flex items-center gap-1.5 px-3 py-1.5 rounded-lg bg-brand text-ink text-xs font-semibold",children:[c.jsx(hN,{size:13})," 저장"]})})]},f.key)),e.length===0&&c.jsx("tr",{children:c.jsx("td",{colSpan:3,className:"py-6 text-center text-slate-500",children:"설정 항목이 없습니다."})})]})]})})]})}const Wfe=new q5;function Qfe(){return c.jsx(G5,{client:Wfe,children:c.jsx(o5,{children:c.jsxs(kk,{children:[c.jsx(We,{path:"/login",element:c.jsx(oB,{})}),c.jsxs(We,{element:c.jsx(iB,{}),children:[c.jsx(We,{path:"/dashboard",element:c.jsx(nfe,{})}),c.jsx(We,{path:"/contents",element:c.jsx(ife,{})}),c.jsx(We,{path:"/contents/new",element:c.jsx(s2,{})}),c.jsx(We,{path:"/contents/:id",element:c.jsx(s2,{})}),c.jsx(We,{path:"/media",element:c.jsx(dfe,{})}),c.jsx(We,{path:"/products",element:c.jsx(mfe,{})}),c.jsx(We,{path:"/banners",element:c.jsx(vfe,{})}),c.jsx(We,{path:"/menus",element:c.jsx(bfe,{})}),c.jsx(We,{path:"/themes",element:c.jsx(Sfe,{})}),c.jsx(We,{path:"/i18n",element:c.jsx(wfe,{})}),c.jsx(We,{path:"/seo",element:c.jsx(Afe,{})}),c.jsx(We,{path:"/forms",element:c.jsx(Tfe,{})}),c.jsx(We,{path:"/ugc",element:c.jsx($fe,{})}),c.jsx(We,{path:"/channels",element:c.jsx(kfe,{})}),c.jsx(We,{path:"/members",element:c.jsx(Lfe,{})}),c.jsx(We,{path:"/analytics",element:c.jsx(Bfe,{})}),c.jsx(We,{path:"/ai-tools",element:c.jsx(Ufe,{})}),c.jsx(We,{path:"/admin/users",element:c.jsx(ay,{min:"SUPERADMIN",children:c.jsx(Kfe,{})})}),c.jsx(We,{path:"/admin/audit",element:c.jsx(ay,{min:"EDITOR",children:c.jsx(Yfe,{})})}),c.jsx(We,{path:"/admin/settings",element:c.jsx(ay,{min:"EDITOR",children:c.jsx(Xfe,{})})})]}),c.jsx(We,{path:"*",element:c.jsx(HT,{to:"/dashboard",replace:!0})})]})})})}R3.createRoot(document.getElementById("root")).render(c.jsx(T.StrictMode,{children:c.jsx(Qfe,{})}));
