Files
boc/web-v2/dist/assets/index-BtifZyOD.js
T
Bernt bd28b60338 feat: BOC ledger-integration frontend + backend fixes
- Uppdatera robust_client.go med rätt tabellnamn (boc_chart_of_accounts, boc_journal_lines, boc_journal_entries)
- Uppdatera kolumnnamn (entry_id istället för journal_entry_id, account_code istället för code)
- Hantera både stora och små bokstäver för account_type
- Lägg till ledgerApi i frontend med BalanceSheet, IncomeStatement, MomsReport
- Uppdatera DashboardPage med Ledger KPI-kort
- Lägg till LEDGER_DB_URL i docker-compose.yml
- Uppdatera Dockerfile till golang:1.25-alpine
2026-07-29 19:53:39 +00:00

456 lines
944 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
(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 s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var Td=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function rt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ev={exports:{}},wu={};/**
* @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 J2;function e8(){if(J2)return wu;J2=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var c in a)c!=="key"&&(s[c]=a[c])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:s}}return wu.Fragment=t,wu.jsx=n,wu.jsxs=n,wu}var eT;function t8(){return eT||(eT=1,Ev.exports=e8()),Ev.exports}var p=t8(),Nv={exports:{}},Me={};/**
* @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 tT;function n8(){if(tT)return Me;tT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.activity"),g=Symbol.iterator;function S(L){return L===null||typeof L!="object"?null:(L=g&&L[g]||L["@@iterator"],typeof L=="function"?L:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,b={};function A(L,G,re){this.props=L,this.context=G,this.refs=b,this.updater=re||w}A.prototype.isReactComponent={},A.prototype.setState=function(L,G){if(typeof L!="object"&&typeof L!="function"&&L!=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,L,G,"setState")},A.prototype.forceUpdate=function(L){this.updater.enqueueForceUpdate(this,L,"forceUpdate")};function _(){}_.prototype=A.prototype;function T(L,G,re){this.props=L,this.context=G,this.refs=b,this.updater=re||w}var C=T.prototype=new _;C.constructor=T,j(C,A.prototype),C.isPureReactComponent=!0;var O=Array.isArray;function N(){}var M={H:null,A:null,T:null,S:null},R=Object.prototype.hasOwnProperty;function D(L,G,re){var fe=re.ref;return{$$typeof:e,type:L,key:G,ref:fe!==void 0?fe:null,props:re}}function B(L,G){return D(L.type,G,L.props)}function I(L){return typeof L=="object"&&L!==null&&L.$$typeof===e}function z(L){var G={"=":"=0",":":"=2"};return"$"+L.replace(/[=:]/g,function(re){return G[re]})}var H=/\/+/g;function X(L,G){return typeof L=="object"&&L!==null&&L.key!=null?z(""+L.key):G.toString(36)}function Y(L){switch(L.status){case"fulfilled":return L.value;case"rejected":throw L.reason;default:switch(typeof L.status=="string"?L.then(N,N):(L.status="pending",L.then(function(G){L.status==="pending"&&(L.status="fulfilled",L.value=G)},function(G){L.status==="pending"&&(L.status="rejected",L.reason=G)})),L.status){case"fulfilled":return L.value;case"rejected":throw L.reason}}throw L}function $(L,G,re,fe,ve){var je=typeof L;(je==="undefined"||je==="boolean")&&(L=null);var ze=!1;if(L===null)ze=!0;else switch(je){case"bigint":case"string":case"number":ze=!0;break;case"object":switch(L.$$typeof){case e:case t:ze=!0;break;case m:return ze=L._init,$(ze(L._payload),G,re,fe,ve)}}if(ze)return ve=ve(L),ze=fe===""?"."+X(L,0):fe,O(ve)?(re="",ze!=null&&(re=ze.replace(H,"$&/")+"/"),$(ve,G,re,"",function(Te){return Te})):ve!=null&&(I(ve)&&(ve=B(ve,re+(ve.key==null||L&&L.key===ve.key?"":(""+ve.key).replace(H,"$&/")+"/")+ze)),G.push(ve)),1;ze=0;var Xe=fe===""?".":fe+":";if(O(L))for(var ce=0;ce<L.length;ce++)fe=L[ce],je=Xe+X(fe,ce),ze+=$(fe,G,re,je,ve);else if(ce=S(L),typeof ce=="function")for(L=ce.call(L),ce=0;!(fe=L.next()).done;)fe=fe.value,je=Xe+X(fe,ce++),ze+=$(fe,G,re,je,ve);else if(je==="object"){if(typeof L.then=="function")return $(Y(L),G,re,fe,ve);throw G=String(L),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(L).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ze}function F(L,G,re){if(L==null)return L;var fe=[],ve=0;return $(L,fe,"","",function(je){return G.call(re,je,ve++)}),fe}function Q(L){if(L._status===-1){var G=L._result;G=G(),G.then(function(re){(L._status===0||L._status===-1)&&(L._status=1,L._result=re)},function(re){(L._status===0||L._status===-1)&&(L._status=2,L._result=re)}),L._status===-1&&(L._status=0,L._result=G)}if(L._status===1)return L._result.default;throw L._result}var ie=typeof reportError=="function"?reportError:function(L){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof L=="object"&&L!==null&&typeof L.message=="string"?String(L.message):String(L),error:L});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",L);return}console.error(L)},se={map:F,forEach:function(L,G,re){F(L,function(){G.apply(this,arguments)},re)},count:function(L){var G=0;return F(L,function(){G++}),G},toArray:function(L){return F(L,function(G){return G})||[]},only:function(L){if(!I(L))throw Error("React.Children.only expected to receive a single React element child.");return L}};return Me.Activity=y,Me.Children=se,Me.Component=A,Me.Fragment=n,Me.Profiler=a,Me.PureComponent=T,Me.StrictMode=r,Me.Suspense=f,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Me.__COMPILER_RUNTIME={__proto__:null,c:function(L){return M.H.useMemoCache(L)}},Me.cache=function(L){return function(){return L.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function(L,G,re){if(L==null)throw Error("The argument must be a React element, but you passed "+L+".");var fe=j({},L.props),ve=L.key;if(G!=null)for(je in G.key!==void 0&&(ve=""+G.key),G)!R.call(G,je)||je==="key"||je==="__self"||je==="__source"||je==="ref"&&G.ref===void 0||(fe[je]=G[je]);var je=arguments.length-2;if(je===1)fe.children=re;else if(1<je){for(var ze=Array(je),Xe=0;Xe<je;Xe++)ze[Xe]=arguments[Xe+2];fe.children=ze}return D(L.type,ve,fe)},Me.createContext=function(L){return L={$$typeof:l,_currentValue:L,_currentValue2:L,_threadCount:0,Provider:null,Consumer:null},L.Provider=L,L.Consumer={$$typeof:s,_context:L},L},Me.createElement=function(L,G,re){var fe,ve={},je=null;if(G!=null)for(fe in G.key!==void 0&&(je=""+G.key),G)R.call(G,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(ve[fe]=G[fe]);var ze=arguments.length-2;if(ze===1)ve.children=re;else if(1<ze){for(var Xe=Array(ze),ce=0;ce<ze;ce++)Xe[ce]=arguments[ce+2];ve.children=Xe}if(L&&L.defaultProps)for(fe in ze=L.defaultProps,ze)ve[fe]===void 0&&(ve[fe]=ze[fe]);return D(L,je,ve)},Me.createRef=function(){return{current:null}},Me.forwardRef=function(L){return{$$typeof:c,render:L}},Me.isValidElement=I,Me.lazy=function(L){return{$$typeof:m,_payload:{_status:-1,_result:L},_init:Q}},Me.memo=function(L,G){return{$$typeof:d,type:L,compare:G===void 0?null:G}},Me.startTransition=function(L){var G=M.T,re={};M.T=re;try{var fe=L(),ve=M.S;ve!==null&&ve(re,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(N,ie)}catch(je){ie(je)}finally{G!==null&&re.types!==null&&(G.types=re.types),M.T=G}},Me.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Me.use=function(L){return M.H.use(L)},Me.useActionState=function(L,G,re){return M.H.useActionState(L,G,re)},Me.useCallback=function(L,G){return M.H.useCallback(L,G)},Me.useContext=function(L){return M.H.useContext(L)},Me.useDebugValue=function(){},Me.useDeferredValue=function(L,G){return M.H.useDeferredValue(L,G)},Me.useEffect=function(L,G){return M.H.useEffect(L,G)},Me.useEffectEvent=function(L){return M.H.useEffectEvent(L)},Me.useId=function(){return M.H.useId()},Me.useImperativeHandle=function(L,G,re){return M.H.useImperativeHandle(L,G,re)},Me.useInsertionEffect=function(L,G){return M.H.useInsertionEffect(L,G)},Me.useLayoutEffect=function(L,G){return M.H.useLayoutEffect(L,G)},Me.useMemo=function(L,G){return M.H.useMemo(L,G)},Me.useOptimistic=function(L,G){return M.H.useOptimistic(L,G)},Me.useReducer=function(L,G,re){return M.H.useReducer(L,G,re)},Me.useRef=function(L){return M.H.useRef(L)},Me.useState=function(L){return M.H.useState(L)},Me.useSyncExternalStore=function(L,G,re){return M.H.useSyncExternalStore(L,G,re)},Me.useTransition=function(){return M.H.useTransition()},Me.version="19.2.7",Me}var nT;function iw(){return nT||(nT=1,Nv.exports=n8()),Nv.exports}var P=iw();const q=rt(P);var Cv={exports:{}},ju={},Mv={exports:{}},Pv={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var rT;function r8(){return rT||(rT=1,(function(e){function t($,F){var Q=$.length;$.push(F);e:for(;0<Q;){var ie=Q-1>>>1,se=$[ie];if(0<a(se,F))$[ie]=F,$[Q]=se,Q=ie;else break e}}function n($){return $.length===0?null:$[0]}function r($){if($.length===0)return null;var F=$[0],Q=$.pop();if(Q!==F){$[0]=Q;e:for(var ie=0,se=$.length,L=se>>>1;ie<L;){var G=2*(ie+1)-1,re=$[G],fe=G+1,ve=$[fe];if(0>a(re,Q))fe<se&&0>a(ve,re)?($[ie]=ve,$[fe]=Q,ie=fe):($[ie]=re,$[G]=Q,ie=G);else if(fe<se&&0>a(ve,Q))$[ie]=ve,$[fe]=Q,ie=fe;else break e}}return F}function a($,F){var Q=$.sortIndex-F.sortIndex;return Q!==0?Q:$.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],m=1,y=null,g=3,S=!1,w=!1,j=!1,b=!1,A=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function C($){for(var F=n(d);F!==null;){if(F.callback===null)r(d);else if(F.startTime<=$)r(d),F.sortIndex=F.expirationTime,t(f,F);else break;F=n(d)}}function O($){if(j=!1,C($),!w)if(n(f)!==null)w=!0,N||(N=!0,z());else{var F=n(d);F!==null&&Y(O,F.startTime-$)}}var N=!1,M=-1,R=5,D=-1;function B(){return b?!0:!(e.unstable_now()-D<R)}function I(){if(b=!1,N){var $=e.unstable_now();D=$;var F=!0;try{e:{w=!1,j&&(j=!1,_(M),M=-1),S=!0;var Q=g;try{t:{for(C($),y=n(f);y!==null&&!(y.expirationTime>$&&B());){var ie=y.callback;if(typeof ie=="function"){y.callback=null,g=y.priorityLevel;var se=ie(y.expirationTime<=$);if($=e.unstable_now(),typeof se=="function"){y.callback=se,C($),F=!0;break t}y===n(f)&&r(f),C($)}else r(f);y=n(f)}if(y!==null)F=!0;else{var L=n(d);L!==null&&Y(O,L.startTime-$),F=!1}}break e}finally{y=null,g=Q,S=!1}F=void 0}}finally{F?z():N=!1}}}var z;if(typeof T=="function")z=function(){T(I)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,X=H.port2;H.port1.onmessage=I,z=function(){X.postMessage(null)}}else z=function(){A(I,0)};function Y($,F){M=A(function(){$(e.unstable_now())},F)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function($){$.callback=null},e.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):R=0<$?Math.floor(1e3/$):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function($){switch(g){case 1:case 2:case 3:var F=3;break;default:F=g}var Q=g;g=F;try{return $()}finally{g=Q}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function($,F){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var Q=g;g=$;try{return F()}finally{g=Q}},e.unstable_scheduleCallback=function($,F,Q){var ie=e.unstable_now();switch(typeof Q=="object"&&Q!==null?(Q=Q.delay,Q=typeof Q=="number"&&0<Q?ie+Q:ie):Q=ie,$){case 1:var se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=Q+se,$={id:m++,callback:F,priorityLevel:$,startTime:Q,expirationTime:se,sortIndex:-1},Q>ie?($.sortIndex=Q,t(d,$),n(f)===null&&$===n(d)&&(j?(_(M),M=-1):j=!0,Y(O,Q-ie))):($.sortIndex=se,t(f,$),w||S||(w=!0,N||(N=!0,z()))),$},e.unstable_shouldYield=B,e.unstable_wrapCallback=function($){var F=g;return function(){var Q=g;g=F;try{return $.apply(this,arguments)}finally{g=Q}}}})(Pv)),Pv}var iT;function i8(){return iT||(iT=1,Mv.exports=r8()),Mv.exports}var Rv={exports:{}},fn={};/**
* @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 aT;function a8(){if(aT)return fn;aT=1;var e=iw();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)d+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+f+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(f,d,m){var y=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:y==null?null:""+y,children:f,containerInfo:d,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return fn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,fn.createPortal=function(f,d){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(f,d,null,m)},fn.flushSync=function(f){var d=l.T,m=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=m,r.d.f()}},fn.preconnect=function(f,d){typeof f=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(f,d))},fn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},fn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,y=c(m,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,S=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:y,integrity:g,fetchPriority:S}):m==="script"&&r.d.X(f,{crossOrigin:y,integrity:g,fetchPriority:S,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},fn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var m=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(f)},fn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,y=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:y,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},fn.preloadModule=function(f,d){if(typeof f=="string")if(d){var m=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},fn.requestFormReset=function(f){r.d.r(f)},fn.unstable_batchedUpdates=function(f,d){return f(d)},fn.useFormState=function(f,d,m){return l.H.useFormState(f,d,m)},fn.useFormStatus=function(){return l.H.useHostTransitionStatus()},fn.version="19.2.7",fn}var oT;function o8(){if(oT)return Rv.exports;oT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Rv.exports=a8(),Rv.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 sT;function s8(){if(sT)return ju;sT=1;var e=i8(),t=iw(),n=o8();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var u=2;u<arguments.length;u++)o+="&args[]="+encodeURIComponent(arguments[u])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var o=i,u=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(u=o.return),i=o.return;while(i)}return o.tag===3?u:null}function l(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function c(i){if(i.tag===31){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function f(i){if(s(i)!==i)throw Error(r(188))}function d(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var u=i,h=o;;){var v=u.return;if(v===null)break;var x=v.alternate;if(x===null){if(h=v.return,h!==null){u=h;continue}break}if(v.child===x.child){for(x=v.child;x;){if(x===u)return f(v),i;if(x===h)return f(v),o;x=x.sibling}throw Error(r(188))}if(u.return!==h.return)u=v,h=x;else{for(var E=!1,k=v.child;k;){if(k===u){E=!0,u=v,h=x;break}if(k===h){E=!0,h=v,u=x;break}k=k.sibling}if(!E){for(k=x.child;k;){if(k===u){E=!0,u=x,h=v;break}if(k===h){E=!0,h=x,u=v;break}k=k.sibling}if(!E)throw Error(r(189))}}if(u.alternate!==h)throw Error(r(190))}if(u.tag!==3)throw Error(r(188));return u.stateNode.current===u?i:o}function m(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=m(i),o!==null)return o;i=i.sibling}return null}var y=Object.assign,g=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),b=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),_=Symbol.for("react.consumer"),T=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),M=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),B=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function z(i){return i===null||typeof i!="object"?null:(i=I&&i[I]||i["@@iterator"],typeof i=="function"?i:null)}var H=Symbol.for("react.client.reference");function X(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===H?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case j:return"Fragment";case A:return"Profiler";case b:return"StrictMode";case O:return"Suspense";case N:return"SuspenseList";case D:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case w:return"Portal";case T:return i.displayName||"Context";case _:return(i._context.displayName||"Context")+".Consumer";case C:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case M:return o=i.displayName||null,o!==null?o:X(i.type)||"Memo";case R:o=i._payload,i=i._init;try{return X(i(o))}catch{}}return null}var Y=Array.isArray,$=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q={pending:!1,data:null,method:null,action:null},ie=[],se=-1;function L(i){return{current:i}}function G(i){0>se||(i.current=ie[se],ie[se]=null,se--)}function re(i,o){se++,ie[se]=i.current,i.current=o}var fe=L(null),ve=L(null),je=L(null),ze=L(null);function Xe(i,o){switch(re(je,o),re(ve,i),re(fe,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?w2(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=w2(o),i=j2(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}G(fe),re(fe,i)}function ce(){G(fe),G(ve),G(je)}function Te(i){i.memoizedState!==null&&re(ze,i);var o=fe.current,u=j2(o,i.type);o!==u&&(re(ve,i),re(fe,u))}function Ce(i){ve.current===i&&(G(fe),G(ve)),ze.current===i&&(G(ze),gu._currentValue=Q)}var le,yt;function De(i){if(le===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);le=o&&o[1]||"",yt=-1<u.stack.indexOf(`
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
`+le+i+yt}var At=!1;function Ot(i,o){if(!i||At)return"";At=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var oe=function(){throw Error()};if(Object.defineProperty(oe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(oe,[])}catch(ee){var J=ee}Reflect.construct(i,[],oe)}else{try{oe.call()}catch(ee){J=ee}i.call(oe.prototype)}}else{try{throw Error()}catch(ee){J=ee}(oe=i())&&typeof oe.catch=="function"&&oe.catch(function(){})}}catch(ee){if(ee&&J&&typeof ee.stack=="string")return[ee.stack,J.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var x=h.DetermineComponentFrameRoot(),E=x[0],k=x[1];if(E&&k){var U=E.split(`
`),Z=k.split(`
`);for(v=h=0;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;for(;v<Z.length&&!Z[v].includes("DetermineComponentFrameRoot");)v++;if(h===U.length||v===Z.length)for(h=U.length-1,v=Z.length-1;1<=h&&0<=v&&U[h]!==Z[v];)v--;for(;1<=h&&0<=v;h--,v--)if(U[h]!==Z[v]){if(h!==1||v!==1)do if(h--,v--,0>v||U[h]!==Z[v]){var te=`
`+U[h].replace(" at new "," at ");return i.displayName&&te.includes("<anonymous>")&&(te=te.replace("<anonymous>",i.displayName)),te}while(1<=h&&0<=v);break}}}finally{At=!1,Error.prepareStackTrace=u}return(u=i?i.displayName||i.name:"")?De(u):""}function un(i,o){switch(i.tag){case 26:case 27:case 5:return De(i.type);case 16:return De("Lazy");case 13:return i.child!==o&&o!==null?De("Suspense Fallback"):De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return Ot(i.type,!1);case 11:return Ot(i.type.render,!1);case 1:return Ot(i.type,!0);case 31:return De("Activity");default:return""}}function mr(i){try{var o="",u=null;do o+=un(i,u),u=i,i=i.return;while(i);return o}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}var Dr=Object.prototype.hasOwnProperty,qi=e.unstable_scheduleCallback,yr=e.unstable_cancelCallback,ni=e.unstable_shouldYield,Nl=e.unstable_requestPaint,cn=e.unstable_now,uf=e.unstable_getCurrentPriorityLevel,eA=e.unstable_ImmediatePriority,tA=e.unstable_UserBlockingPriority,cf=e.unstable_NormalPriority,kB=e.unstable_LowPriority,nA=e.unstable_IdlePriority,LB=e.log,zB=e.unstable_setDisableYieldValue,Cl=null,Cn=null;function Ii(i){if(typeof LB=="function"&&zB(i),Cn&&typeof Cn.setStrictMode=="function")try{Cn.setStrictMode(Cl,i)}catch{}}var Mn=Math.clz32?Math.clz32:qB,$B=Math.log,BB=Math.LN2;function qB(i){return i>>>=0,i===0?32:31-($B(i)/BB|0)|0}var ff=256,df=262144,hf=4194304;function ka(i){var o=i&42;if(o!==0)return o;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function pf(i,o,u){var h=i.pendingLanes;if(h===0)return 0;var v=0,x=i.suspendedLanes,E=i.pingedLanes;i=i.warmLanes;var k=h&134217727;return k!==0?(h=k&~x,h!==0?v=ka(h):(E&=k,E!==0?v=ka(E):u||(u=k&~i,u!==0&&(v=ka(u))))):(k=h&~x,k!==0?v=ka(k):E!==0?v=ka(E):u||(u=h&~i,u!==0&&(v=ka(u)))),v===0?0:o!==0&&o!==v&&(o&x)===0&&(x=v&-v,u=o&-o,x>=u||x===32&&(u&4194048)!==0)?o:v}function Ml(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function IB(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+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 o+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 rA(){var i=hf;return hf<<=1,(hf&62914560)===0&&(hf=4194304),i}function ym(i){for(var o=[],u=0;31>u;u++)o.push(i);return o}function Pl(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function UB(i,o,u,h,v,x){var E=i.pendingLanes;i.pendingLanes=u,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=u,i.entangledLanes&=u,i.errorRecoveryDisabledLanes&=u,i.shellSuspendCounter=0;var k=i.entanglements,U=i.expirationTimes,Z=i.hiddenUpdates;for(u=E&~u;0<u;){var te=31-Mn(u),oe=1<<te;k[te]=0,U[te]=-1;var J=Z[te];if(J!==null)for(Z[te]=null,te=0;te<J.length;te++){var ee=J[te];ee!==null&&(ee.lane&=-536870913)}u&=~oe}h!==0&&iA(i,h,0),x!==0&&v===0&&i.tag!==0&&(i.suspendedLanes|=x&~(E&~o))}function iA(i,o,u){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-Mn(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|u&261930}function aA(i,o){var u=i.entangledLanes|=o;for(i=i.entanglements;u;){var h=31-Mn(u),v=1<<h;v&o|i[h]&o&&(i[h]|=o),u&=~v}}function oA(i,o){var u=o&-o;return u=(u&42)!==0?1:vm(u),(u&(i.suspendedLanes|o))!==0?0:u}function vm(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function gm(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function sA(){var i=F.p;return i!==0?i:(i=window.event,i===void 0?32:F2(i.type))}function lA(i,o){var u=F.p;try{return F.p=i,o()}finally{F.p=u}}var Ui=Math.random().toString(36).slice(2),en="__reactFiber$"+Ui,Sn="__reactProps$"+Ui,Lo="__reactContainer$"+Ui,xm="__reactEvents$"+Ui,VB="__reactListeners$"+Ui,HB="__reactHandles$"+Ui,uA="__reactResources$"+Ui,Rl="__reactMarker$"+Ui;function bm(i){delete i[en],delete i[Sn],delete i[xm],delete i[VB],delete i[HB]}function zo(i){var o=i[en];if(o)return o;for(var u=i.parentNode;u;){if(o=u[Lo]||u[en]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(i=C2(i);i!==null;){if(u=i[en])return u;i=C2(i)}return o}i=u,u=i.parentNode}return null}function $o(i){if(i=i[en]||i[Lo]){var o=i.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return i}return null}function Dl(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function Bo(i){var o=i[uA];return o||(o=i[uA]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Xt(i){i[Rl]=!0}var cA=new Set,fA={};function La(i,o){qo(i,o),qo(i+"Capture",o)}function qo(i,o){for(fA[i]=o,i=0;i<o.length;i++)cA.add(o[i])}var GB=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]*$"),dA={},hA={};function FB(i){return Dr.call(hA,i)?!0:Dr.call(dA,i)?!1:GB.test(i)?hA[i]=!0:(dA[i]=!0,!1)}function mf(i,o,u){if(FB(o))if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+u)}}function yf(i,o,u){if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+u)}}function ri(i,o,u,h){if(h===null)i.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(u);return}i.setAttributeNS(o,u,""+h)}}function Yn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function pA(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function KB(i,o,u){var h=Object.getOwnPropertyDescriptor(i.constructor.prototype,o);if(!i.hasOwnProperty(o)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,x=h.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return v.call(this)},set:function(E){u=""+E,x.call(this,E)}}),Object.defineProperty(i,o,{enumerable:h.enumerable}),{getValue:function(){return u},setValue:function(E){u=""+E},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Sm(i){if(!i._valueTracker){var o=pA(i)?"checked":"value";i._valueTracker=KB(i,o,""+i[o])}}function mA(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return i&&(h=pA(i)?i.checked?"true":"false":i.value),i=h,i!==u?(o.setValue(i),!0):!1}function vf(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var YB=/[\n"\\]/g;function Xn(i){return i.replace(YB,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function wm(i,o,u,h,v,x,E,k){i.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?i.type=E:i.removeAttribute("type"),o!=null?E==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+Yn(o)):i.value!==""+Yn(o)&&(i.value=""+Yn(o)):E!=="submit"&&E!=="reset"||i.removeAttribute("value"),o!=null?jm(i,E,Yn(o)):u!=null?jm(i,E,Yn(u)):h!=null&&i.removeAttribute("value"),v==null&&x!=null&&(i.defaultChecked=!!x),v!=null&&(i.checked=v&&typeof v!="function"&&typeof v!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?i.name=""+Yn(k):i.removeAttribute("name")}function yA(i,o,u,h,v,x,E,k){if(x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(i.type=x),o!=null||u!=null){if(!(x!=="submit"&&x!=="reset"||o!=null)){Sm(i);return}u=u!=null?""+Yn(u):"",o=o!=null?""+Yn(o):u,k||o===i.value||(i.value=o),i.defaultValue=o}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=k?i.checked:!!h,i.defaultChecked=!!h,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(i.name=E),Sm(i)}function jm(i,o,u){o==="number"&&vf(i.ownerDocument)===i||i.defaultValue===""+u||(i.defaultValue=""+u)}function Io(i,o,u,h){if(i=i.options,o){o={};for(var v=0;v<u.length;v++)o["$"+u[v]]=!0;for(u=0;u<i.length;u++)v=o.hasOwnProperty("$"+i[u].value),i[u].selected!==v&&(i[u].selected=v),v&&h&&(i[u].defaultSelected=!0)}else{for(u=""+Yn(u),o=null,v=0;v<i.length;v++){if(i[v].value===u){i[v].selected=!0,h&&(i[v].defaultSelected=!0);return}o!==null||i[v].disabled||(o=i[v])}o!==null&&(o.selected=!0)}}function vA(i,o,u){if(o!=null&&(o=""+Yn(o),o!==i.value&&(i.value=o),u==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=u!=null?""+Yn(u):""}function gA(i,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(r(92));if(Y(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=Yn(o),i.defaultValue=u,h=i.textContent,h===u&&h!==""&&h!==null&&(i.value=h),Sm(i)}function Uo(i,o){if(o){var u=i.firstChild;if(u&&u===i.lastChild&&u.nodeType===3){u.nodeValue=o;return}}i.textContent=o}var XB=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 xA(i,o,u){var h=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,u):typeof u!="number"||u===0||XB.has(o)?o==="float"?i.cssFloat=u:i[o]=(""+u).trim():i[o]=u+"px"}function bA(i,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var v in o)h=o[v],o.hasOwnProperty(v)&&u[v]!==h&&xA(i,v,h)}else for(var x in o)o.hasOwnProperty(x)&&xA(i,x,o[x])}function Am(i){if(i.indexOf("-")===-1)return!1;switch(i){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 WB=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"]]),ZB=/^[\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 gf(i){return ZB.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function ii(){}var Om=null;function _m(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Vo=null,Ho=null;function SA(i){var o=$o(i);if(o&&(i=o.stateNode)){var u=i[Sn]||null;e:switch(i=o.stateNode,o.type){case"input":if(wm(i,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=i;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Xn(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==i&&h.form===i.form){var v=h[Sn]||null;if(!v)throw Error(r(90));wm(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===i.form&&mA(h)}break e;case"textarea":vA(i,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Io(i,!!u.multiple,o,!1)}}}var Tm=!1;function wA(i,o,u){if(Tm)return i(o,u);Tm=!0;try{var h=i(o);return h}finally{if(Tm=!1,(Vo!==null||Ho!==null)&&(ad(),Vo&&(o=Vo,i=Ho,Ho=Vo=null,SA(o),i)))for(o=0;o<i.length;o++)SA(i[o])}}function kl(i,o){var u=i.stateNode;if(u===null)return null;var h=u[Sn]||null;if(h===null)return null;u=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var ai=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Em=!1;if(ai)try{var Ll={};Object.defineProperty(Ll,"passive",{get:function(){Em=!0}}),window.addEventListener("test",Ll,Ll),window.removeEventListener("test",Ll,Ll)}catch{Em=!1}var Vi=null,Nm=null,xf=null;function jA(){if(xf)return xf;var i,o=Nm,u=o.length,h,v="value"in Vi?Vi.value:Vi.textContent,x=v.length;for(i=0;i<u&&o[i]===v[i];i++);var E=u-i;for(h=1;h<=E&&o[u-h]===v[x-h];h++);return xf=v.slice(i,1<h?1-h:void 0)}function bf(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function Sf(){return!0}function AA(){return!1}function wn(i){function o(u,h,v,x,E){this._reactName=u,this._targetInst=v,this.type=h,this.nativeEvent=x,this.target=E,this.currentTarget=null;for(var k in i)i.hasOwnProperty(k)&&(u=i[k],this[k]=u?u(x):x[k]);return this.isDefaultPrevented=(x.defaultPrevented!=null?x.defaultPrevented:x.returnValue===!1)?Sf:AA,this.isPropagationStopped=AA,this}return y(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var u=this.nativeEvent;u&&(u.preventDefault?u.preventDefault():typeof u.returnValue!="unknown"&&(u.returnValue=!1),this.isDefaultPrevented=Sf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Sf)},persist:function(){},isPersistent:Sf}),o}var za={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},wf=wn(za),zl=y({},za,{view:0,detail:0}),QB=wn(zl),Cm,Mm,$l,jf=y({},zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rm,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==$l&&($l&&i.type==="mousemove"?(Cm=i.screenX-$l.screenX,Mm=i.screenY-$l.screenY):Mm=Cm=0,$l=i),Cm)},movementY:function(i){return"movementY"in i?i.movementY:Mm}}),OA=wn(jf),JB=y({},jf,{dataTransfer:0}),e5=wn(JB),t5=y({},zl,{relatedTarget:0}),Pm=wn(t5),n5=y({},za,{animationName:0,elapsedTime:0,pseudoElement:0}),r5=wn(n5),i5=y({},za,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),a5=wn(i5),o5=y({},za,{data:0}),_A=wn(o5),s5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},l5={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"},u5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function c5(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=u5[i])?!!o[i]:!1}function Rm(){return c5}var f5=y({},zl,{key:function(i){if(i.key){var o=s5[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=bf(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?l5[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rm,charCode:function(i){return i.type==="keypress"?bf(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?bf(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),d5=wn(f5),h5=y({},jf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),TA=wn(h5),p5=y({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rm}),m5=wn(p5),y5=y({},za,{propertyName:0,elapsedTime:0,pseudoElement:0}),v5=wn(y5),g5=y({},jf,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),x5=wn(g5),b5=y({},za,{newState:0,oldState:0}),S5=wn(b5),w5=[9,13,27,32],Dm=ai&&"CompositionEvent"in window,Bl=null;ai&&"documentMode"in document&&(Bl=document.documentMode);var j5=ai&&"TextEvent"in window&&!Bl,EA=ai&&(!Dm||Bl&&8<Bl&&11>=Bl),NA=" ",CA=!1;function MA(i,o){switch(i){case"keyup":return w5.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function PA(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Go=!1;function A5(i,o){switch(i){case"compositionend":return PA(o);case"keypress":return o.which!==32?null:(CA=!0,NA);case"textInput":return i=o.data,i===NA&&CA?null:i;default:return null}}function O5(i,o){if(Go)return i==="compositionend"||!Dm&&MA(i,o)?(i=jA(),xf=Nm=Vi=null,Go=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return EA&&o.locale!=="ko"?null:o.data;default:return null}}var _5={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 RA(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!_5[i.type]:o==="textarea"}function DA(i,o,u,h){Vo?Ho?Ho.push(h):Ho=[h]:Vo=h,o=dd(o,"onChange"),0<o.length&&(u=new wf("onChange","change",null,u,h),i.push({event:u,listeners:o}))}var ql=null,Il=null;function T5(i){y2(i,0)}function Af(i){var o=Dl(i);if(mA(o))return i}function kA(i,o){if(i==="change")return o}var LA=!1;if(ai){var km;if(ai){var Lm="oninput"in document;if(!Lm){var zA=document.createElement("div");zA.setAttribute("oninput","return;"),Lm=typeof zA.oninput=="function"}km=Lm}else km=!1;LA=km&&(!document.documentMode||9<document.documentMode)}function $A(){ql&&(ql.detachEvent("onpropertychange",BA),Il=ql=null)}function BA(i){if(i.propertyName==="value"&&Af(Il)){var o=[];DA(o,Il,i,_m(i)),wA(T5,o)}}function E5(i,o,u){i==="focusin"?($A(),ql=o,Il=u,ql.attachEvent("onpropertychange",BA)):i==="focusout"&&$A()}function N5(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return Af(Il)}function C5(i,o){if(i==="click")return Af(o)}function M5(i,o){if(i==="input"||i==="change")return Af(o)}function P5(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var Pn=typeof Object.is=="function"?Object.is:P5;function Ul(i,o){if(Pn(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var u=Object.keys(i),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var v=u[h];if(!Dr.call(o,v)||!Pn(i[v],o[v]))return!1}return!0}function qA(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function IA(i,o){var u=qA(i);i=0;for(var h;u;){if(u.nodeType===3){if(h=i+u.textContent.length,i<=o&&h>=o)return{node:u,offset:o-i};i=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=qA(u)}}function UA(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?UA(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function VA(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=vf(i.document);o instanceof i.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)i=o.contentWindow;else break;o=vf(i.document)}return o}function zm(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var R5=ai&&"documentMode"in document&&11>=document.documentMode,Fo=null,$m=null,Vl=null,Bm=!1;function HA(i,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;Bm||Fo==null||Fo!==vf(h)||(h=Fo,"selectionStart"in h&&zm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Vl&&Ul(Vl,h)||(Vl=h,h=dd($m,"onSelect"),0<h.length&&(o=new wf("onSelect","select",null,o,u),i.push({event:o,listeners:h}),o.target=Fo)))}function $a(i,o){var u={};return u[i.toLowerCase()]=o.toLowerCase(),u["Webkit"+i]="webkit"+o,u["Moz"+i]="moz"+o,u}var Ko={animationend:$a("Animation","AnimationEnd"),animationiteration:$a("Animation","AnimationIteration"),animationstart:$a("Animation","AnimationStart"),transitionrun:$a("Transition","TransitionRun"),transitionstart:$a("Transition","TransitionStart"),transitioncancel:$a("Transition","TransitionCancel"),transitionend:$a("Transition","TransitionEnd")},qm={},GA={};ai&&(GA=document.createElement("div").style,"AnimationEvent"in window||(delete Ko.animationend.animation,delete Ko.animationiteration.animation,delete Ko.animationstart.animation),"TransitionEvent"in window||delete Ko.transitionend.transition);function Ba(i){if(qm[i])return qm[i];if(!Ko[i])return i;var o=Ko[i],u;for(u in o)if(o.hasOwnProperty(u)&&u in GA)return qm[i]=o[u];return i}var FA=Ba("animationend"),KA=Ba("animationiteration"),YA=Ba("animationstart"),D5=Ba("transitionrun"),k5=Ba("transitionstart"),L5=Ba("transitioncancel"),XA=Ba("transitionend"),WA=new Map,Im="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(" ");Im.push("scrollEnd");function vr(i,o){WA.set(i,o),La(o,[i])}var Of=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Wn=[],Yo=0,Um=0;function _f(){for(var i=Yo,o=Um=Yo=0;o<i;){var u=Wn[o];Wn[o++]=null;var h=Wn[o];Wn[o++]=null;var v=Wn[o];Wn[o++]=null;var x=Wn[o];if(Wn[o++]=null,h!==null&&v!==null){var E=h.pending;E===null?v.next=v:(v.next=E.next,E.next=v),h.pending=v}x!==0&&ZA(u,v,x)}}function Tf(i,o,u,h){Wn[Yo++]=i,Wn[Yo++]=o,Wn[Yo++]=u,Wn[Yo++]=h,Um|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function Vm(i,o,u,h){return Tf(i,o,u,h),Ef(i)}function qa(i,o){return Tf(i,null,null,o),Ef(i)}function ZA(i,o,u){i.lanes|=u;var h=i.alternate;h!==null&&(h.lanes|=u);for(var v=!1,x=i.return;x!==null;)x.childLanes|=u,h=x.alternate,h!==null&&(h.childLanes|=u),x.tag===22&&(i=x.stateNode,i===null||i._visibility&1||(v=!0)),i=x,x=x.return;return i.tag===3?(x=i.stateNode,v&&o!==null&&(v=31-Mn(u),i=x.hiddenUpdates,h=i[v],h===null?i[v]=[o]:h.push(o),o.lane=u|536870912),x):null}function Ef(i){if(50<fu)throw fu=0,Qy=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Xo={};function z5(i,o,u,h){this.tag=i,this.key=u,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(i,o,u,h){return new z5(i,o,u,h)}function Hm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function oi(i,o){var u=i.alternate;return u===null?(u=Rn(i.tag,o,i.key,i.mode),u.elementType=i.elementType,u.type=i.type,u.stateNode=i.stateNode,u.alternate=i,i.alternate=u):(u.pendingProps=o,u.type=i.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=i.flags&65011712,u.childLanes=i.childLanes,u.lanes=i.lanes,u.child=i.child,u.memoizedProps=i.memoizedProps,u.memoizedState=i.memoizedState,u.updateQueue=i.updateQueue,o=i.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=i.sibling,u.index=i.index,u.ref=i.ref,u.refCleanup=i.refCleanup,u}function QA(i,o){i.flags&=65011714;var u=i.alternate;return u===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=u.childLanes,i.lanes=u.lanes,i.child=u.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=u.memoizedProps,i.memoizedState=u.memoizedState,i.updateQueue=u.updateQueue,i.type=u.type,o=u.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function Nf(i,o,u,h,v,x){var E=0;if(h=i,typeof i=="function")Hm(i)&&(E=1);else if(typeof i=="string")E=U6(i,u,fe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case D:return i=Rn(31,u,o,v),i.elementType=D,i.lanes=x,i;case j:return Ia(u.children,v,x,o);case b:E=8,v|=24;break;case A:return i=Rn(12,u,o,v|2),i.elementType=A,i.lanes=x,i;case O:return i=Rn(13,u,o,v),i.elementType=O,i.lanes=x,i;case N:return i=Rn(19,u,o,v),i.elementType=N,i.lanes=x,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case T:E=10;break e;case _:E=9;break e;case C:E=11;break e;case M:E=14;break e;case R:E=16,h=null;break e}E=29,u=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=Rn(E,u,o,v),o.elementType=i,o.type=h,o.lanes=x,o}function Ia(i,o,u,h){return i=Rn(7,i,h,o),i.lanes=u,i}function Gm(i,o,u){return i=Rn(6,i,null,o),i.lanes=u,i}function JA(i){var o=Rn(18,null,null,0);return o.stateNode=i,o}function Fm(i,o,u){return o=Rn(4,i.children!==null?i.children:[],i.key,o),o.lanes=u,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var eO=new WeakMap;function Zn(i,o){if(typeof i=="object"&&i!==null){var u=eO.get(i);return u!==void 0?u:(o={value:i,source:o,stack:mr(o)},eO.set(i,o),o)}return{value:i,source:o,stack:mr(o)}}var Wo=[],Zo=0,Cf=null,Hl=0,Qn=[],Jn=0,Hi=null,kr=1,Lr="";function si(i,o){Wo[Zo++]=Hl,Wo[Zo++]=Cf,Cf=i,Hl=o}function tO(i,o,u){Qn[Jn++]=kr,Qn[Jn++]=Lr,Qn[Jn++]=Hi,Hi=i;var h=kr;i=Lr;var v=32-Mn(h)-1;h&=~(1<<v),u+=1;var x=32-Mn(o)+v;if(30<x){var E=v-v%5;x=(h&(1<<E)-1).toString(32),h>>=E,v-=E,kr=1<<32-Mn(o)+v|u<<v|h,Lr=x+i}else kr=1<<x|u<<v|h,Lr=i}function Km(i){i.return!==null&&(si(i,1),tO(i,1,0))}function Ym(i){for(;i===Cf;)Cf=Wo[--Zo],Wo[Zo]=null,Hl=Wo[--Zo],Wo[Zo]=null;for(;i===Hi;)Hi=Qn[--Jn],Qn[Jn]=null,Lr=Qn[--Jn],Qn[Jn]=null,kr=Qn[--Jn],Qn[Jn]=null}function nO(i,o){Qn[Jn++]=kr,Qn[Jn++]=Lr,Qn[Jn++]=Hi,kr=o.id,Lr=o.overflow,Hi=i}var tn=null,vt=null,Ve=!1,Gi=null,er=!1,Xm=Error(r(519));function Fi(i){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Gl(Zn(o,i)),Xm}function rO(i){var o=i.stateNode,u=i.type,h=i.memoizedProps;switch(o[en]=i,o[Sn]=h,u){case"dialog":Be("cancel",o),Be("close",o);break;case"iframe":case"object":case"embed":Be("load",o);break;case"video":case"audio":for(u=0;u<hu.length;u++)Be(hu[u],o);break;case"source":Be("error",o);break;case"img":case"image":case"link":Be("error",o),Be("load",o);break;case"details":Be("toggle",o);break;case"input":Be("invalid",o),yA(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Be("invalid",o);break;case"textarea":Be("invalid",o),gA(o,h.value,h.defaultValue,h.children)}u=h.children,typeof u!="string"&&typeof u!="number"&&typeof u!="bigint"||o.textContent===""+u||h.suppressHydrationWarning===!0||b2(o.textContent,u)?(h.popover!=null&&(Be("beforetoggle",o),Be("toggle",o)),h.onScroll!=null&&Be("scroll",o),h.onScrollEnd!=null&&Be("scrollend",o),h.onClick!=null&&(o.onclick=ii),o=!0):o=!1,o||Fi(i,!0)}function iO(i){for(tn=i.return;tn;)switch(tn.tag){case 5:case 31:case 13:er=!1;return;case 27:case 3:er=!0;return;default:tn=tn.return}}function Qo(i){if(i!==tn)return!1;if(!Ve)return iO(i),Ve=!0,!1;var o=i.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=i.type,u=!(u!=="form"&&u!=="button")||hv(i.type,i.memoizedProps)),u=!u),u&&vt&&Fi(i),iO(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));vt=N2(i)}else if(o===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));vt=N2(i)}else o===27?(o=vt,oa(i.type)?(i=gv,gv=null,vt=i):vt=o):vt=tn?nr(i.stateNode.nextSibling):null;return!0}function Ua(){vt=tn=null,Ve=!1}function Wm(){var i=Gi;return i!==null&&(_n===null?_n=i:_n.push.apply(_n,i),Gi=null),i}function Gl(i){Gi===null?Gi=[i]:Gi.push(i)}var Zm=L(null),Va=null,li=null;function Ki(i,o,u){re(Zm,o._currentValue),o._currentValue=u}function ui(i){i._currentValue=Zm.current,G(Zm)}function Qm(i,o,u){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===u)break;i=i.return}}function Jm(i,o,u,h){var v=i.child;for(v!==null&&(v.return=i);v!==null;){var x=v.dependencies;if(x!==null){var E=v.child;x=x.firstContext;e:for(;x!==null;){var k=x;x=v;for(var U=0;U<o.length;U++)if(k.context===o[U]){x.lanes|=u,k=x.alternate,k!==null&&(k.lanes|=u),Qm(x.return,u,i),h||(E=null);break e}x=k.next}}else if(v.tag===18){if(E=v.return,E===null)throw Error(r(341));E.lanes|=u,x=E.alternate,x!==null&&(x.lanes|=u),Qm(E,u,i),E=null}else E=v.child;if(E!==null)E.return=v;else for(E=v;E!==null;){if(E===i){E=null;break}if(v=E.sibling,v!==null){v.return=E.return,E=v;break}E=E.return}v=E}}function Jo(i,o,u,h){i=null;for(var v=o,x=!1;v!==null;){if(!x){if((v.flags&524288)!==0)x=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var E=v.alternate;if(E===null)throw Error(r(387));if(E=E.memoizedProps,E!==null){var k=v.type;Pn(v.pendingProps.value,E.value)||(i!==null?i.push(k):i=[k])}}else if(v===ze.current){if(E=v.alternate,E===null)throw Error(r(387));E.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(i!==null?i.push(gu):i=[gu])}v=v.return}i!==null&&Jm(o,i,u,h),o.flags|=262144}function Mf(i){for(i=i.firstContext;i!==null;){if(!Pn(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Ha(i){Va=i,li=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function nn(i){return aO(Va,i)}function Pf(i,o){return Va===null&&Ha(i),aO(i,o)}function aO(i,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},li===null){if(i===null)throw Error(r(308));li=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else li=li.next=o;return u}var $5=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(u,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(u){return u()})}},B5=e.unstable_scheduleCallback,q5=e.unstable_NormalPriority,Rt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ey(){return{controller:new $5,data:new Map,refCount:0}}function Fl(i){i.refCount--,i.refCount===0&&B5(q5,function(){i.controller.abort()})}var Kl=null,ty=0,es=0,ts=null;function I5(i,o){if(Kl===null){var u=Kl=[];ty=0,es=iv(),ts={status:"pending",value:void 0,then:function(h){u.push(h)}}}return ty++,o.then(oO,oO),o}function oO(){if(--ty===0&&Kl!==null){ts!==null&&(ts.status="fulfilled");var i=Kl;Kl=null,es=0,ts=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function U5(i,o){var u=[],h={status:"pending",value:null,reason:null,then:function(v){u.push(v)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var v=0;v<u.length;v++)(0,u[v])(o)},function(v){for(h.status="rejected",h.reason=v,v=0;v<u.length;v++)(0,u[v])(void 0)}),h}var sO=$.S;$.S=function(i,o){H_=cn(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&I5(i,o),sO!==null&&sO(i,o)};var Ga=L(null);function ny(){var i=Ga.current;return i!==null?i:lt.pooledCache}function Rf(i,o){o===null?re(Ga,Ga.current):re(Ga,o.pool)}function lO(){var i=ny();return i===null?null:{parent:Rt._currentValue,pool:i}}var ns=Error(r(460)),ry=Error(r(474)),Df=Error(r(542)),kf={then:function(){}};function uO(i){return i=i.status,i==="fulfilled"||i==="rejected"}function cO(i,o,u){switch(u=i[u],u===void 0?i.push(o):u!==o&&(o.then(ii,ii),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,dO(i),i;default:if(typeof o.status=="string")o.then(ii,ii);else{if(i=lt,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var v=o;v.status="fulfilled",v.value=h}},function(h){if(o.status==="pending"){var v=o;v.status="rejected",v.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,dO(i),i}throw Ka=o,ns}}function Fa(i){try{var o=i._init;return o(i._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(Ka=u,ns):u}}var Ka=null;function fO(){if(Ka===null)throw Error(r(459));var i=Ka;return Ka=null,i}function dO(i){if(i===ns||i===Df)throw Error(r(483))}var rs=null,Yl=0;function Lf(i){var o=Yl;return Yl+=1,rs===null&&(rs=[]),cO(rs,i,o)}function Xl(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function zf(i,o){throw o.$$typeof===g?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function hO(i){function o(K,V){if(i){var W=K.deletions;W===null?(K.deletions=[V],K.flags|=16):W.push(V)}}function u(K,V){if(!i)return null;for(;V!==null;)o(K,V),V=V.sibling;return null}function h(K){for(var V=new Map;K!==null;)K.key!==null?V.set(K.key,K):V.set(K.index,K),K=K.sibling;return V}function v(K,V){return K=oi(K,V),K.index=0,K.sibling=null,K}function x(K,V,W){return K.index=W,i?(W=K.alternate,W!==null?(W=W.index,W<V?(K.flags|=67108866,V):W):(K.flags|=67108866,V)):(K.flags|=1048576,V)}function E(K){return i&&K.alternate===null&&(K.flags|=67108866),K}function k(K,V,W,ae){return V===null||V.tag!==6?(V=Gm(W,K.mode,ae),V.return=K,V):(V=v(V,W),V.return=K,V)}function U(K,V,W,ae){var we=W.type;return we===j?te(K,V,W.props.children,ae,W.key):V!==null&&(V.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===R&&Fa(we)===V.type)?(V=v(V,W.props),Xl(V,W),V.return=K,V):(V=Nf(W.type,W.key,W.props,null,K.mode,ae),Xl(V,W),V.return=K,V)}function Z(K,V,W,ae){return V===null||V.tag!==4||V.stateNode.containerInfo!==W.containerInfo||V.stateNode.implementation!==W.implementation?(V=Fm(W,K.mode,ae),V.return=K,V):(V=v(V,W.children||[]),V.return=K,V)}function te(K,V,W,ae,we){return V===null||V.tag!==7?(V=Ia(W,K.mode,ae,we),V.return=K,V):(V=v(V,W),V.return=K,V)}function oe(K,V,W){if(typeof V=="string"&&V!==""||typeof V=="number"||typeof V=="bigint")return V=Gm(""+V,K.mode,W),V.return=K,V;if(typeof V=="object"&&V!==null){switch(V.$$typeof){case S:return W=Nf(V.type,V.key,V.props,null,K.mode,W),Xl(W,V),W.return=K,W;case w:return V=Fm(V,K.mode,W),V.return=K,V;case R:return V=Fa(V),oe(K,V,W)}if(Y(V)||z(V))return V=Ia(V,K.mode,W,null),V.return=K,V;if(typeof V.then=="function")return oe(K,Lf(V),W);if(V.$$typeof===T)return oe(K,Pf(K,V),W);zf(K,V)}return null}function J(K,V,W,ae){var we=V!==null?V.key:null;if(typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint")return we!==null?null:k(K,V,""+W,ae);if(typeof W=="object"&&W!==null){switch(W.$$typeof){case S:return W.key===we?U(K,V,W,ae):null;case w:return W.key===we?Z(K,V,W,ae):null;case R:return W=Fa(W),J(K,V,W,ae)}if(Y(W)||z(W))return we!==null?null:te(K,V,W,ae,null);if(typeof W.then=="function")return J(K,V,Lf(W),ae);if(W.$$typeof===T)return J(K,V,Pf(K,W),ae);zf(K,W)}return null}function ee(K,V,W,ae,we){if(typeof ae=="string"&&ae!==""||typeof ae=="number"||typeof ae=="bigint")return K=K.get(W)||null,k(V,K,""+ae,we);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case S:return K=K.get(ae.key===null?W:ae.key)||null,U(V,K,ae,we);case w:return K=K.get(ae.key===null?W:ae.key)||null,Z(V,K,ae,we);case R:return ae=Fa(ae),ee(K,V,W,ae,we)}if(Y(ae)||z(ae))return K=K.get(W)||null,te(V,K,ae,we,null);if(typeof ae.then=="function")return ee(K,V,W,Lf(ae),we);if(ae.$$typeof===T)return ee(K,V,W,Pf(V,ae),we);zf(V,ae)}return null}function me(K,V,W,ae){for(var we=null,He=null,xe=V,ke=V=0,Ue=null;xe!==null&&ke<W.length;ke++){xe.index>ke?(Ue=xe,xe=null):Ue=xe.sibling;var Ge=J(K,xe,W[ke],ae);if(Ge===null){xe===null&&(xe=Ue);break}i&&xe&&Ge.alternate===null&&o(K,xe),V=x(Ge,V,ke),He===null?we=Ge:He.sibling=Ge,He=Ge,xe=Ue}if(ke===W.length)return u(K,xe),Ve&&si(K,ke),we;if(xe===null){for(;ke<W.length;ke++)xe=oe(K,W[ke],ae),xe!==null&&(V=x(xe,V,ke),He===null?we=xe:He.sibling=xe,He=xe);return Ve&&si(K,ke),we}for(xe=h(xe);ke<W.length;ke++)Ue=ee(xe,K,ke,W[ke],ae),Ue!==null&&(i&&Ue.alternate!==null&&xe.delete(Ue.key===null?ke:Ue.key),V=x(Ue,V,ke),He===null?we=Ue:He.sibling=Ue,He=Ue);return i&&xe.forEach(function(fa){return o(K,fa)}),Ve&&si(K,ke),we}function Ae(K,V,W,ae){if(W==null)throw Error(r(151));for(var we=null,He=null,xe=V,ke=V=0,Ue=null,Ge=W.next();xe!==null&&!Ge.done;ke++,Ge=W.next()){xe.index>ke?(Ue=xe,xe=null):Ue=xe.sibling;var fa=J(K,xe,Ge.value,ae);if(fa===null){xe===null&&(xe=Ue);break}i&&xe&&fa.alternate===null&&o(K,xe),V=x(fa,V,ke),He===null?we=fa:He.sibling=fa,He=fa,xe=Ue}if(Ge.done)return u(K,xe),Ve&&si(K,ke),we;if(xe===null){for(;!Ge.done;ke++,Ge=W.next())Ge=oe(K,Ge.value,ae),Ge!==null&&(V=x(Ge,V,ke),He===null?we=Ge:He.sibling=Ge,He=Ge);return Ve&&si(K,ke),we}for(xe=h(xe);!Ge.done;ke++,Ge=W.next())Ge=ee(xe,K,ke,Ge.value,ae),Ge!==null&&(i&&Ge.alternate!==null&&xe.delete(Ge.key===null?ke:Ge.key),V=x(Ge,V,ke),He===null?we=Ge:He.sibling=Ge,He=Ge);return i&&xe.forEach(function(J6){return o(K,J6)}),Ve&&si(K,ke),we}function ot(K,V,W,ae){if(typeof W=="object"&&W!==null&&W.type===j&&W.key===null&&(W=W.props.children),typeof W=="object"&&W!==null){switch(W.$$typeof){case S:e:{for(var we=W.key;V!==null;){if(V.key===we){if(we=W.type,we===j){if(V.tag===7){u(K,V.sibling),ae=v(V,W.props.children),ae.return=K,K=ae;break e}}else if(V.elementType===we||typeof we=="object"&&we!==null&&we.$$typeof===R&&Fa(we)===V.type){u(K,V.sibling),ae=v(V,W.props),Xl(ae,W),ae.return=K,K=ae;break e}u(K,V);break}else o(K,V);V=V.sibling}W.type===j?(ae=Ia(W.props.children,K.mode,ae,W.key),ae.return=K,K=ae):(ae=Nf(W.type,W.key,W.props,null,K.mode,ae),Xl(ae,W),ae.return=K,K=ae)}return E(K);case w:e:{for(we=W.key;V!==null;){if(V.key===we)if(V.tag===4&&V.stateNode.containerInfo===W.containerInfo&&V.stateNode.implementation===W.implementation){u(K,V.sibling),ae=v(V,W.children||[]),ae.return=K,K=ae;break e}else{u(K,V);break}else o(K,V);V=V.sibling}ae=Fm(W,K.mode,ae),ae.return=K,K=ae}return E(K);case R:return W=Fa(W),ot(K,V,W,ae)}if(Y(W))return me(K,V,W,ae);if(z(W)){if(we=z(W),typeof we!="function")throw Error(r(150));return W=we.call(W),Ae(K,V,W,ae)}if(typeof W.then=="function")return ot(K,V,Lf(W),ae);if(W.$$typeof===T)return ot(K,V,Pf(K,W),ae);zf(K,W)}return typeof W=="string"&&W!==""||typeof W=="number"||typeof W=="bigint"?(W=""+W,V!==null&&V.tag===6?(u(K,V.sibling),ae=v(V,W),ae.return=K,K=ae):(u(K,V),ae=Gm(W,K.mode,ae),ae.return=K,K=ae),E(K)):u(K,V)}return function(K,V,W,ae){try{Yl=0;var we=ot(K,V,W,ae);return rs=null,we}catch(xe){if(xe===ns||xe===Df)throw xe;var He=Rn(29,xe,null,K.mode);return He.lanes=ae,He.return=K,He}finally{}}}var Ya=hO(!0),pO=hO(!1),Yi=!1;function iy(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ay(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Xi(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Wi(i,o,u){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Ke&2)!==0){var v=h.pending;return v===null?o.next=o:(o.next=v.next,v.next=o),h.pending=o,o=Ef(i),ZA(i,null,u),o}return Tf(i,h,o,u),Ef(i)}function Wl(i,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,aA(i,u)}}function oy(i,o){var u=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var v=null,x=null;if(u=u.firstBaseUpdate,u!==null){do{var E={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};x===null?v=x=E:x=x.next=E,u=u.next}while(u!==null);x===null?v=x=o:x=x.next=o}else v=x=o;u={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:x,shared:h.shared,callbacks:h.callbacks},i.updateQueue=u;return}i=u.lastBaseUpdate,i===null?u.firstBaseUpdate=o:i.next=o,u.lastBaseUpdate=o}var sy=!1;function Zl(){if(sy){var i=ts;if(i!==null)throw i}}function Ql(i,o,u,h){sy=!1;var v=i.updateQueue;Yi=!1;var x=v.firstBaseUpdate,E=v.lastBaseUpdate,k=v.shared.pending;if(k!==null){v.shared.pending=null;var U=k,Z=U.next;U.next=null,E===null?x=Z:E.next=Z,E=U;var te=i.alternate;te!==null&&(te=te.updateQueue,k=te.lastBaseUpdate,k!==E&&(k===null?te.firstBaseUpdate=Z:k.next=Z,te.lastBaseUpdate=U))}if(x!==null){var oe=v.baseState;E=0,te=Z=U=null,k=x;do{var J=k.lane&-536870913,ee=J!==k.lane;if(ee?(Ie&J)===J:(h&J)===J){J!==0&&J===es&&(sy=!0),te!==null&&(te=te.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var me=i,Ae=k;J=o;var ot=u;switch(Ae.tag){case 1:if(me=Ae.payload,typeof me=="function"){oe=me.call(ot,oe,J);break e}oe=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=Ae.payload,J=typeof me=="function"?me.call(ot,oe,J):me,J==null)break e;oe=y({},oe,J);break e;case 2:Yi=!0}}J=k.callback,J!==null&&(i.flags|=64,ee&&(i.flags|=8192),ee=v.callbacks,ee===null?v.callbacks=[J]:ee.push(J))}else ee={lane:J,tag:k.tag,payload:k.payload,callback:k.callback,next:null},te===null?(Z=te=ee,U=oe):te=te.next=ee,E|=J;if(k=k.next,k===null){if(k=v.shared.pending,k===null)break;ee=k,k=ee.next,ee.next=null,v.lastBaseUpdate=ee,v.shared.pending=null}}while(!0);te===null&&(U=oe),v.baseState=U,v.firstBaseUpdate=Z,v.lastBaseUpdate=te,x===null&&(v.shared.lanes=0),ta|=E,i.lanes=E,i.memoizedState=oe}}function mO(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function yO(i,o){var u=i.callbacks;if(u!==null)for(i.callbacks=null,i=0;i<u.length;i++)mO(u[i],o)}var is=L(null),$f=L(0);function vO(i,o){i=gi,re($f,i),re(is,o),gi=i|o.baseLanes}function ly(){re($f,gi),re(is,is.current)}function uy(){gi=$f.current,G(is),G($f)}var Dn=L(null),tr=null;function Zi(i){var o=i.alternate;re(Ct,Ct.current&1),re(Dn,i),tr===null&&(o===null||is.current!==null||o.memoizedState!==null)&&(tr=i)}function cy(i){re(Ct,Ct.current),re(Dn,i),tr===null&&(tr=i)}function gO(i){i.tag===22?(re(Ct,Ct.current),re(Dn,i),tr===null&&(tr=i)):Qi()}function Qi(){re(Ct,Ct.current),re(Dn,Dn.current)}function kn(i){G(Dn),tr===i&&(tr=null),G(Ct)}var Ct=L(0);function Bf(i){for(var o=i;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||yv(u)||vv(u)))return o}else if(o.tag===19&&(o.memoizedProps.revealOrder==="forwards"||o.memoizedProps.revealOrder==="backwards"||o.memoizedProps.revealOrder==="unstable_legacy-backwards"||o.memoizedProps.revealOrder==="together")){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var ci=0,Re=null,it=null,Dt=null,qf=!1,as=!1,Xa=!1,If=0,Jl=0,os=null,V5=0;function _t(){throw Error(r(321))}function fy(i,o){if(o===null)return!1;for(var u=0;u<o.length&&u<i.length;u++)if(!Pn(i[u],o[u]))return!1;return!0}function dy(i,o,u,h,v,x){return ci=x,Re=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,$.H=i===null||i.memoizedState===null?t_:Ty,Xa=!1,x=u(h,v),Xa=!1,as&&(x=bO(o,u,h,v)),xO(i),x}function xO(i){$.H=nu;var o=it!==null&&it.next!==null;if(ci=0,Dt=it=Re=null,qf=!1,Jl=0,os=null,o)throw Error(r(300));i===null||kt||(i=i.dependencies,i!==null&&Mf(i)&&(kt=!0))}function bO(i,o,u,h){Re=i;var v=0;do{if(as&&(os=null),Jl=0,as=!1,25<=v)throw Error(r(301));if(v+=1,Dt=it=null,i.updateQueue!=null){var x=i.updateQueue;x.lastEffect=null,x.events=null,x.stores=null,x.memoCache!=null&&(x.memoCache.index=0)}$.H=n_,x=o(u,h)}while(as);return x}function H5(){var i=$.H,o=i.useState()[0];return o=typeof o.then=="function"?eu(o):o,i=i.useState()[0],(it!==null?it.memoizedState:null)!==i&&(Re.flags|=1024),o}function hy(){var i=If!==0;return If=0,i}function py(i,o,u){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~u}function my(i){if(qf){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}qf=!1}ci=0,Dt=it=Re=null,as=!1,Jl=If=0,os=null}function mn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dt===null?Re.memoizedState=Dt=i:Dt=Dt.next=i,Dt}function Mt(){if(it===null){var i=Re.alternate;i=i!==null?i.memoizedState:null}else i=it.next;var o=Dt===null?Re.memoizedState:Dt.next;if(o!==null)Dt=o,it=i;else{if(i===null)throw Re.alternate===null?Error(r(467)):Error(r(310));it=i,i={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},Dt===null?Re.memoizedState=Dt=i:Dt=Dt.next=i}return Dt}function Uf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function eu(i){var o=Jl;return Jl+=1,os===null&&(os=[]),i=cO(os,i,o),o=Re,(Dt===null?o.memoizedState:Dt.next)===null&&(o=o.alternate,$.H=o===null||o.memoizedState===null?t_:Ty),i}function Vf(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return eu(i);if(i.$$typeof===T)return nn(i)}throw Error(r(438,String(i)))}function yy(i){var o=null,u=Re.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=Re.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(v){return v.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Uf(),Re.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(i),h=0;h<i;h++)u[h]=B;return o.index++,u}function fi(i,o){return typeof o=="function"?o(i):o}function Hf(i){var o=Mt();return vy(o,it,i)}function vy(i,o,u){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var v=i.baseQueue,x=h.pending;if(x!==null){if(v!==null){var E=v.next;v.next=x.next,x.next=E}o.baseQueue=v=x,h.pending=null}if(x=i.baseState,v===null)i.memoizedState=x;else{o=v.next;var k=E=null,U=null,Z=o,te=!1;do{var oe=Z.lane&-536870913;if(oe!==Z.lane?(Ie&oe)===oe:(ci&oe)===oe){var J=Z.revertLane;if(J===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null}),oe===es&&(te=!0);else if((ci&J)===J){Z=Z.next,J===es&&(te=!0);continue}else oe={lane:0,revertLane:Z.revertLane,gesture:null,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},U===null?(k=U=oe,E=x):U=U.next=oe,Re.lanes|=J,ta|=J;oe=Z.action,Xa&&u(x,oe),x=Z.hasEagerState?Z.eagerState:u(x,oe)}else J={lane:oe,revertLane:Z.revertLane,gesture:Z.gesture,action:Z.action,hasEagerState:Z.hasEagerState,eagerState:Z.eagerState,next:null},U===null?(k=U=J,E=x):U=U.next=J,Re.lanes|=oe,ta|=oe;Z=Z.next}while(Z!==null&&Z!==o);if(U===null?E=x:U.next=k,!Pn(x,i.memoizedState)&&(kt=!0,te&&(u=ts,u!==null)))throw u;i.memoizedState=x,i.baseState=E,i.baseQueue=U,h.lastRenderedState=x}return v===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function gy(i){var o=Mt(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=i;var h=u.dispatch,v=u.pending,x=o.memoizedState;if(v!==null){u.pending=null;var E=v=v.next;do x=i(x,E.action),E=E.next;while(E!==v);Pn(x,o.memoizedState)||(kt=!0),o.memoizedState=x,o.baseQueue===null&&(o.baseState=x),u.lastRenderedState=x}return[x,h]}function SO(i,o,u){var h=Re,v=Mt(),x=Ve;if(x){if(u===void 0)throw Error(r(407));u=u()}else u=o();var E=!Pn((it||v).memoizedState,u);if(E&&(v.memoizedState=u,kt=!0),v=v.queue,Sy(AO.bind(null,h,v,i),[i]),v.getSnapshot!==o||E||Dt!==null&&Dt.memoizedState.tag&1){if(h.flags|=2048,ss(9,{destroy:void 0},jO.bind(null,h,v,u,o),null),lt===null)throw Error(r(349));x||(ci&127)!==0||wO(h,o,u)}return u}function wO(i,o,u){i.flags|=16384,i={getSnapshot:o,value:u},o=Re.updateQueue,o===null?(o=Uf(),Re.updateQueue=o,o.stores=[i]):(u=o.stores,u===null?o.stores=[i]:u.push(i))}function jO(i,o,u,h){o.value=u,o.getSnapshot=h,OO(o)&&_O(i)}function AO(i,o,u){return u(function(){OO(o)&&_O(i)})}function OO(i){var o=i.getSnapshot;i=i.value;try{var u=o();return!Pn(i,u)}catch{return!0}}function _O(i){var o=qa(i,2);o!==null&&Tn(o,i,2)}function xy(i){var o=mn();if(typeof i=="function"){var u=i;if(i=u(),Xa){Ii(!0);try{u()}finally{Ii(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:i},o}function TO(i,o,u,h){return i.baseState=u,vy(i,it,typeof h=="function"?h:fi)}function G5(i,o,u,h,v){if(Kf(i))throw Error(r(485));if(i=o.action,i!==null){var x={payload:v,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){x.listeners.push(E)}};$.T!==null?u(!0):x.isTransition=!1,h(x),u=o.pending,u===null?(x.next=o.pending=x,EO(o,x)):(x.next=u.next,o.pending=u.next=x)}}function EO(i,o){var u=o.action,h=o.payload,v=i.state;if(o.isTransition){var x=$.T,E={};$.T=E;try{var k=u(v,h),U=$.S;U!==null&&U(E,k),NO(i,o,k)}catch(Z){by(i,o,Z)}finally{x!==null&&E.types!==null&&(x.types=E.types),$.T=x}}else try{x=u(v,h),NO(i,o,x)}catch(Z){by(i,o,Z)}}function NO(i,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){CO(i,o,h)},function(h){return by(i,o,h)}):CO(i,o,u)}function CO(i,o,u){o.status="fulfilled",o.value=u,MO(o),i.state=u,o=i.pending,o!==null&&(u=o.next,u===o?i.pending=null:(u=u.next,o.next=u,EO(i,u)))}function by(i,o,u){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,MO(o),o=o.next;while(o!==h)}i.action=null}function MO(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function PO(i,o){return o}function RO(i,o){if(Ve){var u=lt.formState;if(u!==null){e:{var h=Re;if(Ve){if(vt){t:{for(var v=vt,x=er;v.nodeType!==8;){if(!x){v=null;break t}if(v=nr(v.nextSibling),v===null){v=null;break t}}x=v.data,v=x==="F!"||x==="F"?v:null}if(v){vt=nr(v.nextSibling),h=v.data==="F!";break e}}Fi(h)}h=!1}h&&(o=u[0])}}return u=mn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:PO,lastRenderedState:o},u.queue=h,u=QO.bind(null,Re,h),h.dispatch=u,h=xy(!1),x=_y.bind(null,Re,!1,h.queue),h=mn(),v={state:o,dispatch:null,action:i,pending:null},h.queue=v,u=G5.bind(null,Re,v,x,u),v.dispatch=u,h.memoizedState=i,[o,u,!1]}function DO(i){var o=Mt();return kO(o,it,i)}function kO(i,o,u){if(o=vy(i,o,PO)[0],i=Hf(fi)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=eu(o)}catch(E){throw E===ns?Df:E}else h=o;o=Mt();var v=o.queue,x=v.dispatch;return u!==o.memoizedState&&(Re.flags|=2048,ss(9,{destroy:void 0},F5.bind(null,v,u),null)),[h,x,i]}function F5(i,o){i.action=o}function LO(i){var o=Mt(),u=it;if(u!==null)return kO(o,u,i);Mt(),o=o.memoizedState,u=Mt();var h=u.queue.dispatch;return u.memoizedState=i,[o,h,!1]}function ss(i,o,u,h){return i={tag:i,create:u,deps:h,inst:o,next:null},o=Re.updateQueue,o===null&&(o=Uf(),Re.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=i.next=i:(h=u.next,u.next=i,i.next=h,o.lastEffect=i),i}function zO(){return Mt().memoizedState}function Gf(i,o,u,h){var v=mn();Re.flags|=i,v.memoizedState=ss(1|o,{destroy:void 0},u,h===void 0?null:h)}function Ff(i,o,u,h){var v=Mt();h=h===void 0?null:h;var x=v.memoizedState.inst;it!==null&&h!==null&&fy(h,it.memoizedState.deps)?v.memoizedState=ss(o,x,u,h):(Re.flags|=i,v.memoizedState=ss(1|o,x,u,h))}function $O(i,o){Gf(8390656,8,i,o)}function Sy(i,o){Ff(2048,8,i,o)}function K5(i){Re.flags|=4;var o=Re.updateQueue;if(o===null)o=Uf(),Re.updateQueue=o,o.events=[i];else{var u=o.events;u===null?o.events=[i]:u.push(i)}}function BO(i){var o=Mt().memoizedState;return K5({ref:o,nextImpl:i}),function(){if((Ke&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function qO(i,o){return Ff(4,2,i,o)}function IO(i,o){return Ff(4,4,i,o)}function UO(i,o){if(typeof o=="function"){i=i();var u=o(i);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function VO(i,o,u){u=u!=null?u.concat([i]):null,Ff(4,4,UO.bind(null,o,i),u)}function wy(){}function HO(i,o){var u=Mt();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&fy(o,h[1])?h[0]:(u.memoizedState=[i,o],i)}function GO(i,o){var u=Mt();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&fy(o,h[1]))return h[0];if(h=i(),Xa){Ii(!0);try{i()}finally{Ii(!1)}}return u.memoizedState=[h,o],h}function jy(i,o,u){return u===void 0||(ci&1073741824)!==0&&(Ie&261930)===0?i.memoizedState=o:(i.memoizedState=u,i=F_(),Re.lanes|=i,ta|=i,u)}function FO(i,o,u,h){return Pn(u,o)?u:is.current!==null?(i=jy(i,u,h),Pn(i,o)||(kt=!0),i):(ci&42)===0||(ci&1073741824)!==0&&(Ie&261930)===0?(kt=!0,i.memoizedState=u):(i=F_(),Re.lanes|=i,ta|=i,o)}function KO(i,o,u,h,v){var x=F.p;F.p=x!==0&&8>x?x:8;var E=$.T,k={};$.T=k,_y(i,!1,o,u);try{var U=v(),Z=$.S;if(Z!==null&&Z(k,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var te=U5(U,h);tu(i,o,te,$n(i))}else tu(i,o,h,$n(i))}catch(oe){tu(i,o,{then:function(){},status:"rejected",reason:oe},$n())}finally{F.p=x,E!==null&&k.types!==null&&(E.types=k.types),$.T=E}}function Y5(){}function Ay(i,o,u,h){if(i.tag!==5)throw Error(r(476));var v=YO(i).queue;KO(i,v,o,Q,u===null?Y5:function(){return XO(i),u(h)})}function YO(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:Q,baseState:Q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:Q},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fi,lastRenderedState:u},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function XO(i){var o=YO(i);o.next===null&&(o=i.alternate.memoizedState),tu(i,o.next.queue,{},$n())}function Oy(){return nn(gu)}function WO(){return Mt().memoizedState}function ZO(){return Mt().memoizedState}function X5(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var u=$n();i=Xi(u);var h=Wi(o,i,u);h!==null&&(Tn(h,o,u),Wl(h,o,u)),o={cache:ey()},i.payload=o;return}o=o.return}}function W5(i,o,u){var h=$n();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Kf(i)?JO(o,u):(u=Vm(i,o,u,h),u!==null&&(Tn(u,i,h),e_(u,o,h)))}function QO(i,o,u){var h=$n();tu(i,o,u,h)}function tu(i,o,u,h){var v={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Kf(i))JO(o,v);else{var x=i.alternate;if(i.lanes===0&&(x===null||x.lanes===0)&&(x=o.lastRenderedReducer,x!==null))try{var E=o.lastRenderedState,k=x(E,u);if(v.hasEagerState=!0,v.eagerState=k,Pn(k,E))return Tf(i,o,v,0),lt===null&&_f(),!1}catch{}finally{}if(u=Vm(i,o,v,h),u!==null)return Tn(u,i,h),e_(u,o,h),!0}return!1}function _y(i,o,u,h){if(h={lane:2,revertLane:iv(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Kf(i)){if(o)throw Error(r(479))}else o=Vm(i,u,h,2),o!==null&&Tn(o,i,2)}function Kf(i){var o=i.alternate;return i===Re||o!==null&&o===Re}function JO(i,o){as=qf=!0;var u=i.pending;u===null?o.next=o:(o.next=u.next,u.next=o),i.pending=o}function e_(i,o,u){if((u&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,u|=h,o.lanes=u,aA(i,u)}}var nu={readContext:nn,use:Vf,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};nu.useEffectEvent=_t;var t_={readContext:nn,use:Vf,useCallback:function(i,o){return mn().memoizedState=[i,o===void 0?null:o],i},useContext:nn,useEffect:$O,useImperativeHandle:function(i,o,u){u=u!=null?u.concat([i]):null,Gf(4194308,4,UO.bind(null,o,i),u)},useLayoutEffect:function(i,o){return Gf(4194308,4,i,o)},useInsertionEffect:function(i,o){Gf(4,2,i,o)},useMemo:function(i,o){var u=mn();o=o===void 0?null:o;var h=i();if(Xa){Ii(!0);try{i()}finally{Ii(!1)}}return u.memoizedState=[h,o],h},useReducer:function(i,o,u){var h=mn();if(u!==void 0){var v=u(o);if(Xa){Ii(!0);try{u(o)}finally{Ii(!1)}}}else v=o;return h.memoizedState=h.baseState=v,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:v},h.queue=i,i=i.dispatch=W5.bind(null,Re,i),[h.memoizedState,i]},useRef:function(i){var o=mn();return i={current:i},o.memoizedState=i},useState:function(i){i=xy(i);var o=i.queue,u=QO.bind(null,Re,o);return o.dispatch=u,[i.memoizedState,u]},useDebugValue:wy,useDeferredValue:function(i,o){var u=mn();return jy(u,i,o)},useTransition:function(){var i=xy(!1);return i=KO.bind(null,Re,i.queue,!0,!1),mn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,u){var h=Re,v=mn();if(Ve){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),lt===null)throw Error(r(349));(Ie&127)!==0||wO(h,o,u)}v.memoizedState=u;var x={value:u,getSnapshot:o};return v.queue=x,$O(AO.bind(null,h,x,i),[i]),h.flags|=2048,ss(9,{destroy:void 0},jO.bind(null,h,x,u,o),null),u},useId:function(){var i=mn(),o=lt.identifierPrefix;if(Ve){var u=Lr,h=kr;u=(h&~(1<<32-Mn(h)-1)).toString(32)+u,o="_"+o+"R_"+u,u=If++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=V5++,o="_"+o+"r_"+u.toString(32)+"_";return i.memoizedState=o},useHostTransitionStatus:Oy,useFormState:RO,useActionState:RO,useOptimistic:function(i){var o=mn();o.memoizedState=o.baseState=i;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=_y.bind(null,Re,!0,u),u.dispatch=o,[i,o]},useMemoCache:yy,useCacheRefresh:function(){return mn().memoizedState=X5.bind(null,Re)},useEffectEvent:function(i){var o=mn(),u={impl:i};return o.memoizedState=u,function(){if((Ke&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Ty={readContext:nn,use:Vf,useCallback:HO,useContext:nn,useEffect:Sy,useImperativeHandle:VO,useInsertionEffect:qO,useLayoutEffect:IO,useMemo:GO,useReducer:Hf,useRef:zO,useState:function(){return Hf(fi)},useDebugValue:wy,useDeferredValue:function(i,o){var u=Mt();return FO(u,it.memoizedState,i,o)},useTransition:function(){var i=Hf(fi)[0],o=Mt().memoizedState;return[typeof i=="boolean"?i:eu(i),o]},useSyncExternalStore:SO,useId:WO,useHostTransitionStatus:Oy,useFormState:DO,useActionState:DO,useOptimistic:function(i,o){var u=Mt();return TO(u,it,i,o)},useMemoCache:yy,useCacheRefresh:ZO};Ty.useEffectEvent=BO;var n_={readContext:nn,use:Vf,useCallback:HO,useContext:nn,useEffect:Sy,useImperativeHandle:VO,useInsertionEffect:qO,useLayoutEffect:IO,useMemo:GO,useReducer:gy,useRef:zO,useState:function(){return gy(fi)},useDebugValue:wy,useDeferredValue:function(i,o){var u=Mt();return it===null?jy(u,i,o):FO(u,it.memoizedState,i,o)},useTransition:function(){var i=gy(fi)[0],o=Mt().memoizedState;return[typeof i=="boolean"?i:eu(i),o]},useSyncExternalStore:SO,useId:WO,useHostTransitionStatus:Oy,useFormState:LO,useActionState:LO,useOptimistic:function(i,o){var u=Mt();return it!==null?TO(u,it,i,o):(u.baseState=i,[i,u.queue.dispatch])},useMemoCache:yy,useCacheRefresh:ZO};n_.useEffectEvent=BO;function Ey(i,o,u,h){o=i.memoizedState,u=u(h,o),u=u==null?o:y({},o,u),i.memoizedState=u,i.lanes===0&&(i.updateQueue.baseState=u)}var Ny={enqueueSetState:function(i,o,u){i=i._reactInternals;var h=$n(),v=Xi(h);v.payload=o,u!=null&&(v.callback=u),o=Wi(i,v,h),o!==null&&(Tn(o,i,h),Wl(o,i,h))},enqueueReplaceState:function(i,o,u){i=i._reactInternals;var h=$n(),v=Xi(h);v.tag=1,v.payload=o,u!=null&&(v.callback=u),o=Wi(i,v,h),o!==null&&(Tn(o,i,h),Wl(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var u=$n(),h=Xi(u);h.tag=2,o!=null&&(h.callback=o),o=Wi(i,h,u),o!==null&&(Tn(o,i,u),Wl(o,i,u))}};function r_(i,o,u,h,v,x,E){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,x,E):o.prototype&&o.prototype.isPureReactComponent?!Ul(u,h)||!Ul(v,x):!0}function i_(i,o,u,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==i&&Ny.enqueueReplaceState(o,o.state,null)}function Wa(i,o){var u=o;if("ref"in o){u={};for(var h in o)h!=="ref"&&(u[h]=o[h])}if(i=i.defaultProps){u===o&&(u=y({},u));for(var v in i)u[v]===void 0&&(u[v]=i[v])}return u}function a_(i){Of(i)}function o_(i){console.error(i)}function s_(i){Of(i)}function Yf(i,o){try{var u=i.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function l_(i,o,u){try{var h=i.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function Cy(i,o,u){return u=Xi(u),u.tag=3,u.payload={element:null},u.callback=function(){Yf(i,o)},u}function u_(i){return i=Xi(i),i.tag=3,i}function c_(i,o,u,h){var v=u.type.getDerivedStateFromError;if(typeof v=="function"){var x=h.value;i.payload=function(){return v(x)},i.callback=function(){l_(o,u,h)}}var E=u.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(i.callback=function(){l_(o,u,h),typeof v!="function"&&(na===null?na=new Set([this]):na.add(this));var k=h.stack;this.componentDidCatch(h.value,{componentStack:k!==null?k:""})})}function Z5(i,o,u,h,v){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&Jo(o,u,v,!0),u=Dn.current,u!==null){switch(u.tag){case 31:case 13:return tr===null?od():u.alternate===null&&Tt===0&&(Tt=3),u.flags&=-257,u.flags|=65536,u.lanes=v,h===kf?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),tv(i,h,v)),!1;case 22:return u.flags|=65536,h===kf?u.flags|=16384:(o=u.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},u.updateQueue=o):(u=o.retryQueue,u===null?o.retryQueue=new Set([h]):u.add(h)),tv(i,h,v)),!1}throw Error(r(435,u.tag))}return tv(i,h,v),od(),!1}if(Ve)return o=Dn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=v,h!==Xm&&(i=Error(r(422),{cause:h}),Gl(Zn(i,u)))):(h!==Xm&&(o=Error(r(423),{cause:h}),Gl(Zn(o,u))),i=i.current.alternate,i.flags|=65536,v&=-v,i.lanes|=v,h=Zn(h,u),v=Cy(i.stateNode,h,v),oy(i,v),Tt!==4&&(Tt=2)),!1;var x=Error(r(520),{cause:h});if(x=Zn(x,u),cu===null?cu=[x]:cu.push(x),Tt!==4&&(Tt=2),o===null)return!0;h=Zn(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,i=v&-v,u.lanes|=i,i=Cy(u.stateNode,h,i),oy(u,i),!1;case 1:if(o=u.type,x=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||x!==null&&typeof x.componentDidCatch=="function"&&(na===null||!na.has(x))))return u.flags|=65536,v&=-v,u.lanes|=v,v=u_(v),c_(v,i,u,h),oy(u,v),!1}u=u.return}while(u!==null);return!1}var My=Error(r(461)),kt=!1;function rn(i,o,u,h){o.child=i===null?pO(o,null,u,h):Ya(o,i.child,u,h)}function f_(i,o,u,h,v){u=u.render;var x=o.ref;if("ref"in h){var E={};for(var k in h)k!=="ref"&&(E[k]=h[k])}else E=h;return Ha(o),h=dy(i,o,u,E,x,v),k=hy(),i!==null&&!kt?(py(i,o,v),di(i,o,v)):(Ve&&k&&Km(o),o.flags|=1,rn(i,o,h,v),o.child)}function d_(i,o,u,h,v){if(i===null){var x=u.type;return typeof x=="function"&&!Hm(x)&&x.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=x,h_(i,o,x,h,v)):(i=Nf(u.type,null,h,o,o.mode,v),i.ref=o.ref,i.return=o,o.child=i)}if(x=i.child,!By(i,v)){var E=x.memoizedProps;if(u=u.compare,u=u!==null?u:Ul,u(E,h)&&i.ref===o.ref)return di(i,o,v)}return o.flags|=1,i=oi(x,h),i.ref=o.ref,i.return=o,o.child=i}function h_(i,o,u,h,v){if(i!==null){var x=i.memoizedProps;if(Ul(x,h)&&i.ref===o.ref)if(kt=!1,o.pendingProps=h=x,By(i,v))(i.flags&131072)!==0&&(kt=!0);else return o.lanes=i.lanes,di(i,o,v)}return Py(i,o,u,h,v)}function p_(i,o,u,h){var v=h.children,x=i!==null?i.memoizedState:null;if(i===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((o.flags&128)!==0){if(x=x!==null?x.baseLanes|u:u,i!==null){for(h=o.child=i.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~x}else h=0,o.child=null;return m_(i,o,x,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&Rf(o,x!==null?x.cachePool:null),x!==null?vO(o,x):ly(),gO(o);else return h=o.lanes=536870912,m_(i,o,x!==null?x.baseLanes|u:u,u,h)}else x!==null?(Rf(o,x.cachePool),vO(o,x),Qi(),o.memoizedState=null):(i!==null&&Rf(o,null),ly(),Qi());return rn(i,o,v,u),o.child}function ru(i,o){return i!==null&&i.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function m_(i,o,u,h,v){var x=ny();return x=x===null?null:{parent:Rt._currentValue,pool:x},o.memoizedState={baseLanes:u,cachePool:x},i!==null&&Rf(o,null),ly(),gO(o),i!==null&&Jo(i,o,h,!0),o.childLanes=v,null}function Xf(i,o){return o=Zf({mode:o.mode,children:o.children},i.mode),o.ref=i.ref,i.child=o,o.return=i,o}function y_(i,o,u){return Ya(o,i.child,null,u),i=Xf(o,o.pendingProps),i.flags|=2,kn(o),o.memoizedState=null,i}function Q5(i,o,u){var h=o.pendingProps,v=(o.flags&128)!==0;if(o.flags&=-129,i===null){if(Ve){if(h.mode==="hidden")return i=Xf(o,h),o.lanes=536870912,ru(null,i);if(cy(o),(i=vt)?(i=E2(i,er),i=i!==null&&i.data==="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:Hi!==null?{id:kr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},u=JA(i),u.return=o,o.child=u,tn=o,vt=null)):i=null,i===null)throw Fi(o);return o.lanes=536870912,null}return Xf(o,h)}var x=i.memoizedState;if(x!==null){var E=x.dehydrated;if(cy(o),v)if(o.flags&256)o.flags&=-257,o=y_(i,o,u);else if(o.memoizedState!==null)o.child=i.child,o.flags|=128,o=null;else throw Error(r(558));else if(kt||Jo(i,o,u,!1),v=(u&i.childLanes)!==0,kt||v){if(h=lt,h!==null&&(E=oA(h,u),E!==0&&E!==x.retryLane))throw x.retryLane=E,qa(i,E),Tn(h,i,E),My;od(),o=y_(i,o,u)}else i=x.treeContext,vt=nr(E.nextSibling),tn=o,Ve=!0,Gi=null,er=!1,i!==null&&nO(o,i),o=Xf(o,h),o.flags|=4096;return o}return i=oi(i.child,{mode:h.mode,children:h.children}),i.ref=o.ref,o.child=i,i.return=o,i}function Wf(i,o){var u=o.ref;if(u===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(i===null||i.ref!==u)&&(o.flags|=4194816)}}function Py(i,o,u,h,v){return Ha(o),u=dy(i,o,u,h,void 0,v),h=hy(),i!==null&&!kt?(py(i,o,v),di(i,o,v)):(Ve&&h&&Km(o),o.flags|=1,rn(i,o,u,v),o.child)}function v_(i,o,u,h,v,x){return Ha(o),o.updateQueue=null,u=bO(o,h,u,v),xO(i),h=hy(),i!==null&&!kt?(py(i,o,x),di(i,o,x)):(Ve&&h&&Km(o),o.flags|=1,rn(i,o,u,x),o.child)}function g_(i,o,u,h,v){if(Ha(o),o.stateNode===null){var x=Xo,E=u.contextType;typeof E=="object"&&E!==null&&(x=nn(E)),x=new u(h,x),o.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,x.updater=Ny,o.stateNode=x,x._reactInternals=o,x=o.stateNode,x.props=h,x.state=o.memoizedState,x.refs={},iy(o),E=u.contextType,x.context=typeof E=="object"&&E!==null?nn(E):Xo,x.state=o.memoizedState,E=u.getDerivedStateFromProps,typeof E=="function"&&(Ey(o,u,E,h),x.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof x.getSnapshotBeforeUpdate=="function"||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(E=x.state,typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount(),E!==x.state&&Ny.enqueueReplaceState(x,x.state,null),Ql(o,h,x,v),Zl(),x.state=o.memoizedState),typeof x.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){x=o.stateNode;var k=o.memoizedProps,U=Wa(u,k);x.props=U;var Z=x.context,te=u.contextType;E=Xo,typeof te=="object"&&te!==null&&(E=nn(te));var oe=u.getDerivedStateFromProps;te=typeof oe=="function"||typeof x.getSnapshotBeforeUpdate=="function",k=o.pendingProps!==k,te||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(k||Z!==E)&&i_(o,x,h,E),Yi=!1;var J=o.memoizedState;x.state=J,Ql(o,h,x,v),Zl(),Z=o.memoizedState,k||J!==Z||Yi?(typeof oe=="function"&&(Ey(o,u,oe,h),Z=o.memoizedState),(U=Yi||r_(o,u,U,h,J,Z,E))?(te||typeof x.UNSAFE_componentWillMount!="function"&&typeof x.componentWillMount!="function"||(typeof x.componentWillMount=="function"&&x.componentWillMount(),typeof x.UNSAFE_componentWillMount=="function"&&x.UNSAFE_componentWillMount()),typeof x.componentDidMount=="function"&&(o.flags|=4194308)):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=Z),x.props=h,x.state=Z,x.context=E,h=U):(typeof x.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{x=o.stateNode,ay(i,o),E=o.memoizedProps,te=Wa(u,E),x.props=te,oe=o.pendingProps,J=x.context,Z=u.contextType,U=Xo,typeof Z=="object"&&Z!==null&&(U=nn(Z)),k=u.getDerivedStateFromProps,(Z=typeof k=="function"||typeof x.getSnapshotBeforeUpdate=="function")||typeof x.UNSAFE_componentWillReceiveProps!="function"&&typeof x.componentWillReceiveProps!="function"||(E!==oe||J!==U)&&i_(o,x,h,U),Yi=!1,J=o.memoizedState,x.state=J,Ql(o,h,x,v),Zl();var ee=o.memoizedState;E!==oe||J!==ee||Yi||i!==null&&i.dependencies!==null&&Mf(i.dependencies)?(typeof k=="function"&&(Ey(o,u,k,h),ee=o.memoizedState),(te=Yi||r_(o,u,te,h,J,ee,U)||i!==null&&i.dependencies!==null&&Mf(i.dependencies))?(Z||typeof x.UNSAFE_componentWillUpdate!="function"&&typeof x.componentWillUpdate!="function"||(typeof x.componentWillUpdate=="function"&&x.componentWillUpdate(h,ee,U),typeof x.UNSAFE_componentWillUpdate=="function"&&x.UNSAFE_componentWillUpdate(h,ee,U)),typeof x.componentDidUpdate=="function"&&(o.flags|=4),typeof x.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof x.componentDidUpdate!="function"||E===i.memoizedProps&&J===i.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||E===i.memoizedProps&&J===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=ee),x.props=h,x.state=ee,x.context=U,h=te):(typeof x.componentDidUpdate!="function"||E===i.memoizedProps&&J===i.memoizedState||(o.flags|=4),typeof x.getSnapshotBeforeUpdate!="function"||E===i.memoizedProps&&J===i.memoizedState||(o.flags|=1024),h=!1)}return x=h,Wf(i,o),h=(o.flags&128)!==0,x||h?(x=o.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:x.render(),o.flags|=1,i!==null&&h?(o.child=Ya(o,i.child,null,v),o.child=Ya(o,null,u,v)):rn(i,o,u,v),o.memoizedState=x.state,i=o.child):i=di(i,o,v),i}function x_(i,o,u,h){return Ua(),o.flags|=256,rn(i,o,u,h),o.child}var Ry={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Dy(i){return{baseLanes:i,cachePool:lO()}}function ky(i,o,u){return i=i!==null?i.childLanes&~u:0,o&&(i|=zn),i}function b_(i,o,u){var h=o.pendingProps,v=!1,x=(o.flags&128)!==0,E;if((E=x)||(E=i!==null&&i.memoizedState===null?!1:(Ct.current&2)!==0),E&&(v=!0,o.flags&=-129),E=(o.flags&32)!==0,o.flags&=-33,i===null){if(Ve){if(v?Zi(o):Qi(),(i=vt)?(i=E2(i,er),i=i!==null&&i.data!=="&"?i:null,i!==null&&(o.memoizedState={dehydrated:i,treeContext:Hi!==null?{id:kr,overflow:Lr}:null,retryLane:536870912,hydrationErrors:null},u=JA(i),u.return=o,o.child=u,tn=o,vt=null)):i=null,i===null)throw Fi(o);return vv(i)?o.lanes=32:o.lanes=536870912,null}var k=h.children;return h=h.fallback,v?(Qi(),v=o.mode,k=Zf({mode:"hidden",children:k},v),h=Ia(h,v,u,null),k.return=o,h.return=o,k.sibling=h,o.child=k,h=o.child,h.memoizedState=Dy(u),h.childLanes=ky(i,E,u),o.memoizedState=Ry,ru(null,h)):(Zi(o),Ly(o,k))}var U=i.memoizedState;if(U!==null&&(k=U.dehydrated,k!==null)){if(x)o.flags&256?(Zi(o),o.flags&=-257,o=zy(i,o,u)):o.memoizedState!==null?(Qi(),o.child=i.child,o.flags|=128,o=null):(Qi(),k=h.fallback,v=o.mode,h=Zf({mode:"visible",children:h.children},v),k=Ia(k,v,u,null),k.flags|=2,h.return=o,k.return=o,h.sibling=k,o.child=h,Ya(o,i.child,null,u),h=o.child,h.memoizedState=Dy(u),h.childLanes=ky(i,E,u),o.memoizedState=Ry,o=ru(null,h));else if(Zi(o),vv(k)){if(E=k.nextSibling&&k.nextSibling.dataset,E)var Z=E.dgst;E=Z,h=Error(r(419)),h.stack="",h.digest=E,Gl({value:h,source:null,stack:null}),o=zy(i,o,u)}else if(kt||Jo(i,o,u,!1),E=(u&i.childLanes)!==0,kt||E){if(E=lt,E!==null&&(h=oA(E,u),h!==0&&h!==U.retryLane))throw U.retryLane=h,qa(i,h),Tn(E,i,h),My;yv(k)||od(),o=zy(i,o,u)}else yv(k)?(o.flags|=192,o.child=i.child,o=null):(i=U.treeContext,vt=nr(k.nextSibling),tn=o,Ve=!0,Gi=null,er=!1,i!==null&&nO(o,i),o=Ly(o,h.children),o.flags|=4096);return o}return v?(Qi(),k=h.fallback,v=o.mode,U=i.child,Z=U.sibling,h=oi(U,{mode:"hidden",children:h.children}),h.subtreeFlags=U.subtreeFlags&65011712,Z!==null?k=oi(Z,k):(k=Ia(k,v,u,null),k.flags|=2),k.return=o,h.return=o,h.sibling=k,o.child=h,ru(null,h),h=o.child,k=i.child.memoizedState,k===null?k=Dy(u):(v=k.cachePool,v!==null?(U=Rt._currentValue,v=v.parent!==U?{parent:U,pool:U}:v):v=lO(),k={baseLanes:k.baseLanes|u,cachePool:v}),h.memoizedState=k,h.childLanes=ky(i,E,u),o.memoizedState=Ry,ru(i.child,h)):(Zi(o),u=i.child,i=u.sibling,u=oi(u,{mode:"visible",children:h.children}),u.return=o,u.sibling=null,i!==null&&(E=o.deletions,E===null?(o.deletions=[i],o.flags|=16):E.push(i)),o.child=u,o.memoizedState=null,u)}function Ly(i,o){return o=Zf({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function Zf(i,o){return i=Rn(22,i,null,o),i.lanes=0,i}function zy(i,o,u){return Ya(o,i.child,null,u),i=Ly(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function S_(i,o,u){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Qm(i.return,o,u)}function $y(i,o,u,h,v,x){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:v,treeForkCount:x}:(E.isBackwards=o,E.rendering=null,E.renderingStartTime=0,E.last=h,E.tail=u,E.tailMode=v,E.treeForkCount=x)}function w_(i,o,u){var h=o.pendingProps,v=h.revealOrder,x=h.tail;h=h.children;var E=Ct.current,k=(E&2)!==0;if(k?(E=E&1|2,o.flags|=128):E&=1,re(Ct,E),rn(i,o,h,u),h=Ve?Hl:0,!k&&i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&S_(i,u,o);else if(i.tag===19)S_(i,u,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(v){case"forwards":for(u=o.child,v=null;u!==null;)i=u.alternate,i!==null&&Bf(i)===null&&(v=u),u=u.sibling;u=v,u===null?(v=o.child,o.child=null):(v=u.sibling,u.sibling=null),$y(o,!1,v,u,x,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,v=o.child,o.child=null;v!==null;){if(i=v.alternate,i!==null&&Bf(i)===null){o.child=v;break}i=v.sibling,v.sibling=u,u=v,v=i}$y(o,!0,u,null,x,h);break;case"together":$y(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function di(i,o,u){if(i!==null&&(o.dependencies=i.dependencies),ta|=o.lanes,(u&o.childLanes)===0)if(i!==null){if(Jo(i,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,u=oi(i,i.pendingProps),o.child=u,u.return=o;i.sibling!==null;)i=i.sibling,u=u.sibling=oi(i,i.pendingProps),u.return=o;u.sibling=null}return o.child}function By(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&Mf(i)))}function J5(i,o,u){switch(o.tag){case 3:Xe(o,o.stateNode.containerInfo),Ki(o,Rt,i.memoizedState.cache),Ua();break;case 27:case 5:Te(o);break;case 4:Xe(o,o.stateNode.containerInfo);break;case 10:Ki(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,cy(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(Zi(o),o.flags|=128,null):(u&o.child.childLanes)!==0?b_(i,o,u):(Zi(o),i=di(i,o,u),i!==null?i.sibling:null);Zi(o);break;case 19:var v=(i.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(Jo(i,o,u,!1),h=(u&o.childLanes)!==0),v){if(h)return w_(i,o,u);o.flags|=128}if(v=o.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),re(Ct,Ct.current),h)break;return null;case 22:return o.lanes=0,p_(i,o,u,o.pendingProps);case 24:Ki(o,Rt,i.memoizedState.cache)}return di(i,o,u)}function j_(i,o,u){if(i!==null)if(i.memoizedProps!==o.pendingProps)kt=!0;else{if(!By(i,u)&&(o.flags&128)===0)return kt=!1,J5(i,o,u);kt=(i.flags&131072)!==0}else kt=!1,Ve&&(o.flags&1048576)!==0&&tO(o,Hl,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(i=Fa(o.elementType),o.type=i,typeof i=="function")Hm(i)?(h=Wa(i,h),o.tag=1,o=g_(null,o,i,h,u)):(o.tag=0,o=Py(null,o,i,h,u));else{if(i!=null){var v=i.$$typeof;if(v===C){o.tag=11,o=f_(null,o,i,h,u);break e}else if(v===M){o.tag=14,o=d_(null,o,i,h,u);break e}}throw o=X(i)||i,Error(r(306,o,""))}}return o;case 0:return Py(i,o,o.type,o.pendingProps,u);case 1:return h=o.type,v=Wa(h,o.pendingProps),g_(i,o,h,v,u);case 3:e:{if(Xe(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var x=o.memoizedState;v=x.element,ay(i,o),Ql(o,h,null,u);var E=o.memoizedState;if(h=E.cache,Ki(o,Rt,h),h!==x.cache&&Jm(o,[Rt],u,!0),Zl(),h=E.element,x.isDehydrated)if(x={element:h,isDehydrated:!1,cache:E.cache},o.updateQueue.baseState=x,o.memoizedState=x,o.flags&256){o=x_(i,o,h,u);break e}else if(h!==v){v=Zn(Error(r(424)),o),Gl(v),o=x_(i,o,h,u);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(vt=nr(i.firstChild),tn=o,Ve=!0,Gi=null,er=!0,u=pO(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ua(),h===v){o=di(i,o,u);break e}rn(i,o,h,u)}o=o.child}return o;case 26:return Wf(i,o),i===null?(u=D2(o.type,null,o.pendingProps,null))?o.memoizedState=u:Ve||(u=o.type,i=o.pendingProps,h=hd(je.current).createElement(u),h[en]=o,h[Sn]=i,an(h,u,i),Xt(h),o.stateNode=h):o.memoizedState=D2(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return Te(o),i===null&&Ve&&(h=o.stateNode=M2(o.type,o.pendingProps,je.current),tn=o,er=!0,v=vt,oa(o.type)?(gv=v,vt=nr(h.firstChild)):vt=v),rn(i,o,o.pendingProps.children,u),Wf(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&Ve&&((v=h=vt)&&(h=N6(h,o.type,o.pendingProps,er),h!==null?(o.stateNode=h,tn=o,vt=nr(h.firstChild),er=!1,v=!0):v=!1),v||Fi(o)),Te(o),v=o.type,x=o.pendingProps,E=i!==null?i.memoizedProps:null,h=x.children,hv(v,x)?h=null:E!==null&&hv(v,E)&&(o.flags|=32),o.memoizedState!==null&&(v=dy(i,o,H5,null,null,u),gu._currentValue=v),Wf(i,o),rn(i,o,h,u),o.child;case 6:return i===null&&Ve&&((i=u=vt)&&(u=C6(u,o.pendingProps,er),u!==null?(o.stateNode=u,tn=o,vt=null,i=!0):i=!1),i||Fi(o)),null;case 13:return b_(i,o,u);case 4:return Xe(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=Ya(o,null,h,u):rn(i,o,h,u),o.child;case 11:return f_(i,o,o.type,o.pendingProps,u);case 7:return rn(i,o,o.pendingProps,u),o.child;case 8:return rn(i,o,o.pendingProps.children,u),o.child;case 12:return rn(i,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,Ki(o,o.type,h.value),rn(i,o,h.children,u),o.child;case 9:return v=o.type._context,h=o.pendingProps.children,Ha(o),v=nn(v),h=h(v),o.flags|=1,rn(i,o,h,u),o.child;case 14:return d_(i,o,o.type,o.pendingProps,u);case 15:return h_(i,o,o.type,o.pendingProps,u);case 19:return w_(i,o,u);case 31:return Q5(i,o,u);case 22:return p_(i,o,u,o.pendingProps);case 24:return Ha(o),h=nn(Rt),i===null?(v=ny(),v===null&&(v=lt,x=ey(),v.pooledCache=x,x.refCount++,x!==null&&(v.pooledCacheLanes|=u),v=x),o.memoizedState={parent:h,cache:v},iy(o),Ki(o,Rt,v)):((i.lanes&u)!==0&&(ay(i,o),Ql(o,null,null,u),Zl()),v=i.memoizedState,x=o.memoizedState,v.parent!==h?(v={parent:h,cache:h},o.memoizedState=v,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=v),Ki(o,Rt,h)):(h=x.cache,Ki(o,Rt,h),h!==v.cache&&Jm(o,[Rt],u,!0))),rn(i,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function hi(i){i.flags|=4}function qy(i,o,u,h,v){if((o=(i.mode&32)!==0)&&(o=!1),o){if(i.flags|=16777216,(v&335544128)===v)if(i.stateNode.complete)i.flags|=8192;else if(W_())i.flags|=8192;else throw Ka=kf,ry}else i.flags&=-16777217}function A_(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!B2(o))if(W_())i.flags|=8192;else throw Ka=kf,ry}function Qf(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?rA():536870912,i.lanes|=o,fs|=o)}function iu(i,o){if(!Ve)switch(i.tailMode){case"hidden":o=i.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?i.tail=null:u.sibling=null;break;case"collapsed":u=i.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function gt(i){var o=i.alternate!==null&&i.alternate.child===i.child,u=0,h=0;if(o)for(var v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=i,v=v.sibling;else for(v=i.child;v!==null;)u|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=i,v=v.sibling;return i.subtreeFlags|=h,i.childLanes=u,o}function e6(i,o,u){var h=o.pendingProps;switch(Ym(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gt(o),null;case 1:return gt(o),null;case 3:return u=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),ui(Rt),ce(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(i===null||i.child===null)&&(Qo(o)?hi(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Wm())),gt(o),null;case 26:var v=o.type,x=o.memoizedState;return i===null?(hi(o),x!==null?(gt(o),A_(o,x)):(gt(o),qy(o,v,null,h,u))):x?x!==i.memoizedState?(hi(o),gt(o),A_(o,x)):(gt(o),o.flags&=-16777217):(i=i.memoizedProps,i!==h&&hi(o),gt(o),qy(o,v,i,h,u)),null;case 27:if(Ce(o),u=je.current,v=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&hi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return gt(o),null}i=fe.current,Qo(o)?rO(o):(i=M2(v,h,u),o.stateNode=i,hi(o))}return gt(o),null;case 5:if(Ce(o),v=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&hi(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return gt(o),null}if(x=fe.current,Qo(o))rO(o);else{var E=hd(je.current);switch(x){case 1:x=E.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:x=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":x=E.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":x=E.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":x=E.createElement("div"),x.innerHTML="<script><\/script>",x=x.removeChild(x.firstChild);break;case"select":x=typeof h.is=="string"?E.createElement("select",{is:h.is}):E.createElement("select"),h.multiple?x.multiple=!0:h.size&&(x.size=h.size);break;default:x=typeof h.is=="string"?E.createElement(v,{is:h.is}):E.createElement(v)}}x[en]=o,x[Sn]=h;e:for(E=o.child;E!==null;){if(E.tag===5||E.tag===6)x.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===o)break e;for(;E.sibling===null;){if(E.return===null||E.return===o)break e;E=E.return}E.sibling.return=E.return,E=E.sibling}o.stateNode=x;e:switch(an(x,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&hi(o)}}return gt(o),qy(o,o.type,i===null?null:i.memoizedProps,o.pendingProps,u),null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&hi(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=je.current,Qo(o)){if(i=o.stateNode,u=o.memoizedProps,h=null,v=tn,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}i[en]=o,i=!!(i.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||b2(i.nodeValue,u)),i||Fi(o,!0)}else i=hd(i).createTextNode(h),i[en]=o,o.stateNode=i}return gt(o),null;case 31:if(u=o.memoizedState,i===null||i.memoizedState!==null){if(h=Qo(o),u!==null){if(i===null){if(!h)throw Error(r(318));if(i=o.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(557));i[en]=o}else Ua(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;gt(o),i=!1}else u=Wm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=u),i=!0;if(!i)return o.flags&256?(kn(o),o):(kn(o),null);if((o.flags&128)!==0)throw Error(r(558))}return gt(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(v=Qo(o),h!==null&&h.dehydrated!==null){if(i===null){if(!v)throw Error(r(318));if(v=o.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(r(317));v[en]=o}else Ua(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;gt(o),v=!1}else v=Wm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=v),v=!0;if(!v)return o.flags&256?(kn(o),o):(kn(o),null)}return kn(o),(o.flags&128)!==0?(o.lanes=u,o):(u=h!==null,i=i!==null&&i.memoizedState!==null,u&&(h=o.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),x=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(x=h.memoizedState.cachePool.pool),x!==v&&(h.flags|=2048)),u!==i&&u&&(o.child.flags|=8192),Qf(o,o.updateQueue),gt(o),null);case 4:return ce(),i===null&&lv(o.stateNode.containerInfo),gt(o),null;case 10:return ui(o.type),gt(o),null;case 19:if(G(Ct),h=o.memoizedState,h===null)return gt(o),null;if(v=(o.flags&128)!==0,x=h.rendering,x===null)if(v)iu(h,!1);else{if(Tt!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(x=Bf(i),x!==null){for(o.flags|=128,iu(h,!1),i=x.updateQueue,o.updateQueue=i,Qf(o,i),o.subtreeFlags=0,i=u,u=o.child;u!==null;)QA(u,i),u=u.sibling;return re(Ct,Ct.current&1|2),Ve&&si(o,h.treeForkCount),o.child}i=i.sibling}h.tail!==null&&cn()>rd&&(o.flags|=128,v=!0,iu(h,!1),o.lanes=4194304)}else{if(!v)if(i=Bf(x),i!==null){if(o.flags|=128,v=!0,i=i.updateQueue,o.updateQueue=i,Qf(o,i),iu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!x.alternate&&!Ve)return gt(o),null}else 2*cn()-h.renderingStartTime>rd&&u!==536870912&&(o.flags|=128,v=!0,iu(h,!1),o.lanes=4194304);h.isBackwards?(x.sibling=o.child,o.child=x):(i=h.last,i!==null?i.sibling=x:o.child=x,h.last=x)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=cn(),i.sibling=null,u=Ct.current,re(Ct,v?u&1|2:u&1),Ve&&si(o,h.treeForkCount),i):(gt(o),null);case 22:case 23:return kn(o),uy(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(u&536870912)!==0&&(o.flags&128)===0&&(gt(o),o.subtreeFlags&6&&(o.flags|=8192)):gt(o),u=o.updateQueue,u!==null&&Qf(o,u.retryQueue),u=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048),i!==null&&G(Ga),null;case 24:return u=null,i!==null&&(u=i.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),ui(Rt),gt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function t6(i,o){switch(Ym(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return ui(Rt),ce(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Ce(o),null;case 31:if(o.memoizedState!==null){if(kn(o),o.alternate===null)throw Error(r(340));Ua()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 13:if(kn(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Ua()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return G(Ct),null;case 4:return ce(),null;case 10:return ui(o.type),null;case 22:case 23:return kn(o),uy(),i!==null&&G(Ga),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return ui(Rt),null;case 25:return null;default:return null}}function O_(i,o){switch(Ym(o),o.tag){case 3:ui(Rt),ce();break;case 26:case 27:case 5:Ce(o);break;case 4:ce();break;case 31:o.memoizedState!==null&&kn(o);break;case 13:kn(o);break;case 19:G(Ct);break;case 10:ui(o.type);break;case 22:case 23:kn(o),uy(),i!==null&&G(Ga);break;case 24:ui(Rt)}}function au(i,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var v=h.next;u=v;do{if((u.tag&i)===i){h=void 0;var x=u.create,E=u.inst;h=x(),E.destroy=h}u=u.next}while(u!==v)}}catch(k){et(o,o.return,k)}}function Ji(i,o,u){try{var h=o.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var x=v.next;h=x;do{if((h.tag&i)===i){var E=h.inst,k=E.destroy;if(k!==void 0){E.destroy=void 0,v=o;var U=u,Z=k;try{Z()}catch(te){et(v,U,te)}}}h=h.next}while(h!==x)}}catch(te){et(o,o.return,te)}}function __(i){var o=i.updateQueue;if(o!==null){var u=i.stateNode;try{yO(o,u)}catch(h){et(i,i.return,h)}}}function T_(i,o,u){u.props=Wa(i.type,i.memoizedProps),u.state=i.memoizedState;try{u.componentWillUnmount()}catch(h){et(i,o,h)}}function ou(i,o){try{var u=i.ref;if(u!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof u=="function"?i.refCleanup=u(h):u.current=h}}catch(v){et(i,o,v)}}function zr(i,o){var u=i.ref,h=i.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(v){et(i,o,v)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(v){et(i,o,v)}else u.current=null}function E_(i){var o=i.type,u=i.memoizedProps,h=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":u.autoFocus&&h.focus();break e;case"img":u.src?h.src=u.src:u.srcSet&&(h.srcset=u.srcSet)}}catch(v){et(i,i.return,v)}}function Iy(i,o,u){try{var h=i.stateNode;j6(h,i.type,u,o),h[Sn]=o}catch(v){et(i,i.return,v)}}function N_(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&oa(i.type)||i.tag===4}function Uy(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||N_(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&oa(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Vy(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(i,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(i),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=ii));else if(h!==4&&(h===27&&oa(i.type)&&(u=i.stateNode,o=null),i=i.child,i!==null))for(Vy(i,o,u),i=i.sibling;i!==null;)Vy(i,o,u),i=i.sibling}function Jf(i,o,u){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?u.insertBefore(i,o):u.appendChild(i);else if(h!==4&&(h===27&&oa(i.type)&&(u=i.stateNode),i=i.child,i!==null))for(Jf(i,o,u),i=i.sibling;i!==null;)Jf(i,o,u),i=i.sibling}function C_(i){var o=i.stateNode,u=i.memoizedProps;try{for(var h=i.type,v=o.attributes;v.length;)o.removeAttributeNode(v[0]);an(o,h,u),o[en]=i,o[Sn]=u}catch(x){et(i,i.return,x)}}var pi=!1,Lt=!1,Hy=!1,M_=typeof WeakSet=="function"?WeakSet:Set,Wt=null;function n6(i,o){if(i=i.containerInfo,fv=bd,i=VA(i),zm(i)){if("selectionStart"in i)var u={start:i.selectionStart,end:i.selectionEnd};else e:{u=(u=i.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var v=h.anchorOffset,x=h.focusNode;h=h.focusOffset;try{u.nodeType,x.nodeType}catch{u=null;break e}var E=0,k=-1,U=-1,Z=0,te=0,oe=i,J=null;t:for(;;){for(var ee;oe!==u||v!==0&&oe.nodeType!==3||(k=E+v),oe!==x||h!==0&&oe.nodeType!==3||(U=E+h),oe.nodeType===3&&(E+=oe.nodeValue.length),(ee=oe.firstChild)!==null;)J=oe,oe=ee;for(;;){if(oe===i)break t;if(J===u&&++Z===v&&(k=E),J===x&&++te===h&&(U=E),(ee=oe.nextSibling)!==null)break;oe=J,J=oe.parentNode}oe=ee}u=k===-1||U===-1?null:{start:k,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(dv={focusedElem:i,selectionRange:u},bd=!1,Wt=o;Wt!==null;)if(o=Wt,i=o.child,(o.subtreeFlags&1028)!==0&&i!==null)i.return=o,Wt=i;else for(;Wt!==null;){switch(o=Wt,x=o.alternate,i=o.flags,o.tag){case 0:if((i&4)!==0&&(i=o.updateQueue,i=i!==null?i.events:null,i!==null))for(u=0;u<i.length;u++)v=i[u],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&x!==null){i=void 0,u=o,v=x.memoizedProps,x=x.memoizedState,h=u.stateNode;try{var me=Wa(u.type,v);i=h.getSnapshotBeforeUpdate(me,x),h.__reactInternalSnapshotBeforeUpdate=i}catch(Ae){et(u,u.return,Ae)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,u=i.nodeType,u===9)mv(i);else if(u===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":mv(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=o.sibling,i!==null){i.return=o.return,Wt=i;break}Wt=o.return}}function P_(i,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:yi(i,u),h&4&&au(5,u);break;case 1:if(yi(i,u),h&4)if(i=u.stateNode,o===null)try{i.componentDidMount()}catch(E){et(u,u.return,E)}else{var v=Wa(u.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(v,o,i.__reactInternalSnapshotBeforeUpdate)}catch(E){et(u,u.return,E)}}h&64&&__(u),h&512&&ou(u,u.return);break;case 3:if(yi(i,u),h&64&&(i=u.updateQueue,i!==null)){if(o=null,u.child!==null)switch(u.child.tag){case 27:case 5:o=u.child.stateNode;break;case 1:o=u.child.stateNode}try{yO(i,o)}catch(E){et(u,u.return,E)}}break;case 27:o===null&&h&4&&C_(u);case 26:case 5:yi(i,u),o===null&&h&4&&E_(u),h&512&&ou(u,u.return);break;case 12:yi(i,u);break;case 31:yi(i,u),h&4&&k_(i,u);break;case 13:yi(i,u),h&4&&L_(i,u),h&64&&(i=u.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(u=f6.bind(null,u),M6(i,u))));break;case 22:if(h=u.memoizedState!==null||pi,!h){o=o!==null&&o.memoizedState!==null||Lt,v=pi;var x=Lt;pi=h,(Lt=o)&&!x?vi(i,u,(u.subtreeFlags&8772)!==0):yi(i,u),pi=v,Lt=x}break;case 30:break;default:yi(i,u)}}function R_(i){var o=i.alternate;o!==null&&(i.alternate=null,R_(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&bm(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var St=null,jn=!1;function mi(i,o,u){for(u=u.child;u!==null;)D_(i,o,u),u=u.sibling}function D_(i,o,u){if(Cn&&typeof Cn.onCommitFiberUnmount=="function")try{Cn.onCommitFiberUnmount(Cl,u)}catch{}switch(u.tag){case 26:Lt||zr(u,o),mi(i,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Lt||zr(u,o);var h=St,v=jn;oa(u.type)&&(St=u.stateNode,jn=!1),mi(i,o,u),mu(u.stateNode),St=h,jn=v;break;case 5:Lt||zr(u,o);case 6:if(h=St,v=jn,St=null,mi(i,o,u),St=h,jn=v,St!==null)if(jn)try{(St.nodeType===9?St.body:St.nodeName==="HTML"?St.ownerDocument.body:St).removeChild(u.stateNode)}catch(x){et(u,o,x)}else try{St.removeChild(u.stateNode)}catch(x){et(u,o,x)}break;case 18:St!==null&&(jn?(i=St,_2(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,u.stateNode),xs(i)):_2(St,u.stateNode));break;case 4:h=St,v=jn,St=u.stateNode.containerInfo,jn=!0,mi(i,o,u),St=h,jn=v;break;case 0:case 11:case 14:case 15:Ji(2,u,o),Lt||Ji(4,u,o),mi(i,o,u);break;case 1:Lt||(zr(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&T_(u,o,h)),mi(i,o,u);break;case 21:mi(i,o,u);break;case 22:Lt=(h=Lt)||u.memoizedState!==null,mi(i,o,u),Lt=h;break;default:mi(i,o,u)}}function k_(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{xs(i)}catch(u){et(o,o.return,u)}}}function L_(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{xs(i)}catch(u){et(o,o.return,u)}}function r6(i){switch(i.tag){case 31:case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new M_),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new M_),o;default:throw Error(r(435,i.tag))}}function ed(i,o){var u=r6(i);o.forEach(function(h){if(!u.has(h)){u.add(h);var v=d6.bind(null,i,h);h.then(v,v)}})}function An(i,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var v=u[h],x=i,E=o,k=E;e:for(;k!==null;){switch(k.tag){case 27:if(oa(k.type)){St=k.stateNode,jn=!1;break e}break;case 5:St=k.stateNode,jn=!1;break e;case 3:case 4:St=k.stateNode.containerInfo,jn=!0;break e}k=k.return}if(St===null)throw Error(r(160));D_(x,E,v),St=null,jn=!1,x=v.alternate,x!==null&&(x.return=null),v.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)z_(o,i),o=o.sibling}var gr=null;function z_(i,o){var u=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:An(o,i),On(i),h&4&&(Ji(3,i,i.return),au(3,i),Ji(5,i,i.return));break;case 1:An(o,i),On(i),h&512&&(Lt||u===null||zr(u,u.return)),h&64&&pi&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(u=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var v=gr;if(An(o,i),On(i),h&512&&(Lt||u===null||zr(u,u.return)),h&4){var x=u!==null?u.memoizedState:null;if(h=i.memoizedState,u===null)if(h===null)if(i.stateNode===null){e:{h=i.type,u=i.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":x=v.getElementsByTagName("title")[0],(!x||x[Rl]||x[en]||x.namespaceURI==="http://www.w3.org/2000/svg"||x.hasAttribute("itemprop"))&&(x=v.createElement(h),v.head.insertBefore(x,v.querySelector("head > title"))),an(x,h,u),x[en]=i,Xt(x),h=x;break e;case"link":var E=z2("link","href",v).get(h+(u.href||""));if(E){for(var k=0;k<E.length;k++)if(x=E[k],x.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&x.getAttribute("rel")===(u.rel==null?null:u.rel)&&x.getAttribute("title")===(u.title==null?null:u.title)&&x.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){E.splice(k,1);break t}}x=v.createElement(h),an(x,h,u),v.head.appendChild(x);break;case"meta":if(E=z2("meta","content",v).get(h+(u.content||""))){for(k=0;k<E.length;k++)if(x=E[k],x.getAttribute("content")===(u.content==null?null:""+u.content)&&x.getAttribute("name")===(u.name==null?null:u.name)&&x.getAttribute("property")===(u.property==null?null:u.property)&&x.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&x.getAttribute("charset")===(u.charSet==null?null:u.charSet)){E.splice(k,1);break t}}x=v.createElement(h),an(x,h,u),v.head.appendChild(x);break;default:throw Error(r(468,h))}x[en]=i,Xt(x),h=x}i.stateNode=h}else $2(v,i.type,i.stateNode);else i.stateNode=L2(v,h,i.memoizedProps);else x!==h?(x===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):x.count--,h===null?$2(v,i.type,i.stateNode):L2(v,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Iy(i,i.memoizedProps,u.memoizedProps)}break;case 27:An(o,i),On(i),h&512&&(Lt||u===null||zr(u,u.return)),u!==null&&h&4&&Iy(i,i.memoizedProps,u.memoizedProps);break;case 5:if(An(o,i),On(i),h&512&&(Lt||u===null||zr(u,u.return)),i.flags&32){v=i.stateNode;try{Uo(v,"")}catch(me){et(i,i.return,me)}}h&4&&i.stateNode!=null&&(v=i.memoizedProps,Iy(i,v,u!==null?u.memoizedProps:v)),h&1024&&(Hy=!0);break;case 6:if(An(o,i),On(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,u=i.stateNode;try{u.nodeValue=h}catch(me){et(i,i.return,me)}}break;case 3:if(yd=null,v=gr,gr=pd(o.containerInfo),An(o,i),gr=v,On(i),h&4&&u!==null&&u.memoizedState.isDehydrated)try{xs(o.containerInfo)}catch(me){et(i,i.return,me)}Hy&&(Hy=!1,$_(i));break;case 4:h=gr,gr=pd(i.stateNode.containerInfo),An(o,i),On(i),gr=h;break;case 12:An(o,i),On(i);break;case 31:An(o,i),On(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,ed(i,h)));break;case 13:An(o,i),On(i),i.child.flags&8192&&i.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(nd=cn()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,ed(i,h)));break;case 22:v=i.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,Z=pi,te=Lt;if(pi=Z||v,Lt=te||U,An(o,i),Lt=te,pi=Z,On(i),h&8192)e:for(o=i.stateNode,o._visibility=v?o._visibility&-2:o._visibility|1,v&&(u===null||U||pi||Lt||Za(i)),u=null,o=i;;){if(o.tag===5||o.tag===26){if(u===null){U=u=o;try{if(x=U.stateNode,v)E=x.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{k=U.stateNode;var oe=U.memoizedProps.style,J=oe!=null&&oe.hasOwnProperty("display")?oe.display:null;k.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(me){et(U,U.return,me)}}}else if(o.tag===6){if(u===null){U=o;try{U.stateNode.nodeValue=v?"":U.memoizedProps}catch(me){et(U,U.return,me)}}}else if(o.tag===18){if(u===null){U=o;try{var ee=U.stateNode;v?T2(ee,!0):T2(U.stateNode,!1)}catch(me){et(U,U.return,me)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,ed(i,u))));break;case 19:An(o,i),On(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,ed(i,h)));break;case 30:break;case 21:break;default:An(o,i),On(i)}}function On(i){var o=i.flags;if(o&2){try{for(var u,h=i.return;h!==null;){if(N_(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var v=u.stateNode,x=Uy(i);Jf(i,x,v);break;case 5:var E=u.stateNode;u.flags&32&&(Uo(E,""),u.flags&=-33);var k=Uy(i);Jf(i,k,E);break;case 3:case 4:var U=u.stateNode.containerInfo,Z=Uy(i);Vy(i,Z,U);break;default:throw Error(r(161))}}catch(te){et(i,i.return,te)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function $_(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;$_(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function yi(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)P_(i,o.alternate,o),o=o.sibling}function Za(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:Ji(4,o,o.return),Za(o);break;case 1:zr(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&T_(o,o.return,u),Za(o);break;case 27:mu(o.stateNode);case 26:case 5:zr(o,o.return),Za(o);break;case 22:o.memoizedState===null&&Za(o);break;case 30:Za(o);break;default:Za(o)}i=i.sibling}}function vi(i,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,v=i,x=o,E=x.flags;switch(x.tag){case 0:case 11:case 15:vi(v,x,u),au(4,x);break;case 1:if(vi(v,x,u),h=x,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(Z){et(h,h.return,Z)}if(h=x,v=h.updateQueue,v!==null){var k=h.stateNode;try{var U=v.shared.hiddenCallbacks;if(U!==null)for(v.shared.hiddenCallbacks=null,v=0;v<U.length;v++)mO(U[v],k)}catch(Z){et(h,h.return,Z)}}u&&E&64&&__(x),ou(x,x.return);break;case 27:C_(x);case 26:case 5:vi(v,x,u),u&&h===null&&E&4&&E_(x),ou(x,x.return);break;case 12:vi(v,x,u);break;case 31:vi(v,x,u),u&&E&4&&k_(v,x);break;case 13:vi(v,x,u),u&&E&4&&L_(v,x);break;case 22:x.memoizedState===null&&vi(v,x,u),ou(x,x.return);break;case 30:break;default:vi(v,x,u)}o=o.sibling}}function Gy(i,o){var u=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(u=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==u&&(i!=null&&i.refCount++,u!=null&&Fl(u))}function Fy(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Fl(i))}function xr(i,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)B_(i,o,u,h),o=o.sibling}function B_(i,o,u,h){var v=o.flags;switch(o.tag){case 0:case 11:case 15:xr(i,o,u,h),v&2048&&au(9,o);break;case 1:xr(i,o,u,h);break;case 3:xr(i,o,u,h),v&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&Fl(i)));break;case 12:if(v&2048){xr(i,o,u,h),i=o.stateNode;try{var x=o.memoizedProps,E=x.id,k=x.onPostCommit;typeof k=="function"&&k(E,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(U){et(o,o.return,U)}}else xr(i,o,u,h);break;case 31:xr(i,o,u,h);break;case 13:xr(i,o,u,h);break;case 23:break;case 22:x=o.stateNode,E=o.alternate,o.memoizedState!==null?x._visibility&2?xr(i,o,u,h):su(i,o):x._visibility&2?xr(i,o,u,h):(x._visibility|=2,ls(i,o,u,h,(o.subtreeFlags&10256)!==0||!1)),v&2048&&Gy(E,o);break;case 24:xr(i,o,u,h),v&2048&&Fy(o.alternate,o);break;default:xr(i,o,u,h)}}function ls(i,o,u,h,v){for(v=v&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var x=i,E=o,k=u,U=h,Z=E.flags;switch(E.tag){case 0:case 11:case 15:ls(x,E,k,U,v),au(8,E);break;case 23:break;case 22:var te=E.stateNode;E.memoizedState!==null?te._visibility&2?ls(x,E,k,U,v):su(x,E):(te._visibility|=2,ls(x,E,k,U,v)),v&&Z&2048&&Gy(E.alternate,E);break;case 24:ls(x,E,k,U,v),v&&Z&2048&&Fy(E.alternate,E);break;default:ls(x,E,k,U,v)}o=o.sibling}}function su(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=i,h=o,v=h.flags;switch(h.tag){case 22:su(u,h),v&2048&&Gy(h.alternate,h);break;case 24:su(u,h),v&2048&&Fy(h.alternate,h);break;default:su(u,h)}o=o.sibling}}var lu=8192;function us(i,o,u){if(i.subtreeFlags&lu)for(i=i.child;i!==null;)q_(i,o,u),i=i.sibling}function q_(i,o,u){switch(i.tag){case 26:us(i,o,u),i.flags&lu&&i.memoizedState!==null&&V6(u,gr,i.memoizedState,i.memoizedProps);break;case 5:us(i,o,u);break;case 3:case 4:var h=gr;gr=pd(i.stateNode.containerInfo),us(i,o,u),gr=h;break;case 22:i.memoizedState===null&&(h=i.alternate,h!==null&&h.memoizedState!==null?(h=lu,lu=16777216,us(i,o,u),lu=h):us(i,o,u));break;default:us(i,o,u)}}function I_(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function uu(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,V_(h,i)}I_(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)U_(i),i=i.sibling}function U_(i){switch(i.tag){case 0:case 11:case 15:uu(i),i.flags&2048&&Ji(9,i,i.return);break;case 3:uu(i);break;case 12:uu(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,td(i)):uu(i);break;default:uu(i)}}function td(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Wt=h,V_(h,i)}I_(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:Ji(8,o,o.return),td(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,td(o));break;default:td(o)}i=i.sibling}}function V_(i,o){for(;Wt!==null;){var u=Wt;switch(u.tag){case 0:case 11:case 15:Ji(8,u,o);break;case 23:case 22:if(u.memoizedState!==null&&u.memoizedState.cachePool!==null){var h=u.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:Fl(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Wt=h;else e:for(u=i;Wt!==null;){h=Wt;var v=h.sibling,x=h.return;if(R_(h),h===u){Wt=null;break e}if(v!==null){v.return=x,Wt=v;break e}Wt=x}}}var i6={getCacheForType:function(i){var o=nn(Rt),u=o.data.get(i);return u===void 0&&(u=i(),o.data.set(i,u)),u},cacheSignal:function(){return nn(Rt).controller.signal}},a6=typeof WeakMap=="function"?WeakMap:Map,Ke=0,lt=null,$e=null,Ie=0,Je=0,Ln=null,ea=!1,cs=!1,Ky=!1,gi=0,Tt=0,ta=0,Qa=0,Yy=0,zn=0,fs=0,cu=null,_n=null,Xy=!1,nd=0,H_=0,rd=1/0,id=null,na=null,It=0,ra=null,ds=null,xi=0,Wy=0,Zy=null,G_=null,fu=0,Qy=null;function $n(){return(Ke&2)!==0&&Ie!==0?Ie&-Ie:$.T!==null?iv():sA()}function F_(){if(zn===0)if((Ie&536870912)===0||Ve){var i=df;df<<=1,(df&3932160)===0&&(df=262144),zn=i}else zn=536870912;return i=Dn.current,i!==null&&(i.flags|=32),zn}function Tn(i,o,u){(i===lt&&(Je===2||Je===9)||i.cancelPendingCommit!==null)&&(hs(i,0),ia(i,Ie,zn,!1)),Pl(i,u),((Ke&2)===0||i!==lt)&&(i===lt&&((Ke&2)===0&&(Qa|=u),Tt===4&&ia(i,Ie,zn,!1)),$r(i))}function K_(i,o,u){if((Ke&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&i.expiredLanes)===0||Ml(i,o),v=h?l6(i,o):ev(i,o,!0),x=h;do{if(v===0){cs&&!h&&ia(i,o,0,!1);break}else{if(u=i.current.alternate,x&&!o6(u)){v=ev(i,o,!1),x=!1;continue}if(v===2){if(x=o,i.errorRecoveryDisabledLanes&x)var E=0;else E=i.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){o=E;e:{var k=i;v=cu;var U=k.current.memoizedState.isDehydrated;if(U&&(hs(k,E).flags|=256),E=ev(k,E,!1),E!==2){if(Ky&&!U){k.errorRecoveryDisabledLanes|=x,Qa|=x,v=4;break e}x=_n,_n=v,x!==null&&(_n===null?_n=x:_n.push.apply(_n,x))}v=E}if(x=!1,v!==2)continue}}if(v===1){hs(i,0),ia(i,o,0,!0);break}e:{switch(h=i,x=v,x){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:ia(h,o,zn,!ea);break e;case 2:_n=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(v=nd+300-cn(),10<v)){if(ia(h,o,zn,!ea),pf(h,0,!0)!==0)break e;xi=o,h.timeoutHandle=A2(Y_.bind(null,h,u,_n,id,Xy,o,zn,Qa,fs,ea,x,"Throttled",-0,0),v);break e}Y_(h,u,_n,id,Xy,o,zn,Qa,fs,ea,x,null,-0,0)}}break}while(!0);$r(i)}function Y_(i,o,u,h,v,x,E,k,U,Z,te,oe,J,ee){if(i.timeoutHandle=-1,oe=o.subtreeFlags,oe&8192||(oe&16785408)===16785408){oe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ii},q_(o,x,oe);var me=(x&62914560)===x?nd-cn():(x&4194048)===x?H_-cn():0;if(me=H6(oe,me),me!==null){xi=x,i.cancelPendingCommit=me(n2.bind(null,i,o,x,u,h,v,E,k,U,te,oe,null,J,ee)),ia(i,x,E,!Z);return}}n2(i,o,x,u,h,v,E,k,U)}function o6(i){for(var o=i;;){var u=o.tag;if((u===0||u===11||u===15)&&o.flags&16384&&(u=o.updateQueue,u!==null&&(u=u.stores,u!==null)))for(var h=0;h<u.length;h++){var v=u[h],x=v.getSnapshot;v=v.value;try{if(!Pn(x(),v))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ia(i,o,u,h){o&=~Yy,o&=~Qa,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var v=o;0<v;){var x=31-Mn(v),E=1<<x;h[x]=-1,v&=~E}u!==0&&iA(i,u,o)}function ad(){return(Ke&6)===0?(du(0),!1):!0}function Jy(){if($e!==null){if(Je===0)var i=$e.return;else i=$e,li=Va=null,my(i),rs=null,Yl=0,i=$e;for(;i!==null;)O_(i.alternate,i),i=i.return;$e=null}}function hs(i,o){var u=i.timeoutHandle;u!==-1&&(i.timeoutHandle=-1,_6(u)),u=i.cancelPendingCommit,u!==null&&(i.cancelPendingCommit=null,u()),xi=0,Jy(),lt=i,$e=u=oi(i.current,null),Ie=o,Je=0,Ln=null,ea=!1,cs=Ml(i,o),Ky=!1,fs=zn=Yy=Qa=ta=Tt=0,_n=cu=null,Xy=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var v=31-Mn(h),x=1<<v;o|=i[v],h&=~x}return gi=o,_f(),u}function X_(i,o){Re=null,$.H=nu,o===ns||o===Df?(o=fO(),Je=3):o===ry?(o=fO(),Je=4):Je=o===My?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Ln=o,$e===null&&(Tt=1,Yf(i,Zn(o,i.current)))}function W_(){var i=Dn.current;return i===null?!0:(Ie&4194048)===Ie?tr===null:(Ie&62914560)===Ie||(Ie&536870912)!==0?i===tr:!1}function Z_(){var i=$.H;return $.H=nu,i===null?nu:i}function Q_(){var i=$.A;return $.A=i6,i}function od(){Tt=4,ea||(Ie&4194048)!==Ie&&Dn.current!==null||(cs=!0),(ta&134217727)===0&&(Qa&134217727)===0||lt===null||ia(lt,Ie,zn,!1)}function ev(i,o,u){var h=Ke;Ke|=2;var v=Z_(),x=Q_();(lt!==i||Ie!==o)&&(id=null,hs(i,o)),o=!1;var E=Tt;e:do try{if(Je!==0&&$e!==null){var k=$e,U=Ln;switch(Je){case 8:Jy(),E=6;break e;case 3:case 2:case 9:case 6:Dn.current===null&&(o=!0);var Z=Je;if(Je=0,Ln=null,ps(i,k,U,Z),u&&cs){E=0;break e}break;default:Z=Je,Je=0,Ln=null,ps(i,k,U,Z)}}s6(),E=Tt;break}catch(te){X_(i,te)}while(!0);return o&&i.shellSuspendCounter++,li=Va=null,Ke=h,$.H=v,$.A=x,$e===null&&(lt=null,Ie=0,_f()),E}function s6(){for(;$e!==null;)J_($e)}function l6(i,o){var u=Ke;Ke|=2;var h=Z_(),v=Q_();lt!==i||Ie!==o?(id=null,rd=cn()+500,hs(i,o)):cs=Ml(i,o);e:do try{if(Je!==0&&$e!==null){o=$e;var x=Ln;t:switch(Je){case 1:Je=0,Ln=null,ps(i,o,x,1);break;case 2:case 9:if(uO(x)){Je=0,Ln=null,e2(o);break}o=function(){Je!==2&&Je!==9||lt!==i||(Je=7),$r(i)},x.then(o,o);break e;case 3:Je=7;break e;case 4:Je=5;break e;case 7:uO(x)?(Je=0,Ln=null,e2(o)):(Je=0,Ln=null,ps(i,o,x,7));break;case 5:var E=null;switch($e.tag){case 26:E=$e.memoizedState;case 5:case 27:var k=$e;if(E?B2(E):k.stateNode.complete){Je=0,Ln=null;var U=k.sibling;if(U!==null)$e=U;else{var Z=k.return;Z!==null?($e=Z,sd(Z)):$e=null}break t}}Je=0,Ln=null,ps(i,o,x,5);break;case 6:Je=0,Ln=null,ps(i,o,x,6);break;case 8:Jy(),Tt=6;break e;default:throw Error(r(462))}}u6();break}catch(te){X_(i,te)}while(!0);return li=Va=null,$.H=h,$.A=v,Ke=u,$e!==null?0:(lt=null,Ie=0,_f(),Tt)}function u6(){for(;$e!==null&&!ni();)J_($e)}function J_(i){var o=j_(i.alternate,i,gi);i.memoizedProps=i.pendingProps,o===null?sd(i):$e=o}function e2(i){var o=i,u=o.alternate;switch(o.tag){case 15:case 0:o=v_(u,o,o.pendingProps,o.type,void 0,Ie);break;case 11:o=v_(u,o,o.pendingProps,o.type.render,o.ref,Ie);break;case 5:my(o);default:O_(u,o),o=$e=QA(o,gi),o=j_(u,o,gi)}i.memoizedProps=i.pendingProps,o===null?sd(i):$e=o}function ps(i,o,u,h){li=Va=null,my(o),rs=null,Yl=0;var v=o.return;try{if(Z5(i,v,o,u,Ie)){Tt=1,Yf(i,Zn(u,i.current)),$e=null;return}}catch(x){if(v!==null)throw $e=v,x;Tt=1,Yf(i,Zn(u,i.current)),$e=null;return}o.flags&32768?(Ve||h===1?i=!0:cs||(Ie&536870912)!==0?i=!1:(ea=i=!0,(h===2||h===9||h===3||h===6)&&(h=Dn.current,h!==null&&h.tag===13&&(h.flags|=16384))),t2(o,i)):sd(o)}function sd(i){var o=i;do{if((o.flags&32768)!==0){t2(o,ea);return}i=o.return;var u=e6(o.alternate,o,gi);if(u!==null){$e=u;return}if(o=o.sibling,o!==null){$e=o;return}$e=o=i}while(o!==null);Tt===0&&(Tt=5)}function t2(i,o){do{var u=t6(i.alternate,i);if(u!==null){u.flags&=32767,$e=u;return}if(u=i.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(i=i.sibling,i!==null)){$e=i;return}$e=i=u}while(i!==null);Tt=6,$e=null}function n2(i,o,u,h,v,x,E,k,U){i.cancelPendingCommit=null;do ld();while(It!==0);if((Ke&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(x=o.lanes|o.childLanes,x|=Um,UB(i,u,x,E,k,U),i===lt&&($e=lt=null,Ie=0),ds=o,ra=i,xi=u,Wy=x,Zy=v,G_=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,h6(cf,function(){return s2(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=$.T,$.T=null,v=F.p,F.p=2,E=Ke,Ke|=4;try{n6(i,o,u)}finally{Ke=E,F.p=v,$.T=h}}It=1,r2(),i2(),a2()}}function r2(){if(It===1){It=0;var i=ra,o=ds,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=$.T,$.T=null;var h=F.p;F.p=2;var v=Ke;Ke|=4;try{z_(o,i);var x=dv,E=VA(i.containerInfo),k=x.focusedElem,U=x.selectionRange;if(E!==k&&k&&k.ownerDocument&&UA(k.ownerDocument.documentElement,k)){if(U!==null&&zm(k)){var Z=U.start,te=U.end;if(te===void 0&&(te=Z),"selectionStart"in k)k.selectionStart=Z,k.selectionEnd=Math.min(te,k.value.length);else{var oe=k.ownerDocument||document,J=oe&&oe.defaultView||window;if(J.getSelection){var ee=J.getSelection(),me=k.textContent.length,Ae=Math.min(U.start,me),ot=U.end===void 0?Ae:Math.min(U.end,me);!ee.extend&&Ae>ot&&(E=ot,ot=Ae,Ae=E);var K=IA(k,Ae),V=IA(k,ot);if(K&&V&&(ee.rangeCount!==1||ee.anchorNode!==K.node||ee.anchorOffset!==K.offset||ee.focusNode!==V.node||ee.focusOffset!==V.offset)){var W=oe.createRange();W.setStart(K.node,K.offset),ee.removeAllRanges(),Ae>ot?(ee.addRange(W),ee.extend(V.node,V.offset)):(W.setEnd(V.node,V.offset),ee.addRange(W))}}}}for(oe=[],ee=k;ee=ee.parentNode;)ee.nodeType===1&&oe.push({element:ee,left:ee.scrollLeft,top:ee.scrollTop});for(typeof k.focus=="function"&&k.focus(),k=0;k<oe.length;k++){var ae=oe[k];ae.element.scrollLeft=ae.left,ae.element.scrollTop=ae.top}}bd=!!fv,dv=fv=null}finally{Ke=v,F.p=h,$.T=u}}i.current=o,It=2}}function i2(){if(It===2){It=0;var i=ra,o=ds,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=$.T,$.T=null;var h=F.p;F.p=2;var v=Ke;Ke|=4;try{P_(i,o.alternate,o)}finally{Ke=v,F.p=h,$.T=u}}It=3}}function a2(){if(It===4||It===3){It=0,Nl();var i=ra,o=ds,u=xi,h=G_;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?It=5:(It=0,ds=ra=null,o2(i,i.pendingLanes));var v=i.pendingLanes;if(v===0&&(na=null),gm(u),o=o.stateNode,Cn&&typeof Cn.onCommitFiberRoot=="function")try{Cn.onCommitFiberRoot(Cl,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=$.T,v=F.p,F.p=2,$.T=null;try{for(var x=i.onRecoverableError,E=0;E<h.length;E++){var k=h[E];x(k.value,{componentStack:k.stack})}}finally{$.T=o,F.p=v}}(xi&3)!==0&&ld(),$r(i),v=i.pendingLanes,(u&261930)!==0&&(v&42)!==0?i===Qy?fu++:(fu=0,Qy=i):fu=0,du(0)}}function o2(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,Fl(o)))}function ld(){return r2(),i2(),a2(),s2()}function s2(){if(It!==5)return!1;var i=ra,o=Wy;Wy=0;var u=gm(xi),h=$.T,v=F.p;try{F.p=32>u?32:u,$.T=null,u=Zy,Zy=null;var x=ra,E=xi;if(It=0,ds=ra=null,xi=0,(Ke&6)!==0)throw Error(r(331));var k=Ke;if(Ke|=4,U_(x.current),B_(x,x.current,E,u),Ke=k,du(0,!1),Cn&&typeof Cn.onPostCommitFiberRoot=="function")try{Cn.onPostCommitFiberRoot(Cl,x)}catch{}return!0}finally{F.p=v,$.T=h,o2(i,o)}}function l2(i,o,u){o=Zn(u,o),o=Cy(i.stateNode,o,2),i=Wi(i,o,2),i!==null&&(Pl(i,2),$r(i))}function et(i,o,u){if(i.tag===3)l2(i,i,u);else for(;o!==null;){if(o.tag===3){l2(o,i,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(na===null||!na.has(h))){i=Zn(u,i),u=u_(2),h=Wi(o,u,2),h!==null&&(c_(u,h,o,i),Pl(h,2),$r(h));break}}o=o.return}}function tv(i,o,u){var h=i.pingCache;if(h===null){h=i.pingCache=new a6;var v=new Set;h.set(o,v)}else v=h.get(o),v===void 0&&(v=new Set,h.set(o,v));v.has(u)||(Ky=!0,v.add(u),i=c6.bind(null,i,o,u),o.then(i,i))}function c6(i,o,u){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&u,i.warmLanes&=~u,lt===i&&(Ie&u)===u&&(Tt===4||Tt===3&&(Ie&62914560)===Ie&&300>cn()-nd?(Ke&2)===0&&hs(i,0):Yy|=u,fs===Ie&&(fs=0)),$r(i)}function u2(i,o){o===0&&(o=rA()),i=qa(i,o),i!==null&&(Pl(i,o),$r(i))}function f6(i){var o=i.memoizedState,u=0;o!==null&&(u=o.retryLane),u2(i,u)}function d6(i,o){var u=0;switch(i.tag){case 31:case 13:var h=i.stateNode,v=i.memoizedState;v!==null&&(u=v.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),u2(i,u)}function h6(i,o){return qi(i,o)}var ud=null,ms=null,nv=!1,cd=!1,rv=!1,aa=0;function $r(i){i!==ms&&i.next===null&&(ms===null?ud=ms=i:ms=ms.next=i),cd=!0,nv||(nv=!0,m6())}function du(i,o){if(!rv&&cd){rv=!0;do for(var u=!1,h=ud;h!==null;){if(i!==0){var v=h.pendingLanes;if(v===0)var x=0;else{var E=h.suspendedLanes,k=h.pingedLanes;x=(1<<31-Mn(42|i)+1)-1,x&=v&~(E&~k),x=x&201326741?x&201326741|1:x?x|2:0}x!==0&&(u=!0,h2(h,x))}else x=Ie,x=pf(h,h===lt?x:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(x&3)===0||Ml(h,x)||(u=!0,h2(h,x));h=h.next}while(u);rv=!1}}function p6(){c2()}function c2(){cd=nv=!1;var i=0;aa!==0&&O6()&&(i=aa);for(var o=cn(),u=null,h=ud;h!==null;){var v=h.next,x=f2(h,o);x===0?(h.next=null,u===null?ud=v:u.next=v,v===null&&(ms=u)):(u=h,(i!==0||(x&3)!==0)&&(cd=!0)),h=v}It!==0&&It!==5||du(i),aa!==0&&(aa=0)}function f2(i,o){for(var u=i.suspendedLanes,h=i.pingedLanes,v=i.expirationTimes,x=i.pendingLanes&-62914561;0<x;){var E=31-Mn(x),k=1<<E,U=v[E];U===-1?((k&u)===0||(k&h)!==0)&&(v[E]=IB(k,o)):U<=o&&(i.expiredLanes|=k),x&=~k}if(o=lt,u=Ie,u=pf(i,i===o?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,u===0||i===o&&(Je===2||Je===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&yr(h),i.callbackNode=null,i.callbackPriority=0;if((u&3)===0||Ml(i,u)){if(o=u&-u,o===i.callbackPriority)return o;switch(h!==null&&yr(h),gm(u)){case 2:case 8:u=tA;break;case 32:u=cf;break;case 268435456:u=nA;break;default:u=cf}return h=d2.bind(null,i),u=qi(u,h),i.callbackPriority=o,i.callbackNode=u,o}return h!==null&&h!==null&&yr(h),i.callbackPriority=2,i.callbackNode=null,2}function d2(i,o){if(It!==0&&It!==5)return i.callbackNode=null,i.callbackPriority=0,null;var u=i.callbackNode;if(ld()&&i.callbackNode!==u)return null;var h=Ie;return h=pf(i,i===lt?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(K_(i,h,o),f2(i,cn()),i.callbackNode!=null&&i.callbackNode===u?d2.bind(null,i):null)}function h2(i,o){if(ld())return null;K_(i,o,!0)}function m6(){T6(function(){(Ke&6)!==0?qi(eA,p6):c2()})}function iv(){if(aa===0){var i=es;i===0&&(i=ff,ff<<=1,(ff&261888)===0&&(ff=256)),aa=i}return aa}function p2(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:gf(""+i)}function m2(i,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,i.id&&u.setAttribute("form",i.id),o.parentNode.insertBefore(u,o),i=new FormData(i),u.parentNode.removeChild(u),i}function y6(i,o,u,h,v){if(o==="submit"&&u&&u.stateNode===v){var x=p2((v[Sn]||null).action),E=h.submitter;E&&(o=(o=E[Sn]||null)?p2(o.formAction):E.getAttribute("formAction"),o!==null&&(x=o,E=null));var k=new wf("action","action",null,h,v);i.push({event:k,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(aa!==0){var U=E?m2(v,E):new FormData(v);Ay(u,{pending:!0,data:U,method:v.method,action:x},null,U)}}else typeof x=="function"&&(k.preventDefault(),U=E?m2(v,E):new FormData(v),Ay(u,{pending:!0,data:U,method:v.method,action:x},x,U))},currentTarget:v}]})}}for(var av=0;av<Im.length;av++){var ov=Im[av],v6=ov.toLowerCase(),g6=ov[0].toUpperCase()+ov.slice(1);vr(v6,"on"+g6)}vr(FA,"onAnimationEnd"),vr(KA,"onAnimationIteration"),vr(YA,"onAnimationStart"),vr("dblclick","onDoubleClick"),vr("focusin","onFocus"),vr("focusout","onBlur"),vr(D5,"onTransitionRun"),vr(k5,"onTransitionStart"),vr(L5,"onTransitionCancel"),vr(XA,"onTransitionEnd"),qo("onMouseEnter",["mouseout","mouseover"]),qo("onMouseLeave",["mouseout","mouseover"]),qo("onPointerEnter",["pointerout","pointerover"]),qo("onPointerLeave",["pointerout","pointerover"]),La("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),La("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),La("onBeforeInput",["compositionend","keypress","textInput","paste"]),La("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),La("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var hu="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(" "),x6=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(hu));function y2(i,o){o=(o&4)!==0;for(var u=0;u<i.length;u++){var h=i[u],v=h.event;h=h.listeners;e:{var x=void 0;if(o)for(var E=h.length-1;0<=E;E--){var k=h[E],U=k.instance,Z=k.currentTarget;if(k=k.listener,U!==x&&v.isPropagationStopped())break e;x=k,v.currentTarget=Z;try{x(v)}catch(te){Of(te)}v.currentTarget=null,x=U}else for(E=0;E<h.length;E++){if(k=h[E],U=k.instance,Z=k.currentTarget,k=k.listener,U!==x&&v.isPropagationStopped())break e;x=k,v.currentTarget=Z;try{x(v)}catch(te){Of(te)}v.currentTarget=null,x=U}}}}function Be(i,o){var u=o[xm];u===void 0&&(u=o[xm]=new Set);var h=i+"__bubble";u.has(h)||(v2(o,i,2,!1),u.add(h))}function sv(i,o,u){var h=0;o&&(h|=4),v2(u,i,h,o)}var fd="_reactListening"+Math.random().toString(36).slice(2);function lv(i){if(!i[fd]){i[fd]=!0,cA.forEach(function(u){u!=="selectionchange"&&(x6.has(u)||sv(u,!1,i),sv(u,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[fd]||(o[fd]=!0,sv("selectionchange",!1,o))}}function v2(i,o,u,h){switch(F2(o)){case 2:var v=K6;break;case 8:v=Y6;break;default:v=jv}u=v.bind(null,o,u,i),v=void 0,!Em||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(v=!0),h?v!==void 0?i.addEventListener(o,u,{capture:!0,passive:v}):i.addEventListener(o,u,!0):v!==void 0?i.addEventListener(o,u,{passive:v}):i.addEventListener(o,u,!1)}function uv(i,o,u,h,v){var x=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var E=h.tag;if(E===3||E===4){var k=h.stateNode.containerInfo;if(k===v)break;if(E===4)for(E=h.return;E!==null;){var U=E.tag;if((U===3||U===4)&&E.stateNode.containerInfo===v)return;E=E.return}for(;k!==null;){if(E=zo(k),E===null)return;if(U=E.tag,U===5||U===6||U===26||U===27){h=x=E;continue e}k=k.parentNode}}h=h.return}wA(function(){var Z=x,te=_m(u),oe=[];e:{var J=WA.get(i);if(J!==void 0){var ee=wf,me=i;switch(i){case"keypress":if(bf(u)===0)break e;case"keydown":case"keyup":ee=d5;break;case"focusin":me="focus",ee=Pm;break;case"focusout":me="blur",ee=Pm;break;case"beforeblur":case"afterblur":ee=Pm;break;case"click":if(u.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ee=OA;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ee=e5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ee=m5;break;case FA:case KA:case YA:ee=r5;break;case XA:ee=v5;break;case"scroll":case"scrollend":ee=QB;break;case"wheel":ee=x5;break;case"copy":case"cut":case"paste":ee=a5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ee=TA;break;case"toggle":case"beforetoggle":ee=S5}var Ae=(o&4)!==0,ot=!Ae&&(i==="scroll"||i==="scrollend"),K=Ae?J!==null?J+"Capture":null:J;Ae=[];for(var V=Z,W;V!==null;){var ae=V;if(W=ae.stateNode,ae=ae.tag,ae!==5&&ae!==26&&ae!==27||W===null||K===null||(ae=kl(V,K),ae!=null&&Ae.push(pu(V,ae,W))),ot)break;V=V.return}0<Ae.length&&(J=new ee(J,me,null,u,te),oe.push({event:J,listeners:Ae}))}}if((o&7)===0){e:{if(J=i==="mouseover"||i==="pointerover",ee=i==="mouseout"||i==="pointerout",J&&u!==Om&&(me=u.relatedTarget||u.fromElement)&&(zo(me)||me[Lo]))break e;if((ee||J)&&(J=te.window===te?te:(J=te.ownerDocument)?J.defaultView||J.parentWindow:window,ee?(me=u.relatedTarget||u.toElement,ee=Z,me=me?zo(me):null,me!==null&&(ot=s(me),Ae=me.tag,me!==ot||Ae!==5&&Ae!==27&&Ae!==6)&&(me=null)):(ee=null,me=Z),ee!==me)){if(Ae=OA,ae="onMouseLeave",K="onMouseEnter",V="mouse",(i==="pointerout"||i==="pointerover")&&(Ae=TA,ae="onPointerLeave",K="onPointerEnter",V="pointer"),ot=ee==null?J:Dl(ee),W=me==null?J:Dl(me),J=new Ae(ae,V+"leave",ee,u,te),J.target=ot,J.relatedTarget=W,ae=null,zo(te)===Z&&(Ae=new Ae(K,V+"enter",me,u,te),Ae.target=W,Ae.relatedTarget=ot,ae=Ae),ot=ae,ee&&me)t:{for(Ae=b6,K=ee,V=me,W=0,ae=K;ae;ae=Ae(ae))W++;ae=0;for(var we=V;we;we=Ae(we))ae++;for(;0<W-ae;)K=Ae(K),W--;for(;0<ae-W;)V=Ae(V),ae--;for(;W--;){if(K===V||V!==null&&K===V.alternate){Ae=K;break t}K=Ae(K),V=Ae(V)}Ae=null}else Ae=null;ee!==null&&g2(oe,J,ee,Ae,!1),me!==null&&ot!==null&&g2(oe,ot,me,Ae,!0)}}e:{if(J=Z?Dl(Z):window,ee=J.nodeName&&J.nodeName.toLowerCase(),ee==="select"||ee==="input"&&J.type==="file")var He=kA;else if(RA(J))if(LA)He=M5;else{He=N5;var xe=E5}else ee=J.nodeName,!ee||ee.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?Z&&Am(Z.elementType)&&(He=kA):He=C5;if(He&&(He=He(i,Z))){DA(oe,He,u,te);break e}xe&&xe(i,J,Z),i==="focusout"&&Z&&J.type==="number"&&Z.memoizedProps.value!=null&&jm(J,"number",J.value)}switch(xe=Z?Dl(Z):window,i){case"focusin":(RA(xe)||xe.contentEditable==="true")&&(Fo=xe,$m=Z,Vl=null);break;case"focusout":Vl=$m=Fo=null;break;case"mousedown":Bm=!0;break;case"contextmenu":case"mouseup":case"dragend":Bm=!1,HA(oe,u,te);break;case"selectionchange":if(R5)break;case"keydown":case"keyup":HA(oe,u,te)}var ke;if(Dm)e:{switch(i){case"compositionstart":var Ue="onCompositionStart";break e;case"compositionend":Ue="onCompositionEnd";break e;case"compositionupdate":Ue="onCompositionUpdate";break e}Ue=void 0}else Go?MA(i,u)&&(Ue="onCompositionEnd"):i==="keydown"&&u.keyCode===229&&(Ue="onCompositionStart");Ue&&(EA&&u.locale!=="ko"&&(Go||Ue!=="onCompositionStart"?Ue==="onCompositionEnd"&&Go&&(ke=jA()):(Vi=te,Nm="value"in Vi?Vi.value:Vi.textContent,Go=!0)),xe=dd(Z,Ue),0<xe.length&&(Ue=new _A(Ue,i,null,u,te),oe.push({event:Ue,listeners:xe}),ke?Ue.data=ke:(ke=PA(u),ke!==null&&(Ue.data=ke)))),(ke=j5?A5(i,u):O5(i,u))&&(Ue=dd(Z,"onBeforeInput"),0<Ue.length&&(xe=new _A("onBeforeInput","beforeinput",null,u,te),oe.push({event:xe,listeners:Ue}),xe.data=ke)),y6(oe,i,Z,u,te)}y2(oe,o)})}function pu(i,o,u){return{instance:i,listener:o,currentTarget:u}}function dd(i,o){for(var u=o+"Capture",h=[];i!==null;){var v=i,x=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||x===null||(v=kl(i,u),v!=null&&h.unshift(pu(i,v,x)),v=kl(i,o),v!=null&&h.push(pu(i,v,x))),i.tag===3)return h;i=i.return}return[]}function b6(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function g2(i,o,u,h,v){for(var x=o._reactName,E=[];u!==null&&u!==h;){var k=u,U=k.alternate,Z=k.stateNode;if(k=k.tag,U!==null&&U===h)break;k!==5&&k!==26&&k!==27||Z===null||(U=Z,v?(Z=kl(u,x),Z!=null&&E.unshift(pu(u,Z,U))):v||(Z=kl(u,x),Z!=null&&E.push(pu(u,Z,U)))),u=u.return}E.length!==0&&i.push({event:o,listeners:E})}var S6=/\r\n?/g,w6=/\u0000|\uFFFD/g;function x2(i){return(typeof i=="string"?i:""+i).replace(S6,`
`).replace(w6,"")}function b2(i,o){return o=x2(o),x2(i)===o}function at(i,o,u,h,v,x){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Uo(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Uo(i,""+h);break;case"className":yf(i,"class",h);break;case"tabIndex":yf(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":yf(i,u,h);break;case"style":bA(i,h,x);break;case"data":if(o!=="object"){yf(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){i.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=gf(""+h),i.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(u,"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 x=="function"&&(u==="formAction"?(o!=="input"&&at(i,o,"name",v.name,v,null),at(i,o,"formEncType",v.formEncType,v,null),at(i,o,"formMethod",v.formMethod,v,null),at(i,o,"formTarget",v.formTarget,v,null)):(at(i,o,"encType",v.encType,v,null),at(i,o,"method",v.method,v,null),at(i,o,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(u);break}h=gf(""+h),i.setAttribute(u,h);break;case"onClick":h!=null&&(i.onclick=ii);break;case"onScroll":h!=null&&Be("scroll",i);break;case"onScrollEnd":h!=null&&Be("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}u=gf(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",u);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""+h):i.removeAttribute(u);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":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,""):i.removeAttribute(u);break;case"capture":case"download":h===!0?i.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(u,h):i.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(u,h):i.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(u):i.setAttribute(u,h);break;case"popover":Be("beforetoggle",i),Be("toggle",i),mf(i,"popover",h);break;case"xlinkActuate":ri(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ri(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ri(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ri(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ri(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ri(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ri(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ri(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ri(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":mf(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<u.length)||u[0]!=="o"&&u[0]!=="O"||u[1]!=="n"&&u[1]!=="N")&&(u=WB.get(u)||u,mf(i,u,h))}}function cv(i,o,u,h,v,x){switch(u){case"style":bA(i,h,x);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(v.children!=null)throw Error(r(60));i.innerHTML=u}}break;case"children":typeof h=="string"?Uo(i,h):(typeof h=="number"||typeof h=="bigint")&&Uo(i,""+h);break;case"onScroll":h!=null&&Be("scroll",i);break;case"onScrollEnd":h!=null&&Be("scrollend",i);break;case"onClick":h!=null&&(i.onclick=ii);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fA.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(v=u.endsWith("Capture"),o=u.slice(2,v?u.length-7:void 0),x=i[Sn]||null,x=x!=null?x[u]:null,typeof x=="function"&&i.removeEventListener(o,x,v),typeof h=="function")){typeof x!="function"&&x!==null&&(u in i?i[u]=null:i.hasAttribute(u)&&i.removeAttribute(u)),i.addEventListener(o,h,v);break e}u in i?i[u]=h:h===!0?i.setAttribute(u,""):mf(i,u,h)}}}function an(i,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",i),Be("load",i);var h=!1,v=!1,x;for(x in u)if(u.hasOwnProperty(x)){var E=u[x];if(E!=null)switch(x){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:at(i,o,x,E,u,null)}}v&&at(i,o,"srcSet",u.srcSet,u,null),h&&at(i,o,"src",u.src,u,null);return;case"input":Be("invalid",i);var k=x=E=v=null,U=null,Z=null;for(h in u)if(u.hasOwnProperty(h)){var te=u[h];if(te!=null)switch(h){case"name":v=te;break;case"type":E=te;break;case"checked":U=te;break;case"defaultChecked":Z=te;break;case"value":x=te;break;case"defaultValue":k=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,o));break;default:at(i,o,h,te,u,null)}}yA(i,x,k,U,Z,E,v,!1);return;case"select":Be("invalid",i),h=E=x=null;for(v in u)if(u.hasOwnProperty(v)&&(k=u[v],k!=null))switch(v){case"value":x=k;break;case"defaultValue":E=k;break;case"multiple":h=k;default:at(i,o,v,k,u,null)}o=x,u=E,i.multiple=!!h,o!=null?Io(i,!!h,o,!1):u!=null&&Io(i,!!h,u,!0);return;case"textarea":Be("invalid",i),x=v=h=null;for(E in u)if(u.hasOwnProperty(E)&&(k=u[E],k!=null))switch(E){case"value":h=k;break;case"defaultValue":v=k;break;case"children":x=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:at(i,o,E,k,u,null)}gA(i,h,v,x);return;case"option":for(U in u)if(u.hasOwnProperty(U)&&(h=u[U],h!=null))switch(U){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:at(i,o,U,h,u,null)}return;case"dialog":Be("beforetoggle",i),Be("toggle",i),Be("cancel",i),Be("close",i);break;case"iframe":case"object":Be("load",i);break;case"video":case"audio":for(h=0;h<hu.length;h++)Be(hu[h],i);break;case"image":Be("error",i),Be("load",i);break;case"details":Be("toggle",i);break;case"embed":case"source":case"link":Be("error",i),Be("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Z in u)if(u.hasOwnProperty(Z)&&(h=u[Z],h!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:at(i,o,Z,h,u,null)}return;default:if(Am(o)){for(te in u)u.hasOwnProperty(te)&&(h=u[te],h!==void 0&&cv(i,o,te,h,u,void 0));return}}for(k in u)u.hasOwnProperty(k)&&(h=u[k],h!=null&&at(i,o,k,h,u,null))}function j6(i,o,u,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,x=null,E=null,k=null,U=null,Z=null,te=null;for(ee in u){var oe=u[ee];if(u.hasOwnProperty(ee)&&oe!=null)switch(ee){case"checked":break;case"value":break;case"defaultValue":U=oe;default:h.hasOwnProperty(ee)||at(i,o,ee,null,h,oe)}}for(var J in h){var ee=h[J];if(oe=u[J],h.hasOwnProperty(J)&&(ee!=null||oe!=null))switch(J){case"type":x=ee;break;case"name":v=ee;break;case"checked":Z=ee;break;case"defaultChecked":te=ee;break;case"value":E=ee;break;case"defaultValue":k=ee;break;case"children":case"dangerouslySetInnerHTML":if(ee!=null)throw Error(r(137,o));break;default:ee!==oe&&at(i,o,J,ee,h,oe)}}wm(i,E,k,U,Z,te,x,v);return;case"select":ee=E=k=J=null;for(x in u)if(U=u[x],u.hasOwnProperty(x)&&U!=null)switch(x){case"value":break;case"multiple":ee=U;default:h.hasOwnProperty(x)||at(i,o,x,null,h,U)}for(v in h)if(x=h[v],U=u[v],h.hasOwnProperty(v)&&(x!=null||U!=null))switch(v){case"value":J=x;break;case"defaultValue":k=x;break;case"multiple":E=x;default:x!==U&&at(i,o,v,x,h,U)}o=k,u=E,h=ee,J!=null?Io(i,!!u,J,!1):!!h!=!!u&&(o!=null?Io(i,!!u,o,!0):Io(i,!!u,u?[]:"",!1));return;case"textarea":ee=J=null;for(k in u)if(v=u[k],u.hasOwnProperty(k)&&v!=null&&!h.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:at(i,o,k,null,h,v)}for(E in h)if(v=h[E],x=u[E],h.hasOwnProperty(E)&&(v!=null||x!=null))switch(E){case"value":J=v;break;case"defaultValue":ee=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(r(91));break;default:v!==x&&at(i,o,E,v,h,x)}vA(i,J,ee);return;case"option":for(var me in u)if(J=u[me],u.hasOwnProperty(me)&&J!=null&&!h.hasOwnProperty(me))switch(me){case"selected":i.selected=!1;break;default:at(i,o,me,null,h,J)}for(U in h)if(J=h[U],ee=u[U],h.hasOwnProperty(U)&&J!==ee&&(J!=null||ee!=null))switch(U){case"selected":i.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:at(i,o,U,J,h,ee)}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 Ae in u)J=u[Ae],u.hasOwnProperty(Ae)&&J!=null&&!h.hasOwnProperty(Ae)&&at(i,o,Ae,null,h,J);for(Z in h)if(J=h[Z],ee=u[Z],h.hasOwnProperty(Z)&&J!==ee&&(J!=null||ee!=null))switch(Z){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,o));break;default:at(i,o,Z,J,h,ee)}return;default:if(Am(o)){for(var ot in u)J=u[ot],u.hasOwnProperty(ot)&&J!==void 0&&!h.hasOwnProperty(ot)&&cv(i,o,ot,void 0,h,J);for(te in h)J=h[te],ee=u[te],!h.hasOwnProperty(te)||J===ee||J===void 0&&ee===void 0||cv(i,o,te,J,h,ee);return}}for(var K in u)J=u[K],u.hasOwnProperty(K)&&J!=null&&!h.hasOwnProperty(K)&&at(i,o,K,null,h,J);for(oe in h)J=h[oe],ee=u[oe],!h.hasOwnProperty(oe)||J===ee||J==null&&ee==null||at(i,o,oe,J,h,ee)}function S2(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function A6(){if(typeof performance.getEntriesByType=="function"){for(var i=0,o=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var v=u[h],x=v.transferSize,E=v.initiatorType,k=v.duration;if(x&&k&&S2(E)){for(E=0,k=v.responseEnd,h+=1;h<u.length;h++){var U=u[h],Z=U.startTime;if(Z>k)break;var te=U.transferSize,oe=U.initiatorType;te&&S2(oe)&&(U=U.responseEnd,E+=te*(U<k?1:(k-Z)/(U-Z)))}if(--h,o+=8*(x+E)/(v.duration/1e3),i++,10<i)break}}if(0<i)return o/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var fv=null,dv=null;function hd(i){return i.nodeType===9?i:i.ownerDocument}function w2(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function j2(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function hv(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var pv=null;function O6(){var i=window.event;return i&&i.type==="popstate"?i===pv?!1:(pv=i,!0):(pv=null,!1)}var A2=typeof setTimeout=="function"?setTimeout:void 0,_6=typeof clearTimeout=="function"?clearTimeout:void 0,O2=typeof Promise=="function"?Promise:void 0,T6=typeof queueMicrotask=="function"?queueMicrotask:typeof O2<"u"?function(i){return O2.resolve(null).then(i).catch(E6)}:A2;function E6(i){setTimeout(function(){throw i})}function oa(i){return i==="head"}function _2(i,o){var u=o,h=0;do{var v=u.nextSibling;if(i.removeChild(u),v&&v.nodeType===8)if(u=v.data,u==="/$"||u==="/&"){if(h===0){i.removeChild(v),xs(o);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")mu(i.ownerDocument.documentElement);else if(u==="head"){u=i.ownerDocument.head,mu(u);for(var x=u.firstChild;x;){var E=x.nextSibling,k=x.nodeName;x[Rl]||k==="SCRIPT"||k==="STYLE"||k==="LINK"&&x.rel.toLowerCase()==="stylesheet"||u.removeChild(x),x=E}}else u==="body"&&mu(i.ownerDocument.body);u=v}while(u);xs(o)}function T2(i,o){var u=i;i=0;do{var h=u.nextSibling;if(u.nodeType===1?o?(u._stashedDisplay=u.style.display,u.style.display="none"):(u.style.display=u._stashedDisplay||"",u.getAttribute("style")===""&&u.removeAttribute("style")):u.nodeType===3&&(o?(u._stashedText=u.nodeValue,u.nodeValue=""):u.nodeValue=u._stashedText||""),h&&h.nodeType===8)if(u=h.data,u==="/$"){if(i===0)break;i--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||i++;u=h}while(u)}function mv(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var u=o;switch(o=o.nextSibling,u.nodeName){case"HTML":case"HEAD":case"BODY":mv(u),bm(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}i.removeChild(u)}}function N6(i,o,u,h){for(;i.nodeType===1;){var v=u;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Rl])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(x=i.getAttribute("rel"),x==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(x!==v.rel||i.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||i.getAttribute("title")!==(v.title==null?null:v.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(x=i.getAttribute("src"),(x!==(v.src==null?null:v.src)||i.getAttribute("type")!==(v.type==null?null:v.type)||i.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&x&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var x=v.name==null?null:""+v.name;if(v.type==="hidden"&&i.getAttribute("name")===x)return i}else return i;if(i=nr(i.nextSibling),i===null)break}return null}function C6(i,o,u){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!u||(i=nr(i.nextSibling),i===null))return null;return i}function E2(i,o){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=nr(i.nextSibling),i===null))return null;return i}function yv(i){return i.data==="$?"||i.data==="$~"}function vv(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function M6(i,o){var u=i.ownerDocument;if(i.data==="$~")i._reactRetry=o;else if(i.data!=="$?"||u.readyState!=="loading")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function nr(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return i}var gv=null;function N2(i){i=i.nextSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="/$"||u==="/&"){if(o===0)return nr(i.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}i=i.nextSibling}return null}function C2(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var u=i.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return i;o--}else u!=="/$"&&u!=="/&"||o++}i=i.previousSibling}return null}function M2(i,o,u){switch(o=hd(u),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function mu(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);bm(i)}var rr=new Map,P2=new Set;function pd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var bi=F.d;F.d={f:P6,r:R6,D:D6,C:k6,L:L6,m:z6,X:B6,S:$6,M:q6};function P6(){var i=bi.f(),o=ad();return i||o}function R6(i){var o=$o(i);o!==null&&o.tag===5&&o.type==="form"?XO(o):bi.r(i)}var ys=typeof document>"u"?null:document;function R2(i,o,u){var h=ys;if(h&&typeof o=="string"&&o){var v=Xn(o);v='link[rel="'+i+'"][href="'+v+'"]',typeof u=="string"&&(v+='[crossorigin="'+u+'"]'),P2.has(v)||(P2.add(v),i={rel:i,crossOrigin:u,href:o},h.querySelector(v)===null&&(o=h.createElement("link"),an(o,"link",i),Xt(o),h.head.appendChild(o)))}}function D6(i){bi.D(i),R2("dns-prefetch",i,null)}function k6(i,o){bi.C(i,o),R2("preconnect",i,o)}function L6(i,o,u){bi.L(i,o,u);var h=ys;if(h&&i&&o){var v='link[rel="preload"][as="'+Xn(o)+'"]';o==="image"&&u&&u.imageSrcSet?(v+='[imagesrcset="'+Xn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(v+='[imagesizes="'+Xn(u.imageSizes)+'"]')):v+='[href="'+Xn(i)+'"]';var x=v;switch(o){case"style":x=vs(i);break;case"script":x=gs(i)}rr.has(x)||(i=y({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:i,as:o},u),rr.set(x,i),h.querySelector(v)!==null||o==="style"&&h.querySelector(yu(x))||o==="script"&&h.querySelector(vu(x))||(o=h.createElement("link"),an(o,"link",i),Xt(o),h.head.appendChild(o)))}}function z6(i,o){bi.m(i,o);var u=ys;if(u&&i){var h=o&&typeof o.as=="string"?o.as:"script",v='link[rel="modulepreload"][as="'+Xn(h)+'"][href="'+Xn(i)+'"]',x=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":x=gs(i)}if(!rr.has(x)&&(i=y({rel:"modulepreload",href:i},o),rr.set(x,i),u.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(vu(x)))return}h=u.createElement("link"),an(h,"link",i),Xt(h),u.head.appendChild(h)}}}function $6(i,o,u){bi.S(i,o,u);var h=ys;if(h&&i){var v=Bo(h).hoistableStyles,x=vs(i);o=o||"default";var E=v.get(x);if(!E){var k={loading:0,preload:null};if(E=h.querySelector(yu(x)))k.loading=5;else{i=y({rel:"stylesheet",href:i,"data-precedence":o},u),(u=rr.get(x))&&xv(i,u);var U=E=h.createElement("link");Xt(U),an(U,"link",i),U._p=new Promise(function(Z,te){U.onload=Z,U.onerror=te}),U.addEventListener("load",function(){k.loading|=1}),U.addEventListener("error",function(){k.loading|=2}),k.loading|=4,md(E,o,h)}E={type:"stylesheet",instance:E,count:1,state:k},v.set(x,E)}}}function B6(i,o){bi.X(i,o);var u=ys;if(u&&i){var h=Bo(u).hoistableScripts,v=gs(i),x=h.get(v);x||(x=u.querySelector(vu(v)),x||(i=y({src:i,async:!0},o),(o=rr.get(v))&&bv(i,o),x=u.createElement("script"),Xt(x),an(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(v,x))}}function q6(i,o){bi.M(i,o);var u=ys;if(u&&i){var h=Bo(u).hoistableScripts,v=gs(i),x=h.get(v);x||(x=u.querySelector(vu(v)),x||(i=y({src:i,async:!0,type:"module"},o),(o=rr.get(v))&&bv(i,o),x=u.createElement("script"),Xt(x),an(x,"link",i),u.head.appendChild(x)),x={type:"script",instance:x,count:1,state:null},h.set(v,x))}}function D2(i,o,u,h){var v=(v=je.current)?pd(v):null;if(!v)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=vs(u.href),u=Bo(v).hoistableStyles,h=u.get(o),h||(h={type:"style",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(u.rel==="stylesheet"&&typeof u.href=="string"&&typeof u.precedence=="string"){i=vs(u.href);var x=Bo(v).hoistableStyles,E=x.get(i);if(E||(v=v.ownerDocument||v,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},x.set(i,E),(x=v.querySelector(yu(i)))&&!x._p&&(E.instance=x,E.state.loading=5),rr.has(i)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},rr.set(i,u),x||I6(v,i,u,E.state))),o&&h===null)throw Error(r(528,""));return E}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=u.async,u=u.src,typeof u=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=gs(u),u=Bo(v).hoistableScripts,h=u.get(o),h||(h={type:"script",instance:null,count:0,state:null},u.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function vs(i){return'href="'+Xn(i)+'"'}function yu(i){return'link[rel="stylesheet"]['+i+"]"}function k2(i){return y({},i,{"data-precedence":i.precedence,precedence:null})}function I6(i,o,u,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),an(o,"link",u),Xt(o),i.head.appendChild(o))}function gs(i){return'[src="'+Xn(i)+'"]'}function vu(i){return"script[async]"+i}function L2(i,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Xn(u.href)+'"]');if(h)return o.instance=h,Xt(h),h;var v=y({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),Xt(h),an(h,"style",v),md(h,u.precedence,i),o.instance=h;case"stylesheet":v=vs(u.href);var x=i.querySelector(yu(v));if(x)return o.state.loading|=4,o.instance=x,Xt(x),x;h=k2(u),(v=rr.get(v))&&xv(h,v),x=(i.ownerDocument||i).createElement("link"),Xt(x);var E=x;return E._p=new Promise(function(k,U){E.onload=k,E.onerror=U}),an(x,"link",h),o.state.loading|=4,md(x,u.precedence,i),o.instance=x;case"script":return x=gs(u.src),(v=i.querySelector(vu(x)))?(o.instance=v,Xt(v),v):(h=u,(v=rr.get(x))&&(h=y({},u),bv(h,v)),i=i.ownerDocument||i,v=i.createElement("script"),Xt(v),an(v,"link",h),i.head.appendChild(v),o.instance=v);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,md(h,u.precedence,i));return o.instance}function md(i,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,x=v,E=0;E<h.length;E++){var k=h[E];if(k.dataset.precedence===o)x=k;else if(x!==v)break}x?x.parentNode.insertBefore(i,x.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(i,o.firstChild))}function xv(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function bv(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var yd=null;function z2(i,o,u){if(yd===null){var h=new Map,v=yd=new Map;v.set(u,h)}else v=yd,h=v.get(u),h||(h=new Map,v.set(u,h));if(h.has(i))return h;for(h.set(i,null),u=u.getElementsByTagName(i),v=0;v<u.length;v++){var x=u[v];if(!(x[Rl]||x[en]||i==="link"&&x.getAttribute("rel")==="stylesheet")&&x.namespaceURI!=="http://www.w3.org/2000/svg"){var E=x.getAttribute(o)||"";E=i+E;var k=h.get(E);k?k.push(x):h.set(E,[x])}}return h}function $2(i,o,u){i=i.ownerDocument||i,i.head.insertBefore(u,o==="title"?i.querySelector("head > title"):null)}function U6(i,o,u){if(u===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function B2(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function V6(i,o,u,h){if(u.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(u.state.loading&4)===0){if(u.instance===null){var v=vs(h.href),x=o.querySelector(yu(v));if(x){o=x._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(i.count++,i=vd.bind(i),o.then(i,i)),u.state.loading|=4,u.instance=x,Xt(x);return}x=o.ownerDocument||o,h=k2(h),(v=rr.get(v))&&xv(h,v),x=x.createElement("link"),Xt(x);var E=x;E._p=new Promise(function(k,U){E.onload=k,E.onerror=U}),an(x,"link",h),u.instance=x}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(i.count++,u=vd.bind(i),o.addEventListener("load",u),o.addEventListener("error",u))}}var Sv=0;function H6(i,o){return i.stylesheets&&i.count===0&&xd(i,i.stylesheets),0<i.count||0<i.imgCount?function(u){var h=setTimeout(function(){if(i.stylesheets&&xd(i,i.stylesheets),i.unsuspend){var x=i.unsuspend;i.unsuspend=null,x()}},6e4+o);0<i.imgBytes&&Sv===0&&(Sv=62500*A6());var v=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&xd(i,i.stylesheets),i.unsuspend)){var x=i.unsuspend;i.unsuspend=null,x()}},(i.imgBytes>Sv?50:800)+o);return i.unsuspend=u,function(){i.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function vd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)xd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var gd=null;function xd(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,gd=new Map,o.forEach(G6,i),gd=null,vd.call(i))}function G6(i,o){if(!(o.state.loading&4)){var u=gd.get(i);if(u)var h=u.get(null);else{u=new Map,gd.set(i,u);for(var v=i.querySelectorAll("link[data-precedence],style[data-precedence]"),x=0;x<v.length;x++){var E=v[x];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(u.set(E.dataset.precedence,E),h=E)}h&&u.set(null,h)}v=o.instance,E=v.getAttribute("data-precedence"),x=u.get(E)||h,x===h&&u.set(null,v),u.set(E,v),this.count++,h=vd.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),x?x.parentNode.insertBefore(v,x.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(v,i.firstChild)),o.state.loading|=4}}var gu={$$typeof:T,Provider:null,Consumer:null,_currentValue:Q,_currentValue2:Q,_threadCount:0};function F6(i,o,u,h,v,x,E,k,U){this.tag=1,this.containerInfo=i,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=ym(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ym(0),this.hiddenUpdates=ym(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=x,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function q2(i,o,u,h,v,x,E,k,U,Z,te,oe){return i=new F6(i,o,u,E,U,Z,te,oe,k),o=1,x===!0&&(o|=24),x=Rn(3,null,null,o),i.current=x,x.stateNode=i,o=ey(),o.refCount++,i.pooledCache=o,o.refCount++,x.memoizedState={element:h,isDehydrated:u,cache:o},iy(x),i}function I2(i){return i?(i=Xo,i):Xo}function U2(i,o,u,h,v,x){v=I2(v),h.context===null?h.context=v:h.pendingContext=v,h=Xi(o),h.payload={element:u},x=x===void 0?null:x,x!==null&&(h.callback=x),u=Wi(i,h,o),u!==null&&(Tn(u,i,o),Wl(u,i,o))}function V2(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var u=i.retryLane;i.retryLane=u!==0&&u<o?u:o}}function wv(i,o){V2(i,o),(i=i.alternate)&&V2(i,o)}function H2(i){if(i.tag===13||i.tag===31){var o=qa(i,67108864);o!==null&&Tn(o,i,67108864),wv(i,67108864)}}function G2(i){if(i.tag===13||i.tag===31){var o=$n();o=vm(o);var u=qa(i,o);u!==null&&Tn(u,i,o),wv(i,o)}}var bd=!0;function K6(i,o,u,h){var v=$.T;$.T=null;var x=F.p;try{F.p=2,jv(i,o,u,h)}finally{F.p=x,$.T=v}}function Y6(i,o,u,h){var v=$.T;$.T=null;var x=F.p;try{F.p=8,jv(i,o,u,h)}finally{F.p=x,$.T=v}}function jv(i,o,u,h){if(bd){var v=Av(h);if(v===null)uv(i,o,h,Sd,u),K2(i,h);else if(W6(v,i,o,u,h))h.stopPropagation();else if(K2(i,h),o&4&&-1<X6.indexOf(i)){for(;v!==null;){var x=$o(v);if(x!==null)switch(x.tag){case 3:if(x=x.stateNode,x.current.memoizedState.isDehydrated){var E=ka(x.pendingLanes);if(E!==0){var k=x;for(k.pendingLanes|=2,k.entangledLanes|=2;E;){var U=1<<31-Mn(E);k.entanglements[1]|=U,E&=~U}$r(x),(Ke&6)===0&&(rd=cn()+500,du(0))}}break;case 31:case 13:k=qa(x,2),k!==null&&Tn(k,x,2),ad(),wv(x,2)}if(x=Av(h),x===null&&uv(i,o,h,Sd,u),x===v)break;v=x}v!==null&&h.stopPropagation()}else uv(i,o,h,null,u)}}function Av(i){return i=_m(i),Ov(i)}var Sd=null;function Ov(i){if(Sd=null,i=zo(i),i!==null){var o=s(i);if(o===null)i=null;else{var u=o.tag;if(u===13){if(i=l(o),i!==null)return i;i=null}else if(u===31){if(i=c(o),i!==null)return i;i=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return Sd=i,null}function F2(i){switch(i){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(uf()){case eA:return 2;case tA:return 8;case cf:case kB:return 32;case nA:return 268435456;default:return 32}default:return 32}}var _v=!1,sa=null,la=null,ua=null,xu=new Map,bu=new Map,ca=[],X6="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 K2(i,o){switch(i){case"focusin":case"focusout":sa=null;break;case"dragenter":case"dragleave":la=null;break;case"mouseover":case"mouseout":ua=null;break;case"pointerover":case"pointerout":xu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":bu.delete(o.pointerId)}}function Su(i,o,u,h,v,x){return i===null||i.nativeEvent!==x?(i={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:x,targetContainers:[v]},o!==null&&(o=$o(o),o!==null&&H2(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,v!==null&&o.indexOf(v)===-1&&o.push(v),i)}function W6(i,o,u,h,v){switch(o){case"focusin":return sa=Su(sa,i,o,u,h,v),!0;case"dragenter":return la=Su(la,i,o,u,h,v),!0;case"mouseover":return ua=Su(ua,i,o,u,h,v),!0;case"pointerover":var x=v.pointerId;return xu.set(x,Su(xu.get(x)||null,i,o,u,h,v)),!0;case"gotpointercapture":return x=v.pointerId,bu.set(x,Su(bu.get(x)||null,i,o,u,h,v)),!0}return!1}function Y2(i){var o=zo(i.target);if(o!==null){var u=s(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){i.blockedOn=o,lA(i.priority,function(){G2(u)});return}}else if(o===31){if(o=c(u),o!==null){i.blockedOn=o,lA(i.priority,function(){G2(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){i.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}i.blockedOn=null}function wd(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var u=Av(i.nativeEvent);if(u===null){u=i.nativeEvent;var h=new u.constructor(u.type,u);Om=h,u.target.dispatchEvent(h),Om=null}else return o=$o(u),o!==null&&H2(o),i.blockedOn=u,!1;o.shift()}return!0}function X2(i,o,u){wd(i)&&u.delete(o)}function Z6(){_v=!1,sa!==null&&wd(sa)&&(sa=null),la!==null&&wd(la)&&(la=null),ua!==null&&wd(ua)&&(ua=null),xu.forEach(X2),bu.forEach(X2)}function jd(i,o){i.blockedOn===o&&(i.blockedOn=null,_v||(_v=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Z6)))}var Ad=null;function W2(i){Ad!==i&&(Ad=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ad===i&&(Ad=null);for(var o=0;o<i.length;o+=3){var u=i[o],h=i[o+1],v=i[o+2];if(typeof h!="function"){if(Ov(h||u)===null)continue;break}var x=$o(u);x!==null&&(i.splice(o,3),o-=3,Ay(x,{pending:!0,data:v,method:u.method,action:h},h,v))}}))}function xs(i){function o(U){return jd(U,i)}sa!==null&&jd(sa,i),la!==null&&jd(la,i),ua!==null&&jd(ua,i),xu.forEach(o),bu.forEach(o);for(var u=0;u<ca.length;u++){var h=ca[u];h.blockedOn===i&&(h.blockedOn=null)}for(;0<ca.length&&(u=ca[0],u.blockedOn===null);)Y2(u),u.blockedOn===null&&ca.shift();if(u=(i.ownerDocument||i).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var v=u[h],x=u[h+1],E=v[Sn]||null;if(typeof x=="function")E||W2(u);else if(E){var k=null;if(x&&x.hasAttribute("formAction")){if(v=x,E=x[Sn]||null)k=E.formAction;else if(Ov(v)!==null)continue}else k=E.action;typeof k=="function"?u[h+1]=k:(u.splice(h,3),h-=3),W2(u)}}}function Z2(){function i(x){x.canIntercept&&x.info==="react-transition"&&x.intercept({handler:function(){return new Promise(function(E){return v=E})},focusReset:"manual",scroll:"manual"})}function o(){v!==null&&(v(),v=null),h||setTimeout(u,20)}function u(){if(!h&&!navigation.transition){var x=navigation.currentEntry;x&&x.url!=null&&navigation.navigate(x.url,{state:x.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){h=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),v!==null&&(v(),v=null)}}}function Tv(i){this._internalRoot=i}Od.prototype.render=Tv.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=$n();U2(u,h,i,o,null,null)},Od.prototype.unmount=Tv.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;U2(i.current,2,null,i,null,null),ad(),o[Lo]=null}};function Od(i){this._internalRoot=i}Od.prototype.unstable_scheduleHydration=function(i){if(i){var o=sA();i={blockedOn:null,target:i,priority:o};for(var u=0;u<ca.length&&o!==0&&o<ca[u].priority;u++);ca.splice(u,0,i),u===0&&Y2(i)}};var Q2=t.version;if(Q2!=="19.2.7")throw Error(r(527,Q2,"19.2.7"));F.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=d(o),i=i!==null?m(i):null,i=i===null?null:i.stateNode,i};var Q6={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:$,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _d=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_d.isDisabled&&_d.supportsFiber)try{Cl=_d.inject(Q6),Cn=_d}catch{}}return ju.createRoot=function(i,o){if(!a(i))throw Error(r(299));var u=!1,h="",v=a_,x=o_,E=s_;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(v=o.onUncaughtError),o.onCaughtError!==void 0&&(x=o.onCaughtError),o.onRecoverableError!==void 0&&(E=o.onRecoverableError)),o=q2(i,1,!1,null,null,u,h,null,v,x,E,Z2),i[Lo]=o.current,lv(i),new Tv(o)},ju.hydrateRoot=function(i,o,u){if(!a(i))throw Error(r(299));var h=!1,v="",x=a_,E=o_,k=s_,U=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(v=u.identifierPrefix),u.onUncaughtError!==void 0&&(x=u.onUncaughtError),u.onCaughtError!==void 0&&(E=u.onCaughtError),u.onRecoverableError!==void 0&&(k=u.onRecoverableError),u.formState!==void 0&&(U=u.formState)),o=q2(i,1,!0,o,u??null,h,v,U,x,E,k,Z2),o.context=I2(null),u=o.current,h=$n(),h=vm(h),v=Xi(h),v.callback=null,Wi(u,v,h),u=h,o.current.lanes=u,Pl(o,u),$r(o),i[Lo]=o.current,lv(i),new Od(o)},ju.version="19.2.7",ju}var lT;function l8(){if(lT)return Cv.exports;lT=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Cv.exports=s8(),Cv.exports}var u8=l8();/**
* react-router v7.18.1
*
* 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 aw=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,Kk=/^[\\/]{2}/;function c8(e,t){return t+e.replace(/\\/g,"/")}var uT="popstate";function cT(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function f8(e={}){function t(r,a){var d;let s=(d=a.state)==null?void 0:d.masked,{pathname:l,search:c,hash:f}=s||r.location;return n1("",{pathname:l,search:c,hash:f},a.state&&a.state.usr||null,a.state&&a.state.key||"default",s?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:rc(a)}return h8(t,n,null,e)}function jt(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Nr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function d8(){return Math.random().toString(36).substring(2,10)}function fT(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 n1(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?pl(t):t,state:n,key:t&&t.key||r||d8(),mask:a}}function rc({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 pl(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 h8(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,c="POP",f=null,d=m();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function m(){return(l.state||{idx:null}).idx}function y(){c="POP";let b=m(),A=b==null?null:b-d;d=b,f&&f({action:c,location:j.location,delta:A})}function g(b,A){c="PUSH";let _=cT(b)?b:n1(j.location,b,A);d=m()+1;let T=fT(_,d),C=j.createHref(_.mask||_);try{l.pushState(T,"",C)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;a.location.assign(C)}s&&f&&f({action:c,location:j.location,delta:1})}function S(b,A){c="REPLACE";let _=cT(b)?b:n1(j.location,b,A);d=m();let T=fT(_,d),C=j.createHref(_.mask||_);l.replaceState(T,"",C),s&&f&&f({action:c,location:j.location,delta:0})}function w(b){return p8(a,b)}let j={get action(){return c},get location(){return e(a,l)},listen(b){if(f)throw new Error("A history only accepts one active listener");return a.addEventListener(uT,y),f=b,()=>{a.removeEventListener(uT,y),f=null}},createHref(b){return t(a,b)},createURL:w,encodeLocation(b){let A=w(b);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:g,replace:S,go(b){return l.go(b)}};return j}function p8(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),jt(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:rc(t);return a=a.replace(/ $/,"%20"),!n&&Kk.test(a)&&(a=r+a),new URL(a,r)}function Yk(e,t,n="/"){return m8(e,t,n,!1)}function m8(e,t,n,r,a){let s=typeof t=="string"?pl(t):t,l=Ci(s.pathname||"/",n);if(l==null)return null;let c=y8(e),f=null,d=T8(l);for(let m=0;f==null&&m<c.length;++m)f=_8(c[m],d,r);return f}function y8(e){let t=Xk(e);return v8(t),t}function Xk(e,t=[],n=[],r="",a=!1){let s=(l,c,f=a,d)=>{let m={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;jt(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let y=_r([r,m.relativePath]),g=n.concat(m);l.children&&l.children.length>0&&(jt(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${y}".`),Xk(l.children,t,g,y,f)),!(l.path==null&&!l.index)&&t.push({path:y,score:A8(y,l.index),routesMeta:g.map((S,w)=>{let[j,b]=Qk(S.relativePath,S.caseSensitive,w===g.length-1);return{...S,matcher:j,compiledParams:b}})})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))s(l,c);else for(let d of Wk(l.path))s(l,c,!0,d)}),t}function Wk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=Wk(r.join("/")),c=[];return c.push(...l.map(f=>f===""?s:[s,f].join("/"))),a&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function v8(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:O8(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var g8=/^:[\w-]+$/,x8=3,b8=2,S8=1,w8=10,j8=-2,dT=e=>e==="*";function A8(e,t){let n=e.split("/"),r=n.length;return n.some(dT)&&(r+=j8),t&&(r+=b8),n.filter(a=>!dT(a)).reduce((a,s)=>a+(g8.test(s)?x8:s===""?S8:w8),r)}function O8(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 _8(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,m=s==="/"?t:t.slice(s.length)||"/",y={path:f.relativePath,caseSensitive:f.caseSensitive,end:d},g=f.matcher&&f.compiledParams?Zk(y,m,f.matcher,f.compiledParams):uh(y,m),S=f.route;if(!g&&d&&n&&!r[r.length-1].route.index&&(g=uh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!g)return null;Object.assign(a,g.params),l.push({params:a,pathname:_r([s,g.pathname]),pathnameBase:C8(_r([s,g.pathnameBase])),route:S}),g.pathnameBase!=="/"&&(s=_r([s,g.pathnameBase]))}return l}function uh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Qk(e.path,e.caseSensitive,e.end);return Zk(e,t,n,r)}function Zk(e,t,n,r){let a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),c=a.slice(1);return{params:r.reduce((d,{paramName:m,isOptional:y},g)=>{if(m==="*"){let w=c[g]||"";l=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}const S=c[g];return y&&!S?d[m]=void 0:d[m]=(S||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function Qk(e,t=!1,n=!0){Nr(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,(l,c,f,d,m)=>{if(r.push({paramName:c,isOptional:f!=null}),f){let y=m.charAt(d+l.length);return y&&y!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}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 T8(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Nr(!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 Ci(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)||"/"}function E8(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?pl(e):e,s;return n?(n=Jk(n),n.startsWith("/")?s=hT(n.substring(1),"/"):s=hT(n,t)):s=t,{pathname:s,search:M8(r),hash:P8(a)}}function hT(e,t){let n=ch(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Dv(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 N8(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function ow(e){let t=N8(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Ap(e,t,n,r=!1){let a;typeof e=="string"?a=pl(e):(a={...e},jt(!a.pathname||!a.pathname.includes("?"),Dv("?","pathname","search",a)),jt(!a.pathname||!a.pathname.includes("#"),Dv("#","pathname","hash",a)),jt(!a.search||!a.search.includes("#"),Dv("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,c;if(l==null)c=n;else{let y=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),y-=1;a.pathname=g.join("/")}c=y>=0?t[y]:"/"}let f=E8(a,c),d=l&&l!=="/"&&l.endsWith("/"),m=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var Jk=e=>e.replace(/[\\/]{2,}/g,"/"),_r=e=>Jk(e.join("/")),ch=e=>e.replace(/\/+$/,""),C8=e=>ch(e).replace(/^\/*/,"/"),M8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,P8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,R8=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 D8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function k8(e){let t=e.map(n=>n.route.path).filter(Boolean);return _r(t)||"/"}var e3=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function t3(e,t){let n=e;if(typeof n!="string"||!aw.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(e3)try{let s=new URL(window.location.href),l=Kk.test(n)?new URL(c8(n,s.protocol)):new URL(n),c=Ci(l.pathname,t);l.origin===s.origin&&c!=null?n=c+l.search+l.hash:a=!0}catch{Nr(!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 n3=["POST","PUT","PATCH","DELETE"];new Set(n3);var L8=["GET",...n3];new Set(L8);var z8=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];function $8(e){try{return z8.includes(new URL(e).protocol)}catch{return!1}}var ml=P.createContext(null);ml.displayName="DataRouter";var Op=P.createContext(null);Op.displayName="DataRouterState";var r3=P.createContext(!1);function B8(){return P.useContext(r3)}var i3=P.createContext({isTransitioning:!1});i3.displayName="ViewTransition";var q8=P.createContext(new Map);q8.displayName="Fetchers";var I8=P.createContext(null);I8.displayName="Await";var Kn=P.createContext(null);Kn.displayName="Navigation";var Hc=P.createContext(null);Hc.displayName="Location";var Mr=P.createContext({outlet:null,matches:[],isDataRoute:!1});Mr.displayName="Route";var sw=P.createContext(null);sw.displayName="RouteError";var a3="REACT_ROUTER_ERROR",U8="REDIRECT",V8="ROUTE_ERROR_RESPONSE";function H8(e){if(e.startsWith(`${a3}:${U8}:{`))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 G8(e){if(e.startsWith(`${a3}:${V8}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new R8(t.status,t.statusText,t.data)}catch{}}function F8(e,{relative:t}={}){jt(yl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=P.useContext(Kn),{hash:a,pathname:s,search:l}=Gc(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:_r([n,s])),r.createHref({pathname:c,search:l,hash:a})}function yl(){return P.useContext(Hc)!=null}function Pr(){return jt(yl(),"useLocation() may be used only in the context of a <Router> component."),P.useContext(Hc).location}var o3="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function s3(e){P.useContext(Kn).static||P.useLayoutEffect(e)}function _p(){let{isDataRoute:e}=P.useContext(Mr);return e?sq():K8()}function K8(){jt(yl(),"useNavigate() may be used only in the context of a <Router> component.");let e=P.useContext(ml),{basename:t,navigator:n}=P.useContext(Kn),{matches:r}=P.useContext(Mr),{pathname:a}=Pr(),s=JSON.stringify(ow(r)),l=P.useRef(!1);return s3(()=>{l.current=!0}),P.useCallback((f,d={})=>{if(Nr(l.current,o3),!l.current)return;if(typeof f=="number"){n.go(f);return}let m=Ap(f,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:_r([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,s,a,e])}var Y8=P.createContext(null);function X8(e){let t=P.useContext(Mr).outlet;return P.useMemo(()=>t&&P.createElement(Y8.Provider,{value:e},t),[t,e])}function Gc(e,{relative:t}={}){let{matches:n}=P.useContext(Mr),{pathname:r}=Pr(),a=JSON.stringify(ow(n));return P.useMemo(()=>Ap(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function W8(e,t){return l3(e,t)}function l3(e,t,n){var b;jt(yl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=P.useContext(Kn),{matches:a}=P.useContext(Mr),s=a[a.length-1],l=s?s.params:{},c=s?s.pathname:"/",f=s?s.pathnameBase:"/",d=s&&s.route;{let A=d&&d.path||"";c3(c,!d||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let m=Pr(),y;if(t){let A=typeof t=="string"?pl(t):t;jt(f==="/"||((b=A.pathname)==null?void 0:b.startsWith(f)),`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 "${f}" but pathname "${A.pathname}" was given in the \`location\` prop.`),y=A}else y=m;let g=y.pathname||"/",S=g;if(f!=="/"){let A=f.replace(/^\//,"").split("/");S="/"+g.replace(/^\//,"").split("/").slice(A.length).join("/")}let w=n&&n.state.matches.length?n.state.matches.map(A=>Object.assign(A,{route:n.manifest[A.route.id]||A.route})):Yk(e,{pathname:S});Nr(d||w!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),Nr(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.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 j=tq(w&&w.map(A=>Object.assign({},A,{params:Object.assign({},l,A.params),pathname:_r([f,r.encodeLocation?r.encodeLocation(A.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?f:_r([f,r.encodeLocation?r.encodeLocation(A.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),a,n);return t&&j?P.createElement(Hc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...y},navigationType:"POP"}},j):j}function Z8(){let e=oq(),t=D8(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},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=P.createElement(P.Fragment,null,P.createElement("p",null,"💿 Hey developer 👋"),P.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",P.createElement("code",{style:s},"ErrorBoundary")," or"," ",P.createElement("code",{style:s},"errorElement")," prop on your route.")),P.createElement(P.Fragment,null,P.createElement("h2",null,"Unexpected Application Error!"),P.createElement("h3",{style:{fontStyle:"italic"}},t),n?P.createElement("pre",{style:a},n):null,l)}var Q8=P.createElement(Z8,null),u3=class extends P.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=G8(e.digest);n&&(e=n)}let t=e!==void 0?P.createElement(Mr.Provider,{value:this.props.routeContext},P.createElement(sw.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?P.createElement(J8,{error:e},t):t}};u3.contextType=r3;var kv=new WeakMap;function J8({children:e,error:t}){let{basename:n}=P.useContext(Kn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=H8(t.digest);if(r){let a=kv.get(t);if(a)throw a;let s=t3(r.location,n),l=s.absoluteURL||s.to;if($8(l))throw new Error("Invalid redirect location");if(e3&&!kv.get(t))if(s.isExternal||r.reloadDocument)window.location.href=l;else{const c=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(s.to,{replace:r.replace}));throw kv.set(t,c),c}return P.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l}`})}}return e}function eq({routeContext:e,match:t,children:n}){let r=P.useContext(ml);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),P.createElement(Mr.Provider,{value:e},n)}function tq(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,s=r==null?void 0:r.errors;if(s!=null){let m=a.findIndex(y=>y.route.id&&(s==null?void 0:s[y.route.id])!==void 0);jt(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let l=!1,c=-1;if(n&&r){l=r.renderFallback;for(let m=0;m<a.length;m++){let y=a[m];if((y.route.HydrateFallback||y.route.hydrateFallbackElement)&&(c=m),y.route.id){let{loaderData:g,errors:S}=r,w=y.route.loader&&!g.hasOwnProperty(y.route.id)&&(!S||S[y.route.id]===void 0);if(y.route.lazy||w){n.isStatic&&(l=!0),c>=0?a=a.slice(0,c+1):a=[a[0]];break}}}}let f=n==null?void 0:n.onError,d=r&&f?(m,y)=>{var g,S;f(m,{location:r.location,params:((S=(g=r.matches)==null?void 0:g[0])==null?void 0:S.params)??{},pattern:k8(r.matches),errorInfo:y})}:void 0;return a.reduceRight((m,y,g)=>{let S,w=!1,j=null,b=null;r&&(S=s&&y.route.id?s[y.route.id]:void 0,j=y.route.errorElement||Q8,l&&(c<0&&g===0?(c3("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,b=null):c===g&&(w=!0,b=y.route.hydrateFallbackElement||null)));let A=t.concat(a.slice(0,g+1)),_=()=>{let T;return S?T=j:w?T=b:y.route.Component?T=P.createElement(y.route.Component,null):y.route.element?T=y.route.element:T=m,P.createElement(eq,{match:y,routeContext:{outlet:m,matches:A,isDataRoute:r!=null},children:T})};return r&&(y.route.ErrorBoundary||y.route.errorElement||g===0)?P.createElement(u3,{location:r.location,revalidation:r.revalidation,component:j,error:S,children:_(),routeContext:{outlet:null,matches:A,isDataRoute:!0},onError:d}):_()},null)}function lw(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function nq(e){let t=P.useContext(ml);return jt(t,lw(e)),t}function rq(e){let t=P.useContext(Op);return jt(t,lw(e)),t}function iq(e){let t=P.useContext(Mr);return jt(t,lw(e)),t}function uw(e){let t=iq(e),n=t.matches[t.matches.length-1];return jt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function aq(){return uw("useRouteId")}function oq(){var r;let e=P.useContext(sw),t=rq("useRouteError"),n=uw("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function sq(){let{router:e}=nq("useNavigate"),t=uw("useNavigate"),n=P.useRef(!1);return s3(()=>{n.current=!0}),P.useCallback(async(a,s={})=>{Nr(n.current,o3),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var pT={};function c3(e,t,n){!t&&!pT[e]&&(pT[e]=!0,Nr(!1,n))}P.memo(lq);function lq({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:s}){return l3(e,void 0,{manifest:t,state:r,isStatic:a,onError:s})}function cw({to:e,replace:t,state:n,relative:r}){jt(yl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=P.useContext(Kn);Nr(!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:s}=P.useContext(Mr),{pathname:l}=Pr(),c=_p(),f=Ap(e,ow(s),l,r==="path"),d=JSON.stringify(f);return P.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function uq(e){return X8(e.context)}function dn(e){jt(!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 cq({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1,useTransitions:l}){jt(!yl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=P.useMemo(()=>({basename:c,navigator:a,static:s,useTransitions:l,future:{}}),[c,a,s,l]);typeof n=="string"&&(n=pl(n));let{pathname:d="/",search:m="",hash:y="",state:g=null,key:S="default",mask:w}=n,j=P.useMemo(()=>{let b=Ci(d,c);return b==null?null:{location:{pathname:b,search:m,hash:y,state:g,key:S,mask:w},navigationType:r}},[c,d,m,y,g,S,r,w]);return Nr(j!=null,`<Router basename="${c}"> is not able to match the URL "${d}${m}${y}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:P.createElement(Kn.Provider,{value:f},P.createElement(Hc.Provider,{children:t,value:j}))}function fq({children:e,location:t}){return W8(r1(e),t)}function r1(e,t=[]){let n=[];return P.Children.forEach(e,(r,a)=>{if(!P.isValidElement(r))return;let s=[...t,a];if(r.type===P.Fragment){n.push.apply(n,r1(r.props.children,s));return}jt(r.type===dn,`[${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>`),jt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.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&&(l.children=r1(r.props.children,s)),n.push(l)}),n}var Xd="get",Wd="application/x-www-form-urlencoded";function Tp(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function dq(e){return Tp(e)&&e.tagName.toLowerCase()==="button"}function hq(e){return Tp(e)&&e.tagName.toLowerCase()==="form"}function pq(e){return Tp(e)&&e.tagName.toLowerCase()==="input"}function mq(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function yq(e,t){return e.button===0&&(!t||t==="_self")&&!mq(e)}var Ed=null;function vq(){if(Ed===null)try{new FormData(document.createElement("form"),0),Ed=!1}catch{Ed=!0}return Ed}var gq=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Lv(e){return e!=null&&!gq.has(e)?(Nr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wd}"`),null):e}function xq(e,t){let n,r,a,s,l;if(hq(e)){let c=e.getAttribute("action");r=c?Ci(c,t):null,n=e.getAttribute("method")||Xd,a=Lv(e.getAttribute("enctype"))||Wd,s=new FormData(e)}else if(dq(e)||pq(e)&&(e.type==="submit"||e.type==="image")){let c=e.form;if(c==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||c.getAttribute("action");if(r=f?Ci(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||Xd,a=Lv(e.getAttribute("formenctype"))||Lv(c.getAttribute("enctype"))||Wd,s=new FormData(c,e),!vq()){let{name:d,type:m,value:y}=e;if(m==="image"){let g=d?`${d}.`:"";s.append(`${g}x`,"0"),s.append(`${g}y`,"0")}else d&&s.append(d,y)}}else{if(Tp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xd,r=null,a=Wd,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function fw(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function f3(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&&Ci(a.pathname,t)==="/"?a.pathname=`${ch(t)}/_root.${r}`:a.pathname=`${ch(a.pathname)}.${r}`,a}async function bq(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 Sq(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 wq(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await bq(s,n);return l.links?l.links():[]}return[]}));return _q(r.flat(1).filter(Sq).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function mT(e,t,n,r,a,s){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(f,d)=>{var m;return n[d].pathname!==f.pathname||((m=n[d].route.path)==null?void 0:m.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,d)=>l(f,d)||c(f,d)):s==="data"?t.filter((f,d)=>{var y;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(l(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let g=f.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((y=n[0])==null?void 0:y.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function jq(e,t,{includeHydrateFallback:n}={}){return Aq(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function Aq(e){return[...new Set(e)]}function Oq(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function _q(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(Oq(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}function dw(){let e=P.useContext(ml);return fw(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function Tq(){let e=P.useContext(Op);return fw(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var hw=P.createContext(void 0);hw.displayName="FrameworkContext";function Ep(){let e=P.useContext(hw);return fw(e,"You must render this element inside a <HydratedRouter> element"),e}function Eq(e,t){let n=P.useContext(hw),[r,a]=P.useState(!1),[s,l]=P.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:m,onTouchStart:y}=t,g=P.useRef(null);P.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let j=A=>{A.forEach(_=>{l(_.isIntersecting)})},b=new IntersectionObserver(j,{threshold:.5});return g.current&&b.observe(g.current),()=>{b.disconnect()}}},[e]),P.useEffect(()=>{if(r){let j=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(j)}}},[r]);let S=()=>{a(!0)},w=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,g,{}]:[s,g,{onFocus:Au(c,S),onBlur:Au(f,w),onMouseEnter:Au(d,S),onMouseLeave:Au(m,w),onTouchStart:Au(y,S)}]:[!1,g,{}]}function Au(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function Nq({page:e,...t}){let n=B8(),{nonce:r}=Ep(),{router:a}=dw(),s=P.useMemo(()=>Yk(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?(t.nonce==null&&r&&(t={...t,nonce:r}),n?P.createElement(Mq,{page:e,matches:s,...t}):P.createElement(Pq,{page:e,matches:s,...t})):null}function Cq(e){let{manifest:t,routeModules:n}=Ep(),[r,a]=P.useState([]);return P.useEffect(()=>{let s=!1;return wq(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function Mq({page:e,matches:t,...n}){let r=Pr(),{future:a}=Ep(),{basename:s}=dw(),l=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let c=f3(e,s,a.v8_trailingSlashAwareDataRequests,"rsc"),f=!1,d=[];for(let m of t)typeof m.route.shouldRevalidate=="function"?f=!0:d.push(m.route.id);return f&&d.length>0&&c.searchParams.set("_routes",d.join(",")),[c.pathname+c.search]},[s,a.v8_trailingSlashAwareDataRequests,e,r,t]);return P.createElement(P.Fragment,null,l.map(c=>P.createElement("link",{key:c,rel:"prefetch",as:"fetch",href:c,...n})))}function Pq({page:e,matches:t,...n}){let r=Pr(),{future:a,manifest:s,routeModules:l}=Ep(),{basename:c}=dw(),{loaderData:f,matches:d}=Tq(),m=P.useMemo(()=>mT(e,t,d,s,r,"data"),[e,t,d,s,r]),y=P.useMemo(()=>mT(e,t,d,s,r,"assets"),[e,t,d,s,r]),g=P.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let j=new Set,b=!1;if(t.forEach(_=>{var C;let T=s.routes[_.route.id];!T||!T.hasLoader||(!m.some(O=>O.route.id===_.route.id)&&_.route.id in f&&((C=l[_.route.id])!=null&&C.shouldRevalidate)||T.hasClientLoader?b=!0:j.add(_.route.id))}),j.size===0)return[];let A=f3(e,c,a.v8_trailingSlashAwareDataRequests,"data");return b&&j.size>0&&A.searchParams.set("_routes",t.filter(_=>j.has(_.route.id)).map(_=>_.route.id).join(",")),[A.pathname+A.search]},[c,a.v8_trailingSlashAwareDataRequests,f,r,s,m,t,e,l]),S=P.useMemo(()=>jq(y,s),[y,s]),w=Cq(y);return P.createElement(P.Fragment,null,g.map(j=>P.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...n})),S.map(j=>P.createElement("link",{key:j,rel:"modulepreload",href:j,...n})),w.map(({key:j,link:b})=>P.createElement("link",{key:j,nonce:n.nonce,...b,crossOrigin:b.crossOrigin??n.crossOrigin})))}function Rq(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Dq=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Dq&&(window.__reactRouterVersion="7.18.1")}catch{}function kq({basename:e,children:t,useTransitions:n,window:r}){let a=P.useRef();a.current==null&&(a.current=f8({window:r,v5Compat:!0}));let s=a.current,[l,c]=P.useState({action:s.action,location:s.location}),f=P.useCallback(d=>{n===!1?c(d):P.startTransition(()=>c(d))},[n]);return P.useLayoutEffect(()=>s.listen(f),[s,f]),P.createElement(cq,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:s,useTransitions:n})}var d3=P.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,mask:c,state:f,target:d,to:m,preventScrollReset:y,viewTransition:g,defaultShouldRevalidate:S,...w},j){let{basename:b,navigator:A,useTransitions:_}=P.useContext(Kn),T=typeof m=="string"&&aw.test(m),C=t3(m,b);m=C.to;let O=F8(m,{relative:a}),N=Pr(),M=null;if(c){let Y=Ap(c,[],N.mask?N.mask.pathname:"/",!0);b!=="/"&&(Y.pathname=Y.pathname==="/"?b:_r([b,Y.pathname])),M=A.createHref(Y)}let[R,D,B]=Eq(r,w),I=$q(m,{replace:l,mask:c,state:f,target:d,preventScrollReset:y,relative:a,viewTransition:g,defaultShouldRevalidate:S,useTransitions:_});function z(Y){t&&t(Y),Y.defaultPrevented||I(Y)}let H=!(C.isExternal||s),X=P.createElement("a",{...w,...B,href:(H?M:void 0)||C.absoluteURL||O,onClick:H?z:t,ref:Rq(j,D),target:d,"data-discover":!T&&n==="render"?"true":void 0});return R&&!T?P.createElement(P.Fragment,null,X,P.createElement(Nq,{page:O})):X});d3.displayName="Link";var h3=P.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:c,children:f,...d},m){let y=Gc(l,{relative:d.relative}),g=Pr(),S=P.useContext(Op),{navigator:w,basename:j}=P.useContext(Kn),b=S!=null&&Vq(y)&&c===!0,A=w.encodeLocation?w.encodeLocation(y).pathname:y.pathname,_=g.pathname,T=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;n||(_=_.toLowerCase(),T=T?T.toLowerCase():null,A=A.toLowerCase()),T&&j&&(T=Ci(T,j)||T);const C=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let O=_===A||!a&&_.startsWith(A)&&_.charAt(C)==="/",N=T!=null&&(T===A||!a&&T.startsWith(A)&&T.charAt(A.length)==="/"),M={isActive:O,isPending:N,isTransitioning:b},R=O?t:void 0,D;typeof r=="function"?D=r(M):D=[r,O?"active":null,N?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let B=typeof s=="function"?s(M):s;return P.createElement(d3,{...d,"aria-current":R,className:D,ref:m,style:B,to:l,viewTransition:c},typeof f=="function"?f(M):f)});h3.displayName="NavLink";var Lq=P.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=Xd,action:c,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:g,...S},w)=>{let{useTransitions:j}=P.useContext(Kn),b=Iq(),A=Uq(c,{relative:d}),_=l.toLowerCase()==="get"?"get":"post",T=typeof c=="string"&&aw.test(c),C=O=>{if(f&&f(O),O.defaultPrevented)return;O.preventDefault();let N=O.nativeEvent.submitter,M=(N==null?void 0:N.getAttribute("formmethod"))||l,R=()=>b(N||O.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:s,relative:d,preventScrollReset:m,viewTransition:y,defaultShouldRevalidate:g});j&&n!==!1?P.startTransition(()=>R()):R()};return P.createElement("form",{ref:w,method:_,action:A,onSubmit:r?f:C,...S,"data-discover":!T&&e==="render"?"true":void 0})});Lq.displayName="Form";function zq(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function p3(e){let t=P.useContext(ml);return jt(t,zq(e)),t}function $q(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:s,relative:l,viewTransition:c,defaultShouldRevalidate:f,useTransitions:d}={}){let m=_p(),y=Pr(),g=Gc(e,{relative:l});return P.useCallback(S=>{if(yq(S,t)){S.preventDefault();let w=n!==void 0?n:rc(y)===rc(g),j=()=>m(e,{replace:w,mask:r,state:a,preventScrollReset:s,relative:l,viewTransition:c,defaultShouldRevalidate:f});d?P.startTransition(()=>j()):j()}},[y,m,g,n,r,a,t,e,s,l,c,f,d])}var Bq=0,qq=()=>`__${String(++Bq)}__`;function Iq(){let{router:e}=p3("useSubmit"),{basename:t}=P.useContext(Kn),n=aq(),r=e.fetch,a=e.navigate;return P.useCallback(async(s,l={})=>{let{action:c,method:f,encType:d,formData:m,body:y}=xq(s,t);if(l.navigate===!1){let g=l.fetcherKey||qq();await r(g,n,l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||f,formEncType:l.encType||d,flushSync:l.flushSync})}else await a(l.action||c,{defaultShouldRevalidate:l.defaultShouldRevalidate,preventScrollReset:l.preventScrollReset,formData:m,body:y,formMethod:l.method||f,formEncType:l.encType||d,replace:l.replace,state:l.state,fromRouteId:n,flushSync:l.flushSync,viewTransition:l.viewTransition})},[r,a,t,n])}function Uq(e,{relative:t}={}){let{basename:n}=P.useContext(Kn),r=P.useContext(Mr);jt(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...Gc(e||".",{relative:t})},l=Pr();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(y=>y).forEach(y=>c.append("index",y));let m=c.toString();s.search=m?`?${m}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:_r([n,s.pathname])),rc(s)}function Vq(e,{relative:t}={}){let n=P.useContext(i3);jt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=p3("useViewTransitionState"),a=Gc(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ci(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ci(n.nextLocation.pathname,r)||n.nextLocation.pathname;return uh(a.pathname,l)!=null||uh(a.pathname,s)!=null}const yT=e=>{let t;const n=new Set,r=(d,m)=>{const y=typeof d=="function"?d(t):d;if(!Object.is(y,t)){const g=t;t=m??(typeof y!="object"||y===null)?y:Object.assign({},t,y),n.forEach(S=>S(t,g))}},a=()=>t,c={setState:r,getState:a,getInitialState:()=>f,subscribe:d=>(n.add(d),()=>n.delete(d))},f=t=e(r,a,c);return c},Hq=(e=>e?yT(e):yT),Gq=e=>e;function Fq(e,t=Gq){const n=q.useSyncExternalStore(e.subscribe,q.useCallback(()=>t(e.getState()),[e,t]),q.useCallback(()=>t(e.getInitialState()),[e,t]));return q.useDebugValue(n),n}const vT=e=>{const t=Hq(e),n=r=>Fq(t,r);return Object.assign(n,t),n},m3=(e=>e?vT(e):vT);function Kq(e,t){let n;try{n=e()}catch{return}return{getItem:a=>{var s;const l=f=>f===null?null:JSON.parse(f,void 0),c=(s=n.getItem(a))!=null?s:null;return c instanceof Promise?c.then(l):l(c)},setItem:(a,s)=>n.setItem(a,JSON.stringify(s,void 0)),removeItem:a=>n.removeItem(a)}}const i1=e=>t=>{try{const n=e(t);return n instanceof Promise?n:{then(r){return i1(r)(n)},catch(r){return this}}}catch(n){return{then(r){return this},catch(r){return i1(r)(n)}}}},Yq=(e,t)=>(n,r,a)=>{let s={storage:Kq(()=>window.localStorage),partialize:b=>b,version:0,merge:(b,A)=>({...A,...b}),...t},l=!1,c=0;const f=new Set,d=new Set;let m=s.storage;if(!m)return e((...b)=>{console.warn(`[zustand persist middleware] Unable to update item '${s.name}', the given storage is currently unavailable.`),n(...b)},r,a);const y=()=>{const b=s.partialize({...r()});return m.setItem(s.name,{state:b,version:s.version})},g=a.setState;a.setState=(b,A)=>(g(b,A),y());const S=e((...b)=>(n(...b),y()),r,a);a.getInitialState=()=>S;let w;const j=()=>{var b,A;if(!m)return;const _=++c;l=!1,f.forEach(C=>{var O;return C((O=r())!=null?O:S)});const T=((A=s.onRehydrateStorage)==null?void 0:A.call(s,(b=r())!=null?b:S))||void 0;return i1(m.getItem.bind(m))(s.name).then(C=>{if(C)if(typeof C.version=="number"&&C.version!==s.version){if(s.migrate){const O=s.migrate(C.state,C.version);return O instanceof Promise?O.then(N=>[!0,N]):[!0,O]}console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,C.state];return[!1,void 0]}).then(C=>{var O;if(_!==c)return;const[N,M]=C;if(w=s.merge(M,(O=r())!=null?O:S),n(w,!0),N)return y()}).then(()=>{_===c&&(T==null||T(r(),void 0),w=r(),l=!0,d.forEach(C=>C(w)))}).catch(C=>{_===c&&(T==null||T(void 0,C))})};return a.persist={setOptions:b=>{s={...s,...b},b.storage&&(m=b.storage)},clearStorage:()=>{m==null||m.removeItem(s.name)},getOptions:()=>s,rehydrate:()=>j(),hasHydrated:()=>l,onHydrate:b=>(f.add(b),()=>{f.delete(b)}),onFinishHydration:b=>(d.add(b),()=>{d.delete(b)})},s.skipHydration||j(),w||S},Xq=Yq,Fc=m3()(Xq(e=>({token:null,user:null,isAuthenticated:!1,isLoading:!1,login:(t,n)=>{localStorage.setItem("amos_token",t),e({token:t,user:n,isAuthenticated:!0})},logout:()=>{localStorage.removeItem("amos_token"),e({token:null,user:null,isAuthenticated:!1})},setUser:t=>e({user:t})}),{name:"amos-auth",partialize:e=>({token:e.token,user:e.user,isAuthenticated:e.isAuthenticated})})),pw=P.createContext({});function mw(e){const t=P.useRef(null);return t.current===null&&(t.current=e()),t.current}const Wq=typeof window<"u",yw=Wq?P.useLayoutEffect:P.useEffect,Np=P.createContext(null);function vw(e,t){e.indexOf(t)===-1&&e.push(t)}function fh(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Yr=(e,t,n)=>n>t?t:n<e?e:n;let gw=()=>{};const ja={},y3=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),v3=e=>typeof e=="object"&&e!==null,g3=e=>/^0[^.\s]+$/u.test(e);function x3(e){let t;return()=>(t===void 0&&(t=e()),t)}const fr=e=>e,Kc=(...e)=>e.reduce((t,n)=>r=>n(t(r))),ic=(e,t,n)=>{const r=t-e;return r?(n-e)/r:1};class xw{constructor(){this.subscriptions=[]}add(t){return vw(this.subscriptions,t),()=>fh(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 s=0;s<a;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Hn=e=>e*1e3,ur=e=>e/1e3,b3=(e,t)=>t?e*(1e3/t):0,S3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,Zq=1e-7,Qq=12;function Jq(e,t,n,r,a){let s,l,c=0;do l=t+(n-t)/2,s=S3(l,r,a)-e,s>0?n=l:t=l;while(Math.abs(s)>Zq&&++c<Qq);return l}function Yc(e,t,n,r){if(e===t&&n===r)return fr;const a=s=>Jq(s,0,1,e,n);return s=>s===0||s===1?s:S3(a(s),t,r)}const w3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,j3=e=>t=>1-e(1-t),A3=Yc(.33,1.53,.69,.99),bw=j3(A3),O3=w3(bw),_3=e=>e>=1?1:(e*=2)<1?.5*bw(e):.5*(2-Math.pow(2,-10*(e-1))),Sw=e=>1-Math.sin(Math.acos(e)),T3=j3(Sw),E3=w3(Sw),eI=Yc(.42,0,1,1),tI=Yc(0,0,.58,1),N3=Yc(.42,0,.58,1),nI=e=>Array.isArray(e)&&typeof e[0]!="number",C3=e=>Array.isArray(e)&&typeof e[0]=="number",rI={linear:fr,easeIn:eI,easeInOut:N3,easeOut:tI,circIn:Sw,circInOut:E3,circOut:T3,backIn:bw,backInOut:O3,backOut:A3,anticipate:_3},iI=e=>typeof e=="string",gT=e=>{if(C3(e)){gw(e.length===4);const[t,n,r,a]=e;return Yc(t,n,r,a)}else if(iI(e))return rI[e];return e},Nd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function aI(e){let t=new Set,n=new Set,r=!1,a=!1;const s=new WeakSet;let l={delta:0,timestamp:0,isProcessing:!1};function c(d){s.has(d)&&(f.schedule(d),e()),d(l)}const f={schedule:(d,m=!1,y=!1)=>{const S=y&&r?t:n;return m&&s.add(d),S.add(d),d},cancel:d=>{n.delete(d),s.delete(d)},process:d=>{if(l=d,r){a=!0;return}r=!0;const m=t;t=n,n=m,t.forEach(c),t.clear(),r=!1,a&&(a=!1,f.process(d))}};return f}const oI=40;function M3(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Nd.reduce((T,C)=>(T[C]=aI(s),T),{}),{setup:c,read:f,resolveKeyframes:d,preUpdate:m,update:y,preRender:g,render:S,postRender:w}=l,j=()=>{const T=ja.useManualTiming,C=T?a.timestamp:performance.now();n=!1,T||(a.delta=r?1e3/60:Math.max(Math.min(C-a.timestamp,oI),1)),a.timestamp=C,a.isProcessing=!0,c.process(a),f.process(a),d.process(a),m.process(a),y.process(a),g.process(a),S.process(a),w.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(j))},b=()=>{n=!0,r=!0,a.isProcessing||e(j)};return{schedule:Nd.reduce((T,C)=>{const O=l[C];return T[C]=(N,M=!1,R=!1)=>(n||b(),O.schedule(N,M,R)),T},{}),cancel:T=>{for(let C=0;C<Nd.length;C++)l[Nd[C]].cancel(T)},state:a,steps:l}}const{schedule:ft,cancel:Aa,state:sn,steps:zv}=M3(typeof requestAnimationFrame<"u"?requestAnimationFrame:fr,!0);let Zd;function sI(){Zd=void 0}const yn={now:()=>(Zd===void 0&&yn.set(sn.isProcessing||ja.useManualTiming?sn.timestamp:performance.now()),Zd),set:e=>{Zd=e,queueMicrotask(sI)}},P3=e=>t=>typeof t=="string"&&t.startsWith(e),R3=P3("--"),lI=P3("var(--"),ww=e=>lI(e)?uI.test(e.split("/*")[0].trim()):!1,uI=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function xT(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const vl={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},ac={...vl,transform:e=>Yr(0,1,e)},Cd={...vl,default:1},Hu=e=>Math.round(e*1e5)/1e5,jw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function cI(e){return e==null}const fI=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Aw=(e,t)=>n=>!!(typeof n=="string"&&fI.test(n)&&n.startsWith(e)||t&&!cI(n)&&Object.prototype.hasOwnProperty.call(n,t)),D3=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,c]=r.match(jw);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:c!==void 0?parseFloat(c):1}},dI=e=>Yr(0,255,e),$v={...vl,transform:e=>Math.round(dI(e))},lo={test:Aw("rgb","red"),parse:D3("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+$v.transform(e)+", "+$v.transform(t)+", "+$v.transform(n)+", "+Hu(ac.transform(r))+")"};function hI(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 a1={test:Aw("#"),parse:hI,transform:lo.transform},Xc=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ji=Xc("deg"),Vr=Xc("%"),ye=Xc("px"),pI=Xc("vh"),mI=Xc("vw"),bT={...Vr,parse:e=>Vr.parse(e)/100,transform:e=>Vr.transform(e*100)},Os={test:Aw("hsl","hue"),parse:D3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+Vr.transform(Hu(t))+", "+Vr.transform(Hu(n))+", "+Hu(ac.transform(r))+")"},$t={test:e=>lo.test(e)||a1.test(e)||Os.test(e),parse:e=>lo.test(e)?lo.parse(e):Os.test(e)?Os.parse(e):a1.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?lo.transform(e):Os.transform(e),getAnimatableNone:e=>{const t=$t.parse(e);return t.alpha=0,$t.transform(t)}},yI=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function vI(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(jw))==null?void 0:t.length)||0)+(((n=e.match(yI))==null?void 0:n.length)||0)>0}const k3="number",L3="color",gI="var",xI="var(",ST="${}",bI=/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 Bs(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const c=t.replace(bI,f=>($t.test(f)?(r.color.push(s),a.push(L3),n.push($t.parse(f))):f.startsWith(xI)?(r.var.push(s),a.push(gI),n.push(f)):(r.number.push(s),a.push(k3),n.push(parseFloat(f))),++s,ST)).split(ST);return{values:n,split:c,indexes:r,types:a}}function SI(e){return Bs(e).values}function z3({split:e,types:t}){const n=e.length;return r=>{let a="";for(let s=0;s<n;s++)if(a+=e[s],r[s]!==void 0){const l=t[s];l===k3?a+=Hu(r[s]):l===L3?a+=$t.transform(r[s]):a+=r[s]}return a}}function wI(e){return z3(Bs(e))}const jI=e=>typeof e=="number"?0:$t.test(e)?$t.getAnimatableNone(e):e,AI=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:jI(e);function OI(e){const t=Bs(e);return z3(t)(t.values.map((r,a)=>AI(r,t.split[a])))}const Tr={test:vI,parse:SI,createTransformer:wI,getAnimatableNone:OI};function Bv(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 _I({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,l=0;if(!t)a=s=l=n;else{const c=n<.5?n*(1+t):n+t-n*t,f=2*n-c;a=Bv(f,c,e+1/3),s=Bv(f,c,e),l=Bv(f,c,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function dh(e,t){return n=>n>0?t:e}const ct=(e,t,n)=>e+(t-e)*n,qv=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},TI=[a1,lo,Os],EI=e=>TI.find(t=>t.test(e));function wT(e){const t=EI(e);if(!t)return!1;let n=t.parse(e);return t===Os&&(n=_I(n)),n}const jT=(e,t)=>{const n=wT(e),r=wT(t);if(!n||!r)return dh(e,t);const a={...n};return s=>(a.red=qv(n.red,r.red,s),a.green=qv(n.green,r.green,s),a.blue=qv(n.blue,r.blue,s),a.alpha=ct(n.alpha,r.alpha,s),lo.transform(a))},o1=new Set(["none","hidden"]);function NI(e,t){return o1.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function CI(e,t){return n=>ct(e,t,n)}function Ow(e){return typeof e=="number"?CI:typeof e=="string"?ww(e)?dh:$t.test(e)?jT:RI:Array.isArray(e)?$3:typeof e=="object"?$t.test(e)?jT:MI:dh}function $3(e,t){const n=[...e],r=n.length,a=e.map((s,l)=>Ow(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=a[l](s);return n}}function MI(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Ow(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function PI(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],l=e.indexes[s][r[s]],c=e.values[l]??0;n[a]=c,r[s]++}return n}const RI=(e,t)=>{const n=Tr.createTransformer(t),r=Bs(e),a=Bs(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?o1.has(e)&&!a.values.length||o1.has(t)&&!r.values.length?NI(e,t):Kc($3(PI(r,a),a.values),n):dh(e,t)};function B3(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?ct(e,t,n):Ow(e)(e,t)}const DI=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ft.update(t,n),stop:()=>Aa(t),now:()=>sn.isProcessing?sn.timestamp:yn.now()}},q3=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=Math.round(e(s/(a-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},hh=2e4;function _w(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<hh;)t+=n,r=e.next(t);return t>=hh?1/0:t}function kI(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(_w(r),hh);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:ur(a)}}const Et={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};function s1(e,t){return e*Math.sqrt(1-t*t)}const LI=12;function zI(e,t,n){let r=n;for(let a=1;a<LI;a++)r=r-e(r)/t(r);return r}const Iv=.001;function $I({duration:e=Et.duration,bounce:t=Et.bounce,velocity:n=Et.velocity,mass:r=Et.mass}){let a,s,l=1-t;l=Yr(Et.minDamping,Et.maxDamping,l),e=Yr(Et.minDuration,Et.maxDuration,ur(e)),l<1?(a=d=>{const m=d*l,y=m*e,g=m-n,S=s1(d,l),w=Math.exp(-y);return Iv-g/S*w},s=d=>{const y=d*l*e,g=y*n+n,S=Math.pow(l,2)*Math.pow(d,2)*e,w=Math.exp(-y),j=s1(Math.pow(d,2),l);return(-a(d)+Iv>0?-1:1)*((g-S)*w)/j}):(a=d=>{const m=Math.exp(-d*e),y=(d-n)*e+1;return-Iv+m*y},s=d=>{const m=Math.exp(-d*e),y=(n-d)*(e*e);return m*y});const c=5/e,f=zI(a,s,c);if(e=Hn(e),isNaN(f))return{stiffness:Et.stiffness,damping:Et.damping,duration:e};{const d=Math.pow(f,2)*r;return{stiffness:d,damping:l*2*Math.sqrt(r*d),duration:e}}}const BI=["duration","bounce"],qI=["stiffness","damping","mass"];function AT(e,t){return t.some(n=>e[n]!==void 0)}function II(e){let t={velocity:Et.velocity,stiffness:Et.stiffness,damping:Et.damping,mass:Et.mass,isResolvedFromDuration:!1,...e};if(!AT(e,qI)&&AT(e,BI))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*Yr(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:Et.mass,stiffness:a,damping:s}}else{const n=$I({...e,velocity:0});t={...t,...n,mass:Et.mass},t.isResolvedFromDuration=!0}return t}function ph(e=Et.visualDuration,t=Et.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],c={done:!1,value:s},{stiffness:f,damping:d,mass:m,duration:y,velocity:g,isResolvedFromDuration:S}=II({...n,velocity:-ur(n.velocity||0)}),w=g||0,j=d/(2*Math.sqrt(f*m)),b=l-s,A=ur(Math.sqrt(f/m)),_=Math.abs(b)<5;r||(r=_?Et.restSpeed.granular:Et.restSpeed.default),a||(a=_?Et.restDelta.granular:Et.restDelta.default);let T,C,O,N,M,R;if(j<1)O=s1(A,j),N=(w+j*A*b)/O,T=B=>{const I=Math.exp(-j*A*B);return l-I*(N*Math.sin(O*B)+b*Math.cos(O*B))},M=j*A*N+b*O,R=j*A*b-N*O,C=B=>Math.exp(-j*A*B)*(M*Math.sin(O*B)+R*Math.cos(O*B));else if(j===1){T=I=>l-Math.exp(-A*I)*(b+(w+A*b)*I);const B=w+A*b;C=I=>Math.exp(-A*I)*(A*B*I-w)}else{const B=A*Math.sqrt(j*j-1);T=X=>{const Y=Math.exp(-j*A*X),$=Math.min(B*X,300);return l-Y*((w+j*A*b)*Math.sinh($)+B*b*Math.cosh($))/B};const I=(w+j*A*b)/B,z=j*A*I-b*B,H=j*A*b-I*B;C=X=>{const Y=Math.exp(-j*A*X),$=Math.min(B*X,300);return Y*(z*Math.sinh($)+H*Math.cosh($))}}const D={calculatedDuration:S&&y||null,velocity:B=>Hn(C(B)),next:B=>{if(!S&&j<1){const z=Math.exp(-j*A*B),H=Math.sin(O*B),X=Math.cos(O*B),Y=l-z*(N*H+b*X),$=Hn(z*(M*H+R*X));return c.done=Math.abs($)<=r&&Math.abs(l-Y)<=a,c.value=c.done?l:Y,c}const I=T(B);if(S)c.done=B>=y;else{const z=Hn(C(B));c.done=Math.abs(z)<=r&&Math.abs(l-I)<=a}return c.value=c.done?l:I,c},toString:()=>{const B=Math.min(_w(D),hh),I=q3(z=>D.next(B*z).value,B,30);return B+"ms "+I},toTransition:()=>{}};return D}ph.applyToOptions=e=>{const t=kI(e,100,ph);return e.ease=t.ease,e.duration=Hn(t.duration),e.type="keyframes",e};const UI=5;function I3(e,t,n){const r=Math.max(t-UI,0);return b3(n-e(r),t-r)}function l1({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:c,max:f,restDelta:d=.5,restSpeed:m}){const y=e[0],g={done:!1,value:y},S=R=>c!==void 0&&R<c||f!==void 0&&R>f,w=R=>c===void 0?f:f===void 0||Math.abs(c-R)<Math.abs(f-R)?c:f;let j=n*t;const b=y+j,A=l===void 0?b:l(b);A!==b&&(j=A-y);const _=R=>-j*Math.exp(-R/r),T=R=>A+_(R),C=R=>{const D=_(R),B=T(R);g.done=Math.abs(D)<=d,g.value=g.done?A:B};let O,N;const M=R=>{S(g.value)&&(O=R,N=ph({keyframes:[g.value,w(g.value)],velocity:I3(T,R,g.value),damping:a,stiffness:s,restDelta:d,restSpeed:m}))};return M(0),{calculatedDuration:null,next:R=>{let D=!1;return!N&&O===void 0&&(D=!0,C(R),M(R)),O!==void 0&&R>=O?N.next(R-O):(!D&&C(R),g)}}}function VI(e,t,n){const r=[],a=n||ja.mix||B3,s=e.length-1;for(let l=0;l<s;l++){let c=a(e[l],e[l+1]);if(t){const f=Array.isArray(t)?t[l]||fr:t;c=Kc(f,c)}r.push(c)}return r}function HI(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(gw(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const c=VI(t,r,a),f=c.length,d=m=>{if(l&&m<e[0])return t[0];let y=0;if(f>1)for(;y<e.length-2&&!(m<e[y+1]);y++);const g=ic(e[y],e[y+1],m);return c[y](g)};return n?m=>d(Yr(e[0],e[s-1],m)):d}function GI(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=ic(0,t,r);e.push(ct(n,1,a))}}function FI(e){const t=[0];return GI(t,e.length-1),t}function KI(e,t){return e.map(n=>n*t)}function YI(e,t){return e.map(()=>t||N3).splice(0,e.length-1)}function Gu({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=nI(r)?r.map(gT):gT(r),s={done:!1,value:t[0]},l=KI(n&&n.length===t.length?n:FI(t),e),c=HI(l,t,{ease:Array.isArray(a)?a:YI(t,a)});return{calculatedDuration:e,next:f=>(s.value=c(f),s.done=f>=e,s)}}const XI=e=>e!==null;function Cp(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(XI),c=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!c||r===void 0?s[c]:r}const WI={decay:l1,inertia:l1,tween:Gu,keyframes:Gu,spring:ph};function U3(e){typeof e.type=="string"&&(e.type=WI[e.type])}class Tw{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const ZI=e=>e/100;class mh extends Tw{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==yn.now()&&this.tick(yn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;U3(t);const{type:n=Gu,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=t;let{keyframes:c}=t;const f=n||Gu;f!==Gu&&typeof c[0]!="number"&&(this.mixKeyframes=Kc(ZI,B3(c[0],c[1])),c=[0,100]);const d=f({...t,keyframes:c});s==="mirror"&&(this.mirroredGenerator=f({...t,keyframes:[...c].reverse(),velocity:-l})),d.calculatedDuration===null&&(d.calculatedDuration=_w(d));const{calculatedDuration:m}=d;this.calculatedDuration=m,this.resolvedDuration=m+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=d}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:c,calculatedDuration:f}=this;if(this.startTime===null)return r.next(0);const{delay:d=0,keyframes:m,repeat:y,repeatType:g,repeatDelay:S,type:w,onUpdate:j,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const A=this.currentTime-d*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?A<0:A>a;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let T=this.currentTime,C=r;if(y){const R=Math.min(this.currentTime,a)/c;let D=Math.floor(R),B=R%1;!B&&R>=1&&(B=1),B===1&&D--,D=Math.min(D,y+1),!!(D%2)&&(g==="reverse"?(B=1-B,S&&(B-=S/c)):g==="mirror"&&(C=l)),T=Yr(0,1,B)*c}let O;_?(this.delayState.value=m[0],O=this.delayState):O=C.next(T),s&&!_&&(O.value=s(O.value));let{done:N}=O;!_&&f!==null&&(N=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const M=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&N);return M&&w!==l1&&(O.value=Cp(m,this.options,b,this.speed)),j&&j(O.value),M&&this.finish(),O}then(t,n){return this.finished.then(t,n)}get duration(){return ur(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(this.currentTime)}set time(t){t=Hn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return I3(r=>this.generator.next(r).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(yn.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=ur(this.currentTime))}play(){var a,s;if(this.isStopped)return;const{driver:t=DI,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(s=(a=this.options).onPlay)==null||s.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(yn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function QI(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const uo=e=>e*180/Math.PI,u1=e=>{const t=uo(Math.atan2(e[1],e[0]));return c1(t)},JI={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:u1,rotateZ:u1,skewX:e=>uo(Math.atan(e[1])),skewY:e=>uo(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},c1=e=>(e=e%360,e<0&&(e+=360),e),OT=u1,_T=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),TT=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),eU={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:_T,scaleY:TT,scale:e=>(_T(e)+TT(e))/2,rotateX:e=>c1(uo(Math.atan2(e[6],e[5]))),rotateY:e=>c1(uo(Math.atan2(-e[2],e[0]))),rotateZ:OT,rotate:OT,skewX:e=>uo(Math.atan(e[4])),skewY:e=>uo(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function f1(e){return e.includes("scale")?1:0}function d1(e,t){if(!e||e==="none")return f1(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=eU,a=n;else{const c=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=JI,a=c}if(!a)return f1(t);const s=r[t],l=a[1].split(",").map(nU);return typeof s=="function"?s(l):l[s]}const tU=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return d1(n,t)};function nU(e){return parseFloat(e.trim())}const gl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xl=new Set([...gl,"pathRotation"]),ET=e=>e===vl||e===ye,rU=new Set(["x","y","z"]),iU=gl.filter(e=>!rU.has(e));function aU(e){const t=[];return iU.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const ga={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:r})=>{const a=e.max-e.min;return r==="border-box"?a:a-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:(e,{transform:t})=>d1(t,"x"),y:(e,{transform:t})=>d1(t,"y")};ga.translateX=ga.x;ga.translateY=ga.y;const vo=new Set;let h1=!1,p1=!1,m1=!1;function V3(){if(p1){const e=Array.from(vo).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=aU(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(([s,l])=>{var c;(c=r.getValue(s))==null||c.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}p1=!1,h1=!1,vo.forEach(e=>e.complete(m1)),vo.clear()}function H3(){vo.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(p1=!0)})}function oU(){m1=!0,H3(),V3(),m1=!1}class Ew{constructor(t,n,r,a,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(vo.add(this),h1||(h1=!0,ft.read(H3),ft.resolveKeyframes(V3))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a==null?void 0:a.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const c=r.readValue(n,l);c!=null&&(t[0]=c)}t[0]===void 0&&(t[0]=l),a&&s===void 0&&a.set(t[0])}QI(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),vo.delete(this)}cancel(){this.state==="scheduled"&&(vo.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const sU=e=>e.startsWith("--");function G3(e,t,n){sU(t)?e.style.setProperty(t,n):e.style[t]=n}const lU={};function F3(e,t){const n=x3(e);return()=>lU[t]??n()}const uU=F3(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),K3=F3(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,NT={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qu([0,.65,.55,1]),circOut:qu([.55,0,1,.45]),backIn:qu([.31,.01,.66,-.59]),backOut:qu([.33,1.53,.69,.99])};function Y3(e,t){if(e)return typeof e=="function"?K3()?q3(e,t):"ease-out":C3(e)?qu(e):Array.isArray(e)?e.map(n=>Y3(n,t)||NT.easeOut):NT[e]}function cU(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:c="easeOut",times:f}={},d=void 0){const m={[t]:n};f&&(m.offset=f);const y=Y3(c,a);Array.isArray(y)&&(m.easing=y);const g={delay:r,duration:a,easing:Array.isArray(y)?"linear":y,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return d&&(g.pseudoElement=d),e.animate(m,g)}function X3(e){return typeof e=="function"&&"applyToOptions"in e}function fU({type:e,...t}){return X3(e)&&K3()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class W3 extends Tw{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:c,onComplete:f}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,gw(typeof t.type!="string");const d=fU(t);this.animation=cU(n,r,a,d,s),d.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const m=Cp(a,this.options,c,this.speed);this.updateMotionValue&&this.updateMotionValue(m),G3(n,r,m),this.animation.cancel()}f==null||f(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,r,a;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((a=(r=this.animation).commitStyles)==null||a.call(r))}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return ur(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+ur(t)}get time(){return ur(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Hn(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:r,observe:a}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&uU()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),r&&(this.animation.rangeEnd=r),fr):a(this)}}const Z3={anticipate:_3,backInOut:O3,circInOut:E3};function dU(e){return e in Z3}function hU(e){typeof e.ease=="string"&&dU(e.ease)&&(e.ease=Z3[e.ease])}const Uv=10;class pU extends W3{constructor(t){hU(t),U3(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const c=new mh({...l,autoplay:!1}),f=Math.max(Uv,yn.now()-this.startTime),d=Yr(0,Uv,f-Uv),m=c.sample(f).value,{name:y}=this.options;s&&y&&G3(s,y,m),n.setWithVelocity(c.sample(Math.max(0,f-d)).value,m,d),c.stop()}}const CT=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Tr.test(e)||e==="0")&&!e.startsWith("url("));function mU(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 yU(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=CT(a,t),c=CT(s,t);return!l||!c?!1:mU(e)||(n==="spring"||X3(n))&&r}function y1(e){e.duration=0,e.type="keyframes"}const Q3=new Set(["opacity","clipPath","filter","transform"]),vU=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function gU(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&vU.test(e[t]))return!0;return!1}const xU=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),bU=x3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function SU(e){var y;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:l,keyframes:c}=e;if(!(((y=t==null?void 0:t.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:d,transformTemplate:m}=t.owner.getProps();return bU()&&n&&(Q3.has(n)||xU.has(n)&&gU(c))&&(n!=="transform"||!m)&&!d&&!r&&a!=="mirror"&&s!==0&&l!=="inertia"}const wU=40;class jU extends Tw{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",keyframes:c,name:f,motionValue:d,element:m,...y}){var w;super(),this.stop=()=>{var j,b;this._animation&&(this._animation.stop(),(j=this.stopTimeline)==null||j.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=yn.now();const g={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:l,name:f,motionValue:d,element:m,...y},S=(m==null?void 0:m.KeyframeResolver)||Ew;this.keyframeResolver=new S(c,(j,b,A)=>this.onKeyframesResolved(j,b,g,!A),f,d,m),(w=this.keyframeResolver)==null||w.scheduleResolve()}onKeyframesResolved(t,n,r,a){var A,_;this.keyframeResolver=void 0;const{name:s,type:l,velocity:c,delay:f,isHandoff:d,onUpdate:m}=r;this.resolvedAt=yn.now();let y=!0;yU(t,s,l,c)||(y=!1,(ja.instantAnimations||!f)&&(m==null||m(Cp(t,r,n))),t[0]=t[t.length-1],y1(r),r.repeat=0);const S={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>wU?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},w=y&&!d&&SU(S),j=(_=(A=S.motionValue)==null?void 0:A.owner)==null?void 0:_.current;let b;if(w)try{b=new pU({...S,element:j})}catch{b=new mh(S)}else b=new mh(S);b.finished.then(()=>{this.notifyFinished()}).catch(fr),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),oU()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function J3(e,t,n,r=0,a=1){const s=Array.from(e).sort((d,m)=>d.sortNodePosition(m)).indexOf(t),l=e.size,c=(l-1)*r;return typeof n=="function"?n(s,l):a===1?s*r:c-s*r}const MT=30,AU=e=>!isNaN(parseFloat(e));class OU{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var s;const a=yn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const l of this.dependents)l.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=yn.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=AU(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 xw);const r=this.events[t].add(n);return t==="change"?()=>{r(),ft.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){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=yn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>MT)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,MT);return b3(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function qs(e,t){return new OU(e,t)}function eL(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...r}=e;return{...t,...r}}return e}function Nw(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?eL(n,e):n}const _U={type:"spring",stiffness:500,damping:25,restSpeed:10},TU=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),EU={type:"keyframes",duration:.8},NU={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},CU=(e,{keyframes:t})=>t.length>2?EU:xl.has(e)?e.startsWith("scale")?TU(t[1]):_U:NU,MU=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function PU(e){for(const t in e)if(!MU.has(t))return!0;return!1}const Cw=(e,t,n,r={},a,s)=>l=>{const c=Nw(r,e)||{},f=c.delay||r.delay||0;let{elapsed:d=0}=r;d=d-Hn(f);const m={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...c,delay:-d,onUpdate:g=>{t.set(g),c.onUpdate&&c.onUpdate(g)},onComplete:()=>{l(),c.onComplete&&c.onComplete()},name:e,motionValue:t,element:s?void 0:a};PU(c)||Object.assign(m,CU(e,m)),m.duration&&(m.duration=Hn(m.duration)),m.repeatDelay&&(m.repeatDelay=Hn(m.repeatDelay)),m.from!==void 0&&(m.keyframes[0]=m.from);let y=!1;if((m.type===!1||m.duration===0&&!m.repeatDelay)&&(y1(m),m.delay===0&&(y=!0)),(ja.instantAnimations||ja.skipAnimations||a!=null&&a.shouldSkipAnimations||c.skipAnimations)&&(y=!0,y1(m),m.delay=0),m.allowFlatten=!c.type&&!c.ease,y&&!s&&t.get()!==void 0){const g=Cp(m.keyframes,c);if(g!==void 0){ft.update(()=>{m.onUpdate(g),m.onComplete()});return}}return c.isSync?new mh(m):new jU(m)},RU=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function DU(e){const t=RU.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function tL(e,t,n=1){const[r,a]=DU(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return y3(l)?parseFloat(l):l}return ww(a)?tL(a,t,n+1):a}function PT(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function Mw(e,t,n,r){if(typeof t=="function"){const[a,s]=PT(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=PT(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function go(e,t,n){const r=e.getProps();return Mw(r,t,n!==void 0?n:r.custom,e)}const nL=new Set(["width","height","top","left","right","bottom",...gl]),v1=e=>Array.isArray(e);function kU(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,qs(n))}function LU(e){return v1(e)?e[e.length-1]||0:e}function zU(e,t){const n=go(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const l in s){const c=LU(s[l]);kU(e,l,c)}}const ln=e=>!!(e&&e.getVelocity);function $U(e){return!!(ln(e)&&e.add)}function g1(e,t){const n=e.getValue("willChange");if($U(n))return n.add(t);if(!n&&ja.WillChange){const r=new ja.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Pw(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const BU="framerAppearId",rL="data-"+Pw(BU);function iL(e){return e.props[rL]}function qU({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function aL(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s,transitionEnd:l,...c}=t;const f=e.getDefaultTransition();s=s?eL(s,f):f;const d=s==null?void 0:s.reduceMotion,m=s==null?void 0:s.skipAnimations;r&&(s=r);const y=[],g=a&&e.animationState&&e.animationState.getState()[a],S=s==null?void 0:s.path;S&&S.animateVisualElement(e,c,s,n,y);for(const w in c){const j=e.getValue(w,e.latestValues[w]??null),b=c[w];if(b===void 0||g&&qU(g,w))continue;const A={delay:n,...Nw(s||{},w)};m&&(A.skipAnimations=!0);const _=j.get();if(_!==void 0&&!j.isAnimating()&&!Array.isArray(b)&&b===_&&!A.velocity){ft.update(()=>j.set(b));continue}let T=!1;if(window.MotionHandoffAnimation){const N=iL(e);if(N){const M=window.MotionHandoffAnimation(N,w,ft);M!==null&&(A.startTime=M,T=!0)}}g1(e,w);const C=d??e.shouldReduceMotion;j.start(Cw(w,j,b,C&&nL.has(w)?{type:!1}:A,e,T));const O=j.animation;O&&y.push(O)}if(l){const w=()=>ft.update(()=>{l&&zU(e,l)});y.length?Promise.all(y).then(w):w()}return y}function x1(e,t,n={}){var f;const r=go(e,t,n.type==="exit"?(f=e.presenceContext)==null?void 0:f.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(aL(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(d=0)=>{const{delayChildren:m=0,staggerChildren:y,staggerDirection:g}=a;return IU(e,t,d,m,y,g,n)}:()=>Promise.resolve(),{when:c}=a;if(c){const[d,m]=c==="beforeChildren"?[s,l]:[l,s];return d().then(()=>m())}else return Promise.all([s(),l(n.delay)])}function IU(e,t,n=0,r=0,a=0,s=1,l){const c=[];for(const f of e.variantChildren)f.notify("AnimationStart",t),c.push(x1(f,t,{...l,delay:n+(typeof r=="function"?0:r)+J3(e.variantChildren,f,r,a,s)}).then(()=>f.notify("AnimationComplete",t)));return Promise.all(c)}function UU(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>x1(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=x1(e,t,n);else{const a=typeof t=="function"?go(e,t,n.custom):t;r=Promise.all(aL(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const VU={test:e=>e==="auto",parse:e=>e},oL=e=>t=>t.test(e),sL=[vl,ye,Vr,ji,mI,pI,VU],RT=e=>sL.find(oL(e));function HU(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||g3(e):!0}const GU=new Set(["brightness","contrast","saturate","opacity"]);function FU(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(jw)||[];if(!r)return e;const a=n.replace(r,"");let s=GU.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const KU=/\b([a-z-]*)\(.*?\)/gu,b1={...Tr,getAnimatableNone:e=>{const t=e.match(KU);return t?t.map(FU).join(" "):e}},S1={...Tr,getAnimatableNone:e=>{const t=Tr.parse(e);return Tr.createTransformer(e)(t.map(r=>typeof r=="number"?0:typeof r=="object"?{...r,alpha:1}:r))}},DT={...vl,transform:Math.round},YU={rotate:ji,pathRotation:ji,rotateX:ji,rotateY:ji,rotateZ:ji,scale:Cd,scaleX:Cd,scaleY:Cd,scaleZ:Cd,skew:ji,skewX:ji,skewY:ji,distance:ye,translateX:ye,translateY:ye,translateZ:ye,x:ye,y:ye,z:ye,perspective:ye,transformPerspective:ye,opacity:ac,originX:bT,originY:bT,originZ:ye},yh={borderWidth:ye,borderTopWidth:ye,borderRightWidth:ye,borderBottomWidth:ye,borderLeftWidth:ye,borderRadius:ye,borderTopLeftRadius:ye,borderTopRightRadius:ye,borderBottomRightRadius:ye,borderBottomLeftRadius:ye,width:ye,maxWidth:ye,height:ye,maxHeight:ye,top:ye,right:ye,bottom:ye,left:ye,inset:ye,insetBlock:ye,insetBlockStart:ye,insetBlockEnd:ye,insetInline:ye,insetInlineStart:ye,insetInlineEnd:ye,padding:ye,paddingTop:ye,paddingRight:ye,paddingBottom:ye,paddingLeft:ye,paddingBlock:ye,paddingBlockStart:ye,paddingBlockEnd:ye,paddingInline:ye,paddingInlineStart:ye,paddingInlineEnd:ye,margin:ye,marginTop:ye,marginRight:ye,marginBottom:ye,marginLeft:ye,marginBlock:ye,marginBlockStart:ye,marginBlockEnd:ye,marginInline:ye,marginInlineStart:ye,marginInlineEnd:ye,fontSize:ye,backgroundPositionX:ye,backgroundPositionY:ye,...YU,zIndex:DT,fillOpacity:ac,strokeOpacity:ac,numOctaves:DT},XU={...yh,color:$t,backgroundColor:$t,outlineColor:$t,fill:$t,stroke:$t,borderColor:$t,borderTopColor:$t,borderRightColor:$t,borderBottomColor:$t,borderLeftColor:$t,filter:b1,WebkitFilter:b1,mask:S1,WebkitMask:S1},lL=e=>XU[e],WU=new Set([b1,S1]);function uL(e,t){let n=lL(e);return WU.has(n)||(n=Tr),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const ZU=new Set(["auto","none","0"]);function QU(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!ZU.has(s)&&Bs(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=uL(n,a)}class JU extends Ew{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let y=t[m];if(typeof y=="string"&&(y=y.trim(),ww(y))){const g=tL(y,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=y)}}if(this.resolveNoneKeyframes(),!nL.has(r)||t.length!==2)return;const[a,s]=t,l=RT(a),c=RT(s),f=xT(a),d=xT(s);if(f!==d&&ga[r]){this.needsMeasurement=!0;return}if(l!==c)if(ET(l)&&ET(c))for(let m=0;m<t.length;m++){const y=t[m];typeof y=="string"&&(t[m]=parseFloat(y))}else ga[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||HU(t[a]))&&r.push(a);r.length&&QU(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=ga[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 c;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=ga[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(c=this.removedTransforms)!=null&&c.length&&this.removedTransforms.forEach(([f,d])=>{t.getValue(f).set(d)}),this.resolveNoneKeyframes()}}const Rw=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"];function cL(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e).filter(r=>r!=null)}const w1=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Qd(e){return v3(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Dw}=M3(queueMicrotask,!1),wr={x:!1,y:!1};function fL(){return wr.x||wr.y}function eV(e){return e==="x"||e==="y"?wr[e]?null:(wr[e]=!0,()=>{wr[e]=!1}):wr.x||wr.y?null:(wr.x=wr.y=!0,()=>{wr.x=wr.y=!1})}function dL(e,t){const n=cL(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function tV(e){return!(e.pointerType==="touch"||fL())}function nV(e,t,n={}){const[r,a,s]=dL(e,n);return r.forEach(l=>{let c=!1,f=!1,d;const m=()=>{l.removeEventListener("pointerleave",w)},y=b=>{d&&(d(b),d=void 0),m()},g=b=>{c=!1,window.removeEventListener("pointerup",g),window.removeEventListener("pointercancel",g),f&&(f=!1,y(b))},S=()=>{c=!0,window.addEventListener("pointerup",g,a),window.addEventListener("pointercancel",g,a)},w=b=>{if(b.pointerType!=="touch"){if(c){f=!0;return}y(b)}},j=b=>{if(!tV(b))return;f=!1;const A=t(l,b);typeof A=="function"&&(d=A,l.addEventListener("pointerleave",w,a))};l.addEventListener("pointerenter",j,a),l.addEventListener("pointerdown",S,a)}),s}const hL=(e,t)=>t?e===t?!0:hL(e,t.parentElement):!1,kw=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,rV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function iV(e){return rV.has(e.tagName)||e.isContentEditable===!0}const aV=new Set(["INPUT","SELECT","TEXTAREA"]);function oV(e){return aV.has(e.tagName)||e.isContentEditable===!0}const Jd=new WeakSet;function kT(e){return t=>{t.key==="Enter"&&e(t)}}function Vv(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const sV=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=kT(()=>{if(Jd.has(n))return;Vv(n,"down");const a=kT(()=>{Vv(n,"up")}),s=()=>Vv(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function LT(e){return kw(e)&&!fL()}const zT=new WeakSet;function lV(e,t,n={}){const[r,a,s]=dL(e,n),l=c=>{const f=c.currentTarget;if(!LT(c)||zT.has(c))return;Jd.add(f),n.stopPropagation&&zT.add(c);const d=t(f,c),m={...a,capture:!0},y=(w,j)=>{window.removeEventListener("pointerup",g,m),window.removeEventListener("pointercancel",S,m),Jd.has(f)&&Jd.delete(f),LT(w)&&typeof d=="function"&&d(w,{success:j})},g=w=>{y(w,f===window||f===document||n.useGlobalTarget||hL(f,w.target))},S=w=>{y(w,!1)};window.addEventListener("pointerup",g,m),window.addEventListener("pointercancel",S,m)};return r.forEach(c=>{(n.useGlobalTarget?window:c).addEventListener("pointerdown",l,a),Qd(c)&&(c.addEventListener("focus",d=>sV(d,a)),!iV(c)&&!c.hasAttribute("tabindex")&&(c.tabIndex=0))}),s}function Lw(e){return v3(e)&&"ownerSVGElement"in e}const eh=new WeakMap;let pa;const pL=(e,t,n)=>(r,a)=>a&&a[0]?a[0][e+"Size"]:Lw(r)&&"getBBox"in r?r.getBBox()[t]:r[n],uV=pL("inline","width","offsetWidth"),cV=pL("block","height","offsetHeight");function fV({target:e,borderBoxSize:t}){var n;(n=eh.get(e))==null||n.forEach(r=>{r(e,{get width(){return uV(e,t)},get height(){return cV(e,t)}})})}function dV(e){e.forEach(fV)}function hV(){typeof ResizeObserver>"u"||(pa=new ResizeObserver(dV))}function pV(e,t){pa||hV();const n=cL(e);return n.forEach(r=>{let a=eh.get(r);a||(a=new Set,eh.set(r,a)),a.add(t),pa==null||pa.observe(r)}),()=>{n.forEach(r=>{const a=eh.get(r);a==null||a.delete(t),a!=null&&a.size||pa==null||pa.unobserve(r)})}}const th=new Set;let _s;function mV(){_s=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};th.forEach(t=>t(e))},window.addEventListener("resize",_s)}function yV(e){return th.add(e),_s||mV(),()=>{th.delete(e),!th.size&&typeof _s=="function"&&(window.removeEventListener("resize",_s),_s=void 0)}}function $T(e,t){return typeof e=="function"?yV(e):pV(e,t)}function vV(e){return Lw(e)&&e.tagName==="svg"}const gV=[...sL,$t,Tr],xV=e=>gV.find(oL(e)),BT=()=>({translate:0,scale:1,origin:0,originPoint:0}),Ts=()=>({x:BT(),y:BT()}),qT=()=>({min:0,max:0}),Ht=()=>({x:qT(),y:qT()}),bV=new WeakMap;function Mp(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function oc(e){return typeof e=="string"||Array.isArray(e)}const zw=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],$w=["initial",...zw];function Pp(e){return Mp(e.animate)||$w.some(t=>oc(e[t]))}function mL(e){return!!(Pp(e)||e.variants)}function SV(e,t,n){for(const r in t){const a=t[r],s=n[r];if(ln(a))e.addValue(r,a);else if(ln(s))e.addValue(r,qs(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,qs(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const j1={current:null},yL={current:!1},wV=typeof window<"u";function jV(){if(yL.current=!0,!!wV)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>j1.current=e.matches;e.addEventListener("change",t),t()}else j1.current=!1}const IT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let vh={};function vL(e){vh=e}function AV(){return vh}class OV{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,skipAnimations:s,blockInitialAnimation:l,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ew,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 S=yn.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,ft.render(this.render,!1,!0))};const{latestValues:d,renderState:m}=c;this.latestValues=d,this.baseTarget={...d},this.initialValues=n.initial?{...d}:{},this.renderState=m,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=s,this.options=f,this.blockInitialAnimation=!!l,this.isControllingVariants=Pp(n),this.isVariantNode=mL(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:y,...g}=this.scrapeMotionValuesFromProps(n,{},this);for(const S in g){const w=g[S];d[S]!==void 0&&ln(w)&&w.set(d[S])}}mount(t){var n,r;if(this.hasBeenMounted)for(const a in this.initialValues)(n=this.values.get(a))==null||n.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,bV.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((a,s)=>this.bindToMotionValue(s,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(yL.current||jV(),this.shouldReduceMotion=j1.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Aa(this.notifyUpdate),Aa(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&Q3.has(t)&&this.current instanceof HTMLElement){const{factory:l,keyframes:c,times:f,ease:d,duration:m}=n.accelerate,y=new W3({element:this.current,name:t,keyframes:c,times:f,ease:d,duration:Hn(m)}),g=l(y);this.valueSubscriptions.set(t,()=>{g(),y.cancel()});return}const r=xl.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",l=>{this.latestValues[t]=l,this.props.onUpdate&&ft.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s&&s()})}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 vh){const n=vh[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 s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Ht()}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<IT.length;r++){const a=IT[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,l=t[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=SV(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=qs(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(y3(r)||g3(r))?r=parseFloat(r):!xV(r)&&Tr.test(n)&&(r=uL(t,n)),this.setBaseTarget(t,ln(r)?r.get():r)),ln(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=Mw(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ln(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new xw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Dw.render(this.render)}}class gL extends OV{constructor(){super(...arguments),this.KeyframeResolver=JU}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const r=t.style;return r?r[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;ln(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class Na{constructor(t){this.isMounted=!1,this.node=t}update(){}}function xL({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function _V({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function TV(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 Hv(e){return e===void 0||e===1}function A1({scale:e,scaleX:t,scaleY:n}){return!Hv(e)||!Hv(t)||!Hv(n)}function ro(e){return A1(e)||bL(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function bL(e){return UT(e.x)||UT(e.y)}function UT(e){return e&&e!=="0%"}function gh(e,t,n){const r=e-n,a=t*r;return n+a}function VT(e,t,n,r,a){return a!==void 0&&(e=gh(e,a,r)),gh(e,n,r)+t}function O1(e,t=0,n=1,r,a){e.min=VT(e.min,t,n,r,a),e.max=VT(e.max,t,n,r,a)}function SL(e,{x:t,y:n}){O1(e.x,t.translate,t.scale,t.originPoint),O1(e.y,n.translate,n.scale,n.originPoint)}const HT=.999999999999,GT=1.0000000000001;function EV(e,t,n,r=!1){var c;const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let f=0;f<a;f++){s=n[f],l=s.projectionDelta;const{visualElement:d}=s.options;d&&d.props.style&&d.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(qr(e.x,-s.scroll.offset.x),qr(e.y,-s.scroll.offset.y)),l&&(t.x*=l.x.scale,t.y*=l.y.scale,SL(e,l)),r&&ro(s.latestValues)&&nh(e,s.latestValues,(c=s.layout)==null?void 0:c.layoutBox))}t.x<GT&&t.x>HT&&(t.x=1),t.y<GT&&t.y>HT&&(t.y=1)}function qr(e,t){e.min+=t,e.max+=t}function FT(e,t,n,r,a=.5){const s=ct(e.min,e.max,a);O1(e,t,n,s,r)}function KT(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function nh(e,t,n){const r=n??e;FT(e.x,KT(t.x,r.x),t.scaleX,t.scale,t.originX),FT(e.y,KT(t.y,r.y),t.scaleY,t.scale,t.originY)}function wL(e,t){return xL(TV(e.getBoundingClientRect(),t))}function NV(e,t,n){const r=wL(e,n),{scroll:a}=t;return a&&(qr(r.x,a.offset.x),qr(r.y,a.offset.y)),r}const CV={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},MV=gl.length;function PV(e,t,n){let r="",a=!0;for(let l=0;l<MV;l++){const c=gl[l],f=e[c];if(f===void 0)continue;let d=!0;if(typeof f=="number")d=f===(c.startsWith("scale")?1:0);else{const m=parseFloat(f);d=c.startsWith("scale")?m===1:m===0}if(!d||n){const m=w1(f,yh[c]);if(!d){a=!1;const y=CV[c]||c;r+=`${y}(${m}) `}n&&(t[c]=m)}}const s=e.pathRotation;return s&&(a=!1,r+=`rotate(${w1(s,yh.pathRotation)}) `),r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function Bw(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let l=!1,c=!1;for(const f in t){const d=t[f];if(xl.has(f)){l=!0;continue}else if(R3(f)){a[f]=d;continue}else{const m=w1(d,yh[f]);f.startsWith("origin")?(c=!0,s[f]=m):r[f]=m}}if(t.transform||(l||n?r.transform=PV(t,e.transform,n):r.transform&&(r.transform="none")),c){const{originX:f="50%",originY:d="50%",originZ:m=0}=s;r.transformOrigin=`${f} ${d} ${m}`}}function jL(e,{style:t,vars:n},r,a){const s=e.style;let l;for(l in t)s[l]=t[l];a==null||a.applyProjectionStyles(s,r);for(l in n)s.setProperty(l,n[l])}function YT(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ou={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ye.test(e))e=parseFloat(e);else return e;const n=YT(e,t.target.x),r=YT(e,t.target.y);return`${n}% ${r}%`}},RV={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=Tr.parse(e);if(a.length>5)return r;const s=Tr.createTransformer(e),l=typeof a[0]!="number"?1:0,c=n.x.scale*t.x,f=n.y.scale*t.y;a[0+l]/=c,a[1+l]/=f;const d=ct(c,f,.5);return typeof a[2+l]=="number"&&(a[2+l]/=d),typeof a[3+l]=="number"&&(a[3+l]/=d),s(a)}},_1={borderRadius:{...Ou,applyTo:[...Rw]},borderTopLeftRadius:Ou,borderTopRightRadius:Ou,borderBottomLeftRadius:Ou,borderBottomRightRadius:Ou,boxShadow:RV};function AL(e,{layout:t,layoutId:n}){return xl.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!_1[e]||e==="opacity")}function qw(e,t,n){var l;const r=e.style,a=t==null?void 0:t.style,s={};if(!r)return s;for(const c in r)(ln(r[c])||a&&ln(a[c])||AL(c,e)||((l=n==null?void 0:n.getValue(c))==null?void 0:l.liveStyle)!==void 0)&&(s[c]=r[c]);return s}function DV(e){return window.getComputedStyle(e)}class kV extends gL{constructor(){super(...arguments),this.type="html",this.renderInstance=jL}readValueFromInstance(t,n){var r;if(xl.has(n))return(r=this.projection)!=null&&r.isProjecting?f1(n):tU(t,n);{const a=DV(t),s=(R3(n)?a.getPropertyValue(n):a[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return wL(t,n)}build(t,n,r){Bw(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return qw(t,n,r)}}const LV={offset:"stroke-dashoffset",array:"stroke-dasharray"},zV={offset:"strokeDashoffset",array:"strokeDasharray"};function $V(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?LV:zV;e[s.offset]=`${-r}`,e[s.array]=`${t} ${n}`}const BV=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function OL(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...c},f,d,m){if(Bw(e,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:y,style:g}=e;y.transform&&(g.transform=y.transform,delete y.transform),(g.transform||y.transformOrigin)&&(g.transformOrigin=y.transformOrigin??"50% 50%",delete y.transformOrigin),g.transform&&(g.transformBox=(m==null?void 0:m.transformBox)??"fill-box",delete y.transformBox);for(const S of BV)y[S]!==void 0&&(g[S]=y[S],delete y[S]);t!==void 0&&(y.x=t),n!==void 0&&(y.y=n),r!==void 0&&(y.scale=r),a!==void 0&&$V(y,a,s,l,!1)}const _L=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"]),TL=e=>typeof e=="string"&&e.toLowerCase()==="svg";function qV(e,t,n,r){jL(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(_L.has(a)?a:Pw(a),t.attrs[a])}function EL(e,t,n){const r=qw(e,t,n);for(const a in e)if(ln(e[a])||ln(t[a])){const s=gl.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}class IV extends gL{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ht}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xl.has(n)){const r=lL(n);return r&&r.default||0}return n=_L.has(n)?n:Pw(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return EL(t,n,r)}build(t,n,r){OL(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){qV(t,n,r,a)}mount(t){this.isSVGTag=TL(t.tagName),super.mount(t)}}const UV=$w.length;function NL(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?NL(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<UV;n++){const r=$w[n],a=e.props[r];(oc(a)||a===!1)&&(t[r]=a)}return t}function CL(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}const VV=[...zw].reverse(),HV=zw.length;function GV(e){return t=>Promise.all(t.map(({animation:n,options:r})=>UU(e,n,r)))}function FV(e){let t=GV(e),n=XT(),r=!0,a=!1;const s=d=>(m,y)=>{var S;const g=go(e,y,d==="exit"?(S=e.presenceContext)==null?void 0:S.custom:void 0);if(g){const{transition:w,transitionEnd:j,...b}=g;m={...m,...b,...j}}return m};function l(d){t=d(e)}function c(d){const{props:m}=e,y=NL(e.parent)||{},g=[],S=new Set;let w={},j=1/0;for(let A=0;A<HV;A++){const _=VV[A],T=n[_],C=m[_]!==void 0?m[_]:y[_],O=oc(C),N=_===d?T.isActive:null;N===!1&&(j=A);let M=C===y[_]&&C!==m[_]&&O;if(M&&(r||a)&&e.manuallyAnimateOnMount&&(M=!1),T.protectedKeys={...w},!T.isActive&&N===null||!C&&!T.prevProp||Mp(C)||typeof C=="boolean")continue;if(_==="exit"&&T.isActive&&N!==!0){T.prevResolvedValues&&(w={...w,...T.prevResolvedValues});continue}const R=KV(T.prevProp,C);let D=R||_===d&&T.isActive&&!M&&O||A>j&&O,B=!1;const I=Array.isArray(C)?C:[C];let z=I.reduce(s(_),{});N===!1&&(z={});const{prevResolvedValues:H={}}=T,X={...H,...z},Y=Q=>{D=!0,S.has(Q)&&(B=!0,S.delete(Q)),T.needsAnimating[Q]=!0;const ie=e.getValue(Q);ie&&(ie.liveStyle=!1)};for(const Q in X){const ie=z[Q],se=H[Q];if(w.hasOwnProperty(Q))continue;let L=!1;v1(ie)&&v1(se)?L=!CL(ie,se)||R:L=ie!==se,L?ie!=null?Y(Q):S.add(Q):ie!==void 0&&S.has(Q)?Y(Q):T.protectedKeys[Q]=!0}T.prevProp=C,T.prevResolvedValues=z,T.isActive&&(w={...w,...z}),(r||a)&&e.blockInitialAnimation&&(D=!1);const $=M&&R;D&&(!$||B)&&g.push(...I.map(Q=>{const ie={type:_};if(typeof Q=="string"&&(r||a)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:se}=e,L=go(se,Q);if(se.enteringChildren&&L){const{delayChildren:G}=L.transition||{};ie.delay=J3(se.enteringChildren,e,G)}}return{animation:Q,options:ie}}))}if(S.size){const A={};if(typeof m.initial!="boolean"){const _=go(e,Array.isArray(m.initial)?m.initial[0]:m.initial);_&&_.transition&&(A.transition=_.transition)}S.forEach(_=>{const T=e.getBaseTarget(_),C=e.getValue(_);C&&(C.liveStyle=!0),A[_]=T??null}),g.push({animation:A})}let b=!!g.length;return r&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,a=!1,b?t(g):Promise.resolve()}function f(d,m){var g;if(n[d].isActive===m)return Promise.resolve();(g=e.variantChildren)==null||g.forEach(S=>{var w;return(w=S.animationState)==null?void 0:w.setActive(d,m)}),n[d].isActive=m;const y=c(d);for(const S in n)n[S].protectedKeys={};return y}return{animateChanges:c,setActive:f,setAnimateFunction:l,getState:()=>n,reset:()=>{n=XT(),a=!0}}}function KV(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!CL(t,e):!1}function Ja(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function XT(){return{animate:Ja(!0),whileInView:Ja(),whileHover:Ja(),whileTap:Ja(),whileDrag:Ja(),whileFocus:Ja(),exit:Ja()}}function T1(e,t){e.min=t.min,e.max=t.max}function br(e,t){T1(e.x,t.x),T1(e.y,t.y)}function WT(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const ML=1e-4,YV=1-ML,XV=1+ML,PL=.01,WV=0-PL,ZV=0+PL;function vn(e){return e.max-e.min}function QV(e,t,n){return Math.abs(e-t)<=n}function ZT(e,t,n,r=.5){e.origin=r,e.originPoint=ct(t.min,t.max,e.origin),e.scale=vn(n)/vn(t),e.translate=ct(n.min,n.max,e.origin)-e.originPoint,(e.scale>=YV&&e.scale<=XV||isNaN(e.scale))&&(e.scale=1),(e.translate>=WV&&e.translate<=ZV||isNaN(e.translate))&&(e.translate=0)}function Fu(e,t,n,r){ZT(e.x,t.x,n.x,r?r.originX:void 0),ZT(e.y,t.y,n.y,r?r.originY:void 0)}function QT(e,t,n,r=0){const a=r?ct(n.min,n.max,r):n.min;e.min=a+t.min,e.max=e.min+vn(t)}function JV(e,t,n,r){QT(e.x,t.x,n.x,r==null?void 0:r.x),QT(e.y,t.y,n.y,r==null?void 0:r.y)}function JT(e,t,n,r=0){const a=r?ct(n.min,n.max,r):n.min;e.min=t.min-a,e.max=e.min+vn(t)}function xh(e,t,n,r){JT(e.x,t.x,n.x,r==null?void 0:r.x),JT(e.y,t.y,n.y,r==null?void 0:r.y)}function eE(e,t,n,r,a){return e-=t,e=gh(e,1/n,r),a!==void 0&&(e=gh(e,1/a,r)),e}function e7(e,t=0,n=1,r=.5,a,s=e,l=e){if(Vr.test(t)&&(t=parseFloat(t),t=ct(l.min,l.max,t/100)-l.min),typeof t!="number")return;let c=ct(s.min,s.max,r);e===s&&(c-=t),e.min=eE(e.min,t,n,c,a),e.max=eE(e.max,t,n,c,a)}function tE(e,t,[n,r,a],s,l){e7(e,t[n],t[r],t[a],t.scale,s,l)}const t7=["x","scaleX","originX"],n7=["y","scaleY","originY"];function nE(e,t,n,r){tE(e.x,t,t7,n?n.x:void 0,r?r.x:void 0),tE(e.y,t,n7,n?n.y:void 0,r?r.y:void 0)}function rE(e){return e.translate===0&&e.scale===1}function RL(e){return rE(e.x)&&rE(e.y)}function iE(e,t){return e.min===t.min&&e.max===t.max}function r7(e,t){return iE(e.x,t.x)&&iE(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 DL(e,t){return aE(e.x,t.x)&&aE(e.y,t.y)}function oE(e){return vn(e.x)/vn(e.y)}function sE(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Br(e){return[e("x"),e("y")]}function i7(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||s||l)&&(r=`translate3d(${a}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:d,rotate:m,pathRotation:y,rotateX:g,rotateY:S,skewX:w,skewY:j}=n;d&&(r=`perspective(${d}px) ${r}`),m&&(r+=`rotate(${m}deg) `),y&&(r+=`rotate(${y}deg) `),g&&(r+=`rotateX(${g}deg) `),S&&(r+=`rotateY(${S}deg) `),w&&(r+=`skewX(${w}deg) `),j&&(r+=`skewY(${j}deg) `)}const c=e.x.scale*t.x,f=e.y.scale*t.y;return(c!==1||f!==1)&&(r+=`scale(${c}, ${f})`),r||"none"}const a7=Rw.length,lE=e=>typeof e=="string"?parseFloat(e):e,uE=e=>typeof e=="number"||ye.test(e);function o7(e,t,n,r,a,s){a?(e.opacity=ct(0,n.opacity??1,s7(r)),e.opacityExit=ct(t.opacity??1,0,l7(r))):s&&(e.opacity=ct(t.opacity??1,n.opacity??1,r));for(let l=0;l<a7;l++){const c=Rw[l];let f=cE(t,c),d=cE(n,c);if(f===void 0&&d===void 0)continue;f||(f=0),d||(d=0),f===0||d===0||uE(f)===uE(d)?(e[c]=Math.max(ct(lE(f),lE(d),r),0),(Vr.test(d)||Vr.test(f))&&(e[c]+="%")):e[c]=d}(t.rotate||n.rotate)&&(e.rotate=ct(t.rotate||0,n.rotate||0,r))}function cE(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const s7=kL(0,.5,T3),l7=kL(.5,.95,fr);function kL(e,t,n){return r=>r<e?0:r>t?1:n(ic(e,t,r))}function u7(e,t,n){const r=ln(e)?e:qs(e);return r.start(Cw("",r,t,n)),r.animation}function sc(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}const c7=(e,t)=>e.depth-t.depth;class f7{constructor(){this.children=[],this.isDirty=!1}add(t){vw(this.children,t),this.isDirty=!0}remove(t){fh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(c7),this.isDirty=!1,this.children.forEach(t)}}function d7(e,t){const n=yn.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(Aa(r),e(s-t))};return ft.setup(r,!0),()=>Aa(r)}function rh(e){return ln(e)?e.get():e}class h7{constructor(){this.members=[]}add(t){vw(this.members,t);for(let n=this.members.length-1;n>=0;n--){const r=this.members[n];if(r===t||r===this.lead||r===this.prevLead)continue;const a=r.instance;(!a||a.isConnected===!1)&&!r.snapshot&&(fh(this.members,r),r.unmount())}t.scheduleRender()}remove(t){if(fh(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){var n;for(let r=this.members.indexOf(t)-1;r>=0;r--){const a=this.members[r];if(a.isPresent!==!1&&((n=a.instance)==null?void 0:n.isConnected)!==!1)return this.promote(a),!0}return!1}promote(t,n){var a;const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=r.options,{layoutDependency:l}=t.options;(s===void 0||s!==l)&&(t.resumeFrom=r,n&&(r.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),(a=t.root)!=null&&a.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,r,a,s,l;(r=(n=t.options).onExitComplete)==null||r.call(n),(l=(a=t.resumingFrom)==null?void 0:(s=a.options).onExitComplete)==null||l.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const ih={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Gv=["","X","Y","Z"],p7=1e3;let m7=0;function Fv(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function LL(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=iL(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ft,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&LL(r)}function zL({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},c=t==null?void 0:t()){this.id=m7++,this.animationId=0,this.animationCommitId=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.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(g7),this.nodes.forEach(A7),this.nodes.forEach(O7),this.nodes.forEach(x7)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=c?c.root||c:this,this.path=c?[...c.path,c]:[],this.parent=c,this.depth=c?c.depth+1:0;for(let f=0;f<this.path.length;f++)this.path[f].shouldResetTransform=!0;this.root===this&&(this.nodes=new f7)}addEventListener(l,c){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new xw),this.eventHandlers.get(l).add(c)}notifyListeners(l,...c){const f=this.eventHandlers.get(l);f&&f.notify(...c)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=Lw(l)&&!vV(l),this.instance=l;const{layoutId:c,layout:f,visualElement:d}=this.options;if(d&&!d.current&&d.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(f||c)&&(this.isLayoutDirty=!0),e){let m,y=0;const g=()=>this.root.updateBlockedByResize=!1;ft.read(()=>{y=window.innerWidth}),e(l,()=>{const S=window.innerWidth;S!==y&&(y=S,this.root.updateBlockedByResize=!0,m&&m(),m=d7(g,250),ih.hasAnimatedSinceResize&&(ih.hasAnimatedSinceResize=!1,this.nodes.forEach(hE)))})}c&&this.root.registerSharedNode(c,this),this.options.animate!==!1&&d&&(c||f)&&this.addEventListener("didUpdate",({delta:m,hasLayoutChanged:y,hasRelativeLayoutChanged:g,layout:S})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const w=this.options.transition||d.getDefaultTransition()||C7,{onLayoutAnimationStart:j,onLayoutAnimationComplete:b}=d.getProps(),A=!this.targetLayout||!DL(this.targetLayout,S),_=!y&&g;if(this.options.layoutRoot||this.resumeFrom||_||y&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const T={...Nw(w,"layout"),onPlay:j,onComplete:b};(d.shouldReduceMotion||this.options.layoutRoot)&&(T.delay=0,T.type=!1),this.startAnimation(T),this.setAnimationOrigin(m,_,T.path)}else y||hE(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=S})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Aa(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(_7),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&LL(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let m=0;m<this.path.length;m++){const y=this.path[m];y.shouldResetTransform=!0,(typeof y.latestValues.x=="string"||typeof y.latestValues.y=="string")&&(y.isLayoutDirty=!0),y.updateScroll("snapshot"),y.options.layoutRoot&&y.willUpdate(!1)}const{layoutId:c,layout:f}=this.options;if(c===void 0&&!f)return;const d=this.getTransformTemplate();this.prevTransformTemplateValue=d?d(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const f=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),f&&this.nodes.forEach(S7),this.nodes.forEach(fE);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(dE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(w7),this.nodes.forEach(j7),this.nodes.forEach(y7),this.nodes.forEach(v7)):this.nodes.forEach(dE),this.clearAllSnapshots();const c=yn.now();sn.delta=Yr(0,1e3/60,c-sn.timestamp),sn.timestamp=c,sn.isProcessing=!0,zv.update.process(sn),zv.preRender.process(sn),zv.render.process(sn),sn.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Dw.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(b7),this.sharedNodes.forEach(T7)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ft.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ft.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!vn(this.snapshot.measuredBox.x)&&!vn(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let f=0;f<this.path.length;f++)this.path[f].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=Ht()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:c}=this.options;c&&c.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let c=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(c=!1),c&&this.instance){const f=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:f,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:f}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,c=this.projectionDelta&&!RL(this.projectionDelta),f=this.getTransformTemplate(),d=f?f(this.latestValues,""):void 0,m=d!==this.prevTransformTemplateValue;l&&this.instance&&(c||ro(this.latestValues)||m)&&(a(this.instance,d),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const c=this.measurePageBox();let f=this.removeElementScroll(c);return l&&(f=this.removeTransform(f)),M7(f),{animationId:this.root.animationId,measuredBox:c,layoutBox:f,latestValues:{},source:this.id}}measurePageBox(){var d;const{visualElement:l}=this.options;if(!l)return Ht();const c=l.measureViewportBox();if(!(((d=this.scroll)==null?void 0:d.wasRoot)||this.path.some(P7))){const{scroll:m}=this.root;m&&(qr(c.x,m.offset.x),qr(c.y,m.offset.y))}return c}removeElementScroll(l){var f;const c=Ht();if(br(c,l),(f=this.scroll)!=null&&f.wasRoot)return c;for(let d=0;d<this.path.length;d++){const m=this.path[d],{scroll:y,options:g}=m;m!==this.root&&y&&g.layoutScroll&&(y.wasRoot&&br(c,l),qr(c.x,y.offset.x),qr(c.y,y.offset.y))}return c}applyTransform(l,c=!1,f){var m,y;const d=f||Ht();br(d,l);for(let g=0;g<this.path.length;g++){const S=this.path[g];!c&&S.options.layoutScroll&&S.scroll&&S!==S.root&&(qr(d.x,-S.scroll.offset.x),qr(d.y,-S.scroll.offset.y)),ro(S.latestValues)&&nh(d,S.latestValues,(m=S.layout)==null?void 0:m.layoutBox)}return ro(this.latestValues)&&nh(d,this.latestValues,(y=this.layout)==null?void 0:y.layoutBox),d}removeTransform(l){var f;const c=Ht();br(c,l);for(let d=0;d<this.path.length;d++){const m=this.path[d];if(!ro(m.latestValues))continue;let y;m.instance&&(A1(m.latestValues)&&m.updateSnapshot(),y=Ht(),br(y,m.measurePageBox())),nE(c,m.latestValues,(f=m.snapshot)==null?void 0:f.layoutBox,y)}return ro(this.latestValues)&&nE(c,this.latestValues),c}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==sn.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var S;const c=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=c.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=c.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=c.isSharedProjectionDirty);const f=!!this.resumingFrom||this!==c;if(!(l||f&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:m,layoutId:y}=this.options;if(!this.layout||!(m||y))return;this.resolvedRelativeTargetAt=sn.timestamp;const g=this.getClosestProjectingParent();g&&this.linkedParentVersion!==g.layoutVersion&&!g.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&g&&g.layout?this.createRelativeTarget(g,this.layout.layoutBox,g.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Ht(),this.targetWithTransforms=Ht()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),JV(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):br(this.target,this.layout.layoutBox),SL(this.target,this.targetDelta)):br(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&g&&!!g.resumingFrom==!!this.resumingFrom&&!g.options.layoutScroll&&g.target&&this.animationProgress!==1?this.createRelativeTarget(g,this.target,g.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||A1(this.parent.latestValues)||bL(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(l,c,f){this.relativeParent=l,this.linkedParentVersion=l.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Ht(),this.relativeTargetOrigin=Ht(),xh(this.relativeTargetOrigin,c,f,this.options.layoutAnchor||void 0),br(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var w;const l=this.getLead(),c=!!this.resumingFrom||this!==l;let f=!0;if((this.isProjectionDirty||(w=this.parent)!=null&&w.isProjectionDirty)&&(f=!1),c&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(f=!1),this.resolvedRelativeTargetAt===sn.timestamp&&(f=!1),f)return;const{layout:d,layoutId:m}=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||m))return;br(this.layoutCorrected,this.layout.layoutBox);const y=this.treeScale.x,g=this.treeScale.y;EV(this.layoutCorrected,this.treeScale,this.path,c),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=Ht());const{target:S}=l;if(!S){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(WT(this.prevProjectionDelta.x,this.projectionDelta.x),WT(this.prevProjectionDelta.y,this.projectionDelta.y)),Fu(this.projectionDelta,this.layoutCorrected,S,this.latestValues),(this.treeScale.x!==y||this.treeScale.y!==g||!sE(this.projectionDelta.x,this.prevProjectionDelta.x)||!sE(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",S))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var c;if((c=this.options.visualElement)==null||c.scheduleRender(),l){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Ts(),this.projectionDelta=Ts(),this.projectionDeltaWithTransform=Ts()}setAnimationOrigin(l,c=!1,f){const d=this.snapshot,m=d?d.latestValues:{},y={...this.latestValues},g=Ts();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!c;const S=Ht(),w=d?d.source:void 0,j=this.layout?this.layout.source:void 0,b=w!==j,A=this.getStack(),_=!A||A.members.length<=1,T=!!(b&&!_&&this.options.crossfade===!0&&!this.path.some(N7));this.animationProgress=0;let C;const O=f==null?void 0:f.interpolateProjection(l);this.mixTargetDelta=N=>{const M=N/1e3,R=O==null?void 0:O(M);R?(g.x.translate=R.x,g.x.scale=ct(l.x.scale,1,M),g.x.origin=l.x.origin,g.x.originPoint=l.x.originPoint,g.y.translate=R.y,g.y.scale=ct(l.y.scale,1,M),g.y.origin=l.y.origin,g.y.originPoint=l.y.originPoint):(pE(g.x,l.x,M),pE(g.y,l.y,M)),this.setTargetDelta(g),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(xh(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),E7(this.relativeTarget,this.relativeTargetOrigin,S,M),C&&r7(this.relativeTarget,C)&&(this.isProjectionDirty=!1),C||(C=Ht()),br(C,this.relativeTarget)),b&&(this.animationValues=y,o7(y,m,this.latestValues,M,T,_)),R&&R.rotate!==void 0&&(this.animationValues||(this.animationValues=y),this.animationValues.pathRotation=R.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var c,f,d;this.notifyListeners("animationStart"),(c=this.currentAnimation)==null||c.stop(),(d=(f=this.resumingFrom)==null?void 0:f.currentAnimation)==null||d.stop(),this.pendingAnimation&&(Aa(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ft.update(()=>{ih.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=qs(0)),this.motionValue.jump(0,!1),this.currentAnimation=u7(this.motionValue,[0,1e3],{...l,velocity:0,isSync:!0,onUpdate:m=>{this.mixTargetDelta(m),l.onUpdate&&l.onUpdate(m)},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(p7),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:c,target:f,layout:d,latestValues:m}=l;if(!(!c||!f||!d)){if(this!==l&&this.layout&&d&&$L(this.options.animationType,this.layout.layoutBox,d.layoutBox)){f=this.target||Ht();const y=vn(this.layout.layoutBox.x);f.x.min=l.target.x.min,f.x.max=f.x.min+y;const g=vn(this.layout.layoutBox.y);f.y.min=l.target.y.min,f.y.max=f.y.min+g}br(c,f),nh(c,m),Fu(this.projectionDeltaWithTransform,this.layoutCorrected,c,m)}}registerSharedNode(l,c){this.sharedNodes.has(l)||this.sharedNodes.set(l,new h7),this.sharedNodes.get(l).add(c);const d=c.options.initialPromotionConfig;c.promote({transition:d?d.transition:void 0,preserveFollowOpacity:d&&d.shouldPreserveFollowOpacity?d.shouldPreserveFollowOpacity(c):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var c;const{layoutId:l}=this.options;return l?((c=this.getStack())==null?void 0:c.lead)||this:this}getPrevLead(){var c;const{layoutId:l}=this.options;return l?(c=this.getStack())==null?void 0:c.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:c,preserveFollowOpacity:f}={}){const d=this.getStack();d&&d.promote(this,f),l&&(this.projectionDelta=void 0,this.needsReset=!0),c&&this.setOptions({transition:c})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let c=!1;const{latestValues:f}=l;if((f.z||f.rotate||f.rotateX||f.rotateY||f.rotateZ||f.skewX||f.skewY)&&(c=!0),!c)return;const d={};f.z&&Fv("z",l,d,this.animationValues);for(let m=0;m<Gv.length;m++)Fv(`rotate${Gv[m]}`,l,d,this.animationValues),Fv(`skew${Gv[m]}`,l,d,this.animationValues);l.render();for(const m in d)l.setStaticValue(m,d[m]),this.animationValues&&(this.animationValues[m]=d[m]);l.scheduleRender()}applyProjectionStyles(l,c){if(!this.instance||this.isSVG)return;if(!this.isVisible){l.visibility="hidden";return}const f=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,l.visibility="",l.opacity="",l.pointerEvents=rh(c==null?void 0:c.pointerEvents)||"",l.transform=f?f(this.latestValues,""):"none";return}const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){this.options.layoutId&&(l.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,l.pointerEvents=rh(c==null?void 0:c.pointerEvents)||""),this.hasProjected&&!ro(this.latestValues)&&(l.transform=f?f({},""):"none",this.hasProjected=!1);return}l.visibility="";const m=d.animationValues||d.latestValues;this.applyTransformsToTarget();let y=i7(this.projectionDeltaWithTransform,this.treeScale,m);f&&(y=f(m,y)),l.transform=y;const{x:g,y:S}=this.projectionDelta;l.transformOrigin=`${g.origin*100}% ${S.origin*100}% 0`,d.animationValues?l.opacity=d===this?m.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:m.opacityExit:l.opacity=d===this?m.opacity!==void 0?m.opacity:"":m.opacityExit!==void 0?m.opacityExit:0;for(const w in _1){if(m[w]===void 0)continue;const{correct:j,applyTo:b,isCSSVariable:A}=_1[w],_=y==="none"?m[w]:j(m[w],d);if(b){const T=b.length;for(let C=0;C<T;C++)l[b[C]]=_}else A?this.options.visualElement.renderState.vars[w]=_:l[w]=_}this.options.layoutId&&(l.pointerEvents=d===this?rh(c==null?void 0:c.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var c;return(c=l.currentAnimation)==null?void 0:c.stop()}),this.root.nodes.forEach(fE),this.root.sharedNodes.clear()}}}function y7(e){e.updateLayout()}function v7(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:s}=e.options,l=t.source!==e.layout.source;if(s==="size")Br(y=>{const g=l?t.measuredBox[y]:t.layoutBox[y],S=vn(g);g.min=r[y].min,g.max=g.min+S});else if(s==="x"||s==="y"){const y=s==="x"?"y":"x";T1(l?t.measuredBox[y]:t.layoutBox[y],r[y])}else $L(s,t.layoutBox,r)&&Br(y=>{const g=l?t.measuredBox[y]:t.layoutBox[y],S=vn(r[y]);g.max=g.min+S,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[y].max=e.relativeTarget[y].min+S)});const c=Ts();Fu(c,r,t.layoutBox);const f=Ts();l?Fu(f,e.applyTransform(a,!0),t.measuredBox):Fu(f,r,t.layoutBox);const d=!RL(c);let m=!1;if(!e.resumeFrom){const y=e.getClosestProjectingParent();if(y&&!y.resumeFrom){const{snapshot:g,layout:S}=y;if(g&&S){const w=e.options.layoutAnchor||void 0,j=Ht();xh(j,t.layoutBox,g.layoutBox,w);const b=Ht();xh(b,r,S.layoutBox,w),DL(j,b)||(m=!0),y.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=j,e.relativeParent=y)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:f,layoutDelta:c,hasLayoutChanged:d,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function g7(e){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 x7(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function b7(e){e.clearSnapshot()}function fE(e){e.clearMeasurements()}function S7(e){e.isLayoutDirty=!0,e.updateLayout()}function dE(e){e.isLayoutDirty=!1}function w7(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function j7(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function hE(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function A7(e){e.resolveTargetDelta()}function O7(e){e.calcProjection()}function _7(e){e.resetSkewAndRotation()}function T7(e){e.removeLeadSnapshot()}function pE(e,t,n){e.translate=ct(t.translate,0,n),e.scale=ct(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function mE(e,t,n,r){e.min=ct(t.min,n.min,r),e.max=ct(t.max,n.max,r)}function E7(e,t,n,r){mE(e.x,t.x,n.x,r),mE(e.y,t.y,n.y,r)}function N7(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const C7={duration:.45,ease:[.4,0,.1,1]},yE=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),vE=yE("applewebkit/")&&!yE("chrome/")?Math.round:fr;function gE(e){e.min=vE(e.min),e.max=vE(e.max)}function M7(e){gE(e.x),gE(e.y)}function $L(e,t,n){return e==="position"||e==="preserve-aspect"&&!QV(oE(t),oE(n),.2)}function P7(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const R7=zL({attachResizeListener:(e,t)=>sc(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Kv={current:void 0},BL=zL({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Kv.current){const e=new R7({});e.mount(window),e.setOptions({layoutScroll:!0}),Kv.current=e}return Kv.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Iw=P.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function xE(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function D7(...e){return t=>{let n=!1;const r=e.map(a=>{const s=xE(a,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let a=0;a<r.length;a++){const s=r[a];typeof s=="function"?s():xE(e[a],null)}}}}function k7(...e){return P.useCallback(D7(...e),e)}class L7 extends P.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(Qd(n)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const r=n.offsetParent,a=Qd(r)&&r.offsetWidth||0,s=Qd(r)&&r.offsetHeight||0,l=getComputedStyle(n),c=this.props.sizeRef.current;c.height=parseFloat(l.height),c.width=parseFloat(l.width),c.top=n.offsetTop,c.left=n.offsetLeft,c.right=a-c.width-c.left,c.bottom=s-c.height-c.top,c.direction=l.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function z7({children:e,isPresent:t,anchorX:n,anchorY:r,root:a,pop:s}){var g;const l=P.useId(),c=P.useRef(null),f=P.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:d}=P.useContext(Iw),m=((g=e.props)==null?void 0:g.ref)??(e==null?void 0:e.ref),y=k7(c,m);return P.useInsertionEffect(()=>{const{width:S,height:w,top:j,left:b,right:A,bottom:_,direction:T}=f.current;if(t||s===!1||!c.current||!S||!w)return;const C=T==="rtl",O=n==="left"?C?`right: ${A}`:`left: ${b}`:C?`left: ${b}`:`right: ${A}`,N=r==="bottom"?`bottom: ${_}`:`top: ${j}`;c.current.dataset.motionPopId=l;const M=document.createElement("style");d&&(M.nonce=d);const R=a??document.head;return R.appendChild(M),M.sheet&&M.sheet.insertRule(`
[data-motion-pop-id="${l}"] {
position: absolute !important;
width: ${S}px !important;
height: ${w}px !important;
${O}px !important;
${N}px !important;
}
`),()=>{var D;(D=c.current)==null||D.removeAttribute("data-motion-pop-id"),R.contains(M)&&R.removeChild(M)}},[t]),p.jsx(L7,{isPresent:t,childRef:c,sizeRef:f,pop:s,children:s===!1?e:P.cloneElement(e,{ref:y})})}const $7=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:s,mode:l,anchorX:c,anchorY:f,root:d})=>{const m=mw(B7),y=P.useId(),g=P.useRef(n),S=P.useRef(r);yw(()=>{g.current=n,S.current=r});let w=!0,j=P.useMemo(()=>(w=!1,{id:y,initial:t,isPresent:n,custom:a,onExitComplete:b=>{m.set(b,!0);for(const A of m.values())if(!A)return;r&&r()},register:b=>(m.set(b,!1),()=>{var A;m.delete(b),!g.current&&!m.size&&((A=S.current)==null||A.call(S))})}),[n,m,r]);return s&&w&&(j={...j}),P.useMemo(()=>{m.forEach((b,A)=>m.set(A,!1))},[n]),P.useEffect(()=>{!n&&!m.size&&r&&r()},[n]),e=p.jsx(z7,{pop:l==="popLayout",isPresent:n,anchorX:c,anchorY:f,root:d,children:e}),p.jsx(Np.Provider,{value:j,children:e})};function B7(){return new Map}function qL(e=!0){const t=P.useContext(Np);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=P.useId();P.useEffect(()=>{if(e)return a(s)},[e]);const l=P.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const Md=e=>e.key||"";function bE(e){const t=[];return P.Children.forEach(e,n=>{P.isValidElement(n)&&t.push(n)}),t}const Ku=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:s="sync",propagate:l=!1,anchorX:c="left",anchorY:f="top",root:d})=>{const[m,y]=qL(l),g=P.useMemo(()=>bE(e),[e]),S=l&&!m?[]:g.map(Md),w=P.useRef(!0),j=P.useRef(g),b=mw(()=>new Map),A=P.useRef(new Set),[_,T]=P.useState(g),[C,O]=P.useState(g);yw(()=>{w.current=!1,j.current=g;for(let R=0;R<C.length;R++){const D=Md(C[R]);S.includes(D)?(b.delete(D),A.current.delete(D)):b.get(D)!==!0&&b.set(D,!1)}},[C,S.length,S.join("-")]);const N=[];if(g!==_){let R=[...g];for(let D=0;D<C.length;D++){const B=C[D],I=Md(B);S.includes(I)||(R.splice(D,0,B),N.push(B))}return s==="wait"&&N.length&&(R=N),O(bE(R)),T(g),null}const{forceRender:M}=P.useContext(pw);return p.jsx(p.Fragment,{children:C.map(R=>{const D=Md(R),B=l&&!m?!1:g===C||S.includes(D),I=()=>{if(A.current.has(D))return;if(b.has(D))A.current.add(D),b.set(D,!0);else return;let z=!0;b.forEach(H=>{H||(z=!1)}),z&&(M==null||M(),O(j.current),l&&(y==null||y()),r&&r())};return p.jsx($7,{isPresent:B,initial:!w.current||n?void 0:!1,custom:t,presenceAffectsLayout:a,mode:s,root:d,onExitComplete:B?void 0:I,anchorX:c,anchorY:f,children:R},D)})})},IL=P.createContext({strict:!1}),SE={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"]};let wE=!1;function q7(){if(wE)return;const e={};for(const t in SE)e[t]={isEnabled:n=>SE[t].some(r=>!!n[r])};vL(e),wE=!0}function UL(){return q7(),AV()}function I7(e){const t=UL();for(const n in e)t[n]={...t[n],...e[n]};vL(t)}const U7=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","propagate","ignoreStrict","viewport"]);function bh(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||U7.has(e)}let VL=e=>!bh(e);function V7(e){typeof e=="function"&&(VL=t=>t.startsWith("on")?!bh(t):e(t))}try{V7(require("@emotion/is-prop-valid").default)}catch{}function H7(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||ln(e[a])||(VL(a)||n===!0&&bh(a)||!t&&!bh(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const Rp=P.createContext({});function G7(e,t){if(Pp(e)){const{initial:n,animate:r}=e;return{initial:n===!1||oc(n)?n:void 0,animate:oc(r)?r:void 0}}return e.inherit!==!1?t:{}}function F7(e){const{initial:t,animate:n}=G7(e,P.useContext(Rp));return P.useMemo(()=>({initial:t,animate:n}),[jE(t),jE(n)])}function jE(e){return Array.isArray(e)?e.join(" "):e}const Uw=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function HL(e,t,n){for(const r in t)!ln(t[r])&&!AL(r,n)&&(e[r]=t[r])}function K7({transformTemplate:e},t){return P.useMemo(()=>{const n=Uw();return Bw(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Y7(e,t){const n=e.style||{},r={};return HL(r,n,e),Object.assign(r,K7(e,t)),r}function X7(e,t){const n={},r=Y7(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}const GL=()=>({...Uw(),attrs:{}});function W7(e,t,n,r){const a=P.useMemo(()=>{const s=GL();return OL(s,t,TL(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};HL(s,e.style,e),a.style={...s,...a.style}}return a}const Z7=["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 Vw(e){return typeof e!="string"||e.includes("-")?!1:!!(Z7.indexOf(e)>-1||/[A-Z]/u.test(e))}function Q7(e,t,n,{latestValues:r},a,s=!1,l){const f=(l??Vw(e)?W7:X7)(t,r,a,e),d=H7(t,typeof e=="string",s),m=e!==P.Fragment?{...d,...f,ref:n}:{},{children:y}=t,g=P.useMemo(()=>ln(y)?y.get():y,[y]);return P.createElement(e,{...m,children:g})}function J7({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:e9(n,r,a,e),renderState:t()}}function e9(e,t,n,r){const a={},s=r(e,{});for(const g in s)a[g]=rh(s[g]);let{initial:l,animate:c}=e;const f=Pp(e),d=mL(e);t&&d&&!f&&e.inherit!==!1&&(l===void 0&&(l=t.initial),c===void 0&&(c=t.animate));let m=n?n.initial===!1:!1;m=m||l===!1;const y=m?c:l;if(y&&typeof y!="boolean"&&!Mp(y)){const g=Array.isArray(y)?y:[y];for(let S=0;S<g.length;S++){const w=Mw(e,g[S]);if(w){const{transitionEnd:j,transition:b,...A}=w;for(const _ in A){let T=A[_];if(Array.isArray(T)){const C=m?T.length-1:0;T=T[C]}T!==null&&(a[_]=T)}for(const _ in j)a[_]=j[_]}}}return a}const FL=e=>(t,n)=>{const r=P.useContext(Rp),a=P.useContext(Np),s=()=>J7(e,t,r,a);return n?s():mw(s)},t9=FL({scrapeMotionValuesFromProps:qw,createRenderState:Uw}),n9=FL({scrapeMotionValuesFromProps:EL,createRenderState:GL}),r9=Symbol.for("motionComponentSymbol");function i9(e,t,n){const r=P.useRef(n);P.useInsertionEffect(()=>{r.current=n});const a=P.useRef(null);return P.useCallback(s=>{var c;s&&((c=e.onMount)==null||c.call(e,s)),t&&(s?t.mount(s):t.unmount());const l=r.current;if(typeof l=="function")if(s){const f=l(s);typeof f=="function"&&(a.current=f)}else a.current?(a.current(),a.current=null):l(s);else l&&(l.current=s)},[t])}const KL=P.createContext({});function As(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function a9(e,t,n,r,a,s){var T,C;const{visualElement:l}=P.useContext(Rp),c=P.useContext(IL),f=P.useContext(Np),d=P.useContext(Iw),m=d.reducedMotion,y=d.skipAnimations,g=P.useRef(null),S=P.useRef(!1);r=r||c.renderer,!g.current&&r&&(g.current=r(e,{visualState:t,parent:l,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m,skipAnimations:y,isSVG:s}),S.current&&g.current&&(g.current.manuallyAnimateOnMount=!0));const w=g.current,j=P.useContext(KL);w&&!w.projection&&a&&(w.type==="html"||w.type==="svg")&&o9(g.current,n,a,j);const b=P.useRef(!1);P.useInsertionEffect(()=>{w&&b.current&&w.update(n,f)});const A=n[rL],_=P.useRef(!!A&&typeof window<"u"&&!((T=window.MotionHandoffIsComplete)!=null&&T.call(window,A))&&((C=window.MotionHasOptimisedAnimation)==null?void 0:C.call(window,A)));return yw(()=>{S.current=!0,w&&(b.current=!0,window.MotionIsMounted=!0,w.updateFeatures(),w.scheduleRenderMicrotask(),_.current&&w.animationState&&w.animationState.animateChanges())}),P.useEffect(()=>{w&&(!_.current&&w.animationState&&w.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{var O;(O=window.MotionHandoffMarkAsComplete)==null||O.call(window,A)}),_.current=!1),w.enteringChildren=void 0)}),w}function o9(e,t,n,r){const{layoutId:a,layout:s,drag:l,dragConstraints:c,layoutScroll:f,layoutRoot:d,layoutAnchor:m,layoutCrossfade:y}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:YL(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||c&&As(c),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:f,layoutRoot:d,layoutAnchor:m})}function YL(e){if(e)return e.options.allowProjection!==!1?e.projection:YL(e.parent)}function Yv(e,{forwardMotionProps:t=!1,type:n}={},r,a){r&&I7(r);const s=n?n==="svg":Vw(e),l=s?n9:t9;function c(d,m){let y;const g={...P.useContext(Iw),...d,layoutId:s9(d)},{isStatic:S}=g,w=F7(d),j=l(d,S);if(!S&&typeof window<"u"){l9();const b=u9(g);y=b.MeasureLayout,w.visualElement=a9(e,j,g,a,b.ProjectionNode,s)}return p.jsxs(Rp.Provider,{value:w,children:[y&&w.visualElement?p.jsx(y,{visualElement:w.visualElement,...g}):null,Q7(e,d,i9(j,w.visualElement,m),j,S,t,s)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const f=P.forwardRef(c);return f[r9]=e,f}function s9({layoutId:e}){const t=P.useContext(pw).id;return t&&e!==void 0?t+"-"+e:e}function l9(e,t){P.useContext(IL).strict}function u9(e){const t=UL(),{drag:n,layout:r}=t;if(!n&&!r)return{};const a={...n,...r};return{MeasureLayout:n!=null&&n.isEnabled(e)||r!=null&&r.isEnabled(e)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function c9(e,t){if(typeof Proxy>"u")return Yv;const n=new Map,r=(s,l)=>Yv(s,l,e,t),a=(s,l)=>r(s,l);return new Proxy(a,{get:(s,l)=>l==="create"?r:(n.has(l)||n.set(l,Yv(l,void 0,e,t)),n.get(l))})}const f9=(e,t)=>t.isSVG??Vw(e)?new IV(t):new kV(t,{allowProjection:e!==P.Fragment});class d9 extends Na{constructor(t){super(t),t.animationState||(t.animationState=FV(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Mp(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.call(this)}}let h9=0;class p9 extends Na{constructor(){super(...arguments),this.id=h9++,this.isExitComplete=!1}update(){var s;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;if(t&&r===!1){if(this.isExitComplete){const{initial:l,custom:c}=this.node.getProps();if(typeof l=="string"||typeof l=="object"&&l!==null&&!Array.isArray(l)){const f=go(this.node,l,c);if(f){const{transition:d,transitionEnd:m,...y}=f;for(const g in y)(s=this.node.getValue(g))==null||s.jump(y[g])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const m9={animation:{Feature:d9},exit:{Feature:p9}};function Wc(e){return{point:{x:e.pageX,y:e.pageY}}}const y9=e=>t=>kw(t)&&e(t,Wc(t));function Yu(e,t,n,r){return sc(e,t,y9(n),r)}const XL=({current:e})=>e?e.ownerDocument.defaultView:null,AE=(e,t)=>Math.abs(e-t);function v9(e,t){const n=AE(e.x,t.x),r=AE(e.y,t.y);return Math.sqrt(n**2+r**2)}const OE=new Set(["auto","scroll"]);class WL{constructor(t,n,{transformPagePoint:r,contextWindow:a=window,dragSnapToOrigin:s=!1,distanceThreshold:l=3,element:c}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=w=>{this.handleScroll(w.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Pd(this.lastRawMoveEventInfo,this.transformPagePoint));const w=Xv(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,b=v9(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!b)return;const{point:A}=w,{timestamp:_}=sn;this.history.push({...A,timestamp:_});const{onStart:T,onMove:C}=this.handlers;j||(T&&T(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,w)},this.handlePointerMove=(w,j)=>{this.lastMoveEvent=w,this.lastRawMoveEventInfo=j,this.lastMoveEventInfo=Pd(j,this.transformPagePoint),ft.update(this.updatePoint,!0)},this.handlePointerUp=(w,j)=>{this.end();const{onEnd:b,onSessionEnd:A,resumeAnimation:_}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&_&&_(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Xv(w.type==="pointercancel"?this.lastMoveEventInfo:Pd(j,this.transformPagePoint),this.history);this.startEvent&&b&&b(w,T),A&&A(w,T)},!kw(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=l,this.contextWindow=a||window;const f=Wc(t),d=Pd(f,this.transformPagePoint),{point:m}=d,{timestamp:y}=sn;this.history=[{...m,timestamp:y}];const{onSessionStart:g}=n;g&&g(t,Xv(d,this.history));const S={passive:!0,capture:!0};this.removeListeners=Kc(Yu(this.contextWindow,"pointermove",this.handlePointerMove,S),Yu(this.contextWindow,"pointerup",this.handlePointerUp,S),Yu(this.contextWindow,"pointercancel",this.handlePointerUp,S)),c&&this.startScrollTracking(c)}startScrollTracking(t){let n=t.parentElement;for(;n;){const r=getComputedStyle(n);(OE.has(r.overflowX)||OE.has(r.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const n=this.scrollPositions.get(t);if(!n)return;const r=t===window,a=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},s={x:a.x-n.x,y:a.y-n.y};s.x===0&&s.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=s.x,this.lastMoveEventInfo.point.y+=s.y):this.history.length>0&&(this.history[0].x-=s.x,this.history[0].y-=s.y),this.scrollPositions.set(t,a),ft.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Aa(this.updatePoint)}}function Pd(e,t){return t?{point:t(e.point)}:e}function _E(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Xv({point:e},t){return{point:e,delta:_E(e,ZL(t)),offset:_E(e,g9(t)),velocity:x9(t,.1)}}function g9(e){return e[0]}function ZL(e){return e[e.length-1]}function x9(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=ZL(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>Hn(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&a.timestamp-r.timestamp>Hn(t)*2&&(r=e[1]);const s=ur(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function b9(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?ct(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?ct(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 S9(e,{top:t,left:n,bottom:r,right:a}){return{x:TE(e.x,n,a),y:TE(e.y,t,r)}}function EE(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 w9(e,t){return{x:EE(e.x,t.x),y:EE(e.y,t.y)}}function j9(e,t){let n=.5;const r=vn(e),a=vn(t);return a>r?n=ic(t.min,t.max-r,e.min):r>a&&(n=ic(e.min,e.max-a,t.min)),Yr(0,1,n)}function A9(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 E1=.35;function O9(e=E1){return e===!1?e=0:e===!0&&(e=E1),{x:NE(e,"left","right"),y:NE(e,"top","bottom")}}function NE(e,t,n){return{min:CE(e,t),max:CE(e,n)}}function CE(e,t){return typeof e=="number"?e:e[t]||0}const _9=new WeakMap;class T9{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=Ht(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const s=y=>{n&&this.snapToCursor(Wc(y).point),this.stopAnimation()},l=(y,g)=>{const{drag:S,dragPropagation:w,onDragStart:j}=this.getProps();if(S&&!w&&(this.openDragLock&&this.openDragLock(),this.openDragLock=eV(S),!this.openDragLock))return;this.latestPointerEvent=y,this.latestPanInfo=g,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Br(A=>{let _=this.getAxisMotionValue(A).get()||0;if(Vr.test(_)){const{projection:T}=this.visualElement;if(T&&T.layout){const C=T.layout.layoutBox[A];C&&(_=vn(C)*(parseFloat(_)/100))}}this.originPoint[A]=_}),j&&ft.update(()=>j(y,g),!1,!0),g1(this.visualElement,"transform");const{animationState:b}=this.visualElement;b&&b.setActive("whileDrag",!0)},c=(y,g)=>{this.latestPointerEvent=y,this.latestPanInfo=g;const{dragPropagation:S,dragDirectionLock:w,onDirectionLock:j,onDrag:b}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:A}=g;if(w&&this.currentDirection===null){this.currentDirection=N9(A),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",g.point,A),this.updateAxis("y",g.point,A),this.visualElement.render(),b&&ft.update(()=>b(y,g),!1,!0)},f=(y,g)=>{this.latestPointerEvent=y,this.latestPanInfo=g,this.stop(y,g),this.latestPointerEvent=null,this.latestPanInfo=null},d=()=>{const{dragSnapToOrigin:y}=this.getProps();(y||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:m}=this.getProps();this.panSession=new WL(t,{onSessionStart:s,onStart:l,onMove:c,onSessionEnd:f,resumeAnimation:d},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:m,distanceThreshold:r,contextWindow:XL(this.visualElement),element:this.visualElement.current})}stop(t,n){const r=t||this.latestPointerEvent,a=n||this.latestPanInfo,s=this.isDragging;if(this.cancel(),!s||!a||!r)return;const{velocity:l}=a;this.startAnimation(l);const{onDragEnd:c}=this.getProps();c&&ft.postRender(()=>c(r,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!Rd(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=b9(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,a=this.constraints;t&&As(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=S9(r.layoutBox,t):this.constraints=!1,this.elastic=O9(n),a!==this.constraints&&!As(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&Br(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=A9(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!As(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());const s=NV(r,a.root,this.visualElement.getTransformPagePoint());let l=w9(a.layout.layoutBox,s);if(n){const c=n(_V(l));this.hasMutatedConstraints=!!c,c&&(l=xL(c))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:c}=this.getProps(),f=this.constraints||{},d=Br(m=>{if(!Rd(m,n,this.currentDirection))return;let y=f&&f[m]||{};(l===!0||l===m)&&(y={min:0,max:0});const g=a?200:1e6,S=a?40:1e7,w={type:"inertia",velocity:r?t[m]:0,bounceStiffness:g,bounceDamping:S,timeConstant:750,restDelta:1,restSpeed:10,...s,...y};return this.startAxisValueAnimation(m,w)});return Promise.all(d).then(c)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return g1(this.visualElement,t),r.start(Cw(t,r,0,n,this.visualElement,!1))}stopAnimation(){Br(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps()[n];return a||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){Br(n=>{const{drag:r}=this.getProps();if(!Rd(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:c}=a.layout.layoutBox[n],f=s.get()||0;s.set(t[n]-ct(l,c,.5)+f)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!As(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Br(l=>{const c=this.getAxisMotionValue(l);if(c&&this.constraints!==!1){const f=c.get();a[l]=j9({min:f,max:f},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),Br(l=>{if(!Rd(l,t,null))return;const c=this.getAxisMotionValue(l),{min:f,max:d}=this.constraints[l];c.set(ct(f,d,a[l]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;_9.set(this.visualElement,this);const t=this.visualElement.current,n=Yu(t,"pointerdown",d=>{const{drag:m,dragListener:y=!0}=this.getProps(),g=d.target,S=g!==t&&oV(g);m&&y&&!S&&this.start(d)});let r;const a=()=>{const{dragConstraints:d}=this.getProps();As(d)&&d.current&&(this.constraints=this.resolveRefConstraints(),r||(r=E9(t,d.current,()=>this.scalePositionWithinConstraints())))},{projection:s}=this.visualElement,l=s.addEventListener("measure",a);s&&!s.layout&&(s.root&&s.root.updateScroll(),s.updateLayout()),ft.read(a);const c=sc(window,"resize",()=>this.scalePositionWithinConstraints()),f=s.addEventListener("didUpdate",(({delta:d,hasLayoutChanged:m})=>{this.isDragging&&m&&(Br(y=>{const g=this.getAxisMotionValue(y);g&&(this.originPoint[y]+=d[y].translate,g.set(g.get()+d[y].translate))}),this.visualElement.render())}));return()=>{c(),n(),l(),f&&f(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:l=E1,dragMomentum:c=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:c}}}function ME(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function E9(e,t,n){const r=$T(e,ME(n)),a=$T(t,ME(n));return()=>{r(),a()}}function Rd(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function N9(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class C9 extends Na{constructor(t){super(t),this.removeGroupControls=fr,this.removeListeners=fr,this.controls=new T9(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||fr}update(){const{dragControls:t}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};t!==n&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Wv=e=>(t,n)=>{e&&ft.update(()=>e(t,n),!1,!0)};class M9 extends Na{constructor(){super(...arguments),this.removePointerDownListener=fr}onPointerDown(t){this.session=new WL(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:XL(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:Wv(t),onStart:Wv(n),onMove:Wv(r),onEnd:(s,l)=>{delete this.session,a&&ft.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=Yu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Zv=!1;class P9 extends P.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),Zv&&s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),ih.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,t.layoutDependency!==n&&l.setOptions({...l.options,layoutDependency:n}),Zv=!0,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||ft.postRender(()=>{const c=l.getStack();(!c||!c.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:n}=this.props,{projection:r}=t;r&&(r.options.layoutAnchor=n,r.root.didUpdate(),Dw.postRender(()=>{!r.currentAnimation&&r.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;Zv=!0,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 QL(e){const[t,n]=qL(),r=P.useContext(pw);return p.jsx(P9,{...e,layoutGroup:r,switchLayoutGroup:P.useContext(KL),isPresent:t,safeToRemove:n})}const R9={pan:{Feature:M9},drag:{Feature:C9,ProjectionNode:BL,MeasureLayout:QL}};function PE(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&ft.postRender(()=>s(t,Wc(t)))}class D9 extends Na{mount(){const{current:t}=this.node;t&&(this.unmount=nV(t,(n,r)=>(PE(this.node,r,"Start"),a=>PE(this.node,a,"End"))))}unmount(){}}class k9 extends Na{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=Kc(sc(this.node.current,"focus",()=>this.onFocus()),sc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function RE(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&ft.postRender(()=>s(t,Wc(t)))}class L9 extends Na{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:n,propagate:r}=this.node.props;this.unmount=lV(t,(a,s)=>(RE(this.node,s,"Start"),(l,{success:c})=>RE(this.node,l,c?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const N1=new WeakMap,Qv=new WeakMap,z9=e=>{const t=N1.get(e.target);t&&t(e)},$9=e=>{e.forEach(z9)};function B9({root:e,...t}){const n=e||document;Qv.has(n)||Qv.set(n,{});const r=Qv.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver($9,{root:e,...t})),r[a]}function q9(e,t,n){const r=B9(t);return N1.set(e,n),r.observe(e),()=>{N1.delete(e),r.unobserve(e)}}const I9={some:0,all:1};class U9 extends Na{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var f;(f=this.stopObserver)==null||f.call(this);const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:I9[a]},c=d=>{const{isIntersecting:m}=d;if(this.isInView===m||(this.isInView=m,s&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:y,onViewportLeave:g}=this.node.getProps(),S=m?y:g;S&&S(d)};this.stopObserver=q9(this.node.current,l,c)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(V9(t,n))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function V9({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const H9={inView:{Feature:U9},tap:{Feature:L9},focus:{Feature:k9},hover:{Feature:D9}},G9={layout:{ProjectionNode:BL,MeasureLayout:QL}},F9={...m9,...H9,...R9,...G9},sr=c9(F9,f9),Hw=m3(e=>({sidebarOpen:!0,toggleSidebar:()=>e(t=>({sidebarOpen:!t.sidebarOpen})),setSidebarOpen:t=>e({sidebarOpen:t})}));/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const K9=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),JL=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/var Y9={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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const X9=P.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...c},f)=>P.createElement("svg",{ref:f,...Y9,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:JL("lucide",a),...c},[...l.map(([d,m])=>P.createElement(d,m)),...Array.isArray(s)?s:[s]]));/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const be=(e,t)=>{const n=P.forwardRef(({className:r,...a},s)=>P.createElement(X9,{ref:s,iconNode:t,className:JL(`lucide-${K9(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const W9=be("ArrowDownRight",[["path",{d:"m7 7 10 10",key:"1fmybs"}],["path",{d:"M17 7v10H7",key:"6fjiku"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Z9=be("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const C1=be("ArrowUpRight",[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const M1=be("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lc=be("Briefcase",[["path",{d:"M16 20V4a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v16",key:"jecpp"}],["rect",{width:"20",height:"14",x:"2",y:"6",rx:"2",key:"i6l2r4"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Gw=be("Building2",[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Q9=be("Calendar",[["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"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const J9=be("Camera",[["path",{d:"M14.5 4h-5L7 7H4a2 2 0 0 0-2 2v9a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-3l-2.5-3z",key:"1tc9qg"}],["circle",{cx:"12",cy:"13",r:"3",key:"1vg3eu"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const eH=be("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const tH=be("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const nH=be("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const rH=be("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Fw=be("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Zc=be("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Is=be("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const iH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xu=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const DE=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Xr=be("Ellipsis",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"19",cy:"12",r:"1",key:"1wjl8i"}],["circle",{cx:"5",cy:"12",r:"1",key:"1pcz8c"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const aH=be("EyeOff",[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const e4=be("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oH=be("FileCheck",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"m9 15 2 2 4-4",key:"1grp1n"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const co=be("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Qc=be("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const sH=be("GitBranch",[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const ah=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const t4=be("Headphones",[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const kE=be("Key",[["path",{d:"m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4",key:"g0fldk"}],["path",{d:"m21 2-9.6 9.6",key:"1j0ho8"}],["circle",{cx:"7.5",cy:"15.5",r:"5.5",key:"yqb3hr"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const lH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const uH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const cH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const wo=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const n4=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const fH=be("Menu",[["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}],["line",{x1:"4",x2:"20",y1:"6",y2:"6",key:"1owob3"}],["line",{x1:"4",x2:"20",y1:"18",y2:"18",key:"yk5zj1"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const dH=be("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const hH=be("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const pH=be("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const mH=be("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const yH=be("Newspaper",[["path",{d:"M4 22h16a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v16a2 2 0 0 1-2 2Zm0 0a2 2 0 0 1-2-2v-9c0-1.1.9-2 2-2h2",key:"7pis2x"}],["path",{d:"M18 14h-8",key:"sponae"}],["path",{d:"M15 18h-5",key:"95g1m2"}],["path",{d:"M10 6h8v4h-8V6Z",key:"smlsk5"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const vH=be("Package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["path",{d:"m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7",key:"yx3hmr"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const LE=be("Pause",[["rect",{x:"14",y:"4",width:"4",height:"16",rx:"1",key:"zuxfzm"}],["rect",{x:"6",y:"4",width:"4",height:"16",rx:"1",key:"1okwgv"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const zE=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const $E=be("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Mi=be("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const gH=be("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Co=be("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const xH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const oh=be("Shield",[["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"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const bH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const SH=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const r4=be("Target",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"12",r:"6",key:"1vlfrh"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Kw=be("TrendingDown",[["polyline",{points:"22 17 13.5 8.5 8.5 13.5 2 7",key:"1r2t7k"}],["polyline",{points:"16 17 22 17 22 11",key:"11uiuu"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Hr=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Sa=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const P1=be("UserPlus",[["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"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const R1=be("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.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const Oa=be("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const i4=be("Wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);/**
* @license lucide-react v0.460.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*/const a4=be("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);function o4(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=o4(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=o4(e))&&(r&&(r+=" "),r+=t);return r}const Yw="-",wH=e=>{const t=AH(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{const c=l.split(Yw);return c[0]===""&&c.length!==1&&c.shift(),s4(c,t)||jH(l)},getConflictingClassGroupIds:(l,c)=>{const f=n[l]||[];return c&&r[l]?[...f,...r[l]]:f}}},s4=(e,t)=>{var l;if(e.length===0)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),a=r?s4(e.slice(1),r):void 0;if(a)return a;if(t.validators.length===0)return;const s=e.join(Yw);return(l=t.validators.find(({validator:c})=>c(s)))==null?void 0:l.classGroupId},BE=/^\[(.+)\]$/,jH=e=>{if(BE.test(e)){const t=BE.exec(e)[1],n=t==null?void 0:t.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},AH=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return _H(Object.entries(e.classGroups),n).forEach(([s,l])=>{D1(l,r,s,t)}),r},D1=(e,t,n,r)=>{e.forEach(a=>{if(typeof a=="string"){const s=a===""?t:qE(t,a);s.classGroupId=n;return}if(typeof a=="function"){if(OH(a)){D1(a(r),t,n,r);return}t.validators.push({validator:a,classGroupId:n});return}Object.entries(a).forEach(([s,l])=>{D1(l,qE(t,s),n,r)})})},qE=(e,t)=>{let n=e;return t.split(Yw).forEach(r=>{n.nextPart.has(r)||n.nextPart.set(r,{nextPart:new Map,validators:[]}),n=n.nextPart.get(r)}),n},OH=e=>e.isThemeGetter,_H=(e,t)=>t?e.map(([n,r])=>{const a=r.map(s=>typeof s=="string"?t+s:typeof s=="object"?Object.fromEntries(Object.entries(s).map(([l,c])=>[t+l,c])):s);return[n,a]}):e,TH=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const a=(s,l)=>{n.set(s,l),t++,t>e&&(t=0,r=n,n=new Map)};return{get(s){let l=n.get(s);if(l!==void 0)return l;if((l=r.get(s))!==void 0)return a(s,l),l},set(s,l){n.has(s)?n.set(s,l):a(s,l)}}},l4="!",EH=e=>{const{separator:t,experimentalParseClassName:n}=e,r=t.length===1,a=t[0],s=t.length,l=c=>{const f=[];let d=0,m=0,y;for(let b=0;b<c.length;b++){let A=c[b];if(d===0){if(A===a&&(r||c.slice(b,b+s)===t)){f.push(c.slice(m,b)),m=b+s;continue}if(A==="/"){y=b;continue}}A==="["?d++:A==="]"&&d--}const g=f.length===0?c:c.substring(m),S=g.startsWith(l4),w=S?g.substring(1):g,j=y&&y>m?y-m:void 0;return{modifiers:f,hasImportantModifier:S,baseClassName:w,maybePostfixModifierPosition:j}};return n?c=>n({className:c,parseClassName:l}):l},NH=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(r=>{r[0]==="["?(t.push(...n.sort(),r),n=[]):n.push(r)}),t.push(...n.sort()),t},CH=e=>({cache:TH(e.cacheSize),parseClassName:EH(e),...wH(e)}),MH=/\s+/,PH=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:a}=t,s=[],l=e.trim().split(MH);let c="";for(let f=l.length-1;f>=0;f-=1){const d=l[f],{modifiers:m,hasImportantModifier:y,baseClassName:g,maybePostfixModifierPosition:S}=n(d);let w=!!S,j=r(w?g.substring(0,S):g);if(!j){if(!w){c=d+(c.length>0?" "+c:c);continue}if(j=r(g),!j){c=d+(c.length>0?" "+c:c);continue}w=!1}const b=NH(m).join(":"),A=y?b+l4:b,_=A+j;if(s.includes(_))continue;s.push(_);const T=a(j,w);for(let C=0;C<T.length;++C){const O=T[C];s.push(A+O)}c=d+(c.length>0?" "+c:c)}return c};function RH(){let e=0,t,n,r="";for(;e<arguments.length;)(t=arguments[e++])&&(n=u4(t))&&(r&&(r+=" "),r+=n);return r}const u4=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=u4(e[r]))&&(n&&(n+=" "),n+=t);return n};function DH(e,...t){let n,r,a,s=l;function l(f){const d=t.reduce((m,y)=>y(m),e());return n=CH(d),r=n.cache.get,a=n.cache.set,s=c,c(f)}function c(f){const d=r(f);if(d)return d;const m=PH(f,n);return a(f,m),m}return function(){return s(RH.apply(null,arguments))}}const xt=e=>{const t=n=>n[e]||[];return t.isThemeGetter=!0,t},c4=/^\[(?:([a-z-]+):)?(.+)\]$/i,kH=/^\d+\/\d+$/,LH=new Set(["px","full","screen"]),zH=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$H=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,BH=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,qH=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IH=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Si=e=>Ds(e)||LH.has(e)||kH.test(e),da=e=>bl(e,"length",XH),Ds=e=>!!e&&!Number.isNaN(Number(e)),Jv=e=>bl(e,"number",Ds),_u=e=>!!e&&Number.isInteger(Number(e)),UH=e=>e.endsWith("%")&&Ds(e.slice(0,-1)),Le=e=>c4.test(e),ha=e=>zH.test(e),VH=new Set(["length","size","percentage"]),HH=e=>bl(e,VH,f4),GH=e=>bl(e,"position",f4),FH=new Set(["image","url"]),KH=e=>bl(e,FH,ZH),YH=e=>bl(e,"",WH),Tu=()=>!0,bl=(e,t,n)=>{const r=c4.exec(e);return r?r[1]?typeof t=="string"?r[1]===t:t.has(r[1]):n(r[2]):!1},XH=e=>$H.test(e)&&!BH.test(e),f4=()=>!1,WH=e=>qH.test(e),ZH=e=>IH.test(e),QH=()=>{const e=xt("colors"),t=xt("spacing"),n=xt("blur"),r=xt("brightness"),a=xt("borderColor"),s=xt("borderRadius"),l=xt("borderSpacing"),c=xt("borderWidth"),f=xt("contrast"),d=xt("grayscale"),m=xt("hueRotate"),y=xt("invert"),g=xt("gap"),S=xt("gradientColorStops"),w=xt("gradientColorStopPositions"),j=xt("inset"),b=xt("margin"),A=xt("opacity"),_=xt("padding"),T=xt("saturate"),C=xt("scale"),O=xt("sepia"),N=xt("skew"),M=xt("space"),R=xt("translate"),D=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],I=()=>["auto",Le,t],z=()=>[Le,t],H=()=>["",Si,da],X=()=>["auto",Ds,Le],Y=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],$=()=>["solid","dashed","dotted","double","none"],F=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["start","end","center","between","around","evenly","stretch"],ie=()=>["","0",Le],se=()=>["auto","avoid","all","avoid-page","page","left","right","column"],L=()=>[Ds,Le];return{cacheSize:500,separator:":",theme:{colors:[Tu],spacing:[Si,da],blur:["none","",ha,Le],brightness:L(),borderColor:[e],borderRadius:["none","","full",ha,Le],borderSpacing:z(),borderWidth:H(),contrast:L(),grayscale:ie(),hueRotate:L(),invert:ie(),gap:z(),gradientColorStops:[e],gradientColorStopPositions:[UH,da],inset:I(),margin:I(),opacity:L(),padding:z(),saturate:L(),scale:L(),sepia:ie(),skew:L(),space:z(),translate:z()},classGroups:{aspect:[{aspect:["auto","square","video",Le]}],container:["container"],columns:[{columns:[ha]}],"break-after":[{"break-after":se()}],"break-before":[{"break-before":se()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...Y(),Le]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[j]}],"inset-x":[{"inset-x":[j]}],"inset-y":[{"inset-y":[j]}],start:[{start:[j]}],end:[{end:[j]}],top:[{top:[j]}],right:[{right:[j]}],bottom:[{bottom:[j]}],left:[{left:[j]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",_u,Le]}],basis:[{basis:I()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Le]}],grow:[{grow:ie()}],shrink:[{shrink:ie()}],order:[{order:["first","last","none",_u,Le]}],"grid-cols":[{"grid-cols":[Tu]}],"col-start-end":[{col:["auto",{span:["full",_u,Le]},Le]}],"col-start":[{"col-start":X()}],"col-end":[{"col-end":X()}],"grid-rows":[{"grid-rows":[Tu]}],"row-start-end":[{row:["auto",{span:[_u,Le]},Le]}],"row-start":[{"row-start":X()}],"row-end":[{"row-end":X()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Le]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Le]}],gap:[{gap:[g]}],"gap-x":[{"gap-x":[g]}],"gap-y":[{"gap-y":[g]}],"justify-content":[{justify:["normal",...Q()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...Q(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...Q(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[_]}],px:[{px:[_]}],py:[{py:[_]}],ps:[{ps:[_]}],pe:[{pe:[_]}],pt:[{pt:[_]}],pr:[{pr:[_]}],pb:[{pb:[_]}],pl:[{pl:[_]}],m:[{m:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[M]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[M]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Le,t]}],"min-w":[{"min-w":[Le,t,"min","max","fit"]}],"max-w":[{"max-w":[Le,t,"none","full","min","max","fit","prose",{screen:[ha]},ha]}],h:[{h:[Le,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Le,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Le,t,"auto","min","max","fit"]}],"font-size":[{text:["base",ha,da]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Jv]}],"font-family":[{font:[Tu]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Le]}],"line-clamp":[{"line-clamp":["none",Ds,Jv]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Si,Le]}],"list-image":[{"list-image":["none",Le]}],"list-style-type":[{list:["none","disc","decimal",Le]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[A]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[A]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Si,da]}],"underline-offset":[{"underline-offset":["auto",Si,Le]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:z()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Le]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Le]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[A]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...Y(),GH]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",HH]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},KH]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[w]}],"gradient-via-pos":[{via:[w]}],"gradient-to-pos":[{to:[w]}],"gradient-from":[{from:[S]}],"gradient-via":[{via:[S]}],"gradient-to":[{to:[S]}],rounded:[{rounded:[s]}],"rounded-s":[{"rounded-s":[s]}],"rounded-e":[{"rounded-e":[s]}],"rounded-t":[{"rounded-t":[s]}],"rounded-r":[{"rounded-r":[s]}],"rounded-b":[{"rounded-b":[s]}],"rounded-l":[{"rounded-l":[s]}],"rounded-ss":[{"rounded-ss":[s]}],"rounded-se":[{"rounded-se":[s]}],"rounded-ee":[{"rounded-ee":[s]}],"rounded-es":[{"rounded-es":[s]}],"rounded-tl":[{"rounded-tl":[s]}],"rounded-tr":[{"rounded-tr":[s]}],"rounded-br":[{"rounded-br":[s]}],"rounded-bl":[{"rounded-bl":[s]}],"border-w":[{border:[c]}],"border-w-x":[{"border-x":[c]}],"border-w-y":[{"border-y":[c]}],"border-w-s":[{"border-s":[c]}],"border-w-e":[{"border-e":[c]}],"border-w-t":[{"border-t":[c]}],"border-w-r":[{"border-r":[c]}],"border-w-b":[{"border-b":[c]}],"border-w-l":[{"border-l":[c]}],"border-opacity":[{"border-opacity":[A]}],"border-style":[{border:[...$(),"hidden"]}],"divide-x":[{"divide-x":[c]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[c]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[A]}],"divide-style":[{divide:$()}],"border-color":[{border:[a]}],"border-color-x":[{"border-x":[a]}],"border-color-y":[{"border-y":[a]}],"border-color-s":[{"border-s":[a]}],"border-color-e":[{"border-e":[a]}],"border-color-t":[{"border-t":[a]}],"border-color-r":[{"border-r":[a]}],"border-color-b":[{"border-b":[a]}],"border-color-l":[{"border-l":[a]}],"divide-color":[{divide:[a]}],"outline-style":[{outline:["",...$()]}],"outline-offset":[{"outline-offset":[Si,Le]}],"outline-w":[{outline:[Si,da]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:H()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[A]}],"ring-offset-w":[{"ring-offset":[Si,da]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",ha,YH]}],"shadow-color":[{shadow:[Tu]}],opacity:[{opacity:[A]}],"mix-blend":[{"mix-blend":[...F(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":F()}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[f]}],"drop-shadow":[{"drop-shadow":["","none",ha,Le]}],grayscale:[{grayscale:[d]}],"hue-rotate":[{"hue-rotate":[m]}],invert:[{invert:[y]}],saturate:[{saturate:[T]}],sepia:[{sepia:[O]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[f]}],"backdrop-grayscale":[{"backdrop-grayscale":[d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[m]}],"backdrop-invert":[{"backdrop-invert":[y]}],"backdrop-opacity":[{"backdrop-opacity":[A]}],"backdrop-saturate":[{"backdrop-saturate":[T]}],"backdrop-sepia":[{"backdrop-sepia":[O]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[l]}],"border-spacing-x":[{"border-spacing-x":[l]}],"border-spacing-y":[{"border-spacing-y":[l]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Le]}],duration:[{duration:L()}],ease:[{ease:["linear","in","out","in-out",Le]}],delay:[{delay:L()}],animate:[{animate:["none","spin","ping","pulse","bounce",Le]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[C]}],"scale-x":[{"scale-x":[C]}],"scale-y":[{"scale-y":[C]}],rotate:[{rotate:[_u,Le]}],"translate-x":[{"translate-x":[R]}],"translate-y":[{"translate-y":[R]}],"skew-x":[{"skew-x":[N]}],"skew-y":[{"skew-y":[N]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Le]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Le]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":z()}],"scroll-mx":[{"scroll-mx":z()}],"scroll-my":[{"scroll-my":z()}],"scroll-ms":[{"scroll-ms":z()}],"scroll-me":[{"scroll-me":z()}],"scroll-mt":[{"scroll-mt":z()}],"scroll-mr":[{"scroll-mr":z()}],"scroll-mb":[{"scroll-mb":z()}],"scroll-ml":[{"scroll-ml":z()}],"scroll-p":[{"scroll-p":z()}],"scroll-px":[{"scroll-px":z()}],"scroll-py":[{"scroll-py":z()}],"scroll-ps":[{"scroll-ps":z()}],"scroll-pe":[{"scroll-pe":z()}],"scroll-pt":[{"scroll-pt":z()}],"scroll-pr":[{"scroll-pr":z()}],"scroll-pb":[{"scroll-pb":z()}],"scroll-pl":[{"scroll-pl":z()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Le]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Si,da,Jv]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},JH=DH(QH);function Bt(...e){return JH(Pe(e))}function Ee(e,t="SEK"){return new Intl.NumberFormat("sv-SE",{style:"currency",currency:t,maximumFractionDigits:0}).format(e)}function IE(e){return new Intl.NumberFormat("sv-SE").format(e)}function dr(e){return new Intl.DateTimeFormat("sv-SE",{year:"numeric",month:"short",day:"numeric"}).format(new Date(e))}function Xw(e){const t=new Date,n=new Date(e),r=t.getTime()-n.getTime(),a=Math.floor(r/6e4),s=Math.floor(r/36e5),l=Math.floor(r/864e5);return a<1?"Just now":a<60?`${a}m ago`:s<24?`${s}h ago`:l<7?`${l}d ago`:dr(e)}function eG(e){return e.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2)}const tG=[{path:"/",label:"Briefing",icon:yH},{path:"/dashboard",label:"Dashboard",icon:lH},{path:"/crm",label:"CRM",icon:Oa},{path:"/sales",label:"Sales",icon:Hr},{path:"/finance",label:"Finance",icon:i4},{path:"/hr",label:"HR",icon:lc},{path:"/legal",label:"Legal",icon:co},{path:"/marketing",label:"Marketing",icon:n4},{path:"/support",label:"Support",icon:t4},{path:"/automation",label:"Automation",icon:a4}];function nG(){const{sidebarOpen:e,toggleSidebar:t}=Hw(),n=Pr();return p.jsxs(p.Fragment,{children:[p.jsx(Ku,{children:e&&p.jsx(sr.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.15},className:"fixed inset-0 bg-black/20 z-40 lg:hidden",onClick:t})}),p.jsxs(sr.aside,{initial:!1,animate:{width:e?240:72},transition:{duration:.2,ease:"easeOut"},className:Bt("fixed left-0 top-0 h-full bg-sidebar z-50 flex flex-col","border-r border-border/60",e?"px-4":"px-3"),children:[p.jsxs("div",{className:"h-16 flex items-center justify-between shrink-0",children:[p.jsxs("div",{className:"flex items-center gap-2.5 overflow-hidden",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary flex items-center justify-center shrink-0",children:p.jsx("svg",{width:"16",height:"16",viewBox:"0 0 32 32",fill:"none",children:p.jsx("path",{d:"M10 22L16 10L22 22H10Z",stroke:"white",strokeWidth:"2.5",strokeLinejoin:"round"})})}),p.jsx(Ku,{children:e&&p.jsx(sr.span,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.15},className:"text-sm font-semibold text-text-primary whitespace-nowrap",children:"AMOS"})})]}),p.jsx("button",{onClick:t,className:"hidden lg:flex w-7 h-7 items-center justify-center rounded-lg hover:bg-bg text-text-secondary transition-colors",children:e?p.jsx(nH,{size:14}):p.jsx(rH,{size:14})})]}),p.jsx("nav",{className:"flex-1 py-4 space-y-0.5 overflow-y-auto",children:tG.map(r=>{const a=n.pathname===r.path||r.path!=="/"&&n.pathname.startsWith(r.path),s=r.icon;return p.jsxs(h3,{to:r.path,onClick:()=>{window.innerWidth<1024&&t()},className:Bt("flex items-center gap-3 h-10 rounded-xl px-3 transition-colors duration-150 relative","hover:bg-primary-light",a&&"bg-primary-light text-primary",!a&&"text-text-secondary"),children:[a&&p.jsx(sr.div,{layoutId:"sidebar-active",className:"absolute left-0 top-1/2 -translate-y-1/2 w-0.5 h-5 bg-primary rounded-full",transition:{duration:.18,ease:"easeOut"}}),p.jsx(s,{size:18,strokeWidth:a?2:1.5}),p.jsx(Ku,{children:e&&p.jsx(sr.span,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},exit:{opacity:0,x:-8},transition:{duration:.15},className:Bt("text-sm font-medium whitespace-nowrap",a?"text-primary":"text-text-secondary"),children:r.label})})]},r.path)})})]})]})}const UE=[{id:"1",title:"Nytt avtal tecknat",description:"Acme Corp har signerat enterprise-avtalet",time:new Date(Date.now()-1e3*60*15).toISOString(),read:!1},{id:"2",title:"Faktura förfallen",description:"Faktura #INV-2024-0042 är 3 dagar försenad",time:new Date(Date.now()-1e3*60*60*2).toISOString(),read:!1},{id:"3",title:"Semester beviljad",description:"Din semesteransökan har godkänts av HR",time:new Date(Date.now()-1e3*60*60*5).toISOString(),read:!0}];function rG(){const{user:e,logout:t}=Fc(),{toggleSidebar:n}=Hw(),r=_p(),[a,s]=P.useState(!1),[l,c]=P.useState(!1),f=()=>{const m=new Date().getHours();return m<12?"Good morning":m<17?"Good afternoon":"Good evening"},d=UE.filter(m=>!m.read).length;return p.jsxs("header",{className:"h-16 bg-surface border-b border-border/60 flex items-center justify-between px-6 lg:px-10 sticky top-0 z-30",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("button",{onClick:n,className:"lg:hidden w-9 h-9 flex items-center justify-center rounded-xl hover:bg-bg text-text-secondary transition-colors",children:p.jsx(fH,{size:18})}),p.jsxs("div",{children:[p.jsxs("h1",{className:"text-base font-semibold text-text-primary",children:[f(),e?`, ${e.name||"Erik Svensson"}`:", Erik Svensson"]}),p.jsx("p",{className:"text-xs text-text-secondary hidden sm:block",children:new Date().toLocaleDateString("sv-SE",{weekday:"long",year:"numeric",month:"long",day:"numeric"})})]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("div",{className:"hidden md:flex items-center h-9 px-3.5 rounded-xl bg-bg border border-border/60 text-text-secondary",children:[p.jsx(Co,{size:15}),p.jsx("span",{className:"ml-2 text-sm",children:"Search..."}),p.jsx("kbd",{className:"ml-6 px-1.5 py-0.5 text-[10px] font-medium bg-surface rounded border border-border",children:"⌘K"})]}),p.jsxs("div",{className:"relative",children:[p.jsxs("button",{onClick:()=>{s(!a),c(!1)},className:"relative w-9 h-9 flex items-center justify-center rounded-xl hover:bg-bg text-text-secondary transition-colors",children:[p.jsx(M1,{size:17}),d>0&&p.jsx("span",{className:"absolute top-1.5 right-1.5 w-2 h-2 bg-danger rounded-full"})]}),p.jsx(Ku,{children:a&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>s(!1)}),p.jsxs(sr.div,{initial:{opacity:0,y:4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:4,scale:.98},transition:{duration:.15},className:"absolute right-0 top-full mt-2 w-80 bg-surface rounded-[18px] dropdown-shadow border border-border/60 z-50 overflow-hidden",children:[p.jsxs("div",{className:"px-4 py-3 border-b border-border/60 flex items-center justify-between",children:[p.jsx("span",{className:"text-sm font-semibold text-text-primary",children:"Notifications"}),p.jsx("span",{className:"text-xs text-primary font-medium cursor-pointer",children:"Mark all read"})]}),p.jsx("div",{className:"max-h-80 overflow-y-auto",children:UE.map(m=>p.jsx("div",{className:Bt("px-4 py-3 hover:bg-bg/60 transition-colors cursor-pointer",!m.read&&"bg-primary-light/30"),children:p.jsxs("div",{className:"flex items-start gap-3",children:[p.jsx("div",{className:Bt("w-2 h-2 rounded-full mt-1.5 shrink-0",m.read?"bg-transparent":"bg-primary")}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:m.title}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:m.description}),p.jsx("p",{className:"text-[11px] text-text-secondary/60 mt-1",children:Xw(m.time)})]})]})},m.id))})]})]})})]}),p.jsxs("div",{className:"relative",children:[p.jsxs("button",{onClick:()=>{c(!l),s(!1)},className:"flex items-center gap-2 pl-1 pr-2 h-9 rounded-xl hover:bg-bg transition-colors",children:[p.jsx("div",{className:"w-7 h-7 rounded-full bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:e?eG(e.name):"?"}),p.jsx(tH,{size:14,className:"text-text-secondary"})]}),p.jsx(Ku,{children:l&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>c(!1)}),p.jsxs(sr.div,{initial:{opacity:0,y:4,scale:.98},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:4,scale:.98},transition:{duration:.15},className:"absolute right-0 top-full mt-2 w-56 bg-surface rounded-[18px] dropdown-shadow border border-border/60 z-50 overflow-hidden",children:[p.jsxs("div",{className:"px-4 py-3 border-b border-border/60",children:[p.jsx("p",{className:"text-sm font-semibold text-text-primary",children:(e==null?void 0:e.name)||"User"}),p.jsx("p",{className:"text-xs text-text-secondary",children:(e==null?void 0:e.email)||"user@amos.com"})]}),p.jsxs("div",{className:"py-1",children:[p.jsxs("button",{onClick:()=>{r("/profile"),c(!1)},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-text-secondary hover:bg-bg transition-colors",children:[p.jsx(R1,{size:15}),"Min Profil"]}),p.jsxs("button",{className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-text-secondary hover:bg-bg transition-colors",children:[p.jsx(Gw,{size:15}),"Byt Verksamhet"]}),p.jsxs("button",{className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-text-secondary hover:bg-bg transition-colors",children:[p.jsx(xH,{size:15}),"Inställningar"]}),p.jsx("div",{className:"border-t border-border/60 mt-1 pt-1",children:p.jsxs("button",{onClick:()=>{t(),c(!1)},className:"w-full flex items-center gap-3 px-4 py-2.5 text-sm text-danger hover:bg-danger-light transition-colors",children:[p.jsx(cH,{size:15}),"Sign out"]})})]})]})]})})]})]})]})}function iG(){const{sidebarOpen:e}=Hw();return p.jsxs("div",{className:"min-h-screen bg-bg",children:[p.jsx(nG,{}),p.jsxs("div",{className:Bt("transition-all duration-200 ease-out",e?"lg:ml-[240px]":"lg:ml-[72px]"),children:[p.jsx(rG,{}),p.jsx("main",{className:"p-6 lg:p-10",children:p.jsx(uq,{})})]})]})}const k1=P.forwardRef(({label:e,error:t,icon:n,className:r,...a},s)=>p.jsxs("div",{className:"w-full",children:[e&&p.jsx("label",{className:"block text-sm font-medium text-text-primary mb-1.5",children:e}),p.jsxs("div",{className:"relative",children:[n&&p.jsx("div",{className:"absolute left-3.5 top-1/2 -translate-y-1/2 text-text-secondary",children:n}),p.jsx("input",{ref:s,className:Bt("w-full h-11 rounded-[14px] border bg-surface text-text-primary text-sm","placeholder:text-text-secondary/50","focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30","transition-all duration-150",n?"pl-10 pr-4":"px-4",t&&"border-danger focus:ring-danger/20 focus:border-danger/30",r),...a})]}),t&&p.jsx("p",{className:"mt-1.5 text-xs text-danger",children:t})]}));k1.displayName="Input";function Kt({children:e,variant:t="primary",size:n="md",loading:r=!1,icon:a,className:s,disabled:l,...c}){const f={primary:"bg-primary text-white hover:bg-primary-hover shadow-sm",secondary:"bg-bg text-text-primary border border-border hover:bg-white",ghost:"bg-transparent text-text-secondary hover:bg-primary-light hover:text-primary",danger:"bg-danger text-white hover:opacity-90"},d={sm:"h-8 px-3 text-xs",md:"h-10 px-4 text-sm",lg:"h-12 px-6 text-sm"};return p.jsxs("button",{className:Bt("inline-flex items-center justify-center gap-2 rounded-[14px] font-medium transition-colors duration-150","focus:outline-none focus:ring-2 focus:ring-primary/20","disabled:opacity-50 disabled:cursor-not-allowed","active:scale-[0.98]",f[t],d[n],s),disabled:l||r,...c,children:[r?p.jsxs("svg",{className:"animate-spin h-4 w-4",viewBox:"0 0 24 24",children:[p.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4",fill:"none"}),p.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}):a,e]})}const aG="/api/v1";function oG(){var e;try{const t=localStorage.getItem("amos-auth");if(t){const n=JSON.parse(t);if((e=n.state)!=null&&e.token)return n.state.token}}catch{}return localStorage.getItem("amos_token")}async function Dd(e,t,n){const r=`${aG}${t}`,a={"Content-Type":"application/json"},s=oG();s&&(a.Authorization=`Bearer ${s}`);const l=await fetch(r,{method:e,headers:a,body:n?JSON.stringify(n):void 0});if(!l.ok){const c=await l.json().catch(()=>({}));throw new Error(c.message||`HTTP ${l.status}`)}return l.json()}const nt={get:e=>Dd("GET",e),post:(e,t)=>Dd("POST",e,t),put:(e,t)=>Dd("PUT",e,t),delete:e=>Dd("DELETE",e)},VE={login:(e,t)=>nt.post("/auth/login",{email:e,password:t}),me:()=>nt.get("/auth/me")},sh={customers:()=>nt.get("/crm/customers"),leads:()=>nt.get("/crm/leads"),pipeline:()=>nt.get("/crm/pipeline"),createCustomer:e=>nt.post("/crm/customers",e),updateCustomer:(e,t)=>nt.put(`/crm/customers/${e}`,t),deleteCustomer:e=>nt.delete(`/crm/customers/${e}`)},Es={deals:()=>nt.get("/sales/deals"),products:()=>nt.get("/sales/products"),mrr:()=>nt.get("/sales/mrr"),arr:()=>nt.get("/sales/arr"),createDeal:e=>nt.post("/sales/deals",e),updateDeal:(e,t)=>nt.put(`/sales/deals/${e}`,t)},io={balance:()=>nt.get("/finance/balance"),income:()=>nt.get("/finance/income"),moms:()=>nt.get("/finance/moms"),accounts:()=>nt.get("/finance/accounts"),invoices:()=>nt.get("/finance/invoices"),cashflow:()=>nt.get("/finance/cashflow")},HE={accounts:()=>nt.get("/ledger/accounts"),balanceSheet:e=>nt.get(`/ledger/balance-sheet?period=${e||""}`),incomeStatement:e=>nt.get(`/ledger/income-statement?period=${e||""}`),momsReport:e=>nt.get(`/ledger/moms?period=${e||""}`)},GE={employees:()=>nt.get("/hr/employees"),leaves:()=>nt.get("/hr/leaves"),createEmployee:e=>nt.post("/hr/employees",e),createLeave:e=>nt.post("/hr/leaves",e)};function sG(){const e=_p(),{login:t}=Fc(),[n,r]=P.useState(""),[a,s]=P.useState(""),[l,c]=P.useState(!1),[f,d]=P.useState(""),[m,y]=P.useState(!1),g=async S=>{var w;S.preventDefault(),d(""),y(!0);try{const j=await VE.login(n,a);if(!j.ok){d("Invalid credentials");return}localStorage.setItem("amos_token",j.token);const b=await VE.me();t(j.token,{id:b.user.sub,email:b.user.email,name:"Erik Svensson",role:((w=b.user.roles)==null?void 0:w[0])||"user"}),e("/")}catch(j){d(j instanceof Error?j.message:"Login failed")}finally{y(!1)}};return p.jsx("div",{className:"min-h-screen bg-bg flex items-center justify-center p-4",children:p.jsxs(sr.div,{initial:{opacity:0,y:16},animate:{opacity:1,y:0},transition:{duration:.3,ease:"easeOut"},className:"w-full max-w-[400px]",children:[p.jsx("div",{className:"flex items-center justify-center mb-10",children:p.jsx("div",{className:"w-12 h-12 rounded-xl bg-primary flex items-center justify-center",children:p.jsx("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",children:p.jsx("path",{d:"M10 22L16 10L22 22H10Z",stroke:"white",strokeWidth:"2.5",strokeLinejoin:"round"})})})}),p.jsxs("div",{className:"text-center mb-8",children:[p.jsx("h1",{className:"text-2xl font-semibold text-text-primary",children:"Welcome back"}),p.jsx("p",{className:"text-sm text-text-secondary mt-1.5",children:"Sign in to your AMOS account"})]}),p.jsxs("form",{onSubmit:g,className:"space-y-4",children:[p.jsx(k1,{label:"Email",type:"email",placeholder:"you@company.com",value:n,onChange:S=>r(S.target.value),icon:p.jsx(wo,{size:16}),required:!0}),p.jsxs("div",{className:"relative",children:[p.jsx(k1,{label:"Password",type:l?"text":"password",placeholder:"Enter your password",value:a,onChange:S=>s(S.target.value),icon:p.jsx(uH,{size:16}),required:!0}),p.jsx("button",{type:"button",onClick:()=>c(!l),className:"absolute right-3.5 top-[38px] text-text-secondary hover:text-text-primary transition-colors",children:l?p.jsx(aH,{size:16}):p.jsx(e4,{size:16})})]}),f&&p.jsx(sr.p,{initial:{opacity:0,y:-4},animate:{opacity:1,y:0},className:"text-sm text-danger",children:f}),p.jsx(Kt,{type:"submit",size:"lg",loading:m,className:"w-full",children:"Sign in"})]})]})})}function FE({label:e,value:t,change:n,changeLabel:r,icon:a,index:s=0}){const l=n>0,c=n===0;return p.jsxs(sr.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.18,delay:s*.04,ease:"easeOut"},className:"bg-surface rounded-[20px] card-shadow p-6 md:p-7",children:[p.jsxs("div",{className:"flex items-start justify-between",children:[p.jsxs("div",{className:"space-y-4",children:[p.jsx("p",{className:"text-sm text-text-secondary",children:e}),p.jsx("p",{className:"text-2xl md:text-3xl font-semibold text-text-primary tracking-tight",children:t})]}),p.jsx("div",{className:"w-10 h-10 rounded-xl bg-bg flex items-center justify-center text-text-secondary",children:a})]}),p.jsxs("div",{className:"mt-5 flex items-center gap-2",children:[p.jsxs("span",{className:Bt("inline-flex items-center gap-1 text-xs font-medium px-2 py-0.5 rounded-full",l&&"bg-success-light text-success",c&&"bg-bg text-text-secondary",!l&&!c&&"bg-danger-light text-danger"),children:[l?p.jsx(Hr,{size:12}):c?p.jsx(hH,{size:12}):p.jsx(Kw,{size:12}),Math.abs(n),"%"]}),p.jsx("span",{className:"text-xs text-text-secondary",children:r})]})]})}var eg,KE;function Nn(){if(KE)return eg;KE=1;var e=Array.isArray;return eg=e,eg}var tg,YE;function d4(){if(YE)return tg;YE=1;var e=typeof Td=="object"&&Td&&Td.Object===Object&&Td;return tg=e,tg}var ng,XE;function ei(){if(XE)return ng;XE=1;var e=d4(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ng=n,ng}var rg,WE;function Jc(){if(WE)return rg;WE=1;var e=ei(),t=e.Symbol;return rg=t,rg}var ig,ZE;function lG(){if(ZE)return ig;ZE=1;var e=Jc(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,a=e?e.toStringTag:void 0;function s(l){var c=n.call(l,a),f=l[a];try{l[a]=void 0;var d=!0}catch{}var m=r.call(l);return d&&(c?l[a]=f:delete l[a]),m}return ig=s,ig}var ag,QE;function uG(){if(QE)return ag;QE=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return ag=n,ag}var og,JE;function Li(){if(JE)return og;JE=1;var e=Jc(),t=lG(),n=uG(),r="[object Null]",a="[object Undefined]",s=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?a:r:s&&s in Object(c)?t(c):n(c)}return og=l,og}var sg,eN;function zi(){if(eN)return sg;eN=1;function e(t){return t!=null&&typeof t=="object"}return sg=e,sg}var lg,tN;function Sl(){if(tN)return lg;tN=1;var e=Li(),t=zi(),n="[object Symbol]";function r(a){return typeof a=="symbol"||t(a)&&e(a)==n}return lg=r,lg}var ug,nN;function Ww(){if(nN)return ug;nN=1;var e=Nn(),t=Sl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function a(s,l){if(e(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||l!=null&&s in Object(l)}return ug=a,ug}var cg,rN;function Ca(){if(rN)return cg;rN=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return cg=e,cg}var fg,iN;function Zw(){if(iN)return fg;iN=1;var e=Li(),t=Ca(),n="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",s="[object Proxy]";function l(c){if(!t(c))return!1;var f=e(c);return f==r||f==a||f==n||f==s}return fg=l,fg}var dg,aN;function cG(){if(aN)return dg;aN=1;var e=ei(),t=e["__core-js_shared__"];return dg=t,dg}var hg,oN;function fG(){if(oN)return hg;oN=1;var e=cG(),t=(function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""})();function n(r){return!!t&&t in r}return hg=n,hg}var pg,sN;function h4(){if(sN)return pg;sN=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return pg=n,pg}var mg,lN;function dG(){if(lN)return mg;lN=1;var e=Zw(),t=fG(),n=Ca(),r=h4(),a=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,m=RegExp("^"+f.call(d).replace(a,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function y(g){if(!n(g)||t(g))return!1;var S=e(g)?m:s;return S.test(r(g))}return mg=y,mg}var yg,uN;function hG(){if(uN)return yg;uN=1;function e(t,n){return t==null?void 0:t[n]}return yg=e,yg}var vg,cN;function Mo(){if(cN)return vg;cN=1;var e=dG(),t=hG();function n(r,a){var s=t(r,a);return e(s)?s:void 0}return vg=n,vg}var gg,fN;function Dp(){if(fN)return gg;fN=1;var e=Mo(),t=e(Object,"create");return gg=t,gg}var xg,dN;function pG(){if(dN)return xg;dN=1;var e=Dp();function t(){this.__data__=e?e(null):{},this.size=0}return xg=t,xg}var bg,hN;function mG(){if(hN)return bg;hN=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return bg=e,bg}var Sg,pN;function yG(){if(pN)return Sg;pN=1;var e=Dp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function a(s){var l=this.__data__;if(e){var c=l[s];return c===t?void 0:c}return r.call(l,s)?l[s]:void 0}return Sg=a,Sg}var wg,mN;function vG(){if(mN)return wg;mN=1;var e=Dp(),t=Object.prototype,n=t.hasOwnProperty;function r(a){var s=this.__data__;return e?s[a]!==void 0:n.call(s,a)}return wg=r,wg}var jg,yN;function gG(){if(yN)return jg;yN=1;var e=Dp(),t="__lodash_hash_undefined__";function n(r,a){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&a===void 0?t:a,this}return jg=n,jg}var Ag,vN;function xG(){if(vN)return Ag;vN=1;var e=pG(),t=mG(),n=yG(),r=vG(),a=gG();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Ag=s,Ag}var Og,gN;function bG(){if(gN)return Og;gN=1;function e(){this.__data__=[],this.size=0}return Og=e,Og}var _g,xN;function Qw(){if(xN)return _g;xN=1;function e(t,n){return t===n||t!==t&&n!==n}return _g=e,_g}var Tg,bN;function kp(){if(bN)return Tg;bN=1;var e=Qw();function t(n,r){for(var a=n.length;a--;)if(e(n[a][0],r))return a;return-1}return Tg=t,Tg}var Eg,SN;function SG(){if(SN)return Eg;SN=1;var e=kp(),t=Array.prototype,n=t.splice;function r(a){var s=this.__data__,l=e(s,a);if(l<0)return!1;var c=s.length-1;return l==c?s.pop():n.call(s,l,1),--this.size,!0}return Eg=r,Eg}var Ng,wN;function wG(){if(wN)return Ng;wN=1;var e=kp();function t(n){var r=this.__data__,a=e(r,n);return a<0?void 0:r[a][1]}return Ng=t,Ng}var Cg,jN;function jG(){if(jN)return Cg;jN=1;var e=kp();function t(n){return e(this.__data__,n)>-1}return Cg=t,Cg}var Mg,AN;function AG(){if(AN)return Mg;AN=1;var e=kp();function t(n,r){var a=this.__data__,s=e(a,n);return s<0?(++this.size,a.push([n,r])):a[s][1]=r,this}return Mg=t,Mg}var Pg,ON;function Lp(){if(ON)return Pg;ON=1;var e=bG(),t=SG(),n=wG(),r=jG(),a=AG();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Pg=s,Pg}var Rg,_N;function Jw(){if(_N)return Rg;_N=1;var e=Mo(),t=ei(),n=e(t,"Map");return Rg=n,Rg}var Dg,TN;function OG(){if(TN)return Dg;TN=1;var e=xG(),t=Lp(),n=Jw();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Dg=r,Dg}var kg,EN;function _G(){if(EN)return kg;EN=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return kg=e,kg}var Lg,NN;function zp(){if(NN)return Lg;NN=1;var e=_G();function t(n,r){var a=n.__data__;return e(r)?a[typeof r=="string"?"string":"hash"]:a.map}return Lg=t,Lg}var zg,CN;function TG(){if(CN)return zg;CN=1;var e=zp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return zg=t,zg}var $g,MN;function EG(){if(MN)return $g;MN=1;var e=zp();function t(n){return e(this,n).get(n)}return $g=t,$g}var Bg,PN;function NG(){if(PN)return Bg;PN=1;var e=zp();function t(n){return e(this,n).has(n)}return Bg=t,Bg}var qg,RN;function CG(){if(RN)return qg;RN=1;var e=zp();function t(n,r){var a=e(this,n),s=a.size;return a.set(n,r),this.size+=a.size==s?0:1,this}return qg=t,qg}var Ig,DN;function ej(){if(DN)return Ig;DN=1;var e=OG(),t=TG(),n=EG(),r=NG(),a=CG();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=a,Ig=s,Ig}var Ug,kN;function p4(){if(kN)return Ug;kN=1;var e=ej(),t="Expected a function";function n(r,a){if(typeof r!="function"||a!=null&&typeof a!="function")throw new TypeError(t);var s=function(){var l=arguments,c=a?a.apply(this,l):l[0],f=s.cache;if(f.has(c))return f.get(c);var d=r.apply(this,l);return s.cache=f.set(c,d)||f,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,Ug=n,Ug}var Vg,LN;function MG(){if(LN)return Vg;LN=1;var e=p4(),t=500;function n(r){var a=e(r,function(l){return s.size===t&&s.clear(),l}),s=a.cache;return a}return Vg=n,Vg}var Hg,zN;function PG(){if(zN)return Hg;zN=1;var e=MG(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(a){var s=[];return a.charCodeAt(0)===46&&s.push(""),a.replace(t,function(l,c,f,d){s.push(f?d.replace(n,"$1"):c||l)}),s});return Hg=r,Hg}var Gg,$N;function tj(){if($N)return Gg;$N=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=Array(a);++r<a;)s[r]=n(t[r],r,t);return s}return Gg=e,Gg}var Fg,BN;function RG(){if(BN)return Fg;BN=1;var e=Jc(),t=tj(),n=Nn(),r=Sl(),a=e?e.prototype:void 0,s=a?a.toString:void 0;function l(c){if(typeof c=="string")return c;if(n(c))return t(c,l)+"";if(r(c))return s?s.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return Fg=l,Fg}var Kg,qN;function m4(){if(qN)return Kg;qN=1;var e=RG();function t(n){return n==null?"":e(n)}return Kg=t,Kg}var Yg,IN;function y4(){if(IN)return Yg;IN=1;var e=Nn(),t=Ww(),n=PG(),r=m4();function a(s,l){return e(s)?s:t(s,l)?[s]:n(r(s))}return Yg=a,Yg}var Xg,UN;function $p(){if(UN)return Xg;UN=1;var e=Sl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return Xg=t,Xg}var Wg,VN;function nj(){if(VN)return Wg;VN=1;var e=y4(),t=$p();function n(r,a){a=e(a,r);for(var s=0,l=a.length;r!=null&&s<l;)r=r[t(a[s++])];return s&&s==l?r:void 0}return Wg=n,Wg}var Zg,HN;function v4(){if(HN)return Zg;HN=1;var e=nj();function t(n,r,a){var s=n==null?void 0:e(n,r);return s===void 0?a:s}return Zg=t,Zg}var DG=v4();const Gn=rt(DG);var Qg,GN;function kG(){if(GN)return Qg;GN=1;function e(t){return t==null}return Qg=e,Qg}var LG=kG();const Ne=rt(LG);var Jg,FN;function zG(){if(FN)return Jg;FN=1;var e=Li(),t=Nn(),n=zi(),r="[object String]";function a(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return Jg=a,Jg}var $G=zG();const jo=rt($G);var BG=Zw();const _e=rt(BG);var qG=Ca();const wl=rt(qG);var ex={exports:{}},We={};/**
* @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 KN;function IG(){if(KN)return We;KN=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),m=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),w;w=Symbol.for("react.module.reference");function j(b){if(typeof b=="object"&&b!==null){var A=b.$$typeof;switch(A){case e:switch(b=b.type,b){case n:case a:case r:case d:case m:return b;default:switch(b=b&&b.$$typeof,b){case c:case l:case f:case g:case y:case s:return b;default:return A}}case t:return A}}}return We.ContextConsumer=l,We.ContextProvider=s,We.Element=e,We.ForwardRef=f,We.Fragment=n,We.Lazy=g,We.Memo=y,We.Portal=t,We.Profiler=a,We.StrictMode=r,We.Suspense=d,We.SuspenseList=m,We.isAsyncMode=function(){return!1},We.isConcurrentMode=function(){return!1},We.isContextConsumer=function(b){return j(b)===l},We.isContextProvider=function(b){return j(b)===s},We.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},We.isForwardRef=function(b){return j(b)===f},We.isFragment=function(b){return j(b)===n},We.isLazy=function(b){return j(b)===g},We.isMemo=function(b){return j(b)===y},We.isPortal=function(b){return j(b)===t},We.isProfiler=function(b){return j(b)===a},We.isStrictMode=function(b){return j(b)===r},We.isSuspense=function(b){return j(b)===d},We.isSuspenseList=function(b){return j(b)===m},We.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===a||b===r||b===d||b===m||b===S||typeof b=="object"&&b!==null&&(b.$$typeof===g||b.$$typeof===y||b.$$typeof===s||b.$$typeof===l||b.$$typeof===f||b.$$typeof===w||b.getModuleId!==void 0)},We.typeOf=j,We}var YN;function UG(){return YN||(YN=1,ex.exports=IG()),ex.exports}var VG=UG(),tx,XN;function g4(){if(XN)return tx;XN=1;var e=Li(),t=zi(),n="[object Number]";function r(a){return typeof a=="number"||t(a)&&e(a)==n}return tx=r,tx}var nx,WN;function HG(){if(WN)return nx;WN=1;var e=g4();function t(n){return e(n)&&n!=+n}return nx=t,nx}var GG=HG();const jl=rt(GG);var FG=g4();const KG=rt(FG);var gn=function(t){return t===0?0:t>0?1:-1},fo=function(t){return jo(t)&&t.indexOf("%")===t.length-1},ue=function(t){return KG(t)&&!jl(t)},YG=function(t){return Ne(t)},Ft=function(t){return ue(t)||jo(t)},XG=0,Po=function(t){var n=++XG;return"".concat(t||"").concat(n)},xn=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(!ue(t)&&!jo(t))return r;var s;if(fo(t)){var l=t.indexOf("%");s=n*parseFloat(t.slice(0,l))/100}else s=+t;return jl(s)&&(s=r),a&&s>n&&(s=n),s},va=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},WG=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},Gt=function(t,n){return ue(t)&&ue(n)?function(r){return t+r*(n-t)}:function(){return n}};function Sh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Gn(r,t))===n})}var ZG=function(t,n){return ue(t)&&ue(n)?t-n:jo(t)&&jo(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function ks(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 L1(e){"@babel/helpers - typeof";return L1=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},L1(e)}var QG=["viewBox","children"],JG=["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"],ZN=["points","pathLength"],rx={svg:QG,polygon:ZN,polyline:ZN},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"],wh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(P.isValidElement(t)&&(r=t.props),!wl(r))return null;var a={};return Object.keys(r).forEach(function(s){rj.includes(s)&&(a[s]=n||function(l){return r[s](r,l)})}),a},eF=function(t,n,r){return function(a){return t(n,r,a),null}},Ao=function(t,n,r){if(!wl(t)||L1(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(s){var l=t[s];rj.includes(s)&&typeof l=="function"&&(a||(a={}),a[s]=eF(l,n,r))}),a},tF=["children"],nF=["children"];function QN(e,t){if(e==null)return{};var n=rF(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rF(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 z1(e){"@babel/helpers - typeof";return z1=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},z1(e)}var JN={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"},Ei=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},eC=null,ix=null,ij=function e(t){if(t===eC&&Array.isArray(ix))return ix;var n=[];return P.Children.forEach(t,function(r){Ne(r)||(VG.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),ix=n,eC=t,n};function Fn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return Ei(a)}):r=[Ei(t)],ij(e).forEach(function(a){var s=Gn(a,"type.displayName")||Gn(a,"type.name");r.indexOf(s)!==-1&&n.push(a)}),n}function In(e,t){var n=Fn(e,t);return n&&n[0]}var tC=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!ue(r)||r<=0||!ue(a)||a<=0)},iF=["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"],aF=function(t){return t&&t.type&&jo(t.type)&&iF.indexOf(t.type)>=0},x4=function(t){return t&&z1(t)==="object"&&"clipDot"in t},oF=function(t,n,r,a){var s,l=(s=rx==null?void 0:rx[a])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!_e(t)&&(a&&l.includes(n)||JG.includes(n))||r&&rj.includes(n)},Se=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(P.isValidElement(t)&&(a=t.props),!wl(a))return null;var s={};return Object.keys(a).forEach(function(l){var c;oF((c=a)===null||c===void 0?void 0:c[l],l,n,r)&&(s[l]=a[l])}),s},$1=function e(t,n){if(t===n)return!0;var r=P.Children.count(t);if(r!==P.Children.count(n))return!1;if(r===0)return!0;if(r===1)return nC(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var s=t[a],l=n[a];if(Array.isArray(s)||Array.isArray(l)){if(!e(s,l))return!1}else if(!nC(s,l))return!1}return!0},nC=function(t,n){if(Ne(t)&&Ne(n))return!0;if(!Ne(t)&&!Ne(n)){var r=t.props||{},a=r.children,s=QN(r,tF),l=n.props||{},c=l.children,f=QN(l,nF);return a&&c?ks(s,f)&&$1(a,c):!a&&!c?ks(s,f):!1}return!1},rC=function(t,n){var r=[],a={};return ij(t).forEach(function(s,l){if(aF(s))r.push(s);else if(s){var c=Ei(s.type),f=n[c]||{},d=f.handler,m=f.once;if(d&&(!m||!a[c])){var y=d(s,c,l);r.push(y),a[c]=!0}}}),r},sF=function(t){var n=t&&t.type;return n&&JN[n]?JN[n]:null},lF=function(t,n){return ij(n).indexOf(t)},uF=["children","width","height","viewBox","className","style","title","desc"];function B1(){return B1=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},B1.apply(this,arguments)}function cF(e,t){if(e==null)return{};var n=fF(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function fF(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 q1(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,s=e.className,l=e.style,c=e.title,f=e.desc,d=cF(e,uF),m=a||{width:n,height:r,x:0,y:0},y=Pe("recharts-surface",s);return q.createElement("svg",B1({},Se(d,!0,"svg"),{className:y,width:n,height:r,style:l,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),q.createElement("title",null,c),q.createElement("desc",null,f),t)}var dF=["children","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 hF(e,t){if(e==null)return{};var n=pF(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pF(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 qe=q.forwardRef(function(e,t){var n=e.children,r=e.className,a=hF(e,dF),s=Pe("recharts-layer",r);return q.createElement("g",I1({className:s},Se(a,!0),{ref:t}),n)}),Er=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),s=2;s<r;s++)a[s-2]=arguments[s]},ax,iC;function mF(){if(iC)return ax;iC=1;function e(t,n,r){var a=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(s);++a<s;)l[a]=t[a+n];return l}return ax=e,ax}var ox,aC;function yF(){if(aC)return ox;aC=1;var e=mF();function t(n,r,a){var s=n.length;return a=a===void 0?s:a,!r&&a>=s?n:e(n,r,a)}return ox=t,ox}var sx,oC;function b4(){if(oC)return sx;oC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,s="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+a+s+"]");function f(d){return c.test(d)}return sx=f,sx}var lx,sC;function vF(){if(sC)return lx;sC=1;function e(t){return t.split("")}return lx=e,lx}var ux,lC;function gF(){if(lC)return ux;lC=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",a=t+n+r,s="\\ufe0e\\ufe0f",l="["+e+"]",c="["+a+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",m="[^"+e+"]",y="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",S="\\u200d",w=d+"?",j="["+s+"]?",b="(?:"+S+"(?:"+[m,y,g].join("|")+")"+j+w+")*",A=j+w+b,_="(?:"+[m+c+"?",c,y,g,l].join("|")+")",T=RegExp(f+"(?="+f+")|"+_+A,"g");function C(O){return O.match(T)||[]}return ux=C,ux}var cx,uC;function xF(){if(uC)return cx;uC=1;var e=vF(),t=b4(),n=gF();function r(a){return t(a)?n(a):e(a)}return cx=r,cx}var fx,cC;function bF(){if(cC)return fx;cC=1;var e=yF(),t=b4(),n=xF(),r=m4();function a(s){return function(l){l=r(l);var c=t(l)?n(l):void 0,f=c?c[0]:l.charAt(0),d=c?e(c,1).join(""):l.slice(1);return f[s]()+d}}return fx=a,fx}var dx,fC;function SF(){if(fC)return dx;fC=1;var e=bF(),t=e("toUpperCase");return dx=t,dx}var wF=SF();const Bp=rt(wF);function pt(e){return function(){return e}}const S4=Math.cos,jh=Math.sin,Rr=Math.sqrt,Ah=Math.PI,qp=2*Ah,U1=Math.PI,V1=2*U1,ao=1e-6,jF=V1-ao;function w4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function AF(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return w4;const n=10**t;return function(r){this._+=r[0];for(let a=1,s=r.length;a<s;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class OF{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?w4:AF(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,s,l){this._append`C${+t},${+n},${+r},${+a},${this._x1=+s},${this._y1=+l}`}arcTo(t,n,r,a,s){if(t=+t,n=+n,r=+r,a=+a,s=+s,s<0)throw new Error(`negative radius: ${s}`);let l=this._x1,c=this._y1,f=r-t,d=a-n,m=l-t,y=c-n,g=m*m+y*y;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>ao)if(!(Math.abs(y*f-d*m)>ao)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let S=r-l,w=a-c,j=f*f+d*d,b=S*S+w*w,A=Math.sqrt(j),_=Math.sqrt(g),T=s*Math.tan((U1-Math.acos((j+g-b)/(2*A*_)))/2),C=T/_,O=T/A;Math.abs(C-1)>ao&&this._append`L${t+C*m},${n+C*y}`,this._append`A${s},${s},0,0,${+(y*S>m*w)},${this._x1=t+O*f},${this._y1=n+O*d}`}}arc(t,n,r,a,s,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(a),f=r*Math.sin(a),d=t+c,m=n+f,y=1^l,g=l?a-s:s-a;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>ao||Math.abs(this._y1-m)>ao)&&this._append`L${d},${m}`,r&&(g<0&&(g=g%V1+V1),g>jF?this._append`A${r},${r},0,1,${y},${t-c},${n-f}A${r},${r},0,1,${y},${this._x1=d},${this._y1=m}`:g>ao&&this._append`A${r},${r},0,${+(g>=U1)},${y},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}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 aj(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 OF(t)}function oj(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function j4(e){this._context=e}j4.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 Ip(e){return new j4(e)}function A4(e){return e[0]}function O4(e){return e[1]}function _4(e,t){var n=pt(!0),r=null,a=Ip,s=null,l=aj(c);e=typeof e=="function"?e:e===void 0?A4:pt(e),t=typeof t=="function"?t:t===void 0?O4:pt(t);function c(f){var d,m=(f=oj(f)).length,y,g=!1,S;for(r==null&&(s=a(S=l())),d=0;d<=m;++d)!(d<m&&n(y=f[d],d,f))===g&&((g=!g)?s.lineStart():s.lineEnd()),g&&s.point(+e(y,d,f),+t(y,d,f));if(S)return s=null,S+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:pt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:pt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:pt(!!f),c):n},c.curve=function(f){return arguments.length?(a=f,r!=null&&(s=a(r)),c):a},c.context=function(f){return arguments.length?(f==null?r=s=null:s=a(r=f),c):r},c}function kd(e,t,n){var r=null,a=pt(!0),s=null,l=Ip,c=null,f=aj(d);e=typeof e=="function"?e:e===void 0?A4:pt(+e),t=typeof t=="function"?t:pt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?O4:pt(+n);function d(y){var g,S,w,j=(y=oj(y)).length,b,A=!1,_,T=new Array(j),C=new Array(j);for(s==null&&(c=l(_=f())),g=0;g<=j;++g){if(!(g<j&&a(b=y[g],g,y))===A)if(A=!A)S=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),w=g-1;w>=S;--w)c.point(T[w],C[w]);c.lineEnd(),c.areaEnd()}A&&(T[g]=+e(b,g,y),C[g]=+t(b,g,y),c.point(r?+r(b,g,y):T[g],n?+n(b,g,y):C[g]))}if(_)return c=null,_+""||null}function m(){return _4().defined(a).curve(l).context(s)}return d.x=function(y){return arguments.length?(e=typeof y=="function"?y:pt(+y),r=null,d):e},d.x0=function(y){return arguments.length?(e=typeof y=="function"?y:pt(+y),d):e},d.x1=function(y){return arguments.length?(r=y==null?null:typeof y=="function"?y:pt(+y),d):r},d.y=function(y){return arguments.length?(t=typeof y=="function"?y:pt(+y),n=null,d):t},d.y0=function(y){return arguments.length?(t=typeof y=="function"?y:pt(+y),d):t},d.y1=function(y){return arguments.length?(n=y==null?null:typeof y=="function"?y:pt(+y),d):n},d.lineX0=d.lineY0=function(){return m().x(e).y(t)},d.lineY1=function(){return m().x(e).y(n)},d.lineX1=function(){return m().x(r).y(t)},d.defined=function(y){return arguments.length?(a=typeof y=="function"?y:pt(!!y),d):a},d.curve=function(y){return arguments.length?(l=y,s!=null&&(c=l(s)),d):l},d.context=function(y){return arguments.length?(y==null?s=c=null:c=l(s=y),d):s},d}class T4{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 _F(e){return new T4(e,!0)}function TF(e){return new T4(e,!1)}const sj={draw(e,t){const n=Rr(t/Ah);e.moveTo(n,0),e.arc(0,0,n,0,qp)}},EF={draw(e,t){const n=Rr(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()}},E4=Rr(1/3),NF=E4*2,CF={draw(e,t){const n=Rr(t/NF),r=n*E4;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},MF={draw(e,t){const n=Rr(t),r=-n/2;e.rect(r,r,n,n)}},PF=.8908130915292852,N4=jh(Ah/10)/jh(7*Ah/10),RF=jh(qp/10)*N4,DF=-S4(qp/10)*N4,kF={draw(e,t){const n=Rr(t*PF),r=RF*n,a=DF*n;e.moveTo(0,-n),e.lineTo(r,a);for(let s=1;s<5;++s){const l=qp*s/5,c=S4(l),f=jh(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*a,f*r+c*a)}e.closePath()}},hx=Rr(3),LF={draw(e,t){const n=-Rr(t/(hx*3));e.moveTo(0,n*2),e.lineTo(-hx*n,-n),e.lineTo(hx*n,-n),e.closePath()}},ir=-.5,ar=Rr(3)/2,H1=1/Rr(12),zF=(H1/2+1)*3,$F={draw(e,t){const n=Rr(t/zF),r=n/2,a=n*H1,s=r,l=n*H1+n,c=-s,f=l;e.moveTo(r,a),e.lineTo(s,l),e.lineTo(c,f),e.lineTo(ir*r-ar*a,ar*r+ir*a),e.lineTo(ir*s-ar*l,ar*s+ir*l),e.lineTo(ir*c-ar*f,ar*c+ir*f),e.lineTo(ir*r+ar*a,ir*a-ar*r),e.lineTo(ir*s+ar*l,ir*l-ar*s),e.lineTo(ir*c+ar*f,ir*f-ar*c),e.closePath()}};function BF(e,t){let n=null,r=aj(a);e=typeof e=="function"?e:pt(e||sj),t=typeof t=="function"?t:pt(t===void 0?64:+t);function a(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return a.type=function(s){return arguments.length?(e=typeof s=="function"?s:pt(s),a):e},a.size=function(s){return arguments.length?(t=typeof s=="function"?s:pt(+s),a):t},a.context=function(s){return arguments.length?(n=s??null,a):n},a}function Oh(){}function _h(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 C4(e){this._context=e}C4.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:_h(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:_h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function qF(e){return new C4(e)}function M4(e){this._context=e}M4.prototype={areaStart:Oh,areaEnd:Oh,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:_h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function IF(e){return new M4(e)}function P4(e){this._context=e}P4.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:_h(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function UF(e){return new P4(e)}function R4(e){this._context=e}R4.prototype={areaStart:Oh,areaEnd:Oh,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 VF(e){return new R4(e)}function dC(e){return e<0?-1:1}function hC(e,t,n){var r=e._x1-e._x0,a=t-e._x1,s=(e._y1-e._y0)/(r||a<0&&-0),l=(n-e._y1)/(a||r<0&&-0),c=(s*a+l*r)/(r+a);return(dC(s)+dC(l))*Math.min(Math.abs(s),Math.abs(l),.5*Math.abs(c))||0}function pC(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function px(e,t,n){var r=e._x0,a=e._y0,s=e._x1,l=e._y1,c=(s-r)/3;e._context.bezierCurveTo(r+c,a+c*t,s-c,l-c*n,s,l)}function Th(e){this._context=e}Th.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:px(this,this._t0,pC(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,px(this,pC(this,n=hC(this,e,t)),n);break;default:px(this,this._t0,n=hC(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function D4(e){this._context=new k4(e)}(D4.prototype=Object.create(Th.prototype)).point=function(e,t){Th.prototype.point.call(this,t,e)};function k4(e){this._context=e}k4.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,s){this._context.bezierCurveTo(t,e,r,n,s,a)}};function HF(e){return new Th(e)}function GF(e){return new D4(e)}function L4(e){this._context=e}L4.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=mC(e),a=mC(t),s=0,l=1;l<n;++s,++l)this._context.bezierCurveTo(r[0][s],a[0][s],r[1][s],a[1][s],e[l],t[l]);(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 mC(e){var t,n=e.length-1,r,a=new Array(n),s=new Array(n),l=new Array(n);for(a[0]=0,s[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,s[t]=4,l[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,s[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/s[t-1],s[t]-=r,l[t]-=r*l[t-1];for(a[n-1]=l[n-1]/s[n-1],t=n-2;t>=0;--t)a[t]=(l[t]-a[t+1])/s[t];for(s[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-a[t+1];return[a,s]}function FF(e){return new L4(e)}function Up(e,t){this._context=e,this._t=t}Up.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 KF(e){return new Up(e,.5)}function YF(e){return new Up(e,0)}function XF(e){return new Up(e,1)}function Us(e,t){if((l=e.length)>1)for(var n=1,r,a,s=e[t[0]],l,c=s.length;n<l;++n)for(a=s,s=e[t[n]],r=0;r<c;++r)s[r][1]+=s[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function G1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function WF(e,t){return e[t]}function ZF(e){const t=[];return t.key=e,t}function QF(){var e=pt([]),t=G1,n=Us,r=WF;function a(s){var l=Array.from(e.apply(this,arguments),ZF),c,f=l.length,d=-1,m;for(const y of s)for(c=0,++d;c<f;++c)(l[c][d]=[0,+r(y,l[c].key,d,s)]).data=y;for(c=0,m=oj(t(l));c<f;++c)l[m[c]].index=c;return n(l,m),l}return a.keys=function(s){return arguments.length?(e=typeof s=="function"?s:pt(Array.from(s)),a):e},a.value=function(s){return arguments.length?(r=typeof s=="function"?s:pt(+s),a):r},a.order=function(s){return arguments.length?(t=s==null?G1:typeof s=="function"?s:pt(Array.from(s)),a):t},a.offset=function(s){return arguments.length?(n=s??Us,a):n},a}function JF(e,t){if((r=e.length)>0){for(var n,r,a=0,s=e[0].length,l;a<s;++a){for(l=n=0;n<r;++n)l+=e[n][a][1]||0;if(l)for(n=0;n<r;++n)e[n][a][1]/=l}Us(e,t)}}function eK(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,s=r.length;n<s;++n){for(var l=0,c=0;l<a;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}Us(e,t)}}function tK(e,t){if(!(!((l=e.length)>0)||!((s=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,s,l;r<s;++r){for(var c=0,f=0,d=0;c<l;++c){for(var m=e[t[c]],y=m[r][1]||0,g=m[r-1][1]||0,S=(y-g)/2,w=0;w<c;++w){var j=e[t[w]],b=j[r][1]||0,A=j[r-1][1]||0;S+=b-A}f+=y,d+=S*y}a[r-1][1]+=a[r-1][0]=n,f&&(n-=d/f)}a[r-1][1]+=a[r-1][0]=n,Us(e,t)}}function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}var nK=["type","size","sizeType"];function F1(){return F1=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},F1.apply(this,arguments)}function yC(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 vC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yC(Object(n),!0).forEach(function(r){rK(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rK(e,t,n){return t=iK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iK(e){var t=aK(e,"string");return uc(t)=="symbol"?t:t+""}function aK(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function oK(e,t){if(e==null)return{};var n=sK(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sK(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 z4={symbolCircle:sj,symbolCross:EF,symbolDiamond:CF,symbolSquare:MF,symbolStar:kF,symbolTriangle:LF,symbolWye:$F},lK=Math.PI/180,uK=function(t){var n="symbol".concat(Bp(t));return z4[n]||sj},cK=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*lK;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}},fK=function(t,n){z4["symbol".concat(Bp(t))]=n},lj=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,s=a===void 0?64:a,l=t.sizeType,c=l===void 0?"area":l,f=oK(t,nK),d=vC(vC({},f),{},{type:r,size:s,sizeType:c}),m=function(){var b=uK(r),A=BF().type(b).size(cK(s,c,r));return A()},y=d.className,g=d.cx,S=d.cy,w=Se(d,!0);return g===+g&&S===+S&&s===+s?q.createElement("path",F1({},w,{className:Pe("recharts-symbols",y),transform:"translate(".concat(g,", ").concat(S,")"),d:m()})):null};lj.registerSymbol=fK;function Vs(e){"@babel/helpers - typeof";return Vs=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},Vs(e)}function K1(){return K1=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},K1.apply(this,arguments)}function gC(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 dK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gC(Object(n),!0).forEach(function(r){cc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hK(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pK(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,B4(r.key),r)}}function mK(e,t,n){return t&&pK(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yK(e,t,n){return t=Eh(t),vK(e,$4()?Reflect.construct(t,n||[],Eh(e).constructor):t.apply(e,n))}function vK(e,t){if(t&&(Vs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return gK(e)}function gK(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($4=function(){return!!e})()}function Eh(e){return Eh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Eh(e)}function xK(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&&Y1(e,t)}function Y1(e,t){return Y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Y1(e,t)}function cc(e,t,n){return t=B4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B4(e){var t=bK(e,"string");return Vs(t)=="symbol"?t:t+""}function bK(e,t){if(Vs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var or=32,uj=(function(e){function t(){return hK(this,t),yK(this,t,arguments)}return xK(t,e),mK(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,s=or/2,l=or/6,c=or/3,f=r.inactive?a:r.color;if(r.type==="plainline")return q.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:s,x2:or,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return q.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(s,"h").concat(c,`
A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(s,`
H`).concat(or,"M").concat(2*c,",").concat(s,`
A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return q.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(or/8,"h").concat(or,"v").concat(or*3/4,"h").concat(-or,"z"),className:"recharts-legend-icon"});if(q.isValidElement(r.legendIcon)){var d=dK({},r);return delete d.legendIcon,q.cloneElement(r.legendIcon,d)}return q.createElement(lj,{fill:f,cx:s,cy:s,size:or,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,s=a.payload,l=a.iconSize,c=a.layout,f=a.formatter,d=a.inactiveColor,m={x:0,y:0,width:or,height:or},y={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(S,w){var j=S.formatter||f,b=Pe(cc(cc({"recharts-legend-item":!0},"legend-item-".concat(w),!0),"inactive",S.inactive));if(S.type==="none")return null;var A=_e(S.value)?null:S.value;Er(!_e(S.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var _=S.inactive?d:S.color;return q.createElement("li",K1({className:b,style:y,key:"legend-item-".concat(w)},Ao(r.props,S,w)),q.createElement(q1,{width:l,height:l,viewBox:m,style:g},r.renderIcon(S)),q.createElement("span",{className:"recharts-legend-item-text",style:{color:_}},j?j(A,S,w):A))})}},{key:"render",value:function(){var r=this.props,a=r.payload,s=r.layout,l=r.align;if(!a||!a.length)return null;var c={padding:0,margin:0,textAlign:s==="horizontal"?l:"left"};return q.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(P.PureComponent);cc(uj,"displayName","Legend");cc(uj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var mx,xC;function SK(){if(xC)return mx;xC=1;var e=Lp();function t(){this.__data__=new e,this.size=0}return mx=t,mx}var yx,bC;function wK(){if(bC)return yx;bC=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return yx=e,yx}var vx,SC;function jK(){if(SC)return vx;SC=1;function e(t){return this.__data__.get(t)}return vx=e,vx}var gx,wC;function AK(){if(wC)return gx;wC=1;function e(t){return this.__data__.has(t)}return gx=e,gx}var xx,jC;function OK(){if(jC)return xx;jC=1;var e=Lp(),t=Jw(),n=ej(),r=200;function a(s,l){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([s,l]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(s,l),this.size=c.size,this}return xx=a,xx}var bx,AC;function q4(){if(AC)return bx;AC=1;var e=Lp(),t=SK(),n=wK(),r=jK(),a=AK(),s=OK();function l(c){var f=this.__data__=new e(c);this.size=f.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=a,l.prototype.set=s,bx=l,bx}var Sx,OC;function _K(){if(OC)return Sx;OC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Sx=t,Sx}var wx,_C;function TK(){if(_C)return wx;_C=1;function e(t){return this.__data__.has(t)}return wx=e,wx}var jx,TC;function I4(){if(TC)return jx;TC=1;var e=ej(),t=_K(),n=TK();function r(a){var s=-1,l=a==null?0:a.length;for(this.__data__=new e;++s<l;)this.add(a[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,jx=r,jx}var Ax,EC;function U4(){if(EC)return Ax;EC=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(n(t[r],r,t))return!0;return!1}return Ax=e,Ax}var Ox,NC;function V4(){if(NC)return Ox;NC=1;function e(t,n){return t.has(n)}return Ox=e,Ox}var _x,CC;function H4(){if(CC)return _x;CC=1;var e=I4(),t=U4(),n=V4(),r=1,a=2;function s(l,c,f,d,m,y){var g=f&r,S=l.length,w=c.length;if(S!=w&&!(g&&w>S))return!1;var j=y.get(l),b=y.get(c);if(j&&b)return j==c&&b==l;var A=-1,_=!0,T=f&a?new e:void 0;for(y.set(l,c),y.set(c,l);++A<S;){var C=l[A],O=c[A];if(d)var N=g?d(O,C,A,c,l,y):d(C,O,A,l,c,y);if(N!==void 0){if(N)continue;_=!1;break}if(T){if(!t(c,function(M,R){if(!n(T,R)&&(C===M||m(C,M,f,d,y)))return T.push(R)})){_=!1;break}}else if(!(C===O||m(C,O,f,d,y))){_=!1;break}}return y.delete(l),y.delete(c),_}return _x=s,_x}var Tx,MC;function EK(){if(MC)return Tx;MC=1;var e=ei(),t=e.Uint8Array;return Tx=t,Tx}var Ex,PC;function NK(){if(PC)return Ex;PC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a,s){r[++n]=[s,a]}),r}return Ex=e,Ex}var Nx,RC;function cj(){if(RC)return Nx;RC=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(a){r[++n]=a}),r}return Nx=e,Nx}var Cx,DC;function CK(){if(DC)return Cx;DC=1;var e=Jc(),t=EK(),n=Qw(),r=H4(),a=NK(),s=cj(),l=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",y="[object Map]",g="[object Number]",S="[object RegExp]",w="[object Set]",j="[object String]",b="[object Symbol]",A="[object ArrayBuffer]",_="[object DataView]",T=e?e.prototype:void 0,C=T?T.valueOf:void 0;function O(N,M,R,D,B,I,z){switch(R){case _:if(N.byteLength!=M.byteLength||N.byteOffset!=M.byteOffset)return!1;N=N.buffer,M=M.buffer;case A:return!(N.byteLength!=M.byteLength||!I(new t(N),new t(M)));case f:case d:case g:return n(+N,+M);case m:return N.name==M.name&&N.message==M.message;case S:case j:return N==M+"";case y:var H=a;case w:var X=D&l;if(H||(H=s),N.size!=M.size&&!X)return!1;var Y=z.get(N);if(Y)return Y==M;D|=c,z.set(N,M);var $=r(H(N),H(M),D,B,I,z);return z.delete(N),$;case b:if(C)return C.call(N)==C.call(M)}return!1}return Cx=O,Cx}var Mx,kC;function G4(){if(kC)return Mx;kC=1;function e(t,n){for(var r=-1,a=n.length,s=t.length;++r<a;)t[s+r]=n[r];return t}return Mx=e,Mx}var Px,LC;function MK(){if(LC)return Px;LC=1;var e=G4(),t=Nn();function n(r,a,s){var l=a(r);return t(r)?l:e(l,s(r))}return Px=n,Px}var Rx,zC;function PK(){if(zC)return Rx;zC=1;function e(t,n){for(var r=-1,a=t==null?0:t.length,s=0,l=[];++r<a;){var c=t[r];n(c,r,t)&&(l[s++]=c)}return l}return Rx=e,Rx}var Dx,$C;function RK(){if($C)return Dx;$C=1;function e(){return[]}return Dx=e,Dx}var kx,BC;function DK(){if(BC)return kx;BC=1;var e=PK(),t=RK(),n=Object.prototype,r=n.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(l){return l==null?[]:(l=Object(l),e(a(l),function(c){return r.call(l,c)}))}:t;return kx=s,kx}var Lx,qC;function kK(){if(qC)return Lx;qC=1;function e(t,n){for(var r=-1,a=Array(t);++r<t;)a[r]=n(r);return a}return Lx=e,Lx}var zx,IC;function LK(){if(IC)return zx;IC=1;var e=Li(),t=zi(),n="[object Arguments]";function r(a){return t(a)&&e(a)==n}return zx=r,zx}var $x,UC;function fj(){if(UC)return $x;UC=1;var e=LK(),t=zi(),n=Object.prototype,r=n.hasOwnProperty,a=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!a.call(l,"callee")};return $x=s,$x}var Iu={exports:{}},Bx,VC;function zK(){if(VC)return Bx;VC=1;function e(){return!1}return Bx=e,Bx}Iu.exports;var HC;function F4(){return HC||(HC=1,(function(e,t){var n=ei(),r=zK(),a=t&&!t.nodeType&&t,s=a&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===a,c=l?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(Iu,Iu.exports)),Iu.exports}var qx,GC;function dj(){if(GC)return qx;GC=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,a){var s=typeof r;return a=a??e,!!a&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<a}return qx=n,qx}var Ix,FC;function hj(){if(FC)return Ix;FC=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Ix=t,Ix}var Ux,KC;function $K(){if(KC)return Ux;KC=1;var e=Li(),t=hj(),n=zi(),r="[object Arguments]",a="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",m="[object Number]",y="[object Object]",g="[object RegExp]",S="[object Set]",w="[object String]",j="[object WeakMap]",b="[object ArrayBuffer]",A="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",C="[object Int8Array]",O="[object Int16Array]",N="[object Int32Array]",M="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",B="[object Uint32Array]",I={};I[_]=I[T]=I[C]=I[O]=I[N]=I[M]=I[R]=I[D]=I[B]=!0,I[r]=I[a]=I[b]=I[s]=I[A]=I[l]=I[c]=I[f]=I[d]=I[m]=I[y]=I[g]=I[S]=I[w]=I[j]=!1;function z(H){return n(H)&&t(H.length)&&!!I[e(H)]}return Ux=z,Ux}var Vx,YC;function K4(){if(YC)return Vx;YC=1;function e(t){return function(n){return t(n)}}return Vx=e,Vx}var Uu={exports:{}};Uu.exports;var XC;function BK(){return XC||(XC=1,(function(e,t){var n=d4(),r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,s=a&&a.exports===r,l=s&&n.process,c=(function(){try{var f=a&&a.require&&a.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(Uu,Uu.exports)),Uu.exports}var Hx,WC;function Y4(){if(WC)return Hx;WC=1;var e=$K(),t=K4(),n=BK(),r=n&&n.isTypedArray,a=r?t(r):e;return Hx=a,Hx}var Gx,ZC;function qK(){if(ZC)return Gx;ZC=1;var e=kK(),t=fj(),n=Nn(),r=F4(),a=dj(),s=Y4(),l=Object.prototype,c=l.hasOwnProperty;function f(d,m){var y=n(d),g=!y&&t(d),S=!y&&!g&&r(d),w=!y&&!g&&!S&&s(d),j=y||g||S||w,b=j?e(d.length,String):[],A=b.length;for(var _ in d)(m||c.call(d,_))&&!(j&&(_=="length"||S&&(_=="offset"||_=="parent")||w&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||a(_,A)))&&b.push(_);return b}return Gx=f,Gx}var Fx,QC;function IK(){if(QC)return Fx;QC=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,a=typeof r=="function"&&r.prototype||e;return n===a}return Fx=t,Fx}var Kx,JC;function X4(){if(JC)return Kx;JC=1;function e(t,n){return function(r){return t(n(r))}}return Kx=e,Kx}var Yx,eM;function UK(){if(eM)return Yx;eM=1;var e=X4(),t=e(Object.keys,Object);return Yx=t,Yx}var Xx,tM;function VK(){if(tM)return Xx;tM=1;var e=IK(),t=UK(),n=Object.prototype,r=n.hasOwnProperty;function a(s){if(!e(s))return t(s);var l=[];for(var c in Object(s))r.call(s,c)&&c!="constructor"&&l.push(c);return l}return Xx=a,Xx}var Wx,nM;function ef(){if(nM)return Wx;nM=1;var e=Zw(),t=hj();function n(r){return r!=null&&t(r.length)&&!e(r)}return Wx=n,Wx}var Zx,rM;function Vp(){if(rM)return Zx;rM=1;var e=qK(),t=VK(),n=ef();function r(a){return n(a)?e(a):t(a)}return Zx=r,Zx}var Qx,iM;function HK(){if(iM)return Qx;iM=1;var e=MK(),t=DK(),n=Vp();function r(a){return e(a,n,t)}return Qx=r,Qx}var Jx,aM;function GK(){if(aM)return Jx;aM=1;var e=HK(),t=1,n=Object.prototype,r=n.hasOwnProperty;function a(s,l,c,f,d,m){var y=c&t,g=e(s),S=g.length,w=e(l),j=w.length;if(S!=j&&!y)return!1;for(var b=S;b--;){var A=g[b];if(!(y?A in l:r.call(l,A)))return!1}var _=m.get(s),T=m.get(l);if(_&&T)return _==l&&T==s;var C=!0;m.set(s,l),m.set(l,s);for(var O=y;++b<S;){A=g[b];var N=s[A],M=l[A];if(f)var R=y?f(M,N,A,l,s,m):f(N,M,A,s,l,m);if(!(R===void 0?N===M||d(N,M,c,f,m):R)){C=!1;break}O||(O=A=="constructor")}if(C&&!O){var D=s.constructor,B=l.constructor;D!=B&&"constructor"in s&&"constructor"in l&&!(typeof D=="function"&&D instanceof D&&typeof B=="function"&&B instanceof B)&&(C=!1)}return m.delete(s),m.delete(l),C}return Jx=a,Jx}var eb,oM;function FK(){if(oM)return eb;oM=1;var e=Mo(),t=ei(),n=e(t,"DataView");return eb=n,eb}var tb,sM;function KK(){if(sM)return tb;sM=1;var e=Mo(),t=ei(),n=e(t,"Promise");return tb=n,tb}var nb,lM;function W4(){if(lM)return nb;lM=1;var e=Mo(),t=ei(),n=e(t,"Set");return nb=n,nb}var rb,uM;function YK(){if(uM)return rb;uM=1;var e=Mo(),t=ei(),n=e(t,"WeakMap");return rb=n,rb}var ib,cM;function XK(){if(cM)return ib;cM=1;var e=FK(),t=Jw(),n=KK(),r=W4(),a=YK(),s=Li(),l=h4(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",y="[object WeakMap]",g="[object DataView]",S=l(e),w=l(t),j=l(n),b=l(r),A=l(a),_=s;return(e&&_(new e(new ArrayBuffer(1)))!=g||t&&_(new t)!=c||n&&_(n.resolve())!=d||r&&_(new r)!=m||a&&_(new a)!=y)&&(_=function(T){var C=s(T),O=C==f?T.constructor:void 0,N=O?l(O):"";if(N)switch(N){case S:return g;case w:return c;case j:return d;case b:return m;case A:return y}return C}),ib=_,ib}var ab,fM;function WK(){if(fM)return ab;fM=1;var e=q4(),t=H4(),n=CK(),r=GK(),a=XK(),s=Nn(),l=F4(),c=Y4(),f=1,d="[object Arguments]",m="[object Array]",y="[object Object]",g=Object.prototype,S=g.hasOwnProperty;function w(j,b,A,_,T,C){var O=s(j),N=s(b),M=O?m:a(j),R=N?m:a(b);M=M==d?y:M,R=R==d?y:R;var D=M==y,B=R==y,I=M==R;if(I&&l(j)){if(!l(b))return!1;O=!0,D=!1}if(I&&!D)return C||(C=new e),O||c(j)?t(j,b,A,_,T,C):n(j,b,M,A,_,T,C);if(!(A&f)){var z=D&&S.call(j,"__wrapped__"),H=B&&S.call(b,"__wrapped__");if(z||H){var X=z?j.value():j,Y=H?b.value():b;return C||(C=new e),T(X,Y,A,_,C)}}return I?(C||(C=new e),r(j,b,A,_,T,C)):!1}return ab=w,ab}var ob,dM;function pj(){if(dM)return ob;dM=1;var e=WK(),t=zi();function n(r,a,s,l,c){return r===a?!0:r==null||a==null||!t(r)&&!t(a)?r!==r&&a!==a:e(r,a,s,l,n,c)}return ob=n,ob}var sb,hM;function ZK(){if(hM)return sb;hM=1;var e=q4(),t=pj(),n=1,r=2;function a(s,l,c,f){var d=c.length,m=d,y=!f;if(s==null)return!m;for(s=Object(s);d--;){var g=c[d];if(y&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<m;){g=c[d];var S=g[0],w=s[S],j=g[1];if(y&&g[2]){if(w===void 0&&!(S in s))return!1}else{var b=new e;if(f)var A=f(w,j,S,s,l,b);if(!(A===void 0?t(j,w,n|r,f,b):A))return!1}}return!0}return sb=a,sb}var lb,pM;function Z4(){if(pM)return lb;pM=1;var e=Ca();function t(n){return n===n&&!e(n)}return lb=t,lb}var ub,mM;function QK(){if(mM)return ub;mM=1;var e=Z4(),t=Vp();function n(r){for(var a=t(r),s=a.length;s--;){var l=a[s],c=r[l];a[s]=[l,c,e(c)]}return a}return ub=n,ub}var cb,yM;function Q4(){if(yM)return cb;yM=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return cb=e,cb}var fb,vM;function JK(){if(vM)return fb;vM=1;var e=ZK(),t=QK(),n=Q4();function r(a){var s=t(a);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(l){return l===a||e(l,a,s)}}return fb=r,fb}var db,gM;function eY(){if(gM)return db;gM=1;function e(t,n){return t!=null&&n in Object(t)}return db=e,db}var hb,xM;function tY(){if(xM)return hb;xM=1;var e=y4(),t=fj(),n=Nn(),r=dj(),a=hj(),s=$p();function l(c,f,d){f=e(f,c);for(var m=-1,y=f.length,g=!1;++m<y;){var S=s(f[m]);if(!(g=c!=null&&d(c,S)))break;c=c[S]}return g||++m!=y?g:(y=c==null?0:c.length,!!y&&a(y)&&r(S,y)&&(n(c)||t(c)))}return hb=l,hb}var pb,bM;function nY(){if(bM)return pb;bM=1;var e=eY(),t=tY();function n(r,a){return r!=null&&t(r,a,e)}return pb=n,pb}var mb,SM;function rY(){if(SM)return mb;SM=1;var e=pj(),t=v4(),n=nY(),r=Ww(),a=Z4(),s=Q4(),l=$p(),c=1,f=2;function d(m,y){return r(m)&&a(y)?s(l(m),y):function(g){var S=t(g,m);return S===void 0&&S===y?n(g,m):e(y,S,c|f)}}return mb=d,mb}var yb,wM;function Al(){if(wM)return yb;wM=1;function e(t){return t}return yb=e,yb}var vb,jM;function iY(){if(jM)return vb;jM=1;function e(t){return function(n){return n==null?void 0:n[t]}}return vb=e,vb}var gb,AM;function aY(){if(AM)return gb;AM=1;var e=nj();function t(n){return function(r){return e(r,n)}}return gb=t,gb}var xb,OM;function oY(){if(OM)return xb;OM=1;var e=iY(),t=aY(),n=Ww(),r=$p();function a(s){return n(s)?e(r(s)):t(s)}return xb=a,xb}var bb,_M;function ti(){if(_M)return bb;_M=1;var e=JK(),t=rY(),n=Al(),r=Nn(),a=oY();function s(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):a(l)}return bb=s,bb}var Sb,TM;function J4(){if(TM)return Sb;TM=1;function e(t,n,r,a){for(var s=t.length,l=r+(a?1:-1);a?l--:++l<s;)if(n(t[l],l,t))return l;return-1}return Sb=e,Sb}var wb,EM;function sY(){if(EM)return wb;EM=1;function e(t){return t!==t}return wb=e,wb}var jb,NM;function lY(){if(NM)return jb;NM=1;function e(t,n,r){for(var a=r-1,s=t.length;++a<s;)if(t[a]===n)return a;return-1}return jb=e,jb}var Ab,CM;function uY(){if(CM)return Ab;CM=1;var e=J4(),t=sY(),n=lY();function r(a,s,l){return s===s?n(a,s,l):e(a,t,l)}return Ab=r,Ab}var Ob,MM;function cY(){if(MM)return Ob;MM=1;var e=uY();function t(n,r){var a=n==null?0:n.length;return!!a&&e(n,r,0)>-1}return Ob=t,Ob}var _b,PM;function fY(){if(PM)return _b;PM=1;function e(t,n,r){for(var a=-1,s=t==null?0:t.length;++a<s;)if(r(n,t[a]))return!0;return!1}return _b=e,_b}var Tb,RM;function dY(){if(RM)return Tb;RM=1;function e(){}return Tb=e,Tb}var Eb,DM;function hY(){if(DM)return Eb;DM=1;var e=W4(),t=dY(),n=cj(),r=1/0,a=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return Eb=a,Eb}var Nb,kM;function pY(){if(kM)return Nb;kM=1;var e=I4(),t=cY(),n=fY(),r=V4(),a=hY(),s=cj(),l=200;function c(f,d,m){var y=-1,g=t,S=f.length,w=!0,j=[],b=j;if(m)w=!1,g=n;else if(S>=l){var A=d?null:a(f);if(A)return s(A);w=!1,g=r,b=new e}else b=d?[]:j;e:for(;++y<S;){var _=f[y],T=d?d(_):_;if(_=m||_!==0?_:0,w&&T===T){for(var C=b.length;C--;)if(b[C]===T)continue e;d&&b.push(T),j.push(_)}else g(b,T,m)||(b!==j&&b.push(T),j.push(_))}return j}return Nb=c,Nb}var Cb,LM;function mY(){if(LM)return Cb;LM=1;var e=ti(),t=pY();function n(r,a){return r&&r.length?t(r,e(a,2)):[]}return Cb=n,Cb}var yY=mY();const zM=rt(yY);function ez(e,t,n){return t===!0?zM(e,n):_e(t)?zM(e,t):e}function Hs(e){"@babel/helpers - typeof";return Hs=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},Hs(e)}var vY=["ref"];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 wi(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){Hp(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 gY(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BM(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,nz(r.key),r)}}function xY(e,t,n){return t&&BM(e.prototype,t),n&&BM(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function bY(e,t,n){return t=Nh(t),SY(e,tz()?Reflect.construct(t,n||[],Nh(e).constructor):t.apply(e,n))}function SY(e,t){if(t&&(Hs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wY(e)}function wY(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tz=function(){return!!e})()}function Nh(e){return Nh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nh(e)}function jY(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&&X1(e,t)}function X1(e,t){return X1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},X1(e,t)}function Hp(e,t,n){return t=nz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nz(e){var t=AY(e,"string");return Hs(t)=="symbol"?t:t+""}function AY(e,t){if(Hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function OY(e,t){if(e==null)return{};var n=_Y(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _Y(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 TY(e){return e.value}function EY(e,t){if(q.isValidElement(e))return q.cloneElement(e,t);if(typeof e=="function")return q.createElement(e,t);t.ref;var n=OY(t,vY);return q.createElement(uj,n)}var qM=1,Ls=(function(e){function t(){var n;gY(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=bY(this,t,[].concat(a)),Hp(n,"lastBoundingBox",{width:-1,height:-1}),n}return jY(t,e),xY(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)>qM||Math.abs(a.height-this.lastBoundingBox.height)>qM)&&(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?wi({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,s=a.layout,l=a.align,c=a.verticalAlign,f=a.margin,d=a.chartWidth,m=a.chartHeight,y,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&s==="vertical"){var S=this.getBBoxSnapshot();y={left:((d||0)-S.width)/2}}else y=l==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var w=this.getBBoxSnapshot();g={top:((m||0)-w.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return wi(wi({},y),g)}},{key:"render",value:function(){var r=this,a=this.props,s=a.content,l=a.width,c=a.height,f=a.wrapperStyle,d=a.payloadUniqBy,m=a.payload,y=wi(wi({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return q.createElement("div",{className:"recharts-legend-wrapper",style:y,ref:function(S){r.wrapperNode=S}},EY(s,wi(wi({},this.props),{},{payload:ez(m,d,TY)})))}}],[{key:"getWithHeight",value:function(r,a){var s=wi(wi({},this.defaultProps),r.props),l=s.layout;return l==="vertical"&&ue(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||a}:null}}])})(P.PureComponent);Hp(Ls,"displayName","Legend");Hp(Ls,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Mb,IM;function NY(){if(IM)return Mb;IM=1;var e=Jc(),t=fj(),n=Nn(),r=e?e.isConcatSpreadable:void 0;function a(s){return n(s)||t(s)||!!(r&&s&&s[r])}return Mb=a,Mb}var Pb,UM;function rz(){if(UM)return Pb;UM=1;var e=G4(),t=NY();function n(r,a,s,l,c){var f=-1,d=r.length;for(s||(s=t),c||(c=[]);++f<d;){var m=r[f];a>0&&s(m)?a>1?n(m,a-1,s,l,c):e(c,m):l||(c[c.length]=m)}return c}return Pb=n,Pb}var Rb,VM;function CY(){if(VM)return Rb;VM=1;function e(t){return function(n,r,a){for(var s=-1,l=Object(n),c=a(n),f=c.length;f--;){var d=c[t?f:++s];if(r(l[d],d,l)===!1)break}return n}}return Rb=e,Rb}var Db,HM;function MY(){if(HM)return Db;HM=1;var e=CY(),t=e();return Db=t,Db}var kb,GM;function iz(){if(GM)return kb;GM=1;var e=MY(),t=Vp();function n(r,a){return r&&e(r,a,t)}return kb=n,kb}var Lb,FM;function PY(){if(FM)return Lb;FM=1;var e=ef();function t(n,r){return function(a,s){if(a==null)return a;if(!e(a))return n(a,s);for(var l=a.length,c=r?l:-1,f=Object(a);(r?c--:++c<l)&&s(f[c],c,f)!==!1;);return a}}return Lb=t,Lb}var zb,KM;function mj(){if(KM)return zb;KM=1;var e=iz(),t=PY(),n=t(e);return zb=n,zb}var $b,YM;function az(){if(YM)return $b;YM=1;var e=mj(),t=ef();function n(r,a){var s=-1,l=t(r)?Array(r.length):[];return e(r,function(c,f,d){l[++s]=a(c,f,d)}),l}return $b=n,$b}var Bb,XM;function RY(){if(XM)return Bb;XM=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return Bb=e,Bb}var qb,WM;function DY(){if(WM)return qb;WM=1;var e=Sl();function t(n,r){if(n!==r){var a=n!==void 0,s=n===null,l=n===n,c=e(n),f=r!==void 0,d=r===null,m=r===r,y=e(r);if(!d&&!y&&!c&&n>r||c&&f&&m&&!d&&!y||s&&f&&m||!a&&m||!l)return 1;if(!s&&!c&&!y&&n<r||y&&a&&l&&!s&&!c||d&&a&&l||!f&&l||!m)return-1}return 0}return qb=t,qb}var Ib,ZM;function kY(){if(ZM)return Ib;ZM=1;var e=DY();function t(n,r,a){for(var s=-1,l=n.criteria,c=r.criteria,f=l.length,d=a.length;++s<f;){var m=e(l[s],c[s]);if(m){if(s>=d)return m;var y=a[s];return m*(y=="desc"?-1:1)}}return n.index-r.index}return Ib=t,Ib}var Ub,QM;function LY(){if(QM)return Ub;QM=1;var e=tj(),t=nj(),n=ti(),r=az(),a=RY(),s=K4(),l=kY(),c=Al(),f=Nn();function d(m,y,g){y.length?y=e(y,function(j){return f(j)?function(b){return t(b,j.length===1?j[0]:j)}:j}):y=[c];var S=-1;y=e(y,s(n));var w=r(m,function(j,b,A){var _=e(y,function(T){return T(j)});return{criteria:_,index:++S,value:j}});return a(w,function(j,b){return l(j,b,g)})}return Ub=d,Ub}var Vb,JM;function zY(){if(JM)return Vb;JM=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return Vb=e,Vb}var Hb,eP;function $Y(){if(eP)return Hb;eP=1;var e=zY(),t=Math.max;function n(r,a,s){return a=t(a===void 0?r.length-1:a,0),function(){for(var l=arguments,c=-1,f=t(l.length-a,0),d=Array(f);++c<f;)d[c]=l[a+c];c=-1;for(var m=Array(a+1);++c<a;)m[c]=l[c];return m[a]=s(d),e(r,this,m)}}return Hb=n,Hb}var Gb,tP;function BY(){if(tP)return Gb;tP=1;function e(t){return function(){return t}}return Gb=e,Gb}var Fb,nP;function oz(){if(nP)return Fb;nP=1;var e=Mo(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return Fb=t,Fb}var Kb,rP;function qY(){if(rP)return Kb;rP=1;var e=BY(),t=oz(),n=Al(),r=t?function(a,s){return t(a,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return Kb=r,Kb}var Yb,iP;function IY(){if(iP)return Yb;iP=1;var e=800,t=16,n=Date.now;function r(a){var s=0,l=0;return function(){var c=n(),f=t-(c-l);if(l=c,f>0){if(++s>=e)return arguments[0]}else s=0;return a.apply(void 0,arguments)}}return Yb=r,Yb}var Xb,aP;function UY(){if(aP)return Xb;aP=1;var e=qY(),t=IY(),n=t(e);return Xb=n,Xb}var Wb,oP;function VY(){if(oP)return Wb;oP=1;var e=Al(),t=$Y(),n=UY();function r(a,s){return n(t(a,s,e),a+"")}return Wb=r,Wb}var Zb,sP;function Gp(){if(sP)return Zb;sP=1;var e=Qw(),t=ef(),n=dj(),r=Ca();function a(s,l,c){if(!r(c))return!1;var f=typeof l;return(f=="number"?t(c)&&n(l,c.length):f=="string"&&l in c)?e(c[l],s):!1}return Zb=a,Zb}var Qb,lP;function HY(){if(lP)return Qb;lP=1;var e=rz(),t=LY(),n=VY(),r=Gp(),a=n(function(s,l){if(s==null)return[];var c=l.length;return c>1&&r(s,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(s,e(l,1),[])});return Qb=a,Qb}var GY=HY();const yj=rt(GY);function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}function W1(){return W1=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},W1.apply(this,arguments)}function FY(e,t){return WY(e)||XY(e,t)||YY(e,t)||KY()}function KY(){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 YY(e,t){if(e){if(typeof e=="string")return uP(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 uP(e,t)}}function uP(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 XY(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function WY(e){if(Array.isArray(e))return 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 Jb(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){ZY(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 ZY(e,t,n){return t=QY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QY(e){var t=JY(e,"string");return fc(t)=="symbol"?t:t+""}function JY(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eX(e){return Array.isArray(e)&&Ft(e[0])&&Ft(e[1])?e.join(" ~ "):e}var tX=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,s=a===void 0?{}:a,l=t.itemStyle,c=l===void 0?{}:l,f=t.labelStyle,d=f===void 0?{}:f,m=t.payload,y=t.formatter,g=t.itemSorter,S=t.wrapperClassName,w=t.labelClassName,j=t.label,b=t.labelFormatter,A=t.accessibilityLayer,_=A===void 0?!1:A,T=function(){if(m&&m.length){var z={padding:0,margin:0},H=(g?yj(m,g):m).map(function(X,Y){if(X.type==="none")return null;var $=Jb({display:"block",paddingTop:4,paddingBottom:4,color:X.color||"#000"},c),F=X.formatter||y||eX,Q=X.value,ie=X.name,se=Q,L=ie;if(F&&se!=null&&L!=null){var G=F(Q,ie,X,Y,m);if(Array.isArray(G)){var re=FY(G,2);se=re[0],L=re[1]}else se=G}return q.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(Y),style:$},Ft(L)?q.createElement("span",{className:"recharts-tooltip-item-name"},L):null,Ft(L)?q.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,q.createElement("span",{className:"recharts-tooltip-item-value"},se),q.createElement("span",{className:"recharts-tooltip-item-unit"},X.unit||""))});return q.createElement("ul",{className:"recharts-tooltip-item-list",style:z},H)}return null},C=Jb({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),O=Jb({margin:0},d),N=!Ne(j),M=N?j:"",R=Pe("recharts-default-tooltip",S),D=Pe("recharts-tooltip-label",w);N&&b&&m!==void 0&&m!==null&&(M=b(j,m));var B=_?{role:"status","aria-live":"assertive"}:{};return q.createElement("div",W1({className:R,style:C},B),q.createElement("p",{className:D,style:O},q.isValidElement(M)?M:"".concat(M)),T())};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 Ld(e,t,n){return t=nX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nX(e){var t=rX(e,"string");return dc(t)=="symbol"?t:t+""}function rX(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 Eu="recharts-tooltip-wrapper",iX={visibility:"hidden"};function aX(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Pe(Eu,Ld(Ld(Ld(Ld({},"".concat(Eu,"-right"),ue(n)&&t&&ue(t.x)&&n>=t.x),"".concat(Eu,"-left"),ue(n)&&t&&ue(t.x)&&n<t.x),"".concat(Eu,"-bottom"),ue(r)&&t&&ue(t.y)&&r>=t.y),"".concat(Eu,"-top"),ue(r)&&t&&ue(t.y)&&r<t.y))}function fP(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,s=e.position,l=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(s&&ue(s[r]))return s[r];var m=n[r]-c-a,y=n[r]+a;if(t[r])return l[r]?m:y;if(l[r]){var g=m,S=f[r];return g<S?Math.max(y,f[r]):Math.max(m,f[r])}var w=y+c,j=f[r]+d;return w>j?Math.max(m,f[r]):Math.max(y,f[r])}function oX(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 sX(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,s=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,m,y;return l.height>0&&l.width>0&&n?(m=fP({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:s,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),y=fP({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:s,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),d=oX({translateX:m,translateY:y,useTranslate3d:c})):d=iX,{cssProperties:d,cssClasses:aX({translateX:m,translateY:y,coordinate:n})}}function Gs(e){"@babel/helpers - typeof";return Gs=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},Gs(e)}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 hP(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){Q1(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 lX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uX(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,lz(r.key),r)}}function cX(e,t,n){return t&&uX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fX(e,t,n){return t=Ch(t),dX(e,sz()?Reflect.construct(t,n||[],Ch(e).constructor):t.apply(e,n))}function dX(e,t){if(t&&(Gs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hX(e)}function hX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sz=function(){return!!e})()}function Ch(e){return Ch=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ch(e)}function pX(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 Q1(e,t,n){return t=lz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lz(e){var t=mX(e,"string");return Gs(t)=="symbol"?t:t+""}function mX(e,t){if(Gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pP=1,yX=(function(e){function t(){var n;lX(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=fX(this,t,[].concat(a)),Q1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),Q1(n,"handleKeyDown",function(l){if(l.key==="Escape"){var c,f,d,m;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&c!==void 0?c:0,y:(d=(m=n.props.coordinate)===null||m===void 0?void 0:m.y)!==null&&d!==void 0?d:0}})}}),n}return pX(t,e),cX(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>pP||Math.abs(r.height-this.state.lastBoundingBox.height)>pP)&&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,s=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.children,m=a.coordinate,y=a.hasPayload,g=a.isAnimationActive,S=a.offset,w=a.position,j=a.reverseDirection,b=a.useTranslate3d,A=a.viewBox,_=a.wrapperStyle,T=sX({allowEscapeViewBox:l,coordinate:m,offsetTopLeft:S,position:w,reverseDirection:j,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:A}),C=T.cssClasses,O=T.cssProperties,N=hP(hP({transition:g&&s?"transform ".concat(c,"ms ").concat(f):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&y?"visible":"hidden",position:"absolute",top:0,left:0},_);return q.createElement("div",{tabIndex:-1,className:C,style:N,ref:function(R){r.wrapperNode=R}},d)}}])})(P.PureComponent),vX=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ma={isSsr:vX()};function Fs(e){"@babel/helpers - typeof";return Fs=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},Fs(e)}function mP(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 yP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mP(Object(n),!0).forEach(function(r){vj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xX(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,cz(r.key),r)}}function bX(e,t,n){return t&&xX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function SX(e,t,n){return t=Mh(t),wX(e,uz()?Reflect.construct(t,n||[],Mh(e).constructor):t.apply(e,n))}function wX(e,t){if(t&&(Fs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return jX(e)}function jX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uz=function(){return!!e})()}function Mh(e){return Mh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mh(e)}function AX(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&&J1(e,t)}function J1(e,t){return J1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},J1(e,t)}function vj(e,t,n){return t=cz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cz(e){var t=OX(e,"string");return Fs(t)=="symbol"?t:t+""}function OX(e,t){if(Fs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function _X(e){return e.dataKey}function TX(e,t){return q.isValidElement(e)?q.cloneElement(e,t):typeof e=="function"?q.createElement(e,t):q.createElement(tX,t)}var Un=(function(e){function t(){return gX(this,t),SX(this,t,arguments)}return AX(t,e),bX(t,[{key:"render",value:function(){var r=this,a=this.props,s=a.active,l=a.allowEscapeViewBox,c=a.animationDuration,f=a.animationEasing,d=a.content,m=a.coordinate,y=a.filterNull,g=a.isAnimationActive,S=a.offset,w=a.payload,j=a.payloadUniqBy,b=a.position,A=a.reverseDirection,_=a.useTranslate3d,T=a.viewBox,C=a.wrapperStyle,O=w??[];y&&O.length&&(O=ez(w.filter(function(M){return M.value!=null&&(M.hide!==!0||r.props.includeHidden)}),j,_X));var N=O.length>0;return q.createElement(yX,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:s,coordinate:m,hasPayload:N,offset:S,position:b,reverseDirection:A,useTranslate3d:_,viewBox:T,wrapperStyle:C},TX(d,yP(yP({},this.props),{},{payload:O})))}}])})(P.PureComponent);vj(Un,"displayName","Tooltip");vj(Un,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ma.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 e0,vP;function EX(){if(vP)return e0;vP=1;var e=ei(),t=function(){return e.Date.now()};return e0=t,e0}var t0,gP;function NX(){if(gP)return t0;gP=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return t0=t,t0}var n0,xP;function CX(){if(xP)return n0;xP=1;var e=NX(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return n0=n,n0}var r0,bP;function fz(){if(bP)return r0;bP=1;var e=CX(),t=Ca(),n=Sl(),r=NaN,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var m=typeof d.valueOf=="function"?d.valueOf():d;d=t(m)?m+"":m}if(typeof d!="string")return d===0?d:+d;d=e(d);var y=s.test(d);return y||l.test(d)?c(d.slice(2),y?2:8):a.test(d)?r:+d}return r0=f,r0}var i0,SP;function MX(){if(SP)return i0;SP=1;var e=Ca(),t=EX(),n=fz(),r="Expected a function",a=Math.max,s=Math.min;function l(c,f,d){var m,y,g,S,w,j,b=0,A=!1,_=!1,T=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(A=!!d.leading,_="maxWait"in d,g=_?a(n(d.maxWait)||0,f):g,T="trailing"in d?!!d.trailing:T);function C(H){var X=m,Y=y;return m=y=void 0,b=H,S=c.apply(Y,X),S}function O(H){return b=H,w=setTimeout(R,f),A?C(H):S}function N(H){var X=H-j,Y=H-b,$=f-X;return _?s($,g-Y):$}function M(H){var X=H-j,Y=H-b;return j===void 0||X>=f||X<0||_&&Y>=g}function R(){var H=t();if(M(H))return D(H);w=setTimeout(R,N(H))}function D(H){return w=void 0,T&&m?C(H):(m=y=void 0,S)}function B(){w!==void 0&&clearTimeout(w),b=0,m=j=y=w=void 0}function I(){return w===void 0?S:D(t())}function z(){var H=t(),X=M(H);if(m=arguments,y=this,j=H,X){if(w===void 0)return O(j);if(_)return clearTimeout(w),w=setTimeout(R,f),C(j)}return w===void 0&&(w=setTimeout(R,f)),S}return z.cancel=B,z.flush=I,z}return i0=l,i0}var a0,wP;function PX(){if(wP)return a0;wP=1;var e=MX(),t=Ca(),n="Expected a function";function r(a,s,l){var c=!0,f=!0;if(typeof a!="function")throw new TypeError(n);return t(l)&&(c="leading"in l?!!l.leading:c,f="trailing"in l?!!l.trailing:f),e(a,s,{leading:c,maxWait:s,trailing:f})}return a0=r,a0}var RX=PX();const dz=rt(RX);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 jP(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 zd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jP(Object(n),!0).forEach(function(r){DX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function DX(e,t,n){return t=kX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kX(e){var t=LX(e,"string");return hc(t)=="symbol"?t:t+""}function LX(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)}function zX(e,t){return IX(e)||qX(e,t)||BX(e,t)||$X()}function $X(){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 BX(e,t){if(e){if(typeof e=="string")return AP(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 AP(e,t)}}function AP(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 qX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function IX(e){if(Array.isArray(e))return e}var Ph=P.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,s=e.width,l=s===void 0?"100%":s,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,m=d===void 0?0:d,y=e.minHeight,g=e.maxHeight,S=e.children,w=e.debounce,j=w===void 0?0:w,b=e.id,A=e.className,_=e.onResize,T=e.style,C=T===void 0?{}:T,O=P.useRef(null),N=P.useRef();N.current=_,P.useImperativeHandle(t,function(){return Object.defineProperty(O.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),O.current},configurable:!0})});var M=P.useState({containerWidth:a.width,containerHeight:a.height}),R=zX(M,2),D=R[0],B=R[1],I=P.useCallback(function(H,X){B(function(Y){var $=Math.round(H),F=Math.round(X);return Y.containerWidth===$&&Y.containerHeight===F?Y:{containerWidth:$,containerHeight:F}})},[]);P.useEffect(function(){var H=function(ie){var se,L=ie[0].contentRect,G=L.width,re=L.height;I(G,re),(se=N.current)===null||se===void 0||se.call(N,G,re)};j>0&&(H=dz(H,j,{trailing:!0,leading:!1}));var X=new ResizeObserver(H),Y=O.current.getBoundingClientRect(),$=Y.width,F=Y.height;return I($,F),X.observe(O.current),function(){X.disconnect()}},[I,j]);var z=P.useMemo(function(){var H=D.containerWidth,X=D.containerHeight;if(H<0||X<0)return null;Er(fo(l)||fo(f),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,l,f),Er(!n||n>0,"The aspect(%s) must be greater than zero.",n);var Y=fo(l)?H:l,$=fo(f)?X:f;n&&n>0&&(Y?$=Y/n:$&&(Y=$*n),g&&$>g&&($=g)),Er(Y>0||$>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,Y,$,l,f,m,y,n);var F=!Array.isArray(S)&&Ei(S.type).endsWith("Chart");return q.Children.map(S,function(Q){return q.isValidElement(Q)?P.cloneElement(Q,zd({width:Y,height:$},F?{style:zd({height:"100%",width:"100%",maxHeight:$,maxWidth:Y},Q.props.style)}:{})):Q})},[n,S,f,g,y,m,D,l]);return q.createElement("div",{id:b?"".concat(b):void 0,className:Pe("recharts-responsive-container",A),style:zd(zd({},C),{},{width:l,height:f,minWidth:m,minHeight:y,maxHeight:g}),ref:O},z)}),Fp=function(t){return null};Fp.displayName="Cell";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 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 eS(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){UX(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 UX(e,t,n){return t=VX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VX(e){var t=HX(e,"string");return pc(t)=="symbol"?t:t+""}function HX(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bs={widthCache:{},cacheCount:0},GX=2e3,FX={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},_P="recharts_measurement_span";function KX(e){var t=eS({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Wu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ma.isSsr)return{width:0,height:0};var r=KX(n),a=JSON.stringify({text:t,copyStyle:r});if(bs.widthCache[a])return bs.widthCache[a];try{var s=document.getElementById(_P);s||(s=document.createElement("span"),s.setAttribute("id",_P),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var l=eS(eS({},FX),r);Object.assign(s.style,l),s.textContent="".concat(t);var c=s.getBoundingClientRect(),f={width:c.width,height:c.height};return bs.widthCache[a]=f,++bs.cacheCount>GX&&(bs.cacheCount=0,bs.widthCache={}),f}catch{return{width:0,height:0}}},YX=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Rh(e,t){return QX(e)||ZX(e,t)||WX(e,t)||XX()}function XX(){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 WX(e,t){if(e){if(typeof e=="string")return TP(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 TP(e,t)}}function TP(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 ZX(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function QX(e){if(Array.isArray(e))return e}function JX(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,tW(r.key),r)}}function eW(e,t,n){return t&&EP(e.prototype,t),n&&EP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tW(e){var t=nW(e,"string");return mc(t)=="symbol"?t:t+""}function nW(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 NP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,CP=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rW=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,iW=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,hz={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},aW=Object.keys(hz),Ns="NaN";function oW(e,t){return e*hz[t]}var $d=(function(){function e(t,n){JX(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!rW.test(n)&&(this.num=NaN,this.unit=""),aW.includes(n)&&(this.num=oW(t,n),this.unit="px")}return eW(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=iW.exec(n))!==null&&r!==void 0?r:[],s=Rh(a,3),l=s[1],c=s[2];return new e(parseFloat(l),c??"")}}])})();function pz(e){if(e.includes(Ns))return Ns;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=NP.exec(t))!==null&&n!==void 0?n:[],a=Rh(r,4),s=a[1],l=a[2],c=a[3],f=$d.parse(s??""),d=$d.parse(c??""),m=l==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return Ns;t=t.replace(NP,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var y,g=(y=CP.exec(t))!==null&&y!==void 0?y:[],S=Rh(g,4),w=S[1],j=S[2],b=S[3],A=$d.parse(w??""),_=$d.parse(b??""),T=j==="+"?A.add(_):A.subtract(_);if(T.isNaN())return Ns;t=t.replace(CP,T.toString())}return t}var MP=/\(([^()]*)\)/;function sW(e){for(var t=e;t.includes("(");){var n=MP.exec(t),r=Rh(n,2),a=r[1];t=t.replace(MP,pz(a))}return t}function lW(e){var t=e.replace(/\s+/g,"");return t=sW(t),t=pz(t),t}function uW(e){try{return lW(e)}catch{return Ns}}function o0(e){var t=uW(e.slice(5,-1));return t===Ns?"":t}var cW=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],fW=["dx","dy","angle","className","breakAll"];function tS(){return tS=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},tS.apply(this,arguments)}function PP(e,t){if(e==null)return{};var n=dW(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dW(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 RP(e,t){return yW(e)||mW(e,t)||pW(e,t)||hW()}function hW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pW(e,t){if(e){if(typeof e=="string")return DP(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 DP(e,t)}}function DP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mW(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function yW(e){if(Array.isArray(e))return e}var mz=/[ \f\n\r\t\v\u2028\u2029]+/,yz=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var s=[];Ne(n)||(r?s=n.toString().split(""):s=n.toString().split(mz));var l=s.map(function(f){return{word:f,width:Wu(f,a).width}}),c=r?0:Wu(" ",a).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},vW=function(t,n,r,a,s){var l=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=ue(l),y=c,g=function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Y.reduce(function($,F){var Q=F.word,ie=F.width,se=$[$.length-1];if(se&&(a==null||s||se.width+ie+r<Number(a)))se.words.push(Q),se.width+=ie+r;else{var L={words:[Q],width:ie};$.push(L)}return $},[])},S=g(n),w=function(Y){return Y.reduce(function($,F){return $.width>F.width?$:F})};if(!m)return S;for(var j="…",b=function(Y){var $=y.slice(0,Y),F=yz({breakAll:d,style:f,children:$+j}).wordsWithComputedWidth,Q=g(F),ie=Q.length>l||w(Q).width>Number(a);return[ie,Q]},A=0,_=y.length-1,T=0,C;A<=_&&T<=y.length-1;){var O=Math.floor((A+_)/2),N=O-1,M=b(N),R=RP(M,2),D=R[0],B=R[1],I=b(O),z=RP(I,1),H=z[0];if(!D&&!H&&(A=O+1),D&&H&&(_=O-1),!D&&H){C=B;break}T++}return C||S},kP=function(t){var n=Ne(t)?[]:t.toString().split(mz);return[{words:n}]},gW=function(t){var n=t.width,r=t.scaleToFit,a=t.children,s=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!Ma.isSsr){var f,d,m=yz({breakAll:l,children:a,style:s});if(m){var y=m.wordsWithComputedWidth,g=m.spaceWidth;f=y,d=g}else return kP(a);return vW({breakAll:l,children:a,maxLines:c,style:s},f,d,n,r)}return kP(a)},LP="#808080",Oo=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,s=a===void 0?0:a,l=t.lineHeight,c=l===void 0?"1em":l,f=t.capHeight,d=f===void 0?"0.71em":f,m=t.scaleToFit,y=m===void 0?!1:m,g=t.textAnchor,S=g===void 0?"start":g,w=t.verticalAnchor,j=w===void 0?"end":w,b=t.fill,A=b===void 0?LP:b,_=PP(t,cW),T=P.useMemo(function(){return gW({breakAll:_.breakAll,children:_.children,maxLines:_.maxLines,scaleToFit:y,style:_.style,width:_.width})},[_.breakAll,_.children,_.maxLines,y,_.style,_.width]),C=_.dx,O=_.dy,N=_.angle,M=_.className,R=_.breakAll,D=PP(_,fW);if(!Ft(r)||!Ft(s))return null;var B=r+(ue(C)?C:0),I=s+(ue(O)?O:0),z;switch(j){case"start":z=o0("calc(".concat(d,")"));break;case"middle":z=o0("calc(".concat((T.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:z=o0("calc(".concat(T.length-1," * -").concat(c,")"));break}var H=[];if(y){var X=T[0].width,Y=_.width;H.push("scale(".concat((ue(Y)?Y/X:1)/X,")"))}return N&&H.push("rotate(".concat(N,", ").concat(B,", ").concat(I,")")),H.length&&(D.transform=H.join(" ")),q.createElement("text",tS({},Se(D,!0),{x:B,y:I,className:Pe("recharts-text",M),textAnchor:S,fill:A.includes("url")?LP:A}),T.map(function($,F){var Q=$.words.join(R?"":" ");return q.createElement("tspan",{x:B,dy:F===0?z:c,key:"".concat(Q,"-").concat(F)},Q)}))};function wa(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function xW(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gj(e){let t,n,r;e.length!==2?(t=wa,n=(c,f)=>wa(e(c),f),r=(c,f)=>e(c)-f):(t=e===wa||e===xW?e:bW,n=e,r=e);function a(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const y=d+m>>>1;n(c[y],f)<0?d=y+1:m=y}while(d<m)}return d}function s(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const y=d+m>>>1;n(c[y],f)<=0?d=y+1:m=y}while(d<m)}return d}function l(c,f,d=0,m=c.length){const y=a(c,f,d,m-1);return y>d&&r(c[y-1],f)>-r(c[y],f)?y-1:y}return{left:a,center:l,right:s}}function bW(){return 0}function vz(e){return e===null?NaN:+e}function*SW(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const wW=gj(wa),tf=wW.right;gj(vz).center;class zP extends Map{constructor(t,n=OW){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($P(this,t))}has(t){return super.has($P(this,t))}set(t,n){return super.set(jW(this,t),n)}delete(t){return super.delete(AW(this,t))}}function $P({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function jW({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function AW({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function OW(e){return e!==null&&typeof e=="object"?e.valueOf():e}function _W(e=wa){if(e===wa)return gz;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 gz(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const TW=Math.sqrt(50),EW=Math.sqrt(10),NW=Math.sqrt(2);function Dh(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),s=r/Math.pow(10,a),l=s>=TW?10:s>=EW?5:s>=NW?2:1;let c,f,d;return a<0?(d=Math.pow(10,-a)/l,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,a)*l,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?Dh(e,t,n*2):[c,f,d]}function nS(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,s,l]=r?Dh(t,e,n):Dh(e,t,n);if(!(s>=a))return[];const c=s-a+1,f=new Array(c);if(r)if(l<0)for(let d=0;d<c;++d)f[d]=(s-d)/-l;else for(let d=0;d<c;++d)f[d]=(s-d)*l;else if(l<0)for(let d=0;d<c;++d)f[d]=(a+d)/-l;else for(let d=0;d<c;++d)f[d]=(a+d)*l;return f}function rS(e,t,n){return t=+t,e=+e,n=+n,Dh(e,t,n)[2]}function iS(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?rS(t,e,n):rS(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function BP(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function qP(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function xz(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?gz:_W(a);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,m=Math.log(f),y=.5*Math.exp(2*m/3),g=.5*Math.sqrt(m*y*(f-y)/f)*(d-f/2<0?-1:1),S=Math.max(n,Math.floor(t-d*y/f+g)),w=Math.min(r,Math.floor(t+(f-d)*y/f+g));xz(e,t,S,w,a)}const s=e[t];let l=n,c=r;for(Nu(e,n,t),a(e[r],s)>0&&Nu(e,n,r);l<c;){for(Nu(e,l,c),++l,--c;a(e[l],s)<0;)++l;for(;a(e[c],s)>0;)--c}a(e[n],s)===0?Nu(e,n,c):(++c,Nu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Nu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function CW(e,t,n){if(e=Float64Array.from(SW(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return qP(e);if(t>=1)return BP(e);var r,a=(r-1)*t,s=Math.floor(a),l=BP(xz(e,s).subarray(0,s+1)),c=qP(e.subarray(s+1));return l+(c-l)*(a-s)}}function MW(e,t,n=vz){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,s=Math.floor(a),l=+n(e[s],s,e),c=+n(e[s+1],s+1,e);return l+(c-l)*(a-s)}}function PW(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,s=new Array(a);++r<a;)s[r]=e+r*n;return s}function pr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function $i(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 aS=Symbol("implicit");function xj(){var e=new zP,t=[],n=[],r=aS;function a(s){let l=e.get(s);if(l===void 0){if(r!==aS)return r;e.set(s,l=t.push(s)-1)}return n[l%n.length]}return a.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new zP;for(const l of s)e.has(l)||e.set(l,t.push(l)-1);return a},a.range=function(s){return arguments.length?(n=Array.from(s),a):n.slice()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return xj(t,n).unknown(r)},pr.apply(a,arguments),a}function yc(){var e=xj().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,s,l,c=!1,f=0,d=0,m=.5;delete e.unknown;function y(){var g=t().length,S=a<r,w=S?a:r,j=S?r:a;s=(j-w)/Math.max(1,g-f+d*2),c&&(s=Math.floor(s)),w+=(j-w-s*(g-f))*m,l=s*(1-f),c&&(w=Math.round(w),l=Math.round(l));var b=PW(g).map(function(A){return w+s*A});return n(S?b.reverse():b)}return e.domain=function(g){return arguments.length?(t(g),y()):t()},e.range=function(g){return arguments.length?([r,a]=g,r=+r,a=+a,y()):[r,a]},e.rangeRound=function(g){return[r,a]=g,r=+r,a=+a,c=!0,y()},e.bandwidth=function(){return l},e.step=function(){return s},e.round=function(g){return arguments.length?(c=!!g,y()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,d=+g),y()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),y()):f},e.paddingOuter=function(g){return arguments.length?(d=+g,y()):d},e.align=function(g){return arguments.length?(m=Math.max(0,Math.min(1,g)),y()):m},e.copy=function(){return yc(t(),[r,a]).round(c).paddingInner(f).paddingOuter(d).align(m)},pr.apply(y(),arguments)}function bz(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return bz(t())},e}function Zu(){return bz(yc.apply(null,arguments).paddingInner(1))}function bj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Sz(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function nf(){}var vc=.7,kh=1/vc,zs="\\s*([+-]?\\d+)\\s*",gc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Gr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",RW=/^#([0-9a-f]{3,8})$/,DW=new RegExp(`^rgb\\(${zs},${zs},${zs}\\)$`),kW=new RegExp(`^rgb\\(${Gr},${Gr},${Gr}\\)$`),LW=new RegExp(`^rgba\\(${zs},${zs},${zs},${gc}\\)$`),zW=new RegExp(`^rgba\\(${Gr},${Gr},${Gr},${gc}\\)$`),$W=new RegExp(`^hsl\\(${gc},${Gr},${Gr}\\)$`),BW=new RegExp(`^hsla\\(${gc},${Gr},${Gr},${gc}\\)$`),IP={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};bj(nf,xc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:UP,formatHex:UP,formatHex8:qW,formatHsl:IW,formatRgb:VP,toString:VP});function UP(){return this.rgb().formatHex()}function qW(){return this.rgb().formatHex8()}function IW(){return wz(this).formatHsl()}function VP(){return this.rgb().formatRgb()}function xc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=RW.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?HP(t):n===3?new En(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Bd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Bd(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=DW.exec(e))?new En(t[1],t[2],t[3],1):(t=kW.exec(e))?new En(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=LW.exec(e))?Bd(t[1],t[2],t[3],t[4]):(t=zW.exec(e))?Bd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=$W.exec(e))?KP(t[1],t[2]/100,t[3]/100,1):(t=BW.exec(e))?KP(t[1],t[2]/100,t[3]/100,t[4]):IP.hasOwnProperty(e)?HP(IP[e]):e==="transparent"?new En(NaN,NaN,NaN,0):null}function HP(e){return new En(e>>16&255,e>>8&255,e&255,1)}function Bd(e,t,n,r){return r<=0&&(e=t=n=NaN),new En(e,t,n,r)}function UW(e){return e instanceof nf||(e=xc(e)),e?(e=e.rgb(),new En(e.r,e.g,e.b,e.opacity)):new En}function oS(e,t,n,r){return arguments.length===1?UW(e):new En(e,t,n,r??1)}function En(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}bj(En,oS,Sz(nf,{brighter(e){return e=e==null?kh:Math.pow(kh,e),new En(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?vc:Math.pow(vc,e),new En(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new En(xo(this.r),xo(this.g),xo(this.b),Lh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:GP,formatHex:GP,formatHex8:VW,formatRgb:FP,toString:FP}));function GP(){return`#${ho(this.r)}${ho(this.g)}${ho(this.b)}`}function VW(){return`#${ho(this.r)}${ho(this.g)}${ho(this.b)}${ho((isNaN(this.opacity)?1:this.opacity)*255)}`}function FP(){const e=Lh(this.opacity);return`${e===1?"rgb(":"rgba("}${xo(this.r)}, ${xo(this.g)}, ${xo(this.b)}${e===1?")":`, ${e})`}`}function Lh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function xo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ho(e){return e=xo(e),(e<16?"0":"")+e.toString(16)}function KP(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Or(e,t,n,r)}function wz(e){if(e instanceof Or)return new Or(e.h,e.s,e.l,e.opacity);if(e instanceof nf||(e=xc(e)),!e)return new Or;if(e instanceof Or)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,c=s-a,f=(s+a)/2;return c?(t===s?l=(n-r)/c+(n<r)*6:n===s?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?s+a:2-s-a,l*=60):c=f>0&&f<1?0:l,new Or(l,c,f,e.opacity)}function HW(e,t,n,r){return arguments.length===1?wz(e):new Or(e,t,n,r??1)}function Or(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}bj(Or,HW,Sz(nf,{brighter(e){return e=e==null?kh:Math.pow(kh,e),new Or(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?vc:Math.pow(vc,e),new Or(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 En(s0(e>=240?e-240:e+120,a,r),s0(e,a,r),s0(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Or(YP(this.h),qd(this.s),qd(this.l),Lh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Lh(this.opacity);return`${e===1?"hsl(":"hsla("}${YP(this.h)}, ${qd(this.s)*100}%, ${qd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function YP(e){return e=(e||0)%360,e<0?e+360:e}function qd(e){return Math.max(0,Math.min(1,e||0))}function s0(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 Sj=e=>()=>e;function GW(e,t){return function(n){return e+n*t}}function FW(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 KW(e){return(e=+e)==1?jz:function(t,n){return n-t?FW(t,n,e):Sj(isNaN(t)?n:t)}}function jz(e,t){var n=t-e;return n?GW(e,n):Sj(isNaN(e)?t:e)}const XP=(function e(t){var n=KW(t);function r(a,s){var l=n((a=oS(a)).r,(s=oS(s)).r),c=n(a.g,s.g),f=n(a.b,s.b),d=jz(a.opacity,s.opacity);return function(m){return a.r=l(m),a.g=c(m),a.b=f(m),a.opacity=d(m),a+""}}return r.gamma=e,r})(1);function YW(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(s){for(a=0;a<n;++a)r[a]=e[a]*(1-s)+t[a]*s;return r}}function XW(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function WW(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),s=new Array(n),l;for(l=0;l<r;++l)a[l]=Ol(e[l],t[l]);for(;l<n;++l)s[l]=t[l];return function(c){for(l=0;l<r;++l)s[l]=a[l](c);return s}}function ZW(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function zh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function QW(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]=Ol(e[a],t[a]):r[a]=t[a];return function(s){for(a in n)r[a]=n[a](s);return r}}var sS=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,l0=new RegExp(sS.source,"g");function JW(e){return function(){return e}}function eZ(e){return function(t){return e(t)+""}}function tZ(e,t){var n=sS.lastIndex=l0.lastIndex=0,r,a,s,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=sS.exec(e))&&(a=l0.exec(t));)(s=a.index)>n&&(s=t.slice(n,s),c[l]?c[l]+=s:c[++l]=s),(r=r[0])===(a=a[0])?c[l]?c[l]+=a:c[++l]=a:(c[++l]=null,f.push({i:l,x:zh(r,a)})),n=l0.lastIndex;return n<t.length&&(s=t.slice(n),c[l]?c[l]+=s:c[++l]=s),c.length<2?f[0]?eZ(f[0].x):JW(t):(t=f.length,function(d){for(var m=0,y;m<t;++m)c[(y=f[m]).i]=y.x(d);return c.join("")})}function Ol(e,t){var n=typeof t,r;return t==null||n==="boolean"?Sj(t):(n==="number"?zh:n==="string"?(r=xc(t))?(t=r,XP):tZ:t instanceof xc?XP:t instanceof Date?ZW:XW(t)?YW:Array.isArray(t)?WW:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?QW:zh)(e,t)}function wj(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function nZ(e,t){t===void 0&&(t=e,e=Ol);for(var n=0,r=t.length-1,a=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(a,a=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return s[c](l-c)}}function rZ(e){return function(){return e}}function $h(e){return+e}var WP=[0,1];function bn(e){return e}function lS(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:rZ(isNaN(t)?NaN:.5)}function iZ(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function aZ(e,t,n){var r=e[0],a=e[1],s=t[0],l=t[1];return a<r?(r=lS(a,r),s=n(l,s)):(r=lS(r,a),s=n(s,l)),function(c){return s(r(c))}}function oZ(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),s=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)a[l]=lS(e[l],e[l+1]),s[l]=n(t[l],t[l+1]);return function(c){var f=tf(e,c,1,r)-1;return s[f](a[f](c))}}function rf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Kp(){var e=WP,t=WP,n=Ol,r,a,s,l=bn,c,f,d;function m(){var g=Math.min(e.length,t.length);return l!==bn&&(l=iZ(e[0],e[g-1])),c=g>2?oZ:aZ,f=d=null,y}function y(g){return g==null||isNaN(g=+g)?s:(f||(f=c(e.map(r),t,n)))(r(l(g)))}return y.invert=function(g){return l(a((d||(d=c(t,e.map(r),zh)))(g)))},y.domain=function(g){return arguments.length?(e=Array.from(g,$h),m()):e.slice()},y.range=function(g){return arguments.length?(t=Array.from(g),m()):t.slice()},y.rangeRound=function(g){return t=Array.from(g),n=wj,m()},y.clamp=function(g){return arguments.length?(l=g?!0:bn,m()):l!==bn},y.interpolate=function(g){return arguments.length?(n=g,m()):n},y.unknown=function(g){return arguments.length?(s=g,y):s},function(g,S){return r=g,a=S,m()}}function jj(){return Kp()(bn,bn)}function sZ(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Bh(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 Ks(e){return e=Bh(Math.abs(e)),e?e[1]:NaN}function lZ(e,t){return function(n,r){for(var a=n.length,s=[],l=0,c=e[0],f=0;a>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),s.push(n.substring(a-=c,a+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return s.reverse().join(t)}}function uZ(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var cZ=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function bc(e){if(!(t=cZ.exec(e)))throw new Error("invalid format: "+e);var t;return new Aj({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]})}bc.prototype=Aj.prototype;function Aj(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+""}Aj.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 fZ(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 qh;function dZ(e,t){var n=Bh(e,t);if(!n)return qh=void 0,e.toPrecision(t);var r=n[0],a=n[1],s=a-(qh=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,l=r.length;return s===l?r:s>l?r+new Array(s-l+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+Bh(e,Math.max(0,t+s-1))[0]}function ZP(e,t){var n=Bh(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 QP={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:sZ,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)=>ZP(e*100,t),r:ZP,s:dZ,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function JP(e){return e}var eR=Array.prototype.map,tR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hZ(e){var t=e.grouping===void 0||e.thousands===void 0?JP:lZ(eR.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+"",s=e.numerals===void 0?JP:uZ(eR.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(y,g){y=bc(y);var S=y.fill,w=y.align,j=y.sign,b=y.symbol,A=y.zero,_=y.width,T=y.comma,C=y.precision,O=y.trim,N=y.type;N==="n"?(T=!0,N="g"):QP[N]||(C===void 0&&(C=12),O=!0,N="g"),(A||S==="0"&&w==="=")&&(A=!0,S="0",w="=");var M=(g&&g.prefix!==void 0?g.prefix:"")+(b==="$"?n:b==="#"&&/[boxX]/.test(N)?"0"+N.toLowerCase():""),R=(b==="$"?r:/[%p]/.test(N)?l:"")+(g&&g.suffix!==void 0?g.suffix:""),D=QP[N],B=/[defgprs%]/.test(N);C=C===void 0?6:/[gprs]/.test(N)?Math.max(1,Math.min(21,C)):Math.max(0,Math.min(20,C));function I(z){var H=M,X=R,Y,$,F;if(N==="c")X=D(z)+X,z="";else{z=+z;var Q=z<0||1/z<0;if(z=isNaN(z)?f:D(Math.abs(z),C),O&&(z=fZ(z)),Q&&+z==0&&j!=="+"&&(Q=!1),H=(Q?j==="("?j:c:j==="-"||j==="("?"":j)+H,X=(N==="s"&&!isNaN(z)&&qh!==void 0?tR[8+qh/3]:"")+X+(Q&&j==="("?")":""),B){for(Y=-1,$=z.length;++Y<$;)if(F=z.charCodeAt(Y),48>F||F>57){X=(F===46?a+z.slice(Y+1):z.slice(Y))+X,z=z.slice(0,Y);break}}}T&&!A&&(z=t(z,1/0));var ie=H.length+z.length+X.length,se=ie<_?new Array(_-ie+1).join(S):"";switch(T&&A&&(z=t(se+z,se.length?_-X.length:1/0),se=""),w){case"<":z=H+z+X+se;break;case"=":z=H+se+z+X;break;case"^":z=se.slice(0,ie=se.length>>1)+H+z+X+se.slice(ie);break;default:z=se+H+z+X;break}return s(z)}return I.toString=function(){return y+""},I}function m(y,g){var S=Math.max(-8,Math.min(8,Math.floor(Ks(g)/3)))*3,w=Math.pow(10,-S),j=d((y=bc(y),y.type="f",y),{suffix:tR[8+S/3]});return function(b){return j(w*b)}}return{format:d,formatPrefix:m}}var Id,Oj,Az;pZ({thousands:",",grouping:[3],currency:["$",""]});function pZ(e){return Id=hZ(e),Oj=Id.format,Az=Id.formatPrefix,Id}function mZ(e){return Math.max(0,-Ks(Math.abs(e)))}function yZ(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Ks(t)/3)))*3-Ks(Math.abs(e)))}function vZ(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Ks(t)-Ks(e))+1}function Oz(e,t,n,r){var a=iS(e,t,n),s;switch(r=bc(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=yZ(a,l))&&(r.precision=s),Az(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=vZ(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=mZ(a))&&(r.precision=s-(r.type==="%")*2);break}}return Oj(r)}function Pa(e){var t=e.domain;return e.ticks=function(n){var r=t();return nS(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return Oz(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,s=r.length-1,l=r[a],c=r[s],f,d,m=10;for(c<l&&(d=l,l=c,c=d,d=a,a=s,s=d);m-- >0;){if(d=rS(l,c,n),d===f)return r[a]=l,r[s]=c,t(r);if(d>0)l=Math.floor(l/d)*d,c=Math.ceil(c/d)*d;else if(d<0)l=Math.ceil(l*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function Ih(){var e=jj();return e.copy=function(){return rf(e,Ih())},pr.apply(e,arguments),Pa(e)}function _z(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,$h),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return _z(e).unknown(t)},e=arguments.length?Array.from(e,$h):[0,1],Pa(n)}function Tz(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],s=e[r],l;return s<a&&(l=n,n=r,r=l,l=a,a=s,s=l),e[n]=t.floor(a),e[r]=t.ceil(s),e}function nR(e){return Math.log(e)}function rR(e){return Math.exp(e)}function gZ(e){return-Math.log(-e)}function xZ(e){return-Math.exp(-e)}function bZ(e){return isFinite(e)?+("1e"+e):e<0?0:e}function SZ(e){return e===10?bZ:e===Math.E?Math.exp:t=>Math.pow(e,t)}function wZ(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 iR(e){return(t,n)=>-e(-t,n)}function _j(e){const t=e(nR,rR),n=t.domain;let r=10,a,s;function l(){return a=wZ(r),s=SZ(r),n()[0]<0?(a=iR(a),s=iR(s),e(gZ,xZ)):e(nR,rR),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let d=f[0],m=f[f.length-1];const y=m<d;y&&([d,m]=[m,d]);let g=a(d),S=a(m),w,j;const b=c==null?10:+c;let A=[];if(!(r%1)&&S-g<b){if(g=Math.floor(g),S=Math.ceil(S),d>0){for(;g<=S;++g)for(w=1;w<r;++w)if(j=g<0?w/s(-g):w*s(g),!(j<d)){if(j>m)break;A.push(j)}}else for(;g<=S;++g)for(w=r-1;w>=1;--w)if(j=g>0?w/s(-g):w*s(g),!(j<d)){if(j>m)break;A.push(j)}A.length*2<b&&(A=nS(d,m,b))}else A=nS(g,S,Math.min(S-g,b)).map(s);return y?A.reverse():A},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=bc(f)).precision==null&&(f.trim=!0),f=Oj(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return m=>{let y=m/s(Math.round(a(m)));return y*r<r-.5&&(y*=r),y<=d?f(m):""}},t.nice=()=>n(Tz(n(),{floor:c=>s(Math.floor(a(c))),ceil:c=>s(Math.ceil(a(c)))})),t}function Ez(){const e=_j(Kp()).domain([1,10]);return e.copy=()=>rf(e,Ez()).base(e.base()),pr.apply(e,arguments),e}function aR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function oR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function Tj(e){var t=1,n=e(aR(t),oR(t));return n.constant=function(r){return arguments.length?e(aR(t=+r),oR(t)):t},Pa(n)}function Nz(){var e=Tj(Kp());return e.copy=function(){return rf(e,Nz()).constant(e.constant())},pr.apply(e,arguments)}function sR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jZ(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function AZ(e){return e<0?-e*e:e*e}function Ej(e){var t=e(bn,bn),n=1;function r(){return n===1?e(bn,bn):n===.5?e(jZ,AZ):e(sR(n),sR(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},Pa(t)}function Nj(){var e=Ej(Kp());return e.copy=function(){return rf(e,Nj()).exponent(e.exponent())},pr.apply(e,arguments),e}function OZ(){return Nj.apply(null,arguments).exponent(.5)}function lR(e){return Math.sign(e)*e*e}function _Z(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Cz(){var e=jj(),t=[0,1],n=!1,r;function a(s){var l=_Z(e(s));return isNaN(l)?r:n?Math.round(l):l}return a.invert=function(s){return e.invert(lR(s))},a.domain=function(s){return arguments.length?(e.domain(s),a):e.domain()},a.range=function(s){return arguments.length?(e.range((t=Array.from(s,$h)).map(lR)),a):t.slice()},a.rangeRound=function(s){return a.range(s).round(!0)},a.round=function(s){return arguments.length?(n=!!s,a):n},a.clamp=function(s){return arguments.length?(e.clamp(s),a):e.clamp()},a.unknown=function(s){return arguments.length?(r=s,a):r},a.copy=function(){return Cz(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},pr.apply(a,arguments),Pa(a)}function Mz(){var e=[],t=[],n=[],r;function a(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=MW(e,l/c);return s}function s(l){return l==null||isNaN(l=+l)?r:t[tf(n,l)]}return s.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},s.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(wa),a()},s.range=function(l){return arguments.length?(t=Array.from(l),a()):t.slice()},s.unknown=function(l){return arguments.length?(r=l,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return Mz().domain(e).range(t).unknown(r)},pr.apply(s,arguments)}function Pz(){var e=0,t=1,n=1,r=[.5],a=[0,1],s;function l(f){return f!=null&&f<=f?a[tf(r,f,0,n)]:s}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},l.range=function(f){return arguments.length?(n=(a=Array.from(f)).length-1,c()):a.slice()},l.invertExtent=function(f){var d=a.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},l.unknown=function(f){return arguments.length&&(s=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return Pz().domain([e,t]).range(a).unknown(s)},pr.apply(Pa(l),arguments)}function Rz(){var e=[.5],t=[0,1],n,r=1;function a(s){return s!=null&&s<=s?t[tf(e,s,0,r)]:n}return a.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(s){var l=t.indexOf(s);return[e[l-1],e[l]]},a.unknown=function(s){return arguments.length?(n=s,a):n},a.copy=function(){return Rz().domain(e).range(t).unknown(n)},pr.apply(a,arguments)}const u0=new Date,c0=new Date;function Yt(e,t,n,r){function a(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return a.floor=s=>(e(s=new Date(+s)),s),a.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),a.round=s=>{const l=a(s),c=a.ceil(s);return s-l<c-s?l:c},a.offset=(s,l)=>(t(s=new Date(+s),l==null?1:Math.floor(l)),s),a.range=(s,l,c)=>{const f=[];if(s=a.ceil(s),c=c==null?1:Math.floor(c),!(s<l)||!(c>0))return f;let d;do f.push(d=new Date(+s)),t(s,c),e(s);while(d<s&&s<l);return f},a.filter=s=>Yt(l=>{if(l>=l)for(;e(l),!s(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!s(l););else for(;--c>=0;)for(;t(l,1),!s(l););}),n&&(a.count=(s,l)=>(u0.setTime(+s),c0.setTime(+l),e(u0),e(c0),Math.floor(n(u0,c0))),a.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?a.filter(r?l=>r(l)%s===0:l=>a.count(0,l)%s===0):a)),a}const Uh=Yt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Uh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Yt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Uh);Uh.range;const Oi=1e3,cr=Oi*60,_i=cr*60,Pi=_i*24,Cj=Pi*7,uR=Pi*30,f0=Pi*365,po=Yt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Oi)},(e,t)=>(t-e)/Oi,e=>e.getUTCSeconds());po.range;const Mj=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oi)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getMinutes());Mj.range;const Pj=Yt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*cr)},(e,t)=>(t-e)/cr,e=>e.getUTCMinutes());Pj.range;const Rj=Yt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Oi-e.getMinutes()*cr)},(e,t)=>{e.setTime(+e+t*_i)},(e,t)=>(t-e)/_i,e=>e.getHours());Rj.range;const Dj=Yt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_i)},(e,t)=>(t-e)/_i,e=>e.getUTCHours());Dj.range;const af=Yt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*cr)/Pi,e=>e.getDate()-1);af.range;const Yp=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Pi,e=>e.getUTCDate()-1);Yp.range;const Dz=Yt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Pi,e=>Math.floor(e/Pi));Dz.range;function Ro(e){return Yt(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())*cr)/Cj)}const Xp=Ro(0),Vh=Ro(1),TZ=Ro(2),EZ=Ro(3),Ys=Ro(4),NZ=Ro(5),CZ=Ro(6);Xp.range;Vh.range;TZ.range;EZ.range;Ys.range;NZ.range;CZ.range;function Do(e){return Yt(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)/Cj)}const Wp=Do(0),Hh=Do(1),MZ=Do(2),PZ=Do(3),Xs=Do(4),RZ=Do(5),DZ=Do(6);Wp.range;Hh.range;MZ.range;PZ.range;Xs.range;RZ.range;DZ.range;const kj=Yt(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());kj.range;const Lj=Yt(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());Lj.range;const Ri=Yt(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());Ri.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(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)});Ri.range;const Di=Yt(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());Di.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Yt(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)});Di.range;function kz(e,t,n,r,a,s){const l=[[po,1,Oi],[po,5,5*Oi],[po,15,15*Oi],[po,30,30*Oi],[s,1,cr],[s,5,5*cr],[s,15,15*cr],[s,30,30*cr],[a,1,_i],[a,3,3*_i],[a,6,6*_i],[a,12,12*_i],[r,1,Pi],[r,2,2*Pi],[n,1,Cj],[t,1,uR],[t,3,3*uR],[e,1,f0]];function c(d,m,y){const g=m<d;g&&([d,m]=[m,d]);const S=y&&typeof y.range=="function"?y:f(d,m,y),w=S?S.range(d,+m+1):[];return g?w.reverse():w}function f(d,m,y){const g=Math.abs(m-d)/y,S=gj(([,,b])=>b).right(l,g);if(S===l.length)return e.every(iS(d/f0,m/f0,y));if(S===0)return Uh.every(Math.max(iS(d,m,y),1));const[w,j]=l[g/l[S-1][2]<l[S][2]/g?S-1:S];return w.every(j)}return[c,f]}const[kZ,LZ]=kz(Di,Lj,Wp,Dz,Dj,Pj),[zZ,$Z]=kz(Ri,kj,Xp,af,Rj,Mj);function d0(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 h0(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 Cu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function BZ(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,s=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,d=Mu(a),m=Pu(a),y=Mu(s),g=Pu(s),S=Mu(l),w=Pu(l),j=Mu(c),b=Pu(c),A=Mu(f),_=Pu(f),T={a:F,A:Q,b:ie,B:se,c:null,d:mR,e:mR,f:lQ,g:gQ,G:bQ,H:aQ,I:oQ,j:sQ,L:Lz,m:uQ,M:cQ,p:L,q:G,Q:gR,s:xR,S:fQ,u:dQ,U:hQ,V:pQ,w:mQ,W:yQ,x:null,X:null,y:vQ,Y:xQ,Z:SQ,"%":vR},C={a:re,A:fe,b:ve,B:je,c:null,d:yR,e:yR,f:OQ,g:kQ,G:zQ,H:wQ,I:jQ,j:AQ,L:$z,m:_Q,M:TQ,p:ze,q:Xe,Q:gR,s:xR,S:EQ,u:NQ,U:CQ,V:MQ,w:PQ,W:RQ,x:null,X:null,y:DQ,Y:LQ,Z:$Q,"%":vR},O={a:B,A:I,b:z,B:H,c:X,d:hR,e:hR,f:tQ,g:dR,G:fR,H:pR,I:pR,j:ZZ,L:eQ,m:WZ,M:QZ,p:D,q:XZ,Q:rQ,s:iQ,S:JZ,u:HZ,U:GZ,V:FZ,w:VZ,W:KZ,x:Y,X:$,y:dR,Y:fR,Z:YZ,"%":nQ};T.x=N(n,T),T.X=N(r,T),T.c=N(t,T),C.x=N(n,C),C.X=N(r,C),C.c=N(t,C);function N(ce,Te){return function(Ce){var le=[],yt=-1,De=0,At=ce.length,Ot,un,mr;for(Ce instanceof Date||(Ce=new Date(+Ce));++yt<At;)ce.charCodeAt(yt)===37&&(le.push(ce.slice(De,yt)),(un=cR[Ot=ce.charAt(++yt)])!=null?Ot=ce.charAt(++yt):un=Ot==="e"?" ":"0",(mr=Te[Ot])&&(Ot=mr(Ce,un)),le.push(Ot),De=yt+1);return le.push(ce.slice(De,yt)),le.join("")}}function M(ce,Te){return function(Ce){var le=Cu(1900,void 0,1),yt=R(le,ce,Ce+="",0),De,At;if(yt!=Ce.length)return null;if("Q"in le)return new Date(le.Q);if("s"in le)return new Date(le.s*1e3+("L"in le?le.L:0));if(Te&&!("Z"in le)&&(le.Z=0),"p"in le&&(le.H=le.H%12+le.p*12),le.m===void 0&&(le.m="q"in le?le.q:0),"V"in le){if(le.V<1||le.V>53)return null;"w"in le||(le.w=1),"Z"in le?(De=h0(Cu(le.y,0,1)),At=De.getUTCDay(),De=At>4||At===0?Hh.ceil(De):Hh(De),De=Yp.offset(De,(le.V-1)*7),le.y=De.getUTCFullYear(),le.m=De.getUTCMonth(),le.d=De.getUTCDate()+(le.w+6)%7):(De=d0(Cu(le.y,0,1)),At=De.getDay(),De=At>4||At===0?Vh.ceil(De):Vh(De),De=af.offset(De,(le.V-1)*7),le.y=De.getFullYear(),le.m=De.getMonth(),le.d=De.getDate()+(le.w+6)%7)}else("W"in le||"U"in le)&&("w"in le||(le.w="u"in le?le.u%7:"W"in le?1:0),At="Z"in le?h0(Cu(le.y,0,1)).getUTCDay():d0(Cu(le.y,0,1)).getDay(),le.m=0,le.d="W"in le?(le.w+6)%7+le.W*7-(At+5)%7:le.w+le.U*7-(At+6)%7);return"Z"in le?(le.H+=le.Z/100|0,le.M+=le.Z%100,h0(le)):d0(le)}}function R(ce,Te,Ce,le){for(var yt=0,De=Te.length,At=Ce.length,Ot,un;yt<De;){if(le>=At)return-1;if(Ot=Te.charCodeAt(yt++),Ot===37){if(Ot=Te.charAt(yt++),un=O[Ot in cR?Te.charAt(yt++):Ot],!un||(le=un(ce,Ce,le))<0)return-1}else if(Ot!=Ce.charCodeAt(le++))return-1}return le}function D(ce,Te,Ce){var le=d.exec(Te.slice(Ce));return le?(ce.p=m.get(le[0].toLowerCase()),Ce+le[0].length):-1}function B(ce,Te,Ce){var le=S.exec(Te.slice(Ce));return le?(ce.w=w.get(le[0].toLowerCase()),Ce+le[0].length):-1}function I(ce,Te,Ce){var le=y.exec(Te.slice(Ce));return le?(ce.w=g.get(le[0].toLowerCase()),Ce+le[0].length):-1}function z(ce,Te,Ce){var le=A.exec(Te.slice(Ce));return le?(ce.m=_.get(le[0].toLowerCase()),Ce+le[0].length):-1}function H(ce,Te,Ce){var le=j.exec(Te.slice(Ce));return le?(ce.m=b.get(le[0].toLowerCase()),Ce+le[0].length):-1}function X(ce,Te,Ce){return R(ce,t,Te,Ce)}function Y(ce,Te,Ce){return R(ce,n,Te,Ce)}function $(ce,Te,Ce){return R(ce,r,Te,Ce)}function F(ce){return l[ce.getDay()]}function Q(ce){return s[ce.getDay()]}function ie(ce){return f[ce.getMonth()]}function se(ce){return c[ce.getMonth()]}function L(ce){return a[+(ce.getHours()>=12)]}function G(ce){return 1+~~(ce.getMonth()/3)}function re(ce){return l[ce.getUTCDay()]}function fe(ce){return s[ce.getUTCDay()]}function ve(ce){return f[ce.getUTCMonth()]}function je(ce){return c[ce.getUTCMonth()]}function ze(ce){return a[+(ce.getUTCHours()>=12)]}function Xe(ce){return 1+~~(ce.getUTCMonth()/3)}return{format:function(ce){var Te=N(ce+="",T);return Te.toString=function(){return ce},Te},parse:function(ce){var Te=M(ce+="",!1);return Te.toString=function(){return ce},Te},utcFormat:function(ce){var Te=N(ce+="",C);return Te.toString=function(){return ce},Te},utcParse:function(ce){var Te=M(ce+="",!0);return Te.toString=function(){return ce},Te}}}var cR={"-":"",_:" ",0:"0"},Jt=/^\s*\d+/,qZ=/^%/,IZ=/[\\^$*+?|[\]().{}]/g;function Fe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",s=a.length;return r+(s<n?new Array(n-s+1).join(t)+a:a)}function UZ(e){return e.replace(IZ,"\\$&")}function Mu(e){return new RegExp("^(?:"+e.map(UZ).join("|")+")","i")}function Pu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function VZ(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function HZ(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function GZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function FZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function KZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function fR(e,t,n){var r=Jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function dR(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function YZ(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 XZ(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function WZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function hR(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function ZZ(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function pR(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function QZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function JZ(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function eQ(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tQ(e,t,n){var r=Jt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nQ(e,t,n){var r=qZ.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rQ(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function iQ(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function mR(e,t){return Fe(e.getDate(),t,2)}function aQ(e,t){return Fe(e.getHours(),t,2)}function oQ(e,t){return Fe(e.getHours()%12||12,t,2)}function sQ(e,t){return Fe(1+af.count(Ri(e),e),t,3)}function Lz(e,t){return Fe(e.getMilliseconds(),t,3)}function lQ(e,t){return Lz(e,t)+"000"}function uQ(e,t){return Fe(e.getMonth()+1,t,2)}function cQ(e,t){return Fe(e.getMinutes(),t,2)}function fQ(e,t){return Fe(e.getSeconds(),t,2)}function dQ(e){var t=e.getDay();return t===0?7:t}function hQ(e,t){return Fe(Xp.count(Ri(e)-1,e),t,2)}function zz(e){var t=e.getDay();return t>=4||t===0?Ys(e):Ys.ceil(e)}function pQ(e,t){return e=zz(e),Fe(Ys.count(Ri(e),e)+(Ri(e).getDay()===4),t,2)}function mQ(e){return e.getDay()}function yQ(e,t){return Fe(Vh.count(Ri(e)-1,e),t,2)}function vQ(e,t){return Fe(e.getFullYear()%100,t,2)}function gQ(e,t){return e=zz(e),Fe(e.getFullYear()%100,t,2)}function xQ(e,t){return Fe(e.getFullYear()%1e4,t,4)}function bQ(e,t){var n=e.getDay();return e=n>=4||n===0?Ys(e):Ys.ceil(e),Fe(e.getFullYear()%1e4,t,4)}function SQ(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Fe(t/60|0,"0",2)+Fe(t%60,"0",2)}function yR(e,t){return Fe(e.getUTCDate(),t,2)}function wQ(e,t){return Fe(e.getUTCHours(),t,2)}function jQ(e,t){return Fe(e.getUTCHours()%12||12,t,2)}function AQ(e,t){return Fe(1+Yp.count(Di(e),e),t,3)}function $z(e,t){return Fe(e.getUTCMilliseconds(),t,3)}function OQ(e,t){return $z(e,t)+"000"}function _Q(e,t){return Fe(e.getUTCMonth()+1,t,2)}function TQ(e,t){return Fe(e.getUTCMinutes(),t,2)}function EQ(e,t){return Fe(e.getUTCSeconds(),t,2)}function NQ(e){var t=e.getUTCDay();return t===0?7:t}function CQ(e,t){return Fe(Wp.count(Di(e)-1,e),t,2)}function Bz(e){var t=e.getUTCDay();return t>=4||t===0?Xs(e):Xs.ceil(e)}function MQ(e,t){return e=Bz(e),Fe(Xs.count(Di(e),e)+(Di(e).getUTCDay()===4),t,2)}function PQ(e){return e.getUTCDay()}function RQ(e,t){return Fe(Hh.count(Di(e)-1,e),t,2)}function DQ(e,t){return Fe(e.getUTCFullYear()%100,t,2)}function kQ(e,t){return e=Bz(e),Fe(e.getUTCFullYear()%100,t,2)}function LQ(e,t){return Fe(e.getUTCFullYear()%1e4,t,4)}function zQ(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Xs(e):Xs.ceil(e),Fe(e.getUTCFullYear()%1e4,t,4)}function $Q(){return"+0000"}function vR(){return"%"}function gR(e){return+e}function xR(e){return Math.floor(+e/1e3)}var Ss,qz,Iz;BQ({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 BQ(e){return Ss=BZ(e),qz=Ss.format,Ss.parse,Iz=Ss.utcFormat,Ss.utcParse,Ss}function qQ(e){return new Date(e)}function IQ(e){return e instanceof Date?+e:+new Date(+e)}function zj(e,t,n,r,a,s,l,c,f,d){var m=jj(),y=m.invert,g=m.domain,S=d(".%L"),w=d(":%S"),j=d("%I:%M"),b=d("%I %p"),A=d("%a %d"),_=d("%b %d"),T=d("%B"),C=d("%Y");function O(N){return(f(N)<N?S:c(N)<N?w:l(N)<N?j:s(N)<N?b:r(N)<N?a(N)<N?A:_:n(N)<N?T:C)(N)}return m.invert=function(N){return new Date(y(N))},m.domain=function(N){return arguments.length?g(Array.from(N,IQ)):g().map(qQ)},m.ticks=function(N){var M=g();return e(M[0],M[M.length-1],N??10)},m.tickFormat=function(N,M){return M==null?O:d(M)},m.nice=function(N){var M=g();return(!N||typeof N.range!="function")&&(N=t(M[0],M[M.length-1],N??10)),N?g(Tz(M,N)):m},m.copy=function(){return rf(m,zj(e,t,n,r,a,s,l,c,f,d))},m}function UQ(){return pr.apply(zj(zZ,$Z,Ri,kj,Xp,af,Rj,Mj,po,qz).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function VQ(){return pr.apply(zj(kZ,LZ,Di,Lj,Wp,Yp,Dj,Pj,po,Iz).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Zp(){var e=0,t=1,n,r,a,s,l=bn,c=!1,f;function d(y){return y==null||isNaN(y=+y)?f:l(a===0?.5:(y=(s(y)-n)*a,c?Math.max(0,Math.min(1,y)):y))}d.domain=function(y){return arguments.length?([e,t]=y,n=s(e=+e),r=s(t=+t),a=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(y){return arguments.length?(c=!!y,d):c},d.interpolator=function(y){return arguments.length?(l=y,d):l};function m(y){return function(g){var S,w;return arguments.length?([S,w]=g,l=y(S,w),d):[l(0),l(1)]}}return d.range=m(Ol),d.rangeRound=m(wj),d.unknown=function(y){return arguments.length?(f=y,d):f},function(y){return s=y,n=y(e),r=y(t),a=n===r?0:1/(r-n),d}}function Ra(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Uz(){var e=Pa(Zp()(bn));return e.copy=function(){return Ra(e,Uz())},$i.apply(e,arguments)}function Vz(){var e=_j(Zp()).domain([1,10]);return e.copy=function(){return Ra(e,Vz()).base(e.base())},$i.apply(e,arguments)}function Hz(){var e=Tj(Zp());return e.copy=function(){return Ra(e,Hz()).constant(e.constant())},$i.apply(e,arguments)}function $j(){var e=Ej(Zp());return e.copy=function(){return Ra(e,$j()).exponent(e.exponent())},$i.apply(e,arguments)}function HQ(){return $j.apply(null,arguments).exponent(.5)}function Gz(){var e=[],t=bn;function n(r){if(r!=null&&!isNaN(r=+r))return t((tf(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(wa),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,s)=>CW(e,s/r))},n.copy=function(){return Gz(t).domain(e)},$i.apply(n,arguments)}function Qp(){var e=0,t=.5,n=1,r=1,a,s,l,c,f,d=bn,m,y=!1,g;function S(j){return isNaN(j=+j)?g:(j=.5+((j=+m(j))-s)*(r*j<r*s?c:f),d(y?Math.max(0,Math.min(1,j)):j))}S.domain=function(j){return arguments.length?([e,t,n]=j,a=m(e=+e),s=m(t=+t),l=m(n=+n),c=a===s?0:.5/(s-a),f=s===l?0:.5/(l-s),r=s<a?-1:1,S):[e,t,n]},S.clamp=function(j){return arguments.length?(y=!!j,S):y},S.interpolator=function(j){return arguments.length?(d=j,S):d};function w(j){return function(b){var A,_,T;return arguments.length?([A,_,T]=b,d=nZ(j,[A,_,T]),S):[d(0),d(.5),d(1)]}}return S.range=w(Ol),S.rangeRound=w(wj),S.unknown=function(j){return arguments.length?(g=j,S):g},function(j){return m=j,a=j(e),s=j(t),l=j(n),c=a===s?0:.5/(s-a),f=s===l?0:.5/(l-s),r=s<a?-1:1,S}}function Fz(){var e=Pa(Qp()(bn));return e.copy=function(){return Ra(e,Fz())},$i.apply(e,arguments)}function Kz(){var e=_j(Qp()).domain([.1,1,10]);return e.copy=function(){return Ra(e,Kz()).base(e.base())},$i.apply(e,arguments)}function Yz(){var e=Tj(Qp());return e.copy=function(){return Ra(e,Yz()).constant(e.constant())},$i.apply(e,arguments)}function Bj(){var e=Ej(Qp());return e.copy=function(){return Ra(e,Bj()).exponent(e.exponent())},$i.apply(e,arguments)}function GQ(){return Bj.apply(null,arguments).exponent(.5)}const bR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:yc,scaleDiverging:Fz,scaleDivergingLog:Kz,scaleDivergingPow:Bj,scaleDivergingSqrt:GQ,scaleDivergingSymlog:Yz,scaleIdentity:_z,scaleImplicit:aS,scaleLinear:Ih,scaleLog:Ez,scaleOrdinal:xj,scalePoint:Zu,scalePow:Nj,scaleQuantile:Mz,scaleQuantize:Pz,scaleRadial:Cz,scaleSequential:Uz,scaleSequentialLog:Vz,scaleSequentialPow:$j,scaleSequentialQuantile:Gz,scaleSequentialSqrt:HQ,scaleSequentialSymlog:Hz,scaleSqrt:OZ,scaleSymlog:Nz,scaleThreshold:Rz,scaleTime:UQ,scaleUtc:VQ,tickFormat:Oz},Symbol.toStringTag,{value:"Module"}));var p0,SR;function Jp(){if(SR)return p0;SR=1;var e=Sl();function t(n,r,a){for(var s=-1,l=n.length;++s<l;){var c=n[s],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):a(f,d)))var d=f,m=c}return m}return p0=t,p0}var m0,wR;function Xz(){if(wR)return m0;wR=1;function e(t,n){return t>n}return m0=e,m0}var y0,jR;function FQ(){if(jR)return y0;jR=1;var e=Jp(),t=Xz(),n=Al();function r(a){return a&&a.length?e(a,n,t):void 0}return y0=r,y0}var KQ=FQ();const xa=rt(KQ);var v0,AR;function Wz(){if(AR)return v0;AR=1;function e(t,n){return t<n}return v0=e,v0}var g0,OR;function YQ(){if(OR)return g0;OR=1;var e=Jp(),t=Wz(),n=Al();function r(a){return a&&a.length?e(a,n,t):void 0}return g0=r,g0}var XQ=YQ();const em=rt(XQ);var x0,_R;function WQ(){if(_R)return x0;_R=1;var e=tj(),t=ti(),n=az(),r=Nn();function a(s,l){var c=r(s)?e:n;return c(s,t(l,3))}return x0=a,x0}var b0,TR;function ZQ(){if(TR)return b0;TR=1;var e=rz(),t=WQ();function n(r,a){return e(t(r,a),1)}return b0=n,b0}var QQ=ZQ();const JQ=rt(QQ);var S0,ER;function eJ(){if(ER)return S0;ER=1;var e=pj();function t(n,r){return e(n,r)}return S0=t,S0}var tJ=eJ();const _o=rt(tJ);var _l=1e9,nJ={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Ij,wt=!0,hr="[DecimalError] ",bo=hr+"Invalid argument: ",qj=hr+"Exponent out of range: ",Tl=Math.floor,oo=Math.pow,rJ=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Vn,Zt=1e7,bt=7,Zz=9007199254740991,Gh=Tl(Zz/bt),pe={};pe.absoluteValue=pe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};pe.comparedTo=pe.cmp=function(e){var t,n,r,a,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===a?0:r>a^s.s<0?1:-1};pe.decimalPlaces=pe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*bt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};pe.dividedBy=pe.div=function(e){return Ni(this,new this.constructor(e))};pe.dividedToIntegerBy=pe.idiv=function(e){var t=this,n=t.constructor;return dt(Ni(t,new n(e),0,1),n.precision)};pe.equals=pe.eq=function(e){return!this.cmp(e)};pe.exponent=function(){return qt(this)};pe.greaterThan=pe.gt=function(e){return this.cmp(e)>0};pe.greaterThanOrEqualTo=pe.gte=function(e){return this.cmp(e)>=0};pe.isInteger=pe.isint=function(){return this.e>this.d.length-2};pe.isNegative=pe.isneg=function(){return this.s<0};pe.isPositive=pe.ispos=function(){return this.s>0};pe.isZero=function(){return this.s===0};pe.lessThan=pe.lt=function(e){return this.cmp(e)<0};pe.lessThanOrEqualTo=pe.lte=function(e){return this.cmp(e)<1};pe.logarithm=pe.log=function(e){var t,n=this,r=n.constructor,a=r.precision,s=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Vn))throw Error(hr+"NaN");if(n.s<1)throw Error(hr+(n.s?"NaN":"-Infinity"));return n.eq(Vn)?new r(0):(wt=!1,t=Ni(Sc(n,s),Sc(e,s),s),wt=!0,dt(t,a))};pe.minus=pe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?e$(t,e):Qz(t,(e.s=-e.s,e))};pe.modulo=pe.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(hr+"NaN");return n.s?(wt=!1,t=Ni(n,e,0,1).times(e),wt=!0,n.minus(t)):dt(new r(n),a)};pe.naturalExponential=pe.exp=function(){return Jz(this)};pe.naturalLogarithm=pe.ln=function(){return Sc(this)};pe.negated=pe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};pe.plus=pe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Qz(t,e):e$(t,(e.s=-e.s,e))};pe.precision=pe.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(bo+e);if(t=qt(a)+1,r=a.d.length-1,n=r*bt+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};pe.squareRoot=pe.sqrt=function(){var e,t,n,r,a,s,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(hr+"NaN")}for(e=qt(c),wt=!1,a=Math.sqrt(+c),a==0||a==1/0?(t=Ir(c.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Tl((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 f(t)):r=new f(a.toString()),n=f.precision,a=l=n+3;;)if(s=r,r=s.plus(Ni(c,s,l+2)).times(.5),Ir(s.d).slice(0,l)===(t=Ir(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),a==l&&t=="4999"){if(dt(s,n+1,0),s.times(s).eq(c)){r=s;break}}else if(t!="9999")break;l+=4}return wt=!0,dt(r,n)};pe.times=pe.mul=function(e){var t,n,r,a,s,l,c,f,d,m=this,y=m.constructor,g=m.d,S=(e=new y(e)).d;if(!m.s||!e.s)return new y(0);for(e.s*=m.s,n=m.e+e.e,f=g.length,d=S.length,f<d&&(s=g,g=S,S=s,l=f,f=d,d=l),s=[],l=f+d,r=l;r--;)s.push(0);for(r=d;--r>=0;){for(t=0,a=f+r;a>r;)c=s[a]+S[r]*g[a-r-1]+t,s[a--]=c%Zt|0,t=c/Zt|0;s[a]=(s[a]+t)%Zt|0}for(;!s[--l];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,wt?dt(e,y.precision):e};pe.toDecimalPlaces=pe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(Wr(e,0,_l),t===void 0?t=r.rounding:Wr(t,0,8),dt(n,e+qt(n)+1,t))};pe.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=To(r,!0):(Wr(e,0,_l),t===void 0?t=a.rounding:Wr(t,0,8),r=dt(new a(r),e+1,t),n=To(r,!0,e+1)),n};pe.toFixed=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?To(a):(Wr(e,0,_l),t===void 0?t=s.rounding:Wr(t,0,8),r=dt(new s(a),e+qt(a)+1,t),n=To(r.abs(),!1,e+qt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};pe.toInteger=pe.toint=function(){var e=this,t=e.constructor;return dt(new t(e),qt(e)+1,t.rounding)};pe.toNumber=function(){return+this};pe.toPower=pe.pow=function(e){var t,n,r,a,s,l,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(Vn);if(c=new f(c),!c.s){if(e.s<1)throw Error(hr+"Infinity");return c}if(c.eq(Vn))return c;if(r=f.precision,e.eq(Vn))return dt(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=c.s,l){if((n=m<0?-m:m)<=Zz){for(a=new f(Vn),t=Math.ceil(r/bt+4),wt=!1;n%2&&(a=a.times(c),CR(a.d,t)),n=Tl(n/2),n!==0;)c=c.times(c),CR(c.d,t);return wt=!0,e.s<0?new f(Vn).div(a):dt(a,r)}}else if(s<0)throw Error(hr+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,wt=!1,a=e.times(Sc(c,r+d)),wt=!0,a=Jz(a),a.s=s,a};pe.toPrecision=function(e,t){var n,r,a=this,s=a.constructor;return e===void 0?(n=qt(a),r=To(a,n<=s.toExpNeg||n>=s.toExpPos)):(Wr(e,1,_l),t===void 0?t=s.rounding:Wr(t,0,8),a=dt(new s(a),e,t),n=qt(a),r=To(a,e<=n||n<=s.toExpNeg,e)),r};pe.toSignificantDigits=pe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(Wr(e,1,_l),t===void 0?t=r.rounding:Wr(t,0,8)),dt(new r(n),e,t)};pe.toString=pe.valueOf=pe.val=pe.toJSON=pe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=qt(e),n=e.constructor;return To(e,t<=n.toExpNeg||t>=n.toExpPos)};function Qz(e,t){var n,r,a,s,l,c,f,d,m=e.constructor,y=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),wt?dt(t,y):t;if(f=e.d,d=t.d,l=e.e,a=t.e,f=f.slice(),s=l-a,s){for(s<0?(r=f,s=-s,c=d.length):(r=d,a=l,c=f.length),l=Math.ceil(y/bt),c=l>c?l+1:c+1,s>c&&(s=c,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(c=f.length,s=d.length,c-s<0&&(s=c,r=d,d=f,f=r),n=0;s;)n=(f[--s]=f[s]+d[s]+n)/Zt|0,f[s]%=Zt;for(n&&(f.unshift(n),++a),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=a,wt?dt(t,y):t}function Wr(e,t,n){if(e!==~~e||e<t||e>n)throw Error(bo+e)}function Ir(e){var t,n,r,a=e.length-1,s="",l=e[0];if(a>0){for(s+=l,t=1;t<a;t++)r=e[t]+"",n=bt-r.length,n&&(s+=ya(n)),s+=r;l=e[t],r=l+"",n=bt-r.length,n&&(s+=ya(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return s+l}var Ni=(function(){function e(r,a){var s,l=0,c=r.length;for(r=r.slice();c--;)s=r[c]*a+l,r[c]=s%Zt|0,l=s/Zt|0;return l&&r.unshift(l),r}function t(r,a,s,l){var c,f;if(s!=l)f=s>l?1:-1;else for(c=f=0;c<s;c++)if(r[c]!=a[c]){f=r[c]>a[c]?1:-1;break}return f}function n(r,a,s){for(var l=0;s--;)r[s]-=l,l=r[s]<a[s]?1:0,r[s]=l*Zt+r[s]-a[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,s,l){var c,f,d,m,y,g,S,w,j,b,A,_,T,C,O,N,M,R,D=r.constructor,B=r.s==a.s?1:-1,I=r.d,z=a.d;if(!r.s)return new D(r);if(!a.s)throw Error(hr+"Division by zero");for(f=r.e-a.e,M=z.length,O=I.length,S=new D(B),w=S.d=[],d=0;z[d]==(I[d]||0);)++d;if(z[d]>(I[d]||0)&&--f,s==null?_=s=D.precision:l?_=s+(qt(r)-qt(a))+1:_=s,_<0)return new D(0);if(_=_/bt+2|0,d=0,M==1)for(m=0,z=z[0],_++;(d<O||m)&&_--;d++)T=m*Zt+(I[d]||0),w[d]=T/z|0,m=T%z|0;else{for(m=Zt/(z[0]+1)|0,m>1&&(z=e(z,m),I=e(I,m),M=z.length,O=I.length),C=M,j=I.slice(0,M),b=j.length;b<M;)j[b++]=0;R=z.slice(),R.unshift(0),N=z[0],z[1]>=Zt/2&&++N;do m=0,c=t(z,j,M,b),c<0?(A=j[0],M!=b&&(A=A*Zt+(j[1]||0)),m=A/N|0,m>1?(m>=Zt&&(m=Zt-1),y=e(z,m),g=y.length,b=j.length,c=t(y,j,g,b),c==1&&(m--,n(y,M<g?R:z,g))):(m==0&&(c=m=1),y=z.slice()),g=y.length,g<b&&y.unshift(0),n(j,y,b),c==-1&&(b=j.length,c=t(z,j,M,b),c<1&&(m++,n(j,M<b?R:z,b))),b=j.length):c===0&&(m++,j=[0]),w[d++]=m,c&&j[0]?j[b++]=I[C]||0:(j=[I[C]],b=1);while((C++<O||j[0]!==void 0)&&_--)}return w[0]||w.shift(),S.e=f,dt(S,l?s+qt(S)+1:s)}})();function Jz(e,t){var n,r,a,s,l,c,f=0,d=0,m=e.constructor,y=m.precision;if(qt(e)>16)throw Error(qj+qt(e));if(!e.s)return new m(Vn);for(wt=!1,c=y,l=new m(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(oo(2,d))/Math.LN10*2+5|0,c+=r,n=a=s=new m(Vn),m.precision=c;;){if(a=dt(a.times(e),c),n=n.times(++f),l=s.plus(Ni(a,n,c)),Ir(l.d).slice(0,c)===Ir(s.d).slice(0,c)){for(;d--;)s=dt(s.times(s),c);return m.precision=y,t==null?(wt=!0,dt(s,y)):s}s=l}}function qt(e){for(var t=e.e*bt,n=e.d[0];n>=10;n/=10)t++;return t}function w0(e,t,n){if(t>e.LN10.sd())throw wt=!0,n&&(e.precision=n),Error(hr+"LN10 precision limit exceeded");return dt(new e(e.LN10),t)}function ya(e){for(var t="";e--;)t+="0";return t}function Sc(e,t){var n,r,a,s,l,c,f,d,m,y=1,g=10,S=e,w=S.d,j=S.constructor,b=j.precision;if(S.s<1)throw Error(hr+(S.s?"NaN":"-Infinity"));if(S.eq(Vn))return new j(0);if(t==null?(wt=!1,d=b):d=t,S.eq(10))return t==null&&(wt=!0),w0(j,d);if(d+=g,j.precision=d,n=Ir(w),r=n.charAt(0),s=qt(S),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)S=S.times(e),n=Ir(S.d),r=n.charAt(0),y++;s=qt(S),r>1?(S=new j("0."+n),s++):S=new j(r+"."+n.slice(1))}else return f=w0(j,d+2,b).times(s+""),S=Sc(new j(r+"."+n.slice(1)),d-g).plus(f),j.precision=b,t==null?(wt=!0,dt(S,b)):S;for(c=l=S=Ni(S.minus(Vn),S.plus(Vn),d),m=dt(S.times(S),d),a=3;;){if(l=dt(l.times(m),d),f=c.plus(Ni(l,new j(a),d)),Ir(f.d).slice(0,d)===Ir(c.d).slice(0,d))return c=c.times(2),s!==0&&(c=c.plus(w0(j,d+2,b).times(s+""))),c=Ni(c,new j(y),d),j.precision=b,t==null?(wt=!0,dt(c,b)):c;c=f,a+=2}}function NR(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=Tl(n/bt),e.d=[],r=(n+1)%bt,n<0&&(r+=bt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=bt;r<a;)e.d.push(+t.slice(r,r+=bt));t=t.slice(r),r=bt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),wt&&(e.e>Gh||e.e<-Gh))throw Error(qj+n)}else e.s=0,e.e=0,e.d=[0];return e}function dt(e,t,n){var r,a,s,l,c,f,d,m,y=e.d;for(l=1,s=y[0];s>=10;s/=10)l++;if(r=t-l,r<0)r+=bt,a=t,d=y[m=0];else{if(m=Math.ceil((r+1)/bt),s=y.length,m>=s)return e;for(d=s=y[m],l=1;s>=10;s/=10)l++;r%=bt,a=r-bt+l}if(n!==void 0&&(s=oo(10,l-a-1),c=d/s%10|0,f=t<0||y[m+1]!==void 0||d%s,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?a>0?d/oo(10,l-a):0:y[m-1])%10&1||n==(e.s<0?8:7))),t<1||!y[0])return f?(s=qt(e),y.length=1,t=t-s-1,y[0]=oo(10,(bt-t%bt)%bt),e.e=Tl(-t/bt)||0):(y.length=1,y[0]=e.e=e.s=0),e;if(r==0?(y.length=m,s=1,m--):(y.length=m+1,s=oo(10,bt-r),y[m]=a>0?(d/oo(10,l-a)%oo(10,a)|0)*s:0),f)for(;;)if(m==0){(y[0]+=s)==Zt&&(y[0]=1,++e.e);break}else{if(y[m]+=s,y[m]!=Zt)break;y[m--]=0,s=1}for(r=y.length;y[--r]===0;)y.pop();if(wt&&(e.e>Gh||e.e<-Gh))throw Error(qj+qt(e));return e}function e$(e,t){var n,r,a,s,l,c,f,d,m,y,g=e.constructor,S=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),wt?dt(t,S):t;if(f=e.d,y=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(m=l<0,m?(n=f,l=-l,c=y.length):(n=y,r=d,c=f.length),a=Math.max(Math.ceil(S/bt),c)+2,l>a&&(l=a,n.length=1),n.reverse(),a=l;a--;)n.push(0);n.reverse()}else{for(a=f.length,c=y.length,m=a<c,m&&(c=a),a=0;a<c;a++)if(f[a]!=y[a]){m=f[a]<y[a];break}l=0}for(m&&(n=f,f=y,y=n,t.s=-t.s),c=f.length,a=y.length-c;a>0;--a)f[c++]=0;for(a=y.length;a>l;){if(f[--a]<y[a]){for(s=a;s&&f[--s]===0;)f[s]=Zt-1;--f[s],f[a]+=Zt}f[a]-=y[a]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,wt?dt(t,S):t):new g(0)}function To(e,t,n){var r,a=qt(e),s=Ir(e.d),l=s.length;return t?(n&&(r=n-l)>0?s=s.charAt(0)+"."+s.slice(1)+ya(r):l>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(a<0?"e":"e+")+a):a<0?(s="0."+ya(-a-1)+s,n&&(r=n-l)>0&&(s+=ya(r))):a>=l?(s+=ya(a+1-l),n&&(r=n-a-1)>0&&(s=s+"."+ya(r))):((r=a+1)<l&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-l)>0&&(a+1===l&&(s+="."),s+=ya(r))),e.s<0?"-"+s:s}function CR(e,t){if(e.length>t)return e.length=t,!0}function t$(e){var t,n,r;function a(s){var l=this;if(!(l instanceof a))return new a(s);if(l.constructor=a,s instanceof a){l.s=s.s,l.e=s.e,l.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(bo+s);if(s>0)l.s=1;else if(s<0)s=-s,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(s===~~s&&s<1e7){l.e=0,l.d=[s];return}return NR(l,s.toString())}else if(typeof s!="string")throw Error(bo+s);if(s.charCodeAt(0)===45?(s=s.slice(1),l.s=-1):l.s=1,rJ.test(s))NR(l,s);else throw Error(bo+s)}if(a.prototype=pe,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=t$,a.config=a.set=iJ,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 iJ(e){if(!e||typeof e!="object")throw Error(hr+"Object expected");var t,n,r,a=["precision",1,_l,"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(Tl(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(bo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(bo+n+": "+r);return this}var Ij=t$(nJ);Vn=new Ij(1);const st=Ij;function aJ(e){return uJ(e)||lJ(e)||sJ(e)||oJ()}function oJ(){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 sJ(e,t){if(e){if(typeof e=="string")return uS(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 uS(e,t)}}function lJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function uJ(e){if(Array.isArray(e))return uS(e)}function uS(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 cJ=function(t){return t},n$={},r$=function(t){return t===n$},MR=function(t){return function n(){return arguments.length===0||arguments.length===1&&r$(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},fJ=function e(t,n){return t===1?n:MR(function(){for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];var l=a.filter(function(c){return c!==n$}).length;return l>=t?n.apply(void 0,a):e(t-l,MR(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var m=a.map(function(y){return r$(y)?f.shift():y});return n.apply(void 0,aJ(m).concat(f))}))})},tm=function(t){return fJ(t.length,t)},cS=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},dJ=tm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),hJ=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return cJ;var a=n.reverse(),s=a[0],l=a.slice(1);return function(){return l.reduce(function(c,f){return f(c)},s.apply(void 0,arguments))}},fS=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},i$=function(t){var n=null,r=null;return function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return n&&s.every(function(c,f){return c===n[f]})||(n=s,r=t.apply(void 0,s)),r}};function pJ(e){var t;return e===0?t=1:t=Math.floor(new st(e).abs().log(10).toNumber())+1,t}function mJ(e,t,n){for(var r=new st(e),a=0,s=[];r.lt(t)&&a<1e5;)s.push(r.toNumber()),r=r.add(n),a++;return s}var yJ=tm(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),vJ=tm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),gJ=tm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const nm={rangeStep:mJ,getDigitCount:pJ,interpolateNumber:yJ,uninterpolateNumber:vJ,uninterpolateTruncation:gJ};function dS(e){return SJ(e)||bJ(e)||a$(e)||xJ()}function xJ(){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 bJ(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function SJ(e){if(Array.isArray(e))return hS(e)}function wc(e,t){return AJ(e)||jJ(e,t)||a$(e,t)||wJ()}function wJ(){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 a$(e,t){if(e){if(typeof e=="string")return hS(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 hS(e,t)}}function hS(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 jJ(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,s=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){a=!0,s=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(a)throw s}}return n}}function AJ(e){if(Array.isArray(e))return e}function o$(e){var t=wc(e,2),n=t[0],r=t[1],a=n,s=r;return n>r&&(a=r,s=n),[a,s]}function s$(e,t,n){if(e.lte(0))return new st(0);var r=nm.getDigitCount(e.toNumber()),a=new st(10).pow(r),s=e.div(a),l=r!==1?.05:.1,c=new st(Math.ceil(s.div(l).toNumber())).add(n).mul(l),f=c.mul(a);return t?f:new st(Math.ceil(f))}function OJ(e,t,n){var r=1,a=new st(e);if(!a.isint()&&n){var s=Math.abs(e);s<1?(r=new st(10).pow(nm.getDigitCount(e)-1),a=new st(Math.floor(a.div(r).toNumber())).mul(r)):s>1&&(a=new st(Math.floor(e)))}else e===0?a=new st(Math.floor((t-1)/2)):n||(a=new st(Math.floor(e)));var l=Math.floor((t-1)/2),c=hJ(dJ(function(f){return a.add(new st(f-l).mul(r)).toNumber()}),cS);return c(0,t)}function l$(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 st(0),tickMin:new st(0),tickMax:new st(0)};var s=s$(new st(t).sub(e).div(n-1),r,a),l;e<=0&&t>=0?l=new st(0):(l=new st(e).add(t).div(2),l=l.sub(new st(l).mod(s)));var c=Math.ceil(l.sub(e).div(s).toNumber()),f=Math.ceil(new st(t).sub(l).div(s).toNumber()),d=c+f+1;return d>n?l$(e,t,n,r,a+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:s,tickMin:l.sub(new st(c).mul(s)),tickMax:l.add(new st(f).mul(s))})}function _J(e){var t=wc(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(a,2),c=o$([n,r]),f=wc(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var y=m===1/0?[d].concat(dS(cS(0,a-1).map(function(){return 1/0}))):[].concat(dS(cS(0,a-1).map(function(){return-1/0})),[m]);return n>r?fS(y):y}if(d===m)return OJ(d,a,s);var g=l$(d,m,l,s),S=g.step,w=g.tickMin,j=g.tickMax,b=nm.rangeStep(w,j.add(new st(.1).mul(S)),S);return n>r?fS(b):b}function TJ(e,t){var n=wc(e,2),r=n[0],a=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=o$([r,a]),c=wc(l,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,a];if(f===d)return[f];var m=Math.max(t,2),y=s$(new st(d).sub(f).div(m-1),s,0),g=[].concat(dS(nm.rangeStep(new st(f),new st(d).sub(new st(.99).mul(y)),y)),[d]);return r>a?fS(g):g}var EJ=i$(_J),NJ=i$(TJ),CJ="Invariant failed";function Eo(e,t){throw new Error(CJ)}var MJ=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ws(e){"@babel/helpers - typeof";return Ws=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},Ws(e)}function Fh(){return Fh=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},Fh.apply(this,arguments)}function PJ(e,t){return LJ(e)||kJ(e,t)||DJ(e,t)||RJ()}function RJ(){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 DJ(e,t){if(e){if(typeof e=="string")return PR(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 PR(e,t)}}function PR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function LJ(e){if(Array.isArray(e))return e}function zJ(e,t){if(e==null)return{};var n=$J(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $J(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 BJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qJ(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,f$(r.key),r)}}function IJ(e,t,n){return t&&qJ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UJ(e,t,n){return t=Kh(t),VJ(e,u$()?Reflect.construct(t,n||[],Kh(e).constructor):t.apply(e,n))}function VJ(e,t){if(t&&(Ws(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HJ(e)}function HJ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(u$=function(){return!!e})()}function Kh(e){return Kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Kh(e)}function GJ(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&&pS(e,t)}function pS(e,t){return pS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},pS(e,t)}function c$(e,t,n){return t=f$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f$(e){var t=FJ(e,"string");return Ws(t)=="symbol"?t:t+""}function FJ(e,t){if(Ws(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ws(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var of=(function(e){function t(){return BJ(this,t),UJ(this,t,arguments)}return GJ(t,e),IJ(t,[{key:"render",value:function(){var r=this.props,a=r.offset,s=r.layout,l=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,m=r.xAxis,y=r.yAxis,g=zJ(r,MJ),S=Se(g,!1);this.props.direction==="x"&&m.type!=="number"&&Eo();var w=f.map(function(j){var b=d(j,c),A=b.x,_=b.y,T=b.value,C=b.errorVal;if(!C)return null;var O=[],N,M;if(Array.isArray(C)){var R=PJ(C,2);N=R[0],M=R[1]}else N=M=C;if(s==="vertical"){var D=m.scale,B=_+a,I=B+l,z=B-l,H=D(T-N),X=D(T+M);O.push({x1:X,y1:I,x2:X,y2:z}),O.push({x1:H,y1:B,x2:X,y2:B}),O.push({x1:H,y1:I,x2:H,y2:z})}else if(s==="horizontal"){var Y=y.scale,$=A+a,F=$-l,Q=$+l,ie=Y(T-N),se=Y(T+M);O.push({x1:F,y1:se,x2:Q,y2:se}),O.push({x1:$,y1:ie,x2:$,y2:se}),O.push({x1:F,y1:ie,x2:Q,y2:ie})}return q.createElement(qe,Fh({className:"recharts-errorBar",key:"bar-".concat(O.map(function(L){return"".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))},S),O.map(function(L){return q.createElement("line",Fh({},L,{key:"line-".concat(L.x1,"-").concat(L.x2,"-").concat(L.y1,"-").concat(L.y2)}))}))});return q.createElement(qe,{className:"recharts-errorBars"},w)}}])})(q.Component);c$(of,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});c$(of,"displayName","ErrorBar");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 RR(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 eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RR(Object(n),!0).forEach(function(r){KJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KJ(e,t,n){return t=YJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YJ(e){var t=XJ(e,"string");return jc(t)=="symbol"?t:t+""}function XJ(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var d$=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,s=t.legendContent,l=In(n,Ls);if(!l)return null;var c=Ls.defaultProps,f=c!==void 0?eo(eo({},c),l.props):{},d;return l.props&&l.props.payload?d=l.props&&l.props.payload:s==="children"?d=(r||[]).reduce(function(m,y){var g=y.item,S=y.props,w=S.sectors||S.data||[];return m.concat(w.map(function(j){return{type:l.props.iconType||g.props.legendType,value:j.name,color:j.fill,payload:j}}))},[]):d=(r||[]).map(function(m){var y=m.item,g=y.type.defaultProps,S=g!==void 0?eo(eo({},g),y.props):{},w=S.dataKey,j=S.name,b=S.legendType,A=S.hide;return{inactive:A,dataKey:w,type:f.iconType||b||"square",color:Uj(y),value:j||w,payload:S}}),eo(eo(eo({},f),Ls.getWithHeight(l,a)),{},{payload:d,item:l})};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 DR(e){return JJ(e)||QJ(e)||ZJ(e)||WJ()}function WJ(){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 ZJ(e,t){if(e){if(typeof e=="string")return mS(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 mS(e,t)}}function QJ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function JJ(e){if(Array.isArray(e))return mS(e)}function mS(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 kR(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 Nt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kR(Object(n),!0).forEach(function(r){$s(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $s(e,t,n){return t=eee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eee(e){var t=tee(e,"string");return Ac(t)=="symbol"?t:t+""}function tee(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pt(e,t,n){return Ne(e)||Ne(t)?n:Ft(t)?Gn(e,t,n):_e(t)?t(e):n}function Qu(e,t,n,r){var a=JQ(e,function(c){return Pt(c,t)});if(n==="number"){var s=a.filter(function(c){return ue(c)||parseFloat(c)});return s.length?[em(s),xa(s)]:[1/0,-1/0]}var l=r?a.filter(function(c){return!Ne(c)}):a;return l.map(function(c){return Ft(c)||c instanceof Date?c:""})}var nee=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,s=arguments.length>3?arguments[3]:void 0,l=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var f=s.range,d=0;d<c;d++){var m=d>0?a[d-1].coordinate:a[c-1].coordinate,y=a[d].coordinate,g=d>=c-1?a[0].coordinate:a[d+1].coordinate,S=void 0;if(gn(y-m)!==gn(g-y)){var w=[];if(gn(g-y)===gn(f[1]-f[0])){S=g;var j=y+f[1]-f[0];w[0]=Math.min(j,(j+m)/2),w[1]=Math.max(j,(j+m)/2)}else{S=m;var b=g+f[1]-f[0];w[0]=Math.min(y,(b+y)/2),w[1]=Math.max(y,(b+y)/2)}var A=[Math.min(y,(S+y)/2),Math.max(y,(S+y)/2)];if(t>A[0]&&t<=A[1]||t>=w[0]&&t<=w[1]){l=a[d].index;break}}else{var _=Math.min(m,g),T=Math.max(m,g);if(t>(_+y)/2&&t<=(T+y)/2){l=a[d].index;break}}}else for(var C=0;C<c;C++)if(C===0&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C>0&&C<c-1&&t>(r[C].coordinate+r[C-1].coordinate)/2&&t<=(r[C].coordinate+r[C+1].coordinate)/2||C===c-1&&t>(r[C].coordinate+r[C-1].coordinate)/2){l=r[C].index;break}return l},Uj=function(t){var n,r=t,a=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Nt(Nt({},t.type.defaultProps),t.props):t.props,l=s.stroke,c=s.fill,f;switch(a){case"Line":f=l;break;case"Area":case"Radar":f=l&&l!=="none"?l:c;break;default:f=c;break}return f},ree=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,s=a===void 0?{}:a;if(!s)return{};for(var l={},c=Object.keys(s),f=0,d=c.length;f<d;f++)for(var m=s[c[f]].stackGroups,y=Object.keys(m),g=0,S=y.length;g<S;g++){var w=m[y[g]],j=w.items,b=w.cateAxisId,A=j.filter(function(M){return Ei(M.type).indexOf("Bar")>=0});if(A&&A.length){var _=A[0].type.defaultProps,T=_!==void 0?Nt(Nt({},_),A[0].props):A[0].props,C=T.barSize,O=T[b];l[O]||(l[O]=[]);var N=Ne(C)?n:C;l[O].push({item:A[0],stackList:A.slice(1),barSize:Ne(N)?void 0:xn(N,r,0)})}}return l},iee=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,s=t.sizeList,l=s===void 0?[]:s,c=t.maxBarSize,f=l.length;if(f<1)return null;var d=xn(n,a,0,!0),m,y=[];if(l[0].barSize===+l[0].barSize){var g=!1,S=a/f,w=l.reduce(function(C,O){return C+O.barSize||0},0);w+=(f-1)*d,w>=a&&(w-=(f-1)*d,d=0),w>=a&&S>0&&(g=!0,S*=.9,w=f*S);var j=(a-w)/2>>0,b={offset:j-d,size:0};m=l.reduce(function(C,O){var N={item:O.item,position:{offset:b.offset+b.size+d,size:g?S:O.barSize}},M=[].concat(DR(C),[N]);return b=M[M.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(R){M.push({item:R,position:b})}),M},y)}else{var A=xn(r,a,0,!0);a-2*A-(f-1)*d<=0&&(d=0);var _=(a-2*A-(f-1)*d)/f;_>1&&(_>>=0);var T=c===+c?Math.min(_,c):_;m=l.reduce(function(C,O,N){var M=[].concat(DR(C),[{item:O.item,position:{offset:A+(_+d)*N+(_-T)/2,size:T}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(R){M.push({item:R,position:M[M.length-1].position})}),M},y)}return m},aee=function(t,n,r,a){var s=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),d=d$({children:s,legendWidth:f});if(d){var m=a||{},y=m.width,g=m.height,S=d.align,w=d.verticalAlign,j=d.layout;if((j==="vertical"||j==="horizontal"&&w==="middle")&&S!=="center"&&ue(t[S]))return Nt(Nt({},t),{},$s({},S,t[S]+(y||0)));if((j==="horizontal"||j==="vertical"&&S==="center")&&w!=="middle"&&ue(t[w]))return Nt(Nt({},t),{},$s({},w,t[w]+(g||0)))}return t},oee=function(t,n,r){return Ne(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},h$=function(t,n,r,a,s){var l=n.props.children,c=Fn(l,of).filter(function(d){return oee(a,s,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var y=Pt(m,r);if(Ne(y))return d;var g=Array.isArray(y)?[em(y),xa(y)]:[y,y],S=f.reduce(function(w,j){var b=Pt(m,j,0),A=g[0]-Math.abs(Array.isArray(b)?b[0]:b),_=g[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(A,w[0]),Math.max(_,w[1])]},[1/0,-1/0]);return[Math.min(S[0],d[0]),Math.max(S[1],d[1])]},[1/0,-1/0])}return null},see=function(t,n,r,a,s){var l=n.map(function(c){return h$(t,c,r,s,a)}).filter(function(c){return!Ne(c)});return l&&l.length?l.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},p$=function(t,n,r,a,s){var l=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&h$(t,f,d,a)||Qu(t,d,r,s)});if(r==="number")return l.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return l.reduce(function(f,d){for(var m=0,y=d.length;m<y;m++)c[d[m]]||(c[d[m]]=!0,f.push(d[m]));return f},[])},m$=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},y$=function(t,n,r,a){if(a)return t.map(function(f){return f.coordinate});var s,l,c=t.map(function(f){return f.coordinate===n&&(s=!0),f.coordinate===r&&(l=!0),f.coordinate});return s||c.push(n),l||c.push(r),c},Ti=function(t,n,r){if(!t)return null;var a=t.scale,s=t.duplicateDomain,l=t.type,c=t.range,f=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,d=(n||r)&&l==="category"&&a.bandwidth?a.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?gn(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(y){var g=s?s.indexOf(y):y;return{coordinate:a(g)+d,value:y,offset:d}});return m.filter(function(y){return!jl(y.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(y,g){return{coordinate:a(y)+d,value:y,index:g,offset:d}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(y){return{coordinate:a(y)+d,value:y,offset:d}}):a.domain().map(function(y,g){return{coordinate:a(y)+d,value:s?s[y]:y,index:g,offset:d}})},j0=new WeakMap,Ud=function(t,n){if(typeof n!="function")return t;j0.has(t)||j0.set(t,new WeakMap);var r=j0.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},v$=function(t,n,r){var a=t.scale,s=t.type,l=t.layout,c=t.axisType;if(a==="auto")return l==="radial"&&c==="radiusAxis"?{scale:yc(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:Ih(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Zu(),realScaleType:"point"}:s==="category"?{scale:yc(),realScaleType:"band"}:{scale:Ih(),realScaleType:"linear"};if(jo(a)){var f="scale".concat(Bp(a));return{scale:(bR[f]||Zu)(),realScaleType:bR[f]?f:"point"}}return _e(a)?{scale:a}:{scale:Zu(),realScaleType:"point"}},LR=1e-4,g$=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),s=Math.min(a[0],a[1])-LR,l=Math.max(a[0],a[1])+LR,c=t(n[0]),f=t(n[r-1]);(c<s||c>l||f<s||f>l)&&t.domain([n[0],n[r-1]])}},lee=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},uee=function(t,n){if(!n||n.length!==2||!ue(n[0])||!ue(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),s=[t[0],t[1]];return(!ue(t[0])||t[0]<r)&&(s[0]=r),(!ue(t[1])||t[1]>a)&&(s[1]=a),s[0]>a&&(s[0]=a),s[1]<r&&(s[1]=r),s},cee=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var s=0,l=0,c=0;c<n;++c){var f=jl(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=s,t[c][r][1]=s+f,s=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1])}},fee=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var s=0,l=0;l<n;++l){var c=jl(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=s,t[l][r][1]=s+c,s=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},dee={sign:cee,expand:JF,none:Us,silhouette:eK,wiggle:tK,positive:fee},hee=function(t,n,r){var a=n.map(function(c){return c.props.dataKey}),s=dee[r],l=QF().keys(a).value(function(c,f){return+Pt(c,f,0)}).order(G1).offset(s);return l(t)},pee=function(t,n,r,a,s,l){if(!t)return null;var c=l?n.reverse():n,f={},d=c.reduce(function(y,g){var S,w=(S=g.type)!==null&&S!==void 0&&S.defaultProps?Nt(Nt({},g.type.defaultProps),g.props):g.props,j=w.stackId,b=w.hide;if(b)return y;var A=w[r],_=y[A]||{hasStack:!1,stackGroups:{}};if(Ft(j)){var T=_.stackGroups[j]||{numericAxisId:r,cateAxisId:a,items:[]};T.items.push(g),_.hasStack=!0,_.stackGroups[j]=T}else _.stackGroups[Po("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[g]};return Nt(Nt({},y),{},$s({},A,_))},f),m={};return Object.keys(d).reduce(function(y,g){var S=d[g];if(S.hasStack){var w={};S.stackGroups=Object.keys(S.stackGroups).reduce(function(j,b){var A=S.stackGroups[b];return Nt(Nt({},j),{},$s({},b,{numericAxisId:r,cateAxisId:a,items:A.items,stackedData:hee(t,A.items,s)}))},w)}return Nt(Nt({},y),{},$s({},g,S))},m)},x$=function(t,n){var r=n.realScaleType,a=n.type,s=n.tickCount,l=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(s&&a==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=EJ(d,s,c);return t.domain([em(m),xa(m)]),{niceTicks:m}}if(s&&a==="number"){var y=t.domain(),g=NJ(y,s,c);return{niceTicks:g}}return null};function Yh(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,s=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!Ne(a[t.dataKey])){var c=Sh(n,"value",a[t.dataKey]);if(c)return c.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var f=Pt(a,Ne(l)?t.dataKey:l);return Ne(f)?null:t.scale(f)}var zR=function(t){var n=t.axis,r=t.ticks,a=t.offset,s=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+a:null;var f=Pt(l,n.dataKey,n.domain[c]);return Ne(f)?null:n.scale(f)-s/2+a},mee=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return a<=0&&s>=0?0:s<0?s:a}return r[0]},yee=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Nt(Nt({},t.type.defaultProps),t.props):t.props,s=a.stackId;if(Ft(s)){var l=n[s];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},vee=function(t){return t.reduce(function(n,r){return[em(r.concat([n[0]]).filter(ue)),xa(r.concat([n[1]]).filter(ue))]},[1/0,-1/0])},b$=function(t,n,r){return Object.keys(t).reduce(function(a,s){var l=t[s],c=l.stackedData,f=c.reduce(function(d,m){var y=vee(m.slice(n,r+1));return[Math.min(d[0],y[0]),Math.max(d[1],y[1])]},[1/0,-1/0]);return[Math.min(f[0],a[0]),Math.max(f[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},$R=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,BR=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,yS=function(t,n,r){if(_e(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(ue(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if($R.test(t[0])){var s=+$R.exec(t[0])[1];a[0]=n[0]-s}else _e(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(ue(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(BR.test(t[1])){var l=+BR.exec(t[1])[1];a[1]=n[1]+l}else _e(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Xh=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 s=yj(n,function(y){return y.coordinate}),l=1/0,c=1,f=s.length;c<f;c++){var d=s[c],m=s[c-1];l=Math.min((d.coordinate||0)-(m.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},qR=function(t,n,r){return!t||!t.length||_o(t,Gn(r,"type.defaultProps.domain"))?n:t},S$=function(t,n){var r=t.type.defaultProps?Nt(Nt({},t.type.defaultProps),t.props):t.props,a=r.dataKey,s=r.name,l=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,m=r.hide;return Nt(Nt({},Se(t,!1)),{},{dataKey:a,unit:l,formatter:c,name:s||a,color:Uj(t),value:Pt(n,a),type:f,payload:n,chartType:d,hide:m})};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 IR(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 Ai(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IR(Object(n),!0).forEach(function(r){w$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function w$(e,t,n){return t=gee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gee(e){var t=xee(e,"string");return Oc(t)=="symbol"?t:t+""}function xee(e,t){if(Oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bee(e,t){return Aee(e)||jee(e,t)||wee(e,t)||See()}function See(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function wee(e,t){if(e){if(typeof e=="string")return UR(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 UR(e,t)}}function UR(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 jee(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Aee(e){if(Array.isArray(e))return e}var Wh=Math.PI/180,Oee=function(t){return t*180/Math.PI},mt=function(t,n,r,a){return{x:t+Math.cos(-Wh*a)*r,y:n+Math.sin(-Wh*a)*r}},j$=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},_ee=function(t,n,r,a,s){var l=t.width,c=t.height,f=t.startAngle,d=t.endAngle,m=xn(t.cx,l,l/2),y=xn(t.cy,c,c/2),g=j$(l,c,r),S=xn(t.innerRadius,g,0),w=xn(t.outerRadius,g,g*.8),j=Object.keys(n);return j.reduce(function(b,A){var _=n[A],T=_.domain,C=_.reversed,O;if(Ne(_.range))a==="angleAxis"?O=[f,d]:a==="radiusAxis"&&(O=[S,w]),C&&(O=[O[1],O[0]]);else{O=_.range;var N=O,M=bee(N,2);f=M[0],d=M[1]}var R=v$(_,s),D=R.realScaleType,B=R.scale;B.domain(T).range(O),g$(B);var I=x$(B,Ai(Ai({},_),{},{realScaleType:D})),z=Ai(Ai(Ai({},_),I),{},{range:O,radius:w,realScaleType:D,scale:B,cx:m,cy:y,innerRadius:S,outerRadius:w,startAngle:f,endAngle:d});return Ai(Ai({},b),{},w$({},A,z))},{})},Tee=function(t,n){var r=t.x,a=t.y,s=n.x,l=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(a-l,2))},Eee=function(t,n){var r=t.x,a=t.y,s=n.cx,l=n.cy,c=Tee({x:r,y:a},{x:s,y:l});if(c<=0)return{radius:c};var f=(r-s)/c,d=Math.acos(f);return a>l&&(d=2*Math.PI-d),{radius:c,angle:Oee(d),angleInRadian:d}},Nee=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),s=Math.floor(r/360),l=Math.min(a,s);return{startAngle:n-l*360,endAngle:r-l*360}},Cee=function(t,n){var r=n.startAngle,a=n.endAngle,s=Math.floor(r/360),l=Math.floor(a/360),c=Math.min(s,l);return t+c*360},VR=function(t,n){var r=t.x,a=t.y,s=Eee({x:r,y:a},n),l=s.radius,c=s.angle,f=n.innerRadius,d=n.outerRadius;if(l<f||l>d)return!1;if(l===0)return!0;var m=Nee(n),y=m.startAngle,g=m.endAngle,S=c,w;if(y<=g){for(;S>g;)S-=360;for(;S<y;)S+=360;w=S>=y&&S<=g}else{for(;S>y;)S-=360;for(;S<g;)S+=360;w=S>=g&&S<=y}return w?Ai(Ai({},n),{},{radius:l,angle:Cee(S,n)}):null},A$=function(t){return!P.isValidElement(t)&&!_e(t)&&typeof t!="boolean"?t.className:""};function _c(e){"@babel/helpers - typeof";return _c=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},_c(e)}var Mee=["offset"];function Pee(e){return Lee(e)||kee(e)||Dee(e)||Ree()}function Ree(){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 Dee(e,t){if(e){if(typeof e=="string")return vS(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 vS(e,t)}}function kee(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lee(e){if(Array.isArray(e))return vS(e)}function vS(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 zee(e,t){if(e==null)return{};var n=$ee(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $ee(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 HR(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?HR(Object(n),!0).forEach(function(r){Bee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bee(e,t,n){return t=qee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qee(e){var t=Iee(e,"string");return _c(t)=="symbol"?t:t+""}function Iee(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Tc(){return Tc=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},Tc.apply(this,arguments)}var Uee=function(t){var n=t.value,r=t.formatter,a=Ne(t.children)?n:t.children;return _e(r)?r(a):a},Vee=function(t,n){var r=gn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},Hee=function(t,n,r){var a=t.position,s=t.viewBox,l=t.offset,c=t.className,f=s,d=f.cx,m=f.cy,y=f.innerRadius,g=f.outerRadius,S=f.startAngle,w=f.endAngle,j=f.clockWise,b=(y+g)/2,A=Vee(S,w),_=A>=0?1:-1,T,C;a==="insideStart"?(T=S+_*l,C=j):a==="insideEnd"?(T=w-_*l,C=!j):a==="end"&&(T=w+_*l,C=j),C=A<=0?C:!C;var O=mt(d,m,b,T),N=mt(d,m,b,T+(C?1:-1)*359),M="M".concat(O.x,",").concat(O.y,`
A`).concat(b,",").concat(b,",0,1,").concat(C?0:1,`,
`).concat(N.x,",").concat(N.y),R=Ne(t.id)?Po("recharts-radial-line-"):t.id;return q.createElement("text",Tc({},r,{dominantBaseline:"central",className:Pe("recharts-radial-bar-label",c)}),q.createElement("defs",null,q.createElement("path",{id:R,d:M})),q.createElement("textPath",{xlinkHref:"#".concat(R)},n))},Gee=function(t){var n=t.viewBox,r=t.offset,a=t.position,s=n,l=s.cx,c=s.cy,f=s.innerRadius,d=s.outerRadius,m=s.startAngle,y=s.endAngle,g=(m+y)/2;if(a==="outside"){var S=mt(l,c,d+r,g),w=S.x,j=S.y;return{x:w,y:j,textAnchor:w>=l?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"end"};var b=(f+d)/2,A=mt(l,c,b,g),_=A.x,T=A.y;return{x:_,y:T,textAnchor:"middle",verticalAnchor:"middle"}},Fee=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,s=t.position,l=n,c=l.x,f=l.y,d=l.width,m=l.height,y=m>=0?1:-1,g=y*a,S=y>0?"end":"start",w=y>0?"start":"end",j=d>=0?1:-1,b=j*a,A=j>0?"end":"start",_=j>0?"start":"end";if(s==="top"){var T={x:c+d/2,y:f-y*a,textAnchor:"middle",verticalAnchor:S};return Vt(Vt({},T),r?{height:Math.max(f-r.y,0),width:d}:{})}if(s==="bottom"){var C={x:c+d/2,y:f+m+g,textAnchor:"middle",verticalAnchor:w};return Vt(Vt({},C),r?{height:Math.max(r.y+r.height-(f+m),0),width:d}:{})}if(s==="left"){var O={x:c-b,y:f+m/2,textAnchor:A,verticalAnchor:"middle"};return Vt(Vt({},O),r?{width:Math.max(O.x-r.x,0),height:m}:{})}if(s==="right"){var N={x:c+d+b,y:f+m/2,textAnchor:_,verticalAnchor:"middle"};return Vt(Vt({},N),r?{width:Math.max(r.x+r.width-N.x,0),height:m}:{})}var M=r?{width:d,height:m}:{};return s==="insideLeft"?Vt({x:c+b,y:f+m/2,textAnchor:_,verticalAnchor:"middle"},M):s==="insideRight"?Vt({x:c+d-b,y:f+m/2,textAnchor:A,verticalAnchor:"middle"},M):s==="insideTop"?Vt({x:c+d/2,y:f+g,textAnchor:"middle",verticalAnchor:w},M):s==="insideBottom"?Vt({x:c+d/2,y:f+m-g,textAnchor:"middle",verticalAnchor:S},M):s==="insideTopLeft"?Vt({x:c+b,y:f+g,textAnchor:_,verticalAnchor:w},M):s==="insideTopRight"?Vt({x:c+d-b,y:f+g,textAnchor:A,verticalAnchor:w},M):s==="insideBottomLeft"?Vt({x:c+b,y:f+m-g,textAnchor:_,verticalAnchor:S},M):s==="insideBottomRight"?Vt({x:c+d-b,y:f+m-g,textAnchor:A,verticalAnchor:S},M):wl(s)&&(ue(s.x)||fo(s.x))&&(ue(s.y)||fo(s.y))?Vt({x:c+xn(s.x,d),y:f+xn(s.y,m),textAnchor:"end",verticalAnchor:"end"},M):Vt({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},M)},Kee=function(t){return"cx"in t&&ue(t.cx)};function Qt(e){var t=e.offset,n=t===void 0?5:t,r=zee(e,Mee),a=Vt({offset:n},r),s=a.viewBox,l=a.position,c=a.value,f=a.children,d=a.content,m=a.className,y=m===void 0?"":m,g=a.textBreakAll;if(!s||Ne(c)&&Ne(f)&&!P.isValidElement(d)&&!_e(d))return null;if(P.isValidElement(d))return P.cloneElement(d,a);var S;if(_e(d)){if(S=P.createElement(d,a),P.isValidElement(S))return S}else S=Uee(a);var w=Kee(s),j=Se(a,!0);if(w&&(l==="insideStart"||l==="insideEnd"||l==="end"))return Hee(a,S,j);var b=w?Gee(a):Fee(a);return q.createElement(Oo,Tc({className:Pe("recharts-label",y)},j,b,{breakAll:g}),S)}Qt.displayName="Label";var O$=function(t){var n=t.cx,r=t.cy,a=t.angle,s=t.startAngle,l=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,m=t.outerRadius,y=t.x,g=t.y,S=t.top,w=t.left,j=t.width,b=t.height,A=t.clockWise,_=t.labelViewBox;if(_)return _;if(ue(j)&&ue(b)){if(ue(y)&&ue(g))return{x:y,y:g,width:j,height:b};if(ue(S)&&ue(w))return{x:S,y:w,width:j,height:b}}return ue(y)&&ue(g)?{x:y,y:g,width:0,height:0}:ue(n)&&ue(r)?{cx:n,cy:r,startAngle:s||a||0,endAngle:l||a||0,innerRadius:d||0,outerRadius:m||f||c||0,clockWise:A}:t.viewBox?t.viewBox:{}},Yee=function(t,n){return t?t===!0?q.createElement(Qt,{key:"label-implicit",viewBox:n}):Ft(t)?q.createElement(Qt,{key:"label-implicit",viewBox:n,value:t}):P.isValidElement(t)?t.type===Qt?P.cloneElement(t,{key:"label-implicit",viewBox:n}):q.createElement(Qt,{key:"label-implicit",content:t,viewBox:n}):_e(t)?q.createElement(Qt,{key:"label-implicit",content:t,viewBox:n}):wl(t)?q.createElement(Qt,Tc({viewBox:n},t,{key:"label-implicit"})):null:null},Xee=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,s=O$(t),l=Fn(a,Qt).map(function(f,d){return P.cloneElement(f,{viewBox:n||s,key:"label-".concat(d)})});if(!r)return l;var c=Yee(t.label,n||s);return[c].concat(Pee(l))};Qt.parseViewBox=O$;Qt.renderCallByParent=Xee;var A0,GR;function Wee(){if(GR)return A0;GR=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return A0=e,A0}var Zee=Wee();const Qee=rt(Zee);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)}var Jee=["valueAccessor"],ete=["data","dataKey","clockWise","id","textBreakAll"];function tte(e){return ate(e)||ite(e)||rte(e)||nte()}function nte(){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 rte(e,t){if(e){if(typeof e=="string")return gS(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 gS(e,t)}}function ite(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ate(e){if(Array.isArray(e))return gS(e)}function gS(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 Zh(){return Zh=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},Zh.apply(this,arguments)}function FR(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 KR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FR(Object(n),!0).forEach(function(r){ote(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ote(e,t,n){return t=ste(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ste(e){var t=lte(e,"string");return Ec(t)=="symbol"?t:t+""}function lte(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function YR(e,t){if(e==null)return{};var n=ute(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ute(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 cte=function(t){return Array.isArray(t.value)?Qee(t.value):t.value};function Fr(e){var t=e.valueAccessor,n=t===void 0?cte:t,r=YR(e,Jee),a=r.data,s=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,d=YR(r,ete);return!a||!a.length?null:q.createElement(qe,{className:"recharts-label-list"},a.map(function(m,y){var g=Ne(s)?n(m,y):Pt(m&&m.payload,s),S=Ne(c)?{}:{id:"".concat(c,"-").concat(y)};return q.createElement(Qt,Zh({},Se(m,!0),d,S,{parentViewBox:m.parentViewBox,value:g,textBreakAll:f,viewBox:Qt.parseViewBox(Ne(l)?m:KR(KR({},m),{},{clockWise:l})),key:"label-".concat(y),index:y}))}))}Fr.displayName="LabelList";function fte(e,t){return e?e===!0?q.createElement(Fr,{key:"labelList-implicit",data:t}):q.isValidElement(e)||_e(e)?q.createElement(Fr,{key:"labelList-implicit",data:t,content:e}):wl(e)?q.createElement(Fr,Zh({data:t},e,{key:"labelList-implicit"})):null:null}function dte(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=Fn(r,Fr).map(function(l,c){return P.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return a;var s=fte(e.label,t);return[s].concat(tte(a))}Fr.renderCallByParent=dte;function Nc(e){"@babel/helpers - typeof";return Nc=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},Nc(e)}function xS(){return xS=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},xS.apply(this,arguments)}function XR(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 WR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XR(Object(n),!0).forEach(function(r){hte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hte(e,t,n){return t=pte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pte(e){var t=mte(e,"string");return Nc(t)=="symbol"?t:t+""}function mte(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yte=function(t,n){var r=gn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Vd=function(t){var n=t.cx,r=t.cy,a=t.radius,s=t.angle,l=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,m=f*(c?1:-1)+a,y=Math.asin(f/m)/Wh,g=d?s:s+l*y,S=mt(n,r,m,g),w=mt(n,r,a,g),j=d?s-l*y:s,b=mt(n,r,m*Math.cos(y*Wh),j);return{center:S,circleTangency:w,lineTangency:b,theta:y}},_$=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,s=t.outerRadius,l=t.startAngle,c=t.endAngle,f=yte(l,c),d=l+f,m=mt(n,r,s,l),y=mt(n,r,s,d),g="M ".concat(m.x,",").concat(m.y,`
A `).concat(s,",").concat(s,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(l>d),`,
`).concat(y.x,",").concat(y.y,`
`);if(a>0){var S=mt(n,r,a,l),w=mt(n,r,a,d);g+="L ".concat(w.x,",").concat(w.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(l<=d),`,
`).concat(S.x,",").concat(S.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},vte=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,s=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,y=gn(m-d),g=Vd({cx:n,cy:r,radius:s,angle:d,sign:y,cornerRadius:l,cornerIsExternal:f}),S=g.circleTangency,w=g.lineTangency,j=g.theta,b=Vd({cx:n,cy:r,radius:s,angle:m,sign:-y,cornerRadius:l,cornerIsExternal:f}),A=b.circleTangency,_=b.lineTangency,T=b.theta,C=f?Math.abs(d-m):Math.abs(d-m)-j-T;if(C<0)return c?"M ".concat(w.x,",").concat(w.y,`
a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
`):_$({cx:n,cy:r,innerRadius:a,outerRadius:s,startAngle:d,endAngle:m});var O="M ".concat(w.x,",").concat(w.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(S.x,",").concat(S.y,`
A`).concat(s,",").concat(s,",0,").concat(+(C>180),",").concat(+(y<0),",").concat(A.x,",").concat(A.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(_.x,",").concat(_.y,`
`);if(a>0){var N=Vd({cx:n,cy:r,radius:a,angle:d,sign:y,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),M=N.circleTangency,R=N.lineTangency,D=N.theta,B=Vd({cx:n,cy:r,radius:a,angle:m,sign:-y,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),I=B.circleTangency,z=B.lineTangency,H=B.theta,X=f?Math.abs(d-m):Math.abs(d-m)-D-H;if(X<0&&l===0)return"".concat(O,"L").concat(n,",").concat(r,"Z");O+="L".concat(z.x,",").concat(z.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(I.x,",").concat(I.y,`
A`).concat(a,",").concat(a,",0,").concat(+(X>180),",").concat(+(y>0),",").concat(M.x,",").concat(M.y,`
A`).concat(l,",").concat(l,",0,0,").concat(+(y<0),",").concat(R.x,",").concat(R.y,"Z")}else O+="L".concat(n,",").concat(r,"Z");return O},gte={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},T$=function(t){var n=WR(WR({},gte),t),r=n.cx,a=n.cy,s=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,m=n.startAngle,y=n.endAngle,g=n.className;if(l<s||m===y)return null;var S=Pe("recharts-sector",g),w=l-s,j=xn(c,w,0,!0),b;return j>0&&Math.abs(m-y)<360?b=vte({cx:r,cy:a,innerRadius:s,outerRadius:l,cornerRadius:Math.min(j,w/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:y}):b=_$({cx:r,cy:a,innerRadius:s,outerRadius:l,startAngle:m,endAngle:y}),q.createElement("path",xS({},Se(n,!0),{className:S,d:b,role:"img"}))};function Cc(e){"@babel/helpers - typeof";return Cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cc(e)}function bS(){return bS=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},bS.apply(this,arguments)}function ZR(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 QR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(n),!0).forEach(function(r){xte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xte(e,t,n){return t=bte(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bte(e){var t=Ste(e,"string");return Cc(t)=="symbol"?t:t+""}function Ste(e,t){if(Cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var JR={curveBasisClosed:IF,curveBasisOpen:UF,curveBasis:qF,curveBumpX:_F,curveBumpY:TF,curveLinearClosed:VF,curveLinear:Ip,curveMonotoneX:HF,curveMonotoneY:GF,curveNatural:FF,curveStep:KF,curveStepAfter:XF,curveStepBefore:YF},Hd=function(t){return t.x===+t.x&&t.y===+t.y},Ru=function(t){return t.x},Du=function(t){return t.y},wte=function(t,n){if(_e(t))return t;var r="curve".concat(Bp(t));return(r==="curveMonotone"||r==="curveBump")&&n?JR["".concat(r).concat(n==="vertical"?"Y":"X")]:JR[r]||Ip},jte=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,s=a===void 0?[]:a,l=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,m=wte(r,c),y=d?s.filter(function(j){return Hd(j)}):s,g;if(Array.isArray(l)){var S=d?l.filter(function(j){return Hd(j)}):l,w=y.map(function(j,b){return QR(QR({},j),{},{base:S[b]})});return c==="vertical"?g=kd().y(Du).x1(Ru).x0(function(j){return j.base.x}):g=kd().x(Ru).y1(Du).y0(function(j){return j.base.y}),g.defined(Hd).curve(m),g(w)}return c==="vertical"&&ue(l)?g=kd().y(Du).x1(Ru).x0(l):ue(l)?g=kd().x(Ru).y1(Du).y0(l):g=_4().x(Ru).y(Du),g.defined(Hd).curve(m),g(y)},So=function(t){var n=t.className,r=t.points,a=t.path,s=t.pathRef;if((!r||!r.length)&&!a)return null;var l=r&&r.length?jte(t):a;return P.createElement("path",bS({},Se(t,!1),wh(t),{className:Pe("recharts-curve",n),d:l,ref:s}))},O0={exports:{}},_0,eD;function Ate(){if(eD)return _0;eD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _0=e,_0}var T0,tD;function Ote(){if(tD)return T0;tD=1;var e=Ate();function t(){}function n(){}return n.resetWarningCache=t,T0=function(){function r(l,c,f,d,m,y){if(y!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},T0}var nD;function _te(){return nD||(nD=1,O0.exports=Ote()()),O0.exports}var Tte=_te();const Ze=rt(Tte),{getOwnPropertyNames:Ete,getOwnPropertySymbols:Nte}=Object,{hasOwnProperty:Cte}=Object.prototype;function E0(e,t){return function(r,a,s){return e(r,a,s)&&t(r,a,s)}}function Gd(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:s}=a,l=s.get(n),c=s.get(r);if(l&&c)return l===r&&c===n;s.set(n,r),s.set(r,n);const f=e(n,r,a);return s.delete(n),s.delete(r),f}}function Mte(e){return e!=null?e[Symbol.toStringTag]:void 0}function rD(e){return Ete(e).concat(Nte(e))}const Pte=Object.hasOwn||((e,t)=>Cte.call(e,t));function ko(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Rte="__v",Dte="__o",kte="_owner",{getOwnPropertyDescriptor:iD,keys:aD}=Object;function Lte(e,t){return e.byteLength===t.byteLength&&Qh(new Uint8Array(e),new Uint8Array(t))}function zte(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 $te(e,t){return e.byteLength===t.byteLength&&Qh(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function Bte(e,t){return ko(e.getTime(),t.getTime())}function qte(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Ite(e,t){return e===t}function oD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),s=e.entries();let l,c,f=0;for(;(l=s.next())&&!l.done;){const d=t.entries();let m=!1,y=0;for(;(c=d.next())&&!c.done;){if(a[y]){y++;continue}const g=l.value,S=c.value;if(n.equals(g[0],S[0],f,y,e,t,n)&&n.equals(g[1],S[1],g[0],S[0],e,t,n)){m=a[y]=!0;break}y++}if(!m)return!1;f++}return!0}const Ute=ko;function Vte(e,t,n){const r=aD(e);let a=r.length;if(aD(t).length!==a)return!1;for(;a-- >0;)if(!E$(e,t,n,r[a]))return!1;return!0}function ku(e,t,n){const r=rD(e);let a=r.length;if(rD(t).length!==a)return!1;let s,l,c;for(;a-- >0;)if(s=r[a],!E$(e,t,n,s)||(l=iD(e,s),c=iD(t,s),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function Hte(e,t){return ko(e.valueOf(),t.valueOf())}function Gte(e,t){return e.source===t.source&&e.flags===t.flags}function sD(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),s=e.values();let l,c;for(;(l=s.next())&&!l.done;){const f=t.values();let d=!1,m=0;for(;(c=f.next())&&!c.done;){if(!a[m]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){d=a[m]=!0;break}m++}if(!d)return!1}return!0}function Qh(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 Fte(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function E$(e,t,n,r){return(r===kte||r===Dte||r===Rte)&&(e.$$typeof||t.$$typeof)?!0:Pte(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const Kte="[object ArrayBuffer]",Yte="[object Arguments]",Xte="[object Boolean]",Wte="[object DataView]",Zte="[object Date]",Qte="[object Error]",Jte="[object Map]",ene="[object Number]",tne="[object Object]",nne="[object RegExp]",rne="[object Set]",ine="[object String]",ane={"[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},one="[object URL]",sne=Object.prototype.toString;function lne({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:s,areMapsEqual:l,areNumbersEqual:c,areObjectsEqual:f,arePrimitiveWrappersEqual:d,areRegExpsEqual:m,areSetsEqual:y,areTypedArraysEqual:g,areUrlsEqual:S,unknownTagComparators:w}){return function(b,A,_){if(b===A)return!0;if(b==null||A==null)return!1;const T=typeof b;if(T!==typeof A)return!1;if(T!=="object")return T==="number"?c(b,A,_):T==="function"?s(b,A,_):!1;const C=b.constructor;if(C!==A.constructor)return!1;if(C===Object)return f(b,A,_);if(Array.isArray(b))return t(b,A,_);if(C===Date)return r(b,A,_);if(C===RegExp)return m(b,A,_);if(C===Map)return l(b,A,_);if(C===Set)return y(b,A,_);const O=sne.call(b);if(O===Zte)return r(b,A,_);if(O===nne)return m(b,A,_);if(O===Jte)return l(b,A,_);if(O===rne)return y(b,A,_);if(O===tne)return typeof b.then!="function"&&typeof A.then!="function"&&f(b,A,_);if(O===one)return S(b,A,_);if(O===Qte)return a(b,A,_);if(O===Yte)return f(b,A,_);if(ane[O])return g(b,A,_);if(O===Kte)return e(b,A,_);if(O===Wte)return n(b,A,_);if(O===Xte||O===ene||O===ine)return d(b,A,_);if(w){let N=w[O];if(!N){const M=Mte(b);M&&(N=w[M])}if(N)return N(b,A,_)}return!1}}function une({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:Lte,areArraysEqual:n?ku:zte,areDataViewsEqual:$te,areDatesEqual:Bte,areErrorsEqual:qte,areFunctionsEqual:Ite,areMapsEqual:n?E0(oD,ku):oD,areNumbersEqual:Ute,areObjectsEqual:n?ku:Vte,arePrimitiveWrappersEqual:Hte,areRegExpsEqual:Gte,areSetsEqual:n?E0(sD,ku):sD,areTypedArraysEqual:n?E0(Qh,ku):Qh,areUrlsEqual:Fte,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Gd(r.areArraysEqual),s=Gd(r.areMapsEqual),l=Gd(r.areObjectsEqual),c=Gd(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:s,areObjectsEqual:l,areSetsEqual:c})}return r}function cne(e){return function(t,n,r,a,s,l,c){return e(t,n,c)}}function fne({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(c,f){const{cache:d=e?new WeakMap:void 0,meta:m}=n();return t(c,f,{cache:d,equals:r,meta:m,strict:a})};if(e)return function(c,f){return t(c,f,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const s={cache:void 0,equals:r,meta:void 0,strict:a};return function(c,f){return t(c,f,s)}}const dne=Da();Da({strict:!0});Da({circular:!0});Da({circular:!0,strict:!0});Da({createInternalComparator:()=>ko});Da({strict:!0,createInternalComparator:()=>ko});Da({circular:!0,createInternalComparator:()=>ko});Da({circular:!0,createInternalComparator:()=>ko,strict:!0});function Da(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,s=une(e),l=lne(s),c=n?n(l):cne(l);return fne({circular:t,comparator:l,createState:r,equals:c,strict:a})}function hne(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function lD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(s){n<0&&(n=s),s-n>t?(e(s),n=-1):hne(a)};requestAnimationFrame(r)}function SS(e){"@babel/helpers - typeof";return SS=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},SS(e)}function pne(e){return gne(e)||vne(e)||yne(e)||mne()}function mne(){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 yne(e,t){if(e){if(typeof e=="string")return uD(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 uD(e,t)}}function uD(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 vne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gne(e){if(Array.isArray(e))return e}function xne(){var e={},t=function(){return null},n=!1,r=function a(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var l=s,c=pne(l),f=c[0],d=c.slice(1);if(typeof f=="number"){lD(a.bind(null,d),f);return}a(f),lD(a.bind(null,d));return}SS(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}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 cD(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 fD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cD(Object(n),!0).forEach(function(r){N$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N$(e,t,n){return t=bne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bne(e){var t=Sne(e,"string");return Mc(t)==="symbol"?t:String(t)}function Sne(e,t){if(Mc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var wne=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(s){return a.includes(s)})})},jne=function(t){return t},Ane=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Ju=function(t,n){return Object.keys(n).reduce(function(r,a){return fD(fD({},r),{},N$({},a,t(a,n[a])))},{})},dD=function(t,n,r){return t.map(function(a){return"".concat(Ane(a)," ").concat(n,"ms ").concat(r)}).join(",")};function One(e,t){return Ene(e)||Tne(e,t)||C$(e,t)||_ne()}function _ne(){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 Tne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Ene(e){if(Array.isArray(e))return e}function Nne(e){return Pne(e)||Mne(e)||C$(e)||Cne()}function Cne(){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 C$(e,t){if(e){if(typeof e=="string")return wS(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 wS(e,t)}}function Mne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Pne(e){if(Array.isArray(e))return wS(e)}function wS(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 Jh=1e-4,M$=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},P$=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},hD=function(t,n){return function(r){var a=M$(t,n);return P$(a,r)}},Rne=function(t,n){return function(r){var a=M$(t,n),s=[].concat(Nne(a.map(function(l,c){return l*c}).slice(1)),[0]);return P$(s,r)}},pD=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],s=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,s=0,l=1,c=1;break;case"ease":a=.25,s=.1,l=.25,c=1;break;case"ease-in":a=.42,s=0,l=1,c=1;break;case"ease-out":a=.42,s=0,l=.58,c=1;break;case"ease-in-out":a=0,s=0,l=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var d=f[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),m=One(d,4);a=m[0],s=m[1],l=m[2],c=m[3]}}}var y=hD(a,l),g=hD(s,c),S=Rne(a,l),w=function(A){return A>1?1:A<0?0:A},j=function(A){for(var _=A>1?1:A,T=_,C=0;C<8;++C){var O=y(T)-_,N=S(T);if(Math.abs(O-_)<Jh||N<Jh)return g(T);T=w(T-O/N)}return g(T)};return j.isStepper=!1,j},Dne=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,s=a===void 0?8:a,l=t.dt,c=l===void 0?17:l,f=function(m,y,g){var S=-(m-y)*r,w=g*s,j=g+(S-w)*c/1e3,b=g*c/1e3+m;return Math.abs(b-y)<Jh&&Math.abs(j)<Jh?[y,0]:[b,j]};return f.isStepper=!0,f.dt=c,f},kne=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 pD(a);case"spring":return Dne();default:if(a.split("(")[0]==="cubic-bezier")return pD(a)}return typeof a=="function"?a:null};function Pc(e){"@babel/helpers - typeof";return Pc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pc(e)}function mD(e){return $ne(e)||zne(e)||R$(e)||Lne()}function Lne(){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 zne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ne(e){if(Array.isArray(e))return AS(e)}function yD(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 on(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){jS(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jS(e,t,n){return t=Bne(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bne(e){var t=qne(e,"string");return Pc(t)==="symbol"?t:String(t)}function qne(e,t){if(Pc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ine(e,t){return Hne(e)||Vne(e,t)||R$(e,t)||Une()}function Une(){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 R$(e,t){if(e){if(typeof e=="string")return AS(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 AS(e,t)}}function AS(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 Vne(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Hne(e){if(Array.isArray(e))return e}var ep=function(t,n,r){return t+(n-t)*r},OS=function(t){var n=t.from,r=t.to;return n!==r},Gne=function e(t,n,r){var a=Ju(function(s,l){if(OS(l)){var c=t(l.from,l.to,l.velocity),f=Ine(c,2),d=f[0],m=f[1];return on(on({},l),{},{from:d,velocity:m})}return l},n);return r<1?Ju(function(s,l){return OS(l)?on(on({},l),{},{velocity:ep(l.velocity,a[s].velocity,r),from:ep(l.from,a[s].from,r)}):l},n):e(t,a,r-1)};const Fne=(function(e,t,n,r,a){var s=wne(e,t),l=s.reduce(function(b,A){return on(on({},b),{},jS({},A,[e[A],t[A]]))},{}),c=s.reduce(function(b,A){return on(on({},b),{},jS({},A,{from:e[A],velocity:0,to:t[A]}))},{}),f=-1,d,m,y=function(){return null},g=function(){return Ju(function(A,_){return _.from},c)},S=function(){return!Object.values(c).filter(OS).length},w=function(A){d||(d=A);var _=A-d,T=_/n.dt;c=Gne(n,c,T),a(on(on(on({},e),t),g())),d=A,S()||(f=requestAnimationFrame(y))},j=function(A){m||(m=A);var _=(A-m)/r,T=Ju(function(O,N){return ep.apply(void 0,mD(N).concat([n(_)]))},l);if(a(on(on(on({},e),t),T)),_<1)f=requestAnimationFrame(y);else{var C=Ju(function(O,N){return ep.apply(void 0,mD(N).concat([n(1)]))},l);a(on(on(on({},e),t),C))}};return y=n.isStepper?w:j,function(){return requestAnimationFrame(y),function(){cancelAnimationFrame(f)}}});function Zs(e){"@babel/helpers - typeof";return Zs=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},Zs(e)}var Kne=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function Yne(e,t){if(e==null)return{};var n=Xne(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Xne(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,s;for(s=0;s<r.length;s++)a=r[s],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function N0(e){return Jne(e)||Qne(e)||Zne(e)||Wne()}function Wne(){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 Zne(e,t){if(e){if(typeof e=="string")return _S(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 _S(e,t)}}function Qne(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jne(e){if(Array.isArray(e))return _S(e)}function _S(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 vD(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 Sr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vD(Object(n),!0).forEach(function(r){Vu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vu(e,t,n){return t=D$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ere(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,D$(r.key),r)}}function nre(e,t,n){return t&&tre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function D$(e){var t=rre(e,"string");return Zs(t)==="symbol"?t:String(t)}function rre(e,t){if(Zs(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zs(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ire(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 are(e){var t=ore();return function(){var r=tp(e),a;if(t){var s=tp(this).constructor;a=Reflect.construct(r,arguments,s)}else a=r.apply(this,arguments);return ES(this,a)}}function ES(e,t){if(t&&(Zs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NS(e)}function NS(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ore(){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 tp(e){return tp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tp(e)}var Cr=(function(e){ire(n,e);var t=are(n);function n(r,a){var s;ere(this,n),s=t.call(this,r,a);var l=s.props,c=l.isActive,f=l.attributeName,d=l.from,m=l.to,y=l.steps,g=l.children,S=l.duration;if(s.handleStyleChange=s.handleStyleChange.bind(NS(s)),s.changeStyle=s.changeStyle.bind(NS(s)),!c||S<=0)return s.state={style:{}},typeof g=="function"&&(s.state={style:m}),ES(s);if(y&&y.length)s.state={style:y[0].style};else if(d){if(typeof g=="function")return s.state={style:d},ES(s);s.state={style:f?Vu({},f,d):d}}else s.state={style:{}};return s}return nre(n,[{key:"componentDidMount",value:function(){var a=this.props,s=a.isActive,l=a.canBegin;this.mounted=!0,!(!s||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var s=this.props,l=s.isActive,c=s.canBegin,f=s.attributeName,d=s.shouldReAnimate,m=s.to,y=s.from,g=this.state.style;if(c){if(!l){var S={style:f?Vu({},f,m):m};this.state&&g&&(f&&g[f]!==m||!f&&g!==m)&&this.setState(S);return}if(!(dne(a.to,m)&&a.canBegin&&a.isActive)){var w=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var j=w||d?y:a.to;if(this.state&&g){var b={style:f?Vu({},f,j):j};(f&&g[f]!==j||!f&&g!==j)&&this.setState(b)}this.runAnimation(Sr(Sr({},this.props),{},{from:j,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 s=this,l=a.from,c=a.to,f=a.duration,d=a.easing,m=a.begin,y=a.onAnimationEnd,g=a.onAnimationStart,S=Fne(l,c,kne(d),f,this.changeStyle),w=function(){s.stopJSAnimation=S()};this.manager.start([g,m,w,f,y])}},{key:"runStepAnimation",value:function(a){var s=this,l=a.steps,c=a.begin,f=a.onAnimationStart,d=l[0],m=d.style,y=d.duration,g=y===void 0?0:y,S=function(j,b,A){if(A===0)return j;var _=b.duration,T=b.easing,C=T===void 0?"ease":T,O=b.style,N=b.properties,M=b.onAnimationEnd,R=A>0?l[A-1]:b,D=N||Object.keys(O);if(typeof C=="function"||C==="spring")return[].concat(N0(j),[s.runJSAnimation.bind(s,{from:R.style,to:O,duration:_,easing:C}),_]);var B=dD(D,_,C),I=Sr(Sr(Sr({},R.style),O),{},{transition:B});return[].concat(N0(j),[I,_,M]).filter(jne)};return this.manager.start([f].concat(N0(l.reduce(S,[m,Math.max(g,c)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=xne());var s=a.begin,l=a.duration,c=a.attributeName,f=a.to,d=a.easing,m=a.onAnimationStart,y=a.onAnimationEnd,g=a.steps,S=a.children,w=this.manager;if(this.unSubscribe=w.subscribe(this.handleStyleChange),typeof d=="function"||typeof S=="function"||d==="spring"){this.runJSAnimation(a);return}if(g.length>1){this.runStepAnimation(a);return}var j=c?Vu({},c,f):f,b=dD(Object.keys(j),l,d);w.start([m,s,Sr(Sr({},j),{},{transition:b}),l,y])}},{key:"render",value:function(){var a=this.props,s=a.children;a.begin;var l=a.duration;a.attributeName,a.easing;var c=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var f=Yne(a,Kne),d=P.Children.count(s),m=this.state.style;if(typeof s=="function")return s(m);if(!c||d===0||l<=0)return s;var y=function(S){var w=S.props,j=w.style,b=j===void 0?{}:j,A=w.className,_=P.cloneElement(S,Sr(Sr({},f),{},{style:Sr(Sr({},b),m),className:A}));return _};return d===1?y(P.Children.only(s)):q.createElement("div",null,P.Children.map(s,function(g){return y(g)}))}}]),n})(P.PureComponent);Cr.displayName="Animate";Cr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Cr.propTypes={from:Ze.oneOfType([Ze.object,Ze.string]),to:Ze.oneOfType([Ze.object,Ze.string]),attributeName:Ze.string,duration:Ze.number,begin:Ze.number,easing:Ze.oneOfType([Ze.string,Ze.func]),steps:Ze.arrayOf(Ze.shape({duration:Ze.number.isRequired,style:Ze.object.isRequired,easing:Ze.oneOfType([Ze.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Ze.func]),properties:Ze.arrayOf("string"),onAnimationEnd:Ze.func})),children:Ze.oneOfType([Ze.node,Ze.func]),isActive:Ze.bool,canBegin:Ze.bool,onAnimationEnd:Ze.func,shouldReAnimate:Ze.bool,onAnimationStart:Ze.func,onAnimationReStart:Ze.func};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 np(){return np=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},np.apply(this,arguments)}function sre(e,t){return fre(e)||cre(e,t)||ure(e,t)||lre()}function lre(){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 ure(e,t){if(e){if(typeof e=="string")return gD(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 gD(e,t)}}function gD(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 cre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function fre(e){if(Array.isArray(e))return e}function xD(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 bD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xD(Object(n),!0).forEach(function(r){dre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dre(e,t,n){return t=hre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hre(e){var t=pre(e,"string");return Rc(t)=="symbol"?t:t+""}function pre(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SD=function(t,n,r,a,s){var l=Math.min(Math.abs(r)/2,Math.abs(a)/2),c=a>=0?1:-1,f=r>=0?1:-1,d=a>=0&&r>=0||a<0&&r<0?1:0,m;if(l>0&&s instanceof Array){for(var y=[0,0,0,0],g=0,S=4;g<S;g++)y[g]=s[g]>l?l:s[g];m="M".concat(t,",").concat(n+c*y[0]),y[0]>0&&(m+="A ".concat(y[0],",").concat(y[0],",0,0,").concat(d,",").concat(t+f*y[0],",").concat(n)),m+="L ".concat(t+r-f*y[1],",").concat(n),y[1]>0&&(m+="A ".concat(y[1],",").concat(y[1],",0,0,").concat(d,`,
`).concat(t+r,",").concat(n+c*y[1])),m+="L ".concat(t+r,",").concat(n+a-c*y[2]),y[2]>0&&(m+="A ".concat(y[2],",").concat(y[2],",0,0,").concat(d,`,
`).concat(t+r-f*y[2],",").concat(n+a)),m+="L ".concat(t+f*y[3],",").concat(n+a),y[3]>0&&(m+="A ".concat(y[3],",").concat(y[3],",0,0,").concat(d,`,
`).concat(t,",").concat(n+a-c*y[3])),m+="Z"}else if(l>0&&s===+s&&s>0){var w=Math.min(l,s);m="M ".concat(t,",").concat(n+c*w,`
A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t+f*w,",").concat(n,`
L `).concat(t+r-f*w,",").concat(n,`
A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*w,`
L `).concat(t+r,",").concat(n+a-c*w,`
A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t+r-f*w,",").concat(n+a,`
L `).concat(t+f*w,",").concat(n+a,`
A `).concat(w,",").concat(w,",0,0,").concat(d,",").concat(t,",").concat(n+a-c*w," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return m},mre=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,s=n.x,l=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(s,s+c),m=Math.max(s,s+c),y=Math.min(l,l+f),g=Math.max(l,l+f);return r>=d&&r<=m&&a>=y&&a<=g}return!1},yre={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Vj=function(t){var n=bD(bD({},yre),t),r=P.useRef(),a=P.useState(-1),s=sre(a,2),l=s[0],c=s[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var C=r.current.getTotalLength();C&&c(C)}catch{}},[]);var f=n.x,d=n.y,m=n.width,y=n.height,g=n.radius,S=n.className,w=n.animationEasing,j=n.animationDuration,b=n.animationBegin,A=n.isAnimationActive,_=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||y!==+y||m===0||y===0)return null;var T=Pe("recharts-rectangle",S);return _?q.createElement(Cr,{canBegin:l>0,from:{width:m,height:y,x:f,y:d},to:{width:m,height:y,x:f,y:d},duration:j,animationEasing:w,isActive:_},function(C){var O=C.width,N=C.height,M=C.x,R=C.y;return q.createElement(Cr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:j,isActive:A,easing:w},q.createElement("path",np({},Se(n,!0),{className:T,d:SD(M,R,O,N,g),ref:r})))}):q.createElement("path",np({},Se(n,!0),{className:T,d:SD(f,d,m,y,g)}))},vre=["points","className","baseLinePoints","connectNulls"];function Cs(){return Cs=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},Cs.apply(this,arguments)}function gre(e,t){if(e==null)return{};var n=xre(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xre(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 wD(e){return jre(e)||wre(e)||Sre(e)||bre()}function bre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sre(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 wre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jre(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}var jD=function(t){return t&&t.x===+t.x&&t.y===+t.y},Are=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){jD(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),jD(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},ec=function(t,n){var r=Are(t);n&&(r=[r.reduce(function(s,l){return[].concat(wD(s),wD(l))},[])]);var a=r.map(function(s){return s.reduce(function(l,c,f){return"".concat(l).concat(f===0?"M":"L").concat(c.x,",").concat(c.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Ore=function(t,n,r){var a=ec(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(ec(n.reverse(),r).slice(1))},_re=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,s=t.connectNulls,l=gre(t,vre);if(!n||!n.length)return null;var c=Pe("recharts-polygon",r);if(a&&a.length){var f=l.stroke&&l.stroke!=="none",d=Ore(n,a,s);return q.createElement("g",{className:c},q.createElement("path",Cs({},Se(l,!0),{fill:d.slice(-1)==="Z"?l.fill:"none",stroke:"none",d})),f?q.createElement("path",Cs({},Se(l,!0),{fill:"none",d:ec(n,s)})):null,f?q.createElement("path",Cs({},Se(l,!0),{fill:"none",d:ec(a,s)})):null)}var m=ec(n,s);return q.createElement("path",Cs({},Se(l,!0),{fill:m.slice(-1)==="Z"?l.fill:"none",className:c,d:m}))};function MS(){return MS=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},MS.apply(this,arguments)}var sf=function(t){var n=t.cx,r=t.cy,a=t.r,s=t.className,l=Pe("recharts-dot",s);return n===+n&&r===+r&&a===+a?P.createElement("circle",MS({},Se(t,!1),wh(t),{className:l,cx:n,cy:r,r:a})):null};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)}var Tre=["x","y","top","left","width","height","className"];function PS(){return PS=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},PS.apply(this,arguments)}function AD(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 Ere(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AD(Object(n),!0).forEach(function(r){Nre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nre(e,t,n){return t=Cre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cre(e){var t=Mre(e,"string");return Dc(t)=="symbol"?t:t+""}function Mre(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)}function Pre(e,t){if(e==null)return{};var n=Rre(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rre(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 Dre=function(t,n,r,a,s,l){return"M".concat(t,",").concat(s,"v").concat(a,"M").concat(l,",").concat(n,"h").concat(r)},kre=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,s=a===void 0?0:a,l=t.top,c=l===void 0?0:l,f=t.left,d=f===void 0?0:f,m=t.width,y=m===void 0?0:m,g=t.height,S=g===void 0?0:g,w=t.className,j=Pre(t,Tre),b=Ere({x:r,y:s,top:c,left:d,width:y,height:S},j);return!ue(r)||!ue(s)||!ue(y)||!ue(S)||!ue(c)||!ue(d)?null:q.createElement("path",PS({},Se(b,!0),{className:Pe("recharts-cross",w),d:Dre(r,s,y,S,c,d)}))},C0,OD;function Lre(){if(OD)return C0;OD=1;var e=Jp(),t=Xz(),n=ti();function r(a,s){return a&&a.length?e(a,n(s,2),t):void 0}return C0=r,C0}var zre=Lre();const $re=rt(zre);var M0,_D;function Bre(){if(_D)return M0;_D=1;var e=Jp(),t=ti(),n=Wz();function r(a,s){return a&&a.length?e(a,t(s,2),n):void 0}return M0=r,M0}var qre=Bre();const Ire=rt(qre);var Ure=["cx","cy","angle","ticks","axisLine"],Vre=["ticks","tick","angle","tickFormatter","stroke"];function Qs(e){"@babel/helpers - typeof";return Qs=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},Qs(e)}function tc(){return tc=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},tc.apply(this,arguments)}function TD(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 to(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TD(Object(n),!0).forEach(function(r){rm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ED(e,t){if(e==null)return{};var n=Hre(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hre(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 Gre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ND(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,L$(r.key),r)}}function Fre(e,t,n){return t&&ND(e.prototype,t),n&&ND(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Kre(e,t,n){return t=rp(t),Yre(e,k$()?Reflect.construct(t,n||[],rp(e).constructor):t.apply(e,n))}function Yre(e,t){if(t&&(Qs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Xre(e)}function Xre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(k$=function(){return!!e})()}function rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}function Wre(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&&RS(e,t)}function RS(e,t){return RS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},RS(e,t)}function rm(e,t,n){return t=L$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L$(e){var t=Zre(e,"string");return Qs(t)=="symbol"?t:t+""}function Zre(e,t){if(Qs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var im=(function(e){function t(){return Gre(this,t),Kre(this,t,arguments)}return Wre(t,e),Fre(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,s=this.props,l=s.angle,c=s.cx,f=s.cy;return mt(c,f,a,l)}},{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,s=r.cy,l=r.angle,c=r.ticks,f=$re(c,function(m){return m.coordinate||0}),d=Ire(c,function(m){return m.coordinate||0});return{cx:a,cy:s,startAngle:l,endAngle:l,innerRadius:d.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,s=r.cy,l=r.angle,c=r.ticks,f=r.axisLine,d=ED(r,Ure),m=c.reduce(function(w,j){return[Math.min(w[0],j.coordinate),Math.max(w[1],j.coordinate)]},[1/0,-1/0]),y=mt(a,s,m[0],l),g=mt(a,s,m[1],l),S=to(to(to({},Se(d,!1)),{},{fill:"none"},Se(f,!1)),{},{x1:y.x,y1:y.y,x2:g.x,y2:g.y});return q.createElement("line",tc({className:"recharts-polar-radius-axis-line"},S))}},{key:"renderTicks",value:function(){var r=this,a=this.props,s=a.ticks,l=a.tick,c=a.angle,f=a.tickFormatter,d=a.stroke,m=ED(a,Vre),y=this.getTickTextAnchor(),g=Se(m,!1),S=Se(l,!1),w=s.map(function(j,b){var A=r.getTickValueCoord(j),_=to(to(to(to({textAnchor:y,transform:"rotate(".concat(90-c,", ").concat(A.x,", ").concat(A.y,")")},g),{},{stroke:"none",fill:d},S),{},{index:b},A),{},{payload:j});return q.createElement(qe,tc({className:Pe("recharts-polar-radius-axis-tick",A$(l)),key:"tick-".concat(j.coordinate)},Ao(r.props,j,b)),t.renderTickItem(l,_,f?f(j.value,b):j.value))});return q.createElement(qe,{className:"recharts-polar-radius-axis-ticks"},w)}},{key:"render",value:function(){var r=this.props,a=r.ticks,s=r.axisLine,l=r.tick;return!a||!a.length?null:q.createElement(qe,{className:Pe("recharts-polar-radius-axis",this.props.className)},s&&this.renderAxisLine(),l&&this.renderTicks(),Qt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,s){var l;return q.isValidElement(r)?l=q.cloneElement(r,a):_e(r)?l=r(a):l=q.createElement(Oo,tc({},a,{className:"recharts-polar-radius-axis-tick-value"}),s),l}}])})(P.PureComponent);rm(im,"displayName","PolarRadiusAxis");rm(im,"axisType","radiusAxis");rm(im,"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 Js(e){"@babel/helpers - typeof";return Js=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},Js(e)}function so(){return so=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},so.apply(this,arguments)}function CD(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 no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CD(Object(n),!0).forEach(function(r){am(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function MD(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,$$(r.key),r)}}function Jre(e,t,n){return t&&MD(e.prototype,t),n&&MD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function eie(e,t,n){return t=ip(t),tie(e,z$()?Reflect.construct(t,n||[],ip(e).constructor):t.apply(e,n))}function tie(e,t){if(t&&(Js(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return nie(e)}function nie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function z$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(z$=function(){return!!e})()}function ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}function rie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&DS(e,t)}function DS(e,t){return DS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},DS(e,t)}function am(e,t,n){return t=$$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $$(e){var t=iie(e,"string");return Js(t)=="symbol"?t:t+""}function iie(e,t){if(Js(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Js(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aie=Math.PI/180,PD=1e-5,om=(function(e){function t(){return Qre(this,t),eie(this,t,arguments)}return rie(t,e),Jre(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,s=a.cx,l=a.cy,c=a.radius,f=a.orientation,d=a.tickSize,m=d||8,y=mt(s,l,c,r.coordinate),g=mt(s,l,c+(f==="inner"?-1:1)*m,r.coordinate);return{x1:y.x,y1:y.y,x2:g.x,y2:g.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,s=Math.cos(-r.coordinate*aie),l;return s>PD?l=a==="outer"?"start":"end":s<-PD?l=a==="outer"?"end":"start":l="middle",l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,s=r.cy,l=r.radius,c=r.axisLine,f=r.axisLineType,d=no(no({},Se(this.props,!1)),{},{fill:"none"},Se(c,!1));if(f==="circle")return q.createElement(sf,so({className:"recharts-polar-angle-axis-line"},d,{cx:a,cy:s,r:l}));var m=this.props.ticks,y=m.map(function(g){return mt(a,s,l,g.coordinate)});return q.createElement(_re,so({className:"recharts-polar-angle-axis-line"},d,{points:y}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,s=a.ticks,l=a.tick,c=a.tickLine,f=a.tickFormatter,d=a.stroke,m=Se(this.props,!1),y=Se(l,!1),g=no(no({},m),{},{fill:"none"},Se(c,!1)),S=s.map(function(w,j){var b=r.getTickLineCoord(w),A=r.getTickTextAnchor(w),_=no(no(no({textAnchor:A},m),{},{stroke:"none",fill:d},y),{},{index:j,payload:w,x:b.x2,y:b.y2});return q.createElement(qe,so({className:Pe("recharts-polar-angle-axis-tick",A$(l)),key:"tick-".concat(w.coordinate)},Ao(r.props,w,j)),c&&q.createElement("line",so({className:"recharts-polar-angle-axis-tick-line"},g,b)),l&&t.renderTickItem(l,_,f?f(w.value,j):w.value))});return q.createElement(qe,{className:"recharts-polar-angle-axis-ticks"},S)}},{key:"render",value:function(){var r=this.props,a=r.ticks,s=r.radius,l=r.axisLine;return s<=0||!a||!a.length?null:q.createElement(qe,{className:Pe("recharts-polar-angle-axis",this.props.className)},l&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,s){var l;return q.isValidElement(r)?l=q.cloneElement(r,a):_e(r)?l=r(a):l=q.createElement(Oo,so({},a,{className:"recharts-polar-angle-axis-tick-value"}),s),l}}])})(P.PureComponent);am(om,"displayName","PolarAngleAxis");am(om,"axisType","angleAxis");am(om,"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 P0,RD;function oie(){if(RD)return P0;RD=1;var e=X4(),t=e(Object.getPrototypeOf,Object);return P0=t,P0}var R0,DD;function sie(){if(DD)return R0;DD=1;var e=Li(),t=oie(),n=zi(),r="[object Object]",a=Function.prototype,s=Object.prototype,l=a.toString,c=s.hasOwnProperty,f=l.call(Object);function d(m){if(!n(m)||e(m)!=r)return!1;var y=t(m);if(y===null)return!0;var g=c.call(y,"constructor")&&y.constructor;return typeof g=="function"&&g instanceof g&&l.call(g)==f}return R0=d,R0}var lie=sie();const uie=rt(lie);var D0,kD;function cie(){if(kD)return D0;kD=1;var e=Li(),t=zi(),n="[object Boolean]";function r(a){return a===!0||a===!1||t(a)&&e(a)==n}return D0=r,D0}var fie=cie();const die=rt(fie);function kc(e){"@babel/helpers - typeof";return kc=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},kc(e)}function ap(){return ap=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},ap.apply(this,arguments)}function hie(e,t){return vie(e)||yie(e,t)||mie(e,t)||pie()}function pie(){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 mie(e,t){if(e){if(typeof e=="string")return LD(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 LD(e,t)}}function LD(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 yie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function vie(e){if(Array.isArray(e))return e}function zD(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 $D(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zD(Object(n),!0).forEach(function(r){gie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gie(e,t,n){return t=xie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xie(e){var t=bie(e,"string");return kc(t)=="symbol"?t:t+""}function bie(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var BD=function(t,n,r,a,s){var l=r-a,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-l/2,",").concat(n+s),c+="L ".concat(t+r-l/2-a,",").concat(n+s),c+="L ".concat(t,",").concat(n," Z"),c},Sie={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},wie=function(t){var n=$D($D({},Sie),t),r=P.useRef(),a=P.useState(-1),s=hie(a,2),l=s[0],c=s[1];P.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&c(T)}catch{}},[]);var f=n.x,d=n.y,m=n.upperWidth,y=n.lowerWidth,g=n.height,S=n.className,w=n.animationEasing,j=n.animationDuration,b=n.animationBegin,A=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||y!==+y||g!==+g||m===0&&y===0||g===0)return null;var _=Pe("recharts-trapezoid",S);return A?q.createElement(Cr,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:d},to:{upperWidth:m,lowerWidth:y,height:g,x:f,y:d},duration:j,animationEasing:w,isActive:A},function(T){var C=T.upperWidth,O=T.lowerWidth,N=T.height,M=T.x,R=T.y;return q.createElement(Cr,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:j,easing:w},q.createElement("path",ap({},Se(n,!0),{className:_,d:BD(M,R,C,O,N),ref:r})))}):q.createElement("g",null,q.createElement("path",ap({},Se(n,!0),{className:_,d:BD(f,d,m,y,g)})))},jie=["option","shapeType","propTransformer","activeClassName","isActive"];function Lc(e){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(e)}function Aie(e,t){if(e==null)return{};var n=Oie(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oie(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 qD(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 op(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qD(Object(n),!0).forEach(function(r){_ie(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _ie(e,t,n){return t=Tie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tie(e){var t=Eie(e,"string");return Lc(t)=="symbol"?t:t+""}function Eie(e,t){if(Lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nie(e,t){return op(op({},t),e)}function Cie(e,t){return e==="symbols"}function ID(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return q.createElement(Vj,n);case"trapezoid":return q.createElement(wie,n);case"sector":return q.createElement(T$,n);case"symbols":if(Cie(t))return q.createElement(lj,n);break;default:return null}}function Mie(e){return P.isValidElement(e)?e.props:e}function B$(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?Nie:r,s=e.activeClassName,l=s===void 0?"recharts-active-shape":s,c=e.isActive,f=Aie(e,jie),d;if(P.isValidElement(t))d=P.cloneElement(t,op(op({},f),Mie(t)));else if(_e(t))d=t(f);else if(uie(t)&&!die(t)){var m=a(t,f);d=q.createElement(ID,{shapeType:n,elementProps:m})}else{var y=f;d=q.createElement(ID,{shapeType:n,elementProps:y})}return c?q.createElement(qe,{className:l},d):d}function sm(e,t){return t!=null&&"trapezoids"in e.props}function lm(e,t){return t!=null&&"sectors"in e.props}function zc(e,t){return t!=null&&"points"in e.props}function Pie(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,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&s}function Rie(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Die(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function kie(e,t){var n;return sm(e,t)?n=Pie:lm(e,t)?n=Rie:zc(e,t)&&(n=Die),n}function Lie(e,t){var n;return sm(e,t)?n="trapezoids":lm(e,t)?n="sectors":zc(e,t)&&(n="points"),n}function zie(e,t){if(sm(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(lm(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 zc(e,t)?t.payload:{}}function $ie(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=Lie(n,t),s=zie(n,t),l=r.filter(function(f,d){var m=_o(s,f),y=n.props[a].filter(function(w){var j=kie(n,t);return j(w,t)}),g=n.props[a].indexOf(y[y.length-1]),S=d===g;return m&&S}),c=r.indexOf(l[l.length-1]);return c}var lh;function el(e){"@babel/helpers - typeof";return el=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},el(e)}function Ms(){return Ms=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},Ms.apply(this,arguments)}function UD(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 ht(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UD(Object(n),!0).forEach(function(r){lr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,I$(r.key),r)}}function qie(e,t,n){return t&&VD(e.prototype,t),n&&VD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iie(e,t,n){return t=sp(t),Uie(e,q$()?Reflect.construct(t,n||[],sp(e).constructor):t.apply(e,n))}function Uie(e,t){if(t&&(el(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Vie(e)}function Vie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(q$=function(){return!!e})()}function sp(e){return sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},sp(e)}function Hie(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&&kS(e,t)}function kS(e,t){return kS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},kS(e,t)}function lr(e,t,n){return t=I$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I$(e){var t=Gie(e,"string");return el(t)=="symbol"?t:t+""}function Gie(e,t){if(el(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(el(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bi=(function(e){function t(n){var r;return Bie(this,t),r=Iie(this,t,[n]),lr(r,"pieRef",null),lr(r,"sectorRefs",[]),lr(r,"id",Po("recharts-pie-")),lr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),_e(a)&&a()}),lr(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),_e(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Hie(t,e),qie(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 s=this.props,l=s.label,c=s.labelLine,f=s.dataKey,d=s.valueKey,m=Se(this.props,!1),y=Se(l,!1),g=Se(c,!1),S=l&&l.offsetRadius||20,w=r.map(function(j,b){var A=(j.startAngle+j.endAngle)/2,_=mt(j.cx,j.cy,j.outerRadius+S,A),T=ht(ht(ht(ht({},m),j),{},{stroke:"none"},y),{},{index:b,textAnchor:t.getTextAnchor(_.x,j.cx)},_),C=ht(ht(ht(ht({},m),j),{},{fill:"none",stroke:j.fill},g),{},{index:b,points:[mt(j.cx,j.cy,j.outerRadius,A),_]}),O=f;return Ne(f)&&Ne(d)?O="value":Ne(f)&&(O=d),q.createElement(qe,{key:"label-".concat(j.startAngle,"-").concat(j.endAngle,"-").concat(j.midAngle,"-").concat(b)},c&&t.renderLabelLineItem(c,C,"line"),t.renderLabelItem(l,T,Pt(j,O)))});return q.createElement(qe,{className:"recharts-pie-labels"},w)}},{key:"renderSectorsStatically",value:function(r){var a=this,s=this.props,l=s.activeShape,c=s.blendStroke,f=s.inactiveShape;return r.map(function(d,m){if((d==null?void 0:d.startAngle)===0&&(d==null?void 0:d.endAngle)===0&&r.length!==1)return null;var y=a.isActiveIndex(m),g=f&&a.hasActiveIndex()?f:null,S=y?l:g,w=ht(ht({},d),{},{stroke:c?d.fill:d.stroke,tabIndex:-1});return q.createElement(qe,Ms({ref:function(b){b&&!a.sectorRefs.includes(b)&&a.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},Ao(a.props,d,m),{key:"sector-".concat(d==null?void 0:d.startAngle,"-").concat(d==null?void 0:d.endAngle,"-").concat(d.midAngle,"-").concat(m)}),q.createElement(B$,Ms({option:S,isActive:y,shapeType:"sector"},w)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,s=a.sectors,l=a.isAnimationActive,c=a.animationBegin,f=a.animationDuration,d=a.animationEasing,m=a.animationId,y=this.state,g=y.prevSectors,S=y.prevIsAnimationActive;return q.createElement(Cr,{begin:c,duration:f,isActive:l,easing:d,from:{t:0},to:{t:1},key:"pie-".concat(m,"-").concat(S),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(w){var j=w.t,b=[],A=s&&s[0],_=A.startAngle;return s.forEach(function(T,C){var O=g&&g[C],N=C>0?Gn(T,"paddingAngle",0):0;if(O){var M=Gt(O.endAngle-O.startAngle,T.endAngle-T.startAngle),R=ht(ht({},T),{},{startAngle:_+N,endAngle:_+M(j)+N});b.push(R),_=R.endAngle}else{var D=T.endAngle,B=T.startAngle,I=Gt(0,D-B),z=I(j),H=ht(ht({},T),{},{startAngle:_+N,endAngle:_+z+N});b.push(H),_=H.endAngle}}),q.createElement(qe,null,r.renderSectorsStatically(b))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(s){if(!s.altKey)switch(s.key){case"ArrowLeft":{var l=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[l].focus(),a.setState({sectorToFocus:l});break}case"ArrowRight":{var c=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[c].focus(),a.setState({sectorToFocus:c});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,s=r.isAnimationActive,l=this.state.prevSectors;return s&&a&&a.length&&(!l||!_o(l,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,s=a.hide,l=a.sectors,c=a.className,f=a.label,d=a.cx,m=a.cy,y=a.innerRadius,g=a.outerRadius,S=a.isAnimationActive,w=this.state.isAnimationFinished;if(s||!l||!l.length||!ue(d)||!ue(m)||!ue(y)||!ue(g))return null;var j=Pe("recharts-pie",c);return q.createElement(qe,{tabIndex:this.props.rootTabIndex,className:j,ref:function(A){r.pieRef=A}},this.renderSectors(),f&&this.renderLabels(l),Qt.renderCallByParent(this.props,null,!1),(!S||w)&&Fr.renderCallByParent(this.props,l,!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,s){if(q.isValidElement(r))return q.cloneElement(r,a);if(_e(r))return r(a);var l=Pe("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return q.createElement(So,Ms({},a,{key:s,type:"linear",className:l}))}},{key:"renderLabelItem",value:function(r,a,s){if(q.isValidElement(r))return q.cloneElement(r,a);var l=s;if(_e(r)&&(l=r(a),q.isValidElement(l)))return l;var c=Pe("recharts-pie-label-text",typeof r!="boolean"&&!_e(r)?r.className:"");return q.createElement(Oo,Ms({},a,{alignmentBaseline:"middle",className:c}),l)}}])})(P.PureComponent);lh=Bi;lr(Bi,"displayName","Pie");lr(Bi,"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:!Ma.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});lr(Bi,"parseDeltaAngle",function(e,t){var n=gn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});lr(Bi,"getRealPieData",function(e){var t=e.data,n=e.children,r=Se(e,!1),a=Fn(n,Fp);return t&&t.length?t.map(function(s,l){return ht(ht(ht({payload:s},r),s),a&&a[l]&&a[l].props)}):a&&a.length?a.map(function(s){return ht(ht({},r),s.props)}):[]});lr(Bi,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,s=t.height,l=j$(a,s),c=r+xn(e.cx,a,a/2),f=n+xn(e.cy,s,s/2),d=xn(e.innerRadius,l,0),m=xn(e.outerRadius,l,l*.8),y=e.maxRadius||Math.sqrt(a*a+s*s)/2;return{cx:c,cy:f,innerRadius:d,outerRadius:m,maxRadius:y}});lr(Bi,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?ht(ht({},t.type.defaultProps),t.props):t.props,a=lh.getRealPieData(r);if(!a||!a.length)return null;var s=r.cornerRadius,l=r.startAngle,c=r.endAngle,f=r.paddingAngle,d=r.dataKey,m=r.nameKey,y=r.valueKey,g=r.tooltipType,S=Math.abs(r.minAngle),w=lh.parseCoordinateOfPie(r,n),j=lh.parseDeltaAngle(l,c),b=Math.abs(j),A=d;Ne(d)&&Ne(y)?(Er(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),A="value"):Ne(d)&&(Er(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),A=y);var _=a.filter(function(R){return Pt(R,A,0)!==0}).length,T=(b>=360?_:_-1)*f,C=b-_*S-T,O=a.reduce(function(R,D){var B=Pt(D,A,0);return R+(ue(B)?B:0)},0),N;if(O>0){var M;N=a.map(function(R,D){var B=Pt(R,A,0),I=Pt(R,m,D),z=(ue(B)?B:0)/O,H;D?H=M.endAngle+gn(j)*f*(B!==0?1:0):H=l;var X=H+gn(j)*((B!==0?S:0)+z*C),Y=(H+X)/2,$=(w.innerRadius+w.outerRadius)/2,F=[{name:I,value:B,payload:R,dataKey:A,type:g}],Q=mt(w.cx,w.cy,$,Y);return M=ht(ht(ht({percent:z,cornerRadius:s,name:I,tooltipPayload:F,midAngle:Y,middleRadius:$,tooltipPosition:Q},R),w),{},{value:Pt(R,A),startAngle:H,endAngle:X,payload:R,paddingAngle:gn(j)*f}),M})}return ht(ht({},w),{},{sectors:N,data:a})});var k0,HD;function Fie(){if(HD)return k0;HD=1;var e=Math.ceil,t=Math.max;function n(r,a,s,l){for(var c=-1,f=t(e((a-r)/(s||1)),0),d=Array(f);f--;)d[l?f:++c]=r,r+=s;return d}return k0=n,k0}var L0,GD;function U$(){if(GD)return L0;GD=1;var e=fz(),t=1/0,n=17976931348623157e292;function r(a){if(!a)return a===0?a:0;if(a=e(a),a===t||a===-t){var s=a<0?-1:1;return s*n}return a===a?a:0}return L0=r,L0}var z0,FD;function Kie(){if(FD)return z0;FD=1;var e=Fie(),t=Gp(),n=U$();function r(a){return function(s,l,c){return c&&typeof c!="number"&&t(s,l,c)&&(l=c=void 0),s=n(s),l===void 0?(l=s,s=0):l=n(l),c=c===void 0?s<l?1:-1:n(c),e(s,l,c,a)}}return z0=r,z0}var $0,KD;function Yie(){if(KD)return $0;KD=1;var e=Kie(),t=e();return $0=t,$0}var Xie=Yie();const lp=rt(Xie);function $c(e){"@babel/helpers - typeof";return $c=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},$c(e)}function YD(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 XD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?YD(Object(n),!0).forEach(function(r){V$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V$(e,t,n){return t=Wie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wie(e){var t=Zie(e,"string");return $c(t)=="symbol"?t:t+""}function Zie(e,t){if($c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Qie=["Webkit","Moz","O","ms"],Jie=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),a=Qie.reduce(function(s,l){return XD(XD({},s),{},V$({},l+r,n))},{});return a[t]=n,a};function tl(e){"@babel/helpers - typeof";return tl=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},tl(e)}function up(){return up=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},up.apply(this,arguments)}function WD(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 B0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?WD(Object(n),!0).forEach(function(r){qn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ZD(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G$(r.key),r)}}function tae(e,t,n){return t&&ZD(e.prototype,t),n&&ZD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function nae(e,t,n){return t=cp(t),rae(e,H$()?Reflect.construct(t,n||[],cp(e).constructor):t.apply(e,n))}function rae(e,t){if(t&&(tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iae(e)}function iae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function H$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H$=function(){return!!e})()}function cp(e){return cp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cp(e)}function aae(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 qn(e,t,n){return t=G$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G$(e){var t=oae(e,"string");return tl(t)=="symbol"?t:t+""}function oae(e,t){if(tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sae=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,s=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=Zu().domain(lp(0,f)).range([s,s+l-c]),m=d.domain().map(function(y){return d(y)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(a),scale:d,scaleValues:m}},QD=function(t){return t.changedTouches&&!!t.changedTouches.length},nl=(function(e){function t(n){var r;return eae(this,t),r=nae(this,t,[n]),qn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),qn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),qn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,s=a.endIndex,l=a.onDragEnd,c=a.startIndex;l==null||l({endIndex:s,startIndex:c})}),r.detachDragEndListener()}),qn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),qn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),qn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),qn(r,"handleSlideDragStart",function(a){var s=QD(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return aae(t,e),tae(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,s=r.endX,l=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,m=d.length-1,y=Math.min(a,s),g=Math.max(a,s),S=t.getIndexInRange(l,y),w=t.getIndexInRange(l,g);return{startIndex:S-S%f,endIndex:w===m?m:w-w%f}}},{key:"getTextOfTick",value:function(r){var a=this.props,s=a.data,l=a.tickFormatter,c=a.dataKey,f=Pt(s[r],c,r);return _e(l)?l(f,r):f}},{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,s=a.slideMoveStartX,l=a.startX,c=a.endX,f=this.props,d=f.x,m=f.width,y=f.travellerWidth,g=f.startIndex,S=f.endIndex,w=f.onChange,j=r.pageX-s;j>0?j=Math.min(j,d+m-y-c,d+m-y-l):j<0&&(j=Math.max(j,d-l,d-c));var b=this.getIndex({startX:l+j,endX:c+j});(b.startIndex!==g||b.endIndex!==S)&&w&&w(b),this.setState({startX:l+j,endX:c+j,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var s=QD(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,s=a.brushMoveStartX,l=a.movingTravellerId,c=a.endX,f=a.startX,d=this.state[l],m=this.props,y=m.x,g=m.width,S=m.travellerWidth,w=m.onChange,j=m.gap,b=m.data,A={startX:this.state.startX,endX:this.state.endX},_=r.pageX-s;_>0?_=Math.min(_,y+g-S-d):_<0&&(_=Math.max(_,y-d)),A[l]=d+_;var T=this.getIndex(A),C=T.startIndex,O=T.endIndex,N=function(){var R=b.length-1;return l==="startX"&&(c>f?C%j===0:O%j===0)||c<f&&O===R||l==="endX"&&(c>f?O%j===0:C%j===0)||c>f&&O===R};this.setState(qn(qn({},l,d+_),"brushMoveStartX",r.pageX),function(){w&&N()&&w(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var s=this,l=this.state,c=l.scaleValues,f=l.startX,d=l.endX,m=this.state[a],y=c.indexOf(m);if(y!==-1){var g=y+r;if(!(g===-1||g>=c.length)){var S=c[g];a==="startX"&&S>=d||a==="endX"&&S<=f||this.setState(qn({},a,S),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,s=r.y,l=r.width,c=r.height,f=r.fill,d=r.stroke;return q.createElement("rect",{stroke:d,fill:f,x:a,y:s,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,s=r.y,l=r.width,c=r.height,f=r.data,d=r.children,m=r.padding,y=P.Children.only(d);return y?q.cloneElement(y,{x:a,y:s,width:l,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,a){var s,l,c=this,f=this.props,d=f.y,m=f.travellerWidth,y=f.height,g=f.traveller,S=f.ariaLabel,w=f.data,j=f.startIndex,b=f.endIndex,A=Math.max(r,this.props.x),_=B0(B0({},Se(this.props,!1)),{},{x:A,y:d,width:m,height:y}),T=S||"Min value: ".concat((s=w[j])===null||s===void 0?void 0:s.name,", Max value: ").concat((l=w[b])===null||l===void 0?void 0:l.name);return q.createElement(qe,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(O){["ArrowLeft","ArrowRight"].includes(O.key)&&(O.preventDefault(),O.stopPropagation(),c.handleTravellerMoveKeyboard(O.key==="ArrowRight"?1:-1,a))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,_))}},{key:"renderSlide",value:function(r,a){var s=this.props,l=s.y,c=s.height,f=s.stroke,d=s.travellerWidth,m=Math.min(r,a)+d,y=Math.max(Math.abs(a-r)-d,0);return q.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:m,y:l,width:y,height:c})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,s=r.endIndex,l=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,m=this.state,y=m.startX,g=m.endX,S=5,w={pointerEvents:"none",fill:d};return q.createElement(qe,{className:"recharts-brush-texts"},q.createElement(Oo,up({textAnchor:"end",verticalAnchor:"middle",x:Math.min(y,g)-S,y:l+c/2},w),this.getTextOfTick(a)),q.createElement(Oo,up({textAnchor:"start",verticalAnchor:"middle",x:Math.max(y,g)+f+S,y:l+c/2},w),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,a=r.data,s=r.className,l=r.children,c=r.x,f=r.y,d=r.width,m=r.height,y=r.alwaysShowText,g=this.state,S=g.startX,w=g.endX,j=g.isTextActive,b=g.isSlideMoving,A=g.isTravellerMoving,_=g.isTravellerFocused;if(!a||!a.length||!ue(c)||!ue(f)||!ue(d)||!ue(m)||d<=0||m<=0)return null;var T=Pe("recharts-brush",s),C=q.Children.count(l)===1,O=Jie("userSelect","none");return q.createElement(qe,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:O},this.renderBackground(),C&&this.renderPanorama(),this.renderSlide(S,w),this.renderTravellerLayer(S,"startX"),this.renderTravellerLayer(w,"endX"),(j||b||A||_||y)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,s=r.y,l=r.width,c=r.height,f=r.stroke,d=Math.floor(s+c/2)-1;return q.createElement(q.Fragment,null,q.createElement("rect",{x:a,y:s,width:l,height:c,fill:f,stroke:"none"}),q.createElement("line",{x1:a+1,y1:d,x2:a+l-1,y2:d,fill:"none",stroke:"#fff"}),q.createElement("line",{x1:a+1,y1:d+2,x2:a+l-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var s;return q.isValidElement(r)?s=q.cloneElement(r,a):_e(r)?s=r(a):s=t.renderDefaultTraveller(a),s}},{key:"getDerivedStateFromProps",value:function(r,a){var s=r.data,l=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,m=r.startIndex,y=r.endIndex;if(s!==a.prevData||d!==a.prevUpdateId)return B0({prevData:s,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l},s&&s.length?sae({data:s,width:l,x:c,travellerWidth:f,startIndex:m,endIndex:y}):{scale:null,scaleValues:null});if(a.scale&&(l!==a.prevWidth||c!==a.prevX||f!==a.prevTravellerWidth)){a.scale.range([c,c+l-f]);var g=a.scale.domain().map(function(S){return a.scale(S)});return{prevData:s,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,a){for(var s=r.length,l=0,c=s-1;c-l>1;){var f=Math.floor((l+c)/2);r[f]>a?c=f:l=f}return a>=r[c]?c:l}}])})(P.PureComponent);qn(nl,"displayName","Brush");qn(nl,"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 q0,JD;function lae(){if(JD)return q0;JD=1;var e=mj();function t(n,r){var a;return e(n,function(s,l,c){return a=r(s,l,c),!a}),!!a}return q0=t,q0}var I0,ek;function uae(){if(ek)return I0;ek=1;var e=U4(),t=ti(),n=lae(),r=Nn(),a=Gp();function s(l,c,f){var d=r(l)?e:n;return f&&a(l,c,f)&&(c=void 0),d(l,t(c,3))}return I0=s,I0}var cae=uae();const fae=rt(cae);var Kr=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},U0,tk;function dae(){if(tk)return U0;tk=1;var e=oz();function t(n,r,a){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:a,writable:!0}):n[r]=a}return U0=t,U0}var V0,nk;function hae(){if(nk)return V0;nk=1;var e=dae(),t=iz(),n=ti();function r(a,s){var l={};return s=n(s,3),t(a,function(c,f,d){e(l,f,s(c,f,d))}),l}return V0=r,V0}var pae=hae();const mae=rt(pae);var H0,rk;function yae(){if(rk)return H0;rk=1;function e(t,n){for(var r=-1,a=t==null?0:t.length;++r<a;)if(!n(t[r],r,t))return!1;return!0}return H0=e,H0}var G0,ik;function vae(){if(ik)return G0;ik=1;var e=mj();function t(n,r){var a=!0;return e(n,function(s,l,c){return a=!!r(s,l,c),a}),a}return G0=t,G0}var F0,ak;function gae(){if(ak)return F0;ak=1;var e=yae(),t=vae(),n=ti(),r=Nn(),a=Gp();function s(l,c,f){var d=r(l)?e:t;return f&&a(l,c,f)&&(c=void 0),d(l,n(c,3))}return F0=s,F0}var xae=gae();const F$=rt(xae);var bae=["x","y"];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 zS(){return zS=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},zS.apply(this,arguments)}function ok(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 Lu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ok(Object(n),!0).forEach(function(r){Sae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sae(e,t,n){return t=wae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wae(e){var t=jae(e,"string");return Bc(t)=="symbol"?t:t+""}function jae(e,t){if(Bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aae(e,t){if(e==null)return{};var n=Oae(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Oae(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 _ae(e,t){var n=e.x,r=e.y,a=Aae(e,bae),s="".concat(n),l=parseInt(s,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||a.height),m=parseInt(d,10),y="".concat(t.width||a.width),g=parseInt(y,10);return Lu(Lu(Lu(Lu(Lu({},t),a),l?{x:l}:{}),f?{y:f}:{}),{},{height:m,width:g,name:t.name,radius:t.radius})}function sk(e){return q.createElement(B$,zS({shapeType:"rectangle",propTransformer:_ae,activeClassName:"recharts-active-bar"},e))}var Tae=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 s=ue(r)||YG(r);return s?t(r,a):(s||Eo(),n)}},Eae=["value","background"],K$;function rl(e){"@babel/helpers - typeof";return rl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rl(e)}function Nae(e,t){if(e==null)return{};var n=Cae(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cae(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 fp(){return fp=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},fp.apply(this,arguments)}function lk(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 zt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lk(Object(n),!0).forEach(function(r){ba(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,X$(r.key),r)}}function Pae(e,t,n){return t&&uk(e.prototype,t),n&&uk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rae(e,t,n){return t=dp(t),Dae(e,Y$()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function Dae(e,t){if(t&&(rl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kae(e)}function kae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y$(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y$=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(e)}function Lae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&$S(e,t)}function $S(e,t){return $S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},$S(e,t)}function ba(e,t,n){return t=X$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X$(e){var t=zae(e,"string");return rl(t)=="symbol"?t:t+""}function zae(e,t){if(rl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var _a=(function(e){function t(){var n;Mae(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=Rae(this,t,[].concat(a)),ba(n,"state",{isAnimationFinished:!1}),ba(n,"id",Po("recharts-bar-")),ba(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),ba(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return Lae(t,e),Pae(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,s=this.props,l=s.shape,c=s.dataKey,f=s.activeIndex,d=s.activeBar,m=Se(this.props,!1);return r&&r.map(function(y,g){var S=g===f,w=S?d:l,j=zt(zt(zt({},m),y),{},{isActive:S,option:w,index:g,dataKey:c,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return q.createElement(qe,fp({className:"recharts-bar-rectangle"},Ao(a.props,y,g),{key:"rectangle-".concat(y==null?void 0:y.x,"-").concat(y==null?void 0:y.y,"-").concat(y==null?void 0:y.value,"-").concat(g)}),q.createElement(sk,j))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,s=a.data,l=a.layout,c=a.isAnimationActive,f=a.animationBegin,d=a.animationDuration,m=a.animationEasing,y=a.animationId,g=this.state.prevData;return q.createElement(Cr,{begin:f,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(y),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(S){var w=S.t,j=s.map(function(b,A){var _=g&&g[A];if(_){var T=Gt(_.x,b.x),C=Gt(_.y,b.y),O=Gt(_.width,b.width),N=Gt(_.height,b.height);return zt(zt({},b),{},{x:T(w),y:C(w),width:O(w),height:N(w)})}if(l==="horizontal"){var M=Gt(0,b.height),R=M(w);return zt(zt({},b),{},{y:b.y+b.height-R,height:R})}var D=Gt(0,b.width),B=D(w);return zt(zt({},b),{},{width:B})});return q.createElement(qe,null,r.renderRectanglesStatically(j))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,s=r.isAnimationActive,l=this.state.prevData;return s&&a&&a.length&&(!l||!_o(l,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,s=a.data,l=a.dataKey,c=a.activeIndex,f=Se(this.props.background,!1);return s.map(function(d,m){d.value;var y=d.background,g=Nae(d,Eae);if(!y)return null;var S=zt(zt(zt(zt(zt({},g),{},{fill:"#eee"},y),f),Ao(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:m,className:"recharts-bar-background-rectangle"});return q.createElement(sk,fp({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},S))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.data,c=s.xAxis,f=s.yAxis,d=s.layout,m=s.children,y=Fn(m,of);if(!y)return null;var g=d==="vertical"?l[0].height/2:l[0].width/2,S=function(b,A){var _=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:_,errorVal:Pt(b,A)}},w={clipPath:r?"url(#clipPath-".concat(a,")"):null};return q.createElement(qe,w,y.map(function(j){return q.cloneElement(j,{key:"error-bar-".concat(a,"-").concat(j.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,offset:g,dataPointFormatter:S})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,s=r.data,l=r.className,c=r.xAxis,f=r.yAxis,d=r.left,m=r.top,y=r.width,g=r.height,S=r.isAnimationActive,w=r.background,j=r.id;if(a||!s||!s.length)return null;var b=this.state.isAnimationFinished,A=Pe("recharts-bar",l),_=c&&c.allowDataOverflow,T=f&&f.allowDataOverflow,C=_||T,O=Ne(j)?this.id:j;return q.createElement(qe,{className:A},_||T?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat(O)},q.createElement("rect",{x:_?d:d-y/2,y:T?m:m-g/2,width:_?y:y*2,height:T?g:g*2}))):null,q.createElement(qe,{className:"recharts-bar-rectangles",clipPath:C?"url(#clipPath-".concat(O,")"):null},w?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(C,O),(!S||b)&&Fr.renderCallByParent(this.props,s))}}],[{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}}])})(P.PureComponent);K$=_a;ba(_a,"displayName","Bar");ba(_a,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ma.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});ba(_a,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,s=e.xAxis,l=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,y=e.displayedData,g=e.offset,S=lee(r,n);if(!S)return null;var w=t.layout,j=n.type.defaultProps,b=j!==void 0?zt(zt({},j),n.props):n.props,A=b.dataKey,_=b.children,T=b.minPointSize,C=w==="horizontal"?l:s,O=d?C.scale.domain():null,N=mee({numericAxis:C}),M=Fn(_,Fp),R=y.map(function(D,B){var I,z,H,X,Y,$;d?I=uee(d[m+B],O):(I=Pt(D,A),Array.isArray(I)||(I=[N,I]));var F=Tae(T,K$.defaultProps.minPointSize)(I[1],B);if(w==="horizontal"){var Q,ie=[l.scale(I[0]),l.scale(I[1])],se=ie[0],L=ie[1];z=zR({axis:s,ticks:c,bandSize:a,offset:S.offset,entry:D,index:B}),H=(Q=L??se)!==null&&Q!==void 0?Q:void 0,X=S.size;var G=se-L;if(Y=Number.isNaN(G)?0:G,$={x:z,y:l.y,width:X,height:l.height},Math.abs(F)>0&&Math.abs(Y)<Math.abs(F)){var re=gn(Y||F)*(Math.abs(F)-Math.abs(Y));H-=re,Y+=re}}else{var fe=[s.scale(I[0]),s.scale(I[1])],ve=fe[0],je=fe[1];if(z=ve,H=zR({axis:l,ticks:f,bandSize:a,offset:S.offset,entry:D,index:B}),X=je-ve,Y=S.size,$={x:s.x,y:H,width:s.width,height:Y},Math.abs(F)>0&&Math.abs(X)<Math.abs(F)){var ze=gn(X||F)*(Math.abs(F)-Math.abs(X));X+=ze}}return zt(zt(zt({},D),{},{x:z,y:H,width:X,height:Y,value:d?I:I[1],payload:D,background:$},M&&M[B]&&M[B].props),{},{tooltipPayload:[S$(n,D)],tooltipPosition:{x:z+X/2,y:H+Y/2}})});return zt({data:R,layout:w},g)});function qc(e){"@babel/helpers - typeof";return qc=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},qc(e)}function $ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ck(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,W$(r.key),r)}}function Bae(e,t,n){return t&&ck(e.prototype,t),n&&ck(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fk(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 jr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fk(Object(n),!0).forEach(function(r){um(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function um(e,t,n){return t=W$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W$(e){var t=qae(e,"string");return qc(t)=="symbol"?t:t+""}function qae(e,t){if(qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Hj=function(t,n,r,a,s){var l=t.width,c=t.height,f=t.layout,d=t.children,m=Object.keys(n),y={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},g=!!In(d,_a);return m.reduce(function(S,w){var j=n[w],b=j.orientation,A=j.domain,_=j.padding,T=_===void 0?{}:_,C=j.mirror,O=j.reversed,N="".concat(b).concat(C?"Mirror":""),M,R,D,B,I;if(j.type==="number"&&(j.padding==="gap"||j.padding==="no-gap")){var z=A[1]-A[0],H=1/0,X=j.categoricalDomain.sort(ZG);if(X.forEach(function(fe,ve){ve>0&&(H=Math.min((fe||0)-(X[ve-1]||0),H))}),Number.isFinite(H)){var Y=H/z,$=j.layout==="vertical"?r.height:r.width;if(j.padding==="gap"&&(M=Y*$/2),j.padding==="no-gap"){var F=xn(t.barCategoryGap,Y*$),Q=Y*$/2;M=Q-F-(Q-F)/$*F}}}a==="xAxis"?R=[r.left+(T.left||0)+(M||0),r.left+r.width-(T.right||0)-(M||0)]:a==="yAxis"?R=f==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+(M||0),r.top+r.height-(T.bottom||0)-(M||0)]:R=j.range,O&&(R=[R[1],R[0]]);var ie=v$(j,s,g),se=ie.scale,L=ie.realScaleType;se.domain(A).range(R),g$(se);var G=x$(se,jr(jr({},j),{},{realScaleType:L}));a==="xAxis"?(I=b==="top"&&!C||b==="bottom"&&C,D=r.left,B=y[N]-I*j.height):a==="yAxis"&&(I=b==="left"&&!C||b==="right"&&C,D=y[N]-I*j.width,B=r.top);var re=jr(jr(jr({},j),G),{},{realScaleType:L,x:D,y:B,scale:se,width:a==="xAxis"?r.width:j.width,height:a==="yAxis"?r.height:j.height});return re.bandSize=Xh(re,G),!j.hide&&a==="xAxis"?y[N]+=(I?-1:1)*re.height:j.hide||(y[N]+=(I?-1:1)*re.width),jr(jr({},S),{},um({},w,re))},{})},Z$=function(t,n){var r=t.x,a=t.y,s=n.x,l=n.y;return{x:Math.min(r,s),y:Math.min(a,l),width:Math.abs(s-r),height:Math.abs(l-a)}},Iae=function(t){var n=t.x1,r=t.y1,a=t.x2,s=t.y2;return Z$({x:n,y:r},{x:a,y:s})},Q$=(function(){function e(t){$ae(this,e),this.scale=t}return Bae(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,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(a){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],s=r[r.length-1];return a<=s?n>=a&&n<=s:n>=s&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])})();um(Q$,"EPS",1e-4);var Gj=function(t){var n=Object.keys(t).reduce(function(r,a){return jr(jr({},r),{},um({},a,Q$.create(t[a])))},{});return jr(jr({},n),{},{apply:function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.bandAware,c=s.position;return mae(a,function(f,d){return n[d].apply(f,{bandAware:l,position:c})})},isInRange:function(a){return F$(a,function(s,l){return n[l].isInRange(s)})}})};function Uae(e){return(e%180+180)%180}var Vae=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=Uae(a),l=s*Math.PI/180,c=Math.atan(r/n),f=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},K0,dk;function Hae(){if(dk)return K0;dk=1;var e=ti(),t=ef(),n=Vp();function r(a){return function(s,l,c){var f=Object(s);if(!t(s)){var d=e(l,3);s=n(s),l=function(y){return d(f[y],y,f)}}var m=a(s,l,c);return m>-1?f[d?s[m]:m]:void 0}}return K0=r,K0}var Y0,hk;function Gae(){if(hk)return Y0;hk=1;var e=U$();function t(n){var r=e(n),a=r%1;return r===r?a?r-a:r:0}return Y0=t,Y0}var X0,pk;function Fae(){if(pk)return X0;pk=1;var e=J4(),t=ti(),n=Gae(),r=Math.max;function a(s,l,c){var f=s==null?0:s.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(s,t(l,3),d)}return X0=a,X0}var W0,mk;function Kae(){if(mk)return W0;mk=1;var e=Hae(),t=Fae(),n=e(t);return W0=n,W0}var Yae=Kae();const Xae=rt(Yae);var Wae=p4();const Zae=rt(Wae);var Qae=Zae(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("")}),Fj=P.createContext(void 0),Kj=P.createContext(void 0),J$=P.createContext(void 0),eB=P.createContext({}),tB=P.createContext(void 0),nB=P.createContext(0),rB=P.createContext(0),yk=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,s=n.offset,l=t.clipPathId,c=t.children,f=t.width,d=t.height,m=Qae(s);return q.createElement(Fj.Provider,{value:r},q.createElement(Kj.Provider,{value:a},q.createElement(eB.Provider,{value:s},q.createElement(J$.Provider,{value:m},q.createElement(tB.Provider,{value:l},q.createElement(nB.Provider,{value:d},q.createElement(rB.Provider,{value:f},c)))))))},Jae=function(){return P.useContext(tB)},iB=function(t){var n=P.useContext(Fj);n==null&&Eo();var r=n[t];return r==null&&Eo(),r},eoe=function(){var t=P.useContext(Fj);return va(t)},toe=function(){var t=P.useContext(Kj),n=Xae(t,function(r){return F$(r.domain,Number.isFinite)});return n||va(t)},aB=function(t){var n=P.useContext(Kj);n==null&&Eo();var r=n[t];return r==null&&Eo(),r},noe=function(){var t=P.useContext(J$);return t},roe=function(){return P.useContext(eB)},Yj=function(){return P.useContext(rB)},Xj=function(){return P.useContext(nB)};function il(e){"@babel/helpers - typeof";return il=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},il(e)}function ioe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aoe(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,sB(r.key),r)}}function ooe(e,t,n){return t&&aoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function soe(e,t,n){return t=hp(t),loe(e,oB()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function loe(e,t){if(t&&(il(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uoe(e)}function uoe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(oB=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function coe(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&&BS(e,t)}function BS(e,t){return BS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},BS(e,t)}function vk(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 gk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vk(Object(n),!0).forEach(function(r){Wj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wj(e,t,n){return t=sB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sB(e){var t=foe(e,"string");return il(t)=="symbol"?t:t+""}function foe(e,t){if(il(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(il(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function doe(e,t){return yoe(e)||moe(e,t)||poe(e,t)||hoe()}function hoe(){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 poe(e,t){if(e){if(typeof e=="string")return xk(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 xk(e,t)}}function xk(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 moe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function yoe(e){if(Array.isArray(e))return e}function qS(){return qS=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},qS.apply(this,arguments)}var voe=function(t,n){var r;return q.isValidElement(t)?r=q.cloneElement(t,n):_e(t)?r=t(n):r=q.createElement("line",qS({},n,{className:"recharts-reference-line-line"})),r},goe=function(t,n,r,a,s,l,c,f,d){var m=s.x,y=s.y,g=s.width,S=s.height;if(r){var w=d.y,j=t.y.apply(w,{position:l});if(Kr(d,"discard")&&!t.y.isInRange(j))return null;var b=[{x:m+g,y:j},{x:m,y:j}];return f==="left"?b.reverse():b}if(n){var A=d.x,_=t.x.apply(A,{position:l});if(Kr(d,"discard")&&!t.x.isInRange(_))return null;var T=[{x:_,y:y+S},{x:_,y}];return c==="top"?T.reverse():T}if(a){var C=d.segment,O=C.map(function(N){return t.apply(N,{position:l})});return Kr(d,"discard")&&fae(O,function(N){return!t.isInRange(N)})?null:O}return null};function xoe(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,s=e.yAxisId,l=e.shape,c=e.className,f=e.alwaysShow,d=Jae(),m=iB(a),y=aB(s),g=noe();if(!d||!g)return null;Er(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var S=Gj({x:m.scale,y:y.scale}),w=Ft(t),j=Ft(n),b=r&&r.length===2,A=goe(S,w,j,b,g,e.position,m.orientation,y.orientation,e);if(!A)return null;var _=doe(A,2),T=_[0],C=T.x,O=T.y,N=_[1],M=N.x,R=N.y,D=Kr(e,"hidden")?"url(#".concat(d,")"):void 0,B=gk(gk({clipPath:D},Se(e,!0)),{},{x1:C,y1:O,x2:M,y2:R});return q.createElement(qe,{className:Pe("recharts-reference-line",c)},voe(l,B),Qt.renderCallByParent(e,Iae({x1:C,y1:O,x2:M,y2:R})))}var Zj=(function(e){function t(){return ioe(this,t),soe(this,t,arguments)}return coe(t,e),ooe(t,[{key:"render",value:function(){return q.createElement(xoe,this.props)}}])})(q.Component);Wj(Zj,"displayName","ReferenceLine");Wj(Zj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});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)}function al(e){"@babel/helpers - typeof";return al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},al(e)}function bk(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 Sk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bk(Object(n),!0).forEach(function(r){cm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function boe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Soe(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,uB(r.key),r)}}function woe(e,t,n){return t&&Soe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function joe(e,t,n){return t=pp(t),Aoe(e,lB()?Reflect.construct(t,n||[],pp(e).constructor):t.apply(e,n))}function Aoe(e,t){if(t&&(al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ooe(e)}function Ooe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function lB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(lB=function(){return!!e})()}function pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pp(e)}function _oe(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&&US(e,t)}function US(e,t){return US=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},US(e,t)}function cm(e,t,n){return t=uB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uB(e){var t=Toe(e,"string");return al(t)=="symbol"?t:t+""}function Toe(e,t){if(al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Eoe=function(t){var n=t.x,r=t.y,a=t.xAxis,s=t.yAxis,l=Gj({x:a.scale,y:s.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return Kr(t,"discard")&&!l.isInRange(c)?null:c},fm=(function(e){function t(){return boe(this,t),joe(this,t,arguments)}return _oe(t,e),woe(t,[{key:"render",value:function(){var r=this.props,a=r.x,s=r.y,l=r.r,c=r.alwaysShow,f=r.clipPathId,d=Ft(a),m=Ft(s);if(Er(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var y=Eoe(this.props);if(!y)return null;var g=y.x,S=y.y,w=this.props,j=w.shape,b=w.className,A=Kr(this.props,"hidden")?"url(#".concat(f,")"):void 0,_=Sk(Sk({clipPath:A},Se(this.props,!0)),{},{cx:g,cy:S});return q.createElement(qe,{className:Pe("recharts-reference-dot",b)},t.renderDot(j,_),Qt.renderCallByParent(this.props,{x:g-l,y:S-l,width:2*l,height:2*l}))}}])})(q.Component);cm(fm,"displayName","ReferenceDot");cm(fm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});cm(fm,"renderDot",function(e,t){var n;return q.isValidElement(e)?n=q.cloneElement(e,t):_e(e)?n=e(t):n=q.createElement(sf,IS({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function VS(){return VS=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},VS.apply(this,arguments)}function ol(e){"@babel/helpers - typeof";return ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ol(e)}function wk(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 jk(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?wk(Object(n),!0).forEach(function(r){dm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Noe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Coe(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,fB(r.key),r)}}function Moe(e,t,n){return t&&Coe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Poe(e,t,n){return t=mp(t),Roe(e,cB()?Reflect.construct(t,n||[],mp(e).constructor):t.apply(e,n))}function Roe(e,t){if(t&&(ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Doe(e)}function Doe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cB=function(){return!!e})()}function mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mp(e)}function koe(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&&HS(e,t)}function HS(e,t){return HS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},HS(e,t)}function dm(e,t,n){return t=fB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fB(e){var t=Loe(e,"string");return ol(t)=="symbol"?t:t+""}function Loe(e,t){if(ol(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ol(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zoe=function(t,n,r,a,s){var l=s.x1,c=s.x2,f=s.y1,d=s.y2,m=s.xAxis,y=s.yAxis;if(!m||!y)return null;var g=Gj({x:m.scale,y:y.scale}),S={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},w={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:a?g.y.apply(d,{position:"end"}):g.y.rangeMax};return Kr(s,"discard")&&(!g.isInRange(S)||!g.isInRange(w))?null:Z$(S,w)},hm=(function(e){function t(){return Noe(this,t),Poe(this,t,arguments)}return koe(t,e),Moe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,s=r.x2,l=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,m=r.clipPathId;Er(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var y=Ft(a),g=Ft(s),S=Ft(l),w=Ft(c),j=this.props.shape;if(!y&&!g&&!S&&!w&&!j)return null;var b=zoe(y,g,S,w,this.props);if(!b&&!j)return null;var A=Kr(this.props,"hidden")?"url(#".concat(m,")"):void 0;return q.createElement(qe,{className:Pe("recharts-reference-area",f)},t.renderRect(j,jk(jk({clipPath:A},Se(this.props,!0)),b)),Qt.renderCallByParent(this.props,b))}}])})(q.Component);dm(hm,"displayName","ReferenceArea");dm(hm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});dm(hm,"renderRect",function(e,t){var n;return q.isValidElement(e)?n=q.cloneElement(e,t):_e(e)?n=e(t):n=q.createElement(Vj,VS({},t,{className:"recharts-reference-area-rect"})),n});function dB(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 $oe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Vae(r,n)}function Boe(e,t,n){var r=n==="width",a=e.x,s=e.y,l=e.width,c=e.height;return t===1?{start:r?a:s,end:r?a+l:s+c}:{start:r?a+l:s+c,end:r?a:s}}function yp(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-a)<=0}function qoe(e,t){return dB(e,t+1)}function Ioe(e,t,n,r,a){for(var s=(r||[]).slice(),l=t.start,c=t.end,f=0,d=1,m=l,y=function(){var w=r==null?void 0:r[f];if(w===void 0)return{v:dB(r,d)};var j=f,b,A=function(){return b===void 0&&(b=n(w,j)),b},_=w.coordinate,T=f===0||yp(e,_,A,m,c);T||(f=0,m=l,d+=1),T&&(m=_+e*(A()/2+a),f+=d)},g;d<=s.length;)if(g=y(),g)return g.v;return[]}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 Ak(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 hn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ak(Object(n),!0).forEach(function(r){Uoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ak(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uoe(e,t,n){return t=Voe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Voe(e){var t=Hoe(e,"string");return Ic(t)=="symbol"?t:t+""}function Hoe(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Goe(e,t,n,r,a){for(var s=(r||[]).slice(),l=s.length,c=t.start,f=t.end,d=function(g){var S=s[g],w,j=function(){return w===void 0&&(w=n(S,g)),w};if(g===l-1){var b=e*(S.coordinate+e*j()/2-f);s[g]=S=hn(hn({},S),{},{tickCoord:b>0?S.coordinate-b*e:S.coordinate})}else s[g]=S=hn(hn({},S),{},{tickCoord:S.coordinate});var A=yp(e,S.tickCoord,j,c,f);A&&(f=S.tickCoord-e*(j()/2+a),s[g]=hn(hn({},S),{},{isShow:!0}))},m=l-1;m>=0;m--)d(m);return s}function Foe(e,t,n,r,a,s){var l=(r||[]).slice(),c=l.length,f=t.start,d=t.end;if(s){var m=r[c-1],y=n(m,c-1),g=e*(m.coordinate+e*y/2-d);l[c-1]=m=hn(hn({},m),{},{tickCoord:g>0?m.coordinate-g*e:m.coordinate});var S=yp(e,m.tickCoord,function(){return y},f,d);S&&(d=m.tickCoord-e*(y/2+a),l[c-1]=hn(hn({},m),{},{isShow:!0}))}for(var w=s?c-1:c,j=function(_){var T=l[_],C,O=function(){return C===void 0&&(C=n(T,_)),C};if(_===0){var N=e*(T.coordinate-e*O()/2-f);l[_]=T=hn(hn({},T),{},{tickCoord:N<0?T.coordinate-N*e:T.coordinate})}else l[_]=T=hn(hn({},T),{},{tickCoord:T.coordinate});var M=yp(e,T.tickCoord,O,f,d);M&&(f=T.tickCoord+e*(O()/2+a),l[_]=hn(hn({},T),{},{isShow:!0}))},b=0;b<w;b++)j(b);return l}function Qj(e,t,n){var r=e.tick,a=e.ticks,s=e.viewBox,l=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,m=e.unit,y=e.angle;if(!a||!a.length||!r)return[];if(ue(f)||Ma.isSsr)return qoe(a,typeof f=="number"&&ue(f)?f:0);var g=[],S=c==="top"||c==="bottom"?"width":"height",w=m&&S==="width"?Wu(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},j=function(T,C){var O=_e(d)?d(T.value,C):T.value;return S==="width"?$oe(Wu(O,{fontSize:t,letterSpacing:n}),w,y):Wu(O,{fontSize:t,letterSpacing:n})[S]},b=a.length>=2?gn(a[1].coordinate-a[0].coordinate):1,A=Boe(s,b,S);return f==="equidistantPreserveStart"?Ioe(b,A,j,a,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Foe(b,A,j,a,l,f==="preserveStartEnd"):g=Goe(b,A,j,a,l),g.filter(function(_){return _.isShow}))}var Koe=["viewBox"],Yoe=["viewBox"],Xoe=["ticks"];function sl(e){"@babel/helpers - typeof";return sl=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},sl(e)}function Ps(){return Ps=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},Ps.apply(this,arguments)}function Ok(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 Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ok(Object(n),!0).forEach(function(r){Jj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ok(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z0(e,t){if(e==null)return{};var n=Woe(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Woe(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 Zoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _k(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,pB(r.key),r)}}function Qoe(e,t,n){return t&&_k(e.prototype,t),n&&_k(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Joe(e,t,n){return t=vp(t),ese(e,hB()?Reflect.construct(t,n||[],vp(e).constructor):t.apply(e,n))}function ese(e,t){if(t&&(sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tse(e)}function tse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hB=function(){return!!e})()}function vp(e){return vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vp(e)}function nse(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&&GS(e,t)}function GS(e,t){return GS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},GS(e,t)}function Jj(e,t,n){return t=pB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pB(e){var t=rse(e,"string");return sl(t)=="symbol"?t:t+""}function rse(e,t){if(sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var El=(function(e){function t(n){var r;return Zoe(this,t),r=Joe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return nse(t,e),Qoe(t,[{key:"shouldComponentUpdate",value:function(r,a){var s=r.viewBox,l=Z0(r,Koe),c=this.props,f=c.viewBox,d=Z0(c,Yoe);return!ks(s,f)||!ks(l,d)||!ks(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,s=a.x,l=a.y,c=a.width,f=a.height,d=a.orientation,m=a.tickSize,y=a.mirror,g=a.tickMargin,S,w,j,b,A,_,T=y?-1:1,C=r.tickSize||m,O=ue(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":S=w=r.coordinate,b=l+ +!y*f,j=b-T*C,_=j-T*g,A=O;break;case"left":j=b=r.coordinate,w=s+ +!y*c,S=w-T*C,A=S-T*g,_=O;break;case"right":j=b=r.coordinate,w=s+ +y*c,S=w+T*C,A=S+T*g,_=O;break;default:S=w=r.coordinate,b=l+ +y*f,j=b+T*C,_=j+T*g,A=O;break}return{line:{x1:S,y1:j,x2:w,y2:b},tick:{x:A,y:_}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,s=r.mirror,l;switch(a){case"left":l=s?"start":"end";break;case"right":l=s?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,s=r.mirror,l="end";switch(a){case"left":case"right":l="middle";break;case"top":l=s?"start":"end";break;default:l=s?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,s=r.y,l=r.width,c=r.height,f=r.orientation,d=r.mirror,m=r.axisLine,y=Ut(Ut(Ut({},Se(this.props,!1)),Se(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!d||f==="bottom"&&d);y=Ut(Ut({},y),{},{x1:a,y1:s+g*c,x2:a+l,y2:s+g*c})}else{var S=+(f==="left"&&!d||f==="right"&&d);y=Ut(Ut({},y),{},{x1:a+S*l,y1:s,x2:a+S*l,y2:s+c})}return q.createElement("line",Ps({},y,{className:Pe("recharts-cartesian-axis-line",Gn(m,"className"))}))}},{key:"renderTicks",value:function(r,a,s){var l=this,c=this.props,f=c.tickLine,d=c.stroke,m=c.tick,y=c.tickFormatter,g=c.unit,S=Qj(Ut(Ut({},this.props),{},{ticks:r}),a,s),w=this.getTickTextAnchor(),j=this.getTickVerticalAnchor(),b=Se(this.props,!1),A=Se(m,!1),_=Ut(Ut({},b),{},{fill:"none"},Se(f,!1)),T=S.map(function(C,O){var N=l.getTickLineCoord(C),M=N.line,R=N.tick,D=Ut(Ut(Ut(Ut({textAnchor:w,verticalAnchor:j},b),{},{stroke:"none",fill:d},A),R),{},{index:O,payload:C,visibleTicksCount:S.length,tickFormatter:y});return q.createElement(qe,Ps({className:"recharts-cartesian-axis-tick",key:"tick-".concat(C.value,"-").concat(C.coordinate,"-").concat(C.tickCoord)},Ao(l.props,C,O)),f&&q.createElement("line",Ps({},_,M,{className:Pe("recharts-cartesian-axis-tick-line",Gn(f,"className"))})),m&&t.renderTickItem(m,D,"".concat(_e(y)?y(C.value,O):C.value).concat(g||"")))});return q.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,a=this.props,s=a.axisLine,l=a.width,c=a.height,f=a.ticksGenerator,d=a.className,m=a.hide;if(m)return null;var y=this.props,g=y.ticks,S=Z0(y,Xoe),w=g;return _e(f)&&(w=g&&g.length>0?f(this.props):f(S)),l<=0||c<=0||!w||!w.length?null:q.createElement(qe,{className:Pe("recharts-cartesian-axis",d),ref:function(b){r.layerReference=b}},s&&this.renderAxisLine(),this.renderTicks(w,this.state.fontSize,this.state.letterSpacing),Qt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,s){var l,c=Pe(a.className,"recharts-cartesian-axis-tick-value");return q.isValidElement(r)?l=q.cloneElement(r,Ut(Ut({},a),{},{className:c})):_e(r)?l=r(Ut(Ut({},a),{},{className:c})):l=q.createElement(Oo,Ps({},a,{className:"recharts-cartesian-axis-tick-value"}),s),l}}])})(P.Component);Jj(El,"displayName","CartesianAxis");Jj(El,"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 ise=["x1","y1","x2","y2","key"],ase=["offset"];function No(e){"@babel/helpers - typeof";return No=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},No(e)}function Tk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Tk(Object(n),!0).forEach(function(r){ose(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Tk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ose(e,t,n){return t=sse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sse(e){var t=lse(e,"string");return No(t)=="symbol"?t:t+""}function lse(e,t){if(No(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(No(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mo(){return mo=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},mo.apply(this,arguments)}function Ek(e,t){if(e==null)return{};var n=use(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function use(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var cse=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,s=t.y,l=t.width,c=t.height,f=t.ry;return q.createElement("rect",{x:a,y:s,ry:f,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function mB(e,t){var n;if(q.isValidElement(e))n=q.cloneElement(e,t);else if(_e(e))n=e(t);else{var r=t.x1,a=t.y1,s=t.x2,l=t.y2,c=t.key,f=Ek(t,ise),d=Se(f,!1);d.offset;var m=Ek(d,ase);n=q.createElement("line",mo({},m,{x1:r,y1:a,x2:s,y2:l,fill:"none",key:c}))}return n}function fse(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,s=e.horizontalPoints;if(!a||!s||!s.length)return null;var l=s.map(function(c,f){var d=pn(pn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return mB(a,d)});return q.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function dse(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,s=e.verticalPoints;if(!a||!s||!s.length)return null;var l=s.map(function(c,f){var d=pn(pn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return mB(a,d)});return q.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function hse(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,s=e.width,l=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var m=c.map(function(g){return Math.round(g+a-a)}).sort(function(g,S){return g-S});a!==m[0]&&m.unshift(0);var y=m.map(function(g,S){var w=!m[S+1],j=w?a+l-g:m[S+1]-g;if(j<=0)return null;var b=S%t.length;return q.createElement("rect",{key:"react-".concat(S),y:g,x:r,height:j,width:s,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return q.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},y)}function pse(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,s=e.x,l=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var m=d.map(function(g){return Math.round(g+s-s)}).sort(function(g,S){return g-S});s!==m[0]&&m.unshift(0);var y=m.map(function(g,S){var w=!m[S+1],j=w?s+c-g:m[S+1]-g;if(j<=0)return null;var b=S%r.length;return q.createElement("rect",{key:"react-".concat(S),x:g,y:l,width:j,height:f,stroke:"none",fill:r[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return q.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},y)}var mse=function(t,n){var r=t.xAxis,a=t.width,s=t.height,l=t.offset;return y$(Qj(pn(pn(pn({},El.defaultProps),r),{},{ticks:Ti(r,!0),viewBox:{x:0,y:0,width:a,height:s}})),l.left,l.left+l.width,n)},yse=function(t,n){var r=t.yAxis,a=t.width,s=t.height,l=t.offset;return y$(Qj(pn(pn(pn({},El.defaultProps),r),{},{ticks:Ti(r,!0),viewBox:{x:0,y:0,width:a,height:s}})),l.top,l.top+l.height,n)},ws={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function gp(e){var t,n,r,a,s,l,c=Yj(),f=Xj(),d=roe(),m=pn(pn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:ws.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:ws.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:ws.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:ws.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:ws.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:ws.verticalFill,x:ue(e.x)?e.x:d.left,y:ue(e.y)?e.y:d.top,width:ue(e.width)?e.width:d.width,height:ue(e.height)?e.height:d.height}),y=m.x,g=m.y,S=m.width,w=m.height,j=m.syncWithTicks,b=m.horizontalValues,A=m.verticalValues,_=eoe(),T=toe();if(!ue(S)||S<=0||!ue(w)||w<=0||!ue(y)||y!==+y||!ue(g)||g!==+g)return null;var C=m.verticalCoordinatesGenerator||mse,O=m.horizontalCoordinatesGenerator||yse,N=m.horizontalPoints,M=m.verticalPoints;if((!N||!N.length)&&_e(O)){var R=b&&b.length,D=O({yAxis:T?pn(pn({},T),{},{ticks:R?b:T.ticks}):void 0,width:c,height:f,offset:d},R?!0:j);Er(Array.isArray(D),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(No(D),"]")),Array.isArray(D)&&(N=D)}if((!M||!M.length)&&_e(C)){var B=A&&A.length,I=C({xAxis:_?pn(pn({},_),{},{ticks:B?A:_.ticks}):void 0,width:c,height:f,offset:d},B?!0:j);Er(Array.isArray(I),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(No(I),"]")),Array.isArray(I)&&(M=I)}return q.createElement("g",{className:"recharts-cartesian-grid"},q.createElement(cse,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),q.createElement(fse,mo({},m,{offset:d,horizontalPoints:N,xAxis:_,yAxis:T})),q.createElement(dse,mo({},m,{offset:d,verticalPoints:M,xAxis:_,yAxis:T})),q.createElement(hse,mo({},m,{horizontalPoints:N})),q.createElement(pse,mo({},m,{verticalPoints:M})))}gp.displayName="CartesianGrid";var vse=["type","layout","connectNulls","ref"],gse=["key"];function ll(e){"@babel/helpers - typeof";return ll=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ll(e)}function Nk(e,t){if(e==null)return{};var n=xse(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xse(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nc(){return nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nc.apply(this,arguments)}function Ck(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 Bn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ck(Object(n),!0).forEach(function(r){Ar(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ck(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function js(e){return jse(e)||wse(e)||Sse(e)||bse()}function bse(){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 Sse(e,t){if(e){if(typeof e=="string")return FS(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 FS(e,t)}}function wse(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jse(e){if(Array.isArray(e))return FS(e)}function FS(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 Ase(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mk(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,vB(r.key),r)}}function Ose(e,t,n){return t&&Mk(e.prototype,t),n&&Mk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _se(e,t,n){return t=xp(t),Tse(e,yB()?Reflect.construct(t,n||[],xp(e).constructor):t.apply(e,n))}function Tse(e,t){if(t&&(ll(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ese(e)}function Ese(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(yB=function(){return!!e})()}function xp(e){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xp(e)}function Nse(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&&KS(e,t)}function KS(e,t){return KS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},KS(e,t)}function Ar(e,t,n){return t=vB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vB(e){var t=Cse(e,"string");return ll(t)=="symbol"?t:t+""}function Cse(e,t){if(ll(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ll(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var lf=(function(e){function t(){var n;Ase(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=_se(this,t,[].concat(a)),Ar(n,"state",{isAnimationFinished:!0,totalLength:0}),Ar(n,"generateSimpleStrokeDasharray",function(l,c){return"".concat(c,"px ").concat(l-c,"px")}),Ar(n,"getStrokeDasharray",function(l,c,f){var d=f.reduce(function(A,_){return A+_});if(!d)return n.generateSimpleStrokeDasharray(c,l);for(var m=Math.floor(l/d),y=l%d,g=c-l,S=[],w=0,j=0;w<f.length;j+=f[w],++w)if(j+f[w]>y){S=[].concat(js(f.slice(0,w)),[y-j]);break}var b=S.length%2===0?[0,g]:[g];return[].concat(js(t.repeat(f,m)),js(S),b).map(function(A){return"".concat(A,"px")}).join(", ")}),Ar(n,"id",Po("recharts-line-")),Ar(n,"pathRef",function(l){n.mainCurve=l}),Ar(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ar(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Nse(t,e),Ose(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 s=this.props,l=s.points,c=s.xAxis,f=s.yAxis,d=s.layout,m=s.children,y=Fn(m,of);if(!y)return null;var g=function(j,b){return{x:j.x,y:j.y,value:j.value,errorVal:Pt(j.payload,b)}},S={clipPath:r?"url(#clipPath-".concat(a,")"):null};return q.createElement(qe,S,y.map(function(w){return q.cloneElement(w,{key:"bar-".concat(w.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,a,s){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,m=c.dataKey,y=Se(this.props,!1),g=Se(f,!0),S=d.map(function(j,b){var A=Bn(Bn(Bn({key:"dot-".concat(b),r:3},y),g),{},{index:b,cx:j.x,cy:j.y,value:j.value,dataKey:m,payload:j.payload,points:d});return t.renderDotItem(f,A)}),w={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(s,")"):null};return q.createElement(qe,nc({className:"recharts-line-dots",key:"dots"},w),S)}},{key:"renderCurveStatically",value:function(r,a,s,l){var c=this.props,f=c.type,d=c.layout,m=c.connectNulls;c.ref;var y=Nk(c,vse),g=Bn(Bn(Bn({},Se(y,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(s,")"):null,points:r},l),{},{type:f,layout:d,connectNulls:m});return q.createElement(So,nc({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var s=this,l=this.props,c=l.points,f=l.strokeDasharray,d=l.isAnimationActive,m=l.animationBegin,y=l.animationDuration,g=l.animationEasing,S=l.animationId,w=l.animateNewValues,j=l.width,b=l.height,A=this.state,_=A.prevPoints,T=A.totalLength;return q.createElement(Cr,{begin:m,duration:y,isActive:d,easing:g,from:{t:0},to:{t:1},key:"line-".concat(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(C){var O=C.t;if(_){var N=_.length/c.length,M=c.map(function(z,H){var X=Math.floor(H*N);if(_[X]){var Y=_[X],$=Gt(Y.x,z.x),F=Gt(Y.y,z.y);return Bn(Bn({},z),{},{x:$(O),y:F(O)})}if(w){var Q=Gt(j*2,z.x),ie=Gt(b/2,z.y);return Bn(Bn({},z),{},{x:Q(O),y:ie(O)})}return Bn(Bn({},z),{},{x:z.x,y:z.y})});return s.renderCurveStatically(M,r,a)}var R=Gt(0,T),D=R(O),B;if(f){var I="".concat(f).split(/[,\s]+/gim).map(function(z){return parseFloat(z)});B=s.getStrokeDasharray(D,T,I)}else B=s.generateSimpleStrokeDasharray(T,D);return s.renderCurveStatically(c,r,a,{strokeDasharray:B})})}},{key:"renderCurve",value:function(r,a){var s=this.props,l=s.points,c=s.isAnimationActive,f=this.state,d=f.prevPoints,m=f.totalLength;return c&&l&&l.length&&(!d&&m>0||!_o(d,l))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(l,r,a)}},{key:"render",value:function(){var r,a=this.props,s=a.hide,l=a.dot,c=a.points,f=a.className,d=a.xAxis,m=a.yAxis,y=a.top,g=a.left,S=a.width,w=a.height,j=a.isAnimationActive,b=a.id;if(s||!c||!c.length)return null;var A=this.state.isAnimationFinished,_=c.length===1,T=Pe("recharts-line",f),C=d&&d.allowDataOverflow,O=m&&m.allowDataOverflow,N=C||O,M=Ne(b)?this.id:b,R=(r=Se(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=R.r,B=D===void 0?3:D,I=R.strokeWidth,z=I===void 0?2:I,H=x4(l)?l:{},X=H.clipDot,Y=X===void 0?!0:X,$=B*2+z;return q.createElement(qe,{className:T},C||O?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat(M)},q.createElement("rect",{x:C?g:g-S/2,y:O?y:y-w/2,width:C?S:S*2,height:O?w:w*2})),!Y&&q.createElement("clipPath",{id:"clipPath-dots-".concat(M)},q.createElement("rect",{x:g-$/2,y:y-$/2,width:S+$,height:w+$}))):null,!_&&this.renderCurve(N,M),this.renderErrorBar(N,M),(_||l)&&this.renderDots(N,Y,M),(!j||A)&&Fr.renderCallByParent(this.props,c))}}],[{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 s=r.length%2!==0?[].concat(js(r),[0]):r,l=[],c=0;c<a;++c)l=[].concat(js(l),js(s));return l}},{key:"renderDotItem",value:function(r,a){var s;if(q.isValidElement(r))s=q.cloneElement(r,a);else if(_e(r))s=r(a);else{var l=a.key,c=Nk(a,gse),f=Pe("recharts-line-dot",typeof r!="boolean"?r.className:"");s=q.createElement(sf,nc({key:l},c,{className:f}))}return s}}])})(P.PureComponent);Ar(lf,"displayName","Line");Ar(lf,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ma.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ar(lf,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,s=e.yAxisTicks,l=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,m=t.layout,y=f.map(function(g,S){var w=Pt(g,l);return m==="horizontal"?{x:Yh({axis:n,ticks:a,bandSize:c,entry:g,index:S}),y:Ne(w)?null:r.scale(w),value:w,payload:g}:{x:Ne(w)?null:n.scale(w),y:Yh({axis:r,ticks:s,bandSize:c,entry:g,index:S}),value:w,payload:g}});return Bn({points:y,layout:m},d)});var Mse=["layout","type","stroke","connectNulls","isRange","ref"],Pse=["key"],gB;function ul(e){"@babel/helpers - typeof";return ul=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ul(e)}function xB(e,t){if(e==null)return{};var n=Rse(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rse(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 yo(){return yo=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},yo.apply(this,arguments)}function Pk(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 ma(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Pk(Object(n),!0).forEach(function(r){Ur(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rk(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,SB(r.key),r)}}function kse(e,t,n){return t&&Rk(e.prototype,t),n&&Rk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lse(e,t,n){return t=bp(t),zse(e,bB()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function zse(e,t){if(t&&(ul(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $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 bB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bB=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(e)}function Bse(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&&YS(e,t)}function YS(e,t){return YS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},YS(e,t)}function Ur(e,t,n){return t=SB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SB(e){var t=qse(e,"string");return ul(t)=="symbol"?t:t+""}function qse(e,t){if(ul(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ul(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ki=(function(e){function t(){var n;Dse(this,t);for(var r=arguments.length,a=new Array(r),s=0;s<r;s++)a[s]=arguments[s];return n=Lse(this,t,[].concat(a)),Ur(n,"state",{isAnimationFinished:!0}),Ur(n,"id",Po("recharts-area-")),Ur(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),_e(l)&&l()}),Ur(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),_e(l)&&l()}),n}return Bse(t,e),kse(t,[{key:"renderDots",value:function(r,a,s){var l=this.props.isAnimationActive,c=this.state.isAnimationFinished;if(l&&!c)return null;var f=this.props,d=f.dot,m=f.points,y=f.dataKey,g=Se(this.props,!1),S=Se(d,!0),w=m.map(function(b,A){var _=ma(ma(ma({key:"dot-".concat(A),r:3},g),S),{},{index:A,cx:b.x,cy:b.y,dataKey:y,value:b.value,payload:b.payload,points:m});return t.renderDotItem(d,_)}),j={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(s,")"):null};return q.createElement(qe,yo({className:"recharts-area-dots"},j),w)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,s=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].x,d=l[l.length-1].x,m=r*Math.abs(f-d),y=xa(l.map(function(g){return g.y||0}));return ue(s)&&typeof s=="number"?y=Math.max(s,y):s&&Array.isArray(s)&&s.length&&(y=Math.max(xa(s.map(function(g){return g.y||0})),y)),ue(y)?q.createElement("rect",{x:f<d?f:f-m,y:0,width:m,height:Math.floor(y+(c?parseInt("".concat(c),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,s=a.baseLine,l=a.points,c=a.strokeWidth,f=l[0].y,d=l[l.length-1].y,m=r*Math.abs(f-d),y=xa(l.map(function(g){return g.x||0}));return ue(s)&&typeof s=="number"?y=Math.max(s,y):s&&Array.isArray(s)&&s.length&&(y=Math.max(xa(s.map(function(g){return g.x||0})),y)),ue(y)?q.createElement("rect",{x:0,y:f<d?f:f-m,width:y+(c?parseInt("".concat(c),10):1),height:Math.floor(m)}):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,s,l){var c=this.props,f=c.layout,d=c.type,m=c.stroke,y=c.connectNulls,g=c.isRange;c.ref;var S=xB(c,Mse);return q.createElement(qe,{clipPath:s?"url(#clipPath-".concat(l,")"):null},q.createElement(So,yo({},Se(S,!0),{points:r,connectNulls:y,type:d,baseLine:a,layout:f,stroke:"none",className:"recharts-area-area"})),m!=="none"&&q.createElement(So,yo({},Se(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:y,fill:"none",points:r})),m!=="none"&&g&&q.createElement(So,yo({},Se(this.props,!1),{className:"recharts-area-curve",layout:f,type:d,connectNulls:y,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var s=this,l=this.props,c=l.points,f=l.baseLine,d=l.isAnimationActive,m=l.animationBegin,y=l.animationDuration,g=l.animationEasing,S=l.animationId,w=this.state,j=w.prevPoints,b=w.prevBaseLine;return q.createElement(Cr,{begin:m,duration:y,isActive:d,easing:g,from:{t:0},to:{t:1},key:"area-".concat(S),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(A){var _=A.t;if(j){var T=j.length/c.length,C=c.map(function(R,D){var B=Math.floor(D*T);if(j[B]){var I=j[B],z=Gt(I.x,R.x),H=Gt(I.y,R.y);return ma(ma({},R),{},{x:z(_),y:H(_)})}return R}),O;if(ue(f)&&typeof f=="number"){var N=Gt(b,f);O=N(_)}else if(Ne(f)||jl(f)){var M=Gt(b,0);O=M(_)}else O=f.map(function(R,D){var B=Math.floor(D*T);if(b[B]){var I=b[B],z=Gt(I.x,R.x),H=Gt(I.y,R.y);return ma(ma({},R),{},{x:z(_),y:H(_)})}return R});return s.renderAreaStatically(C,O,r,a)}return q.createElement(qe,null,q.createElement("defs",null,q.createElement("clipPath",{id:"animationClipPath-".concat(a)},s.renderClipRect(_))),q.createElement(qe,{clipPath:"url(#animationClipPath-".concat(a,")")},s.renderAreaStatically(c,f,r,a)))})}},{key:"renderArea",value:function(r,a){var s=this.props,l=s.points,c=s.baseLine,f=s.isAnimationActive,d=this.state,m=d.prevPoints,y=d.prevBaseLine,g=d.totalLength;return f&&l&&l.length&&(!m&&g>0||!_o(m,l)||!_o(y,c))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(l,c,r,a)}},{key:"render",value:function(){var r,a=this.props,s=a.hide,l=a.dot,c=a.points,f=a.className,d=a.top,m=a.left,y=a.xAxis,g=a.yAxis,S=a.width,w=a.height,j=a.isAnimationActive,b=a.id;if(s||!c||!c.length)return null;var A=this.state.isAnimationFinished,_=c.length===1,T=Pe("recharts-area",f),C=y&&y.allowDataOverflow,O=g&&g.allowDataOverflow,N=C||O,M=Ne(b)?this.id:b,R=(r=Se(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},D=R.r,B=D===void 0?3:D,I=R.strokeWidth,z=I===void 0?2:I,H=x4(l)?l:{},X=H.clipDot,Y=X===void 0?!0:X,$=B*2+z;return q.createElement(qe,{className:T},C||O?q.createElement("defs",null,q.createElement("clipPath",{id:"clipPath-".concat(M)},q.createElement("rect",{x:C?m:m-S/2,y:O?d:d-w/2,width:C?S:S*2,height:O?w:w*2})),!Y&&q.createElement("clipPath",{id:"clipPath-dots-".concat(M)},q.createElement("rect",{x:m-$/2,y:d-$/2,width:S+$,height:w+$}))):null,_?null:this.renderArea(N,M),(l||_)&&this.renderDots(N,Y,M),(!j||A)&&Fr.renderCallByParent(this.props,c))}}],[{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}}])})(P.PureComponent);gB=ki;Ur(ki,"displayName","Area");Ur(ki,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ma.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Ur(ki,"getBaseValue",function(e,t,n,r){var a=e.layout,s=e.baseValue,l=t.props.baseValue,c=l??s;if(ue(c)&&typeof c=="number")return c;var f=a==="horizontal"?r:n,d=f.scale.domain();if(f.type==="number"){var m=Math.max(d[0],d[1]),y=Math.min(d[0],d[1]);return c==="dataMin"?y:c==="dataMax"||m<0?m:Math.max(Math.min(d[0],d[1]),0)}return c==="dataMin"?d[0]:c==="dataMax"?d[1]:d[0]});Ur(ki,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,s=e.xAxisTicks,l=e.yAxisTicks,c=e.bandSize,f=e.dataKey,d=e.stackedData,m=e.dataStartIndex,y=e.displayedData,g=e.offset,S=t.layout,w=d&&d.length,j=gB.getBaseValue(t,n,r,a),b=S==="horizontal",A=!1,_=y.map(function(C,O){var N;w?N=d[m+O]:(N=Pt(C,f),Array.isArray(N)?A=!0:N=[j,N]);var M=N[1]==null||w&&Pt(C,f)==null;return b?{x:Yh({axis:r,ticks:s,bandSize:c,entry:C,index:O}),y:M?null:a.scale(N[1]),value:N,payload:C}:{x:M?null:r.scale(N[1]),y:Yh({axis:a,ticks:l,bandSize:c,entry:C,index:O}),value:N,payload:C}}),T;return w||A?T=_.map(function(C){var O=Array.isArray(C.value)?C.value[0]:null;return b?{x:C.x,y:O!=null&&C.y!=null?a.scale(O):null}:{x:O!=null?r.scale(O):null,y:C.y}}):T=b?a.scale(j):r.scale(j),ma({points:_,baseLine:T,layout:S,isRange:A},g)});Ur(ki,"renderDotItem",function(e,t){var n;if(q.isValidElement(e))n=q.cloneElement(e,t);else if(_e(e))n=e(t);else{var r=Pe("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,s=xB(t,Pse);n=q.createElement(sf,yo({},s,{key:a,className:r}))}return n});function cl(e){"@babel/helpers - typeof";return cl=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},cl(e)}function Ise(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,AB(r.key),r)}}function Vse(e,t,n){return t&&Use(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Hse(e,t,n){return t=Sp(t),Gse(e,wB()?Reflect.construct(t,n||[],Sp(e).constructor):t.apply(e,n))}function Gse(e,t){if(t&&(cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Fse(e)}function Fse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wB=function(){return!!e})()}function Sp(e){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sp(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&&XS(e,t)}function XS(e,t){return XS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},XS(e,t)}function jB(e,t,n){return t=AB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AB(e){var t=Yse(e,"string");return cl(t)=="symbol"?t:t+""}function Yse(e,t){if(cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function WS(){return WS=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},WS.apply(this,arguments)}function Xse(e){var t=e.xAxisId,n=Yj(),r=Xj(),a=iB(t);return a==null?null:P.createElement(El,WS({},a,{className:Pe("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return Ti(l,!0)}}))}var Ta=(function(e){function t(){return Ise(this,t),Hse(this,t,arguments)}return Kse(t,e),Vse(t,[{key:"render",value:function(){return P.createElement(Xse,this.props)}}])})(P.Component);jB(Ta,"displayName","XAxis");jB(Ta,"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 fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function Wse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zse(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,TB(r.key),r)}}function Qse(e,t,n){return t&&Zse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jse(e,t,n){return t=wp(t),ele(e,OB()?Reflect.construct(t,n||[],wp(e).constructor):t.apply(e,n))}function ele(e,t){if(t&&(fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tle(e)}function tle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OB=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wp(e)}function nle(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&&ZS(e,t)}function ZS(e,t){return ZS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},ZS(e,t)}function _B(e,t,n){return t=TB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TB(e){var t=rle(e,"string");return fl(t)=="symbol"?t:t+""}function rle(e,t){if(fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function QS(){return QS=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},QS.apply(this,arguments)}var ile=function(t){var n=t.yAxisId,r=Yj(),a=Xj(),s=aB(n);return s==null?null:P.createElement(El,QS({},s,{className:Pe("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(c){return Ti(c,!0)}}))},Ea=(function(e){function t(){return Wse(this,t),Jse(this,t,arguments)}return nle(t,e),Qse(t,[{key:"render",value:function(){return P.createElement(ile,this.props)}}])})(P.Component);_B(Ea,"displayName","YAxis");_B(Ea,"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 Dk(e){return lle(e)||sle(e)||ole(e)||ale()}function ale(){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 ole(e,t){if(e){if(typeof e=="string")return JS(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 JS(e,t)}}function sle(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lle(e){if(Array.isArray(e))return JS(e)}function JS(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 ew=function(t,n,r,a,s){var l=Fn(t,Zj),c=Fn(t,fm),f=[].concat(Dk(l),Dk(c)),d=Fn(t,hm),m="".concat(a,"Id"),y=a[0],g=n;if(f.length&&(g=f.reduce(function(j,b){if(b.props[m]===r&&Kr(b.props,"extendDomain")&&ue(b.props[y])){var A=b.props[y];return[Math.min(j[0],A),Math.max(j[1],A)]}return j},g)),d.length){var S="".concat(y,"1"),w="".concat(y,"2");g=d.reduce(function(j,b){if(b.props[m]===r&&Kr(b.props,"extendDomain")&&ue(b.props[S])&&ue(b.props[w])){var A=b.props[S],_=b.props[w];return[Math.min(j[0],A,_),Math.max(j[1],A,_)]}return j},g)}return s&&s.length&&(g=s.reduce(function(j,b){return ue(b)?[Math.min(j[0],b),Math.max(j[1],b)]:j},g)),g},Q0={exports:{}},kk;function ule(){return kk||(kk=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function s(f,d,m,y,g){if(typeof m!="function")throw new TypeError("The listener must be a function");var S=new a(m,y||f,g),w=n?n+d:d;return f._events[w]?f._events[w].fn?f._events[w]=[f._events[w],S]:f._events[w].push(S):(f._events[w]=S,f._eventsCount++),f}function l(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],m,y;if(this._eventsCount===0)return d;for(y in m=this._events)t.call(m,y)&&d.push(n?y.slice(1):y);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=n?n+d:d,y=this._events[m];if(!y)return[];if(y.fn)return[y.fn];for(var g=0,S=y.length,w=new Array(S);g<S;g++)w[g]=y[g].fn;return w},c.prototype.listenerCount=function(d){var m=n?n+d:d,y=this._events[m];return y?y.fn?1:y.length:0},c.prototype.emit=function(d,m,y,g,S,w){var j=n?n+d:d;if(!this._events[j])return!1;var b=this._events[j],A=arguments.length,_,T;if(b.fn){switch(b.once&&this.removeListener(d,b.fn,void 0,!0),A){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,m),!0;case 3:return b.fn.call(b.context,m,y),!0;case 4:return b.fn.call(b.context,m,y,g),!0;case 5:return b.fn.call(b.context,m,y,g,S),!0;case 6:return b.fn.call(b.context,m,y,g,S,w),!0}for(T=1,_=new Array(A-1);T<A;T++)_[T-1]=arguments[T];b.fn.apply(b.context,_)}else{var C=b.length,O;for(T=0;T<C;T++)switch(b[T].once&&this.removeListener(d,b[T].fn,void 0,!0),A){case 1:b[T].fn.call(b[T].context);break;case 2:b[T].fn.call(b[T].context,m);break;case 3:b[T].fn.call(b[T].context,m,y);break;case 4:b[T].fn.call(b[T].context,m,y,g);break;default:if(!_)for(O=1,_=new Array(A-1);O<A;O++)_[O-1]=arguments[O];b[T].fn.apply(b[T].context,_)}}return!0},c.prototype.on=function(d,m,y){return s(this,d,m,y,!1)},c.prototype.once=function(d,m,y){return s(this,d,m,y,!0)},c.prototype.removeListener=function(d,m,y,g){var S=n?n+d:d;if(!this._events[S])return this;if(!m)return l(this,S),this;var w=this._events[S];if(w.fn)w.fn===m&&(!g||w.once)&&(!y||w.context===y)&&l(this,S);else{for(var j=0,b=[],A=w.length;j<A;j++)(w[j].fn!==m||g&&!w[j].once||y&&w[j].context!==y)&&b.push(w[j]);b.length?this._events[S]=b.length===1?b[0]:b:l(this,S)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&l(this,m)):(this._events=new r,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=n,c.EventEmitter=c,e.exports=c})(Q0)),Q0.exports}var cle=ule();const fle=rt(cle);var J0=new fle,e1="recharts.syncMouseEvents";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 dle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hle(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,EB(r.key),r)}}function ple(e,t,n){return t&&hle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function t1(e,t,n){return t=EB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EB(e){var t=mle(e,"string");return Uc(t)=="symbol"?t:t+""}function mle(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 yle=(function(){function e(){dle(this,e),t1(this,"activeIndex",0),t1(this,"coordinateList",[]),t1(this,"layout","horizontal")}return ple(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,s=a===void 0?null:a,l=n.container,c=l===void 0?null:l,f=n.layout,d=f===void 0?null:f,m=n.offset,y=m===void 0?null:m,g=n.mouseHandlerCallback,S=g===void 0?null:g;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=y??this.offset,this.mouseHandlerCallback=S??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(),s=a.x,l=a.y,c=a.height,f=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,m=((r=window)===null||r===void 0?void 0:r.scrollY)||0,y=s+f+d,g=l+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:y,pageY:g})}}}])})();function vle(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&&ue(r)&&ue(a))return!0}return!1}function gle(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 NB(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,s=e.endAngle,l=mt(t,n,r,a),c=mt(t,n,r,s);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:a,endAngle:s}}function xle(e,t,n){var r,a,s,l;if(e==="horizontal")r=t.x,s=r,a=n.top,l=n.top+n.height;else if(e==="vertical")a=t.y,l=a,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,m=t.outerRadius,y=t.angle,g=mt(c,f,d,y),S=mt(c,f,m,y);r=g.x,a=g.y,s=S.x,l=S.y}else return NB(t);return[{x:r,y:a},{x:s,y:l}]}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 Lk(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 Fd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Lk(Object(n),!0).forEach(function(r){ble(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ble(e,t,n){return t=Sle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sle(e){var t=wle(e,"string");return Vc(t)=="symbol"?t:t+""}function wle(e,t){if(Vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jle(e){var t,n,r=e.element,a=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,y=e.layout,g=e.chartName,S=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!S||!s||!l||g!=="ScatterChart"&&a!=="axis")return null;var w,j=So;if(g==="ScatterChart")w=l,j=kre;else if(g==="BarChart")w=gle(y,l,f,m),j=Vj;else if(y==="radial"){var b=NB(l),A=b.cx,_=b.cy,T=b.radius,C=b.startAngle,O=b.endAngle;w={cx:A,cy:_,startAngle:C,endAngle:O,innerRadius:T,outerRadius:T},j=T$}else w={points:xle(y,l,f)},j=So;var N=Fd(Fd(Fd(Fd({stroke:"#ccc",pointerEvents:"none"},f),w),Se(S,!1)),{},{payload:c,payloadIndex:d,className:Pe("recharts-tooltip-cursor",S.className)});return P.isValidElement(S)?P.cloneElement(S,N):P.createElement(j,N)}var Ale=["item"],Ole=["children","className","width","height","style","compact","title","desc"];function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}function 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 zk(e,t){return Ele(e)||Tle(e,t)||MB(e,t)||_le()}function _le(){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 Tle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,a=m}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw a}}return c}}function Ele(e){if(Array.isArray(e))return e}function $k(e,t){if(e==null)return{};var n=Nle(e,t),r,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a<s.length;a++)r=s[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Nle(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 Cle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mle(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,PB(r.key),r)}}function Ple(e,t,n){return t&&Mle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rle(e,t,n){return t=jp(t),Dle(e,CB()?Reflect.construct(t,n||[],jp(e).constructor):t.apply(e,n))}function Dle(e,t){if(t&&(dl(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 CB(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(CB=function(){return!!e})()}function jp(e){return jp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jp(e)}function Lle(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&&tw(e,t)}function tw(e,t){return tw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},tw(e,t)}function hl(e){return Ble(e)||$le(e)||MB(e)||zle()}function zle(){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 MB(e,t){if(e){if(typeof e=="string")return nw(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 nw(e,t)}}function $le(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ble(e){if(Array.isArray(e))return nw(e)}function nw(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 Bk(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 ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bk(Object(n),!0).forEach(function(r){Oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Oe(e,t,n){return t=PB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PB(e){var t=qle(e,"string");return dl(t)=="symbol"?t:t+""}function qle(e,t){if(dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ile={xAxis:["bottom","top"],yAxis:["left","right"]},Ule={width:"100%",height:"100%"},RB={x:0,y:0};function Kd(e){return e}var Vle=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},Hle=function(t,n,r,a){var s=n.find(function(m){return m&&m.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:s.coordinate};if(t==="centric"){var l=s.coordinate,c=a.radius;return ne(ne(ne({},a),mt(a.cx,a.cy,c,l)),{},{angle:l,radius:c})}var f=s.coordinate,d=a.angle;return ne(ne(ne({},a),mt(a.cx,a.cy,f,d)),{},{angle:d,radius:f})}return RB},pm=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,s=n.dataEndIndex,l=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(hl(c),hl(d)):c},[]);return l.length>0?l:t&&t.length&&ue(a)&&ue(s)?t.slice(a,s+1):[]};function DB(e){return e==="number"?[0,"auto"]:void 0}var rw=function(t,n,r,a){var s=t.graphicalItems,l=t.tooltipAxis,c=pm(n,t);return r<0||!s||!s.length||r>=c.length?null:s.reduce(function(f,d){var m,y=(m=d.props.data)!==null&&m!==void 0?m:n;y&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(y=y.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(l.dataKey&&!l.allowDuplicatedCategory){var S=y===void 0?c:y;g=Sh(S,l.dataKey,a)}else g=y&&y[r]||c[r];return g?[].concat(hl(f),[S$(d,g)]):f},[])},qk=function(t,n,r,a){var s=a||{x:t.chartX,y:t.chartY},l=Vle(s,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=nee(l,c,d,f);if(m>=0&&d){var y=d[m]&&d[m].value,g=rw(t,n,m,y),S=Hle(r,c,m,s);return{activeTooltipIndex:m,activeLabel:y,activePayload:g,activeCoordinate:S}}return null},Gle=function(t,n){var r=n.axes,a=n.graphicalItems,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,y=t.children,g=t.stackOffset,S=m$(m,s);return r.reduce(function(w,j){var b,A=j.type.defaultProps!==void 0?ne(ne({},j.type.defaultProps),j.props):j.props,_=A.type,T=A.dataKey,C=A.allowDataOverflow,O=A.allowDuplicatedCategory,N=A.scale,M=A.ticks,R=A.includeHidden,D=A[l];if(w[D])return w;var B=pm(t.data,{graphicalItems:a.filter(function(G){var re,fe=l in G.props?G.props[l]:(re=G.type.defaultProps)===null||re===void 0?void 0:re[l];return fe===D}),dataStartIndex:f,dataEndIndex:d}),I=B.length,z,H,X;vle(A.domain,C,_)&&(z=yS(A.domain,null,C),S&&(_==="number"||N!=="auto")&&(X=Qu(B,T,"category")));var Y=DB(_);if(!z||z.length===0){var $,F=($=A.domain)!==null&&$!==void 0?$:Y;if(T){if(z=Qu(B,T,_),_==="category"&&S){var Q=WG(z);O&&Q?(H=z,z=lp(0,I)):O||(z=qR(F,z,j).reduce(function(G,re){return G.indexOf(re)>=0?G:[].concat(hl(G),[re])},[]))}else if(_==="category")O?z=z.filter(function(G){return G!==""&&!Ne(G)}):z=qR(F,z,j).reduce(function(G,re){return G.indexOf(re)>=0||re===""||Ne(re)?G:[].concat(hl(G),[re])},[]);else if(_==="number"){var ie=see(B,a.filter(function(G){var re,fe,ve=l in G.props?G.props[l]:(re=G.type.defaultProps)===null||re===void 0?void 0:re[l],je="hide"in G.props?G.props.hide:(fe=G.type.defaultProps)===null||fe===void 0?void 0:fe.hide;return ve===D&&(R||!je)}),T,s,m);ie&&(z=ie)}S&&(_==="number"||N!=="auto")&&(X=Qu(B,T,"category"))}else S?z=lp(0,I):c&&c[D]&&c[D].hasStack&&_==="number"?z=g==="expand"?[0,1]:b$(c[D].stackGroups,f,d):z=p$(B,a.filter(function(G){var re=l in G.props?G.props[l]:G.type.defaultProps[l],fe="hide"in G.props?G.props.hide:G.type.defaultProps.hide;return re===D&&(R||!fe)}),_,m,!0);if(_==="number")z=ew(y,z,D,s,M),F&&(z=yS(F,z,C));else if(_==="category"&&F){var se=F,L=z.every(function(G){return se.indexOf(G)>=0});L&&(z=se)}}return ne(ne({},w),{},Oe({},D,ne(ne({},A),{},{axisType:s,domain:z,categoricalDomain:X,duplicateDomain:H,originalDomain:(b=A.domain)!==null&&b!==void 0?b:Y,isCategorical:S,layout:m})))},{})},Fle=function(t,n){var r=n.graphicalItems,a=n.Axis,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,y=t.children,g=pm(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),S=g.length,w=m$(m,s),j=-1;return r.reduce(function(b,A){var _=A.type.defaultProps!==void 0?ne(ne({},A.type.defaultProps),A.props):A.props,T=_[l],C=DB("number");if(!b[T]){j++;var O;return w?O=lp(0,S):c&&c[T]&&c[T].hasStack?(O=b$(c[T].stackGroups,f,d),O=ew(y,O,T,s)):(O=yS(C,p$(g,r.filter(function(N){var M,R,D=l in N.props?N.props[l]:(M=N.type.defaultProps)===null||M===void 0?void 0:M[l],B="hide"in N.props?N.props.hide:(R=N.type.defaultProps)===null||R===void 0?void 0:R.hide;return D===T&&!B}),"number",m),a.defaultProps.allowDataOverflow),O=ew(y,O,T,s)),ne(ne({},b),{},Oe({},T,ne(ne({axisType:s},a.defaultProps),{},{hide:!0,orientation:Gn(Ile,"".concat(s,".").concat(j%2),null),domain:O,originalDomain:C,isCategorical:w,layout:m})))}return b},{})},Kle=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,s=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.children,y="".concat(a,"Id"),g=Fn(m,s),S={};return g&&g.length?S=Gle(t,{axes:g,graphicalItems:l,axisType:a,axisIdKey:y,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):l&&l.length&&(S=Fle(t,{Axis:s,graphicalItems:l,axisType:a,axisIdKey:y,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),S},Yle=function(t){var n=va(t),r=Ti(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:yj(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Xh(n,r)}},Ik=function(t){var n=t.children,r=t.defaultShowTooltip,a=In(n,nl),s=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(s=a.props.startIndex),a.props.endIndex>=0&&(l=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},Xle=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ei(n&&n.type);return r&&r.indexOf("Bar")>=0})},Uk=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"}},Wle=function(t,n){var r=t.props,a=t.graphicalItems,s=t.xAxisMap,l=s===void 0?{}:s,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,m=r.height,y=r.children,g=r.margin||{},S=In(y,nl),w=In(y,Ls),j=Object.keys(f).reduce(function(O,N){var M=f[N],R=M.orientation;return!M.mirror&&!M.hide?ne(ne({},O),{},Oe({},R,O[R]+M.width)):O},{left:g.left||0,right:g.right||0}),b=Object.keys(l).reduce(function(O,N){var M=l[N],R=M.orientation;return!M.mirror&&!M.hide?ne(ne({},O),{},Oe({},R,Gn(O,"".concat(R))+M.height)):O},{top:g.top||0,bottom:g.bottom||0}),A=ne(ne({},b),j),_=A.bottom;S&&(A.bottom+=S.props.height||nl.defaultProps.height),w&&n&&(A=aee(A,a,r,n));var T=d-A.left-A.right,C=m-A.top-A.bottom;return ne(ne({brushBottom:_},A),{},{width:Math.max(T,0),height:Math.max(C,0)})},Zle=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},mm=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,s=a===void 0?"axis":a,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,f=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,y=t.defaultProps,g=function(A,_){var T=_.graphicalItems,C=_.stackGroups,O=_.offset,N=_.updateId,M=_.dataStartIndex,R=_.dataEndIndex,D=A.barSize,B=A.layout,I=A.barGap,z=A.barCategoryGap,H=A.maxBarSize,X=Uk(B),Y=X.numericAxisName,$=X.cateAxisName,F=Xle(T),Q=[];return T.forEach(function(ie,se){var L=pm(A.data,{graphicalItems:[ie],dataStartIndex:M,dataEndIndex:R}),G=ie.type.defaultProps!==void 0?ne(ne({},ie.type.defaultProps),ie.props):ie.props,re=G.dataKey,fe=G.maxBarSize,ve=G["".concat(Y,"Id")],je=G["".concat($,"Id")],ze={},Xe=f.reduce(function(yr,ni){var Nl=_["".concat(ni.axisType,"Map")],cn=G["".concat(ni.axisType,"Id")];Nl&&Nl[cn]||ni.axisType==="zAxis"||Eo();var uf=Nl[cn];return ne(ne({},yr),{},Oe(Oe({},ni.axisType,uf),"".concat(ni.axisType,"Ticks"),Ti(uf)))},ze),ce=Xe[$],Te=Xe["".concat($,"Ticks")],Ce=C&&C[ve]&&C[ve].hasStack&&yee(ie,C[ve].stackGroups),le=Ei(ie.type).indexOf("Bar")>=0,yt=Xh(ce,Te),De=[],At=F&&ree({barSize:D,stackGroups:C,totalSize:Zle(Xe,$)});if(le){var Ot,un,mr=Ne(fe)?H:fe,Dr=(Ot=(un=Xh(ce,Te,!0))!==null&&un!==void 0?un:mr)!==null&&Ot!==void 0?Ot:0;De=iee({barGap:I,barCategoryGap:z,bandSize:Dr!==yt?Dr:yt,sizeList:At[je],maxBarSize:mr}),Dr!==yt&&(De=De.map(function(yr){return ne(ne({},yr),{},{position:ne(ne({},yr.position),{},{offset:yr.position.offset-Dr/2})})}))}var qi=ie&&ie.type&&ie.type.getComposedData;qi&&Q.push({props:ne(ne({},qi(ne(ne({},Xe),{},{displayedData:L,props:A,dataKey:re,item:ie,bandSize:yt,barPosition:De,offset:O,stackedData:Ce,layout:B,dataStartIndex:M,dataEndIndex:R}))),{},Oe(Oe(Oe({key:ie.key||"item-".concat(se)},Y,Xe[Y]),$,Xe[$]),"animationId",N)),childIndex:lF(ie,A.children),item:ie})}),Q},S=function(A,_){var T=A.props,C=A.dataStartIndex,O=A.dataEndIndex,N=A.updateId;if(!tC({props:T}))return null;var M=T.children,R=T.layout,D=T.stackOffset,B=T.data,I=T.reverseStackOrder,z=Uk(R),H=z.numericAxisName,X=z.cateAxisName,Y=Fn(M,r),$=pee(B,Y,"".concat(H,"Id"),"".concat(X,"Id"),D,I),F=f.reduce(function(G,re){var fe="".concat(re.axisType,"Map");return ne(ne({},G),{},Oe({},fe,Kle(T,ne(ne({},re),{},{graphicalItems:Y,stackGroups:re.axisType===H&&$,dataStartIndex:C,dataEndIndex:O}))))},{}),Q=Wle(ne(ne({},F),{},{props:T,graphicalItems:Y}),_==null?void 0:_.legendBBox);Object.keys(F).forEach(function(G){F[G]=m(T,F[G],Q,G.replace("Map",""),n)});var ie=F["".concat(X,"Map")],se=Yle(ie),L=g(T,ne(ne({},F),{},{dataStartIndex:C,dataEndIndex:O,updateId:N,graphicalItems:Y,stackGroups:$,offset:Q}));return ne(ne({formattedGraphicalItems:L,graphicalItems:Y,offset:Q,stackGroups:$},se),F)},w=(function(b){function A(_){var T,C,O;return Cle(this,A),O=Rle(this,A,[_]),Oe(O,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Oe(O,"accessibilityManager",new yle),Oe(O,"handleLegendBBoxUpdate",function(N){if(N){var M=O.state,R=M.dataStartIndex,D=M.dataEndIndex,B=M.updateId;O.setState(ne({legendBBox:N},S({props:O.props,dataStartIndex:R,dataEndIndex:D,updateId:B},ne(ne({},O.state),{},{legendBBox:N}))))}}),Oe(O,"handleReceiveSyncEvent",function(N,M,R){if(O.props.syncId===N){if(R===O.eventEmitterSymbol&&typeof O.props.syncMethod!="function")return;O.applySyncEvent(M)}}),Oe(O,"handleBrushChange",function(N){var M=N.startIndex,R=N.endIndex;if(M!==O.state.dataStartIndex||R!==O.state.dataEndIndex){var D=O.state.updateId;O.setState(function(){return ne({dataStartIndex:M,dataEndIndex:R},S({props:O.props,dataStartIndex:M,dataEndIndex:R,updateId:D},O.state))}),O.triggerSyncEvent({dataStartIndex:M,dataEndIndex:R})}}),Oe(O,"handleMouseEnter",function(N){var M=O.getMouseInfo(N);if(M){var R=ne(ne({},M),{},{isTooltipActive:!0});O.setState(R),O.triggerSyncEvent(R);var D=O.props.onMouseEnter;_e(D)&&D(R,N)}}),Oe(O,"triggeredAfterMouseMove",function(N){var M=O.getMouseInfo(N),R=M?ne(ne({},M),{},{isTooltipActive:!0}):{isTooltipActive:!1};O.setState(R),O.triggerSyncEvent(R);var D=O.props.onMouseMove;_e(D)&&D(R,N)}),Oe(O,"handleItemMouseEnter",function(N){O.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),Oe(O,"handleItemMouseLeave",function(){O.setState(function(){return{isTooltipActive:!1}})}),Oe(O,"handleMouseMove",function(N){N.persist(),O.throttleTriggeredAfterMouseMove(N)}),Oe(O,"handleMouseLeave",function(N){O.throttleTriggeredAfterMouseMove.cancel();var M={isTooltipActive:!1};O.setState(M),O.triggerSyncEvent(M);var R=O.props.onMouseLeave;_e(R)&&R(M,N)}),Oe(O,"handleOuterEvent",function(N){var M=sF(N),R=Gn(O.props,"".concat(M));if(M&&_e(R)){var D,B;/.*touch.*/i.test(M)?B=O.getMouseInfo(N.changedTouches[0]):B=O.getMouseInfo(N),R((D=B)!==null&&D!==void 0?D:{},N)}}),Oe(O,"handleClick",function(N){var M=O.getMouseInfo(N);if(M){var R=ne(ne({},M),{},{isTooltipActive:!0});O.setState(R),O.triggerSyncEvent(R);var D=O.props.onClick;_e(D)&&D(R,N)}}),Oe(O,"handleMouseDown",function(N){var M=O.props.onMouseDown;if(_e(M)){var R=O.getMouseInfo(N);M(R,N)}}),Oe(O,"handleMouseUp",function(N){var M=O.props.onMouseUp;if(_e(M)){var R=O.getMouseInfo(N);M(R,N)}}),Oe(O,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&O.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),Oe(O,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&O.handleMouseDown(N.changedTouches[0])}),Oe(O,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&O.handleMouseUp(N.changedTouches[0])}),Oe(O,"handleDoubleClick",function(N){var M=O.props.onDoubleClick;if(_e(M)){var R=O.getMouseInfo(N);M(R,N)}}),Oe(O,"handleContextMenu",function(N){var M=O.props.onContextMenu;if(_e(M)){var R=O.getMouseInfo(N);M(R,N)}}),Oe(O,"triggerSyncEvent",function(N){O.props.syncId!==void 0&&J0.emit(e1,O.props.syncId,N,O.eventEmitterSymbol)}),Oe(O,"applySyncEvent",function(N){var M=O.props,R=M.layout,D=M.syncMethod,B=O.state.updateId,I=N.dataStartIndex,z=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)O.setState(ne({dataStartIndex:I,dataEndIndex:z},S({props:O.props,dataStartIndex:I,dataEndIndex:z,updateId:B},O.state)));else if(N.activeTooltipIndex!==void 0){var H=N.chartX,X=N.chartY,Y=N.activeTooltipIndex,$=O.state,F=$.offset,Q=$.tooltipTicks;if(!F)return;if(typeof D=="function")Y=D(Q,N);else if(D==="value"){Y=-1;for(var ie=0;ie<Q.length;ie++)if(Q[ie].value===N.activeLabel){Y=ie;break}}var se=ne(ne({},F),{},{x:F.left,y:F.top}),L=Math.min(H,se.x+se.width),G=Math.min(X,se.y+se.height),re=Q[Y]&&Q[Y].value,fe=rw(O.state,O.props.data,Y),ve=Q[Y]?{x:R==="horizontal"?Q[Y].coordinate:L,y:R==="horizontal"?G:Q[Y].coordinate}:RB;O.setState(ne(ne({},N),{},{activeLabel:re,activeCoordinate:ve,activePayload:fe,activeTooltipIndex:Y}))}else O.setState(N)}),Oe(O,"renderCursor",function(N){var M,R=O.state,D=R.isTooltipActive,B=R.activeCoordinate,I=R.activePayload,z=R.offset,H=R.activeTooltipIndex,X=R.tooltipAxisBandSize,Y=O.getTooltipEventType(),$=(M=N.props.active)!==null&&M!==void 0?M:D,F=O.props.layout,Q=N.key||"_recharts-cursor";return q.createElement(jle,{key:Q,activeCoordinate:B,activePayload:I,activeTooltipIndex:H,chartName:n,element:N,isActive:$,layout:F,offset:z,tooltipAxisBandSize:X,tooltipEventType:Y})}),Oe(O,"renderPolarAxis",function(N,M,R){var D=Gn(N,"type.axisType"),B=Gn(O.state,"".concat(D,"Map")),I=N.type.defaultProps,z=I!==void 0?ne(ne({},I),N.props):N.props,H=B&&B[z["".concat(D,"Id")]];return P.cloneElement(N,ne(ne({},H),{},{className:Pe(D,H.className),key:N.key||"".concat(M,"-").concat(R),ticks:Ti(H,!0)}))}),Oe(O,"renderPolarGrid",function(N){var M=N.props,R=M.radialLines,D=M.polarAngles,B=M.polarRadius,I=O.state,z=I.radiusAxisMap,H=I.angleAxisMap,X=va(z),Y=va(H),$=Y.cx,F=Y.cy,Q=Y.innerRadius,ie=Y.outerRadius;return P.cloneElement(N,{polarAngles:Array.isArray(D)?D:Ti(Y,!0).map(function(se){return se.coordinate}),polarRadius:Array.isArray(B)?B:Ti(X,!0).map(function(se){return se.coordinate}),cx:$,cy:F,innerRadius:Q,outerRadius:ie,key:N.key||"polar-grid",radialLines:R})}),Oe(O,"renderLegend",function(){var N=O.state.formattedGraphicalItems,M=O.props,R=M.children,D=M.width,B=M.height,I=O.props.margin||{},z=D-(I.left||0)-(I.right||0),H=d$({children:R,formattedGraphicalItems:N,legendWidth:z,legendContent:d});if(!H)return null;var X=H.item,Y=$k(H,Ale);return P.cloneElement(X,ne(ne({},Y),{},{chartWidth:D,chartHeight:B,margin:I,onBBoxUpdate:O.handleLegendBBoxUpdate}))}),Oe(O,"renderTooltip",function(){var N,M=O.props,R=M.children,D=M.accessibilityLayer,B=In(R,Un);if(!B)return null;var I=O.state,z=I.isTooltipActive,H=I.activeCoordinate,X=I.activePayload,Y=I.activeLabel,$=I.offset,F=(N=B.props.active)!==null&&N!==void 0?N:z;return P.cloneElement(B,{viewBox:ne(ne({},$),{},{x:$.left,y:$.top}),active:F,label:Y,payload:F?X:[],coordinate:H,accessibilityLayer:D})}),Oe(O,"renderBrush",function(N){var M=O.props,R=M.margin,D=M.data,B=O.state,I=B.offset,z=B.dataStartIndex,H=B.dataEndIndex,X=B.updateId;return P.cloneElement(N,{key:N.key||"_recharts-brush",onChange:Ud(O.handleBrushChange,N.props.onChange),data:D,x:ue(N.props.x)?N.props.x:I.left,y:ue(N.props.y)?N.props.y:I.top+I.height+I.brushBottom-(R.bottom||0),width:ue(N.props.width)?N.props.width:I.width,startIndex:z,endIndex:H,updateId:"brush-".concat(X)})}),Oe(O,"renderReferenceElement",function(N,M,R){if(!N)return null;var D=O,B=D.clipPathId,I=O.state,z=I.xAxisMap,H=I.yAxisMap,X=I.offset,Y=N.type.defaultProps||{},$=N.props,F=$.xAxisId,Q=F===void 0?Y.xAxisId:F,ie=$.yAxisId,se=ie===void 0?Y.yAxisId:ie;return P.cloneElement(N,{key:N.key||"".concat(M,"-").concat(R),xAxis:z[Q],yAxis:H[se],viewBox:{x:X.left,y:X.top,width:X.width,height:X.height},clipPathId:B})}),Oe(O,"renderActivePoints",function(N){var M=N.item,R=N.activePoint,D=N.basePoint,B=N.childIndex,I=N.isRange,z=[],H=M.props.key,X=M.item.type.defaultProps!==void 0?ne(ne({},M.item.type.defaultProps),M.item.props):M.item.props,Y=X.activeDot,$=X.dataKey,F=ne(ne({index:B,dataKey:$,cx:R.x,cy:R.y,r:4,fill:Uj(M.item),strokeWidth:2,stroke:"#fff",payload:R.payload,value:R.value},Se(Y,!1)),wh(Y));return z.push(A.renderActiveDot(Y,F,"".concat(H,"-activePoint-").concat(B))),D?z.push(A.renderActiveDot(Y,ne(ne({},F),{},{cx:D.x,cy:D.y}),"".concat(H,"-basePoint-").concat(B))):I&&z.push(null),z}),Oe(O,"renderGraphicChild",function(N,M,R){var D=O.filterFormatItem(N,M,R);if(!D)return null;var B=O.getTooltipEventType(),I=O.state,z=I.isTooltipActive,H=I.tooltipAxis,X=I.activeTooltipIndex,Y=I.activeLabel,$=O.props.children,F=In($,Un),Q=D.props,ie=Q.points,se=Q.isRange,L=Q.baseLine,G=D.item.type.defaultProps!==void 0?ne(ne({},D.item.type.defaultProps),D.item.props):D.item.props,re=G.activeDot,fe=G.hide,ve=G.activeBar,je=G.activeShape,ze=!!(!fe&&z&&F&&(re||ve||je)),Xe={};B!=="axis"&&F&&F.props.trigger==="click"?Xe={onClick:Ud(O.handleItemMouseEnter,N.props.onClick)}:B!=="axis"&&(Xe={onMouseLeave:Ud(O.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:Ud(O.handleItemMouseEnter,N.props.onMouseEnter)});var ce=P.cloneElement(N,ne(ne({},D.props),Xe));function Te(ni){return typeof H.dataKey=="function"?H.dataKey(ni.payload):null}if(ze)if(X>=0){var Ce,le;if(H.dataKey&&!H.allowDuplicatedCategory){var yt=typeof H.dataKey=="function"?Te:"payload.".concat(H.dataKey.toString());Ce=Sh(ie,yt,Y),le=se&&L&&Sh(L,yt,Y)}else Ce=ie==null?void 0:ie[X],le=se&&L&&L[X];if(je||ve){var De=N.props.activeIndex!==void 0?N.props.activeIndex:X;return[P.cloneElement(N,ne(ne(ne({},D.props),Xe),{},{activeIndex:De})),null,null]}if(!Ne(Ce))return[ce].concat(hl(O.renderActivePoints({item:D,activePoint:Ce,basePoint:le,childIndex:X,isRange:se})))}else{var At,Ot=(At=O.getItemByXY(O.state.activeCoordinate))!==null&&At!==void 0?At:{graphicalItem:ce},un=Ot.graphicalItem,mr=un.item,Dr=mr===void 0?N:mr,qi=un.childIndex,yr=ne(ne(ne({},D.props),Xe),{},{activeIndex:qi});return[P.cloneElement(Dr,yr),null,null]}return se?[ce,null,null]:[ce,null]}),Oe(O,"renderCustomized",function(N,M,R){return P.cloneElement(N,ne(ne({key:"recharts-customized-".concat(R)},O.props),O.state))}),Oe(O,"renderMap",{CartesianGrid:{handler:Kd,once:!0},ReferenceArea:{handler:O.renderReferenceElement},ReferenceLine:{handler:Kd},ReferenceDot:{handler:O.renderReferenceElement},XAxis:{handler:Kd},YAxis:{handler:Kd},Brush:{handler:O.renderBrush,once:!0},Bar:{handler:O.renderGraphicChild},Line:{handler:O.renderGraphicChild},Area:{handler:O.renderGraphicChild},Radar:{handler:O.renderGraphicChild},RadialBar:{handler:O.renderGraphicChild},Scatter:{handler:O.renderGraphicChild},Pie:{handler:O.renderGraphicChild},Funnel:{handler:O.renderGraphicChild},Tooltip:{handler:O.renderCursor,once:!0},PolarGrid:{handler:O.renderPolarGrid,once:!0},PolarAngleAxis:{handler:O.renderPolarAxis},PolarRadiusAxis:{handler:O.renderPolarAxis},Customized:{handler:O.renderCustomized}}),O.clipPathId="".concat((T=_.id)!==null&&T!==void 0?T:Po("recharts"),"-clip"),O.throttleTriggeredAfterMouseMove=dz(O.triggeredAfterMouseMove,(C=_.throttleDelay)!==null&&C!==void 0?C:1e3/60),O.state={},O}return Lle(A,b),Ple(A,[{key:"componentDidMount",value:function(){var T,C;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(C=this.props.margin.top)!==null&&C!==void 0?C:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,C=T.children,O=T.data,N=T.height,M=T.layout,R=In(C,Un);if(R){var D=R.props.defaultIndex;if(!(typeof D!="number"||D<0||D>this.state.tooltipTicks.length-1)){var B=this.state.tooltipTicks[D]&&this.state.tooltipTicks[D].value,I=rw(this.state,O,D,B),z=this.state.tooltipTicks[D].coordinate,H=(this.state.offset.top+N)/2,X=M==="horizontal",Y=X?{x:z,y:H}:{y:z,x:H},$=this.state.formattedGraphicalItems.find(function(Q){var ie=Q.item;return ie.type.name==="Scatter"});$&&(Y=ne(ne({},Y),$.props.points[D].tooltipPosition),I=$.props.points[D].tooltipPayload);var F={activeTooltipIndex:D,isTooltipActive:!0,activeLabel:B,activePayload:I,activeCoordinate:Y};this.setState(F),this.renderCursor(R),this.accessibilityManager.setIndex(D)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,C){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==C.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==T.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==T.margin){var O,N;this.accessibilityManager.setDetails({offset:{left:(O=this.props.margin.left)!==null&&O!==void 0?O:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(T){$1([In(T.children,Un)],[In(this.props.children,Un)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=In(this.props.children,Un);if(T&&typeof T.props.shared=="boolean"){var C=T.props.shared?"axis":"item";return c.indexOf(C)>=0?C:s}return s}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var C=this.container,O=C.getBoundingClientRect(),N=YX(O),M={chartX:Math.round(T.pageX-N.left),chartY:Math.round(T.pageY-N.top)},R=O.width/C.offsetWidth||1,D=this.inRange(M.chartX,M.chartY,R);if(!D)return null;var B=this.state,I=B.xAxisMap,z=B.yAxisMap,H=this.getTooltipEventType(),X=qk(this.state,this.props.data,this.props.layout,D);if(H!=="axis"&&I&&z){var Y=va(I).scale,$=va(z).scale,F=Y&&Y.invert?Y.invert(M.chartX):null,Q=$&&$.invert?$.invert(M.chartY):null;return ne(ne({},M),{},{xValue:F,yValue:Q},X)}return X?ne(ne({},M),X):null}},{key:"inRange",value:function(T,C){var O=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,M=T/O,R=C/O;if(N==="horizontal"||N==="vertical"){var D=this.state.offset,B=M>=D.left&&M<=D.left+D.width&&R>=D.top&&R<=D.top+D.height;return B?{x:M,y:R}:null}var I=this.state,z=I.angleAxisMap,H=I.radiusAxisMap;if(z&&H){var X=va(z);return VR({x:M,y:R},X)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,C=this.getTooltipEventType(),O=In(T,Un),N={};O&&C==="axis"&&(O.props.trigger==="click"?N={onClick:this.handleClick}:N={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 M=wh(this.props,this.handleOuterEvent);return ne(ne({},M),N)}},{key:"addListener",value:function(){J0.on(e1,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){J0.removeListener(e1,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,C,O){for(var N=this.state.formattedGraphicalItems,M=0,R=N.length;M<R;M++){var D=N[M];if(D.item===T||D.props.key===T.key||C===Ei(D.item.type)&&O===D.childIndex)return D}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,C=this.state.offset,O=C.left,N=C.top,M=C.height,R=C.width;return q.createElement("defs",null,q.createElement("clipPath",{id:T},q.createElement("rect",{x:O,y:N,height:M,width:R})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(C,O){var N=zk(O,2),M=N[0],R=N[1];return ne(ne({},C),{},Oe({},M,R.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(C,O){var N=zk(O,2),M=N[0],R=N[1];return ne(ne({},C),{},Oe({},M,R.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var C;return(C=this.state.xAxisMap)===null||C===void 0||(C=C[T])===null||C===void 0?void 0:C.scale}},{key:"getYScaleByAxisId",value:function(T){var C;return(C=this.state.yAxisMap)===null||C===void 0||(C=C[T])===null||C===void 0?void 0:C.scale}},{key:"getItemByXY",value:function(T){var C=this.state,O=C.formattedGraphicalItems,N=C.activeItem;if(O&&O.length)for(var M=0,R=O.length;M<R;M++){var D=O[M],B=D.props,I=D.item,z=I.type.defaultProps!==void 0?ne(ne({},I.type.defaultProps),I.props):I.props,H=Ei(I.type);if(H==="Bar"){var X=(B.data||[]).find(function(Q){return mre(T,Q)});if(X)return{graphicalItem:D,payload:X}}else if(H==="RadialBar"){var Y=(B.data||[]).find(function(Q){return VR(T,Q)});if(Y)return{graphicalItem:D,payload:Y}}else if(sm(D,N)||lm(D,N)||zc(D,N)){var $=$ie({graphicalItem:D,activeTooltipItem:N,itemData:z.data}),F=z.activeIndex===void 0?$:z.activeIndex;return{graphicalItem:ne(ne({},D),{},{childIndex:F}),payload:zc(D,N)?z.data[$]:D.props.data[$]}}}return null}},{key:"render",value:function(){var T=this;if(!tC(this))return null;var C=this.props,O=C.children,N=C.className,M=C.width,R=C.height,D=C.style,B=C.compact,I=C.title,z=C.desc,H=$k(C,Ole),X=Se(H,!1);if(B)return q.createElement(yk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q.createElement(q1,Rs({},X,{width:M,height:R,title:I,desc:z}),this.renderClipPath(),rC(O,this.renderMap)));if(this.props.accessibilityLayer){var Y,$;X.tabIndex=(Y=this.props.tabIndex)!==null&&Y!==void 0?Y:0,X.role=($=this.props.role)!==null&&$!==void 0?$:"application",X.onKeyDown=function(Q){T.accessibilityManager.keyboardEvent(Q)},X.onFocus=function(){T.accessibilityManager.focus()}}var F=this.parseEventsOfWrapper();return q.createElement(yk,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},q.createElement("div",Rs({className:Pe("recharts-wrapper",N),style:ne({position:"relative",cursor:"default",width:M,height:R},D)},F,{ref:function(ie){T.container=ie}}),q.createElement(q1,Rs({},X,{width:M,height:R,title:I,desc:z,style:Ule}),this.renderClipPath(),rC(O,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(P.Component);Oe(w,"displayName",n),Oe(w,"defaultProps",ne({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},y)),Oe(w,"getDerivedStateFromProps",function(b,A){var _=b.dataKey,T=b.data,C=b.children,O=b.width,N=b.height,M=b.layout,R=b.stackOffset,D=b.margin,B=A.dataStartIndex,I=A.dataEndIndex;if(A.updateId===void 0){var z=Ik(b);return ne(ne(ne({},z),{},{updateId:0},S(ne(ne({props:b},z),{},{updateId:0}),A)),{},{prevDataKey:_,prevData:T,prevWidth:O,prevHeight:N,prevLayout:M,prevStackOffset:R,prevMargin:D,prevChildren:C})}if(_!==A.prevDataKey||T!==A.prevData||O!==A.prevWidth||N!==A.prevHeight||M!==A.prevLayout||R!==A.prevStackOffset||!ks(D,A.prevMargin)){var H=Ik(b),X={chartX:A.chartX,chartY:A.chartY,isTooltipActive:A.isTooltipActive},Y=ne(ne({},qk(A,T,M)),{},{updateId:A.updateId+1}),$=ne(ne(ne({},H),X),Y);return ne(ne(ne({},$),S(ne({props:b},$),A)),{},{prevDataKey:_,prevData:T,prevWidth:O,prevHeight:N,prevLayout:M,prevStackOffset:R,prevMargin:D,prevChildren:C})}if(!$1(C,A.prevChildren)){var F,Q,ie,se,L=In(C,nl),G=L&&(F=(Q=L.props)===null||Q===void 0?void 0:Q.startIndex)!==null&&F!==void 0?F:B,re=L&&(ie=(se=L.props)===null||se===void 0?void 0:se.endIndex)!==null&&ie!==void 0?ie:I,fe=G!==B||re!==I,ve=!Ne(T),je=ve&&!fe?A.updateId:A.updateId+1;return ne(ne({updateId:je},S(ne(ne({props:b},A),{},{updateId:je,dataStartIndex:G,dataEndIndex:re}),A)),{},{prevChildren:C,dataStartIndex:G,dataEndIndex:re})}return null}),Oe(w,"renderActiveDot",function(b,A,_){var T;return P.isValidElement(b)?T=P.cloneElement(b,A):_e(b)?T=b(A):T=q.createElement(sf,A),q.createElement(qe,{className:"recharts-active-dot",key:_},T)});var j=P.forwardRef(function(A,_){return q.createElement(w,Rs({},A,{ref:_}))});return j.displayName=w.displayName,j},Qle=mm({chartName:"LineChart",GraphicalChild:lf,axisComponents:[{axisType:"xAxis",AxisComp:Ta},{axisType:"yAxis",AxisComp:Ea}],formatAxisMap:Hj}),Jle=mm({chartName:"BarChart",GraphicalChild:_a,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:Ta},{axisType:"yAxis",AxisComp:Ea}],formatAxisMap:Hj}),eue=mm({chartName:"PieChart",GraphicalChild:Bi,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:om},{axisType:"radiusAxis",AxisComp:im}],formatAxisMap:_ee,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),tue=mm({chartName:"AreaChart",GraphicalChild:ki,axisComponents:[{axisType:"xAxis",AxisComp:Ta},{axisType:"yAxis",AxisComp:Ea}],formatAxisMap:Hj});function de({children:e,className:t,hover:n=!1,padding:r="lg"}){const a={sm:"p-4",md:"p-5",lg:"p-6 md:p-8"};return p.jsx(sr.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},transition:{duration:.18,ease:"easeOut"},className:Bt("bg-surface rounded-[20px] card-shadow",a[r],n&&"transition-shadow duration-200 hover:shadow-hover cursor-pointer",t),children:e})}function tt({title:e,subtitle:t,action:n,className:r}){return p.jsxs("div",{className:Bt("flex items-start justify-between mb-6",r),children:[p.jsxs("div",{children:[p.jsx("h3",{className:"text-base font-semibold text-text-primary",children:e}),t&&p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:t})]}),n&&p.jsx("div",{children:n})]})}const nue=[{month:"Jan",revenue:42e3,target:45e3},{month:"Feb",revenue:48e3,target:46e3},{month:"Mar",revenue:51e3,target:48e3},{month:"Apr",revenue:47e3,target:5e4},{month:"May",revenue:56e3,target:52e3},{month:"Jun",revenue:62e3,target:55e3},{month:"Jul",revenue:58e3,target:57e3},{month:"Aug",revenue:67e3,target:6e4},{month:"Sep",revenue:71e3,target:63e3},{month:"Oct",revenue:69e3,target:66e3},{month:"Nov",revenue:78e3,target:7e4},{month:"Dec",revenue:85e3,target:75e3}],rue=[{key:"revenue",label:"Revenue"},{key:"mrr",label:"MRR"},{key:"arr",label:"ARR"}];function iue(e){return`${(e/1e3).toFixed(0)}k`}function aue(){const[e,t]=P.useState("revenue");return p.jsxs(de,{children:[p.jsx(tt,{title:"Revenue Overview",subtitle:"Monthly revenue vs target",action:p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:rue.map(n=>p.jsx("button",{onClick:()=>t(n.key),className:Bt("px-3 py-1.5 text-xs font-medium rounded-lg transition-colors",e===n.key?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"),children:n.label},n.key))})}),p.jsx("div",{className:"h-[280px]",children:p.jsx(Ph,{width:"100%",height:"100%",children:p.jsxs(tue,{data:nue,margin:{top:5,right:5,left:-10,bottom:0},children:[p.jsx("defs",{children:p.jsxs("linearGradient",{id:"colorRevenue",x1:"0",y1:"0",x2:"0",y2:"1",children:[p.jsx("stop",{offset:"5%",stopColor:"#2563EB",stopOpacity:.08}),p.jsx("stop",{offset:"95%",stopColor:"#2563EB",stopOpacity:0})]})}),p.jsx(gp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),p.jsx(Ta,{dataKey:"month",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),p.jsx(Ea,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:iue,dx:-5}),p.jsx(Un,{content:({active:n,payload:r,label:a})=>!n||!(r!=null&&r.length)?null:p.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary mb-2",children:a}),r.map((s,l)=>p.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[p.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:s.color||"#2563EB"}}),p.jsxs("span",{className:"text-text-secondary",children:[s.name,":"]}),p.jsxs("span",{className:"font-semibold text-text-primary",children:["€",Number(s.value).toLocaleString()]})]},l))]})}),p.jsx(ki,{type:"monotone",dataKey:"revenue",stroke:"#2563EB",strokeWidth:2,fill:"url(#colorRevenue)",dot:!1,activeDot:{r:4,strokeWidth:0,fill:"#2563EB"}}),p.jsx(ki,{type:"monotone",dataKey:"target",stroke:"#9CA3AF",strokeWidth:1.5,strokeDasharray:"4 4",fill:"none",dot:!1})]})})})]})}function Ye({children:e,variant:t="default",size:n="sm",className:r}){const a={default:"bg-bg text-text-secondary",success:"bg-success-light text-success",warning:"bg-warning-light text-warning",danger:"bg-danger-light text-danger",primary:"bg-primary-light text-primary"},s={sm:"px-2 py-0.5 text-[11px]",md:"px-2.5 py-1 text-xs"};return p.jsx("span",{className:Bt("inline-flex items-center rounded-full font-medium",a[t],s[n],r),children:e})}const oue=[{id:"1",type:"deal",title:"Enterprise deal closed",description:"Acme Corp signed €85,000 contract",time:new Date(Date.now()-1e3*60*15).toISOString(),user:"Sarah Chen"},{id:"2",type:"customer",title:"New customer onboarded",description:"TechStart AB joined as a premium client",time:new Date(Date.now()-1e3*60*45).toISOString(),user:"Marcus Lind"},{id:"3",type:"invoice",title:"Invoice #INV-2024-0089 paid",description:"€12,400 received from Nordic Solutions",time:new Date(Date.now()-1e3*60*60*2).toISOString()},{id:"4",type:"contract",title:"Contract renewed",description:"Global Industries extended for 2 years",time:new Date(Date.now()-1e3*60*60*4).toISOString(),user:"Elena Rossi"},{id:"5",type:"employee",title:"New team member",description:"Johan Berg joined the Engineering team",time:new Date(Date.now()-1e3*60*60*6).toISOString()},{id:"6",type:"deal",title:"Deal moved to negotiation",description:"MegaCorp €120K proposal under review",time:new Date(Date.now()-1e3*60*60*8).toISOString(),user:"Sarah Chen"}],sue={deal:{icon:Hr,color:"primary",label:"Deal"},customer:{icon:Oa,color:"success",label:"Customer"},invoice:{icon:co,color:"warning",label:"Invoice"},contract:{icon:oH,color:"primary",label:"Contract"},employee:{icon:P1,color:"success",label:"HR"}};function lue(){return p.jsxs(de,{children:[p.jsx(tt,{title:"Recent Activity",subtitle:"Latest updates across your organization"}),p.jsx("div",{className:"space-y-0",children:oue.map((e,t)=>{const n=sue[e.type],r=n.icon;return p.jsxs(sr.div,{initial:{opacity:0,x:-8},animate:{opacity:1,x:0},transition:{duration:.15,delay:t*.03},className:"flex items-start gap-3 py-3.5 border-b border-border/40 last:border-0",children:[p.jsx("div",{className:`w-9 h-9 rounded-xl bg-${n.color}-light flex items-center justify-center shrink-0`,children:p.jsx(r,{size:16,className:`text-${n.color}`})}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("p",{className:"text-sm font-medium text-text-primary truncate",children:e.title}),p.jsx(Ye,{variant:n.color,size:"sm",children:n.label})]}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.description}),p.jsxs("div",{className:"flex items-center gap-2 mt-1.5",children:[p.jsx("span",{className:"text-[11px] text-text-secondary/60",children:Xw(e.time)}),e.user&&p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"text-[11px] text-text-secondary/40",children:"·"}),p.jsx("span",{className:"text-[11px] text-text-secondary/60",children:e.user})]})]})]})]},e.id)})})]})}function Qe({className:e}){return p.jsx("div",{className:Bt("animate-pulse rounded-[14px] bg-text-secondary/8",e)})}function Zr({children:e,className:t}){return p.jsx("div",{className:"w-full overflow-x-auto",children:p.jsx("table",{className:Bt("w-full",t),children:e})})}function Qr({children:e,className:t}){return p.jsx("thead",{className:Bt("border-b border-border",t),children:e})}function Jr({children:e,className:t}){return p.jsx("tbody",{className:t,children:e})}function ut({children:e,className:t}){return p.jsx("tr",{className:Bt("border-b border-border/50 transition-colors hover:bg-bg/50",t),children:e})}function ge({children:e,className:t,align:n="left",colSpan:r}){const a={left:"text-left",center:"text-center",right:"text-right"};return p.jsx("th",{colSpan:r,className:Bt("py-3 px-4 text-xs font-medium text-text-secondary uppercase tracking-wider",a[n],t),children:e})}function he({children:e,className:t,align:n="left",colSpan:r}){const a={left:"text-left",center:"text-center",right:"text-right"};return p.jsx("td",{colSpan:r,className:Bt("py-3.5 px-4 text-sm text-text-primary",a[n],t),children:e})}function zu({src:e,title:t}){return p.jsxs(de,{className:"overflow-hidden",children:[p.jsx(tt,{title:t}),p.jsx("iframe",{src:e,width:"100%",height:"300",frameBorder:"0",title:t,className:"bg-surface"})]})}function uue(){const[e,t]=P.useState(!0),[n,r]=P.useState(""),[a,s]=P.useState(0),[l,c]=P.useState(0),[f,d]=P.useState(0),[m,y]=P.useState([]),[g,S]=P.useState(0),[w,j]=P.useState(0),[b,A]=P.useState(0),[_,T]=P.useState(0),[C,O]=P.useState(0);P.useEffect(()=>{async function R(){t(!0),r("");try{const[D,B,I,z,H,X]=await Promise.all([io.balance(),Es.mrr(),sh.customers(),Es.deals(),HE.balanceSheet("2026-01").catch(()=>null),HE.incomeStatement("2026-01").catch(()=>null)]);s(D.total_assets||0),c(B.mrr||0),d(I.total||0);const F=z;y(F.deals||[]),S(F.total||0),H&&(j(H.total_assets||0),A(H.total_liabilities||0),T(H.total_equity||0)),X&&O(X.net_income||0)}catch(D){r(D instanceof Error?D.message:"Failed to load dashboard data")}finally{t(!1)}}R()},[]);const N=[{label:"Total Assets",value:Ee(a),change:0,changeLabel:"vs last month",icon:p.jsx(Xu,{size:18})},{label:"Active Customers",value:String(f),change:0,changeLabel:"vs last month",icon:p.jsx(Oa,{size:18})},{label:"MRR",value:Ee(l),change:0,changeLabel:"vs last month",icon:p.jsx(Hr,{size:18})},{label:"Open Deals",value:String(g),change:0,changeLabel:"vs last month",icon:p.jsx(bH,{size:18})}],M=[{label:"Ledger Assets",value:Ee(w),change:0,changeLabel:"per balansräkning",icon:p.jsx(Xu,{size:18})},{label:"Ledger Liabilities",value:Ee(b),change:0,changeLabel:"per balansräkning",icon:p.jsx(Hr,{size:18})},{label:"Net Income",value:Ee(C),change:0,changeLabel:"per resultaträkning",icon:p.jsx(Hr,{size:18})},{label:"Equity",value:Ee(_),change:0,changeLabel:"per balansräkning",icon:p.jsx(Xu,{size:18})}];return e?p.jsxs("div",{className:"space-y-10",children:[p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:Array.from({length:4}).map((R,D)=>p.jsx(Qe,{className:"h-[140px]"},D))}),p.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6",children:[p.jsx(Qe,{className:"h-[320px] xl:col-span-2"}),p.jsx(Qe,{className:"h-[320px]"})]}),p.jsx(Qe,{className:"h-[300px]"})]}):n?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:n})}):p.jsxs("div",{className:"space-y-10",children:[p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:N.map((R,D)=>p.jsx(FE,{...R,index:D},R.label))}),p.jsxs("div",{className:"mt-8",children:[p.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Ledger (Bokföring)"}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 xl:grid-cols-4 gap-5",children:M.map((R,D)=>p.jsx(FE,{...R,index:D},R.label))})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Infrastructure Health",subtitle:"Real-time system metrics from Grafana"}),p.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6 p-6",children:[p.jsx(zu,{src:"http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=1&refresh=5s",title:"CPU Usage"}),p.jsx(zu,{src:"http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=2&refresh=5s",title:"Memory Usage"}),p.jsx(zu,{src:"http://localhost:3050/d-solo/amlzdh/aamos-system-health?orgId=1&panelId=3&refresh=5s",title:"Disk Usage"})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Service Status",subtitle:"All AAMOS services health check"}),p.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-2 gap-6 p-6",children:[p.jsx(zu,{src:"http://localhost:3050/d-solo/aamos/service-status?orgId=1&panelId=4",title:"PM2 Processes"}),p.jsx(zu,{src:"http://localhost:3050/d-solo/aamos/service-status?orgId=1&panelId=5",title:"Docker Containers"})]})]}),p.jsxs("div",{className:"grid grid-cols-1 xl:grid-cols-3 gap-6",children:[p.jsx("div",{className:"xl:col-span-2",children:p.jsx(aue,{})}),p.jsx("div",{children:p.jsx(lue,{})})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Recent Deals",subtitle:"Latest deals across your pipeline",action:p.jsxs("button",{className:"text-sm text-primary font-medium flex items-center gap-1 hover:underline",children:["View all ",p.jsx(C1,{size:14})]})}),p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Deal"}),p.jsx(ge,{children:"Company"}),p.jsx(ge,{align:"right",children:"Value"}),p.jsx(ge,{children:"Stage"}),p.jsx(ge,{align:"right",children:"Probability"}),p.jsx(ge,{children:"Close Date"})]})}),p.jsxs(Jr,{children:[m.length===0&&p.jsx(ut,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No deals found"})}),m.map(R=>p.jsxs(ut,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:R.name})}),p.jsx(he,{children:R.company}),p.jsx(he,{align:"right",children:Ee(R.value)}),p.jsx(he,{children:p.jsx(Ye,{variant:R.stage==="Closed Won"?"success":R.stage==="Negotiation"?"primary":"default",children:R.stage})}),p.jsxs(he,{align:"right",children:[R.probability,"%"]}),p.jsx(he,{children:dr(R.expectedClose)})]},R.id))]})]})]})]})}const cue={getRealBriefing:()=>nt.get("/briefing/real")};function Yd({title:e,value:t,subtitle:n,icon:r,trend:a,trendValue:s,variant:l="default"}){const c={default:"bg-surface border-border",success:"bg-success/5 border-success/20",warning:"bg-warning/5 border-warning/20",danger:"bg-danger/5 border-danger/20"};return p.jsxs("div",{className:`p-4 rounded-xl border ${c[l]}`,children:[p.jsxs("div",{className:"flex items-start justify-between",children:[p.jsxs("div",{className:"space-y-1",children:[p.jsx("p",{className:"text-sm text-text-secondary",children:e}),p.jsx("p",{className:"text-2xl font-semibold",children:t}),n&&p.jsx("p",{className:"text-xs text-text-tertiary",children:n})]}),r&&p.jsx("div",{className:"text-text-secondary",children:r})]}),a&&p.jsxs("div",{className:"flex items-center gap-1 mt-2",children:[a==="up"&&p.jsx(Hr,{size:14,className:"text-success"}),a==="down"&&p.jsx(Kw,{size:14,className:"text-danger"}),a==="neutral"&&p.jsx(Fw,{size:14,className:"text-text-secondary"}),p.jsx("span",{className:`text-xs ${a==="up"?"text-success":a==="down"?"text-danger":"text-text-secondary"}`,children:s})]})]})}function fue({alert:e}){const t={info:{icon:p.jsx(Fw,{size:16}),color:"text-primary bg-primary/5 border-primary/20"},warning:{icon:p.jsx(Sa,{size:16}),color:"text-warning bg-warning/5 border-warning/20"},critical:{icon:p.jsx(Sa,{size:16}),color:"text-danger bg-danger/5 border-danger/20"}},n=t[e.level]||t.info;return p.jsx("div",{className:`p-3 rounded-lg border ${n.color}`,children:p.jsxs("div",{className:"flex items-start gap-2",children:[n.icon,p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium",children:e.title}),p.jsx("p",{className:"text-xs opacity-80 mt-0.5",children:e.description})]}),p.jsx(Ye,{variant:"default",className:"text-xs",children:e.source})]})})}function due({action:e}){const t={10:"bg-danger text-white",9:"bg-danger/80 text-white",8:"bg-warning text-white",7:"bg-warning/80 text-white",6:"bg-primary text-white",5:"bg-primary/80 text-white"};return p.jsx("div",{className:"p-3 rounded-lg border border-border bg-surface hover:bg-surface-hover transition-colors cursor-pointer group",children:p.jsxs("div",{className:"flex items-start gap-3",children:[p.jsx("div",{className:`w-6 h-6 rounded-full flex items-center justify-center text-xs font-medium shrink-0 ${t[e.priority]||"bg-text-secondary text-white"}`,children:e.priority}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium group-hover:text-primary transition-colors",children:e.title}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.description}),p.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[p.jsxs("span",{className:"text-xs text-text-tertiary flex items-center gap-1",children:[p.jsx(Is,{size:12}),e.time_estimate]}),p.jsx("span",{className:"text-xs text-text-tertiary",children:e.impact})]})]}),p.jsx(Z9,{size:16,className:"text-text-tertiary group-hover:text-primary transition-colors shrink-0"})]})})}function hue({task:e}){const t={critical:"danger",high:"warning",medium:"default",low:"success"};return p.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg hover:bg-surface-hover transition-colors",children:[p.jsx("div",{className:"w-2 h-2 rounded-full bg-warning shrink-0"}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm truncate",children:e.title}),p.jsxs("div",{className:"flex items-center gap-2 mt-0.5",children:[p.jsx(Ye,{variant:t[e.priority],className:"text-xs",children:e.priority}),p.jsx("span",{className:"text-xs text-text-tertiary",children:e.category})]})]}),p.jsxs("span",{className:"text-xs text-text-tertiary shrink-0",children:[e.days_open,"d"]})]})}function pue({deal:e}){return p.jsxs("div",{className:"flex items-center gap-3 p-2 rounded-lg hover:bg-surface-hover transition-colors",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 flex items-center justify-center shrink-0",children:p.jsx(lc,{size:16,className:"text-primary"})}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium truncate",children:e.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:e.customer})]}),p.jsxs("div",{className:"text-right shrink-0",children:[p.jsx("p",{className:"text-sm font-medium",children:Ee(e.value)}),p.jsxs("p",{className:"text-xs text-text-tertiary",children:[e.probability,"%"]})]})]})}function mue(){var S;const[e,t]=P.useState(null),[n,r]=P.useState(!0),[a,s]=P.useState("");if(P.useEffect(()=>{async function w(){try{r(!0);const b=await cue.getRealBriefing();t(b)}catch(b){s(b instanceof Error?b.message:"Failed to load briefing")}finally{r(!1)}}w();const j=setInterval(w,3e5);return()=>clearInterval(j)},[]),n)return p.jsxs("div",{className:"space-y-6",children:[p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:Array.from({length:4}).map((w,j)=>p.jsx(Qe,{className:"h-[120px]"},j))}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[p.jsx(Qe,{className:"h-[400px] lg:col-span-2"}),p.jsx(Qe,{className:"h-[400px]"})]})]});if(a)return p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsxs("div",{className:"text-center",children:[p.jsx(Sa,{size:48,className:"text-danger mx-auto mb-4"}),p.jsx("p",{className:"text-danger font-medium",children:a}),p.jsx("button",{onClick:()=>window.location.reload(),className:"mt-4 px-4 py-2 bg-primary text-white rounded-lg hover:bg-primary-hover transition-colors",children:"Försök igen"})]})});if(!e)return null;const{company_health:l,my_tasks:c,my_deals:f,team_overview:d,financial_status:m,alerts:y,actions:g}=e;return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-2xl font-bold",children:"Dagsöversikt"}),p.jsxs("p",{className:"text-text-secondary",children:[e.user.name," • ",new Date(e.generated_at).toLocaleDateString("sv-SE",{weekday:"long",year:"numeric",month:"long",day:"numeric"})]})]}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:`w-2 h-2 rounded-full ${l.status==="healthy"?"bg-success":l.status==="warning"?"bg-warning":"bg-danger"}`}),p.jsx("span",{className:"text-sm text-text-secondary capitalize",children:l.status})]})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4",children:[p.jsx(Yd,{title:"Cash Position",value:Ee(l.cash_position),subtitle:"Eget kapital",icon:p.jsx(Xu,{size:20}),trend:l.profit_margin>0?"up":"down",trendValue:`${IE(l.profit_margin)}% marginal`,variant:l.cash_position>1e6?"success":l.cash_position>5e5?"warning":"danger"}),p.jsx(Yd,{title:"Pipeline",value:Ee(l.total_pipeline),subtitle:`${l.active_deals} aktiva deals`,icon:p.jsx(lc,{size:20}),trend:"up",trendValue:"+12% vs förra månaden"}),p.jsx(Yd,{title:"Team",value:`${d.active_now}/${d.total_members}`,subtitle:`${d.on_leave} på leave`,icon:p.jsx(Oa,{size:20}),trend:d.on_leave>0?"neutral":"up",trendValue:d.on_leave>0?`${d.on_leave} borta idag`:"Alla närvarande"}),p.jsx(Yd,{title:"Mina Tasks",value:c.length,subtitle:`${c.filter(w=>w.priority==="critical").length} kritiska`,icon:p.jsx(r4,{size:20}),variant:c.filter(w=>w.priority==="critical").length>0?"danger":c.filter(w=>w.priority==="high").length>0?"warning":"success"})]}),y.length>0&&p.jsxs("div",{className:"space-y-2",children:[p.jsxs("h2",{className:"text-lg font-semibold flex items-center gap-2",children:[p.jsx(Sa,{size:20,className:"text-warning"}),"Varningar"]}),p.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-3",children:y.map((w,j)=>p.jsx(fue,{alert:w},j))})]}),p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[p.jsxs("div",{className:"lg:col-span-2 space-y-6",children:[g.length>0&&p.jsxs(de,{children:[p.jsx(tt,{title:"Rekommenderade Åtgärder",subtitle:"Prioriterade baserat på din roll och aktuell data"}),p.jsx("div",{className:"p-4 space-y-3",children:g.map((w,j)=>p.jsx(due,{action:w},j))})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Mina Uppgifter",subtitle:`${c.length} öppna uppgifter`}),p.jsx("div",{className:"p-4 space-y-1",children:c.length===0?p.jsxs("div",{className:"text-center py-8 text-text-secondary",children:[p.jsx(Zc,{size:48,className:"mx-auto mb-2 text-success"}),p.jsx("p",{children:"Alla uppgifter är klara!"})]}):c.map(w=>p.jsx(hue,{task:w},w.id))})]}),f.length>0&&p.jsxs(de,{children:[p.jsx(tt,{title:"Mina Deals",subtitle:`${f.length} aktiva förhandlingar`}),p.jsx("div",{className:"p-4 space-y-1",children:f.map(w=>p.jsx(pue,{deal:w},w.id))})]})]}),p.jsxs("div",{className:"space-y-6",children:[p.jsxs(de,{children:[p.jsx(tt,{title:"Teamöversikt",subtitle:`${d.total_members} medlemmar`}),p.jsxs("div",{className:"p-4",children:[p.jsxs("div",{className:"grid grid-cols-3 gap-2 mb-4",children:[p.jsxs("div",{className:"text-center p-2 bg-success/5 rounded-lg",children:[p.jsx("p",{className:"text-2xl font-semibold text-success",children:d.active_now}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Aktiva"})]}),p.jsxs("div",{className:"text-center p-2 bg-warning/5 rounded-lg",children:[p.jsx("p",{className:"text-2xl font-semibold text-warning",children:d.on_leave}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Borta"})]}),p.jsxs("div",{className:"text-center p-2 bg-primary/5 rounded-lg",children:[p.jsx("p",{className:"text-2xl font-semibold text-primary",children:d.open_tickets}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Tickets"})]})]}),p.jsx("div",{className:"space-y-2",children:d.members.slice(0,5).map((w,j)=>p.jsxs("div",{className:"flex items-center gap-2 p-2 rounded-lg hover:bg-surface-hover transition-colors",children:[p.jsx("div",{className:"w-8 h-8 rounded-full bg-primary/10 flex items-center justify-center text-xs font-medium text-primary",children:w.name.split(" ").map(b=>b[0]).join("")}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsx("p",{className:"text-sm font-medium truncate",children:w.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:w.role})]}),w.open_tasks>0&&p.jsx(Ye,{variant:"warning",className:"text-xs",children:w.open_tasks})]},j))})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Finansiell Status",subtitle:"Från ledger i realtid"}),p.jsxs("div",{className:"p-4 space-y-3",children:[p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Tillgångar"}),p.jsx("span",{className:"text-sm font-medium",children:Ee(m.total_assets)})]}),p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Skulder"}),p.jsx("span",{className:"text-sm font-medium",children:Ee(m.total_liabilities)})]}),p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Eget Kapital"}),p.jsx("span",{className:"text-sm font-medium text-success",children:Ee(m.equity)})]}),m.runway_months>0&&p.jsxs("div",{className:"flex justify-between items-center",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Runway"}),p.jsxs("span",{className:"text-sm font-medium",children:[IE(m.runway_months)," mån"]})]}),p.jsxs("div",{className:"pt-2 border-t border-border",children:[p.jsx("p",{className:"text-xs text-text-tertiary mb-2",children:"Top Konton"}),(S=m.top_accounts)==null?void 0:S.slice(0,3).map((w,j)=>p.jsxs("div",{className:"flex justify-between items-center py-1",children:[p.jsx("span",{className:"text-xs text-text-secondary",children:w.name}),p.jsx("span",{className:"text-xs font-medium",children:Ee(w.amount)})]},j))]})]})]})]})]})]})}function yue(){return p.jsx(mue,{})}function vue(){const{user:e}=Fc(),[t,n]=P.useState(null),[r,a]=P.useState(!0),[s,l]=P.useState(!1),[c,f]=P.useState("general");P.useEffect(()=>{setTimeout(()=>{n({id:(e==null?void 0:e.id)||"3847477b-3d56-4975-9157-ae8f9ce52aa7",name:(e==null?void 0:e.name)||"Erik Svensson",email:(e==null?void 0:e.email)||"erik@landvex.com",phone:"+46 70 123 45 67",role:(e==null?void 0:e.role)||"admin",department:"Ledning",timezone:"Europe/Stockholm",language:"sv",notifications:{email:!0,push:!0,sms:!1},theme:"light",twoFactorEnabled:!1,lastLogin:new Date().toISOString(),createdAt:"2026-01-15T10:30:00Z"}),a(!1)},500)},[e]);const d=async()=>{l(!0),await new Promise(y=>setTimeout(y,1e3)),l(!1)};if(r)return p.jsxs("div",{className:"space-y-6",children:[p.jsx(Qe,{className:"h-[200px]"}),p.jsx(Qe,{className:"h-[400px]"})]});if(!t)return null;const m=[{id:"general",label:"Allmänt",icon:R1},{id:"security",label:"Säkerhet",icon:oh},{id:"notifications",label:"Notifikationer",icon:M1},{id:"preferences",label:"Inställningar",icon:ah}];return p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-2xl font-bold",children:"Min Profil"}),p.jsx("p",{className:"text-text-secondary",children:"Hantera dina kontoinställningar"})]}),p.jsx(Kt,{onClick:d,disabled:s,icon:s?void 0:p.jsx(gH,{size:16}),children:s?"Sparar...":"Spara ändringar"})]}),p.jsxs(de,{className:"relative overflow-hidden",children:[p.jsx("div",{className:"h-32 bg-gradient-to-r from-primary to-primary-hover"}),p.jsxs("div",{className:"px-6 pb-6",children:[p.jsx("div",{className:"relative -mt-16 mb-4",children:p.jsxs("div",{className:"w-32 h-32 rounded-2xl bg-surface border-4 border-bg flex items-center justify-center text-4xl font-bold text-primary relative",children:[t.avatar?p.jsx("img",{src:t.avatar,alt:t.name,className:"w-full h-full rounded-2xl object-cover"}):t.name.split(" ").map(y=>y[0]).join(""),p.jsx("button",{className:"absolute bottom-0 right-0 w-8 h-8 bg-primary text-white rounded-full flex items-center justify-center hover:bg-primary-hover transition-colors",children:p.jsx(J9,{size:14})})]})}),p.jsxs("div",{className:"flex items-start justify-between",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-xl font-semibold",children:t.name}),p.jsx("p",{className:"text-text-secondary",children:t.email}),p.jsxs("div",{className:"flex items-center gap-2 mt-2",children:[p.jsx(Ye,{variant:"primary",children:t.role}),p.jsx(Ye,{variant:"default",children:t.department})]})]}),p.jsxs("div",{className:"text-right text-sm text-text-secondary",children:[p.jsxs("p",{children:["Senaste inloggning: ",dr(t.lastLogin)]}),p.jsxs("p",{children:["Medlem sedan: ",dr(t.createdAt)]})]})]})]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto",children:m.map(y=>p.jsxs("button",{onClick:()=>f(y.id),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap flex items-center gap-2 ${c===y.id?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:[p.jsx(y.icon,{size:16}),y.label]},y.id))}),c==="general"&&p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(de,{children:[p.jsx(tt,{title:"Personlig information",subtitle:"Uppdatera dina kontouppgifter"}),p.jsxs("div",{className:"p-4 space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Fullständigt namn"}),p.jsxs("div",{className:"relative",children:[p.jsx(R1,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",value:t.name,onChange:y=>n({...t,name:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"E-post"}),p.jsxs("div",{className:"relative",children:[p.jsx(wo,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"email",value:t.email,onChange:y=>n({...t,email:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Telefon"}),p.jsxs("div",{className:"relative",children:[p.jsx(zE,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"tel",value:t.phone||"",onChange:y=>n({...t,phone:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Avdelning"}),p.jsxs("div",{className:"relative",children:[p.jsx(Gw,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",value:t.department||"",onChange:y=>n({...t,department:y.target.value}),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Kontoinformation",subtitle:"Dina kontodetaljer"}),p.jsxs("div",{className:"p-4 space-y-4",children:[p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"Användar-ID"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.id})]}),p.jsx(Ye,{variant:"default",children:"Aktiv"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"Roll"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.role})]}),p.jsx(oh,{size:16,className:"text-primary"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"Tidszon"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.timezone})]}),p.jsx(ah,{size:16,className:"text-text-secondary"})]}),p.jsxs("div",{className:"flex items-center justify-between py-3",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"Språk"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.language==="sv"?"Svenska":t.language})]}),p.jsx(ah,{size:16,className:"text-text-secondary"})]})]})]})]}),c==="security"&&p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(de,{children:[p.jsx(tt,{title:"Lösenord",subtitle:"Uppdatera ditt lösenord"}),p.jsxs("div",{className:"p-4 space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Nuvarande lösenord"}),p.jsxs("div",{className:"relative",children:[p.jsx(kE,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"password",placeholder:"••••••••",className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Nytt lösenord"}),p.jsx("input",{type:"password",placeholder:"Minst 8 tecken",className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Bekräfta nytt lösenord"}),p.jsx("input",{type:"password",placeholder:"Upprepa lösenord",className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm"})]}),p.jsxs(Kt,{variant:"secondary",className:"w-full",children:[p.jsx(kE,{size:16,className:"mr-2"}),"Ändra lösenord"]})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Tvåfaktorsautentisering",subtitle:"Öka säkerheten på ditt konto"}),p.jsxs("div",{className:"p-4",children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:"2FA-status"}),p.jsx("p",{className:"text-xs text-text-secondary",children:t.twoFactorEnabled?"Aktiverad":"Ej aktiverad"})]}),p.jsx(Ye,{variant:t.twoFactorEnabled?"success":"default",children:t.twoFactorEnabled?"Aktiv":"Inaktiv"})]}),!t.twoFactorEnabled&&p.jsxs(Kt,{className:"w-full",children:[p.jsx(oh,{size:16,className:"mr-2"}),"Aktivera 2FA"]})]})]})]}),c==="notifications"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Notifikationsinställningar",subtitle:"Hantera hur du får notifieringar"}),p.jsx("div",{className:"p-4 space-y-4",children:[{key:"email",label:"E-postnotifikationer",description:"Få uppdateringar via e-post",icon:wo},{key:"push",label:"Push-notifikationer",description:"Få notifikationer i webbläsaren",icon:M1},{key:"sms",label:"SMS-notifikationer",description:"Få viktiga uppdateringar via SMS",icon:zE}].map(y=>p.jsxs("div",{className:"flex items-center justify-between py-3 border-b border-border last:border-0",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center text-primary",children:p.jsx(y.icon,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium",children:y.label}),p.jsx("p",{className:"text-xs text-text-secondary",children:y.description})]})]}),p.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[p.jsx("input",{type:"checkbox",checked:t.notifications[y.key],onChange:g=>n({...t,notifications:{...t.notifications,[y.key]:g.target.checked}}),className:"sr-only peer"}),p.jsx("div",{className:"w-11 h-6 bg-border peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-primary"})]})]},y.key))})]}),c==="preferences"&&p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6",children:[p.jsxs(de,{children:[p.jsx(tt,{title:"Utseende",subtitle:"Anpassa hur BOC ser ut"}),p.jsx("div",{className:"p-4 space-y-4",children:p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-2",children:"Tema"}),p.jsx("div",{className:"grid grid-cols-3 gap-3",children:[{id:"light",label:"Ljust",icon:SH},{id:"dark",label:"Mörkt",icon:mH},{id:"system",label:"System",icon:pH}].map(y=>p.jsxs("button",{onClick:()=>n({...t,theme:y.id}),className:`p-3 rounded-xl border text-center transition-colors ${t.theme===y.id?"border-primary bg-primary/5 text-primary":"border-border hover:border-primary/30"}`,children:[p.jsx(y.icon,{size:20,className:"mx-auto mb-1"}),p.jsx("span",{className:"text-xs",children:y.label})]},y.id))})]})})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Regionala inställningar",subtitle:"Språk och tidszon"}),p.jsxs("div",{className:"p-4 space-y-4",children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Språk"}),p.jsxs("select",{value:t.language,onChange:y=>n({...t,language:y.target.value}),className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm",children:[p.jsx("option",{value:"sv",children:"Svenska"}),p.jsx("option",{value:"en",children:"English"}),p.jsx("option",{value:"no",children:"Norsk"}),p.jsx("option",{value:"da",children:"Dansk"}),p.jsx("option",{value:"fi",children:"Suomi"})]})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-medium mb-1",children:"Tidszon"}),p.jsxs("select",{value:t.timezone,onChange:y=>n({...t,timezone:y.target.value}),className:"w-full h-10 px-4 rounded-[14px] border bg-surface text-sm",children:[p.jsx("option",{value:"Europe/Stockholm",children:"Stockholm (CET)"}),p.jsx("option",{value:"Europe/Oslo",children:"Oslo (CET)"}),p.jsx("option",{value:"Europe/Copenhagen",children:"Köpenhamn (CET)"}),p.jsx("option",{value:"Europe/Helsinki",children:"Helsingfors (EET)"}),p.jsx("option",{value:"UTC",children:"UTC"})]})]})]})]})]})]})}function Vk({icon:e,title:t,description:n,action:r,className:a}){return p.jsxs("div",{className:Bt("flex flex-col items-center justify-center py-16 text-center",a),children:[e&&p.jsx("div",{className:"mb-4 text-text-secondary/40",children:e}),p.jsx("h3",{className:"text-sm font-medium text-text-primary",children:t}),n&&p.jsx("p",{className:"mt-1 text-sm text-text-secondary max-w-sm",children:n}),r&&p.jsx("div",{className:"mt-4",children:r})]})}const gue=["Customers","Leads","Pipeline"];function xue(){const[e,t]=P.useState("Customers"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState([]),[m,y]=P.useState(0),[g,S]=P.useState([]),[w,j]=P.useState([]);P.useEffect(()=>{async function T(){s(!0),c("");try{const[C,O,N]=await Promise.all([sh.customers(),sh.leads(),sh.pipeline()]);d(C.customers),y(C.total),S(O.leads);const M=N;j(M.stages||M.pipeline||[])}catch(C){c(C instanceof Error?C.message:"Failed to load CRM data")}finally{s(!1)}}T()},[]);const b=f.filter(T=>T.name.toLowerCase().includes(n.toLowerCase())||(T.company||"").toLowerCase().includes(n.toLowerCase())),A=g.filter(T=>T.name.toLowerCase().includes(n.toLowerCase())||(T.company||"").toLowerCase().includes(n.toLowerCase())),_=w.reduce((T,C)=>T+(C.value||0),0);return a?p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]}):l?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"CRM"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Manage customers, leads, and pipeline"})]}),p.jsx(Kt,{icon:p.jsx(Mi,{size:16}),children:"Add Contact"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Oa,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:m}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Customers"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(wo,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:g.length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Active Leads"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(Gw,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",maximumFractionDigits:0}).format(_)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Pipeline Value"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:gue.map(T=>p.jsx("button",{onClick:()=>t(T),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===T?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:T},T))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:T=>r(T.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Qc,{size:14}),children:"Filter"})]})]}),e==="Customers"&&p.jsxs(de,{children:[p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Customer"}),p.jsx(ge,{children:"Company"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Phone"}),p.jsx(ge,{children:"Created"}),p.jsx(ge,{align:"right"})]})}),p.jsx(Jr,{children:b.map(T=>p.jsxs(ut,{children:[p.jsx(he,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:T.name.charAt(0)}),p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-text-primary",children:T.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:T.email})]})]})}),p.jsx(he,{children:T.company||"—"}),p.jsx(he,{children:p.jsx(Ye,{variant:T.status==="active"?"success":T.status==="lead"?"primary":"default",children:T.status})}),p.jsx(he,{children:T.phone||"—"}),p.jsx(he,{children:dr(T.created_at)}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:16})})})]},T.id))})]}),b.length===0&&p.jsx(Vk,{icon:p.jsx(Oa,{size:32}),title:"No customers found",description:"Try adjusting your search or filters"})]}),e==="Leads"&&p.jsxs(de,{children:[p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Lead"}),p.jsx(ge,{children:"Company"}),p.jsx(ge,{children:"Source"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Created"}),p.jsx(ge,{align:"right"})]})}),p.jsx(Jr,{children:A.map(T=>p.jsxs(ut,{children:[p.jsx(he,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:T.name.charAt(0)}),p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-text-primary",children:T.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:T.email})]})]})}),p.jsx(he,{children:T.company||"—"}),p.jsx(he,{children:T.source||"—"}),p.jsx(he,{children:p.jsx(Ye,{variant:T.status==="qualified"?"success":T.status==="contacted"?"primary":T.status==="lost"?"danger":"default",children:T.status})}),p.jsx(he,{children:dr(T.created_at)}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:16})})})]},T.id))})]}),A.length===0&&p.jsx(Vk,{icon:p.jsx(wo,{size:32}),title:"No leads found",description:"Try adjusting your search or filters"})]}),e==="Pipeline"&&p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:[w.length===0&&p.jsx("div",{className:"col-span-full text-center text-text-secondary py-12",children:"No pipeline stages found"}),w.map(T=>p.jsxs(de,{hover:!0,children:[p.jsxs("div",{className:"flex items-center justify-between mb-4",children:[p.jsx("h3",{className:"text-sm font-semibold text-text-primary",children:T.name}),p.jsxs(Ye,{variant:"default",children:[T.deals," deals"]})]}),p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:T.value>0?new Intl.NumberFormat("sv-SE",{style:"currency",currency:"SEK",maximumFractionDigits:0}).format(T.value):"—"}),p.jsx("div",{className:"mt-4 h-1.5 bg-bg rounded-full overflow-hidden",children:p.jsx("div",{className:"h-full bg-primary rounded-full transition-all",style:{width:`${_>0?T.value/_*100:0}%`}})})]},T.id))]})]})}const bue=["Deals","Products","MRR","ARR"];function Sue(){const[e,t]=P.useState("Deals"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState([]),[m,y]=P.useState([]),[g,S]=P.useState([]),[w,j]=P.useState([]),[b,A]=P.useState(0);P.useEffect(()=>{async function O(){s(!0),c("");try{const[N,M,R,D]=await Promise.all([Es.deals(),Es.products(),Es.mrr(),Es.arr()]);d(N.deals||[]),y(M.products||[]),A(R.mrr||0),S([]);const I=D;j([])}catch(N){c(N instanceof Error?N.message:"Failed to load sales data")}finally{s(!1)}}O()},[]);const _=f.reduce((O,N)=>O+(N.value||0),0),T=f.filter(O=>O.stage==="Closed Won").reduce((O,N)=>O+(N.value||0),0),C=m.filter(O=>O.active).length;return a?p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]}):l?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Sales"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Deals, products, and revenue metrics"})]}),p.jsx(Kt,{icon:p.jsx(Mi,{size:16}),children:"New Deal"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Xu,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ee(_)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Pipeline"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(Hr,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ee(T)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Closed Won"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(vH,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:C}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Active Products"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:bue.map(O=>p.jsx("button",{onClick:()=>t(O),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===O?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:O},O))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:O=>r(O.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Qc,{size:14}),children:"Filter"})]})]}),e==="Deals"&&p.jsx(de,{children:p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Deal"}),p.jsx(ge,{children:"Company"}),p.jsx(ge,{align:"right",children:"Value"}),p.jsx(ge,{children:"Stage"}),p.jsx(ge,{align:"right",children:"Probability"}),p.jsx(ge,{children:"Owner"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Jr,{children:[f.length===0&&p.jsx(ut,{children:p.jsx(he,{colSpan:7,className:"text-center text-text-secondary py-8",children:"No deals found"})}),f.map(O=>p.jsxs(ut,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:O.name})}),p.jsx(he,{children:O.company}),p.jsx(he,{align:"right",children:Ee(O.value)}),p.jsx(he,{children:p.jsx(Ye,{variant:O.stage==="Closed Won"?"success":O.stage==="Negotiation"?"primary":"default",children:O.stage})}),p.jsxs(he,{align:"right",children:[O.probability,"%"]}),p.jsx(he,{children:O.owner}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:16})})})]},O.id))]})]})}),e==="Products"&&p.jsx(de,{children:p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Product"}),p.jsx(ge,{children:"SKU"}),p.jsx(ge,{align:"right",children:"Price"}),p.jsx(ge,{children:"Type"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Jr,{children:[m.length===0&&p.jsx(ut,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No products found"})}),m.map(O=>p.jsxs(ut,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:O.name})}),p.jsx(he,{children:p.jsx("code",{className:"text-xs bg-bg px-2 py-0.5 rounded-md",children:O.sku})}),p.jsx(he,{align:"right",children:Ee(O.price)}),p.jsx(he,{children:p.jsx(Ye,{variant:O.recurring?"primary":"default",children:O.recurring?"Recurring":"One-time"})}),p.jsx(he,{children:p.jsx(Ye,{variant:O.active?"success":"danger",children:O.active?"Active":"Inactive"})}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:16})})})]},O.id))]})]})}),e==="MRR"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Monthly Recurring Revenue",subtitle:`Current MRR: ${Ee(b)}`}),g.length>0?p.jsx("div",{className:"h-[320px]",children:p.jsx(Ph,{width:"100%",height:"100%",children:p.jsxs(Jle,{data:g,margin:{top:5,right:5,left:-10,bottom:0},children:[p.jsx(gp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),p.jsx(Ta,{dataKey:"month",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),p.jsx(Ea,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:O=>`${(O/1e3).toFixed(0)}k`,dx:-5}),p.jsx(Un,{content:({active:O,payload:N,label:M})=>!O||!(N!=null&&N.length)?null:p.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary mb-2",children:M}),N.map((R,D)=>p.jsxs("div",{className:"flex items-center gap-2 text-sm",children:[p.jsx("div",{className:"w-2 h-2 rounded-full",style:{backgroundColor:R.color}}),p.jsxs("span",{className:"text-text-secondary",children:[R.name,":"]}),p.jsx("span",{className:"font-semibold text-text-primary",children:Ee(Number(R.value))})]},D))]})}),p.jsx(_a,{dataKey:"mrr",fill:"#2563EB",radius:[4,4,0,0]}),p.jsx(_a,{dataKey:"arr",fill:"#16A34A",radius:[4,4,0,0]})]})})}):p.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No MRR history data available"})]}),e==="ARR"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Annual Recurring Revenue",subtitle:"ARR growth by quarter"}),w.length>0?p.jsx("div",{className:"h-[320px]",children:p.jsx(Ph,{width:"100%",height:"100%",children:p.jsxs(Qle,{data:w,margin:{top:5,right:5,left:-10,bottom:0},children:[p.jsx(gp,{strokeDasharray:"3 3",stroke:"rgba(0,0,0,0.04)",vertical:!1}),p.jsx(Ta,{dataKey:"quarter",axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},dy:8}),p.jsx(Ea,{axisLine:!1,tickLine:!1,tick:{fontSize:11,fill:"#9CA3AF"},tickFormatter:O=>`${(O/1e3).toFixed(0)}k`,dx:-5}),p.jsx(Un,{content:({active:O,payload:N,label:M})=>!O||!(N!=null&&N.length)?null:p.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-4 py-3",children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary mb-1",children:M}),p.jsx("p",{className:"text-sm font-semibold text-text-primary",children:Ee(Number(N[0].value))})]})}),p.jsx(lf,{type:"monotone",dataKey:"arr",stroke:"#2563EB",strokeWidth:2,dot:{r:4,strokeWidth:0,fill:"#2563EB"},activeDot:{r:6}})]})})}):p.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No ARR history data available"})]})]})}const wue=["Balance","Income","MOMS","Accounts","Invoices","Cashflow"],Hk=["#2563EB","#16A34A","#D97706","#DC2626","#9CA3AF"];function jue(){var M,R;const[e,t]=P.useState("Balance"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState(null),[m,y]=P.useState(null),[g,S]=P.useState(null),[w,j]=P.useState([]),[b,A]=P.useState([]),[_,T]=P.useState(null);P.useEffect(()=>{async function D(){s(!0),c("");try{const[B,I,z,H,X,Y]=await Promise.all([io.balance(),io.income(),io.moms(),io.accounts(),io.invoices(),io.cashflow()]);d(B),y(I),S(z),j(H.accounts||[]),A(X.invoices||[]),T(Y)}catch(B){c(B instanceof Error?B.message:"Failed to load finance data")}finally{s(!1)}}D()},[]);const C=w.filter(D=>D.name.toLowerCase().includes(n.toLowerCase())||D.id.toLowerCase().includes(n.toLowerCase())),O=b.filter(D=>D.customer.toLowerCase().includes(n.toLowerCase())||D.id.toLowerCase().includes(n.toLowerCase())),N=(m==null?void 0:m.expenses.map((D,B)=>({name:D.account,value:D.amount,color:Hk[B%Hk.length]})))||[];return a?p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]}):l?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Finance"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Financial reports and accounting"})]}),p.jsx(Kt,{icon:p.jsx(Mi,{size:16}),children:"New Invoice"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(i4,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ee((f==null?void 0:f.total_assets)||0)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Assets"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(Hr,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ee((m==null?void 0:m.total_revenue)||0)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"YTD Revenue"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(Kw,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ee((m==null?void 0:m.total_expenses)||0)}),p.jsx("p",{className:"text-xs text-text-secondary",children:"YTD Expenses"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto max-w-full",children:wue.map(D=>p.jsx("button",{onClick:()=>t(D),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap ${e===D?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:D},D))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:D=>r(D.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Qc,{size:14}),children:"Filter"})]})]}),e==="Balance"&&p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5",children:[p.jsxs(de,{children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Assets"}),p.jsx(C1,{size:14,className:"text-success"})]}),p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ee((f==null?void 0:f.total_assets)||0)})]}),p.jsxs(de,{children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Liabilities"}),p.jsx(W9,{size:14,className:"text-danger"})]}),p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ee((f==null?void 0:f.total_liabilities)||0)})]}),p.jsxs(de,{children:[p.jsxs("div",{className:"flex items-center justify-between mb-3",children:[p.jsx("span",{className:"text-sm text-text-secondary",children:"Equity"}),p.jsx(C1,{size:14,className:"text-success"})]}),p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Ee((f==null?void 0:f.total_equity)||0)})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Balance Sheet",subtitle:`Period: ${(f==null?void 0:f.period)||""}`}),p.jsxs("div",{className:"space-y-6",children:[p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Assets"}),p.jsxs("div",{className:"space-y-2",children:[f==null?void 0:f.assets.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("div",{children:p.jsx("p",{className:"text-sm text-text-primary",children:D.account})}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ee(D.amount)})]},B)),(!(f!=null&&f.assets)||f.assets.length===0)&&p.jsx("p",{className:"text-text-secondary text-sm",children:"No asset accounts"})]})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Liabilities"}),p.jsxs("div",{className:"space-y-2",children:[f==null?void 0:f.liabilities.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("div",{children:p.jsx("p",{className:"text-sm text-text-primary",children:D.account})}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ee(D.amount)})]},B)),(!(f!=null&&f.liabilities)||f.liabilities.length===0)&&p.jsx("p",{className:"text-text-secondary text-sm",children:"No liability accounts"})]})]}),p.jsxs("div",{children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary mb-3",children:"Equity"}),p.jsxs("div",{className:"space-y-2",children:[(M=f==null?void 0:f.equity)==null?void 0:M.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("div",{children:p.jsx("p",{className:"text-sm text-text-primary",children:D.account})}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ee(D.amount)})]},B)),(!(f!=null&&f.equity)||((R=f.equity)==null?void 0:R.length)===0)&&p.jsx("p",{className:"text-text-secondary text-sm",children:"No equity accounts"})]})]})]})]})]}),e==="Income"&&p.jsx("div",{className:"space-y-6",children:p.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-5",children:[p.jsxs(de,{className:"lg:col-span-2",children:[p.jsx(tt,{title:"Income Statement",subtitle:`Period: ${(m==null?void 0:m.period)||""}`}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"grid grid-cols-3 gap-4",children:[p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Revenue"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ee((m==null?void 0:m.total_revenue)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Expenses"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ee((m==null?void 0:m.total_expenses)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Net Income"}),p.jsx("p",{className:"text-lg font-semibold text-success",children:Ee((m==null?void 0:m.net_income)||0)})]})]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary",children:"Revenue Accounts"}),m==null?void 0:m.revenue.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("p",{className:"text-sm text-text-primary",children:D.account}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ee(D.amount)})]},B))]}),p.jsxs("div",{className:"space-y-2",children:[p.jsx("h4",{className:"text-sm font-semibold text-text-primary",children:"Expense Accounts"}),m==null?void 0:m.expenses.map((D,B)=>p.jsxs("div",{className:"flex items-center justify-between py-2 border-b border-border/40 last:border-0",children:[p.jsx("p",{className:"text-sm text-text-primary",children:D.account}),p.jsx("p",{className:"text-sm font-medium text-text-primary",children:Ee(D.amount)})]},B))]})]})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Expense Breakdown",subtitle:"By category"}),N.length>0?p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"h-[220px]",children:p.jsx(Ph,{width:"100%",height:"100%",children:p.jsxs(eue,{children:[p.jsx(Bi,{data:N,cx:"50%",cy:"50%",innerRadius:60,outerRadius:90,paddingAngle:4,dataKey:"value",children:N.map((D,B)=>p.jsx(Fp,{fill:D.color},`cell-${B}`))}),p.jsx(Un,{content:({active:D,payload:B})=>{if(!D||!(B!=null&&B.length))return null;const I=B[0].payload;return p.jsxs("div",{className:"bg-surface rounded-xl dropdown-shadow border border-border/60 px-3 py-2",children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:I.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:Ee(I.value)})]})}})]})})}),p.jsx("div",{className:"space-y-2 mt-2",children:N.map(D=>p.jsxs("div",{className:"flex items-center justify-between text-sm",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:"w-2.5 h-2.5 rounded-full",style:{backgroundColor:D.color}}),p.jsx("span",{className:"text-text-secondary",children:D.name})]}),p.jsx("span",{className:"font-medium text-text-primary",children:Ee(D.value)})]},D.name))})]}):p.jsx("div",{className:"h-[200px] flex items-center justify-center text-text-secondary",children:"No expense data"})]})]})}),e==="MOMS"&&p.jsxs(de,{children:[p.jsx(tt,{title:"MOMS Report",subtitle:`Period: ${(g==null?void 0:g.period)||""}`}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-6",children:[p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS In (Input VAT)"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ee((g==null?void 0:g.moms_in)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS Ut (Output VAT)"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ee((g==null?void 0:g.moms_ut)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"MOMS att betala"}),p.jsx("p",{className:"text-lg font-semibold text-success",children:Ee((g==null?void 0:g.moms_att_betala)||0)})]})]})]}),e==="Accounts"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Chart of Accounts",subtitle:"General ledger accounts"}),p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Account"}),p.jsx(ge,{children:"Number"}),p.jsx(ge,{children:"Type"}),p.jsx(ge,{align:"right",children:"Balance"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Jr,{children:[C.map(D=>p.jsxs(ut,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:D.name})}),p.jsx(he,{children:p.jsx("code",{className:"text-xs bg-bg px-2 py-0.5 rounded-md",children:D.id})}),p.jsx(he,{children:p.jsx(Ye,{variant:D.type==="asset"?"success":D.type==="equity"?"primary":"warning",children:D.type})}),p.jsx(he,{align:"right",children:Ee(D.balance)}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:16})})})]},D.id)),C.length===0&&p.jsx(ut,{children:p.jsx(he,{colSpan:5,className:"text-center text-text-secondary py-8",children:"No accounts found"})})]})]})]}),e==="Invoices"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Invoices",subtitle:"All invoices"}),p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Number"}),p.jsx(ge,{children:"Customer"}),p.jsx(ge,{align:"right",children:"Amount"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Due Date"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Jr,{children:[O.map(D=>p.jsxs(ut,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium",children:D.id})}),p.jsx(he,{children:D.customer}),p.jsx(he,{align:"right",children:Ee(D.amount)}),p.jsx(he,{children:p.jsx(Ye,{variant:D.status==="paid"?"success":D.status==="overdue"?"danger":D.status==="sent"||D.status==="pending"?"primary":"default",children:D.status})}),p.jsx(he,{children:dr(D.due_date)}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:16})})})]},D.id)),O.length===0&&p.jsx(ut,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No invoices found"})})]})]})]}),e==="Cashflow"&&p.jsxs(de,{children:[p.jsx(tt,{title:"Cash Flow",subtitle:`Period: ${(_==null?void 0:_.period)||""}`}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-5 mb-6",children:[p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Inflow"}),p.jsx("p",{className:"text-lg font-semibold text-success",children:Ee((_==null?void 0:_.inflow)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Outflow"}),p.jsx("p",{className:"text-lg font-semibold text-danger",children:Ee((_==null?void 0:_.outflow)||0)})]}),p.jsxs("div",{className:"p-4 bg-bg rounded-xl",children:[p.jsx("p",{className:"text-xs text-text-secondary mb-1",children:"Net"}),p.jsx("p",{className:"text-lg font-semibold text-text-primary",children:Ee((_==null?void 0:_.net)||0)})]})]})]})]})}const Aue=["Employees","Leaves"],Oue={Sales:"primary",Engineering:"success",Finance:"warning",HR:"primary",Legal:"default"};function _ue(){const[e,t]=P.useState("Employees"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState([]),[m,y]=P.useState([]);P.useEffect(()=>{async function A(){s(!0),c("");try{const[_,T]=await Promise.all([GE.employees(),GE.leaves()]);d(_.employees||[]),y(T.leaves||[])}catch(_){c(_ instanceof Error?_.message:"Failed to load HR data")}finally{s(!1)}}A()},[]);const g=f.filter(A=>A.status==="active").length,S=f.filter(A=>A.status==="on_leave").length,w=m.filter(A=>A.status==="pending").length,j=f.filter(A=>(A.name||`${A.first_name} ${A.last_name}`).toLowerCase().includes(n.toLowerCase())||A.department.toLowerCase().includes(n.toLowerCase())||(A.role||A.position).toLowerCase().includes(n.toLowerCase())),b=m.filter(A=>A.employeeName.toLowerCase().includes(n.toLowerCase())||A.type.toLowerCase().includes(n.toLowerCase()));return a?p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]}):l?p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})}):p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"HR"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Employees and leave management"})]}),p.jsx(Kt,{icon:p.jsx(Mi,{size:16}),children:"Add Employee"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-3 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Oa,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:g}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Active Employees"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(Is,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:S}),p.jsx("p",{className:"text-xs text-text-secondary",children:"On Leave"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(Q9,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:w}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Pending Requests"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:Aue.map(A=>p.jsx("button",{onClick:()=>t(A),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===A?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:A},A))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search...",value:n,onChange:A=>r(A.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Qc,{size:14}),children:"Filter"})]})]}),e==="Employees"&&p.jsx(de,{children:p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Employee"}),p.jsx(ge,{children:"Department"}),p.jsx(ge,{children:"Role"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Start Date"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Jr,{children:[j.map(A=>{const _=A.name||`${A.first_name} ${A.last_name}`,T=A.role||A.position,C=A.startDate||A.start_date;return p.jsxs(ut,{children:[p.jsx(he,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:_.split(" ").map(O=>O[0]).join("")}),p.jsxs("div",{children:[p.jsx("p",{className:"font-medium text-text-primary",children:_}),p.jsx("p",{className:"text-xs text-text-secondary",children:A.email})]})]})}),p.jsx(he,{children:p.jsx(Ye,{variant:Oue[A.department]||"default",children:A.department})}),p.jsx(he,{children:T}),p.jsx(he,{children:p.jsx(Ye,{variant:A.status==="active"?"success":A.status==="on_leave"?"warning":"danger",children:A.status.replace("_"," ")})}),p.jsx(he,{children:dr(C||"")}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:16})})})]},A.id)}),j.length===0&&p.jsx(ut,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No employees found"})})]})]})}),e==="Leaves"&&p.jsx(de,{children:p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Employee"}),p.jsx(ge,{children:"Type"}),p.jsx(ge,{children:"Period"}),p.jsx(ge,{align:"right",children:"Days"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{align:"right"})]})}),p.jsxs(Jr,{children:[b.map(A=>p.jsxs(ut,{children:[p.jsx(he,{children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center text-xs font-semibold",children:A.employeeName.split(" ").map(_=>_[0]).join("")}),p.jsx("span",{className:"font-medium text-text-primary",children:A.employeeName})]})}),p.jsx(he,{children:p.jsx(Ye,{variant:A.type==="vacation"?"primary":A.type==="sick"?"warning":"default",children:A.type})}),p.jsx(he,{children:p.jsxs("span",{className:"text-sm text-text-primary",children:[dr(A.startDate)," — ",dr(A.endDate)]})}),p.jsx(he,{align:"right",children:p.jsx("span",{className:"font-medium",children:A.days})}),p.jsx(he,{children:p.jsx(Ye,{variant:A.status==="approved"?"success":A.status==="pending"?"warning":"danger",children:A.status})}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:16})})})]},A.id)),b.length===0&&p.jsx(ut,{children:p.jsx(he,{colSpan:6,className:"text-center text-text-secondary py-8",children:"No leave requests found"})})]})]})})]})}const Gk={draft:{variant:"default",icon:Is},pending_signature:{variant:"warning",icon:Is},active:{variant:"success",icon:Zc},expired:{variant:"danger",icon:Sa},terminated:{variant:"default",icon:Sa},disputed:{variant:"danger",icon:Sa}},Tue={aamos:"primary",quixzoom:"success",legal:"warning",hr:"default"};function Fk(){const[e,t]=P.useState("contracts"),[n,r]=P.useState(""),[a,s]=P.useState(!0),[l,c]=P.useState(""),[f,d]=P.useState([]),[m,y]=P.useState([]),[g,S]=P.useState([]),[w,j]=P.useState(null),[b,A]=P.useState(!1);P.useEffect(()=>{async function O(){s(!0),c("");try{const[N,M,R]=await Promise.all([fetch("/api/v1/legal/contracts").then(D=>D.json()),fetch("/api/v1/legal/templates").then(D=>D.json()),fetch("/api/v1/legal/product-links").then(D=>D.json())]);d(N.contracts||[]),y(M.templates||[]),S(R.links||[])}catch(N){c(N instanceof Error?N.message:"Failed to load legal data")}finally{s(!1)}}O()},[]);const _=f.filter(O=>O.name.toLowerCase().includes(n.toLowerCase())||O.counterparty.toLowerCase().includes(n.toLowerCase())||O.template_type.toLowerCase().includes(n.toLowerCase())),T=m.filter(O=>O.name.toLowerCase().includes(n.toLowerCase())||O.description.toLowerCase().includes(n.toLowerCase())||O.category.toLowerCase().includes(n.toLowerCase()));if(a)return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-5",children:[p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"}),p.jsx(Qe,{className:"h-[80px]"})]}),p.jsx(Qe,{className:"h-[400px]"})]});if(l)return p.jsx("div",{className:"flex items-center justify-center h-64",children:p.jsx("p",{className:"text-danger",children:l})});const C=[{id:"contracts",label:"Avtal",icon:co},{id:"templates",label:"Mallar",icon:iH},{id:"products",label:"Produktkopplingar",icon:lc}];return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Legal"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Avtal, mallar och produktkopplingar"})]}),p.jsx(Kt,{icon:p.jsx(Mi,{size:16}),children:"Nytt avtal"})]}),p.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-4 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:p.jsx(co,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold",children:f.length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Totalt avtal"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success/10 text-success flex items-center justify-center",children:p.jsx(Zc,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold",children:f.filter(O=>O.status==="active").length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Aktiva"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning/10 text-warning flex items-center justify-center",children:p.jsx(Is,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold",children:f.filter(O=>O.status==="pending_signature").length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Väntar signering"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-danger/10 text-danger flex items-center justify-center",children:p.jsx(Sa,{size:20})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold",children:f.filter(O=>O.status==="expired"||O.status==="terminated").length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Utgångna"})]})]})})]}),p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1 overflow-x-auto",children:C.map(O=>p.jsxs("button",{onClick:()=>t(O.id),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors whitespace-nowrap flex items-center gap-2 ${e===O.id?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:[p.jsx(O.icon,{size:16}),O.label]},O.id))}),p.jsxs("div",{className:"relative",children:[p.jsx(Co,{size:16,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Sök avtal, mallar eller produkter...",value:n,onChange:O=>r(O.target.value),className:"w-full h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm"})]}),e==="contracts"&&p.jsx(de,{children:p.jsx("div",{className:"overflow-x-auto",children:p.jsxs("table",{className:"w-full",children:[p.jsx("thead",{children:p.jsxs("tr",{className:"border-b border-border",children:[p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Avtal"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Motpart"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Typ"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Status"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Värde"}),p.jsx("th",{className:"text-left text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3",children:"Period"}),p.jsx("th",{className:"text-right text-xs font-medium text-text-secondary uppercase tracking-wider px-4 py-3"})]})}),p.jsxs("tbody",{className:"divide-y divide-border",children:[_.map(O=>{const N=Gk[O.status]||Gk.draft;return p.jsxs("tr",{className:"hover:bg-bg transition-colors",children:[p.jsx("td",{className:"px-4 py-3",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-8 h-8 rounded-lg bg-primary/10 text-primary flex items-center justify-center",children:p.jsx(co,{size:14})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:O.name}),p.jsx("p",{className:"text-xs text-text-secondary",children:O.template_type})]})]})}),p.jsxs("td",{className:"px-4 py-3",children:[p.jsx("p",{className:"text-sm text-text-primary",children:O.counterparty}),O.counterparty_org&&p.jsx("p",{className:"text-xs text-text-secondary",children:O.counterparty_org})]}),p.jsx("td",{className:"px-4 py-3",children:p.jsx(Ye,{variant:"default",className:"text-xs",children:O.template_type})}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs(Ye,{variant:N.variant,className:"text-xs flex items-center gap-1",children:[p.jsx(N.icon,{size:12}),O.status]})}),p.jsx("td",{className:"px-4 py-3",children:O.value?p.jsxs("p",{className:"text-sm font-medium",children:[Ee(O.value)," ",O.currency]}):p.jsx("p",{className:"text-sm text-text-secondary",children:"—"})}),p.jsx("td",{className:"px-4 py-3",children:p.jsxs("p",{className:"text-sm text-text-secondary",children:[O.start_date?dr(O.start_date):"—",O.end_date&&`${dr(O.end_date)}`]})}),p.jsx("td",{className:"px-4 py-3 text-right",children:p.jsxs("div",{className:"flex items-center justify-end gap-1",children:[p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(e4,{size:14})}),p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(DE,{size:14})}),p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:14})})]})})]},O.id)}),_.length===0&&p.jsx("tr",{children:p.jsx("td",{colSpan:7,className:"text-center text-text-secondary py-8",children:"Inga avtal hittades"})})]})]})})}),e==="templates"&&p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:[T.map(O=>p.jsx("div",{className:"cursor-pointer hover:border-primary transition-colors",onClick:()=>{j(O),A(!0)},children:p.jsx(de,{children:p.jsxs("div",{className:"p-4",children:[p.jsxs("div",{className:"flex items-start justify-between mb-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:p.jsx(co,{size:20})}),p.jsx(Ye,{variant:Tue[O.category],className:"text-xs",children:O.category})]}),p.jsx("h3",{className:"font-semibold text-text-primary mb-1",children:O.name}),p.jsx("p",{className:"text-sm text-text-secondary mb-3",children:O.description}),p.jsxs("div",{className:"flex items-center gap-2 text-xs text-text-tertiary",children:[p.jsx(ah,{size:12}),O.jurisdiction,p.jsx("span",{className:"mx-1",children:"•"}),p.jsx(oh,{size:12}),"v",O.version,p.jsx("span",{className:"mx-1",children:"•"}),O.sections.length," sektioner"]})]})})},O.id)),T.length===0&&p.jsx("div",{className:"col-span-full text-center text-text-secondary py-8",children:"Inga mallar hittades"})]}),e==="products"&&p.jsx("div",{className:"space-y-6",children:g.map(O=>p.jsx(de,{children:p.jsxs("div",{className:"p-4",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-4",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary/10 text-primary flex items-center justify-center",children:p.jsx(lc,{size:20})}),p.jsxs("div",{children:[p.jsx("h3",{className:"font-semibold text-text-primary",children:O.product_name}),p.jsx("p",{className:"text-sm text-text-secondary",children:O.product_type})]})]}),p.jsxs("div",{className:"space-y-3",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary uppercase mb-2",children:"Krävs"}),p.jsx("div",{className:"flex flex-wrap gap-2",children:O.required_contracts.map(N=>p.jsx(Ye,{variant:"primary",className:"text-xs",children:N},N))})]}),O.optional_contracts.length>0&&p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-medium text-text-secondary uppercase mb-2",children:"Valbart"}),p.jsx("div",{className:"flex flex-wrap gap-2",children:O.optional_contracts.map(N=>p.jsx(Ye,{variant:"default",className:"text-xs",children:N},N))})]})]})]})},O.product_id))}),b&&w&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",children:p.jsx("div",{className:"w-full max-w-3xl max-h-[90vh] overflow-y-auto",children:p.jsx(de,{children:p.jsxs("div",{className:"p-6",children:[p.jsxs("div",{className:"flex items-start justify-between mb-6",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-xl font-semibold",children:w.name}),p.jsx("p",{className:"text-text-secondary",children:w.description})]}),p.jsx("button",{onClick:()=>A(!1),className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:"✕"})]}),p.jsxs("div",{className:"grid grid-cols-2 gap-4 mb-6",children:[p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Kategori"}),p.jsx("p",{className:"font-medium",children:w.category})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Jurisdiktion"}),p.jsx("p",{className:"font-medium",children:w.jurisdiction})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Språk"}),p.jsx("p",{className:"font-medium",children:w.language})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Version"}),p.jsx("p",{className:"font-medium",children:w.version})]})]}),p.jsx("h3",{className:"font-semibold mb-3",children:"Avtalssektioner"}),p.jsx("div",{className:"space-y-2 mb-6",children:w.sections.map(O=>p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[p.jsxs("span",{className:"text-xs text-text-tertiary",children:[O.order,"."]}),p.jsx("p",{className:"font-medium text-sm",children:O.title}),O.required&&p.jsx(Ye,{variant:"danger",className:"text-xs",children:"Krävs"})]}),p.jsx("p",{className:"text-sm text-text-secondary",children:O.content}),O.variables&&O.variables.length>0&&p.jsx("div",{className:"flex flex-wrap gap-1 mt-2",children:O.variables.map(N=>p.jsx("code",{className:"text-xs bg-primary/10 text-primary px-2 py-0.5 rounded",children:"{{"+N+"}}"},N))})]},O.id))}),p.jsx("h3",{className:"font-semibold mb-3",children:"Standardvillkor"}),p.jsxs("div",{className:"grid grid-cols-2 gap-3 mb-6",children:[p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Betalningsvillkor"}),p.jsx("p",{className:"text-sm",children:w.default_terms.payment_terms})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Valuta"}),p.jsx("p",{className:"text-sm",children:w.default_terms.currency})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Avtalsperiod"}),p.jsx("p",{className:"text-sm",children:w.default_terms.contract_period})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Uppsägningstid"}),p.jsx("p",{className:"text-sm",children:w.default_terms.notice_period})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"Auto-förnyelse"}),p.jsx("p",{className:"text-sm",children:w.default_terms.auto_renewal?"Ja":"Nej"})]}),p.jsxs("div",{className:"p-3 bg-surface rounded-lg",children:[p.jsx("p",{className:"text-xs text-text-secondary",children:"SLA"}),p.jsx("p",{className:"text-sm",children:w.default_terms.sla_enabled?`${w.default_terms.sla_uptime}% uptime`:"Ej aktiverat"})]})]}),p.jsxs("div",{className:"flex gap-3",children:[p.jsxs(Kt,{className:"flex-1",children:[p.jsx(Mi,{size:16,className:"mr-2"}),"Skapa avtal från mall"]}),p.jsxs(Kt,{variant:"secondary",children:[p.jsx(DE,{size:16,className:"mr-2"}),"Förhandsgranska"]})]})]})})})})]})}const Eue=[{id:"1",name:"Q4 Product Launch",status:"active",channel:"Email",reach:12500,engagement:8.2,conversions:340},{id:"2",name:"Holiday Special",status:"scheduled",channel:"Social",reach:0,engagement:0,conversions:0},{id:"3",name:"Customer Retention",status:"active",channel:"Email",reach:8400,engagement:12.5,conversions:520},{id:"4",name:"Partner Webinar",status:"completed",channel:"Webinar",reach:3200,engagement:45,conversions:180}];function Nue(){return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Marketing"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Campaigns and marketing metrics"})]}),p.jsx(Kt,{icon:p.jsx(Mi,{size:16}),children:"New Campaign"})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(n4,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"4"}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Campaigns"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(Oa,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"24.1K"}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Reach"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(r4,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"10.4%"}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Avg. Engagement"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Hr,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:"1,040"}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Conversions"})]})]})})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Campaigns",subtitle:"Active and recent marketing campaigns"}),p.jsx("div",{className:"space-y-4",children:Eue.map(e=>p.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-bg/50 hover:bg-bg transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:e.channel==="Email"?p.jsx(wo,{size:18}):p.jsx(eH,{size:18})}),p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-medium text-text-primary",children:e.name}),p.jsx(Ye,{variant:e.status==="active"?"success":e.status==="scheduled"?"primary":"default",size:"sm",children:e.status})]}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:e.channel})]})]}),p.jsxs("div",{className:"flex items-center gap-8 text-right",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.reach>0?e.reach.toLocaleString():"—"}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"Reach"})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.engagement>0?`${e.engagement}%`:"—"}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"Engagement"})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:e.conversions>0?e.conversions.toLocaleString():"—"}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"Conversions"})]})]})]},e.id))})]})]})}const $u=[{id:"SUP-2024-001",subject:"Login issues after password reset",customer:"Acme Corp",priority:"high",status:"open",assigned:"Johan Berg",created:new Date(Date.now()-1e3*60*30).toISOString()},{id:"SUP-2024-002",subject:"API rate limit questions",customer:"Nordic Solutions",priority:"medium",status:"in_progress",assigned:"Johan Berg",created:new Date(Date.now()-1e3*60*120).toISOString()},{id:"SUP-2024-003",subject:"Feature request: bulk export",customer:"TechStart AB",priority:"low",status:"open",assigned:"Unassigned",created:new Date(Date.now()-1e3*60*60*4).toISOString()},{id:"SUP-2024-004",subject:"Billing discrepancy on invoice #89",customer:"Global Industries",priority:"high",status:"in_progress",assigned:"Elena Rossi",created:new Date(Date.now()-1e3*60*60*6).toISOString()},{id:"SUP-2024-005",subject:"Integration documentation outdated",customer:"ScandiTech",priority:"medium",status:"resolved",assigned:"Johan Berg",created:new Date(Date.now()-1e3*60*60*24).toISOString()},{id:"SUP-2024-006",subject:"Mobile app crash on iOS",customer:"MegaCorp",priority:"high",status:"open",assigned:"Unassigned",created:new Date(Date.now()-1e3*60*60*2).toISOString()}],Cue=["All","Open","In Progress","Resolved"];function Mue(){const[e,t]=P.useState("All"),[n,r]=P.useState(""),a=$u.filter(f=>f.status==="open").length,s=$u.filter(f=>f.status==="in_progress").length,l=$u.filter(f=>f.status==="resolved").length,c=$u.filter(f=>{const d=f.subject.toLowerCase().includes(n.toLowerCase())||f.customer.toLowerCase().includes(n.toLowerCase())||f.id.toLowerCase().includes(n.toLowerCase()),m=e==="All"||f.status===e.toLowerCase().replace(" ","_");return d&&m});return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Support"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Customer support tickets"})]}),p.jsx(Kt,{icon:p.jsx(Mi,{size:16}),children:"New Ticket"})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(t4,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:$u.length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Tickets"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(Fw,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:a}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Open"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Is,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:s}),p.jsx("p",{className:"text-xs text-text-secondary",children:"In Progress"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx(Zc,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:l}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Resolved"})]})]})})]}),p.jsxs("div",{className:"flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4",children:[p.jsx("div",{className:"flex items-center gap-1 bg-bg rounded-xl p-1",children:Cue.map(f=>p.jsx("button",{onClick:()=>t(f),className:`px-4 py-2 text-sm font-medium rounded-lg transition-colors ${e===f?"bg-surface text-text-primary shadow-sm":"text-text-secondary hover:text-text-primary"}`,children:f},f))}),p.jsxs("div",{className:"flex items-center gap-2 w-full sm:w-auto",children:[p.jsxs("div",{className:"relative flex-1 sm:flex-initial",children:[p.jsx(Co,{size:15,className:"absolute left-3 top-1/2 -translate-y-1/2 text-text-secondary"}),p.jsx("input",{type:"text",placeholder:"Search tickets...",value:n,onChange:f=>r(f.target.value),className:"w-full sm:w-64 h-10 pl-9 pr-4 rounded-[14px] border bg-surface text-sm text-text-primary placeholder:text-text-secondary/50 focus:outline-none focus:ring-2 focus:ring-primary/20 focus:border-primary/30"})]}),p.jsx(Kt,{variant:"secondary",size:"sm",icon:p.jsx(Qc,{size:14}),children:"Filter"})]})]}),p.jsx(de,{children:p.jsxs(Zr,{children:[p.jsx(Qr,{children:p.jsxs(ut,{children:[p.jsx(ge,{children:"Ticket"}),p.jsx(ge,{children:"Subject"}),p.jsx(ge,{children:"Customer"}),p.jsx(ge,{children:"Priority"}),p.jsx(ge,{children:"Status"}),p.jsx(ge,{children:"Assigned"}),p.jsx(ge,{children:"Created"}),p.jsx(ge,{align:"right"})]})}),p.jsx(Jr,{children:c.map(f=>p.jsxs(ut,{children:[p.jsx(he,{children:p.jsx("span",{className:"font-medium text-sm",children:f.id})}),p.jsx(he,{children:p.jsx("span",{className:"text-sm text-text-primary",children:f.subject})}),p.jsx(he,{children:f.customer}),p.jsx(he,{children:p.jsx(Ye,{variant:f.priority==="high"?"danger":f.priority==="medium"?"warning":"default",size:"sm",children:f.priority})}),p.jsx(he,{children:p.jsx(Ye,{variant:f.status==="resolved"?"success":f.status==="in_progress"?"primary":"warning",size:"sm",children:f.status.replace("_"," ")})}),p.jsx(he,{children:f.assigned}),p.jsx(he,{children:p.jsx("span",{className:"text-xs text-text-secondary",children:Xw(f.created)})}),p.jsx(he,{align:"right",children:p.jsx("button",{className:"w-8 h-8 flex items-center justify-center rounded-lg hover:bg-bg text-text-secondary",children:p.jsx(Xr,{size:16})})})]},f.id))})]})})]})}const Bu=[{id:"1",name:"New Lead Notification",description:"Send Slack notification when a new lead is created",status:"active",trigger:"Lead Created",actions:["Send Email","Slack Message"],lastRun:"2 min ago",runs:1240},{id:"2",name:"Invoice Reminder",description:"Send reminder 3 days before invoice due date",status:"active",trigger:"Schedule",actions:["Send Email"],lastRun:"1 hour ago",runs:856},{id:"3",name:"Customer Onboarding",description:"Welcome email series for new customers",status:"active",trigger:"Customer Created",actions:["Send Email","Create Task","Add to CRM"],lastRun:"15 min ago",runs:342},{id:"4",name:"Deal Stage Alert",description:"Notify sales team when deal reaches negotiation",status:"paused",trigger:"Deal Updated",actions:["Send Email","Slack Message"],lastRun:"3 days ago",runs:89},{id:"5",name:"Employee Offboarding",description:"Automated offboarding checklist",status:"active",trigger:"Employee Terminated",actions:["Create Task","Send Email","Update HR"],lastRun:"1 week ago",runs:12}],Pue={"Send Email":p.jsx(wo,{size:12}),"Slack Message":p.jsx(dH,{size:12}),"Create Task":p.jsx(co,{size:12}),"Add to CRM":p.jsx(P1,{size:12}),"Update HR":p.jsx(P1,{size:12})};function Rue(){const e=Bu.filter(n=>n.status==="active").length,t=Bu.reduce((n,r)=>n+r.runs,0);return p.jsxs("div",{className:"space-y-8",children:[p.jsxs("div",{className:"flex flex-col sm:flex-row sm:items-center justify-between gap-4",children:[p.jsxs("div",{children:[p.jsx("h1",{className:"text-xl font-semibold text-text-primary",children:"Automation"}),p.jsx("p",{className:"text-sm text-text-secondary mt-0.5",children:"Workflows and automated tasks"})]}),p.jsx(Kt,{icon:p.jsx(Mi,{size:16}),children:"New Workflow"})]}),p.jsxs("div",{className:"grid grid-cols-2 lg:grid-cols-4 gap-5",children:[p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(a4,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Bu.length}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Workflows"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-success-light flex items-center justify-center text-success",children:p.jsx($E,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:e}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Active"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-warning-light flex items-center justify-center text-warning",children:p.jsx(LE,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:Bu.length-e}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Paused"})]})]})}),p.jsx(de,{padding:"md",children:p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-10 h-10 rounded-xl bg-primary-light flex items-center justify-center text-primary",children:p.jsx(Zc,{size:18})}),p.jsxs("div",{children:[p.jsx("p",{className:"text-2xl font-semibold text-text-primary",children:t.toLocaleString()}),p.jsx("p",{className:"text-xs text-text-secondary",children:"Total Runs"})]})]})})]}),p.jsxs(de,{children:[p.jsx(tt,{title:"Workflows",subtitle:"Automated processes and triggers"}),p.jsx("div",{className:"space-y-3",children:Bu.map(n=>p.jsxs("div",{className:"flex items-center justify-between p-4 rounded-xl bg-bg/50 hover:bg-bg transition-colors",children:[p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center ${n.status==="active"?"bg-success-light text-success":"bg-warning-light text-warning"}`,children:n.status==="active"?p.jsx($E,{size:18}):p.jsx(LE,{size:18})}),p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("span",{className:"font-medium text-text-primary",children:n.name}),p.jsx(Ye,{variant:n.status==="active"?"success":"warning",size:"sm",children:n.status})]}),p.jsx("p",{className:"text-xs text-text-secondary mt-0.5",children:n.description}),p.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[p.jsxs("div",{className:"flex items-center gap-1.5",children:[p.jsx(sH,{size:12,className:"text-text-secondary/60"}),p.jsx("span",{className:"text-[11px] text-text-secondary",children:n.trigger})]}),p.jsx("div",{className:"flex items-center gap-1",children:n.actions.map((r,a)=>p.jsxs("span",{className:"inline-flex items-center gap-1 px-1.5 py-0.5 bg-bg rounded text-[10px] text-text-secondary",children:[Pue[r],r]},a))})]})]})]}),p.jsxs("div",{className:"flex items-center gap-6 text-right",children:[p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:n.runs.toLocaleString()}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"runs"})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-medium text-text-primary",children:n.lastRun}),p.jsx("p",{className:"text-[11px] text-text-secondary",children:"last run"})]}),p.jsx("div",{className:"flex items-center",children:p.jsx("div",{className:"w-9 h-5 rounded-full bg-success/20 relative cursor-pointer",children:p.jsx("div",{className:"absolute right-0.5 top-0.5 w-4 h-4 rounded-full bg-success"})})})]})]},n.id))})]})]})}function Due({children:e}){const{isAuthenticated:t}=Fc();return t?p.jsx(p.Fragment,{children:e}):p.jsx(cw,{to:"/login",replace:!0})}function kue({children:e}){const{isAuthenticated:t}=Fc();return t?p.jsx(cw,{to:"/",replace:!0}):p.jsx(p.Fragment,{children:e})}function Lue(){return p.jsxs(fq,{children:[p.jsx(dn,{path:"/login",element:p.jsx(kue,{children:p.jsx(sG,{})})}),p.jsxs(dn,{element:p.jsx(Due,{children:p.jsx(iG,{})}),children:[p.jsx(dn,{path:"/",element:p.jsx(yue,{})}),p.jsx(dn,{path:"/dashboard",element:p.jsx(uue,{})}),p.jsx(dn,{path:"/crm",element:p.jsx(xue,{})}),p.jsx(dn,{path:"/sales",element:p.jsx(Sue,{})}),p.jsx(dn,{path:"/finance",element:p.jsx(jue,{})}),p.jsx(dn,{path:"/hr",element:p.jsx(_ue,{})}),p.jsx(dn,{path:"/legal",element:p.jsx(Fk,{})}),p.jsx(dn,{path:"/marketing",element:p.jsx(Nue,{})}),p.jsx(dn,{path:"/support",element:p.jsx(Mue,{})}),p.jsx(dn,{path:"/automation",element:p.jsx(Rue,{})}),p.jsx(dn,{path:"/legal",element:p.jsx(Fk,{})}),p.jsx(dn,{path:"/profile",element:p.jsx(vue,{})})]}),p.jsx(dn,{path:"*",element:p.jsx(cw,{to:"/",replace:!0})})]})}u8.createRoot(document.getElementById("root")).render(p.jsx(P.StrictMode,{children:p.jsx(kq,{children:p.jsx(Lue,{})})}));