var MA=e=>{throw TypeError(e)};var iv=(e,t,n)=>t.has(e)||MA("Cannot "+n);var R=(e,t,n)=>(iv(e,t,"read from private field"),n?n.call(e):t.get(e)),ce=(e,t,n)=>t.has(e)?MA("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ee=(e,t,n,r)=>(iv(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Oe=(e,t,n)=>(iv(e,t,"access private method"),n);var oh=(e,t,n,r)=>({set _(a){ee(e,t,a,n)},get _(){return R(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var lh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var KP={exports:{}},Ey={};/**
 * @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 Sz=Symbol.for("react.transitional.element"),wz=Symbol.for("react.fragment");function GP(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:Sz,type:e,key:r,ref:t!==void 0?t:null,props:n}}Ey.Fragment=wz;Ey.jsx=GP;Ey.jsxs=GP;KP.exports=Ey;var u=KP.exports,YP={exports:{}},xe={};/**
 * @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 dS=Symbol.for("react.transitional.element"),jz=Symbol.for("react.portal"),Az=Symbol.for("react.fragment"),Oz=Symbol.for("react.strict_mode"),Ez=Symbol.for("react.profiler"),Tz=Symbol.for("react.consumer"),Nz=Symbol.for("react.context"),Cz=Symbol.for("react.forward_ref"),_z=Symbol.for("react.suspense"),Pz=Symbol.for("react.memo"),WP=Symbol.for("react.lazy"),Mz=Symbol.for("react.activity"),RA=Symbol.iterator;function Rz(e){return e===null||typeof e!="object"?null:(e=RA&&e[RA]||e["@@iterator"],typeof e=="function"?e:null)}var XP={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},QP=Object.assign,ZP={};function Nc(e,t,n){this.props=e,this.context=t,this.refs=ZP,this.updater=n||XP}Nc.prototype.isReactComponent={};Nc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Nc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function JP(){}JP.prototype=Nc.prototype;function hS(e,t,n){this.props=e,this.context=t,this.refs=ZP,this.updater=n||XP}var pS=hS.prototype=new JP;pS.constructor=hS;QP(pS,Nc.prototype);pS.isPureReactComponent=!0;var DA=Array.isArray;function Qb(){}var it={H:null,A:null,T:null,S:null},eM=Object.prototype.hasOwnProperty;function mS(e,t,n){var r=n.ref;return{$$typeof:dS,type:e,key:t,ref:r!==void 0?r:null,props:n}}function Dz(e,t){return mS(e.type,t,e.props)}function yS(e){return typeof e=="object"&&e!==null&&e.$$typeof===dS}function kz(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var kA=/\/+/g;function sv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?kz(""+e.key):t.toString(36)}function $z(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(Qb,Qb):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Vo(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case dS:case jz:s=!0;break;case WP:return s=e._init,Vo(s(e._payload),t,n,r,a)}}if(s)return a=a(e),s=r===""?"."+sv(e,0):r,DA(a)?(n="",s!=null&&(n=s.replace(kA,"$&/")+"/"),Vo(a,t,n,"",function(c){return c})):a!=null&&(yS(a)&&(a=Dz(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(kA,"$&/")+"/")+s)),t.push(a)),1;s=0;var o=r===""?".":r+":";if(DA(e))for(var l=0;l<e.length;l++)r=e[l],i=o+sv(r,l),s+=Vo(r,t,n,i,a);else if(l=Rz(e),typeof l=="function")for(e=l.call(e),l=0;!(r=e.next()).done;)r=r.value,i=o+sv(r,l++),s+=Vo(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Vo($z(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function ch(e,t,n){if(e==null)return e;var r=[],a=0;return Vo(e,r,"","",function(i){return t.call(n,i,a++)}),r}function Lz(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var $A=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},zz={map:ch,forEach:function(e,t,n){ch(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ch(e,function(){t++}),t},toArray:function(e){return ch(e,function(t){return t})||[]},only:function(e){if(!yS(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};xe.Activity=Mz;xe.Children=zz;xe.Component=Nc;xe.Fragment=Az;xe.Profiler=Ez;xe.PureComponent=hS;xe.StrictMode=Oz;xe.Suspense=_z;xe.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=it;xe.__COMPILER_RUNTIME={__proto__:null,c:function(e){return it.H.useMemoCache(e)}};xe.cache=function(e){return function(){return e.apply(null,arguments)}};xe.cacheSignal=function(){return null};xe.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=QP({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!eM.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var s=Array(i),o=0;o<i;o++)s[o]=arguments[o+2];r.children=s}return mS(e.type,a,r)};xe.createContext=function(e){return e={$$typeof:Nz,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:Tz,_context:e},e};xe.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)eM.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];a.children=o}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)a[r]===void 0&&(a[r]=s[r]);return mS(e,i,a)};xe.createRef=function(){return{current:null}};xe.forwardRef=function(e){return{$$typeof:Cz,render:e}};xe.isValidElement=yS;xe.lazy=function(e){return{$$typeof:WP,_payload:{_status:-1,_result:e},_init:Lz}};xe.memo=function(e,t){return{$$typeof:Pz,type:e,compare:t===void 0?null:t}};xe.startTransition=function(e){var t=it.T,n={};it.T=n;try{var r=e(),a=it.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(Qb,$A)}catch(i){$A(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),it.T=t}};xe.unstable_useCacheRefresh=function(){return it.H.useCacheRefresh()};xe.use=function(e){return it.H.use(e)};xe.useActionState=function(e,t,n){return it.H.useActionState(e,t,n)};xe.useCallback=function(e,t){return it.H.useCallback(e,t)};xe.useContext=function(e){return it.H.useContext(e)};xe.useDebugValue=function(){};xe.useDeferredValue=function(e,t){return it.H.useDeferredValue(e,t)};xe.useEffect=function(e,t){return it.H.useEffect(e,t)};xe.useEffectEvent=function(e){return it.H.useEffectEvent(e)};xe.useId=function(){return it.H.useId()};xe.useImperativeHandle=function(e,t,n){return it.H.useImperativeHandle(e,t,n)};xe.useInsertionEffect=function(e,t){return it.H.useInsertionEffect(e,t)};xe.useLayoutEffect=function(e,t){return it.H.useLayoutEffect(e,t)};xe.useMemo=function(e,t){return it.H.useMemo(e,t)};xe.useOptimistic=function(e,t){return it.H.useOptimistic(e,t)};xe.useReducer=function(e,t,n){return it.H.useReducer(e,t,n)};xe.useRef=function(e){return it.H.useRef(e)};xe.useState=function(e){return it.H.useState(e)};xe.useSyncExternalStore=function(e,t,n){return it.H.useSyncExternalStore(e,t,n)};xe.useTransition=function(){return it.H.useTransition()};xe.version="19.2.7";YP.exports=xe;var A=YP.exports;const _=Ie(A);var tM={exports:{}},Ty={},nM={exports:{}},rM={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(P,$){var I=P.length;P.push($);e:for(;0<I;){var F=I-1>>>1,H=P[F];if(0<a(H,$))P[F]=$,P[I]=H,I=F;else break e}}function n(P){return P.length===0?null:P[0]}function r(P){if(P.length===0)return null;var $=P[0],I=P.pop();if(I!==$){P[0]=I;e:for(var F=0,H=P.length,W=H>>>1;F<W;){var K=2*(F+1)-1,te=P[K],Z=K+1,ye=P[Z];if(0>a(te,I))Z<H&&0>a(ye,te)?(P[F]=ye,P[Z]=I,F=Z):(P[F]=te,P[K]=I,F=K);else if(Z<H&&0>a(ye,I))P[F]=ye,P[Z]=I,F=Z;else break e}}return $}function a(P,$){var I=P.sortIndex-$.sortIndex;return I!==0?I:P.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],c=[],d=1,f=null,h=3,p=!1,m=!1,g=!1,v=!1,y=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w(P){for(var $=n(c);$!==null;){if($.callback===null)r(c);else if($.startTime<=P)r(c),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(c)}}function S(P){if(g=!1,w(P),!m)if(n(l)!==null)m=!0,j||(j=!0,C());else{var $=n(c);$!==null&&k(S,$.startTime-P)}}var j=!1,O=-1,E=5,T=-1;function N(){return v?!0:!(e.unstable_now()-T<E)}function M(){if(v=!1,j){var P=e.unstable_now();T=P;var $=!0;try{e:{m=!1,g&&(g=!1,b(O),O=-1),p=!0;var I=h;try{t:{for(w(P),f=n(l);f!==null&&!(f.expirationTime>P&&N());){var F=f.callback;if(typeof F=="function"){f.callback=null,h=f.priorityLevel;var H=F(f.expirationTime<=P);if(P=e.unstable_now(),typeof H=="function"){f.callback=H,w(P),$=!0;break t}f===n(l)&&r(l),w(P)}else r(l);f=n(l)}if(f!==null)$=!0;else{var W=n(c);W!==null&&k(S,W.startTime-P),$=!1}}break e}finally{f=null,h=I,p=!1}$=void 0}}finally{$?C():j=!1}}}var C;if(typeof x=="function")C=function(){x(M)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,D=L.port2;L.port1.onmessage=M,C=function(){D.postMessage(null)}}else C=function(){y(M,0)};function k(P,$){O=y(function(){P(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(P){P.callback=null},e.unstable_forceFrameRate=function(P){0>P||125<P?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<P?Math.floor(1e3/P):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(P){switch(h){case 1:case 2:case 3:var $=3;break;default:$=h}var I=h;h=$;try{return P()}finally{h=I}},e.unstable_requestPaint=function(){v=!0},e.unstable_runWithPriority=function(P,$){switch(P){case 1:case 2:case 3:case 4:case 5:break;default:P=3}var I=h;h=P;try{return $()}finally{h=I}},e.unstable_scheduleCallback=function(P,$,I){var F=e.unstable_now();switch(typeof I=="object"&&I!==null?(I=I.delay,I=typeof I=="number"&&0<I?F+I:F):I=F,P){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=I+H,P={id:d++,callback:$,priorityLevel:P,startTime:I,expirationTime:H,sortIndex:-1},I>F?(P.sortIndex=I,t(c,P),n(l)===null&&P===n(c)&&(g?(b(O),O=-1):g=!0,k(S,I-F))):(P.sortIndex=H,t(l,P),m||p||(m=!0,j||(j=!0,C()))),P},e.unstable_shouldYield=N,e.unstable_wrapCallback=function(P){var $=h;return function(){var I=h;h=$;try{return P.apply(this,arguments)}finally{h=I}}}})(rM);nM.exports=rM;var Iz=nM.exports,aM={exports:{}},xn={};/**
 * @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 Bz=A;function iM(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function fi(){}var pn={d:{f:fi,r:function(){throw Error(iM(522))},D:fi,C:fi,L:fi,m:fi,X:fi,S:fi,M:fi},p:0,findDOMNode:null},Uz=Symbol.for("react.portal");function Fz(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Uz,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Lu=Bz.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Ny(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}xn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=pn;xn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(iM(299));return Fz(e,t,null,n)};xn.flushSync=function(e){var t=Lu.T,n=pn.p;try{if(Lu.T=null,pn.p=2,e)return e()}finally{Lu.T=t,pn.p=n,pn.d.f()}};xn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,pn.d.C(e,t))};xn.prefetchDNS=function(e){typeof e=="string"&&pn.d.D(e)};xn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=Ny(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?pn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&pn.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};xn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=Ny(t.as,t.crossOrigin);pn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&pn.d.M(e)};xn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=Ny(n,t.crossOrigin);pn.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};xn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=Ny(t.as,t.crossOrigin);pn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else pn.d.m(e)};xn.requestFormReset=function(e){pn.d.r(e)};xn.unstable_batchedUpdates=function(e,t){return e(t)};xn.useFormState=function(e,t,n){return Lu.H.useFormState(e,t,n)};xn.useFormStatus=function(){return Lu.H.useHostTransitionStatus()};xn.version="19.2.7";function sM(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sM)}catch(e){console.error(e)}}sM(),aM.exports=xn;var Vz=aM.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 Lt=Iz,oM=A,Hz=Vz;function U(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function lM(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Od(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function cM(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function uM(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function LA(e){if(Od(e)!==e)throw Error(U(188))}function qz(e){var t=e.alternate;if(!t){if(t=Od(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return LA(a),e;if(i===r)return LA(a),t;i=i.sibling}throw Error(U(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s){for(o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function fM(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=fM(e),t!==null)return t;e=e.sibling}return null}var st=Object.assign,Kz=Symbol.for("react.element"),uh=Symbol.for("react.transitional.element"),Eu=Symbol.for("react.portal"),Ko=Symbol.for("react.fragment"),dM=Symbol.for("react.strict_mode"),Zb=Symbol.for("react.profiler"),hM=Symbol.for("react.consumer"),Ma=Symbol.for("react.context"),gS=Symbol.for("react.forward_ref"),Jb=Symbol.for("react.suspense"),e0=Symbol.for("react.suspense_list"),vS=Symbol.for("react.memo"),yi=Symbol.for("react.lazy"),t0=Symbol.for("react.activity"),Gz=Symbol.for("react.memo_cache_sentinel"),zA=Symbol.iterator;function ru(e){return e===null||typeof e!="object"?null:(e=zA&&e[zA]||e["@@iterator"],typeof e=="function"?e:null)}var Yz=Symbol.for("react.client.reference");function n0(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===Yz?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ko:return"Fragment";case Zb:return"Profiler";case dM:return"StrictMode";case Jb:return"Suspense";case e0:return"SuspenseList";case t0:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Eu:return"Portal";case Ma:return e.displayName||"Context";case hM:return(e._context.displayName||"Context")+".Consumer";case gS:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case vS:return t=e.displayName||null,t!==null?t:n0(e.type)||"Memo";case yi:t=e._payload,e=e._init;try{return n0(e(t))}catch{}}return null}var Tu=Array.isArray,he=oM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=Hz.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qs={pending:!1,data:null,method:null,action:null},r0=[],Go=-1;function ha(e){return{current:e}}function Kt(e){0>Go||(e.current=r0[Go],r0[Go]=null,Go--)}function Je(e,t){Go++,r0[Go]=e.current,e.current=t}var ia=ha(null),hf=ha(null),Ii=ha(null),Np=ha(null);function Cp(e,t){switch(Je(Ii,t),Je(hf,e),Je(ia,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?H2(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=H2(t),e=RD(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Kt(ia),Je(ia,e)}function Il(){Kt(ia),Kt(hf),Kt(Ii)}function a0(e){e.memoizedState!==null&&Je(Np,e);var t=ia.current,n=RD(t,e.type);t!==n&&(Je(hf,e),Je(ia,n))}function _p(e){hf.current===e&&(Kt(ia),Kt(hf)),Np.current===e&&(Kt(Np),Af._currentValue=qs)}var ov,IA;function gs(e){if(ov===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);ov=t&&t[1]||"",IA=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ov+e+IA}var lv=!1;function cv(e,t){if(!e||lv)return"";lv=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var f=function(){throw Error()};if(Object.defineProperty(f.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(f,[])}catch(p){var h=p}Reflect.construct(e,[],f)}else{try{f.call()}catch(p){h=p}e.call(f.prototype)}}else{try{throw Error()}catch(p){h=p}(f=e())&&typeof f.catch=="function"&&f.catch(function(){})}}catch(p){if(p&&h&&typeof p.stack=="string")return[p.stack,h.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),s=i[0],o=i[1];if(s&&o){var l=s.split(`
`),c=o.split(`
`);for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(r!==1||a!==1)do if(r--,a--,0>a||l[r]!==c[a]){var d=`
`+l[r].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),d}while(1<=r&&0<=a);break}}}finally{lv=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?gs(n):""}function Wz(e,t){switch(e.tag){case 26:case 27:case 5:return gs(e.type);case 16:return gs("Lazy");case 13:return e.child!==t&&t!==null?gs("Suspense Fallback"):gs("Suspense");case 19:return gs("SuspenseList");case 0:case 15:return cv(e.type,!1);case 11:return cv(e.type.render,!1);case 1:return cv(e.type,!0);case 31:return gs("Activity");default:return""}}function BA(e){try{var t="",n=null;do t+=Wz(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var i0=Object.prototype.hasOwnProperty,bS=Lt.unstable_scheduleCallback,uv=Lt.unstable_cancelCallback,Xz=Lt.unstable_shouldYield,Qz=Lt.unstable_requestPaint,Gn=Lt.unstable_now,Zz=Lt.unstable_getCurrentPriorityLevel,pM=Lt.unstable_ImmediatePriority,mM=Lt.unstable_UserBlockingPriority,Pp=Lt.unstable_NormalPriority,Jz=Lt.unstable_LowPriority,yM=Lt.unstable_IdlePriority,eI=Lt.log,tI=Lt.unstable_setDisableYieldValue,Ed=null,Yn=null;function Mi(e){if(typeof eI=="function"&&tI(e),Yn&&typeof Yn.setStrictMode=="function")try{Yn.setStrictMode(Ed,e)}catch{}}var Wn=Math.clz32?Math.clz32:aI,nI=Math.log,rI=Math.LN2;function aI(e){return e>>>=0,e===0?32:31-(nI(e)/rI|0)|0}var fh=256,dh=262144,hh=4194304;function vs(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Cy(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~i,r!==0?a=vs(r):(s&=o,s!==0?a=vs(s):n||(n=o&~e,n!==0&&(a=vs(n))))):(o=r&~i,o!==0?a=vs(o):s!==0?a=vs(s):n||(n=r&~e,n!==0&&(a=vs(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function Td(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function iI(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function gM(){var e=hh;return hh<<=1,!(hh&62914560)&&(hh=4194304),e}function fv(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Nd(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function sI(e,t,n,r,a,i){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=s&~n;0<n;){var d=31-Wn(n),f=1<<d;o[d]=0,l[d]=-1;var h=c[d];if(h!==null)for(c[d]=null,d=0;d<h.length;d++){var p=h[d];p!==null&&(p.lane&=-536870913)}n&=~f}r!==0&&vM(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(s&~t))}function vM(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Wn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function bM(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Wn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function xM(e,t){var n=t&-t;return n=n&42?1:xS(n),n&(e.suspendedLanes|t)?0:n}function xS(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function SS(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function SM(){var e=De.p;return e!==0?e:(e=window.event,e===void 0?32:HD(e.type))}function UA(e,t){var n=De.p;try{return De.p=e,t()}finally{De.p=n}}var rs=Math.random().toString(36).slice(2),Zt="__reactFiber$"+rs,Mn="__reactProps$"+rs,Cc="__reactContainer$"+rs,s0="__reactEvents$"+rs,oI="__reactListeners$"+rs,lI="__reactHandles$"+rs,FA="__reactResources$"+rs,Cd="__reactMarker$"+rs;function wS(e){delete e[Zt],delete e[Mn],delete e[s0],delete e[oI],delete e[lI]}function Yo(e){var t=e[Zt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Cc]||n[Zt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=W2(e);e!==null;){if(n=e[Zt])return n;e=W2(e)}return t}e=n,n=e.parentNode}return null}function _c(e){if(e=e[Zt]||e[Cc]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Nu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function pl(e){var t=e[FA];return t||(t=e[FA]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ht(e){e[Cd]=!0}var wM=new Set,jM={};function vo(e,t){Bl(e,t),Bl(e+"Capture",t)}function Bl(e,t){for(jM[e]=t,e=0;e<t.length;e++)wM.add(t[e])}var cI=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]*$"),VA={},HA={};function uI(e){return i0.call(HA,e)?!0:i0.call(VA,e)?!1:cI.test(e)?HA[e]=!0:(VA[e]=!0,!1)}function ep(e,t,n){if(uI(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function ph(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ba(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function ur(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function AM(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fI(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function o0(e){if(!e._valueTracker){var t=AM(e)?"checked":"value";e._valueTracker=fI(e,t,""+e[t])}}function OM(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=AM(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Mp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dI=/[\n"\\]/g;function hr(e){return e.replace(dI,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function l0(e,t,n,r,a,i,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+ur(t)):e.value!==""+ur(t)&&(e.value=""+ur(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?c0(e,s,ur(t)):n!=null?c0(e,s,ur(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+ur(o):e.removeAttribute("name")}function EM(e,t,n,r,a,i,s,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){o0(e);return}n=n!=null?""+ur(n):"",t=t!=null?""+ur(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),o0(e)}function c0(e,t,n){t==="number"&&Mp(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function ml(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+ur(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function TM(e,t,n){if(t!=null&&(t=""+ur(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+ur(n):""}function NM(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(U(92));if(Tu(r)){if(1<r.length)throw Error(U(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=ur(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),o0(e)}function Ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var hI=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 qA(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||hI.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function CM(e,t,n){if(t!=null&&typeof t!="object")throw Error(U(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&qA(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&qA(e,i,t[i])}function jS(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pI=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"]]),mI=/^[\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 tp(e){return mI.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ra(){}var u0=null;function AS(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Wo=null,yl=null;function KA(e){var t=_c(e);if(t&&(e=t.stateNode)){var n=e[Mn]||null;e:switch(e=t.stateNode,t.type){case"input":if(l0(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+hr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Mn]||null;if(!a)throw Error(U(90));l0(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&OM(r)}break e;case"textarea":TM(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&ml(e,!!n.multiple,t,!1)}}}var dv=!1;function _M(e,t,n){if(dv)return e(t,n);dv=!0;try{var r=e(t);return r}finally{if(dv=!1,(Wo!==null||yl!==null)&&(Uy(),Wo&&(t=Wo,e=yl,yl=Wo=null,KA(t),e)))for(t=0;t<e.length;t++)KA(e[t])}}function pf(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Mn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(U(231,t,typeof n));return n}var Ga=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),f0=!1;if(Ga)try{var au={};Object.defineProperty(au,"passive",{get:function(){f0=!0}}),window.addEventListener("test",au,au),window.removeEventListener("test",au,au)}catch{f0=!1}var Ri=null,OS=null,np=null;function PM(){if(np)return np;var e,t=OS,n=t.length,r,a="value"in Ri?Ri.value:Ri.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===a[i-r];r++);return np=a.slice(e,1<r?1-r:void 0)}function rp(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function mh(){return!0}function GA(){return!1}function Rn(e){function t(n,r,a,i,s){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?mh:GA,this.isPropagationStopped=GA,this}return st(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=mh)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=mh)},persist:function(){},isPersistent:mh}),t}var bo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},_y=Rn(bo),_d=st({},bo,{view:0,detail:0}),yI=Rn(_d),hv,pv,iu,Py=st({},_d,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ES,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==iu&&(iu&&e.type==="mousemove"?(hv=e.screenX-iu.screenX,pv=e.screenY-iu.screenY):pv=hv=0,iu=e),hv)},movementY:function(e){return"movementY"in e?e.movementY:pv}}),YA=Rn(Py),gI=st({},Py,{dataTransfer:0}),vI=Rn(gI),bI=st({},_d,{relatedTarget:0}),mv=Rn(bI),xI=st({},bo,{animationName:0,elapsedTime:0,pseudoElement:0}),SI=Rn(xI),wI=st({},bo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jI=Rn(wI),AI=st({},bo,{data:0}),WA=Rn(AI),OI={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},EI={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"},TI={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function NI(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=TI[e])?!!t[e]:!1}function ES(){return NI}var CI=st({},_d,{key:function(e){if(e.key){var t=OI[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=rp(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?EI[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ES,charCode:function(e){return e.type==="keypress"?rp(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?rp(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),_I=Rn(CI),PI=st({},Py,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),XA=Rn(PI),MI=st({},_d,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ES}),RI=Rn(MI),DI=st({},bo,{propertyName:0,elapsedTime:0,pseudoElement:0}),kI=Rn(DI),$I=st({},Py,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),LI=Rn($I),zI=st({},bo,{newState:0,oldState:0}),II=Rn(zI),BI=[9,13,27,32],TS=Ga&&"CompositionEvent"in window,zu=null;Ga&&"documentMode"in document&&(zu=document.documentMode);var UI=Ga&&"TextEvent"in window&&!zu,MM=Ga&&(!TS||zu&&8<zu&&11>=zu),QA=" ",ZA=!1;function RM(e,t){switch(e){case"keyup":return BI.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function DM(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Xo=!1;function FI(e,t){switch(e){case"compositionend":return DM(t);case"keypress":return t.which!==32?null:(ZA=!0,QA);case"textInput":return e=t.data,e===QA&&ZA?null:e;default:return null}}function VI(e,t){if(Xo)return e==="compositionend"||!TS&&RM(e,t)?(e=PM(),np=OS=Ri=null,Xo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return MM&&t.locale!=="ko"?null:t.data;default:return null}}var HI={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 JA(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!HI[e.type]:t==="textarea"}function kM(e,t,n,r){Wo?yl?yl.push(r):yl=[r]:Wo=r,t=Xp(t,"onChange"),0<t.length&&(n=new _y("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Iu=null,mf=null;function qI(e){_D(e,0)}function My(e){var t=Nu(e);if(OM(t))return e}function e2(e,t){if(e==="change")return t}var $M=!1;if(Ga){var yv;if(Ga){var gv="oninput"in document;if(!gv){var t2=document.createElement("div");t2.setAttribute("oninput","return;"),gv=typeof t2.oninput=="function"}yv=gv}else yv=!1;$M=yv&&(!document.documentMode||9<document.documentMode)}function n2(){Iu&&(Iu.detachEvent("onpropertychange",LM),mf=Iu=null)}function LM(e){if(e.propertyName==="value"&&My(mf)){var t=[];kM(t,mf,e,AS(e)),_M(qI,t)}}function KI(e,t,n){e==="focusin"?(n2(),Iu=t,mf=n,Iu.attachEvent("onpropertychange",LM)):e==="focusout"&&n2()}function GI(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return My(mf)}function YI(e,t){if(e==="click")return My(t)}function WI(e,t){if(e==="input"||e==="change")return My(t)}function XI(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Jn=typeof Object.is=="function"?Object.is:XI;function yf(e,t){if(Jn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!i0.call(t,a)||!Jn(e[a],t[a]))return!1}return!0}function r2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function a2(e,t){var n=r2(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=r2(n)}}function zM(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?zM(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function IM(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Mp(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Mp(e.document)}return t}function NS(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var QI=Ga&&"documentMode"in document&&11>=document.documentMode,Qo=null,d0=null,Bu=null,h0=!1;function i2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;h0||Qo==null||Qo!==Mp(r)||(r=Qo,"selectionStart"in r&&NS(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Bu&&yf(Bu,r)||(Bu=r,r=Xp(d0,"onSelect"),0<r.length&&(t=new _y("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Qo)))}function ds(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Zo={animationend:ds("Animation","AnimationEnd"),animationiteration:ds("Animation","AnimationIteration"),animationstart:ds("Animation","AnimationStart"),transitionrun:ds("Transition","TransitionRun"),transitionstart:ds("Transition","TransitionStart"),transitioncancel:ds("Transition","TransitionCancel"),transitionend:ds("Transition","TransitionEnd")},vv={},BM={};Ga&&(BM=document.createElement("div").style,"AnimationEvent"in window||(delete Zo.animationend.animation,delete Zo.animationiteration.animation,delete Zo.animationstart.animation),"TransitionEvent"in window||delete Zo.transitionend.transition);function xo(e){if(vv[e])return vv[e];if(!Zo[e])return e;var t=Zo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in BM)return vv[e]=t[n];return e}var UM=xo("animationend"),FM=xo("animationiteration"),VM=xo("animationstart"),ZI=xo("transitionrun"),JI=xo("transitionstart"),e8=xo("transitioncancel"),HM=xo("transitionend"),qM=new Map,p0="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(" ");p0.push("scrollEnd");function Fr(e,t){qM.set(e,t),vo(t,[e])}var Rp=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},cr=[],Jo=0,CS=0;function Ry(){for(var e=Jo,t=CS=Jo=0;t<e;){var n=cr[t];cr[t++]=null;var r=cr[t];cr[t++]=null;var a=cr[t];cr[t++]=null;var i=cr[t];if(cr[t++]=null,r!==null&&a!==null){var s=r.pending;s===null?a.next=a:(a.next=s.next,s.next=a),r.pending=a}i!==0&&KM(n,a,i)}}function Dy(e,t,n,r){cr[Jo++]=e,cr[Jo++]=t,cr[Jo++]=n,cr[Jo++]=r,CS|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function _S(e,t,n,r){return Dy(e,t,n,r),Dp(e)}function So(e,t){return Dy(e,null,null,t),Dp(e)}function KM(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,r=i.alternate,r!==null&&(r.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Wn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function Dp(e){if(50<Wu)throw Wu=0,k0=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var el={};function t8(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Hn(e,t,n,r){return new t8(e,t,n,r)}function PS(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ia(e,t){var n=e.alternate;return n===null?(n=Hn(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function GM(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ap(e,t,n,r,a,i){var s=0;if(r=e,typeof e=="function")PS(e)&&(s=1);else if(typeof e=="string")s=sB(e,n,ia.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case t0:return e=Hn(31,n,t,a),e.elementType=t0,e.lanes=i,e;case Ko:return Ks(n.children,a,i,t);case dM:s=8,a|=24;break;case Zb:return e=Hn(12,n,t,a|2),e.elementType=Zb,e.lanes=i,e;case Jb:return e=Hn(13,n,t,a),e.elementType=Jb,e.lanes=i,e;case e0:return e=Hn(19,n,t,a),e.elementType=e0,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ma:s=10;break e;case hM:s=9;break e;case gS:s=11;break e;case vS:s=14;break e;case yi:s=16,r=null;break e}s=29,n=Error(U(130,e===null?"null":typeof e,"")),r=null}return t=Hn(s,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function Ks(e,t,n,r){return e=Hn(7,e,r,t),e.lanes=n,e}function bv(e,t,n){return e=Hn(6,e,null,t),e.lanes=n,e}function YM(e){var t=Hn(18,null,null,0);return t.stateNode=e,t}function xv(e,t,n){return t=Hn(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var s2=new WeakMap;function pr(e,t){if(typeof e=="object"&&e!==null){var n=s2.get(e);return n!==void 0?n:(t={value:e,source:t,stack:BA(t)},s2.set(e,t),t)}return{value:e,source:t,stack:BA(t)}}var tl=[],nl=0,kp=null,gf=0,fr=[],dr=0,Zi=null,Qr=1,Zr="";function Na(e,t){tl[nl++]=gf,tl[nl++]=kp,kp=e,gf=t}function WM(e,t,n){fr[dr++]=Qr,fr[dr++]=Zr,fr[dr++]=Zi,Zi=e;var r=Qr;e=Zr;var a=32-Wn(r)-1;r&=~(1<<a),n+=1;var i=32-Wn(t)+a;if(30<i){var s=a-a%5;i=(r&(1<<s)-1).toString(32),r>>=s,a-=s,Qr=1<<32-Wn(t)+a|n<<a|r,Zr=i+e}else Qr=1<<i|n<<a|r,Zr=e}function MS(e){e.return!==null&&(Na(e,1),WM(e,1,0))}function RS(e){for(;e===kp;)kp=tl[--nl],tl[nl]=null,gf=tl[--nl],tl[nl]=null;for(;e===Zi;)Zi=fr[--dr],fr[dr]=null,Zr=fr[--dr],fr[dr]=null,Qr=fr[--dr],fr[dr]=null}function XM(e,t){fr[dr++]=Qr,fr[dr++]=Zr,fr[dr++]=Zi,Qr=t.id,Zr=t.overflow,Zi=e}var Jt=null,at=null,Ce=!1,Bi=null,mr=!1,m0=Error(U(519));function Ji(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw vf(pr(t,e)),m0}function o2(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Zt]=e,t[Mn]=r,n){case"dialog":we("cancel",t),we("close",t);break;case"iframe":case"object":case"embed":we("load",t);break;case"video":case"audio":for(n=0;n<wf.length;n++)we(wf[n],t);break;case"source":we("error",t);break;case"img":case"image":case"link":we("error",t),we("load",t);break;case"details":we("toggle",t);break;case"input":we("invalid",t),EM(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":we("invalid",t);break;case"textarea":we("invalid",t),NM(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||MD(t.textContent,n)?(r.popover!=null&&(we("beforetoggle",t),we("toggle",t)),r.onScroll!=null&&we("scroll",t),r.onScrollEnd!=null&&we("scrollend",t),r.onClick!=null&&(t.onclick=Ra),t=!0):t=!1,t||Ji(e,!0)}function l2(e){for(Jt=e.return;Jt;)switch(Jt.tag){case 5:case 31:case 13:mr=!1;return;case 27:case 3:mr=!0;return;default:Jt=Jt.return}}function Ro(e){if(e!==Jt)return!1;if(!Ce)return l2(e),Ce=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||B0(e.type,e.memoizedProps)),n=!n),n&&at&&Ji(e),l2(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));at=Y2(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));at=Y2(e)}else t===27?(t=at,as(e.type)?(e=H0,H0=null,at=e):at=t):at=Jt?br(e.stateNode.nextSibling):null;return!0}function to(){at=Jt=null,Ce=!1}function Sv(){var e=Bi;return e!==null&&(Tn===null?Tn=e:Tn.push.apply(Tn,e),Bi=null),e}function vf(e){Bi===null?Bi=[e]:Bi.push(e)}var y0=ha(null),wo=null,Da=null;function bi(e,t,n){Je(y0,t._currentValue),t._currentValue=n}function Ba(e){e._currentValue=y0.current,Kt(y0)}function g0(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function v0(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var s=a.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=a;for(var l=0;l<t.length;l++)if(o.context===t[l]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),g0(i.return,n,e),r||(s=null);break e}i=o.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(U(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),g0(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Pc(e,t,n,r){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(U(387));if(s=s.memoizedProps,s!==null){var o=a.type;Jn(a.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(a===Np.current){if(s=a.alternate,s===null)throw Error(U(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(Af):e=[Af])}a=a.return}e!==null&&v0(t,e,n,r),t.flags|=262144}function $p(e){for(e=e.firstContext;e!==null;){if(!Jn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function no(e){wo=e,Da=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function tn(e){return QM(wo,e)}function yh(e,t){return wo===null&&no(e),QM(e,t)}function QM(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Da===null){if(e===null)throw Error(U(308));Da=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Da=Da.next=t;return n}var n8=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},r8=Lt.unstable_scheduleCallback,a8=Lt.unstable_NormalPriority,Nt={$$typeof:Ma,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function DS(){return{controller:new n8,data:new Map,refCount:0}}function Pd(e){e.refCount--,e.refCount===0&&r8(a8,function(){e.controller.abort()})}var Uu=null,b0=0,Fl=0,gl=null;function i8(e,t){if(Uu===null){var n=Uu=[];b0=0,Fl=iw(),gl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return b0++,t.then(c2,c2),t}function c2(){if(--b0===0&&Uu!==null){gl!==null&&(gl.status="fulfilled");var e=Uu;Uu=null,Fl=0,gl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function s8(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var u2=he.S;he.S=function(e,t){fD=Gn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&i8(e,t),u2!==null&&u2(e,t)};var Gs=ha(null);function kS(){var e=Gs.current;return e!==null?e:We.pooledCache}function ip(e,t){t===null?Je(Gs,Gs.current):Je(Gs,t.pool)}function ZM(){var e=kS();return e===null?null:{parent:Nt._currentValue,pool:e}}var Mc=Error(U(460)),$S=Error(U(474)),ky=Error(U(542)),Lp={then:function(){}};function f2(e){return e=e.status,e==="fulfilled"||e==="rejected"}function JM(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ra,Ra),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,h2(e),e;default:if(typeof t.status=="string")t.then(Ra,Ra);else{if(e=We,e!==null&&100<e.shellSuspendCounter)throw Error(U(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,h2(e),e}throw Ys=t,Mc}}function bs(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Ys=n,Mc):n}}var Ys=null;function d2(){if(Ys===null)throw Error(U(459));var e=Ys;return Ys=null,e}function h2(e){if(e===Mc||e===ky)throw Error(U(483))}var vl=null,bf=0;function gh(e){var t=bf;return bf+=1,vl===null&&(vl=[]),JM(vl,e,t)}function su(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function vh(e,t){throw t.$$typeof===Kz?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function eR(e){function t(y,b){if(e){var x=y.deletions;x===null?(y.deletions=[b],y.flags|=16):x.push(b)}}function n(y,b){if(!e)return null;for(;b!==null;)t(y,b),b=b.sibling;return null}function r(y){for(var b=new Map;y!==null;)y.key!==null?b.set(y.key,y):b.set(y.index,y),y=y.sibling;return b}function a(y,b){return y=Ia(y,b),y.index=0,y.sibling=null,y}function i(y,b,x){return y.index=x,e?(x=y.alternate,x!==null?(x=x.index,x<b?(y.flags|=67108866,b):x):(y.flags|=67108866,b)):(y.flags|=1048576,b)}function s(y){return e&&y.alternate===null&&(y.flags|=67108866),y}function o(y,b,x,w){return b===null||b.tag!==6?(b=bv(x,y.mode,w),b.return=y,b):(b=a(b,x),b.return=y,b)}function l(y,b,x,w){var S=x.type;return S===Ko?d(y,b,x.props.children,w,x.key):b!==null&&(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===yi&&bs(S)===b.type)?(b=a(b,x.props),su(b,x),b.return=y,b):(b=ap(x.type,x.key,x.props,null,y.mode,w),su(b,x),b.return=y,b)}function c(y,b,x,w){return b===null||b.tag!==4||b.stateNode.containerInfo!==x.containerInfo||b.stateNode.implementation!==x.implementation?(b=xv(x,y.mode,w),b.return=y,b):(b=a(b,x.children||[]),b.return=y,b)}function d(y,b,x,w,S){return b===null||b.tag!==7?(b=Ks(x,y.mode,w,S),b.return=y,b):(b=a(b,x),b.return=y,b)}function f(y,b,x){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=bv(""+b,y.mode,x),b.return=y,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case uh:return x=ap(b.type,b.key,b.props,null,y.mode,x),su(x,b),x.return=y,x;case Eu:return b=xv(b,y.mode,x),b.return=y,b;case yi:return b=bs(b),f(y,b,x)}if(Tu(b)||ru(b))return b=Ks(b,y.mode,x,null),b.return=y,b;if(typeof b.then=="function")return f(y,gh(b),x);if(b.$$typeof===Ma)return f(y,yh(y,b),x);vh(y,b)}return null}function h(y,b,x,w){var S=b!==null?b.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(y,b,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case uh:return x.key===S?l(y,b,x,w):null;case Eu:return x.key===S?c(y,b,x,w):null;case yi:return x=bs(x),h(y,b,x,w)}if(Tu(x)||ru(x))return S!==null?null:d(y,b,x,w,null);if(typeof x.then=="function")return h(y,b,gh(x),w);if(x.$$typeof===Ma)return h(y,b,yh(y,x),w);vh(y,x)}return null}function p(y,b,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return y=y.get(x)||null,o(b,y,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case uh:return y=y.get(w.key===null?x:w.key)||null,l(b,y,w,S);case Eu:return y=y.get(w.key===null?x:w.key)||null,c(b,y,w,S);case yi:return w=bs(w),p(y,b,x,w,S)}if(Tu(w)||ru(w))return y=y.get(x)||null,d(b,y,w,S,null);if(typeof w.then=="function")return p(y,b,x,gh(w),S);if(w.$$typeof===Ma)return p(y,b,x,yh(b,w),S);vh(b,w)}return null}function m(y,b,x,w){for(var S=null,j=null,O=b,E=b=0,T=null;O!==null&&E<x.length;E++){O.index>E?(T=O,O=null):T=O.sibling;var N=h(y,O,x[E],w);if(N===null){O===null&&(O=T);break}e&&O&&N.alternate===null&&t(y,O),b=i(N,b,E),j===null?S=N:j.sibling=N,j=N,O=T}if(E===x.length)return n(y,O),Ce&&Na(y,E),S;if(O===null){for(;E<x.length;E++)O=f(y,x[E],w),O!==null&&(b=i(O,b,E),j===null?S=O:j.sibling=O,j=O);return Ce&&Na(y,E),S}for(O=r(O);E<x.length;E++)T=p(O,y,E,x[E],w),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?E:T.key),b=i(T,b,E),j===null?S=T:j.sibling=T,j=T);return e&&O.forEach(function(M){return t(y,M)}),Ce&&Na(y,E),S}function g(y,b,x,w){if(x==null)throw Error(U(151));for(var S=null,j=null,O=b,E=b=0,T=null,N=x.next();O!==null&&!N.done;E++,N=x.next()){O.index>E?(T=O,O=null):T=O.sibling;var M=h(y,O,N.value,w);if(M===null){O===null&&(O=T);break}e&&O&&M.alternate===null&&t(y,O),b=i(M,b,E),j===null?S=M:j.sibling=M,j=M,O=T}if(N.done)return n(y,O),Ce&&Na(y,E),S;if(O===null){for(;!N.done;E++,N=x.next())N=f(y,N.value,w),N!==null&&(b=i(N,b,E),j===null?S=N:j.sibling=N,j=N);return Ce&&Na(y,E),S}for(O=r(O);!N.done;E++,N=x.next())N=p(O,y,E,N.value,w),N!==null&&(e&&N.alternate!==null&&O.delete(N.key===null?E:N.key),b=i(N,b,E),j===null?S=N:j.sibling=N,j=N);return e&&O.forEach(function(C){return t(y,C)}),Ce&&Na(y,E),S}function v(y,b,x,w){if(typeof x=="object"&&x!==null&&x.type===Ko&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case uh:e:{for(var S=x.key;b!==null;){if(b.key===S){if(S=x.type,S===Ko){if(b.tag===7){n(y,b.sibling),w=a(b,x.props.children),w.return=y,y=w;break e}}else if(b.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===yi&&bs(S)===b.type){n(y,b.sibling),w=a(b,x.props),su(w,x),w.return=y,y=w;break e}n(y,b);break}else t(y,b);b=b.sibling}x.type===Ko?(w=Ks(x.props.children,y.mode,w,x.key),w.return=y,y=w):(w=ap(x.type,x.key,x.props,null,y.mode,w),su(w,x),w.return=y,y=w)}return s(y);case Eu:e:{for(S=x.key;b!==null;){if(b.key===S)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(y,b.sibling),w=a(b,x.children||[]),w.return=y,y=w;break e}else{n(y,b);break}else t(y,b);b=b.sibling}w=xv(x,y.mode,w),w.return=y,y=w}return s(y);case yi:return x=bs(x),v(y,b,x,w)}if(Tu(x))return m(y,b,x,w);if(ru(x)){if(S=ru(x),typeof S!="function")throw Error(U(150));return x=S.call(x),g(y,b,x,w)}if(typeof x.then=="function")return v(y,b,gh(x),w);if(x.$$typeof===Ma)return v(y,b,yh(y,x),w);vh(y,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,b!==null&&b.tag===6?(n(y,b.sibling),w=a(b,x),w.return=y,y=w):(n(y,b),w=bv(x,y.mode,w),w.return=y,y=w),s(y)):n(y,b)}return function(y,b,x,w){try{bf=0;var S=v(y,b,x,w);return vl=null,S}catch(O){if(O===Mc||O===ky)throw O;var j=Hn(29,O,null,y.mode);return j.lanes=w,j.return=y,j}finally{}}}var ro=eR(!0),tR=eR(!1),gi=!1;function LS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function x0(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ui(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Fi(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Me&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=Dp(e),KM(e,null,n),t}return Dy(e,r,t,n),Dp(e)}function Fu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bM(e,n)}}function wv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var S0=!1;function Vu(){if(S0){var e=gl;if(e!==null)throw e}}function Hu(e,t,n,r){S0=!1;var a=e.updateQueue;gi=!1;var i=a.firstBaseUpdate,s=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var l=o,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==s&&(o===null?d.firstBaseUpdate=c:o.next=c,d.lastBaseUpdate=l))}if(i!==null){var f=a.baseState;s=0,d=c=l=null,o=i;do{var h=o.lane&-536870913,p=h!==o.lane;if(p?(Te&h)===h:(r&h)===h){h!==0&&h===Fl&&(S0=!0),d!==null&&(d=d.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var m=e,g=o;h=t;var v=n;switch(g.tag){case 1:if(m=g.payload,typeof m=="function"){f=m.call(v,f,h);break e}f=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,h=typeof m=="function"?m.call(v,f,h):m,h==null)break e;f=st({},f,h);break e;case 2:gi=!0}}h=o.callback,h!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[h]:p.push(h))}else p={lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(c=d=p,l=f):d=d.next=p,s|=h;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;p=o,o=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);d===null&&(l=f),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=d,i===null&&(a.shared.lanes=0),ts|=s,e.lanes=s,e.memoizedState=f}}function nR(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function rR(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)nR(n[e],t)}var Vl=ha(null),zp=ha(0);function p2(e,t){e=Qa,Je(zp,e),Je(Vl,t),Qa=e|t.baseLanes}function w0(){Je(zp,Qa),Je(Vl,Vl.current)}function zS(){Qa=zp.current,Kt(Vl),Kt(zp)}var er=ha(null),vr=null;function xi(e){var t=e.alternate;Je(St,St.current&1),Je(er,e),vr===null&&(t===null||Vl.current!==null||t.memoizedState!==null)&&(vr=e)}function j0(e){Je(St,St.current),Je(er,e),vr===null&&(vr=e)}function aR(e){e.tag===22?(Je(St,St.current),Je(er,e),vr===null&&(vr=e)):Si()}function Si(){Je(St,St.current),Je(er,er.current)}function Vn(e){Kt(er),vr===e&&(vr=null),Kt(St)}var St=ha(0);function Ip(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||F0(n)||V0(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ya=0,Se=null,Ge=null,Et=null,Bp=!1,bl=!1,ao=!1,Up=0,xf=0,xl=null,o8=0;function mt(){throw Error(U(321))}function IS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Jn(e[n],t[n]))return!1;return!0}function BS(e,t,n,r,a,i){return Ya=i,Se=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,he.H=e===null||e.memoizedState===null?kR:QS,ao=!1,i=n(r,a),ao=!1,bl&&(i=sR(t,n,r,a)),iR(e),i}function iR(e){he.H=Sf;var t=Ge!==null&&Ge.next!==null;if(Ya=0,Et=Ge=Se=null,Bp=!1,xf=0,xl=null,t)throw Error(U(300));e===null||_t||(e=e.dependencies,e!==null&&$p(e)&&(_t=!0))}function sR(e,t,n,r){Se=e;var a=0;do{if(bl&&(xl=null),xf=0,bl=!1,25<=a)throw Error(U(301));if(a+=1,Et=Ge=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}he.H=$R,i=t(n,r)}while(bl);return i}function l8(){var e=he.H,t=e.useState()[0];return t=typeof t.then=="function"?Md(t):t,e=e.useState()[0],(Ge!==null?Ge.memoizedState:null)!==e&&(Se.flags|=1024),t}function US(){var e=Up!==0;return Up=0,e}function FS(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function VS(e){if(Bp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Bp=!1}Ya=0,Et=Ge=Se=null,bl=!1,xf=Up=0,xl=null}function hn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Se.memoizedState=Et=e:Et=Et.next=e,Et}function jt(){if(Ge===null){var e=Se.alternate;e=e!==null?e.memoizedState:null}else e=Ge.next;var t=Et===null?Se.memoizedState:Et.next;if(t!==null)Et=t,Ge=e;else{if(e===null)throw Se.alternate===null?Error(U(467)):Error(U(310));Ge=e,e={memoizedState:Ge.memoizedState,baseState:Ge.baseState,baseQueue:Ge.baseQueue,queue:Ge.queue,next:null},Et===null?Se.memoizedState=Et=e:Et=Et.next=e}return Et}function $y(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Md(e){var t=xf;return xf+=1,xl===null&&(xl=[]),e=JM(xl,e,t),t=Se,(Et===null?t.memoizedState:Et.next)===null&&(t=t.alternate,he.H=t===null||t.memoizedState===null?kR:QS),e}function Ly(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Md(e);if(e.$$typeof===Ma)return tn(e)}throw Error(U(438,String(e)))}function HS(e){var t=null,n=Se.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Se.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=$y(),Se.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=Gz;return t.index++,n}function Wa(e,t){return typeof t=="function"?t(e):t}function sp(e){var t=jt();return qS(t,Ge,e)}function qS(e,t,n){var r=e.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var s=a.next;a.next=i.next,i.next=s}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var o=s=null,l=null,c=t,d=!1;do{var f=c.lane&-536870913;if(f!==c.lane?(Te&f)===f:(Ya&f)===f){var h=c.revertLane;if(h===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===Fl&&(d=!0);else if((Ya&h)===h){c=c.next,h===Fl&&(d=!0);continue}else f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(o=l=f,s=i):l=l.next=f,Se.lanes|=h,ts|=h;f=c.action,ao&&n(i,f),i=c.hasEagerState?c.eagerState:n(i,f)}else h={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(o=l=h,s=i):l=l.next=h,Se.lanes|=f,ts|=f;c=c.next}while(c!==null&&c!==t);if(l===null?s=i:l.next=o,!Jn(i,e.memoizedState)&&(_t=!0,d&&(n=gl,n!==null)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=l,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function jv(e){var t=jt(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do i=e(i,s.action),s=s.next;while(s!==a);Jn(i,t.memoizedState)||(_t=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function oR(e,t,n){var r=Se,a=jt(),i=Ce;if(i){if(n===void 0)throw Error(U(407));n=n()}else n=t();var s=!Jn((Ge||a).memoizedState,n);if(s&&(a.memoizedState=n,_t=!0),a=a.queue,KS(uR.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||Et!==null&&Et.memoizedState.tag&1){if(r.flags|=2048,Hl(9,{destroy:void 0},cR.bind(null,r,a,n,t),null),We===null)throw Error(U(349));i||Ya&127||lR(r,t,n)}return n}function lR(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Se.updateQueue,t===null?(t=$y(),Se.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function cR(e,t,n,r){t.value=n,t.getSnapshot=r,fR(t)&&dR(e)}function uR(e,t,n){return n(function(){fR(t)&&dR(e)})}function fR(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Jn(e,n)}catch{return!0}}function dR(e){var t=So(e,2);t!==null&&_n(t,e,2)}function A0(e){var t=hn();if(typeof e=="function"){var n=e;if(e=n(),ao){Mi(!0);try{n()}finally{Mi(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:e},t}function hR(e,t,n,r){return e.baseState=n,qS(e,Ge,typeof r=="function"?r:Wa)}function c8(e,t,n,r,a){if(Iy(e))throw Error(U(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){i.listeners.push(s)}};he.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,pR(t,i)):(i.next=n.next,t.pending=n.next=i)}}function pR(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=he.T,s={};he.T=s;try{var o=n(a,r),l=he.S;l!==null&&l(s,o),m2(e,t,o)}catch(c){O0(e,t,c)}finally{i!==null&&s.types!==null&&(i.types=s.types),he.T=i}}else try{i=n(a,r),m2(e,t,i)}catch(c){O0(e,t,c)}}function m2(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){y2(e,t,r)},function(r){return O0(e,t,r)}):y2(e,t,n)}function y2(e,t,n){t.status="fulfilled",t.value=n,mR(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,pR(e,n)))}function O0(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,mR(t),t=t.next;while(t!==r)}e.action=null}function mR(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yR(e,t){return t}function g2(e,t){if(Ce){var n=We.formState;if(n!==null){e:{var r=Se;if(Ce){if(at){t:{for(var a=at,i=mr;a.nodeType!==8;){if(!i){a=null;break t}if(a=br(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){at=br(a.nextSibling),r=a.data==="F!";break e}}Ji(r)}r=!1}r&&(t=n[0])}}return n=hn(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yR,lastRenderedState:t},n.queue=r,n=MR.bind(null,Se,r),r.dispatch=n,r=A0(!1),i=XS.bind(null,Se,!1,r.queue),r=hn(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=c8.bind(null,Se,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function v2(e){var t=jt();return gR(t,Ge,e)}function gR(e,t,n){if(t=qS(e,t,yR)[0],e=sp(Wa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=Md(t)}catch(s){throw s===Mc?ky:s}else r=t;t=jt();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(Se.flags|=2048,Hl(9,{destroy:void 0},u8.bind(null,a,n),null)),[r,i,e]}function u8(e,t){e.action=t}function b2(e){var t=jt(),n=Ge;if(n!==null)return gR(t,n,e);jt(),t=t.memoizedState,n=jt();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Hl(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Se.updateQueue,t===null&&(t=$y(),Se.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function vR(){return jt().memoizedState}function op(e,t,n,r){var a=hn();Se.flags|=e,a.memoizedState=Hl(1|t,{destroy:void 0},n,r===void 0?null:r)}function zy(e,t,n,r){var a=jt();r=r===void 0?null:r;var i=a.memoizedState.inst;Ge!==null&&r!==null&&IS(r,Ge.memoizedState.deps)?a.memoizedState=Hl(t,i,n,r):(Se.flags|=e,a.memoizedState=Hl(1|t,i,n,r))}function x2(e,t){op(8390656,8,e,t)}function KS(e,t){zy(2048,8,e,t)}function f8(e){Se.flags|=4;var t=Se.updateQueue;if(t===null)t=$y(),Se.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function bR(e){var t=jt().memoizedState;return f8({ref:t,nextImpl:e}),function(){if(Me&2)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function xR(e,t){return zy(4,2,e,t)}function SR(e,t){return zy(4,4,e,t)}function wR(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function jR(e,t,n){n=n!=null?n.concat([e]):null,zy(4,4,wR.bind(null,t,e),n)}function GS(){}function AR(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&IS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function OR(e,t){var n=jt();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&IS(t,r[1]))return r[0];if(r=e(),ao){Mi(!0);try{e()}finally{Mi(!1)}}return n.memoizedState=[r,t],r}function YS(e,t,n){return n===void 0||Ya&1073741824&&!(Te&261930)?e.memoizedState=t:(e.memoizedState=n,e=hD(),Se.lanes|=e,ts|=e,n)}function ER(e,t,n,r){return Jn(n,t)?n:Vl.current!==null?(e=YS(e,n,r),Jn(e,t)||(_t=!0),e):!(Ya&42)||Ya&1073741824&&!(Te&261930)?(_t=!0,e.memoizedState=n):(e=hD(),Se.lanes|=e,ts|=e,t)}function TR(e,t,n,r,a){var i=De.p;De.p=i!==0&&8>i?i:8;var s=he.T,o={};he.T=o,XS(e,!1,t,n);try{var l=a(),c=he.S;if(c!==null&&c(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var d=s8(l,r);qu(e,t,d,Xn(e))}else qu(e,t,r,Xn(e))}catch(f){qu(e,t,{then:function(){},status:"rejected",reason:f},Xn())}finally{De.p=i,s!==null&&o.types!==null&&(s.types=o.types),he.T=s}}function d8(){}function E0(e,t,n,r){if(e.tag!==5)throw Error(U(476));var a=NR(e).queue;TR(e,a,t,qs,n===null?d8:function(){return CR(e),n(r)})}function NR(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:qs,baseState:qs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:qs},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function CR(e){var t=NR(e);t.next===null&&(t=e.alternate.memoizedState),qu(e,t.next.queue,{},Xn())}function WS(){return tn(Af)}function _R(){return jt().memoizedState}function PR(){return jt().memoizedState}function h8(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Xn();e=Ui(n);var r=Fi(t,e,n);r!==null&&(_n(r,t,n),Fu(r,t,n)),t={cache:DS()},e.payload=t;return}t=t.return}}function p8(e,t,n){var r=Xn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Iy(e)?RR(t,n):(n=_S(e,t,n,r),n!==null&&(_n(n,e,r),DR(n,t,r)))}function MR(e,t,n){var r=Xn();qu(e,t,n,r)}function qu(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Iy(e))RR(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,o=i(s,n);if(a.hasEagerState=!0,a.eagerState=o,Jn(o,s))return Dy(e,t,a,0),We===null&&Ry(),!1}catch{}finally{}if(n=_S(e,t,a,r),n!==null)return _n(n,e,r),DR(n,t,r),!0}return!1}function XS(e,t,n,r){if(r={lane:2,revertLane:iw(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Iy(e)){if(t)throw Error(U(479))}else t=_S(e,n,r,2),t!==null&&_n(t,e,2)}function Iy(e){var t=e.alternate;return e===Se||t!==null&&t===Se}function RR(e,t){bl=Bp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function DR(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,bM(e,n)}}var Sf={readContext:tn,use:Ly,useCallback:mt,useContext:mt,useEffect:mt,useImperativeHandle:mt,useLayoutEffect:mt,useInsertionEffect:mt,useMemo:mt,useReducer:mt,useRef:mt,useState:mt,useDebugValue:mt,useDeferredValue:mt,useTransition:mt,useSyncExternalStore:mt,useId:mt,useHostTransitionStatus:mt,useFormState:mt,useActionState:mt,useOptimistic:mt,useMemoCache:mt,useCacheRefresh:mt};Sf.useEffectEvent=mt;var kR={readContext:tn,use:Ly,useCallback:function(e,t){return hn().memoizedState=[e,t===void 0?null:t],e},useContext:tn,useEffect:x2,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,op(4194308,4,wR.bind(null,t,e),n)},useLayoutEffect:function(e,t){return op(4194308,4,e,t)},useInsertionEffect:function(e,t){op(4,2,e,t)},useMemo:function(e,t){var n=hn();t=t===void 0?null:t;var r=e();if(ao){Mi(!0);try{e()}finally{Mi(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=hn();if(n!==void 0){var a=n(t);if(ao){Mi(!0);try{n(t)}finally{Mi(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=p8.bind(null,Se,e),[r.memoizedState,e]},useRef:function(e){var t=hn();return e={current:e},t.memoizedState=e},useState:function(e){e=A0(e);var t=e.queue,n=MR.bind(null,Se,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:GS,useDeferredValue:function(e,t){var n=hn();return YS(n,e,t)},useTransition:function(){var e=A0(!1);return e=TR.bind(null,Se,e.queue,!0,!1),hn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Se,a=hn();if(Ce){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),We===null)throw Error(U(349));Te&127||lR(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,x2(uR.bind(null,r,i,e),[e]),r.flags|=2048,Hl(9,{destroy:void 0},cR.bind(null,r,i,n,t),null),n},useId:function(){var e=hn(),t=We.identifierPrefix;if(Ce){var n=Zr,r=Qr;n=(r&~(1<<32-Wn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=Up++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=o8++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:WS,useFormState:g2,useActionState:g2,useOptimistic:function(e){var t=hn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=XS.bind(null,Se,!0,n),n.dispatch=t,[e,t]},useMemoCache:HS,useCacheRefresh:function(){return hn().memoizedState=h8.bind(null,Se)},useEffectEvent:function(e){var t=hn(),n={impl:e};return t.memoizedState=n,function(){if(Me&2)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},QS={readContext:tn,use:Ly,useCallback:AR,useContext:tn,useEffect:KS,useImperativeHandle:jR,useInsertionEffect:xR,useLayoutEffect:SR,useMemo:OR,useReducer:sp,useRef:vR,useState:function(){return sp(Wa)},useDebugValue:GS,useDeferredValue:function(e,t){var n=jt();return ER(n,Ge.memoizedState,e,t)},useTransition:function(){var e=sp(Wa)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:Md(e),t]},useSyncExternalStore:oR,useId:_R,useHostTransitionStatus:WS,useFormState:v2,useActionState:v2,useOptimistic:function(e,t){var n=jt();return hR(n,Ge,e,t)},useMemoCache:HS,useCacheRefresh:PR};QS.useEffectEvent=bR;var $R={readContext:tn,use:Ly,useCallback:AR,useContext:tn,useEffect:KS,useImperativeHandle:jR,useInsertionEffect:xR,useLayoutEffect:SR,useMemo:OR,useReducer:jv,useRef:vR,useState:function(){return jv(Wa)},useDebugValue:GS,useDeferredValue:function(e,t){var n=jt();return Ge===null?YS(n,e,t):ER(n,Ge.memoizedState,e,t)},useTransition:function(){var e=jv(Wa)[0],t=jt().memoizedState;return[typeof e=="boolean"?e:Md(e),t]},useSyncExternalStore:oR,useId:_R,useHostTransitionStatus:WS,useFormState:b2,useActionState:b2,useOptimistic:function(e,t){var n=jt();return Ge!==null?hR(n,Ge,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:HS,useCacheRefresh:PR};$R.useEffectEvent=bR;function Av(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:st({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var T0={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Xn(),a=Ui(r);a.payload=t,n!=null&&(a.callback=n),t=Fi(e,a,r),t!==null&&(_n(t,e,r),Fu(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Xn(),a=Ui(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Fi(e,a,r),t!==null&&(_n(t,e,r),Fu(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Xn(),r=Ui(n);r.tag=2,t!=null&&(r.callback=t),t=Fi(e,r,n),t!==null&&(_n(t,e,n),Fu(t,e,n))}};function S2(e,t,n,r,a,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!yf(n,r)||!yf(a,i):!0}function w2(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&T0.enqueueReplaceState(t,t.state,null)}function io(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=st({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function LR(e){Rp(e)}function zR(e){console.error(e)}function IR(e){Rp(e)}function Fp(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function j2(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function N0(e,t,n){return n=Ui(n),n.tag=3,n.payload={element:null},n.callback=function(){Fp(e,t)},n}function BR(e){return e=Ui(e),e.tag=3,e}function UR(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=r.value;e.payload=function(){return a(i)},e.callback=function(){j2(t,n,r)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){j2(t,n,r),typeof a!="function"&&(Vi===null?Vi=new Set([this]):Vi.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function m8(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&Pc(t,n,a,!0),n=er.current,n!==null){switch(n.tag){case 31:case 13:return vr===null?Gp():n.alternate===null&&bt===0&&(bt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Lp?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),kv(e,r,a)),!1;case 22:return n.flags|=65536,r===Lp?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),kv(e,r,a)),!1}throw Error(U(435,n.tag))}return kv(e,r,a),Gp(),!1}if(Ce)return t=er.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==m0&&(e=Error(U(422),{cause:r}),vf(pr(e,n)))):(r!==m0&&(t=Error(U(423),{cause:r}),vf(pr(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=pr(r,n),a=N0(e.stateNode,r,a),wv(e,a),bt!==4&&(bt=2)),!1;var i=Error(U(520),{cause:r});if(i=pr(i,n),Yu===null?Yu=[i]:Yu.push(i),bt!==4&&(bt=2),t===null)return!0;r=pr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=N0(n.stateNode,r,e),wv(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&(Vi===null||!Vi.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=BR(a),UR(a,e,n,r),wv(n,a),!1}n=n.return}while(n!==null);return!1}var ZS=Error(U(461)),_t=!1;function Xt(e,t,n,r){t.child=e===null?tR(t,null,n,r):ro(t,e.child,n,r)}function A2(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var s={};for(var o in r)o!=="ref"&&(s[o]=r[o])}else s=r;return no(t),r=BS(e,t,n,s,i,a),o=US(),e!==null&&!_t?(FS(e,t,a),Xa(e,t,a)):(Ce&&o&&MS(t),t.flags|=1,Xt(e,t,r,a),t.child)}function O2(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!PS(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,FR(e,t,i,r,a)):(e=ap(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!JS(e,a)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:yf,n(s,r)&&e.ref===t.ref)return Xa(e,t,a)}return t.flags|=1,e=Ia(i,r),e.ref=t.ref,e.return=t,t.child=e}function FR(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(yf(i,r)&&e.ref===t.ref)if(_t=!1,t.pendingProps=r=i,JS(e,a))e.flags&131072&&(_t=!0);else return t.lanes=e.lanes,Xa(e,t,a)}return C0(e,t,n,r,a)}function VR(e,t,n,r){var a=r.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~i}else r=0,t.child=null;return E2(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ip(t,i!==null?i.cachePool:null),i!==null?p2(t,i):w0(),aR(t);else return r=t.lanes=536870912,E2(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(ip(t,i.cachePool),p2(t,i),Si(),t.memoizedState=null):(e!==null&&ip(t,null),w0(),Si());return Xt(e,t,a,n),t.child}function Cu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function E2(e,t,n,r,a){var i=kS();return i=i===null?null:{parent:Nt._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&ip(t,null),w0(),aR(t),e!==null&&Pc(e,t,r,!0),t.childLanes=a,null}function lp(e,t){return t=Vp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function T2(e,t,n){return ro(t,e.child,null,n),e=lp(t,t.pendingProps),e.flags|=2,Vn(t),t.memoizedState=null,e}function y8(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ce){if(r.mode==="hidden")return e=lp(t,r),t.lanes=536870912,Cu(null,e);if(j0(t),(e=at)?(e=kD(e,mr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:Qr,overflow:Zr}:null,retryLane:536870912,hydrationErrors:null},n=YM(e),n.return=t,t.child=n,Jt=t,at=null)):e=null,e===null)throw Ji(t);return t.lanes=536870912,null}return lp(t,r)}var i=e.memoizedState;if(i!==null){var s=i.dehydrated;if(j0(t),a)if(t.flags&256)t.flags&=-257,t=T2(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(_t||Pc(e,t,n,!1),a=(n&e.childLanes)!==0,_t||a){if(r=We,r!==null&&(s=xM(r,n),s!==0&&s!==i.retryLane))throw i.retryLane=s,So(e,s),_n(r,e,s),ZS;Gp(),t=T2(e,t,n)}else e=i.treeContext,at=br(s.nextSibling),Jt=t,Ce=!0,Bi=null,mr=!1,e!==null&&XM(t,e),t=lp(t,r),t.flags|=4096;return t}return e=Ia(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function cp(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(U(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function C0(e,t,n,r,a){return no(t),n=BS(e,t,n,r,void 0,a),r=US(),e!==null&&!_t?(FS(e,t,a),Xa(e,t,a)):(Ce&&r&&MS(t),t.flags|=1,Xt(e,t,n,a),t.child)}function N2(e,t,n,r,a,i){return no(t),t.updateQueue=null,n=sR(t,r,n,a),iR(e),r=US(),e!==null&&!_t?(FS(e,t,i),Xa(e,t,i)):(Ce&&r&&MS(t),t.flags|=1,Xt(e,t,n,i),t.child)}function C2(e,t,n,r,a){if(no(t),t.stateNode===null){var i=el,s=n.contextType;typeof s=="object"&&s!==null&&(i=tn(s)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=T0,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},LS(t),s=n.contextType,i.context=typeof s=="object"&&s!==null?tn(s):el,i.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Av(t,n,s,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(s=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),s!==i.state&&T0.enqueueReplaceState(i,i.state,null),Hu(t,r,i,a),Vu(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,l=io(n,o);i.props=l;var c=i.context,d=n.contextType;s=el,typeof d=="object"&&d!==null&&(s=tn(d));var f=n.getDerivedStateFromProps;d=typeof f=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,d||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||c!==s)&&w2(t,i,r,s),gi=!1;var h=t.memoizedState;i.state=h,Hu(t,r,i,a),Vu(),c=t.memoizedState,o||h!==c||gi?(typeof f=="function"&&(Av(t,n,f,r),c=t.memoizedState),(l=gi||S2(t,n,l,r,h,c,s))?(d||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=s,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,x0(e,t),s=t.memoizedProps,d=io(n,s),i.props=d,f=t.pendingProps,h=i.context,c=n.contextType,l=el,typeof c=="object"&&c!==null&&(l=tn(c)),o=n.getDerivedStateFromProps,(c=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==f||h!==l)&&w2(t,i,r,l),gi=!1,h=t.memoizedState,i.state=h,Hu(t,r,i,a),Vu();var p=t.memoizedState;s!==f||h!==p||gi||e!==null&&e.dependencies!==null&&$p(e.dependencies)?(typeof o=="function"&&(Av(t,n,o,r),p=t.memoizedState),(d=gi||S2(t,n,d,r,h,p,l)||e!==null&&e.dependencies!==null&&$p(e.dependencies))?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=d):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,cp(e,t),r=(t.flags&128)!==0,i||r?(i=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&r?(t.child=ro(t,e.child,null,a),t.child=ro(t,null,n,a)):Xt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=Xa(e,t,a),e}function _2(e,t,n,r){return to(),t.flags|=256,Xt(e,t,n,r),t.child}var Ov={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Ev(e){return{baseLanes:e,cachePool:ZM()}}function Tv(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Kn),e}function HR(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(St.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ce){if(a?xi(t):Si(),(e=at)?(e=kD(e,mr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Zi!==null?{id:Qr,overflow:Zr}:null,retryLane:536870912,hydrationErrors:null},n=YM(e),n.return=t,t.child=n,Jt=t,at=null)):e=null,e===null)throw Ji(t);return V0(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(Si(),a=t.mode,o=Vp({mode:"hidden",children:o},a),r=Ks(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=Ev(n),r.childLanes=Tv(e,s,n),t.memoizedState=Ov,Cu(null,r)):(xi(t),_0(t,o))}var l=e.memoizedState;if(l!==null&&(o=l.dehydrated,o!==null)){if(i)t.flags&256?(xi(t),t.flags&=-257,t=Nv(e,t,n)):t.memoizedState!==null?(Si(),t.child=e.child,t.flags|=128,t=null):(Si(),o=r.fallback,a=t.mode,r=Vp({mode:"visible",children:r.children},a),o=Ks(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,ro(t,e.child,null,n),r=t.child,r.memoizedState=Ev(n),r.childLanes=Tv(e,s,n),t.memoizedState=Ov,t=Cu(null,r));else if(xi(t),V0(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var c=s.dgst;s=c,r=Error(U(419)),r.stack="",r.digest=s,vf({value:r,source:null,stack:null}),t=Nv(e,t,n)}else if(_t||Pc(e,t,n,!1),s=(n&e.childLanes)!==0,_t||s){if(s=We,s!==null&&(r=xM(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,So(e,r),_n(s,e,r),ZS;F0(o)||Gp(),t=Nv(e,t,n)}else F0(o)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,at=br(o.nextSibling),Jt=t,Ce=!0,Bi=null,mr=!1,e!==null&&XM(t,e),t=_0(t,r.children),t.flags|=4096);return t}return a?(Si(),o=r.fallback,a=t.mode,l=e.child,c=l.sibling,r=Ia(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,c!==null?o=Ia(c,o):(o=Ks(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,Cu(null,r),r=t.child,o=e.child.memoizedState,o===null?o=Ev(n):(a=o.cachePool,a!==null?(l=Nt._currentValue,a=a.parent!==l?{parent:l,pool:l}:a):a=ZM(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=Tv(e,s,n),t.memoizedState=Ov,Cu(e.child,r)):(xi(t),n=e.child,e=n.sibling,n=Ia(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function _0(e,t){return t=Vp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Vp(e,t){return e=Hn(22,e,null,t),e.lanes=0,e}function Nv(e,t,n){return ro(t,e.child,null,n),e=_0(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function P2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),g0(e.return,t,n)}function Cv(e,t,n,r,a,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=a,s.treeForkCount=i)}function qR(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var s=St.current,o=(s&2)!==0;if(o?(s=s&1|2,t.flags|=128):s&=1,Je(St,s),Xt(e,t,r,n),r=Ce?gf:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&P2(e,n,t);else if(e.tag===19)P2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&Ip(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Cv(t,!1,a,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&Ip(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Cv(t,!0,n,null,i,r);break;case"together":Cv(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Xa(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ts|=t.lanes,!(n&t.childLanes))if(e!==null){if(Pc(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=Ia(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ia(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function JS(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&$p(e)))}function g8(e,t,n){switch(t.tag){case 3:Cp(t,t.stateNode.containerInfo),bi(t,Nt,e.memoizedState.cache),to();break;case 27:case 5:a0(t);break;case 4:Cp(t,t.stateNode.containerInfo);break;case 10:bi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,j0(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(xi(t),t.flags|=128,null):n&t.child.childLanes?HR(e,t,n):(xi(t),e=Xa(e,t,n),e!==null?e.sibling:null);xi(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(Pc(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return qR(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Je(St,St.current),r)break;return null;case 22:return t.lanes=0,VR(e,t,n,t.pendingProps);case 24:bi(t,Nt,e.memoizedState.cache)}return Xa(e,t,n)}function KR(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)_t=!0;else{if(!JS(e,n)&&!(t.flags&128))return _t=!1,g8(e,t,n);_t=!!(e.flags&131072)}else _t=!1,Ce&&t.flags&1048576&&WM(t,gf,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=bs(t.elementType),t.type=e,typeof e=="function")PS(e)?(r=io(e,r),t.tag=1,t=C2(null,t,e,r,n)):(t.tag=0,t=C0(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===gS){t.tag=11,t=A2(null,t,e,r,n);break e}else if(a===vS){t.tag=14,t=O2(null,t,e,r,n);break e}}throw t=n0(e)||e,Error(U(306,t,""))}}return t;case 0:return C0(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=io(r,t.pendingProps),C2(e,t,r,a,n);case 3:e:{if(Cp(t,t.stateNode.containerInfo),e===null)throw Error(U(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,x0(e,t),Hu(t,r,null,n);var s=t.memoizedState;if(r=s.cache,bi(t,Nt,r),r!==i.cache&&v0(t,[Nt],n,!0),Vu(),r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=_2(e,t,r,n);break e}else if(r!==a){a=pr(Error(U(424)),t),vf(a),t=_2(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(at=br(e.firstChild),Jt=t,Ce=!0,Bi=null,mr=!0,n=tR(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(to(),r===a){t=Xa(e,t,n);break e}Xt(e,t,r,n)}t=t.child}return t;case 26:return cp(e,t),e===null?(n=Q2(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ce||(n=t.type,e=t.pendingProps,r=Qp(Ii.current).createElement(n),r[Zt]=t,r[Mn]=e,nn(r,n,e),Ht(r),t.stateNode=r):t.memoizedState=Q2(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return a0(t),e===null&&Ce&&(r=t.stateNode=$D(t.type,t.pendingProps,Ii.current),Jt=t,mr=!0,a=at,as(t.type)?(H0=a,at=br(r.firstChild)):at=a),Xt(e,t,t.pendingProps.children,n),cp(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ce&&((a=r=at)&&(r=G8(r,t.type,t.pendingProps,mr),r!==null?(t.stateNode=r,Jt=t,at=br(r.firstChild),mr=!1,a=!0):a=!1),a||Ji(t)),a0(t),a=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,r=i.children,B0(a,i)?r=null:s!==null&&B0(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=BS(e,t,l8,null,null,n),Af._currentValue=a),cp(e,t),Xt(e,t,r,n),t.child;case 6:return e===null&&Ce&&((e=n=at)&&(n=Y8(n,t.pendingProps,mr),n!==null?(t.stateNode=n,Jt=t,at=null,e=!0):e=!1),e||Ji(t)),null;case 13:return HR(e,t,n);case 4:return Cp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ro(t,null,r,n):Xt(e,t,r,n),t.child;case 11:return A2(e,t,t.type,t.pendingProps,n);case 7:return Xt(e,t,t.pendingProps,n),t.child;case 8:return Xt(e,t,t.pendingProps.children,n),t.child;case 12:return Xt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,bi(t,t.type,r.value),Xt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,no(t),a=tn(a),r=r(a),t.flags|=1,Xt(e,t,r,n),t.child;case 14:return O2(e,t,t.type,t.pendingProps,n);case 15:return FR(e,t,t.type,t.pendingProps,n);case 19:return qR(e,t,n);case 31:return y8(e,t,n);case 22:return VR(e,t,n,t.pendingProps);case 24:return no(t),r=tn(Nt),e===null?(a=kS(),a===null&&(a=We,i=DS(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},LS(t),bi(t,Nt,a)):(e.lanes&n&&(x0(e,t),Hu(t,null,null,n),Vu()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),bi(t,Nt,r)):(r=i.cache,bi(t,Nt,r),r!==a.cache&&v0(t,[Nt],n,!0))),Xt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function xa(e){e.flags|=4}function _v(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(yD())e.flags|=8192;else throw Ys=Lp,$S}else e.flags&=-16777217}function M2(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ID(t))if(yD())e.flags|=8192;else throw Ys=Lp,$S}function bh(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?gM():536870912,e.lanes|=t,ql|=t)}function ou(e,t){if(!Ce)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function tt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function v8(e,t,n){var r=t.pendingProps;switch(RS(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return tt(t),null;case 1:return tt(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ba(Nt),Il(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ro(t)?xa(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Sv())),tt(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(xa(t),i!==null?(tt(t),M2(t,i)):(tt(t),_v(t,a,null,r,n))):i?i!==e.memoizedState?(xa(t),tt(t),M2(t,i)):(tt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&xa(t),tt(t),_v(t,a,e,r,n)),null;case 27:if(_p(t),n=Ii.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xa(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return tt(t),null}e=ia.current,Ro(t)?o2(t):(e=$D(a,r,n),t.stateNode=e,xa(t))}return tt(t),null;case 5:if(_p(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&xa(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return tt(t),null}if(i=ia.current,Ro(t))o2(t);else{var s=Qp(Ii.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=s.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?s.createElement(a,{is:r.is}):s.createElement(a)}}i[Zt]=t,i[Mn]=r;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)i.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=i;e:switch(nn(i,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&xa(t)}}return tt(t),_v(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&xa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(e=Ii.current,Ro(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Jt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Zt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||MD(e.nodeValue,n)),e||Ji(t,!0)}else e=Qp(e).createTextNode(r),e[Zt]=t,t.stateNode=e}return tt(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ro(t),n!==null){if(e===null){if(!r)throw Error(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[Zt]=t}else to(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tt(t),e=!1}else n=Sv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Vn(t),t):(Vn(t),null);if(t.flags&128)throw Error(U(558))}return tt(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ro(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(U(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(U(317));a[Zt]=t}else to(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;tt(t),a=!1}else a=Sv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Vn(t),t):(Vn(t),null)}return Vn(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),bh(t,t.updateQueue),tt(t),null);case 4:return Il(),e===null&&sw(t.stateNode.containerInfo),tt(t),null;case 10:return Ba(t.type),tt(t),null;case 19:if(Kt(St),r=t.memoizedState,r===null)return tt(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)ou(r,!1);else{if(bt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=Ip(e),i!==null){for(t.flags|=128,ou(r,!1),e=i.updateQueue,t.updateQueue=e,bh(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)GM(n,e),n=n.sibling;return Je(St,St.current&1|2),Ce&&Na(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Gn()>qp&&(t.flags|=128,a=!0,ou(r,!1),t.lanes=4194304)}else{if(!a)if(e=Ip(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,bh(t,e),ou(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ce)return tt(t),null}else 2*Gn()-r.renderingStartTime>qp&&n!==536870912&&(t.flags|=128,a=!0,ou(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(e=r.last,e!==null?e.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Gn(),e.sibling=null,n=St.current,Je(St,a?n&1|2:n&1),Ce&&Na(t,r.treeForkCount),e):(tt(t),null);case 22:case 23:return Vn(t),zS(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(tt(t),t.subtreeFlags&6&&(t.flags|=8192)):tt(t),n=t.updateQueue,n!==null&&bh(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Kt(Gs),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ba(Nt),tt(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function b8(e,t){switch(RS(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ba(Nt),Il(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return _p(t),null;case 31:if(t.memoizedState!==null){if(Vn(t),t.alternate===null)throw Error(U(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Vn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));to()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Kt(St),null;case 4:return Il(),null;case 10:return Ba(t.type),null;case 22:case 23:return Vn(t),zS(),e!==null&&Kt(Gs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ba(Nt),null;case 25:return null;default:return null}}function GR(e,t){switch(RS(t),t.tag){case 3:Ba(Nt),Il();break;case 26:case 27:case 5:_p(t);break;case 4:Il();break;case 31:t.memoizedState!==null&&Vn(t);break;case 13:Vn(t);break;case 19:Kt(St);break;case 10:Ba(t.type);break;case 22:case 23:Vn(t),zS(),e!==null&&Kt(Gs);break;case 24:Ba(Nt)}}function Rd(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,s=n.inst;r=i(),s.destroy=r}n=n.next}while(n!==a)}}catch(o){Ue(t,t.return,o)}}function es(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var s=r.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,a=t;var l=n,c=o;try{c()}catch(d){Ue(a,l,d)}}}r=r.next}while(r!==i)}}catch(d){Ue(t,t.return,d)}}function YR(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{rR(t,n)}catch(r){Ue(e,e.return,r)}}}function WR(e,t,n){n.props=io(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Ue(e,t,r)}}function Ku(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){Ue(e,t,a)}}function Jr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){Ue(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Ue(e,t,a)}else n.current=null}function XR(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){Ue(e,e.return,a)}}function Pv(e,t,n){try{var r=e.stateNode;U8(r,e.type,n,t),r[Mn]=t}catch(a){Ue(e,e.return,a)}}function QR(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&as(e.type)||e.tag===4}function Mv(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||QR(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&as(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function P0(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ra));else if(r!==4&&(r===27&&as(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(P0(e,t,n),e=e.sibling;e!==null;)P0(e,t,n),e=e.sibling}function Hp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&as(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Hp(e,t,n),e=e.sibling;e!==null;)Hp(e,t,n),e=e.sibling}function ZR(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);nn(t,r,n),t[Zt]=e,t[Mn]=n}catch(i){Ue(e,e.return,i)}}var Pa=!1,Tt=!1,Rv=!1,R2=typeof WeakSet=="function"?WeakSet:Set,Vt=null;function x8(e,t){if(e=e.containerInfo,z0=tm,e=IM(e),NS(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,c=0,d=0,f=e,h=null;t:for(;;){for(var p;f!==n||a!==0&&f.nodeType!==3||(o=s+a),f!==i||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(p=f.firstChild)!==null;)h=f,f=p;for(;;){if(f===e)break t;if(h===n&&++c===a&&(o=s),h===i&&++d===r&&(l=s),(p=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=p}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(I0={focusedElem:e,selectionRange:n},tm=!1,Vt=t;Vt!==null;)if(t=Vt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Vt=e;else for(;Vt!==null;){switch(t=Vt,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var m=io(n.type,a);e=r.getSnapshotBeforeUpdate(m,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(g){Ue(n,n.return,g)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)U0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":U0(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(U(163))}if(e=t.sibling,e!==null){e.return=t.return,Vt=e;break}Vt=t.return}}function JR(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:wa(e,n),r&4&&Rd(5,n);break;case 1:if(wa(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Ue(n,n.return,s)}else{var a=io(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ue(n,n.return,s)}}r&64&&YR(n),r&512&&Ku(n,n.return);break;case 3:if(wa(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{rR(e,t)}catch(s){Ue(n,n.return,s)}}break;case 27:t===null&&r&4&&ZR(n);case 26:case 5:wa(e,n),t===null&&r&4&&XR(n),r&512&&Ku(n,n.return);break;case 12:wa(e,n);break;case 31:wa(e,n),r&4&&nD(e,n);break;case 13:wa(e,n),r&4&&rD(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=C8.bind(null,n),W8(e,n))));break;case 22:if(r=n.memoizedState!==null||Pa,!r){t=t!==null&&t.memoizedState!==null||Tt,a=Pa;var i=Tt;Pa=r,(Tt=t)&&!i?Oa(e,n,(n.subtreeFlags&8772)!==0):wa(e,n),Pa=a,Tt=i}break;case 30:break;default:wa(e,n)}}function eD(e){var t=e.alternate;t!==null&&(e.alternate=null,eD(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&wS(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ct=null,En=!1;function Sa(e,t,n){for(n=n.child;n!==null;)tD(e,t,n),n=n.sibling}function tD(e,t,n){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(Ed,n)}catch{}switch(n.tag){case 26:Tt||Jr(n,t),Sa(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Tt||Jr(n,t);var r=ct,a=En;as(n.type)&&(ct=n.stateNode,En=!1),Sa(e,t,n),Xu(n.stateNode),ct=r,En=a;break;case 5:Tt||Jr(n,t);case 6:if(r=ct,a=En,ct=null,Sa(e,t,n),ct=r,En=a,ct!==null)if(En)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(n.stateNode)}catch(i){Ue(n,t,i)}else try{ct.removeChild(n.stateNode)}catch(i){Ue(n,t,i)}break;case 18:ct!==null&&(En?(e=ct,K2(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Wl(e)):K2(ct,n.stateNode));break;case 4:r=ct,a=En,ct=n.stateNode.containerInfo,En=!0,Sa(e,t,n),ct=r,En=a;break;case 0:case 11:case 14:case 15:es(2,n,t),Tt||es(4,n,t),Sa(e,t,n);break;case 1:Tt||(Jr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&WR(n,t,r)),Sa(e,t,n);break;case 21:Sa(e,t,n);break;case 22:Tt=(r=Tt)||n.memoizedState!==null,Sa(e,t,n),Tt=r;break;default:Sa(e,t,n)}}function nD(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Wl(e)}catch(n){Ue(t,t.return,n)}}}function rD(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Wl(e)}catch(n){Ue(t,t.return,n)}}function S8(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new R2),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new R2),t;default:throw Error(U(435,e.tag))}}function xh(e,t){var n=S8(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=_8.bind(null,e,r);r.then(a,a)}})}function wn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(as(o.type)){ct=o.stateNode,En=!1;break e}break;case 5:ct=o.stateNode,En=!1;break e;case 3:case 4:ct=o.stateNode.containerInfo,En=!0;break e}o=o.return}if(ct===null)throw Error(U(160));tD(i,s,a),ct=null,En=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)aD(t,e),t=t.sibling}var Rr=null;function aD(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:wn(t,e),jn(e),r&4&&(es(3,e,e.return),Rd(3,e),es(5,e,e.return));break;case 1:wn(t,e),jn(e),r&512&&(Tt||n===null||Jr(n,n.return)),r&64&&Pa&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=Rr;if(wn(t,e),jn(e),r&512&&(Tt||n===null||Jr(n,n.return)),r&4){var i=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":i=a.getElementsByTagName("title")[0],(!i||i[Cd]||i[Zt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),nn(i,r,n),i[Zt]=e,Ht(i),r=i;break e;case"link":var s=J2("link","href",a).get(r+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(i=s[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}i=a.createElement(r),nn(i,r,n),a.head.appendChild(i);break;case"meta":if(s=J2("meta","content",a).get(r+(n.content||""))){for(o=0;o<s.length;o++)if(i=s[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}i=a.createElement(r),nn(i,r,n),a.head.appendChild(i);break;default:throw Error(U(468,r))}i[Zt]=e,Ht(i),r=i}e.stateNode=r}else eO(a,e.type,e.stateNode);else e.stateNode=Z2(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?eO(a,e.type,e.stateNode):Z2(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&Pv(e,e.memoizedProps,n.memoizedProps)}break;case 27:wn(t,e),jn(e),r&512&&(Tt||n===null||Jr(n,n.return)),n!==null&&r&4&&Pv(e,e.memoizedProps,n.memoizedProps);break;case 5:if(wn(t,e),jn(e),r&512&&(Tt||n===null||Jr(n,n.return)),e.flags&32){a=e.stateNode;try{Ul(a,"")}catch(m){Ue(e,e.return,m)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,Pv(e,a,n!==null?n.memoizedProps:a)),r&1024&&(Rv=!0);break;case 6:if(wn(t,e),jn(e),r&4){if(e.stateNode===null)throw Error(U(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(m){Ue(e,e.return,m)}}break;case 3:if(dp=null,a=Rr,Rr=Zp(t.containerInfo),wn(t,e),Rr=a,jn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Wl(t.containerInfo)}catch(m){Ue(e,e.return,m)}Rv&&(Rv=!1,iD(e));break;case 4:r=Rr,Rr=Zp(e.stateNode.containerInfo),wn(t,e),jn(e),Rr=r;break;case 12:wn(t,e),jn(e);break;case 31:wn(t,e),jn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xh(e,r)));break;case 13:wn(t,e),jn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(By=Gn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xh(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,c=Pa,d=Tt;if(Pa=c||a,Tt=d||l,wn(t,e),Tt=d,Pa=c,jn(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Pa||Tt||xs(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(i=l.stateNode,a)s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=l.stateNode;var f=l.memoizedProps.style,h=f!=null&&f.hasOwnProperty("display")?f.display:null;o.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(m){Ue(l,l.return,m)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(m){Ue(l,l.return,m)}}}else if(t.tag===18){if(n===null){l=t;try{var p=l.stateNode;a?G2(p,!0):G2(l.stateNode,!1)}catch(m){Ue(l,l.return,m)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,xh(e,n))));break;case 19:wn(t,e),jn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,xh(e,r)));break;case 30:break;case 21:break;default:wn(t,e),jn(e)}}function jn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(QR(r)){n=r;break}r=r.return}if(n==null)throw Error(U(160));switch(n.tag){case 27:var a=n.stateNode,i=Mv(e);Hp(e,i,a);break;case 5:var s=n.stateNode;n.flags&32&&(Ul(s,""),n.flags&=-33);var o=Mv(e);Hp(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,c=Mv(e);P0(e,c,l);break;default:throw Error(U(161))}}catch(d){Ue(e,e.return,d)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function iD(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;iD(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function wa(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)JR(e,t.alternate,t),t=t.sibling}function xs(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:es(4,t,t.return),xs(t);break;case 1:Jr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&WR(t,t.return,n),xs(t);break;case 27:Xu(t.stateNode);case 26:case 5:Jr(t,t.return),xs(t);break;case 22:t.memoizedState===null&&xs(t);break;case 30:xs(t);break;default:xs(t)}e=e.sibling}}function Oa(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:Oa(a,i,n),Rd(4,i);break;case 1:if(Oa(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(c){Ue(r,r.return,c)}if(r=i,a=r.updateQueue,a!==null){var o=r.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)nR(l[a],o)}catch(c){Ue(r,r.return,c)}}n&&s&64&&YR(i),Ku(i,i.return);break;case 27:ZR(i);case 26:case 5:Oa(a,i,n),n&&r===null&&s&4&&XR(i),Ku(i,i.return);break;case 12:Oa(a,i,n);break;case 31:Oa(a,i,n),n&&s&4&&nD(a,i);break;case 13:Oa(a,i,n),n&&s&4&&rD(a,i);break;case 22:i.memoizedState===null&&Oa(a,i,n),Ku(i,i.return);break;case 30:break;default:Oa(a,i,n)}t=t.sibling}}function ew(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Pd(n))}function tw(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pd(e))}function Cr(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)sD(e,t,n,r),t=t.sibling}function sD(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Cr(e,t,n,r),a&2048&&Rd(9,t);break;case 1:Cr(e,t,n,r);break;case 3:Cr(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Pd(e)));break;case 12:if(a&2048){Cr(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,o=i.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Ue(t,t.return,l)}}else Cr(e,t,n,r);break;case 31:Cr(e,t,n,r);break;case 13:Cr(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?i._visibility&2?Cr(e,t,n,r):Gu(e,t):i._visibility&2?Cr(e,t,n,r):(i._visibility|=2,Ho(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&ew(s,t);break;case 24:Cr(e,t,n,r),a&2048&&tw(t.alternate,t);break;default:Cr(e,t,n,r)}}function Ho(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,s=t,o=n,l=r,c=s.flags;switch(s.tag){case 0:case 11:case 15:Ho(i,s,o,l,a),Rd(8,s);break;case 23:break;case 22:var d=s.stateNode;s.memoizedState!==null?d._visibility&2?Ho(i,s,o,l,a):Gu(i,s):(d._visibility|=2,Ho(i,s,o,l,a)),a&&c&2048&&ew(s.alternate,s);break;case 24:Ho(i,s,o,l,a),a&&c&2048&&tw(s.alternate,s);break;default:Ho(i,s,o,l,a)}t=t.sibling}}function Gu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:Gu(n,r),a&2048&&ew(r.alternate,r);break;case 24:Gu(n,r),a&2048&&tw(r.alternate,r);break;default:Gu(n,r)}t=t.sibling}}var _u=8192;function Do(e,t,n){if(e.subtreeFlags&_u)for(e=e.child;e!==null;)oD(e,t,n),e=e.sibling}function oD(e,t,n){switch(e.tag){case 26:Do(e,t,n),e.flags&_u&&e.memoizedState!==null&&oB(n,Rr,e.memoizedState,e.memoizedProps);break;case 5:Do(e,t,n);break;case 3:case 4:var r=Rr;Rr=Zp(e.stateNode.containerInfo),Do(e,t,n),Rr=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=_u,_u=16777216,Do(e,t,n),_u=r):Do(e,t,n));break;default:Do(e,t,n)}}function lD(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function lu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Vt=r,uD(r,e)}lD(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)cD(e),e=e.sibling}function cD(e){switch(e.tag){case 0:case 11:case 15:lu(e),e.flags&2048&&es(9,e,e.return);break;case 3:lu(e);break;case 12:lu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,up(e)):lu(e);break;default:lu(e)}}function up(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Vt=r,uD(r,e)}lD(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:es(8,t,t.return),up(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,up(t));break;default:up(t)}e=e.sibling}}function uD(e,t){for(;Vt!==null;){var n=Vt;switch(n.tag){case 0:case 11:case 15:es(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:Pd(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Vt=r;else e:for(n=e;Vt!==null;){r=Vt;var a=r.sibling,i=r.return;if(eD(r),r===n){Vt=null;break e}if(a!==null){a.return=i,Vt=a;break e}Vt=i}}}var w8={getCacheForType:function(e){var t=tn(Nt),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return tn(Nt).controller.signal}},j8=typeof WeakMap=="function"?WeakMap:Map,Me=0,We=null,je=null,Te=0,Be=0,zn=null,Di=!1,Rc=!1,nw=!1,Qa=0,bt=0,ts=0,Ws=0,rw=0,Kn=0,ql=0,Yu=null,Tn=null,M0=!1,By=0,fD=0,qp=1/0,Kp=null,Vi=null,kt=0,Hi=null,Kl=null,Ua=0,R0=0,D0=null,dD=null,Wu=0,k0=null;function Xn(){return Me&2&&Te!==0?Te&-Te:he.T!==null?iw():SM()}function hD(){if(Kn===0)if(!(Te&536870912)||Ce){var e=dh;dh<<=1,!(dh&3932160)&&(dh=262144),Kn=e}else Kn=536870912;return e=er.current,e!==null&&(e.flags|=32),Kn}function _n(e,t,n){(e===We&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&(Gl(e,0),ki(e,Te,Kn,!1)),Nd(e,n),(!(Me&2)||e!==We)&&(e===We&&(!(Me&2)&&(Ws|=n),bt===4&&ki(e,Te,Kn,!1)),pa(e))}function pD(e,t,n){if(Me&6)throw Error(U(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Td(e,t),a=r?E8(e,t):Dv(e,t,!0),i=r;do{if(a===0){Rc&&!r&&ki(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!A8(n)){a=Dv(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;a=Yu;var l=o.current.memoizedState.isDehydrated;if(l&&(Gl(o,s).flags|=256),s=Dv(o,s,!1),s!==2){if(nw&&!l){o.errorRecoveryDisabledLanes|=i,Ws|=i,a=4;break e}i=Tn,Tn=a,i!==null&&(Tn===null?Tn=i:Tn.push.apply(Tn,i))}a=s}if(i=!1,a!==2)continue}}if(a===1){Gl(e,0),ki(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(U(345));case 4:if((t&4194048)!==t)break;case 6:ki(r,t,Kn,!Di);break e;case 2:Tn=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(a=By+300-Gn(),10<a)){if(ki(r,t,Kn,!Di),Cy(r,0,!0)!==0)break e;Ua=t,r.timeoutHandle=DD(D2.bind(null,r,n,Tn,Kp,M0,t,Kn,Ws,ql,Di,i,"Throttled",-0,0),a);break e}D2(r,n,Tn,Kp,M0,t,Kn,Ws,ql,Di,i,null,-0,0)}}break}while(!0);pa(e)}function D2(e,t,n,r,a,i,s,o,l,c,d,f,h,p){if(e.timeoutHandle=-1,f=t.subtreeFlags,f&8192||(f&16785408)===16785408){f={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ra},oD(t,i,f);var m=(i&62914560)===i?By-Gn():(i&4194048)===i?fD-Gn():0;if(m=lB(f,m),m!==null){Ua=i,e.cancelPendingCommit=m($2.bind(null,e,t,i,n,r,a,s,o,l,d,f,null,h,p)),ki(e,i,s,!c);return}}$2(e,t,i,n,r,a,s,o,l)}function A8(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!Jn(i(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ki(e,t,n,r){t&=~rw,t&=~Ws,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Wn(a),s=1<<i;r[i]=-1,a&=~s}n!==0&&vM(e,n,t)}function Uy(){return Me&6?!0:(Dd(0),!1)}function aw(){if(je!==null){if(Be===0)var e=je.return;else e=je,Da=wo=null,VS(e),vl=null,bf=0,e=je;for(;e!==null;)GR(e.alternate,e),e=e.return;je=null}}function Gl(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,H8(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Ua=0,aw(),We=e,je=n=Ia(e.current,null),Te=t,Be=0,zn=null,Di=!1,Rc=Td(e,t),nw=!1,ql=Kn=rw=Ws=ts=bt=0,Tn=Yu=null,M0=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Wn(r),i=1<<a;t|=e[a],r&=~i}return Qa=t,Ry(),n}function mD(e,t){Se=null,he.H=Sf,t===Mc||t===ky?(t=d2(),Be=3):t===$S?(t=d2(),Be=4):Be=t===ZS?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,zn=t,je===null&&(bt=1,Fp(e,pr(t,e.current)))}function yD(){var e=er.current;return e===null?!0:(Te&4194048)===Te?vr===null:(Te&62914560)===Te||Te&536870912?e===vr:!1}function gD(){var e=he.H;return he.H=Sf,e===null?Sf:e}function vD(){var e=he.A;return he.A=w8,e}function Gp(){bt=4,Di||(Te&4194048)!==Te&&er.current!==null||(Rc=!0),!(ts&134217727)&&!(Ws&134217727)||We===null||ki(We,Te,Kn,!1)}function Dv(e,t,n){var r=Me;Me|=2;var a=gD(),i=vD();(We!==e||Te!==t)&&(Kp=null,Gl(e,t)),t=!1;var s=bt;e:do try{if(Be!==0&&je!==null){var o=je,l=zn;switch(Be){case 8:aw(),s=6;break e;case 3:case 2:case 9:case 6:er.current===null&&(t=!0);var c=Be;if(Be=0,zn=null,rl(e,o,l,c),n&&Rc){s=0;break e}break;default:c=Be,Be=0,zn=null,rl(e,o,l,c)}}O8(),s=bt;break}catch(d){mD(e,d)}while(!0);return t&&e.shellSuspendCounter++,Da=wo=null,Me=r,he.H=a,he.A=i,je===null&&(We=null,Te=0,Ry()),s}function O8(){for(;je!==null;)bD(je)}function E8(e,t){var n=Me;Me|=2;var r=gD(),a=vD();We!==e||Te!==t?(Kp=null,qp=Gn()+500,Gl(e,t)):Rc=Td(e,t);e:do try{if(Be!==0&&je!==null){t=je;var i=zn;t:switch(Be){case 1:Be=0,zn=null,rl(e,t,i,1);break;case 2:case 9:if(f2(i)){Be=0,zn=null,k2(t);break}t=function(){Be!==2&&Be!==9||We!==e||(Be=7),pa(e)},i.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:f2(i)?(Be=0,zn=null,k2(t)):(Be=0,zn=null,rl(e,t,i,7));break;case 5:var s=null;switch(je.tag){case 26:s=je.memoizedState;case 5:case 27:var o=je;if(s?ID(s):o.stateNode.complete){Be=0,zn=null;var l=o.sibling;if(l!==null)je=l;else{var c=o.return;c!==null?(je=c,Fy(c)):je=null}break t}}Be=0,zn=null,rl(e,t,i,5);break;case 6:Be=0,zn=null,rl(e,t,i,6);break;case 8:aw(),bt=6;break e;default:throw Error(U(462))}}T8();break}catch(d){mD(e,d)}while(!0);return Da=wo=null,he.H=r,he.A=a,Me=n,je!==null?0:(We=null,Te=0,Ry(),bt)}function T8(){for(;je!==null&&!Xz();)bD(je)}function bD(e){var t=KR(e.alternate,e,Qa);e.memoizedProps=e.pendingProps,t===null?Fy(e):je=t}function k2(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=N2(n,t,t.pendingProps,t.type,void 0,Te);break;case 11:t=N2(n,t,t.pendingProps,t.type.render,t.ref,Te);break;case 5:VS(t);default:GR(n,t),t=je=GM(t,Qa),t=KR(n,t,Qa)}e.memoizedProps=e.pendingProps,t===null?Fy(e):je=t}function rl(e,t,n,r){Da=wo=null,VS(t),vl=null,bf=0;var a=t.return;try{if(m8(e,a,t,n,Te)){bt=1,Fp(e,pr(n,e.current)),je=null;return}}catch(i){if(a!==null)throw je=a,i;bt=1,Fp(e,pr(n,e.current)),je=null;return}t.flags&32768?(Ce||r===1?e=!0:Rc||Te&536870912?e=!1:(Di=e=!0,(r===2||r===9||r===3||r===6)&&(r=er.current,r!==null&&r.tag===13&&(r.flags|=16384))),xD(t,e)):Fy(t)}function Fy(e){var t=e;do{if(t.flags&32768){xD(t,Di);return}e=t.return;var n=v8(t.alternate,t,Qa);if(n!==null){je=n;return}if(t=t.sibling,t!==null){je=t;return}je=t=e}while(t!==null);bt===0&&(bt=5)}function xD(e,t){do{var n=b8(e.alternate,e);if(n!==null){n.flags&=32767,je=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){je=e;return}je=e=n}while(e!==null);bt=6,je=null}function $2(e,t,n,r,a,i,s,o,l){e.cancelPendingCommit=null;do Vy();while(kt!==0);if(Me&6)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(i=t.lanes|t.childLanes,i|=CS,sI(e,n,i,s,o,l),e===We&&(je=We=null,Te=0),Kl=t,Hi=e,Ua=n,R0=i,D0=a,dD=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,P8(Pp,function(){return OD(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=he.T,he.T=null,a=De.p,De.p=2,s=Me,Me|=4;try{x8(e,t,n)}finally{Me=s,De.p=a,he.T=r}}kt=1,SD(),wD(),jD()}}function SD(){if(kt===1){kt=0;var e=Hi,t=Kl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=he.T,he.T=null;var r=De.p;De.p=2;var a=Me;Me|=4;try{aD(t,e);var i=I0,s=IM(e.containerInfo),o=i.focusedElem,l=i.selectionRange;if(s!==o&&o&&o.ownerDocument&&zM(o.ownerDocument.documentElement,o)){if(l!==null&&NS(o)){var c=l.start,d=l.end;if(d===void 0&&(d=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(d,o.value.length);else{var f=o.ownerDocument||document,h=f&&f.defaultView||window;if(h.getSelection){var p=h.getSelection(),m=o.textContent.length,g=Math.min(l.start,m),v=l.end===void 0?g:Math.min(l.end,m);!p.extend&&g>v&&(s=v,v=g,g=s);var y=a2(o,g),b=a2(o,v);if(y&&b&&(p.rangeCount!==1||p.anchorNode!==y.node||p.anchorOffset!==y.offset||p.focusNode!==b.node||p.focusOffset!==b.offset)){var x=f.createRange();x.setStart(y.node,y.offset),p.removeAllRanges(),g>v?(p.addRange(x),p.extend(b.node,b.offset)):(x.setEnd(b.node,b.offset),p.addRange(x))}}}}for(f=[],p=o;p=p.parentNode;)p.nodeType===1&&f.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<f.length;o++){var w=f[o];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}tm=!!z0,I0=z0=null}finally{Me=a,De.p=r,he.T=n}}e.current=t,kt=2}}function wD(){if(kt===2){kt=0;var e=Hi,t=Kl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=he.T,he.T=null;var r=De.p;De.p=2;var a=Me;Me|=4;try{JR(e,t.alternate,t)}finally{Me=a,De.p=r,he.T=n}}kt=3}}function jD(){if(kt===4||kt===3){kt=0,Qz();var e=Hi,t=Kl,n=Ua,r=dD;t.subtreeFlags&10256||t.flags&10256?kt=5:(kt=0,Kl=Hi=null,AD(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&(Vi=null),SS(n),t=t.stateNode,Yn&&typeof Yn.onCommitFiberRoot=="function")try{Yn.onCommitFiberRoot(Ed,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=he.T,a=De.p,De.p=2,he.T=null;try{for(var i=e.onRecoverableError,s=0;s<r.length;s++){var o=r[s];i(o.value,{componentStack:o.stack})}}finally{he.T=t,De.p=a}}Ua&3&&Vy(),pa(e),a=e.pendingLanes,n&261930&&a&42?e===k0?Wu++:(Wu=0,k0=e):Wu=0,Dd(0)}}function AD(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Pd(t)))}function Vy(){return SD(),wD(),jD(),OD()}function OD(){if(kt!==5)return!1;var e=Hi,t=R0;R0=0;var n=SS(Ua),r=he.T,a=De.p;try{De.p=32>n?32:n,he.T=null,n=D0,D0=null;var i=Hi,s=Ua;if(kt=0,Kl=Hi=null,Ua=0,Me&6)throw Error(U(331));var o=Me;if(Me|=4,cD(i.current),sD(i,i.current,s,n),Me=o,Dd(0,!1),Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(Ed,i)}catch{}return!0}finally{De.p=a,he.T=r,AD(e,t)}}function L2(e,t,n){t=pr(n,t),t=N0(e.stateNode,t,2),e=Fi(e,t,2),e!==null&&(Nd(e,2),pa(e))}function Ue(e,t,n){if(e.tag===3)L2(e,e,n);else for(;t!==null;){if(t.tag===3){L2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Vi===null||!Vi.has(r))){e=pr(n,e),n=BR(2),r=Fi(t,n,2),r!==null&&(UR(n,r,t,e),Nd(r,2),pa(r));break}}t=t.return}}function kv(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new j8;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(nw=!0,a.add(n),e=N8.bind(null,e,t,n),t.then(e,e))}function N8(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,We===e&&(Te&n)===n&&(bt===4||bt===3&&(Te&62914560)===Te&&300>Gn()-By?!(Me&2)&&Gl(e,0):rw|=n,ql===Te&&(ql=0)),pa(e)}function ED(e,t){t===0&&(t=gM()),e=So(e,t),e!==null&&(Nd(e,t),pa(e))}function C8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),ED(e,n)}function _8(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(U(314))}r!==null&&r.delete(t),ED(e,n)}function P8(e,t){return bS(e,t)}var Yp=null,qo=null,$0=!1,Wp=!1,$v=!1,$i=0;function pa(e){e!==qo&&e.next===null&&(qo===null?Yp=qo=e:qo=qo.next=e),Wp=!0,$0||($0=!0,R8())}function Dd(e,t){if(!$v&&Wp){$v=!0;do for(var n=!1,r=Yp;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var s=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-Wn(42|e)+1)-1,i&=a&~(s&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,z2(r,i))}else i=Te,i=Cy(r,r===We?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||Td(r,i)||(n=!0,z2(r,i));r=r.next}while(n);$v=!1}}function M8(){TD()}function TD(){Wp=$0=!1;var e=0;$i!==0&&V8()&&(e=$i);for(var t=Gn(),n=null,r=Yp;r!==null;){var a=r.next,i=ND(r,t);i===0?(r.next=null,n===null?Yp=a:n.next=a,a===null&&(qo=n)):(n=r,(e!==0||i&3)&&(Wp=!0)),r=a}kt!==0&&kt!==5||Dd(e),$i!==0&&($i=0)}function ND(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var s=31-Wn(i),o=1<<s,l=a[s];l===-1?(!(o&n)||o&r)&&(a[s]=iI(o,t)):l<=t&&(e.expiredLanes|=o),i&=~o}if(t=We,n=Te,n=Cy(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&uv(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Td(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&uv(r),SS(n)){case 2:case 8:n=mM;break;case 32:n=Pp;break;case 268435456:n=yM;break;default:n=Pp}return r=CD.bind(null,e),n=bS(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&uv(r),e.callbackPriority=2,e.callbackNode=null,2}function CD(e,t){if(kt!==0&&kt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Vy()&&e.callbackNode!==n)return null;var r=Te;return r=Cy(e,e===We?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(pD(e,r,t),ND(e,Gn()),e.callbackNode!=null&&e.callbackNode===n?CD.bind(null,e):null)}function z2(e,t){if(Vy())return null;pD(e,t,!0)}function R8(){q8(function(){Me&6?bS(pM,M8):TD()})}function iw(){if($i===0){var e=Fl;e===0&&(e=fh,fh<<=1,!(fh&261888)&&(fh=256)),$i=e}return $i}function I2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:tp(""+e)}function B2(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function D8(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=I2((a[Mn]||null).action),s=r.submitter;s&&(t=(t=s[Mn]||null)?I2(t.formAction):s.getAttribute("formAction"),t!==null&&(i=t,s=null));var o=new _y("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if($i!==0){var l=s?B2(a,s):new FormData(a);E0(n,{pending:!0,data:l,method:a.method,action:i},null,l)}}else typeof i=="function"&&(o.preventDefault(),l=s?B2(a,s):new FormData(a),E0(n,{pending:!0,data:l,method:a.method,action:i},i,l))},currentTarget:a}]})}}for(var Lv=0;Lv<p0.length;Lv++){var zv=p0[Lv],k8=zv.toLowerCase(),$8=zv[0].toUpperCase()+zv.slice(1);Fr(k8,"on"+$8)}Fr(UM,"onAnimationEnd");Fr(FM,"onAnimationIteration");Fr(VM,"onAnimationStart");Fr("dblclick","onDoubleClick");Fr("focusin","onFocus");Fr("focusout","onBlur");Fr(ZI,"onTransitionRun");Fr(JI,"onTransitionStart");Fr(e8,"onTransitionCancel");Fr(HM,"onTransitionEnd");Bl("onMouseEnter",["mouseout","mouseover"]);Bl("onMouseLeave",["mouseout","mouseover"]);Bl("onPointerEnter",["pointerout","pointerover"]);Bl("onPointerLeave",["pointerout","pointerover"]);vo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));vo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));vo("onBeforeInput",["compositionend","keypress","textInput","paste"]);vo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));vo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));vo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var wf="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(" "),L8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(wf));function _D(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=c;try{i(a)}catch(d){Rp(d)}a.currentTarget=null,i=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,c=o.currentTarget,o=o.listener,l!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=c;try{i(a)}catch(d){Rp(d)}a.currentTarget=null,i=l}}}}function we(e,t){var n=t[s0];n===void 0&&(n=t[s0]=new Set);var r=e+"__bubble";n.has(r)||(PD(t,e,2,!1),n.add(r))}function Iv(e,t,n){var r=0;t&&(r|=4),PD(n,e,r,t)}var Sh="_reactListening"+Math.random().toString(36).slice(2);function sw(e){if(!e[Sh]){e[Sh]=!0,wM.forEach(function(n){n!=="selectionchange"&&(L8.has(n)||Iv(n,!1,e),Iv(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Sh]||(t[Sh]=!0,Iv("selectionchange",!1,t))}}function PD(e,t,n,r){switch(HD(t)){case 2:var a=fB;break;case 8:a=dB;break;default:a=uw}n=a.bind(null,t,n,e),a=void 0,!f0||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function Bv(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===a)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;o!==null;){if(s=Yo(o),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=i=s;continue e}o=o.parentNode}}r=r.return}_M(function(){var c=i,d=AS(n),f=[];e:{var h=qM.get(e);if(h!==void 0){var p=_y,m=e;switch(e){case"keypress":if(rp(n)===0)break e;case"keydown":case"keyup":p=_I;break;case"focusin":m="focus",p=mv;break;case"focusout":m="blur",p=mv;break;case"beforeblur":case"afterblur":p=mv;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=YA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=vI;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=RI;break;case UM:case FM:case VM:p=SI;break;case HM:p=kI;break;case"scroll":case"scrollend":p=yI;break;case"wheel":p=LI;break;case"copy":case"cut":case"paste":p=jI;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=XA;break;case"toggle":case"beforetoggle":p=II}var g=(t&4)!==0,v=!g&&(e==="scroll"||e==="scrollend"),y=g?h!==null?h+"Capture":null:h;g=[];for(var b=c,x;b!==null;){var w=b;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||y===null||(w=pf(b,y),w!=null&&g.push(jf(b,w,x))),v)break;b=b.return}0<g.length&&(h=new p(h,m,null,n,d),f.push({event:h,listeners:g}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==u0&&(m=n.relatedTarget||n.fromElement)&&(Yo(m)||m[Cc]))break e;if((p||h)&&(h=d.window===d?d:(h=d.ownerDocument)?h.defaultView||h.parentWindow:window,p?(m=n.relatedTarget||n.toElement,p=c,m=m?Yo(m):null,m!==null&&(v=Od(m),g=m.tag,m!==v||g!==5&&g!==27&&g!==6)&&(m=null)):(p=null,m=c),p!==m)){if(g=YA,w="onMouseLeave",y="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(g=XA,w="onPointerLeave",y="onPointerEnter",b="pointer"),v=p==null?h:Nu(p),x=m==null?h:Nu(m),h=new g(w,b+"leave",p,n,d),h.target=v,h.relatedTarget=x,w=null,Yo(d)===c&&(g=new g(y,b+"enter",m,n,d),g.target=x,g.relatedTarget=v,w=g),v=w,p&&m)t:{for(g=z8,y=p,b=m,x=0,w=y;w;w=g(w))x++;w=0;for(var S=b;S;S=g(S))w++;for(;0<x-w;)y=g(y),x--;for(;0<w-x;)b=g(b),w--;for(;x--;){if(y===b||b!==null&&y===b.alternate){g=y;break t}y=g(y),b=g(b)}g=null}else g=null;p!==null&&U2(f,h,p,g,!1),m!==null&&v!==null&&U2(f,v,m,g,!0)}}e:{if(h=c?Nu(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var j=e2;else if(JA(h))if($M)j=WI;else{j=GI;var O=KI}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?c&&jS(c.elementType)&&(j=e2):j=YI;if(j&&(j=j(e,c))){kM(f,j,n,d);break e}O&&O(e,h,c),e==="focusout"&&c&&h.type==="number"&&c.memoizedProps.value!=null&&c0(h,"number",h.value)}switch(O=c?Nu(c):window,e){case"focusin":(JA(O)||O.contentEditable==="true")&&(Qo=O,d0=c,Bu=null);break;case"focusout":Bu=d0=Qo=null;break;case"mousedown":h0=!0;break;case"contextmenu":case"mouseup":case"dragend":h0=!1,i2(f,n,d);break;case"selectionchange":if(QI)break;case"keydown":case"keyup":i2(f,n,d)}var E;if(TS)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Xo?RM(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(MM&&n.locale!=="ko"&&(Xo||T!=="onCompositionStart"?T==="onCompositionEnd"&&Xo&&(E=PM()):(Ri=d,OS="value"in Ri?Ri.value:Ri.textContent,Xo=!0)),O=Xp(c,T),0<O.length&&(T=new WA(T,e,null,n,d),f.push({event:T,listeners:O}),E?T.data=E:(E=DM(n),E!==null&&(T.data=E)))),(E=UI?FI(e,n):VI(e,n))&&(T=Xp(c,"onBeforeInput"),0<T.length&&(O=new WA("onBeforeInput","beforeinput",null,n,d),f.push({event:O,listeners:T}),O.data=E)),D8(f,e,c,n,d)}_D(f,t)})}function jf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Xp(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=pf(e,n),a!=null&&r.unshift(jf(e,a,i)),a=pf(e,t),a!=null&&r.push(jf(e,a,i))),e.tag===3)return r;e=e.return}return[]}function z8(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function U2(e,t,n,r,a){for(var i=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(o=o.tag,l!==null&&l===r)break;o!==5&&o!==26&&o!==27||c===null||(l=c,a?(c=pf(n,i),c!=null&&s.unshift(jf(n,c,l))):a||(c=pf(n,i),c!=null&&s.push(jf(n,c,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var I8=/\r\n?/g,B8=/\u0000|\uFFFD/g;function F2(e){return(typeof e=="string"?e:""+e).replace(I8,`
`).replace(B8,"")}function MD(e,t){return t=F2(t),F2(e)===t}function qe(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||Ul(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&Ul(e,""+r);break;case"className":ph(e,"class",r);break;case"tabIndex":ph(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ph(e,n,r);break;case"style":CM(e,r,i);break;case"data":if(t!=="object"){ph(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=tp(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof i=="function"&&(n==="formAction"?(t!=="input"&&qe(e,t,"name",a.name,a,null),qe(e,t,"formEncType",a.formEncType,a,null),qe(e,t,"formMethod",a.formMethod,a,null),qe(e,t,"formTarget",a.formTarget,a,null)):(qe(e,t,"encType",a.encType,a,null),qe(e,t,"method",a.method,a,null),qe(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=tp(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Ra);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=tp(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":we("beforetoggle",e),we("toggle",e),ep(e,"popover",r);break;case"xlinkActuate":ba(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ba(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ba(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ba(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ba(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ba(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ba(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ba(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ba(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":ep(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=pI.get(n)||n,ep(e,n,r))}}function L0(e,t,n,r,a,i){switch(n){case"style":CM(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"children":typeof r=="string"?Ul(e,r):(typeof r=="number"||typeof r=="bigint")&&Ul(e,""+r);break;case"onScroll":r!=null&&we("scroll",e);break;case"onScrollEnd":r!=null&&we("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Ra);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!jM.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),i=e[Mn]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof r=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):ep(e,n,r)}}}function nn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":we("error",e),we("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var s=n[i];if(s!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:qe(e,t,i,s,n,null)}}a&&qe(e,t,"srcSet",n.srcSet,n,null),r&&qe(e,t,"src",n.src,n,null);return;case"input":we("invalid",e);var o=i=s=a=null,l=null,c=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case"name":a=d;break;case"type":s=d;break;case"checked":l=d;break;case"defaultChecked":c=d;break;case"value":i=d;break;case"defaultValue":o=d;break;case"children":case"dangerouslySetInnerHTML":if(d!=null)throw Error(U(137,t));break;default:qe(e,t,r,d,n,null)}}EM(e,i,o,l,c,s,a,!1);return;case"select":we("invalid",e),r=s=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":s=o;break;case"multiple":r=o;default:qe(e,t,a,o,n,null)}t=i,n=s,e.multiple=!!r,t!=null?ml(e,!!r,t,!1):n!=null&&ml(e,!!r,n,!0);return;case"textarea":we("invalid",e),i=a=r=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":r=o;break;case"defaultValue":a=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(U(91));break;default:qe(e,t,s,o,n,null)}NM(e,r,a,i);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:qe(e,t,l,r,n,null)}return;case"dialog":we("beforetoggle",e),we("toggle",e),we("cancel",e),we("close",e);break;case"iframe":case"object":we("load",e);break;case"video":case"audio":for(r=0;r<wf.length;r++)we(wf[r],e);break;case"image":we("error",e),we("load",e);break;case"details":we("toggle",e);break;case"embed":case"source":case"link":we("error",e),we("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:qe(e,t,c,r,n,null)}return;default:if(jS(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&L0(e,t,d,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&qe(e,t,o,r,n,null))}function U8(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,s=null,o=null,l=null,c=null,d=null;for(p in n){var f=n[p];if(n.hasOwnProperty(p)&&f!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":l=f;default:r.hasOwnProperty(p)||qe(e,t,p,null,r,f)}}for(var h in r){var p=r[h];if(f=n[h],r.hasOwnProperty(h)&&(p!=null||f!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":c=p;break;case"defaultChecked":d=p;break;case"value":s=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,t));break;default:p!==f&&qe(e,t,h,p,r,f)}}l0(e,s,o,l,c,d,i,a);return;case"select":p=s=o=h=null;for(i in n)if(l=n[i],n.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":p=l;default:r.hasOwnProperty(i)||qe(e,t,i,null,r,l)}for(a in r)if(i=r[a],l=n[a],r.hasOwnProperty(a)&&(i!=null||l!=null))switch(a){case"value":h=i;break;case"defaultValue":o=i;break;case"multiple":s=i;default:i!==l&&qe(e,t,a,i,r,l)}t=o,n=s,r=p,h!=null?ml(e,!!n,h,!1):!!r!=!!n&&(t!=null?ml(e,!!n,t,!0):ml(e,!!n,n?[]:"",!1));return;case"textarea":p=h=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:qe(e,t,o,null,r,a)}for(s in r)if(a=r[s],i=n[s],r.hasOwnProperty(s)&&(a!=null||i!=null))switch(s){case"value":h=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(U(91));break;default:a!==i&&qe(e,t,s,a,r,i)}TM(e,h,p);return;case"option":for(var m in n)if(h=n[m],n.hasOwnProperty(m)&&h!=null&&!r.hasOwnProperty(m))switch(m){case"selected":e.selected=!1;break;default:qe(e,t,m,null,r,h)}for(l in r)if(h=r[l],p=n[l],r.hasOwnProperty(l)&&h!==p&&(h!=null||p!=null))switch(l){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:qe(e,t,l,h,r,p)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var g in n)h=n[g],n.hasOwnProperty(g)&&h!=null&&!r.hasOwnProperty(g)&&qe(e,t,g,null,r,h);for(c in r)if(h=r[c],p=n[c],r.hasOwnProperty(c)&&h!==p&&(h!=null||p!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(U(137,t));break;default:qe(e,t,c,h,r,p)}return;default:if(jS(t)){for(var v in n)h=n[v],n.hasOwnProperty(v)&&h!==void 0&&!r.hasOwnProperty(v)&&L0(e,t,v,void 0,r,h);for(d in r)h=r[d],p=n[d],!r.hasOwnProperty(d)||h===p||h===void 0&&p===void 0||L0(e,t,d,h,r,p);return}}for(var y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&qe(e,t,y,null,r,h);for(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h==null&&p==null||qe(e,t,f,h,r,p)}function V2(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function F8(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],i=a.transferSize,s=a.initiatorType,o=a.duration;if(i&&o&&V2(s)){for(s=0,o=a.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>o)break;var d=l.transferSize,f=l.initiatorType;d&&V2(f)&&(l=l.responseEnd,s+=d*(l<o?1:(o-c)/(l-c)))}if(--r,t+=8*(i+s)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var z0=null,I0=null;function Qp(e){return e.nodeType===9?e:e.ownerDocument}function H2(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function RD(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function B0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Uv=null;function V8(){var e=window.event;return e&&e.type==="popstate"?e===Uv?!1:(Uv=e,!0):(Uv=null,!1)}var DD=typeof setTimeout=="function"?setTimeout:void 0,H8=typeof clearTimeout=="function"?clearTimeout:void 0,q2=typeof Promise=="function"?Promise:void 0,q8=typeof queueMicrotask=="function"?queueMicrotask:typeof q2<"u"?function(e){return q2.resolve(null).then(e).catch(K8)}:DD;function K8(e){setTimeout(function(){throw e})}function as(e){return e==="head"}function K2(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),Wl(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")Xu(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Xu(n);for(var i=n.firstChild;i;){var s=i.nextSibling,o=i.nodeName;i[Cd]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=s}}else n==="body"&&Xu(e.ownerDocument.body);n=a}while(n);Wl(t)}function G2(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function U0(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":U0(n),wS(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function G8(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[Cd])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=br(e.nextSibling),e===null)break}return null}function Y8(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=br(e.nextSibling),e===null))return null;return e}function kD(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=br(e.nextSibling),e===null))return null;return e}function F0(e){return e.data==="$?"||e.data==="$~"}function V0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function W8(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function br(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var H0=null;function Y2(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return br(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function W2(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function $D(e,t,n){switch(t=Qp(n),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function Xu(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);wS(e)}var xr=new Map,X2=new Set;function Zp(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var ri=De.d;De.d={f:X8,r:Q8,D:Z8,C:J8,L:eB,m:tB,X:rB,S:nB,M:aB};function X8(){var e=ri.f(),t=Uy();return e||t}function Q8(e){var t=_c(e);t!==null&&t.tag===5&&t.type==="form"?CR(t):ri.r(e)}var Dc=typeof document>"u"?null:document;function LD(e,t,n){var r=Dc;if(r&&typeof t=="string"&&t){var a=hr(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),X2.has(a)||(X2.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),nn(t,"link",e),Ht(t),r.head.appendChild(t)))}}function Z8(e){ri.D(e),LD("dns-prefetch",e,null)}function J8(e,t){ri.C(e,t),LD("preconnect",e,t)}function eB(e,t,n){ri.L(e,t,n);var r=Dc;if(r&&e&&t){var a='link[rel="preload"][as="'+hr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+hr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+hr(n.imageSizes)+'"]')):a+='[href="'+hr(e)+'"]';var i=a;switch(t){case"style":i=Yl(e);break;case"script":i=kc(e)}xr.has(i)||(e=st({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),xr.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(kd(i))||t==="script"&&r.querySelector($d(i))||(t=r.createElement("link"),nn(t,"link",e),Ht(t),r.head.appendChild(t)))}}function tB(e,t){ri.m(e,t);var n=Dc;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+hr(r)+'"][href="'+hr(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=kc(e)}if(!xr.has(i)&&(e=st({rel:"modulepreload",href:e},t),xr.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector($d(i)))return}r=n.createElement("link"),nn(r,"link",e),Ht(r),n.head.appendChild(r)}}}function nB(e,t,n){ri.S(e,t,n);var r=Dc;if(r&&e){var a=pl(r).hoistableStyles,i=Yl(e);t=t||"default";var s=a.get(i);if(!s){var o={loading:0,preload:null};if(s=r.querySelector(kd(i)))o.loading=5;else{e=st({rel:"stylesheet",href:e,"data-precedence":t},n),(n=xr.get(i))&&ow(e,n);var l=s=r.createElement("link");Ht(l),nn(l,"link",e),l._p=new Promise(function(c,d){l.onload=c,l.onerror=d}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,fp(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:o},a.set(i,s)}}}function rB(e,t){ri.X(e,t);var n=Dc;if(n&&e){var r=pl(n).hoistableScripts,a=kc(e),i=r.get(a);i||(i=n.querySelector($d(a)),i||(e=st({src:e,async:!0},t),(t=xr.get(a))&&lw(e,t),i=n.createElement("script"),Ht(i),nn(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function aB(e,t){ri.M(e,t);var n=Dc;if(n&&e){var r=pl(n).hoistableScripts,a=kc(e),i=r.get(a);i||(i=n.querySelector($d(a)),i||(e=st({src:e,async:!0,type:"module"},t),(t=xr.get(a))&&lw(e,t),i=n.createElement("script"),Ht(i),nn(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function Q2(e,t,n,r){var a=(a=Ii.current)?Zp(a):null;if(!a)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=Yl(n.href),n=pl(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=Yl(n.href);var i=pl(a).hoistableStyles,s=i.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,s),(i=a.querySelector(kd(e)))&&!i._p&&(s.instance=i,s.state.loading=5),xr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},xr.set(e,n),i||iB(a,e,n,s.state))),t&&r===null)throw Error(U(528,""));return s}if(t&&r!==null)throw Error(U(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=kc(n),n=pl(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,e))}}function Yl(e){return'href="'+hr(e)+'"'}function kd(e){return'link[rel="stylesheet"]['+e+"]"}function zD(e){return st({},e,{"data-precedence":e.precedence,precedence:null})}function iB(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),nn(t,"link",n),Ht(t),e.head.appendChild(t))}function kc(e){return'[src="'+hr(e)+'"]'}function $d(e){return"script[async]"+e}function Z2(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+hr(n.href)+'"]');if(r)return t.instance=r,Ht(r),r;var a=st({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),Ht(r),nn(r,"style",a),fp(r,n.precedence,e),t.instance=r;case"stylesheet":a=Yl(n.href);var i=e.querySelector(kd(a));if(i)return t.state.loading|=4,t.instance=i,Ht(i),i;r=zD(n),(a=xr.get(a))&&ow(r,a),i=(e.ownerDocument||e).createElement("link"),Ht(i);var s=i;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),nn(i,"link",r),t.state.loading|=4,fp(i,n.precedence,e),t.instance=i;case"script":return i=kc(n.src),(a=e.querySelector($d(i)))?(t.instance=a,Ht(a),a):(r=n,(a=xr.get(i))&&(r=st({},n),lw(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),Ht(a),nn(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,fp(r,n.precedence,e));return t.instance}function fp(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,s=0;s<r.length;s++){var o=r[s];if(o.dataset.precedence===t)i=o;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function ow(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function lw(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var dp=null;function J2(e,t,n){if(dp===null){var r=new Map,a=dp=new Map;a.set(n,r)}else a=dp,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[Cd]||i[Zt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var s=i.getAttribute(t)||"";s=e+s;var o=r.get(s);o?o.push(i):r.set(s,[i])}}return r}function eO(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function sB(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function ID(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function oB(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=Yl(r.href),i=t.querySelector(kd(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Jp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,Ht(i);return}i=t.ownerDocument||t,r=zD(r),(a=xr.get(a))&&ow(r,a),i=i.createElement("link"),Ht(i);var s=i;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),nn(i,"link",r),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Fv=0;function lB(e,t){return e.stylesheets&&e.count===0&&hp(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&hp(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&Fv===0&&(Fv=62500*F8());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&hp(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>Fv?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Jp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)hp(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var em=null;function hp(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,em=new Map,t.forEach(cB,e),em=null,Jp.call(e))}function cB(e,t){if(!(t.state.loading&4)){var n=em.get(e);if(n)var r=n.get(null);else{n=new Map,em.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var s=a[i];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}a=t.instance,s=a.getAttribute("data-precedence"),i=n.get(s)||r,i===r&&n.set(null,a),n.set(s,a),this.count++,r=Jp.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var Af={$$typeof:Ma,Provider:null,Consumer:null,_currentValue:qs,_currentValue2:qs,_threadCount:0};function uB(e,t,n,r,a,i,s,o,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=fv(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=fv(0),this.hiddenUpdates=fv(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function BD(e,t,n,r,a,i,s,o,l,c,d,f){return e=new uB(e,t,n,s,l,c,d,f,o),t=1,i===!0&&(t|=24),i=Hn(3,null,null,t),e.current=i,i.stateNode=e,t=DS(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},LS(i),e}function UD(e){return e?(e=el,e):el}function FD(e,t,n,r,a,i){a=UD(a),r.context===null?r.context=a:r.pendingContext=a,r=Ui(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Fi(e,r,t),n!==null&&(_n(n,e,t),Fu(n,e,t))}function tO(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function cw(e,t){tO(e,t),(e=e.alternate)&&tO(e,t)}function VD(e){if(e.tag===13||e.tag===31){var t=So(e,67108864);t!==null&&_n(t,e,67108864),cw(e,67108864)}}function nO(e){if(e.tag===13||e.tag===31){var t=Xn();t=xS(t);var n=So(e,t);n!==null&&_n(n,e,t),cw(e,t)}}var tm=!0;function fB(e,t,n,r){var a=he.T;he.T=null;var i=De.p;try{De.p=2,uw(e,t,n,r)}finally{De.p=i,he.T=a}}function dB(e,t,n,r){var a=he.T;he.T=null;var i=De.p;try{De.p=8,uw(e,t,n,r)}finally{De.p=i,he.T=a}}function uw(e,t,n,r){if(tm){var a=q0(r);if(a===null)Bv(e,t,r,nm,n),rO(e,r);else if(pB(a,e,t,n,r))r.stopPropagation();else if(rO(e,r),t&4&&-1<hB.indexOf(e)){for(;a!==null;){var i=_c(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var s=vs(i.pendingLanes);if(s!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-Wn(s);o.entanglements[1]|=l,s&=~l}pa(i),!(Me&6)&&(qp=Gn()+500,Dd(0))}}break;case 31:case 13:o=So(i,2),o!==null&&_n(o,i,2),Uy(),cw(i,2)}if(i=q0(r),i===null&&Bv(e,t,r,nm,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else Bv(e,t,r,null,n)}}function q0(e){return e=AS(e),fw(e)}var nm=null;function fw(e){if(nm=null,e=Yo(e),e!==null){var t=Od(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=cM(t),e!==null)return e;e=null}else if(n===31){if(e=uM(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nm=e,null}function HD(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Zz()){case pM:return 2;case mM:return 8;case Pp:case Jz:return 32;case yM:return 268435456;default:return 32}default:return 32}}var K0=!1,qi=null,Ki=null,Gi=null,Of=new Map,Ef=new Map,wi=[],hB="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 rO(e,t){switch(e){case"focusin":case"focusout":qi=null;break;case"dragenter":case"dragleave":Ki=null;break;case"mouseover":case"mouseout":Gi=null;break;case"pointerover":case"pointerout":Of.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ef.delete(t.pointerId)}}function cu(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=_c(t),t!==null&&VD(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function pB(e,t,n,r,a){switch(t){case"focusin":return qi=cu(qi,e,t,n,r,a),!0;case"dragenter":return Ki=cu(Ki,e,t,n,r,a),!0;case"mouseover":return Gi=cu(Gi,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return Of.set(i,cu(Of.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,Ef.set(i,cu(Ef.get(i)||null,e,t,n,r,a)),!0}return!1}function qD(e){var t=Yo(e.target);if(t!==null){var n=Od(t);if(n!==null){if(t=n.tag,t===13){if(t=cM(n),t!==null){e.blockedOn=t,UA(e.priority,function(){nO(n)});return}}else if(t===31){if(t=uM(n),t!==null){e.blockedOn=t,UA(e.priority,function(){nO(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function pp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=q0(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);u0=r,n.target.dispatchEvent(r),u0=null}else return t=_c(n),t!==null&&VD(t),e.blockedOn=n,!1;t.shift()}return!0}function aO(e,t,n){pp(e)&&n.delete(t)}function mB(){K0=!1,qi!==null&&pp(qi)&&(qi=null),Ki!==null&&pp(Ki)&&(Ki=null),Gi!==null&&pp(Gi)&&(Gi=null),Of.forEach(aO),Ef.forEach(aO)}function wh(e,t){e.blockedOn===t&&(e.blockedOn=null,K0||(K0=!0,Lt.unstable_scheduleCallback(Lt.unstable_NormalPriority,mB)))}var jh=null;function iO(e){jh!==e&&(jh=e,Lt.unstable_scheduleCallback(Lt.unstable_NormalPriority,function(){jh===e&&(jh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(fw(r||n)===null)continue;break}var i=_c(n);i!==null&&(e.splice(t,3),t-=3,E0(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Wl(e){function t(l){return wh(l,e)}qi!==null&&wh(qi,e),Ki!==null&&wh(Ki,e),Gi!==null&&wh(Gi,e),Of.forEach(t),Ef.forEach(t);for(var n=0;n<wi.length;n++){var r=wi[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<wi.length&&(n=wi[0],n.blockedOn===null);)qD(n),n.blockedOn===null&&wi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],i=n[r+1],s=a[Mn]||null;if(typeof i=="function")s||iO(n);else if(s){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,s=i[Mn]||null)o=s.formAction;else if(fw(a)!==null)continue}else o=s.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),iO(n)}}}function KD(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(s){return a=s})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function dw(e){this._internalRoot=e}Hy.prototype.render=dw.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,r=Xn();FD(n,r,e,t,null,null)};Hy.prototype.unmount=dw.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;FD(e.current,2,null,e,null,null),Uy(),t[Cc]=null}};function Hy(e){this._internalRoot=e}Hy.prototype.unstable_scheduleHydration=function(e){if(e){var t=SM();e={blockedOn:null,target:e,priority:t};for(var n=0;n<wi.length&&t!==0&&t<wi[n].priority;n++);wi.splice(n,0,e),n===0&&qD(e)}};var sO=oM.version;if(sO!=="19.2.7")throw Error(U(527,sO,"19.2.7"));De.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=qz(t),e=e!==null?fM(e):null,e=e===null?null:e.stateNode,e};var yB={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ah=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ah.isDisabled&&Ah.supportsFiber)try{Ed=Ah.inject(yB),Yn=Ah}catch{}}Ty.createRoot=function(e,t){if(!lM(e))throw Error(U(299));var n=!1,r="",a=LR,i=zR,s=IR;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=BD(e,1,!1,null,null,n,r,null,a,i,s,KD),e[Cc]=t.current,sw(e),new dw(t)};Ty.hydrateRoot=function(e,t,n){if(!lM(e))throw Error(U(299));var r=!1,a="",i=LR,s=zR,o=IR,l=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),t=BD(e,1,!0,t,n??null,r,a,l,i,s,o,KD),t.context=UD(null),n=t.current,r=Xn(),r=xS(r),a=Ui(r),a.callback=null,Fi(n,a,r),n=r,t.current.lanes=n,Nd(t,n),pa(t),e[Cc]=t.current,sw(e),new Hy(t)};Ty.version="19.2.7";function GD(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(GD)}catch(e){console.error(e)}}GD(),tM.exports=Ty;var gB=tM.exports;const vB=Ie(gB);var Ld=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},$s,Ai,El,$P,bB=($P=class extends Ld{constructor(){super();ce(this,$s);ce(this,Ai);ce(this,El);ee(this,El,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){R(this,Ai)||this.setEventListener(R(this,El))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Ai))==null||t.call(this),ee(this,Ai,void 0))}setEventListener(t){var n;ee(this,El,t),(n=R(this,Ai))==null||n.call(this),ee(this,Ai,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){R(this,$s)!==t&&(ee(this,$s,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof R(this,$s)=="boolean"?R(this,$s):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},$s=new WeakMap,Ai=new WeakMap,El=new WeakMap,$P),hw=new bB,xB={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},Oi,fS,LP,SB=(LP=class{constructor(){ce(this,Oi,xB);ce(this,fS,!1)}setTimeoutProvider(e){ee(this,Oi,e)}setTimeout(e,t){return R(this,Oi).setTimeout(e,t)}clearTimeout(e){R(this,Oi).clearTimeout(e)}setInterval(e,t){return R(this,Oi).setInterval(e,t)}clearInterval(e){R(this,Oi).clearInterval(e)}},Oi=new WeakMap,fS=new WeakMap,LP),Ts=new SB;function wB(e){setTimeout(e,0)}var jB=typeof window>"u"||"Deno"in globalThis;function Nn(){}function AB(e,t){return typeof e=="function"?e(t):e}function G0(e){return typeof e=="number"&&e>=0&&e!==1/0}function YD(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Yi(e,t){return typeof e=="function"?e(t):e}function Un(e,t){return typeof e=="function"?e(t):e}function oO(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==pw(s,t.options))return!1}else if(!Nf(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||i&&!i(t))}function lO(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(Tf(t.options.mutationKey)!==Tf(i))return!1}else if(!Nf(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function pw(e,t){return((t==null?void 0:t.queryKeyHashFn)||Tf)(e)}function Tf(e){return JSON.stringify(e,(t,n)=>W0(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function Nf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>Nf(e[n],t[n])):!1}var OB=Object.prototype.hasOwnProperty;function WD(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=cO(e)&&cO(t);if(!r&&!(W0(e)&&W0(t)))return t;const i=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),o=s.length,l=r?new Array(o):{};let c=0;for(let d=0;d<o;d++){const f=r?d:s[d],h=e[f],p=t[f];if(h===p){l[f]=h,(r?d<i:OB.call(e,f))&&c++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){l[f]=p;continue}const m=WD(h,p,n+1);l[f]=m,m===h&&c++}return i===o&&c===i?e:l}function Y0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function cO(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function W0(e){if(!uO(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!uO(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function uO(e){return Object.prototype.toString.call(e)==="[object Object]"}function EB(e){return new Promise(t=>{Ts.setTimeout(t,e)})}function X0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?WD(e,t):t}function TB(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function NB(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var mw=Symbol();function XD(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===mw?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function QD(e,t){return typeof e=="function"?e(...t):!!e}function CB(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var Cf=(()=>{let e=()=>jB;return{isServer(){return e()},setIsServer(t){e=t}}})();function Q0(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var _B=wB;function PB(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=_B;const i=o=>{t?e.push(o):a(()=>{n(o)})},s=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||s()}return l},batchCalls:o=>(...l)=>{i(()=>{o(...l)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var Qt=PB(),Tl,Ei,Nl,zP,MB=(zP=class extends Ld{constructor(){super();ce(this,Tl,!0);ce(this,Ei);ce(this,Nl);ee(this,Nl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){R(this,Ei)||this.setEventListener(R(this,Nl))}onUnsubscribe(){var t;this.hasListeners()||((t=R(this,Ei))==null||t.call(this),ee(this,Ei,void 0))}setEventListener(t){var n;ee(this,Nl,t),(n=R(this,Ei))==null||n.call(this),ee(this,Ei,t(this.setOnline.bind(this)))}setOnline(t){R(this,Tl)!==t&&(ee(this,Tl,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return R(this,Tl)}},Tl=new WeakMap,Ei=new WeakMap,Nl=new WeakMap,zP),rm=new MB;function RB(e){return Math.min(1e3*2**e,3e4)}function ZD(e){return(e??"online")==="online"?rm.isOnline():!0}var Z0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function JD(e){let t=!1,n=0,r;const a=Q0(),i=()=>a.status!=="pending",s=g=>{var v;if(!i()){const y=new Z0(g);h(y),(v=e.onCancel)==null||v.call(e,y)}},o=()=>{t=!0},l=()=>{t=!1},c=()=>hw.isFocused()&&(e.networkMode==="always"||rm.isOnline())&&e.canRun(),d=()=>ZD(e.networkMode)&&e.canRun(),f=g=>{i()||(r==null||r(),a.resolve(g))},h=g=>{i()||(r==null||r(),a.reject(g))},p=()=>new Promise(g=>{var v;r=y=>{(i()||c())&&g(y)},(v=e.onPause)==null||v.call(e)}).then(()=>{var g;r=void 0,i()||(g=e.onContinue)==null||g.call(e)}),m=()=>{if(i())return;let g;const v=n===0?e.initialPromise:void 0;try{g=v??e.fn()}catch(y){g=Promise.reject(y)}Promise.resolve(g).then(f).catch(y=>{var j;if(i())return;const b=e.retry??(Cf.isServer()?0:3),x=e.retryDelay??RB,w=typeof x=="function"?x(n,y):x,S=b===!0||typeof b=="number"&&n<b||typeof b=="function"&&b(n,y);if(t||!S){h(y);return}n++,(j=e.onFail)==null||j.call(e,n,y),EB(w).then(()=>c()?void 0:p()).then(()=>{t?h(y):m()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(r==null||r(),a),cancelRetry:o,continueRetry:l,canStart:d,start:()=>(d()?m():p().then(m),a)}}var Ls,IP,ek=(IP=class{constructor(){ce(this,Ls)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),G0(this.gcTime)&&ee(this,Ls,Ts.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Cf.isServer()?1/0:5*60*1e3))}clearGcTimeout(){R(this,Ls)!==void 0&&(Ts.clearTimeout(R(this,Ls)),ee(this,Ls,void 0))}},Ls=new WeakMap,IP);function DB(e){return{onFetch:(t,n)=>{var d,f,h,p,m;const r=t.options,a=(h=(f=(d=t.fetchOptions)==null?void 0:d.meta)==null?void 0:f.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((m=t.state.data)==null?void 0:m.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const c=async()=>{let g=!1;const v=x=>{CB(x,()=>t.signal,()=>g=!0)},y=XD(t.options,t.fetchOptions),b=async(x,w,S)=>{if(g)return Promise.reject(t.signal.reason);if(w==null&&x.pages.length)return Promise.resolve(x);const O=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};return v(M),M})(),E=await y(O),{maxPages:T}=t.options,N=S?NB:TB;return{pages:N(x.pages,E,T),pageParams:N(x.pageParams,w,T)}};if(a&&i.length){const x=a==="backward",w=x?kB:fO,S={pages:i,pageParams:s},j=w(r,S);o=await b(S,j,x)}else{const x=e??i.length;do{const w=l===0?s[0]??r.initialPageParam:fO(r,o);if(l>0&&w==null)break;o=await b(o,w),l++}while(l<x)}return o};t.options.persister?t.fetchFn=()=>{var g,v;return(v=(g=t.options).persister)==null?void 0:v.call(g,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function fO(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function kB(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var Cl,zs,_l,lr,Is,Bt,xd,Bs,Bn,tk,Ea,BP,$B=(BP=class extends ek{constructor(t){super();ce(this,Bn);ce(this,Cl);ce(this,zs);ce(this,_l);ce(this,lr);ce(this,Is);ce(this,Bt);ce(this,xd);ce(this,Bs);ee(this,Bs,!1),ee(this,xd,t.defaultOptions),this.setOptions(t.options),this.observers=[],ee(this,Is,t.client),ee(this,lr,R(this,Is).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ee(this,zs,hO(this.options)),this.state=t.state??R(this,zs),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return R(this,Cl)}get promise(){var t;return(t=R(this,Bt))==null?void 0:t.promise}setOptions(t){if(this.options={...R(this,xd),...t},t!=null&&t._type&&ee(this,Cl,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=hO(this.options);n.data!==void 0&&(this.setState(dO(n.data,n.dataUpdatedAt)),ee(this,zs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&R(this,lr).remove(this)}setData(t,n){const r=X0(this.state.data,t,this.options);return Oe(this,Bn,Ea).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Oe(this,Bn,Ea).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=R(this,Bt))==null?void 0:r.promise;return(a=R(this,Bt))==null||a.cancel(t),n?n.then(Nn).catch(Nn):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return R(this,zs)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Un(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===mw||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Yi(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!YD(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Bt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=R(this,Bt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),R(this,lr).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(R(this,Bt)&&(R(this,Bs)||Oe(this,Bn,tk).call(this)?R(this,Bt).cancel({revert:!0}):R(this,Bt).cancelRetry()),this.scheduleGc()),R(this,lr).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Oe(this,Bn,Ea).call(this,{type:"invalidate"})}async fetch(t,n){var c,d,f,h,p,m,g,v,y,b,x;if(this.state.fetchStatus!=="idle"&&((c=R(this,Bt))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(R(this,Bt))return R(this,Bt).continueRetry(),R(this,Bt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(S=>S.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(ee(this,Bs,!0),r.signal)})},i=()=>{const w=XD(this.options,n),j=(()=>{const O={client:R(this,Is),queryKey:this.queryKey,meta:this.meta};return a(O),O})();return ee(this,Bs,!1),this.options.persister?this.options.persister(w,j,this):w(j)},o=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:R(this,Is),state:this.state,fetchFn:i};return a(w),w})(),l=R(this,Cl)==="infinite"?DB(this.options.pages):this.options.behavior;l==null||l.onFetch(o,this),ee(this,_l,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((d=o.fetchOptions)==null?void 0:d.meta))&&Oe(this,Bn,Ea).call(this,{type:"fetch",meta:(f=o.fetchOptions)==null?void 0:f.meta}),ee(this,Bt,JD({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:w=>{w instanceof Z0&&w.revert&&this.setState({...R(this,_l),fetchStatus:"idle"}),r.abort()},onFail:(w,S)=>{Oe(this,Bn,Ea).call(this,{type:"failed",failureCount:w,error:S})},onPause:()=>{Oe(this,Bn,Ea).call(this,{type:"pause"})},onContinue:()=>{Oe(this,Bn,Ea).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const w=await R(this,Bt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(p=(h=R(this,lr).config).onSuccess)==null||p.call(h,w,this),(g=(m=R(this,lr).config).onSettled)==null||g.call(m,w,this.state.error,this),w}catch(w){if(w instanceof Z0){if(w.silent)return R(this,Bt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw Oe(this,Bn,Ea).call(this,{type:"error",error:w}),(y=(v=R(this,lr).config).onError)==null||y.call(v,w,this),(x=(b=R(this,lr).config).onSettled)==null||x.call(b,this.state.data,w,this),w}finally{this.scheduleGc()}}},Cl=new WeakMap,zs=new WeakMap,_l=new WeakMap,lr=new WeakMap,Is=new WeakMap,Bt=new WeakMap,xd=new WeakMap,Bs=new WeakMap,Bn=new WeakSet,tk=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},Ea=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...nk(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...dO(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return ee(this,_l,t.manual?a:void 0),a;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Qt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),R(this,lr).notify({query:this,type:"updated",action:t})})},BP);function nk(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:ZD(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function dO(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function hO(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var On,Ne,Sd,dn,Us,Pl,Ca,Ti,wd,Ml,Rl,Fs,Vs,Ni,Dl,ze,Pu,J0,ex,tx,nx,rx,ax,ix,rk,UP,LB=(UP=class extends Ld{constructor(t,n){super();ce(this,ze);ce(this,On);ce(this,Ne);ce(this,Sd);ce(this,dn);ce(this,Us);ce(this,Pl);ce(this,Ca);ce(this,Ti);ce(this,wd);ce(this,Ml);ce(this,Rl);ce(this,Fs);ce(this,Vs);ce(this,Ni);ce(this,Dl,new Set);this.options=n,ee(this,On,t),ee(this,Ti,null),ee(this,Ca,Q0()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(R(this,Ne).addObserver(this),pO(R(this,Ne),this.options)?Oe(this,ze,Pu).call(this):this.updateResult(),Oe(this,ze,nx).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return sx(R(this,Ne),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return sx(R(this,Ne),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Oe(this,ze,rx).call(this),Oe(this,ze,ax).call(this),R(this,Ne).removeObserver(this)}setOptions(t){const n=this.options,r=R(this,Ne);if(this.options=R(this,On).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Un(this.options.enabled,R(this,Ne))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Oe(this,ze,ix).call(this),R(this,Ne).setOptions(this.options),n._defaulted&&!Y0(this.options,n)&&R(this,On).getQueryCache().notify({type:"observerOptionsUpdated",query:R(this,Ne),observer:this});const a=this.hasListeners();a&&mO(R(this,Ne),r,this.options,n)&&Oe(this,ze,Pu).call(this),this.updateResult(),a&&(R(this,Ne)!==r||Un(this.options.enabled,R(this,Ne))!==Un(n.enabled,R(this,Ne))||Yi(this.options.staleTime,R(this,Ne))!==Yi(n.staleTime,R(this,Ne)))&&Oe(this,ze,J0).call(this);const i=Oe(this,ze,ex).call(this);a&&(R(this,Ne)!==r||Un(this.options.enabled,R(this,Ne))!==Un(n.enabled,R(this,Ne))||i!==R(this,Ni))&&Oe(this,ze,tx).call(this,i)}getOptimisticResult(t){const n=R(this,On).getQueryCache().build(R(this,On),t),r=this.createResult(n,t);return IB(this,r)&&(ee(this,dn,r),ee(this,Pl,this.options),ee(this,Us,R(this,Ne).state)),r}getCurrentResult(){return R(this,dn)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&R(this,Ca).status==="pending"&&R(this,Ca).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){R(this,Dl).add(t)}getCurrentQuery(){return R(this,Ne)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=R(this,On).defaultQueryOptions(t),r=R(this,On).getQueryCache().build(R(this,On),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Oe(this,ze,Pu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),R(this,dn)))}createResult(t,n){var T;const r=R(this,Ne),a=this.options,i=R(this,dn),s=R(this,Us),o=R(this,Pl),c=t!==r?t.state:R(this,Sd),{state:d}=t;let f={...d},h=!1,p;if(n._optimisticResults){const N=this.hasListeners(),M=!N&&pO(t,n),C=N&&mO(t,r,n,a);(M||C)&&(f={...f,...nk(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:m,errorUpdatedAt:g,status:v}=f;p=f.data;let y=!1;if(n.placeholderData!==void 0&&p===void 0&&v==="pending"){let N;i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(N=i.data,y=!0):N=typeof n.placeholderData=="function"?n.placeholderData((T=R(this,Rl))==null?void 0:T.state.data,R(this,Rl)):n.placeholderData,N!==void 0&&(v="success",p=X0(i==null?void 0:i.data,N,n),h=!0)}if(n.select&&p!==void 0&&!y)if(i&&p===(s==null?void 0:s.data)&&n.select===R(this,wd))p=R(this,Ml);else try{ee(this,wd,n.select),p=n.select(p),p=X0(i==null?void 0:i.data,p,n),ee(this,Ml,p),ee(this,Ti,null)}catch(N){ee(this,Ti,N)}R(this,Ti)&&(m=R(this,Ti),p=R(this,Ml),g=Date.now(),v="error");const b=f.fetchStatus==="fetching",x=v==="pending",w=v==="error",S=x&&b,j=p!==void 0,E={status:v,fetchStatus:f.fetchStatus,isPending:x,isSuccess:v==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:f.dataUpdatedAt,error:m,errorUpdatedAt:g,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:f.dataUpdateCount>c.dataUpdateCount||f.errorUpdateCount>c.errorUpdateCount,isFetching:b,isRefetching:b&&!x,isLoadingError:w&&!j,isPaused:f.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&j,isStale:yw(t,n),refetch:this.refetch,promise:R(this,Ca),isEnabled:Un(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const N=E.data!==void 0,M=E.status==="error"&&!N,C=k=>{M?k.reject(E.error):N&&k.resolve(E.data)},L=()=>{const k=ee(this,Ca,E.promise=Q0());C(k)},D=R(this,Ca);switch(D.status){case"pending":t.queryHash===r.queryHash&&C(D);break;case"fulfilled":(M||E.data!==D.value)&&L();break;case"rejected":(!M||E.error!==D.reason)&&L();break}}return E}updateResult(){const t=R(this,dn),n=this.createResult(R(this,Ne),this.options);if(ee(this,Us,R(this,Ne).state),ee(this,Pl,this.options),R(this,Us).data!==void 0&&ee(this,Rl,R(this,Ne)),Y0(n,t))return;ee(this,dn,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!R(this,Dl).size)return!0;const s=new Set(i??R(this,Dl));return this.options.throwOnError&&s.add("error"),Object.keys(R(this,dn)).some(o=>{const l=o;return R(this,dn)[l]!==t[l]&&s.has(l)})};Oe(this,ze,rk).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Oe(this,ze,nx).call(this)}},On=new WeakMap,Ne=new WeakMap,Sd=new WeakMap,dn=new WeakMap,Us=new WeakMap,Pl=new WeakMap,Ca=new WeakMap,Ti=new WeakMap,wd=new WeakMap,Ml=new WeakMap,Rl=new WeakMap,Fs=new WeakMap,Vs=new WeakMap,Ni=new WeakMap,Dl=new WeakMap,ze=new WeakSet,Pu=function(t){Oe(this,ze,ix).call(this);let n=R(this,Ne).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(Nn)),n},J0=function(){Oe(this,ze,rx).call(this);const t=Yi(this.options.staleTime,R(this,Ne));if(Cf.isServer()||R(this,dn).isStale||!G0(t))return;const r=YD(R(this,dn).dataUpdatedAt,t)+1;ee(this,Fs,Ts.setTimeout(()=>{R(this,dn).isStale||this.updateResult()},r))},ex=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(R(this,Ne)):this.options.refetchInterval)??!1},tx=function(t){Oe(this,ze,ax).call(this),ee(this,Ni,t),!(Cf.isServer()||Un(this.options.enabled,R(this,Ne))===!1||!G0(R(this,Ni))||R(this,Ni)===0)&&ee(this,Vs,Ts.setInterval(()=>{(this.options.refetchIntervalInBackground||hw.isFocused())&&Oe(this,ze,Pu).call(this)},R(this,Ni)))},nx=function(){Oe(this,ze,J0).call(this),Oe(this,ze,tx).call(this,Oe(this,ze,ex).call(this))},rx=function(){R(this,Fs)!==void 0&&(Ts.clearTimeout(R(this,Fs)),ee(this,Fs,void 0))},ax=function(){R(this,Vs)!==void 0&&(Ts.clearInterval(R(this,Vs)),ee(this,Vs,void 0))},ix=function(){const t=R(this,On).getQueryCache().build(R(this,On),this.options);if(t===R(this,Ne))return;const n=R(this,Ne);ee(this,Ne,t),ee(this,Sd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},rk=function(t){Qt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(R(this,dn))}),R(this,On).getQueryCache().notify({query:R(this,Ne),type:"observerResultsUpdated"})})},UP);function zB(e,t){return Un(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Un(t.retryOnMount,e)===!1)}function pO(e,t){return zB(e,t)||e.state.data!==void 0&&sx(e,t,t.refetchOnMount)}function sx(e,t,n){if(Un(t.enabled,e)!==!1&&Yi(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&yw(e,t)}return!1}function mO(e,t,n,r){return(e!==t||Un(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&yw(e,n)}function yw(e,t){return Un(t.enabled,e)!==!1&&e.isStaleByTime(Yi(t.staleTime,e))}function IB(e,t){return!Y0(e.getCurrentResult(),t)}var jd,Gr,sn,Hs,Yr,di,FP,BB=(FP=class extends ek{constructor(t){super();ce(this,Yr);ce(this,jd);ce(this,Gr);ce(this,sn);ce(this,Hs);ee(this,jd,t.client),this.mutationId=t.mutationId,ee(this,sn,t.mutationCache),ee(this,Gr,[]),this.state=t.state||UB(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){R(this,Gr).includes(t)||(R(this,Gr).push(t),this.clearGcTimeout(),R(this,sn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ee(this,Gr,R(this,Gr).filter(n=>n!==t)),this.scheduleGc(),R(this,sn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){R(this,Gr).length||(this.state.status==="pending"?this.scheduleGc():R(this,sn).remove(this))}continue(){var t;return((t=R(this,Hs))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,l,c,d,f,h,p,m,g,v,y,b,x,w,S,j,O;const n=()=>{Oe(this,Yr,di).call(this,{type:"continue"})},r={client:R(this,jd),meta:this.options.meta,mutationKey:this.options.mutationKey};ee(this,Hs,JD({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,T)=>{Oe(this,Yr,di).call(this,{type:"failed",failureCount:E,error:T})},onPause:()=>{Oe(this,Yr,di).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>R(this,sn).canRun(this)}));const a=this.state.status==="pending",i=!R(this,Hs).canStart();try{if(a)n();else{Oe(this,Yr,di).call(this,{type:"pending",variables:t,isPaused:i}),R(this,sn).config.onMutate&&await R(this,sn).config.onMutate(t,this,r);const T=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t,r));T!==this.state.context&&Oe(this,Yr,di).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const E=await R(this,Hs).start();return await((c=(l=R(this,sn).config).onSuccess)==null?void 0:c.call(l,E,t,this.state.context,this,r)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,E,t,this.state.context,r)),await((p=(h=R(this,sn).config).onSettled)==null?void 0:p.call(h,E,null,this.state.variables,this.state.context,this,r)),await((g=(m=this.options).onSettled)==null?void 0:g.call(m,E,null,t,this.state.context,r)),Oe(this,Yr,di).call(this,{type:"success",data:E}),E}catch(E){try{await((y=(v=R(this,sn).config).onError)==null?void 0:y.call(v,E,t,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((x=(b=this.options).onError)==null?void 0:x.call(b,E,t,this.state.context,r))}catch(T){Promise.reject(T)}try{await((S=(w=R(this,sn).config).onSettled)==null?void 0:S.call(w,void 0,E,this.state.variables,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((O=(j=this.options).onSettled)==null?void 0:O.call(j,void 0,E,t,this.state.context,r))}catch(T){Promise.reject(T)}throw Oe(this,Yr,di).call(this,{type:"error",error:E}),E}finally{R(this,sn).runNext(this)}}},jd=new WeakMap,Gr=new WeakMap,sn=new WeakMap,Hs=new WeakMap,Yr=new WeakSet,di=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Qt.batch(()=>{R(this,Gr).forEach(r=>{r.onMutationUpdate(t)}),R(this,sn).notify({mutation:this,type:"updated",action:t})})},FP);function UB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var _a,Mr,Ad,VP,FB=(VP=class extends Ld{constructor(t={}){super();ce(this,_a);ce(this,Mr);ce(this,Ad);this.config=t,ee(this,_a,new Set),ee(this,Mr,new Map),ee(this,Ad,0)}build(t,n,r){const a=new BB({client:t,mutationCache:this,mutationId:++oh(this,Ad)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){R(this,_a).add(t);const n=Oh(t);if(typeof n=="string"){const r=R(this,Mr).get(n);r?r.push(t):R(this,Mr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(R(this,_a).delete(t)){const n=Oh(t);if(typeof n=="string"){const r=R(this,Mr).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&R(this,Mr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=Oh(t);if(typeof n=="string"){const r=R(this,Mr).get(n),a=r==null?void 0:r.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=Oh(t);if(typeof n=="string"){const a=(r=R(this,Mr).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Qt.batch(()=>{R(this,_a).forEach(t=>{this.notify({type:"removed",mutation:t})}),R(this,_a).clear(),R(this,Mr).clear()})}getAll(){return Array.from(R(this,_a))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>lO(n,r))}findAll(t={}){return this.getAll().filter(n=>lO(t,n))}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Qt.batch(()=>Promise.all(t.map(n=>n.continue().catch(Nn))))}},_a=new WeakMap,Mr=new WeakMap,Ad=new WeakMap,VP);function Oh(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Wr,HP,VB=(HP=class extends Ld{constructor(t={}){super();ce(this,Wr);this.config=t,ee(this,Wr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??pw(a,n);let s=this.get(i);return s||(s=new $B({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){R(this,Wr).has(t.queryHash)||(R(this,Wr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=R(this,Wr).get(t.queryHash);n&&(t.destroy(),n===t&&R(this,Wr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Qt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return R(this,Wr).get(t)}getAll(){return[...R(this,Wr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>oO(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>oO(t,r)):n}notify(t){Qt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Qt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Wr=new WeakMap,HP),yt,Ci,_i,kl,$l,Pi,Ll,zl,qP,HB=(qP=class{constructor(e={}){ce(this,yt);ce(this,Ci);ce(this,_i);ce(this,kl);ce(this,$l);ce(this,Pi);ce(this,Ll);ce(this,zl);ee(this,yt,e.queryCache||new VB),ee(this,Ci,e.mutationCache||new FB),ee(this,_i,e.defaultOptions||{}),ee(this,kl,new Map),ee(this,$l,new Map),ee(this,Pi,0)}mount(){oh(this,Pi)._++,R(this,Pi)===1&&(ee(this,Ll,hw.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,yt).onFocus())})),ee(this,zl,rm.subscribe(async e=>{e&&(await this.resumePausedMutations(),R(this,yt).onOnline())})))}unmount(){var e,t;oh(this,Pi)._--,R(this,Pi)===0&&((e=R(this,Ll))==null||e.call(this),ee(this,Ll,void 0),(t=R(this,zl))==null||t.call(this),ee(this,zl,void 0))}isFetching(e){return R(this,yt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return R(this,Ci).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,yt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=R(this,yt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Yi(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return R(this,yt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=R(this,yt).get(r.queryHash),i=a==null?void 0:a.state.data,s=AB(t,i);if(s!==void 0)return R(this,yt).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Qt.batch(()=>R(this,yt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=R(this,yt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=R(this,yt);Qt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=R(this,yt);return Qt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Qt.batch(()=>R(this,yt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(Nn).catch(Nn)}invalidateQueries(e,t={}){return Qt.batch(()=>(R(this,yt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Qt.batch(()=>R(this,yt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(Nn)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(Nn)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=R(this,yt).build(this,t);return n.isStaleByTime(Yi(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(Nn).catch(Nn)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(Nn).catch(Nn)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return rm.isOnline()?R(this,Ci).resumePausedMutations():Promise.resolve()}getQueryCache(){return R(this,yt)}getMutationCache(){return R(this,Ci)}getDefaultOptions(){return R(this,_i)}setDefaultOptions(e){ee(this,_i,e)}setQueryDefaults(e,t){R(this,kl).set(Tf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...R(this,kl).values()],n={};return t.forEach(r=>{Nf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){R(this,$l).set(Tf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...R(this,$l).values()],n={};return t.forEach(r=>{Nf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...R(this,_i).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=pw(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===mw&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...R(this,_i).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){R(this,yt).clear(),R(this,Ci).clear()}},yt=new WeakMap,Ci=new WeakMap,_i=new WeakMap,kl=new WeakMap,$l=new WeakMap,Pi=new WeakMap,Ll=new WeakMap,zl=new WeakMap,qP),ak=A.createContext(void 0),rn=e=>{const t=A.useContext(ak);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},qB=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(ak.Provider,{value:e,children:t})),ik=A.createContext(!1),KB=()=>A.useContext(ik);ik.Provider;function GB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var YB=A.createContext(GB()),WB=()=>A.useContext(YB),XB=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?QD(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},QB=e=>{A.useEffect(()=>{e.clearReset()},[e])},ZB=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||QD(n,[e.error,r])),JB=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},eU=(e,t)=>e.isLoading&&e.isFetching&&!t,tU=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,yO=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function nU(e,t,n){var p,m,g,v;const r=KB(),a=WB(),i=rn(),s=i.defaultQueryOptions(e);(m=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||m.call(p,s);const o=i.getQueryCache().get(s.queryHash),l=e.subscribed!==!1;s._optimisticResults=r?"isRestoring":l?"optimistic":void 0,JB(s),XB(s,a,o),QB(a);const c=!i.getQueryCache().get(s.queryHash),[d]=A.useState(()=>new t(i,s)),f=d.getOptimisticResult(s),h=!r&&l;if(A.useSyncExternalStore(A.useCallback(y=>{const b=h?d.subscribe(Qt.batchCalls(y)):Nn;return d.updateResult(),b},[d,h]),()=>d.getCurrentResult(),()=>d.getCurrentResult()),A.useEffect(()=>{d.setOptions(s)},[s,d]),tU(s,f))throw yO(s,d,a);if(ZB({result:f,errorResetBoundary:a,throwOnError:s.throwOnError,query:o,suspense:s.suspense}))throw f.error;if((v=(g=i.getDefaultOptions().queries)==null?void 0:g._experimental_afterQuery)==null||v.call(g,s,f),s.experimental_prefetchInRender&&!Cf.isServer()&&eU(f,r)){const y=c?yO(s,d,a):o==null?void 0:o.promise;y==null||y.catch(Nn).finally(()=>{d.updateResult()})}return s.notifyOnChangeProps?f:d.trackResult(f)}function se(e,t){return nU(e,LB)}/**
 * react-router v7.17.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var gO="popstate";function vO(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function rU(e={}){function t(r,a){var c;let i=(c=a.state)==null?void 0:c.masked,{pathname:s,search:o,hash:l}=i||r.location;return ox("",{pathname:s,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:_f(a)}return iU(t,n,null,e)}function ft(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Sr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function aU(){return Math.random().toString(36).substring(2,10)}function bO(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function ox(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?$c(t):t,state:n,key:t&&t.key||r||aU(),mask:a}}function _f({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function $c(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function iU(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,o="POP",l=null,c=d();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function d(){return(s.state||{idx:null}).idx}function f(){o="POP";let v=d(),y=v==null?null:v-c;c=v,l&&l({action:o,location:g.location,delta:y})}function h(v,y){o="PUSH";let b=vO(v)?v:ox(g.location,v,y);c=d()+1;let x=bO(b,c),w=g.createHref(b.mask||b);try{s.pushState(x,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(w)}i&&l&&l({action:o,location:g.location,delta:1})}function p(v,y){o="REPLACE";let b=vO(v)?v:ox(g.location,v,y);c=d();let x=bO(b,c),w=g.createHref(b.mask||b);s.replaceState(x,"",w),i&&l&&l({action:o,location:g.location,delta:0})}function m(v){return sU(a,v)}let g={get action(){return o},get location(){return e(a,s)},listen(v){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(gO,f),l=v,()=>{a.removeEventListener(gO,f),l=null}},createHref(v){return t(a,v)},createURL:m,encodeLocation(v){let y=m(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:h,replace:p,go(v){return s.go(v)}};return g}function sU(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),ft(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:_f(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function sk(e,t,n="/"){return oU(e,t,n,!1)}function oU(e,t,n,r,a){let i=typeof t=="string"?$c(t):t,s=Za(i.pathname||"/",n);if(s==null)return null;let o=lU(e),l=null,c=xU(s);for(let d=0;l==null&&d<o.length;++d)l=vU(o[d],c,r);return l}function lU(e){let t=ok(e);return cU(t),t}function ok(e,t=[],n=[],r="",a=!1){let i=(s,o,l=a,c)=>{let d={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&l)return;ft(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let f=zr([r,d.relativePath]),h=n.concat(d);s.children&&s.children.length>0&&(ft(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),ok(s.children,t,h,f,l)),!(s.path==null&&!s.index)&&t.push({path:f,score:yU(f,s.index),routesMeta:h})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let c of lk(s.path))i(s,o,!0,c)}),t}function lk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=lk(r.join("/")),o=[];return o.push(...s.map(l=>l===""?i:[i,l].join("/"))),a&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function cU(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:gU(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var uU=/^:[\w-]+$/,fU=3,dU=2,hU=1,pU=10,mU=-2,xO=e=>e==="*";function yU(e,t){let n=e.split("/"),r=n.length;return n.some(xO)&&(r+=mU),t&&(r+=dU),n.filter(a=>!xO(a)).reduce((a,i)=>a+(uU.test(i)?fU:i===""?hU:pU),r)}function gU(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function vU(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let o=0;o<r.length;++o){let l=r[o],c=o===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=am({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},d),h=l.route;if(!f&&c&&n&&!r[r.length-1].route.index&&(f=am({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(a,f.params),s.push({params:a,pathname:zr([i,f.pathname]),pathnameBase:AU(zr([i,f.pathnameBase])),route:h}),f.pathnameBase!=="/"&&(i=zr([i,f.pathnameBase]))}return s}function am(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=bU(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((c,{paramName:d,isOptional:f},h)=>{if(d==="*"){let m=o[h]||"";s=i.slice(0,i.length-m.length).replace(/(.)\/+$/,"$1")}const p=o[h];return f&&!p?c[d]=void 0:c[d]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function bU(e,t=!1,n=!0){Sr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l,c,d)=>{if(r.push({paramName:o,isOptional:l!=null}),l){let f=d.charAt(c+s.length);return f&&f!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function xU(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Sr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Za(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var SU=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function wU(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?$c(e):e,i;return n?(n=ck(n),n.startsWith("/")?i=SO(n.substring(1),"/"):i=SO(n,t)):i=t,{pathname:i,search:OU(r),hash:EU(a)}}function SO(e,t){let n=im(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Vv(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function jU(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function gw(e){let t=jU(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function qy(e,t,n,r=!1){let a;typeof e=="string"?a=$c(e):(a={...e},ft(!a.pathname||!a.pathname.includes("?"),Vv("?","pathname","search",a)),ft(!a.pathname||!a.pathname.includes("#"),Vv("#","pathname","hash",a)),ft(!a.search||!a.search.includes("#"),Vv("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,o;if(s==null)o=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;a.pathname=h.join("/")}o=f>=0?t[f]:"/"}let l=wU(a,o),c=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||d)&&(l.pathname+="/"),l}var ck=e=>e.replace(/\/\/+/g,"/"),zr=e=>ck(e.join("/")),im=e=>e.replace(/\/+$/,""),AU=e=>im(e).replace(/^\/*/,"/"),OU=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,EU=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,TU=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function NU(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function CU(e){let t=e.map(n=>n.route.path).filter(Boolean);return zr(t)||"/"}var uk=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function fk(e,t){let n=e;if(typeof n!="string"||!SU.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(uk)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),o=Za(s.pathname,t);s.origin===i.origin&&o!=null?n=o+s.search+s.hash:a=!0}catch{Sr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var dk=["POST","PUT","PATCH","DELETE"];new Set(dk);var _U=["GET",...dk];new Set(_U);var Lc=A.createContext(null);Lc.displayName="DataRouter";var Ky=A.createContext(null);Ky.displayName="DataRouterState";var hk=A.createContext(!1);function PU(){return A.useContext(hk)}var pk=A.createContext({isTransitioning:!1});pk.displayName="ViewTransition";var MU=A.createContext(new Map);MU.displayName="Fetchers";var RU=A.createContext(null);RU.displayName="Await";var nr=A.createContext(null);nr.displayName="Navigation";var zd=A.createContext(null);zd.displayName="Location";var Ar=A.createContext({outlet:null,matches:[],isDataRoute:!1});Ar.displayName="Route";var vw=A.createContext(null);vw.displayName="RouteError";var mk="REACT_ROUTER_ERROR",DU="REDIRECT",kU="ROUTE_ERROR_RESPONSE";function $U(e){if(e.startsWith(`${mk}:${DU}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function LU(e){if(e.startsWith(`${mk}:${kU}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new TU(t.status,t.statusText,t.data)}catch{}}function zU(e,{relative:t}={}){ft(zc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=A.useContext(nr),{hash:a,pathname:i,search:s}=Id(e,{relative:t}),o=i;return n!=="/"&&(o=i==="/"?n:zr([n,i])),r.createHref({pathname:o,search:s,hash:a})}function zc(){return A.useContext(zd)!=null}function Or(){return ft(zc(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(zd).location}var yk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function gk(e){A.useContext(nr).static||A.useLayoutEffect(e)}function Gt(){let{isDataRoute:e}=A.useContext(Ar);return e?JU():IU()}function IU(){ft(zc(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(Lc),{basename:t,navigator:n}=A.useContext(nr),{matches:r}=A.useContext(Ar),{pathname:a}=Or(),i=JSON.stringify(gw(r)),s=A.useRef(!1);return gk(()=>{s.current=!0}),A.useCallback((l,c={})=>{if(Sr(s.current,yk),!s.current)return;if(typeof l=="number"){n.go(l);return}let d=qy(l,JSON.parse(i),a,c.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:zr([t,d.pathname])),(c.replace?n.replace:n.push)(d,c.state,c)},[t,n,i,a,e])}var BU=A.createContext(null);function UU(e){let t=A.useContext(Ar).outlet;return A.useMemo(()=>t&&A.createElement(BU.Provider,{value:e},t),[t,e])}function vk(){let{matches:e}=A.useContext(Ar),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Id(e,{relative:t}={}){let{matches:n}=A.useContext(Ar),{pathname:r}=Or(),a=JSON.stringify(gw(n));return A.useMemo(()=>qy(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function FU(e,t){return bk(e,t)}function bk(e,t,n){var v;ft(zc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=A.useContext(nr),{matches:a}=A.useContext(Ar),i=a[a.length-1],s=i?i.params:{},o=i?i.pathname:"/",l=i?i.pathnameBase:"/",c=i&&i.route;{let y=c&&c.path||"";Sk(o,!c||y.endsWith("*")||y.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${y}"> to <Route path="${y==="/"?"*":`${y}/*`}">.`)}let d=Or(),f;if(t){let y=typeof t=="string"?$c(t):t;ft(l==="/"||((v=y.pathname)==null?void 0:v.startsWith(l)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${y.pathname}" was given in the \`location\` prop.`),f=y}else f=d;let h=f.pathname||"/",p=h;if(l!=="/"){let y=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(y.length).join("/")}let m=n&&n.state.matches.length?n.state.matches.map(y=>Object.assign(y,{route:n.manifest[y.route.id]||y.route})):sk(e,{pathname:p});Sr(c||m!=null,`No routes matched location "${f.pathname}${f.search}${f.hash}" `),Sr(m==null||m[m.length-1].route.element!==void 0||m[m.length-1].route.Component!==void 0||m[m.length-1].route.lazy!==void 0,`Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=GU(m&&m.map(y=>Object.assign({},y,{params:Object.assign({},s,y.params),pathname:zr([l,r.encodeLocation?r.encodeLocation(y.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathname]),pathnameBase:y.pathnameBase==="/"?l:zr([l,r.encodeLocation?r.encodeLocation(y.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:y.pathnameBase])})),a,n);return t&&g?A.createElement(zd.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...f},navigationType:"POP"}},g):g}function VU(){let e=ZU(),t=NU(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:i},"ErrorBoundary")," or"," ",A.createElement("code",{style:i},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:a},n):null,s)}var HU=A.createElement(VU,null),xk=class extends A.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=LU(e.digest);n&&(e=n)}let t=e!==void 0?A.createElement(Ar.Provider,{value:this.props.routeContext},A.createElement(vw.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?A.createElement(qU,{error:e},t):t}};xk.contextType=hk;var Hv=new WeakMap;function qU({children:e,error:t}){let{basename:n}=A.useContext(nr);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=$U(t.digest);if(r){let a=Hv.get(t);if(a)throw a;let i=fk(r.location,n);if(uk&&!Hv.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw Hv.set(t,s),s}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function KU({routeContext:e,match:t,children:n}){let r=A.useContext(Lc);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(Ar.Provider,{value:e},n)}function GU(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r==null?void 0:r.errors;if(i!=null){let d=a.findIndex(f=>f.route.id&&(i==null?void 0:i[f.route.id])!==void 0);ft(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,d+1))}let s=!1,o=-1;if(n&&r){s=r.renderFallback;for(let d=0;d<a.length;d++){let f=a[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(o=d),f.route.id){let{loaderData:h,errors:p}=r,m=f.route.loader&&!h.hasOwnProperty(f.route.id)&&(!p||p[f.route.id]===void 0);if(f.route.lazy||m){n.isStatic&&(s=!0),o>=0?a=a.slice(0,o+1):a=[a[0]];break}}}}let l=n==null?void 0:n.onError,c=r&&l?(d,f)=>{var h,p;l(d,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:CU(r.matches),errorInfo:f})}:void 0;return a.reduceRight((d,f,h)=>{let p,m=!1,g=null,v=null;r&&(p=i&&f.route.id?i[f.route.id]:void 0,g=f.route.errorElement||HU,s&&(o<0&&h===0?(Sk("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),m=!0,v=null):o===h&&(m=!0,v=f.route.hydrateFallbackElement||null)));let y=t.concat(a.slice(0,h+1)),b=()=>{let x;return p?x=g:m?x=v:f.route.Component?x=A.createElement(f.route.Component,null):f.route.element?x=f.route.element:x=d,A.createElement(KU,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:r!=null},children:x})};return r&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?A.createElement(xk,{location:r.location,revalidation:r.revalidation,component:g,error:p,children:b(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:c}):b()},null)}function bw(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function YU(e){let t=A.useContext(Lc);return ft(t,bw(e)),t}function WU(e){let t=A.useContext(Ky);return ft(t,bw(e)),t}function XU(e){let t=A.useContext(Ar);return ft(t,bw(e)),t}function xw(e){let t=XU(e),n=t.matches[t.matches.length-1];return ft(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function QU(){return xw("useRouteId")}function ZU(){var r;let e=A.useContext(vw),t=WU("useRouteError"),n=xw("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function JU(){let{router:e}=YU("useNavigate"),t=xw("useNavigate"),n=A.useRef(!1);return gk(()=>{n.current=!0}),A.useCallback(async(a,i={})=>{Sr(n.current,yk),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var wO={};function Sk(e,t,n){!t&&!wO[e]&&(wO[e]=!0,Sr(!1,n))}A.memo(e7);function e7({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return bk(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function sm({to:e,replace:t,state:n,relative:r}){ft(zc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=A.useContext(nr);Sr(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=A.useContext(Ar),{pathname:s}=Or(),o=Gt(),l=qy(e,gw(i),s,r==="path"),c=JSON.stringify(l);return A.useEffect(()=>{o(JSON.parse(c),{replace:t,state:n,relative:r})},[o,c,r,t,n]),null}function wk(e){return UU(e.context)}function ve(e){ft(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function t7({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:s}){ft(!zc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=A.useMemo(()=>({basename:o,navigator:a,static:i,useTransitions:s,future:{}}),[o,a,i,s]);typeof n=="string"&&(n=$c(n));let{pathname:c="/",search:d="",hash:f="",state:h=null,key:p="default",mask:m}=n,g=A.useMemo(()=>{let v=Za(c,o);return v==null?null:{location:{pathname:v,search:d,hash:f,state:h,key:p,mask:m},navigationType:r}},[o,c,d,f,h,p,r,m]);return Sr(g!=null,`<Router basename="${o}"> is not able to match the URL "${c}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:A.createElement(nr.Provider,{value:l},A.createElement(zd.Provider,{children:t,value:g}))}function n7({children:e,location:t}){return FU(lx(e),t)}function lx(e,t=[]){let n=[];return A.Children.forEach(e,(r,a)=>{if(!A.isValidElement(r))return;let i=[...t,a];if(r.type===A.Fragment){n.push.apply(n,lx(r.props.children,i));return}ft(r.type===ve,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ft(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=lx(r.props.children,i)),n.push(s)}),n}var mp="get",yp="application/x-www-form-urlencoded";function Gy(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function r7(e){return Gy(e)&&e.tagName.toLowerCase()==="button"}function a7(e){return Gy(e)&&e.tagName.toLowerCase()==="form"}function i7(e){return Gy(e)&&e.tagName.toLowerCase()==="input"}function s7(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function o7(e,t){return e.button===0&&(!t||t==="_self")&&!s7(e)}function cx(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function l7(e,t){let n=cx(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}var Eh=null;function c7(){if(Eh===null)try{new FormData(document.createElement("form"),0),Eh=!1}catch{Eh=!0}return Eh}var u7=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qv(e){return e!=null&&!u7.has(e)?(Sr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${yp}"`),null):e}function f7(e,t){let n,r,a,i,s;if(a7(e)){let o=e.getAttribute("action");r=o?Za(o,t):null,n=e.getAttribute("method")||mp,a=qv(e.getAttribute("enctype"))||yp,i=new FormData(e)}else if(r7(e)||i7(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||o.getAttribute("action");if(r=l?Za(l,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||mp,a=qv(e.getAttribute("formenctype"))||qv(o.getAttribute("enctype"))||yp,i=new FormData(o,e),!c7()){let{name:c,type:d,value:f}=e;if(d==="image"){let h=c?`${c}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else c&&i.append(c,f)}}else{if(Gy(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=mp,r=null,a=yp,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Sw(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function jk(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&Za(a.pathname,t)==="/"?a.pathname=`${im(t)}/_root.${r}`:a.pathname=`${im(a.pathname)}.${r}`,a}async function d7(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function h7(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function p7(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await d7(i,n);return s.links?s.links():[]}return[]}));return v7(r.flat(1).filter(h7).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function jO(e,t,n,r,a,i){let s=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,o=(l,c)=>{var d;return n[c].pathname!==l.pathname||((d=n[c].route.path)==null?void 0:d.endsWith("*"))&&n[c].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,c)=>s(l,c)||o(l,c)):i==="data"?t.filter((l,c)=>{var f;let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,c)||o(l,c))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function m7(e,t,{includeHydrateFallback:n}={}){return y7(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function y7(e){return[...new Set(e)]}function g7(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function v7(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(g7(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function ww(){let e=A.useContext(Lc);return Sw(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function b7(){let e=A.useContext(Ky);return Sw(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var jw=A.createContext(void 0);jw.displayName="FrameworkContext";function Aw(){let e=A.useContext(jw);return Sw(e,"You must render this element inside a <HydratedRouter> element"),e}function x7(e,t){let n=A.useContext(jw),[r,a]=A.useState(!1),[i,s]=A.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:c,onMouseLeave:d,onTouchStart:f}=t,h=A.useRef(null);A.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let g=y=>{y.forEach(b=>{s(b.isIntersecting)})},v=new IntersectionObserver(g,{threshold:.5});return h.current&&v.observe(h.current),()=>{v.disconnect()}}},[e]),A.useEffect(()=>{if(r){let g=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(g)}}},[r]);let p=()=>{a(!0)},m=()=>{a(!1),s(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:uu(o,p),onBlur:uu(l,m),onMouseEnter:uu(c,p),onMouseLeave:uu(d,m),onTouchStart:uu(f,p)}]:[!1,h,{}]}function uu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function S7({page:e,...t}){let n=PU(),{router:r}=ww(),a=A.useMemo(()=>sk(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?A.createElement(j7,{page:e,matches:a,...t}):A.createElement(A7,{page:e,matches:a,...t}):null}function w7(e){let{manifest:t,routeModules:n}=Aw(),[r,a]=A.useState([]);return A.useEffect(()=>{let i=!1;return p7(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function j7({page:e,matches:t,...n}){let r=Or(),{future:a}=Aw(),{basename:i}=ww(),s=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let o=jk(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,c=[];for(let d of t)typeof d.route.shouldRevalidate=="function"?l=!0:c.push(d.route.id);return l&&c.length>0&&o.searchParams.set("_routes",c.join(",")),[o.pathname+o.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return A.createElement(A.Fragment,null,s.map(o=>A.createElement("link",{key:o,rel:"prefetch",as:"fetch",href:o,...n})))}function A7({page:e,matches:t,...n}){let r=Or(),{future:a,manifest:i,routeModules:s}=Aw(),{basename:o}=ww(),{loaderData:l,matches:c}=b7(),d=A.useMemo(()=>jO(e,t,c,i,r,"data"),[e,t,c,i,r]),f=A.useMemo(()=>jO(e,t,c,i,r,"assets"),[e,t,c,i,r]),h=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let g=new Set,v=!1;if(t.forEach(b=>{var w;let x=i.routes[b.route.id];!x||!x.hasLoader||(!d.some(S=>S.route.id===b.route.id)&&b.route.id in l&&((w=s[b.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?v=!0:g.add(b.route.id))}),g.size===0)return[];let y=jk(e,o,a.v8_trailingSlashAwareDataRequests,"data");return v&&g.size>0&&y.searchParams.set("_routes",t.filter(b=>g.has(b.route.id)).map(b=>b.route.id).join(",")),[y.pathname+y.search]},[o,a.v8_trailingSlashAwareDataRequests,l,r,i,d,t,e,s]),p=A.useMemo(()=>m7(f,i),[f,i]),m=w7(f);return A.createElement(A.Fragment,null,h.map(g=>A.createElement("link",{key:g,rel:"prefetch",as:"fetch",href:g,...n})),p.map(g=>A.createElement("link",{key:g,rel:"modulepreload",href:g,...n})),m.map(({key:g,link:v})=>A.createElement("link",{key:g,nonce:n.nonce,...v,crossOrigin:v.crossOrigin??n.crossOrigin})))}function O7(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var E7=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{E7&&(window.__reactRouterVersion="7.17.0")}catch{}function T7({basename:e,children:t,useTransitions:n,window:r}){let a=A.useRef();a.current==null&&(a.current=rU({window:r,v5Compat:!0}));let i=a.current,[s,o]=A.useState({action:i.action,location:i.location}),l=A.useCallback(c=>{n===!1?o(c):A.startTransition(()=>o(c))},[n]);return A.useLayoutEffect(()=>i.listen(l),[i,l]),A.createElement(t7,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:n})}var Ak=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Le=A.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,mask:o,state:l,target:c,to:d,preventScrollReset:f,viewTransition:h,defaultShouldRevalidate:p,...m},g){let{basename:v,navigator:y,useTransitions:b}=A.useContext(nr),x=typeof d=="string"&&Ak.test(d),w=fk(d,v);d=w.to;let S=zU(d,{relative:a}),j=Or(),O=null;if(o){let k=qy(o,[],j.mask?j.mask.pathname:"/",!0);v!=="/"&&(k.pathname=k.pathname==="/"?v:zr([v,k.pathname])),O=y.createHref(k)}let[E,T,N]=x7(r,m),M=_7(d,{replace:s,mask:o,state:l,target:c,preventScrollReset:f,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:b});function C(k){t&&t(k),k.defaultPrevented||M(k)}let L=!(w.isExternal||i),D=A.createElement("a",{...m,...N,href:(L?O:void 0)||w.absoluteURL||S,onClick:L?C:t,ref:O7(g,T),target:c,"data-discover":!x&&n==="render"?"true":void 0});return E&&!x?A.createElement(A.Fragment,null,D,A.createElement(S7,{page:S})):D});Le.displayName="Link";var gp=A.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:o,children:l,...c},d){let f=Id(s,{relative:c.relative}),h=Or(),p=A.useContext(Ky),{navigator:m,basename:g}=A.useContext(nr),v=p!=null&&k7(f)&&o===!0,y=m.encodeLocation?m.encodeLocation(f).pathname:f.pathname,b=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(b=b.toLowerCase(),x=x?x.toLowerCase():null,y=y.toLowerCase()),x&&g&&(x=Za(x,g)||x);const w=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=b===y||!a&&b.startsWith(y)&&b.charAt(w)==="/",j=x!=null&&(x===y||!a&&x.startsWith(y)&&x.charAt(y.length)==="/"),O={isActive:S,isPending:j,isTransitioning:v},E=S?t:void 0,T;typeof r=="function"?T=r(O):T=[r,S?"active":null,j?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let N=typeof i=="function"?i(O):i;return A.createElement(Le,{...c,"aria-current":E,className:T,ref:d,style:N,to:s,viewTransition:o},typeof l=="function"?l(O):l)});gp.displayName="NavLink";var N7=A.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=mp,action:o,onSubmit:l,relative:c,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h,...p},m)=>{let{useTransitions:g}=A.useContext(nr),v=R7(),y=D7(o,{relative:c}),b=s.toLowerCase()==="get"?"get":"post",x=typeof o=="string"&&Ak.test(o),w=S=>{if(l&&l(S),S.defaultPrevented)return;S.preventDefault();let j=S.nativeEvent.submitter,O=(j==null?void 0:j.getAttribute("formmethod"))||s,E=()=>v(j||S.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:a,state:i,relative:c,preventScrollReset:d,viewTransition:f,defaultShouldRevalidate:h});g&&n!==!1?A.startTransition(()=>E()):E()};return A.createElement("form",{ref:m,method:b,action:y,onSubmit:r?l:w,...p,"data-discover":!x&&e==="render"?"true":void 0})});N7.displayName="Form";function C7(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ok(e){let t=A.useContext(Lc);return ft(t,C7(e)),t}function _7(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:o,defaultShouldRevalidate:l,useTransitions:c}={}){let d=Gt(),f=Or(),h=Id(e,{relative:s});return A.useCallback(p=>{if(o7(p,t)){p.preventDefault();let m=n!==void 0?n:_f(f)===_f(h),g=()=>d(e,{replace:m,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:o,defaultShouldRevalidate:l});c?A.startTransition(()=>g()):g()}},[f,d,h,n,r,a,t,e,i,s,o,l,c])}function Ek(e){Sr(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=A.useRef(cx(e)),n=A.useRef(!1),r=Or(),a=A.useMemo(()=>l7(r.search,n.current?null:t.current),[r.search]),i=Gt(),s=A.useCallback((o,l)=>{const c=cx(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,i("?"+c,l)},[i,a]);return[a,s]}var P7=0,M7=()=>`__${String(++P7)}__`;function R7(){let{router:e}=Ok("useSubmit"),{basename:t}=A.useContext(nr),n=QU(),r=e.fetch,a=e.navigate;return A.useCallback(async(i,s={})=>{let{action:o,method:l,encType:c,formData:d,body:f}=f7(i,t);if(s.navigate===!1){let h=s.fetcherKey||M7();await r(h,n,s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:f,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await a(s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:d,body:f,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}function D7(e,{relative:t}={}){let{basename:n}=A.useContext(nr),r=A.useContext(Ar);ft(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Id(e||".",{relative:t})},s=Or();if(e==null){i.search=s.search;let o=new URLSearchParams(i.search),l=o.getAll("index");if(l.some(d=>d==="")){o.delete("index"),l.filter(f=>f).forEach(f=>o.append("index",f));let d=o.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:zr([n,i.pathname])),_f(i)}function k7(e,{relative:t}={}){let n=A.useContext(pk);ft(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ok("useViewTransitionState"),a=Id(e,{relative:t});if(!n.isTransitioning)return!1;let i=Za(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Za(n.nextLocation.pathname,r)||n.nextLocation.pathname;return am(a.pathname,s)!=null||am(a.pathname,i)!=null}const Tk=A.createContext(null);function $7({children:e}){const[t,n]=A.useState(()=>localStorage.getItem("mall_zip")||""),[r,a]=A.useState(()=>{const m=localStorage.getItem("mall_store_id");return m?Number(m):null}),[i,s]=A.useState(()=>localStorage.getItem("mall_store_name")||""),[o,l]=A.useState(()=>localStorage.getItem("mall_token")),[c,d]=A.useState(0),f=(m,g,v)=>{n(m),a(g),s(v),localStorage.setItem("mall_zip",m),localStorage.setItem("mall_store_id",String(g)),localStorage.setItem("mall_store_name",v)},h=()=>{n(""),a(null),s(""),localStorage.removeItem("mall_zip"),localStorage.removeItem("mall_store_id"),localStorage.removeItem("mall_store_name")},p=m=>{l(m),m?localStorage.setItem("mall_token",m):localStorage.removeItem("mall_token")};return A.useEffect(()=>{const m=()=>l(localStorage.getItem("mall_token"));return window.addEventListener("storage",m),()=>window.removeEventListener("storage",m)},[]),u.jsx(Tk.Provider,{value:{zip:t,storeId:r,storeName:i,setZone:f,clearZone:h,custToken:o,setCustToken:p,cartCount:c,setCartCount:d},children:e})}const Sn=()=>A.useContext(Tk),Ee=e=>`$${(Number(e)||0).toFixed(2)}`,Ow=A.createContext({});function Ic(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const Yy=A.createContext(null),Wy=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class L7 extends A.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function z7({children:e,isPresent:t}){const n=A.useId(),r=A.useRef(null),a=A.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=A.useContext(Wy);return A.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:c}=a.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=n;const d=document.createElement("style");return i&&(d.nonce=i),document.head.appendChild(d),d.sheet&&d.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${s}px !important;
            height: ${o}px !important;
            top: ${l}px !important;
            left: ${c}px !important;
          }
        `),()=>{document.head.removeChild(d)}},[t]),u.jsx(L7,{isPresent:t,childRef:r,sizeRef:a,children:A.cloneElement(e,{ref:r})})}const I7=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:s})=>{const o=Ic(B7),l=A.useId(),c=A.useCallback(f=>{o.set(f,!0);for(const h of o.values())if(!h)return;r&&r()},[o,r]),d=A.useMemo(()=>({id:l,initial:t,isPresent:n,custom:a,onExitComplete:c,register:f=>(o.set(f,!1),()=>o.delete(f))}),i?[Math.random(),c]:[n,c]);return A.useMemo(()=>{o.forEach((f,h)=>o.set(h,!1))},[n]),A.useEffect(()=>{!n&&!o.size&&r&&r()},[n]),s==="popLayout"&&(e=u.jsx(z7,{isPresent:n,children:e})),u.jsx(Yy.Provider,{value:d,children:e})};function B7(){return new Map}function Nk(e=!0){const t=A.useContext(Yy);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,i=A.useId();A.useEffect(()=>{e&&a(i)},[e]);const s=A.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const Th=e=>e.key||"";function AO(e){const t=[];return A.Children.forEach(e,n=>{A.isValidElement(n)&&t.push(n)}),t}const Ew=typeof window<"u",Xy=Ew?A.useLayoutEffect:A.useEffect,ux=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:s=!1})=>{const[o,l]=Nk(s),c=A.useMemo(()=>AO(e),[e]),d=s&&!o?[]:c.map(Th),f=A.useRef(!0),h=A.useRef(c),p=Ic(()=>new Map),[m,g]=A.useState(c),[v,y]=A.useState(c);Xy(()=>{f.current=!1,h.current=c;for(let w=0;w<v.length;w++){const S=Th(v[w]);d.includes(S)?p.delete(S):p.get(S)!==!0&&p.set(S,!1)}},[v,d.length,d.join("-")]);const b=[];if(c!==m){let w=[...c];for(let S=0;S<v.length;S++){const j=v[S],O=Th(j);d.includes(O)||(w.splice(S,0,j),b.push(j))}i==="wait"&&b.length&&(w=b),y(AO(w)),g(c);return}const{forceRender:x}=A.useContext(Ow);return u.jsx(u.Fragment,{children:v.map(w=>{const S=Th(w),j=s&&!o?!1:c===v||d.includes(S),O=()=>{if(p.has(S))p.set(S,!0);else return;let E=!0;p.forEach(T=>{T||(E=!1)}),E&&(x==null||x(),y(h.current),s&&(l==null||l()),r&&r())};return u.jsx(I7,{isPresent:j,initial:!f.current||n?void 0:!1,custom:j?void 0:t,presenceAffectsLayout:a,mode:i,onExitComplete:j?void 0:O,children:w},S)})})},vn=e=>e;let U7=vn,Ck=vn;function Tw(e){let t;return()=>(t===void 0&&(t=e()),t)}const so=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},Fa=e=>e*1e3,Va=e=>e/1e3,F7={useManualTiming:!1};function V7(e){let t=new Set,n=new Set,r=!1,a=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(c){i.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,d=!1,f=!1)=>{const p=f&&r?t:n;return d&&i.add(c),p.has(c)||p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(s=c,r){a=!0;return}r=!0,[t,n]=[n,t],t.forEach(o),t.clear(),r=!1,a&&(a=!1,l.process(c))}};return l}const Nh=["read","resolveKeyframes","update","preRender","render","postRender"],H7=40;function _k(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Nh.reduce((y,b)=>(y[b]=V7(i),y),{}),{read:o,resolveKeyframes:l,update:c,preRender:d,render:f,postRender:h}=s,p=()=>{const y=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(y-a.timestamp,H7),1),a.timestamp=y,a.isProcessing=!0,o.process(a),l.process(a),c.process(a),d.process(a),f.process(a),h.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(p))},m=()=>{n=!0,r=!0,a.isProcessing||e(p)};return{schedule:Nh.reduce((y,b)=>{const x=s[b];return y[b]=(w,S=!1,j=!1)=>(n||m(),x.schedule(w,S,j)),y},{}),cancel:y=>{for(let b=0;b<Nh.length;b++)s[Nh[b]].cancel(y)},state:a,steps:s}}const{schedule:Re,cancel:Br,state:Ut,steps:Kv}=_k(typeof requestAnimationFrame<"u"?requestAnimationFrame:vn,!0),Pk=A.createContext({strict:!1}),OO={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xl={};for(const e in OO)Xl[e]={isEnabled:t=>OO[e].some(n=>!!t[n])};function q7(e){for(const t in e)Xl[t]={...Xl[t],...e[t]}}const K7=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function om(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||K7.has(e)}let Mk=e=>!om(e);function G7(e){e&&(Mk=t=>t.startsWith("on")?!om(t):e(t))}try{G7(require("@emotion/is-prop-valid").default)}catch{}function Y7(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(Mk(a)||n===!0&&om(a)||!t&&!om(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function W7(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const Qy=A.createContext({});function Pf(e){return typeof e=="string"||Array.isArray(e)}function Zy(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const Nw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Cw=["initial",...Nw];function Jy(e){return Zy(e.animate)||Cw.some(t=>Pf(e[t]))}function Rk(e){return!!(Jy(e)||e.variants)}function X7(e,t){if(Jy(e)){const{initial:n,animate:r}=e;return{initial:n===!1||Pf(n)?n:void 0,animate:Pf(r)?r:void 0}}return e.inherit!==!1?t:{}}function Q7(e){const{initial:t,animate:n}=X7(e,A.useContext(Qy));return A.useMemo(()=>({initial:t,animate:n}),[EO(t),EO(n)])}function EO(e){return Array.isArray(e)?e.join(" "):e}const Z7=Symbol.for("motionComponentSymbol");function al(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function J7(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):al(n)&&(n.current=r))},[t])}const _w=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),eF="framerAppearId",Dk="data-"+_w(eF),{schedule:Pw}=_k(queueMicrotask,!1),kk=A.createContext({});function tF(e,t,n,r,a){var i,s;const{visualElement:o}=A.useContext(Qy),l=A.useContext(Pk),c=A.useContext(Yy),d=A.useContext(Wy).reducedMotion,f=A.useRef(null);r=r||l.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:d}));const h=f.current,p=A.useContext(kk);h&&!h.projection&&a&&(h.type==="html"||h.type==="svg")&&nF(f.current,n,a,p);const m=A.useRef(!1);A.useInsertionEffect(()=>{h&&m.current&&h.update(n,c)});const g=n[Dk],v=A.useRef(!!g&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,g))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,g)));return Xy(()=>{h&&(m.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),Pw.render(h.render),v.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!v.current&&h.animationState&&h.animationState.animateChanges(),v.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)===null||y===void 0||y.call(window,g)}),v.current=!1))}),h}function nF(e,t,n,r){const{layoutId:a,layout:i,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:$k(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||o&&al(o),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function $k(e){if(e)return e.options.allowProjection!==!1?e.projection:$k(e.parent)}function rF({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var i,s;e&&q7(e);function o(c,d){let f;const h={...A.useContext(Wy),...c,layoutId:aF(c)},{isStatic:p}=h,m=Q7(c),g=r(c,p);if(!p&&Ew){iF();const v=sF(h);f=v.MeasureLayout,m.visualElement=tF(a,g,h,t,v.ProjectionNode)}return u.jsxs(Qy.Provider,{value:m,children:[f&&m.visualElement?u.jsx(f,{visualElement:m.visualElement,...h}):null,n(a,c,J7(g,m.visualElement,d),g,p,m.visualElement)]})}o.displayName=`motion.${typeof a=="string"?a:`create(${(s=(i=a.displayName)!==null&&i!==void 0?i:a.name)!==null&&s!==void 0?s:""})`}`;const l=A.forwardRef(o);return l[Z7]=a,l}function aF({layoutId:e}){const t=A.useContext(Ow).id;return t&&e!==void 0?t+"-"+e:e}function iF(e,t){A.useContext(Pk).strict}function sF(e){const{drag:t,layout:n}=Xl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const oF=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Mw(e){return typeof e!="string"||e.includes("-")?!1:!!(oF.indexOf(e)>-1||/[A-Z]/u.test(e))}function TO(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Rw(e,t,n,r){if(typeof t=="function"){const[a,i]=TO(r);t=t(n!==void 0?n:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=TO(r);t=t(n!==void 0?n:e.custom,a,i)}return t}const fx=e=>Array.isArray(e),lF=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),cF=e=>fx(e)?e[e.length-1]||0:e,un=e=>!!(e&&e.getVelocity);function vp(e){const t=un(e)?e.get():e;return lF(t)?t.toValue():t}function uF({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,i){const s={latestValues:fF(r,a,i,e),renderState:t()};return n&&(s.onMount=o=>n({props:r,current:o,...s}),s.onUpdate=o=>n(o)),s}const Lk=e=>(t,n)=>{const r=A.useContext(Qy),a=A.useContext(Yy),i=()=>uF(e,t,r,a);return n?i():Ic(i)};function fF(e,t,n,r){const a={},i=r(e,{});for(const h in i)a[h]=vp(i[h]);let{initial:s,animate:o}=e;const l=Jy(e),c=Rk(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let d=n?n.initial===!1:!1;d=d||s===!1;const f=d?o:s;if(f&&typeof f!="boolean"&&!Zy(f)){const h=Array.isArray(f)?f:[f];for(let p=0;p<h.length;p++){const m=Rw(e,h[p]);if(m){const{transitionEnd:g,transition:v,...y}=m;for(const b in y){let x=y[b];if(Array.isArray(x)){const w=d?x.length-1:0;x=x[w]}x!==null&&(a[b]=x)}for(const b in g)a[b]=g[b]}}}return a}const Bc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],jo=new Set(Bc),zk=e=>t=>typeof t=="string"&&t.startsWith(e),Ik=zk("--"),dF=zk("var(--"),Dw=e=>dF(e)?hF.test(e.split("/*")[0].trim()):!1,hF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Bk=(e,t)=>t&&typeof e=="number"?t.transform(e):e,fa=(e,t,n)=>n>t?t:n<e?e:n,Uc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Mf={...Uc,transform:e=>fa(0,1,e)},Ch={...Uc,default:1},Bd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),hi=Bd("deg"),sa=Bd("%"),fe=Bd("px"),pF=Bd("vh"),mF=Bd("vw"),NO={...sa,parse:e=>sa.parse(e)/100,transform:e=>sa.transform(e*100)},yF={borderWidth:fe,borderTopWidth:fe,borderRightWidth:fe,borderBottomWidth:fe,borderLeftWidth:fe,borderRadius:fe,radius:fe,borderTopLeftRadius:fe,borderTopRightRadius:fe,borderBottomRightRadius:fe,borderBottomLeftRadius:fe,width:fe,maxWidth:fe,height:fe,maxHeight:fe,top:fe,right:fe,bottom:fe,left:fe,padding:fe,paddingTop:fe,paddingRight:fe,paddingBottom:fe,paddingLeft:fe,margin:fe,marginTop:fe,marginRight:fe,marginBottom:fe,marginLeft:fe,backgroundPositionX:fe,backgroundPositionY:fe},gF={rotate:hi,rotateX:hi,rotateY:hi,rotateZ:hi,scale:Ch,scaleX:Ch,scaleY:Ch,scaleZ:Ch,skew:hi,skewX:hi,skewY:hi,distance:fe,translateX:fe,translateY:fe,translateZ:fe,x:fe,y:fe,z:fe,perspective:fe,transformPerspective:fe,opacity:Mf,originX:NO,originY:NO,originZ:fe},CO={...Uc,transform:Math.round},kw={...yF,...gF,zIndex:CO,size:fe,fillOpacity:Mf,strokeOpacity:Mf,numOctaves:CO},vF={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},bF=Bc.length;function xF(e,t,n){let r="",a=!0;for(let i=0;i<bF;i++){const s=Bc[i],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const c=Bk(o,kw[s]);if(!l){a=!1;const d=vF[s]||s;r+=`${d}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function $w(e,t,n){const{style:r,vars:a,transformOrigin:i}=e;let s=!1,o=!1;for(const l in t){const c=t[l];if(jo.has(l)){s=!0;continue}else if(Ik(l)){a[l]=c;continue}else{const d=Bk(c,kw[l]);l.startsWith("origin")?(o=!0,i[l]=d):r[l]=d}}if(t.transform||(s||n?r.transform=xF(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:c="50%",originZ:d=0}=i;r.transformOrigin=`${l} ${c} ${d}`}}const SF={offset:"stroke-dashoffset",array:"stroke-dasharray"},wF={offset:"strokeDashoffset",array:"strokeDasharray"};function jF(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?SF:wF;e[i.offset]=fe.transform(-r);const s=fe.transform(t),o=fe.transform(n);e[i.array]=`${s} ${o}`}function _O(e,t,n){return typeof e=="string"?e:fe.transform(t+n*e)}function AF(e,t,n){const r=_O(t,e.x,e.width),a=_O(n,e.y,e.height);return`${r} ${a}`}function Lw(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:i,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...c},d,f){if($w(e,c,f),d){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:m}=e;h.transform&&(m&&(p.transform=h.transform),delete h.transform),m&&(a!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=AF(m,a!==void 0?a:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&jF(h,s,o,l,!1)}const zw=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),Uk=()=>({...zw(),attrs:{}}),Iw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function Fk(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const Vk=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hk(e,t,n,r){Fk(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(Vk.has(a)?a:_w(a),t.attrs[a])}const lm={};function OF(e){Object.assign(lm,e)}function qk(e,{layout:t,layoutId:n}){return jo.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!lm[e]||e==="opacity")}function Bw(e,t,n){var r;const{style:a}=e,i={};for(const s in a)(un(a[s])||t.style&&un(t.style[s])||qk(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=a[s]);return i}function Kk(e,t,n){const r=Bw(e,t,n);for(const a in e)if(un(e[a])||un(t[a])){const i=Bc.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[i]=e[a]}return r}function EF(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const PO=["x","y","width","height","cx","cy","r"],TF={useVisualState:Lk({scrapeMotionValuesFromProps:Kk,createRenderState:Uk,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:a})=>{if(!n)return;let i=!!e.drag;if(!i){for(const o in a)if(jo.has(o)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let o=0;o<PO.length;o++){const l=PO[o];e[l]!==t[l]&&(s=!0)}s&&Re.read(()=>{EF(n,r),Re.render(()=>{Lw(r,a,Iw(n.tagName),e.transformTemplate),Hk(n,r)})})}})},NF={useVisualState:Lk({scrapeMotionValuesFromProps:Bw,createRenderState:zw})};function Gk(e,t,n){for(const r in t)!un(t[r])&&!qk(r,n)&&(e[r]=t[r])}function CF({transformTemplate:e},t){return A.useMemo(()=>{const n=zw();return $w(n,t,e),Object.assign({},n.vars,n.style)},[t])}function _F(e,t){const n=e.style||{},r={};return Gk(r,n,e),Object.assign(r,CF(e,t)),r}function PF(e,t){const n={},r=_F(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function MF(e,t,n,r){const a=A.useMemo(()=>{const i=Uk();return Lw(i,t,Iw(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};Gk(i,e.style,e),a.style={...i,...a.style}}return a}function RF(e=!1){return(n,r,a,{latestValues:i},s)=>{const l=(Mw(n)?MF:PF)(r,i,s,n),c=Y7(r,typeof n=="string",e),d=n!==A.Fragment?{...c,...l,ref:a}:{},{children:f}=r,h=A.useMemo(()=>un(f)?f.get():f,[f]);return A.createElement(n,{...d,children:h})}}function DF(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const s={...Mw(r)?TF:NF,preloadedFeatures:e,useRender:RF(a),createVisualElement:t,Component:r};return rF(s)}}function Yk(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function eg(e,t,n){const r=e.getProps();return Rw(r,t,n!==void 0?n:r.custom,e)}const Wk=Tw(()=>window.ScrollTimeline!==void 0);class kF{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(a=>{if(Wk()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{r.forEach((a,i)=>{a&&a(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class $F extends kF{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function Uw(e,t){return e?e[t]||e.default||e:void 0}const dx=2e4;function Xk(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<dx;)t+=n,r=e.next(t);return t>=dx?1/0:t}function Fw(e){return typeof e=="function"}function MO(e,t){e.timeline=t,e.onfinish=null}const Vw=e=>Array.isArray(e)&&typeof e[0]=="number",LF={linearEasing:void 0};function zF(e,t){const n=Tw(e);return()=>{var r;return(r=LF[t])!==null&&r!==void 0?r:n()}}const cm=zF(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qk=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i<a;i++)r+=e(so(0,a-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function Zk(e){return!!(typeof e=="function"&&cm()||!e||typeof e=="string"&&(e in hx||cm())||Vw(e)||Array.isArray(e)&&e.every(Zk))}const Mu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,hx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mu([0,.65,.55,1]),circOut:Mu([.55,0,1,.45]),backIn:Mu([.31,.01,.66,-.59]),backOut:Mu([.33,1.53,.69,.99])};function Jk(e,t){if(e)return typeof e=="function"&&cm()?Qk(e,t):Vw(e)?Mu(e):Array.isArray(e)?e.map(n=>Jk(n,t)||hx.easeOut):hx[e]}const Pr={x:!1,y:!1};function e$(){return Pr.x||Pr.y}function t$(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const i=(r=void 0)!==null&&r!==void 0?r:a.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function n$(e,t){const n=t$(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function RO(e){return t=>{t.pointerType==="touch"||e$()||e(t)}}function IF(e,t,n={}){const[r,a,i]=n$(e,n),s=RO(o=>{const{target:l}=o,c=t(o);if(typeof c!="function"||!l)return;const d=RO(f=>{c(f),l.removeEventListener("pointerleave",d)});l.addEventListener("pointerleave",d,a)});return r.forEach(o=>{o.addEventListener("pointerenter",s,a)}),i}const r$=(e,t)=>t?e===t?!0:r$(e,t.parentElement):!1,Hw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,BF=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function UF(e){return BF.has(e.tagName)||e.tabIndex!==-1}const Ru=new WeakSet;function DO(e){return t=>{t.key==="Enter"&&e(t)}}function Gv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const FF=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=DO(()=>{if(Ru.has(n))return;Gv(n,"down");const a=DO(()=>{Gv(n,"up")}),i=()=>Gv(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function kO(e){return Hw(e)&&!e$()}function VF(e,t,n={}){const[r,a,i]=n$(e,n),s=o=>{const l=o.currentTarget;if(!kO(o)||Ru.has(l))return;Ru.add(l);const c=t(o),d=(p,m)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",h),!(!kO(p)||!Ru.has(l))&&(Ru.delete(l),typeof c=="function"&&c(p,{success:m}))},f=p=>{d(p,n.useGlobalTarget||r$(l,p.target))},h=p=>{d(p,!1)};window.addEventListener("pointerup",f,a),window.addEventListener("pointercancel",h,a)};return r.forEach(o=>{!UF(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,a),o.addEventListener("focus",c=>FF(c,a),a)}),i}function HF(e){return e==="x"||e==="y"?Pr[e]?null:(Pr[e]=!0,()=>{Pr[e]=!1}):Pr.x||Pr.y?null:(Pr.x=Pr.y=!0,()=>{Pr.x=Pr.y=!1})}const a$=new Set(["width","height","top","left","right","bottom",...Bc]);let bp;function qF(){bp=void 0}const oa={now:()=>(bp===void 0&&oa.set(Ut.isProcessing||F7.useManualTiming?Ut.timestamp:performance.now()),bp),set:e=>{bp=e,queueMicrotask(qF)}};function qw(e,t){e.indexOf(t)===-1&&e.push(t)}function Kw(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class Gw{constructor(){this.subscriptions=[]}add(t){return qw(this.subscriptions,t),()=>Kw(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;i<a;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function Yw(e,t){return t?e*(1e3/t):0}const $O=30,KF=e=>!isNaN(parseFloat(e)),Qu={current:void 0};class GF{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const i=oa.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=oa.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=KF(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Gw);const r=this.events[t].add(n);return t==="change"?()=>{r(),Re.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return Qu.current&&Qu.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=oa.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>$O)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,$O);return Yw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ea(e,t){return new GF(e,t)}function YF(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ea(n))}function WF(e,t){const n=eg(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const s in i){const o=cF(i[s]);YF(e,s,o)}}function XF(e){return!!(un(e)&&e.add)}function px(e,t){const n=e.getValue("willChange");if(XF(n))return n.add(t)}function i$(e){return e.props[Dk]}const s$=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,QF=1e-7,ZF=12;function JF(e,t,n,r,a){let i,s,o=0;do s=t+(n-t)/2,i=s$(s,r,a)-e,i>0?n=s:t=s;while(Math.abs(i)>QF&&++o<ZF);return s}function Ud(e,t,n,r){if(e===t&&n===r)return vn;const a=i=>JF(i,0,1,e,n);return i=>i===0||i===1?i:s$(a(i),t,r)}const o$=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,l$=e=>t=>1-e(1-t),c$=Ud(.33,1.53,.69,.99),Ww=l$(c$),u$=o$(Ww),f$=e=>(e*=2)<1?.5*Ww(e):.5*(2-Math.pow(2,-10*(e-1))),Xw=e=>1-Math.sin(Math.acos(e)),d$=l$(Xw),h$=o$(Xw),p$=e=>/^0[^.\s]+$/u.test(e);function e9(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||p$(e):!0}const Zu=e=>Math.round(e*1e5)/1e5,Qw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function t9(e){return e==null}const n9=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Zw=(e,t)=>n=>!!(typeof n=="string"&&n9.test(n)&&n.startsWith(e)||t&&!t9(n)&&Object.prototype.hasOwnProperty.call(n,t)),m$=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,s,o]=r.match(Qw);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},r9=e=>fa(0,255,e),Yv={...Uc,transform:e=>Math.round(r9(e))},Ns={test:Zw("rgb","red"),parse:m$("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Yv.transform(e)+", "+Yv.transform(t)+", "+Yv.transform(n)+", "+Zu(Mf.transform(r))+")"};function a9(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const mx={test:Zw("#"),parse:a9,transform:Ns.transform},il={test:Zw("hsl","hue"),parse:m$("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+sa.transform(Zu(t))+", "+sa.transform(Zu(n))+", "+Zu(Mf.transform(r))+")"},on={test:e=>Ns.test(e)||mx.test(e)||il.test(e),parse:e=>Ns.test(e)?Ns.parse(e):il.test(e)?il.parse(e):mx.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ns.transform(e):il.transform(e)},i9=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function s9(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Qw))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(i9))===null||n===void 0?void 0:n.length)||0)>0}const y$="number",g$="color",o9="var",l9="var(",LO="${}",c9=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Rf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const o=t.replace(c9,l=>(on.test(l)?(r.color.push(i),a.push(g$),n.push(on.parse(l))):l.startsWith(l9)?(r.var.push(i),a.push(o9),n.push(l)):(r.number.push(i),a.push(y$),n.push(parseFloat(l))),++i,LO)).split(LO);return{values:n,split:o,indexes:r,types:a}}function v$(e){return Rf(e).values}function b$(e){const{split:t,types:n}=Rf(e),r=t.length;return a=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],a[s]!==void 0){const o=n[s];o===y$?i+=Zu(a[s]):o===g$?i+=on.transform(a[s]):i+=a[s]}return i}}const u9=e=>typeof e=="number"?0:e;function f9(e){const t=v$(e);return b$(e)(t.map(u9))}const ns={test:s9,parse:v$,createTransformer:b$,getAnimatableNone:f9},d9=new Set(["brightness","contrast","saturate","opacity"]);function h9(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(Qw)||[];if(!r)return e;const a=n.replace(r,"");let i=d9.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const p9=/\b([a-z-]*)\(.*?\)/gu,yx={...ns,getAnimatableNone:e=>{const t=e.match(p9);return t?t.map(h9).join(" "):e}},m9={...kw,color:on,backgroundColor:on,outlineColor:on,fill:on,stroke:on,borderColor:on,borderTopColor:on,borderRightColor:on,borderBottomColor:on,borderLeftColor:on,filter:yx,WebkitFilter:yx},Jw=e=>m9[e];function x$(e,t){let n=Jw(e);return n!==yx&&(n=ns),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const y9=new Set(["auto","none","0"]);function g9(e,t,n){let r=0,a;for(;r<e.length&&!a;){const i=e[r];typeof i=="string"&&!y9.has(i)&&Rf(i).values.length&&(a=e[r]),r++}if(a&&n)for(const i of t)e[i]=x$(n,a)}const zO=e=>e===Uc||e===fe,IO=(e,t)=>parseFloat(e.split(", ")[t]),BO=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/u);if(a)return IO(a[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?IO(i[1],e):0}},v9=new Set(["x","y","z"]),b9=Bc.filter(e=>!v9.has(e));function x9(e){const t=[];return b9.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Ql={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:BO(4,13),y:BO(5,14)};Ql.translateX=Ql.x;Ql.translateY=Ql.y;const Xs=new Set;let gx=!1,vx=!1;function S$(){if(vx){const e=Array.from(Xs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=x9(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([i,s])=>{var o;(o=r.getValue(i))===null||o===void 0||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}vx=!1,gx=!1,Xs.forEach(e=>e.complete()),Xs.clear()}function w$(){Xs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(vx=!0)})}function S9(){w$(),S$()}class ej{constructor(t,n,r,a,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(Xs.add(this),gx||(gx=!0,Re.read(w$),Re.resolveKeyframes(S$))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const s=a==null?void 0:a.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&s===void 0&&a.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),Xs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,Xs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const j$=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),w9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function j9(e){const t=w9.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function A$(e,t,n=1){const[r,a]=j9(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return j$(s)?parseFloat(s):s}return Dw(a)?A$(a,t,n+1):a}const O$=e=>t=>t.test(e),A9={test:e=>e==="auto",parse:e=>e},E$=[Uc,fe,sa,hi,mF,pF,A9],UO=e=>E$.find(O$(e));class T$ extends ej{constructor(t,n,r,a,i){super(t,n,r,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),Dw(c))){const d=A$(c,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!a$.has(r)||t.length!==2)return;const[a,i]=t,s=UO(a),o=UO(i);if(s!==o)if(zO(s)&&zO(o))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)e9(t[a])&&r.push(a);r.length&&g9(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Ql[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const s=a.length-1,o=a[s];a[s]=Ql[r](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const FO=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ns.test(e)||e==="0")&&!e.startsWith("url("));function O9(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function E9(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=FO(a,t),o=FO(i,t);return!s||!o?!1:O9(e)||(n==="spring"||Fw(n))&&r}const T9=e=>e!==null;function tg(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(T9),i=t&&n!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}const N9=40;class N${constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=oa.now(),this.options={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:i,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>N9?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&S9(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=oa.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:i,delay:s,onComplete:o,onUpdate:l,isGenerator:c}=this.options;if(!c&&!E9(t,r,a,i))if(s)this.options.duration=0;else{l&&l(tg(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const d=this.initPlayback(t,n);d!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...d},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const ht=(e,t,n)=>e+(t-e)*n;function Wv(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function C9({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,s=0;if(!t)a=i=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;a=Wv(l,o,e+1/3),i=Wv(l,o,e),s=Wv(l,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function um(e,t){return n=>n>0?t:e}const Xv=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},_9=[mx,Ns,il],P9=e=>_9.find(t=>t.test(e));function VO(e){const t=P9(e);if(!t)return!1;let n=t.parse(e);return t===il&&(n=C9(n)),n}const HO=(e,t)=>{const n=VO(e),r=VO(t);if(!n||!r)return um(e,t);const a={...n};return i=>(a.red=Xv(n.red,r.red,i),a.green=Xv(n.green,r.green,i),a.blue=Xv(n.blue,r.blue,i),a.alpha=ht(n.alpha,r.alpha,i),Ns.transform(a))},M9=(e,t)=>n=>t(e(n)),Fd=(...e)=>e.reduce(M9),bx=new Set(["none","hidden"]);function R9(e,t){return bx.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function D9(e,t){return n=>ht(e,t,n)}function tj(e){return typeof e=="number"?D9:typeof e=="string"?Dw(e)?um:on.test(e)?HO:L9:Array.isArray(e)?C$:typeof e=="object"?on.test(e)?HO:k9:um}function C$(e,t){const n=[...e],r=n.length,a=e.map((i,s)=>tj(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=a[s](i);return n}}function k9(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=tj(e[a])(e[a],t[a]));return a=>{for(const i in r)n[i]=r[i](a);return n}}function $9(e,t){var n;const r=[],a={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][a[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;r[i]=l,a[s]++}return r}const L9=(e,t)=>{const n=ns.createTransformer(t),r=Rf(e),a=Rf(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?bx.has(e)&&!a.values.length||bx.has(t)&&!r.values.length?R9(e,t):Fd(C$($9(r,a),a.values),n):um(e,t)};function _$(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ht(e,t,n):tj(e)(e,t)}const z9=5;function P$(e,t,n){const r=Math.max(t-z9,0);return Yw(n-e(r),t-r)}const gt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Qv=.001;function I9({duration:e=gt.duration,bounce:t=gt.bounce,velocity:n=gt.velocity,mass:r=gt.mass}){let a,i,s=1-t;s=fa(gt.minDamping,gt.maxDamping,s),e=fa(gt.minDuration,gt.maxDuration,Va(e)),s<1?(a=c=>{const d=c*s,f=d*e,h=d-n,p=xx(c,s),m=Math.exp(-f);return Qv-h/p*m},i=c=>{const f=c*s*e,h=f*n+n,p=Math.pow(s,2)*Math.pow(c,2)*e,m=Math.exp(-f),g=xx(Math.pow(c,2),s);return(-a(c)+Qv>0?-1:1)*((h-p)*m)/g}):(a=c=>{const d=Math.exp(-c*e),f=(c-n)*e+1;return-Qv+d*f},i=c=>{const d=Math.exp(-c*e),f=(n-c)*(e*e);return d*f});const o=5/e,l=U9(a,i,o);if(e=Fa(e),isNaN(l))return{stiffness:gt.stiffness,damping:gt.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const B9=12;function U9(e,t,n){let r=n;for(let a=1;a<B9;a++)r=r-e(r)/t(r);return r}function xx(e,t){return e*Math.sqrt(1-t*t)}const F9=["duration","bounce"],V9=["stiffness","damping","mass"];function qO(e,t){return t.some(n=>e[n]!==void 0)}function H9(e){let t={velocity:gt.velocity,stiffness:gt.stiffness,damping:gt.damping,mass:gt.mass,isResolvedFromDuration:!1,...e};if(!qO(e,V9)&&qO(e,F9))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*fa(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:gt.mass,stiffness:a,damping:i}}else{const n=I9(e);t={...t,...n,mass:gt.mass},t.isResolvedFromDuration=!0}return t}function M$(e=gt.visualDuration,t=gt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:i},{stiffness:l,damping:c,mass:d,duration:f,velocity:h,isResolvedFromDuration:p}=H9({...n,velocity:-Va(n.velocity||0)}),m=h||0,g=c/(2*Math.sqrt(l*d)),v=s-i,y=Va(Math.sqrt(l/d)),b=Math.abs(v)<5;r||(r=b?gt.restSpeed.granular:gt.restSpeed.default),a||(a=b?gt.restDelta.granular:gt.restDelta.default);let x;if(g<1){const S=xx(y,g);x=j=>{const O=Math.exp(-g*y*j);return s-O*((m+g*y*v)/S*Math.sin(S*j)+v*Math.cos(S*j))}}else if(g===1)x=S=>s-Math.exp(-y*S)*(v+(m+y*v)*S);else{const S=y*Math.sqrt(g*g-1);x=j=>{const O=Math.exp(-g*y*j),E=Math.min(S*j,300);return s-O*((m+g*y*v)*Math.sinh(E)+S*v*Math.cosh(E))/S}}const w={calculatedDuration:p&&f||null,next:S=>{const j=x(S);if(p)o.done=S>=f;else{let O=0;g<1&&(O=S===0?Fa(m):P$(x,S,j));const E=Math.abs(O)<=r,T=Math.abs(s-j)<=a;o.done=E&&T}return o.value=o.done?s:j,o},toString:()=>{const S=Math.min(Xk(w),dx),j=Qk(O=>w.next(S*O).value,S,30);return S+"ms "+j}};return w}function KO({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:o,max:l,restDelta:c=.5,restSpeed:d}){const f=e[0],h={done:!1,value:f},p=E=>o!==void 0&&E<o||l!==void 0&&E>l,m=E=>o===void 0?l:l===void 0||Math.abs(o-E)<Math.abs(l-E)?o:l;let g=n*t;const v=f+g,y=s===void 0?v:s(v);y!==v&&(g=y-f);const b=E=>-g*Math.exp(-E/r),x=E=>y+b(E),w=E=>{const T=b(E),N=x(E);h.done=Math.abs(T)<=c,h.value=h.done?y:N};let S,j;const O=E=>{p(h.value)&&(S=E,j=M$({keyframes:[h.value,m(h.value)],velocity:P$(x,E,h.value),damping:a,stiffness:i,restDelta:c,restSpeed:d}))};return O(0),{calculatedDuration:null,next:E=>{let T=!1;return!j&&S===void 0&&(T=!0,w(E),O(E)),S!==void 0&&E>=S?j.next(E-S):(!T&&w(E),h)}}}const q9=Ud(.42,0,1,1),K9=Ud(0,0,.58,1),R$=Ud(.42,0,.58,1),G9=e=>Array.isArray(e)&&typeof e[0]!="number",Y9={linear:vn,easeIn:q9,easeInOut:R$,easeOut:K9,circIn:Xw,circInOut:h$,circOut:d$,backIn:Ww,backInOut:u$,backOut:c$,anticipate:f$},GO=e=>{if(Vw(e)){Ck(e.length===4);const[t,n,r,a]=e;return Ud(t,n,r,a)}else if(typeof e=="string")return Y9[e];return e};function W9(e,t,n){const r=[],a=n||_$,i=e.length-1;for(let s=0;s<i;s++){let o=a(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||vn:t;o=Fd(l,o)}r.push(o)}return r}function nj(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const i=e.length;if(Ck(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=W9(t,r,a),l=o.length,c=d=>{if(s&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const h=so(e[f],e[f+1],d);return o[f](h)};return n?d=>c(fa(e[0],e[i-1],d)):c}function X9(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=so(0,t,r);e.push(ht(n,1,a))}}function D$(e){const t=[0];return X9(t,e.length-1),t}function Q9(e,t){return e.map(n=>n*t)}function Z9(e,t){return e.map(()=>t||R$).splice(0,e.length-1)}function fm({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=G9(r)?r.map(GO):GO(r),i={done:!1,value:t[0]},s=Q9(n&&n.length===t.length?n:D$(t),e),o=nj(s,t,{ease:Array.isArray(a)?a:Z9(t,a)});return{calculatedDuration:e,next:l=>(i.value=o(l),i.done=l>=e,i)}}const J9=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Re.update(t,!0),stop:()=>Br(t),now:()=>Ut.isProcessing?Ut.timestamp:oa.now()}},eV={decay:KO,inertia:KO,tween:fm,keyframes:fm,spring:M$},tV=e=>e/100;class rj extends N${constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:a,keyframes:i}=this.options,s=(a==null?void 0:a.KeyframeResolver)||ej,o=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(i,o,n,r,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:s=0}=this.options,o=Fw(n)?n:eV[n]||fm;let l,c;o!==fm&&typeof t[0]!="number"&&(l=Fd(tV,_$(t[0],t[1])),t=[0,100]);const d=o({...this.options,keyframes:t});i==="mirror"&&(c=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),d.calculatedDuration===null&&(d.calculatedDuration=Xk(d));const{calculatedDuration:f}=d,h=f+a,p=h*(r+1)-a;return{generator:d,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:f,resolvedDuration:h,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:a,generator:i,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:c,totalDuration:d,resolvedDuration:f}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:p,repeatType:m,repeatDelay:g,onUpdate:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-d/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-h*(this.speed>=0?1:-1),b=this.speed>=0?y<0:y>d;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=d);let x=this.currentTime,w=i;if(p){const E=Math.min(this.currentTime,d)/f;let T=Math.floor(E),N=E%1;!N&&E>=1&&(N=1),N===1&&T--,T=Math.min(T,p+1),!!(T%2)&&(m==="reverse"?(N=1-N,g&&(N-=g/f)):m==="mirror"&&(w=s)),x=fa(0,1,N)*f}const S=b?{done:!1,value:l[0]}:w.next(x);o&&(S.value=o(S.value));let{done:j}=S;!b&&c!==null&&(j=this.speed>=0?this.currentTime>=d:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return O&&a!==void 0&&(S.value=tg(l,this.options,a)),v&&v(S.value),O&&this.finish(),S}get duration(){const{resolved:t}=this;return t?Va(t.calculatedDuration):0}get time(){return Va(this.currentTime)}set time(t){t=Fa(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Va(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=J9,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const nV=new Set(["opacity","clipPath","filter","transform"]);function rV(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const d=Jk(o,a);return Array.isArray(d)&&(c.easing=d),e.animate(c,{delay:r,duration:a,easing:Array.isArray(d)?"linear":d,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const aV=Tw(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),dm=10,iV=2e4;function sV(e){return Fw(e.type)||e.type==="spring"||!Zk(e.ease)}function oV(e,t){const n=new rj({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const a=[];let i=0;for(;!r.done&&i<iV;)r=n.sample(i),a.push(r.value),i+=dm;return{times:void 0,keyframes:a,duration:i-dm,ease:"linear"}}const k$={anticipate:f$,backInOut:u$,circInOut:h$};function lV(e){return e in k$}class YO extends N${constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:i}=this.options;this.resolver=new T$(i,(s,o)=>this.onKeyframesResolved(s,o),n,r,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:a,ease:i,type:s,motionValue:o,name:l,startTime:c}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i=="string"&&cm()&&lV(i)&&(i=k$[i]),sV(this.options)){const{onComplete:f,onUpdate:h,motionValue:p,element:m,...g}=this.options,v=oV(t,g);t=v.keyframes,t.length===1&&(t[1]=t[0]),r=v.duration,a=v.times,i=v.ease,s="keyframes"}const d=rV(o.owner.current,l,t,{...this.options,duration:r,times:a,ease:i});return d.startTime=c??this.calcStartTime(),this.pendingTimeline?(MO(d,this.pendingTimeline),this.pendingTimeline=void 0):d.onfinish=()=>{const{onComplete:f}=this.options;o.set(tg(t,this.options,n)),f&&f(),this.cancel(),this.resolveFinishedPromise()},{animation:d,duration:r,times:a,type:s,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return Va(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return Va(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=Fa(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return vn;const{animation:r}=n;MO(r,t)}return vn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:a,type:i,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:d,onComplete:f,element:h,...p}=this.options,m=new rj({...p,keyframes:r,duration:a,type:i,ease:s,times:o,isGenerator:!0}),g=Fa(this.time);c.setWithVelocity(m.sample(g-dm).value,m.sample(g).value,dm)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:a,repeatType:i,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return aV()&&r&&nV.has(r)&&!l&&!c&&!a&&i!=="mirror"&&s!==0&&o!=="inertia"}}const cV={type:"spring",stiffness:500,damping:25,restSpeed:10},uV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fV={type:"keyframes",duration:.8},dV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},hV=(e,{keyframes:t})=>t.length>2?fV:jo.has(e)?e.startsWith("scale")?uV(t[1]):cV:dV;function pV({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:o,from:l,elapsed:c,...d}){return!!Object.keys(d).length}const aj=(e,t,n,r={},a,i)=>s=>{const o=Uw(r,e)||{},l=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-Fa(l);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:h=>{t.set(h),o.onUpdate&&o.onUpdate(h)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:i?void 0:a};pV(o)||(d={...d,...hV(e,d)}),d.duration&&(d.duration=Fa(d.duration)),d.repeatDelay&&(d.repeatDelay=Fa(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(d.duration=0,d.delay===0&&(f=!0)),f&&!i&&t.get()!==void 0){const h=tg(d.keyframes,o);if(h!==void 0)return Re.update(()=>{d.onUpdate(h),d.onComplete()}),new $F([])}return!i&&YO.supports(d)?new YO(d):new rj(d)};function mV({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function $$(e,t,{delay:n=0,transitionOverride:r,type:a}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(s=r);const c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(const f in l){const h=e.getValue(f,(i=e.latestValues[f])!==null&&i!==void 0?i:null),p=l[f];if(p===void 0||d&&mV(d,f))continue;const m={delay:n,...Uw(s||{},f)};let g=!1;if(window.MotionHandoffAnimation){const y=i$(e);if(y){const b=window.MotionHandoffAnimation(y,f,Re);b!==null&&(m.startTime=b,g=!0)}}px(e,f),h.start(aj(f,h,p,e.shouldReduceMotion&&a$.has(f)?{type:!1}:m,e,g));const v=h.animation;v&&c.push(v)}return o&&Promise.all(c).then(()=>{Re.update(()=>{o&&WF(e,o)})}),c}function Sx(e,t,n={}){var r;const a=eg(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(i=n.transitionOverride);const s=a?()=>Promise.all($$(e,a,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:h}=i;return yV(e,t,d+c,f,h,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,d]=l==="beforeChildren"?[s,o]:[o,s];return c().then(()=>d())}else return Promise.all([s(),o(n.delay)])}function yV(e,t,n=0,r=0,a=1,i){const s=[],o=(e.variantChildren.size-1)*r,l=a===1?(c=0)=>c*r:(c=0)=>o-c*r;return Array.from(e.variantChildren).sort(gV).forEach((c,d)=>{c.notify("AnimationStart",t),s.push(Sx(c,t,{...i,delay:n+l(d)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function gV(e,t){return e.sortNodePosition(t)}function vV(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>Sx(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=Sx(e,t,n);else{const a=typeof t=="function"?eg(e,t,n.custom):t;r=Promise.all($$(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const bV=Cw.length;function L$(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?L$(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<bV;n++){const r=Cw[n],a=e.props[r];(Pf(a)||a===!1)&&(t[r]=a)}return t}const xV=[...Nw].reverse(),SV=Nw.length;function wV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>vV(e,n,r)))}function jV(e){let t=wV(e),n=WO(),r=!0;const a=l=>(c,d)=>{var f;const h=eg(e,d,l==="exit"?(f=e.presenceContext)===null||f===void 0?void 0:f.custom:void 0);if(h){const{transition:p,transitionEnd:m,...g}=h;c={...c,...g,...m}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,d=L$(e.parent)||{},f=[],h=new Set;let p={},m=1/0;for(let v=0;v<SV;v++){const y=xV[v],b=n[y],x=c[y]!==void 0?c[y]:d[y],w=Pf(x),S=y===l?b.isActive:null;S===!1&&(m=v);let j=x===d[y]&&x!==c[y]&&w;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),b.protectedKeys={...p},!b.isActive&&S===null||!x&&!b.prevProp||Zy(x)||typeof x=="boolean")continue;const O=AV(b.prevProp,x);let E=O||y===l&&b.isActive&&!j&&w||v>m&&w,T=!1;const N=Array.isArray(x)?x:[x];let M=N.reduce(a(y),{});S===!1&&(M={});const{prevResolvedValues:C={}}=b,L={...C,...M},D=$=>{E=!0,h.has($)&&(T=!0,h.delete($)),b.needsAnimating[$]=!0;const I=e.getValue($);I&&(I.liveStyle=!1)};for(const $ in L){const I=M[$],F=C[$];if(p.hasOwnProperty($))continue;let H=!1;fx(I)&&fx(F)?H=!Yk(I,F):H=I!==F,H?I!=null?D($):h.add($):I!==void 0&&h.has($)?D($):b.protectedKeys[$]=!0}b.prevProp=x,b.prevResolvedValues=M,b.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(E=!1),E&&(!(j&&O)||T)&&f.push(...N.map($=>({animation:$,options:{type:y}})))}if(h.size){const v={};h.forEach(y=>{const b=e.getBaseTarget(y),x=e.getValue(y);x&&(x.liveStyle=!0),v[y]=b??null}),f.push({animation:v})}let g=!!f.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(g=!1),r=!1,g?t(f):Promise.resolve()}function o(l,c){var d;if(n[l].isActive===c)return Promise.resolve();(d=e.variantChildren)===null||d===void 0||d.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const f=s(l);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:s,setActive:o,setAnimateFunction:i,getState:()=>n,reset:()=>{n=WO(),r=!0}}}function AV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Yk(t,e):!1}function hs(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function WO(){return{animate:hs(!0),whileInView:hs(),whileHover:hs(),whileTap:hs(),whileDrag:hs(),whileFocus:hs(),exit:hs()}}class is{constructor(t){this.isMounted=!1,this.node=t}update(){}}class OV extends is{constructor(t){super(t),t.animationState||(t.animationState=jV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Zy(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let EV=0;class TV extends is{constructor(){super(...arguments),this.id=EV++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const NV={animation:{Feature:OV},exit:{Feature:TV}};function Df(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Vd(e){return{point:{x:e.pageX,y:e.pageY}}}const CV=e=>t=>Hw(t)&&e(t,Vd(t));function Ju(e,t,n,r){return Df(e,t,CV(n),r)}const XO=(e,t)=>Math.abs(e-t);function _V(e,t){const n=XO(e.x,t.x),r=XO(e.y,t.y);return Math.sqrt(n**2+r**2)}class z${constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const f=Jv(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=_V(f.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:m}=f,{timestamp:g}=Ut;this.history.push({...m,timestamp:g});const{onStart:v,onMove:y}=this.handlers;h||(v&&v(this.lastMoveEvent,f),this.startEvent=this.lastMoveEvent),y&&y(this.lastMoveEvent,f)},this.handlePointerMove=(f,h)=>{this.lastMoveEvent=f,this.lastMoveEventInfo=Zv(h,this.transformPagePoint),Re.update(this.updatePoint,!0)},this.handlePointerUp=(f,h)=>{this.end();const{onEnd:p,onSessionEnd:m,resumeAnimation:g}=this.handlers;if(this.dragSnapToOrigin&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const v=Jv(f.type==="pointercancel"?this.lastMoveEventInfo:Zv(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(f,v),m&&m(f,v)},!Hw(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const s=Vd(t),o=Zv(s,this.transformPagePoint),{point:l}=o,{timestamp:c}=Ut;this.history=[{...l,timestamp:c}];const{onSessionStart:d}=n;d&&d(t,Jv(o,this.history)),this.removeListeners=Fd(Ju(this.contextWindow,"pointermove",this.handlePointerMove),Ju(this.contextWindow,"pointerup",this.handlePointerUp),Ju(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Br(this.updatePoint)}}function Zv(e,t){return t?{point:t(e.point)}:e}function QO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Jv({point:e},t){return{point:e,delta:QO(e,I$(t)),offset:QO(e,PV(t)),velocity:MV(t,.1)}}function PV(e){return e[0]}function I$(e){return e[e.length-1]}function MV(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=I$(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Fa(t)));)n--;if(!r)return{x:0,y:0};const i=Va(a.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const B$=1e-4,RV=1-B$,DV=1+B$,U$=.01,kV=0-U$,$V=0+U$;function tr(e){return e.max-e.min}function LV(e,t,n){return Math.abs(e-t)<=n}function ZO(e,t,n,r=.5){e.origin=r,e.originPoint=ht(t.min,t.max,e.origin),e.scale=tr(n)/tr(t),e.translate=ht(n.min,n.max,e.origin)-e.originPoint,(e.scale>=RV&&e.scale<=DV||isNaN(e.scale))&&(e.scale=1),(e.translate>=kV&&e.translate<=$V||isNaN(e.translate))&&(e.translate=0)}function ef(e,t,n,r){ZO(e.x,t.x,n.x,r?r.originX:void 0),ZO(e.y,t.y,n.y,r?r.originY:void 0)}function JO(e,t,n){e.min=n.min+t.min,e.max=e.min+tr(t)}function zV(e,t,n){JO(e.x,t.x,n.x),JO(e.y,t.y,n.y)}function eE(e,t,n){e.min=t.min-n.min,e.max=e.min+tr(t)}function tf(e,t,n){eE(e.x,t.x,n.x),eE(e.y,t.y,n.y)}function IV(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ht(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ht(n,e,r.max):Math.min(e,n)),e}function tE(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function BV(e,{top:t,left:n,bottom:r,right:a}){return{x:tE(e.x,n,a),y:tE(e.y,t,r)}}function nE(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function UV(e,t){return{x:nE(e.x,t.x),y:nE(e.y,t.y)}}function FV(e,t){let n=.5;const r=tr(e),a=tr(t);return a>r?n=so(t.min,t.max-r,e.min):r>a&&(n=so(e.min,e.max-a,t.min)),fa(0,1,n)}function VV(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const wx=.35;function HV(e=wx){return e===!1?e=0:e===!0&&(e=wx),{x:rE(e,"left","right"),y:rE(e,"top","bottom")}}function rE(e,t,n){return{min:aE(e,t),max:aE(e,n)}}function aE(e,t){return typeof e=="number"?e:e[t]||0}const iE=()=>({translate:0,scale:1,origin:0,originPoint:0}),sl=()=>({x:iE(),y:iE()}),sE=()=>({min:0,max:0}),xt=()=>({x:sE(),y:sE()});function or(e){return[e("x"),e("y")]}function F$({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function qV({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function KV(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function eb(e){return e===void 0||e===1}function jx({scale:e,scaleX:t,scaleY:n}){return!eb(e)||!eb(t)||!eb(n)}function Ss(e){return jx(e)||V$(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function V$(e){return oE(e.x)||oE(e.y)}function oE(e){return e&&e!=="0%"}function hm(e,t,n){const r=e-n,a=t*r;return n+a}function lE(e,t,n,r,a){return a!==void 0&&(e=hm(e,a,r)),hm(e,n,r)+t}function Ax(e,t=0,n=1,r,a){e.min=lE(e.min,t,n,r,a),e.max=lE(e.max,t,n,r,a)}function H$(e,{x:t,y:n}){Ax(e.x,t.translate,t.scale,t.originPoint),Ax(e.y,n.translate,n.scale,n.originPoint)}const cE=.999999999999,uE=1.0000000000001;function GV(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,s;for(let o=0;o<a;o++){i=n[o],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&ll(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,H$(e,s)),r&&Ss(i.latestValues)&&ll(e,i.latestValues))}t.x<uE&&t.x>cE&&(t.x=1),t.y<uE&&t.y>cE&&(t.y=1)}function ol(e,t){e.min=e.min+t,e.max=e.max+t}function fE(e,t,n,r,a=.5){const i=ht(e.min,e.max,a);Ax(e,t,n,i,r)}function ll(e,t){fE(e.x,t.x,t.scaleX,t.scale,t.originX),fE(e.y,t.y,t.scaleY,t.scale,t.originY)}function q$(e,t){return F$(KV(e.getBoundingClientRect(),t))}function YV(e,t,n){const r=q$(e,n),{scroll:a}=t;return a&&(ol(r.x,a.offset.x),ol(r.y,a.offset.y)),r}const K$=({current:e})=>e?e.ownerDocument.defaultView:null,WV=new WeakMap;class XV{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=xt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=d=>{const{dragSnapToOrigin:f}=this.getProps();f?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Vd(d).point)},i=(d,f)=>{const{drag:h,dragPropagation:p,onDragStart:m}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=HF(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),or(v=>{let y=this.getAxisMotionValue(v).get()||0;if(sa.test(y)){const{projection:b}=this.visualElement;if(b&&b.layout){const x=b.layout.layoutBox[v];x&&(y=tr(x)*(parseFloat(y)/100))}}this.originPoint[v]=y}),m&&Re.postRender(()=>m(d,f)),px(this.visualElement,"transform");const{animationState:g}=this.visualElement;g&&g.setActive("whileDrag",!0)},s=(d,f)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:m,onDrag:g}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:v}=f;if(p&&this.currentDirection===null){this.currentDirection=QV(v),this.currentDirection!==null&&m&&m(this.currentDirection);return}this.updateAxis("x",f.point,v),this.updateAxis("y",f.point,v),this.visualElement.render(),g&&g(d,f)},o=(d,f)=>this.stop(d,f),l=()=>or(d=>{var f;return this.getAnimationState(d)==="paused"&&((f=this.getAxisMotionValue(d).animation)===null||f===void 0?void 0:f.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new z$(t,{onSessionStart:a,onStart:i,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:K$(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&Re.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!_h(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=IV(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&al(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=BV(a.layoutBox,n):this.constraints=!1,this.elastic=HV(r),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&or(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=VV(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!al(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=YV(r,a.root,this.visualElement.getTransformPagePoint());let s=UV(a.layout.layoutBox,i);if(n){const o=n(qV(s));this.hasMutatedConstraints=!!o,o&&(s=F$(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},c=or(d=>{if(!_h(d,n,this.currentDirection))return;let f=l&&l[d]||{};s&&(f={min:0,max:0});const h=a?200:1e6,p=a?40:1e7,m={type:"inertia",velocity:r?t[d]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,m)});return Promise.all(c).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return px(this.visualElement,t),r.start(aj(t,r,0,n,this.visualElement,!1))}stopAnimation(){or(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){or(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){or(n=>{const{drag:r}=this.getProps();if(!_h(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:o}=a.layout.layoutBox[n];i.set(t[n]-ht(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!al(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};or(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();a[s]=FV({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),or(s=>{if(!_h(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];o.set(ht(l,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;WV.set(this.visualElement,this);const t=this.visualElement.current,n=Ju(t,"pointerdown",l=>{const{drag:c,dragListener:d=!0}=this.getProps();c&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();al(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Re.read(r);const s=Df(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(or(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=wx,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function _h(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function QV(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class ZV extends is{constructor(t){super(t),this.removeGroupControls=vn,this.removeListeners=vn,this.controls=new XV(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||vn}unmount(){this.removeGroupControls(),this.removeListeners()}}const dE=e=>(t,n)=>{e&&Re.postRender(()=>e(t,n))};class JV extends is{constructor(){super(...arguments),this.removePointerDownListener=vn}onPointerDown(t){this.session=new z$(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:K$(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:dE(t),onStart:dE(n),onMove:r,onEnd:(i,s)=>{delete this.session,a&&Re.postRender(()=>a(i,s))}}}mount(){this.removePointerDownListener=Ju(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const xp={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function hE(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const fu={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(fe.test(e))e=parseFloat(e);else return e;const n=hE(e,t.target.x),r=hE(e,t.target.y);return`${n}% ${r}%`}},eH={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=ns.parse(e);if(a.length>5)return r;const i=ns.createTransformer(e),s=typeof a[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;a[0+s]/=o,a[1+s]/=l;const c=ht(o,l,.5);return typeof a[2+s]=="number"&&(a[2+s]/=c),typeof a[3+s]=="number"&&(a[3+s]/=c),i(a)}};class tH extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;OF(nH),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),xp.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,a||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Re.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Pw.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function G$(e){const[t,n]=Nk(),r=A.useContext(Ow);return u.jsx(tH,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(kk),isPresent:t,safeToRemove:n})}const nH={borderRadius:{...fu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:fu,borderTopRightRadius:fu,borderBottomLeftRadius:fu,borderBottomRightRadius:fu,boxShadow:eH};function rH(e,t,n){const r=un(e)?e:ea(e);return r.start(aj("",r,t,n)),r.animation}function aH(e){return e instanceof SVGElement&&e.tagName!=="svg"}const iH=(e,t)=>e.depth-t.depth;class sH{constructor(){this.children=[],this.isDirty=!1}add(t){qw(this.children,t),this.isDirty=!0}remove(t){Kw(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(iH),this.isDirty=!1,this.children.forEach(t)}}function oH(e,t){const n=oa.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&(Br(r),e(i-t))};return Re.read(r,!0),()=>Br(r)}const Y$=["TopLeft","TopRight","BottomLeft","BottomRight"],lH=Y$.length,pE=e=>typeof e=="string"?parseFloat(e):e,mE=e=>typeof e=="number"||fe.test(e);function cH(e,t,n,r,a,i){a?(e.opacity=ht(0,n.opacity!==void 0?n.opacity:1,uH(r)),e.opacityExit=ht(t.opacity!==void 0?t.opacity:1,0,fH(r))):i&&(e.opacity=ht(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<lH;s++){const o=`border${Y$[s]}Radius`;let l=yE(t,o),c=yE(n,o);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||mE(l)===mE(c)?(e[o]=Math.max(ht(pE(l),pE(c),r),0),(sa.test(c)||sa.test(l))&&(e[o]+="%")):e[o]=c}(t.rotate||n.rotate)&&(e.rotate=ht(t.rotate||0,n.rotate||0,r))}function yE(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const uH=W$(0,.5,d$),fH=W$(.5,.95,vn);function W$(e,t,n){return r=>r<e?0:r>t?1:n(so(e,t,r))}function gE(e,t){e.min=t.min,e.max=t.max}function rr(e,t){gE(e.x,t.x),gE(e.y,t.y)}function vE(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function bE(e,t,n,r,a){return e-=t,e=hm(e,1/n,r),a!==void 0&&(e=hm(e,1/a,r)),e}function dH(e,t=0,n=1,r=.5,a,i=e,s=e){if(sa.test(t)&&(t=parseFloat(t),t=ht(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=ht(i.min,i.max,r);e===i&&(o-=t),e.min=bE(e.min,t,n,o,a),e.max=bE(e.max,t,n,o,a)}function xE(e,t,[n,r,a],i,s){dH(e,t[n],t[r],t[a],t.scale,i,s)}const hH=["x","scaleX","originX"],pH=["y","scaleY","originY"];function SE(e,t,n,r){xE(e.x,t,hH,n?n.x:void 0,r?r.x:void 0),xE(e.y,t,pH,n?n.y:void 0,r?r.y:void 0)}function wE(e){return e.translate===0&&e.scale===1}function X$(e){return wE(e.x)&&wE(e.y)}function jE(e,t){return e.min===t.min&&e.max===t.max}function mH(e,t){return jE(e.x,t.x)&&jE(e.y,t.y)}function AE(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Q$(e,t){return AE(e.x,t.x)&&AE(e.y,t.y)}function OE(e){return tr(e.x)/tr(e.y)}function EE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class yH{constructor(){this.members=[]}add(t){qw(this.members,t),t.scheduleRender()}remove(t){if(Kw(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function gH(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((a||i||s)&&(r=`translate3d(${a}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:d,rotateX:f,rotateY:h,skewX:p,skewY:m}=n;c&&(r=`perspective(${c}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),m&&(r+=`skewY(${m}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const ws={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Du=typeof window<"u"&&window.MotionDebug!==void 0,tb=["","X","Y","Z"],vH={visibility:"hidden"},TE=1e3;let bH=0;function nb(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Z$(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=i$(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Re,!(a||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Z$(r)}function J$({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(s={},o=t==null?void 0:t()){this.id=bH++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Du&&(ws.totalNodes=ws.resolvedTargetDeltas=ws.recalculatedProjection=0),this.nodes.forEach(wH),this.nodes.forEach(TH),this.nodes.forEach(NH),this.nodes.forEach(jH),Du&&window.MotionDebug.record(ws)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new sH)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new Gw),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=aH(s),this.instance=s;const{layoutId:l,layout:c,visualElement:d}=this.options;if(d&&!d.current&&d.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(c||l)&&(this.isLayoutDirty=!0),e){let f;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,f&&f(),f=oH(h,250),xp.hasAnimatedSinceResize&&(xp.hasAnimatedSinceResize=!1,this.nodes.forEach(CE))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&d&&(l||c)&&this.addEventListener("didUpdate",({delta:f,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:m})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const g=this.options.transition||d.getDefaultTransition()||RH,{onLayoutAnimationStart:v,onLayoutAnimationComplete:y}=d.getProps(),b=!this.targetLayout||!Q$(this.targetLayout,m)||p,x=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(b||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(f,x);const w={...Uw(g,"layout"),onPlay:v,onComplete:y};(d.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else h||CE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=m})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Br(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(CH),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Z$(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(NE);return}this.isUpdating||this.nodes.forEach(OH),this.isUpdating=!1,this.nodes.forEach(EH),this.nodes.forEach(xH),this.nodes.forEach(SH),this.clearAllSnapshots();const o=oa.now();Ut.delta=fa(0,1e3/60,o-Ut.timestamp),Ut.timestamp=o,Ut.isProcessing=!0,Kv.update.process(Ut),Kv.preRender.process(Ut),Kv.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Pw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(AH),this.sharedNodes.forEach(_H)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Re.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Re.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!X$(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,d=c!==this.prevTransformTemplateValue;s&&(o||Ss(this.latestValues)||d)&&(a(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),DH(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return xt();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(kH))){const{scroll:d}=this.root;d&&(ol(l.x,d.offset.x),ol(l.y,d.offset.y))}return l}removeElementScroll(s){var o;const l=xt();if(rr(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let c=0;c<this.path.length;c++){const d=this.path[c],{scroll:f,options:h}=d;d!==this.root&&f&&h.layoutScroll&&(f.wasRoot&&rr(l,s),ol(l.x,f.offset.x),ol(l.y,f.offset.y))}return l}applyTransform(s,o=!1){const l=xt();rr(l,s);for(let c=0;c<this.path.length;c++){const d=this.path[c];!o&&d.options.layoutScroll&&d.scroll&&d!==d.root&&ll(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Ss(d.latestValues)&&ll(l,d.latestValues)}return Ss(this.latestValues)&&ll(l,this.latestValues),l}removeTransform(s){const o=xt();rr(o,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!Ss(c.latestValues))continue;jx(c.latestValues)&&c.updateSnapshot();const d=xt(),f=c.measurePageBox();rr(d,f),SE(o,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,d)}return Ss(this.latestValues)&&SE(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:f,layoutId:h}=this.options;if(!(!this.layout||!(f||h))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),tf(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=xt(),this.targetWithTransforms=xt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),zV(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):rr(this.target,this.layout.layoutBox),H$(this.target,this.targetDelta)):rr(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xt(),this.relativeTargetOrigin=xt(),tf(this.relativeTargetOrigin,this.target,p.target),rr(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Du&&ws.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||jx(this.parent.latestValues)||V$(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(c=!1),c)return;const{layout:d,layoutId:f}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(d||f))return;rr(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;GV(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=xt());const{target:m}=o;if(!m){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vE(this.prevProjectionDelta.x,this.projectionDelta.x),vE(this.prevProjectionDelta.y,this.projectionDelta.y)),ef(this.projectionDelta,this.layoutCorrected,m,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!EE(this.projectionDelta.x,this.prevProjectionDelta.x)||!EE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",m)),Du&&ws.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=sl(),this.projectionDelta=sl(),this.projectionDeltaWithTransform=sl()}setAnimationOrigin(s,o=!1){const l=this.snapshot,c=l?l.latestValues:{},d={...this.latestValues},f=sl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const h=xt(),p=l?l.source:void 0,m=this.layout?this.layout.source:void 0,g=p!==m,v=this.getStack(),y=!v||v.members.length<=1,b=!!(g&&!y&&this.options.crossfade===!0&&!this.path.some(MH));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const S=w/1e3;_E(f.x,s.x,S),_E(f.y,s.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(tf(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),PH(this.relativeTarget,this.relativeTargetOrigin,h,S),x&&mH(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=xt()),rr(x,this.relativeTarget)),g&&(this.animationValues=d,cH(d,c,this.latestValues,S,b,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Br(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Re.update(()=>{xp.hasAnimatedSinceResize=!0,this.currentAnimation=rH(0,TE,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(TE),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:c,latestValues:d}=s;if(!(!o||!l||!c)){if(this!==s&&this.layout&&c&&e3(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||xt();const f=tr(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+f;const h=tr(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}rr(o,l),ll(o,d),ef(this.projectionDeltaWithTransform,this.layoutCorrected,o,d)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new yH),this.sharedNodes.get(s).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const c={};l.z&&nb("z",s,c,this.animationValues);for(let d=0;d<tb.length;d++)nb(`rotate${tb[d]}`,s,c,this.animationValues),nb(`skew${tb[d]}`,s,c,this.animationValues);s.render();for(const d in c)s.setStaticValue(d,c[d]),this.animationValues&&(this.animationValues[d]=c[d]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return vH;const c={visibility:""},d=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=vp(s==null?void 0:s.pointerEvents)||"",c.transform=d?d(this.latestValues,""):"none",c;const f=this.getLead();if(!this.projectionDelta||!this.layout||!f.target){const g={};return this.options.layoutId&&(g.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,g.pointerEvents=vp(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Ss(this.latestValues)&&(g.transform=d?d({},""):"none",this.hasProjected=!1),g}const h=f.animationValues||f.latestValues;this.applyTransformsToTarget(),c.transform=gH(this.projectionDeltaWithTransform,this.treeScale,h),d&&(c.transform=d(h,c.transform));const{x:p,y:m}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${m.origin*100}% 0`,f.animationValues?c.opacity=f===this?(l=(o=h.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=f===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const g in lm){if(h[g]===void 0)continue;const{correct:v,applyTo:y}=lm[g],b=c.transform==="none"?h[g]:v(h[g],f);if(y){const x=y.length;for(let w=0;w<x;w++)c[y[w]]=b}else c[g]=b}return this.options.layoutId&&(c.pointerEvents=f===this?vp(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(NE),this.root.sharedNodes.clear()}}}function xH(e){e.updateLayout()}function SH(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?or(f=>{const h=s?n.measuredBox[f]:n.layoutBox[f],p=tr(h);h.min=r[f].min,h.max=h.min+p}):e3(i,n.layoutBox,r)&&or(f=>{const h=s?n.measuredBox[f]:n.layoutBox[f],p=tr(r[f]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+p)});const o=sl();ef(o,r,n.layoutBox);const l=sl();s?ef(l,e.applyTransform(a,!0),n.measuredBox):ef(l,r,n.layoutBox);const c=!X$(o);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:h,layout:p}=f;if(h&&p){const m=xt();tf(m,n.layoutBox,h.layoutBox);const g=xt();tf(g,r,p.layoutBox),Q$(m,g)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=g,e.relativeTargetOrigin=m,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function wH(e){Du&&ws.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function jH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function AH(e){e.clearSnapshot()}function NE(e){e.clearMeasurements()}function OH(e){e.isLayoutDirty=!1}function EH(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function CE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function TH(e){e.resolveTargetDelta()}function NH(e){e.calcProjection()}function CH(e){e.resetSkewAndRotation()}function _H(e){e.removeLeadSnapshot()}function _E(e,t,n){e.translate=ht(t.translate,0,n),e.scale=ht(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function PE(e,t,n,r){e.min=ht(t.min,n.min,r),e.max=ht(t.max,n.max,r)}function PH(e,t,n,r){PE(e.x,t.x,n.x,r),PE(e.y,t.y,n.y,r)}function MH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const RH={duration:.45,ease:[.4,0,.1,1]},ME=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),RE=ME("applewebkit/")&&!ME("chrome/")?Math.round:vn;function DE(e){e.min=RE(e.min),e.max=RE(e.max)}function DH(e){DE(e.x),DE(e.y)}function e3(e,t,n){return e==="position"||e==="preserve-aspect"&&!LV(OE(t),OE(n),.2)}function kH(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const $H=J$({attachResizeListener:(e,t)=>Df(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),rb={current:void 0},t3=J$({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!rb.current){const e=new $H({});e.mount(window),e.setOptions({layoutScroll:!0}),rb.current=e}return rb.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),LH={pan:{Feature:JV},drag:{Feature:ZV,ProjectionNode:t3,MeasureLayout:G$}};function kE(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=r[a];i&&Re.postRender(()=>i(t,Vd(t)))}class zH extends is{mount(){const{current:t}=this.node;t&&(this.unmount=IF(t,n=>(kE(this.node,n,"Start"),r=>kE(this.node,r,"End"))))}unmount(){}}class IH extends is{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fd(Df(this.node.current,"focus",()=>this.onFocus()),Df(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function $E(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=r[a];i&&Re.postRender(()=>i(t,Vd(t)))}class BH extends is{mount(){const{current:t}=this.node;t&&(this.unmount=VF(t,n=>($E(this.node,n,"Start"),(r,{success:a})=>$E(this.node,r,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ox=new WeakMap,ab=new WeakMap,UH=e=>{const t=Ox.get(e.target);t&&t(e)},FH=e=>{e.forEach(UH)};function VH({root:e,...t}){const n=e||document;ab.has(n)||ab.set(n,{});const r=ab.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(FH,{root:e,...t})),r[a]}function HH(e,t,n){const r=VH(t);return Ox.set(e,n),r.observe(e),()=>{Ox.delete(e),r.unobserve(e)}}const qH={some:0,all:1};class KH extends is{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:qH[a]},o=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),h=c?d:f;h&&h(l)};return HH(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(GH(t,n))&&this.startObserver()}unmount(){}}function GH({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const YH={inView:{Feature:KH},tap:{Feature:BH},focus:{Feature:IH},hover:{Feature:zH}},WH={layout:{ProjectionNode:t3,MeasureLayout:G$}},pm={current:null},ij={current:!1};function n3(){if(ij.current=!0,!!Ew)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>pm.current=e.matches;e.addListener(t),t()}else pm.current=!1}const XH=[...E$,on,ns],QH=e=>XH.find(O$(e)),LE=new WeakMap;function ZH(e,t,n){for(const r in t){const a=t[r],i=n[r];if(un(a))e.addValue(r,a);else if(un(i))e.addValue(r,ea(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(r);e.addValue(r,ea(s!==void 0?s:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const zE=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class JH{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=ej,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=oa.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Re.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:d}=s;this.onUpdate=d,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=Jy(n),this.isVariantNode=Rk(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const m=h[p];l[p]!==void 0&&un(m)&&m.set(l[p],!1)}}mount(t){this.current=t,LE.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ij.current||n3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:pm.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){LE.delete(this.current),this.projection&&this.projection.unmount(),Br(this.notifyUpdate),Br(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=jo.has(t),a=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Re.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Xl){const n=Xl[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<zE.length;r++){const a=zE[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,s=t[i];s&&(this.propEventSubscriptions[a]=this.on(a,s))}this.prevMotionValues=ZH(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=ea(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(j$(a)||p$(a))?a=parseFloat(a):!QH(a)&&ns.test(n)&&(a=x$(t,n)),this.setBaseTarget(t,un(a)?a.get():a)),un(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const s=Rw(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(a=s[t])}if(r&&a!==void 0)return a;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!un(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Gw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class r3 extends JH{constructor(){super(...arguments),this.KeyframeResolver=T$}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;un(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function eq(e){return window.getComputedStyle(e)}class tq extends r3{constructor(){super(...arguments),this.type="html",this.renderInstance=Fk}readValueFromInstance(t,n){if(jo.has(n)){const r=Jw(n);return r&&r.default||0}else{const r=eq(t),a=(Ik(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return q$(t,n)}build(t,n,r){$w(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return Bw(t,n,r)}}class nq extends r3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(jo.has(n)){const r=Jw(n);return r&&r.default||0}return n=Vk.has(n)?n:_w(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Kk(t,n,r)}build(t,n,r){Lw(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){Hk(t,n,r,a)}mount(t){this.isSVGTag=Iw(t.tagName),super.mount(t)}}const rq=(e,t)=>Mw(e)?new nq(t):new tq(t,{allowProjection:e!==A.Fragment}),aq=DF({...NV,...YH,...LH,...WH},rq),Ct=W7(aq);function a3(e,t){let n;const r=()=>{const{currentTime:a}=t,s=(a===null?0:a.value)/100;n!==s&&e(s),n=s};return Re.update(r,!0),()=>Br(r)}const Sp=new WeakMap;let pi;function iq(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function sq({target:e,contentRect:t,borderBoxSize:n}){var r;(r=Sp.get(e))===null||r===void 0||r.forEach(a=>{a({target:e,contentSize:t,get size(){return iq(e,n)}})})}function oq(e){e.forEach(sq)}function lq(){typeof ResizeObserver>"u"||(pi=new ResizeObserver(oq))}function cq(e,t){pi||lq();const n=t$(e);return n.forEach(r=>{let a=Sp.get(r);a||(a=new Set,Sp.set(r,a)),a.add(t),pi==null||pi.observe(r)}),()=>{n.forEach(r=>{const a=Sp.get(r);a==null||a.delete(t),a!=null&&a.size||pi==null||pi.unobserve(r)})}}const wp=new Set;let nf;function uq(){nf=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};wp.forEach(n=>n(t))},window.addEventListener("resize",nf)}function fq(e){return wp.add(e),nf||uq(),()=>{wp.delete(e),!wp.size&&nf&&(nf=void 0)}}function dq(e,t){return typeof e=="function"?fq(e):cq(e,t)}const hq=50,IE=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),pq=()=>({time:0,x:IE(),y:IE()}),mq={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function BE(e,t,n,r){const a=n[t],{length:i,position:s}=mq[t],o=a.current,l=n.time;a.current=e[`scroll${s}`],a.scrollLength=e[`scroll${i}`]-e[`client${i}`],a.offset.length=0,a.offset[0]=0,a.offset[1]=a.scrollLength,a.progress=so(0,a.scrollLength,a.current);const c=r-l;a.velocity=c>hq?0:Yw(a.current-o,c)}function yq(e,t,n){BE(e,"x",t,n),BE(e,"y",t,n),t.time=n}function gq(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const a=r.getBoundingClientRect();r=r.parentElement;const i=r.getBoundingClientRect();n.x+=a.left-i.left,n.y+=a.top-i.top}else if(r instanceof SVGGraphicsElement){const{x:a,y:i}=r.getBBox();n.x+=a,n.y+=i;let s=null,o=r.parentNode;for(;!s;)o.tagName==="svg"&&(s=o),o=r.parentNode;r=s}else break;return n}const Ex={start:0,center:.5,end:1};function UE(e,t,n=0){let r=0;if(e in Ex&&(e=Ex[e]),typeof e=="string"){const a=parseFloat(e);e.endsWith("px")?r=a:e.endsWith("%")?e=a/100:e.endsWith("vw")?r=a/100*document.documentElement.clientWidth:e.endsWith("vh")?r=a/100*document.documentElement.clientHeight:e=a}return typeof e=="number"&&(r=t*e),n+r}const vq=[0,0];function bq(e,t,n,r){let a=Array.isArray(e)?e:vq,i=0,s=0;return typeof e=="number"?a=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?a=e.split(" "):a=[e,Ex[e]?e:"0"]),i=UE(a[0],n,r),s=UE(a[1],t),i-s}const xq={All:[[0,0],[1,1]]},Sq={x:0,y:0};function wq(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function jq(e,t,n){const{offset:r=xq.All}=n,{target:a=e,axis:i="y"}=n,s=i==="y"?"height":"width",o=a!==e?gq(a,e):Sq,l=a===e?{width:e.scrollWidth,height:e.scrollHeight}:wq(a),c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let d=!t[i].interpolate;const f=r.length;for(let h=0;h<f;h++){const p=bq(r[h],c[s],l[s],o[i]);!d&&p!==t[i].interpolatorOffsets[h]&&(d=!0),t[i].offset[h]=p}d&&(t[i].interpolate=nj(t[i].offset,D$(r),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=fa(0,1,t[i].interpolate(t[i].current))}function Aq(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function Oq(e,t,n,r={}){return{measure:()=>Aq(e,r.target,n),update:a=>{yq(e,n,a),(r.offset||r.target)&&jq(e,n,r)},notify:()=>t(n)}}const du=new WeakMap,FE=new WeakMap,ib=new WeakMap,VE=e=>e===document.documentElement?window:e;function sj(e,{container:t=document.documentElement,...n}={}){let r=ib.get(t);r||(r=new Set,ib.set(t,r));const a=pq(),i=Oq(t,e,a,n);if(r.add(i),!du.has(t)){const o=()=>{for(const h of r)h.measure()},l=()=>{for(const h of r)h.update(Ut.timestamp)},c=()=>{for(const h of r)h.notify()},d=()=>{Re.read(o,!1,!0),Re.read(l,!1,!0),Re.update(c,!1,!0)};du.set(t,d);const f=VE(t);window.addEventListener("resize",d,{passive:!0}),t!==document.documentElement&&FE.set(t,dq(t,d)),f.addEventListener("scroll",d,{passive:!0})}const s=du.get(t);return Re.read(s,!1,!0),()=>{var o;Br(s);const l=ib.get(t);if(!l||(l.delete(i),l.size))return;const c=du.get(t);du.delete(t),c&&(VE(t).removeEventListener("scroll",c),(o=FE.get(t))===null||o===void 0||o(),window.removeEventListener("resize",c))}}function Eq({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},a=sj(i=>{r.value=i[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:a}}const sb=new Map;function i3({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),sb.has(t)||sb.set(t,{});const r=sb.get(t);return r[n]||(r[n]=Wk()?new ScrollTimeline({source:t,axis:n}):Eq({source:t,axis:n})),r[n]}function Tq(e){return e.length===2}function s3(e){return e&&(e.target||e.offset)}function Nq(e,t){return Tq(e)||s3(t)?sj(n=>{e(n[t.axis].progress,n)},t):a3(e,i3(t))}function Cq(e,t){if(e.flatten(),s3(t))return e.pause(),sj(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=i3(t);return e.attachTimeline?e.attachTimeline(n,r=>(r.pause(),a3(a=>{r.time=r.duration*a},n))):vn}}function _q(e,{axis:t="y",...n}={}){const r={axis:t,...n};return typeof e=="function"?Nq(e,r):Cq(e,r)}function HE(e,t){U7(!!(!t||t.current))}const Pq=()=>({scrollX:ea(0),scrollY:ea(0),scrollXProgress:ea(0),scrollYProgress:ea(0)});function Mq({container:e,target:t,layoutEffect:n=!0,...r}={}){const a=Ic(Pq);return(n?Xy:A.useEffect)(()=>(HE("target",t),HE("container",e),_q((s,{x:o,y:l})=>{a.scrollX.set(o.current),a.scrollXProgress.set(o.progress),a.scrollY.set(l.current),a.scrollYProgress.set(l.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),a}function Rq(e){const t=Ic(()=>ea(e)),{isStatic:n}=A.useContext(Wy);if(n){const[,r]=A.useState(e);A.useEffect(()=>t.on("change",r),[])}return t}function o3(e,t){const n=Rq(t()),r=()=>n.set(t());return r(),Xy(()=>{const a=()=>Re.preRender(r,!1,!0),i=e.map(s=>s.on("change",a));return()=>{i.forEach(s=>s()),Br(r)}}),n}const Dq=e=>e&&typeof e=="object"&&e.mix,kq=e=>Dq(e)?e.mix:void 0;function $q(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],a=e[1+n],i=e[2+n],s=e[3+n],o=nj(a,i,{mixer:kq(i[0]),...s});return t?o(r):o}function Lq(e){Qu.current=[],e();const t=o3(Qu.current,e);return Qu.current=void 0,t}function ob(e,t,n,r){if(typeof e=="function")return Lq(e);const a=typeof t=="function"?t:$q(t,n,r);return Array.isArray(e)?qE(e,a):qE([e],([i])=>a(i))}function qE(e,t){const n=Ic(()=>[]);return o3(e,()=>{n.length=0;const r=e.length;for(let a=0;a<r;a++)n[a]=e[a].get();return t(n)})}function ai(){!ij.current&&n3();const[e]=A.useState(pm.current);return e}const pe=e=>typeof e=="string",hu=()=>{let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n},KE=e=>e==null?"":String(e),zq=(e,t,n)=>{e.forEach(r=>{t[r]&&(n[r]=t[r])})},Iq=/###/g,GE=e=>e&&e.includes("###")?e.replace(Iq,"."):e,YE=e=>!e||pe(e),rf=(e,t,n)=>{const r=pe(t)?t.split("."):t;let a=0;for(;a<r.length-1;){if(YE(e))return{};const i=GE(r[a]);!e[i]&&n&&(e[i]=new n),Object.prototype.hasOwnProperty.call(e,i)?e=e[i]:e={},++a}return YE(e)?{}:{obj:e,k:GE(r[a])}},WE=(e,t,n)=>{const{obj:r,k:a}=rf(e,t,Object);if(r!==void 0||t.length===1){r[a]=n;return}let i=t[t.length-1],s=t.slice(0,t.length-1),o=rf(e,s,Object);for(;o.obj===void 0&&s.length;)i=`${s[s.length-1]}.${i}`,s=s.slice(0,s.length-1),o=rf(e,s,Object),o!=null&&o.obj&&typeof o.obj[`${o.k}.${i}`]<"u"&&(o.obj=void 0);o.obj[`${o.k}.${i}`]=n},Bq=(e,t,n,r)=>{const{obj:a,k:i}=rf(e,t,Object);a[i]=a[i]||[],a[i].push(n)},mm=(e,t)=>{const{obj:n,k:r}=rf(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,r))return n[r]},Uq=(e,t,n)=>{const r=mm(e,n);return r!==void 0?r:mm(t,n)},l3=(e,t,n)=>{for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?pe(e[r])||e[r]instanceof String||pe(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):l3(e[r],t[r],n):e[r]=t[r]);return e},ja=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),Fq={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},Vq=e=>pe(e)?e.replace(/[&<>"'\/]/g,t=>Fq[t]):e;class Hq{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){const n=this.regExpMap.get(t);if(n!==void 0)return n;const r=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,r),this.regExpQueue.push(t),r}}const qq=[" ",",","?","!",";"],Kq=new Hq(20),Gq=(e,t,n)=>{t=t||"",n=n||"";const r=qq.filter(s=>!t.includes(s)&&!n.includes(s));if(r.length===0)return!0;const a=Kq.getRegExp(`(${r.map(s=>s==="?"?"\\?":s).join("|")})`);let i=!a.test(e);if(!i){const s=e.indexOf(n);s>0&&!a.test(e.substring(0,s))&&(i=!0)}return i},Tx=(e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;const r=t.split(n);let a=e;for(let i=0;i<r.length;){if(!a||typeof a!="object")return;let s,o="";for(let l=i;l<r.length;++l)if(l!==i&&(o+=n),o+=r[l],s=a[o],s!==void 0){if(["string","number","boolean"].includes(typeof s)&&l<r.length-1)continue;i+=l-i+1;break}a=s}return a},kf=e=>e==null?void 0:e.replace(/_/g,"-"),Yq={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,r;(r=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||r.call(n,console,t)}};class ym{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||Yq,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,a){return a&&!this.debug?null:(t=t.map(i=>pe(i)?i.replace(/[\r\n\x00-\x1F\x7F]/g," "):i),pe(t[0])&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new ym(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new ym(this.logger,t)}}var ta=new ym;let ng=class{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]||(this.observers[r]=new Map);const a=this.observers[r].get(n)||0;this.observers[r].set(n,a+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}once(t,n){const r=(...a)=>{n(...a),this.off(t,r)};return this.on(t,r),this}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([a,i])=>{for(let s=0;s<i;s++)a(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([a,i])=>{for(let s=0;s<i;s++)a(t,...n)})}};class XE extends ng{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.includes(t)||this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r,a={}){var c,d;const i=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,s=a.ignoreJSONStructure!==void 0?a.ignoreJSONStructure:this.options.ignoreJSONStructure;let o;t.includes(".")?o=t.split("."):(o=[t,n],r&&(Array.isArray(r)?o.push(...r):pe(r)&&i?o.push(...r.split(i)):o.push(r)));const l=mm(this.data,o);return!l&&!n&&!r&&t.includes(".")&&(t=o[0],n=o[1],r=o.slice(2).join(".")),l||!s||!pe(r)?l:Tx((d=(c=this.data)==null?void 0:c[t])==null?void 0:d[n],r,i)}addResource(t,n,r,a,i={silent:!1}){const s=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let o=[t,n];r&&(o=o.concat(s?r.split(s):r)),t.includes(".")&&(o=t.split("."),a=n,n=o[1]),this.addNamespaces(n),WE(this.data,o,a),i.silent||this.emit("added",t,n,r,a)}addResources(t,n,r,a={silent:!1}){for(const i in r)(pe(r[i])||Array.isArray(r[i]))&&this.addResource(t,n,i,r[i],{silent:!0});a.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,a,i,s={silent:!1,skipCopy:!1}){let o=[t,n];t.includes(".")&&(o=t.split("."),a=r,r=n,n=o[1]),this.addNamespaces(n);let l=mm(this.data,o)||{};s.skipCopy||(r=JSON.parse(JSON.stringify(r))),a?l3(l,r,i):l={...l,...r},WE(this.data,o,l),s.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(a=>n[a]&&Object.keys(n[a]).length>0)}toJSON(){return this.data}}var c3={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,a){return e.forEach(i=>{var s;t=((s=this.processors[i])==null?void 0:s.process(t,n,r,a))??t}),t}};const u3=Symbol("i18next/PATH_KEY");function Wq(){const e=[],t=Object.create(null);let n;return t.get=(r,a)=>{var i;return(i=n==null?void 0:n.revoke)==null||i.call(n),a===u3?e:(e.push(a),n=Proxy.revocable(r,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}function Sl(e,t){const{[u3]:n}=e(Wq()),r=(t==null?void 0:t.keySeparator)??".",a=(t==null?void 0:t.nsSeparator)??":",i=(t==null?void 0:t.enableSelector)==="strict";if(n.length>1&&a){const s=t==null?void 0:t.ns,o=i?Array.isArray(s)?s:s?[s]:null:Array.isArray(s)?s:null;if(o&&(i?o:o.length>1?o.slice(1):[]).includes(n[0]))return`${n[0]}${a}${n.slice(1).join(r)}`}return n.join(r)}const lb=e=>!pe(e)&&typeof e!="boolean"&&typeof e!="number";class gm extends ng{constructor(t,n={}){super(),zq(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=ta.create("translator"),this.checkedLoadedFor={}}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){const r={...n};if(t==null)return!1;const a=this.resolve(t,r);if((a==null?void 0:a.res)===void 0)return!1;const i=lb(a.res);return!(r.returnObjects===!1&&i)}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const s=r&&t.includes(r),o=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!Gq(t,r,a);if(s&&!o){const l=t.match(this.interpolator.nestingRegexp);if(l&&l.length>0)return{key:t,namespaces:pe(i)?[i]:i};const c=t.split(r);(r!==a||r===a&&this.options.ns.includes(c[0]))&&(i=c.shift()),t=c.join(a)}return{key:t,namespaces:pe(i)?[i]:i}}translate(t,n,r){let a=typeof n=="object"?{...n}:n;if(typeof a!="object"&&this.options.overloadTranslationOptionHandler&&(a=this.options.overloadTranslationOptionHandler(arguments)),typeof a=="object"&&(a={...a}),a||(a={}),t==null)return"";typeof t=="function"&&(t=Sl(t,{...this.options,...a})),Array.isArray(t)||(t=[String(t)]),t=t.map(L=>typeof L=="function"?Sl(L,{...this.options,...a}):String(L));const i=a.returnDetails!==void 0?a.returnDetails:this.options.returnDetails,s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,{key:o,namespaces:l}=this.extractFromKey(t[t.length-1],a),c=l[l.length-1];let d=a.nsSeparator!==void 0?a.nsSeparator:this.options.nsSeparator;d===void 0&&(d=":");const f=a.lng||this.language,h=a.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((f==null?void 0:f.toLowerCase())==="cimode")return h?i?{res:`${c}${d}${o}`,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(a)}:`${c}${d}${o}`:i?{res:o,usedKey:o,exactUsedKey:o,usedLng:f,usedNS:c,usedParams:this.getUsedParamsDetails(a)}:o;const p=this.resolve(t,a);let m=p==null?void 0:p.res;const g=(p==null?void 0:p.usedKey)||o,v=(p==null?void 0:p.exactUsedKey)||o,y=["[object Number]","[object Function]","[object RegExp]"],b=a.joinArrays!==void 0?a.joinArrays:this.options.joinArrays,x=!this.i18nFormat||this.i18nFormat.handleAsObject,w=a.count!==void 0&&!pe(a.count),S=gm.hasDefaultValue(a),j=w?this.pluralResolver.getSuffix(f,a.count,a):"",O=a.ordinal&&w?this.pluralResolver.getSuffix(f,a.count,{ordinal:!1}):"",E=w&&!a.ordinal&&a.count===0,T=E&&a[`defaultValue${this.options.pluralSeparator}zero`]||a[`defaultValue${j}`]||a[`defaultValue${O}`]||a.defaultValue;let N=m;x&&!m&&S&&(N=T);const M=lb(N),C=Object.prototype.toString.apply(N);if(x&&N&&M&&!y.includes(C)&&!(pe(b)&&Array.isArray(N))){if(!a.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const L=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,N,{...a,ns:l}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(p.res=L,p.usedParams=this.getUsedParamsDetails(a),p):L}if(s){const L=Array.isArray(N),D=L?[]:{},k=L?v:g;for(const P in N)if(Object.prototype.hasOwnProperty.call(N,P)){const $=`${k}${s}${P}`;S&&!m?D[P]=this.translate($,{...a,defaultValue:lb(T)?T[P]:void 0,joinArrays:!1,ns:l}):D[P]=this.translate($,{...a,joinArrays:!1,ns:l}),D[P]===$&&(D[P]=N[P])}m=D}}else if(x&&pe(b)&&Array.isArray(m))m=m.join(b),m&&(m=this.extendTranslation(m,t,a,r));else{let L=!1,D=!1;!this.isValidLookup(m)&&S&&(L=!0,m=T),this.isValidLookup(m)||(D=!0,m=o);const P=(a.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&D?void 0:m,$=S&&T!==m&&this.options.updateMissing;if(D||L||$){if(this.logger.log($?"updateKey":"missingKey",f,c,w&&!$?`${o}${this.pluralResolver.getSuffix(f,a.count,a)}`:o,$?T:m),s){const W=this.resolve(o,{...a,keySeparator:!1});W&&W.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let I=[];const F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,a.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(let W=0;W<F.length;W++)I.push(F[W]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(a.lng||this.language):I.push(a.lng||this.language);const H=(W,K,te)=>{var ye;const Z=S&&te!==m?te:P;this.options.missingKeyHandler?this.options.missingKeyHandler(W,c,K,Z,$,a):(ye=this.backendConnector)!=null&&ye.saveMissing&&this.backendConnector.saveMissing(W,c,K,Z,$,a),this.emit("missingKey",W,c,K,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&w?I.forEach(W=>{const K=this.pluralResolver.getSuffixes(W,a);E&&a[`defaultValue${this.options.pluralSeparator}zero`]&&!K.includes(`${this.options.pluralSeparator}zero`)&&K.push(`${this.options.pluralSeparator}zero`),K.forEach(te=>{H([W],o+te,a[`defaultValue${te}`]||T)})}):H(I,o,T))}m=this.extendTranslation(m,t,a,p,r),D&&m===o&&this.options.appendNamespaceToMissingKey&&(m=`${c}${d}${o}`),(D||L)&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}${d}${o}`:o,L?m:void 0,a))}return i?(p.res=m,p.usedParams=this.getUsedParamsDetails(a),p):m}extendTranslation(t,n,r,a,i){var l,c;if((l=this.i18nFormat)!=null&&l.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...r},r.lng||this.language||a.usedLng,a.usedNS,a.usedKey,{resolved:a});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init({...r,interpolation:{...this.options.interpolation,...r.interpolation}});const d=pe(t)&&(((c=r==null?void 0:r.interpolation)==null?void 0:c.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let f;if(d){const p=t.match(this.interpolator.nestingRegexp);f=p&&p.length}let h=r.replace&&!pe(r.replace)?r.replace:r;if(this.options.interpolation.defaultVariables&&(h={...this.options.interpolation.defaultVariables,...h}),t=this.interpolator.interpolate(t,h,r.lng||this.language||a.usedLng,r),d){const p=t.match(this.interpolator.nestingRegexp),m=p&&p.length;f<m&&(r.nest=!1)}!r.lng&&a&&a.res&&(r.lng=this.language||a.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,(...p)=>(i==null?void 0:i[0])===p[0]&&!r.context?(this.logger.warn(`It seems you are nesting recursively key: ${p[0]} in key: ${n[0]}`),null):this.translate(...p,n),r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,o=pe(s)?[s]:s;return t!=null&&(o!=null&&o.length)&&r.applyPostProcessor!==!1&&(t=c3.handle(o,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...a,usedParams:this.getUsedParamsDetails(r)},...r}:r,this)),t}resolve(t,n={}){let r,a,i,s,o;return pe(t)&&(t=[t]),Array.isArray(t)&&(t=t.map(l=>typeof l=="function"?Sl(l,{...this.options,...n}):l)),t.forEach(l=>{if(this.isValidLookup(r))return;const c=this.extractFromKey(l,n),d=c.key;a=d;let f=c.namespaces;this.options.fallbackNS&&(f=f.concat(this.options.fallbackNS));const h=n.count!==void 0&&!pe(n.count),p=h&&!n.ordinal&&n.count===0,m=n.context!==void 0&&(pe(n.context)||typeof n.context=="number")&&n.context!=="",g=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);f.forEach(v=>{var y,b;this.isValidLookup(r)||(o=v,!this.checkedLoadedFor[`${g[0]}-${v}`]&&((y=this.utils)!=null&&y.hasLoadedNamespace)&&!((b=this.utils)!=null&&b.hasLoadedNamespace(o))&&(this.checkedLoadedFor[`${g[0]}-${v}`]=!0,this.logger.warn(`key "${a}" for languages "${g.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),g.forEach(x=>{var j;if(this.isValidLookup(r))return;s=x;const w=[d];if((j=this.i18nFormat)!=null&&j.addLookupKeys)this.i18nFormat.addLookupKeys(w,d,x,v,n);else{let O;h&&(O=this.pluralResolver.getSuffix(x,n.count,n));const E=`${this.options.pluralSeparator}zero`,T=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(n.ordinal&&O.startsWith(T)&&w.push(d+O.replace(T,this.options.pluralSeparator)),w.push(d+O),p&&w.push(d+E)),m){const N=`${d}${this.options.contextSeparator||"_"}${n.context}`;w.push(N),h&&(n.ordinal&&O.startsWith(T)&&w.push(N+O.replace(T,this.options.pluralSeparator)),w.push(N+O),p&&w.push(N+E))}}let S;for(;S=w.pop();)this.isValidLookup(r)||(i=S,r=this.getResource(x,v,S,n))}))})}),{res:r,usedKey:a,exactUsedKey:i,usedLng:s,usedNS:o}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r,a={}){var i;return(i=this.i18nFormat)!=null&&i.getResource?this.i18nFormat.getResource(t,n,r,a):this.resourceStore.getResource(t,n,r,a)}getUsedParamsDetails(t={}){const n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],r=t.replace&&!pe(t.replace);let a=r?t.replace:t;if(r&&typeof t.count<"u"&&(a.count=t.count),this.options.interpolation.defaultVariables&&(a={...this.options.interpolation.defaultVariables,...a}),!r){a={...a};for(const i of n)delete a[i]}return a}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&r.startsWith(n)&&t[r]!==void 0)return!0;return!1}}class QE{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=ta.create("languageUtils")}getScriptPartFromCode(t){if(t=kf(t),!t||!t.includes("-"))return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=kf(t),!t||!t.includes("-"))return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(pe(t)&&t.includes("-")){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(t)}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const a=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(a))&&(n=a)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const a=this.getScriptPartFromCode(r);if(this.isSupportedCode(a))return n=a;const i=this.getLanguagePartFromCode(r);if(this.isSupportedCode(i))return n=i;n=this.options.supportedLngs.find(s=>s===i?!0:!s.includes("-")&&!i.includes("-")?!1:!!(s.includes("-")&&!i.includes("-")&&s.slice(0,s.indexOf("-"))===i||s.startsWith(i)&&i.length>1))}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),pe(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),a=[],i=s=>{s&&(this.isSupportedCode(s)?a.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))};return pe(t)&&(t.includes("-")||t.includes("_"))?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):pe(t)&&i(this.formatLanguageCode(t)),r.forEach(s=>{a.includes(s)||i(this.formatLanguageCode(s))}),a}}const ZE={zero:0,one:1,two:2,few:3,many:4,other:5},JE={select:e=>e===1?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class Xq{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=ta.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){const r=kf(t==="dev"?"en":t),a=n.ordinal?"ordinal":"cardinal",i=JSON.stringify({cleanedCode:r,type:a});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let s;try{s=new Intl.PluralRules(r,{type:a})}catch{if(typeof Intl>"u")return this.logger.error("No Intl support, please use an Intl polyfill!"),JE;if(!t.match(/-|_/))return JE;const l=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(l,n)}return this.pluralRulesCache[i]=s,s}needsPlural(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),(r==null?void 0:r.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,r={}){return this.getSuffixes(t,r).map(a=>`${n}${a}`)}getSuffixes(t,n={}){let r=this.getRule(t,n);return r||(r=this.getRule("dev",n)),r?r.resolvedOptions().pluralCategories.sort((a,i)=>ZE[a]-ZE[i]).map(a=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${a}`):[]}getSuffix(t,n,r={}){const a=this.getRule(t,r);return a?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${a.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,r))}}const eT=(e,t,n,r=".",a=!0)=>{let i=Uq(e,t,n);return!i&&a&&pe(n)&&(i=Tx(e,n,r),i===void 0&&(i=Tx(t,n,r))),i},cb=e=>e.replace(/\$/g,"$$$$");class tT{constructor(t={}){var n;this.logger=ta.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(r=>r),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});const{escape:n,escapeValue:r,useRawValueToEscape:a,prefix:i,prefixEscaped:s,suffix:o,suffixEscaped:l,formatSeparator:c,unescapeSuffix:d,unescapePrefix:f,nestingPrefix:h,nestingPrefixEscaped:p,nestingSuffix:m,nestingSuffixEscaped:g,nestingOptionsSeparator:v,maxReplaces:y,alwaysFormat:b}=t.interpolation;this.escape=n!==void 0?n:Vq,this.escapeValue=r!==void 0?r:!0,this.useRawValueToEscape=a!==void 0?a:!1,this.prefix=i?ja(i):s||"{{",this.suffix=o?ja(o):l||"}}",this.formatSeparator=c||",",this.unescapePrefix=d?"":f?ja(f):"-",this.unescapeSuffix=this.unescapePrefix?"":d?ja(d):"",this.nestingPrefix=h?ja(h):p||ja("$t("),this.nestingSuffix=m?ja(m):g||ja(")"),this.nestingOptionsSeparator=v||",",this.maxReplaces=y||1e3,this.alwaysFormat=b!==void 0?b:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=(n,r)=>(n==null?void 0:n.source)===r?(n.lastIndex=0,n):new RegExp(r,"g");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,r,a){var p;let i,s,o;const l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=m=>{if(!m.includes(this.formatSeparator)){const b=eT(n,l,m,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(b,void 0,r,{...a,...n,interpolationkey:m}):b}const g=m.split(this.formatSeparator),v=g.shift().trim(),y=g.join(this.formatSeparator).trim();return this.format(eT(n,l,v,this.options.keySeparator,this.options.ignoreJSONStructure),y,r,{...a,...n,interpolationkey:v})};this.resetRegExp(),!this.escapeValue&&typeof t=="string"&&/\$t\([^)]*\{[^}]*\{\{/.test(t)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");const d=(a==null?void 0:a.missingInterpolationHandler)||this.options.missingInterpolationHandler,f=((p=a==null?void 0:a.interpolation)==null?void 0:p.skipOnVariables)!==void 0?a.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:m=>cb(m)},{regex:this.regexp,safeValue:m=>this.escapeValue?cb(this.escape(m)):cb(m)}].forEach(m=>{for(o=0;i=m.regex.exec(t);){const g=i[1].trim();if(s=c(g),s===void 0)if(typeof d=="function"){const y=d(t,i,a);s=pe(y)?y:""}else if(a&&Object.prototype.hasOwnProperty.call(a,g))s="";else if(f){s=i[0];continue}else this.logger.warn(`missed to pass in variable ${g} for interpolating ${t}`),s="";else!pe(s)&&!this.useRawValueToEscape&&(s=KE(s));const v=m.safeValue(s);if(t=t.replace(i[0],v),f?(m.regex.lastIndex+=s.length,m.regex.lastIndex-=i[0].length):m.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),t}nest(t,n,r={}){let a,i,s;const o=(l,c)=>{const d=this.nestingOptionsSeparator;if(!l.includes(d))return l;const f=l.split(new RegExp(`${ja(d)}[ ]*{`));let h=`{${f[1]}`;l=f[0],h=this.interpolate(h,s);const p=h.match(/'/g),m=h.match(/"/g);(((p==null?void 0:p.length)??0)%2===0&&!m||((m==null?void 0:m.length)??0)%2!==0)&&(h=h.replace(/'/g,'"'));try{s=JSON.parse(h),c&&(s={...c,...s})}catch(g){return this.logger.warn(`failed parsing options string in nesting for key ${l}`,g),`${l}${d}${h}`}return s.defaultValue&&s.defaultValue.includes(this.prefix)&&delete s.defaultValue,l};for(;a=this.nestingRegexp.exec(t);){let l=[];s={...r},s=s.replace&&!pe(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;const c=/{.*}/.test(a[1])?a[1].lastIndexOf("}")+1:a[1].indexOf(this.formatSeparator);if(c!==-1&&(l=a[1].slice(c).split(this.formatSeparator).map(d=>d.trim()).filter(Boolean),a[1]=a[1].slice(0,c)),i=n(o.call(this,a[1].trim(),s),s),i&&a[0]===t&&!pe(i))return i;pe(i)||(i=KE(i)),i||(this.logger.warn(`missed to resolve ${a[1]} for nesting ${t}`),i=""),l.length&&(i=l.reduce((d,f)=>this.format(d,f,r.lng,{...r,interpolationkey:a[1].trim()}),i.trim())),t=t.replace(a[0],i),this.regexp.lastIndex=0}return t}}const Qq=e=>{let t=e.toLowerCase().trim();const n={};if(e.includes("(")){const r=e.split("(");t=r[0].toLowerCase().trim();const a=r[1].slice(0,-1);t==="currency"&&!a.includes(":")?n.currency||(n.currency=a.trim()):t==="relativetime"&&!a.includes(":")?n.range||(n.range=a.trim()):a.split(";").forEach(s=>{if(s){const[o,...l]=s.split(":"),c=l.join(":").trim().replace(/^'+|'+$/g,""),d=o.trim();n[d]||(n[d]=c),c==="false"&&(n[d]=!1),c==="true"&&(n[d]=!0),isNaN(c)||(n[d]=parseInt(c,10))}})}return{formatName:t,formatOptions:n}},nT=e=>{const t={};return(n,r,a)=>{let i=a;a&&a.interpolationkey&&a.formatParams&&a.formatParams[a.interpolationkey]&&a[a.interpolationkey]&&(i={...i,[a.interpolationkey]:void 0});const s=r+JSON.stringify(i);let o=t[s];return o||(o=e(kf(r),a),t[s]=o),o(n)}},Zq=e=>(t,n,r)=>e(kf(n),r)(t);class Jq{constructor(t={}){this.logger=ta.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";const r=n.cacheInBuiltFormats?nT:Zq;this.formats={number:r((a,i)=>{const s=new Intl.NumberFormat(a,{...i});return o=>s.format(o)}),currency:r((a,i)=>{const s=new Intl.NumberFormat(a,{...i,style:"currency"});return o=>s.format(o)}),datetime:r((a,i)=>{const s=new Intl.DateTimeFormat(a,{...i});return o=>s.format(o)}),relativetime:r((a,i)=>{const s=new Intl.RelativeTimeFormat(a,{...i});return o=>s.format(o,i.range||"day")}),list:r((a,i)=>{const s=new Intl.ListFormat(a,{...i});return o=>s.format(o)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=nT(n)}format(t,n,r,a={}){if(!n||t==null)return t;const i=n.split(this.formatSeparator);if(i.length>1&&i[0].indexOf("(")>1&&!i[0].includes(")")&&i.find(o=>o.includes(")"))){const o=i.findIndex(l=>l.includes(")"));i[0]=[i[0],...i.splice(1,o)].join(this.formatSeparator)}return i.reduce((o,l)=>{var f;const{formatName:c,formatOptions:d}=Qq(l);if(this.formats[c]){let h=o;try{const p=((f=a==null?void 0:a.formatParams)==null?void 0:f[a.interpolationkey])||{},m=p.locale||p.lng||a.locale||a.lng||r;h=this.formats[c](o,m,{...d,...a,...p})}catch(p){this.logger.warn(p)}return h}else this.logger.warn(`there was no format function for ${c}`);return o},t)}}const eK=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)};class tK extends ng{constructor(t,n,r,a={}){var i,s;super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=a,this.logger=ta.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=a.maxParallelReads||10,this.readingCalls=0,this.maxRetries=a.maxRetries>=0?a.maxRetries:5,this.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,this.state={},this.queue=[],(s=(i=this.backend)==null?void 0:i.init)==null||s.call(i,r,a.backend,a)}queueLoad(t,n,r,a){const i={},s={},o={},l={};return t.forEach(c=>{let d=!0;n.forEach(f=>{const h=`${c}|${f}`;!r.reload&&this.store.hasResourceBundle(c,f)?this.state[h]=2:this.state[h]<0||(this.state[h]===1?s[h]===void 0&&(s[h]=!0):(this.state[h]=1,d=!1,s[h]===void 0&&(s[h]=!0),i[h]===void 0&&(i[h]=!0),l[f]===void 0&&(l[f]=!0)))}),d||(o[c]=!0)}),(Object.keys(i).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:a}),{toLoad:Object.keys(i),pending:Object.keys(s),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(l)}}loaded(t,n,r){const a=t.split("|"),i=a[0],s=a[1];n&&this.emit("failedLoading",i,s,n),!n&&r&&this.store.addResourceBundle(i,s,r,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&r&&(this.state[t]=0);const o={};this.queue.forEach(l=>{Bq(l.loaded,[i],s),eK(l,t),n&&l.errors.push(n),l.pendingCount===0&&!l.done&&(Object.keys(l.loaded).forEach(c=>{o[c]||(o[c]={});const d=l.loaded[c];d.length&&d.forEach(f=>{o[c][f]===void 0&&(o[c][f]=!0)})}),l.done=!0,l.errors.length?l.callback(l.errors):l.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(l=>!l.done)}read(t,n,r,a=0,i=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:a,wait:i,callback:s});return}this.readingCalls++;const o=(c,d)=>{if(this.readingCalls--,this.waitingReads.length>0){const f=this.waitingReads.shift();this.read(f.lng,f.ns,f.fcName,f.tried,f.wait,f.callback)}if(c&&d&&a<this.maxRetries){setTimeout(()=>{this.read(t,n,r,a+1,i*2,s)},i);return}s(c,d)},l=this.backend[r].bind(this.backend);if(l.length===2){try{const c=l(t,n);c&&typeof c.then=="function"?c.then(d=>o(null,d)).catch(o):o(null,c)}catch(c){o(c)}return}return l(t,n,o)}prepareLoading(t,n,r={},a){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),a&&a();pe(t)&&(t=this.languageUtils.toResolveHierarchy(t)),pe(n)&&(n=[n]);const i=this.queueLoad(t,n,r,a);if(!i.toLoad.length)return i.pending.length||a(),null;i.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t,n=""){const r=t.split("|"),a=r[0],i=r[1];this.read(a,i,"read",void 0,void 0,(s,o)=>{s&&this.logger.warn(`${n}loading namespace ${i} for language ${a} failed`,s),!s&&o&&this.logger.log(`${n}loaded namespace ${i} for language ${a}`,o),this.loaded(t,s,o)})}saveMissing(t,n,r,a,i,s={},o=()=>{}){var l,c,d,f,h;if((c=(l=this.services)==null?void 0:l.utils)!=null&&c.hasLoadedNamespace&&!((f=(d=this.services)==null?void 0:d.utils)!=null&&f.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if((h=this.backend)!=null&&h.create){const p={...s,isUpdate:i},m=this.backend.create.bind(this.backend);if(m.length<6)try{let g;m.length===5?g=m(t,n,r,a,p):g=m(t,n,r,a),g&&typeof g.then=="function"?g.then(v=>o(null,v)).catch(o):o(null,g)}catch(g){o(g)}else m(t,n,r,a,o,p)}!t||!t[0]||this.store.addResource(t[0],n,r,a)}}}const ub=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),pe(e[1])&&(t.defaultValue=e[1]),pe(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),rT=e=>(pe(e.ns)&&(e.ns=[e.ns]),pe(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),pe(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),Ph=()=>{},nK=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})};class af extends ng{constructor(t={},n){if(super(),this.options=rT(t),this.services={},this.logger=ta,this.modules={external:[]},nK(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(pe(t.ns)?t.defaultNS=t.ns:t.ns.includes("translation")||(t.defaultNS=t.ns[0]));const r=ub();this.options={...r,...this.options,...rT(t)},this.options.interpolation={...r.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator),typeof this.options.overloadTranslationOptionHandler!="function"&&(this.options.overloadTranslationOptionHandler=r.overloadTranslationOptionHandler);const a=c=>c?typeof c=="function"?new c:c:null;if(!this.options.isClone){this.modules.logger?ta.init(a(this.modules.logger),this.options):ta.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:c=Jq;const d=new QE(this.options);this.store=new XE(this.options.resources,this.options);const f=this.services;f.logger=ta,f.resourceStore=this.store,f.languageUtils=d,f.pluralResolver=new Xq(d,{prepend:this.options.pluralSeparator}),c&&(f.formatter=a(c),f.formatter.init&&f.formatter.init(f,this.options),this.options.interpolation.format=f.formatter.format.bind(f.formatter)),f.interpolator=new tT(this.options),f.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},f.backendConnector=new tK(a(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",(h,...p)=>{this.emit(h,...p)}),this.modules.languageDetector&&(f.languageDetector=a(this.modules.languageDetector),f.languageDetector.init&&f.languageDetector.init(f,this.options.detection,this.options)),this.modules.i18nFormat&&(f.i18nFormat=a(this.modules.i18nFormat),f.i18nFormat.init&&f.i18nFormat.init(this)),this.translator=new gm(this.services,this.options),this.translator.on("*",(h,...p)=>{this.emit(h,...p)}),this.modules.external.forEach(h=>{h.init&&h.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Ph),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=(...d)=>this.store[c](...d)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=(...d)=>(this.store[c](...d),this)});const o=hu(),l=()=>{const c=(d,f)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(f),n(d,f)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initAsync?l():setTimeout(l,0),o}loadResources(t,n=Ph){var i,s;let r=n;const a=pe(t)?t:this.language;if(typeof t=="function"&&(r=t),!this.options.resources||this.options.partialBundledLanguages){if((a==null?void 0:a.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return r();const o=[],l=c=>{if(!c||c==="cimode")return;this.services.languageUtils.toResolveHierarchy(c).forEach(f=>{f!=="cimode"&&(o.includes(f)||o.push(f))})};a?l(a):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(d=>l(d)),(s=(i=this.options.preload)==null?void 0:i.forEach)==null||s.call(i,c=>l(c)),this.services.backendConnector.load(o,this.options.ns,c=>{!c&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),r(c)})}else r(null)}reloadResources(t,n,r){const a=hu();return typeof t=="function"&&(r=t,t=void 0),typeof n=="function"&&(r=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),r||(r=Ph),this.services.backendConnector.reload(t,n,i=>{a.resolve(),r(i)}),a}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&c3.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!["cimode","dev"].includes(t)){for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!["cimode","dev"].includes(r)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}!this.resolvedLanguage&&!this.languages.includes(t)&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;const r=hu();this.emit("languageChanging",t);const a=o=>{this.language=o,this.languages=this.services.languageUtils.toResolveHierarchy(o),this.resolvedLanguage=void 0,this.setResolvedLanguage(o)},i=(o,l)=>{l?this.isLanguageChangingTo===t&&(a(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,r.resolve((...c)=>this.t(...c)),n&&n(o,(...c)=>this.t(...c))},s=o=>{var d,f;!t&&!o&&this.services.languageDetector&&(o=[]);const l=pe(o)?o:o&&o[0],c=this.store.hasLanguageSomeTranslations(l)?l:this.services.languageUtils.getBestMatchFromCodes(pe(o)?[o]:o);c&&(this.language||a(c),this.translator.language||this.translator.changeLanguage(c),(f=(d=this.services.languageDetector)==null?void 0:d.cacheUserLanguage)==null||f.call(d,c)),this.loadResources(c,h=>{i(h,c)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),r}getFixedT(t,n,r,a){const i=a==null?void 0:a.scopeNs,s=(o,l,...c)=>{let d;typeof l!="object"?d=this.options.overloadTranslationOptionHandler([o,l].concat(c)):d={...l},d.lng=d.lng||s.lng,d.lngs=d.lngs||s.lngs;const f=d.ns!==void 0&&d.ns!==null;d.ns=d.ns||s.ns,d.keyPrefix!==""&&(d.keyPrefix=d.keyPrefix||r||s.keyPrefix);const h={...this.options,...d};Array.isArray(i)&&!f&&(h.ns=i),typeof d.keyPrefix=="function"&&(d.keyPrefix=Sl(d.keyPrefix,h));const p=this.options.keySeparator||".";let m;return d.keyPrefix&&Array.isArray(o)?m=o.map(g=>(typeof g=="function"&&(g=Sl(g,h)),`${d.keyPrefix}${p}${g}`)):(typeof o=="function"&&(o=Sl(o,h)),m=d.keyPrefix?`${d.keyPrefix}${p}${o}`:o),this.t(m,d)};return pe(t)?s.lng=t:s.lngs=t,s.ns=n,s.keyPrefix=r,s}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],a=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const s=(o,l)=>{const c=this.services.backendConnector.state[`${o}|${l}`];return c===-1||c===0||c===2};if(n.precheck){const o=n.precheck(this,s);if(o!==void 0)return o}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(r,t)&&(!a||s(i,t)))}loadNamespaces(t,n){const r=hu();return this.options.ns?(pe(t)&&(t=[t]),t.forEach(a=>{this.options.ns.includes(a)||this.options.ns.push(a)}),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=hu();pe(t)&&(t=[t]);const a=this.options.preload||[],i=t.filter(s=>!a.includes(s)&&this.services.languageUtils.isSupportedCode(s));return i.length?(this.options.preload=a.concat(i),this.loadResources(s=>{r.resolve(),n&&n(s)}),r):(n&&n(),Promise.resolve())}dir(t){var a,i;if(t||(t=this.resolvedLanguage||(((a=this.languages)==null?void 0:a.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{const s=new Intl.Locale(t);if(s&&s.getTextInfo){const o=s.getTextInfo();if(o&&o.direction)return o.direction}}catch{}const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=((i=this.services)==null?void 0:i.languageUtils)||new QE(ub());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.includes(r.getLanguagePartFromCode(t))||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){const r=new af(t,n);return r.createInstance=af.createInstance,r}cloneInstance(t={},n=Ph){const r=t.forkResourceStore;r&&delete t.forkResourceStore;const a={...this.options,...t,isClone:!0},i=new af(a);if((t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(o=>{i[o]=this[o]}),i.services={...this.services},i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r){const o=Object.keys(this.store.data).reduce((l,c)=>(l[c]={...this.store.data[c]},l[c]=Object.keys(l[c]).reduce((d,f)=>(d[f]={...l[c][f]},d),l[c]),l),{});i.store=new XE(o,a),i.services.resourceStore=i.store}if(t.interpolation){const l={...ub().interpolation,...this.options.interpolation,...t.interpolation},c={...a,interpolation:l};i.services.interpolator=new tT(c)}return i.translator=new gm(i.services,a),i.translator.on("*",(o,...l)=>{i.emit(o,...l)}),i.init(a,n),i.translator.options=a,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const an=af.createInstance();an.createInstance;an.dir;an.init;an.loadResources;an.reloadResources;an.use;an.changeLanguage;an.getFixedT;an.t;an.exists;an.setDefaultNamespace;an.hasLoadedNamespace;an.loadNamespaces;an.loadLanguages;const rK=(e,t,n,r)=>{var i,s,o,l;const a=[n,{code:t,...r||{}}];if((s=(i=e==null?void 0:e.services)==null?void 0:i.logger)!=null&&s.forward)return e.services.logger.forward(a,"warn","react-i18next::",!0);oo(a[0])&&(a[0]=`react-i18next:: ${a[0]}`),(l=(o=e==null?void 0:e.services)==null?void 0:o.logger)!=null&&l.warn?e.services.logger.warn(...a):console!=null&&console.warn&&console.warn(...a)},aT={},Nx=(e,t,n,r)=>{oo(n)&&aT[n]||(oo(n)&&(aT[n]=new Date),rK(e,t,n,r))},f3=(e,t)=>()=>{if(e.isInitialized)t();else{const n=()=>{setTimeout(()=>{e.off("initialized",n)},0),t()};e.on("initialized",n)}},Cx=(e,t,n)=>{e.loadNamespaces(t,f3(e,n))},iT=(e,t,n,r)=>{if(oo(n)&&(n=[n]),e.options.preload&&e.options.preload.indexOf(t)>-1)return Cx(e,n,r);n.forEach(a=>{e.options.ns.indexOf(a)<0&&e.options.ns.push(a)}),e.loadLanguages(t,f3(e,r))},aK=(e,t,n={})=>!t.languages||!t.languages.length?(Nx(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(r,a)=>{if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&r.services.backendConnector.backend&&r.isLanguageChangingTo&&!a(r.isLanguageChangingTo,e))return!1}}),oo=e=>typeof e=="string",iK=e=>typeof e=="object"&&e!==null,sK=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,oK={"&amp;":"&","&#38;":"&","&lt;":"<","&#60;":"<","&gt;":">","&#62;":">","&apos;":"'","&#39;":"'","&quot;":'"',"&#34;":'"',"&nbsp;":" ","&#160;":" ","&copy;":"©","&#169;":"©","&reg;":"®","&#174;":"®","&hellip;":"…","&#8230;":"…","&#x2F;":"/","&#47;":"/"},lK=e=>oK[e],cK=e=>e.replace(sK,lK);let _x={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:cK,transDefaultProps:void 0};const uK=(e={})=>{_x={..._x,...e}},fK=()=>_x;let d3;const dK=e=>{d3=e},hK=()=>d3,pK={type:"3rdParty",init(e){uK(e.options.react),dK(e)}},mK=A.createContext();class yK{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(n=>{this.usedNamespaces[n]||(this.usedNamespaces[n]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}var h3={exports:{}},p3={};/**
 * @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 Zl=A;function gK(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vK=typeof Object.is=="function"?Object.is:gK,bK=Zl.useState,xK=Zl.useEffect,SK=Zl.useLayoutEffect,wK=Zl.useDebugValue;function jK(e,t){var n=t(),r=bK({inst:{value:n,getSnapshot:t}}),a=r[0].inst,i=r[1];return SK(function(){a.value=n,a.getSnapshot=t,fb(a)&&i({inst:a})},[e,n,t]),xK(function(){return fb(a)&&i({inst:a}),e(function(){fb(a)&&i({inst:a})})},[e]),wK(n),n}function fb(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vK(e,n)}catch{return!0}}function AK(e,t){return t()}var OK=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?AK:jK;p3.useSyncExternalStore=Zl.useSyncExternalStore!==void 0?Zl.useSyncExternalStore:OK;h3.exports=p3;var EK=h3.exports;const TK=(e,t)=>{if(oo(t))return t;if(iK(t)&&oo(t.defaultValue))return t.defaultValue;if(typeof e=="function")return"";if(Array.isArray(e)){const n=e[e.length-1];return typeof n=="function"?"":n}return e},NK={t:TK,ready:!1},CK=()=>()=>{},ii=(e,t={})=>{var T,N,M;const{i18n:n}=t,{i18n:r,defaultNS:a}=A.useContext(mK)||{},i=n||r||hK();i&&!i.reportNamespaces&&(i.reportNamespaces=new yK),i||Nx(i,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");const s=A.useMemo(()=>{var C;return{...fK(),...(C=i==null?void 0:i.options)==null?void 0:C.react,...t}},[i,t]),{useSuspense:o,keyPrefix:l}=s,c=a||((T=i==null?void 0:i.options)==null?void 0:T.defaultNS),d=oo(c)?[c]:c||["translation"],f=A.useMemo(()=>d,d);(M=(N=i==null?void 0:i.reportNamespaces)==null?void 0:N.addUsedNamespaces)==null||M.call(N,f);const h=A.useRef(0),p=A.useCallback(C=>{if(!i)return CK;const{bindI18n:L,bindI18nStore:D}=s,k=()=>{h.current+=1,C()};return L&&i.on(L,k),D&&i.store.on(D,k),()=>{L&&L.split(" ").forEach(P=>i.off(P,k)),D&&D.split(" ").forEach(P=>i.store.off(P,k))}},[i,s]),m=A.useRef(),g=A.useCallback(()=>{if(!i)return NK;const C=!!(i.isInitialized||i.initializedStoreOnce)&&f.every(I=>aK(I,i,s)),L=t.lng||i.language,D=h.current,k=m.current;if(k&&k.ready===C&&k.lng===L&&k.keyPrefix===l&&k.revision===D)return k;const $={t:i.getFixedT(L,s.nsMode==="fallback"?f:f[0],l,{scopeNs:f}),ready:C,lng:L,keyPrefix:l,revision:D};return m.current=$,$},[i,f,l,s,t.lng]),[v,y]=A.useState(0),{t:b,ready:x}=EK.useSyncExternalStore(p,g,g);A.useEffect(()=>{if(i&&!x&&!o){const C=()=>y(L=>L+1);t.lng?iT(i,t.lng,f,C):Cx(i,f,C)}},[i,t.lng,f,x,o,v]);const w=i||{},S=A.useRef(null),j=A.useRef(),O=C=>{const L=Object.getOwnPropertyDescriptors(C);L.__original&&delete L.__original;const D=Object.create(Object.getPrototypeOf(C),L);if(!Object.prototype.hasOwnProperty.call(D,"__original"))try{Object.defineProperty(D,"__original",{value:C,writable:!1,enumerable:!1,configurable:!1})}catch{}return D},E=A.useMemo(()=>{const C=w,L=C==null?void 0:C.language;let D=C;C&&(S.current&&S.current.__original===C?j.current!==L?(D=O(C),S.current=D,j.current=L):D=S.current:(D=O(C),S.current=D,j.current=L));const k=!x&&!o?(...$)=>(Nx(i,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),b(...$)):b,P=[k,D,x];return P.t=k,P.i18n=D,P.ready=x,P},[b,w,x,w.resolvedLanguage,w.language,w.languages]);if(i&&o&&!x)throw new Promise(C=>{const L=()=>C();t.lng?iT(i,t.lng,f,L):Cx(i,f,L)});return E};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _K=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),m3=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var PK={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MK=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:s,...o},l)=>A.createElement("svg",{ref:l,...PK,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:m3("lucide",a),...o},[...s.map(([c,d])=>A.createElement(c,d)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ne=(e,t)=>{const n=A.forwardRef(({className:r,...a},i)=>A.createElement(MK,{ref:i,iconNode:t,className:m3(`lucide-${_K(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y3=ne("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cs=ne("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oj=ne("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g3=ne("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v3=ne("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b3=ne("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x3=ne("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RK=ne("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ku=ne("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DK=ne("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const kK=ne("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $K=ne("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S3=ne("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w3=ne("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const j3=ne("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sT=ne("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $f=ne("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const LK=ne("DollarSign",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const A3=ne("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const O3=ne("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E3=ne("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pt=ne("Flower2",[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T3=ne("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zK=ne("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const IK=ne("HandHeart",[["path",{d:"M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16",key:"1ifwr1"}],["path",{d:"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"17abbs"}],["path",{d:"m2 15 6 6",key:"10dquu"}],["path",{d:"M19.5 8.5c.7-.7 1.5-1.6 1.5-2.7A2.73 2.73 0 0 0 16 4a2.78 2.78 0 0 0-5 1.8c0 1.2.8 2 1.5 2.8L16 12Z",key:"1h3036"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const BK=ne("Headset",[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lf=ne("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N3=ne("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const UK=ne("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lj=ne("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oT=ne("Lock",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C3=ne("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const FK=ne("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vm=ne("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zf=ne("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const VK=ne("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _3=ne("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const HK=ne("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lT=ne("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qK=ne("PieChart",[["path",{d:"M21.21 15.89A10 10 0 1 1 8 2.83",key:"k2fpak"}],["path",{d:"M22 12A10 10 0 0 0 12 2v10z",key:"1rfc4y"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const KK=ne("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cj=ne("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const GK=ne("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cT=ne("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uj=ne("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rg=ne("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P3=ne("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fj=ne("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const YK=ne("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M3=ne("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dj=ne("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hj=ne("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pj=ne("ShoppingCart",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const WK=ne("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wl=ne("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wr=ne("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ja=ne("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hd=ne("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const XK=ne("Sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const QK=ne("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ZK=ne("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const JK=ne("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const eG=ne("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const qd=ne("Truck",[["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"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R3=ne("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D3=ne("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k3=ne("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function $3(e,t){return function(){return e.apply(t,arguments)}}const{toString:tG}=Object.prototype,{getPrototypeOf:ag}=Object,{iterator:ig,toStringTag:L3}=Symbol,sg=(e=>t=>{const n=tG.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Vr=e=>(e=e.toLowerCase(),t=>sg(t)===e),og=e=>t=>typeof t===e,{isArray:lo}=Array,Jl=og("undefined");function Fc(e){return e!==null&&!Jl(e)&&e.constructor!==null&&!Jl(e.constructor)&&Pn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const z3=Vr("ArrayBuffer");function nG(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&z3(e.buffer),t}const rG=og("string"),Pn=og("function"),I3=og("number"),Kd=e=>e!==null&&typeof e=="object",aG=e=>e===!0||e===!1,jp=e=>{if(sg(e)!=="object")return!1;const t=ag(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(L3 in e)&&!(ig in e)},iG=e=>{if(!Kd(e)||Fc(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sG=Vr("Date"),oG=Vr("File"),lG=e=>!!(e&&typeof e.uri<"u"),cG=e=>e&&typeof e.getParts<"u",uG=Vr("Blob"),fG=Vr("FileList"),dG=e=>Kd(e)&&Pn(e.pipe);function hG(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const uT=hG(),fT=typeof uT.FormData<"u"?uT.FormData:void 0,pG=e=>{if(!e)return!1;if(fT&&e instanceof fT)return!0;const t=ag(e);if(!t||t===Object.prototype||!Pn(e.append))return!1;const n=sg(e);return n==="formdata"||n==="object"&&Pn(e.toString)&&e.toString()==="[object FormData]"},mG=Vr("URLSearchParams"),[yG,gG,vG,bG]=["ReadableStream","Request","Response","Headers"].map(Vr),xG=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),lo(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(Fc(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let o;for(r=0;r<s;r++)o=i[r],t.call(null,e[o],o,e)}}function B3(e,t){if(Fc(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const _s=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,U3=e=>!Jl(e)&&e!==_s;function Px(...e){const{caseless:t,skipUndefined:n}=U3(this)&&this||{},r={},a=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&typeof s=="string"&&B3(r,s)||s,l=Mx(r,o)?r[o]:void 0;jp(l)&&jp(i)?r[o]=Px(l,i):jp(i)?r[o]=Px({},i):lo(i)?r[o]=i.slice():(!n||!Jl(i))&&(r[o]=i)};for(let i=0,s=e.length;i<s;i++){const o=e[i];if(!o||Fc(o)||(Gd(o,a),typeof o!="object"||lo(o)))continue;const l=Object.getOwnPropertySymbols(o);for(let c=0;c<l.length;c++){const d=l[c];MG.call(o,d)&&a(o[d],d)}}return r}const SG=(e,t,n,{allOwnKeys:r}={})=>(Gd(t,(a,i)=>{n&&Pn(a)?Object.defineProperty(e,i,{__proto__:null,value:$3(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),wG=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jG=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},AG=(e,t,n,r)=>{let a,i,s;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)s=a[i],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&ag(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},OG=(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},EG=e=>{if(!e)return null;if(lo(e))return e;let t=e.length;if(!I3(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},TG=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&ag(Uint8Array)),NG=(e,t)=>{const r=(e&&e[ig]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},CG=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},_G=Vr("HTMLFormElement"),PG=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),Mx=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:MG}=Object.prototype,RG=Vr("RegExp"),F3=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Gd(n,(a,i)=>{let s;(s=t(a,i,e))!==!1&&(r[i]=s||a)}),Object.defineProperties(e,r)},DG=e=>{F3(e,(t,n)=>{if(Pn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Pn(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+"'")})}})},kG=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return lo(e)?r(e):r(String(e).split(t)),n},$G=()=>{},LG=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function zG(e){return!!(e&&Pn(e.append)&&e[L3]==="FormData"&&e[ig])}const IG=e=>{const t=new WeakSet,n=r=>{if(Kd(r)){if(t.has(r))return;if(Fc(r))return r;if(!("toJSON"in r)){t.add(r);const a=lo(r)?[]:{};return Gd(r,(i,s)=>{const o=n(i);!Jl(o)&&(a[s]=o)}),t.delete(r),a}}return r};return n(e)},BG=Vr("AsyncFunction"),UG=e=>e&&(Kd(e)||Pn(e))&&Pn(e.then)&&Pn(e.catch),V3=((e,t)=>e?setImmediate:t?((n,r)=>(_s.addEventListener("message",({source:a,data:i})=>{a===_s&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),_s.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Pn(_s.postMessage)),FG=typeof queueMicrotask<"u"?queueMicrotask.bind(_s):typeof process<"u"&&process.nextTick||V3,VG=e=>e!=null&&Pn(e[ig]),z={isArray:lo,isArrayBuffer:z3,isBuffer:Fc,isFormData:pG,isArrayBufferView:nG,isString:rG,isNumber:I3,isBoolean:aG,isObject:Kd,isPlainObject:jp,isEmptyObject:iG,isReadableStream:yG,isRequest:gG,isResponse:vG,isHeaders:bG,isUndefined:Jl,isDate:sG,isFile:oG,isReactNativeBlob:lG,isReactNative:cG,isBlob:uG,isRegExp:RG,isFunction:Pn,isStream:dG,isURLSearchParams:mG,isTypedArray:TG,isFileList:fG,forEach:Gd,merge:Px,extend:SG,trim:xG,stripBOM:wG,inherits:jG,toFlatObject:AG,kindOf:sg,kindOfTest:Vr,endsWith:OG,toArray:EG,forEachEntry:NG,matchAll:CG,isHTMLForm:_G,hasOwnProperty:Mx,hasOwnProp:Mx,reduceDescriptors:F3,freezeMethods:DG,toObjectSet:kG,toCamelCase:PG,noop:$G,toFiniteNumber:LG,findKey:B3,global:_s,isContextDefined:U3,isSpecCompliantForm:zG,toJSONObject:IG,isAsyncFn:BG,isThenable:UG,setImmediate:V3,asap:FG,isIterable:VG},HG=z.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"]),qG=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim(),!(!n||t[n]&&HG[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function KG(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const GG=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),YG=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function mj(e,t){return z.isArray(e)?e.map(n=>mj(n,t)):KG(String(e).replace(t,""))}const WG=e=>mj(e,GG),XG=e=>mj(e,YG);function H3(e){const t=Object.create(null);return z.forEach(e.toJSON(),(n,r)=>{t[r]=XG(n)}),t}const dT=Symbol("internals");function pu(e){return e&&String(e).trim().toLowerCase()}function Ap(e){return e===!1||e==null?e:z.isArray(e)?e.map(Ap):WG(String(e))}function QG(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 ZG=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function db(e,t,n,r,a){if(z.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!z.isString(t)){if(z.isString(r))return t.indexOf(r)!==-1;if(z.isRegExp(r))return r.test(t)}}function JG(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function eY(e,t){const n=z.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,s){return this[r].call(this,t,a,i,s)},configurable:!0})})}let bn=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(o,l,c){const d=pu(l);if(!d)return;const f=z.findKey(a,d);(!f||a[f]===void 0||c===!0||c===void 0&&a[f]!==!1)&&(a[f||l]=Ap(o))}const s=(o,l)=>z.forEach(o,(c,d)=>i(c,d,l));if(z.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(z.isString(t)&&(t=t.trim())&&!ZG(t))s(qG(t),n);else if(z.isObject(t)&&z.isIterable(t)){let o={},l,c;for(const d of t){if(!z.isArray(d))throw new TypeError("Object iterator must return a key-value pair");o[c=d[0]]=(l=o[c])?z.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}s(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=pu(t),t){const r=z.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return QG(a);if(z.isFunction(n))return n.call(this,a,r);if(z.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=pu(t),t){const r=z.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||db(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(s){if(s=pu(s),s){const o=z.findKey(r,s);o&&(!n||db(r,r[o],o,n))&&(delete r[o],a=!0)}}return z.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||db(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return z.forEach(this,(a,i)=>{const s=z.findKey(r,i);if(s){n[s]=Ap(a),delete n[i];return}const o=t?JG(i):String(i).trim();o!==i&&delete n[i],n[o]=Ap(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return z.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&z.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[dT]=this[dT]={accessors:{}}).accessors,a=this.prototype;function i(s){const o=pu(s);r[o]||(eY(a,s),r[o]=!0)}return z.isArray(t)?t.forEach(i):i(t),this}};bn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);z.reduceDescriptors(bn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});z.freezeMethods(bn);const tY="[REDACTED ****]";function nY(e){if(z.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(z.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function rY(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||z.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof bn&&(i=i.toJSON()),r.push(i);let s;if(z.isArray(i))s=[],i.forEach((o,l)=>{const c=a(o);z.isUndefined(c)||(s[l]=c)});else{if(!z.isPlainObject(i)&&nY(i))return r.pop(),i;s=Object.create(null);for(const[o,l]of Object.entries(i)){const c=n.has(o.toLowerCase())?tY:a(l);z.isUndefined(c)||(s[o]=c)}}return r.pop(),s};return a(e)}let ae=class q3 extends Error{static from(t,n,r,a,i,s){const o=new q3(t.message,n||t.code,r,a,i);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),s&&Object.assign(o,s),o}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&z.hasOwnProp(t,"redact")?t.redact:void 0,r=z.isArray(n)&&n.length>0?rY(t,n):z.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ae.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ae.ERR_BAD_OPTION="ERR_BAD_OPTION";ae.ECONNABORTED="ECONNABORTED";ae.ETIMEDOUT="ETIMEDOUT";ae.ECONNREFUSED="ECONNREFUSED";ae.ERR_NETWORK="ERR_NETWORK";ae.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ae.ERR_DEPRECATED="ERR_DEPRECATED";ae.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ae.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ae.ERR_CANCELED="ERR_CANCELED";ae.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ae.ERR_INVALID_URL="ERR_INVALID_URL";ae.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const aY=null;function Rx(e){return z.isPlainObject(e)||z.isArray(e)}function K3(e){return z.endsWith(e,"[]")?e.slice(0,-2):e}function hb(e,t,n){return e?e.concat(t).map(function(a,i){return a=K3(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function iY(e){return z.isArray(e)&&!e.some(Rx)}const sY=z.toFlatObject(z,{},null,function(t){return/^is[A-Z]/.test(t)});function lg(e,t,n){if(!z.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=z.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,y){return!z.isUndefined(y[v])});const r=n.metaTokens,a=n.visitor||f,i=n.dots,s=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,c=o&&z.isSpecCompliantForm(t);if(!z.isFunction(a))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(z.isDate(g))return g.toISOString();if(z.isBoolean(g))return g.toString();if(!c&&z.isBlob(g))throw new ae("Blob is not supported. Use a Buffer instead.");return z.isArrayBuffer(g)||z.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function f(g,v,y){let b=g;if(z.isReactNative(t)&&z.isReactNativeBlob(g))return t.append(hb(y,v,i),d(g)),!1;if(g&&!y&&typeof g=="object"){if(z.endsWith(v,"{}"))v=r?v:v.slice(0,-2),g=JSON.stringify(g);else if(z.isArray(g)&&iY(g)||(z.isFileList(g)||z.endsWith(v,"[]"))&&(b=z.toArray(g)))return v=K3(v),b.forEach(function(w,S){!(z.isUndefined(w)||w===null)&&t.append(s===!0?hb([v],S,i):s===null?v:v+"[]",d(w))}),!1}return Rx(g)?!0:(t.append(hb(y,v,i),d(g)),!1)}const h=[],p=Object.assign(sY,{defaultVisitor:f,convertValue:d,isVisitable:Rx});function m(g,v,y=0){if(!z.isUndefined(g)){if(y>l)throw new ae("Object is too deeply nested ("+y+" levels). Max depth: "+l,ae.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(g)!==-1)throw new Error("Circular reference detected in "+v.join("."));h.push(g),z.forEach(g,function(x,w){(!(z.isUndefined(x)||x===null)&&a.call(t,x,z.isString(w)?w.trim():w,v,p))===!0&&m(x,v?v.concat(w):[w],y+1)}),h.pop()}}if(!z.isObject(e))throw new TypeError("data must be an object");return m(e),t}function hT(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function yj(e,t){this._pairs=[],e&&lg(e,this,t)}const G3=yj.prototype;G3.append=function(t,n){this._pairs.push([t,n])};G3.toString=function(t){const n=t?function(r){return t.call(this,r,hT)}:hT;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function oY(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Y3(e,t,n){if(!t)return e;const r=n&&n.encode||oY,a=z.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let s;if(i?s=i(t,a):s=z.isURLSearchParams(t)?t.toString():new yj(t,a).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class pT{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){z.forEach(this.handlers,function(r){r!==null&&t(r)})}}const gj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},lY=typeof URLSearchParams<"u"?URLSearchParams:yj,cY=typeof FormData<"u"?FormData:null,uY=typeof Blob<"u"?Blob:null,fY={isBrowser:!0,classes:{URLSearchParams:lY,FormData:cY,Blob:uY},protocols:["http","https","file","blob","url","data"]},vj=typeof window<"u"&&typeof document<"u",Dx=typeof navigator=="object"&&navigator||void 0,dY=vj&&(!Dx||["ReactNative","NativeScript","NS"].indexOf(Dx.product)<0),hY=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",pY=vj&&window.location.href||"http://localhost",mY=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:vj,hasStandardBrowserEnv:dY,hasStandardBrowserWebWorkerEnv:hY,navigator:Dx,origin:pY},Symbol.toStringTag,{value:"Module"})),en={...mY,...fY};function yY(e,t){return lg(e,new en.classes.URLSearchParams,{visitor:function(n,r,a,i){return en.isNode&&z.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function gY(e){return z.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function vY(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function W3(e){function t(n,r,a,i){let s=n[i++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),l=i>=n.length;return s=!s&&z.isArray(a)?a.length:s,l?(z.hasOwnProp(a,s)?a[s]=z.isArray(a[s])?a[s].concat(r):[a[s],r]:a[s]=r,!o):((!z.hasOwnProp(a,s)||!z.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],i)&&z.isArray(a[s])&&(a[s]=vY(a[s])),!o)}if(z.isFormData(e)&&z.isFunction(e.entries)){const n={};return z.forEachEntry(e,(r,a)=>{t(gY(r),a,n,0)}),n}return null}const ko=(e,t)=>e!=null&&z.hasOwnProp(e,t)?e[t]:void 0;function bY(e,t,n){if(z.isString(e))try{return(t||JSON.parse)(e),z.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Yd={transitional:gj,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=z.isObject(t);if(i&&z.isHTMLForm(t)&&(t=new FormData(t)),z.isFormData(t))return a?JSON.stringify(W3(t)):t;if(z.isArrayBuffer(t)||z.isBuffer(t)||z.isStream(t)||z.isFile(t)||z.isBlob(t)||z.isReadableStream(t))return t;if(z.isArrayBufferView(t))return t.buffer;if(z.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){const l=ko(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return yY(t,l).toString();if((o=z.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=ko(this,"env"),d=c&&c.FormData;return lg(o?{"files[]":t}:t,d&&new d,l)}}return i||a?(n.setContentType("application/json",!1),bY(t)):t}],transformResponse:[function(t){const n=ko(this,"transitional")||Yd.transitional,r=n&&n.forcedJSONParsing,a=ko(this,"responseType"),i=a==="json";if(z.isResponse(t)||z.isReadableStream(t))return t;if(t&&z.isString(t)&&(r&&!a||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,ko(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?ae.from(l,ae.ERR_BAD_RESPONSE,this,null,ko(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:en.classes.FormData,Blob:en.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};z.forEach(["delete","get","head","post","put","patch","query"],e=>{Yd.headers[e]={}});function pb(e,t){const n=this||Yd,r=t||n,a=bn.from(r.headers);let i=r.data;return z.forEach(e,function(o){i=o.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function X3(e){return!!(e&&e.__CANCEL__)}let Wd=class extends ae{constructor(t,n,r){super(t??"canceled",ae.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Q3(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ae("Request failed with status code "+n.status,n.status>=400&&n.status<500?ae.ERR_BAD_REQUEST:ae.ERR_BAD_RESPONSE,n.config,n.request,n))}function xY(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function SY(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[i];s||(s=c),n[a]=l,r[a]=c;let f=i,h=0;for(;f!==a;)h+=n[f++],f=f%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-s<t)return;const p=d&&c-d;return p?Math.round(h*1e3/p):void 0}}function wY(e,t){let n=0,r=1e3/t,a,i;const s=(c,d=Date.now())=>{n=d,a=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const d=Date.now(),f=d-n;f>=r?s(c,d):(a=c,i||(i=setTimeout(()=>{i=null,s(a)},r-f)))},()=>a&&s(a)]}const bm=(e,t,n=3)=>{let r=0;const a=SY(50,250);return wY(i=>{if(!i||typeof i.loaded!="number")return;const s=i.loaded,o=i.lengthComputable?i.total:void 0,l=o!=null?Math.min(s,o):s,c=Math.max(0,l-r),d=a(c);r=Math.max(r,l);const f={loaded:l,total:o,progress:o?l/o:void 0,bytes:c,rate:d||void 0,estimated:d&&o?(o-l)/d:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},mT=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},yT=e=>(...t)=>z.asap(()=>e(...t)),jY=en.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,en.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(en.origin),en.navigator&&/(msie|trident)/i.test(en.navigator.userAgent)):()=>!0,AY=en.hasStandardBrowserEnv?{write(e,t,n,r,a,i,s){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];z.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),z.isString(r)&&o.push(`path=${r}`),z.isString(a)&&o.push(`domain=${a}`),i===!0&&o.push("secure"),z.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(a!==-1&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function OY(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function EY(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Z3(e,t,n){let r=!OY(t);return e&&(r||n===!1)?EY(e,t):t}const gT=e=>e instanceof bn?{...e}:e;function co(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(c,d,f,h){return z.isPlainObject(c)&&z.isPlainObject(d)?z.merge.call({caseless:h},c,d):z.isPlainObject(d)?z.merge({},d):z.isArray(d)?d.slice():d}function a(c,d,f,h){if(z.isUndefined(d)){if(!z.isUndefined(c))return r(void 0,c,f,h)}else return r(c,d,f,h)}function i(c,d){if(!z.isUndefined(d))return r(void 0,d)}function s(c,d){if(z.isUndefined(d)){if(!z.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function o(c,d,f){if(z.hasOwnProp(t,f))return r(c,d);if(z.hasOwnProp(e,f))return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(c,d,f)=>a(gT(c),gT(d),f,!0)};return z.forEach(Object.keys({...e,...t}),function(d){if(d==="__proto__"||d==="constructor"||d==="prototype")return;const f=z.hasOwnProp(l,d)?l[d]:a,h=z.hasOwnProp(e,d)?e[d]:void 0,p=z.hasOwnProp(t,d)?t[d]:void 0,m=f(h,p,d);z.isUndefined(m)&&f!==o||(n[d]=m)}),n}const TY=["content-type","content-length"];function NY(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{TY.includes(r.toLowerCase())&&e.set(r,a)})}const CY=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function J3(e){const t=co({},e),n=h=>z.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),s=n("xsrfCookieName");let o=n("headers");const l=n("auth"),c=n("baseURL"),d=n("allowAbsoluteUrls"),f=n("url");if(t.headers=o=bn.from(o),t.url=Y3(Z3(c,f,d),n("params"),n("paramsSerializer")),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?CY(l.password):""))),z.isFormData(r)&&(en.hasStandardBrowserEnv||en.hasStandardBrowserWebWorkerEnv||z.isReactNative(r)?o.setContentType(void 0):z.isFunction(r.getHeaders)&&NY(o,r.getHeaders(),n("formDataHeaderPolicy"))),en.hasStandardBrowserEnv&&(z.isFunction(a)&&(a=a(t)),a===!0||a==null&&jY(t.url))){const p=i&&s&&AY.read(s);p&&o.set(i,p)}return t}const _Y=typeof XMLHttpRequest<"u",PY=_Y&&function(e){return new Promise(function(n,r){const a=J3(e);let i=a.data;const s=bn.from(a.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:c}=a,d,f,h,p,m;function g(){p&&p(),m&&m(),a.cancelToken&&a.cancelToken.unsubscribe(d),a.signal&&a.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(a.method.toUpperCase(),a.url,!0),v.timeout=a.timeout;function y(){if(!v)return;const x=bn.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:x,config:e,request:v};Q3(function(O){n(O),g()},function(O){r(O),g()},S),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.startsWith("file:"))||setTimeout(y)},v.onabort=function(){v&&(r(new ae("Request aborted",ae.ECONNABORTED,e,v)),g(),v=null)},v.onerror=function(w){const S=w&&w.message?w.message:"Network Error",j=new ae(S,ae.ERR_NETWORK,e,v);j.event=w||null,r(j),g(),v=null},v.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||gj;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new ae(w,S.clarifyTimeoutError?ae.ETIMEDOUT:ae.ECONNABORTED,e,v)),g(),v=null},i===void 0&&s.setContentType(null),"setRequestHeader"in v&&z.forEach(H3(s),function(w,S){v.setRequestHeader(S,w)}),z.isUndefined(a.withCredentials)||(v.withCredentials=!!a.withCredentials),o&&o!=="json"&&(v.responseType=a.responseType),c&&([h,m]=bm(c,!0),v.addEventListener("progress",h)),l&&v.upload&&([f,p]=bm(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(d=x=>{v&&(r(!x||x.type?new Wd(null,e,v):x),v.abort(),g(),v=null)},a.cancelToken&&a.cancelToken.subscribe(d),a.signal&&(a.signal.aborted?d():a.signal.addEventListener("abort",d)));const b=xY(a.url);if(b&&!en.protocols.includes(b)){r(new ae("Unsupported protocol "+b+":",ae.ERR_BAD_REQUEST,e));return}v.send(i||null)})},MY=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(l){if(!r){r=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof ae?c:new Wd(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,a(new ae(`timeout of ${t}ms exceeded`,ae.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a));const{signal:o}=n;return o.unsubscribe=()=>z.asap(s),o},RY=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},DY=async function*(e,t){for await(const n of kY(e))yield*RY(n,t)},kY=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()}},vT=(e,t,n,r)=>{const a=DY(e,t);let i=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await a.next();if(c){o(),l.close();return}let f=d.byteLength;if(n){let h=i+=f;n(h)}l.enqueue(new Uint8Array(d))}catch(c){throw o(c),c}},cancel(l){return o(l),a.return()}},{highWaterMark:2})};function $Y(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let s=r.length;const o=r.length;for(let p=0;p<o;p++)if(r.charCodeAt(p)===37&&p+2<o){const m=r.charCodeAt(p+1),g=r.charCodeAt(p+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(g>=48&&g<=57||g>=65&&g<=70||g>=97&&g<=102)&&(s-=2,p+=2)}let l=0,c=o-1;const d=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);c>=0&&(r.charCodeAt(c)===61?(l++,c--):d(c)&&(l++,c-=3)),l===1&&c>=0&&(r.charCodeAt(c)===61||d(c))&&l++;const h=Math.floor(s/4)*3-(l||0);return h>0?h:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let i=0;for(let s=0,o=r.length;s<o;s++){const l=r.charCodeAt(s);if(l<128)i+=1;else if(l<2048)i+=2;else if(l>=55296&&l<=56319&&s+1<o){const c=r.charCodeAt(s+1);c>=56320&&c<=57343?(i+=4,s++):i+=3}else i+=3}return i}const bj="1.17.0",bT=64*1024,{isFunction:Mh}=z,LY=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),xT=e=>{if(!z.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},ST=(e,...t)=>{try{return!!e(...t)}catch{return!1}},zY=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},IY=e=>{const t=z.global!==void 0&&z.global!==null?z.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=z.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:s}=e,o=a?Mh(a):typeof fetch=="function",l=Mh(i),c=Mh(s);if(!o)return!1;const d=o&&Mh(n),f=o&&(typeof r=="function"?(y=>b=>y.encode(b))(new r):async y=>new Uint8Array(await new i(y).arrayBuffer())),h=l&&d&&ST(()=>{let y=!1;const b=new i(en.origin,{body:new n,method:"POST",get duplex(){return y=!0,"half"}}),x=b.headers.has("Content-Type");return b.body!=null&&b.body.cancel(),y&&!x}),p=c&&d&&ST(()=>z.isReadableStream(new s("").body)),m={stream:p&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!m[y]&&(m[y]=(b,x)=>{let w=b&&b[y];if(w)return w.call(b);throw new ae(`Response type '${y}' is not supported`,ae.ERR_NOT_SUPPORT,x)})});const g=async y=>{if(y==null)return 0;if(z.isBlob(y))return y.size;if(z.isSpecCompliantForm(y))return(await new i(en.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(z.isArrayBufferView(y)||z.isArrayBuffer(y))return y.byteLength;if(z.isURLSearchParams(y)&&(y=y+""),z.isString(y))return(await f(y)).byteLength},v=async(y,b)=>{const x=z.toFiniteNumber(y.getContentLength());return x??g(b)};return async y=>{let{url:b,method:x,data:w,signal:S,cancelToken:j,timeout:O,onDownloadProgress:E,onUploadProgress:T,responseType:N,headers:M,withCredentials:C="same-origin",fetchOptions:L,maxContentLength:D,maxBodyLength:k}=J3(y);const P=z.isNumber(D)&&D>-1,$=z.isNumber(k)&&k>-1,I=Z=>z.hasOwnProp(y,Z)?y[Z]:void 0;let F=a||fetch;N=N?(N+"").toLowerCase():"text";let H=MY([S,j&&j.toAbortSignal()],O),W=null;const K=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let te;try{let Z;const ye=I("auth");if(ye){const X=ye.username||"",V=ye.password||"";Z={username:X,password:V}}if(zY(b)){const X=new URL(b,en.origin);if(!Z&&(X.username||X.password)){const V=xT(X.username),_e=xT(X.password);Z={username:V,password:_e}}(X.username||X.password)&&(X.username="",X.password="",b=X.href)}if(Z&&(M.delete("authorization"),M.set("Authorization","Basic "+btoa(LY((Z.username||"")+":"+(Z.password||""))))),P&&typeof b=="string"&&b.startsWith("data:")&&$Y(b)>D)throw new ae("maxContentLength size of "+D+" exceeded",ae.ERR_BAD_RESPONSE,y,W);if($&&x!=="get"&&x!=="head"){const X=await v(M,w);if(typeof X=="number"&&isFinite(X)&&X>k)throw new ae("Request body larger than maxBodyLength limit",ae.ERR_BAD_REQUEST,y,W)}if(T&&h&&x!=="get"&&x!=="head"&&(te=await v(M,w))!==0){let X=new i(b,{method:"POST",body:w,duplex:"half"}),V;if(z.isFormData(w)&&(V=X.headers.get("content-type"))&&M.setContentType(V),X.body){const[_e,ge]=mT(te,bm(yT(T)));w=vT(X.body,bT,_e,ge)}}z.isString(C)||(C=C?"include":"omit");const J=l&&"credentials"in i.prototype;if(z.isFormData(w)){const X=M.getContentType();X&&/^multipart\/form-data/i.test(X)&&!/boundary=/i.test(X)&&M.delete("content-type")}M.set("User-Agent","axios/"+bj,!1);const ot={...L,signal:H,method:x.toUpperCase(),headers:H3(M.normalize()),body:w,duplex:"half",credentials:J?C:void 0};W=l&&new i(b,ot);let He=await(l?F(W,L):F(b,ot));if(P){const X=z.toFiniteNumber(He.headers.get("content-length"));if(X!=null&&X>D)throw new ae("maxContentLength size of "+D+" exceeded",ae.ERR_BAD_RESPONSE,y,W)}const Y=p&&(N==="stream"||N==="response");if(p&&He.body&&(E||P||Y&&K)){const X={};["status","statusText","headers"].forEach(dt=>{X[dt]=He[dt]});const V=z.toFiniteNumber(He.headers.get("content-length")),[_e,ge]=E&&mT(V,bm(yT(E),!0))||[];let Xe=0;const lt=dt=>{if(P&&(Xe=dt,Xe>D))throw new ae("maxContentLength size of "+D+" exceeded",ae.ERR_BAD_RESPONSE,y,W);_e&&_e(dt)};He=new s(vT(He.body,bT,lt,()=>{ge&&ge(),K&&K()}),X)}N=N||"text";let oe=await m[z.findKey(m,N)||"text"](He,y);if(P&&!p&&!Y){let X;if(oe!=null&&(typeof oe.byteLength=="number"?X=oe.byteLength:typeof oe.size=="number"?X=oe.size:typeof oe=="string"&&(X=typeof r=="function"?new r().encode(oe).byteLength:oe.length)),typeof X=="number"&&X>D)throw new ae("maxContentLength size of "+D+" exceeded",ae.ERR_BAD_RESPONSE,y,W)}return!Y&&K&&K(),await new Promise((X,V)=>{Q3(X,V,{data:oe,headers:bn.from(He.headers),status:He.status,statusText:He.statusText,config:y,request:W})})}catch(Z){if(K&&K(),H&&H.aborted&&H.reason instanceof ae){const ye=H.reason;throw ye.config=y,W&&(ye.request=W),Z!==ye&&(ye.cause=Z),ye}throw Z&&Z.name==="TypeError"&&/Load failed|fetch/i.test(Z.message)?Object.assign(new ae("Network Error",ae.ERR_NETWORK,y,W,Z&&Z.response),{cause:Z.cause||Z}):ae.from(Z,Z&&Z.code,y,W,Z&&Z.response)}}},BY=new Map,e5=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let s=i.length,o=s,l,c,d=BY;for(;o--;)l=i[o],c=d.get(l),c===void 0&&d.set(l,c=o?new Map:IY(t)),d=c;return c};e5();const xj={http:aY,xhr:PY,fetch:{get:e5}};z.forEach(xj,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const wT=e=>`- ${e}`,UY=e=>z.isFunction(e)||e===null||e===!1;function FY(e,t){e=z.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let s=0;s<n;s++){r=e[s];let o;if(a=r,!UY(r)&&(a=xj[(o=String(r)).toLowerCase()],a===void 0))throw new ae(`Unknown adapter '${o}'`);if(a&&(z.isFunction(a)||(a=a.get(t))))break;i[o||"#"+s]=a}if(!a){const s=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=n?s.length>1?`since :
`+s.map(wT).join(`
`):" "+wT(s[0]):"as no adapter specified";throw new ae("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}const t5={getAdapter:FY,adapters:xj};function mb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Wd(null,e)}function jT(e){return mb(e),e.headers=bn.from(e.headers),e.data=pb.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),t5.getAdapter(e.adapter||Yd.adapter,e)(e).then(function(r){mb(e),e.response=r;try{r.data=pb.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=bn.from(r.headers),r},function(r){if(!X3(r)&&(mb(e),r&&r.response)){e.response=r.response;try{r.response.data=pb.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=bn.from(r.response.headers)}return Promise.reject(r)})}const cg={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{cg[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const AT={};cg.transitional=function(t,n,r){function a(i,s){return"[Axios v"+bj+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new ae(a(s," has been removed"+(n?" in "+n:"")),ae.ERR_DEPRECATED);return n&&!AT[s]&&(AT[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,o):!0}};cg.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function VY(e,t,n){if(typeof e!="object")throw new ae("options must be an object",ae.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const o=e[i],l=o===void 0||s(o,i,e);if(l!==!0)throw new ae("option "+i+" must be "+l,ae.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ae("Unknown option "+i,ae.ERR_BAD_OPTION)}}const Op={assertOptions:VY,validators:cg},An=Op.validators;let Qs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new pT,response:new pT}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const s=a.stack.indexOf(`
`);return s===-1?"":a.stack.slice(s+1)})();try{if(!r.stack)r.stack=i;else if(i){const s=i.indexOf(`
`),o=s===-1?-1:i.indexOf(`
`,s+1),l=o===-1?"":i.slice(o+1);String(r.stack).endsWith(l)||(r.stack+=`
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=co(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&Op.assertOptions(r,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean),legacyInterceptorReqResOrdering:An.transitional(An.boolean),advertiseZstdAcceptEncoding:An.transitional(An.boolean)},!1),a!=null&&(z.isFunction(a)?n.paramsSerializer={serialize:a}:Op.assertOptions(a,{encode:An.function,serialize:An.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Op.assertOptions(n,{baseUrl:An.spelling("baseURL"),withXsrfToken:An.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&z.merge(i.common,i[n.method]);i&&z.forEach(["delete","get","head","post","put","patch","query","common"],m=>{delete i[m]}),n.headers=bn.concat(s,i);const o=[];let l=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(n)===!1)return;l=l&&g.synchronous;const v=n.transitional||gj;v&&v.legacyInterceptorReqResOrdering?o.unshift(g.fulfilled,g.rejected):o.push(g.fulfilled,g.rejected)});const c=[];this.interceptors.response.forEach(function(g){c.push(g.fulfilled,g.rejected)});let d,f=0,h;if(!l){const m=[jT.bind(this),void 0];for(m.unshift(...o),m.push(...c),h=m.length,d=Promise.resolve(n);f<h;)d=d.then(m[f++],m[f++]);return d}h=o.length;let p=n;for(;f<h;){const m=o[f++],g=o[f++];try{p=m(p)}catch(v){g.call(this,v);break}}try{d=jT.call(this,p)}catch(m){return Promise.reject(m)}for(f=0,h=c.length;f<h;)d=d.then(c[f++],c[f++]);return d}getUri(t){t=co(this.defaults,t);const n=Z3(t.baseURL,t.url,t.allowAbsoluteUrls);return Y3(n,t.params,t.paramsSerializer)}};z.forEach(["delete","get","head","options"],function(t){Qs.prototype[t]=function(n,r){return this.request(co(r||{},{method:t,url:n,data:(r||{}).data}))}});z.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,s,o){return this.request(co(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Qs.prototype[t]=n(),t!=="query"&&(Qs.prototype[t+"Form"]=n(!0))});let HY=class n5{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(o=>{r.subscribe(o),i=o}).then(a);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,o){r.reason||(r.reason=new Wd(i,s,o),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 n5(function(a){t=a}),cancel:t}}};function qY(e){return function(n){return e.apply(null,n)}}function KY(e){return z.isObject(e)&&e.isAxiosError===!0}const kx={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(kx).forEach(([e,t])=>{kx[t]=e});function r5(e){const t=new Qs(e),n=$3(Qs.prototype.request,t);return z.extend(n,Qs.prototype,t,{allOwnKeys:!0}),z.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return r5(co(e,a))},n}const At=r5(Yd);At.Axios=Qs;At.CanceledError=Wd;At.CancelToken=HY;At.isCancel=X3;At.VERSION=bj;At.toFormData=lg;At.AxiosError=ae;At.Cancel=At.CanceledError;At.all=function(t){return Promise.all(t)};At.spread=qY;At.isAxiosError=KY;At.mergeConfig=co;At.AxiosHeaders=bn;At.formToJSON=e=>W3(z.isHTMLForm(e)?new FormData(e):e);At.getAdapter=t5.getAdapter;At.HttpStatusCode=kx;At.default=At;const{Axios:W2e,AxiosError:X2e,CanceledError:Q2e,isCancel:Z2e,CancelToken:J2e,VERSION:eOe,all:tOe,Cancel:nOe,isAxiosError:rOe,spread:aOe,toFormData:iOe,AxiosHeaders:sOe,HttpStatusCode:oOe,formToJSON:lOe,getAdapter:cOe,mergeConfig:uOe,create:fOe}=At,q=At.create({baseURL:""}),a5=()=>location.pathname.startsWith("/admin"),i5=()=>a5()?"mall_admin_token":"mall_token";q.interceptors.request.use(e=>{const t=localStorage.getItem(i5());return t&&(e.headers.Authorization=`Bearer ${t}`),e});q.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem(i5()),a5()&&location.pathname!=="/admin/login"&&(location.href="/admin/login")),Promise.reject(e)});const Q=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),s5=(e,t)=>q.post("/api/mall/auth/login",{username:e,password:t}),GY=(e,t,n)=>q.post("/api/mall/auth/register",{username:e,password:t,displayName:n}),o5=()=>Q(q.get("/api/mall/auth/me")),Ao=(e=!0)=>Q(q.get(`/api/mall/store?activeOnly=${e}`)),YY=(e,t)=>Q(q.put(`/api/mall/store/${e}/active`,{active:t})),WY=e=>Q(q.get(`/api/mall/zone/lookup?zip=${encodeURIComponent(e)}`)),ec=(e={})=>{const t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{r!==void 0&&r!==""&&r!==null&&t.set(n,String(r))}),Q(q.get(`/api/mall/product?${t}`))},XY=e=>Q(q.get(`/api/mall/product/${e}`)),QY=(e,t)=>Q(q.put(`/api/mall/product/${e}/status`,{status:t})),ZY=()=>Q(q.get("/api/mall/category")),JY=e=>Q(q.get(`/api/mall/store-inventory/store/${e}`)),eW=(e,t,n)=>Q(q.put(`/api/mall/store-inventory/store/${e}/product/${t}/toggle`,{available:n})),tW=(e,t,n)=>Q(q.put(`/api/mall/store-inventory/store/${e}/product/${t}/adjust`,{delta:n})),nW=(e,t)=>Q(q.get(`/api/mall/schedule/availability?storeId=${e}&date=${t}`)),l5=()=>Q(q.get("/api/mall/schedule/holidays")),rW=e=>Q(q.post("/api/mall/schedule/holiday",e)),Sj=()=>Q(q.get("/api/mall/cart")),aW=e=>Q(q.post("/api/mall/cart",e)),iW=(e,t)=>Q(q.put(`/api/mall/cart/${e}`,{quantity:t})),sW=e=>q.delete(`/api/mall/cart/${e}`),oW=(e="")=>Q(q.get(`/api/mall/order?status=${e}`)),lW=e=>Q(q.post("/api/mall/order/checkout",e)),c5=(e,t)=>Q(q.put(`/api/mall/order/${e}/status`,{status:t})),cW=(e="",t=100)=>Q(q.get(`/api/mall/order/admin?status=${e}&limit=${t}`)),uW=e=>Q(q.post("/api/mall/payment",e)),fW=()=>Q(q.get("/api/mall/subscription")),dW=e=>Q(q.post("/api/mall/subscription",e)),OT=(e,t)=>Q(q.put(`/api/mall/subscription/${e}/status`,{status:t})),hW=()=>Q(q.get("/api/mall/subscription/admin")),pW=(e="",t="")=>{const n=new URLSearchParams;return e&&n.set("status",e),t&&n.set("storeId",t),Q(q.get(`/api/mall/transfer?${n}`))},mW=e=>Q(q.put(`/api/mall/transfer/${e}/approve`,{})),yW=e=>Q(q.put(`/api/mall/transfer/${e}/reject`,{})),gW=e=>Q(q.get(`/api/mall/review/product/${e}`)),vW=e=>Q(q.get(`/api/mall/review/product/${e}/stats`)),bW=e=>Q(q.post("/api/mall/review",e)),xW=()=>Q(q.get("/api/mall/member/me")),SW=()=>Q(q.get("/api/mall/cs")),wW=e=>Q(q.post("/api/mall/cs",e)),jW=()=>Q(q.get("/api/mall/wishlist")),AW=e=>Q(q.post(`/api/mall/wishlist/${e}`,{})),OW=e=>q.delete(`/api/mall/wishlist/${e}`),EW=(e=1,t=500)=>Q(q.get(`/api/mall/analytics/dashboard?days=${e}&bigOrderThreshold=${t}`)),u5=(e=7)=>Q(q.get(`/api/mall/analytics/store-sales?days=${e}`)),f5=(e=14)=>Q(q.get(`/api/mall/analytics/trend?days=${e}`)),d5=(e=10)=>Q(q.get(`/api/mall/analytics/top-products?limit=${e}`)),TW=(e,t,n)=>Q(q.post("/api/mall/gateway/tax/quote",{amount:e,zip:t,state:n})),NW=(e,t)=>Q(q.post("/api/mall/gateway/address/verify",{address:e,zip:t})),CW=()=>Q(q.get("/api/mall/gateway/providers")),h5=(e="",t="",n=6)=>{const r=new URLSearchParams;return e&&r.set("occasion",e),t&&r.set("keyword",t),r.set("limit",String(n)),Q(q.get(`/api/mall/ai/recommend?${r}`))},_W=e=>Q(q.get(`/api/mall/ai/review-summary/${e}`)),p5=e=>Q(q.post("/api/mall/ai/nl-search",{query:e})),PW=(e,t,n)=>Q(q.post("/api/mall/ai/card-message",{occasion:e,tone:t,recipient:n})),MW=(e="valentine",t=14)=>Q(q.get(`/api/mall/ai/demand-forecast?season=${e}&days=${t}`)),RW=e=>Q(q.post("/api/mall/ai/transfer-recommend",{storeIds:e})),DW=()=>Q(q.get("/api/admin/users")),kW=e=>Q(q.post("/api/admin/users",e)),$W=(e,t)=>Q(q.put(`/api/admin/users/${e}/role`,{role:t})),LW=(e,t)=>Q(q.put(`/api/admin/users/${e}/active`,{active:t})),zW=(e,t)=>Q(q.put(`/api/admin/users/${e}/password`,{password:t})),IW=e=>q.delete(`/api/admin/users/${e}`),BW=(e="",t="",n=100)=>{const r=new URLSearchParams;return e&&r.set("action",e),t&&r.set("actor",t),r.set("limit",String(n)),Q(q.get(`/api/admin/audit?${r}`))},UW=()=>Q(q.get("/api/admin/settings")),FW=(e,t)=>Q(q.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t})),VW=(e=!0)=>Q(q.get(`/api/mall/loyalty/tiers?activeOnly=${e}`)),HW=(e,t)=>Q(q.put(`/api/mall/loyalty/tiers/${e}`,t)),wj=()=>Q(q.get("/api/mall/loyalty/me")),qW=(e=100)=>Q(q.get(`/api/mall/loyalty/points/history?limit=${e}`)),KW=(e,t,n)=>Q(q.post("/api/mall/loyalty/points/adjust",{owner:e,points:t,reason:n})),GW=()=>Q(q.post("/api/mall/loyalty/recalc-all",{})),m5=(e=30)=>Q(q.get(`/api/mall/loyalty/analytics/by-tier?days=${e}`)),YW=(e="")=>Q(q.get(`/api/mall/event/ongoing${e?`?tier=${e}`:""}`)),WW=e=>Q(q.post(`/api/mall/event/${e}/join`,{})),XW=(e="",t="",n=!1)=>{const r=new URLSearchParams;return e&&r.set("status",e),t&&r.set("type",t),r.set("activeOnly",String(n)),Q(q.get(`/api/mall/event?${r}`))},QW=e=>Q(q.post("/api/mall/event",e)),ZW=e=>Q(q.post(`/api/mall/event/${e}/publish`,{})),JW=e=>Q(q.post(`/api/mall/event/${e}/end`,{})),eX=e=>q.delete(`/api/mall/event/${e}`),tX=e=>Q(q.get(`/api/mall/event/${e}/performance`)),nX=(e,t,n)=>Q(q.post("/api/mall/event/ai/copy",{eventType:e,theme:t,tone:n}));function Xr({children:e,delay:t=0,y:n=24,className:r="",as:a="div"}){const i=ai(),s=Ct[a];return u.jsx(s,{className:r,initial:i?!1:{opacity:0,y:n},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:t,ease:[.22,1,.36,1]},children:e})}const rX={hidden:{},show:{transition:{staggerChildren:.07,delayChildren:.05}}},aX={hidden:{opacity:0,y:22},show:{opacity:1,y:0,transition:{duration:.6,ease:[.22,1,.36,1]}}};function xm({children:e,className:t=""}){const n=ai();return u.jsx(Ct.div,{className:t,variants:n?void 0:rX,initial:n?!1:"hidden",whileInView:"show",viewport:{once:!0,margin:"-40px"},children:e})}function Sm({children:e,className:t=""}){const n=ai();return u.jsx(Ct.div,{className:t,variants:n?void 0:aX,children:e})}const ET=["","sage","cream"];function Xd({count:e=14,className:t=""}){const n=ai(),r=A.useMemo(()=>Array.from({length:e}).map((a,i)=>{const s=8+Math.round(Math.random()*14);return{left:Math.round(Math.random()*100),size:s,delay:+(Math.random()*12).toFixed(2),duration:+(10+Math.random()*10).toFixed(2),kind:ET[i%ET.length]}}),[e]);return n?null:u.jsx("div",{className:`petal-layer ${t}`,"aria-hidden":"true",children:r.map((a,i)=>u.jsx("span",{className:`petal ${a.kind}`,style:{left:`${a.left}%`,width:`${a.size}px`,height:`${a.size}px`,animationDelay:`${a.delay}s`,animationDuration:`${a.duration}s`}},i))})}function Ha({children:e,className:t="",onClick:n,type:r="button",disabled:a}){const i=ai();return u.jsx(Ct.button,{type:r,onClick:n,disabled:a,className:t,whileHover:i||a?void 0:{scale:1.03,y:-1},whileTap:i||a?void 0:{scale:.97},transition:{type:"spring",stiffness:380,damping:22},children:e})}const $e={name:"Montvale Florist",tagline:"100% Florist-Designed and Hand-Delivered!",founded:2010,address:"6 Railroad Ave, Montvale, NJ 07645",phone:"(201) 690-6721",phoneTel:"+12016906721",email:"wecare@montvalefloristnj.com",rating:4.9,reviewCount:44893,promise:[{title:"100% Florist-Designed",desc:"Every arrangement is crafted by hand in our shop — never mass-produced."},{title:"Locally Independent",desc:"A real, community-focused florist in Montvale since 2010 — not an online middleman."},{title:"100% Satisfaction",desc:"We stand behind every bouquet with our satisfaction guarantee."}],hours:[{day:"Mon – Fri",open:"9:00 AM – 5:30 PM",cutoff:"Same-day by 1:00 PM"},{day:"Saturday",open:"9:00 AM – 4:00 PM",cutoff:"Same-day by 12:00 PM"},{day:"Sunday",open:"9:00 AM – 12:00 PM",cutoff:"Same-day by 10:00 AM"}],social:{instagram:"https://instagram.com/themontvaleflorist",instagramHandle:"@themontvaleflorist",facebook:"https://facebook.com/montvaleflorist1",pinterest:"https://pinterest.com/montvaleflorist",google:"https://www.google.com/search?q=Montvale+Florist",yelp:"https://yelp.com/biz/montvale-florist-montvale-3"},payments:["Visa","Mastercard","Amex","Discover","Apple Pay","Google Pay"],wallets:["Apple Pay","Google Pay"],cards:["Visa","Mastercard","Amex","Discover"],policies:["Terms of Service","Privacy Policy","Accessibility Statement","Delivery Policy"],about:"Montvale Florist is your go-to local florist, delivering not just flowers, but joy, comfort, and memories. An independent, community-focused florist dedicated to craftsmanship and personal service since 2010."},yb=[{img:"/img/hero/slide-1.jpg",eyebrow:"Birthday Blooms",headline:`Make Their Birthday
Unforgettable`,subtext:"Florist-designed bouquets, hand-delivered the same day — a celebration in every petal.",cta:"Find the Perfect Gift",to:"/category?occasion=BIRTHDAY"},{img:"/img/hero/slide-2.jpg",eyebrow:"Sympathy & Comfort",headline:`Honor Their Memory
with Heartfelt Flowers`,subtext:"Thoughtful tributes, gently arranged and delivered with care and compassion.",cta:"Send Your Condolences",to:"/category?occasion=SYMPATHY"},{img:"/img/hero/slide-3.jpg",eyebrow:"Just Because",headline:`Brighten Their Day,
Just Because`,subtext:"No occasion needed — send a smile with fresh, locally designed blooms.",cta:"Send a Smile",to:"/category?occasion=JUST_BECAUSE"}],iX=[{code:"en",label:"EN"},{code:"ko",label:"한국어"}];function ug({variant:e="shop"}){const{i18n:t}=ii(),n=(t.language||"en").split("-")[0],r=s=>{s!==n&&t.changeLanguage(s)},a=e==="admin",i=a?"flex items-center gap-0.5 rounded-lg border border-edge bg-card/60 p-0.5":"flex items-center gap-0.5 rounded-full border border-blush-100 bg-white/70 p-0.5 shadow-soft";return u.jsxs("div",{className:"flex items-center gap-1.5","aria-label":"Language",children:[u.jsx(zK,{size:15,className:a?"text-slate-400":"text-sage-600"}),u.jsx("div",{className:i,role:"group",children:iX.map(s=>{const o=s.code===n,l="px-2 py-0.5 text-[11px] font-medium rounded-full transition-colors",c=a?o?"bg-brand text-ink":"text-slate-300 hover:text-brand":o?"bg-blush-500 text-white":"text-sage-700 hover:text-blush-600";return u.jsx("button",{type:"button",onClick:()=>r(s.code),"aria-pressed":o,className:`${l} ${a?"rounded-md":""} ${c}`,children:s.label},s.code)})})]})}function sX(){const{t:e}=ii(),[t,n]=A.useState(""),[r,a]=A.useState(null),[i,s]=A.useState(!1),[o,l]=A.useState(""),{setZone:c}=Sn(),d=Gt(),f=async p=>{if(p.preventDefault(),l(""),a(null),!/^\d{5}$/.test(t)){l(e("zip.errInvalid"));return}s(!0);try{const m=await WY(t);a(m),m!=null&&m.deliverable||l(e("zip.errNotDeliverable"))}catch{l(e("zip.errFailed"))}finally{s(!1)}},h=p=>{c(t,p.storeId,p.storeName),d("/home")};return u.jsxs("div",{className:"relative min-h-screen bg-gradient-to-br from-blush-100 via-cream to-sage-100 flex items-center justify-center px-4 overflow-hidden",children:[u.jsx("div",{className:"absolute top-5 right-5 z-20",children:u.jsx(ug,{variant:"shop"})}),u.jsx(Xd,{count:18}),u.jsx(Ct.div,{"aria-hidden":!0,className:"absolute -top-20 -left-20 text-blush-200/40",animate:{rotate:[0,360]},transition:{duration:80,repeat:1/0,ease:"linear"},children:u.jsx(pt,{size:320,strokeWidth:.5})}),u.jsx(Ct.div,{"aria-hidden":!0,className:"absolute -bottom-24 -right-16 text-sage-300/40",animate:{rotate:[360,0]},transition:{duration:90,repeat:1/0,ease:"linear"},children:u.jsx(pt,{size:260,strokeWidth:.5})}),u.jsxs(Ct.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"relative z-10 w-full max-w-lg text-center",children:[u.jsxs("div",{className:"flex flex-col items-center mb-5",children:[u.jsx(Ct.span,{animate:{rotate:[0,8,-6,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},children:u.jsx(pt,{className:"text-blush-500",size:44})}),u.jsx("h1",{className:"font-serif text-4xl font-bold text-blush-900 mt-3",children:"Montvale Florist"}),u.jsx("p",{className:"font-display text-[13px] tracking-[0.35em] uppercase text-sage-600 mt-1",children:e("zip.since",{year:$e.founded})})]}),u.jsx("p",{className:"font-display text-2xl text-[#6b5258] mb-1",children:$e.tagline}),u.jsx("p",{className:"text-[#8a7077] text-sm mb-8",children:e("zip.lead")}),u.jsxs("form",{onSubmit:f,className:"bg-white/90 backdrop-blur rounded-4xl shadow-bloom p-7 border border-blush-100",children:[u.jsxs("label",{className:"flex items-center gap-2 text-sm text-blush-700 font-medium mb-3 justify-center",children:[u.jsx(vm,{size:16})," ",e("zip.enterZip")]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{value:t,onChange:p=>n(p.target.value.replace(/\D/g,"").slice(0,5)),placeholder:e("zip.placeholder"),inputMode:"numeric",autoFocus:!0,className:"flex-1 px-4 py-3.5 rounded-2xl bg-blush-50 border border-blush-100 text-center text-lg tracking-[0.3em] outline-none focus:border-blush-400 transition-colors"}),u.jsx(Ha,{type:"submit",disabled:i,className:"px-7 rounded-2xl bg-blush-500 text-white font-semibold hover:bg-blush-600 disabled:opacity-60 flex items-center gap-1",children:i?"…":u.jsxs(u.Fragment,{children:[e("zip.go")," ",u.jsx(Cs,{size:16})]})})]}),o&&u.jsx("p",{className:"text-blush-500 text-xs mt-3",children:o}),(r==null?void 0:r.deliverable)&&u.jsxs(Ct.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"mt-6 text-left overflow-hidden",children:[u.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-sage-700 font-medium mb-3",children:[u.jsx(qd,{size:15})," ",e("zip.availableStores")]}),u.jsx("div",{className:"space-y-2",children:(r.stores||[]).map(p=>u.jsxs(Ha,{onClick:()=>h(p),className:"w-full flex items-center justify-between bg-blush-50 hover:bg-blush-100 border border-blush-100 rounded-2xl px-4 py-3.5 text-left",children:[u.jsxs("span",{children:[u.jsxs("span",{className:"font-medium text-sm flex items-center gap-1.5 text-blush-900",children:[u.jsx(Hd,{size:14,className:"text-blush-500"}),p.storeName]}),u.jsx("span",{className:"block text-xs text-[#8a7077] mt-0.5",children:e("zip.radiusSameDay",{radius:p.radiusMi,cutoff:p.sameDayCutoff,tz:p.timezone})})]}),u.jsx(Cs,{size:16,className:"text-blush-500"})]},p.storeId))})]})]}),u.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6 text-[12px] text-[#8a7077]",children:[u.jsx("span",{className:"flex text-gold",children:[1,2,3,4,5].map(p=>u.jsx(Ja,{size:13,fill:"currentColor"},p))}),$e.rating,"★ · ",e("zip.reviews",{n:$e.reviewCount.toLocaleString()})]}),u.jsx("button",{onClick:()=>d("/home"),className:"text-xs text-[#a08a90] hover:text-blush-600 mt-4 underline-offset-2 hover:underline",children:e("zip.browsePickup")})]})]})}function y5({size:e=18}){return u.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:u.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12c0 4.24 2.64 7.85 6.36 9.31-.09-.79-.17-2 .03-2.86.18-.78 1.17-4.97 1.17-4.97s-.3-.6-.3-1.48c0-1.39.81-2.43 1.81-2.43.85 0 1.27.64 1.27 1.41 0 .86-.55 2.14-.83 3.33-.24 1 .5 1.81 1.48 1.81 1.78 0 3.14-1.88 3.14-4.58 0-2.4-1.72-4.07-4.19-4.07-2.85 0-4.52 2.14-4.52 4.35 0 .86.33 1.78.74 2.28.08.1.09.19.07.29l-.27 1.13c-.04.18-.14.22-.33.13-1.25-.58-2.03-2.4-2.03-3.87 0-3.15 2.29-6.04 6.6-6.04 3.46 0 6.16 2.47 6.16 5.77 0 3.44-2.17 6.21-5.18 6.21-1.01 0-1.97-.53-2.29-1.15l-.62 2.37c-.23.86-.83 1.94-1.24 2.6.94.29 1.92.44 2.95.44 5.52 0 10-4.48 10-10S17.52 2 12 2z"})})}function oX({size:e=18}){return u.jsxs("svg",{viewBox:"0 0 24 24",width:e,height:e,"aria-hidden":"true",children:[u.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z"}),u.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84A11 11 0 0 0 12 23z"}),u.jsx("path",{fill:"#FBBC05",d:"M5.84 14.1a6.6 6.6 0 0 1 0-4.2V7.06H2.18a11 11 0 0 0 0 9.88l3.66-2.84z"}),u.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1A11 11 0 0 0 2.18 7.06l3.66 2.84C6.71 7.3 9.14 5.38 12 5.38z"})]})}function lX({size:e=18}){return u.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:u.jsx("path",{d:"M12.27 13.3l4.45-2.16c.51-.25.66-.92.31-1.36-1.13-1.44-2.7-2.49-4.49-2.99-.55-.15-1.08.27-1.08.84l-.02 5.04c0 .65.72 1.06 1.32.77zM12.6 15.34l4.46 2.13c.51.25 1.13-.07 1.21-.63.25-1.8-.06-3.66-.92-5.31-.27-.51-.96-.6-1.36-.18l-3.5 3.42c-.45.45-.31 1.18.11 1.4v-.84zm-2.59.4l-3.45-3.4c-.41-.4-1.09-.32-1.37.18-.86 1.64-1.18 3.49-.95 5.29.07.56.69.89 1.21.64l4.45-2.12c.6-.29.74-1.02.06-1.43zm.08 2.36l-.02 4.95c0 .57.53.99 1.08.84 1.78-.49 3.34-1.53 4.48-2.96.35-.44.2-1.11-.31-1.36l-4.45-2.15c-.6-.29-1.31.13-1.31.78l.84.01zm-.45-7.1L5.66 7.06c-.43-.7-1.46-.56-1.69.23-.13.45-.22.92-.27 1.4-.16 1.55.05 3.12.61 4.56.21.53.91.62 1.27.13l3.95-5.32c.32-.43.06-1.05-.5-1.16l.39.56z"})})}const cX={instagram:({size:e})=>u.jsx(N3,{size:e}),facebook:({size:e})=>u.jsx(E3,{size:e}),pinterest:y5,google:oX,yelp:lX},uX={instagram:"Instagram",facebook:"Facebook",pinterest:"Pinterest",google:"Google Business",yelp:"Yelp"},fX=["instagram","facebook","pinterest","google","yelp"];function dX({size:e=18,className:t="",iconClass:n=""}){return u.jsx("div",{className:`flex items-center gap-3 ${t}`,children:fX.map(r=>{const a=$e.social[r];if(!a)return null;const i=cX[r];return u.jsx("a",{href:a,target:"_blank",rel:"noreferrer","aria-label":uX[r],className:`transition-colors ${n}`,children:u.jsx(i,{size:e})},r)})})}function hX({url:e,title:t,image:n,className:r=""}){const a=encodeURIComponent(e),i=encodeURIComponent(t||$e.name),s=encodeURIComponent(n||""),o=`https://www.facebook.com/sharer/sharer.php?u=${a}`,l=`https://pinterest.com/pin/create/button/?url=${a}&media=${s}&description=${i}`,c=$e.social.instagram,d=f=>window.open(f,"_blank","noopener,width=640,height=600");return u.jsxs("div",{className:`flex items-center gap-2 ${r}`,children:[u.jsx("span",{className:"text-xs text-[#a08a90]",children:"Share:"}),u.jsx("button",{type:"button",onClick:()=>d(c),"aria-label":"Share on Instagram",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:u.jsx(N3,{size:16})}),u.jsx("button",{type:"button",onClick:()=>d(o),"aria-label":"Share on Facebook",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:u.jsx(E3,{size:16})}),u.jsx("button",{type:"button",onClick:()=>d(l),"aria-label":"Share on Pinterest",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:u.jsx(y5,{size:16})})]})}function pX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Visa",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsx("text",{x:"24",y:"21",textAnchor:"middle",fontFamily:"Georgia, serif",fontWeight:"700",fontStyle:"italic",fontSize:"13",fill:"#1a1f71",children:"VISA"})]})}function mX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Mastercard",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsx("circle",{cx:"20",cy:"16",r:"8",fill:"#eb001b"}),u.jsx("circle",{cx:"28",cy:"16",r:"8",fill:"#f79e1b",fillOpacity:"0.85"})]})}function yX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"American Express",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#2e77bb"}),u.jsx("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"9",fill:"#fff",children:"AMEX"})]})}function gX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Discover",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsx("circle",{cx:"36",cy:"22",r:"9",fill:"#f68121"}),u.jsx("text",{x:"22",y:"19",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"7",fill:"#231f20",children:"DISCOVER"})]})}function vX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Apple Pay",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#000"}),u.jsx("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"-apple-system, Helvetica, sans-serif",fontWeight:"600",fontSize:"9",fill:"#fff",children:" Pay"})]})}function bX(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Google Pay",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsxs("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"9",children:[u.jsx("tspan",{fill:"#4285f4",children:"G"}),u.jsx("tspan",{fill:"#ea4335",children:"o"}),u.jsx("tspan",{fill:"#fbbc05",children:"o"}),u.jsx("tspan",{fill:"#4285f4",children:"g"}),u.jsx("tspan",{fill:"#34a853",children:"l"}),u.jsx("tspan",{fill:"#ea4335",children:"e"}),u.jsx("tspan",{fill:"#5f6368",children:" Pay"})]})]})}const g5={Visa:pX,Mastercard:mX,Amex:yX,Discover:gX,"Apple Pay":vX,"Google Pay":bX};function v5({items:e,className:t=""}){return u.jsx("div",{className:`flex flex-wrap items-center gap-1.5 ${t}`,children:e.map(n=>{const r=g5[n];return r?u.jsx(r,{},n):u.jsx("span",{className:"text-[10px] bg-cream/10 rounded px-2 py-1",children:n},n)})})}function xX(e){const t=e.replace(/\D/g,"");return t.length<4?"•••• •••• •••• ••••":`•••• •••• •••• ${t.slice(-4)}`}function SX(e){return e.replace(/\D/g,"").slice(0,16).replace(/(.{4})/g,"$1 ").trim()}function wX({method:e,onMethod:t,onCardChange:n,cards:r=["Visa","Mastercard","Amex","Discover"],wallets:a=["Apple Pay","Google Pay"]}){const[i,s]=A.useState(""),[o,l]=A.useState(""),[c,d]=A.useState(""),[f,h]=A.useState(""),[p,m]=A.useState(!1),g=i.replace(/\D/g,""),v=(b=i,x=o,w=c)=>{const S=b.replace(/\D/g,""),j=S.length>=15&&/^\d{2}\/\d{2}$/.test(x)&&w.replace(/\D/g,"").length>=3;n==null||n({last4:S.slice(-4),expiry:x,complete:j})},y=b=>b==="Apple Pay"?"APPLE_PAY":"GOOGLE_PAY";return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[u.jsxs("button",{type:"button",onClick:()=>t("CARD"),className:`flex items-center justify-center gap-1.5 py-2.5 rounded-xl border text-sm ${e==="CARD"?"border-bloom bg-petal text-bloom2 font-semibold":"border-blush-100 text-[#6b5258]"}`,children:[u.jsx(sT,{size:16})," Card"]}),a.map(b=>{const x=y(b),w=g5[b];return u.jsx("button",{type:"button",onClick:()=>t(x),className:`flex items-center justify-center py-2 rounded-xl border ${e===x?"border-bloom bg-petal":"border-blush-100"}`,"aria-label":b,children:w?u.jsx(w,{}):u.jsx("span",{className:"text-sm",children:b})},b)})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-[11px] text-gray-400",children:"Accepted:"}),u.jsx(v5,{items:r})]}),e==="CARD"?u.jsxs("div",{className:"rounded-2xl border border-blush-100 p-4 space-y-3 bg-white",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Card number"}),u.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 rounded-xl border border-blush-100 focus-within:border-bloom",children:[u.jsx(sT,{size:16,className:"text-blush-400 shrink-0"}),u.jsx("input",{inputMode:"numeric",autoComplete:"cc-number",value:p?SX(i):g?xX(i):"",onFocus:()=>m(!0),onBlur:()=>m(!1),onChange:b=>{const x=b.target.value;s(x),v(x)},placeholder:"1234 1234 1234 1234",className:"flex-1 bg-transparent text-sm outline-none tracking-wider"})]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Expiry (MM/YY)"}),u.jsx("input",{inputMode:"numeric",autoComplete:"cc-exp",value:o,onChange:b=>{let x=b.target.value.replace(/\D/g,"").slice(0,4);x.length>=3&&(x=x.slice(0,2)+"/"+x.slice(2)),l(x),v(i,x)},placeholder:"MM/YY",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"CVC"}),u.jsx("input",{inputMode:"numeric",autoComplete:"cc-csc",value:c,onChange:b=>{const x=b.target.value.replace(/\D/g,"").slice(0,4);d(x),v(i,o,x)},placeholder:"•••",type:"password",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Name on card"}),u.jsx("input",{autoComplete:"cc-name",value:f,onChange:b=>h(b.target.value),placeholder:"Full name",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsxs("p",{className:"flex items-center gap-1 text-[11px] text-gray-400",children:[u.jsx(oT,{size:11})," Card number is masked and never stored on this device. Processed via GUARDiA PaymentGateway."]})]}):u.jsxs("div",{className:"rounded-2xl border border-blush-100 p-4 bg-white",children:[u.jsx("button",{type:"button",className:`w-full py-3 rounded-xl font-semibold flex items-center justify-center gap-2 ${e==="APPLE_PAY"?"bg-black text-white":"bg-white border border-edge text-[#3c4043]"}`,children:e==="APPLE_PAY"?" Pay":"G Pay"}),u.jsxs("p",{className:"flex items-center gap-1 text-[11px] text-gray-400 mt-2",children:[u.jsx(oT,{size:11})," ",e==="APPLE_PAY"?"Apple Pay":"Google Pay"," via secure wallet. If unconfigured, processed as mock at checkout."]})]})]})}const jX=[{to:"/home",key:"home"},{to:"/category",key:"shopAll"},{to:"/category?occasion=ROMANCE",key:"loveRomance"},{to:"/category?occasion=BIRTHDAY",key:"birthday"},{to:"/category?occasion=SYMPATHY",key:"sympathy"},{to:"/daily-standard",key:"todaysBouquet",accent:!0},{to:"/subscription",key:"subscriptions"},{to:"/events",key:"offers"}];function AX(){const{t:e}=ii(),{zip:t,storeName:n,custToken:r,cartCount:a,setCartCount:i}=Sn(),s=Gt(),o=Or(),l=ai(),[c,d]=A.useState("");A.useEffect(()=>{if(!r){i(0);return}Sj().then(h=>i((h||[]).reduce((p,m)=>p+(m.quantity||1),0))).catch(()=>{})},[r]);const f=h=>{h.preventDefault(),c.trim()&&s(`/search?q=${encodeURIComponent(c.trim())}`)};return u.jsxs("div",{className:"min-h-screen bg-cream text-[#43343a] flex flex-col",children:[u.jsx("div",{className:"bg-sage-700 text-cream/95 text-[12px] tracking-wide",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-9 flex items-center justify-center sm:justify-between gap-3",children:[u.jsxs("span",{className:"hidden sm:flex items-center gap-1.5",children:[u.jsx(pt,{size:13})," ",$e.tagline]}),u.jsxs("span",{className:"flex items-center gap-3",children:[u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(Ja,{size:12,className:"text-gold",fill:"currentColor"})," ",$e.rating,"★ · ",e("shop.topbar.reviews",{n:$e.reviewCount.toLocaleString()})]}),u.jsxs("a",{href:`tel:${$e.phoneTel}`,className:"hidden sm:flex items-center gap-1 hover:text-white",children:[u.jsx(lT,{size:12})," ",$e.phone]})]})]})}),u.jsxs("header",{className:"sticky top-0 z-30 bg-cream/90 backdrop-blur-md border-b border-blush-100",children:[u.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-[72px] flex items-center gap-4",children:[u.jsxs(Le,{to:"/home",className:"flex items-center gap-2.5 shrink-0",children:[u.jsx(Ct.span,{animate:l?void 0:{rotate:[0,8,-6,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},children:u.jsx(pt,{className:"text-blush-500",size:28})}),u.jsxs("span",{className:"leading-none",children:[u.jsx("span",{className:"block font-serif text-[20px] font-bold text-blush-900 tracking-tight",children:"Montvale"}),u.jsx("span",{className:"block font-display text-[12px] tracking-[0.35em] text-sage-600 uppercase -mt-0.5",children:"Florist"})]})]}),u.jsxs("form",{onSubmit:f,className:"flex-1 max-w-md hidden md:flex items-center bg-white border border-blush-100 rounded-full px-4 py-2.5 shadow-soft",children:[u.jsx(fj,{size:16,className:"text-blush-400"}),u.jsx("input",{value:c,onChange:h=>d(h.target.value),placeholder:e("common.searchPlaceholder"),className:"flex-1 bg-transparent ml-2 text-sm outline-none placeholder:text-blush-300"})]}),u.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-3 ml-auto",children:[u.jsx(ug,{variant:"shop"}),u.jsxs(Le,{to:"/",className:"hidden sm:flex items-center gap-1 text-sm text-sage-700 hover:text-blush-500 transition-colors",children:[u.jsx(vm,{size:15})," ",t?`${t}`:e("shop.header.zip")]}),u.jsx(Le,{to:"/wishlist","aria-label":e("shop.header.wishlist"),className:"p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:u.jsx(Lf,{size:20})}),u.jsxs(Le,{to:"/cart",className:"relative p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:[u.jsx(pj,{size:20}),u.jsx(ux,{children:a>0&&u.jsx(Ct.span,{initial:l?!1:{scale:0},animate:{scale:1},exit:{scale:0},className:"absolute -top-1 -right-1 bg-blush-500 text-white text-[10px] rounded-full min-w-[18px] h-[18px] px-1 flex items-center justify-center",children:a},a)})]}),u.jsx(Le,{to:r?"/mypage":"/account",className:"p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:u.jsx(D3,{size:20})})]})]}),u.jsx("nav",{className:"border-t border-blush-50 bg-white/60",children:u.jsx("div",{className:"max-w-6xl mx-auto px-4 h-11 flex items-center gap-7 text-[13px] overflow-x-auto thin-scroll",children:jX.map(h=>{const p=o.pathname+o.search===h.to||h.to==="/home"&&o.pathname==="/home";return u.jsxs(Le,{to:h.to,className:`relative whitespace-nowrap py-1 transition-colors ${h.accent?"text-sage-700 font-medium":"text-[#6b5258] hover:text-blush-500"} ${p?"text-blush-600":""}`,children:[e(`shop.nav.${h.key}`),p&&u.jsx(Ct.span,{layoutId:"nav-underline",className:"absolute -bottom-[1px] left-0 right-0 h-[2px] bg-blush-500 rounded-full"})]},h.to)})})})]}),u.jsx("main",{className:"flex-1",children:u.jsx(wk,{})}),u.jsxs("footer",{className:"mt-16 bg-sage-800 text-cream/85",children:[u.jsx("div",{className:"botanical-divider py-6 opacity-50",children:u.jsx(pt,{size:16})}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 pb-10 grid md:grid-cols-4 gap-8",children:[u.jsxs("div",{className:"md:col-span-1",children:[u.jsx("div",{className:"font-serif text-xl font-bold text-white mb-1",children:"Montvale Florist"}),u.jsx("p",{className:"font-display text-[13px] tracking-[0.3em] uppercase text-sage-300 mb-3",children:e("shop.footer.since",{year:$e.founded})}),u.jsx("p",{className:"text-[13px] leading-relaxed text-cream/70",children:$e.tagline}),u.jsx(dX,{size:18,className:"mt-4 text-cream/80",iconClass:"hover:text-white"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold text-white mb-3 text-sm",children:e("shop.footer.visitUs")}),u.jsxs("p",{className:"text-[13px] flex items-start gap-1.5 text-cream/75 mb-1.5",children:[u.jsx(vm,{size:14,className:"mt-0.5 shrink-0"})," ",$e.address]}),u.jsxs("a",{href:`tel:${$e.phoneTel}`,className:"text-[13px] flex items-center gap-1.5 text-cream/75 hover:text-white mb-1.5",children:[u.jsx(lT,{size:14})," ",$e.phone]}),u.jsx("p",{className:"text-[13px] text-cream/60",children:$e.email})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"font-semibold text-white mb-3 text-sm flex items-center gap-1.5",children:[u.jsx(S3,{size:14})," ",e("shop.footer.hours")]}),$e.hours.map(h=>u.jsxs("div",{className:"text-[13px] text-cream/75 mb-1",children:[u.jsx("span",{className:"inline-block w-20",children:h.day})," ",h.open]},h.day))]}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold text-white mb-3 text-sm",children:e("shop.footer.customerCare")}),u.jsxs(Le,{to:"/cs",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[u.jsx(ku,{size:13})," ",e("shop.footer.contactAiHelp")]}),u.jsxs(Le,{to:"/orders",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[u.jsx(ku,{size:13})," ",e("shop.footer.orderStatus")]}),u.jsxs(Le,{to:"/subscription",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[u.jsx(ku,{size:13})," ",e("shop.footer.subscriptions")]}),u.jsxs(Le,{to:"/app",className:"flex items-center gap-1 text-[13px] text-gold hover:text-white mb-3 font-medium",children:[u.jsx(ku,{size:13})," ",e("shop.footer.getApp")]}),u.jsx("div",{className:"text-[11px] text-cream/50 mb-1.5",children:e("shop.footer.weAccept")}),u.jsx(v5,{items:$e.payments})]})]}),u.jsx("div",{className:"border-t border-cream/10",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-4 flex flex-col sm:flex-row items-center justify-between gap-2 text-[11px] text-cream/50",children:[u.jsxs("span",{children:["© 2026 Montvale Florist · ",$e.address]}),u.jsx("span",{className:"flex flex-wrap gap-3",children:$e.policies.map(h=>u.jsx("span",{className:"hover:text-cream/80",children:h},h))})]})})]})]})}function tc({p:e}){var a;const t=ai(),n=e.salePrice!=null&&e.salePrice>0&&e.salePrice<(e.price||0),r=n?Math.round((1-e.salePrice/e.price)*100):0;return u.jsx(Ct.div,{whileHover:t?void 0:{y:-8},transition:{type:"spring",stiffness:300,damping:24},className:"group h-full",children:u.jsxs(Le,{to:`/product/${e.id}`,className:"block h-full bg-white rounded-3xl overflow-hidden border border-blush-100/70 shadow-soft hover:shadow-bloom transition-shadow duration-500",children:[u.jsxs("div",{className:"relative aspect-[4/5] zoom-frame bg-gradient-to-br from-blush-50 to-ivory flex items-center justify-center",children:[e.thumbnail?u.jsx("img",{src:e.thumbnail,alt:e.name,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110"}):u.jsx(pt,{className:"text-blush-200",size:56}),n&&u.jsxs("span",{className:"absolute top-3 left-3 bg-blush-500 text-white text-[11px] font-semibold px-2.5 py-1 rounded-full shadow-petal",children:["-",r,"%"]}),e.occasion&&u.jsx("span",{className:"absolute top-3 right-3 bg-white/85 backdrop-blur text-sage-700 text-[10px] uppercase tracking-wide px-2.5 py-1 rounded-full",children:e.occasion}),u.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 bg-gradient-to-t from-blush-900/10 to-transparent"})]}),u.jsxs("div",{className:"p-4",children:[e.brand&&u.jsx("div",{className:"text-[10px] uppercase tracking-[0.12em] text-sage-600 mb-0.5",children:e.brand}),u.jsx("div",{className:"font-serif text-[15px] leading-snug text-blush-900 truncate",children:e.name}),u.jsxs("div",{className:"flex items-center justify-between mt-2",children:[u.jsx("div",{className:"flex items-baseline gap-1.5",children:n?u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-blush-600 font-bold",children:Ee(e.salePrice)}),u.jsx("span",{className:"text-gray-400 line-through text-xs",children:Ee(e.price)})]}):u.jsx("span",{className:"font-bold text-blush-900",children:Ee(e.price)})}),e.ratingAvg!=null&&e.reviewCount?u.jsxs("span",{className:"flex items-center gap-0.5 text-xs text-gold",children:[u.jsx(Ja,{size:12,fill:"currentColor"}),(a=e.ratingAvg)==null?void 0:a.toFixed(1)]}):null]})]})]})})}const OX=[IK,pt,dj],EX=6e3;function TX(){const{storeName:e}=Sn(),t=ai(),n=A.useRef(null),{scrollYProgress:r}=Mq({target:n,offset:["start start","end start"]}),a=ob(r,[0,1],["0%",t?"0%":"28%"]),i=ob(r,[0,1],[1,t?1:1.12]),s=ob(r,[0,.8],[1,t?1:.2]),[o,l]=A.useState(0),[c,d]=A.useState(1),f=yb.length,h=A.useCallback(m=>{d(m>o||o===f-1&&m===0?1:-1),l((m%f+f)%f)},[o,f]);A.useEffect(()=>{if(t)return;const m=setInterval(()=>{d(1),l(g=>(g+1)%f)},EX);return()=>clearInterval(m)},[t,f]);const p=yb[o];return u.jsxs("section",{ref:n,className:"relative overflow-hidden min-h-[78vh] flex items-center",children:[u.jsxs(Ct.div,{style:{y:a,scale:i},className:"absolute inset-0 z-0",children:[u.jsx(ux,{initial:!1,children:u.jsx(Ct.img,{src:p.img,alt:"",className:"absolute inset-0 w-full h-full object-cover",initial:{opacity:0,scale:t?1:1.06},animate:{opacity:1,scale:1},exit:{opacity:0},transition:{duration:t?0:1.1,ease:[.22,1,.36,1]}},p.img)}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-blush-900/70 via-blush-900/40 to-transparent"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-sage-900/40 to-transparent"})]}),u.jsx(Xd,{count:16,className:"z-[1]"}),u.jsx(Ct.div,{style:{opacity:s},className:"relative z-10 max-w-6xl mx-auto px-4 w-full py-20",children:u.jsx(ux,{mode:"wait",custom:c,children:u.jsxs(Ct.div,{className:"max-w-xl",custom:c,initial:t?!1:{opacity:0,x:c*36},animate:{opacity:1,x:0},exit:t?{opacity:0}:{opacity:0,x:c*-36},transition:{duration:.7,ease:[.22,1,.36,1]},children:[u.jsxs("div",{className:"inline-flex items-center gap-2 text-cream/90 text-[12px] tracking-[0.25em] uppercase mb-5",children:[u.jsx("span",{className:"h-px w-8 bg-gold"})," ",p.eyebrow]}),u.jsx("h1",{className:"font-serif text-5xl md:text-6xl font-bold text-white leading-[1.05] mb-5 whitespace-pre-line drop-shadow-sm",children:p.headline}),u.jsxs("p",{className:"text-cream/90 text-lg leading-relaxed mb-8 max-w-md font-light",children:[p.subtext,e?` Same-day from ${e}.`:""]}),u.jsxs("div",{className:"flex flex-wrap gap-3",children:[u.jsx(Le,{to:p.to,children:u.jsxs(Ha,{className:"inline-flex items-center gap-2 bg-white text-blush-700 font-semibold px-7 py-3.5 rounded-full shadow-bloom hover:bg-cream",children:[p.cta," ",u.jsx(Cs,{size:17})]})}),u.jsx(Le,{to:"/daily-standard",children:u.jsxs(Ha,{className:"inline-flex items-center gap-2 border border-white/70 text-white px-7 py-3.5 rounded-full hover:bg-white/10",children:[u.jsx(lj,{size:16})," Today's Bouquet"]})})]}),u.jsxs("div",{className:"flex items-center gap-2 mt-7 text-cream/85 text-sm",children:[u.jsx("span",{className:"flex text-gold",children:[1,2,3,4,5].map(m=>u.jsx(Ja,{size:15,fill:"currentColor"},m))}),u.jsx("span",{className:"font-medium",children:$e.rating}),u.jsxs("span",{className:"text-cream/60",children:["· ",$e.reviewCount.toLocaleString()," happy customers"]})]})]},o)})}),u.jsx("button",{"aria-label":"Previous slide",onClick:()=>h(o-1),className:"absolute left-3 md:left-5 top-1/2 -translate-y-1/2 z-20 w-11 h-11 rounded-full bg-white/15 hover:bg-white/30 backdrop-blur-sm text-white flex items-center justify-center transition-colors",children:u.jsx(RK,{size:22})}),u.jsx("button",{"aria-label":"Next slide",onClick:()=>h(o+1),className:"absolute right-3 md:right-5 top-1/2 -translate-y-1/2 z-20 w-11 h-11 rounded-full bg-white/15 hover:bg-white/30 backdrop-blur-sm text-white flex items-center justify-center transition-colors",children:u.jsx(ku,{size:22})}),u.jsx("div",{className:"absolute bottom-7 left-1/2 -translate-x-1/2 z-20 flex items-center gap-2.5",children:yb.map((m,g)=>u.jsx("button",{"aria-label":`Go to slide ${g+1}`,onClick:()=>h(g),className:`h-2.5 rounded-full transition-all duration-300 ${g===o?"w-8 bg-white":"w-2.5 bg-white/45 hover:bg-white/70"}`},g))}),u.jsx(Ct.div,{"aria-hidden":!0,className:"absolute -bottom-6 right-6 z-[2] text-white/20 hidden md:block pointer-events-none",animate:t?void 0:{rotate:[0,5,-4,0],y:[0,-8,0]},transition:{duration:9,repeat:1/0,ease:"easeInOut"},children:u.jsx(pt,{size:130,strokeWidth:1})})]})}function NX(){var i,s,o;const{data:e}=se({queryKey:["ai-rec"],queryFn:()=>h5("","",8)}),{data:t}=se({queryKey:["best"],queryFn:()=>ec({sort:"sales",size:8})}),{data:n}=se({queryKey:["feat"],queryFn:()=>ec({sort:"rating",size:12})}),r=(t==null?void 0:t.items)||[],a=(n==null?void 0:n.items)||[];return u.jsxs("div",{children:[u.jsx(TX,{}),u.jsx("section",{className:"bg-ivory border-b border-blush-100",children:u.jsx("div",{className:"max-w-6xl mx-auto px-4 py-10 grid md:grid-cols-3 gap-6",children:$e.promise.map((l,c)=>{const d=OX[c];return u.jsxs(Xr,{delay:c*.1,className:"flex items-start gap-3",children:[u.jsx("span",{className:"shrink-0 w-11 h-11 rounded-full bg-blush-50 text-blush-500 flex items-center justify-center",children:u.jsx(d,{size:20})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-serif text-lg text-blush-900",children:l.title}),u.jsx("p",{className:"text-sm text-[#6b5258] leading-relaxed mt-0.5",children:l.desc})]})]},l.title)})})}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-14 space-y-20",children:[u.jsxs("section",{children:[u.jsxs(Xr,{className:"flex items-end justify-between mb-7",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-600 text-[12px] tracking-[0.2em] uppercase mb-2",children:[u.jsx(wr,{size:15})," Curated by GUARDiA AI · On-premise"]}),u.jsx("h2",{className:"font-serif text-3xl text-blush-900",children:"Picked Just for You"})]}),u.jsxs(Le,{to:"/category",className:"hidden sm:flex items-center gap-1 text-sm text-blush-500 hover:text-blush-700",children:["View all ",u.jsx(Cs,{size:15})]})]}),u.jsxs(xm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:[(e||[]).slice(0,8).map(l=>u.jsx(Sm,{children:u.jsx(tc,{p:l})},l.id)),!(e||[]).length&&u.jsx("div",{className:"col-span-4 text-blush-300 text-sm py-12 text-center",children:"Curating fresh picks…"})]})]}),u.jsx("div",{className:"botanical-divider",children:u.jsx(pt,{size:18})}),u.jsx(Xr,{children:u.jsxs("section",{className:"relative overflow-hidden rounded-4xl bg-gradient-to-br from-sage-700 to-sage-800 text-white",children:[u.jsx(Xd,{count:8}),u.jsxs("div",{className:"relative z-10 p-8 md:p-12 flex flex-col md:flex-row items-center justify-between gap-6",children:[u.jsxs("div",{className:"max-w-lg",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-200 text-[12px] tracking-[0.2em] uppercase mb-3",children:[u.jsx(lj,{size:15})," Farmgirl-style daily"]}),u.jsx("h3",{className:"font-serif text-3xl md:text-4xl font-bold mb-3",children:"Today's Designer Bouquet"}),u.jsx("p",{className:"text-cream/85 leading-relaxed",children:"Made fresh each morning with whatever's most beautiful in the cooler — hand-designed by our florists and curated by GUARDiA AI. Limited daily stock."})]}),u.jsx(Le,{to:"/daily-standard",children:u.jsxs(Ha,{className:"inline-flex items-center gap-2 bg-white text-sage-800 font-semibold px-7 py-3.5 rounded-full shadow-bloom",children:["See today's bouquet ",u.jsx(Cs,{size:16})]})})]})]})}),u.jsxs("section",{children:[u.jsxs(Xr,{className:"flex items-end justify-between mb-7",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-600 text-[12px] tracking-[0.2em] uppercase mb-2",children:[u.jsx(Ja,{size:14})," Most loved"]}),u.jsx("h2",{className:"font-serif text-3xl text-blush-900",children:"Bestsellers"})]}),u.jsxs(Le,{to:"/category?sort=sales",className:"hidden sm:flex items-center gap-1 text-sm text-blush-500 hover:text-blush-700",children:["View all ",u.jsx(Cs,{size:15})]})]}),u.jsx(xm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:r.map(l=>u.jsx(Sm,{children:u.jsx(tc,{p:l})},l.id))})]}),u.jsx(Xr,{children:u.jsx("section",{className:"grid md:grid-cols-3 gap-5",children:[{to:"/category?occasion=ROMANCE",label:"Love & Romance",sub:"Roses that speak from the heart",img:(i=a[1])==null?void 0:i.thumbnail},{to:"/category?occasion=SYMPATHY",label:"Sympathy & Comfort",sub:"Thoughtful tributes, gently delivered",img:(s=a[2])==null?void 0:s.thumbnail},{to:"/subscription",label:"Flower Subscriptions",sub:"Fresh blooms, week after week",img:(o=a[3])==null?void 0:o.thumbnail}].map((l,c)=>u.jsxs(Le,{to:l.to,className:"group relative rounded-3xl overflow-hidden zoom-frame aspect-[5/4] block shadow-soft",children:[l.img?u.jsx("img",{src:l.img,alt:"",loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110"}):u.jsx("div",{className:"w-full h-full bg-gradient-to-br from-blush-100 to-sage-100"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-blush-900/75 via-blush-900/20 to-transparent"}),u.jsxs("div",{className:"absolute bottom-0 left-0 p-6 text-white",children:[u.jsx("div",{className:"font-serif text-xl font-semibold mb-0.5",children:l.label}),u.jsx("p",{className:"text-cream/85 text-sm",children:l.sub}),u.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] text-gold mt-2 group-hover:gap-2 transition-all",children:["Explore ",u.jsx(Cs,{size:14})]})]})]},l.to))})}),u.jsx(Xr,{children:u.jsxs("section",{className:"rounded-4xl bg-blush-50 border border-blush-100 p-8 md:p-10 text-center",children:[u.jsx("div",{className:"flex justify-center mb-4",children:u.jsx("span",{className:"w-12 h-12 rounded-full bg-white text-blush-500 flex items-center justify-center shadow-soft",children:u.jsx(qd,{size:22})})}),u.jsxs("h3",{className:"font-serif text-2xl text-blush-900 mb-2",children:["Your Local Florist Since ",$e.founded]}),u.jsx("p",{className:"text-[#6b5258] max-w-xl mx-auto leading-relaxed text-[15px]",children:$e.about}),u.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 mt-5 text-[12px] text-sage-700",children:[u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"Same-Day Delivery"}),u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"Hand-Delivered"}),u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"100% Satisfaction"}),u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"No-Contact Available"})]})]})})]})]})}const TT=[["","All"],["BIRTHDAY","Birthday"],["ANNIVERSARY","Anniversary"],["SYMPATHY","Sympathy"],["CONGRATS","Congrats"],["ROMANCE","Romance"]],CX=[["","Recommended"],["price_asc","Price ↑"],["price_desc","Price ↓"],["sales","Bestselling"],["rating","Top rated"]];function _X(){var v;const[e,t]=Ek(),n=e.get("occasion")||"",[r,a]=A.useState(e.get("sort")||""),[i,s]=A.useState(""),[o,l]=A.useState(""),[c,d]=A.useState(null);se({queryKey:["cats"],queryFn:ZY});const{data:f}=se({queryKey:["products",n,r,i],queryFn:()=>ec({occasion:n,sort:r,maxPrice:i?Number(i):void 0,size:24})}),h=c?c.items:(f==null?void 0:f.items)||[],p=y=>{const b=new URLSearchParams(e);y?b.set("occasion",y):b.delete("occasion"),t(b),d(null)},m=async y=>{if(y.preventDefault(),!o.trim()){d(null);return}const b=await p5(o.trim()).catch(()=>null);d(b)},g=((v=TT.find(y=>y[0]===n))==null?void 0:v[1])||"All";return u.jsxs("div",{children:[u.jsx("section",{className:"bg-gradient-to-br from-blush-50 to-ivory border-b border-blush-100",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-10",children:[u.jsx("div",{className:"text-[12px] tracking-[0.2em] uppercase text-sage-600 mb-2",children:"Shop the collection"}),u.jsx("h1",{className:"font-serif text-4xl text-blush-900",children:g==="All"?"All Flowers":g})]})}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[u.jsxs("form",{onSubmit:m,className:"flex items-center gap-2 bg-white border border-blush-100 rounded-full px-5 py-3 mb-6 max-w-xl shadow-soft",children:[u.jsx(wr,{size:16,className:"text-blush-500"}),u.jsx("input",{value:o,onChange:y=>l(y.target.value),placeholder:'Try "anniversary roses under $80"',className:"flex-1 text-sm outline-none bg-transparent placeholder:text-blush-300"}),u.jsx("button",{className:"text-blush-500 text-sm font-semibold",children:"AI Search"})]}),c&&u.jsxs("div",{className:"text-xs text-sage-700 mb-4",children:["AI understood: ",u.jsx("span",{className:"font-medium",children:JSON.stringify(c.parsed)})," · ",c.source]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-7",children:[TT.map(([y,b])=>u.jsx("button",{onClick:()=>p(y),className:`px-4 py-1.5 rounded-full text-sm border transition-colors ${n===y?"bg-blush-500 text-white border-blush-500":"bg-white text-[#6b5258] border-blush-100 hover:border-blush-300"}`,children:b},y)),u.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[u.jsx(WK,{size:15,className:"text-blush-300"}),u.jsx("input",{value:i,onChange:y=>{s(y.target.value.replace(/\D/g,"")),d(null)},placeholder:"Max $",className:"w-24 px-3 py-1.5 rounded-full border border-blush-100 text-sm outline-none focus:border-blush-300"}),u.jsx("select",{value:r,onChange:y=>{a(y.target.value),d(null)},className:"px-3 py-1.5 rounded-full border border-blush-100 text-sm outline-none bg-white",children:CX.map(([y,b])=>u.jsx("option",{value:y,children:b},y))})]})]}),u.jsx(xm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:h.map(y=>u.jsx(Sm,{children:u.jsx(tc,{p:y})},y.id))}),!h.length&&u.jsxs(Xr,{className:"text-center text-blush-300 py-20",children:[u.jsx(pt,{size:40,className:"mx-auto mb-3 text-blush-200"}),"No flowers match those filters."]})]})]})}function PX(){const{t:e}=ii(),[t]=Ek(),n=t.get("q")||"",{data:r,isLoading:a}=se({queryKey:["nl-search",n],queryFn:()=>p5(n),enabled:!!n}),i=(r==null?void 0:r.items)||[];return u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(wr,{className:"text-bloom",size:20}),u.jsx("h1",{className:"font-serif text-2xl font-bold",children:e("search.resultsFor",{query:n})})]}),(r==null?void 0:r.parsed)&&u.jsxs("div",{className:"text-xs text-bloom2 mb-5",children:[e("search.aiUnderstood")," ",u.jsx("span",{className:"font-medium",children:JSON.stringify(r.parsed)})," · ",r.source]}),a&&u.jsx("div",{className:"text-gray-400 py-10 text-center",children:e("search.searching")}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:i.map(s=>u.jsx(tc,{p:s},s.id))}),!a&&!i.length&&u.jsx("div",{className:"text-center text-gray-400 py-16",children:e("search.noResults")})]})}function MX(){var te,Z,ye;const{id:e}=vk(),t=Number(e),n=Gt(),r=ai(),{custToken:a,setCartCount:i}=Sn(),[s,o]=A.useState(""),[l,c]=A.useState(null),[d,f]=A.useState(null),[h,p]=A.useState(""),[m,g]=A.useState(1),[v,y]=A.useState(""),[b,x]=A.useState(!1),[w,S]=A.useState(null),{data:j}=se({queryKey:["product",t],queryFn:()=>XY(t)}),{data:O}=se({queryKey:["reviews",t],queryFn:()=>gW(t)}),{data:E}=se({queryKey:["rstats",t],queryFn:()=>vW(t)}),{data:T}=se({queryKey:["aisum",t],queryFn:()=>_W(t)});if(!j)return u.jsx("div",{className:"max-w-6xl mx-auto px-4 py-24 text-center text-blush-300",children:"Loading…"});const N=j.sizes||[],M=N.find(J=>J.sizeCode===s)||N[0],C=j.options||[],L=C.filter(J=>J.optionType==="VASE"),D=C.filter(J=>J.optionType==="WRAP"),k=J=>C.find(ot=>ot.id===J),P=M?M.price:j.salePrice&&j.salePrice>0?j.salePrice:j.price,$=(((te=k(l))==null?void 0:te.extraPrice)||0)+(((Z=k(d))==null?void 0:Z.extraPrice)||0),I=(P+$)*m,F=w||j.thumbnail,H=async()=>{if(!a){n("/account");return}try{await aW({productId:j.id,optionId:l||d||null,sizeCode:(M==null?void 0:M.sizeCode)||"",cardMessage:h,quantity:m}),i(J=>J+m),y("Added to your cart.")}catch{y("Could not add to cart.")}},W=async()=>{await H(),n("/cart")},K=async()=>{if(!a){n("/account");return}x(!0),setTimeout(()=>x(!1),700),await AW(j.id).catch(()=>{}),y("Saved to your wishlist.")};return u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-10",children:[u.jsxs("div",{className:"grid md:grid-cols-2 gap-10",children:[u.jsxs(Xr,{children:[u.jsx("div",{className:"relative aspect-[4/5] rounded-4xl overflow-hidden bg-gradient-to-br from-blush-50 to-ivory flex items-center justify-center shadow-soft",children:F?u.jsx(Ct.img,{src:F,alt:j.name,initial:r?!1:{opacity:0,scale:1.04},animate:{opacity:1,scale:1},transition:{duration:.6},className:"w-full h-full object-cover"},F):u.jsx(pt,{className:"text-blush-200",size:96})}),!!(j.images||[]).length&&u.jsxs("div",{className:"flex gap-2 mt-3",children:[u.jsx("button",{onClick:()=>S(null),className:`w-16 h-16 rounded-2xl overflow-hidden border-2 ${w?"border-blush-100":"border-blush-400"}`,children:j.thumbnail?u.jsx("img",{src:j.thumbnail,className:"w-full h-full object-cover"}):u.jsx(pt,{className:"text-blush-200 m-auto",size:20})}),j.images.map((J,ot)=>u.jsx("button",{onClick:()=>S(J),className:`w-16 h-16 rounded-2xl overflow-hidden border-2 ${w===J?"border-blush-400":"border-blush-100"}`,children:u.jsx("img",{src:J,className:"w-full h-full object-cover"})},ot))]})]}),u.jsxs(Xr,{delay:.1,children:[j.brand&&u.jsx("div",{className:"text-[11px] uppercase tracking-[0.2em] text-sage-600 mb-1",children:j.brand}),u.jsx("h1",{className:"font-serif text-3xl font-bold text-blush-900 mb-2 leading-tight",children:j.name}),u.jsxs("div",{className:"flex items-center gap-2 text-sm text-gold mb-4",children:[u.jsx(Ja,{size:15,fill:"currentColor"})," ",((ye=j.ratingAvg)==null?void 0:ye.toFixed(1))||"–",u.jsxs("span",{className:"text-[#a08a90]",children:["(",j.reviewCount||0," reviews)"]}),j.occasion&&u.jsx("span",{className:"text-xs bg-blush-50 text-blush-700 px-2.5 py-0.5 rounded-full ml-1",children:j.occasion})]}),u.jsx("p",{className:"text-[#6b5258] text-[15px] mb-6 leading-relaxed",children:j.description}),!!N.length&&u.jsxs("div",{className:"mb-6",children:[u.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Choose your size"}),u.jsx("div",{className:"grid grid-cols-3 gap-2.5",children:N.map(J=>u.jsxs(Ha,{onClick:()=>o(J.sizeCode),className:`rounded-2xl border p-3 text-center transition-colors ${(M==null?void 0:M.sizeCode)===J.sizeCode?"border-blush-400 bg-blush-50":"border-blush-100 hover:border-blush-300"}`,children:[u.jsx("div",{className:"font-semibold text-sm text-blush-900",children:J.label}),u.jsxs("div",{className:"text-xs text-[#8a7077]",children:[J.stemCount," stems"]}),u.jsx("div",{className:"text-blush-600 font-bold text-sm mt-1",children:Ee(J.price)})]},J.sizeCode))})]}),!!L.length&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Add a vase"}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsx(Rh,{active:l===null,onClick:()=>c(null),children:"No vase"}),L.map(J=>u.jsxs(Rh,{active:l===J.id,onClick:()=>c(J.id),children:[J.optionValue," +",Ee(J.extraPrice)]},J.id))]})]}),!!D.length&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Wrapping"}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsx(Rh,{active:d===null,onClick:()=>f(null),children:"Standard"}),D.map(J=>u.jsxs(Rh,{active:d===J.id,onClick:()=>f(J.id),children:[J.optionValue," +",Ee(J.extraPrice)]},J.id))]})]}),u.jsxs("div",{className:"mb-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("span",{className:"text-sm font-medium text-blush-900",children:"Card message"}),u.jsxs(Le,{to:"/cs",className:"text-xs text-blush-500 flex items-center gap-1",children:[u.jsx(wr,{size:12})," AI message helper"]})]}),u.jsx("textarea",{value:h,onChange:J=>p(J.target.value),rows:2,maxLength:200,placeholder:"Write a heartfelt note for the recipient…",className:"w-full px-3.5 py-2.5 rounded-2xl border border-blush-100 text-sm outline-none focus:border-blush-400"})]}),u.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[u.jsxs("div",{className:"flex items-center border border-blush-100 rounded-full",children:[u.jsx("button",{onClick:()=>g(J=>Math.max(1,J-1)),className:"px-3.5 py-1.5 text-blush-600",children:"−"}),u.jsx("span",{className:"px-2 text-sm w-8 text-center",children:m}),u.jsx("button",{onClick:()=>g(J=>J+1),className:"px-3.5 py-1.5 text-blush-600",children:"+"})]}),u.jsx("div",{className:"font-serif text-2xl font-bold text-blush-900",children:Ee(I)})]}),v&&u.jsx("div",{className:"text-sm text-sage-700 mb-3",children:v}),u.jsxs("div",{className:"flex gap-3",children:[u.jsxs(Ha,{onClick:H,className:"flex-1 flex items-center justify-center gap-2 border border-blush-400 text-blush-600 font-semibold py-3.5 rounded-full hover:bg-blush-50",children:[u.jsx(pj,{size:18})," Add to Cart"]}),u.jsx(Ha,{onClick:W,className:"flex-1 bg-blush-500 text-white font-semibold py-3.5 rounded-full hover:bg-blush-600 shadow-petal",children:"Buy Now"}),u.jsx("button",{onClick:K,className:`px-4 border border-blush-100 rounded-full text-blush-500 hover:bg-blush-50 ${b?"animate-heartbeat":""}`,children:u.jsx(Lf,{size:18,fill:b?"currentColor":"none"})})]}),u.jsxs("div",{className:"flex items-center gap-5 mt-5 text-xs text-sage-700",children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(qd,{size:14})," Same-day local delivery"]}),u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(dj,{size:14})," 100% satisfaction"]})]}),u.jsx("div",{className:"mt-4 pt-4 border-t border-blush-100/60",children:u.jsx(hX,{url:typeof window<"u"?window.location.href:"",title:j.name,image:j.thumbnail||""})})]})]}),u.jsxs("div",{className:"mt-16",children:[u.jsx("div",{className:"botanical-divider mb-8",children:u.jsx(pt,{size:16})}),u.jsxs("h2",{className:"font-serif text-2xl font-bold text-blush-900 mb-5",children:["Reviews (",(E==null?void 0:E.count)??j.reviewCount??0,")"]}),(T==null?void 0:T.summary)&&u.jsxs(Xr,{className:"bg-gradient-to-br from-blush-50 to-sage-50 border border-blush-100 rounded-3xl p-5 mb-6",children:[u.jsxs("div",{className:"flex items-center gap-2 text-blush-700 font-medium text-sm mb-1.5",children:[u.jsx(wr,{size:15})," AI Review Summary ",u.jsx("span",{className:"text-xs text-[#a08a90]",children:T.source})]}),u.jsx("p",{className:"text-sm text-[#5a474d] leading-relaxed",children:T.summary})]}),u.jsxs("div",{className:"space-y-3",children:[(O||[]).map(J=>u.jsxs("div",{className:"bg-white rounded-3xl border border-blush-100/70 p-5 shadow-soft",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"font-medium text-sm text-blush-900",children:J.title||"Review"}),u.jsxs("span",{className:"flex items-center gap-0.5 text-gold text-sm",children:[u.jsx(Ja,{size:13,fill:"currentColor"}),J.rating]})]}),u.jsx("p",{className:"text-sm text-[#6b5258] mt-1.5 leading-relaxed",children:J.content})]},J.id)),!(O||[]).length&&u.jsx("div",{className:"text-blush-300 text-sm py-8 text-center",children:"No reviews yet — be the first."})]}),u.jsx(Le,{to:`/review/${j.id}`,className:"inline-flex items-center gap-1 mt-5 text-sm text-blush-500 font-semibold hover:text-blush-700",children:"Write a review →"})]})]})}function Rh({active:e,onClick:t,children:n}){return u.jsx("button",{onClick:t,className:`px-3.5 py-1.5 rounded-full text-sm border transition-colors ${e?"bg-blush-500 text-white border-blush-500":"border-blush-100 text-[#6b5258] hover:border-blush-300"}`,children:n})}function RX(){const{t:e}=ii(),t=rn(),n=Gt(),{custToken:r,setCartCount:a}=Sn(),{data:i}=se({queryKey:["cart"],queryFn:Sj,enabled:!!r}),s=()=>t.invalidateQueries({queryKey:["cart"]}),o=async(f,h)=>{h<1||(await iW(f,h),s())},l=async f=>{await sW(f),s(),a(h=>Math.max(0,h-1))};if(!r)return u.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-20 text-center",children:[u.jsx(pj,{className:"mx-auto text-bloom/40 mb-3",size:48}),u.jsx("p",{className:"text-gray-500 mb-4",children:e("cart.signInPrompt")}),u.jsx(Le,{to:"/account",className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:e("cart.signInRegister")})]});const c=i||[],d=c.reduce((f,h)=>f+(h.price||(h.unitPrice||0)*(h.quantity||1)),0);return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsx("h1",{className:"font-serif text-2xl font-bold mb-6",children:e("cart.title")}),c.length?u.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[u.jsx("div",{className:"md:col-span-2 space-y-3",children:c.map(f=>u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex gap-4",children:[u.jsx("div",{className:"w-20 h-20 bg-petal rounded-xl flex items-center justify-center overflow-hidden shrink-0",children:f.thumbnail?u.jsx("img",{src:f.thumbnail,className:"w-full h-full object-cover"}):u.jsx(pt,{className:"text-bloom/30",size:32})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("div",{className:"font-medium text-sm",children:f.productName||`Product #${f.productId}`}),u.jsxs("div",{className:"text-xs text-gray-500",children:[f.sizeCode,f.cardMessage?` · ${e("cart.card")}: ${f.cardMessage.slice(0,20)}`:""]}),u.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[u.jsxs("div",{className:"flex items-center border border-blush-100 rounded-full text-sm",children:[u.jsx("button",{onClick:()=>o(f.id,(f.quantity||1)-1),className:"px-2.5 py-1 text-bloom2",children:"−"}),u.jsx("span",{className:"px-1 w-6 text-center",children:f.quantity||1}),u.jsx("button",{onClick:()=>o(f.id,(f.quantity||1)+1),className:"px-2.5 py-1 text-bloom2",children:"+"})]}),u.jsx("button",{onClick:()=>l(f.id),className:"text-blush-400 hover:text-blush-600",children:u.jsx(ZK,{size:16})})]})]}),u.jsx("div",{className:"font-bold text-bloom2 text-sm",children:Ee(f.price||(f.unitPrice||0)*(f.quantity||1))})]},f.id))}),u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 h-fit",children:[u.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[u.jsx("span",{className:"text-gray-500",children:e("cart.subtotal")}),u.jsx("span",{className:"font-medium",children:Ee(d)})]}),u.jsxs("div",{className:"flex justify-between text-sm mb-3",children:[u.jsx("span",{className:"text-gray-500",children:e("cart.shippingTax")}),u.jsx("span",{className:"text-gray-400",children:e("cart.calcAtCheckout")})]}),u.jsxs("div",{className:"border-t border-blush-100/60 pt-3 flex justify-between font-bold",children:[u.jsx("span",{children:e("cart.total")}),u.jsx("span",{className:"text-bloom2",children:Ee(d)})]}),u.jsx("button",{onClick:()=>n("/checkout"),className:"w-full mt-4 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2",children:e("cart.checkout")})]})]}):u.jsxs("div",{className:"text-center text-gray-400 py-16",children:[e("cart.empty")," ",u.jsx(Le,{to:"/category",className:"text-bloom",children:e("cart.startShopping")})]})]})}function DX(e){const t=[],n=new Date;for(let r=0;r<e;r++){const a=new Date(n);a.setDate(n.getDate()+r),t.push(a.toISOString().slice(0,10))}return t}function kX(){var Mo;const e=Gt(),{custToken:t,storeId:n,zip:r,setCartCount:a}=Sn(),[i,s]=A.useState("DELIVERY"),[o,l]=A.useState(n||0),[c,d]=A.useState(""),[f,h]=A.useState(null),[p,m]=A.useState(""),[g,v]=A.useState(""),[y,b]=A.useState(""),[x,w]=A.useState(r||""),[S,j]=A.useState(""),[O,E]=A.useState(""),[T,N]=A.useState(0),[M,C]=A.useState("CARD"),[L,D]=A.useState({last4:"",expiry:"",complete:!1}),[k,P]=A.useState(null),[$,I]=A.useState(null),[F,H]=A.useState(!1),[W,K]=A.useState(null),[te,Z]=A.useState(""),{data:ye}=se({queryKey:["cart"],queryFn:Sj,enabled:!!t}),{data:J}=se({queryKey:["stores"],queryFn:()=>Ao(!0)}),{data:ot}=se({queryKey:["loyalty-me"],queryFn:wj,enabled:!!t}),{data:He}=se({queryKey:["holidays"],queryFn:l5}),{data:Y}=se({queryKey:["avail",o,c],queryFn:()=>nW(o,c),enabled:!!o&&!!c});A.useEffect(()=>{!o&&(J!=null&&J.length)&&l(J[0].id)},[J]);const oe=ye||[],X=oe.reduce((le,It)=>le+(It.price||(It.unitPrice||0)*(It.quantity||1)),0),V=Y!=null&&Y.surgeMultiplier&&Y.surgeMultiplier>1?X*(Y.surgeMultiplier-1):0,_e=((Mo=ot==null?void 0:ot.benefit)==null?void 0:Mo.discountRate)||0,ge=X*(_e/100),Xe=($==null?void 0:$.taxAmount)||0,lt=(ot==null?void 0:ot.pointBalance)||0,dt=Math.min(lt,Math.floor(X)),kn=Math.max(0,X+V+Xe-ge-T),ui=A.useMemo(()=>new Set((He||[]).filter(le=>le.blocked).map(le=>le.holidayDate)),[He]),Po=async()=>{if(!y||!x)return;const le=await NW(y,x).catch(()=>null);P(le)},ga=async()=>{var Nr;const le=((Nr=J==null?void 0:J.find(sh=>sh.id===o))==null?void 0:Nr.state)||"",It=await TW(X,x||"",le).catch(()=>null);I(It)};A.useEffect(()=>{X>0&&o&&ga()},[X,o,x]);const va=async()=>{var le,It;if(Z(""),!t){e("/account");return}if(!oe.length){Z("Your cart is empty.");return}if(!c||!f){Z("Please select a delivery/pickup date and time slot.");return}if(i==="DELIVERY"&&(!y||!p)){Z("Please enter the recipient and delivery address.");return}if(M==="CARD"&&!L.complete){Z("Please enter your card details.");return}H(!0);try{const Nr=await lW({storeId:o,fulfillmentType:i,receiverName:p,receiverPhone:g,address:i==="DELIVERY"?y:"",deliveryZip:x,scheduledDate:c,slotId:f.id,slotLabel:f.label,cardMessage:S,memo:O,couponId:null,discountAmount:Math.round((ge+T)*100)/100,taxAmount:Xe,surgeAmount:Math.round(V*100)/100});await uW({orderId:Nr.id,amount:kn,method:M,usePoints:T,cardLast4:M==="CARD"?L.last4:""}).catch(()=>{}),a(0),K(Nr)}catch(Nr){Z(((It=(le=Nr==null?void 0:Nr.response)==null?void 0:le.data)==null?void 0:It.message)||"Order failed. Please try again in a moment.")}finally{H(!1)}};return t?W?u.jsxs("div",{className:"max-w-lg mx-auto px-4 py-20 text-center",children:[u.jsx(DK,{className:"mx-auto text-leaf mb-4",size:56}),u.jsx("h1",{className:"font-serif text-2xl font-bold mb-2",children:"Your order has been placed"}),u.jsxs("p",{className:"text-gray-500 mb-1",children:["Order Number ",u.jsx("span",{className:"font-semibold text-bloom2",children:W.orderNo||`#${W.id}`})]}),u.jsxs("p",{className:"text-sm text-gray-500 mb-6",children:[c," · ",f==null?void 0:f.label," · ",Ee(kn)]}),u.jsxs("div",{className:"flex gap-3 justify-center",children:[u.jsx("button",{onClick:()=>e("/orders"),className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"Order History"}),u.jsx("button",{onClick:()=>e("/home"),className:"border border-blush-100 px-6 py-2.5 rounded-full text-bloom2",children:"Continue Shopping"})]})]}):u.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-8",children:[u.jsx("h1",{className:"font-serif text-2xl font-bold mb-6",children:"Checkout"}),u.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[u.jsxs("div",{className:"md:col-span-2 space-y-5",children:[u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"Fulfillment Method"}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("button",{onClick:()=>s("DELIVERY"),className:`flex items-center gap-2 justify-center py-3 rounded-xl border ${i==="DELIVERY"?"border-bloom bg-petal text-bloom2":"border-blush-100"}`,children:[u.jsx(qd,{size:18})," Local Delivery"]}),u.jsxs("button",{onClick:()=>s("PICKUP"),className:`flex items-center gap-2 justify-center py-3 rounded-xl border ${i==="PICKUP"?"border-bloom bg-petal text-bloom2":"border-blush-100"}`,children:[u.jsx(Hd,{size:18})," Store Pickup"]})]}),u.jsxs("div",{className:"mt-3",children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Store"}),u.jsx("select",{value:o,onChange:le=>l(Number(le.target.value)),className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:(J||[]).map(le=>u.jsxs("option",{value:le.id,children:[le.name," (",le.city,", ",le.state,")"]},le.id))})]})]}),u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(b3,{size:16,className:"text-bloom"})," Delivery / Pickup Date"]}),u.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2",children:DX(14).map(le=>{const It=ui.has(le),Nr=c===le,sh=new Date(le);return u.jsxs("button",{disabled:It,onClick:()=>{d(le),h(null)},className:`shrink-0 w-16 py-2 rounded-xl border text-center text-xs ${It?"opacity-30 cursor-not-allowed border-blush-100":Nr?"border-bloom bg-bloom text-white":"border-blush-100 hover:border-bloom"}`,children:[u.jsx("div",{className:"font-semibold",children:sh.toLocaleDateString("en-US",{weekday:"short"})}),u.jsx("div",{className:"text-base",children:sh.getDate()}),It&&u.jsx("div",{className:"text-[9px]",children:"Closed"})]},le)})}),c&&Y&&u.jsxs("div",{className:"mt-3",children:[Y.blocked&&u.jsxs("div",{className:"flex items-center gap-1.5 text-blush-500 text-xs mb-2",children:[u.jsx(eG,{size:13})," Delivery is unavailable on this date (peak season / closed)."]}),Y.surgeMultiplier>1&&u.jsxs("div",{className:"text-xs text-amber-600 mb-2",children:["⚡ Peak-season surge pricing ×",Y.surgeMultiplier," applied"]}),Y.sameDayAvailable&&u.jsxs("div",{className:"text-xs text-leaf mb-2",children:["Same-Day Delivery available (order by ",Y.sameDayCutoff,")"]}),u.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium mb-2",children:[u.jsx(S3,{size:14,className:"text-bloom"})," Delivery Time Slot"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[(Y.slots||[]).map(le=>{const It=le.available===!1||le.capacity!=null&&le.booked>=le.capacity;return u.jsx("button",{disabled:It,onClick:()=>h({id:le.id,label:le.slotLabel}),className:`py-2 rounded-lg border text-xs ${It?"opacity-30 cursor-not-allowed":(f==null?void 0:f.id)===le.id?"border-bloom bg-petal text-bloom2 font-semibold":"border-blush-100 hover:border-bloom"}`,children:le.slotLabel},le.id)}),!(Y.slots||[]).length&&u.jsx("div",{className:"col-span-3 text-gray-400 text-xs py-2",children:"No time slots available."})]})]})]}),i==="DELIVERY"&&u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3",children:[u.jsx("div",{className:"text-sm font-semibold",children:"Recipient Information"}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx("input",{value:p,onChange:le=>m(le.target.value),placeholder:"Recipient Name",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("input",{value:g,onChange:le=>v(le.target.value),placeholder:"Phone",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{value:y,onChange:le=>b(le.target.value),placeholder:"Delivery Address",className:"flex-1 px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("input",{value:x,onChange:le=>w(le.target.value.replace(/\D/g,"").slice(0,5)),placeholder:"ZIP",className:"w-24 px-3 py-2 rounded-xl border border-blush-100 text-sm text-center outline-none focus:border-bloom"}),u.jsxs("button",{onClick:Po,className:"px-3 rounded-xl border border-bloom text-bloom text-sm font-semibold flex items-center gap-1",children:[u.jsx(vm,{size:14})," Verify"]})]}),k&&u.jsx("div",{className:`text-xs ${k.valid?"text-leaf":"text-blush-500"}`,children:k.valid?`Verified: ${k.normalized||y} (${k.provider})`:`Address verification failed (${k.provider})`})]}),u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("div",{className:"text-sm font-semibold",children:"Gift Card Message"}),u.jsxs("span",{className:"text-xs text-bloom flex items-center gap-1",children:[u.jsx(wr,{size:12})," AI writing is on the product page"]})]}),u.jsx("textarea",{value:S,onChange:le=>j(le.target.value),rows:2,maxLength:200,placeholder:"Message for the recipient",className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("input",{value:O,onChange:le=>E(le.target.value),placeholder:"Special Instructions (optional)",className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"Payment Method"}),u.jsx(wX,{method:M,onMethod:C,onCardChange:D,cards:$e.cards,wallets:$e.wallets})]})]}),u.jsxs("aside",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 h-fit sticky top-20",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"Order Summary"}),u.jsxs("div",{className:"space-y-1.5 text-sm",children:[u.jsx(mu,{k:"Subtotal",v:Ee(X)}),V>0&&u.jsx(mu,{k:"Surge Pricing",v:`+${Ee(V)}`,amber:!0}),u.jsx(mu,{k:"Tax",v:Ee(Xe),sub:$?`${$.provider} ${($.rate*100).toFixed(1)}%`:""}),ge>0&&u.jsx(mu,{k:`Tier Discount (${(ot==null?void 0:ot.tierName)||""} ${_e}%)`,v:`-${Ee(ge)}`,green:!0}),T>0&&u.jsx(mu,{k:"Points Used",v:`-${Ee(T)}`,green:!0})]}),!!t&&u.jsxs("div",{className:"mt-4 bg-petal rounded-xl p-3",children:[u.jsxs("div",{className:"flex items-center justify-between text-xs text-bloom2 mb-1",children:[u.jsxs("span",{children:["Points Balance ",lt.toLocaleString()," pts"]}),u.jsx("button",{onClick:()=>N(dt),className:"text-bloom font-semibold",children:"Use All"})]}),u.jsx("input",{type:"range",min:0,max:dt,value:T,onChange:le=>N(Number(le.target.value)),className:"w-full accent-bloom"}),u.jsxs("div",{className:"text-xs text-gray-500 text-right",children:[T.toLocaleString()," pts used"]})]}),u.jsxs("div",{className:"border-t border-blush-100/60 mt-4 pt-3 flex justify-between font-bold text-base",children:[u.jsx("span",{children:"Order Total"}),u.jsx("span",{className:"text-bloom2",children:Ee(kn)})]}),te&&u.jsx("div",{className:"text-blush-500 text-xs mt-3",children:te}),u.jsx("button",{onClick:va,disabled:F,className:"w-full mt-4 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2 disabled:opacity-60",children:F?"Processing…":`Place Order · ${Ee(kn)}`}),u.jsx("p",{className:"text-[11px] text-gray-400 text-center mt-2",children:"Payments processed via GUARDiA PaymentGateway (secure adapter) · Card details not stored"})]})]})]}):(e("/account"),null)}function mu({k:e,v:t,sub:n,amber:r,green:a}){return u.jsxs("div",{className:"flex justify-between",children:[u.jsxs("span",{className:"text-gray-500",children:[e,n&&u.jsx("span",{className:"text-[10px] text-gray-400 ml-1",children:n})]}),u.jsx("span",{className:r?"text-amber-600":a?"text-leaf":"font-medium",children:t})]})}const $X={PAID:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",CONFIRMED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",DELIVERED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",COMPLETED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",APPROVED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",PUBLISHED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",ACTIVE:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",RESOLVED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",SHIPPED:"bg-sky-500/15 text-sky-400 border-sky-500/30",PREPARING:"bg-sky-500/15 text-sky-400 border-sky-500/30",REQUESTED:"bg-sky-500/15 text-sky-400 border-sky-500/30",IN_PROGRESS:"bg-sky-500/15 text-sky-400 border-sky-500/30",PENDING:"bg-amber-500/15 text-amber-400 border-amber-500/30",PAUSED:"bg-amber-500/15 text-amber-400 border-amber-500/30",OPEN:"bg-amber-500/15 text-amber-400 border-amber-500/30",DRAFT:"bg-slate-500/15 text-slate-400 border-slate-500/30",ENDED:"bg-slate-600/20 text-slate-400 border-slate-600/30",CANCELLED:"bg-slate-600/20 text-slate-400 border-slate-600/30",REJECTED:"bg-rose-500/15 text-rose-400 border-rose-500/30",REFUNDED:"bg-rose-500/15 text-rose-400 border-rose-500/30",FAILED:"bg-rose-500/15 text-rose-400 border-rose-500/30",BASIC:"bg-slate-500/15 text-slate-300 border-slate-500/30",SILVER:"bg-slate-300/20 text-slate-200 border-slate-300/30",GOLD:"bg-amber-400/15 text-amber-300 border-amber-400/30",VIP:"bg-violet-500/15 text-violet-300 border-violet-500/30"},LX={PENDING:"Pending",PAID:"Paid",PREPARING:"Preparing",SHIPPED:"Out for Delivery",DELIVERED:"Delivered",CONFIRMED:"Confirmed",CANCELLED:"Cancelled",REFUNDED:"Refunded",ACTIVE:"Active",PAUSED:"Paused",REQUESTED:"Requested",APPROVED:"Approved",REJECTED:"Rejected",COMPLETED:"Completed",PUBLISHED:"Published",DRAFT:"Draft",ENDED:"Ended",OPEN:"Open",IN_PROGRESS:"Processing",RESOLVED:"Resolved"};function Hr({status:e}){if(!e)return null;const t=$X[e]||"bg-slate-500/15 text-slate-400 border-slate-500/30";return u.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-medium border ${t}`,children:LX[e]||e})}const NT=[["WEEKLY","Weekly"],["BIWEEKLY","Every 2 Weeks"],["MONTHLY","Monthly"]];function zX(){const e=rn(),t=Gt(),{custToken:n,storeId:r}=Sn(),[a,i]=A.useState("WEEKLY"),[s,o]=A.useState(0),[l,c]=A.useState(!1),{data:d}=se({queryKey:["subs"],queryFn:fW,enabled:!!n}),{data:f}=se({queryKey:["stores"],queryFn:()=>Ao(!0)}),{data:h}=se({queryKey:["sub-prods"],queryFn:()=>ec({size:12,sort:"sales"})}),p=(h==null?void 0:h.items)||[],m=async()=>{var x;if(!n){t("/account");return}const y=r||((x=f==null?void 0:f[0])==null?void 0:x.id),b=p.find(w=>w.id===s)||p[0];b&&(await dW({storeId:y,productId:b.id,sizeCode:"ORIGINAL",frequency:a,receiverName:"",receiverPhone:"",address:"",deliveryZip:"",price:b.price}).catch(()=>{}),c(!1),e.invalidateQueries({queryKey:["subs"]}))},g=async(y,b)=>{await OT(y,b==="ACTIVE"?"PAUSED":"ACTIVE").catch(()=>{}),e.invalidateQueries({queryKey:["subs"]})},v=async y=>{await OT(y,"CANCELLED").catch(()=>{}),e.invalidateQueries({queryKey:["subs"]})};return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(rg,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"Flower Subscription"})]}),u.jsx("p",{className:"text-sm text-gray-500 mb-6",children:"Get fresh flowers delivered weekly, every two weeks, or monthly."}),!n&&u.jsxs("div",{className:"bg-petal rounded-2xl p-6 text-center text-sm text-gray-600 mb-6",children:["Please log in to start a subscription. ",u.jsx(Le,{to:"/account",className:"text-bloom font-semibold",children:"Log In →"})]}),u.jsx("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 mb-6",children:l?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium mb-2",children:"Delivery Frequency"}),u.jsx("div",{className:"flex gap-2",children:NT.map(([y,b])=>u.jsx("button",{onClick:()=>i(y),className:`px-4 py-2 rounded-full text-sm border ${a===y?"bg-bloom text-white border-bloom":"border-blush-100"}`,children:b},y))})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium mb-2",children:"Choose a Product"}),u.jsxs("select",{value:s,onChange:y=>o(Number(y.target.value)),className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:[u.jsx("option",{value:0,children:"Best Seller (Recommended)"}),p.map(y=>u.jsxs("option",{value:y.id,children:[y.name," — ",Ee(y.price)]},y.id))]})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:m,className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"Start Subscription"}),u.jsx("button",{onClick:()=>c(!1),className:"border border-blush-100 px-6 py-2.5 rounded-full text-gray-600",children:"Cancel"})]})]}):u.jsx("button",{onClick:()=>n?c(!0):t("/account"),className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"Start a New Subscription"})}),u.jsx("h2",{className:"font-serif text-lg font-bold mb-3",children:"My Subscriptions"}),u.jsxs("div",{className:"space-y-3",children:[(d||[]).map(y=>{var b;return u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex items-center gap-4",children:[u.jsx("div",{className:"w-14 h-14 bg-petal rounded-xl flex items-center justify-center",children:u.jsx(pt,{className:"text-bloom/40",size:26})}),u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"font-medium text-sm",children:[y.productName||`상품 #${y.productId}`," · ",((b=NT.find(x=>x[0]===y.frequency))==null?void 0:b[1])||y.frequency]}),u.jsxs("div",{className:"text-xs text-gray-500",children:["다음 배송 ",y.nextDeliveryDate||"-"," · ",Ee(y.price)]})]}),u.jsx(Hr,{status:y.status}),y.status!=="CANCELLED"&&u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>g(y.id,y.status),className:"text-xs text-bloom2 border border-blush-100 rounded-full px-3 py-1.5",children:y.status==="ACTIVE"?"일시정지":"재개"}),u.jsx("button",{onClick:()=>v(y.id),className:"text-xs text-blush-400 border border-blush-100 rounded-full px-3 py-1.5",children:"해지"})]})]},y.id)}),!(d||[]).length&&u.jsx("div",{className:"text-gray-400 text-sm py-8 text-center",children:"아직 구독이 없습니다."})]})]})}function IX(){const{storeName:e}=Sn(),{data:t}=se({queryKey:["daily-rec"],queryFn:()=>h5("daily","",8)}),{data:n}=se({queryKey:["daily-fresh"],queryFn:()=>ec({sort:"rating",size:8})}),r=(t&&t.length?t:n==null?void 0:n.items)||[];return u.jsxs("div",{children:[u.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-sage-700 to-sage-800 text-white",children:[u.jsx(Xd,{count:12}),u.jsxs("div",{className:"relative z-10 max-w-6xl mx-auto px-4 py-16",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-200 text-[12px] tracking-[0.2em] uppercase mb-3",children:[u.jsx(lj,{size:15})," Fresh today, gone tomorrow"]}),u.jsx("h1",{className:"font-serif text-5xl font-bold mb-4",children:"Today's Designer Bouquet"}),u.jsxs("p",{className:"text-cream/85 max-w-xl leading-relaxed text-lg font-light",children:["Hand-designed each morning with the freshest stems in our cooler, then curated by ",u.jsx("b",{className:"font-medium",children:"GUARDiA AI"}),". Limited daily stock · ",e||"your nearest store"," same-day delivery."]})]})]}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-12",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(wr,{className:"text-blush-500",size:18}),u.jsx("h2",{className:"font-serif text-2xl font-bold text-blush-900",children:"Today's Picks"}),u.jsx("span",{className:"text-xs text-sage-600",children:"AI-curated"})]}),u.jsx(xm,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:r.map(a=>u.jsx(Sm,{children:u.jsx(tc,{p:a})},a.id))}),!r.length&&u.jsxs("div",{className:"text-center text-blush-300 py-20",children:[u.jsx(pt,{className:"mx-auto text-blush-200 mb-3",size:40}),"Today's bouquet is being designed. ",u.jsx(Le,{to:"/category",className:"text-blush-500",children:"Browse all flowers →"})]})]})]})}const BX={DISCOUNT:QK,POINT_BONUS:$f,GIFT:T3,TIER_ONLY:$f,SEASON:zf};function UX(){const{custToken:e}=Sn(),t=Gt(),[n,r]=A.useState(""),{data:a}=se({queryKey:["loyalty-me"],queryFn:wj,enabled:!!e}),i=(a==null?void 0:a.tier)||"",{data:s}=se({queryKey:["ongoing-events",i],queryFn:()=>YW(i)}),o=async l=>{var c,d;if(!e){t("/account");return}r("");try{const f=await WW(l);r(f!=null&&f.coupon?`참여 완료! 쿠폰 발급: ${f.coupon.name} (${f.coupon.code})`:"이벤트에 참여했습니다.")}catch(f){r(((d=(c=f==null?void 0:f.response)==null?void 0:c.data)==null?void 0:d.message)||"참여 자격이 없거나 이미 참여했습니다.")}};return u.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(zf,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"이벤트 / 캠페인"})]}),i&&u.jsxs("p",{className:"text-sm text-gray-500 mb-2",children:["현재 등급 ",u.jsx("span",{className:"font-semibold text-bloom2",children:(a==null?void 0:a.tierName)||i})," · 등급 전용 이벤트가 함께 표시됩니다."]}),n&&u.jsx("div",{className:"bg-petal text-bloom2 text-sm rounded-xl px-4 py-2 mb-4",children:n}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mt-4",children:[(s||[]).map(l=>{const c=BX[l.eventType]||zf,d=(l.banners||[])[0];return u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 overflow-hidden",children:[u.jsx("div",{className:"bg-gradient-to-r from-bloom2 to-bloom text-white p-5",children:d?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"font-serif text-lg font-bold",children:d.headline||l.title}),u.jsx("p",{className:"text-white/85 text-sm mt-1",children:d.subtext||l.description})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"font-serif text-lg font-bold",children:l.title}),u.jsx("p",{className:"text-white/85 text-sm mt-1",children:l.description})]})}),u.jsxs("div",{className:"p-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[u.jsx(c,{size:16,className:"text-bloom"}),u.jsx("span",{children:l.eventType}),l.bonusPointRate>0&&u.jsxs("span",{className:"text-xs text-leaf",children:["+",l.bonusPointRate,"% 포인트"]}),l.targetTiers&&u.jsxs("span",{className:"text-xs bg-petal text-bloom2 px-2 py-0.5 rounded-full",children:[l.targetTiers," 전용"]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Hr,{status:l.status}),u.jsx("button",{onClick:()=>o(l.id),className:"bg-bloom text-white text-sm font-semibold px-4 py-2 rounded-full hover:bg-bloom2",children:"참여"})]})]}),u.jsxs("div",{className:"px-4 pb-3 text-[11px] text-gray-400",children:[l.startDate," ~ ",l.endDate]})]},l.id)}),!(s||[]).length&&u.jsx("div",{className:"col-span-2 text-center text-gray-400 py-16",children:"진행 중인 이벤트가 없습니다."})]})]})}function FX(){const{t:e}=ii(),t=rn(),n=Gt(),{custToken:r}=Sn(),{data:a}=se({queryKey:["wishlist"],queryFn:jW,enabled:!!r});if(!r)return n("/account"),null;const i=a||[],s=async o=>{await OW(o).catch(()=>{}),t.invalidateQueries({queryKey:["wishlist"]})};return u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(Lf,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:e("wishlist.title")})]}),i.length?u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:i.map(o=>u.jsxs("div",{className:"relative",children:[u.jsx(tc,{p:{...o,id:o.productId||o.id}}),u.jsx("button",{onClick:()=>s(o.productId||o.id),className:"absolute top-2 right-2 bg-white/90 rounded-full p-1.5 text-bloom shadow",children:u.jsx(Lf,{size:16,fill:"currentColor"})})]},o.id||o.productId))}):u.jsxs("div",{className:"text-center text-gray-400 py-16",children:[e("wishlist.empty")," ",u.jsx(Le,{to:"/category",className:"text-bloom",children:e("wishlist.startShopping")})]})]})}const CT={BASIC:"from-slate-400 to-slate-500",SILVER:"from-slate-300 to-slate-400",GOLD:"from-amber-400 to-amber-500",VIP:"from-violet-500 to-fuchsia-500"};function VX(){const{custToken:e,setCustToken:t}=Sn(),n=Gt(),{data:r}=se({queryKey:["member"],queryFn:xW,enabled:!!e}),{data:a}=se({queryKey:["loyalty-me"],queryFn:wj,enabled:!!e}),{data:i}=se({queryKey:["point-history"],queryFn:()=>qW(20),enabled:!!e});if(!e)return n("/account"),null;const s=(a==null?void 0:a.tier)||"BASIC",o=a==null?void 0:a.nextTier,l=()=>{t(null),n("/home")};return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center justify-between mb-6",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(D3,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"My Account"})]}),u.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 text-sm text-gray-500 hover:text-bloom",children:[u.jsx(C3,{size:16})," Log Out"]})]}),u.jsxs("div",{className:`rounded-2xl bg-gradient-to-r ${CT[s]||CT.BASIC} text-white p-6 mb-5`,children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs uppercase tracking-widest text-white/70",children:"Membership Tier"}),u.jsxs("div",{className:"font-serif text-2xl font-bold flex items-center gap-2",children:[u.jsx($f,{size:24})," ",(a==null?void 0:a.tierName)||s]}),u.jsxs("div",{className:"text-sm text-white/85 mt-1",children:["Spent in last 12 months ",Ee(a==null?void 0:a.spend12m)," · ",(a==null?void 0:a.orderCount12m)||0," orders"]})]}),u.jsxs("div",{className:"text-right",children:[u.jsx("div",{className:"text-xs text-white/70",children:"Points Balance"}),u.jsxs("div",{className:"text-3xl font-bold",children:[((a==null?void 0:a.pointBalance)||0).toLocaleString(),u.jsx("span",{className:"text-base",children:"P"})]})]})]}),o&&!o.isTop&&u.jsxs("div",{className:"mt-4 text-xs text-white/85 bg-white/15 rounded-lg px-3 py-2",children:["Spend ",Ee(o.spendNeeded)," more or place ",o.ordersNeeded," more orders to reach ",u.jsx("b",{children:o.nextTierName}),"."]})]}),(a==null?void 0:a.benefit)&&u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 mb-5",children:[u.jsxs("div",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:[u.jsx(T3,{size:16,className:"text-bloom"})," My Tier Benefits"]}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-sm",children:[u.jsx(Dh,{label:"Discount",value:`${a.benefit.discountRate}%`}),u.jsx(Dh,{label:"Earn Rate",value:`${a.benefit.pointEarnRate}%`}),u.jsx(Dh,{label:"Free Shipping",value:a.benefit.freeShipThreshold===0?"Always":a.benefit.freeShipThreshold?Ee(a.benefit.freeShipThreshold)+"+":"None"}),u.jsx(Dh,{label:"Priority Slot",value:a.benefit.prioritySlot?"Included":"–"})]})]}),u.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-6",children:[u.jsx(gb,{to:"/orders",icon:_3,label:"Order History"}),u.jsx(gb,{to:"/wishlist",icon:Lf,label:"Wishlist"}),u.jsx(gb,{to:"/subscription",icon:rg,label:"Manage Subscription"})]}),u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsxs("div",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:[u.jsx(w3,{size:16,className:"text-bloom"})," Points Earned / Used History"]}),u.jsxs("div",{className:"divide-y divide-blush-100/60",children:[(i||[]).map(c=>u.jsxs("div",{className:"flex items-center justify-between py-2 text-sm",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-gray-700",children:c.reason||c.entryType}),c.orderNo&&u.jsx("span",{className:"text-xs text-gray-400 ml-2",children:c.orderNo}),u.jsx("div",{className:"text-[11px] text-gray-400",children:(c.createdAt||"").slice(0,10)})]}),u.jsxs("span",{className:c.points>=0?"text-leaf font-semibold":"text-blush-500 font-semibold",children:[c.points>=0?"+":"",c.points,"P"]})]},c.id)),!(i||[]).length&&u.jsx("div",{className:"text-gray-400 text-sm py-6 text-center",children:"No points history yet."})]})]}),(r==null?void 0:r.username)&&u.jsx("div",{className:"text-center text-xs text-gray-400 mt-6",children:r.displayName||r.username})]})}function Dh({label:e,value:t}){return u.jsxs("div",{className:"bg-petal rounded-xl p-3 text-center",children:[u.jsx("div",{className:"text-[11px] text-gray-500",children:e}),u.jsx("div",{className:"font-bold text-bloom2",children:t})]})}function gb({to:e,icon:t,label:n}){return u.jsxs(Le,{to:e,className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex flex-col items-center gap-1.5 hover:border-bloom",children:[u.jsx(t,{size:22,className:"text-bloom"}),u.jsx("span",{className:"text-sm",children:n})]})}function HX(){const e=rn(),t=Gt(),{custToken:n}=Sn(),{data:r}=se({queryKey:["my-orders"],queryFn:()=>oW(""),enabled:!!n});if(!n)return t("/account"),null;const a=r||[],i=async(s,o)=>{await c5(s,o).catch(()=>{}),e.invalidateQueries({queryKey:["my-orders"]})};return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(_3,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"주문 내역"})]}),a.length?u.jsx("div",{className:"space-y-3",children:a.map(s=>u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("div",{className:"font-semibold text-sm",children:s.orderNo||`주문 #${s.id}`}),u.jsx(Hr,{status:s.status})]}),u.jsxs("div",{className:"text-xs text-gray-500 mb-3",children:[(s.createdAt||"").slice(0,16).replace("T"," ")," · ",s.fulfillmentType==="PICKUP"?"매장 픽업":"배송"," · ",s.scheduledDate," ",s.slotLabel]}),u.jsx("div",{className:"space-y-1.5",children:(s.items||[]).map(o=>u.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[u.jsx("div",{className:"w-9 h-9 bg-petal rounded-lg flex items-center justify-center",children:u.jsx(pt,{className:"text-bloom/40",size:16})}),u.jsxs("span",{className:"flex-1",children:[o.productName||`상품 #${o.productId}`," ",o.sizeCode&&`· ${o.sizeCode}`," ×",o.quantity]}),u.jsx("span",{className:"text-gray-600",children:Ee(o.price||o.unitPrice)})]},o.id))}),u.jsxs("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-blush-100/60",children:[u.jsx("span",{className:"font-bold text-bloom2",children:Ee(s.payAmount??s.totalAmount)}),u.jsxs("div",{className:"flex gap-2",children:[s.status==="DELIVERED"&&u.jsx("button",{onClick:()=>i(s.id,"CONFIRMED"),className:"text-xs bg-bloom text-white px-3 py-1.5 rounded-full",children:"구매확정"}),["PENDING","PAID"].includes(s.status)&&u.jsx("button",{onClick:()=>i(s.id,"CANCELLED"),className:"text-xs border border-blush-100 text-blush-400 px-3 py-1.5 rounded-full",children:"주문취소"})]})]})]},s.id))}):u.jsxs("div",{className:"text-center text-gray-400 py-16",children:["주문 내역이 없습니다. ",u.jsx(Le,{to:"/category",className:"text-bloom",children:"쇼핑하기 →"})]})]})}function qX(){const{productId:e}=vk(),t=Number(e),n=Gt(),{custToken:r}=Sn(),[a,i]=A.useState(5),[s,o]=A.useState(""),[l,c]=A.useState(""),[d,f]=A.useState(""),[h,p]=A.useState("");if(!r)return n("/account"),null;const m=async g=>{g.preventDefault(),p("");try{await bW({productId:t,rating:a,title:s,content:l,imageUrl:d}),p("리뷰가 등록되었습니다."),setTimeout(()=>n(`/product/${t}`),800)}catch{p("등록에 실패했습니다. (구매 이력이 필요할 수 있습니다)")}};return u.jsxs("div",{className:"max-w-lg mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(HK,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"리뷰 작성"})]}),u.jsxs("form",{onSubmit:m,className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium mb-2",children:"별점"}),u.jsx("div",{className:"flex gap-1",children:[1,2,3,4,5].map(g=>u.jsx("button",{type:"button",onClick:()=>i(g),className:"text-amber-400",children:u.jsx(Ja,{size:28,fill:g<=a?"currentColor":"none"})},g))})]}),u.jsx("input",{value:s,onChange:g=>o(g.target.value),placeholder:"제목",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("textarea",{value:l,onChange:g=>c(g.target.value),rows:5,required:!0,placeholder:"상품은 어떠셨나요? 신선도, 배송, 디자인 등을 적어주세요.",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("input",{value:d,onChange:g=>f(g.target.value),placeholder:"사진 URL (선택)",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),h&&u.jsx("div",{className:"text-sm text-leaf",children:h}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{className:"flex-1 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2",children:"등록"}),u.jsx("button",{type:"button",onClick:()=>n(-1),className:"px-6 border border-blush-100 rounded-full text-gray-600",children:"취소"})]})]})]})}function KX(){const[e,t]=A.useState("login"),[n,r]=A.useState(""),[a,i]=A.useState(""),[s,o]=A.useState(""),[l,c]=A.useState(""),[d,f]=A.useState(!1),{setCustToken:h}=Sn(),p=Gt(),m=async g=>{var v,y;g.preventDefault(),c(""),f(!0);try{const x=(y=(v=(e==="login"?await s5(n,a):await GY(n,a,s||n)).data)==null?void 0:v.data)==null?void 0:y.token;if(!x)throw new Error("no token");h(x),p("/home")}catch{c(e==="login"?"Login failed — check your username and password.":"Sign-up failed — that username may already be taken.")}finally{f(!1)}};return u.jsxs("div",{className:"relative min-h-screen bg-gradient-to-br from-blush-100 via-cream to-sage-100 flex items-center justify-center px-4 overflow-hidden",children:[u.jsx(Xd,{count:12}),u.jsxs(Ct.form,{onSubmit:m,initial:{opacity:0,y:22},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},className:"relative z-10 w-full max-w-sm bg-white/90 backdrop-blur rounded-4xl shadow-bloom p-8 border border-blush-100",children:[u.jsxs(Le,{to:"/home",className:"flex flex-col items-center gap-1 mb-6",children:[u.jsx(pt,{className:"text-blush-500",size:32}),u.jsx("span",{className:"font-serif text-xl font-bold text-blush-900",children:"Montvale Florist"})]}),u.jsx("div",{className:"flex gap-2 mb-6 bg-blush-50 rounded-full p-1 text-sm",children:["login","register"].map(g=>u.jsx("button",{type:"button",onClick:()=>{t(g),c("")},className:`flex-1 py-2 rounded-full font-medium transition-colors ${e===g?"bg-blush-500 text-white shadow-petal":"text-blush-700"}`,children:g==="login"?"Sign In":"Create Account"},g))}),u.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Username"}),u.jsx("input",{value:n,onChange:g=>r(g.target.value),required:!0,className:"w-full mb-3 px-3 py-2.5 rounded-2xl bg-blush-50 border border-blush-100 text-sm outline-none focus:border-blush-400"}),e==="register"&&u.jsxs(u.Fragment,{children:[u.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Name"}),u.jsx("input",{value:s,onChange:g=>o(g.target.value),className:"w-full mb-3 px-3 py-2.5 rounded-2xl bg-blush-50 border border-blush-100 text-sm outline-none focus:border-blush-400"})]}),u.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Password"}),u.jsx("input",{type:"password",value:a,onChange:g=>i(g.target.value),required:!0,className:"w-full mb-4 px-3 py-2.5 rounded-2xl bg-blush-50 border border-blush-100 text-sm outline-none focus:border-blush-400"}),l&&u.jsx("p",{className:"text-blush-500 text-xs mb-3",children:l}),u.jsx(Ha,{type:"submit",disabled:d,className:"w-full py-2.5 rounded-full bg-blush-500 text-white font-semibold hover:bg-blush-600 disabled:opacity-60",children:d?"Please wait…":e==="login"?"Sign In":"Create Account"}),u.jsxs("p",{className:"text-center text-[11px] text-[#a08a90] mt-4",children:["Store & owner staff → ",u.jsx("a",{href:"/admin/login",className:"text-blush-600",children:"Admin Console"})]}),u.jsx("p",{className:"text-center text-[11px] text-sage-600 mt-2",children:$e.tagline})]})]})}const GX=["DELIVERY","PRODUCT","PAYMENT","REFUND","OTHER"];function YX(){const e=rn(),t=Gt(),{custToken:n}=Sn(),[r,a]=A.useState("DELIVERY"),[i,s]=A.useState(""),[o,l]=A.useState(""),[c,d]=A.useState(""),[f,h]=A.useState(""),[p,m]=A.useState("Birthday"),[g,v]=A.useState("Warm"),[y,b]=A.useState(""),[x,w]=A.useState([]),{data:S}=se({queryKey:["cs"],queryFn:SW,enabled:!!n}),j=async E=>{if(E.preventDefault(),h(""),!n){t("/account");return}try{const T=await wW({orderNo:i,category:r,subject:o,content:c});h(T!=null&&T.aiReply?`AI auto-reply: ${T.aiReply}`:"Your request has been submitted."),l(""),d(""),e.invalidateQueries({queryKey:["cs"]})}catch{h("Failed to submit your request.")}},O=async()=>{const E=await PW(p,g,y).catch(()=>null);w((E==null?void 0:E.messages)||[])};return u.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(BK,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"Customer Support (1:1)"})]}),u.jsxs("div",{className:"bg-petal rounded-2xl p-5 mb-6",children:[u.jsxs("div",{className:"flex items-center gap-2 text-bloom2 font-medium text-sm mb-3",children:[u.jsx(wr,{size:16})," AI Card Message Helper"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-2 mb-3",children:[u.jsx("input",{value:p,onChange:E=>m(E.target.value),placeholder:"Occasion (e.g. Birthday)",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"}),u.jsx("input",{value:g,onChange:E=>v(E.target.value),placeholder:"Tone",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"}),u.jsx("input",{value:y,onChange:E=>b(E.target.value),placeholder:"Recipient",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"})]}),u.jsx("button",{onClick:O,className:"bg-bloom text-white text-sm font-semibold px-4 py-2 rounded-full",children:"Suggest Messages"}),!!x.length&&u.jsx("ul",{className:"mt-3 space-y-2",children:x.map((E,T)=>u.jsx("li",{className:"bg-white rounded-lg px-3 py-2 text-sm text-gray-700",children:E},T))})]}),u.jsxs("form",{onSubmit:j,className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3 mb-8",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx("select",{value:r,onChange:E=>a(E.target.value),className:"px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:GX.map(E=>u.jsx("option",{value:E,children:E},E))}),u.jsx("input",{value:i,onChange:E=>s(E.target.value),placeholder:"Order number (optional)",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsx("input",{value:o,onChange:E=>l(E.target.value),required:!0,placeholder:"Subject",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("textarea",{value:c,onChange:E=>d(E.target.value),rows:4,required:!0,placeholder:"Tell us how we can help. Our AI will try to answer first.",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),f&&u.jsx("div",{className:"text-sm text-leaf bg-leaf/10 rounded-lg px-3 py-2",children:f}),u.jsxs("button",{className:"flex items-center gap-1.5 bg-bloom text-white font-semibold px-6 py-2.5 rounded-full hover:bg-bloom2",children:[u.jsx(YK,{size:16})," Submit Request"]}),!n&&u.jsxs("p",{className:"text-xs text-gray-400",children:["Please log in to submit a request. ",u.jsx(Le,{to:"/account",className:"text-bloom",children:"Log In"})]})]}),u.jsx("h2",{className:"font-serif text-lg font-bold mb-3",children:"My Requests"}),u.jsxs("div",{className:"space-y-2",children:[(S||[]).map(E=>u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"font-medium text-sm",children:E.subject}),u.jsx(Hr,{status:E.status})]}),u.jsx("p",{className:"text-sm text-gray-600 mt-1",children:E.content}),E.aiReply&&u.jsxs("div",{className:"mt-2 text-xs text-bloom2 bg-petal rounded-lg px-3 py-2",children:[u.jsx("b",{children:"AI Reply:"})," ",E.aiReply]}),E.itsmSrId&&u.jsxs("div",{className:"text-[11px] text-gray-400 mt-1",children:["ITSM SR: ",E.itsmSrId]})]},E.id)),!(S||[]).length&&u.jsx("div",{className:"text-gray-400 text-sm py-6 text-center",children:"No requests submitted yet."})]})]})}const b5="https://itsm.zioinfo.co.kr",vb=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,b5);function WX(){const[e,t]=A.useState(null),[n,r]=A.useState(!0),[a,i]=A.useState(""),[s,o]=A.useState(!1),l=()=>{r(!0),i(""),fetch(`${b5}/api/app/public-latest`).then(d=>d.json()).then(d=>t({...d,qr_url:vb(d.qr_url),landing_url:vb(d.landing_url),download_url:vb(d.download_url)})).catch(()=>i("Unable to connect to the app store. Please try again in a moment.")).finally(()=>r(!1))};A.useEffect(()=>{l()},[]);const c=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return u.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-10",children:[u.jsxs("div",{className:"text-center mb-8",children:[u.jsxs("div",{className:"flex items-center gap-2 justify-center mb-2",children:[u.jsx(wl,{className:"text-bloom",size:26}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-bloom2",children:"Order with the App"})]}),u.jsxs("p",{className:"text-sm text-gray-500",children:["Scan the QR code to open the ",u.jsx("span",{className:"text-bloom font-semibold",children:"GUARDiA Mall"})," customer app install page.",u.jsx("br",{}),"Enjoy same-day delivery alerts, easy reordering, and subscription management right in the app."]})]}),n&&u.jsx("div",{className:"text-center text-gray-400 py-10",children:"Loading…"}),a&&u.jsx("div",{className:"bg-petal border border-blush-100 rounded-2xl p-6 text-center text-blush-500 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&u.jsxs("div",{className:"bg-white border border-blush-100/60 rounded-2xl p-10 text-center text-gray-400",children:[u.jsx(pt,{size:40,className:"mx-auto mb-3 text-bloom/30"}),"No app version has been published yet.",u.jsx("br",{}),u.jsx("span",{className:"text-xs",children:"App uploads and version management are handled in GUARDiA Manager."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&u.jsxs("div",{className:"bg-white border border-blush-100/60 rounded-2xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start shadow-sm",children:[u.jsx("div",{className:"bg-petal rounded-2xl p-3 flex items-center justify-center",children:e.qr_url?u.jsx("img",{src:e.qr_url,alt:"App install QR code",className:"w-44 h-44"}):u.jsx(wl,{size:64,className:"text-bloom/40"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Mall"}),u.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-bloom text-white text-xs font-semibold",children:["v",e.version]})]}),u.jsxs("div",{className:"text-xs text-gray-500 mb-4",children:[e.platform," ",e.file_size_mb?`· ${e.file_size_mb}MB`:"",e.download_count!=null&&` · ${e.download_count} downloads`]}),e.release_notes&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-[11px] font-semibold text-gray-400 uppercase tracking-wider mb-1",children:"What's New"}),u.jsx("div",{className:"text-sm text-gray-600 whitespace-pre-line bg-petal rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&u.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-4 py-2 rounded-full bg-bloom text-white text-sm font-semibold hover:bg-bloom2",children:[u.jsx(O3,{size:15})," Install Page"]}),e.download_url&&u.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-4 py-2 rounded-full border border-blush-100 text-bloom2 text-sm hover:bg-petal",children:[u.jsx(A3,{size:15})," Download APK"]}),u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 px-4 py-2 rounded-full border border-blush-100 text-bloom2 text-sm hover:bg-petal",children:[s?u.jsx(x3,{size:15,className:"text-leaf"}):u.jsx(j3,{size:15}),s?"Copied":"Copy Link"]}),u.jsx("button",{onClick:l,className:"flex items-center gap-1.5 px-3 py-2 rounded-full border border-blush-100 text-gray-500 text-sm hover:bg-petal",children:u.jsx(uj,{size:15})})]})]})]})]})}const XX=(e,t)=>q.post("/api/mall/auth/verify",{verifyToken:e,code:t}),QX=e=>q.post("/api/messages",e),ZX=e=>q.get("/api/messages/sent",{params:e}),JX=e=>q.get(`/api/messages/sent/${e}`),eQ=e=>q.get("/api/messages/received",{params:e}),tQ=e=>q.get(`/api/messages/received/${e}`),nQ=e=>q.get("/api/schedules",{params:e}),rQ=e=>q.post("/api/schedules",e),aQ=e=>q.get(`/api/schedules/${e}`),iQ=e=>q.delete(`/api/schedules/${e}`),sQ=e=>q.get("/api/worklogs",{params:e}),oQ=e=>q.get("/api/worklogs/dashboard/progress",{params:e}),lQ=e=>q.post("/api/worklogs",e),cQ=e=>q.get(`/api/worklogs/${e}`),uQ=e=>q.delete(`/api/worklogs/${e}`),fQ=(e,t)=>q.post(`/api/worklogs/${e}/comments`,{cmtContent:t}),dQ=e=>q.get("/api/stats/personal-work",{params:e}),hQ=e=>q.get("/api/stats/company-work",{params:e});function pQ(){const{t:e}=ii(),[t,n]=A.useState("admin"),[r,a]=A.useState(""),[i,s]=A.useState(""),[o,l]=A.useState("login"),[c,d]=A.useState(""),[f,h]=A.useState(""),[p,m]=A.useState(""),g=Gt();A.useEffect(()=>(document.documentElement.classList.add("admin-shell"),()=>document.documentElement.classList.remove("admin-shell")),[]);const v=async x=>{localStorage.setItem("mall_admin_token",x);const w=await o5().catch(()=>null);if(w!=null&&w.role&&localStorage.setItem("mall_role",w.role),w!=null&&w.username&&localStorage.setItem("mall_admin_user",w.username),(w==null?void 0:w.role)==="USER"){s(e("admin.login.errNoPriv")),localStorage.removeItem("mall_admin_token");return}g("/admin/dashboard")},y=async x=>{var w;x.preventDefault(),s("");try{const j=((w=(await s5(t,r)).data)==null?void 0:w.data)||{};if(j.twofa==="true"){d(j.verifyToken||""),h(j.maskedEmail||""),l("verify");return}const O=j.token;if(!O)throw new Error("no token");await v(O)}catch{s(e("admin.login.errFailed"))}},b=async x=>{var w,S;x.preventDefault(),s("");try{const O=(S=(w=(await XX(c,p.trim())).data)==null?void 0:w.data)==null?void 0:S.token;if(!O)throw new Error("no token");await v(O)}catch{s("인증 코드가 올바르지 않거나 만료되었습니다. (Invalid or expired code)")}};return u.jsxs("div",{className:"admin-shell min-h-screen flex items-center justify-center bg-ink text-[#e6edf6]",children:[u.jsx("div",{className:"absolute top-5 right-5",children:u.jsx(ug,{variant:"admin"})}),o==="login"?u.jsxs("form",{onSubmit:y,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[u.jsxs("div",{className:"flex items-center gap-2 justify-center mb-6",children:[u.jsx("img",{src:"/login.png",alt:"GUARDiA",style:{height:36,width:"auto"},onError:x=>{x.target.style.display="none"}}),u.jsx("span",{className:"text-xl font-bold",children:e("admin.login.title")})]}),u.jsx("p",{className:"text-center text-sm text-slate-400 mb-6",children:e("admin.login.subtitle")}),u.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e("admin.login.username")}),u.jsx("input",{value:t,onChange:x=>n(x.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),u.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:e("admin.login.password")}),u.jsx("input",{type:"password",value:r,onChange:x=>a(x.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),i&&u.jsx("p",{className:"text-rose-400 text-xs mb-3",children:i}),u.jsx("button",{className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90",children:e("admin.login.signIn")}),u.jsxs("p",{className:"text-center text-[11px] text-slate-500 mt-4",children:[e("admin.login.storefrontHere")," ",u.jsx("a",{href:"/",className:"text-brand",children:e("admin.login.here")})]})]}):u.jsxs("form",{onSubmit:b,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[u.jsx("div",{className:"flex items-center gap-2 justify-center mb-4",children:u.jsx("span",{className:"text-xl font-bold",children:"2차 인증 / 2FA"})}),u.jsx("p",{className:"text-center text-sm text-slate-400 mb-2",children:"운영 계정 보안을 위한 2차 인증입니다."}),u.jsxs("p",{className:"text-center text-[12px] text-slate-500 mb-6",children:["인증 코드를 ",f||"등록된 이메일"," 로 보냈습니다."]}),u.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"인증 코드 (6자리)"}),u.jsx("input",{value:p,onChange:x=>m(x.target.value),inputMode:"numeric",maxLength:6,autoFocus:!0,className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm tracking-[0.4em] text-center focus:border-brand outline-none"}),i&&u.jsx("p",{className:"text-rose-400 text-xs mb-3",children:i}),u.jsx("button",{className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90",children:"확인 / Verify"}),u.jsx("button",{type:"button",onClick:()=>{l("login"),m(""),s("")},className:"w-full py-2 mt-2 rounded-lg text-slate-400 text-xs hover:text-brand",children:"← 돌아가기 / Back"})]})]})}const mQ=[{to:"/admin/dashboard",key:"dashboard",icon:UK,roles:["ADMIN","MANAGER"]},{to:"/admin/stores",key:"stores",icon:Hd,roles:["ADMIN","MANAGER"]},{to:"/admin/products",key:"products",icon:pt,roles:["ADMIN","MANAGER"]},{to:"/admin/inventory",key:"inventory",icon:g3,roles:["ADMIN","MANAGER"]},{to:"/admin/orders",key:"orders",icon:hj,roles:["ADMIN","MANAGER"]},{to:"/admin/transfers",key:"transfers",icon:y3,roles:["ADMIN","MANAGER"]},{to:"/admin/members",key:"members",icon:k3,roles:["ADMIN","MANAGER"]},{to:"/admin/loyalty",key:"loyalty",icon:$f,roles:["ADMIN","MANAGER"]},{to:"/admin/events",key:"events",icon:zf,roles:["ADMIN","MANAGER"]},{to:"/admin/subscriptions",key:"subscriptions",icon:rg,roles:["ADMIN","MANAGER"]},{to:"/admin/schedule",key:"schedule",icon:v3,roles:["ADMIN","MANAGER"]},{to:"/admin/analytics",key:"analytics",icon:oj,roles:["ADMIN","MANAGER"]}],yQ=[{to:"/admin/users",key:"users",icon:R3,roles:["ADMIN"]},{to:"/admin/audit",key:"audit",icon:P3,roles:["ADMIN","MANAGER"]},{to:"/admin/settings",key:"settings",icon:M3,roles:["ADMIN"]},{to:"/admin/app",key:"appInstall",icon:wl,roles:["ADMIN","MANAGER"]}],gQ=[{to:"/admin/uiws/worklog",label:"업무일지 Worklog",icon:$K,roles:["ADMIN","MANAGER"]},{to:"/admin/uiws/schedule",label:"일정 Schedule",icon:b3,roles:["ADMIN","MANAGER"]},{to:"/admin/uiws/message",label:"쪽지 Message",icon:FK,roles:["ADMIN","MANAGER"]},{to:"/admin/uiws/stats",label:"업무통계 Stats",icon:qK,roles:["ADMIN","MANAGER"]}],bb=({isActive:e})=>`flex items-center gap-3 px-5 py-2.5 text-sm transition-colors ${e?"bg-card text-brand border-r-2 border-brand":"text-slate-300 hover:bg-card/60"}`;function vQ(){const{t:e}=ii(),t=localStorage.getItem("mall_admin_token"),[n,r]=A.useState(()=>localStorage.getItem("mall_role")||""),[a,i]=A.useState(()=>localStorage.getItem("mall_admin_user")||""),s=Gt();if(A.useEffect(()=>(document.documentElement.classList.add("admin-shell"),()=>document.documentElement.classList.remove("admin-shell")),[]),A.useEffect(()=>{t&&o5().then(f=>{f!=null&&f.role&&(localStorage.setItem("mall_role",f.role),r(f.role)),f!=null&&f.username&&(localStorage.setItem("mall_admin_user",f.username),i(f.username))}).catch(()=>{})},[t]),!t)return u.jsx(sm,{to:"/admin/login",replace:!0});if(n&&n==="USER")return u.jsx(sm,{to:"/admin/login",replace:!0});const o=mQ.filter(f=>!n||f.roles.includes(n)),l=yQ.filter(f=>f.roles.includes(n)),c=gQ.filter(f=>!n||f.roles.includes(n)),d=()=>{localStorage.removeItem("mall_admin_token"),localStorage.removeItem("mall_role"),localStorage.removeItem("mall_admin_user"),s("/admin/login")};return u.jsxs("div",{className:"admin-shell flex h-screen bg-ink text-[#e6edf6]",children:[u.jsxs("aside",{className:"w-60 bg-panel border-r border-edge flex flex-col",children:[u.jsxs("div",{className:"h-16 flex items-center gap-2 px-5 border-b border-edge",children:[u.jsx(pt,{className:"text-brand",size:22}),u.jsxs("div",{children:[u.jsx("div",{className:"font-bold text-base leading-tight",children:"GUARDiA Mall"}),u.jsx("div",{className:"text-[11px] text-slate-400",children:e("admin.console")})]})]}),u.jsxs("nav",{className:"flex-1 py-2 overflow-auto",children:[o.map(({to:f,key:h,icon:p})=>u.jsxs(gp,{to:f,className:bb,children:[u.jsx(p,{size:18}),e(`admin.nav.${h}`)]},f)),l.length>0&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"px-5 pt-4 pb-1.5 text-[10px] font-semibold tracking-wider text-slate-500 uppercase border-t border-edge mt-3",children:e("admin.system")}),l.map(({to:f,key:h,icon:p})=>u.jsxs(gp,{to:f,className:bb,children:[u.jsx(p,{size:18}),e(`admin.nav.${h}`)]},f))]}),c.length>0&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"px-5 pt-4 pb-1.5 text-[10px] font-semibold tracking-wider text-slate-500 uppercase border-t border-edge mt-3",children:"업무 (UIWS)"}),c.map(({to:f,label:h,icon:p})=>u.jsxs(gp,{to:f,className:bb,children:[u.jsx(p,{size:18}),h]},f))]})]}),u.jsx("div",{className:"p-4 text-[11px] text-slate-500 border-t border-edge",children:e("admin.onPremiseTag")})]}),u.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[u.jsxs("header",{className:"h-16 bg-panel border-b border-edge flex items-center justify-between px-6",children:[u.jsx("div",{className:"text-sm text-slate-400 truncate",children:e("admin.header")}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsx(ug,{variant:"admin"}),u.jsxs("span",{className:"flex items-center gap-1.5 text-sm text-slate-300",children:[u.jsx(kK,{size:18})," ",a||"admin"," ",u.jsx("span",{className:"text-[10px] text-brand",children:n})]}),u.jsxs("button",{onClick:d,className:"flex items-center gap-1.5 text-sm text-slate-400 hover:text-brand",children:[u.jsx(C3,{size:16})," ",e("admin.signOut")]})]})]}),u.jsx("main",{className:"flex-1 overflow-auto p-6",children:u.jsx(wk,{})})]})]})}function x5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=x5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function be(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=x5(e))&&(r&&(r+=" "),r+=t);return r}var bQ=Array.isArray,Dn=bQ,xQ=typeof lh=="object"&&lh&&lh.Object===Object&&lh,S5=xQ,SQ=S5,wQ=typeof self=="object"&&self&&self.Object===Object&&self,jQ=SQ||wQ||Function("return this")(),ma=jQ,AQ=ma,OQ=AQ.Symbol,Qd=OQ,_T=Qd,w5=Object.prototype,EQ=w5.hasOwnProperty,TQ=w5.toString,yu=_T?_T.toStringTag:void 0;function NQ(e){var t=EQ.call(e,yu),n=e[yu];try{e[yu]=void 0;var r=!0}catch{}var a=TQ.call(e);return r&&(t?e[yu]=n:delete e[yu]),a}var CQ=NQ,_Q=Object.prototype,PQ=_Q.toString;function MQ(e){return PQ.call(e)}var RQ=MQ,PT=Qd,DQ=CQ,kQ=RQ,$Q="[object Null]",LQ="[object Undefined]",MT=PT?PT.toStringTag:void 0;function zQ(e){return e==null?e===void 0?LQ:$Q:MT&&MT in Object(e)?DQ(e):kQ(e)}var si=zQ;function IQ(e){return e!=null&&typeof e=="object"}var oi=IQ,BQ=si,UQ=oi,FQ="[object Symbol]";function VQ(e){return typeof e=="symbol"||UQ(e)&&BQ(e)==FQ}var Vc=VQ,HQ=Dn,qQ=Vc,KQ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,GQ=/^\w*$/;function YQ(e,t){if(HQ(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||qQ(e)?!0:GQ.test(e)||!KQ.test(e)||t!=null&&e in Object(t)}var jj=YQ;function WQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var ss=WQ;const Hc=Ie(ss);var XQ=si,QQ=ss,ZQ="[object AsyncFunction]",JQ="[object Function]",eZ="[object GeneratorFunction]",tZ="[object Proxy]";function nZ(e){if(!QQ(e))return!1;var t=XQ(e);return t==JQ||t==eZ||t==ZQ||t==tZ}var Aj=nZ;const de=Ie(Aj);var rZ=ma,aZ=rZ["__core-js_shared__"],iZ=aZ,xb=iZ,RT=function(){var e=/[^.]+$/.exec(xb&&xb.keys&&xb.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function sZ(e){return!!RT&&RT in e}var oZ=sZ,lZ=Function.prototype,cZ=lZ.toString;function uZ(e){if(e!=null){try{return cZ.call(e)}catch{}try{return e+""}catch{}}return""}var j5=uZ,fZ=Aj,dZ=oZ,hZ=ss,pZ=j5,mZ=/[\\^$.*+?()[\]{}|]/g,yZ=/^\[object .+?Constructor\]$/,gZ=Function.prototype,vZ=Object.prototype,bZ=gZ.toString,xZ=vZ.hasOwnProperty,SZ=RegExp("^"+bZ.call(xZ).replace(mZ,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wZ(e){if(!hZ(e)||dZ(e))return!1;var t=fZ(e)?SZ:yZ;return t.test(pZ(e))}var jZ=wZ;function AZ(e,t){return e==null?void 0:e[t]}var OZ=AZ,EZ=jZ,TZ=OZ;function NZ(e,t){var n=TZ(e,t);return EZ(n)?n:void 0}var Oo=NZ,CZ=Oo,_Z=CZ(Object,"create"),fg=_Z,DT=fg;function PZ(){this.__data__=DT?DT(null):{},this.size=0}var MZ=PZ;function RZ(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var DZ=RZ,kZ=fg,$Z="__lodash_hash_undefined__",LZ=Object.prototype,zZ=LZ.hasOwnProperty;function IZ(e){var t=this.__data__;if(kZ){var n=t[e];return n===$Z?void 0:n}return zZ.call(t,e)?t[e]:void 0}var BZ=IZ,UZ=fg,FZ=Object.prototype,VZ=FZ.hasOwnProperty;function HZ(e){var t=this.__data__;return UZ?t[e]!==void 0:VZ.call(t,e)}var qZ=HZ,KZ=fg,GZ="__lodash_hash_undefined__";function YZ(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=KZ&&t===void 0?GZ:t,this}var WZ=YZ,XZ=MZ,QZ=DZ,ZZ=BZ,JZ=qZ,eJ=WZ;function qc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}qc.prototype.clear=XZ;qc.prototype.delete=QZ;qc.prototype.get=ZZ;qc.prototype.has=JZ;qc.prototype.set=eJ;var tJ=qc;function nJ(){this.__data__=[],this.size=0}var rJ=nJ;function aJ(e,t){return e===t||e!==e&&t!==t}var Oj=aJ,iJ=Oj;function sJ(e,t){for(var n=e.length;n--;)if(iJ(e[n][0],t))return n;return-1}var dg=sJ,oJ=dg,lJ=Array.prototype,cJ=lJ.splice;function uJ(e){var t=this.__data__,n=oJ(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():cJ.call(t,n,1),--this.size,!0}var fJ=uJ,dJ=dg;function hJ(e){var t=this.__data__,n=dJ(t,e);return n<0?void 0:t[n][1]}var pJ=hJ,mJ=dg;function yJ(e){return mJ(this.__data__,e)>-1}var gJ=yJ,vJ=dg;function bJ(e,t){var n=this.__data__,r=vJ(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var xJ=bJ,SJ=rJ,wJ=fJ,jJ=pJ,AJ=gJ,OJ=xJ;function Kc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Kc.prototype.clear=SJ;Kc.prototype.delete=wJ;Kc.prototype.get=jJ;Kc.prototype.has=AJ;Kc.prototype.set=OJ;var hg=Kc,EJ=Oo,TJ=ma,NJ=EJ(TJ,"Map"),Ej=NJ,kT=tJ,CJ=hg,_J=Ej;function PJ(){this.size=0,this.__data__={hash:new kT,map:new(_J||CJ),string:new kT}}var MJ=PJ;function RJ(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var DJ=RJ,kJ=DJ;function $J(e,t){var n=e.__data__;return kJ(t)?n[typeof t=="string"?"string":"hash"]:n.map}var pg=$J,LJ=pg;function zJ(e){var t=LJ(this,e).delete(e);return this.size-=t?1:0,t}var IJ=zJ,BJ=pg;function UJ(e){return BJ(this,e).get(e)}var FJ=UJ,VJ=pg;function HJ(e){return VJ(this,e).has(e)}var qJ=HJ,KJ=pg;function GJ(e,t){var n=KJ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var YJ=GJ,WJ=MJ,XJ=IJ,QJ=FJ,ZJ=qJ,JJ=YJ;function Gc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Gc.prototype.clear=WJ;Gc.prototype.delete=XJ;Gc.prototype.get=QJ;Gc.prototype.has=ZJ;Gc.prototype.set=JJ;var Tj=Gc,A5=Tj,eee="Expected a function";function Nj(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(eee);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(Nj.Cache||A5),n}Nj.Cache=A5;var O5=Nj;const tee=Ie(O5);var nee=O5,ree=500;function aee(e){var t=nee(e,function(r){return n.size===ree&&n.clear(),r}),n=t.cache;return t}var iee=aee,see=iee,oee=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,lee=/\\(\\)?/g,cee=see(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(oee,function(n,r,a,i){t.push(a?i.replace(lee,"$1"):r||n)}),t}),uee=cee;function fee(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Cj=fee,$T=Qd,dee=Cj,hee=Dn,pee=Vc,LT=$T?$T.prototype:void 0,zT=LT?LT.toString:void 0;function E5(e){if(typeof e=="string")return e;if(hee(e))return dee(e,E5)+"";if(pee(e))return zT?zT.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var mee=E5,yee=mee;function gee(e){return e==null?"":yee(e)}var T5=gee,vee=Dn,bee=jj,xee=uee,See=T5;function wee(e,t){return vee(e)?e:bee(e,t)?[e]:xee(See(e))}var N5=wee,jee=Vc;function Aee(e){if(typeof e=="string"||jee(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var mg=Aee,Oee=N5,Eee=mg;function Tee(e,t){t=Oee(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[Eee(t[n++])];return n&&n==r?e:void 0}var _j=Tee,Nee=_j;function Cee(e,t,n){var r=e==null?void 0:Nee(e,t);return r===void 0?n:r}var C5=Cee;const Qn=Ie(C5);function _ee(e){return e==null}var Pee=_ee;const me=Ie(Pee);var Mee=si,Ree=Dn,Dee=oi,kee="[object String]";function $ee(e){return typeof e=="string"||!Ree(e)&&Dee(e)&&Mee(e)==kee}var Lee=$ee;const uo=Ie(Lee);var _5={exports:{}},Ve={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pj=Symbol.for("react.element"),Mj=Symbol.for("react.portal"),yg=Symbol.for("react.fragment"),gg=Symbol.for("react.strict_mode"),vg=Symbol.for("react.profiler"),bg=Symbol.for("react.provider"),xg=Symbol.for("react.context"),zee=Symbol.for("react.server_context"),Sg=Symbol.for("react.forward_ref"),wg=Symbol.for("react.suspense"),jg=Symbol.for("react.suspense_list"),Ag=Symbol.for("react.memo"),Og=Symbol.for("react.lazy"),Iee=Symbol.for("react.offscreen"),P5;P5=Symbol.for("react.module.reference");function Er(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Pj:switch(e=e.type,e){case yg:case vg:case gg:case wg:case jg:return e;default:switch(e=e&&e.$$typeof,e){case zee:case xg:case Sg:case Og:case Ag:case bg:return e;default:return t}}case Mj:return t}}}Ve.ContextConsumer=xg;Ve.ContextProvider=bg;Ve.Element=Pj;Ve.ForwardRef=Sg;Ve.Fragment=yg;Ve.Lazy=Og;Ve.Memo=Ag;Ve.Portal=Mj;Ve.Profiler=vg;Ve.StrictMode=gg;Ve.Suspense=wg;Ve.SuspenseList=jg;Ve.isAsyncMode=function(){return!1};Ve.isConcurrentMode=function(){return!1};Ve.isContextConsumer=function(e){return Er(e)===xg};Ve.isContextProvider=function(e){return Er(e)===bg};Ve.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Pj};Ve.isForwardRef=function(e){return Er(e)===Sg};Ve.isFragment=function(e){return Er(e)===yg};Ve.isLazy=function(e){return Er(e)===Og};Ve.isMemo=function(e){return Er(e)===Ag};Ve.isPortal=function(e){return Er(e)===Mj};Ve.isProfiler=function(e){return Er(e)===vg};Ve.isStrictMode=function(e){return Er(e)===gg};Ve.isSuspense=function(e){return Er(e)===wg};Ve.isSuspenseList=function(e){return Er(e)===jg};Ve.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===yg||e===vg||e===gg||e===wg||e===jg||e===Iee||typeof e=="object"&&e!==null&&(e.$$typeof===Og||e.$$typeof===Ag||e.$$typeof===bg||e.$$typeof===xg||e.$$typeof===Sg||e.$$typeof===P5||e.getModuleId!==void 0)};Ve.typeOf=Er;_5.exports=Ve;var Bee=_5.exports,Uee=si,Fee=oi,Vee="[object Number]";function Hee(e){return typeof e=="number"||Fee(e)&&Uee(e)==Vee}var M5=Hee;const qee=Ie(M5);var Kee=M5;function Gee(e){return Kee(e)&&e!=+e}var Yee=Gee;const Yc=Ie(Yee);var mn=function(t){return t===0?0:t>0?1:-1},Ps=function(t){return uo(t)&&t.indexOf("%")===t.length-1},G=function(t){return qee(t)&&!Yc(t)},Wee=function(t){return me(t)},$t=function(t){return G(t)||uo(t)},Xee=0,Eo=function(t){var n=++Xee;return"".concat(t||"").concat(n)},yn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!G(t)&&!uo(t))return r;var i;if(Ps(t)){var s=t.indexOf("%");i=n*parseFloat(t.slice(0,s))/100}else i=+t;return Yc(i)&&(i=r),a&&i>n&&(i=n),i},ji=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Qee=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},Dt=function(t,n){return G(t)&&G(n)?function(r){return t+r*(n-t)}:function(){return n}};function wm(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Qn(r,t))===n})}var Zee=function(t,n){return G(t)&&G(n)?t-n:uo(t)&&uo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function jl(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function $x(e){"@babel/helpers - typeof";return $x=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$x(e)}var Jee=["viewBox","children"],ete=["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"],IT=["points","pathLength"],Sb={svg:Jee,polygon:IT,polyline:IT},Rj=["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"],jm=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(A.isValidElement(t)&&(r=t.props),!Hc(r))return null;var a={};return Object.keys(r).forEach(function(i){Rj.includes(i)&&(a[i]=n||function(s){return r[i](r,s)})}),a},tte=function(t,n,r){return function(a){return t(n,r,a),null}},fo=function(t,n,r){if(!Hc(t)||$x(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var s=t[i];Rj.includes(i)&&typeof s=="function"&&(a||(a={}),a[i]=tte(s,n,r))}),a},nte=["children"],rte=["children"];function BT(e,t){if(e==null)return{};var n=ate(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ate(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Lx(e){"@babel/helpers - typeof";return Lx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lx(e)}var UT={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},qa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},FT=null,wb=null,Dj=function e(t){if(t===FT&&Array.isArray(wb))return wb;var n=[];return A.Children.forEach(t,function(r){me(r)||(Bee.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),wb=n,FT=t,n};function Zn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return qa(a)}):r=[qa(t)],Dj(e).forEach(function(a){var i=Qn(a,"type.displayName")||Qn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function In(e,t){var n=Zn(e,t);return n&&n[0]}var VT=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!G(r)||r<=0||!G(a)||a<=0)},ite=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],ste=function(t){return t&&t.type&&uo(t.type)&&ite.indexOf(t.type)>=0},R5=function(t){return t&&Lx(t)==="object"&&"clipDot"in t},ote=function(t,n,r,a){var i,s=(i=Sb==null?void 0:Sb[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!de(t)&&(a&&s.includes(n)||ete.includes(n))||r&&Rj.includes(n)},ie=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(A.isValidElement(t)&&(a=t.props),!Hc(a))return null;var i={};return Object.keys(a).forEach(function(s){var o;ote((o=a)===null||o===void 0?void 0:o[s],s,n,r)&&(i[s]=a[s])}),i},zx=function e(t,n){if(t===n)return!0;var r=A.Children.count(t);if(r!==A.Children.count(n))return!1;if(r===0)return!0;if(r===1)return HT(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],s=n[a];if(Array.isArray(i)||Array.isArray(s)){if(!e(i,s))return!1}else if(!HT(i,s))return!1}return!0},HT=function(t,n){if(me(t)&&me(n))return!0;if(!me(t)&&!me(n)){var r=t.props||{},a=r.children,i=BT(r,nte),s=n.props||{},o=s.children,l=BT(s,rte);return a&&o?jl(i,l)&&zx(a,o):!a&&!o?jl(i,l):!1}return!1},qT=function(t,n){var r=[],a={};return Dj(t).forEach(function(i,s){if(ste(i))r.push(i);else if(i){var o=qa(i.type),l=n[o]||{},c=l.handler,d=l.once;if(c&&(!d||!a[o])){var f=c(i,o,s);r.push(f),a[o]=!0}}}),r},lte=function(t){var n=t&&t.type;return n&&UT[n]?UT[n]:null},cte=function(t,n){return Dj(n).indexOf(t)},ute=["children","width","height","viewBox","className","style","title","desc"];function Ix(){return Ix=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ix.apply(this,arguments)}function fte(e,t){if(e==null)return{};var n=dte(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bx(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,s=e.style,o=e.title,l=e.desc,c=fte(e,ute),d=a||{width:n,height:r,x:0,y:0},f=be("recharts-surface",i);return _.createElement("svg",Ix({},ie(c,!0,"svg"),{className:f,width:n,height:r,style:s,viewBox:"".concat(d.x," ").concat(d.y," ").concat(d.width," ").concat(d.height)}),_.createElement("title",null,o),_.createElement("desc",null,l),t)}var hte=["children","className"];function Ux(){return Ux=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ux.apply(this,arguments)}function pte(e,t){if(e==null)return{};var n=mte(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mte(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Ae=_.forwardRef(function(e,t){var n=e.children,r=e.className,a=pte(e,hte),i=be("recharts-layer",r);return _.createElement("g",Ux({className:i},ie(a,!0),{ref:t}),n)}),Ir=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i]};function yte(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}var gte=yte,vte=gte;function bte(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:vte(e,t,n)}var xte=bte,Ste="\\ud800-\\udfff",wte="\\u0300-\\u036f",jte="\\ufe20-\\ufe2f",Ate="\\u20d0-\\u20ff",Ote=wte+jte+Ate,Ete="\\ufe0e\\ufe0f",Tte="\\u200d",Nte=RegExp("["+Tte+Ste+Ote+Ete+"]");function Cte(e){return Nte.test(e)}var D5=Cte;function _te(e){return e.split("")}var Pte=_te,k5="\\ud800-\\udfff",Mte="\\u0300-\\u036f",Rte="\\ufe20-\\ufe2f",Dte="\\u20d0-\\u20ff",kte=Mte+Rte+Dte,$te="\\ufe0e\\ufe0f",Lte="["+k5+"]",Fx="["+kte+"]",Vx="\\ud83c[\\udffb-\\udfff]",zte="(?:"+Fx+"|"+Vx+")",$5="[^"+k5+"]",L5="(?:\\ud83c[\\udde6-\\uddff]){2}",z5="[\\ud800-\\udbff][\\udc00-\\udfff]",Ite="\\u200d",I5=zte+"?",B5="["+$te+"]?",Bte="(?:"+Ite+"(?:"+[$5,L5,z5].join("|")+")"+B5+I5+")*",Ute=B5+I5+Bte,Fte="(?:"+[$5+Fx+"?",Fx,L5,z5,Lte].join("|")+")",Vte=RegExp(Vx+"(?="+Vx+")|"+Fte+Ute,"g");function Hte(e){return e.match(Vte)||[]}var qte=Hte,Kte=Pte,Gte=D5,Yte=qte;function Wte(e){return Gte(e)?Yte(e):Kte(e)}var Xte=Wte,Qte=xte,Zte=D5,Jte=Xte,ene=T5;function tne(e){return function(t){t=ene(t);var n=Zte(t)?Jte(t):void 0,r=n?n[0]:t.charAt(0),a=n?Qte(n,1).join(""):t.slice(1);return r[e]()+a}}var nne=tne,rne=nne,ane=rne("toUpperCase"),ine=ane;const Eg=Ie(ine);function Ze(e){return function(){return e}}const U5=Math.cos,Am=Math.sin,qr=Math.sqrt,Om=Math.PI,Tg=2*Om,Hx=Math.PI,qx=2*Hx,js=1e-6,sne=qx-js;function F5(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function one(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return F5;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class lne{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?F5:one(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,s){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+s}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let s=this._x1,o=this._y1,l=r-t,c=a-n,d=s-t,f=o-n,h=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>js)if(!(Math.abs(f*l-c*d)>js)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-s,m=a-o,g=l*l+c*c,v=p*p+m*m,y=Math.sqrt(g),b=Math.sqrt(h),x=i*Math.tan((Hx-Math.acos((g+h-v)/(2*y*b)))/2),w=x/b,S=x/y;Math.abs(w-1)>js&&this._append`L${t+w*d},${n+w*f}`,this._append`A${i},${i},0,0,${+(f*p>d*m)},${this._x1=t+S*l},${this._y1=n+S*c}`}}arc(t,n,r,a,i,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(a),l=r*Math.sin(a),c=t+o,d=n+l,f=1^s,h=s?a-i:i-a;this._x1===null?this._append`M${c},${d}`:(Math.abs(this._x1-c)>js||Math.abs(this._y1-d)>js)&&this._append`L${c},${d}`,r&&(h<0&&(h=h%qx+qx),h>sne?this._append`A${r},${r},0,1,${f},${t-o},${n-l}A${r},${r},0,1,${f},${this._x1=c},${this._y1=d}`:h>js&&this._append`A${r},${r},0,${+(h>=Hx)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function kj(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 lne(t)}function $j(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function V5(e){this._context=e}V5.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 Ng(e){return new V5(e)}function H5(e){return e[0]}function q5(e){return e[1]}function K5(e,t){var n=Ze(!0),r=null,a=Ng,i=null,s=kj(o);e=typeof e=="function"?e:e===void 0?H5:Ze(e),t=typeof t=="function"?t:t===void 0?q5:Ze(t);function o(l){var c,d=(l=$j(l)).length,f,h=!1,p;for(r==null&&(i=a(p=s())),c=0;c<=d;++c)!(c<d&&n(f=l[c],c,l))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(f,c,l),+t(f,c,l));if(p)return i=null,p+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:Ze(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:Ze(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:Ze(!!l),o):n},o.curve=function(l){return arguments.length?(a=l,r!=null&&(i=a(r)),o):a},o.context=function(l){return arguments.length?(l==null?r=i=null:i=a(r=l),o):r},o}function kh(e,t,n){var r=null,a=Ze(!0),i=null,s=Ng,o=null,l=kj(c);e=typeof e=="function"?e:e===void 0?H5:Ze(+e),t=typeof t=="function"?t:Ze(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?q5:Ze(+n);function c(f){var h,p,m,g=(f=$j(f)).length,v,y=!1,b,x=new Array(g),w=new Array(g);for(i==null&&(o=s(b=l())),h=0;h<=g;++h){if(!(h<g&&a(v=f[h],h,f))===y)if(y=!y)p=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),m=h-1;m>=p;--m)o.point(x[m],w[m]);o.lineEnd(),o.areaEnd()}y&&(x[h]=+e(v,h,f),w[h]=+t(v,h,f),o.point(r?+r(v,h,f):x[h],n?+n(v,h,f):w[h]))}if(b)return o=null,b+""||null}function d(){return K5().defined(a).curve(s).context(i)}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:Ze(+f),r=null,c):e},c.x0=function(f){return arguments.length?(e=typeof f=="function"?f:Ze(+f),c):e},c.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:Ze(+f),c):r},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:Ze(+f),n=null,c):t},c.y0=function(f){return arguments.length?(t=typeof f=="function"?f:Ze(+f),c):t},c.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:Ze(+f),c):n},c.lineX0=c.lineY0=function(){return d().x(e).y(t)},c.lineY1=function(){return d().x(e).y(n)},c.lineX1=function(){return d().x(r).y(t)},c.defined=function(f){return arguments.length?(a=typeof f=="function"?f:Ze(!!f),c):a},c.curve=function(f){return arguments.length?(s=f,i!=null&&(o=s(i)),c):s},c.context=function(f){return arguments.length?(f==null?i=o=null:o=s(i=f),c):i},c}class G5{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 cne(e){return new G5(e,!0)}function une(e){return new G5(e,!1)}const Lj={draw(e,t){const n=qr(t/Om);e.moveTo(n,0),e.arc(0,0,n,0,Tg)}},fne={draw(e,t){const n=qr(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()}},Y5=qr(1/3),dne=Y5*2,hne={draw(e,t){const n=qr(t/dne),r=n*Y5;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},pne={draw(e,t){const n=qr(t),r=-n/2;e.rect(r,r,n,n)}},mne=.8908130915292852,W5=Am(Om/10)/Am(7*Om/10),yne=Am(Tg/10)*W5,gne=-U5(Tg/10)*W5,vne={draw(e,t){const n=qr(t*mne),r=yne*n,a=gne*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const s=Tg*i/5,o=U5(s),l=Am(s);e.lineTo(l*n,-o*n),e.lineTo(o*r-l*a,l*r+o*a)}e.closePath()}},jb=qr(3),bne={draw(e,t){const n=-qr(t/(jb*3));e.moveTo(0,n*2),e.lineTo(-jb*n,-n),e.lineTo(jb*n,-n),e.closePath()}},ar=-.5,ir=qr(3)/2,Kx=1/qr(12),xne=(Kx/2+1)*3,Sne={draw(e,t){const n=qr(t/xne),r=n/2,a=n*Kx,i=r,s=n*Kx+n,o=-i,l=s;e.moveTo(r,a),e.lineTo(i,s),e.lineTo(o,l),e.lineTo(ar*r-ir*a,ir*r+ar*a),e.lineTo(ar*i-ir*s,ir*i+ar*s),e.lineTo(ar*o-ir*l,ir*o+ar*l),e.lineTo(ar*r+ir*a,ar*a-ir*r),e.lineTo(ar*i+ir*s,ar*s-ir*i),e.lineTo(ar*o+ir*l,ar*l-ir*o),e.closePath()}};function wne(e,t){let n=null,r=kj(a);e=typeof e=="function"?e:Ze(e||Lj),t=typeof t=="function"?t:Ze(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:Ze(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:Ze(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function Em(){}function Tm(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 X5(e){this._context=e}X5.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:Tm(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:Tm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function jne(e){return new X5(e)}function Q5(e){this._context=e}Q5.prototype={areaStart:Em,areaEnd:Em,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:Tm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Ane(e){return new Q5(e)}function Z5(e){this._context=e}Z5.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:Tm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function One(e){return new Z5(e)}function J5(e){this._context=e}J5.prototype={areaStart:Em,areaEnd:Em,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 Ene(e){return new J5(e)}function KT(e){return e<0?-1:1}function GT(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),s=(n-e._y1)/(a||r<0&&-0),o=(i*a+s*r)/(r+a);return(KT(i)+KT(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function YT(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ab(e,t,n){var r=e._x0,a=e._y0,i=e._x1,s=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,a+o*t,i-o,s-o*n,i,s)}function Nm(e){this._context=e}Nm.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:Ab(this,this._t0,YT(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,Ab(this,YT(this,n=GT(this,e,t)),n);break;default:Ab(this,this._t0,n=GT(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function e4(e){this._context=new t4(e)}(e4.prototype=Object.create(Nm.prototype)).point=function(e,t){Nm.prototype.point.call(this,t,e)};function t4(e){this._context=e}t4.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function Tne(e){return new Nm(e)}function Nne(e){return new e4(e)}function n4(e){this._context=e}n4.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=WT(e),a=WT(t),i=0,s=1;s<n;++i,++s)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[s],t[s]);(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 WT(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),s=new Array(n);for(a[0]=0,i[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,s[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,s[t]-=r*s[t-1];for(a[n-1]=s[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(s[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function Cne(e){return new n4(e)}function Cg(e,t){this._context=e,this._t=t}Cg.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 _ne(e){return new Cg(e,.5)}function Pne(e){return new Cg(e,0)}function Mne(e){return new Cg(e,1)}function nc(e,t){if((s=e.length)>1)for(var n=1,r,a,i=e[t[0]],s,o=i.length;n<s;++n)for(a=i,i=e[t[n]],r=0;r<o;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function Gx(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Rne(e,t){return e[t]}function Dne(e){const t=[];return t.key=e,t}function kne(){var e=Ze([]),t=Gx,n=nc,r=Rne;function a(i){var s=Array.from(e.apply(this,arguments),Dne),o,l=s.length,c=-1,d;for(const f of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(f,s[o].key,c,i)]).data=f;for(o=0,d=$j(t(s));o<l;++o)s[d[o]].index=o;return n(s,d),s}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:Ze(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:Ze(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?Gx:typeof i=="function"?i:Ze(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??nc,a):n},a}function $ne(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,s;a<i;++a){for(s=n=0;n<r;++n)s+=e[n][a][1]||0;if(s)for(n=0;n<r;++n)e[n][a][1]/=s}nc(e,t)}}function Lne(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var s=0,o=0;s<a;++s)o+=e[s][n][1]||0;r[n][1]+=r[n][0]=-o/2}nc(e,t)}}function zne(e,t){if(!(!((s=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,s;r<i;++r){for(var o=0,l=0,c=0;o<s;++o){for(var d=e[t[o]],f=d[r][1]||0,h=d[r-1][1]||0,p=(f-h)/2,m=0;m<o;++m){var g=e[t[m]],v=g[r][1]||0,y=g[r-1][1]||0;p+=v-y}l+=f,c+=p*f}a[r-1][1]+=a[r-1][0]=n,l&&(n-=c/l)}a[r-1][1]+=a[r-1][0]=n,nc(e,t)}}function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}var Ine=["type","size","sizeType"];function Yx(){return Yx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yx.apply(this,arguments)}function XT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function QT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XT(Object(n),!0).forEach(function(r){Bne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bne(e,t,n){return t=Une(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Une(e){var t=Fne(e,"string");return If(t)=="symbol"?t:t+""}function Fne(e,t){if(If(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(If(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vne(e,t){if(e==null)return{};var n=Hne(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hne(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var r4={symbolCircle:Lj,symbolCross:fne,symbolDiamond:hne,symbolSquare:pne,symbolStar:vne,symbolTriangle:bne,symbolWye:Sne},qne=Math.PI/180,Kne=function(t){var n="symbol".concat(Eg(t));return r4[n]||Lj},Gne=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*qne;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},Yne=function(t,n){r4["symbol".concat(Eg(t))]=n},zj=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,s=t.sizeType,o=s===void 0?"area":s,l=Vne(t,Ine),c=QT(QT({},l),{},{type:r,size:i,sizeType:o}),d=function(){var v=Kne(r),y=wne().type(v).size(Gne(i,o,r));return y()},f=c.className,h=c.cx,p=c.cy,m=ie(c,!0);return h===+h&&p===+p&&i===+i?_.createElement("path",Yx({},m,{className:be("recharts-symbols",f),transform:"translate(".concat(h,", ").concat(p,")"),d:d()})):null};zj.registerSymbol=Yne;function rc(e){"@babel/helpers - typeof";return rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rc(e)}function Wx(){return Wx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wx.apply(this,arguments)}function ZT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Wne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZT(Object(n),!0).forEach(function(r){Bf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,i4(r.key),r)}}function Zne(e,t,n){return t&&Qne(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jne(e,t,n){return t=Cm(t),ere(e,a4()?Reflect.construct(t,n||[],Cm(e).constructor):t.apply(e,n))}function ere(e,t){if(t&&(rc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tre(e)}function tre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function a4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(a4=function(){return!!e})()}function Cm(e){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cm(e)}function nre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Xx(e,t)}function Xx(e,t){return Xx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Xx(e,t)}function Bf(e,t,n){return t=i4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i4(e){var t=rre(e,"string");return rc(t)=="symbol"?t:t+""}function rre(e,t){if(rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sr=32,Ij=function(e){function t(){return Xne(this,t),Jne(this,t,arguments)}return nre(t,e),Zne(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=sr/2,s=sr/6,o=sr/3,l=r.inactive?a:r.color;if(r.type==="plainline")return _.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:sr,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return _.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(o,`
            A`).concat(s,",").concat(s,",0,1,1,").concat(2*o,",").concat(i,`
            H`).concat(sr,"M").concat(2*o,",").concat(i,`
            A`).concat(s,",").concat(s,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return _.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(sr/8,"h").concat(sr,"v").concat(sr*3/4,"h").concat(-sr,"z"),className:"recharts-legend-icon"});if(_.isValidElement(r.legendIcon)){var c=Wne({},r);return delete c.legendIcon,_.cloneElement(r.legendIcon,c)}return _.createElement(zj,{fill:l,cx:i,cy:i,size:sr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,s=a.iconSize,o=a.layout,l=a.formatter,c=a.inactiveColor,d={x:0,y:0,width:sr,height:sr},f={display:o==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,m){var g=p.formatter||l,v=be(Bf(Bf({"recharts-legend-item":!0},"legend-item-".concat(m),!0),"inactive",p.inactive));if(p.type==="none")return null;var y=de(p.value)?null:p.value;Ir(!de(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var b=p.inactive?c:p.color;return _.createElement("li",Wx({className:v,style:f,key:"legend-item-".concat(m)},fo(r.props,p,m)),_.createElement(Bx,{width:s,height:s,viewBox:d,style:h},r.renderIcon(p)),_.createElement("span",{className:"recharts-legend-item-text",style:{color:b}},g?g(y,p,m):y))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,s=r.align;if(!a||!a.length)return null;var o={padding:0,margin:0,textAlign:i==="horizontal"?s:"left"};return _.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(A.PureComponent);Bf(Ij,"displayName","Legend");Bf(Ij,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var are=hg;function ire(){this.__data__=new are,this.size=0}var sre=ire;function ore(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var lre=ore;function cre(e){return this.__data__.get(e)}var ure=cre;function fre(e){return this.__data__.has(e)}var dre=fre,hre=hg,pre=Ej,mre=Tj,yre=200;function gre(e,t){var n=this.__data__;if(n instanceof hre){var r=n.__data__;if(!pre||r.length<yre-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new mre(r)}return n.set(e,t),this.size=n.size,this}var vre=gre,bre=hg,xre=sre,Sre=lre,wre=ure,jre=dre,Are=vre;function Wc(e){var t=this.__data__=new bre(e);this.size=t.size}Wc.prototype.clear=xre;Wc.prototype.delete=Sre;Wc.prototype.get=wre;Wc.prototype.has=jre;Wc.prototype.set=Are;var s4=Wc,Ore="__lodash_hash_undefined__";function Ere(e){return this.__data__.set(e,Ore),this}var Tre=Ere;function Nre(e){return this.__data__.has(e)}var Cre=Nre,_re=Tj,Pre=Tre,Mre=Cre;function _m(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new _re;++t<n;)this.add(e[t])}_m.prototype.add=_m.prototype.push=Pre;_m.prototype.has=Mre;var o4=_m;function Rre(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var l4=Rre;function Dre(e,t){return e.has(t)}var c4=Dre,kre=o4,$re=l4,Lre=c4,zre=1,Ire=2;function Bre(e,t,n,r,a,i){var s=n&zre,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var f=-1,h=!0,p=n&Ire?new kre:void 0;for(i.set(e,t),i.set(t,e);++f<o;){var m=e[f],g=t[f];if(r)var v=s?r(g,m,f,t,e,i):r(m,g,f,e,t,i);if(v!==void 0){if(v)continue;h=!1;break}if(p){if(!$re(t,function(y,b){if(!Lre(p,b)&&(m===y||a(m,y,n,r,i)))return p.push(b)})){h=!1;break}}else if(!(m===g||a(m,g,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var u4=Bre,Ure=ma,Fre=Ure.Uint8Array,Vre=Fre;function Hre(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var qre=Hre;function Kre(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Bj=Kre,JT=Qd,eN=Vre,Gre=Oj,Yre=u4,Wre=qre,Xre=Bj,Qre=1,Zre=2,Jre="[object Boolean]",eae="[object Date]",tae="[object Error]",nae="[object Map]",rae="[object Number]",aae="[object RegExp]",iae="[object Set]",sae="[object String]",oae="[object Symbol]",lae="[object ArrayBuffer]",cae="[object DataView]",tN=JT?JT.prototype:void 0,Ob=tN?tN.valueOf:void 0;function uae(e,t,n,r,a,i,s){switch(n){case cae:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lae:return!(e.byteLength!=t.byteLength||!i(new eN(e),new eN(t)));case Jre:case eae:case rae:return Gre(+e,+t);case tae:return e.name==t.name&&e.message==t.message;case aae:case sae:return e==t+"";case nae:var o=Wre;case iae:var l=r&Qre;if(o||(o=Xre),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=Zre,s.set(e,t);var d=Yre(o(e),o(t),r,a,i,s);return s.delete(e),d;case oae:if(Ob)return Ob.call(e)==Ob.call(t)}return!1}var fae=uae;function dae(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var f4=dae,hae=f4,pae=Dn;function mae(e,t,n){var r=t(e);return pae(e)?r:hae(r,n(e))}var yae=mae;function gae(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}var vae=gae;function bae(){return[]}var xae=bae,Sae=vae,wae=xae,jae=Object.prototype,Aae=jae.propertyIsEnumerable,nN=Object.getOwnPropertySymbols,Oae=nN?function(e){return e==null?[]:(e=Object(e),Sae(nN(e),function(t){return Aae.call(e,t)}))}:wae,Eae=Oae;function Tae(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Nae=Tae,Cae=si,_ae=oi,Pae="[object Arguments]";function Mae(e){return _ae(e)&&Cae(e)==Pae}var Rae=Mae,rN=Rae,Dae=oi,d4=Object.prototype,kae=d4.hasOwnProperty,$ae=d4.propertyIsEnumerable,Lae=rN(function(){return arguments}())?rN:function(e){return Dae(e)&&kae.call(e,"callee")&&!$ae.call(e,"callee")},Uj=Lae,Pm={exports:{}};function zae(){return!1}var Iae=zae;Pm.exports;(function(e,t){var n=ma,r=Iae,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,o=s?n.Buffer:void 0,l=o?o.isBuffer:void 0,c=l||r;e.exports=c})(Pm,Pm.exports);var h4=Pm.exports,Bae=9007199254740991,Uae=/^(?:0|[1-9]\d*)$/;function Fae(e,t){var n=typeof e;return t=t??Bae,!!t&&(n=="number"||n!="symbol"&&Uae.test(e))&&e>-1&&e%1==0&&e<t}var Fj=Fae,Vae=9007199254740991;function Hae(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Vae}var Vj=Hae,qae=si,Kae=Vj,Gae=oi,Yae="[object Arguments]",Wae="[object Array]",Xae="[object Boolean]",Qae="[object Date]",Zae="[object Error]",Jae="[object Function]",eie="[object Map]",tie="[object Number]",nie="[object Object]",rie="[object RegExp]",aie="[object Set]",iie="[object String]",sie="[object WeakMap]",oie="[object ArrayBuffer]",lie="[object DataView]",cie="[object Float32Array]",uie="[object Float64Array]",fie="[object Int8Array]",die="[object Int16Array]",hie="[object Int32Array]",pie="[object Uint8Array]",mie="[object Uint8ClampedArray]",yie="[object Uint16Array]",gie="[object Uint32Array]",nt={};nt[cie]=nt[uie]=nt[fie]=nt[die]=nt[hie]=nt[pie]=nt[mie]=nt[yie]=nt[gie]=!0;nt[Yae]=nt[Wae]=nt[oie]=nt[Xae]=nt[lie]=nt[Qae]=nt[Zae]=nt[Jae]=nt[eie]=nt[tie]=nt[nie]=nt[rie]=nt[aie]=nt[iie]=nt[sie]=!1;function vie(e){return Gae(e)&&Kae(e.length)&&!!nt[qae(e)]}var bie=vie;function xie(e){return function(t){return e(t)}}var p4=xie,Mm={exports:{}};Mm.exports;(function(e,t){var n=S5,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i&&n.process,o=function(){try{var l=a&&a.require&&a.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=o})(Mm,Mm.exports);var Sie=Mm.exports,wie=bie,jie=p4,aN=Sie,iN=aN&&aN.isTypedArray,Aie=iN?jie(iN):wie,m4=Aie,Oie=Nae,Eie=Uj,Tie=Dn,Nie=h4,Cie=Fj,_ie=m4,Pie=Object.prototype,Mie=Pie.hasOwnProperty;function Rie(e,t){var n=Tie(e),r=!n&&Eie(e),a=!n&&!r&&Nie(e),i=!n&&!r&&!a&&_ie(e),s=n||r||a||i,o=s?Oie(e.length,String):[],l=o.length;for(var c in e)(t||Mie.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Cie(c,l)))&&o.push(c);return o}var Die=Rie,kie=Object.prototype;function $ie(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||kie;return e===n}var Lie=$ie;function zie(e,t){return function(n){return e(t(n))}}var y4=zie,Iie=y4,Bie=Iie(Object.keys,Object),Uie=Bie,Fie=Lie,Vie=Uie,Hie=Object.prototype,qie=Hie.hasOwnProperty;function Kie(e){if(!Fie(e))return Vie(e);var t=[];for(var n in Object(e))qie.call(e,n)&&n!="constructor"&&t.push(n);return t}var Gie=Kie,Yie=Aj,Wie=Vj;function Xie(e){return e!=null&&Wie(e.length)&&!Yie(e)}var Zd=Xie,Qie=Die,Zie=Gie,Jie=Zd;function ese(e){return Jie(e)?Qie(e):Zie(e)}var _g=ese,tse=yae,nse=Eae,rse=_g;function ase(e){return tse(e,rse,nse)}var ise=ase,sN=ise,sse=1,ose=Object.prototype,lse=ose.hasOwnProperty;function cse(e,t,n,r,a,i){var s=n&sse,o=sN(e),l=o.length,c=sN(t),d=c.length;if(l!=d&&!s)return!1;for(var f=l;f--;){var h=o[f];if(!(s?h in t:lse.call(t,h)))return!1}var p=i.get(e),m=i.get(t);if(p&&m)return p==t&&m==e;var g=!0;i.set(e,t),i.set(t,e);for(var v=s;++f<l;){h=o[f];var y=e[h],b=t[h];if(r)var x=s?r(b,y,h,t,e,i):r(y,b,h,e,t,i);if(!(x===void 0?y===b||a(y,b,n,r,i):x)){g=!1;break}v||(v=h=="constructor")}if(g&&!v){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(g=!1)}return i.delete(e),i.delete(t),g}var use=cse,fse=Oo,dse=ma,hse=fse(dse,"DataView"),pse=hse,mse=Oo,yse=ma,gse=mse(yse,"Promise"),vse=gse,bse=Oo,xse=ma,Sse=bse(xse,"Set"),g4=Sse,wse=Oo,jse=ma,Ase=wse(jse,"WeakMap"),Ose=Ase,Qx=pse,Zx=Ej,Jx=vse,e1=g4,t1=Ose,v4=si,Xc=j5,oN="[object Map]",Ese="[object Object]",lN="[object Promise]",cN="[object Set]",uN="[object WeakMap]",fN="[object DataView]",Tse=Xc(Qx),Nse=Xc(Zx),Cse=Xc(Jx),_se=Xc(e1),Pse=Xc(t1),As=v4;(Qx&&As(new Qx(new ArrayBuffer(1)))!=fN||Zx&&As(new Zx)!=oN||Jx&&As(Jx.resolve())!=lN||e1&&As(new e1)!=cN||t1&&As(new t1)!=uN)&&(As=function(e){var t=v4(e),n=t==Ese?e.constructor:void 0,r=n?Xc(n):"";if(r)switch(r){case Tse:return fN;case Nse:return oN;case Cse:return lN;case _se:return cN;case Pse:return uN}return t});var Mse=As,Eb=s4,Rse=u4,Dse=fae,kse=use,dN=Mse,hN=Dn,pN=h4,$se=m4,Lse=1,mN="[object Arguments]",yN="[object Array]",$h="[object Object]",zse=Object.prototype,gN=zse.hasOwnProperty;function Ise(e,t,n,r,a,i){var s=hN(e),o=hN(t),l=s?yN:dN(e),c=o?yN:dN(t);l=l==mN?$h:l,c=c==mN?$h:c;var d=l==$h,f=c==$h,h=l==c;if(h&&pN(e)){if(!pN(t))return!1;s=!0,d=!1}if(h&&!d)return i||(i=new Eb),s||$se(e)?Rse(e,t,n,r,a,i):Dse(e,t,l,n,r,a,i);if(!(n&Lse)){var p=d&&gN.call(e,"__wrapped__"),m=f&&gN.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,v=m?t.value():t;return i||(i=new Eb),a(g,v,n,r,i)}}return h?(i||(i=new Eb),kse(e,t,n,r,a,i)):!1}var Bse=Ise,Use=Bse,vN=oi;function b4(e,t,n,r,a){return e===t?!0:e==null||t==null||!vN(e)&&!vN(t)?e!==e&&t!==t:Use(e,t,n,r,b4,a)}var Hj=b4,Fse=s4,Vse=Hj,Hse=1,qse=2;function Kse(e,t,n,r){var a=n.length,i=a,s=!r;if(e==null)return!i;for(e=Object(e);a--;){var o=n[a];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=n[a];var l=o[0],c=e[l],d=o[1];if(s&&o[2]){if(c===void 0&&!(l in e))return!1}else{var f=new Fse;if(r)var h=r(c,d,l,e,t,f);if(!(h===void 0?Vse(d,c,Hse|qse,r,f):h))return!1}}return!0}var Gse=Kse,Yse=ss;function Wse(e){return e===e&&!Yse(e)}var x4=Wse,Xse=x4,Qse=_g;function Zse(e){for(var t=Qse(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,Xse(a)]}return t}var Jse=Zse;function eoe(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var S4=eoe,toe=Gse,noe=Jse,roe=S4;function aoe(e){var t=noe(e);return t.length==1&&t[0][2]?roe(t[0][0],t[0][1]):function(n){return n===e||toe(n,e,t)}}var ioe=aoe;function soe(e,t){return e!=null&&t in Object(e)}var ooe=soe,loe=N5,coe=Uj,uoe=Dn,foe=Fj,doe=Vj,hoe=mg;function poe(e,t,n){t=loe(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=hoe(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&doe(a)&&foe(s,a)&&(uoe(e)||coe(e)))}var moe=poe,yoe=ooe,goe=moe;function voe(e,t){return e!=null&&goe(e,t,yoe)}var boe=voe,xoe=Hj,Soe=C5,woe=boe,joe=jj,Aoe=x4,Ooe=S4,Eoe=mg,Toe=1,Noe=2;function Coe(e,t){return joe(e)&&Aoe(t)?Ooe(Eoe(e),t):function(n){var r=Soe(n,e);return r===void 0&&r===t?woe(n,e):xoe(t,r,Toe|Noe)}}var _oe=Coe;function Poe(e){return e}var Qc=Poe;function Moe(e){return function(t){return t==null?void 0:t[e]}}var Roe=Moe,Doe=_j;function koe(e){return function(t){return Doe(t,e)}}var $oe=koe,Loe=Roe,zoe=$oe,Ioe=jj,Boe=mg;function Uoe(e){return Ioe(e)?Loe(Boe(e)):zoe(e)}var Foe=Uoe,Voe=ioe,Hoe=_oe,qoe=Qc,Koe=Dn,Goe=Foe;function Yoe(e){return typeof e=="function"?e:e==null?qoe:typeof e=="object"?Koe(e)?Hoe(e[0],e[1]):Voe(e):Goe(e)}var ya=Yoe;function Woe(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var w4=Woe;function Xoe(e){return e!==e}var Qoe=Xoe;function Zoe(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var Joe=Zoe,ele=w4,tle=Qoe,nle=Joe;function rle(e,t,n){return t===t?nle(e,t,n):ele(e,tle,n)}var ale=rle,ile=ale;function sle(e,t){var n=e==null?0:e.length;return!!n&&ile(e,t,0)>-1}var ole=sle;function lle(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var cle=lle;function ule(){}var fle=ule,Tb=g4,dle=fle,hle=Bj,ple=1/0,mle=Tb&&1/hle(new Tb([,-0]))[1]==ple?function(e){return new Tb(e)}:dle,yle=mle,gle=o4,vle=ole,ble=cle,xle=c4,Sle=yle,wle=Bj,jle=200;function Ale(e,t,n){var r=-1,a=vle,i=e.length,s=!0,o=[],l=o;if(n)s=!1,a=ble;else if(i>=jle){var c=t?null:Sle(e);if(c)return wle(c);s=!1,a=xle,l=new gle}else l=t?[]:o;e:for(;++r<i;){var d=e[r],f=t?t(d):d;if(d=n||d!==0?d:0,s&&f===f){for(var h=l.length;h--;)if(l[h]===f)continue e;t&&l.push(f),o.push(d)}else a(l,f,n)||(l!==o&&l.push(f),o.push(d))}return o}var Ole=Ale,Ele=ya,Tle=Ole;function Nle(e,t){return e&&e.length?Tle(e,Ele(t)):[]}var Cle=Nle;const bN=Ie(Cle);function j4(e,t,n){return t===!0?bN(e,n):de(t)?bN(e,t):e}function ac(e){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ac(e)}var _le=["ref"];function xN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Aa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xN(Object(n),!0).forEach(function(r){Pg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ple(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,O4(r.key),r)}}function Mle(e,t,n){return t&&SN(e.prototype,t),n&&SN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rle(e,t,n){return t=Rm(t),Dle(e,A4()?Reflect.construct(t,n||[],Rm(e).constructor):t.apply(e,n))}function Dle(e,t){if(t&&(ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kle(e)}function kle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function A4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(A4=function(){return!!e})()}function Rm(e){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rm(e)}function $le(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n1(e,t)}function n1(e,t){return n1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},n1(e,t)}function Pg(e,t,n){return t=O4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function O4(e){var t=Lle(e,"string");return ac(t)=="symbol"?t:t+""}function Lle(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function zle(e,t){if(e==null)return{};var n=Ile(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ile(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ble(e){return e.value}function Ule(e,t){if(_.isValidElement(e))return _.cloneElement(e,t);if(typeof e=="function")return _.createElement(e,t);t.ref;var n=zle(t,_le);return _.createElement(Ij,n)}var wN=1,na=function(e){function t(){var n;Ple(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Rle(this,t,[].concat(a)),Pg(n,"lastBoundingBox",{width:-1,height:-1}),n}return $le(t,e),Mle(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>wN||Math.abs(a.height-this.lastBoundingBox.height)>wN)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Aa({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,s=a.align,o=a.verticalAlign,l=a.margin,c=a.chartWidth,d=a.chartHeight,f,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();f={left:((c||0)-p.width)/2}}else f=s==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(o==="middle"){var m=this.getBBoxSnapshot();h={top:((d||0)-m.height)/2}}else h=o==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return Aa(Aa({},f),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,s=a.width,o=a.height,l=a.wrapperStyle,c=a.payloadUniqBy,d=a.payload,f=Aa(Aa({position:"absolute",width:s||"auto",height:o||"auto"},this.getDefaultPosition(l)),l);return _.createElement("div",{className:"recharts-legend-wrapper",style:f,ref:function(p){r.wrapperNode=p}},Ule(i,Aa(Aa({},this.props),{},{payload:j4(d,c,Ble)})))}}],[{key:"getWithHeight",value:function(r,a){var i=Aa(Aa({},this.defaultProps),r.props),s=i.layout;return s==="vertical"&&G(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||a}:null}}])}(A.PureComponent);Pg(na,"displayName","Legend");Pg(na,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var jN=Qd,Fle=Uj,Vle=Dn,AN=jN?jN.isConcatSpreadable:void 0;function Hle(e){return Vle(e)||Fle(e)||!!(AN&&e&&e[AN])}var qle=Hle,Kle=f4,Gle=qle;function E4(e,t,n,r,a){var i=-1,s=e.length;for(n||(n=Gle),a||(a=[]);++i<s;){var o=e[i];t>0&&n(o)?t>1?E4(o,t-1,n,r,a):Kle(a,o):r||(a[a.length]=o)}return a}var T4=E4;function Yle(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++a];if(n(i[l],l,i)===!1)break}return t}}var Wle=Yle,Xle=Wle,Qle=Xle(),Zle=Qle,Jle=Zle,ece=_g;function tce(e,t){return e&&Jle(e,t,ece)}var N4=tce,nce=Zd;function rce(e,t){return function(n,r){if(n==null)return n;if(!nce(n))return e(n,r);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&r(s[i],i,s)!==!1;);return n}}var ace=rce,ice=N4,sce=ace,oce=sce(ice),qj=oce,lce=qj,cce=Zd;function uce(e,t){var n=-1,r=cce(e)?Array(e.length):[];return lce(e,function(a,i,s){r[++n]=t(a,i,s)}),r}var C4=uce;function fce(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var dce=fce,ON=Vc;function hce(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=ON(e),s=t!==void 0,o=t===null,l=t===t,c=ON(t);if(!o&&!c&&!i&&e>t||i&&s&&l&&!o&&!c||r&&s&&l||!n&&l||!a)return 1;if(!r&&!i&&!c&&e<t||c&&n&&a&&!r&&!i||o&&n&&a||!s&&a||!l)return-1}return 0}var pce=hce,mce=pce;function yce(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,s=a.length,o=n.length;++r<s;){var l=mce(a[r],i[r]);if(l){if(r>=o)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var gce=yce,Nb=Cj,vce=_j,bce=ya,xce=C4,Sce=dce,wce=p4,jce=gce,Ace=Qc,Oce=Dn;function Ece(e,t,n){t.length?t=Nb(t,function(i){return Oce(i)?function(s){return vce(s,i.length===1?i[0]:i)}:i}):t=[Ace];var r=-1;t=Nb(t,wce(bce));var a=xce(e,function(i,s,o){var l=Nb(t,function(c){return c(i)});return{criteria:l,index:++r,value:i}});return Sce(a,function(i,s){return jce(i,s,n)})}var Tce=Ece;function Nce(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var Cce=Nce,_ce=Cce,EN=Math.max;function Pce(e,t,n){return t=EN(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=EN(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=r[a];return o[t]=n(s),_ce(e,this,o)}}var Mce=Pce;function Rce(e){return function(){return e}}var Dce=Rce,kce=Oo,$ce=function(){try{var e=kce(Object,"defineProperty");return e({},"",{}),e}catch{}}(),_4=$ce,Lce=Dce,TN=_4,zce=Qc,Ice=TN?function(e,t){return TN(e,"toString",{configurable:!0,enumerable:!1,value:Lce(t),writable:!0})}:zce,Bce=Ice,Uce=800,Fce=16,Vce=Date.now;function Hce(e){var t=0,n=0;return function(){var r=Vce(),a=Fce-(r-n);if(n=r,a>0){if(++t>=Uce)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var qce=Hce,Kce=Bce,Gce=qce,Yce=Gce(Kce),Wce=Yce,Xce=Qc,Qce=Mce,Zce=Wce;function Jce(e,t){return Zce(Qce(e,t,Xce),e+"")}var eue=Jce,tue=Oj,nue=Zd,rue=Fj,aue=ss;function iue(e,t,n){if(!aue(n))return!1;var r=typeof t;return(r=="number"?nue(n)&&rue(t,n.length):r=="string"&&t in n)?tue(n[t],e):!1}var Mg=iue,sue=T4,oue=Tce,lue=eue,NN=Mg,cue=lue(function(e,t){if(e==null)return[];var n=t.length;return n>1&&NN(e,t[0],t[1])?t=[]:n>2&&NN(t[0],t[1],t[2])&&(t=[t[0]]),oue(e,sue(t,1),[])}),uue=cue;const Kj=Ie(uue);function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function r1(){return r1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r1.apply(this,arguments)}function fue(e,t){return mue(e)||pue(e,t)||hue(e,t)||due()}function due(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hue(e,t){if(e){if(typeof e=="string")return CN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CN(e,t)}}function CN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pue(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function mue(e){if(Array.isArray(e))return e}function _N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_N(Object(n),!0).forEach(function(r){yue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_N(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yue(e,t,n){return t=gue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gue(e){var t=vue(e,"string");return Uf(t)=="symbol"?t:t+""}function vue(e,t){if(Uf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bue(e){return Array.isArray(e)&&$t(e[0])&&$t(e[1])?e.join(" ~ "):e}var xue=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,s=t.itemStyle,o=s===void 0?{}:s,l=t.labelStyle,c=l===void 0?{}:l,d=t.payload,f=t.formatter,h=t.itemSorter,p=t.wrapperClassName,m=t.labelClassName,g=t.label,v=t.labelFormatter,y=t.accessibilityLayer,b=y===void 0?!1:y,x=function(){if(d&&d.length){var C={padding:0,margin:0},L=(h?Kj(d,h):d).map(function(D,k){if(D.type==="none")return null;var P=Cb({display:"block",paddingTop:4,paddingBottom:4,color:D.color||"#000"},o),$=D.formatter||f||bue,I=D.value,F=D.name,H=I,W=F;if($&&H!=null&&W!=null){var K=$(I,F,D,k,d);if(Array.isArray(K)){var te=fue(K,2);H=te[0],W=te[1]}else H=K}return _.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:P},$t(W)?_.createElement("span",{className:"recharts-tooltip-item-name"},W):null,$t(W)?_.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,_.createElement("span",{className:"recharts-tooltip-item-value"},H),_.createElement("span",{className:"recharts-tooltip-item-unit"},D.unit||""))});return _.createElement("ul",{className:"recharts-tooltip-item-list",style:C},L)}return null},w=Cb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=Cb({margin:0},c),j=!me(g),O=j?g:"",E=be("recharts-default-tooltip",p),T=be("recharts-tooltip-label",m);j&&v&&d!==void 0&&d!==null&&(O=v(g,d));var N=b?{role:"status","aria-live":"assertive"}:{};return _.createElement("div",r1({className:E,style:w},N),_.createElement("p",{className:T,style:S},_.isValidElement(O)?O:"".concat(O)),x())};function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function Lh(e,t,n){return t=Sue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sue(e){var t=wue(e,"string");return Ff(t)=="symbol"?t:t+""}function wue(e,t){if(Ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var gu="recharts-tooltip-wrapper",jue={visibility:"hidden"};function Aue(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return be(gu,Lh(Lh(Lh(Lh({},"".concat(gu,"-right"),G(n)&&t&&G(t.x)&&n>=t.x),"".concat(gu,"-left"),G(n)&&t&&G(t.x)&&n<t.x),"".concat(gu,"-bottom"),G(r)&&t&&G(t.y)&&r>=t.y),"".concat(gu,"-top"),G(r)&&t&&G(t.y)&&r<t.y))}function PN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,s=e.reverseDirection,o=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(i&&G(i[r]))return i[r];var d=n[r]-o-a,f=n[r]+a;if(t[r])return s[r]?d:f;if(s[r]){var h=d,p=l[r];return h<p?Math.max(f,l[r]):Math.max(d,l[r])}var m=f+o,g=l[r]+c;return m>g?Math.max(d,l[r]):Math.max(f,l[r])}function Oue(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Eue(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipBox,o=e.useTranslate3d,l=e.viewBox,c,d,f;return s.height>0&&s.width>0&&n?(d=PN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),f=PN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),c=Oue({translateX:d,translateY:f,useTranslate3d:o})):c=jue,{cssProperties:c,cssClasses:Aue({translateX:d,translateY:f,coordinate:n})}}function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}function MN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function RN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MN(Object(n),!0).forEach(function(r){i1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Tue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M4(r.key),r)}}function Cue(e,t,n){return t&&Nue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _ue(e,t,n){return t=Dm(t),Pue(e,P4()?Reflect.construct(t,n||[],Dm(e).constructor):t.apply(e,n))}function Pue(e,t){if(t&&(ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mue(e)}function Mue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P4=function(){return!!e})()}function Dm(e){return Dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dm(e)}function Rue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a1(e,t)}function a1(e,t){return a1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},a1(e,t)}function i1(e,t,n){return t=M4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M4(e){var t=Due(e,"string");return ic(t)=="symbol"?t:t+""}function Due(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var DN=1,kue=function(e){function t(){var n;Tue(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=_ue(this,t,[].concat(a)),i1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),i1(n,"handleKeyDown",function(s){if(s.key==="Escape"){var o,l,c,d;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(o=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&o!==void 0?o:0,y:(c=(d=n.props.coordinate)===null||d===void 0?void 0:d.y)!==null&&c!==void 0?c:0}})}}),n}return Rue(t,e),Cue(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>DN||Math.abs(r.height-this.state.lastBoundingBox.height)>DN)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,s=a.allowEscapeViewBox,o=a.animationDuration,l=a.animationEasing,c=a.children,d=a.coordinate,f=a.hasPayload,h=a.isAnimationActive,p=a.offset,m=a.position,g=a.reverseDirection,v=a.useTranslate3d,y=a.viewBox,b=a.wrapperStyle,x=Eue({allowEscapeViewBox:s,coordinate:d,offsetTopLeft:p,position:m,reverseDirection:g,tooltipBox:this.state.lastBoundingBox,useTranslate3d:v,viewBox:y}),w=x.cssClasses,S=x.cssProperties,j=RN(RN({transition:h&&i?"transform ".concat(o,"ms ").concat(l):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&f?"visible":"hidden",position:"absolute",top:0,left:0},b);return _.createElement("div",{tabIndex:-1,className:w,style:j,ref:function(E){r.wrapperNode=E}},c)}}])}(A.PureComponent),$ue=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},os={isSsr:$ue()};function sc(e){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sc(e)}function kN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kN(Object(n),!0).forEach(function(r){Gj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D4(r.key),r)}}function Iue(e,t,n){return t&&zue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bue(e,t,n){return t=km(t),Uue(e,R4()?Reflect.construct(t,n||[],km(e).constructor):t.apply(e,n))}function Uue(e,t){if(t&&(sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fue(e)}function Fue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function R4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(R4=function(){return!!e})()}function km(e){return km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},km(e)}function Vue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s1(e,t)}function s1(e,t){return s1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},s1(e,t)}function Gj(e,t,n){return t=D4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D4(e){var t=Hue(e,"string");return sc(t)=="symbol"?t:t+""}function Hue(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function que(e){return e.dataKey}function Kue(e,t){return _.isValidElement(e)?_.cloneElement(e,t):typeof e=="function"?_.createElement(e,t):_.createElement(xue,t)}var Fn=function(e){function t(){return Lue(this,t),Bue(this,t,arguments)}return Vue(t,e),Iue(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,s=a.allowEscapeViewBox,o=a.animationDuration,l=a.animationEasing,c=a.content,d=a.coordinate,f=a.filterNull,h=a.isAnimationActive,p=a.offset,m=a.payload,g=a.payloadUniqBy,v=a.position,y=a.reverseDirection,b=a.useTranslate3d,x=a.viewBox,w=a.wrapperStyle,S=m??[];f&&S.length&&(S=j4(m.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),g,que));var j=S.length>0;return _.createElement(kue,{allowEscapeViewBox:s,animationDuration:o,animationEasing:l,isAnimationActive:h,active:i,coordinate:d,hasPayload:j,offset:p,position:v,reverseDirection:y,useTranslate3d:b,viewBox:x,wrapperStyle:w},Kue(c,$N($N({},this.props),{},{payload:S})))}}])}(A.PureComponent);Gj(Fn,"displayName","Tooltip");Gj(Fn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!os.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var Gue=ma,Yue=function(){return Gue.Date.now()},Wue=Yue,Xue=/\s/;function Que(e){for(var t=e.length;t--&&Xue.test(e.charAt(t)););return t}var Zue=Que,Jue=Zue,efe=/^\s+/;function tfe(e){return e&&e.slice(0,Jue(e)+1).replace(efe,"")}var nfe=tfe,rfe=nfe,LN=ss,afe=Vc,zN=NaN,ife=/^[-+]0x[0-9a-f]+$/i,sfe=/^0b[01]+$/i,ofe=/^0o[0-7]+$/i,lfe=parseInt;function cfe(e){if(typeof e=="number")return e;if(afe(e))return zN;if(LN(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=LN(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=rfe(e);var n=sfe.test(e);return n||ofe.test(e)?lfe(e.slice(2),n?2:8):ife.test(e)?zN:+e}var k4=cfe,ufe=ss,_b=Wue,IN=k4,ffe="Expected a function",dfe=Math.max,hfe=Math.min;function pfe(e,t,n){var r,a,i,s,o,l,c=0,d=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(ffe);t=IN(t)||0,ufe(n)&&(d=!!n.leading,f="maxWait"in n,i=f?dfe(IN(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(j){var O=r,E=a;return r=a=void 0,c=j,s=e.apply(E,O),s}function m(j){return c=j,o=setTimeout(y,t),d?p(j):s}function g(j){var O=j-l,E=j-c,T=t-O;return f?hfe(T,i-E):T}function v(j){var O=j-l,E=j-c;return l===void 0||O>=t||O<0||f&&E>=i}function y(){var j=_b();if(v(j))return b(j);o=setTimeout(y,g(j))}function b(j){return o=void 0,h&&r?p(j):(r=a=void 0,s)}function x(){o!==void 0&&clearTimeout(o),c=0,r=l=a=o=void 0}function w(){return o===void 0?s:b(_b())}function S(){var j=_b(),O=v(j);if(r=arguments,a=this,l=j,O){if(o===void 0)return m(l);if(f)return clearTimeout(o),o=setTimeout(y,t),p(l)}return o===void 0&&(o=setTimeout(y,t)),s}return S.cancel=x,S.flush=w,S}var mfe=pfe,yfe=mfe,gfe=ss,vfe="Expected a function";function bfe(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(vfe);return gfe(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),yfe(e,t,{leading:r,maxWait:t,trailing:a})}var xfe=bfe;const $4=Ie(xfe);function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function BN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function zh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BN(Object(n),!0).forEach(function(r){Sfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sfe(e,t,n){return t=wfe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wfe(e){var t=jfe(e,"string");return Vf(t)=="symbol"?t:t+""}function jfe(e,t){if(Vf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Afe(e,t){return Nfe(e)||Tfe(e,t)||Efe(e,t)||Ofe()}function Ofe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Efe(e,t){if(e){if(typeof e=="string")return UN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UN(e,t)}}function UN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Tfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Nfe(e){if(Array.isArray(e))return e}var Ih=A.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,s=i===void 0?"100%":i,o=e.height,l=o===void 0?"100%":o,c=e.minWidth,d=c===void 0?0:c,f=e.minHeight,h=e.maxHeight,p=e.children,m=e.debounce,g=m===void 0?0:m,v=e.id,y=e.className,b=e.onResize,x=e.style,w=x===void 0?{}:x,S=A.useRef(null),j=A.useRef();j.current=b,A.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var O=A.useState({containerWidth:a.width,containerHeight:a.height}),E=Afe(O,2),T=E[0],N=E[1],M=A.useCallback(function(L,D){N(function(k){var P=Math.round(L),$=Math.round(D);return k.containerWidth===P&&k.containerHeight===$?k:{containerWidth:P,containerHeight:$}})},[]);A.useEffect(function(){var L=function(F){var H,W=F[0].contentRect,K=W.width,te=W.height;M(K,te),(H=j.current)===null||H===void 0||H.call(j,K,te)};g>0&&(L=$4(L,g,{trailing:!0,leading:!1}));var D=new ResizeObserver(L),k=S.current.getBoundingClientRect(),P=k.width,$=k.height;return M(P,$),D.observe(S.current),function(){D.disconnect()}},[M,g]);var C=A.useMemo(function(){var L=T.containerWidth,D=T.containerHeight;if(L<0||D<0)return null;Ir(Ps(s)||Ps(l),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,s,l),Ir(!n||n>0,"The aspect(%s) must be greater than zero.",n);var k=Ps(s)?L:s,P=Ps(l)?D:l;n&&n>0&&(k?P=k/n:P&&(k=P*n),h&&P>h&&(P=h)),Ir(k>0||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.`,k,P,s,l,d,f,n);var $=!Array.isArray(p)&&qa(p.type).endsWith("Chart");return _.Children.map(p,function(I){return _.isValidElement(I)?A.cloneElement(I,zh({width:k,height:P},$?{style:zh({height:"100%",width:"100%",maxHeight:P,maxWidth:k},I.props.style)}:{})):I})},[n,p,l,h,f,d,T,s]);return _.createElement("div",{id:v?"".concat(v):void 0,className:be("recharts-responsive-container",y),style:zh(zh({},w),{},{width:s,height:l,minWidth:d,minHeight:f,maxHeight:h}),ref:S},C)}),Rg=function(t){return null};Rg.displayName="Cell";function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function FN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function o1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FN(Object(n),!0).forEach(function(r){Cfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cfe(e,t,n){return t=_fe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _fe(e){var t=Pfe(e,"string");return Hf(t)=="symbol"?t:t+""}function Pfe(e,t){if(Hf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $o={widthCache:{},cacheCount:0},Mfe=2e3,Rfe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},VN="recharts_measurement_span";function Dfe(e){var t=o1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var sf=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||os.isSsr)return{width:0,height:0};var r=Dfe(n),a=JSON.stringify({text:t,copyStyle:r});if($o.widthCache[a])return $o.widthCache[a];try{var i=document.getElementById(VN);i||(i=document.createElement("span"),i.setAttribute("id",VN),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var s=o1(o1({},Rfe),r);Object.assign(i.style,s),i.textContent="".concat(t);var o=i.getBoundingClientRect(),l={width:o.width,height:o.height};return $o.widthCache[a]=l,++$o.cacheCount>Mfe&&($o.cacheCount=0,$o.widthCache={}),l}catch{return{width:0,height:0}}},kfe=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function $m(e,t){return Ife(e)||zfe(e,t)||Lfe(e,t)||$fe()}function $fe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lfe(e,t){if(e){if(typeof e=="string")return HN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HN(e,t)}}function HN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function zfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Ife(e){if(Array.isArray(e))return e}function Bfe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qN(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Ffe(r.key),r)}}function Ufe(e,t,n){return t&&qN(e.prototype,t),n&&qN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ffe(e){var t=Vfe(e,"string");return qf(t)=="symbol"?t:t+""}function Vfe(e,t){if(qf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,GN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Hfe=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,qfe=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,L4={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Kfe=Object.keys(L4),cl="NaN";function Gfe(e,t){return e*L4[t]}var Bh=function(){function e(t,n){Bfe(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Hfe.test(n)&&(this.num=NaN,this.unit=""),Kfe.includes(n)&&(this.num=Gfe(t,n),this.unit="px")}return Ufe(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,a=(r=qfe.exec(n))!==null&&r!==void 0?r:[],i=$m(a,3),s=i[1],o=i[2];return new e(parseFloat(s),o??"")}}])}();function z4(e){if(e.includes(cl))return cl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=KN.exec(t))!==null&&n!==void 0?n:[],a=$m(r,4),i=a[1],s=a[2],o=a[3],l=Bh.parse(i??""),c=Bh.parse(o??""),d=s==="*"?l.multiply(c):l.divide(c);if(d.isNaN())return cl;t=t.replace(KN,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,h=(f=GN.exec(t))!==null&&f!==void 0?f:[],p=$m(h,4),m=p[1],g=p[2],v=p[3],y=Bh.parse(m??""),b=Bh.parse(v??""),x=g==="+"?y.add(b):y.subtract(b);if(x.isNaN())return cl;t=t.replace(GN,x.toString())}return t}var YN=/\(([^()]*)\)/;function Yfe(e){for(var t=e;t.includes("(");){var n=YN.exec(t),r=$m(n,2),a=r[1];t=t.replace(YN,z4(a))}return t}function Wfe(e){var t=e.replace(/\s+/g,"");return t=Yfe(t),t=z4(t),t}function Xfe(e){try{return Wfe(e)}catch{return cl}}function Pb(e){var t=Xfe(e.slice(5,-1));return t===cl?"":t}var Qfe=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Zfe=["dx","dy","angle","className","breakAll"];function l1(){return l1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l1.apply(this,arguments)}function WN(e,t){if(e==null)return{};var n=Jfe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Jfe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function XN(e,t){return rde(e)||nde(e,t)||tde(e,t)||ede()}function ede(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tde(e,t){if(e){if(typeof e=="string")return QN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QN(e,t)}}function QN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function nde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function rde(e){if(Array.isArray(e))return e}var I4=/[ \f\n\r\t\v\u2028\u2029]+/,B4=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];me(n)||(r?i=n.toString().split(""):i=n.toString().split(I4));var s=i.map(function(l){return{word:l,width:sf(l,a).width}}),o=r?0:sf(" ",a).width;return{wordsWithComputedWidth:s,spaceWidth:o}}catch{return null}},ade=function(t,n,r,a,i){var s=t.maxLines,o=t.children,l=t.style,c=t.breakAll,d=G(s),f=o,h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(P,$){var I=$.word,F=$.width,H=P[P.length-1];if(H&&(a==null||i||H.width+F+r<Number(a)))H.words.push(I),H.width+=F+r;else{var W={words:[I],width:F};P.push(W)}return P},[])},p=h(n),m=function(k){return k.reduce(function(P,$){return P.width>$.width?P:$})};if(!d)return p;for(var g="…",v=function(k){var P=f.slice(0,k),$=B4({breakAll:c,style:l,children:P+g}).wordsWithComputedWidth,I=h($),F=I.length>s||m(I).width>Number(a);return[F,I]},y=0,b=f.length-1,x=0,w;y<=b&&x<=f.length-1;){var S=Math.floor((y+b)/2),j=S-1,O=v(j),E=XN(O,2),T=E[0],N=E[1],M=v(S),C=XN(M,1),L=C[0];if(!T&&!L&&(y=S+1),T&&L&&(b=S-1),!T&&L){w=N;break}x++}return w||p},ZN=function(t){var n=me(t)?[]:t.toString().split(I4);return[{words:n}]},ide=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,s=t.breakAll,o=t.maxLines;if((n||r)&&!os.isSsr){var l,c,d=B4({breakAll:s,children:a,style:i});if(d){var f=d.wordsWithComputedWidth,h=d.spaceWidth;l=f,c=h}else return ZN(a);return ade({breakAll:s,children:a,maxLines:o,style:i},l,c,n,r)}return ZN(a)},JN="#808080",ho=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,s=t.lineHeight,o=s===void 0?"1em":s,l=t.capHeight,c=l===void 0?"0.71em":l,d=t.scaleToFit,f=d===void 0?!1:d,h=t.textAnchor,p=h===void 0?"start":h,m=t.verticalAnchor,g=m===void 0?"end":m,v=t.fill,y=v===void 0?JN:v,b=WN(t,Qfe),x=A.useMemo(function(){return ide({breakAll:b.breakAll,children:b.children,maxLines:b.maxLines,scaleToFit:f,style:b.style,width:b.width})},[b.breakAll,b.children,b.maxLines,f,b.style,b.width]),w=b.dx,S=b.dy,j=b.angle,O=b.className,E=b.breakAll,T=WN(b,Zfe);if(!$t(r)||!$t(i))return null;var N=r+(G(w)?w:0),M=i+(G(S)?S:0),C;switch(g){case"start":C=Pb("calc(".concat(c,")"));break;case"middle":C=Pb("calc(".concat((x.length-1)/2," * -").concat(o," + (").concat(c," / 2))"));break;default:C=Pb("calc(".concat(x.length-1," * -").concat(o,")"));break}var L=[];if(f){var D=x[0].width,k=b.width;L.push("scale(".concat((G(k)?k/D:1)/D,")"))}return j&&L.push("rotate(".concat(j,", ").concat(N,", ").concat(M,")")),L.length&&(T.transform=L.join(" ")),_.createElement("text",l1({},ie(T,!0),{x:N,y:M,className:be("recharts-text",O),textAnchor:p,fill:y.includes("url")?JN:y}),x.map(function(P,$){var I=P.words.join(E?"":" ");return _.createElement("tspan",{x:N,dy:$===0?C:o,key:"".concat(I,"-").concat($)},I)}))};function Wi(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function sde(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function Yj(e){let t,n,r;e.length!==2?(t=Wi,n=(o,l)=>Wi(e(o),l),r=(o,l)=>e(o)-l):(t=e===Wi||e===sde?e:ode,n=e,r=e);function a(o,l,c=0,d=o.length){if(c<d){if(t(l,l)!==0)return d;do{const f=c+d>>>1;n(o[f],l)<0?c=f+1:d=f}while(c<d)}return c}function i(o,l,c=0,d=o.length){if(c<d){if(t(l,l)!==0)return d;do{const f=c+d>>>1;n(o[f],l)<=0?c=f+1:d=f}while(c<d)}return c}function s(o,l,c=0,d=o.length){const f=a(o,l,c,d-1);return f>c&&r(o[f-1],l)>-r(o[f],l)?f-1:f}return{left:a,center:s,right:i}}function ode(){return 0}function U4(e){return e===null?NaN:+e}function*lde(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const cde=Yj(Wi),Jd=cde.right;Yj(U4).center;class eC extends Map{constructor(t,n=dde){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(tC(this,t))}has(t){return super.has(tC(this,t))}set(t,n){return super.set(ude(this,t),n)}delete(t){return super.delete(fde(this,t))}}function tC({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function ude({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function fde({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function dde(e){return e!==null&&typeof e=="object"?e.valueOf():e}function hde(e=Wi){if(e===Wi)return F4;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 F4(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const pde=Math.sqrt(50),mde=Math.sqrt(10),yde=Math.sqrt(2);function Lm(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),s=i>=pde?10:i>=mde?5:i>=yde?2:1;let o,l,c;return a<0?(c=Math.pow(10,-a)/s,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,a)*s,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?Lm(e,t,n*2):[o,l,c]}function c1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,s]=r?Lm(t,e,n):Lm(e,t,n);if(!(i>=a))return[];const o=i-a+1,l=new Array(o);if(r)if(s<0)for(let c=0;c<o;++c)l[c]=(i-c)/-s;else for(let c=0;c<o;++c)l[c]=(i-c)*s;else if(s<0)for(let c=0;c<o;++c)l[c]=(a+c)/-s;else for(let c=0;c<o;++c)l[c]=(a+c)*s;return l}function u1(e,t,n){return t=+t,e=+e,n=+n,Lm(e,t,n)[2]}function f1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?u1(t,e,n):u1(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function nC(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function rC(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function V4(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?F4:hde(a);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,d=Math.log(l),f=.5*Math.exp(2*d/3),h=.5*Math.sqrt(d*f*(l-f)/l)*(c-l/2<0?-1:1),p=Math.max(n,Math.floor(t-c*f/l+h)),m=Math.min(r,Math.floor(t+(l-c)*f/l+h));V4(e,t,p,m,a)}const i=e[t];let s=n,o=r;for(vu(e,n,t),a(e[r],i)>0&&vu(e,n,r);s<o;){for(vu(e,s,o),++s,--o;a(e[s],i)<0;)++s;for(;a(e[o],i)>0;)--o}a(e[n],i)===0?vu(e,n,o):(++o,vu(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function vu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function gde(e,t,n){if(e=Float64Array.from(lde(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return rC(e);if(t>=1)return nC(e);var r,a=(r-1)*t,i=Math.floor(a),s=nC(V4(e,i).subarray(0,i+1)),o=rC(e.subarray(i+1));return s+(o-s)*(a-i)}}function vde(e,t,n=U4){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),s=+n(e[i],i,e),o=+n(e[i+1],i+1,e);return s+(o-s)*(a-i)}}function bde(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function Tr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function li(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 d1=Symbol("implicit");function Wj(){var e=new eC,t=[],n=[],r=d1;function a(i){let s=e.get(i);if(s===void 0){if(r!==d1)return r;e.set(i,s=t.push(i)-1)}return n[s%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new eC;for(const s of i)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return Wj(t,n).unknown(r)},Tr.apply(a,arguments),a}function Kf(){var e=Wj().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,s,o=!1,l=0,c=0,d=.5;delete e.unknown;function f(){var h=t().length,p=a<r,m=p?a:r,g=p?r:a;i=(g-m)/Math.max(1,h-l+c*2),o&&(i=Math.floor(i)),m+=(g-m-i*(h-l))*d,s=i*(1-l),o&&(m=Math.round(m),s=Math.round(s));var v=bde(h).map(function(y){return m+i*y});return n(p?v.reverse():v)}return e.domain=function(h){return arguments.length?(t(h),f()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,f()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,o=!0,f()},e.bandwidth=function(){return s},e.step=function(){return i},e.round=function(h){return arguments.length?(o=!!h,f()):o},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),f()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),f()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,f()):c},e.align=function(h){return arguments.length?(d=Math.max(0,Math.min(1,h)),f()):d},e.copy=function(){return Kf(t(),[r,a]).round(o).paddingInner(l).paddingOuter(c).align(d)},Tr.apply(f(),arguments)}function H4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return H4(t())},e}function of(){return H4(Kf.apply(null,arguments).paddingInner(1))}function Xj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function q4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function eh(){}var Gf=.7,zm=1/Gf,Al="\\s*([+-]?\\d+)\\s*",Yf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",xde=/^#([0-9a-f]{3,8})$/,Sde=new RegExp(`^rgb\\(${Al},${Al},${Al}\\)$`),wde=new RegExp(`^rgb\\(${la},${la},${la}\\)$`),jde=new RegExp(`^rgba\\(${Al},${Al},${Al},${Yf}\\)$`),Ade=new RegExp(`^rgba\\(${la},${la},${la},${Yf}\\)$`),Ode=new RegExp(`^hsl\\(${Yf},${la},${la}\\)$`),Ede=new RegExp(`^hsla\\(${Yf},${la},${la},${Yf}\\)$`),aC={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};Xj(eh,Wf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:iC,formatHex:iC,formatHex8:Tde,formatHsl:Nde,formatRgb:sC,toString:sC});function iC(){return this.rgb().formatHex()}function Tde(){return this.rgb().formatHex8()}function Nde(){return K4(this).formatHsl()}function sC(){return this.rgb().formatRgb()}function Wf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=xde.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?oC(t):n===3?new Cn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Uh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Uh(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=Sde.exec(e))?new Cn(t[1],t[2],t[3],1):(t=wde.exec(e))?new Cn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=jde.exec(e))?Uh(t[1],t[2],t[3],t[4]):(t=Ade.exec(e))?Uh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Ode.exec(e))?uC(t[1],t[2]/100,t[3]/100,1):(t=Ede.exec(e))?uC(t[1],t[2]/100,t[3]/100,t[4]):aC.hasOwnProperty(e)?oC(aC[e]):e==="transparent"?new Cn(NaN,NaN,NaN,0):null}function oC(e){return new Cn(e>>16&255,e>>8&255,e&255,1)}function Uh(e,t,n,r){return r<=0&&(e=t=n=NaN),new Cn(e,t,n,r)}function Cde(e){return e instanceof eh||(e=Wf(e)),e?(e=e.rgb(),new Cn(e.r,e.g,e.b,e.opacity)):new Cn}function h1(e,t,n,r){return arguments.length===1?Cde(e):new Cn(e,t,n,r??1)}function Cn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Xj(Cn,h1,q4(eh,{brighter(e){return e=e==null?zm:Math.pow(zm,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Gf:Math.pow(Gf,e),new Cn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cn(Zs(this.r),Zs(this.g),Zs(this.b),Im(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:lC,formatHex:lC,formatHex8:_de,formatRgb:cC,toString:cC}));function lC(){return`#${Ms(this.r)}${Ms(this.g)}${Ms(this.b)}`}function _de(){return`#${Ms(this.r)}${Ms(this.g)}${Ms(this.b)}${Ms((isNaN(this.opacity)?1:this.opacity)*255)}`}function cC(){const e=Im(this.opacity);return`${e===1?"rgb(":"rgba("}${Zs(this.r)}, ${Zs(this.g)}, ${Zs(this.b)}${e===1?")":`, ${e})`}`}function Im(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ms(e){return e=Zs(e),(e<16?"0":"")+e.toString(16)}function uC(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new $r(e,t,n,r)}function K4(e){if(e instanceof $r)return new $r(e.h,e.s,e.l,e.opacity);if(e instanceof eh||(e=Wf(e)),!e)return new $r;if(e instanceof $r)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,o=i-a,l=(i+a)/2;return o?(t===i?s=(n-r)/o+(n<r)*6:n===i?s=(r-t)/o+2:s=(t-n)/o+4,o/=l<.5?i+a:2-i-a,s*=60):o=l>0&&l<1?0:s,new $r(s,o,l,e.opacity)}function Pde(e,t,n,r){return arguments.length===1?K4(e):new $r(e,t,n,r??1)}function $r(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Xj($r,Pde,q4(eh,{brighter(e){return e=e==null?zm:Math.pow(zm,e),new $r(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Gf:Math.pow(Gf,e),new $r(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new Cn(Mb(e>=240?e-240:e+120,a,r),Mb(e,a,r),Mb(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new $r(fC(this.h),Fh(this.s),Fh(this.l),Im(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=Im(this.opacity);return`${e===1?"hsl(":"hsla("}${fC(this.h)}, ${Fh(this.s)*100}%, ${Fh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function fC(e){return e=(e||0)%360,e<0?e+360:e}function Fh(e){return Math.max(0,Math.min(1,e||0))}function Mb(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 Qj=e=>()=>e;function Mde(e,t){return function(n){return e+n*t}}function Rde(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 Dde(e){return(e=+e)==1?G4:function(t,n){return n-t?Rde(t,n,e):Qj(isNaN(t)?n:t)}}function G4(e,t){var n=t-e;return n?Mde(e,n):Qj(isNaN(e)?t:e)}const dC=function e(t){var n=Dde(t);function r(a,i){var s=n((a=h1(a)).r,(i=h1(i)).r),o=n(a.g,i.g),l=n(a.b,i.b),c=G4(a.opacity,i.opacity);return function(d){return a.r=s(d),a.g=o(d),a.b=l(d),a.opacity=c(d),a+""}}return r.gamma=e,r}(1);function kde(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function $de(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Lde(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),s;for(s=0;s<r;++s)a[s]=Zc(e[s],t[s]);for(;s<n;++s)i[s]=t[s];return function(o){for(s=0;s<r;++s)i[s]=a[s](o);return i}}function zde(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bm(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Ide(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Zc(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var p1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Rb=new RegExp(p1.source,"g");function Bde(e){return function(){return e}}function Ude(e){return function(t){return e(t)+""}}function Fde(e,t){var n=p1.lastIndex=Rb.lastIndex=0,r,a,i,s=-1,o=[],l=[];for(e=e+"",t=t+"";(r=p1.exec(e))&&(a=Rb.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),o[s]?o[s]+=i:o[++s]=i),(r=r[0])===(a=a[0])?o[s]?o[s]+=a:o[++s]=a:(o[++s]=null,l.push({i:s,x:Bm(r,a)})),n=Rb.lastIndex;return n<t.length&&(i=t.slice(n),o[s]?o[s]+=i:o[++s]=i),o.length<2?l[0]?Ude(l[0].x):Bde(t):(t=l.length,function(c){for(var d=0,f;d<t;++d)o[(f=l[d]).i]=f.x(c);return o.join("")})}function Zc(e,t){var n=typeof t,r;return t==null||n==="boolean"?Qj(t):(n==="number"?Bm:n==="string"?(r=Wf(t))?(t=r,dC):Fde:t instanceof Wf?dC:t instanceof Date?zde:$de(t)?kde:Array.isArray(t)?Lde:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Ide:Bm)(e,t)}function Zj(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Vde(e,t){t===void 0&&(t=e,e=Zc);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(s){var o=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return i[o](s-o)}}function Hde(e){return function(){return e}}function Um(e){return+e}var hC=[0,1];function gn(e){return e}function m1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Hde(isNaN(t)?NaN:.5)}function qde(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Kde(e,t,n){var r=e[0],a=e[1],i=t[0],s=t[1];return a<r?(r=m1(a,r),i=n(s,i)):(r=m1(r,a),i=n(i,s)),function(o){return i(r(o))}}function Gde(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)a[s]=m1(e[s],e[s+1]),i[s]=n(t[s],t[s+1]);return function(o){var l=Jd(e,o,1,r)-1;return i[l](a[l](o))}}function th(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Dg(){var e=hC,t=hC,n=Zc,r,a,i,s=gn,o,l,c;function d(){var h=Math.min(e.length,t.length);return s!==gn&&(s=qde(e[0],e[h-1])),o=h>2?Gde:Kde,l=c=null,f}function f(h){return h==null||isNaN(h=+h)?i:(l||(l=o(e.map(r),t,n)))(r(s(h)))}return f.invert=function(h){return s(a((c||(c=o(t,e.map(r),Bm)))(h)))},f.domain=function(h){return arguments.length?(e=Array.from(h,Um),d()):e.slice()},f.range=function(h){return arguments.length?(t=Array.from(h),d()):t.slice()},f.rangeRound=function(h){return t=Array.from(h),n=Zj,d()},f.clamp=function(h){return arguments.length?(s=h?!0:gn,d()):s!==gn},f.interpolate=function(h){return arguments.length?(n=h,d()):n},f.unknown=function(h){return arguments.length?(i=h,f):i},function(h,p){return r=h,a=p,d()}}function Jj(){return Dg()(gn,gn)}function Yde(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Fm(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 oc(e){return e=Fm(Math.abs(e)),e?e[1]:NaN}function Wde(e,t){return function(n,r){for(var a=n.length,i=[],s=0,o=e[0],l=0;a>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),i.push(n.substring(a-=o,a+o)),!((l+=o+1)>r));)o=e[s=(s+1)%e.length];return i.reverse().join(t)}}function Xde(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Qde=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Xf(e){if(!(t=Qde.exec(e)))throw new Error("invalid format: "+e);var t;return new eA({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]})}Xf.prototype=eA.prototype;function eA(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+""}eA.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 Zde(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var Vm;function Jde(e,t){var n=Fm(e,t);if(!n)return Vm=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(Vm=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Fm(e,Math.max(0,t+i-1))[0]}function pC(e,t){var n=Fm(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const mC={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Yde,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)=>pC(e*100,t),r:pC,s:Jde,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yC(e){return e}var gC=Array.prototype.map,vC=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ehe(e){var t=e.grouping===void 0||e.thousands===void 0?yC:Wde(gC.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?yC:Xde(gC.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(f,h){f=Xf(f);var p=f.fill,m=f.align,g=f.sign,v=f.symbol,y=f.zero,b=f.width,x=f.comma,w=f.precision,S=f.trim,j=f.type;j==="n"?(x=!0,j="g"):mC[j]||(w===void 0&&(w=12),S=!0,j="g"),(y||p==="0"&&m==="=")&&(y=!0,p="0",m="=");var O=(h&&h.prefix!==void 0?h.prefix:"")+(v==="$"?n:v==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():""),E=(v==="$"?r:/[%p]/.test(j)?s:"")+(h&&h.suffix!==void 0?h.suffix:""),T=mC[j],N=/[defgprs%]/.test(j);w=w===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(C){var L=O,D=E,k,P,$;if(j==="c")D=T(C)+D,C="";else{C=+C;var I=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),w),S&&(C=Zde(C)),I&&+C==0&&g!=="+"&&(I=!1),L=(I?g==="("?g:o:g==="-"||g==="("?"":g)+L,D=(j==="s"&&!isNaN(C)&&Vm!==void 0?vC[8+Vm/3]:"")+D+(I&&g==="("?")":""),N){for(k=-1,P=C.length;++k<P;)if($=C.charCodeAt(k),48>$||$>57){D=($===46?a+C.slice(k+1):C.slice(k))+D,C=C.slice(0,k);break}}}x&&!y&&(C=t(C,1/0));var F=L.length+C.length+D.length,H=F<b?new Array(b-F+1).join(p):"";switch(x&&y&&(C=t(H+C,H.length?b-D.length:1/0),H=""),m){case"<":C=L+C+D+H;break;case"=":C=L+H+C+D;break;case"^":C=H.slice(0,F=H.length>>1)+L+C+D+H.slice(F);break;default:C=H+L+C+D;break}return i(C)}return M.toString=function(){return f+""},M}function d(f,h){var p=Math.max(-8,Math.min(8,Math.floor(oc(h)/3)))*3,m=Math.pow(10,-p),g=c((f=Xf(f),f.type="f",f),{suffix:vC[8+p/3]});return function(v){return g(m*v)}}return{format:c,formatPrefix:d}}var Vh,tA,Y4;the({thousands:",",grouping:[3],currency:["$",""]});function the(e){return Vh=ehe(e),tA=Vh.format,Y4=Vh.formatPrefix,Vh}function nhe(e){return Math.max(0,-oc(Math.abs(e)))}function rhe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(oc(t)/3)))*3-oc(Math.abs(e)))}function ahe(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,oc(t)-oc(e))+1}function W4(e,t,n,r){var a=f1(e,t,n),i;switch(r=Xf(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=rhe(a,s))&&(r.precision=i),Y4(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=ahe(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=nhe(a))&&(r.precision=i-(r.type==="%")*2);break}}return tA(r)}function ls(e){var t=e.domain;return e.ticks=function(n){var r=t();return c1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return W4(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,s=r[a],o=r[i],l,c,d=10;for(o<s&&(c=s,s=o,o=c,c=a,a=i,i=c);d-- >0;){if(c=u1(s,o,n),c===l)return r[a]=s,r[i]=o,t(r);if(c>0)s=Math.floor(s/c)*c,o=Math.ceil(o/c)*c;else if(c<0)s=Math.ceil(s*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function Hm(){var e=Jj();return e.copy=function(){return th(e,Hm())},Tr.apply(e,arguments),ls(e)}function X4(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,Um),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return X4(e).unknown(t)},e=arguments.length?Array.from(e,Um):[0,1],ls(n)}function Q4(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],s;return i<a&&(s=n,n=r,r=s,s=a,a=i,i=s),e[n]=t.floor(a),e[r]=t.ceil(i),e}function bC(e){return Math.log(e)}function xC(e){return Math.exp(e)}function ihe(e){return-Math.log(-e)}function she(e){return-Math.exp(-e)}function ohe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function lhe(e){return e===10?ohe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function che(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 SC(e){return(t,n)=>-e(-t,n)}function nA(e){const t=e(bC,xC),n=t.domain;let r=10,a,i;function s(){return a=che(r),i=lhe(r),n()[0]<0?(a=SC(a),i=SC(i),e(ihe,she)):e(bC,xC),t}return t.base=function(o){return arguments.length?(r=+o,s()):r},t.domain=function(o){return arguments.length?(n(o),s()):n()},t.ticks=o=>{const l=n();let c=l[0],d=l[l.length-1];const f=d<c;f&&([c,d]=[d,c]);let h=a(c),p=a(d),m,g;const v=o==null?10:+o;let y=[];if(!(r%1)&&p-h<v){if(h=Math.floor(h),p=Math.ceil(p),c>0){for(;h<=p;++h)for(m=1;m<r;++m)if(g=h<0?m/i(-h):m*i(h),!(g<c)){if(g>d)break;y.push(g)}}else for(;h<=p;++h)for(m=r-1;m>=1;--m)if(g=h>0?m/i(-h):m*i(h),!(g<c)){if(g>d)break;y.push(g)}y.length*2<v&&(y=c1(c,d,v))}else y=c1(h,p,Math.min(p-h,v)).map(i);return f?y.reverse():y},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Xf(l)).precision==null&&(l.trim=!0),l=tA(l)),o===1/0)return l;const c=Math.max(1,r*o/t.ticks().length);return d=>{let f=d/i(Math.round(a(d)));return f*r<r-.5&&(f*=r),f<=c?l(d):""}},t.nice=()=>n(Q4(n(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function Z4(){const e=nA(Dg()).domain([1,10]);return e.copy=()=>th(e,Z4()).base(e.base()),Tr.apply(e,arguments),e}function wC(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function jC(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function rA(e){var t=1,n=e(wC(t),jC(t));return n.constant=function(r){return arguments.length?e(wC(t=+r),jC(t)):t},ls(n)}function J4(){var e=rA(Dg());return e.copy=function(){return th(e,J4()).constant(e.constant())},Tr.apply(e,arguments)}function AC(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function uhe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function fhe(e){return e<0?-e*e:e*e}function aA(e){var t=e(gn,gn),n=1;function r(){return n===1?e(gn,gn):n===.5?e(uhe,fhe):e(AC(n),AC(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},ls(t)}function iA(){var e=aA(Dg());return e.copy=function(){return th(e,iA()).exponent(e.exponent())},Tr.apply(e,arguments),e}function dhe(){return iA.apply(null,arguments).exponent(.5)}function OC(e){return Math.sign(e)*e*e}function hhe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function eL(){var e=Jj(),t=[0,1],n=!1,r;function a(i){var s=hhe(e(i));return isNaN(s)?r:n?Math.round(s):s}return a.invert=function(i){return e.invert(OC(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,Um)).map(OC)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return eL(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},Tr.apply(a,arguments),ls(a)}function tL(){var e=[],t=[],n=[],r;function a(){var s=0,o=Math.max(1,t.length);for(n=new Array(o-1);++s<o;)n[s-1]=vde(e,s/o);return i}function i(s){return s==null||isNaN(s=+s)?r:t[Jd(n,s)]}return i.invertExtent=function(s){var o=t.indexOf(s);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let o of s)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Wi),a()},i.range=function(s){return arguments.length?(t=Array.from(s),a()):t.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return tL().domain(e).range(t).unknown(r)},Tr.apply(i,arguments)}function nL(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function s(l){return l!=null&&l<=l?a[Jd(r,l,0,n)]:i}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return s}return s.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},s.range=function(l){return arguments.length?(n=(a=Array.from(l)).length-1,o()):a.slice()},s.invertExtent=function(l){var c=a.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},s.unknown=function(l){return arguments.length&&(i=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return nL().domain([e,t]).range(a).unknown(i)},Tr.apply(ls(s),arguments)}function rL(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Jd(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var s=t.indexOf(i);return[e[s-1],e[s]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return rL().domain(e).range(t).unknown(n)},Tr.apply(a,arguments)}const Db=new Date,kb=new Date;function zt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const s=a(i),o=a.ceil(i);return i-s<o-i?s:o},a.offset=(i,s)=>(t(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,o)=>{const l=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i<s)||!(o>0))return l;let c;do l.push(c=new Date(+i)),t(i,o),e(i);while(c<i&&i<s);return l},a.filter=i=>zt(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;t(s,-1),!i(s););else for(;--o>=0;)for(;t(s,1),!i(s););}),n&&(a.count=(i,s)=>(Db.setTime(+i),kb.setTime(+s),e(Db),e(kb),Math.floor(n(Db,kb))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const qm=zt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);qm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?zt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):qm);qm.range;const ka=1e3,gr=ka*60,$a=gr*60,ei=$a*24,sA=ei*7,EC=ei*30,$b=ei*365,Rs=zt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*ka)},(e,t)=>(t-e)/ka,e=>e.getUTCSeconds());Rs.range;const oA=zt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ka)},(e,t)=>{e.setTime(+e+t*gr)},(e,t)=>(t-e)/gr,e=>e.getMinutes());oA.range;const lA=zt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*gr)},(e,t)=>(t-e)/gr,e=>e.getUTCMinutes());lA.range;const cA=zt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*ka-e.getMinutes()*gr)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getHours());cA.range;const uA=zt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getUTCHours());uA.range;const nh=zt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*gr)/ei,e=>e.getDate()-1);nh.range;const kg=zt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>e.getUTCDate()-1);kg.range;const aL=zt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ei,e=>Math.floor(e/ei));aL.range;function To(e){return zt(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())*gr)/sA)}const $g=To(0),Km=To(1),phe=To(2),mhe=To(3),lc=To(4),yhe=To(5),ghe=To(6);$g.range;Km.range;phe.range;mhe.range;lc.range;yhe.range;ghe.range;function No(e){return zt(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)/sA)}const Lg=No(0),Gm=No(1),vhe=No(2),bhe=No(3),cc=No(4),xhe=No(5),She=No(6);Lg.range;Gm.range;vhe.range;bhe.range;cc.range;xhe.range;She.range;const fA=zt(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());fA.range;const dA=zt(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());dA.range;const ti=zt(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());ti.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:zt(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)});ti.range;const ni=zt(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());ni.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:zt(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)});ni.range;function iL(e,t,n,r,a,i){const s=[[Rs,1,ka],[Rs,5,5*ka],[Rs,15,15*ka],[Rs,30,30*ka],[i,1,gr],[i,5,5*gr],[i,15,15*gr],[i,30,30*gr],[a,1,$a],[a,3,3*$a],[a,6,6*$a],[a,12,12*$a],[r,1,ei],[r,2,2*ei],[n,1,sA],[t,1,EC],[t,3,3*EC],[e,1,$b]];function o(c,d,f){const h=d<c;h&&([c,d]=[d,c]);const p=f&&typeof f.range=="function"?f:l(c,d,f),m=p?p.range(c,+d+1):[];return h?m.reverse():m}function l(c,d,f){const h=Math.abs(d-c)/f,p=Yj(([,,v])=>v).right(s,h);if(p===s.length)return e.every(f1(c/$b,d/$b,f));if(p===0)return qm.every(Math.max(f1(c,d,f),1));const[m,g]=s[h/s[p-1][2]<s[p][2]/h?p-1:p];return m.every(g)}return[o,l]}const[whe,jhe]=iL(ni,dA,Lg,aL,uA,lA),[Ahe,Ohe]=iL(ti,fA,$g,nh,cA,oA);function Lb(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 zb(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 bu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Ehe(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=xu(a),d=Su(a),f=xu(i),h=Su(i),p=xu(s),m=Su(s),g=xu(o),v=Su(o),y=xu(l),b=Su(l),x={a:$,A:I,b:F,B:H,c:null,d:MC,e:MC,f:Whe,g:ipe,G:ope,H:Khe,I:Ghe,j:Yhe,L:sL,m:Xhe,M:Qhe,p:W,q:K,Q:kC,s:$C,S:Zhe,u:Jhe,U:epe,V:tpe,w:npe,W:rpe,x:null,X:null,y:ape,Y:spe,Z:lpe,"%":DC},w={a:te,A:Z,b:ye,B:J,c:null,d:RC,e:RC,f:dpe,g:wpe,G:Ape,H:cpe,I:upe,j:fpe,L:lL,m:hpe,M:ppe,p:ot,q:He,Q:kC,s:$C,S:mpe,u:ype,U:gpe,V:vpe,w:bpe,W:xpe,x:null,X:null,y:Spe,Y:jpe,Z:Ope,"%":DC},S={a:N,A:M,b:C,B:L,c:D,d:_C,e:_C,f:Fhe,g:CC,G:NC,H:PC,I:PC,j:zhe,L:Uhe,m:Lhe,M:Ihe,p:T,q:$he,Q:Hhe,s:qhe,S:Bhe,u:Phe,U:Mhe,V:Rhe,w:_he,W:Dhe,x:k,X:P,y:CC,Y:NC,Z:khe,"%":Vhe};x.x=j(n,x),x.X=j(r,x),x.c=j(t,x),w.x=j(n,w),w.X=j(r,w),w.c=j(t,w);function j(Y,oe){return function(X){var V=[],_e=-1,ge=0,Xe=Y.length,lt,dt,kn;for(X instanceof Date||(X=new Date(+X));++_e<Xe;)Y.charCodeAt(_e)===37&&(V.push(Y.slice(ge,_e)),(dt=TC[lt=Y.charAt(++_e)])!=null?lt=Y.charAt(++_e):dt=lt==="e"?" ":"0",(kn=oe[lt])&&(lt=kn(X,dt)),V.push(lt),ge=_e+1);return V.push(Y.slice(ge,_e)),V.join("")}}function O(Y,oe){return function(X){var V=bu(1900,void 0,1),_e=E(V,Y,X+="",0),ge,Xe;if(_e!=X.length)return null;if("Q"in V)return new Date(V.Q);if("s"in V)return new Date(V.s*1e3+("L"in V?V.L:0));if(oe&&!("Z"in V)&&(V.Z=0),"p"in V&&(V.H=V.H%12+V.p*12),V.m===void 0&&(V.m="q"in V?V.q:0),"V"in V){if(V.V<1||V.V>53)return null;"w"in V||(V.w=1),"Z"in V?(ge=zb(bu(V.y,0,1)),Xe=ge.getUTCDay(),ge=Xe>4||Xe===0?Gm.ceil(ge):Gm(ge),ge=kg.offset(ge,(V.V-1)*7),V.y=ge.getUTCFullYear(),V.m=ge.getUTCMonth(),V.d=ge.getUTCDate()+(V.w+6)%7):(ge=Lb(bu(V.y,0,1)),Xe=ge.getDay(),ge=Xe>4||Xe===0?Km.ceil(ge):Km(ge),ge=nh.offset(ge,(V.V-1)*7),V.y=ge.getFullYear(),V.m=ge.getMonth(),V.d=ge.getDate()+(V.w+6)%7)}else("W"in V||"U"in V)&&("w"in V||(V.w="u"in V?V.u%7:"W"in V?1:0),Xe="Z"in V?zb(bu(V.y,0,1)).getUTCDay():Lb(bu(V.y,0,1)).getDay(),V.m=0,V.d="W"in V?(V.w+6)%7+V.W*7-(Xe+5)%7:V.w+V.U*7-(Xe+6)%7);return"Z"in V?(V.H+=V.Z/100|0,V.M+=V.Z%100,zb(V)):Lb(V)}}function E(Y,oe,X,V){for(var _e=0,ge=oe.length,Xe=X.length,lt,dt;_e<ge;){if(V>=Xe)return-1;if(lt=oe.charCodeAt(_e++),lt===37){if(lt=oe.charAt(_e++),dt=S[lt in TC?oe.charAt(_e++):lt],!dt||(V=dt(Y,X,V))<0)return-1}else if(lt!=X.charCodeAt(V++))return-1}return V}function T(Y,oe,X){var V=c.exec(oe.slice(X));return V?(Y.p=d.get(V[0].toLowerCase()),X+V[0].length):-1}function N(Y,oe,X){var V=p.exec(oe.slice(X));return V?(Y.w=m.get(V[0].toLowerCase()),X+V[0].length):-1}function M(Y,oe,X){var V=f.exec(oe.slice(X));return V?(Y.w=h.get(V[0].toLowerCase()),X+V[0].length):-1}function C(Y,oe,X){var V=y.exec(oe.slice(X));return V?(Y.m=b.get(V[0].toLowerCase()),X+V[0].length):-1}function L(Y,oe,X){var V=g.exec(oe.slice(X));return V?(Y.m=v.get(V[0].toLowerCase()),X+V[0].length):-1}function D(Y,oe,X){return E(Y,t,oe,X)}function k(Y,oe,X){return E(Y,n,oe,X)}function P(Y,oe,X){return E(Y,r,oe,X)}function $(Y){return s[Y.getDay()]}function I(Y){return i[Y.getDay()]}function F(Y){return l[Y.getMonth()]}function H(Y){return o[Y.getMonth()]}function W(Y){return a[+(Y.getHours()>=12)]}function K(Y){return 1+~~(Y.getMonth()/3)}function te(Y){return s[Y.getUTCDay()]}function Z(Y){return i[Y.getUTCDay()]}function ye(Y){return l[Y.getUTCMonth()]}function J(Y){return o[Y.getUTCMonth()]}function ot(Y){return a[+(Y.getUTCHours()>=12)]}function He(Y){return 1+~~(Y.getUTCMonth()/3)}return{format:function(Y){var oe=j(Y+="",x);return oe.toString=function(){return Y},oe},parse:function(Y){var oe=O(Y+="",!1);return oe.toString=function(){return Y},oe},utcFormat:function(Y){var oe=j(Y+="",w);return oe.toString=function(){return Y},oe},utcParse:function(Y){var oe=O(Y+="",!0);return oe.toString=function(){return Y},oe}}}var TC={"-":"",_:" ",0:"0"},Yt=/^\s*\d+/,The=/^%/,Nhe=/[\\^$*+?|[\]().{}]/g;function Pe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function Che(e){return e.replace(Nhe,"\\$&")}function xu(e){return new RegExp("^(?:"+e.map(Che).join("|")+")","i")}function Su(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function _he(e,t,n){var r=Yt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Phe(e,t,n){var r=Yt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Mhe(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Rhe(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Dhe(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function NC(e,t,n){var r=Yt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function CC(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function khe(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 $he(e,t,n){var r=Yt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Lhe(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function _C(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function zhe(e,t,n){var r=Yt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function PC(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ihe(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Bhe(e,t,n){var r=Yt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Uhe(e,t,n){var r=Yt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Fhe(e,t,n){var r=Yt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Vhe(e,t,n){var r=The.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Hhe(e,t,n){var r=Yt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function qhe(e,t,n){var r=Yt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function MC(e,t){return Pe(e.getDate(),t,2)}function Khe(e,t){return Pe(e.getHours(),t,2)}function Ghe(e,t){return Pe(e.getHours()%12||12,t,2)}function Yhe(e,t){return Pe(1+nh.count(ti(e),e),t,3)}function sL(e,t){return Pe(e.getMilliseconds(),t,3)}function Whe(e,t){return sL(e,t)+"000"}function Xhe(e,t){return Pe(e.getMonth()+1,t,2)}function Qhe(e,t){return Pe(e.getMinutes(),t,2)}function Zhe(e,t){return Pe(e.getSeconds(),t,2)}function Jhe(e){var t=e.getDay();return t===0?7:t}function epe(e,t){return Pe($g.count(ti(e)-1,e),t,2)}function oL(e){var t=e.getDay();return t>=4||t===0?lc(e):lc.ceil(e)}function tpe(e,t){return e=oL(e),Pe(lc.count(ti(e),e)+(ti(e).getDay()===4),t,2)}function npe(e){return e.getDay()}function rpe(e,t){return Pe(Km.count(ti(e)-1,e),t,2)}function ape(e,t){return Pe(e.getFullYear()%100,t,2)}function ipe(e,t){return e=oL(e),Pe(e.getFullYear()%100,t,2)}function spe(e,t){return Pe(e.getFullYear()%1e4,t,4)}function ope(e,t){var n=e.getDay();return e=n>=4||n===0?lc(e):lc.ceil(e),Pe(e.getFullYear()%1e4,t,4)}function lpe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Pe(t/60|0,"0",2)+Pe(t%60,"0",2)}function RC(e,t){return Pe(e.getUTCDate(),t,2)}function cpe(e,t){return Pe(e.getUTCHours(),t,2)}function upe(e,t){return Pe(e.getUTCHours()%12||12,t,2)}function fpe(e,t){return Pe(1+kg.count(ni(e),e),t,3)}function lL(e,t){return Pe(e.getUTCMilliseconds(),t,3)}function dpe(e,t){return lL(e,t)+"000"}function hpe(e,t){return Pe(e.getUTCMonth()+1,t,2)}function ppe(e,t){return Pe(e.getUTCMinutes(),t,2)}function mpe(e,t){return Pe(e.getUTCSeconds(),t,2)}function ype(e){var t=e.getUTCDay();return t===0?7:t}function gpe(e,t){return Pe(Lg.count(ni(e)-1,e),t,2)}function cL(e){var t=e.getUTCDay();return t>=4||t===0?cc(e):cc.ceil(e)}function vpe(e,t){return e=cL(e),Pe(cc.count(ni(e),e)+(ni(e).getUTCDay()===4),t,2)}function bpe(e){return e.getUTCDay()}function xpe(e,t){return Pe(Gm.count(ni(e)-1,e),t,2)}function Spe(e,t){return Pe(e.getUTCFullYear()%100,t,2)}function wpe(e,t){return e=cL(e),Pe(e.getUTCFullYear()%100,t,2)}function jpe(e,t){return Pe(e.getUTCFullYear()%1e4,t,4)}function Ape(e,t){var n=e.getUTCDay();return e=n>=4||n===0?cc(e):cc.ceil(e),Pe(e.getUTCFullYear()%1e4,t,4)}function Ope(){return"+0000"}function DC(){return"%"}function kC(e){return+e}function $C(e){return Math.floor(+e/1e3)}var Lo,uL,fL;Epe({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 Epe(e){return Lo=Ehe(e),uL=Lo.format,Lo.parse,fL=Lo.utcFormat,Lo.utcParse,Lo}function Tpe(e){return new Date(e)}function Npe(e){return e instanceof Date?+e:+new Date(+e)}function hA(e,t,n,r,a,i,s,o,l,c){var d=Jj(),f=d.invert,h=d.domain,p=c(".%L"),m=c(":%S"),g=c("%I:%M"),v=c("%I %p"),y=c("%a %d"),b=c("%b %d"),x=c("%B"),w=c("%Y");function S(j){return(l(j)<j?p:o(j)<j?m:s(j)<j?g:i(j)<j?v:r(j)<j?a(j)<j?y:b:n(j)<j?x:w)(j)}return d.invert=function(j){return new Date(f(j))},d.domain=function(j){return arguments.length?h(Array.from(j,Npe)):h().map(Tpe)},d.ticks=function(j){var O=h();return e(O[0],O[O.length-1],j??10)},d.tickFormat=function(j,O){return O==null?S:c(O)},d.nice=function(j){var O=h();return(!j||typeof j.range!="function")&&(j=t(O[0],O[O.length-1],j??10)),j?h(Q4(O,j)):d},d.copy=function(){return th(d,hA(e,t,n,r,a,i,s,o,l,c))},d}function Cpe(){return Tr.apply(hA(Ahe,Ohe,ti,fA,$g,nh,cA,oA,Rs,uL).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function _pe(){return Tr.apply(hA(whe,jhe,ni,dA,Lg,kg,uA,lA,Rs,fL).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function zg(){var e=0,t=1,n,r,a,i,s=gn,o=!1,l;function c(f){return f==null||isNaN(f=+f)?l:s(a===0?.5:(f=(i(f)-n)*a,o?Math.max(0,Math.min(1,f)):f))}c.domain=function(f){return arguments.length?([e,t]=f,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(f){return arguments.length?(o=!!f,c):o},c.interpolator=function(f){return arguments.length?(s=f,c):s};function d(f){return function(h){var p,m;return arguments.length?([p,m]=h,s=f(p,m),c):[s(0),s(1)]}}return c.range=d(Zc),c.rangeRound=d(Zj),c.unknown=function(f){return arguments.length?(l=f,c):l},function(f){return i=f,n=f(e),r=f(t),a=n===r?0:1/(r-n),c}}function cs(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function dL(){var e=ls(zg()(gn));return e.copy=function(){return cs(e,dL())},li.apply(e,arguments)}function hL(){var e=nA(zg()).domain([1,10]);return e.copy=function(){return cs(e,hL()).base(e.base())},li.apply(e,arguments)}function pL(){var e=rA(zg());return e.copy=function(){return cs(e,pL()).constant(e.constant())},li.apply(e,arguments)}function pA(){var e=aA(zg());return e.copy=function(){return cs(e,pA()).exponent(e.exponent())},li.apply(e,arguments)}function Ppe(){return pA.apply(null,arguments).exponent(.5)}function mL(){var e=[],t=gn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Jd(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Wi),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>gde(e,i/r))},n.copy=function(){return mL(t).domain(e)},li.apply(n,arguments)}function Ig(){var e=0,t=.5,n=1,r=1,a,i,s,o,l,c=gn,d,f=!1,h;function p(g){return isNaN(g=+g)?h:(g=.5+((g=+d(g))-i)*(r*g<r*i?o:l),c(f?Math.max(0,Math.min(1,g)):g))}p.domain=function(g){return arguments.length?([e,t,n]=g,a=d(e=+e),i=d(t=+t),s=d(n=+n),o=a===i?0:.5/(i-a),l=i===s?0:.5/(s-i),r=i<a?-1:1,p):[e,t,n]},p.clamp=function(g){return arguments.length?(f=!!g,p):f},p.interpolator=function(g){return arguments.length?(c=g,p):c};function m(g){return function(v){var y,b,x;return arguments.length?([y,b,x]=v,c=Vde(g,[y,b,x]),p):[c(0),c(.5),c(1)]}}return p.range=m(Zc),p.rangeRound=m(Zj),p.unknown=function(g){return arguments.length?(h=g,p):h},function(g){return d=g,a=g(e),i=g(t),s=g(n),o=a===i?0:.5/(i-a),l=i===s?0:.5/(s-i),r=i<a?-1:1,p}}function yL(){var e=ls(Ig()(gn));return e.copy=function(){return cs(e,yL())},li.apply(e,arguments)}function gL(){var e=nA(Ig()).domain([.1,1,10]);return e.copy=function(){return cs(e,gL()).base(e.base())},li.apply(e,arguments)}function vL(){var e=rA(Ig());return e.copy=function(){return cs(e,vL()).constant(e.constant())},li.apply(e,arguments)}function mA(){var e=aA(Ig());return e.copy=function(){return cs(e,mA()).exponent(e.exponent())},li.apply(e,arguments)}function Mpe(){return mA.apply(null,arguments).exponent(.5)}const LC=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Kf,scaleDiverging:yL,scaleDivergingLog:gL,scaleDivergingPow:mA,scaleDivergingSqrt:Mpe,scaleDivergingSymlog:vL,scaleIdentity:X4,scaleImplicit:d1,scaleLinear:Hm,scaleLog:Z4,scaleOrdinal:Wj,scalePoint:of,scalePow:iA,scaleQuantile:tL,scaleQuantize:nL,scaleRadial:eL,scaleSequential:dL,scaleSequentialLog:hL,scaleSequentialPow:pA,scaleSequentialQuantile:mL,scaleSequentialSqrt:Ppe,scaleSequentialSymlog:pL,scaleSqrt:dhe,scaleSymlog:J4,scaleThreshold:rL,scaleTime:Cpe,scaleUtc:_pe,tickFormat:W4},Symbol.toStringTag,{value:"Module"}));var Rpe=Vc;function Dpe(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],s=t(i);if(s!=null&&(o===void 0?s===s&&!Rpe(s):n(s,o)))var o=s,l=i}return l}var Bg=Dpe;function kpe(e,t){return e>t}var bL=kpe,$pe=Bg,Lpe=bL,zpe=Qc;function Ipe(e){return e&&e.length?$pe(e,zpe,Lpe):void 0}var Bpe=Ipe;const Li=Ie(Bpe);function Upe(e,t){return e<t}var xL=Upe,Fpe=Bg,Vpe=xL,Hpe=Qc;function qpe(e){return e&&e.length?Fpe(e,Hpe,Vpe):void 0}var Kpe=qpe;const Ug=Ie(Kpe);var Gpe=Cj,Ype=ya,Wpe=C4,Xpe=Dn;function Qpe(e,t){var n=Xpe(e)?Gpe:Wpe;return n(e,Ype(t))}var Zpe=Qpe,Jpe=T4,eme=Zpe;function tme(e,t){return Jpe(eme(e,t),1)}var nme=tme;const rme=Ie(nme);var ame=Hj;function ime(e,t){return ame(e,t)}var sme=ime;const po=Ie(sme);var Jc=1e9,ome={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},gA,ut=!0,jr="[DecimalError] ",Js=jr+"Invalid argument: ",yA=jr+"Exponent out of range: ",eu=Math.floor,Os=Math.pow,lme=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,qn,Ft=1e7,rt=7,SL=9007199254740991,Ym=eu(SL/rt),re={};re.absoluteValue=re.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};re.comparedTo=re.cmp=function(e){var t,n,r,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};re.decimalPlaces=re.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*rt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};re.dividedBy=re.div=function(e){return Ka(this,new this.constructor(e))};re.dividedToIntegerBy=re.idiv=function(e){var t=this,n=t.constructor;return Ye(Ka(t,new n(e),0,1),n.precision)};re.equals=re.eq=function(e){return!this.cmp(e)};re.exponent=function(){return Pt(this)};re.greaterThan=re.gt=function(e){return this.cmp(e)>0};re.greaterThanOrEqualTo=re.gte=function(e){return this.cmp(e)>=0};re.isInteger=re.isint=function(){return this.e>this.d.length-2};re.isNegative=re.isneg=function(){return this.s<0};re.isPositive=re.ispos=function(){return this.s>0};re.isZero=function(){return this.s===0};re.lessThan=re.lt=function(e){return this.cmp(e)<0};re.lessThanOrEqualTo=re.lte=function(e){return this.cmp(e)<1};re.logarithm=re.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(qn))throw Error(jr+"NaN");if(n.s<1)throw Error(jr+(n.s?"NaN":"-Infinity"));return n.eq(qn)?new r(0):(ut=!1,t=Ka(Qf(n,i),Qf(e,i),i),ut=!0,Ye(t,a))};re.minus=re.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?AL(t,e):wL(t,(e.s=-e.s,e))};re.modulo=re.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(jr+"NaN");return n.s?(ut=!1,t=Ka(n,e,0,1).times(e),ut=!0,n.minus(t)):Ye(new r(n),a)};re.naturalExponential=re.exp=function(){return jL(this)};re.naturalLogarithm=re.ln=function(){return Qf(this)};re.negated=re.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};re.plus=re.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?wL(t,e):AL(t,(e.s=-e.s,e))};re.precision=re.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Js+e);if(t=Pt(a)+1,r=a.d.length-1,n=r*rt+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};re.squareRoot=re.sqrt=function(){var e,t,n,r,a,i,s,o=this,l=o.constructor;if(o.s<1){if(!o.s)return new l(0);throw Error(jr+"NaN")}for(e=Pt(o),ut=!1,a=Math.sqrt(+o),a==0||a==1/0?(t=ra(o.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=eu((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(a.toString()),n=l.precision,a=s=n+3;;)if(i=r,r=i.plus(Ka(o,i,s+2)).times(.5),ra(i.d).slice(0,s)===(t=ra(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),a==s&&t=="4999"){if(Ye(i,n+1,0),i.times(i).eq(o)){r=i;break}}else if(t!="9999")break;s+=4}return ut=!0,Ye(r,n)};re.times=re.mul=function(e){var t,n,r,a,i,s,o,l,c,d=this,f=d.constructor,h=d.d,p=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.e+e.e,l=h.length,c=p.length,l<c&&(i=h,h=p,p=i,s=l,l=c,c=s),i=[],s=l+c,r=s;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,a=l+r;a>r;)o=i[a]+p[r]*h[a-r-1]+t,i[a--]=o%Ft|0,t=o/Ft|0;i[a]=(i[a]+t)%Ft|0}for(;!i[--s];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,ut?Ye(e,f.precision):e};re.toDecimalPlaces=re.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(da(e,0,Jc),t===void 0?t=r.rounding:da(t,0,8),Ye(n,e+Pt(n)+1,t))};re.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=mo(r,!0):(da(e,0,Jc),t===void 0?t=a.rounding:da(t,0,8),r=Ye(new a(r),e+1,t),n=mo(r,!0,e+1)),n};re.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?mo(a):(da(e,0,Jc),t===void 0?t=i.rounding:da(t,0,8),r=Ye(new i(a),e+Pt(a)+1,t),n=mo(r.abs(),!1,e+Pt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};re.toInteger=re.toint=function(){var e=this,t=e.constructor;return Ye(new t(e),Pt(e)+1,t.rounding)};re.toNumber=function(){return+this};re.toPower=re.pow=function(e){var t,n,r,a,i,s,o=this,l=o.constructor,c=12,d=+(e=new l(e));if(!e.s)return new l(qn);if(o=new l(o),!o.s){if(e.s<1)throw Error(jr+"Infinity");return o}if(o.eq(qn))return o;if(r=l.precision,e.eq(qn))return Ye(o,r);if(t=e.e,n=e.d.length-1,s=t>=n,i=o.s,s){if((n=d<0?-d:d)<=SL){for(a=new l(qn),t=Math.ceil(r/rt+4),ut=!1;n%2&&(a=a.times(o),IC(a.d,t)),n=eu(n/2),n!==0;)o=o.times(o),IC(o.d,t);return ut=!0,e.s<0?new l(qn).div(a):Ye(a,r)}}else if(i<0)throw Error(jr+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,o.s=1,ut=!1,a=e.times(Qf(o,r+c)),ut=!0,a=jL(a),a.s=i,a};re.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=Pt(a),r=mo(a,n<=i.toExpNeg||n>=i.toExpPos)):(da(e,1,Jc),t===void 0?t=i.rounding:da(t,0,8),a=Ye(new i(a),e,t),n=Pt(a),r=mo(a,e<=n||n<=i.toExpNeg,e)),r};re.toSignificantDigits=re.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(da(e,1,Jc),t===void 0?t=r.rounding:da(t,0,8)),Ye(new r(n),e,t)};re.toString=re.valueOf=re.val=re.toJSON=re[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Pt(e),n=e.constructor;return mo(e,t<=n.toExpNeg||t>=n.toExpPos)};function wL(e,t){var n,r,a,i,s,o,l,c,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),ut?Ye(t,f):t;if(l=e.d,c=t.d,s=e.e,a=t.e,l=l.slice(),i=s-a,i){for(i<0?(r=l,i=-i,o=c.length):(r=c,a=s,o=l.length),s=Math.ceil(f/rt),o=s>o?s+1:o+1,i>o&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(o=l.length,i=c.length,o-i<0&&(i=o,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/Ft|0,l[i]%=Ft;for(n&&(l.unshift(n),++a),o=l.length;l[--o]==0;)l.pop();return t.d=l,t.e=a,ut?Ye(t,f):t}function da(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Js+e)}function ra(e){var t,n,r,a=e.length-1,i="",s=e[0];if(a>0){for(i+=s,t=1;t<a;t++)r=e[t]+"",n=rt-r.length,n&&(i+=vi(n)),i+=r;s=e[t],r=s+"",n=rt-r.length,n&&(i+=vi(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return i+s}var Ka=function(){function e(r,a){var i,s=0,o=r.length;for(r=r.slice();o--;)i=r[o]*a+s,r[o]=i%Ft|0,s=i/Ft|0;return s&&r.unshift(s),r}function t(r,a,i,s){var o,l;if(i!=s)l=i>s?1:-1;else for(o=l=0;o<i;o++)if(r[o]!=a[o]){l=r[o]>a[o]?1:-1;break}return l}function n(r,a,i){for(var s=0;i--;)r[i]-=s,s=r[i]<a[i]?1:0,r[i]=s*Ft+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,s){var o,l,c,d,f,h,p,m,g,v,y,b,x,w,S,j,O,E,T=r.constructor,N=r.s==a.s?1:-1,M=r.d,C=a.d;if(!r.s)return new T(r);if(!a.s)throw Error(jr+"Division by zero");for(l=r.e-a.e,O=C.length,S=M.length,p=new T(N),m=p.d=[],c=0;C[c]==(M[c]||0);)++c;if(C[c]>(M[c]||0)&&--l,i==null?b=i=T.precision:s?b=i+(Pt(r)-Pt(a))+1:b=i,b<0)return new T(0);if(b=b/rt+2|0,c=0,O==1)for(d=0,C=C[0],b++;(c<S||d)&&b--;c++)x=d*Ft+(M[c]||0),m[c]=x/C|0,d=x%C|0;else{for(d=Ft/(C[0]+1)|0,d>1&&(C=e(C,d),M=e(M,d),O=C.length,S=M.length),w=O,g=M.slice(0,O),v=g.length;v<O;)g[v++]=0;E=C.slice(),E.unshift(0),j=C[0],C[1]>=Ft/2&&++j;do d=0,o=t(C,g,O,v),o<0?(y=g[0],O!=v&&(y=y*Ft+(g[1]||0)),d=y/j|0,d>1?(d>=Ft&&(d=Ft-1),f=e(C,d),h=f.length,v=g.length,o=t(f,g,h,v),o==1&&(d--,n(f,O<h?E:C,h))):(d==0&&(o=d=1),f=C.slice()),h=f.length,h<v&&f.unshift(0),n(g,f,v),o==-1&&(v=g.length,o=t(C,g,O,v),o<1&&(d++,n(g,O<v?E:C,v))),v=g.length):o===0&&(d++,g=[0]),m[c++]=d,o&&g[0]?g[v++]=M[w]||0:(g=[M[w]],v=1);while((w++<S||g[0]!==void 0)&&b--)}return m[0]||m.shift(),p.e=l,Ye(p,s?i+Pt(p)+1:i)}}();function jL(e,t){var n,r,a,i,s,o,l=0,c=0,d=e.constructor,f=d.precision;if(Pt(e)>16)throw Error(yA+Pt(e));if(!e.s)return new d(qn);for(ut=!1,o=f,s=new d(.03125);e.abs().gte(.1);)e=e.times(s),c+=5;for(r=Math.log(Os(2,c))/Math.LN10*2+5|0,o+=r,n=a=i=new d(qn),d.precision=o;;){if(a=Ye(a.times(e),o),n=n.times(++l),s=i.plus(Ka(a,n,o)),ra(s.d).slice(0,o)===ra(i.d).slice(0,o)){for(;c--;)i=Ye(i.times(i),o);return d.precision=f,t==null?(ut=!0,Ye(i,f)):i}i=s}}function Pt(e){for(var t=e.e*rt,n=e.d[0];n>=10;n/=10)t++;return t}function Ib(e,t,n){if(t>e.LN10.sd())throw ut=!0,n&&(e.precision=n),Error(jr+"LN10 precision limit exceeded");return Ye(new e(e.LN10),t)}function vi(e){for(var t="";e--;)t+="0";return t}function Qf(e,t){var n,r,a,i,s,o,l,c,d,f=1,h=10,p=e,m=p.d,g=p.constructor,v=g.precision;if(p.s<1)throw Error(jr+(p.s?"NaN":"-Infinity"));if(p.eq(qn))return new g(0);if(t==null?(ut=!1,c=v):c=t,p.eq(10))return t==null&&(ut=!0),Ib(g,c);if(c+=h,g.precision=c,n=ra(m),r=n.charAt(0),i=Pt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=ra(p.d),r=n.charAt(0),f++;i=Pt(p),r>1?(p=new g("0."+n),i++):p=new g(r+"."+n.slice(1))}else return l=Ib(g,c+2,v).times(i+""),p=Qf(new g(r+"."+n.slice(1)),c-h).plus(l),g.precision=v,t==null?(ut=!0,Ye(p,v)):p;for(o=s=p=Ka(p.minus(qn),p.plus(qn),c),d=Ye(p.times(p),c),a=3;;){if(s=Ye(s.times(d),c),l=o.plus(Ka(s,new g(a),c)),ra(l.d).slice(0,c)===ra(o.d).slice(0,c))return o=o.times(2),i!==0&&(o=o.plus(Ib(g,c+2,v).times(i+""))),o=Ka(o,new g(f),c),g.precision=v,t==null?(ut=!0,Ye(o,v)):o;o=l,a+=2}}function zC(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=eu(n/rt),e.d=[],r=(n+1)%rt,n<0&&(r+=rt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=rt;r<a;)e.d.push(+t.slice(r,r+=rt));t=t.slice(r),r=rt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),ut&&(e.e>Ym||e.e<-Ym))throw Error(yA+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ye(e,t,n){var r,a,i,s,o,l,c,d,f=e.d;for(s=1,i=f[0];i>=10;i/=10)s++;if(r=t-s,r<0)r+=rt,a=t,c=f[d=0];else{if(d=Math.ceil((r+1)/rt),i=f.length,d>=i)return e;for(c=i=f[d],s=1;i>=10;i/=10)s++;r%=rt,a=r-rt+s}if(n!==void 0&&(i=Os(10,s-a-1),o=c/i%10|0,l=t<0||f[d+1]!==void 0||c%i,l=n<4?(o||l)&&(n==0||n==(e.s<0?3:2)):o>5||o==5&&(n==4||l||n==6&&(r>0?a>0?c/Os(10,s-a):0:f[d-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return l?(i=Pt(e),f.length=1,t=t-i-1,f[0]=Os(10,(rt-t%rt)%rt),e.e=eu(-t/rt)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=d,i=1,d--):(f.length=d+1,i=Os(10,rt-r),f[d]=a>0?(c/Os(10,s-a)%Os(10,a)|0)*i:0),l)for(;;)if(d==0){(f[0]+=i)==Ft&&(f[0]=1,++e.e);break}else{if(f[d]+=i,f[d]!=Ft)break;f[d--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(ut&&(e.e>Ym||e.e<-Ym))throw Error(yA+Pt(e));return e}function AL(e,t){var n,r,a,i,s,o,l,c,d,f,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),ut?Ye(t,p):t;if(l=e.d,f=t.d,r=t.e,c=e.e,l=l.slice(),s=c-r,s){for(d=s<0,d?(n=l,s=-s,o=f.length):(n=f,r=c,o=l.length),a=Math.max(Math.ceil(p/rt),o)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,o=f.length,d=a<o,d&&(o=a),a=0;a<o;a++)if(l[a]!=f[a]){d=l[a]<f[a];break}s=0}for(d&&(n=l,l=f,f=n,t.s=-t.s),o=l.length,a=f.length-o;a>0;--a)l[o++]=0;for(a=f.length;a>s;){if(l[--a]<f[a]){for(i=a;i&&l[--i]===0;)l[i]=Ft-1;--l[i],l[a]+=Ft}l[a]-=f[a]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,ut?Ye(t,p):t):new h(0)}function mo(e,t,n){var r,a=Pt(e),i=ra(e.d),s=i.length;return t?(n&&(r=n-s)>0?i=i.charAt(0)+"."+i.slice(1)+vi(r):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+vi(-a-1)+i,n&&(r=n-s)>0&&(i+=vi(r))):a>=s?(i+=vi(a+1-s),n&&(r=n-a-1)>0&&(i=i+"."+vi(r))):((r=a+1)<s&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-s)>0&&(a+1===s&&(i+="."),i+=vi(r))),e.s<0?"-"+i:i}function IC(e,t){if(e.length>t)return e.length=t,!0}function OL(e){var t,n,r;function a(i){var s=this;if(!(s instanceof a))return new a(i);if(s.constructor=a,i instanceof a){s.s=i.s,s.e=i.e,s.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Js+i);if(i>0)s.s=1;else if(i<0)i=-i,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(i===~~i&&i<1e7){s.e=0,s.d=[i];return}return zC(s,i.toString())}else if(typeof i!="string")throw Error(Js+i);if(i.charCodeAt(0)===45?(i=i.slice(1),s.s=-1):s.s=1,lme.test(i))zC(s,i);else throw Error(Js+i)}if(a.prototype=re,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=OL,a.config=a.set=cme,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function cme(e){if(!e||typeof e!="object")throw Error(jr+"Object expected");var t,n,r,a=["precision",1,Jc,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(eu(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Js+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Js+n+": "+r);return this}var gA=OL(ome);qn=new gA(1);const Ke=gA;function ume(e){return pme(e)||hme(e)||dme(e)||fme()}function fme(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dme(e,t){if(e){if(typeof e=="string")return y1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y1(e,t)}}function hme(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function pme(e){if(Array.isArray(e))return y1(e)}function y1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var mme=function(t){return t},EL={},TL=function(t){return t===EL},BC=function(t){return function n(){return arguments.length===0||arguments.length===1&&TL(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},yme=function e(t,n){return t===1?n:BC(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=a.filter(function(o){return o!==EL}).length;return s>=t?n.apply(void 0,a):e(t-s,BC(function(){for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];var d=a.map(function(f){return TL(f)?l.shift():f});return n.apply(void 0,ume(d).concat(l))}))})},Fg=function(t){return yme(t.length,t)},g1=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},gme=Fg(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),vme=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return mme;var a=n.reverse(),i=a[0],s=a.slice(1);return function(){return s.reduce(function(o,l){return l(o)},i.apply(void 0,arguments))}},v1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},NL=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return n&&i.every(function(o,l){return o===n[l]})||(n=i,r=t.apply(void 0,i)),r}};function bme(e){var t;return e===0?t=1:t=Math.floor(new Ke(e).abs().log(10).toNumber())+1,t}function xme(e,t,n){for(var r=new Ke(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var Sme=Fg(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),wme=Fg(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),jme=Fg(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Vg={rangeStep:xme,getDigitCount:bme,interpolateNumber:Sme,uninterpolateNumber:wme,uninterpolateTruncation:jme};function b1(e){return Eme(e)||Ome(e)||CL(e)||Ame()}function Ame(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ome(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Eme(e){if(Array.isArray(e))return x1(e)}function Zf(e,t){return Cme(e)||Nme(e,t)||CL(e,t)||Tme()}function Tme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function CL(e,t){if(e){if(typeof e=="string")return x1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x1(e,t)}}function x1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nme(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var s=e[Symbol.iterator](),o;!(r=(o=s.next()).done)&&(n.push(o.value),!(t&&n.length===t));r=!0);}catch(l){a=!0,i=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(a)throw i}}return n}}function Cme(e){if(Array.isArray(e))return e}function _L(e){var t=Zf(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function PL(e,t,n){if(e.lte(0))return new Ke(0);var r=Vg.getDigitCount(e.toNumber()),a=new Ke(10).pow(r),i=e.div(a),s=r!==1?.05:.1,o=new Ke(Math.ceil(i.div(s).toNumber())).add(n).mul(s),l=o.mul(a);return t?l:new Ke(Math.ceil(l))}function _me(e,t,n){var r=1,a=new Ke(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new Ke(10).pow(Vg.getDigitCount(e)-1),a=new Ke(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new Ke(Math.floor(e)))}else e===0?a=new Ke(Math.floor((t-1)/2)):n||(a=new Ke(Math.floor(e)));var s=Math.floor((t-1)/2),o=vme(gme(function(l){return a.add(new Ke(l-s).mul(r)).toNumber()}),g1);return o(0,t)}function ML(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Ke(0),tickMin:new Ke(0),tickMax:new Ke(0)};var i=PL(new Ke(t).sub(e).div(n-1),r,a),s;e<=0&&t>=0?s=new Ke(0):(s=new Ke(e).add(t).div(2),s=s.sub(new Ke(s).mod(i)));var o=Math.ceil(s.sub(e).div(i).toNumber()),l=Math.ceil(new Ke(t).sub(s).div(i).toNumber()),c=o+l+1;return c>n?ML(e,t,n,r,a+1):(c<n&&(l=t>0?l+(n-c):l,o=t>0?o:o+(n-c)),{step:i,tickMin:s.sub(new Ke(o).mul(i)),tickMax:s.add(new Ke(l).mul(i))})}function Pme(e){var t=Zf(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(a,2),o=_L([n,r]),l=Zf(o,2),c=l[0],d=l[1];if(c===-1/0||d===1/0){var f=d===1/0?[c].concat(b1(g1(0,a-1).map(function(){return 1/0}))):[].concat(b1(g1(0,a-1).map(function(){return-1/0})),[d]);return n>r?v1(f):f}if(c===d)return _me(c,a,i);var h=ML(c,d,s,i),p=h.step,m=h.tickMin,g=h.tickMax,v=Vg.rangeStep(m,g.add(new Ke(.1).mul(p)),p);return n>r?v1(v):v}function Mme(e,t){var n=Zf(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=_L([r,a]),o=Zf(s,2),l=o[0],c=o[1];if(l===-1/0||c===1/0)return[r,a];if(l===c)return[l];var d=Math.max(t,2),f=PL(new Ke(c).sub(l).div(d-1),i,0),h=[].concat(b1(Vg.rangeStep(new Ke(l),new Ke(c).sub(new Ke(.99).mul(f)),f)),[c]);return r>a?v1(h):h}var Rme=NL(Pme),Dme=NL(Mme),kme="Invariant failed";function yo(e,t){throw new Error(kme)}var $me=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}function Wm(){return Wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wm.apply(this,arguments)}function Lme(e,t){return Ume(e)||Bme(e,t)||Ime(e,t)||zme()}function zme(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ime(e,t){if(e){if(typeof e=="string")return UC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UC(e,t)}}function UC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Bme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Ume(e){if(Array.isArray(e))return e}function Fme(e,t){if(e==null)return{};var n=Vme(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Hme(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qme(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kL(r.key),r)}}function Kme(e,t,n){return t&&qme(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gme(e,t,n){return t=Xm(t),Yme(e,RL()?Reflect.construct(t,n||[],Xm(e).constructor):t.apply(e,n))}function Yme(e,t){if(t&&(uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wme(e)}function Wme(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RL=function(){return!!e})()}function Xm(e){return Xm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Xm(e)}function Xme(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S1(e,t)}function S1(e,t){return S1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},S1(e,t)}function DL(e,t,n){return t=kL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kL(e){var t=Qme(e,"string");return uc(t)=="symbol"?t:t+""}function Qme(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rh=function(e){function t(){return Hme(this,t),Gme(this,t,arguments)}return Xme(t,e),Kme(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,s=r.width,o=r.dataKey,l=r.data,c=r.dataPointFormatter,d=r.xAxis,f=r.yAxis,h=Fme(r,$me),p=ie(h,!1);this.props.direction==="x"&&d.type!=="number"&&yo();var m=l.map(function(g){var v=c(g,o),y=v.x,b=v.y,x=v.value,w=v.errorVal;if(!w)return null;var S=[],j,O;if(Array.isArray(w)){var E=Lme(w,2);j=E[0],O=E[1]}else j=O=w;if(i==="vertical"){var T=d.scale,N=b+a,M=N+s,C=N-s,L=T(x-j),D=T(x+O);S.push({x1:D,y1:M,x2:D,y2:C}),S.push({x1:L,y1:N,x2:D,y2:N}),S.push({x1:L,y1:M,x2:L,y2:C})}else if(i==="horizontal"){var k=f.scale,P=y+a,$=P-s,I=P+s,F=k(x-j),H=k(x+O);S.push({x1:$,y1:H,x2:I,y2:H}),S.push({x1:P,y1:F,x2:P,y2:H}),S.push({x1:$,y1:F,x2:I,y2:F})}return _.createElement(Ae,Wm({className:"recharts-errorBar",key:"bar-".concat(S.map(function(W){return"".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))},p),S.map(function(W){return _.createElement("line",Wm({},W,{key:"line-".concat(W.x1,"-").concat(W.x2,"-").concat(W.y1,"-").concat(W.y2)}))}))});return _.createElement(Ae,{className:"recharts-errorBars"},m)}}])}(_.Component);DL(rh,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});DL(rh,"displayName","ErrorBar");function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function FC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ps(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FC(Object(n),!0).forEach(function(r){Zme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zme(e,t,n){return t=Jme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jme(e){var t=eye(e,"string");return Jf(t)=="symbol"?t:t+""}function eye(e,t){if(Jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $L=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,s=In(n,na);if(!s)return null;var o=na.defaultProps,l=o!==void 0?ps(ps({},o),s.props):{},c;return s.props&&s.props.payload?c=s.props&&s.props.payload:i==="children"?c=(r||[]).reduce(function(d,f){var h=f.item,p=f.props,m=p.sectors||p.data||[];return d.concat(m.map(function(g){return{type:s.props.iconType||h.props.legendType,value:g.name,color:g.fill,payload:g}}))},[]):c=(r||[]).map(function(d){var f=d.item,h=f.type.defaultProps,p=h!==void 0?ps(ps({},h),f.props):{},m=p.dataKey,g=p.name,v=p.legendType,y=p.hide;return{inactive:y,dataKey:m,type:l.iconType||v||"square",color:vA(f),value:g||m,payload:p}}),ps(ps(ps({},l),na.getWithHeight(s,a)),{},{payload:c,item:s})};function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function VC(e){return aye(e)||rye(e)||nye(e)||tye()}function tye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nye(e,t){if(e){if(typeof e=="string")return w1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w1(e,t)}}function rye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function aye(e){if(Array.isArray(e))return w1(e)}function w1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function vt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HC(Object(n),!0).forEach(function(r){Ol(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ol(e,t,n){return t=iye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iye(e){var t=sye(e,"string");return ed(t)=="symbol"?t:t+""}function sye(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function wt(e,t,n){return me(e)||me(t)?n:$t(t)?Qn(e,t,n):de(t)?t(e):n}function lf(e,t,n,r){var a=rme(e,function(o){return wt(o,t)});if(n==="number"){var i=a.filter(function(o){return G(o)||parseFloat(o)});return i.length?[Ug(i),Li(i)]:[1/0,-1/0]}var s=r?a.filter(function(o){return!me(o)}):a;return s.map(function(o){return $t(o)||o instanceof Date?o:""})}var oye=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=-1,o=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(o<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,c=0;c<o;c++){var d=c>0?a[c-1].coordinate:a[o-1].coordinate,f=a[c].coordinate,h=c>=o-1?a[0].coordinate:a[c+1].coordinate,p=void 0;if(mn(f-d)!==mn(h-f)){var m=[];if(mn(h-f)===mn(l[1]-l[0])){p=h;var g=f+l[1]-l[0];m[0]=Math.min(g,(g+d)/2),m[1]=Math.max(g,(g+d)/2)}else{p=d;var v=h+l[1]-l[0];m[0]=Math.min(f,(v+f)/2),m[1]=Math.max(f,(v+f)/2)}var y=[Math.min(f,(p+f)/2),Math.max(f,(p+f)/2)];if(t>y[0]&&t<=y[1]||t>=m[0]&&t<=m[1]){s=a[c].index;break}}else{var b=Math.min(d,h),x=Math.max(d,h);if(t>(b+f)/2&&t<=(x+f)/2){s=a[c].index;break}}}else for(var w=0;w<o;w++)if(w===0&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<o-1&&t>(r[w].coordinate+r[w-1].coordinate)/2&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w===o-1&&t>(r[w].coordinate+r[w-1].coordinate)/2){s=r[w].index;break}return s},vA=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,s=i.stroke,o=i.fill,l;switch(a){case"Line":l=s;break;case"Area":case"Radar":l=s&&s!=="none"?s:o;break;default:l=o;break}return l},lye=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var s={},o=Object.keys(i),l=0,c=o.length;l<c;l++)for(var d=i[o[l]].stackGroups,f=Object.keys(d),h=0,p=f.length;h<p;h++){var m=d[f[h]],g=m.items,v=m.cateAxisId,y=g.filter(function(O){return qa(O.type).indexOf("Bar")>=0});if(y&&y.length){var b=y[0].type.defaultProps,x=b!==void 0?vt(vt({},b),y[0].props):y[0].props,w=x.barSize,S=x[v];s[S]||(s[S]=[]);var j=me(w)?n:w;s[S].push({item:y[0],stackList:y.slice(1),barSize:me(j)?void 0:yn(j,r,0)})}}return s},cye=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,s=i===void 0?[]:i,o=t.maxBarSize,l=s.length;if(l<1)return null;var c=yn(n,a,0,!0),d,f=[];if(s[0].barSize===+s[0].barSize){var h=!1,p=a/l,m=s.reduce(function(w,S){return w+S.barSize||0},0);m+=(l-1)*c,m>=a&&(m-=(l-1)*c,c=0),m>=a&&p>0&&(h=!0,p*=.9,m=l*p);var g=(a-m)/2>>0,v={offset:g-c,size:0};d=s.reduce(function(w,S){var j={item:S.item,position:{offset:v.offset+v.size+c,size:h?p:S.barSize}},O=[].concat(VC(w),[j]);return v=O[O.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){O.push({item:E,position:v})}),O},f)}else{var y=yn(r,a,0,!0);a-2*y-(l-1)*c<=0&&(c=0);var b=(a-2*y-(l-1)*c)/l;b>1&&(b>>=0);var x=o===+o?Math.min(b,o):b;d=s.reduce(function(w,S,j){var O=[].concat(VC(w),[{item:S.item,position:{offset:y+(b+c)*j+(b-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){O.push({item:E,position:O[O.length-1].position})}),O},f)}return d},uye=function(t,n,r,a){var i=r.children,s=r.width,o=r.margin,l=s-(o.left||0)-(o.right||0),c=$L({children:i,legendWidth:l});if(c){var d=a||{},f=d.width,h=d.height,p=c.align,m=c.verticalAlign,g=c.layout;if((g==="vertical"||g==="horizontal"&&m==="middle")&&p!=="center"&&G(t[p]))return vt(vt({},t),{},Ol({},p,t[p]+(f||0)));if((g==="horizontal"||g==="vertical"&&p==="center")&&m!=="middle"&&G(t[m]))return vt(vt({},t),{},Ol({},m,t[m]+(h||0)))}return t},fye=function(t,n,r){return me(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},LL=function(t,n,r,a,i){var s=n.props.children,o=Zn(s,rh).filter(function(c){return fye(a,i,c.props.direction)});if(o&&o.length){var l=o.map(function(c){return c.props.dataKey});return t.reduce(function(c,d){var f=wt(d,r);if(me(f))return c;var h=Array.isArray(f)?[Ug(f),Li(f)]:[f,f],p=l.reduce(function(m,g){var v=wt(d,g,0),y=h[0]-Math.abs(Array.isArray(v)?v[0]:v),b=h[1]+Math.abs(Array.isArray(v)?v[1]:v);return[Math.min(y,m[0]),Math.max(b,m[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},dye=function(t,n,r,a,i){var s=n.map(function(o){return LL(t,o,r,i,a)}).filter(function(o){return!me(o)});return s&&s.length?s.reduce(function(o,l){return[Math.min(o[0],l[0]),Math.max(o[1],l[1])]},[1/0,-1/0]):null},zL=function(t,n,r,a,i){var s=n.map(function(l){var c=l.props.dataKey;return r==="number"&&c&&LL(t,l,c,a)||lf(t,c,r,i)});if(r==="number")return s.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var o={};return s.reduce(function(l,c){for(var d=0,f=c.length;d<f;d++)o[c[d]]||(o[c[d]]=!0,l.push(c[d]));return l},[])},IL=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},BL=function(t,n,r,a){if(a)return t.map(function(l){return l.coordinate});var i,s,o=t.map(function(l){return l.coordinate===n&&(i=!0),l.coordinate===r&&(s=!0),l.coordinate});return i||o.push(n),s||o.push(r),o},La=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,s=t.type,o=t.range,l=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,c=(n||r)&&s==="category"&&a.bandwidth?a.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(o==null?void 0:o.length)>=2?mn(o[0]-o[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var d=(t.ticks||t.niceTicks).map(function(f){var h=i?i.indexOf(f):f;return{coordinate:a(h)+c,value:f,offset:c}});return d.filter(function(f){return!Yc(f.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(f,h){return{coordinate:a(f)+c,value:f,index:h,offset:c}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(f){return{coordinate:a(f)+c,value:f,offset:c}}):a.domain().map(function(f,h){return{coordinate:a(f)+c,value:i?i[f]:f,index:h,offset:c}})},Bb=new WeakMap,Hh=function(t,n){if(typeof n!="function")return t;Bb.has(t)||Bb.set(t,new WeakMap);var r=Bb.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},UL=function(t,n,r){var a=t.scale,i=t.type,s=t.layout,o=t.axisType;if(a==="auto")return s==="radial"&&o==="radiusAxis"?{scale:Kf(),realScaleType:"band"}:s==="radial"&&o==="angleAxis"?{scale:Hm(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:of(),realScaleType:"point"}:i==="category"?{scale:Kf(),realScaleType:"band"}:{scale:Hm(),realScaleType:"linear"};if(uo(a)){var l="scale".concat(Eg(a));return{scale:(LC[l]||of)(),realScaleType:LC[l]?l:"point"}}return de(a)?{scale:a}:{scale:of(),realScaleType:"point"}},qC=1e-4,FL=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-qC,s=Math.max(a[0],a[1])+qC,o=t(n[0]),l=t(n[r-1]);(o<i||o>s||l<i||l>s)&&t.domain([n[0],n[r-1]])}},hye=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},pye=function(t,n){if(!n||n.length!==2||!G(n[0])||!G(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!G(t[0])||t[0]<r)&&(i[0]=r),(!G(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},mye=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,s=0,o=0;o<n;++o){var l=Yc(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=i,t[o][r][1]=i+l,i=t[o][r][1]):(t[o][r][0]=s,t[o][r][1]=s+l,s=t[o][r][1])}},yye=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,s=0;s<n;++s){var o=Yc(t[s][r][1])?t[s][r][0]:t[s][r][1];o>=0?(t[s][r][0]=i,t[s][r][1]=i+o,i=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},gye={sign:mye,expand:$ne,none:nc,silhouette:Lne,wiggle:zne,positive:yye},vye=function(t,n,r){var a=n.map(function(o){return o.props.dataKey}),i=gye[r],s=kne().keys(a).value(function(o,l){return+wt(o,l,0)}).order(Gx).offset(i);return s(t)},bye=function(t,n,r,a,i,s){if(!t)return null;var o=s?n.reverse():n,l={},c=o.reduce(function(f,h){var p,m=(p=h.type)!==null&&p!==void 0&&p.defaultProps?vt(vt({},h.type.defaultProps),h.props):h.props,g=m.stackId,v=m.hide;if(v)return f;var y=m[r],b=f[y]||{hasStack:!1,stackGroups:{}};if($t(g)){var x=b.stackGroups[g]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),b.hasStack=!0,b.stackGroups[g]=x}else b.stackGroups[Eo("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return vt(vt({},f),{},Ol({},y,b))},l),d={};return Object.keys(c).reduce(function(f,h){var p=c[h];if(p.hasStack){var m={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(g,v){var y=p.stackGroups[v];return vt(vt({},g),{},Ol({},v,{numericAxisId:r,cateAxisId:a,items:y.items,stackedData:vye(t,y.items,i)}))},m)}return vt(vt({},f),{},Ol({},h,p))},d)},VL=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,s=n.originalDomain,o=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var c=t.domain();if(!c.length)return null;var d=Rme(c,i,o);return t.domain([Ug(d),Li(d)]),{niceTicks:d}}if(i&&a==="number"){var f=t.domain(),h=Dme(f,i,o);return{niceTicks:h}}return null};function Qm(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,i=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!me(a[t.dataKey])){var o=wm(n,"value",a[t.dataKey]);if(o)return o.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=wt(a,me(s)?t.dataKey:s);return me(l)?null:t.scale(l)}var KC=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,s=t.entry,o=t.index;if(n.type==="category")return r[o]?r[o].coordinate+a:null;var l=wt(s,n.dataKey,n.domain[o]);return me(l)?null:n.scale(l)-i/2+a},xye=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},Sye=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,i=a.stackId;if($t(i)){var s=n[i];if(s){var o=s.items.indexOf(t);return o>=0?s.stackedData[o]:null}}return null},wye=function(t){return t.reduce(function(n,r){return[Ug(r.concat([n[0]]).filter(G)),Li(r.concat([n[1]]).filter(G))]},[1/0,-1/0])},HL=function(t,n,r){return Object.keys(t).reduce(function(a,i){var s=t[i],o=s.stackedData,l=o.reduce(function(c,d){var f=wye(d.slice(n,r+1));return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},GC=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,YC=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,j1=function(t,n,r){if(de(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(G(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(GC.test(t[0])){var i=+GC.exec(t[0])[1];a[0]=n[0]-i}else de(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(G(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(YC.test(t[1])){var s=+YC.exec(t[1])[1];a[1]=n[1]+s}else de(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Zm=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=Kj(n,function(f){return f.coordinate}),s=1/0,o=1,l=i.length;o<l;o++){var c=i[o],d=i[o-1];s=Math.min((c.coordinate||0)-(d.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},WC=function(t,n,r){return!t||!t.length||po(t,Qn(r,"type.defaultProps.domain"))?n:t},qL=function(t,n){var r=t.type.defaultProps?vt(vt({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,s=r.unit,o=r.formatter,l=r.tooltipType,c=r.chartType,d=r.hide;return vt(vt({},ie(t,!1)),{},{dataKey:a,unit:s,formatter:o,name:i||a,color:vA(t),value:wt(n,a),type:l,payload:n,chartType:c,hide:d})};function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function XC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ta(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XC(Object(n),!0).forEach(function(r){KL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KL(e,t,n){return t=jye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jye(e){var t=Aye(e,"string");return td(t)=="symbol"?t:t+""}function Aye(e,t){if(td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Oye(e,t){return Cye(e)||Nye(e,t)||Tye(e,t)||Eye()}function Eye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tye(e,t){if(e){if(typeof e=="string")return QC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return QC(e,t)}}function QC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Cye(e){if(Array.isArray(e))return e}var Jm=Math.PI/180,_ye=function(t){return t*180/Math.PI},et=function(t,n,r,a){return{x:t+Math.cos(-Jm*a)*r,y:n+Math.sin(-Jm*a)*r}},GL=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},Pye=function(t,n,r,a,i){var s=t.width,o=t.height,l=t.startAngle,c=t.endAngle,d=yn(t.cx,s,s/2),f=yn(t.cy,o,o/2),h=GL(s,o,r),p=yn(t.innerRadius,h,0),m=yn(t.outerRadius,h,h*.8),g=Object.keys(n);return g.reduce(function(v,y){var b=n[y],x=b.domain,w=b.reversed,S;if(me(b.range))a==="angleAxis"?S=[l,c]:a==="radiusAxis"&&(S=[p,m]),w&&(S=[S[1],S[0]]);else{S=b.range;var j=S,O=Oye(j,2);l=O[0],c=O[1]}var E=UL(b,i),T=E.realScaleType,N=E.scale;N.domain(x).range(S),FL(N);var M=VL(N,Ta(Ta({},b),{},{realScaleType:T})),C=Ta(Ta(Ta({},b),M),{},{range:S,radius:m,realScaleType:T,scale:N,cx:d,cy:f,innerRadius:p,outerRadius:m,startAngle:l,endAngle:c});return Ta(Ta({},v),{},KL({},y,C))},{})},Mye=function(t,n){var r=t.x,a=t.y,i=n.x,s=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-s,2))},Rye=function(t,n){var r=t.x,a=t.y,i=n.cx,s=n.cy,o=Mye({x:r,y:a},{x:i,y:s});if(o<=0)return{radius:o};var l=(r-i)/o,c=Math.acos(l);return a>s&&(c=2*Math.PI-c),{radius:o,angle:_ye(c),angleInRadian:c}},Dye=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),s=Math.min(a,i);return{startAngle:n-s*360,endAngle:r-s*360}},kye=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),s=Math.floor(a/360),o=Math.min(i,s);return t+o*360},ZC=function(t,n){var r=t.x,a=t.y,i=Rye({x:r,y:a},n),s=i.radius,o=i.angle,l=n.innerRadius,c=n.outerRadius;if(s<l||s>c)return!1;if(s===0)return!0;var d=Dye(n),f=d.startAngle,h=d.endAngle,p=o,m;if(f<=h){for(;p>h;)p-=360;for(;p<f;)p+=360;m=p>=f&&p<=h}else{for(;p>f;)p-=360;for(;p<h;)p+=360;m=p>=h&&p<=f}return m?Ta(Ta({},n),{},{radius:s,angle:kye(p,n)}):null},YL=function(t){return!A.isValidElement(t)&&!de(t)&&typeof t!="boolean"?t.className:""};function nd(e){"@babel/helpers - typeof";return nd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nd(e)}var $ye=["offset"];function Lye(e){return Uye(e)||Bye(e)||Iye(e)||zye()}function zye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iye(e,t){if(e){if(typeof e=="string")return A1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A1(e,t)}}function Bye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uye(e){if(Array.isArray(e))return A1(e)}function A1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Fye(e,t){if(e==null)return{};var n=Vye(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function JC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Rt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JC(Object(n),!0).forEach(function(r){Hye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hye(e,t,n){return t=qye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qye(e){var t=Kye(e,"string");return nd(t)=="symbol"?t:t+""}function Kye(e,t){if(nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rd(){return rd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rd.apply(this,arguments)}var Gye=function(t){var n=t.value,r=t.formatter,a=me(t.children)?n:t.children;return de(r)?r(a):a},Yye=function(t,n){var r=mn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Wye=function(t,n,r){var a=t.position,i=t.viewBox,s=t.offset,o=t.className,l=i,c=l.cx,d=l.cy,f=l.innerRadius,h=l.outerRadius,p=l.startAngle,m=l.endAngle,g=l.clockWise,v=(f+h)/2,y=Yye(p,m),b=y>=0?1:-1,x,w;a==="insideStart"?(x=p+b*s,w=g):a==="insideEnd"?(x=m-b*s,w=!g):a==="end"&&(x=m+b*s,w=g),w=y<=0?w:!w;var S=et(c,d,v,x),j=et(c,d,v,x+(w?1:-1)*359),O="M".concat(S.x,",").concat(S.y,`
    A`).concat(v,",").concat(v,",0,1,").concat(w?0:1,`,
    `).concat(j.x,",").concat(j.y),E=me(t.id)?Eo("recharts-radial-line-"):t.id;return _.createElement("text",rd({},r,{dominantBaseline:"central",className:be("recharts-radial-bar-label",o)}),_.createElement("defs",null,_.createElement("path",{id:E,d:O})),_.createElement("textPath",{xlinkHref:"#".concat(E)},n))},Xye=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,s=i.cx,o=i.cy,l=i.innerRadius,c=i.outerRadius,d=i.startAngle,f=i.endAngle,h=(d+f)/2;if(a==="outside"){var p=et(s,o,c+r,h),m=p.x,g=p.y;return{x:m,y:g,textAnchor:m>=s?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"end"};var v=(l+c)/2,y=et(s,o,v,h),b=y.x,x=y.y;return{x:b,y:x,textAnchor:"middle",verticalAnchor:"middle"}},Qye=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,s=n,o=s.x,l=s.y,c=s.width,d=s.height,f=d>=0?1:-1,h=f*a,p=f>0?"end":"start",m=f>0?"start":"end",g=c>=0?1:-1,v=g*a,y=g>0?"end":"start",b=g>0?"start":"end";if(i==="top"){var x={x:o+c/2,y:l-f*a,textAnchor:"middle",verticalAnchor:p};return Rt(Rt({},x),r?{height:Math.max(l-r.y,0),width:c}:{})}if(i==="bottom"){var w={x:o+c/2,y:l+d+h,textAnchor:"middle",verticalAnchor:m};return Rt(Rt({},w),r?{height:Math.max(r.y+r.height-(l+d),0),width:c}:{})}if(i==="left"){var S={x:o-v,y:l+d/2,textAnchor:y,verticalAnchor:"middle"};return Rt(Rt({},S),r?{width:Math.max(S.x-r.x,0),height:d}:{})}if(i==="right"){var j={x:o+c+v,y:l+d/2,textAnchor:b,verticalAnchor:"middle"};return Rt(Rt({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:d}:{})}var O=r?{width:c,height:d}:{};return i==="insideLeft"?Rt({x:o+v,y:l+d/2,textAnchor:b,verticalAnchor:"middle"},O):i==="insideRight"?Rt({x:o+c-v,y:l+d/2,textAnchor:y,verticalAnchor:"middle"},O):i==="insideTop"?Rt({x:o+c/2,y:l+h,textAnchor:"middle",verticalAnchor:m},O):i==="insideBottom"?Rt({x:o+c/2,y:l+d-h,textAnchor:"middle",verticalAnchor:p},O):i==="insideTopLeft"?Rt({x:o+v,y:l+h,textAnchor:b,verticalAnchor:m},O):i==="insideTopRight"?Rt({x:o+c-v,y:l+h,textAnchor:y,verticalAnchor:m},O):i==="insideBottomLeft"?Rt({x:o+v,y:l+d-h,textAnchor:b,verticalAnchor:p},O):i==="insideBottomRight"?Rt({x:o+c-v,y:l+d-h,textAnchor:y,verticalAnchor:p},O):Hc(i)&&(G(i.x)||Ps(i.x))&&(G(i.y)||Ps(i.y))?Rt({x:o+yn(i.x,c),y:l+yn(i.y,d),textAnchor:"end",verticalAnchor:"end"},O):Rt({x:o+c/2,y:l+d/2,textAnchor:"middle",verticalAnchor:"middle"},O)},Zye=function(t){return"cx"in t&&G(t.cx)};function qt(e){var t=e.offset,n=t===void 0?5:t,r=Fye(e,$ye),a=Rt({offset:n},r),i=a.viewBox,s=a.position,o=a.value,l=a.children,c=a.content,d=a.className,f=d===void 0?"":d,h=a.textBreakAll;if(!i||me(o)&&me(l)&&!A.isValidElement(c)&&!de(c))return null;if(A.isValidElement(c))return A.cloneElement(c,a);var p;if(de(c)){if(p=A.createElement(c,a),A.isValidElement(p))return p}else p=Gye(a);var m=Zye(i),g=ie(a,!0);if(m&&(s==="insideStart"||s==="insideEnd"||s==="end"))return Wye(a,p,g);var v=m?Xye(a):Qye(a);return _.createElement(ho,rd({className:be("recharts-label",f)},g,v,{breakAll:h}),p)}qt.displayName="Label";var WL=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,s=t.endAngle,o=t.r,l=t.radius,c=t.innerRadius,d=t.outerRadius,f=t.x,h=t.y,p=t.top,m=t.left,g=t.width,v=t.height,y=t.clockWise,b=t.labelViewBox;if(b)return b;if(G(g)&&G(v)){if(G(f)&&G(h))return{x:f,y:h,width:g,height:v};if(G(p)&&G(m))return{x:p,y:m,width:g,height:v}}return G(f)&&G(h)?{x:f,y:h,width:0,height:0}:G(n)&&G(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:s||a||0,innerRadius:c||0,outerRadius:d||l||o||0,clockWise:y}:t.viewBox?t.viewBox:{}},Jye=function(t,n){return t?t===!0?_.createElement(qt,{key:"label-implicit",viewBox:n}):$t(t)?_.createElement(qt,{key:"label-implicit",viewBox:n,value:t}):A.isValidElement(t)?t.type===qt?A.cloneElement(t,{key:"label-implicit",viewBox:n}):_.createElement(qt,{key:"label-implicit",content:t,viewBox:n}):de(t)?_.createElement(qt,{key:"label-implicit",content:t,viewBox:n}):Hc(t)?_.createElement(qt,rd({viewBox:n},t,{key:"label-implicit"})):null:null},ege=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,i=WL(t),s=Zn(a,qt).map(function(l,c){return A.cloneElement(l,{viewBox:n||i,key:"label-".concat(c)})});if(!r)return s;var o=Jye(t.label,n||i);return[o].concat(Lye(s))};qt.parseViewBox=WL;qt.renderCallByParent=ege;function tge(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var nge=tge;const rge=Ie(nge);function ad(e){"@babel/helpers - typeof";return ad=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ad(e)}var age=["valueAccessor"],ige=["data","dataKey","clockWise","id","textBreakAll"];function sge(e){return uge(e)||cge(e)||lge(e)||oge()}function oge(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lge(e,t){if(e){if(typeof e=="string")return O1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O1(e,t)}}function cge(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uge(e){if(Array.isArray(e))return O1(e)}function O1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ey(){return ey=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ey.apply(this,arguments)}function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function t_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(r){fge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fge(e,t,n){return t=dge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dge(e){var t=hge(e,"string");return ad(t)=="symbol"?t:t+""}function hge(e,t){if(ad(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ad(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function n_(e,t){if(e==null)return{};var n=pge(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var mge=function(t){return Array.isArray(t.value)?rge(t.value):t.value};function ca(e){var t=e.valueAccessor,n=t===void 0?mge:t,r=n_(e,age),a=r.data,i=r.dataKey,s=r.clockWise,o=r.id,l=r.textBreakAll,c=n_(r,ige);return!a||!a.length?null:_.createElement(Ae,{className:"recharts-label-list"},a.map(function(d,f){var h=me(i)?n(d,f):wt(d&&d.payload,i),p=me(o)?{}:{id:"".concat(o,"-").concat(f)};return _.createElement(qt,ey({},ie(d,!0),c,p,{parentViewBox:d.parentViewBox,value:h,textBreakAll:l,viewBox:qt.parseViewBox(me(s)?d:t_(t_({},d),{},{clockWise:s})),key:"label-".concat(f),index:f}))}))}ca.displayName="LabelList";function yge(e,t){return e?e===!0?_.createElement(ca,{key:"labelList-implicit",data:t}):_.isValidElement(e)||de(e)?_.createElement(ca,{key:"labelList-implicit",data:t,content:e}):Hc(e)?_.createElement(ca,ey({data:t},e,{key:"labelList-implicit"})):null:null}function gge(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=Zn(r,ca).map(function(s,o){return A.cloneElement(s,{data:t,key:"labelList-".concat(o)})});if(!n)return a;var i=yge(e.label,t);return[i].concat(sge(a))}ca.renderCallByParent=gge;function id(e){"@babel/helpers - typeof";return id=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},id(e)}function E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E1.apply(this,arguments)}function r_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function a_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r_(Object(n),!0).forEach(function(r){vge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vge(e,t,n){return t=bge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bge(e){var t=xge(e,"string");return id(t)=="symbol"?t:t+""}function xge(e,t){if(id(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(id(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sge=function(t,n){var r=mn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},qh=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,s=t.sign,o=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,d=l*(o?1:-1)+a,f=Math.asin(l/d)/Jm,h=c?i:i+s*f,p=et(n,r,d,h),m=et(n,r,a,h),g=c?i-s*f:i,v=et(n,r,d*Math.cos(f*Jm),g);return{center:p,circleTangency:m,lineTangency:v,theta:f}},XL=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.startAngle,o=t.endAngle,l=Sge(s,o),c=s+l,d=et(n,r,i,s),f=et(n,r,i,c),h="M ".concat(d.x,",").concat(d.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(l)>180),",").concat(+(s>c),`,
    `).concat(f.x,",").concat(f.y,`
  `);if(a>0){var p=et(n,r,a,s),m=et(n,r,a,c);h+="L ".concat(m.x,",").concat(m.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(l)>180),",").concat(+(s<=c),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},wge=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.cornerRadius,o=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,d=t.endAngle,f=mn(d-c),h=qh({cx:n,cy:r,radius:i,angle:c,sign:f,cornerRadius:s,cornerIsExternal:l}),p=h.circleTangency,m=h.lineTangency,g=h.theta,v=qh({cx:n,cy:r,radius:i,angle:d,sign:-f,cornerRadius:s,cornerIsExternal:l}),y=v.circleTangency,b=v.lineTangency,x=v.theta,w=l?Math.abs(c-d):Math.abs(c-d)-g-x;if(w<0)return o?"M ".concat(m.x,",").concat(m.y,`
        a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
        a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
      `):XL({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:c,endAngle:d});var S="M ".concat(m.x,",").concat(m.y,`
    A`).concat(s,",").concat(s,",0,0,").concat(+(f<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(f<0),",").concat(y.x,",").concat(y.y,`
    A`).concat(s,",").concat(s,",0,0,").concat(+(f<0),",").concat(b.x,",").concat(b.y,`
  `);if(a>0){var j=qh({cx:n,cy:r,radius:a,angle:c,sign:f,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),O=j.circleTangency,E=j.lineTangency,T=j.theta,N=qh({cx:n,cy:r,radius:a,angle:d,sign:-f,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),M=N.circleTangency,C=N.lineTangency,L=N.theta,D=l?Math.abs(c-d):Math.abs(c-d)-T-L;if(D<0&&s===0)return"".concat(S,"L").concat(n,",").concat(r,"Z");S+="L".concat(C.x,",").concat(C.y,`
      A`).concat(s,",").concat(s,",0,0,").concat(+(f<0),",").concat(M.x,",").concat(M.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(D>180),",").concat(+(f>0),",").concat(O.x,",").concat(O.y,`
      A`).concat(s,",").concat(s,",0,0,").concat(+(f<0),",").concat(E.x,",").concat(E.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},jge={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},QL=function(t){var n=a_(a_({},jge),t),r=n.cx,a=n.cy,i=n.innerRadius,s=n.outerRadius,o=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,d=n.startAngle,f=n.endAngle,h=n.className;if(s<i||d===f)return null;var p=be("recharts-sector",h),m=s-i,g=yn(o,m,0,!0),v;return g>0&&Math.abs(d-f)<360?v=wge({cx:r,cy:a,innerRadius:i,outerRadius:s,cornerRadius:Math.min(g,m/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:d,endAngle:f}):v=XL({cx:r,cy:a,innerRadius:i,outerRadius:s,startAngle:d,endAngle:f}),_.createElement("path",E1({},ie(n,!0),{className:p,d:v,role:"img"}))};function sd(e){"@babel/helpers - typeof";return sd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sd(e)}function T1(){return T1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T1.apply(this,arguments)}function i_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function s_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i_(Object(n),!0).forEach(function(r){Age(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Age(e,t,n){return t=Oge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oge(e){var t=Ege(e,"string");return sd(t)=="symbol"?t:t+""}function Ege(e,t){if(sd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o_={curveBasisClosed:Ane,curveBasisOpen:One,curveBasis:jne,curveBumpX:cne,curveBumpY:une,curveLinearClosed:Ene,curveLinear:Ng,curveMonotoneX:Tne,curveMonotoneY:Nne,curveNatural:Cne,curveStep:_ne,curveStepAfter:Mne,curveStepBefore:Pne},Kh=function(t){return t.x===+t.x&&t.y===+t.y},wu=function(t){return t.x},ju=function(t){return t.y},Tge=function(t,n){if(de(t))return t;var r="curve".concat(Eg(t));return(r==="curveMonotone"||r==="curveBump")&&n?o_["".concat(r).concat(n==="vertical"?"Y":"X")]:o_[r]||Ng},Nge=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,s=t.baseLine,o=t.layout,l=t.connectNulls,c=l===void 0?!1:l,d=Tge(r,o),f=c?i.filter(function(g){return Kh(g)}):i,h;if(Array.isArray(s)){var p=c?s.filter(function(g){return Kh(g)}):s,m=f.map(function(g,v){return s_(s_({},g),{},{base:p[v]})});return o==="vertical"?h=kh().y(ju).x1(wu).x0(function(g){return g.base.x}):h=kh().x(wu).y1(ju).y0(function(g){return g.base.y}),h.defined(Kh).curve(d),h(m)}return o==="vertical"&&G(s)?h=kh().y(ju).x1(wu).x0(s):G(s)?h=kh().x(wu).y1(ju).y0(s):h=K5().x(wu).y(ju),h.defined(Kh).curve(d),h(f)},eo=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var s=r&&r.length?Nge(t):a;return A.createElement("path",T1({},ie(t,!1),jm(t),{className:be("recharts-curve",n),d:s,ref:i}))},ZL={exports:{}},Cge="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",_ge=Cge,Pge=_ge;function JL(){}function e6(){}e6.resetWarningCache=JL;var Mge=function(){function e(r,a,i,s,o,l){if(l!==Pge){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:e6,resetWarningCache:JL};return n.PropTypes=n,n};ZL.exports=Mge();var Rge=ZL.exports;const ke=Ie(Rge),{getOwnPropertyNames:Dge,getOwnPropertySymbols:kge}=Object,{hasOwnProperty:$ge}=Object.prototype;function Ub(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Gh(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,s=i.get(n),o=i.get(r);if(s&&o)return s===r&&o===n;i.set(n,r),i.set(r,n);const l=e(n,r,a);return i.delete(n),i.delete(r),l}}function Lge(e){return e!=null?e[Symbol.toStringTag]:void 0}function l_(e){return Dge(e).concat(kge(e))}const zge=Object.hasOwn||((e,t)=>$ge.call(e,t));function Co(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Ige="__v",Bge="__o",Uge="_owner",{getOwnPropertyDescriptor:c_,keys:u_}=Object;function Fge(e,t){return e.byteLength===t.byteLength&&ty(new Uint8Array(e),new Uint8Array(t))}function Vge(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Hge(e,t){return e.byteLength===t.byteLength&&ty(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function qge(e,t){return Co(e.getTime(),t.getTime())}function Kge(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Gge(e,t){return e===t}function f_(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let s,o,l=0;for(;(s=i.next())&&!s.done;){const c=t.entries();let d=!1,f=0;for(;(o=c.next())&&!o.done;){if(a[f]){f++;continue}const h=s.value,p=o.value;if(n.equals(h[0],p[0],l,f,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){d=a[f]=!0;break}f++}if(!d)return!1;l++}return!0}const Yge=Co;function Wge(e,t,n){const r=u_(e);let a=r.length;if(u_(t).length!==a)return!1;for(;a-- >0;)if(!t6(e,t,n,r[a]))return!1;return!0}function Au(e,t,n){const r=l_(e);let a=r.length;if(l_(t).length!==a)return!1;let i,s,o;for(;a-- >0;)if(i=r[a],!t6(e,t,n,i)||(s=c_(e,i),o=c_(t,i),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function Xge(e,t){return Co(e.valueOf(),t.valueOf())}function Qge(e,t){return e.source===t.source&&e.flags===t.flags}function d_(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let s,o;for(;(s=i.next())&&!s.done;){const l=t.values();let c=!1,d=0;for(;(o=l.next())&&!o.done;){if(!a[d]&&n.equals(s.value,o.value,s.value,o.value,e,t,n)){c=a[d]=!0;break}d++}if(!c)return!1}return!0}function ty(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Zge(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function t6(e,t,n,r){return(r===Uge||r===Bge||r===Ige)&&(e.$$typeof||t.$$typeof)?!0:zge(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Jge="[object ArrayBuffer]",eve="[object Arguments]",tve="[object Boolean]",nve="[object DataView]",rve="[object Date]",ave="[object Error]",ive="[object Map]",sve="[object Number]",ove="[object Object]",lve="[object RegExp]",cve="[object Set]",uve="[object String]",fve={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},dve="[object URL]",hve=Object.prototype.toString;function pve({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:d,areSetsEqual:f,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:m}){return function(v,y,b){if(v===y)return!0;if(v==null||y==null)return!1;const x=typeof v;if(x!==typeof y)return!1;if(x!=="object")return x==="number"?o(v,y,b):x==="function"?i(v,y,b):!1;const w=v.constructor;if(w!==y.constructor)return!1;if(w===Object)return l(v,y,b);if(Array.isArray(v))return t(v,y,b);if(w===Date)return r(v,y,b);if(w===RegExp)return d(v,y,b);if(w===Map)return s(v,y,b);if(w===Set)return f(v,y,b);const S=hve.call(v);if(S===rve)return r(v,y,b);if(S===lve)return d(v,y,b);if(S===ive)return s(v,y,b);if(S===cve)return f(v,y,b);if(S===ove)return typeof v.then!="function"&&typeof y.then!="function"&&l(v,y,b);if(S===dve)return p(v,y,b);if(S===ave)return a(v,y,b);if(S===eve)return l(v,y,b);if(fve[S])return h(v,y,b);if(S===Jge)return e(v,y,b);if(S===nve)return n(v,y,b);if(S===tve||S===sve||S===uve)return c(v,y,b);if(m){let j=m[S];if(!j){const O=Lge(v);O&&(j=m[O])}if(j)return j(v,y,b)}return!1}}function mve({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Fge,areArraysEqual:n?Au:Vge,areDataViewsEqual:Hge,areDatesEqual:qge,areErrorsEqual:Kge,areFunctionsEqual:Gge,areMapsEqual:n?Ub(f_,Au):f_,areNumbersEqual:Yge,areObjectsEqual:n?Au:Wge,arePrimitiveWrappersEqual:Xge,areRegExpsEqual:Qge,areSetsEqual:n?Ub(d_,Au):d_,areTypedArraysEqual:n?Ub(ty,Au):ty,areUrlsEqual:Zge,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Gh(r.areArraysEqual),i=Gh(r.areMapsEqual),s=Gh(r.areObjectsEqual),o=Gh(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:o})}return r}function yve(e){return function(t,n,r,a,i,s,o){return e(t,n,o)}}function gve({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(o,l){const{cache:c=e?new WeakMap:void 0,meta:d}=n();return t(o,l,{cache:c,equals:r,meta:d,strict:a})};if(e)return function(o,l){return t(o,l,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(o,l){return t(o,l,i)}}const vve=us();us({strict:!0});us({circular:!0});us({circular:!0,strict:!0});us({createInternalComparator:()=>Co});us({strict:!0,createInternalComparator:()=>Co});us({circular:!0,createInternalComparator:()=>Co});us({circular:!0,createInternalComparator:()=>Co,strict:!0});function us(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=mve(e),s=pve(i),o=n?n(s):yve(s);return gve({circular:t,comparator:s,createState:r,equals:o,strict:a})}function bve(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function h_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):bve(a)};requestAnimationFrame(r)}function N1(e){"@babel/helpers - typeof";return N1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},N1(e)}function xve(e){return Ave(e)||jve(e)||wve(e)||Sve()}function Sve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wve(e,t){if(e){if(typeof e=="string")return p_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p_(e,t)}}function p_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function jve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ave(e){if(Array.isArray(e))return e}function Ove(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var s=i,o=xve(s),l=o[0],c=o.slice(1);if(typeof l=="number"){h_(a.bind(null,c),l);return}a(l),h_(a.bind(null,c));return}N1(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function od(e){"@babel/helpers - typeof";return od=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},od(e)}function m_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function y_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?m_(Object(n),!0).forEach(function(r){n6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function n6(e,t,n){return t=Eve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eve(e){var t=Tve(e,"string");return od(t)==="symbol"?t:String(t)}function Tve(e,t){if(od(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(od(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nve=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},Cve=function(t){return t},_ve=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},cf=function(t,n){return Object.keys(n).reduce(function(r,a){return y_(y_({},r),{},n6({},a,t(a,n[a])))},{})},g_=function(t,n,r){return t.map(function(a){return"".concat(_ve(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Pve(e,t){return Dve(e)||Rve(e,t)||r6(e,t)||Mve()}function Mve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Dve(e){if(Array.isArray(e))return e}function kve(e){return zve(e)||Lve(e)||r6(e)||$ve()}function $ve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function r6(e,t){if(e){if(typeof e=="string")return C1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C1(e,t)}}function Lve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function zve(e){if(Array.isArray(e))return C1(e)}function C1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ny=1e-4,a6=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},i6=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},v_=function(t,n){return function(r){var a=a6(t,n);return i6(a,r)}},Ive=function(t,n){return function(r){var a=a6(t,n),i=[].concat(kve(a.map(function(s,o){return s*o}).slice(1)),[0]);return i6(i,r)}},b_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],i=n[1],s=n[2],o=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,s=1,o=1;break;case"ease":a=.25,i=.1,s=.25,o=1;break;case"ease-in":a=.42,i=0,s=1,o=1;break;case"ease-out":a=.42,i=0,s=.58,o=1;break;case"ease-in-out":a=0,i=0,s=.58,o=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(v){return parseFloat(v)}),d=Pve(c,4);a=d[0],i=d[1],s=d[2],o=d[3]}}}var f=v_(a,s),h=v_(i,o),p=Ive(a,s),m=function(y){return y>1?1:y<0?0:y},g=function(y){for(var b=y>1?1:y,x=b,w=0;w<8;++w){var S=f(x)-b,j=p(x);if(Math.abs(S-b)<ny||j<ny)return h(x);x=m(x-S/j)}return h(x)};return g.isStepper=!1,g},Bve=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,s=t.dt,o=s===void 0?17:s,l=function(d,f,h){var p=-(d-f)*r,m=h*i,g=h+(p-m)*o/1e3,v=h*o/1e3+d;return Math.abs(v-f)<ny&&Math.abs(g)<ny?[f,0]:[v,g]};return l.isStepper=!0,l.dt=o,l},Uve=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return b_(a);case"spring":return Bve();default:if(a.split("(")[0]==="cubic-bezier")return b_(a)}return typeof a=="function"?a:null};function ld(e){"@babel/helpers - typeof";return ld=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ld(e)}function x_(e){return Hve(e)||Vve(e)||s6(e)||Fve()}function Fve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Vve(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hve(e){if(Array.isArray(e))return P1(e)}function S_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Wt(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){_1(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 _1(e,t,n){return t=qve(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qve(e){var t=Kve(e,"string");return ld(t)==="symbol"?t:String(t)}function Kve(e,t){if(ld(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ld(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gve(e,t){return Xve(e)||Wve(e,t)||s6(e,t)||Yve()}function Yve(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function s6(e,t){if(e){if(typeof e=="string")return P1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P1(e,t)}}function P1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wve(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Xve(e){if(Array.isArray(e))return e}var ry=function(t,n,r){return t+(n-t)*r},M1=function(t){var n=t.from,r=t.to;return n!==r},Qve=function e(t,n,r){var a=cf(function(i,s){if(M1(s)){var o=t(s.from,s.to,s.velocity),l=Gve(o,2),c=l[0],d=l[1];return Wt(Wt({},s),{},{from:c,velocity:d})}return s},n);return r<1?cf(function(i,s){return M1(s)?Wt(Wt({},s),{},{velocity:ry(s.velocity,a[i].velocity,r),from:ry(s.from,a[i].from,r)}):s},n):e(t,a,r-1)};const Zve=function(e,t,n,r,a){var i=Nve(e,t),s=i.reduce(function(v,y){return Wt(Wt({},v),{},_1({},y,[e[y],t[y]]))},{}),o=i.reduce(function(v,y){return Wt(Wt({},v),{},_1({},y,{from:e[y],velocity:0,to:t[y]}))},{}),l=-1,c,d,f=function(){return null},h=function(){return cf(function(y,b){return b.from},o)},p=function(){return!Object.values(o).filter(M1).length},m=function(y){c||(c=y);var b=y-c,x=b/n.dt;o=Qve(n,o,x),a(Wt(Wt(Wt({},e),t),h())),c=y,p()||(l=requestAnimationFrame(f))},g=function(y){d||(d=y);var b=(y-d)/r,x=cf(function(S,j){return ry.apply(void 0,x_(j).concat([n(b)]))},s);if(a(Wt(Wt(Wt({},e),t),x)),b<1)l=requestAnimationFrame(f);else{var w=cf(function(S,j){return ry.apply(void 0,x_(j).concat([n(1)]))},s);a(Wt(Wt(Wt({},e),t),w))}};return f=n.isStepper?m:g,function(){return requestAnimationFrame(f),function(){cancelAnimationFrame(l)}}};function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}var Jve=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function ebe(e,t){if(e==null)return{};var n=tbe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tbe(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function Fb(e){return ibe(e)||abe(e)||rbe(e)||nbe()}function nbe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rbe(e,t){if(e){if(typeof e=="string")return R1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R1(e,t)}}function abe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ibe(e){if(Array.isArray(e))return R1(e)}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(n),!0).forEach(function(r){$u(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $u(e,t,n){return t=o6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function obe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o6(r.key),r)}}function lbe(e,t,n){return t&&obe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function o6(e){var t=cbe(e,"string");return fc(t)==="symbol"?t:String(t)}function cbe(e,t){if(fc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ube(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D1(e,t)}function D1(e,t){return D1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},D1(e,t)}function fbe(e){var t=dbe();return function(){var r=ay(e),a;if(t){var i=ay(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return k1(this,a)}}function k1(e,t){if(t&&(fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $1(e)}function $1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dbe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function ay(e){return ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ay(e)}var Ur=function(e){ube(n,e);var t=fbe(n);function n(r,a){var i;sbe(this,n),i=t.call(this,r,a);var s=i.props,o=s.isActive,l=s.attributeName,c=s.from,d=s.to,f=s.steps,h=s.children,p=s.duration;if(i.handleStyleChange=i.handleStyleChange.bind($1(i)),i.changeStyle=i.changeStyle.bind($1(i)),!o||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:d}),k1(i);if(f&&f.length)i.state={style:f[0].style};else if(c){if(typeof h=="function")return i.state={style:c},k1(i);i.state={style:l?$u({},l,c):c}}else i.state={style:{}};return i}return lbe(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,s=a.canBegin;this.mounted=!0,!(!i||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,s=i.isActive,o=i.canBegin,l=i.attributeName,c=i.shouldReAnimate,d=i.to,f=i.from,h=this.state.style;if(o){if(!s){var p={style:l?$u({},l,d):d};this.state&&h&&(l&&h[l]!==d||!l&&h!==d)&&this.setState(p);return}if(!(vve(a.to,d)&&a.canBegin&&a.isActive)){var m=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var g=m||c?f:a.to;if(this.state&&h){var v={style:l?$u({},l,g):g};(l&&h[l]!==g||!l&&h!==g)&&this.setState(v)}this.runAnimation(_r(_r({},this.props),{},{from:g,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,s=a.from,o=a.to,l=a.duration,c=a.easing,d=a.begin,f=a.onAnimationEnd,h=a.onAnimationStart,p=Zve(s,o,Uve(c),l,this.changeStyle),m=function(){i.stopJSAnimation=p()};this.manager.start([h,d,m,l,f])}},{key:"runStepAnimation",value:function(a){var i=this,s=a.steps,o=a.begin,l=a.onAnimationStart,c=s[0],d=c.style,f=c.duration,h=f===void 0?0:f,p=function(g,v,y){if(y===0)return g;var b=v.duration,x=v.easing,w=x===void 0?"ease":x,S=v.style,j=v.properties,O=v.onAnimationEnd,E=y>0?s[y-1]:v,T=j||Object.keys(S);if(typeof w=="function"||w==="spring")return[].concat(Fb(g),[i.runJSAnimation.bind(i,{from:E.style,to:S,duration:b,easing:w}),b]);var N=g_(T,b,w),M=_r(_r(_r({},E.style),S),{},{transition:N});return[].concat(Fb(g),[M,b,O]).filter(Cve)};return this.manager.start([l].concat(Fb(s.reduce(p,[d,Math.max(h,o)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=Ove());var i=a.begin,s=a.duration,o=a.attributeName,l=a.to,c=a.easing,d=a.onAnimationStart,f=a.onAnimationEnd,h=a.steps,p=a.children,m=this.manager;if(this.unSubscribe=m.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var g=o?$u({},o,l):l,v=g_(Object.keys(g),s,c);m.start([d,i,_r(_r({},g),{},{transition:v}),s,f])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var s=a.duration;a.attributeName,a.easing;var o=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=ebe(a,Jve),c=A.Children.count(i),d=this.state.style;if(typeof i=="function")return i(d);if(!o||c===0||s<=0)return i;var f=function(p){var m=p.props,g=m.style,v=g===void 0?{}:g,y=m.className,b=A.cloneElement(p,_r(_r({},l),{},{style:_r(_r({},v),d),className:y}));return b};return c===1?f(A.Children.only(i)):_.createElement("div",null,A.Children.map(i,function(h){return f(h)}))}}]),n}(A.PureComponent);Ur.displayName="Animate";Ur.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ur.propTypes={from:ke.oneOfType([ke.object,ke.string]),to:ke.oneOfType([ke.object,ke.string]),attributeName:ke.string,duration:ke.number,begin:ke.number,easing:ke.oneOfType([ke.string,ke.func]),steps:ke.arrayOf(ke.shape({duration:ke.number.isRequired,style:ke.object.isRequired,easing:ke.oneOfType([ke.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ke.func]),properties:ke.arrayOf("string"),onAnimationEnd:ke.func})),children:ke.oneOfType([ke.node,ke.func]),isActive:ke.bool,canBegin:ke.bool,onAnimationEnd:ke.func,shouldReAnimate:ke.bool,onAnimationStart:ke.func,onAnimationReStart:ke.func};function cd(e){"@babel/helpers - typeof";return cd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cd(e)}function iy(){return iy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iy.apply(this,arguments)}function hbe(e,t){return gbe(e)||ybe(e,t)||mbe(e,t)||pbe()}function pbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mbe(e,t){if(e){if(typeof e=="string")return j_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j_(e,t)}}function j_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ybe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function gbe(e){if(Array.isArray(e))return e}function A_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function O_(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){vbe(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 vbe(e,t,n){return t=bbe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bbe(e){var t=xbe(e,"string");return cd(t)=="symbol"?t:t+""}function xbe(e,t){if(cd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var E_=function(t,n,r,a,i){var s=Math.min(Math.abs(r)/2,Math.abs(a)/2),o=a>=0?1:-1,l=r>=0?1:-1,c=a>=0&&r>=0||a<0&&r<0?1:0,d;if(s>0&&i instanceof Array){for(var f=[0,0,0,0],h=0,p=4;h<p;h++)f[h]=i[h]>s?s:i[h];d="M".concat(t,",").concat(n+o*f[0]),f[0]>0&&(d+="A ".concat(f[0],",").concat(f[0],",0,0,").concat(c,",").concat(t+l*f[0],",").concat(n)),d+="L ".concat(t+r-l*f[1],",").concat(n),f[1]>0&&(d+="A ".concat(f[1],",").concat(f[1],",0,0,").concat(c,`,
        `).concat(t+r,",").concat(n+o*f[1])),d+="L ".concat(t+r,",").concat(n+a-o*f[2]),f[2]>0&&(d+="A ".concat(f[2],",").concat(f[2],",0,0,").concat(c,`,
        `).concat(t+r-l*f[2],",").concat(n+a)),d+="L ".concat(t+l*f[3],",").concat(n+a),f[3]>0&&(d+="A ".concat(f[3],",").concat(f[3],",0,0,").concat(c,`,
        `).concat(t,",").concat(n+a-o*f[3])),d+="Z"}else if(s>0&&i===+i&&i>0){var m=Math.min(s,i);d="M ".concat(t,",").concat(n+o*m,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+l*m,",").concat(n,`
            L `).concat(t+r-l*m,",").concat(n,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+r,",").concat(n+o*m,`
            L `).concat(t+r,",").concat(n+a-o*m,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t+r-l*m,",").concat(n+a,`
            L `).concat(t+l*m,",").concat(n+a,`
            A `).concat(m,",").concat(m,",0,0,").concat(c,",").concat(t,",").concat(n+a-o*m," Z")}else d="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return d},Sbe=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,s=n.y,o=n.width,l=n.height;if(Math.abs(o)>0&&Math.abs(l)>0){var c=Math.min(i,i+o),d=Math.max(i,i+o),f=Math.min(s,s+l),h=Math.max(s,s+l);return r>=c&&r<=d&&a>=f&&a<=h}return!1},wbe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},bA=function(t){var n=O_(O_({},wbe),t),r=A.useRef(),a=A.useState(-1),i=hbe(a,2),s=i[0],o=i[1];A.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&o(w)}catch{}},[]);var l=n.x,c=n.y,d=n.width,f=n.height,h=n.radius,p=n.className,m=n.animationEasing,g=n.animationDuration,v=n.animationBegin,y=n.isAnimationActive,b=n.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||f!==+f||d===0||f===0)return null;var x=be("recharts-rectangle",p);return b?_.createElement(Ur,{canBegin:s>0,from:{width:d,height:f,x:l,y:c},to:{width:d,height:f,x:l,y:c},duration:g,animationEasing:m,isActive:b},function(w){var S=w.width,j=w.height,O=w.x,E=w.y;return _.createElement(Ur,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,isActive:y,easing:m},_.createElement("path",iy({},ie(n,!0),{className:x,d:E_(O,E,S,j,h),ref:r})))}):_.createElement("path",iy({},ie(n,!0),{className:x,d:E_(l,c,d,f,h)}))},jbe=["points","className","baseLinePoints","connectNulls"];function ul(){return ul=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ul.apply(this,arguments)}function Abe(e,t){if(e==null)return{};var n=Obe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Obe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function T_(e){return Cbe(e)||Nbe(e)||Tbe(e)||Ebe()}function Ebe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Tbe(e,t){if(e){if(typeof e=="string")return L1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L1(e,t)}}function Nbe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Cbe(e){if(Array.isArray(e))return L1(e)}function L1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var N_=function(t){return t&&t.x===+t.x&&t.y===+t.y},_be=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){N_(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),N_(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},uf=function(t,n){var r=_be(t);n&&(r=[r.reduce(function(i,s){return[].concat(T_(i),T_(s))},[])]);var a=r.map(function(i){return i.reduce(function(s,o,l){return"".concat(s).concat(l===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Pbe=function(t,n,r){var a=uf(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(uf(n.reverse(),r).slice(1))},Mbe=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,s=Abe(t,jbe);if(!n||!n.length)return null;var o=be("recharts-polygon",r);if(a&&a.length){var l=s.stroke&&s.stroke!=="none",c=Pbe(n,a,i);return _.createElement("g",{className:o},_.createElement("path",ul({},ie(s,!0),{fill:c.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:c})),l?_.createElement("path",ul({},ie(s,!0),{fill:"none",d:uf(n,i)})):null,l?_.createElement("path",ul({},ie(s,!0),{fill:"none",d:uf(a,i)})):null)}var d=uf(n,i);return _.createElement("path",ul({},ie(s,!0),{fill:d.slice(-1)==="Z"?s.fill:"none",className:o,d}))};function z1(){return z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z1.apply(this,arguments)}var ah=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,s=be("recharts-dot",i);return n===+n&&r===+r&&a===+a?A.createElement("circle",z1({},ie(t,!1),jm(t),{className:s,cx:n,cy:r,r:a})):null};function ud(e){"@babel/helpers - typeof";return ud=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ud(e)}var Rbe=["x","y","top","left","width","height","className"];function I1(){return I1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I1.apply(this,arguments)}function C_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Dbe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C_(Object(n),!0).forEach(function(r){kbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kbe(e,t,n){return t=$be(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $be(e){var t=Lbe(e,"string");return ud(t)=="symbol"?t:t+""}function Lbe(e,t){if(ud(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ud(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zbe(e,t){if(e==null)return{};var n=Ibe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ibe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Bbe=function(t,n,r,a,i,s){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(s,",").concat(n,"h").concat(r)},Ube=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,s=t.top,o=s===void 0?0:s,l=t.left,c=l===void 0?0:l,d=t.width,f=d===void 0?0:d,h=t.height,p=h===void 0?0:h,m=t.className,g=zbe(t,Rbe),v=Dbe({x:r,y:i,top:o,left:c,width:f,height:p},g);return!G(r)||!G(i)||!G(f)||!G(p)||!G(o)||!G(c)?null:_.createElement("path",I1({},ie(v,!0),{className:be("recharts-cross",m),d:Bbe(r,i,f,p,o,c)}))},Fbe=Bg,Vbe=bL,Hbe=ya;function qbe(e,t){return e&&e.length?Fbe(e,Hbe(t),Vbe):void 0}var Kbe=qbe;const Gbe=Ie(Kbe);var Ybe=Bg,Wbe=ya,Xbe=xL;function Qbe(e,t){return e&&e.length?Ybe(e,Wbe(t),Xbe):void 0}var Zbe=Qbe;const Jbe=Ie(Zbe);var e0e=["cx","cy","angle","ticks","axisLine"],t0e=["ticks","tick","angle","tickFormatter","stroke"];function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}function ff(){return ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ff.apply(this,arguments)}function __(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ms(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?__(Object(n),!0).forEach(function(r){Hg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):__(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P_(e,t){if(e==null)return{};var n=n0e(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function n0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function r0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c6(r.key),r)}}function a0e(e,t,n){return t&&M_(e.prototype,t),n&&M_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function i0e(e,t,n){return t=sy(t),s0e(e,l6()?Reflect.construct(t,n||[],sy(e).constructor):t.apply(e,n))}function s0e(e,t){if(t&&(dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return o0e(e)}function o0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l6=function(){return!!e})()}function sy(e){return sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sy(e)}function l0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B1(e,t)}function B1(e,t){return B1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},B1(e,t)}function Hg(e,t,n){return t=c6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c6(e){var t=c0e(e,"string");return dc(t)=="symbol"?t:t+""}function c0e(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qg=function(e){function t(){return r0e(this,t),i0e(this,t,arguments)}return l0e(t,e),a0e(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,s=i.angle,o=i.cx,l=i.cy;return et(o,l,a,s)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.angle,o=r.ticks,l=Gbe(o,function(d){return d.coordinate||0}),c=Jbe(o,function(d){return d.coordinate||0});return{cx:a,cy:i,startAngle:s,endAngle:s,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.angle,o=r.ticks,l=r.axisLine,c=P_(r,e0e),d=o.reduce(function(m,g){return[Math.min(m[0],g.coordinate),Math.max(m[1],g.coordinate)]},[1/0,-1/0]),f=et(a,i,d[0],s),h=et(a,i,d[1],s),p=ms(ms(ms({},ie(c,!1)),{},{fill:"none"},ie(l,!1)),{},{x1:f.x,y1:f.y,x2:h.x,y2:h.y});return _.createElement("line",ff({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,s=a.tick,o=a.angle,l=a.tickFormatter,c=a.stroke,d=P_(a,t0e),f=this.getTickTextAnchor(),h=ie(d,!1),p=ie(s,!1),m=i.map(function(g,v){var y=r.getTickValueCoord(g),b=ms(ms(ms(ms({textAnchor:f,transform:"rotate(".concat(90-o,", ").concat(y.x,", ").concat(y.y,")")},h),{},{stroke:"none",fill:c},p),{},{index:v},y),{},{payload:g});return _.createElement(Ae,ff({className:be("recharts-polar-radius-axis-tick",YL(s)),key:"tick-".concat(g.coordinate)},fo(r.props,g,v)),t.renderTickItem(s,b,l?l(g.value,v):g.value))});return _.createElement(Ae,{className:"recharts-polar-radius-axis-ticks"},m)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,s=r.tick;return!a||!a.length?null:_.createElement(Ae,{className:be("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),s&&this.renderTicks(),qt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var s;return _.isValidElement(r)?s=_.cloneElement(r,a):de(r)?s=r(a):s=_.createElement(ho,ff({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),s}}])}(A.PureComponent);Hg(qg,"displayName","PolarRadiusAxis");Hg(qg,"axisType","radiusAxis");Hg(qg,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Es.apply(this,arguments)}function R_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ys(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R_(Object(n),!0).forEach(function(r){Kg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function u0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,f6(r.key),r)}}function f0e(e,t,n){return t&&D_(e.prototype,t),n&&D_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function d0e(e,t,n){return t=oy(t),h0e(e,u6()?Reflect.construct(t,n||[],oy(e).constructor):t.apply(e,n))}function h0e(e,t){if(t&&(hc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return p0e(e)}function p0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u6=function(){return!!e})()}function oy(e){return oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},oy(e)}function m0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U1(e,t)}function U1(e,t){return U1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},U1(e,t)}function Kg(e,t,n){return t=f6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f6(e){var t=y0e(e,"string");return hc(t)=="symbol"?t:t+""}function y0e(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var g0e=Math.PI/180,k_=1e-5,Gg=function(e){function t(){return u0e(this,t),d0e(this,t,arguments)}return m0e(t,e),f0e(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,s=a.cy,o=a.radius,l=a.orientation,c=a.tickSize,d=c||8,f=et(i,s,o,r.coordinate),h=et(i,s,o+(l==="inner"?-1:1)*d,r.coordinate);return{x1:f.x,y1:f.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*g0e),s;return i>k_?s=a==="outer"?"start":"end":i<-k_?s=a==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.radius,o=r.axisLine,l=r.axisLineType,c=ys(ys({},ie(this.props,!1)),{},{fill:"none"},ie(o,!1));if(l==="circle")return _.createElement(ah,Es({className:"recharts-polar-angle-axis-line"},c,{cx:a,cy:i,r:s}));var d=this.props.ticks,f=d.map(function(h){return et(a,i,s,h.coordinate)});return _.createElement(Mbe,Es({className:"recharts-polar-angle-axis-line"},c,{points:f}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,s=a.tick,o=a.tickLine,l=a.tickFormatter,c=a.stroke,d=ie(this.props,!1),f=ie(s,!1),h=ys(ys({},d),{},{fill:"none"},ie(o,!1)),p=i.map(function(m,g){var v=r.getTickLineCoord(m),y=r.getTickTextAnchor(m),b=ys(ys(ys({textAnchor:y},d),{},{stroke:"none",fill:c},f),{},{index:g,payload:m,x:v.x2,y:v.y2});return _.createElement(Ae,Es({className:be("recharts-polar-angle-axis-tick",YL(s)),key:"tick-".concat(m.coordinate)},fo(r.props,m,g)),o&&_.createElement("line",Es({className:"recharts-polar-angle-axis-tick-line"},h,v)),s&&t.renderTickItem(s,b,l?l(m.value,g):m.value))});return _.createElement(Ae,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,s=r.axisLine;return i<=0||!a||!a.length?null:_.createElement(Ae,{className:be("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var s;return _.isValidElement(r)?s=_.cloneElement(r,a):de(r)?s=r(a):s=_.createElement(ho,Es({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),s}}])}(A.PureComponent);Kg(Gg,"displayName","PolarAngleAxis");Kg(Gg,"axisType","angleAxis");Kg(Gg,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var v0e=y4,b0e=v0e(Object.getPrototypeOf,Object),x0e=b0e,S0e=si,w0e=x0e,j0e=oi,A0e="[object Object]",O0e=Function.prototype,E0e=Object.prototype,d6=O0e.toString,T0e=E0e.hasOwnProperty,N0e=d6.call(Object);function C0e(e){if(!j0e(e)||S0e(e)!=A0e)return!1;var t=w0e(e);if(t===null)return!0;var n=T0e.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&d6.call(n)==N0e}var _0e=C0e;const P0e=Ie(_0e);var M0e=si,R0e=oi,D0e="[object Boolean]";function k0e(e){return e===!0||e===!1||R0e(e)&&M0e(e)==D0e}var $0e=k0e;const L0e=Ie($0e);function fd(e){"@babel/helpers - typeof";return fd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fd(e)}function ly(){return ly=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ly.apply(this,arguments)}function z0e(e,t){return F0e(e)||U0e(e,t)||B0e(e,t)||I0e()}function I0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function B0e(e,t){if(e){if(typeof e=="string")return $_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $_(e,t)}}function $_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function U0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function F0e(e){if(Array.isArray(e))return e}function L_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function z_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L_(Object(n),!0).forEach(function(r){V0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V0e(e,t,n){return t=H0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H0e(e){var t=q0e(e,"string");return fd(t)=="symbol"?t:t+""}function q0e(e,t){if(fd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var I_=function(t,n,r,a,i){var s=r-a,o;return o="M ".concat(t,",").concat(n),o+="L ".concat(t+r,",").concat(n),o+="L ".concat(t+r-s/2,",").concat(n+i),o+="L ".concat(t+r-s/2-a,",").concat(n+i),o+="L ".concat(t,",").concat(n," Z"),o},K0e={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},G0e=function(t){var n=z_(z_({},K0e),t),r=A.useRef(),a=A.useState(-1),i=z0e(a,2),s=i[0],o=i[1];A.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&o(x)}catch{}},[]);var l=n.x,c=n.y,d=n.upperWidth,f=n.lowerWidth,h=n.height,p=n.className,m=n.animationEasing,g=n.animationDuration,v=n.animationBegin,y=n.isUpdateAnimationActive;if(l!==+l||c!==+c||d!==+d||f!==+f||h!==+h||d===0&&f===0||h===0)return null;var b=be("recharts-trapezoid",p);return y?_.createElement(Ur,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:c},to:{upperWidth:d,lowerWidth:f,height:h,x:l,y:c},duration:g,animationEasing:m,isActive:y},function(x){var w=x.upperWidth,S=x.lowerWidth,j=x.height,O=x.x,E=x.y;return _.createElement(Ur,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:v,duration:g,easing:m},_.createElement("path",ly({},ie(n,!0),{className:b,d:I_(O,E,w,S,j),ref:r})))}):_.createElement("g",null,_.createElement("path",ly({},ie(n,!0),{className:b,d:I_(l,c,d,f,h)})))},Y0e=["option","shapeType","propTransformer","activeClassName","isActive"];function dd(e){"@babel/helpers - typeof";return dd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dd(e)}function W0e(e,t){if(e==null)return{};var n=X0e(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function X0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function B_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cy(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){Q0e(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 Q0e(e,t,n){return t=Z0e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z0e(e){var t=J0e(e,"string");return dd(t)=="symbol"?t:t+""}function J0e(e,t){if(dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function exe(e,t){return cy(cy({},t),e)}function txe(e,t){return e==="symbols"}function U_(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return _.createElement(bA,n);case"trapezoid":return _.createElement(G0e,n);case"sector":return _.createElement(QL,n);case"symbols":if(txe(t))return _.createElement(zj,n);break;default:return null}}function nxe(e){return A.isValidElement(e)?e.props:e}function h6(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?exe:r,i=e.activeClassName,s=i===void 0?"recharts-active-shape":i,o=e.isActive,l=W0e(e,Y0e),c;if(A.isValidElement(t))c=A.cloneElement(t,cy(cy({},l),nxe(t)));else if(de(t))c=t(l);else if(P0e(t)&&!L0e(t)){var d=a(t,l);c=_.createElement(U_,{shapeType:n,elementProps:d})}else{var f=l;c=_.createElement(U_,{shapeType:n,elementProps:f})}return o?_.createElement(Ae,{className:s},c):c}function Yg(e,t){return t!=null&&"trapezoids"in e.props}function Wg(e,t){return t!=null&&"sectors"in e.props}function hd(e,t){return t!=null&&"points"in e.props}function rxe(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&i}function axe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function ixe(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function sxe(e,t){var n;return Yg(e,t)?n=rxe:Wg(e,t)?n=axe:hd(e,t)&&(n=ixe),n}function oxe(e,t){var n;return Yg(e,t)?n="trapezoids":Wg(e,t)?n="sectors":hd(e,t)&&(n="points"),n}function lxe(e,t){if(Yg(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(Wg(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return hd(e,t)?t.payload:{}}function cxe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=oxe(n,t),i=lxe(n,t),s=r.filter(function(l,c){var d=po(i,l),f=n.props[a].filter(function(m){var g=sxe(n,t);return g(m,t)}),h=n.props[a].indexOf(f[f.length-1]),p=c===h;return d&&p}),o=r.indexOf(s[s.length-1]);return o}var Ep;function pc(e){"@babel/helpers - typeof";return pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pc(e)}function fl(){return fl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fl.apply(this,arguments)}function F_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Qe(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){yr(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 uxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,m6(r.key),r)}}function fxe(e,t,n){return t&&V_(e.prototype,t),n&&V_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function dxe(e,t,n){return t=uy(t),hxe(e,p6()?Reflect.construct(t,n||[],uy(e).constructor):t.apply(e,n))}function hxe(e,t){if(t&&(pc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pxe(e)}function pxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(p6=function(){return!!e})()}function uy(e){return uy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},uy(e)}function mxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F1(e,t)}function F1(e,t){return F1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},F1(e,t)}function yr(e,t,n){return t=m6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m6(e){var t=yxe(e,"string");return pc(t)=="symbol"?t:t+""}function yxe(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ci=function(e){function t(n){var r;return uxe(this,t),r=dxe(this,t,[n]),yr(r,"pieRef",null),yr(r,"sectorRefs",[]),yr(r,"id",Eo("recharts-pie-")),yr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),de(a)&&a()}),yr(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),de(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return mxe(t,e),fxe(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.label,o=i.labelLine,l=i.dataKey,c=i.valueKey,d=ie(this.props,!1),f=ie(s,!1),h=ie(o,!1),p=s&&s.offsetRadius||20,m=r.map(function(g,v){var y=(g.startAngle+g.endAngle)/2,b=et(g.cx,g.cy,g.outerRadius+p,y),x=Qe(Qe(Qe(Qe({},d),g),{},{stroke:"none"},f),{},{index:v,textAnchor:t.getTextAnchor(b.x,g.cx)},b),w=Qe(Qe(Qe(Qe({},d),g),{},{fill:"none",stroke:g.fill},h),{},{index:v,points:[et(g.cx,g.cy,g.outerRadius,y),b]}),S=l;return me(l)&&me(c)?S="value":me(l)&&(S=c),_.createElement(Ae,{key:"label-".concat(g.startAngle,"-").concat(g.endAngle,"-").concat(g.midAngle,"-").concat(v)},o&&t.renderLabelLineItem(o,w,"line"),t.renderLabelItem(s,x,wt(g,S)))});return _.createElement(Ae,{className:"recharts-pie-labels"},m)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,s=i.activeShape,o=i.blendStroke,l=i.inactiveShape;return r.map(function(c,d){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&r.length!==1)return null;var f=a.isActiveIndex(d),h=l&&a.hasActiveIndex()?l:null,p=f?s:h,m=Qe(Qe({},c),{},{stroke:o?c.fill:c.stroke,tabIndex:-1});return _.createElement(Ae,fl({ref:function(v){v&&!a.sectorRefs.includes(v)&&a.sectorRefs.push(v)},tabIndex:-1,className:"recharts-pie-sector"},fo(a.props,c,d),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(d)}),_.createElement(h6,fl({option:p,isActive:f,shapeType:"sector"},m)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,s=a.isAnimationActive,o=a.animationBegin,l=a.animationDuration,c=a.animationEasing,d=a.animationId,f=this.state,h=f.prevSectors,p=f.prevIsAnimationActive;return _.createElement(Ur,{begin:o,duration:l,isActive:s,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(d,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(m){var g=m.t,v=[],y=i&&i[0],b=y.startAngle;return i.forEach(function(x,w){var S=h&&h[w],j=w>0?Qn(x,"paddingAngle",0):0;if(S){var O=Dt(S.endAngle-S.startAngle,x.endAngle-x.startAngle),E=Qe(Qe({},x),{},{startAngle:b+j,endAngle:b+O(g)+j});v.push(E),b=E.endAngle}else{var T=x.endAngle,N=x.startAngle,M=Dt(0,T-N),C=M(g),L=Qe(Qe({},x),{},{startAngle:b+j,endAngle:b+C+j});v.push(L),b=L.endAngle}}),_.createElement(Ae,null,r.renderSectorsStatically(v))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var s=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[s].focus(),a.setState({sectorToFocus:s});break}case"ArrowRight":{var o=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,i=r.isAnimationActive,s=this.state.prevSectors;return i&&a&&a.length&&(!s||!po(s,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,i=a.hide,s=a.sectors,o=a.className,l=a.label,c=a.cx,d=a.cy,f=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,m=this.state.isAnimationFinished;if(i||!s||!s.length||!G(c)||!G(d)||!G(f)||!G(h))return null;var g=be("recharts-pie",o);return _.createElement(Ae,{tabIndex:this.props.rootTabIndex,className:g,ref:function(y){r.pieRef=y}},this.renderSectors(),l&&this.renderLabels(s),qt.renderCallByParent(this.props,null,!1),(!p||m)&&ca.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,i){if(_.isValidElement(r))return _.cloneElement(r,a);if(de(r))return r(a);var s=be("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return _.createElement(eo,fl({},a,{key:i,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(r,a,i){if(_.isValidElement(r))return _.cloneElement(r,a);var s=i;if(de(r)&&(s=r(a),_.isValidElement(s)))return s;var o=be("recharts-pie-label-text",typeof r!="boolean"&&!de(r)?r.className:"");return _.createElement(ho,fl({},a,{alignmentBaseline:"middle",className:o}),s)}}])}(A.PureComponent);Ep=ci;yr(ci,"displayName","Pie");yr(ci,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!os.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});yr(ci,"parseDeltaAngle",function(e,t){var n=mn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});yr(ci,"getRealPieData",function(e){var t=e.data,n=e.children,r=ie(e,!1),a=Zn(n,Rg);return t&&t.length?t.map(function(i,s){return Qe(Qe(Qe({payload:i},r),i),a&&a[s]&&a[s].props)}):a&&a.length?a.map(function(i){return Qe(Qe({},r),i.props)}):[]});yr(ci,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,s=GL(a,i),o=r+yn(e.cx,a,a/2),l=n+yn(e.cy,i,i/2),c=yn(e.innerRadius,s,0),d=yn(e.outerRadius,s,s*.8),f=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:o,cy:l,innerRadius:c,outerRadius:d,maxRadius:f}});yr(ci,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Qe(Qe({},t.type.defaultProps),t.props):t.props,a=Ep.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,s=r.startAngle,o=r.endAngle,l=r.paddingAngle,c=r.dataKey,d=r.nameKey,f=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),m=Ep.parseCoordinateOfPie(r,n),g=Ep.parseDeltaAngle(s,o),v=Math.abs(g),y=c;me(c)&&me(f)?(Ir(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y="value"):me(c)&&(Ir(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),y=f);var b=a.filter(function(E){return wt(E,y,0)!==0}).length,x=(v>=360?b:b-1)*l,w=v-b*p-x,S=a.reduce(function(E,T){var N=wt(T,y,0);return E+(G(N)?N:0)},0),j;if(S>0){var O;j=a.map(function(E,T){var N=wt(E,y,0),M=wt(E,d,T),C=(G(N)?N:0)/S,L;T?L=O.endAngle+mn(g)*l*(N!==0?1:0):L=s;var D=L+mn(g)*((N!==0?p:0)+C*w),k=(L+D)/2,P=(m.innerRadius+m.outerRadius)/2,$=[{name:M,value:N,payload:E,dataKey:y,type:h}],I=et(m.cx,m.cy,P,k);return O=Qe(Qe(Qe({percent:C,cornerRadius:i,name:M,tooltipPayload:$,midAngle:k,middleRadius:P,tooltipPosition:I},E),m),{},{value:wt(E,y),startAngle:L,endAngle:D,payload:E,paddingAngle:mn(g)*l}),O})}return Qe(Qe({},m),{},{sectors:j,data:a})});var gxe=Math.ceil,vxe=Math.max;function bxe(e,t,n,r){for(var a=-1,i=vxe(gxe((t-e)/(n||1)),0),s=Array(i);i--;)s[r?i:++a]=e,e+=n;return s}var xxe=bxe,Sxe=k4,H_=1/0,wxe=17976931348623157e292;function jxe(e){if(!e)return e===0?e:0;if(e=Sxe(e),e===H_||e===-H_){var t=e<0?-1:1;return t*wxe}return e===e?e:0}var y6=jxe,Axe=xxe,Oxe=Mg,Vb=y6;function Exe(e){return function(t,n,r){return r&&typeof r!="number"&&Oxe(t,n,r)&&(n=r=void 0),t=Vb(t),n===void 0?(n=t,t=0):n=Vb(n),r=r===void 0?t<n?1:-1:Vb(r),Axe(t,n,r,e)}}var Txe=Exe,Nxe=Txe,Cxe=Nxe(),_xe=Cxe;const fy=Ie(_xe);function pd(e){"@babel/helpers - typeof";return pd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},pd(e)}function q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function K_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q_(Object(n),!0).forEach(function(r){g6(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function g6(e,t,n){return t=Pxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pxe(e){var t=Mxe(e,"string");return pd(t)=="symbol"?t:t+""}function Mxe(e,t){if(pd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rxe=["Webkit","Moz","O","ms"],Dxe=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Rxe.reduce(function(i,s){return K_(K_({},i),{},g6({},s+r,n))},{});return a[t]=n,a};function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},mc(e)}function dy(){return dy=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dy.apply(this,arguments)}function G_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Hb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G_(Object(n),!0).forEach(function(r){Ln(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b6(r.key),r)}}function $xe(e,t,n){return t&&Y_(e.prototype,t),n&&Y_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lxe(e,t,n){return t=hy(t),zxe(e,v6()?Reflect.construct(t,n||[],hy(e).constructor):t.apply(e,n))}function zxe(e,t){if(t&&(mc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ixe(e)}function Ixe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(v6=function(){return!!e})()}function hy(e){return hy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hy(e)}function Bxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V1(e,t)}function V1(e,t){return V1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},V1(e,t)}function Ln(e,t,n){return t=b6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b6(e){var t=Uxe(e,"string");return mc(t)=="symbol"?t:t+""}function Uxe(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fxe=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,s=t.width,o=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,c=of().domain(fy(0,l)).range([i,i+s-o]),d=c.domain().map(function(f){return c(f)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(a),scale:c,scaleValues:d}},W_=function(t){return t.changedTouches&&!!t.changedTouches.length},yc=function(e){function t(n){var r;return kxe(this,t),r=Lxe(this,t,[n]),Ln(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),Ln(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),Ln(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,s=a.onDragEnd,o=a.startIndex;s==null||s({endIndex:i,startIndex:o})}),r.detachDragEndListener()}),Ln(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Ln(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Ln(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Ln(r,"handleSlideDragStart",function(a){var i=W_(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Bxe(t,e),$xe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,i=r.endX,s=this.state.scaleValues,o=this.props,l=o.gap,c=o.data,d=c.length-1,f=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(s,f),m=t.getIndexInRange(s,h);return{startIndex:p-p%l,endIndex:m===d?d:m-m%l}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,s=a.tickFormatter,o=a.dataKey,l=wt(i[r],o,r);return de(s)?s(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var a=this.state,i=a.slideMoveStartX,s=a.startX,o=a.endX,l=this.props,c=l.x,d=l.width,f=l.travellerWidth,h=l.startIndex,p=l.endIndex,m=l.onChange,g=r.pageX-i;g>0?g=Math.min(g,c+d-f-o,c+d-f-s):g<0&&(g=Math.max(g,c-s,c-o));var v=this.getIndex({startX:s+g,endX:o+g});(v.startIndex!==h||v.endIndex!==p)&&m&&m(v),this.setState({startX:s+g,endX:o+g,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=W_(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,i=a.brushMoveStartX,s=a.movingTravellerId,o=a.endX,l=a.startX,c=this.state[s],d=this.props,f=d.x,h=d.width,p=d.travellerWidth,m=d.onChange,g=d.gap,v=d.data,y={startX:this.state.startX,endX:this.state.endX},b=r.pageX-i;b>0?b=Math.min(b,f+h-p-c):b<0&&(b=Math.max(b,f-c)),y[s]=c+b;var x=this.getIndex(y),w=x.startIndex,S=x.endIndex,j=function(){var E=v.length-1;return s==="startX"&&(o>l?w%g===0:S%g===0)||o<l&&S===E||s==="endX"&&(o>l?S%g===0:w%g===0)||o>l&&S===E};this.setState(Ln(Ln({},s,c+b),"brushMoveStartX",r.pageX),function(){m&&j()&&m(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,s=this.state,o=s.scaleValues,l=s.startX,c=s.endX,d=this.state[a],f=o.indexOf(d);if(f!==-1){var h=f+r;if(!(h===-1||h>=o.length)){var p=o[h];a==="startX"&&p>=c||a==="endX"&&p<=l||this.setState(Ln({},a,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,i=r.y,s=r.width,o=r.height,l=r.fill,c=r.stroke;return _.createElement("rect",{stroke:c,fill:l,x:a,y:i,width:s,height:o})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,s=r.width,o=r.height,l=r.data,c=r.children,d=r.padding,f=A.Children.only(c);return f?_.cloneElement(f,{x:a,y:i,width:s,height:o,margin:d,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,s,o=this,l=this.props,c=l.y,d=l.travellerWidth,f=l.height,h=l.traveller,p=l.ariaLabel,m=l.data,g=l.startIndex,v=l.endIndex,y=Math.max(r,this.props.x),b=Hb(Hb({},ie(this.props,!1)),{},{x:y,y:c,width:d,height:f}),x=p||"Min value: ".concat((i=m[g])===null||i===void 0?void 0:i.name,", Max value: ").concat((s=m[v])===null||s===void 0?void 0:s.name);return _.createElement(Ae,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),o.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,b))}},{key:"renderSlide",value:function(r,a){var i=this.props,s=i.y,o=i.height,l=i.stroke,c=i.travellerWidth,d=Math.min(r,a)+c,f=Math.max(Math.abs(a-r)-c,0);return _.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:d,y:s,width:f,height:o})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,s=r.y,o=r.height,l=r.travellerWidth,c=r.stroke,d=this.state,f=d.startX,h=d.endX,p=5,m={pointerEvents:"none",fill:c};return _.createElement(Ae,{className:"recharts-brush-texts"},_.createElement(ho,dy({textAnchor:"end",verticalAnchor:"middle",x:Math.min(f,h)-p,y:s+o/2},m),this.getTextOfTick(a)),_.createElement(ho,dy({textAnchor:"start",verticalAnchor:"middle",x:Math.max(f,h)+l+p,y:s+o/2},m),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,s=r.children,o=r.x,l=r.y,c=r.width,d=r.height,f=r.alwaysShowText,h=this.state,p=h.startX,m=h.endX,g=h.isTextActive,v=h.isSlideMoving,y=h.isTravellerMoving,b=h.isTravellerFocused;if(!a||!a.length||!G(o)||!G(l)||!G(c)||!G(d)||c<=0||d<=0)return null;var x=be("recharts-brush",i),w=_.Children.count(s)===1,S=Dxe("userSelect","none");return _.createElement(Ae,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(p,m),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(m,"endX"),(g||v||y||b||f)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,s=r.width,o=r.height,l=r.stroke,c=Math.floor(i+o/2)-1;return _.createElement(_.Fragment,null,_.createElement("rect",{x:a,y:i,width:s,height:o,fill:l,stroke:"none"}),_.createElement("line",{x1:a+1,y1:c,x2:a+s-1,y2:c,fill:"none",stroke:"#fff"}),_.createElement("line",{x1:a+1,y1:c+2,x2:a+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return _.isValidElement(r)?i=_.cloneElement(r,a):de(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,s=r.width,o=r.x,l=r.travellerWidth,c=r.updateId,d=r.startIndex,f=r.endIndex;if(i!==a.prevData||c!==a.prevUpdateId)return Hb({prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:o,prevWidth:s},i&&i.length?Fxe({data:i,width:s,x:o,travellerWidth:l,startIndex:d,endIndex:f}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||o!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([o,o+s-l]);var h=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:o,prevWidth:s,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,a){for(var i=r.length,s=0,o=i-1;o-s>1;){var l=Math.floor((s+o)/2);r[l]>a?o=l:s=l}return a>=r[o]?o:s}}])}(A.PureComponent);Ln(yc,"displayName","Brush");Ln(yc,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var Vxe=qj;function Hxe(e,t){var n;return Vxe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var qxe=Hxe,Kxe=l4,Gxe=ya,Yxe=qxe,Wxe=Dn,Xxe=Mg;function Qxe(e,t,n){var r=Wxe(e)?Kxe:Yxe;return n&&Xxe(e,t,n)&&(t=void 0),r(e,Gxe(t))}var Zxe=Qxe;const Jxe=Ie(Zxe);var ua=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},X_=_4;function e1e(e,t,n){t=="__proto__"&&X_?X_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var t1e=e1e,n1e=t1e,r1e=N4,a1e=ya;function i1e(e,t){var n={};return t=a1e(t),r1e(e,function(r,a,i){n1e(n,a,t(r,a,i))}),n}var s1e=i1e;const o1e=Ie(s1e);function l1e(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var c1e=l1e,u1e=qj;function f1e(e,t){var n=!0;return u1e(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var d1e=f1e,h1e=c1e,p1e=d1e,m1e=ya,y1e=Dn,g1e=Mg;function v1e(e,t,n){var r=y1e(e)?h1e:p1e;return n&&g1e(e,t,n)&&(t=void 0),r(e,m1e(t))}var b1e=v1e;const x6=Ie(b1e);var x1e=["x","y"];function md(e){"@babel/helpers - typeof";return md=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},md(e)}function H1(){return H1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H1.apply(this,arguments)}function Q_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ou(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q_(Object(n),!0).forEach(function(r){S1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S1e(e,t,n){return t=w1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function w1e(e){var t=j1e(e,"string");return md(t)=="symbol"?t:t+""}function j1e(e,t){if(md(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(md(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A1e(e,t){if(e==null)return{};var n=O1e(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function O1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function E1e(e,t){var n=e.x,r=e.y,a=A1e(e,x1e),i="".concat(n),s=parseInt(i,10),o="".concat(r),l=parseInt(o,10),c="".concat(t.height||a.height),d=parseInt(c,10),f="".concat(t.width||a.width),h=parseInt(f,10);return Ou(Ou(Ou(Ou(Ou({},t),a),s?{x:s}:{}),l?{y:l}:{}),{},{height:d,width:h,name:t.name,radius:t.radius})}function Z_(e){return _.createElement(h6,H1({shapeType:"rectangle",propTransformer:E1e,activeClassName:"recharts-active-bar"},e))}var T1e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=G(r)||Wee(r);return i?t(r,a):(i||yo(),n)}},N1e=["value","background"],S6;function gc(e){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}function C1e(e,t){if(e==null)return{};var n=_1e(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function 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)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},py.apply(this,arguments)}function J_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ot(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J_(Object(n),!0).forEach(function(r){zi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function P1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,j6(r.key),r)}}function M1e(e,t,n){return t&&eP(e.prototype,t),n&&eP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function R1e(e,t,n){return t=my(t),D1e(e,w6()?Reflect.construct(t,n||[],my(e).constructor):t.apply(e,n))}function D1e(e,t){if(t&&(gc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k1e(e)}function k1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w6=function(){return!!e})()}function my(e){return my=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},my(e)}function $1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q1(e,t)}function q1(e,t){return q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},q1(e,t)}function zi(e,t,n){return t=j6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function j6(e){var t=L1e(e,"string");return gc(t)=="symbol"?t:t+""}function L1e(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _o=function(e){function t(){var n;P1e(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=R1e(this,t,[].concat(a)),zi(n,"state",{isAnimationFinished:!1}),zi(n,"id",Eo("recharts-bar-")),zi(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),zi(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return $1e(t,e),M1e(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,s=i.shape,o=i.dataKey,l=i.activeIndex,c=i.activeBar,d=ie(this.props,!1);return r&&r.map(function(f,h){var p=h===l,m=p?c:s,g=Ot(Ot(Ot({},d),f),{},{isActive:p,option:m,index:h,dataKey:o,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return _.createElement(Ae,py({className:"recharts-bar-rectangle"},fo(a.props,f,h),{key:"rectangle-".concat(f==null?void 0:f.x,"-").concat(f==null?void 0:f.y,"-").concat(f==null?void 0:f.value,"-").concat(h)}),_.createElement(Z_,g))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,s=a.layout,o=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,d=a.animationEasing,f=a.animationId,h=this.state.prevData;return _.createElement(Ur,{begin:l,duration:c,isActive:o,easing:d,from:{t:0},to:{t:1},key:"bar-".concat(f),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var m=p.t,g=i.map(function(v,y){var b=h&&h[y];if(b){var x=Dt(b.x,v.x),w=Dt(b.y,v.y),S=Dt(b.width,v.width),j=Dt(b.height,v.height);return Ot(Ot({},v),{},{x:x(m),y:w(m),width:S(m),height:j(m)})}if(s==="horizontal"){var O=Dt(0,v.height),E=O(m);return Ot(Ot({},v),{},{y:v.y+v.height-E,height:E})}var T=Dt(0,v.width),N=T(m);return Ot(Ot({},v),{},{width:N})});return _.createElement(Ae,null,r.renderRectanglesStatically(g))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,s=this.state.prevData;return i&&a&&a.length&&(!s||!po(s,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,s=a.dataKey,o=a.activeIndex,l=ie(this.props.background,!1);return i.map(function(c,d){c.value;var f=c.background,h=C1e(c,N1e);if(!f)return null;var p=Ot(Ot(Ot(Ot(Ot({},h),{},{fill:"#eee"},f),l),fo(r.props,c,d)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:d,className:"recharts-bar-background-rectangle"});return _.createElement(Z_,py({key:"background-bar-".concat(d),option:r.props.background,isActive:d===o},p))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.data,o=i.xAxis,l=i.yAxis,c=i.layout,d=i.children,f=Zn(d,rh);if(!f)return null;var h=c==="vertical"?s[0].height/2:s[0].width/2,p=function(v,y){var b=Array.isArray(v.value)?v.value[1]:v.value;return{x:v.x,y:v.y,value:b,errorVal:wt(v,y)}},m={clipPath:r?"url(#clipPath-".concat(a,")"):null};return _.createElement(Ae,m,f.map(function(g){return _.cloneElement(g,{key:"error-bar-".concat(a,"-").concat(g.props.dataKey),data:s,xAxis:o,yAxis:l,layout:c,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,s=r.className,o=r.xAxis,l=r.yAxis,c=r.left,d=r.top,f=r.width,h=r.height,p=r.isAnimationActive,m=r.background,g=r.id;if(a||!i||!i.length)return null;var v=this.state.isAnimationFinished,y=be("recharts-bar",s),b=o&&o.allowDataOverflow,x=l&&l.allowDataOverflow,w=b||x,S=me(g)?this.id:g;return _.createElement(Ae,{className:y},b||x?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(S)},_.createElement("rect",{x:b?c:c-f/2,y:x?d:d-h/2,width:b?f:f*2,height:x?h:h*2}))):null,_.createElement(Ae,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(S,")"):null},m?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,S),(!p||v)&&ca.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])}(A.PureComponent);S6=_o;zi(_o,"displayName","Bar");zi(_o,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!os.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});zi(_o,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,s=e.yAxis,o=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,d=e.dataStartIndex,f=e.displayedData,h=e.offset,p=hye(r,n);if(!p)return null;var m=t.layout,g=n.type.defaultProps,v=g!==void 0?Ot(Ot({},g),n.props):n.props,y=v.dataKey,b=v.children,x=v.minPointSize,w=m==="horizontal"?s:i,S=c?w.scale.domain():null,j=xye({numericAxis:w}),O=Zn(b,Rg),E=f.map(function(T,N){var M,C,L,D,k,P;c?M=pye(c[d+N],S):(M=wt(T,y),Array.isArray(M)||(M=[j,M]));var $=T1e(x,S6.defaultProps.minPointSize)(M[1],N);if(m==="horizontal"){var I,F=[s.scale(M[0]),s.scale(M[1])],H=F[0],W=F[1];C=KC({axis:i,ticks:o,bandSize:a,offset:p.offset,entry:T,index:N}),L=(I=W??H)!==null&&I!==void 0?I:void 0,D=p.size;var K=H-W;if(k=Number.isNaN(K)?0:K,P={x:C,y:s.y,width:D,height:s.height},Math.abs($)>0&&Math.abs(k)<Math.abs($)){var te=mn(k||$)*(Math.abs($)-Math.abs(k));L-=te,k+=te}}else{var Z=[i.scale(M[0]),i.scale(M[1])],ye=Z[0],J=Z[1];if(C=ye,L=KC({axis:s,ticks:l,bandSize:a,offset:p.offset,entry:T,index:N}),D=J-ye,k=p.size,P={x:i.x,y:L,width:i.width,height:k},Math.abs($)>0&&Math.abs(D)<Math.abs($)){var ot=mn(D||$)*(Math.abs($)-Math.abs(D));D+=ot}}return Ot(Ot(Ot({},T),{},{x:C,y:L,width:D,height:k,value:c?M:M[1],payload:T,background:P},O&&O[N]&&O[N].props),{},{tooltipPayload:[qL(n,T)],tooltipPosition:{x:C+D/2,y:L+k/2}})});return Ot({data:E,layout:m},h)});function yd(e){"@babel/helpers - typeof";return yd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yd(e)}function z1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A6(r.key),r)}}function I1e(e,t,n){return t&&tP(e.prototype,t),n&&tP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Dr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nP(Object(n),!0).forEach(function(r){Xg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xg(e,t,n){return t=A6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A6(e){var t=B1e(e,"string");return yd(t)=="symbol"?t:t+""}function B1e(e,t){if(yd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xA=function(t,n,r,a,i){var s=t.width,o=t.height,l=t.layout,c=t.children,d=Object.keys(n),f={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:o-r.bottom,bottomMirror:o-r.bottom},h=!!In(c,_o);return d.reduce(function(p,m){var g=n[m],v=g.orientation,y=g.domain,b=g.padding,x=b===void 0?{}:b,w=g.mirror,S=g.reversed,j="".concat(v).concat(w?"Mirror":""),O,E,T,N,M;if(g.type==="number"&&(g.padding==="gap"||g.padding==="no-gap")){var C=y[1]-y[0],L=1/0,D=g.categoricalDomain.sort(Zee);if(D.forEach(function(Z,ye){ye>0&&(L=Math.min((Z||0)-(D[ye-1]||0),L))}),Number.isFinite(L)){var k=L/C,P=g.layout==="vertical"?r.height:r.width;if(g.padding==="gap"&&(O=k*P/2),g.padding==="no-gap"){var $=yn(t.barCategoryGap,k*P),I=k*P/2;O=I-$-(I-$)/P*$}}}a==="xAxis"?E=[r.left+(x.left||0)+(O||0),r.left+r.width-(x.right||0)-(O||0)]:a==="yAxis"?E=l==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(O||0),r.top+r.height-(x.bottom||0)-(O||0)]:E=g.range,S&&(E=[E[1],E[0]]);var F=UL(g,i,h),H=F.scale,W=F.realScaleType;H.domain(y).range(E),FL(H);var K=VL(H,Dr(Dr({},g),{},{realScaleType:W}));a==="xAxis"?(M=v==="top"&&!w||v==="bottom"&&w,T=r.left,N=f[j]-M*g.height):a==="yAxis"&&(M=v==="left"&&!w||v==="right"&&w,T=f[j]-M*g.width,N=r.top);var te=Dr(Dr(Dr({},g),K),{},{realScaleType:W,x:T,y:N,scale:H,width:a==="xAxis"?r.width:g.width,height:a==="yAxis"?r.height:g.height});return te.bandSize=Zm(te,K),!g.hide&&a==="xAxis"?f[j]+=(M?-1:1)*te.height:g.hide||(f[j]+=(M?-1:1)*te.width),Dr(Dr({},p),{},Xg({},m,te))},{})},O6=function(t,n){var r=t.x,a=t.y,i=n.x,s=n.y;return{x:Math.min(r,i),y:Math.min(a,s),width:Math.abs(i-r),height:Math.abs(s-a)}},U1e=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return O6({x:n,y:r},{x:a,y:i})},E6=function(){function e(t){z1e(this,e),this.scale=t}return I1e(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(n)+o}default:return this.scale(n)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])}();Xg(E6,"EPS",1e-4);var SA=function(t){var n=Object.keys(t).reduce(function(r,a){return Dr(Dr({},r),{},Xg({},a,E6.create(t[a])))},{});return Dr(Dr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.bandAware,o=i.position;return o1e(a,function(l,c){return n[c].apply(l,{bandAware:s,position:o})})},isInRange:function(a){return x6(a,function(i,s){return n[s].isInRange(i)})}})};function F1e(e){return(e%180+180)%180}var V1e=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=F1e(a),s=i*Math.PI/180,o=Math.atan(r/n),l=s>o&&s<Math.PI-o?r/Math.sin(s):n/Math.cos(s);return Math.abs(l)},H1e=ya,q1e=Zd,K1e=_g;function G1e(e){return function(t,n,r){var a=Object(t);if(!q1e(t)){var i=H1e(n);t=K1e(t),n=function(o){return i(a[o],o,a)}}var s=e(t,n,r);return s>-1?a[i?t[s]:s]:void 0}}var Y1e=G1e,W1e=y6;function X1e(e){var t=W1e(e),n=t%1;return t===t?n?t-n:t:0}var Q1e=X1e,Z1e=w4,J1e=ya,eSe=Q1e,tSe=Math.max;function nSe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:eSe(n);return a<0&&(a=tSe(r+a,0)),Z1e(e,J1e(t),a)}var rSe=nSe,aSe=Y1e,iSe=rSe,sSe=aSe(iSe),oSe=sSe;const lSe=Ie(oSe);var cSe=tee(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),wA=A.createContext(void 0),jA=A.createContext(void 0),T6=A.createContext(void 0),N6=A.createContext({}),C6=A.createContext(void 0),_6=A.createContext(0),P6=A.createContext(0),rP=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,s=t.clipPathId,o=t.children,l=t.width,c=t.height,d=cSe(i);return _.createElement(wA.Provider,{value:r},_.createElement(jA.Provider,{value:a},_.createElement(N6.Provider,{value:i},_.createElement(T6.Provider,{value:d},_.createElement(C6.Provider,{value:s},_.createElement(_6.Provider,{value:c},_.createElement(P6.Provider,{value:l},o)))))))},uSe=function(){return A.useContext(C6)},M6=function(t){var n=A.useContext(wA);n==null&&yo();var r=n[t];return r==null&&yo(),r},fSe=function(){var t=A.useContext(wA);return ji(t)},dSe=function(){var t=A.useContext(jA),n=lSe(t,function(r){return x6(r.domain,Number.isFinite)});return n||ji(t)},R6=function(t){var n=A.useContext(jA);n==null&&yo();var r=n[t];return r==null&&yo(),r},hSe=function(){var t=A.useContext(T6);return t},pSe=function(){return A.useContext(N6)},AA=function(){return A.useContext(P6)},OA=function(){return A.useContext(_6)};function vc(e){"@babel/helpers - typeof";return vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vc(e)}function mSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ySe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k6(r.key),r)}}function gSe(e,t,n){return t&&ySe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vSe(e,t,n){return t=yy(t),bSe(e,D6()?Reflect.construct(t,n||[],yy(e).constructor):t.apply(e,n))}function bSe(e,t){if(t&&(vc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xSe(e)}function xSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function D6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(D6=function(){return!!e})()}function yy(e){return yy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yy(e)}function SSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K1(e,t)}function K1(e,t){return K1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},K1(e,t)}function aP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function iP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aP(Object(n),!0).forEach(function(r){EA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EA(e,t,n){return t=k6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k6(e){var t=wSe(e,"string");return vc(t)=="symbol"?t:t+""}function wSe(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function jSe(e,t){return TSe(e)||ESe(e,t)||OSe(e,t)||ASe()}function ASe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OSe(e,t){if(e){if(typeof e=="string")return sP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sP(e,t)}}function sP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ESe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function TSe(e){if(Array.isArray(e))return e}function G1(){return G1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G1.apply(this,arguments)}var NSe=function(t,n){var r;return _.isValidElement(t)?r=_.cloneElement(t,n):de(t)?r=t(n):r=_.createElement("line",G1({},n,{className:"recharts-reference-line-line"})),r},CSe=function(t,n,r,a,i,s,o,l,c){var d=i.x,f=i.y,h=i.width,p=i.height;if(r){var m=c.y,g=t.y.apply(m,{position:s});if(ua(c,"discard")&&!t.y.isInRange(g))return null;var v=[{x:d+h,y:g},{x:d,y:g}];return l==="left"?v.reverse():v}if(n){var y=c.x,b=t.x.apply(y,{position:s});if(ua(c,"discard")&&!t.x.isInRange(b))return null;var x=[{x:b,y:f+p},{x:b,y:f}];return o==="top"?x.reverse():x}if(a){var w=c.segment,S=w.map(function(j){return t.apply(j,{position:s})});return ua(c,"discard")&&Jxe(S,function(j){return!t.isInRange(j)})?null:S}return null};function _Se(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,s=e.shape,o=e.className,l=e.alwaysShow,c=uSe(),d=M6(a),f=R6(i),h=hSe();if(!c||!h)return null;Ir(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=SA({x:d.scale,y:f.scale}),m=$t(t),g=$t(n),v=r&&r.length===2,y=CSe(p,m,g,v,h,e.position,d.orientation,f.orientation,e);if(!y)return null;var b=jSe(y,2),x=b[0],w=x.x,S=x.y,j=b[1],O=j.x,E=j.y,T=ua(e,"hidden")?"url(#".concat(c,")"):void 0,N=iP(iP({clipPath:T},ie(e,!0)),{},{x1:w,y1:S,x2:O,y2:E});return _.createElement(Ae,{className:be("recharts-reference-line",o)},NSe(s,N),qt.renderCallByParent(e,U1e({x1:w,y1:S,x2:O,y2:E})))}var TA=function(e){function t(){return mSe(this,t),vSe(this,t,arguments)}return SSe(t,e),gSe(t,[{key:"render",value:function(){return _.createElement(_Se,this.props)}}])}(_.Component);EA(TA,"displayName","ReferenceLine");EA(TA,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y1.apply(this,arguments)}function bc(e){"@babel/helpers - typeof";return bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bc(e)}function oP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oP(Object(n),!0).forEach(function(r){Qg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MSe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L6(r.key),r)}}function RSe(e,t,n){return t&&MSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function DSe(e,t,n){return t=gy(t),kSe(e,$6()?Reflect.construct(t,n||[],gy(e).constructor):t.apply(e,n))}function kSe(e,t){if(t&&(bc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $Se(e)}function $Se(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($6=function(){return!!e})()}function gy(e){return gy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gy(e)}function LSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W1(e,t)}function W1(e,t){return W1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},W1(e,t)}function Qg(e,t,n){return t=L6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L6(e){var t=zSe(e,"string");return bc(t)=="symbol"?t:t+""}function zSe(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ISe=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,s=SA({x:a.scale,y:i.scale}),o=s.apply({x:n,y:r},{bandAware:!0});return ua(t,"discard")&&!s.isInRange(o)?null:o},Zg=function(e){function t(){return PSe(this,t),DSe(this,t,arguments)}return LSe(t,e),RSe(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,s=r.r,o=r.alwaysShow,l=r.clipPathId,c=$t(a),d=$t(i);if(Ir(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!d)return null;var f=ISe(this.props);if(!f)return null;var h=f.x,p=f.y,m=this.props,g=m.shape,v=m.className,y=ua(this.props,"hidden")?"url(#".concat(l,")"):void 0,b=lP(lP({clipPath:y},ie(this.props,!0)),{},{cx:h,cy:p});return _.createElement(Ae,{className:be("recharts-reference-dot",v)},t.renderDot(g,b),qt.renderCallByParent(this.props,{x:h-s,y:p-s,width:2*s,height:2*s}))}}])}(_.Component);Qg(Zg,"displayName","ReferenceDot");Qg(Zg,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Qg(Zg,"renderDot",function(e,t){var n;return _.isValidElement(e)?n=_.cloneElement(e,t):de(e)?n=e(t):n=_.createElement(ah,Y1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function X1(){return X1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},X1.apply(this,arguments)}function xc(e){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}function cP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function uP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cP(Object(n),!0).forEach(function(r){Jg(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function USe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I6(r.key),r)}}function FSe(e,t,n){return t&&USe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VSe(e,t,n){return t=vy(t),HSe(e,z6()?Reflect.construct(t,n||[],vy(e).constructor):t.apply(e,n))}function HSe(e,t){if(t&&(xc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qSe(e)}function qSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z6=function(){return!!e})()}function vy(e){return vy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vy(e)}function KSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Q1(e,t)}function Q1(e,t){return Q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Q1(e,t)}function Jg(e,t,n){return t=I6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I6(e){var t=GSe(e,"string");return xc(t)=="symbol"?t:t+""}function GSe(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var YSe=function(t,n,r,a,i){var s=i.x1,o=i.x2,l=i.y1,c=i.y2,d=i.xAxis,f=i.yAxis;if(!d||!f)return null;var h=SA({x:d.scale,y:f.scale}),p={x:t?h.x.apply(s,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(l,{position:"start"}):h.y.rangeMin},m={x:n?h.x.apply(o,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(c,{position:"end"}):h.y.rangeMax};return ua(i,"discard")&&(!h.isInRange(p)||!h.isInRange(m))?null:O6(p,m)},ev=function(e){function t(){return BSe(this,t),VSe(this,t,arguments)}return KSe(t,e),FSe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,s=r.y1,o=r.y2,l=r.className,c=r.alwaysShow,d=r.clipPathId;Ir(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var f=$t(a),h=$t(i),p=$t(s),m=$t(o),g=this.props.shape;if(!f&&!h&&!p&&!m&&!g)return null;var v=YSe(f,h,p,m,this.props);if(!v&&!g)return null;var y=ua(this.props,"hidden")?"url(#".concat(d,")"):void 0;return _.createElement(Ae,{className:be("recharts-reference-area",l)},t.renderRect(g,uP(uP({clipPath:y},ie(this.props,!0)),v)),qt.renderCallByParent(this.props,v))}}])}(_.Component);Jg(ev,"displayName","ReferenceArea");Jg(ev,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Jg(ev,"renderRect",function(e,t){var n;return _.isValidElement(e)?n=_.cloneElement(e,t):de(e)?n=e(t):n=_.createElement(bA,X1({},t,{className:"recharts-reference-area-rect"})),n});function B6(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function WSe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return V1e(r,n)}function XSe(e,t,n){var r=n==="width",a=e.x,i=e.y,s=e.width,o=e.height;return t===1?{start:r?a:i,end:r?a+s:i+o}:{start:r?a+s:i+o,end:r?a:i}}function by(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function QSe(e,t){return B6(e,t+1)}function ZSe(e,t,n,r,a){for(var i=(r||[]).slice(),s=t.start,o=t.end,l=0,c=1,d=s,f=function(){var m=r==null?void 0:r[l];if(m===void 0)return{v:B6(r,c)};var g=l,v,y=function(){return v===void 0&&(v=n(m,g)),v},b=m.coordinate,x=l===0||by(e,b,y,d,o);x||(l=0,d=s,c+=1),x&&(d=b+e*(y()/2+a),l+=c)},h;c<=i.length;)if(h=f(),h)return h.v;return[]}function gd(e){"@babel/helpers - typeof";return gd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gd(e)}function fP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ln(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fP(Object(n),!0).forEach(function(r){JSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JSe(e,t,n){return t=ewe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ewe(e){var t=twe(e,"string");return gd(t)=="symbol"?t:t+""}function twe(e,t){if(gd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nwe(e,t,n,r,a){for(var i=(r||[]).slice(),s=i.length,o=t.start,l=t.end,c=function(h){var p=i[h],m,g=function(){return m===void 0&&(m=n(p,h)),m};if(h===s-1){var v=e*(p.coordinate+e*g()/2-l);i[h]=p=ln(ln({},p),{},{tickCoord:v>0?p.coordinate-v*e:p.coordinate})}else i[h]=p=ln(ln({},p),{},{tickCoord:p.coordinate});var y=by(e,p.tickCoord,g,o,l);y&&(l=p.tickCoord-e*(g()/2+a),i[h]=ln(ln({},p),{},{isShow:!0}))},d=s-1;d>=0;d--)c(d);return i}function rwe(e,t,n,r,a,i){var s=(r||[]).slice(),o=s.length,l=t.start,c=t.end;if(i){var d=r[o-1],f=n(d,o-1),h=e*(d.coordinate+e*f/2-c);s[o-1]=d=ln(ln({},d),{},{tickCoord:h>0?d.coordinate-h*e:d.coordinate});var p=by(e,d.tickCoord,function(){return f},l,c);p&&(c=d.tickCoord-e*(f/2+a),s[o-1]=ln(ln({},d),{},{isShow:!0}))}for(var m=i?o-1:o,g=function(b){var x=s[b],w,S=function(){return w===void 0&&(w=n(x,b)),w};if(b===0){var j=e*(x.coordinate-e*S()/2-l);s[b]=x=ln(ln({},x),{},{tickCoord:j<0?x.coordinate-j*e:x.coordinate})}else s[b]=x=ln(ln({},x),{},{tickCoord:x.coordinate});var O=by(e,x.tickCoord,S,l,c);O&&(l=x.tickCoord+e*(S()/2+a),s[b]=ln(ln({},x),{},{isShow:!0}))},v=0;v<m;v++)g(v);return s}function NA(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,s=e.minTickGap,o=e.orientation,l=e.interval,c=e.tickFormatter,d=e.unit,f=e.angle;if(!a||!a.length||!r)return[];if(G(l)||os.isSsr)return QSe(a,typeof l=="number"&&G(l)?l:0);var h=[],p=o==="top"||o==="bottom"?"width":"height",m=d&&p==="width"?sf(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},g=function(x,w){var S=de(c)?c(x.value,w):x.value;return p==="width"?WSe(sf(S,{fontSize:t,letterSpacing:n}),m,f):sf(S,{fontSize:t,letterSpacing:n})[p]},v=a.length>=2?mn(a[1].coordinate-a[0].coordinate):1,y=XSe(i,v,p);return l==="equidistantPreserveStart"?ZSe(v,y,g,a,s):(l==="preserveStart"||l==="preserveStartEnd"?h=rwe(v,y,g,a,s,l==="preserveStartEnd"):h=nwe(v,y,g,a,s),h.filter(function(b){return b.isShow}))}var awe=["viewBox"],iwe=["viewBox"],swe=["ticks"];function Sc(e){"@babel/helpers - typeof";return Sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sc(e)}function dl(){return dl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dl.apply(this,arguments)}function dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dP(Object(n),!0).forEach(function(r){CA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qb(e,t){if(e==null)return{};var n=owe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function owe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function lwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,F6(r.key),r)}}function cwe(e,t,n){return t&&hP(e.prototype,t),n&&hP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function uwe(e,t,n){return t=xy(t),fwe(e,U6()?Reflect.construct(t,n||[],xy(e).constructor):t.apply(e,n))}function fwe(e,t){if(t&&(Sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dwe(e)}function dwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function U6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(U6=function(){return!!e})()}function xy(e){return xy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xy(e)}function hwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Z1(e,t)}function Z1(e,t){return Z1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Z1(e,t)}function CA(e,t,n){return t=F6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F6(e){var t=pwe(e,"string");return Sc(t)=="symbol"?t:t+""}function pwe(e,t){if(Sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var tu=function(e){function t(n){var r;return lwe(this,t),r=uwe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return hwe(t,e),cwe(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,s=qb(r,awe),o=this.props,l=o.viewBox,c=qb(o,iwe);return!jl(i,l)||!jl(s,c)||!jl(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.x,s=a.y,o=a.width,l=a.height,c=a.orientation,d=a.tickSize,f=a.mirror,h=a.tickMargin,p,m,g,v,y,b,x=f?-1:1,w=r.tickSize||d,S=G(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":p=m=r.coordinate,v=s+ +!f*l,g=v-x*w,b=g-x*h,y=S;break;case"left":g=v=r.coordinate,m=i+ +!f*o,p=m-x*w,y=p-x*h,b=S;break;case"right":g=v=r.coordinate,m=i+ +f*o,p=m+x*w,y=p+x*h,b=S;break;default:p=m=r.coordinate,v=s+ +f*l,g=v+x*w,b=g+x*h,y=S;break}return{line:{x1:p,y1:g,x2:m,y2:v},tick:{x:y,y:b}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,s;switch(a){case"left":s=i?"start":"end";break;case"right":s=i?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=i?"start":"end";break;default:s=i?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,s=r.width,o=r.height,l=r.orientation,c=r.mirror,d=r.axisLine,f=Mt(Mt(Mt({},ie(this.props,!1)),ie(d,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!c||l==="bottom"&&c);f=Mt(Mt({},f),{},{x1:a,y1:i+h*o,x2:a+s,y2:i+h*o})}else{var p=+(l==="left"&&!c||l==="right"&&c);f=Mt(Mt({},f),{},{x1:a+p*s,y1:i,x2:a+p*s,y2:i+o})}return _.createElement("line",dl({},f,{className:be("recharts-cartesian-axis-line",Qn(d,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var s=this,o=this.props,l=o.tickLine,c=o.stroke,d=o.tick,f=o.tickFormatter,h=o.unit,p=NA(Mt(Mt({},this.props),{},{ticks:r}),a,i),m=this.getTickTextAnchor(),g=this.getTickVerticalAnchor(),v=ie(this.props,!1),y=ie(d,!1),b=Mt(Mt({},v),{},{fill:"none"},ie(l,!1)),x=p.map(function(w,S){var j=s.getTickLineCoord(w),O=j.line,E=j.tick,T=Mt(Mt(Mt(Mt({textAnchor:m,verticalAnchor:g},v),{},{stroke:"none",fill:c},y),E),{},{index:S,payload:w,visibleTicksCount:p.length,tickFormatter:f});return _.createElement(Ae,dl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},fo(s.props,w,S)),l&&_.createElement("line",dl({},b,O,{className:be("recharts-cartesian-axis-tick-line",Qn(l,"className"))})),d&&t.renderTickItem(d,T,"".concat(de(f)?f(w.value,S):w.value).concat(h||"")))});return _.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,s=a.width,o=a.height,l=a.ticksGenerator,c=a.className,d=a.hide;if(d)return null;var f=this.props,h=f.ticks,p=qb(f,swe),m=h;return de(l)&&(m=h&&h.length>0?l(this.props):l(p)),s<=0||o<=0||!m||!m.length?null:_.createElement(Ae,{className:be("recharts-cartesian-axis",c),ref:function(v){r.layerReference=v}},i&&this.renderAxisLine(),this.renderTicks(m,this.state.fontSize,this.state.letterSpacing),qt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var s,o=be(a.className,"recharts-cartesian-axis-tick-value");return _.isValidElement(r)?s=_.cloneElement(r,Mt(Mt({},a),{},{className:o})):de(r)?s=r(Mt(Mt({},a),{},{className:o})):s=_.createElement(ho,dl({},a,{className:"recharts-cartesian-axis-tick-value"}),i),s}}])}(A.Component);CA(tu,"displayName","CartesianAxis");CA(tu,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var mwe=["x1","y1","x2","y2","key"],ywe=["offset"];function go(e){"@babel/helpers - typeof";return go=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},go(e)}function pP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pP(Object(n),!0).forEach(function(r){gwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gwe(e,t,n){return t=vwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vwe(e){var t=bwe(e,"string");return go(t)=="symbol"?t:t+""}function bwe(e,t){if(go(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(go(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ds(){return Ds=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ds.apply(this,arguments)}function mP(e,t){if(e==null)return{};var n=xwe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Swe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,i=t.y,s=t.width,o=t.height,l=t.ry;return _.createElement("rect",{x:a,y:i,ry:l,width:s,height:o,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function V6(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(de(e))n=e(t);else{var r=t.x1,a=t.y1,i=t.x2,s=t.y2,o=t.key,l=mP(t,mwe),c=ie(l,!1);c.offset;var d=mP(c,ywe);n=_.createElement("line",Ds({},d,{x1:r,y1:a,x2:i,y2:s,fill:"none",key:o}))}return n}function wwe(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(o,l){var c=cn(cn({},e),{},{x1:t,y1:o,x2:t+n,y2:o,key:"line-".concat(l),index:l});return V6(a,c)});return _.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function jwe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,i=e.verticalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(o,l){var c=cn(cn({},e),{},{x1:o,y1:t,x2:o,y2:t+n,key:"line-".concat(l),index:l});return V6(a,c)});return _.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Awe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,i=e.width,s=e.height,o=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var d=o.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==d[0]&&d.unshift(0);var f=d.map(function(h,p){var m=!d[p+1],g=m?a+s-h:d[p+1]-h;if(g<=0)return null;var v=p%t.length;return _.createElement("rect",{key:"react-".concat(p),y:h,x:r,height:g,width:i,stroke:"none",fill:t[v],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},f)}function Owe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,i=e.x,s=e.y,o=e.width,l=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var d=c.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==d[0]&&d.unshift(0);var f=d.map(function(h,p){var m=!d[p+1],g=m?i+o-h:d[p+1]-h;if(g<=0)return null;var v=p%r.length;return _.createElement("rect",{key:"react-".concat(p),x:h,y:s,width:g,height:l,stroke:"none",fill:r[v],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return _.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},f)}var Ewe=function(t,n){var r=t.xAxis,a=t.width,i=t.height,s=t.offset;return BL(NA(cn(cn(cn({},tu.defaultProps),r),{},{ticks:La(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.left,s.left+s.width,n)},Twe=function(t,n){var r=t.yAxis,a=t.width,i=t.height,s=t.offset;return BL(NA(cn(cn(cn({},tu.defaultProps),r),{},{ticks:La(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.top,s.top+s.height,n)},zo={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Tp(e){var t,n,r,a,i,s,o=AA(),l=OA(),c=pSe(),d=cn(cn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:zo.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:zo.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:zo.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:zo.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:zo.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:zo.verticalFill,x:G(e.x)?e.x:c.left,y:G(e.y)?e.y:c.top,width:G(e.width)?e.width:c.width,height:G(e.height)?e.height:c.height}),f=d.x,h=d.y,p=d.width,m=d.height,g=d.syncWithTicks,v=d.horizontalValues,y=d.verticalValues,b=fSe(),x=dSe();if(!G(p)||p<=0||!G(m)||m<=0||!G(f)||f!==+f||!G(h)||h!==+h)return null;var w=d.verticalCoordinatesGenerator||Ewe,S=d.horizontalCoordinatesGenerator||Twe,j=d.horizontalPoints,O=d.verticalPoints;if((!j||!j.length)&&de(S)){var E=v&&v.length,T=S({yAxis:x?cn(cn({},x),{},{ticks:E?v:x.ticks}):void 0,width:o,height:l,offset:c},E?!0:g);Ir(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(go(T),"]")),Array.isArray(T)&&(j=T)}if((!O||!O.length)&&de(w)){var N=y&&y.length,M=w({xAxis:b?cn(cn({},b),{},{ticks:N?y:b.ticks}):void 0,width:o,height:l,offset:c},N?!0:g);Ir(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(go(M),"]")),Array.isArray(M)&&(O=M)}return _.createElement("g",{className:"recharts-cartesian-grid"},_.createElement(Swe,{fill:d.fill,fillOpacity:d.fillOpacity,x:d.x,y:d.y,width:d.width,height:d.height,ry:d.ry}),_.createElement(wwe,Ds({},d,{offset:c,horizontalPoints:j,xAxis:b,yAxis:x})),_.createElement(jwe,Ds({},d,{offset:c,verticalPoints:O,xAxis:b,yAxis:x})),_.createElement(Awe,Ds({},d,{horizontalPoints:j})),_.createElement(Owe,Ds({},d,{verticalPoints:O})))}Tp.displayName="CartesianGrid";var Nwe=["type","layout","connectNulls","ref"],Cwe=["key"];function wc(e){"@babel/helpers - typeof";return wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wc(e)}function yP(e,t){if(e==null)return{};var n=_we(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _we(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function df(){return df=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},df.apply(this,arguments)}function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){kr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Io(e){return Dwe(e)||Rwe(e)||Mwe(e)||Pwe()}function Pwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mwe(e,t){if(e){if(typeof e=="string")return J1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J1(e,t)}}function Rwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Dwe(e){if(Array.isArray(e))return J1(e)}function J1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,q6(r.key),r)}}function $we(e,t,n){return t&&vP(e.prototype,t),n&&vP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lwe(e,t,n){return t=Sy(t),zwe(e,H6()?Reflect.construct(t,n||[],Sy(e).constructor):t.apply(e,n))}function zwe(e,t){if(t&&(wc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Iwe(e)}function Iwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H6=function(){return!!e})()}function Sy(e){return Sy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sy(e)}function Bwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eS(e,t)}function eS(e,t){return eS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},eS(e,t)}function kr(e,t,n){return t=q6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q6(e){var t=Uwe(e,"string");return wc(t)=="symbol"?t:t+""}function Uwe(e,t){if(wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ih=function(e){function t(){var n;kwe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Lwe(this,t,[].concat(a)),kr(n,"state",{isAnimationFinished:!0,totalLength:0}),kr(n,"generateSimpleStrokeDasharray",function(s,o){return"".concat(o,"px ").concat(s-o,"px")}),kr(n,"getStrokeDasharray",function(s,o,l){var c=l.reduce(function(y,b){return y+b});if(!c)return n.generateSimpleStrokeDasharray(o,s);for(var d=Math.floor(s/c),f=s%c,h=o-s,p=[],m=0,g=0;m<l.length;g+=l[m],++m)if(g+l[m]>f){p=[].concat(Io(l.slice(0,m)),[f-g]);break}var v=p.length%2===0?[0,h]:[h];return[].concat(Io(t.repeat(l,d)),Io(p),v).map(function(y){return"".concat(y,"px")}).join(", ")}),kr(n,"id",Eo("recharts-line-")),kr(n,"pathRef",function(s){n.mainCurve=s}),kr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),kr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Bwe(t,e),$we(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.points,o=i.xAxis,l=i.yAxis,c=i.layout,d=i.children,f=Zn(d,rh);if(!f)return null;var h=function(g,v){return{x:g.x,y:g.y,value:g.value,errorVal:wt(g.payload,v)}},p={clipPath:r?"url(#clipPath-".concat(a,")"):null};return _.createElement(Ae,p,f.map(function(m){return _.cloneElement(m,{key:"bar-".concat(m.props.dataKey),data:s,xAxis:o,yAxis:l,layout:c,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,a,i){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.dot,c=o.points,d=o.dataKey,f=ie(this.props,!1),h=ie(l,!0),p=c.map(function(g,v){var y=$n($n($n({key:"dot-".concat(v),r:3},f),h),{},{index:v,cx:g.x,cy:g.y,value:g.value,dataKey:d,payload:g.payload,points:c});return t.renderDotItem(l,y)}),m={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return _.createElement(Ae,df({className:"recharts-line-dots",key:"dots"},m),p)}},{key:"renderCurveStatically",value:function(r,a,i,s){var o=this.props,l=o.type,c=o.layout,d=o.connectNulls;o.ref;var f=yP(o,Nwe),h=$n($n($n({},ie(f,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:r},s),{},{type:l,layout:c,connectNulls:d});return _.createElement(eo,df({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var i=this,s=this.props,o=s.points,l=s.strokeDasharray,c=s.isAnimationActive,d=s.animationBegin,f=s.animationDuration,h=s.animationEasing,p=s.animationId,m=s.animateNewValues,g=s.width,v=s.height,y=this.state,b=y.prevPoints,x=y.totalLength;return _.createElement(Ur,{begin:d,duration:f,isActive:c,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var S=w.t;if(b){var j=b.length/o.length,O=o.map(function(C,L){var D=Math.floor(L*j);if(b[D]){var k=b[D],P=Dt(k.x,C.x),$=Dt(k.y,C.y);return $n($n({},C),{},{x:P(S),y:$(S)})}if(m){var I=Dt(g*2,C.x),F=Dt(v/2,C.y);return $n($n({},C),{},{x:I(S),y:F(S)})}return $n($n({},C),{},{x:C.x,y:C.y})});return i.renderCurveStatically(O,r,a)}var E=Dt(0,x),T=E(S),N;if(l){var M="".concat(l).split(/[,\s]+/gim).map(function(C){return parseFloat(C)});N=i.getStrokeDasharray(T,x,M)}else N=i.generateSimpleStrokeDasharray(x,T);return i.renderCurveStatically(o,r,a,{strokeDasharray:N})})}},{key:"renderCurve",value:function(r,a){var i=this.props,s=i.points,o=i.isAnimationActive,l=this.state,c=l.prevPoints,d=l.totalLength;return o&&s&&s.length&&(!c&&d>0||!po(c,s))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(s,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,s=a.dot,o=a.points,l=a.className,c=a.xAxis,d=a.yAxis,f=a.top,h=a.left,p=a.width,m=a.height,g=a.isAnimationActive,v=a.id;if(i||!o||!o.length)return null;var y=this.state.isAnimationFinished,b=o.length===1,x=be("recharts-line",l),w=c&&c.allowDataOverflow,S=d&&d.allowDataOverflow,j=w||S,O=me(v)?this.id:v,E=(r=ie(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},T=E.r,N=T===void 0?3:T,M=E.strokeWidth,C=M===void 0?2:M,L=R5(s)?s:{},D=L.clipDot,k=D===void 0?!0:D,P=N*2+C;return _.createElement(Ae,{className:x},w||S?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(O)},_.createElement("rect",{x:w?h:h-p/2,y:S?f:f-m/2,width:w?p:p*2,height:S?m:m*2})),!k&&_.createElement("clipPath",{id:"clipPath-dots-".concat(O)},_.createElement("rect",{x:h-P/2,y:f-P/2,width:p+P,height:m+P}))):null,!b&&this.renderCurve(j,O),this.renderErrorBar(j,O),(b||s)&&this.renderDots(j,k,O),(!g||y)&&ca.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var i=r.length%2!==0?[].concat(Io(r),[0]):r,s=[],o=0;o<a;++o)s=[].concat(Io(s),Io(i));return s}},{key:"renderDotItem",value:function(r,a){var i;if(_.isValidElement(r))i=_.cloneElement(r,a);else if(de(r))i=r(a);else{var s=a.key,o=yP(a,Cwe),l=be("recharts-line-dot",typeof r!="boolean"?r.className:"");i=_.createElement(ah,df({key:s},o,{className:l}))}return i}}])}(A.PureComponent);kr(ih,"displayName","Line");kr(ih,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!os.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});kr(ih,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,s=e.dataKey,o=e.bandSize,l=e.displayedData,c=e.offset,d=t.layout,f=l.map(function(h,p){var m=wt(h,s);return d==="horizontal"?{x:Qm({axis:n,ticks:a,bandSize:o,entry:h,index:p}),y:me(m)?null:r.scale(m),value:m,payload:h}:{x:me(m)?null:n.scale(m),y:Qm({axis:r,ticks:i,bandSize:o,entry:h,index:p}),value:m,payload:h}});return $n({points:f,layout:d},c)});var Fwe=["layout","type","stroke","connectNulls","isRange","ref"],Vwe=["key"],K6;function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function G6(e,t){if(e==null)return{};var n=Hwe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ks(){return ks=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ks.apply(this,arguments)}function bP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bP(Object(n),!0).forEach(function(r){aa(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,W6(r.key),r)}}function Kwe(e,t,n){return t&&xP(e.prototype,t),n&&xP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gwe(e,t,n){return t=wy(t),Ywe(e,Y6()?Reflect.construct(t,n||[],wy(e).constructor):t.apply(e,n))}function Ywe(e,t){if(t&&(jc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Wwe(e)}function Wwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y6=function(){return!!e})()}function wy(e){return wy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wy(e)}function Xwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tS(e,t)}function tS(e,t){return tS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},tS(e,t)}function aa(e,t,n){return t=W6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W6(e){var t=Qwe(e,"string");return jc(t)=="symbol"?t:t+""}function Qwe(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var fs=function(e){function t(){var n;qwe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Gwe(this,t,[].concat(a)),aa(n,"state",{isAnimationFinished:!0}),aa(n,"id",Eo("recharts-area-")),aa(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),de(s)&&s()}),aa(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),de(s)&&s()}),n}return Xwe(t,e),Kwe(t,[{key:"renderDots",value:function(r,a,i){var s=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(s&&!o)return null;var l=this.props,c=l.dot,d=l.points,f=l.dataKey,h=ie(this.props,!1),p=ie(c,!0),m=d.map(function(v,y){var b=mi(mi(mi({key:"dot-".concat(y),r:3},h),p),{},{index:y,cx:v.x,cy:v.y,dataKey:f,value:v.value,payload:v.payload,points:d});return t.renderDotItem(c,b)}),g={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return _.createElement(Ae,ks({className:"recharts-area-dots"},g),m)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,i=a.baseLine,s=a.points,o=a.strokeWidth,l=s[0].x,c=s[s.length-1].x,d=r*Math.abs(l-c),f=Li(s.map(function(h){return h.y||0}));return G(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(Li(i.map(function(h){return h.y||0})),f)),G(f)?_.createElement("rect",{x:l<c?l:l-d,y:0,width:d,height:Math.floor(f+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,i=a.baseLine,s=a.points,o=a.strokeWidth,l=s[0].y,c=s[s.length-1].y,d=r*Math.abs(l-c),f=Li(s.map(function(h){return h.x||0}));return G(i)&&typeof i=="number"?f=Math.max(i,f):i&&Array.isArray(i)&&i.length&&(f=Math.max(Li(i.map(function(h){return h.x||0})),f)),G(f)?_.createElement("rect",{x:0,y:l<c?l:l-d,width:f+(o?parseInt("".concat(o),10):1),height:Math.floor(d)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,i,s){var o=this.props,l=o.layout,c=o.type,d=o.stroke,f=o.connectNulls,h=o.isRange;o.ref;var p=G6(o,Fwe);return _.createElement(Ae,{clipPath:i?"url(#clipPath-".concat(s,")"):null},_.createElement(eo,ks({},ie(p,!0),{points:r,connectNulls:f,type:c,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),d!=="none"&&_.createElement(eo,ks({},ie(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:f,fill:"none",points:r})),d!=="none"&&h&&_.createElement(eo,ks({},ie(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:f,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var i=this,s=this.props,o=s.points,l=s.baseLine,c=s.isAnimationActive,d=s.animationBegin,f=s.animationDuration,h=s.animationEasing,p=s.animationId,m=this.state,g=m.prevPoints,v=m.prevBaseLine;return _.createElement(Ur,{begin:d,duration:f,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(y){var b=y.t;if(g){var x=g.length/o.length,w=o.map(function(E,T){var N=Math.floor(T*x);if(g[N]){var M=g[N],C=Dt(M.x,E.x),L=Dt(M.y,E.y);return mi(mi({},E),{},{x:C(b),y:L(b)})}return E}),S;if(G(l)&&typeof l=="number"){var j=Dt(v,l);S=j(b)}else if(me(l)||Yc(l)){var O=Dt(v,0);S=O(b)}else S=l.map(function(E,T){var N=Math.floor(T*x);if(v[N]){var M=v[N],C=Dt(M.x,E.x),L=Dt(M.y,E.y);return mi(mi({},E),{},{x:C(b),y:L(b)})}return E});return i.renderAreaStatically(w,S,r,a)}return _.createElement(Ae,null,_.createElement("defs",null,_.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(b))),_.createElement(Ae,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(o,l,r,a)))})}},{key:"renderArea",value:function(r,a){var i=this.props,s=i.points,o=i.baseLine,l=i.isAnimationActive,c=this.state,d=c.prevPoints,f=c.prevBaseLine,h=c.totalLength;return l&&s&&s.length&&(!d&&h>0||!po(d,s)||!po(f,o))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(s,o,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,s=a.dot,o=a.points,l=a.className,c=a.top,d=a.left,f=a.xAxis,h=a.yAxis,p=a.width,m=a.height,g=a.isAnimationActive,v=a.id;if(i||!o||!o.length)return null;var y=this.state.isAnimationFinished,b=o.length===1,x=be("recharts-area",l),w=f&&f.allowDataOverflow,S=h&&h.allowDataOverflow,j=w||S,O=me(v)?this.id:v,E=(r=ie(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},T=E.r,N=T===void 0?3:T,M=E.strokeWidth,C=M===void 0?2:M,L=R5(s)?s:{},D=L.clipDot,k=D===void 0?!0:D,P=N*2+C;return _.createElement(Ae,{className:x},w||S?_.createElement("defs",null,_.createElement("clipPath",{id:"clipPath-".concat(O)},_.createElement("rect",{x:w?d:d-p/2,y:S?c:c-m/2,width:w?p:p*2,height:S?m:m*2})),!k&&_.createElement("clipPath",{id:"clipPath-dots-".concat(O)},_.createElement("rect",{x:d-P/2,y:c-P/2,width:p+P,height:m+P}))):null,b?null:this.renderArea(j,O),(s||b)&&this.renderDots(j,k,O),(!g||y)&&ca.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(A.PureComponent);K6=fs;aa(fs,"displayName","Area");aa(fs,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!os.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});aa(fs,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,s=t.props.baseValue,o=s??i;if(G(o)&&typeof o=="number")return o;var l=a==="horizontal"?r:n,c=l.scale.domain();if(l.type==="number"){var d=Math.max(c[0],c[1]),f=Math.min(c[0],c[1]);return o==="dataMin"?f:o==="dataMax"||d<0?d:Math.max(Math.min(c[0],c[1]),0)}return o==="dataMin"?c[0]:o==="dataMax"?c[1]:c[0]});aa(fs,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,s=e.yAxisTicks,o=e.bandSize,l=e.dataKey,c=e.stackedData,d=e.dataStartIndex,f=e.displayedData,h=e.offset,p=t.layout,m=c&&c.length,g=K6.getBaseValue(t,n,r,a),v=p==="horizontal",y=!1,b=f.map(function(w,S){var j;m?j=c[d+S]:(j=wt(w,l),Array.isArray(j)?y=!0:j=[g,j]);var O=j[1]==null||m&&wt(w,l)==null;return v?{x:Qm({axis:r,ticks:i,bandSize:o,entry:w,index:S}),y:O?null:a.scale(j[1]),value:j,payload:w}:{x:O?null:r.scale(j[1]),y:Qm({axis:a,ticks:s,bandSize:o,entry:w,index:S}),value:j,payload:w}}),x;return m||y?x=b.map(function(w){var S=Array.isArray(w.value)?w.value[0]:null;return v?{x:w.x,y:S!=null&&w.y!=null?a.scale(S):null}:{x:S!=null?r.scale(S):null,y:w.y}}):x=v?a.scale(g):r.scale(g),mi({points:b,baseLine:x,layout:p,isRange:y},h)});aa(fs,"renderDotItem",function(e,t){var n;if(_.isValidElement(e))n=_.cloneElement(e,t);else if(de(e))n=e(t);else{var r=be("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=G6(t,Vwe);n=_.createElement(ah,ks({},i,{key:a,className:r}))}return n});function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function Zwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Jwe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Z6(r.key),r)}}function eje(e,t,n){return t&&Jwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function tje(e,t,n){return t=jy(t),nje(e,X6()?Reflect.construct(t,n||[],jy(e).constructor):t.apply(e,n))}function nje(e,t){if(t&&(Ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return rje(e)}function rje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X6=function(){return!!e})()}function jy(e){return jy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jy(e)}function aje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nS(e,t)}function nS(e,t){return nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},nS(e,t)}function Q6(e,t,n){return t=Z6(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z6(e){var t=ije(e,"string");return Ac(t)=="symbol"?t:t+""}function ije(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rS(){return rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rS.apply(this,arguments)}function sje(e){var t=e.xAxisId,n=AA(),r=OA(),a=M6(t);return a==null?null:A.createElement(tu,rS({},a,{className:be("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return La(s,!0)}}))}var Xi=function(e){function t(){return Zwe(this,t),tje(this,t,arguments)}return aje(t,e),eje(t,[{key:"render",value:function(){return A.createElement(sje,this.props)}}])}(A.Component);Q6(Xi,"displayName","XAxis");Q6(Xi,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Oc(e){"@babel/helpers - typeof";return Oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Oc(e)}function oje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lje(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tz(r.key),r)}}function cje(e,t,n){return t&&lje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function uje(e,t,n){return t=Ay(t),fje(e,J6()?Reflect.construct(t,n||[],Ay(e).constructor):t.apply(e,n))}function fje(e,t){if(t&&(Oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dje(e)}function dje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J6(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J6=function(){return!!e})()}function Ay(e){return Ay=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ay(e)}function hje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aS(e,t)}function aS(e,t){return aS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},aS(e,t)}function ez(e,t,n){return t=tz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tz(e){var t=pje(e,"string");return Oc(t)=="symbol"?t:t+""}function pje(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iS.apply(this,arguments)}var mje=function(t){var n=t.yAxisId,r=AA(),a=OA(),i=R6(n);return i==null?null:A.createElement(tu,iS({},i,{className:be("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(o){return La(o,!0)}}))},Qi=function(e){function t(){return oje(this,t),uje(this,t,arguments)}return hje(t,e),cje(t,[{key:"render",value:function(){return A.createElement(mje,this.props)}}])}(A.Component);ez(Qi,"displayName","YAxis");ez(Qi,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function SP(e){return bje(e)||vje(e)||gje(e)||yje()}function yje(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gje(e,t){if(e){if(typeof e=="string")return sS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sS(e,t)}}function vje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function bje(e){if(Array.isArray(e))return sS(e)}function sS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var oS=function(t,n,r,a,i){var s=Zn(t,TA),o=Zn(t,Zg),l=[].concat(SP(s),SP(o)),c=Zn(t,ev),d="".concat(a,"Id"),f=a[0],h=n;if(l.length&&(h=l.reduce(function(g,v){if(v.props[d]===r&&ua(v.props,"extendDomain")&&G(v.props[f])){var y=v.props[f];return[Math.min(g[0],y),Math.max(g[1],y)]}return g},h)),c.length){var p="".concat(f,"1"),m="".concat(f,"2");h=c.reduce(function(g,v){if(v.props[d]===r&&ua(v.props,"extendDomain")&&G(v.props[p])&&G(v.props[m])){var y=v.props[p],b=v.props[m];return[Math.min(g[0],y,b),Math.max(g[1],y,b)]}return g},h)}return i&&i.length&&(h=i.reduce(function(g,v){return G(v)?[Math.min(g[0],v),Math.max(g[1],v)]:g},h)),h},nz={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function i(l,c,d,f,h){if(typeof d!="function")throw new TypeError("The listener must be a function");var p=new a(d,f||l,h),m=n?n+c:c;return l._events[m]?l._events[m].fn?l._events[m]=[l._events[m],p]:l._events[m].push(p):(l._events[m]=p,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function o(){this._events=new r,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],d,f;if(this._eventsCount===0)return c;for(f in d=this._events)t.call(d,f)&&c.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},o.prototype.listeners=function(c){var d=n?n+c:c,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var h=0,p=f.length,m=new Array(p);h<p;h++)m[h]=f[h].fn;return m},o.prototype.listenerCount=function(c){var d=n?n+c:c,f=this._events[d];return f?f.fn?1:f.length:0},o.prototype.emit=function(c,d,f,h,p,m){var g=n?n+c:c;if(!this._events[g])return!1;var v=this._events[g],y=arguments.length,b,x;if(v.fn){switch(v.once&&this.removeListener(c,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,f),!0;case 4:return v.fn.call(v.context,d,f,h),!0;case 5:return v.fn.call(v.context,d,f,h,p),!0;case 6:return v.fn.call(v.context,d,f,h,p,m),!0}for(x=1,b=new Array(y-1);x<y;x++)b[x-1]=arguments[x];v.fn.apply(v.context,b)}else{var w=v.length,S;for(x=0;x<w;x++)switch(v[x].once&&this.removeListener(c,v[x].fn,void 0,!0),y){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,d);break;case 3:v[x].fn.call(v[x].context,d,f);break;case 4:v[x].fn.call(v[x].context,d,f,h);break;default:if(!b)for(S=1,b=new Array(y-1);S<y;S++)b[S-1]=arguments[S];v[x].fn.apply(v[x].context,b)}}return!0},o.prototype.on=function(c,d,f){return i(this,c,d,f,!1)},o.prototype.once=function(c,d,f){return i(this,c,d,f,!0)},o.prototype.removeListener=function(c,d,f,h){var p=n?n+c:c;if(!this._events[p])return this;if(!d)return s(this,p),this;var m=this._events[p];if(m.fn)m.fn===d&&(!h||m.once)&&(!f||m.context===f)&&s(this,p);else{for(var g=0,v=[],y=m.length;g<y;g++)(m[g].fn!==d||h&&!m[g].once||f&&m[g].context!==f)&&v.push(m[g]);v.length?this._events[p]=v.length===1?v[0]:v:s(this,p)}return this},o.prototype.removeAllListeners=function(c){var d;return c?(d=n?n+c:c,this._events[d]&&s(this,d)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o})(nz);var xje=nz.exports;const Sje=Ie(xje);var Kb=new Sje,Gb="recharts.syncMouseEvents";function vd(e){"@babel/helpers - typeof";return vd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},vd(e)}function wje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jje(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,rz(r.key),r)}}function Aje(e,t,n){return t&&jje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yb(e,t,n){return t=rz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rz(e){var t=Oje(e,"string");return vd(t)=="symbol"?t:t+""}function Oje(e,t){if(vd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Eje=function(){function e(){wje(this,e),Yb(this,"activeIndex",0),Yb(this,"coordinateList",[]),Yb(this,"layout","horizontal")}return Aje(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,s=n.container,o=s===void 0?null:s,l=n.layout,c=l===void 0?null:l,d=n.offset,f=d===void 0?null:d,h=n.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=o??this.container,this.layout=c??this.layout,this.offset=f??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,s=a.y,o=a.height,l=this.coordinateList[this.activeIndex].coordinate,c=((n=window)===null||n===void 0?void 0:n.scrollX)||0,d=((r=window)===null||r===void 0?void 0:r.scrollY)||0,f=i+l+c,h=s+this.offset.top+o/2+d;this.mouseHandlerCallback({pageX:f,pageY:h})}}}])}();function Tje(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&G(r)&&G(a))return!0}return!1}function Nje(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function az(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,s=et(t,n,r,a),o=et(t,n,r,i);return{points:[s,o],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function Cje(e,t,n){var r,a,i,s;if(e==="horizontal")r=t.x,i=r,a=n.top,s=n.top+n.height;else if(e==="vertical")a=t.y,s=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var o=t.cx,l=t.cy,c=t.innerRadius,d=t.outerRadius,f=t.angle,h=et(o,l,c,f),p=et(o,l,d,f);r=h.x,a=h.y,i=p.x,s=p.y}else return az(t);return[{x:r,y:a},{x:i,y:s}]}function bd(e){"@babel/helpers - typeof";return bd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bd(e)}function wP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Yh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wP(Object(n),!0).forEach(function(r){_je(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _je(e,t,n){return t=Pje(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pje(e){var t=Mje(e,"string");return bd(t)=="symbol"?t:t+""}function Mje(e,t){if(bd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rje(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,s=e.activeCoordinate,o=e.activePayload,l=e.offset,c=e.activeTooltipIndex,d=e.tooltipAxisBandSize,f=e.layout,h=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!i||!s||h!=="ScatterChart"&&a!=="axis")return null;var m,g=eo;if(h==="ScatterChart")m=s,g=Ube;else if(h==="BarChart")m=Nje(f,s,l,d),g=bA;else if(f==="radial"){var v=az(s),y=v.cx,b=v.cy,x=v.radius,w=v.startAngle,S=v.endAngle;m={cx:y,cy:b,startAngle:w,endAngle:S,innerRadius:x,outerRadius:x},g=QL}else m={points:Cje(f,s,l)},g=eo;var j=Yh(Yh(Yh(Yh({stroke:"#ccc",pointerEvents:"none"},l),m),ie(p,!1)),{},{payload:o,payloadIndex:c,className:be("recharts-tooltip-cursor",p.className)});return A.isValidElement(p)?A.cloneElement(p,j):A.createElement(g,j)}var Dje=["item"],kje=["children","className","width","height","style","compact","title","desc"];function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}function hl(){return hl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hl.apply(this,arguments)}function jP(e,t){return zje(e)||Lje(e,t)||sz(e,t)||$je()}function $je(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lje(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(d){c=!0,a=d}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function zje(e){if(Array.isArray(e))return e}function AP(e,t){if(e==null)return{};var n=Ije(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ije(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bje(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uje(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,oz(r.key),r)}}function Fje(e,t,n){return t&&Uje(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vje(e,t,n){return t=Oy(t),Hje(e,iz()?Reflect.construct(t,n||[],Oy(e).constructor):t.apply(e,n))}function Hje(e,t){if(t&&(Ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qje(e)}function qje(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iz=function(){return!!e})()}function Oy(e){return Oy=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Oy(e)}function Kje(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lS(e,t)}function lS(e,t){return lS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},lS(e,t)}function Tc(e){return Wje(e)||Yje(e)||sz(e)||Gje()}function Gje(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sz(e,t){if(e){if(typeof e=="string")return cS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cS(e,t)}}function Yje(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Wje(e){if(Array.isArray(e))return cS(e)}function cS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OP(Object(n),!0).forEach(function(r){ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ue(e,t,n){return t=oz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oz(e){var t=Xje(e,"string");return Ec(t)=="symbol"?t:t+""}function Xje(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qje={xAxis:["bottom","top"],yAxis:["left","right"]},Zje={width:"100%",height:"100%"},lz={x:0,y:0};function Wh(e){return e}var Jje=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},eAe=function(t,n,r,a){var i=n.find(function(d){return d&&d.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var s=i.coordinate,o=a.radius;return B(B(B({},a),et(a.cx,a.cy,o,s)),{},{angle:s,radius:o})}var l=i.coordinate,c=a.angle;return B(B(B({},a),et(a.cx,a.cy,l,c)),{},{angle:c,radius:l})}return lz},tv=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,s=(r??[]).reduce(function(o,l){var c=l.props.data;return c&&c.length?[].concat(Tc(o),Tc(c)):o},[]);return s.length>0?s:t&&t.length&&G(a)&&G(i)?t.slice(a,i+1):[]};function cz(e){return e==="number"?[0,"auto"]:void 0}var uS=function(t,n,r,a){var i=t.graphicalItems,s=t.tooltipAxis,o=tv(n,t);return r<0||!i||!i.length||r>=o.length?null:i.reduce(function(l,c){var d,f=(d=c.props.data)!==null&&d!==void 0?d:n;f&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(f=f.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(s.dataKey&&!s.allowDuplicatedCategory){var p=f===void 0?o:f;h=wm(p,s.dataKey,a)}else h=f&&f[r]||o[r];return h?[].concat(Tc(l),[qL(c,h)]):l},[])},EP=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},s=Jje(i,r),o=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,d=oye(s,o,c,l);if(d>=0&&c){var f=c[d]&&c[d].value,h=uS(t,n,d,f),p=eAe(r,o,d,i);return{activeTooltipIndex:d,activeLabel:f,activePayload:h,activeCoordinate:p}}return null},tAe=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,s=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,d=t.layout,f=t.children,h=t.stackOffset,p=IL(d,i);return r.reduce(function(m,g){var v,y=g.type.defaultProps!==void 0?B(B({},g.type.defaultProps),g.props):g.props,b=y.type,x=y.dataKey,w=y.allowDataOverflow,S=y.allowDuplicatedCategory,j=y.scale,O=y.ticks,E=y.includeHidden,T=y[s];if(m[T])return m;var N=tv(t.data,{graphicalItems:a.filter(function(K){var te,Z=s in K.props?K.props[s]:(te=K.type.defaultProps)===null||te===void 0?void 0:te[s];return Z===T}),dataStartIndex:l,dataEndIndex:c}),M=N.length,C,L,D;Tje(y.domain,w,b)&&(C=j1(y.domain,null,w),p&&(b==="number"||j!=="auto")&&(D=lf(N,x,"category")));var k=cz(b);if(!C||C.length===0){var P,$=(P=y.domain)!==null&&P!==void 0?P:k;if(x){if(C=lf(N,x,b),b==="category"&&p){var I=Qee(C);S&&I?(L=C,C=fy(0,M)):S||(C=WC($,C,g).reduce(function(K,te){return K.indexOf(te)>=0?K:[].concat(Tc(K),[te])},[]))}else if(b==="category")S?C=C.filter(function(K){return K!==""&&!me(K)}):C=WC($,C,g).reduce(function(K,te){return K.indexOf(te)>=0||te===""||me(te)?K:[].concat(Tc(K),[te])},[]);else if(b==="number"){var F=dye(N,a.filter(function(K){var te,Z,ye=s in K.props?K.props[s]:(te=K.type.defaultProps)===null||te===void 0?void 0:te[s],J="hide"in K.props?K.props.hide:(Z=K.type.defaultProps)===null||Z===void 0?void 0:Z.hide;return ye===T&&(E||!J)}),x,i,d);F&&(C=F)}p&&(b==="number"||j!=="auto")&&(D=lf(N,x,"category"))}else p?C=fy(0,M):o&&o[T]&&o[T].hasStack&&b==="number"?C=h==="expand"?[0,1]:HL(o[T].stackGroups,l,c):C=zL(N,a.filter(function(K){var te=s in K.props?K.props[s]:K.type.defaultProps[s],Z="hide"in K.props?K.props.hide:K.type.defaultProps.hide;return te===T&&(E||!Z)}),b,d,!0);if(b==="number")C=oS(f,C,T,i,O),$&&(C=j1($,C,w));else if(b==="category"&&$){var H=$,W=C.every(function(K){return H.indexOf(K)>=0});W&&(C=H)}}return B(B({},m),{},ue({},T,B(B({},y),{},{axisType:i,domain:C,categoricalDomain:D,duplicateDomain:L,originalDomain:(v=y.domain)!==null&&v!==void 0?v:k,isCategorical:p,layout:d})))},{})},nAe=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,s=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,d=t.layout,f=t.children,h=tv(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:c}),p=h.length,m=IL(d,i),g=-1;return r.reduce(function(v,y){var b=y.type.defaultProps!==void 0?B(B({},y.type.defaultProps),y.props):y.props,x=b[s],w=cz("number");if(!v[x]){g++;var S;return m?S=fy(0,p):o&&o[x]&&o[x].hasStack?(S=HL(o[x].stackGroups,l,c),S=oS(f,S,x,i)):(S=j1(w,zL(h,r.filter(function(j){var O,E,T=s in j.props?j.props[s]:(O=j.type.defaultProps)===null||O===void 0?void 0:O[s],N="hide"in j.props?j.props.hide:(E=j.type.defaultProps)===null||E===void 0?void 0:E.hide;return T===x&&!N}),"number",d),a.defaultProps.allowDataOverflow),S=oS(f,S,x,i)),B(B({},v),{},ue({},x,B(B({axisType:i},a.defaultProps),{},{hide:!0,orientation:Qn(Qje,"".concat(i,".").concat(g%2),null),domain:S,originalDomain:w,isCategorical:m,layout:d})))}return v},{})},rAe=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,s=n.graphicalItems,o=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,d=t.children,f="".concat(a,"Id"),h=Zn(d,i),p={};return h&&h.length?p=tAe(t,{axes:h,graphicalItems:s,axisType:a,axisIdKey:f,stackGroups:o,dataStartIndex:l,dataEndIndex:c}):s&&s.length&&(p=nAe(t,{Axis:i,graphicalItems:s,axisType:a,axisIdKey:f,stackGroups:o,dataStartIndex:l,dataEndIndex:c})),p},aAe=function(t){var n=ji(t),r=La(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:Kj(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Zm(n,r)}},TP=function(t){var n=t.children,r=t.defaultShowTooltip,a=In(n,yc),i=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(s=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},iAe=function(t){return!t||!t.length?!1:t.some(function(n){var r=qa(n&&n.type);return r&&r.indexOf("Bar")>=0})},NP=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},sAe=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,s=i===void 0?{}:i,o=t.yAxisMap,l=o===void 0?{}:o,c=r.width,d=r.height,f=r.children,h=r.margin||{},p=In(f,yc),m=In(f,na),g=Object.keys(l).reduce(function(S,j){var O=l[j],E=O.orientation;return!O.mirror&&!O.hide?B(B({},S),{},ue({},E,S[E]+O.width)):S},{left:h.left||0,right:h.right||0}),v=Object.keys(s).reduce(function(S,j){var O=s[j],E=O.orientation;return!O.mirror&&!O.hide?B(B({},S),{},ue({},E,Qn(S,"".concat(E))+O.height)):S},{top:h.top||0,bottom:h.bottom||0}),y=B(B({},v),g),b=y.bottom;p&&(y.bottom+=p.props.height||yc.defaultProps.height),m&&n&&(y=uye(y,a,r,n));var x=c-y.left-y.right,w=d-y.top-y.bottom;return B(B({brushBottom:b},y),{},{width:Math.max(x,0),height:Math.max(w,0)})},oAe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},nv=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,s=t.validateTooltipEventTypes,o=s===void 0?["axis"]:s,l=t.axisComponents,c=t.legendContent,d=t.formatAxisMap,f=t.defaultProps,h=function(y,b){var x=b.graphicalItems,w=b.stackGroups,S=b.offset,j=b.updateId,O=b.dataStartIndex,E=b.dataEndIndex,T=y.barSize,N=y.layout,M=y.barGap,C=y.barCategoryGap,L=y.maxBarSize,D=NP(N),k=D.numericAxisName,P=D.cateAxisName,$=iAe(x),I=[];return x.forEach(function(F,H){var W=tv(y.data,{graphicalItems:[F],dataStartIndex:O,dataEndIndex:E}),K=F.type.defaultProps!==void 0?B(B({},F.type.defaultProps),F.props):F.props,te=K.dataKey,Z=K.maxBarSize,ye=K["".concat(k,"Id")],J=K["".concat(P,"Id")],ot={},He=l.reduce(function(ga,va){var Mo=b["".concat(va.axisType,"Map")],le=K["".concat(va.axisType,"Id")];Mo&&Mo[le]||va.axisType==="zAxis"||yo();var It=Mo[le];return B(B({},ga),{},ue(ue({},va.axisType,It),"".concat(va.axisType,"Ticks"),La(It)))},ot),Y=He[P],oe=He["".concat(P,"Ticks")],X=w&&w[ye]&&w[ye].hasStack&&Sye(F,w[ye].stackGroups),V=qa(F.type).indexOf("Bar")>=0,_e=Zm(Y,oe),ge=[],Xe=$&&lye({barSize:T,stackGroups:w,totalSize:oAe(He,P)});if(V){var lt,dt,kn=me(Z)?L:Z,ui=(lt=(dt=Zm(Y,oe,!0))!==null&&dt!==void 0?dt:kn)!==null&&lt!==void 0?lt:0;ge=cye({barGap:M,barCategoryGap:C,bandSize:ui!==_e?ui:_e,sizeList:Xe[J],maxBarSize:kn}),ui!==_e&&(ge=ge.map(function(ga){return B(B({},ga),{},{position:B(B({},ga.position),{},{offset:ga.position.offset-ui/2})})}))}var Po=F&&F.type&&F.type.getComposedData;Po&&I.push({props:B(B({},Po(B(B({},He),{},{displayedData:W,props:y,dataKey:te,item:F,bandSize:_e,barPosition:ge,offset:S,stackedData:X,layout:N,dataStartIndex:O,dataEndIndex:E}))),{},ue(ue(ue({key:F.key||"item-".concat(H)},k,He[k]),P,He[P]),"animationId",j)),childIndex:cte(F,y.children),item:F})}),I},p=function(y,b){var x=y.props,w=y.dataStartIndex,S=y.dataEndIndex,j=y.updateId;if(!VT({props:x}))return null;var O=x.children,E=x.layout,T=x.stackOffset,N=x.data,M=x.reverseStackOrder,C=NP(E),L=C.numericAxisName,D=C.cateAxisName,k=Zn(O,r),P=bye(N,k,"".concat(L,"Id"),"".concat(D,"Id"),T,M),$=l.reduce(function(K,te){var Z="".concat(te.axisType,"Map");return B(B({},K),{},ue({},Z,rAe(x,B(B({},te),{},{graphicalItems:k,stackGroups:te.axisType===L&&P,dataStartIndex:w,dataEndIndex:S}))))},{}),I=sAe(B(B({},$),{},{props:x,graphicalItems:k}),b==null?void 0:b.legendBBox);Object.keys($).forEach(function(K){$[K]=d(x,$[K],I,K.replace("Map",""),n)});var F=$["".concat(D,"Map")],H=aAe(F),W=h(x,B(B({},$),{},{dataStartIndex:w,dataEndIndex:S,updateId:j,graphicalItems:k,stackGroups:P,offset:I}));return B(B({formattedGraphicalItems:W,graphicalItems:k,offset:I,stackGroups:P},H),$)},m=function(v){function y(b){var x,w,S;return Bje(this,y),S=Vje(this,y,[b]),ue(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(S,"accessibilityManager",new Eje),ue(S,"handleLegendBBoxUpdate",function(j){if(j){var O=S.state,E=O.dataStartIndex,T=O.dataEndIndex,N=O.updateId;S.setState(B({legendBBox:j},p({props:S.props,dataStartIndex:E,dataEndIndex:T,updateId:N},B(B({},S.state),{},{legendBBox:j}))))}}),ue(S,"handleReceiveSyncEvent",function(j,O,E){if(S.props.syncId===j){if(E===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(O)}}),ue(S,"handleBrushChange",function(j){var O=j.startIndex,E=j.endIndex;if(O!==S.state.dataStartIndex||E!==S.state.dataEndIndex){var T=S.state.updateId;S.setState(function(){return B({dataStartIndex:O,dataEndIndex:E},p({props:S.props,dataStartIndex:O,dataEndIndex:E,updateId:T},S.state))}),S.triggerSyncEvent({dataStartIndex:O,dataEndIndex:E})}}),ue(S,"handleMouseEnter",function(j){var O=S.getMouseInfo(j);if(O){var E=B(B({},O),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var T=S.props.onMouseEnter;de(T)&&T(E,j)}}),ue(S,"triggeredAfterMouseMove",function(j){var O=S.getMouseInfo(j),E=O?B(B({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(E),S.triggerSyncEvent(E);var T=S.props.onMouseMove;de(T)&&T(E,j)}),ue(S,"handleItemMouseEnter",function(j){S.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),ue(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),ue(S,"handleMouseMove",function(j){j.persist(),S.throttleTriggeredAfterMouseMove(j)}),ue(S,"handleMouseLeave",function(j){S.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};S.setState(O),S.triggerSyncEvent(O);var E=S.props.onMouseLeave;de(E)&&E(O,j)}),ue(S,"handleOuterEvent",function(j){var O=lte(j),E=Qn(S.props,"".concat(O));if(O&&de(E)){var T,N;/.*touch.*/i.test(O)?N=S.getMouseInfo(j.changedTouches[0]):N=S.getMouseInfo(j),E((T=N)!==null&&T!==void 0?T:{},j)}}),ue(S,"handleClick",function(j){var O=S.getMouseInfo(j);if(O){var E=B(B({},O),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var T=S.props.onClick;de(T)&&T(E,j)}}),ue(S,"handleMouseDown",function(j){var O=S.props.onMouseDown;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"handleMouseUp",function(j){var O=S.props.onMouseUp;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),ue(S,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&S.handleMouseDown(j.changedTouches[0])}),ue(S,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&S.handleMouseUp(j.changedTouches[0])}),ue(S,"handleDoubleClick",function(j){var O=S.props.onDoubleClick;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"handleContextMenu",function(j){var O=S.props.onContextMenu;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"triggerSyncEvent",function(j){S.props.syncId!==void 0&&Kb.emit(Gb,S.props.syncId,j,S.eventEmitterSymbol)}),ue(S,"applySyncEvent",function(j){var O=S.props,E=O.layout,T=O.syncMethod,N=S.state.updateId,M=j.dataStartIndex,C=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)S.setState(B({dataStartIndex:M,dataEndIndex:C},p({props:S.props,dataStartIndex:M,dataEndIndex:C,updateId:N},S.state)));else if(j.activeTooltipIndex!==void 0){var L=j.chartX,D=j.chartY,k=j.activeTooltipIndex,P=S.state,$=P.offset,I=P.tooltipTicks;if(!$)return;if(typeof T=="function")k=T(I,j);else if(T==="value"){k=-1;for(var F=0;F<I.length;F++)if(I[F].value===j.activeLabel){k=F;break}}var H=B(B({},$),{},{x:$.left,y:$.top}),W=Math.min(L,H.x+H.width),K=Math.min(D,H.y+H.height),te=I[k]&&I[k].value,Z=uS(S.state,S.props.data,k),ye=I[k]?{x:E==="horizontal"?I[k].coordinate:W,y:E==="horizontal"?K:I[k].coordinate}:lz;S.setState(B(B({},j),{},{activeLabel:te,activeCoordinate:ye,activePayload:Z,activeTooltipIndex:k}))}else S.setState(j)}),ue(S,"renderCursor",function(j){var O,E=S.state,T=E.isTooltipActive,N=E.activeCoordinate,M=E.activePayload,C=E.offset,L=E.activeTooltipIndex,D=E.tooltipAxisBandSize,k=S.getTooltipEventType(),P=(O=j.props.active)!==null&&O!==void 0?O:T,$=S.props.layout,I=j.key||"_recharts-cursor";return _.createElement(Rje,{key:I,activeCoordinate:N,activePayload:M,activeTooltipIndex:L,chartName:n,element:j,isActive:P,layout:$,offset:C,tooltipAxisBandSize:D,tooltipEventType:k})}),ue(S,"renderPolarAxis",function(j,O,E){var T=Qn(j,"type.axisType"),N=Qn(S.state,"".concat(T,"Map")),M=j.type.defaultProps,C=M!==void 0?B(B({},M),j.props):j.props,L=N&&N[C["".concat(T,"Id")]];return A.cloneElement(j,B(B({},L),{},{className:be(T,L.className),key:j.key||"".concat(O,"-").concat(E),ticks:La(L,!0)}))}),ue(S,"renderPolarGrid",function(j){var O=j.props,E=O.radialLines,T=O.polarAngles,N=O.polarRadius,M=S.state,C=M.radiusAxisMap,L=M.angleAxisMap,D=ji(C),k=ji(L),P=k.cx,$=k.cy,I=k.innerRadius,F=k.outerRadius;return A.cloneElement(j,{polarAngles:Array.isArray(T)?T:La(k,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(N)?N:La(D,!0).map(function(H){return H.coordinate}),cx:P,cy:$,innerRadius:I,outerRadius:F,key:j.key||"polar-grid",radialLines:E})}),ue(S,"renderLegend",function(){var j=S.state.formattedGraphicalItems,O=S.props,E=O.children,T=O.width,N=O.height,M=S.props.margin||{},C=T-(M.left||0)-(M.right||0),L=$L({children:E,formattedGraphicalItems:j,legendWidth:C,legendContent:c});if(!L)return null;var D=L.item,k=AP(L,Dje);return A.cloneElement(D,B(B({},k),{},{chartWidth:T,chartHeight:N,margin:M,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),ue(S,"renderTooltip",function(){var j,O=S.props,E=O.children,T=O.accessibilityLayer,N=In(E,Fn);if(!N)return null;var M=S.state,C=M.isTooltipActive,L=M.activeCoordinate,D=M.activePayload,k=M.activeLabel,P=M.offset,$=(j=N.props.active)!==null&&j!==void 0?j:C;return A.cloneElement(N,{viewBox:B(B({},P),{},{x:P.left,y:P.top}),active:$,label:k,payload:$?D:[],coordinate:L,accessibilityLayer:T})}),ue(S,"renderBrush",function(j){var O=S.props,E=O.margin,T=O.data,N=S.state,M=N.offset,C=N.dataStartIndex,L=N.dataEndIndex,D=N.updateId;return A.cloneElement(j,{key:j.key||"_recharts-brush",onChange:Hh(S.handleBrushChange,j.props.onChange),data:T,x:G(j.props.x)?j.props.x:M.left,y:G(j.props.y)?j.props.y:M.top+M.height+M.brushBottom-(E.bottom||0),width:G(j.props.width)?j.props.width:M.width,startIndex:C,endIndex:L,updateId:"brush-".concat(D)})}),ue(S,"renderReferenceElement",function(j,O,E){if(!j)return null;var T=S,N=T.clipPathId,M=S.state,C=M.xAxisMap,L=M.yAxisMap,D=M.offset,k=j.type.defaultProps||{},P=j.props,$=P.xAxisId,I=$===void 0?k.xAxisId:$,F=P.yAxisId,H=F===void 0?k.yAxisId:F;return A.cloneElement(j,{key:j.key||"".concat(O,"-").concat(E),xAxis:C[I],yAxis:L[H],viewBox:{x:D.left,y:D.top,width:D.width,height:D.height},clipPathId:N})}),ue(S,"renderActivePoints",function(j){var O=j.item,E=j.activePoint,T=j.basePoint,N=j.childIndex,M=j.isRange,C=[],L=O.props.key,D=O.item.type.defaultProps!==void 0?B(B({},O.item.type.defaultProps),O.item.props):O.item.props,k=D.activeDot,P=D.dataKey,$=B(B({index:N,dataKey:P,cx:E.x,cy:E.y,r:4,fill:vA(O.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},ie(k,!1)),jm(k));return C.push(y.renderActiveDot(k,$,"".concat(L,"-activePoint-").concat(N))),T?C.push(y.renderActiveDot(k,B(B({},$),{},{cx:T.x,cy:T.y}),"".concat(L,"-basePoint-").concat(N))):M&&C.push(null),C}),ue(S,"renderGraphicChild",function(j,O,E){var T=S.filterFormatItem(j,O,E);if(!T)return null;var N=S.getTooltipEventType(),M=S.state,C=M.isTooltipActive,L=M.tooltipAxis,D=M.activeTooltipIndex,k=M.activeLabel,P=S.props.children,$=In(P,Fn),I=T.props,F=I.points,H=I.isRange,W=I.baseLine,K=T.item.type.defaultProps!==void 0?B(B({},T.item.type.defaultProps),T.item.props):T.item.props,te=K.activeDot,Z=K.hide,ye=K.activeBar,J=K.activeShape,ot=!!(!Z&&C&&$&&(te||ye||J)),He={};N!=="axis"&&$&&$.props.trigger==="click"?He={onClick:Hh(S.handleItemMouseEnter,j.props.onClick)}:N!=="axis"&&(He={onMouseLeave:Hh(S.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:Hh(S.handleItemMouseEnter,j.props.onMouseEnter)});var Y=A.cloneElement(j,B(B({},T.props),He));function oe(va){return typeof L.dataKey=="function"?L.dataKey(va.payload):null}if(ot)if(D>=0){var X,V;if(L.dataKey&&!L.allowDuplicatedCategory){var _e=typeof L.dataKey=="function"?oe:"payload.".concat(L.dataKey.toString());X=wm(F,_e,k),V=H&&W&&wm(W,_e,k)}else X=F==null?void 0:F[D],V=H&&W&&W[D];if(J||ye){var ge=j.props.activeIndex!==void 0?j.props.activeIndex:D;return[A.cloneElement(j,B(B(B({},T.props),He),{},{activeIndex:ge})),null,null]}if(!me(X))return[Y].concat(Tc(S.renderActivePoints({item:T,activePoint:X,basePoint:V,childIndex:D,isRange:H})))}else{var Xe,lt=(Xe=S.getItemByXY(S.state.activeCoordinate))!==null&&Xe!==void 0?Xe:{graphicalItem:Y},dt=lt.graphicalItem,kn=dt.item,ui=kn===void 0?j:kn,Po=dt.childIndex,ga=B(B(B({},T.props),He),{},{activeIndex:Po});return[A.cloneElement(ui,ga),null,null]}return H?[Y,null,null]:[Y,null]}),ue(S,"renderCustomized",function(j,O,E){return A.cloneElement(j,B(B({key:"recharts-customized-".concat(E)},S.props),S.state))}),ue(S,"renderMap",{CartesianGrid:{handler:Wh,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Wh},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Wh},YAxis:{handler:Wh},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((x=b.id)!==null&&x!==void 0?x:Eo("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=$4(S.triggeredAfterMouseMove,(w=b.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return Kje(y,v),Fje(y,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,S=x.data,j=x.height,O=x.layout,E=In(w,Fn);if(E){var T=E.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var N=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,M=uS(this.state,S,T,N),C=this.state.tooltipTicks[T].coordinate,L=(this.state.offset.top+j)/2,D=O==="horizontal",k=D?{x:C,y:L}:{y:C,x:L},P=this.state.formattedGraphicalItems.find(function(I){var F=I.item;return F.type.name==="Scatter"});P&&(k=B(B({},k),P.props.points[T].tooltipPosition),M=P.props.points[T].tooltipPayload);var $={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:N,activePayload:M,activeCoordinate:k};this.setState($),this.renderCursor(E),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var S,j;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(x){zx([In(x.children,Fn)],[In(this.props.children,Fn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=In(this.props.children,Fn);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return o.indexOf(w)>=0?w:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,S=w.getBoundingClientRect(),j=kfe(S),O={chartX:Math.round(x.pageX-j.left),chartY:Math.round(x.pageY-j.top)},E=S.width/w.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,E);if(!T)return null;var N=this.state,M=N.xAxisMap,C=N.yAxisMap,L=this.getTooltipEventType(),D=EP(this.state,this.props.data,this.props.layout,T);if(L!=="axis"&&M&&C){var k=ji(M).scale,P=ji(C).scale,$=k&&k.invert?k.invert(O.chartX):null,I=P&&P.invert?P.invert(O.chartY):null;return B(B({},O),{},{xValue:$,yValue:I},D)}return D?B(B({},O),D):null}},{key:"inRange",value:function(x,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,O=x/S,E=w/S;if(j==="horizontal"||j==="vertical"){var T=this.state.offset,N=O>=T.left&&O<=T.left+T.width&&E>=T.top&&E<=T.top+T.height;return N?{x:O,y:E}:null}var M=this.state,C=M.angleAxisMap,L=M.radiusAxisMap;if(C&&L){var D=ji(C);return ZC({x:O,y:E},D)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),S=In(x,Fn),j={};S&&w==="axis"&&(S.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=jm(this.props,this.handleOuterEvent);return B(B({},O),j)}},{key:"addListener",value:function(){Kb.on(Gb,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Kb.removeListener(Gb,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,S){for(var j=this.state.formattedGraphicalItems,O=0,E=j.length;O<E;O++){var T=j[O];if(T.item===x||T.props.key===x.key||w===qa(T.item.type)&&S===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,S=w.left,j=w.top,O=w.height,E=w.width;return _.createElement("defs",null,_.createElement("clipPath",{id:x},_.createElement("rect",{x:S,y:j,height:O,width:E})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,S){var j=jP(S,2),O=j[0],E=j[1];return B(B({},w),{},ue({},O,E.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,S){var j=jP(S,2),O=j[0],E=j[1];return B(B({},w),{},ue({},O,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,S=w.formattedGraphicalItems,j=w.activeItem;if(S&&S.length)for(var O=0,E=S.length;O<E;O++){var T=S[O],N=T.props,M=T.item,C=M.type.defaultProps!==void 0?B(B({},M.type.defaultProps),M.props):M.props,L=qa(M.type);if(L==="Bar"){var D=(N.data||[]).find(function(I){return Sbe(x,I)});if(D)return{graphicalItem:T,payload:D}}else if(L==="RadialBar"){var k=(N.data||[]).find(function(I){return ZC(x,I)});if(k)return{graphicalItem:T,payload:k}}else if(Yg(T,j)||Wg(T,j)||hd(T,j)){var P=cxe({graphicalItem:T,activeTooltipItem:j,itemData:C.data}),$=C.activeIndex===void 0?P:C.activeIndex;return{graphicalItem:B(B({},T),{},{childIndex:$}),payload:hd(T,j)?C.data[P]:T.props.data[P]}}}return null}},{key:"render",value:function(){var x=this;if(!VT(this))return null;var w=this.props,S=w.children,j=w.className,O=w.width,E=w.height,T=w.style,N=w.compact,M=w.title,C=w.desc,L=AP(w,kje),D=ie(L,!1);if(N)return _.createElement(rP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement(Bx,hl({},D,{width:O,height:E,title:M,desc:C}),this.renderClipPath(),qT(S,this.renderMap)));if(this.props.accessibilityLayer){var k,P;D.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,D.role=(P=this.props.role)!==null&&P!==void 0?P:"application",D.onKeyDown=function(I){x.accessibilityManager.keyboardEvent(I)},D.onFocus=function(){x.accessibilityManager.focus()}}var $=this.parseEventsOfWrapper();return _.createElement(rP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},_.createElement("div",hl({className:be("recharts-wrapper",j),style:B({position:"relative",cursor:"default",width:O,height:E},T)},$,{ref:function(F){x.container=F}}),_.createElement(Bx,hl({},D,{width:O,height:E,title:M,desc:C,style:Zje}),this.renderClipPath(),qT(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(A.Component);ue(m,"displayName",n),ue(m,"defaultProps",B({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},f)),ue(m,"getDerivedStateFromProps",function(v,y){var b=v.dataKey,x=v.data,w=v.children,S=v.width,j=v.height,O=v.layout,E=v.stackOffset,T=v.margin,N=y.dataStartIndex,M=y.dataEndIndex;if(y.updateId===void 0){var C=TP(v);return B(B(B({},C),{},{updateId:0},p(B(B({props:v},C),{},{updateId:0}),y)),{},{prevDataKey:b,prevData:x,prevWidth:S,prevHeight:j,prevLayout:O,prevStackOffset:E,prevMargin:T,prevChildren:w})}if(b!==y.prevDataKey||x!==y.prevData||S!==y.prevWidth||j!==y.prevHeight||O!==y.prevLayout||E!==y.prevStackOffset||!jl(T,y.prevMargin)){var L=TP(v),D={chartX:y.chartX,chartY:y.chartY,isTooltipActive:y.isTooltipActive},k=B(B({},EP(y,x,O)),{},{updateId:y.updateId+1}),P=B(B(B({},L),D),k);return B(B(B({},P),p(B({props:v},P),y)),{},{prevDataKey:b,prevData:x,prevWidth:S,prevHeight:j,prevLayout:O,prevStackOffset:E,prevMargin:T,prevChildren:w})}if(!zx(w,y.prevChildren)){var $,I,F,H,W=In(w,yc),K=W&&($=(I=W.props)===null||I===void 0?void 0:I.startIndex)!==null&&$!==void 0?$:N,te=W&&(F=(H=W.props)===null||H===void 0?void 0:H.endIndex)!==null&&F!==void 0?F:M,Z=K!==N||te!==M,ye=!me(x),J=ye&&!Z?y.updateId:y.updateId+1;return B(B({updateId:J},p(B(B({props:v},y),{},{updateId:J,dataStartIndex:K,dataEndIndex:te}),y)),{},{prevChildren:w,dataStartIndex:K,dataEndIndex:te})}return null}),ue(m,"renderActiveDot",function(v,y,b){var x;return A.isValidElement(v)?x=A.cloneElement(v,y):de(v)?x=v(y):x=_.createElement(ah,y),_.createElement(Ae,{className:"recharts-active-dot",key:b},x)});var g=A.forwardRef(function(y,b){return _.createElement(m,hl({},y,{ref:b}))});return g.displayName=m.displayName,g},lAe=nv({chartName:"LineChart",GraphicalChild:ih,axisComponents:[{axisType:"xAxis",AxisComp:Xi},{axisType:"yAxis",AxisComp:Qi}],formatAxisMap:xA}),cAe=nv({chartName:"BarChart",GraphicalChild:_o,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Xi},{axisType:"yAxis",AxisComp:Qi}],formatAxisMap:xA}),uAe=nv({chartName:"PieChart",GraphicalChild:ci,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Gg},{axisType:"radiusAxis",AxisComp:qg}],formatAxisMap:Pye,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),fAe=nv({chartName:"AreaChart",GraphicalChild:fs,axisComponents:[{axisType:"xAxis",AxisComp:Xi},{axisType:"yAxis",AxisComp:Qi}],formatAxisMap:xA});const Kr=["#00a0c8","#3ddc97","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#e84a7f"],Bo={fontSize:11,fill:"#94a3b8"},Xh={background:"#0f172a",border:"1px solid #1e293b",borderRadius:8,fontSize:12,color:"#e2e8f0"};function za({type:e="BAR",rows:t,dataKeys:n,xKey:r="name",height:a=260}){if(!t||!t.length)return u.jsx("div",{className:"flex items-center justify-center text-slate-500 text-sm",style:{height:a},children:"No data"});const i=(e||"BAR").toUpperCase();if(i==="PIE"){const s=n[0];return u.jsx(Ih,{width:"100%",height:a,children:u.jsxs(uAe,{children:[u.jsx(ci,{data:t,dataKey:s,nameKey:r,outerRadius:a/2.8,innerRadius:a/5,children:t.map((o,l)=>u.jsx(Rg,{fill:Kr[l%Kr.length]},l))}),u.jsx(Fn,{contentStyle:Xh}),u.jsx(na,{wrapperStyle:{fontSize:11}})]})})}return i==="LINE"?u.jsx(Ih,{width:"100%",height:a,children:u.jsxs(lAe,{data:t,children:[u.jsx(Tp,{strokeDasharray:"3 3",stroke:"#1e293b"}),u.jsx(Xi,{dataKey:r,tick:Bo}),u.jsx(Qi,{tick:Bo}),u.jsx(Fn,{contentStyle:Xh}),u.jsx(na,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>u.jsx(ih,{type:"monotone",dataKey:s,stroke:Kr[o%Kr.length],strokeWidth:2,dot:!1},s))]})}):i==="AREA"?u.jsx(Ih,{width:"100%",height:a,children:u.jsxs(fAe,{data:t,children:[u.jsx(Tp,{strokeDasharray:"3 3",stroke:"#1e293b"}),u.jsx(Xi,{dataKey:r,tick:Bo}),u.jsx(Qi,{tick:Bo}),u.jsx(Fn,{contentStyle:Xh}),u.jsx(na,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>u.jsx(fs,{type:"monotone",dataKey:s,stroke:Kr[o%Kr.length],fill:Kr[o%Kr.length],fillOpacity:.18,strokeWidth:2},s))]})}):u.jsx(Ih,{width:"100%",height:a,children:u.jsxs(cAe,{data:t,children:[u.jsx(Tp,{strokeDasharray:"3 3",stroke:"#1e293b"}),u.jsx(Xi,{dataKey:r,tick:Bo}),u.jsx(Qi,{tick:Bo}),u.jsx(Fn,{contentStyle:Xh,cursor:{fill:"#1e293b55"}}),u.jsx(na,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>u.jsx(_o,{dataKey:s,fill:Kr[o%Kr.length],radius:[3,3,0,0]},s))]})})}function Qh({icon:e,label:t,value:n,sub:r}){return u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("span",{className:"text-xs text-slate-400",children:t}),u.jsx(e,{size:18,className:"text-brand"})]}),u.jsx("div",{className:"text-2xl font-bold",children:n}),r&&u.jsx("div",{className:"text-xs text-slate-500 mt-1",children:r})]})}function dAe(){const{t:e}=ii(),{data:t}=se({queryKey:["adash"],queryFn:()=>EW(1,500)}),{data:n}=se({queryKey:["store-sales"],queryFn:()=>u5(7)}),{data:r}=se({queryKey:["trend"],queryFn:()=>f5(14)}),{data:a}=se({queryKey:["top"],queryFn:()=>d5(8)}),i=(t==null?void 0:t.today)||{},s=(n||[]).map(c=>({name:c.storeCode||c.storeName,Revenue:c.sales,Orders:c.orderCount})),o=(r||[]).map(c=>({name:(c.date||"").slice(5),Revenue:c.sales,Orders:c.orderCount})),l=(a||[]).map(c=>({name:c.name,"Units Sold":c.salesCount}));return u.jsxs("div",{children:[u.jsx("h1",{className:"text-xl font-bold mb-5",children:e("admin.dashboard.title")}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:[u.jsx(Qh,{icon:LK,label:e("admin.dashboard.todaysRevenue"),value:Ee(i.totalSales)}),u.jsx(Qh,{icon:hj,label:e("admin.dashboard.todaysOrders"),value:`${i.orderCount||0}`}),u.jsx(Qh,{icon:JK,label:e("admin.dashboard.stores"),value:`${((t==null?void 0:t.storeRanking)||[]).length}`,sub:e("admin.dashboard.storesSub")}),u.jsx(Qh,{icon:Ja,label:e("admin.dashboard.largeOrders"),value:`${((t==null?void 0:t.bigOrders)||[]).length}`,sub:e("admin.dashboard.largeOrdersSub")})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5 mb-6",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.revenueByStore")}),u.jsx(za,{type:"BAR",rows:s,dataKeys:["Revenue","Orders"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.revenueTrend")}),u.jsx(za,{type:"AREA",rows:o,dataKeys:["Revenue"]})]})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.bestSellers")}),u.jsx(za,{type:"BAR",rows:l,dataKeys:["Units Sold"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:e("admin.dashboard.storeRanking")}),u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge",children:[u.jsx("th",{className:"text-left py-2",children:e("admin.dashboard.store")}),u.jsx("th",{className:"text-right",children:e("admin.dashboard.revenue")}),u.jsx("th",{className:"text-right",children:e("admin.dashboard.orders")})]})}),u.jsxs("tbody",{children:[((t==null?void 0:t.storeRanking)||[]).map((c,d)=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"py-2",children:c.storeName||c.storeCode}),u.jsx("td",{className:"text-right",children:Ee(c.sales)}),u.jsx("td",{className:"text-right text-slate-400",children:c.orderCount})]},d)),!((t==null?void 0:t.storeRanking)||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:3,className:"text-center text-slate-500 py-6",children:e("common.noData")})})]})]})]})]})]})}function hAe(){const e=rn(),{data:t}=se({queryKey:["admin-stores"],queryFn:()=>Ao(!1)}),n=async(r,a)=>{await YY(r,!a).catch(()=>{}),e.invalidateQueries({queryKey:["admin-stores"]})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(Hd,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Stores"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Code"}),u.jsx("th",{className:"text-left",children:"Store"}),u.jsx("th",{className:"text-left",children:"Location"}),u.jsx("th",{className:"text-left",children:"Hours"}),u.jsx("th",{className:"text-right",children:"Same-Day Cutoff"}),u.jsx("th",{className:"text-right",children:"Radius (mi)"}),u.jsx("th",{className:"text-right",children:"Daily Capacity"}),u.jsx("th",{className:"text-center",children:"Status"})]})}),u.jsxs("tbody",{children:[(t||[]).map(r=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:r.code}),u.jsx("td",{children:r.name}),u.jsxs("td",{className:"text-slate-400",children:[r.city,", ",r.state," ",r.zip]}),u.jsxs("td",{className:"text-slate-400",children:[r.openTime,"–",r.closeTime]}),u.jsx("td",{className:"text-right text-slate-400",children:r.sameDayCutoff}),u.jsx("td",{className:"text-right text-slate-400",children:r.deliveryRadiusMi}),u.jsx("td",{className:"text-right text-slate-400",children:r.dailyCapacity}),u.jsx("td",{className:"text-center",children:u.jsxs("button",{onClick:()=>n(r.id,r.active),className:`inline-flex items-center gap-1 px-2 py-1 rounded text-xs ${r.active?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:[u.jsx(GK,{size:12})," ",r.active?"Active":"Inactive"]})})]},r.id)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"No stores found."})})]})]})})]})}function pAe(){const e=rn(),[t,n]=A.useState(""),{data:r}=se({queryKey:["admin-products",t],queryFn:()=>ec({keyword:t,size:100,status:""})}),a=(r==null?void 0:r.items)||[],i=async(s,o)=>{await QY(s,o==="ACTIVE"?"HIDDEN":"ACTIVE").catch(()=>{}),e.invalidateQueries({queryKey:["admin-products"]})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(pt,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"상품 관리"})]}),u.jsxs("div",{className:"flex items-center gap-2 bg-card border border-edge rounded-lg px-3 py-2",children:[u.jsx(fj,{size:15,className:"text-slate-500"}),u.jsx("input",{value:t,onChange:s=>n(s.target.value),placeholder:"상품 검색",className:"bg-transparent text-sm outline-none w-48"})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"SKU"}),u.jsx("th",{className:"text-left",children:"상품명"}),u.jsx("th",{className:"text-left",children:"상황"}),u.jsx("th",{className:"text-right",children:"가격"}),u.jsx("th",{className:"text-right",children:"재고"}),u.jsx("th",{className:"text-right",children:"판매"}),u.jsx("th",{className:"text-right",children:"평점"}),u.jsx("th",{className:"text-center",children:"상태"})]})}),u.jsxs("tbody",{children:[a.map(s=>{var o;return u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-slate-400",children:s.sku}),u.jsx("td",{children:s.name}),u.jsx("td",{className:"text-slate-400",children:s.occasion||"-"}),u.jsx("td",{className:"text-right",children:Ee(s.salePrice&&s.salePrice>0?s.salePrice:s.price)}),u.jsx("td",{className:"text-right text-slate-400",children:s.stock}),u.jsx("td",{className:"text-right text-slate-400",children:s.salesCount}),u.jsx("td",{className:"text-right text-amber-400",children:((o=s.ratingAvg)==null?void 0:o.toFixed(1))||"-"}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>i(s.id,s.status),children:u.jsx(Hr,{status:s.status})})})]},s.id)}),!a.length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"상품이 없습니다."})})]})]})})]})}function mAe(){const e=rn(),[t,n]=A.useState(0),{data:r}=se({queryKey:["inv-stores"],queryFn:()=>Ao(!1)});A.useEffect(()=>{!t&&(r!=null&&r.length)&&n(r[0].id)},[r]);const{data:a}=se({queryKey:["store-inv",t],queryFn:()=>JY(t),enabled:!!t}),i=async(o,l)=>{await eW(t,o,!l).catch(()=>{}),e.invalidateQueries({queryKey:["store-inv",t]})},s=async(o,l)=>{await tW(t,o,l).catch(()=>{}),e.invalidateQueries({queryKey:["store-inv",t]})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(g3,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Store Inventory (ON/OFF)"})]}),u.jsx("select",{value:t,onChange:o=>n(Number(o.target.value)),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:(r||[]).map(o=>u.jsx("option",{value:o.id,children:o.name},o.id))})]}),u.jsx("p",{className:"text-xs text-slate-500 mb-3",children:"Switching to OFF immediately marks the item as out of stock in that store's area."}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Product"}),u.jsx("th",{className:"text-right",children:"Stock"}),u.jsx("th",{className:"text-center",children:"Adjust"}),u.jsx("th",{className:"text-center",children:"Sale"})]})}),u.jsxs("tbody",{children:[(a||[]).map(o=>{const l=o.available!==!1;return u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3",children:o.productName||`Product #${o.productId}`}),u.jsx("td",{className:"text-right text-slate-300",children:o.stock??o.quantity??"-"}),u.jsx("td",{className:"text-center",children:u.jsxs("div",{className:"inline-flex items-center gap-1",children:[u.jsx("button",{onClick:()=>s(o.productId,-1),className:"w-6 h-6 rounded bg-panel border border-edge text-slate-300",children:"−"}),u.jsx("button",{onClick:()=>s(o.productId,1),className:"w-6 h-6 rounded bg-panel border border-edge text-slate-300",children:"+"})]})}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>i(o.productId,l),className:`px-3 py-1 rounded-full text-xs ${l?"bg-emerald-500/15 text-emerald-400":"bg-rose-500/15 text-rose-400"}`,children:l?"ON":"OFF"})})]},o.productId||o.id)}),!(a||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:4,className:"text-center text-slate-500 py-8",children:"No inventory items found."})})]})]})})]})}const Wb={PAID:"PREPARING",PREPARING:"SHIPPED",SHIPPED:"DELIVERED"};function yAe(){const e=rn(),[t,n]=A.useState(""),[r,a]=A.useState([]),[i,s]=A.useState(!1),o=A.useRef(null),{data:l}=se({queryKey:["admin-orders",t],queryFn:()=>cW(t,100)}),{data:c}=se({queryKey:["ord-stores"],queryFn:()=>Ao(!1)});A.useEffect(()=>{try{const p=location.protocol==="https:"?"wss":"ws",m=new WebSocket(`${p}://${location.host}/ws/mall/orders`);return o.current=m,m.onopen=()=>s(!0),m.onclose=()=>s(!1),m.onmessage=g=>{try{const v=JSON.parse(g.data);a(y=>[v,...y].slice(0,12)),v.event==="ORDER_NEW"&&e.invalidateQueries({queryKey:["admin-orders"]})}catch{}},()=>m.close()}catch{s(!1)}},[]);const d=async p=>{const m=Wb[p.status];m&&(await c5(p.id,m).catch(()=>{}),e.invalidateQueries({queryKey:["admin-orders"]}))},f=p=>{var m;return((m=c==null?void 0:c.find(g=>g.id===p))==null?void 0:m.code)||`#${p}`},h=l||[];return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(hj,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Orders (Live)"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("span",{className:`flex items-center gap-1.5 text-xs ${i?"text-emerald-400":"text-slate-500"}`,children:[u.jsx(cT,{size:13})," ",i?"Connected":"Offline"]}),u.jsxs("select",{value:t,onChange:p=>n(p.target.value),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[u.jsx("option",{value:"",children:"All"}),["PENDING","PAID","PREPARING","SHIPPED","DELIVERED","CONFIRMED","CANCELLED"].map(p=>u.jsx("option",{value:p,children:p},p))]})]})]}),!!r.length&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5",children:[u.jsxs("div",{className:"text-xs text-slate-400 mb-2 flex items-center gap-1.5",children:[u.jsx(cT,{size:12,className:"text-brand"})," Live Events"]}),u.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((p,m)=>u.jsxs("span",{className:"text-xs bg-panel border border-edge rounded-full px-3 py-1 text-slate-300",children:[p.event==="ORDER_NEW"?"🆕":"🔄"," ",p.orderNo," · ",f(p.storeId)," · ",p.status," ",p.payAmount?`· ${Ee(p.payAmount)}`:""]},m))})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Order No."}),u.jsx("th",{className:"text-left",children:"Store"}),u.jsx("th",{className:"text-left",children:"Fulfillment"}),u.jsx("th",{className:"text-left",children:"Schedule"}),u.jsx("th",{className:"text-left",children:"Recipient"}),u.jsx("th",{className:"text-right",children:"Amount"}),u.jsx("th",{className:"text-center",children:"Status"}),u.jsx("th",{className:"text-center",children:"Actions"})]})}),u.jsxs("tbody",{children:[h.map(p=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:p.orderNo||`#${p.id}`}),u.jsx("td",{className:"text-slate-400",children:f(p.storeId)}),u.jsx("td",{children:p.fulfillmentType==="PICKUP"?u.jsxs("span",{className:"flex items-center gap-1 text-xs",children:[u.jsx(Hd,{size:12})," 픽업"]}):u.jsxs("span",{className:"flex items-center gap-1 text-xs",children:[u.jsx(qd,{size:12})," 배송"]})}),u.jsxs("td",{className:"text-slate-400 text-xs",children:[p.scheduledDate," ",p.slotLabel]}),u.jsx("td",{className:"text-slate-400",children:p.receiverName||"-"}),u.jsx("td",{className:"text-right",children:Ee(p.payAmount??p.totalAmount)}),u.jsx("td",{className:"text-center",children:u.jsx(Hr,{status:p.status})}),u.jsx("td",{className:"text-center",children:Wb[p.status]&&u.jsxs("button",{onClick:()=>d(p),className:"text-xs bg-brand text-ink font-semibold px-2.5 py-1 rounded",children:["→ ",Wb[p.status]]})})]},p.id)),!h.length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"주문이 없습니다."})})]})]})})]})}function gAe(){const e=rn(),[t,n]=A.useState(""),[r,a]=A.useState([]),{data:i}=se({queryKey:["transfers",t],queryFn:()=>pW(t,"")}),{data:s}=se({queryKey:["tr-stores"],queryFn:()=>Ao(!1)}),o=async f=>{await mW(f).catch(()=>{}),e.invalidateQueries({queryKey:["transfers"]})},l=async f=>{await yW(f).catch(()=>{}),e.invalidateQueries({queryKey:["transfers"]})},c=async()=>{const f=(s||[]).map(p=>p.id),h=await RW(f).catch(()=>[]);a(h||[])},d=f=>{var h;return((h=s==null?void 0:s.find(p=>p.id===f))==null?void 0:h.code)||`#${f}`};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(y3,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Inventory Transfers"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 bg-brand2 text-white text-sm px-3 py-2 rounded-lg",children:[u.jsx(wr,{size:14})," AI Transfer Suggestions"]}),u.jsxs("select",{value:t,onChange:f=>n(f.target.value),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[u.jsx("option",{value:"",children:"All"}),["REQUESTED","APPROVED","REJECTED","COMPLETED"].map(f=>u.jsx("option",{value:f,children:f},f))]})]})]}),!!r.length&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5",children:[u.jsxs("div",{className:"text-xs text-brand mb-2 flex items-center gap-1.5",children:[u.jsx(wr,{size:12})," AI Recommended Transfers"]}),u.jsx("div",{className:"space-y-1.5 text-sm",children:r.map((f,h)=>u.jsxs("div",{className:"flex items-center justify-between text-slate-300",children:[u.jsxs("span",{children:["Product #",f.productId,": ",d(f.fromStoreId)," → ",d(f.toStoreId)," ×",f.suggestedQty]}),u.jsx("span",{className:"text-xs text-slate-500",children:f.reason})]},h))})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"ID"}),u.jsx("th",{className:"text-left",children:"From → To"}),u.jsx("th",{className:"text-left",children:"Product"}),u.jsx("th",{className:"text-right",children:"Quantity"}),u.jsx("th",{className:"text-left",children:"Reason"}),u.jsx("th",{className:"text-center",children:"Status"}),u.jsx("th",{className:"text-center",children:"Actions"})]})}),u.jsxs("tbody",{children:[(i||[]).map(f=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 text-slate-400",children:f.id}),u.jsxs("td",{children:[d(f.fromStoreId)," → ",d(f.toStoreId)]}),u.jsxs("td",{className:"text-slate-400",children:["#",f.productId,f.aiRecommended&&u.jsx("span",{className:"ml-1 text-[10px] text-brand",children:"AI"})]}),u.jsx("td",{className:"text-right",children:f.quantity}),u.jsx("td",{className:"text-slate-400 text-xs",children:f.reason}),u.jsx("td",{className:"text-center",children:u.jsx(Hr,{status:f.status})}),u.jsx("td",{className:"text-center",children:f.status==="REQUESTED"&&u.jsxs("div",{className:"inline-flex gap-1",children:[u.jsx("button",{onClick:()=>o(f.id),className:"text-xs bg-emerald-500/15 text-emerald-400 px-2 py-1 rounded",children:"Approve"}),u.jsx("button",{onClick:()=>l(f.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"Reject"})]})})]},f.id)),!(i||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:7,className:"text-center text-slate-500 py-8",children:"No transfer requests."})})]})]})})]})}function vAe(){const e=rn(),{data:t}=se({queryKey:["by-tier"],queryFn:()=>m5(30)}),n=async()=>{await GW().catch(()=>{}),e.invalidateQueries({queryKey:["by-tier"]})},r=(t||[]).map(a=>({name:a.tier,customers:a.customers,sales:a.sales}));return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(k3,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Members (CRM)"})]}),u.jsxs("button",{onClick:n,className:"flex items-center gap-1.5 bg-card border border-edge text-sm px-3 py-2 rounded-lg text-slate-300 hover:text-brand",children:[u.jsx(uj,{size:14})," Recalculate All Tiers"]})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5 mb-5",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Customer Distribution by Tier (30 days)"}),u.jsx(za,{type:"BAR",rows:r,dataKeys:["customers"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Sales Contribution by Tier"}),u.jsx(za,{type:"PIE",rows:(t||[]).map(a=>({name:a.tier,value:a.sales})),dataKeys:["value"]})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Tier"}),u.jsx("th",{className:"text-right",children:"Customers"}),u.jsx("th",{className:"text-right",children:"Orders"}),u.jsx("th",{className:"text-right",children:"Sales"})]})}),u.jsxs("tbody",{children:[(t||[]).map(a=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"p-3",children:u.jsx(Hr,{status:a.tier})}),u.jsx("td",{className:"text-right",children:a.customers}),u.jsx("td",{className:"text-right text-slate-400",children:a.orderCount}),u.jsx("td",{className:"text-right",children:Ee(a.sales)})]},a.tier)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:4,className:"text-center text-slate-500 py-8",children:"No data"})})]})]})})]})}function bAe(){const e=rn(),{data:t}=se({queryKey:["tiers-all"],queryFn:()=>VW(!1)}),[n,r]=A.useState(null),[a,i]=A.useState(""),[s,o]=A.useState(0),[l,c]=A.useState(""),[d,f]=A.useState(""),h=async()=>{n&&(await HW(n.id,n).catch(()=>{}),r(null),e.invalidateQueries({queryKey:["tiers-all"]}))},p=async()=>{if(!a||!s)return;const m=await KW(a,s,l).catch(()=>null);f(m?`${a} points adjusted · Balance ${m.balance}P`:"Adjustment failed"),i(""),o(0),c("")};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx($f,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Tier & Points Management"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden mb-6",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Tier"}),u.jsx("th",{className:"text-right",children:"Min Spend"}),u.jsx("th",{className:"text-right",children:"Min Orders"}),u.jsx("th",{className:"text-right",children:"Discount"}),u.jsx("th",{className:"text-right",children:"Earn Rate"}),u.jsx("th",{className:"text-right",children:"Free Shipping"}),u.jsx("th",{className:"text-center",children:"Priority Slot"}),u.jsx("th",{className:"text-center",children:"Edit"})]})}),u.jsxs("tbody",{children:[(t||[]).map(m=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsxs("td",{className:"p-3",children:[u.jsx(Hr,{status:m.tierCode})," ",u.jsx("span",{className:"text-slate-400 text-xs ml-1",children:m.name})]}),u.jsx("td",{className:"text-right",children:Ee(m.minSpend12m)}),u.jsx("td",{className:"text-right text-slate-400",children:m.minOrders12m}),u.jsxs("td",{className:"text-right",children:[m.discountRate,"%"]}),u.jsxs("td",{className:"text-right",children:[m.pointEarnRate,"%"]}),u.jsx("td",{className:"text-right text-slate-400",children:m.freeShipThreshold===0?"Always":m.freeShipThreshold?Ee(m.freeShipThreshold):"None"}),u.jsx("td",{className:"text-center",children:m.prioritySlot?"✓":"–"}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>r({...m}),className:"text-xs text-brand",children:"Edit"})})]},m.id)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"No tier data found."})})]})]})}),n&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-6",children:[u.jsxs("div",{className:"text-sm font-semibold mb-3",children:["Edit Tier: ",n.name," (",n.tierCode,")"]}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-sm",children:[u.jsx(Zh,{label:"Min Spend ($)",value:n.minSpend12m,onChange:m=>r({...n,minSpend12m:Number(m)})}),u.jsx(Zh,{label:"Min Orders",value:n.minOrders12m,onChange:m=>r({...n,minOrders12m:Number(m)})}),u.jsx(Zh,{label:"Discount (%)",value:n.discountRate,onChange:m=>r({...n,discountRate:Number(m)})}),u.jsx(Zh,{label:"Earn Rate (%)",value:n.pointEarnRate,onChange:m=>r({...n,pointEarnRate:Number(m)})})]}),u.jsxs("div",{className:"flex gap-2 mt-4",children:[u.jsx("button",{onClick:h,className:"bg-brand text-ink font-semibold px-5 py-2 rounded-lg text-sm",children:"Save"}),u.jsx("button",{onClick:()=>r(null),className:"border border-edge px-5 py-2 rounded-lg text-sm text-slate-400",children:"Cancel"})]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(w3,{size:16,className:"text-brand"})," Manual Point Adjustment"]}),u.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[u.jsx("input",{value:a,onChange:m=>i(m.target.value),placeholder:"Customer ID",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{type:"number",value:s||"",onChange:m=>o(Number(m.target.value)),placeholder:"Points (+/-)",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{value:l,onChange:m=>c(m.target.value),placeholder:"Reason",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("button",{onClick:p,className:"bg-brand2 text-white rounded-lg px-3 py-2 text-sm font-semibold",children:"Adjust"})]}),d&&u.jsx("div",{className:"text-xs text-accent mt-2",children:d})]})]})}function Zh({label:e,value:t,onChange:n}){return u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] text-slate-400 mb-1",children:e}),u.jsx("input",{value:t,onChange:r=>n(r.target.value),className:"w-full bg-panel border border-edge rounded-lg px-3 py-2"})]})}const xAe=["DISCOUNT","POINT_BONUS","GIFT","TIER_ONLY","SEASON"];function SAe(){const e=rn(),[t,n]=A.useState(""),[r,a]=A.useState(!1),[i,s]=A.useState(null),[o,l]=A.useState({code:"",title:"",eventType:"DISCOUNT",description:"",startDate:"",endDate:"",targetTiers:"",bonusPointRate:0}),[c,d]=A.useState(""),{data:f}=se({queryKey:["admin-events",t],queryFn:()=>XW(t,"",!1)}),h=()=>e.invalidateQueries({queryKey:["admin-events"]}),p=async()=>{await QW({...o,status:"DRAFT",banners:[]}).catch(()=>{}),a(!1),h()},m=async x=>{await ZW(x).catch(()=>{}),h()},g=async x=>{await JW(x).catch(()=>{}),h()},v=async x=>{await eX(x).catch(()=>{}),h()},y=async x=>{const w=await tX(x).catch(()=>null);s(w)},b=async()=>{const x=await nX(o.eventType,o.title||"Spring Season","friendly").catch(()=>null);x&&(l({...o,title:x.headline||o.title,description:x.subtext||o.description}),d(`AI copy generated (${x.source})`))};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(zf,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Events & Campaigns"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("select",{value:t,onChange:x=>n(x.target.value),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[u.jsx("option",{value:"",children:"All"}),["DRAFT","PUBLISHED","ENDED"].map(x=>u.jsx("option",{value:x,children:x},x))]}),u.jsxs("button",{onClick:()=>a(!r),className:"flex items-center gap-1.5 bg-brand text-ink text-sm font-semibold px-3 py-2 rounded-lg",children:[u.jsx(cj,{size:15})," New Event"]})]})]}),r&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5 space-y-3",children:[u.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[u.jsx("input",{value:o.code,onChange:x=>l({...o,code:x.target.value}),placeholder:"Code",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{value:o.title,onChange:x=>l({...o,title:x.target.value}),placeholder:"Title",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm col-span-2"})]}),u.jsx("textarea",{value:o.description,onChange:x=>l({...o,description:x.target.value}),placeholder:"Description",rows:2,className:"w-full bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[u.jsx("select",{value:o.eventType,onChange:x=>l({...o,eventType:x.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm",children:xAe.map(x=>u.jsx("option",{children:x},x))}),u.jsx("input",{type:"date",value:o.startDate,onChange:x=>l({...o,startDate:x.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{type:"date",value:o.endDate,onChange:x=>l({...o,endDate:x.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{value:o.targetTiers,onChange:x=>l({...o,targetTiers:x.target.value}),placeholder:"Target Tiers (GOLD, VIP)",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("button",{onClick:b,className:"flex items-center gap-1.5 bg-brand2 text-white text-sm px-3 py-2 rounded-lg",children:[u.jsx(wr,{size:14})," Generate AI Copy"]}),c&&u.jsx("span",{className:"text-xs text-accent",children:c}),u.jsx("button",{onClick:p,className:"ml-auto bg-brand text-ink font-semibold text-sm px-5 py-2 rounded-lg",children:"Create"}),u.jsx("button",{onClick:()=>a(!1),className:"border border-edge text-slate-400 text-sm px-4 py-2 rounded-lg",children:"Cancel"})]})]}),i&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5 flex items-center gap-6 text-sm",children:[u.jsxs("span",{className:"flex items-center gap-1.5 text-brand",children:[u.jsx(oj,{size:15})," ",i.title]}),u.jsxs("span",{className:"text-slate-400",children:["Participations ",i.participations," · Participants ",i.participants]}),u.jsxs("span",{className:"text-slate-400",children:["Linked Orders ",i.linkedOrders," · Attributed Sales ",Ee(i.attributedSales)]}),u.jsx("button",{onClick:()=>s(null),className:"ml-auto text-slate-500 text-xs",children:"Close"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Code"}),u.jsx("th",{className:"text-left",children:"Title"}),u.jsx("th",{className:"text-left",children:"Type"}),u.jsx("th",{className:"text-left",children:"Period"}),u.jsx("th",{className:"text-left",children:"Target"}),u.jsx("th",{className:"text-center",children:"Status"}),u.jsx("th",{className:"text-center",children:"Actions"})]})}),u.jsxs("tbody",{children:[(f||[]).map(x=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:x.code}),u.jsx("td",{children:x.title}),u.jsx("td",{className:"text-slate-400 text-xs",children:x.eventType}),u.jsxs("td",{className:"text-slate-400 text-xs",children:[x.startDate,"~",x.endDate]}),u.jsx("td",{className:"text-slate-400 text-xs",children:x.targetTiers||"All"}),u.jsx("td",{className:"text-center",children:u.jsx(Hr,{status:x.status})}),u.jsx("td",{className:"text-center",children:u.jsxs("div",{className:"inline-flex gap-1",children:[x.status==="DRAFT"&&u.jsx("button",{onClick:()=>m(x.id),className:"text-xs bg-emerald-500/15 text-emerald-400 px-2 py-1 rounded",children:"Publish"}),x.status==="PUBLISHED"&&u.jsx("button",{onClick:()=>g(x.id),className:"text-xs bg-slate-600/20 text-slate-400 px-2 py-1 rounded",children:"End"}),u.jsx("button",{onClick:()=>y(x.id),className:"text-xs bg-panel border border-edge text-slate-300 px-2 py-1 rounded",children:"Performance"}),u.jsx("button",{onClick:()=>v(x.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"Delete"})]})})]},x.id)),!(f||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:7,className:"text-center text-slate-500 py-8",children:"No events found."})})]})]})})]})}function wAe(){const{data:e}=se({queryKey:["admin-subs"],queryFn:hW}),t=e||[];return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(rg,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Subscriptions"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Customer"}),u.jsx("th",{className:"text-left",children:"Product"}),u.jsx("th",{className:"text-left",children:"Frequency"}),u.jsx("th",{className:"text-left",children:"Next Delivery"}),u.jsx("th",{className:"text-right",children:"Amount"}),u.jsx("th",{className:"text-center",children:"Status"})]})}),u.jsxs("tbody",{children:[t.map(n=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3",children:n.owner}),u.jsx("td",{className:"text-slate-400",children:n.productName||`#${n.productId}`}),u.jsx("td",{className:"text-slate-400",children:n.frequency}),u.jsx("td",{className:"text-slate-400",children:n.nextDeliveryDate||"-"}),u.jsx("td",{className:"text-right",children:Ee(n.price)}),u.jsx("td",{className:"text-center",children:u.jsx(Hr,{status:n.status})})]},n.id)),!t.length&&u.jsx("tr",{children:u.jsx("td",{colSpan:6,className:"text-center text-slate-500 py-8",children:"No subscriptions found."})})]})]})})]})}const jAe=["valentine","mothers_day","christmas","thanksgiving"];function AAe(){const e=rn(),[t,n]=A.useState({holidayDate:"",name:"",blocked:!0,surgeMultiplier:1,storeId:null}),[r,a]=A.useState("valentine"),[i,s]=A.useState(null),{data:o}=se({queryKey:["admin-holidays"],queryFn:l5}),{data:l}=se({queryKey:["sch-stores"],queryFn:()=>Ao(!1)}),c=async()=>{t.holidayDate&&(await rW(t).catch(()=>{}),n({...t,holidayDate:"",name:""}),e.invalidateQueries({queryKey:["admin-holidays"]}))},d=async()=>{const h=await MW(r,14).catch(()=>null);s(h)},f=h=>{var p;return((p=l==null?void 0:l.find(m=>m.id===h))==null?void 0:p.code)||`#${h}`};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(v3,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Schedule · Holidays · Surge"})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"Add Holiday / Surge"}),u.jsxs("div",{className:"grid grid-cols-5 gap-3",children:[u.jsx("input",{type:"date",value:t.holidayDate,onChange:h=>n({...t,holidayDate:h.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{value:t.name,onChange:h=>n({...t,name:h.target.value}),placeholder:"Name",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsxs("label",{className:"flex items-center gap-2 text-sm text-slate-300",children:[u.jsx("input",{type:"checkbox",checked:t.blocked,onChange:h=>n({...t,blocked:h.target.checked})})," Block Delivery"]}),u.jsx("input",{type:"number",step:"0.1",value:t.surgeMultiplier,onChange:h=>n({...t,surgeMultiplier:Number(h.target.value)}),placeholder:"Surge Multiplier",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 bg-brand text-ink font-semibold rounded-lg px-3 py-2 text-sm justify-center",children:[u.jsx(cj,{size:15})," Add"]})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden mb-6",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Date"}),u.jsx("th",{className:"text-left",children:"Name"}),u.jsx("th",{className:"text-center",children:"Block Delivery"}),u.jsx("th",{className:"text-right",children:"Surge Multiplier"}),u.jsx("th",{className:"text-left",children:"Store"})]})}),u.jsxs("tbody",{children:[(o||[]).map(h=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"p-3",children:h.holidayDate}),u.jsx("td",{className:"text-slate-400",children:h.name}),u.jsx("td",{className:"text-center",children:h.blocked?u.jsx("span",{className:"text-rose-400",children:"Blocked"}):u.jsx("span",{className:"text-slate-500",children:"–"})}),u.jsx("td",{className:"text-right",children:h.surgeMultiplier>1?u.jsxs("span",{className:"text-amber-400",children:["×",h.surgeMultiplier]}):"–"}),u.jsx("td",{className:"text-slate-400 text-xs",children:h.storeId?f(h.storeId):"All"})]},h.id||h.holidayDate)),!(o||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"No holidays registered."})})]})]})}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx(wr,{size:16,className:"text-brand"}),u.jsx("span",{className:"text-sm font-semibold",children:"AI Peak-Season Demand Forecast"}),u.jsx("select",{value:r,onChange:h=>a(h.target.value),className:"ml-auto bg-panel border border-edge rounded-lg px-3 py-1.5 text-sm",children:jAe.map(h=>u.jsx("option",{children:h},h))}),u.jsx("button",{onClick:d,className:"bg-brand2 text-white text-sm px-3 py-1.5 rounded-lg",children:"Run Forecast"})]}),i&&u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge",children:[u.jsx("th",{className:"text-left py-2",children:"Store"}),u.jsx("th",{className:"text-right",children:"Recent Orders"}),u.jsx("th",{className:"text-right",children:"Forecast Orders"}),u.jsx("th",{className:"text-right",children:"Multiplier"})]})}),u.jsx("tbody",{children:(i.forecast||[]).map((h,p)=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"py-2",children:f(h.storeId)}),u.jsx("td",{className:"text-right text-slate-400",children:h.recentOrders}),u.jsx("td",{className:"text-right text-brand",children:h.predictedOrders}),u.jsxs("td",{className:"text-right text-amber-400",children:["×",h.multiplier]})]},p))})]})]})]})}function OAe(){const[e,t]=A.useState(14),{data:n}=se({queryKey:["an-store",e],queryFn:()=>u5(e)}),{data:r}=se({queryKey:["an-trend",e],queryFn:()=>f5(e)}),{data:a}=se({queryKey:["an-top"],queryFn:()=>d5(10)}),{data:i}=se({queryKey:["an-tier"],queryFn:()=>m5(e)}),s=(n||[]).map(f=>({name:f.storeCode||f.storeName,Revenue:f.sales,Orders:f.orderCount})),o=(r||[]).map(f=>({name:(f.date||"").slice(5),Revenue:f.sales})),l=(a||[]).map(f=>({name:f.name,Sold:f.salesCount})),c=(i||[]).map(f=>({name:f.tier,Revenue:f.sales,Customers:f.customers})),d=(n||[]).reduce((f,h)=>f+(h.sales||0),0);return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(oj,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Revenue Analytics (BI)"})]}),u.jsx("select",{value:e,onChange:f=>t(Number(f.target.value)),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[7,14,30,90].map(f=>u.jsxs("option",{value:f,children:["Last ",f," days"]},f))})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[u.jsx("div",{className:"text-xs text-slate-400",children:"Total Revenue (Period)"}),u.jsx("div",{className:"text-3xl font-bold",children:Ee(d)})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Revenue Trend"}),u.jsx(za,{type:"AREA",rows:o,dataKeys:["Revenue"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Revenue by Store"}),u.jsx(za,{type:"BAR",rows:s,dataKeys:["Revenue","Orders"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Revenue by Tier (BI)"}),u.jsx(za,{type:"BAR",rows:c,dataKeys:["Revenue","Customers"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"Best Sellers Top 10"}),u.jsx(za,{type:"BAR",rows:l,dataKeys:["Sold"]})]})]})]})}const CP=["USER","MANAGER","ADMIN"];function EAe(){const e=rn(),{data:t}=se({queryKey:["users"],queryFn:DW}),[n,r]=A.useState({username:"",password:"",role:"USER"}),[a,i]=A.useState(!1),s=()=>e.invalidateQueries({queryKey:["users"]}),o=async()=>{!n.username||!n.password||(await kW(n).catch(()=>{}),r({username:"",password:"",role:"USER"}),i(!1),s())},l=async(h,p)=>{await $W(h,p).catch(()=>{}),s()},c=async(h,p)=>{await LW(h,!p).catch(()=>{}),s()},d=async h=>{const p=prompt("New password");p&&(await zW(h,p).catch(()=>{}),alert("Password updated"))},f=async h=>{confirm("Are you sure you want to delete?")&&(await IW(h).catch(()=>{}),s())};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(R3,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"User Management (RBAC)"})]}),u.jsxs("button",{onClick:()=>i(!a),className:"flex items-center gap-1.5 bg-brand text-ink text-sm font-semibold px-3 py-2 rounded-lg",children:[u.jsx(cj,{size:15})," Add User"]})]}),a&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5 grid grid-cols-4 gap-3",children:[u.jsx("input",{value:n.username,onChange:h=>r({...n,username:h.target.value}),placeholder:"Username",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{type:"password",value:n.password,onChange:h=>r({...n,password:h.target.value}),placeholder:"Password",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("select",{value:n.role,onChange:h=>r({...n,role:h.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm",children:CP.map(h=>u.jsx("option",{children:h},h))}),u.jsx("button",{onClick:o,className:"bg-brand text-ink font-semibold rounded-lg px-3 py-2 text-sm",children:"Create"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"ID"}),u.jsx("th",{className:"text-left",children:"Username"}),u.jsx("th",{className:"text-left",children:"Role"}),u.jsx("th",{className:"text-center",children:"Status"}),u.jsx("th",{className:"text-center",children:"Actions"})]})}),u.jsxs("tbody",{children:[(t||[]).map(h=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 text-slate-400",children:h.id}),u.jsx("td",{children:h.username}),u.jsx("td",{children:u.jsx("select",{value:h.role,onChange:p=>l(h.id,p.target.value),className:"bg-panel border border-edge rounded px-2 py-1 text-xs",children:CP.map(p=>u.jsx("option",{children:p},p))})}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>c(h.id,h.active),className:`px-2 py-1 rounded text-xs ${h.active!==!1?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:h.active!==!1?"Active":"Inactive"})}),u.jsx("td",{className:"text-center",children:u.jsxs("div",{className:"inline-flex gap-1",children:[u.jsx("button",{onClick:()=>d(h.id),className:"text-xs bg-panel border border-edge px-2 py-1 rounded text-slate-300",children:"Password"}),u.jsx("button",{onClick:()=>f(h.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"Delete"})]})})]},h.id)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"No users found."})})]})]})})]})}function TAe(){const[e,t]=A.useState(""),[n,r]=A.useState(""),{data:a}=se({queryKey:["audit",e,n],queryFn:()=>BW(e,n,200)});return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(P3,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Audit Log"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2 bg-card border border-edge rounded-lg px-3 py-2",children:[u.jsx(fj,{size:14,className:"text-slate-500"}),u.jsx("input",{value:n,onChange:i=>r(i.target.value),placeholder:"Actor",className:"bg-transparent text-sm outline-none w-28"})]}),u.jsx("input",{value:e,onChange:i=>t(i.target.value),placeholder:"Filter action",className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm w-32"})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"Time"}),u.jsx("th",{className:"text-left",children:"Actor"}),u.jsx("th",{className:"text-left",children:"Action"}),u.jsx("th",{className:"text-left",children:"Target"}),u.jsx("th",{className:"text-left",children:"Details"})]})}),u.jsxs("tbody",{children:[(a||[]).map((i,s)=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 text-slate-400 text-xs whitespace-nowrap",children:(i.createdAt||i.timestamp||"").slice(0,19).replace("T"," ")}),u.jsx("td",{className:"text-slate-300",children:i.actor||i.username||"-"}),u.jsx("td",{children:u.jsx("span",{className:"text-brand text-xs font-mono",children:i.action})}),u.jsx("td",{className:"text-slate-400 text-xs",children:i.target||i.resource||"-"}),u.jsx("td",{className:"text-slate-500 text-xs max-w-md truncate",children:i.detail||i.details||""})]},i.id||s)),!(a||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"No audit logs found."})})]})]})})]})}function NAe(){const e=rn(),{data:t}=se({queryKey:["providers"],queryFn:CW}),{data:n}=se({queryKey:["settings"],queryFn:UW}),[r,a]=A.useState({}),i=async o=>{const l=r[o];l!==void 0&&(await FW(o,l).catch(()=>{}),e.invalidateQueries({queryKey:["settings"]}))},s=Array.isArray(t)?t:Object.entries(t||{}).map(([o,l])=>({adapter:o,provider:typeof l=="string"?l:l==null?void 0:l.provider,active:(l==null?void 0:l.active)??!0}));return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(M3,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Gateways · Settings"})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(KK,{size:16,className:"text-brand"})," Gateway Adapters (provider)"]}),u.jsxs("p",{className:"text-xs text-slate-500 mb-3 flex items-center gap-1.5",children:[u.jsx(dj,{size:13,className:"text-accent"})," API keys are stored only in environment variables and are never shown on screen. (Default mock = 0 external calls)"]}),u.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-3",children:[s.map((o,l)=>u.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-3 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-slate-400 uppercase",children:o.adapter}),u.jsx("div",{className:"font-semibold",children:o.provider||"mock"})]}),u.jsx("span",{className:`text-xs px-2 py-1 rounded ${o.provider&&o.provider!=="mock"?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:o.provider&&o.provider!=="mock"?"Live":"mock"})]},l)),!s.length&&u.jsx("div",{className:"text-slate-500 text-sm",children:"Unable to load provider information."})]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"System Settings"}),u.jsxs("div",{className:"space-y-2",children:[(n||[]).map(o=>{const l=o.key||o.settingKey,c=r[l]??o.value??o.settingValue??"";return u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"text-sm text-slate-400 w-56 font-mono text-xs",children:l}),u.jsx("input",{value:c,onChange:d=>a({...r,[l]:d.target.value}),className:"flex-1 bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("button",{onClick:()=>i(l),className:"bg-brand2 text-white text-xs px-3 py-2 rounded-lg",children:"Save"})]},l)}),!(n||[]).length&&u.jsx("div",{className:"text-slate-500 text-sm py-4",children:"No settings available."})]})]})]})}const uz="https://itsm.zioinfo.co.kr",Xb=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,uz);function CAe(){const[e,t]=A.useState(null),[n,r]=A.useState(!0),[a,i]=A.useState(""),[s,o]=A.useState(!1),l=()=>{r(!0),i(""),fetch(`${uz}/api/app/public-latest`).then(d=>d.json()).then(d=>t({...d,qr_url:Xb(d.qr_url),landing_url:Xb(d.landing_url),download_url:Xb(d.download_url)})).catch(()=>i("Unable to connect to the central app repository (ITSM).")).finally(()=>r(!1))};A.useEffect(()=>{l()},[]);const c=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(wl,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"Admin App Install"})]}),u.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[u.jsx(uj,{size:15})," Refresh"]})]}),u.jsxs("p",{className:"text-sm text-slate-400 mb-6",children:["Mobile app for store and corporate admins. Scan the QR code to open the install page. App uploads and version management are centralized in ",u.jsx("span",{className:"text-brand",children:"GUARDiA Manager"})," (read-only)."]}),n&&u.jsx("div",{className:"text-slate-400 text-sm",children:"Loading…"}),a&&u.jsx("div",{className:"bg-card border border-edge rounded-xl p-6 text-rose-400 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-8 text-center text-slate-400",children:[u.jsx(wl,{size:36,className:"mx-auto mb-3 text-slate-600"}),"No app version has been registered yet.",u.jsx("br",{}),u.jsx("span",{className:"text-xs",children:"Once an APK is uploaded in GUARDiA Manager, the QR code will appear here."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[u.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:e.qr_url?u.jsx("img",{src:e.qr_url,alt:"Admin App QR",className:"w-44 h-44"}):u.jsx(wl,{size:64,className:"text-slate-400"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Mall Admin"}),u.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand2 text-white text-xs font-semibold",children:["v",e.version]})]}),u.jsxs("div",{className:"text-xs text-slate-400 mb-4",children:[e.platform," ",e.file_size_mb?`· ${e.file_size_mb}MB`:"",e.download_count!=null&&` · ${e.download_count} downloads`]}),e.release_notes&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-[11px] font-semibold text-slate-500 uppercase tracking-wider mb-1",children:"Release Notes"}),u.jsx("div",{className:"text-sm text-slate-300 whitespace-pre-line bg-ink border border-edge rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&u.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-ink text-sm font-semibold",children:[u.jsx(O3,{size:15})," Install Page"]}),e.download_url&&u.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[u.jsx(A3,{size:15})," Download APK"]}),u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[s?u.jsx(x3,{size:15,className:"text-accent"}):u.jsx(j3,{size:15}),s?"Copied":"Copy Link"]})]})]})]})]})}const fz=A.createContext({theme:"dark",toggle:()=>{},setTheme:()=>{}}),_P="mall_uiws_theme";function _Ae(e){document.documentElement.setAttribute("data-uiws-theme",e)}function PAe({children:e}){const[t,n]=A.useState(()=>localStorage.getItem(_P)==="light"?"light":"dark");A.useEffect(()=>{_Ae(t),localStorage.setItem(_P,t)},[t]);const r=i=>n(i),a=()=>n(i=>i==="dark"?"light":"dark");return u.jsx(fz.Provider,{value:{theme:t,toggle:a,setTheme:r},children:e})}function MAe(){return A.useContext(fz)}function RAe(){const{theme:e,toggle:t}=MAe();return u.jsxs("button",{onClick:t,title:"테마 전환",style:{display:"flex",alignItems:"center",gap:8,padding:"10px 12px",background:"none",border:"1px solid var(--uiws-border, #2d3448)",borderRadius:8,color:"var(--uiws-text-muted, #8892b0)",cursor:"pointer",fontSize:13,width:"100%"},children:[e==="dark"?u.jsx(XK,{size:16}):u.jsx(VK,{size:16}),e==="dark"?"라이트 모드":"다크 모드"]})}function Jh({children:e}){return u.jsx(PAe,{children:u.jsxs("div",{className:"uiws-scope",style:{minHeight:"100%",background:"var(--uiws-bg)",borderRadius:12,padding:20},children:[u.jsx("div",{style:{display:"flex",justifyContent:"flex-end",marginBottom:8},children:u.jsx("div",{style:{width:140},children:u.jsx(RAe,{})})}),e]})})}const _A={background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,boxShadow:"var(--uiws-shadow)"};function rv({title:e,subtitle:t,actions:n}){return u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",marginBottom:20},children:[u.jsxs("div",{children:[u.jsx("h1",{style:{fontSize:22,fontWeight:700,color:"var(--uiws-text)"},children:e}),t&&u.jsx("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginTop:4},children:t})]}),u.jsx("div",{style:{display:"flex",gap:8},children:n})]})}function dz({children:e,style:t}){return u.jsx("div",{style:{..._A,padding:18,...t},children:e})}function Fe({children:e,onClick:t,variant:n="primary",type:r="button",disabled:a}){const i={primary:{background:"var(--uiws-primary)",color:"var(--uiws-primary-contrast)",border:"none"},ghost:{background:"transparent",color:"var(--uiws-text-muted)",border:"1px solid var(--uiws-border)"},danger:{background:"var(--uiws-danger)",color:"#fff",border:"none"}};return u.jsx("button",{type:r,onClick:t,disabled:a,style:{padding:"9px 16px",borderRadius:8,fontSize:13,fontWeight:600,cursor:a?"not-allowed":"pointer",opacity:a?.5:1,...i[n]},children:e})}function fn({value:e,onChange:t,placeholder:n,type:r="text",style:a}){return u.jsx("input",{type:r,value:e,placeholder:n,onChange:i=>t(i.target.value),style:{padding:"9px 12px",borderRadius:8,fontSize:13,background:"var(--uiws-input-bg)",border:"1px solid var(--uiws-border)",color:"var(--uiws-text)",...a}})}function Lr({label:e,children:t}){return u.jsxs("label",{style:{display:"block",marginBottom:12},children:[u.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:e}),t]})}function PA({children:e}){return u.jsx(dz,{style:{display:"flex",gap:10,alignItems:"center",flexWrap:"wrap",marginBottom:16},children:e})}function hz({columns:e,rows:t,rowKey:n,onRowClick:r,empty:a="데이터가 없습니다."}){return u.jsx("div",{style:{..._A,overflow:"hidden"},children:u.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[u.jsx("thead",{children:u.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:e.map(i=>u.jsx("th",{style:{textAlign:i.align??"left",padding:"11px 14px",color:"var(--uiws-text-muted)",fontWeight:600,fontSize:12,borderBottom:"1px solid var(--uiws-border)",width:i.width},children:i.header},i.key))})}),u.jsx("tbody",{children:t.length===0?u.jsx("tr",{children:u.jsx("td",{colSpan:e.length,style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:a})}):t.map(i=>u.jsx("tr",{onClick:()=>r==null?void 0:r(i),style:{cursor:r?"pointer":"default",borderBottom:"1px solid var(--uiws-border)"},onMouseEnter:s=>s.currentTarget.style.background="var(--uiws-row-hover)",onMouseLeave:s=>s.currentTarget.style.background="transparent",children:e.map(s=>u.jsx("td",{style:{padding:"11px 14px",textAlign:s.align??"left"},children:s.render?s.render(i):String(i[s.key]??"")},s.key))},n(i)))})]})})}function pz({page:e,totalPages:t,onChange:n}){return t<=1?null:u.jsxs("div",{style:{display:"flex",gap:6,justifyContent:"center",marginTop:16},children:[u.jsx(Fe,{variant:"ghost",disabled:e<=0,onClick:()=>n(e-1),children:"이전"}),u.jsxs("span",{style:{alignSelf:"center",fontSize:13,color:"var(--uiws-text-muted)"},children:[e+1," / ",t]}),u.jsx(Fe,{variant:"ghost",disabled:e>=t-1,onClick:()=>n(e+1),children:"다음"})]})}function mz({yn:e,yes:t="읽음",no:n="안읽음"}){const r=e==="Y";return u.jsx("span",{style:{fontSize:11,fontWeight:600,padding:"2px 9px",borderRadius:999,color:r?"var(--uiws-success)":"var(--uiws-text-muted)",background:r?"rgba(46,204,113,0.12)":"var(--uiws-surface-2)",border:"1px solid var(--uiws-border)"},children:r?t:n})}function nu({title:e,onClose:t,children:n,footer:r}){return u.jsx("div",{onClick:t,style:{position:"fixed",inset:0,background:"rgba(0,0,0,0.5)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e3},children:u.jsxs("div",{onClick:a=>a.stopPropagation(),style:{..._A,width:"min(560px, 92vw)",maxHeight:"88vh",overflow:"auto",padding:22},children:[u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[u.jsx("h2",{style:{fontSize:17,fontWeight:700,color:"var(--uiws-text)"},children:e}),u.jsx("button",{onClick:t,style:{background:"none",border:"none",color:"var(--uiws-text-muted)",fontSize:20,cursor:"pointer"},children:"×"})]}),u.jsx("div",{children:n}),r&&u.jsx("div",{style:{display:"flex",gap:8,justifyContent:"flex-end",marginTop:18},children:r})]})})}function av({label:e="불러오는 중..."}){return u.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)",fontSize:13},children:e})}const PP={ONGOING:"진행중",DONE:"종료"};function DAe(){const[e,t]=A.useState([]),[n,r]=A.useState(0),[a,i]=A.useState(0),[s,o]=A.useState([]),[l,c]=A.useState(""),[d,f]=A.useState(""),[h,p]=A.useState(!1),[m,g]=A.useState(!1),[v,y]=A.useState(null),b=async()=>{p(!0);try{const j=(await sQ({page:n,size:20,progressCd:l||void 0})).data.data;t(j.content??[]),i(j.totalPages??0);const O=await oQ({});o(O.data.data??[])}finally{p(!1)}};A.useEffect(()=>{b()},[n,l]);const x=[{key:"workDate",header:"근무일자",width:120},{key:"title",header:"제목"},{key:"writerNm",header:"작성자",width:120},{key:"progressCd",header:"진행",width:90,render:S=>PP[S.progressCd]??S.progressCd},{key:"commentCount",header:"댓글",width:70,align:"center"}],w=async S=>{const j=await cQ(S.worklogId);y(j.data.data)};return u.jsxs("div",{className:"uiws-scope",children:[u.jsx(rv,{title:"업무일지",subtitle:"UIWS 이식 · 업무일지 작성/조회/진행관리",actions:u.jsx(Fe,{onClick:()=>g(!0),children:"+ 업무일지 작성"})}),u.jsx("div",{style:{display:"flex",gap:10,marginBottom:16,flexWrap:"wrap"},children:s.map(S=>u.jsxs("div",{onClick:()=>{c(l===S.progressCd?"":S.progressCd),r(0)},style:{cursor:"pointer",padding:"12px 18px",borderRadius:10,minWidth:130,background:"var(--uiws-surface)",border:`1px solid ${l===S.progressCd?"var(--uiws-primary)":"var(--uiws-border)"}`},children:[u.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)"},children:S.progressNm}),u.jsx("div",{style:{fontSize:24,fontWeight:700,color:"var(--uiws-primary)"},children:S.count})]},S.progressCd))}),u.jsxs(PA,{children:[u.jsx(fn,{value:d,onChange:f,placeholder:"제목 검색",style:{minWidth:220}}),u.jsx(Fe,{variant:"ghost",onClick:()=>{r(0),b()},children:"검색"}),l&&u.jsxs(Fe,{variant:"ghost",onClick:()=>c(""),children:["필터 해제: ",PP[l]??l]})]}),h?u.jsx(av,{}):u.jsxs(u.Fragment,{children:[u.jsx(hz,{columns:x,rows:e,rowKey:S=>S.worklogId,onRowClick:w,empty:"업무일지가 없습니다."}),u.jsx(pz,{page:n,totalPages:a,onChange:r})]}),m&&u.jsx(kAe,{onClose:()=>g(!1),onSaved:()=>{g(!1),b()}}),v&&u.jsx($Ae,{detail:v,onClose:()=>y(null),onChanged:()=>{y(null),b()}})]})}function kAe({onClose:e,onSaved:t}){const[n,r]=A.useState(""),[a,i]=A.useState(localStorage.getItem("erp_user")||"admin"),[s,o]=A.useState(new Date().toISOString().slice(0,10)),[l,c]=A.useState("NORMAL"),[d,f]=A.useState(""),h=async()=>{var p,m;f("");try{await lQ({title:n,writerId:a,workDate:s,workStatusCd:l,progressCd:"ONGOING",details:[]}),t()}catch(g){f(((m=(p=g==null?void 0:g.response)==null?void 0:p.data)==null?void 0:m.message)||"저장 실패")}};return u.jsxs(nu,{title:"업무일지 작성",onClose:e,footer:u.jsxs(u.Fragment,{children:[u.jsx(Fe,{variant:"ghost",onClick:e,children:"취소"}),u.jsx(Fe,{onClick:h,children:"저장"})]}),children:[u.jsx(Lr,{label:"제목",children:u.jsx(fn,{value:n,onChange:r,style:{width:"100%"}})}),u.jsx(Lr,{label:"작성자 ID",children:u.jsx(fn,{value:a,onChange:i,style:{width:"100%"}})}),u.jsx(Lr,{label:"근무일자",children:u.jsx(fn,{type:"date",value:s,onChange:o,style:{width:"100%"}})}),u.jsx(Lr,{label:"근무상태 코드",children:u.jsx(fn,{value:l,onChange:c,style:{width:"100%"}})}),d&&u.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:d})]})}function $Ae({detail:e,onClose:t,onChanged:n}){var c;const[r,a]=A.useState(""),[i,s]=A.useState(""),o=async()=>{await uQ(e.worklogId),n()},l=async()=>{var d,f;s("");try{await fQ(e.worklogId,r),a(""),n()}catch(h){s(((f=(d=h==null?void 0:h.response)==null?void 0:d.data)==null?void 0:f.message)||"댓글 등록 실패")}};return u.jsxs(nu,{title:e.title,onClose:t,footer:u.jsxs(u.Fragment,{children:[u.jsx(Fe,{variant:"danger",onClick:o,children:"삭제"}),u.jsx(Fe,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[u.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:12},children:[e.writerNm," · ",e.workDate," · ",e.progressCd]}),u.jsxs("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:["시간대별 상세 ",((c=e.details)==null?void 0:c.length)??0,"건"]}),u.jsxs("div",{style:{marginTop:14},children:[u.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:8},children:"댓글"}),(e.comments??[]).map(d=>u.jsxs("div",{style:{padding:"8px 10px",borderRadius:8,background:"var(--uiws-surface-2)",marginBottom:6,fontSize:13},children:[u.jsx("b",{children:d.writerNm})," · ",u.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:d.createdAt}),u.jsx("br",{}),d.cmtContent]},d.cmtId)),u.jsxs("div",{style:{display:"flex",gap:8,marginTop:8},children:[u.jsx(fn,{value:r,onChange:a,placeholder:"댓글 입력(관리자/매니저)",style:{flex:1}}),u.jsx(Fe,{onClick:l,children:"등록"})]}),i&&u.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:12,marginTop:6},children:i})]})]})}const LAe=["일","월","화","수","목","금","토"];function zAe(){const[e,t]=A.useState(new Date),[n,r]=A.useState("PERSONAL"),[a,i]=A.useState([]),[s,o]=A.useState(!1),[l,c]=A.useState(null),[d,f]=A.useState(null),h=`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}`,p=async()=>{o(!0);try{const w=await nQ({type:n,view:"month",baseDate:`${h}-01`});i(w.data.data??[])}finally{o(!1)}};A.useEffect(()=>{p()},[h,n]);const g=new Date(e.getFullYear(),e.getMonth(),1).getDay(),v=new Date(e.getFullYear(),e.getMonth()+1,0).getDate(),y=[...Array(g).fill(null),...Array.from({length:v},(w,S)=>S+1)],b=w=>{const S=`${h}-${String(w).padStart(2,"0")}`;return a.filter(j=>(j.startDt??"").slice(0,10)<=S&&S<=(j.endDt??"").slice(0,10))},x=w=>t(new Date(e.getFullYear(),e.getMonth()+w,1));return u.jsxs("div",{className:"uiws-scope",children:[u.jsx(rv,{title:"일정",subtitle:"UIWS 이식 · 개인/부서 일정 달력",actions:u.jsx(Fe,{onClick:()=>c(`${h}-01`),children:"+ 일정 등록"})}),u.jsxs(dz,{style:{display:"flex",gap:10,alignItems:"center",marginBottom:16},children:[u.jsx(Fe,{variant:"ghost",onClick:()=>x(-1),children:"‹ 이전"}),u.jsx("div",{style:{fontWeight:700,minWidth:130,textAlign:"center",color:"var(--uiws-text)"},children:h}),u.jsx(Fe,{variant:"ghost",onClick:()=>x(1),children:"다음 ›"}),u.jsx("div",{style:{flex:1}}),u.jsx(Fe,{variant:n==="PERSONAL"?"primary":"ghost",onClick:()=>r("PERSONAL"),children:"개인"}),u.jsx(Fe,{variant:n==="DEPT"?"primary":"ghost",onClick:()=>r("DEPT"),children:"부서"})]}),s?u.jsx(av,{}):u.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"hidden"},children:u.jsxs("div",{style:{display:"grid",gridTemplateColumns:"repeat(7,1fr)"},children:[LAe.map((w,S)=>u.jsx("div",{style:{padding:"10px 0",textAlign:"center",fontSize:12,fontWeight:600,color:S===0?"var(--uiws-danger)":"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)"},children:w},w)),y.map((w,S)=>u.jsxs("div",{onClick:()=>w&&c(`${h}-${String(w).padStart(2,"0")}`),style:{minHeight:96,padding:6,borderRight:"1px solid var(--uiws-border)",borderBottom:"1px solid var(--uiws-border)",cursor:w?"pointer":"default"},children:[w&&u.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:4},children:w}),w&&b(w).slice(0,3).map(j=>u.jsx("div",{onClick:O=>{O.stopPropagation(),aQ(j.scheduleId).then(E=>f(E.data.data))},style:{fontSize:11,padding:"2px 6px",borderRadius:6,marginBottom:3,background:"var(--uiws-primary-soft)",color:"var(--uiws-primary)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:j.title},j.scheduleId))]},S))]})}),l&&u.jsx(IAe,{date:l,type:n,onClose:()=>c(null),onSaved:()=>{c(null),p()}}),d&&u.jsx(BAe,{detail:d,onClose:()=>f(null),onDeleted:()=>{f(null),p()}})]})}function IAe({date:e,type:t,onClose:n,onSaved:r}){const[a,i]=A.useState(""),[s,o]=A.useState(`${e}T09:00:00`),[l,c]=A.useState(`${e}T18:00:00`),[d,f]=A.useState(""),[h,p]=A.useState(""),m=async()=>{var g,v;p("");try{await rQ({scheType:t,title:a,startDt:s,endDt:l,content:d,attachmentIds:[]}),r()}catch(y){p(((v=(g=y==null?void 0:y.response)==null?void 0:g.data)==null?void 0:v.message)||"저장 실패")}};return u.jsxs(nu,{title:"일정 등록",onClose:n,footer:u.jsxs(u.Fragment,{children:[u.jsx(Fe,{variant:"ghost",onClick:n,children:"취소"}),u.jsx(Fe,{onClick:m,children:"저장"})]}),children:[u.jsx(Lr,{label:"제목",children:u.jsx(fn,{value:a,onChange:i,style:{width:"100%"}})}),u.jsx(Lr,{label:"시작(yyyy-MM-ddTHH:mm:ss)",children:u.jsx(fn,{value:s,onChange:o,style:{width:"100%"}})}),u.jsx(Lr,{label:"종료",children:u.jsx(fn,{value:l,onChange:c,style:{width:"100%"}})}),u.jsx(Lr,{label:"내용",children:u.jsx(fn,{value:d,onChange:f,style:{width:"100%"}})}),h&&u.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:h})]})}function BAe({detail:e,onClose:t,onDeleted:n}){const r=async()=>{await iQ(e.scheduleId),n()};return u.jsxs(nu,{title:e.title,onClose:t,footer:u.jsxs(u.Fragment,{children:[u.jsx(Fe,{variant:"danger",onClick:r,children:"삭제"}),u.jsx(Fe,{variant:"ghost",onClick:t,children:"닫기"})]}),children:[u.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:8},children:[e.scheType," · ",e.startDt," ~ ",e.endDt]}),u.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)"},children:e.content||"내용 없음"})]})}function UAe(){const[e,t]=A.useState("received"),[n,r]=A.useState([]),[a,i]=A.useState(0),[s,o]=A.useState(0),[l,c]=A.useState(""),[d,f]=A.useState(!1),[h,p]=A.useState(!1),[m,g]=A.useState(null),v=async()=>{f(!0);try{const j=(await(e==="received"?eQ:ZX)({page:a,size:20,titleKeyword:l||void 0})).data.data;r(j.content??[]),o(j.totalPages??0)}finally{f(!1)}};A.useEffect(()=>{v()},[e,a]);const y=[{key:"title",header:"제목"},{key:"senderNm",header:"보낸사람",width:130},{key:"sentAt",header:"받은시각",width:170},{key:"readYn",header:"상태",width:90,render:w=>u.jsx(mz,{yn:w.readYn})}],b=[{key:"title",header:"제목"},{key:"receiverSummary",header:"받는사람",width:160},{key:"open",header:"개봉",width:100,align:"center",render:w=>`${w.openCount}/${w.totalCount}`},{key:"sentAt",header:"보낸시각",width:170}],x=async w=>{const S=e==="received"?await tQ(w.messageId):await JX(w.messageId);g({...S.data.data,_tab:e}),e==="received"&&v()};return u.jsxs("div",{className:"uiws-scope",children:[u.jsx(rv,{title:"쪽지",subtitle:"UIWS 이식 · 사내 쪽지 송수신",actions:u.jsx(Fe,{onClick:()=>p(!0),children:"+ 쪽지 보내기"})}),u.jsxs(PA,{children:[u.jsx(Fe,{variant:e==="received"?"primary":"ghost",onClick:()=>{t("received"),i(0)},children:"받은쪽지함"}),u.jsx(Fe,{variant:e==="sent"?"primary":"ghost",onClick:()=>{t("sent"),i(0)},children:"보낸쪽지함"}),u.jsx("div",{style:{flex:1}}),u.jsx(fn,{value:l,onChange:c,placeholder:"제목 검색",style:{minWidth:200}}),u.jsx(Fe,{variant:"ghost",onClick:()=>{i(0),v()},children:"검색"})]}),d?u.jsx(av,{}):u.jsxs(u.Fragment,{children:[u.jsx(hz,{columns:e==="received"?y:b,rows:n,rowKey:w=>w.messageId,onRowClick:x,empty:"쪽지가 없습니다."}),u.jsx(pz,{page:a,totalPages:s,onChange:i})]}),h&&u.jsx(FAe,{onClose:()=>p(!1),onSent:()=>{p(!1),v()}}),m&&u.jsx(VAe,{detail:m,onClose:()=>g(null)})]})}function FAe({onClose:e,onSent:t}){const[n,r]=A.useState(""),[a,i]=A.useState(""),[s,o]=A.useState(""),[l,c]=A.useState(""),d=async()=>{var f,h;c("");try{await QX({title:a,content:s,receivers:[{receiverId:n,rcvType:"RECV"}]}),t()}catch(p){c(((h=(f=p==null?void 0:p.response)==null?void 0:f.data)==null?void 0:h.message)||"전송 실패")}};return u.jsxs(nu,{title:"쪽지 보내기",onClose:e,footer:u.jsxs(u.Fragment,{children:[u.jsx(Fe,{variant:"ghost",onClick:e,children:"취소"}),u.jsx(Fe,{onClick:d,children:"보내기"})]}),children:[u.jsx(Lr,{label:"받는사람 ID",children:u.jsx(fn,{value:n,onChange:r,style:{width:"100%"}})}),u.jsx(Lr,{label:"제목",children:u.jsx(fn,{value:a,onChange:i,style:{width:"100%"}})}),u.jsx(Lr,{label:"내용",children:u.jsx(fn,{value:s,onChange:o,style:{width:"100%"}})}),l&&u.jsx("div",{style:{color:"var(--uiws-danger)",fontSize:13},children:l})]})}function VAe({detail:e,onClose:t}){return u.jsxs(nu,{title:e.title,onClose:t,footer:u.jsx(Fe,{variant:"ghost",onClick:t,children:"닫기"}),children:[u.jsxs("div",{style:{fontSize:13,color:"var(--uiws-text-muted)",marginBottom:10},children:[e._tab==="received"?`보낸사람: ${e.senderNm}`:`개봉 ${e.openCount}/${e.totalCount}`," · ",e.sentAt]}),u.jsx("div",{style:{fontSize:14,color:"var(--uiws-text)",whiteSpace:"pre-wrap"},children:e.content}),e._tab==="sent"&&e.receivers&&u.jsxs("div",{style:{marginTop:14},children:[u.jsx("div",{style:{fontSize:12,color:"var(--uiws-text-muted)",marginBottom:6},children:"수신자 개봉현황"}),e.receivers.map((n,r)=>u.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:13,padding:"4px 0"},children:[u.jsxs("span",{children:[n.receiverNm," (",n.rcvType,")"]}),u.jsx(mz,{yn:n.readYn})]},r))]})]})}function HAe(){const[e,t]=A.useState("personal"),[n,r]=A.useState(null),[a,i]=A.useState(!1),s=new Date().toISOString().slice(0,10),o=new Date(Date.now()-6*864e5).toISOString().slice(0,10),[l,c]=A.useState(o),[d,f]=A.useState(s),h=async()=>{i(!0);try{const g=await(e==="personal"?dQ:hQ)({fromDate:l,toDate:d});r(g.data.data)}finally{i(!1)}};A.useEffect(()=>{h()},[e]);const p=n?[...n.fixedColumns,...n.dynamicColumns]:[];return u.jsxs("div",{className:"uiws-scope",children:[u.jsx(rv,{title:"업무통계",subtitle:"UIWS 이식 · 근무현황 동적 피벗"}),u.jsxs(PA,{children:[u.jsx(Fe,{variant:e==="personal"?"primary":"ghost",onClick:()=>t("personal"),children:"개인별 근무현황"}),u.jsx(Fe,{variant:e==="company"?"primary":"ghost",onClick:()=>t("company"),children:"업체별 근무현황"}),u.jsx("div",{style:{flex:1}}),u.jsx(fn,{type:"date",value:l,onChange:c}),u.jsx("span",{style:{color:"var(--uiws-text-muted)"},children:"~"}),u.jsx(fn,{type:"date",value:d,onChange:f}),u.jsx(Fe,{variant:"ghost",onClick:h,children:"조회"})]}),a?u.jsx(av,{}):!n||n.rows.length===0?u.jsx("div",{style:{padding:28,textAlign:"center",color:"var(--uiws-text-faint)"},children:"집계 데이터가 없습니다."}):u.jsx("div",{style:{background:"var(--uiws-surface)",border:"1px solid var(--uiws-border)",borderRadius:12,overflow:"auto"},children:u.jsxs("table",{style:{width:"100%",borderCollapse:"collapse",fontSize:13,color:"var(--uiws-text)"},children:[u.jsx("thead",{children:u.jsx("tr",{style:{background:"var(--uiws-surface-2)"},children:p.map(m=>u.jsx("th",{style:{padding:"11px 14px",textAlign:"left",fontSize:12,fontWeight:600,color:"var(--uiws-text-muted)",borderBottom:"1px solid var(--uiws-border)",whiteSpace:"nowrap"},children:m.label},m.key))})}),u.jsx("tbody",{children:n.rows.map((m,g)=>u.jsx("tr",{style:{borderBottom:"1px solid var(--uiws-border)"},children:p.map(v=>u.jsx("td",{style:{padding:"10px 14px"},children:String(m[v.key]??"")},v.key))},g))})]})})]})}const qAe=new HB({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:3e4}}});function KAe(){return u.jsx(qB,{client:qAe,children:u.jsx($7,{children:u.jsx(T7,{children:u.jsxs(n7,{children:[u.jsx(ve,{path:"/",element:u.jsx(sX,{})}),u.jsx(ve,{path:"/account",element:u.jsx(KX,{})}),u.jsxs(ve,{element:u.jsx(AX,{}),children:[u.jsx(ve,{path:"/home",element:u.jsx(NX,{})}),u.jsx(ve,{path:"/category",element:u.jsx(_X,{})}),u.jsx(ve,{path:"/search",element:u.jsx(PX,{})}),u.jsx(ve,{path:"/product/:id",element:u.jsx(MX,{})}),u.jsx(ve,{path:"/cart",element:u.jsx(RX,{})}),u.jsx(ve,{path:"/checkout",element:u.jsx(kX,{})}),u.jsx(ve,{path:"/subscription",element:u.jsx(zX,{})}),u.jsx(ve,{path:"/daily-standard",element:u.jsx(IX,{})}),u.jsx(ve,{path:"/events",element:u.jsx(UX,{})}),u.jsx(ve,{path:"/wishlist",element:u.jsx(FX,{})}),u.jsx(ve,{path:"/mypage",element:u.jsx(VX,{})}),u.jsx(ve,{path:"/orders",element:u.jsx(HX,{})}),u.jsx(ve,{path:"/review/:productId",element:u.jsx(qX,{})}),u.jsx(ve,{path:"/cs",element:u.jsx(YX,{})}),u.jsx(ve,{path:"/app",element:u.jsx(WX,{})})]}),u.jsx(ve,{path:"/admin/login",element:u.jsx(pQ,{})}),u.jsxs(ve,{path:"/admin",element:u.jsx(vQ,{}),children:[u.jsx(ve,{index:!0,element:u.jsx(sm,{to:"/admin/dashboard",replace:!0})}),u.jsx(ve,{path:"dashboard",element:u.jsx(dAe,{})}),u.jsx(ve,{path:"stores",element:u.jsx(hAe,{})}),u.jsx(ve,{path:"products",element:u.jsx(pAe,{})}),u.jsx(ve,{path:"inventory",element:u.jsx(mAe,{})}),u.jsx(ve,{path:"orders",element:u.jsx(yAe,{})}),u.jsx(ve,{path:"transfers",element:u.jsx(gAe,{})}),u.jsx(ve,{path:"members",element:u.jsx(vAe,{})}),u.jsx(ve,{path:"loyalty",element:u.jsx(bAe,{})}),u.jsx(ve,{path:"events",element:u.jsx(SAe,{})}),u.jsx(ve,{path:"subscriptions",element:u.jsx(wAe,{})}),u.jsx(ve,{path:"schedule",element:u.jsx(AAe,{})}),u.jsx(ve,{path:"analytics",element:u.jsx(OAe,{})}),u.jsx(ve,{path:"users",element:u.jsx(EAe,{})}),u.jsx(ve,{path:"audit",element:u.jsx(TAe,{})}),u.jsx(ve,{path:"settings",element:u.jsx(NAe,{})}),u.jsx(ve,{path:"app",element:u.jsx(CAe,{})}),u.jsx(ve,{path:"uiws/worklog",element:u.jsx(Jh,{children:u.jsx(DAe,{})})}),u.jsx(ve,{path:"uiws/schedule",element:u.jsx(Jh,{children:u.jsx(zAe,{})})}),u.jsx(ve,{path:"uiws/message",element:u.jsx(Jh,{children:u.jsx(UAe,{})})}),u.jsx(ve,{path:"uiws/stats",element:u.jsx(Jh,{children:u.jsx(HAe,{})})})]}),u.jsx(ve,{path:"*",element:u.jsx(sm,{to:"/",replace:!0})})]})})})})}const{slice:GAe,forEach:YAe}=[];function WAe(e){return YAe.call(GAe.call(arguments,1),t=>{if(t)for(const n in t)e[n]===void 0&&(e[n]=t[n])}),e}function XAe(e){return typeof e!="string"?!1:[/<\s*script.*?>/i,/<\s*\/\s*script\s*>/i,/<\s*img.*?on\w+\s*=/i,/<\s*\w+\s*on\w+\s*=.*?>/i,/javascript\s*:/i,/vbscript\s*:/i,/expression\s*\(/i,/eval\s*\(/i,/alert\s*\(/i,/document\.cookie/i,/document\.write\s*\(/i,/window\.location/i,/innerHTML/i].some(n=>n.test(e))}const MP=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,QAe=function(e,t){const r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{path:"/"},a=encodeURIComponent(t);let i=`${e}=${a}`;if(r.maxAge>0){const s=r.maxAge-0;if(Number.isNaN(s))throw new Error("maxAge should be a Number");i+=`; Max-Age=${Math.floor(s)}`}if(r.domain){if(!MP.test(r.domain))throw new TypeError("option domain is invalid");i+=`; Domain=${r.domain}`}if(r.path){if(!MP.test(r.path))throw new TypeError("option path is invalid");i+=`; Path=${r.path}`}if(r.expires){if(typeof r.expires.toUTCString!="function")throw new TypeError("option expires is invalid");i+=`; Expires=${r.expires.toUTCString()}`}if(r.httpOnly&&(i+="; HttpOnly"),r.secure&&(i+="; Secure"),r.sameSite)switch(typeof r.sameSite=="string"?r.sameSite.toLowerCase():r.sameSite){case!0:i+="; SameSite=Strict";break;case"lax":i+="; SameSite=Lax";break;case"strict":i+="; SameSite=Strict";break;case"none":i+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r.partitioned&&(i+="; Partitioned"),i},RP={create(e,t,n,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{path:"/",sameSite:"strict"};n&&(a.expires=new Date,a.expires.setTime(a.expires.getTime()+n*60*1e3)),r&&(a.domain=r),document.cookie=QAe(e,t,a)},read(e){const t=`${e}=`,n=document.cookie.split(";");for(let r=0;r<n.length;r++){let a=n[r];for(;a.charAt(0)===" ";)a=a.substring(1,a.length);if(a.indexOf(t)===0)return a.substring(t.length,a.length)}return null},remove(e,t){this.create(e,"",-1,t)}};var ZAe={name:"cookie",lookup(e){let{lookupCookie:t}=e;if(t&&typeof document<"u")return RP.read(t)||void 0},cacheUserLanguage(e,t){let{lookupCookie:n,cookieMinutes:r,cookieDomain:a,cookieOptions:i}=t;n&&typeof document<"u"&&RP.create(n,e,r,a,i)}},JAe={name:"querystring",lookup(e){var r;let{lookupQuerystring:t}=e,n;if(typeof window<"u"){let{search:a}=window.location;!window.location.search&&((r=window.location.hash)==null?void 0:r.indexOf("?"))>-1&&(a=window.location.hash.substring(window.location.hash.indexOf("?")));const s=a.substring(1).split("&");for(let o=0;o<s.length;o++){const l=s[o].indexOf("=");l>0&&s[o].substring(0,l)===t&&(n=s[o].substring(l+1))}}return n}},e2e={name:"hash",lookup(e){var a;let{lookupHash:t,lookupFromHashIndex:n}=e,r;if(typeof window<"u"){const{hash:i}=window.location;if(i&&i.length>2){const s=i.substring(1);if(t){const o=s.split("&");for(let l=0;l<o.length;l++){const c=o[l].indexOf("=");c>0&&o[l].substring(0,c)===t&&(r=o[l].substring(c+1))}}if(r)return r;if(!r&&n>-1){const o=i.match(/\/([a-zA-Z-]*)/g);return Array.isArray(o)?(a=o[typeof n=="number"?n:0])==null?void 0:a.replace("/",""):void 0}}}return r}};let Uo=null;const DP=()=>{if(Uo!==null)return Uo;try{if(Uo=typeof window<"u"&&window.localStorage!==null,!Uo)return!1;const e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch{Uo=!1}return Uo};var t2e={name:"localStorage",lookup(e){let{lookupLocalStorage:t}=e;if(t&&DP())return window.localStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupLocalStorage:n}=t;n&&DP()&&window.localStorage.setItem(n,e)}};let Fo=null;const kP=()=>{if(Fo!==null)return Fo;try{if(Fo=typeof window<"u"&&window.sessionStorage!==null,!Fo)return!1;const e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch{Fo=!1}return Fo};var n2e={name:"sessionStorage",lookup(e){let{lookupSessionStorage:t}=e;if(t&&kP())return window.sessionStorage.getItem(t)||void 0},cacheUserLanguage(e,t){let{lookupSessionStorage:n}=t;n&&kP()&&window.sessionStorage.setItem(n,e)}},r2e={name:"navigator",lookup(e){const t=[];if(typeof navigator<"u"){const{languages:n,userLanguage:r,language:a}=navigator;if(n)for(let i=0;i<n.length;i++)t.push(n[i]);r&&t.push(r),a&&t.push(a)}return t.length>0?t:void 0}},a2e={name:"htmlTag",lookup(e){let{htmlTag:t}=e,n;const r=t||(typeof document<"u"?document.documentElement:null);return r&&typeof r.getAttribute=="function"&&(n=r.getAttribute("lang")),n}},i2e={name:"path",lookup(e){var a;let{lookupFromPathIndex:t}=e;if(typeof window>"u")return;const n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);return Array.isArray(n)?(a=n[typeof t=="number"?t:0])==null?void 0:a.replace("/",""):void 0}},s2e={name:"subdomain",lookup(e){var a,i;let{lookupFromSubdomainIndex:t}=e;const n=typeof t=="number"?t+1:1,r=typeof window<"u"&&((i=(a=window.location)==null?void 0:a.hostname)==null?void 0:i.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i));if(r)return r[n]}};let yz=!1;try{document.cookie,yz=!0}catch{}const gz=["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"];yz||gz.splice(1,1);const o2e=()=>({order:gz,lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],convertDetectedLanguage:e=>e});class vz{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.type="languageDetector",this.detectors={},this.init(t,n)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{languageUtils:{}},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};this.services=t,this.options=WAe(n,this.options||{},o2e()),typeof this.options.convertDetectedLanguage=="string"&&this.options.convertDetectedLanguage.indexOf("15897")>-1&&(this.options.convertDetectedLanguage=a=>a.replace("-","_")),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=r,this.addDetector(ZAe),this.addDetector(JAe),this.addDetector(t2e),this.addDetector(n2e),this.addDetector(r2e),this.addDetector(a2e),this.addDetector(i2e),this.addDetector(s2e),this.addDetector(e2e)}addDetector(t){return this.detectors[t.name]=t,this}detect(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.options.order,n=[];return t.forEach(r=>{if(this.detectors[r]){let a=this.detectors[r].lookup(this.options);a&&typeof a=="string"&&(a=[a]),a&&(n=n.concat(a))}}),n=n.filter(r=>r!=null&&!XAe(r)).map(r=>this.options.convertDetectedLanguage(r)),this.services&&this.services.languageUtils&&this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}cacheUserLanguage(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.options.caches;n&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(t)>-1||n.forEach(r=>{this.detectors[r]&&this.detectors[r].cacheUserLanguage(t,this.options)}))}}vz.type="languageDetector";const l2e={search:"Search",searchPlaceholder:"Search bouquets, roses, occasions…",loading:"Loading…",noData:"No data",save:"Save",cancel:"Cancel",close:"Close",edit:"Edit",delete:"Delete",add:"Add",create:"Create",confirm:"Confirm",submit:"Submit",back:"Back",next:"Next",continue:"Continue",apply:"Apply",viewAll:"View All",yes:"Yes",no:"No",actions:"Actions",status:"Status",all:"All",language:"Language"},c2e={topbar:{reviews:"{{n}} reviews"},nav:{home:"Home",shopAll:"Shop All",loveRomance:"Love & Romance",birthday:"Birthday",sympathy:"Sympathy",todaysBouquet:"Today's Bouquet",subscriptions:"Subscriptions",offers:"Offers"},header:{zip:"ZIP",wishlist:"Wishlist",cart:"Cart",account:"Account"},footer:{since:"Since {{year}}",visitUs:"Visit Us",hours:"Hours",customerCare:"Customer Care",contactAiHelp:"Contact / AI Help",orderStatus:"Order Status",subscriptions:"Subscriptions",getApp:"Get the App (QR)",weAccept:"We accept",rights:"© 2026 Montvale Florist"}},u2e={since:"Since {{year}}",lead:"Tell us where you're sending flowers — we'll show what's available nearby.",enterZip:"Enter Delivery ZIP Code",placeholder:"e.g. 07645",go:"Go",availableStores:"Available stores",radiusSameDay:"{{radius}}mi radius · same-day by {{cutoff}} ({{tz}})",reviews:"{{n}} reviews",browsePickup:"Browse with store pickup →",errInvalid:"Please enter a 5-digit ZIP code.",errNotDeliverable:"Sorry, we don't deliver to that area yet. Try store pickup or another ZIP.",errFailed:"Lookup failed. Please try again in a moment."},f2e={title:"Cart",signInPrompt:"Please sign in to view your cart.",signInRegister:"Sign In / Register",empty:"Your cart is empty.",startShopping:"Start Shopping →",card:"Card",subtotal:"Subtotal",shippingTax:"Shipping/Tax",calcAtCheckout:"Calculated at checkout",total:"Total",checkout:"Checkout"},d2e={title:"Checkout",recipient:"Recipient",recipientName:"Recipient Name",deliveryAddress:"Delivery Address",deliveryDate:"Delivery Date",timeSlot:"Time Slot",cardMessage:"Card Message",cardMessagePlaceholder:"Write a heartfelt message…",aiSuggest:"AI Card Message",payment:"Payment",placeOrder:"Place Order",orderSummary:"Order Summary",contactPhone:"Contact Phone",sameDay:"Same-day delivery",processing:"Processing…",success:"Your order has been placed!"},h2e={title:"Flower Subscriptions",subtitle:"Fresh, florist-designed blooms delivered on your schedule.",weekly:"Weekly",biweekly:"Bi-weekly",monthly:"Monthly",subscribe:"Subscribe",manage:"Manage Subscription",frequency:"Frequency",nextDelivery:"Next Delivery"},p2e={resultsFor:'Search Results for "{{query}}"',aiUnderstood:"AI understood:",searching:"AI is searching…",noResults:"No results found."},m2e={title:"Wishlist",empty:"Your wishlist is empty.",startShopping:"Start Shopping →"},y2e={title:"My Page",hello:"Hello",myOrders:"My Orders",mySubscriptions:"My Subscriptions",wishlist:"Wishlist",points:"Points",tier:"Tier",addresses:"Addresses",signOut:"Sign Out",memberSince:"Member since"},g2e={addToCart:"Add to Cart",buyNow:"Buy Now",size:"Size",options:"Options",reviews:"Reviews",description:"Description",writeReview:"Write a Review",inStock:"In stock",outOfStock:"Out of stock",share:"Share",sizeStandard:"Standard",sizeDeluxe:"Deluxe",sizePremium:"Premium"},v2e={title:"Write a Review",rating:"Rating",comment:"Your Review",commentPlaceholder:"Share your experience…",submit:"Submit Review",thanks:"Thank you for your review!"},b2e={title:"Offers & Events",subtitle:"Seasonal deals and special campaigns.",endsIn:"Ends in",shopNow:"Shop Now"},x2e={signIn:"Sign In",signUp:"Sign Up",email:"Email",password:"Password",name:"Name",phone:"Phone",createAccount:"Create Account",haveAccount:"Already have an account?",noAccount:"Don't have an account?",guestCheckout:"Continue as Guest"},S2e={title:"Customer Support",subtitle:"We're here to help — ask our AI assistant or reach out directly.",askAi:"Ask AI Assistant",placeholder:"Type your question…",send:"Send",contactUs:"Contact Us"},w2e={title:"Get the Montvale App",subtitle:"Scan the QR code to install on your phone.",ios:"iOS",android:"Android"},j2e={console:"Admin Console",header:"US Multi-Store Florist Omnichannel E-Commerce · AI Demand Forecasting · BI",onPremiseTag:"Ollama On-Premise · Omnichannel",signOut:"Sign Out",system:"System",login:{title:"GUARDiA Mall Console",subtitle:"Store & Corporate Admin Sign In",username:"Username",password:"Password",signIn:"Sign In",storefrontHere:"Customer storefront is",here:"here",errNoPriv:"You do not have admin privileges.",errFailed:"Sign-in failed — please check your username and password."},nav:{dashboard:"Dashboard",stores:"Stores",products:"Products",inventory:"Store Inventory",orders:"Orders (Live)",transfers:"Inventory Transfers",members:"Members (CRM)",loyalty:"Tier & Points",events:"Events & Campaigns",subscriptions:"Subscriptions",schedule:"Schedule & Surge",analytics:"Revenue Analytics (BI)",users:"User Management",audit:"Audit Log",settings:"Gateway Settings",appInstall:"Admin App Install"},dashboard:{title:"Dashboard",todaysRevenue:"Today's Revenue",todaysOrders:"Today's Orders",stores:"Stores",storesSub:"Active store revenue ranking",largeOrders:"Large Orders",largeOrdersSub:"$500+ high-value orders",revenueByStore:"Revenue by Store (Last 7 Days)",revenueTrend:"Revenue Trend (14 Days)",bestSellers:"Best Sellers",storeRanking:"Store Revenue Ranking",store:"Store",revenue:"Revenue",orders:"Orders",unitsSold:"Units Sold"},common:{name:"Name",code:"Code",price:"Price",stock:"Stock",category:"Category",store:"Store",date:"Date",amount:"Amount",status:"Status",actions:"Actions",search:"Search",total:"Total",active:"Active",inactive:"Inactive"}},A2e={common:l2e,shop:c2e,zip:u2e,cart:f2e,checkout:d2e,subscription:h2e,search:p2e,wishlist:m2e,mypage:y2e,product:g2e,review:v2e,events:b2e,account:x2e,cs:S2e,app:w2e,admin:j2e},O2e={search:"검색",searchPlaceholder:"부케, 장미, 상황별로 검색하세요…",loading:"불러오는 중…",noData:"데이터 없음",save:"저장",cancel:"취소",close:"닫기",edit:"수정",delete:"삭제",add:"추가",create:"생성",confirm:"확인",submit:"제출",back:"뒤로",next:"다음",continue:"계속",apply:"적용",viewAll:"전체 보기",yes:"예",no:"아니오",actions:"작업",status:"상태",all:"전체",language:"언어"},E2e={topbar:{reviews:"리뷰 {{n}}개"},nav:{home:"홈",shopAll:"전체 상품",loveRomance:"사랑 & 로맨스",birthday:"생일",sympathy:"추모",todaysBouquet:"오늘의 부케",subscriptions:"정기 구독",offers:"이벤트"},header:{zip:"우편번호",wishlist:"찜",cart:"장바구니",account:"내 계정"},footer:{since:"{{year}}년부터",visitUs:"매장 안내",hours:"영업 시간",customerCare:"고객 지원",contactAiHelp:"문의 / AI 도움",orderStatus:"주문 조회",subscriptions:"정기 구독",getApp:"앱 다운로드 (QR)",weAccept:"결제 수단",rights:"© 2026 Montvale Florist"}},T2e={since:"{{year}}년부터",lead:"어디로 꽃을 보내실지 알려주시면 근처에서 가능한 상품을 보여드립니다.",enterZip:"배송 우편번호 입력",placeholder:"예: 07645",go:"확인",availableStores:"배송 가능 매장",radiusSameDay:"반경 {{radius}}마일 · {{cutoff}}까지 당일 배송 ({{tz}})",reviews:"리뷰 {{n}}개",browsePickup:"매장 픽업으로 둘러보기 →",errInvalid:"5자리 우편번호를 입력해 주세요.",errNotDeliverable:"죄송합니다. 아직 해당 지역은 배송이 어렵습니다. 매장 픽업 또는 다른 우편번호를 시도해 보세요.",errFailed:"조회에 실패했습니다. 잠시 후 다시 시도해 주세요."},N2e={title:"장바구니",signInPrompt:"장바구니를 보려면 로그인해 주세요.",signInRegister:"로그인 / 회원가입",empty:"장바구니가 비어 있습니다.",startShopping:"쇼핑 시작하기 →",card:"카드",subtotal:"상품 합계",shippingTax:"배송비/세금",calcAtCheckout:"결제 시 계산",total:"총 결제금액",checkout:"결제하기"},C2e={title:"결제",recipient:"받는 분",recipientName:"받는 분 성함",deliveryAddress:"배송 주소",deliveryDate:"배송 날짜",timeSlot:"배송 시간대",cardMessage:"카드 메시지",cardMessagePlaceholder:"진심 어린 메시지를 적어 주세요…",aiSuggest:"AI 카드 메시지",payment:"결제 수단",placeOrder:"주문하기",orderSummary:"주문 요약",contactPhone:"연락처",sameDay:"당일 배송",processing:"처리 중…",success:"주문이 완료되었습니다!"},_2e={title:"꽃 정기 구독",subtitle:"플로리스트가 디자인한 신선한 꽃을 원하는 주기로 받아보세요.",weekly:"매주",biweekly:"격주",monthly:"매월",subscribe:"구독하기",manage:"구독 관리",frequency:"배송 주기",nextDelivery:"다음 배송"},P2e={resultsFor:'"{{query}}" 검색 결과',aiUnderstood:"AI가 이해한 내용:",searching:"AI가 검색 중입니다…",noResults:"검색 결과가 없습니다."},M2e={title:"찜한 상품",empty:"찜한 상품이 없습니다.",startShopping:"쇼핑 시작하기 →"},R2e={title:"마이페이지",hello:"안녕하세요",myOrders:"내 주문",mySubscriptions:"내 구독",wishlist:"찜한 상품",points:"포인트",tier:"등급",addresses:"배송지 관리",signOut:"로그아웃",memberSince:"가입일"},D2e={addToCart:"장바구니 담기",buyNow:"바로 구매",size:"사이즈",options:"옵션",reviews:"리뷰",description:"상품 설명",writeReview:"리뷰 작성",inStock:"재고 있음",outOfStock:"품절",share:"공유",sizeStandard:"스탠다드",sizeDeluxe:"디럭스",sizePremium:"프리미엄"},k2e={title:"리뷰 작성",rating:"별점",comment:"리뷰 내용",commentPlaceholder:"이용 후기를 남겨 주세요…",submit:"리뷰 등록",thanks:"소중한 리뷰 감사합니다!"},$2e={title:"이벤트 & 혜택",subtitle:"시즌 특가와 특별 캠페인을 만나보세요.",endsIn:"종료까지",shopNow:"쇼핑하기"},L2e={signIn:"로그인",signUp:"회원가입",email:"이메일",password:"비밀번호",name:"이름",phone:"전화번호",createAccount:"계정 만들기",haveAccount:"이미 계정이 있으신가요?",noAccount:"계정이 없으신가요?",guestCheckout:"비회원으로 계속하기"},z2e={title:"고객 지원",subtitle:"도와드리겠습니다 — AI 어시스턴트에게 묻거나 직접 문의하세요.",askAi:"AI 어시스턴트에게 문의",placeholder:"궁금한 점을 입력하세요…",send:"보내기",contactUs:"문의하기"},I2e={title:"Montvale 앱 받기",subtitle:"QR 코드를 스캔하여 휴대폰에 설치하세요.",ios:"iOS",android:"안드로이드"},B2e={console:"관리자 콘솔",header:"미국 다지점 꽃집 옴니채널 e-커머스 · AI 수요 예측 · BI",onPremiseTag:"Ollama 온프레미스 · 옴니채널",signOut:"로그아웃",system:"시스템",login:{title:"GUARDiA Mall 콘솔",subtitle:"매장 및 본사 관리자 로그인",username:"아이디",password:"비밀번호",signIn:"로그인",storefrontHere:"고객 스토어프론트는",here:"여기",errNoPriv:"관리자 권한이 없습니다.",errFailed:"로그인에 실패했습니다 — 아이디와 비밀번호를 확인해 주세요."},nav:{dashboard:"대시보드",stores:"매장 관리",products:"상품 관리",inventory:"매장 재고",orders:"주문 (실시간)",transfers:"재고 이양",members:"회원 (CRM)",loyalty:"등급 & 포인트",events:"이벤트 & 캠페인",subscriptions:"정기 구독",schedule:"스케줄 & 서지",analytics:"매출 분석 (BI)",users:"사용자 관리",audit:"감사 로그",settings:"게이트웨이 설정",appInstall:"관리자 앱 설치"},dashboard:{title:"대시보드",todaysRevenue:"오늘의 매출",todaysOrders:"오늘의 주문",stores:"매장 수",storesSub:"활성 매장 매출 순위",largeOrders:"대형 주문",largeOrdersSub:"$500 이상 고액 주문",revenueByStore:"매장별 매출 (최근 7일)",revenueTrend:"매출 추이 (14일)",bestSellers:"베스트셀러",storeRanking:"매장 매출 순위",store:"매장",revenue:"매출",orders:"주문",unitsSold:"판매 수량"},common:{name:"이름",code:"코드",price:"가격",stock:"재고",category:"카테고리",store:"매장",date:"날짜",amount:"금액",status:"상태",actions:"작업",search:"검색",total:"합계",active:"활성",inactive:"비활성"}},U2e={common:O2e,shop:E2e,zip:T2e,cart:N2e,checkout:C2e,subscription:_2e,search:P2e,wishlist:M2e,mypage:R2e,product:D2e,review:k2e,events:$2e,account:L2e,cs:z2e,app:I2e,admin:B2e},bz=["en","ko"],F2e="mall_lang";function xz(e){const t=(e||"en").split("-")[0],n=bz.includes(t)?t:"en",r=document.documentElement;r.setAttribute("lang",n),r.classList.toggle("lang-ko",n==="ko")}an.use(vz).use(pK).init({resources:{en:{translation:A2e},ko:{translation:U2e}},fallbackLng:"en",supportedLngs:bz,nonExplicitSupportedLngs:!0,load:"languageOnly",interpolation:{escapeValue:!1},detection:{order:["localStorage","navigator","htmlTag"],lookupLocalStorage:F2e,caches:["localStorage"]}});xz(an.language);an.on("languageChanged",xz);vB.createRoot(document.getElementById("root")).render(u.jsx(_.StrictMode,{children:u.jsx(KAe,{})}));
