var jk=Object.defineProperty;var _k=(e,t,n)=>t in e?jk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Pp=(e,t,n)=>_k(e,typeof t!="symbol"?t+"":t,n);function Ok(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const l in r)if(l!=="default"&&!(l in e)){const o=Object.getOwnPropertyDescriptor(r,l);o&&Object.defineProperty(e,l,o.get?o:{enumerable:!0,get:()=>r[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const u of o.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function zr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Rp={exports:{}},js={};/**
 * @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 BS;function Ak(){if(BS)return js;BS=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,l,o){var u=null;if(o!==void 0&&(u=""+o),l.key!==void 0&&(u=""+l.key),"key"in l){o={};for(var f in l)f!=="key"&&(o[f]=l[f])}else o=l;return l=o.ref,{$$typeof:e,type:r,key:u,ref:l!==void 0?l:null,props:o}}return js.Fragment=t,js.jsx=n,js.jsxs=n,js}var IS;function Nk(){return IS||(IS=1,Rp.exports=Ak()),Rp.exports}var m=Nk(),zp={exports:{}},Ee={};/**
 * @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 $S;function Ek(){if($S)return Ee;$S=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),b=Symbol.iterator;function w(M){return M===null||typeof M!="object"?null:(M=b&&M[b]||M["@@iterator"],typeof M=="function"?M:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,_={};function A(M,q,ie){this.props=M,this.context=q,this.refs=_,this.updater=ie||S}A.prototype.isReactComponent={},A.prototype.setState=function(M,q){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,q,"setState")},A.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function N(){}N.prototype=A.prototype;function C(M,q,ie){this.props=M,this.context=q,this.refs=_,this.updater=ie||S}var D=C.prototype=new N;D.constructor=C,j(D,A.prototype),D.isPureReactComponent=!0;var k=Array.isArray;function T(){}var P={H:null,A:null,T:null,S:null},$=Object.prototype.hasOwnProperty;function X(M,q,ie){var ue=ie.ref;return{$$typeof:e,type:M,key:q,ref:ue!==void 0?ue:null,props:ie}}function Z(M,q){return X(M.type,q,M.props)}function te(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function R(M){var q={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(ie){return q[ie]})}var ce=/\/+/g;function le(M,q){return typeof M=="object"&&M!==null&&M.key!=null?R(""+M.key):q.toString(36)}function fe(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(T,T):(M.status="pending",M.then(function(q){M.status==="pending"&&(M.status="fulfilled",M.value=q)},function(q){M.status==="pending"&&(M.status="rejected",M.reason=q)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function U(M,q,ie,ue,me){var ge=typeof M;(ge==="undefined"||ge==="boolean")&&(M=null);var Se=!1;if(M===null)Se=!0;else switch(ge){case"bigint":case"string":case"number":Se=!0;break;case"object":switch(M.$$typeof){case e:case t:Se=!0;break;case p:return Se=M._init,U(Se(M._payload),q,ie,ue,me)}}if(Se)return me=me(M),Se=ue===""?"."+le(M,0):ue,k(me)?(ie="",Se!=null&&(ie=Se.replace(ce,"$&/")+"/"),U(me,q,ie,"",function(xe){return xe})):me!=null&&(te(me)&&(me=Z(me,ie+(me.key==null||M&&M.key===me.key?"":(""+me.key).replace(ce,"$&/")+"/")+Se)),q.push(me)),1;Se=0;var Ie=ue===""?".":ue+":";if(k(M))for(var J=0;J<M.length;J++)ue=M[J],ge=Ie+le(ue,J),Se+=U(ue,q,ie,ge,me);else if(J=w(M),typeof J=="function")for(M=J.call(M),J=0;!(ue=M.next()).done;)ue=ue.value,ge=Ie+le(ue,J++),Se+=U(ue,q,ie,ge,me);else if(ge==="object"){if(typeof M.then=="function")return U(fe(M),q,ie,ue,me);throw q=String(M),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Se}function Q(M,q,ie){if(M==null)return M;var ue=[],me=0;return U(M,ue,"","",function(ge){return q.call(ie,ge,me++)}),ue}function se(M){if(M._status===-1){var q=M._result;q=q(),q.then(function(ie){(M._status===0||M._status===-1)&&(M._status=1,M._result=ie)},function(ie){(M._status===0||M._status===-1)&&(M._status=2,M._result=ie)}),M._status===-1&&(M._status=0,M._result=q)}if(M._status===1)return M._result.default;throw M._result}var de=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var q=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(q))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)},B={map:Q,forEach:function(M,q,ie){Q(M,function(){q.apply(this,arguments)},ie)},count:function(M){var q=0;return Q(M,function(){q++}),q},toArray:function(M){return Q(M,function(q){return q})||[]},only:function(M){if(!te(M))throw Error("React.Children.only expected to receive a single React element child.");return M}};return Ee.Activity=y,Ee.Children=B,Ee.Component=A,Ee.Fragment=n,Ee.Profiler=l,Ee.PureComponent=C,Ee.StrictMode=r,Ee.Suspense=d,Ee.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Ee.__COMPILER_RUNTIME={__proto__:null,c:function(M){return P.H.useMemoCache(M)}},Ee.cache=function(M){return function(){return M.apply(null,arguments)}},Ee.cacheSignal=function(){return null},Ee.cloneElement=function(M,q,ie){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var ue=j({},M.props),me=M.key;if(q!=null)for(ge in q.key!==void 0&&(me=""+q.key),q)!$.call(q,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&q.ref===void 0||(ue[ge]=q[ge]);var ge=arguments.length-2;if(ge===1)ue.children=ie;else if(1<ge){for(var Se=Array(ge),Ie=0;Ie<ge;Ie++)Se[Ie]=arguments[Ie+2];ue.children=Se}return X(M.type,me,ue)},Ee.createContext=function(M){return M={$$typeof:u,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:o,_context:M},M},Ee.createElement=function(M,q,ie){var ue,me={},ge=null;if(q!=null)for(ue in q.key!==void 0&&(ge=""+q.key),q)$.call(q,ue)&&ue!=="key"&&ue!=="__self"&&ue!=="__source"&&(me[ue]=q[ue]);var Se=arguments.length-2;if(Se===1)me.children=ie;else if(1<Se){for(var Ie=Array(Se),J=0;J<Se;J++)Ie[J]=arguments[J+2];me.children=Ie}if(M&&M.defaultProps)for(ue in Se=M.defaultProps,Se)me[ue]===void 0&&(me[ue]=Se[ue]);return X(M,ge,me)},Ee.createRef=function(){return{current:null}},Ee.forwardRef=function(M){return{$$typeof:f,render:M}},Ee.isValidElement=te,Ee.lazy=function(M){return{$$typeof:p,_payload:{_status:-1,_result:M},_init:se}},Ee.memo=function(M,q){return{$$typeof:h,type:M,compare:q===void 0?null:q}},Ee.startTransition=function(M){var q=P.T,ie={};P.T=ie;try{var ue=M(),me=P.S;me!==null&&me(ie,ue),typeof ue=="object"&&ue!==null&&typeof ue.then=="function"&&ue.then(T,de)}catch(ge){de(ge)}finally{q!==null&&ie.types!==null&&(q.types=ie.types),P.T=q}},Ee.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Ee.use=function(M){return P.H.use(M)},Ee.useActionState=function(M,q,ie){return P.H.useActionState(M,q,ie)},Ee.useCallback=function(M,q){return P.H.useCallback(M,q)},Ee.useContext=function(M){return P.H.useContext(M)},Ee.useDebugValue=function(){},Ee.useDeferredValue=function(M,q){return P.H.useDeferredValue(M,q)},Ee.useEffect=function(M,q){return P.H.useEffect(M,q)},Ee.useEffectEvent=function(M){return P.H.useEffectEvent(M)},Ee.useId=function(){return P.H.useId()},Ee.useImperativeHandle=function(M,q,ie){return P.H.useImperativeHandle(M,q,ie)},Ee.useInsertionEffect=function(M,q){return P.H.useInsertionEffect(M,q)},Ee.useLayoutEffect=function(M,q){return P.H.useLayoutEffect(M,q)},Ee.useMemo=function(M,q){return P.H.useMemo(M,q)},Ee.useOptimistic=function(M,q){return P.H.useOptimistic(M,q)},Ee.useReducer=function(M,q,ie){return P.H.useReducer(M,q,ie)},Ee.useRef=function(M){return P.H.useRef(M)},Ee.useState=function(M){return P.H.useState(M)},Ee.useSyncExternalStore=function(M,q,ie){return P.H.useSyncExternalStore(M,q,ie)},Ee.useTransition=function(){return P.H.useTransition()},Ee.version="19.2.3",Ee}var US;function vo(){return US||(US=1,zp.exports=Ek()),zp.exports}var x=vo();const xN=zr(x),Ck=Ok({__proto__:null,default:xN},[x]);var Lp={exports:{}},_s={},Bp={exports:{}},Ip={};/**
 * @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.
 */var qS;function Tk(){return qS||(qS=1,(function(e){function t(U,Q){var se=U.length;U.push(Q);e:for(;0<se;){var de=se-1>>>1,B=U[de];if(0<l(B,Q))U[de]=Q,U[se]=B,se=de;else break e}}function n(U){return U.length===0?null:U[0]}function r(U){if(U.length===0)return null;var Q=U[0],se=U.pop();if(se!==Q){U[0]=se;e:for(var de=0,B=U.length,M=B>>>1;de<M;){var q=2*(de+1)-1,ie=U[q],ue=q+1,me=U[ue];if(0>l(ie,se))ue<B&&0>l(me,ie)?(U[de]=me,U[ue]=se,de=ue):(U[de]=ie,U[q]=se,de=q);else if(ue<B&&0>l(me,se))U[de]=me,U[ue]=se,de=ue;else break e}}return Q}function l(U,Q){var se=U.sortIndex-Q.sortIndex;return se!==0?se:U.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var d=[],h=[],p=1,y=null,b=3,w=!1,S=!1,j=!1,_=!1,A=typeof setTimeout=="function"?setTimeout:null,N=typeof clearTimeout=="function"?clearTimeout:null,C=typeof setImmediate<"u"?setImmediate:null;function D(U){for(var Q=n(h);Q!==null;){if(Q.callback===null)r(h);else if(Q.startTime<=U)r(h),Q.sortIndex=Q.expirationTime,t(d,Q);else break;Q=n(h)}}function k(U){if(j=!1,D(U),!S)if(n(d)!==null)S=!0,T||(T=!0,R());else{var Q=n(h);Q!==null&&fe(k,Q.startTime-U)}}var T=!1,P=-1,$=5,X=-1;function Z(){return _?!0:!(e.unstable_now()-X<$)}function te(){if(_=!1,T){var U=e.unstable_now();X=U;var Q=!0;try{e:{S=!1,j&&(j=!1,N(P),P=-1),w=!0;var se=b;try{t:{for(D(U),y=n(d);y!==null&&!(y.expirationTime>U&&Z());){var de=y.callback;if(typeof de=="function"){y.callback=null,b=y.priorityLevel;var B=de(y.expirationTime<=U);if(U=e.unstable_now(),typeof B=="function"){y.callback=B,D(U),Q=!0;break t}y===n(d)&&r(d),D(U)}else r(d);y=n(d)}if(y!==null)Q=!0;else{var M=n(h);M!==null&&fe(k,M.startTime-U),Q=!1}}break e}finally{y=null,b=se,w=!1}Q=void 0}}finally{Q?R():T=!1}}}var R;if(typeof C=="function")R=function(){C(te)};else if(typeof MessageChannel<"u"){var ce=new MessageChannel,le=ce.port2;ce.port1.onmessage=te,R=function(){le.postMessage(null)}}else R=function(){A(te,0)};function fe(U,Q){P=A(function(){U(e.unstable_now())},Q)}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(U){U.callback=null},e.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):$=0<U?Math.floor(1e3/U):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(U){switch(b){case 1:case 2:case 3:var Q=3;break;default:Q=b}var se=b;b=Q;try{return U()}finally{b=se}},e.unstable_requestPaint=function(){_=!0},e.unstable_runWithPriority=function(U,Q){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var se=b;b=U;try{return Q()}finally{b=se}},e.unstable_scheduleCallback=function(U,Q,se){var de=e.unstable_now();switch(typeof se=="object"&&se!==null?(se=se.delay,se=typeof se=="number"&&0<se?de+se:de):se=de,U){case 1:var B=-1;break;case 2:B=250;break;case 5:B=1073741823;break;case 4:B=1e4;break;default:B=5e3}return B=se+B,U={id:p++,callback:Q,priorityLevel:U,startTime:se,expirationTime:B,sortIndex:-1},se>de?(U.sortIndex=se,t(h,U),n(d)===null&&U===n(h)&&(j?(N(P),P=-1):j=!0,fe(k,se-de))):(U.sortIndex=B,t(d,U),S||w||(S=!0,T||(T=!0,R()))),U},e.unstable_shouldYield=Z,e.unstable_wrapCallback=function(U){var Q=b;return function(){var se=b;b=Q;try{return U.apply(this,arguments)}finally{b=se}}}})(Ip)),Ip}var HS;function Mk(){return HS||(HS=1,Bp.exports=Tk()),Bp.exports}var $p={exports:{}},an={};/**
 * @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 FS;function Dk(){if(FS)return an;FS=1;var e=vo();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},l=Symbol.for("react.portal");function o(d,h,p){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:y==null?null:""+y,children:d,containerInfo:h,implementation:p}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return an.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,an.createPortal=function(d,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return o(d,h,null,p)},an.flushSync=function(d){var h=u.T,p=r.p;try{if(u.T=null,r.p=2,d)return d()}finally{u.T=h,r.p=p,r.d.f()}},an.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,r.d.C(d,h))},an.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},an.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin),b=typeof h.integrity=="string"?h.integrity:void 0,w=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?r.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:y,integrity:b,fetchPriority:w}):p==="script"&&r.d.X(d,{crossOrigin:y,integrity:b,fetchPriority:w,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},an.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=f(h.as,h.crossOrigin);r.d.M(d,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&r.d.M(d)},an.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,y=f(p,h.crossOrigin);r.d.L(d,p,{crossOrigin:y,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},an.preloadModule=function(d,h){if(typeof d=="string")if(h){var p=f(h.as,h.crossOrigin);r.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else r.d.m(d)},an.requestFormReset=function(d){r.d.r(d)},an.unstable_batchedUpdates=function(d,h){return d(h)},an.useFormState=function(d,h,p){return u.H.useFormState(d,h,p)},an.useFormStatus=function(){return u.H.useHostTransitionStatus()},an.version="19.2.3",an}var KS;function wN(){if(KS)return $p.exports;KS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$p.exports=Dk(),$p.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 YS;function kk(){if(YS)return _s;YS=1;var e=Mk(),t=vo(),n=wN();function r(a){var i="https://react.dev/errors/"+a;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+a+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function o(a){var i=a,s=a;if(a.alternate)for(;i.return;)i=i.return;else{a=i;do i=a,(i.flags&4098)!==0&&(s=i.return),a=i.return;while(a)}return i.tag===3?s:null}function u(a){if(a.tag===13){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function f(a){if(a.tag===31){var i=a.memoizedState;if(i===null&&(a=a.alternate,a!==null&&(i=a.memoizedState)),i!==null)return i.dehydrated}return null}function d(a){if(o(a)!==a)throw Error(r(188))}function h(a){var i=a.alternate;if(!i){if(i=o(a),i===null)throw Error(r(188));return i!==a?null:a}for(var s=a,c=i;;){var v=s.return;if(v===null)break;var g=v.alternate;if(g===null){if(c=v.return,c!==null){s=c;continue}break}if(v.child===g.child){for(g=v.child;g;){if(g===s)return d(v),a;if(g===c)return d(v),i;g=g.sibling}throw Error(r(188))}if(s.return!==c.return)s=v,c=g;else{for(var O=!1,E=v.child;E;){if(E===s){O=!0,s=v,c=g;break}if(E===c){O=!0,c=v,s=g;break}E=E.sibling}if(!O){for(E=g.child;E;){if(E===s){O=!0,s=g,c=v;break}if(E===c){O=!0,c=g,s=v;break}E=E.sibling}if(!O)throw Error(r(189))}}if(s.alternate!==c)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?a:i}function p(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a;for(a=a.child;a!==null;){if(i=p(a),i!==null)return i;a=a.sibling}return null}var y=Object.assign,b=Symbol.for("react.element"),w=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),N=Symbol.for("react.consumer"),C=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),T=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),$=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),Z=Symbol.for("react.memo_cache_sentinel"),te=Symbol.iterator;function R(a){return a===null||typeof a!="object"?null:(a=te&&a[te]||a["@@iterator"],typeof a=="function"?a:null)}var ce=Symbol.for("react.client.reference");function le(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===ce?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case j:return"Fragment";case A:return"Profiler";case _:return"StrictMode";case k:return"Suspense";case T:return"SuspenseList";case X:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case S:return"Portal";case C:return a.displayName||"Context";case N:return(a._context.displayName||"Context")+".Consumer";case D:var i=a.render;return a=a.displayName,a||(a=i.displayName||i.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case P:return i=a.displayName||null,i!==null?i:le(a.type)||"Memo";case $:i=a._payload,a=a._init;try{return le(a(i))}catch{}}return null}var fe=Array.isArray,U=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se={pending:!1,data:null,method:null,action:null},de=[],B=-1;function M(a){return{current:a}}function q(a){0>B||(a.current=de[B],de[B]=null,B--)}function ie(a,i){B++,de[B]=a.current,a.current=i}var ue=M(null),me=M(null),ge=M(null),Se=M(null);function Ie(a,i){switch(ie(ge,i),ie(me,a),ie(ue,null),i.nodeType){case 9:case 11:a=(a=i.documentElement)&&(a=a.namespaceURI)?oS(a):0;break;default:if(a=i.tagName,i=i.namespaceURI)i=oS(i),a=sS(i,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}q(ue),ie(ue,a)}function J(){q(ue),q(me),q(ge)}function xe(a){a.memoizedState!==null&&ie(Se,a);var i=ue.current,s=sS(i,a.type);i!==s&&(ie(me,a),ie(ue,s))}function _e(a){me.current===a&&(q(ue),q(me)),Se.current===a&&(q(Se),bs._currentValue=se)}var oe,De;function H(a){if(oe===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);oe=i&&i[1]||"",De=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+oe+a+De}var Oe=!1;function Ke(a,i){if(!a||Oe)return"";Oe=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var c={DetermineComponentFrameRoot:function(){try{if(i){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(W){var G=W}Reflect.construct(a,[],ae)}else{try{ae.call()}catch(W){G=W}a.call(ae.prototype)}}else{try{throw Error()}catch(W){G=W}(ae=a())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(W){if(W&&G&&typeof W.stack=="string")return[W.stack,G.stack]}return[null,null]}};c.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(c.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(c.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var g=c.DetermineComponentFrameRoot(),O=g[0],E=g[1];if(O&&E){var z=O.split(`
`),K=E.split(`
`);for(v=c=0;c<z.length&&!z[c].includes("DetermineComponentFrameRoot");)c++;for(;v<K.length&&!K[v].includes("DetermineComponentFrameRoot");)v++;if(c===z.length||v===K.length)for(c=z.length-1,v=K.length-1;1<=c&&0<=v&&z[c]!==K[v];)v--;for(;1<=c&&0<=v;c--,v--)if(z[c]!==K[v]){if(c!==1||v!==1)do if(c--,v--,0>v||z[c]!==K[v]){var ee=`
`+z[c].replace(" at new "," at ");return a.displayName&&ee.includes("<anonymous>")&&(ee=ee.replace("<anonymous>",a.displayName)),ee}while(1<=c&&0<=v);break}}}finally{Oe=!1,Error.prepareStackTrace=s}return(s=a?a.displayName||a.name:"")?H(s):""}function Ut(a,i){switch(a.tag){case 26:case 27:case 5:return H(a.type);case 16:return H("Lazy");case 13:return a.child!==i&&i!==null?H("Suspense Fallback"):H("Suspense");case 19:return H("SuspenseList");case 0:case 15:return Ke(a.type,!1);case 11:return Ke(a.type.render,!1);case 1:return Ke(a.type,!0);case 31:return H("Activity");default:return""}}function jr(a){try{var i="",s=null;do i+=Ut(a,s),s=a,a=a.return;while(a);return i}catch(c){return`
Error generating stack: `+c.message+`
`+c.stack}}var mi=Object.prototype.hasOwnProperty,pi=e.unstable_scheduleCallback,dr=e.unstable_cancelCallback,To=e.unstable_shouldYield,Mo=e.unstable_requestPaint,Zt=e.unstable_now,re=e.unstable_getCurrentPriorityLevel,Ne=e.unstable_ImmediatePriority,Ye=e.unstable_UserBlockingPriority,mt=e.unstable_NormalPriority,Tn=e.unstable_LowPriority,_r=e.unstable_IdlePriority,ul=e.log,cl=e.unstable_setDisableYieldValue,Ea=null,Mn=null;function Ca(a){if(typeof ul=="function"&&cl(a),Mn&&typeof Mn.setStrictMode=="function")try{Mn.setStrictMode(Ea,a)}catch{}}var Dn=Math.clz32?Math.clz32:u3,o3=Math.log,s3=Math.LN2;function u3(a){return a>>>=0,a===0?32:31-(o3(a)/s3|0)|0}var Cu=256,Tu=262144,Mu=4194304;function vi(a){var i=a&42;if(i!==0)return i;switch(a&-a){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 a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Du(a,i,s){var c=a.pendingLanes;if(c===0)return 0;var v=0,g=a.suspendedLanes,O=a.pingedLanes;a=a.warmLanes;var E=c&134217727;return E!==0?(c=E&~g,c!==0?v=vi(c):(O&=E,O!==0?v=vi(O):s||(s=E&~a,s!==0&&(v=vi(s))))):(E=c&~g,E!==0?v=vi(E):O!==0?v=vi(O):s||(s=c&~a,s!==0&&(v=vi(s)))),v===0?0:i!==0&&i!==v&&(i&g)===0&&(g=v&-v,s=i&-i,g>=s||g===32&&(s&4194048)!==0)?i:v}function Do(a,i){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&i)===0}function c3(a,i){switch(a){case 1:case 2:case 4:case 8:case 64:return i+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 i+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 qb(){var a=Mu;return Mu<<=1,(Mu&62914560)===0&&(Mu=4194304),a}function Sh(a){for(var i=[],s=0;31>s;s++)i.push(a);return i}function ko(a,i){a.pendingLanes|=i,i!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function f3(a,i,s,c,v,g){var O=a.pendingLanes;a.pendingLanes=s,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=s,a.entangledLanes&=s,a.errorRecoveryDisabledLanes&=s,a.shellSuspendCounter=0;var E=a.entanglements,z=a.expirationTimes,K=a.hiddenUpdates;for(s=O&~s;0<s;){var ee=31-Dn(s),ae=1<<ee;E[ee]=0,z[ee]=-1;var G=K[ee];if(G!==null)for(K[ee]=null,ee=0;ee<G.length;ee++){var W=G[ee];W!==null&&(W.lane&=-536870913)}s&=~ae}c!==0&&Hb(a,c,0),g!==0&&v===0&&a.tag!==0&&(a.suspendedLanes|=g&~(O&~i))}function Hb(a,i,s){a.pendingLanes|=i,a.suspendedLanes&=~i;var c=31-Dn(i);a.entangledLanes|=i,a.entanglements[c]=a.entanglements[c]|1073741824|s&261930}function Fb(a,i){var s=a.entangledLanes|=i;for(a=a.entanglements;s;){var c=31-Dn(s),v=1<<c;v&i|a[c]&i&&(a[c]|=i),s&=~v}}function Kb(a,i){var s=i&-i;return s=(s&42)!==0?1:jh(s),(s&(a.suspendedLanes|i))!==0?0:s}function jh(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=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:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function _h(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Yb(){var a=Q.p;return a!==0?a:(a=window.event,a===void 0?32:MS(a.type))}function Gb(a,i){var s=Q.p;try{return Q.p=a,i()}finally{Q.p=s}}var Ta=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Ta,yn="__reactProps$"+Ta,fl="__reactContainer$"+Ta,Oh="__reactEvents$"+Ta,d3="__reactListeners$"+Ta,h3="__reactHandles$"+Ta,Vb="__reactResources$"+Ta,Po="__reactMarker$"+Ta;function Ah(a){delete a[Wt],delete a[yn],delete a[Oh],delete a[d3],delete a[h3]}function dl(a){var i=a[Wt];if(i)return i;for(var s=a.parentNode;s;){if(i=s[fl]||s[Wt]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(a=pS(a);a!==null;){if(s=a[Wt])return s;a=pS(a)}return i}a=s,s=a.parentNode}return null}function hl(a){if(a=a[Wt]||a[fl]){var i=a.tag;if(i===5||i===6||i===13||i===31||i===26||i===27||i===3)return a}return null}function Ro(a){var i=a.tag;if(i===5||i===26||i===27||i===6)return a.stateNode;throw Error(r(33))}function ml(a){var i=a[Vb];return i||(i=a[Vb]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function qt(a){a[Po]=!0}var Xb=new Set,Zb={};function yi(a,i){pl(a,i),pl(a+"Capture",i)}function pl(a,i){for(Zb[a]=i,a=0;a<i.length;a++)Xb.add(i[a])}var m3=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]*$"),Wb={},Qb={};function p3(a){return mi.call(Qb,a)?!0:mi.call(Wb,a)?!1:m3.test(a)?Qb[a]=!0:(Wb[a]=!0,!1)}function ku(a,i,s){if(p3(i))if(s===null)a.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":a.removeAttribute(i);return;case"boolean":var c=i.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){a.removeAttribute(i);return}}a.setAttribute(i,""+s)}}function Pu(a,i,s){if(s===null)a.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(i);return}a.setAttribute(i,""+s)}}function $r(a,i,s,c){if(c===null)a.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(s);return}a.setAttributeNS(i,s,""+c)}}function Kn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function Jb(a){var i=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function v3(a,i,s){var c=Object.getOwnPropertyDescriptor(a.constructor.prototype,i);if(!a.hasOwnProperty(i)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var v=c.get,g=c.set;return Object.defineProperty(a,i,{configurable:!0,get:function(){return v.call(this)},set:function(O){s=""+O,g.call(this,O)}}),Object.defineProperty(a,i,{enumerable:c.enumerable}),{getValue:function(){return s},setValue:function(O){s=""+O},stopTracking:function(){a._valueTracker=null,delete a[i]}}}}function Nh(a){if(!a._valueTracker){var i=Jb(a)?"checked":"value";a._valueTracker=v3(a,i,""+a[i])}}function ex(a){if(!a)return!1;var i=a._valueTracker;if(!i)return!0;var s=i.getValue(),c="";return a&&(c=Jb(a)?a.checked?"true":"false":a.value),a=c,a!==s?(i.setValue(a),!0):!1}function Ru(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var y3=/[\n"\\]/g;function Yn(a){return a.replace(y3,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Eh(a,i,s,c,v,g,O,E){a.name="",O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"?a.type=O:a.removeAttribute("type"),i!=null?O==="number"?(i===0&&a.value===""||a.value!=i)&&(a.value=""+Kn(i)):a.value!==""+Kn(i)&&(a.value=""+Kn(i)):O!=="submit"&&O!=="reset"||a.removeAttribute("value"),i!=null?Ch(a,O,Kn(i)):s!=null?Ch(a,O,Kn(s)):c!=null&&a.removeAttribute("value"),v==null&&g!=null&&(a.defaultChecked=!!g),v!=null&&(a.checked=v&&typeof v!="function"&&typeof v!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?a.name=""+Kn(E):a.removeAttribute("name")}function tx(a,i,s,c,v,g,O,E){if(g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(a.type=g),i!=null||s!=null){if(!(g!=="submit"&&g!=="reset"||i!=null)){Nh(a);return}s=s!=null?""+Kn(s):"",i=i!=null?""+Kn(i):s,E||i===a.value||(a.value=i),a.defaultValue=i}c=c??v,c=typeof c!="function"&&typeof c!="symbol"&&!!c,a.checked=E?a.checked:!!c,a.defaultChecked=!!c,O!=null&&typeof O!="function"&&typeof O!="symbol"&&typeof O!="boolean"&&(a.name=O),Nh(a)}function Ch(a,i,s){i==="number"&&Ru(a.ownerDocument)===a||a.defaultValue===""+s||(a.defaultValue=""+s)}function vl(a,i,s,c){if(a=a.options,i){i={};for(var v=0;v<s.length;v++)i["$"+s[v]]=!0;for(s=0;s<a.length;s++)v=i.hasOwnProperty("$"+a[s].value),a[s].selected!==v&&(a[s].selected=v),v&&c&&(a[s].defaultSelected=!0)}else{for(s=""+Kn(s),i=null,v=0;v<a.length;v++){if(a[v].value===s){a[v].selected=!0,c&&(a[v].defaultSelected=!0);return}i!==null||a[v].disabled||(i=a[v])}i!==null&&(i.selected=!0)}}function nx(a,i,s){if(i!=null&&(i=""+Kn(i),i!==a.value&&(a.value=i),s==null)){a.defaultValue!==i&&(a.defaultValue=i);return}a.defaultValue=s!=null?""+Kn(s):""}function rx(a,i,s,c){if(i==null){if(c!=null){if(s!=null)throw Error(r(92));if(fe(c)){if(1<c.length)throw Error(r(93));c=c[0]}s=c}s==null&&(s=""),i=s}s=Kn(i),a.defaultValue=s,c=a.textContent,c===s&&c!==""&&c!==null&&(a.value=c),Nh(a)}function yl(a,i){if(i){var s=a.firstChild;if(s&&s===a.lastChild&&s.nodeType===3){s.nodeValue=i;return}}a.textContent=i}var g3=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 ax(a,i,s){var c=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?c?a.setProperty(i,""):i==="float"?a.cssFloat="":a[i]="":c?a.setProperty(i,s):typeof s!="number"||s===0||g3.has(i)?i==="float"?a.cssFloat=s:a[i]=(""+s).trim():a[i]=s+"px"}function ix(a,i,s){if(i!=null&&typeof i!="object")throw Error(r(62));if(a=a.style,s!=null){for(var c in s)!s.hasOwnProperty(c)||i!=null&&i.hasOwnProperty(c)||(c.indexOf("--")===0?a.setProperty(c,""):c==="float"?a.cssFloat="":a[c]="");for(var v in i)c=i[v],i.hasOwnProperty(v)&&s[v]!==c&&ax(a,v,c)}else for(var g in i)i.hasOwnProperty(g)&&ax(a,g,i[g])}function Th(a){if(a.indexOf("-")===-1)return!1;switch(a){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 b3=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"]]),x3=/^[\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 zu(a){return x3.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Ur(){}var Mh=null;function Dh(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var gl=null,bl=null;function lx(a){var i=hl(a);if(i&&(a=i.stateNode)){var s=a[yn]||null;e:switch(a=i.stateNode,i.type){case"input":if(Eh(a,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=a;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Yn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var c=s[i];if(c!==a&&c.form===a.form){var v=c[yn]||null;if(!v)throw Error(r(90));Eh(c,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(i=0;i<s.length;i++)c=s[i],c.form===a.form&&ex(c)}break e;case"textarea":nx(a,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&vl(a,!!s.multiple,i,!1)}}}var kh=!1;function ox(a,i,s){if(kh)return a(i,s);kh=!0;try{var c=a(i);return c}finally{if(kh=!1,(gl!==null||bl!==null)&&(jc(),gl&&(i=gl,a=bl,bl=gl=null,lx(i),a)))for(i=0;i<a.length;i++)lx(a[i])}}function zo(a,i){var s=a.stateNode;if(s===null)return null;var c=s[yn]||null;if(c===null)return null;s=c[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(a=a.type,c=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!c;break e;default:a=!1}if(a)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var qr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ph=!1;if(qr)try{var Lo={};Object.defineProperty(Lo,"passive",{get:function(){Ph=!0}}),window.addEventListener("test",Lo,Lo),window.removeEventListener("test",Lo,Lo)}catch{Ph=!1}var Ma=null,Rh=null,Lu=null;function sx(){if(Lu)return Lu;var a,i=Rh,s=i.length,c,v="value"in Ma?Ma.value:Ma.textContent,g=v.length;for(a=0;a<s&&i[a]===v[a];a++);var O=s-a;for(c=1;c<=O&&i[s-c]===v[g-c];c++);return Lu=v.slice(a,1<c?1-c:void 0)}function Bu(a){var i=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&i===13&&(a=13)):a=i,a===10&&(a=13),32<=a||a===13?a:0}function Iu(){return!0}function ux(){return!1}function gn(a){function i(s,c,v,g,O){this._reactName=s,this._targetInst=v,this.type=c,this.nativeEvent=g,this.target=O,this.currentTarget=null;for(var E in a)a.hasOwnProperty(E)&&(s=a[E],this[E]=s?s(g):g[E]);return this.isDefaultPrevented=(g.defaultPrevented!=null?g.defaultPrevented:g.returnValue===!1)?Iu:ux,this.isPropagationStopped=ux,this}return y(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Iu)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Iu)},persist:function(){},isPersistent:Iu}),i}var gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},$u=gn(gi),Bo=y({},gi,{view:0,detail:0}),w3=gn(Bo),zh,Lh,Io,Uu=y({},Bo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ih,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Io&&(Io&&a.type==="mousemove"?(zh=a.screenX-Io.screenX,Lh=a.screenY-Io.screenY):Lh=zh=0,Io=a),zh)},movementY:function(a){return"movementY"in a?a.movementY:Lh}}),cx=gn(Uu),S3=y({},Uu,{dataTransfer:0}),j3=gn(S3),_3=y({},Bo,{relatedTarget:0}),Bh=gn(_3),O3=y({},gi,{animationName:0,elapsedTime:0,pseudoElement:0}),A3=gn(O3),N3=y({},gi,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),E3=gn(N3),C3=y({},gi,{data:0}),fx=gn(C3),T3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},M3={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"},D3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function k3(a){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(a):(a=D3[a])?!!i[a]:!1}function Ih(){return k3}var P3=y({},Bo,{key:function(a){if(a.key){var i=T3[a.key]||a.key;if(i!=="Unidentified")return i}return a.type==="keypress"?(a=Bu(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?M3[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ih,charCode:function(a){return a.type==="keypress"?Bu(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Bu(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),R3=gn(P3),z3=y({},Uu,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),dx=gn(z3),L3=y({},Bo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ih}),B3=gn(L3),I3=y({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0}),$3=gn(I3),U3=y({},Uu,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),q3=gn(U3),H3=y({},gi,{newState:0,oldState:0}),F3=gn(H3),K3=[9,13,27,32],$h=qr&&"CompositionEvent"in window,$o=null;qr&&"documentMode"in document&&($o=document.documentMode);var Y3=qr&&"TextEvent"in window&&!$o,hx=qr&&(!$h||$o&&8<$o&&11>=$o),mx=" ",px=!1;function vx(a,i){switch(a){case"keyup":return K3.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function yx(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var xl=!1;function G3(a,i){switch(a){case"compositionend":return yx(i);case"keypress":return i.which!==32?null:(px=!0,mx);case"textInput":return a=i.data,a===mx&&px?null:a;default:return null}}function V3(a,i){if(xl)return a==="compositionend"||!$h&&vx(a,i)?(a=sx(),Lu=Rh=Ma=null,xl=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return hx&&i.locale!=="ko"?null:i.data;default:return null}}var X3={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 gx(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i==="input"?!!X3[a.type]:i==="textarea"}function bx(a,i,s,c){gl?bl?bl.push(c):bl=[c]:gl=c,i=Tc(i,"onChange"),0<i.length&&(s=new $u("onChange","change",null,s,c),a.push({event:s,listeners:i}))}var Uo=null,qo=null;function Z3(a){tS(a,0)}function qu(a){var i=Ro(a);if(ex(i))return a}function xx(a,i){if(a==="change")return i}var wx=!1;if(qr){var Uh;if(qr){var qh="oninput"in document;if(!qh){var Sx=document.createElement("div");Sx.setAttribute("oninput","return;"),qh=typeof Sx.oninput=="function"}Uh=qh}else Uh=!1;wx=Uh&&(!document.documentMode||9<document.documentMode)}function jx(){Uo&&(Uo.detachEvent("onpropertychange",_x),qo=Uo=null)}function _x(a){if(a.propertyName==="value"&&qu(qo)){var i=[];bx(i,qo,a,Dh(a)),ox(Z3,i)}}function W3(a,i,s){a==="focusin"?(jx(),Uo=i,qo=s,Uo.attachEvent("onpropertychange",_x)):a==="focusout"&&jx()}function Q3(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return qu(qo)}function J3(a,i){if(a==="click")return qu(i)}function eD(a,i){if(a==="input"||a==="change")return qu(i)}function tD(a,i){return a===i&&(a!==0||1/a===1/i)||a!==a&&i!==i}var kn=typeof Object.is=="function"?Object.is:tD;function Ho(a,i){if(kn(a,i))return!0;if(typeof a!="object"||a===null||typeof i!="object"||i===null)return!1;var s=Object.keys(a),c=Object.keys(i);if(s.length!==c.length)return!1;for(c=0;c<s.length;c++){var v=s[c];if(!mi.call(i,v)||!kn(a[v],i[v]))return!1}return!0}function Ox(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Ax(a,i){var s=Ox(a);a=0;for(var c;s;){if(s.nodeType===3){if(c=a+s.textContent.length,a<=i&&c>=i)return{node:s,offset:i-a};a=c}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Ox(s)}}function Nx(a,i){return a&&i?a===i?!0:a&&a.nodeType===3?!1:i&&i.nodeType===3?Nx(a,i.parentNode):"contains"in a?a.contains(i):a.compareDocumentPosition?!!(a.compareDocumentPosition(i)&16):!1:!1}function Ex(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var i=Ru(a.document);i instanceof a.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)a=i.contentWindow;else break;i=Ru(a.document)}return i}function Hh(a){var i=a&&a.nodeName&&a.nodeName.toLowerCase();return i&&(i==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||i==="textarea"||a.contentEditable==="true")}var nD=qr&&"documentMode"in document&&11>=document.documentMode,wl=null,Fh=null,Fo=null,Kh=!1;function Cx(a,i,s){var c=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Kh||wl==null||wl!==Ru(c)||(c=wl,"selectionStart"in c&&Hh(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Fo&&Ho(Fo,c)||(Fo=c,c=Tc(Fh,"onSelect"),0<c.length&&(i=new $u("onSelect","select",null,i,s),a.push({event:i,listeners:c}),i.target=wl)))}function bi(a,i){var s={};return s[a.toLowerCase()]=i.toLowerCase(),s["Webkit"+a]="webkit"+i,s["Moz"+a]="moz"+i,s}var Sl={animationend:bi("Animation","AnimationEnd"),animationiteration:bi("Animation","AnimationIteration"),animationstart:bi("Animation","AnimationStart"),transitionrun:bi("Transition","TransitionRun"),transitionstart:bi("Transition","TransitionStart"),transitioncancel:bi("Transition","TransitionCancel"),transitionend:bi("Transition","TransitionEnd")},Yh={},Tx={};qr&&(Tx=document.createElement("div").style,"AnimationEvent"in window||(delete Sl.animationend.animation,delete Sl.animationiteration.animation,delete Sl.animationstart.animation),"TransitionEvent"in window||delete Sl.transitionend.transition);function xi(a){if(Yh[a])return Yh[a];if(!Sl[a])return a;var i=Sl[a],s;for(s in i)if(i.hasOwnProperty(s)&&s in Tx)return Yh[a]=i[s];return a}var Mx=xi("animationend"),Dx=xi("animationiteration"),kx=xi("animationstart"),rD=xi("transitionrun"),aD=xi("transitionstart"),iD=xi("transitioncancel"),Px=xi("transitionend"),Rx=new Map,Gh="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(" ");Gh.push("scrollEnd");function hr(a,i){Rx.set(a,i),yi(i,[a])}var Hu=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Gn=[],jl=0,Vh=0;function Fu(){for(var a=jl,i=Vh=jl=0;i<a;){var s=Gn[i];Gn[i++]=null;var c=Gn[i];Gn[i++]=null;var v=Gn[i];Gn[i++]=null;var g=Gn[i];if(Gn[i++]=null,c!==null&&v!==null){var O=c.pending;O===null?v.next=v:(v.next=O.next,O.next=v),c.pending=v}g!==0&&zx(s,v,g)}}function Ku(a,i,s,c){Gn[jl++]=a,Gn[jl++]=i,Gn[jl++]=s,Gn[jl++]=c,Vh|=c,a.lanes|=c,a=a.alternate,a!==null&&(a.lanes|=c)}function Xh(a,i,s,c){return Ku(a,i,s,c),Yu(a)}function wi(a,i){return Ku(a,null,null,i),Yu(a)}function zx(a,i,s){a.lanes|=s;var c=a.alternate;c!==null&&(c.lanes|=s);for(var v=!1,g=a.return;g!==null;)g.childLanes|=s,c=g.alternate,c!==null&&(c.childLanes|=s),g.tag===22&&(a=g.stateNode,a===null||a._visibility&1||(v=!0)),a=g,g=g.return;return a.tag===3?(g=a.stateNode,v&&i!==null&&(v=31-Dn(s),a=g.hiddenUpdates,c=a[v],c===null?a[v]=[i]:c.push(i),i.lane=s|536870912),g):null}function Yu(a){if(50<ds)throw ds=0,ap=null,Error(r(185));for(var i=a.return;i!==null;)a=i,i=a.return;return a.tag===3?a.stateNode:null}var _l={};function lD(a,i,s,c){this.tag=a,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Pn(a,i,s,c){return new lD(a,i,s,c)}function Zh(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Hr(a,i){var s=a.alternate;return s===null?(s=Pn(a.tag,i,a.key,a.mode),s.elementType=a.elementType,s.type=a.type,s.stateNode=a.stateNode,s.alternate=a,a.alternate=s):(s.pendingProps=i,s.type=a.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=a.flags&65011712,s.childLanes=a.childLanes,s.lanes=a.lanes,s.child=a.child,s.memoizedProps=a.memoizedProps,s.memoizedState=a.memoizedState,s.updateQueue=a.updateQueue,i=a.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=a.sibling,s.index=a.index,s.ref=a.ref,s.refCleanup=a.refCleanup,s}function Lx(a,i){a.flags&=65011714;var s=a.alternate;return s===null?(a.childLanes=0,a.lanes=i,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=s.childLanes,a.lanes=s.lanes,a.child=s.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=s.memoizedProps,a.memoizedState=s.memoizedState,a.updateQueue=s.updateQueue,a.type=s.type,i=s.dependencies,a.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),a}function Gu(a,i,s,c,v,g){var O=0;if(c=a,typeof a=="function")Zh(a)&&(O=1);else if(typeof a=="string")O=fk(a,s,ue.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case X:return a=Pn(31,s,i,v),a.elementType=X,a.lanes=g,a;case j:return Si(s.children,v,g,i);case _:O=8,v|=24;break;case A:return a=Pn(12,s,i,v|2),a.elementType=A,a.lanes=g,a;case k:return a=Pn(13,s,i,v),a.elementType=k,a.lanes=g,a;case T:return a=Pn(19,s,i,v),a.elementType=T,a.lanes=g,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case C:O=10;break e;case N:O=9;break e;case D:O=11;break e;case P:O=14;break e;case $:O=16,c=null;break e}O=29,s=Error(r(130,a===null?"null":typeof a,"")),c=null}return i=Pn(O,s,i,v),i.elementType=a,i.type=c,i.lanes=g,i}function Si(a,i,s,c){return a=Pn(7,a,c,i),a.lanes=s,a}function Wh(a,i,s){return a=Pn(6,a,null,i),a.lanes=s,a}function Bx(a){var i=Pn(18,null,null,0);return i.stateNode=a,i}function Qh(a,i,s){return i=Pn(4,a.children!==null?a.children:[],a.key,i),i.lanes=s,i.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},i}var Ix=new WeakMap;function Vn(a,i){if(typeof a=="object"&&a!==null){var s=Ix.get(a);return s!==void 0?s:(i={value:a,source:i,stack:jr(i)},Ix.set(a,i),i)}return{value:a,source:i,stack:jr(i)}}var Ol=[],Al=0,Vu=null,Ko=0,Xn=[],Zn=0,Da=null,Or=1,Ar="";function Fr(a,i){Ol[Al++]=Ko,Ol[Al++]=Vu,Vu=a,Ko=i}function $x(a,i,s){Xn[Zn++]=Or,Xn[Zn++]=Ar,Xn[Zn++]=Da,Da=a;var c=Or;a=Ar;var v=32-Dn(c)-1;c&=~(1<<v),s+=1;var g=32-Dn(i)+v;if(30<g){var O=v-v%5;g=(c&(1<<O)-1).toString(32),c>>=O,v-=O,Or=1<<32-Dn(i)+v|s<<v|c,Ar=g+a}else Or=1<<g|s<<v|c,Ar=a}function Jh(a){a.return!==null&&(Fr(a,1),$x(a,1,0))}function em(a){for(;a===Vu;)Vu=Ol[--Al],Ol[Al]=null,Ko=Ol[--Al],Ol[Al]=null;for(;a===Da;)Da=Xn[--Zn],Xn[Zn]=null,Ar=Xn[--Zn],Xn[Zn]=null,Or=Xn[--Zn],Xn[Zn]=null}function Ux(a,i){Xn[Zn++]=Or,Xn[Zn++]=Ar,Xn[Zn++]=Da,Or=i.id,Ar=i.overflow,Da=a}var Qt=null,lt=null,Le=!1,ka=null,Wn=!1,tm=Error(r(519));function Pa(a){var i=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Yo(Vn(i,a)),tm}function qx(a){var i=a.stateNode,s=a.type,c=a.memoizedProps;switch(i[Wt]=a,i[yn]=c,s){case"dialog":Pe("cancel",i),Pe("close",i);break;case"iframe":case"object":case"embed":Pe("load",i);break;case"video":case"audio":for(s=0;s<ms.length;s++)Pe(ms[s],i);break;case"source":Pe("error",i);break;case"img":case"image":case"link":Pe("error",i),Pe("load",i);break;case"details":Pe("toggle",i);break;case"input":Pe("invalid",i),tx(i,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"select":Pe("invalid",i);break;case"textarea":Pe("invalid",i),rx(i,c.value,c.defaultValue,c.children)}s=c.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||c.suppressHydrationWarning===!0||iS(i.textContent,s)?(c.popover!=null&&(Pe("beforetoggle",i),Pe("toggle",i)),c.onScroll!=null&&Pe("scroll",i),c.onScrollEnd!=null&&Pe("scrollend",i),c.onClick!=null&&(i.onclick=Ur),i=!0):i=!1,i||Pa(a,!0)}function Hx(a){for(Qt=a.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:Qt=Qt.return}}function Nl(a){if(a!==Qt)return!1;if(!Le)return Hx(a),Le=!0,!1;var i=a.tag,s;if((s=i!==3&&i!==27)&&((s=i===5)&&(s=a.type,s=!(s!=="form"&&s!=="button")||bp(a.type,a.memoizedProps)),s=!s),s&&lt&&Pa(a),Hx(a),i===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));lt=mS(a)}else if(i===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));lt=mS(a)}else i===27?(i=lt,Va(a.type)?(a=_p,_p=null,lt=a):lt=i):lt=Qt?Jn(a.stateNode.nextSibling):null;return!0}function ji(){lt=Qt=null,Le=!1}function nm(){var a=ka;return a!==null&&(Sn===null?Sn=a:Sn.push.apply(Sn,a),ka=null),a}function Yo(a){ka===null?ka=[a]:ka.push(a)}var rm=M(null),_i=null,Kr=null;function Ra(a,i,s){ie(rm,i._currentValue),i._currentValue=s}function Yr(a){a._currentValue=rm.current,q(rm)}function am(a,i,s){for(;a!==null;){var c=a.alternate;if((a.childLanes&i)!==i?(a.childLanes|=i,c!==null&&(c.childLanes|=i)):c!==null&&(c.childLanes&i)!==i&&(c.childLanes|=i),a===s)break;a=a.return}}function im(a,i,s,c){var v=a.child;for(v!==null&&(v.return=a);v!==null;){var g=v.dependencies;if(g!==null){var O=v.child;g=g.firstContext;e:for(;g!==null;){var E=g;g=v;for(var z=0;z<i.length;z++)if(E.context===i[z]){g.lanes|=s,E=g.alternate,E!==null&&(E.lanes|=s),am(g.return,s,a),c||(O=null);break e}g=E.next}}else if(v.tag===18){if(O=v.return,O===null)throw Error(r(341));O.lanes|=s,g=O.alternate,g!==null&&(g.lanes|=s),am(O,s,a),O=null}else O=v.child;if(O!==null)O.return=v;else for(O=v;O!==null;){if(O===a){O=null;break}if(v=O.sibling,v!==null){v.return=O.return,O=v;break}O=O.return}v=O}}function El(a,i,s,c){a=null;for(var v=i,g=!1;v!==null;){if(!g){if((v.flags&524288)!==0)g=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var O=v.alternate;if(O===null)throw Error(r(387));if(O=O.memoizedProps,O!==null){var E=v.type;kn(v.pendingProps.value,O.value)||(a!==null?a.push(E):a=[E])}}else if(v===Se.current){if(O=v.alternate,O===null)throw Error(r(387));O.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(a!==null?a.push(bs):a=[bs])}v=v.return}a!==null&&im(i,a,s,c),i.flags|=262144}function Xu(a){for(a=a.firstContext;a!==null;){if(!kn(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Oi(a){_i=a,Kr=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function Jt(a){return Fx(_i,a)}function Zu(a,i){return _i===null&&Oi(a),Fx(a,i)}function Fx(a,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},Kr===null){if(a===null)throw Error(r(308));Kr=i,a.dependencies={lanes:0,firstContext:i},a.flags|=524288}else Kr=Kr.next=i;return s}var oD=typeof AbortController<"u"?AbortController:function(){var a=[],i=this.signal={aborted:!1,addEventListener:function(s,c){a.push(c)}};this.abort=function(){i.aborted=!0,a.forEach(function(s){return s()})}},sD=e.unstable_scheduleCallback,uD=e.unstable_NormalPriority,At={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function lm(){return{controller:new oD,data:new Map,refCount:0}}function Go(a){a.refCount--,a.refCount===0&&sD(uD,function(){a.controller.abort()})}var Vo=null,om=0,Cl=0,Tl=null;function cD(a,i){if(Vo===null){var s=Vo=[];om=0,Cl=cp(),Tl={status:"pending",value:void 0,then:function(c){s.push(c)}}}return om++,i.then(Kx,Kx),i}function Kx(){if(--om===0&&Vo!==null){Tl!==null&&(Tl.status="fulfilled");var a=Vo;Vo=null,Cl=0,Tl=null;for(var i=0;i<a.length;i++)(0,a[i])()}}function fD(a,i){var s=[],c={status:"pending",value:null,reason:null,then:function(v){s.push(v)}};return a.then(function(){c.status="fulfilled",c.value=i;for(var v=0;v<s.length;v++)(0,s[v])(i)},function(v){for(c.status="rejected",c.reason=v,v=0;v<s.length;v++)(0,s[v])(void 0)}),c}var Yx=U.S;U.S=function(a,i){Cw=Zt(),typeof i=="object"&&i!==null&&typeof i.then=="function"&&cD(a,i),Yx!==null&&Yx(a,i)};var Ai=M(null);function sm(){var a=Ai.current;return a!==null?a:tt.pooledCache}function Wu(a,i){i===null?ie(Ai,Ai.current):ie(Ai,i.pool)}function Gx(){var a=sm();return a===null?null:{parent:At._currentValue,pool:a}}var Ml=Error(r(460)),um=Error(r(474)),Qu=Error(r(542)),Ju={then:function(){}};function Vx(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Xx(a,i,s){switch(s=a[s],s===void 0?a.push(i):s!==i&&(i.then(Ur,Ur),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Wx(a),a;default:if(typeof i.status=="string")i.then(Ur,Ur);else{if(a=tt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=i,a.status="pending",a.then(function(c){if(i.status==="pending"){var v=i;v.status="fulfilled",v.value=c}},function(c){if(i.status==="pending"){var v=i;v.status="rejected",v.reason=c}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw a=i.reason,Wx(a),a}throw Ei=i,Ml}}function Ni(a){try{var i=a._init;return i(a._payload)}catch(s){throw s!==null&&typeof s=="object"&&typeof s.then=="function"?(Ei=s,Ml):s}}var Ei=null;function Zx(){if(Ei===null)throw Error(r(459));var a=Ei;return Ei=null,a}function Wx(a){if(a===Ml||a===Qu)throw Error(r(483))}var Dl=null,Xo=0;function ec(a){var i=Xo;return Xo+=1,Dl===null&&(Dl=[]),Xx(Dl,a,i)}function Zo(a,i){i=i.props.ref,a.ref=i!==void 0?i:null}function tc(a,i){throw i.$$typeof===b?Error(r(525)):(a=Object.prototype.toString.call(i),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":a)))}function Qx(a){function i(I,L){if(a){var F=I.deletions;F===null?(I.deletions=[L],I.flags|=16):F.push(L)}}function s(I,L){if(!a)return null;for(;L!==null;)i(I,L),L=L.sibling;return null}function c(I){for(var L=new Map;I!==null;)I.key!==null?L.set(I.key,I):L.set(I.index,I),I=I.sibling;return L}function v(I,L){return I=Hr(I,L),I.index=0,I.sibling=null,I}function g(I,L,F){return I.index=F,a?(F=I.alternate,F!==null?(F=F.index,F<L?(I.flags|=67108866,L):F):(I.flags|=67108866,L)):(I.flags|=1048576,L)}function O(I){return a&&I.alternate===null&&(I.flags|=67108866),I}function E(I,L,F,ne){return L===null||L.tag!==6?(L=Wh(F,I.mode,ne),L.return=I,L):(L=v(L,F),L.return=I,L)}function z(I,L,F,ne){var we=F.type;return we===j?ee(I,L,F.props.children,ne,F.key):L!==null&&(L.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===$&&Ni(we)===L.type)?(L=v(L,F.props),Zo(L,F),L.return=I,L):(L=Gu(F.type,F.key,F.props,null,I.mode,ne),Zo(L,F),L.return=I,L)}function K(I,L,F,ne){return L===null||L.tag!==4||L.stateNode.containerInfo!==F.containerInfo||L.stateNode.implementation!==F.implementation?(L=Qh(F,I.mode,ne),L.return=I,L):(L=v(L,F.children||[]),L.return=I,L)}function ee(I,L,F,ne,we){return L===null||L.tag!==7?(L=Si(F,I.mode,ne,we),L.return=I,L):(L=v(L,F),L.return=I,L)}function ae(I,L,F){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Wh(""+L,I.mode,F),L.return=I,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case w:return F=Gu(L.type,L.key,L.props,null,I.mode,F),Zo(F,L),F.return=I,F;case S:return L=Qh(L,I.mode,F),L.return=I,L;case $:return L=Ni(L),ae(I,L,F)}if(fe(L)||R(L))return L=Si(L,I.mode,F,null),L.return=I,L;if(typeof L.then=="function")return ae(I,ec(L),F);if(L.$$typeof===C)return ae(I,Zu(I,L),F);tc(I,L)}return null}function G(I,L,F,ne){var we=L!==null?L.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return we!==null?null:E(I,L,""+F,ne);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case w:return F.key===we?z(I,L,F,ne):null;case S:return F.key===we?K(I,L,F,ne):null;case $:return F=Ni(F),G(I,L,F,ne)}if(fe(F)||R(F))return we!==null?null:ee(I,L,F,ne,null);if(typeof F.then=="function")return G(I,L,ec(F),ne);if(F.$$typeof===C)return G(I,L,Zu(I,F),ne);tc(I,F)}return null}function W(I,L,F,ne,we){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return I=I.get(F)||null,E(L,I,""+ne,we);if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case w:return I=I.get(ne.key===null?F:ne.key)||null,z(L,I,ne,we);case S:return I=I.get(ne.key===null?F:ne.key)||null,K(L,I,ne,we);case $:return ne=Ni(ne),W(I,L,F,ne,we)}if(fe(ne)||R(ne))return I=I.get(F)||null,ee(L,I,ne,we,null);if(typeof ne.then=="function")return W(I,L,F,ec(ne),we);if(ne.$$typeof===C)return W(I,L,F,Zu(L,ne),we);tc(L,ne)}return null}function ve(I,L,F,ne){for(var we=null,$e=null,be=L,Me=L=0,ze=null;be!==null&&Me<F.length;Me++){be.index>Me?(ze=be,be=null):ze=be.sibling;var Ue=G(I,be,F[Me],ne);if(Ue===null){be===null&&(be=ze);break}a&&be&&Ue.alternate===null&&i(I,be),L=g(Ue,L,Me),$e===null?we=Ue:$e.sibling=Ue,$e=Ue,be=ze}if(Me===F.length)return s(I,be),Le&&Fr(I,Me),we;if(be===null){for(;Me<F.length;Me++)be=ae(I,F[Me],ne),be!==null&&(L=g(be,L,Me),$e===null?we=be:$e.sibling=be,$e=be);return Le&&Fr(I,Me),we}for(be=c(be);Me<F.length;Me++)ze=W(be,I,Me,F[Me],ne),ze!==null&&(a&&ze.alternate!==null&&be.delete(ze.key===null?Me:ze.key),L=g(ze,L,Me),$e===null?we=ze:$e.sibling=ze,$e=ze);return a&&be.forEach(function(Ja){return i(I,Ja)}),Le&&Fr(I,Me),we}function je(I,L,F,ne){if(F==null)throw Error(r(151));for(var we=null,$e=null,be=L,Me=L=0,ze=null,Ue=F.next();be!==null&&!Ue.done;Me++,Ue=F.next()){be.index>Me?(ze=be,be=null):ze=be.sibling;var Ja=G(I,be,Ue.value,ne);if(Ja===null){be===null&&(be=ze);break}a&&be&&Ja.alternate===null&&i(I,be),L=g(Ja,L,Me),$e===null?we=Ja:$e.sibling=Ja,$e=Ja,be=ze}if(Ue.done)return s(I,be),Le&&Fr(I,Me),we;if(be===null){for(;!Ue.done;Me++,Ue=F.next())Ue=ae(I,Ue.value,ne),Ue!==null&&(L=g(Ue,L,Me),$e===null?we=Ue:$e.sibling=Ue,$e=Ue);return Le&&Fr(I,Me),we}for(be=c(be);!Ue.done;Me++,Ue=F.next())Ue=W(be,I,Me,Ue.value,ne),Ue!==null&&(a&&Ue.alternate!==null&&be.delete(Ue.key===null?Me:Ue.key),L=g(Ue,L,Me),$e===null?we=Ue:$e.sibling=Ue,$e=Ue);return a&&be.forEach(function(Sk){return i(I,Sk)}),Le&&Fr(I,Me),we}function Qe(I,L,F,ne){if(typeof F=="object"&&F!==null&&F.type===j&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case w:e:{for(var we=F.key;L!==null;){if(L.key===we){if(we=F.type,we===j){if(L.tag===7){s(I,L.sibling),ne=v(L,F.props.children),ne.return=I,I=ne;break e}}else if(L.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===$&&Ni(we)===L.type){s(I,L.sibling),ne=v(L,F.props),Zo(ne,F),ne.return=I,I=ne;break e}s(I,L);break}else i(I,L);L=L.sibling}F.type===j?(ne=Si(F.props.children,I.mode,ne,F.key),ne.return=I,I=ne):(ne=Gu(F.type,F.key,F.props,null,I.mode,ne),Zo(ne,F),ne.return=I,I=ne)}return O(I);case S:e:{for(we=F.key;L!==null;){if(L.key===we)if(L.tag===4&&L.stateNode.containerInfo===F.containerInfo&&L.stateNode.implementation===F.implementation){s(I,L.sibling),ne=v(L,F.children||[]),ne.return=I,I=ne;break e}else{s(I,L);break}else i(I,L);L=L.sibling}ne=Qh(F,I.mode,ne),ne.return=I,I=ne}return O(I);case $:return F=Ni(F),Qe(I,L,F,ne)}if(fe(F))return ve(I,L,F,ne);if(R(F)){if(we=R(F),typeof we!="function")throw Error(r(150));return F=we.call(F),je(I,L,F,ne)}if(typeof F.then=="function")return Qe(I,L,ec(F),ne);if(F.$$typeof===C)return Qe(I,L,Zu(I,F),ne);tc(I,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,L!==null&&L.tag===6?(s(I,L.sibling),ne=v(L,F),ne.return=I,I=ne):(s(I,L),ne=Wh(F,I.mode,ne),ne.return=I,I=ne),O(I)):s(I,L)}return function(I,L,F,ne){try{Xo=0;var we=Qe(I,L,F,ne);return Dl=null,we}catch(be){if(be===Ml||be===Qu)throw be;var $e=Pn(29,be,null,I.mode);return $e.lanes=ne,$e.return=I,$e}finally{}}}var Ci=Qx(!0),Jx=Qx(!1),za=!1;function cm(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fm(a,i){a=a.updateQueue,i.updateQueue===a&&(i.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function La(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ba(a,i,s){var c=a.updateQueue;if(c===null)return null;if(c=c.shared,(Fe&2)!==0){var v=c.pending;return v===null?i.next=i:(i.next=v.next,v.next=i),c.pending=i,i=Yu(a),zx(a,null,s),i}return Ku(a,c,i,s),Yu(a)}function Wo(a,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194048)!==0)){var c=i.lanes;c&=a.pendingLanes,s|=c,i.lanes=s,Fb(a,s)}}function dm(a,i){var s=a.updateQueue,c=a.alternate;if(c!==null&&(c=c.updateQueue,s===c)){var v=null,g=null;if(s=s.firstBaseUpdate,s!==null){do{var O={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};g===null?v=g=O:g=g.next=O,s=s.next}while(s!==null);g===null?v=g=i:g=g.next=i}else v=g=i;s={baseState:c.baseState,firstBaseUpdate:v,lastBaseUpdate:g,shared:c.shared,callbacks:c.callbacks},a.updateQueue=s;return}a=s.lastBaseUpdate,a===null?s.firstBaseUpdate=i:a.next=i,s.lastBaseUpdate=i}var hm=!1;function Qo(){if(hm){var a=Tl;if(a!==null)throw a}}function Jo(a,i,s,c){hm=!1;var v=a.updateQueue;za=!1;var g=v.firstBaseUpdate,O=v.lastBaseUpdate,E=v.shared.pending;if(E!==null){v.shared.pending=null;var z=E,K=z.next;z.next=null,O===null?g=K:O.next=K,O=z;var ee=a.alternate;ee!==null&&(ee=ee.updateQueue,E=ee.lastBaseUpdate,E!==O&&(E===null?ee.firstBaseUpdate=K:E.next=K,ee.lastBaseUpdate=z))}if(g!==null){var ae=v.baseState;O=0,ee=K=z=null,E=g;do{var G=E.lane&-536870913,W=G!==E.lane;if(W?(Re&G)===G:(c&G)===G){G!==0&&G===Cl&&(hm=!0),ee!==null&&(ee=ee.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});e:{var ve=a,je=E;G=i;var Qe=s;switch(je.tag){case 1:if(ve=je.payload,typeof ve=="function"){ae=ve.call(Qe,ae,G);break e}ae=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=je.payload,G=typeof ve=="function"?ve.call(Qe,ae,G):ve,G==null)break e;ae=y({},ae,G);break e;case 2:za=!0}}G=E.callback,G!==null&&(a.flags|=64,W&&(a.flags|=8192),W=v.callbacks,W===null?v.callbacks=[G]:W.push(G))}else W={lane:G,tag:E.tag,payload:E.payload,callback:E.callback,next:null},ee===null?(K=ee=W,z=ae):ee=ee.next=W,O|=G;if(E=E.next,E===null){if(E=v.shared.pending,E===null)break;W=E,E=W.next,W.next=null,v.lastBaseUpdate=W,v.shared.pending=null}}while(!0);ee===null&&(z=ae),v.baseState=z,v.firstBaseUpdate=K,v.lastBaseUpdate=ee,g===null&&(v.shared.lanes=0),Ha|=O,a.lanes=O,a.memoizedState=ae}}function e1(a,i){if(typeof a!="function")throw Error(r(191,a));a.call(i)}function t1(a,i){var s=a.callbacks;if(s!==null)for(a.callbacks=null,a=0;a<s.length;a++)e1(s[a],i)}var kl=M(null),nc=M(0);function n1(a,i){a=ta,ie(nc,a),ie(kl,i),ta=a|i.baseLanes}function mm(){ie(nc,ta),ie(kl,kl.current)}function pm(){ta=nc.current,q(kl),q(nc)}var Rn=M(null),Qn=null;function Ia(a){var i=a.alternate;ie(wt,wt.current&1),ie(Rn,a),Qn===null&&(i===null||kl.current!==null||i.memoizedState!==null)&&(Qn=a)}function vm(a){ie(wt,wt.current),ie(Rn,a),Qn===null&&(Qn=a)}function r1(a){a.tag===22?(ie(wt,wt.current),ie(Rn,a),Qn===null&&(Qn=a)):$a()}function $a(){ie(wt,wt.current),ie(Rn,Rn.current)}function zn(a){q(Rn),Qn===a&&(Qn=null),q(wt)}var wt=M(0);function rc(a){for(var i=a;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||Sp(s)||jp(s)))return i}else if(i.tag===19&&(i.memoizedProps.revealOrder==="forwards"||i.memoizedProps.revealOrder==="backwards"||i.memoizedProps.revealOrder==="unstable_legacy-backwards"||i.memoizedProps.revealOrder==="together")){if((i.flags&128)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var Gr=0,Ce=null,Ze=null,Nt=null,ac=!1,Pl=!1,Ti=!1,ic=0,es=0,Rl=null,dD=0;function yt(){throw Error(r(321))}function ym(a,i){if(i===null)return!1;for(var s=0;s<i.length&&s<a.length;s++)if(!kn(a[s],i[s]))return!1;return!0}function gm(a,i,s,c,v,g){return Gr=g,Ce=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,U.H=a===null||a.memoizedState===null?$1:km,Ti=!1,g=s(c,v),Ti=!1,Pl&&(g=i1(i,s,c,v)),a1(a),g}function a1(a){U.H=rs;var i=Ze!==null&&Ze.next!==null;if(Gr=0,Nt=Ze=Ce=null,ac=!1,es=0,Rl=null,i)throw Error(r(300));a===null||Et||(a=a.dependencies,a!==null&&Xu(a)&&(Et=!0))}function i1(a,i,s,c){Ce=a;var v=0;do{if(Pl&&(Rl=null),es=0,Pl=!1,25<=v)throw Error(r(301));if(v+=1,Nt=Ze=null,a.updateQueue!=null){var g=a.updateQueue;g.lastEffect=null,g.events=null,g.stores=null,g.memoCache!=null&&(g.memoCache.index=0)}U.H=U1,g=i(s,c)}while(Pl);return g}function hD(){var a=U.H,i=a.useState()[0];return i=typeof i.then=="function"?ts(i):i,a=a.useState()[0],(Ze!==null?Ze.memoizedState:null)!==a&&(Ce.flags|=1024),i}function bm(){var a=ic!==0;return ic=0,a}function xm(a,i,s){i.updateQueue=a.updateQueue,i.flags&=-2053,a.lanes&=~s}function wm(a){if(ac){for(a=a.memoizedState;a!==null;){var i=a.queue;i!==null&&(i.pending=null),a=a.next}ac=!1}Gr=0,Nt=Ze=Ce=null,Pl=!1,es=ic=0,Rl=null}function fn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?Ce.memoizedState=Nt=a:Nt=Nt.next=a,Nt}function St(){if(Ze===null){var a=Ce.alternate;a=a!==null?a.memoizedState:null}else a=Ze.next;var i=Nt===null?Ce.memoizedState:Nt.next;if(i!==null)Nt=i,Ze=a;else{if(a===null)throw Ce.alternate===null?Error(r(467)):Error(r(310));Ze=a,a={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Nt===null?Ce.memoizedState=Nt=a:Nt=Nt.next=a}return Nt}function lc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ts(a){var i=es;return es+=1,Rl===null&&(Rl=[]),a=Xx(Rl,a,i),i=Ce,(Nt===null?i.memoizedState:Nt.next)===null&&(i=i.alternate,U.H=i===null||i.memoizedState===null?$1:km),a}function oc(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return ts(a);if(a.$$typeof===C)return Jt(a)}throw Error(r(438,String(a)))}function Sm(a){var i=null,s=Ce.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var c=Ce.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(i={data:c.data.map(function(v){return v.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=lc(),Ce.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(a),c=0;c<a;c++)s[c]=Z;return i.index++,s}function Vr(a,i){return typeof i=="function"?i(a):i}function sc(a){var i=St();return jm(i,Ze,a)}function jm(a,i,s){var c=a.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=s;var v=a.baseQueue,g=c.pending;if(g!==null){if(v!==null){var O=v.next;v.next=g.next,g.next=O}i.baseQueue=v=g,c.pending=null}if(g=a.baseState,v===null)a.memoizedState=g;else{i=v.next;var E=O=null,z=null,K=i,ee=!1;do{var ae=K.lane&-536870913;if(ae!==K.lane?(Re&ae)===ae:(Gr&ae)===ae){var G=K.revertLane;if(G===0)z!==null&&(z=z.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),ae===Cl&&(ee=!0);else if((Gr&G)===G){K=K.next,G===Cl&&(ee=!0);continue}else ae={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},z===null?(E=z=ae,O=g):z=z.next=ae,Ce.lanes|=G,Ha|=G;ae=K.action,Ti&&s(g,ae),g=K.hasEagerState?K.eagerState:s(g,ae)}else G={lane:ae,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},z===null?(E=z=G,O=g):z=z.next=G,Ce.lanes|=ae,Ha|=ae;K=K.next}while(K!==null&&K!==i);if(z===null?O=g:z.next=E,!kn(g,a.memoizedState)&&(Et=!0,ee&&(s=Tl,s!==null)))throw s;a.memoizedState=g,a.baseState=O,a.baseQueue=z,c.lastRenderedState=g}return v===null&&(c.lanes=0),[a.memoizedState,c.dispatch]}function _m(a){var i=St(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=a;var c=s.dispatch,v=s.pending,g=i.memoizedState;if(v!==null){s.pending=null;var O=v=v.next;do g=a(g,O.action),O=O.next;while(O!==v);kn(g,i.memoizedState)||(Et=!0),i.memoizedState=g,i.baseQueue===null&&(i.baseState=g),s.lastRenderedState=g}return[g,c]}function l1(a,i,s){var c=Ce,v=St(),g=Le;if(g){if(s===void 0)throw Error(r(407));s=s()}else s=i();var O=!kn((Ze||v).memoizedState,s);if(O&&(v.memoizedState=s,Et=!0),v=v.queue,Nm(u1.bind(null,c,v,a),[a]),v.getSnapshot!==i||O||Nt!==null&&Nt.memoizedState.tag&1){if(c.flags|=2048,zl(9,{destroy:void 0},s1.bind(null,c,v,s,i),null),tt===null)throw Error(r(349));g||(Gr&127)!==0||o1(c,i,s)}return s}function o1(a,i,s){a.flags|=16384,a={getSnapshot:i,value:s},i=Ce.updateQueue,i===null?(i=lc(),Ce.updateQueue=i,i.stores=[a]):(s=i.stores,s===null?i.stores=[a]:s.push(a))}function s1(a,i,s,c){i.value=s,i.getSnapshot=c,c1(i)&&f1(a)}function u1(a,i,s){return s(function(){c1(i)&&f1(a)})}function c1(a){var i=a.getSnapshot;a=a.value;try{var s=i();return!kn(a,s)}catch{return!0}}function f1(a){var i=wi(a,2);i!==null&&jn(i,a,2)}function Om(a){var i=fn();if(typeof a=="function"){var s=a;if(a=s(),Ti){Ca(!0);try{s()}finally{Ca(!1)}}}return i.memoizedState=i.baseState=a,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:a},i}function d1(a,i,s,c){return a.baseState=s,jm(a,Ze,typeof c=="function"?c:Vr)}function mD(a,i,s,c,v){if(fc(a))throw Error(r(485));if(a=i.action,a!==null){var g={payload:v,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(O){g.listeners.push(O)}};U.T!==null?s(!0):g.isTransition=!1,c(g),s=i.pending,s===null?(g.next=i.pending=g,h1(i,g)):(g.next=s.next,i.pending=s.next=g)}}function h1(a,i){var s=i.action,c=i.payload,v=a.state;if(i.isTransition){var g=U.T,O={};U.T=O;try{var E=s(v,c),z=U.S;z!==null&&z(O,E),m1(a,i,E)}catch(K){Am(a,i,K)}finally{g!==null&&O.types!==null&&(g.types=O.types),U.T=g}}else try{g=s(v,c),m1(a,i,g)}catch(K){Am(a,i,K)}}function m1(a,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(c){p1(a,i,c)},function(c){return Am(a,i,c)}):p1(a,i,s)}function p1(a,i,s){i.status="fulfilled",i.value=s,v1(i),a.state=s,i=a.pending,i!==null&&(s=i.next,s===i?a.pending=null:(s=s.next,i.next=s,h1(a,s)))}function Am(a,i,s){var c=a.pending;if(a.pending=null,c!==null){c=c.next;do i.status="rejected",i.reason=s,v1(i),i=i.next;while(i!==c)}a.action=null}function v1(a){a=a.listeners;for(var i=0;i<a.length;i++)(0,a[i])()}function y1(a,i){return i}function g1(a,i){if(Le){var s=tt.formState;if(s!==null){e:{var c=Ce;if(Le){if(lt){t:{for(var v=lt,g=Wn;v.nodeType!==8;){if(!g){v=null;break t}if(v=Jn(v.nextSibling),v===null){v=null;break t}}g=v.data,v=g==="F!"||g==="F"?v:null}if(v){lt=Jn(v.nextSibling),c=v.data==="F!";break e}}Pa(c)}c=!1}c&&(i=s[0])}}return s=fn(),s.memoizedState=s.baseState=i,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:y1,lastRenderedState:i},s.queue=c,s=L1.bind(null,Ce,c),c.dispatch=s,c=Om(!1),g=Dm.bind(null,Ce,!1,c.queue),c=fn(),v={state:i,dispatch:null,action:a,pending:null},c.queue=v,s=mD.bind(null,Ce,v,g,s),v.dispatch=s,c.memoizedState=a,[i,s,!1]}function b1(a){var i=St();return x1(i,Ze,a)}function x1(a,i,s){if(i=jm(a,i,y1)[0],a=sc(Vr)[0],typeof i=="object"&&i!==null&&typeof i.then=="function")try{var c=ts(i)}catch(O){throw O===Ml?Qu:O}else c=i;i=St();var v=i.queue,g=v.dispatch;return s!==i.memoizedState&&(Ce.flags|=2048,zl(9,{destroy:void 0},pD.bind(null,v,s),null)),[c,g,a]}function pD(a,i){a.action=i}function w1(a){var i=St(),s=Ze;if(s!==null)return x1(i,s,a);St(),i=i.memoizedState,s=St();var c=s.queue.dispatch;return s.memoizedState=a,[i,c,!1]}function zl(a,i,s,c){return a={tag:a,create:s,deps:c,inst:i,next:null},i=Ce.updateQueue,i===null&&(i=lc(),Ce.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=a.next=a:(c=s.next,s.next=a,a.next=c,i.lastEffect=a),a}function S1(){return St().memoizedState}function uc(a,i,s,c){var v=fn();Ce.flags|=a,v.memoizedState=zl(1|i,{destroy:void 0},s,c===void 0?null:c)}function cc(a,i,s,c){var v=St();c=c===void 0?null:c;var g=v.memoizedState.inst;Ze!==null&&c!==null&&ym(c,Ze.memoizedState.deps)?v.memoizedState=zl(i,g,s,c):(Ce.flags|=a,v.memoizedState=zl(1|i,g,s,c))}function j1(a,i){uc(8390656,8,a,i)}function Nm(a,i){cc(2048,8,a,i)}function vD(a){Ce.flags|=4;var i=Ce.updateQueue;if(i===null)i=lc(),Ce.updateQueue=i,i.events=[a];else{var s=i.events;s===null?i.events=[a]:s.push(a)}}function _1(a){var i=St().memoizedState;return vD({ref:i,nextImpl:a}),function(){if((Fe&2)!==0)throw Error(r(440));return i.impl.apply(void 0,arguments)}}function O1(a,i){return cc(4,2,a,i)}function A1(a,i){return cc(4,4,a,i)}function N1(a,i){if(typeof i=="function"){a=a();var s=i(a);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return a=a(),i.current=a,function(){i.current=null}}function E1(a,i,s){s=s!=null?s.concat([a]):null,cc(4,4,N1.bind(null,i,a),s)}function Em(){}function C1(a,i){var s=St();i=i===void 0?null:i;var c=s.memoizedState;return i!==null&&ym(i,c[1])?c[0]:(s.memoizedState=[a,i],a)}function T1(a,i){var s=St();i=i===void 0?null:i;var c=s.memoizedState;if(i!==null&&ym(i,c[1]))return c[0];if(c=a(),Ti){Ca(!0);try{a()}finally{Ca(!1)}}return s.memoizedState=[c,i],c}function Cm(a,i,s){return s===void 0||(Gr&1073741824)!==0&&(Re&261930)===0?a.memoizedState=i:(a.memoizedState=s,a=Mw(),Ce.lanes|=a,Ha|=a,s)}function M1(a,i,s,c){return kn(s,i)?s:kl.current!==null?(a=Cm(a,s,c),kn(a,i)||(Et=!0),a):(Gr&42)===0||(Gr&1073741824)!==0&&(Re&261930)===0?(Et=!0,a.memoizedState=s):(a=Mw(),Ce.lanes|=a,Ha|=a,i)}function D1(a,i,s,c,v){var g=Q.p;Q.p=g!==0&&8>g?g:8;var O=U.T,E={};U.T=E,Dm(a,!1,i,s);try{var z=v(),K=U.S;if(K!==null&&K(E,z),z!==null&&typeof z=="object"&&typeof z.then=="function"){var ee=fD(z,c);ns(a,i,ee,In(a))}else ns(a,i,c,In(a))}catch(ae){ns(a,i,{then:function(){},status:"rejected",reason:ae},In())}finally{Q.p=g,O!==null&&E.types!==null&&(O.types=E.types),U.T=O}}function yD(){}function Tm(a,i,s,c){if(a.tag!==5)throw Error(r(476));var v=k1(a).queue;D1(a,v,i,se,s===null?yD:function(){return P1(a),s(c)})}function k1(a){var i=a.memoizedState;if(i!==null)return i;i={memoizedState:se,baseState:se,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:se},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vr,lastRenderedState:s},next:null},a.memoizedState=i,a=a.alternate,a!==null&&(a.memoizedState=i),i}function P1(a){var i=k1(a);i.next===null&&(i=a.alternate.memoizedState),ns(a,i.next.queue,{},In())}function Mm(){return Jt(bs)}function R1(){return St().memoizedState}function z1(){return St().memoizedState}function gD(a){for(var i=a.return;i!==null;){switch(i.tag){case 24:case 3:var s=In();a=La(s);var c=Ba(i,a,s);c!==null&&(jn(c,i,s),Wo(c,i,s)),i={cache:lm()},a.payload=i;return}i=i.return}}function bD(a,i,s){var c=In();s={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null},fc(a)?B1(i,s):(s=Xh(a,i,s,c),s!==null&&(jn(s,a,c),I1(s,i,c)))}function L1(a,i,s){var c=In();ns(a,i,s,c)}function ns(a,i,s,c){var v={lane:c,revertLane:0,gesture:null,action:s,hasEagerState:!1,eagerState:null,next:null};if(fc(a))B1(i,v);else{var g=a.alternate;if(a.lanes===0&&(g===null||g.lanes===0)&&(g=i.lastRenderedReducer,g!==null))try{var O=i.lastRenderedState,E=g(O,s);if(v.hasEagerState=!0,v.eagerState=E,kn(E,O))return Ku(a,i,v,0),tt===null&&Fu(),!1}catch{}finally{}if(s=Xh(a,i,v,c),s!==null)return jn(s,a,c),I1(s,i,c),!0}return!1}function Dm(a,i,s,c){if(c={lane:2,revertLane:cp(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},fc(a)){if(i)throw Error(r(479))}else i=Xh(a,s,c,2),i!==null&&jn(i,a,2)}function fc(a){var i=a.alternate;return a===Ce||i!==null&&i===Ce}function B1(a,i){Pl=ac=!0;var s=a.pending;s===null?i.next=i:(i.next=s.next,s.next=i),a.pending=i}function I1(a,i,s){if((s&4194048)!==0){var c=i.lanes;c&=a.pendingLanes,s|=c,i.lanes=s,Fb(a,s)}}var rs={readContext:Jt,use:oc,useCallback:yt,useContext:yt,useEffect:yt,useImperativeHandle:yt,useLayoutEffect:yt,useInsertionEffect:yt,useMemo:yt,useReducer:yt,useRef:yt,useState:yt,useDebugValue:yt,useDeferredValue:yt,useTransition:yt,useSyncExternalStore:yt,useId:yt,useHostTransitionStatus:yt,useFormState:yt,useActionState:yt,useOptimistic:yt,useMemoCache:yt,useCacheRefresh:yt};rs.useEffectEvent=yt;var $1={readContext:Jt,use:oc,useCallback:function(a,i){return fn().memoizedState=[a,i===void 0?null:i],a},useContext:Jt,useEffect:j1,useImperativeHandle:function(a,i,s){s=s!=null?s.concat([a]):null,uc(4194308,4,N1.bind(null,i,a),s)},useLayoutEffect:function(a,i){return uc(4194308,4,a,i)},useInsertionEffect:function(a,i){uc(4,2,a,i)},useMemo:function(a,i){var s=fn();i=i===void 0?null:i;var c=a();if(Ti){Ca(!0);try{a()}finally{Ca(!1)}}return s.memoizedState=[c,i],c},useReducer:function(a,i,s){var c=fn();if(s!==void 0){var v=s(i);if(Ti){Ca(!0);try{s(i)}finally{Ca(!1)}}}else v=i;return c.memoizedState=c.baseState=v,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:v},c.queue=a,a=a.dispatch=bD.bind(null,Ce,a),[c.memoizedState,a]},useRef:function(a){var i=fn();return a={current:a},i.memoizedState=a},useState:function(a){a=Om(a);var i=a.queue,s=L1.bind(null,Ce,i);return i.dispatch=s,[a.memoizedState,s]},useDebugValue:Em,useDeferredValue:function(a,i){var s=fn();return Cm(s,a,i)},useTransition:function(){var a=Om(!1);return a=D1.bind(null,Ce,a.queue,!0,!1),fn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,i,s){var c=Ce,v=fn();if(Le){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),tt===null)throw Error(r(349));(Re&127)!==0||o1(c,i,s)}v.memoizedState=s;var g={value:s,getSnapshot:i};return v.queue=g,j1(u1.bind(null,c,g,a),[a]),c.flags|=2048,zl(9,{destroy:void 0},s1.bind(null,c,g,s,i),null),s},useId:function(){var a=fn(),i=tt.identifierPrefix;if(Le){var s=Ar,c=Or;s=(c&~(1<<32-Dn(c)-1)).toString(32)+s,i="_"+i+"R_"+s,s=ic++,0<s&&(i+="H"+s.toString(32)),i+="_"}else s=dD++,i="_"+i+"r_"+s.toString(32)+"_";return a.memoizedState=i},useHostTransitionStatus:Mm,useFormState:g1,useActionState:g1,useOptimistic:function(a){var i=fn();i.memoizedState=i.baseState=a;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Dm.bind(null,Ce,!0,s),s.dispatch=i,[a,i]},useMemoCache:Sm,useCacheRefresh:function(){return fn().memoizedState=gD.bind(null,Ce)},useEffectEvent:function(a){var i=fn(),s={impl:a};return i.memoizedState=s,function(){if((Fe&2)!==0)throw Error(r(440));return s.impl.apply(void 0,arguments)}}},km={readContext:Jt,use:oc,useCallback:C1,useContext:Jt,useEffect:Nm,useImperativeHandle:E1,useInsertionEffect:O1,useLayoutEffect:A1,useMemo:T1,useReducer:sc,useRef:S1,useState:function(){return sc(Vr)},useDebugValue:Em,useDeferredValue:function(a,i){var s=St();return M1(s,Ze.memoizedState,a,i)},useTransition:function(){var a=sc(Vr)[0],i=St().memoizedState;return[typeof a=="boolean"?a:ts(a),i]},useSyncExternalStore:l1,useId:R1,useHostTransitionStatus:Mm,useFormState:b1,useActionState:b1,useOptimistic:function(a,i){var s=St();return d1(s,Ze,a,i)},useMemoCache:Sm,useCacheRefresh:z1};km.useEffectEvent=_1;var U1={readContext:Jt,use:oc,useCallback:C1,useContext:Jt,useEffect:Nm,useImperativeHandle:E1,useInsertionEffect:O1,useLayoutEffect:A1,useMemo:T1,useReducer:_m,useRef:S1,useState:function(){return _m(Vr)},useDebugValue:Em,useDeferredValue:function(a,i){var s=St();return Ze===null?Cm(s,a,i):M1(s,Ze.memoizedState,a,i)},useTransition:function(){var a=_m(Vr)[0],i=St().memoizedState;return[typeof a=="boolean"?a:ts(a),i]},useSyncExternalStore:l1,useId:R1,useHostTransitionStatus:Mm,useFormState:w1,useActionState:w1,useOptimistic:function(a,i){var s=St();return Ze!==null?d1(s,Ze,a,i):(s.baseState=a,[a,s.queue.dispatch])},useMemoCache:Sm,useCacheRefresh:z1};U1.useEffectEvent=_1;function Pm(a,i,s,c){i=a.memoizedState,s=s(c,i),s=s==null?i:y({},i,s),a.memoizedState=s,a.lanes===0&&(a.updateQueue.baseState=s)}var Rm={enqueueSetState:function(a,i,s){a=a._reactInternals;var c=In(),v=La(c);v.payload=i,s!=null&&(v.callback=s),i=Ba(a,v,c),i!==null&&(jn(i,a,c),Wo(i,a,c))},enqueueReplaceState:function(a,i,s){a=a._reactInternals;var c=In(),v=La(c);v.tag=1,v.payload=i,s!=null&&(v.callback=s),i=Ba(a,v,c),i!==null&&(jn(i,a,c),Wo(i,a,c))},enqueueForceUpdate:function(a,i){a=a._reactInternals;var s=In(),c=La(s);c.tag=2,i!=null&&(c.callback=i),i=Ba(a,c,s),i!==null&&(jn(i,a,s),Wo(i,a,s))}};function q1(a,i,s,c,v,g,O){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(c,g,O):i.prototype&&i.prototype.isPureReactComponent?!Ho(s,c)||!Ho(v,g):!0}function H1(a,i,s,c){a=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,c),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,c),i.state!==a&&Rm.enqueueReplaceState(i,i.state,null)}function Mi(a,i){var s=i;if("ref"in i){s={};for(var c in i)c!=="ref"&&(s[c]=i[c])}if(a=a.defaultProps){s===i&&(s=y({},s));for(var v in a)s[v]===void 0&&(s[v]=a[v])}return s}function F1(a){Hu(a)}function K1(a){console.error(a)}function Y1(a){Hu(a)}function dc(a,i){try{var s=a.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(c){setTimeout(function(){throw c})}}function G1(a,i,s){try{var c=a.onCaughtError;c(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function zm(a,i,s){return s=La(s),s.tag=3,s.payload={element:null},s.callback=function(){dc(a,i)},s}function V1(a){return a=La(a),a.tag=3,a}function X1(a,i,s,c){var v=s.type.getDerivedStateFromError;if(typeof v=="function"){var g=c.value;a.payload=function(){return v(g)},a.callback=function(){G1(i,s,c)}}var O=s.stateNode;O!==null&&typeof O.componentDidCatch=="function"&&(a.callback=function(){G1(i,s,c),typeof v!="function"&&(Fa===null?Fa=new Set([this]):Fa.add(this));var E=c.stack;this.componentDidCatch(c.value,{componentStack:E!==null?E:""})})}function xD(a,i,s,c,v){if(s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){if(i=s.alternate,i!==null&&El(i,s,v,!0),s=Rn.current,s!==null){switch(s.tag){case 31:case 13:return Qn===null?_c():s.alternate===null&&gt===0&&(gt=3),s.flags&=-257,s.flags|=65536,s.lanes=v,c===Ju?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([c]):i.add(c),op(a,c,v)),!1;case 22:return s.flags|=65536,c===Ju?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([c])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([c]):s.add(c)),op(a,c,v)),!1}throw Error(r(435,s.tag))}return op(a,c,v),_c(),!1}if(Le)return i=Rn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=v,c!==tm&&(a=Error(r(422),{cause:c}),Yo(Vn(a,s)))):(c!==tm&&(i=Error(r(423),{cause:c}),Yo(Vn(i,s))),a=a.current.alternate,a.flags|=65536,v&=-v,a.lanes|=v,c=Vn(c,s),v=zm(a.stateNode,c,v),dm(a,v),gt!==4&&(gt=2)),!1;var g=Error(r(520),{cause:c});if(g=Vn(g,s),fs===null?fs=[g]:fs.push(g),gt!==4&&(gt=2),i===null)return!0;c=Vn(c,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,a=v&-v,s.lanes|=a,a=zm(s.stateNode,c,a),dm(s,a),!1;case 1:if(i=s.type,g=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||g!==null&&typeof g.componentDidCatch=="function"&&(Fa===null||!Fa.has(g))))return s.flags|=65536,v&=-v,s.lanes|=v,v=V1(v),X1(v,a,s,c),dm(s,v),!1}s=s.return}while(s!==null);return!1}var Lm=Error(r(461)),Et=!1;function en(a,i,s,c){i.child=a===null?Jx(i,null,s,c):Ci(i,a.child,s,c)}function Z1(a,i,s,c,v){s=s.render;var g=i.ref;if("ref"in c){var O={};for(var E in c)E!=="ref"&&(O[E]=c[E])}else O=c;return Oi(i),c=gm(a,i,s,O,g,v),E=bm(),a!==null&&!Et?(xm(a,i,v),Xr(a,i,v)):(Le&&E&&Jh(i),i.flags|=1,en(a,i,c,v),i.child)}function W1(a,i,s,c,v){if(a===null){var g=s.type;return typeof g=="function"&&!Zh(g)&&g.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=g,Q1(a,i,g,c,v)):(a=Gu(s.type,null,c,i,i.mode,v),a.ref=i.ref,a.return=i,i.child=a)}if(g=a.child,!Km(a,v)){var O=g.memoizedProps;if(s=s.compare,s=s!==null?s:Ho,s(O,c)&&a.ref===i.ref)return Xr(a,i,v)}return i.flags|=1,a=Hr(g,c),a.ref=i.ref,a.return=i,i.child=a}function Q1(a,i,s,c,v){if(a!==null){var g=a.memoizedProps;if(Ho(g,c)&&a.ref===i.ref)if(Et=!1,i.pendingProps=c=g,Km(a,v))(a.flags&131072)!==0&&(Et=!0);else return i.lanes=a.lanes,Xr(a,i,v)}return Bm(a,i,s,c,v)}function J1(a,i,s,c){var v=c.children,g=a!==null?a.memoizedState:null;if(a===null&&i.stateNode===null&&(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((i.flags&128)!==0){if(g=g!==null?g.baseLanes|s:s,a!==null){for(c=i.child=a.child,v=0;c!==null;)v=v|c.lanes|c.childLanes,c=c.sibling;c=v&~g}else c=0,i.child=null;return ew(a,i,g,s,c)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},a!==null&&Wu(i,g!==null?g.cachePool:null),g!==null?n1(i,g):mm(),r1(i);else return c=i.lanes=536870912,ew(a,i,g!==null?g.baseLanes|s:s,s,c)}else g!==null?(Wu(i,g.cachePool),n1(i,g),$a(),i.memoizedState=null):(a!==null&&Wu(i,null),mm(),$a());return en(a,i,v,s),i.child}function as(a,i){return a!==null&&a.tag===22||i.stateNode!==null||(i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.sibling}function ew(a,i,s,c,v){var g=sm();return g=g===null?null:{parent:At._currentValue,pool:g},i.memoizedState={baseLanes:s,cachePool:g},a!==null&&Wu(i,null),mm(),r1(i),a!==null&&El(a,i,c,!0),i.childLanes=v,null}function hc(a,i){return i=pc({mode:i.mode,children:i.children},a.mode),i.ref=a.ref,a.child=i,i.return=a,i}function tw(a,i,s){return Ci(i,a.child,null,s),a=hc(i,i.pendingProps),a.flags|=2,zn(i),i.memoizedState=null,a}function wD(a,i,s){var c=i.pendingProps,v=(i.flags&128)!==0;if(i.flags&=-129,a===null){if(Le){if(c.mode==="hidden")return a=hc(i,c),i.lanes=536870912,as(null,a);if(vm(i),(a=lt)?(a=hS(a,Wn),a=a!==null&&a.data==="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:Da!==null?{id:Or,overflow:Ar}:null,retryLane:536870912,hydrationErrors:null},s=Bx(a),s.return=i,i.child=s,Qt=i,lt=null)):a=null,a===null)throw Pa(i);return i.lanes=536870912,null}return hc(i,c)}var g=a.memoizedState;if(g!==null){var O=g.dehydrated;if(vm(i),v)if(i.flags&256)i.flags&=-257,i=tw(a,i,s);else if(i.memoizedState!==null)i.child=a.child,i.flags|=128,i=null;else throw Error(r(558));else if(Et||El(a,i,s,!1),v=(s&a.childLanes)!==0,Et||v){if(c=tt,c!==null&&(O=Kb(c,s),O!==0&&O!==g.retryLane))throw g.retryLane=O,wi(a,O),jn(c,a,O),Lm;_c(),i=tw(a,i,s)}else a=g.treeContext,lt=Jn(O.nextSibling),Qt=i,Le=!0,ka=null,Wn=!1,a!==null&&Ux(i,a),i=hc(i,c),i.flags|=4096;return i}return a=Hr(a.child,{mode:c.mode,children:c.children}),a.ref=i.ref,i.child=a,a.return=i,a}function mc(a,i){var s=i.ref;if(s===null)a!==null&&a.ref!==null&&(i.flags|=4194816);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(a===null||a.ref!==s)&&(i.flags|=4194816)}}function Bm(a,i,s,c,v){return Oi(i),s=gm(a,i,s,c,void 0,v),c=bm(),a!==null&&!Et?(xm(a,i,v),Xr(a,i,v)):(Le&&c&&Jh(i),i.flags|=1,en(a,i,s,v),i.child)}function nw(a,i,s,c,v,g){return Oi(i),i.updateQueue=null,s=i1(i,c,s,v),a1(a),c=bm(),a!==null&&!Et?(xm(a,i,g),Xr(a,i,g)):(Le&&c&&Jh(i),i.flags|=1,en(a,i,s,g),i.child)}function rw(a,i,s,c,v){if(Oi(i),i.stateNode===null){var g=_l,O=s.contextType;typeof O=="object"&&O!==null&&(g=Jt(O)),g=new s(c,g),i.memoizedState=g.state!==null&&g.state!==void 0?g.state:null,g.updater=Rm,i.stateNode=g,g._reactInternals=i,g=i.stateNode,g.props=c,g.state=i.memoizedState,g.refs={},cm(i),O=s.contextType,g.context=typeof O=="object"&&O!==null?Jt(O):_l,g.state=i.memoizedState,O=s.getDerivedStateFromProps,typeof O=="function"&&(Pm(i,s,O,c),g.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof g.getSnapshotBeforeUpdate=="function"||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(O=g.state,typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount(),O!==g.state&&Rm.enqueueReplaceState(g,g.state,null),Jo(i,c,g,v),Qo(),g.state=i.memoizedState),typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!0}else if(a===null){g=i.stateNode;var E=i.memoizedProps,z=Mi(s,E);g.props=z;var K=g.context,ee=s.contextType;O=_l,typeof ee=="object"&&ee!==null&&(O=Jt(ee));var ae=s.getDerivedStateFromProps;ee=typeof ae=="function"||typeof g.getSnapshotBeforeUpdate=="function",E=i.pendingProps!==E,ee||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(E||K!==O)&&H1(i,g,c,O),za=!1;var G=i.memoizedState;g.state=G,Jo(i,c,g,v),Qo(),K=i.memoizedState,E||G!==K||za?(typeof ae=="function"&&(Pm(i,s,ae,c),K=i.memoizedState),(z=za||q1(i,s,z,c,G,K,O))?(ee||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(i.flags|=4194308)):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=c,i.memoizedState=K),g.props=c,g.state=K,g.context=O,c=z):(typeof g.componentDidMount=="function"&&(i.flags|=4194308),c=!1)}else{g=i.stateNode,fm(a,i),O=i.memoizedProps,ee=Mi(s,O),g.props=ee,ae=i.pendingProps,G=g.context,K=s.contextType,z=_l,typeof K=="object"&&K!==null&&(z=Jt(K)),E=s.getDerivedStateFromProps,(K=typeof E=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(O!==ae||G!==z)&&H1(i,g,c,z),za=!1,G=i.memoizedState,g.state=G,Jo(i,c,g,v),Qo();var W=i.memoizedState;O!==ae||G!==W||za||a!==null&&a.dependencies!==null&&Xu(a.dependencies)?(typeof E=="function"&&(Pm(i,s,E,c),W=i.memoizedState),(ee=za||q1(i,s,ee,c,G,W,z)||a!==null&&a.dependencies!==null&&Xu(a.dependencies))?(K||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(c,W,z),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(c,W,z)),typeof g.componentDidUpdate=="function"&&(i.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof g.componentDidUpdate!="function"||O===a.memoizedProps&&G===a.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||O===a.memoizedProps&&G===a.memoizedState||(i.flags|=1024),i.memoizedProps=c,i.memoizedState=W),g.props=c,g.state=W,g.context=z,c=ee):(typeof g.componentDidUpdate!="function"||O===a.memoizedProps&&G===a.memoizedState||(i.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||O===a.memoizedProps&&G===a.memoizedState||(i.flags|=1024),c=!1)}return g=c,mc(a,i),c=(i.flags&128)!==0,g||c?(g=i.stateNode,s=c&&typeof s.getDerivedStateFromError!="function"?null:g.render(),i.flags|=1,a!==null&&c?(i.child=Ci(i,a.child,null,v),i.child=Ci(i,null,s,v)):en(a,i,s,v),i.memoizedState=g.state,a=i.child):a=Xr(a,i,v),a}function aw(a,i,s,c){return ji(),i.flags|=256,en(a,i,s,c),i.child}var Im={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function $m(a){return{baseLanes:a,cachePool:Gx()}}function Um(a,i,s){return a=a!==null?a.childLanes&~s:0,i&&(a|=Bn),a}function iw(a,i,s){var c=i.pendingProps,v=!1,g=(i.flags&128)!==0,O;if((O=g)||(O=a!==null&&a.memoizedState===null?!1:(wt.current&2)!==0),O&&(v=!0,i.flags&=-129),O=(i.flags&32)!==0,i.flags&=-33,a===null){if(Le){if(v?Ia(i):$a(),(a=lt)?(a=hS(a,Wn),a=a!==null&&a.data!=="&"?a:null,a!==null&&(i.memoizedState={dehydrated:a,treeContext:Da!==null?{id:Or,overflow:Ar}:null,retryLane:536870912,hydrationErrors:null},s=Bx(a),s.return=i,i.child=s,Qt=i,lt=null)):a=null,a===null)throw Pa(i);return jp(a)?i.lanes=32:i.lanes=536870912,null}var E=c.children;return c=c.fallback,v?($a(),v=i.mode,E=pc({mode:"hidden",children:E},v),c=Si(c,v,s,null),E.return=i,c.return=i,E.sibling=c,i.child=E,c=i.child,c.memoizedState=$m(s),c.childLanes=Um(a,O,s),i.memoizedState=Im,as(null,c)):(Ia(i),qm(i,E))}var z=a.memoizedState;if(z!==null&&(E=z.dehydrated,E!==null)){if(g)i.flags&256?(Ia(i),i.flags&=-257,i=Hm(a,i,s)):i.memoizedState!==null?($a(),i.child=a.child,i.flags|=128,i=null):($a(),E=c.fallback,v=i.mode,c=pc({mode:"visible",children:c.children},v),E=Si(E,v,s,null),E.flags|=2,c.return=i,E.return=i,c.sibling=E,i.child=c,Ci(i,a.child,null,s),c=i.child,c.memoizedState=$m(s),c.childLanes=Um(a,O,s),i.memoizedState=Im,i=as(null,c));else if(Ia(i),jp(E)){if(O=E.nextSibling&&E.nextSibling.dataset,O)var K=O.dgst;O=K,c=Error(r(419)),c.stack="",c.digest=O,Yo({value:c,source:null,stack:null}),i=Hm(a,i,s)}else if(Et||El(a,i,s,!1),O=(s&a.childLanes)!==0,Et||O){if(O=tt,O!==null&&(c=Kb(O,s),c!==0&&c!==z.retryLane))throw z.retryLane=c,wi(a,c),jn(O,a,c),Lm;Sp(E)||_c(),i=Hm(a,i,s)}else Sp(E)?(i.flags|=192,i.child=a.child,i=null):(a=z.treeContext,lt=Jn(E.nextSibling),Qt=i,Le=!0,ka=null,Wn=!1,a!==null&&Ux(i,a),i=qm(i,c.children),i.flags|=4096);return i}return v?($a(),E=c.fallback,v=i.mode,z=a.child,K=z.sibling,c=Hr(z,{mode:"hidden",children:c.children}),c.subtreeFlags=z.subtreeFlags&65011712,K!==null?E=Hr(K,E):(E=Si(E,v,s,null),E.flags|=2),E.return=i,c.return=i,c.sibling=E,i.child=c,as(null,c),c=i.child,E=a.child.memoizedState,E===null?E=$m(s):(v=E.cachePool,v!==null?(z=At._currentValue,v=v.parent!==z?{parent:z,pool:z}:v):v=Gx(),E={baseLanes:E.baseLanes|s,cachePool:v}),c.memoizedState=E,c.childLanes=Um(a,O,s),i.memoizedState=Im,as(a.child,c)):(Ia(i),s=a.child,a=s.sibling,s=Hr(s,{mode:"visible",children:c.children}),s.return=i,s.sibling=null,a!==null&&(O=i.deletions,O===null?(i.deletions=[a],i.flags|=16):O.push(a)),i.child=s,i.memoizedState=null,s)}function qm(a,i){return i=pc({mode:"visible",children:i},a.mode),i.return=a,a.child=i}function pc(a,i){return a=Pn(22,a,null,i),a.lanes=0,a}function Hm(a,i,s){return Ci(i,a.child,null,s),a=qm(i,i.pendingProps.children),a.flags|=2,i.memoizedState=null,a}function lw(a,i,s){a.lanes|=i;var c=a.alternate;c!==null&&(c.lanes|=i),am(a.return,i,s)}function Fm(a,i,s,c,v,g){var O=a.memoizedState;O===null?a.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:c,tail:s,tailMode:v,treeForkCount:g}:(O.isBackwards=i,O.rendering=null,O.renderingStartTime=0,O.last=c,O.tail=s,O.tailMode=v,O.treeForkCount=g)}function ow(a,i,s){var c=i.pendingProps,v=c.revealOrder,g=c.tail;c=c.children;var O=wt.current,E=(O&2)!==0;if(E?(O=O&1|2,i.flags|=128):O&=1,ie(wt,O),en(a,i,c,s),c=Le?Ko:0,!E&&a!==null&&(a.flags&128)!==0)e:for(a=i.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&lw(a,s,i);else if(a.tag===19)lw(a,s,i);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)break e;for(;a.sibling===null;){if(a.return===null||a.return===i)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(v){case"forwards":for(s=i.child,v=null;s!==null;)a=s.alternate,a!==null&&rc(a)===null&&(v=s),s=s.sibling;s=v,s===null?(v=i.child,i.child=null):(v=s.sibling,s.sibling=null),Fm(i,!1,v,s,g,c);break;case"backwards":case"unstable_legacy-backwards":for(s=null,v=i.child,i.child=null;v!==null;){if(a=v.alternate,a!==null&&rc(a)===null){i.child=v;break}a=v.sibling,v.sibling=s,s=v,v=a}Fm(i,!0,s,null,g,c);break;case"together":Fm(i,!1,null,null,void 0,c);break;default:i.memoizedState=null}return i.child}function Xr(a,i,s){if(a!==null&&(i.dependencies=a.dependencies),Ha|=i.lanes,(s&i.childLanes)===0)if(a!==null){if(El(a,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(a!==null&&i.child!==a.child)throw Error(r(153));if(i.child!==null){for(a=i.child,s=Hr(a,a.pendingProps),i.child=s,s.return=i;a.sibling!==null;)a=a.sibling,s=s.sibling=Hr(a,a.pendingProps),s.return=i;s.sibling=null}return i.child}function Km(a,i){return(a.lanes&i)!==0?!0:(a=a.dependencies,!!(a!==null&&Xu(a)))}function SD(a,i,s){switch(i.tag){case 3:Ie(i,i.stateNode.containerInfo),Ra(i,At,a.memoizedState.cache),ji();break;case 27:case 5:xe(i);break;case 4:Ie(i,i.stateNode.containerInfo);break;case 10:Ra(i,i.type,i.memoizedProps.value);break;case 31:if(i.memoizedState!==null)return i.flags|=128,vm(i),null;break;case 13:var c=i.memoizedState;if(c!==null)return c.dehydrated!==null?(Ia(i),i.flags|=128,null):(s&i.child.childLanes)!==0?iw(a,i,s):(Ia(i),a=Xr(a,i,s),a!==null?a.sibling:null);Ia(i);break;case 19:var v=(a.flags&128)!==0;if(c=(s&i.childLanes)!==0,c||(El(a,i,s,!1),c=(s&i.childLanes)!==0),v){if(c)return ow(a,i,s);i.flags|=128}if(v=i.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),ie(wt,wt.current),c)break;return null;case 22:return i.lanes=0,J1(a,i,s,i.pendingProps);case 24:Ra(i,At,a.memoizedState.cache)}return Xr(a,i,s)}function sw(a,i,s){if(a!==null)if(a.memoizedProps!==i.pendingProps)Et=!0;else{if(!Km(a,s)&&(i.flags&128)===0)return Et=!1,SD(a,i,s);Et=(a.flags&131072)!==0}else Et=!1,Le&&(i.flags&1048576)!==0&&$x(i,Ko,i.index);switch(i.lanes=0,i.tag){case 16:e:{var c=i.pendingProps;if(a=Ni(i.elementType),i.type=a,typeof a=="function")Zh(a)?(c=Mi(a,c),i.tag=1,i=rw(null,i,a,c,s)):(i.tag=0,i=Bm(null,i,a,c,s));else{if(a!=null){var v=a.$$typeof;if(v===D){i.tag=11,i=Z1(null,i,a,c,s);break e}else if(v===P){i.tag=14,i=W1(null,i,a,c,s);break e}}throw i=le(a)||a,Error(r(306,i,""))}}return i;case 0:return Bm(a,i,i.type,i.pendingProps,s);case 1:return c=i.type,v=Mi(c,i.pendingProps),rw(a,i,c,v,s);case 3:e:{if(Ie(i,i.stateNode.containerInfo),a===null)throw Error(r(387));c=i.pendingProps;var g=i.memoizedState;v=g.element,fm(a,i),Jo(i,c,null,s);var O=i.memoizedState;if(c=O.cache,Ra(i,At,c),c!==g.cache&&im(i,[At],s,!0),Qo(),c=O.element,g.isDehydrated)if(g={element:c,isDehydrated:!1,cache:O.cache},i.updateQueue.baseState=g,i.memoizedState=g,i.flags&256){i=aw(a,i,c,s);break e}else if(c!==v){v=Vn(Error(r(424)),i),Yo(v),i=aw(a,i,c,s);break e}else{switch(a=i.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(lt=Jn(a.firstChild),Qt=i,Le=!0,ka=null,Wn=!0,s=Jx(i,null,c,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling}else{if(ji(),c===v){i=Xr(a,i,s);break e}en(a,i,c,s)}i=i.child}return i;case 26:return mc(a,i),a===null?(s=bS(i.type,null,i.pendingProps,null))?i.memoizedState=s:Le||(s=i.type,a=i.pendingProps,c=Mc(ge.current).createElement(s),c[Wt]=i,c[yn]=a,tn(c,s,a),qt(c),i.stateNode=c):i.memoizedState=bS(i.type,a.memoizedProps,i.pendingProps,a.memoizedState),null;case 27:return xe(i),a===null&&Le&&(c=i.stateNode=vS(i.type,i.pendingProps,ge.current),Qt=i,Wn=!0,v=lt,Va(i.type)?(_p=v,lt=Jn(c.firstChild)):lt=v),en(a,i,i.pendingProps.children,s),mc(a,i),a===null&&(i.flags|=4194304),i.child;case 5:return a===null&&Le&&((v=c=lt)&&(c=QD(c,i.type,i.pendingProps,Wn),c!==null?(i.stateNode=c,Qt=i,lt=Jn(c.firstChild),Wn=!1,v=!0):v=!1),v||Pa(i)),xe(i),v=i.type,g=i.pendingProps,O=a!==null?a.memoizedProps:null,c=g.children,bp(v,g)?c=null:O!==null&&bp(v,O)&&(i.flags|=32),i.memoizedState!==null&&(v=gm(a,i,hD,null,null,s),bs._currentValue=v),mc(a,i),en(a,i,c,s),i.child;case 6:return a===null&&Le&&((a=s=lt)&&(s=JD(s,i.pendingProps,Wn),s!==null?(i.stateNode=s,Qt=i,lt=null,a=!0):a=!1),a||Pa(i)),null;case 13:return iw(a,i,s);case 4:return Ie(i,i.stateNode.containerInfo),c=i.pendingProps,a===null?i.child=Ci(i,null,c,s):en(a,i,c,s),i.child;case 11:return Z1(a,i,i.type,i.pendingProps,s);case 7:return en(a,i,i.pendingProps,s),i.child;case 8:return en(a,i,i.pendingProps.children,s),i.child;case 12:return en(a,i,i.pendingProps.children,s),i.child;case 10:return c=i.pendingProps,Ra(i,i.type,c.value),en(a,i,c.children,s),i.child;case 9:return v=i.type._context,c=i.pendingProps.children,Oi(i),v=Jt(v),c=c(v),i.flags|=1,en(a,i,c,s),i.child;case 14:return W1(a,i,i.type,i.pendingProps,s);case 15:return Q1(a,i,i.type,i.pendingProps,s);case 19:return ow(a,i,s);case 31:return wD(a,i,s);case 22:return J1(a,i,s,i.pendingProps);case 24:return Oi(i),c=Jt(At),a===null?(v=sm(),v===null&&(v=tt,g=lm(),v.pooledCache=g,g.refCount++,g!==null&&(v.pooledCacheLanes|=s),v=g),i.memoizedState={parent:c,cache:v},cm(i),Ra(i,At,v)):((a.lanes&s)!==0&&(fm(a,i),Jo(i,null,null,s),Qo()),v=a.memoizedState,g=i.memoizedState,v.parent!==c?(v={parent:c,cache:c},i.memoizedState=v,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=v),Ra(i,At,c)):(c=g.cache,Ra(i,At,c),c!==v.cache&&im(i,[At],s,!0))),en(a,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}function Zr(a){a.flags|=4}function Ym(a,i,s,c,v){if((i=(a.mode&32)!==0)&&(i=!1),i){if(a.flags|=16777216,(v&335544128)===v)if(a.stateNode.complete)a.flags|=8192;else if(Rw())a.flags|=8192;else throw Ei=Ju,um}else a.flags&=-16777217}function uw(a,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!_S(i))if(Rw())a.flags|=8192;else throw Ei=Ju,um}function vc(a,i){i!==null&&(a.flags|=4),a.flags&16384&&(i=a.tag!==22?qb():536870912,a.lanes|=i,$l|=i)}function is(a,i){if(!Le)switch(a.tailMode){case"hidden":i=a.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?a.tail=null:s.sibling=null;break;case"collapsed":s=a.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?i||a.tail===null?a.tail=null:a.tail.sibling=null:c.sibling=null}}function ot(a){var i=a.alternate!==null&&a.alternate.child===a.child,s=0,c=0;if(i)for(var v=a.child;v!==null;)s|=v.lanes|v.childLanes,c|=v.subtreeFlags&65011712,c|=v.flags&65011712,v.return=a,v=v.sibling;else for(v=a.child;v!==null;)s|=v.lanes|v.childLanes,c|=v.subtreeFlags,c|=v.flags,v.return=a,v=v.sibling;return a.subtreeFlags|=c,a.childLanes=s,i}function jD(a,i,s){var c=i.pendingProps;switch(em(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(i),null;case 1:return ot(i),null;case 3:return s=i.stateNode,c=null,a!==null&&(c=a.memoizedState.cache),i.memoizedState.cache!==c&&(i.flags|=2048),Yr(At),J(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(a===null||a.child===null)&&(Nl(i)?Zr(i):a===null||a.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,nm())),ot(i),null;case 26:var v=i.type,g=i.memoizedState;return a===null?(Zr(i),g!==null?(ot(i),uw(i,g)):(ot(i),Ym(i,v,null,c,s))):g?g!==a.memoizedState?(Zr(i),ot(i),uw(i,g)):(ot(i),i.flags&=-16777217):(a=a.memoizedProps,a!==c&&Zr(i),ot(i),Ym(i,v,a,c,s)),null;case 27:if(_e(i),s=ge.current,v=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&Zr(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return ot(i),null}a=ue.current,Nl(i)?qx(i):(a=vS(v,c,s),i.stateNode=a,Zr(i))}return ot(i),null;case 5:if(_e(i),v=i.type,a!==null&&i.stateNode!=null)a.memoizedProps!==c&&Zr(i);else{if(!c){if(i.stateNode===null)throw Error(r(166));return ot(i),null}if(g=ue.current,Nl(i))qx(i);else{var O=Mc(ge.current);switch(g){case 1:g=O.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:g=O.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":g=O.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":g=O.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":g=O.createElement("div"),g.innerHTML="<script><\/script>",g=g.removeChild(g.firstChild);break;case"select":g=typeof c.is=="string"?O.createElement("select",{is:c.is}):O.createElement("select"),c.multiple?g.multiple=!0:c.size&&(g.size=c.size);break;default:g=typeof c.is=="string"?O.createElement(v,{is:c.is}):O.createElement(v)}}g[Wt]=i,g[yn]=c;e:for(O=i.child;O!==null;){if(O.tag===5||O.tag===6)g.appendChild(O.stateNode);else if(O.tag!==4&&O.tag!==27&&O.child!==null){O.child.return=O,O=O.child;continue}if(O===i)break e;for(;O.sibling===null;){if(O.return===null||O.return===i)break e;O=O.return}O.sibling.return=O.return,O=O.sibling}i.stateNode=g;e:switch(tn(g,v,c),v){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Zr(i)}}return ot(i),Ym(i,i.type,a===null?null:a.memoizedProps,i.pendingProps,s),null;case 6:if(a&&i.stateNode!=null)a.memoizedProps!==c&&Zr(i);else{if(typeof c!="string"&&i.stateNode===null)throw Error(r(166));if(a=ge.current,Nl(i)){if(a=i.stateNode,s=i.memoizedProps,c=null,v=Qt,v!==null)switch(v.tag){case 27:case 5:c=v.memoizedProps}a[Wt]=i,a=!!(a.nodeValue===s||c!==null&&c.suppressHydrationWarning===!0||iS(a.nodeValue,s)),a||Pa(i,!0)}else a=Mc(a).createTextNode(c),a[Wt]=i,i.stateNode=a}return ot(i),null;case 31:if(s=i.memoizedState,a===null||a.memoizedState!==null){if(c=Nl(i),s!==null){if(a===null){if(!c)throw Error(r(318));if(a=i.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Wt]=i}else ji(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ot(i),a=!1}else s=nm(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=s),a=!0;if(!a)return i.flags&256?(zn(i),i):(zn(i),null);if((i.flags&128)!==0)throw Error(r(558))}return ot(i),null;case 13:if(c=i.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(v=Nl(i),c!==null&&c.dehydrated!==null){if(a===null){if(!v)throw Error(r(318));if(v=i.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[Wt]=i}else ji(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;ot(i),v=!1}else v=nm(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=v),v=!0;if(!v)return i.flags&256?(zn(i),i):(zn(i),null)}return zn(i),(i.flags&128)!==0?(i.lanes=s,i):(s=c!==null,a=a!==null&&a.memoizedState!==null,s&&(c=i.child,v=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(v=c.alternate.memoizedState.cachePool.pool),g=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(g=c.memoizedState.cachePool.pool),g!==v&&(c.flags|=2048)),s!==a&&s&&(i.child.flags|=8192),vc(i,i.updateQueue),ot(i),null);case 4:return J(),a===null&&mp(i.stateNode.containerInfo),ot(i),null;case 10:return Yr(i.type),ot(i),null;case 19:if(q(wt),c=i.memoizedState,c===null)return ot(i),null;if(v=(i.flags&128)!==0,g=c.rendering,g===null)if(v)is(c,!1);else{if(gt!==0||a!==null&&(a.flags&128)!==0)for(a=i.child;a!==null;){if(g=rc(a),g!==null){for(i.flags|=128,is(c,!1),a=g.updateQueue,i.updateQueue=a,vc(i,a),i.subtreeFlags=0,a=s,s=i.child;s!==null;)Lx(s,a),s=s.sibling;return ie(wt,wt.current&1|2),Le&&Fr(i,c.treeForkCount),i.child}a=a.sibling}c.tail!==null&&Zt()>wc&&(i.flags|=128,v=!0,is(c,!1),i.lanes=4194304)}else{if(!v)if(a=rc(g),a!==null){if(i.flags|=128,v=!0,a=a.updateQueue,i.updateQueue=a,vc(i,a),is(c,!0),c.tail===null&&c.tailMode==="hidden"&&!g.alternate&&!Le)return ot(i),null}else 2*Zt()-c.renderingStartTime>wc&&s!==536870912&&(i.flags|=128,v=!0,is(c,!1),i.lanes=4194304);c.isBackwards?(g.sibling=i.child,i.child=g):(a=c.last,a!==null?a.sibling=g:i.child=g,c.last=g)}return c.tail!==null?(a=c.tail,c.rendering=a,c.tail=a.sibling,c.renderingStartTime=Zt(),a.sibling=null,s=wt.current,ie(wt,v?s&1|2:s&1),Le&&Fr(i,c.treeForkCount),a):(ot(i),null);case 22:case 23:return zn(i),pm(),c=i.memoizedState!==null,a!==null?a.memoizedState!==null!==c&&(i.flags|=8192):c&&(i.flags|=8192),c?(s&536870912)!==0&&(i.flags&128)===0&&(ot(i),i.subtreeFlags&6&&(i.flags|=8192)):ot(i),s=i.updateQueue,s!==null&&vc(i,s.retryQueue),s=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),c=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),c!==s&&(i.flags|=2048),a!==null&&q(Ai),null;case 24:return s=null,a!==null&&(s=a.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Yr(At),ot(i),null;case 25:return null;case 30:return null}throw Error(r(156,i.tag))}function _D(a,i){switch(em(i),i.tag){case 1:return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 3:return Yr(At),J(),a=i.flags,(a&65536)!==0&&(a&128)===0?(i.flags=a&-65537|128,i):null;case 26:case 27:case 5:return _e(i),null;case 31:if(i.memoizedState!==null){if(zn(i),i.alternate===null)throw Error(r(340));ji()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 13:if(zn(i),a=i.memoizedState,a!==null&&a.dehydrated!==null){if(i.alternate===null)throw Error(r(340));ji()}return a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 19:return q(wt),null;case 4:return J(),null;case 10:return Yr(i.type),null;case 22:case 23:return zn(i),pm(),a!==null&&q(Ai),a=i.flags,a&65536?(i.flags=a&-65537|128,i):null;case 24:return Yr(At),null;case 25:return null;default:return null}}function cw(a,i){switch(em(i),i.tag){case 3:Yr(At),J();break;case 26:case 27:case 5:_e(i);break;case 4:J();break;case 31:i.memoizedState!==null&&zn(i);break;case 13:zn(i);break;case 19:q(wt);break;case 10:Yr(i.type);break;case 22:case 23:zn(i),pm(),a!==null&&q(Ai);break;case 24:Yr(At)}}function ls(a,i){try{var s=i.updateQueue,c=s!==null?s.lastEffect:null;if(c!==null){var v=c.next;s=v;do{if((s.tag&a)===a){c=void 0;var g=s.create,O=s.inst;c=g(),O.destroy=c}s=s.next}while(s!==v)}}catch(E){Ve(i,i.return,E)}}function Ua(a,i,s){try{var c=i.updateQueue,v=c!==null?c.lastEffect:null;if(v!==null){var g=v.next;c=g;do{if((c.tag&a)===a){var O=c.inst,E=O.destroy;if(E!==void 0){O.destroy=void 0,v=i;var z=s,K=E;try{K()}catch(ee){Ve(v,z,ee)}}}c=c.next}while(c!==g)}}catch(ee){Ve(i,i.return,ee)}}function fw(a){var i=a.updateQueue;if(i!==null){var s=a.stateNode;try{t1(i,s)}catch(c){Ve(a,a.return,c)}}}function dw(a,i,s){s.props=Mi(a.type,a.memoizedProps),s.state=a.memoizedState;try{s.componentWillUnmount()}catch(c){Ve(a,i,c)}}function os(a,i){try{var s=a.ref;if(s!==null){switch(a.tag){case 26:case 27:case 5:var c=a.stateNode;break;case 30:c=a.stateNode;break;default:c=a.stateNode}typeof s=="function"?a.refCleanup=s(c):s.current=c}}catch(v){Ve(a,i,v)}}function Nr(a,i){var s=a.ref,c=a.refCleanup;if(s!==null)if(typeof c=="function")try{c()}catch(v){Ve(a,i,v)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(v){Ve(a,i,v)}else s.current=null}function hw(a){var i=a.type,s=a.memoizedProps,c=a.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&c.focus();break e;case"img":s.src?c.src=s.src:s.srcSet&&(c.srcset=s.srcSet)}}catch(v){Ve(a,a.return,v)}}function Gm(a,i,s){try{var c=a.stateNode;YD(c,a.type,s,i),c[yn]=i}catch(v){Ve(a,a.return,v)}}function mw(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Va(a.type)||a.tag===4}function Vm(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||mw(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&Va(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function Xm(a,i,s){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s).insertBefore(a,i):(i=s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,i.appendChild(a),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=Ur));else if(c!==4&&(c===27&&Va(a.type)&&(s=a.stateNode,i=null),a=a.child,a!==null))for(Xm(a,i,s),a=a.sibling;a!==null;)Xm(a,i,s),a=a.sibling}function yc(a,i,s){var c=a.tag;if(c===5||c===6)a=a.stateNode,i?s.insertBefore(a,i):s.appendChild(a);else if(c!==4&&(c===27&&Va(a.type)&&(s=a.stateNode),a=a.child,a!==null))for(yc(a,i,s),a=a.sibling;a!==null;)yc(a,i,s),a=a.sibling}function pw(a){var i=a.stateNode,s=a.memoizedProps;try{for(var c=a.type,v=i.attributes;v.length;)i.removeAttributeNode(v[0]);tn(i,c,s),i[Wt]=a,i[yn]=s}catch(g){Ve(a,a.return,g)}}var Wr=!1,Ct=!1,Zm=!1,vw=typeof WeakSet=="function"?WeakSet:Set,Ht=null;function OD(a,i){if(a=a.containerInfo,yp=Bc,a=Ex(a),Hh(a)){if("selectionStart"in a)var s={start:a.selectionStart,end:a.selectionEnd};else e:{s=(s=a.ownerDocument)&&s.defaultView||window;var c=s.getSelection&&s.getSelection();if(c&&c.rangeCount!==0){s=c.anchorNode;var v=c.anchorOffset,g=c.focusNode;c=c.focusOffset;try{s.nodeType,g.nodeType}catch{s=null;break e}var O=0,E=-1,z=-1,K=0,ee=0,ae=a,G=null;t:for(;;){for(var W;ae!==s||v!==0&&ae.nodeType!==3||(E=O+v),ae!==g||c!==0&&ae.nodeType!==3||(z=O+c),ae.nodeType===3&&(O+=ae.nodeValue.length),(W=ae.firstChild)!==null;)G=ae,ae=W;for(;;){if(ae===a)break t;if(G===s&&++K===v&&(E=O),G===g&&++ee===c&&(z=O),(W=ae.nextSibling)!==null)break;ae=G,G=ae.parentNode}ae=W}s=E===-1||z===-1?null:{start:E,end:z}}else s=null}s=s||{start:0,end:0}}else s=null;for(gp={focusedElem:a,selectionRange:s},Bc=!1,Ht=i;Ht!==null;)if(i=Ht,a=i.child,(i.subtreeFlags&1028)!==0&&a!==null)a.return=i,Ht=a;else for(;Ht!==null;){switch(i=Ht,g=i.alternate,a=i.flags,i.tag){case 0:if((a&4)!==0&&(a=i.updateQueue,a=a!==null?a.events:null,a!==null))for(s=0;s<a.length;s++)v=a[s],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&g!==null){a=void 0,s=i,v=g.memoizedProps,g=g.memoizedState,c=s.stateNode;try{var ve=Mi(s.type,v);a=c.getSnapshotBeforeUpdate(ve,g),c.__reactInternalSnapshotBeforeUpdate=a}catch(je){Ve(s,s.return,je)}}break;case 3:if((a&1024)!==0){if(a=i.stateNode.containerInfo,s=a.nodeType,s===9)wp(a);else if(s===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":wp(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=i.sibling,a!==null){a.return=i.return,Ht=a;break}Ht=i.return}}function yw(a,i,s){var c=s.flags;switch(s.tag){case 0:case 11:case 15:Jr(a,s),c&4&&ls(5,s);break;case 1:if(Jr(a,s),c&4)if(a=s.stateNode,i===null)try{a.componentDidMount()}catch(O){Ve(s,s.return,O)}else{var v=Mi(s.type,i.memoizedProps);i=i.memoizedState;try{a.componentDidUpdate(v,i,a.__reactInternalSnapshotBeforeUpdate)}catch(O){Ve(s,s.return,O)}}c&64&&fw(s),c&512&&os(s,s.return);break;case 3:if(Jr(a,s),c&64&&(a=s.updateQueue,a!==null)){if(i=null,s.child!==null)switch(s.child.tag){case 27:case 5:i=s.child.stateNode;break;case 1:i=s.child.stateNode}try{t1(a,i)}catch(O){Ve(s,s.return,O)}}break;case 27:i===null&&c&4&&pw(s);case 26:case 5:Jr(a,s),i===null&&c&4&&hw(s),c&512&&os(s,s.return);break;case 12:Jr(a,s);break;case 31:Jr(a,s),c&4&&xw(a,s);break;case 13:Jr(a,s),c&4&&ww(a,s),c&64&&(a=s.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(s=PD.bind(null,s),ek(a,s))));break;case 22:if(c=s.memoizedState!==null||Wr,!c){i=i!==null&&i.memoizedState!==null||Ct,v=Wr;var g=Ct;Wr=c,(Ct=i)&&!g?ea(a,s,(s.subtreeFlags&8772)!==0):Jr(a,s),Wr=v,Ct=g}break;case 30:break;default:Jr(a,s)}}function gw(a){var i=a.alternate;i!==null&&(a.alternate=null,gw(i)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(i=a.stateNode,i!==null&&Ah(i)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var ct=null,bn=!1;function Qr(a,i,s){for(s=s.child;s!==null;)bw(a,i,s),s=s.sibling}function bw(a,i,s){if(Mn&&typeof Mn.onCommitFiberUnmount=="function")try{Mn.onCommitFiberUnmount(Ea,s)}catch{}switch(s.tag){case 26:Ct||Nr(s,i),Qr(a,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:Ct||Nr(s,i);var c=ct,v=bn;Va(s.type)&&(ct=s.stateNode,bn=!1),Qr(a,i,s),vs(s.stateNode),ct=c,bn=v;break;case 5:Ct||Nr(s,i);case 6:if(c=ct,v=bn,ct=null,Qr(a,i,s),ct=c,bn=v,ct!==null)if(bn)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(s.stateNode)}catch(g){Ve(s,i,g)}else try{ct.removeChild(s.stateNode)}catch(g){Ve(s,i,g)}break;case 18:ct!==null&&(bn?(a=ct,fS(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,s.stateNode),Vl(a)):fS(ct,s.stateNode));break;case 4:c=ct,v=bn,ct=s.stateNode.containerInfo,bn=!0,Qr(a,i,s),ct=c,bn=v;break;case 0:case 11:case 14:case 15:Ua(2,s,i),Ct||Ua(4,s,i),Qr(a,i,s);break;case 1:Ct||(Nr(s,i),c=s.stateNode,typeof c.componentWillUnmount=="function"&&dw(s,i,c)),Qr(a,i,s);break;case 21:Qr(a,i,s);break;case 22:Ct=(c=Ct)||s.memoizedState!==null,Qr(a,i,s),Ct=c;break;default:Qr(a,i,s)}}function xw(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Vl(a)}catch(s){Ve(i,i.return,s)}}}function ww(a,i){if(i.memoizedState===null&&(a=i.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Vl(a)}catch(s){Ve(i,i.return,s)}}function AD(a){switch(a.tag){case 31:case 13:case 19:var i=a.stateNode;return i===null&&(i=a.stateNode=new vw),i;case 22:return a=a.stateNode,i=a._retryCache,i===null&&(i=a._retryCache=new vw),i;default:throw Error(r(435,a.tag))}}function gc(a,i){var s=AD(a);i.forEach(function(c){if(!s.has(c)){s.add(c);var v=RD.bind(null,a,c);c.then(v,v)}})}function xn(a,i){var s=i.deletions;if(s!==null)for(var c=0;c<s.length;c++){var v=s[c],g=a,O=i,E=O;e:for(;E!==null;){switch(E.tag){case 27:if(Va(E.type)){ct=E.stateNode,bn=!1;break e}break;case 5:ct=E.stateNode,bn=!1;break e;case 3:case 4:ct=E.stateNode.containerInfo,bn=!0;break e}E=E.return}if(ct===null)throw Error(r(160));bw(g,O,v),ct=null,bn=!1,g=v.alternate,g!==null&&(g.return=null),v.return=null}if(i.subtreeFlags&13886)for(i=i.child;i!==null;)Sw(i,a),i=i.sibling}var mr=null;function Sw(a,i){var s=a.alternate,c=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:xn(i,a),wn(a),c&4&&(Ua(3,a,a.return),ls(3,a),Ua(5,a,a.return));break;case 1:xn(i,a),wn(a),c&512&&(Ct||s===null||Nr(s,s.return)),c&64&&Wr&&(a=a.updateQueue,a!==null&&(c=a.callbacks,c!==null&&(s=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=s===null?c:s.concat(c))));break;case 26:var v=mr;if(xn(i,a),wn(a),c&512&&(Ct||s===null||Nr(s,s.return)),c&4){var g=s!==null?s.memoizedState:null;if(c=a.memoizedState,s===null)if(c===null)if(a.stateNode===null){e:{c=a.type,s=a.memoizedProps,v=v.ownerDocument||v;t:switch(c){case"title":g=v.getElementsByTagName("title")[0],(!g||g[Po]||g[Wt]||g.namespaceURI==="http://www.w3.org/2000/svg"||g.hasAttribute("itemprop"))&&(g=v.createElement(c),v.head.insertBefore(g,v.querySelector("head > title"))),tn(g,c,s),g[Wt]=a,qt(g),c=g;break e;case"link":var O=SS("link","href",v).get(c+(s.href||""));if(O){for(var E=0;E<O.length;E++)if(g=O[E],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){O.splice(E,1);break t}}g=v.createElement(c),tn(g,c,s),v.head.appendChild(g);break;case"meta":if(O=SS("meta","content",v).get(c+(s.content||""))){for(E=0;E<O.length;E++)if(g=O[E],g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){O.splice(E,1);break t}}g=v.createElement(c),tn(g,c,s),v.head.appendChild(g);break;default:throw Error(r(468,c))}g[Wt]=a,qt(g),c=g}a.stateNode=c}else jS(v,a.type,a.stateNode);else a.stateNode=wS(v,c,a.memoizedProps);else g!==c?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,c===null?jS(v,a.type,a.stateNode):wS(v,c,a.memoizedProps)):c===null&&a.stateNode!==null&&Gm(a,a.memoizedProps,s.memoizedProps)}break;case 27:xn(i,a),wn(a),c&512&&(Ct||s===null||Nr(s,s.return)),s!==null&&c&4&&Gm(a,a.memoizedProps,s.memoizedProps);break;case 5:if(xn(i,a),wn(a),c&512&&(Ct||s===null||Nr(s,s.return)),a.flags&32){v=a.stateNode;try{yl(v,"")}catch(ve){Ve(a,a.return,ve)}}c&4&&a.stateNode!=null&&(v=a.memoizedProps,Gm(a,v,s!==null?s.memoizedProps:v)),c&1024&&(Zm=!0);break;case 6:if(xn(i,a),wn(a),c&4){if(a.stateNode===null)throw Error(r(162));c=a.memoizedProps,s=a.stateNode;try{s.nodeValue=c}catch(ve){Ve(a,a.return,ve)}}break;case 3:if(Pc=null,v=mr,mr=Dc(i.containerInfo),xn(i,a),mr=v,wn(a),c&4&&s!==null&&s.memoizedState.isDehydrated)try{Vl(i.containerInfo)}catch(ve){Ve(a,a.return,ve)}Zm&&(Zm=!1,jw(a));break;case 4:c=mr,mr=Dc(a.stateNode.containerInfo),xn(i,a),wn(a),mr=c;break;case 12:xn(i,a),wn(a);break;case 31:xn(i,a),wn(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,gc(a,c)));break;case 13:xn(i,a),wn(a),a.child.flags&8192&&a.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(xc=Zt()),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,gc(a,c)));break;case 22:v=a.memoizedState!==null;var z=s!==null&&s.memoizedState!==null,K=Wr,ee=Ct;if(Wr=K||v,Ct=ee||z,xn(i,a),Ct=ee,Wr=K,wn(a),c&8192)e:for(i=a.stateNode,i._visibility=v?i._visibility&-2:i._visibility|1,v&&(s===null||z||Wr||Ct||Di(a)),s=null,i=a;;){if(i.tag===5||i.tag===26){if(s===null){z=s=i;try{if(g=z.stateNode,v)O=g.style,typeof O.setProperty=="function"?O.setProperty("display","none","important"):O.display="none";else{E=z.stateNode;var ae=z.memoizedProps.style,G=ae!=null&&ae.hasOwnProperty("display")?ae.display:null;E.style.display=G==null||typeof G=="boolean"?"":(""+G).trim()}}catch(ve){Ve(z,z.return,ve)}}}else if(i.tag===6){if(s===null){z=i;try{z.stateNode.nodeValue=v?"":z.memoizedProps}catch(ve){Ve(z,z.return,ve)}}}else if(i.tag===18){if(s===null){z=i;try{var W=z.stateNode;v?dS(W,!0):dS(z.stateNode,!1)}catch(ve){Ve(z,z.return,ve)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===a)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===a)break e;for(;i.sibling===null;){if(i.return===null||i.return===a)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}c&4&&(c=a.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,gc(a,s))));break;case 19:xn(i,a),wn(a),c&4&&(c=a.updateQueue,c!==null&&(a.updateQueue=null,gc(a,c)));break;case 30:break;case 21:break;default:xn(i,a),wn(a)}}function wn(a){var i=a.flags;if(i&2){try{for(var s,c=a.return;c!==null;){if(mw(c)){s=c;break}c=c.return}if(s==null)throw Error(r(160));switch(s.tag){case 27:var v=s.stateNode,g=Vm(a);yc(a,g,v);break;case 5:var O=s.stateNode;s.flags&32&&(yl(O,""),s.flags&=-33);var E=Vm(a);yc(a,E,O);break;case 3:case 4:var z=s.stateNode.containerInfo,K=Vm(a);Xm(a,K,z);break;default:throw Error(r(161))}}catch(ee){Ve(a,a.return,ee)}a.flags&=-3}i&4096&&(a.flags&=-4097)}function jw(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var i=a;jw(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),a=a.sibling}}function Jr(a,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)yw(a,i.alternate,i),i=i.sibling}function Di(a){for(a=a.child;a!==null;){var i=a;switch(i.tag){case 0:case 11:case 14:case 15:Ua(4,i,i.return),Di(i);break;case 1:Nr(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&dw(i,i.return,s),Di(i);break;case 27:vs(i.stateNode);case 26:case 5:Nr(i,i.return),Di(i);break;case 22:i.memoizedState===null&&Di(i);break;case 30:Di(i);break;default:Di(i)}a=a.sibling}}function ea(a,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var c=i.alternate,v=a,g=i,O=g.flags;switch(g.tag){case 0:case 11:case 15:ea(v,g,s),ls(4,g);break;case 1:if(ea(v,g,s),c=g,v=c.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(K){Ve(c,c.return,K)}if(c=g,v=c.updateQueue,v!==null){var E=c.stateNode;try{var z=v.shared.hiddenCallbacks;if(z!==null)for(v.shared.hiddenCallbacks=null,v=0;v<z.length;v++)e1(z[v],E)}catch(K){Ve(c,c.return,K)}}s&&O&64&&fw(g),os(g,g.return);break;case 27:pw(g);case 26:case 5:ea(v,g,s),s&&c===null&&O&4&&hw(g),os(g,g.return);break;case 12:ea(v,g,s);break;case 31:ea(v,g,s),s&&O&4&&xw(v,g);break;case 13:ea(v,g,s),s&&O&4&&ww(v,g);break;case 22:g.memoizedState===null&&ea(v,g,s),os(g,g.return);break;case 30:break;default:ea(v,g,s)}i=i.sibling}}function Wm(a,i){var s=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(s=a.memoizedState.cachePool.pool),a=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(a=i.memoizedState.cachePool.pool),a!==s&&(a!=null&&a.refCount++,s!=null&&Go(s))}function Qm(a,i){a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&Go(a))}function pr(a,i,s,c){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)_w(a,i,s,c),i=i.sibling}function _w(a,i,s,c){var v=i.flags;switch(i.tag){case 0:case 11:case 15:pr(a,i,s,c),v&2048&&ls(9,i);break;case 1:pr(a,i,s,c);break;case 3:pr(a,i,s,c),v&2048&&(a=null,i.alternate!==null&&(a=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==a&&(i.refCount++,a!=null&&Go(a)));break;case 12:if(v&2048){pr(a,i,s,c),a=i.stateNode;try{var g=i.memoizedProps,O=g.id,E=g.onPostCommit;typeof E=="function"&&E(O,i.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(z){Ve(i,i.return,z)}}else pr(a,i,s,c);break;case 31:pr(a,i,s,c);break;case 13:pr(a,i,s,c);break;case 23:break;case 22:g=i.stateNode,O=i.alternate,i.memoizedState!==null?g._visibility&2?pr(a,i,s,c):ss(a,i):g._visibility&2?pr(a,i,s,c):(g._visibility|=2,Ll(a,i,s,c,(i.subtreeFlags&10256)!==0||!1)),v&2048&&Wm(O,i);break;case 24:pr(a,i,s,c),v&2048&&Qm(i.alternate,i);break;default:pr(a,i,s,c)}}function Ll(a,i,s,c,v){for(v=v&&((i.subtreeFlags&10256)!==0||!1),i=i.child;i!==null;){var g=a,O=i,E=s,z=c,K=O.flags;switch(O.tag){case 0:case 11:case 15:Ll(g,O,E,z,v),ls(8,O);break;case 23:break;case 22:var ee=O.stateNode;O.memoizedState!==null?ee._visibility&2?Ll(g,O,E,z,v):ss(g,O):(ee._visibility|=2,Ll(g,O,E,z,v)),v&&K&2048&&Wm(O.alternate,O);break;case 24:Ll(g,O,E,z,v),v&&K&2048&&Qm(O.alternate,O);break;default:Ll(g,O,E,z,v)}i=i.sibling}}function ss(a,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=a,c=i,v=c.flags;switch(c.tag){case 22:ss(s,c),v&2048&&Wm(c.alternate,c);break;case 24:ss(s,c),v&2048&&Qm(c.alternate,c);break;default:ss(s,c)}i=i.sibling}}var us=8192;function Bl(a,i,s){if(a.subtreeFlags&us)for(a=a.child;a!==null;)Ow(a,i,s),a=a.sibling}function Ow(a,i,s){switch(a.tag){case 26:Bl(a,i,s),a.flags&us&&a.memoizedState!==null&&dk(s,mr,a.memoizedState,a.memoizedProps);break;case 5:Bl(a,i,s);break;case 3:case 4:var c=mr;mr=Dc(a.stateNode.containerInfo),Bl(a,i,s),mr=c;break;case 22:a.memoizedState===null&&(c=a.alternate,c!==null&&c.memoizedState!==null?(c=us,us=16777216,Bl(a,i,s),us=c):Bl(a,i,s));break;default:Bl(a,i,s)}}function Aw(a){var i=a.alternate;if(i!==null&&(a=i.child,a!==null)){i.child=null;do i=a.sibling,a.sibling=null,a=i;while(a!==null)}}function cs(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var c=i[s];Ht=c,Ew(c,a)}Aw(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Nw(a),a=a.sibling}function Nw(a){switch(a.tag){case 0:case 11:case 15:cs(a),a.flags&2048&&Ua(9,a,a.return);break;case 3:cs(a);break;case 12:cs(a);break;case 22:var i=a.stateNode;a.memoizedState!==null&&i._visibility&2&&(a.return===null||a.return.tag!==13)?(i._visibility&=-3,bc(a)):cs(a);break;default:cs(a)}}function bc(a){var i=a.deletions;if((a.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var c=i[s];Ht=c,Ew(c,a)}Aw(a)}for(a=a.child;a!==null;){switch(i=a,i.tag){case 0:case 11:case 15:Ua(8,i,i.return),bc(i);break;case 22:s=i.stateNode,s._visibility&2&&(s._visibility&=-3,bc(i));break;default:bc(i)}a=a.sibling}}function Ew(a,i){for(;Ht!==null;){var s=Ht;switch(s.tag){case 0:case 11:case 15:Ua(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var c=s.memoizedState.cachePool.pool;c!=null&&c.refCount++}break;case 24:Go(s.memoizedState.cache)}if(c=s.child,c!==null)c.return=s,Ht=c;else e:for(s=a;Ht!==null;){c=Ht;var v=c.sibling,g=c.return;if(gw(c),c===s){Ht=null;break e}if(v!==null){v.return=g,Ht=v;break e}Ht=g}}}var ND={getCacheForType:function(a){var i=Jt(At),s=i.data.get(a);return s===void 0&&(s=a(),i.data.set(a,s)),s},cacheSignal:function(){return Jt(At).controller.signal}},ED=typeof WeakMap=="function"?WeakMap:Map,Fe=0,tt=null,ke=null,Re=0,Ge=0,Ln=null,qa=!1,Il=!1,Jm=!1,ta=0,gt=0,Ha=0,ki=0,ep=0,Bn=0,$l=0,fs=null,Sn=null,tp=!1,xc=0,Cw=0,wc=1/0,Sc=null,Fa=null,Rt=0,Ka=null,Ul=null,na=0,np=0,rp=null,Tw=null,ds=0,ap=null;function In(){return(Fe&2)!==0&&Re!==0?Re&-Re:U.T!==null?cp():Yb()}function Mw(){if(Bn===0)if((Re&536870912)===0||Le){var a=Tu;Tu<<=1,(Tu&3932160)===0&&(Tu=262144),Bn=a}else Bn=536870912;return a=Rn.current,a!==null&&(a.flags|=32),Bn}function jn(a,i,s){(a===tt&&(Ge===2||Ge===9)||a.cancelPendingCommit!==null)&&(ql(a,0),Ya(a,Re,Bn,!1)),ko(a,s),((Fe&2)===0||a!==tt)&&(a===tt&&((Fe&2)===0&&(ki|=s),gt===4&&Ya(a,Re,Bn,!1)),Er(a))}function Dw(a,i,s){if((Fe&6)!==0)throw Error(r(327));var c=!s&&(i&127)===0&&(i&a.expiredLanes)===0||Do(a,i),v=c?MD(a,i):lp(a,i,!0),g=c;do{if(v===0){Il&&!c&&Ya(a,i,0,!1);break}else{if(s=a.current.alternate,g&&!CD(s)){v=lp(a,i,!1),g=!1;continue}if(v===2){if(g=i,a.errorRecoveryDisabledLanes&g)var O=0;else O=a.pendingLanes&-536870913,O=O!==0?O:O&536870912?536870912:0;if(O!==0){i=O;e:{var E=a;v=fs;var z=E.current.memoizedState.isDehydrated;if(z&&(ql(E,O).flags|=256),O=lp(E,O,!1),O!==2){if(Jm&&!z){E.errorRecoveryDisabledLanes|=g,ki|=g,v=4;break e}g=Sn,Sn=v,g!==null&&(Sn===null?Sn=g:Sn.push.apply(Sn,g))}v=O}if(g=!1,v!==2)continue}}if(v===1){ql(a,0),Ya(a,i,0,!0);break}e:{switch(c=a,g=v,g){case 0:case 1:throw Error(r(345));case 4:if((i&4194048)!==i)break;case 6:Ya(c,i,Bn,!qa);break e;case 2:Sn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((i&62914560)===i&&(v=xc+300-Zt(),10<v)){if(Ya(c,i,Bn,!qa),Du(c,0,!0)!==0)break e;na=i,c.timeoutHandle=uS(kw.bind(null,c,s,Sn,Sc,tp,i,Bn,ki,$l,qa,g,"Throttled",-0,0),v);break e}kw(c,s,Sn,Sc,tp,i,Bn,ki,$l,qa,g,null,-0,0)}}break}while(!0);Er(a)}function kw(a,i,s,c,v,g,O,E,z,K,ee,ae,G,W){if(a.timeoutHandle=-1,ae=i.subtreeFlags,ae&8192||(ae&16785408)===16785408){ae={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ur},Ow(i,g,ae);var ve=(g&62914560)===g?xc-Zt():(g&4194048)===g?Cw-Zt():0;if(ve=hk(ae,ve),ve!==null){na=g,a.cancelPendingCommit=ve(Uw.bind(null,a,i,g,s,c,v,O,E,z,ee,ae,null,G,W)),Ya(a,g,O,!K);return}}Uw(a,i,g,s,c,v,O,E,z)}function CD(a){for(var i=a;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var c=0;c<s.length;c++){var v=s[c],g=v.getSnapshot;v=v.value;try{if(!kn(g(),v))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===a)break;for(;i.sibling===null;){if(i.return===null||i.return===a)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ya(a,i,s,c){i&=~ep,i&=~ki,a.suspendedLanes|=i,a.pingedLanes&=~i,c&&(a.warmLanes|=i),c=a.expirationTimes;for(var v=i;0<v;){var g=31-Dn(v),O=1<<g;c[g]=-1,v&=~O}s!==0&&Hb(a,s,i)}function jc(){return(Fe&6)===0?(hs(0),!1):!0}function ip(){if(ke!==null){if(Ge===0)var a=ke.return;else a=ke,Kr=_i=null,wm(a),Dl=null,Xo=0,a=ke;for(;a!==null;)cw(a.alternate,a),a=a.return;ke=null}}function ql(a,i){var s=a.timeoutHandle;s!==-1&&(a.timeoutHandle=-1,XD(s)),s=a.cancelPendingCommit,s!==null&&(a.cancelPendingCommit=null,s()),na=0,ip(),tt=a,ke=s=Hr(a.current,null),Re=i,Ge=0,Ln=null,qa=!1,Il=Do(a,i),Jm=!1,$l=Bn=ep=ki=Ha=gt=0,Sn=fs=null,tp=!1,(i&8)!==0&&(i|=i&32);var c=a.entangledLanes;if(c!==0)for(a=a.entanglements,c&=i;0<c;){var v=31-Dn(c),g=1<<v;i|=a[v],c&=~g}return ta=i,Fu(),s}function Pw(a,i){Ce=null,U.H=rs,i===Ml||i===Qu?(i=Zx(),Ge=3):i===um?(i=Zx(),Ge=4):Ge=i===Lm?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,Ln=i,ke===null&&(gt=1,dc(a,Vn(i,a.current)))}function Rw(){var a=Rn.current;return a===null?!0:(Re&4194048)===Re?Qn===null:(Re&62914560)===Re||(Re&536870912)!==0?a===Qn:!1}function zw(){var a=U.H;return U.H=rs,a===null?rs:a}function Lw(){var a=U.A;return U.A=ND,a}function _c(){gt=4,qa||(Re&4194048)!==Re&&Rn.current!==null||(Il=!0),(Ha&134217727)===0&&(ki&134217727)===0||tt===null||Ya(tt,Re,Bn,!1)}function lp(a,i,s){var c=Fe;Fe|=2;var v=zw(),g=Lw();(tt!==a||Re!==i)&&(Sc=null,ql(a,i)),i=!1;var O=gt;e:do try{if(Ge!==0&&ke!==null){var E=ke,z=Ln;switch(Ge){case 8:ip(),O=6;break e;case 3:case 2:case 9:case 6:Rn.current===null&&(i=!0);var K=Ge;if(Ge=0,Ln=null,Hl(a,E,z,K),s&&Il){O=0;break e}break;default:K=Ge,Ge=0,Ln=null,Hl(a,E,z,K)}}TD(),O=gt;break}catch(ee){Pw(a,ee)}while(!0);return i&&a.shellSuspendCounter++,Kr=_i=null,Fe=c,U.H=v,U.A=g,ke===null&&(tt=null,Re=0,Fu()),O}function TD(){for(;ke!==null;)Bw(ke)}function MD(a,i){var s=Fe;Fe|=2;var c=zw(),v=Lw();tt!==a||Re!==i?(Sc=null,wc=Zt()+500,ql(a,i)):Il=Do(a,i);e:do try{if(Ge!==0&&ke!==null){i=ke;var g=Ln;t:switch(Ge){case 1:Ge=0,Ln=null,Hl(a,i,g,1);break;case 2:case 9:if(Vx(g)){Ge=0,Ln=null,Iw(i);break}i=function(){Ge!==2&&Ge!==9||tt!==a||(Ge=7),Er(a)},g.then(i,i);break e;case 3:Ge=7;break e;case 4:Ge=5;break e;case 7:Vx(g)?(Ge=0,Ln=null,Iw(i)):(Ge=0,Ln=null,Hl(a,i,g,7));break;case 5:var O=null;switch(ke.tag){case 26:O=ke.memoizedState;case 5:case 27:var E=ke;if(O?_S(O):E.stateNode.complete){Ge=0,Ln=null;var z=E.sibling;if(z!==null)ke=z;else{var K=E.return;K!==null?(ke=K,Oc(K)):ke=null}break t}}Ge=0,Ln=null,Hl(a,i,g,5);break;case 6:Ge=0,Ln=null,Hl(a,i,g,6);break;case 8:ip(),gt=6;break e;default:throw Error(r(462))}}DD();break}catch(ee){Pw(a,ee)}while(!0);return Kr=_i=null,U.H=c,U.A=v,Fe=s,ke!==null?0:(tt=null,Re=0,Fu(),gt)}function DD(){for(;ke!==null&&!To();)Bw(ke)}function Bw(a){var i=sw(a.alternate,a,ta);a.memoizedProps=a.pendingProps,i===null?Oc(a):ke=i}function Iw(a){var i=a,s=i.alternate;switch(i.tag){case 15:case 0:i=nw(s,i,i.pendingProps,i.type,void 0,Re);break;case 11:i=nw(s,i,i.pendingProps,i.type.render,i.ref,Re);break;case 5:wm(i);default:cw(s,i),i=ke=Lx(i,ta),i=sw(s,i,ta)}a.memoizedProps=a.pendingProps,i===null?Oc(a):ke=i}function Hl(a,i,s,c){Kr=_i=null,wm(i),Dl=null,Xo=0;var v=i.return;try{if(xD(a,v,i,s,Re)){gt=1,dc(a,Vn(s,a.current)),ke=null;return}}catch(g){if(v!==null)throw ke=v,g;gt=1,dc(a,Vn(s,a.current)),ke=null;return}i.flags&32768?(Le||c===1?a=!0:Il||(Re&536870912)!==0?a=!1:(qa=a=!0,(c===2||c===9||c===3||c===6)&&(c=Rn.current,c!==null&&c.tag===13&&(c.flags|=16384))),$w(i,a)):Oc(i)}function Oc(a){var i=a;do{if((i.flags&32768)!==0){$w(i,qa);return}a=i.return;var s=jD(i.alternate,i,ta);if(s!==null){ke=s;return}if(i=i.sibling,i!==null){ke=i;return}ke=i=a}while(i!==null);gt===0&&(gt=5)}function $w(a,i){do{var s=_D(a.alternate,a);if(s!==null){s.flags&=32767,ke=s;return}if(s=a.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(a=a.sibling,a!==null)){ke=a;return}ke=a=s}while(a!==null);gt=6,ke=null}function Uw(a,i,s,c,v,g,O,E,z){a.cancelPendingCommit=null;do Ac();while(Rt!==0);if((Fe&6)!==0)throw Error(r(327));if(i!==null){if(i===a.current)throw Error(r(177));if(g=i.lanes|i.childLanes,g|=Vh,f3(a,s,g,O,E,z),a===tt&&(ke=tt=null,Re=0),Ul=i,Ka=a,na=s,np=g,rp=v,Tw=c,(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,zD(mt,function(){return Yw(),null})):(a.callbackNode=null,a.callbackPriority=0),c=(i.flags&13878)!==0,(i.subtreeFlags&13878)!==0||c){c=U.T,U.T=null,v=Q.p,Q.p=2,O=Fe,Fe|=4;try{OD(a,i,s)}finally{Fe=O,Q.p=v,U.T=c}}Rt=1,qw(),Hw(),Fw()}}function qw(){if(Rt===1){Rt=0;var a=Ka,i=Ul,s=(i.flags&13878)!==0;if((i.subtreeFlags&13878)!==0||s){s=U.T,U.T=null;var c=Q.p;Q.p=2;var v=Fe;Fe|=4;try{Sw(i,a);var g=gp,O=Ex(a.containerInfo),E=g.focusedElem,z=g.selectionRange;if(O!==E&&E&&E.ownerDocument&&Nx(E.ownerDocument.documentElement,E)){if(z!==null&&Hh(E)){var K=z.start,ee=z.end;if(ee===void 0&&(ee=K),"selectionStart"in E)E.selectionStart=K,E.selectionEnd=Math.min(ee,E.value.length);else{var ae=E.ownerDocument||document,G=ae&&ae.defaultView||window;if(G.getSelection){var W=G.getSelection(),ve=E.textContent.length,je=Math.min(z.start,ve),Qe=z.end===void 0?je:Math.min(z.end,ve);!W.extend&&je>Qe&&(O=Qe,Qe=je,je=O);var I=Ax(E,je),L=Ax(E,Qe);if(I&&L&&(W.rangeCount!==1||W.anchorNode!==I.node||W.anchorOffset!==I.offset||W.focusNode!==L.node||W.focusOffset!==L.offset)){var F=ae.createRange();F.setStart(I.node,I.offset),W.removeAllRanges(),je>Qe?(W.addRange(F),W.extend(L.node,L.offset)):(F.setEnd(L.node,L.offset),W.addRange(F))}}}}for(ae=[],W=E;W=W.parentNode;)W.nodeType===1&&ae.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<ae.length;E++){var ne=ae[E];ne.element.scrollLeft=ne.left,ne.element.scrollTop=ne.top}}Bc=!!yp,gp=yp=null}finally{Fe=v,Q.p=c,U.T=s}}a.current=i,Rt=2}}function Hw(){if(Rt===2){Rt=0;var a=Ka,i=Ul,s=(i.flags&8772)!==0;if((i.subtreeFlags&8772)!==0||s){s=U.T,U.T=null;var c=Q.p;Q.p=2;var v=Fe;Fe|=4;try{yw(a,i.alternate,i)}finally{Fe=v,Q.p=c,U.T=s}}Rt=3}}function Fw(){if(Rt===4||Rt===3){Rt=0,Mo();var a=Ka,i=Ul,s=na,c=Tw;(i.subtreeFlags&10256)!==0||(i.flags&10256)!==0?Rt=5:(Rt=0,Ul=Ka=null,Kw(a,a.pendingLanes));var v=a.pendingLanes;if(v===0&&(Fa=null),_h(s),i=i.stateNode,Mn&&typeof Mn.onCommitFiberRoot=="function")try{Mn.onCommitFiberRoot(Ea,i,void 0,(i.current.flags&128)===128)}catch{}if(c!==null){i=U.T,v=Q.p,Q.p=2,U.T=null;try{for(var g=a.onRecoverableError,O=0;O<c.length;O++){var E=c[O];g(E.value,{componentStack:E.stack})}}finally{U.T=i,Q.p=v}}(na&3)!==0&&Ac(),Er(a),v=a.pendingLanes,(s&261930)!==0&&(v&42)!==0?a===ap?ds++:(ds=0,ap=a):ds=0,hs(0)}}function Kw(a,i){(a.pooledCacheLanes&=i)===0&&(i=a.pooledCache,i!=null&&(a.pooledCache=null,Go(i)))}function Ac(){return qw(),Hw(),Fw(),Yw()}function Yw(){if(Rt!==5)return!1;var a=Ka,i=np;np=0;var s=_h(na),c=U.T,v=Q.p;try{Q.p=32>s?32:s,U.T=null,s=rp,rp=null;var g=Ka,O=na;if(Rt=0,Ul=Ka=null,na=0,(Fe&6)!==0)throw Error(r(331));var E=Fe;if(Fe|=4,Nw(g.current),_w(g,g.current,O,s),Fe=E,hs(0,!1),Mn&&typeof Mn.onPostCommitFiberRoot=="function")try{Mn.onPostCommitFiberRoot(Ea,g)}catch{}return!0}finally{Q.p=v,U.T=c,Kw(a,i)}}function Gw(a,i,s){i=Vn(s,i),i=zm(a.stateNode,i,2),a=Ba(a,i,2),a!==null&&(ko(a,2),Er(a))}function Ve(a,i,s){if(a.tag===3)Gw(a,a,s);else for(;i!==null;){if(i.tag===3){Gw(i,a,s);break}else if(i.tag===1){var c=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Fa===null||!Fa.has(c))){a=Vn(s,a),s=V1(2),c=Ba(i,s,2),c!==null&&(X1(s,c,i,a),ko(c,2),Er(c));break}}i=i.return}}function op(a,i,s){var c=a.pingCache;if(c===null){c=a.pingCache=new ED;var v=new Set;c.set(i,v)}else v=c.get(i),v===void 0&&(v=new Set,c.set(i,v));v.has(s)||(Jm=!0,v.add(s),a=kD.bind(null,a,i,s),i.then(a,a))}function kD(a,i,s){var c=a.pingCache;c!==null&&c.delete(i),a.pingedLanes|=a.suspendedLanes&s,a.warmLanes&=~s,tt===a&&(Re&s)===s&&(gt===4||gt===3&&(Re&62914560)===Re&&300>Zt()-xc?(Fe&2)===0&&ql(a,0):ep|=s,$l===Re&&($l=0)),Er(a)}function Vw(a,i){i===0&&(i=qb()),a=wi(a,i),a!==null&&(ko(a,i),Er(a))}function PD(a){var i=a.memoizedState,s=0;i!==null&&(s=i.retryLane),Vw(a,s)}function RD(a,i){var s=0;switch(a.tag){case 31:case 13:var c=a.stateNode,v=a.memoizedState;v!==null&&(s=v.retryLane);break;case 19:c=a.stateNode;break;case 22:c=a.stateNode._retryCache;break;default:throw Error(r(314))}c!==null&&c.delete(i),Vw(a,s)}function zD(a,i){return pi(a,i)}var Nc=null,Fl=null,sp=!1,Ec=!1,up=!1,Ga=0;function Er(a){a!==Fl&&a.next===null&&(Fl===null?Nc=Fl=a:Fl=Fl.next=a),Ec=!0,sp||(sp=!0,BD())}function hs(a,i){if(!up&&Ec){up=!0;do for(var s=!1,c=Nc;c!==null;){if(a!==0){var v=c.pendingLanes;if(v===0)var g=0;else{var O=c.suspendedLanes,E=c.pingedLanes;g=(1<<31-Dn(42|a)+1)-1,g&=v&~(O&~E),g=g&201326741?g&201326741|1:g?g|2:0}g!==0&&(s=!0,Qw(c,g))}else g=Re,g=Du(c,c===tt?g:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),(g&3)===0||Do(c,g)||(s=!0,Qw(c,g));c=c.next}while(s);up=!1}}function LD(){Xw()}function Xw(){Ec=sp=!1;var a=0;Ga!==0&&VD()&&(a=Ga);for(var i=Zt(),s=null,c=Nc;c!==null;){var v=c.next,g=Zw(c,i);g===0?(c.next=null,s===null?Nc=v:s.next=v,v===null&&(Fl=s)):(s=c,(a!==0||(g&3)!==0)&&(Ec=!0)),c=v}Rt!==0&&Rt!==5||hs(a),Ga!==0&&(Ga=0)}function Zw(a,i){for(var s=a.suspendedLanes,c=a.pingedLanes,v=a.expirationTimes,g=a.pendingLanes&-62914561;0<g;){var O=31-Dn(g),E=1<<O,z=v[O];z===-1?((E&s)===0||(E&c)!==0)&&(v[O]=c3(E,i)):z<=i&&(a.expiredLanes|=E),g&=~E}if(i=tt,s=Re,s=Du(a,a===i?s:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c=a.callbackNode,s===0||a===i&&(Ge===2||Ge===9)||a.cancelPendingCommit!==null)return c!==null&&c!==null&&dr(c),a.callbackNode=null,a.callbackPriority=0;if((s&3)===0||Do(a,s)){if(i=s&-s,i===a.callbackPriority)return i;switch(c!==null&&dr(c),_h(s)){case 2:case 8:s=Ye;break;case 32:s=mt;break;case 268435456:s=_r;break;default:s=mt}return c=Ww.bind(null,a),s=pi(s,c),a.callbackPriority=i,a.callbackNode=s,i}return c!==null&&c!==null&&dr(c),a.callbackPriority=2,a.callbackNode=null,2}function Ww(a,i){if(Rt!==0&&Rt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var s=a.callbackNode;if(Ac()&&a.callbackNode!==s)return null;var c=Re;return c=Du(a,a===tt?c:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),c===0?null:(Dw(a,c,i),Zw(a,Zt()),a.callbackNode!=null&&a.callbackNode===s?Ww.bind(null,a):null)}function Qw(a,i){if(Ac())return null;Dw(a,i,!0)}function BD(){ZD(function(){(Fe&6)!==0?pi(Ne,LD):Xw()})}function cp(){if(Ga===0){var a=Cl;a===0&&(a=Cu,Cu<<=1,(Cu&261888)===0&&(Cu=256)),Ga=a}return Ga}function Jw(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:zu(""+a)}function eS(a,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,a.id&&s.setAttribute("form",a.id),i.parentNode.insertBefore(s,i),a=new FormData(a),s.parentNode.removeChild(s),a}function ID(a,i,s,c,v){if(i==="submit"&&s&&s.stateNode===v){var g=Jw((v[yn]||null).action),O=c.submitter;O&&(i=(i=O[yn]||null)?Jw(i.formAction):O.getAttribute("formAction"),i!==null&&(g=i,O=null));var E=new $u("action","action",null,c,v);a.push({event:E,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ga!==0){var z=O?eS(v,O):new FormData(v);Tm(s,{pending:!0,data:z,method:v.method,action:g},null,z)}}else typeof g=="function"&&(E.preventDefault(),z=O?eS(v,O):new FormData(v),Tm(s,{pending:!0,data:z,method:v.method,action:g},g,z))},currentTarget:v}]})}}for(var fp=0;fp<Gh.length;fp++){var dp=Gh[fp],$D=dp.toLowerCase(),UD=dp[0].toUpperCase()+dp.slice(1);hr($D,"on"+UD)}hr(Mx,"onAnimationEnd"),hr(Dx,"onAnimationIteration"),hr(kx,"onAnimationStart"),hr("dblclick","onDoubleClick"),hr("focusin","onFocus"),hr("focusout","onBlur"),hr(rD,"onTransitionRun"),hr(aD,"onTransitionStart"),hr(iD,"onTransitionCancel"),hr(Px,"onTransitionEnd"),pl("onMouseEnter",["mouseout","mouseover"]),pl("onMouseLeave",["mouseout","mouseover"]),pl("onPointerEnter",["pointerout","pointerover"]),pl("onPointerLeave",["pointerout","pointerover"]),yi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yi("onBeforeInput",["compositionend","keypress","textInput","paste"]),yi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ms="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(" "),qD=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ms));function tS(a,i){i=(i&4)!==0;for(var s=0;s<a.length;s++){var c=a[s],v=c.event;c=c.listeners;e:{var g=void 0;if(i)for(var O=c.length-1;0<=O;O--){var E=c[O],z=E.instance,K=E.currentTarget;if(E=E.listener,z!==g&&v.isPropagationStopped())break e;g=E,v.currentTarget=K;try{g(v)}catch(ee){Hu(ee)}v.currentTarget=null,g=z}else for(O=0;O<c.length;O++){if(E=c[O],z=E.instance,K=E.currentTarget,E=E.listener,z!==g&&v.isPropagationStopped())break e;g=E,v.currentTarget=K;try{g(v)}catch(ee){Hu(ee)}v.currentTarget=null,g=z}}}}function Pe(a,i){var s=i[Oh];s===void 0&&(s=i[Oh]=new Set);var c=a+"__bubble";s.has(c)||(nS(i,a,2,!1),s.add(c))}function hp(a,i,s){var c=0;i&&(c|=4),nS(s,a,c,i)}var Cc="_reactListening"+Math.random().toString(36).slice(2);function mp(a){if(!a[Cc]){a[Cc]=!0,Xb.forEach(function(s){s!=="selectionchange"&&(qD.has(s)||hp(s,!1,a),hp(s,!0,a))});var i=a.nodeType===9?a:a.ownerDocument;i===null||i[Cc]||(i[Cc]=!0,hp("selectionchange",!1,i))}}function nS(a,i,s,c){switch(MS(i)){case 2:var v=vk;break;case 8:v=yk;break;default:v=Cp}s=v.bind(null,i,s,a),v=void 0,!Ph||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(v=!0),c?v!==void 0?a.addEventListener(i,s,{capture:!0,passive:v}):a.addEventListener(i,s,!0):v!==void 0?a.addEventListener(i,s,{passive:v}):a.addEventListener(i,s,!1)}function pp(a,i,s,c,v){var g=c;if((i&1)===0&&(i&2)===0&&c!==null)e:for(;;){if(c===null)return;var O=c.tag;if(O===3||O===4){var E=c.stateNode.containerInfo;if(E===v)break;if(O===4)for(O=c.return;O!==null;){var z=O.tag;if((z===3||z===4)&&O.stateNode.containerInfo===v)return;O=O.return}for(;E!==null;){if(O=dl(E),O===null)return;if(z=O.tag,z===5||z===6||z===26||z===27){c=g=O;continue e}E=E.parentNode}}c=c.return}ox(function(){var K=g,ee=Dh(s),ae=[];e:{var G=Rx.get(a);if(G!==void 0){var W=$u,ve=a;switch(a){case"keypress":if(Bu(s)===0)break e;case"keydown":case"keyup":W=R3;break;case"focusin":ve="focus",W=Bh;break;case"focusout":ve="blur",W=Bh;break;case"beforeblur":case"afterblur":W=Bh;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=cx;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=j3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=B3;break;case Mx:case Dx:case kx:W=A3;break;case Px:W=$3;break;case"scroll":case"scrollend":W=w3;break;case"wheel":W=q3;break;case"copy":case"cut":case"paste":W=E3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=dx;break;case"toggle":case"beforetoggle":W=F3}var je=(i&4)!==0,Qe=!je&&(a==="scroll"||a==="scrollend"),I=je?G!==null?G+"Capture":null:G;je=[];for(var L=K,F;L!==null;){var ne=L;if(F=ne.stateNode,ne=ne.tag,ne!==5&&ne!==26&&ne!==27||F===null||I===null||(ne=zo(L,I),ne!=null&&je.push(ps(L,ne,F))),Qe)break;L=L.return}0<je.length&&(G=new W(G,ve,null,s,ee),ae.push({event:G,listeners:je}))}}if((i&7)===0){e:{if(G=a==="mouseover"||a==="pointerover",W=a==="mouseout"||a==="pointerout",G&&s!==Mh&&(ve=s.relatedTarget||s.fromElement)&&(dl(ve)||ve[fl]))break e;if((W||G)&&(G=ee.window===ee?ee:(G=ee.ownerDocument)?G.defaultView||G.parentWindow:window,W?(ve=s.relatedTarget||s.toElement,W=K,ve=ve?dl(ve):null,ve!==null&&(Qe=o(ve),je=ve.tag,ve!==Qe||je!==5&&je!==27&&je!==6)&&(ve=null)):(W=null,ve=K),W!==ve)){if(je=cx,ne="onMouseLeave",I="onMouseEnter",L="mouse",(a==="pointerout"||a==="pointerover")&&(je=dx,ne="onPointerLeave",I="onPointerEnter",L="pointer"),Qe=W==null?G:Ro(W),F=ve==null?G:Ro(ve),G=new je(ne,L+"leave",W,s,ee),G.target=Qe,G.relatedTarget=F,ne=null,dl(ee)===K&&(je=new je(I,L+"enter",ve,s,ee),je.target=F,je.relatedTarget=Qe,ne=je),Qe=ne,W&&ve)t:{for(je=HD,I=W,L=ve,F=0,ne=I;ne;ne=je(ne))F++;ne=0;for(var we=L;we;we=je(we))ne++;for(;0<F-ne;)I=je(I),F--;for(;0<ne-F;)L=je(L),ne--;for(;F--;){if(I===L||L!==null&&I===L.alternate){je=I;break t}I=je(I),L=je(L)}je=null}else je=null;W!==null&&rS(ae,G,W,je,!1),ve!==null&&Qe!==null&&rS(ae,Qe,ve,je,!0)}}e:{if(G=K?Ro(K):window,W=G.nodeName&&G.nodeName.toLowerCase(),W==="select"||W==="input"&&G.type==="file")var $e=xx;else if(gx(G))if(wx)$e=eD;else{$e=Q3;var be=W3}else W=G.nodeName,!W||W.toLowerCase()!=="input"||G.type!=="checkbox"&&G.type!=="radio"?K&&Th(K.elementType)&&($e=xx):$e=J3;if($e&&($e=$e(a,K))){bx(ae,$e,s,ee);break e}be&&be(a,G,K),a==="focusout"&&K&&G.type==="number"&&K.memoizedProps.value!=null&&Ch(G,"number",G.value)}switch(be=K?Ro(K):window,a){case"focusin":(gx(be)||be.contentEditable==="true")&&(wl=be,Fh=K,Fo=null);break;case"focusout":Fo=Fh=wl=null;break;case"mousedown":Kh=!0;break;case"contextmenu":case"mouseup":case"dragend":Kh=!1,Cx(ae,s,ee);break;case"selectionchange":if(nD)break;case"keydown":case"keyup":Cx(ae,s,ee)}var Me;if($h)e:{switch(a){case"compositionstart":var ze="onCompositionStart";break e;case"compositionend":ze="onCompositionEnd";break e;case"compositionupdate":ze="onCompositionUpdate";break e}ze=void 0}else xl?vx(a,s)&&(ze="onCompositionEnd"):a==="keydown"&&s.keyCode===229&&(ze="onCompositionStart");ze&&(hx&&s.locale!=="ko"&&(xl||ze!=="onCompositionStart"?ze==="onCompositionEnd"&&xl&&(Me=sx()):(Ma=ee,Rh="value"in Ma?Ma.value:Ma.textContent,xl=!0)),be=Tc(K,ze),0<be.length&&(ze=new fx(ze,a,null,s,ee),ae.push({event:ze,listeners:be}),Me?ze.data=Me:(Me=yx(s),Me!==null&&(ze.data=Me)))),(Me=Y3?G3(a,s):V3(a,s))&&(ze=Tc(K,"onBeforeInput"),0<ze.length&&(be=new fx("onBeforeInput","beforeinput",null,s,ee),ae.push({event:be,listeners:ze}),be.data=Me)),ID(ae,a,K,s,ee)}tS(ae,i)})}function ps(a,i,s){return{instance:a,listener:i,currentTarget:s}}function Tc(a,i){for(var s=i+"Capture",c=[];a!==null;){var v=a,g=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||g===null||(v=zo(a,s),v!=null&&c.unshift(ps(a,v,g)),v=zo(a,i),v!=null&&c.push(ps(a,v,g))),a.tag===3)return c;a=a.return}return[]}function HD(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function rS(a,i,s,c,v){for(var g=i._reactName,O=[];s!==null&&s!==c;){var E=s,z=E.alternate,K=E.stateNode;if(E=E.tag,z!==null&&z===c)break;E!==5&&E!==26&&E!==27||K===null||(z=K,v?(K=zo(s,g),K!=null&&O.unshift(ps(s,K,z))):v||(K=zo(s,g),K!=null&&O.push(ps(s,K,z)))),s=s.return}O.length!==0&&a.push({event:i,listeners:O})}var FD=/\r\n?/g,KD=/\u0000|\uFFFD/g;function aS(a){return(typeof a=="string"?a:""+a).replace(FD,`
`).replace(KD,"")}function iS(a,i){return i=aS(i),aS(a)===i}function We(a,i,s,c,v,g){switch(s){case"children":typeof c=="string"?i==="body"||i==="textarea"&&c===""||yl(a,c):(typeof c=="number"||typeof c=="bigint")&&i!=="body"&&yl(a,""+c);break;case"className":Pu(a,"class",c);break;case"tabIndex":Pu(a,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":Pu(a,s,c);break;case"style":ix(a,c,g);break;case"data":if(i!=="object"){Pu(a,"data",c);break}case"src":case"href":if(c===""&&(i!=="a"||s!=="href")){a.removeAttribute(s);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(s);break}c=zu(""+c),a.setAttribute(s,c);break;case"action":case"formAction":if(typeof c=="function"){a.setAttribute(s,"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 g=="function"&&(s==="formAction"?(i!=="input"&&We(a,i,"name",v.name,v,null),We(a,i,"formEncType",v.formEncType,v,null),We(a,i,"formMethod",v.formMethod,v,null),We(a,i,"formTarget",v.formTarget,v,null)):(We(a,i,"encType",v.encType,v,null),We(a,i,"method",v.method,v,null),We(a,i,"target",v.target,v,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){a.removeAttribute(s);break}c=zu(""+c),a.setAttribute(s,c);break;case"onClick":c!=null&&(a.onclick=Ur);break;case"onScroll":c!=null&&Pe("scroll",a);break;case"onScrollEnd":c!=null&&Pe("scrollend",a);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(s=c.__html,s!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=s}}break;case"multiple":a.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":a.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){a.removeAttribute("xlink:href");break}s=zu(""+c),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(s,""+c):a.removeAttribute(s);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":c&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(s,""):a.removeAttribute(s);break;case"capture":case"download":c===!0?a.setAttribute(s,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?a.setAttribute(s,c):a.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?a.setAttribute(s,c):a.removeAttribute(s);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?a.removeAttribute(s):a.setAttribute(s,c);break;case"popover":Pe("beforetoggle",a),Pe("toggle",a),ku(a,"popover",c);break;case"xlinkActuate":$r(a,"http://www.w3.org/1999/xlink","xlink:actuate",c);break;case"xlinkArcrole":$r(a,"http://www.w3.org/1999/xlink","xlink:arcrole",c);break;case"xlinkRole":$r(a,"http://www.w3.org/1999/xlink","xlink:role",c);break;case"xlinkShow":$r(a,"http://www.w3.org/1999/xlink","xlink:show",c);break;case"xlinkTitle":$r(a,"http://www.w3.org/1999/xlink","xlink:title",c);break;case"xlinkType":$r(a,"http://www.w3.org/1999/xlink","xlink:type",c);break;case"xmlBase":$r(a,"http://www.w3.org/XML/1998/namespace","xml:base",c);break;case"xmlLang":$r(a,"http://www.w3.org/XML/1998/namespace","xml:lang",c);break;case"xmlSpace":$r(a,"http://www.w3.org/XML/1998/namespace","xml:space",c);break;case"is":ku(a,"is",c);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=b3.get(s)||s,ku(a,s,c))}}function vp(a,i,s,c,v,g){switch(s){case"style":ix(a,c,g);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error(r(61));if(s=c.__html,s!=null){if(v.children!=null)throw Error(r(60));a.innerHTML=s}}break;case"children":typeof c=="string"?yl(a,c):(typeof c=="number"||typeof c=="bigint")&&yl(a,""+c);break;case"onScroll":c!=null&&Pe("scroll",a);break;case"onScrollEnd":c!=null&&Pe("scrollend",a);break;case"onClick":c!=null&&(a.onclick=Ur);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Zb.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(v=s.endsWith("Capture"),i=s.slice(2,v?s.length-7:void 0),g=a[yn]||null,g=g!=null?g[s]:null,typeof g=="function"&&a.removeEventListener(i,g,v),typeof c=="function")){typeof g!="function"&&g!==null&&(s in a?a[s]=null:a.hasAttribute(s)&&a.removeAttribute(s)),a.addEventListener(i,c,v);break e}s in a?a[s]=c:c===!0?a.setAttribute(s,""):ku(a,s,c)}}}function tn(a,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Pe("error",a),Pe("load",a);var c=!1,v=!1,g;for(g in s)if(s.hasOwnProperty(g)){var O=s[g];if(O!=null)switch(g){case"src":c=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:We(a,i,g,O,s,null)}}v&&We(a,i,"srcSet",s.srcSet,s,null),c&&We(a,i,"src",s.src,s,null);return;case"input":Pe("invalid",a);var E=g=O=v=null,z=null,K=null;for(c in s)if(s.hasOwnProperty(c)){var ee=s[c];if(ee!=null)switch(c){case"name":v=ee;break;case"type":O=ee;break;case"checked":z=ee;break;case"defaultChecked":K=ee;break;case"value":g=ee;break;case"defaultValue":E=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,i));break;default:We(a,i,c,ee,s,null)}}tx(a,g,E,z,K,O,v,!1);return;case"select":Pe("invalid",a),c=O=g=null;for(v in s)if(s.hasOwnProperty(v)&&(E=s[v],E!=null))switch(v){case"value":g=E;break;case"defaultValue":O=E;break;case"multiple":c=E;default:We(a,i,v,E,s,null)}i=g,s=O,a.multiple=!!c,i!=null?vl(a,!!c,i,!1):s!=null&&vl(a,!!c,s,!0);return;case"textarea":Pe("invalid",a),g=v=c=null;for(O in s)if(s.hasOwnProperty(O)&&(E=s[O],E!=null))switch(O){case"value":c=E;break;case"defaultValue":v=E;break;case"children":g=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(r(91));break;default:We(a,i,O,E,s,null)}rx(a,c,v,g);return;case"option":for(z in s)if(s.hasOwnProperty(z)&&(c=s[z],c!=null))switch(z){case"selected":a.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:We(a,i,z,c,s,null)}return;case"dialog":Pe("beforetoggle",a),Pe("toggle",a),Pe("cancel",a),Pe("close",a);break;case"iframe":case"object":Pe("load",a);break;case"video":case"audio":for(c=0;c<ms.length;c++)Pe(ms[c],a);break;case"image":Pe("error",a),Pe("load",a);break;case"details":Pe("toggle",a);break;case"embed":case"source":case"link":Pe("error",a),Pe("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in s)if(s.hasOwnProperty(K)&&(c=s[K],c!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:We(a,i,K,c,s,null)}return;default:if(Th(i)){for(ee in s)s.hasOwnProperty(ee)&&(c=s[ee],c!==void 0&&vp(a,i,ee,c,s,void 0));return}}for(E in s)s.hasOwnProperty(E)&&(c=s[E],c!=null&&We(a,i,E,c,s,null))}function YD(a,i,s,c){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,g=null,O=null,E=null,z=null,K=null,ee=null;for(W in s){var ae=s[W];if(s.hasOwnProperty(W)&&ae!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":z=ae;default:c.hasOwnProperty(W)||We(a,i,W,null,c,ae)}}for(var G in c){var W=c[G];if(ae=s[G],c.hasOwnProperty(G)&&(W!=null||ae!=null))switch(G){case"type":g=W;break;case"name":v=W;break;case"checked":K=W;break;case"defaultChecked":ee=W;break;case"value":O=W;break;case"defaultValue":E=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(r(137,i));break;default:W!==ae&&We(a,i,G,W,c,ae)}}Eh(a,O,E,z,K,ee,g,v);return;case"select":W=O=E=G=null;for(g in s)if(z=s[g],s.hasOwnProperty(g)&&z!=null)switch(g){case"value":break;case"multiple":W=z;default:c.hasOwnProperty(g)||We(a,i,g,null,c,z)}for(v in c)if(g=c[v],z=s[v],c.hasOwnProperty(v)&&(g!=null||z!=null))switch(v){case"value":G=g;break;case"defaultValue":E=g;break;case"multiple":O=g;default:g!==z&&We(a,i,v,g,c,z)}i=E,s=O,c=W,G!=null?vl(a,!!s,G,!1):!!c!=!!s&&(i!=null?vl(a,!!s,i,!0):vl(a,!!s,s?[]:"",!1));return;case"textarea":W=G=null;for(E in s)if(v=s[E],s.hasOwnProperty(E)&&v!=null&&!c.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:We(a,i,E,null,c,v)}for(O in c)if(v=c[O],g=s[O],c.hasOwnProperty(O)&&(v!=null||g!=null))switch(O){case"value":G=v;break;case"defaultValue":W=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==g&&We(a,i,O,v,c,g)}nx(a,G,W);return;case"option":for(var ve in s)if(G=s[ve],s.hasOwnProperty(ve)&&G!=null&&!c.hasOwnProperty(ve))switch(ve){case"selected":a.selected=!1;break;default:We(a,i,ve,null,c,G)}for(z in c)if(G=c[z],W=s[z],c.hasOwnProperty(z)&&G!==W&&(G!=null||W!=null))switch(z){case"selected":a.selected=G&&typeof G!="function"&&typeof G!="symbol";break;default:We(a,i,z,G,c,W)}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 je in s)G=s[je],s.hasOwnProperty(je)&&G!=null&&!c.hasOwnProperty(je)&&We(a,i,je,null,c,G);for(K in c)if(G=c[K],W=s[K],c.hasOwnProperty(K)&&G!==W&&(G!=null||W!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,i));break;default:We(a,i,K,G,c,W)}return;default:if(Th(i)){for(var Qe in s)G=s[Qe],s.hasOwnProperty(Qe)&&G!==void 0&&!c.hasOwnProperty(Qe)&&vp(a,i,Qe,void 0,c,G);for(ee in c)G=c[ee],W=s[ee],!c.hasOwnProperty(ee)||G===W||G===void 0&&W===void 0||vp(a,i,ee,G,c,W);return}}for(var I in s)G=s[I],s.hasOwnProperty(I)&&G!=null&&!c.hasOwnProperty(I)&&We(a,i,I,null,c,G);for(ae in c)G=c[ae],W=s[ae],!c.hasOwnProperty(ae)||G===W||G==null&&W==null||We(a,i,ae,G,c,W)}function lS(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function GD(){if(typeof performance.getEntriesByType=="function"){for(var a=0,i=0,s=performance.getEntriesByType("resource"),c=0;c<s.length;c++){var v=s[c],g=v.transferSize,O=v.initiatorType,E=v.duration;if(g&&E&&lS(O)){for(O=0,E=v.responseEnd,c+=1;c<s.length;c++){var z=s[c],K=z.startTime;if(K>E)break;var ee=z.transferSize,ae=z.initiatorType;ee&&lS(ae)&&(z=z.responseEnd,O+=ee*(z<E?1:(E-K)/(z-K)))}if(--c,i+=8*(g+O)/(v.duration/1e3),a++,10<a)break}}if(0<a)return i/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var yp=null,gp=null;function Mc(a){return a.nodeType===9?a:a.ownerDocument}function oS(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sS(a,i){if(a===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&i==="foreignObject"?0:a}function bp(a,i){return a==="textarea"||a==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var xp=null;function VD(){var a=window.event;return a&&a.type==="popstate"?a===xp?!1:(xp=a,!0):(xp=null,!1)}var uS=typeof setTimeout=="function"?setTimeout:void 0,XD=typeof clearTimeout=="function"?clearTimeout:void 0,cS=typeof Promise=="function"?Promise:void 0,ZD=typeof queueMicrotask=="function"?queueMicrotask:typeof cS<"u"?function(a){return cS.resolve(null).then(a).catch(WD)}:uS;function WD(a){setTimeout(function(){throw a})}function Va(a){return a==="head"}function fS(a,i){var s=i,c=0;do{var v=s.nextSibling;if(a.removeChild(s),v&&v.nodeType===8)if(s=v.data,s==="/$"||s==="/&"){if(c===0){a.removeChild(v),Vl(i);return}c--}else if(s==="$"||s==="$?"||s==="$~"||s==="$!"||s==="&")c++;else if(s==="html")vs(a.ownerDocument.documentElement);else if(s==="head"){s=a.ownerDocument.head,vs(s);for(var g=s.firstChild;g;){var O=g.nextSibling,E=g.nodeName;g[Po]||E==="SCRIPT"||E==="STYLE"||E==="LINK"&&g.rel.toLowerCase()==="stylesheet"||s.removeChild(g),g=O}}else s==="body"&&vs(a.ownerDocument.body);s=v}while(s);Vl(i)}function dS(a,i){var s=a;a=0;do{var c=s.nextSibling;if(s.nodeType===1?i?(s._stashedDisplay=s.style.display,s.style.display="none"):(s.style.display=s._stashedDisplay||"",s.getAttribute("style")===""&&s.removeAttribute("style")):s.nodeType===3&&(i?(s._stashedText=s.nodeValue,s.nodeValue=""):s.nodeValue=s._stashedText||""),c&&c.nodeType===8)if(s=c.data,s==="/$"){if(a===0)break;a--}else s!=="$"&&s!=="$?"&&s!=="$~"&&s!=="$!"||a++;s=c}while(s)}function wp(a){var i=a.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":wp(s),Ah(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}a.removeChild(s)}}function QD(a,i,s,c){for(;a.nodeType===1;){var v=s;if(a.nodeName.toLowerCase()!==i.toLowerCase()){if(!c&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(c){if(!a[Po])switch(i){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(g=a.getAttribute("rel"),g==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(g!==v.rel||a.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||a.getAttribute("title")!==(v.title==null?null:v.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(g=a.getAttribute("src"),(g!==(v.src==null?null:v.src)||a.getAttribute("type")!==(v.type==null?null:v.type)||a.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&g&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(i==="input"&&a.type==="hidden"){var g=v.name==null?null:""+v.name;if(v.type==="hidden"&&a.getAttribute("name")===g)return a}else return a;if(a=Jn(a.nextSibling),a===null)break}return null}function JD(a,i,s){if(i==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!s||(a=Jn(a.nextSibling),a===null))return null;return a}function hS(a,i){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!i||(a=Jn(a.nextSibling),a===null))return null;return a}function Sp(a){return a.data==="$?"||a.data==="$~"}function jp(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function ek(a,i){var s=a.ownerDocument;if(a.data==="$~")a._reactRetry=i;else if(a.data!=="$?"||s.readyState!=="loading")i();else{var c=function(){i(),s.removeEventListener("DOMContentLoaded",c)};s.addEventListener("DOMContentLoaded",c),a._reactRetry=c}}function Jn(a){for(;a!=null;a=a.nextSibling){var i=a.nodeType;if(i===1||i===3)break;if(i===8){if(i=a.data,i==="$"||i==="$!"||i==="$?"||i==="$~"||i==="&"||i==="F!"||i==="F")break;if(i==="/$"||i==="/&")return null}}return a}var _p=null;function mS(a){a=a.nextSibling;for(var i=0;a;){if(a.nodeType===8){var s=a.data;if(s==="/$"||s==="/&"){if(i===0)return Jn(a.nextSibling);i--}else s!=="$"&&s!=="$!"&&s!=="$?"&&s!=="$~"&&s!=="&"||i++}a=a.nextSibling}return null}function pS(a){a=a.previousSibling;for(var i=0;a;){if(a.nodeType===8){var s=a.data;if(s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"){if(i===0)return a;i--}else s!=="/$"&&s!=="/&"||i++}a=a.previousSibling}return null}function vS(a,i,s){switch(i=Mc(s),a){case"html":if(a=i.documentElement,!a)throw Error(r(452));return a;case"head":if(a=i.head,!a)throw Error(r(453));return a;case"body":if(a=i.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function vs(a){for(var i=a.attributes;i.length;)a.removeAttributeNode(i[0]);Ah(a)}var er=new Map,yS=new Set;function Dc(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var ra=Q.d;Q.d={f:tk,r:nk,D:rk,C:ak,L:ik,m:lk,X:sk,S:ok,M:uk};function tk(){var a=ra.f(),i=jc();return a||i}function nk(a){var i=hl(a);i!==null&&i.tag===5&&i.type==="form"?P1(i):ra.r(a)}var Kl=typeof document>"u"?null:document;function gS(a,i,s){var c=Kl;if(c&&typeof i=="string"&&i){var v=Yn(i);v='link[rel="'+a+'"][href="'+v+'"]',typeof s=="string"&&(v+='[crossorigin="'+s+'"]'),yS.has(v)||(yS.add(v),a={rel:a,crossOrigin:s,href:i},c.querySelector(v)===null&&(i=c.createElement("link"),tn(i,"link",a),qt(i),c.head.appendChild(i)))}}function rk(a){ra.D(a),gS("dns-prefetch",a,null)}function ak(a,i){ra.C(a,i),gS("preconnect",a,i)}function ik(a,i,s){ra.L(a,i,s);var c=Kl;if(c&&a&&i){var v='link[rel="preload"][as="'+Yn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(v+='[imagesrcset="'+Yn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(v+='[imagesizes="'+Yn(s.imageSizes)+'"]')):v+='[href="'+Yn(a)+'"]';var g=v;switch(i){case"style":g=Yl(a);break;case"script":g=Gl(a)}er.has(g)||(a=y({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:a,as:i},s),er.set(g,a),c.querySelector(v)!==null||i==="style"&&c.querySelector(ys(g))||i==="script"&&c.querySelector(gs(g))||(i=c.createElement("link"),tn(i,"link",a),qt(i),c.head.appendChild(i)))}}function lk(a,i){ra.m(a,i);var s=Kl;if(s&&a){var c=i&&typeof i.as=="string"?i.as:"script",v='link[rel="modulepreload"][as="'+Yn(c)+'"][href="'+Yn(a)+'"]',g=v;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":g=Gl(a)}if(!er.has(g)&&(a=y({rel:"modulepreload",href:a},i),er.set(g,a),s.querySelector(v)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(gs(g)))return}c=s.createElement("link"),tn(c,"link",a),qt(c),s.head.appendChild(c)}}}function ok(a,i,s){ra.S(a,i,s);var c=Kl;if(c&&a){var v=ml(c).hoistableStyles,g=Yl(a);i=i||"default";var O=v.get(g);if(!O){var E={loading:0,preload:null};if(O=c.querySelector(ys(g)))E.loading=5;else{a=y({rel:"stylesheet",href:a,"data-precedence":i},s),(s=er.get(g))&&Op(a,s);var z=O=c.createElement("link");qt(z),tn(z,"link",a),z._p=new Promise(function(K,ee){z.onload=K,z.onerror=ee}),z.addEventListener("load",function(){E.loading|=1}),z.addEventListener("error",function(){E.loading|=2}),E.loading|=4,kc(O,i,c)}O={type:"stylesheet",instance:O,count:1,state:E},v.set(g,O)}}}function sk(a,i){ra.X(a,i);var s=Kl;if(s&&a){var c=ml(s).hoistableScripts,v=Gl(a),g=c.get(v);g||(g=s.querySelector(gs(v)),g||(a=y({src:a,async:!0},i),(i=er.get(v))&&Ap(a,i),g=s.createElement("script"),qt(g),tn(g,"link",a),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(v,g))}}function uk(a,i){ra.M(a,i);var s=Kl;if(s&&a){var c=ml(s).hoistableScripts,v=Gl(a),g=c.get(v);g||(g=s.querySelector(gs(v)),g||(a=y({src:a,async:!0,type:"module"},i),(i=er.get(v))&&Ap(a,i),g=s.createElement("script"),qt(g),tn(g,"link",a),s.head.appendChild(g)),g={type:"script",instance:g,count:1,state:null},c.set(v,g))}}function bS(a,i,s,c){var v=(v=ge.current)?Dc(v):null;if(!v)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Yl(s.href),s=ml(v).hoistableStyles,c=s.get(i),c||(c={type:"style",instance:null,count:0,state:null},s.set(i,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){a=Yl(s.href);var g=ml(v).hoistableStyles,O=g.get(a);if(O||(v=v.ownerDocument||v,O={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},g.set(a,O),(g=v.querySelector(ys(a)))&&!g._p&&(O.instance=g,O.state.loading=5),er.has(a)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},er.set(a,s),g||ck(v,a,s,O.state))),i&&c===null)throw Error(r(528,""));return O}if(i&&c!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Gl(s),s=ml(v).hoistableScripts,c=s.get(i),c||(c={type:"script",instance:null,count:0,state:null},s.set(i,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Yl(a){return'href="'+Yn(a)+'"'}function ys(a){return'link[rel="stylesheet"]['+a+"]"}function xS(a){return y({},a,{"data-precedence":a.precedence,precedence:null})}function ck(a,i,s,c){a.querySelector('link[rel="preload"][as="style"]['+i+"]")?c.loading=1:(i=a.createElement("link"),c.preload=i,i.addEventListener("load",function(){return c.loading|=1}),i.addEventListener("error",function(){return c.loading|=2}),tn(i,"link",s),qt(i),a.head.appendChild(i))}function Gl(a){return'[src="'+Yn(a)+'"]'}function gs(a){return"script[async]"+a}function wS(a,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var c=a.querySelector('style[data-href~="'+Yn(s.href)+'"]');if(c)return i.instance=c,qt(c),c;var v=y({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return c=(a.ownerDocument||a).createElement("style"),qt(c),tn(c,"style",v),kc(c,s.precedence,a),i.instance=c;case"stylesheet":v=Yl(s.href);var g=a.querySelector(ys(v));if(g)return i.state.loading|=4,i.instance=g,qt(g),g;c=xS(s),(v=er.get(v))&&Op(c,v),g=(a.ownerDocument||a).createElement("link"),qt(g);var O=g;return O._p=new Promise(function(E,z){O.onload=E,O.onerror=z}),tn(g,"link",c),i.state.loading|=4,kc(g,s.precedence,a),i.instance=g;case"script":return g=Gl(s.src),(v=a.querySelector(gs(g)))?(i.instance=v,qt(v),v):(c=s,(v=er.get(g))&&(c=y({},s),Ap(c,v)),a=a.ownerDocument||a,v=a.createElement("script"),qt(v),tn(v,"link",c),a.head.appendChild(v),i.instance=v);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&(i.state.loading&4)===0&&(c=i.instance,i.state.loading|=4,kc(c,s.precedence,a));return i.instance}function kc(a,i,s){for(var c=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=c.length?c[c.length-1]:null,g=v,O=0;O<c.length;O++){var E=c[O];if(E.dataset.precedence===i)g=E;else if(g!==v)break}g?g.parentNode.insertBefore(a,g.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(a,i.firstChild))}function Op(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.title==null&&(a.title=i.title)}function Ap(a,i){a.crossOrigin==null&&(a.crossOrigin=i.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=i.referrerPolicy),a.integrity==null&&(a.integrity=i.integrity)}var Pc=null;function SS(a,i,s){if(Pc===null){var c=new Map,v=Pc=new Map;v.set(s,c)}else v=Pc,c=v.get(s),c||(c=new Map,v.set(s,c));if(c.has(a))return c;for(c.set(a,null),s=s.getElementsByTagName(a),v=0;v<s.length;v++){var g=s[v];if(!(g[Po]||g[Wt]||a==="link"&&g.getAttribute("rel")==="stylesheet")&&g.namespaceURI!=="http://www.w3.org/2000/svg"){var O=g.getAttribute(i)||"";O=a+O;var E=c.get(O);E?E.push(g):c.set(O,[g])}}return c}function jS(a,i,s){a=a.ownerDocument||a,a.head.insertBefore(s,i==="title"?a.querySelector("head > title"):null)}function fk(a,i,s){if(s===1||i.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return a=i.disabled,typeof i.precedence=="string"&&a==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function _S(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function dk(a,i,s,c){if(s.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(s.state.loading&4)===0){if(s.instance===null){var v=Yl(c.href),g=i.querySelector(ys(v));if(g){i=g._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(a.count++,a=Rc.bind(a),i.then(a,a)),s.state.loading|=4,s.instance=g,qt(g);return}g=i.ownerDocument||i,c=xS(c),(v=er.get(v))&&Op(c,v),g=g.createElement("link"),qt(g);var O=g;O._p=new Promise(function(E,z){O.onload=E,O.onerror=z}),tn(g,"link",c),s.instance=g}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(s,i),(i=s.state.preload)&&(s.state.loading&3)===0&&(a.count++,s=Rc.bind(a),i.addEventListener("load",s),i.addEventListener("error",s))}}var Np=0;function hk(a,i){return a.stylesheets&&a.count===0&&Lc(a,a.stylesheets),0<a.count||0<a.imgCount?function(s){var c=setTimeout(function(){if(a.stylesheets&&Lc(a,a.stylesheets),a.unsuspend){var g=a.unsuspend;a.unsuspend=null,g()}},6e4+i);0<a.imgBytes&&Np===0&&(Np=62500*GD());var v=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Lc(a,a.stylesheets),a.unsuspend)){var g=a.unsuspend;a.unsuspend=null,g()}},(a.imgBytes>Np?50:800)+i);return a.unsuspend=s,function(){a.unsuspend=null,clearTimeout(c),clearTimeout(v)}}:null}function Rc(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Lc(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var zc=null;function Lc(a,i){a.stylesheets=null,a.unsuspend!==null&&(a.count++,zc=new Map,i.forEach(mk,a),zc=null,Rc.call(a))}function mk(a,i){if(!(i.state.loading&4)){var s=zc.get(a);if(s)var c=s.get(null);else{s=new Map,zc.set(a,s);for(var v=a.querySelectorAll("link[data-precedence],style[data-precedence]"),g=0;g<v.length;g++){var O=v[g];(O.nodeName==="LINK"||O.getAttribute("media")!=="not all")&&(s.set(O.dataset.precedence,O),c=O)}c&&s.set(null,c)}v=i.instance,O=v.getAttribute("data-precedence"),g=s.get(O)||c,g===c&&s.set(null,v),s.set(O,v),this.count++,c=Rc.bind(this),v.addEventListener("load",c),v.addEventListener("error",c),g?g.parentNode.insertBefore(v,g.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(v,a.firstChild)),i.state.loading|=4}}var bs={$$typeof:C,Provider:null,Consumer:null,_currentValue:se,_currentValue2:se,_threadCount:0};function pk(a,i,s,c,v,g,O,E,z){this.tag=1,this.containerInfo=a,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=Sh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Sh(0),this.hiddenUpdates=Sh(null),this.identifierPrefix=c,this.onUncaughtError=v,this.onCaughtError=g,this.onRecoverableError=O,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=z,this.incompleteTransitions=new Map}function OS(a,i,s,c,v,g,O,E,z,K,ee,ae){return a=new pk(a,i,s,O,z,K,ee,ae,E),i=1,g===!0&&(i|=24),g=Pn(3,null,null,i),a.current=g,g.stateNode=a,i=lm(),i.refCount++,a.pooledCache=i,i.refCount++,g.memoizedState={element:c,isDehydrated:s,cache:i},cm(g),a}function AS(a){return a?(a=_l,a):_l}function NS(a,i,s,c,v,g){v=AS(v),c.context===null?c.context=v:c.pendingContext=v,c=La(i),c.payload={element:s},g=g===void 0?null:g,g!==null&&(c.callback=g),s=Ba(a,c,i),s!==null&&(jn(s,a,i),Wo(s,a,i))}function ES(a,i){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var s=a.retryLane;a.retryLane=s!==0&&s<i?s:i}}function Ep(a,i){ES(a,i),(a=a.alternate)&&ES(a,i)}function CS(a){if(a.tag===13||a.tag===31){var i=wi(a,67108864);i!==null&&jn(i,a,67108864),Ep(a,67108864)}}function TS(a){if(a.tag===13||a.tag===31){var i=In();i=jh(i);var s=wi(a,i);s!==null&&jn(s,a,i),Ep(a,i)}}var Bc=!0;function vk(a,i,s,c){var v=U.T;U.T=null;var g=Q.p;try{Q.p=2,Cp(a,i,s,c)}finally{Q.p=g,U.T=v}}function yk(a,i,s,c){var v=U.T;U.T=null;var g=Q.p;try{Q.p=8,Cp(a,i,s,c)}finally{Q.p=g,U.T=v}}function Cp(a,i,s,c){if(Bc){var v=Tp(c);if(v===null)pp(a,i,c,Ic,s),DS(a,c);else if(bk(v,a,i,s,c))c.stopPropagation();else if(DS(a,c),i&4&&-1<gk.indexOf(a)){for(;v!==null;){var g=hl(v);if(g!==null)switch(g.tag){case 3:if(g=g.stateNode,g.current.memoizedState.isDehydrated){var O=vi(g.pendingLanes);if(O!==0){var E=g;for(E.pendingLanes|=2,E.entangledLanes|=2;O;){var z=1<<31-Dn(O);E.entanglements[1]|=z,O&=~z}Er(g),(Fe&6)===0&&(wc=Zt()+500,hs(0))}}break;case 31:case 13:E=wi(g,2),E!==null&&jn(E,g,2),jc(),Ep(g,2)}if(g=Tp(c),g===null&&pp(a,i,c,Ic,s),g===v)break;v=g}v!==null&&c.stopPropagation()}else pp(a,i,c,null,s)}}function Tp(a){return a=Dh(a),Mp(a)}var Ic=null;function Mp(a){if(Ic=null,a=dl(a),a!==null){var i=o(a);if(i===null)a=null;else{var s=i.tag;if(s===13){if(a=u(i),a!==null)return a;a=null}else if(s===31){if(a=f(i),a!==null)return a;a=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;a=null}else i!==a&&(a=null)}}return Ic=a,null}function MS(a){switch(a){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(re()){case Ne:return 2;case Ye:return 8;case mt:case Tn:return 32;case _r:return 268435456;default:return 32}default:return 32}}var Dp=!1,Xa=null,Za=null,Wa=null,xs=new Map,ws=new Map,Qa=[],gk="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 DS(a,i){switch(a){case"focusin":case"focusout":Xa=null;break;case"dragenter":case"dragleave":Za=null;break;case"mouseover":case"mouseout":Wa=null;break;case"pointerover":case"pointerout":xs.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":ws.delete(i.pointerId)}}function Ss(a,i,s,c,v,g){return a===null||a.nativeEvent!==g?(a={blockedOn:i,domEventName:s,eventSystemFlags:c,nativeEvent:g,targetContainers:[v]},i!==null&&(i=hl(i),i!==null&&CS(i)),a):(a.eventSystemFlags|=c,i=a.targetContainers,v!==null&&i.indexOf(v)===-1&&i.push(v),a)}function bk(a,i,s,c,v){switch(i){case"focusin":return Xa=Ss(Xa,a,i,s,c,v),!0;case"dragenter":return Za=Ss(Za,a,i,s,c,v),!0;case"mouseover":return Wa=Ss(Wa,a,i,s,c,v),!0;case"pointerover":var g=v.pointerId;return xs.set(g,Ss(xs.get(g)||null,a,i,s,c,v)),!0;case"gotpointercapture":return g=v.pointerId,ws.set(g,Ss(ws.get(g)||null,a,i,s,c,v)),!0}return!1}function kS(a){var i=dl(a.target);if(i!==null){var s=o(i);if(s!==null){if(i=s.tag,i===13){if(i=u(s),i!==null){a.blockedOn=i,Gb(a.priority,function(){TS(s)});return}}else if(i===31){if(i=f(s),i!==null){a.blockedOn=i,Gb(a.priority,function(){TS(s)});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){a.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}a.blockedOn=null}function $c(a){if(a.blockedOn!==null)return!1;for(var i=a.targetContainers;0<i.length;){var s=Tp(a.nativeEvent);if(s===null){s=a.nativeEvent;var c=new s.constructor(s.type,s);Mh=c,s.target.dispatchEvent(c),Mh=null}else return i=hl(s),i!==null&&CS(i),a.blockedOn=s,!1;i.shift()}return!0}function PS(a,i,s){$c(a)&&s.delete(i)}function xk(){Dp=!1,Xa!==null&&$c(Xa)&&(Xa=null),Za!==null&&$c(Za)&&(Za=null),Wa!==null&&$c(Wa)&&(Wa=null),xs.forEach(PS),ws.forEach(PS)}function Uc(a,i){a.blockedOn===i&&(a.blockedOn=null,Dp||(Dp=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,xk)))}var qc=null;function RS(a){qc!==a&&(qc=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){qc===a&&(qc=null);for(var i=0;i<a.length;i+=3){var s=a[i],c=a[i+1],v=a[i+2];if(typeof c!="function"){if(Mp(c||s)===null)continue;break}var g=hl(s);g!==null&&(a.splice(i,3),i-=3,Tm(g,{pending:!0,data:v,method:s.method,action:c},c,v))}}))}function Vl(a){function i(z){return Uc(z,a)}Xa!==null&&Uc(Xa,a),Za!==null&&Uc(Za,a),Wa!==null&&Uc(Wa,a),xs.forEach(i),ws.forEach(i);for(var s=0;s<Qa.length;s++){var c=Qa[s];c.blockedOn===a&&(c.blockedOn=null)}for(;0<Qa.length&&(s=Qa[0],s.blockedOn===null);)kS(s),s.blockedOn===null&&Qa.shift();if(s=(a.ownerDocument||a).$$reactFormReplay,s!=null)for(c=0;c<s.length;c+=3){var v=s[c],g=s[c+1],O=v[yn]||null;if(typeof g=="function")O||RS(s);else if(O){var E=null;if(g&&g.hasAttribute("formAction")){if(v=g,O=g[yn]||null)E=O.formAction;else if(Mp(v)!==null)continue}else E=O.action;typeof E=="function"?s[c+1]=E:(s.splice(c,3),c-=3),RS(s)}}}function zS(){function a(g){g.canIntercept&&g.info==="react-transition"&&g.intercept({handler:function(){return new Promise(function(O){return v=O})},focusReset:"manual",scroll:"manual"})}function i(){v!==null&&(v(),v=null),c||setTimeout(s,20)}function s(){if(!c&&!navigation.transition){var g=navigation.currentEntry;g&&g.url!=null&&navigation.navigate(g.url,{state:g.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,v=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",i),navigation.addEventListener("navigateerror",i),setTimeout(s,100),function(){c=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",i),navigation.removeEventListener("navigateerror",i),v!==null&&(v(),v=null)}}}function kp(a){this._internalRoot=a}Hc.prototype.render=kp.prototype.render=function(a){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,c=In();NS(s,c,a,i,null,null)},Hc.prototype.unmount=kp.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var i=a.containerInfo;NS(a.current,2,null,a,null,null),jc(),i[fl]=null}};function Hc(a){this._internalRoot=a}Hc.prototype.unstable_scheduleHydration=function(a){if(a){var i=Yb();a={blockedOn:null,target:a,priority:i};for(var s=0;s<Qa.length&&i!==0&&i<Qa[s].priority;s++);Qa.splice(s,0,a),s===0&&kS(a)}};var LS=t.version;if(LS!=="19.2.3")throw Error(r(527,LS,"19.2.3"));Q.findDOMNode=function(a){var i=a._reactInternals;if(i===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=h(i),a=a!==null?p(a):null,a=a===null?null:a.stateNode,a};var wk={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:U,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Fc=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Fc.isDisabled&&Fc.supportsFiber)try{Ea=Fc.inject(wk),Mn=Fc}catch{}}return _s.createRoot=function(a,i){if(!l(a))throw Error(r(299));var s=!1,c="",v=F1,g=K1,O=Y1;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(v=i.onUncaughtError),i.onCaughtError!==void 0&&(g=i.onCaughtError),i.onRecoverableError!==void 0&&(O=i.onRecoverableError)),i=OS(a,1,!1,null,null,s,c,null,v,g,O,zS),a[fl]=i.current,mp(a),new kp(i)},_s.hydrateRoot=function(a,i,s){if(!l(a))throw Error(r(299));var c=!1,v="",g=F1,O=K1,E=Y1,z=null;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(v=s.identifierPrefix),s.onUncaughtError!==void 0&&(g=s.onUncaughtError),s.onCaughtError!==void 0&&(O=s.onCaughtError),s.onRecoverableError!==void 0&&(E=s.onRecoverableError),s.formState!==void 0&&(z=s.formState)),i=OS(a,1,!0,i,s??null,c,v,z,g,O,E,zS),i.context=AS(null),s=i.current,c=In(),c=jh(c),v=La(c),v.callback=null,Ba(s,v,c),s=c,i.current.lanes=s,ko(i,s),Er(i),a[fl]=i.current,mp(a),new Hc(i)},_s.version="19.2.3",_s}var GS;function Pk(){if(GS)return Lp.exports;GS=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Lp.exports=kk(),Lp.exports}var Rk=Pk();const zk=zr(Rk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lk=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Bk=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),VS=e=>{const t=Bk(e);return t.charAt(0).toUpperCase()+t.slice(1)},SN=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Ik=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var $k={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.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Uk=x.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:l="",children:o,iconNode:u,...f},d)=>x.createElement("svg",{ref:d,...$k,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:SN("lucide",l),...!o&&!Ik(f)&&{"aria-hidden":"true"},...f},[...u.map(([h,p])=>x.createElement(h,p)),...Array.isArray(o)?o:[o]]));/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ae=(e,t)=>{const n=x.forwardRef(({className:r,...l},o)=>x.createElement(Uk,{ref:o,iconNode:t,className:SN(`lucide-${Lk(VS(e))}`,`lucide-${e}`,r),...l}));return n.displayName=VS(e),n};/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qk=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],XS=Ae("activity",qk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hk=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],Fk=Ae("arrow-right",Hk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Kk=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],la=Ae("bot",Kk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yk=[["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"}]],jN=Ae("box",Yk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Gk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],Up=Ae("check",Gk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Vk=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Xk=Ae("chevron-left",Vk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Zk=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Wk=Ae("chevron-right",Zk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Qk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ZS=Ae("clock",Qk);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jk=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],WS=Ae("code",Jk);/**
 * @license lucide-react v0.562.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=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],_N=Ae("credit-card",e4);/**
 * @license lucide-react v0.562.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=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],n4=Ae("database",t4);/**
 * @license lucide-react v0.562.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=[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]],a4=Ae("dollar-sign",r4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],ON=Ae("external-link",i4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],Ey=Ae("eye-off",l4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Of=Ae("eye",o4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],QS=Ae("file-text",s4);/**
 * @license lucide-react v0.562.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=[["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"}]],JS=Ae("image",u4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],f4=Ae("key-round",c4);/**
 * @license lucide-react v0.562.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=[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]],df=Ae("key",d4);/**
 * @license lucide-react v0.562.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=[["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"}]],m4=Ae("layout-dashboard",h4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],Li=Ae("loader-circle",p4);/**
 * @license lucide-react v0.562.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=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],y4=Ae("lock",v4);/**
 * @license lucide-react v0.562.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=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],b4=Ae("log-out",g4);/**
 * @license lucide-react v0.562.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=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],w4=Ae("mail",x4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],aa=Ae("message-square",S4);/**
 * @license lucide-react v0.562.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=[["path",{d:"m16 16 2 2 4-4",key:"gfu2re"}],["path",{d:"M21 10V8a2 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 0l2-1.14",key:"e7tb2h"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["line",{x1:"12",x2:"12",y1:"22",y2:"12",key:"a4e8g8"}]],Cy=Ae("package-check",j4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _4=[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 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.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]],AN=Ae("package",_4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],hf=Ae("pen",O4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Bs=Ae("plus",A4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M18.36 6.64A9 9 0 0 1 20.77 15",key:"dxknvb"}],["path",{d:"M6.16 6.16a9 9 0 1 0 12.68 12.68",key:"1x7qb5"}],["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],E4=Ae("power-off",N4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],mf=Ae("power",C4);/**
 * @license lucide-react v0.562.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=[["rect",{width:"5",height:"5",x:"3",y:"3",rx:"1",key:"1tu5fj"}],["rect",{width:"5",height:"5",x:"16",y:"3",rx:"1",key:"1v8r4q"}],["rect",{width:"5",height:"5",x:"3",y:"16",rx:"1",key:"1x03jg"}],["path",{d:"M21 16h-3a2 2 0 0 0-2 2v3",key:"177gqh"}],["path",{d:"M21 21v.01",key:"ents32"}],["path",{d:"M12 7v3a2 2 0 0 1-2 2H7",key:"8crl2c"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M12 3h.01",key:"n36tog"}],["path",{d:"M12 16v.01",key:"133mhm"}],["path",{d:"M16 12h1",key:"1slzba"}],["path",{d:"M21 12v.01",key:"1lwtk9"}],["path",{d:"M12 21v-1",key:"1880an"}]],M4=Ae("qr-code",T4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],ai=Ae("refresh-cw",D4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k4=[["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"}]],ii=Ae("save",k4);/**
 * @license lucide-react v0.562.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=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],R4=Ae("search",P4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z4=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Lg=Ae("settings",z4);/**
 * @license lucide-react v0.562.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=[["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"}]],B4=Ae("shield-check",L4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],NN=Ae("shopping-bag",I4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $4=[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]],e2=Ae("shopping-cart",$4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Af=Ae("sparkles",U4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q4=[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a1 1 0 0 1 3 3l-9.013 9.014a2 2 0 0 1-.853.505l-2.873.84a.5.5 0 0 1-.62-.62l.84-2.873a2 2 0 0 1 .506-.852z",key:"ohrbg2"}]],Bg=Ae("square-pen",q4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Hi=Ae("trash-2",H4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M16 7h6v6",key:"box55l"}],["path",{d:"m22 7-8.5 8.5-5-5L2 17",key:"1t1m79"}]],K4=Ae("trending-up",F4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]],eo=Ae("truck",Y4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M12 3v12",key:"1x0j5s"}],["path",{d:"m17 8-5-5-5 5",key:"7q97r8"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}]],V4=Ae("upload",G4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],EN=Ae("user",X4);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z4=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],CN=Ae("users",Z4);/**
 * @license lucide-react v0.562.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=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],ir=Ae("x",W4),Q4=({activeTab:e,setActiveTab:t,onLogout:n})=>{const r=[{id:"dashboard",icon:m4,label:"仪表盘"},{id:"accounts",icon:CN,label:"账号管理"},{id:"orders",icon:NN,label:"订单管理"},{id:"cards",icon:_N,label:"卡密库存"},{id:"items",icon:jN,label:"商品列表"},{id:"keywords",icon:aa,label:"关键词管理"},{id:"settings",icon:Lg,label:"系统与AI"}];return m.jsxs("div",{className:"w-64 h-screen fixed left-0 top-0 bg-white border-r border-gray-100 flex flex-col justify-between z-20 shadow-[4px_0_24px_rgba(0,0,0,0.02)]",children:[m.jsxs("div",{className:"p-6",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-12 px-2",children:[m.jsx("div",{className:"w-10 h-10 bg-[#FFE815] rounded-xl flex items-center justify-center shadow-lg shadow-yellow-200 transform rotate-[-3deg]",children:m.jsx("span",{className:"text-black font-extrabold text-xl",children:"闲"})}),m.jsxs("h1",{className:"text-xl font-extrabold tracking-tight text-gray-900",children:["闲鱼智控 ",m.jsx("span",{className:"text-xs bg-black text-[#FFE815] px-1.5 py-0.5 rounded ml-1",children:"PRO"})]})]}),m.jsx("nav",{className:"space-y-2",children:r.map(l=>{const o=l.icon,u=e===l.id;return m.jsxs("button",{onClick:()=>t(l.id),className:`w-full flex items-center gap-3 px-4 py-3.5 rounded-2xl transition-all duration-300 group relative overflow-hidden ${u?"bg-[#FFE815] text-black font-bold shadow-lg shadow-yellow-100 transform scale-[1.02]":"text-gray-500 hover:bg-gray-50 hover:text-gray-900"}`,children:[m.jsx(o,{className:`w-5 h-5 transition-colors ${u?"text-black":"text-gray-400 group-hover:text-gray-600"}`}),m.jsx("span",{className:"text-sm tracking-wide",children:l.label}),u&&m.jsx(Af,{className:"w-4 h-4 absolute right-3 text-black/20 animate-pulse"})]},l.id)})})]}),m.jsx("div",{className:"p-6 border-t border-gray-50",children:m.jsxs("button",{onClick:n,className:"w-full flex items-center gap-3 px-4 py-3 text-gray-500 hover:text-red-500 hover:bg-red-50 rounded-2xl transition-all duration-200 font-medium",children:[m.jsx(b4,{className:"w-5 h-5"}),m.jsx("span",{className:"text-sm",children:"退出登录"})]})})]})};function TN(e,t){return function(){return e.apply(t,arguments)}}const{toString:J4}=Object.prototype,{getPrototypeOf:Ig}=Object,{iterator:Od,toStringTag:MN}=Symbol,Ad=(e=>t=>{const n=J4.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),wr=e=>(e=e.toLowerCase(),t=>Ad(t)===e),Nd=e=>t=>typeof t===e,{isArray:yo}=Array,oo=Nd("undefined");function eu(e){return e!==null&&!oo(e)&&e.constructor!==null&&!oo(e.constructor)&&On(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const DN=wr("ArrayBuffer");function eP(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&DN(e.buffer),t}const tP=Nd("string"),On=Nd("function"),kN=Nd("number"),tu=e=>e!==null&&typeof e=="object",nP=e=>e===!0||e===!1,pf=e=>{if(Ad(e)!=="object")return!1;const t=Ig(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(MN in e)&&!(Od in e)},rP=e=>{if(!tu(e)||eu(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},aP=wr("Date"),iP=wr("File"),lP=wr("Blob"),oP=wr("FileList"),sP=e=>tu(e)&&On(e.pipe),uP=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||On(e.append)&&((t=Ad(e))==="formdata"||t==="object"&&On(e.toString)&&e.toString()==="[object FormData]"))},cP=wr("URLSearchParams"),[fP,dP,hP,mP]=["ReadableStream","Request","Response","Headers"].map(wr),pP=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function nu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),yo(e))for(r=0,l=e.length;r<l;r++)t.call(null,e[r],r,e);else{if(eu(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),u=o.length;let f;for(r=0;r<u;r++)f=o[r],t.call(null,e[f],f,e)}}function PN(e,t){if(eu(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,l;for(;r-- >0;)if(l=n[r],t===l.toLowerCase())return l;return null}const Bi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,RN=e=>!oo(e)&&e!==Bi;function Ty(){const{caseless:e,skipUndefined:t}=RN(this)&&this||{},n={},r=(l,o)=>{const u=e&&PN(n,o)||o;pf(n[u])&&pf(l)?n[u]=Ty(n[u],l):pf(l)?n[u]=Ty({},l):yo(l)?n[u]=l.slice():(!t||!oo(l))&&(n[u]=l)};for(let l=0,o=arguments.length;l<o;l++)arguments[l]&&nu(arguments[l],r);return n}const vP=(e,t,n,{allOwnKeys:r}={})=>(nu(t,(l,o)=>{n&&On(l)?e[o]=TN(l,n):e[o]=l},{allOwnKeys:r}),e),yP=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gP=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},bP=(e,t,n,r)=>{let l,o,u;const f={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)u=l[o],(!r||r(u,e,t))&&!f[u]&&(t[u]=e[u],f[u]=!0);e=n!==!1&&Ig(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},xP=(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},wP=e=>{if(!e)return null;if(yo(e))return e;let t=e.length;if(!kN(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},SP=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ig(Uint8Array)),jP=(e,t)=>{const r=(e&&e[Od]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},_P=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},OP=wr("HTMLFormElement"),AP=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),t2=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),NP=wr("RegExp"),zN=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};nu(n,(l,o)=>{let u;(u=t(l,o,e))!==!1&&(r[o]=u||l)}),Object.defineProperties(e,r)},EP=e=>{zN(e,(t,n)=>{if(On(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(On(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+"'")})}})},CP=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return yo(e)?r(e):r(String(e).split(t)),n},TP=()=>{},MP=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function DP(e){return!!(e&&On(e.append)&&e[MN]==="FormData"&&e[Od])}const kP=e=>{const t=new Array(10),n=(r,l)=>{if(tu(r)){if(t.indexOf(r)>=0)return;if(eu(r))return r;if(!("toJSON"in r)){t[l]=r;const o=yo(r)?[]:{};return nu(r,(u,f)=>{const d=n(u,l+1);!oo(d)&&(o[f]=d)}),t[l]=void 0,o}}return r};return n(e,0)},PP=wr("AsyncFunction"),RP=e=>e&&(tu(e)||On(e))&&On(e.then)&&On(e.catch),LN=((e,t)=>e?setImmediate:t?((n,r)=>(Bi.addEventListener("message",({source:l,data:o})=>{l===Bi&&o===n&&r.length&&r.shift()()},!1),l=>{r.push(l),Bi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",On(Bi.postMessage)),zP=typeof queueMicrotask<"u"?queueMicrotask.bind(Bi):typeof process<"u"&&process.nextTick||LN,LP=e=>e!=null&&On(e[Od]),V={isArray:yo,isArrayBuffer:DN,isBuffer:eu,isFormData:uP,isArrayBufferView:eP,isString:tP,isNumber:kN,isBoolean:nP,isObject:tu,isPlainObject:pf,isEmptyObject:rP,isReadableStream:fP,isRequest:dP,isResponse:hP,isHeaders:mP,isUndefined:oo,isDate:aP,isFile:iP,isBlob:lP,isRegExp:NP,isFunction:On,isStream:sP,isURLSearchParams:cP,isTypedArray:SP,isFileList:oP,forEach:nu,merge:Ty,extend:vP,trim:pP,stripBOM:yP,inherits:gP,toFlatObject:bP,kindOf:Ad,kindOfTest:wr,endsWith:xP,toArray:wP,forEachEntry:jP,matchAll:_P,isHTMLForm:OP,hasOwnProperty:t2,hasOwnProp:t2,reduceDescriptors:zN,freezeMethods:EP,toObjectSet:CP,toCamelCase:AP,noop:TP,toFiniteNumber:MP,findKey:PN,global:Bi,isContextDefined:RN,isSpecCompliantForm:DP,toJSONObject:kP,isAsyncFn:PP,isThenable:RP,setImmediate:LN,asap:zP,isIterable:LP};function Te(e,t,n,r,l){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),l&&(this.response=l,this.status=l.status?l.status:null)}V.inherits(Te,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:V.toJSONObject(this.config),code:this.code,status:this.status}}});const BN=Te.prototype,IN={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{IN[e]={value:e}});Object.defineProperties(Te,IN);Object.defineProperty(BN,"isAxiosError",{value:!0});Te.from=(e,t,n,r,l,o)=>{const u=Object.create(BN);V.toFlatObject(e,u,function(p){return p!==Error.prototype},h=>h!=="isAxiosError");const f=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return Te.call(u,f,d,n,r,l),e&&u.cause==null&&Object.defineProperty(u,"cause",{value:e,configurable:!0}),u.name=e&&e.name||"Error",o&&Object.assign(u,o),u};const BP=null;function My(e){return V.isPlainObject(e)||V.isArray(e)}function $N(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function n2(e,t,n){return e?e.concat(t).map(function(l,o){return l=$N(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function IP(e){return V.isArray(e)&&!e.some(My)}const $P=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function Ed(e,t,n){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=V.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,_){return!V.isUndefined(_[j])});const r=n.metaTokens,l=n.visitor||p,o=n.dots,u=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(l))throw new TypeError("visitor must be a function");function h(S){if(S===null)return"";if(V.isDate(S))return S.toISOString();if(V.isBoolean(S))return S.toString();if(!d&&V.isBlob(S))throw new Te("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(S)||V.isTypedArray(S)?d&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function p(S,j,_){let A=S;if(S&&!_&&typeof S=="object"){if(V.endsWith(j,"{}"))j=r?j:j.slice(0,-2),S=JSON.stringify(S);else if(V.isArray(S)&&IP(S)||(V.isFileList(S)||V.endsWith(j,"[]"))&&(A=V.toArray(S)))return j=$N(j),A.forEach(function(C,D){!(V.isUndefined(C)||C===null)&&t.append(u===!0?n2([j],D,o):u===null?j:j+"[]",h(C))}),!1}return My(S)?!0:(t.append(n2(_,j,o),h(S)),!1)}const y=[],b=Object.assign($P,{defaultVisitor:p,convertValue:h,isVisitable:My});function w(S,j){if(!V.isUndefined(S)){if(y.indexOf(S)!==-1)throw Error("Circular reference detected in "+j.join("."));y.push(S),V.forEach(S,function(A,N){(!(V.isUndefined(A)||A===null)&&l.call(t,A,V.isString(N)?N.trim():N,j,b))===!0&&w(A,j?j.concat(N):[N])}),y.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return w(e),t}function r2(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function $g(e,t){this._pairs=[],e&&Ed(e,this,t)}const UN=$g.prototype;UN.append=function(t,n){this._pairs.push([t,n])};UN.toString=function(t){const n=t?function(r){return t.call(this,r,r2)}:r2;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function UP(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function qN(e,t,n){if(!t)return e;const r=n&&n.encode||UP;V.isFunction(n)&&(n={serialize:n});const l=n&&n.serialize;let o;if(l?o=l(t,n):o=V.isURLSearchParams(t)?t.toString():new $g(t,n).toString(r),o){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+o}return e}class a2{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){V.forEach(this.handlers,function(r){r!==null&&t(r)})}}const HN={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qP=typeof URLSearchParams<"u"?URLSearchParams:$g,HP=typeof FormData<"u"?FormData:null,FP=typeof Blob<"u"?Blob:null,KP={isBrowser:!0,classes:{URLSearchParams:qP,FormData:HP,Blob:FP},protocols:["http","https","file","blob","url","data"]},Ug=typeof window<"u"&&typeof document<"u",Dy=typeof navigator=="object"&&navigator||void 0,YP=Ug&&(!Dy||["ReactNative","NativeScript","NS"].indexOf(Dy.product)<0),GP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",VP=Ug&&window.location.href||"http://localhost",XP=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ug,hasStandardBrowserEnv:YP,hasStandardBrowserWebWorkerEnv:GP,navigator:Dy,origin:VP},Symbol.toStringTag,{value:"Module"})),sn={...XP,...KP};function ZP(e,t){return Ed(e,new sn.classes.URLSearchParams,{visitor:function(n,r,l,o){return sn.isNode&&V.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function WP(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function QP(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r<l;r++)o=n[r],t[o]=e[o];return t}function FN(e){function t(n,r,l,o){let u=n[o++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),d=o>=n.length;return u=!u&&V.isArray(l)?l.length:u,d?(V.hasOwnProp(l,u)?l[u]=[l[u],r]:l[u]=r,!f):((!l[u]||!V.isObject(l[u]))&&(l[u]=[]),t(n,r,l[u],o)&&V.isArray(l[u])&&(l[u]=QP(l[u])),!f)}if(V.isFormData(e)&&V.isFunction(e.entries)){const n={};return V.forEachEntry(e,(r,l)=>{t(WP(r),l,n,0)}),n}return null}function JP(e,t,n){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const ru={transitional:HN,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=V.isObject(t);if(o&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return l?JSON.stringify(FN(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return ZP(t,this.formSerializer).toString();if((f=V.isFileList(t))||r.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return Ed(f?{"files[]":t}:t,d&&new d,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),JP(t)):t}],transformResponse:[function(t){const n=this.transitional||ru.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(r&&!this.responseType||l)){const u=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,this.parseReviver)}catch(f){if(u)throw f.name==="SyntaxError"?Te.from(f,Te.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sn.classes.FormData,Blob:sn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{ru.headers[e]={}});const e6=V.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"]),t6=e=>{const t={};let n,r,l;return e&&e.split(`
`).forEach(function(u){l=u.indexOf(":"),n=u.substring(0,l).trim().toLowerCase(),r=u.substring(l+1).trim(),!(!n||t[n]&&e6[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},i2=Symbol("internals");function Os(e){return e&&String(e).trim().toLowerCase()}function vf(e){return e===!1||e==null?e:V.isArray(e)?e.map(vf):String(e)}function n6(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 r6=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function qp(e,t,n,r,l){if(V.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!V.isString(t)){if(V.isString(r))return t.indexOf(r)!==-1;if(V.isRegExp(r))return r.test(t)}}function a6(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function i6(e,t){const n=V.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,u){return this[r].call(this,t,l,o,u)},configurable:!0})})}let An=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(f,d,h){const p=Os(d);if(!p)throw new Error("header name must be a non-empty string");const y=V.findKey(l,p);(!y||l[y]===void 0||h===!0||h===void 0&&l[y]!==!1)&&(l[y||d]=vf(f))}const u=(f,d)=>V.forEach(f,(h,p)=>o(h,p,d));if(V.isPlainObject(t)||t instanceof this.constructor)u(t,n);else if(V.isString(t)&&(t=t.trim())&&!r6(t))u(t6(t),n);else if(V.isObject(t)&&V.isIterable(t)){let f={},d,h;for(const p of t){if(!V.isArray(p))throw TypeError("Object iterator must return a key-value pair");f[h=p[0]]=(d=f[h])?V.isArray(d)?[...d,p[1]]:[d,p[1]]:p[1]}u(f,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=Os(t),t){const r=V.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return n6(l);if(V.isFunction(n))return n.call(this,l,r);if(V.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Os(t),t){const r=V.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||qp(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(u){if(u=Os(u),u){const f=V.findKey(r,u);f&&(!n||qp(r,r[f],f,n))&&(delete r[f],l=!0)}}return V.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||qp(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return V.forEach(this,(l,o)=>{const u=V.findKey(r,o);if(u){n[u]=vf(l),delete n[o];return}const f=t?a6(o):String(o).trim();f!==o&&delete n[o],n[f]=vf(l),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return V.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&V.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(l=>r.set(l)),r}static accessor(t){const r=(this[i2]=this[i2]={accessors:{}}).accessors,l=this.prototype;function o(u){const f=Os(u);r[f]||(i6(l,u),r[f]=!0)}return V.isArray(t)?t.forEach(o):o(t),this}};An.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(An.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});V.freezeMethods(An);function Hp(e,t){const n=this||ru,r=t||n,l=An.from(r.headers);let o=r.data;return V.forEach(e,function(f){o=f.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function KN(e){return!!(e&&e.__CANCEL__)}function go(e,t,n){Te.call(this,e??"canceled",Te.ERR_CANCELED,t,n),this.name="CanceledError"}V.inherits(go,Te,{__CANCEL__:!0});function YN(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Te("Request failed with status code "+n.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function l6(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function o6(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,u;return t=t!==void 0?t:1e3,function(d){const h=Date.now(),p=r[o];u||(u=h),n[l]=d,r[l]=h;let y=o,b=0;for(;y!==l;)b+=n[y++],y=y%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),h-u<t)return;const w=p&&h-p;return w?Math.round(b*1e3/w):void 0}}function s6(e,t){let n=0,r=1e3/t,l,o;const u=(h,p=Date.now())=>{n=p,l=null,o&&(clearTimeout(o),o=null),e(...h)};return[(...h)=>{const p=Date.now(),y=p-n;y>=r?u(h,p):(l=h,o||(o=setTimeout(()=>{o=null,u(l)},r-y)))},()=>l&&u(l)]}const Nf=(e,t,n=3)=>{let r=0;const l=o6(50,250);return s6(o=>{const u=o.loaded,f=o.lengthComputable?o.total:void 0,d=u-r,h=l(d),p=u<=f;r=u;const y={loaded:u,total:f,progress:f?u/f:void 0,bytes:d,rate:h||void 0,estimated:h&&f&&p?(f-u)/h:void 0,event:o,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(y)},n)},l2=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},o2=e=>(...t)=>V.asap(()=>e(...t)),u6=sn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,sn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(sn.origin),sn.navigator&&/(msie|trident)/i.test(sn.navigator.userAgent)):()=>!0,c6=sn.hasStandardBrowserEnv?{write(e,t,n,r,l,o,u){if(typeof document>"u")return;const f=[`${e}=${encodeURIComponent(t)}`];V.isNumber(n)&&f.push(`expires=${new Date(n).toUTCString()}`),V.isString(r)&&f.push(`path=${r}`),V.isString(l)&&f.push(`domain=${l}`),o===!0&&f.push("secure"),V.isString(u)&&f.push(`SameSite=${u}`),document.cookie=f.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function f6(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function d6(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function GN(e,t,n){let r=!f6(t);return e&&(r||n==!1)?d6(e,t):t}const s2=e=>e instanceof An?{...e}:e;function Zi(e,t){t=t||{};const n={};function r(h,p,y,b){return V.isPlainObject(h)&&V.isPlainObject(p)?V.merge.call({caseless:b},h,p):V.isPlainObject(p)?V.merge({},p):V.isArray(p)?p.slice():p}function l(h,p,y,b){if(V.isUndefined(p)){if(!V.isUndefined(h))return r(void 0,h,y,b)}else return r(h,p,y,b)}function o(h,p){if(!V.isUndefined(p))return r(void 0,p)}function u(h,p){if(V.isUndefined(p)){if(!V.isUndefined(h))return r(void 0,h)}else return r(void 0,p)}function f(h,p,y){if(y in t)return r(h,p);if(y in e)return r(void 0,h)}const d={url:o,method:o,data:o,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(h,p,y)=>l(s2(h),s2(p),y,!0)};return V.forEach(Object.keys({...e,...t}),function(p){const y=d[p]||l,b=y(e[p],t[p],p);V.isUndefined(b)&&y!==f||(n[p]=b)}),n}const VN=e=>{const t=Zi({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:u,auth:f}=t;if(t.headers=u=An.from(u),t.url=qN(GN(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):""))),V.isFormData(n)){if(sn.hasStandardBrowserEnv||sn.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(V.isFunction(n.getHeaders)){const d=n.getHeaders(),h=["content-type","content-length"];Object.entries(d).forEach(([p,y])=>{h.includes(p.toLowerCase())&&u.set(p,y)})}}if(sn.hasStandardBrowserEnv&&(r&&V.isFunction(r)&&(r=r(t)),r||r!==!1&&u6(t.url))){const d=l&&o&&c6.read(o);d&&u.set(l,d)}return t},h6=typeof XMLHttpRequest<"u",m6=h6&&function(e){return new Promise(function(n,r){const l=VN(e);let o=l.data;const u=An.from(l.headers).normalize();let{responseType:f,onUploadProgress:d,onDownloadProgress:h}=l,p,y,b,w,S;function j(){w&&w(),S&&S(),l.cancelToken&&l.cancelToken.unsubscribe(p),l.signal&&l.signal.removeEventListener("abort",p)}let _=new XMLHttpRequest;_.open(l.method.toUpperCase(),l.url,!0),_.timeout=l.timeout;function A(){if(!_)return;const C=An.from("getAllResponseHeaders"in _&&_.getAllResponseHeaders()),k={data:!f||f==="text"||f==="json"?_.responseText:_.response,status:_.status,statusText:_.statusText,headers:C,config:e,request:_};YN(function(P){n(P),j()},function(P){r(P),j()},k),_=null}"onloadend"in _?_.onloadend=A:_.onreadystatechange=function(){!_||_.readyState!==4||_.status===0&&!(_.responseURL&&_.responseURL.indexOf("file:")===0)||setTimeout(A)},_.onabort=function(){_&&(r(new Te("Request aborted",Te.ECONNABORTED,e,_)),_=null)},_.onerror=function(D){const k=D&&D.message?D.message:"Network Error",T=new Te(k,Te.ERR_NETWORK,e,_);T.event=D||null,r(T),_=null},_.ontimeout=function(){let D=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const k=l.transitional||HN;l.timeoutErrorMessage&&(D=l.timeoutErrorMessage),r(new Te(D,k.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,e,_)),_=null},o===void 0&&u.setContentType(null),"setRequestHeader"in _&&V.forEach(u.toJSON(),function(D,k){_.setRequestHeader(k,D)}),V.isUndefined(l.withCredentials)||(_.withCredentials=!!l.withCredentials),f&&f!=="json"&&(_.responseType=l.responseType),h&&([b,S]=Nf(h,!0),_.addEventListener("progress",b)),d&&_.upload&&([y,w]=Nf(d),_.upload.addEventListener("progress",y),_.upload.addEventListener("loadend",w)),(l.cancelToken||l.signal)&&(p=C=>{_&&(r(!C||C.type?new go(null,e,_):C),_.abort(),_=null)},l.cancelToken&&l.cancelToken.subscribe(p),l.signal&&(l.signal.aborted?p():l.signal.addEventListener("abort",p)));const N=l6(l.url);if(N&&sn.protocols.indexOf(N)===-1){r(new Te("Unsupported protocol "+N+":",Te.ERR_BAD_REQUEST,e));return}_.send(o||null)})},p6=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,l;const o=function(h){if(!l){l=!0,f();const p=h instanceof Error?h:this.reason;r.abort(p instanceof Te?p:new go(p instanceof Error?p.message:p))}};let u=t&&setTimeout(()=>{u=null,o(new Te(`timeout ${t} of ms exceeded`,Te.ETIMEDOUT))},t);const f=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(h=>{h.unsubscribe?h.unsubscribe(o):h.removeEventListener("abort",o)}),e=null)};e.forEach(h=>h.addEventListener("abort",o));const{signal:d}=r;return d.unsubscribe=()=>V.asap(f),d}},v6=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,l;for(;r<n;)l=r+t,yield e.slice(r,l),r=l},y6=async function*(e,t){for await(const n of g6(e))yield*v6(n,t)},g6=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()}},u2=(e,t,n,r)=>{const l=y6(e,t);let o=0,u,f=d=>{u||(u=!0,r&&r(d))};return new ReadableStream({async pull(d){try{const{done:h,value:p}=await l.next();if(h){f(),d.close();return}let y=p.byteLength;if(n){let b=o+=y;n(b)}d.enqueue(new Uint8Array(p))}catch(h){throw f(h),h}},cancel(d){return f(d),l.return()}},{highWaterMark:2})},c2=64*1024,{isFunction:Kc}=V,b6=(({Request:e,Response:t})=>({Request:e,Response:t}))(V.global),{ReadableStream:f2,TextEncoder:d2}=V.global,h2=(e,...t)=>{try{return!!e(...t)}catch{return!1}},x6=e=>{e=V.merge.call({skipUndefined:!0},b6,e);const{fetch:t,Request:n,Response:r}=e,l=t?Kc(t):typeof fetch=="function",o=Kc(n),u=Kc(r);if(!l)return!1;const f=l&&Kc(f2),d=l&&(typeof d2=="function"?(S=>j=>S.encode(j))(new d2):async S=>new Uint8Array(await new n(S).arrayBuffer())),h=o&&f&&h2(()=>{let S=!1;const j=new n(sn.origin,{body:new f2,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!j}),p=u&&f&&h2(()=>V.isReadableStream(new r("").body)),y={stream:p&&(S=>S.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!y[S]&&(y[S]=(j,_)=>{let A=j&&j[S];if(A)return A.call(j);throw new Te(`Response type '${S}' is not supported`,Te.ERR_NOT_SUPPORT,_)})});const b=async S=>{if(S==null)return 0;if(V.isBlob(S))return S.size;if(V.isSpecCompliantForm(S))return(await new n(sn.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(V.isArrayBufferView(S)||V.isArrayBuffer(S))return S.byteLength;if(V.isURLSearchParams(S)&&(S=S+""),V.isString(S))return(await d(S)).byteLength},w=async(S,j)=>{const _=V.toFiniteNumber(S.getContentLength());return _??b(j)};return async S=>{let{url:j,method:_,data:A,signal:N,cancelToken:C,timeout:D,onDownloadProgress:k,onUploadProgress:T,responseType:P,headers:$,withCredentials:X="same-origin",fetchOptions:Z}=VN(S),te=t||fetch;P=P?(P+"").toLowerCase():"text";let R=p6([N,C&&C.toAbortSignal()],D),ce=null;const le=R&&R.unsubscribe&&(()=>{R.unsubscribe()});let fe;try{if(T&&h&&_!=="get"&&_!=="head"&&(fe=await w($,A))!==0){let M=new n(j,{method:"POST",body:A,duplex:"half"}),q;if(V.isFormData(A)&&(q=M.headers.get("content-type"))&&$.setContentType(q),M.body){const[ie,ue]=l2(fe,Nf(o2(T)));A=u2(M.body,c2,ie,ue)}}V.isString(X)||(X=X?"include":"omit");const U=o&&"credentials"in n.prototype,Q={...Z,signal:R,method:_.toUpperCase(),headers:$.normalize().toJSON(),body:A,duplex:"half",credentials:U?X:void 0};ce=o&&new n(j,Q);let se=await(o?te(ce,Z):te(j,Q));const de=p&&(P==="stream"||P==="response");if(p&&(k||de&&le)){const M={};["status","statusText","headers"].forEach(me=>{M[me]=se[me]});const q=V.toFiniteNumber(se.headers.get("content-length")),[ie,ue]=k&&l2(q,Nf(o2(k),!0))||[];se=new r(u2(se.body,c2,ie,()=>{ue&&ue(),le&&le()}),M)}P=P||"text";let B=await y[V.findKey(y,P)||"text"](se,S);return!de&&le&&le(),await new Promise((M,q)=>{YN(M,q,{data:B,headers:An.from(se.headers),status:se.status,statusText:se.statusText,config:S,request:ce})})}catch(U){throw le&&le(),U&&U.name==="TypeError"&&/Load failed|fetch/i.test(U.message)?Object.assign(new Te("Network Error",Te.ERR_NETWORK,S,ce),{cause:U.cause||U}):Te.from(U,U&&U.code,S,ce)}}},w6=new Map,XN=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:l}=t,o=[r,l,n];let u=o.length,f=u,d,h,p=w6;for(;f--;)d=o[f],h=p.get(d),h===void 0&&p.set(d,h=f?new Map:x6(t)),p=h;return h};XN();const qg={http:BP,xhr:m6,fetch:{get:XN}};V.forEach(qg,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const m2=e=>`- ${e}`,S6=e=>V.isFunction(e)||e===null||e===!1;function j6(e,t){e=V.isArray(e)?e:[e];const{length:n}=e;let r,l;const o={};for(let u=0;u<n;u++){r=e[u];let f;if(l=r,!S6(r)&&(l=qg[(f=String(r)).toLowerCase()],l===void 0))throw new Te(`Unknown adapter '${f}'`);if(l&&(V.isFunction(l)||(l=l.get(t))))break;o[f||"#"+u]=l}if(!l){const u=Object.entries(o).map(([d,h])=>`adapter ${d} `+(h===!1?"is not supported by the environment":"is not available in the build"));let f=n?u.length>1?`since :
`+u.map(m2).join(`
`):" "+m2(u[0]):"as no adapter specified";throw new Te("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return l}const ZN={getAdapter:j6,adapters:qg};function Fp(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new go(null,e)}function p2(e){return Fp(e),e.headers=An.from(e.headers),e.data=Hp.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ZN.getAdapter(e.adapter||ru.adapter,e)(e).then(function(r){return Fp(e),r.data=Hp.call(e,e.transformResponse,r),r.headers=An.from(r.headers),r},function(r){return KN(r)||(Fp(e),r&&r.response&&(r.response.data=Hp.call(e,e.transformResponse,r.response),r.response.headers=An.from(r.response.headers))),Promise.reject(r)})}const WN="1.13.2",Cd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Cd[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const v2={};Cd.transitional=function(t,n,r){function l(o,u){return"[Axios v"+WN+"] Transitional option '"+o+"'"+u+(r?". "+r:"")}return(o,u,f)=>{if(t===!1)throw new Te(l(u," has been removed"+(n?" in "+n:"")),Te.ERR_DEPRECATED);return n&&!v2[u]&&(v2[u]=!0,console.warn(l(u," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,u,f):!0}};Cd.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function _6(e,t,n){if(typeof e!="object")throw new Te("options must be an object",Te.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],u=t[o];if(u){const f=e[o],d=f===void 0||u(f,o,e);if(d!==!0)throw new Te("option "+o+" must be "+d,Te.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Te("Unknown option "+o,Te.ERR_BAD_OPTION)}}const yf={assertOptions:_6,validators:Cd},Cr=yf.validators;let Fi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new a2,response:new a2}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Zi(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&yf.assertOptions(r,{silentJSONParsing:Cr.transitional(Cr.boolean),forcedJSONParsing:Cr.transitional(Cr.boolean),clarifyTimeoutError:Cr.transitional(Cr.boolean)},!1),l!=null&&(V.isFunction(l)?n.paramsSerializer={serialize:l}:yf.assertOptions(l,{encode:Cr.function,serialize:Cr.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),yf.assertOptions(n,{baseUrl:Cr.spelling("baseURL"),withXsrfToken:Cr.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let u=o&&V.merge(o.common,o[n.method]);o&&V.forEach(["delete","get","head","post","put","patch","common"],S=>{delete o[S]}),n.headers=An.concat(u,o);const f=[];let d=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(n)===!1||(d=d&&j.synchronous,f.unshift(j.fulfilled,j.rejected))});const h=[];this.interceptors.response.forEach(function(j){h.push(j.fulfilled,j.rejected)});let p,y=0,b;if(!d){const S=[p2.bind(this),void 0];for(S.unshift(...f),S.push(...h),b=S.length,p=Promise.resolve(n);y<b;)p=p.then(S[y++],S[y++]);return p}b=f.length;let w=n;for(;y<b;){const S=f[y++],j=f[y++];try{w=S(w)}catch(_){j.call(this,_);break}}try{p=p2.call(this,w)}catch(S){return Promise.reject(S)}for(y=0,b=h.length;y<b;)p=p.then(h[y++],h[y++]);return p}getUri(t){t=Zi(this.defaults,t);const n=GN(t.baseURL,t.url,t.allowAbsoluteUrls);return qN(n,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){Fi.prototype[t]=function(n,r){return this.request(Zi(r||{},{method:t,url:n,data:(r||{}).data}))}});V.forEach(["post","put","patch"],function(t){function n(r){return function(o,u,f){return this.request(Zi(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:u}))}}Fi.prototype[t]=n(),Fi.prototype[t+"Form"]=n(!0)});let O6=class QN{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(o){n=o});const r=this;this.promise.then(l=>{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const u=new Promise(f=>{r.subscribe(f),o=f}).then(l);return u.cancel=function(){r.unsubscribe(o)},u},t(function(o,u,f){r.reason||(r.reason=new go(o,u,f),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 QN(function(l){t=l}),cancel:t}}};function A6(e){return function(n){return e.apply(null,n)}}function N6(e){return V.isObject(e)&&e.isAxiosError===!0}const ky={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(ky).forEach(([e,t])=>{ky[t]=e});function JN(e){const t=new Fi(e),n=TN(Fi.prototype.request,t);return V.extend(n,Fi.prototype,t,{allOwnKeys:!0}),V.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return JN(Zi(e,l))},n}const _t=JN(ru);_t.Axios=Fi;_t.CanceledError=go;_t.CancelToken=O6;_t.isCancel=KN;_t.VERSION=WN;_t.toFormData=Ed;_t.AxiosError=Te;_t.Cancel=_t.CanceledError;_t.all=function(t){return Promise.all(t)};_t.spread=A6;_t.isAxiosError=N6;_t.mergeConfig=Zi;_t.AxiosHeaders=An;_t.formToJSON=e=>FN(V.isHTMLForm(e)?new FormData(e):e);_t.getAdapter=ZN.getAdapter;_t.HttpStatusCode=ky;_t.default=_t;const{Axios:$W,AxiosError:UW,CanceledError:qW,isCancel:HW,CancelToken:FW,VERSION:KW,all:YW,Cancel:GW,isAxiosError:VW,spread:XW,toFormData:ZW,AxiosHeaders:WW,HttpStatusCode:QW,formToJSON:JW,getAdapter:eQ,mergeConfig:tQ}=_t,bo=_t.create({baseURL:"",timeout:3e4,headers:{"Content-Type":"application/json"}});bo.interceptors.request.use(e=>{const t=localStorage.getItem("auth_token");return t&&e.headers&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));bo.interceptors.response.use(e=>e.data,e=>{var n,r,l,o,u;((n=e.response)==null?void 0:n.status)===401&&(localStorage.removeItem("auth_token"),window.dispatchEvent(new Event("auth:logout")),window.location.href="/");const t=((l=(r=e.response)==null?void 0:r.data)==null?void 0:l.message)||((u=(o=e.response)==null?void 0:o.data)==null?void 0:u.msg)||e.message||"Network Error";return Promise.reject(new Error(t))});const Vt=(e,t,n)=>bo.get(e,{...n,params:t}),Lr=(e,t,n)=>bo.post(e,t,n),cr=(e,t,n)=>bo.put(e,t,n),au=(e,t)=>bo.delete(e,t),E6=async e=>Lr("/login",e),C6=async()=>Vt("/verify"),Hg=async()=>(await Vt("/cookies/details")).map(t=>({id:t.id,value:t.value,cookie:t.value,enabled:t.enabled,auto_confirm:t.auto_confirm,remark:t.remark,note:t.remark,pause_duration:t.pause_duration,username:t.username,login_password:t.login_password,show_browser:t.show_browser,nickname:t.remark||`Account ${t.id.substring(0,6)}`,avatar_url:`https://api.dicebear.com/7.x/avataaars/svg?seed=${t.id}`,ai_enabled:!1})),T6=async()=>Lr("/qr-login/generate"),M6=async e=>Vt(`/qr-login/check/${e}`),D6=async(e,t)=>cr(`/cookies/${e}/status`,{enabled:t}),k6=async e=>au(`/cookies/${e}`),P6=async(e,t)=>cr(`/cookies/${e}/remark`,{remark:t}),R6=async(e,t)=>cr(`/cookies/${e}/auto-confirm`,{auto_confirm:t}),z6=async(e,t)=>cr(`/cookies/${e}/pause-duration`,{pause_duration:t}),L6=async(e,t)=>cr(`/cookies/${e}`,{id:e,value:t}),B6=async(e,t)=>cr(`/cookies/${e}/login-info`,t),I6=async()=>Vt("/ai-reply-settings"),y2=async(e,t,n=1,r=20)=>{const l={page:n,page_size:r};t&&t!=="all"&&(l.status=t);const o=await Vt("/api/orders",l),u=o.orders||o.data||[];return{success:!0,data:u,total:o.total||u.length,page:o.page||n,page_size:o.page_size||r,total_pages:o.total_pages||1}},$6=async(e,t)=>cr(`/api/orders/${e}`,t),U6=async e=>au(`/api/orders/${e}`),q6=async(e,t)=>{const n=new FormData,r=localStorage.getItem("auth_token");return(await fetch("/api/orders/refresh",{method:"POST",headers:{Authorization:`Bearer ${r}`},body:n})).json()},H6=async e=>Lr(`/api/orders/${e}/refresh`),F6=async(e,t,n)=>Lr("/api/orders/manual-ship",{order_ids:e,ship_mode:t,custom_content:n}),K6=async e=>{const t=e instanceof FormData;return(await fetch("/api/orders/import",{method:"POST",headers:{...t?{}:{"Content-Type":"application/json"},Authorization:`Bearer ${localStorage.getItem("auth_token")}`},body:t?e:JSON.stringify(e)})).json()},Y6=async()=>Vt("/admin/stats"),g2=async(e=7)=>{let t;if(typeof e=="number"){const n=new Date,r=new Date;r.setDate(r.getDate()-e),t={start_date:r.toISOString().split("T")[0],end_date:n.toISOString().split("T")[0]}}else t=e;return Vt("/analytics/orders",t)},G6=async e=>(await Vt("/analytics/orders/valid",{start_date:e.start_date,end_date:e.end_date})).orders||[],Ql=async()=>{const e=await Vt("/cards");return Array.isArray(e)?e:e.cards||[]},V6=async e=>Lr("/cards",e),b2=async(e,t)=>cr(`/cards/${e}`,t),X6=async e=>au(`/cards/${e}`),Ef=async()=>{const e=await Vt("/items");return Array.isArray(e)?e:e.items||[]},Z6=async e=>Lr("/items/get-all-from-account",{cookie_id:e}),W6=async()=>{const e=await Vt("/delivery-rules");return(Array.isArray(e)?e:e.data||e.rules||[]).map(n=>({id:String(n.id),name:n.description||n.keyword||"",item_keyword:n.keyword||"",card_group_id:n.card_id||0,card_group_name:n.card_name||"",priority:n.delivery_count||1,enabled:n.enabled||!1}))},x2=async e=>{const t={keyword:e.item_keyword,card_id:e.card_group_id,delivery_count:e.priority,enabled:e.enabled??!0,description:e.name};return e.id?cr(`/delivery-rules/${e.id}`,t):Lr("/delivery-rules",t)},Q6=async e=>au(`/delivery-rules/${e}`),J6=async e=>{if(!e)return[];const t=await Vt(`/keywords-with-item-id/${e}`);return(Array.isArray(t)?t:[]).map((r,l)=>({id:String(l),keyword:r.keyword||"",reply_content:r.reply||"",match_type:"exact",enabled:!0}))},eR=async(e,t)=>{const n=await Vt(`/keywords-with-item-id/${t}`),r=Array.isArray(n)?n:[];if(e.id){const l=parseInt(e.id);l>=0&&l<r.length&&(r[l]={keyword:e.keyword,reply:e.reply_content,item_id:""})}else r.push({keyword:e.keyword,reply:e.reply_content,item_id:""});return Lr(`/keywords-with-item-id/${t}`,{keywords:r})},tR=async(e,t)=>{const n=await Vt(`/keywords-with-item-id/${t}`),r=Array.isArray(n)?n:[],l=parseInt(e);return l>=0&&l<r.length&&r.splice(l,1),Lr(`/keywords-with-item-id/${t}`,{keywords:r})},nR=async()=>{const e=await Vt("/system-settings");return e.data||e},rR=async e=>{const t=Object.entries(e).map(([n,r])=>cr(`/system-settings/${n}`,{value:String(r)}));return await Promise.all(t),{success:!0,message:"Settings saved"}},aR=async e=>Vt(`/ai-reply-settings/${e}`),iR=async(e,t)=>{const n={ai_enabled:t.ai_enabled??!1,model_name:t.model_name??"qwen-plus",api_key:t.api_key??"",base_url:t.base_url??"https://dashscope.aliyuncs.com/compatible-mode/v1",max_discount_percent:t.max_discount_percent??10,max_discount_amount:t.max_discount_amount??100,max_bargain_rounds:t.max_bargain_rounds??3,custom_prompts:t.custom_prompts??""};return cr(`/ai-reply-settings/${e}`,n)},lR=async()=>Vt("/api/default-replies"),oR=async e=>{const t=await Vt(`/api/default-reply/${e}`);return{cookie_id:e,enabled:t.enabled||!1,reply_content:t.reply_content||"",reply_once:t.reply_once||!1,reply_image_url:t.reply_image_url||""}},sR=async(e,t)=>cr(`/api/default-reply/${e}`,{enabled:t.enabled??!1,reply_content:t.reply_content||"",reply_once:t.reply_once??!1,reply_image_url:t.reply_image_url||""}),uR=async e=>au(`/api/default-reply/${e}`),cR=async e=>Lr(`/api/default-reply/${e}/clear-records`,{});function eE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var l=e.length;for(t=0;t<l;t++)e[t]&&(n=eE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function qe(){for(var e,t,n=0,r="",l=arguments.length;n<l;n++)(e=arguments[n])&&(t=eE(e))&&(r&&(r+=" "),r+=t);return r}var fR=["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"];function Fg(e){if(typeof e!="string")return!1;var t=fR;return t.includes(e)}var dR=["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"],hR=new Set(dR);function tE(e){return typeof e!="string"?!1:hR.has(e)}function nE(e){return typeof e=="string"&&e.startsWith("data-")}function Nn(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(tE(n)||nE(n))&&(t[n]=e[n]);return t}function Wi(e){if(e==null)return null;if(x.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Nn(t)}return typeof e=="object"&&!Array.isArray(e)?Nn(e):null}function pn(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(tE(n)||nE(n)||Fg(n))&&(t[n]=e[n]);return t}function mR(e){return e==null?null:x.isValidElement(e)?pn(e.props):typeof e=="object"&&!Array.isArray(e)?pn(e):null}var pR=["children","width","height","viewBox","className","style","title","desc"];function Py(){return Py=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Py.apply(null,arguments)}function vR(e,t){if(e==null)return{};var n,r,l=yR(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function yR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Kg=x.forwardRef((e,t)=>{var{children:n,width:r,height:l,viewBox:o,className:u,style:f,title:d,desc:h}=e,p=vR(e,pR),y=o||{width:r,height:l,x:0,y:0},b=qe("recharts-surface",u);return x.createElement("svg",Py({},pn(p),{className:b,width:r,height:l,style:f,viewBox:"".concat(y.x," ").concat(y.y," ").concat(y.width," ").concat(y.height),ref:t}),x.createElement("title",null,d),x.createElement("desc",null,h),n)}),gR=["children","className"];function Ry(){return Ry=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ry.apply(null,arguments)}function bR(e,t){if(e==null)return{};var n,r,l=xR(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function xR(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ot=x.forwardRef((e,t)=>{var{children:n,className:r}=e,l=bR(e,gR),o=qe("recharts-layer",r);return x.createElement("g",Ry({className:o},pn(l),{ref:t}),n)}),hn=wN(),rE=x.createContext(null),wR=()=>x.useContext(rE);function at(e){return function(){return e}}const aE=Math.cos,Cf=Math.sin,Sr=Math.sqrt,Tf=Math.PI,Td=2*Tf,zy=Math.PI,Ly=2*zy,Pi=1e-6,SR=Ly-Pi;function iE(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function jR(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return iE;const n=10**t;return function(r){this._+=r[0];for(let l=1,o=r.length;l<o;++l)this._+=Math.round(arguments[l]*n)/n+r[l]}}class _R{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?iE:jR(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,l){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+l}`}bezierCurveTo(t,n,r,l,o,u){this._append`C${+t},${+n},${+r},${+l},${this._x1=+o},${this._y1=+u}`}arcTo(t,n,r,l,o){if(t=+t,n=+n,r=+r,l=+l,o=+o,o<0)throw new Error(`negative radius: ${o}`);let u=this._x1,f=this._y1,d=r-t,h=l-n,p=u-t,y=f-n,b=p*p+y*y;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(b>Pi)if(!(Math.abs(y*d-h*p)>Pi)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let w=r-u,S=l-f,j=d*d+h*h,_=w*w+S*S,A=Math.sqrt(j),N=Math.sqrt(b),C=o*Math.tan((zy-Math.acos((j+b-_)/(2*A*N)))/2),D=C/N,k=C/A;Math.abs(D-1)>Pi&&this._append`L${t+D*p},${n+D*y}`,this._append`A${o},${o},0,0,${+(y*w>p*S)},${this._x1=t+k*d},${this._y1=n+k*h}`}}arc(t,n,r,l,o,u){if(t=+t,n=+n,r=+r,u=!!u,r<0)throw new Error(`negative radius: ${r}`);let f=r*Math.cos(l),d=r*Math.sin(l),h=t+f,p=n+d,y=1^u,b=u?l-o:o-l;this._x1===null?this._append`M${h},${p}`:(Math.abs(this._x1-h)>Pi||Math.abs(this._y1-p)>Pi)&&this._append`L${h},${p}`,r&&(b<0&&(b=b%Ly+Ly),b>SR?this._append`A${r},${r},0,1,${y},${t-f},${n-d}A${r},${r},0,1,${y},${this._x1=h},${this._y1=p}`:b>Pi&&this._append`A${r},${r},0,${+(b>=zy)},${y},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}rect(t,n,r,l){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+l}h${-r}Z`}toString(){return this._}}function Yg(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 _R(t)}function Gg(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function lE(e){this._context=e}lE.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 Md(e){return new lE(e)}function oE(e){return e[0]}function sE(e){return e[1]}function uE(e,t){var n=at(!0),r=null,l=Md,o=null,u=Yg(f);e=typeof e=="function"?e:e===void 0?oE:at(e),t=typeof t=="function"?t:t===void 0?sE:at(t);function f(d){var h,p=(d=Gg(d)).length,y,b=!1,w;for(r==null&&(o=l(w=u())),h=0;h<=p;++h)!(h<p&&n(y=d[h],h,d))===b&&((b=!b)?o.lineStart():o.lineEnd()),b&&o.point(+e(y,h,d),+t(y,h,d));if(w)return o=null,w+""||null}return f.x=function(d){return arguments.length?(e=typeof d=="function"?d:at(+d),f):e},f.y=function(d){return arguments.length?(t=typeof d=="function"?d:at(+d),f):t},f.defined=function(d){return arguments.length?(n=typeof d=="function"?d:at(!!d),f):n},f.curve=function(d){return arguments.length?(l=d,r!=null&&(o=l(r)),f):l},f.context=function(d){return arguments.length?(d==null?r=o=null:o=l(r=d),f):r},f}function Yc(e,t,n){var r=null,l=at(!0),o=null,u=Md,f=null,d=Yg(h);e=typeof e=="function"?e:e===void 0?oE:at(+e),t=typeof t=="function"?t:at(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?sE:at(+n);function h(y){var b,w,S,j=(y=Gg(y)).length,_,A=!1,N,C=new Array(j),D=new Array(j);for(o==null&&(f=u(N=d())),b=0;b<=j;++b){if(!(b<j&&l(_=y[b],b,y))===A)if(A=!A)w=b,f.areaStart(),f.lineStart();else{for(f.lineEnd(),f.lineStart(),S=b-1;S>=w;--S)f.point(C[S],D[S]);f.lineEnd(),f.areaEnd()}A&&(C[b]=+e(_,b,y),D[b]=+t(_,b,y),f.point(r?+r(_,b,y):C[b],n?+n(_,b,y):D[b]))}if(N)return f=null,N+""||null}function p(){return uE().defined(l).curve(u).context(o)}return h.x=function(y){return arguments.length?(e=typeof y=="function"?y:at(+y),r=null,h):e},h.x0=function(y){return arguments.length?(e=typeof y=="function"?y:at(+y),h):e},h.x1=function(y){return arguments.length?(r=y==null?null:typeof y=="function"?y:at(+y),h):r},h.y=function(y){return arguments.length?(t=typeof y=="function"?y:at(+y),n=null,h):t},h.y0=function(y){return arguments.length?(t=typeof y=="function"?y:at(+y),h):t},h.y1=function(y){return arguments.length?(n=y==null?null:typeof y=="function"?y:at(+y),h):n},h.lineX0=h.lineY0=function(){return p().x(e).y(t)},h.lineY1=function(){return p().x(e).y(n)},h.lineX1=function(){return p().x(r).y(t)},h.defined=function(y){return arguments.length?(l=typeof y=="function"?y:at(!!y),h):l},h.curve=function(y){return arguments.length?(u=y,o!=null&&(f=u(o)),h):u},h.context=function(y){return arguments.length?(y==null?o=f=null:f=u(o=y),h):o},h}class cE{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 OR(e){return new cE(e,!0)}function AR(e){return new cE(e,!1)}const Vg={draw(e,t){const n=Sr(t/Tf);e.moveTo(n,0),e.arc(0,0,n,0,Td)}},NR={draw(e,t){const n=Sr(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()}},fE=Sr(1/3),ER=fE*2,CR={draw(e,t){const n=Sr(t/ER),r=n*fE;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},TR={draw(e,t){const n=Sr(t),r=-n/2;e.rect(r,r,n,n)}},MR=.8908130915292852,dE=Cf(Tf/10)/Cf(7*Tf/10),DR=Cf(Td/10)*dE,kR=-aE(Td/10)*dE,PR={draw(e,t){const n=Sr(t*MR),r=DR*n,l=kR*n;e.moveTo(0,-n),e.lineTo(r,l);for(let o=1;o<5;++o){const u=Td*o/5,f=aE(u),d=Cf(u);e.lineTo(d*n,-f*n),e.lineTo(f*r-d*l,d*r+f*l)}e.closePath()}},Kp=Sr(3),RR={draw(e,t){const n=-Sr(t/(Kp*3));e.moveTo(0,n*2),e.lineTo(-Kp*n,-n),e.lineTo(Kp*n,-n),e.closePath()}},tr=-.5,nr=Sr(3)/2,By=1/Sr(12),zR=(By/2+1)*3,LR={draw(e,t){const n=Sr(t/zR),r=n/2,l=n*By,o=r,u=n*By+n,f=-o,d=u;e.moveTo(r,l),e.lineTo(o,u),e.lineTo(f,d),e.lineTo(tr*r-nr*l,nr*r+tr*l),e.lineTo(tr*o-nr*u,nr*o+tr*u),e.lineTo(tr*f-nr*d,nr*f+tr*d),e.lineTo(tr*r+nr*l,tr*l-nr*r),e.lineTo(tr*o+nr*u,tr*u-nr*o),e.lineTo(tr*f+nr*d,tr*d-nr*f),e.closePath()}};function BR(e,t){let n=null,r=Yg(l);e=typeof e=="function"?e:at(e||Vg),t=typeof t=="function"?t:at(t===void 0?64:+t);function l(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return l.type=function(o){return arguments.length?(e=typeof o=="function"?o:at(o),l):e},l.size=function(o){return arguments.length?(t=typeof o=="function"?o:at(+o),l):t},l.context=function(o){return arguments.length?(n=o??null,l):n},l}function Mf(){}function Df(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 hE(e){this._context=e}hE.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:Df(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:Df(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IR(e){return new hE(e)}function mE(e){this._context=e}mE.prototype={areaStart:Mf,areaEnd:Mf,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:Df(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $R(e){return new mE(e)}function pE(e){this._context=e}pE.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:Df(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UR(e){return new pE(e)}function vE(e){this._context=e}vE.prototype={areaStart:Mf,areaEnd:Mf,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 qR(e){return new vE(e)}function w2(e){return e<0?-1:1}function S2(e,t,n){var r=e._x1-e._x0,l=t-e._x1,o=(e._y1-e._y0)/(r||l<0&&-0),u=(n-e._y1)/(l||r<0&&-0),f=(o*l+u*r)/(r+l);return(w2(o)+w2(u))*Math.min(Math.abs(o),Math.abs(u),.5*Math.abs(f))||0}function j2(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Yp(e,t,n){var r=e._x0,l=e._y0,o=e._x1,u=e._y1,f=(o-r)/3;e._context.bezierCurveTo(r+f,l+f*t,o-f,u-f*n,o,u)}function kf(e){this._context=e}kf.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:Yp(this,this._t0,j2(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,Yp(this,j2(this,n=S2(this,e,t)),n);break;default:Yp(this,this._t0,n=S2(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function yE(e){this._context=new gE(e)}(yE.prototype=Object.create(kf.prototype)).point=function(e,t){kf.prototype.point.call(this,t,e)};function gE(e){this._context=e}gE.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,l,o){this._context.bezierCurveTo(t,e,r,n,o,l)}};function HR(e){return new kf(e)}function FR(e){return new yE(e)}function bE(e){this._context=e}bE.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=_2(e),l=_2(t),o=0,u=1;u<n;++o,++u)this._context.bezierCurveTo(r[0][o],l[0][o],r[1][o],l[1][o],e[u],t[u]);(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 _2(e){var t,n=e.length-1,r,l=new Array(n),o=new Array(n),u=new Array(n);for(l[0]=0,o[0]=2,u[0]=e[0]+2*e[1],t=1;t<n-1;++t)l[t]=1,o[t]=4,u[t]=4*e[t]+2*e[t+1];for(l[n-1]=2,o[n-1]=7,u[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=l[t]/o[t-1],o[t]-=r,u[t]-=r*u[t-1];for(l[n-1]=u[n-1]/o[n-1],t=n-2;t>=0;--t)l[t]=(u[t]-l[t+1])/o[t];for(o[n-1]=(e[n]+l[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-l[t+1];return[l,o]}function KR(e){return new bE(e)}function Dd(e,t){this._context=e,this._t=t}Dd.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 YR(e){return new Dd(e,.5)}function GR(e){return new Dd(e,0)}function VR(e){return new Dd(e,1)}function Qi(e,t){if((u=e.length)>1)for(var n=1,r,l,o=e[t[0]],u,f=o.length;n<u;++n)for(l=o,o=e[t[n]],r=0;r<f;++r)o[r][1]+=o[r][0]=isNaN(l[r][1])?l[r][0]:l[r][1]}function Iy(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function XR(e,t){return e[t]}function ZR(e){const t=[];return t.key=e,t}function WR(){var e=at([]),t=Iy,n=Qi,r=XR;function l(o){var u=Array.from(e.apply(this,arguments),ZR),f,d=u.length,h=-1,p;for(const y of o)for(f=0,++h;f<d;++f)(u[f][h]=[0,+r(y,u[f].key,h,o)]).data=y;for(f=0,p=Gg(t(u));f<d;++f)u[p[f]].index=f;return n(u,p),u}return l.keys=function(o){return arguments.length?(e=typeof o=="function"?o:at(Array.from(o)),l):e},l.value=function(o){return arguments.length?(r=typeof o=="function"?o:at(+o),l):r},l.order=function(o){return arguments.length?(t=o==null?Iy:typeof o=="function"?o:at(Array.from(o)),l):t},l.offset=function(o){return arguments.length?(n=o??Qi,l):n},l}function QR(e,t){if((r=e.length)>0){for(var n,r,l=0,o=e[0].length,u;l<o;++l){for(u=n=0;n<r;++n)u+=e[n][l][1]||0;if(u)for(n=0;n<r;++n)e[n][l][1]/=u}Qi(e,t)}}function JR(e,t){if((l=e.length)>0){for(var n=0,r=e[t[0]],l,o=r.length;n<o;++n){for(var u=0,f=0;u<l;++u)f+=e[u][n][1]||0;r[n][1]+=r[n][0]=-f/2}Qi(e,t)}}function ez(e,t){if(!(!((u=e.length)>0)||!((o=(l=e[t[0]]).length)>0))){for(var n=0,r=1,l,o,u;r<o;++r){for(var f=0,d=0,h=0;f<u;++f){for(var p=e[t[f]],y=p[r][1]||0,b=p[r-1][1]||0,w=(y-b)/2,S=0;S<f;++S){var j=e[t[S]],_=j[r][1]||0,A=j[r-1][1]||0;w+=_-A}d+=y,h+=w*y}l[r-1][1]+=l[r-1][0]=n,d&&(n-=h/d)}l[r-1][1]+=l[r-1][0]=n,Qi(e,t)}}var Gp={},Vp={},O2;function tz(){return O2||(O2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(Vp)),Vp}var Xp={},A2;function xE(){return A2||(A2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(Xp)),Xp}var Zp={},N2;function Xg(){return N2||(N2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(Zp)),Zp}var Wp={},Qp={},E2;function nz(){return E2||(E2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(Qp)),Qp}var C2;function Zg(){return C2||(C2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=nz(),n=Xg();function r(l){if(Array.isArray(l))return l.map(n.toKey);if(typeof l=="symbol")return[l];l=t.toString(l);const o=[],u=l.length;if(u===0)return o;let f=0,d="",h="",p=!1;for(l.charCodeAt(0)===46&&(o.push(""),f++);f<u;){const y=l[f];h?y==="\\"&&f+1<u?(f++,d+=l[f]):y===h?h="":d+=y:p?y==='"'||y==="'"?h=y:y==="]"?(p=!1,o.push(d),d=""):d+=y:y==="["?(p=!0,d&&(o.push(d),d="")):y==="."?d&&(o.push(d),d=""):d+=y,f++}return d&&o.push(d),o}e.toPath=r})(Wp)),Wp}var T2;function Wg(){return T2||(T2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tz(),n=xE(),r=Xg(),l=Zg();function o(f,d,h){if(f==null)return h;switch(typeof d){case"string":{if(t.isUnsafeProperty(d))return h;const p=f[d];return p===void 0?n.isDeepKey(d)?o(f,l.toPath(d),h):h:p}case"number":case"symbol":{typeof d=="number"&&(d=r.toKey(d));const p=f[d];return p===void 0?h:p}default:{if(Array.isArray(d))return u(f,d,h);if(Object.is(d==null?void 0:d.valueOf(),-0)?d="-0":d=String(d),t.isUnsafeProperty(d))return h;const p=f[d];return p===void 0?h:p}}}function u(f,d,h){if(d.length===0)return h;let p=f;for(let y=0;y<d.length;y++){if(p==null||t.isUnsafeProperty(d[y]))return h;p=p[d[y]]}return p===void 0?h:p}e.get=o})(Gp)),Gp}var Jp,M2;function rz(){return M2||(M2=1,Jp=Wg().get),Jp}var az=rz();const Ji=zr(az);var iz=4;function ri(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:iz,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function bt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((l,o,u)=>{var f=n[u-1];return typeof f=="string"?l+f+o:f!==void 0?l+ri(f)+o:l+o},"")}var Gt=e=>e===0?0:e>0?1:-1,or=e=>typeof e=="number"&&e!=+e,ha=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,he=e=>(typeof e=="number"||e instanceof Number)&&!or(e),kr=e=>he(e)||typeof e=="string",lz=0,Is=e=>{var t=++lz;return"".concat(e||"").concat(t)},un=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!he(t)&&typeof t!="string")return r;var o;if(ha(t)){if(n==null)return r;var u=t.indexOf("%");o=n*parseFloat(t.slice(0,u))/100}else o=+t;return or(o)&&(o=r),l&&n!=null&&o>n&&(o=n),o},wE=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function ut(e,t,n){return he(e)&&he(t)?ri(e+n*(t-e)):t}function SE(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):Ji(r,t))===n)}var pt=e=>e===null||typeof e>"u",iu=e=>pt(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function oz(e){return e!=null}function lu(){}var sz=["type","size","sizeType"];function $y(){return $y=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$y.apply(null,arguments)}function D2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function k2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D2(Object(n),!0).forEach(function(r){uz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uz(e,t,n){return(t=cz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cz(e){var t=fz(e,"string");return typeof t=="symbol"?t:t+""}function fz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dz(e,t){if(e==null)return{};var n,r,l=hz(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function hz(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var jE={symbolCircle:Vg,symbolCross:NR,symbolDiamond:CR,symbolSquare:TR,symbolStar:PR,symbolTriangle:RR,symbolWye:LR},mz=Math.PI/180,pz=e=>{var t="symbol".concat(iu(e));return jE[t]||Vg},vz=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*mz;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},yz=(e,t)=>{jE["symbol".concat(iu(e))]=t},Qg=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,l=dz(e,sz),o=k2(k2({},l),{},{type:t,size:n,sizeType:r}),u="circle";typeof t=="string"&&(u=t);var f=()=>{var b=pz(u),w=BR().type(b).size(vz(n,r,u)),S=w();if(S!==null)return S},{className:d,cx:h,cy:p}=o,y=pn(o);return he(h)&&he(p)&&he(n)?x.createElement("path",$y({},y,{className:qe("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};Qg.registerSymbol=yz;var _E=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Jg=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(x.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(l=>{Fg(l)&&(r[l]=(o=>n[l](n,o)))}),r},gz=(e,t,n)=>r=>(e(t,n,r),null),ou=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(l=>{var o=e[l];Fg(l)&&typeof o=="function"&&(r||(r={}),r[l]=gz(o,t,n))}),r};function P2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function bz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P2(Object(n),!0).forEach(function(r){xz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xz(e,t,n){return(t=wz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wz(e){var t=Sz(e,"string");return typeof t=="symbol"?t:t+""}function Sz(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pt(e,t){var n=bz({},e),r=t,l=Object.keys(t),o=l.reduce((u,f)=>(u[f]===void 0&&r[f]!==void 0&&(u[f]=r[f]),u),n);return o}function Pf(){return Pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pf.apply(null,arguments)}function R2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function jz(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){_z(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 _z(e,t,n){return(t=Oz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oz(e){var t=Az(e,"string");return typeof t=="symbol"?t:t+""}function Az(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ar=32,Nz={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function Ez(e){var{data:t,iconType:n,inactiveColor:r}=e,l=ar/2,o=ar/6,u=ar/3,f=t.inactive?r:t.color,d=n??t.type;if(d==="none")return null;if(d==="plainline"){var h;return x.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:(h=t.payload)===null||h===void 0?void 0:h.strokeDasharray,x1:0,y1:l,x2:ar,y2:l,className:"recharts-legend-icon"})}if(d==="line")return x.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(l,"h").concat(u,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(2*u,",").concat(l,`
            H`).concat(ar,"M").concat(2*u,",").concat(l,`
            A`).concat(o,",").concat(o,",0,1,1,").concat(u,",").concat(l),className:"recharts-legend-icon"});if(d==="rect")return x.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(ar/8,"h").concat(ar,"v").concat(ar*3/4,"h").concat(-ar,"z"),className:"recharts-legend-icon"});if(x.isValidElement(t.legendIcon)){var p=jz({},t);return delete p.legendIcon,x.cloneElement(t.legendIcon,p)}return x.createElement(Qg,{fill:f,cx:l,cy:l,size:ar,sizeType:"diameter",type:d})}function Cz(e){var{payload:t,iconSize:n,layout:r,formatter:l,inactiveColor:o,iconType:u}=e,f={x:0,y:0,width:ar,height:ar},d={display:r==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((p,y)=>{var b=p.formatter||l,w=qe({"recharts-legend-item":!0,["legend-item-".concat(y)]:!0,inactive:p.inactive});if(p.type==="none")return null;var S=p.inactive?o:p.color,j=b?b(p.value,p,y):p.value;return x.createElement("li",Pf({className:w,style:d,key:"legend-item-".concat(y)},ou(e,p,y)),x.createElement(Kg,{width:n,height:n,viewBox:f,style:h,"aria-label":"".concat(j," legend icon")},x.createElement(Ez,{data:p,iconType:u,inactiveColor:o})),x.createElement("span",{className:"recharts-legend-item-text",style:{color:S}},j))})}var Tz=e=>{var t=Pt(e,Nz),{payload:n,layout:r,align:l}=t;if(!n||!n.length)return null;var o={padding:0,margin:0,textAlign:r==="horizontal"?l:"left"};return x.createElement("ul",{className:"recharts-default-legend",style:o},x.createElement(Cz,Pf({},t,{payload:n})))},ev={},tv={},z2;function Mz(){return z2||(z2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const l=new Map;for(let o=0;o<n.length;o++){const u=n[o],f=r(u,o,n);l.has(f)||l.set(f,u)}return Array.from(l.values())}e.uniqBy=t})(tv)),tv}var nv={},L2;function Dz(){return L2||(L2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return function(...l){return n.apply(this,l.slice(0,r))}}e.ary=t})(nv)),nv}var rv={},B2;function OE(){return B2||(B2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(rv)),rv}var av={},iv={},lv={},I2;function kz(){return I2||(I2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(lv)),lv}var $2;function e0(){return $2||($2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=kz();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(iv)),iv}var ov={},U2;function Pz(){return U2||(U2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(ov)),ov}var q2;function Rz(){return q2||(q2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=e0(),n=Pz();function r(l){return n.isObjectLike(l)&&t.isArrayLike(l)}e.isArrayLikeObject=r})(av)),av}var sv={},uv={},H2;function zz(){return H2||(H2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Wg();function n(r){return function(l){return t.get(l,r)}}e.property=n})(uv)),uv}var cv={},fv={},dv={},hv={},F2;function AE(){return F2||(F2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(hv)),hv}var mv={},K2;function NE(){return K2||(K2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(mv)),mv}var pv={},Y2;function EE(){return Y2||(Y2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.isEqualsSameValueZero=t})(pv)),pv}var G2;function Lz(){return G2||(G2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=AE(),n=NE(),r=EE();function l(p,y,b){return typeof b!="function"?l(p,y,()=>{}):o(p,y,function w(S,j,_,A,N,C){const D=b(S,j,_,A,N,C);return D!==void 0?!!D:o(S,j,w,C)},new Map)}function o(p,y,b,w){if(y===p)return!0;switch(typeof y){case"object":return u(p,y,b,w);case"function":return Object.keys(y).length>0?o(p,{...y},b,w):r.isEqualsSameValueZero(p,y);default:return t.isObject(p)?typeof y=="string"?y==="":!0:r.isEqualsSameValueZero(p,y)}}function u(p,y,b,w){if(y==null)return!0;if(Array.isArray(y))return d(p,y,b,w);if(y instanceof Map)return f(p,y,b,w);if(y instanceof Set)return h(p,y,b,w);const S=Object.keys(y);if(p==null||n.isPrimitive(p))return S.length===0;if(S.length===0)return!0;if(w!=null&&w.has(y))return w.get(y)===p;w==null||w.set(y,p);try{for(let j=0;j<S.length;j++){const _=S[j];if(!n.isPrimitive(p)&&!(_ in p)||y[_]===void 0&&p[_]!==void 0||y[_]===null&&p[_]!==null||!b(p[_],y[_],_,p,y,w))return!1}return!0}finally{w==null||w.delete(y)}}function f(p,y,b,w){if(y.size===0)return!0;if(!(p instanceof Map))return!1;for(const[S,j]of y.entries()){const _=p.get(S);if(b(_,j,S,p,y,w)===!1)return!1}return!0}function d(p,y,b,w){if(y.length===0)return!0;if(!Array.isArray(p))return!1;const S=new Set;for(let j=0;j<y.length;j++){const _=y[j];let A=!1;for(let N=0;N<p.length;N++){if(S.has(N))continue;const C=p[N];let D=!1;if(b(C,_,j,p,y,w)&&(D=!0),D){S.add(N),A=!0;break}}if(!A)return!1}return!0}function h(p,y,b,w){return y.size===0?!0:p instanceof Set?d([...p],[...y],b,w):!1}e.isMatchWith=l,e.isSetMatch=h})(dv)),dv}var V2;function CE(){return V2||(V2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Lz();function n(r,l){return t.isMatchWith(r,l,()=>{})}e.isMatch=n})(fv)),fv}var vv={},yv={},gv={},X2;function Bz(){return X2||(X2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(gv)),gv}var bv={},Z2;function t0(){return Z2||(Z2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(bv)),bv}var xv={},W2;function TE(){return W2||(W2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",l="[object Boolean]",o="[object Arguments]",u="[object Symbol]",f="[object Date]",d="[object Map]",h="[object Set]",p="[object Array]",y="[object Function]",b="[object ArrayBuffer]",w="[object Object]",S="[object Error]",j="[object DataView]",_="[object Uint8Array]",A="[object Uint8ClampedArray]",N="[object Uint16Array]",C="[object Uint32Array]",D="[object BigUint64Array]",k="[object Int8Array]",T="[object Int16Array]",P="[object Int32Array]",$="[object BigInt64Array]",X="[object Float32Array]",Z="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=b,e.arrayTag=p,e.bigInt64ArrayTag=$,e.bigUint64ArrayTag=D,e.booleanTag=l,e.dataViewTag=j,e.dateTag=f,e.errorTag=S,e.float32ArrayTag=X,e.float64ArrayTag=Z,e.functionTag=y,e.int16ArrayTag=T,e.int32ArrayTag=P,e.int8ArrayTag=k,e.mapTag=d,e.numberTag=r,e.objectTag=w,e.regexpTag=t,e.setTag=h,e.stringTag=n,e.symbolTag=u,e.uint16ArrayTag=N,e.uint32ArrayTag=C,e.uint8ArrayTag=_,e.uint8ClampedArrayTag=A})(xv)),xv}var wv={},Q2;function Iz(){return Q2||(Q2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(wv)),wv}var J2;function ME(){return J2||(J2=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Bz(),n=t0(),r=TE(),l=NE(),o=Iz();function u(p,y){return f(p,void 0,p,new Map,y)}function f(p,y,b,w=new Map,S=void 0){const j=S==null?void 0:S(p,y,b,w);if(j!==void 0)return j;if(l.isPrimitive(p))return p;if(w.has(p))return w.get(p);if(Array.isArray(p)){const _=new Array(p.length);w.set(p,_);for(let A=0;A<p.length;A++)_[A]=f(p[A],A,b,w,S);return Object.hasOwn(p,"index")&&(_.index=p.index),Object.hasOwn(p,"input")&&(_.input=p.input),_}if(p instanceof Date)return new Date(p.getTime());if(p instanceof RegExp){const _=new RegExp(p.source,p.flags);return _.lastIndex=p.lastIndex,_}if(p instanceof Map){const _=new Map;w.set(p,_);for(const[A,N]of p)_.set(A,f(N,A,b,w,S));return _}if(p instanceof Set){const _=new Set;w.set(p,_);for(const A of p)_.add(f(A,void 0,b,w,S));return _}if(typeof Buffer<"u"&&Buffer.isBuffer(p))return p.subarray();if(o.isTypedArray(p)){const _=new(Object.getPrototypeOf(p)).constructor(p.length);w.set(p,_);for(let A=0;A<p.length;A++)_[A]=f(p[A],A,b,w,S);return _}if(p instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&p instanceof SharedArrayBuffer)return p.slice(0);if(p instanceof DataView){const _=new DataView(p.buffer.slice(0),p.byteOffset,p.byteLength);return w.set(p,_),d(_,p,b,w,S),_}if(typeof File<"u"&&p instanceof File){const _=new File([p],p.name,{type:p.type});return w.set(p,_),d(_,p,b,w,S),_}if(typeof Blob<"u"&&p instanceof Blob){const _=new Blob([p],{type:p.type});return w.set(p,_),d(_,p,b,w,S),_}if(p instanceof Error){const _=new p.constructor;return w.set(p,_),_.message=p.message,_.name=p.name,_.stack=p.stack,_.cause=p.cause,d(_,p,b,w,S),_}if(p instanceof Boolean){const _=new Boolean(p.valueOf());return w.set(p,_),d(_,p,b,w,S),_}if(p instanceof Number){const _=new Number(p.valueOf());return w.set(p,_),d(_,p,b,w,S),_}if(p instanceof String){const _=new String(p.valueOf());return w.set(p,_),d(_,p,b,w,S),_}if(typeof p=="object"&&h(p)){const _=Object.create(Object.getPrototypeOf(p));return w.set(p,_),d(_,p,b,w,S),_}return p}function d(p,y,b=p,w,S){const j=[...Object.keys(y),...t.getSymbols(y)];for(let _=0;_<j.length;_++){const A=j[_],N=Object.getOwnPropertyDescriptor(p,A);(N==null||N.writable)&&(p[A]=f(y[A],A,b,w,S))}}function h(p){switch(n.getTag(p)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=u,e.cloneDeepWithImpl=f,e.copyProperties=d})(yv)),yv}var ej;function $z(){return ej||(ej=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ME();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(vv)),vv}var tj;function Uz(){return tj||(tj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CE(),n=$z();function r(l){return l=n.cloneDeep(l),o=>t.isMatch(o,l)}e.matches=r})(cv)),cv}var Sv={},jv={},_v={},nj;function qz(){return nj||(nj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ME(),n=t0(),r=TE();function l(o,u){return t.cloneDeepWith(o,(f,d,h,p)=>{const y=u==null?void 0:u(f,d,h,p);if(y!==void 0)return y;if(typeof o=="object"){if(n.getTag(o)===r.objectTag&&typeof o.constructor!="function"){const b={};return p.set(o,b),t.copyProperties(b,o,h,p),b}switch(Object.prototype.toString.call(o)){case r.numberTag:case r.stringTag:case r.booleanTag:{const b=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(b,o),b}case r.argumentsTag:{const b={};return t.copyProperties(b,o),b.length=o.length,b[Symbol.iterator]=o[Symbol.iterator],b}default:return}}})}e.cloneDeepWith=l})(_v)),_v}var rj;function Hz(){return rj||(rj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qz();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(jv)),jv}var Ov={},Av={},aj;function DE(){return aj||(aj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,l=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<l;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(Av)),Av}var Nv={},ij;function Fz(){return ij||(ij=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=t0();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(Nv)),Nv}var lj;function Kz(){return lj||(lj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xE(),n=DE(),r=Fz(),l=Zg();function o(u,f){let d;if(Array.isArray(f)?d=f:typeof f=="string"&&t.isDeepKey(f)&&(u==null?void 0:u[f])==null?d=l.toPath(f):d=[f],d.length===0)return!1;let h=u;for(let p=0;p<d.length;p++){const y=d[p];if((h==null||!Object.hasOwn(h,y))&&!((Array.isArray(h)||r.isArguments(h))&&n.isIndex(y)&&y<h.length))return!1;h=h[y]}return!0}e.has=o})(Ov)),Ov}var oj;function Yz(){return oj||(oj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CE(),n=Xg(),r=Hz(),l=Wg(),o=Kz();function u(f,d){switch(typeof f){case"object":{Object.is(f==null?void 0:f.valueOf(),-0)&&(f="-0");break}case"number":{f=n.toKey(f);break}}return d=r.cloneDeep(d),function(h){const p=l.get(h,f);return p===void 0?o.has(h,f):d===void 0?p===void 0:t.isMatch(p,d)}}e.matchesProperty=u})(Sv)),Sv}var sj;function Gz(){return sj||(sj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=OE(),n=zz(),r=Uz(),l=Yz();function o(u){if(u==null)return t.identity;switch(typeof u){case"function":return u;case"object":return Array.isArray(u)&&u.length===2?l.matchesProperty(u[0],u[1]):r.matches(u);case"string":case"symbol":case"number":return n.property(u)}}e.iteratee=o})(sv)),sv}var uj;function Vz(){return uj||(uj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Mz(),n=Dz(),r=OE(),l=Rz(),o=Gz();function u(f,d=r.identity){return l.isArrayLikeObject(f)?t.uniqBy(Array.from(f),n.ary(o.iteratee(d),1)):[]}e.uniqBy=u})(ev)),ev}var Ev,cj;function Xz(){return cj||(cj=1,Ev=Vz().uniqBy),Ev}var Zz=Xz();const fj=zr(Zz);function kE(e,t,n){return t===!0?fj(e,n):typeof t=="function"?fj(e,t):e}var Cv={exports:{}},Tv={},Mv={exports:{}},Dv={};/**
 * @license React
 * use-sync-external-store-shim.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 dj;function Wz(){if(dj)return Dv;dj=1;var e=vo();function t(y,b){return y===b&&(y!==0||1/y===1/b)||y!==y&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,l=e.useEffect,o=e.useLayoutEffect,u=e.useDebugValue;function f(y,b){var w=b(),S=r({inst:{value:w,getSnapshot:b}}),j=S[0].inst,_=S[1];return o(function(){j.value=w,j.getSnapshot=b,d(j)&&_({inst:j})},[y,w,b]),l(function(){return d(j)&&_({inst:j}),y(function(){d(j)&&_({inst:j})})},[y]),u(w),w}function d(y){var b=y.getSnapshot;y=y.value;try{var w=b();return!n(y,w)}catch{return!0}}function h(y,b){return b()}var p=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?h:f;return Dv.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,Dv}var hj;function Qz(){return hj||(hj=1,Mv.exports=Wz()),Mv.exports}/**
 * @license React
 * use-sync-external-store-shim/with-selector.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 mj;function Jz(){if(mj)return Tv;mj=1;var e=vo(),t=Qz();function n(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var r=typeof Object.is=="function"?Object.is:n,l=t.useSyncExternalStore,o=e.useRef,u=e.useEffect,f=e.useMemo,d=e.useDebugValue;return Tv.useSyncExternalStoreWithSelector=function(h,p,y,b,w){var S=o(null);if(S.current===null){var j={hasValue:!1,value:null};S.current=j}else j=S.current;S=f(function(){function A(T){if(!N){if(N=!0,C=T,T=b(T),w!==void 0&&j.hasValue){var P=j.value;if(w(P,T))return D=P}return D=T}if(P=D,r(C,T))return P;var $=b(T);return w!==void 0&&w(P,$)?(C=T,P):(C=T,D=$)}var N=!1,C,D,k=y===void 0?null:y;return[function(){return A(p())},k===null?void 0:function(){return A(k())}]},[p,y,b,w]);var _=l(h,S[0],S[1]);return u(function(){j.hasValue=!0,j.value=_},[_]),d(_),_},Tv}var pj;function e8(){return pj||(pj=1,Cv.exports=Jz()),Cv.exports}var t8=e8(),n0=x.createContext(null),n8=e=>e,it=()=>{var e=x.useContext(n0);return e?e.store.dispatch:n8},gf=()=>{},r8=()=>gf,a8=(e,t)=>e===t;function ye(e){var t=x.useContext(n0);return t8.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:r8,t?t.store.getState:gf,t?t.store.getState:gf,t?e:gf,a8)}function i8(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function l8(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function o8(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var vj=e=>Array.isArray(e)?e:[e];function s8(e){const t=Array.isArray(e[0])?e[0]:e;return o8(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function u8(e,t){const n=[],{length:r}=e;for(let l=0;l<r;l++)n.push(e[l].apply(null,t));return n}var c8=class{constructor(e){this.value=e}deref(){return this.value}},f8=typeof WeakRef<"u"?WeakRef:c8,d8=0,yj=1;function Gc(){return{s:d8,v:void 0,o:null,p:null}}function PE(e,t={}){let n=Gc();const{resultEqualityCheck:r}=t;let l,o=0;function u(){var y;let f=n;const{length:d}=arguments;for(let b=0,w=d;b<w;b++){const S=arguments[b];if(typeof S=="function"||typeof S=="object"&&S!==null){let j=f.o;j===null&&(f.o=j=new WeakMap);const _=j.get(S);_===void 0?(f=Gc(),j.set(S,f)):f=_}else{let j=f.p;j===null&&(f.p=j=new Map);const _=j.get(S);_===void 0?(f=Gc(),j.set(S,f)):f=_}}const h=f;let p;if(f.s===yj)p=f.v;else if(p=e.apply(null,arguments),o++,r){const b=((y=l==null?void 0:l.deref)==null?void 0:y.call(l))??l;b!=null&&r(b,p)&&(p=b,o!==0&&o--),l=typeof p=="object"&&p!==null||typeof p=="function"?new f8(p):p}return h.s=yj,h.v=p,p}return u.clearCache=()=>{n=Gc(),u.resetResultsCount()},u.resultsCount=()=>o,u.resetResultsCount=()=>{o=0},u}function h8(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...l)=>{let o=0,u=0,f,d={},h=l.pop();typeof h=="object"&&(d=h,h=l.pop()),i8(h,`createSelector expects an output function after the inputs, but received: [${typeof h}]`);const p={...n,...d},{memoize:y,memoizeOptions:b=[],argsMemoize:w=PE,argsMemoizeOptions:S=[]}=p,j=vj(b),_=vj(S),A=s8(l),N=y(function(){return o++,h.apply(null,arguments)},...j),C=w(function(){u++;const k=u8(A,arguments);return f=N.apply(null,k),f},..._);return Object.assign(C,{resultFunc:h,memoizedResultFunc:N,dependencies:A,dependencyRecomputations:()=>u,resetDependencyRecomputations:()=>{u=0},lastResult:()=>f,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:y,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var Y=h8(PE),m8=Object.assign((e,t=Y)=>{l8(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((u,f,d)=>(u[n[d]]=f,u),{}))},{withTypes:()=>m8}),kv={},Pv={},Rv={},gj;function p8(){return gj||(gj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,l,o)=>{if(r!==l){const u=t(r),f=t(l);if(u===f&&u===0){if(r<l)return o==="desc"?1:-1;if(r>l)return o==="desc"?-1:1}return o==="desc"?f-u:u-f}return 0};e.compareValues=n})(Rv)),Rv}var zv={},Lv={},bj;function RE(){return bj||(bj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(Lv)),Lv}var xj;function v8(){return xj||(xj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=RE(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function l(o,u){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||u!=null&&Object.hasOwn(u,o)}e.isKey=l})(zv)),zv}var wj;function y8(){return wj||(wj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=p8(),n=v8(),r=Zg();function l(o,u,f,d){if(o==null)return[];f=d?void 0:f,Array.isArray(o)||(o=Object.values(o)),Array.isArray(u)||(u=u==null?[null]:[u]),u.length===0&&(u=[null]),Array.isArray(f)||(f=f==null?[]:[f]),f=f.map(w=>String(w));const h=(w,S)=>{let j=w;for(let _=0;_<S.length&&j!=null;++_)j=j[S[_]];return j},p=(w,S)=>S==null||w==null?S:typeof w=="object"&&"key"in w?Object.hasOwn(S,w.key)?S[w.key]:h(S,w.path):typeof w=="function"?w(S):Array.isArray(w)?h(S,w):typeof S=="object"?S[w]:S,y=u.map(w=>(Array.isArray(w)&&w.length===1&&(w=w[0]),w==null||typeof w=="function"||Array.isArray(w)||n.isKey(w)?w:{key:w,path:r.toPath(w)}));return o.map(w=>({original:w,criteria:y.map(S=>p(S,w))})).slice().sort((w,S)=>{for(let j=0;j<y.length;j++){const _=t.compareValues(w.criteria[j],S.criteria[j],f[j]);if(_!==0)return _}return 0}).map(w=>w.original)}e.orderBy=l})(Pv)),Pv}var Bv={},Sj;function g8(){return Sj||(Sj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const l=[],o=Math.floor(r),u=(f,d)=>{for(let h=0;h<f.length;h++){const p=f[h];Array.isArray(p)&&d<o?u(p,d+1):l.push(p)}};return u(n,0),l}e.flatten=t})(Bv)),Bv}var Iv={},jj;function zE(){return jj||(jj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=DE(),n=e0(),r=AE(),l=EE();function o(u,f,d){return r.isObject(d)&&(typeof f=="number"&&n.isArrayLike(d)&&t.isIndex(f)&&f<d.length||typeof f=="string"&&f in d)?l.isEqualsSameValueZero(d[f],u):!1}e.isIterateeCall=o})(Iv)),Iv}var _j;function b8(){return _j||(_j=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=y8(),n=g8(),r=zE();function l(o,...u){const f=u.length;return f>1&&r.isIterateeCall(o,u[0],u[1])?u=[]:f>2&&r.isIterateeCall(u[0],u[1],u[2])&&(u=[u[0]]),t.orderBy(o,n.flatten(u),["asc"])}e.sortBy=l})(kv)),kv}var $v,Oj;function x8(){return Oj||(Oj=1,$v=b8().sortBy),$v}var w8=x8();const kd=zr(w8);var LE=e=>e.legend.settings,S8=e=>e.legend.size,j8=e=>e.legend.payload,_8=Y([j8,LE],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?kd(r,n):r});function O8(){return ye(_8)}var Vc=1;function BE(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=x.useState({height:0,left:0,top:0,width:0}),r=x.useCallback(l=>{if(l!=null){var o=l.getBoundingClientRect(),u={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(u.height-t.height)>Vc||Math.abs(u.left-t.left)>Vc||Math.abs(u.top-t.top)>Vc||Math.abs(u.width-t.width)>Vc)&&n({height:u.height,left:u.left,top:u.top,width:u.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function nn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var A8=typeof Symbol=="function"&&Symbol.observable||"@@observable",Aj=A8,Uv=()=>Math.random().toString(36).substring(7).split("").join("."),N8={INIT:`@@redux/INIT${Uv()}`,REPLACE:`@@redux/REPLACE${Uv()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Uv()}`},Rf=N8;function r0(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function IE(e,t,n){if(typeof e!="function")throw new Error(nn(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(nn(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(nn(1));return n(IE)(e,t)}let r=e,l=t,o=new Map,u=o,f=0,d=!1;function h(){u===o&&(u=new Map,o.forEach((_,A)=>{u.set(A,_)}))}function p(){if(d)throw new Error(nn(3));return l}function y(_){if(typeof _!="function")throw new Error(nn(4));if(d)throw new Error(nn(5));let A=!0;h();const N=f++;return u.set(N,_),function(){if(A){if(d)throw new Error(nn(6));A=!1,h(),u.delete(N),o=null}}}function b(_){if(!r0(_))throw new Error(nn(7));if(typeof _.type>"u")throw new Error(nn(8));if(typeof _.type!="string")throw new Error(nn(17));if(d)throw new Error(nn(9));try{d=!0,l=r(l,_)}finally{d=!1}return(o=u).forEach(N=>{N()}),_}function w(_){if(typeof _!="function")throw new Error(nn(10));r=_,b({type:Rf.REPLACE})}function S(){const _=y;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(nn(11));function N(){const D=A;D.next&&D.next(p())}return N(),{unsubscribe:_(N)}},[Aj](){return this}}}return b({type:Rf.INIT}),{dispatch:b,subscribe:y,getState:p,replaceReducer:w,[Aj]:S}}function E8(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Rf.INIT})>"u")throw new Error(nn(12));if(typeof n(void 0,{type:Rf.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(nn(13))})}function $E(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const u=t[o];typeof e[u]=="function"&&(n[u]=e[u])}const r=Object.keys(n);let l;try{E8(n)}catch(o){l=o}return function(u={},f){if(l)throw l;let d=!1;const h={};for(let p=0;p<r.length;p++){const y=r[p],b=n[y],w=u[y],S=b(w,f);if(typeof S>"u")throw f&&f.type,new Error(nn(14));h[y]=S,d=d||S!==w}return d=d||r.length!==Object.keys(u).length,d?h:u}}function zf(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function C8(...e){return t=>(n,r)=>{const l=t(n,r);let o=()=>{throw new Error(nn(15))};const u={getState:l.getState,dispatch:(d,...h)=>o(d,...h)},f=e.map(d=>d(u));return o=zf(...f)(l.dispatch),{...l,dispatch:o}}}function UE(e){return r0(e)&&"type"in e&&typeof e.type=="string"}var qE=Symbol.for("immer-nothing"),Nj=Symbol.for("immer-draftable"),vn=Symbol.for("immer-state");function vr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var qn=Object,so=qn.getPrototypeOf,Lf="constructor",Pd="prototype",Uy="configurable",Bf="enumerable",bf="writable",$s="value",ma=e=>!!e&&!!e[vn];function xr(e){var t;return e?HE(e)||zd(e)||!!e[Nj]||!!((t=e[Lf])!=null&&t[Nj])||Ld(e)||Bd(e):!1}var T8=qn[Pd][Lf].toString(),Ej=new WeakMap;function HE(e){if(!e||!a0(e))return!1;const t=so(e);if(t===null||t===qn[Pd])return!0;const n=qn.hasOwnProperty.call(t,Lf)&&t[Lf];if(n===Object)return!0;if(!Jl(n))return!1;let r=Ej.get(n);return r===void 0&&(r=Function.toString.call(n),Ej.set(n,r)),r===T8}function Rd(e,t,n=!0){su(e)===0?(n?Reflect.ownKeys(e):qn.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((r,l)=>t(l,r,e))}function su(e){const t=e[vn];return t?t.type_:zd(e)?1:Ld(e)?2:Bd(e)?3:0}var Cj=(e,t,n=su(e))=>n===2?e.has(t):qn[Pd].hasOwnProperty.call(e,t),qy=(e,t,n=su(e))=>n===2?e.get(t):e[t],If=(e,t,n,r=su(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function M8(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var zd=Array.isArray,Ld=e=>e instanceof Map,Bd=e=>e instanceof Set,a0=e=>typeof e=="object",Jl=e=>typeof e=="function",qv=e=>typeof e=="boolean";function D8(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var ia=e=>e.copy_||e.base_,i0=e=>e.modified_?e.copy_:e.base_;function Hy(e,t){if(Ld(e))return new Map(e);if(Bd(e))return new Set(e);if(zd(e))return Array[Pd].slice.call(e);const n=HE(e);if(t===!0||t==="class_only"&&!n){const r=qn.getOwnPropertyDescriptors(e);delete r[vn];let l=Reflect.ownKeys(r);for(let o=0;o<l.length;o++){const u=l[o],f=r[u];f[bf]===!1&&(f[bf]=!0,f[Uy]=!0),(f.get||f.set)&&(r[u]={[Uy]:!0,[bf]:!0,[Bf]:f[Bf],[$s]:e[u]})}return qn.create(so(e),r)}else{const r=so(e);if(r!==null&&n)return{...e};const l=qn.create(r);return qn.assign(l,e)}}function l0(e,t=!1){return Id(e)||ma(e)||!xr(e)||(su(e)>1&&qn.defineProperties(e,{set:Xc,add:Xc,clear:Xc,delete:Xc}),qn.freeze(e),t&&Rd(e,(n,r)=>{l0(r,!0)},!1)),e}function k8(){vr(2)}var Xc={[$s]:k8};function Id(e){return e===null||!a0(e)?!0:qn.isFrozen(e)}var $f="MapSet",Fy="Patches",Tj="ArrayMethods",FE={};function el(e){const t=FE[e];return t||vr(0,e),t}var Mj=e=>!!FE[e],Us,KE=()=>Us,P8=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Mj($f)?el($f):void 0,arrayMethodsPlugin_:Mj(Tj)?el(Tj):void 0});function Dj(e,t){t&&(e.patchPlugin_=el(Fy),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Ky(e){Yy(e),e.drafts_.forEach(R8),e.drafts_=null}function Yy(e){e===Us&&(Us=e.parent_)}var kj=e=>Us=P8(Us,e);function R8(e){const t=e[vn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Pj(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[vn].modified_&&(Ky(t),vr(4)),xr(e)&&(e=Rj(t,e));const{patchPlugin_:l}=t;l&&l.generateReplacementPatches_(n[vn].base_,e,t)}else e=Rj(t,n);return z8(t,e,!0),Ky(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==qE?e:void 0}function Rj(e,t){if(Id(t))return t;const n=t[vn];if(!n)return Uf(t,e.handledSet_,e);if(!$d(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);VE(n,e)}return n.copy_}function z8(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&l0(t,n)}function YE(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var $d=(e,t)=>e.scope_===t,L8=[];function GE(e,t,n,r){const l=ia(e),o=e.type_;if(r!==void 0&&qy(l,r,o)===t){If(l,r,n,o);return}if(!e.draftLocations_){const f=e.draftLocations_=new Map;Rd(l,(d,h)=>{if(ma(h)){const p=f.get(h)||[];p.push(d),f.set(h,p)}})}const u=e.draftLocations_.get(t)??L8;for(const f of u)If(l,f,n,o)}function B8(e,t,n){e.callbacks_.push(function(l){var f;const o=t;if(!o||!$d(o,l))return;(f=l.mapSetPlugin_)==null||f.fixSetContents(o);const u=i0(o);GE(e,o.draft_??o,u,n),VE(o,l)})}function VE(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:l}=t;if(l){const o=l.getPath(e);o&&l.generatePatches_(e,o,t)}YE(e)}}function I8(e,t,n){const{scope_:r}=e;if(ma(n)){const l=n[vn];$d(l,r)&&l.callbacks_.push(function(){xf(e);const u=i0(l);GE(e,n,u,t)})}else xr(n)&&e.callbacks_.push(function(){const o=ia(e);e.type_===3?o.has(n)&&Uf(n,r.handledSet_,r):qy(o,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Uf(qy(e.copy_,t,e.type_),r.handledSet_,r)})}function Uf(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||ma(e)||t.has(e)||!xr(e)||Id(e)||(t.add(e),Rd(e,(r,l)=>{if(ma(l)){const o=l[vn];if($d(o,n)){const u=i0(o);If(e,r,u,e.type_),YE(o)}}else xr(l)&&Uf(l,t,n)})),e}function $8(e,t){const n=zd(e),r={type_:n?1:0,scope_:t?t.scope_:KE(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let l=r,o=qf;n&&(l=[r],o=qs);const{revoke:u,proxy:f}=Proxy.revocable(l,o);return r.draft_=f,r.revoke_=u,[f,r]}var qf={get(e,t){if(t===vn)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const l=ia(e);if(!Cj(l,t,e.type_))return U8(e,l,t);const o=l[t];if(e.finalized_||!xr(o)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&D8(t))return o;if(o===Hv(e.base_,t)){xf(e);const u=e.type_===1?+t:t,f=Vy(e.scope_,o,e,u);return e.copy_[u]=f}return o},has(e,t){return t in ia(e)},ownKeys(e){return Reflect.ownKeys(ia(e))},set(e,t,n){const r=XE(ia(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=Hv(ia(e),t),o=l==null?void 0:l[vn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(M8(n,l)&&(n!==void 0||Cj(e.base_,t,e.type_)))return!0;xf(e),Gy(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),I8(e,t,n)),!0},deleteProperty(e,t){return xf(e),Hv(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Gy(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ia(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[bf]:!0,[Uy]:e.type_!==1||t!=="length",[Bf]:r[Bf],[$s]:n[t]}},defineProperty(){vr(11)},getPrototypeOf(e){return so(e.base_)},setPrototypeOf(){vr(12)}},qs={};for(let e in qf){let t=qf[e];qs[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}}qs.deleteProperty=function(e,t){return qs.set.call(this,e,t,void 0)};qs.set=function(e,t,n){return qf.set.call(this,e[0],t,n,e[0])};function Hv(e,t){const n=e[vn];return(n?ia(n):e)[t]}function U8(e,t,n){var l;const r=XE(t,n);return r?$s in r?r[$s]:(l=r.get)==null?void 0:l.call(e.draft_):void 0}function XE(e,t){if(!(t in e))return;let n=so(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=so(n)}}function Gy(e){e.modified_||(e.modified_=!0,e.parent_&&Gy(e.parent_))}function xf(e){e.copy_||(e.assigned_=new Map,e.copy_=Hy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var q8=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,l)=>{if(Jl(n)&&!Jl(r)){const u=r;r=n;const f=this;return function(h=u,...p){return f.produce(h,y=>r.call(this,y,...p))}}Jl(r)||vr(6),l!==void 0&&!Jl(l)&&vr(7);let o;if(xr(n)){const u=kj(this),f=Vy(u,n,void 0);let d=!0;try{o=r(f),d=!1}finally{d?Ky(u):Yy(u)}return Dj(u,l),Pj(o,u)}else if(!n||!a0(n)){if(o=r(n),o===void 0&&(o=n),o===qE&&(o=void 0),this.autoFreeze_&&l0(o,!0),l){const u=[],f=[];el(Fy).generateReplacementPatches_(n,o,{patches_:u,inversePatches_:f}),l(u,f)}return o}else vr(1,n)},this.produceWithPatches=(n,r)=>{if(Jl(n))return(f,...d)=>this.produceWithPatches(f,h=>n(h,...d));let l,o;return[this.produce(n,r,(f,d)=>{l=f,o=d}),l,o]},qv(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),qv(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),qv(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){xr(t)||vr(8),ma(t)&&(t=br(t));const n=kj(this),r=Vy(n,t,void 0);return r[vn].isManual_=!0,Yy(n),r}finishDraft(t,n){const r=t&&t[vn];(!r||!r.isManual_)&&vr(9);const{scope_:l}=r;return Dj(l,n),Pj(void 0,l)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const o=n[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(n=n.slice(r+1));const l=el(Fy).applyPatches_;return ma(t)?l(t,n):this.produce(t,o=>l(o,n))}};function Vy(e,t,n,r){const[l,o]=Ld(t)?el($f).proxyMap_(t,n):Bd(t)?el($f).proxySet_(t,n):$8(t,n);return((n==null?void 0:n.scope_)??KE()).drafts_.push(l),o.callbacks_=(n==null?void 0:n.callbacks_)??[],o.key_=r,n&&r!==void 0?B8(n,o,r):o.callbacks_.push(function(d){var p;(p=d.mapSetPlugin_)==null||p.fixSetContents(o);const{patchPlugin_:h}=d;o.modified_&&h&&h.generatePatches_(o,[],d)}),l}function br(e){return ma(e)||vr(10,e),ZE(e)}function ZE(e){if(!xr(e)||Id(e))return e;const t=e[vn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Hy(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Hy(e,!0);return Rd(n,(l,o)=>{If(n,l,ZE(o))},r),t&&(t.finalized_=!1),n}var H8=new q8,WE=H8.produce;function QE(e){return({dispatch:n,getState:r})=>l=>o=>typeof o=="function"?o(n,r,e):l(o)}var F8=QE(),K8=QE,Y8=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zf:zf.apply(null,arguments)};function sr(e,t){function n(...r){if(t){let l=t(...r);if(!l)throw new Error(Hn(0));return{type:e,payload:l.payload,..."meta"in l&&{meta:l.meta},..."error"in l&&{error:l.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>UE(r)&&r.type===e,n}var JE=class Rs extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Rs.prototype)}static get[Symbol.species](){return Rs}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Rs(...t[0].concat(this)):new Rs(...t.concat(this))}};function zj(e){return xr(e)?WE(e,()=>{}):e}function Zc(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function G8(e){return typeof e=="boolean"}var V8=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:l=!0,actionCreatorCheck:o=!0}=t??{};let u=new JE;return n&&(G8(n)?u.push(F8):u.push(K8(n.extraArgument))),u},eC="RTK_autoBatch",ft=()=>e=>({payload:e,meta:{[eC]:!0}}),Lj=e=>t=>{setTimeout(t,e)},tC=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let l=!0,o=!1,u=!1;const f=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Lj(10):e.type==="callback"?e.queueNotification:Lj(e.timeout),h=()=>{u=!1,o&&(o=!1,f.forEach(p=>p()))};return Object.assign({},r,{subscribe(p){const y=()=>l&&p(),b=r.subscribe(y);return f.add(p),()=>{b(),f.delete(p)}},dispatch(p){var y;try{return l=!((y=p==null?void 0:p.meta)!=null&&y[eC]),o=!l,o&&(u||(u=!0,d(h))),r.dispatch(p)}finally{l=!0}}})},X8=e=>function(n){const{autoBatch:r=!0}=n??{};let l=new JE(e);return r&&l.push(tC(typeof r=="object"?r:void 0)),l};function Z8(e){const t=V8(),{reducer:n=void 0,middleware:r,devTools:l=!0,preloadedState:o=void 0,enhancers:u=void 0}=e||{};let f;if(typeof n=="function")f=n;else if(r0(n))f=$E(n);else throw new Error(Hn(1));let d;typeof r=="function"?d=r(t):d=t();let h=zf;l&&(h=Y8({trace:!1,...typeof l=="object"&&l}));const p=C8(...d),y=X8(p);let b=typeof u=="function"?u(y):y();const w=h(...b);return IE(f,o,w)}function nC(e){const t={},n=[];let r;const l={addCase(o,u){const f=typeof o=="string"?o:o.type;if(!f)throw new Error(Hn(28));if(f in t)throw new Error(Hn(29));return t[f]=u,l},addAsyncThunk(o,u){return u.pending&&(t[o.pending.type]=u.pending),u.rejected&&(t[o.rejected.type]=u.rejected),u.fulfilled&&(t[o.fulfilled.type]=u.fulfilled),u.settled&&n.push({matcher:o.settled,reducer:u.settled}),l},addMatcher(o,u){return n.push({matcher:o,reducer:u}),l},addDefaultCase(o){return r=o,l}};return e(l),[t,n,r]}function W8(e){return typeof e=="function"}function Q8(e,t){let[n,r,l]=nC(t),o;if(W8(e))o=()=>zj(e());else{const f=zj(e);o=()=>f}function u(f=o(),d){let h=[n[d.type],...r.filter(({matcher:p})=>p(d)).map(({reducer:p})=>p)];return h.filter(p=>!!p).length===0&&(h=[l]),h.reduce((p,y)=>{if(y)if(ma(p)){const w=y(p,d);return w===void 0?p:w}else{if(xr(p))return WE(p,b=>y(b,d));{const b=y(p,d);if(b===void 0){if(p===null)return p;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return p},f)}return u.getInitialState=o,u}var J8="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",eL=(e=21)=>{let t="",n=e;for(;n--;)t+=J8[Math.random()*64|0];return t},tL=Symbol.for("rtk-slice-createasyncthunk");function nL(e,t){return`${e}/${t}`}function rL({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[tL];return function(l){const{name:o,reducerPath:u=o}=l;if(!o)throw new Error(Hn(11));const f=(typeof l.reducers=="function"?l.reducers(iL()):l.reducers)||{},d=Object.keys(f),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(D,k){const T=typeof D=="string"?D:D.type;if(!T)throw new Error(Hn(12));if(T in h.sliceCaseReducersByType)throw new Error(Hn(13));return h.sliceCaseReducersByType[T]=k,p},addMatcher(D,k){return h.sliceMatchers.push({matcher:D,reducer:k}),p},exposeAction(D,k){return h.actionCreators[D]=k,p},exposeCaseReducer(D,k){return h.sliceCaseReducersByName[D]=k,p}};d.forEach(D=>{const k=f[D],T={reducerName:D,type:nL(o,D),createNotation:typeof l.reducers=="function"};oL(k)?uL(T,k,p,t):lL(T,k,p)});function y(){const[D={},k=[],T=void 0]=typeof l.extraReducers=="function"?nC(l.extraReducers):[l.extraReducers],P={...D,...h.sliceCaseReducersByType};return Q8(l.initialState,$=>{for(let X in P)$.addCase(X,P[X]);for(let X of h.sliceMatchers)$.addMatcher(X.matcher,X.reducer);for(let X of k)$.addMatcher(X.matcher,X.reducer);T&&$.addDefaultCase(T)})}const b=D=>D,w=new Map,S=new WeakMap;let j;function _(D,k){return j||(j=y()),j(D,k)}function A(){return j||(j=y()),j.getInitialState()}function N(D,k=!1){function T($){let X=$[D];return typeof X>"u"&&k&&(X=Zc(S,T,A)),X}function P($=b){const X=Zc(w,k,()=>new WeakMap);return Zc(X,$,()=>{const Z={};for(const[te,R]of Object.entries(l.selectors??{}))Z[te]=aL(R,$,()=>Zc(S,$,A),k);return Z})}return{reducerPath:D,getSelectors:P,get selectors(){return P(T)},selectSlice:T}}const C={name:o,reducer:_,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:A,...N(u),injectInto(D,{reducerPath:k,...T}={}){const P=k??u;return D.inject({reducerPath:P,reducer:_},T),{...C,...N(P,!0)}}};return C}}function aL(e,t,n,r){function l(o,...u){let f=t(o);return typeof f>"u"&&r&&(f=n()),e(f,...u)}return l.unwrapped=e,l}var En=rL();function iL(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function lL({type:e,reducerName:t,createNotation:n},r,l){let o,u;if("reducer"in r){if(n&&!sL(r))throw new Error(Hn(17));o=r.reducer,u=r.prepare}else o=r;l.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,u?sr(e,u):sr(e))}function oL(e){return e._reducerDefinitionType==="asyncThunk"}function sL(e){return e._reducerDefinitionType==="reducerWithPrepare"}function uL({type:e,reducerName:t},n,r,l){if(!l)throw new Error(Hn(18));const{payloadCreator:o,fulfilled:u,pending:f,rejected:d,settled:h,options:p}=n,y=l(e,o,p);r.exposeAction(t,y),u&&r.addCase(y.fulfilled,u),f&&r.addCase(y.pending,f),d&&r.addCase(y.rejected,d),h&&r.addMatcher(y.settled,h),r.exposeCaseReducer(t,{fulfilled:u||Wc,pending:f||Wc,rejected:d||Wc,settled:h||Wc})}function Wc(){}var cL="task",rC="listener",aC="completed",o0="cancelled",fL=`task-${o0}`,dL=`task-${aC}`,Xy=`${rC}-${o0}`,hL=`${rC}-${aC}`,Ud=class{constructor(e){Pp(this,"name","TaskAbortError");Pp(this,"message");this.code=e,this.message=`${cL} ${o0} (reason: ${e})`}},s0=(e,t)=>{if(typeof e!="function")throw new TypeError(Hn(32))},Hf=()=>{},iC=(e,t=Hf)=>(e.catch(t),e),lC=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Ki=e=>{if(e.aborted)throw new Ud(e.reason)};function oC(e,t){let n=Hf;return new Promise((r,l)=>{const o=()=>l(new Ud(e.reason));if(e.aborted){o();return}n=lC(e,o),t.finally(()=>n()).then(r,l)}).finally(()=>{n=Hf})}var mL=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Ud?"cancelled":"rejected",error:n}}finally{t==null||t()}},Ff=e=>t=>iC(oC(e,t).then(n=>(Ki(e),n))),sC=e=>{const t=Ff(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:ao}=Object,Bj={},qd="listenerMiddleware",pL=(e,t)=>{const n=r=>lC(e,()=>r.abort(e.reason));return(r,l)=>{s0(r);const o=new AbortController;n(o);const u=mL(async()=>{Ki(e),Ki(o.signal);const f=await r({pause:Ff(o.signal),delay:sC(o.signal),signal:o.signal});return Ki(o.signal),f},()=>o.abort(dL));return l!=null&&l.autoJoin&&t.push(u.catch(Hf)),{result:Ff(e)(u),cancel(){o.abort(fL)}}}},vL=(e,t)=>{const n=async(r,l)=>{Ki(t);let o=()=>{};const f=[new Promise((d,h)=>{let p=e({predicate:r,effect:(y,b)=>{b.unsubscribe(),d([y,b.getState(),b.getOriginalState()])}});o=()=>{p(),h()}})];l!=null&&f.push(new Promise(d=>setTimeout(d,l,null)));try{const d=await oC(t,Promise.race(f));return Ki(t),d}finally{o()}};return(r,l)=>iC(n(r,l))},uC=e=>{let{type:t,actionCreator:n,matcher:r,predicate:l,effect:o}=e;if(t)l=sr(t).match;else if(n)t=n.type,l=n.match;else if(r)l=r;else if(!l)throw new Error(Hn(21));return s0(o),{predicate:l,type:t,effect:o}},cC=ao(e=>{const{type:t,predicate:n,effect:r}=uC(e);return{id:eL(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Hn(22))}}},{withTypes:()=>cC}),Ij=(e,t)=>{const{type:n,effect:r,predicate:l}=uC(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===l)&&o.effect===r)},Zy=e=>{e.pending.forEach(t=>{t.abort(Xy)})},yL=(e,t)=>()=>{for(const n of t.keys())Zy(n);e.clear()},$j=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},fC=ao(sr(`${qd}/add`),{withTypes:()=>fC}),gL=sr(`${qd}/removeAll`),dC=ao(sr(`${qd}/remove`),{withTypes:()=>dC}),bL=(...e)=>{console.error(`${qd}/error`,...e)},uu=(e={})=>{const t=new Map,n=new Map,r=w=>{const S=n.get(w)??0;n.set(w,S+1)},l=w=>{const S=n.get(w)??1;S===1?n.delete(w):n.set(w,S-1)},{extra:o,onError:u=bL}=e;s0(u);const f=w=>(w.unsubscribe=()=>t.delete(w.id),t.set(w.id,w),S=>{w.unsubscribe(),S!=null&&S.cancelActive&&Zy(w)}),d=w=>{const S=Ij(t,w)??cC(w);return f(S)};ao(d,{withTypes:()=>d});const h=w=>{const S=Ij(t,w);return S&&(S.unsubscribe(),w.cancelActive&&Zy(S)),!!S};ao(h,{withTypes:()=>h});const p=async(w,S,j,_)=>{const A=new AbortController,N=vL(d,A.signal),C=[];try{w.pending.add(A),r(w),await Promise.resolve(w.effect(S,ao({},j,{getOriginalState:_,condition:(D,k)=>N(D,k).then(Boolean),take:N,delay:sC(A.signal),pause:Ff(A.signal),extra:o,signal:A.signal,fork:pL(A.signal,C),unsubscribe:w.unsubscribe,subscribe:()=>{t.set(w.id,w)},cancelActiveListeners:()=>{w.pending.forEach((D,k,T)=>{D!==A&&(D.abort(Xy),T.delete(D))})},cancel:()=>{A.abort(Xy),w.pending.delete(A)},throwIfCancelled:()=>{Ki(A.signal)}})))}catch(D){D instanceof Ud||$j(u,D,{raisedBy:"effect"})}finally{await Promise.all(C),A.abort(hL),l(w),w.pending.delete(A)}},y=yL(t,n);return{middleware:w=>S=>j=>{if(!UE(j))return S(j);if(fC.match(j))return d(j.payload);if(gL.match(j)){y();return}if(dC.match(j))return h(j.payload);let _=w.getState();const A=()=>{if(_===Bj)throw new Error(Hn(23));return _};let N;try{if(N=S(j),t.size>0){const C=w.getState(),D=Array.from(t.values());for(const k of D){let T=!1;try{T=k.predicate(j,C,_)}catch(P){T=!1,$j(u,P,{raisedBy:"predicate"})}T&&p(k,j,w,A)}}}finally{_=Bj}return N},startListening:d,stopListening:h,clearListeners:y}};function Hn(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var xL={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},hC=En({name:"chartLayout",initialState:xL,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,l,o;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(l=t.payload.bottom)!==null&&l!==void 0?l:0,e.margin.left=(o=t.payload.left)!==null&&o!==void 0?o:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:wL,setLayout:SL,setChartSize:jL,setScale:_L}=hC.actions,OL=hC.reducer;function mC(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function rt(e){return Number.isFinite(e)}function Pr(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function Uj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function to(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Uj(Object(n),!0).forEach(function(r){AL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Uj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function AL(e,t,n){return(t=NL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NL(e){var t=EL(e,"string");return typeof t=="symbol"?t:t+""}function EL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function et(e,t,n){return pt(e)||pt(t)?n:kr(t)?Ji(e,t,n):typeof t=="function"?t(e):n}var CL=(e,t,n)=>{if(t&&n){var{width:r,height:l}=n,{align:o,verticalAlign:u,layout:f}=t;if((f==="vertical"||f==="horizontal"&&u==="middle")&&o!=="center"&&he(e[o]))return to(to({},e),{},{[o]:e[o]+(r||0)});if((f==="horizontal"||f==="vertical"&&o==="center")&&u!=="middle"&&he(e[u]))return to(to({},e),{},{[u]:e[u]+(l||0)})}return e},xa=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",pC=(e,t,n,r)=>{if(r)return e.map(f=>f.coordinate);var l,o,u=e.map(f=>(f.coordinate===t&&(l=!0),f.coordinate===n&&(o=!0),f.coordinate));return l||u.push(t),o||u.push(n),u},vC=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:l,range:o,scale:u,realScaleType:f,isCategorical:d,categoricalDomain:h,tickCount:p,ticks:y,niceTicks:b,axisType:w}=e;if(!u)return null;var S=f==="scaleBand"&&u.bandwidth?u.bandwidth()/2:2,j=l==="category"&&u.bandwidth?u.bandwidth()/S:0;if(j=w==="angleAxis"&&o&&o.length>=2?Gt(o[0]-o[1])*2*j:j,y||b){var _=(y||b||[]).map((A,N)=>{var C=r?r.indexOf(A):A;return{coordinate:u(C)+j,value:A,offset:j,index:N}});return _.filter(A=>!or(A.coordinate))}return d&&h?h.map((A,N)=>({coordinate:u(A)+j,value:A,index:N,offset:j})):u.ticks&&p!=null?u.ticks(p).map((A,N)=>({coordinate:u(A)+j,value:A,offset:j,index:N})):u.domain().map((A,N)=>({coordinate:u(A)+j,value:r?r[A]:A,index:N,offset:j}))},qj=1e-4,TL=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),l=Math.min(r[0],r[1])-qj,o=Math.max(r[0],r[1])+qj,u=e(t[0]),f=e(t[n-1]);(u<l||u>o||f<l||f>o)&&e.domain([t[0],t[n-1]])}},ML=(e,t)=>{if(!t||t.length!==2||!he(t[0])||!he(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),l=[e[0],e[1]];return(!he(e[0])||e[0]<n)&&(l[0]=n),(!he(e[1])||e[1]>r)&&(l[1]=r),l[0]>r&&(l[0]=r),l[1]<n&&(l[1]=n),l},DL=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var l=0;l<r;++l)for(var o=0,u=0,f=0;f<n;++f){var d=e[f],h=d==null?void 0:d[l];if(h!=null){var p=h[1],y=h[0],b=or(p)?y:p;b>=0?(h[0]=o,h[1]=o+b,o=p):(h[0]=u,h[1]=u+b,u=p)}}}},kL=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var l=0;l<r;++l)for(var o=0,u=0;u<n;++u){var f=e[u],d=f==null?void 0:f[l];if(d!=null){var h=or(d[1])?d[0]:d[1];h>=0?(d[0]=o,d[1]=o+h,o=d[1]):(d[0]=0,d[1]=0)}}}},PL={sign:DL,expand:QR,none:Qi,silhouette:JR,wiggle:ez,positive:kL},RL=(e,t,n)=>{var r,l=(r=PL[n])!==null&&r!==void 0?r:Qi,o=WR().keys(t).value((f,d)=>Number(et(f,d,0))).order(Iy).offset(l),u=o(e);return u.forEach((f,d)=>{f.forEach((h,p)=>{var y=et(e[p],t[d],0);Array.isArray(y)&&y.length===2&&he(y[0])&&he(y[1])&&(h[0]=y[0],h[1]=y[1])})}),u};function yC(e){return e==null?void 0:String(e)}function Hj(e){var{axis:t,ticks:n,bandSize:r,entry:l,index:o,dataKey:u}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!pt(l[t.dataKey])){var f=SE(n,"value",l[t.dataKey]);if(f)return f.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var d=et(l,pt(u)?t.dataKey:u);return pt(d)?null:t.scale(d)}var Fj=e=>{var{axis:t,ticks:n,offset:r,bandSize:l,entry:o,index:u}=e;if(t.type==="category")return n[u]?n[u].coordinate+r:null;var f=et(o,t.dataKey,t.scale.domain()[u]);return pt(f)?null:t.scale(f)-l/2+r},zL=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),l=Math.max(n[0],n[1]);return r<=0&&l>=0?0:l<0?l:r}return n[0]},LL=e=>{var t=e.flat(2).filter(he);return[Math.min(...t),Math.max(...t)]},BL=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],IL=(e,t,n)=>{if(e!=null)return BL(Object.keys(e).reduce((r,l)=>{var o=e[l];if(!o)return r;var{stackedData:u}=o,f=u.reduce((d,h)=>{var p=mC(h,t,n),y=LL(p);return!rt(y[0])||!rt(y[1])?d:[Math.min(d[0],y[0]),Math.max(d[1],y[1])]},[1/0,-1/0]);return[Math.min(f[0],r[0]),Math.max(f[1],r[1])]},[1/0,-1/0]))},Kj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Yj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,uo=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var l=kd(t,p=>p.coordinate),o=1/0,u=1,f=l.length;u<f;u++){var d=l[u],h=l[u-1];o=Math.min(((d==null?void 0:d.coordinate)||0)-((h==null?void 0:h.coordinate)||0),o)}return o===1/0?0:o}return n?void 0:0};function Gj(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:l,name:o}=e;return to(to({},t),{},{dataKey:n,payload:r,value:l,name:o})}function xo(e,t){if(e)return String(e);if(typeof t=="string")return t}var $L=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},UL=(e,t)=>t==="centric"?e.angle:e.radius,wa=e=>e.layout.width,Sa=e=>e.layout.height,qL=e=>e.layout.scale,gC=e=>e.layout.margin,Hd=Y(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),Fd=Y(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),bC="data-recharts-item-index",xC="data-recharts-item-id",cu=60;function Vj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Qc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Vj(Object(n),!0).forEach(function(r){HL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HL(e,t,n){return(t=FL(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function FL(e){var t=KL(e,"string");return typeof t=="symbol"?t:t+""}function KL(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var YL=e=>e.brush.height;function GL(e){var t=Fd(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var l=typeof r.width=="number"?r.width:cu;return n+l}return n},0)}function VL(e){var t=Fd(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var l=typeof r.width=="number"?r.width:cu;return n+l}return n},0)}function XL(e){var t=Hd(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function ZL(e){var t=Hd(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var Lt=Y([wa,Sa,gC,YL,GL,VL,XL,ZL,LE,S8],(e,t,n,r,l,o,u,f,d,h)=>{var p={left:(n.left||0)+l,right:(n.right||0)+o},y={top:(n.top||0)+u,bottom:(n.bottom||0)+f},b=Qc(Qc({},y),p),w=b.bottom;b.bottom+=r,b=CL(b,d,h);var S=e-b.left-b.right,j=t-b.top-b.bottom;return Qc(Qc({brushBottom:w},b),{},{width:Math.max(S,0),height:Math.max(j,0)})}),WL=Y(Lt,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),u0=Y(wa,Sa,(e,t)=>({x:0,y:0,width:e,height:t})),QL=x.createContext(null),cn=()=>x.useContext(QL)!=null,Kd=e=>e.brush,Yd=Y([Kd,Lt,gC],(e,t,n)=>({height:e.height,x:he(e.x)?e.x:t.left,y:he(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:he(e.width)?e.width:t.width})),Fv={},Kv={},Yv={},Xj;function JL(){return Xj||(Xj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:l,edges:o}={}){let u,f=null;const d=o!=null&&o.includes("leading"),h=o==null||o.includes("trailing"),p=()=>{f!==null&&(n.apply(u,f),u=void 0,f=null)},y=()=>{h&&p(),j()};let b=null;const w=()=>{b!=null&&clearTimeout(b),b=setTimeout(()=>{b=null,y()},r)},S=()=>{b!==null&&(clearTimeout(b),b=null)},j=()=>{S(),u=void 0,f=null},_=()=>{p()},A=function(...N){if(l!=null&&l.aborted)return;u=this,f=N;const C=b==null;w(),d&&C&&p()};return A.schedule=w,A.cancel=j,A.flush=_,l==null||l.addEventListener("abort",j,{once:!0}),A}e.debounce=t})(Yv)),Yv}var Zj;function e7(){return Zj||(Zj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=JL();function n(r,l=0,o={}){typeof o!="object"&&(o={});const{leading:u=!1,trailing:f=!0,maxWait:d}=o,h=Array(2);u&&(h[0]="leading"),f&&(h[1]="trailing");let p,y=null;const b=t.debounce(function(...j){p=r.apply(this,j),y=null},l,{edges:h}),w=function(...j){return d!=null&&(y===null&&(y=Date.now()),Date.now()-y>=d)?(p=r.apply(this,j),y=Date.now(),b.cancel(),b.schedule(),p):(b.apply(this,j),p)},S=()=>(b.flush(),p);return w.cancel=b.cancel,w.flush=S,w}e.debounce=n})(Kv)),Kv}var Wj;function t7(){return Wj||(Wj=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=e7();function n(r,l=0,o={}){const{leading:u=!0,trailing:f=!0}=o;return t.debounce(r,l,{leading:u,maxWait:l,trailing:f})}e.throttle=n})(Fv)),Fv}var Gv,Qj;function n7(){return Qj||(Qj=1,Gv=t7().throttle),Gv}var r7=n7();const a7=zr(r7);var Kf=function(t,n){for(var r=arguments.length,l=new Array(r>2?r-2:0),o=2;o<r;o++)l[o-2]=arguments[o];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=0;console.warn(n.replace(/%s/g,()=>l[u++]))}},wC=(e,t,n)=>{var{width:r="100%",height:l="100%",aspect:o,maxHeight:u}=n,f=ha(r)?e:Number(r),d=ha(l)?t:Number(l);return o&&o>0&&(f?d=f/o:d&&(f=d*o),u&&d!=null&&d>u&&(d=u)),{calculatedWidth:f,calculatedHeight:d}},i7={width:0,height:0,overflow:"visible"},l7={width:0,overflowX:"visible"},o7={height:0,overflowY:"visible"},s7={},u7=e=>{var{width:t,height:n}=e,r=ha(t),l=ha(n);return r&&l?i7:r?l7:l?o7:s7};function c7(e){var{width:t,height:n,aspect:r}=e,l=t,o=n;return l===void 0&&o===void 0?(l="100%",o="100%"):l===void 0?l=r&&r>0?void 0:"100%":o===void 0&&(o=r&&r>0?void 0:"100%"),{width:l,height:o}}function Wy(){return Wy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wy.apply(null,arguments)}function Jj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function e_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Jj(Object(n),!0).forEach(function(r){f7(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 f7(e,t,n){return(t=d7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d7(e){var t=h7(e,"string");return typeof t=="symbol"?t:t+""}function h7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SC=x.createContext({width:-1,height:-1});function m7(e){return Pr(e.width)&&Pr(e.height)}function jC(e){var{children:t,width:n,height:r}=e,l=x.useMemo(()=>({width:n,height:r}),[n,r]);return m7(l)?x.createElement(SC.Provider,{value:l},t):null}var c0=()=>x.useContext(SC),p7=x.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:l,height:o,minWidth:u=0,minHeight:f,maxHeight:d,children:h,debounce:p=0,id:y,className:b,onResize:w,style:S={}}=e,j=x.useRef(null),_=x.useRef();_.current=w,x.useImperativeHandle(t,()=>j.current);var[A,N]=x.useState({containerWidth:r.width,containerHeight:r.height}),C=x.useCallback(($,X)=>{N(Z=>{var te=Math.round($),R=Math.round(X);return Z.containerWidth===te&&Z.containerHeight===R?Z:{containerWidth:te,containerHeight:R}})},[]);x.useEffect(()=>{if(j.current==null||typeof ResizeObserver>"u")return lu;var $=R=>{var ce,{width:le,height:fe}=R[0].contentRect;C(le,fe),(ce=_.current)===null||ce===void 0||ce.call(_,le,fe)};p>0&&($=a7($,p,{trailing:!0,leading:!1}));var X=new ResizeObserver($),{width:Z,height:te}=j.current.getBoundingClientRect();return C(Z,te),X.observe(j.current),()=>{X.disconnect()}},[C,p]);var{containerWidth:D,containerHeight:k}=A;Kf(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:T,calculatedHeight:P}=wC(D,k,{width:l,height:o,aspect:n,maxHeight:d});return Kf(T!=null&&T>0||P!=null&&P>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.`,T,P,l,o,u,f,n),x.createElement("div",{id:y?"".concat(y):void 0,className:qe("recharts-responsive-container",b),style:e_(e_({},S),{},{width:l,height:o,minWidth:u,minHeight:f,maxHeight:d}),ref:j},x.createElement("div",{style:u7({width:l,height:o})},x.createElement(jC,{width:T,height:P},h)))}),As=x.forwardRef((e,t)=>{var n=c0();if(Pr(n.width)&&Pr(n.height))return e.children;var{width:r,height:l}=c7({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:o,calculatedHeight:u}=wC(void 0,void 0,{width:r,height:l,aspect:e.aspect,maxHeight:e.maxHeight});return he(o)&&he(u)?x.createElement(jC,{width:o,height:u},e.children):x.createElement(p7,Wy({},e,{width:r,height:l,ref:t}))});function _C(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var Gd=()=>{var e,t=cn(),n=ye(WL),r=ye(Yd),l=(e=ye(Kd))===null||e===void 0?void 0:e.padding;return!t||!r||!l?n:{width:r.width-l.left-l.right,height:r.height-l.top-l.bottom,x:l.left,y:l.top}},v7={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},OC=()=>{var e;return(e=ye(Lt))!==null&&e!==void 0?e:v7},f0=()=>ye(wa),d0=()=>ye(Sa),y7=()=>ye(e=>e.layout.margin),Be=e=>e.layout.layoutType,ll=()=>ye(Be),g7=()=>{var e=ll();if(e==="horizontal"||e==="vertical")return e},b7=()=>{var e=ll();return e!==void 0},Vd=e=>{var t=it(),n=cn(),{width:r,height:l}=e,o=c0(),u=r,f=l;return o&&(u=o.width>0?o.width:r,f=o.height>0?o.height:l),x.useEffect(()=>{!n&&Pr(u)&&Pr(f)&&t(jL({width:u,height:f}))},[t,n,u,f]),null},AC=Symbol.for("immer-nothing"),t_=Symbol.for("immer-draftable"),Fn=Symbol.for("immer-state");function yr(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Hs=Object.getPrototypeOf;function co(e){return!!e&&!!e[Fn]}function tl(e){var t;return e?NC(e)||Array.isArray(e)||!!e[t_]||!!((t=e.constructor)!=null&&t[t_])||fu(e)||Zd(e):!1}var x7=Object.prototype.constructor.toString(),n_=new WeakMap;function NC(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=n_.get(n);return r===void 0&&(r=Function.toString.call(n),n_.set(n,r)),r===x7}function Yf(e,t,n=!0){Xd(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(l=>{t(l,e[l],e)}):e.forEach((r,l)=>t(l,r,e))}function Xd(e){const t=e[Fn];return t?t.type_:Array.isArray(e)?1:fu(e)?2:Zd(e)?3:0}function Qy(e,t){return Xd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function EC(e,t,n){const r=Xd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function w7(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function fu(e){return e instanceof Map}function Zd(e){return e instanceof Set}function Ri(e){return e.copy_||e.base_}function Jy(e,t){if(fu(e))return new Map(e);if(Zd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=NC(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Fn];let l=Reflect.ownKeys(r);for(let o=0;o<l.length;o++){const u=l[o],f=r[u];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(r[u]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[u]})}return Object.create(Hs(e),r)}else{const r=Hs(e);if(r!==null&&n)return{...e};const l=Object.create(r);return Object.assign(l,e)}}function h0(e,t=!1){return Wd(e)||co(e)||!tl(e)||(Xd(e)>1&&Object.defineProperties(e,{set:Jc,add:Jc,clear:Jc,delete:Jc}),Object.freeze(e),t&&Object.values(e).forEach(n=>h0(n,!0))),e}function S7(){yr(2)}var Jc={value:S7};function Wd(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var j7={};function nl(e){const t=j7[e];return t||yr(0,e),t}var Fs;function CC(){return Fs}function _7(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function r_(e,t){t&&(nl("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function eg(e){tg(e),e.drafts_.forEach(O7),e.drafts_=null}function tg(e){e===Fs&&(Fs=e.parent_)}function a_(e){return Fs=_7(Fs,e)}function O7(e){const t=e[Fn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function i_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Fn].modified_&&(eg(t),yr(4)),tl(e)&&(e=Gf(t,e),t.parent_||Vf(t,e)),t.patches_&&nl("Patches").generateReplacementPatches_(n[Fn].base_,e,t.patches_,t.inversePatches_)):e=Gf(t,n,[]),eg(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AC?e:void 0}function Gf(e,t,n){if(Wd(t))return t;const r=e.immer_.shouldUseStrictIteration(),l=t[Fn];if(!l)return Yf(t,(o,u)=>l_(e,l,t,o,u,n),r),t;if(l.scope_!==e)return t;if(!l.modified_)return Vf(e,l.base_,!0),l.base_;if(!l.finalized_){l.finalized_=!0,l.scope_.unfinalizedDrafts_--;const o=l.copy_;let u=o,f=!1;l.type_===3&&(u=new Set(o),o.clear(),f=!0),Yf(u,(d,h)=>l_(e,l,o,d,h,n,f),r),Vf(e,o,!1),n&&e.patches_&&nl("Patches").generatePatches_(l,n,e.patches_,e.inversePatches_)}return l.copy_}function l_(e,t,n,r,l,o,u){if(l==null||typeof l!="object"&&!u)return;const f=Wd(l);if(!(f&&!u)){if(co(l)){const d=o&&t&&t.type_!==3&&!Qy(t.assigned_,r)?o.concat(r):void 0,h=Gf(e,l,d);if(EC(n,r,h),co(h))e.canAutoFreeze_=!1;else return}else u&&n.add(l);if(tl(l)&&!f){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===l&&f)return;Gf(e,l),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(fu(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&Vf(e,l)}}}function Vf(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&h0(t,n)}function A7(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:CC(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let l=r,o=m0;n&&(l=[r],o=Ks);const{revoke:u,proxy:f}=Proxy.revocable(l,o);return r.draft_=f,r.revoke_=u,f}var m0={get(e,t){if(t===Fn)return e;const n=Ri(e);if(!Qy(n,t))return N7(e,n,t);const r=n[t];return e.finalized_||!tl(r)?r:r===Vv(e.base_,t)?(Xv(e),e.copy_[t]=rg(r,e)):r},has(e,t){return t in Ri(e)},ownKeys(e){return Reflect.ownKeys(Ri(e))},set(e,t,n){const r=TC(Ri(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const l=Vv(Ri(e),t),o=l==null?void 0:l[Fn];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(w7(n,l)&&(n!==void 0||Qy(e.base_,t)))return!0;Xv(e),ng(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Vv(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Xv(e),ng(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Ri(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){yr(11)},getPrototypeOf(e){return Hs(e.base_)},setPrototypeOf(){yr(12)}},Ks={};Yf(m0,(e,t)=>{Ks[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Ks.deleteProperty=function(e,t){return Ks.set.call(this,e,t,void 0)};Ks.set=function(e,t,n){return m0.set.call(this,e[0],t,n,e[0])};function Vv(e,t){const n=e[Fn];return(n?Ri(n):e)[t]}function N7(e,t,n){var l;const r=TC(t,n);return r?"value"in r?r.value:(l=r.get)==null?void 0:l.call(e.draft_):void 0}function TC(e,t){if(!(t in e))return;let n=Hs(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Hs(n)}}function ng(e){e.modified_||(e.modified_=!0,e.parent_&&ng(e.parent_))}function Xv(e){e.copy_||(e.copy_=Jy(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var E7=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const u=this;return function(d=o,...h){return u.produce(d,p=>n.call(this,p,...h))}}typeof n!="function"&&yr(6),r!==void 0&&typeof r!="function"&&yr(7);let l;if(tl(t)){const o=a_(this),u=rg(t,void 0);let f=!0;try{l=n(u),f=!1}finally{f?eg(o):tg(o)}return r_(o,r),i_(l,o)}else if(!t||typeof t!="object"){if(l=n(t),l===void 0&&(l=t),l===AC&&(l=void 0),this.autoFreeze_&&h0(l,!0),r){const o=[],u=[];nl("Patches").generateReplacementPatches_(t,l,o,u),r(o,u)}return l}else yr(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(u,...f)=>this.produceWithPatches(u,d=>t(d,...f));let r,l;return[this.produce(t,n,(u,f)=>{r=u,l=f}),r,l]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){tl(e)||yr(8),co(e)&&(e=C7(e));const t=a_(this),n=rg(e,void 0);return n[Fn].isManual_=!0,tg(t),n}finishDraft(e,t){const n=e&&e[Fn];(!n||!n.isManual_)&&yr(9);const{scope_:r}=n;return r_(r,t),i_(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const l=t[n];if(l.path.length===0&&l.op==="replace"){e=l.value;break}}n>-1&&(t=t.slice(n+1));const r=nl("Patches").applyPatches_;return co(e)?r(e,t):this.produce(e,l=>r(l,t))}};function rg(e,t){const n=fu(e)?nl("MapSet").proxyMap_(e,t):Zd(e)?nl("MapSet").proxySet_(e,t):A7(e,t);return(t?t.scope_:CC()).drafts_.push(n),n}function C7(e){return co(e)||yr(10,e),MC(e)}function MC(e){if(!tl(e)||Wd(e))return e;const t=e[Fn];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Jy(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=Jy(e,!0);return Yf(n,(l,o)=>{EC(n,l,MC(o))},r),t&&(t.finalized_=!1),n}var T7=new E7;T7.produce;var M7={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},DC=En({name:"legend",initialState:M7,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:ft()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,l=br(e).payload.indexOf(n);l>-1&&(e.payload[l]=r)},prepare:ft()},removeLegendPayload:{reducer(e,t){var n=br(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:ft()}}}),{setLegendSize:o_,setLegendSettings:D7,addLegendPayload:kC,replaceLegendPayload:PC,removeLegendPayload:RC}=DC.actions,k7=DC.reducer,P7=["contextPayload"];function ag(){return ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ag.apply(null,arguments)}function s_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?s_(Object(n),!0).forEach(function(r){R7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R7(e,t,n){return(t=z7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z7(e){var t=L7(e,"string");return typeof t=="symbol"?t:t+""}function L7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function B7(e,t){if(e==null)return{};var n,r,l=I7(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function I7(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $7(e){return e.value}function U7(e){var{contextPayload:t}=e,n=B7(e,P7),r=kE(t,e.payloadUniqBy,$7),l=fo(fo({},n),{},{payload:r});return x.isValidElement(e.content)?x.cloneElement(e.content,l):typeof e.content=="function"?x.createElement(e.content,l):x.createElement(Tz,l)}function q7(e,t,n,r,l,o){var{layout:u,align:f,verticalAlign:d}=t,h,p;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(f==="center"&&u==="vertical"?h={left:((r||0)-o.width)/2}:h=f==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(d==="middle"?p={top:((l||0)-o.height)/2}:p=d==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),fo(fo({},h),p)}function H7(e){var t=it();return x.useEffect(()=>{t(D7(e))},[t,e]),null}function F7(e){var t=it();return x.useEffect(()=>(t(o_(e)),()=>{t(o_({width:0,height:0}))}),[t,e]),null}function K7(e,t,n,r){return e==="vertical"&&he(t)?{height:t}:e==="horizontal"?{width:n||r}:null}var Y7={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function zC(e){var t=Pt(e,Y7),n=O8(),r=wR(),l=y7(),{width:o,height:u,wrapperStyle:f,portal:d}=t,[h,p]=BE([n]),y=f0(),b=d0();if(y==null||b==null)return null;var w=y-((l==null?void 0:l.left)||0)-((l==null?void 0:l.right)||0),S=K7(t.layout,u,o,w),j=d?f:fo(fo({position:"absolute",width:(S==null?void 0:S.width)||o||"auto",height:(S==null?void 0:S.height)||u||"auto"},q7(f,t,l,y,b,h)),f),_=d??r;if(_==null||n==null)return null;var A=x.createElement("div",{className:"recharts-legend-wrapper",style:j,ref:p},x.createElement(H7,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!d&&x.createElement(F7,{width:h.width,height:h.height}),x.createElement(U7,ag({},t,S,{margin:l,chartWidth:y,chartHeight:b,contextPayload:n})));return hn.createPortal(A,_)}zC.displayName="Legend";function ig(){return ig=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ig.apply(null,arguments)}function u_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Zv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?u_(Object(n),!0).forEach(function(r){G7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function G7(e,t,n){return(t=V7(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V7(e){var t=X7(e,"string");return typeof t=="symbol"?t:t+""}function X7(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Z7(e){return Array.isArray(e)&&kr(e[0])&&kr(e[1])?e.join(" ~ "):e}var W7=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:l={},payload:o,formatter:u,itemSorter:f,wrapperClassName:d,labelClassName:h,label:p,labelFormatter:y,accessibilityLayer:b=!1}=e,w=()=>{if(o&&o.length){var k={padding:0,margin:0},T=(f?kd(o,f):o).map((P,$)=>{if(P.type==="none")return null;var X=P.formatter||u||Z7,{value:Z,name:te}=P,R=Z,ce=te;if(X){var le=X(Z,te,P,$,o);if(Array.isArray(le))[R,ce]=le;else if(le!=null)R=le;else return null}var fe=Zv({display:"block",paddingTop:4,paddingBottom:4,color:P.color||"#000"},r);return x.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat($),style:fe},kr(ce)?x.createElement("span",{className:"recharts-tooltip-item-name"},ce):null,kr(ce)?x.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,x.createElement("span",{className:"recharts-tooltip-item-value"},R),x.createElement("span",{className:"recharts-tooltip-item-unit"},P.unit||""))});return x.createElement("ul",{className:"recharts-tooltip-item-list",style:k},T)}return null},S=Zv({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),j=Zv({margin:0},l),_=!pt(p),A=_?p:"",N=qe("recharts-default-tooltip",d),C=qe("recharts-tooltip-label",h);_&&y&&o!==void 0&&o!==null&&(A=y(p,o));var D=b?{role:"status","aria-live":"assertive"}:{};return x.createElement("div",ig({className:N,style:S},D),x.createElement("p",{className:C,style:j},x.isValidElement(A)?A:"".concat(A)),w())},Ns="recharts-tooltip-wrapper",Q7={visibility:"hidden"};function J7(e){var{coordinate:t,translateX:n,translateY:r}=e;return qe(Ns,{["".concat(Ns,"-right")]:he(n)&&t&&he(t.x)&&n>=t.x,["".concat(Ns,"-left")]:he(n)&&t&&he(t.x)&&n<t.x,["".concat(Ns,"-bottom")]:he(r)&&t&&he(t.y)&&r>=t.y,["".concat(Ns,"-top")]:he(r)&&t&&he(t.y)&&r<t.y})}function c_(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:l,position:o,reverseDirection:u,tooltipDimension:f,viewBox:d,viewBoxDimension:h}=e;if(o&&he(o[r]))return o[r];var p=n[r]-f-(l>0?l:0),y=n[r]+l;if(t[r])return u[r]?p:y;var b=d[r];if(b==null)return 0;if(u[r]){var w=p,S=b;return w<S?Math.max(y,b):Math.max(p,b)}if(h==null)return 0;var j=y+f,_=b+h;return j>_?Math.max(p,b):Math.max(y,b)}function eB(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function tB(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:l,reverseDirection:o,tooltipBox:u,useTranslate3d:f,viewBox:d}=e,h,p,y;return u.height>0&&u.width>0&&n?(p=c_({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:l,reverseDirection:o,tooltipDimension:u.width,viewBox:d,viewBoxDimension:d.width}),y=c_({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:l,reverseDirection:o,tooltipDimension:u.height,viewBox:d,viewBoxDimension:d.height}),h=eB({translateX:p,translateY:y,useTranslate3d:f})):h=Q7,{cssProperties:h,cssClasses:J7({translateX:p,translateY:y,coordinate:n})}}function f_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function ef(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?f_(Object(n),!0).forEach(function(r){lg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lg(e,t,n){return(t=nB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nB(e){var t=rB(e,"string");return typeof t=="symbol"?t:t+""}function rB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class aB extends x.PureComponent{constructor(){super(...arguments),lg(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),lg(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,l,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(l=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&l!==void 0?l:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:l,children:o,coordinate:u,hasPayload:f,isAnimationActive:d,offset:h,position:p,reverseDirection:y,useTranslate3d:b,viewBox:w,wrapperStyle:S,lastBoundingBox:j,innerRef:_,hasPortalFromProps:A}=this.props,{cssClasses:N,cssProperties:C}=tB({allowEscapeViewBox:n,coordinate:u,offsetTopLeft:h,position:p,reverseDirection:y,tooltipBox:{height:j.height,width:j.width},useTranslate3d:b,viewBox:w}),D=A?{}:ef(ef({transition:d&&t?"transform ".concat(r,"ms ").concat(l):void 0},C),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&f?"visible":"hidden",position:"absolute",top:0,left:0}),k=ef(ef({},D),{},{visibility:!this.state.dismissed&&t&&f?"visible":"hidden"},S);return x.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:N,style:k,ref:_},o)}}var LC=()=>{var e;return(e=ye(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function og(){return og=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},og.apply(null,arguments)}function d_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function h_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?d_(Object(n),!0).forEach(function(r){iB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iB(e,t,n){return(t=lB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lB(e){var t=oB(e,"string");return typeof t=="symbol"?t:t+""}function oB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var m_={curveBasisClosed:$R,curveBasisOpen:UR,curveBasis:IR,curveBumpX:OR,curveBumpY:AR,curveLinearClosed:qR,curveLinear:Md,curveMonotoneX:HR,curveMonotoneY:FR,curveNatural:KR,curveStep:YR,curveStepAfter:VR,curveStepBefore:GR},Xf=e=>rt(e.x)&&rt(e.y),p_=e=>e.base!=null&&Xf(e.base)&&Xf(e),Es=e=>e.x,Cs=e=>e.y,sB=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(iu(e));return(n==="curveMonotone"||n==="curveBump")&&t?m_["".concat(n).concat(t==="vertical"?"Y":"X")]:m_[n]||Md},uB=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:l,connectNulls:o=!1}=e,u=sB(t,l),f=o?n.filter(Xf):n,d;if(Array.isArray(r)){var h=n.map((w,S)=>h_(h_({},w),{},{base:r[S]}));l==="vertical"?d=Yc().y(Cs).x1(Es).x0(w=>w.base.x):d=Yc().x(Es).y1(Cs).y0(w=>w.base.y);var p=d.defined(p_).curve(u),y=o?h.filter(p_):h;return p(y)}l==="vertical"&&he(r)?d=Yc().y(Cs).x1(Es).x0(r):he(r)?d=Yc().x(Es).y1(Cs).y0(r):d=uE().x(Es).y(Cs);var b=d.defined(Xf).curve(u);return b(f)},io=e=>{var{className:t,points:n,path:r,pathRef:l}=e,o=ll();if((!n||!n.length)&&!r)return null;var u={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||o,connectNulls:e.connectNulls},f=n&&n.length?uB(u):r;return x.createElement("path",og({},Nn(e),Jg(e),{className:qe("recharts-curve",t),d:f===null?void 0:f,ref:l}))},cB=["x","y","top","left","width","height","className"];function sg(){return sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sg.apply(null,arguments)}function v_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function fB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v_(Object(n),!0).forEach(function(r){dB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dB(e,t,n){return(t=hB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hB(e){var t=mB(e,"string");return typeof t=="symbol"?t:t+""}function mB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pB(e,t){if(e==null)return{};var n,r,l=vB(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function vB(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var yB=(e,t,n,r,l,o)=>"M".concat(e,",").concat(l,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),gB=e=>{var{x:t=0,y:n=0,top:r=0,left:l=0,width:o=0,height:u=0,className:f}=e,d=pB(e,cB),h=fB({x:t,y:n,top:r,left:l,width:o,height:u},d);return!he(t)||!he(n)||!he(o)||!he(u)||!he(r)||!he(l)?null:x.createElement("path",sg({},pn(h),{className:qe("recharts-cross",f),d:yB(t,n,o,u,r,l)}))};function bB(e,t,n,r){var l=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-l:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-l,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function y_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function g_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y_(Object(n),!0).forEach(function(r){xB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xB(e,t,n){return(t=wB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wB(e){var t=SB(e,"string");return typeof t=="symbol"?t:t+""}function SB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jB=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),BC=(e,t,n)=>e.map(r=>"".concat(jB(r)," ").concat(t,"ms ").concat(n)).join(","),_B=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(l=>r.includes(l))),Ys=(e,t)=>Object.keys(t).reduce((n,r)=>g_(g_({},n),{},{[r]:e(r,t[r])}),{});function b_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b_(Object(n),!0).forEach(function(r){OB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OB(e,t,n){return(t=AB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AB(e){var t=NB(e,"string");return typeof t=="symbol"?t:t+""}function NB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Zf=(e,t,n)=>e+(t-e)*n,ug=e=>{var{from:t,to:n}=e;return t!==n},IC=(e,t,n)=>{var r=Ys((l,o)=>{if(ug(o)){var[u,f]=e(o.from,o.to,o.velocity);return zt(zt({},o),{},{from:u,velocity:f})}return o},t);return n<1?Ys((l,o)=>ug(o)&&r[l]!=null?zt(zt({},o),{},{velocity:Zf(o.velocity,r[l].velocity,n),from:Zf(o.from,r[l].from,n)}):o,t):IC(e,r,n-1)};function EB(e,t,n,r,l,o){var u,f=r.reduce((b,w)=>zt(zt({},b),{},{[w]:{from:e[w],velocity:0,to:t[w]}}),{}),d=()=>Ys((b,w)=>w.from,f),h=()=>!Object.values(f).filter(ug).length,p=null,y=b=>{u||(u=b);var w=b-u,S=w/n.dt;f=IC(n,f,S),l(zt(zt(zt({},e),t),d())),u=b,h()||(p=o.setTimeout(y))};return()=>(p=o.setTimeout(y),()=>{var b;(b=p)===null||b===void 0||b()})}function CB(e,t,n,r,l,o,u){var f=null,d=l.reduce((y,b)=>{var w=e[b],S=t[b];return w==null||S==null?y:zt(zt({},y),{},{[b]:[w,S]})},{}),h,p=y=>{h||(h=y);var b=(y-h)/r,w=Ys((j,_)=>Zf(..._,n(b)),d);if(o(zt(zt(zt({},e),t),w)),b<1)f=u.setTimeout(p);else{var S=Ys((j,_)=>Zf(..._,n(1)),d);o(zt(zt(zt({},e),t),S))}};return()=>(f=u.setTimeout(p),()=>{var y;(y=f)===null||y===void 0||y()})}const TB=(e,t,n,r,l,o)=>{var u=_B(e,t);return n==null?()=>(l(zt(zt({},e),t)),()=>{}):n.isStepper===!0?EB(e,t,n,u,l,o):CB(e,t,n,r,u,l,o)};var Wf=1e-4,$C=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],UC=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),x_=(e,t)=>n=>{var r=$C(e,t);return UC(r,n)},MB=(e,t)=>n=>{var r=$C(e,t),l=[...r.map((o,u)=>o*u).slice(1),0];return UC(l,n)},DB=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var l=r.map(o=>parseFloat(o));return[l[0],l[1],l[2],l[3]]},kB=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var l=DB(n[0]);if(l)return l}}return n.length===4?n:[0,0,1,1]},PB=(e,t,n,r)=>{var l=x_(e,n),o=x_(t,r),u=MB(e,n),f=h=>h>1?1:h<0?0:h,d=h=>{for(var p=h>1?1:h,y=p,b=0;b<8;++b){var w=l(y)-p,S=u(y);if(Math.abs(w-p)<Wf||S<Wf)return o(y);y=f(y-w/S)}return o(y)};return d.isStepper=!1,d},w_=function(){return PB(...kB(...arguments))},RB=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:l=17}=t,o=(u,f,d)=>{var h=-(u-f)*n,p=d*r,y=d+(h-p)*l/1e3,b=d*l/1e3+u;return Math.abs(b-f)<Wf&&Math.abs(y)<Wf?[f,0]:[b,y]};return o.isStepper=!0,o.dt=l,o},zB=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return w_(e);case"spring":return RB();default:if(e.split("(")[0]==="cubic-bezier")return w_(e)}return typeof e=="function"?e:null};function LB(e){var t,n=()=>null,r=!1,l=null,o=u=>{if(!r){if(Array.isArray(u)){if(!u.length)return;var f=u,[d,...h]=f;if(typeof d=="number"){l=e.setTimeout(o.bind(null,h),d);return}o(d),l=e.setTimeout(o.bind(null,h));return}typeof u=="string"&&(t=u,n(t)),typeof u=="object"&&(t=u,n(t)),typeof u=="function"&&u()}};return{stop:()=>{r=!0},start:u=>{r=!1,l&&(l(),l=null),o(u)},subscribe:u=>(n=u,()=>{n=()=>null}),getTimeoutController:()=>e}}class BB{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),l=null,o=u=>{u-r>=n?t(u):typeof requestAnimationFrame=="function"&&(l=requestAnimationFrame(o))};return l=requestAnimationFrame(o),()=>{l!=null&&cancelAnimationFrame(l)}}}function IB(){return LB(new BB)}var $B=x.createContext(IB);function UB(e,t){var n=x.useContext($B);return x.useMemo(()=>t??n(e),[e,t,n])}var qB=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),du={isSsr:qB()},HB={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},S_={t:0},Wv={t:1};function hu(e){var t=Pt(e,HB),{isActive:n,canBegin:r,duration:l,easing:o,begin:u,onAnimationEnd:f,onAnimationStart:d,children:h}=t,p=n==="auto"?!du.isSsr:n,y=UB(t.animationId,t.animationManager),[b,w]=x.useState(p?S_:Wv),S=x.useRef(null);return x.useEffect(()=>{p||w(Wv)},[p]),x.useEffect(()=>{if(!p||!r)return lu;var j=TB(S_,Wv,zB(o),l,w,y.getTimeoutController()),_=()=>{S.current=j()};return y.start([d,u,_,l,f]),()=>{y.stop(),S.current&&S.current(),f()}},[p,r,l,o,u,d,f,y]),h(b.t)}function mu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=x.useRef(Is(t)),r=x.useRef(e);return r.current!==e&&(n.current=Is(t),r.current=e),n.current}var FB=["radius"],KB=["radius"],j_,__,O_,A_,N_,E_,C_,T_,M_,D_;function k_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function P_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k_(Object(n),!0).forEach(function(r){YB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function YB(e,t,n){return(t=GB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function GB(e){var t=VB(e,"string");return typeof t=="symbol"?t:t+""}function VB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qf(){return Qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qf.apply(null,arguments)}function R_(e,t){if(e==null)return{};var n,r,l=XB(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function XB(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Tr(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var z_=(e,t,n,r,l)=>{var o=ri(n),u=ri(r),f=Math.min(Math.abs(o)/2,Math.abs(u)/2),d=u>=0?1:-1,h=o>=0?1:-1,p=u>=0&&o>=0||u<0&&o<0?1:0,y;if(f>0&&l instanceof Array){for(var b=[0,0,0,0],w=0,S=4;w<S;w++)b[w]=l[w]>f?f:l[w];y=bt(j_||(j_=Tr(["M",",",""])),e,t+d*b[0]),b[0]>0&&(y+=bt(__||(__=Tr(["A ",",",",0,0,",",",",",""])),b[0],b[0],p,e+h*b[0],t)),y+=bt(O_||(O_=Tr(["L ",",",""])),e+n-h*b[1],t),b[1]>0&&(y+=bt(A_||(A_=Tr(["A ",",",",0,0,",`,
        `,",",""])),b[1],b[1],p,e+n,t+d*b[1])),y+=bt(N_||(N_=Tr(["L ",",",""])),e+n,t+r-d*b[2]),b[2]>0&&(y+=bt(E_||(E_=Tr(["A ",",",",0,0,",`,
        `,",",""])),b[2],b[2],p,e+n-h*b[2],t+r)),y+=bt(C_||(C_=Tr(["L ",",",""])),e+h*b[3],t+r),b[3]>0&&(y+=bt(T_||(T_=Tr(["A ",",",",0,0,",`,
        `,",",""])),b[3],b[3],p,e,t+r-d*b[3])),y+="Z"}else if(f>0&&l===+l&&l>0){var j=Math.min(f,l);y=bt(M_||(M_=Tr(["M ",",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",","," Z"])),e,t+d*j,j,j,p,e+h*j,t,e+n-h*j,t,j,j,p,e+n,t+d*j,e+n,t+r-d*j,j,j,p,e+n-h*j,t+r,e+h*j,t+r,j,j,p,e,t+r-d*j)}else y=bt(D_||(D_=Tr(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return y},L_={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},qC=e=>{var t=Pt(e,L_),n=x.useRef(null),[r,l]=x.useState(-1);x.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var Q=n.current.getTotalLength();Q&&l(Q)}catch{}},[]);var{x:o,y:u,width:f,height:d,radius:h,className:p}=t,{animationEasing:y,animationDuration:b,animationBegin:w,isAnimationActive:S,isUpdateAnimationActive:j}=t,_=x.useRef(f),A=x.useRef(d),N=x.useRef(o),C=x.useRef(u),D=x.useMemo(()=>({x:o,y:u,width:f,height:d,radius:h}),[o,u,f,d,h]),k=mu(D,"rectangle-");if(o!==+o||u!==+u||f!==+f||d!==+d||f===0||d===0)return null;var T=qe("recharts-rectangle",p);if(!j){var P=pn(t),{radius:$}=P,X=R_(P,FB);return x.createElement("path",Qf({},X,{x:ri(o),y:ri(u),width:ri(f),height:ri(d),radius:typeof h=="number"?h:void 0,className:T,d:z_(o,u,f,d,h)}))}var Z=_.current,te=A.current,R=N.current,ce=C.current,le="0px ".concat(r===-1?1:r,"px"),fe="".concat(r,"px 0px"),U=BC(["strokeDasharray"],b,typeof y=="string"?y:L_.animationEasing);return x.createElement(hu,{animationId:k,key:k,canBegin:r>0,duration:b,easing:y,isActive:j,begin:w},Q=>{var se=ut(Z,f,Q),de=ut(te,d,Q),B=ut(R,o,Q),M=ut(ce,u,Q);n.current&&(_.current=se,A.current=de,N.current=B,C.current=M);var q;S?Q>0?q={transition:U,strokeDasharray:fe}:q={strokeDasharray:le}:q={strokeDasharray:fe};var ie=pn(t),{radius:ue}=ie,me=R_(ie,KB);return x.createElement("path",Qf({},me,{radius:typeof h=="number"?h:void 0,className:T,d:z_(B,M,se,de,h),ref:n,style:P_(P_({},q),t.style)}))})};function B_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?B_(Object(n),!0).forEach(function(r){ZB(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZB(e,t,n){return(t=WB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WB(e){var t=QB(e,"string");return typeof t=="symbol"?t:t+""}function QB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Jf=Math.PI/180,JB=e=>e*180/Math.PI,Mt=(e,t,n,r)=>({x:e+Math.cos(-Jf*r)*n,y:t+Math.sin(-Jf*r)*n}),HC=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},eI=(e,t)=>{var{x:n,y:r}=e,{x:l,y:o}=t;return Math.sqrt((n-l)**2+(r-o)**2)},tI=(e,t)=>{var{x:n,y:r}=e,{cx:l,cy:o}=t,u=eI({x:n,y:r},{x:l,y:o});if(u<=0)return{radius:u,angle:0};var f=(n-l)/u,d=Math.acos(f);return r>o&&(d=2*Math.PI-d),{radius:u,angle:JB(d),angleInRadian:d}},nI=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),l=Math.floor(n/360),o=Math.min(r,l);return{startAngle:t-o*360,endAngle:n-o*360}},rI=(e,t)=>{var{startAngle:n,endAngle:r}=t,l=Math.floor(n/360),o=Math.floor(r/360),u=Math.min(l,o);return e+u*360},aI=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:l,angle:o}=tI({x:n,y:r},t),{innerRadius:u,outerRadius:f}=t;if(l<u||l>f||l===0)return null;var{startAngle:d,endAngle:h}=nI(t),p=o,y;if(d<=h){for(;p>h;)p-=360;for(;p<d;)p+=360;y=p>=d&&p<=h}else{for(;p>d;)p-=360;for(;p<h;)p+=360;y=p>=h&&p<=d}return y?I_(I_({},t),{},{radius:l,angle:rI(p,t)}):null};function FC(e){var{cx:t,cy:n,radius:r,startAngle:l,endAngle:o}=e,u=Mt(t,n,r,l),f=Mt(t,n,r,o);return{points:[u,f],cx:t,cy:n,radius:r,startAngle:l,endAngle:o}}var $_,U_,q_,H_,F_,K_,Y_;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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cg.apply(null,arguments)}function Ii(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var iI=(e,t)=>{var n=Gt(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},tf=e=>{var{cx:t,cy:n,radius:r,angle:l,sign:o,isExternal:u,cornerRadius:f,cornerIsExternal:d}=e,h=f*(u?1:-1)+r,p=Math.asin(f/h)/Jf,y=d?l:l+o*p,b=Mt(t,n,h,y),w=Mt(t,n,r,y),S=d?l-o*p:l,j=Mt(t,n,h*Math.cos(p*Jf),S);return{center:b,circleTangency:w,lineTangency:j,theta:p}},KC=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:l,startAngle:o,endAngle:u}=e,f=iI(o,u),d=o+f,h=Mt(t,n,l,o),p=Mt(t,n,l,d),y=bt($_||($_=Ii(["M ",",",`
    A `,",",`,0,
    `,",",`,
    `,",",`
  `])),h.x,h.y,l,l,+(Math.abs(f)>180),+(o>d),p.x,p.y);if(r>0){var b=Mt(t,n,r,o),w=Mt(t,n,r,d);y+=bt(U_||(U_=Ii(["L ",",",`
            A `,",",`,0,
            `,",",`,
            `,","," Z"])),w.x,w.y,r,r,+(Math.abs(f)>180),+(o<=d),b.x,b.y)}else y+=bt(q_||(q_=Ii(["L ",","," Z"])),t,n);return y},lI=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:l,cornerRadius:o,forceCornerRadius:u,cornerIsExternal:f,startAngle:d,endAngle:h}=e,p=Gt(h-d),{circleTangency:y,lineTangency:b,theta:w}=tf({cx:t,cy:n,radius:l,angle:d,sign:p,cornerRadius:o,cornerIsExternal:f}),{circleTangency:S,lineTangency:j,theta:_}=tf({cx:t,cy:n,radius:l,angle:h,sign:-p,cornerRadius:o,cornerIsExternal:f}),A=f?Math.abs(d-h):Math.abs(d-h)-w-_;if(A<0)return u?bt(H_||(H_=Ii(["M ",",",`
        a`,",",",0,0,1,",`,0
        a`,",",",0,0,1,",`,0
      `])),b.x,b.y,o,o,o*2,o,o,-o*2):KC({cx:t,cy:n,innerRadius:r,outerRadius:l,startAngle:d,endAngle:h});var N=bt(F_||(F_=Ii(["M ",",",`
    A`,",",",0,0,",",",",",`
    A`,",",",0,",",",",",",",`
    A`,",",",0,0,",",",",",`
  `])),b.x,b.y,o,o,+(p<0),y.x,y.y,l,l,+(A>180),+(p<0),S.x,S.y,o,o,+(p<0),j.x,j.y);if(r>0){var{circleTangency:C,lineTangency:D,theta:k}=tf({cx:t,cy:n,radius:r,angle:d,sign:p,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),{circleTangency:T,lineTangency:P,theta:$}=tf({cx:t,cy:n,radius:r,angle:h,sign:-p,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),X=f?Math.abs(d-h):Math.abs(d-h)-k-$;if(X<0&&o===0)return"".concat(N,"L").concat(t,",").concat(n,"Z");N+=bt(K_||(K_=Ii(["L",",",`
      A`,",",",0,0,",",",",",`
      A`,",",",0,",",",",",",",`
      A`,",",",0,0,",",",",","Z"])),P.x,P.y,o,o,+(p<0),T.x,T.y,r,r,+(X>180),+(p>0),C.x,C.y,o,o,+(p<0),D.x,D.y)}else N+=bt(Y_||(Y_=Ii(["L",",","Z"])),t,n);return N},oI={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},YC=e=>{var t=Pt(e,oI),{cx:n,cy:r,innerRadius:l,outerRadius:o,cornerRadius:u,forceCornerRadius:f,cornerIsExternal:d,startAngle:h,endAngle:p,className:y}=t;if(o<l||h===p)return null;var b=qe("recharts-sector",y),w=o-l,S=un(u,w,0,!0),j;return S>0&&Math.abs(h-p)<360?j=lI({cx:n,cy:r,innerRadius:l,outerRadius:o,cornerRadius:Math.min(S,w/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:h,endAngle:p}):j=KC({cx:n,cy:r,innerRadius:l,outerRadius:o,startAngle:h,endAngle:p}),x.createElement("path",cg({},pn(t),{className:b,d:j}))};function sI(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(_E(t)){if(e==="centric"){var{cx:r,cy:l,innerRadius:o,outerRadius:u,angle:f}=t,d=Mt(r,l,o,f),h=Mt(r,l,u,f);return[{x:d.x,y:d.y},{x:h.x,y:h.y}]}return FC(t)}}var Qv={},Jv={},ey={},G_;function uI(){return G_||(G_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=RE();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(ey)),ey}var V_;function cI(){return V_||(V_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uI();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(Jv)),Jv}var X_;function fI(){return X_||(X_=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zE(),n=cI();function r(l,o,u){u&&typeof u!="number"&&t.isIterateeCall(l,o,u)&&(o=u=void 0),l=n.toFinite(l),o===void 0?(o=l,l=0):o=n.toFinite(o),u=u===void 0?l<o?1:-1:n.toFinite(u);const f=Math.max(Math.ceil((o-l)/(u||1)),0),d=new Array(f);for(let h=0;h<f;h++)d[h]=l,l+=u;return d}e.range=r})(Qv)),Qv}var ty,Z_;function dI(){return Z_||(Z_=1,ty=fI().range),ty}var hI=dI();const GC=zr(hI);function li(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function mI(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function p0(e){let t,n,r;e.length!==2?(t=li,n=(f,d)=>li(e(f),d),r=(f,d)=>e(f)-d):(t=e===li||e===mI?e:pI,n=e,r=e);function l(f,d,h=0,p=f.length){if(h<p){if(t(d,d)!==0)return p;do{const y=h+p>>>1;n(f[y],d)<0?h=y+1:p=y}while(h<p)}return h}function o(f,d,h=0,p=f.length){if(h<p){if(t(d,d)!==0)return p;do{const y=h+p>>>1;n(f[y],d)<=0?h=y+1:p=y}while(h<p)}return h}function u(f,d,h=0,p=f.length){const y=l(f,d,h,p-1);return y>h&&r(f[y-1],d)>-r(f[y],d)?y-1:y}return{left:l,center:u,right:o}}function pI(){return 0}function VC(e){return e===null?NaN:+e}function*vI(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const yI=p0(li),pu=yI.right;p0(VC).center;class W_ extends Map{constructor(t,n=xI){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,l]of t)this.set(r,l)}get(t){return super.get(Q_(this,t))}has(t){return super.has(Q_(this,t))}set(t,n){return super.set(gI(this,t),n)}delete(t){return super.delete(bI(this,t))}}function Q_({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function gI({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function bI({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function xI(e){return e!==null&&typeof e=="object"?e.valueOf():e}function wI(e=li){if(e===li)return XC;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 XC(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const SI=Math.sqrt(50),jI=Math.sqrt(10),_I=Math.sqrt(2);function ed(e,t,n){const r=(t-e)/Math.max(0,n),l=Math.floor(Math.log10(r)),o=r/Math.pow(10,l),u=o>=SI?10:o>=jI?5:o>=_I?2:1;let f,d,h;return l<0?(h=Math.pow(10,-l)/u,f=Math.round(e*h),d=Math.round(t*h),f/h<e&&++f,d/h>t&&--d,h=-h):(h=Math.pow(10,l)*u,f=Math.round(e/h),d=Math.round(t/h),f*h<e&&++f,d*h>t&&--d),d<f&&.5<=n&&n<2?ed(e,t,n*2):[f,d,h]}function fg(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[l,o,u]=r?ed(t,e,n):ed(e,t,n);if(!(o>=l))return[];const f=o-l+1,d=new Array(f);if(r)if(u<0)for(let h=0;h<f;++h)d[h]=(o-h)/-u;else for(let h=0;h<f;++h)d[h]=(o-h)*u;else if(u<0)for(let h=0;h<f;++h)d[h]=(l+h)/-u;else for(let h=0;h<f;++h)d[h]=(l+h)*u;return d}function dg(e,t,n){return t=+t,e=+e,n=+n,ed(e,t,n)[2]}function hg(e,t,n){t=+t,e=+e,n=+n;const r=t<e,l=r?dg(t,e,n):dg(e,t,n);return(r?-1:1)*(l<0?1/-l:l)}function J_(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function eO(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function ZC(e,t,n=0,r=1/0,l){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(l=l===void 0?XC:wI(l);r>n;){if(r-n>600){const d=r-n+1,h=t-n+1,p=Math.log(d),y=.5*Math.exp(2*p/3),b=.5*Math.sqrt(p*y*(d-y)/d)*(h-d/2<0?-1:1),w=Math.max(n,Math.floor(t-h*y/d+b)),S=Math.min(r,Math.floor(t+(d-h)*y/d+b));ZC(e,t,w,S,l)}const o=e[t];let u=n,f=r;for(Ts(e,n,t),l(e[r],o)>0&&Ts(e,n,r);u<f;){for(Ts(e,u,f),++u,--f;l(e[u],o)<0;)++u;for(;l(e[f],o)>0;)--f}l(e[n],o)===0?Ts(e,n,f):(++f,Ts(e,f,r)),f<=t&&(n=f+1),t<=f&&(r=f-1)}return e}function Ts(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function OI(e,t,n){if(e=Float64Array.from(vI(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return eO(e);if(t>=1)return J_(e);var r,l=(r-1)*t,o=Math.floor(l),u=J_(ZC(e,o).subarray(0,o+1)),f=eO(e.subarray(o+1));return u+(f-u)*(l-o)}}function AI(e,t,n=VC){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,l=(r-1)*t,o=Math.floor(l),u=+n(e[o],o,e),f=+n(e[o+1],o+1,e);return u+(f-u)*(l-o)}}function NI(e,t,n){e=+e,t=+t,n=(l=arguments.length)<2?(t=e,e=0,1):l<3?1:+n;for(var r=-1,l=Math.max(0,Math.ceil((t-e)/n))|0,o=new Array(l);++r<l;)o[r]=e+r*n;return o}function fr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ja(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 mg=Symbol("implicit");function v0(){var e=new W_,t=[],n=[],r=mg;function l(o){let u=e.get(o);if(u===void 0){if(r!==mg)return r;e.set(o,u=t.push(o)-1)}return n[u%n.length]}return l.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new W_;for(const u of o)e.has(u)||e.set(u,t.push(u)-1);return l},l.range=function(o){return arguments.length?(n=Array.from(o),l):n.slice()},l.unknown=function(o){return arguments.length?(r=o,l):r},l.copy=function(){return v0(t,n).unknown(r)},fr.apply(l,arguments),l}function y0(){var e=v0().unknown(void 0),t=e.domain,n=e.range,r=0,l=1,o,u,f=!1,d=0,h=0,p=.5;delete e.unknown;function y(){var b=t().length,w=l<r,S=w?l:r,j=w?r:l;o=(j-S)/Math.max(1,b-d+h*2),f&&(o=Math.floor(o)),S+=(j-S-o*(b-d))*p,u=o*(1-d),f&&(S=Math.round(S),u=Math.round(u));var _=NI(b).map(function(A){return S+o*A});return n(w?_.reverse():_)}return e.domain=function(b){return arguments.length?(t(b),y()):t()},e.range=function(b){return arguments.length?([r,l]=b,r=+r,l=+l,y()):[r,l]},e.rangeRound=function(b){return[r,l]=b,r=+r,l=+l,f=!0,y()},e.bandwidth=function(){return u},e.step=function(){return o},e.round=function(b){return arguments.length?(f=!!b,y()):f},e.padding=function(b){return arguments.length?(d=Math.min(1,h=+b),y()):d},e.paddingInner=function(b){return arguments.length?(d=Math.min(1,b),y()):d},e.paddingOuter=function(b){return arguments.length?(h=+b,y()):h},e.align=function(b){return arguments.length?(p=Math.max(0,Math.min(1,b)),y()):p},e.copy=function(){return y0(t(),[r,l]).round(f).paddingInner(d).paddingOuter(h).align(p)},fr.apply(y(),arguments)}function WC(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return WC(t())},e}function EI(){return WC(y0.apply(null,arguments).paddingInner(1))}function g0(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function QC(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function vu(){}var Gs=.7,td=1/Gs,lo="\\s*([+-]?\\d+)\\s*",Vs="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Dr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",CI=/^#([0-9a-f]{3,8})$/,TI=new RegExp(`^rgb\\(${lo},${lo},${lo}\\)$`),MI=new RegExp(`^rgb\\(${Dr},${Dr},${Dr}\\)$`),DI=new RegExp(`^rgba\\(${lo},${lo},${lo},${Vs}\\)$`),kI=new RegExp(`^rgba\\(${Dr},${Dr},${Dr},${Vs}\\)$`),PI=new RegExp(`^hsl\\(${Vs},${Dr},${Dr}\\)$`),RI=new RegExp(`^hsla\\(${Vs},${Dr},${Dr},${Vs}\\)$`),tO={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};g0(vu,Xs,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:nO,formatHex:nO,formatHex8:zI,formatHsl:LI,formatRgb:rO,toString:rO});function nO(){return this.rgb().formatHex()}function zI(){return this.rgb().formatHex8()}function LI(){return JC(this).formatHsl()}function rO(){return this.rgb().formatRgb()}function Xs(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=CI.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?aO(t):n===3?new _n(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?nf(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?nf(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=TI.exec(e))?new _n(t[1],t[2],t[3],1):(t=MI.exec(e))?new _n(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=DI.exec(e))?nf(t[1],t[2],t[3],t[4]):(t=kI.exec(e))?nf(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=PI.exec(e))?oO(t[1],t[2]/100,t[3]/100,1):(t=RI.exec(e))?oO(t[1],t[2]/100,t[3]/100,t[4]):tO.hasOwnProperty(e)?aO(tO[e]):e==="transparent"?new _n(NaN,NaN,NaN,0):null}function aO(e){return new _n(e>>16&255,e>>8&255,e&255,1)}function nf(e,t,n,r){return r<=0&&(e=t=n=NaN),new _n(e,t,n,r)}function BI(e){return e instanceof vu||(e=Xs(e)),e?(e=e.rgb(),new _n(e.r,e.g,e.b,e.opacity)):new _n}function pg(e,t,n,r){return arguments.length===1?BI(e):new _n(e,t,n,r??1)}function _n(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}g0(_n,pg,QC(vu,{brighter(e){return e=e==null?td:Math.pow(td,e),new _n(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gs:Math.pow(Gs,e),new _n(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _n(Yi(this.r),Yi(this.g),Yi(this.b),nd(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:iO,formatHex:iO,formatHex8:II,formatRgb:lO,toString:lO}));function iO(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}`}function II(){return`#${$i(this.r)}${$i(this.g)}${$i(this.b)}${$i((isNaN(this.opacity)?1:this.opacity)*255)}`}function lO(){const e=nd(this.opacity);return`${e===1?"rgb(":"rgba("}${Yi(this.r)}, ${Yi(this.g)}, ${Yi(this.b)}${e===1?")":`, ${e})`}`}function nd(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 oO(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new gr(e,t,n,r)}function JC(e){if(e instanceof gr)return new gr(e.h,e.s,e.l,e.opacity);if(e instanceof vu||(e=Xs(e)),!e)return new gr;if(e instanceof gr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,l=Math.min(t,n,r),o=Math.max(t,n,r),u=NaN,f=o-l,d=(o+l)/2;return f?(t===o?u=(n-r)/f+(n<r)*6:n===o?u=(r-t)/f+2:u=(t-n)/f+4,f/=d<.5?o+l:2-o-l,u*=60):f=d>0&&d<1?0:u,new gr(u,f,d,e.opacity)}function $I(e,t,n,r){return arguments.length===1?JC(e):new gr(e,t,n,r??1)}function gr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}g0(gr,$I,QC(vu,{brighter(e){return e=e==null?td:Math.pow(td,e),new gr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gs:Math.pow(Gs,e),new gr(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,l=2*n-r;return new _n(ny(e>=240?e-240:e+120,l,r),ny(e,l,r),ny(e<120?e+240:e-120,l,r),this.opacity)},clamp(){return new gr(sO(this.h),rf(this.s),rf(this.l),nd(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=nd(this.opacity);return`${e===1?"hsl(":"hsla("}${sO(this.h)}, ${rf(this.s)*100}%, ${rf(this.l)*100}%${e===1?")":`, ${e})`}`}}));function sO(e){return e=(e||0)%360,e<0?e+360:e}function rf(e){return Math.max(0,Math.min(1,e||0))}function ny(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 b0=e=>()=>e;function UI(e,t){return function(n){return e+n*t}}function qI(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 HI(e){return(e=+e)==1?eT:function(t,n){return n-t?qI(t,n,e):b0(isNaN(t)?n:t)}}function eT(e,t){var n=t-e;return n?UI(e,n):b0(isNaN(e)?t:e)}const uO=(function e(t){var n=HI(t);function r(l,o){var u=n((l=pg(l)).r,(o=pg(o)).r),f=n(l.g,o.g),d=n(l.b,o.b),h=eT(l.opacity,o.opacity);return function(p){return l.r=u(p),l.g=f(p),l.b=d(p),l.opacity=h(p),l+""}}return r.gamma=e,r})(1);function FI(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),l;return function(o){for(l=0;l<n;++l)r[l]=e[l]*(1-o)+t[l]*o;return r}}function KI(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function YI(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,l=new Array(r),o=new Array(n),u;for(u=0;u<r;++u)l[u]=wo(e[u],t[u]);for(;u<n;++u)o[u]=t[u];return function(f){for(u=0;u<r;++u)o[u]=l[u](f);return o}}function GI(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function rd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function VI(e,t){var n={},r={},l;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(l in t)l in e?n[l]=wo(e[l],t[l]):r[l]=t[l];return function(o){for(l in n)r[l]=n[l](o);return r}}var vg=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,ry=new RegExp(vg.source,"g");function XI(e){return function(){return e}}function ZI(e){return function(t){return e(t)+""}}function WI(e,t){var n=vg.lastIndex=ry.lastIndex=0,r,l,o,u=-1,f=[],d=[];for(e=e+"",t=t+"";(r=vg.exec(e))&&(l=ry.exec(t));)(o=l.index)>n&&(o=t.slice(n,o),f[u]?f[u]+=o:f[++u]=o),(r=r[0])===(l=l[0])?f[u]?f[u]+=l:f[++u]=l:(f[++u]=null,d.push({i:u,x:rd(r,l)})),n=ry.lastIndex;return n<t.length&&(o=t.slice(n),f[u]?f[u]+=o:f[++u]=o),f.length<2?d[0]?ZI(d[0].x):XI(t):(t=d.length,function(h){for(var p=0,y;p<t;++p)f[(y=d[p]).i]=y.x(h);return f.join("")})}function wo(e,t){var n=typeof t,r;return t==null||n==="boolean"?b0(t):(n==="number"?rd:n==="string"?(r=Xs(t))?(t=r,uO):WI:t instanceof Xs?uO:t instanceof Date?GI:KI(t)?FI:Array.isArray(t)?YI:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?VI:rd)(e,t)}function x0(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function QI(e,t){t===void 0&&(t=e,e=wo);for(var n=0,r=t.length-1,l=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(l,l=t[++n]);return function(u){var f=Math.max(0,Math.min(r-1,Math.floor(u*=r)));return o[f](u-f)}}function JI(e){return function(){return e}}function ad(e){return+e}var cO=[0,1];function mn(e){return e}function yg(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:JI(isNaN(t)?NaN:.5)}function e$(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function t$(e,t,n){var r=e[0],l=e[1],o=t[0],u=t[1];return l<r?(r=yg(l,r),o=n(u,o)):(r=yg(r,l),o=n(o,u)),function(f){return o(r(f))}}function n$(e,t,n){var r=Math.min(e.length,t.length)-1,l=new Array(r),o=new Array(r),u=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++u<r;)l[u]=yg(e[u],e[u+1]),o[u]=n(t[u],t[u+1]);return function(f){var d=pu(e,f,1,r)-1;return o[d](l[d](f))}}function yu(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Qd(){var e=cO,t=cO,n=wo,r,l,o,u=mn,f,d,h;function p(){var b=Math.min(e.length,t.length);return u!==mn&&(u=e$(e[0],e[b-1])),f=b>2?n$:t$,d=h=null,y}function y(b){return b==null||isNaN(b=+b)?o:(d||(d=f(e.map(r),t,n)))(r(u(b)))}return y.invert=function(b){return u(l((h||(h=f(t,e.map(r),rd)))(b)))},y.domain=function(b){return arguments.length?(e=Array.from(b,ad),p()):e.slice()},y.range=function(b){return arguments.length?(t=Array.from(b),p()):t.slice()},y.rangeRound=function(b){return t=Array.from(b),n=x0,p()},y.clamp=function(b){return arguments.length?(u=b?!0:mn,p()):u!==mn},y.interpolate=function(b){return arguments.length?(n=b,p()):n},y.unknown=function(b){return arguments.length?(o=b,y):o},function(b,w){return r=b,l=w,p()}}function w0(){return Qd()(mn,mn)}function r$(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function id(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 ho(e){return e=id(Math.abs(e)),e?e[1]:NaN}function a$(e,t){return function(n,r){for(var l=n.length,o=[],u=0,f=e[0],d=0;l>0&&f>0&&(d+f+1>r&&(f=Math.max(1,r-d)),o.push(n.substring(l-=f,l+f)),!((d+=f+1)>r));)f=e[u=(u+1)%e.length];return o.reverse().join(t)}}function i$(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var l$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Zs(e){if(!(t=l$.exec(e)))throw new Error("invalid format: "+e);var t;return new S0({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]})}Zs.prototype=S0.prototype;function S0(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+""}S0.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 o$(e){e:for(var t=e.length,n=1,r=-1,l;n<t;++n)switch(e[n]){case".":r=l=n;break;case"0":r===0&&(r=n),l=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(l+1):e}var ld;function s$(e,t){var n=id(e,t);if(!n)return ld=void 0,e.toPrecision(t);var r=n[0],l=n[1],o=l-(ld=Math.max(-8,Math.min(8,Math.floor(l/3)))*3)+1,u=r.length;return o===u?r:o>u?r+new Array(o-u+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+id(e,Math.max(0,t+o-1))[0]}function fO(e,t){var n=id(e,t);if(!n)return e+"";var r=n[0],l=n[1];return l<0?"0."+new Array(-l).join("0")+r:r.length>l+1?r.slice(0,l+1)+"."+r.slice(l+1):r+new Array(l-r.length+2).join("0")}const dO={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:r$,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)=>fO(e*100,t),r:fO,s:s$,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function hO(e){return e}var mO=Array.prototype.map,pO=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function u$(e){var t=e.grouping===void 0||e.thousands===void 0?hO:a$(mO.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",l=e.decimal===void 0?".":e.decimal+"",o=e.numerals===void 0?hO:i$(mO.call(e.numerals,String)),u=e.percent===void 0?"%":e.percent+"",f=e.minus===void 0?"−":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function h(y,b){y=Zs(y);var w=y.fill,S=y.align,j=y.sign,_=y.symbol,A=y.zero,N=y.width,C=y.comma,D=y.precision,k=y.trim,T=y.type;T==="n"?(C=!0,T="g"):dO[T]||(D===void 0&&(D=12),k=!0,T="g"),(A||w==="0"&&S==="=")&&(A=!0,w="0",S="=");var P=(b&&b.prefix!==void 0?b.prefix:"")+(_==="$"?n:_==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():""),$=(_==="$"?r:/[%p]/.test(T)?u:"")+(b&&b.suffix!==void 0?b.suffix:""),X=dO[T],Z=/[defgprs%]/.test(T);D=D===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,D)):Math.max(0,Math.min(20,D));function te(R){var ce=P,le=$,fe,U,Q;if(T==="c")le=X(R)+le,R="";else{R=+R;var se=R<0||1/R<0;if(R=isNaN(R)?d:X(Math.abs(R),D),k&&(R=o$(R)),se&&+R==0&&j!=="+"&&(se=!1),ce=(se?j==="("?j:f:j==="-"||j==="("?"":j)+ce,le=(T==="s"&&!isNaN(R)&&ld!==void 0?pO[8+ld/3]:"")+le+(se&&j==="("?")":""),Z){for(fe=-1,U=R.length;++fe<U;)if(Q=R.charCodeAt(fe),48>Q||Q>57){le=(Q===46?l+R.slice(fe+1):R.slice(fe))+le,R=R.slice(0,fe);break}}}C&&!A&&(R=t(R,1/0));var de=ce.length+R.length+le.length,B=de<N?new Array(N-de+1).join(w):"";switch(C&&A&&(R=t(B+R,B.length?N-le.length:1/0),B=""),S){case"<":R=ce+R+le+B;break;case"=":R=ce+B+R+le;break;case"^":R=B.slice(0,de=B.length>>1)+ce+R+le+B.slice(de);break;default:R=B+ce+R+le;break}return o(R)}return te.toString=function(){return y+""},te}function p(y,b){var w=Math.max(-8,Math.min(8,Math.floor(ho(b)/3)))*3,S=Math.pow(10,-w),j=h((y=Zs(y),y.type="f",y),{suffix:pO[8+w/3]});return function(_){return j(S*_)}}return{format:h,formatPrefix:p}}var af,j0,tT;c$({thousands:",",grouping:[3],currency:["$",""]});function c$(e){return af=u$(e),j0=af.format,tT=af.formatPrefix,af}function f$(e){return Math.max(0,-ho(Math.abs(e)))}function d$(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(ho(t)/3)))*3-ho(Math.abs(e)))}function h$(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ho(t)-ho(e))+1}function nT(e,t,n,r){var l=hg(e,t,n),o;switch(r=Zs(r??",f"),r.type){case"s":{var u=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=d$(l,u))&&(r.precision=o),tT(r,u)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=h$(l,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=f$(l))&&(r.precision=o-(r.type==="%")*2);break}}return j0(r)}function di(e){var t=e.domain;return e.ticks=function(n){var r=t();return fg(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var l=t();return nT(l[0],l[l.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),l=0,o=r.length-1,u=r[l],f=r[o],d,h,p=10;for(f<u&&(h=u,u=f,f=h,h=l,l=o,o=h);p-- >0;){if(h=dg(u,f,n),h===d)return r[l]=u,r[o]=f,t(r);if(h>0)u=Math.floor(u/h)*h,f=Math.ceil(f/h)*h;else if(h<0)u=Math.ceil(u*h)/h,f=Math.floor(f*h)/h;else break;d=h}return e},e}function rT(){var e=w0();return e.copy=function(){return yu(e,rT())},fr.apply(e,arguments),di(e)}function aT(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,ad),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return aT(e).unknown(t)},e=arguments.length?Array.from(e,ad):[0,1],di(n)}function iT(e,t){e=e.slice();var n=0,r=e.length-1,l=e[n],o=e[r],u;return o<l&&(u=n,n=r,r=u,u=l,l=o,o=u),e[n]=t.floor(l),e[r]=t.ceil(o),e}function vO(e){return Math.log(e)}function yO(e){return Math.exp(e)}function m$(e){return-Math.log(-e)}function p$(e){return-Math.exp(-e)}function v$(e){return isFinite(e)?+("1e"+e):e<0?0:e}function y$(e){return e===10?v$:e===Math.E?Math.exp:t=>Math.pow(e,t)}function g$(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 gO(e){return(t,n)=>-e(-t,n)}function _0(e){const t=e(vO,yO),n=t.domain;let r=10,l,o;function u(){return l=g$(r),o=y$(r),n()[0]<0?(l=gO(l),o=gO(o),e(m$,p$)):e(vO,yO),t}return t.base=function(f){return arguments.length?(r=+f,u()):r},t.domain=function(f){return arguments.length?(n(f),u()):n()},t.ticks=f=>{const d=n();let h=d[0],p=d[d.length-1];const y=p<h;y&&([h,p]=[p,h]);let b=l(h),w=l(p),S,j;const _=f==null?10:+f;let A=[];if(!(r%1)&&w-b<_){if(b=Math.floor(b),w=Math.ceil(w),h>0){for(;b<=w;++b)for(S=1;S<r;++S)if(j=b<0?S/o(-b):S*o(b),!(j<h)){if(j>p)break;A.push(j)}}else for(;b<=w;++b)for(S=r-1;S>=1;--S)if(j=b>0?S/o(-b):S*o(b),!(j<h)){if(j>p)break;A.push(j)}A.length*2<_&&(A=fg(h,p,_))}else A=fg(b,w,Math.min(w-b,_)).map(o);return y?A.reverse():A},t.tickFormat=(f,d)=>{if(f==null&&(f=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Zs(d)).precision==null&&(d.trim=!0),d=j0(d)),f===1/0)return d;const h=Math.max(1,r*f/t.ticks().length);return p=>{let y=p/o(Math.round(l(p)));return y*r<r-.5&&(y*=r),y<=h?d(p):""}},t.nice=()=>n(iT(n(),{floor:f=>o(Math.floor(l(f))),ceil:f=>o(Math.ceil(l(f)))})),t}function lT(){const e=_0(Qd()).domain([1,10]);return e.copy=()=>yu(e,lT()).base(e.base()),fr.apply(e,arguments),e}function bO(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function xO(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function O0(e){var t=1,n=e(bO(t),xO(t));return n.constant=function(r){return arguments.length?e(bO(t=+r),xO(t)):t},di(n)}function oT(){var e=O0(Qd());return e.copy=function(){return yu(e,oT()).constant(e.constant())},fr.apply(e,arguments)}function wO(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function b$(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function x$(e){return e<0?-e*e:e*e}function A0(e){var t=e(mn,mn),n=1;function r(){return n===1?e(mn,mn):n===.5?e(b$,x$):e(wO(n),wO(1/n))}return t.exponent=function(l){return arguments.length?(n=+l,r()):n},di(t)}function N0(){var e=A0(Qd());return e.copy=function(){return yu(e,N0()).exponent(e.exponent())},fr.apply(e,arguments),e}function w$(){return N0.apply(null,arguments).exponent(.5)}function SO(e){return Math.sign(e)*e*e}function S$(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function sT(){var e=w0(),t=[0,1],n=!1,r;function l(o){var u=S$(e(o));return isNaN(u)?r:n?Math.round(u):u}return l.invert=function(o){return e.invert(SO(o))},l.domain=function(o){return arguments.length?(e.domain(o),l):e.domain()},l.range=function(o){return arguments.length?(e.range((t=Array.from(o,ad)).map(SO)),l):t.slice()},l.rangeRound=function(o){return l.range(o).round(!0)},l.round=function(o){return arguments.length?(n=!!o,l):n},l.clamp=function(o){return arguments.length?(e.clamp(o),l):e.clamp()},l.unknown=function(o){return arguments.length?(r=o,l):r},l.copy=function(){return sT(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},fr.apply(l,arguments),di(l)}function uT(){var e=[],t=[],n=[],r;function l(){var u=0,f=Math.max(1,t.length);for(n=new Array(f-1);++u<f;)n[u-1]=AI(e,u/f);return o}function o(u){return u==null||isNaN(u=+u)?r:t[pu(n,u)]}return o.invertExtent=function(u){var f=t.indexOf(u);return f<0?[NaN,NaN]:[f>0?n[f-1]:e[0],f<n.length?n[f]:e[e.length-1]]},o.domain=function(u){if(!arguments.length)return e.slice();e=[];for(let f of u)f!=null&&!isNaN(f=+f)&&e.push(f);return e.sort(li),l()},o.range=function(u){return arguments.length?(t=Array.from(u),l()):t.slice()},o.unknown=function(u){return arguments.length?(r=u,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return uT().domain(e).range(t).unknown(r)},fr.apply(o,arguments)}function cT(){var e=0,t=1,n=1,r=[.5],l=[0,1],o;function u(d){return d!=null&&d<=d?l[pu(r,d,0,n)]:o}function f(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return u}return u.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,f()):[e,t]},u.range=function(d){return arguments.length?(n=(l=Array.from(d)).length-1,f()):l.slice()},u.invertExtent=function(d){var h=l.indexOf(d);return h<0?[NaN,NaN]:h<1?[e,r[0]]:h>=n?[r[n-1],t]:[r[h-1],r[h]]},u.unknown=function(d){return arguments.length&&(o=d),u},u.thresholds=function(){return r.slice()},u.copy=function(){return cT().domain([e,t]).range(l).unknown(o)},fr.apply(di(u),arguments)}function fT(){var e=[.5],t=[0,1],n,r=1;function l(o){return o!=null&&o<=o?t[pu(e,o,0,r)]:n}return l.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),l):e.slice()},l.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),l):t.slice()},l.invertExtent=function(o){var u=t.indexOf(o);return[e[u-1],e[u]]},l.unknown=function(o){return arguments.length?(n=o,l):n},l.copy=function(){return fT().domain(e).range(t).unknown(n)},fr.apply(l,arguments)}const ay=new Date,iy=new Date;function Bt(e,t,n,r){function l(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return l.floor=o=>(e(o=new Date(+o)),o),l.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),l.round=o=>{const u=l(o),f=l.ceil(o);return o-u<f-o?u:f},l.offset=(o,u)=>(t(o=new Date(+o),u==null?1:Math.floor(u)),o),l.range=(o,u,f)=>{const d=[];if(o=l.ceil(o),f=f==null?1:Math.floor(f),!(o<u)||!(f>0))return d;let h;do d.push(h=new Date(+o)),t(o,f),e(o);while(h<o&&o<u);return d},l.filter=o=>Bt(u=>{if(u>=u)for(;e(u),!o(u);)u.setTime(u-1)},(u,f)=>{if(u>=u)if(f<0)for(;++f<=0;)for(;t(u,-1),!o(u););else for(;--f>=0;)for(;t(u,1),!o(u););}),n&&(l.count=(o,u)=>(ay.setTime(+o),iy.setTime(+u),e(ay),e(iy),Math.floor(n(ay,iy))),l.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?l.filter(r?u=>r(u)%o===0:u=>l.count(0,u)%o===0):l)),l}const od=Bt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);od.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Bt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):od);od.range;const ua=1e3,lr=ua*60,ca=lr*60,pa=ca*24,E0=pa*7,jO=pa*30,ly=pa*365,Ui=Bt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ua)},(e,t)=>(t-e)/ua,e=>e.getUTCSeconds());Ui.range;const C0=Bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ua)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getMinutes());C0.range;const T0=Bt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*lr)},(e,t)=>(t-e)/lr,e=>e.getUTCMinutes());T0.range;const M0=Bt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ua-e.getMinutes()*lr)},(e,t)=>{e.setTime(+e+t*ca)},(e,t)=>(t-e)/ca,e=>e.getHours());M0.range;const D0=Bt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ca)},(e,t)=>(t-e)/ca,e=>e.getUTCHours());D0.range;const gu=Bt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*lr)/pa,e=>e.getDate()-1);gu.range;const Jd=Bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pa,e=>e.getUTCDate()-1);Jd.range;const dT=Bt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/pa,e=>Math.floor(e/pa));dT.range;function ol(e){return Bt(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())*lr)/E0)}const eh=ol(0),sd=ol(1),j$=ol(2),_$=ol(3),mo=ol(4),O$=ol(5),A$=ol(6);eh.range;sd.range;j$.range;_$.range;mo.range;O$.range;A$.range;function sl(e){return Bt(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)/E0)}const th=sl(0),ud=sl(1),N$=sl(2),E$=sl(3),po=sl(4),C$=sl(5),T$=sl(6);th.range;ud.range;N$.range;E$.range;po.range;C$.range;T$.range;const k0=Bt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());k0.range;const P0=Bt(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());P0.range;const va=Bt(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());va.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bt(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)});va.range;const ya=Bt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Bt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});ya.range;function hT(e,t,n,r,l,o){const u=[[Ui,1,ua],[Ui,5,5*ua],[Ui,15,15*ua],[Ui,30,30*ua],[o,1,lr],[o,5,5*lr],[o,15,15*lr],[o,30,30*lr],[l,1,ca],[l,3,3*ca],[l,6,6*ca],[l,12,12*ca],[r,1,pa],[r,2,2*pa],[n,1,E0],[t,1,jO],[t,3,3*jO],[e,1,ly]];function f(h,p,y){const b=p<h;b&&([h,p]=[p,h]);const w=y&&typeof y.range=="function"?y:d(h,p,y),S=w?w.range(h,+p+1):[];return b?S.reverse():S}function d(h,p,y){const b=Math.abs(p-h)/y,w=p0(([,,_])=>_).right(u,b);if(w===u.length)return e.every(hg(h/ly,p/ly,y));if(w===0)return od.every(Math.max(hg(h,p,y),1));const[S,j]=u[b/u[w-1][2]<u[w][2]/b?w-1:w];return S.every(j)}return[f,d]}const[M$,D$]=hT(ya,P0,th,dT,D0,T0),[k$,P$]=hT(va,k0,eh,gu,M0,C0);function oy(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 sy(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 Ms(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function R$(e){var t=e.dateTime,n=e.date,r=e.time,l=e.periods,o=e.days,u=e.shortDays,f=e.months,d=e.shortMonths,h=Ds(l),p=ks(l),y=Ds(o),b=ks(o),w=Ds(u),S=ks(u),j=Ds(f),_=ks(f),A=Ds(d),N=ks(d),C={a:Q,A:se,b:de,B,c:null,d:CO,e:CO,f:a9,g:m9,G:v9,H:t9,I:n9,j:r9,L:mT,m:i9,M:l9,p:M,q,Q:DO,s:kO,S:o9,u:s9,U:u9,V:c9,w:f9,W:d9,x:null,X:null,y:h9,Y:p9,Z:y9,"%":MO},D={a:ie,A:ue,b:me,B:ge,c:null,d:TO,e:TO,f:w9,g:M9,G:k9,H:g9,I:b9,j:x9,L:vT,m:S9,M:j9,p:Se,q:Ie,Q:DO,s:kO,S:_9,u:O9,U:A9,V:N9,w:E9,W:C9,x:null,X:null,y:T9,Y:D9,Z:P9,"%":MO},k={a:Z,A:te,b:R,B:ce,c:le,d:NO,e:NO,f:W$,g:AO,G:OO,H:EO,I:EO,j:G$,L:Z$,m:Y$,M:V$,p:X,q:K$,Q:J$,s:e9,S:X$,u:$$,U:U$,V:q$,w:I$,W:H$,x:fe,X:U,y:AO,Y:OO,Z:F$,"%":Q$};C.x=T(n,C),C.X=T(r,C),C.c=T(t,C),D.x=T(n,D),D.X=T(r,D),D.c=T(t,D);function T(J,xe){return function(_e){var oe=[],De=-1,H=0,Oe=J.length,Ke,Ut,jr;for(_e instanceof Date||(_e=new Date(+_e));++De<Oe;)J.charCodeAt(De)===37&&(oe.push(J.slice(H,De)),(Ut=_O[Ke=J.charAt(++De)])!=null?Ke=J.charAt(++De):Ut=Ke==="e"?" ":"0",(jr=xe[Ke])&&(Ke=jr(_e,Ut)),oe.push(Ke),H=De+1);return oe.push(J.slice(H,De)),oe.join("")}}function P(J,xe){return function(_e){var oe=Ms(1900,void 0,1),De=$(oe,J,_e+="",0),H,Oe;if(De!=_e.length)return null;if("Q"in oe)return new Date(oe.Q);if("s"in oe)return new Date(oe.s*1e3+("L"in oe?oe.L:0));if(xe&&!("Z"in oe)&&(oe.Z=0),"p"in oe&&(oe.H=oe.H%12+oe.p*12),oe.m===void 0&&(oe.m="q"in oe?oe.q:0),"V"in oe){if(oe.V<1||oe.V>53)return null;"w"in oe||(oe.w=1),"Z"in oe?(H=sy(Ms(oe.y,0,1)),Oe=H.getUTCDay(),H=Oe>4||Oe===0?ud.ceil(H):ud(H),H=Jd.offset(H,(oe.V-1)*7),oe.y=H.getUTCFullYear(),oe.m=H.getUTCMonth(),oe.d=H.getUTCDate()+(oe.w+6)%7):(H=oy(Ms(oe.y,0,1)),Oe=H.getDay(),H=Oe>4||Oe===0?sd.ceil(H):sd(H),H=gu.offset(H,(oe.V-1)*7),oe.y=H.getFullYear(),oe.m=H.getMonth(),oe.d=H.getDate()+(oe.w+6)%7)}else("W"in oe||"U"in oe)&&("w"in oe||(oe.w="u"in oe?oe.u%7:"W"in oe?1:0),Oe="Z"in oe?sy(Ms(oe.y,0,1)).getUTCDay():oy(Ms(oe.y,0,1)).getDay(),oe.m=0,oe.d="W"in oe?(oe.w+6)%7+oe.W*7-(Oe+5)%7:oe.w+oe.U*7-(Oe+6)%7);return"Z"in oe?(oe.H+=oe.Z/100|0,oe.M+=oe.Z%100,sy(oe)):oy(oe)}}function $(J,xe,_e,oe){for(var De=0,H=xe.length,Oe=_e.length,Ke,Ut;De<H;){if(oe>=Oe)return-1;if(Ke=xe.charCodeAt(De++),Ke===37){if(Ke=xe.charAt(De++),Ut=k[Ke in _O?xe.charAt(De++):Ke],!Ut||(oe=Ut(J,_e,oe))<0)return-1}else if(Ke!=_e.charCodeAt(oe++))return-1}return oe}function X(J,xe,_e){var oe=h.exec(xe.slice(_e));return oe?(J.p=p.get(oe[0].toLowerCase()),_e+oe[0].length):-1}function Z(J,xe,_e){var oe=w.exec(xe.slice(_e));return oe?(J.w=S.get(oe[0].toLowerCase()),_e+oe[0].length):-1}function te(J,xe,_e){var oe=y.exec(xe.slice(_e));return oe?(J.w=b.get(oe[0].toLowerCase()),_e+oe[0].length):-1}function R(J,xe,_e){var oe=A.exec(xe.slice(_e));return oe?(J.m=N.get(oe[0].toLowerCase()),_e+oe[0].length):-1}function ce(J,xe,_e){var oe=j.exec(xe.slice(_e));return oe?(J.m=_.get(oe[0].toLowerCase()),_e+oe[0].length):-1}function le(J,xe,_e){return $(J,t,xe,_e)}function fe(J,xe,_e){return $(J,n,xe,_e)}function U(J,xe,_e){return $(J,r,xe,_e)}function Q(J){return u[J.getDay()]}function se(J){return o[J.getDay()]}function de(J){return d[J.getMonth()]}function B(J){return f[J.getMonth()]}function M(J){return l[+(J.getHours()>=12)]}function q(J){return 1+~~(J.getMonth()/3)}function ie(J){return u[J.getUTCDay()]}function ue(J){return o[J.getUTCDay()]}function me(J){return d[J.getUTCMonth()]}function ge(J){return f[J.getUTCMonth()]}function Se(J){return l[+(J.getUTCHours()>=12)]}function Ie(J){return 1+~~(J.getUTCMonth()/3)}return{format:function(J){var xe=T(J+="",C);return xe.toString=function(){return J},xe},parse:function(J){var xe=P(J+="",!1);return xe.toString=function(){return J},xe},utcFormat:function(J){var xe=T(J+="",D);return xe.toString=function(){return J},xe},utcParse:function(J){var xe=P(J+="",!0);return xe.toString=function(){return J},xe}}}var _O={"-":"",_:" ",0:"0"},Xt=/^\s*\d+/,z$=/^%/,L$=/[\\^$*+?|[\]().{}]/g;function He(e,t,n){var r=e<0?"-":"",l=(r?-e:e)+"",o=l.length;return r+(o<n?new Array(n-o+1).join(t)+l:l)}function B$(e){return e.replace(L$,"\\$&")}function Ds(e){return new RegExp("^(?:"+e.map(B$).join("|")+")","i")}function ks(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function I$(e,t,n){var r=Xt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function $$(e,t,n){var r=Xt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function U$(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function q$(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function H$(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function OO(e,t,n){var r=Xt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function AO(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function F$(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 K$(e,t,n){var r=Xt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Y$(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function NO(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function G$(e,t,n){var r=Xt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function EO(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function V$(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function X$(e,t,n){var r=Xt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Z$(e,t,n){var r=Xt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function W$(e,t,n){var r=Xt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Q$(e,t,n){var r=z$.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function J$(e,t,n){var r=Xt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function e9(e,t,n){var r=Xt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function CO(e,t){return He(e.getDate(),t,2)}function t9(e,t){return He(e.getHours(),t,2)}function n9(e,t){return He(e.getHours()%12||12,t,2)}function r9(e,t){return He(1+gu.count(va(e),e),t,3)}function mT(e,t){return He(e.getMilliseconds(),t,3)}function a9(e,t){return mT(e,t)+"000"}function i9(e,t){return He(e.getMonth()+1,t,2)}function l9(e,t){return He(e.getMinutes(),t,2)}function o9(e,t){return He(e.getSeconds(),t,2)}function s9(e){var t=e.getDay();return t===0?7:t}function u9(e,t){return He(eh.count(va(e)-1,e),t,2)}function pT(e){var t=e.getDay();return t>=4||t===0?mo(e):mo.ceil(e)}function c9(e,t){return e=pT(e),He(mo.count(va(e),e)+(va(e).getDay()===4),t,2)}function f9(e){return e.getDay()}function d9(e,t){return He(sd.count(va(e)-1,e),t,2)}function h9(e,t){return He(e.getFullYear()%100,t,2)}function m9(e,t){return e=pT(e),He(e.getFullYear()%100,t,2)}function p9(e,t){return He(e.getFullYear()%1e4,t,4)}function v9(e,t){var n=e.getDay();return e=n>=4||n===0?mo(e):mo.ceil(e),He(e.getFullYear()%1e4,t,4)}function y9(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+He(t/60|0,"0",2)+He(t%60,"0",2)}function TO(e,t){return He(e.getUTCDate(),t,2)}function g9(e,t){return He(e.getUTCHours(),t,2)}function b9(e,t){return He(e.getUTCHours()%12||12,t,2)}function x9(e,t){return He(1+Jd.count(ya(e),e),t,3)}function vT(e,t){return He(e.getUTCMilliseconds(),t,3)}function w9(e,t){return vT(e,t)+"000"}function S9(e,t){return He(e.getUTCMonth()+1,t,2)}function j9(e,t){return He(e.getUTCMinutes(),t,2)}function _9(e,t){return He(e.getUTCSeconds(),t,2)}function O9(e){var t=e.getUTCDay();return t===0?7:t}function A9(e,t){return He(th.count(ya(e)-1,e),t,2)}function yT(e){var t=e.getUTCDay();return t>=4||t===0?po(e):po.ceil(e)}function N9(e,t){return e=yT(e),He(po.count(ya(e),e)+(ya(e).getUTCDay()===4),t,2)}function E9(e){return e.getUTCDay()}function C9(e,t){return He(ud.count(ya(e)-1,e),t,2)}function T9(e,t){return He(e.getUTCFullYear()%100,t,2)}function M9(e,t){return e=yT(e),He(e.getUTCFullYear()%100,t,2)}function D9(e,t){return He(e.getUTCFullYear()%1e4,t,4)}function k9(e,t){var n=e.getUTCDay();return e=n>=4||n===0?po(e):po.ceil(e),He(e.getUTCFullYear()%1e4,t,4)}function P9(){return"+0000"}function MO(){return"%"}function DO(e){return+e}function kO(e){return Math.floor(+e/1e3)}var Xl,gT,bT;R9({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 R9(e){return Xl=R$(e),gT=Xl.format,Xl.parse,bT=Xl.utcFormat,Xl.utcParse,Xl}function z9(e){return new Date(e)}function L9(e){return e instanceof Date?+e:+new Date(+e)}function R0(e,t,n,r,l,o,u,f,d,h){var p=w0(),y=p.invert,b=p.domain,w=h(".%L"),S=h(":%S"),j=h("%I:%M"),_=h("%I %p"),A=h("%a %d"),N=h("%b %d"),C=h("%B"),D=h("%Y");function k(T){return(d(T)<T?w:f(T)<T?S:u(T)<T?j:o(T)<T?_:r(T)<T?l(T)<T?A:N:n(T)<T?C:D)(T)}return p.invert=function(T){return new Date(y(T))},p.domain=function(T){return arguments.length?b(Array.from(T,L9)):b().map(z9)},p.ticks=function(T){var P=b();return e(P[0],P[P.length-1],T??10)},p.tickFormat=function(T,P){return P==null?k:h(P)},p.nice=function(T){var P=b();return(!T||typeof T.range!="function")&&(T=t(P[0],P[P.length-1],T??10)),T?b(iT(P,T)):p},p.copy=function(){return yu(p,R0(e,t,n,r,l,o,u,f,d,h))},p}function B9(){return fr.apply(R0(k$,P$,va,k0,eh,gu,M0,C0,Ui,gT).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function I9(){return fr.apply(R0(M$,D$,ya,P0,th,Jd,D0,T0,Ui,bT).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function nh(){var e=0,t=1,n,r,l,o,u=mn,f=!1,d;function h(y){return y==null||isNaN(y=+y)?d:u(l===0?.5:(y=(o(y)-n)*l,f?Math.max(0,Math.min(1,y)):y))}h.domain=function(y){return arguments.length?([e,t]=y,n=o(e=+e),r=o(t=+t),l=n===r?0:1/(r-n),h):[e,t]},h.clamp=function(y){return arguments.length?(f=!!y,h):f},h.interpolator=function(y){return arguments.length?(u=y,h):u};function p(y){return function(b){var w,S;return arguments.length?([w,S]=b,u=y(w,S),h):[u(0),u(1)]}}return h.range=p(wo),h.rangeRound=p(x0),h.unknown=function(y){return arguments.length?(d=y,h):d},function(y){return o=y,n=y(e),r=y(t),l=n===r?0:1/(r-n),h}}function hi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function xT(){var e=di(nh()(mn));return e.copy=function(){return hi(e,xT())},ja.apply(e,arguments)}function wT(){var e=_0(nh()).domain([1,10]);return e.copy=function(){return hi(e,wT()).base(e.base())},ja.apply(e,arguments)}function ST(){var e=O0(nh());return e.copy=function(){return hi(e,ST()).constant(e.constant())},ja.apply(e,arguments)}function z0(){var e=A0(nh());return e.copy=function(){return hi(e,z0()).exponent(e.exponent())},ja.apply(e,arguments)}function $9(){return z0.apply(null,arguments).exponent(.5)}function jT(){var e=[],t=mn;function n(r){if(r!=null&&!isNaN(r=+r))return t((pu(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let l of r)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(li),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,l)=>t(l/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(l,o)=>OI(e,o/r))},n.copy=function(){return jT(t).domain(e)},ja.apply(n,arguments)}function rh(){var e=0,t=.5,n=1,r=1,l,o,u,f,d,h=mn,p,y=!1,b;function w(j){return isNaN(j=+j)?b:(j=.5+((j=+p(j))-o)*(r*j<r*o?f:d),h(y?Math.max(0,Math.min(1,j)):j))}w.domain=function(j){return arguments.length?([e,t,n]=j,l=p(e=+e),o=p(t=+t),u=p(n=+n),f=l===o?0:.5/(o-l),d=o===u?0:.5/(u-o),r=o<l?-1:1,w):[e,t,n]},w.clamp=function(j){return arguments.length?(y=!!j,w):y},w.interpolator=function(j){return arguments.length?(h=j,w):h};function S(j){return function(_){var A,N,C;return arguments.length?([A,N,C]=_,h=QI(j,[A,N,C]),w):[h(0),h(.5),h(1)]}}return w.range=S(wo),w.rangeRound=S(x0),w.unknown=function(j){return arguments.length?(b=j,w):b},function(j){return p=j,l=j(e),o=j(t),u=j(n),f=l===o?0:.5/(o-l),d=o===u?0:.5/(u-o),r=o<l?-1:1,w}}function _T(){var e=di(rh()(mn));return e.copy=function(){return hi(e,_T())},ja.apply(e,arguments)}function OT(){var e=_0(rh()).domain([.1,1,10]);return e.copy=function(){return hi(e,OT()).base(e.base())},ja.apply(e,arguments)}function AT(){var e=O0(rh());return e.copy=function(){return hi(e,AT()).constant(e.constant())},ja.apply(e,arguments)}function L0(){var e=A0(rh());return e.copy=function(){return hi(e,L0()).exponent(e.exponent())},ja.apply(e,arguments)}function U9(){return L0.apply(null,arguments).exponent(.5)}const zs=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:y0,scaleDiverging:_T,scaleDivergingLog:OT,scaleDivergingPow:L0,scaleDivergingSqrt:U9,scaleDivergingSymlog:AT,scaleIdentity:aT,scaleImplicit:mg,scaleLinear:rT,scaleLog:lT,scaleOrdinal:v0,scalePoint:EI,scalePow:N0,scaleQuantile:uT,scaleQuantize:cT,scaleRadial:sT,scaleSequential:xT,scaleSequentialLog:wT,scaleSequentialPow:z0,scaleSequentialQuantile:jT,scaleSequentialSqrt:$9,scaleSequentialSymlog:ST,scaleSqrt:w$,scaleSymlog:oT,scaleThreshold:fT,scaleTime:B9,scaleUtc:I9,tickFormat:nT},Symbol.toStringTag,{value:"Module"}));var _a=e=>e.chartData,ah=Y([_a],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),NT=(e,t,n,r)=>r?ah(e):_a(e),ET=(e,t,n)=>n?ah(e):_a(e);function oi(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(rt(t)&&rt(n))return!0}return!1}function PO(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function CT(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,l,o;if(rt(n))l=n;else if(typeof n=="function")return;if(rt(r))o=r;else if(typeof r=="function")return;var u=[l,o];if(oi(u))return u}}function q9(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(oi(r))return PO(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[l,o]=e,u,f;if(l==="auto")t!=null&&(u=Math.min(...t));else if(he(l))u=l;else if(typeof l=="function")try{t!=null&&(u=l(t==null?void 0:t[0]))}catch{}else if(typeof l=="string"&&Kj.test(l)){var d=Kj.exec(l);if(d==null||d[1]==null||t==null)u=void 0;else{var h=+d[1];u=t[0]-h}}else u=t==null?void 0:t[0];if(o==="auto")t!=null&&(f=Math.max(...t));else if(he(o))f=o;else if(typeof o=="function")try{t!=null&&(f=o(t==null?void 0:t[1]))}catch{}else if(typeof o=="string"&&Yj.test(o)){var p=Yj.exec(o);if(p==null||p[1]==null||t==null)f=void 0;else{var y=+p[1];f=t[1]+y}}else f=t==null?void 0:t[1];var b=[u,f];if(oi(b))return t==null?b:PO(b,t,n)}}}var So=1e9,H9={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},I0,dt=!0,ur="[DecimalError] ",Gi=ur+"Invalid argument: ",B0=ur+"Exponent out of range: ",jo=Math.floor,zi=Math.pow,F9=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Un,Yt=1e7,st=7,TT=9007199254740991,cd=jo(TT/st),pe={};pe.absoluteValue=pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};pe.comparedTo=pe.cmp=function(e){var t,n,r,l,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,l=e.d.length,t=0,n=r<l?r:l;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===l?0:r>l^o.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*st;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};pe.dividedBy=pe.div=function(e){return fa(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,n=t.constructor;return nt(fa(t,new n(e),0,1),n.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return kt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,n=this,r=n.constructor,l=r.precision,o=l+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Un))throw Error(ur+"NaN");if(n.s<1)throw Error(ur+(n.s?"NaN":"-Infinity"));return n.eq(Un)?new r(0):(dt=!1,t=fa(Ws(n,o),Ws(e,o),o),dt=!0,nt(t,l))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kT(t,e):MT(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,n=this,r=n.constructor,l=r.precision;if(e=new r(e),!e.s)throw Error(ur+"NaN");return n.s?(dt=!1,t=fa(n,e,0,1).times(e),dt=!0,n.minus(t)):nt(new r(n),l)};pe.naturalExponential=pe.exp=function(){return DT(this)};pe.naturalLogarithm=pe.ln=function(){return Ws(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?MT(t,e):kT(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,n,r,l=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Gi+e);if(t=kt(l)+1,r=l.d.length-1,n=r*st+1,r=l.d[r],r){for(;r%10==0;r/=10)n--;for(r=l.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};pe.squareRoot=pe.sqrt=function(){var e,t,n,r,l,o,u,f=this,d=f.constructor;if(f.s<1){if(!f.s)return new d(0);throw Error(ur+"NaN")}for(e=kt(f),dt=!1,l=Math.sqrt(+f),l==0||l==1/0?(t=Mr(f.d),(t.length+e)%2==0&&(t+="0"),l=Math.sqrt(t),e=jo((e+1)/2)-(e<0||e%2),l==1/0?t="5e"+e:(t=l.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new d(t)):r=new d(l.toString()),n=d.precision,l=u=n+3;;)if(o=r,r=o.plus(fa(f,o,u+2)).times(.5),Mr(o.d).slice(0,u)===(t=Mr(r.d)).slice(0,u)){if(t=t.slice(u-3,u+1),l==u&&t=="4999"){if(nt(o,n+1,0),o.times(o).eq(f)){r=o;break}}else if(t!="9999")break;u+=4}return dt=!0,nt(r,n)};pe.times=pe.mul=function(e){var t,n,r,l,o,u,f,d,h,p=this,y=p.constructor,b=p.d,w=(e=new y(e)).d;if(!p.s||!e.s)return new y(0);for(e.s*=p.s,n=p.e+e.e,d=b.length,h=w.length,d<h&&(o=b,b=w,w=o,u=d,d=h,h=u),o=[],u=d+h,r=u;r--;)o.push(0);for(r=h;--r>=0;){for(t=0,l=d+r;l>r;)f=o[l]+w[r]*b[l-r-1]+t,o[l--]=f%Yt|0,t=f/Yt|0;o[l]=(o[l]+t)%Yt|0}for(;!o[--u];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,dt?nt(e,y.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Rr(e,0,So),t===void 0?t=r.rounding:Rr(t,0,8),nt(n,e+kt(n)+1,t))};pe.toExponential=function(e,t){var n,r=this,l=r.constructor;return e===void 0?n=rl(r,!0):(Rr(e,0,So),t===void 0?t=l.rounding:Rr(t,0,8),r=nt(new l(r),e+1,t),n=rl(r,!0,e+1)),n};pe.toFixed=function(e,t){var n,r,l=this,o=l.constructor;return e===void 0?rl(l):(Rr(e,0,So),t===void 0?t=o.rounding:Rr(t,0,8),r=nt(new o(l),e+kt(l)+1,t),n=rl(r.abs(),!1,e+kt(r)+1),l.isneg()&&!l.isZero()?"-"+n:n)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return nt(new t(e),kt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,n,r,l,o,u,f=this,d=f.constructor,h=12,p=+(e=new d(e));if(!e.s)return new d(Un);if(f=new d(f),!f.s){if(e.s<1)throw Error(ur+"Infinity");return f}if(f.eq(Un))return f;if(r=d.precision,e.eq(Un))return nt(f,r);if(t=e.e,n=e.d.length-1,u=t>=n,o=f.s,u){if((n=p<0?-p:p)<=TT){for(l=new d(Un),t=Math.ceil(r/st+4),dt=!1;n%2&&(l=l.times(f),zO(l.d,t)),n=jo(n/2),n!==0;)f=f.times(f),zO(f.d,t);return dt=!0,e.s<0?new d(Un).div(l):nt(l,r)}}else if(o<0)throw Error(ur+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,f.s=1,dt=!1,l=e.times(Ws(f,r+h)),dt=!0,l=DT(l),l.s=o,l};pe.toPrecision=function(e,t){var n,r,l=this,o=l.constructor;return e===void 0?(n=kt(l),r=rl(l,n<=o.toExpNeg||n>=o.toExpPos)):(Rr(e,1,So),t===void 0?t=o.rounding:Rr(t,0,8),l=nt(new o(l),e,t),n=kt(l),r=rl(l,e<=n||n<=o.toExpNeg,e)),r};pe.toSignificantDigits=pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Rr(e,1,So),t===void 0?t=r.rounding:Rr(t,0,8)),nt(new r(n),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=kt(e),n=e.constructor;return rl(e,t<=n.toExpNeg||t>=n.toExpPos)};function MT(e,t){var n,r,l,o,u,f,d,h,p=e.constructor,y=p.precision;if(!e.s||!t.s)return t.s||(t=new p(e)),dt?nt(t,y):t;if(d=e.d,h=t.d,u=e.e,l=t.e,d=d.slice(),o=u-l,o){for(o<0?(r=d,o=-o,f=h.length):(r=h,l=u,f=d.length),u=Math.ceil(y/st),f=u>f?u+1:f+1,o>f&&(o=f,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(f=d.length,o=h.length,f-o<0&&(o=f,r=h,h=d,d=r),n=0;o;)n=(d[--o]=d[o]+h[o]+n)/Yt|0,d[o]%=Yt;for(n&&(d.unshift(n),++l),f=d.length;d[--f]==0;)d.pop();return t.d=d,t.e=l,dt?nt(t,y):t}function Rr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Gi+e)}function Mr(e){var t,n,r,l=e.length-1,o="",u=e[0];if(l>0){for(o+=u,t=1;t<l;t++)r=e[t]+"",n=st-r.length,n&&(o+=ei(n)),o+=r;u=e[t],r=u+"",n=st-r.length,n&&(o+=ei(n))}else if(u===0)return"0";for(;u%10===0;)u/=10;return o+u}var fa=(function(){function e(r,l){var o,u=0,f=r.length;for(r=r.slice();f--;)o=r[f]*l+u,r[f]=o%Yt|0,u=o/Yt|0;return u&&r.unshift(u),r}function t(r,l,o,u){var f,d;if(o!=u)d=o>u?1:-1;else for(f=d=0;f<o;f++)if(r[f]!=l[f]){d=r[f]>l[f]?1:-1;break}return d}function n(r,l,o){for(var u=0;o--;)r[o]-=u,u=r[o]<l[o]?1:0,r[o]=u*Yt+r[o]-l[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,l,o,u){var f,d,h,p,y,b,w,S,j,_,A,N,C,D,k,T,P,$,X=r.constructor,Z=r.s==l.s?1:-1,te=r.d,R=l.d;if(!r.s)return new X(r);if(!l.s)throw Error(ur+"Division by zero");for(d=r.e-l.e,P=R.length,k=te.length,w=new X(Z),S=w.d=[],h=0;R[h]==(te[h]||0);)++h;if(R[h]>(te[h]||0)&&--d,o==null?N=o=X.precision:u?N=o+(kt(r)-kt(l))+1:N=o,N<0)return new X(0);if(N=N/st+2|0,h=0,P==1)for(p=0,R=R[0],N++;(h<k||p)&&N--;h++)C=p*Yt+(te[h]||0),S[h]=C/R|0,p=C%R|0;else{for(p=Yt/(R[0]+1)|0,p>1&&(R=e(R,p),te=e(te,p),P=R.length,k=te.length),D=P,j=te.slice(0,P),_=j.length;_<P;)j[_++]=0;$=R.slice(),$.unshift(0),T=R[0],R[1]>=Yt/2&&++T;do p=0,f=t(R,j,P,_),f<0?(A=j[0],P!=_&&(A=A*Yt+(j[1]||0)),p=A/T|0,p>1?(p>=Yt&&(p=Yt-1),y=e(R,p),b=y.length,_=j.length,f=t(y,j,b,_),f==1&&(p--,n(y,P<b?$:R,b))):(p==0&&(f=p=1),y=R.slice()),b=y.length,b<_&&y.unshift(0),n(j,y,_),f==-1&&(_=j.length,f=t(R,j,P,_),f<1&&(p++,n(j,P<_?$:R,_))),_=j.length):f===0&&(p++,j=[0]),S[h++]=p,f&&j[0]?j[_++]=te[D]||0:(j=[te[D]],_=1);while((D++<k||j[0]!==void 0)&&N--)}return S[0]||S.shift(),w.e=d,nt(w,u?o+kt(w)+1:o)}})();function DT(e,t){var n,r,l,o,u,f,d=0,h=0,p=e.constructor,y=p.precision;if(kt(e)>16)throw Error(B0+kt(e));if(!e.s)return new p(Un);for(dt=!1,f=y,u=new p(.03125);e.abs().gte(.1);)e=e.times(u),h+=5;for(r=Math.log(zi(2,h))/Math.LN10*2+5|0,f+=r,n=l=o=new p(Un),p.precision=f;;){if(l=nt(l.times(e),f),n=n.times(++d),u=o.plus(fa(l,n,f)),Mr(u.d).slice(0,f)===Mr(o.d).slice(0,f)){for(;h--;)o=nt(o.times(o),f);return p.precision=y,t==null?(dt=!0,nt(o,y)):o}o=u}}function kt(e){for(var t=e.e*st,n=e.d[0];n>=10;n/=10)t++;return t}function uy(e,t,n){if(t>e.LN10.sd())throw dt=!0,n&&(e.precision=n),Error(ur+"LN10 precision limit exceeded");return nt(new e(e.LN10),t)}function ei(e){for(var t="";e--;)t+="0";return t}function Ws(e,t){var n,r,l,o,u,f,d,h,p,y=1,b=10,w=e,S=w.d,j=w.constructor,_=j.precision;if(w.s<1)throw Error(ur+(w.s?"NaN":"-Infinity"));if(w.eq(Un))return new j(0);if(t==null?(dt=!1,h=_):h=t,w.eq(10))return t==null&&(dt=!0),uy(j,h);if(h+=b,j.precision=h,n=Mr(S),r=n.charAt(0),o=kt(w),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)w=w.times(e),n=Mr(w.d),r=n.charAt(0),y++;o=kt(w),r>1?(w=new j("0."+n),o++):w=new j(r+"."+n.slice(1))}else return d=uy(j,h+2,_).times(o+""),w=Ws(new j(r+"."+n.slice(1)),h-b).plus(d),j.precision=_,t==null?(dt=!0,nt(w,_)):w;for(f=u=w=fa(w.minus(Un),w.plus(Un),h),p=nt(w.times(w),h),l=3;;){if(u=nt(u.times(p),h),d=f.plus(fa(u,new j(l),h)),Mr(d.d).slice(0,h)===Mr(f.d).slice(0,h))return f=f.times(2),o!==0&&(f=f.plus(uy(j,h+2,_).times(o+""))),f=fa(f,new j(y),h),j.precision=_,t==null?(dt=!0,nt(f,_)):f;f=d,l+=2}}function RO(e,t){var n,r,l;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(l=t.length;t.charCodeAt(l-1)===48;)--l;if(t=t.slice(r,l),t){if(l-=r,n=n-r-1,e.e=jo(n/st),e.d=[],r=(n+1)%st,n<0&&(r+=st),r<l){for(r&&e.d.push(+t.slice(0,r)),l-=st;r<l;)e.d.push(+t.slice(r,r+=st));t=t.slice(r),r=st-t.length}else r-=l;for(;r--;)t+="0";if(e.d.push(+t),dt&&(e.e>cd||e.e<-cd))throw Error(B0+n)}else e.s=0,e.e=0,e.d=[0];return e}function nt(e,t,n){var r,l,o,u,f,d,h,p,y=e.d;for(u=1,o=y[0];o>=10;o/=10)u++;if(r=t-u,r<0)r+=st,l=t,h=y[p=0];else{if(p=Math.ceil((r+1)/st),o=y.length,p>=o)return e;for(h=o=y[p],u=1;o>=10;o/=10)u++;r%=st,l=r-st+u}if(n!==void 0&&(o=zi(10,u-l-1),f=h/o%10|0,d=t<0||y[p+1]!==void 0||h%o,d=n<4?(f||d)&&(n==0||n==(e.s<0?3:2)):f>5||f==5&&(n==4||d||n==6&&(r>0?l>0?h/zi(10,u-l):0:y[p-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return d?(o=kt(e),y.length=1,t=t-o-1,y[0]=zi(10,(st-t%st)%st),e.e=jo(-t/st)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(r==0?(y.length=p,o=1,p--):(y.length=p+1,o=zi(10,st-r),y[p]=l>0?(h/zi(10,u-l)%zi(10,l)|0)*o:0),d)for(;;)if(p==0){(y[0]+=o)==Yt&&(y[0]=1,++e.e);break}else{if(y[p]+=o,y[p]!=Yt)break;y[p--]=0,o=1}for(r=y.length;y[--r]===0;)y.pop();if(dt&&(e.e>cd||e.e<-cd))throw Error(B0+kt(e));return e}function kT(e,t){var n,r,l,o,u,f,d,h,p,y,b=e.constructor,w=b.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new b(e),dt?nt(t,w):t;if(d=e.d,y=t.d,r=t.e,h=e.e,d=d.slice(),u=h-r,u){for(p=u<0,p?(n=d,u=-u,f=y.length):(n=y,r=h,f=d.length),l=Math.max(Math.ceil(w/st),f)+2,u>l&&(u=l,n.length=1),n.reverse(),l=u;l--;)n.push(0);n.reverse()}else{for(l=d.length,f=y.length,p=l<f,p&&(f=l),l=0;l<f;l++)if(d[l]!=y[l]){p=d[l]<y[l];break}u=0}for(p&&(n=d,d=y,y=n,t.s=-t.s),f=d.length,l=y.length-f;l>0;--l)d[f++]=0;for(l=y.length;l>u;){if(d[--l]<y[l]){for(o=l;o&&d[--o]===0;)d[o]=Yt-1;--d[o],d[l]+=Yt}d[l]-=y[l]}for(;d[--f]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,dt?nt(t,w):t):new b(0)}function rl(e,t,n){var r,l=kt(e),o=Mr(e.d),u=o.length;return t?(n&&(r=n-u)>0?o=o.charAt(0)+"."+o.slice(1)+ei(r):u>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(l<0?"e":"e+")+l):l<0?(o="0."+ei(-l-1)+o,n&&(r=n-u)>0&&(o+=ei(r))):l>=u?(o+=ei(l+1-u),n&&(r=n-l-1)>0&&(o=o+"."+ei(r))):((r=l+1)<u&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-u)>0&&(l+1===u&&(o+="."),o+=ei(r))),e.s<0?"-"+o:o}function zO(e,t){if(e.length>t)return e.length=t,!0}function PT(e){var t,n,r;function l(o){var u=this;if(!(u instanceof l))return new l(o);if(u.constructor=l,o instanceof l){u.s=o.s,u.e=o.e,u.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Gi+o);if(o>0)u.s=1;else if(o<0)o=-o,u.s=-1;else{u.s=0,u.e=0,u.d=[0];return}if(o===~~o&&o<1e7){u.e=0,u.d=[o];return}return RO(u,o.toString())}else if(typeof o!="string")throw Error(Gi+o);if(o.charCodeAt(0)===45?(o=o.slice(1),u.s=-1):u.s=1,F9.test(o))RO(u,o);else throw Error(Gi+o)}if(l.prototype=pe,l.ROUND_UP=0,l.ROUND_DOWN=1,l.ROUND_CEIL=2,l.ROUND_FLOOR=3,l.ROUND_HALF_UP=4,l.ROUND_HALF_DOWN=5,l.ROUND_HALF_EVEN=6,l.ROUND_HALF_CEIL=7,l.ROUND_HALF_FLOOR=8,l.clone=PT,l.config=l.set=K9,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 l.config(e),l}function K9(e){if(!e||typeof e!="object")throw Error(ur+"Object expected");var t,n,r,l=["precision",1,So,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<l.length;t+=3)if((r=e[n=l[t]])!==void 0)if(jo(r)===r&&r>=l[t+1]&&r<=l[t+2])this[n]=r;else throw Error(Gi+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Gi+n+": "+r);return this}var I0=PT(H9);Un=new I0(1);const Xe=I0;var Y9=e=>e,RT={},zT=e=>e===RT,LO=e=>function t(){return arguments.length===0||arguments.length===1&&zT(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},LT=(e,t)=>e===1?t:LO(function(){for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];var o=r.filter(u=>u!==RT).length;return o>=e?t(...r):LT(e-o,LO(function(){for(var u=arguments.length,f=new Array(u),d=0;d<u;d++)f[d]=arguments[d];var h=r.map(p=>zT(p)?f.shift():p);return t(...h,...f)}))}),G9=e=>LT(e.length,e),gg=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},V9=G9((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),X9=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Y9;var l=n.reverse(),o=l[0],u=l.slice(1);return function(){return u.reduce((f,d)=>d(f),o(...arguments))}};function BT(e){var t;return e===0?t=1:t=Math.floor(new Xe(e).abs().log(10).toNumber())+1,t}function IT(e,t,n){for(var r=new Xe(e),l=0,o=[];r.lt(t)&&l<1e5;)o.push(r.toNumber()),r=r.add(n),l++;return o}var $T=e=>{var[t,n]=e,[r,l]=[t,n];return t>n&&([r,l]=[n,t]),[r,l]},UT=(e,t,n)=>{if(e.lte(0))return new Xe(0);var r=BT(e.toNumber()),l=new Xe(10).pow(r),o=e.div(l),u=r!==1?.05:.1,f=new Xe(Math.ceil(o.div(u).toNumber())).add(n).mul(u),d=f.mul(l);return t?new Xe(d.toNumber()):new Xe(Math.ceil(d.toNumber()))},Z9=(e,t,n)=>{var r=new Xe(1),l=new Xe(e);if(!l.isint()&&n){var o=Math.abs(e);o<1?(r=new Xe(10).pow(BT(e)-1),l=new Xe(Math.floor(l.div(r).toNumber())).mul(r)):o>1&&(l=new Xe(Math.floor(e)))}else e===0?l=new Xe(Math.floor((t-1)/2)):n||(l=new Xe(Math.floor(e)));var u=Math.floor((t-1)/2),f=X9(V9(d=>l.add(new Xe(d-u).mul(r)).toNumber()),gg);return f(0,t)},qT=function(t,n,r,l){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Xe(0),tickMin:new Xe(0),tickMax:new Xe(0)};var u=UT(new Xe(n).sub(t).div(r-1),l,o),f;t<=0&&n>=0?f=new Xe(0):(f=new Xe(t).add(n).div(2),f=f.sub(new Xe(f).mod(u)));var d=Math.ceil(f.sub(t).div(u).toNumber()),h=Math.ceil(new Xe(n).sub(f).div(u).toNumber()),p=d+h+1;return p>r?qT(t,n,r,l,o+1):(p<r&&(h=n>0?h+(r-p):h,d=n>0?d:d+(r-p)),{step:u,tickMin:f.sub(new Xe(d).mul(u)),tickMax:f.add(new Xe(h).mul(u))})},W9=function(t){var[n,r]=t,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,u=Math.max(l,2),[f,d]=$T([n,r]);if(f===-1/0||d===1/0){var h=d===1/0?[f,...gg(0,l-1).map(()=>1/0)]:[...gg(0,l-1).map(()=>-1/0),d];return n>r?h.reverse():h}if(f===d)return Z9(f,l,o);var{step:p,tickMin:y,tickMax:b}=qT(f,d,u,o,0),w=IT(y,b.add(new Xe(.1).mul(p)),p);return n>r?w.reverse():w},Q9=function(t,n){var[r,l]=t,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[u,f]=$T([r,l]);if(u===-1/0||f===1/0)return[r,l];if(u===f)return[u];var d=Math.max(n,2),h=UT(new Xe(f).sub(u).div(d-1),o,0),p=[...IT(new Xe(u),new Xe(f),h),f];return o===!1&&(p=p.map(y=>Math.round(y))),r>l?p.reverse():p},HT=e=>e.rootProps.maxBarSize,J9=e=>e.rootProps.barGap,FT=e=>e.rootProps.barCategoryGap,eU=e=>e.rootProps.barSize,bu=e=>e.rootProps.stackOffset,KT=e=>e.rootProps.reverseStackOrder,$0=e=>e.options.chartName,U0=e=>e.rootProps.syncId,YT=e=>e.rootProps.syncMethod,q0=e=>e.options.eventEmitter,tU=e=>e.rootProps.baseValue,Dt={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},oa={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},$n={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},ih=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},nU={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:oa.angleAxisId,includeHidden:!1,name:void 0,reversed:oa.reversed,scale:oa.scale,tick:oa.tick,tickCount:void 0,ticks:void 0,type:oa.type,unit:void 0},rU={allowDataOverflow:$n.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:$n.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:$n.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:$n.scale,tick:$n.tick,tickCount:$n.tickCount,ticks:void 0,type:$n.type,unit:void 0},aU={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:oa.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:oa.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:oa.scale,tick:oa.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},iU={allowDataOverflow:$n.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:$n.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:$n.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:$n.scale,tick:$n.tick,tickCount:$n.tickCount,ticks:void 0,type:"category",unit:void 0},H0=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?aU:nU,F0=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?iU:rU,lh=e=>e.polarOptions,K0=Y([wa,Sa,Lt],HC),GT=Y([lh,K0],(e,t)=>{if(e!=null)return un(e.innerRadius,t,0)}),VT=Y([lh,K0],(e,t)=>{if(e!=null)return un(e.outerRadius,t,t*.8)}),lU=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},XT=Y([lh],lU);Y([H0,XT],ih);var ZT=Y([K0,GT,VT],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});Y([F0,ZT],ih);var WT=Y([Be,lh,GT,VT,wa,Sa],(e,t,n,r,l,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:u,cy:f,startAngle:d,endAngle:h}=t;return{cx:un(u,l,l/2),cy:un(f,o,o/2),innerRadius:n,outerRadius:r,startAngle:d,endAngle:h,clockWise:!1}}}),ht=(e,t)=>t,xu=(e,t,n)=>n;function oh(e){return e==null?void 0:e.id}function QT(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:l,dataKey:o}=n,u=new Map;return e.forEach(f=>{var d,h=(d=f.data)!==null&&d!==void 0?d:r;if(!(h==null||h.length===0)){var p=oh(f);h.forEach((y,b)=>{var w=o==null||l?b:String(et(y,o,null)),S=et(y,f.dataKey,0),j;u.has(w)?j=u.get(w):j={},Object.assign(j,{[p]:S}),u.set(w,j)})}}),Array.from(u.values())}function sh(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var uh=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function ch(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function oU(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var It=e=>{var t=Be(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},_o=e=>e.tooltip.settings.axisId;function BO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BO(Object(n),!0).forEach(function(r){sU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sU(e,t,n){return(t=uU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uU(e){var t=cU(e,"string");return typeof t=="symbol"?t:t+""}function cU(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bg=[0,"auto"],Ft={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},JT=(e,t)=>e.cartesianAxis.xAxis[t],Oa=(e,t)=>{var n=JT(e,t);return n??Ft},Kt={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:bg,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:cu},e5=(e,t)=>e.cartesianAxis.yAxis[t],Aa=(e,t)=>{var n=e5(e,t);return n??Kt},fU={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},Y0=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??fU},vt=(e,t,n)=>{switch(t){case"xAxis":return Oa(e,n);case"yAxis":return Aa(e,n);case"zAxis":return Y0(e,n);case"angleAxis":return H0(e,n);case"radiusAxis":return F0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},dU=(e,t,n)=>{switch(t){case"xAxis":return Oa(e,n);case"yAxis":return Aa(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},wu=(e,t,n)=>{switch(t){case"xAxis":return Oa(e,n);case"yAxis":return Aa(e,n);case"angleAxis":return H0(e,n);case"radiusAxis":return F0(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},t5=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function G0(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var fh=e=>e.graphicalItems.cartesianItems,hU=Y([ht,xu],G0),V0=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Su=Y([fh,vt,hU],V0,{memoizeOptions:{resultEqualityCheck:ch}}),n5=Y([Su],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(sh)),r5=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),mU=Y([Su],r5),X0=e=>e.map(t=>t.data).filter(Boolean).flat(1),pU=Y([Su],X0,{memoizeOptions:{resultEqualityCheck:ch}}),Z0=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:l}=t;return e.length>0?e:n.slice(r,l+1)},W0=Y([pU,NT],Z0),Q0=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:et(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(l=>({value:et(l,r)}))):e.map(r=>({value:r})),dh=Y([W0,vt,Su],Q0);function a5(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function wf(e){if(kr(e)||e instanceof Date){var t=Number(e);if(rt(t))return t}}function IO(e){if(Array.isArray(e)){var t=[wf(e[0]),wf(e[1])];return oi(t)?t:void 0}var n=wf(e);if(n!=null)return[n,n]}function ga(e){return e.map(wf).filter(oz)}function vU(e,t,n){return!n||typeof t!="number"||or(t)?[]:n.length?ga(n.flatMap(r=>{var l=et(e,r.dataKey),o,u;if(Array.isArray(l)?[o,u]=l:o=u=l,!(!rt(o)||!rt(u)))return[t-o,t+u]})):[]}var $t=e=>{var t=It(e),n=_o(e);return wu(e,t,n)},ju=Y([$t],e=>e==null?void 0:e.dataKey),yU=Y([n5,NT,$t],QT),i5=(e,t,n,r)=>{var l={},o=t.reduce((u,f)=>{if(f.stackId==null)return u;var d=u[f.stackId];return d==null&&(d=[]),d.push(f),u[f.stackId]=d,u},l);return Object.fromEntries(Object.entries(o).map(u=>{var[f,d]=u,h=r?[...d].reverse():d,p=h.map(oh);return[f,{stackedData:RL(e,p,n),graphicalItems:h}]}))},dd=Y([yU,n5,bu,KT],i5),l5=(e,t,n,r)=>{var{dataStartIndex:l,dataEndIndex:o}=t;if(r==null&&n!=="zAxis"){var u=IL(e,l,o);if(!(u!=null&&u[0]===0&&u[1]===0))return u}},gU=Y([vt],e=>e.allowDataOverflow),J0=e=>{var t;if(e==null||!("domain"in e))return bg;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=ga(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:bg},eb=Y([vt],J0),tb=Y([eb,gU],CT),bU=Y([dd,_a,ht,tb],l5,{memoizeOptions:{resultEqualityCheck:uh}}),hh=e=>e.errorBars,xU=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>a5(n,r)),hd=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var l=n.filter(Boolean);if(l.length!==0){var o=l.flat(),u=Math.min(...o),f=Math.max(...o);return[u,f]}},nb=(e,t,n,r,l)=>{var o,u;if(n.length>0&&e.forEach(f=>{n.forEach(d=>{var h,p,y=(h=r[d.id])===null||h===void 0?void 0:h.filter(A=>a5(l,A)),b=et(f,(p=t.dataKey)!==null&&p!==void 0?p:d.dataKey),w=vU(f,b,y);if(w.length>=2){var S=Math.min(...w),j=Math.max(...w);(o==null||S<o)&&(o=S),(u==null||j>u)&&(u=j)}var _=IO(b);_!=null&&(o=o==null?_[0]:Math.min(o,_[0]),u=u==null?_[1]:Math.max(u,_[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(f=>{var d=IO(et(f,t.dataKey));d!=null&&(o=o==null?d[0]:Math.min(o,d[0]),u=u==null?d[1]:Math.max(u,d[1]))}),rt(o)&&rt(u))return[o,u]},wU=Y([W0,vt,mU,hh,ht],nb,{memoizeOptions:{resultEqualityCheck:uh}});function SU(e){var{value:t}=e;if(kr(t)||t instanceof Date)return t}var jU=(e,t,n)=>{var r=e.map(SU).filter(l=>l!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&wE(r))?GC(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},o5=e=>e.referenceElements.dots,Oo=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),_U=Y([o5,ht,xu],Oo),s5=e=>e.referenceElements.areas,OU=Y([s5,ht,xu],Oo),u5=e=>e.referenceElements.lines,AU=Y([u5,ht,xu],Oo),c5=(e,t)=>{if(e!=null){var n=ga(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},NU=Y(_U,ht,c5),f5=(e,t)=>{if(e!=null){var n=ga(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},EU=Y([OU,ht],f5);function CU(e){var t;if(e.x!=null)return ga([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:ga(n)}function TU(e){var t;if(e.y!=null)return ga([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:ga(n)}var d5=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?CU(r):TU(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},MU=Y([AU,ht],d5),DU=Y(NU,MU,EU,(e,t,n)=>hd(e,n,t)),rb=(e,t,n,r,l,o,u,f)=>{if(n!=null)return n;var d=u==="vertical"&&f==="xAxis"||u==="horizontal"&&f==="yAxis",h=d?hd(r,o,l):hd(o,l);return q9(t,h,e.allowDataOverflow)},kU=Y([vt,eb,tb,bU,wU,DU,Be,ht],rb,{memoizeOptions:{resultEqualityCheck:uh}}),PU=[0,1],ab=(e,t,n,r,l,o,u)=>{if(!((e==null||n==null||n.length===0)&&u===void 0)){var{dataKey:f,type:d}=e,h=xa(t,o);if(h&&f==null){var p;return GC(0,(p=n==null?void 0:n.length)!==null&&p!==void 0?p:0)}return d==="category"?jU(r,e,h):l==="expand"?PU:u}},ib=Y([vt,Be,W0,dh,bu,ht,kU],ab),h5=(e,t,n,r,l)=>{if(e!=null){var{scale:o,type:u}=e;if(o==="auto")return t==="radial"&&l==="radiusAxis"?"band":t==="radial"&&l==="angleAxis"?"linear":u==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":u==="category"?"band":"linear";if(typeof o=="string"){var f="scale".concat(iu(o));return f in zs?f:"point"}}},Ao=Y([vt,Be,t5,$0,ht],h5);function RU(e){if(e!=null){if(e in zs)return zs[e]();var t="scale".concat(iu(e));if(t in zs)return zs[t]()}}function lb(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var l=RU(t);if(l!=null){var o=l.domain(n).range(r);return TL(o),o}}}var ob=(e,t,n)=>{var r=J0(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&oi(e))return W9(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&oi(e))return Q9(e,t.tickCount,t.allowDecimals)}},sb=Y([ib,wu,Ao],ob),ub=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&oi(t)&&Array.isArray(n)&&n.length>0){var l=t[0],o=n[0],u=t[1],f=n[n.length-1];return[Math.min(l,o),Math.max(u,f)]}return t},zU=Y([vt,ib,sb,ht],ub),LU=Y(dh,vt,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(ga(e.map(y=>y.value))).sort((y,b)=>y-b),l=r[0],o=r[r.length-1];if(l==null||o==null)return 1/0;var u=o-l;if(u===0)return 1/0;for(var f=0;f<r.length-1;f++){var d=r[f],h=r[f+1];if(!(d==null||h==null)){var p=h-d;n=Math.min(n,p)}}return n/u}}),m5=Y(LU,Be,FT,Lt,(e,t,n,r,l)=>l,(e,t,n,r,l)=>{if(!rt(e))return 0;var o=t==="vertical"?r.height:r.width;if(l==="gap")return e*o/2;if(l==="no-gap"){var u=un(n,e*o),f=e*o/2;return f-u-(f-u)/o*u}return 0}),BU=(e,t,n)=>{var r=Oa(e,t);return r==null||typeof r.padding!="string"?0:m5(e,"xAxis",t,n,r.padding)},IU=(e,t,n)=>{var r=Aa(e,t);return r==null||typeof r.padding!="string"?0:m5(e,"yAxis",t,n,r.padding)},$U=Y(Oa,BU,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:l}=e;return typeof l=="string"?{left:t,right:t}:{left:((n=l.left)!==null&&n!==void 0?n:0)+t,right:((r=l.right)!==null&&r!==void 0?r:0)+t}}),UU=Y(Aa,IU,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:l}=e;return typeof l=="string"?{top:t,bottom:t}:{top:((n=l.top)!==null&&n!==void 0?n:0)+t,bottom:((r=l.bottom)!==null&&r!==void 0?r:0)+t}}),qU=Y([Lt,$U,Yd,Kd,(e,t,n)=>n],(e,t,n,r,l)=>{var{padding:o}=r;return l?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),HU=Y([Lt,Be,UU,Yd,Kd,(e,t,n)=>n],(e,t,n,r,l,o)=>{var{padding:u}=l;return o?[r.height-u.bottom,u.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),_u=(e,t,n,r)=>{var l;switch(t){case"xAxis":return qU(e,n,r);case"yAxis":return HU(e,n,r);case"zAxis":return(l=Y0(e,n))===null||l===void 0?void 0:l.range;case"angleAxis":return XT(e);case"radiusAxis":return ZT(e,n);default:return}},p5=Y([vt,_u],ih),mh=Y([vt,Ao,zU,p5],lb);Y([Su,hh,ht],xU);function v5(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var ph=(e,t)=>t,vh=(e,t,n)=>n,FU=Y(Hd,ph,vh,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(v5)),KU=Y(Fd,ph,vh,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(v5)),y5=(e,t)=>({width:e.width,height:t.height}),YU=(e,t)=>{var n=typeof t.width=="number"?t.width:cu;return{width:n,height:e.height}},g5=Y(Lt,Oa,y5),GU=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},VU=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},XU=Y(Sa,Lt,FU,ph,vh,(e,t,n,r,l)=>{var o={},u;return n.forEach(f=>{var d=y5(t,f);u==null&&(u=GU(t,r,e));var h=r==="top"&&!l||r==="bottom"&&l;o[f.id]=u-Number(h)*d.height,u+=(h?-1:1)*d.height}),o}),ZU=Y(wa,Lt,KU,ph,vh,(e,t,n,r,l)=>{var o={},u;return n.forEach(f=>{var d=YU(t,f);u==null&&(u=VU(t,r,e));var h=r==="left"&&!l||r==="right"&&l;o[f.id]=u-Number(h)*d.width,u+=(h?-1:1)*d.width}),o}),WU=(e,t)=>{var n=Oa(e,t);if(n!=null)return XU(e,n.orientation,n.mirror)},QU=Y([Lt,Oa,WU,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var l=n==null?void 0:n[r];return l==null?{x:e.left,y:0}:{x:e.left,y:l}}}),JU=(e,t)=>{var n=Aa(e,t);if(n!=null)return ZU(e,n.orientation,n.mirror)},eq=Y([Lt,Aa,JU,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var l=n==null?void 0:n[r];return l==null?{x:0,y:e.top}:{x:l,y:e.top}}}),b5=Y(Lt,Aa,(e,t)=>{var n=typeof t.width=="number"?t.width:cu;return{width:n,height:e.height}}),$O=(e,t,n)=>{switch(t){case"xAxis":return g5(e,n).width;case"yAxis":return b5(e,n).height;default:return}},x5=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:l,type:o,dataKey:u}=n,f=xa(e,r),d=t.map(h=>h.value);if(u&&f&&o==="category"&&l&&wE(d))return d}},cb=Y([Be,dh,vt,ht],x5),w5=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:l,scale:o}=n,u=xa(e,r);if(u&&(l==="number"||o!=="auto"))return t.map(f=>f.value)}},fb=Y([Be,dh,wu,ht],w5),UO=Y([Be,dU,Ao,mh,cb,fb,_u,sb,ht],(e,t,n,r,l,o,u,f,d)=>{if(t!=null){var h=xa(e,d);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:d,categoricalDomain:o,duplicateDomain:l,isCategorical:h,niceTicks:f,range:u,realScaleType:n,scale:r}}}),tq=(e,t,n,r,l,o,u,f,d)=>{if(!(t==null||r==null)){var h=xa(e,d),{type:p,ticks:y,tickCount:b}=t,w=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,S=p==="category"&&r.bandwidth?r.bandwidth()/w:0;S=d==="angleAxis"&&o!=null&&o.length>=2?Gt(o[0]-o[1])*2*S:S;var j=y||l;if(j){var _=j.map((A,N)=>{var C=u?u.indexOf(A):A;return{index:N,coordinate:r(C)+S,value:A,offset:S}});return _.filter(A=>rt(A.coordinate))}return h&&f?f.map((A,N)=>({coordinate:r(A)+S,value:A,index:N,offset:S})).filter(A=>rt(A.coordinate)):r.ticks?r.ticks(b).map(A=>({coordinate:r(A)+S,value:A,offset:S})):r.domain().map((A,N)=>({coordinate:r(A)+S,value:u?u[A]:A,index:N,offset:S}))}},S5=Y([Be,wu,Ao,mh,sb,_u,cb,fb,ht],tq),nq=(e,t,n,r,l,o,u)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var f=xa(e,u),{tickCount:d}=t,h=0;return h=u==="angleAxis"&&(r==null?void 0:r.length)>=2?Gt(r[0]-r[1])*2*h:h,f&&o?o.map((p,y)=>({coordinate:n(p)+h,value:p,index:y,offset:h})):n.ticks?n.ticks(d).map(p=>({coordinate:n(p)+h,value:p,offset:h})):n.domain().map((p,y)=>({coordinate:n(p)+h,value:l?l[p]:p,index:y,offset:h}))}},si=Y([Be,wu,mh,_u,cb,fb,ht],nq),ui=Y(vt,mh,(e,t)=>{if(!(e==null||t==null))return fd(fd({},e),{},{scale:t})}),rq=Y([vt,Ao,ib,p5],lb);Y((e,t,n)=>Y0(e,n),rq,(e,t)=>{if(!(e==null||t==null))return fd(fd({},e),{},{scale:t})});var aq=Y([Be,Hd,Fd],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),j5=e=>e.options.defaultTooltipEventType,_5=e=>e.options.validateTooltipEventTypes;function O5(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function db(e,t){var n=j5(e),r=_5(e);return O5(t,n,r)}function iq(e){return ye(t=>db(t,e))}var A5=(e,t)=>{var n,r=Number(t);if(!(or(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},lq=e=>e.tooltip.settings,ni={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},oq={itemInteraction:{click:ni,hover:ni},axisInteraction:{click:ni,hover:ni},keyboardInteraction:ni,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},N5=En({name:"tooltip",initialState:oq,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:ft()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,l=br(e).tooltipItemPayloads.indexOf(n);l>-1&&(e.tooltipItemPayloads[l]=r)},prepare:ft()},removeTooltipEntrySettings:{reducer(e,t){var n=br(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:ft()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:sq,replaceTooltipEntrySettings:uq,removeTooltipEntrySettings:cq,setTooltipSettingsState:fq,setActiveMouseOverItemIndex:E5,mouseLeaveItem:dq,mouseLeaveChart:C5,setActiveClickItemIndex:hq,setMouseOverAxisIndex:T5,setMouseClickAxisIndex:mq,setSyncInteraction:xg,setKeyboardInteraction:wg}=N5.actions,pq=N5.reducer;function qO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function lf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qO(Object(n),!0).forEach(function(r){vq(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vq(e,t,n){return(t=yq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yq(e){var t=gq(e,"string");return typeof t=="symbol"?t:t+""}function gq(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bq(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function xq(e){return e.index!=null}var M5=(e,t,n,r)=>{if(t==null)return ni;var l=bq(e,t,n);if(l==null)return ni;if(l.active)return l;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(xq(l)){if(o)return lf(lf({},l),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return lf(lf({},ni),{},{coordinate:l.coordinate})};function wq(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function Sq(e,t){var n=wq(e),r=t[0],l=t[1];if(n===void 0)return!1;var o=Math.min(r,l),u=Math.max(r,l);return n>=o&&n<=u}function jq(e,t,n){if(n==null||t==null)return!0;var r=et(e,t);return r==null||!oi(n)?!0:Sq(r,n)}var hb=(e,t,n,r)=>{var l=e==null?void 0:e.index;if(l==null)return null;var o=Number(l);if(!rt(o))return l;var u=0,f=1/0;t.length>0&&(f=t.length-1);var d=Math.max(u,Math.min(o,f)),h=t[d];return h==null||jq(h,n,r)?String(d):null},D5=(e,t,n,r,l,o,u,f)=>{if(!(o==null||f==null)){var d=u[0],h=d==null?void 0:f(d.positions,o);if(h!=null)return h;var p=l==null?void 0:l[Number(o)];if(p)switch(n){case"horizontal":return{x:p.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:p.coordinate}}}},k5=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var l;if(n==="hover"?l=e.itemInteraction.hover.graphicalItemId:l=e.itemInteraction.click.graphicalItemId,l==null&&r!=null){var o=e.tooltipItemPayloads[0];return o!=null?[o]:[]}return e.tooltipItemPayloads.filter(u=>{var f;return((f=u.settings)===null||f===void 0?void 0:f.graphicalItemId)===l})},Ou=e=>e.options.tooltipPayloadSearcher,No=e=>e.tooltip;function HO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?HO(Object(n),!0).forEach(function(r){_q(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 _q(e,t,n){return(t=Oq(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oq(e){var t=Aq(e,"string");return typeof t=="symbol"?t:t+""}function Aq(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nq(e,t){return e??t}var P5=(e,t,n,r,l,o,u)=>{if(!(t==null||o==null)){var{chartData:f,computedData:d,dataStartIndex:h,dataEndIndex:p}=n,y=[];return e.reduce((b,w)=>{var S,{dataDefinedOnItem:j,settings:_}=w,A=Nq(j,f),N=Array.isArray(A)?mC(A,h,p):A,C=(S=_==null?void 0:_.dataKey)!==null&&S!==void 0?S:r,D=_==null?void 0:_.nameKey,k;if(r&&Array.isArray(N)&&!Array.isArray(N[0])&&u==="axis"?k=SE(N,r,l):k=o(N,t,d,D),Array.isArray(k))k.forEach(P=>{var $=FO(FO({},_),{},{name:P.name,unit:P.unit,color:void 0,fill:void 0});b.push(Gj({tooltipEntrySettings:$,dataKey:P.dataKey,payload:P.payload,value:et(P.payload,P.dataKey),name:P.name}))});else{var T;b.push(Gj({tooltipEntrySettings:_,dataKey:C,payload:k,value:et(k,C),name:(T=et(k,D))!==null&&T!==void 0?T:_==null?void 0:_.name}))}return b},y)}},mb=Y([$t,Be,t5,$0,It],h5),Eq=Y([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),Cq=Y([It,_o],G0),Eo=Y([Eq,$t,Cq],V0,{memoizeOptions:{resultEqualityCheck:ch}}),Tq=Y([Eo],e=>e.filter(sh)),Mq=Y([Eo],X0,{memoizeOptions:{resultEqualityCheck:ch}}),Co=Y([Mq,_a],Z0),Dq=Y([Tq,_a,$t],QT),pb=Y([Co,$t,Eo],Q0),R5=Y([$t],J0),kq=Y([$t],e=>e.allowDataOverflow),z5=Y([R5,kq],CT),Pq=Y([Eo],e=>e.filter(sh)),Rq=Y([Dq,Pq,bu,KT],i5),zq=Y([Rq,_a,It,z5],l5),Lq=Y([Eo],r5),Bq=Y([Co,$t,Lq,hh,It],nb,{memoizeOptions:{resultEqualityCheck:uh}}),Iq=Y([o5,It,_o],Oo),$q=Y([Iq,It],c5),Uq=Y([s5,It,_o],Oo),qq=Y([Uq,It],f5),Hq=Y([u5,It,_o],Oo),Fq=Y([Hq,It],d5),Kq=Y([$q,Fq,qq],hd),Yq=Y([$t,R5,z5,zq,Bq,Kq,Be,It],rb),Au=Y([$t,Be,Co,pb,bu,It,Yq],ab),Gq=Y([Au,$t,mb],ob),Vq=Y([$t,Au,Gq,It],ub),L5=e=>{var t=It(e),n=_o(e),r=!1;return _u(e,t,n,r)},B5=Y([$t,L5],ih),I5=Y([$t,mb,Vq,B5],lb),Xq=Y([Be,pb,$t,It],x5),Zq=Y([Be,pb,$t,It],w5),Wq=(e,t,n,r,l,o,u,f)=>{if(t){var{type:d}=t,h=xa(e,f);if(r){var p=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,y=d==="category"&&r.bandwidth?r.bandwidth()/p:0;return y=f==="angleAxis"&&l!=null&&(l==null?void 0:l.length)>=2?Gt(l[0]-l[1])*2*y:y,h&&u?u.map((b,w)=>({coordinate:r(b)+y,value:b,index:w,offset:y})):r.domain().map((b,w)=>({coordinate:r(b)+y,value:o?o[b]:b,index:w,offset:y}))}}},Na=Y([Be,$t,mb,I5,L5,Xq,Zq,It],Wq),vb=Y([j5,_5,lq],(e,t,n)=>O5(n.shared,e,t)),$5=e=>e.tooltip.settings.trigger,yb=e=>e.tooltip.settings.defaultIndex,Nu=Y([No,vb,$5,yb],M5),ci=Y([Nu,Co,ju,Au],hb),U5=Y([Na,ci],A5),gb=Y([Nu],e=>{if(e)return e.dataKey}),Qq=Y([Nu],e=>{if(e)return e.graphicalItemId}),q5=Y([No,vb,$5,yb],k5),Jq=Y([wa,Sa,Be,Lt,Na,yb,q5,Ou],D5),eH=Y([Nu,Jq],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),tH=Y([Nu],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),nH=Y([q5,ci,_a,ju,U5,Ou,vb],P5),rH=Y([nH],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function KO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function YO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KO(Object(n),!0).forEach(function(r){aH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aH(e,t,n){return(t=iH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iH(e){var t=lH(e,"string");return typeof t=="symbol"?t:t+""}function lH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var oH=()=>ye($t),sH=()=>{var e=oH(),t=ye(Na),n=ye(I5);return uo(!e||!n?void 0:YO(YO({},e),{},{scale:n}),t)};function GO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Zl(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){uH(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 uH(e,t,n){return(t=cH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cH(e){var t=fH(e,"string");return typeof t=="symbol"?t:t+""}function fH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dH=(e,t,n,r)=>{var l=t.find(o=>o&&o.index===n);if(l){if(e==="horizontal")return{x:l.coordinate,y:r.chartY};if(e==="vertical")return{x:r.chartX,y:l.coordinate}}return{x:0,y:0}},hH=(e,t,n,r)=>{var l=t.find(h=>h&&h.index===n);if(l){if(e==="centric"){var o=l.coordinate,{radius:u}=r;return Zl(Zl(Zl({},r),Mt(r.cx,r.cy,u,o)),{},{angle:o,radius:u})}var f=l.coordinate,{angle:d}=r;return Zl(Zl(Zl({},r),Mt(r.cx,r.cy,f,d)),{},{angle:d,radius:f})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function mH(e,t){var{chartX:n,chartY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var H5=(e,t,n,r,l)=>{var o,u=(o=t==null?void 0:t.length)!==null&&o!==void 0?o:0;if(u<=1||e==null)return 0;if(r==="angleAxis"&&l!=null&&Math.abs(Math.abs(l[1]-l[0])-360)<=1e-6)for(var f=0;f<u;f++){var d,h,p,y,b,w=f>0?(d=n[f-1])===null||d===void 0?void 0:d.coordinate:(h=n[u-1])===null||h===void 0?void 0:h.coordinate,S=(p=n[f])===null||p===void 0?void 0:p.coordinate,j=f>=u-1?(y=n[0])===null||y===void 0?void 0:y.coordinate:(b=n[f+1])===null||b===void 0?void 0:b.coordinate,_=void 0;if(!(w==null||S==null||j==null))if(Gt(S-w)!==Gt(j-S)){var A=[];if(Gt(j-S)===Gt(l[1]-l[0])){_=j;var N=S+l[1]-l[0];A[0]=Math.min(N,(N+w)/2),A[1]=Math.max(N,(N+w)/2)}else{_=w;var C=j+l[1]-l[0];A[0]=Math.min(S,(C+S)/2),A[1]=Math.max(S,(C+S)/2)}var D=[Math.min(S,(_+S)/2),Math.max(S,(_+S)/2)];if(e>D[0]&&e<=D[1]||e>=A[0]&&e<=A[1]){var k;return(k=n[f])===null||k===void 0?void 0:k.index}}else{var T=Math.min(w,j),P=Math.max(w,j);if(e>(T+S)/2&&e<=(P+S)/2){var $;return($=n[f])===null||$===void 0?void 0:$.index}}}else if(t)for(var X=0;X<u;X++){var Z=t[X];if(Z!=null){var te=t[X+1],R=t[X-1];if(X===0&&te!=null&&e<=(Z.coordinate+te.coordinate)/2||X===u-1&&R!=null&&e>(Z.coordinate+R.coordinate)/2||X>0&&X<u-1&&R!=null&&te!=null&&e>(Z.coordinate+R.coordinate)/2&&e<=(Z.coordinate+te.coordinate)/2)return Z.index}}return-1},F5=()=>ye($0),bb=(e,t)=>t,K5=(e,t,n)=>n,xb=(e,t,n,r)=>r,pH=Y(Na,e=>kd(e,t=>t.coordinate)),wb=Y([No,bb,K5,xb],M5),Sb=Y([wb,Co,ju,Au],hb),vH=(e,t,n)=>{if(t!=null){var r=No(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},Y5=Y([No,bb,K5,xb],k5),md=Y([wa,Sa,Be,Lt,Na,xb,Y5,Ou],D5),yH=Y([wb,md],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),G5=Y([Na,Sb],A5),gH=Y([Y5,Sb,_a,ju,G5,Ou,bb],P5),bH=Y([wb,Sb],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),xH=(e,t,n,r,l,o,u)=>{if(!(!e||!n||!r||!l)&&mH(e,u)){var f=$L(e,t),d=H5(f,o,l,n,r),h=dH(t,l,d,e);return{activeIndex:String(d),activeCoordinate:h}}},wH=(e,t,n,r,l,o,u)=>{if(!(!e||!r||!l||!o||!n)){var f=aI(e,n);if(f){var d=UL(f,t),h=H5(d,u,o,r,l),p=hH(t,o,h,f);return{activeIndex:String(h),activeCoordinate:p}}}},SH=(e,t,n,r,l,o,u,f)=>{if(!(!e||!t||!r||!l||!o))return t==="horizontal"||t==="vertical"?xH(e,t,r,l,o,u,f):wH(e,t,n,r,l,o,u)},jH=Y(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),_H=Y(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(Dt)),n=Array.from(new Set(t));return n.sort((r,l)=>r-l)},{memoizeOptions:{resultEqualityCheck:oU}});function VO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function XO(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VO(Object(n),!0).forEach(function(r){OH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OH(e,t,n){return(t=AH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AH(e){var t=NH(e,"string");return typeof t=="symbol"?t:t+""}function NH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EH={},CH={zIndexMap:Object.values(Dt).reduce((e,t)=>XO(XO({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),EH)},TH=new Set(Object.values(Dt));function MH(e){return TH.has(e)}var V5=En({name:"zIndex",initialState:CH,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:ft()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!MH(n)&&delete e.zIndexMap[n])},prepare:ft()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:l}=t.payload;e.zIndexMap[n]?l?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:l?void 0:r,panoramaElement:l?r:void 0}},prepare:ft()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:ft()}}}),{registerZIndexPortal:DH,unregisterZIndexPortal:kH,registerZIndexPortalElement:PH,unregisterZIndexPortalElement:RH}=V5.actions,zH=V5.reducer;function Cn(e){var{zIndex:t,children:n}=e,r=b7(),l=r&&t!==void 0&&t!==0,o=cn(),u=it();x.useLayoutEffect(()=>l?(u(DH({zIndex:t})),()=>{u(kH({zIndex:t}))}):lu,[u,t,l]);var f=ye(d=>jH(d,t,o));return l?f?hn.createPortal(n,f):null:n}function Sg(){return Sg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sg.apply(null,arguments)}function ZO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function of(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZO(Object(n),!0).forEach(function(r){LH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZO(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function LH(e,t,n){return(t=BH(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BH(e){var t=IH(e,"string");return typeof t=="symbol"?t:t+""}function IH(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $H(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return x.isValidElement(t)?x.cloneElement(t,r):x.createElement(n,r)}function UH(e){var t,{coordinate:n,payload:r,index:l,offset:o,tooltipAxisBandSize:u,layout:f,cursor:d,tooltipEventType:h,chartName:p}=e,y=n,b=r,w=l;if(!d||!y||p!=="ScatterChart"&&h!=="axis")return null;var S,j,_;if(p==="ScatterChart")S=y,j=gB,_=Dt.cursorLine;else if(p==="BarChart")S=bB(f,y,o,u),j=qC,_=Dt.cursorRectangle;else if(f==="radial"&&_E(y)){var{cx:A,cy:N,radius:C,startAngle:D,endAngle:k}=FC(y);S={cx:A,cy:N,startAngle:D,endAngle:k,innerRadius:C,outerRadius:C},j=YC,_=Dt.cursorLine}else S={points:sI(f,y,o)},j=io,_=Dt.cursorLine;var T=typeof d=="object"&&"className"in d?d.className:void 0,P=of(of(of(of({stroke:"#ccc",pointerEvents:"none"},o),S),Wi(d)),{},{payload:b,payloadIndex:w,className:qe("recharts-tooltip-cursor",T)});return x.createElement(Cn,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:_},x.createElement($H,{cursor:d,cursorComp:j,cursorProps:P}))}function qH(e){var t=sH(),n=OC(),r=ll(),l=F5();return t==null||n==null||r==null||l==null?null:x.createElement(UH,Sg({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:l}))}var X5=x.createContext(null),HH=()=>x.useContext(X5),cy={exports:{}},WO;function FH(){return WO||(WO=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function l(d,h,p){this.fn=d,this.context=h,this.once=p||!1}function o(d,h,p,y,b){if(typeof p!="function")throw new TypeError("The listener must be a function");var w=new l(p,y||d,b),S=n?n+h:h;return d._events[S]?d._events[S].fn?d._events[S]=[d._events[S],w]:d._events[S].push(w):(d._events[S]=w,d._eventsCount++),d}function u(d,h){--d._eventsCount===0?d._events=new r:delete d._events[h]}function f(){this._events=new r,this._eventsCount=0}f.prototype.eventNames=function(){var h=[],p,y;if(this._eventsCount===0)return h;for(y in p=this._events)t.call(p,y)&&h.push(n?y.slice(1):y);return Object.getOwnPropertySymbols?h.concat(Object.getOwnPropertySymbols(p)):h},f.prototype.listeners=function(h){var p=n?n+h:h,y=this._events[p];if(!y)return[];if(y.fn)return[y.fn];for(var b=0,w=y.length,S=new Array(w);b<w;b++)S[b]=y[b].fn;return S},f.prototype.listenerCount=function(h){var p=n?n+h:h,y=this._events[p];return y?y.fn?1:y.length:0},f.prototype.emit=function(h,p,y,b,w,S){var j=n?n+h:h;if(!this._events[j])return!1;var _=this._events[j],A=arguments.length,N,C;if(_.fn){switch(_.once&&this.removeListener(h,_.fn,void 0,!0),A){case 1:return _.fn.call(_.context),!0;case 2:return _.fn.call(_.context,p),!0;case 3:return _.fn.call(_.context,p,y),!0;case 4:return _.fn.call(_.context,p,y,b),!0;case 5:return _.fn.call(_.context,p,y,b,w),!0;case 6:return _.fn.call(_.context,p,y,b,w,S),!0}for(C=1,N=new Array(A-1);C<A;C++)N[C-1]=arguments[C];_.fn.apply(_.context,N)}else{var D=_.length,k;for(C=0;C<D;C++)switch(_[C].once&&this.removeListener(h,_[C].fn,void 0,!0),A){case 1:_[C].fn.call(_[C].context);break;case 2:_[C].fn.call(_[C].context,p);break;case 3:_[C].fn.call(_[C].context,p,y);break;case 4:_[C].fn.call(_[C].context,p,y,b);break;default:if(!N)for(k=1,N=new Array(A-1);k<A;k++)N[k-1]=arguments[k];_[C].fn.apply(_[C].context,N)}}return!0},f.prototype.on=function(h,p,y){return o(this,h,p,y,!1)},f.prototype.once=function(h,p,y){return o(this,h,p,y,!0)},f.prototype.removeListener=function(h,p,y,b){var w=n?n+h:h;if(!this._events[w])return this;if(!p)return u(this,w),this;var S=this._events[w];if(S.fn)S.fn===p&&(!b||S.once)&&(!y||S.context===y)&&u(this,w);else{for(var j=0,_=[],A=S.length;j<A;j++)(S[j].fn!==p||b&&!S[j].once||y&&S[j].context!==y)&&_.push(S[j]);_.length?this._events[w]=_.length===1?_[0]:_:u(this,w)}return this},f.prototype.removeAllListeners=function(h){var p;return h?(p=n?n+h:h,this._events[p]&&u(this,p)):(this._events=new r,this._eventsCount=0),this},f.prototype.off=f.prototype.removeListener,f.prototype.addListener=f.prototype.on,f.prefixed=n,f.EventEmitter=f,e.exports=f})(cy)),cy.exports}var KH=FH();const YH=zr(KH);var Qs=new YH,jg="recharts.syncEvent.tooltip",QO="recharts.syncEvent.brush";function jb(e,t){if(t){var n=Number.parseInt(t,10);if(!or(n))return e==null?void 0:e[n]}}var GH={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},Z5=En({name:"options",initialState:GH,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),VH=Z5.reducer,{createEventEmitter:XH}=Z5.actions;function ZH(e){return e.tooltip.syncInteraction}var WH={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},W5=En({name:"chartData",initialState:WH,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:JO,setDataStartEndIndexes:QH,setComputedData:rQ}=W5.actions,JH=W5.reducer,eF=["x","y"];function eA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Wl(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){tF(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 tF(e,t,n){return(t=nF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nF(e){var t=rF(e,"string");return typeof t=="symbol"?t:t+""}function rF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aF(e,t){if(e==null)return{};var n,r,l=iF(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function iF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function lF(){var e=ye(U0),t=ye(q0),n=it(),r=ye(YT),l=ye(Na),o=ll(),u=Gd(),f=ye(d=>d.rootProps.className);x.useEffect(()=>{if(e==null)return lu;var d=(h,p,y)=>{if(t!==y&&e===h){if(r==="index"){var b;if(u&&p!==null&&p!==void 0&&(b=p.payload)!==null&&b!==void 0&&b.coordinate&&p.payload.sourceViewBox){var w=p.payload.coordinate,{x:S,y:j}=w,_=aF(w,eF),{x:A,y:N,width:C,height:D}=p.payload.sourceViewBox,k=Wl(Wl({},_),{},{x:u.x+(C?(S-A)/C:0)*u.width,y:u.y+(D?(j-N)/D:0)*u.height});n(Wl(Wl({},p),{},{payload:Wl(Wl({},p.payload),{},{coordinate:k})}))}else n(p);return}if(l!=null){var T;if(typeof r=="function"){var P={activeTooltipIndex:p.payload.index==null?void 0:Number(p.payload.index),isTooltipActive:p.payload.active,activeIndex:p.payload.index==null?void 0:Number(p.payload.index),activeLabel:p.payload.label,activeDataKey:p.payload.dataKey,activeCoordinate:p.payload.coordinate},$=r(l,P);T=l[$]}else r==="value"&&(T=l.find(U=>String(U.value)===p.payload.label));var{coordinate:X}=p.payload;if(T==null||p.payload.active===!1||X==null||u==null){n(xg({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:Z,y:te}=X,R=Math.min(Z,u.x+u.width),ce=Math.min(te,u.y+u.height),le={x:o==="horizontal"?T.coordinate:R,y:o==="horizontal"?ce:T.coordinate},fe=xg({active:p.payload.active,coordinate:le,dataKey:p.payload.dataKey,index:String(T.index),label:p.payload.label,sourceViewBox:p.payload.sourceViewBox,graphicalItemId:p.payload.graphicalItemId});n(fe)}}};return Qs.on(jg,d),()=>{Qs.off(jg,d)}},[f,n,t,e,r,l,o,u])}function oF(){var e=ye(U0),t=ye(q0),n=it();x.useEffect(()=>{if(e==null)return lu;var r=(l,o,u)=>{t!==u&&e===l&&n(QH(o))};return Qs.on(QO,r),()=>{Qs.off(QO,r)}},[n,t,e])}function sF(){var e=it();x.useEffect(()=>{e(XH())},[e]),lF(),oF()}function uF(e,t,n,r,l,o){var u=ye(w=>vH(w,e,t)),f=ye(q0),d=ye(U0),h=ye(YT),p=ye(ZH),y=p==null?void 0:p.active,b=Gd();x.useEffect(()=>{if(!y&&d!=null&&f!=null){var w=xg({active:o,coordinate:n,dataKey:u,index:l,label:typeof r=="number"?String(r):r,sourceViewBox:b,graphicalItemId:void 0});Qs.emit(jg,d,w,f)}},[y,n,u,l,r,f,d,h,o,b])}function tA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function nA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tA(Object(n),!0).forEach(function(r){cF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cF(e,t,n){return(t=fF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fF(e){var t=dF(e,"string");return typeof t=="symbol"?t:t+""}function dF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hF(e){return e.dataKey}function mF(e,t){return x.isValidElement(e)?x.cloneElement(e,t):typeof e=="function"?x.createElement(e,t):x.createElement(W7,t)}var rA=[],pF={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function sf(e){var t,n,r=Pt(e,pF),{active:l,allowEscapeViewBox:o,animationDuration:u,animationEasing:f,content:d,filterNull:h,isAnimationActive:p,offset:y,payloadUniqBy:b,position:w,reverseDirection:S,useTranslate3d:j,wrapperStyle:_,cursor:A,shared:N,trigger:C,defaultIndex:D,portal:k,axisId:T}=r,P=it(),$=typeof D=="number"?String(D):D;x.useEffect(()=>{P(fq({shared:N,trigger:C,axisId:T,active:l,defaultIndex:$}))},[P,N,C,T,l,$]);var X=Gd(),Z=LC(),te=iq(N),{activeIndex:R,isActive:ce}=(t=ye(Se=>bH(Se,te,C,$)))!==null&&t!==void 0?t:{},le=ye(Se=>gH(Se,te,C,$)),fe=ye(Se=>G5(Se,te,C,$)),U=ye(Se=>yH(Se,te,C,$)),Q=le,se=HH(),de=(n=l??ce)!==null&&n!==void 0?n:!1,[B,M]=BE([Q,de]),q=te==="axis"?fe:void 0;uF(te,C,U,q,R,de);var ie=k??se;if(ie==null||X==null||te==null)return null;var ue=Q??rA;de||(ue=rA),h&&ue.length&&(ue=kE(ue.filter(Se=>Se.value!=null&&(Se.hide!==!0||r.includeHidden)),b,hF));var me=ue.length>0,ge=x.createElement(aB,{allowEscapeViewBox:o,animationDuration:u,animationEasing:f,isAnimationActive:p,active:de,coordinate:U,hasPayload:me,offset:y,position:w,reverseDirection:S,useTranslate3d:j,viewBox:X,wrapperStyle:_,lastBoundingBox:B,innerRef:M,hasPortalFromProps:!!k},mF(d,nA(nA({},r),{},{payload:ue,label:q,active:de,activeIndex:R,coordinate:U,accessibilityLayer:Z})));return x.createElement(x.Fragment,null,hn.createPortal(ge,ie),de&&x.createElement(qH,{cursor:A,tooltipEventType:te,coordinate:U,payload:ue,index:R}))}var Vi=e=>null;Vi.displayName="Cell";function vF(e,t,n){return(t=yF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yF(e){var t=gF(e,"string");return typeof t=="symbol"?t:t+""}function gF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class bF{constructor(t){vF(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function aA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function xF(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){wF(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 wF(e,t,n){return(t=SF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SF(e){var t=jF(e,"string");return typeof t=="symbol"?t:t+""}function jF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _F={cacheSize:2e3,enableCache:!0},Q5=xF({},_F),iA=new bF(Q5.cacheSize),OF={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},lA="recharts_measurement_span";function AF(e,t){var n=t.fontSize||"",r=t.fontFamily||"",l=t.fontWeight||"",o=t.fontStyle||"",u=t.letterSpacing||"",f=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(l,"|").concat(o,"|").concat(u,"|").concat(f)}var oA=(e,t)=>{try{var n=document.getElementById(lA);n||(n=document.createElement("span"),n.setAttribute("id",lA),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,OF,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},Ls=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||du.isSsr)return{width:0,height:0};if(!Q5.enableCache)return oA(t,n);var r=AF(t,n),l=iA.get(r);if(l)return l;var o=oA(t,n);return iA.set(r,o),o},J5;function NF(e,t,n){return(t=EF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EF(e){var t=CF(e,"string");return typeof t=="symbol"?t:t+""}function CF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var sA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,uA=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,TF=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,MF=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,DF={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},kF=["cm","mm","pt","pc","in","Q","px"];function PF(e){return kF.includes(e)}var no="NaN";function RF(e,t){return e*DF[t]}class rn{static parse(t){var n,[,r,l]=(n=MF.exec(t))!==null&&n!==void 0?n:[];return r==null?rn.NaN:new rn(parseFloat(r),l??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,or(t)&&(this.unit=""),n!==""&&!TF.test(n)&&(this.num=NaN,this.unit=""),PF(n)&&(this.num=RF(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new rn(NaN,""):new rn(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new rn(NaN,""):new rn(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rn(NaN,""):new rn(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new rn(NaN,""):new rn(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return or(this.num)}}J5=rn;NF(rn,"NaN",new J5(NaN,""));function eM(e){if(e==null||e.includes(no))return no;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,l,o]=(n=sA.exec(t))!==null&&n!==void 0?n:[],u=rn.parse(r??""),f=rn.parse(o??""),d=l==="*"?u.multiply(f):u.divide(f);if(d.isNaN())return no;t=t.replace(sA,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var h,[,p,y,b]=(h=uA.exec(t))!==null&&h!==void 0?h:[],w=rn.parse(p??""),S=rn.parse(b??""),j=y==="+"?w.add(S):w.subtract(S);if(j.isNaN())return no;t=t.replace(uA,j.toString())}return t}var cA=/\(([^()]*)\)/;function zF(e){for(var t=e,n;(n=cA.exec(t))!=null;){var[,r]=n;t=t.replace(cA,eM(r))}return t}function LF(e){var t=e.replace(/\s+/g,"");return t=zF(t),t=eM(t),t}function BF(e){try{return LF(e)}catch{return no}}function fy(e){var t=BF(e.slice(5,-1));return t===no?"":t}var IF=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],$F=["dx","dy","angle","className","breakAll"];function _g(){return _g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_g.apply(null,arguments)}function fA(e,t){if(e==null)return{};var n,r,l=UF(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function UF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var tM=/[ \f\n\r\t\v\u2028\u2029]+/,nM=e=>{var{children:t,breakAll:n,style:r}=e;try{var l=[];pt(t)||(n?l=t.toString().split(""):l=t.toString().split(tM));var o=l.map(f=>({word:f,width:Ls(f,r).width})),u=n?0:Ls(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:u}}catch{return null}};function qF(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var rM=(e,t,n,r)=>e.reduce((l,o)=>{var{word:u,width:f}=o,d=l[l.length-1];if(d&&f!=null&&(t==null||r||d.width+f+n<Number(t)))d.words.push(u),d.width+=f+n;else{var h={words:[u],width:f};l.push(h)}return l},[]),aM=e=>e.reduce((t,n)=>t.width>n.width?t:n),HF="…",dA=(e,t,n,r,l,o,u,f)=>{var d=e.slice(0,t),h=nM({breakAll:n,style:r,children:d+HF});if(!h)return[!1,[]];var p=rM(h.wordsWithComputedWidth,o,u,f),y=p.length>l||aM(p).width>Number(o);return[y,p]},FF=(e,t,n,r,l)=>{var{maxLines:o,children:u,style:f,breakAll:d}=e,h=he(o),p=String(u),y=rM(t,r,n,l);if(!h||l)return y;var b=y.length>o||aM(y).width>Number(r);if(!b)return y;for(var w=0,S=p.length-1,j=0,_;w<=S&&j<=p.length-1;){var A=Math.floor((w+S)/2),N=A-1,[C,D]=dA(p,N,d,f,o,r,n,l),[k]=dA(p,A,d,f,o,r,n,l);if(!C&&!k&&(w=A+1),C&&k&&(S=A-1),!C&&k){_=D;break}j++}return _||y},hA=e=>{var t=pt(e)?[]:e.toString().split(tM);return[{words:t,width:void 0}]},KF=e=>{var{width:t,scaleToFit:n,children:r,style:l,breakAll:o,maxLines:u}=e;if((t||n)&&!du.isSsr){var f,d,h=nM({breakAll:o,children:r,style:l});if(h){var{wordsWithComputedWidth:p,spaceWidth:y}=h;f=p,d=y}else return hA(r);return FF({breakAll:o,children:r,maxLines:u,style:l},f,d,t,!!n)}return hA(r)},iM="#808080",YF={angle:0,breakAll:!1,capHeight:"0.71em",fill:iM,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},yh=x.forwardRef((e,t)=>{var n=Pt(e,YF),{x:r,y:l,lineHeight:o,capHeight:u,fill:f,scaleToFit:d,textAnchor:h,verticalAnchor:p}=n,y=fA(n,IF),b=x.useMemo(()=>KF({breakAll:y.breakAll,children:y.children,maxLines:y.maxLines,scaleToFit:d,style:y.style,width:y.width}),[y.breakAll,y.children,y.maxLines,d,y.style,y.width]),{dx:w,dy:S,angle:j,className:_,breakAll:A}=y,N=fA(y,$F);if(!kr(r)||!kr(l)||b.length===0)return null;var C=Number(r)+(he(w)?w:0),D=Number(l)+(he(S)?S:0);if(!rt(C)||!rt(D))return null;var k;switch(p){case"start":k=fy("calc(".concat(u,")"));break;case"middle":k=fy("calc(".concat((b.length-1)/2," * -").concat(o," + (").concat(u," / 2))"));break;default:k=fy("calc(".concat(b.length-1," * -").concat(o,")"));break}var T=[];if(d){var P=b[0].width,{width:$}=y;T.push("scale(".concat(he($)&&he(P)?$/P:1,")"))}return j&&T.push("rotate(".concat(j,", ").concat(C,", ").concat(D,")")),T.length&&(N.transform=T.join(" ")),x.createElement("text",_g({},pn(N),{ref:t,x:C,y:D,className:qe("recharts-text",_),textAnchor:h,fill:f.includes("url")?iM:f}),b.map((X,Z)=>{var te=X.words.join(A?"":" ");return x.createElement("tspan",{x:C,dy:Z===0?k:o,key:"".concat(te,"-").concat(Z)},te)}))});yh.displayName="Text";var GF=["labelRef"],VF=["content"];function mA(e,t){if(e==null)return{};var n,r,l=XF(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function XF(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function pA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pA(Object(n),!0).forEach(function(r){ZF(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZF(e,t,n){return(t=WF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WF(e){var t=QF(e,"string");return typeof t=="symbol"?t:t+""}function QF(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sa(){return sa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sa.apply(null,arguments)}var lM=x.createContext(null),JF=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:l,width:o,height:u,children:f}=e,d=x.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:l,width:o,height:u}),[t,n,r,l,o,u]);return x.createElement(lM.Provider,{value:d},f)},oM=()=>{var e=x.useContext(lM),t=Gd();return e||_C(t)},eK=x.createContext(null),tK=()=>{var e=x.useContext(eK),t=ye(WT);return e||t},nK=e=>{var{value:t,formatter:n}=e,r=pt(e.children)?t:e.children;return typeof n=="function"?n(r):r},_b=e=>e!=null&&typeof e=="function",rK=(e,t)=>{var n=Gt(t-e),r=Math.min(Math.abs(t-e),360);return n*r},aK=(e,t,n,r,l)=>{var{offset:o,className:u}=e,{cx:f,cy:d,innerRadius:h,outerRadius:p,startAngle:y,endAngle:b,clockWise:w}=l,S=(h+p)/2,j=rK(y,b),_=j>=0?1:-1,A,N;switch(t){case"insideStart":A=y+_*o,N=w;break;case"insideEnd":A=b-_*o,N=!w;break;case"end":A=b+_*o,N=w;break;default:throw new Error("Unsupported position ".concat(t))}N=j<=0?N:!N;var C=Mt(f,d,S,A),D=Mt(f,d,S,A+(N?1:-1)*359),k="M".concat(C.x,",").concat(C.y,`
    A`).concat(S,",").concat(S,",0,1,").concat(N?0:1,`,
    `).concat(D.x,",").concat(D.y),T=pt(e.id)?Is("recharts-radial-line-"):e.id;return x.createElement("text",sa({},r,{dominantBaseline:"central",className:qe("recharts-radial-bar-label",u)}),x.createElement("defs",null,x.createElement("path",{id:T,d:k})),x.createElement("textPath",{xlinkHref:"#".concat(T)},n))},iK=(e,t,n)=>{var{cx:r,cy:l,innerRadius:o,outerRadius:u,startAngle:f,endAngle:d}=e,h=(f+d)/2;if(n==="outside"){var{x:p,y}=Mt(r,l,u+t,h);return{x:p,y,textAnchor:p>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:l,textAnchor:"middle",verticalAnchor:"end"};var b=(o+u)/2,{x:w,y:S}=Mt(r,l,b,h);return{x:w,y:S,textAnchor:"middle",verticalAnchor:"middle"}},Og=e=>"cx"in e&&he(e.cx),lK=(e,t)=>{var{parentViewBox:n,offset:r,position:l}=e,o;n!=null&&!Og(n)&&(o=n);var{x:u,y:f,upperWidth:d,lowerWidth:h,height:p}=t,y=u,b=u+(d-h)/2,w=(y+b)/2,S=(d+h)/2,j=y+d/2,_=p>=0?1:-1,A=_*r,N=_>0?"end":"start",C=_>0?"start":"end",D=d>=0?1:-1,k=D*r,T=D>0?"end":"start",P=D>0?"start":"end";if(l==="top"){var $={x:y+d/2,y:f-A,textAnchor:"middle",verticalAnchor:N};return jt(jt({},$),o?{height:Math.max(f-o.y,0),width:d}:{})}if(l==="bottom"){var X={x:b+h/2,y:f+p+A,textAnchor:"middle",verticalAnchor:C};return jt(jt({},X),o?{height:Math.max(o.y+o.height-(f+p),0),width:h}:{})}if(l==="left"){var Z={x:w-k,y:f+p/2,textAnchor:T,verticalAnchor:"middle"};return jt(jt({},Z),o?{width:Math.max(Z.x-o.x,0),height:p}:{})}if(l==="right"){var te={x:w+S+k,y:f+p/2,textAnchor:P,verticalAnchor:"middle"};return jt(jt({},te),o?{width:Math.max(o.x+o.width-te.x,0),height:p}:{})}var R=o?{width:S,height:p}:{};return l==="insideLeft"?jt({x:w+k,y:f+p/2,textAnchor:P,verticalAnchor:"middle"},R):l==="insideRight"?jt({x:w+S-k,y:f+p/2,textAnchor:T,verticalAnchor:"middle"},R):l==="insideTop"?jt({x:y+d/2,y:f+A,textAnchor:"middle",verticalAnchor:C},R):l==="insideBottom"?jt({x:b+h/2,y:f+p-A,textAnchor:"middle",verticalAnchor:N},R):l==="insideTopLeft"?jt({x:y+k,y:f+A,textAnchor:P,verticalAnchor:C},R):l==="insideTopRight"?jt({x:y+d-k,y:f+A,textAnchor:T,verticalAnchor:C},R):l==="insideBottomLeft"?jt({x:b+k,y:f+p-A,textAnchor:P,verticalAnchor:N},R):l==="insideBottomRight"?jt({x:b+h-k,y:f+p-A,textAnchor:T,verticalAnchor:N},R):l&&typeof l=="object"&&(he(l.x)||ha(l.x))&&(he(l.y)||ha(l.y))?jt({x:u+un(l.x,S),y:f+un(l.y,p),textAnchor:"end",verticalAnchor:"end"},R):jt({x:j,y:f+p/2,textAnchor:"middle",verticalAnchor:"middle"},R)},oK={angle:0,offset:5,zIndex:Dt.label,position:"middle",textBreakAll:!1};function ti(e){var t=Pt(e,oK),{viewBox:n,position:r,value:l,children:o,content:u,className:f="",textBreakAll:d,labelRef:h}=t,p=tK(),y=oM(),b=r==="center"?y:p??y,w,S,j;if(n==null?w=b:Og(n)?w=n:w=_C(n),!w||pt(l)&&pt(o)&&!x.isValidElement(u)&&typeof u!="function")return null;var _=jt(jt({},t),{},{viewBox:w});if(x.isValidElement(u)){var{labelRef:A}=_,N=mA(_,GF);return x.cloneElement(u,N)}if(typeof u=="function"){var{content:C}=_,D=mA(_,VF);if(S=x.createElement(u,D),x.isValidElement(S))return S}else S=nK(t);var k=pn(t);if(Og(w)){if(r==="insideStart"||r==="insideEnd"||r==="end")return aK(t,r,S,k,w);j=iK(w,t.offset,t.position)}else j=lK(t,w);return x.createElement(Cn,{zIndex:t.zIndex},x.createElement(yh,sa({ref:h,className:qe("recharts-label",f)},k,j,{textAnchor:qF(k.textAnchor)?k.textAnchor:j.textAnchor,breakAll:d}),S))}ti.displayName="Label";var sK=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?x.createElement(ti,sa({key:"label-implicit"},r)):kr(e)?x.createElement(ti,sa({key:"label-implicit",value:e},r)):x.isValidElement(e)?e.type===ti?x.cloneElement(e,jt({key:"label-implicit"},r)):x.createElement(ti,sa({key:"label-implicit",content:e},r)):_b(e)?x.createElement(ti,sa({key:"label-implicit",content:e},r)):e&&typeof e=="object"?x.createElement(ti,sa({},e,{key:"label-implicit"},r)):null};function uK(e){var{label:t,labelRef:n}=e,r=oM();return sK(t,r,n)||null}var dy={},hy={},vA;function cK(){return vA||(vA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(hy)),hy}var my={},yA;function fK(){return yA||(yA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(my)),my}var gA;function dK(){return gA||(gA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=cK(),n=fK(),r=e0();function l(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=l})(dy)),dy}var py,bA;function hK(){return bA||(bA=1,py=dK().last),py}var mK=hK();const pK=zr(mK);var vK=["valueAccessor"],yK=["dataKey","clockWise","id","textBreakAll","zIndex"];function pd(){return pd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pd.apply(null,arguments)}function xA(e,t){if(e==null)return{};var n,r,l=gK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function gK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bK=e=>Array.isArray(e.value)?pK(e.value):e.value,sM=x.createContext(void 0),uM=sM.Provider,cM=x.createContext(void 0),xK=cM.Provider;function wK(){return x.useContext(sM)}function SK(){return x.useContext(cM)}function Sf(e){var{valueAccessor:t=bK}=e,n=xA(e,vK),{dataKey:r,clockWise:l,id:o,textBreakAll:u,zIndex:f}=n,d=xA(n,yK),h=wK(),p=SK(),y=h||p;return!y||!y.length?null:x.createElement(Cn,{zIndex:f??Dt.label},x.createElement(Ot,{className:"recharts-label-list"},y.map((b,w)=>{var S,j=pt(r)?t(b,w):et(b&&b.payload,r),_=pt(o)?{}:{id:"".concat(o,"-").concat(w)};return x.createElement(ti,pd({key:"label-".concat(w)},pn(b),d,_,{fill:(S=n.fill)!==null&&S!==void 0?S:b.fill,parentViewBox:b.parentViewBox,value:j,textBreakAll:u,viewBox:b.viewBox,index:w,zIndex:0}))})))}Sf.displayName="LabelList";function Ob(e){var{label:t}=e;return t?t===!0?x.createElement(Sf,{key:"labelList-implicit"}):x.isValidElement(t)||_b(t)?x.createElement(Sf,{key:"labelList-implicit",content:t}):typeof t=="object"?x.createElement(Sf,pd({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}function Ag(){return Ag=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ag.apply(null,arguments)}var fM=e=>{var{cx:t,cy:n,r,className:l}=e,o=qe("recharts-dot",l);return he(t)&&he(n)&&he(r)?x.createElement("circle",Ag({},Nn(e),Jg(e),{className:o,cx:t,cy:n,r})):null},dM=e=>e.graphicalItems.polarItems,jK=Y([ht,xu],G0),gh=Y([dM,vt,jK],V0),_K=Y([gh],X0),bh=Y([_K,ah],Z0),OK=Y([bh,vt,gh],Q0);Y([bh,vt,gh],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(l=>{var o,u=et(r,(o=t.dataKey)!==null&&o!==void 0?o:l.dataKey);return{value:u,errorDomain:[]}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:et(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]})));var wA=()=>{},AK=Y([bh,vt,gh,hh,ht],nb),NK=Y([vt,eb,tb,wA,AK,wA,Be,ht],rb),hM=Y([vt,Be,bh,OK,bu,ht,NK],ab),EK=Y([hM,vt,Ao],ob);Y([vt,hM,EK,ht],ub);var CK={radiusAxis:{},angleAxis:{}},mM=En({name:"polarAxis",initialState:CK,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:aQ,removeRadiusAxis:iQ,addAngleAxis:lQ,removeAngleAxis:oQ}=mM.actions,TK=mM.reducer;function SA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?SA(Object(n),!0).forEach(function(r){MK(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 MK(e,t,n){return(t=DK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DK(e){var t=kK(e,"string");return typeof t=="symbol"?t:t+""}function kK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var PK=(e,t)=>t,Ab=Y([dM,PK],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),RK=[],Nb=(e,t,n)=>(n==null?void 0:n.length)===0?RK:n,pM=Y([ah,Ab,Nb],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var l;if((t==null?void 0:t.data)!=null&&t.data.length>0?l=t.data:l=r,(!l||!l.length)&&n!=null&&(l=n.map(o=>jA(jA({},t.presentationProps),o.props))),l!=null)return l}}),zK=Y([pM,Ab,Nb],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,l)=>{var o,u=et(r,t.nameKey,t.name),f;return n!=null&&(o=n[l])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?f=n[l].props.fill:typeof r=="object"&&r!=null&&"fill"in r?f=r.fill:f=t.fill,{value:xo(u,t.dataKey),color:f,payload:r,type:t.legendType}})}),LK=Y([pM,Ab,Nb,Lt],(e,t,n,r)=>{if(!(t==null||e==null))return IY({offset:r,pieSettings:t,displayedData:e,cells:n})}),vy={exports:{}},Je={};/**
 * @license React
 * react-is.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 _A;function BK(){if(_A)return Je;_A=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function S(j){if(typeof j=="object"&&j!==null){var _=j.$$typeof;switch(_){case e:switch(j=j.type,j){case n:case l:case r:case d:case h:case b:return j;default:switch(j=j&&j.$$typeof,j){case u:case f:case y:case p:return j;case o:return j;default:return _}}case t:return _}}}return Je.ContextConsumer=o,Je.ContextProvider=u,Je.Element=e,Je.ForwardRef=f,Je.Fragment=n,Je.Lazy=y,Je.Memo=p,Je.Portal=t,Je.Profiler=l,Je.StrictMode=r,Je.Suspense=d,Je.SuspenseList=h,Je.isContextConsumer=function(j){return S(j)===o},Je.isContextProvider=function(j){return S(j)===u},Je.isElement=function(j){return typeof j=="object"&&j!==null&&j.$$typeof===e},Je.isForwardRef=function(j){return S(j)===f},Je.isFragment=function(j){return S(j)===n},Je.isLazy=function(j){return S(j)===y},Je.isMemo=function(j){return S(j)===p},Je.isPortal=function(j){return S(j)===t},Je.isProfiler=function(j){return S(j)===l},Je.isStrictMode=function(j){return S(j)===r},Je.isSuspense=function(j){return S(j)===d},Je.isSuspenseList=function(j){return S(j)===h},Je.isValidElementType=function(j){return typeof j=="string"||typeof j=="function"||j===n||j===l||j===r||j===d||j===h||typeof j=="object"&&j!==null&&(j.$$typeof===y||j.$$typeof===p||j.$$typeof===u||j.$$typeof===o||j.$$typeof===f||j.$$typeof===w||j.getModuleId!==void 0)},Je.typeOf=S,Je}var OA;function IK(){return OA||(OA=1,vy.exports=BK()),vy.exports}var $K=IK(),AA=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",NA=null,yy=null,vM=e=>{if(e===NA&&Array.isArray(yy))return yy;var t=[];return x.Children.forEach(e,n=>{pt(n)||($K.isFragment(n)?t=t.concat(vM(n.props.children)):t.push(n))}),yy=t,NA=e,t};function Eb(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(l=>AA(l)):r=[AA(t)],vM(e).forEach(l=>{var o=Ji(l,"type.displayName")||Ji(l,"type.name");o&&r.indexOf(o)!==-1&&n.push(l)}),n}var yM=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,gy={},EA;function UK(){return EA||(EA=1,(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var l;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const o=n[Symbol.toStringTag];return o==null||!((l=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&l.writable)?!1:n.toString()===`[object ${o}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(gy)),gy}var by,CA;function qK(){return CA||(CA=1,by=UK().isPlainObject),by}var HK=qK();const FK=zr(HK);var TA,MA,DA,kA,PA;function RA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?RA(Object(n),!0).forEach(function(r){KK(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 KK(e,t,n){return(t=YK(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YK(e){var t=GK(e,"string");return typeof t=="symbol"?t:t+""}function GK(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vd(){return vd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vd.apply(null,arguments)}function Ps(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var LA=(e,t,n,r,l)=>{var o=n-r,u;return u=bt(TA||(TA=Ps(["M ",",",""])),e,t),u+=bt(MA||(MA=Ps(["L ",",",""])),e+n,t),u+=bt(DA||(DA=Ps(["L ",",",""])),e+n-o/2,t+l),u+=bt(kA||(kA=Ps(["L ",",",""])),e+n-o/2-r,t+l),u+=bt(PA||(PA=Ps(["L ",","," Z"])),e,t),u},VK={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},XK=e=>{var t=Pt(e,VK),{x:n,y:r,upperWidth:l,lowerWidth:o,height:u,className:f}=t,{animationEasing:d,animationDuration:h,animationBegin:p,isUpdateAnimationActive:y}=t,b=x.useRef(null),[w,S]=x.useState(-1),j=x.useRef(l),_=x.useRef(o),A=x.useRef(u),N=x.useRef(n),C=x.useRef(r),D=mu(e,"trapezoid-");if(x.useEffect(()=>{if(b.current&&b.current.getTotalLength)try{var le=b.current.getTotalLength();le&&S(le)}catch{}},[]),n!==+n||r!==+r||l!==+l||o!==+o||u!==+u||l===0&&o===0||u===0)return null;var k=qe("recharts-trapezoid",f);if(!y)return x.createElement("g",null,x.createElement("path",vd({},pn(t),{className:k,d:LA(n,r,l,o,u)})));var T=j.current,P=_.current,$=A.current,X=N.current,Z=C.current,te="0px ".concat(w===-1?1:w,"px"),R="".concat(w,"px 0px"),ce=BC(["strokeDasharray"],h,d);return x.createElement(hu,{animationId:D,key:D,canBegin:w>0,duration:h,easing:d,isActive:y,begin:p},le=>{var fe=ut(T,l,le),U=ut(P,o,le),Q=ut($,u,le),se=ut(X,n,le),de=ut(Z,r,le);b.current&&(j.current=fe,_.current=U,A.current=Q,N.current=se,C.current=de);var B=le>0?{transition:ce,strokeDasharray:R}:{strokeDasharray:te};return x.createElement("path",vd({},pn(t),{className:k,d:LA(se,de,fe,U,Q),ref:b,style:zA(zA({},B),t.style)}))})},ZK=["option","shapeType","activeClassName"];function WK(e,t){if(e==null)return{};var n,r,l=QK(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function QK(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function BA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function yd(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){JK(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 JK(e,t,n){return(t=eY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eY(e){var t=tY(e,"string");return typeof t=="symbol"?t:t+""}function tY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nY(e,t){return yd(yd({},t),e)}function rY(e,t){return e==="symbols"}function IA(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return x.createElement(qC,n);case"trapezoid":return x.createElement(XK,n);case"sector":return x.createElement(YC,n);case"symbols":if(rY(t))return x.createElement(Qg,n);break;case"curve":return x.createElement(io,n);default:return null}}function aY(e){return x.isValidElement(e)?e.props:e}function gM(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape"}=e,l=WK(e,ZK),o;if(x.isValidElement(t))o=x.cloneElement(t,yd(yd({},l),aY(t)));else if(typeof t=="function")o=t(l,l.index);else if(FK(t)&&typeof t!="boolean"){var u=nY(t,l);o=x.createElement(IA,{shapeType:n,elementProps:u})}else{var f=l;o=x.createElement(IA,{shapeType:n,elementProps:f})}return l.isActive?x.createElement(Ot,{className:r},o):o}var Cb=(e,t,n)=>{var r=it();return(l,o)=>u=>{e==null||e(l,o,u),r(E5({activeIndex:String(o),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}},Tb=e=>{var t=it();return(n,r)=>l=>{e==null||e(n,r,l),t(dq())}},Mb=(e,t,n)=>{var r=it();return(l,o)=>u=>{e==null||e(l,o,u),r(hq({activeIndex:String(o),activeDataKey:t,activeCoordinate:l.tooltipPosition,activeGraphicalItemId:n}))}};function Db(e){var{tooltipEntrySettings:t}=e,n=it(),r=cn(),l=x.useRef(null);return x.useLayoutEffect(()=>{r||(l.current===null?n(sq(t)):l.current!==t&&n(uq({prev:l.current,next:t})),l.current=t)},[t,n,r]),x.useLayoutEffect(()=>()=>{l.current&&(n(cq(l.current)),l.current=null)},[n]),null}function bM(e){var{legendPayload:t}=e,n=it(),r=cn(),l=x.useRef(null);return x.useLayoutEffect(()=>{r||(l.current===null?n(kC(t)):l.current!==t&&n(PC({prev:l.current,next:t})),l.current=t)},[n,r,t]),x.useLayoutEffect(()=>()=>{l.current&&(n(RC(l.current)),l.current=null)},[n]),null}function iY(e){var{legendPayload:t}=e,n=it(),r=ye(Be),l=x.useRef(null);return x.useLayoutEffect(()=>{r!=="centric"&&r!=="radial"||(l.current===null?n(kC(t)):l.current!==t&&n(PC({prev:l.current,next:t})),l.current=t)},[n,r,t]),x.useLayoutEffect(()=>()=>{l.current&&(n(RC(l.current)),l.current=null)},[n]),null}var xy,lY=()=>{var[e]=x.useState(()=>Is("uid-"));return e},oY=(xy=Ck.useId)!==null&&xy!==void 0?xy:lY;function sY(e,t){var n=oY();return t||(e?"".concat(e,"-").concat(n):n)}var uY=x.createContext(void 0),kb=e=>{var{id:t,type:n,children:r}=e,l=sY("recharts-".concat(n),t);return x.createElement(uY.Provider,{value:l},r(l))},cY={cartesianItems:[],polarItems:[]},xM=En({name:"graphicalItems",initialState:cY,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:ft()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,l=br(e).cartesianItems.indexOf(n);l>-1&&(e.cartesianItems[l]=r)},prepare:ft()},removeCartesianGraphicalItem:{reducer(e,t){var n=br(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:ft()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:ft()},removePolarGraphicalItem:{reducer(e,t){var n=br(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:ft()}}}),{addCartesianGraphicalItem:fY,replaceCartesianGraphicalItem:dY,removeCartesianGraphicalItem:hY,addPolarGraphicalItem:mY,removePolarGraphicalItem:pY}=xM.actions,vY=xM.reducer,yY=e=>{var t=it(),n=x.useRef(null);return x.useLayoutEffect(()=>{n.current===null?t(fY(e)):n.current!==e&&t(dY({prev:n.current,next:e})),n.current=e},[t,e]),x.useLayoutEffect(()=>()=>{n.current&&(t(hY(n.current)),n.current=null)},[t]),null},wM=x.memo(yY);function gY(e){var t=it();return x.useLayoutEffect(()=>(t(mY(e)),()=>{t(pY(e))}),[t,e]),null}var bY=["key"],xY=["onMouseEnter","onClick","onMouseLeave"],wY=["id"],SY=["id"];function $A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?$A(Object(n),!0).forEach(function(r){jY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jY(e,t,n){return(t=_Y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Y(e){var t=OY(e,"string");return typeof t=="symbol"?t:t+""}function OY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fi(){return fi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fi.apply(null,arguments)}function xh(e,t){if(e==null)return{};var n,r,l=AY(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function AY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function NY(e){var t=x.useMemo(()=>Eb(e.children,Vi),[e.children]),n=ye(r=>zK(r,e.id,t));return n==null?null:x.createElement(iY,{legendPayload:n})}var EY=x.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:l,strokeWidth:o,fill:u,name:f,hide:d,tooltipType:h,id:p}=e,y={dataDefinedOnItem:r.map(b=>b.tooltipPayload),positions:r.map(b=>b.tooltipPosition),settings:{stroke:l,strokeWidth:o,fill:u,dataKey:t,nameKey:n,name:xo(f,t),hide:d,type:h,color:u,unit:"",graphicalItemId:p}};return x.createElement(Db,{tooltipEntrySettings:y})}),CY=(e,t)=>e>t?"start":e<t?"end":"middle",TY=(e,t,n)=>un(typeof t=="function"?t(e):t,n,n*.8),MY=(e,t,n)=>{var{top:r,left:l,width:o,height:u}=t,f=HC(o,u),d=l+un(e.cx,o,o/2),h=r+un(e.cy,u,u/2),p=un(e.innerRadius,f,0),y=TY(n,e.outerRadius,f),b=e.maxRadius||Math.sqrt(o*o+u*u)/2;return{cx:d,cy:h,innerRadius:p,outerRadius:y,maxRadius:b}},DY=(e,t)=>{var n=Gt(t-e),r=Math.min(Math.abs(t-e),360);return n*r};function kY(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var PY=(e,t)=>{if(x.isValidElement(e))return x.cloneElement(e,t);if(typeof e=="function")return e(t);var n=qe("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:r}=t,l=xh(t,bY);return x.createElement(io,fi({},l,{type:"linear",className:n}))},RY=(e,t,n)=>{if(x.isValidElement(e))return x.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),x.isValidElement(r)))return r;var l=qe("recharts-pie-label-text",kY(e));return x.createElement(yh,fi({},t,{alignmentBaseline:"middle",className:l}),r)};function zY(e){var{sectors:t,props:n,showLabels:r}=e,{label:l,labelLine:o,dataKey:u}=n;if(!r||!l||!t)return null;var f=Nn(n),d=Wi(l),h=Wi(o),p=typeof l=="object"&&"offsetRadius"in l&&typeof l.offsetRadius=="number"&&l.offsetRadius||20,y=t.map((b,w)=>{var S=(b.startAngle+b.endAngle)/2,j=Mt(b.cx,b.cy,b.outerRadius+p,S),_=xt(xt(xt(xt({},f),b),{},{stroke:"none"},d),{},{index:w,textAnchor:CY(j.x,b.cx)},j),A=xt(xt(xt(xt({},f),b),{},{fill:"none",stroke:b.fill},h),{},{index:w,points:[Mt(b.cx,b.cy,b.outerRadius,S),j],key:"line"});return x.createElement(Cn,{zIndex:Dt.label,key:"label-".concat(b.startAngle,"-").concat(b.endAngle,"-").concat(b.midAngle,"-").concat(w)},x.createElement(Ot,null,o&&PY(o,A),RY(l,_,et(b,u))))});return x.createElement(Ot,{className:"recharts-pie-labels"},y)}function LY(e){var{sectors:t,props:n,showLabels:r}=e,{label:l}=n;return typeof l=="object"&&l!=null&&"position"in l?x.createElement(Ob,{label:l}):x.createElement(zY,{sectors:t,props:n,showLabels:r})}function BY(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:l,shape:o,id:u}=e,f=ye(ci),d=ye(gb),h=ye(Qq),{onMouseEnter:p,onClick:y,onMouseLeave:b}=l,w=xh(l,xY),S=Cb(p,l.dataKey,u),j=Tb(b),_=Mb(y,l.dataKey,u);return t==null||t.length===0?null:x.createElement(x.Fragment,null,t.map((A,N)=>{if((A==null?void 0:A.startAngle)===0&&(A==null?void 0:A.endAngle)===0&&t.length!==1)return null;var C=h==null||h===u,D=String(N)===f&&(d==null||l.dataKey===d)&&C,k=f?r:null,T=n&&D?n:k,P=xt(xt({},A),{},{stroke:A.stroke,tabIndex:-1,[bC]:N,[xC]:u});return x.createElement(Ot,fi({key:"sector-".concat(A==null?void 0:A.startAngle,"-").concat(A==null?void 0:A.endAngle,"-").concat(A.midAngle,"-").concat(N),tabIndex:-1,className:"recharts-pie-sector"},ou(w,A,N),{onMouseEnter:S(A,N),onMouseLeave:j(A,N),onClick:_(A,N)}),x.createElement(gM,fi({option:o??T,index:N,shapeType:"sector",isActive:D},P)))}))}function IY(e){var t,{pieSettings:n,displayedData:r,cells:l,offset:o}=e,{cornerRadius:u,startAngle:f,endAngle:d,dataKey:h,nameKey:p,tooltipType:y}=n,b=Math.abs(n.minAngle),w=DY(f,d),S=Math.abs(w),j=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,_=r.filter(T=>et(T,h,0)!==0).length,A=(S>=360?_:_-1)*j,N=S-_*b-A,C=r.reduce((T,P)=>{var $=et(P,h,0);return T+(he($)?$:0)},0),D;if(C>0){var k;D=r.map((T,P)=>{var $=et(T,h,0),X=et(T,p,P),Z=MY(n,o,T),te=(he($)?$:0)/C,R,ce=xt(xt({},T),l&&l[P]&&l[P].props);P?R=k.endAngle+Gt(w)*j*($!==0?1:0):R=f;var le=R+Gt(w)*(($!==0?b:0)+te*N),fe=(R+le)/2,U=(Z.innerRadius+Z.outerRadius)/2,Q=[{name:X,value:$,payload:ce,dataKey:h,type:y,graphicalItemId:n.id}],se=Mt(Z.cx,Z.cy,U,fe);return k=xt(xt(xt(xt({},n.presentationProps),{},{percent:te,cornerRadius:typeof u=="string"?parseFloat(u):u,name:X,tooltipPayload:Q,midAngle:fe,middleRadius:U,tooltipPosition:se},ce),Z),{},{value:$,dataKey:h,startAngle:R,endAngle:le,payload:ce,paddingAngle:Gt(w)*j}),k})}return D}function $Y(e){var{showLabels:t,sectors:n,children:r}=e,l=x.useMemo(()=>!t||!n?[]:n.map(o=>({value:o.value,payload:o.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:o.cx,cy:o.cy,innerRadius:o.innerRadius,outerRadius:o.outerRadius,startAngle:o.startAngle,endAngle:o.endAngle,clockWise:!1},fill:o.fill})),[n,t]);return x.createElement(xK,{value:t?l:void 0},r)}function UY(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:l,isAnimationActive:o,animationBegin:u,animationDuration:f,animationEasing:d,activeShape:h,inactiveShape:p,onAnimationStart:y,onAnimationEnd:b}=t,w=mu(t,"recharts-pie-"),S=n.current,[j,_]=x.useState(!1),A=x.useCallback(()=>{typeof b=="function"&&b(),_(!1)},[b]),N=x.useCallback(()=>{typeof y=="function"&&y(),_(!0)},[y]);return x.createElement($Y,{showLabels:!j,sectors:l},x.createElement(hu,{animationId:w,begin:u,duration:f,isActive:o,easing:d,onAnimationStart:N,onAnimationEnd:A,key:w},C=>{var D=[],k=l&&l[0],T=k==null?void 0:k.startAngle;return l==null||l.forEach((P,$)=>{var X=S&&S[$],Z=$>0?Ji(P,"paddingAngle",0):0;if(X){var te=ut(X.endAngle-X.startAngle,P.endAngle-P.startAngle,C),R=xt(xt({},P),{},{startAngle:T+Z,endAngle:T+te+Z});D.push(R),T=R.endAngle}else{var{endAngle:ce,startAngle:le}=P,fe=ut(0,ce-le,C),U=xt(xt({},P),{},{startAngle:T+Z,endAngle:T+fe+Z});D.push(U),T=U.endAngle}}),n.current=D,x.createElement(Ot,null,x.createElement(BY,{sectors:D,activeShape:h,inactiveShape:p,allOtherPieProps:t,shape:t.shape,id:r}))}),x.createElement(LY,{showLabels:!j,sectors:l,props:t}),t.children)}var qY={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:Dt.area};function HY(e){var{id:t}=e,n=xh(e,wY),{hide:r,className:l,rootTabIndex:o}=e,u=x.useMemo(()=>Eb(e.children,Vi),[e.children]),f=ye(p=>LK(p,t,u)),d=x.useRef(null),h=qe("recharts-pie",l);return r||f==null?(d.current=null,x.createElement(Ot,{tabIndex:o,className:h})):x.createElement(Cn,{zIndex:e.zIndex},x.createElement(EY,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:f,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),x.createElement(Ot,{tabIndex:o,className:h},x.createElement(UY,{props:xt(xt({},n),{},{sectors:f}),previousSectorsRef:d,id:t})))}function Ng(e){var t=Pt(e,qY),{id:n}=t,r=xh(t,SY),l=Nn(r);return x.createElement(kb,{id:n,type:"pie"},o=>x.createElement(x.Fragment,null,x.createElement(gY,{type:"pie",id:o,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:l,maxRadius:t.maxRadius}),x.createElement(NY,fi({},r,{id:o})),x.createElement(HY,fi({},r,{id:o}))))}Ng.displayName="Pie";var FY=["points"];function UA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function wy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UA(Object(n),!0).forEach(function(r){KY(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KY(e,t,n){return(t=YY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YY(e){var t=GY(e,"string");return typeof t=="symbol"?t:t+""}function GY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gd(){return gd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gd.apply(null,arguments)}function VY(e,t){if(e==null)return{};var n,r,l=XY(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function XY(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function ZY(e){var{option:t,dotProps:n,className:r}=e;if(x.isValidElement(t))return x.cloneElement(t,n);if(typeof t=="function")return t(n);var l=qe(r,typeof t!="boolean"?t.className:""),o=n??{},{points:u}=o,f=VY(o,FY);return x.createElement(fM,gd({},f,{className:l}))}function WY(e,t){return e==null?!1:t?!0:e.length===1}function QY(e){var{points:t,dot:n,className:r,dotClassName:l,dataKey:o,baseProps:u,needClip:f,clipPathId:d,zIndex:h=Dt.scatter}=e;if(!WY(t,n))return null;var p=yM(n),y=mR(n),b=t.map((S,j)=>{var _,A,N=wy(wy(wy({r:3},u),y),{},{index:j,cx:(_=S.x)!==null&&_!==void 0?_:void 0,cy:(A=S.y)!==null&&A!==void 0?A:void 0,dataKey:o,value:S.value,payload:S.payload,points:t});return x.createElement(ZY,{key:"dot-".concat(j),option:n,dotProps:N,className:l})}),w={};return f&&d!=null&&(w.clipPath="url(#clipPath-".concat(p?"":"dots-").concat(d,")")),x.createElement(Cn,{zIndex:h},x.createElement(Ot,gd({className:r},w),b))}function qA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).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?qA(Object(n),!0).forEach(function(r){JY(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 JY(e,t,n){return(t=eG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eG(e){var t=tG(e,"string");return typeof t=="symbol"?t:t+""}function tG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SM=0,nG={xAxis:{},yAxis:{},zAxis:{}},jM=En({name:"cartesianAxis",initialState:nG,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:ft()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:ft()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:ft()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:ft()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:ft()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:ft()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:ft()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:ft()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:ft()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,l=e.yAxis[n];if(l){var o=l.widthHistory||[];if(o.length===3&&o[0]===o[2]&&r===o[1]&&r!==l.width&&Math.abs(r-o[0])<=1)return;var u=[...o,r].slice(-3);e.yAxis[n]=HA(HA({},e.yAxis[n]),{},{width:r,widthHistory:u})}}}}),{addXAxis:rG,replaceXAxis:aG,removeXAxis:iG,addYAxis:lG,replaceYAxis:oG,removeYAxis:sG,addZAxis:sQ,replaceZAxis:uQ,removeZAxis:cQ,updateYAxisWidth:uG}=jM.actions,cG=jM.reducer,fG=Y([Lt],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),dG=Y([fG,wa,Sa],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),Pb=()=>ye(dG),hG=()=>ye(rH);function FA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Sy(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){mG(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 mG(e,t,n){return(t=pG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pG(e){var t=vG(e,"string");return typeof t=="symbol"?t:t+""}function vG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yG=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:l,dataKey:o,clipPath:u}=e;if(l===!1||t.x==null||t.y==null)return null;var f={index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},d=Sy(Sy(Sy({},f),Wi(l)),Jg(l)),h;return x.isValidElement(l)?h=x.cloneElement(l,d):typeof l=="function"?h=l(d):h=x.createElement(fM,d),x.createElement(Ot,{className:"recharts-active-dot",clipPath:u},h)};function KA(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:l,clipPath:o,zIndex:u=Dt.activeDot}=e,f=ye(ci),d=hG();if(t==null||d==null)return null;var h=t.find(p=>d.includes(p.payload));return pt(h)?null:x.createElement(Cn,{zIndex:u},x.createElement(yG,{point:h,childIndex:Number(f),mainColor:n,dataKey:l,activeDot:r,clipPath:o}))}var YA=(e,t,n)=>{var r=n??e;if(!pt(r))return un(r,t,0)},gG=(e,t,n)=>{var r={},l=e.filter(sh),o=e.filter(h=>h.stackId==null),u=l.reduce((h,p)=>(h[p.stackId]||(h[p.stackId]=[]),h[p.stackId].push(p),h),r),f=Object.entries(u).map(h=>{var[p,y]=h,b=y.map(S=>S.dataKey),w=YA(t,n,y[0].barSize);return{stackId:p,dataKeys:b,barSize:w}}),d=o.map(h=>{var p=[h.dataKey].filter(b=>b!=null),y=YA(t,n,h.barSize);return{stackId:void 0,dataKeys:p,barSize:y}});return[...f,...d]};function GA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function uf(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){bG(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 bG(e,t,n){return(t=xG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xG(e){var t=wG(e,"string");return typeof t=="symbol"?t:t+""}function wG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function SG(e,t,n,r,l){var o=r.length;if(!(o<1)){var u=un(e,n,0,!0),f,d=[];if(rt(r[0].barSize)){var h=!1,p=n/o,y=r.reduce((A,N)=>A+(N.barSize||0),0);y+=(o-1)*u,y>=n&&(y-=(o-1)*u,u=0),y>=n&&p>0&&(h=!0,p*=.9,y=o*p);var b=(n-y)/2>>0,w={offset:b-u,size:0};f=r.reduce((A,N)=>{var C,D={stackId:N.stackId,dataKeys:N.dataKeys,position:{offset:w.offset+w.size+u,size:h?p:(C=N.barSize)!==null&&C!==void 0?C:0}},k=[...A,D];return w=k[k.length-1].position,k},d)}else{var S=un(t,n,0,!0);n-2*S-(o-1)*u<=0&&(u=0);var j=(n-2*S-(o-1)*u)/o;j>1&&(j>>=0);var _=rt(l)?Math.min(j,l):j;f=r.reduce((A,N,C)=>[...A,{stackId:N.stackId,dataKeys:N.dataKeys,position:{offset:S+(j+u)*C+(j-_)/2,size:_}}],d)}return f}}var jG=(e,t,n,r,l,o,u)=>{var f=pt(u)?t:u,d=SG(n,r,l!==o?l:o,e,f);return l!==o&&d!=null&&(d=d.map(h=>uf(uf({},h),{},{position:uf(uf({},h.position),{},{offset:h.position.offset-l/2})}))),d},_G=(e,t)=>{var n=oh(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var l=e[r];if(l){var{stackedData:o}=l;if(o)return o.find(u=>u.key===n)}}}};function OG(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&rt(e.zIndex)?e.zIndex:t}var _M=e=>{var{chartData:t}=e,n=it(),r=cn();return x.useEffect(()=>r?()=>{}:(n(JO(t)),()=>{n(JO(void 0))}),[t,n,r]),null},VA={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},OM=En({name:"brush",initialState:VA,reducers:{setBrushSettings(e,t){return t.payload==null?VA:t.payload}}}),{setBrushSettings:fQ}=OM.actions,AG=OM.reducer;function NG(e,t,n){return(t=EG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EG(e){var t=CG(e,"string");return typeof t=="symbol"?t:t+""}function CG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Rb{static create(t){return new Rb(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+l}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(n){var u=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+u}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],l=n[n.length-1];return r<=l?t>=r&&t<=l:t>=l&&t<=r}}NG(Rb,"EPS",1e-4);function TG(e){return(e%180+180)%180}var MG=function(t){var{width:n,height:r}=t,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=TG(l),u=o*Math.PI/180,f=Math.atan(r/n),d=u>f&&u<Math.PI-f?r/Math.sin(u):n/Math.cos(u);return Math.abs(d)},DG={dots:[],areas:[],lines:[]},AM=En({name:"referenceElements",initialState:DG,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=br(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=br(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=br(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:dQ,removeDot:hQ,addArea:mQ,removeArea:pQ,addLine:vQ,removeLine:yQ}=AM.actions,kG=AM.reducer,PG=x.createContext(void 0),RG=e=>{var{children:t}=e,[n]=x.useState("".concat(Is("recharts"),"-clip")),r=Pb();if(r==null)return null;var{x:l,y:o,width:u,height:f}=r;return x.createElement(PG.Provider,{value:n},x.createElement("defs",null,x.createElement("clipPath",{id:n},x.createElement("rect",{x:l,y:o,height:f,width:u}))),t)};function NM(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var l=e[r];l!==void 0&&n.push(l)}return n}function zG(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return MG(r,n)}function LG(e,t,n){var r=n==="width",{x:l,y:o,width:u,height:f}=e;return t===1?{start:r?l:o,end:r?l+u:o+f}:{start:r?l+u:o+f,end:r?l:o}}function Js(e,t,n,r,l){if(e*t<e*r||e*t>e*l)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-l)<=0}function BG(e,t){return NM(e,t+1)}function IG(e,t,n,r,l){for(var o=(r||[]).slice(),{start:u,end:f}=t,d=0,h=1,p=u,y=function(){var S=r==null?void 0:r[d];if(S===void 0)return{v:NM(r,h)};var j=d,_,A=()=>(_===void 0&&(_=n(S,j)),_),N=S.coordinate,C=d===0||Js(e,N,A,p,f);C||(d=0,p=u,h+=1),C&&(p=N+e*(A()/2+l),d+=h)},b;h<=o.length;)if(b=y(),b)return b.v;return[]}function $G(e,t,n,r,l){var o=(r||[]).slice(),u=o.length;if(u===0)return[];for(var{start:f,end:d}=t,h=1;h<=u;h++){for(var p=(u-1)%h,y=f,b=!0,w=function(){var N=r[S],C=S,D,k=()=>(D===void 0&&(D=n(N,C)),D),T=N.coordinate,P=S===p||Js(e,T,k,y,d);if(!P)return b=!1,1;P&&(y=T+e*(k()/2+l))},S=p;S<u&&!w();S+=h);if(b){for(var j=[],_=p;_<u;_+=h)j.push(r[_]);return j}}return[]}function XA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function ln(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){UG(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 UG(e,t,n){return(t=qG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qG(e){var t=HG(e,"string");return typeof t=="symbol"?t:t+""}function HG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FG(e,t,n,r,l){for(var o=(r||[]).slice(),u=o.length,{start:f}=t,{end:d}=t,h=function(b){var w=o[b],S,j=()=>(S===void 0&&(S=n(w,b)),S);if(b===u-1){var _=e*(w.coordinate+e*j()/2-d);o[b]=w=ln(ln({},w),{},{tickCoord:_>0?w.coordinate-_*e:w.coordinate})}else o[b]=w=ln(ln({},w),{},{tickCoord:w.coordinate});if(w.tickCoord!=null){var A=Js(e,w.tickCoord,j,f,d);A&&(d=w.tickCoord-e*(j()/2+l),o[b]=ln(ln({},w),{},{isShow:!0}))}},p=u-1;p>=0;p--)h(p);return o}function KG(e,t,n,r,l,o){var u=(r||[]).slice(),f=u.length,{start:d,end:h}=t;if(o){var p=r[f-1],y=n(p,f-1),b=e*(p.coordinate+e*y/2-h);if(u[f-1]=p=ln(ln({},p),{},{tickCoord:b>0?p.coordinate-b*e:p.coordinate}),p.tickCoord!=null){var w=Js(e,p.tickCoord,()=>y,d,h);w&&(h=p.tickCoord-e*(y/2+l),u[f-1]=ln(ln({},p),{},{isShow:!0}))}}for(var S=o?f-1:f,j=function(N){var C=u[N],D,k=()=>(D===void 0&&(D=n(C,N)),D);if(N===0){var T=e*(C.coordinate-e*k()/2-d);u[N]=C=ln(ln({},C),{},{tickCoord:T<0?C.coordinate-T*e:C.coordinate})}else u[N]=C=ln(ln({},C),{},{tickCoord:C.coordinate});if(C.tickCoord!=null){var P=Js(e,C.tickCoord,k,d,h);P&&(d=C.tickCoord+e*(k()/2+l),u[N]=ln(ln({},C),{},{isShow:!0}))}},_=0;_<S;_++)j(_);return u}function zb(e,t,n){var{tick:r,ticks:l,viewBox:o,minTickGap:u,orientation:f,interval:d,tickFormatter:h,unit:p,angle:y}=e;if(!l||!l.length||!r)return[];if(he(d)||du.isSsr){var b;return(b=BG(l,he(d)?d:0))!==null&&b!==void 0?b:[]}var w=[],S=f==="top"||f==="bottom"?"width":"height",j=p&&S==="width"?Ls(p,{fontSize:t,letterSpacing:n}):{width:0,height:0},_=(C,D)=>{var k=typeof h=="function"?h(C.value,D):C.value;return S==="width"?zG(Ls(k,{fontSize:t,letterSpacing:n}),j,y):Ls(k,{fontSize:t,letterSpacing:n})[S]},A=l.length>=2?Gt(l[1].coordinate-l[0].coordinate):1,N=LG(o,A,S);return d==="equidistantPreserveStart"?IG(A,N,_,l,u):d==="equidistantPreserveEnd"?$G(A,N,_,l,u):(d==="preserveStart"||d==="preserveStartEnd"?w=KG(A,N,_,l,u,d==="preserveStartEnd"):w=FG(A,N,_,l,u),w.filter(C=>C.isShow))}var YG=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:l=0,tickMargin:o=0}=e,u=0;if(t){Array.from(t).forEach(p=>{if(p){var y=p.getBoundingClientRect();y.width>u&&(u=y.width)}});var f=n?n.getBoundingClientRect().width:0,d=l+o,h=u+d+f+(n?r:0);return Math.round(h)}return 0},GG=["axisLine","width","height","className","hide","ticks","axisType"];function VG(e,t){if(e==null)return{};var n,r,l=XG(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function XG(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function al(){return al=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},al.apply(null,arguments)}function ZA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function Tt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZA(Object(n),!0).forEach(function(r){ZG(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ZG(e,t,n){return(t=WG(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WG(e){var t=QG(e,"string");return typeof t=="symbol"?t:t+""}function QG(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var da={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",zIndex:Dt.axis};function JG(e){var{x:t,y:n,width:r,height:l,orientation:o,mirror:u,axisLine:f,otherSvgProps:d}=e;if(!f)return null;var h=Tt(Tt(Tt({},d),Nn(f)),{},{fill:"none"});if(o==="top"||o==="bottom"){var p=+(o==="top"&&!u||o==="bottom"&&u);h=Tt(Tt({},h),{},{x1:t,y1:n+p*l,x2:t+r,y2:n+p*l})}else{var y=+(o==="left"&&!u||o==="right"&&u);h=Tt(Tt({},h),{},{x1:t+y*r,y1:n,x2:t+y*r,y2:n+l})}return x.createElement("line",al({},h,{className:qe("recharts-cartesian-axis-line",Ji(f,"className"))}))}function eV(e,t,n,r,l,o,u,f,d){var h,p,y,b,w,S,j=f?-1:1,_=e.tickSize||u,A=he(e.tickCoord)?e.tickCoord:e.coordinate;switch(o){case"top":h=p=e.coordinate,b=n+ +!f*l,y=b-j*_,S=y-j*d,w=A;break;case"left":y=b=e.coordinate,p=t+ +!f*r,h=p-j*_,w=h-j*d,S=A;break;case"right":y=b=e.coordinate,p=t+ +f*r,h=p+j*_,w=h+j*d,S=A;break;default:h=p=e.coordinate,b=n+ +f*l,y=b+j*_,S=y+j*d,w=A;break}return{line:{x1:h,y1:y,x2:p,y2:b},tick:{x:w,y:S}}}function tV(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function nV(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function rV(e){var{option:t,tickProps:n,value:r}=e,l,o=qe(n.className,"recharts-cartesian-axis-tick-value");if(x.isValidElement(t))l=x.cloneElement(t,Tt(Tt({},n),{},{className:o}));else if(typeof t=="function")l=t(Tt(Tt({},n),{},{className:o}));else{var u="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(u=qe(u,t==null?void 0:t.className)),l=x.createElement(yh,al({},n,{className:u}),r)}return l}var aV=x.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:l,stroke:o,tickFormatter:u,unit:f,padding:d,tickTextProps:h,orientation:p,mirror:y,x:b,y:w,width:S,height:j,tickSize:_,tickMargin:A,fontSize:N,letterSpacing:C,getTicksConfig:D,events:k,axisType:T}=e,P=zb(Tt(Tt({},D),{},{ticks:n}),N,C),$=tV(p,y),X=nV(p,y),Z=Nn(D),te=Wi(r),R={};typeof l=="object"&&(R=l);var ce=Tt(Tt({},Z),{},{fill:"none"},R),le=P.map(Q=>Tt({entry:Q},eV(Q,b,w,S,j,p,_,y,A))),fe=le.map(Q=>{var{entry:se,line:de}=Q;return x.createElement(Ot,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(se.value,"-").concat(se.coordinate,"-").concat(se.tickCoord)},l&&x.createElement("line",al({},ce,de,{className:qe("recharts-cartesian-axis-tick-line",Ji(l,"className"))})))}),U=le.map((Q,se)=>{var{entry:de,tick:B}=Q,M=Tt(Tt(Tt(Tt({textAnchor:$,verticalAnchor:X},Z),{},{stroke:"none",fill:o},te),B),{},{index:se,payload:de,visibleTicksCount:P.length,tickFormatter:u,padding:d},h);return x.createElement(Ot,al({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(de.value,"-").concat(de.coordinate,"-").concat(de.tickCoord)},ou(k,de,se)),r&&x.createElement(rV,{option:r,tickProps:M,value:"".concat(typeof u=="function"?u(de.value,se):de.value).concat(f||"")}))});return x.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat(T,"-ticks")},U.length>0&&x.createElement(Cn,{zIndex:Dt.label},x.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat(T,"-tick-labels"),ref:t},U)),fe.length>0&&x.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat(T,"-tick-lines")},fe))}),iV=x.forwardRef((e,t)=>{var{axisLine:n,width:r,height:l,className:o,hide:u,ticks:f,axisType:d}=e,h=VG(e,GG),[p,y]=x.useState(""),[b,w]=x.useState(""),S=x.useRef(null);x.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var _;return YG({ticks:S.current,label:(_=e.labelRef)===null||_===void 0?void 0:_.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var j=x.useCallback(_=>{if(_){var A=_.getElementsByClassName("recharts-cartesian-axis-tick-value");S.current=A;var N=A[0];if(N){var C=window.getComputedStyle(N),D=C.fontSize,k=C.letterSpacing;(D!==p||k!==b)&&(y(D),w(k))}}},[p,b]);return u||r!=null&&r<=0||l!=null&&l<=0?null:x.createElement(Cn,{zIndex:e.zIndex},x.createElement(Ot,{className:qe("recharts-cartesian-axis",o)},x.createElement(JG,{x:e.x,y:e.y,width:r,height:l,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Nn(e)}),x.createElement(aV,{ref:j,axisType:d,events:h,fontSize:p,getTicksConfig:e,height:e.height,letterSpacing:b,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:f,unit:e.unit,width:e.width,x:e.x,y:e.y}),x.createElement(JF,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},x.createElement(uK,{label:e.label,labelRef:e.labelRef}),e.children)))}),Lb=x.forwardRef((e,t)=>{var n=Pt(e,da);return x.createElement(iV,al({},n,{ref:t}))});Lb.displayName="CartesianAxis";var lV=["x1","y1","x2","y2","key"],oV=["offset"],sV=["xAxisId","yAxisId"],uV=["xAxisId","yAxisId"];function WA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WA(Object(n),!0).forEach(function(r){cV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cV(e,t,n){return(t=fV(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fV(e){var t=dV(e,"string");return typeof t=="symbol"?t:t+""}function dV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qi(){return qi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qi.apply(null,arguments)}function bd(e,t){if(e==null)return{};var n,r,l=hV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function hV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var mV=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:l,width:o,height:u,ry:f}=e;return x.createElement("rect",{x:r,y:l,ry:f,width:o,height:u,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function EM(e){var{option:t,lineItemProps:n}=e,r;if(x.isValidElement(t))r=x.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var l,{x1:o,y1:u,x2:f,y2:d,key:h}=n,p=bd(n,lV),y=(l=Nn(p))!==null&&l!==void 0?l:{},{offset:b}=y,w=bd(y,oV);r=x.createElement("line",qi({},w,{x1:o,y1:u,x2:f,y2:d,fill:"none",key:h}))}return r}function pV(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:l}=e;if(!r||!l||!l.length)return null;var{xAxisId:o,yAxisId:u}=e,f=bd(e,sV),d=l.map((h,p)=>{var y=on(on({},f),{},{x1:t,y1:h,x2:t+n,y2:h,key:"line-".concat(p),index:p});return x.createElement(EM,{key:"line-".concat(p),option:r,lineItemProps:y})});return x.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}function vV(e){var{y:t,height:n,vertical:r=!0,verticalPoints:l}=e;if(!r||!l||!l.length)return null;var{xAxisId:o,yAxisId:u}=e,f=bd(e,uV),d=l.map((h,p)=>{var y=on(on({},f),{},{x1:h,y1:t,x2:h,y2:t+n,key:"line-".concat(p),index:p});return x.createElement(EM,{option:r,lineItemProps:y,key:"line-".concat(p)})});return x.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}function yV(e){var{horizontalFill:t,fillOpacity:n,x:r,y:l,width:o,height:u,horizontalPoints:f,horizontal:d=!0}=e;if(!d||!t||!t.length||f==null)return null;var h=f.map(y=>Math.round(y+l-l)).sort((y,b)=>y-b);l!==h[0]&&h.unshift(0);var p=h.map((y,b)=>{var w=!h[b+1],S=w?l+u-y:h[b+1]-y;if(S<=0)return null;var j=b%t.length;return x.createElement("rect",{key:"react-".concat(b),y,x:r,height:S,width:o,stroke:"none",fill:t[j],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function gV(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:l,y:o,width:u,height:f,verticalPoints:d}=e;if(!t||!n||!n.length)return null;var h=d.map(y=>Math.round(y+l-l)).sort((y,b)=>y-b);l!==h[0]&&h.unshift(0);var p=h.map((y,b)=>{var w=!h[b+1],S=w?l+u-y:h[b+1]-y;if(S<=0)return null;var j=b%n.length;return x.createElement("rect",{key:"react-".concat(b),x:y,y:o,width:S,height:f,stroke:"none",fill:n[j],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return x.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var bV=(e,t)=>{var{xAxis:n,width:r,height:l,offset:o}=e;return pC(zb(on(on(on({},da),n),{},{ticks:vC(n),viewBox:{x:0,y:0,width:r,height:l}})),o.left,o.left+o.width,t)},xV=(e,t)=>{var{yAxis:n,width:r,height:l,offset:o}=e;return pC(zb(on(on(on({},da),n),{},{ticks:vC(n),viewBox:{x:0,y:0,width:r,height:l}})),o.top,o.top+o.height,t)},wV={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Dt.grid};function Eg(e){var t=f0(),n=d0(),r=OC(),l=on(on({},Pt(e,wV)),{},{x:he(e.x)?e.x:r.left,y:he(e.y)?e.y:r.top,width:he(e.width)?e.width:r.width,height:he(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:u,x:f,y:d,width:h,height:p,syncWithTicks:y,horizontalValues:b,verticalValues:w}=l,S=cn(),j=ye(X=>UO(X,"xAxis",o,S)),_=ye(X=>UO(X,"yAxis",u,S));if(!Pr(h)||!Pr(p)||!he(f)||!he(d))return null;var A=l.verticalCoordinatesGenerator||bV,N=l.horizontalCoordinatesGenerator||xV,{horizontalPoints:C,verticalPoints:D}=l;if((!C||!C.length)&&typeof N=="function"){var k=b&&b.length,T=N({yAxis:_?on(on({},_),{},{ticks:k?b:_.ticks}):void 0,width:t??h,height:n??p,offset:r},k?!0:y);Kf(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof T,"]")),Array.isArray(T)&&(C=T)}if((!D||!D.length)&&typeof A=="function"){var P=w&&w.length,$=A({xAxis:j?on(on({},j),{},{ticks:P?w:j.ticks}):void 0,width:t??h,height:n??p,offset:r},P?!0:y);Kf(Array.isArray($),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof $,"]")),Array.isArray($)&&(D=$)}return x.createElement(Cn,{zIndex:l.zIndex},x.createElement("g",{className:"recharts-cartesian-grid"},x.createElement(mV,{fill:l.fill,fillOpacity:l.fillOpacity,x:l.x,y:l.y,width:l.width,height:l.height,ry:l.ry}),x.createElement(yV,qi({},l,{horizontalPoints:C})),x.createElement(gV,qi({},l,{verticalPoints:D})),x.createElement(pV,qi({},l,{offset:r,horizontalPoints:C,xAxis:j,yAxis:_})),x.createElement(vV,qi({},l,{offset:r,verticalPoints:D,xAxis:j,yAxis:_}))))}Eg.displayName="CartesianGrid";var SV={},CM=En({name:"errorBars",initialState:SV,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:l}=t.payload;e[n]&&(e[n]=e[n].map(o=>o.dataKey===r.dataKey&&o.direction===r.direction?l:o))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(l=>l.dataKey!==r.dataKey||l.direction!==r.direction))}}}),{addErrorBar:gQ,replaceErrorBar:bQ,removeErrorBar:xQ}=CM.actions,jV=CM.reducer,_V=["children"];function OV(e,t){if(e==null)return{};var n,r,l=AV(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function AV(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var NV={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},EV=x.createContext(NV);function CV(e){var{children:t}=e,n=OV(e,_V);return x.createElement(EV.Provider,{value:n},t)}function Bb(e,t){var n,r,l=ye(h=>Oa(h,e)),o=ye(h=>Aa(h,t)),u=(n=l==null?void 0:l.allowDataOverflow)!==null&&n!==void 0?n:Ft.allowDataOverflow,f=(r=o==null?void 0:o.allowDataOverflow)!==null&&r!==void 0?r:Kt.allowDataOverflow,d=u||f;return{needClip:d,needClipX:u,needClipY:f}}function TM(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,l=Pb(),{needClipX:o,needClipY:u,needClip:f}=Bb(t,n);if(!f||!l)return null;var{x:d,y:h,width:p,height:y}=l;return x.createElement("clipPath",{id:"clipPath-".concat(r)},x.createElement("rect",{x:o?d:d-p/2,y:u?h:h-y/2,width:o?p:p*2,height:u?y:y*2}))}function TV(e){var t=Wi(e),n=3,r=2;if(t!=null){var{r:l,strokeWidth:o}=t,u=Number(l),f=Number(o);return(Number.isNaN(u)||u<0)&&(u=n),(Number.isNaN(f)||f<0)&&(f=r),{r:u,strokeWidth:f}}return{r:n,strokeWidth:r}}var jy={exports:{}},_y={};/**
 * @license React
 * use-sync-external-store-with-selector.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 QA;function MV(){if(QA)return _y;QA=1;var e=vo();function t(d,h){return d===h&&(d!==0||1/d===1/h)||d!==d&&h!==h}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,l=e.useRef,o=e.useEffect,u=e.useMemo,f=e.useDebugValue;return _y.useSyncExternalStoreWithSelector=function(d,h,p,y,b){var w=l(null);if(w.current===null){var S={hasValue:!1,value:null};w.current=S}else S=w.current;w=u(function(){function _(k){if(!A){if(A=!0,N=k,k=y(k),b!==void 0&&S.hasValue){var T=S.value;if(b(T,k))return C=T}return C=k}if(T=C,n(N,k))return T;var P=y(k);return b!==void 0&&b(T,P)?(N=k,T):(N=k,C=P)}var A=!1,N,C,D=p===void 0?null:p;return[function(){return _(h())},D===null?void 0:function(){return _(D())}]},[h,p,y,b]);var j=r(d,w[0],w[1]);return o(function(){S.hasValue=!0,S.value=j},[j]),f(j),j},_y}var JA;function DV(){return JA||(JA=1,jy.exports=MV()),jy.exports}DV();function kV(e){e()}function PV(){let e=null,t=null;return{clear(){e=null,t=null},notify(){kV(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const l=t={callback:n,next:null,prev:t};return l.prev?l.prev.next=l:e=l,function(){!r||e===null||(r=!1,l.next?l.next.prev=l.prev:t=l.prev,l.prev?l.prev.next=l.next:e=l.next)}}}}var eN={notify(){},get:()=>[]};function RV(e,t){let n,r=eN,l=0,o=!1;function u(j){p();const _=r.subscribe(j);let A=!1;return()=>{A||(A=!0,_(),y())}}function f(){r.notify()}function d(){S.onStateChange&&S.onStateChange()}function h(){return o}function p(){l++,n||(n=e.subscribe(d),r=PV())}function y(){l--,n&&l===0&&(n(),n=void 0,r.clear(),r=eN)}function b(){o||(o=!0,p())}function w(){o&&(o=!1,y())}const S={addNestedSub:u,notifyNestedSubs:f,handleChangeWrapper:d,isSubscribed:h,trySubscribe:b,tryUnsubscribe:w,getListeners:()=>r};return S}var zV=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",LV=zV(),BV=()=>typeof navigator<"u"&&navigator.product==="ReactNative",IV=BV(),$V=()=>LV||IV?x.useLayoutEffect:x.useEffect,UV=$V();function tN(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function qV(e,t){if(tN(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let l=0;l<n.length;l++)if(!Object.prototype.hasOwnProperty.call(t,n[l])||!tN(e[n[l]],t[n[l]]))return!1;return!0}var Oy=Symbol.for("react-redux-context"),Ay=typeof globalThis<"u"?globalThis:{};function HV(){if(!x.createContext)return{};const e=Ay[Oy]??(Ay[Oy]=new Map);let t=e.get(x.createContext);return t||(t=x.createContext(null),e.set(x.createContext,t)),t}var FV=HV();function KV(e){const{children:t,context:n,serverState:r,store:l}=e,o=x.useMemo(()=>{const d=RV(l);return{store:l,subscription:d,getServerState:r?()=>r:void 0}},[l,r]),u=x.useMemo(()=>l.getState(),[l]);UV(()=>{const{subscription:d}=o;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),u!==l.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[o,u]);const f=n||FV;return x.createElement(f.Provider,{value:o},t)}var YV=KV,GV=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function VV(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function wh(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(GV.has(r)){if(e[r]==null&&t[r]==null)continue;if(!qV(e[r],t[r]))return!1}else if(!VV(e[r],t[r]))return!1;return!0}function Br(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(l=>l.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:SM}function Ir(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(l=>l.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:SM}var MM=(e,t,n)=>ui(e,"xAxis",Br(e,t),n),DM=(e,t,n)=>si(e,"xAxis",Br(e,t),n),kM=(e,t,n)=>ui(e,"yAxis",Ir(e,t),n),PM=(e,t,n)=>si(e,"yAxis",Ir(e,t),n),XV=Y([Be,MM,kM,DM,PM],(e,t,n,r,l)=>xa(e,"xAxis")?uo(t,r,!1):uo(n,l,!1)),ZV=(e,t)=>t,RM=Y([fh,ZV],(e,t)=>e.filter(n=>n.type==="area").find(n=>n.id===t)),zM=e=>{var t=Be(e),n=xa(t,"xAxis");return n?"yAxis":"xAxis"},WV=(e,t)=>{var n=zM(e);return n==="yAxis"?Ir(e,t):Br(e,t)},QV=(e,t,n)=>dd(e,zM(e),WV(e,t),n),JV=Y([RM,QV],(e,t)=>{var n;if(!(e==null||t==null)){var{stackId:r}=e,l=oh(e);if(!(r==null||l==null)){var o=(n=t[r])===null||n===void 0?void 0:n.stackedData,u=o==null?void 0:o.find(f=>f.key===l);if(u!=null)return u.map(f=>[f[0],f[1]])}}}),eX=Y([Be,MM,kM,DM,PM,JV,ET,XV,RM,tU],(e,t,n,r,l,o,u,f,d,h)=>{var{chartData:p,dataStartIndex:y,dataEndIndex:b}=u;if(!(d==null||e!=="horizontal"&&e!=="vertical"||t==null||n==null||r==null||l==null||r.length===0||l.length===0||f==null)){var{data:w}=d,S;if(w&&w.length>0?S=w:S=p==null?void 0:p.slice(y,b+1),S!=null)return bX({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:l,dataStartIndex:y,areaSettings:d,stackedData:o,displayedData:S,chartBaseValue:h,bandSize:f})}}),tX=["id"],nX=["activeDot","animationBegin","animationDuration","animationEasing","connectNulls","dot","fill","fillOpacity","hide","isAnimationActive","legendType","stroke","xAxisId","yAxisId"];function Xi(){return Xi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xi.apply(null,arguments)}function LM(e,t){if(e==null)return{};var n,r,l=rX(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function rX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function nN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function ro(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nN(Object(n),!0).forEach(function(r){aX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aX(e,t,n){return(t=iX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iX(e){var t=lX(e,"string");return typeof t=="symbol"?t:t+""}function lX(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xd(e,t){return e&&e!=="none"?e:t}var oX=e=>{var{dataKey:t,name:n,stroke:r,fill:l,legendType:o,hide:u}=e;return[{inactive:u,dataKey:t,type:o,color:xd(r,l),value:xo(n,t),payload:e}]},sX=x.memo(e=>{var{dataKey:t,data:n,stroke:r,strokeWidth:l,fill:o,name:u,hide:f,unit:d,tooltipType:h,id:p}=e,y={dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:l,fill:o,dataKey:t,nameKey:void 0,name:xo(u,t),hide:f,type:h,color:xd(r,o),unit:d,graphicalItemId:p}};return x.createElement(Db,{tooltipEntrySettings:y})});function uX(e){var{clipPathId:t,points:n,props:r}=e,{needClip:l,dot:o,dataKey:u}=r,f=Nn(r);return x.createElement(QY,{points:n,dot:o,className:"recharts-area-dots",dotClassName:"recharts-area-dot",dataKey:u,baseProps:f,needClip:l,clipPathId:t})}function cX(e){var{showLabels:t,children:n,points:r}=e,l=r.map(o=>{var u,f,d={x:(u=o.x)!==null&&u!==void 0?u:0,y:(f=o.y)!==null&&f!==void 0?f:0,width:0,lowerWidth:0,upperWidth:0,height:0};return ro(ro({},d),{},{value:o.value,payload:o.payload,parentViewBox:void 0,viewBox:d,fill:void 0})});return x.createElement(uM,{value:t?l:void 0},n)}function rN(e){var{points:t,baseLine:n,needClip:r,clipPathId:l,props:o}=e,{layout:u,type:f,stroke:d,connectNulls:h,isRange:p}=o,{id:y}=o,b=LM(o,tX),w=Nn(b),S=pn(b);return x.createElement(x.Fragment,null,(t==null?void 0:t.length)>1&&x.createElement(Ot,{clipPath:r?"url(#clipPath-".concat(l,")"):void 0},x.createElement(io,Xi({},S,{id:y,points:t,connectNulls:h,type:f,baseLine:n,layout:u,stroke:"none",className:"recharts-area-area"})),d!=="none"&&x.createElement(io,Xi({},w,{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:t})),d!=="none"&&p&&x.createElement(io,Xi({},w,{className:"recharts-area-curve",layout:u,type:f,connectNulls:h,fill:"none",points:n}))),x.createElement(uX,{points:t,props:b,clipPathId:l}))}function fX(e){var t,n,{alpha:r,baseLine:l,points:o,strokeWidth:u}=e,f=(t=o[0])===null||t===void 0?void 0:t.y,d=(n=o[o.length-1])===null||n===void 0?void 0:n.y;if(!rt(f)||!rt(d))return null;var h=r*Math.abs(f-d),p=Math.max(...o.map(y=>y.x||0));return he(l)?p=Math.max(l,p):l&&Array.isArray(l)&&l.length&&(p=Math.max(...l.map(y=>y.x||0),p)),he(p)?x.createElement("rect",{x:0,y:f<d?f:f-h,width:p+(u?parseInt("".concat(u),10):1),height:Math.floor(h)}):null}function dX(e){var t,n,{alpha:r,baseLine:l,points:o,strokeWidth:u}=e,f=(t=o[0])===null||t===void 0?void 0:t.x,d=(n=o[o.length-1])===null||n===void 0?void 0:n.x;if(!rt(f)||!rt(d))return null;var h=r*Math.abs(f-d),p=Math.max(...o.map(y=>y.y||0));return he(l)?p=Math.max(l,p):l&&Array.isArray(l)&&l.length&&(p=Math.max(...l.map(y=>y.y||0),p)),he(p)?x.createElement("rect",{x:f<d?f:f-h,y:0,width:h,height:Math.floor(p+(u?parseInt("".concat(u),10):1))}):null}function hX(e){var{alpha:t,layout:n,points:r,baseLine:l,strokeWidth:o}=e;return n==="vertical"?x.createElement(fX,{alpha:t,points:r,baseLine:l,strokeWidth:o}):x.createElement(dX,{alpha:t,points:r,baseLine:l,strokeWidth:o})}function mX(e){var{needClip:t,clipPathId:n,props:r,previousPointsRef:l,previousBaselineRef:o}=e,{points:u,baseLine:f,isAnimationActive:d,animationBegin:h,animationDuration:p,animationEasing:y,onAnimationStart:b,onAnimationEnd:w}=r,S=x.useMemo(()=>({points:u,baseLine:f}),[u,f]),j=mu(S,"recharts-area-"),_=g7(),[A,N]=x.useState(!1),C=!A,D=x.useCallback(()=>{typeof w=="function"&&w(),N(!1)},[w]),k=x.useCallback(()=>{typeof b=="function"&&b(),N(!0)},[b]);if(_==null)return null;var T=l.current,P=o.current;return x.createElement(cX,{showLabels:C,points:u},r.children,x.createElement(hu,{animationId:j,begin:h,duration:p,isActive:d,easing:y,onAnimationEnd:D,onAnimationStart:k,key:j},$=>{if(T){var X=T.length/u.length,Z=$===1?u:u.map((R,ce)=>{var le=Math.floor(ce*X);if(T[le]){var fe=T[le];return ro(ro({},R),{},{x:ut(fe.x,R.x,$),y:ut(fe.y,R.y,$)})}return R}),te;return he(f)?te=ut(P,f,$):pt(f)||or(f)?te=ut(P,0,$):te=f.map((R,ce)=>{var le=Math.floor(ce*X);if(Array.isArray(P)&&P[le]){var fe=P[le];return ro(ro({},R),{},{x:ut(fe.x,R.x,$),y:ut(fe.y,R.y,$)})}return R}),$>0&&(l.current=Z,o.current=te),x.createElement(rN,{points:Z,baseLine:te,needClip:t,clipPathId:n,props:r})}return $>0&&(l.current=u,o.current=f),x.createElement(Ot,null,d&&x.createElement("defs",null,x.createElement("clipPath",{id:"animationClipPath-".concat(n)},x.createElement(hX,{alpha:$,points:u,baseLine:f,layout:_,strokeWidth:r.strokeWidth}))),x.createElement(Ot,{clipPath:"url(#animationClipPath-".concat(n,")")},x.createElement(rN,{points:u,baseLine:f,needClip:t,clipPathId:n,props:r})))}),x.createElement(Ob,{label:r.label}))}function pX(e){var{needClip:t,clipPathId:n,props:r}=e,l=x.useRef(null),o=x.useRef();return x.createElement(mX,{needClip:t,clipPathId:n,props:r,previousPointsRef:l,previousBaselineRef:o})}class vX extends x.PureComponent{render(){var{hide:t,dot:n,points:r,className:l,top:o,left:u,needClip:f,xAxisId:d,yAxisId:h,width:p,height:y,id:b,baseLine:w,zIndex:S}=this.props;if(t)return null;var j=qe("recharts-area",l),_=b,{r:A,strokeWidth:N}=TV(n),C=yM(n),D=A*2+N,k=f?"url(#clipPath-".concat(C?"":"dots-").concat(_,")"):void 0;return x.createElement(Cn,{zIndex:S},x.createElement(Ot,{className:j},f&&x.createElement("defs",null,x.createElement(TM,{clipPathId:_,xAxisId:d,yAxisId:h}),!C&&x.createElement("clipPath",{id:"clipPath-dots-".concat(_)},x.createElement("rect",{x:u-D/2,y:o-D/2,width:p+D,height:y+D}))),x.createElement(pX,{needClip:f,clipPathId:_,props:this.props})),x.createElement(KA,{points:r,mainColor:xd(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:k}),this.props.isRange&&Array.isArray(w)&&x.createElement(KA,{points:w,mainColor:xd(this.props.stroke,this.props.fill),itemDataKey:this.props.dataKey,activeDot:this.props.activeDot,clipPath:k}))}}var BM={activeDot:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!1,fill:"#3182bd",fillOpacity:.6,hide:!1,isAnimationActive:"auto",legendType:"line",stroke:"#3182bd",strokeWidth:1,type:"linear",label:!1,xAxisId:0,yAxisId:0,zIndex:Dt.area};function yX(e){var t,n=Pt(e,BM),{activeDot:r,animationBegin:l,animationDuration:o,animationEasing:u,connectNulls:f,dot:d,fill:h,fillOpacity:p,hide:y,isAnimationActive:b,legendType:w,stroke:S,xAxisId:j,yAxisId:_}=n,A=LM(n,nX),N=ll(),C=F5(),{needClip:D}=Bb(j,_),k=cn(),{points:T,isRange:P,baseLine:$}=(t=ye(le=>eX(le,e.id,k)))!==null&&t!==void 0?t:{},X=Pb();if(N!=="horizontal"&&N!=="vertical"||X==null||C!=="AreaChart"&&C!=="ComposedChart")return null;var{height:Z,width:te,x:R,y:ce}=X;return!T||!T.length?null:x.createElement(vX,Xi({},A,{activeDot:r,animationBegin:l,animationDuration:o,animationEasing:u,baseLine:$,connectNulls:f,dot:d,fill:h,fillOpacity:p,height:Z,hide:y,layout:N,isAnimationActive:b==="auto"?!du.isSsr:b,isRange:P,legendType:w,needClip:D,points:T,stroke:S,width:te,left:R,top:ce,xAxisId:j,yAxisId:_}))}var gX=(e,t,n,r,l)=>{var o=n??t;if(he(o))return o;var u=e==="horizontal"?l:r,f=u.scale.domain();if(u.type==="number"){var d=Math.max(f[0],f[1]),h=Math.min(f[0],f[1]);return o==="dataMin"?h:o==="dataMax"||d<0?d:Math.max(Math.min(f[0],f[1]),0)}return o==="dataMin"?f[0]:o==="dataMax"?f[1]:f[0]};function bX(e){var{areaSettings:{connectNulls:t,baseValue:n,dataKey:r},stackedData:l,layout:o,chartBaseValue:u,xAxis:f,yAxis:d,displayedData:h,dataStartIndex:p,xAxisTicks:y,yAxisTicks:b,bandSize:w}=e,S=l&&l.length,j=gX(o,u,n,f,d),_=o==="horizontal",A=!1,N=h.map((D,k)=>{var T,P,$;if(S)$=l[p+k];else{var X=et(D,r);Array.isArray(X)?($=X,A=!0):$=[j,X]}var Z=(T=(P=$)===null||P===void 0?void 0:P[1])!==null&&T!==void 0?T:null,te=Z==null||S&&!t&&et(D,r)==null;return _?{x:Hj({axis:f,ticks:y,bandSize:w,entry:D,index:k}),y:te?null:d.scale(Z),value:$,payload:D}:{x:te?null:f.scale(Z),y:Hj({axis:d,ticks:b,bandSize:w,entry:D,index:k}),value:$,payload:D}}),C;return S||A?C=N.map(D=>{var k=Array.isArray(D.value)?D.value[0]:null;return _?{x:D.x,y:k!=null&&D.y!=null?d.scale(k):null,payload:D.payload}:{x:k!=null?f.scale(k):null,y:D.y,payload:D.payload}}):C=_?d.scale(j):f.scale(j),{points:N,baseLine:C,isRange:A}}function xX(e){var t=Pt(e,BM),n=cn();return x.createElement(kb,{id:t.id,type:"area"},r=>x.createElement(x.Fragment,null,x.createElement(bM,{legendPayload:oX(t)}),x.createElement(sX,{dataKey:t.dataKey,data:t.data,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:r}),x.createElement(wM,{type:"area",id:r,data:t.data,dataKey:t.dataKey,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,stackId:yC(t.stackId),hide:t.hide,barSize:void 0,baseValue:t.baseValue,isPanorama:n,connectNulls:t.connectNulls}),x.createElement(yX,Xi({},t,{id:r}))))}var IM=x.memo(xX,wh);IM.displayName="Area";var wX="Invariant failed";function SX(e,t){throw new Error(wX)}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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cg.apply(null,arguments)}function wd(e){return x.createElement(gM,Cg({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var jX=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,l)=>{if(he(t))return t;var o=he(r)||pt(r);return o?t(r,l):(o||SX(),n)}},_X=(e,t,n)=>n,OX=(e,t)=>t,Eu=Y([fh,OX],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),AX=Y([Eu],e=>e==null?void 0:e.maxBarSize),NX=(e,t,n,r)=>r,EX=Y([Be,fh,Br,Ir,_X],(e,t,n,r,l)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===l).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),CX=(e,t,n)=>{var r=Be(e),l=Br(e,t),o=Ir(e,t);if(!(l==null||o==null))return r==="horizontal"?dd(e,"yAxis",o,n):dd(e,"xAxis",l,n)},TX=(e,t)=>{var n=Be(e),r=Br(e,t),l=Ir(e,t);if(!(r==null||l==null))return n==="horizontal"?$O(e,"xAxis",r):$O(e,"yAxis",l)},MX=Y([EX,eU,TX],gG),DX=(e,t,n)=>{var r,l,o=Eu(e,t);if(o!=null){var u=Br(e,t),f=Ir(e,t);if(!(u==null||f==null)){var d=Be(e),h=HT(e),{maxBarSize:p}=o,y=pt(p)?h:p,b,w;return d==="horizontal"?(b=ui(e,"xAxis",u,n),w=si(e,"xAxis",u,n)):(b=ui(e,"yAxis",f,n),w=si(e,"yAxis",f,n)),(r=(l=uo(b,w,!0))!==null&&l!==void 0?l:y)!==null&&r!==void 0?r:0}}},$M=(e,t,n)=>{var r=Be(e),l=Br(e,t),o=Ir(e,t);if(!(l==null||o==null)){var u,f;return r==="horizontal"?(u=ui(e,"xAxis",l,n),f=si(e,"xAxis",l,n)):(u=ui(e,"yAxis",o,n),f=si(e,"yAxis",o,n)),uo(u,f)}},kX=Y([MX,HT,J9,FT,DX,$M,AX],jG),PX=(e,t,n)=>{var r=Br(e,t);if(r!=null)return ui(e,"xAxis",r,n)},RX=(e,t,n)=>{var r=Ir(e,t);if(r!=null)return ui(e,"yAxis",r,n)},zX=(e,t,n)=>{var r=Br(e,t);if(r!=null)return si(e,"xAxis",r,n)},LX=(e,t,n)=>{var r=Ir(e,t);if(r!=null)return si(e,"yAxis",r,n)},BX=Y([kX,Eu],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),IX=Y([CX,Eu],_G),$X=Y([Lt,u0,PX,RX,zX,LX,BX,Be,ET,$M,IX,Eu,NX],(e,t,n,r,l,o,u,f,d,h,p,y,b)=>{var{chartData:w,dataStartIndex:S,dataEndIndex:j}=d;if(!(y==null||u==null||t==null||f!=="horizontal"&&f!=="vertical"||n==null||r==null||l==null||o==null||h==null)){var{data:_}=y,A;if(_!=null&&_.length>0?A=_:A=w==null?void 0:w.slice(S,j+1),A!=null)return pZ({layout:f,barSettings:y,pos:u,parentViewBox:t,bandSize:h,xAxis:n,yAxis:r,xAxisTicks:l,yAxisTicks:o,stackedData:p,displayedData:A,offset:e,cells:b,dataStartIndex:S})}}),UX=["index"];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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Tg.apply(null,arguments)}function qX(e,t){if(e==null)return{};var n,r,l=HX(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function HX(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var UM=x.createContext(void 0),FX=e=>{var t=x.useContext(UM);if(t!=null)return t.stackId;if(e!=null)return yC(e)},KX=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),YX=e=>{var t=x.useContext(UM);if(t!=null){var{stackId:n}=t;return"url(#".concat(KX(n,e),")")}},GX=e=>{var{index:t}=e,n=qX(e,UX),r=YX(t);return x.createElement(Ot,Tg({className:"recharts-bar-stack-layer",clipPath:r},n))},VX=["onMouseEnter","onMouseLeave","onClick"],XX=["value","background","tooltipPosition"],ZX=["id"],WX=["onMouseEnter","onClick","onMouseLeave"];function ba(){return ba=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ba.apply(null,arguments)}function aN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aN(Object(n),!0).forEach(function(r){QX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QX(e,t,n){return(t=JX(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JX(e){var t=eZ(e,"string");return typeof t=="symbol"?t:t+""}function eZ(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sd(e,t){if(e==null)return{};var n,r,l=tZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function tZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var nZ=e=>{var{dataKey:t,name:n,fill:r,legendType:l,hide:o}=e;return[{inactive:o,dataKey:t,type:l,color:r,value:xo(n,t),payload:e}]},rZ=x.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:l,name:o,hide:u,unit:f,tooltipType:d,id:h}=e,p={dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:l,dataKey:t,nameKey:void 0,name:xo(o,t),hide:u,type:d,color:l,unit:f,graphicalItemId:h}};return x.createElement(Db,{tooltipEntrySettings:p})});function aZ(e){var t=ye(ci),{data:n,dataKey:r,background:l,allOtherBarProps:o}=e,{onMouseEnter:u,onMouseLeave:f,onClick:d}=o,h=Sd(o,VX),p=Cb(u,r,o.id),y=Tb(f),b=Mb(d,r,o.id);if(!l||n==null)return null;var w=Wi(l);return x.createElement(Cn,{zIndex:OG(l,Dt.barBackground)},n.map((S,j)=>{var{value:_,background:A,tooltipPosition:N}=S,C=Sd(S,XX);if(!A)return null;var D=p(S,j),k=y(S,j),T=b(S,j),P=dn(dn(dn(dn(dn({option:l,isActive:String(j)===t},C),{},{fill:"#eee"},A),w),ou(h,S,j)),{},{onMouseEnter:D,onMouseLeave:k,onClick:T,dataKey:r,index:j,className:"recharts-bar-background-rectangle"});return x.createElement(wd,ba({key:"background-bar-".concat(j)},P))}))}function iZ(e){var{showLabels:t,children:n,rects:r}=e,l=r==null?void 0:r.map(o=>{var u={x:o.x,y:o.y,width:o.width,lowerWidth:o.width,upperWidth:o.width,height:o.height};return dn(dn({},u),{},{value:o.value,payload:o.payload,parentViewBox:o.parentViewBox,viewBox:u,fill:o.fill})});return x.createElement(uM,{value:t?l:void 0},n)}function lZ(e){var{shape:t,activeBar:n,baseProps:r,entry:l,index:o,dataKey:u}=e,f=ye(ci),d=ye(gb),h=n&&String(o)===f&&(d==null||u===d),p=h?n:t;return h?x.createElement(Cn,{zIndex:Dt.activeBar},x.createElement(wd,ba({},r,{name:String(r.name)},l,{isActive:h,option:p,index:o,dataKey:u}))):x.createElement(wd,ba({},r,{name:String(r.name)},l,{isActive:h,option:p,index:o,dataKey:u}))}function oZ(e){var{shape:t,baseProps:n,entry:r,index:l,dataKey:o}=e;return x.createElement(wd,ba({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:l,dataKey:o}))}function sZ(e){var t,{data:n,props:r}=e,l=(t=Nn(r))!==null&&t!==void 0?t:{},{id:o}=l,u=Sd(l,ZX),{shape:f,dataKey:d,activeBar:h}=r,{onMouseEnter:p,onClick:y,onMouseLeave:b}=r,w=Sd(r,WX),S=Cb(p,d,o),j=Tb(b),_=Mb(y,d,o);return n?x.createElement(x.Fragment,null,n.map((A,N)=>x.createElement(GX,ba({index:N,key:"rectangle-".concat(A==null?void 0:A.x,"-").concat(A==null?void 0:A.y,"-").concat(A==null?void 0:A.value,"-").concat(N),className:"recharts-bar-rectangle"},ou(w,A,N),{onMouseEnter:S(A,N),onMouseLeave:j(A,N),onClick:_(A,N)}),h?x.createElement(lZ,{shape:f,activeBar:h,baseProps:u,entry:A,index:N,dataKey:d}):x.createElement(oZ,{shape:f,baseProps:u,entry:A,index:N,dataKey:d})))):null}function uZ(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:l,isAnimationActive:o,animationBegin:u,animationDuration:f,animationEasing:d,onAnimationEnd:h,onAnimationStart:p}=t,y=n.current,b=mu(t,"recharts-bar-"),[w,S]=x.useState(!1),j=!w,_=x.useCallback(()=>{typeof h=="function"&&h(),S(!1)},[h]),A=x.useCallback(()=>{typeof p=="function"&&p(),S(!0)},[p]);return x.createElement(iZ,{showLabels:j,rects:r},x.createElement(hu,{animationId:b,begin:u,duration:f,isActive:o,easing:d,onAnimationEnd:_,onAnimationStart:A,key:b},N=>{var C=N===1?r:r==null?void 0:r.map((D,k)=>{var T=y&&y[k];if(T)return dn(dn({},D),{},{x:ut(T.x,D.x,N),y:ut(T.y,D.y,N),width:ut(T.width,D.width,N),height:ut(T.height,D.height,N)});if(l==="horizontal"){var P=ut(0,D.height,N),$=ut(D.stackedBarStart,D.y,N);return dn(dn({},D),{},{y:$,height:P})}var X=ut(0,D.width,N),Z=ut(D.stackedBarStart,D.x,N);return dn(dn({},D),{},{width:X,x:Z})});return N>0&&(n.current=C??null),C==null?null:x.createElement(Ot,null,x.createElement(sZ,{props:t,data:C}))}),x.createElement(Ob,{label:t.label}),t.children)}function cZ(e){var t=x.useRef(null);return x.createElement(uZ,{previousRectanglesRef:t,props:e})}var qM=0,fZ=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:et(e,t)}};class dZ extends x.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:l,xAxisId:o,yAxisId:u,needClip:f,background:d,id:h}=this.props;if(t||n==null)return null;var p=qe("recharts-bar",l),y=h;return x.createElement(Ot,{className:p,id:h},f&&x.createElement("defs",null,x.createElement(TM,{clipPathId:y,xAxisId:o,yAxisId:u})),x.createElement(Ot,{className:"recharts-bar-rectangles",clipPath:f?"url(#clipPath-".concat(y,")"):void 0},x.createElement(aZ,{data:n,dataKey:r,background:d,allOtherBarProps:this.props}),x.createElement(cZ,this.props)))}}var hZ={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:qM,xAxisId:0,yAxisId:0,zIndex:Dt.bar};function mZ(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:l,minPointSize:o,activeBar:u,animationBegin:f,animationDuration:d,animationEasing:h,isAnimationActive:p}=e,{needClip:y}=Bb(t,n),b=ll(),w=cn(),S=Eb(e.children,Vi),j=ye(N=>$X(N,e.id,w,S));if(b!=="vertical"&&b!=="horizontal")return null;var _,A=j==null?void 0:j[0];return A==null||A.height==null||A.width==null?_=0:_=b==="vertical"?A.height/2:A.width/2,x.createElement(CV,{xAxisId:t,yAxisId:n,data:j,dataPointFormatter:fZ,errorBarOffset:_},x.createElement(dZ,ba({},e,{layout:b,needClip:y,data:j,xAxisId:t,yAxisId:n,hide:r,legendType:l,minPointSize:o,activeBar:u,animationBegin:f,animationDuration:d,animationEasing:h,isAnimationActive:p})))}function pZ(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:l,bandSize:o,xAxis:u,yAxis:f,xAxisTicks:d,yAxisTicks:h,stackedData:p,displayedData:y,offset:b,cells:w,parentViewBox:S,dataStartIndex:j}=e,_=t==="horizontal"?f:u,A=p?_.scale.domain():null,N=zL({numericAxis:_}),C=_.scale(N);return y.map((D,k)=>{var T,P,$,X,Z,te;if(p){var R=p[k+j];if(R==null)return null;T=ML(R,A)}else T=et(D,n),Array.isArray(T)||(T=[N,T]);var ce=jX(r,qM)(T[1],k);if(t==="horizontal"){var le,[fe,U]=[f.scale(T[0]),f.scale(T[1])];P=Fj({axis:u,ticks:d,bandSize:o,offset:l.offset,entry:D,index:k}),$=(le=U??fe)!==null&&le!==void 0?le:void 0,X=l.size;var Q=fe-U;if(Z=or(Q)?0:Q,te={x:P,y:b.top,width:X,height:b.height},Math.abs(ce)>0&&Math.abs(Z)<Math.abs(ce)){var se=Gt(Z||ce)*(Math.abs(ce)-Math.abs(Z));$-=se,Z+=se}}else{var[de,B]=[u.scale(T[0]),u.scale(T[1])];if(P=de,$=Fj({axis:f,ticks:h,bandSize:o,offset:l.offset,entry:D,index:k}),X=B-de,Z=l.size,te={x:b.left,y:$,width:b.width,height:Z},Math.abs(ce)>0&&Math.abs(X)<Math.abs(ce)){var M=Gt(X||ce)*(Math.abs(ce)-Math.abs(X));X+=M}}if(P==null||$==null||X==null||Z==null)return null;var q=dn(dn({},D),{},{stackedBarStart:C,x:P,y:$,width:X,height:Z,value:p?T:T[1],payload:D,background:te,tooltipPosition:{x:P+X/2,y:$+Z/2},parentViewBox:S},w&&w[k]&&w[k].props);return q}).filter(Boolean)}function vZ(e){var t=Pt(e,hZ),n=FX(t.stackId),r=cn();return x.createElement(kb,{id:t.id,type:"bar"},l=>x.createElement(x.Fragment,null,x.createElement(bM,{legendPayload:nZ(t)}),x.createElement(rZ,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:l}),x.createElement(wM,{type:"bar",id:l,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),x.createElement(Cn,{zIndex:t.zIndex},x.createElement(mZ,ba({},t,{id:l})))))}var Mg=x.memo(vZ,wh);Mg.displayName="Bar";var yZ=["domain","range"],gZ=["domain","range"];function iN(e,t){if(e==null)return{};var n,r,l=bZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function bZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function lN(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function HM(e,t){if(e===t)return!0;var{domain:n,range:r}=e,l=iN(e,yZ),{domain:o,range:u}=t,f=iN(t,gZ);return!lN(n,o)||!lN(r,u)?!1:wh(l,f)}var xZ=["dangerouslySetInnerHTML","ticks","scale"],wZ=["id","scale"];function Dg(){return Dg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dg.apply(null,arguments)}function oN(e,t){if(e==null)return{};var n,r,l=SZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function SZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jZ(e){var t=it(),n=x.useRef(null);return x.useLayoutEffect(()=>{n.current===null?t(rG(e)):n.current!==e&&t(aG({prev:n.current,next:e})),n.current=e},[e,t]),x.useLayoutEffect(()=>()=>{n.current&&(t(iG(n.current)),n.current=null)},[t]),null}var _Z=e=>{var{xAxisId:t,className:n}=e,r=ye(u0),l=cn(),o="xAxis",u=ye(A=>S5(A,o,t,l)),f=ye(A=>g5(A,t)),d=ye(A=>QU(A,t)),h=ye(A=>JT(A,t));if(f==null||d==null||h==null)return null;var{dangerouslySetInnerHTML:p,ticks:y,scale:b}=e,w=oN(e,xZ),{id:S,scale:j}=h,_=oN(h,wZ);return x.createElement(Lb,Dg({},w,_,{x:d.x,y:d.y,width:f.width,height:f.height,className:qe("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:u,axisType:o}))},OZ={allowDataOverflow:Ft.allowDataOverflow,allowDecimals:Ft.allowDecimals,allowDuplicatedCategory:Ft.allowDuplicatedCategory,angle:Ft.angle,axisLine:da.axisLine,height:Ft.height,hide:!1,includeHidden:Ft.includeHidden,interval:Ft.interval,minTickGap:Ft.minTickGap,mirror:Ft.mirror,orientation:Ft.orientation,padding:Ft.padding,reversed:Ft.reversed,scale:Ft.scale,tick:Ft.tick,tickCount:Ft.tickCount,tickLine:da.tickLine,tickSize:da.tickSize,type:Ft.type,xAxisId:0},AZ=e=>{var t=Pt(e,OZ);return x.createElement(x.Fragment,null,x.createElement(jZ,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),x.createElement(_Z,t))},jf=x.memo(AZ,HM);jf.displayName="XAxis";var NZ=["dangerouslySetInnerHTML","ticks","scale"],EZ=["id","scale"];function kg(){return kg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kg.apply(null,arguments)}function sN(e,t){if(e==null)return{};var n,r,l=CZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function CZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function TZ(e){var t=it(),n=x.useRef(null);return x.useLayoutEffect(()=>{n.current===null?t(lG(e)):n.current!==e&&t(oG({prev:n.current,next:e})),n.current=e},[e,t]),x.useLayoutEffect(()=>()=>{n.current&&(t(sG(n.current)),n.current=null)},[t]),null}var MZ=e=>{var{yAxisId:t,className:n,width:r,label:l}=e,o=x.useRef(null),u=x.useRef(null),f=ye(u0),d=cn(),h=it(),p="yAxis",y=ye(T=>b5(T,t)),b=ye(T=>eq(T,t)),w=ye(T=>S5(T,p,t,d)),S=ye(T=>e5(T,t));if(x.useLayoutEffect(()=>{if(!(r!=="auto"||!y||_b(l)||x.isValidElement(l)||S==null)){var T=o.current;if(T){var P=T.getCalculatedWidth();Math.round(y.width)!==Math.round(P)&&h(uG({id:t,width:P}))}}},[w,y,h,l,t,r,S]),y==null||b==null||S==null)return null;var{dangerouslySetInnerHTML:j,ticks:_,scale:A}=e,N=sN(e,NZ),{id:C,scale:D}=S,k=sN(S,EZ);return x.createElement(Lb,kg({},N,k,{ref:o,labelRef:u,x:b.x,y:b.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:y.width,height:y.height,className:qe("recharts-".concat(p," ").concat(p),n),viewBox:f,ticks:w,axisType:p}))},DZ={allowDataOverflow:Kt.allowDataOverflow,allowDecimals:Kt.allowDecimals,allowDuplicatedCategory:Kt.allowDuplicatedCategory,angle:Kt.angle,axisLine:da.axisLine,hide:!1,includeHidden:Kt.includeHidden,interval:Kt.interval,minTickGap:Kt.minTickGap,mirror:Kt.mirror,orientation:Kt.orientation,padding:Kt.padding,reversed:Kt.reversed,scale:Kt.scale,tick:Kt.tick,tickCount:Kt.tickCount,tickLine:da.tickLine,tickSize:da.tickSize,type:Kt.type,width:Kt.width,yAxisId:0},kZ=e=>{var t=Pt(e,DZ);return x.createElement(x.Fragment,null,x.createElement(TZ,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),x.createElement(MZ,t))},_f=x.memo(kZ,HM);_f.displayName="YAxis";var PZ=(e,t)=>t,Ib=Y([PZ,Be,WT,It,B5,Na,pH,Lt],SH),$b=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},FM=sr("mouseClick"),KM=uu();KM.startListening({actionCreator:FM,effect:(e,t)=>{var n=e.payload,r=Ib(t.getState(),$b(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(mq({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var Pg=sr("mouseMove"),YM=uu(),cf=null;YM.startListening({actionCreator:Pg,effect:(e,t)=>{var n=e.payload;cf!==null&&cancelAnimationFrame(cf);var r=$b(n);cf=requestAnimationFrame(()=>{var l=t.getState(),o=db(l,l.tooltip.settings.shared);if(o==="axis"){var u=Ib(l,r);(u==null?void 0:u.activeIndex)!=null?t.dispatch(T5({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate})):t.dispatch(C5())}cf=null})}});function RZ(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var uN={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},GM=En({name:"rootProps",initialState:uN,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:uN.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),zZ=GM.reducer,{updateOptions:LZ}=GM.actions,VM=En({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:BZ}=VM.actions,IZ=VM.reducer,XM=sr("keyDown"),ZM=sr("focus"),Ub=uu();Ub.startListening({actionCreator:XM,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:l}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var u=hb(l,Co(n),ju(n),Au(n)),f=u==null?-1:Number(u);if(!(!Number.isFinite(f)||f<0)){var d=Na(n);if(o==="Enter"){var h=md(n,"axis","hover",String(l.index));t.dispatch(wg({active:!l.active,activeIndex:l.index,activeCoordinate:h}));return}var p=aq(n),y=p==="left-to-right"?1:-1,b=o==="ArrowRight"?1:-1,w=f+b*y;if(!(d==null||w>=d.length||w<0)){var S=md(n,"axis","hover",String(w));t.dispatch(wg({active:!0,activeIndex:w.toString(),activeCoordinate:S}))}}}}}});Ub.startListening({actionCreator:ZM,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:l}=n.tooltip;if(!l.active&&l.index==null){var o="0",u=md(n,"axis","hover",String(o));t.dispatch(wg({active:!0,activeIndex:o,activeCoordinate:u}))}}}});var rr=sr("externalEvent"),WM=uu(),Ny=new Map;WM.startListening({actionCreator:rr,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){r.persist();var l=r.type,o=Ny.get(l);o!==void 0&&cancelAnimationFrame(o);var u=requestAnimationFrame(()=>{try{var f=t.getState(),d={activeCoordinate:eH(f),activeDataKey:gb(f),activeIndex:ci(f),activeLabel:U5(f),activeTooltipIndex:ci(f),isTooltipActive:tH(f)};n(d,r)}finally{Ny.delete(l)}});Ny.set(l,u)}}});var $Z=Y([No],e=>e.tooltipItemPayloads),UZ=Y([$Z,Ou,(e,t)=>t,(e,t,n)=>n],(e,t,n,r)=>{var l=e.find(f=>f.settings.graphicalItemId===r);if(l!=null){var{positions:o}=l;if(o!=null){var u=t(o,n);return u}}}),QM=sr("touchMove"),JM=uu();JM.startListening({actionCreator:QM,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){var r=t.getState(),l=db(r,r.tooltip.settings.shared);if(l==="axis"){var o=n.touches[0];if(o==null)return;var u=Ib(r,$b({clientX:o.clientX,clientY:o.clientY,currentTarget:n.currentTarget}));(u==null?void 0:u.activeIndex)!=null&&t.dispatch(T5({activeIndex:u.activeIndex,activeDataKey:void 0,activeCoordinate:u.activeCoordinate}))}else if(l==="item"){var f,d=n.touches[0];if(document.elementFromPoint==null||d==null)return;var h=document.elementFromPoint(d.clientX,d.clientY);if(!h||!h.getAttribute)return;var p=h.getAttribute(bC),y=(f=h.getAttribute(xC))!==null&&f!==void 0?f:void 0,b=Eo(r).find(j=>j.id===y);if(p==null||b==null||y==null)return;var{dataKey:w}=b,S=UZ(r,p,y);t.dispatch(E5({activeDataKey:w,activeIndex:p,activeCoordinate:S,activeGraphicalItemId:y}))}}}});var qZ=$E({brush:AG,cartesianAxis:cG,chartData:JH,errorBars:jV,graphicalItems:vY,layout:OL,legend:k7,options:VH,polarAxis:TK,polarOptions:IZ,referenceElements:kG,rootProps:zZ,tooltip:pq,zIndex:zH}),HZ=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Z8({reducer:qZ,preloadedState:t,middleware:r=>{var l;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((l="es6")!==null&&l!==void 0?l:"")}).concat([KM.middleware,YM.middleware,Ub.middleware,WM.middleware,JM.middleware])},enhancers:r=>{var l=r;return typeof r=="function"&&(l=r()),l.concat(tC({type:"raf"}))},devTools:{serialize:{replacer:RZ},name:"recharts-".concat(n)}})};function e3(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,l=cn(),o=x.useRef(null);if(l)return n;o.current==null&&(o.current=HZ(t,r));var u=n0;return x.createElement(YV,{context:u,store:o.current},n)}function FZ(e){var{layout:t,margin:n}=e,r=it(),l=cn();return x.useEffect(()=>{l||(r(SL(t)),r(wL(n)))},[r,l,t,n]),null}var t3=x.memo(FZ,wh);function n3(e){var t=it();return x.useEffect(()=>{t(LZ(e))},[t,e]),null}function cN(e){var{zIndex:t,isPanorama:n}=e,r=x.useRef(null),l=it();return x.useLayoutEffect(()=>(r.current&&l(PH({zIndex:t,element:r.current,isPanorama:n})),()=>{l(RH({zIndex:t,isPanorama:n}))}),[l,t,n]),x.createElement("g",{tabIndex:-1,ref:r})}function fN(e){var{children:t,isPanorama:n}=e,r=ye(_H);if(!r||r.length===0)return t;var l=r.filter(u=>u<0),o=r.filter(u=>u>0);return x.createElement(x.Fragment,null,l.map(u=>x.createElement(cN,{key:u,zIndex:u,isPanorama:n})),t,o.map(u=>x.createElement(cN,{key:u,zIndex:u,isPanorama:n})))}var KZ=["children"];function YZ(e,t){if(e==null)return{};var n,r,l=GZ(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function GZ(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function jd(){return jd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jd.apply(null,arguments)}var VZ={width:"100%",height:"100%",display:"block"},XZ=x.forwardRef((e,t)=>{var n=f0(),r=d0(),l=LC();if(!Pr(n)||!Pr(r))return null;var{children:o,otherAttributes:u,title:f,desc:d}=e,h,p;return u!=null&&(typeof u.tabIndex=="number"?h=u.tabIndex:h=l?0:void 0,typeof u.role=="string"?p=u.role:p=l?"application":void 0),x.createElement(Kg,jd({},u,{title:f,desc:d,role:p,tabIndex:h,width:n,height:r,style:VZ,ref:t}),o)}),ZZ=e=>{var{children:t}=e,n=ye(Yd);if(!n)return null;var{width:r,height:l,y:o,x:u}=n;return x.createElement(Kg,{width:r,height:l,x:u,y:o},t)},dN=x.forwardRef((e,t)=>{var{children:n}=e,r=YZ(e,KZ),l=cn();return l?x.createElement(ZZ,null,x.createElement(fN,{isPanorama:!0},n)):x.createElement(XZ,jd({ref:t},r),x.createElement(fN,{isPanorama:!1},n))});function WZ(){var e=it(),[t,n]=x.useState(null),r=ye(qL);return x.useEffect(()=>{if(t!=null){var l=t.getBoundingClientRect(),o=l.width/t.offsetWidth;rt(o)&&o!==r&&e(_L(o))}},[t,e,r]),n}function hN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function QZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hN(Object(n),!0).forEach(function(r){JZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JZ(e,t,n){return(t=eW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eW(e){var t=tW(e,"string");return typeof t=="symbol"?t:t+""}function tW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function il(){return il=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},il.apply(null,arguments)}var nW=()=>(sF(),null);function _d(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var rW=x.forwardRef((e,t)=>{var n,r,l=x.useRef(null),[o,u]=x.useState({containerWidth:_d((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:_d((r=e.style)===null||r===void 0?void 0:r.height)}),f=x.useCallback((h,p)=>{u(y=>{var b=Math.round(h),w=Math.round(p);return y.containerWidth===b&&y.containerHeight===w?y:{containerWidth:b,containerHeight:w}})},[]),d=x.useCallback(h=>{if(typeof t=="function"&&t(h),h!=null&&typeof ResizeObserver<"u"){var{width:p,height:y}=h.getBoundingClientRect();f(p,y);var b=S=>{var{width:j,height:_}=S[0].contentRect;f(j,_)},w=new ResizeObserver(b);w.observe(h),l.current=w}},[t,f]);return x.useEffect(()=>()=>{var h=l.current;h!=null&&h.disconnect()},[f]),x.createElement(x.Fragment,null,x.createElement(Vd,{width:o.containerWidth,height:o.containerHeight}),x.createElement("div",il({ref:d},e)))}),aW=x.forwardRef((e,t)=>{var{width:n,height:r}=e,[l,o]=x.useState({containerWidth:_d(n),containerHeight:_d(r)}),u=x.useCallback((d,h)=>{o(p=>{var y=Math.round(d),b=Math.round(h);return p.containerWidth===y&&p.containerHeight===b?p:{containerWidth:y,containerHeight:b}})},[]),f=x.useCallback(d=>{if(typeof t=="function"&&t(d),d!=null){var{width:h,height:p}=d.getBoundingClientRect();u(h,p)}},[t,u]);return x.createElement(x.Fragment,null,x.createElement(Vd,{width:l.containerWidth,height:l.containerHeight}),x.createElement("div",il({ref:f},e)))}),iW=x.forwardRef((e,t)=>{var{width:n,height:r}=e;return x.createElement(x.Fragment,null,x.createElement(Vd,{width:n,height:r}),x.createElement("div",il({ref:t},e)))}),lW=x.forwardRef((e,t)=>{var{width:n,height:r}=e;return ha(n)||ha(r)?x.createElement(aW,il({},e,{ref:t})):x.createElement(iW,il({},e,{ref:t}))});function oW(e){return e===!0?rW:lW}var sW=x.forwardRef((e,t)=>{var{children:n,className:r,height:l,onClick:o,onContextMenu:u,onDoubleClick:f,onMouseDown:d,onMouseEnter:h,onMouseLeave:p,onMouseMove:y,onMouseUp:b,onTouchEnd:w,onTouchMove:S,onTouchStart:j,style:_,width:A,responsive:N,dispatchTouchEvents:C=!0}=e,D=x.useRef(null),k=it(),[T,P]=x.useState(null),[$,X]=x.useState(null),Z=WZ(),te=c0(),R=(te==null?void 0:te.width)>0?te.width:A,ce=(te==null?void 0:te.height)>0?te.height:l,le=x.useCallback(J=>{Z(J),typeof t=="function"&&t(J),P(J),X(J),J!=null&&(D.current=J)},[Z,t,P,X]),fe=x.useCallback(J=>{k(FM(J)),k(rr({handler:o,reactEvent:J}))},[k,o]),U=x.useCallback(J=>{k(Pg(J)),k(rr({handler:h,reactEvent:J}))},[k,h]),Q=x.useCallback(J=>{k(C5()),k(rr({handler:p,reactEvent:J}))},[k,p]),se=x.useCallback(J=>{k(Pg(J)),k(rr({handler:y,reactEvent:J}))},[k,y]),de=x.useCallback(()=>{k(ZM())},[k]),B=x.useCallback(J=>{k(XM(J.key))},[k]),M=x.useCallback(J=>{k(rr({handler:u,reactEvent:J}))},[k,u]),q=x.useCallback(J=>{k(rr({handler:f,reactEvent:J}))},[k,f]),ie=x.useCallback(J=>{k(rr({handler:d,reactEvent:J}))},[k,d]),ue=x.useCallback(J=>{k(rr({handler:b,reactEvent:J}))},[k,b]),me=x.useCallback(J=>{k(rr({handler:j,reactEvent:J}))},[k,j]),ge=x.useCallback(J=>{C&&k(QM(J)),k(rr({handler:S,reactEvent:J}))},[k,C,S]),Se=x.useCallback(J=>{k(rr({handler:w,reactEvent:J}))},[k,w]),Ie=oW(N);return x.createElement(X5.Provider,{value:T},x.createElement(rE.Provider,{value:$},x.createElement(Ie,{width:R??(_==null?void 0:_.width),height:ce??(_==null?void 0:_.height),className:qe("recharts-wrapper",r),style:QZ({position:"relative",cursor:"default",width:R,height:ce},_),onClick:fe,onContextMenu:M,onDoubleClick:q,onFocus:de,onKeyDown:B,onMouseDown:ie,onMouseEnter:U,onMouseLeave:Q,onMouseMove:se,onMouseUp:ue,onTouchEnd:Se,onTouchMove:ge,onTouchStart:me,ref:le},x.createElement(nW,null),n)))}),uW=["width","height","responsive","children","className","style","compact","title","desc"];function cW(e,t){if(e==null)return{};var n,r,l=fW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function fW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var r3=x.forwardRef((e,t)=>{var{width:n,height:r,responsive:l,children:o,className:u,style:f,compact:d,title:h,desc:p}=e,y=cW(e,uW),b=Nn(y);return d?x.createElement(x.Fragment,null,x.createElement(Vd,{width:n,height:r}),x.createElement(dN,{otherAttributes:b,title:h,desc:p},o)):x.createElement(sW,{className:u,style:f,width:n,height:r,responsive:l??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},x.createElement(dN,{otherAttributes:b,title:h,desc:p,ref:t},x.createElement(RG,null,o)))});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)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rg.apply(null,arguments)}var dW={top:5,right:5,bottom:5,left:5},hW={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:dW,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},a3=x.forwardRef(function(t,n){var r,l=Pt(t.categoricalChartProps,hW),{chartName:o,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,categoricalChartProps:h}=t,p={chartName:o,defaultTooltipEventType:u,validateTooltipEventTypes:f,tooltipPayloadSearcher:d,eventEmitter:void 0};return x.createElement(e3,{preloadedState:{options:p},reduxStoreName:(r=h.id)!==null&&r!==void 0?r:o},x.createElement(_M,{chartData:h.data}),x.createElement(t3,{layout:l.layout,margin:l.margin}),x.createElement(n3,{baseValue:l.baseValue,accessibilityLayer:l.accessibilityLayer,barCategoryGap:l.barCategoryGap,maxBarSize:l.maxBarSize,stackOffset:l.stackOffset,barGap:l.barGap,barSize:l.barSize,syncId:l.syncId,syncMethod:l.syncMethod,className:l.className,reverseStackOrder:l.reverseStackOrder}),x.createElement(r3,Rg({},l,{ref:n})))}),mW=["axis","item"],mN=x.forwardRef((e,t)=>x.createElement(a3,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:mW,tooltipPayloadSearcher:jb,categoricalChartProps:e,ref:t}));function pW(e){var t=it();return x.useEffect(()=>{t(BZ(e))},[t,e]),null}var vW=["layout"];function zg(){return zg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zg.apply(null,arguments)}function yW(e,t){if(e==null)return{};var n,r,l=gW(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(l[n]=e[n])}return l}function gW(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var bW={top:5,right:5,bottom:5,left:5},i3={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:bW,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},xW=x.forwardRef(function(t,n){var r,l=Pt(t.categoricalChartProps,i3),{layout:o}=l,u=yW(l,vW),{chartName:f,defaultTooltipEventType:d,validateTooltipEventTypes:h,tooltipPayloadSearcher:p}=t,y={chartName:f,defaultTooltipEventType:d,validateTooltipEventTypes:h,tooltipPayloadSearcher:p,eventEmitter:void 0};return x.createElement(e3,{preloadedState:{options:y},reduxStoreName:(r=l.id)!==null&&r!==void 0?r:f},x.createElement(_M,{chartData:l.data}),x.createElement(t3,{layout:o,margin:l.margin}),x.createElement(n3,{baseValue:void 0,accessibilityLayer:l.accessibilityLayer,barCategoryGap:l.barCategoryGap,maxBarSize:l.maxBarSize,stackOffset:l.stackOffset,barGap:l.barGap,barSize:l.barSize,syncId:l.syncId,syncMethod:l.syncMethod,className:l.className,reverseStackOrder:l.reverseStackOrder}),x.createElement(pW,{cx:l.cx,cy:l.cy,startAngle:l.startAngle,endAngle:l.endAngle,innerRadius:l.innerRadius,outerRadius:l.outerRadius}),x.createElement(r3,zg({},u,{ref:n})))});function pN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(l){return Object.getOwnPropertyDescriptor(e,l).enumerable})),n.push.apply(n,r)}return n}function vN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pN(Object(n),!0).forEach(function(r){wW(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wW(e,t,n){return(t=SW(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SW(e){var t=jW(e,"string");return typeof t=="symbol"?t:t+""}function jW(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _W=["item"],OW=vN(vN({},i3),{},{layout:"centric",startAngle:0,endAngle:360}),yN=x.forwardRef((e,t)=>{var n=Pt(e,OW);return x.createElement(xW,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:_W,tooltipPayloadSearcher:jb,categoricalChartProps:n,ref:t})}),AW=["axis"],NW=x.forwardRef((e,t)=>x.createElement(a3,{chartName:"AreaChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:AW,tooltipPayloadSearcher:jb,categoricalChartProps:e,ref:t}));const EW=({status:e})=>{const t={processing:"bg-yellow-100 text-yellow-800",pending_ship:"bg-[#FFE815] text-black",shipped:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",cancelled:"bg-gray-100 text-gray-500",refunding:"bg-red-100 text-red-600"},n={processing:"处理中",pending_ship:"待发货",shipped:"已发货",completed:"已完成",cancelled:"已取消",refunding:"退款中"};return m.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold ${t[e]||t.cancelled}`,children:n[e]||e})},ff=({title:e,value:t,icon:n,colorClass:r,trend:l})=>m.jsxs("div",{className:"ios-card p-6 rounded-[2rem] flex flex-col justify-between hover:translate-y-[-4px] transition-all duration-300 h-full relative overflow-hidden group border-0",children:[m.jsx("div",{className:`absolute -right-6 -top-6 w-32 h-32 ${r} opacity-10 rounded-full group-hover:scale-125 transition-transform duration-500 blur-2xl`}),m.jsxs("div",{className:"flex justify-between items-start mb-6",children:[m.jsx("div",{className:`p-4 rounded-2xl ${r} bg-opacity-10 backdrop-blur-sm`,children:m.jsx(n,{className:`w-6 h-6 ${r.replace("bg-","text-")}`})}),l&&m.jsxs("span",{className:"text-xs font-bold text-black bg-[#FFE815] px-3 py-1.5 rounded-full flex items-center gap-1 shadow-sm",children:[m.jsx(K4,{className:"w-3 h-3"})," ",l]})]}),m.jsxs("div",{className:"relative z-10",children:[m.jsx("h3",{className:"text-3xl font-extrabold text-gray-900 tracking-tight font-feature-settings-tnum",children:t}),m.jsx("p",{className:"text-gray-500 text-sm font-medium mt-1",children:e})]})]}),gN=()=>{var de;const[e,t]=x.useState(null),[n,r]=x.useState(null),[l,o]=x.useState("7days"),[u,f]=x.useState(""),[d,h]=x.useState(""),[p,y]=x.useState(null),[b,w]=x.useState(""),[S,j]=x.useState([]),[_,A]=x.useState(!1),[N,C]=x.useState([]),[D,k]=x.useState({}),T=["#FFE815","#3B82F6","#10B981","#F59E0B","#8B5CF6"],P=B=>{const M=new Date,q=M.getFullYear(),ie=String(M.getMonth()+1).padStart(2,"0"),ue=String(M.getDate()).padStart(2,"0"),me=`${q}-${ie}-${ue}`;let ge;switch(B){case"today":ge={start_date:me,end_date:me};break;case"yesterday":const Ie=new Date(M);Ie.setDate(Ie.getDate()-1);const J=Ie.getFullYear(),xe=String(Ie.getMonth()+1).padStart(2,"0"),_e=String(Ie.getDate()).padStart(2,"0"),oe=`${J}-${xe}-${_e}`;ge={start_date:oe,end_date:oe};break;case"3days":const De=new Date(M);De.setDate(De.getDate()-3);const H=De.getFullYear(),Oe=String(De.getMonth()+1).padStart(2,"0"),Ke=String(De.getDate()).padStart(2,"0");ge={start_date:`${H}-${Oe}-${Ke}`,end_date:me};break;case"7days":const Ut=new Date(M);Ut.setDate(Ut.getDate()-7);const jr=Ut.getFullYear(),mi=String(Ut.getMonth()+1).padStart(2,"0"),pi=String(Ut.getDate()).padStart(2,"0");ge={start_date:`${jr}-${mi}-${pi}`,end_date:me};break;case"30days":const dr=new Date(M);dr.setDate(dr.getDate()-30);const To=dr.getFullYear(),Mo=String(dr.getMonth()+1).padStart(2,"0"),Zt=String(dr.getDate()).padStart(2,"0");ge={start_date:`${To}-${Mo}-${Zt}`,end_date:me};break;case"custom":if(u&&d)ge={start_date:u,end_date:d};else{const Tn=new Date(M);Tn.setDate(Tn.getDate()-7);const _r=Tn.getFullYear(),ul=String(Tn.getMonth()+1).padStart(2,"0"),cl=String(Tn.getDate()).padStart(2,"0");ge={start_date:`${_r}-${ul}-${cl}`,end_date:me}}break;default:const re=new Date(M);re.setDate(re.getDate()-7);const Ne=re.getFullYear(),Ye=String(re.getMonth()+1).padStart(2,"0"),mt=String(re.getDate()).padStart(2,"0");ge={start_date:`${Ne}-${Ye}-${mt}`,end_date:me}}const Se=$(B,M);Se&&g2(Se).then(y).catch(console.error),g2(ge).then(r).catch(console.error)},$=(B,M)=>{switch(M.getFullYear(),String(M.getMonth()+1).padStart(2,"0"),String(M.getDate()).padStart(2,"0"),B){case"today":const q=new Date(M);q.setDate(q.getDate()-1);const ie=q.getFullYear(),ue=String(q.getMonth()+1).padStart(2,"0"),me=String(q.getDate()).padStart(2,"0");return{start_date:`${ie}-${ue}-${me}`,end_date:`${ie}-${ue}-${me}`};case"yesterday":const ge=new Date(M);ge.setDate(ge.getDate()-2);const Se=ge.getFullYear(),Ie=String(ge.getMonth()+1).padStart(2,"0"),J=String(ge.getDate()).padStart(2,"0");return{start_date:`${Se}-${Ie}-${J}`,end_date:`${Se}-${Ie}-${J}`};case"7days":const xe=new Date(M);xe.setDate(xe.getDate()-7);const _e=new Date(xe);return _e.setDate(_e.getDate()-7),{start_date:`${_e.getFullYear()}-${String(_e.getMonth()+1).padStart(2,"0")}-${String(_e.getDate()).padStart(2,"0")}`,end_date:`${xe.getFullYear()}-${String(xe.getMonth()+1).padStart(2,"0")}-${String(xe.getDate()).padStart(2,"0")}`};case"30days":const oe=new Date(M);oe.setDate(oe.getDate()-30);const De=new Date(oe);return De.setDate(De.getDate()-30),{start_date:`${De.getFullYear()}-${String(De.getMonth()+1).padStart(2,"0")}-${String(De.getDate()).padStart(2,"0")}`,end_date:`${oe.getFullYear()}-${String(oe.getMonth()+1).padStart(2,"0")}-${String(oe.getDate()).padStart(2,"0")}`};default:return null}},X=()=>{if(!n||!p)return null;const B=n.revenue_stats.total_amount,M=p.revenue_stats.total_amount;if(M===0)return B>0?"+100%":"0%";const q=(B-M)/M*100;return`${q>=0?"+":""}${q.toFixed(1)}%`};x.useEffect(()=>{Y6().then(t).catch(console.error),P(l),Ef().then(B=>{C(B);const M={};B.forEach(q=>{M[q.item_id]=q.item_title||q.item_id}),k(M)}).catch(console.error)},[l]),x.useEffect(()=>{const{startDate:B,endDate:M}=Z(l);A(!0),G6({start_date:B,end_date:M}).then(q=>{j(q)}).catch(console.error).finally(()=>A(!1))},[l]);const Z=B=>{const M=new Date,q=M.toISOString().split("T")[0];let ie=q;if(B==="7days"){const ue=new Date(M);ue.setDate(ue.getDate()-7),ie=ue.toISOString().split("T")[0]}else if(B==="30days"){const ue=new Date(M);ue.setDate(ue.getDate()-30),ie=ue.toISOString().split("T")[0]}return{startDate:ie,endDate:q}};if(!e||!n)return m.jsx("div",{className:"p-8 flex justify-center text-gray-400",children:m.jsx(XS,{className:"w-8 h-8 animate-spin text-[#FFE815]"})});const te=((de=n.daily_stats)==null?void 0:de.map(B=>({name:B.date.slice(5),amount:B.amount,orders:B.order_count,avgAmount:B.order_count>0?(B.amount/B.order_count).toFixed(2):0})))||[],R=n.item_stats||[],ce=n.revenue_stats.total_orders||0,le=n.revenue_stats.total_amount||0,fe=R.length>0?R.map(B=>({name:(D[B.item_id]||B.item_id).length>12?(D[B.item_id]||B.item_id).substring(0,12)+"...":D[B.item_id]||B.item_id,sales:B.order_count})).sort((B,M)=>M.sales-B.sales).slice(0,10):[],U=R.length>0?R.map(B=>({name:(D[B.item_id]||B.item_id).length>10?(D[B.item_id]||B.item_id).substring(0,10)+"...":D[B.item_id]||B.item_id,value:B.order_count,percent:ce>0?B.order_count/ce*100:0})).sort((B,M)=>M.value-B.value).slice(0,6).map((B,M)=>({...B,color:T[M%T.length]})):[],Q=R.length>0?R.map(B=>({name:(D[B.item_id]||B.item_id).length>12?(D[B.item_id]||B.item_id).substring(0,12)+"...":D[B.item_id]||B.item_id,value:B.total_amount,orderCount:B.order_count,percentage:le>0?B.total_amount/le*100:0})).sort((B,M)=>M.value-B.value).slice(0,5).map((B,M)=>({...B,color:T[M%T.length],percentage:B.percentage.toFixed(1)})):[],se=[{key:"today",label:"今天"},{key:"yesterday",label:"昨天"},{key:"3days",label:"三天内"},{key:"7days",label:"7天内"},{key:"30days",label:"一个月内"},{key:"custom",label:"自定义"}];return m.jsxs("div",{className:"space-y-8 animate-fade-in",children:[m.jsxs("div",{className:"flex flex-col md:flex-row justify-between md:items-end gap-4",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"运营概览"}),m.jsx("p",{className:"text-gray-500 mt-2 text-base",children:"欢迎回来，以下是闲鱼店铺的实时经营数据。"})]}),m.jsx("div",{className:"flex items-center gap-3",children:m.jsxs("div",{className:"text-sm font-bold text-gray-700 bg-white px-5 py-2.5 rounded-full shadow-sm border border-gray-100 flex items-center gap-2",children:[m.jsx("span",{className:"w-2.5 h-2.5 bg-green-500 rounded-full animate-pulse"}),"系统正常运行"]})})]}),m.jsxs("div",{className:"flex flex-wrap gap-2 p-2 bg-gray-100/50 rounded-2xl",children:[se.map(B=>m.jsx("button",{onClick:()=>o(B.key),className:`px-5 py-2.5 rounded-xl text-sm font-bold transition-all ${l===B.key?"bg-[#FFE815] text-black shadow-md":"bg-white text-gray-600 hover:text-black hover:bg-gray-50"}`,children:B.label},B.key)),l==="custom"&&m.jsxs(m.Fragment,{children:[m.jsx("input",{type:"date",value:u,onChange:B=>f(B.target.value),className:"px-3 py-2 rounded-xl text-sm border border-gray-200 focus:outline-none focus:ring-2 focus:ring-[#FFE815]"}),m.jsx("span",{className:"self-center text-gray-400",children:"-"}),m.jsx("input",{type:"date",value:d,onChange:B=>h(B.target.value),className:"px-3 py-2 rounded-xl text-sm border border-gray-200 focus:outline-none focus:ring-2 focus:ring-[#FFE815]"}),m.jsx("button",{onClick:()=>P("custom"),className:"px-4 py-2 rounded-xl text-sm font-bold bg-black text-white hover:bg-gray-800 transition-colors",children:"应用"})]})]}),m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:[m.jsx(ff,{title:"累计营收 (CNY)",value:`¥${n.revenue_stats.total_amount.toLocaleString("zh-CN",{minimumFractionDigits:2})}`,icon:a4,colorClass:"bg-yellow-400",trend:X()||void 0}),m.jsx(ff,{title:"活跃账号 / 总数",value:`${e.active_cookies} / ${e.total_cookies}`,icon:CN,colorClass:"bg-blue-500"}),m.jsx(ff,{title:"订单数",value:n.revenue_stats.total_orders.toLocaleString(),icon:e2,colorClass:"bg-orange-500"}),m.jsx(ff,{title:"库存卡密余量",value:e.total_cards,icon:AN,colorClass:"bg-purple-500"})]}),m.jsxs("div",{className:"ios-card p-8 rounded-[2rem]",children:[m.jsxs("div",{className:"mb-10",children:[m.jsx("h3",{className:"text-xl font-bold text-gray-900",children:"营收趋势分析"}),m.jsx("p",{className:"text-sm text-gray-400 mt-1",children:"最近7天的销售额走势"})]}),m.jsx("div",{className:"h-[350px] w-full",children:te.length===0||n.revenue_stats.total_amount===0?m.jsxs("div",{className:"h-full flex flex-col items-center justify-center text-gray-400",children:[m.jsx(e2,{className:"w-16 h-16 mb-4 opacity-20"}),m.jsx("p",{className:"text-lg font-medium",children:"暂无营收数据"}),m.jsx("p",{className:"text-sm mt-2",children:"所选时间范围内暂无订单记录"})]}):te.length<=2?m.jsx(As,{width:"100%",height:"100%",children:m.jsxs(mN,{data:te,margin:{top:30,right:20,left:-20,bottom:30},barCategoryGap:30,children:[m.jsx(jf,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fill:"#374151",fontSize:14,fontWeight:600},dy:10}),m.jsx(_f,{axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:13,fontWeight:500},tickFormatter:B=>`¥${B}`}),m.jsx(sf,{contentStyle:{backgroundColor:"#1F2937",borderRadius:"16px",border:"none",boxShadow:"0 20px 40px rgba(0, 0, 0, 0.3)",padding:"12px 16px"},itemStyle:{color:"#FFE815",fontWeight:600},formatter:B=>`营收: ¥${Number(B).toFixed(2)}`}),m.jsx(Mg,{dataKey:"amount",fill:"#FFE815",radius:[12,12,0,0],stroke:"#000000",strokeWidth:0,children:te.map((B,M)=>m.jsx(Vi,{fill:["#FFE815","#FCD34D","#FBBF24"][M%3]},`cell-${M}`))})]})}):m.jsx(As,{width:"100%",height:"100%",children:m.jsxs(NW,{data:te,margin:{top:10,right:10,left:-20,bottom:0},children:[m.jsx("defs",{children:m.jsxs("linearGradient",{id:"colorAmount",x1:"0",y1:"0",x2:"0",y2:"1",children:[m.jsx("stop",{offset:"5%",stopColor:"#FFE815",stopOpacity:.5}),m.jsx("stop",{offset:"95%",stopColor:"#FFE815",stopOpacity:0})]})}),m.jsx(jf,{dataKey:"name",axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:13,fontWeight:500},dy:15}),m.jsx(_f,{axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:13,fontWeight:500}}),m.jsx(Eg,{vertical:!1,stroke:"#F3F4F6",strokeDasharray:"3 3"}),m.jsx(sf,{contentStyle:{background:"#1A1A1A",borderRadius:"16px",border:"none",boxShadow:"0 10px 40px rgba(0,0,0,0.2)"},itemStyle:{color:"#FFE815",fontWeight:600},labelStyle:{color:"#888"},cursor:{stroke:"#FFE815",strokeWidth:2,strokeDasharray:"4 4"}}),m.jsx(IM,{type:"monotone",dataKey:"amount",stroke:"#FACC15",strokeWidth:4,fillOpacity:1,fill:"url(#colorAmount)",activeDot:{r:8,fill:"#1A1A1A",stroke:"#FFE815",strokeWidth:2}})]})})})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[m.jsxs("div",{className:"ios-card p-6 rounded-[2rem]",children:[m.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-6",children:"商品销量排行"}),m.jsx("div",{className:"h-[280px]",children:fe.length===0?m.jsx("div",{className:"flex items-center justify-center h-full text-gray-400",children:"暂无数据"}):m.jsx(As,{width:"100%",height:"100%",children:m.jsxs(mN,{data:fe,layout:"vertical",children:[m.jsx(Eg,{strokeDasharray:"3 3",horizontal:!0,vertical:!1,stroke:"#f0f0f0"}),m.jsx(jf,{type:"number",axisLine:!1,tickLine:!1,tick:{fill:"#9CA3AF",fontSize:12}}),m.jsx(_f,{type:"category",dataKey:"name",axisLine:!1,tickLine:!1,tick:{fill:"#6B7280",fontSize:12},width:100}),m.jsx(sf,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"}}),m.jsx(Mg,{dataKey:"sales",fill:"#000000",radius:[0,8,8,0]})]})})})]}),m.jsxs("div",{className:"ios-card p-6 rounded-[2rem]",children:[m.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-6",children:"商品下单占比"}),m.jsx("div",{className:"h-[280px]",children:U.length===0?m.jsx("div",{className:"flex items-center justify-center h-full text-gray-400",children:"暂无数据"}):m.jsx(As,{width:"100%",height:"100%",children:m.jsxs(yN,{children:[m.jsx(Ng,{data:U,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:2,dataKey:"value",label:({name:B,percent:M})=>`${B} ${(M*100).toFixed(0)}%`,labelLine:!1,children:U.map((B,M)=>m.jsx(Vi,{fill:B.color},`cell-${M}`))}),m.jsx(zC,{verticalAlign:"bottom",height:36,iconType:"circle",formatter:B=>m.jsx("span",{style:{color:"#6B7280",fontWeight:500},children:B})})]})})})]})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[m.jsxs("div",{className:"lg:col-span-2 ios-card p-0 rounded-[2rem] border-0 bg-white overflow-hidden flex flex-col",children:[m.jsxs("div",{className:"p-6 border-b border-gray-50 flex justify-between items-center bg-[#FAFAFA]",children:[m.jsx("h3",{className:"font-bold text-lg text-gray-900",children:"参与统计的订单"}),m.jsx("div",{className:"relative",children:m.jsx("input",{placeholder:"搜索订单号/商品/买家...",value:b,onChange:B=>w(B.target.value),className:"pl-4 pr-4 py-2 rounded-xl bg-white border border-gray-100 text-sm focus:border-yellow-400 outline-none w-48",type:"text"})})]}),m.jsx("div",{className:"overflow-x-auto flex-1 max-h-[400px]",children:_?m.jsxs("div",{className:"flex items-center justify-center py-20 text-gray-400",children:[m.jsx(XS,{className:"w-6 h-6 animate-spin mr-2"}),"加载中..."]}):S.filter(B=>{var M,q,ie;return((M=B.order_id)==null?void 0:M.toLowerCase().includes(b.toLowerCase()))||((q=B.item_id)==null?void 0:q.toLowerCase().includes(b.toLowerCase()))||((ie=B.buyer_id)==null?void 0:ie.toLowerCase().includes(b.toLowerCase()))}).length===0?m.jsx("div",{className:"flex items-center justify-center py-20 text-gray-400",children:"暂无订单数据"}):m.jsxs("table",{className:"w-full text-left border-collapse",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"bg-white text-gray-400 text-xs font-bold uppercase tracking-wider border-b border-gray-50",children:[m.jsx("th",{className:"px-6 py-4",children:"订单信息"}),m.jsx("th",{className:"px-6 py-4",children:"买家信息"}),m.jsx("th",{className:"px-6 py-4",children:"金额"}),m.jsx("th",{className:"px-6 py-4",children:"状态"}),m.jsx("th",{className:"px-6 py-4 text-right",children:"操作"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-50",children:S.filter(B=>{var M,q,ie;return((M=B.order_id)==null?void 0:M.toLowerCase().includes(b.toLowerCase()))||((q=B.item_id)==null?void 0:q.toLowerCase().includes(b.toLowerCase()))||((ie=B.buyer_id)==null?void 0:ie.toLowerCase().includes(b.toLowerCase()))}).map(B=>m.jsxs("tr",{className:"hover:bg-[#FFFDE7]/50 transition-colors group",children:[m.jsx("td",{className:"px-6 py-4",children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"w-12 h-12 rounded-xl bg-gray-100 overflow-hidden shadow-sm border border-gray-100 flex-shrink-0",children:m.jsx(Cy,{className:"w-full h-full text-gray-300 p-2"})}),m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"font-bold text-gray-900 text-sm line-clamp-1",children:B.item_title||B.item_id||"未知商品"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1 font-mono",children:B.order_id}),m.jsxs("div",{className:"text-xs text-gray-400 mt-0.5",children:["数量: ",B.quantity||1]})]})]})}),m.jsxs("td",{className:"px-6 py-4",children:[m.jsx("div",{className:"text-sm font-bold text-gray-800",children:B.buyer_id}),B.created_at&&m.jsx("div",{className:"text-xs text-gray-400 mt-1",children:B.created_at})]}),m.jsxs("td",{className:"px-6 py-4 text-base font-extrabold text-gray-900 font-feature-settings-tnum",children:["¥",B.amount||"0.00"]}),m.jsx("td",{className:"px-6 py-4",children:m.jsx(EW,{status:B.status||B.order_status||"unknown"})}),m.jsx("td",{className:"px-6 py-4 text-right",children:m.jsx("a",{href:`https://www.goofish.com/order-detail?orderId=${B.order_id}&role=seller`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex text-gray-400 hover:text-amber-600 p-2 rounded-xl hover:bg-amber-50 transition-colors",title:"查看闲鱼详情",children:m.jsx(ON,{className:"w-4 h-4"})})})]},B.order_id))})]})})]}),m.jsxs("div",{className:"ios-card p-6 rounded-[2rem] bg-white",children:[m.jsx("h3",{className:"font-bold text-lg text-gray-900 mb-6",children:"商品金额分析 (TOP5)"}),Q.length===0?m.jsx("div",{className:"flex items-center justify-center h-[300px] text-gray-400",children:"暂无数据"}):m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"h-[300px] relative",children:m.jsx(As,{width:"100%",height:"100%",children:m.jsxs(yN,{children:[m.jsx(Ng,{data:Q,cx:"50%",cy:"50%",innerRadius:60,outerRadius:100,paddingAngle:2,dataKey:"value",label:({name:B,percent:M})=>`${B} ${(M*100).toFixed(0)}%`,children:Q.map((B,M)=>m.jsx(Vi,{fill:B.color||T[M%T.length]},`cell-${M}`))}),m.jsx(sf,{contentStyle:{backgroundColor:"#fff",border:"1px solid #e5e7eb",borderRadius:"12px",boxShadow:"0 4px 6px -1px rgba(0, 0, 0, 0.1)"},formatter:B=>`¥${B.toLocaleString()}`})]})})}),m.jsx("div",{className:"space-y-3 mt-4",children:Q.map(B=>m.jsxs("div",{className:"flex justify-between items-center text-sm",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("div",{className:"w-3 h-3 rounded-full",style:{backgroundColor:B.color||T[Q.indexOf(B)%T.length]}}),m.jsx("span",{className:"text-gray-600 font-medium",children:B.name})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsxs("span",{className:"font-bold text-gray-900",children:["¥",B.value.toLocaleString()]}),m.jsxs("span",{className:"text-xs text-gray-500 bg-gray-100 px-2 py-0.5 rounded",children:[B.percentage,"%"]})]})]},B.name))})]})]})]})]})},CW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState(!0),[l,o]=x.useState(!1),[u,f]=x.useState(""),[d,h]=x.useState("pending"),[p,y]=x.useState(null),[b,w]=x.useState(null),[S,j]=x.useState({remark:"",cookie:"",auto_confirm:!1,pause_duration:0,username:"",login_password:"",show_browser:!1,showLoginPassword:!1}),[_,A]=x.useState({ai_enabled:!1,max_discount_percent:10,max_discount_amount:100,max_bargain_rounds:3,custom_prompts:""}),[N,C]=x.useState(!1),D=async()=>{r(!0);try{const R=await Hg();let ce={};try{ce=await I6()}catch(fe){console.error("Failed to load AI settings:",fe)}const le=R.map(fe=>{var U,Q,se,de,B;return{...fe,ai_enabled:((U=ce[fe.id])==null?void 0:U.ai_enabled)??!1,max_discount_percent:((Q=ce[fe.id])==null?void 0:Q.max_discount_percent)??10,max_discount_amount:((se=ce[fe.id])==null?void 0:se.max_discount_amount)??100,max_bargain_rounds:((de=ce[fe.id])==null?void 0:de.max_bargain_rounds)??3,custom_prompts:((B=ce[fe.id])==null?void 0:B.custom_prompts)??""}});t(le)}catch(R){console.error("Failed to load accounts:",R)}finally{r(!1)}};x.useEffect(()=>{D()},[]);const k=async(R,ce)=>{await D6(R,!ce),D()},T=async R=>{confirm("确认删除该账号吗？")&&(await k6(R),D())},P=R=>{w(R),j({remark:R.remark||R.note||"",cookie:R.cookie||R.value||"",auto_confirm:R.auto_confirm||!1,pause_duration:R.pause_duration||0,username:R.username||"",login_password:R.login_password||"",show_browser:R.show_browser||!1,showLoginPassword:!1}),y("edit")},$=async R=>{w(R),C(!0);try{const ce=await aR(R.id);A({ai_enabled:ce.ai_enabled??!1,max_discount_percent:ce.max_discount_percent??10,max_discount_amount:ce.max_discount_amount??100,max_bargain_rounds:ce.max_bargain_rounds??3,custom_prompts:ce.custom_prompts??""})}catch(ce){console.error("Failed to load AI settings:",ce)}finally{C(!1)}y("ai-settings")},X=async()=>{if(b){C(!0);try{const R=[];S.remark!==(b.remark||b.note||"")&&R.push(P6(b.id,S.remark)),S.cookie&&S.cookie!==(b.cookie||b.value||"")&&R.push(L6(b.id,S.cookie)),S.auto_confirm!==b.auto_confirm&&R.push(R6(b.id,S.auto_confirm)),S.pause_duration!==(b.pause_duration||0)&&R.push(z6(b.id,S.pause_duration)),(S.username!==(b.username||"")||S.login_password!==(b.login_password||"")||S.show_browser!==(b.show_browser||!1))&&R.push(B6(b.id,{username:S.username,login_password:S.login_password,show_browser:S.show_browser})),await Promise.all(R),y(null),D()}catch(R){console.error("更新账号失败:",R),alert("更新失败，请重试")}finally{C(!1)}}},Z=async()=>{if(b){C(!0);try{await iR(b.id,_),y(null),D()}catch(R){console.error("更新AI设置失败:",R),alert("更新失败，请重试")}finally{C(!1)}}},te=async()=>{o(!0),h("loading");try{const R=await T6();if(R.success&&R.qr_code_url&&R.session_id){f(R.qr_code_url),h("waiting");const ce=setInterval(async()=>{const le=await M6(R.session_id);le.status==="success"?(clearInterval(ce),h("success"),setTimeout(()=>{o(!1),D()},1e3)):(le.status==="expired"||le.status==="error")&&(clearInterval(ce),h("error"))},2e3)}}catch{h("error")}};return n?m.jsx("div",{className:"p-20 flex justify-center",children:m.jsx(Li,{className:"w-8 h-8 text-[#FFE815] animate-spin"})}):m.jsxs("div",{className:"space-y-8 animate-fade-in relative",children:[m.jsxs("div",{className:"flex justify-between items-end",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"账号管理"}),m.jsx("p",{className:"text-gray-500 mt-2 font-medium",children:"管理您的闲鱼授权账号及设置。"})]}),m.jsxs("button",{onClick:te,className:"ios-btn-primary flex items-center gap-2 px-6 py-3 rounded-2xl font-bold shadow-lg shadow-yellow-200 transition-transform hover:scale-105 active:scale-95",children:[m.jsx(M4,{className:"w-5 h-5"}),"扫码添加新账号"]})]}),m.jsxs("div",{className:"grid grid-cols-1 gap-6",children:[e.map(R=>m.jsxs("div",{className:"ios-card p-6 rounded-[2rem] flex items-center justify-between group hover:border-[#FFE815] transition-all duration-300",children:[m.jsxs("div",{className:"flex items-center gap-8",children:[m.jsxs("div",{className:"relative",children:[m.jsx("img",{src:R.avatar_url,alt:"avatar",className:"w-20 h-20 rounded-3xl object-cover shadow-md ring-4 ring-white"}),m.jsx("div",{className:`absolute -bottom-1 -right-1 w-6 h-6 rounded-full border-4 border-white flex items-center justify-center ${R.enabled?"bg-green-500":"bg-gray-300"}`,children:R.enabled&&m.jsx(Up,{className:"w-3 h-3 text-white"})})]}),m.jsxs("div",{children:[m.jsxs("div",{className:"flex items-center gap-3 mb-1",children:[m.jsx("h3",{className:"text-xl font-extrabold text-gray-900",children:R.nickname||R.remark||`账号 ${R.id.substring(0,6)}...`}),R.enabled?m.jsx("span",{className:"px-2.5 py-0.5 rounded-lg bg-green-100 text-green-700 text-xs font-bold",children:"在线"}):m.jsx("span",{className:"px-2.5 py-0.5 rounded-lg bg-gray-100 text-gray-500 text-xs font-bold",children:"暂停"}),R.ai_enabled&&m.jsxs("span",{className:"px-2.5 py-0.5 rounded-lg bg-purple-100 text-purple-700 text-xs font-bold flex items-center gap-1",children:[m.jsx(la,{className:"w-3 h-3"})," AI"]})]}),m.jsx("p",{className:"text-sm text-gray-500 font-medium mb-3",children:R.remark||R.note||"暂无备注"}),m.jsxs("div",{className:"flex gap-2",children:[R.auto_confirm&&m.jsxs("span",{className:"text-xs bg-yellow-50 text-yellow-700 px-3 py-1.5 rounded-lg font-bold flex items-center gap-1.5",children:[m.jsx(aa,{className:"w-3 h-3"})," 自动回复"]}),R.pause_duration>0&&m.jsxs("span",{className:"text-xs bg-blue-50 text-blue-700 px-3 py-1.5 rounded-lg font-bold flex items-center gap-1.5",children:[m.jsx(ZS,{className:"w-3 h-3"})," 暂停",R.pause_duration,"分钟"]})]})]})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:()=>P(R),className:"p-3 rounded-xl hover:bg-gray-100 transition-colors text-gray-600",title:"编辑账号",children:m.jsx(hf,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>$(R),className:"p-3 rounded-xl hover:bg-purple-100 transition-colors text-purple-600",title:"AI设置",children:m.jsx(la,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>k(R.id,R.enabled),className:`p-3 rounded-xl transition-colors ${R.enabled?"text-green-600 hover:bg-green-50":"text-gray-400 hover:bg-gray-100"}`,children:m.jsx(mf,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>T(R.id),className:"p-3 rounded-xl hover:bg-red-100 transition-colors text-red-500",children:m.jsx(Hi,{className:"w-5 h-5"})})]})]},R.id)),e.length===0&&m.jsxs("div",{className:"ios-card p-12 text-center",children:[m.jsx("div",{className:"w-20 h-20 bg-gray-100 rounded-full flex items-center justify-center mx-auto mb-4",children:m.jsx(EN,{className:"w-10 h-10 text-gray-400"})}),m.jsx("h3",{className:"text-lg font-bold text-gray-900",children:"暂无账号"}),m.jsx("p",{className:"text-gray-500 mt-1",children:"请点击右上角扫码添加您的闲鱼账号"})]})]}),l&&hn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",style:{maxWidth:"24rem"},children:[m.jsx("button",{onClick:()=>o(!1),className:"self-end p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors mb-6",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})}),m.jsx("div",{className:"modal-body",children:m.jsxs("div",{className:"text-center",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900 mb-2",children:"扫码登录"}),m.jsx("p",{className:"text-gray-500 mb-8 font-medium",children:"请打开闲鱼APP扫描下方二维码"}),m.jsxs("div",{className:"w-64 h-64 bg-[#F7F8FA] rounded-[2rem] mx-auto flex items-center justify-center overflow-hidden border-4 border-white shadow-inner mb-8 relative",children:[d==="loading"&&m.jsx(Li,{className:"w-10 h-10 text-[#FFE815] animate-spin"}),d==="waiting"&&m.jsx("img",{src:u,alt:"QR Code",className:"w-full h-full p-2"}),d==="success"&&m.jsxs("div",{className:"absolute inset-0 bg-white/95 flex flex-col items-center justify-center text-green-600 animate-fade-in",children:[m.jsx("div",{className:"w-16 h-16 bg-green-100 rounded-full flex items-center justify-center mb-4",children:m.jsx(Up,{className:"w-8 h-8"})}),m.jsx("span",{className:"font-bold text-lg",children:"登录成功"})]}),d==="error"&&m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("span",{className:"text-red-500 font-bold mb-2",children:"获取失败"}),m.jsxs("button",{onClick:te,className:"text-xs bg-gray-200 px-3 py-1 rounded-full flex items-center gap-1 hover:bg-gray-300",children:[m.jsx(ai,{className:"w-3 h-3"})," 重试"]})]})]}),m.jsx("p",{className:"text-xs text-gray-400 font-medium bg-gray-50 py-2 rounded-xl",children:"二维码有效期为5分钟，请尽快扫码。"})]})})]})}),document.body),p==="edit"&&b&&hn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",style:{maxWidth:"600px"},children:[m.jsxs("div",{className:"modal-header",children:[m.jsxs("div",{children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"编辑账号"}),m.jsx("p",{className:"text-sm text-gray-500 mt-1",children:b.nickname||b.remark||b.id})]}),m.jsx("button",{onClick:()=>y(null),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors flex-shrink-0",children:m.jsx(ir,{className:"w-5 h-5 text-gray-500"})})]}),m.jsxs("div",{className:"modal-body space-y-6",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"账号ID"}),m.jsx("input",{type:"text",value:b.id,disabled:!0,className:"w-full ios-input px-4 py-3 rounded-xl bg-gray-50 text-gray-500"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"备注"}),m.jsx("input",{type:"text",value:S.remark,onChange:R=>j({...S,remark:R.target.value}),placeholder:"为账号添加备注",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"Cookie"}),m.jsx("textarea",{value:S.cookie,onChange:R=>j({...S,cookie:R.target.value}),placeholder:"更新账号Cookie",className:"w-full ios-input px-4 py-3 rounded-xl h-32 resize-none font-mono text-xs"}),m.jsxs("p",{className:"text-xs text-gray-500 mt-1",children:["当前Cookie长度: ",S.cookie.length," 字符"]})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"font-bold text-gray-900 flex items-center gap-2",children:[m.jsx(Up,{className:"w-4 h-4 text-green-500"}),"自动确认收货"]}),m.jsx("div",{className:"text-xs text-gray-500",children:"自动点击确认收货按钮"})]}),m.jsx("button",{type:"button",onClick:()=>j({...S,auto_confirm:!S.auto_confirm}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${S.auto_confirm?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 ${S.auto_confirm?"translate-x-7":"translate-x-1"}`})})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"block text-sm font-bold text-gray-700 mb-2 flex items-center gap-2",children:[m.jsx(ZS,{className:"w-4 h-4 text-blue-500"}),"暂停处理时长（分钟）"]}),m.jsx("input",{type:"number",value:S.pause_duration,onChange:R=>j({...S,pause_duration:parseInt(R.target.value)||0}),placeholder:"0",min:"0",max:"1440",className:"w-full ios-input px-4 py-3 rounded-xl"}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"设置后会暂停处理该账号的订单，到时间后自动恢复"})]}),m.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[m.jsxs("h3",{className:"text-lg font-bold text-gray-900 mb-4 flex items-center gap-2",children:[m.jsx(df,{className:"w-5 h-5 text-amber-500"}),"登录信息"]}),m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"用户名"}),m.jsx("input",{type:"text",value:S.username,onChange:R=>j({...S,username:R.target.value}),placeholder:"闲鱼账号/手机号",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"登录密码"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:S.showLoginPassword?"text":"password",value:S.login_password,onChange:R=>j({...S,login_password:R.target.value}),placeholder:"用于自动登录",className:"w-full ios-input px-4 py-3 rounded-xl pr-12"}),m.jsx("button",{type:"button",onClick:()=>j({...S,showLoginPassword:!S.showLoginPassword}),className:"absolute right-3 top-1/2 -translate-y-1/2 text-gray-400 hover:text-gray-600",children:S.showLoginPassword?m.jsx(Ey,{className:"w-5 h-5"}):m.jsx(Of,{className:"w-5 h-5"})})]})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"登录时显示浏览器"}),m.jsx("div",{className:"text-xs text-gray-500",children:"调试时可开启查看登录过程"})]}),m.jsx("button",{type:"button",onClick:()=>j({...S,show_browser:!S.show_browser}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${S.show_browser?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 ${S.show_browser?"translate-x-7":"translate-x-1"}`})})]})]})]})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>y(null),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",disabled:N,children:"取消"}),m.jsxs("button",{onClick:X,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",disabled:N,children:[N?m.jsx(Li,{className:"w-4 h-4 animate-spin"}):m.jsx(ii,{className:"w-4 h-4"}),N?"保存中...":"保存"]})]})})]})}),document.body),p==="ai-settings"&&b&&hn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",style:{maxWidth:"600px"},children:[m.jsxs("div",{className:"modal-header",children:[m.jsxs("div",{children:[m.jsxs("h3",{className:"text-2xl font-extrabold text-gray-900 flex items-center gap-2",children:[m.jsx(la,{className:"w-6 h-6 text-purple-500"}),"AI助手设置"]}),m.jsx("p",{className:"text-sm text-gray-500 mt-1",children:b.nickname||b.remark||b.id})]}),m.jsx("button",{onClick:()=>y(null),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors flex-shrink-0",children:m.jsx(ir,{className:"w-5 h-5 text-gray-500"})})]}),m.jsxs("div",{className:"modal-body space-y-6",children:[m.jsxs("div",{className:"flex items-center justify-between p-4 bg-purple-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"font-bold text-gray-900 flex items-center gap-2",children:[m.jsx(la,{className:"w-4 h-4 text-purple-500"}),"启用AI自动回复"]}),m.jsx("div",{className:"text-xs text-gray-500",children:"AI将自动处理买家的砍价消息"})]}),m.jsx("button",{type:"button",onClick:()=>A({..._,ai_enabled:!_.ai_enabled}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${_.ai_enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 ${_.ai_enabled?"translate-x-7":"translate-x-1"}`})})]}),m.jsxs("div",{className:"border-t border-gray-200 pt-6",children:[m.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-4",children:"砍价策略"}),m.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"最大折扣比例 (%)"}),m.jsx("input",{type:"number",value:_.max_discount_percent,onChange:R=>A({..._,max_discount_percent:parseInt(R.target.value)||0}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"0",max:"100"}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"例如：10表示最多降价10%"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"最大折扣金额 (元)"}),m.jsx("input",{type:"number",value:_.max_discount_amount,onChange:R=>A({..._,max_discount_amount:parseInt(R.target.value)||0}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"0"}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"例如：100表示最多降价100元"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"最大砍价轮次"}),m.jsx("input",{type:"number",value:_.max_bargain_rounds,onChange:R=>A({..._,max_bargain_rounds:parseInt(R.target.value)||1}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"1",max:"10"}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"买家最多可以砍价的次数"})]})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"自定义提示词（可选）"}),m.jsx("textarea",{value:_.custom_prompts,onChange:R=>A({..._,custom_prompts:R.target.value}),placeholder:`输入自定义的AI回复规则或风格指引...

例如：回复时保持礼貌专业、使用简洁的语言、强调产品质量等`,className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none"})]}),m.jsxs("div",{className:"bg-blue-50 border border-blue-200 rounded-xl p-4",children:[m.jsxs("h4",{className:"font-bold text-blue-900 mb-2 flex items-center gap-2",children:[m.jsx(Lg,{className:"w-4 h-4"}),"AI如何工作"]}),m.jsxs("ul",{className:"text-xs text-blue-800 space-y-1",children:[m.jsx("li",{children:"• 自动识别买家的砍价请求"}),m.jsx("li",{children:"• 根据设定的策略智能回复"}),m.jsx("li",{children:"• 在合理范围内同意降价或礼貌拒绝"}),m.jsx("li",{children:"• 保持专业友好的沟通风格"})]})]})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>y(null),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",disabled:N,children:"取消"}),m.jsxs("button",{onClick:Z,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",disabled:N,children:[N?m.jsx(Li,{className:"w-4 h-4 animate-spin"}):m.jsx(ii,{className:"w-4 h-4"}),N?"保存中...":"保存"]})]})})]})}),document.body)]})},bN=({status:e})=>{const t={processing:"bg-yellow-100 text-yellow-800",pending_ship:"bg-[#FFE815] text-black",shipped:"bg-blue-100 text-blue-700",completed:"bg-green-100 text-green-700",cancelled:"bg-gray-100 text-gray-500",refunding:"bg-red-100 text-red-600"},n={processing:"处理中",pending_ship:"待发货",shipped:"已发货",completed:"已完成",cancelled:"已取消",refunding:"退款中"};return m.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold ${t[e]||t.cancelled}`,children:n[e]||e})},TW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState([]),[l,o]=x.useState([]),[u,f]=x.useState({}),[d,h]=x.useState("all"),[p,y]=x.useState(""),[b,w]=x.useState(1),[S,j]=x.useState(1),[_,A]=x.useState(!1),[N,C]=x.useState(!1),[D,k]=x.useState(!1),[T,P]=x.useState(!1),[$,X]=x.useState(null),[Z,te]=x.useState(null),[R,ce]=x.useState({}),[le,fe]=x.useState(""),[U,Q]=x.useState(!1),[se,de]=x.useState(""),[B,M]=x.useState(!1),[q,ie]=x.useState(null),[ue,me]=x.useState(null),[ge,Se]=x.useState({order_id:"",item_id:"",buyer_id:"",receiver_name:"",receiver_phone:"",receiver_address:"",status:"pending_ship",quantity:1,amount:""}),[Ie,J]=x.useState(null),[xe,_e]=x.useState(null),oe=re=>{if(!p.trim())return re;const Ne=p.toLowerCase().trim();return re.filter(Ye=>{var mt,Tn,_r,ul,cl,Ea;return((mt=Ye.order_id)==null?void 0:mt.toLowerCase().includes(Ne))||((Tn=Ye.item_id)==null?void 0:Tn.toLowerCase().includes(Ne))||((_r=Ye.buyer_id)==null?void 0:_r.toLowerCase().includes(Ne))||((ul=Ye.item_title)==null?void 0:ul.toLowerCase().includes(Ne))||((cl=Ye.receiver_name)==null?void 0:cl.toLowerCase().includes(Ne))||((Ea=Ye.receiver_phone)==null?void 0:Ea.toLowerCase().includes(Ne))})},De=async()=>{A(!0);try{if(p.trim()){let re=[],Ne=1,Ye=!0;for(;Ye;){const mt=await y2(void 0,d,Ne,100);re=[...re,...mt.data],Ye=Ne<mt.total_pages,Ne++}r(re),t(oe(re)),j(1)}else{const re=await y2(void 0,d,b,20);r(re.data),t(oe(re.data)),j(re.total_pages)}}catch(re){console.error("加载订单失败:",re)}finally{A(!1)}};x.useEffect(()=>{t(oe(n))},[n,p]);const H=(re,Ne)=>{if(Ne&&Ne.trim())return Ne;if(u[re])return u[re];const Ye=l.find(mt=>{if(Ne&&mt.item_title){const Tn=Ne.toLowerCase(),_r=mt.item_title.toLowerCase();return _r.includes(Tn)||Tn.includes(_r)}return!1});return Ye!=null&&Ye.item_title?Ye.item_title:"未知商品"},Oe=()=>{const re={};l.forEach(Ne=>{Ne.item_id&&(re[Ne.item_id]=Ne.item_title||Ne.item_id)}),f(re)};x.useEffect(()=>{De(),Ef().then(re=>{o(re),Oe()}).catch(re=>{console.error("加载商品列表失败:",re)})},[d,b,p]);const Ke=async()=>{A(!0),await q6(),De()},Ut=re=>{de(re),ie(null),Q(!0)},jr=async re=>{var Ne;M(!0),ie(null);try{const Ye=await F6([se],re),mt=(Ne=Ye==null?void 0:Ye.results)==null?void 0:Ne[0];mt!=null&&mt.success?(ie({success:!0,message:mt.message}),De()):ie({success:!1,message:(mt==null?void 0:mt.message)||"发货失败"})}catch(Ye){ie({success:!1,message:(Ye==null?void 0:Ye.message)||"请求失败"})}finally{M(!1)}},mi=re=>{X(re),C(!0)},pi=re=>{te({...re}),k(!0)},dr=async()=>{if(!(!Z||!Z.order_id))try{const re={};Z.status!==void 0&&(re.order_status=Z.status),Z.buyer_id!==void 0&&(re.buyer_id=Z.buyer_id),Z.amount!==void 0&&(re.amount=Z.amount),Z.receiver_name!==void 0&&(re.receiver_name=Z.receiver_name),Z.receiver_phone!==void 0&&(re.receiver_phone=Z.receiver_phone),Z.receiver_address!==void 0&&(re.receiver_address=Z.receiver_address),Z.item_id!==void 0&&(re.item_id=Z.item_id),Z.quantity!==void 0&&(re.quantity=Z.quantity),await $6(Z.order_id,re),k(!1),te(null),De()}catch(re){console.error("更新订单失败:",re),alert("更新失败，请重试")}},To=async()=>{try{const re=JSON.parse(le);await K6(Array.isArray(re)?re:[re]),P(!1),fe(""),De(),alert("订单导入成功")}catch{alert("导入失败，请检查JSON格式")}},Mo=async re=>{J(re);try{const Ne=await H6(re);Ne.success?await De():alert(Ne.message||"同步失败")}catch(Ne){console.error("同步订单失败:",Ne),alert((Ne==null?void 0:Ne.message)||"同步失败，请重试")}finally{J(null)}},Zt=async re=>{if(confirm("确认删除该订单吗？删除后无法恢复。")){_e(re);try{await U6(re),r(Ne=>Ne.filter(Ye=>Ye.order_id!==re))}catch(Ne){console.error("删除订单失败:",Ne),alert((Ne==null?void 0:Ne.message)||"删除失败，请重试"),await De()}finally{_e(null)}}};return m.jsxs("div",{className:"space-y-6 animate-fade-in",children:[m.jsxs("div",{className:"flex flex-col md:flex-row justify-between md:items-end gap-4",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"订单中心"}),m.jsx("p",{className:"text-gray-500 mt-2 font-medium",children:"查看所有闲鱼交易记录与状态。"})]}),m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("button",{onClick:De,className:"p-3 rounded-2xl bg-white border border-gray-100 text-gray-600 hover:bg-gray-50 hover:text-black transition-colors shadow-sm",children:m.jsx(ai,{className:`w-5 h-5 ${_?"animate-spin":""}`})}),m.jsxs("button",{onClick:()=>P(!0),className:"px-5 py-3 rounded-2xl font-bold bg-gray-900 text-white hover:bg-gray-800 transition-colors text-sm flex items-center gap-2 shadow-lg",children:[m.jsx(Bs,{className:"w-4 h-4"}),"插入订单"]}),m.jsxs("button",{onClick:Ke,className:"ios-btn-primary px-6 py-3 rounded-2xl font-bold shadow-lg shadow-yellow-200 text-sm flex items-center gap-2",children:[m.jsx(eo,{className:"w-5 h-5"}),"一键同步订单"]})]})]}),m.jsxs("div",{className:"ios-card rounded-[2rem] overflow-hidden shadow-lg border-0 bg-white",children:[m.jsxs("div",{className:"p-4 border-b border-gray-50 flex flex-col md:flex-row gap-4 justify-between items-center bg-[#FAFAFA]",children:[m.jsx("div",{className:"flex gap-1 p-1 bg-gray-200/50 rounded-xl overflow-x-auto max-w-full",children:[{k:"all",v:"全部"},{k:"shipped",v:"已发货"},{k:"pending_ship",v:"待发货"},{k:"cancelled",v:"已取消"},{k:"refunding",v:"其他"}].map(re=>m.jsx("button",{onClick:()=>{h(re.k),w(1),y("")},className:`px-5 py-2 rounded-lg text-sm font-bold transition-all whitespace-nowrap ${d===re.k?"bg-white text-black shadow-sm":"text-gray-500 hover:text-gray-700"}`,children:re.v},re.k))}),m.jsxs("div",{className:"relative w-full md:w-auto group",children:[m.jsx(R4,{className:"w-4 h-4 absolute left-4 top-1/2 -translate-y-1/2 text-gray-400 group-focus-within:text-[#FFE815] transition-colors"}),m.jsx("input",{type:"text",placeholder:"搜索订单号/商品/买家...",value:p,onChange:re=>{y(re.target.value),w(1)},className:"ios-input pl-10 pr-4 py-2.5 rounded-xl w-64 bg-white border-none shadow-sm focus:ring-0"})]})]}),m.jsx("div",{className:"overflow-x-auto min-h-[400px]",children:m.jsxs("table",{className:"w-full text-left border-collapse table-fixed",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"bg-white text-gray-400 text-xs font-bold uppercase tracking-wider border-b border-gray-50",children:[m.jsx("th",{className:"px-6 py-5",style:{width:"28%"},children:"订单信息"}),m.jsx("th",{className:"px-6 py-5",style:{width:"26%"},children:"买家信息"}),m.jsx("th",{className:"px-6 py-5",style:{width:"11%"},children:"实付金额"}),m.jsx("th",{className:"px-6 py-5",style:{width:"13%"},children:"当前状态"}),m.jsx("th",{className:"px-6 py-5 text-right",style:{width:"22%"},children:"操作"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-50",children:e.map(re=>m.jsxs("tr",{className:"hover:bg-[#FFFDE7]/50 transition-colors group",children:[m.jsx("td",{className:"px-6 py-5",children:m.jsxs("div",{className:"flex items-center gap-5",children:[m.jsx("div",{className:"w-14 h-14 rounded-xl bg-gray-100 overflow-hidden shadow-sm border border-gray-100 flex-shrink-0",children:re.item_image?m.jsx("img",{src:re.item_image,alt:"",className:"w-full h-full object-cover"}):m.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-300",children:m.jsx(Cy,{})})}),m.jsxs("div",{className:"min-w-0",children:[m.jsx("div",{className:"font-bold text-gray-900 line-clamp-1 text-sm",children:H(re.item_id,re.item_title)}),m.jsxs("div",{className:"text-xs text-gray-500 mt-1 font-medium",children:["订单ID: ",re.order_id]}),m.jsxs("div",{className:"text-xs text-gray-400 mt-0.5",children:["数量: ",re.quantity," • ",re.created_at]})]})]})}),m.jsx("td",{className:"px-6 py-5",children:m.jsxs("div",{className:"flex flex-col gap-1",children:[m.jsx("div",{className:"text-xs text-gray-500",children:"买家ID"}),m.jsx("div",{className:"text-sm font-bold text-gray-800",children:re.buyer_id}),re.receiver_name&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"text-xs text-gray-500",children:"收货人"}),m.jsx("div",{className:"text-xs text-gray-600",children:re.receiver_name})]}),re.receiver_phone&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"text-xs text-gray-500",children:"联系电话"}),m.jsx("div",{className:"text-xs text-gray-600 font-mono",children:re.receiver_phone})]}),re.receiver_address&&m.jsxs(m.Fragment,{children:[m.jsx("div",{className:"text-xs text-gray-500",children:"收货地址"}),m.jsx("div",{className:"text-xs text-gray-600 line-clamp-1",children:re.receiver_address})]})]})}),m.jsxs("td",{className:"px-6 py-5 text-base font-extrabold text-gray-900 font-feature-settings-tnum",children:["¥",re.amount]}),m.jsx("td",{className:"px-6 py-5",children:m.jsx(bN,{status:re.status})}),m.jsxs("td",{className:"px-6 py-5 text-right",children:[re.status==="pending_ship"&&m.jsx("button",{onClick:()=>Ut(re.order_id),className:"mr-2 text-white bg-black hover:bg-gray-800 shadow-lg shadow-gray-200 text-xs font-bold px-3 py-2 rounded-xl transition-all active:scale-95",children:"立即发货"}),m.jsx("a",{href:`https://www.goofish.com/order-detail?orderId=${re.order_id}&role=seller`,target:"_blank",rel:"noopener noreferrer",className:"mr-2 inline-flex text-gray-400 hover:text-amber-600 p-2 rounded-xl hover:bg-amber-50 transition-colors",title:"查看闲鱼详情",children:m.jsx(ON,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>mi(re),className:"mr-2 text-gray-400 hover:text-blue-600 p-2 rounded-xl hover:bg-blue-50 transition-colors",title:"查看详情",children:m.jsx(Of,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>pi(re),className:"mr-2 text-gray-400 hover:text-black p-2 rounded-xl hover:bg-gray-100 transition-colors",title:"编辑订单",children:m.jsx(Bg,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>Mo(re.order_id),disabled:Ie===re.order_id,className:"mr-2 text-gray-400 hover:text-green-600 p-2 rounded-xl hover:bg-green-50 transition-colors disabled:opacity-50",title:"同步订单",children:m.jsx(ai,{className:`w-4 h-4 ${Ie===re.order_id?"animate-spin":""}`})}),m.jsx("button",{onClick:()=>Zt(re.order_id),disabled:xe===re.order_id,className:"text-gray-400 hover:text-red-500 p-2 rounded-xl hover:bg-red-50 transition-colors disabled:opacity-50",title:"删除订单",children:m.jsx(Hi,{className:"w-4 h-4"})})]})]},re.id))})]})}),m.jsxs("div",{className:"p-4 border-t border-gray-50 flex items-center justify-between bg-white",children:[m.jsxs("div",{className:"text-sm text-gray-500 font-medium pl-2",children:["第 ",b," 页 / 共 ",S," 页"]}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{disabled:b<=1,onClick:()=>w(re=>re-1),className:"p-2.5 rounded-xl bg-gray-50 hover:bg-gray-100 disabled:opacity-50 disabled:cursor-not-allowed text-gray-600 transition-colors",children:m.jsx(Xk,{className:"w-5 h-5"})}),m.jsx("button",{disabled:b>=S,onClick:()=>w(re=>re+1),className:"p-2.5 rounded-xl bg-gray-50 hover:bg-gray-100 disabled:opacity-50 disabled:cursor-not-allowed text-gray-600 transition-colors",children:m.jsx(Wk,{className:"w-5 h-5"})})]})]})]}),N&&$&&hn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsx("div",{className:"modal-header",children:m.jsxs("div",{className:"flex items-center justify-between w-full",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"订单详情"}),m.jsx("button",{onClick:()=>C(!1),className:"p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})})]})}),m.jsxs("div",{className:"modal-body space-y-6",children:[m.jsxs("div",{className:"space-y-4",children:[m.jsx("h4",{className:"text-lg font-bold text-gray-800",children:"订单信息"}),m.jsxs("div",{className:"grid grid-cols-2 gap-4 p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"订单号"}),m.jsx("div",{className:"font-mono text-sm font-bold text-gray-900",children:$.order_id})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"状态"}),m.jsx(bN,{status:$.status})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"实付金额"}),m.jsxs("div",{className:"text-lg font-extrabold text-gray-900",children:["¥",$.amount]})]}),m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"数量"}),m.jsx("div",{className:"font-bold text-gray-900",children:$.quantity})]}),m.jsxs("div",{className:"col-span-2",children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"创建时间"}),m.jsx("div",{className:"text-sm font-medium text-gray-700",children:$.created_at})]})]})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsx("h4",{className:"text-lg font-bold text-gray-800",children:"商品信息"}),m.jsxs("div",{className:"p-4 bg-gray-50 rounded-xl flex items-center gap-4",children:[$.item_image&&m.jsx("img",{src:$.item_image,alt:"",className:"w-20 h-20 rounded-xl object-cover border border-gray-200"}),m.jsxs("div",{className:"flex-1",children:[m.jsx("div",{className:"font-bold text-gray-900 mb-1",children:H($.item_id,$.item_title)}),m.jsxs("div",{className:"text-sm text-gray-500",children:["商品ID: ",$.item_id]}),$.item_price&&m.jsxs("div",{className:"text-sm text-gray-500 mt-1",children:["标价: ¥",$.item_price]})]})]})]}),m.jsxs("div",{className:"space-y-4",children:[m.jsx("h4",{className:"text-lg font-bold text-gray-800",children:"买家信息"}),m.jsxs("div",{className:"p-4 bg-gray-50 rounded-xl space-y-3",children:[m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"买家ID"}),m.jsx("div",{className:"font-bold text-gray-900",children:$.buyer_id})]}),$.receiver_name&&m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"收货人"}),m.jsx("div",{className:"font-medium text-gray-700",children:$.receiver_name})]}),$.receiver_phone&&m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"联系电话"}),m.jsx("div",{className:"font-mono text-sm text-gray-700",children:$.receiver_phone})]}),$.receiver_address&&m.jsxs("div",{children:[m.jsx("div",{className:"text-xs text-gray-500 mb-1",children:"收货地址"}),m.jsx("div",{className:"text-sm text-gray-700",children:$.receiver_address})]})]})]})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>C(!1),className:"flex-1 px-6 py-3 rounded-xl bg-gray-100 hover:bg-gray-200 text-gray-800 font-bold transition-colors",children:"关闭"}),$.status==="pending_ship"&&m.jsx("button",{onClick:()=>{C(!1),Ut($.order_id)},className:"flex-1 px-6 py-3 rounded-xl ios-btn-primary font-bold shadow-lg shadow-yellow-200",children:"立即发货"})]})})]})}),document.body),T&&hn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsx("div",{className:"modal-header",children:m.jsxs("div",{className:"flex items-center justify-between w-full",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"插入订单"}),m.jsx("button",{onClick:()=>P(!1),className:"p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})})]})}),m.jsxs("div",{className:"modal-body space-y-5",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"选择Excel文件"}),m.jsx("input",{type:"file",accept:".xlsx,.xls",onChange:re=>{var Ne;return me(((Ne=re.target.files)==null?void 0:Ne[0])||null)},className:"w-full ios-input px-4 py-3 rounded-xl text-sm"}),m.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"支持 .xlsx 和 .xls 格式"})]}),ue&&m.jsx("div",{className:"p-3 bg-blue-50 rounded-xl",children:m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(V4,{className:"w-4 h-4 text-blue-600"}),m.jsx("span",{className:"text-sm font-medium text-blue-900",children:ue.name})]})})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>P(!1),className:"flex-1 px-6 py-3 rounded-xl bg-gray-100 hover:bg-gray-200 text-gray-800 font-bold transition-colors",children:"取消"}),m.jsx("button",{onClick:To,disabled:!ue,className:"flex-1 px-6 py-3 rounded-xl ios-btn-primary font-bold shadow-lg shadow-yellow-200 disabled:opacity-50",children:"导入订单"})]})})]})}),document.body),U&&hn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",style:{maxWidth:"480px"},children:[m.jsx("div",{className:"modal-header",children:m.jsxs("div",{className:"flex items-center justify-between w-full",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"立即发货"}),m.jsx("button",{onClick:()=>{Q(!1),ie(null)},className:"p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})})]})}),m.jsxs("div",{className:"modal-body space-y-4",children:[m.jsx("p",{className:"text-sm text-gray-600",children:"请选择发货方式："}),m.jsx("button",{onClick:()=>jr("status_only"),disabled:B,className:"w-full text-left p-4 rounded-xl border-2 border-gray-200 hover:border-gray-400 hover:bg-gray-50 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:m.jsxs("div",{className:"flex items-start gap-3",children:[m.jsx("div",{className:"w-10 h-10 rounded-xl bg-blue-100 flex items-center justify-center flex-shrink-0 mt-0.5",children:m.jsx(eo,{className:"w-5 h-5 text-blue-600"})}),m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900 text-sm",children:"仅修改闲鱼发货状态"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1 leading-relaxed",children:'不实际扣除或发送卡券，仅在闲鱼平台将订单标记为"已发货"。 适用于已经给客户发过货、只是忘记在闲鱼修改状态的情况。'})]})]})}),m.jsx("button",{onClick:()=>jr("full_delivery"),disabled:B,className:"w-full text-left p-4 rounded-xl border-2 border-gray-200 hover:border-[#FFE815] hover:bg-yellow-50 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:m.jsxs("div",{className:"flex items-start gap-3",children:[m.jsx("div",{className:"w-10 h-10 rounded-xl bg-yellow-100 flex items-center justify-center flex-shrink-0 mt-0.5",children:m.jsx(Cy,{className:"w-5 h-5 text-yellow-700"})}),m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900 text-sm",children:"完整发货（匹配卡券并发送）"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1 leading-relaxed",children:"自动匹配发货规则、获取卡券、发送卡券信息给买家，并修改发货状态。 适用于订单既没有发送卡券给买家、也没有修改发货状态的情况。"})]})]})}),B&&m.jsxs("div",{className:"flex items-center justify-center gap-2 py-3",children:[m.jsx(ai,{className:"w-4 h-4 animate-spin text-gray-500"}),m.jsx("span",{className:"text-sm text-gray-500",children:"正在处理中..."})]}),q&&m.jsxs("div",{className:`p-3 rounded-xl text-sm ${q.success?"bg-green-50 text-green-800":"bg-red-50 text-red-800"}`,children:[q.success?"✓ ":"✗ ",q.message]})]}),m.jsx("div",{className:"modal-footer",children:m.jsx("button",{onClick:()=>{Q(!1),ie(null)},className:"w-full px-6 py-3 rounded-xl bg-gray-100 hover:bg-gray-200 text-gray-800 font-bold transition-colors",children:q!=null&&q.success?"完成":"取消"})})]})}),document.body),D&&Z&&hn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsx("div",{className:"modal-header",children:m.jsxs("div",{className:"flex items-center justify-between w-full",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"编辑订单"}),m.jsx("button",{onClick:()=>k(!1),className:"p-2 bg-gray-100 rounded-full hover:bg-gray-200 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-600"})})]})}),m.jsxs("div",{className:"modal-body space-y-5",children:[m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"订单号"}),m.jsx("input",{type:"text",value:Z.order_id,disabled:!0,className:"w-full ios-input px-4 py-3 rounded-xl bg-gray-50 text-gray-500"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"订单状态"}),m.jsxs("select",{value:Z.status,onChange:re=>te({...Z,status:re.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[m.jsx("option",{value:"processing",children:"处理中"}),m.jsx("option",{value:"pending_ship",children:"待发货"}),m.jsx("option",{value:"shipped",children:"已发货"}),m.jsx("option",{value:"completed",children:"已完成"}),m.jsx("option",{value:"cancelled",children:"已取消"}),m.jsx("option",{value:"refunding",children:"退款中"})]})]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"买家ID"}),m.jsx("input",{type:"text",value:Z.buyer_id,onChange:re=>te({...Z,buyer_id:re.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"实付金额"}),m.jsx("input",{type:"number",value:Z.amount,onChange:re=>te({...Z,amount:parseFloat(re.target.value)}),className:"w-full ios-input px-4 py-3 rounded-xl"})]})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"收货人"}),m.jsx("input",{type:"text",value:Z.receiver_name||"",onChange:re=>te({...Z,receiver_name:re.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"联系电话"}),m.jsx("input",{type:"text",value:Z.receiver_phone||"",onChange:re=>te({...Z,receiver_phone:re.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"收货地址"}),m.jsx("textarea",{value:Z.receiver_address||"",onChange:re=>te({...Z,receiver_address:re.target.value}),rows:2,className:"w-full ios-input px-4 py-3 rounded-xl resize-none"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"商品标题"}),m.jsx("input",{type:"text",value:Z.item_title||"",onChange:re=>te({...Z,item_title:re.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl"})]})]}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>k(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),m.jsxs("button",{onClick:dr,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[m.jsx(ii,{className:"w-4 h-4"}),"保存更改"]})]})})]})}),document.body)]})},MW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState(!1),[l,o]=x.useState(!1),[u,f]=x.useState(null),[d,h]=x.useState({}),[p,y]=x.useState({name:"",type:"text",content:"",description:"",enabled:!0,delay_seconds:0});x.useEffect(()=>{Ql().then(t)},[]);const b=({type:N})=>{switch(N){case"text":return m.jsx(QS,{className:"w-5 h-5 text-blue-500"});case"image":return m.jsx(JS,{className:"w-5 h-5 text-purple-500"});case"api":return m.jsx(WS,{className:"w-5 h-5 text-orange-500"});default:return m.jsx(_N,{className:"w-5 h-5 text-gray-500"})}},w=N=>{var C,D,k,T,P;f(N),h({id:N.id,name:N.name||"",type:N.type||"text",api_url:((C=N.api_config)==null?void 0:C.url)||"",api_method:((D=N.api_config)==null?void 0:D.method)||"GET",api_timeout:((k=N.api_config)==null?void 0:k.timeout)||10,api_headers:((T=N.api_config)==null?void 0:T.headers)||"",api_params:((P=N.api_config)==null?void 0:P.params)||"",text_content:N.text_content||"",data_content:N.data_content||"",image_url:N.image_url||"",delay_seconds:N.delay_seconds||0,description:N.description||"",is_multi_spec:N.is_multi_spec||!1,spec_name:N.spec_name||"",spec_value:N.spec_value||"",enabled:N.enabled}),r(!0)},S=async()=>{var N,C,D,k,T,P,$,X;if(u){if(!((N=d.name)!=null&&N.trim())){alert("请输入卡密名称");return}if(!d.type){alert("请选择卡密类型");return}try{const Z={name:d.name.trim(),type:d.type,description:(C=d.description)==null?void 0:C.trim(),delay_seconds:d.delay_seconds||0,enabled:d.enabled??!0,is_multi_spec:d.is_multi_spec,spec_name:d.spec_name,spec_value:d.spec_value};d.type==="api"?Z.api_config={url:(D=d.api_url)==null?void 0:D.trim(),method:d.api_method,timeout:d.api_timeout||10,headers:((k=d.api_headers)==null?void 0:k.trim())||void 0,params:((T=d.api_params)==null?void 0:T.trim())||void 0}:d.type==="text"?Z.text_content=((P=d.text_content)==null?void 0:P.trim())||"":d.type==="data"?Z.data_content=(($=d.data_content)==null?void 0:$.trim())||"":d.type==="image"&&(Z.image_url=((X=d.image_url)==null?void 0:X.trim())||""),await b2(u.id,Z),r(!1),Ql().then(t)}catch(Z){console.error("更新卡密失败:",Z),alert("更新失败，请重试")}}},j=async N=>{if(confirm("确认删除该卡密吗？"))try{await X6(N),Ql().then(t)}catch(C){console.error("删除卡密失败:",C),alert("删除失败，请重试")}},_=async()=>{try{await V6(p),o(!1),y({name:"",type:"text",content:"",description:"",enabled:!0,delay_seconds:0}),Ql().then(t)}catch(N){console.error("添加卡密失败:",N),alert("添加失败，请重试")}},A=async N=>{try{await b2(N.id,{...N,enabled:!N.enabled}),Ql().then(t)}catch(C){console.error("切换状态失败:",C)}};return m.jsxs("div",{className:"space-y-6 animate-fade-in",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-3xl font-bold text-gray-900",children:"卡密库存"}),m.jsx("p",{className:"text-gray-500 mt-2 text-sm",children:"管理自动发货的卡密、链接或图片资源。"})]}),m.jsxs("button",{onClick:()=>o(!0),className:"ios-btn-primary flex items-center gap-2 px-6 py-3 rounded-2xl font-bold shadow-lg shadow-yellow-200 transition-transform hover:scale-105 active:scale-95",children:[m.jsx(Bs,{className:"w-5 h-5"}),"添加新卡密"]})]}),m.jsxs("div",{className:"ios-card rounded-[2rem] overflow-hidden shadow-lg border-0 bg-white",children:[m.jsx("div",{className:"overflow-x-auto",children:m.jsxs("table",{className:"w-full text-left border-collapse",children:[m.jsx("thead",{children:m.jsxs("tr",{className:"bg-white text-gray-400 text-xs font-bold uppercase tracking-wider border-b border-gray-50",children:[m.jsx("th",{className:"px-8 py-5 w-[15%]",children:"卡密名称"}),m.jsx("th",{className:"px-6 py-5 w-[12%]",children:"类型"}),m.jsx("th",{className:"px-6 py-5 w-[25%]",children:"内容/库存"}),m.jsx("th",{className:"px-6 py-5 w-[20%]",children:"描述"}),m.jsx("th",{className:"px-6 py-5 w-[10%]",children:"状态"}),m.jsx("th",{className:"px-6 py-5 w-[10%] text-right",children:"操作"})]})}),m.jsx("tbody",{className:"divide-y divide-gray-50",children:e.map(N=>{let C="";return N.type==="data"&&N.data_content?C=`库存: ${N.data_content.split(`
`).filter(k=>k.trim()).length} 条`:N.type==="text"&&N.text_content?C=N.text_content.substring(0,20)+(N.text_content.length>20?"...":""):N.type==="api"&&N.api_config?C=N.api_config.url:N.type==="image"&&N.text_content&&(C="图片链接"),m.jsxs("tr",{className:"hover:bg-[#FFFDE7]/50 transition-colors group",children:[m.jsx("td",{className:"px-8 py-5",children:m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("div",{className:"p-2 bg-gray-50 rounded-xl group-hover:bg-white transition-colors",children:m.jsx(b,{type:N.type})}),m.jsx("span",{className:"font-bold text-gray-900",children:N.name})]})}),m.jsx("td",{className:"px-6 py-5",children:m.jsx("span",{className:`px-3 py-1.5 rounded-lg text-xs font-bold ${N.type==="text"?"bg-blue-50 text-blue-600":N.type==="data"?"bg-purple-50 text-purple-600":N.type==="api"?"bg-orange-50 text-orange-600":"bg-pink-50 text-pink-600"}`,children:N.type==="text"?"文本":N.type==="data"?"批量":N.type==="api"?"API":"图片"})}),m.jsx("td",{className:"px-6 py-5",children:m.jsx("span",{className:"text-sm text-gray-600 font-mono block truncate",title:C,children:C})}),m.jsx("td",{className:"px-6 py-5",children:m.jsx("span",{className:"text-sm text-gray-500 block max-w-[200px] truncate",title:N.description||"-",children:N.description||"-"})}),m.jsx("td",{className:"px-6 py-5",children:m.jsx("button",{onClick:()=>A(N),className:`w-12 h-8 rounded-full relative transition-colors ${N.enabled?"bg-green-500":"bg-gray-300"}`,children:m.jsx("div",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-sm transition-transform ${N.enabled?"left-5":"left-1"}`})})}),m.jsx("td",{className:"px-6 py-5",children:m.jsxs("div",{className:"flex items-center justify-end gap-2",children:[m.jsx("button",{onClick:()=>w(N),className:"p-2 text-gray-400 hover:text-black hover:bg-gray-100 rounded-xl transition-colors",title:"编辑",children:m.jsx(Bg,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>j(N.id),className:"p-2 text-gray-400 hover:text-red-500 hover:bg-red-50 rounded-xl transition-colors",children:m.jsx(Hi,{className:"w-5 h-5"})})]})})]},N.id)})})]})}),e.length===0&&m.jsxs("div",{className:"py-20 text-center text-gray-400",children:[m.jsx(AN,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),m.jsx("p",{children:"暂无卡密配置，请点击右上角添加。"})]})]}),n&&u&&hn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"编辑卡密"}),m.jsx("button",{onClick:()=>r(!1),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-500"})})]}),m.jsx("div",{className:"modal-body",children:m.jsxs("div",{className:"space-y-5",children:[m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:["卡密名称 ",m.jsx("span",{className:"text-red-500",children:"*"})]}),m.jsx("input",{type:"text",value:d.name||"",onChange:N=>h({...d,name:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",placeholder:"例如：游戏点卡、会员卡等"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"卡券类型"}),m.jsxs("select",{value:d.type||"text",onChange:N=>h({...d,type:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[m.jsx("option",{value:"",children:"请选择类型"}),m.jsx("option",{value:"text",children:"固定文字"}),m.jsx("option",{value:"data",children:"批量数据"}),m.jsx("option",{value:"api",children:"API接口"}),m.jsx("option",{value:"image",children:"图片"})]})]})]}),d.type==="api"&&m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 space-y-4 bg-gray-50",children:[m.jsx("h3",{className:"font-bold text-gray-900",children:"API 配置"}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"API 地址"}),m.jsx("input",{type:"url",value:d.api_url||"",onChange:N=>h({...d,api_url:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl font-mono text-sm",placeholder:"https://api.example.com/get-card"})]}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"请求方法"}),m.jsxs("select",{value:d.api_method||"GET",onChange:N=>h({...d,api_method:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[m.jsx("option",{value:"GET",children:"GET"}),m.jsx("option",{value:"POST",children:"POST"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"超时时间（秒）"}),m.jsx("input",{type:"number",value:d.api_timeout||10,onChange:N=>h({...d,api_timeout:parseInt(N.target.value)||10}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"1",max:"60"})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"请求头（JSON 格式）"}),m.jsx("textarea",{value:d.api_headers||"",onChange:N=>h({...d,api_headers:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-20 resize-none font-mono text-sm",placeholder:'{"Authorization": "Bearer token"}'})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"请求参数（JSON 格式）"}),m.jsx("textarea",{value:d.api_params||"",onChange:N=>h({...d,api_params:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-20 resize-none font-mono text-sm",placeholder:'{"type": "card", "count": 1}'})]})]}),d.type==="text"&&m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 bg-gray-50",children:[m.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"固定文字配置"}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"文字内容"}),m.jsx("textarea",{value:d.text_content||"",onChange:N=>h({...d,text_content:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-32 resize-none",placeholder:"请输入要发送的固定文字内容..."})]})]}),d.type==="data"&&m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 bg-gray-50",children:[m.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"批量数据配置"}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"数据内容（一行一个）"}),m.jsx("textarea",{value:d.data_content||"",onChange:N=>h({...d,data_content:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-80 resize-none font-mono text-sm",placeholder:`请输入数据，每行一个：
卡号1:密码1
卡号2:密码2
或者
兑换码1
兑换码2`}),m.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"支持格式：卡号:密码 或 单独的兑换码"}),m.jsxs("p",{className:"text-xs text-gray-500",children:["当前库存：",m.jsx("span",{className:"font-bold text-amber-600",children:d.data_content?d.data_content.split(`
`).filter(N=>N.trim()).length:0})," 条"]})]})]}),d.type==="image"&&m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4 bg-gray-50",children:[m.jsx("h3",{className:"font-bold text-gray-900 mb-3",children:"图片配置"}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"图片 URL"}),m.jsx("input",{type:"url",value:d.image_url||"",onChange:N=>h({...d,image_url:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl font-mono text-sm",placeholder:"https://example.com/image.png"}),m.jsx("p",{className:"text-xs text-gray-500 mt-2",children:"输入图片卡密的 URL 地址"})]}),d.image_url&&m.jsxs("div",{className:"mt-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"图片预览"}),m.jsx("img",{src:d.image_url,alt:"预览",className:"max-w-full max-h-48 rounded-xl border border-gray-200",onError:N=>{N.currentTarget.src="https://via.placeholder.com/400x200?text=图片加载失败"}})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"延时发货时间（秒）"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("input",{type:"number",value:d.delay_seconds||0,onChange:N=>h({...d,delay_seconds:parseInt(N.target.value)||0}),className:"flex-1 ios-input px-4 py-3 rounded-xl",min:"0",max:"3600",placeholder:"0"}),m.jsx("span",{className:"text-sm text-gray-500 whitespace-nowrap",children:"秒"})]}),m.jsx("p",{className:"text-xs text-gray-500 mt-1",children:"0表示立即发货，最大3600秒（1小时）"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"备注信息"}),m.jsx("textarea",{value:d.description||"",onChange:N=>h({...d,description:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none",placeholder:"可选的备注信息"})]}),m.jsxs("div",{className:"border border-gray-200 rounded-xl p-4",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[m.jsx("input",{type:"checkbox",id:"edit-isMultiSpec",checked:d.is_multi_spec||!1,onChange:N=>h({...d,is_multi_spec:N.target.checked}),className:"w-4 h-4 rounded"}),m.jsx("label",{htmlFor:"edit-isMultiSpec",className:"font-bold text-gray-900",children:"多规格卡券"})]}),m.jsx("p",{className:"text-xs text-gray-500 mb-3",children:"开启后可以为同一商品的不同规格创建不同的卡券"}),d.is_multi_spec&&m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"规格名称"}),m.jsx("input",{type:"text",value:d.spec_name||"",onChange:N=>h({...d,spec_name:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",placeholder:"例如：套餐类型、颜色、尺寸"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"规格值"}),m.jsx("input",{type:"text",value:d.spec_value||"",onChange:N=>h({...d,spec_value:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",placeholder:"例如：30天、红色、XL"})]})]})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsx("span",{className:"font-bold text-gray-900",children:"启用状态"}),m.jsx("button",{type:"button",onClick:()=>h({...d,enabled:!d.enabled}),className:`w-14 h-8 rounded-full transition-colors duration-300 relative ${d.enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("span",{className:`absolute top-1 w-6 h-6 bg-white rounded-full shadow-md transition-transform duration-300 block ${d.enabled?"translate-x-7":"translate-x-1"}`})})]})]})}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>r(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),m.jsxs("button",{onClick:S,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[m.jsx(ii,{className:"w-4 h-4"}),"保存更改"]})]})})]})}),document.body),l&&hn.createPortal(m.jsx("div",{className:"modal-overlay-centered",children:m.jsxs("div",{className:"modal-container",children:[m.jsxs("div",{className:"modal-header",children:[m.jsx("h3",{className:"text-2xl font-extrabold text-gray-900",children:"添加新卡密"}),m.jsx("button",{onClick:()=>o(!1),className:"p-2 rounded-xl hover:bg-gray-100 transition-colors",children:m.jsx(ir,{className:"w-5 h-5 text-gray-500"})})]}),m.jsx("div",{className:"flex-1 overflow-y-auto -mr-2 pr-2",children:m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"卡密名称"}),m.jsx("input",{type:"text",value:p.name,onChange:N=>y({...p,name:N.target.value}),placeholder:"例如：VIP会员卡密",className:"w-full ios-input px-4 py-3 rounded-xl"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"类型"}),m.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[m.jsxs("button",{type:"button",onClick:()=>y({...p,type:"text"}),className:`p-3 rounded-xl font-bold transition-all ${p.type==="text"?"bg-[#FFE815] text-black":"bg-gray-100 text-gray-600"}`,children:[m.jsx(QS,{className:"w-5 h-5 mx-auto mb-1"}),"文本"]}),m.jsxs("button",{type:"button",onClick:()=>y({...p,type:"image"}),className:`p-3 rounded-xl font-bold transition-all ${p.type==="image"?"bg-[#FFE815] text-black":"bg-gray-100 text-gray-600"}`,children:[m.jsx(JS,{className:"w-5 h-5 mx-auto mb-1"}),"图片"]}),m.jsxs("button",{type:"button",onClick:()=>y({...p,type:"api"}),className:`p-3 rounded-xl font-bold transition-all ${p.type==="api"?"bg-[#FFE815] text-black":"bg-gray-100 text-gray-600"}`,children:[m.jsx(WS,{className:"w-5 h-5 mx-auto mb-1"}),"API"]})]})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:p.type==="text"?"卡密内容（一行一个）":p.type==="image"?"图片URL（一行一个）":"API地址"}),p.type==="api"?m.jsx("input",{type:"text",value:p.content,onChange:N=>y({...p,content:N.target.value}),placeholder:"https://api.example.com/get-code",className:"w-full ios-input px-4 py-3 rounded-xl"}):m.jsx("textarea",{value:p.content,onChange:N=>y({...p,content:N.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl h-40 resize-none font-mono text-sm",placeholder:p.type==="text"?`CODE-123456
CODE-789012
...`:`https://example.com/image1.jpg
https://example.com/image2.jpg
...`})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"描述"}),m.jsx("textarea",{value:p.description,onChange:N=>y({...p,description:N.target.value}),placeholder:"卡密用途描述",className:"w-full ios-input px-4 py-3 rounded-xl h-20 resize-none"})]}),m.jsxs("div",{children:[m.jsx("label",{className:"block text-sm font-bold text-gray-700 mb-2",children:"延时发货（秒）"}),m.jsx("input",{type:"number",value:p.delay_seconds,onChange:N=>y({...p,delay_seconds:parseInt(N.target.value)||0}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"0",placeholder:"0"})]})]})}),m.jsx("div",{className:"modal-footer",children:m.jsxs("div",{className:"flex gap-3 w-full",children:[m.jsx("button",{onClick:()=>o(!1),className:"flex-1 px-6 py-3 rounded-xl font-bold bg-gray-100 text-gray-700 hover:bg-gray-200 transition-colors",children:"取消"}),m.jsxs("button",{onClick:_,className:"flex-1 ios-btn-primary px-6 py-3 rounded-xl font-bold flex items-center justify-center gap-2",children:[m.jsx(Bs,{className:"w-4 h-4"}),"添加卡密"]})]})})]})}),document.body)]})},DW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState([]),[l,o]=x.useState(""),[u,f]=x.useState(!1),[d,h]=x.useState(!1),[p,y]=x.useState(!1),[b,w]=x.useState(null),[S,j]=x.useState({}),[_,A]=x.useState({cookie_id:"",item_id:"",item_title:"",item_price:"",item_image:"",is_multi_spec:!1,is_multi_qty_ship:!1});x.useEffect(()=>{Hg().then(r),Ef().then(t)},[]);const N=async()=>{if(!l)return alert("请先选择账号");f(!0),await Z6(l),Ef().then(t),f(!1)},C=P=>{w(P),j({...P}),h(!0)},D=async P=>{if(confirm(`确认删除商品"${P.item_title}"吗？`))try{const $=e.filter(X=>!(X.cookie_id===P.cookie_id&&X.item_id===P.item_id));t($)}catch($){console.error("删除商品失败:",$),alert("删除失败，请重试")}},k=async P=>{try{const $=e.map(X=>X.cookie_id===P.cookie_id&&X.item_id===P.item_id?{...X,is_multi_spec:!X.is_multi_spec}:X);t($)}catch($){console.error("切换状态失败:",$)}},T=async P=>{try{const $=e.map(X=>X.cookie_id===P.cookie_id&&X.item_id===P.item_id?{...X,is_multi_qty_ship:!X.is_multi_qty_ship}:X);t($)}catch($){console.error("切换状态失败:",$)}};return m.jsxs("div",{className:"space-y-6 animate-fade-in",children:[m.jsxs("div",{className:"flex justify-between items-center",children:[m.jsxs("div",{children:[m.jsx("h2",{className:"text-3xl font-bold text-gray-900",children:"商品管理"}),m.jsx("p",{className:"text-gray-500 mt-2 text-sm",children:"监控并管理所有账号下的闲鱼商品。"})]}),m.jsxs("div",{className:"flex gap-3",children:[m.jsxs("select",{className:"ios-input px-4 py-3 rounded-xl text-sm",value:l,onChange:P=>o(P.target.value),children:[m.jsx("option",{value:"",children:"选择账号以同步"}),n.map(P=>m.jsx("option",{value:P.id,children:P.nickname},P.id))]}),m.jsxs("button",{onClick:N,disabled:u||!l,className:"ios-btn-primary flex items-center gap-2 px-6 py-3 rounded-2xl font-bold shadow-lg shadow-yellow-200 disabled:opacity-50",children:[m.jsx(ai,{className:`w-4 h-4 ${u?"animate-spin":""}`}),"同步商品"]}),m.jsxs("button",{onClick:()=>y(!0),className:"px-5 py-3 rounded-2xl font-bold bg-gray-900 text-white hover:bg-gray-800 transition-colors flex items-center gap-2 shadow-lg",children:[m.jsx(Bs,{className:"w-4 h-4"}),"添加商品"]})]})]}),m.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",children:[e.map(P=>m.jsxs("div",{className:"ios-card p-4 rounded-3xl hover:shadow-lg transition-all group relative",children:[m.jsxs("div",{className:"absolute top-3 right-3 flex gap-1 opacity-0 group-hover:opacity-100 transition-opacity z-10",children:[m.jsx("button",{onClick:()=>C(P),className:"p-2 bg-white/90 backdrop-blur rounded-lg shadow-md hover:bg-[#FFE815] transition-colors",title:"编辑",children:m.jsx(Bg,{className:"w-4 h-4"})}),m.jsx("button",{onClick:()=>D(P),className:"p-2 bg-white/90 backdrop-blur rounded-lg shadow-md hover:bg-red-100 text-red-500 transition-colors",title:"删除",children:m.jsx(Hi,{className:"w-4 h-4"})})]}),m.jsxs("div",{className:"aspect-square bg-gray-100 rounded-2xl mb-4 overflow-hidden relative",children:[P.item_image?m.jsx("img",{src:P.item_image,alt:"",className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}):m.jsx("div",{className:"w-full h-full flex items-center justify-center text-gray-300",children:m.jsx(jN,{className:"w-10 h-10"})}),m.jsxs("div",{className:"absolute top-2 left-2 bg-black/50 backdrop-blur-md text-white text-xs font-bold px-2 py-1 rounded-lg",children:["¥",P.item_price]})]}),m.jsx("h3",{className:"font-bold text-gray-900 line-clamp-2 text-sm mb-2 h-10",children:P.item_title}),m.jsx("div",{className:"flex justify-between items-center text-xs text-gray-500 mb-2",children:m.jsxs("span",{className:"bg-gray-100 px-2 py-1 rounded-md truncate max-w-[100px]",children:["ID: ",P.item_id]})}),m.jsxs("div",{className:"flex gap-2",children:[m.jsx("button",{onClick:()=>k(P),className:`flex-1 text-xs font-bold px-2 py-1.5 rounded-lg transition-colors ${P.is_multi_spec?"bg-blue-100 text-blue-700":"bg-gray-100 text-gray-500 hover:bg-gray-200"}`,children:"多规格"}),m.jsx("button",{onClick:()=>T(P),className:`flex-1 text-xs font-bold px-2 py-1.5 rounded-lg transition-colors ${P.is_multi_qty_ship?"bg-green-100 text-green-700":"bg-gray-100 text-gray-500 hover:bg-gray-200"}`,children:"多数量发货"})]})]},`${P.cookie_id}-${P.item_id}`)),e.length===0&&m.jsxs("div",{className:"col-span-full py-20 text-center text-gray-400",children:[m.jsx(NN,{className:"w-12 h-12 mx-auto mb-4 opacity-30"}),"暂无商品数据，请选择账号进行同步"]})]})]})},kW=()=>{const[e,t]=x.useState(null),[n,r]=x.useState(!1),[l,o]=x.useState(!1),[u,f]=x.useState(!1),[d,h]=x.useState(!1);x.useEffect(()=>{p()},[]);const p=()=>{r(!0),nR().then(t).finally(()=>r(!1))},y=async()=>{if(e){o(!0);try{await rR(e),alert("系统配置已保存")}catch(b){alert("保存失败："+b.message)}finally{o(!1)}}};return e?m.jsxs("div",{className:"max-w-6xl mx-auto space-y-8 animate-fade-in pb-24",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"w-12 h-12 bg-gray-100 rounded-2xl flex items-center justify-center",children:m.jsx(Lg,{className:"w-6 h-6 text-gray-600"})}),m.jsxs("div",{children:[m.jsx("h2",{className:"text-3xl font-extrabold text-gray-900",children:"系统设置"}),m.jsx("p",{className:"text-gray-500 mt-1 text-sm font-medium",children:"配置全局自动化规则与系统参数"})]})]}),m.jsxs("button",{onClick:p,className:"px-4 py-2 bg-gray-100 hover:bg-gray-200 rounded-xl font-bold text-gray-700 flex items-center gap-2 transition-colors",children:[m.jsx(ai,{className:"w-4 h-4"}),"刷新"]})]}),m.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-8",children:[m.jsxs("div",{className:"space-y-8",children:[m.jsxs("section",{className:"space-y-4",children:[m.jsxs("h3",{className:"text-lg font-extrabold text-gray-800 flex items-center gap-2",children:[m.jsx("div",{className:"p-1.5 rounded-lg bg-gray-100 text-gray-600",children:m.jsx(n4,{className:"w-4 h-4"})}),"基础设置"]}),m.jsxs("div",{className:"ios-card rounded-[2rem] p-6 bg-white space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"允许用户注册"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1",children:"开启后允许新用户注册账号"})]}),m.jsx("button",{onClick:()=>t({...e,registration_enabled:!e.registration_enabled}),className:`w-14 h-8 rounded-full transition-all relative ${e.registration_enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("div",{className:`w-6 h-6 bg-white rounded-full absolute top-1 transition-all shadow-md ${e.registration_enabled?"left-7":"left-1"}`})})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"显示默认登录信息"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1",children:"登录页面显示默认账号密码提示"})]}),m.jsx("button",{onClick:()=>t({...e,show_default_login_info:!e.show_default_login_info}),className:`w-14 h-8 rounded-full transition-all relative ${e.show_default_login_info?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("div",{className:`w-6 h-6 bg-white rounded-full absolute top-1 transition-all shadow-md ${e.show_default_login_info?"left-7":"left-1"}`})})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"登录滑动验证码"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1",children:"开启后账号密码登录需要完成滑动验证"})]}),m.jsx("button",{onClick:()=>t({...e,login_captcha_enabled:!e.login_captcha_enabled}),className:`w-14 h-8 rounded-full transition-all relative ${e.login_captcha_enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("div",{className:`w-6 h-6 bg-white rounded-full absolute top-1 transition-all shadow-md ${e.login_captcha_enabled?"left-7":"left-1"}`})})]}),m.jsxs("div",{className:"flex items-center justify-between p-4 bg-gray-50 rounded-xl",children:[m.jsxs("div",{children:[m.jsx("div",{className:"font-bold text-gray-900",children:"启用商品自动同步"}),m.jsx("div",{className:"text-xs text-gray-500 mt-1",children:"定时自动获取商品信息到本地数据库"})]}),m.jsx("button",{onClick:()=>t({...e,item_sync_enabled:!e.item_sync_enabled}),className:`w-14 h-8 rounded-full transition-all relative ${e.item_sync_enabled?"bg-[#FFE815]":"bg-gray-300"}`,children:m.jsx("div",{className:`w-6 h-6 bg-white rounded-full absolute top-1 transition-all shadow-md ${e.item_sync_enabled?"left-7":"left-1"}`})})]}),m.jsxs("div",{className:"space-y-3 px-4",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"商品同步间隔（分钟）"}),m.jsx("input",{type:"number",value:Math.round((e.item_sync_interval||600)/60),onChange:b=>{const w=parseInt(b.target.value)||10;t({...e,item_sync_interval:w*60})},className:"w-full ios-input px-4 py-3 rounded-xl",min:"1",max:"1440"}),m.jsx("p",{className:"text-xs text-gray-500",children:"建议：10-60分钟"})]}),m.jsxs("div",{className:"space-y-3 px-4",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"每次最多同步页数"}),m.jsx("input",{type:"number",value:e.item_sync_max_pages||5,onChange:b=>t({...e,item_sync_max_pages:parseInt(b.target.value)||5}),className:"w-full ios-input px-4 py-3 rounded-xl",min:"1",max:"50"}),m.jsx("p",{className:"text-xs text-gray-500",children:"每页20个商品"})]})]})]}),m.jsxs("section",{className:"space-y-4",children:[m.jsxs("h3",{className:"text-lg font-extrabold text-gray-800 flex items-center gap-2",children:[m.jsx("div",{className:"p-1.5 rounded-lg bg-[#FFE815] text-black",children:m.jsx(Af,{className:"w-4 h-4"})}),"AI 智能回复配置"]}),m.jsxs("div",{className:"ios-card rounded-[2rem] p-6 bg-white space-y-6",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"API 地址"}),m.jsx("input",{type:"text",value:e.ai_api_url||"https://dashscope.aliyuncs.com/compatible-mode/v1",onChange:b=>t({...e,ai_api_url:b.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl text-sm",placeholder:"https://api.openai.com/v1"}),m.jsx("p",{className:"text-xs text-gray-500",children:"无需补全 /chat/completions"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"API Key"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:u?"text":"password",value:e.ai_api_key||"",onChange:b=>t({...e,ai_api_key:b.target.value}),className:"w-full ios-input px-4 py-3 pr-12 rounded-xl font-mono text-sm",placeholder:"sk-..."}),m.jsx("button",{type:"button",onClick:()=>f(!u),className:"absolute right-3 top-1/2 -translate-y-1/2 p-2 text-gray-400 hover:text-gray-600 transition-colors",children:u?m.jsx(Ey,{className:"w-4 h-4"}):m.jsx(Of,{className:"w-4 h-4"})})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"模型"}),m.jsxs("select",{value:e.ai_model||"qwen-plus",onChange:b=>t({...e,ai_model:b.target.value}),className:"w-full ios-input px-4 py-3 rounded-xl",children:[m.jsx("option",{value:"qwen-plus",children:"通义千问 Plus"}),m.jsx("option",{value:"qwen-turbo",children:"通义千问 Turbo"}),m.jsx("option",{value:"gpt-3.5-turbo",children:"GPT-3.5 Turbo"}),m.jsx("option",{value:"gpt-4",children:"GPT-4"})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"默认自动回复内容"}),m.jsx("textarea",{className:"w-full ios-input px-4 py-3 rounded-xl min-h-[100px] text-sm resize-none",value:e.default_reply||"",onChange:b=>t({...e,default_reply:b.target.value}),placeholder:"设置默认的自动回复内容..."})]}),m.jsxs("div",{className:"p-3 bg-amber-50 rounded-xl text-xs text-amber-700",children:[m.jsx("strong",{children:"常见 AI 服务:"}),m.jsxs("ul",{className:"list-disc list-inside mt-1 space-y-0.5",children:[m.jsx("li",{children:"阿里云通义千问: https://dashscope.aliyuncs.com/compatible-mode/v1"}),m.jsx("li",{children:"OpenAI: https://api.openai.com/v1"})]})]})]})]})]}),m.jsx("div",{className:"space-y-8",children:m.jsxs("section",{className:"space-y-4",children:[m.jsxs("h3",{className:"text-lg font-extrabold text-gray-800 flex items-center gap-2",children:[m.jsx("div",{className:"p-1.5 rounded-lg bg-blue-100 text-blue-600",children:m.jsx(w4,{className:"w-4 h-4"})}),"SMTP 邮件配置"]}),m.jsxs("div",{className:"ios-card rounded-[2rem] p-6 bg-white space-y-6",children:[m.jsx("p",{className:"text-sm text-gray-500",children:"配置SMTP服务器用于发送注册验证码等邮件通知"}),m.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"SMTP服务器"}),m.jsx("input",{type:"text",value:e.smtp_server||"",onChange:b=>t({...e,smtp_server:b.target.value}),placeholder:"smtp.qq.com",className:"w-full ios-input px-4 py-3 rounded-xl text-sm"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"SMTP端口"}),m.jsx("input",{type:"number",value:e.smtp_port||587,onChange:b=>t({...e,smtp_port:parseInt(b.target.value)}),placeholder:"587",className:"w-full ios-input px-4 py-3 rounded-xl text-sm"})]})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"发件邮箱"}),m.jsx("input",{type:"email",value:e.smtp_user||"",onChange:b=>t({...e,smtp_user:b.target.value}),placeholder:"your-email@qq.com",className:"w-full ios-input px-4 py-3 rounded-xl text-sm"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"邮箱密码/授权码"}),m.jsxs("div",{className:"relative",children:[m.jsx("input",{type:d?"text":"password",value:e.smtp_password||"",onChange:b=>t({...e,smtp_password:b.target.value}),placeholder:"输入密码或授权码",className:"w-full ios-input px-4 py-3 pr-12 rounded-xl text-sm"}),m.jsx("button",{type:"button",onClick:()=>h(!d),className:"absolute right-3 top-1/2 -translate-y-1/2 p-2 text-gray-400 hover:text-gray-600 transition-colors",children:d?m.jsx(Ey,{className:"w-4 h-4"}):m.jsx(Of,{className:"w-4 h-4"})})]}),m.jsx("p",{className:"text-xs text-gray-500",children:"QQ邮箱需要使用授权码"})]}),m.jsxs("div",{className:"space-y-3",children:[m.jsx("label",{className:"block text-sm font-bold text-gray-800",children:"发件人显示名（可选）"}),m.jsx("input",{type:"text",value:e.smtp_from||"",onChange:b=>t({...e,smtp_from:b.target.value}),placeholder:"闲鱼自动回复系统",className:"w-full ios-input px-4 py-3 rounded-xl text-sm"})]})]})]})})]}),m.jsx("div",{className:"fixed bottom-10 right-10 z-30",children:m.jsxs("button",{onClick:y,disabled:l,className:"ios-btn-primary px-10 py-5 rounded-[2rem] text-lg shadow-2xl shadow-yellow-200 flex items-center gap-3 transform hover:scale-105 active:scale-95 transition-all disabled:opacity-70",children:[m.jsx(ii,{className:"w-6 h-6"}),l?"保存中...":"保存所有配置"]})})]}):m.jsx("div",{className:"p-8 text-center text-gray-400",children:"加载配置中..."})},PW=()=>{const[e,t]=x.useState([]),[n,r]=x.useState(""),[l,o]=x.useState("reply"),[u,f]=x.useState([]),[d,h]=x.useState(!1),[p,y]=x.useState(null),[b,w]=x.useState({keyword:"",reply_content:""}),[S,j]=x.useState([]),[_,A]=x.useState([]),[N,C]=x.useState(!1),[D,k]=x.useState(null),[T,P]=x.useState({keyword:"",card_id:"",description:"",enabled:!0}),[$,X]=x.useState({}),[Z,te]=x.useState(!1),[R,ce]=x.useState(null),[le,fe]=x.useState({cookie_id:"",enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),[U,Q]=x.useState(!1);x.useEffect(()=>{Hg().then(H=>{t(H),H&&H.length>0&&!n&&r(H[0].id)})},[]),x.useEffect(()=>{n&&(M(),de(),B(),se())},[n]);const se=async()=>{try{const H=await lR();X(H)}catch(H){console.error("加载默认回复失败",H)}},de=async()=>{try{const H=await W6();j(H)}catch(H){console.error("加载发货规则失败",H)}},B=async()=>{try{const H=await Ql();A(H)}catch(H){console.error("加载卡券失败",H)}},M=async()=>{if(n){Q(!0);try{const H=await J6(n);f(H)}catch(H){console.error("加载关键词失败",H)}finally{Q(!1)}}},q=()=>{if(l==="reply")y(null),w({keyword:"",reply_content:""}),h(!0);else if(l==="delivery")k(null),P({keyword:"",card_id:"",description:"",enabled:!0}),C(!0);else{if(!n)return;ie(n)}},ie=async H=>{try{const Oe=await oR(H);ce(Oe),fe({cookie_id:H,enabled:Oe.enabled,reply_content:Oe.reply_content,reply_once:Oe.reply_once,reply_image_url:Oe.reply_image_url||""}),te(!0)}catch(Oe){console.error("加载默认回复失败",Oe),ce(null),fe({cookie_id:H,enabled:!1,reply_content:"",reply_once:!1,reply_image_url:""}),te(!0)}},ue=H=>{l==="reply"&&(y(H),w({keyword:H.keyword,reply_content:H.reply_content}),h(!0))},me=H=>{k(H),P({keyword:H.item_keyword,card_id:String(H.card_group_id),description:H.name,enabled:H.enabled}),C(!0)},ge=async()=>{if(!n){alert("请先选择账号");return}if(!b.keyword.trim()||!b.reply_content.trim()){alert("请填写关键词和回复内容");return}try{await eR({id:p==null?void 0:p.id,keyword:b.keyword,reply_content:b.reply_content,match_type:"exact",enabled:!0},n),h(!1),M(),alert("保存成功！")}catch(H){alert("保存失败："+H.message)}},Se=async()=>{if(!T.keyword.trim()){alert("请填写触发关键词");return}if(!T.card_id){alert("请选择卡券");return}try{await x2({id:D==null?void 0:D.id,item_keyword:T.keyword,card_group_id:parseInt(T.card_id),name:T.description,priority:1,enabled:T.enabled}),C(!1),de(),alert("保存成功！")}catch(H){alert("保存失败："+H.message)}},Ie=async H=>{if(!(!n||!confirm("确认删除该关键词吗？")))try{await tR(H,n),M(),alert("删除成功！")}catch(Oe){alert("删除失败："+Oe.message)}},J=async H=>{if(confirm("确认删除该发货规则吗？"))try{await Q6(H),de(),alert("删除成功！")}catch(Oe){alert("删除失败："+Oe.message)}},xe=async H=>{try{await x2({id:H.id,item_keyword:H.item_keyword,card_group_id:H.card_group_id,name:H.name,priority:H.priority,enabled:!H.enabled}),de()}catch(Oe){alert("操作失败："+Oe.message)}},_e=async()=>{if(!le.cookie_id){alert("请先选择账号");return}try{await sR(le.cookie_id,{enabled:le.enabled,reply_content:le.reply_content,reply_once:le.reply_once,reply_image_url:le.reply_image_url}),te(!1),se(),alert("保存成功！")}catch(H){alert("保存失败："+H.message)}},oe=async H=>{if(confirm("确认删除该默认回复吗？"))try{await uR(H),se(),alert("删除成功！")}catch(Oe){alert("删除失败："+Oe.message)}},De=async H=>{if(confirm("确认清空该账号的回复记录吗？清空后可以重新对所有对话使用默认回复。"))try{await cR(H),alert("清空成功！")}catch(Oe){alert("清空失败："+Oe.message)}};return m.jsxs("div",{className:"space-y-8 animate-fade-in",children:[m.jsx("div",{className:"flex justify-between items-end",children:m.jsxs("div",{children:[m.jsx("h2",{className:"text-4xl font-extrabold text-gray-900 tracking-tight",children:"关键词管理"}),m.jsx("p",{className:"text-gray-500 mt-2 font-medium",children:"配置自动回复和关键词发货规则"})]})}),m.jsx("div",{className:"flex justify-center",children:m.jsxs("div",{className:"inline-flex bg-gradient-to-br from-gray-100 to-gray-200 p-2 rounded-3xl shadow-xl",children:[m.jsxs("button",{onClick:()=>o("reply"),className:`flex items-center gap-3 px-6 py-4 rounded-2xl font-bold text-lg transition-all duration-300 ${l==="reply"?"bg-gradient-to-r from-[#FFE815] to-[#FFD700] text-gray-900 shadow-2xl scale-105":"text-gray-500 hover:text-gray-700 hover:bg-white/50"}`,children:[m.jsx(aa,{className:"w-6 h-6"}),"关键词回复",l==="reply"&&m.jsx("span",{className:"ml-2 px-3 py-1 bg-white/30 rounded-full text-sm",children:u.length})]}),m.jsxs("button",{onClick:()=>o("delivery"),className:`flex items-center gap-3 px-6 py-4 rounded-2xl font-bold text-lg transition-all duration-300 ${l==="delivery"?"bg-gradient-to-r from-[#FFE815] to-[#FFD700] text-gray-900 shadow-2xl scale-105":"text-gray-500 hover:text-gray-700 hover:bg-white/50"}`,children:[m.jsx(eo,{className:"w-6 h-6"}),"关键词发货",l==="delivery"&&m.jsx("span",{className:"ml-2 px-3 py-1 bg-white/30 rounded-full text-sm",children:S.length})]}),m.jsxs("button",{onClick:()=>o("default"),className:`flex items-center gap-3 px-6 py-4 rounded-2xl font-bold text-lg transition-all duration-300 ${l==="default"?"bg-gradient-to-r from-[#FFE815] to-[#FFD700] text-gray-900 shadow-2xl scale-105":"text-gray-500 hover:text-gray-700 hover:bg-white/50"}`,children:[m.jsx(la,{className:"w-6 h-6"}),"账号默认回复",l==="default"&&m.jsx("span",{className:"ml-2 px-3 py-1 bg-white/30 rounded-full text-sm",children:Object.values($).filter(H=>H.enabled).length})]})]})}),m.jsx("div",{className:"bg-white rounded-3xl shadow-xl p-6",children:m.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4 w-full sm:w-auto",children:[m.jsx("label",{className:"text-sm font-bold text-gray-700 whitespace-nowrap",children:"选择账号"}),m.jsxs("select",{className:"flex-1 sm:w-64 ios-input px-5 py-3 rounded-2xl font-medium border-2 border-gray-200 focus:border-[#FFE815] focus:ring-4 focus:ring-[#FFE815]/20 transition-all",value:n,onChange:H=>r(H.target.value),children:[m.jsx("option",{value:"",children:"请选择账号"}),e.map(H=>m.jsx("option",{value:H.id,children:H.nickname},H.id))]})]}),m.jsxs("div",{className:"flex items-center gap-3 w-full sm:w-auto",children:[m.jsxs("button",{onClick:()=>{l==="reply"?M():l==="delivery"?de():se()},className:"flex-1 sm:flex-none flex items-center justify-center gap-2 px-6 py-3 rounded-2xl font-bold bg-gradient-to-br from-gray-100 to-gray-200 hover:from-gray-200 hover:to-gray-300 transition-all shadow-lg",children:[m.jsx(ai,{className:"w-5 h-5"}),"刷新"]}),m.jsxs("button",{onClick:q,disabled:!n,className:"flex-1 sm:flex-none flex items-center justify-center gap-2 px-8 py-3 rounded-2xl font-bold bg-gradient-to-r from-[#FFE815] to-[#FFD700] hover:from-[#FFD700] hover:to-[#FFC800] text-gray-900 shadow-xl hover:shadow-2xl hover:scale-105 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:[m.jsx(Bs,{className:"w-5 h-5"}),l==="reply"?"添加关键词":l==="delivery"?"添加发货规则":"编辑默认回复"]})]})]})}),n?l==="reply"?U?m.jsx("div",{className:"py-24 flex justify-center",children:m.jsxs("div",{className:"flex flex-col items-center gap-4",children:[m.jsx(Li,{className:"w-16 h-16 text-[#FFE815] animate-spin"}),m.jsx("p",{className:"text-gray-500 font-medium",children:"加载中..."})]})}):m.jsxs("div",{className:"space-y-4",children:[u.map((H,Oe)=>m.jsxs("div",{className:"group relative bg-gradient-to-br from-white to-gray-50 rounded-3xl p-6 shadow-lg hover:shadow-2xl transition-all duration-300 border-2 border-transparent hover:border-[#FFE815]/30 overflow-hidden",children:[m.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-[#FFE815]/10 to-transparent rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),m.jsxs("div",{className:"relative flex items-center gap-6",children:[m.jsx("div",{className:"flex-shrink-0",children:m.jsx("div",{className:"w-16 h-16 bg-gradient-to-br from-[#FFF9C4] to-[#FFE815] rounded-2xl flex items-center justify-center shadow-lg group-hover:scale-110 group-hover:rotate-12 transition-all duration-300",children:m.jsx(df,{className:"w-8 h-8 text-yellow-800"})})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[m.jsx("h3",{className:"text-xl font-black text-gray-900",children:H.keyword}),m.jsx("span",{className:"px-3 py-1.5 rounded-xl bg-gradient-to-r from-green-400 to-green-500 text-white text-xs font-bold shadow-md",children:"精确匹配"})]}),m.jsxs("p",{className:"text-gray-600 bg-white/70 backdrop-blur-sm rounded-2xl px-4 py-3 line-clamp-2 shadow-inner border border-gray-100",children:["💬 ",H.reply_content||"无回复内容"]})]}),m.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[m.jsx("button",{onClick:()=>ue(H),className:"p-3.5 bg-gradient-to-br from-amber-50 to-amber-100 text-amber-600 rounded-2xl hover:from-amber-100 hover:to-amber-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"编辑",children:m.jsx(hf,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>Ie(H.id),className:"p-3.5 bg-gradient-to-br from-red-50 to-red-100 text-red-500 rounded-2xl hover:from-red-100 hover:to-red-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"删除",children:m.jsx(Hi,{className:"w-5 h-5"})})]})]})]},H.id)),u.length===0&&m.jsxs("div",{className:"py-24 text-center bg-gradient-to-br from-white to-gray-50 rounded-[2.5rem] border-3 border-dashed border-gray-300 shadow-xl",children:[m.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-[#FFE815]/20 to-[#FFD700]/20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-inner",children:m.jsx(aa,{className:"w-12 h-12 text-[#FFE815]"})}),m.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"暂无关键词"}),m.jsx("p",{className:"text-gray-500 text-lg",children:"点击右上角添加新的关键词规则"})]})]}):l==="delivery"?m.jsxs("div",{className:"space-y-4",children:[S.map(H=>m.jsxs("div",{className:`group relative bg-gradient-to-br ${H.enabled?"from-white to-blue-50/30":"from-gray-100 to-gray-150"} rounded-3xl p-6 shadow-lg hover:shadow-2xl transition-all duration-300 border-2 ${H.enabled?"border-transparent hover:border-blue-400/30":"border-gray-200"} overflow-hidden`,children:[H.enabled&&m.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-blue-400/10 to-transparent rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),m.jsxs("div",{className:"relative flex items-center gap-6",children:[m.jsx("div",{className:"flex-shrink-0",children:m.jsx("div",{className:`w-16 h-16 rounded-2xl flex items-center justify-center shadow-lg group-hover:scale-110 transition-all duration-300 ${H.enabled?"bg-gradient-to-br from-blue-400 to-blue-500 group-hover:rotate-12":"bg-gradient-to-br from-gray-300 to-gray-400"}`,children:m.jsx(eo,{className:"w-8 h-8 text-white"})})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[m.jsx("h3",{className:"text-xl font-black text-gray-900",children:H.item_keyword}),m.jsx("span",{className:`px-3 py-1.5 rounded-xl text-xs font-bold shadow-md ${H.enabled?"bg-gradient-to-r from-green-400 to-green-500 text-white":"bg-gradient-to-r from-gray-400 to-gray-500 text-white"}`,children:H.enabled?"已启用":"已禁用"})]}),m.jsxs("p",{className:"text-gray-600 bg-white/70 backdrop-blur-sm rounded-2xl px-4 py-3 shadow-inner border border-gray-100",children:["🎁 卡券：",H.card_group_name||`ID: ${H.card_group_id}`,H.name&&m.jsxs(m.Fragment,{children:[m.jsx("span",{className:"mx-2 text-gray-300",children:"|"}),"📝 ",H.name]})]})]}),m.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[m.jsx("button",{onClick:()=>xe(H),className:`p-3.5 rounded-2xl transition-all shadow-md hover:shadow-lg hover:scale-110 ${H.enabled?"bg-gradient-to-br from-amber-50 to-amber-100 text-amber-600 hover:from-amber-100 hover:to-amber-200":"bg-gradient-to-br from-green-50 to-green-100 text-green-600 hover:from-green-100 hover:to-green-200"}`,title:H.enabled?"禁用":"启用",children:H.enabled?m.jsx(E4,{className:"w-5 h-5"}):m.jsx(mf,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>me(H),className:"p-3.5 bg-gradient-to-br from-amber-50 to-amber-100 text-amber-600 rounded-2xl hover:from-amber-100 hover:to-amber-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"编辑",children:m.jsx(hf,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>J(H.id),className:"p-3.5 bg-gradient-to-br from-red-50 to-red-100 text-red-500 rounded-2xl hover:from-red-100 hover:to-red-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"删除",children:m.jsx(Hi,{className:"w-5 h-5"})})]})]})]},H.id)),S.length===0&&m.jsxs("div",{className:"py-24 text-center bg-gradient-to-br from-white to-gray-50 rounded-[2.5rem] border-3 border-dashed border-gray-300 shadow-xl",children:[m.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-blue-400/20 to-blue-500/20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-inner",children:m.jsx(eo,{className:"w-12 h-12 text-blue-400"})}),m.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"暂无发货规则"}),m.jsx("p",{className:"text-gray-500 text-lg",children:"点击右上角添加新的发货规则"})]})]}):l==="default"?m.jsxs("div",{className:"space-y-4",children:[e.map(H=>{const Oe=$[H.id],Ke=Oe&&Oe.enabled;return m.jsxs("div",{className:`group relative bg-gradient-to-br ${Ke?"from-white to-purple-50/30":"from-gray-100 to-gray-150"} rounded-3xl p-6 shadow-lg hover:shadow-2xl transition-all duration-300 border-2 ${Ke?"border-transparent hover:border-purple-400/30":"border-gray-200"} overflow-hidden`,children:[Ke&&m.jsx("div",{className:"absolute top-0 right-0 w-32 h-32 bg-gradient-to-br from-purple-400/10 to-transparent rounded-full -translate-y-1/2 translate-x-1/2 group-hover:scale-150 transition-transform duration-500"}),m.jsxs("div",{className:"relative flex items-center gap-6",children:[m.jsx("div",{className:"flex-shrink-0",children:m.jsx("div",{className:`w-16 h-16 rounded-2xl flex items-center justify-center shadow-lg group-hover:scale-110 transition-all duration-300 ${Ke?"bg-gradient-to-br from-purple-400 to-purple-500 group-hover:rotate-12":"bg-gradient-to-br from-gray-300 to-gray-400"}`,children:m.jsx(la,{className:"w-8 h-8 text-white"})})}),m.jsxs("div",{className:"flex-1 min-w-0",children:[m.jsxs("div",{className:"flex items-center gap-3 mb-3",children:[m.jsx("h3",{className:"text-xl font-black text-gray-900",children:H.nickname}),m.jsx("span",{className:`px-3 py-1.5 rounded-xl text-xs font-bold shadow-md ${Ke?"bg-gradient-to-r from-green-400 to-green-500 text-white":"bg-gradient-to-r from-gray-400 to-gray-500 text-white"}`,children:Ke?"已启用":"未设置"}),(Oe==null?void 0:Oe.reply_once)&&m.jsx("span",{className:"px-3 py-1.5 rounded-xl bg-purple-100 text-purple-700 text-xs font-bold shadow-md",children:"只回复一次"})]}),Ke&&m.jsxs("p",{className:"text-gray-600 bg-white/70 backdrop-blur-sm rounded-2xl px-4 py-3 line-clamp-2 shadow-inner border border-gray-100",children:["💬 ",Oe.reply_content||"无回复内容"]})]}),m.jsxs("div",{className:"flex gap-2 flex-shrink-0",children:[m.jsx("button",{onClick:()=>ie(H.id),className:"p-3.5 bg-gradient-to-br from-purple-50 to-purple-100 text-purple-600 rounded-2xl hover:from-purple-100 hover:to-purple-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"编辑",children:m.jsx(hf,{className:"w-5 h-5"})}),Ke&&m.jsxs(m.Fragment,{children:[m.jsx("button",{onClick:()=>De(H.id),className:"p-3.5 bg-gradient-to-br from-blue-50 to-blue-100 text-blue-600 rounded-2xl hover:from-blue-100 hover:to-blue-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"清空回复记录",children:m.jsx(ai,{className:"w-5 h-5"})}),m.jsx("button",{onClick:()=>oe(H.id),className:"p-3.5 bg-gradient-to-br from-red-50 to-red-100 text-red-500 rounded-2xl hover:from-red-100 hover:to-red-200 transition-all shadow-md hover:shadow-lg hover:scale-110",title:"删除",children:m.jsx(Hi,{className:"w-5 h-5"})})]})]})]})]},H.id)}),e.length===0&&m.jsxs("div",{className:"py-24 text-center bg-gradient-to-br from-white to-gray-50 rounded-[2.5rem] border-3 border-dashed border-gray-300 shadow-xl",children:[m.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-purple-400/20 to-purple-500/20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-inner",children:m.jsx(la,{className:"w-12 h-12 text-purple-400"})}),m.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"暂无账号"}),m.jsx("p",{className:"text-gray-500 text-lg",children:"请先添加账号"})]})]}):null:m.jsxs("div",{className:"py-24 text-center bg-gradient-to-br from-white to-gray-50 rounded-[2.5rem] border-3 border-dashed border-gray-300 shadow-xl",children:[m.jsx("div",{className:"w-24 h-24 bg-gradient-to-br from-[#FFE815]/20 to-[#FFD700]/20 rounded-full flex items-center justify-center mx-auto mb-6 shadow-inner",children:m.jsx(aa,{className:"w-12 h-12 text-[#FFE815]"})}),m.jsx("h3",{className:"text-2xl font-bold text-gray-900 mb-2",children:"请选择账号"}),m.jsx("p",{className:"text-gray-500 text-lg",children:"选择一个账号以管理其关键词规则"})]}),d&&hn.createPortal(m.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4 animate-fade-in",children:m.jsxs("div",{className:"bg-white rounded-[2.5rem] shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-hidden animate-scale-in",children:[m.jsx("div",{className:"bg-gradient-to-r from-[#FFE815] to-[#FFD700] p-8",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"w-14 h-14 bg-white/30 backdrop-blur-sm rounded-2xl flex items-center justify-center",children:m.jsx(aa,{className:"w-7 h-7 text-gray-900"})}),m.jsx("h3",{className:"text-3xl font-black text-gray-900",children:p?"编辑关键词":"添加关键词"})]}),m.jsx("button",{onClick:()=>h(!1),className:"p-3 bg-white/30 backdrop-blur-sm rounded-2xl hover:bg-white/40 transition-colors",children:m.jsx(ir,{className:"w-6 h-6 text-gray-900"})})]})}),m.jsxs("div",{className:"p-8 space-y-6 overflow-y-auto max-h-[60vh]",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(df,{className:"w-5 h-5 text-[#FFE815]"}),"触发关键词"]}),m.jsx("input",{type:"text",value:b.keyword,onChange:H=>w({...b,keyword:H.target.value}),placeholder:"例如：价格、包邮、怎么样",className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-[#FFE815] focus:ring-4 focus:ring-[#FFE815]/20 transition-all bg-gray-50"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"💡 买家消息中包含此关键词时自动回复"})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(aa,{className:"w-5 h-5 text-[#FFE815]"}),"回复内容"]}),m.jsx("textarea",{value:b.reply_content,onChange:H=>w({...b,reply_content:H.target.value}),placeholder:"输入自动回复的内容...",rows:6,className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-[#FFE815] focus:ring-4 focus:ring-[#FFE815]/20 transition-all bg-gray-50 resize-none"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"💬 支持换行，系统将自动发送此内容给买家"})]})]}),m.jsx("div",{className:"p-8 bg-gray-50 border-t border-gray-100",children:m.jsxs("div",{className:"flex gap-4",children:[m.jsx("button",{onClick:()=>h(!1),className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-white border-2 border-gray-200 hover:bg-gray-50 hover:border-gray-300 text-gray-700 transition-all shadow-lg hover:shadow-xl",children:"取消"}),m.jsxs("button",{onClick:ge,className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-gradient-to-r from-[#FFE815] to-[#FFD700] hover:from-[#FFD700] hover:to-[#FFC800] text-gray-900 shadow-xl hover:shadow-2xl hover:scale-105 transition-all flex items-center justify-center gap-2",children:[m.jsx(ii,{className:"w-5 h-5"}),"保存关键词"]})]})})]})}),document.body),N&&hn.createPortal(m.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4 animate-fade-in",children:m.jsxs("div",{className:"bg-white rounded-[2.5rem] shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-hidden animate-scale-in",children:[m.jsx("div",{className:"bg-gradient-to-r from-blue-400 to-blue-500 p-8",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"w-14 h-14 bg-white/30 backdrop-blur-sm rounded-2xl flex items-center justify-center",children:m.jsx(eo,{className:"w-7 h-7 text-white"})}),m.jsx("h3",{className:"text-3xl font-black text-white",children:D?"编辑发货规则":"添加发货规则"})]}),m.jsx("button",{onClick:()=>C(!1),className:"p-3 bg-white/30 backdrop-blur-sm rounded-2xl hover:bg-white/40 transition-colors",children:m.jsx(ir,{className:"w-6 h-6 text-white"})})]})}),m.jsxs("div",{className:"p-8 space-y-6 overflow-y-auto max-h-[60vh]",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(df,{className:"w-5 h-5 text-blue-500"}),"触发关键词"]}),m.jsx("input",{type:"text",value:T.keyword,onChange:H=>P({...T,keyword:H.target.value}),placeholder:"例如：发货卡密、自动发货",className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-blue-400 focus:ring-4 focus:ring-blue-400/20 transition-all bg-gray-50"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"💡 买家消息中包含此关键词时自动发货"})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(Af,{className:"w-5 h-5 text-blue-500"}),"关联卡券"]}),m.jsxs("select",{value:T.card_id,onChange:H=>P({...T,card_id:H.target.value}),className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-blue-400 focus:ring-4 focus:ring-blue-400/20 transition-all bg-gray-50",children:[m.jsx("option",{value:"",children:"请选择卡券"}),_.map(H=>{var Oe;return m.jsxs("option",{value:H.id,children:[H.name||((Oe=H.text_content)==null?void 0:Oe.substring(0,30))||`卡券 ${H.id}`,H.is_multi_spec&&` [${H.spec_name}: ${H.spec_value}]`]},H.id)})]}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"🎁 选择触发关键词时发送的卡券"})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(aa,{className:"w-5 h-5 text-blue-500"}),"描述（可选）"]}),m.jsx("input",{type:"text",value:T.description,onChange:H=>P({...T,description:H.target.value}),placeholder:"规则描述，方便识别",className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-blue-400 focus:ring-4 focus:ring-blue-400/20 transition-all bg-gray-50"})]}),m.jsxs("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-blue-50 to-blue-100/50 rounded-2xl border-2 border-blue-200",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(mf,{className:"w-6 h-6 text-blue-500"}),m.jsx("span",{className:"text-base font-black text-gray-900",children:"启用此规则"})]}),m.jsx("button",{type:"button",onClick:()=>P({...T,enabled:!T.enabled}),className:`relative inline-flex h-7 w-14 items-center rounded-full transition-all duration-300 ${T.enabled?"bg-blue-500":"bg-gray-300"}`,children:m.jsx("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white shadow-lg transition-transform duration-300 ${T.enabled?"translate-x-8":"translate-x-1"}`})})]})]}),m.jsx("div",{className:"p-8 bg-gray-50 border-t border-gray-100",children:m.jsxs("div",{className:"flex gap-4",children:[m.jsx("button",{onClick:()=>C(!1),className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-white border-2 border-gray-200 hover:bg-gray-50 hover:border-gray-300 text-gray-700 transition-all shadow-lg hover:shadow-xl",children:"取消"}),m.jsxs("button",{onClick:Se,className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-gradient-to-r from-blue-400 to-blue-500 hover:from-blue-500 hover:to-blue-600 text-white shadow-xl hover:shadow-2xl hover:scale-105 transition-all flex items-center justify-center gap-2",children:[m.jsx(ii,{className:"w-5 h-5"}),"保存发货规则"]})]})})]})}),document.body),Z&&hn.createPortal(m.jsx("div",{className:"fixed inset-0 bg-black/60 backdrop-blur-sm flex items-center justify-center z-50 p-4 animate-fade-in",children:m.jsxs("div",{className:"bg-white rounded-[2.5rem] shadow-2xl max-w-2xl w-full max-h-[90vh] overflow-hidden animate-scale-in",children:[m.jsx("div",{className:"bg-gradient-to-r from-purple-400 to-purple-500 p-8",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex items-center gap-4",children:[m.jsx("div",{className:"w-14 h-14 bg-white/30 backdrop-blur-sm rounded-2xl flex items-center justify-center",children:m.jsx(la,{className:"w-7 h-7 text-white"})}),m.jsx("h3",{className:"text-3xl font-black text-white",children:"账号默认回复"})]}),m.jsx("button",{onClick:()=>te(!1),className:"p-3 bg-white/30 backdrop-blur-sm rounded-2xl hover:bg-white/40 transition-colors",children:m.jsx(ir,{className:"w-6 h-6 text-white"})})]})}),m.jsxs("div",{className:"p-8 space-y-6 overflow-y-auto max-h-[60vh]",children:[m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(la,{className:"w-5 h-5 text-purple-500"}),"账号"]}),m.jsxs("select",{value:le.cookie_id,onChange:H=>fe({...le,cookie_id:H.target.value}),className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-purple-400 focus:ring-4 focus:ring-purple-400/20 transition-all bg-gray-50",children:[m.jsx("option",{value:"",children:"请选择账号"}),e.map(H=>m.jsx("option",{value:H.id,children:H.nickname},H.id))]}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"🤖 为此账号设置默认回复内容"})]}),m.jsxs("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-purple-50 to-purple-100/50 rounded-2xl border-2 border-purple-200",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx(mf,{className:"w-6 h-6 text-purple-500"}),m.jsx("span",{className:"text-base font-black text-gray-900",children:"启用默认回复"})]}),m.jsx("button",{type:"button",onClick:()=>fe({...le,enabled:!le.enabled}),className:`relative inline-flex h-7 w-14 items-center rounded-full transition-all duration-300 ${le.enabled?"bg-purple-500":"bg-gray-300"}`,children:m.jsx("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white shadow-lg transition-transform duration-300 ${le.enabled?"translate-x-8":"translate-x-1"}`})})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(aa,{className:"w-5 h-5 text-purple-500"}),"回复内容"]}),m.jsx("textarea",{value:le.reply_content,onChange:H=>fe({...le,reply_content:H.target.value}),placeholder:"输入默认回复的内容...",rows:6,className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-purple-400 focus:ring-4 focus:ring-purple-400/20 transition-all bg-gray-50 resize-none"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"💬 当没有匹配的关键词时，系统将自动发送此内容"})]}),m.jsxs("div",{className:"flex items-center justify-between p-5 bg-gradient-to-r from-amber-50 to-amber-100/50 rounded-2xl border-2 border-amber-200",children:[m.jsxs("div",{className:"flex items-center gap-3",children:[m.jsx("span",{className:"text-base font-black text-gray-900",children:"🔁 只回复一次"}),m.jsx("span",{className:"text-xs text-gray-500",children:"启用后，每个对话只使用一次默认回复"})]}),m.jsx("button",{type:"button",onClick:()=>fe({...le,reply_once:!le.reply_once}),className:`relative inline-flex h-7 w-14 items-center rounded-full transition-all duration-300 ${le.reply_once?"bg-amber-500":"bg-gray-300"}`,children:m.jsx("span",{className:`inline-block h-5 w-5 transform rounded-full bg-white shadow-lg transition-transform duration-300 ${le.reply_once?"translate-x-8":"translate-x-1"}`})})]}),m.jsxs("div",{children:[m.jsxs("label",{className:"flex items-center gap-2 text-sm font-black text-gray-900 mb-3",children:[m.jsx(Af,{className:"w-5 h-5 text-purple-500"}),"回复图片URL（可选）"]}),m.jsx("input",{type:"text",value:le.reply_image_url,onChange:H=>fe({...le,reply_image_url:H.target.value}),placeholder:"https://example.com/image.jpg",className:"w-full px-6 py-4 rounded-2xl font-medium border-2 border-gray-200 focus:border-purple-400 focus:ring-4 focus:ring-purple-400/20 transition-all bg-gray-50"}),m.jsx("p",{className:"text-sm text-gray-500 mt-2 ml-1",children:"🖼️ 可选：添加图片URL一起发送"})]})]}),m.jsx("div",{className:"p-8 bg-gray-50 border-t border-gray-100",children:m.jsxs("div",{className:"flex gap-4",children:[m.jsx("button",{onClick:()=>te(!1),className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-white border-2 border-gray-200 hover:bg-gray-50 hover:border-gray-300 text-gray-700 transition-all shadow-lg hover:shadow-xl",children:"取消"}),m.jsxs("button",{onClick:_e,className:"flex-1 px-8 py-4 rounded-2xl font-bold bg-gradient-to-r from-purple-400 to-purple-500 hover:from-purple-500 hover:to-purple-600 text-white shadow-xl hover:shadow-2xl hover:scale-105 transition-all flex items-center justify-center gap-2",children:[m.jsx(ii,{className:"w-5 h-5"}),"保存默认回复"]})]})})]})}),document.body)]})},RW=()=>{const[e,t]=x.useState(!1),[n,r]=x.useState("dashboard"),[l,o]=x.useState(!0),[u,f]=x.useState(""),[d,h]=x.useState(""),[p,y]=x.useState(!1),[b,w]=x.useState("");x.useEffect(()=>{localStorage.getItem("auth_token")?C6().then(()=>t(!0)).catch(()=>localStorage.removeItem("auth_token")).finally(()=>o(!1)):o(!1);const N=()=>t(!1);return window.addEventListener("auth:logout",N),()=>window.removeEventListener("auth:logout",N)},[]);const S=async A=>{A.preventDefault(),y(!0),w("");try{const N=await E6({username:u,password:d});N.success&&N.token?(localStorage.setItem("auth_token",N.token),t(!0)):w(N.message||"登录失败")}catch{w("无法连接服务器")}finally{y(!1)}},j=()=>{y(!0),setTimeout(()=>{localStorage.setItem("auth_token","test_token"),t(!0),y(!1)},800)};if(l)return m.jsx("div",{className:"min-h-screen flex items-center justify-center bg-[#f5f5f7]",children:m.jsx(Li,{className:"w-8 h-8 text-[#FFE815] animate-spin"})});if(!e)return m.jsxs("div",{className:"min-h-screen flex items-center justify-center bg-[#F4F5F7] p-4 relative overflow-hidden font-sans",children:[m.jsx("div",{className:"absolute top-[-10%] left-[-10%] w-[60%] h-[60%] bg-yellow-200/40 rounded-full blur-[120px] animate-pulse"}),m.jsx("div",{className:"absolute bottom-[-10%] right-[-10%] w-[60%] h-[60%] bg-blue-200/30 rounded-full blur-[120px] animate-pulse",style:{animationDelay:"2s"}}),m.jsxs("div",{className:"bg-white/80 backdrop-blur-3xl p-8 md:p-12 rounded-[3rem] shadow-[0_20px_60px_-15px_rgba(0,0,0,0.05)] w-full max-w-lg border border-white relative z-10 animate-fade-in",children:[m.jsxs("div",{className:"text-center mb-10",children:[m.jsx("div",{className:"w-24 h-24 bg-[#FFE815] rounded-[2rem] flex items-center justify-center shadow-xl shadow-yellow-200 mx-auto mb-6 transform rotate-[-6deg] hover:rotate-0 transition-all duration-500 cursor-pointer group",children:m.jsx("span",{className:"text-black font-extrabold text-5xl group-hover:scale-110 transition-transform",children:"闲"})}),m.jsx("h2",{className:"text-3xl font-extrabold text-gray-900 mb-2 tracking-tight",children:"欢迎回来"}),m.jsx("p",{className:"text-gray-500 font-medium",children:"闲鱼智能自动发货与管家系统"})]}),m.jsxs("form",{onSubmit:S,className:"space-y-5",children:[m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"relative group",children:[m.jsx(EN,{className:"absolute left-5 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400 group-focus-within:text-black transition-colors"}),m.jsx("input",{type:"text",placeholder:"管理员账号",value:u,onChange:A=>f(A.target.value),className:"w-full ios-input pl-14 pr-6 py-4.5 rounded-2xl text-base h-14"})]}),m.jsxs("div",{className:"relative group",children:[m.jsx(y4,{className:"absolute left-5 top-1/2 -translate-y-1/2 w-5 h-5 text-gray-400 group-focus-within:text-black transition-colors"}),m.jsx("input",{type:"password",placeholder:"密码",value:d,onChange:A=>h(A.target.value),className:"w-full ios-input pl-14 pr-6 py-4.5 rounded-2xl text-base h-14"})]})]}),b&&m.jsxs("div",{className:"p-3 rounded-xl bg-red-50 text-red-500 text-sm text-center font-bold flex items-center justify-center gap-2",children:[m.jsx(B4,{className:"w-4 h-4"})," ",b]}),m.jsx("button",{type:"submit",disabled:p,className:"w-full ios-btn-primary h-14 rounded-2xl text-lg shadow-xl shadow-yellow-200 mt-2 flex items-center justify-center gap-2 group disabled:opacity-70",children:p?m.jsx(Li,{className:"w-5 h-5 animate-spin"}):m.jsxs(m.Fragment,{children:["立即登录 ",m.jsx(Fk,{className:"w-5 h-5 group-hover:translate-x-1 transition-transform"})]})})]}),m.jsxs("div",{className:"mt-8 pt-6 border-t border-gray-100",children:[m.jsxs("button",{type:"button",onClick:j,disabled:p,className:"w-full bg-black text-white h-14 rounded-2xl text-base font-bold shadow-lg shadow-gray-200 flex items-center justify-center gap-2 hover:bg-gray-800 transition-all active:scale-95",children:[m.jsx(f4,{className:"w-5 h-5 text-[#FFE815]"}),"游客试用 (无需账号)"]}),m.jsx("div",{className:"mt-6 text-center",children:m.jsx("span",{className:"text-xs text-gray-400 font-medium tracking-widest uppercase",children:"Xianyu Auto-Dispatch Pro v2.5"})})]})]})]});const _=()=>{switch(n){case"dashboard":return m.jsx(gN,{});case"accounts":return m.jsx(CW,{});case"orders":return m.jsx(TW,{});case"cards":return m.jsx(MW,{});case"items":return m.jsx(DW,{});case"keywords":return m.jsx(PW,{});case"settings":return m.jsx(kW,{});default:return m.jsx(gN,{})}};return m.jsxs("div",{className:"flex min-h-screen bg-[#F4F5F7] text-[#111]",children:[m.jsx(Q4,{activeTab:n,setActiveTab:r,onLogout:()=>{localStorage.removeItem("auth_token"),t(!1)}}),m.jsxs("main",{className:"flex-1 ml-64 p-8 md:p-12 overflow-y-auto h-screen relative scroll-smooth",children:[m.jsx("div",{className:"fixed top-0 right-0 w-[800px] h-[800px] bg-gradient-to-bl from-yellow-50 to-transparent rounded-full blur-[120px] pointer-events-none -z-10 opacity-60"}),m.jsx("div",{className:"max-w-[1400px] mx-auto pb-10",children:_()})]})]})},l3=document.getElementById("root");if(!l3)throw new Error("Could not find root element to mount to");const zW=zk.createRoot(l3);zW.render(m.jsx(xN.StrictMode,{children:m.jsx(RW,{})}));
//# sourceMappingURL=index-BHaU2eGe.js.map
