@wraps.dev/cli 1.5.3 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6676 -941
- package/dist/cli.js.map +1 -1
- package/dist/console/assets/index-BUM0aT88.js +376 -0
- package/dist/console/assets/index-DrwR3LQV.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/lambda/event-processor/.bundled +1 -1
- package/dist/lambda/event-processor/index.mjs +1 -1
- package/dist/lambda/sms-event-processor/.bundled +1 -0
- package/dist/lambda/sms-event-processor/index.mjs +1 -0
- package/package.json +3 -1
- package/dist/console/assets/index-B3tw1aZA.js +0 -361
- package/dist/console/assets/index-BXE8qB8y.css +0 -1
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
function Iq(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const l=Object.getOwnPropertyDescriptor(r,i);l&&Object.defineProperty(e,i,l.get?l:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const l of i)if(l.type==="childList")for(const s of l.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const l={};return i.integrity&&(l.integrity=i.integrity),i.referrerPolicy&&(l.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?l.credentials="include":i.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(i){if(i.ep)return;i.ep=!0;const l=n(i);fetch(i.href,l)}})();var Rd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ut(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Fg={exports:{}},Ru={};/**
|
|
2
|
-
* @license React
|
|
3
|
-
* react-jsx-runtime.production.js
|
|
4
|
-
*
|
|
5
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
6
|
-
*
|
|
7
|
-
* This source code is licensed under the MIT license found in the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var ej;function zq(){if(ej)return Ru;ej=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,l){var s=null;if(l!==void 0&&(s=""+l),i.key!==void 0&&(s=""+i.key),"key"in i){l={};for(var c in i)c!=="key"&&(l[c]=i[c])}else l=i;return i=l.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:l}}return Ru.Fragment=t,Ru.jsx=n,Ru.jsxs=n,Ru}var tj;function Bq(){return tj||(tj=1,Fg.exports=zq()),Fg.exports}var v=Bq(),Gg={exports:{}},Me={};/**
|
|
10
|
-
* @license React
|
|
11
|
-
* react.production.js
|
|
12
|
-
*
|
|
13
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
14
|
-
*
|
|
15
|
-
* This source code is licensed under the MIT license found in the
|
|
16
|
-
* LICENSE file in the root directory of this source tree.
|
|
17
|
-
*/var nj;function qq(){if(nj)return Me;nj=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),s=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"),p=Symbol.for("react.activity"),y=Symbol.iterator;function x($){return $===null||typeof $!="object"?null:($=y&&$[y]||$["@@iterator"],typeof $=="function"?$:null)}var O={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},w=Object.assign,S={};function E($,F,X){this.props=$,this.context=F,this.refs=S,this.updater=X||O}E.prototype.isReactComponent={},E.prototype.setState=function($,F){if(typeof $!="object"&&typeof $!="function"&&$!=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,$,F,"setState")},E.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function T(){}T.prototype=E.prototype;function A($,F,X){this.props=$,this.context=F,this.refs=S,this.updater=X||O}var M=A.prototype=new T;M.constructor=A,w(M,E.prototype),M.isPureReactComponent=!0;var j=Array.isArray;function N(){}var R={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function L($,F,X){var ae=X.ref;return{$$typeof:e,type:$,key:F,ref:ae!==void 0?ae:null,props:X}}function Y($,F){return L($.type,F,$.props)}function z($){return typeof $=="object"&&$!==null&&$.$$typeof===e}function H($){var F={"=":"=0",":":"=2"};return"$"+$.replace(/[=:]/g,function(X){return F[X]})}var V=/\/+/g;function Q($,F){return typeof $=="object"&&$!==null&&$.key!=null?H(""+$.key):F.toString(36)}function K($){switch($.status){case"fulfilled":return $.value;case"rejected":throw $.reason;default:switch(typeof $.status=="string"?$.then(N,N):($.status="pending",$.then(function(F){$.status==="pending"&&($.status="fulfilled",$.value=F)},function(F){$.status==="pending"&&($.status="rejected",$.reason=F)})),$.status){case"fulfilled":return $.value;case"rejected":throw $.reason}}throw $}function k($,F,X,ae,de){var ge=typeof $;(ge==="undefined"||ge==="boolean")&&($=null);var ce=!1;if($===null)ce=!0;else switch(ge){case"bigint":case"string":case"number":ce=!0;break;case"object":switch($.$$typeof){case e:case t:ce=!0;break;case m:return ce=$._init,k(ce($._payload),F,X,ae,de)}}if(ce)return de=de($),ce=ae===""?"."+Q($,0):ae,j(de)?(X="",ce!=null&&(X=ce.replace(V,"$&/")+"/"),k(de,F,X,"",function(pe){return pe})):de!=null&&(z(de)&&(de=Y(de,X+(de.key==null||$&&$.key===de.key?"":(""+de.key).replace(V,"$&/")+"/")+ce)),F.push(de)),1;ce=0;var he=ae===""?".":ae+":";if(j($))for(var ie=0;ie<$.length;ie++)ae=$[ie],ge=he+Q(ae,ie),ce+=k(ae,F,X,ge,de);else if(ie=x($),typeof ie=="function")for($=ie.call($),ie=0;!(ae=$.next()).done;)ae=ae.value,ge=he+Q(ae,ie++),ce+=k(ae,F,X,ge,de);else if(ge==="object"){if(typeof $.then=="function")return k(K($),F,X,ae,de);throw F=String($),Error("Objects are not valid as a React child (found: "+(F==="[object Object]"?"object with keys {"+Object.keys($).join(", ")+"}":F)+"). If you meant to render a collection of children, use an array instead.")}return ce}function q($,F,X){if($==null)return $;var ae=[],de=0;return k($,ae,"","",function(ge){return F.call(X,ge,de++)}),ae}function B($){if($._status===-1){var F=$._result;F=F(),F.then(function(X){($._status===0||$._status===-1)&&($._status=1,$._result=X)},function(X){($._status===0||$._status===-1)&&($._status=2,$._result=X)}),$._status===-1&&($._status=0,$._result=F)}if($._status===1)return $._result.default;throw $._result}var W=typeof reportError=="function"?reportError:function($){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var F=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof $=="object"&&$!==null&&typeof $.message=="string"?String($.message):String($),error:$});if(!window.dispatchEvent(F))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",$);return}console.error($)},le={map:q,forEach:function($,F,X){q($,function(){F.apply(this,arguments)},X)},count:function($){var F=0;return q($,function(){F++}),F},toArray:function($){return q($,function(F){return F})||[]},only:function($){if(!z($))throw Error("React.Children.only expected to receive a single React element child.");return $}};return Me.Activity=p,Me.Children=le,Me.Component=E,Me.Fragment=n,Me.Profiler=i,Me.PureComponent=A,Me.StrictMode=r,Me.Suspense=f,Me.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Me.__COMPILER_RUNTIME={__proto__:null,c:function($){return R.H.useMemoCache($)}},Me.cache=function($){return function(){return $.apply(null,arguments)}},Me.cacheSignal=function(){return null},Me.cloneElement=function($,F,X){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var ae=w({},$.props),de=$.key;if(F!=null)for(ge in F.key!==void 0&&(de=""+F.key),F)!P.call(F,ge)||ge==="key"||ge==="__self"||ge==="__source"||ge==="ref"&&F.ref===void 0||(ae[ge]=F[ge]);var ge=arguments.length-2;if(ge===1)ae.children=X;else if(1<ge){for(var ce=Array(ge),he=0;he<ge;he++)ce[he]=arguments[he+2];ae.children=ce}return L($.type,de,ae)},Me.createContext=function($){return $={$$typeof:s,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:l,_context:$},$},Me.createElement=function($,F,X){var ae,de={},ge=null;if(F!=null)for(ae in F.key!==void 0&&(ge=""+F.key),F)P.call(F,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(de[ae]=F[ae]);var ce=arguments.length-2;if(ce===1)de.children=X;else if(1<ce){for(var he=Array(ce),ie=0;ie<ce;ie++)he[ie]=arguments[ie+2];de.children=he}if($&&$.defaultProps)for(ae in ce=$.defaultProps,ce)de[ae]===void 0&&(de[ae]=ce[ae]);return L($,ge,de)},Me.createRef=function(){return{current:null}},Me.forwardRef=function($){return{$$typeof:c,render:$}},Me.isValidElement=z,Me.lazy=function($){return{$$typeof:m,_payload:{_status:-1,_result:$},_init:B}},Me.memo=function($,F){return{$$typeof:d,type:$,compare:F===void 0?null:F}},Me.startTransition=function($){var F=R.T,X={};R.T=X;try{var ae=$(),de=R.S;de!==null&&de(X,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(N,W)}catch(ge){W(ge)}finally{F!==null&&X.types!==null&&(F.types=X.types),R.T=F}},Me.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Me.use=function($){return R.H.use($)},Me.useActionState=function($,F,X){return R.H.useActionState($,F,X)},Me.useCallback=function($,F){return R.H.useCallback($,F)},Me.useContext=function($){return R.H.useContext($)},Me.useDebugValue=function(){},Me.useDeferredValue=function($,F){return R.H.useDeferredValue($,F)},Me.useEffect=function($,F){return R.H.useEffect($,F)},Me.useEffectEvent=function($){return R.H.useEffectEvent($)},Me.useId=function(){return R.H.useId()},Me.useImperativeHandle=function($,F,X){return R.H.useImperativeHandle($,F,X)},Me.useInsertionEffect=function($,F){return R.H.useInsertionEffect($,F)},Me.useLayoutEffect=function($,F){return R.H.useLayoutEffect($,F)},Me.useMemo=function($,F){return R.H.useMemo($,F)},Me.useOptimistic=function($,F){return R.H.useOptimistic($,F)},Me.useReducer=function($,F,X){return R.H.useReducer($,F,X)},Me.useRef=function($){return R.H.useRef($)},Me.useState=function($){return R.H.useState($)},Me.useSyncExternalStore=function($,F,X){return R.H.useSyncExternalStore($,F,X)},Me.useTransition=function(){return R.H.useTransition()},Me.version="19.2.0",Me}var rj;function Op(){return rj||(rj=1,Gg.exports=qq()),Gg.exports}var _=Op();const I=ut(_),oS=Iq({__proto__:null,default:I},[_]);var Vg={exports:{}},Pu={},Yg={exports:{}},Wg={};/**
|
|
18
|
-
* @license React
|
|
19
|
-
* scheduler.production.js
|
|
20
|
-
*
|
|
21
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
22
|
-
*
|
|
23
|
-
* This source code is licensed under the MIT license found in the
|
|
24
|
-
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/var aj;function Uq(){return aj||(aj=1,(function(e){function t(k,q){var B=k.length;k.push(q);e:for(;0<B;){var W=B-1>>>1,le=k[W];if(0<i(le,q))k[W]=q,k[B]=le,B=W;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var q=k[0],B=k.pop();if(B!==q){k[0]=B;e:for(var W=0,le=k.length,$=le>>>1;W<$;){var F=2*(W+1)-1,X=k[F],ae=F+1,de=k[ae];if(0>i(X,B))ae<le&&0>i(de,X)?(k[W]=de,k[ae]=B,W=ae):(k[W]=X,k[F]=B,W=F);else if(ae<le&&0>i(de,B))k[W]=de,k[ae]=B,W=ae;else break e}}return q}function i(k,q){var B=k.sortIndex-q.sortIndex;return B!==0?B:k.id-q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var s=Date,c=s.now();e.unstable_now=function(){return s.now()-c}}var f=[],d=[],m=1,p=null,y=3,x=!1,O=!1,w=!1,S=!1,E=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function M(k){for(var q=n(d);q!==null;){if(q.callback===null)r(d);else if(q.startTime<=k)r(d),q.sortIndex=q.expirationTime,t(f,q);else break;q=n(d)}}function j(k){if(w=!1,M(k),!O)if(n(f)!==null)O=!0,N||(N=!0,H());else{var q=n(d);q!==null&&K(j,q.startTime-k)}}var N=!1,R=-1,P=5,L=-1;function Y(){return S?!0:!(e.unstable_now()-L<P)}function z(){if(S=!1,N){var k=e.unstable_now();L=k;var q=!0;try{e:{O=!1,w&&(w=!1,T(R),R=-1),x=!0;var B=y;try{t:{for(M(k),p=n(f);p!==null&&!(p.expirationTime>k&&Y());){var W=p.callback;if(typeof W=="function"){p.callback=null,y=p.priorityLevel;var le=W(p.expirationTime<=k);if(k=e.unstable_now(),typeof le=="function"){p.callback=le,M(k),q=!0;break t}p===n(f)&&r(f),M(k)}else r(f);p=n(f)}if(p!==null)q=!0;else{var $=n(d);$!==null&&K(j,$.startTime-k),q=!1}}break e}finally{p=null,y=B,x=!1}q=void 0}}finally{q?H():N=!1}}}var H;if(typeof A=="function")H=function(){A(z)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,Q=V.port2;V.port1.onmessage=z,H=function(){Q.postMessage(null)}}else H=function(){E(z,0)};function K(k,q){R=E(function(){k(e.unstable_now())},q)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(k){k.callback=null},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(k){switch(y){case 1:case 2:case 3:var q=3;break;default:q=y}var B=y;y=q;try{return k()}finally{y=B}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(k,q){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var B=y;y=k;try{return q()}finally{y=B}},e.unstable_scheduleCallback=function(k,q,B){var W=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?W+B:W):B=W,k){case 1:var le=-1;break;case 2:le=250;break;case 5:le=1073741823;break;case 4:le=1e4;break;default:le=5e3}return le=B+le,k={id:m++,callback:q,priorityLevel:k,startTime:B,expirationTime:le,sortIndex:-1},B>W?(k.sortIndex=B,t(d,k),n(f)===null&&k===n(d)&&(w?(T(R),R=-1):w=!0,K(j,B-W))):(k.sortIndex=le,t(f,k),O||x||(O=!0,N||(N=!0,H()))),k},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(k){var q=y;return function(){var B=y;y=q;try{return k.apply(this,arguments)}finally{y=B}}}})(Wg)),Wg}var ij;function Hq(){return ij||(ij=1,Yg.exports=Uq()),Yg.exports}var Kg={exports:{}},dn={};/**
|
|
26
|
-
* @license React
|
|
27
|
-
* react-dom.production.js
|
|
28
|
-
*
|
|
29
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
30
|
-
*
|
|
31
|
-
* This source code is licensed under the MIT license found in the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var oj;function Fq(){if(oj)return dn;oj=1;var e=Op();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},i=Symbol.for("react.portal");function l(f,d,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:f,containerInfo:d,implementation:m}}var s=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 dn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,dn.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 l(f,d,null,m)},dn.flushSync=function(f){var d=s.T,m=r.p;try{if(s.T=null,r.p=2,f)return f()}finally{s.T=d,r.p=m,r.d.f()}},dn.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))},dn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},dn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin),y=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;m==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:y,fetchPriority:x}):m==="script"&&r.d.X(f,{crossOrigin:p,integrity:y,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},dn.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)},dn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var m=d.as,p=c(m,d.crossOrigin);r.d.L(f,m,{crossOrigin:p,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})}},dn.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)},dn.requestFormReset=function(f){r.d.r(f)},dn.unstable_batchedUpdates=function(f,d){return f(d)},dn.useFormState=function(f,d,m){return s.H.useFormState(f,d,m)},dn.useFormStatus=function(){return s.H.useHostTransitionStatus()},dn.version="19.2.0",dn}var lj;function dk(){if(lj)return Kg.exports;lj=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(),Kg.exports=Fq(),Kg.exports}/**
|
|
34
|
-
* @license React
|
|
35
|
-
* react-dom-client.production.js
|
|
36
|
-
*
|
|
37
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
38
|
-
*
|
|
39
|
-
* This source code is licensed under the MIT license found in the
|
|
40
|
-
* LICENSE file in the root directory of this source tree.
|
|
41
|
-
*/var sj;function Gq(){if(sj)return Pu;sj=1;var e=Hq(),t=Op(),n=dk();function r(a){var o="https://react.dev/errors/"+a;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 #"+a+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(a){return!(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)}function l(a){var o=a,u=a;if(a.alternate)for(;o.return;)o=o.return;else{a=o;do o=a,(o.flags&4098)!==0&&(u=o.return),a=o.return;while(a)}return o.tag===3?u:null}function s(a){if(a.tag===13){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function c(a){if(a.tag===31){var o=a.memoizedState;if(o===null&&(a=a.alternate,a!==null&&(o=a.memoizedState)),o!==null)return o.dehydrated}return null}function f(a){if(l(a)!==a)throw Error(r(188))}function d(a){var o=a.alternate;if(!o){if(o=l(a),o===null)throw Error(r(188));return o!==a?null:a}for(var u=a,h=o;;){var g=u.return;if(g===null)break;var b=g.alternate;if(b===null){if(h=g.return,h!==null){u=h;continue}break}if(g.child===b.child){for(b=g.child;b;){if(b===u)return f(g),a;if(b===h)return f(g),o;b=b.sibling}throw Error(r(188))}if(u.return!==h.return)u=g,h=b;else{for(var C=!1,D=g.child;D;){if(D===u){C=!0,u=g,h=b;break}if(D===h){C=!0,h=g,u=b;break}D=D.sibling}if(!C){for(D=b.child;D;){if(D===u){C=!0,u=b,h=g;break}if(D===h){C=!0,h=b,u=g;break}D=D.sibling}if(!C)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?a:o}function m(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=m(a),o!==null)return o;a=a.sibling}return null}var p=Object.assign,y=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),O=Symbol.for("react.portal"),w=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),A=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),N=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),Y=Symbol.for("react.memo_cache_sentinel"),z=Symbol.iterator;function H(a){return a===null||typeof a!="object"?null:(a=z&&a[z]||a["@@iterator"],typeof a=="function"?a:null)}var V=Symbol.for("react.client.reference");function Q(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===V?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case w:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case j:return"Suspense";case N:return"SuspenseList";case L:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case O:return"Portal";case A:return a.displayName||"Context";case T:return(a._context.displayName||"Context")+".Consumer";case M:var o=a.render;return a=a.displayName,a||(a=o.displayName||o.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case R:return o=a.displayName||null,o!==null?o:Q(a.type)||"Memo";case P:o=a._payload,a=a._init;try{return Q(a(o))}catch{}}return null}var K=Array.isArray,k=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B={pending:!1,data:null,method:null,action:null},W=[],le=-1;function $(a){return{current:a}}function F(a){0>le||(a.current=W[le],W[le]=null,le--)}function X(a,o){le++,W[le]=a.current,a.current=o}var ae=$(null),de=$(null),ge=$(null),ce=$(null);function he(a,o){switch(X(ge,o),X(de,a),X(ae,null),o.nodeType){case 9:case 11:a=(a=o.documentElement)&&(a=a.namespaceURI)?OT(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=OT(o),a=_T(o,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}F(ae),X(ae,a)}function ie(){F(ae),F(de),F(ge)}function pe(a){a.memoizedState!==null&&X(ce,a);var o=ae.current,u=_T(o,a.type);o!==u&&(X(de,a),X(ae,u))}function ve(a){de.current===a&&(F(ae),F(de)),ce.current===a&&(F(ce),ju._currentValue=B)}var ne,Pe;function Ee(a){if(ne===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);ne=o&&o[1]||"",Pe=-1<u.stack.indexOf(`
|
|
42
|
-
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
-
`+ne+a+Pe}var Xe=!1;function Ge(a,o){if(!a||Xe)return"";Xe=!0;var u=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var fe=function(){throw Error()};if(Object.defineProperty(fe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(fe,[])}catch(re){var te=re}Reflect.construct(a,[],fe)}else{try{fe.call()}catch(re){te=re}a.call(fe.prototype)}}else{try{throw Error()}catch(re){te=re}(fe=a())&&typeof fe.catch=="function"&&fe.catch(function(){})}}catch(re){if(re&&te&&typeof re.stack=="string")return[re.stack,te.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),C=b[0],D=b[1];if(C&&D){var U=C.split(`
|
|
44
|
-
`),ee=D.split(`
|
|
45
|
-
`);for(g=h=0;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;for(;g<ee.length&&!ee[g].includes("DetermineComponentFrameRoot");)g++;if(h===U.length||g===ee.length)for(h=U.length-1,g=ee.length-1;1<=h&&0<=g&&U[h]!==ee[g];)g--;for(;1<=h&&0<=g;h--,g--)if(U[h]!==ee[g]){if(h!==1||g!==1)do if(h--,g--,0>g||U[h]!==ee[g]){var oe=`
|
|
46
|
-
`+U[h].replace(" at new "," at ");return a.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",a.displayName)),oe}while(1<=h&&0<=g);break}}}finally{Xe=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?Ee(u):""}function at(a,o){switch(a.tag){case 26:case 27:case 5:return Ee(a.type);case 16:return Ee("Lazy");case 13:return a.child!==o&&o!==null?Ee("Suspense Fallback"):Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return Ge(a.type,!1);case 11:return Ge(a.type.render,!1);case 1:return Ge(a.type,!0);case 31:return Ee("Activity");default:return""}}function un(a){try{var o="",u=null;do o+=at(a,u),u=a,a=a.return;while(a);return o}catch(h){return`
|
|
47
|
-
Error generating stack: `+h.message+`
|
|
48
|
-
`+h.stack}}var ht=Object.prototype.hasOwnProperty,qr=e.unstable_scheduleCallback,$n=e.unstable_cancelCallback,wt=e.unstable_shouldYield,Qn=e.unstable_requestPaint,Yt=e.unstable_now,zo=e.unstable_getCurrentPriorityLevel,Ii=e.unstable_ImmediatePriority,yf=e.unstable_UserBlockingPriority,zi=e.unstable_NormalPriority,qs=e.unstable_LowPriority,sa=e.unstable_IdlePriority,bf=e.log,Ya=e.unstable_setDisableYieldValue,Bi=null,yn=null;function br(a){if(typeof bf=="function"&&Ya(a),yn&&typeof yn.setStrictMode=="function")try{yn.setStrictMode(Bi,a)}catch{}}var cn=Math.clz32?Math.clz32:Ur,Pm=Math.log,Us=Math.LN2;function Ur(a){return a>>>=0,a===0?32:31-(Pm(a)/Us|0)|0}var Bo=256,qo=262144,qi=4194304;function Hr(a){var o=a&42;if(o!==0)return o;switch(a&-a){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return a&261888;case 262144:case 524288:case 1048576:case 2097152:return a&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return a&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return a}}function Ce(a,o,u){var h=a.pendingLanes;if(h===0)return 0;var g=0,b=a.suspendedLanes,C=a.pingedLanes;a=a.warmLanes;var D=h&134217727;return D!==0?(h=D&~b,h!==0?g=Hr(h):(C&=D,C!==0?g=Hr(C):u||(u=D&~a,u!==0&&(g=Hr(u))))):(D=h&~b,D!==0?g=Hr(D):C!==0?g=Hr(C):u||(u=h&~a,u!==0&&(g=Hr(u)))),g===0?0:o!==0&&o!==g&&(o&b)===0&&(b=g&-g,u=o&-o,b>=u||b===32&&(u&4194048)!==0)?o:g}function gt(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function Wt(a,o){switch(a){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 fn(){var a=qi;return qi<<=1,(qi&62914560)===0&&(qi=4194304),a}function Wa(a){for(var o=[],u=0;31>u;u++)o.push(a);return o}function St(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Sn(a,o,u,h,g,b){var C=a.pendingLanes;a.pendingLanes=u,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=u,a.entangledLanes&=u,a.errorRecoveryDisabledLanes&=u,a.shellSuspendCounter=0;var D=a.entanglements,U=a.expirationTimes,ee=a.hiddenUpdates;for(u=C&~u;0<u;){var oe=31-cn(u),fe=1<<oe;D[oe]=0,U[oe]=-1;var te=ee[oe];if(te!==null)for(ee[oe]=null,oe=0;oe<te.length;oe++){var re=te[oe];re!==null&&(re.lane&=-536870913)}u&=~fe}h!==0&&Ui(a,h,0),b!==0&&g===0&&a.tag!==0&&(a.suspendedLanes|=b&~(C&~o))}function Ui(a,o,u){a.pendingLanes|=o,a.suspendedLanes&=~o;var h=31-cn(o);a.entangledLanes|=o,a.entanglements[h]=a.entanglements[h]|1073741824|u&261930}function On(a,o){var u=a.entangledLanes|=o;for(a=a.entanglements;u;){var h=31-cn(u),g=1<<h;g&o|a[h]&o&&(a[h]|=o),u&=~g}}function _n(a,o){var u=o&-o;return u=(u&42)!==0?1:Uo(u),(u&(a.suspendedLanes|o))!==0?0:u}function Uo(a){switch(a){case 2:a=1;break;case 8:a=4;break;case 32:a=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:a=128;break;case 268435456:a=134217728;break;default:a=0}return a}function xr(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Dm(){var a=q.p;return a!==0?a:(a=window.event,a===void 0?32:YT(a.type))}function u_(a,o){var u=q.p;try{return q.p=a,o()}finally{q.p=u}}var Ka=Math.random().toString(36).slice(2),en="__reactFiber$"+Ka,En="__reactProps$"+Ka,Ho="__reactContainer$"+Ka,km="__reactEvents$"+Ka,T5="__reactListeners$"+Ka,j5="__reactHandles$"+Ka,c_="__reactResources$"+Ka,Hs="__reactMarker$"+Ka;function $m(a){delete a[en],delete a[En],delete a[km],delete a[T5],delete a[j5]}function Fo(a){var o=a[en];if(o)return o;for(var u=a.parentNode;u;){if(o=u[Ho]||u[en]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(a=NT(a);a!==null;){if(u=a[en])return u;a=NT(a)}return o}a=u,u=a.parentNode}return null}function Go(a){if(a=a[en]||a[Ho]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function Fs(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function Vo(a){var o=a[c_];return o||(o=a[c_]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Kt(a){a[Hs]=!0}var f_=new Set,d_={};function Hi(a,o){Yo(a,o),Yo(a+"Capture",o)}function Yo(a,o){for(d_[a]=o,a=0;a<o.length;a++)f_.add(o[a])}var C5=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]*$"),h_={},p_={};function M5(a){return ht.call(p_,a)?!0:ht.call(h_,a)?!1:C5.test(a)?p_[a]=!0:(h_[a]=!0,!1)}function xf(a,o,u){if(M5(o))if(u===null)a.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":a.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){a.removeAttribute(o);return}}a.setAttribute(o,""+u)}}function wf(a,o,u){if(u===null)a.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(o);return}a.setAttribute(o,""+u)}}function ua(a,o,u,h){if(h===null)a.removeAttribute(u);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(u);return}a.setAttributeNS(o,u,""+h)}}function Zn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function m_(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function N5(a,o,u){var h=Object.getOwnPropertyDescriptor(a.constructor.prototype,o);if(!a.hasOwnProperty(o)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var g=h.get,b=h.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return g.call(this)},set:function(C){u=""+C,b.call(this,C)}}),Object.defineProperty(a,o,{enumerable:h.enumerable}),{getValue:function(){return u},setValue:function(C){u=""+C},stopTracking:function(){a._valueTracker=null,delete a[o]}}}}function Lm(a){if(!a._valueTracker){var o=m_(a)?"checked":"value";a._valueTracker=N5(a,o,""+a[o])}}function v_(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return a&&(h=m_(a)?a.checked?"true":"false":a.value),a=h,a!==u?(o.setValue(a),!0):!1}function Sf(a){if(a=a||(typeof document<"u"?document:void 0),typeof a>"u")return null;try{return a.activeElement||a.body}catch{return a.body}}var R5=/[\n"\\]/g;function Jn(a){return a.replace(R5,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Im(a,o,u,h,g,b,C,D){a.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?a.type=C:a.removeAttribute("type"),o!=null?C==="number"?(o===0&&a.value===""||a.value!=o)&&(a.value=""+Zn(o)):a.value!==""+Zn(o)&&(a.value=""+Zn(o)):C!=="submit"&&C!=="reset"||a.removeAttribute("value"),o!=null?zm(a,C,Zn(o)):u!=null?zm(a,C,Zn(u)):h!=null&&a.removeAttribute("value"),g==null&&b!=null&&(a.defaultChecked=!!b),g!=null&&(a.checked=g&&typeof g!="function"&&typeof g!="symbol"),D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?a.name=""+Zn(D):a.removeAttribute("name")}function g_(a,o,u,h,g,b,C,D){if(b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(a.type=b),o!=null||u!=null){if(!(b!=="submit"&&b!=="reset"||o!=null)){Lm(a);return}u=u!=null?""+Zn(u):"",o=o!=null?""+Zn(o):u,D||o===a.value||(a.value=o),a.defaultValue=o}h=h??g,h=typeof h!="function"&&typeof h!="symbol"&&!!h,a.checked=D?a.checked:!!h,a.defaultChecked=!!h,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(a.name=C),Lm(a)}function zm(a,o,u){o==="number"&&Sf(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function Wo(a,o,u,h){if(a=a.options,o){o={};for(var g=0;g<u.length;g++)o["$"+u[g]]=!0;for(u=0;u<a.length;u++)g=o.hasOwnProperty("$"+a[u].value),a[u].selected!==g&&(a[u].selected=g),g&&h&&(a[u].defaultSelected=!0)}else{for(u=""+Zn(u),o=null,g=0;g<a.length;g++){if(a[g].value===u){a[g].selected=!0,h&&(a[g].defaultSelected=!0);return}o!==null||a[g].disabled||(o=a[g])}o!==null&&(o.selected=!0)}}function y_(a,o,u){if(o!=null&&(o=""+Zn(o),o!==a.value&&(a.value=o),u==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=u!=null?""+Zn(u):""}function b_(a,o,u,h){if(o==null){if(h!=null){if(u!=null)throw Error(r(92));if(K(h)){if(1<h.length)throw Error(r(93));h=h[0]}u=h}u==null&&(u=""),o=u}u=Zn(o),a.defaultValue=u,h=a.textContent,h===u&&h!==""&&h!==null&&(a.value=h),Lm(a)}function Ko(a,o){if(o){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=o;return}}a.textContent=o}var P5=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 x_(a,o,u){var h=o.indexOf("--")===0;u==null||typeof u=="boolean"||u===""?h?a.setProperty(o,""):o==="float"?a.cssFloat="":a[o]="":h?a.setProperty(o,u):typeof u!="number"||u===0||P5.has(o)?o==="float"?a.cssFloat=u:a[o]=(""+u).trim():a[o]=u+"px"}function w_(a,o,u){if(o!=null&&typeof o!="object")throw Error(r(62));if(a=a.style,u!=null){for(var h in u)!u.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?a.setProperty(h,""):h==="float"?a.cssFloat="":a[h]="");for(var g in o)h=o[g],o.hasOwnProperty(g)&&u[g]!==h&&x_(a,g,h)}else for(var b in o)o.hasOwnProperty(b)&&x_(a,b,o[b])}function Bm(a){if(a.indexOf("-")===-1)return!1;switch(a){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var D5=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"]]),k5=/^[\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 Of(a){return k5.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ca(){}var qm=null;function Um(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var Xo=null,Qo=null;function S_(a){var o=Go(a);if(o&&(a=o.stateNode)){var u=a[En]||null;e:switch(a=o.stateNode,o.type){case"input":if(Im(a,u.value,u.defaultValue,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name),o=u.name,u.type==="radio"&&o!=null){for(u=a;u.parentNode;)u=u.parentNode;for(u=u.querySelectorAll('input[name="'+Jn(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==a&&h.form===a.form){var g=h[En]||null;if(!g)throw Error(r(90));Im(h,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===a.form&&v_(h)}break e;case"textarea":y_(a,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Wo(a,!!u.multiple,o,!1)}}}var Hm=!1;function O_(a,o,u){if(Hm)return a(o,u);Hm=!0;try{var h=a(o);return h}finally{if(Hm=!1,(Xo!==null||Qo!==null)&&(cd(),Xo&&(o=Xo,a=Qo,Qo=Xo=null,S_(o),a)))for(o=0;o<a.length;o++)S_(a[o])}}function Gs(a,o){var u=a.stateNode;if(u===null)return null;var h=u[En]||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)||(a=a.type,h=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!h;break e;default:a=!1}if(a)return null;if(u&&typeof u!="function")throw Error(r(231,o,typeof u));return u}var fa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Fm=!1;if(fa)try{var Vs={};Object.defineProperty(Vs,"passive",{get:function(){Fm=!0}}),window.addEventListener("test",Vs,Vs),window.removeEventListener("test",Vs,Vs)}catch{Fm=!1}var Xa=null,Gm=null,_f=null;function __(){if(_f)return _f;var a,o=Gm,u=o.length,h,g="value"in Xa?Xa.value:Xa.textContent,b=g.length;for(a=0;a<u&&o[a]===g[a];a++);var C=u-a;for(h=1;h<=C&&o[u-h]===g[b-h];h++);return _f=g.slice(a,1<h?1-h:void 0)}function Ef(a){var o=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&o===13&&(a=13)):a=o,a===10&&(a=13),32<=a||a===13?a:0}function Af(){return!0}function E_(){return!1}function An(a){function o(u,h,g,b,C){this._reactName=u,this._targetInst=g,this.type=h,this.nativeEvent=b,this.target=C,this.currentTarget=null;for(var D in a)a.hasOwnProperty(D)&&(u=a[D],this[D]=u?u(b):b[D]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Af:E_,this.isPropagationStopped=E_,this}return p(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=Af)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Af)},persist:function(){},isPersistent:Af}),o}var Fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Tf=An(Fi),Ys=p({},Fi,{view:0,detail:0}),$5=An(Ys),Vm,Ym,Ws,jf=p({},Ys,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Km,button:0,buttons:0,relatedTarget:function(a){return a.relatedTarget===void 0?a.fromElement===a.srcElement?a.toElement:a.fromElement:a.relatedTarget},movementX:function(a){return"movementX"in a?a.movementX:(a!==Ws&&(Ws&&a.type==="mousemove"?(Vm=a.screenX-Ws.screenX,Ym=a.screenY-Ws.screenY):Ym=Vm=0,Ws=a),Vm)},movementY:function(a){return"movementY"in a?a.movementY:Ym}}),A_=An(jf),L5=p({},jf,{dataTransfer:0}),I5=An(L5),z5=p({},Ys,{relatedTarget:0}),Wm=An(z5),B5=p({},Fi,{animationName:0,elapsedTime:0,pseudoElement:0}),q5=An(B5),U5=p({},Fi,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),H5=An(U5),F5=p({},Fi,{data:0}),T_=An(F5),G5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},V5={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"},Y5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function W5(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=Y5[a])?!!o[a]:!1}function Km(){return W5}var K5=p({},Ys,{key:function(a){if(a.key){var o=G5[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=Ef(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?V5[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Km,charCode:function(a){return a.type==="keypress"?Ef(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Ef(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),X5=An(K5),Q5=p({},jf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),j_=An(Q5),Z5=p({},Ys,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Km}),J5=An(Z5),eB=p({},Fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),tB=An(eB),nB=p({},jf,{deltaX:function(a){return"deltaX"in a?a.deltaX:"wheelDeltaX"in a?-a.wheelDeltaX:0},deltaY:function(a){return"deltaY"in a?a.deltaY:"wheelDeltaY"in a?-a.wheelDeltaY:"wheelDelta"in a?-a.wheelDelta:0},deltaZ:0,deltaMode:0}),rB=An(nB),aB=p({},Fi,{newState:0,oldState:0}),iB=An(aB),oB=[9,13,27,32],Xm=fa&&"CompositionEvent"in window,Ks=null;fa&&"documentMode"in document&&(Ks=document.documentMode);var lB=fa&&"TextEvent"in window&&!Ks,C_=fa&&(!Xm||Ks&&8<Ks&&11>=Ks),M_=" ",N_=!1;function R_(a,o){switch(a){case"keyup":return oB.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function P_(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Zo=!1;function sB(a,o){switch(a){case"compositionend":return P_(o);case"keypress":return o.which!==32?null:(N_=!0,M_);case"textInput":return a=o.data,a===M_&&N_?null:a;default:return null}}function uB(a,o){if(Zo)return a==="compositionend"||!Xm&&R_(a,o)?(a=__(),_f=Gm=Xa=null,Zo=!1,a):null;switch(a){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 C_&&o.locale!=="ko"?null:o.data;default:return null}}var cB={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 D_(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!cB[a.type]:o==="textarea"}function k_(a,o,u,h){Xo?Qo?Qo.push(h):Qo=[h]:Xo=h,o=gd(o,"onChange"),0<o.length&&(u=new Tf("onChange","change",null,u,h),a.push({event:u,listeners:o}))}var Xs=null,Qs=null;function fB(a){gT(a,0)}function Cf(a){var o=Fs(a);if(v_(o))return a}function $_(a,o){if(a==="change")return o}var L_=!1;if(fa){var Qm;if(fa){var Zm="oninput"in document;if(!Zm){var I_=document.createElement("div");I_.setAttribute("oninput","return;"),Zm=typeof I_.oninput=="function"}Qm=Zm}else Qm=!1;L_=Qm&&(!document.documentMode||9<document.documentMode)}function z_(){Xs&&(Xs.detachEvent("onpropertychange",B_),Qs=Xs=null)}function B_(a){if(a.propertyName==="value"&&Cf(Qs)){var o=[];k_(o,Qs,a,Um(a)),O_(fB,o)}}function dB(a,o,u){a==="focusin"?(z_(),Xs=o,Qs=u,Xs.attachEvent("onpropertychange",B_)):a==="focusout"&&z_()}function hB(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Cf(Qs)}function pB(a,o){if(a==="click")return Cf(o)}function mB(a,o){if(a==="input"||a==="change")return Cf(o)}function vB(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Ln=typeof Object.is=="function"?Object.is:vB;function Zs(a,o){if(Ln(a,o))return!0;if(typeof a!="object"||a===null||typeof o!="object"||o===null)return!1;var u=Object.keys(a),h=Object.keys(o);if(u.length!==h.length)return!1;for(h=0;h<u.length;h++){var g=u[h];if(!ht.call(o,g)||!Ln(a[g],o[g]))return!1}return!0}function q_(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function U_(a,o){var u=q_(a);a=0;for(var h;u;){if(u.nodeType===3){if(h=a+u.textContent.length,a<=o&&h>=o)return{node:u,offset:o-a};a=h}e:{for(;u;){if(u.nextSibling){u=u.nextSibling;break e}u=u.parentNode}u=void 0}u=q_(u)}}function H_(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?H_(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function F_(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=Sf(a.document);o instanceof a.HTMLIFrameElement;){try{var u=typeof o.contentWindow.location.href=="string"}catch{u=!1}if(u)a=o.contentWindow;else break;o=Sf(a.document)}return o}function Jm(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o&&(o==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||o==="textarea"||a.contentEditable==="true")}var gB=fa&&"documentMode"in document&&11>=document.documentMode,Jo=null,ev=null,Js=null,tv=!1;function G_(a,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;tv||Jo==null||Jo!==Sf(h)||(h=Jo,"selectionStart"in h&&Jm(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}),Js&&Zs(Js,h)||(Js=h,h=gd(ev,"onSelect"),0<h.length&&(o=new Tf("onSelect","select",null,o,u),a.push({event:o,listeners:h}),o.target=Jo)))}function Gi(a,o){var u={};return u[a.toLowerCase()]=o.toLowerCase(),u["Webkit"+a]="webkit"+o,u["Moz"+a]="moz"+o,u}var el={animationend:Gi("Animation","AnimationEnd"),animationiteration:Gi("Animation","AnimationIteration"),animationstart:Gi("Animation","AnimationStart"),transitionrun:Gi("Transition","TransitionRun"),transitionstart:Gi("Transition","TransitionStart"),transitioncancel:Gi("Transition","TransitionCancel"),transitionend:Gi("Transition","TransitionEnd")},nv={},V_={};fa&&(V_=document.createElement("div").style,"AnimationEvent"in window||(delete el.animationend.animation,delete el.animationiteration.animation,delete el.animationstart.animation),"TransitionEvent"in window||delete el.transitionend.transition);function Vi(a){if(nv[a])return nv[a];if(!el[a])return a;var o=el[a],u;for(u in o)if(o.hasOwnProperty(u)&&u in V_)return nv[a]=o[u];return a}var Y_=Vi("animationend"),W_=Vi("animationiteration"),K_=Vi("animationstart"),yB=Vi("transitionrun"),bB=Vi("transitionstart"),xB=Vi("transitioncancel"),X_=Vi("transitionend"),Q_=new Map,rv="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(" ");rv.push("scrollEnd");function wr(a,o){Q_.set(a,o),Hi(o,[a])}var Mf=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof a=="object"&&a!==null&&typeof a.message=="string"?String(a.message):String(a),error:a});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},er=[],tl=0,av=0;function Nf(){for(var a=tl,o=av=tl=0;o<a;){var u=er[o];er[o++]=null;var h=er[o];er[o++]=null;var g=er[o];er[o++]=null;var b=er[o];if(er[o++]=null,h!==null&&g!==null){var C=h.pending;C===null?g.next=g:(g.next=C.next,C.next=g),h.pending=g}b!==0&&Z_(u,g,b)}}function Rf(a,o,u,h){er[tl++]=a,er[tl++]=o,er[tl++]=u,er[tl++]=h,av|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function iv(a,o,u,h){return Rf(a,o,u,h),Pf(a)}function Yi(a,o){return Rf(a,null,null,o),Pf(a)}function Z_(a,o,u){a.lanes|=u;var h=a.alternate;h!==null&&(h.lanes|=u);for(var g=!1,b=a.return;b!==null;)b.childLanes|=u,h=b.alternate,h!==null&&(h.childLanes|=u),b.tag===22&&(a=b.stateNode,a===null||a._visibility&1||(g=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,g&&o!==null&&(g=31-cn(u),a=b.hiddenUpdates,h=a[g],h===null?a[g]=[o]:h.push(o),o.lane=u|536870912),b):null}function Pf(a){if(50<wu)throw wu=0,pg=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var nl={};function wB(a,o,u,h){this.tag=a,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 In(a,o,u,h){return new wB(a,o,u,h)}function ov(a){return a=a.prototype,!(!a||!a.isReactComponent)}function da(a,o){var u=a.alternate;return u===null?(u=In(a.tag,o,a.key,a.mode),u.elementType=a.elementType,u.type=a.type,u.stateNode=a.stateNode,u.alternate=a,a.alternate=u):(u.pendingProps=o,u.type=a.type,u.flags=0,u.subtreeFlags=0,u.deletions=null),u.flags=a.flags&65011712,u.childLanes=a.childLanes,u.lanes=a.lanes,u.child=a.child,u.memoizedProps=a.memoizedProps,u.memoizedState=a.memoizedState,u.updateQueue=a.updateQueue,o=a.dependencies,u.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},u.sibling=a.sibling,u.index=a.index,u.ref=a.ref,u.refCleanup=a.refCleanup,u}function J_(a,o){a.flags&=65011714;var u=a.alternate;return u===null?(a.childLanes=0,a.lanes=o,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,o=u.dependencies,a.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),a}function Df(a,o,u,h,g,b){var C=0;if(h=a,typeof a=="function")ov(a)&&(C=1);else if(typeof a=="string")C=Aq(a,u,ae.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case L:return a=In(31,u,o,g),a.elementType=L,a.lanes=b,a;case w:return Wi(u.children,g,b,o);case S:C=8,g|=24;break;case E:return a=In(12,u,o,g|2),a.elementType=E,a.lanes=b,a;case j:return a=In(13,u,o,g),a.elementType=j,a.lanes=b,a;case N:return a=In(19,u,o,g),a.elementType=N,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case A:C=10;break e;case T:C=9;break e;case M:C=11;break e;case R:C=14;break e;case P:C=16,h=null;break e}C=29,u=Error(r(130,a===null?"null":typeof a,"")),h=null}return o=In(C,u,o,g),o.elementType=a,o.type=h,o.lanes=b,o}function Wi(a,o,u,h){return a=In(7,a,h,o),a.lanes=u,a}function lv(a,o,u){return a=In(6,a,null,o),a.lanes=u,a}function eE(a){var o=In(18,null,null,0);return o.stateNode=a,o}function sv(a,o,u){return o=In(4,a.children!==null?a.children:[],a.key,o),o.lanes=u,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var tE=new WeakMap;function tr(a,o){if(typeof a=="object"&&a!==null){var u=tE.get(a);return u!==void 0?u:(o={value:a,source:o,stack:un(o)},tE.set(a,o),o)}return{value:a,source:o,stack:un(o)}}var rl=[],al=0,kf=null,eu=0,nr=[],rr=0,Qa=null,Fr=1,Gr="";function ha(a,o){rl[al++]=eu,rl[al++]=kf,kf=a,eu=o}function nE(a,o,u){nr[rr++]=Fr,nr[rr++]=Gr,nr[rr++]=Qa,Qa=a;var h=Fr;a=Gr;var g=32-cn(h)-1;h&=~(1<<g),u+=1;var b=32-cn(o)+g;if(30<b){var C=g-g%5;b=(h&(1<<C)-1).toString(32),h>>=C,g-=C,Fr=1<<32-cn(o)+g|u<<g|h,Gr=b+a}else Fr=1<<b|u<<g|h,Gr=a}function uv(a){a.return!==null&&(ha(a,1),nE(a,1,0))}function cv(a){for(;a===kf;)kf=rl[--al],rl[al]=null,eu=rl[--al],rl[al]=null;for(;a===Qa;)Qa=nr[--rr],nr[rr]=null,Gr=nr[--rr],nr[rr]=null,Fr=nr[--rr],nr[rr]=null}function rE(a,o){nr[rr++]=Fr,nr[rr++]=Gr,nr[rr++]=Qa,Fr=o.id,Gr=o.overflow,Qa=a}var tn=null,pt=null,Ue=!1,Za=null,ar=!1,fv=Error(r(519));function Ja(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw tu(tr(o,a)),fv}function aE(a){var o=a.stateNode,u=a.type,h=a.memoizedProps;switch(o[en]=a,o[En]=h,u){case"dialog":Ie("cancel",o),Ie("close",o);break;case"iframe":case"object":case"embed":Ie("load",o);break;case"video":case"audio":for(u=0;u<Ou.length;u++)Ie(Ou[u],o);break;case"source":Ie("error",o);break;case"img":case"image":case"link":Ie("error",o),Ie("load",o);break;case"details":Ie("toggle",o);break;case"input":Ie("invalid",o),g_(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Ie("invalid",o);break;case"textarea":Ie("invalid",o),b_(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||wT(o.textContent,u)?(h.popover!=null&&(Ie("beforetoggle",o),Ie("toggle",o)),h.onScroll!=null&&Ie("scroll",o),h.onScrollEnd!=null&&Ie("scrollend",o),h.onClick!=null&&(o.onclick=ca),o=!0):o=!1,o||Ja(a,!0)}function iE(a){for(tn=a.return;tn;)switch(tn.tag){case 5:case 31:case 13:ar=!1;return;case 27:case 3:ar=!0;return;default:tn=tn.return}}function il(a){if(a!==tn)return!1;if(!Ue)return iE(a),Ue=!0,!1;var o=a.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||Cg(a.type,a.memoizedProps)),u=!u),u&&pt&&Ja(a),iE(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));pt=MT(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));pt=MT(a)}else o===27?(o=pt,hi(a.type)?(a=Dg,Dg=null,pt=a):pt=o):pt=tn?or(a.stateNode.nextSibling):null;return!0}function Ki(){pt=tn=null,Ue=!1}function dv(){var a=Za;return a!==null&&(Mn===null?Mn=a:Mn.push.apply(Mn,a),Za=null),a}function tu(a){Za===null?Za=[a]:Za.push(a)}var hv=$(null),Xi=null,pa=null;function ei(a,o,u){X(hv,o._currentValue),o._currentValue=u}function ma(a){a._currentValue=hv.current,F(hv)}function pv(a,o,u){for(;a!==null;){var h=a.alternate;if((a.childLanes&o)!==o?(a.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),a===u)break;a=a.return}}function mv(a,o,u,h){var g=a.child;for(g!==null&&(g.return=a);g!==null;){var b=g.dependencies;if(b!==null){var C=g.child;b=b.firstContext;e:for(;b!==null;){var D=b;b=g;for(var U=0;U<o.length;U++)if(D.context===o[U]){b.lanes|=u,D=b.alternate,D!==null&&(D.lanes|=u),pv(b.return,u,a),h||(C=null);break e}b=D.next}}else if(g.tag===18){if(C=g.return,C===null)throw Error(r(341));C.lanes|=u,b=C.alternate,b!==null&&(b.lanes|=u),pv(C,u,a),C=null}else C=g.child;if(C!==null)C.return=g;else for(C=g;C!==null;){if(C===a){C=null;break}if(g=C.sibling,g!==null){g.return=C.return,C=g;break}C=C.return}g=C}}function ol(a,o,u,h){a=null;for(var g=o,b=!1;g!==null;){if(!b){if((g.flags&524288)!==0)b=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var C=g.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var D=g.type;Ln(g.pendingProps.value,C.value)||(a!==null?a.push(D):a=[D])}}else if(g===ce.current){if(C=g.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(a!==null?a.push(ju):a=[ju])}g=g.return}a!==null&&mv(o,a,u,h),o.flags|=262144}function $f(a){for(a=a.firstContext;a!==null;){if(!Ln(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function Qi(a){Xi=a,pa=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function nn(a){return oE(Xi,a)}function Lf(a,o){return Xi===null&&Qi(a),oE(a,o)}function oE(a,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},pa===null){if(a===null)throw Error(r(308));pa=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else pa=pa.next=o;return u}var SB=typeof AbortController<"u"?AbortController:function(){var a=[],o=this.signal={aborted:!1,addEventListener:function(u,h){a.push(h)}};this.abort=function(){o.aborted=!0,a.forEach(function(u){return u()})}},OB=e.unstable_scheduleCallback,_B=e.unstable_NormalPriority,Mt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vv(){return{controller:new SB,data:new Map,refCount:0}}function nu(a){a.refCount--,a.refCount===0&&OB(_B,function(){a.controller.abort()})}var ru=null,gv=0,ll=0,sl=null;function EB(a,o){if(ru===null){var u=ru=[];gv=0,ll=xg(),sl={status:"pending",value:void 0,then:function(h){u.push(h)}}}return gv++,o.then(lE,lE),o}function lE(){if(--gv===0&&ru!==null){sl!==null&&(sl.status="fulfilled");var a=ru;ru=null,ll=0,sl=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function AB(a,o){var u=[],h={status:"pending",value:null,reason:null,then:function(g){u.push(g)}};return a.then(function(){h.status="fulfilled",h.value=o;for(var g=0;g<u.length;g++)(0,u[g])(o)},function(g){for(h.status="rejected",h.reason=g,g=0;g<u.length;g++)(0,u[g])(void 0)}),h}var sE=k.S;k.S=function(a,o){GA=Yt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&EB(a,o),sE!==null&&sE(a,o)};var Zi=$(null);function yv(){var a=Zi.current;return a!==null?a:ct.pooledCache}function If(a,o){o===null?X(Zi,Zi.current):X(Zi,o.pool)}function uE(){var a=yv();return a===null?null:{parent:Mt._currentValue,pool:a}}var ul=Error(r(460)),bv=Error(r(474)),zf=Error(r(542)),Bf={then:function(){}};function cE(a){return a=a.status,a==="fulfilled"||a==="rejected"}function fE(a,o,u){switch(u=a[u],u===void 0?a.push(o):u!==o&&(o.then(ca,ca),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,hE(a),a;default:if(typeof o.status=="string")o.then(ca,ca);else{if(a=ct,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=o,a.status="pending",a.then(function(h){if(o.status==="pending"){var g=o;g.status="fulfilled",g.value=h}},function(h){if(o.status==="pending"){var g=o;g.status="rejected",g.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,hE(a),a}throw eo=o,ul}}function Ji(a){try{var o=a._init;return o(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(eo=u,ul):u}}var eo=null;function dE(){if(eo===null)throw Error(r(459));var a=eo;return eo=null,a}function hE(a){if(a===ul||a===zf)throw Error(r(483))}var cl=null,au=0;function qf(a){var o=au;return au+=1,cl===null&&(cl=[]),fE(cl,a,o)}function iu(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function Uf(a,o){throw o.$$typeof===y?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function pE(a){function o(Z,G){if(a){var J=Z.deletions;J===null?(Z.deletions=[G],Z.flags|=16):J.push(G)}}function u(Z,G){if(!a)return null;for(;G!==null;)o(Z,G),G=G.sibling;return null}function h(Z){for(var G=new Map;Z!==null;)Z.key!==null?G.set(Z.key,Z):G.set(Z.index,Z),Z=Z.sibling;return G}function g(Z,G){return Z=da(Z,G),Z.index=0,Z.sibling=null,Z}function b(Z,G,J){return Z.index=J,a?(J=Z.alternate,J!==null?(J=J.index,J<G?(Z.flags|=67108866,G):J):(Z.flags|=67108866,G)):(Z.flags|=1048576,G)}function C(Z){return a&&Z.alternate===null&&(Z.flags|=67108866),Z}function D(Z,G,J,ue){return G===null||G.tag!==6?(G=lv(J,Z.mode,ue),G.return=Z,G):(G=g(G,J),G.return=Z,G)}function U(Z,G,J,ue){var Ae=J.type;return Ae===w?oe(Z,G,J.props.children,ue,J.key):G!==null&&(G.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===P&&Ji(Ae)===G.type)?(G=g(G,J.props),iu(G,J),G.return=Z,G):(G=Df(J.type,J.key,J.props,null,Z.mode,ue),iu(G,J),G.return=Z,G)}function ee(Z,G,J,ue){return G===null||G.tag!==4||G.stateNode.containerInfo!==J.containerInfo||G.stateNode.implementation!==J.implementation?(G=sv(J,Z.mode,ue),G.return=Z,G):(G=g(G,J.children||[]),G.return=Z,G)}function oe(Z,G,J,ue,Ae){return G===null||G.tag!==7?(G=Wi(J,Z.mode,ue,Ae),G.return=Z,G):(G=g(G,J),G.return=Z,G)}function fe(Z,G,J){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=lv(""+G,Z.mode,J),G.return=Z,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return J=Df(G.type,G.key,G.props,null,Z.mode,J),iu(J,G),J.return=Z,J;case O:return G=sv(G,Z.mode,J),G.return=Z,G;case P:return G=Ji(G),fe(Z,G,J)}if(K(G)||H(G))return G=Wi(G,Z.mode,J,null),G.return=Z,G;if(typeof G.then=="function")return fe(Z,qf(G),J);if(G.$$typeof===A)return fe(Z,Lf(Z,G),J);Uf(Z,G)}return null}function te(Z,G,J,ue){var Ae=G!==null?G.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Ae!==null?null:D(Z,G,""+J,ue);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case x:return J.key===Ae?U(Z,G,J,ue):null;case O:return J.key===Ae?ee(Z,G,J,ue):null;case P:return J=Ji(J),te(Z,G,J,ue)}if(K(J)||H(J))return Ae!==null?null:oe(Z,G,J,ue,null);if(typeof J.then=="function")return te(Z,G,qf(J),ue);if(J.$$typeof===A)return te(Z,G,Lf(Z,J),ue);Uf(Z,J)}return null}function re(Z,G,J,ue,Ae){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Z=Z.get(J)||null,D(G,Z,""+ue,Ae);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case x:return Z=Z.get(ue.key===null?J:ue.key)||null,U(G,Z,ue,Ae);case O:return Z=Z.get(ue.key===null?J:ue.key)||null,ee(G,Z,ue,Ae);case P:return ue=Ji(ue),re(Z,G,J,ue,Ae)}if(K(ue)||H(ue))return Z=Z.get(J)||null,oe(G,Z,ue,Ae,null);if(typeof ue.then=="function")return re(Z,G,J,qf(ue),Ae);if(ue.$$typeof===A)return re(Z,G,J,Lf(G,ue),Ae);Uf(G,ue)}return null}function we(Z,G,J,ue){for(var Ae=null,Ve=null,_e=G,De=G=0,qe=null;_e!==null&&De<J.length;De++){_e.index>De?(qe=_e,_e=null):qe=_e.sibling;var Ye=te(Z,_e,J[De],ue);if(Ye===null){_e===null&&(_e=qe);break}a&&_e&&Ye.alternate===null&&o(Z,_e),G=b(Ye,G,De),Ve===null?Ae=Ye:Ve.sibling=Ye,Ve=Ye,_e=qe}if(De===J.length)return u(Z,_e),Ue&&ha(Z,De),Ae;if(_e===null){for(;De<J.length;De++)_e=fe(Z,J[De],ue),_e!==null&&(G=b(_e,G,De),Ve===null?Ae=_e:Ve.sibling=_e,Ve=_e);return Ue&&ha(Z,De),Ae}for(_e=h(_e);De<J.length;De++)qe=re(_e,Z,De,J[De],ue),qe!==null&&(a&&qe.alternate!==null&&_e.delete(qe.key===null?De:qe.key),G=b(qe,G,De),Ve===null?Ae=qe:Ve.sibling=qe,Ve=qe);return a&&_e.forEach(function(yi){return o(Z,yi)}),Ue&&ha(Z,De),Ae}function Te(Z,G,J,ue){if(J==null)throw Error(r(151));for(var Ae=null,Ve=null,_e=G,De=G=0,qe=null,Ye=J.next();_e!==null&&!Ye.done;De++,Ye=J.next()){_e.index>De?(qe=_e,_e=null):qe=_e.sibling;var yi=te(Z,_e,Ye.value,ue);if(yi===null){_e===null&&(_e=qe);break}a&&_e&&yi.alternate===null&&o(Z,_e),G=b(yi,G,De),Ve===null?Ae=yi:Ve.sibling=yi,Ve=yi,_e=qe}if(Ye.done)return u(Z,_e),Ue&&ha(Z,De),Ae;if(_e===null){for(;!Ye.done;De++,Ye=J.next())Ye=fe(Z,Ye.value,ue),Ye!==null&&(G=b(Ye,G,De),Ve===null?Ae=Ye:Ve.sibling=Ye,Ve=Ye);return Ue&&ha(Z,De),Ae}for(_e=h(_e);!Ye.done;De++,Ye=J.next())Ye=re(_e,Z,De,Ye.value,ue),Ye!==null&&(a&&Ye.alternate!==null&&_e.delete(Ye.key===null?De:Ye.key),G=b(Ye,G,De),Ve===null?Ae=Ye:Ve.sibling=Ye,Ve=Ye);return a&&_e.forEach(function(Lq){return o(Z,Lq)}),Ue&&ha(Z,De),Ae}function lt(Z,G,J,ue){if(typeof J=="object"&&J!==null&&J.type===w&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case x:e:{for(var Ae=J.key;G!==null;){if(G.key===Ae){if(Ae=J.type,Ae===w){if(G.tag===7){u(Z,G.sibling),ue=g(G,J.props.children),ue.return=Z,Z=ue;break e}}else if(G.elementType===Ae||typeof Ae=="object"&&Ae!==null&&Ae.$$typeof===P&&Ji(Ae)===G.type){u(Z,G.sibling),ue=g(G,J.props),iu(ue,J),ue.return=Z,Z=ue;break e}u(Z,G);break}else o(Z,G);G=G.sibling}J.type===w?(ue=Wi(J.props.children,Z.mode,ue,J.key),ue.return=Z,Z=ue):(ue=Df(J.type,J.key,J.props,null,Z.mode,ue),iu(ue,J),ue.return=Z,Z=ue)}return C(Z);case O:e:{for(Ae=J.key;G!==null;){if(G.key===Ae)if(G.tag===4&&G.stateNode.containerInfo===J.containerInfo&&G.stateNode.implementation===J.implementation){u(Z,G.sibling),ue=g(G,J.children||[]),ue.return=Z,Z=ue;break e}else{u(Z,G);break}else o(Z,G);G=G.sibling}ue=sv(J,Z.mode,ue),ue.return=Z,Z=ue}return C(Z);case P:return J=Ji(J),lt(Z,G,J,ue)}if(K(J))return we(Z,G,J,ue);if(H(J)){if(Ae=H(J),typeof Ae!="function")throw Error(r(150));return J=Ae.call(J),Te(Z,G,J,ue)}if(typeof J.then=="function")return lt(Z,G,qf(J),ue);if(J.$$typeof===A)return lt(Z,G,Lf(Z,J),ue);Uf(Z,J)}return typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint"?(J=""+J,G!==null&&G.tag===6?(u(Z,G.sibling),ue=g(G,J),ue.return=Z,Z=ue):(u(Z,G),ue=lv(J,Z.mode,ue),ue.return=Z,Z=ue),C(Z)):u(Z,G)}return function(Z,G,J,ue){try{au=0;var Ae=lt(Z,G,J,ue);return cl=null,Ae}catch(_e){if(_e===ul||_e===zf)throw _e;var Ve=In(29,_e,null,Z.mode);return Ve.lanes=ue,Ve.return=Z,Ve}finally{}}}var to=pE(!0),mE=pE(!1),ti=!1;function xv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wv(a,o){a=a.updateQueue,o.updateQueue===a&&(o.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function ni(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function ri(a,o,u){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(Qe&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=Pf(a),Z_(a,null,u),o}return Rf(a,h,o,u),Pf(a)}function ou(a,o,u){if(o=o.updateQueue,o!==null&&(o=o.shared,(u&4194048)!==0)){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,On(a,u)}}function Sv(a,o){var u=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var g=null,b=null;if(u=u.firstBaseUpdate,u!==null){do{var C={lane:u.lane,tag:u.tag,payload:u.payload,callback:null,next:null};b===null?g=b=C:b=b.next=C,u=u.next}while(u!==null);b===null?g=b=o:b=b.next=o}else g=b=o;u={baseState:h.baseState,firstBaseUpdate:g,lastBaseUpdate:b,shared:h.shared,callbacks:h.callbacks},a.updateQueue=u;return}a=u.lastBaseUpdate,a===null?u.firstBaseUpdate=o:a.next=o,u.lastBaseUpdate=o}var Ov=!1;function lu(){if(Ov){var a=sl;if(a!==null)throw a}}function su(a,o,u,h){Ov=!1;var g=a.updateQueue;ti=!1;var b=g.firstBaseUpdate,C=g.lastBaseUpdate,D=g.shared.pending;if(D!==null){g.shared.pending=null;var U=D,ee=U.next;U.next=null,C===null?b=ee:C.next=ee,C=U;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,D=oe.lastBaseUpdate,D!==C&&(D===null?oe.firstBaseUpdate=ee:D.next=ee,oe.lastBaseUpdate=U))}if(b!==null){var fe=g.baseState;C=0,oe=ee=U=null,D=b;do{var te=D.lane&-536870913,re=te!==D.lane;if(re?(Be&te)===te:(h&te)===te){te!==0&&te===ll&&(Ov=!0),oe!==null&&(oe=oe.next={lane:0,tag:D.tag,payload:D.payload,callback:null,next:null});e:{var we=a,Te=D;te=o;var lt=u;switch(Te.tag){case 1:if(we=Te.payload,typeof we=="function"){fe=we.call(lt,fe,te);break e}fe=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Te.payload,te=typeof we=="function"?we.call(lt,fe,te):we,te==null)break e;fe=p({},fe,te);break e;case 2:ti=!0}}te=D.callback,te!==null&&(a.flags|=64,re&&(a.flags|=8192),re=g.callbacks,re===null?g.callbacks=[te]:re.push(te))}else re={lane:te,tag:D.tag,payload:D.payload,callback:D.callback,next:null},oe===null?(ee=oe=re,U=fe):oe=oe.next=re,C|=te;if(D=D.next,D===null){if(D=g.shared.pending,D===null)break;re=D,D=re.next,re.next=null,g.lastBaseUpdate=re,g.shared.pending=null}}while(!0);oe===null&&(U=fe),g.baseState=U,g.firstBaseUpdate=ee,g.lastBaseUpdate=oe,b===null&&(g.shared.lanes=0),si|=C,a.lanes=C,a.memoizedState=fe}}function vE(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function gE(a,o){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)vE(u[a],o)}var fl=$(null),Hf=$(0);function yE(a,o){a=_a,X(Hf,a),X(fl,o),_a=a|o.baseLanes}function _v(){X(Hf,_a),X(fl,fl.current)}function Ev(){_a=Hf.current,F(fl),F(Hf)}var zn=$(null),ir=null;function ai(a){var o=a.alternate;X(Tt,Tt.current&1),X(zn,a),ir===null&&(o===null||fl.current!==null||o.memoizedState!==null)&&(ir=a)}function Av(a){X(Tt,Tt.current),X(zn,a),ir===null&&(ir=a)}function bE(a){a.tag===22?(X(Tt,Tt.current),X(zn,a),ir===null&&(ir=a)):ii()}function ii(){X(Tt,Tt.current),X(zn,zn.current)}function Bn(a){F(zn),ir===a&&(ir=null),F(Tt)}var Tt=$(0);function Ff(a){for(var o=a;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Rg(u)||Pg(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===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}var va=0,Ne=null,it=null,Nt=null,Gf=!1,dl=!1,no=!1,Vf=0,uu=0,hl=null,TB=0;function Ot(){throw Error(r(321))}function Tv(a,o){if(o===null)return!1;for(var u=0;u<o.length&&u<a.length;u++)if(!Ln(a[u],o[u]))return!1;return!0}function jv(a,o,u,h,g,b){return va=b,Ne=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,k.H=a===null||a.memoizedState===null?nA:Hv,no=!1,b=u(h,g),no=!1,dl&&(b=wE(o,u,h,g)),xE(a),b}function xE(a){k.H=du;var o=it!==null&&it.next!==null;if(va=0,Nt=it=Ne=null,Gf=!1,uu=0,hl=null,o)throw Error(r(300));a===null||Rt||(a=a.dependencies,a!==null&&$f(a)&&(Rt=!0))}function wE(a,o,u,h){Ne=a;var g=0;do{if(dl&&(hl=null),uu=0,dl=!1,25<=g)throw Error(r(301));if(g+=1,Nt=it=null,a.updateQueue!=null){var b=a.updateQueue;b.lastEffect=null,b.events=null,b.stores=null,b.memoCache!=null&&(b.memoCache.index=0)}k.H=rA,b=o(u,h)}while(dl);return b}function jB(){var a=k.H,o=a.useState()[0];return o=typeof o.then=="function"?cu(o):o,a=a.useState()[0],(it!==null?it.memoizedState:null)!==a&&(Ne.flags|=1024),o}function Cv(){var a=Vf!==0;return Vf=0,a}function Mv(a,o,u){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~u}function Nv(a){if(Gf){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Gf=!1}va=0,Nt=it=Ne=null,dl=!1,uu=Vf=0,hl=null}function bn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?Ne.memoizedState=Nt=a:Nt=Nt.next=a,Nt}function jt(){if(it===null){var a=Ne.alternate;a=a!==null?a.memoizedState:null}else a=it.next;var o=Nt===null?Ne.memoizedState:Nt.next;if(o!==null)Nt=o,it=a;else{if(a===null)throw Ne.alternate===null?Error(r(467)):Error(r(310));it=a,a={memoizedState:it.memoizedState,baseState:it.baseState,baseQueue:it.baseQueue,queue:it.queue,next:null},Nt===null?Ne.memoizedState=Nt=a:Nt=Nt.next=a}return Nt}function Yf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function cu(a){var o=uu;return uu+=1,hl===null&&(hl=[]),a=fE(hl,a,o),o=Ne,(Nt===null?o.memoizedState:Nt.next)===null&&(o=o.alternate,k.H=o===null||o.memoizedState===null?nA:Hv),a}function Wf(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return cu(a);if(a.$$typeof===A)return nn(a)}throw Error(r(438,String(a)))}function Rv(a){var o=null,u=Ne.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=Ne.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(g){return g.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=Yf(),Ne.updateQueue=u),u.memoCache=o,u=o.data[o.index],u===void 0)for(u=o.data[o.index]=Array(a),h=0;h<a;h++)u[h]=Y;return o.index++,u}function ga(a,o){return typeof o=="function"?o(a):o}function Kf(a){var o=jt();return Pv(o,it,a)}function Pv(a,o,u){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var g=a.baseQueue,b=h.pending;if(b!==null){if(g!==null){var C=g.next;g.next=b.next,b.next=C}o.baseQueue=g=b,h.pending=null}if(b=a.baseState,g===null)a.memoizedState=b;else{o=g.next;var D=C=null,U=null,ee=o,oe=!1;do{var fe=ee.lane&-536870913;if(fe!==ee.lane?(Be&fe)===fe:(va&fe)===fe){var te=ee.revertLane;if(te===0)U!==null&&(U=U.next={lane:0,revertLane:0,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null}),fe===ll&&(oe=!0);else if((va&te)===te){ee=ee.next,te===ll&&(oe=!0);continue}else fe={lane:0,revertLane:ee.revertLane,gesture:null,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(D=U=fe,C=b):U=U.next=fe,Ne.lanes|=te,si|=te;fe=ee.action,no&&u(b,fe),b=ee.hasEagerState?ee.eagerState:u(b,fe)}else te={lane:fe,revertLane:ee.revertLane,gesture:ee.gesture,action:ee.action,hasEagerState:ee.hasEagerState,eagerState:ee.eagerState,next:null},U===null?(D=U=te,C=b):U=U.next=te,Ne.lanes|=fe,si|=fe;ee=ee.next}while(ee!==null&&ee!==o);if(U===null?C=b:U.next=D,!Ln(b,a.memoizedState)&&(Rt=!0,oe&&(u=sl,u!==null)))throw u;a.memoizedState=b,a.baseState=C,a.baseQueue=U,h.lastRenderedState=b}return g===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function Dv(a){var o=jt(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var h=u.dispatch,g=u.pending,b=o.memoizedState;if(g!==null){u.pending=null;var C=g=g.next;do b=a(b,C.action),C=C.next;while(C!==g);Ln(b,o.memoizedState)||(Rt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),u.lastRenderedState=b}return[b,h]}function SE(a,o,u){var h=Ne,g=jt(),b=Ue;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=o();var C=!Ln((it||g).memoizedState,u);if(C&&(g.memoizedState=u,Rt=!0),g=g.queue,Lv(EE.bind(null,h,g,a),[a]),g.getSnapshot!==o||C||Nt!==null&&Nt.memoizedState.tag&1){if(h.flags|=2048,pl(9,{destroy:void 0},_E.bind(null,h,g,u,o),null),ct===null)throw Error(r(349));b||(va&127)!==0||OE(h,o,u)}return u}function OE(a,o,u){a.flags|=16384,a={getSnapshot:o,value:u},o=Ne.updateQueue,o===null?(o=Yf(),Ne.updateQueue=o,o.stores=[a]):(u=o.stores,u===null?o.stores=[a]:u.push(a))}function _E(a,o,u,h){o.value=u,o.getSnapshot=h,AE(o)&&TE(a)}function EE(a,o,u){return u(function(){AE(o)&&TE(a)})}function AE(a){var o=a.getSnapshot;a=a.value;try{var u=o();return!Ln(a,u)}catch{return!0}}function TE(a){var o=Yi(a,2);o!==null&&Nn(o,a,2)}function kv(a){var o=bn();if(typeof a=="function"){var u=a;if(a=u(),no){br(!0);try{u()}finally{br(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:a},o}function jE(a,o,u,h){return a.baseState=u,Pv(a,it,typeof h=="function"?h:ga)}function CB(a,o,u,h,g){if(Zf(a))throw Error(r(485));if(a=o.action,a!==null){var b={payload:g,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){b.listeners.push(C)}};k.T!==null?u(!0):b.isTransition=!1,h(b),u=o.pending,u===null?(b.next=o.pending=b,CE(o,b)):(b.next=u.next,o.pending=u.next=b)}}function CE(a,o){var u=o.action,h=o.payload,g=a.state;if(o.isTransition){var b=k.T,C={};k.T=C;try{var D=u(g,h),U=k.S;U!==null&&U(C,D),ME(a,o,D)}catch(ee){$v(a,o,ee)}finally{b!==null&&C.types!==null&&(b.types=C.types),k.T=b}}else try{b=u(g,h),ME(a,o,b)}catch(ee){$v(a,o,ee)}}function ME(a,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){NE(a,o,h)},function(h){return $v(a,o,h)}):NE(a,o,u)}function NE(a,o,u){o.status="fulfilled",o.value=u,RE(o),a.state=u,o=a.pending,o!==null&&(u=o.next,u===o?a.pending=null:(u=u.next,o.next=u,CE(a,u)))}function $v(a,o,u){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,RE(o),o=o.next;while(o!==h)}a.action=null}function RE(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function PE(a,o){return o}function DE(a,o){if(Ue){var u=ct.formState;if(u!==null){e:{var h=Ne;if(Ue){if(pt){t:{for(var g=pt,b=ar;g.nodeType!==8;){if(!b){g=null;break t}if(g=or(g.nextSibling),g===null){g=null;break t}}b=g.data,g=b==="F!"||b==="F"?g:null}if(g){pt=or(g.nextSibling),h=g.data==="F!";break e}}Ja(h)}h=!1}h&&(o=u[0])}}return u=bn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:PE,lastRenderedState:o},u.queue=h,u=JE.bind(null,Ne,h),h.dispatch=u,h=kv(!1),b=Uv.bind(null,Ne,!1,h.queue),h=bn(),g={state:o,dispatch:null,action:a,pending:null},h.queue=g,u=CB.bind(null,Ne,g,b,u),g.dispatch=u,h.memoizedState=a,[o,u,!1]}function kE(a){var o=jt();return $E(o,it,a)}function $E(a,o,u){if(o=Pv(a,o,PE)[0],a=Kf(ga)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=cu(o)}catch(C){throw C===ul?zf:C}else h=o;o=jt();var g=o.queue,b=g.dispatch;return u!==o.memoizedState&&(Ne.flags|=2048,pl(9,{destroy:void 0},MB.bind(null,g,u),null)),[h,b,a]}function MB(a,o){a.action=o}function LE(a){var o=jt(),u=it;if(u!==null)return $E(o,u,a);jt(),o=o.memoizedState,u=jt();var h=u.queue.dispatch;return u.memoizedState=a,[o,h,!1]}function pl(a,o,u,h){return a={tag:a,create:u,deps:h,inst:o,next:null},o=Ne.updateQueue,o===null&&(o=Yf(),Ne.updateQueue=o),u=o.lastEffect,u===null?o.lastEffect=a.next=a:(h=u.next,u.next=a,a.next=h,o.lastEffect=a),a}function IE(){return jt().memoizedState}function Xf(a,o,u,h){var g=bn();Ne.flags|=a,g.memoizedState=pl(1|o,{destroy:void 0},u,h===void 0?null:h)}function Qf(a,o,u,h){var g=jt();h=h===void 0?null:h;var b=g.memoizedState.inst;it!==null&&h!==null&&Tv(h,it.memoizedState.deps)?g.memoizedState=pl(o,b,u,h):(Ne.flags|=a,g.memoizedState=pl(1|o,b,u,h))}function zE(a,o){Xf(8390656,8,a,o)}function Lv(a,o){Qf(2048,8,a,o)}function NB(a){Ne.flags|=4;var o=Ne.updateQueue;if(o===null)o=Yf(),Ne.updateQueue=o,o.events=[a];else{var u=o.events;u===null?o.events=[a]:u.push(a)}}function BE(a){var o=jt().memoizedState;return NB({ref:o,nextImpl:a}),function(){if((Qe&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function qE(a,o){return Qf(4,2,a,o)}function UE(a,o){return Qf(4,4,a,o)}function HE(a,o){if(typeof o=="function"){a=a();var u=o(a);return function(){typeof u=="function"?u():o(null)}}if(o!=null)return a=a(),o.current=a,function(){o.current=null}}function FE(a,o,u){u=u!=null?u.concat([a]):null,Qf(4,4,HE.bind(null,o,a),u)}function Iv(){}function GE(a,o){var u=jt();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&Tv(o,h[1])?h[0]:(u.memoizedState=[a,o],a)}function VE(a,o){var u=jt();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&Tv(o,h[1]))return h[0];if(h=a(),no){br(!0);try{a()}finally{br(!1)}}return u.memoizedState=[h,o],h}function zv(a,o,u){return u===void 0||(va&1073741824)!==0&&(Be&261930)===0?a.memoizedState=o:(a.memoizedState=u,a=YA(),Ne.lanes|=a,si|=a,u)}function YE(a,o,u,h){return Ln(u,o)?u:fl.current!==null?(a=zv(a,u,h),Ln(a,o)||(Rt=!0),a):(va&42)===0||(va&1073741824)!==0&&(Be&261930)===0?(Rt=!0,a.memoizedState=u):(a=YA(),Ne.lanes|=a,si|=a,o)}function WE(a,o,u,h,g){var b=q.p;q.p=b!==0&&8>b?b:8;var C=k.T,D={};k.T=D,Uv(a,!1,o,u);try{var U=g(),ee=k.S;if(ee!==null&&ee(D,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var oe=AB(U,h);fu(a,o,oe,Hn(a))}else fu(a,o,h,Hn(a))}catch(fe){fu(a,o,{then:function(){},status:"rejected",reason:fe},Hn())}finally{q.p=b,C!==null&&D.types!==null&&(C.types=D.types),k.T=C}}function RB(){}function Bv(a,o,u,h){if(a.tag!==5)throw Error(r(476));var g=KE(a).queue;WE(a,g,o,B,u===null?RB:function(){return XE(a),u(h)})}function KE(a){var o=a.memoizedState;if(o!==null)return o;o={memoizedState:B,baseState:B,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:B},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ga,lastRenderedState:u},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function XE(a){var o=KE(a);o.next===null&&(o=a.alternate.memoizedState),fu(a,o.next.queue,{},Hn())}function qv(){return nn(ju)}function QE(){return jt().memoizedState}function ZE(){return jt().memoizedState}function PB(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var u=Hn();a=ni(u);var h=ri(o,a,u);h!==null&&(Nn(h,o,u),ou(h,o,u)),o={cache:vv()},a.payload=o;return}o=o.return}}function DB(a,o,u){var h=Hn();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Zf(a)?eA(o,u):(u=iv(a,o,u,h),u!==null&&(Nn(u,a,h),tA(u,o,h)))}function JE(a,o,u){var h=Hn();fu(a,o,u,h)}function fu(a,o,u,h){var g={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Zf(a))eA(o,g);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=o.lastRenderedReducer,b!==null))try{var C=o.lastRenderedState,D=b(C,u);if(g.hasEagerState=!0,g.eagerState=D,Ln(D,C))return Rf(a,o,g,0),ct===null&&Nf(),!1}catch{}finally{}if(u=iv(a,o,g,h),u!==null)return Nn(u,a,h),tA(u,o,h),!0}return!1}function Uv(a,o,u,h){if(h={lane:2,revertLane:xg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Zf(a)){if(o)throw Error(r(479))}else o=iv(a,u,h,2),o!==null&&Nn(o,a,2)}function Zf(a){var o=a.alternate;return a===Ne||o!==null&&o===Ne}function eA(a,o){dl=Gf=!0;var u=a.pending;u===null?o.next=o:(o.next=u.next,u.next=o),a.pending=o}function tA(a,o,u){if((u&4194048)!==0){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,On(a,u)}}var du={readContext:nn,use:Wf,useCallback:Ot,useContext:Ot,useEffect:Ot,useImperativeHandle:Ot,useLayoutEffect:Ot,useInsertionEffect:Ot,useMemo:Ot,useReducer:Ot,useRef:Ot,useState:Ot,useDebugValue:Ot,useDeferredValue:Ot,useTransition:Ot,useSyncExternalStore:Ot,useId:Ot,useHostTransitionStatus:Ot,useFormState:Ot,useActionState:Ot,useOptimistic:Ot,useMemoCache:Ot,useCacheRefresh:Ot};du.useEffectEvent=Ot;var nA={readContext:nn,use:Wf,useCallback:function(a,o){return bn().memoizedState=[a,o===void 0?null:o],a},useContext:nn,useEffect:zE,useImperativeHandle:function(a,o,u){u=u!=null?u.concat([a]):null,Xf(4194308,4,HE.bind(null,o,a),u)},useLayoutEffect:function(a,o){return Xf(4194308,4,a,o)},useInsertionEffect:function(a,o){Xf(4,2,a,o)},useMemo:function(a,o){var u=bn();o=o===void 0?null:o;var h=a();if(no){br(!0);try{a()}finally{br(!1)}}return u.memoizedState=[h,o],h},useReducer:function(a,o,u){var h=bn();if(u!==void 0){var g=u(o);if(no){br(!0);try{u(o)}finally{br(!1)}}}else g=o;return h.memoizedState=h.baseState=g,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:g},h.queue=a,a=a.dispatch=DB.bind(null,Ne,a),[h.memoizedState,a]},useRef:function(a){var o=bn();return a={current:a},o.memoizedState=a},useState:function(a){a=kv(a);var o=a.queue,u=JE.bind(null,Ne,o);return o.dispatch=u,[a.memoizedState,u]},useDebugValue:Iv,useDeferredValue:function(a,o){var u=bn();return zv(u,a,o)},useTransition:function(){var a=kv(!1);return a=WE.bind(null,Ne,a.queue,!0,!1),bn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,u){var h=Ne,g=bn();if(Ue){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),ct===null)throw Error(r(349));(Be&127)!==0||OE(h,o,u)}g.memoizedState=u;var b={value:u,getSnapshot:o};return g.queue=b,zE(EE.bind(null,h,b,a),[a]),h.flags|=2048,pl(9,{destroy:void 0},_E.bind(null,h,b,u,o),null),u},useId:function(){var a=bn(),o=ct.identifierPrefix;if(Ue){var u=Gr,h=Fr;u=(h&~(1<<32-cn(h)-1)).toString(32)+u,o="_"+o+"R_"+u,u=Vf++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=TB++,o="_"+o+"r_"+u.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:qv,useFormState:DE,useActionState:DE,useOptimistic:function(a){var o=bn();o.memoizedState=o.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=Uv.bind(null,Ne,!0,u),u.dispatch=o,[a,o]},useMemoCache:Rv,useCacheRefresh:function(){return bn().memoizedState=PB.bind(null,Ne)},useEffectEvent:function(a){var o=bn(),u={impl:a};return o.memoizedState=u,function(){if((Qe&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Hv={readContext:nn,use:Wf,useCallback:GE,useContext:nn,useEffect:Lv,useImperativeHandle:FE,useInsertionEffect:qE,useLayoutEffect:UE,useMemo:VE,useReducer:Kf,useRef:IE,useState:function(){return Kf(ga)},useDebugValue:Iv,useDeferredValue:function(a,o){var u=jt();return YE(u,it.memoizedState,a,o)},useTransition:function(){var a=Kf(ga)[0],o=jt().memoizedState;return[typeof a=="boolean"?a:cu(a),o]},useSyncExternalStore:SE,useId:QE,useHostTransitionStatus:qv,useFormState:kE,useActionState:kE,useOptimistic:function(a,o){var u=jt();return jE(u,it,a,o)},useMemoCache:Rv,useCacheRefresh:ZE};Hv.useEffectEvent=BE;var rA={readContext:nn,use:Wf,useCallback:GE,useContext:nn,useEffect:Lv,useImperativeHandle:FE,useInsertionEffect:qE,useLayoutEffect:UE,useMemo:VE,useReducer:Dv,useRef:IE,useState:function(){return Dv(ga)},useDebugValue:Iv,useDeferredValue:function(a,o){var u=jt();return it===null?zv(u,a,o):YE(u,it.memoizedState,a,o)},useTransition:function(){var a=Dv(ga)[0],o=jt().memoizedState;return[typeof a=="boolean"?a:cu(a),o]},useSyncExternalStore:SE,useId:QE,useHostTransitionStatus:qv,useFormState:LE,useActionState:LE,useOptimistic:function(a,o){var u=jt();return it!==null?jE(u,it,a,o):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Rv,useCacheRefresh:ZE};rA.useEffectEvent=BE;function Fv(a,o,u,h){o=a.memoizedState,u=u(h,o),u=u==null?o:p({},o,u),a.memoizedState=u,a.lanes===0&&(a.updateQueue.baseState=u)}var Gv={enqueueSetState:function(a,o,u){a=a._reactInternals;var h=Hn(),g=ni(h);g.payload=o,u!=null&&(g.callback=u),o=ri(a,g,h),o!==null&&(Nn(o,a,h),ou(o,a,h))},enqueueReplaceState:function(a,o,u){a=a._reactInternals;var h=Hn(),g=ni(h);g.tag=1,g.payload=o,u!=null&&(g.callback=u),o=ri(a,g,h),o!==null&&(Nn(o,a,h),ou(o,a,h))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var u=Hn(),h=ni(u);h.tag=2,o!=null&&(h.callback=o),o=ri(a,h,u),o!==null&&(Nn(o,a,u),ou(o,a,u))}};function aA(a,o,u,h,g,b,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,b,C):o.prototype&&o.prototype.isPureReactComponent?!Zs(u,h)||!Zs(g,b):!0}function iA(a,o,u,h){a=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(u,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(u,h),o.state!==a&&Gv.enqueueReplaceState(o,o.state,null)}function ro(a,o){var u=o;if("ref"in o){u={};for(var h in o)h!=="ref"&&(u[h]=o[h])}if(a=a.defaultProps){u===o&&(u=p({},u));for(var g in a)u[g]===void 0&&(u[g]=a[g])}return u}function oA(a){Mf(a)}function lA(a){console.error(a)}function sA(a){Mf(a)}function Jf(a,o){try{var u=a.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function uA(a,o,u){try{var h=a.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function Vv(a,o,u){return u=ni(u),u.tag=3,u.payload={element:null},u.callback=function(){Jf(a,o)},u}function cA(a){return a=ni(a),a.tag=3,a}function fA(a,o,u,h){var g=u.type.getDerivedStateFromError;if(typeof g=="function"){var b=h.value;a.payload=function(){return g(b)},a.callback=function(){uA(o,u,h)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){uA(o,u,h),typeof g!="function"&&(ui===null?ui=new Set([this]):ui.add(this));var D=h.stack;this.componentDidCatch(h.value,{componentStack:D!==null?D:""})})}function kB(a,o,u,h,g){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&ol(o,u,g,!0),u=zn.current,u!==null){switch(u.tag){case 31:case 13:return ir===null?fd():u.alternate===null&&_t===0&&(_t=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===Bf?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),gg(a,h,g)),!1;case 22:return u.flags|=65536,h===Bf?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)),gg(a,h,g)),!1}throw Error(r(435,u.tag))}return gg(a,h,g),fd(),!1}if(Ue)return o=zn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==fv&&(a=Error(r(422),{cause:h}),tu(tr(a,u)))):(h!==fv&&(o=Error(r(423),{cause:h}),tu(tr(o,u))),a=a.current.alternate,a.flags|=65536,g&=-g,a.lanes|=g,h=tr(h,u),g=Vv(a.stateNode,h,g),Sv(a,g),_t!==4&&(_t=2)),!1;var b=Error(r(520),{cause:h});if(b=tr(b,u),xu===null?xu=[b]:xu.push(b),_t!==4&&(_t=2),o===null)return!0;h=tr(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,a=g&-g,u.lanes|=a,a=Vv(u.stateNode,h,a),Sv(u,a),!1;case 1:if(o=u.type,b=u.stateNode,(u.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||b!==null&&typeof b.componentDidCatch=="function"&&(ui===null||!ui.has(b))))return u.flags|=65536,g&=-g,u.lanes|=g,g=cA(g),fA(g,a,u,h),Sv(u,g),!1}u=u.return}while(u!==null);return!1}var Yv=Error(r(461)),Rt=!1;function rn(a,o,u,h){o.child=a===null?mE(o,null,u,h):to(o,a.child,u,h)}function dA(a,o,u,h,g){u=u.render;var b=o.ref;if("ref"in h){var C={};for(var D in h)D!=="ref"&&(C[D]=h[D])}else C=h;return Qi(o),h=jv(a,o,u,C,b,g),D=Cv(),a!==null&&!Rt?(Mv(a,o,g),ya(a,o,g)):(Ue&&D&&uv(o),o.flags|=1,rn(a,o,h,g),o.child)}function hA(a,o,u,h,g){if(a===null){var b=u.type;return typeof b=="function"&&!ov(b)&&b.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=b,pA(a,o,b,h,g)):(a=Df(u.type,null,h,o,o.mode,g),a.ref=o.ref,a.return=o,o.child=a)}if(b=a.child,!tg(a,g)){var C=b.memoizedProps;if(u=u.compare,u=u!==null?u:Zs,u(C,h)&&a.ref===o.ref)return ya(a,o,g)}return o.flags|=1,a=da(b,h),a.ref=o.ref,a.return=o,o.child=a}function pA(a,o,u,h,g){if(a!==null){var b=a.memoizedProps;if(Zs(b,h)&&a.ref===o.ref)if(Rt=!1,o.pendingProps=h=b,tg(a,g))(a.flags&131072)!==0&&(Rt=!0);else return o.lanes=a.lanes,ya(a,o,g)}return Wv(a,o,u,h,g)}function mA(a,o,u,h){var g=h.children,b=a!==null?a.memoizedState:null;if(a===null&&o.stateNode===null&&(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((o.flags&128)!==0){if(b=b!==null?b.baseLanes|u:u,a!==null){for(h=o.child=a.child,g=0;h!==null;)g=g|h.lanes|h.childLanes,h=h.sibling;h=g&~b}else h=0,o.child=null;return vA(a,o,b,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&If(o,b!==null?b.cachePool:null),b!==null?yE(o,b):_v(),bE(o);else return h=o.lanes=536870912,vA(a,o,b!==null?b.baseLanes|u:u,u,h)}else b!==null?(If(o,b.cachePool),yE(o,b),ii(),o.memoizedState=null):(a!==null&&If(o,null),_v(),ii());return rn(a,o,g,u),o.child}function hu(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function vA(a,o,u,h,g){var b=yv();return b=b===null?null:{parent:Mt._currentValue,pool:b},o.memoizedState={baseLanes:u,cachePool:b},a!==null&&If(o,null),_v(),bE(o),a!==null&&ol(a,o,h,!0),o.childLanes=g,null}function ed(a,o){return o=nd({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function gA(a,o,u){return to(o,a.child,null,u),a=ed(o,o.pendingProps),a.flags|=2,Bn(o),o.memoizedState=null,a}function $B(a,o,u){var h=o.pendingProps,g=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Ue){if(h.mode==="hidden")return a=ed(o,h),o.lanes=536870912,hu(null,a);if(Av(o),(a=pt)?(a=CT(a,ar),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Qa!==null?{id:Fr,overflow:Gr}:null,retryLane:536870912,hydrationErrors:null},u=eE(a),u.return=o,o.child=u,tn=o,pt=null)):a=null,a===null)throw Ja(o);return o.lanes=536870912,null}return ed(o,h)}var b=a.memoizedState;if(b!==null){var C=b.dehydrated;if(Av(o),g)if(o.flags&256)o.flags&=-257,o=gA(a,o,u);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(r(558));else if(Rt||ol(a,o,u,!1),g=(u&a.childLanes)!==0,Rt||g){if(h=ct,h!==null&&(C=_n(h,u),C!==0&&C!==b.retryLane))throw b.retryLane=C,Yi(a,C),Nn(h,a,C),Yv;fd(),o=gA(a,o,u)}else a=b.treeContext,pt=or(C.nextSibling),tn=o,Ue=!0,Za=null,ar=!1,a!==null&&rE(o,a),o=ed(o,h),o.flags|=4096;return o}return a=da(a.child,{mode:h.mode,children:h.children}),a.ref=o.ref,o.child=a,a.return=o,a}function td(a,o){var u=o.ref;if(u===null)a!==null&&a.ref!==null&&(o.flags|=4194816);else{if(typeof u!="function"&&typeof u!="object")throw Error(r(284));(a===null||a.ref!==u)&&(o.flags|=4194816)}}function Wv(a,o,u,h,g){return Qi(o),u=jv(a,o,u,h,void 0,g),h=Cv(),a!==null&&!Rt?(Mv(a,o,g),ya(a,o,g)):(Ue&&h&&uv(o),o.flags|=1,rn(a,o,u,g),o.child)}function yA(a,o,u,h,g,b){return Qi(o),o.updateQueue=null,u=wE(o,h,u,g),xE(a),h=Cv(),a!==null&&!Rt?(Mv(a,o,b),ya(a,o,b)):(Ue&&h&&uv(o),o.flags|=1,rn(a,o,u,b),o.child)}function bA(a,o,u,h,g){if(Qi(o),o.stateNode===null){var b=nl,C=u.contextType;typeof C=="object"&&C!==null&&(b=nn(C)),b=new u(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=Gv,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},xv(o),C=u.contextType,b.context=typeof C=="object"&&C!==null?nn(C):nl,b.state=o.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(Fv(o,u,C,h),b.state=o.memoizedState),typeof u.getDerivedStateFromProps=="function"||typeof b.getSnapshotBeforeUpdate=="function"||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(C=b.state,typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount(),C!==b.state&&Gv.enqueueReplaceState(b,b.state,null),su(o,h,b,g),lu(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(a===null){b=o.stateNode;var D=o.memoizedProps,U=ro(u,D);b.props=U;var ee=b.context,oe=u.contextType;C=nl,typeof oe=="object"&&oe!==null&&(C=nn(oe));var fe=u.getDerivedStateFromProps;oe=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function",D=o.pendingProps!==D,oe||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(D||ee!==C)&&iA(o,b,h,C),ti=!1;var te=o.memoizedState;b.state=te,su(o,h,b,g),lu(),ee=o.memoizedState,D||te!==ee||ti?(typeof fe=="function"&&(Fv(o,u,fe,h),ee=o.memoizedState),(U=ti||aA(o,u,U,h,te,ee,C))?(oe||typeof b.UNSAFE_componentWillMount!="function"&&typeof b.componentWillMount!="function"||(typeof b.componentWillMount=="function"&&b.componentWillMount(),typeof b.UNSAFE_componentWillMount=="function"&&b.UNSAFE_componentWillMount()),typeof b.componentDidMount=="function"&&(o.flags|=4194308)):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=ee),b.props=h,b.state=ee,b.context=C,h=U):(typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{b=o.stateNode,wv(a,o),C=o.memoizedProps,oe=ro(u,C),b.props=oe,fe=o.pendingProps,te=b.context,ee=u.contextType,U=nl,typeof ee=="object"&&ee!==null&&(U=nn(ee)),D=u.getDerivedStateFromProps,(ee=typeof D=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C!==fe||te!==U)&&iA(o,b,h,U),ti=!1,te=o.memoizedState,b.state=te,su(o,h,b,g),lu();var re=o.memoizedState;C!==fe||te!==re||ti||a!==null&&a.dependencies!==null&&$f(a.dependencies)?(typeof D=="function"&&(Fv(o,u,D,h),re=o.memoizedState),(oe=ti||aA(o,u,oe,h,te,re,U)||a!==null&&a.dependencies!==null&&$f(a.dependencies))?(ee||typeof b.UNSAFE_componentWillUpdate!="function"&&typeof b.componentWillUpdate!="function"||(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,re,U),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,re,U)),typeof b.componentDidUpdate=="function"&&(o.flags|=4),typeof b.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof b.componentDidUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=re),b.props=h,b.state=re,b.context=U,h=oe):(typeof b.componentDidUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=4),typeof b.getSnapshotBeforeUpdate!="function"||C===a.memoizedProps&&te===a.memoizedState||(o.flags|=1024),h=!1)}return b=h,td(a,o),h=(o.flags&128)!==0,b||h?(b=o.stateNode,u=h&&typeof u.getDerivedStateFromError!="function"?null:b.render(),o.flags|=1,a!==null&&h?(o.child=to(o,a.child,null,g),o.child=to(o,null,u,g)):rn(a,o,u,g),o.memoizedState=b.state,a=o.child):a=ya(a,o,g),a}function xA(a,o,u,h){return Ki(),o.flags|=256,rn(a,o,u,h),o.child}var Kv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Xv(a){return{baseLanes:a,cachePool:uE()}}function Qv(a,o,u){return a=a!==null?a.childLanes&~u:0,o&&(a|=Un),a}function wA(a,o,u){var h=o.pendingProps,g=!1,b=(o.flags&128)!==0,C;if((C=b)||(C=a!==null&&a.memoizedState===null?!1:(Tt.current&2)!==0),C&&(g=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,a===null){if(Ue){if(g?ai(o):ii(),(a=pt)?(a=CT(a,ar),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:Qa!==null?{id:Fr,overflow:Gr}:null,retryLane:536870912,hydrationErrors:null},u=eE(a),u.return=o,o.child=u,tn=o,pt=null)):a=null,a===null)throw Ja(o);return Pg(a)?o.lanes=32:o.lanes=536870912,null}var D=h.children;return h=h.fallback,g?(ii(),g=o.mode,D=nd({mode:"hidden",children:D},g),h=Wi(h,g,u,null),D.return=o,h.return=o,D.sibling=h,o.child=D,h=o.child,h.memoizedState=Xv(u),h.childLanes=Qv(a,C,u),o.memoizedState=Kv,hu(null,h)):(ai(o),Zv(o,D))}var U=a.memoizedState;if(U!==null&&(D=U.dehydrated,D!==null)){if(b)o.flags&256?(ai(o),o.flags&=-257,o=Jv(a,o,u)):o.memoizedState!==null?(ii(),o.child=a.child,o.flags|=128,o=null):(ii(),D=h.fallback,g=o.mode,h=nd({mode:"visible",children:h.children},g),D=Wi(D,g,u,null),D.flags|=2,h.return=o,D.return=o,h.sibling=D,o.child=h,to(o,a.child,null,u),h=o.child,h.memoizedState=Xv(u),h.childLanes=Qv(a,C,u),o.memoizedState=Kv,o=hu(null,h));else if(ai(o),Pg(D)){if(C=D.nextSibling&&D.nextSibling.dataset,C)var ee=C.dgst;C=ee,h=Error(r(419)),h.stack="",h.digest=C,tu({value:h,source:null,stack:null}),o=Jv(a,o,u)}else if(Rt||ol(a,o,u,!1),C=(u&a.childLanes)!==0,Rt||C){if(C=ct,C!==null&&(h=_n(C,u),h!==0&&h!==U.retryLane))throw U.retryLane=h,Yi(a,h),Nn(C,a,h),Yv;Rg(D)||fd(),o=Jv(a,o,u)}else Rg(D)?(o.flags|=192,o.child=a.child,o=null):(a=U.treeContext,pt=or(D.nextSibling),tn=o,Ue=!0,Za=null,ar=!1,a!==null&&rE(o,a),o=Zv(o,h.children),o.flags|=4096);return o}return g?(ii(),D=h.fallback,g=o.mode,U=a.child,ee=U.sibling,h=da(U,{mode:"hidden",children:h.children}),h.subtreeFlags=U.subtreeFlags&65011712,ee!==null?D=da(ee,D):(D=Wi(D,g,u,null),D.flags|=2),D.return=o,h.return=o,h.sibling=D,o.child=h,hu(null,h),h=o.child,D=a.child.memoizedState,D===null?D=Xv(u):(g=D.cachePool,g!==null?(U=Mt._currentValue,g=g.parent!==U?{parent:U,pool:U}:g):g=uE(),D={baseLanes:D.baseLanes|u,cachePool:g}),h.memoizedState=D,h.childLanes=Qv(a,C,u),o.memoizedState=Kv,hu(a.child,h)):(ai(o),u=a.child,a=u.sibling,u=da(u,{mode:"visible",children:h.children}),u.return=o,u.sibling=null,a!==null&&(C=o.deletions,C===null?(o.deletions=[a],o.flags|=16):C.push(a)),o.child=u,o.memoizedState=null,u)}function Zv(a,o){return o=nd({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function nd(a,o){return a=In(22,a,null,o),a.lanes=0,a}function Jv(a,o,u){return to(o,a.child,null,u),a=Zv(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function SA(a,o,u){a.lanes|=o;var h=a.alternate;h!==null&&(h.lanes|=o),pv(a.return,o,u)}function eg(a,o,u,h,g,b){var C=a.memoizedState;C===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:g,treeForkCount:b}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=u,C.tailMode=g,C.treeForkCount=b)}function OA(a,o,u){var h=o.pendingProps,g=h.revealOrder,b=h.tail;h=h.children;var C=Tt.current,D=(C&2)!==0;if(D?(C=C&1|2,o.flags|=128):C&=1,X(Tt,C),rn(a,o,h,u),h=Ue?eu:0,!D&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&SA(a,u,o);else if(a.tag===19)SA(a,u,o);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===o)break e;for(;a.sibling===null;){if(a.return===null||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(g){case"forwards":for(u=o.child,g=null;u!==null;)a=u.alternate,a!==null&&Ff(a)===null&&(g=u),u=u.sibling;u=g,u===null?(g=o.child,o.child=null):(g=u.sibling,u.sibling=null),eg(o,!1,g,u,b,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,g=o.child,o.child=null;g!==null;){if(a=g.alternate,a!==null&&Ff(a)===null){o.child=g;break}a=g.sibling,g.sibling=u,u=g,g=a}eg(o,!0,u,null,b,h);break;case"together":eg(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function ya(a,o,u){if(a!==null&&(o.dependencies=a.dependencies),si|=o.lanes,(u&o.childLanes)===0)if(a!==null){if(ol(a,o,u,!1),(u&o.childLanes)===0)return null}else return null;if(a!==null&&o.child!==a.child)throw Error(r(153));if(o.child!==null){for(a=o.child,u=da(a,a.pendingProps),o.child=u,u.return=o;a.sibling!==null;)a=a.sibling,u=u.sibling=da(a,a.pendingProps),u.return=o;u.sibling=null}return o.child}function tg(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&$f(a)))}function LB(a,o,u){switch(o.tag){case 3:he(o,o.stateNode.containerInfo),ei(o,Mt,a.memoizedState.cache),Ki();break;case 27:case 5:pe(o);break;case 4:he(o,o.stateNode.containerInfo);break;case 10:ei(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,Av(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(ai(o),o.flags|=128,null):(u&o.child.childLanes)!==0?wA(a,o,u):(ai(o),a=ya(a,o,u),a!==null?a.sibling:null);ai(o);break;case 19:var g=(a.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(ol(a,o,u,!1),h=(u&o.childLanes)!==0),g){if(h)return OA(a,o,u);o.flags|=128}if(g=o.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),X(Tt,Tt.current),h)break;return null;case 22:return o.lanes=0,mA(a,o,u,o.pendingProps);case 24:ei(o,Mt,a.memoizedState.cache)}return ya(a,o,u)}function _A(a,o,u){if(a!==null)if(a.memoizedProps!==o.pendingProps)Rt=!0;else{if(!tg(a,u)&&(o.flags&128)===0)return Rt=!1,LB(a,o,u);Rt=(a.flags&131072)!==0}else Rt=!1,Ue&&(o.flags&1048576)!==0&&nE(o,eu,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(a=Ji(o.elementType),o.type=a,typeof a=="function")ov(a)?(h=ro(a,h),o.tag=1,o=bA(null,o,a,h,u)):(o.tag=0,o=Wv(null,o,a,h,u));else{if(a!=null){var g=a.$$typeof;if(g===M){o.tag=11,o=dA(null,o,a,h,u);break e}else if(g===R){o.tag=14,o=hA(null,o,a,h,u);break e}}throw o=Q(a)||a,Error(r(306,o,""))}}return o;case 0:return Wv(a,o,o.type,o.pendingProps,u);case 1:return h=o.type,g=ro(h,o.pendingProps),bA(a,o,h,g,u);case 3:e:{if(he(o,o.stateNode.containerInfo),a===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;g=b.element,wv(a,o),su(o,h,null,u);var C=o.memoizedState;if(h=C.cache,ei(o,Mt,h),h!==b.cache&&mv(o,[Mt],u,!0),lu(),h=C.element,b.isDehydrated)if(b={element:h,isDehydrated:!1,cache:C.cache},o.updateQueue.baseState=b,o.memoizedState=b,o.flags&256){o=xA(a,o,h,u);break e}else if(h!==g){g=tr(Error(r(424)),o),tu(g),o=xA(a,o,h,u);break e}else{switch(a=o.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(pt=or(a.firstChild),tn=o,Ue=!0,Za=null,ar=!0,u=mE(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(Ki(),h===g){o=ya(a,o,u);break e}rn(a,o,h,u)}o=o.child}return o;case 26:return td(a,o),a===null?(u=kT(o.type,null,o.pendingProps,null))?o.memoizedState=u:Ue||(u=o.type,a=o.pendingProps,h=yd(ge.current).createElement(u),h[en]=o,h[En]=a,an(h,u,a),Kt(h),o.stateNode=h):o.memoizedState=kT(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return pe(o),a===null&&Ue&&(h=o.stateNode=RT(o.type,o.pendingProps,ge.current),tn=o,ar=!0,g=pt,hi(o.type)?(Dg=g,pt=or(h.firstChild)):pt=g),rn(a,o,o.pendingProps.children,u),td(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Ue&&((g=h=pt)&&(h=hq(h,o.type,o.pendingProps,ar),h!==null?(o.stateNode=h,tn=o,pt=or(h.firstChild),ar=!1,g=!0):g=!1),g||Ja(o)),pe(o),g=o.type,b=o.pendingProps,C=a!==null?a.memoizedProps:null,h=b.children,Cg(g,b)?h=null:C!==null&&Cg(g,C)&&(o.flags|=32),o.memoizedState!==null&&(g=jv(a,o,jB,null,null,u),ju._currentValue=g),td(a,o),rn(a,o,h,u),o.child;case 6:return a===null&&Ue&&((a=u=pt)&&(u=pq(u,o.pendingProps,ar),u!==null?(o.stateNode=u,tn=o,pt=null,a=!0):a=!1),a||Ja(o)),null;case 13:return wA(a,o,u);case 4:return he(o,o.stateNode.containerInfo),h=o.pendingProps,a===null?o.child=to(o,null,h,u):rn(a,o,h,u),o.child;case 11:return dA(a,o,o.type,o.pendingProps,u);case 7:return rn(a,o,o.pendingProps,u),o.child;case 8:return rn(a,o,o.pendingProps.children,u),o.child;case 12:return rn(a,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,ei(o,o.type,h.value),rn(a,o,h.children,u),o.child;case 9:return g=o.type._context,h=o.pendingProps.children,Qi(o),g=nn(g),h=h(g),o.flags|=1,rn(a,o,h,u),o.child;case 14:return hA(a,o,o.type,o.pendingProps,u);case 15:return pA(a,o,o.type,o.pendingProps,u);case 19:return OA(a,o,u);case 31:return $B(a,o,u);case 22:return mA(a,o,u,o.pendingProps);case 24:return Qi(o),h=nn(Mt),a===null?(g=yv(),g===null&&(g=ct,b=vv(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=u),g=b),o.memoizedState={parent:h,cache:g},xv(o),ei(o,Mt,g)):((a.lanes&u)!==0&&(wv(a,o),su(o,null,null,u),lu()),g=a.memoizedState,b=o.memoizedState,g.parent!==h?(g={parent:h,cache:h},o.memoizedState=g,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=g),ei(o,Mt,h)):(h=b.cache,ei(o,Mt,h),h!==g.cache&&mv(o,[Mt],u,!0))),rn(a,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function ba(a){a.flags|=4}function ng(a,o,u,h,g){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(g&335544128)===g)if(a.stateNode.complete)a.flags|=8192;else if(QA())a.flags|=8192;else throw eo=Bf,bv}else a.flags&=-16777217}function EA(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!BT(o))if(QA())a.flags|=8192;else throw eo=Bf,bv}function rd(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?fn():536870912,a.lanes|=o,yl|=o)}function pu(a,o){if(!Ue)switch(a.tailMode){case"hidden":o=a.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a.tail=null:u.sibling=null;break;case"collapsed":u=a.tail;for(var h=null;u!==null;)u.alternate!==null&&(h=u),u=u.sibling;h===null?o||a.tail===null?a.tail=null:a.tail.sibling=null:h.sibling=null}}function mt(a){var o=a.alternate!==null&&a.alternate.child===a.child,u=0,h=0;if(o)for(var g=a.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags&65011712,h|=g.flags&65011712,g.return=a,g=g.sibling;else for(g=a.child;g!==null;)u|=g.lanes|g.childLanes,h|=g.subtreeFlags,h|=g.flags,g.return=a,g=g.sibling;return a.subtreeFlags|=h,a.childLanes=u,o}function IB(a,o,u){var h=o.pendingProps;switch(cv(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return mt(o),null;case 1:return mt(o),null;case 3:return u=o.stateNode,h=null,a!==null&&(h=a.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),ma(Mt),ie(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(il(o)?ba(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,dv())),mt(o),null;case 26:var g=o.type,b=o.memoizedState;return a===null?(ba(o),b!==null?(mt(o),EA(o,b)):(mt(o),ng(o,g,null,h,u))):b?b!==a.memoizedState?(ba(o),mt(o),EA(o,b)):(mt(o),o.flags&=-16777217):(a=a.memoizedProps,a!==h&&ba(o),mt(o),ng(o,g,a,h,u)),null;case 27:if(ve(o),u=ge.current,g=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&ba(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mt(o),null}a=ae.current,il(o)?aE(o):(a=RT(g,h,u),o.stateNode=a,ba(o))}return mt(o),null;case 5:if(ve(o),g=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&ba(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return mt(o),null}if(b=ae.current,il(o))aE(o);else{var C=yd(ge.current);switch(b){case 1:b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case 2:b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;default:switch(g){case"svg":b=C.createElementNS("http://www.w3.org/2000/svg",g);break;case"math":b=C.createElementNS("http://www.w3.org/1998/Math/MathML",g);break;case"script":b=C.createElement("div"),b.innerHTML="<script><\/script>",b=b.removeChild(b.firstChild);break;case"select":b=typeof h.is=="string"?C.createElement("select",{is:h.is}):C.createElement("select"),h.multiple?b.multiple=!0:h.size&&(b.size=h.size);break;default:b=typeof h.is=="string"?C.createElement(g,{is:h.is}):C.createElement(g)}}b[en]=o,b[En]=h;e:for(C=o.child;C!==null;){if(C.tag===5||C.tag===6)b.appendChild(C.stateNode);else if(C.tag!==4&&C.tag!==27&&C.child!==null){C.child.return=C,C=C.child;continue}if(C===o)break e;for(;C.sibling===null;){if(C.return===null||C.return===o)break e;C=C.return}C.sibling.return=C.return,C=C.sibling}o.stateNode=b;e:switch(an(b,g,h),g){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&ba(o)}}return mt(o),ng(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,u),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==h&&ba(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(a=ge.current,il(o)){if(a=o.stateNode,u=o.memoizedProps,h=null,g=tn,g!==null)switch(g.tag){case 27:case 5:h=g.memoizedProps}a[en]=o,a=!!(a.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||wT(a.nodeValue,u)),a||Ja(o,!0)}else a=yd(a).createTextNode(h),a[en]=o,o.stateNode=a}return mt(o),null;case 31:if(u=o.memoizedState,a===null||a.memoizedState!==null){if(h=il(o),u!==null){if(a===null){if(!h)throw Error(r(318));if(a=o.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[en]=o}else Ki(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;mt(o),a=!1}else u=dv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return o.flags&256?(Bn(o),o):(Bn(o),null);if((o.flags&128)!==0)throw Error(r(558))}return mt(o),null;case 13:if(h=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(g=il(o),h!==null&&h.dehydrated!==null){if(a===null){if(!g)throw Error(r(318));if(g=o.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(r(317));g[en]=o}else Ki(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;mt(o),g=!1}else g=dv(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=g),g=!0;if(!g)return o.flags&256?(Bn(o),o):(Bn(o),null)}return Bn(o),(o.flags&128)!==0?(o.lanes=u,o):(u=h!==null,a=a!==null&&a.memoizedState!==null,u&&(h=o.child,g=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(g=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==g&&(h.flags|=2048)),u!==a&&u&&(o.child.flags|=8192),rd(o,o.updateQueue),mt(o),null);case 4:return ie(),a===null&&_g(o.stateNode.containerInfo),mt(o),null;case 10:return ma(o.type),mt(o),null;case 19:if(F(Tt),h=o.memoizedState,h===null)return mt(o),null;if(g=(o.flags&128)!==0,b=h.rendering,b===null)if(g)pu(h,!1);else{if(_t!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(b=Ff(a),b!==null){for(o.flags|=128,pu(h,!1),a=b.updateQueue,o.updateQueue=a,rd(o,a),o.subtreeFlags=0,a=u,u=o.child;u!==null;)J_(u,a),u=u.sibling;return X(Tt,Tt.current&1|2),Ue&&ha(o,h.treeForkCount),o.child}a=a.sibling}h.tail!==null&&Yt()>sd&&(o.flags|=128,g=!0,pu(h,!1),o.lanes=4194304)}else{if(!g)if(a=Ff(b),a!==null){if(o.flags|=128,g=!0,a=a.updateQueue,o.updateQueue=a,rd(o,a),pu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Ue)return mt(o),null}else 2*Yt()-h.renderingStartTime>sd&&u!==536870912&&(o.flags|=128,g=!0,pu(h,!1),o.lanes=4194304);h.isBackwards?(b.sibling=o.child,o.child=b):(a=h.last,a!==null?a.sibling=b:o.child=b,h.last=b)}return h.tail!==null?(a=h.tail,h.rendering=a,h.tail=a.sibling,h.renderingStartTime=Yt(),a.sibling=null,u=Tt.current,X(Tt,g?u&1|2:u&1),Ue&&ha(o,h.treeForkCount),a):(mt(o),null);case 22:case 23:return Bn(o),Ev(),h=o.memoizedState!==null,a!==null?a.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(u&536870912)!==0&&(o.flags&128)===0&&(mt(o),o.subtreeFlags&6&&(o.flags|=8192)):mt(o),u=o.updateQueue,u!==null&&rd(o,u.retryQueue),u=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==u&&(o.flags|=2048),a!==null&&F(Zi),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),ma(Mt),mt(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function zB(a,o){switch(cv(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return ma(Mt),ie(),a=o.flags,(a&65536)!==0&&(a&128)===0?(o.flags=a&-65537|128,o):null;case 26:case 27:case 5:return ve(o),null;case 31:if(o.memoizedState!==null){if(Bn(o),o.alternate===null)throw Error(r(340));Ki()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(Bn(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));Ki()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return F(Tt),null;case 4:return ie(),null;case 10:return ma(o.type),null;case 22:case 23:return Bn(o),Ev(),a!==null&&F(Zi),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return ma(Mt),null;case 25:return null;default:return null}}function AA(a,o){switch(cv(o),o.tag){case 3:ma(Mt),ie();break;case 26:case 27:case 5:ve(o);break;case 4:ie();break;case 31:o.memoizedState!==null&&Bn(o);break;case 13:Bn(o);break;case 19:F(Tt);break;case 10:ma(o.type);break;case 22:case 23:Bn(o),Ev(),a!==null&&F(Zi);break;case 24:ma(Mt)}}function mu(a,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var g=h.next;u=g;do{if((u.tag&a)===a){h=void 0;var b=u.create,C=u.inst;h=b(),C.destroy=h}u=u.next}while(u!==g)}}catch(D){nt(o,o.return,D)}}function oi(a,o,u){try{var h=o.updateQueue,g=h!==null?h.lastEffect:null;if(g!==null){var b=g.next;h=b;do{if((h.tag&a)===a){var C=h.inst,D=C.destroy;if(D!==void 0){C.destroy=void 0,g=o;var U=u,ee=D;try{ee()}catch(oe){nt(g,U,oe)}}}h=h.next}while(h!==b)}}catch(oe){nt(o,o.return,oe)}}function TA(a){var o=a.updateQueue;if(o!==null){var u=a.stateNode;try{gE(o,u)}catch(h){nt(a,a.return,h)}}}function jA(a,o,u){u.props=ro(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(h){nt(a,o,h)}}function vu(a,o){try{var u=a.ref;if(u!==null){switch(a.tag){case 26:case 27:case 5:var h=a.stateNode;break;case 30:h=a.stateNode;break;default:h=a.stateNode}typeof u=="function"?a.refCleanup=u(h):u.current=h}}catch(g){nt(a,o,g)}}function Vr(a,o){var u=a.ref,h=a.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(g){nt(a,o,g)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(g){nt(a,o,g)}else u.current=null}function CA(a){var o=a.type,u=a.memoizedProps,h=a.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(g){nt(a,a.return,g)}}function rg(a,o,u){try{var h=a.stateNode;lq(h,a.type,u,o),h[En]=o}catch(g){nt(a,a.return,g)}}function MA(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&hi(a.type)||a.tag===4}function ag(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||MA(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==5&&a.tag!==6&&a.tag!==18;){if(a.tag===27&&hi(a.type)||a.flags&2||a.child===null||a.tag===4)continue e;a.child.return=a,a=a.child}if(!(a.flags&2))return a.stateNode}}function ig(a,o,u){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?(u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u).insertBefore(a,o):(o=u.nodeType===9?u.body:u.nodeName==="HTML"?u.ownerDocument.body:u,o.appendChild(a),u=u._reactRootContainer,u!=null||o.onclick!==null||(o.onclick=ca));else if(h!==4&&(h===27&&hi(a.type)&&(u=a.stateNode,o=null),a=a.child,a!==null))for(ig(a,o,u),a=a.sibling;a!==null;)ig(a,o,u),a=a.sibling}function ad(a,o,u){var h=a.tag;if(h===5||h===6)a=a.stateNode,o?u.insertBefore(a,o):u.appendChild(a);else if(h!==4&&(h===27&&hi(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(ad(a,o,u),a=a.sibling;a!==null;)ad(a,o,u),a=a.sibling}function NA(a){var o=a.stateNode,u=a.memoizedProps;try{for(var h=a.type,g=o.attributes;g.length;)o.removeAttributeNode(g[0]);an(o,h,u),o[en]=a,o[En]=u}catch(b){nt(a,a.return,b)}}var xa=!1,Pt=!1,og=!1,RA=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function BB(a,o){if(a=a.containerInfo,Tg=Ed,a=F_(a),Jm(a)){if("selectionStart"in a)var u={start:a.selectionStart,end:a.selectionEnd};else e:{u=(u=a.ownerDocument)&&u.defaultView||window;var h=u.getSelection&&u.getSelection();if(h&&h.rangeCount!==0){u=h.anchorNode;var g=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var C=0,D=-1,U=-1,ee=0,oe=0,fe=a,te=null;t:for(;;){for(var re;fe!==u||g!==0&&fe.nodeType!==3||(D=C+g),fe!==b||h!==0&&fe.nodeType!==3||(U=C+h),fe.nodeType===3&&(C+=fe.nodeValue.length),(re=fe.firstChild)!==null;)te=fe,fe=re;for(;;){if(fe===a)break t;if(te===u&&++ee===g&&(D=C),te===b&&++oe===h&&(U=C),(re=fe.nextSibling)!==null)break;fe=te,te=fe.parentNode}fe=re}u=D===-1||U===-1?null:{start:D,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(jg={focusedElem:a,selectionRange:u},Ed=!1,Xt=o;Xt!==null;)if(o=Xt,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,Xt=a;else for(;Xt!==null;){switch(o=Xt,b=o.alternate,a=o.flags,o.tag){case 0:if((a&4)!==0&&(a=o.updateQueue,a=a!==null?a.events:null,a!==null))for(u=0;u<a.length;u++)g=a[u],g.ref.impl=g.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,u=o,g=b.memoizedProps,b=b.memoizedState,h=u.stateNode;try{var we=ro(u.type,g);a=h.getSnapshotBeforeUpdate(we,b),h.__reactInternalSnapshotBeforeUpdate=a}catch(Te){nt(u,u.return,Te)}}break;case 3:if((a&1024)!==0){if(a=o.stateNode.containerInfo,u=a.nodeType,u===9)Ng(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Ng(a);break;default:a.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((a&1024)!==0)throw Error(r(163))}if(a=o.sibling,a!==null){a.return=o.return,Xt=a;break}Xt=o.return}}function PA(a,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:Sa(a,u),h&4&&mu(5,u);break;case 1:if(Sa(a,u),h&4)if(a=u.stateNode,o===null)try{a.componentDidMount()}catch(C){nt(u,u.return,C)}else{var g=ro(u.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(g,o,a.__reactInternalSnapshotBeforeUpdate)}catch(C){nt(u,u.return,C)}}h&64&&TA(u),h&512&&vu(u,u.return);break;case 3:if(Sa(a,u),h&64&&(a=u.updateQueue,a!==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{gE(a,o)}catch(C){nt(u,u.return,C)}}break;case 27:o===null&&h&4&&NA(u);case 26:case 5:Sa(a,u),o===null&&h&4&&CA(u),h&512&&vu(u,u.return);break;case 12:Sa(a,u);break;case 31:Sa(a,u),h&4&&$A(a,u);break;case 13:Sa(a,u),h&4&&LA(a,u),h&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=KB.bind(null,u),mq(a,u))));break;case 22:if(h=u.memoizedState!==null||xa,!h){o=o!==null&&o.memoizedState!==null||Pt,g=xa;var b=Pt;xa=h,(Pt=o)&&!b?Oa(a,u,(u.subtreeFlags&8772)!==0):Sa(a,u),xa=g,Pt=b}break;case 30:break;default:Sa(a,u)}}function DA(a){var o=a.alternate;o!==null&&(a.alternate=null,DA(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&$m(o)),a.stateNode=null,a.return=null,a.dependencies=null,a.memoizedProps=null,a.memoizedState=null,a.pendingProps=null,a.stateNode=null,a.updateQueue=null}var yt=null,Tn=!1;function wa(a,o,u){for(u=u.child;u!==null;)kA(a,o,u),u=u.sibling}function kA(a,o,u){if(yn&&typeof yn.onCommitFiberUnmount=="function")try{yn.onCommitFiberUnmount(Bi,u)}catch{}switch(u.tag){case 26:Pt||Vr(u,o),wa(a,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:Pt||Vr(u,o);var h=yt,g=Tn;hi(u.type)&&(yt=u.stateNode,Tn=!1),wa(a,o,u),Eu(u.stateNode),yt=h,Tn=g;break;case 5:Pt||Vr(u,o);case 6:if(h=yt,g=Tn,yt=null,wa(a,o,u),yt=h,Tn=g,yt!==null)if(Tn)try{(yt.nodeType===9?yt.body:yt.nodeName==="HTML"?yt.ownerDocument.body:yt).removeChild(u.stateNode)}catch(b){nt(u,o,b)}else try{yt.removeChild(u.stateNode)}catch(b){nt(u,o,b)}break;case 18:yt!==null&&(Tn?(a=yt,TT(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),Al(a)):TT(yt,u.stateNode));break;case 4:h=yt,g=Tn,yt=u.stateNode.containerInfo,Tn=!0,wa(a,o,u),yt=h,Tn=g;break;case 0:case 11:case 14:case 15:oi(2,u,o),Pt||oi(4,u,o),wa(a,o,u);break;case 1:Pt||(Vr(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&jA(u,o,h)),wa(a,o,u);break;case 21:wa(a,o,u);break;case 22:Pt=(h=Pt)||u.memoizedState!==null,wa(a,o,u),Pt=h;break;default:wa(a,o,u)}}function $A(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Al(a)}catch(u){nt(o,o.return,u)}}}function LA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Al(a)}catch(u){nt(o,o.return,u)}}function qB(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new RA),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new RA),o;default:throw Error(r(435,a.tag))}}function id(a,o){var u=qB(a);o.forEach(function(h){if(!u.has(h)){u.add(h);var g=XB.bind(null,a,h);h.then(g,g)}})}function jn(a,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var g=u[h],b=a,C=o,D=C;e:for(;D!==null;){switch(D.tag){case 27:if(hi(D.type)){yt=D.stateNode,Tn=!1;break e}break;case 5:yt=D.stateNode,Tn=!1;break e;case 3:case 4:yt=D.stateNode.containerInfo,Tn=!0;break e}D=D.return}if(yt===null)throw Error(r(160));kA(b,C,g),yt=null,Tn=!1,b=g.alternate,b!==null&&(b.return=null),g.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)IA(o,a),o=o.sibling}var Sr=null;function IA(a,o){var u=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:jn(o,a),Cn(a),h&4&&(oi(3,a,a.return),mu(3,a),oi(5,a,a.return));break;case 1:jn(o,a),Cn(a),h&512&&(Pt||u===null||Vr(u,u.return)),h&64&&xa&&(a=a.updateQueue,a!==null&&(h=a.callbacks,h!==null&&(u=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=u===null?h:u.concat(h))));break;case 26:var g=Sr;if(jn(o,a),Cn(a),h&512&&(Pt||u===null||Vr(u,u.return)),h&4){var b=u!==null?u.memoizedState:null;if(h=a.memoizedState,u===null)if(h===null)if(a.stateNode===null){e:{h=a.type,u=a.memoizedProps,g=g.ownerDocument||g;t:switch(h){case"title":b=g.getElementsByTagName("title")[0],(!b||b[Hs]||b[en]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=g.createElement(h),g.head.insertBefore(b,g.querySelector("head > title"))),an(b,h,u),b[en]=a,Kt(b),h=b;break e;case"link":var C=IT("link","href",g).get(h+(u.href||""));if(C){for(var D=0;D<C.length;D++)if(b=C[D],b.getAttribute("href")===(u.href==null||u.href===""?null:u.href)&&b.getAttribute("rel")===(u.rel==null?null:u.rel)&&b.getAttribute("title")===(u.title==null?null:u.title)&&b.getAttribute("crossorigin")===(u.crossOrigin==null?null:u.crossOrigin)){C.splice(D,1);break t}}b=g.createElement(h),an(b,h,u),g.head.appendChild(b);break;case"meta":if(C=IT("meta","content",g).get(h+(u.content||""))){for(D=0;D<C.length;D++)if(b=C[D],b.getAttribute("content")===(u.content==null?null:""+u.content)&&b.getAttribute("name")===(u.name==null?null:u.name)&&b.getAttribute("property")===(u.property==null?null:u.property)&&b.getAttribute("http-equiv")===(u.httpEquiv==null?null:u.httpEquiv)&&b.getAttribute("charset")===(u.charSet==null?null:u.charSet)){C.splice(D,1);break t}}b=g.createElement(h),an(b,h,u),g.head.appendChild(b);break;default:throw Error(r(468,h))}b[en]=a,Kt(b),h=b}a.stateNode=h}else zT(g,a.type,a.stateNode);else a.stateNode=LT(g,h,a.memoizedProps);else b!==h?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,h===null?zT(g,a.type,a.stateNode):LT(g,h,a.memoizedProps)):h===null&&a.stateNode!==null&&rg(a,a.memoizedProps,u.memoizedProps)}break;case 27:jn(o,a),Cn(a),h&512&&(Pt||u===null||Vr(u,u.return)),u!==null&&h&4&&rg(a,a.memoizedProps,u.memoizedProps);break;case 5:if(jn(o,a),Cn(a),h&512&&(Pt||u===null||Vr(u,u.return)),a.flags&32){g=a.stateNode;try{Ko(g,"")}catch(we){nt(a,a.return,we)}}h&4&&a.stateNode!=null&&(g=a.memoizedProps,rg(a,g,u!==null?u.memoizedProps:g)),h&1024&&(og=!0);break;case 6:if(jn(o,a),Cn(a),h&4){if(a.stateNode===null)throw Error(r(162));h=a.memoizedProps,u=a.stateNode;try{u.nodeValue=h}catch(we){nt(a,a.return,we)}}break;case 3:if(wd=null,g=Sr,Sr=bd(o.containerInfo),jn(o,a),Sr=g,Cn(a),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Al(o.containerInfo)}catch(we){nt(a,a.return,we)}og&&(og=!1,zA(a));break;case 4:h=Sr,Sr=bd(a.stateNode.containerInfo),jn(o,a),Cn(a),Sr=h;break;case 12:jn(o,a),Cn(a);break;case 31:jn(o,a),Cn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,id(a,h)));break;case 13:jn(o,a),Cn(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(ld=Yt()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,id(a,h)));break;case 22:g=a.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,ee=xa,oe=Pt;if(xa=ee||g,Pt=oe||U,jn(o,a),Pt=oe,xa=ee,Cn(a),h&8192)e:for(o=a.stateNode,o._visibility=g?o._visibility&-2:o._visibility|1,g&&(u===null||U||xa||Pt||ao(a)),u=null,o=a;;){if(o.tag===5||o.tag===26){if(u===null){U=u=o;try{if(b=U.stateNode,g)C=b.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{D=U.stateNode;var fe=U.memoizedProps.style,te=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;D.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(we){nt(U,U.return,we)}}}else if(o.tag===6){if(u===null){U=o;try{U.stateNode.nodeValue=g?"":U.memoizedProps}catch(we){nt(U,U.return,we)}}}else if(o.tag===18){if(u===null){U=o;try{var re=U.stateNode;g?jT(re,!0):jT(U.stateNode,!1)}catch(we){nt(U,U.return,we)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===a)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===a)break e;for(;o.sibling===null;){if(o.return===null||o.return===a)break e;u===o&&(u=null),o=o.return}u===o&&(u=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=a.updateQueue,h!==null&&(u=h.retryQueue,u!==null&&(h.retryQueue=null,id(a,u))));break;case 19:jn(o,a),Cn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,id(a,h)));break;case 30:break;case 21:break;default:jn(o,a),Cn(a)}}function Cn(a){var o=a.flags;if(o&2){try{for(var u,h=a.return;h!==null;){if(MA(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,b=ag(a);ad(a,b,g);break;case 5:var C=u.stateNode;u.flags&32&&(Ko(C,""),u.flags&=-33);var D=ag(a);ad(a,D,C);break;case 3:case 4:var U=u.stateNode.containerInfo,ee=ag(a);ig(a,ee,U);break;default:throw Error(r(161))}}catch(oe){nt(a,a.return,oe)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function zA(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;zA(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function Sa(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)PA(a,o.alternate,o),o=o.sibling}function ao(a){for(a=a.child;a!==null;){var o=a;switch(o.tag){case 0:case 11:case 14:case 15:oi(4,o,o.return),ao(o);break;case 1:Vr(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&jA(o,o.return,u),ao(o);break;case 27:Eu(o.stateNode);case 26:case 5:Vr(o,o.return),ao(o);break;case 22:o.memoizedState===null&&ao(o);break;case 30:ao(o);break;default:ao(o)}a=a.sibling}}function Oa(a,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,g=a,b=o,C=b.flags;switch(b.tag){case 0:case 11:case 15:Oa(g,b,u),mu(4,b);break;case 1:if(Oa(g,b,u),h=b,g=h.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(ee){nt(h,h.return,ee)}if(h=b,g=h.updateQueue,g!==null){var D=h.stateNode;try{var U=g.shared.hiddenCallbacks;if(U!==null)for(g.shared.hiddenCallbacks=null,g=0;g<U.length;g++)vE(U[g],D)}catch(ee){nt(h,h.return,ee)}}u&&C&64&&TA(b),vu(b,b.return);break;case 27:NA(b);case 26:case 5:Oa(g,b,u),u&&h===null&&C&4&&CA(b),vu(b,b.return);break;case 12:Oa(g,b,u);break;case 31:Oa(g,b,u),u&&C&4&&$A(g,b);break;case 13:Oa(g,b,u),u&&C&4&&LA(g,b);break;case 22:b.memoizedState===null&&Oa(g,b,u),vu(b,b.return);break;case 30:break;default:Oa(g,b,u)}o=o.sibling}}function lg(a,o){var u=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),a=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(a=o.memoizedState.cachePool.pool),a!==u&&(a!=null&&a.refCount++,u!=null&&nu(u))}function sg(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&nu(a))}function Or(a,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)BA(a,o,u,h),o=o.sibling}function BA(a,o,u,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Or(a,o,u,h),g&2048&&mu(9,o);break;case 1:Or(a,o,u,h);break;case 3:Or(a,o,u,h),g&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&nu(a)));break;case 12:if(g&2048){Or(a,o,u,h),a=o.stateNode;try{var b=o.memoizedProps,C=b.id,D=b.onPostCommit;typeof D=="function"&&D(C,o.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(U){nt(o,o.return,U)}}else Or(a,o,u,h);break;case 31:Or(a,o,u,h);break;case 13:Or(a,o,u,h);break;case 23:break;case 22:b=o.stateNode,C=o.alternate,o.memoizedState!==null?b._visibility&2?Or(a,o,u,h):gu(a,o):b._visibility&2?Or(a,o,u,h):(b._visibility|=2,ml(a,o,u,h,(o.subtreeFlags&10256)!==0||!1)),g&2048&&lg(C,o);break;case 24:Or(a,o,u,h),g&2048&&sg(o.alternate,o);break;default:Or(a,o,u,h)}}function ml(a,o,u,h,g){for(g=g&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var b=a,C=o,D=u,U=h,ee=C.flags;switch(C.tag){case 0:case 11:case 15:ml(b,C,D,U,g),mu(8,C);break;case 23:break;case 22:var oe=C.stateNode;C.memoizedState!==null?oe._visibility&2?ml(b,C,D,U,g):gu(b,C):(oe._visibility|=2,ml(b,C,D,U,g)),g&&ee&2048&&lg(C.alternate,C);break;case 24:ml(b,C,D,U,g),g&&ee&2048&&sg(C.alternate,C);break;default:ml(b,C,D,U,g)}o=o.sibling}}function gu(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=a,h=o,g=h.flags;switch(h.tag){case 22:gu(u,h),g&2048&&lg(h.alternate,h);break;case 24:gu(u,h),g&2048&&sg(h.alternate,h);break;default:gu(u,h)}o=o.sibling}}var yu=8192;function vl(a,o,u){if(a.subtreeFlags&yu)for(a=a.child;a!==null;)qA(a,o,u),a=a.sibling}function qA(a,o,u){switch(a.tag){case 26:vl(a,o,u),a.flags&yu&&a.memoizedState!==null&&Tq(u,Sr,a.memoizedState,a.memoizedProps);break;case 5:vl(a,o,u);break;case 3:case 4:var h=Sr;Sr=bd(a.stateNode.containerInfo),vl(a,o,u),Sr=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=yu,yu=16777216,vl(a,o,u),yu=h):vl(a,o,u));break;default:vl(a,o,u)}}function UA(a){var o=a.alternate;if(o!==null&&(a=o.child,a!==null)){o.child=null;do o=a.sibling,a.sibling=null,a=o;while(a!==null)}}function bu(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Xt=h,FA(h,a)}UA(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)HA(a),a=a.sibling}function HA(a){switch(a.tag){case 0:case 11:case 15:bu(a),a.flags&2048&&oi(9,a,a.return);break;case 3:bu(a);break;case 12:bu(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,od(a)):bu(a);break;default:bu(a)}}function od(a){var o=a.deletions;if((a.flags&16)!==0){if(o!==null)for(var u=0;u<o.length;u++){var h=o[u];Xt=h,FA(h,a)}UA(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:oi(8,o,o.return),od(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,od(o));break;default:od(o)}a=a.sibling}}function FA(a,o){for(;Xt!==null;){var u=Xt;switch(u.tag){case 0:case 11:case 15:oi(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:nu(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,Xt=h;else e:for(u=a;Xt!==null;){h=Xt;var g=h.sibling,b=h.return;if(DA(h),h===u){Xt=null;break e}if(g!==null){g.return=b,Xt=g;break e}Xt=b}}}var UB={getCacheForType:function(a){var o=nn(Mt),u=o.data.get(a);return u===void 0&&(u=a(),o.data.set(a,u)),u},cacheSignal:function(){return nn(Mt).controller.signal}},HB=typeof WeakMap=="function"?WeakMap:Map,Qe=0,ct=null,Le=null,Be=0,tt=0,qn=null,li=!1,gl=!1,ug=!1,_a=0,_t=0,si=0,io=0,cg=0,Un=0,yl=0,xu=null,Mn=null,fg=!1,ld=0,GA=0,sd=1/0,ud=null,ui=null,Bt=0,ci=null,bl=null,Ea=0,dg=0,hg=null,VA=null,wu=0,pg=null;function Hn(){return(Qe&2)!==0&&Be!==0?Be&-Be:k.T!==null?xg():Dm()}function YA(){if(Un===0)if((Be&536870912)===0||Ue){var a=qo;qo<<=1,(qo&3932160)===0&&(qo=262144),Un=a}else Un=536870912;return a=zn.current,a!==null&&(a.flags|=32),Un}function Nn(a,o,u){(a===ct&&(tt===2||tt===9)||a.cancelPendingCommit!==null)&&(xl(a,0),fi(a,Be,Un,!1)),St(a,u),((Qe&2)===0||a!==ct)&&(a===ct&&((Qe&2)===0&&(io|=u),_t===4&&fi(a,Be,Un,!1)),Yr(a))}function WA(a,o,u){if((Qe&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&a.expiredLanes)===0||gt(a,o),g=h?VB(a,o):vg(a,o,!0),b=h;do{if(g===0){gl&&!h&&fi(a,o,0,!1);break}else{if(u=a.current.alternate,b&&!FB(u)){g=vg(a,o,!1),b=!1;continue}if(g===2){if(b=o,a.errorRecoveryDisabledLanes&b)var C=0;else C=a.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){o=C;e:{var D=a;g=xu;var U=D.current.memoizedState.isDehydrated;if(U&&(xl(D,C).flags|=256),C=vg(D,C,!1),C!==2){if(ug&&!U){D.errorRecoveryDisabledLanes|=b,io|=b,g=4;break e}b=Mn,Mn=g,b!==null&&(Mn===null?Mn=b:Mn.push.apply(Mn,b))}g=C}if(b=!1,g!==2)continue}}if(g===1){xl(a,0),fi(a,o,0,!0);break}e:{switch(h=a,b=g,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:fi(h,o,Un,!li);break e;case 2:Mn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(g=ld+300-Yt(),10<g)){if(fi(h,o,Un,!li),Ce(h,0,!0)!==0)break e;Ea=o,h.timeoutHandle=ET(KA.bind(null,h,u,Mn,ud,fg,o,Un,io,yl,li,b,"Throttled",-0,0),g);break e}KA(h,u,Mn,ud,fg,o,Un,io,yl,li,b,null,-0,0)}}break}while(!0);Yr(a)}function KA(a,o,u,h,g,b,C,D,U,ee,oe,fe,te,re){if(a.timeoutHandle=-1,fe=o.subtreeFlags,fe&8192||(fe&16785408)===16785408){fe={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ca},qA(o,b,fe);var we=(b&62914560)===b?ld-Yt():(b&4194048)===b?GA-Yt():0;if(we=jq(fe,we),we!==null){Ea=b,a.cancelPendingCommit=we(rT.bind(null,a,o,b,u,h,g,C,D,U,oe,fe,null,te,re)),fi(a,b,C,!ee);return}}rT(a,o,b,u,h,g,C,D,U)}function FB(a){for(var o=a;;){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 g=u[h],b=g.getSnapshot;g=g.value;try{if(!Ln(b(),g))return!1}catch{return!1}}if(u=o.child,o.subtreeFlags&16384&&u!==null)u.return=o,o=u;else{if(o===a)break;for(;o.sibling===null;){if(o.return===null||o.return===a)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function fi(a,o,u,h){o&=~cg,o&=~io,a.suspendedLanes|=o,a.pingedLanes&=~o,h&&(a.warmLanes|=o),h=a.expirationTimes;for(var g=o;0<g;){var b=31-cn(g),C=1<<b;h[b]=-1,g&=~C}u!==0&&Ui(a,u,o)}function cd(){return(Qe&6)===0?(Su(0),!1):!0}function mg(){if(Le!==null){if(tt===0)var a=Le.return;else a=Le,pa=Xi=null,Nv(a),cl=null,au=0,a=Le;for(;a!==null;)AA(a.alternate,a),a=a.return;Le=null}}function xl(a,o){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,cq(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Ea=0,mg(),ct=a,Le=u=da(a.current,null),Be=o,tt=0,qn=null,li=!1,gl=gt(a,o),ug=!1,yl=Un=cg=io=si=_t=0,Mn=xu=null,fg=!1,(o&8)!==0&&(o|=o&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=o;0<h;){var g=31-cn(h),b=1<<g;o|=a[g],h&=~b}return _a=o,Nf(),u}function XA(a,o){Ne=null,k.H=du,o===ul||o===zf?(o=dE(),tt=3):o===bv?(o=dE(),tt=4):tt=o===Yv?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,qn=o,Le===null&&(_t=1,Jf(a,tr(o,a.current)))}function QA(){var a=zn.current;return a===null?!0:(Be&4194048)===Be?ir===null:(Be&62914560)===Be||(Be&536870912)!==0?a===ir:!1}function ZA(){var a=k.H;return k.H=du,a===null?du:a}function JA(){var a=k.A;return k.A=UB,a}function fd(){_t=4,li||(Be&4194048)!==Be&&zn.current!==null||(gl=!0),(si&134217727)===0&&(io&134217727)===0||ct===null||fi(ct,Be,Un,!1)}function vg(a,o,u){var h=Qe;Qe|=2;var g=ZA(),b=JA();(ct!==a||Be!==o)&&(ud=null,xl(a,o)),o=!1;var C=_t;e:do try{if(tt!==0&&Le!==null){var D=Le,U=qn;switch(tt){case 8:mg(),C=6;break e;case 3:case 2:case 9:case 6:zn.current===null&&(o=!0);var ee=tt;if(tt=0,qn=null,wl(a,D,U,ee),u&&gl){C=0;break e}break;default:ee=tt,tt=0,qn=null,wl(a,D,U,ee)}}GB(),C=_t;break}catch(oe){XA(a,oe)}while(!0);return o&&a.shellSuspendCounter++,pa=Xi=null,Qe=h,k.H=g,k.A=b,Le===null&&(ct=null,Be=0,Nf()),C}function GB(){for(;Le!==null;)eT(Le)}function VB(a,o){var u=Qe;Qe|=2;var h=ZA(),g=JA();ct!==a||Be!==o?(ud=null,sd=Yt()+500,xl(a,o)):gl=gt(a,o);e:do try{if(tt!==0&&Le!==null){o=Le;var b=qn;t:switch(tt){case 1:tt=0,qn=null,wl(a,o,b,1);break;case 2:case 9:if(cE(b)){tt=0,qn=null,tT(o);break}o=function(){tt!==2&&tt!==9||ct!==a||(tt=7),Yr(a)},b.then(o,o);break e;case 3:tt=7;break e;case 4:tt=5;break e;case 7:cE(b)?(tt=0,qn=null,tT(o)):(tt=0,qn=null,wl(a,o,b,7));break;case 5:var C=null;switch(Le.tag){case 26:C=Le.memoizedState;case 5:case 27:var D=Le;if(C?BT(C):D.stateNode.complete){tt=0,qn=null;var U=D.sibling;if(U!==null)Le=U;else{var ee=D.return;ee!==null?(Le=ee,dd(ee)):Le=null}break t}}tt=0,qn=null,wl(a,o,b,5);break;case 6:tt=0,qn=null,wl(a,o,b,6);break;case 8:mg(),_t=6;break e;default:throw Error(r(462))}}YB();break}catch(oe){XA(a,oe)}while(!0);return pa=Xi=null,k.H=h,k.A=g,Qe=u,Le!==null?0:(ct=null,Be=0,Nf(),_t)}function YB(){for(;Le!==null&&!wt();)eT(Le)}function eT(a){var o=_A(a.alternate,a,_a);a.memoizedProps=a.pendingProps,o===null?dd(a):Le=o}function tT(a){var o=a,u=o.alternate;switch(o.tag){case 15:case 0:o=yA(u,o,o.pendingProps,o.type,void 0,Be);break;case 11:o=yA(u,o,o.pendingProps,o.type.render,o.ref,Be);break;case 5:Nv(o);default:AA(u,o),o=Le=J_(o,_a),o=_A(u,o,_a)}a.memoizedProps=a.pendingProps,o===null?dd(a):Le=o}function wl(a,o,u,h){pa=Xi=null,Nv(o),cl=null,au=0;var g=o.return;try{if(kB(a,g,o,u,Be)){_t=1,Jf(a,tr(u,a.current)),Le=null;return}}catch(b){if(g!==null)throw Le=g,b;_t=1,Jf(a,tr(u,a.current)),Le=null;return}o.flags&32768?(Ue||h===1?a=!0:gl||(Be&536870912)!==0?a=!1:(li=a=!0,(h===2||h===9||h===3||h===6)&&(h=zn.current,h!==null&&h.tag===13&&(h.flags|=16384))),nT(o,a)):dd(o)}function dd(a){var o=a;do{if((o.flags&32768)!==0){nT(o,li);return}a=o.return;var u=IB(o.alternate,o,_a);if(u!==null){Le=u;return}if(o=o.sibling,o!==null){Le=o;return}Le=o=a}while(o!==null);_t===0&&(_t=5)}function nT(a,o){do{var u=zB(a.alternate,a);if(u!==null){u.flags&=32767,Le=u;return}if(u=a.return,u!==null&&(u.flags|=32768,u.subtreeFlags=0,u.deletions=null),!o&&(a=a.sibling,a!==null)){Le=a;return}Le=a=u}while(a!==null);_t=6,Le=null}function rT(a,o,u,h,g,b,C,D,U){a.cancelPendingCommit=null;do hd();while(Bt!==0);if((Qe&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=av,Sn(a,u,b,C,D,U),a===ct&&(Le=ct=null,Be=0),bl=o,ci=a,Ea=u,dg=b,hg=g,VA=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,QB(zi,function(){return sT(),null})):(a.callbackNode=null,a.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=k.T,k.T=null,g=q.p,q.p=2,C=Qe,Qe|=4;try{BB(a,o,u)}finally{Qe=C,q.p=g,k.T=h}}Bt=1,aT(),iT(),oT()}}function aT(){if(Bt===1){Bt=0;var a=ci,o=bl,u=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||u){u=k.T,k.T=null;var h=q.p;q.p=2;var g=Qe;Qe|=4;try{IA(o,a);var b=jg,C=F_(a.containerInfo),D=b.focusedElem,U=b.selectionRange;if(C!==D&&D&&D.ownerDocument&&H_(D.ownerDocument.documentElement,D)){if(U!==null&&Jm(D)){var ee=U.start,oe=U.end;if(oe===void 0&&(oe=ee),"selectionStart"in D)D.selectionStart=ee,D.selectionEnd=Math.min(oe,D.value.length);else{var fe=D.ownerDocument||document,te=fe&&fe.defaultView||window;if(te.getSelection){var re=te.getSelection(),we=D.textContent.length,Te=Math.min(U.start,we),lt=U.end===void 0?Te:Math.min(U.end,we);!re.extend&&Te>lt&&(C=lt,lt=Te,Te=C);var Z=U_(D,Te),G=U_(D,lt);if(Z&&G&&(re.rangeCount!==1||re.anchorNode!==Z.node||re.anchorOffset!==Z.offset||re.focusNode!==G.node||re.focusOffset!==G.offset)){var J=fe.createRange();J.setStart(Z.node,Z.offset),re.removeAllRanges(),Te>lt?(re.addRange(J),re.extend(G.node,G.offset)):(J.setEnd(G.node,G.offset),re.addRange(J))}}}}for(fe=[],re=D;re=re.parentNode;)re.nodeType===1&&fe.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof D.focus=="function"&&D.focus(),D=0;D<fe.length;D++){var ue=fe[D];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}Ed=!!Tg,jg=Tg=null}finally{Qe=g,q.p=h,k.T=u}}a.current=o,Bt=2}}function iT(){if(Bt===2){Bt=0;var a=ci,o=bl,u=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||u){u=k.T,k.T=null;var h=q.p;q.p=2;var g=Qe;Qe|=4;try{PA(a,o.alternate,o)}finally{Qe=g,q.p=h,k.T=u}}Bt=3}}function oT(){if(Bt===4||Bt===3){Bt=0,Qn();var a=ci,o=bl,u=Ea,h=VA;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Bt=5:(Bt=0,bl=ci=null,lT(a,a.pendingLanes));var g=a.pendingLanes;if(g===0&&(ui=null),xr(u),o=o.stateNode,yn&&typeof yn.onCommitFiberRoot=="function")try{yn.onCommitFiberRoot(Bi,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=k.T,g=q.p,q.p=2,k.T=null;try{for(var b=a.onRecoverableError,C=0;C<h.length;C++){var D=h[C];b(D.value,{componentStack:D.stack})}}finally{k.T=o,q.p=g}}(Ea&3)!==0&&hd(),Yr(a),g=a.pendingLanes,(u&261930)!==0&&(g&42)!==0?a===pg?wu++:(wu=0,pg=a):wu=0,Su(0)}}function lT(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,nu(o)))}function hd(){return aT(),iT(),oT(),sT()}function sT(){if(Bt!==5)return!1;var a=ci,o=dg;dg=0;var u=xr(Ea),h=k.T,g=q.p;try{q.p=32>u?32:u,k.T=null,u=hg,hg=null;var b=ci,C=Ea;if(Bt=0,bl=ci=null,Ea=0,(Qe&6)!==0)throw Error(r(331));var D=Qe;if(Qe|=4,HA(b.current),BA(b,b.current,C,u),Qe=D,Su(0,!1),yn&&typeof yn.onPostCommitFiberRoot=="function")try{yn.onPostCommitFiberRoot(Bi,b)}catch{}return!0}finally{q.p=g,k.T=h,lT(a,o)}}function uT(a,o,u){o=tr(u,o),o=Vv(a.stateNode,o,2),a=ri(a,o,2),a!==null&&(St(a,2),Yr(a))}function nt(a,o,u){if(a.tag===3)uT(a,a,u);else for(;o!==null;){if(o.tag===3){uT(o,a,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(ui===null||!ui.has(h))){a=tr(u,a),u=cA(2),h=ri(o,u,2),h!==null&&(fA(u,h,o,a),St(h,2),Yr(h));break}}o=o.return}}function gg(a,o,u){var h=a.pingCache;if(h===null){h=a.pingCache=new HB;var g=new Set;h.set(o,g)}else g=h.get(o),g===void 0&&(g=new Set,h.set(o,g));g.has(u)||(ug=!0,g.add(u),a=WB.bind(null,a,o,u),o.then(a,a))}function WB(a,o,u){var h=a.pingCache;h!==null&&h.delete(o),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,ct===a&&(Be&u)===u&&(_t===4||_t===3&&(Be&62914560)===Be&&300>Yt()-ld?(Qe&2)===0&&xl(a,0):cg|=u,yl===Be&&(yl=0)),Yr(a)}function cT(a,o){o===0&&(o=fn()),a=Yi(a,o),a!==null&&(St(a,o),Yr(a))}function KB(a){var o=a.memoizedState,u=0;o!==null&&(u=o.retryLane),cT(a,u)}function XB(a,o){var u=0;switch(a.tag){case 31:case 13:var h=a.stateNode,g=a.memoizedState;g!==null&&(u=g.retryLane);break;case 19:h=a.stateNode;break;case 22:h=a.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),cT(a,u)}function QB(a,o){return qr(a,o)}var pd=null,Sl=null,yg=!1,md=!1,bg=!1,di=0;function Yr(a){a!==Sl&&a.next===null&&(Sl===null?pd=Sl=a:Sl=Sl.next=a),md=!0,yg||(yg=!0,JB())}function Su(a,o){if(!bg&&md){bg=!0;do for(var u=!1,h=pd;h!==null;){if(a!==0){var g=h.pendingLanes;if(g===0)var b=0;else{var C=h.suspendedLanes,D=h.pingedLanes;b=(1<<31-cn(42|a)+1)-1,b&=g&~(C&~D),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,pT(h,b))}else b=Be,b=Ce(h,h===ct?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||gt(h,b)||(u=!0,pT(h,b));h=h.next}while(u);bg=!1}}function ZB(){fT()}function fT(){md=yg=!1;var a=0;di!==0&&uq()&&(a=di);for(var o=Yt(),u=null,h=pd;h!==null;){var g=h.next,b=dT(h,o);b===0?(h.next=null,u===null?pd=g:u.next=g,g===null&&(Sl=u)):(u=h,(a!==0||(b&3)!==0)&&(md=!0)),h=g}Bt!==0&&Bt!==5||Su(a),di!==0&&(di=0)}function dT(a,o){for(var u=a.suspendedLanes,h=a.pingedLanes,g=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var C=31-cn(b),D=1<<C,U=g[C];U===-1?((D&u)===0||(D&h)!==0)&&(g[C]=Wt(D,o)):U<=o&&(a.expiredLanes|=D),b&=~D}if(o=ct,u=Be,u=Ce(a,a===o?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h=a.callbackNode,u===0||a===o&&(tt===2||tt===9)||a.cancelPendingCommit!==null)return h!==null&&h!==null&&$n(h),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||gt(a,u)){if(o=u&-u,o===a.callbackPriority)return o;switch(h!==null&&$n(h),xr(u)){case 2:case 8:u=yf;break;case 32:u=zi;break;case 268435456:u=sa;break;default:u=zi}return h=hT.bind(null,a),u=qr(u,h),a.callbackPriority=o,a.callbackNode=u,o}return h!==null&&h!==null&&$n(h),a.callbackPriority=2,a.callbackNode=null,2}function hT(a,o){if(Bt!==0&&Bt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(hd()&&a.callbackNode!==u)return null;var h=Be;return h=Ce(a,a===ct?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h===0?null:(WA(a,h,o),dT(a,Yt()),a.callbackNode!=null&&a.callbackNode===u?hT.bind(null,a):null)}function pT(a,o){if(hd())return null;WA(a,o,!0)}function JB(){fq(function(){(Qe&6)!==0?qr(Ii,ZB):fT()})}function xg(){if(di===0){var a=ll;a===0&&(a=Bo,Bo<<=1,(Bo&261888)===0&&(Bo=256)),di=a}return di}function mT(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Of(""+a)}function vT(a,o){var u=o.ownerDocument.createElement("input");return u.name=o.name,u.value=o.value,a.id&&u.setAttribute("form",a.id),o.parentNode.insertBefore(u,o),a=new FormData(a),u.parentNode.removeChild(u),a}function eq(a,o,u,h,g){if(o==="submit"&&u&&u.stateNode===g){var b=mT((g[En]||null).action),C=h.submitter;C&&(o=(o=C[En]||null)?mT(o.formAction):C.getAttribute("formAction"),o!==null&&(b=o,C=null));var D=new Tf("action","action",null,h,g);a.push({event:D,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(di!==0){var U=C?vT(g,C):new FormData(g);Bv(u,{pending:!0,data:U,method:g.method,action:b},null,U)}}else typeof b=="function"&&(D.preventDefault(),U=C?vT(g,C):new FormData(g),Bv(u,{pending:!0,data:U,method:g.method,action:b},b,U))},currentTarget:g}]})}}for(var wg=0;wg<rv.length;wg++){var Sg=rv[wg],tq=Sg.toLowerCase(),nq=Sg[0].toUpperCase()+Sg.slice(1);wr(tq,"on"+nq)}wr(Y_,"onAnimationEnd"),wr(W_,"onAnimationIteration"),wr(K_,"onAnimationStart"),wr("dblclick","onDoubleClick"),wr("focusin","onFocus"),wr("focusout","onBlur"),wr(yB,"onTransitionRun"),wr(bB,"onTransitionStart"),wr(xB,"onTransitionCancel"),wr(X_,"onTransitionEnd"),Yo("onMouseEnter",["mouseout","mouseover"]),Yo("onMouseLeave",["mouseout","mouseover"]),Yo("onPointerEnter",["pointerout","pointerover"]),Yo("onPointerLeave",["pointerout","pointerover"]),Hi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Hi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Hi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Hi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Hi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Hi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ou="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(" "),rq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ou));function gT(a,o){o=(o&4)!==0;for(var u=0;u<a.length;u++){var h=a[u],g=h.event;h=h.listeners;e:{var b=void 0;if(o)for(var C=h.length-1;0<=C;C--){var D=h[C],U=D.instance,ee=D.currentTarget;if(D=D.listener,U!==b&&g.isPropagationStopped())break e;b=D,g.currentTarget=ee;try{b(g)}catch(oe){Mf(oe)}g.currentTarget=null,b=U}else for(C=0;C<h.length;C++){if(D=h[C],U=D.instance,ee=D.currentTarget,D=D.listener,U!==b&&g.isPropagationStopped())break e;b=D,g.currentTarget=ee;try{b(g)}catch(oe){Mf(oe)}g.currentTarget=null,b=U}}}}function Ie(a,o){var u=o[km];u===void 0&&(u=o[km]=new Set);var h=a+"__bubble";u.has(h)||(yT(o,a,2,!1),u.add(h))}function Og(a,o,u){var h=0;o&&(h|=4),yT(u,a,h,o)}var vd="_reactListening"+Math.random().toString(36).slice(2);function _g(a){if(!a[vd]){a[vd]=!0,f_.forEach(function(u){u!=="selectionchange"&&(rq.has(u)||Og(u,!1,a),Og(u,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[vd]||(o[vd]=!0,Og("selectionchange",!1,o))}}function yT(a,o,u,h){switch(YT(o)){case 2:var g=Nq;break;case 8:g=Rq;break;default:g=zg}u=g.bind(null,o,u,a),g=void 0,!Fm||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(g=!0),h?g!==void 0?a.addEventListener(o,u,{capture:!0,passive:g}):a.addEventListener(o,u,!0):g!==void 0?a.addEventListener(o,u,{passive:g}):a.addEventListener(o,u,!1)}function Eg(a,o,u,h,g){var b=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var C=h.tag;if(C===3||C===4){var D=h.stateNode.containerInfo;if(D===g)break;if(C===4)for(C=h.return;C!==null;){var U=C.tag;if((U===3||U===4)&&C.stateNode.containerInfo===g)return;C=C.return}for(;D!==null;){if(C=Fo(D),C===null)return;if(U=C.tag,U===5||U===6||U===26||U===27){h=b=C;continue e}D=D.parentNode}}h=h.return}O_(function(){var ee=b,oe=Um(u),fe=[];e:{var te=Q_.get(a);if(te!==void 0){var re=Tf,we=a;switch(a){case"keypress":if(Ef(u)===0)break e;case"keydown":case"keyup":re=X5;break;case"focusin":we="focus",re=Wm;break;case"focusout":we="blur",re=Wm;break;case"beforeblur":case"afterblur":re=Wm;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":re=A_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=I5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=J5;break;case Y_:case W_:case K_:re=q5;break;case X_:re=tB;break;case"scroll":case"scrollend":re=$5;break;case"wheel":re=rB;break;case"copy":case"cut":case"paste":re=H5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=j_;break;case"toggle":case"beforetoggle":re=iB}var Te=(o&4)!==0,lt=!Te&&(a==="scroll"||a==="scrollend"),Z=Te?te!==null?te+"Capture":null:te;Te=[];for(var G=ee,J;G!==null;){var ue=G;if(J=ue.stateNode,ue=ue.tag,ue!==5&&ue!==26&&ue!==27||J===null||Z===null||(ue=Gs(G,Z),ue!=null&&Te.push(_u(G,ue,J))),lt)break;G=G.return}0<Te.length&&(te=new re(te,we,null,u,oe),fe.push({event:te,listeners:Te}))}}if((o&7)===0){e:{if(te=a==="mouseover"||a==="pointerover",re=a==="mouseout"||a==="pointerout",te&&u!==qm&&(we=u.relatedTarget||u.fromElement)&&(Fo(we)||we[Ho]))break e;if((re||te)&&(te=oe.window===oe?oe:(te=oe.ownerDocument)?te.defaultView||te.parentWindow:window,re?(we=u.relatedTarget||u.toElement,re=ee,we=we?Fo(we):null,we!==null&&(lt=l(we),Te=we.tag,we!==lt||Te!==5&&Te!==27&&Te!==6)&&(we=null)):(re=null,we=ee),re!==we)){if(Te=A_,ue="onMouseLeave",Z="onMouseEnter",G="mouse",(a==="pointerout"||a==="pointerover")&&(Te=j_,ue="onPointerLeave",Z="onPointerEnter",G="pointer"),lt=re==null?te:Fs(re),J=we==null?te:Fs(we),te=new Te(ue,G+"leave",re,u,oe),te.target=lt,te.relatedTarget=J,ue=null,Fo(oe)===ee&&(Te=new Te(Z,G+"enter",we,u,oe),Te.target=J,Te.relatedTarget=lt,ue=Te),lt=ue,re&&we)t:{for(Te=aq,Z=re,G=we,J=0,ue=Z;ue;ue=Te(ue))J++;ue=0;for(var Ae=G;Ae;Ae=Te(Ae))ue++;for(;0<J-ue;)Z=Te(Z),J--;for(;0<ue-J;)G=Te(G),ue--;for(;J--;){if(Z===G||G!==null&&Z===G.alternate){Te=Z;break t}Z=Te(Z),G=Te(G)}Te=null}else Te=null;re!==null&&bT(fe,te,re,Te,!1),we!==null&<!==null&&bT(fe,lt,we,Te,!0)}}e:{if(te=ee?Fs(ee):window,re=te.nodeName&&te.nodeName.toLowerCase(),re==="select"||re==="input"&&te.type==="file")var Ve=$_;else if(D_(te))if(L_)Ve=mB;else{Ve=hB;var _e=dB}else re=te.nodeName,!re||re.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&Bm(ee.elementType)&&(Ve=$_):Ve=pB;if(Ve&&(Ve=Ve(a,ee))){k_(fe,Ve,u,oe);break e}_e&&_e(a,te,ee),a==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&zm(te,"number",te.value)}switch(_e=ee?Fs(ee):window,a){case"focusin":(D_(_e)||_e.contentEditable==="true")&&(Jo=_e,ev=ee,Js=null);break;case"focusout":Js=ev=Jo=null;break;case"mousedown":tv=!0;break;case"contextmenu":case"mouseup":case"dragend":tv=!1,G_(fe,u,oe);break;case"selectionchange":if(gB)break;case"keydown":case"keyup":G_(fe,u,oe)}var De;if(Xm)e:{switch(a){case"compositionstart":var qe="onCompositionStart";break e;case"compositionend":qe="onCompositionEnd";break e;case"compositionupdate":qe="onCompositionUpdate";break e}qe=void 0}else Zo?R_(a,u)&&(qe="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(qe="onCompositionStart");qe&&(C_&&u.locale!=="ko"&&(Zo||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&Zo&&(De=__()):(Xa=oe,Gm="value"in Xa?Xa.value:Xa.textContent,Zo=!0)),_e=gd(ee,qe),0<_e.length&&(qe=new T_(qe,a,null,u,oe),fe.push({event:qe,listeners:_e}),De?qe.data=De:(De=P_(u),De!==null&&(qe.data=De)))),(De=lB?sB(a,u):uB(a,u))&&(qe=gd(ee,"onBeforeInput"),0<qe.length&&(_e=new T_("onBeforeInput","beforeinput",null,u,oe),fe.push({event:_e,listeners:qe}),_e.data=De)),eq(fe,a,ee,u,oe)}gT(fe,o)})}function _u(a,o,u){return{instance:a,listener:o,currentTarget:u}}function gd(a,o){for(var u=o+"Capture",h=[];a!==null;){var g=a,b=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||b===null||(g=Gs(a,u),g!=null&&h.unshift(_u(a,g,b)),g=Gs(a,o),g!=null&&h.push(_u(a,g,b))),a.tag===3)return h;a=a.return}return[]}function aq(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function bT(a,o,u,h,g){for(var b=o._reactName,C=[];u!==null&&u!==h;){var D=u,U=D.alternate,ee=D.stateNode;if(D=D.tag,U!==null&&U===h)break;D!==5&&D!==26&&D!==27||ee===null||(U=ee,g?(ee=Gs(u,b),ee!=null&&C.unshift(_u(u,ee,U))):g||(ee=Gs(u,b),ee!=null&&C.push(_u(u,ee,U)))),u=u.return}C.length!==0&&a.push({event:o,listeners:C})}var iq=/\r\n?/g,oq=/\u0000|\uFFFD/g;function xT(a){return(typeof a=="string"?a:""+a).replace(iq,`
|
|
49
|
-
`).replace(oq,"")}function wT(a,o){return o=xT(o),xT(a)===o}function ot(a,o,u,h,g,b){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||Ko(a,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&Ko(a,""+h);break;case"className":wf(a,"class",h);break;case"tabIndex":wf(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":wf(a,u,h);break;case"style":w_(a,h,b);break;case"data":if(o!=="object"){wf(a,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||u!=="href")){a.removeAttribute(u);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=Of(""+h),a.setAttribute(u,h);break;case"action":case"formAction":if(typeof h=="function"){a.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 b=="function"&&(u==="formAction"?(o!=="input"&&ot(a,o,"name",g.name,g,null),ot(a,o,"formEncType",g.formEncType,g,null),ot(a,o,"formMethod",g.formMethod,g,null),ot(a,o,"formTarget",g.formTarget,g,null)):(ot(a,o,"encType",g.encType,g,null),ot(a,o,"method",g.method,g,null),ot(a,o,"target",g.target,g,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=Of(""+h),a.setAttribute(u,h);break;case"onClick":h!=null&&(a.onclick=ca);break;case"onScroll":h!=null&&Ie("scroll",a);break;case"onScrollEnd":h!=null&&Ie("scrollend",a);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"multiple":a.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":a.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"){a.removeAttribute("xlink:href");break}u=Of(""+h),a.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"?a.setAttribute(u,""+h):a.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"?a.setAttribute(u,""):a.removeAttribute(u);break;case"capture":case"download":h===!0?a.setAttribute(u,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?a.setAttribute(u,h):a.removeAttribute(u);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?a.setAttribute(u,h):a.removeAttribute(u);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?a.removeAttribute(u):a.setAttribute(u,h);break;case"popover":Ie("beforetoggle",a),Ie("toggle",a),xf(a,"popover",h);break;case"xlinkActuate":ua(a,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":ua(a,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":ua(a,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":ua(a,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":ua(a,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":ua(a,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":ua(a,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":ua(a,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":ua(a,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":xf(a,"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=D5.get(u)||u,xf(a,u,h))}}function Ag(a,o,u,h,g,b){switch(u){case"style":w_(a,h,b);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(u=h.__html,u!=null){if(g.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof h=="string"?Ko(a,h):(typeof h=="number"||typeof h=="bigint")&&Ko(a,""+h);break;case"onScroll":h!=null&&Ie("scroll",a);break;case"onScrollEnd":h!=null&&Ie("scrollend",a);break;case"onClick":h!=null&&(a.onclick=ca);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!d_.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(g=u.endsWith("Capture"),o=u.slice(2,g?u.length-7:void 0),b=a[En]||null,b=b!=null?b[u]:null,typeof b=="function"&&a.removeEventListener(o,b,g),typeof h=="function")){typeof b!="function"&&b!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(o,h,g);break e}u in a?a[u]=h:h===!0?a.setAttribute(u,""):xf(a,u,h)}}}function an(a,o,u){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ie("error",a),Ie("load",a);var h=!1,g=!1,b;for(b in u)if(u.hasOwnProperty(b)){var C=u[b];if(C!=null)switch(b){case"src":h=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ot(a,o,b,C,u,null)}}g&&ot(a,o,"srcSet",u.srcSet,u,null),h&&ot(a,o,"src",u.src,u,null);return;case"input":Ie("invalid",a);var D=b=C=g=null,U=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var oe=u[h];if(oe!=null)switch(h){case"name":g=oe;break;case"type":C=oe;break;case"checked":U=oe;break;case"defaultChecked":ee=oe;break;case"value":b=oe;break;case"defaultValue":D=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,o));break;default:ot(a,o,h,oe,u,null)}}g_(a,b,D,U,ee,C,g,!1);return;case"select":Ie("invalid",a),h=C=b=null;for(g in u)if(u.hasOwnProperty(g)&&(D=u[g],D!=null))switch(g){case"value":b=D;break;case"defaultValue":C=D;break;case"multiple":h=D;default:ot(a,o,g,D,u,null)}o=b,u=C,a.multiple=!!h,o!=null?Wo(a,!!h,o,!1):u!=null&&Wo(a,!!h,u,!0);return;case"textarea":Ie("invalid",a),b=g=h=null;for(C in u)if(u.hasOwnProperty(C)&&(D=u[C],D!=null))switch(C){case"value":h=D;break;case"defaultValue":g=D;break;case"children":b=D;break;case"dangerouslySetInnerHTML":if(D!=null)throw Error(r(91));break;default:ot(a,o,C,D,u,null)}b_(a,h,g,b);return;case"option":for(U in u)if(u.hasOwnProperty(U)&&(h=u[U],h!=null))switch(U){case"selected":a.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:ot(a,o,U,h,u,null)}return;case"dialog":Ie("beforetoggle",a),Ie("toggle",a),Ie("cancel",a),Ie("close",a);break;case"iframe":case"object":Ie("load",a);break;case"video":case"audio":for(h=0;h<Ou.length;h++)Ie(Ou[h],a);break;case"image":Ie("error",a),Ie("load",a);break;case"details":Ie("toggle",a);break;case"embed":case"source":case"link":Ie("error",a),Ie("load",a);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(ee in u)if(u.hasOwnProperty(ee)&&(h=u[ee],h!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ot(a,o,ee,h,u,null)}return;default:if(Bm(o)){for(oe in u)u.hasOwnProperty(oe)&&(h=u[oe],h!==void 0&&Ag(a,o,oe,h,u,void 0));return}}for(D in u)u.hasOwnProperty(D)&&(h=u[D],h!=null&&ot(a,o,D,h,u,null))}function lq(a,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 g=null,b=null,C=null,D=null,U=null,ee=null,oe=null;for(re in u){var fe=u[re];if(u.hasOwnProperty(re)&&fe!=null)switch(re){case"checked":break;case"value":break;case"defaultValue":U=fe;default:h.hasOwnProperty(re)||ot(a,o,re,null,h,fe)}}for(var te in h){var re=h[te];if(fe=u[te],h.hasOwnProperty(te)&&(re!=null||fe!=null))switch(te){case"type":b=re;break;case"name":g=re;break;case"checked":ee=re;break;case"defaultChecked":oe=re;break;case"value":C=re;break;case"defaultValue":D=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,o));break;default:re!==fe&&ot(a,o,te,re,h,fe)}}Im(a,C,D,U,ee,oe,b,g);return;case"select":re=C=D=te=null;for(b in u)if(U=u[b],u.hasOwnProperty(b)&&U!=null)switch(b){case"value":break;case"multiple":re=U;default:h.hasOwnProperty(b)||ot(a,o,b,null,h,U)}for(g in h)if(b=h[g],U=u[g],h.hasOwnProperty(g)&&(b!=null||U!=null))switch(g){case"value":te=b;break;case"defaultValue":D=b;break;case"multiple":C=b;default:b!==U&&ot(a,o,g,b,h,U)}o=D,u=C,h=re,te!=null?Wo(a,!!u,te,!1):!!h!=!!u&&(o!=null?Wo(a,!!u,o,!0):Wo(a,!!u,u?[]:"",!1));return;case"textarea":re=te=null;for(D in u)if(g=u[D],u.hasOwnProperty(D)&&g!=null&&!h.hasOwnProperty(D))switch(D){case"value":break;case"children":break;default:ot(a,o,D,null,h,g)}for(C in h)if(g=h[C],b=u[C],h.hasOwnProperty(C)&&(g!=null||b!=null))switch(C){case"value":te=g;break;case"defaultValue":re=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(r(91));break;default:g!==b&&ot(a,o,C,g,h,b)}y_(a,te,re);return;case"option":for(var we in u)if(te=u[we],u.hasOwnProperty(we)&&te!=null&&!h.hasOwnProperty(we))switch(we){case"selected":a.selected=!1;break;default:ot(a,o,we,null,h,te)}for(U in h)if(te=h[U],re=u[U],h.hasOwnProperty(U)&&te!==re&&(te!=null||re!=null))switch(U){case"selected":a.selected=te&&typeof te!="function"&&typeof te!="symbol";break;default:ot(a,o,U,te,h,re)}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 Te in u)te=u[Te],u.hasOwnProperty(Te)&&te!=null&&!h.hasOwnProperty(Te)&&ot(a,o,Te,null,h,te);for(ee in h)if(te=h[ee],re=u[ee],h.hasOwnProperty(ee)&&te!==re&&(te!=null||re!=null))switch(ee){case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(r(137,o));break;default:ot(a,o,ee,te,h,re)}return;default:if(Bm(o)){for(var lt in u)te=u[lt],u.hasOwnProperty(lt)&&te!==void 0&&!h.hasOwnProperty(lt)&&Ag(a,o,lt,void 0,h,te);for(oe in h)te=h[oe],re=u[oe],!h.hasOwnProperty(oe)||te===re||te===void 0&&re===void 0||Ag(a,o,oe,te,h,re);return}}for(var Z in u)te=u[Z],u.hasOwnProperty(Z)&&te!=null&&!h.hasOwnProperty(Z)&&ot(a,o,Z,null,h,te);for(fe in h)te=h[fe],re=u[fe],!h.hasOwnProperty(fe)||te===re||te==null&&re==null||ot(a,o,fe,te,h,re)}function ST(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function sq(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var g=u[h],b=g.transferSize,C=g.initiatorType,D=g.duration;if(b&&D&&ST(C)){for(C=0,D=g.responseEnd,h+=1;h<u.length;h++){var U=u[h],ee=U.startTime;if(ee>D)break;var oe=U.transferSize,fe=U.initiatorType;oe&&ST(fe)&&(U=U.responseEnd,C+=oe*(U<D?1:(D-ee)/(U-ee)))}if(--h,o+=8*(b+C)/(g.duration/1e3),a++,10<a)break}}if(0<a)return o/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var Tg=null,jg=null;function yd(a){return a.nodeType===9?a:a.ownerDocument}function OT(a){switch(a){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function _T(a,o){if(a===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&o==="foreignObject"?0:a}function Cg(a,o){return a==="textarea"||a==="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 Mg=null;function uq(){var a=window.event;return a&&a.type==="popstate"?a===Mg?!1:(Mg=a,!0):(Mg=null,!1)}var ET=typeof setTimeout=="function"?setTimeout:void 0,cq=typeof clearTimeout=="function"?clearTimeout:void 0,AT=typeof Promise=="function"?Promise:void 0,fq=typeof queueMicrotask=="function"?queueMicrotask:typeof AT<"u"?function(a){return AT.resolve(null).then(a).catch(dq)}:ET;function dq(a){setTimeout(function(){throw a})}function hi(a){return a==="head"}function TT(a,o){var u=o,h=0;do{var g=u.nextSibling;if(a.removeChild(u),g&&g.nodeType===8)if(u=g.data,u==="/$"||u==="/&"){if(h===0){a.removeChild(g),Al(o);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")Eu(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,Eu(u);for(var b=u.firstChild;b;){var C=b.nextSibling,D=b.nodeName;b[Hs]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=C}}else u==="body"&&Eu(a.ownerDocument.body);u=g}while(u);Al(o)}function jT(a,o){var u=a;a=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(a===0)break;a--}else u!=="$"&&u!=="$?"&&u!=="$~"&&u!=="$!"||a++;u=h}while(u)}function Ng(a){var o=a.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":Ng(u),$m(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function hq(a,o,u,h){for(;a.nodeType===1;){var g=u;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[Hs])switch(o){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(b=a.getAttribute("rel"),b==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(b!==g.rel||a.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||a.getAttribute("title")!==(g.title==null?null:g.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(g.src==null?null:g.src)||a.getAttribute("type")!==(g.type==null?null:g.type)||a.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var b=g.name==null?null:""+g.name;if(g.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=or(a.nextSibling),a===null)break}return null}function pq(a,o,u){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=or(a.nextSibling),a===null))return null;return a}function CT(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=or(a.nextSibling),a===null))return null;return a}function Rg(a){return a.data==="$?"||a.data==="$~"}function Pg(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function mq(a,o){var u=a.ownerDocument;if(a.data==="$~")a._reactRetry=o;else if(a.data!=="$?"||u.readyState!=="loading")o();else{var h=function(){o(),u.removeEventListener("DOMContentLoaded",h)};u.addEventListener("DOMContentLoaded",h),a._reactRetry=h}}function or(a){for(;a!=null;a=a.nextSibling){var o=a.nodeType;if(o===1||o===3)break;if(o===8){if(o=a.data,o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"||o==="F!"||o==="F")break;if(o==="/$"||o==="/&")return null}}return a}var Dg=null;function MT(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(o===0)return or(a.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}a=a.nextSibling}return null}function NT(a){a=a.previousSibling;for(var o=0;a;){if(a.nodeType===8){var u=a.data;if(u==="$"||u==="$!"||u==="$?"||u==="$~"||u==="&"){if(o===0)return a;o--}else u!=="/$"&&u!=="/&"||o++}a=a.previousSibling}return null}function RT(a,o,u){switch(o=yd(u),a){case"html":if(a=o.documentElement,!a)throw Error(r(452));return a;case"head":if(a=o.head,!a)throw Error(r(453));return a;case"body":if(a=o.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function Eu(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);$m(a)}var lr=new Map,PT=new Set;function bd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Aa=q.d;q.d={f:vq,r:gq,D:yq,C:bq,L:xq,m:wq,X:Oq,S:Sq,M:_q};function vq(){var a=Aa.f(),o=cd();return a||o}function gq(a){var o=Go(a);o!==null&&o.tag===5&&o.type==="form"?XE(o):Aa.r(a)}var Ol=typeof document>"u"?null:document;function DT(a,o,u){var h=Ol;if(h&&typeof o=="string"&&o){var g=Jn(o);g='link[rel="'+a+'"][href="'+g+'"]',typeof u=="string"&&(g+='[crossorigin="'+u+'"]'),PT.has(g)||(PT.add(g),a={rel:a,crossOrigin:u,href:o},h.querySelector(g)===null&&(o=h.createElement("link"),an(o,"link",a),Kt(o),h.head.appendChild(o)))}}function yq(a){Aa.D(a),DT("dns-prefetch",a,null)}function bq(a,o){Aa.C(a,o),DT("preconnect",a,o)}function xq(a,o,u){Aa.L(a,o,u);var h=Ol;if(h&&a&&o){var g='link[rel="preload"][as="'+Jn(o)+'"]';o==="image"&&u&&u.imageSrcSet?(g+='[imagesrcset="'+Jn(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(g+='[imagesizes="'+Jn(u.imageSizes)+'"]')):g+='[href="'+Jn(a)+'"]';var b=g;switch(o){case"style":b=_l(a);break;case"script":b=El(a)}lr.has(b)||(a=p({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:a,as:o},u),lr.set(b,a),h.querySelector(g)!==null||o==="style"&&h.querySelector(Au(b))||o==="script"&&h.querySelector(Tu(b))||(o=h.createElement("link"),an(o,"link",a),Kt(o),h.head.appendChild(o)))}}function wq(a,o){Aa.m(a,o);var u=Ol;if(u&&a){var h=o&&typeof o.as=="string"?o.as:"script",g='link[rel="modulepreload"][as="'+Jn(h)+'"][href="'+Jn(a)+'"]',b=g;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=El(a)}if(!lr.has(b)&&(a=p({rel:"modulepreload",href:a},o),lr.set(b,a),u.querySelector(g)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(Tu(b)))return}h=u.createElement("link"),an(h,"link",a),Kt(h),u.head.appendChild(h)}}}function Sq(a,o,u){Aa.S(a,o,u);var h=Ol;if(h&&a){var g=Vo(h).hoistableStyles,b=_l(a);o=o||"default";var C=g.get(b);if(!C){var D={loading:0,preload:null};if(C=h.querySelector(Au(b)))D.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":o},u),(u=lr.get(b))&&kg(a,u);var U=C=h.createElement("link");Kt(U),an(U,"link",a),U._p=new Promise(function(ee,oe){U.onload=ee,U.onerror=oe}),U.addEventListener("load",function(){D.loading|=1}),U.addEventListener("error",function(){D.loading|=2}),D.loading|=4,xd(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:D},g.set(b,C)}}}function Oq(a,o){Aa.X(a,o);var u=Ol;if(u&&a){var h=Vo(u).hoistableScripts,g=El(a),b=h.get(g);b||(b=u.querySelector(Tu(g)),b||(a=p({src:a,async:!0},o),(o=lr.get(g))&&$g(a,o),b=u.createElement("script"),Kt(b),an(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(g,b))}}function _q(a,o){Aa.M(a,o);var u=Ol;if(u&&a){var h=Vo(u).hoistableScripts,g=El(a),b=h.get(g);b||(b=u.querySelector(Tu(g)),b||(a=p({src:a,async:!0,type:"module"},o),(o=lr.get(g))&&$g(a,o),b=u.createElement("script"),Kt(b),an(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(g,b))}}function kT(a,o,u,h){var g=(g=ge.current)?bd(g):null;if(!g)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=_l(u.href),u=Vo(g).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"){a=_l(u.href);var b=Vo(g).hoistableStyles,C=b.get(a);if(C||(g=g.ownerDocument||g,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,C),(b=g.querySelector(Au(a)))&&!b._p&&(C.instance=b,C.state.loading=5),lr.has(a)||(u={rel:"preload",as:"style",href:u.href,crossOrigin:u.crossOrigin,integrity:u.integrity,media:u.media,hrefLang:u.hrefLang,referrerPolicy:u.referrerPolicy},lr.set(a,u),b||Eq(g,a,u,C.state))),o&&h===null)throw Error(r(528,""));return C}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=El(u),u=Vo(g).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,a))}}function _l(a){return'href="'+Jn(a)+'"'}function Au(a){return'link[rel="stylesheet"]['+a+"]"}function $T(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function Eq(a,o,u,h){a.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=a.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),Kt(o),a.head.appendChild(o))}function El(a){return'[src="'+Jn(a)+'"]'}function Tu(a){return"script[async]"+a}function LT(a,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=a.querySelector('style[data-href~="'+Jn(u.href)+'"]');if(h)return o.instance=h,Kt(h),h;var g=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Kt(h),an(h,"style",g),xd(h,u.precedence,a),o.instance=h;case"stylesheet":g=_l(u.href);var b=a.querySelector(Au(g));if(b)return o.state.loading|=4,o.instance=b,Kt(b),b;h=$T(u),(g=lr.get(g))&&kg(h,g),b=(a.ownerDocument||a).createElement("link"),Kt(b);var C=b;return C._p=new Promise(function(D,U){C.onload=D,C.onerror=U}),an(b,"link",h),o.state.loading|=4,xd(b,u.precedence,a),o.instance=b;case"script":return b=El(u.src),(g=a.querySelector(Tu(b)))?(o.instance=g,Kt(g),g):(h=u,(g=lr.get(b))&&(h=p({},u),$g(h,g)),a=a.ownerDocument||a,g=a.createElement("script"),Kt(g),an(g,"link",h),a.head.appendChild(g),o.instance=g);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,xd(h,u.precedence,a));return o.instance}function xd(a,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=h.length?h[h.length-1]:null,b=g,C=0;C<h.length;C++){var D=h[C];if(D.dataset.precedence===o)b=D;else if(b!==g)break}b?b.parentNode.insertBefore(a,b.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(a,o.firstChild))}function kg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function $g(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var wd=null;function IT(a,o,u){if(wd===null){var h=new Map,g=wd=new Map;g.set(u,h)}else g=wd,h=g.get(u),h||(h=new Map,g.set(u,h));if(h.has(a))return h;for(h.set(a,null),u=u.getElementsByTagName(a),g=0;g<u.length;g++){var b=u[g];if(!(b[Hs]||b[en]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var C=b.getAttribute(o)||"";C=a+C;var D=h.get(C);D?D.push(b):h.set(C,[b])}}return h}function zT(a,o,u){a=a.ownerDocument||a,a.head.insertBefore(u,o==="title"?a.querySelector("head > title"):null)}function Aq(a,o,u){if(u===1||o.itemProp!=null)return!1;switch(a){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 a=o.disabled,typeof o.precedence=="string"&&a==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 BT(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function Tq(a,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 g=_l(h.href),b=o.querySelector(Au(g));if(b){o=b._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=Sd.bind(a),o.then(a,a)),u.state.loading|=4,u.instance=b,Kt(b);return}b=o.ownerDocument||o,h=$T(h),(g=lr.get(g))&&kg(h,g),b=b.createElement("link"),Kt(b);var C=b;C._p=new Promise(function(D,U){C.onload=D,C.onerror=U}),an(b,"link",h),u.instance=b}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(u,o),(o=u.state.preload)&&(u.state.loading&3)===0&&(a.count++,u=Sd.bind(a),o.addEventListener("load",u),o.addEventListener("error",u))}}var Lg=0;function jq(a,o){return a.stylesheets&&a.count===0&&_d(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var h=setTimeout(function(){if(a.stylesheets&&_d(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+o);0<a.imgBytes&&Lg===0&&(Lg=62500*sq());var g=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&_d(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>Lg?50:800)+o);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(g)}}:null}function Sd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_d(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Od=null;function _d(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Od=new Map,o.forEach(Cq,a),Od=null,Sd.call(a))}function Cq(a,o){if(!(o.state.loading&4)){var u=Od.get(a);if(u)var h=u.get(null);else{u=new Map,Od.set(a,u);for(var g=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<g.length;b++){var C=g[b];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(u.set(C.dataset.precedence,C),h=C)}h&&u.set(null,h)}g=o.instance,C=g.getAttribute("data-precedence"),b=u.get(C)||h,b===h&&u.set(null,g),u.set(C,g),this.count++,h=Sd.bind(this),g.addEventListener("load",h),g.addEventListener("error",h),b?b.parentNode.insertBefore(g,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(g,a.firstChild)),o.state.loading|=4}}var ju={$$typeof:A,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function Mq(a,o,u,h,g,b,C,D,U){this.tag=1,this.containerInfo=a,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Wa(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Wa(0),this.hiddenUpdates=Wa(null),this.identifierPrefix=h,this.onUncaughtError=g,this.onCaughtError=b,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function qT(a,o,u,h,g,b,C,D,U,ee,oe,fe){return a=new Mq(a,o,u,C,U,ee,oe,fe,D),o=1,b===!0&&(o|=24),b=In(3,null,null,o),a.current=b,b.stateNode=a,o=vv(),o.refCount++,a.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:u,cache:o},xv(b),a}function UT(a){return a?(a=nl,a):nl}function HT(a,o,u,h,g,b){g=UT(g),h.context===null?h.context=g:h.pendingContext=g,h=ni(o),h.payload={element:u},b=b===void 0?null:b,b!==null&&(h.callback=b),u=ri(a,h,o),u!==null&&(Nn(u,a,o),ou(u,a,o))}function FT(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<o?u:o}}function Ig(a,o){FT(a,o),(a=a.alternate)&&FT(a,o)}function GT(a){if(a.tag===13||a.tag===31){var o=Yi(a,67108864);o!==null&&Nn(o,a,67108864),Ig(a,67108864)}}function VT(a){if(a.tag===13||a.tag===31){var o=Hn();o=Uo(o);var u=Yi(a,o);u!==null&&Nn(u,a,o),Ig(a,o)}}var Ed=!0;function Nq(a,o,u,h){var g=k.T;k.T=null;var b=q.p;try{q.p=2,zg(a,o,u,h)}finally{q.p=b,k.T=g}}function Rq(a,o,u,h){var g=k.T;k.T=null;var b=q.p;try{q.p=8,zg(a,o,u,h)}finally{q.p=b,k.T=g}}function zg(a,o,u,h){if(Ed){var g=Bg(h);if(g===null)Eg(a,o,h,Ad,u),WT(a,h);else if(Dq(g,a,o,u,h))h.stopPropagation();else if(WT(a,h),o&4&&-1<Pq.indexOf(a)){for(;g!==null;){var b=Go(g);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var C=Hr(b.pendingLanes);if(C!==0){var D=b;for(D.pendingLanes|=2,D.entangledLanes|=2;C;){var U=1<<31-cn(C);D.entanglements[1]|=U,C&=~U}Yr(b),(Qe&6)===0&&(sd=Yt()+500,Su(0))}}break;case 31:case 13:D=Yi(b,2),D!==null&&Nn(D,b,2),cd(),Ig(b,2)}if(b=Bg(h),b===null&&Eg(a,o,h,Ad,u),b===g)break;g=b}g!==null&&h.stopPropagation()}else Eg(a,o,h,null,u)}}function Bg(a){return a=Um(a),qg(a)}var Ad=null;function qg(a){if(Ad=null,a=Fo(a),a!==null){var o=l(a);if(o===null)a=null;else{var u=o.tag;if(u===13){if(a=s(o),a!==null)return a;a=null}else if(u===31){if(a=c(o),a!==null)return a;a=null}else if(u===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;a=null}else o!==a&&(a=null)}}return Ad=a,null}function YT(a){switch(a){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zo()){case Ii:return 2;case yf:return 8;case zi:case qs:return 32;case sa:return 268435456;default:return 32}default:return 32}}var Ug=!1,pi=null,mi=null,vi=null,Cu=new Map,Mu=new Map,gi=[],Pq="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 WT(a,o){switch(a){case"focusin":case"focusout":pi=null;break;case"dragenter":case"dragleave":mi=null;break;case"mouseover":case"mouseout":vi=null;break;case"pointerover":case"pointerout":Cu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Mu.delete(o.pointerId)}}function Nu(a,o,u,h,g,b){return a===null||a.nativeEvent!==b?(a={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:b,targetContainers:[g]},o!==null&&(o=Go(o),o!==null&>(o)),a):(a.eventSystemFlags|=h,o=a.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),a)}function Dq(a,o,u,h,g){switch(o){case"focusin":return pi=Nu(pi,a,o,u,h,g),!0;case"dragenter":return mi=Nu(mi,a,o,u,h,g),!0;case"mouseover":return vi=Nu(vi,a,o,u,h,g),!0;case"pointerover":var b=g.pointerId;return Cu.set(b,Nu(Cu.get(b)||null,a,o,u,h,g)),!0;case"gotpointercapture":return b=g.pointerId,Mu.set(b,Nu(Mu.get(b)||null,a,o,u,h,g)),!0}return!1}function KT(a){var o=Fo(a.target);if(o!==null){var u=l(o);if(u!==null){if(o=u.tag,o===13){if(o=s(u),o!==null){a.blockedOn=o,u_(a.priority,function(){VT(u)});return}}else if(o===31){if(o=c(u),o!==null){a.blockedOn=o,u_(a.priority,function(){VT(u)});return}}else if(o===3&&u.stateNode.current.memoizedState.isDehydrated){a.blockedOn=u.tag===3?u.stateNode.containerInfo:null;return}}}a.blockedOn=null}function Td(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var u=Bg(a.nativeEvent);if(u===null){u=a.nativeEvent;var h=new u.constructor(u.type,u);qm=h,u.target.dispatchEvent(h),qm=null}else return o=Go(u),o!==null&>(o),a.blockedOn=u,!1;o.shift()}return!0}function XT(a,o,u){Td(a)&&u.delete(o)}function kq(){Ug=!1,pi!==null&&Td(pi)&&(pi=null),mi!==null&&Td(mi)&&(mi=null),vi!==null&&Td(vi)&&(vi=null),Cu.forEach(XT),Mu.forEach(XT)}function jd(a,o){a.blockedOn===o&&(a.blockedOn=null,Ug||(Ug=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,kq)))}var Cd=null;function QT(a){Cd!==a&&(Cd=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Cd===a&&(Cd=null);for(var o=0;o<a.length;o+=3){var u=a[o],h=a[o+1],g=a[o+2];if(typeof h!="function"){if(qg(h||u)===null)continue;break}var b=Go(u);b!==null&&(a.splice(o,3),o-=3,Bv(b,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function Al(a){function o(U){return jd(U,a)}pi!==null&&jd(pi,a),mi!==null&&jd(mi,a),vi!==null&&jd(vi,a),Cu.forEach(o),Mu.forEach(o);for(var u=0;u<gi.length;u++){var h=gi[u];h.blockedOn===a&&(h.blockedOn=null)}for(;0<gi.length&&(u=gi[0],u.blockedOn===null);)KT(u),u.blockedOn===null&&gi.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var g=u[h],b=u[h+1],C=g[En]||null;if(typeof b=="function")C||QT(u);else if(C){var D=null;if(b&&b.hasAttribute("formAction")){if(g=b,C=b[En]||null)D=C.formAction;else if(qg(g)!==null)continue}else D=C.action;typeof D=="function"?u[h+1]=D:(u.splice(h,3),h-=3),QT(u)}}}function ZT(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(C){return g=C})},focusReset:"manual",scroll:"manual"})}function o(){g!==null&&(g(),g=null),h||setTimeout(u,20)}function u(){if(!h&&!navigation.transition){var b=navigation.currentEntry;b&&b.url!=null&&navigation.navigate(b.url,{state:b.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,g=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",o),navigation.addEventListener("navigateerror",o),setTimeout(u,100),function(){h=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",o),navigation.removeEventListener("navigateerror",o),g!==null&&(g(),g=null)}}}function Hg(a){this._internalRoot=a}Md.prototype.render=Hg.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=Hn();HT(u,h,a,o,null,null)},Md.prototype.unmount=Hg.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;HT(a.current,2,null,a,null,null),cd(),o[Ho]=null}};function Md(a){this._internalRoot=a}Md.prototype.unstable_scheduleHydration=function(a){if(a){var o=Dm();a={blockedOn:null,target:a,priority:o};for(var u=0;u<gi.length&&o!==0&&o<gi[u].priority;u++);gi.splice(u,0,a),u===0&&KT(a)}};var JT=t.version;if(JT!=="19.2.0")throw Error(r(527,JT,"19.2.0"));q.findDOMNode=function(a){var o=a._reactInternals;if(o===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=d(o),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var $q={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Nd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Nd.isDisabled&&Nd.supportsFiber)try{Bi=Nd.inject($q),yn=Nd}catch{}}return Pu.createRoot=function(a,o){if(!i(a))throw Error(r(299));var u=!1,h="",g=oA,b=lA,C=sA;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(g=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError)),o=qT(a,1,!1,null,null,u,h,null,g,b,C,ZT),a[Ho]=o.current,_g(a),new Hg(o)},Pu.hydrateRoot=function(a,o,u){if(!i(a))throw Error(r(299));var h=!1,g="",b=oA,C=lA,D=sA,U=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(g=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(C=u.onCaughtError),u.onRecoverableError!==void 0&&(D=u.onRecoverableError),u.formState!==void 0&&(U=u.formState)),o=qT(a,1,!0,o,u??null,h,g,U,b,C,D,ZT),o.context=UT(null),u=o.current,h=Hn(),h=Uo(h),g=ni(h),g.callback=null,ri(u,g,h),u=h,o.current.lanes=u,St(o,u),Yr(o),a[Ho]=o.current,_g(a),new Md(o)},Pu.version="19.2.0",Pu}var uj;function Vq(){if(uj)return Vg.exports;uj=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(),Vg.exports=Gq(),Vg.exports}var Yq=Vq();/**
|
|
50
|
-
* react-router v7.9.5
|
|
51
|
-
*
|
|
52
|
-
* Copyright (c) Remix Software Inc.
|
|
53
|
-
*
|
|
54
|
-
* This source code is licensed under the MIT license found in the
|
|
55
|
-
* LICENSE.md file in the root directory of this source tree.
|
|
56
|
-
*
|
|
57
|
-
* @license MIT
|
|
58
|
-
*/var cj="popstate";function Wq(e={}){function t(r,i){let{pathname:l,search:s,hash:c}=r.location;return mw("",{pathname:l,search:s,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:oc(i)}return Xq(t,n,null,e)}function xt(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 Kq(){return Math.random().toString(36).substring(2,10)}function fj(e,t){return{usr:e.state,key:e.key,idx:t}}function mw(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Ss(t):t,state:n,key:t&&t.key||r||Kq()}}function oc({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 Ss(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 Xq(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:l=!1}=r,s=i.history,c="POP",f=null,d=m();d==null&&(d=0,s.replaceState({...s.state,idx:d},""));function m(){return(s.state||{idx:null}).idx}function p(){c="POP";let S=m(),E=S==null?null:S-d;d=S,f&&f({action:c,location:w.location,delta:E})}function y(S,E){c="PUSH";let T=mw(w.location,S,E);d=m()+1;let A=fj(T,d),M=w.createHref(T);try{s.pushState(A,"",M)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;i.location.assign(M)}l&&f&&f({action:c,location:w.location,delta:1})}function x(S,E){c="REPLACE";let T=mw(w.location,S,E);d=m();let A=fj(T,d),M=w.createHref(T);s.replaceState(A,"",M),l&&f&&f({action:c,location:w.location,delta:0})}function O(S){return Qq(S)}let w={get action(){return c},get location(){return e(i,s)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(cj,p),f=S,()=>{i.removeEventListener(cj,p),f=null}},createHref(S){return t(i,S)},createURL:O,encodeLocation(S){let E=O(S);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:y,replace:x,go(S){return s.go(S)}};return w}function Qq(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),xt(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:oc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function hk(e,t,n="/"){return Zq(e,t,n,!1)}function Zq(e,t,n,r){let i=typeof t=="string"?Ss(t):t,l=$a(i.pathname||"/",n);if(l==null)return null;let s=pk(e);Jq(s);let c=null;for(let f=0;c==null&&f<s.length;++f){let d=c8(l);c=s8(s[f],d,r)}return c}function pk(e,t=[],n=[],r="",i=!1){let l=(s,c,f=i,d)=>{let m={relativePath:d===void 0?s.path||"":d,caseSensitive:s.caseSensitive===!0,childrenIndex:c,route:s};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&f)return;xt(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 p=Ra([r,m.relativePath]),y=n.concat(m);s.children&&s.children.length>0&&(xt(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),pk(s.children,t,y,p,f)),!(s.path==null&&!s.index)&&t.push({path:p,score:o8(p,s.index),routesMeta:y})};return e.forEach((s,c)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))l(s,c);else for(let d of mk(s.path))l(s,c,!0,d)}),t}function mk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),l=n.replace(/\?$/,"");if(r.length===0)return i?[l,""]:[l];let s=mk(r.join("/")),c=[];return c.push(...s.map(f=>f===""?l:[l,f].join("/"))),i&&c.push(...s),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function Jq(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:l8(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var e8=/^:[\w-]+$/,t8=3,n8=2,r8=1,a8=10,i8=-2,dj=e=>e==="*";function o8(e,t){let n=e.split("/"),r=n.length;return n.some(dj)&&(r+=i8),t&&(r+=n8),n.filter(i=>!dj(i)).reduce((i,l)=>i+(e8.test(l)?t8:l===""?r8:a8),r)}function l8(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function s8(e,t,n=!1){let{routesMeta:r}=e,i={},l="/",s=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,m=l==="/"?t:t.slice(l.length)||"/",p=uh({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},m),y=f.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=uh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},m)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Ra([l,p.pathname]),pathnameBase:p8(Ra([l,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(l=Ra([l,p.pathnameBase]))}return s}function uh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=u8(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let l=i[0],s=l.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((d,{paramName:m,isOptional:p},y)=>{if(m==="*"){let O=c[y]||"";s=l.slice(0,l.length-O.length).replace(/(.)\/+$/,"$1")}const x=c[y];return p&&!x?d[m]=void 0:d[m]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:l,pathnameBase:s,pattern:e}}function u8(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,c,f)=>(r.push({paramName:c,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function c8(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 $a(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 f8(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Ss(e):e;return{pathname:n?n.startsWith("/")?n:d8(n,t):t,search:m8(r),hash:v8(i)}}function d8(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?n.length>1&&n.pop():i!=="."&&n.push(i)}),n.length>1?n.join("/"):"/"}function Xg(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 h8(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function lS(e){let t=h8(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function sS(e,t,n,r=!1){let i;typeof e=="string"?i=Ss(e):(i={...e},xt(!i.pathname||!i.pathname.includes("?"),Xg("?","pathname","search",i)),xt(!i.pathname||!i.pathname.includes("#"),Xg("#","pathname","hash",i)),xt(!i.search||!i.search.includes("#"),Xg("#","search","hash",i)));let l=e===""||i.pathname==="",s=l?"/":i.pathname,c;if(s==null)c=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let y=s.split("/");for(;y[0]==="..";)y.shift(),p-=1;i.pathname=y.join("/")}c=p>=0?t[p]:"/"}let f=f8(i,c),d=s&&s!=="/"&&s.endsWith("/"),m=(l||s===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||m)&&(f.pathname+="/"),f}var Ra=e=>e.join("/").replace(/\/\/+/g,"/"),p8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),m8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,v8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function g8(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var vk=["POST","PUT","PATCH","DELETE"];new Set(vk);var y8=["GET",...vk];new Set(y8);var Os=_.createContext(null);Os.displayName="DataRouter";var _p=_.createContext(null);_p.displayName="DataRouterState";_.createContext(!1);var gk=_.createContext({isTransitioning:!1});gk.displayName="ViewTransition";var b8=_.createContext(new Map);b8.displayName="Fetchers";var x8=_.createContext(null);x8.displayName="Await";var kr=_.createContext(null);kr.displayName="Navigation";var Wc=_.createContext(null);Wc.displayName="Location";var $r=_.createContext({outlet:null,matches:[],isDataRoute:!1});$r.displayName="Route";var uS=_.createContext(null);uS.displayName="RouteError";function w8(e,{relative:t}={}){xt(_s(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=_.useContext(kr),{hash:i,pathname:l,search:s}=Xc(e,{relative:t}),c=l;return n!=="/"&&(c=l==="/"?n:Ra([n,l])),r.createHref({pathname:c,search:s,hash:i})}function _s(){return _.useContext(Wc)!=null}function ia(){return xt(_s(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Wc).location}var yk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function bk(e){_.useContext(kr).static||_.useLayoutEffect(e)}function Kc(){let{isDataRoute:e}=_.useContext($r);return e?k8():S8()}function S8(){xt(_s(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(Os),{basename:t,navigator:n}=_.useContext(kr),{matches:r}=_.useContext($r),{pathname:i}=ia(),l=JSON.stringify(lS(r)),s=_.useRef(!1);return bk(()=>{s.current=!0}),_.useCallback((f,d={})=>{if(Nr(s.current,yk),!s.current)return;if(typeof f=="number"){n.go(f);return}let m=sS(f,JSON.parse(l),i,d.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ra([t,m.pathname])),(d.replace?n.replace:n.push)(m,d.state,d)},[t,n,l,i,e])}_.createContext(null);function O8(){let{matches:e}=_.useContext($r),t=e[e.length-1];return t?t.params:{}}function Xc(e,{relative:t}={}){let{matches:n}=_.useContext($r),{pathname:r}=ia(),i=JSON.stringify(lS(n));return _.useMemo(()=>sS(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function _8(e,t){return xk(e,t)}function xk(e,t,n,r,i){var T;xt(_s(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=_.useContext(kr),{matches:s}=_.useContext($r),c=s[s.length-1],f=c?c.params:{},d=c?c.pathname:"/",m=c?c.pathnameBase:"/",p=c&&c.route;{let A=p&&p.path||"";wk(d,!p||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (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.
|
|
59
|
-
|
|
60
|
-
Please change the parent <Route path="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let y=ia(),x;if(t){let A=typeof t=="string"?Ss(t):t;xt(m==="/"||((T=A.pathname)==null?void 0:T.startsWith(m)),`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 "${m}" but pathname "${A.pathname}" was given in the \`location\` prop.`),x=A}else x=y;let O=x.pathname||"/",w=O;if(m!=="/"){let A=m.replace(/^\//,"").split("/");w="/"+O.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=hk(e,{pathname:w});Nr(p||S!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Nr(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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 E=C8(S&&S.map(A=>Object.assign({},A,{params:Object.assign({},f,A.params),pathname:Ra([m,l.encodeLocation?l.encodeLocation(A.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?m:Ra([m,l.encodeLocation?l.encodeLocation(A.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:A.pathnameBase])})),s,n,r,i);return t&&E?_.createElement(Wc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},E):E}function E8(){let e=D8(),t=g8(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)",i={padding:"0.5rem",backgroundColor:r},l={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:l},"ErrorBoundary")," or"," ",_.createElement("code",{style:l},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:i},n):null,s)}var A8=_.createElement(E8,null),T8=class extends _.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.unstable_onError?this.props.unstable_onError(e,t):console.error("React Router caught the following error during render",e)}render(){return this.state.error!==void 0?_.createElement($r.Provider,{value:this.props.routeContext},_.createElement(uS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function j8({routeContext:e,match:t,children:n}){let r=_.useContext(Os);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement($r.Provider,{value:e},n)}function C8(e,t=[],n=null,r=null,i=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let l=e,s=n==null?void 0:n.errors;if(s!=null){let d=l.findIndex(m=>m.route.id&&(s==null?void 0:s[m.route.id])!==void 0);xt(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),l=l.slice(0,Math.min(l.length,d+1))}let c=!1,f=-1;if(n)for(let d=0;d<l.length;d++){let m=l[d];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=d),m.route.id){let{loaderData:p,errors:y}=n,x=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!y||y[m.route.id]===void 0);if(m.route.lazy||x){c=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((d,m,p)=>{let y,x=!1,O=null,w=null;n&&(y=s&&m.route.id?s[m.route.id]:void 0,O=m.route.errorElement||A8,c&&(f<0&&p===0?(wk("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,w=null):f===p&&(x=!0,w=m.route.hydrateFallbackElement||null)));let S=t.concat(l.slice(0,p+1)),E=()=>{let T;return y?T=O:x?T=w:m.route.Component?T=_.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=d,_.createElement(j8,{match:m,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:T})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?_.createElement(T8,{location:n.location,revalidation:n.revalidation,component:O,error:y,children:E(),routeContext:{outlet:null,matches:S,isDataRoute:!0},unstable_onError:r}):E()},null)}function cS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function M8(e){let t=_.useContext(Os);return xt(t,cS(e)),t}function N8(e){let t=_.useContext(_p);return xt(t,cS(e)),t}function R8(e){let t=_.useContext($r);return xt(t,cS(e)),t}function fS(e){let t=R8(e),n=t.matches[t.matches.length-1];return xt(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function P8(){return fS("useRouteId")}function D8(){var r;let e=_.useContext(uS),t=N8("useRouteError"),n=fS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function k8(){let{router:e}=M8("useNavigate"),t=fS("useNavigate"),n=_.useRef(!1);return bk(()=>{n.current=!0}),_.useCallback(async(i,l={})=>{Nr(n.current,yk),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var hj={};function wk(e,t,n){!t&&!hj[e]&&(hj[e]=!0,Nr(!1,n))}_.memo($8);function $8({routes:e,future:t,state:n,unstable_onError:r}){return xk(e,void 0,n,r,t)}function L8({to:e,replace:t,state:n,relative:r}){xt(_s(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=_.useContext(kr);Nr(!i,"<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:l}=_.useContext($r),{pathname:s}=ia(),c=Kc(),f=sS(e,lS(l),s,r==="path"),d=JSON.stringify(f);return _.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function Ll(e){xt(!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 I8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1}){xt(!_s(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),c=_.useMemo(()=>({basename:s,navigator:i,static:l,future:{}}),[s,i,l]);typeof n=="string"&&(n=Ss(n));let{pathname:f="/",search:d="",hash:m="",state:p=null,key:y="default"}=n,x=_.useMemo(()=>{let O=$a(f,s);return O==null?null:{location:{pathname:O,search:d,hash:m,state:p,key:y},navigationType:r}},[s,f,d,m,p,y,r]);return Nr(x!=null,`<Router basename="${s}"> is not able to match the URL "${f}${d}${m}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:_.createElement(kr.Provider,{value:c},_.createElement(Wc.Provider,{children:t,value:x}))}function z8({children:e,location:t}){return _8(vw(e),t)}function vw(e,t=[]){let n=[];return _.Children.forEach(e,(r,i)=>{if(!_.isValidElement(r))return;let l=[...t,i];if(r.type===_.Fragment){n.push.apply(n,vw(r.props.children,l));return}xt(r.type===Ll,`[${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>`),xt(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||l.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=vw(r.props.children,l)),n.push(s)}),n}var rh="get",ah="application/x-www-form-urlencoded";function Ep(e){return e!=null&&typeof e.tagName=="string"}function B8(e){return Ep(e)&&e.tagName.toLowerCase()==="button"}function q8(e){return Ep(e)&&e.tagName.toLowerCase()==="form"}function U8(e){return Ep(e)&&e.tagName.toLowerCase()==="input"}function H8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function F8(e,t){return e.button===0&&(!t||t==="_self")&&!H8(e)}var Pd=null;function G8(){if(Pd===null)try{new FormData(document.createElement("form"),0),Pd=!1}catch{Pd=!0}return Pd}var V8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Qg(e){return e!=null&&!V8.has(e)?(Nr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ah}"`),null):e}function Y8(e,t){let n,r,i,l,s;if(q8(e)){let c=e.getAttribute("action");r=c?$a(c,t):null,n=e.getAttribute("method")||rh,i=Qg(e.getAttribute("enctype"))||ah,l=new FormData(e)}else if(B8(e)||U8(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?$a(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||rh,i=Qg(e.getAttribute("formenctype"))||Qg(c.getAttribute("enctype"))||ah,l=new FormData(c,e),!G8()){let{name:d,type:m,value:p}=e;if(m==="image"){let y=d?`${d}.`:"";l.append(`${y}x`,"0"),l.append(`${y}y`,"0")}else d&&l.append(d,p)}}else{if(Ep(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=rh,r=null,i=ah,s=e}return l&&i==="text/plain"&&(s=l,l=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:l,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function dS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function W8(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&$a(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function K8(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 X8(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 Q8(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let s=await K8(l,n);return s.links?s.links():[]}return[]}));return t6(r.flat(1).filter(X8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function pj(e,t,n,r,i,l){let s=(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 l==="assets"?t.filter((f,d)=>s(f,d)||c(f,d)):l==="data"?t.filter((f,d)=>{var p;let m=r.routes[f.route.id];if(!m||!m.hasLoader)return!1;if(s(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let y=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((p=n[0])==null?void 0:p.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof y=="boolean")return y}return!0}):[]}function Z8(e,t,{includeHydrateFallback:n}={}){return J8(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let l=[i.module];return i.clientActionModule&&(l=l.concat(i.clientActionModule)),i.clientLoaderModule&&(l=l.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(l=l.concat(i.hydrateFallbackModule)),i.imports&&(l=l.concat(i.imports)),l}).flat(1))}function J8(e){return[...new Set(e)]}function e6(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function t6(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(e6(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function Sk(){let e=_.useContext(Os);return dS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function n6(){let e=_.useContext(_p);return dS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var hS=_.createContext(void 0);hS.displayName="FrameworkContext";function Ok(){let e=_.useContext(hS);return dS(e,"You must render this element inside a <HydratedRouter> element"),e}function r6(e,t){let n=_.useContext(hS),[r,i]=_.useState(!1),[l,s]=_.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:m,onTouchStart:p}=t,y=_.useRef(null);_.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let w=E=>{E.forEach(T=>{s(T.isIntersecting)})},S=new IntersectionObserver(w,{threshold:.5});return y.current&&S.observe(y.current),()=>{S.disconnect()}}},[e]),_.useEffect(()=>{if(r){let w=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(w)}}},[r]);let x=()=>{i(!0)},O=()=>{i(!1),s(!1)};return n?e!=="intent"?[l,y,{}]:[l,y,{onFocus:Du(c,x),onBlur:Du(f,O),onMouseEnter:Du(d,x),onMouseLeave:Du(m,O),onTouchStart:Du(p,x)}]:[!1,y,{}]}function Du(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function a6({page:e,...t}){let{router:n}=Sk(),r=_.useMemo(()=>hk(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?_.createElement(o6,{page:e,matches:r,...t}):null}function i6(e){let{manifest:t,routeModules:n}=Ok(),[r,i]=_.useState([]);return _.useEffect(()=>{let l=!1;return Q8(e,t,n).then(s=>{l||i(s)}),()=>{l=!0}},[e,t,n]),r}function o6({page:e,matches:t,...n}){let r=ia(),{manifest:i,routeModules:l}=Ok(),{basename:s}=Sk(),{loaderData:c,matches:f}=n6(),d=_.useMemo(()=>pj(e,t,f,i,r,"data"),[e,t,f,i,r]),m=_.useMemo(()=>pj(e,t,f,i,r,"assets"),[e,t,f,i,r]),p=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let O=new Set,w=!1;if(t.forEach(E=>{var A;let T=i.routes[E.route.id];!T||!T.hasLoader||(!d.some(M=>M.route.id===E.route.id)&&E.route.id in c&&((A=l[E.route.id])!=null&&A.shouldRevalidate)||T.hasClientLoader?w=!0:O.add(E.route.id))}),O.size===0)return[];let S=W8(e,s,"data");return w&&O.size>0&&S.searchParams.set("_routes",t.filter(E=>O.has(E.route.id)).map(E=>E.route.id).join(",")),[S.pathname+S.search]},[s,c,r,i,d,t,e,l]),y=_.useMemo(()=>Z8(m,i),[m,i]),x=i6(m);return _.createElement(_.Fragment,null,p.map(O=>_.createElement("link",{key:O,rel:"prefetch",as:"fetch",href:O,...n})),y.map(O=>_.createElement("link",{key:O,rel:"modulepreload",href:O,...n})),x.map(({key:O,link:w})=>_.createElement("link",{key:O,nonce:n.nonce,...w})))}function l6(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var _k=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{_k&&(window.__reactRouterVersion="7.9.5")}catch{}function s6({basename:e,children:t,window:n}){let r=_.useRef();r.current==null&&(r.current=Wq({window:n,v5Compat:!0}));let i=r.current,[l,s]=_.useState({action:i.action,location:i.location}),c=_.useCallback(f=>{_.startTransition(()=>s(f))},[s]);return _.useLayoutEffect(()=>i.listen(c),[i,c]),_.createElement(I8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i})}var Ek=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ch=_.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:l,replace:s,state:c,target:f,to:d,preventScrollReset:m,viewTransition:p,...y},x){let{basename:O}=_.useContext(kr),w=typeof d=="string"&&Ek.test(d),S,E=!1;if(typeof d=="string"&&w&&(S=d,_k))try{let L=new URL(window.location.href),Y=d.startsWith("//")?new URL(L.protocol+d):new URL(d),z=$a(Y.pathname,O);Y.origin===L.origin&&z!=null?d=z+Y.search+Y.hash:E=!0}catch{Nr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let T=w8(d,{relative:i}),[A,M,j]=r6(r,y),N=d6(d,{replace:s,state:c,target:f,preventScrollReset:m,relative:i,viewTransition:p});function R(L){t&&t(L),L.defaultPrevented||N(L)}let P=_.createElement("a",{...y,...j,href:S||T,onClick:E||l?t:R,ref:l6(x,M),target:f,"data-discover":!w&&n==="render"?"true":void 0});return A&&!w?_.createElement(_.Fragment,null,P,_.createElement(a6,{page:T})):P});ch.displayName="Link";var u6=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:l,to:s,viewTransition:c,children:f,...d},m){let p=Xc(s,{relative:d.relative}),y=ia(),x=_.useContext(_p),{navigator:O,basename:w}=_.useContext(kr),S=x!=null&&g6(p)&&c===!0,E=O.encodeLocation?O.encodeLocation(p).pathname:p.pathname,T=y.pathname,A=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(T=T.toLowerCase(),A=A?A.toLowerCase():null,E=E.toLowerCase()),A&&w&&(A=$a(A,w)||A);const M=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let j=T===E||!i&&T.startsWith(E)&&T.charAt(M)==="/",N=A!=null&&(A===E||!i&&A.startsWith(E)&&A.charAt(E.length)==="/"),R={isActive:j,isPending:N,isTransitioning:S},P=j?t:void 0,L;typeof r=="function"?L=r(R):L=[r,j?"active":null,N?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let Y=typeof l=="function"?l(R):l;return _.createElement(ch,{...d,"aria-current":P,className:L,ref:m,style:Y,to:s,viewTransition:c},typeof f=="function"?f(R):f)});u6.displayName="NavLink";var c6=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:s=rh,action:c,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:p,...y},x)=>{let O=m6(),w=v6(c,{relative:d}),S=s.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&Ek.test(c),T=A=>{if(f&&f(A),A.defaultPrevented)return;A.preventDefault();let M=A.nativeEvent.submitter,j=(M==null?void 0:M.getAttribute("formmethod"))||s;O(M||A.currentTarget,{fetcherKey:t,method:j,navigate:n,replace:i,state:l,relative:d,preventScrollReset:m,viewTransition:p})};return _.createElement("form",{ref:x,method:S,action:w,onSubmit:r?f:T,...y,"data-discover":!E&&e==="render"?"true":void 0})});c6.displayName="Form";function f6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Ak(e){let t=_.useContext(Os);return xt(t,f6(e)),t}function d6(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:s}={}){let c=Kc(),f=ia(),d=Xc(e,{relative:l});return _.useCallback(m=>{if(F8(m,t)){m.preventDefault();let p=n!==void 0?n:oc(f)===oc(d);c(e,{replace:p,state:r,preventScrollReset:i,relative:l,viewTransition:s})}},[f,c,d,n,r,t,e,i,l,s])}var h6=0,p6=()=>`__${String(++h6)}__`;function m6(){let{router:e}=Ak("useSubmit"),{basename:t}=_.useContext(kr),n=P8();return _.useCallback(async(r,i={})=>{let{action:l,method:s,encType:c,formData:f,body:d}=Y8(r,t);if(i.navigate===!1){let m=i.fetcherKey||p6();await e.fetch(m,n,i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||s,formEncType:i.encType||c,flushSync:i.flushSync})}else await e.navigate(i.action||l,{preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||s,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function v6(e,{relative:t}={}){let{basename:n}=_.useContext(kr),r=_.useContext($r);xt(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),l={...Xc(e||".",{relative:t})},s=ia();if(e==null){l.search=s.search;let c=new URLSearchParams(l.search),f=c.getAll("index");if(f.some(m=>m==="")){c.delete("index"),f.filter(p=>p).forEach(p=>c.append("index",p));let m=c.toString();l.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Ra([n,l.pathname])),oc(l)}function g6(e,{relative:t}={}){let n=_.useContext(gk);xt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Ak("useViewTransitionState"),i=Xc(e,{relative:t});if(!n.isTransitioning)return!1;let l=$a(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=$a(n.nextLocation.pathname,r)||n.nextLocation.pathname;return uh(i.pathname,s)!=null||uh(i.pathname,l)!=null}var Qc=dk();const Tk=ut(Qc);/**
|
|
61
|
-
* @license lucide-react v0.462.0 - ISC
|
|
62
|
-
*
|
|
63
|
-
* This source code is licensed under the ISC license.
|
|
64
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
65
|
-
*/const y6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jk=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim();/**
|
|
66
|
-
* @license lucide-react v0.462.0 - ISC
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the ISC license.
|
|
69
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
70
|
-
*/var b6={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"};/**
|
|
71
|
-
* @license lucide-react v0.462.0 - ISC
|
|
72
|
-
*
|
|
73
|
-
* This source code is licensed under the ISC license.
|
|
74
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
75
|
-
*/const x6=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:s,...c},f)=>_.createElement("svg",{ref:f,...b6,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:jk("lucide",i),...c},[...s.map(([d,m])=>_.createElement(d,m)),...Array.isArray(l)?l:[l]]));/**
|
|
76
|
-
* @license lucide-react v0.462.0 - ISC
|
|
77
|
-
*
|
|
78
|
-
* This source code is licensed under the ISC license.
|
|
79
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
80
|
-
*/const et=(e,t)=>{const n=_.forwardRef(({className:r,...i},l)=>_.createElement(x6,{ref:l,iconNode:t,className:jk(`lucide-${y6(e)}`,r),...i}));return n.displayName=`${e}`,n};/**
|
|
81
|
-
* @license lucide-react v0.462.0 - ISC
|
|
82
|
-
*
|
|
83
|
-
* This source code is licensed under the ISC license.
|
|
84
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
85
|
-
*/const pS=et("Activity",[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]]);/**
|
|
86
|
-
* @license lucide-react v0.462.0 - ISC
|
|
87
|
-
*
|
|
88
|
-
* This source code is licensed under the ISC license.
|
|
89
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
90
|
-
*/const Zg=et("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/**
|
|
91
|
-
* @license lucide-react v0.462.0 - ISC
|
|
92
|
-
*
|
|
93
|
-
* This source code is licensed under the ISC license.
|
|
94
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
95
|
-
*/const w6=et("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"}]]);/**
|
|
96
|
-
* @license lucide-react v0.462.0 - ISC
|
|
97
|
-
*
|
|
98
|
-
* This source code is licensed under the ISC license.
|
|
99
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
-
*/const Ck=et("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
101
|
-
* @license lucide-react v0.462.0 - ISC
|
|
102
|
-
*
|
|
103
|
-
* This source code is licensed under the ISC license.
|
|
104
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
-
*/const Es=et("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
106
|
-
* @license lucide-react v0.462.0 - ISC
|
|
107
|
-
*
|
|
108
|
-
* This source code is licensed under the ISC license.
|
|
109
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
-
*/const Zc=et("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
111
|
-
* @license lucide-react v0.462.0 - ISC
|
|
112
|
-
*
|
|
113
|
-
* This source code is licensed under the ISC license.
|
|
114
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
-
*/const S6=et("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|
116
|
-
* @license lucide-react v0.462.0 - ISC
|
|
117
|
-
*
|
|
118
|
-
* This source code is licensed under the ISC license.
|
|
119
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
-
*/const Mk=et("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"}]]);/**
|
|
121
|
-
* @license lucide-react v0.462.0 - ISC
|
|
122
|
-
*
|
|
123
|
-
* This source code is licensed under the ISC license.
|
|
124
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
-
*/const Ap=et("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
126
|
-
* @license lucide-react v0.462.0 - ISC
|
|
127
|
-
*
|
|
128
|
-
* This source code is licensed under the ISC license.
|
|
129
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
-
*/const O6=et("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
131
|
-
* @license lucide-react v0.462.0 - ISC
|
|
132
|
-
*
|
|
133
|
-
* This source code is licensed under the ISC license.
|
|
134
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
-
*/const gw=et("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
136
|
-
* @license lucide-react v0.462.0 - ISC
|
|
137
|
-
*
|
|
138
|
-
* This source code is licensed under the ISC license.
|
|
139
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
-
*/const _6=et("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
141
|
-
* @license lucide-react v0.462.0 - ISC
|
|
142
|
-
*
|
|
143
|
-
* This source code is licensed under the ISC license.
|
|
144
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
-
*/const E6=et("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"}]]);/**
|
|
146
|
-
* @license lucide-react v0.462.0 - ISC
|
|
147
|
-
*
|
|
148
|
-
* This source code is licensed under the ISC license.
|
|
149
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
-
*/const A6=et("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"}]]);/**
|
|
151
|
-
* @license lucide-react v0.462.0 - ISC
|
|
152
|
-
*
|
|
153
|
-
* This source code is licensed under the ISC license.
|
|
154
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
-
*/const T6=et("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"}]]);/**
|
|
156
|
-
* @license lucide-react v0.462.0 - ISC
|
|
157
|
-
*
|
|
158
|
-
* This source code is licensed under the ISC license.
|
|
159
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
-
*/const j6=et("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
161
|
-
* @license lucide-react v0.462.0 - ISC
|
|
162
|
-
*
|
|
163
|
-
* This source code is licensed under the ISC license.
|
|
164
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
-
*/const C6=et("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
166
|
-
* @license lucide-react v0.462.0 - ISC
|
|
167
|
-
*
|
|
168
|
-
* This source code is licensed under the ISC license.
|
|
169
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
-
*/const ql=et("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"}]]);/**
|
|
171
|
-
* @license lucide-react v0.462.0 - ISC
|
|
172
|
-
*
|
|
173
|
-
* This source code is licensed under the ISC license.
|
|
174
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
-
*/const M6=et("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
176
|
-
* @license lucide-react v0.462.0 - ISC
|
|
177
|
-
*
|
|
178
|
-
* This source code is licensed under the ISC license.
|
|
179
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
180
|
-
*/const N6=et("OctagonX",[["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z",key:"2d38gg"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
181
|
-
* @license lucide-react v0.462.0 - ISC
|
|
182
|
-
*
|
|
183
|
-
* This source code is licensed under the ISC license.
|
|
184
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
185
|
-
*/const R6=et("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
186
|
-
* @license lucide-react v0.462.0 - ISC
|
|
187
|
-
*
|
|
188
|
-
* This source code is licensed under the ISC license.
|
|
189
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
190
|
-
*/const mj=et("Pen",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]]);/**
|
|
191
|
-
* @license lucide-react v0.462.0 - ISC
|
|
192
|
-
*
|
|
193
|
-
* This source code is licensed under the ISC license.
|
|
194
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
195
|
-
*/const Nk=et("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
|
|
196
|
-
* @license lucide-react v0.462.0 - ISC
|
|
197
|
-
*
|
|
198
|
-
* This source code is licensed under the ISC license.
|
|
199
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
200
|
-
*/const P6=et("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
201
|
-
* @license lucide-react v0.462.0 - ISC
|
|
202
|
-
*
|
|
203
|
-
* This source code is licensed under the ISC license.
|
|
204
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
205
|
-
*/const D6=et("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"}]]);/**
|
|
206
|
-
* @license lucide-react v0.462.0 - ISC
|
|
207
|
-
*
|
|
208
|
-
* This source code is licensed under the ISC license.
|
|
209
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
210
|
-
*/const k6=et("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"}]]);/**
|
|
211
|
-
* @license lucide-react v0.462.0 - ISC
|
|
212
|
-
*
|
|
213
|
-
* This source code is licensed under the ISC license.
|
|
214
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
215
|
-
*/const $6=et("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"}]]);/**
|
|
216
|
-
* @license lucide-react v0.462.0 - ISC
|
|
217
|
-
*
|
|
218
|
-
* This source code is licensed under the ISC license.
|
|
219
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
220
|
-
*/const L6=et("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"}]]);/**
|
|
221
|
-
* @license lucide-react v0.462.0 - ISC
|
|
222
|
-
*
|
|
223
|
-
* This source code is licensed under the ISC license.
|
|
224
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
225
|
-
*/const I6=et("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"}]]);/**
|
|
226
|
-
* @license lucide-react v0.462.0 - ISC
|
|
227
|
-
*
|
|
228
|
-
* This source code is licensed under the ISC license.
|
|
229
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
230
|
-
*/const Ul=et("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Rk(e,t=[]){let n=[];function r(l,s){const c=_.createContext(s);c.displayName=l+"Context";const f=n.length;n=[...n,s];const d=p=>{var E;const{scope:y,children:x,...O}=p,w=((E=y==null?void 0:y[e])==null?void 0:E[f])||c,S=_.useMemo(()=>O,Object.values(O));return v.jsx(w.Provider,{value:S,children:x})};d.displayName=l+"Provider";function m(p,y){var w;const x=((w=y==null?void 0:y[e])==null?void 0:w[f])||c,O=_.useContext(x);if(O)return O;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[d,m]}const i=()=>{const l=n.map(s=>_.createContext(s));return function(c){const f=(c==null?void 0:c[e])||l;return _.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,z6(i,...t)]}function z6(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const s=r.reduce((c,{useScope:f,scopeName:d})=>{const p=f(l)[`__scope${d}`];return{...c,...p}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}function Rr(e){const t=_.useRef(e);return _.useEffect(()=>{t.current=e}),_.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var zt=globalThis!=null&&globalThis.document?_.useLayoutEffect:()=>{};function vj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function Jc(...e){return t=>{let n=!1;const r=e.map(i=>{const l=vj(i,t);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let i=0;i<r.length;i++){const l=r[i];typeof l=="function"?l():vj(e[i],null)}}}}function We(...e){return _.useCallback(Jc(...e),e)}var B6=Symbol.for("react.lazy"),fh=oS[" use ".trim().toString()];function q6(e){return typeof e=="object"&&e!==null&&"then"in e}function Pk(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===B6&&"_payload"in e&&q6(e._payload)}function Dk(e){const t=U6(e),n=_.forwardRef((r,i)=>{let{children:l,...s}=r;Pk(l)&&typeof fh=="function"&&(l=fh(l._payload));const c=_.Children.toArray(l),f=c.find(F6);if(f){const d=f.props.children,m=c.map(p=>p===f?_.Children.count(d)>1?_.Children.only(null):_.isValidElement(d)?d.props.children:null:p);return v.jsx(t,{...s,ref:i,children:_.isValidElement(d)?_.cloneElement(d,void 0,m):null})}return v.jsx(t,{...s,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}var No=Dk("Slot");function U6(e){const t=_.forwardRef((n,r)=>{let{children:i,...l}=n;if(Pk(i)&&typeof fh=="function"&&(i=fh(i._payload)),_.isValidElement(i)){const s=V6(i),c=G6(l,i.props);return i.type!==_.Fragment&&(c.ref=r?Jc(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var H6=Symbol("radix.slottable");function F6(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===H6}function G6(e,t){const n={...t};for(const r in t){const i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...c)=>{const f=l(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...l}:r==="className"&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function V6(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var Y6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ro=Y6.reduce((e,t)=>{const n=Dk(`Primitive.${t}`),r=_.forwardRef((i,l)=>{const{asChild:s,...c}=i,f=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...c,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),Jg={exports:{}},ey={};/**
|
|
231
|
-
* @license React
|
|
232
|
-
* use-sync-external-store-shim.production.js
|
|
233
|
-
*
|
|
234
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
235
|
-
*
|
|
236
|
-
* This source code is licensed under the MIT license found in the
|
|
237
|
-
* LICENSE file in the root directory of this source tree.
|
|
238
|
-
*/var gj;function W6(){if(gj)return ey;gj=1;var e=Op();function t(p,y){return p===y&&(p!==0||1/p===1/y)||p!==p&&y!==y}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,l=e.useLayoutEffect,s=e.useDebugValue;function c(p,y){var x=y(),O=r({inst:{value:x,getSnapshot:y}}),w=O[0].inst,S=O[1];return l(function(){w.value=x,w.getSnapshot=y,f(w)&&S({inst:w})},[p,x,y]),i(function(){return f(w)&&S({inst:w}),p(function(){f(w)&&S({inst:w})})},[p]),s(x),x}function f(p){var y=p.getSnapshot;p=p.value;try{var x=y();return!n(p,x)}catch{return!0}}function d(p,y){return y()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return ey.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,ey}var yj;function K6(){return yj||(yj=1,Jg.exports=W6()),Jg.exports}var X6=K6();function Q6(){return X6.useSyncExternalStore(Z6,()=>!0,()=>!1)}function Z6(){return()=>{}}var mS="Avatar",[J6]=Rk(mS),[eU,kk]=J6(mS),$k=_.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,l]=_.useState("idle");return v.jsx(eU,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:l,children:v.jsx(Ro.span,{...r,ref:t})})});$k.displayName=mS;var Lk="AvatarImage",Ik=_.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...l}=e,s=kk(Lk,n),c=tU(r,l),f=Rr(d=>{i(d),s.onImageLoadingStatusChange(d)});return zt(()=>{c!=="idle"&&f(c)},[c,f]),c==="loaded"?v.jsx(Ro.img,{...l,ref:t,src:r}):null});Ik.displayName=Lk;var zk="AvatarFallback",Bk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,l=kk(zk,n),[s,c]=_.useState(r===void 0);return _.useEffect(()=>{if(r!==void 0){const f=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(f)}},[r]),s&&l.imageLoadingStatus!=="loaded"?v.jsx(Ro.span,{...i,ref:t}):null});Bk.displayName=zk;function bj(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function tU(e,{referrerPolicy:t,crossOrigin:n}){const r=Q6(),i=_.useRef(null),l=r?(i.current||(i.current=new window.Image),i.current):null,[s,c]=_.useState(()=>bj(l,e));return zt(()=>{c(bj(l,e))},[l,e]),zt(()=>{const f=p=>()=>{c(p)};if(!l)return;const d=f("loaded"),m=f("error");return l.addEventListener("load",d),l.addEventListener("error",m),t&&(l.referrerPolicy=t),typeof n=="string"&&(l.crossOrigin=n),()=>{l.removeEventListener("load",d),l.removeEventListener("error",m)}},[l,n,t]),s}var nU=$k,rU=Ik,aU=Bk;function qk(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=qk(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Fe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qk(e))&&(r&&(r+=" "),r+=t);return r}const iU=(e,t)=>{const n=new Array(e.length+t.length);for(let r=0;r<e.length;r++)n[r]=e[r];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},oU=(e,t)=>({classGroupId:e,validator:t}),Uk=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),dh="-",xj=[],lU="arbitrary..",sU=e=>{const t=cU(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return uU(s);const c=s.split(dh),f=c[0]===""&&c.length>1?1:0;return Hk(c,f,t)},getConflictingClassGroupIds:(s,c)=>{if(c){const f=r[s],d=n[s];return f?d?iU(d,f):f:d||xj}return n[s]||xj}}},Hk=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],l=n.nextPart.get(i);if(l){const d=Hk(e,t+1,l);if(d)return d}const s=n.validators;if(s===null)return;const c=t===0?e.join(dh):e.slice(t).join(dh),f=s.length;for(let d=0;d<f;d++){const m=s[d];if(m.validator(c))return m.classGroupId}},uU=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),r=t.slice(0,n);return r?lU+r:void 0})(),cU=e=>{const{theme:t,classGroups:n}=e;return fU(n,t)},fU=(e,t)=>{const n=Uk();for(const r in e){const i=e[r];vS(i,n,r,t)}return n},vS=(e,t,n,r)=>{const i=e.length;for(let l=0;l<i;l++){const s=e[l];dU(s,t,n,r)}},dU=(e,t,n,r)=>{if(typeof e=="string"){hU(e,t,n);return}if(typeof e=="function"){pU(e,t,n,r);return}mU(e,t,n,r)},hU=(e,t,n)=>{const r=e===""?t:Fk(t,e);r.classGroupId=n},pU=(e,t,n,r)=>{if(vU(e)){vS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(oU(n,e))},mU=(e,t,n,r)=>{const i=Object.entries(e),l=i.length;for(let s=0;s<l;s++){const[c,f]=i[s];vS(f,Fk(t,c),n,r)}},Fk=(e,t)=>{let n=e;const r=t.split(dh),i=r.length;for(let l=0;l<i;l++){const s=r[l];let c=n.nextPart.get(s);c||(c=Uk(),n.nextPart.set(s,c)),n=c}return n},vU=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,gU=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(l,s)=>{n[l]=s,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(l){let s=n[l];if(s!==void 0)return s;if((s=r[l])!==void 0)return i(l,s),s},set(l,s){l in n?n[l]=s:i(l,s)}}},yw="!",wj=":",yU=[],Sj=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),bU=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const l=[];let s=0,c=0,f=0,d;const m=i.length;for(let w=0;w<m;w++){const S=i[w];if(s===0&&c===0){if(S===wj){l.push(i.slice(f,w)),f=w+1;continue}if(S==="/"){d=w;continue}}S==="["?s++:S==="]"?s--:S==="("?c++:S===")"&&c--}const p=l.length===0?i:i.slice(f);let y=p,x=!1;p.endsWith(yw)?(y=p.slice(0,-1),x=!0):p.startsWith(yw)&&(y=p.slice(1),x=!0);const O=d&&d>f?d-f:void 0;return Sj(l,x,y,O)};if(t){const i=t+wj,l=r;r=s=>s.startsWith(i)?l(s.slice(i.length)):Sj(yU,!1,s,void 0,!0)}if(n){const i=r;r=l=>n({className:l,parseClassName:i})}return r},xU=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let l=0;l<n.length;l++){const s=n[l],c=s[0]==="[",f=t.has(s);c||f?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(s)):i.push(s)}return i.length>0&&(i.sort(),r.push(...i)),r}},wU=e=>({cache:gU(e.cacheSize),parseClassName:bU(e),sortModifiers:xU(e),...sU(e)}),SU=/\s+/,OU=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l}=t,s=[],c=e.trim().split(SU);let f="";for(let d=c.length-1;d>=0;d-=1){const m=c[d],{isExternal:p,modifiers:y,hasImportantModifier:x,baseClassName:O,maybePostfixModifierPosition:w}=n(m);if(p){f=m+(f.length>0?" "+f:f);continue}let S=!!w,E=r(S?O.substring(0,w):O);if(!E){if(!S){f=m+(f.length>0?" "+f:f);continue}if(E=r(O),!E){f=m+(f.length>0?" "+f:f);continue}S=!1}const T=y.length===0?"":y.length===1?y[0]:l(y).join(":"),A=x?T+yw:T,M=A+E;if(s.indexOf(M)>-1)continue;s.push(M);const j=i(E,S);for(let N=0;N<j.length;++N){const R=j[N];s.push(A+R)}f=m+(f.length>0?" "+f:f)}return f},_U=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Gk(n))&&(i&&(i+=" "),i+=r);return i},Gk=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Gk(e[r]))&&(n&&(n+=" "),n+=t);return n},EU=(e,...t)=>{let n,r,i,l;const s=f=>{const d=t.reduce((m,p)=>p(m),e());return n=wU(d),r=n.cache.get,i=n.cache.set,l=c,c(f)},c=f=>{const d=r(f);if(d)return d;const m=OU(f,n);return i(f,m),m};return l=s,(...f)=>l(_U(...f))},AU=[],qt=e=>{const t=n=>n[e]||AU;return t.isThemeGetter=!0,t},Vk=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Yk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,TU=/^\d+\/\d+$/,jU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,CU=/\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$/,MU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,NU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,RU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tl=e=>TU.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),bi=e=>!!e&&Number.isInteger(Number(e)),ty=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Ta=e=>jU.test(e),PU=()=>!0,DU=e=>CU.test(e)&&!MU.test(e),Wk=()=>!1,kU=e=>NU.test(e),$U=e=>RU.test(e),LU=e=>!Se(e)&&!Oe(e),IU=e=>As(e,Qk,Wk),Se=e=>Vk.test(e),oo=e=>As(e,Zk,DU),ny=e=>As(e,HU,ke),Oj=e=>As(e,Kk,Wk),zU=e=>As(e,Xk,$U),Dd=e=>As(e,Jk,kU),Oe=e=>Yk.test(e),ku=e=>Ts(e,Zk),BU=e=>Ts(e,FU),_j=e=>Ts(e,Kk),qU=e=>Ts(e,Qk),UU=e=>Ts(e,Xk),kd=e=>Ts(e,Jk,!0),As=(e,t,n)=>{const r=Vk.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Ts=(e,t,n=!1)=>{const r=Yk.exec(e);return r?r[1]?t(r[1]):n:!1},Kk=e=>e==="position"||e==="percentage",Xk=e=>e==="image"||e==="url",Qk=e=>e==="length"||e==="size"||e==="bg-size",Zk=e=>e==="length",HU=e=>e==="number",FU=e=>e==="family-name",Jk=e=>e==="shadow",GU=()=>{const e=qt("color"),t=qt("font"),n=qt("text"),r=qt("font-weight"),i=qt("tracking"),l=qt("leading"),s=qt("breakpoint"),c=qt("container"),f=qt("spacing"),d=qt("radius"),m=qt("shadow"),p=qt("inset-shadow"),y=qt("text-shadow"),x=qt("drop-shadow"),O=qt("blur"),w=qt("perspective"),S=qt("aspect"),E=qt("ease"),T=qt("animate"),A=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],j=()=>[...M(),Oe,Se],N=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],P=()=>[Oe,Se,f],L=()=>[Tl,"full","auto",...P()],Y=()=>[bi,"none","subgrid",Oe,Se],z=()=>["auto",{span:["full",bi,Oe,Se]},bi,Oe,Se],H=()=>[bi,"auto",Oe,Se],V=()=>["auto","min","max","fr",Oe,Se],Q=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],K=()=>["start","end","center","stretch","center-safe","end-safe"],k=()=>["auto",...P()],q=()=>[Tl,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],B=()=>[e,Oe,Se],W=()=>[...M(),_j,Oj,{position:[Oe,Se]}],le=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",qU,IU,{size:[Oe,Se]}],F=()=>[ty,ku,oo],X=()=>["","none","full",d,Oe,Se],ae=()=>["",ke,ku,oo],de=()=>["solid","dashed","dotted","double"],ge=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ce=()=>[ke,ty,_j,Oj],he=()=>["","none",O,Oe,Se],ie=()=>["none",ke,Oe,Se],pe=()=>["none",ke,Oe,Se],ve=()=>[ke,Oe,Se],ne=()=>[Tl,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Ta],breakpoint:[Ta],color:[PU],container:[Ta],"drop-shadow":[Ta],ease:["in","out","in-out"],font:[LU],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Ta],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Ta],shadow:[Ta],spacing:["px",ke],text:[Ta],"text-shadow":[Ta],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Tl,Se,Oe,S]}],container:["container"],columns:[{columns:[ke,Se,Oe,c]}],"break-after":[{"break-after":A()}],"break-before":[{"break-before":A()}],"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"],sr:["sr-only","not-sr-only"],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:j()}],overflow:[{overflow:N()}],"overflow-x":[{"overflow-x":N()}],"overflow-y":[{"overflow-y":N()}],overscroll:[{overscroll:R()}],"overscroll-x":[{"overscroll-x":R()}],"overscroll-y":[{"overscroll-y":R()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[bi,"auto",Oe,Se]}],basis:[{basis:[Tl,"full","auto",c,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,Tl,"auto","initial","none",Se]}],grow:[{grow:["",ke,Oe,Se]}],shrink:[{shrink:["",ke,Oe,Se]}],order:[{order:[bi,"first","last","none",Oe,Se]}],"grid-cols":[{"grid-cols":Y()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":H()}],"col-end":[{"col-end":H()}],"grid-rows":[{"grid-rows":Y()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":H()}],"row-end":[{"row-end":H()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":V()}],"auto-rows":[{"auto-rows":V()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...Q(),"normal"]}],"justify-items":[{"justify-items":[...K(),"normal"]}],"justify-self":[{"justify-self":["auto",...K()]}],"align-content":[{content:["normal",...Q()]}],"align-items":[{items:[...K(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...K(),{baseline:["","last"]}]}],"place-content":[{"place-content":Q()}],"place-items":[{"place-items":[...K(),"baseline"]}],"place-self":[{"place-self":["auto",...K()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:k()}],mx:[{mx:k()}],my:[{my:k()}],ms:[{ms:k()}],me:[{me:k()}],mt:[{mt:k()}],mr:[{mr:k()}],mb:[{mb:k()}],ml:[{ml:k()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:q()}],w:[{w:[c,"screen",...q()]}],"min-w":[{"min-w":[c,"screen","none",...q()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[s]},...q()]}],h:[{h:["screen","lh",...q()]}],"min-h":[{"min-h":["screen","lh","none",...q()]}],"max-h":[{"max-h":["screen","lh",...q()]}],"font-size":[{text:["base",n,ku,oo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Oe,ny]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ty,Se]}],"font-family":[{font:[BU,Se,t]}],"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:[i,Oe,Se]}],"line-clamp":[{"line-clamp":[ke,"none",Oe,ny]}],leading:[{leading:[l,...P()]}],"list-image":[{"list-image":["none",Oe,Se]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Oe,Se]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...de(),"wavy"]}],"text-decoration-thickness":[{decoration:[ke,"from-font","auto",Oe,oo]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[ke,"auto",Oe,Se]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Oe,Se]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Oe,Se]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:W()}],"bg-repeat":[{bg:le()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},bi,Oe,Se],radial:["",Oe,Se],conic:[bi,Oe,Se]},UU,zU]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:F()}],"gradient-via-pos":[{via:F()}],"gradient-to-pos":[{to:F()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:X()}],"rounded-s":[{"rounded-s":X()}],"rounded-e":[{"rounded-e":X()}],"rounded-t":[{"rounded-t":X()}],"rounded-r":[{"rounded-r":X()}],"rounded-b":[{"rounded-b":X()}],"rounded-l":[{"rounded-l":X()}],"rounded-ss":[{"rounded-ss":X()}],"rounded-se":[{"rounded-se":X()}],"rounded-ee":[{"rounded-ee":X()}],"rounded-es":[{"rounded-es":X()}],"rounded-tl":[{"rounded-tl":X()}],"rounded-tr":[{"rounded-tr":X()}],"rounded-br":[{"rounded-br":X()}],"rounded-bl":[{"rounded-bl":X()}],"border-w":[{border:ae()}],"border-w-x":[{"border-x":ae()}],"border-w-y":[{"border-y":ae()}],"border-w-s":[{"border-s":ae()}],"border-w-e":[{"border-e":ae()}],"border-w-t":[{"border-t":ae()}],"border-w-r":[{"border-r":ae()}],"border-w-b":[{"border-b":ae()}],"border-w-l":[{"border-l":ae()}],"divide-x":[{"divide-x":ae()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":ae()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...de(),"hidden","none"]}],"divide-style":[{divide:[...de(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}],"divide-color":[{divide:B()}],"outline-style":[{outline:[...de(),"none","hidden"]}],"outline-offset":[{"outline-offset":[ke,Oe,Se]}],"outline-w":[{outline:["",ke,ku,oo]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",m,kd,Dd]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",p,kd,Dd]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:ae()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[ke,oo]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",y,kd,Dd]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[ke,Oe,Se]}],"mix-blend":[{"mix-blend":[...ge(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ge()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[ke]}],"mask-image-linear-from-pos":[{"mask-linear-from":ce()}],"mask-image-linear-to-pos":[{"mask-linear-to":ce()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":ce()}],"mask-image-t-to-pos":[{"mask-t-to":ce()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":ce()}],"mask-image-r-to-pos":[{"mask-r-to":ce()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":ce()}],"mask-image-b-to-pos":[{"mask-b-to":ce()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":ce()}],"mask-image-l-to-pos":[{"mask-l-to":ce()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":ce()}],"mask-image-x-to-pos":[{"mask-x-to":ce()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":ce()}],"mask-image-y-to-pos":[{"mask-y-to":ce()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[Oe,Se]}],"mask-image-radial-from-pos":[{"mask-radial-from":ce()}],"mask-image-radial-to-pos":[{"mask-radial-to":ce()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":M()}],"mask-image-conic-pos":[{"mask-conic":[ke]}],"mask-image-conic-from-pos":[{"mask-conic-from":ce()}],"mask-image-conic-to-pos":[{"mask-conic-to":ce()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:W()}],"mask-repeat":[{mask:le()}],"mask-size":[{mask:$()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Oe,Se]}],filter:[{filter:["","none",Oe,Se]}],blur:[{blur:he()}],brightness:[{brightness:[ke,Oe,Se]}],contrast:[{contrast:[ke,Oe,Se]}],"drop-shadow":[{"drop-shadow":["","none",x,kd,Dd]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",ke,Oe,Se]}],"hue-rotate":[{"hue-rotate":[ke,Oe,Se]}],invert:[{invert:["",ke,Oe,Se]}],saturate:[{saturate:[ke,Oe,Se]}],sepia:[{sepia:["",ke,Oe,Se]}],"backdrop-filter":[{"backdrop-filter":["","none",Oe,Se]}],"backdrop-blur":[{"backdrop-blur":he()}],"backdrop-brightness":[{"backdrop-brightness":[ke,Oe,Se]}],"backdrop-contrast":[{"backdrop-contrast":[ke,Oe,Se]}],"backdrop-grayscale":[{"backdrop-grayscale":["",ke,Oe,Se]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[ke,Oe,Se]}],"backdrop-invert":[{"backdrop-invert":["",ke,Oe,Se]}],"backdrop-opacity":[{"backdrop-opacity":[ke,Oe,Se]}],"backdrop-saturate":[{"backdrop-saturate":[ke,Oe,Se]}],"backdrop-sepia":[{"backdrop-sepia":["",ke,Oe,Se]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Oe,Se]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[ke,"initial",Oe,Se]}],ease:[{ease:["linear","initial",E,Oe,Se]}],delay:[{delay:[ke,Oe,Se]}],animate:[{animate:["none",T,Oe,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,Oe,Se]}],"perspective-origin":[{"perspective-origin":j()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:pe()}],"scale-x":[{"scale-x":pe()}],"scale-y":[{"scale-y":pe()}],"scale-z":[{"scale-z":pe()}],"scale-3d":["scale-3d"],skew:[{skew:ve()}],"skew-x":[{"skew-x":ve()}],"skew-y":[{"skew-y":ve()}],transform:[{transform:[Oe,Se,"","none","gpu","cpu"]}],"transform-origin":[{origin:j()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ne()}],"translate-x":[{"translate-x":ne()}],"translate-y":[{"translate-y":ne()}],"translate-z":[{"translate-z":ne()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",Oe,Se]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"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",Oe,Se]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[ke,ku,oo,ny]}],stroke:[{stroke:["none",...B()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},VU=EU(GU);function me(...e){return VU(Fe(e))}function Ej({className:e,...t}){return v.jsx(nU,{className:me("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),"data-slot":"avatar",...t})}function Aj({className:e,...t}){return v.jsx(rU,{className:me("aspect-square size-full",e),"data-slot":"avatar-image",...t})}function Tj({className:e,...t}){return v.jsx(aU,{className:me("flex size-full items-center justify-center rounded-full bg-muted",e),"data-slot":"avatar-fallback",...t})}function be(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(e==null||e(i),n===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}function YU(e,t){const n=_.createContext(t),r=l=>{const{children:s,...c}=l,f=_.useMemo(()=>c,Object.values(c));return v.jsx(n.Provider,{value:f,children:s})};r.displayName=e+"Provider";function i(l){const s=_.useContext(n);if(s)return s;if(t!==void 0)return t;throw new Error(`\`${l}\` must be used within \`${e}\``)}return[r,i]}function Lr(e,t=[]){let n=[];function r(l,s){const c=_.createContext(s),f=n.length;n=[...n,s];const d=p=>{var E;const{scope:y,children:x,...O}=p,w=((E=y==null?void 0:y[e])==null?void 0:E[f])||c,S=_.useMemo(()=>O,Object.values(O));return v.jsx(w.Provider,{value:S,children:x})};d.displayName=l+"Provider";function m(p,y){var w;const x=((w=y==null?void 0:y[e])==null?void 0:w[f])||c,O=_.useContext(x);if(O)return O;if(s!==void 0)return s;throw new Error(`\`${p}\` must be used within \`${l}\``)}return[d,m]}const i=()=>{const l=n.map(s=>_.createContext(s));return function(c){const f=(c==null?void 0:c[e])||l;return _.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,WU(i,...t)]}function WU(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(l){const s=r.reduce((c,{useScope:f,scopeName:d})=>{const p=f(l)[`__scope${d}`];return{...c,...p}},{});return _.useMemo(()=>({[`__scope${t.scopeName}`]:s}),[s])}};return n.scopeName=t.scopeName,n}var KU=oS[" useInsertionEffect ".trim().toString()]||zt;function Ti({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,l,s]=XU({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:i;{const m=_.useRef(e!==void 0);_.useEffect(()=>{const p=m.current;p!==c&&console.warn(`${r} is changing from ${p?"controlled":"uncontrolled"} to ${c?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),m.current=c},[c,r])}const d=_.useCallback(m=>{var p;if(c){const y=QU(m)?m(e):m;y!==e&&((p=s.current)==null||p.call(s,y))}else l(m)},[c,e,l,s]);return[f,d]}function XU({defaultProp:e,onChange:t}){const[n,r]=_.useState(e),i=_.useRef(n),l=_.useRef(t);return KU(()=>{l.current=t},[t]),_.useEffect(()=>{var s;i.current!==n&&((s=l.current)==null||s.call(l,n),i.current=n)},[n,i]),[n,r,l]}function QU(e){return typeof e=="function"}function Xl(e){const t=ZU(e),n=_.forwardRef((r,i)=>{const{children:l,...s}=r,c=_.Children.toArray(l),f=c.find(JU);if(f){const d=f.props.children,m=c.map(p=>p===f?_.Children.count(d)>1?_.Children.only(null):_.isValidElement(d)?d.props.children:null:p);return v.jsx(t,{...s,ref:i,children:_.isValidElement(d)?_.cloneElement(d,void 0,m):null})}return v.jsx(t,{...s,ref:i,children:l})});return n.displayName=`${e}.Slot`,n}function ZU(e){const t=_.forwardRef((n,r)=>{const{children:i,...l}=n;if(_.isValidElement(i)){const s=tH(i),c=eH(l,i.props);return i.type!==_.Fragment&&(c.ref=r?Jc(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var e$=Symbol("radix.slottable");function t$(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=e$,t}function JU(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===e$}function eH(e,t){const n={...t};for(const r in t){const i=e[r],l=t[r];/^on[A-Z]/.test(r)?i&&l?n[r]=(...c)=>{const f=l(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...l}:r==="className"&&(n[r]=[i,l].filter(Boolean).join(" "))}return{...e,...n}}function tH(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var nH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=nH.reduce((e,t)=>{const n=Xl(`Primitive.${t}`),r=_.forwardRef((i,l)=>{const{asChild:s,...c}=i,f=s?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),v.jsx(f,{...c,ref:l})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function n$(e,t){e&&Qc.flushSync(()=>e.dispatchEvent(t))}function gS(e){const t=e+"CollectionProvider",[n,r]=Lr(t),[i,l]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=w=>{const{scope:S,children:E}=w,T=I.useRef(null),A=I.useRef(new Map).current;return v.jsx(i,{scope:S,itemMap:A,collectionRef:T,children:E})};s.displayName=t;const c=e+"CollectionSlot",f=Xl(c),d=I.forwardRef((w,S)=>{const{scope:E,children:T}=w,A=l(c,E),M=We(S,A.collectionRef);return v.jsx(f,{ref:M,children:T})});d.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",y=Xl(m),x=I.forwardRef((w,S)=>{const{scope:E,children:T,...A}=w,M=I.useRef(null),j=We(S,M),N=l(m,E);return I.useEffect(()=>(N.itemMap.set(M,{ref:M,...A}),()=>void N.itemMap.delete(M))),v.jsx(y,{[p]:"",ref:j,children:T})});x.displayName=m;function O(w){const S=l(e+"CollectionConsumer",w);return I.useCallback(()=>{const T=S.collectionRef.current;if(!T)return[];const A=Array.from(T.querySelectorAll(`[${p}]`));return Array.from(S.itemMap.values()).sort((N,R)=>A.indexOf(N.ref.current)-A.indexOf(R.ref.current))},[S.collectionRef,S.itemMap])}return[{Provider:s,Slot:d,ItemSlot:x},O,r]}var rH=_.createContext(void 0);function Tp(e){const t=_.useContext(rH);return e||t||"ltr"}function aH(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e);_.useEffect(()=>{const r=i=>{i.key==="Escape"&&n(i)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}var iH="DismissableLayer",bw="dismissableLayer.update",oH="dismissableLayer.pointerDownOutside",lH="dismissableLayer.focusOutside",jj,r$=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ef=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:s,onDismiss:c,...f}=e,d=_.useContext(r$),[m,p]=_.useState(null),y=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=_.useState({}),O=We(t,R=>p(R)),w=Array.from(d.layers),[S]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),E=w.indexOf(S),T=m?w.indexOf(m):-1,A=d.layersWithOutsidePointerEventsDisabled.size>0,M=T>=E,j=cH(R=>{const P=R.target,L=[...d.branches].some(Y=>Y.contains(P));!M||L||(i==null||i(R),s==null||s(R),R.defaultPrevented||c==null||c())},y),N=fH(R=>{const P=R.target;[...d.branches].some(Y=>Y.contains(P))||(l==null||l(R),s==null||s(R),R.defaultPrevented||c==null||c())},y);return aH(R=>{T===d.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},y),_.useEffect(()=>{if(m)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(jj=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),Cj(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=jj)}},[m,y,n,d]),_.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),Cj())},[m,d]),_.useEffect(()=>{const R=()=>x({});return document.addEventListener(bw,R),()=>document.removeEventListener(bw,R)},[]),v.jsx(Re.div,{...f,ref:O,style:{pointerEvents:A?M?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,N.onFocusCapture),onBlurCapture:be(e.onBlurCapture,N.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,j.onPointerDownCapture)})});ef.displayName=iH;var sH="DismissableLayerBranch",uH=_.forwardRef((e,t)=>{const n=_.useContext(r$),r=_.useRef(null),i=We(t,r);return _.useEffect(()=>{const l=r.current;if(l)return n.branches.add(l),()=>{n.branches.delete(l)}},[n.branches]),v.jsx(Re.div,{...e,ref:i})});uH.displayName=sH;function cH(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e),r=_.useRef(!1),i=_.useRef(()=>{});return _.useEffect(()=>{const l=c=>{if(c.target&&!r.current){let f=function(){a$(oH,n,d,{discrete:!0})};const d={originalEvent:c};c.pointerType==="touch"?(t.removeEventListener("click",i.current),i.current=f,t.addEventListener("click",i.current,{once:!0})):f()}else t.removeEventListener("click",i.current);r.current=!1},s=window.setTimeout(()=>{t.addEventListener("pointerdown",l)},0);return()=>{window.clearTimeout(s),t.removeEventListener("pointerdown",l),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function fH(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e),r=_.useRef(!1);return _.useEffect(()=>{const i=l=>{l.target&&!r.current&&a$(lH,n,{originalEvent:l},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function Cj(){const e=new CustomEvent(bw);document.dispatchEvent(e)}function a$(e,t,n,{discrete:r}){const i=n.originalEvent.target,l=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?n$(i,l):i.dispatchEvent(l)}var ry=0;function yS(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Mj()),document.body.insertAdjacentElement("beforeend",e[1]??Mj()),ry++,()=>{ry===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),ry--}},[])}function Mj(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var ay="focusScope.autoFocusOnMount",iy="focusScope.autoFocusOnUnmount",Nj={bubbles:!1,cancelable:!0},dH="FocusScope",jp=_.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:l,...s}=e,[c,f]=_.useState(null),d=Rr(i),m=Rr(l),p=_.useRef(null),y=We(t,w=>f(w)),x=_.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;_.useEffect(()=>{if(r){let w=function(A){if(x.paused||!c)return;const M=A.target;c.contains(M)?p.current=M:wi(p.current,{select:!0})},S=function(A){if(x.paused||!c)return;const M=A.relatedTarget;M!==null&&(c.contains(M)||wi(p.current,{select:!0}))},E=function(A){if(document.activeElement===document.body)for(const j of A)j.removedNodes.length>0&&wi(c)};document.addEventListener("focusin",w),document.addEventListener("focusout",S);const T=new MutationObserver(E);return c&&T.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",w),document.removeEventListener("focusout",S),T.disconnect()}}},[r,c,x.paused]),_.useEffect(()=>{if(c){Pj.add(x);const w=document.activeElement;if(!c.contains(w)){const E=new CustomEvent(ay,Nj);c.addEventListener(ay,d),c.dispatchEvent(E),E.defaultPrevented||(hH(yH(i$(c)),{select:!0}),document.activeElement===w&&wi(c))}return()=>{c.removeEventListener(ay,d),setTimeout(()=>{const E=new CustomEvent(iy,Nj);c.addEventListener(iy,m),c.dispatchEvent(E),E.defaultPrevented||wi(w??document.body,{select:!0}),c.removeEventListener(iy,m),Pj.remove(x)},0)}}},[c,d,m,x]);const O=_.useCallback(w=>{if(!n&&!r||x.paused)return;const S=w.key==="Tab"&&!w.altKey&&!w.ctrlKey&&!w.metaKey,E=document.activeElement;if(S&&E){const T=w.currentTarget,[A,M]=pH(T);A&&M?!w.shiftKey&&E===M?(w.preventDefault(),n&&wi(A,{select:!0})):w.shiftKey&&E===A&&(w.preventDefault(),n&&wi(M,{select:!0})):E===T&&w.preventDefault()}},[n,r,x.paused]);return v.jsx(Re.div,{tabIndex:-1,...s,ref:y,onKeyDown:O})});jp.displayName=dH;function hH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wi(r,{select:t}),document.activeElement!==n)return}function pH(e){const t=i$(e),n=Rj(t,e),r=Rj(t.reverse(),e);return[n,r]}function i$(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const i=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||i?NodeFilter.FILTER_SKIP:r.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function Rj(e,t){for(const n of e)if(!mH(n,{upTo:t}))return n}function mH(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function vH(e){return e instanceof HTMLInputElement&&"select"in e}function wi(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&vH(e)&&t&&e.select()}}var Pj=gH();function gH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=Dj(e,t),e.unshift(t)},remove(t){var n;e=Dj(e,t),(n=e[0])==null||n.resume()}}}function Dj(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function yH(e){return e.filter(t=>t.tagName!=="A")}var bH=oS[" useId ".trim().toString()]||(()=>{}),xH=0;function dr(e){const[t,n]=_.useState(bH());return zt(()=>{n(r=>r??String(xH++))},[e]),e||(t?`radix-${t}`:"")}const wH=["top","right","bottom","left"],ji=Math.min,Yn=Math.max,hh=Math.round,$d=Math.floor,ea=e=>({x:e,y:e}),SH={left:"right",right:"left",bottom:"top",top:"bottom"},OH={start:"end",end:"start"};function xw(e,t,n){return Yn(e,ji(t,n))}function La(e,t){return typeof e=="function"?e(t):e}function Ia(e){return e.split("-")[0]}function js(e){return e.split("-")[1]}function bS(e){return e==="x"?"y":"x"}function xS(e){return e==="y"?"height":"width"}const _H=new Set(["top","bottom"]);function Zr(e){return _H.has(Ia(e))?"y":"x"}function wS(e){return bS(Zr(e))}function EH(e,t,n){n===void 0&&(n=!1);const r=js(e),i=wS(e),l=xS(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=ph(s)),[s,ph(s)]}function AH(e){const t=ph(e);return[ww(e),t,ww(t)]}function ww(e){return e.replace(/start|end/g,t=>OH[t])}const kj=["left","right"],$j=["right","left"],TH=["top","bottom"],jH=["bottom","top"];function CH(e,t,n){switch(e){case"top":case"bottom":return n?t?$j:kj:t?kj:$j;case"left":case"right":return t?TH:jH;default:return[]}}function MH(e,t,n,r){const i=js(e);let l=CH(Ia(e),n==="start",r);return i&&(l=l.map(s=>s+"-"+i),t&&(l=l.concat(l.map(ww)))),l}function ph(e){return e.replace(/left|right|bottom|top/g,t=>SH[t])}function NH(e){return{top:0,right:0,bottom:0,left:0,...e}}function o$(e){return typeof e!="number"?NH(e):{top:e,right:e,bottom:e,left:e}}function mh(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Lj(e,t,n){let{reference:r,floating:i}=e;const l=Zr(t),s=wS(t),c=xS(s),f=Ia(t),d=l==="y",m=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,y=r[c]/2-i[c]/2;let x;switch(f){case"top":x={x:m,y:r.y-i.height};break;case"bottom":x={x:m,y:r.y+r.height};break;case"right":x={x:r.x+r.width,y:p};break;case"left":x={x:r.x-i.width,y:p};break;default:x={x:r.x,y:r.y}}switch(js(t)){case"start":x[s]-=y*(n&&d?-1:1);break;case"end":x[s]+=y*(n&&d?-1:1);break}return x}const RH=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:l=[],platform:s}=n,c=l.filter(Boolean),f=await(s.isRTL==null?void 0:s.isRTL(t));let d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=Lj(d,r,f),y=r,x={},O=0;for(let w=0;w<c.length;w++){const{name:S,fn:E}=c[w],{x:T,y:A,data:M,reset:j}=await E({x:m,y:p,initialPlacement:r,placement:y,strategy:i,middlewareData:x,rects:d,platform:s,elements:{reference:e,floating:t}});m=T??m,p=A??p,x={...x,[S]:{...x[S],...M}},j&&O<=50&&(O++,typeof j=="object"&&(j.placement&&(y=j.placement),j.rects&&(d=j.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):j.rects),{x:m,y:p}=Lj(d,y,f)),w=-1)}return{x:m,y:p,placement:y,strategy:i,middlewareData:x}};async function lc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:l,rects:s,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:y=!1,padding:x=0}=La(t,e),O=o$(x),S=c[y?p==="floating"?"reference":"floating":p],E=mh(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(S)))==null||n?S:S.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:f})),T=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,A=await(l.getOffsetParent==null?void 0:l.getOffsetParent(c.floating)),M=await(l.isElement==null?void 0:l.isElement(A))?await(l.getScale==null?void 0:l.getScale(A))||{x:1,y:1}:{x:1,y:1},j=mh(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:A,strategy:f}):T);return{top:(E.top-j.top+O.top)/M.y,bottom:(j.bottom-E.bottom+O.bottom)/M.y,left:(E.left-j.left+O.left)/M.x,right:(j.right-E.right+O.right)/M.x}}const PH=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:l,platform:s,elements:c,middlewareData:f}=t,{element:d,padding:m=0}=La(e,t)||{};if(d==null)return{};const p=o$(m),y={x:n,y:r},x=wS(i),O=xS(x),w=await s.getDimensions(d),S=x==="y",E=S?"top":"left",T=S?"bottom":"right",A=S?"clientHeight":"clientWidth",M=l.reference[O]+l.reference[x]-y[x]-l.floating[O],j=y[x]-l.reference[x],N=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d));let R=N?N[A]:0;(!R||!await(s.isElement==null?void 0:s.isElement(N)))&&(R=c.floating[A]||l.floating[O]);const P=M/2-j/2,L=R/2-w[O]/2-1,Y=ji(p[E],L),z=ji(p[T],L),H=Y,V=R-w[O]-z,Q=R/2-w[O]/2+P,K=xw(H,Q,V),k=!f.arrow&&js(i)!=null&&Q!==K&&l.reference[O]/2-(Q<H?Y:z)-w[O]/2<0,q=k?Q<H?Q-H:Q-V:0;return{[x]:y[x]+q,data:{[x]:K,centerOffset:Q-K-q,...k&&{alignmentOffset:q}},reset:k}}}),DH=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:l,rects:s,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:O="none",flipAlignment:w=!0,...S}=La(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const E=Ia(i),T=Zr(c),A=Ia(c)===c,M=await(f.isRTL==null?void 0:f.isRTL(d.floating)),j=y||(A||!w?[ph(c)]:AH(c)),N=O!=="none";!y&&N&&j.push(...MH(c,w,O,M));const R=[c,...j],P=await lc(t,S),L=[];let Y=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&L.push(P[E]),p){const Q=EH(i,s,M);L.push(P[Q[0]],P[Q[1]])}if(Y=[...Y,{placement:i,overflows:L}],!L.every(Q=>Q<=0)){var z,H;const Q=(((z=l.flip)==null?void 0:z.index)||0)+1,K=R[Q];if(K&&(!(p==="alignment"?T!==Zr(K):!1)||Y.every(B=>Zr(B.placement)===T?B.overflows[0]>0:!0)))return{data:{index:Q,overflows:Y},reset:{placement:K}};let k=(H=Y.filter(q=>q.overflows[0]<=0).sort((q,B)=>q.overflows[1]-B.overflows[1])[0])==null?void 0:H.placement;if(!k)switch(x){case"bestFit":{var V;const q=(V=Y.filter(B=>{if(N){const W=Zr(B.placement);return W===T||W==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,le)=>W+le,0)]).sort((B,W)=>B[1]-W[1])[0])==null?void 0:V[0];q&&(k=q);break}case"initialPlacement":k=c;break}if(i!==k)return{reset:{placement:k}}}return{}}}};function Ij(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function zj(e){return wH.some(t=>e[t]>=0)}const kH=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=La(e,t);switch(r){case"referenceHidden":{const l=await lc(t,{...i,elementContext:"reference"}),s=Ij(l,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:zj(s)}}}case"escaped":{const l=await lc(t,{...i,altBoundary:!0}),s=Ij(l,n.floating);return{data:{escapedOffsets:s,escaped:zj(s)}}}default:return{}}}}},l$=new Set(["left","top"]);async function $H(e,t){const{placement:n,platform:r,elements:i}=e,l=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=Ia(n),c=js(n),f=Zr(n)==="y",d=l$.has(s)?-1:1,m=l&&f?-1:1,p=La(t,e);let{mainAxis:y,crossAxis:x,alignmentAxis:O}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof O=="number"&&(x=c==="end"?O*-1:O),f?{x:x*m,y:y*d}:{x:y*d,y:x*m}}const LH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:l,placement:s,middlewareData:c}=t,f=await $H(t,e);return s===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:l+f.y,data:{...f,placement:s}}}}},IH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:l=!0,crossAxis:s=!1,limiter:c={fn:S=>{let{x:E,y:T}=S;return{x:E,y:T}}},...f}=La(e,t),d={x:n,y:r},m=await lc(t,f),p=Zr(Ia(i)),y=bS(p);let x=d[y],O=d[p];if(l){const S=y==="y"?"top":"left",E=y==="y"?"bottom":"right",T=x+m[S],A=x-m[E];x=xw(T,x,A)}if(s){const S=p==="y"?"top":"left",E=p==="y"?"bottom":"right",T=O+m[S],A=O-m[E];O=xw(T,O,A)}const w=c.fn({...t,[y]:x,[p]:O});return{...w,data:{x:w.x-n,y:w.y-r,enabled:{[y]:l,[p]:s}}}}}},zH=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:l,middlewareData:s}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=La(e,t),m={x:n,y:r},p=Zr(i),y=bS(p);let x=m[y],O=m[p];const w=La(c,t),S=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(f){const A=y==="y"?"height":"width",M=l.reference[y]-l.floating[A]+S.mainAxis,j=l.reference[y]+l.reference[A]-S.mainAxis;x<M?x=M:x>j&&(x=j)}if(d){var E,T;const A=y==="y"?"width":"height",M=l$.has(Ia(i)),j=l.reference[p]-l.floating[A]+(M&&((E=s.offset)==null?void 0:E[p])||0)+(M?0:S.crossAxis),N=l.reference[p]+l.reference[A]+(M?0:((T=s.offset)==null?void 0:T[p])||0)-(M?S.crossAxis:0);O<j?O=j:O>N&&(O=N)}return{[y]:x,[p]:O}}}},BH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:l,platform:s,elements:c}=t,{apply:f=()=>{},...d}=La(e,t),m=await lc(t,d),p=Ia(i),y=js(i),x=Zr(i)==="y",{width:O,height:w}=l.floating;let S,E;p==="top"||p==="bottom"?(S=p,E=y===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(E=p,S=y==="end"?"top":"bottom");const T=w-m.top-m.bottom,A=O-m.left-m.right,M=ji(w-m[S],T),j=ji(O-m[E],A),N=!t.middlewareData.shift;let R=M,P=j;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(P=A),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=T),N&&!y){const Y=Yn(m.left,0),z=Yn(m.right,0),H=Yn(m.top,0),V=Yn(m.bottom,0);x?P=O-2*(Y!==0||z!==0?Y+z:Yn(m.left,m.right)):R=w-2*(H!==0||V!==0?H+V:Yn(m.top,m.bottom))}await f({...t,availableWidth:P,availableHeight:R});const L=await s.getDimensions(c.floating);return O!==L.width||w!==L.height?{reset:{rects:!0}}:{}}}};function Cp(){return typeof window<"u"}function Cs(e){return s$(e)?(e.nodeName||"").toLowerCase():"#document"}function Kn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function oa(e){var t;return(t=(s$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function s$(e){return Cp()?e instanceof Node||e instanceof Kn(e).Node:!1}function Pr(e){return Cp()?e instanceof Element||e instanceof Kn(e).Element:!1}function ra(e){return Cp()?e instanceof HTMLElement||e instanceof Kn(e).HTMLElement:!1}function Bj(e){return!Cp()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kn(e).ShadowRoot}const qH=new Set(["inline","contents"]);function tf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!qH.has(i)}const UH=new Set(["table","td","th"]);function HH(e){return UH.has(Cs(e))}const FH=[":popover-open",":modal"];function Mp(e){return FH.some(t=>{try{return e.matches(t)}catch{return!1}})}const GH=["transform","translate","scale","rotate","perspective"],VH=["transform","translate","scale","rotate","perspective","filter"],YH=["paint","layout","strict","content"];function SS(e){const t=OS(),n=Pr(e)?Dr(e):e;return GH.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||VH.some(r=>(n.willChange||"").includes(r))||YH.some(r=>(n.contain||"").includes(r))}function WH(e){let t=Ci(e);for(;ra(t)&&!Ql(t);){if(SS(t))return t;if(Mp(t))return null;t=Ci(t)}return null}function OS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const KH=new Set(["html","body","#document"]);function Ql(e){return KH.has(Cs(e))}function Dr(e){return Kn(e).getComputedStyle(e)}function Np(e){return Pr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ci(e){if(Cs(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Bj(e)&&e.host||oa(e);return Bj(t)?t.host:t}function u$(e){const t=Ci(e);return Ql(t)?e.ownerDocument?e.ownerDocument.body:e.body:ra(t)&&tf(t)?t:u$(t)}function sc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=u$(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),s=Kn(i);if(l){const c=Sw(s);return t.concat(s,s.visualViewport||[],tf(i)?i:[],c&&n?sc(c):[])}return t.concat(i,sc(i,[],n))}function Sw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function c$(e){const t=Dr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ra(e),l=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=hh(n)!==l||hh(r)!==s;return c&&(n=l,r=s),{width:n,height:r,$:c}}function _S(e){return Pr(e)?e:e.contextElement}function Hl(e){const t=_S(e);if(!ra(t))return ea(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=c$(t);let s=(l?hh(n.width):n.width)/r,c=(l?hh(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const XH=ea(0);function f$(e){const t=Kn(e);return!OS()||!t.visualViewport?XH:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function QH(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Kn(e)?!1:t}function So(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),l=_S(e);let s=ea(1);t&&(r?Pr(r)&&(s=Hl(r)):s=Hl(e));const c=QH(l,n,r)?f$(l):ea(0);let f=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,m=i.width/s.x,p=i.height/s.y;if(l){const y=Kn(l),x=r&&Pr(r)?Kn(r):r;let O=y,w=Sw(O);for(;w&&r&&x!==O;){const S=Hl(w),E=w.getBoundingClientRect(),T=Dr(w),A=E.left+(w.clientLeft+parseFloat(T.paddingLeft))*S.x,M=E.top+(w.clientTop+parseFloat(T.paddingTop))*S.y;f*=S.x,d*=S.y,m*=S.x,p*=S.y,f+=A,d+=M,O=Kn(w),w=Sw(O)}}return mh({width:m,height:p,x:f,y:d})}function Rp(e,t){const n=Np(e).scrollLeft;return t?t.left+n:So(oa(e)).left+n}function d$(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Rp(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function ZH(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",s=oa(r),c=t?Mp(t.floating):!1;if(r===s||c&&l)return n;let f={scrollLeft:0,scrollTop:0},d=ea(1);const m=ea(0),p=ra(r);if((p||!p&&!l)&&((Cs(r)!=="body"||tf(s))&&(f=Np(r)),ra(r))){const x=So(r);d=Hl(r),m.x=x.x+r.clientLeft,m.y=x.y+r.clientTop}const y=s&&!p&&!l?d$(s,f):ea(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+m.x+y.x,y:n.y*d.y-f.scrollTop*d.y+m.y+y.y}}function JH(e){return Array.from(e.getClientRects())}function e9(e){const t=oa(e),n=Np(e),r=e.ownerDocument.body,i=Yn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Yn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+Rp(e);const c=-n.scrollTop;return Dr(r).direction==="rtl"&&(s+=Yn(t.clientWidth,r.clientWidth)-i),{width:i,height:l,x:s,y:c}}const qj=25;function t9(e,t){const n=Kn(e),r=oa(e),i=n.visualViewport;let l=r.clientWidth,s=r.clientHeight,c=0,f=0;if(i){l=i.width,s=i.height;const m=OS();(!m||m&&t==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const d=Rp(r);if(d<=0){const m=r.ownerDocument,p=m.body,y=getComputedStyle(p),x=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,O=Math.abs(r.clientWidth-p.clientWidth-x);O<=qj&&(l-=O)}else d<=qj&&(l+=d);return{width:l,height:s,x:c,y:f}}const n9=new Set(["absolute","fixed"]);function r9(e,t){const n=So(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=ra(e)?Hl(e):ea(1),s=e.clientWidth*l.x,c=e.clientHeight*l.y,f=i*l.x,d=r*l.y;return{width:s,height:c,x:f,y:d}}function Uj(e,t,n){let r;if(t==="viewport")r=t9(e,n);else if(t==="document")r=e9(oa(e));else if(Pr(t))r=r9(t,n);else{const i=f$(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return mh(r)}function h$(e,t){const n=Ci(e);return n===t||!Pr(n)||Ql(n)?!1:Dr(n).position==="fixed"||h$(n,t)}function a9(e,t){const n=t.get(e);if(n)return n;let r=sc(e,[],!1).filter(c=>Pr(c)&&Cs(c)!=="body"),i=null;const l=Dr(e).position==="fixed";let s=l?Ci(e):e;for(;Pr(s)&&!Ql(s);){const c=Dr(s),f=SS(s);!f&&c.position==="fixed"&&(i=null),(l?!f&&!i:!f&&c.position==="static"&&!!i&&n9.has(i.position)||tf(s)&&!f&&h$(e,s))?r=r.filter(m=>m!==s):i=c,s=Ci(s)}return t.set(e,r),r}function i9(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Mp(t)?[]:a9(t,this._c):[].concat(n),r],c=s[0],f=s.reduce((d,m)=>{const p=Uj(t,m,i);return d.top=Yn(p.top,d.top),d.right=ji(p.right,d.right),d.bottom=ji(p.bottom,d.bottom),d.left=Yn(p.left,d.left),d},Uj(t,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function o9(e){const{width:t,height:n}=c$(e);return{width:t,height:n}}function l9(e,t,n){const r=ra(t),i=oa(t),l=n==="fixed",s=So(e,!0,l,t);let c={scrollLeft:0,scrollTop:0};const f=ea(0);function d(){f.x=Rp(i)}if(r||!r&&!l)if((Cs(t)!=="body"||tf(i))&&(c=Np(t)),r){const x=So(t,!0,l,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else i&&d();l&&!r&&i&&d();const m=i&&!r&&!l?d$(i,c):ea(0),p=s.left+c.scrollLeft-f.x-m.x,y=s.top+c.scrollTop-f.y-m.y;return{x:p,y,width:s.width,height:s.height}}function oy(e){return Dr(e).position==="static"}function Hj(e,t){if(!ra(e)||Dr(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return oa(e)===n&&(n=n.ownerDocument.body),n}function p$(e,t){const n=Kn(e);if(Mp(e))return n;if(!ra(e)){let i=Ci(e);for(;i&&!Ql(i);){if(Pr(i)&&!oy(i))return i;i=Ci(i)}return n}let r=Hj(e,t);for(;r&&HH(r)&&oy(r);)r=Hj(r,t);return r&&Ql(r)&&oy(r)&&!SS(r)?n:r||WH(e)||n}const s9=async function(e){const t=this.getOffsetParent||p$,n=this.getDimensions,r=await n(e.floating);return{reference:l9(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function u9(e){return Dr(e).direction==="rtl"}const c9={convertOffsetParentRelativeRectToViewportRelativeRect:ZH,getDocumentElement:oa,getClippingRect:i9,getOffsetParent:p$,getElementRects:s9,getClientRects:JH,getDimensions:o9,getScale:Hl,isElement:Pr,isRTL:u9};function m$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function f9(e,t){let n=null,r;const i=oa(e);function l(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function s(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),l();const d=e.getBoundingClientRect(),{left:m,top:p,width:y,height:x}=d;if(c||t(),!y||!x)return;const O=$d(p),w=$d(i.clientWidth-(m+y)),S=$d(i.clientHeight-(p+x)),E=$d(m),A={rootMargin:-O+"px "+-w+"px "+-S+"px "+-E+"px",threshold:Yn(0,ji(1,f))||1};let M=!0;function j(N){const R=N[0].intersectionRatio;if(R!==f){if(!M)return s();R?s(!1,R):r=setTimeout(()=>{s(!1,1e-7)},1e3)}R===1&&!m$(d,e.getBoundingClientRect())&&s(),M=!1}try{n=new IntersectionObserver(j,{...A,root:i.ownerDocument})}catch{n=new IntersectionObserver(j,A)}n.observe(e)}return s(!0),l}function d9(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:l=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=_S(e),m=i||l?[...d?sc(d):[],...sc(t)]:[];m.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),l&&E.addEventListener("resize",n)});const p=d&&c?f9(d,n):null;let y=-1,x=null;s&&(x=new ResizeObserver(E=>{let[T]=E;T&&T.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var A;(A=x)==null||A.observe(t)})),n()}),d&&!f&&x.observe(d),x.observe(t));let O,w=f?So(e):null;f&&S();function S(){const E=So(e);w&&!m$(w,E)&&n(),w=E,O=requestAnimationFrame(S)}return n(),()=>{var E;m.forEach(T=>{i&&T.removeEventListener("scroll",n),l&&T.removeEventListener("resize",n)}),p==null||p(),(E=x)==null||E.disconnect(),x=null,f&&cancelAnimationFrame(O)}}const h9=LH,p9=IH,m9=DH,v9=BH,g9=kH,Fj=PH,y9=zH,b9=(e,t,n)=>{const r=new Map,i={platform:c9,...n},l={...i.platform,_c:r};return RH(e,t,{...i,platform:l})};var x9=typeof document<"u",w9=function(){},ih=x9?_.useLayoutEffect:w9;function vh(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!vh(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){const l=i[r];if(!(l==="_owner"&&e.$$typeof)&&!vh(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function v$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gj(e,t){const n=v$(e);return Math.round(t*n)/n}function ly(e){const t=_.useRef(e);return ih(()=>{t.current=e}),t}function S9(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:l,floating:s}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[m,p]=_.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,x]=_.useState(r);vh(y,r)||x(r);const[O,w]=_.useState(null),[S,E]=_.useState(null),T=_.useCallback(B=>{B!==N.current&&(N.current=B,w(B))},[]),A=_.useCallback(B=>{B!==R.current&&(R.current=B,E(B))},[]),M=l||O,j=s||S,N=_.useRef(null),R=_.useRef(null),P=_.useRef(m),L=f!=null,Y=ly(f),z=ly(i),H=ly(d),V=_.useCallback(()=>{if(!N.current||!R.current)return;const B={placement:t,strategy:n,middleware:y};z.current&&(B.platform=z.current),b9(N.current,R.current,B).then(W=>{const le={...W,isPositioned:H.current!==!1};Q.current&&!vh(P.current,le)&&(P.current=le,Qc.flushSync(()=>{p(le)}))})},[y,t,n,z,H]);ih(()=>{d===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(B=>({...B,isPositioned:!1})))},[d]);const Q=_.useRef(!1);ih(()=>(Q.current=!0,()=>{Q.current=!1}),[]),ih(()=>{if(M&&(N.current=M),j&&(R.current=j),M&&j){if(Y.current)return Y.current(M,j,V);V()}},[M,j,V,Y,L]);const K=_.useMemo(()=>({reference:N,floating:R,setReference:T,setFloating:A}),[T,A]),k=_.useMemo(()=>({reference:M,floating:j}),[M,j]),q=_.useMemo(()=>{const B={position:n,left:0,top:0};if(!k.floating)return B;const W=Gj(k.floating,m.x),le=Gj(k.floating,m.y);return c?{...B,transform:"translate("+W+"px, "+le+"px)",...v$(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:le}},[n,c,k.floating,m.x,m.y]);return _.useMemo(()=>({...m,update:V,refs:K,elements:k,floatingStyles:q}),[m,V,K,k,q])}const O9=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:i}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?Fj({element:r.current,padding:i}).fn(n):{}:r?Fj({element:r,padding:i}).fn(n):{}}}},_9=(e,t)=>({...h9(e),options:[e,t]}),E9=(e,t)=>({...p9(e),options:[e,t]}),A9=(e,t)=>({...y9(e),options:[e,t]}),T9=(e,t)=>({...m9(e),options:[e,t]}),j9=(e,t)=>({...v9(e),options:[e,t]}),C9=(e,t)=>({...g9(e),options:[e,t]}),M9=(e,t)=>({...O9(e),options:[e,t]});var N9="Arrow",g$=_.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...l}=e;return v.jsx(Re.svg,{...l,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:v.jsx("polygon",{points:"0,0 30,0 15,10"})})});g$.displayName=N9;var R9=g$;function P9(e){const[t,n]=_.useState(void 0);return zt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const l=i[0];let s,c;if("borderBoxSize"in l){const f=l.borderBoxSize,d=Array.isArray(f)?f[0]:f;s=d.inlineSize,c=d.blockSize}else s=e.offsetWidth,c=e.offsetHeight;n({width:s,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var ES="Popper",[y$,Ms]=Lr(ES),[D9,b$]=y$(ES),x$=e=>{const{__scopePopper:t,children:n}=e,[r,i]=_.useState(null);return v.jsx(D9,{scope:t,anchor:r,onAnchorChange:i,children:n})};x$.displayName=ES;var w$="PopperAnchor",S$=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,l=b$(w$,n),s=_.useRef(null),c=We(t,s),f=_.useRef(null);return _.useEffect(()=>{const d=f.current;f.current=(r==null?void 0:r.current)||s.current,d!==f.current&&l.onAnchorChange(f.current)}),r?null:v.jsx(Re.div,{...i,ref:c})});S$.displayName=w$;var AS="PopperContent",[k9,$9]=y$(AS),O$=_.forwardRef((e,t)=>{var ce,he,ie,pe,ve,ne;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:l="center",alignOffset:s=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:m=0,sticky:p="partial",hideWhenDetached:y=!1,updatePositionStrategy:x="optimized",onPlaced:O,...w}=e,S=b$(AS,n),[E,T]=_.useState(null),A=We(t,Pe=>T(Pe)),[M,j]=_.useState(null),N=P9(M),R=(N==null?void 0:N.width)??0,P=(N==null?void 0:N.height)??0,L=r+(l!=="center"?"-"+l:""),Y=typeof m=="number"?m:{top:0,right:0,bottom:0,left:0,...m},z=Array.isArray(d)?d:[d],H=z.length>0,V={padding:Y,boundary:z.filter(I9),altBoundary:H},{refs:Q,floatingStyles:K,placement:k,isPositioned:q,middlewareData:B}=S9({strategy:"fixed",placement:L,whileElementsMounted:(...Pe)=>d9(...Pe,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[_9({mainAxis:i+P,alignmentAxis:s}),f&&E9({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?A9():void 0,...V}),f&&T9({...V}),j9({...V,apply:({elements:Pe,rects:Ee,availableWidth:Xe,availableHeight:Ge})=>{const{width:at,height:un}=Ee.reference,ht=Pe.floating.style;ht.setProperty("--radix-popper-available-width",`${Xe}px`),ht.setProperty("--radix-popper-available-height",`${Ge}px`),ht.setProperty("--radix-popper-anchor-width",`${at}px`),ht.setProperty("--radix-popper-anchor-height",`${un}px`)}}),M&&M9({element:M,padding:c}),z9({arrowWidth:R,arrowHeight:P}),y&&C9({strategy:"referenceHidden",...V})]}),[W,le]=A$(k),$=Rr(O);zt(()=>{q&&($==null||$())},[q,$]);const F=(ce=B.arrow)==null?void 0:ce.x,X=(he=B.arrow)==null?void 0:he.y,ae=((ie=B.arrow)==null?void 0:ie.centerOffset)!==0,[de,ge]=_.useState();return zt(()=>{E&&ge(window.getComputedStyle(E).zIndex)},[E]),v.jsx("div",{ref:Q.setFloating,"data-radix-popper-content-wrapper":"",style:{...K,transform:q?K.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:de,"--radix-popper-transform-origin":[(pe=B.transformOrigin)==null?void 0:pe.x,(ve=B.transformOrigin)==null?void 0:ve.y].join(" "),...((ne=B.hide)==null?void 0:ne.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:v.jsx(k9,{scope:n,placedSide:W,onArrowChange:j,arrowX:F,arrowY:X,shouldHideArrow:ae,children:v.jsx(Re.div,{"data-side":W,"data-align":le,...w,ref:A,style:{...w.style,animation:q?void 0:"none"}})})})});O$.displayName=AS;var _$="PopperArrow",L9={top:"bottom",right:"left",bottom:"top",left:"right"},E$=_.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,l=$9(_$,r),s=L9[l.placedSide];return v.jsx("span",{ref:l.onArrowChange,style:{position:"absolute",left:l.arrowX,top:l.arrowY,[s]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[l.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[l.placedSide],visibility:l.shouldHideArrow?"hidden":void 0},children:v.jsx(R9,{...i,ref:n,style:{...i.style,display:"block"}})})});E$.displayName=_$;function I9(e){return e!==null}var z9=e=>({name:"transformOrigin",options:e,fn(t){var S,E,T;const{placement:n,rects:r,middlewareData:i}=t,s=((S=i.arrow)==null?void 0:S.centerOffset)!==0,c=s?0:e.arrowWidth,f=s?0:e.arrowHeight,[d,m]=A$(n),p={start:"0%",center:"50%",end:"100%"}[m],y=(((E=i.arrow)==null?void 0:E.x)??0)+c/2,x=(((T=i.arrow)==null?void 0:T.y)??0)+f/2;let O="",w="";return d==="bottom"?(O=s?p:`${y}px`,w=`${-f}px`):d==="top"?(O=s?p:`${y}px`,w=`${r.floating.height+f}px`):d==="right"?(O=`${-f}px`,w=s?p:`${x}px`):d==="left"&&(O=`${r.floating.width+f}px`,w=s?p:`${x}px`),{data:{x:O,y:w}}}});function A$(e){const[t,n="center"]=e.split("-");return[t,n]}var TS=x$,jS=S$,CS=O$,MS=E$,B9="Portal",nf=_.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[i,l]=_.useState(!1);zt(()=>l(!0),[]);const s=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return s?Tk.createPortal(v.jsx(Re.div,{...r,ref:t}),s):null});nf.displayName=B9;function q9(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var gr=e=>{const{present:t,children:n}=e,r=U9(t),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),l=We(r.ref,H9(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:l}):null};gr.displayName="Presence";function U9(e){const[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),l=_.useRef("none"),s=e?"mounted":"unmounted",[c,f]=q9(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const d=Ld(r.current);l.current=c==="mounted"?d:"none"},[c]),zt(()=>{const d=r.current,m=i.current;if(m!==e){const y=l.current,x=Ld(d);e?f("MOUNT"):x==="none"||(d==null?void 0:d.display)==="none"?f("UNMOUNT"):f(m&&y!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),zt(()=>{if(t){let d;const m=t.ownerDocument.defaultView??window,p=x=>{const w=Ld(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&w&&(f("ANIMATION_END"),!i.current)){const S=t.style.animationFillMode;t.style.animationFillMode="forwards",d=m.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=S)})}},y=x=>{x.target===t&&(l.current=Ld(r.current))};return t.addEventListener("animationstart",y),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{m.clearTimeout(d),t.removeEventListener("animationstart",y),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:_.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Ld(e){return(e==null?void 0:e.animationName)||"none"}function H9(e){var r,i;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(i=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:i.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var sy="rovingFocusGroup.onEntryFocus",F9={bubbles:!1,cancelable:!0},rf="RovingFocusGroup",[Ow,T$,G9]=gS(rf),[V9,Pp]=Lr(rf,[G9]),[Y9,W9]=V9(rf),j$=_.forwardRef((e,t)=>v.jsx(Ow.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(Ow.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(K9,{...e,ref:t})})}));j$.displayName=rf;var K9=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:l,currentTabStopId:s,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:m=!1,...p}=e,y=_.useRef(null),x=We(t,y),O=Tp(l),[w,S]=Ti({prop:s,defaultProp:c??null,onChange:f,caller:rf}),[E,T]=_.useState(!1),A=Rr(d),M=T$(n),j=_.useRef(!1),[N,R]=_.useState(0);return _.useEffect(()=>{const P=y.current;if(P)return P.addEventListener(sy,A),()=>P.removeEventListener(sy,A)},[A]),v.jsx(Y9,{scope:n,orientation:r,dir:O,loop:i,currentTabStopId:w,onItemFocus:_.useCallback(P=>S(P),[S]),onItemShiftTab:_.useCallback(()=>T(!0),[]),onFocusableItemAdd:_.useCallback(()=>R(P=>P+1),[]),onFocusableItemRemove:_.useCallback(()=>R(P=>P-1),[]),children:v.jsx(Re.div,{tabIndex:E||N===0?-1:0,"data-orientation":r,...p,ref:x,style:{outline:"none",...e.style},onMouseDown:be(e.onMouseDown,()=>{j.current=!0}),onFocus:be(e.onFocus,P=>{const L=!j.current;if(P.target===P.currentTarget&&L&&!E){const Y=new CustomEvent(sy,F9);if(P.currentTarget.dispatchEvent(Y),!Y.defaultPrevented){const z=M().filter(k=>k.focusable),H=z.find(k=>k.active),V=z.find(k=>k.id===w),K=[H,V,...z].filter(Boolean).map(k=>k.ref.current);N$(K,m)}}j.current=!1}),onBlur:be(e.onBlur,()=>T(!1))})})}),C$="RovingFocusGroupItem",M$=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,children:s,...c}=e,f=dr(),d=l||f,m=W9(C$,n),p=m.currentTabStopId===d,y=T$(n),{onFocusableItemAdd:x,onFocusableItemRemove:O,currentTabStopId:w}=m;return _.useEffect(()=>{if(r)return x(),()=>O()},[r,x,O]),v.jsx(Ow.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:v.jsx(Re.span,{tabIndex:p?0:-1,"data-orientation":m.orientation,...c,ref:t,onMouseDown:be(e.onMouseDown,S=>{r?m.onItemFocus(d):S.preventDefault()}),onFocus:be(e.onFocus,()=>m.onItemFocus(d)),onKeyDown:be(e.onKeyDown,S=>{if(S.key==="Tab"&&S.shiftKey){m.onItemShiftTab();return}if(S.target!==S.currentTarget)return;const E=Z9(S,m.orientation,m.dir);if(E!==void 0){if(S.metaKey||S.ctrlKey||S.altKey||S.shiftKey)return;S.preventDefault();let A=y().filter(M=>M.focusable).map(M=>M.ref.current);if(E==="last")A.reverse();else if(E==="prev"||E==="next"){E==="prev"&&A.reverse();const M=A.indexOf(S.currentTarget);A=m.loop?J9(A,M+1):A.slice(M+1)}setTimeout(()=>N$(A))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:w!=null}):s})})});M$.displayName=C$;var X9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Q9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Z9(e,t,n){const r=Q9(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return X9[r]}function N$(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function J9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var R$=j$,P$=M$,e7=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jl=new WeakMap,Id=new WeakMap,zd={},uy=0,D$=function(e){return e&&(e.host||D$(e.parentNode))},t7=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=D$(n);return r&&e.contains(r)?r:(console.error("aria-hidden",n,"in not contained inside",e,". Doing nothing"),null)}).filter(function(n){return!!n})},n7=function(e,t,n,r){var i=t7(t,Array.isArray(e)?e:[e]);zd[n]||(zd[n]=new WeakMap);var l=zd[n],s=[],c=new Set,f=new Set(i),d=function(p){!p||c.has(p)||(c.add(p),d(p.parentNode))};i.forEach(d);var m=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(y){if(c.has(y))m(y);else try{var x=y.getAttribute(r),O=x!==null&&x!=="false",w=(jl.get(y)||0)+1,S=(l.get(y)||0)+1;jl.set(y,w),l.set(y,S),s.push(y),w===1&&O&&Id.set(y,!0),S===1&&y.setAttribute(n,"true"),O||y.setAttribute(r,"true")}catch(E){console.error("aria-hidden: cannot operate on ",y,E)}})};return m(t),c.clear(),uy++,function(){s.forEach(function(p){var y=jl.get(p)-1,x=l.get(p)-1;jl.set(p,y),l.set(p,x),y||(Id.has(p)||p.removeAttribute(r),Id.delete(p)),x||p.removeAttribute(n)}),uy--,uy||(jl=new WeakMap,jl=new WeakMap,Id=new WeakMap,zd={})}},NS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=e7(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),n7(r,i,n,"aria-hidden")):function(){return null}},Qr=function(){return Qr=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(t[l]=n[l])}return t},Qr.apply(this,arguments)};function k$(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function r7(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,l;r<i;r++)(l||!(r in t))&&(l||(l=Array.prototype.slice.call(t,0,r)),l[r]=t[r]);return e.concat(l||Array.prototype.slice.call(t))}var oh="right-scroll-bar-position",lh="width-before-scroll-bar",a7="with-scroll-bars-hidden",i7="--removed-body-scroll-bar-size";function cy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function o7(e,t){var n=_.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(r){var i=n.value;i!==r&&(n.value=r,n.callback(r,i))}}}})[0];return n.callback=t,n.facade}var l7=typeof window<"u"?_.useLayoutEffect:_.useEffect,Vj=new WeakMap;function s7(e,t){var n=o7(null,function(r){return e.forEach(function(i){return cy(i,r)})});return l7(function(){var r=Vj.get(n);if(r){var i=new Set(r),l=new Set(e),s=n.current;i.forEach(function(c){l.has(c)||cy(c,null)}),l.forEach(function(c){i.has(c)||cy(c,s)})}Vj.set(n,e)},[e]),n}function u7(e){return e}function c7(e,t){t===void 0&&(t=u7);var n=[],r=!1,i={read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(l){var s=t(l,r);return n.push(s),function(){n=n.filter(function(c){return c!==s})}},assignSyncMedium:function(l){for(r=!0;n.length;){var s=n;n=[],s.forEach(l)}n={push:function(c){return l(c)},filter:function(){return n}}},assignMedium:function(l){r=!0;var s=[];if(n.length){var c=n;n=[],c.forEach(l),s=n}var f=function(){var m=s;s=[],m.forEach(l)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(m){s.push(m),d()},filter:function(m){return s=s.filter(m),n}}}};return i}function f7(e){e===void 0&&(e={});var t=c7(null);return t.options=Qr({async:!0,ssr:!1},e),t}var $$=function(e){var t=e.sideCar,n=k$(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return _.createElement(r,Qr({},n))};$$.isSideCarExport=!0;function d7(e,t){return e.useMedium(t),$$}var L$=f7(),fy=function(){},Dp=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:fy,onWheelCapture:fy,onTouchMoveCapture:fy}),i=r[0],l=r[1],s=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,m=e.enabled,p=e.shards,y=e.sideCar,x=e.noRelative,O=e.noIsolation,w=e.inert,S=e.allowPinchZoom,E=e.as,T=E===void 0?"div":E,A=e.gapMode,M=k$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=y,N=s7([n,t]),R=Qr(Qr({},M),i);return _.createElement(_.Fragment,null,m&&_.createElement(j,{sideCar:L$,removeScrollBar:d,shards:p,noRelative:x,noIsolation:O,inert:w,setCallbacks:l,allowPinchZoom:!!S,lockRef:n,gapMode:A}),s?_.cloneElement(_.Children.only(c),Qr(Qr({},R),{ref:N})):_.createElement(T,Qr({},R,{className:f,ref:N}),c))});Dp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Dp.classNames={fullWidth:lh,zeroRight:oh};var h7=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function p7(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=h7();return t&&e.setAttribute("nonce",t),e}function m7(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function v7(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var g7=function(){var e=0,t=null;return{add:function(n){e==0&&(t=p7())&&(m7(t,n),v7(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},y7=function(){var e=g7();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},I$=function(){var e=y7(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},b7={left:0,top:0,right:0,gap:0},dy=function(e){return parseInt(e||"",10)||0},x7=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],r=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[dy(n),dy(r),dy(i)]},w7=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return b7;var t=x7(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},S7=I$(),Fl="data-scroll-locked",O7=function(e,t,n,r){var i=e.left,l=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
239
|
-
.`.concat(a7,` {
|
|
240
|
-
overflow: hidden `).concat(r,`;
|
|
241
|
-
padding-right: `).concat(c,"px ").concat(r,`;
|
|
242
|
-
}
|
|
243
|
-
body[`).concat(Fl,`] {
|
|
244
|
-
overflow: hidden `).concat(r,`;
|
|
245
|
-
overscroll-behavior: contain;
|
|
246
|
-
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
247
|
-
padding-left: `.concat(i,`px;
|
|
248
|
-
padding-top: `).concat(l,`px;
|
|
249
|
-
padding-right: `).concat(s,`px;
|
|
250
|
-
margin-left:0;
|
|
251
|
-
margin-top:0;
|
|
252
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
253
|
-
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
.`).concat(oh,` {
|
|
257
|
-
right: `).concat(c,"px ").concat(r,`;
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
.`).concat(lh,` {
|
|
261
|
-
margin-right: `).concat(c,"px ").concat(r,`;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.`).concat(oh," .").concat(oh,` {
|
|
265
|
-
right: 0 `).concat(r,`;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
.`).concat(lh," .").concat(lh,` {
|
|
269
|
-
margin-right: 0 `).concat(r,`;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
body[`).concat(Fl,`] {
|
|
273
|
-
`).concat(i7,": ").concat(c,`px;
|
|
274
|
-
}
|
|
275
|
-
`)},Yj=function(){var e=parseInt(document.body.getAttribute(Fl)||"0",10);return isFinite(e)?e:0},_7=function(){_.useEffect(function(){return document.body.setAttribute(Fl,(Yj()+1).toString()),function(){var e=Yj()-1;e<=0?document.body.removeAttribute(Fl):document.body.setAttribute(Fl,e.toString())}},[])},E7=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;_7();var l=_.useMemo(function(){return w7(i)},[i]);return _.createElement(S7,{styles:O7(l,!t,i,n?"":"!important")})},_w=!1;if(typeof window<"u")try{var Bd=Object.defineProperty({},"passive",{get:function(){return _w=!0,!0}});window.addEventListener("test",Bd,Bd),window.removeEventListener("test",Bd,Bd)}catch{_w=!1}var Cl=_w?{passive:!1}:!1,A7=function(e){return e.tagName==="TEXTAREA"},z$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!A7(e)&&n[t]==="visible")},T7=function(e){return z$(e,"overflowY")},j7=function(e){return z$(e,"overflowX")},Wj=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=B$(e,r);if(i){var l=q$(e,r),s=l[1],c=l[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},C7=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},M7=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},B$=function(e,t){return e==="v"?T7(t):j7(t)},q$=function(e,t){return e==="v"?C7(t):M7(t)},N7=function(e,t){return e==="h"&&t==="rtl"?-1:1},R7=function(e,t,n,r,i){var l=N7(e,window.getComputedStyle(t).direction),s=l*r,c=n.target,f=t.contains(c),d=!1,m=s>0,p=0,y=0;do{if(!c)break;var x=q$(e,c),O=x[0],w=x[1],S=x[2],E=w-S-l*O;(O||E)&&B$(e,c)&&(p+=E,y+=O);var T=c.parentNode;c=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(m&&Math.abs(p)<1||!m&&Math.abs(y)<1)&&(d=!0),d},qd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Kj=function(e){return[e.deltaX,e.deltaY]},Xj=function(e){return e&&"current"in e?e.current:e},P7=function(e,t){return e[0]===t[0]&&e[1]===t[1]},D7=function(e){return`
|
|
276
|
-
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
277
|
-
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
278
|
-
`)},k7=0,Ml=[];function $7(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(k7++)[0],l=_.useState(I$)[0],s=_.useRef(e);_.useEffect(function(){s.current=e},[e]),_.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var w=r7([e.lockRef.current],(e.shards||[]).map(Xj),!0).filter(Boolean);return w.forEach(function(S){return S.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),w.forEach(function(S){return S.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=_.useCallback(function(w,S){if("touches"in w&&w.touches.length===2||w.type==="wheel"&&w.ctrlKey)return!s.current.allowPinchZoom;var E=qd(w),T=n.current,A="deltaX"in w?w.deltaX:T[0]-E[0],M="deltaY"in w?w.deltaY:T[1]-E[1],j,N=w.target,R=Math.abs(A)>Math.abs(M)?"h":"v";if("touches"in w&&R==="h"&&N.type==="range")return!1;var P=Wj(R,N);if(!P)return!0;if(P?j=R:(j=R==="v"?"h":"v",P=Wj(R,N)),!P)return!1;if(!r.current&&"changedTouches"in w&&(A||M)&&(r.current=j),!j)return!0;var L=r.current||j;return R7(L,S,w,L==="h"?A:M)},[]),f=_.useCallback(function(w){var S=w;if(!(!Ml.length||Ml[Ml.length-1]!==l)){var E="deltaY"in S?Kj(S):qd(S),T=t.current.filter(function(j){return j.name===S.type&&(j.target===S.target||S.target===j.shadowParent)&&P7(j.delta,E)})[0];if(T&&T.should){S.cancelable&&S.preventDefault();return}if(!T){var A=(s.current.shards||[]).map(Xj).filter(Boolean).filter(function(j){return j.contains(S.target)}),M=A.length>0?c(S,A[0]):!s.current.noIsolation;M&&S.cancelable&&S.preventDefault()}}},[]),d=_.useCallback(function(w,S,E,T){var A={name:w,delta:S,target:E,should:T,shadowParent:L7(E)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(M){return M!==A})},1)},[]),m=_.useCallback(function(w){n.current=qd(w),r.current=void 0},[]),p=_.useCallback(function(w){d(w.type,Kj(w),w.target,c(w,e.lockRef.current))},[]),y=_.useCallback(function(w){d(w.type,qd(w),w.target,c(w,e.lockRef.current))},[]);_.useEffect(function(){return Ml.push(l),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",f,Cl),document.addEventListener("touchmove",f,Cl),document.addEventListener("touchstart",m,Cl),function(){Ml=Ml.filter(function(w){return w!==l}),document.removeEventListener("wheel",f,Cl),document.removeEventListener("touchmove",f,Cl),document.removeEventListener("touchstart",m,Cl)}},[]);var x=e.removeScrollBar,O=e.inert;return _.createElement(_.Fragment,null,O?_.createElement(l,{styles:D7(i)}):null,x?_.createElement(E7,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function L7(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const I7=d7(L$,$7);var kp=_.forwardRef(function(e,t){return _.createElement(Dp,Qr({},e,{ref:t,sideCar:I7}))});kp.classNames=Dp.classNames;var Ew=["Enter"," "],z7=["ArrowDown","PageUp","Home"],U$=["ArrowUp","PageDown","End"],B7=[...z7,...U$],q7={ltr:[...Ew,"ArrowRight"],rtl:[...Ew,"ArrowLeft"]},U7={ltr:["ArrowLeft"],rtl:["ArrowRight"]},af="Menu",[uc,H7,F7]=gS(af),[Po,H$]=Lr(af,[F7,Ms,Pp]),$p=Ms(),F$=Pp(),[G7,Do]=Po(af),[V7,of]=Po(af),G$=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:s=!0}=e,c=$p(t),[f,d]=_.useState(null),m=_.useRef(!1),p=Rr(l),y=Tp(i);return _.useEffect(()=>{const x=()=>{m.current=!0,document.addEventListener("pointerdown",O,{capture:!0,once:!0}),document.addEventListener("pointermove",O,{capture:!0,once:!0})},O=()=>m.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",O,{capture:!0}),document.removeEventListener("pointermove",O,{capture:!0})}},[]),v.jsx(TS,{...c,children:v.jsx(G7,{scope:t,open:n,onOpenChange:p,content:f,onContentChange:d,children:v.jsx(V7,{scope:t,onClose:_.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:y,modal:s,children:r})})})};G$.displayName=af;var Y7="MenuAnchor",RS=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=$p(n);return v.jsx(jS,{...i,...r,ref:t})});RS.displayName=Y7;var PS="MenuPortal",[W7,V$]=Po(PS,{forceMount:void 0}),Y$=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,l=Do(PS,t);return v.jsx(W7,{scope:t,forceMount:n,children:v.jsx(gr,{present:n||l.open,children:v.jsx(nf,{asChild:!0,container:i,children:r})})})};Y$.displayName=PS;var hr="MenuContent",[K7,DS]=Po(hr),W$=_.forwardRef((e,t)=>{const n=V$(hr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=Do(hr,e.__scopeMenu),s=of(hr,e.__scopeMenu);return v.jsx(uc.Provider,{scope:e.__scopeMenu,children:v.jsx(gr,{present:r||l.open,children:v.jsx(uc.Slot,{scope:e.__scopeMenu,children:s.modal?v.jsx(X7,{...i,ref:t}):v.jsx(Q7,{...i,ref:t})})})})}),X7=_.forwardRef((e,t)=>{const n=Do(hr,e.__scopeMenu),r=_.useRef(null),i=We(t,r);return _.useEffect(()=>{const l=r.current;if(l)return NS(l)},[]),v.jsx(kS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:be(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),Q7=_.forwardRef((e,t)=>{const n=Do(hr,e.__scopeMenu);return v.jsx(kS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),Z7=Xl("MenuContent.ScrollLock"),kS=_.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:l,onCloseAutoFocus:s,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:y,onDismiss:x,disableOutsideScroll:O,...w}=e,S=Do(hr,n),E=of(hr,n),T=$p(n),A=F$(n),M=H7(n),[j,N]=_.useState(null),R=_.useRef(null),P=We(t,R,S.onContentChange),L=_.useRef(0),Y=_.useRef(""),z=_.useRef(0),H=_.useRef(null),V=_.useRef("right"),Q=_.useRef(0),K=O?kp:_.Fragment,k=O?{as:Z7,allowPinchZoom:!0}:void 0,q=W=>{var ce,he;const le=Y.current+W,$=M().filter(ie=>!ie.disabled),F=document.activeElement,X=(ce=$.find(ie=>ie.ref.current===F))==null?void 0:ce.textValue,ae=$.map(ie=>ie.textValue),de=cF(ae,le,X),ge=(he=$.find(ie=>ie.textValue===de))==null?void 0:he.ref.current;(function ie(pe){Y.current=pe,window.clearTimeout(L.current),pe!==""&&(L.current=window.setTimeout(()=>ie(""),1e3))})(le),ge&&setTimeout(()=>ge.focus())};_.useEffect(()=>()=>window.clearTimeout(L.current),[]),yS();const B=_.useCallback(W=>{var $,F;return V.current===(($=H.current)==null?void 0:$.side)&&dF(W,(F=H.current)==null?void 0:F.area)},[]);return v.jsx(K7,{scope:n,searchRef:Y,onItemEnter:_.useCallback(W=>{B(W)&&W.preventDefault()},[B]),onItemLeave:_.useCallback(W=>{var le;B(W)||((le=R.current)==null||le.focus(),N(null))},[B]),onTriggerLeave:_.useCallback(W=>{B(W)&&W.preventDefault()},[B]),pointerGraceTimerRef:z,onPointerGraceIntentChange:_.useCallback(W=>{H.current=W},[]),children:v.jsx(K,{...k,children:v.jsx(jp,{asChild:!0,trapped:i,onMountAutoFocus:be(l,W=>{var le;W.preventDefault(),(le=R.current)==null||le.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:v.jsx(ef,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:y,onDismiss:x,children:v.jsx(R$,{asChild:!0,...A,dir:E.dir,orientation:"vertical",loop:r,currentTabStopId:j,onCurrentTabStopIdChange:N,onEntryFocus:be(f,W=>{E.isUsingKeyboardRef.current||W.preventDefault()}),preventScrollOnEntryFocus:!0,children:v.jsx(CS,{role:"menu","aria-orientation":"vertical","data-state":cL(S.open),"data-radix-menu-content":"",dir:E.dir,...T,...w,ref:P,style:{outline:"none",...w.style},onKeyDown:be(w.onKeyDown,W=>{const $=W.target.closest("[data-radix-menu-content]")===W.currentTarget,F=W.ctrlKey||W.altKey||W.metaKey,X=W.key.length===1;$&&(W.key==="Tab"&&W.preventDefault(),!F&&X&&q(W.key));const ae=R.current;if(W.target!==ae||!B7.includes(W.key))return;W.preventDefault();const ge=M().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);U$.includes(W.key)&&ge.reverse(),sF(ge)}),onBlur:be(e.onBlur,W=>{W.currentTarget.contains(W.target)||(window.clearTimeout(L.current),Y.current="")}),onPointerMove:be(e.onPointerMove,cc(W=>{const le=W.target,$=Q.current!==W.clientX;if(W.currentTarget.contains(le)&&$){const F=W.clientX>Q.current?"right":"left";V.current=F,Q.current=W.clientX}}))})})})})})})});W$.displayName=hr;var J7="MenuGroup",$S=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Re.div,{role:"group",...r,ref:t})});$S.displayName=J7;var eF="MenuLabel",K$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Re.div,{...r,ref:t})});K$.displayName=eF;var gh="MenuItem",Qj="menu.itemSelect",Lp=_.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,l=_.useRef(null),s=of(gh,e.__scopeMenu),c=DS(gh,e.__scopeMenu),f=We(t,l),d=_.useRef(!1),m=()=>{const p=l.current;if(!n&&p){const y=new CustomEvent(Qj,{bubbles:!0,cancelable:!0});p.addEventListener(Qj,x=>r==null?void 0:r(x),{once:!0}),n$(p,y),y.defaultPrevented?d.current=!1:s.onClose()}};return v.jsx(X$,{...i,ref:f,disabled:n,onClick:be(e.onClick,m),onPointerDown:p=>{var y;(y=e.onPointerDown)==null||y.call(e,p),d.current=!0},onPointerUp:be(e.onPointerUp,p=>{var y;d.current||(y=p.currentTarget)==null||y.click()}),onKeyDown:be(e.onKeyDown,p=>{const y=c.searchRef.current!=="";n||y&&p.key===" "||Ew.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Lp.displayName=gh;var X$=_.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...l}=e,s=DS(gh,n),c=F$(n),f=_.useRef(null),d=We(t,f),[m,p]=_.useState(!1),[y,x]=_.useState("");return _.useEffect(()=>{const O=f.current;O&&x((O.textContent??"").trim())},[l.children]),v.jsx(uc.ItemSlot,{scope:n,disabled:r,textValue:i??y,children:v.jsx(P$,{asChild:!0,...c,focusable:!r,children:v.jsx(Re.div,{role:"menuitem","data-highlighted":m?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...l,ref:d,onPointerMove:be(e.onPointerMove,cc(O=>{r?s.onItemLeave(O):(s.onItemEnter(O),O.defaultPrevented||O.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:be(e.onPointerLeave,cc(O=>s.onItemLeave(O))),onFocus:be(e.onFocus,()=>p(!0)),onBlur:be(e.onBlur,()=>p(!1))})})})}),tF="MenuCheckboxItem",Q$=_.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return v.jsx(nL,{scope:e.__scopeMenu,checked:n,children:v.jsx(Lp,{role:"menuitemcheckbox","aria-checked":yh(n)?"mixed":n,...i,ref:t,"data-state":IS(n),onSelect:be(i.onSelect,()=>r==null?void 0:r(yh(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Q$.displayName=tF;var Z$="MenuRadioGroup",[nF,rF]=Po(Z$,{value:void 0,onValueChange:()=>{}}),J$=_.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,l=Rr(r);return v.jsx(nF,{scope:e.__scopeMenu,value:n,onValueChange:l,children:v.jsx($S,{...i,ref:t})})});J$.displayName=Z$;var eL="MenuRadioItem",tL=_.forwardRef((e,t)=>{const{value:n,...r}=e,i=rF(eL,e.__scopeMenu),l=n===i.value;return v.jsx(nL,{scope:e.__scopeMenu,checked:l,children:v.jsx(Lp,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":IS(l),onSelect:be(r.onSelect,()=>{var s;return(s=i.onValueChange)==null?void 0:s.call(i,n)},{checkForDefaultPrevented:!1})})})});tL.displayName=eL;var LS="MenuItemIndicator",[nL,aF]=Po(LS,{checked:!1}),rL=_.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,l=aF(LS,n);return v.jsx(gr,{present:r||yh(l.checked)||l.checked===!0,children:v.jsx(Re.span,{...i,ref:t,"data-state":IS(l.checked)})})});rL.displayName=LS;var iF="MenuSeparator",aL=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});aL.displayName=iF;var oF="MenuArrow",iL=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=$p(n);return v.jsx(MS,{...i,...r,ref:t})});iL.displayName=oF;var lF="MenuSub",[che,oL]=Po(lF),Wu="MenuSubTrigger",lL=_.forwardRef((e,t)=>{const n=Do(Wu,e.__scopeMenu),r=of(Wu,e.__scopeMenu),i=oL(Wu,e.__scopeMenu),l=DS(Wu,e.__scopeMenu),s=_.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=l,d={__scopeMenu:e.__scopeMenu},m=_.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return _.useEffect(()=>m,[m]),_.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),f(null)}},[c,f]),v.jsx(RS,{asChild:!0,...d,children:v.jsx(X$,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":cL(n.open),...e,ref:Jc(t,i.onTriggerChange),onClick:p=>{var y;(y=e.onClick)==null||y.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:be(e.onPointerMove,cc(p=>{l.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!s.current&&(l.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),m()},100))})),onPointerLeave:be(e.onPointerLeave,cc(p=>{var x,O;m();const y=(x=n.content)==null?void 0:x.getBoundingClientRect();if(y){const w=(O=n.content)==null?void 0:O.dataset.side,S=w==="right",E=S?-5:5,T=y[S?"left":"right"],A=y[S?"right":"left"];l.onPointerGraceIntentChange({area:[{x:p.clientX+E,y:p.clientY},{x:T,y:y.top},{x:A,y:y.top},{x:A,y:y.bottom},{x:T,y:y.bottom}],side:w}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>l.onPointerGraceIntentChange(null),300)}else{if(l.onTriggerLeave(p),p.defaultPrevented)return;l.onPointerGraceIntentChange(null)}})),onKeyDown:be(e.onKeyDown,p=>{var x;const y=l.searchRef.current!=="";e.disabled||y&&p.key===" "||q7[r.dir].includes(p.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),p.preventDefault())})})})});lL.displayName=Wu;var sL="MenuSubContent",uL=_.forwardRef((e,t)=>{const n=V$(hr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=Do(hr,e.__scopeMenu),s=of(hr,e.__scopeMenu),c=oL(sL,e.__scopeMenu),f=_.useRef(null),d=We(t,f);return v.jsx(uc.Provider,{scope:e.__scopeMenu,children:v.jsx(gr,{present:r||l.open,children:v.jsx(uc.Slot,{scope:e.__scopeMenu,children:v.jsx(kS,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:d,align:"start",side:s.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:m=>{var p;s.isUsingKeyboardRef.current&&((p=f.current)==null||p.focus()),m.preventDefault()},onCloseAutoFocus:m=>m.preventDefault(),onFocusOutside:be(e.onFocusOutside,m=>{m.target!==c.trigger&&l.onOpenChange(!1)}),onEscapeKeyDown:be(e.onEscapeKeyDown,m=>{s.onClose(),m.preventDefault()}),onKeyDown:be(e.onKeyDown,m=>{var x;const p=m.currentTarget.contains(m.target),y=U7[s.dir].includes(m.key);p&&y&&(l.onOpenChange(!1),(x=c.trigger)==null||x.focus(),m.preventDefault())})})})})})});uL.displayName=sL;function cL(e){return e?"open":"closed"}function yh(e){return e==="indeterminate"}function IS(e){return yh(e)?"indeterminate":e?"checked":"unchecked"}function sF(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function uF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function cF(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let s=uF(e,Math.max(l,0));i.length===1&&(s=s.filter(d=>d!==n));const f=s.find(d=>d.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function fF(e,t){const{x:n,y:r}=e;let i=!1;for(let l=0,s=t.length-1;l<t.length;s=l++){const c=t[l],f=t[s],d=c.x,m=c.y,p=f.x,y=f.y;m>r!=y>r&&n<(p-d)*(r-m)/(y-m)+d&&(i=!i)}return i}function dF(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return fF(n,t)}function cc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var hF=G$,pF=RS,mF=Y$,vF=W$,gF=$S,yF=K$,bF=Lp,xF=Q$,wF=J$,SF=tL,OF=rL,_F=aL,EF=iL,AF=lL,TF=uL,Ip="DropdownMenu",[jF]=Lr(Ip,[H$]),wn=H$(),[CF,fL]=jF(Ip),dL=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:l,onOpenChange:s,modal:c=!0}=e,f=wn(t),d=_.useRef(null),[m,p]=Ti({prop:i,defaultProp:l??!1,onChange:s,caller:Ip});return v.jsx(CF,{scope:t,triggerId:dr(),triggerRef:d,contentId:dr(),open:m,onOpenChange:p,onOpenToggle:_.useCallback(()=>p(y=>!y),[p]),modal:c,children:v.jsx(hF,{...f,open:m,onOpenChange:p,dir:r,modal:c,children:n})})};dL.displayName=Ip;var hL="DropdownMenuTrigger",pL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,l=fL(hL,n),s=wn(n);return v.jsx(pF,{asChild:!0,...s,children:v.jsx(Re.button,{type:"button",id:l.triggerId,"aria-haspopup":"menu","aria-expanded":l.open,"aria-controls":l.open?l.contentId:void 0,"data-state":l.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:Jc(t,l.triggerRef),onPointerDown:be(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(l.onOpenToggle(),l.open||c.preventDefault())}),onKeyDown:be(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&l.onOpenToggle(),c.key==="ArrowDown"&&l.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});pL.displayName=hL;var MF="DropdownMenuPortal",mL=e=>{const{__scopeDropdownMenu:t,...n}=e,r=wn(t);return v.jsx(mF,{...r,...n})};mL.displayName=MF;var vL="DropdownMenuContent",gL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=fL(vL,n),l=wn(n),s=_.useRef(!1);return v.jsx(vF,{id:i.contentId,"aria-labelledby":i.triggerId,...l,...r,ref:t,onCloseAutoFocus:be(e.onCloseAutoFocus,c=>{var f;s.current||(f=i.triggerRef.current)==null||f.focus(),s.current=!1,c.preventDefault()}),onInteractOutside:be(e.onInteractOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,m=f.button===2||d;(!i.modal||m)&&(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});gL.displayName=vL;var NF="DropdownMenuGroup",RF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(gF,{...i,...r,ref:t})});RF.displayName=NF;var PF="DropdownMenuLabel",yL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(yF,{...i,...r,ref:t})});yL.displayName=PF;var DF="DropdownMenuItem",bL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(bF,{...i,...r,ref:t})});bL.displayName=DF;var kF="DropdownMenuCheckboxItem",$F=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(xF,{...i,...r,ref:t})});$F.displayName=kF;var LF="DropdownMenuRadioGroup",IF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(wF,{...i,...r,ref:t})});IF.displayName=LF;var zF="DropdownMenuRadioItem",BF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(SF,{...i,...r,ref:t})});BF.displayName=zF;var qF="DropdownMenuItemIndicator",UF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(OF,{...i,...r,ref:t})});UF.displayName=qF;var HF="DropdownMenuSeparator",xL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(_F,{...i,...r,ref:t})});xL.displayName=HF;var FF="DropdownMenuArrow",GF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(EF,{...i,...r,ref:t})});GF.displayName=FF;var VF="DropdownMenuSubTrigger",YF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(AF,{...i,...r,ref:t})});YF.displayName=VF;var WF="DropdownMenuSubContent",KF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(TF,{...i,...r,ref:t,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});KF.displayName=WF;var XF=dL,QF=pL,ZF=mL,JF=gL,eG=yL,tG=bL,nG=xL;function rG({...e}){return v.jsx(XF,{"data-slot":"dropdown-menu",...e})}function aG({...e}){return v.jsx(QF,{"data-slot":"dropdown-menu-trigger",...e})}function iG({className:e,sideOffset:t=4,...n}){return v.jsx(ZF,{children:v.jsx(JF,{className:me("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-[--radix-dropdown-menu-content-available-height] min-w-[8rem] origin-[--radix-dropdown-menu-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"dropdown-menu-content",sideOffset:t,...n})})}function Zj({className:e,inset:t,variant:n="default",...r}){return v.jsx(tG,{className:me("data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[inset]:pl-8 data-[variant=destructive]:text-destructive data-[disabled]:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-inset":t,"data-slot":"dropdown-menu-item","data-variant":n,...r})}function oG({className:e,inset:t,...n}){return v.jsx(eG,{className:me("px-2 py-1.5 font-medium text-sm data-[inset]:pl-8",e),"data-inset":t,"data-slot":"dropdown-menu-label",...n})}function Jj({className:e,...t}){return v.jsx(nG,{className:me("-mx-1 my-1 h-px bg-border",e),"data-slot":"dropdown-menu-separator",...t})}const eC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,tC=Fe,zp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return tC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:l}=t,s=Object.keys(i).map(d=>{const m=n==null?void 0:n[d],p=l==null?void 0:l[d];if(m===null)return null;const y=eC(m)||eC(p);return i[d][y]}),c=n&&Object.entries(n).reduce((d,m)=>{let[p,y]=m;return y===void 0||(d[p]=y),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,m)=>{let{class:p,className:y,...x}=m;return Object.entries(x).every(O=>{let[w,S]=O;return Array.isArray(S)?S.includes({...l,...c}[w]):{...l,...c}[w]===S})?[...d,p,y]:d},[]);return tC(e,s,f,n==null?void 0:n.class,n==null?void 0:n.className)},zS=zp("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-none transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function kt({className:e,variant:t,size:n,asChild:r=!1,...i}){const l=r?No:"button";return v.jsx(l,{className:me(zS({variant:t,size:n,className:e})),"data-slot":"button",...i})}const Bp=_.forwardRef(({className:e,type:t,...n},r)=>v.jsx("input",{className:me("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:r,type:t,...n}));Bp.displayName="Input";var lG="Separator",nC="horizontal",sG=["horizontal","vertical"],wL=_.forwardRef((e,t)=>{const{decorative:n,orientation:r=nC,...i}=e,l=uG(r)?r:nC,c=n?{role:"none"}:{"aria-orientation":l==="vertical"?l:void 0,role:"separator"};return v.jsx(Ro.div,{"data-orientation":l,...c,...i,ref:t})});wL.displayName=lG;function uG(e){return sG.includes(e)}var cG=wL;function Gl({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return v.jsx(cG,{className:me("shrink-0 bg-border data-[orientation=horizontal]:h-px data-[orientation=vertical]:h-full data-[orientation=horizontal]:w-full data-[orientation=vertical]:w-px",e),"data-slot":"separator",decorative:n,orientation:t,...r})}var qp="Dialog",[SL,OL]=Lr(qp),[fG,Ir]=SL(qp),_L=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:l,modal:s=!0}=e,c=_.useRef(null),f=_.useRef(null),[d,m]=Ti({prop:r,defaultProp:i??!1,onChange:l,caller:qp});return v.jsx(fG,{scope:t,triggerRef:c,contentRef:f,contentId:dr(),titleId:dr(),descriptionId:dr(),open:d,onOpenChange:m,onOpenToggle:_.useCallback(()=>m(p=>!p),[m]),modal:s,children:n})};_L.displayName=qp;var EL="DialogTrigger",AL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(EL,n),l=We(t,i.triggerRef);return v.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":US(i.open),...r,ref:l,onClick:be(e.onClick,i.onOpenToggle)})});AL.displayName=EL;var BS="DialogPortal",[dG,TL]=SL(BS,{forceMount:void 0}),jL=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,l=Ir(BS,t);return v.jsx(dG,{scope:t,forceMount:n,children:_.Children.map(r,s=>v.jsx(gr,{present:n||l.open,children:v.jsx(nf,{asChild:!0,container:i,children:s})}))})};jL.displayName=BS;var bh="DialogOverlay",CL=_.forwardRef((e,t)=>{const n=TL(bh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=Ir(bh,e.__scopeDialog);return l.modal?v.jsx(gr,{present:r||l.open,children:v.jsx(pG,{...i,ref:t})}):null});CL.displayName=bh;var hG=Xl("DialogOverlay.RemoveScroll"),pG=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(bh,n);return v.jsx(kp,{as:hG,allowPinchZoom:!0,shards:[i.contentRef],children:v.jsx(Re.div,{"data-state":US(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Oo="DialogContent",ML=_.forwardRef((e,t)=>{const n=TL(Oo,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=Ir(Oo,e.__scopeDialog);return v.jsx(gr,{present:r||l.open,children:l.modal?v.jsx(mG,{...i,ref:t}):v.jsx(vG,{...i,ref:t})})});ML.displayName=Oo;var mG=_.forwardRef((e,t)=>{const n=Ir(Oo,e.__scopeDialog),r=_.useRef(null),i=We(t,n.contentRef,r);return _.useEffect(()=>{const l=r.current;if(l)return NS(l)},[]),v.jsx(NL,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,l=>{var s;l.preventDefault(),(s=n.triggerRef.current)==null||s.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,l=>{const s=l.detail.originalEvent,c=s.button===0&&s.ctrlKey===!0;(s.button===2||c)&&l.preventDefault()}),onFocusOutside:be(e.onFocusOutside,l=>l.preventDefault())})}),vG=_.forwardRef((e,t)=>{const n=Ir(Oo,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return v.jsx(NL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:l=>{var s,c;(s=e.onCloseAutoFocus)==null||s.call(e,l),l.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),l.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:l=>{var f,d;(f=e.onInteractOutside)==null||f.call(e,l),l.defaultPrevented||(r.current=!0,l.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const s=l.target;((d=n.triggerRef.current)==null?void 0:d.contains(s))&&l.preventDefault(),l.detail.originalEvent.type==="focusin"&&i.current&&l.preventDefault()}})}),NL=_.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=Ir(Oo,n),f=_.useRef(null),d=We(t,f);return yS(),v.jsxs(v.Fragment,{children:[v.jsx(jp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:v.jsx(ef,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":US(c.open),...s,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(yG,{titleId:c.titleId}),v.jsx(xG,{contentRef:f,descriptionId:c.descriptionId})]})]})}),qS="DialogTitle",RL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(qS,n);return v.jsx(Re.h2,{id:i.titleId,...r,ref:t})});RL.displayName=qS;var PL="DialogDescription",DL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(PL,n);return v.jsx(Re.p,{id:i.descriptionId,...r,ref:t})});DL.displayName=PL;var kL="DialogClose",$L=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(kL,n);return v.jsx(Re.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>i.onOpenChange(!1))})});$L.displayName=kL;function US(e){return e?"open":"closed"}var LL="DialogTitleWarning",[gG,IL]=YU(LL,{contentName:Oo,titleName:qS,docsSlug:"dialog"}),yG=({titleId:e})=>{const t=IL(LL),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
279
|
-
|
|
280
|
-
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
281
|
-
|
|
282
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return _.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},bG="DialogDescriptionWarning",xG=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${IL(bG).contentName}}.`;return _.useEffect(()=>{var l;const i=(l=e.current)==null?void 0:l.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},HS=_L,wG=AL,FS=jL,GS=CL,VS=ML,YS=RL,WS=DL,Up=$L;function SG({...e}){return v.jsx(HS,{"data-slot":"sheet",...e})}function OG({...e}){return v.jsx(FS,{"data-slot":"sheet-portal",...e})}function _G({className:e,...t}){return v.jsx(GS,{className:me("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"sheet-overlay",...t})}function EG({className:e,children:t,side:n="right",...r}){return v.jsxs(OG,{children:[v.jsx(_G,{}),v.jsxs(VS,{className:me("fixed z-50 flex flex-col gap-4 bg-background shadow-lg transition ease-in-out data-[state=closed]:animate-out data-[state=open]:animate-in data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),"data-slot":"sheet-content",...r,children:[t,v.jsxs(Up,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[v.jsx(Ul,{className:"size-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function AG({className:e,...t}){return v.jsx("div",{className:me("flex flex-col gap-1.5 p-4",e),"data-slot":"sheet-header",...t})}function TG({className:e,...t}){return v.jsx(YS,{className:me("font-semibold text-foreground",e),"data-slot":"sheet-title",...t})}function jG({className:e,...t}){return v.jsx(WS,{className:me("text-muted-foreground text-sm",e),"data-slot":"sheet-description",...t})}function Et({className:e,...t}){return v.jsx("div",{className:me("animate-pulse rounded-md bg-accent",e),"data-slot":"skeleton",...t})}var zL=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),CG="VisuallyHidden",BL=_.forwardRef((e,t)=>v.jsx(Re.span,{...e,ref:t,style:{...zL,...e.style}}));BL.displayName=CG;var MG=BL,[Hp]=Lr("Tooltip",[Ms]),Fp=Ms(),qL="TooltipProvider",NG=700,Aw="tooltip.open",[RG,KS]=Hp(qL),UL=e=>{const{__scopeTooltip:t,delayDuration:n=NG,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:l}=e,s=_.useRef(!0),c=_.useRef(!1),f=_.useRef(0);return _.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),v.jsx(RG,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:_.useCallback(()=>{window.clearTimeout(f.current),s.current=!1},[]),onClose:_.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>s.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:_.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:l})};UL.displayName=qL;var fc="Tooltip",[PG,lf]=Hp(fc),HL=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:l,disableHoverableContent:s,delayDuration:c}=e,f=KS(fc,e.__scopeTooltip),d=Fp(t),[m,p]=_.useState(null),y=dr(),x=_.useRef(0),O=s??f.disableHoverableContent,w=c??f.delayDuration,S=_.useRef(!1),[E,T]=Ti({prop:r,defaultProp:i??!1,onChange:R=>{R?(f.onOpen(),document.dispatchEvent(new CustomEvent(Aw))):f.onClose(),l==null||l(R)},caller:fc}),A=_.useMemo(()=>E?S.current?"delayed-open":"instant-open":"closed",[E]),M=_.useCallback(()=>{window.clearTimeout(x.current),x.current=0,S.current=!1,T(!0)},[T]),j=_.useCallback(()=>{window.clearTimeout(x.current),x.current=0,T(!1)},[T]),N=_.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{S.current=!0,T(!0),x.current=0},w)},[w,T]);return _.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),v.jsx(TS,{...d,children:v.jsx(PG,{scope:t,contentId:y,open:E,stateAttribute:A,trigger:m,onTriggerChange:p,onTriggerEnter:_.useCallback(()=>{f.isOpenDelayedRef.current?N():M()},[f.isOpenDelayedRef,N,M]),onTriggerLeave:_.useCallback(()=>{O?j():(window.clearTimeout(x.current),x.current=0)},[j,O]),onOpen:M,onClose:j,disableHoverableContent:O,children:n})})};HL.displayName=fc;var Tw="TooltipTrigger",FL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=lf(Tw,n),l=KS(Tw,n),s=Fp(n),c=_.useRef(null),f=We(t,c,i.onTriggerChange),d=_.useRef(!1),m=_.useRef(!1),p=_.useCallback(()=>d.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),v.jsx(jS,{asChild:!0,...s,children:v.jsx(Re.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:f,onPointerMove:be(e.onPointerMove,y=>{y.pointerType!=="touch"&&!m.current&&!l.isPointerInTransitRef.current&&(i.onTriggerEnter(),m.current=!0)}),onPointerLeave:be(e.onPointerLeave,()=>{i.onTriggerLeave(),m.current=!1}),onPointerDown:be(e.onPointerDown,()=>{i.open&&i.onClose(),d.current=!0,document.addEventListener("pointerup",p,{once:!0})}),onFocus:be(e.onFocus,()=>{d.current||i.onOpen()}),onBlur:be(e.onBlur,i.onClose),onClick:be(e.onClick,i.onClose)})})});FL.displayName=Tw;var XS="TooltipPortal",[DG,kG]=Hp(XS,{forceMount:void 0}),GL=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,l=lf(XS,t);return v.jsx(DG,{scope:t,forceMount:n,children:v.jsx(gr,{present:n||l.open,children:v.jsx(nf,{asChild:!0,container:i,children:r})})})};GL.displayName=XS;var Zl="TooltipContent",VL=_.forwardRef((e,t)=>{const n=kG(Zl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...l}=e,s=lf(Zl,e.__scopeTooltip);return v.jsx(gr,{present:r||s.open,children:s.disableHoverableContent?v.jsx(YL,{side:i,...l,ref:t}):v.jsx($G,{side:i,...l,ref:t})})}),$G=_.forwardRef((e,t)=>{const n=lf(Zl,e.__scopeTooltip),r=KS(Zl,e.__scopeTooltip),i=_.useRef(null),l=We(t,i),[s,c]=_.useState(null),{trigger:f,onClose:d}=n,m=i.current,{onPointerInTransitChange:p}=r,y=_.useCallback(()=>{c(null),p(!1)},[p]),x=_.useCallback((O,w)=>{const S=O.currentTarget,E={x:O.clientX,y:O.clientY},T=BG(E,S.getBoundingClientRect()),A=qG(E,T),M=UG(w.getBoundingClientRect()),j=FG([...A,...M]);c(j),p(!0)},[p]);return _.useEffect(()=>()=>y(),[y]),_.useEffect(()=>{if(f&&m){const O=S=>x(S,m),w=S=>x(S,f);return f.addEventListener("pointerleave",O),m.addEventListener("pointerleave",w),()=>{f.removeEventListener("pointerleave",O),m.removeEventListener("pointerleave",w)}}},[f,m,x,y]),_.useEffect(()=>{if(s){const O=w=>{const S=w.target,E={x:w.clientX,y:w.clientY},T=(f==null?void 0:f.contains(S))||(m==null?void 0:m.contains(S)),A=!HG(E,s);T?y():A&&(y(),d())};return document.addEventListener("pointermove",O),()=>document.removeEventListener("pointermove",O)}},[f,m,s,d,y]),v.jsx(YL,{...e,ref:l})}),[LG,IG]=Hp(fc,{isInside:!1}),zG=t$("TooltipContent"),YL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=e,f=lf(Zl,n),d=Fp(n),{onClose:m}=f;return _.useEffect(()=>(document.addEventListener(Aw,m),()=>document.removeEventListener(Aw,m)),[m]),_.useEffect(()=>{if(f.trigger){const p=y=>{const x=y.target;x!=null&&x.contains(f.trigger)&&m()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[f.trigger,m]),v.jsx(ef,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:v.jsxs(CS,{"data-state":f.stateAttribute,...d,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[v.jsx(zG,{children:r}),v.jsx(LG,{scope:n,isInside:!0,children:v.jsx(MG,{id:f.contentId,role:"tooltip",children:i||r})})]})})});VL.displayName=Zl;var WL="TooltipArrow",KL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Fp(n);return IG(WL,n).isInside?null:v.jsx(MS,{...i,...r,ref:t})});KL.displayName=WL;function BG(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),l=Math.abs(t.left-e.x);switch(Math.min(n,r,i,l)){case l:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function qG(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function UG(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function HG(e,t){const{x:n,y:r}=e;let i=!1;for(let l=0,s=t.length-1;l<t.length;s=l++){const c=t[l],f=t[s],d=c.x,m=c.y,p=f.x,y=f.y;m>r!=y>r&&n<(p-d)*(r-m)/(y-m)+d&&(i=!i)}return i}function FG(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),GG(t)}function GG(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const l=t[t.length-1],s=t[t.length-2];if((l.x-s.x)*(i.y-s.y)>=(l.y-s.y)*(i.x-s.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const l=n[n.length-1],s=n[n.length-2];if((l.x-s.x)*(i.y-s.y)>=(l.y-s.y)*(i.x-s.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var VG=UL,YG=HL,WG=FL,KG=GL,XG=VL,QG=KL;function XL({delayDuration:e=0,...t}){return v.jsx(VG,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function QL({...e}){return v.jsx(XL,{children:v.jsx(YG,{"data-slot":"tooltip",...e})})}function ZL({...e}){return v.jsx(WG,{"data-slot":"tooltip-trigger",...e})}function JL({className:e,sideOffset:t=0,children:n,...r}){return v.jsx(KG,{children:v.jsxs(XG,{className:me("fade-in-0 zoom-in-95 data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-[--radix-tooltip-content-transform-origin] animate-in text-balance rounded-md bg-foreground px-3 py-1.5 text-background text-xs data-[state=closed]:animate-out",e),"data-slot":"tooltip-content",sideOffset:t,...r,children:[n,v.jsx(QG,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}const hy=768;function ZG(){const[e,t]=_.useState(void 0);return _.useEffect(()=>{const n=window.matchMedia(`(max-width: ${hy-1}px)`),r=()=>{t(window.innerWidth<hy)};return n.addEventListener("change",r),t(window.innerWidth<hy),()=>n.removeEventListener("change",r)},[]),!!e}const JG="sidebar_state",eV=3600*24*7,tV="16rem",nV="18rem",rV="3rem",aV="b",eI=_.createContext(null);function Ns(){const e=_.useContext(eI);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const tI=_.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:l,...s},c)=>{const f=ZG(),[d,m]=_.useState(!1),[p,y]=_.useState(e),x=t??p,O=_.useCallback(T=>{const A=typeof T=="function"?T(x):T;n?n(A):y(A),document.cookie=`${JG}=${A}; path=/; max-age=${eV}`},[n,x]),w=_.useCallback(()=>f?m(T=>!T):O(T=>!T),[f,O]);_.useEffect(()=>{const T=A=>{A.key===aV&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),w())};return window.addEventListener("keydown",T),()=>window.removeEventListener("keydown",T)},[w]);const S=x?"expanded":"collapsed",E=_.useMemo(()=>({state:S,open:x,setOpen:O,isMobile:f,openMobile:d,setOpenMobile:m,toggleSidebar:w}),[S,x,O,f,d,w]);return v.jsx(eI.Provider,{value:E,children:v.jsx(XL,{delayDuration:0,children:v.jsx("div",{className:me("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:c,style:{"--sidebar-width":tV,"--sidebar-width-icon":rV,...i},...s,children:l})})})});tI.displayName="SidebarProvider";const sh=_.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...l},s)=>{const{isMobile:c,state:f,openMobile:d,setOpenMobile:m}=Ns();return n==="none"?v.jsx("div",{className:me("flex h-full w-[calc(var(--sidebar-width)-var(--sidebar-width-icon)+1px)]! flex-col bg-sidebar text-sidebar-foreground",r),ref:s,...l,children:i}):c?v.jsx(SG,{onOpenChange:m,open:d,...l,children:v.jsxs(EG,{className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:e,style:{"--sidebar-width":nV},children:[v.jsxs(AG,{className:"sr-only",children:[v.jsx(TG,{children:"Sidebar"}),v.jsx(jG,{children:"Displays the mobile sidebar."})]}),v.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):v.jsxs("div",{className:"group peer hidden text-sidebar-foreground md:block","data-collapsible":f==="collapsed"?n:"","data-side":e,"data-state":f,"data-variant":t,ref:s,children:[v.jsx("div",{className:me("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",t==="floating"||t==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),v.jsx("div",{className:me("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",t==="floating"||t==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...l,children:v.jsx("div",{className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow","data-sidebar":"sidebar",children:i})})]})});sh.displayName="Sidebar";const nI=_.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:i}=Ns();return v.jsxs(kt,{className:me("h-7 w-7",e),"data-sidebar":"trigger",onClick:l=>{t==null||t(l),i()},ref:r,size:"icon",variant:"ghost",...n,children:[v.jsx(R6,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});nI.displayName="SidebarTrigger";const iV=_.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Ns();return v.jsx("button",{"aria-label":"Toggle Sidebar",className:me("-translate-x-1/2 group-data-[side=left]:-right-4 absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:hover:bg-sidebar group-data-[collapsible=offcanvas]:after:left-full","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",e),"data-sidebar":"rail",onClick:r,ref:n,tabIndex:-1,title:"Toggle Sidebar",...t})});iV.displayName="SidebarRail";const rI=_.forwardRef(({className:e,...t},n)=>v.jsx("main",{className:me("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",e),ref:n,...t}));rI.displayName="SidebarInset";const aI=_.forwardRef(({className:e,...t},n)=>v.jsx(Bp,{className:me("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),"data-sidebar":"input",ref:n,...t}));aI.displayName="SidebarInput";const jw=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:me("flex flex-col gap-2 p-2",e),"data-sidebar":"header",ref:n,...t}));jw.displayName="SidebarHeader";const iI=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:me("flex flex-col gap-2 p-2",e),"data-sidebar":"footer",ref:n,...t}));iI.displayName="SidebarFooter";const oV=_.forwardRef(({className:e,...t},n)=>v.jsx(Gl,{className:me("mx-2 w-auto bg-sidebar-border",e),"data-sidebar":"separator",ref:n,...t}));oV.displayName="SidebarSeparator";const Cw=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:me("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),"data-sidebar":"content",ref:n,...t}));Cw.displayName="SidebarContent";const Mw=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:me("relative flex w-full min-w-0 flex-col p-2",e),"data-sidebar":"group",ref:n,...t}));Mw.displayName="SidebarGroup";const lV=_.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?No:"div";return v.jsx(i,{className:me("flex h-8 shrink-0 items-center rounded-md px-2 font-medium text-sidebar-foreground/70 text-xs outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",e),"data-sidebar":"group-label",ref:r,...n})});lV.displayName="SidebarGroupLabel";const sV=_.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?No:"button";return v.jsx(i,{className:me("absolute top-3.5 right-3 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute after:md:hidden","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"group-action",ref:r,...n})});sV.displayName="SidebarGroupAction";const Nw=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:me("w-full text-sm",e),"data-sidebar":"group-content",ref:n,...t}));Nw.displayName="SidebarGroupContent";const xh=_.forwardRef(({className:e,...t},n)=>v.jsx("ul",{className:me("flex w-full min-w-0 flex-col gap-1",e),"data-sidebar":"menu",ref:n,...t}));xh.displayName="SidebarMenu";const wh=_.forwardRef(({className:e,...t},n)=>v.jsx("li",{className:me("group/menu-item relative",e),"data-sidebar":"menu-item",ref:n,...t}));wh.displayName="SidebarMenuItem";const uV=zp("peer/menu-button group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"group-data-[collapsible=icon]:!p-0 h-12 text-sm"}},defaultVariants:{variant:"default",size:"default"}}),Sh=_.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:l,...s},c)=>{const f=e?No:"button",{isMobile:d,state:m}=Ns(),p=v.jsx(f,{className:me(uV({variant:n,size:r}),l),"data-active":t,"data-sidebar":"menu-button","data-size":r,ref:c,...s});return i?(typeof i=="string"&&(i={children:i}),v.jsxs(QL,{children:[v.jsx(ZL,{asChild:!0,children:p}),v.jsx(JL,{align:"center",hidden:m!=="collapsed"||d,side:"right",...i})]})):p});Sh.displayName="SidebarMenuButton";const cV=_.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>{const l=t?No:"button";return v.jsx(l,{className:me("absolute top-1.5 right-1 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:-inset-2 after:absolute after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",n&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",e),"data-sidebar":"menu-action",ref:i,...r})});cV.displayName="SidebarMenuAction";const fV=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:me("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 font-medium text-sidebar-foreground text-xs tabular-nums","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"menu-badge",ref:n,...t}));fV.displayName="SidebarMenuBadge";const dV=_.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const i=_.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return v.jsxs("div",{className:me("flex h-8 items-center gap-2 rounded-md px-2",e),"data-sidebar":"menu-skeleton",ref:r,...n,children:[t&&v.jsx(Et,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),v.jsx(Et,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});dV.displayName="SidebarMenuSkeleton";const hV=_.forwardRef(({className:e,...t},n)=>v.jsx("ul",{className:me("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-sidebar-border border-l px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"menu-sub",ref:n,...t}));hV.displayName="SidebarMenuSub";const pV=_.forwardRef(({...e},t)=>v.jsx("li",{ref:t,...e}));pV.displayName="SidebarMenuSubItem";const mV=_.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...i},l)=>{const s=e?No:"a";return v.jsx(s,{className:me("-translate-x-px flex h-7 min-w-0 items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",t==="sm"&&"text-xs",t==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r),"data-active":n,"data-sidebar":"menu-sub-button","data-size":t,ref:l,...i})});mV.displayName="SidebarMenuSubButton";const vV={theme:"system",setTheme:()=>null},oI=_.createContext(vV),lI=()=>{const e=_.useContext(oI);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function gV({user:e}){const{isMobile:t}=Ns(),{theme:n,setTheme:r}=lI(),[i,l]=_.useState(null),[s,c]=_.useState(0);_.useEffect(()=>{(async()=>{try{const y=sessionStorage.getItem("wraps-auth-token");if(!y){console.log("No auth token found yet, will retry..."),s<5&&setTimeout(()=>{c(O=>O+1)},200);return}console.log("Fetching user info from /api/user");const x=await fetch(`/api/user?token=${y}`);if(console.log("User API response status:",x.status),x.ok){const O=await x.json();console.log("User info received:",O),l(O)}else{const O=await x.text();console.error("Failed to fetch user info:",x.status,O)}}catch(y){console.error("Error fetching user info:",y)}})().catch(y=>{console.error("Failed to fetch user info:",y)})},[s]);const f=()=>{window.confirm("Are you sure you want to close the console?")&&window.close()},d=(i==null?void 0:i.accountAlias)||(i==null?void 0:i.accountId)||"Loading...",m=(i==null?void 0:i.region)||"...";return v.jsx(xh,{children:v.jsx(wh,{children:v.jsxs(rG,{children:[v.jsx(aG,{asChild:!0,children:v.jsxs(Sh,{className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground md:h-8 md:p-0",size:"lg",children:[v.jsxs(Ej,{className:"h-8 w-8 rounded-lg",children:[v.jsx(Aj,{alt:d,src:e.avatar}),v.jsx(Tj,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),v.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v.jsx("span",{className:"truncate font-medium",children:d}),v.jsx("span",{className:"truncate text-xs",children:m})]}),v.jsx(S6,{className:"ml-auto size-4"})]})}),v.jsxs(iG,{align:"end",className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",side:t?"bottom":"right",sideOffset:4,children:[v.jsx(oG,{className:"p-0 font-normal",children:v.jsxs("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[v.jsxs(Ej,{className:"h-8 w-8 rounded-lg",children:[v.jsx(Aj,{alt:d,src:e.avatar}),v.jsx(Tj,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),v.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v.jsx("span",{className:"truncate font-medium",children:d}),v.jsx("span",{className:"truncate text-xs",children:m}),(i==null?void 0:i.accountId)&&i.accountId!==i.accountAlias&&v.jsx("span",{className:"truncate font-mono text-[10px] text-muted-foreground",children:i.accountId})]})]})}),v.jsx(Jj,{}),v.jsxs(Zj,{onClick:()=>r(n==="dark"?"light":"dark"),children:[n==="dark"?v.jsx(k6,{}):v.jsx(M6,{}),n==="dark"?"Light Mode":"Dark Mode"]}),v.jsx(Jj,{}),v.jsxs(Zj,{onClick:f,children:[v.jsx(Ul,{}),"Close Console"]})]})]})})})}const Nl={user:{name:"Wraps Console",email:"admin@wraps.dev",avatar:"/avatars/wraps.jpg"},navMain:[{title:"Dashboard",url:"/",icon:pS,isActive:!0,isDashboard:!0},{title:"Email",url:"#",icon:ql,isActive:!1,subItems:[{title:"Emails",icon:ql,url:"/email"},{title:"Metrics",icon:w6,url:"/email/metrics"},{title:"Settings",icon:D6,url:"/email/settings"}]}]};function yV({...e}){const t=ia(),n=Kc(),{setOpen:r,state:i}=Ns(),{theme:l}=lI(),s=_.useCallback(()=>t.pathname==="/"?Nl.navMain[0]:t.pathname.startsWith("/email")?Nl.navMain[1]:Nl.navMain[0],[t.pathname]),[c,f]=_.useState(s());return _.useEffect(()=>{f(s())},[s]),v.jsxs(sh,{className:"overflow-hidden *:data-[sidebar=sidebar]:flex-row",collapsible:"icon",...e,children:[v.jsxs(sh,{className:"w-[calc(var(--sidebar-width-icon)+1px)]! border-r",collapsible:"none",children:[v.jsx(jw,{children:v.jsx(xh,{children:v.jsx(wh,{children:v.jsx(Sh,{asChild:!0,className:"md:h-8 md:p-0",onClick:()=>{f(Nl.navMain[0]),r(!1)},size:"lg",children:v.jsxs(ch,{to:"/",children:[v.jsx("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg",children:v.jsx("img",{alt:"Wraps",className:"size-8 object-contain",src:l==="dark"?"/wraps-dark.png":"/wraps-light.png"})}),v.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[v.jsx("span",{className:"truncate font-semibold",children:"Wraps"}),v.jsx("span",{className:"truncate text-xs",children:"Console"})]})]})})})})}),v.jsx(Cw,{children:v.jsx(Mw,{children:v.jsx(Nw,{className:"px-1.5 md:px-0",children:v.jsx(xh,{children:Nl.navMain.filter(d=>!d.isDashboard).map(d=>v.jsx(wh,{children:v.jsxs(Sh,{className:"px-2.5 md:px-2",isActive:(c==null?void 0:c.title)===d.title,onClick:()=>{f(d),r(!0),d.subItems&&d.subItems.length>0&&n(d.subItems[0].url)},tooltip:{children:d.title,hidden:!1},children:[v.jsx(d.icon,{}),v.jsx("span",{children:d.title})]})},d.title))})})})}),v.jsx(iI,{children:v.jsx(gV,{user:Nl.user})})]}),i==="expanded"&&v.jsx(sh,{className:"hidden flex-1 md:flex",collapsible:"none",children:c&&!c.isDashboard&&c.subItems?v.jsxs(v.Fragment,{children:[v.jsxs(jw,{className:"gap-3.5 border-b p-4",children:[v.jsx("div",{className:"flex w-full items-center justify-between",children:v.jsxs("div",{className:"flex items-center gap-2 font-medium text-base text-foreground",children:[v.jsx(c.icon,{className:"size-4"}),c.title]})}),v.jsx(aI,{placeholder:"Search..."})]}),v.jsx(Cw,{children:v.jsx(Mw,{className:"px-0",children:v.jsx(Nw,{children:c.subItems.map(d=>{const m=t.pathname===d.url||d.url==="/email"&&t.pathname.startsWith("/email/")&&t.pathname!=="/email/metrics"&&t.pathname!=="/email/settings";return v.jsxs(ch,{className:`flex items-center gap-3 border-b p-4 text-sm leading-tight transition-colors last:border-b-0 hover:bg-sidebar-accent hover:text-sidebar-accent-foreground ${m?"bg-sidebar-accent font-semibold text-sidebar-accent-foreground":""}`,to:d.url,children:[v.jsx(d.icon,{className:"size-4 shrink-0"}),v.jsx("span",{className:"font-medium",children:d.title})]},d.title)})})})})]}):v.jsx("div",{className:"flex h-full items-center justify-center p-8 text-center",children:v.jsxs("div",{className:"text-muted-foreground",children:[v.jsx(pS,{className:"mx-auto mb-4 size-12 opacity-50"}),v.jsx("p",{className:"text-sm",children:"Select a product to view options"})]})})})]})}const bV=zp("inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden whitespace-nowrap rounded-full border px-2 py-0.5 font-medium text-xs transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&>svg]:pointer-events-none [&>svg]:size-3",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40 [a&]:hover:bg-destructive/90",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function pn({className:e,variant:t,asChild:n=!1,...r}){const i=n?No:"span";return v.jsx(i,{className:me(bV({variant:t}),e),"data-slot":"badge",...r})}function $t({className:e,...t}){return v.jsx("div",{className:me("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),"data-slot":"card",...t})}function Lt({className:e,...t}){return v.jsx("div",{className:me("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),"data-slot":"card-header",...t})}function ln({className:e,...t}){return v.jsx("div",{className:me("font-semibold leading-none",e),"data-slot":"card-title",...t})}function gn({className:e,...t}){return v.jsx("div",{className:me("text-muted-foreground text-sm",e),"data-slot":"card-description",...t})}function Ft({className:e,...t}){return v.jsx("div",{className:me("px-6",e),"data-slot":"card-content",...t})}const xV=zp("relative grid w-full grid-cols-[0_1fr] items-start gap-y-0.5 rounded-lg border px-4 py-3 text-sm has-[>svg]:grid-cols-[1rem_1fr] has-[>svg]:gap-x-3 [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 [&>svg]:text-current"}},defaultVariants:{variant:"default"}});function uo({className:e,variant:t,...n}){return v.jsx("div",{className:me(xV({variant:t}),e),"data-slot":"alert",role:"alert",...n})}function wV({className:e,...t}){return v.jsx("div",{className:me("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),"data-slot":"alert-title",...t})}function co({className:e,...t}){return v.jsx("div",{className:me("col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed",e),"data-slot":"alert-description",...t})}var Gp="Tabs",[SV]=Lr(Gp,[Pp]),sI=Pp(),[OV,QS]=SV(Gp),uI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:l,orientation:s="horizontal",dir:c,activationMode:f="automatic",...d}=e,m=Tp(c),[p,y]=Ti({prop:r,onChange:i,defaultProp:l??"",caller:Gp});return v.jsx(OV,{scope:n,baseId:dr(),value:p,onValueChange:y,orientation:s,dir:m,activationMode:f,children:v.jsx(Re.div,{dir:m,"data-orientation":s,...d,ref:t})})});uI.displayName=Gp;var cI="TabsList",fI=_.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,l=QS(cI,n),s=sI(n);return v.jsx(R$,{asChild:!0,...s,orientation:l.orientation,dir:l.dir,loop:r,children:v.jsx(Re.div,{role:"tablist","aria-orientation":l.orientation,...i,ref:t})})});fI.displayName=cI;var dI="TabsTrigger",hI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...l}=e,s=QS(dI,n),c=sI(n),f=vI(s.baseId,r),d=gI(s.baseId,r),m=r===s.value;return v.jsx(P$,{asChild:!0,...c,focusable:!i,active:m,children:v.jsx(Re.button,{type:"button",role:"tab","aria-selected":m,"aria-controls":d,"data-state":m?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...l,ref:t,onMouseDown:be(e.onMouseDown,p=>{!i&&p.button===0&&p.ctrlKey===!1?s.onValueChange(r):p.preventDefault()}),onKeyDown:be(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&s.onValueChange(r)}),onFocus:be(e.onFocus,()=>{const p=s.activationMode!=="manual";!m&&!i&&p&&s.onValueChange(r)})})})});hI.displayName=dI;var pI="TabsContent",mI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:l,...s}=e,c=QS(pI,n),f=vI(c.baseId,r),d=gI(c.baseId,r),m=r===c.value,p=_.useRef(m);return _.useEffect(()=>{const y=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(y)},[]),v.jsx(gr,{present:i||m,children:({present:y})=>v.jsx(Re.div,{"data-state":m?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!y,id:d,tabIndex:0,...s,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:y&&l})})});mI.displayName=pI;function vI(e,t){return`${e}-trigger-${t}`}function gI(e,t){return`${e}-content-${t}`}var _V=uI,EV=fI,AV=hI,TV=mI;function yI({className:e,...t}){return v.jsx(_V,{className:me("flex flex-col gap-2",e),"data-slot":"tabs",...t})}function bI({className:e,...t}){return v.jsx(EV,{className:me("inline-flex h-9 w-fit items-center justify-center rounded-lg bg-muted p-[3px] text-muted-foreground",e),"data-slot":"tabs-list",...t})}function Ju({className:e,...t}){return v.jsx(AV,{className:me("inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-2 py-1 font-medium text-foreground text-sm transition-[color,box-shadow] focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:shadow-sm dark:text-muted-foreground dark:data-[state=active]:border-input dark:data-[state=active]:bg-input/30 dark:data-[state=active]:text-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-slot":"tabs-trigger",...t})}function ec({className:e,...t}){return v.jsx(TV,{className:me("flex-1 outline-none",e),"data-slot":"tabs-content",...t})}function jV({messageId:e,archivingEnabled:t}){const[n,r]=_.useState(null),[i,l]=_.useState(!0),[s,c]=_.useState(null);return _.useEffect(()=>{async function f(){if(!t){l(!1);return}try{l(!0),c(null);const d=sessionStorage.getItem("wraps-auth-token");if(!d)throw new Error("Authentication token not found");const m=encodeURIComponent(e),p=await fetch(`/api/emails/${m}/archive?token=${d}`);if(!p.ok){if(p.status===404){r(null),l(!1);return}throw new Error(`Failed to fetch archived email: ${p.statusText}`)}const y=await p.json();r({...y,timestamp:new Date(y.timestamp)})}catch(d){const m=d instanceof Error?d.message:"Unknown error";c(m),console.error("Error fetching archived email:",d)}finally{l(!1)}}f()},[e,t]),t?i?v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Email Archive"}),v.jsx(gn,{children:"Loading archived email content..."})]}),v.jsx(Ft,{className:"space-y-4",children:v.jsx(Et,{className:"h-[400px] w-full"})})]}):s?v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Email Archive"}),v.jsx(gn,{children:"Failed to load archived email"})]}),v.jsx(Ft,{children:v.jsx(uo,{variant:"destructive",children:v.jsx(co,{children:s})})})]}):n?v.jsxs($t,{children:[v.jsx(Lt,{children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx(ln,{children:"Email Archive"}),v.jsx(gn,{children:"Full email content stored in AWS SES Mail Manager"})]}),n.attachments.length>0&&v.jsxs(pn,{variant:"secondary",children:[n.attachments.length," attachment",n.attachments.length>1?"s":""]})]})}),v.jsxs(Ft,{children:[v.jsxs(yI,{className:"w-full",defaultValue:"rendered",children:[v.jsxs(bI,{className:"grid w-full grid-cols-3",children:[v.jsxs(Ju,{className:"gap-2",value:"rendered",children:[v.jsx(T6,{className:"h-4 w-4"}),"Rendered Email"]}),v.jsxs(Ju,{className:"gap-2",value:"text",children:[v.jsx(A6,{className:"h-4 w-4"}),"Plain Text"]}),v.jsxs(Ju,{className:"gap-2",value:"html",children:[v.jsx(_6,{className:"h-4 w-4"}),"HTML Source"]})]}),v.jsxs(ec,{className:"space-y-4",value:"rendered",children:[n.html?v.jsx("div",{className:"rounded-md border",children:v.jsx("iframe",{className:"h-[600px] w-full rounded-md",sandbox:"allow-same-origin",srcDoc:n.html,title:"Email preview"})}):v.jsx(uo,{children:v.jsx(co,{children:"No HTML content available for this email. View the plain text tab instead."})}),n.attachments.length>0&&v.jsxs("div",{className:"space-y-2",children:[v.jsx("div",{className:"font-medium text-sm",children:"Attachments"}),v.jsx("div",{className:"space-y-2",children:n.attachments.map((f,d)=>v.jsx("div",{className:"flex items-center justify-between rounded-md border p-3",children:v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"font-mono text-sm",children:f.filename||`Attachment ${d+1}`}),v.jsxs("div",{className:"text-muted-foreground text-xs",children:[f.contentType," •"," ",(f.size/1024).toFixed(2)," KB"]})]})},f.filename||`attachment-${d}`))})]})]}),v.jsx(ec,{className:"space-y-4",value:"text",children:n.text?v.jsx("div",{className:"rounded-md border bg-muted p-4",children:v.jsx("pre",{className:"whitespace-pre-wrap font-mono text-sm",children:n.text})}):v.jsx(uo,{children:v.jsx(co,{children:"No plain text content available for this email."})})}),v.jsx(ec,{className:"space-y-4",value:"html",children:n.html?v.jsx("div",{className:"rounded-md border bg-muted p-4",children:v.jsx("pre",{className:"overflow-x-auto whitespace-pre-wrap font-mono text-xs",children:n.html})}):v.jsx(uo,{children:v.jsx(co,{children:"No HTML content available for this email."})})})]}),n.metadata&&v.jsxs("div",{className:"mt-6 space-y-3 rounded-md border p-4",children:[v.jsx("div",{className:"font-medium text-sm",children:"SMTP Metadata"}),v.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[n.metadata.senderIp&&v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-xs",children:"Sender IP"}),v.jsx("div",{className:"font-mono text-sm",children:n.metadata.senderIp})]}),n.metadata.tlsProtocol&&v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-xs",children:"TLS Protocol"}),v.jsx("div",{className:"font-mono text-sm",children:n.metadata.tlsProtocol})]}),n.metadata.senderHostname&&v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-xs",children:"Sender Hostname"}),v.jsx("div",{className:"font-mono text-sm",children:n.metadata.senderHostname})]})]})]})]})]}):v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Email Archive"}),v.jsx(gn,{children:"Email content not available"})]}),v.jsx(Ft,{children:v.jsx(uo,{children:v.jsx(co,{children:"This email was not archived. It may have been sent before email archiving was enabled for this deployment."})})})]}):v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Email Archive"}),v.jsx(gn,{children:"Enable email archiving to view full email content"})]}),v.jsx(Ft,{children:v.jsx(uo,{children:v.jsxs(co,{children:["Email archiving is not enabled for this deployment. Run"," ",v.jsx("code",{className:"rounded bg-muted px-1.5 py-0.5 font-mono text-xs",children:"wraps upgrade"})," ","to enable archiving and view full email content with HTML rendering."]})})})]})}const CV={sent:ql,delivered:Ck,bounced:Ul,complained:Ul,opened:ql,clicked:ql,failed:Ul},MV={sent:"text-blue-500",delivered:"text-green-500",bounced:"text-red-500",complained:"text-red-500",opened:"text-purple-500",clicked:"text-indigo-500",failed:"text-red-500"},NV={delivered:"default",sent:"secondary",bounced:"destructive",complained:"destructive",failed:"destructive",opened:"default",clicked:"default"};function RV(){const{id:e}=O8(),t=Kc(),[n,r]=_.useState(null),[i,l]=_.useState(!0),[s,c]=_.useState(null),[f,d]=_.useState(!1);_.useEffect(()=>{async function y(){var x,O,w;try{l(!0),c(null);const S=sessionStorage.getItem("wraps-auth-token");if(!S)throw new Error("Authentication token not found");try{const j=await fetch(`/api/settings/deployment?token=${S}`);if(j.ok){const N=await j.json();d(N.archivingEnabled??!1)}}catch(j){console.warn("Failed to fetch deployment config:",j)}const E=encodeURIComponent(e||"");console.log("Fetching email with ID:",e),console.log("Encoded ID:",E),console.log("Full URL:",`/api/emails/${E}?token=${S.substring(0,8)}...`);const T=await fetch(`/api/emails/${E}?token=${S}`);if(!T.ok){let j="Failed to fetch email details";try{j=(await T.json()).error||j}catch{j=`${T.status}: ${T.statusText}`}throw new Error(j)}const A=T.headers.get("content-type");if(!(A!=null&&A.includes("application/json"))){const j=await T.text();throw console.error("Non-JSON response:",j),new Error("Server returned non-JSON response")}const M=await T.json();console.log("Email data received:",{id:M.id,hasHtmlBody:!!M.htmlBody,hasTextBody:!!M.textBody,htmlBodyLength:((x=M.htmlBody)==null?void 0:x.length)||0,textBodyLength:((O=M.textBody)==null?void 0:O.length)||0,events:((w=M.events)==null?void 0:w.length)||0}),r(M)}catch(S){const E=S instanceof Error?S.message:"Unknown error";c(E),console.error("Error fetching email details:",S)}finally{l(!1)}}e&&y()},[e]);const m=y=>new Date(y).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),p=y=>new Date(y).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0});return i?v.jsx("div",{className:"flex h-[600px] items-center justify-center",children:v.jsx("div",{className:"text-muted-foreground",children:"Loading email details..."})}):s?v.jsxs("div",{className:"space-y-4",children:[v.jsxs(kt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[v.jsx(Zg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:s})]}):n?v.jsxs("div",{className:"space-y-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs(kt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[v.jsx(Zg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx(pn,{variant:NV[n.status],children:n.status.charAt(0).toUpperCase()+n.status.slice(1)})]}),v.jsxs($t,{children:[v.jsx(Lt,{children:v.jsx("div",{className:"flex items-start justify-between",children:v.jsxs("div",{className:"space-y-1.5",children:[v.jsx(ln,{className:"text-2xl",children:n.subject}),v.jsx(gn,{className:"font-mono text-xs",children:n.messageId})]})})}),v.jsx(Ft,{className:"space-y-4",children:v.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"FROM"}),v.jsx("div",{className:"font-mono text-sm",children:n.from})]}),v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"TO"}),v.jsx("div",{className:"font-mono text-sm",children:n.to.length>0?n.to.join(", "):"(no recipients)"})]}),n.replyTo&&v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"REPLY-TO"}),v.jsx("div",{className:"font-mono text-sm",children:n.replyTo})]}),v.jsxs("div",{className:"space-y-1",children:[v.jsx("div",{className:"text-muted-foreground text-sm",children:"ID"}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsx("code",{className:"rounded bg-muted px-2 py-1 font-mono text-xs",children:n.id}),v.jsxs(kt,{className:"h-6 w-6",onClick:()=>navigator.clipboard.writeText(n.id),size:"icon",variant:"ghost",children:[v.jsx("span",{className:"sr-only",children:"Copy ID"}),"📋"]})]})]})]})})]}),f&&v.jsx(jV,{archivingEnabled:f,messageId:n.messageId}),v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Email Events"}),v.jsx(gn,{children:"Lifecycle of this email from send to delivery"})]}),v.jsx(Ft,{children:v.jsx("div",{className:"space-y-4",children:n.events.length===0?v.jsx("div",{className:"text-muted-foreground text-sm",children:"No events recorded yet"}):n.events.map((y,x)=>{const O=CV[y.type]||gw,w=x===n.events.length-1;return v.jsx("div",{children:v.jsxs("div",{className:"flex gap-4",children:[v.jsxs("div",{className:"flex flex-col items-center",children:[v.jsx("div",{className:`rounded-full border-2 border-background bg-muted p-2 ${MV[y.type]}`,children:v.jsx(O,{className:"h-4 w-4"})}),!w&&v.jsx("div",{className:"my-1 w-px flex-1 bg-border"})]}),v.jsxs("div",{className:"flex-1 pb-6",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("div",{className:"font-medium capitalize",children:y.type}),v.jsx("div",{className:"text-muted-foreground text-sm",children:m(y.timestamp)})]}),v.jsx("div",{className:"text-muted-foreground text-sm",children:p(y.timestamp)}),y.metadata&&Object.keys(y.metadata).length>0&&v.jsx("div",{className:"mt-2 rounded-md border bg-muted/50 p-2 font-mono text-xs",children:v.jsx("pre",{className:"overflow-x-auto",children:JSON.stringify(y.metadata,null,2)})})]})]})},`${y.type}-${y.timestamp}`)})})})]})]}):v.jsxs("div",{className:"space-y-4",children:[v.jsxs(kt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[v.jsx(Zg,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx("div",{className:"rounded-md border p-4 text-muted-foreground text-sm",children:"Email not found"})]})}function rC(e,[t,n]){return Math.min(n,Math.max(t,e))}function PV(e){const t=_.useRef({value:e,previous:e});return _.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var DV=[" ","Enter","ArrowUp","ArrowDown"],kV=[" ","Enter"],_o="Select",[Vp,Yp,$V]=gS(_o),[Rs]=Lr(_o,[$V,Ms]),Wp=Ms(),[LV,Ni]=Rs(_o),[IV,zV]=Rs(_o),xI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:l,value:s,defaultValue:c,onValueChange:f,dir:d,name:m,autoComplete:p,disabled:y,required:x,form:O}=e,w=Wp(t),[S,E]=_.useState(null),[T,A]=_.useState(null),[M,j]=_.useState(!1),N=Tp(d),[R,P]=Ti({prop:r,defaultProp:i??!1,onChange:l,caller:_o}),[L,Y]=Ti({prop:s,defaultProp:c,onChange:f,caller:_o}),z=_.useRef(null),H=S?O||!!S.closest("form"):!0,[V,Q]=_.useState(new Set),K=Array.from(V).map(k=>k.props.value).join(";");return v.jsx(TS,{...w,children:v.jsxs(LV,{required:x,scope:t,trigger:S,onTriggerChange:E,valueNode:T,onValueNodeChange:A,valueNodeHasChildren:M,onValueNodeHasChildrenChange:j,contentId:dr(),value:L,onValueChange:Y,open:R,onOpenChange:P,dir:N,triggerPointerDownPosRef:z,disabled:y,children:[v.jsx(Vp.Provider,{scope:t,children:v.jsx(IV,{scope:e.__scopeSelect,onNativeOptionAdd:_.useCallback(k=>{Q(q=>new Set(q).add(k))},[]),onNativeOptionRemove:_.useCallback(k=>{Q(q=>{const B=new Set(q);return B.delete(k),B})},[]),children:n})}),H?v.jsxs(UI,{"aria-hidden":!0,required:x,tabIndex:-1,name:m,autoComplete:p,value:L,onChange:k=>Y(k.target.value),disabled:y,form:O,children:[L===void 0?v.jsx("option",{value:""}):null,Array.from(V)]},K):null]})})};xI.displayName=_o;var wI="SelectTrigger",SI=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,l=Wp(n),s=Ni(wI,n),c=s.disabled||r,f=We(t,s.onTriggerChange),d=Yp(n),m=_.useRef("touch"),[p,y,x]=FI(w=>{const S=d().filter(A=>!A.disabled),E=S.find(A=>A.value===s.value),T=GI(S,w,E);T!==void 0&&s.onValueChange(T.value)}),O=w=>{c||(s.onOpenChange(!0),x()),w&&(s.triggerPointerDownPosRef.current={x:Math.round(w.pageX),y:Math.round(w.pageY)})};return v.jsx(jS,{asChild:!0,...l,children:v.jsx(Re.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":HI(s.value)?"":void 0,...i,ref:f,onClick:be(i.onClick,w=>{w.currentTarget.focus(),m.current!=="mouse"&&O(w)}),onPointerDown:be(i.onPointerDown,w=>{m.current=w.pointerType;const S=w.target;S.hasPointerCapture(w.pointerId)&&S.releasePointerCapture(w.pointerId),w.button===0&&w.ctrlKey===!1&&w.pointerType==="mouse"&&(O(w),w.preventDefault())}),onKeyDown:be(i.onKeyDown,w=>{const S=p.current!=="";!(w.ctrlKey||w.altKey||w.metaKey)&&w.key.length===1&&y(w.key),!(S&&w.key===" ")&&DV.includes(w.key)&&(O(),w.preventDefault())})})})});SI.displayName=wI;var OI="SelectValue",_I=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:l,placeholder:s="",...c}=e,f=Ni(OI,n),{onValueNodeHasChildrenChange:d}=f,m=l!==void 0,p=We(t,f.onValueNodeChange);return zt(()=>{d(m)},[d,m]),v.jsx(Re.span,{...c,ref:p,style:{pointerEvents:"none"},children:HI(f.value)?v.jsx(v.Fragment,{children:s}):l})});_I.displayName=OI;var BV="SelectIcon",EI=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return v.jsx(Re.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});EI.displayName=BV;var qV="SelectPortal",AI=e=>v.jsx(nf,{asChild:!0,...e});AI.displayName=qV;var Eo="SelectContent",TI=_.forwardRef((e,t)=>{const n=Ni(Eo,e.__scopeSelect),[r,i]=_.useState();if(zt(()=>{i(new DocumentFragment)},[]),!n.open){const l=r;return l?Qc.createPortal(v.jsx(jI,{scope:e.__scopeSelect,children:v.jsx(Vp.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),l):null}return v.jsx(CI,{...e,ref:t})});TI.displayName=Eo;var Er=10,[jI,Ri]=Rs(Eo),UV="SelectContentImpl",HV=Xl("SelectContent.RemoveScroll"),CI=_.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:l,onPointerDownOutside:s,side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:p,collisionBoundary:y,collisionPadding:x,sticky:O,hideWhenDetached:w,avoidCollisions:S,...E}=e,T=Ni(Eo,n),[A,M]=_.useState(null),[j,N]=_.useState(null),R=We(t,ce=>M(ce)),[P,L]=_.useState(null),[Y,z]=_.useState(null),H=Yp(n),[V,Q]=_.useState(!1),K=_.useRef(!1);_.useEffect(()=>{if(A)return NS(A)},[A]),yS();const k=_.useCallback(ce=>{const[he,...ie]=H().map(ne=>ne.ref.current),[pe]=ie.slice(-1),ve=document.activeElement;for(const ne of ce)if(ne===ve||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===he&&j&&(j.scrollTop=0),ne===pe&&j&&(j.scrollTop=j.scrollHeight),ne==null||ne.focus(),document.activeElement!==ve))return},[H,j]),q=_.useCallback(()=>k([P,A]),[k,P,A]);_.useEffect(()=>{V&&q()},[V,q]);const{onOpenChange:B,triggerPointerDownPosRef:W}=T;_.useEffect(()=>{if(A){let ce={x:0,y:0};const he=pe=>{var ve,ne;ce={x:Math.abs(Math.round(pe.pageX)-(((ve=W.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(pe.pageY)-(((ne=W.current)==null?void 0:ne.y)??0))}},ie=pe=>{ce.x<=10&&ce.y<=10?pe.preventDefault():A.contains(pe.target)||B(!1),document.removeEventListener("pointermove",he),W.current=null};return W.current!==null&&(document.addEventListener("pointermove",he),document.addEventListener("pointerup",ie,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",he),document.removeEventListener("pointerup",ie,{capture:!0})}}},[A,B,W]),_.useEffect(()=>{const ce=()=>B(!1);return window.addEventListener("blur",ce),window.addEventListener("resize",ce),()=>{window.removeEventListener("blur",ce),window.removeEventListener("resize",ce)}},[B]);const[le,$]=FI(ce=>{const he=H().filter(ve=>!ve.disabled),ie=he.find(ve=>ve.ref.current===document.activeElement),pe=GI(he,ce,ie);pe&&setTimeout(()=>pe.ref.current.focus())}),F=_.useCallback((ce,he,ie)=>{const pe=!K.current&&!ie;(T.value!==void 0&&T.value===he||pe)&&(L(ce),pe&&(K.current=!0))},[T.value]),X=_.useCallback(()=>A==null?void 0:A.focus(),[A]),ae=_.useCallback((ce,he,ie)=>{const pe=!K.current&&!ie;(T.value!==void 0&&T.value===he||pe)&&z(ce)},[T.value]),de=r==="popper"?Rw:MI,ge=de===Rw?{side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:p,collisionBoundary:y,collisionPadding:x,sticky:O,hideWhenDetached:w,avoidCollisions:S}:{};return v.jsx(jI,{scope:n,content:A,viewport:j,onViewportChange:N,itemRefCallback:F,selectedItem:P,onItemLeave:X,itemTextRefCallback:ae,focusSelectedItem:q,selectedItemText:Y,position:r,isPositioned:V,searchRef:le,children:v.jsx(kp,{as:HV,allowPinchZoom:!0,children:v.jsx(jp,{asChild:!0,trapped:T.open,onMountAutoFocus:ce=>{ce.preventDefault()},onUnmountAutoFocus:be(i,ce=>{var he;(he=T.trigger)==null||he.focus({preventScroll:!0}),ce.preventDefault()}),children:v.jsx(ef,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:ce=>ce.preventDefault(),onDismiss:()=>T.onOpenChange(!1),children:v.jsx(de,{role:"listbox",id:T.contentId,"data-state":T.open?"open":"closed",dir:T.dir,onContextMenu:ce=>ce.preventDefault(),...E,...ge,onPlaced:()=>Q(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...E.style},onKeyDown:be(E.onKeyDown,ce=>{const he=ce.ctrlKey||ce.altKey||ce.metaKey;if(ce.key==="Tab"&&ce.preventDefault(),!he&&ce.key.length===1&&$(ce.key),["ArrowUp","ArrowDown","Home","End"].includes(ce.key)){let pe=H().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(ce.key)&&(pe=pe.slice().reverse()),["ArrowUp","ArrowDown"].includes(ce.key)){const ve=ce.target,ne=pe.indexOf(ve);pe=pe.slice(ne+1)}setTimeout(()=>k(pe)),ce.preventDefault()}})})})})})})});CI.displayName=UV;var FV="SelectItemAlignedPosition",MI=_.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,l=Ni(Eo,n),s=Ri(Eo,n),[c,f]=_.useState(null),[d,m]=_.useState(null),p=We(t,R=>m(R)),y=Yp(n),x=_.useRef(!1),O=_.useRef(!0),{viewport:w,selectedItem:S,selectedItemText:E,focusSelectedItem:T}=s,A=_.useCallback(()=>{if(l.trigger&&l.valueNode&&c&&d&&w&&S&&E){const R=l.trigger.getBoundingClientRect(),P=d.getBoundingClientRect(),L=l.valueNode.getBoundingClientRect(),Y=E.getBoundingClientRect();if(l.dir!=="rtl"){const ve=Y.left-P.left,ne=L.left-ve,Pe=R.left-ne,Ee=R.width+Pe,Xe=Math.max(Ee,P.width),Ge=window.innerWidth-Er,at=rC(ne,[Er,Math.max(Er,Ge-Xe)]);c.style.minWidth=Ee+"px",c.style.left=at+"px"}else{const ve=P.right-Y.right,ne=window.innerWidth-L.right-ve,Pe=window.innerWidth-R.right-ne,Ee=R.width+Pe,Xe=Math.max(Ee,P.width),Ge=window.innerWidth-Er,at=rC(ne,[Er,Math.max(Er,Ge-Xe)]);c.style.minWidth=Ee+"px",c.style.right=at+"px"}const z=y(),H=window.innerHeight-Er*2,V=w.scrollHeight,Q=window.getComputedStyle(d),K=parseInt(Q.borderTopWidth,10),k=parseInt(Q.paddingTop,10),q=parseInt(Q.borderBottomWidth,10),B=parseInt(Q.paddingBottom,10),W=K+k+V+B+q,le=Math.min(S.offsetHeight*5,W),$=window.getComputedStyle(w),F=parseInt($.paddingTop,10),X=parseInt($.paddingBottom,10),ae=R.top+R.height/2-Er,de=H-ae,ge=S.offsetHeight/2,ce=S.offsetTop+ge,he=K+k+ce,ie=W-he;if(he<=ae){const ve=z.length>0&&S===z[z.length-1].ref.current;c.style.bottom="0px";const ne=d.clientHeight-w.offsetTop-w.offsetHeight,Pe=Math.max(de,ge+(ve?X:0)+ne+q),Ee=he+Pe;c.style.height=Ee+"px"}else{const ve=z.length>0&&S===z[0].ref.current;c.style.top="0px";const Pe=Math.max(ae,K+w.offsetTop+(ve?F:0)+ge)+ie;c.style.height=Pe+"px",w.scrollTop=he-ae+w.offsetTop}c.style.margin=`${Er}px 0`,c.style.minHeight=le+"px",c.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[y,l.trigger,l.valueNode,c,d,w,S,E,l.dir,r]);zt(()=>A(),[A]);const[M,j]=_.useState();zt(()=>{d&&j(window.getComputedStyle(d).zIndex)},[d]);const N=_.useCallback(R=>{R&&O.current===!0&&(A(),T==null||T(),O.current=!1)},[A,T]);return v.jsx(VV,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:N,children:v.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:M},children:v.jsx(Re.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});MI.displayName=FV;var GV="SelectPopperPosition",Rw=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Er,...l}=e,s=Wp(n);return v.jsx(CS,{...s,...l,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...l.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Rw.displayName=GV;var[VV,ZS]=Rs(Eo,{}),Pw="SelectViewport",NI=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,l=Ri(Pw,n),s=ZS(Pw,n),c=We(t,l.onViewportChange),f=_.useRef(0);return v.jsxs(v.Fragment,{children:[v.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:r}),v.jsx(Vp.Slot,{scope:n,children:v.jsx(Re.div,{"data-radix-select-viewport":"",role:"presentation",...i,ref:c,style:{position:"relative",flex:1,overflow:"hidden auto",...i.style},onScroll:be(i.onScroll,d=>{const m=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:y}=s;if(y!=null&&y.current&&p){const x=Math.abs(f.current-m.scrollTop);if(x>0){const O=window.innerHeight-Er*2,w=parseFloat(p.style.minHeight),S=parseFloat(p.style.height),E=Math.max(w,S);if(E<O){const T=E+x,A=Math.min(O,T),M=T-A;p.style.height=A+"px",p.style.bottom==="0px"&&(m.scrollTop=M>0?M:0,p.style.justifyContent="flex-end")}}}f.current=m.scrollTop})})})]})});NI.displayName=Pw;var RI="SelectGroup",[YV,WV]=Rs(RI),KV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=dr();return v.jsx(YV,{scope:n,id:i,children:v.jsx(Re.div,{role:"group","aria-labelledby":i,...r,ref:t})})});KV.displayName=RI;var PI="SelectLabel",XV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=WV(PI,n);return v.jsx(Re.div,{id:i.id,...r,ref:t})});XV.displayName=PI;var Oh="SelectItem",[QV,DI]=Rs(Oh),kI=_.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...s}=e,c=Ni(Oh,n),f=Ri(Oh,n),d=c.value===r,[m,p]=_.useState(l??""),[y,x]=_.useState(!1),O=We(t,T=>{var A;return(A=f.itemRefCallback)==null?void 0:A.call(f,T,r,i)}),w=dr(),S=_.useRef("touch"),E=()=>{i||(c.onValueChange(r),c.onOpenChange(!1))};if(r==="")throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return v.jsx(QV,{scope:n,value:r,disabled:i,textId:w,isSelected:d,onItemTextChange:_.useCallback(T=>{p(A=>A||((T==null?void 0:T.textContent)??"").trim())},[]),children:v.jsx(Vp.ItemSlot,{scope:n,value:r,disabled:i,textValue:m,children:v.jsx(Re.div,{role:"option","aria-labelledby":w,"data-highlighted":y?"":void 0,"aria-selected":d&&y,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...s,ref:O,onFocus:be(s.onFocus,()=>x(!0)),onBlur:be(s.onBlur,()=>x(!1)),onClick:be(s.onClick,()=>{S.current!=="mouse"&&E()}),onPointerUp:be(s.onPointerUp,()=>{S.current==="mouse"&&E()}),onPointerDown:be(s.onPointerDown,T=>{S.current=T.pointerType}),onPointerMove:be(s.onPointerMove,T=>{var A;S.current=T.pointerType,i?(A=f.onItemLeave)==null||A.call(f):S.current==="mouse"&&T.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(s.onPointerLeave,T=>{var A;T.currentTarget===document.activeElement&&((A=f.onItemLeave)==null||A.call(f))}),onKeyDown:be(s.onKeyDown,T=>{var M;((M=f.searchRef)==null?void 0:M.current)!==""&&T.key===" "||(kV.includes(T.key)&&E(),T.key===" "&&T.preventDefault())})})})})});kI.displayName=Oh;var Ku="SelectItemText",$I=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...l}=e,s=Ni(Ku,n),c=Ri(Ku,n),f=DI(Ku,n),d=zV(Ku,n),[m,p]=_.useState(null),y=We(t,E=>p(E),f.onItemTextChange,E=>{var T;return(T=c.itemTextRefCallback)==null?void 0:T.call(c,E,f.value,f.disabled)}),x=m==null?void 0:m.textContent,O=_.useMemo(()=>v.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:w,onNativeOptionRemove:S}=d;return zt(()=>(w(O),()=>S(O)),[w,S,O]),v.jsxs(v.Fragment,{children:[v.jsx(Re.span,{id:f.textId,...l,ref:y}),f.isSelected&&s.valueNode&&!s.valueNodeHasChildren?Qc.createPortal(l.children,s.valueNode):null]})});$I.displayName=Ku;var LI="SelectItemIndicator",II=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return DI(LI,n).isSelected?v.jsx(Re.span,{"aria-hidden":!0,...r,ref:t}):null});II.displayName=LI;var Dw="SelectScrollUpButton",zI=_.forwardRef((e,t)=>{const n=Ri(Dw,e.__scopeSelect),r=ZS(Dw,e.__scopeSelect),[i,l]=_.useState(!1),s=We(t,r.onScrollButtonChange);return zt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollTop>0;l(d)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?v.jsx(qI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});zI.displayName=Dw;var kw="SelectScrollDownButton",BI=_.forwardRef((e,t)=>{const n=Ri(kw,e.__scopeSelect),r=ZS(kw,e.__scopeSelect),[i,l]=_.useState(!1),s=We(t,r.onScrollButtonChange);return zt(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollHeight-f.clientHeight,m=Math.ceil(f.scrollTop)<d;l(m)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?v.jsx(qI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});BI.displayName=kw;var qI=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,l=Ri("SelectScrollButton",n),s=_.useRef(null),c=Yp(n),f=_.useCallback(()=>{s.current!==null&&(window.clearInterval(s.current),s.current=null)},[]);return _.useEffect(()=>()=>f(),[f]),zt(()=>{var m;const d=c().find(p=>p.ref.current===document.activeElement);(m=d==null?void 0:d.ref.current)==null||m.scrollIntoView({block:"nearest"})},[c]),v.jsx(Re.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:be(i.onPointerDown,()=>{s.current===null&&(s.current=window.setInterval(r,50))}),onPointerMove:be(i.onPointerMove,()=>{var d;(d=l.onItemLeave)==null||d.call(l),s.current===null&&(s.current=window.setInterval(r,50))}),onPointerLeave:be(i.onPointerLeave,()=>{f()})})}),ZV="SelectSeparator",JV=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.jsx(Re.div,{"aria-hidden":!0,...r,ref:t})});JV.displayName=ZV;var $w="SelectArrow",eY=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Wp(n),l=Ni($w,n),s=Ri($w,n);return l.open&&s.position==="popper"?v.jsx(MS,{...i,...r,ref:t}):null});eY.displayName=$w;var tY="SelectBubbleInput",UI=_.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=_.useRef(null),l=We(r,i),s=PV(t);return _.useEffect(()=>{const c=i.current;if(!c)return;const f=window.HTMLSelectElement.prototype,m=Object.getOwnPropertyDescriptor(f,"value").set;if(s!==t&&m){const p=new Event("change",{bubbles:!0});m.call(c,t),c.dispatchEvent(p)}},[s,t]),v.jsx(Re.select,{...n,style:{...zL,...n.style},ref:l,defaultValue:t})});UI.displayName=tY;function HI(e){return e===""||e===void 0}function FI(e){const t=Rr(e),n=_.useRef(""),r=_.useRef(0),i=_.useCallback(s=>{const c=n.current+s;t(c),(function f(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),l=_.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return _.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,l]}function GI(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,l=n?e.indexOf(n):-1;let s=nY(e,Math.max(l,0));i.length===1&&(s=s.filter(d=>d!==n));const f=s.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function nY(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var rY=xI,aY=SI,iY=_I,oY=EI,lY=AI,sY=TI,uY=NI,cY=kI,fY=$I,dY=II,hY=zI,pY=BI;function Lw({...e}){return v.jsx(rY,{"data-slot":"select",...e})}function Iw({...e}){return v.jsx(iY,{"data-slot":"select-value",...e})}function zw({className:e,size:t="default",children:n,...r}){return v.jsxs(aY,{className:me("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-[placeholder]:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",e),"data-size":t,"data-slot":"select-trigger",...r,children:[n,v.jsx(oY,{asChild:!0,children:v.jsx(Es,{className:"size-4 opacity-50"})})]})}function Bw({className:e,children:t,position:n="popper",align:r="center",...i}){return v.jsx(lY,{children:v.jsxs(sY,{align:r,className:me("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] origin-[--radix-select-content-transform-origin] overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",n==="popper"&&"data-[side=left]:-translate-x-1 data-[side=top]:-translate-y-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1",e),"data-slot":"select-content",position:n,...i,children:[v.jsx(mY,{}),v.jsx(uY,{className:me("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),v.jsx(vY,{})]})})}function Qt({className:e,children:t,...n}){return v.jsxs(cY,{className:me("relative flex w-full cursor-default select-none items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),"data-slot":"select-item",...n,children:[v.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:v.jsx(dY,{children:v.jsx(Ck,{className:"size-4"})})}),v.jsx(fY,{children:t})]})}function mY({className:e,...t}){return v.jsx(hY,{className:me("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button",...t,children:v.jsx(Zc,{className:"size-4"})})}function vY({className:e,...t}){return v.jsx(pY,{className:me("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button",...t,children:v.jsx(Es,{className:"size-4"})})}function gY({className:e,...t}){return v.jsx("div",{className:"relative w-full overflow-x-auto","data-slot":"table-container",children:v.jsx("table",{className:me("w-full caption-bottom text-sm",e),"data-slot":"table",...t})})}function yY({className:e,...t}){return v.jsx("thead",{className:me("[&_tr]:border-b",e),"data-slot":"table-header",...t})}function bY({className:e,...t}){return v.jsx("tbody",{className:me("[&_tr:last-child]:border-0",e),"data-slot":"table-body",...t})}function Ud({className:e,...t}){return v.jsx("tr",{className:me("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),"data-slot":"table-row",...t})}function $u({className:e,...t}){return v.jsx("th",{className:me("h-10 whitespace-nowrap px-2 text-left align-middle font-medium text-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-head",...t})}function lo({className:e,...t}){return v.jsx("td",{className:me("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-cell",...t})}const py={clicked:{variant:"default",description:"Recipient clicked a link in the email",className:"bg-purple-500/10 text-purple-700 dark:text-purple-400 hover:bg-purple-500/20 border-purple-500/20"},opened:{variant:"default",description:"Recipient opened the email",className:"bg-blue-500/10 text-blue-700 dark:text-blue-400 hover:bg-blue-500/20 border-blue-500/20"},delivered:{variant:"default",description:"Email was successfully delivered to recipient's mailbox",className:"bg-green-500/10 text-green-700 dark:text-green-400 hover:bg-green-500/20 border-green-500/20"},sent:{variant:"secondary",description:"Email was sent but delivery not yet confirmed",className:"bg-gray-500/10 text-gray-700 dark:text-gray-400 hover:bg-gray-500/20 border-gray-500/20"},bounced:{variant:"default",description:"Email bounced - recipient's mailbox may not exist or be full",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 hover:bg-orange-500/20 border-orange-500/20"},complained:{variant:"default",description:"Recipient marked this email as spam",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"},failed:{variant:"default",description:"Email failed to send due to an error",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"}};function xY(){const e=Kc(),[t,n]=_.useState(""),[r,i]=_.useState("15"),[l,s]=_.useState("all"),[c,f]=_.useState("sending"),[d,m]=_.useState([]),[p,y]=_.useState(!0),[x,O]=_.useState(null);_.useEffect(()=>{async function E(){try{y(!0),O(null);let T=sessionStorage.getItem("wraps-auth-token");if(T||(T=new URLSearchParams(window.location.search).get("token"),T&&sessionStorage.setItem("wraps-auth-token",T)),!T)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const A=Number.parseInt(r,10),M=Date.now()-A*24*60*60*1e3,j=Date.now(),N=await fetch(`/api/emails?startTime=${M}&endTime=${j}&limit=100&token=${T}`);if(!N.ok){let P="Failed to fetch email logs";try{P=(await N.json()).error||P}catch{P=`${N.status}: ${N.statusText}`}throw new Error(P)}const R=await N.json();m(R.logs.map(P=>({id:P.messageId,to:P.to,from:P.from,subject:P.subject,status:P.status,timestamp:P.sentAt,messageId:P.messageId})))}catch(T){const A=T instanceof Error?T.message:"Unknown error";O(A),console.error("Error fetching email logs:",T)}finally{y(!1)}}E()},[r]);const w=d.filter(E=>{if(t){const T=t.toLowerCase(),A=E.to.some(j=>j.toLowerCase().includes(T)),M=E.subject.toLowerCase().includes(T);if(!(A||M))return!1}return!(l!=="all"&&E.status!==l)}),S=E=>{const T=new Date(E),M=Math.floor((new Date().getTime()-T.getTime())/(1e3*60*60*24));return M===0?"Today":M===1?"Yesterday":M<7?`${M} days ago`:T.toLocaleDateString()};return v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Emails"}),v.jsx(gn,{children:"View and manage your email sending history"})]}),v.jsx(Ft,{children:v.jsxs(yI,{onValueChange:f,value:c,children:[v.jsxs(bI,{children:[v.jsx(Ju,{value:"sending",children:"Sending"}),v.jsx(Ju,{value:"receiving",children:"Receiving"})]}),v.jsxs(ec,{className:"space-y-4",value:"sending",children:[x&&v.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:x}),v.jsxs("div",{className:"flex items-center gap-2",children:[v.jsxs("div",{className:"relative flex-1",children:[v.jsx(P6,{className:"absolute top-2.5 left-2.5 h-4 w-4 text-muted-foreground"}),v.jsx(Bp,{className:"pl-8",onChange:E=>n(E.target.value),placeholder:"Search...",value:t})]}),v.jsxs(Lw,{onValueChange:i,value:r,children:[v.jsx(zw,{className:"w-[180px]",children:v.jsx(Iw,{})}),v.jsxs(Bw,{children:[v.jsx(Qt,{value:"1",children:"Last 24 hours"}),v.jsx(Qt,{value:"7",children:"Last 7 days"}),v.jsx(Qt,{value:"15",children:"Last 15 days"}),v.jsx(Qt,{value:"30",children:"Last 30 days"}),v.jsx(Qt,{value:"90",children:"Last 90 days"})]})]}),v.jsxs(Lw,{onValueChange:s,value:l,children:[v.jsx(zw,{className:"w-[180px]",children:v.jsx(Iw,{})}),v.jsxs(Bw,{children:[v.jsx(Qt,{value:"all",children:"All Statuses"}),v.jsx(Qt,{value:"clicked",children:"Clicked"}),v.jsx(Qt,{value:"opened",children:"Opened"}),v.jsx(Qt,{value:"delivered",children:"Delivered"}),v.jsx(Qt,{value:"sent",children:"Sent"}),v.jsx(Qt,{value:"bounced",children:"Bounced"}),v.jsx(Qt,{value:"complained",children:"Complained"}),v.jsx(Qt,{value:"failed",children:"Failed"})]})]}),v.jsxs(kt,{size:"icon",variant:"outline",children:[v.jsx("span",{className:"sr-only",children:"Download"}),"↓"]})]}),v.jsx("div",{className:"rounded-md border",children:v.jsxs(gY,{children:[v.jsx(yY,{children:v.jsxs(Ud,{children:[v.jsx($u,{children:"To"}),v.jsx($u,{children:"Status"}),v.jsx($u,{children:"Subject"}),v.jsx($u,{children:"Sent"}),v.jsx($u,{className:"w-[50px]"})]})}),v.jsx(bY,{children:p?v.jsx(Ud,{children:v.jsx(lo,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"Loading email logs..."})}):w.length===0?v.jsx(Ud,{children:v.jsx(lo,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"No emails found"})}):w.map(E=>{var T,A,M;return v.jsxs(Ud,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>e(`/email/${E.id}`),children:[v.jsx(lo,{className:"font-mono text-sm",children:E.to.length>0?v.jsxs(v.Fragment,{children:[E.to[0],E.to.length>1&&v.jsxs("span",{className:"ml-1 text-muted-foreground text-xs",children:["+",E.to.length-1," more"]})]}):v.jsx("span",{className:"text-muted-foreground",children:"(no recipients)"})}),v.jsx(lo,{children:v.jsxs(QL,{children:[v.jsx(ZL,{asChild:!0,children:v.jsx(pn,{className:(T=py[E.status])==null?void 0:T.className,variant:((A=py[E.status])==null?void 0:A.variant)??"default",children:E.status.charAt(0).toUpperCase()+E.status.slice(1)})}),v.jsx(JL,{children:v.jsx("p",{children:((M=py[E.status])==null?void 0:M.description)??"Unknown status"})})]})}),v.jsx(lo,{className:"max-w-[400px] truncate",children:E.subject}),v.jsx(lo,{className:"text-muted-foreground",children:S(E.timestamp)}),v.jsx(lo,{children:v.jsxs(kt,{onClick:j=>{j.stopPropagation()},size:"icon",variant:"ghost",children:[v.jsx("span",{className:"sr-only",children:"More options"}),"⋯"]})})]},E.id)})})]})}),w.length>0&&!p&&v.jsx("div",{className:"flex items-center justify-between text-muted-foreground text-sm",children:v.jsxs("div",{children:["Showing ",w.length," of ",d.length," emails"]})})]}),v.jsx(ec,{value:"receiving",children:v.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"Receiving emails coming soon"})})]})})]})}const VI=6048e5,wY=864e5,aC=Symbol.for("constructDateFrom");function Mi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&aC in e?e[aC](t):e instanceof Date?new e.constructor(t):new Date(t)}function zr(e,t){return Mi(t||e,e)}let SY={};function Kp(){return SY}function dc(e,t){var c,f,d,m;const n=Kp(),r=(t==null?void 0:t.weekStartsOn)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((m=(d=n.locale)==null?void 0:d.options)==null?void 0:m.weekStartsOn)??0,i=zr(e,t==null?void 0:t.in),l=i.getDay(),s=(l<r?7:0)+l-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function _h(e,t){return dc(e,{...t,weekStartsOn:1})}function YI(e,t){const n=zr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Mi(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const l=_h(i),s=Mi(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=_h(s);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function iC(e){const t=zr(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function OY(e,...t){const n=Mi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function oC(e,t){const n=zr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function _Y(e,t,n){const[r,i]=OY(n==null?void 0:n.in,e,t),l=oC(r),s=oC(i),c=+l-iC(l),f=+s-iC(s);return Math.round((c-f)/wY)}function EY(e,t){const n=YI(e,t),r=Mi(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),_h(r)}function AY(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function TY(e){return!(!AY(e)&&typeof e!="number"||isNaN(+zr(e)))}function jY(e,t){const n=zr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const CY={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},MY=(e,t,n)=>{let r;const i=CY[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function my(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const NY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},RY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},DY={date:my({formats:NY,defaultWidth:"full"}),time:my({formats:RY,defaultWidth:"full"}),dateTime:my({formats:PY,defaultWidth:"full"})},kY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$Y=(e,t,n,r)=>kY[e];function Lu(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):s;i=e.formattingValues[c]||e.formattingValues[s]}else{const s=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[s]}const l=e.argumentCallback?e.argumentCallback(t):t;return i[l]}}const LY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},IY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},zY={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},BY={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},qY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},UY={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},HY=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},FY={ordinalNumber:HY,era:Lu({values:LY,defaultWidth:"wide"}),quarter:Lu({values:IY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Lu({values:zY,defaultWidth:"wide"}),day:Lu({values:BY,defaultWidth:"wide"}),dayPeriod:Lu({values:qY,defaultWidth:"wide",formattingValues:UY,defaultFormattingWidth:"wide"})};function Iu(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],l=t.match(i);if(!l)return null;const s=l[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?VY(c,p=>p.test(s)):GY(c,p=>p.test(s));let d;d=e.valueCallback?e.valueCallback(f):f,d=n.valueCallback?n.valueCallback(d):d;const m=t.slice(s.length);return{value:d,rest:m}}}function GY(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function VY(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function YY(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],l=t.match(e.parsePattern);if(!l)return null;let s=e.valueCallback?e.valueCallback(l[0]):l[0];s=n.valueCallback?n.valueCallback(s):s;const c=t.slice(i.length);return{value:s,rest:c}}}const WY=/^(\d+)(th|st|nd|rd)?/i,KY=/\d+/i,XY={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},QY={any:[/^b/i,/^(a|c)/i]},ZY={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},JY={any:[/1/i,/2/i,/3/i,/4/i]},eW={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},tW={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},nW={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},rW={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},aW={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},iW={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},oW={ordinalNumber:YY({matchPattern:WY,parsePattern:KY,valueCallback:e=>parseInt(e,10)}),era:Iu({matchPatterns:XY,defaultMatchWidth:"wide",parsePatterns:QY,defaultParseWidth:"any"}),quarter:Iu({matchPatterns:ZY,defaultMatchWidth:"wide",parsePatterns:JY,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Iu({matchPatterns:eW,defaultMatchWidth:"wide",parsePatterns:tW,defaultParseWidth:"any"}),day:Iu({matchPatterns:nW,defaultMatchWidth:"wide",parsePatterns:rW,defaultParseWidth:"any"}),dayPeriod:Iu({matchPatterns:aW,defaultMatchWidth:"any",parsePatterns:iW,defaultParseWidth:"any"})},lW={code:"en-US",formatDistance:MY,formatLong:DY,formatRelative:$Y,localize:FY,match:oW,options:{weekStartsOn:0,firstWeekContainsDate:1}};function sW(e,t){const n=zr(e,t==null?void 0:t.in);return _Y(n,jY(n))+1}function uW(e,t){const n=zr(e,t==null?void 0:t.in),r=+_h(n)-+EY(n);return Math.round(r/VI)+1}function WI(e,t){var m,p,y,x;const n=zr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Kp(),l=(t==null?void 0:t.firstWeekContainsDate)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(y=i.locale)==null?void 0:y.options)==null?void 0:x.firstWeekContainsDate)??1,s=Mi((t==null?void 0:t.in)||e,0);s.setFullYear(r+1,0,l),s.setHours(0,0,0,0);const c=dc(s,t),f=Mi((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,l),f.setHours(0,0,0,0);const d=dc(f,t);return+n>=+c?r+1:+n>=+d?r:r-1}function cW(e,t){var c,f,d,m;const n=Kp(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(c=t==null?void 0:t.locale)==null?void 0:c.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((m=(d=n.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)??1,i=WI(e,t),l=Mi((t==null?void 0:t.in)||e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),dc(l,t)}function fW(e,t){const n=zr(e,t==null?void 0:t.in),r=+dc(n,t)-+cW(n,t);return Math.round(r/VI)+1}function rt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const xi={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return rt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):rt(n+1,2)},d(e,t){return rt(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return rt(e.getHours()%12||12,t.length)},H(e,t){return rt(e.getHours(),t.length)},m(e,t){return rt(e.getMinutes(),t.length)},s(e,t){return rt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return rt(i,t.length)}},Rl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},lC={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),i=r>0?r:1-r;return n.ordinalNumber(i,{unit:"year"})}return xi.y(e,t)},Y:function(e,t,n,r){const i=WI(e,r),l=i>0?i:1-i;if(t==="YY"){const s=l%100;return rt(s,2)}return t==="Yo"?n.ordinalNumber(l,{unit:"year"}):rt(l,t.length)},R:function(e,t){const n=YI(e);return rt(n,t.length)},u:function(e,t){const n=e.getFullYear();return rt(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return rt(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return rt(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return xi.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return rt(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const i=fW(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):rt(i,t.length)},I:function(e,t,n){const r=uW(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):rt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):xi.d(e,t)},D:function(e,t,n){const r=sW(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):rt(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(l);case"ee":return rt(l,2);case"eo":return n.ordinalNumber(l,{unit:"day"});case"eee":return n.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(i,{width:"short",context:"formatting"});case"eeee":default:return n.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const i=e.getDay(),l=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(l);case"cc":return rt(l,t.length);case"co":return n.ordinalNumber(l,{unit:"day"});case"ccc":return n.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(i,{width:"narrow",context:"standalone"});case"cccccc":return n.day(i,{width:"short",context:"standalone"});case"cccc":default:return n.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),i=r===0?7:r;switch(t){case"i":return String(i);case"ii":return rt(i,t.length);case"io":return n.ordinalNumber(i,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const i=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let i;switch(r===12?i=Rl.noon:r===0?i=Rl.midnight:i=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let i;switch(r>=17?i=Rl.evening:r>=12?i=Rl.afternoon:r>=4?i=Rl.morning:i=Rl.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return xi.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):xi.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):rt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):xi.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):xi.s(e,t)},S:function(e,t){return xi.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return uC(r);case"XXXX":case"XX":return fo(r);case"XXXXX":case"XXX":default:return fo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return uC(r);case"xxxx":case"xx":return fo(r);case"xxxxx":case"xxx":default:return fo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+sC(r,":");case"OOOO":default:return"GMT"+fo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+sC(r,":");case"zzzz":default:return"GMT"+fo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return rt(r,t.length)},T:function(e,t,n){return rt(+e,t.length)}};function sC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),l=r%60;return l===0?n+String(i):n+String(i)+t+rt(l,2)}function uC(e,t){return e%60===0?(e>0?"-":"+")+rt(Math.abs(e)/60,2):fo(e,t)}function fo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=rt(Math.trunc(r/60),2),l=rt(r%60,2);return n+i+t+l}const cC=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},KI=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},dW=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return cC(e,t);let l;switch(r){case"P":l=t.dateTime({width:"short"});break;case"PP":l=t.dateTime({width:"medium"});break;case"PPP":l=t.dateTime({width:"long"});break;case"PPPP":default:l=t.dateTime({width:"full"});break}return l.replace("{{date}}",cC(r,t)).replace("{{time}}",KI(i,t))},hW={p:KI,P:dW},pW=/^D+$/,mW=/^Y+$/,vW=["D","DD","YY","YYYY"];function gW(e){return pW.test(e)}function yW(e){return mW.test(e)}function bW(e,t,n){const r=xW(e,t,n);if(console.warn(r),vW.includes(e))throw new RangeError(r)}function xW(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const wW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,SW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,OW=/^'([^]*?)'?$/,_W=/''/g,EW=/[a-zA-Z]/;function fC(e,t,n){var m,p,y,x;const r=Kp(),i=r.locale??lW,l=r.firstWeekContainsDate??((p=(m=r.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??1,s=r.weekStartsOn??((x=(y=r.locale)==null?void 0:y.options)==null?void 0:x.weekStartsOn)??0,c=zr(e,n==null?void 0:n.in);if(!TY(c))throw new RangeError("Invalid time value");let f=t.match(SW).map(O=>{const w=O[0];if(w==="p"||w==="P"){const S=hW[w];return S(O,i.formatLong)}return O}).join("").match(wW).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const w=O[0];if(w==="'")return{isToken:!1,value:AW(O)};if(lC[w])return{isToken:!0,value:O};if(w.match(EW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:O}});i.localize.preprocessor&&(f=i.localize.preprocessor(c,f));const d={firstWeekContainsDate:l,weekStartsOn:s,locale:i};return f.map(O=>{if(!O.isToken)return O.value;const w=O.value;(yW(w)||gW(w))&&bW(w,t,String(e));const S=lC[w[0]];return S(c,w,i.localize,d)}).join("")}function AW(e){const t=e.match(OW);return t?t[1].replace(_W,"'"):e}var vy,dC;function kn(){if(dC)return vy;dC=1;var e=Array.isArray;return vy=e,vy}var gy,hC;function XI(){if(hC)return gy;hC=1;var e=typeof Rd=="object"&&Rd&&Rd.Object===Object&&Rd;return gy=e,gy}var yy,pC;function la(){if(pC)return yy;pC=1;var e=XI(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return yy=n,yy}var by,mC;function sf(){if(mC)return by;mC=1;var e=la(),t=e.Symbol;return by=t,by}var xy,vC;function TW(){if(vC)return xy;vC=1;var e=sf(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function l(s){var c=n.call(s,i),f=s[i];try{s[i]=void 0;var d=!0}catch{}var m=r.call(s);return d&&(c?s[i]=f:delete s[i]),m}return xy=l,xy}var wy,gC;function jW(){if(gC)return wy;gC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return wy=n,wy}var Sy,yC;function Ha(){if(yC)return Sy;yC=1;var e=sf(),t=TW(),n=jW(),r="[object Null]",i="[object Undefined]",l=e?e.toStringTag:void 0;function s(c){return c==null?c===void 0?i:r:l&&l in Object(c)?t(c):n(c)}return Sy=s,Sy}var Oy,bC;function Fa(){if(bC)return Oy;bC=1;function e(t){return t!=null&&typeof t=="object"}return Oy=e,Oy}var _y,xC;function Ps(){if(xC)return _y;xC=1;var e=Ha(),t=Fa(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return _y=r,_y}var Ey,wC;function JS(){if(wC)return Ey;wC=1;var e=kn(),t=Ps(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(l,s){if(e(l))return!1;var c=typeof l;return c=="number"||c=="symbol"||c=="boolean"||l==null||t(l)?!0:r.test(l)||!n.test(l)||s!=null&&l in Object(s)}return Ey=i,Ey}var Ay,SC;function Pi(){if(SC)return Ay;SC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Ay=e,Ay}var Ty,OC;function eO(){if(OC)return Ty;OC=1;var e=Ha(),t=Pi(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",l="[object Proxy]";function s(c){if(!t(c))return!1;var f=e(c);return f==r||f==i||f==n||f==l}return Ty=s,Ty}var jy,_C;function CW(){if(_C)return jy;_C=1;var e=la(),t=e["__core-js_shared__"];return jy=t,jy}var Cy,EC;function MW(){if(EC)return Cy;EC=1;var e=CW(),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 Cy=n,Cy}var My,AC;function QI(){if(AC)return My;AC=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 My=n,My}var Ny,TC;function NW(){if(TC)return Ny;TC=1;var e=eO(),t=MW(),n=Pi(),r=QI(),i=/[\\^$.*+?()[\]{}|]/g,l=/^\[object .+?Constructor\]$/,s=Function.prototype,c=Object.prototype,f=s.toString,d=c.hasOwnProperty,m=RegExp("^"+f.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(y){if(!n(y)||t(y))return!1;var x=e(y)?m:l;return x.test(r(y))}return Ny=p,Ny}var Ry,jC;function RW(){if(jC)return Ry;jC=1;function e(t,n){return t==null?void 0:t[n]}return Ry=e,Ry}var Py,CC;function ko(){if(CC)return Py;CC=1;var e=NW(),t=RW();function n(r,i){var l=t(r,i);return e(l)?l:void 0}return Py=n,Py}var Dy,MC;function Xp(){if(MC)return Dy;MC=1;var e=ko(),t=e(Object,"create");return Dy=t,Dy}var ky,NC;function PW(){if(NC)return ky;NC=1;var e=Xp();function t(){this.__data__=e?e(null):{},this.size=0}return ky=t,ky}var $y,RC;function DW(){if(RC)return $y;RC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return $y=e,$y}var Ly,PC;function kW(){if(PC)return Ly;PC=1;var e=Xp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(l){var s=this.__data__;if(e){var c=s[l];return c===t?void 0:c}return r.call(s,l)?s[l]:void 0}return Ly=i,Ly}var Iy,DC;function $W(){if(DC)return Iy;DC=1;var e=Xp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var l=this.__data__;return e?l[i]!==void 0:n.call(l,i)}return Iy=r,Iy}var zy,kC;function LW(){if(kC)return zy;kC=1;var e=Xp(),t="__lodash_hash_undefined__";function n(r,i){var l=this.__data__;return this.size+=this.has(r)?0:1,l[r]=e&&i===void 0?t:i,this}return zy=n,zy}var By,$C;function IW(){if($C)return By;$C=1;var e=PW(),t=DW(),n=kW(),r=$W(),i=LW();function l(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=i,By=l,By}var qy,LC;function zW(){if(LC)return qy;LC=1;function e(){this.__data__=[],this.size=0}return qy=e,qy}var Uy,IC;function tO(){if(IC)return Uy;IC=1;function e(t,n){return t===n||t!==t&&n!==n}return Uy=e,Uy}var Hy,zC;function Qp(){if(zC)return Hy;zC=1;var e=tO();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Hy=t,Hy}var Fy,BC;function BW(){if(BC)return Fy;BC=1;var e=Qp(),t=Array.prototype,n=t.splice;function r(i){var l=this.__data__,s=e(l,i);if(s<0)return!1;var c=l.length-1;return s==c?l.pop():n.call(l,s,1),--this.size,!0}return Fy=r,Fy}var Gy,qC;function qW(){if(qC)return Gy;qC=1;var e=Qp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Gy=t,Gy}var Vy,UC;function UW(){if(UC)return Vy;UC=1;var e=Qp();function t(n){return e(this.__data__,n)>-1}return Vy=t,Vy}var Yy,HC;function HW(){if(HC)return Yy;HC=1;var e=Qp();function t(n,r){var i=this.__data__,l=e(i,n);return l<0?(++this.size,i.push([n,r])):i[l][1]=r,this}return Yy=t,Yy}var Wy,FC;function Zp(){if(FC)return Wy;FC=1;var e=zW(),t=BW(),n=qW(),r=UW(),i=HW();function l(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=i,Wy=l,Wy}var Ky,GC;function nO(){if(GC)return Ky;GC=1;var e=ko(),t=la(),n=e(t,"Map");return Ky=n,Ky}var Xy,VC;function FW(){if(VC)return Xy;VC=1;var e=IW(),t=Zp(),n=nO();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Xy=r,Xy}var Qy,YC;function GW(){if(YC)return Qy;YC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Qy=e,Qy}var Zy,WC;function Jp(){if(WC)return Zy;WC=1;var e=GW();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return Zy=t,Zy}var Jy,KC;function VW(){if(KC)return Jy;KC=1;var e=Jp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Jy=t,Jy}var eb,XC;function YW(){if(XC)return eb;XC=1;var e=Jp();function t(n){return e(this,n).get(n)}return eb=t,eb}var tb,QC;function WW(){if(QC)return tb;QC=1;var e=Jp();function t(n){return e(this,n).has(n)}return tb=t,tb}var nb,ZC;function KW(){if(ZC)return nb;ZC=1;var e=Jp();function t(n,r){var i=e(this,n),l=i.size;return i.set(n,r),this.size+=i.size==l?0:1,this}return nb=t,nb}var rb,JC;function rO(){if(JC)return rb;JC=1;var e=FW(),t=VW(),n=YW(),r=WW(),i=KW();function l(s){var c=-1,f=s==null?0:s.length;for(this.clear();++c<f;){var d=s[c];this.set(d[0],d[1])}}return l.prototype.clear=e,l.prototype.delete=t,l.prototype.get=n,l.prototype.has=r,l.prototype.set=i,rb=l,rb}var ab,eM;function ZI(){if(eM)return ab;eM=1;var e=rO(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var l=function(){var s=arguments,c=i?i.apply(this,s):s[0],f=l.cache;if(f.has(c))return f.get(c);var d=r.apply(this,s);return l.cache=f.set(c,d)||f,d};return l.cache=new(n.Cache||e),l}return n.Cache=e,ab=n,ab}var ib,tM;function XW(){if(tM)return ib;tM=1;var e=ZI(),t=500;function n(r){var i=e(r,function(s){return l.size===t&&l.clear(),s}),l=i.cache;return i}return ib=n,ib}var ob,nM;function QW(){if(nM)return ob;nM=1;var e=XW(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var l=[];return i.charCodeAt(0)===46&&l.push(""),i.replace(t,function(s,c,f,d){l.push(f?d.replace(n,"$1"):c||s)}),l});return ob=r,ob}var lb,rM;function aO(){if(rM)return lb;rM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,l=Array(i);++r<i;)l[r]=n(t[r],r,t);return l}return lb=e,lb}var sb,aM;function ZW(){if(aM)return sb;aM=1;var e=sf(),t=aO(),n=kn(),r=Ps(),i=e?e.prototype:void 0,l=i?i.toString:void 0;function s(c){if(typeof c=="string")return c;if(n(c))return t(c,s)+"";if(r(c))return l?l.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return sb=s,sb}var ub,iM;function JI(){if(iM)return ub;iM=1;var e=ZW();function t(n){return n==null?"":e(n)}return ub=t,ub}var cb,oM;function e3(){if(oM)return cb;oM=1;var e=kn(),t=JS(),n=QW(),r=JI();function i(l,s){return e(l)?l:t(l,s)?[l]:n(r(l))}return cb=i,cb}var fb,lM;function em(){if(lM)return fb;lM=1;var e=Ps();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return fb=t,fb}var db,sM;function iO(){if(sM)return db;sM=1;var e=e3(),t=em();function n(r,i){i=e(i,r);for(var l=0,s=i.length;r!=null&&l<s;)r=r[t(i[l++])];return l&&l==s?r:void 0}return db=n,db}var hb,uM;function t3(){if(uM)return hb;uM=1;var e=iO();function t(n,r,i){var l=n==null?void 0:e(n,r);return l===void 0?i:l}return hb=t,hb}var JW=t3();const pr=ut(JW);var pb,cM;function eK(){if(cM)return pb;cM=1;function e(t){return t==null}return pb=e,pb}var tK=eK();const ze=ut(tK);var mb,fM;function nK(){if(fM)return mb;fM=1;var e=Ha(),t=kn(),n=Fa(),r="[object String]";function i(l){return typeof l=="string"||!t(l)&&n(l)&&e(l)==r}return mb=i,mb}var rK=nK();const Ao=ut(rK);var aK=eO();const $e=ut(aK);var iK=Pi();const Ds=ut(iK);var vb={exports:{}},Ze={};/**
|
|
283
|
-
* @license React
|
|
284
|
-
* react-is.production.min.js
|
|
285
|
-
*
|
|
286
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
287
|
-
*
|
|
288
|
-
* This source code is licensed under the MIT license found in the
|
|
289
|
-
* LICENSE file in the root directory of this source tree.
|
|
290
|
-
*/var dM;function oK(){if(dM)return Ze;dM=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),l=Symbol.for("react.provider"),s=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"),p=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),O;O=Symbol.for("react.module.reference");function w(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case e:switch(S=S.type,S){case n:case i:case r:case d:case m:return S;default:switch(S=S&&S.$$typeof,S){case c:case s:case f:case y:case p:case l:return S;default:return E}}case t:return E}}}return Ze.ContextConsumer=s,Ze.ContextProvider=l,Ze.Element=e,Ze.ForwardRef=f,Ze.Fragment=n,Ze.Lazy=y,Ze.Memo=p,Ze.Portal=t,Ze.Profiler=i,Ze.StrictMode=r,Ze.Suspense=d,Ze.SuspenseList=m,Ze.isAsyncMode=function(){return!1},Ze.isConcurrentMode=function(){return!1},Ze.isContextConsumer=function(S){return w(S)===s},Ze.isContextProvider=function(S){return w(S)===l},Ze.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Ze.isForwardRef=function(S){return w(S)===f},Ze.isFragment=function(S){return w(S)===n},Ze.isLazy=function(S){return w(S)===y},Ze.isMemo=function(S){return w(S)===p},Ze.isPortal=function(S){return w(S)===t},Ze.isProfiler=function(S){return w(S)===i},Ze.isStrictMode=function(S){return w(S)===r},Ze.isSuspense=function(S){return w(S)===d},Ze.isSuspenseList=function(S){return w(S)===m},Ze.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===d||S===m||S===x||typeof S=="object"&&S!==null&&(S.$$typeof===y||S.$$typeof===p||S.$$typeof===l||S.$$typeof===s||S.$$typeof===f||S.$$typeof===O||S.getModuleId!==void 0)},Ze.typeOf=w,Ze}var hM;function lK(){return hM||(hM=1,vb.exports=oK()),vb.exports}var sK=lK(),gb,pM;function n3(){if(pM)return gb;pM=1;var e=Ha(),t=Fa(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return gb=r,gb}var yb,mM;function uK(){if(mM)return yb;mM=1;var e=n3();function t(n){return e(n)&&n!=+n}return yb=t,yb}var cK=uK();const uf=ut(cK);var fK=n3();const dK=ut(fK);var Mr=function(t){return t===0?0:t>0?1:-1},mo=function(t){return Ao(t)&&t.indexOf("%")===t.length-1},ye=function(t){return dK(t)&&!uf(t)},hK=function(t){return ze(t)},Gt=function(t){return ye(t)||Ao(t)},pK=0,cf=function(t){var n=++pK;return"".concat(t||"").concat(n)},To=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!ye(t)&&!Ao(t))return r;var l;if(mo(t)){var s=t.indexOf("%");l=n*parseFloat(t.slice(0,s))/100}else l=+t;return uf(l)&&(l=r),i&&l>n&&(l=n),l},Oi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},mK=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},jr=function(t,n){return ye(t)&&ye(n)?function(r){return t+r*(n-t)}:function(){return n}};function Eh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):pr(r,t))===n})}var vK=function(t,n){return ye(t)&&ye(n)?t-n:Ao(t)&&Ao(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Vl(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 qw(e){"@babel/helpers - typeof";return qw=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},qw(e)}var gK=["viewBox","children"],yK=["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"],vM=["points","pathLength"],bb={svg:gK,polygon:vM,polyline:vM},oO=["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"],Ah=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(_.isValidElement(t)&&(r=t.props),!Ds(r))return null;var i={};return Object.keys(r).forEach(function(l){oO.includes(l)&&(i[l]=n||function(s){return r[l](r,s)})}),i},bK=function(t,n,r){return function(i){return t(n,r,i),null}},Th=function(t,n,r){if(!Ds(t)||qw(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(l){var s=t[l];oO.includes(l)&&typeof s=="function"&&(i||(i={}),i[l]=bK(s,n,r))}),i},xK=["children"],wK=["children"];function gM(e,t){if(e==null)return{};var n=SK(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(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}function Uw(e){"@babel/helpers - typeof";return Uw=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},Uw(e)}var yM={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"},Pa=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},bM=null,xb=null,lO=function e(t){if(t===bM&&Array.isArray(xb))return xb;var n=[];return _.Children.forEach(t,function(r){ze(r)||(sK.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),xb=n,bM=t,n};function mr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Pa(i)}):r=[Pa(t)],lO(e).forEach(function(i){var l=pr(i,"type.displayName")||pr(i,"type.name");r.indexOf(l)!==-1&&n.push(i)}),n}function Vn(e,t){var n=mr(e,t);return n&&n[0]}var xM=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!ye(r)||r<=0||!ye(i)||i<=0)},OK=["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"],_K=function(t){return t&&t.type&&Ao(t.type)&&OK.indexOf(t.type)>=0},EK=function(t){return t&&Uw(t)==="object"&&"clipDot"in t},AK=function(t,n,r,i){var l,s=(l=bb==null?void 0:bb[i])!==null&&l!==void 0?l:[];return n.startsWith("data-")||!$e(t)&&(i&&s.includes(n)||yK.includes(n))||r&&oO.includes(n)},He=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(_.isValidElement(t)&&(i=t.props),!Ds(i))return null;var l={};return Object.keys(i).forEach(function(s){var c;AK((c=i)===null||c===void 0?void 0:c[s],s,n,r)&&(l[s]=i[s])}),l},Hw=function e(t,n){if(t===n)return!0;var r=_.Children.count(t);if(r!==_.Children.count(n))return!1;if(r===0)return!0;if(r===1)return wM(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var l=t[i],s=n[i];if(Array.isArray(l)||Array.isArray(s)){if(!e(l,s))return!1}else if(!wM(l,s))return!1}return!0},wM=function(t,n){if(ze(t)&&ze(n))return!0;if(!ze(t)&&!ze(n)){var r=t.props||{},i=r.children,l=gM(r,xK),s=n.props||{},c=s.children,f=gM(s,wK);return i&&c?Vl(l,f)&&Hw(i,c):!i&&!c?Vl(l,f):!1}return!1},SM=function(t,n){var r=[],i={};return lO(t).forEach(function(l,s){if(_K(l))r.push(l);else if(l){var c=Pa(l.type),f=n[c]||{},d=f.handler,m=f.once;if(d&&(!m||!i[c])){var p=d(l,c,s);r.push(p),i[c]=!0}}}),r},TK=function(t){var n=t&&t.type;return n&&yM[n]?yM[n]:null},jK=function(t,n){return lO(n).indexOf(t)},CK=["children","width","height","viewBox","className","style","title","desc"];function Fw(){return Fw=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},Fw.apply(this,arguments)}function MK(e,t){if(e==null)return{};var n=NK(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NK(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 Gw(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,l=e.className,s=e.style,c=e.title,f=e.desc,d=MK(e,CK),m=i||{width:n,height:r,x:0,y:0},p=Fe("recharts-surface",l);return I.createElement("svg",Fw({},He(d,!0,"svg"),{className:p,width:n,height:r,style:s,viewBox:"".concat(m.x," ").concat(m.y," ").concat(m.width," ").concat(m.height)}),I.createElement("title",null,c),I.createElement("desc",null,f),t)}var RK=["children","className"];function Vw(){return Vw=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},Vw.apply(this,arguments)}function PK(e,t){if(e==null)return{};var n=DK(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DK(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 Ct=I.forwardRef(function(e,t){var n=e.children,r=e.className,i=PK(e,RK),l=Fe("recharts-layer",r);return I.createElement("g",Vw({className:l},He(i,!0),{ref:t}),n)}),Da=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),l=2;l<r;l++)i[l-2]=arguments[l]},wb,OM;function kK(){if(OM)return wb;OM=1;function e(t,n,r){var i=-1,l=t.length;n<0&&(n=-n>l?0:l+n),r=r>l?l:r,r<0&&(r+=l),l=n>r?0:r-n>>>0,n>>>=0;for(var s=Array(l);++i<l;)s[i]=t[i+n];return s}return wb=e,wb}var Sb,_M;function $K(){if(_M)return Sb;_M=1;var e=kK();function t(n,r,i){var l=n.length;return i=i===void 0?l:i,!r&&i>=l?n:e(n,r,i)}return Sb=t,Sb}var Ob,EM;function r3(){if(EM)return Ob;EM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,l="\\ufe0e\\ufe0f",s="\\u200d",c=RegExp("["+s+e+i+l+"]");function f(d){return c.test(d)}return Ob=f,Ob}var _b,AM;function LK(){if(AM)return _b;AM=1;function e(t){return t.split("")}return _b=e,_b}var Eb,TM;function IK(){if(TM)return Eb;TM=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,l="\\ufe0e\\ufe0f",s="["+e+"]",c="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",m="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",y="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",O=d+"?",w="["+l+"]?",S="(?:"+x+"(?:"+[m,p,y].join("|")+")"+w+O+")*",E=w+O+S,T="(?:"+[m+c+"?",c,p,y,s].join("|")+")",A=RegExp(f+"(?="+f+")|"+T+E,"g");function M(j){return j.match(A)||[]}return Eb=M,Eb}var Ab,jM;function zK(){if(jM)return Ab;jM=1;var e=LK(),t=r3(),n=IK();function r(i){return t(i)?n(i):e(i)}return Ab=r,Ab}var Tb,CM;function BK(){if(CM)return Tb;CM=1;var e=$K(),t=r3(),n=zK(),r=JI();function i(l){return function(s){s=r(s);var c=t(s)?n(s):void 0,f=c?c[0]:s.charAt(0),d=c?e(c,1).join(""):s.slice(1);return f[l]()+d}}return Tb=i,Tb}var jb,MM;function qK(){if(MM)return jb;MM=1;var e=BK(),t=e("toUpperCase");return jb=t,jb}var UK=qK();const tm=ut(UK);function dt(e){return function(){return e}}const a3=Math.cos,jh=Math.sin,Br=Math.sqrt,Ch=Math.PI,nm=2*Ch,Yw=Math.PI,Ww=2*Yw,ho=1e-6,HK=Ww-ho;function i3(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function FK(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return i3;const n=10**t;return function(r){this._+=r[0];for(let i=1,l=r.length;i<l;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class GK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?i3:FK(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,i){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+i}`}bezierCurveTo(t,n,r,i,l,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+l},${this._y1=+s}`}arcTo(t,n,r,i,l){if(t=+t,n=+n,r=+r,i=+i,l=+l,l<0)throw new Error(`negative radius: ${l}`);let s=this._x1,c=this._y1,f=r-t,d=i-n,m=s-t,p=c-n,y=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(y>ho)if(!(Math.abs(p*f-d*m)>ho)||!l)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-s,O=i-c,w=f*f+d*d,S=x*x+O*O,E=Math.sqrt(w),T=Math.sqrt(y),A=l*Math.tan((Yw-Math.acos((w+y-S)/(2*E*T)))/2),M=A/T,j=A/E;Math.abs(M-1)>ho&&this._append`L${t+M*m},${n+M*p}`,this._append`A${l},${l},0,0,${+(p*x>m*O)},${this._x1=t+j*f},${this._y1=n+j*d}`}}arc(t,n,r,i,l,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(i),f=r*Math.sin(i),d=t+c,m=n+f,p=1^s,y=s?i-l:l-i;this._x1===null?this._append`M${d},${m}`:(Math.abs(this._x1-d)>ho||Math.abs(this._y1-m)>ho)&&this._append`L${d},${m}`,r&&(y<0&&(y=y%Ww+Ww),y>HK?this._append`A${r},${r},0,1,${p},${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=d},${this._y1=m}`:y>ho&&this._append`A${r},${r},0,${+(y>=Yw)},${p},${this._x1=t+r*Math.cos(l)},${this._y1=n+r*Math.sin(l)}`)}rect(t,n,r,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+i}h${-r}Z`}toString(){return this._}}function sO(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 GK(t)}function uO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function o3(e){this._context=e}o3.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 rm(e){return new o3(e)}function l3(e){return e[0]}function s3(e){return e[1]}function u3(e,t){var n=dt(!0),r=null,i=rm,l=null,s=sO(c);e=typeof e=="function"?e:e===void 0?l3:dt(e),t=typeof t=="function"?t:t===void 0?s3:dt(t);function c(f){var d,m=(f=uO(f)).length,p,y=!1,x;for(r==null&&(l=i(x=s())),d=0;d<=m;++d)!(d<m&&n(p=f[d],d,f))===y&&((y=!y)?l.lineStart():l.lineEnd()),y&&l.point(+e(p,d,f),+t(p,d,f));if(x)return l=null,x+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:dt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:dt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:dt(!!f),c):n},c.curve=function(f){return arguments.length?(i=f,r!=null&&(l=i(r)),c):i},c.context=function(f){return arguments.length?(f==null?r=l=null:l=i(r=f),c):r},c}function Hd(e,t,n){var r=null,i=dt(!0),l=null,s=rm,c=null,f=sO(d);e=typeof e=="function"?e:e===void 0?l3:dt(+e),t=typeof t=="function"?t:dt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?s3:dt(+n);function d(p){var y,x,O,w=(p=uO(p)).length,S,E=!1,T,A=new Array(w),M=new Array(w);for(l==null&&(c=s(T=f())),y=0;y<=w;++y){if(!(y<w&&i(S=p[y],y,p))===E)if(E=!E)x=y,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),O=y-1;O>=x;--O)c.point(A[O],M[O]);c.lineEnd(),c.areaEnd()}E&&(A[y]=+e(S,y,p),M[y]=+t(S,y,p),c.point(r?+r(S,y,p):A[y],n?+n(S,y,p):M[y]))}if(T)return c=null,T+""||null}function m(){return u3().defined(i).curve(s).context(l)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:dt(+p),r=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:dt(+p),d):e},d.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:dt(+p),d):r},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:dt(+p),n=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:dt(+p),d):t},d.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:dt(+p),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(p){return arguments.length?(i=typeof p=="function"?p:dt(!!p),d):i},d.curve=function(p){return arguments.length?(s=p,l!=null&&(c=s(l)),d):s},d.context=function(p){return arguments.length?(p==null?l=c=null:c=s(l=p),d):l},d}class c3{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 VK(e){return new c3(e,!0)}function YK(e){return new c3(e,!1)}const cO={draw(e,t){const n=Br(t/Ch);e.moveTo(n,0),e.arc(0,0,n,0,nm)}},WK={draw(e,t){const n=Br(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()}},f3=Br(1/3),KK=f3*2,XK={draw(e,t){const n=Br(t/KK),r=n*f3;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},QK={draw(e,t){const n=Br(t),r=-n/2;e.rect(r,r,n,n)}},ZK=.8908130915292852,d3=jh(Ch/10)/jh(7*Ch/10),JK=jh(nm/10)*d3,eX=-a3(nm/10)*d3,tX={draw(e,t){const n=Br(t*ZK),r=JK*n,i=eX*n;e.moveTo(0,-n),e.lineTo(r,i);for(let l=1;l<5;++l){const s=nm*l/5,c=a3(s),f=jh(s);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*i,f*r+c*i)}e.closePath()}},Cb=Br(3),nX={draw(e,t){const n=-Br(t/(Cb*3));e.moveTo(0,n*2),e.lineTo(-Cb*n,-n),e.lineTo(Cb*n,-n),e.closePath()}},sr=-.5,ur=Br(3)/2,Kw=1/Br(12),rX=(Kw/2+1)*3,aX={draw(e,t){const n=Br(t/rX),r=n/2,i=n*Kw,l=r,s=n*Kw+n,c=-l,f=s;e.moveTo(r,i),e.lineTo(l,s),e.lineTo(c,f),e.lineTo(sr*r-ur*i,ur*r+sr*i),e.lineTo(sr*l-ur*s,ur*l+sr*s),e.lineTo(sr*c-ur*f,ur*c+sr*f),e.lineTo(sr*r+ur*i,sr*i-ur*r),e.lineTo(sr*l+ur*s,sr*s-ur*l),e.lineTo(sr*c+ur*f,sr*f-ur*c),e.closePath()}};function iX(e,t){let n=null,r=sO(i);e=typeof e=="function"?e:dt(e||cO),t=typeof t=="function"?t:dt(t===void 0?64:+t);function i(){let l;if(n||(n=l=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),l)return n=null,l+""||null}return i.type=function(l){return arguments.length?(e=typeof l=="function"?l:dt(l),i):e},i.size=function(l){return arguments.length?(t=typeof l=="function"?l:dt(+l),i):t},i.context=function(l){return arguments.length?(n=l??null,i):n},i}function Mh(){}function Nh(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 h3(e){this._context=e}h3.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:Nh(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:Nh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function oX(e){return new h3(e)}function p3(e){this._context=e}p3.prototype={areaStart:Mh,areaEnd:Mh,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:Nh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function lX(e){return new p3(e)}function m3(e){this._context=e}m3.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:Nh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function sX(e){return new m3(e)}function v3(e){this._context=e}v3.prototype={areaStart:Mh,areaEnd:Mh,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 uX(e){return new v3(e)}function NM(e){return e<0?-1:1}function RM(e,t,n){var r=e._x1-e._x0,i=t-e._x1,l=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),c=(l*i+s*r)/(r+i);return(NM(l)+NM(s))*Math.min(Math.abs(l),Math.abs(s),.5*Math.abs(c))||0}function PM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Mb(e,t,n){var r=e._x0,i=e._y0,l=e._x1,s=e._y1,c=(l-r)/3;e._context.bezierCurveTo(r+c,i+c*t,l-c,s-c*n,l,s)}function Rh(e){this._context=e}Rh.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:Mb(this,this._t0,PM(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,Mb(this,PM(this,n=RM(this,e,t)),n);break;default:Mb(this,this._t0,n=RM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function g3(e){this._context=new y3(e)}(g3.prototype=Object.create(Rh.prototype)).point=function(e,t){Rh.prototype.point.call(this,t,e)};function y3(e){this._context=e}y3.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,i,l){this._context.bezierCurveTo(t,e,r,n,l,i)}};function cX(e){return new Rh(e)}function fX(e){return new g3(e)}function b3(e){this._context=e}b3.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=DM(e),i=DM(t),l=0,s=1;s<n;++l,++s)this._context.bezierCurveTo(r[0][l],i[0][l],r[1][l],i[1][l],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function DM(e){var t,n=e.length-1,r,i=new Array(n),l=new Array(n),s=new Array(n);for(i[0]=0,l[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,l[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,l[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/l[t-1],l[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/l[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/l[t];for(l[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)l[t]=2*e[t+1]-i[t+1];return[i,l]}function dX(e){return new b3(e)}function am(e,t){this._context=e,this._t=t}am.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 hX(e){return new am(e,.5)}function pX(e){return new am(e,0)}function mX(e){return new am(e,1)}function Jl(e,t){if((s=e.length)>1)for(var n=1,r,i,l=e[t[0]],s,c=l.length;n<s;++n)for(i=l,l=e[t[n]],r=0;r<c;++r)l[r][1]+=l[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function Xw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function vX(e,t){return e[t]}function gX(e){const t=[];return t.key=e,t}function yX(){var e=dt([]),t=Xw,n=Jl,r=vX;function i(l){var s=Array.from(e.apply(this,arguments),gX),c,f=s.length,d=-1,m;for(const p of l)for(c=0,++d;c<f;++c)(s[c][d]=[0,+r(p,s[c].key,d,l)]).data=p;for(c=0,m=uO(t(s));c<f;++c)s[m[c]].index=c;return n(s,m),s}return i.keys=function(l){return arguments.length?(e=typeof l=="function"?l:dt(Array.from(l)),i):e},i.value=function(l){return arguments.length?(r=typeof l=="function"?l:dt(+l),i):r},i.order=function(l){return arguments.length?(t=l==null?Xw:typeof l=="function"?l:dt(Array.from(l)),i):t},i.offset=function(l){return arguments.length?(n=l??Jl,i):n},i}function bX(e,t){if((r=e.length)>0){for(var n,r,i=0,l=e[0].length,s;i<l;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}Jl(e,t)}}function xX(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,l=r.length;n<l;++n){for(var s=0,c=0;s<i;++s)c+=e[s][n][1]||0;r[n][1]+=r[n][0]=-c/2}Jl(e,t)}}function wX(e,t){if(!(!((s=e.length)>0)||!((l=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,l,s;r<l;++r){for(var c=0,f=0,d=0;c<s;++c){for(var m=e[t[c]],p=m[r][1]||0,y=m[r-1][1]||0,x=(p-y)/2,O=0;O<c;++O){var w=e[t[O]],S=w[r][1]||0,E=w[r-1][1]||0;x+=S-E}f+=p,d+=x*p}i[r-1][1]+=i[r-1][0]=n,f&&(n-=d/f)}i[r-1][1]+=i[r-1][0]=n,Jl(e,t)}}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)}var SX=["type","size","sizeType"];function Qw(){return Qw=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},Qw.apply(this,arguments)}function kM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $M(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kM(Object(n),!0).forEach(function(r){OX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OX(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=EX(e,"string");return hc(t)=="symbol"?t:t+""}function EX(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 AX(e,t){if(e==null)return{};var n=TX(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TX(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 x3={symbolCircle:cO,symbolCross:WK,symbolDiamond:XK,symbolSquare:QK,symbolStar:tX,symbolTriangle:nX,symbolWye:aX},jX=Math.PI/180,CX=function(t){var n="symbol".concat(tm(t));return x3[n]||cO},MX=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 i=18*jX;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),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}},NX=function(t,n){x3["symbol".concat(tm(t))]=n},fO=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,l=i===void 0?64:i,s=t.sizeType,c=s===void 0?"area":s,f=AX(t,SX),d=$M($M({},f),{},{type:r,size:l,sizeType:c}),m=function(){var S=CX(r),E=iX().type(S).size(MX(l,c,r));return E()},p=d.className,y=d.cx,x=d.cy,O=He(d,!0);return y===+y&&x===+x&&l===+l?I.createElement("path",Qw({},O,{className:Fe("recharts-symbols",p),transform:"translate(".concat(y,", ").concat(x,")"),d:m()})):null};fO.registerSymbol=NX;function es(e){"@babel/helpers - typeof";return es=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},es(e)}function Zw(){return Zw=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},Zw.apply(this,arguments)}function LM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function RX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LM(Object(n),!0).forEach(function(r){pc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DX(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S3(r.key),r)}}function kX(e,t,n){return t&&DX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $X(e,t,n){return t=Ph(t),LX(e,w3()?Reflect.construct(t,n||[],Ph(e).constructor):t.apply(e,n))}function LX(e,t){if(t&&(es(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IX(e)}function IX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function w3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(w3=function(){return!!e})()}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ph(e)}function zX(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&&Jw(e,t)}function Jw(e,t){return Jw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Jw(e,t)}function pc(e,t,n){return t=S3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S3(e){var t=BX(e,"string");return es(t)=="symbol"?t:t+""}function BX(e,t){if(es(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(es(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var cr=32,dO=(function(e){function t(){return PX(this,t),$X(this,t,arguments)}return zX(t,e),kX(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,l=cr/2,s=cr/6,c=cr/3,f=r.inactive?i:r.color;if(r.type==="plainline")return I.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:l,x2:cr,y2:l,className:"recharts-legend-icon"});if(r.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(l,"h").concat(c,`
|
|
291
|
-
A`).concat(s,",").concat(s,",0,1,1,").concat(2*c,",").concat(l,`
|
|
292
|
-
H`).concat(cr,"M").concat(2*c,",").concat(l,`
|
|
293
|
-
A`).concat(s,",").concat(s,",0,1,1,").concat(c,",").concat(l),className:"recharts-legend-icon"});if(r.type==="rect")return I.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(cr/8,"h").concat(cr,"v").concat(cr*3/4,"h").concat(-cr,"z"),className:"recharts-legend-icon"});if(I.isValidElement(r.legendIcon)){var d=RX({},r);return delete d.legendIcon,I.cloneElement(r.legendIcon,d)}return I.createElement(fO,{fill:f,cx:l,cy:l,size:cr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,l=i.payload,s=i.iconSize,c=i.layout,f=i.formatter,d=i.inactiveColor,m={x:0,y:0,width:cr,height:cr},p={display:c==="horizontal"?"inline-block":"block",marginRight:10},y={display:"inline-block",verticalAlign:"middle",marginRight:4};return l.map(function(x,O){var w=x.formatter||f,S=Fe(pc(pc({"recharts-legend-item":!0},"legend-item-".concat(O),!0),"inactive",x.inactive));if(x.type==="none")return null;var E=$e(x.value)?null:x.value;Da(!$e(x.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 T=x.inactive?d:x.color;return I.createElement("li",Zw({className:S,style:p,key:"legend-item-".concat(O)},Th(r.props,x,O)),I.createElement(Gw,{width:s,height:s,viewBox:m,style:y},r.renderIcon(x)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:T}},w?w(E,x,O):E))})}},{key:"render",value:function(){var r=this.props,i=r.payload,l=r.layout,s=r.align;if(!i||!i.length)return null;var c={padding:0,margin:0,textAlign:l==="horizontal"?s:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(_.PureComponent);pc(dO,"displayName","Legend");pc(dO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Nb,IM;function qX(){if(IM)return Nb;IM=1;var e=Zp();function t(){this.__data__=new e,this.size=0}return Nb=t,Nb}var Rb,zM;function UX(){if(zM)return Rb;zM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Rb=e,Rb}var Pb,BM;function HX(){if(BM)return Pb;BM=1;function e(t){return this.__data__.get(t)}return Pb=e,Pb}var Db,qM;function FX(){if(qM)return Db;qM=1;function e(t){return this.__data__.has(t)}return Db=e,Db}var kb,UM;function GX(){if(UM)return kb;UM=1;var e=Zp(),t=nO(),n=rO(),r=200;function i(l,s){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([l,s]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(l,s),this.size=c.size,this}return kb=i,kb}var $b,HM;function O3(){if(HM)return $b;HM=1;var e=Zp(),t=qX(),n=UX(),r=HX(),i=FX(),l=GX();function s(c){var f=this.__data__=new e(c);this.size=f.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=l,$b=s,$b}var Lb,FM;function VX(){if(FM)return Lb;FM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Lb=t,Lb}var Ib,GM;function YX(){if(GM)return Ib;GM=1;function e(t){return this.__data__.has(t)}return Ib=e,Ib}var zb,VM;function _3(){if(VM)return zb;VM=1;var e=rO(),t=VX(),n=YX();function r(i){var l=-1,s=i==null?0:i.length;for(this.__data__=new e;++l<s;)this.add(i[l])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,zb=r,zb}var Bb,YM;function E3(){if(YM)return Bb;YM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return Bb=e,Bb}var qb,WM;function A3(){if(WM)return qb;WM=1;function e(t,n){return t.has(n)}return qb=e,qb}var Ub,KM;function T3(){if(KM)return Ub;KM=1;var e=_3(),t=E3(),n=A3(),r=1,i=2;function l(s,c,f,d,m,p){var y=f&r,x=s.length,O=c.length;if(x!=O&&!(y&&O>x))return!1;var w=p.get(s),S=p.get(c);if(w&&S)return w==c&&S==s;var E=-1,T=!0,A=f&i?new e:void 0;for(p.set(s,c),p.set(c,s);++E<x;){var M=s[E],j=c[E];if(d)var N=y?d(j,M,E,c,s,p):d(M,j,E,s,c,p);if(N!==void 0){if(N)continue;T=!1;break}if(A){if(!t(c,function(R,P){if(!n(A,P)&&(M===R||m(M,R,f,d,p)))return A.push(P)})){T=!1;break}}else if(!(M===j||m(M,j,f,d,p))){T=!1;break}}return p.delete(s),p.delete(c),T}return Ub=l,Ub}var Hb,XM;function WX(){if(XM)return Hb;XM=1;var e=la(),t=e.Uint8Array;return Hb=t,Hb}var Fb,QM;function KX(){if(QM)return Fb;QM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,l){r[++n]=[l,i]}),r}return Fb=e,Fb}var Gb,ZM;function hO(){if(ZM)return Gb;ZM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Gb=e,Gb}var Vb,JM;function XX(){if(JM)return Vb;JM=1;var e=sf(),t=WX(),n=tO(),r=T3(),i=KX(),l=hO(),s=1,c=2,f="[object Boolean]",d="[object Date]",m="[object Error]",p="[object Map]",y="[object Number]",x="[object RegExp]",O="[object Set]",w="[object String]",S="[object Symbol]",E="[object ArrayBuffer]",T="[object DataView]",A=e?e.prototype:void 0,M=A?A.valueOf:void 0;function j(N,R,P,L,Y,z,H){switch(P){case T:if(N.byteLength!=R.byteLength||N.byteOffset!=R.byteOffset)return!1;N=N.buffer,R=R.buffer;case E:return!(N.byteLength!=R.byteLength||!z(new t(N),new t(R)));case f:case d:case y:return n(+N,+R);case m:return N.name==R.name&&N.message==R.message;case x:case w:return N==R+"";case p:var V=i;case O:var Q=L&s;if(V||(V=l),N.size!=R.size&&!Q)return!1;var K=H.get(N);if(K)return K==R;L|=c,H.set(N,R);var k=r(V(N),V(R),L,Y,z,H);return H.delete(N),k;case S:if(M)return M.call(N)==M.call(R)}return!1}return Vb=j,Vb}var Yb,e2;function j3(){if(e2)return Yb;e2=1;function e(t,n){for(var r=-1,i=n.length,l=t.length;++r<i;)t[l+r]=n[r];return t}return Yb=e,Yb}var Wb,t2;function QX(){if(t2)return Wb;t2=1;var e=j3(),t=kn();function n(r,i,l){var s=i(r);return t(r)?s:e(s,l(r))}return Wb=n,Wb}var Kb,n2;function ZX(){if(n2)return Kb;n2=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,l=0,s=[];++r<i;){var c=t[r];n(c,r,t)&&(s[l++]=c)}return s}return Kb=e,Kb}var Xb,r2;function JX(){if(r2)return Xb;r2=1;function e(){return[]}return Xb=e,Xb}var Qb,a2;function eQ(){if(a2)return Qb;a2=1;var e=ZX(),t=JX(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,l=i?function(s){return s==null?[]:(s=Object(s),e(i(s),function(c){return r.call(s,c)}))}:t;return Qb=l,Qb}var Zb,i2;function tQ(){if(i2)return Zb;i2=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return Zb=e,Zb}var Jb,o2;function nQ(){if(o2)return Jb;o2=1;var e=Ha(),t=Fa(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return Jb=r,Jb}var e0,l2;function pO(){if(l2)return e0;l2=1;var e=nQ(),t=Fa(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,l=e((function(){return arguments})())?e:function(s){return t(s)&&r.call(s,"callee")&&!i.call(s,"callee")};return e0=l,e0}var Xu={exports:{}},t0,s2;function rQ(){if(s2)return t0;s2=1;function e(){return!1}return t0=e,t0}Xu.exports;var u2;function C3(){return u2||(u2=1,(function(e,t){var n=la(),r=rQ(),i=t&&!t.nodeType&&t,l=i&&!0&&e&&!e.nodeType&&e,s=l&&l.exports===i,c=s?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(Xu,Xu.exports)),Xu.exports}var n0,c2;function mO(){if(c2)return n0;c2=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var l=typeof r;return i=i??e,!!i&&(l=="number"||l!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return n0=n,n0}var r0,f2;function vO(){if(f2)return r0;f2=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return r0=t,r0}var a0,d2;function aQ(){if(d2)return a0;d2=1;var e=Ha(),t=vO(),n=Fa(),r="[object Arguments]",i="[object Array]",l="[object Boolean]",s="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",m="[object Number]",p="[object Object]",y="[object RegExp]",x="[object Set]",O="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",E="[object DataView]",T="[object Float32Array]",A="[object Float64Array]",M="[object Int8Array]",j="[object Int16Array]",N="[object Int32Array]",R="[object Uint8Array]",P="[object Uint8ClampedArray]",L="[object Uint16Array]",Y="[object Uint32Array]",z={};z[T]=z[A]=z[M]=z[j]=z[N]=z[R]=z[P]=z[L]=z[Y]=!0,z[r]=z[i]=z[S]=z[l]=z[E]=z[s]=z[c]=z[f]=z[d]=z[m]=z[p]=z[y]=z[x]=z[O]=z[w]=!1;function H(V){return n(V)&&t(V.length)&&!!z[e(V)]}return a0=H,a0}var i0,h2;function M3(){if(h2)return i0;h2=1;function e(t){return function(n){return t(n)}}return i0=e,i0}var Qu={exports:{}};Qu.exports;var p2;function iQ(){return p2||(p2=1,(function(e,t){var n=XI(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,l=i&&i.exports===r,s=l&&n.process,c=(function(){try{var f=i&&i.require&&i.require("util").types;return f||s&&s.binding&&s.binding("util")}catch{}})();e.exports=c})(Qu,Qu.exports)),Qu.exports}var o0,m2;function N3(){if(m2)return o0;m2=1;var e=aQ(),t=M3(),n=iQ(),r=n&&n.isTypedArray,i=r?t(r):e;return o0=i,o0}var l0,v2;function oQ(){if(v2)return l0;v2=1;var e=tQ(),t=pO(),n=kn(),r=C3(),i=mO(),l=N3(),s=Object.prototype,c=s.hasOwnProperty;function f(d,m){var p=n(d),y=!p&&t(d),x=!p&&!y&&r(d),O=!p&&!y&&!x&&l(d),w=p||y||x||O,S=w?e(d.length,String):[],E=S.length;for(var T in d)(m||c.call(d,T))&&!(w&&(T=="length"||x&&(T=="offset"||T=="parent")||O&&(T=="buffer"||T=="byteLength"||T=="byteOffset")||i(T,E)))&&S.push(T);return S}return l0=f,l0}var s0,g2;function lQ(){if(g2)return s0;g2=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return s0=t,s0}var u0,y2;function R3(){if(y2)return u0;y2=1;function e(t,n){return function(r){return t(n(r))}}return u0=e,u0}var c0,b2;function sQ(){if(b2)return c0;b2=1;var e=R3(),t=e(Object.keys,Object);return c0=t,c0}var f0,x2;function uQ(){if(x2)return f0;x2=1;var e=lQ(),t=sQ(),n=Object.prototype,r=n.hasOwnProperty;function i(l){if(!e(l))return t(l);var s=[];for(var c in Object(l))r.call(l,c)&&c!="constructor"&&s.push(c);return s}return f0=i,f0}var d0,w2;function ff(){if(w2)return d0;w2=1;var e=eO(),t=vO();function n(r){return r!=null&&t(r.length)&&!e(r)}return d0=n,d0}var h0,S2;function im(){if(S2)return h0;S2=1;var e=oQ(),t=uQ(),n=ff();function r(i){return n(i)?e(i):t(i)}return h0=r,h0}var p0,O2;function cQ(){if(O2)return p0;O2=1;var e=QX(),t=eQ(),n=im();function r(i){return e(i,n,t)}return p0=r,p0}var m0,_2;function fQ(){if(_2)return m0;_2=1;var e=cQ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(l,s,c,f,d,m){var p=c&t,y=e(l),x=y.length,O=e(s),w=O.length;if(x!=w&&!p)return!1;for(var S=x;S--;){var E=y[S];if(!(p?E in s:r.call(s,E)))return!1}var T=m.get(l),A=m.get(s);if(T&&A)return T==s&&A==l;var M=!0;m.set(l,s),m.set(s,l);for(var j=p;++S<x;){E=y[S];var N=l[E],R=s[E];if(f)var P=p?f(R,N,E,s,l,m):f(N,R,E,l,s,m);if(!(P===void 0?N===R||d(N,R,c,f,m):P)){M=!1;break}j||(j=E=="constructor")}if(M&&!j){var L=l.constructor,Y=s.constructor;L!=Y&&"constructor"in l&&"constructor"in s&&!(typeof L=="function"&&L instanceof L&&typeof Y=="function"&&Y instanceof Y)&&(M=!1)}return m.delete(l),m.delete(s),M}return m0=i,m0}var v0,E2;function dQ(){if(E2)return v0;E2=1;var e=ko(),t=la(),n=e(t,"DataView");return v0=n,v0}var g0,A2;function hQ(){if(A2)return g0;A2=1;var e=ko(),t=la(),n=e(t,"Promise");return g0=n,g0}var y0,T2;function P3(){if(T2)return y0;T2=1;var e=ko(),t=la(),n=e(t,"Set");return y0=n,y0}var b0,j2;function pQ(){if(j2)return b0;j2=1;var e=ko(),t=la(),n=e(t,"WeakMap");return b0=n,b0}var x0,C2;function mQ(){if(C2)return x0;C2=1;var e=dQ(),t=nO(),n=hQ(),r=P3(),i=pQ(),l=Ha(),s=QI(),c="[object Map]",f="[object Object]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",y="[object DataView]",x=s(e),O=s(t),w=s(n),S=s(r),E=s(i),T=l;return(e&&T(new e(new ArrayBuffer(1)))!=y||t&&T(new t)!=c||n&&T(n.resolve())!=d||r&&T(new r)!=m||i&&T(new i)!=p)&&(T=function(A){var M=l(A),j=M==f?A.constructor:void 0,N=j?s(j):"";if(N)switch(N){case x:return y;case O:return c;case w:return d;case S:return m;case E:return p}return M}),x0=T,x0}var w0,M2;function vQ(){if(M2)return w0;M2=1;var e=O3(),t=T3(),n=XX(),r=fQ(),i=mQ(),l=kn(),s=C3(),c=N3(),f=1,d="[object Arguments]",m="[object Array]",p="[object Object]",y=Object.prototype,x=y.hasOwnProperty;function O(w,S,E,T,A,M){var j=l(w),N=l(S),R=j?m:i(w),P=N?m:i(S);R=R==d?p:R,P=P==d?p:P;var L=R==p,Y=P==p,z=R==P;if(z&&s(w)){if(!s(S))return!1;j=!0,L=!1}if(z&&!L)return M||(M=new e),j||c(w)?t(w,S,E,T,A,M):n(w,S,R,E,T,A,M);if(!(E&f)){var H=L&&x.call(w,"__wrapped__"),V=Y&&x.call(S,"__wrapped__");if(H||V){var Q=H?w.value():w,K=V?S.value():S;return M||(M=new e),A(Q,K,E,T,M)}}return z?(M||(M=new e),r(w,S,E,T,A,M)):!1}return w0=O,w0}var S0,N2;function gO(){if(N2)return S0;N2=1;var e=vQ(),t=Fa();function n(r,i,l,s,c){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,l,s,n,c)}return S0=n,S0}var O0,R2;function gQ(){if(R2)return O0;R2=1;var e=O3(),t=gO(),n=1,r=2;function i(l,s,c,f){var d=c.length,m=d,p=!f;if(l==null)return!m;for(l=Object(l);d--;){var y=c[d];if(p&&y[2]?y[1]!==l[y[0]]:!(y[0]in l))return!1}for(;++d<m;){y=c[d];var x=y[0],O=l[x],w=y[1];if(p&&y[2]){if(O===void 0&&!(x in l))return!1}else{var S=new e;if(f)var E=f(O,w,x,l,s,S);if(!(E===void 0?t(w,O,n|r,f,S):E))return!1}}return!0}return O0=i,O0}var _0,P2;function D3(){if(P2)return _0;P2=1;var e=Pi();function t(n){return n===n&&!e(n)}return _0=t,_0}var E0,D2;function yQ(){if(D2)return E0;D2=1;var e=D3(),t=im();function n(r){for(var i=t(r),l=i.length;l--;){var s=i[l],c=r[s];i[l]=[s,c,e(c)]}return i}return E0=n,E0}var A0,k2;function k3(){if(k2)return A0;k2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return A0=e,A0}var T0,$2;function bQ(){if($2)return T0;$2=1;var e=gQ(),t=yQ(),n=k3();function r(i){var l=t(i);return l.length==1&&l[0][2]?n(l[0][0],l[0][1]):function(s){return s===i||e(s,i,l)}}return T0=r,T0}var j0,L2;function xQ(){if(L2)return j0;L2=1;function e(t,n){return t!=null&&n in Object(t)}return j0=e,j0}var C0,I2;function wQ(){if(I2)return C0;I2=1;var e=e3(),t=pO(),n=kn(),r=mO(),i=vO(),l=em();function s(c,f,d){f=e(f,c);for(var m=-1,p=f.length,y=!1;++m<p;){var x=l(f[m]);if(!(y=c!=null&&d(c,x)))break;c=c[x]}return y||++m!=p?y:(p=c==null?0:c.length,!!p&&i(p)&&r(x,p)&&(n(c)||t(c)))}return C0=s,C0}var M0,z2;function SQ(){if(z2)return M0;z2=1;var e=xQ(),t=wQ();function n(r,i){return r!=null&&t(r,i,e)}return M0=n,M0}var N0,B2;function OQ(){if(B2)return N0;B2=1;var e=gO(),t=t3(),n=SQ(),r=JS(),i=D3(),l=k3(),s=em(),c=1,f=2;function d(m,p){return r(m)&&i(p)?l(s(m),p):function(y){var x=t(y,m);return x===void 0&&x===p?n(y,m):e(p,x,c|f)}}return N0=d,N0}var R0,q2;function ks(){if(q2)return R0;q2=1;function e(t){return t}return R0=e,R0}var P0,U2;function _Q(){if(U2)return P0;U2=1;function e(t){return function(n){return n==null?void 0:n[t]}}return P0=e,P0}var D0,H2;function EQ(){if(H2)return D0;H2=1;var e=iO();function t(n){return function(r){return e(r,n)}}return D0=t,D0}var k0,F2;function AQ(){if(F2)return k0;F2=1;var e=_Q(),t=EQ(),n=JS(),r=em();function i(l){return n(l)?e(r(l)):t(l)}return k0=i,k0}var $0,G2;function Di(){if(G2)return $0;G2=1;var e=bQ(),t=OQ(),n=ks(),r=kn(),i=AQ();function l(s){return typeof s=="function"?s:s==null?n:typeof s=="object"?r(s)?t(s[0],s[1]):e(s):i(s)}return $0=l,$0}var L0,V2;function $3(){if(V2)return L0;V2=1;function e(t,n,r,i){for(var l=t.length,s=r+(i?1:-1);i?s--:++s<l;)if(n(t[s],s,t))return s;return-1}return L0=e,L0}var I0,Y2;function TQ(){if(Y2)return I0;Y2=1;function e(t){return t!==t}return I0=e,I0}var z0,W2;function jQ(){if(W2)return z0;W2=1;function e(t,n,r){for(var i=r-1,l=t.length;++i<l;)if(t[i]===n)return i;return-1}return z0=e,z0}var B0,K2;function CQ(){if(K2)return B0;K2=1;var e=$3(),t=TQ(),n=jQ();function r(i,l,s){return l===l?n(i,l,s):e(i,t,s)}return B0=r,B0}var q0,X2;function MQ(){if(X2)return q0;X2=1;var e=CQ();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return q0=t,q0}var U0,Q2;function NQ(){if(Q2)return U0;Q2=1;function e(t,n,r){for(var i=-1,l=t==null?0:t.length;++i<l;)if(r(n,t[i]))return!0;return!1}return U0=e,U0}var H0,Z2;function RQ(){if(Z2)return H0;Z2=1;function e(){}return H0=e,H0}var F0,J2;function PQ(){if(J2)return F0;J2=1;var e=P3(),t=RQ(),n=hO(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(l){return new e(l)}:t;return F0=i,F0}var G0,eN;function DQ(){if(eN)return G0;eN=1;var e=_3(),t=MQ(),n=NQ(),r=A3(),i=PQ(),l=hO(),s=200;function c(f,d,m){var p=-1,y=t,x=f.length,O=!0,w=[],S=w;if(m)O=!1,y=n;else if(x>=s){var E=d?null:i(f);if(E)return l(E);O=!1,y=r,S=new e}else S=d?[]:w;e:for(;++p<x;){var T=f[p],A=d?d(T):T;if(T=m||T!==0?T:0,O&&A===A){for(var M=S.length;M--;)if(S[M]===A)continue e;d&&S.push(A),w.push(T)}else y(S,A,m)||(S!==w&&S.push(A),w.push(T))}return w}return G0=c,G0}var V0,tN;function kQ(){if(tN)return V0;tN=1;var e=Di(),t=DQ();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return V0=n,V0}var $Q=kQ();const nN=ut($Q);function L3(e,t,n){return t===!0?nN(e,n):$e(t)?nN(e,t):e}function ts(e){"@babel/helpers - typeof";return ts=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ts(e)}var LQ=["ref"];function rN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rN(Object(n),!0).forEach(function(r){om(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aN(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,z3(r.key),r)}}function zQ(e,t,n){return t&&aN(e.prototype,t),n&&aN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function BQ(e,t,n){return t=Dh(t),qQ(e,I3()?Reflect.construct(t,n||[],Dh(e).constructor):t.apply(e,n))}function qQ(e,t){if(t&&(ts(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UQ(e)}function UQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function I3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(I3=function(){return!!e})()}function Dh(e){return Dh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dh(e)}function HQ(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&&e1(e,t)}function e1(e,t){return e1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},e1(e,t)}function om(e,t,n){return t=z3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z3(e){var t=FQ(e,"string");return ts(t)=="symbol"?t:t+""}function FQ(e,t){if(ts(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ts(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function GQ(e,t){if(e==null)return{};var n=VQ(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VQ(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 YQ(e){return e.value}function WQ(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var n=GQ(t,LQ);return I.createElement(dO,n)}var iN=1,bo=(function(e){function t(){var n;IQ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=BQ(this,t,[].concat(i)),om(n,"lastBoundingBox",{width:-1,height:-1}),n}return HQ(t,e),zQ(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,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>iN||Math.abs(i.height-this.lastBoundingBox.height)>iN)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(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?ja({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,l=i.layout,s=i.align,c=i.verticalAlign,f=i.margin,d=i.chartWidth,m=i.chartHeight,p,y;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&l==="vertical"){var x=this.getBBoxSnapshot();p={left:((d||0)-x.width)/2}}else p=s==="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 O=this.getBBoxSnapshot();y={top:((m||0)-O.height)/2}}else y=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return ja(ja({},p),y)}},{key:"render",value:function(){var r=this,i=this.props,l=i.content,s=i.width,c=i.height,f=i.wrapperStyle,d=i.payloadUniqBy,m=i.payload,p=ja(ja({position:"absolute",width:s||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return I.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(x){r.wrapperNode=x}},WQ(l,ja(ja({},this.props),{},{payload:L3(m,d,YQ)})))}}],[{key:"getWithHeight",value:function(r,i){var l=ja(ja({},this.defaultProps),r.props),s=l.layout;return s==="vertical"&&ye(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||i}:null}}])})(_.PureComponent);om(bo,"displayName","Legend");om(bo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var Y0,oN;function KQ(){if(oN)return Y0;oN=1;var e=sf(),t=pO(),n=kn(),r=e?e.isConcatSpreadable:void 0;function i(l){return n(l)||t(l)||!!(r&&l&&l[r])}return Y0=i,Y0}var W0,lN;function B3(){if(lN)return W0;lN=1;var e=j3(),t=KQ();function n(r,i,l,s,c){var f=-1,d=r.length;for(l||(l=t),c||(c=[]);++f<d;){var m=r[f];i>0&&l(m)?i>1?n(m,i-1,l,s,c):e(c,m):s||(c[c.length]=m)}return c}return W0=n,W0}var K0,sN;function XQ(){if(sN)return K0;sN=1;function e(t){return function(n,r,i){for(var l=-1,s=Object(n),c=i(n),f=c.length;f--;){var d=c[t?f:++l];if(r(s[d],d,s)===!1)break}return n}}return K0=e,K0}var X0,uN;function QQ(){if(uN)return X0;uN=1;var e=XQ(),t=e();return X0=t,X0}var Q0,cN;function q3(){if(cN)return Q0;cN=1;var e=QQ(),t=im();function n(r,i){return r&&e(r,i,t)}return Q0=n,Q0}var Z0,fN;function ZQ(){if(fN)return Z0;fN=1;var e=ff();function t(n,r){return function(i,l){if(i==null)return i;if(!e(i))return n(i,l);for(var s=i.length,c=r?s:-1,f=Object(i);(r?c--:++c<s)&&l(f[c],c,f)!==!1;);return i}}return Z0=t,Z0}var J0,dN;function yO(){if(dN)return J0;dN=1;var e=q3(),t=ZQ(),n=t(e);return J0=n,J0}var ex,hN;function U3(){if(hN)return ex;hN=1;var e=yO(),t=ff();function n(r,i){var l=-1,s=t(r)?Array(r.length):[];return e(r,function(c,f,d){s[++l]=i(c,f,d)}),s}return ex=n,ex}var tx,pN;function JQ(){if(pN)return tx;pN=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return tx=e,tx}var nx,mN;function eZ(){if(mN)return nx;mN=1;var e=Ps();function t(n,r){if(n!==r){var i=n!==void 0,l=n===null,s=n===n,c=e(n),f=r!==void 0,d=r===null,m=r===r,p=e(r);if(!d&&!p&&!c&&n>r||c&&f&&m&&!d&&!p||l&&f&&m||!i&&m||!s)return 1;if(!l&&!c&&!p&&n<r||p&&i&&s&&!l&&!c||d&&i&&s||!f&&s||!m)return-1}return 0}return nx=t,nx}var rx,vN;function tZ(){if(vN)return rx;vN=1;var e=eZ();function t(n,r,i){for(var l=-1,s=n.criteria,c=r.criteria,f=s.length,d=i.length;++l<f;){var m=e(s[l],c[l]);if(m){if(l>=d)return m;var p=i[l];return m*(p=="desc"?-1:1)}}return n.index-r.index}return rx=t,rx}var ax,gN;function nZ(){if(gN)return ax;gN=1;var e=aO(),t=iO(),n=Di(),r=U3(),i=JQ(),l=M3(),s=tZ(),c=ks(),f=kn();function d(m,p,y){p.length?p=e(p,function(w){return f(w)?function(S){return t(S,w.length===1?w[0]:w)}:w}):p=[c];var x=-1;p=e(p,l(n));var O=r(m,function(w,S,E){var T=e(p,function(A){return A(w)});return{criteria:T,index:++x,value:w}});return i(O,function(w,S){return s(w,S,y)})}return ax=d,ax}var ix,yN;function rZ(){if(yN)return ix;yN=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 ix=e,ix}var ox,bN;function aZ(){if(bN)return ox;bN=1;var e=rZ(),t=Math.max;function n(r,i,l){return i=t(i===void 0?r.length-1:i,0),function(){for(var s=arguments,c=-1,f=t(s.length-i,0),d=Array(f);++c<f;)d[c]=s[i+c];c=-1;for(var m=Array(i+1);++c<i;)m[c]=s[c];return m[i]=l(d),e(r,this,m)}}return ox=n,ox}var lx,xN;function iZ(){if(xN)return lx;xN=1;function e(t){return function(){return t}}return lx=e,lx}var sx,wN;function H3(){if(wN)return sx;wN=1;var e=ko(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return sx=t,sx}var ux,SN;function oZ(){if(SN)return ux;SN=1;var e=iZ(),t=H3(),n=ks(),r=t?function(i,l){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:n;return ux=r,ux}var cx,ON;function lZ(){if(ON)return cx;ON=1;var e=800,t=16,n=Date.now;function r(i){var l=0,s=0;return function(){var c=n(),f=t-(c-s);if(s=c,f>0){if(++l>=e)return arguments[0]}else l=0;return i.apply(void 0,arguments)}}return cx=r,cx}var fx,_N;function sZ(){if(_N)return fx;_N=1;var e=oZ(),t=lZ(),n=t(e);return fx=n,fx}var dx,EN;function uZ(){if(EN)return dx;EN=1;var e=ks(),t=aZ(),n=sZ();function r(i,l){return n(t(i,l,e),i+"")}return dx=r,dx}var hx,AN;function lm(){if(AN)return hx;AN=1;var e=tO(),t=ff(),n=mO(),r=Pi();function i(l,s,c){if(!r(c))return!1;var f=typeof s;return(f=="number"?t(c)&&n(s,c.length):f=="string"&&s in c)?e(c[s],l):!1}return hx=i,hx}var px,TN;function cZ(){if(TN)return px;TN=1;var e=B3(),t=nZ(),n=uZ(),r=lm(),i=n(function(l,s){if(l==null)return[];var c=s.length;return c>1&&r(l,s[0],s[1])?s=[]:c>2&&r(s[0],s[1],s[2])&&(s=[s[0]]),t(l,e(s,1),[])});return px=i,px}var fZ=cZ();const bO=ut(fZ);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 t1(){return t1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t1.apply(this,arguments)}function dZ(e,t){return vZ(e)||mZ(e,t)||pZ(e,t)||hZ()}function hZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
294
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function pZ(e,t){if(e){if(typeof e=="string")return jN(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 jN(e,t)}}function jN(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 mZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function vZ(e){if(Array.isArray(e))return e}function CN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function mx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CN(Object(n),!0).forEach(function(r){gZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gZ(e,t,n){return t=yZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yZ(e){var t=bZ(e,"string");return mc(t)=="symbol"?t:t+""}function bZ(e,t){if(mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xZ(e){return Array.isArray(e)&&Gt(e[0])&&Gt(e[1])?e.join(" ~ "):e}var wZ=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,l=i===void 0?{}:i,s=t.itemStyle,c=s===void 0?{}:s,f=t.labelStyle,d=f===void 0?{}:f,m=t.payload,p=t.formatter,y=t.itemSorter,x=t.wrapperClassName,O=t.labelClassName,w=t.label,S=t.labelFormatter,E=t.accessibilityLayer,T=E===void 0?!1:E,A=function(){if(m&&m.length){var H={padding:0,margin:0},V=(y?bO(m,y):m).map(function(Q,K){if(Q.type==="none")return null;var k=mx({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},c),q=Q.formatter||p||xZ,B=Q.value,W=Q.name,le=B,$=W;if(q&&le!=null&&$!=null){var F=q(B,W,Q,K,m);if(Array.isArray(F)){var X=dZ(F,2);le=X[0],$=X[1]}else le=F}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(K),style:k},Gt($)?I.createElement("span",{className:"recharts-tooltip-item-name"},$):null,Gt($)?I.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,I.createElement("span",{className:"recharts-tooltip-item-value"},le),I.createElement("span",{className:"recharts-tooltip-item-unit"},Q.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:H},V)}return null},M=mx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},l),j=mx({margin:0},d),N=!ze(w),R=N?w:"",P=Fe("recharts-default-tooltip",x),L=Fe("recharts-tooltip-label",O);N&&S&&m!==void 0&&m!==null&&(R=S(w,m));var Y=T?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",t1({className:P,style:M},Y),I.createElement("p",{className:L,style:j},I.isValidElement(R)?R:"".concat(R)),A())};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 Fd(e,t,n){return t=SZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SZ(e){var t=OZ(e,"string");return vc(t)=="symbol"?t:t+""}function OZ(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)}var zu="recharts-tooltip-wrapper",_Z={visibility:"hidden"};function EZ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Fe(zu,Fd(Fd(Fd(Fd({},"".concat(zu,"-right"),ye(n)&&t&&ye(t.x)&&n>=t.x),"".concat(zu,"-left"),ye(n)&&t&&ye(t.x)&&n<t.x),"".concat(zu,"-bottom"),ye(r)&&t&&ye(t.y)&&r>=t.y),"".concat(zu,"-top"),ye(r)&&t&&ye(t.y)&&r<t.y))}function MN(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,l=e.position,s=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(l&&ye(l[r]))return l[r];var m=n[r]-c-i,p=n[r]+i;if(t[r])return s[r]?m:p;if(s[r]){var y=m,x=f[r];return y<x?Math.max(p,f[r]):Math.max(m,f[r])}var O=p+c,w=f[r]+d;return O>w?Math.max(m,f[r]):Math.max(p,f[r])}function AZ(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 TZ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,l=e.reverseDirection,s=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,m,p;return s.height>0&&s.width>0&&n?(m=MN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.width,viewBox:f,viewBoxDimension:f.width}),p=MN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.height,viewBox:f,viewBoxDimension:f.height}),d=AZ({translateX:m,translateY:p,useTranslate3d:c})):d=_Z,{cssProperties:d,cssClasses:EZ({translateX:m,translateY:p,coordinate:n})}}function ns(e){"@babel/helpers - typeof";return ns=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ns(e)}function NN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function RN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NN(Object(n),!0).forEach(function(r){r1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function CZ(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,G3(r.key),r)}}function MZ(e,t,n){return t&&CZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function NZ(e,t,n){return t=kh(t),RZ(e,F3()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function RZ(e,t){if(t&&(ns(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return PZ(e)}function PZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F3=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function DZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&n1(e,t)}function n1(e,t){return n1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},n1(e,t)}function r1(e,t,n){return t=G3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G3(e){var t=kZ(e,"string");return ns(t)=="symbol"?t:t+""}function kZ(e,t){if(ns(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ns(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var PN=1,$Z=(function(e){function t(){var n;jZ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=NZ(this,t,[].concat(i)),r1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),r1(n,"handleKeyDown",function(s){if(s.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 DZ(t,e),MZ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>PN||Math.abs(r.height-this.state.lastBoundingBox.height)>PN)&&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,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,l=i.active,s=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.children,m=i.coordinate,p=i.hasPayload,y=i.isAnimationActive,x=i.offset,O=i.position,w=i.reverseDirection,S=i.useTranslate3d,E=i.viewBox,T=i.wrapperStyle,A=TZ({allowEscapeViewBox:s,coordinate:m,offsetTopLeft:x,position:O,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:E}),M=A.cssClasses,j=A.cssProperties,N=RN(RN({transition:y&&l?"transform ".concat(c,"ms ").concat(f):void 0},j),{},{pointerEvents:"none",visibility:!this.state.dismissed&&l&&p?"visible":"hidden",position:"absolute",top:0,left:0},T);return I.createElement("div",{tabIndex:-1,className:M,style:N,ref:function(P){r.wrapperNode=P}},d)}}])})(_.PureComponent),LZ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},$s={isSsr:LZ()};function rs(e){"@babel/helpers - typeof";return rs=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rs(e)}function DN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function kN(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DN(Object(n),!0).forEach(function(r){xO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zZ(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,Y3(r.key),r)}}function BZ(e,t,n){return t&&zZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qZ(e,t,n){return t=$h(t),UZ(e,V3()?Reflect.construct(t,n||[],$h(e).constructor):t.apply(e,n))}function UZ(e,t){if(t&&(rs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HZ(e)}function HZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V3=function(){return!!e})()}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$h(e)}function FZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a1(e,t)}function a1(e,t){return a1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},a1(e,t)}function xO(e,t,n){return t=Y3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y3(e){var t=GZ(e,"string");return rs(t)=="symbol"?t:t+""}function GZ(e,t){if(rs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function VZ(e){return e.dataKey}function YZ(e,t){return I.isValidElement(e)?I.cloneElement(e,t):typeof e=="function"?I.createElement(e,t):I.createElement(wZ,t)}var Kr=(function(e){function t(){return IZ(this,t),qZ(this,t,arguments)}return FZ(t,e),BZ(t,[{key:"render",value:function(){var r=this,i=this.props,l=i.active,s=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.content,m=i.coordinate,p=i.filterNull,y=i.isAnimationActive,x=i.offset,O=i.payload,w=i.payloadUniqBy,S=i.position,E=i.reverseDirection,T=i.useTranslate3d,A=i.viewBox,M=i.wrapperStyle,j=O??[];p&&j.length&&(j=L3(O.filter(function(R){return R.value!=null&&(R.hide!==!0||r.props.includeHidden)}),w,VZ));var N=j.length>0;return I.createElement($Z,{allowEscapeViewBox:s,animationDuration:c,animationEasing:f,isAnimationActive:y,active:l,coordinate:m,hasPayload:N,offset:x,position:S,reverseDirection:E,useTranslate3d:T,viewBox:A,wrapperStyle:M},YZ(d,kN(kN({},this.props),{},{payload:j})))}}])})(_.PureComponent);xO(Kr,"displayName","Tooltip");xO(Kr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!$s.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 vx,$N;function WZ(){if($N)return vx;$N=1;var e=la(),t=function(){return e.Date.now()};return vx=t,vx}var gx,LN;function KZ(){if(LN)return gx;LN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return gx=t,gx}var yx,IN;function XZ(){if(IN)return yx;IN=1;var e=KZ(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return yx=n,yx}var bx,zN;function W3(){if(zN)return bx;zN=1;var e=XZ(),t=Pi(),n=Ps(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,s=/^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 p=l.test(d);return p||s.test(d)?c(d.slice(2),p?2:8):i.test(d)?r:+d}return bx=f,bx}var xx,BN;function QZ(){if(BN)return xx;BN=1;var e=Pi(),t=WZ(),n=W3(),r="Expected a function",i=Math.max,l=Math.min;function s(c,f,d){var m,p,y,x,O,w,S=0,E=!1,T=!1,A=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(E=!!d.leading,T="maxWait"in d,y=T?i(n(d.maxWait)||0,f):y,A="trailing"in d?!!d.trailing:A);function M(V){var Q=m,K=p;return m=p=void 0,S=V,x=c.apply(K,Q),x}function j(V){return S=V,O=setTimeout(P,f),E?M(V):x}function N(V){var Q=V-w,K=V-S,k=f-Q;return T?l(k,y-K):k}function R(V){var Q=V-w,K=V-S;return w===void 0||Q>=f||Q<0||T&&K>=y}function P(){var V=t();if(R(V))return L(V);O=setTimeout(P,N(V))}function L(V){return O=void 0,A&&m?M(V):(m=p=void 0,x)}function Y(){O!==void 0&&clearTimeout(O),S=0,m=w=p=O=void 0}function z(){return O===void 0?x:L(t())}function H(){var V=t(),Q=R(V);if(m=arguments,p=this,w=V,Q){if(O===void 0)return j(w);if(T)return clearTimeout(O),O=setTimeout(P,f),M(w)}return O===void 0&&(O=setTimeout(P,f)),x}return H.cancel=Y,H.flush=z,H}return xx=s,xx}var wx,qN;function ZZ(){if(qN)return wx;qN=1;var e=QZ(),t=Pi(),n="Expected a function";function r(i,l,s){var c=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(s)&&(c="leading"in s?!!s.leading:c,f="trailing"in s?!!s.trailing:f),e(i,l,{leading:c,maxWait:l,trailing:f})}return wx=r,wx}var JZ=ZZ();const K3=ut(JZ);function gc(e){"@babel/helpers - typeof";return gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gc(e)}function UN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Gd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UN(Object(n),!0).forEach(function(r){eJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function eJ(e,t,n){return t=tJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tJ(e){var t=nJ(e,"string");return gc(t)=="symbol"?t:t+""}function nJ(e,t){if(gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rJ(e,t){return lJ(e)||oJ(e,t)||iJ(e,t)||aJ()}function aJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
295
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iJ(e,t){if(e){if(typeof e=="string")return HN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return HN(e,t)}}function HN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function lJ(e){if(Array.isArray(e))return e}var sJ=_.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,l=e.width,s=l===void 0?"100%":l,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,m=d===void 0?0:d,p=e.minHeight,y=e.maxHeight,x=e.children,O=e.debounce,w=O===void 0?0:O,S=e.id,E=e.className,T=e.onResize,A=e.style,M=A===void 0?{}:A,j=_.useRef(null),N=_.useRef();N.current=T,_.useImperativeHandle(t,function(){return Object.defineProperty(j.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),j.current},configurable:!0})});var R=_.useState({containerWidth:i.width,containerHeight:i.height}),P=rJ(R,2),L=P[0],Y=P[1],z=_.useCallback(function(V,Q){Y(function(K){var k=Math.round(V),q=Math.round(Q);return K.containerWidth===k&&K.containerHeight===q?K:{containerWidth:k,containerHeight:q}})},[]);_.useEffect(function(){var V=function(W){var le,$=W[0].contentRect,F=$.width,X=$.height;z(F,X),(le=N.current)===null||le===void 0||le.call(N,F,X)};w>0&&(V=K3(V,w,{trailing:!0,leading:!1}));var Q=new ResizeObserver(V),K=j.current.getBoundingClientRect(),k=K.width,q=K.height;return z(k,q),Q.observe(j.current),function(){Q.disconnect()}},[z,w]);var H=_.useMemo(function(){var V=L.containerWidth,Q=L.containerHeight;if(V<0||Q<0)return null;Da(mo(s)||mo(f),`The width(%s) and height(%s) are both fixed numbers,
|
|
296
|
-
maybe you don't need to use a ResponsiveContainer.`,s,f),Da(!n||n>0,"The aspect(%s) must be greater than zero.",n);var K=mo(s)?V:s,k=mo(f)?Q:f;n&&n>0&&(K?k=K/n:k&&(K=k*n),y&&k>y&&(k=y)),Da(K>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
297
|
-
please check the style of container, or the props width(%s) and height(%s),
|
|
298
|
-
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
299
|
-
height and width.`,K,k,s,f,m,p,n);var q=!Array.isArray(x)&&Pa(x.type).endsWith("Chart");return I.Children.map(x,function(B){return I.isValidElement(B)?_.cloneElement(B,Gd({width:K,height:k},q?{style:Gd({height:"100%",width:"100%",maxHeight:k,maxWidth:K},B.props.style)}:{})):B})},[n,x,f,y,p,m,L,s]);return I.createElement("div",{id:S?"".concat(S):void 0,className:Fe("recharts-responsive-container",E),style:Gd(Gd({},M),{},{width:s,height:f,minWidth:m,minHeight:p,maxHeight:y}),ref:j},H)}),X3=function(t){return null};X3.displayName="Cell";function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yc(e)}function FN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function i1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FN(Object(n),!0).forEach(function(r){uJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uJ(e,t,n){return t=cJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cJ(e){var t=fJ(e,"string");return yc(t)=="symbol"?t:t+""}function fJ(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pl={widthCache:{},cacheCount:0},dJ=2e3,hJ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},GN="recharts_measurement_span";function pJ(e){var t=i1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var tc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||$s.isSsr)return{width:0,height:0};var r=pJ(n),i=JSON.stringify({text:t,copyStyle:r});if(Pl.widthCache[i])return Pl.widthCache[i];try{var l=document.getElementById(GN);l||(l=document.createElement("span"),l.setAttribute("id",GN),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var s=i1(i1({},hJ),r);Object.assign(l.style,s),l.textContent="".concat(t);var c=l.getBoundingClientRect(),f={width:c.width,height:c.height};return Pl.widthCache[i]=f,++Pl.cacheCount>dJ&&(Pl.cacheCount=0,Pl.widthCache={}),f}catch{return{width:0,height:0}}},mJ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};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 Lh(e,t){return bJ(e)||yJ(e,t)||gJ(e,t)||vJ()}function vJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
300
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gJ(e,t){if(e){if(typeof e=="string")return VN(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 VN(e,t)}}function VN(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 yJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function bJ(e){if(Array.isArray(e))return e}function xJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function YN(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,SJ(r.key),r)}}function wJ(e,t,n){return t&&YN(e.prototype,t),n&&YN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SJ(e){var t=OJ(e,"string");return bc(t)=="symbol"?t:t+""}function OJ(e,t){if(bc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,KN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,_J=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,EJ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Q3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},AJ=Object.keys(Q3),Il="NaN";function TJ(e,t){return e*Q3[t]}var Vd=(function(){function e(t,n){xJ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!_J.test(n)&&(this.num=NaN,this.unit=""),AJ.includes(n)&&(this.num=TJ(t,n),this.unit="px")}return wJ(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,i=(r=EJ.exec(n))!==null&&r!==void 0?r:[],l=Lh(i,3),s=l[1],c=l[2];return new e(parseFloat(s),c??"")}}])})();function Z3(e){if(e.includes(Il))return Il;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=WN.exec(t))!==null&&n!==void 0?n:[],i=Lh(r,4),l=i[1],s=i[2],c=i[3],f=Vd.parse(l??""),d=Vd.parse(c??""),m=s==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return Il;t=t.replace(WN,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,y=(p=KN.exec(t))!==null&&p!==void 0?p:[],x=Lh(y,4),O=x[1],w=x[2],S=x[3],E=Vd.parse(O??""),T=Vd.parse(S??""),A=w==="+"?E.add(T):E.subtract(T);if(A.isNaN())return Il;t=t.replace(KN,A.toString())}return t}var XN=/\(([^()]*)\)/;function jJ(e){for(var t=e;t.includes("(");){var n=XN.exec(t),r=Lh(n,2),i=r[1];t=t.replace(XN,Z3(i))}return t}function CJ(e){var t=e.replace(/\s+/g,"");return t=jJ(t),t=Z3(t),t}function MJ(e){try{return CJ(e)}catch{return Il}}function Sx(e){var t=MJ(e.slice(5,-1));return t===Il?"":t}var NJ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],RJ=["dx","dy","angle","className","breakAll"];function o1(){return o1=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},o1.apply(this,arguments)}function QN(e,t){if(e==null)return{};var n=PJ(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PJ(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 ZN(e,t){return LJ(e)||$J(e,t)||kJ(e,t)||DJ()}function DJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
301
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kJ(e,t){if(e){if(typeof e=="string")return JN(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 JN(e,t)}}function JN(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 $J(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function LJ(e){if(Array.isArray(e))return e}var J3=/[ \f\n\r\t\v\u2028\u2029]+/,e4=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var l=[];ze(n)||(r?l=n.toString().split(""):l=n.toString().split(J3));var s=l.map(function(f){return{word:f,width:tc(f,i).width}}),c=r?0:tc(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:c}}catch{return null}},IJ=function(t,n,r,i,l){var s=t.maxLines,c=t.children,f=t.style,d=t.breakAll,m=ye(s),p=c,y=function(){var K=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return K.reduce(function(k,q){var B=q.word,W=q.width,le=k[k.length-1];if(le&&(i==null||l||le.width+W+r<Number(i)))le.words.push(B),le.width+=W+r;else{var $={words:[B],width:W};k.push($)}return k},[])},x=y(n),O=function(K){return K.reduce(function(k,q){return k.width>q.width?k:q})};if(!m)return x;for(var w="…",S=function(K){var k=p.slice(0,K),q=e4({breakAll:d,style:f,children:k+w}).wordsWithComputedWidth,B=y(q),W=B.length>s||O(B).width>Number(i);return[W,B]},E=0,T=p.length-1,A=0,M;E<=T&&A<=p.length-1;){var j=Math.floor((E+T)/2),N=j-1,R=S(N),P=ZN(R,2),L=P[0],Y=P[1],z=S(j),H=ZN(z,1),V=H[0];if(!L&&!V&&(E=j+1),L&&V&&(T=j-1),!L&&V){M=Y;break}A++}return M||x},eR=function(t){var n=ze(t)?[]:t.toString().split(J3);return[{words:n}]},zJ=function(t){var n=t.width,r=t.scaleToFit,i=t.children,l=t.style,s=t.breakAll,c=t.maxLines;if((n||r)&&!$s.isSsr){var f,d,m=e4({breakAll:s,children:i,style:l});if(m){var p=m.wordsWithComputedWidth,y=m.spaceWidth;f=p,d=y}else return eR(i);return IJ({breakAll:s,children:i,maxLines:c,style:l},f,d,n,r)}return eR(i)},tR="#808080",Ih=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,l=i===void 0?0:i,s=t.lineHeight,c=s===void 0?"1em":s,f=t.capHeight,d=f===void 0?"0.71em":f,m=t.scaleToFit,p=m===void 0?!1:m,y=t.textAnchor,x=y===void 0?"start":y,O=t.verticalAnchor,w=O===void 0?"end":O,S=t.fill,E=S===void 0?tR:S,T=QN(t,NJ),A=_.useMemo(function(){return zJ({breakAll:T.breakAll,children:T.children,maxLines:T.maxLines,scaleToFit:p,style:T.style,width:T.width})},[T.breakAll,T.children,T.maxLines,p,T.style,T.width]),M=T.dx,j=T.dy,N=T.angle,R=T.className,P=T.breakAll,L=QN(T,RJ);if(!Gt(r)||!Gt(l))return null;var Y=r+(ye(M)?M:0),z=l+(ye(j)?j:0),H;switch(w){case"start":H=Sx("calc(".concat(d,")"));break;case"middle":H=Sx("calc(".concat((A.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:H=Sx("calc(".concat(A.length-1," * -").concat(c,")"));break}var V=[];if(p){var Q=A[0].width,K=T.width;V.push("scale(".concat((ye(K)?K/Q:1)/Q,")"))}return N&&V.push("rotate(".concat(N,", ").concat(Y,", ").concat(z,")")),V.length&&(L.transform=V.join(" ")),I.createElement("text",o1({},He(L,!0),{x:Y,y:z,className:Fe("recharts-text",R),textAnchor:x,fill:E.includes("url")?tR:E}),A.map(function(k,q){var B=k.words.join(P?"":" ");return I.createElement("tspan",{x:Y,dy:q===0?H:c,key:"".concat(B,"-").concat(q)},B)}))};function Ei(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function BJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function wO(e){let t,n,r;e.length!==2?(t=Ei,n=(c,f)=>Ei(e(c),f),r=(c,f)=>e(c)-f):(t=e===Ei||e===BJ?e:qJ,n=e,r=e);function i(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<0?d=p+1:m=p}while(d<m)}return d}function l(c,f,d=0,m=c.length){if(d<m){if(t(f,f)!==0)return m;do{const p=d+m>>>1;n(c[p],f)<=0?d=p+1:m=p}while(d<m)}return d}function s(c,f,d=0,m=c.length){const p=i(c,f,d,m-1);return p>d&&r(c[p-1],f)>-r(c[p],f)?p-1:p}return{left:i,center:s,right:l}}function qJ(){return 0}function t4(e){return e===null?NaN:+e}function*UJ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const HJ=wO(Ei),df=HJ.right;wO(t4).center;class nR extends Map{constructor(t,n=VJ){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,i]of t)this.set(r,i)}get(t){return super.get(rR(this,t))}has(t){return super.has(rR(this,t))}set(t,n){return super.set(FJ(this,t),n)}delete(t){return super.delete(GJ(this,t))}}function rR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function FJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function GJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function VJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function YJ(e=Ei){if(e===Ei)return n4;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 n4(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const WJ=Math.sqrt(50),KJ=Math.sqrt(10),XJ=Math.sqrt(2);function zh(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),l=r/Math.pow(10,i),s=l>=WJ?10:l>=KJ?5:l>=XJ?2:1;let c,f,d;return i<0?(d=Math.pow(10,-i)/s,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,i)*s,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?zh(e,t,n*2):[c,f,d]}function l1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,l,s]=r?zh(t,e,n):zh(e,t,n);if(!(l>=i))return[];const c=l-i+1,f=new Array(c);if(r)if(s<0)for(let d=0;d<c;++d)f[d]=(l-d)/-s;else for(let d=0;d<c;++d)f[d]=(l-d)*s;else if(s<0)for(let d=0;d<c;++d)f[d]=(i+d)/-s;else for(let d=0;d<c;++d)f[d]=(i+d)*s;return f}function s1(e,t,n){return t=+t,e=+e,n=+n,zh(e,t,n)[2]}function u1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?s1(t,e,n):s1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function aR(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function iR(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function r4(e,t,n=0,r=1/0,i){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(i=i===void 0?n4:YJ(i);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,m=Math.log(f),p=.5*Math.exp(2*m/3),y=.5*Math.sqrt(m*p*(f-p)/f)*(d-f/2<0?-1:1),x=Math.max(n,Math.floor(t-d*p/f+y)),O=Math.min(r,Math.floor(t+(f-d)*p/f+y));r4(e,t,x,O,i)}const l=e[t];let s=n,c=r;for(Bu(e,n,t),i(e[r],l)>0&&Bu(e,n,r);s<c;){for(Bu(e,s,c),++s,--c;i(e[s],l)<0;)++s;for(;i(e[c],l)>0;)--c}i(e[n],l)===0?Bu(e,n,c):(++c,Bu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function Bu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function QJ(e,t,n){if(e=Float64Array.from(UJ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return iR(e);if(t>=1)return aR(e);var r,i=(r-1)*t,l=Math.floor(i),s=aR(r4(e,l).subarray(0,l+1)),c=iR(e.subarray(l+1));return s+(c-s)*(i-l)}}function ZJ(e,t,n=t4){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,i=(r-1)*t,l=Math.floor(i),s=+n(e[l],l,e),c=+n(e[l+1],l+1,e);return s+(c-s)*(i-l)}}function JJ(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,l=new Array(i);++r<i;)l[r]=e+r*n;return l}function yr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Ga(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const c1=Symbol("implicit");function SO(){var e=new nR,t=[],n=[],r=c1;function i(l){let s=e.get(l);if(s===void 0){if(r!==c1)return r;e.set(l,s=t.push(l)-1)}return n[s%n.length]}return i.domain=function(l){if(!arguments.length)return t.slice();t=[],e=new nR;for(const s of l)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(l){return arguments.length?(n=Array.from(l),i):n.slice()},i.unknown=function(l){return arguments.length?(r=l,i):r},i.copy=function(){return SO(t,n).unknown(r)},yr.apply(i,arguments),i}function xc(){var e=SO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,l,s,c=!1,f=0,d=0,m=.5;delete e.unknown;function p(){var y=t().length,x=i<r,O=x?i:r,w=x?r:i;l=(w-O)/Math.max(1,y-f+d*2),c&&(l=Math.floor(l)),O+=(w-O-l*(y-f))*m,s=l*(1-f),c&&(O=Math.round(O),s=Math.round(s));var S=JJ(y).map(function(E){return O+l*E});return n(x?S.reverse():S)}return e.domain=function(y){return arguments.length?(t(y),p()):t()},e.range=function(y){return arguments.length?([r,i]=y,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(y){return[r,i]=y,r=+r,i=+i,c=!0,p()},e.bandwidth=function(){return s},e.step=function(){return l},e.round=function(y){return arguments.length?(c=!!y,p()):c},e.padding=function(y){return arguments.length?(f=Math.min(1,d=+y),p()):f},e.paddingInner=function(y){return arguments.length?(f=Math.min(1,y),p()):f},e.paddingOuter=function(y){return arguments.length?(d=+y,p()):d},e.align=function(y){return arguments.length?(m=Math.max(0,Math.min(1,y)),p()):m},e.copy=function(){return xc(t(),[r,i]).round(c).paddingInner(f).paddingOuter(d).align(m)},yr.apply(p(),arguments)}function a4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return a4(t())},e}function nc(){return a4(xc.apply(null,arguments).paddingInner(1))}function OO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function i4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function hf(){}var wc=.7,Bh=1/wc,Yl="\\s*([+-]?\\d+)\\s*",Sc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ta="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",eee=/^#([0-9a-f]{3,8})$/,tee=new RegExp(`^rgb\\(${Yl},${Yl},${Yl}\\)$`),nee=new RegExp(`^rgb\\(${ta},${ta},${ta}\\)$`),ree=new RegExp(`^rgba\\(${Yl},${Yl},${Yl},${Sc}\\)$`),aee=new RegExp(`^rgba\\(${ta},${ta},${ta},${Sc}\\)$`),iee=new RegExp(`^hsl\\(${Sc},${ta},${ta}\\)$`),oee=new RegExp(`^hsla\\(${Sc},${ta},${ta},${Sc}\\)$`),oR={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};OO(hf,Oc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:lR,formatHex:lR,formatHex8:lee,formatHsl:see,formatRgb:sR,toString:sR});function lR(){return this.rgb().formatHex()}function lee(){return this.rgb().formatHex8()}function see(){return o4(this).formatHsl()}function sR(){return this.rgb().formatRgb()}function Oc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=eee.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?uR(t):n===3?new Dn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Yd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Yd(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=tee.exec(e))?new Dn(t[1],t[2],t[3],1):(t=nee.exec(e))?new Dn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=ree.exec(e))?Yd(t[1],t[2],t[3],t[4]):(t=aee.exec(e))?Yd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=iee.exec(e))?dR(t[1],t[2]/100,t[3]/100,1):(t=oee.exec(e))?dR(t[1],t[2]/100,t[3]/100,t[4]):oR.hasOwnProperty(e)?uR(oR[e]):e==="transparent"?new Dn(NaN,NaN,NaN,0):null}function uR(e){return new Dn(e>>16&255,e>>8&255,e&255,1)}function Yd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Dn(e,t,n,r)}function uee(e){return e instanceof hf||(e=Oc(e)),e?(e=e.rgb(),new Dn(e.r,e.g,e.b,e.opacity)):new Dn}function f1(e,t,n,r){return arguments.length===1?uee(e):new Dn(e,t,n,r??1)}function Dn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}OO(Dn,f1,i4(hf,{brighter(e){return e=e==null?Bh:Math.pow(Bh,e),new Dn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?wc:Math.pow(wc,e),new Dn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Dn(xo(this.r),xo(this.g),xo(this.b),qh(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:cR,formatHex:cR,formatHex8:cee,formatRgb:fR,toString:fR}));function cR(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}`}function cee(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}${vo((isNaN(this.opacity)?1:this.opacity)*255)}`}function fR(){const e=qh(this.opacity);return`${e===1?"rgb(":"rgba("}${xo(this.r)}, ${xo(this.g)}, ${xo(this.b)}${e===1?")":`, ${e})`}`}function qh(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 vo(e){return e=xo(e),(e<16?"0":"")+e.toString(16)}function dR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Cr(e,t,n,r)}function o4(e){if(e instanceof Cr)return new Cr(e.h,e.s,e.l,e.opacity);if(e instanceof hf||(e=Oc(e)),!e)return new Cr;if(e instanceof Cr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),l=Math.max(t,n,r),s=NaN,c=l-i,f=(l+i)/2;return c?(t===l?s=(n-r)/c+(n<r)*6:n===l?s=(r-t)/c+2:s=(t-n)/c+4,c/=f<.5?l+i:2-l-i,s*=60):c=f>0&&f<1?0:s,new Cr(s,c,f,e.opacity)}function fee(e,t,n,r){return arguments.length===1?o4(e):new Cr(e,t,n,r??1)}function Cr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}OO(Cr,fee,i4(hf,{brighter(e){return e=e==null?Bh:Math.pow(Bh,e),new Cr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?wc:Math.pow(wc,e),new Cr(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,i=2*n-r;return new Dn(Ox(e>=240?e-240:e+120,i,r),Ox(e,i,r),Ox(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Cr(hR(this.h),Wd(this.s),Wd(this.l),qh(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=qh(this.opacity);return`${e===1?"hsl(":"hsla("}${hR(this.h)}, ${Wd(this.s)*100}%, ${Wd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function hR(e){return e=(e||0)%360,e<0?e+360:e}function Wd(e){return Math.max(0,Math.min(1,e||0))}function Ox(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 _O=e=>()=>e;function dee(e,t){return function(n){return e+n*t}}function hee(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 pee(e){return(e=+e)==1?l4:function(t,n){return n-t?hee(t,n,e):_O(isNaN(t)?n:t)}}function l4(e,t){var n=t-e;return n?dee(e,n):_O(isNaN(e)?t:e)}const pR=(function e(t){var n=pee(t);function r(i,l){var s=n((i=f1(i)).r,(l=f1(l)).r),c=n(i.g,l.g),f=n(i.b,l.b),d=l4(i.opacity,l.opacity);return function(m){return i.r=s(m),i.g=c(m),i.b=f(m),i.opacity=d(m),i+""}}return r.gamma=e,r})(1);function mee(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(l){for(i=0;i<n;++i)r[i]=e[i]*(1-l)+t[i]*l;return r}}function vee(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function gee(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),l=new Array(n),s;for(s=0;s<r;++s)i[s]=Ls(e[s],t[s]);for(;s<n;++s)l[s]=t[s];return function(c){for(s=0;s<r;++s)l[s]=i[s](c);return l}}function yee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Uh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function bee(e,t){var n={},r={},i;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(i in t)i in e?n[i]=Ls(e[i],t[i]):r[i]=t[i];return function(l){for(i in n)r[i]=n[i](l);return r}}var d1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_x=new RegExp(d1.source,"g");function xee(e){return function(){return e}}function wee(e){return function(t){return e(t)+""}}function See(e,t){var n=d1.lastIndex=_x.lastIndex=0,r,i,l,s=-1,c=[],f=[];for(e=e+"",t=t+"";(r=d1.exec(e))&&(i=_x.exec(t));)(l=i.index)>n&&(l=t.slice(n,l),c[s]?c[s]+=l:c[++s]=l),(r=r[0])===(i=i[0])?c[s]?c[s]+=i:c[++s]=i:(c[++s]=null,f.push({i:s,x:Uh(r,i)})),n=_x.lastIndex;return n<t.length&&(l=t.slice(n),c[s]?c[s]+=l:c[++s]=l),c.length<2?f[0]?wee(f[0].x):xee(t):(t=f.length,function(d){for(var m=0,p;m<t;++m)c[(p=f[m]).i]=p.x(d);return c.join("")})}function Ls(e,t){var n=typeof t,r;return t==null||n==="boolean"?_O(t):(n==="number"?Uh:n==="string"?(r=Oc(t))?(t=r,pR):See:t instanceof Oc?pR:t instanceof Date?yee:vee(t)?mee:Array.isArray(t)?gee:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?bee:Uh)(e,t)}function EO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Oee(e,t){t===void 0&&(t=e,e=Ls);for(var n=0,r=t.length-1,i=t[0],l=new Array(r<0?0:r);n<r;)l[n]=e(i,i=t[++n]);return function(s){var c=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return l[c](s-c)}}function _ee(e){return function(){return e}}function Hh(e){return+e}var mR=[0,1];function xn(e){return e}function h1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:_ee(isNaN(t)?NaN:.5)}function Eee(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Aee(e,t,n){var r=e[0],i=e[1],l=t[0],s=t[1];return i<r?(r=h1(i,r),l=n(s,l)):(r=h1(r,i),l=n(l,s)),function(c){return l(r(c))}}function Tee(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),l=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=h1(e[s],e[s+1]),l[s]=n(t[s],t[s+1]);return function(c){var f=df(e,c,1,r)-1;return l[f](i[f](c))}}function pf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function sm(){var e=mR,t=mR,n=Ls,r,i,l,s=xn,c,f,d;function m(){var y=Math.min(e.length,t.length);return s!==xn&&(s=Eee(e[0],e[y-1])),c=y>2?Tee:Aee,f=d=null,p}function p(y){return y==null||isNaN(y=+y)?l:(f||(f=c(e.map(r),t,n)))(r(s(y)))}return p.invert=function(y){return s(i((d||(d=c(t,e.map(r),Uh)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,Hh),m()):e.slice()},p.range=function(y){return arguments.length?(t=Array.from(y),m()):t.slice()},p.rangeRound=function(y){return t=Array.from(y),n=EO,m()},p.clamp=function(y){return arguments.length?(s=y?!0:xn,m()):s!==xn},p.interpolate=function(y){return arguments.length?(n=y,m()):n},p.unknown=function(y){return arguments.length?(l=y,p):l},function(y,x){return r=y,i=x,m()}}function AO(){return sm()(xn,xn)}function jee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Fh(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function as(e){return e=Fh(Math.abs(e)),e?e[1]:NaN}function Cee(e,t){return function(n,r){for(var i=n.length,l=[],s=0,c=e[0],f=0;i>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),l.push(n.substring(i-=c,i+c)),!((f+=c+1)>r));)c=e[s=(s+1)%e.length];return l.reverse().join(t)}}function Mee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Nee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function _c(e){if(!(t=Nee.exec(e)))throw new Error("invalid format: "+e);var t;return new TO({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]})}_c.prototype=TO.prototype;function TO(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+""}TO.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 Ree(e){e:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case".":r=i=n;break;case"0":r===0&&(r=n),i=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(i+1):e}var s4;function Pee(e,t){var n=Fh(e,t);if(!n)return e+"";var r=n[0],i=n[1],l=i-(s4=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return l===s?r:l>s?r+new Array(l-s+1).join("0"):l>0?r.slice(0,l)+"."+r.slice(l):"0."+new Array(1-l).join("0")+Fh(e,Math.max(0,t+l-1))[0]}function vR(e,t){var n=Fh(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")}const gR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:jee,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)=>vR(e*100,t),r:vR,s:Pee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function yR(e){return e}var bR=Array.prototype.map,xR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Dee(e){var t=e.grouping===void 0||e.thousands===void 0?yR:Cee(bR.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",i=e.decimal===void 0?".":e.decimal+"",l=e.numerals===void 0?yR:Mee(bR.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(p){p=_c(p);var y=p.fill,x=p.align,O=p.sign,w=p.symbol,S=p.zero,E=p.width,T=p.comma,A=p.precision,M=p.trim,j=p.type;j==="n"?(T=!0,j="g"):gR[j]||(A===void 0&&(A=12),M=!0,j="g"),(S||y==="0"&&x==="=")&&(S=!0,y="0",x="=");var N=w==="$"?n:w==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():"",R=w==="$"?r:/[%p]/.test(j)?s:"",P=gR[j],L=/[defgprs%]/.test(j);A=A===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,A)):Math.max(0,Math.min(20,A));function Y(z){var H=N,V=R,Q,K,k;if(j==="c")V=P(z)+V,z="";else{z=+z;var q=z<0||1/z<0;if(z=isNaN(z)?f:P(Math.abs(z),A),M&&(z=Ree(z)),q&&+z==0&&O!=="+"&&(q=!1),H=(q?O==="("?O:c:O==="-"||O==="("?"":O)+H,V=(j==="s"?xR[8+s4/3]:"")+V+(q&&O==="("?")":""),L){for(Q=-1,K=z.length;++Q<K;)if(k=z.charCodeAt(Q),48>k||k>57){V=(k===46?i+z.slice(Q+1):z.slice(Q))+V,z=z.slice(0,Q);break}}}T&&!S&&(z=t(z,1/0));var B=H.length+z.length+V.length,W=B<E?new Array(E-B+1).join(y):"";switch(T&&S&&(z=t(W+z,W.length?E-V.length:1/0),W=""),x){case"<":z=H+z+V+W;break;case"=":z=H+W+z+V;break;case"^":z=W.slice(0,B=W.length>>1)+H+z+V+W.slice(B);break;default:z=W+H+z+V;break}return l(z)}return Y.toString=function(){return p+""},Y}function m(p,y){var x=d((p=_c(p),p.type="f",p)),O=Math.max(-8,Math.min(8,Math.floor(as(y)/3)))*3,w=Math.pow(10,-O),S=xR[8+O/3];return function(E){return x(w*E)+S}}return{format:d,formatPrefix:m}}var Kd,jO,u4;kee({thousands:",",grouping:[3],currency:["$",""]});function kee(e){return Kd=Dee(e),jO=Kd.format,u4=Kd.formatPrefix,Kd}function $ee(e){return Math.max(0,-as(Math.abs(e)))}function Lee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(as(t)/3)))*3-as(Math.abs(e)))}function Iee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,as(t)-as(e))+1}function c4(e,t,n,r){var i=u1(e,t,n),l;switch(r=_c(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(l=Lee(i,s))&&(r.precision=l),u4(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(l=Iee(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=l-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(l=$ee(i))&&(r.precision=l-(r.type==="%")*2);break}}return jO(r)}function ki(e){var t=e.domain;return e.ticks=function(n){var r=t();return l1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return c4(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,l=r.length-1,s=r[i],c=r[l],f,d,m=10;for(c<s&&(d=s,s=c,c=d,d=i,i=l,l=d);m-- >0;){if(d=s1(s,c,n),d===f)return r[i]=s,r[l]=c,t(r);if(d>0)s=Math.floor(s/d)*d,c=Math.ceil(c/d)*d;else if(d<0)s=Math.ceil(s*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function Gh(){var e=AO();return e.copy=function(){return pf(e,Gh())},yr.apply(e,arguments),ki(e)}function f4(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,Hh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return f4(e).unknown(t)},e=arguments.length?Array.from(e,Hh):[0,1],ki(n)}function d4(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],l=e[r],s;return l<i&&(s=n,n=r,r=s,s=i,i=l,l=s),e[n]=t.floor(i),e[r]=t.ceil(l),e}function wR(e){return Math.log(e)}function SR(e){return Math.exp(e)}function zee(e){return-Math.log(-e)}function Bee(e){return-Math.exp(-e)}function qee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Uee(e){return e===10?qee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Hee(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 OR(e){return(t,n)=>-e(-t,n)}function CO(e){const t=e(wR,SR),n=t.domain;let r=10,i,l;function s(){return i=Hee(r),l=Uee(r),n()[0]<0?(i=OR(i),l=OR(l),e(zee,Bee)):e(wR,SR),t}return t.base=function(c){return arguments.length?(r=+c,s()):r},t.domain=function(c){return arguments.length?(n(c),s()):n()},t.ticks=c=>{const f=n();let d=f[0],m=f[f.length-1];const p=m<d;p&&([d,m]=[m,d]);let y=i(d),x=i(m),O,w;const S=c==null?10:+c;let E=[];if(!(r%1)&&x-y<S){if(y=Math.floor(y),x=Math.ceil(x),d>0){for(;y<=x;++y)for(O=1;O<r;++O)if(w=y<0?O/l(-y):O*l(y),!(w<d)){if(w>m)break;E.push(w)}}else for(;y<=x;++y)for(O=r-1;O>=1;--O)if(w=y>0?O/l(-y):O*l(y),!(w<d)){if(w>m)break;E.push(w)}E.length*2<S&&(E=l1(d,m,S))}else E=l1(y,x,Math.min(x-y,S)).map(l);return p?E.reverse():E},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=_c(f)).precision==null&&(f.trim=!0),f=jO(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return m=>{let p=m/l(Math.round(i(m)));return p*r<r-.5&&(p*=r),p<=d?f(m):""}},t.nice=()=>n(d4(n(),{floor:c=>l(Math.floor(i(c))),ceil:c=>l(Math.ceil(i(c)))})),t}function h4(){const e=CO(sm()).domain([1,10]);return e.copy=()=>pf(e,h4()).base(e.base()),yr.apply(e,arguments),e}function _R(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function ER(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function MO(e){var t=1,n=e(_R(t),ER(t));return n.constant=function(r){return arguments.length?e(_R(t=+r),ER(t)):t},ki(n)}function p4(){var e=MO(sm());return e.copy=function(){return pf(e,p4()).constant(e.constant())},yr.apply(e,arguments)}function AR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Fee(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Gee(e){return e<0?-e*e:e*e}function NO(e){var t=e(xn,xn),n=1;function r(){return n===1?e(xn,xn):n===.5?e(Fee,Gee):e(AR(n),AR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},ki(t)}function RO(){var e=NO(sm());return e.copy=function(){return pf(e,RO()).exponent(e.exponent())},yr.apply(e,arguments),e}function Vee(){return RO.apply(null,arguments).exponent(.5)}function TR(e){return Math.sign(e)*e*e}function Yee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function m4(){var e=AO(),t=[0,1],n=!1,r;function i(l){var s=Yee(e(l));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(l){return e.invert(TR(l))},i.domain=function(l){return arguments.length?(e.domain(l),i):e.domain()},i.range=function(l){return arguments.length?(e.range((t=Array.from(l,Hh)).map(TR)),i):t.slice()},i.rangeRound=function(l){return i.range(l).round(!0)},i.round=function(l){return arguments.length?(n=!!l,i):n},i.clamp=function(l){return arguments.length?(e.clamp(l),i):e.clamp()},i.unknown=function(l){return arguments.length?(r=l,i):r},i.copy=function(){return m4(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},yr.apply(i,arguments),ki(i)}function v4(){var e=[],t=[],n=[],r;function i(){var s=0,c=Math.max(1,t.length);for(n=new Array(c-1);++s<c;)n[s-1]=ZJ(e,s/c);return l}function l(s){return s==null||isNaN(s=+s)?r:t[df(n,s)]}return l.invertExtent=function(s){var c=t.indexOf(s);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},l.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let c of s)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(Ei),i()},l.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},l.unknown=function(s){return arguments.length?(r=s,l):r},l.quantiles=function(){return n.slice()},l.copy=function(){return v4().domain(e).range(t).unknown(r)},yr.apply(l,arguments)}function g4(){var e=0,t=1,n=1,r=[.5],i=[0,1],l;function s(f){return f!=null&&f<=f?i[df(r,f,0,n)]:l}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return s}return s.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},s.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,c()):i.slice()},s.invertExtent=function(f){var d=i.indexOf(f);return d<0?[NaN,NaN]:d<1?[e,r[0]]:d>=n?[r[n-1],t]:[r[d-1],r[d]]},s.unknown=function(f){return arguments.length&&(l=f),s},s.thresholds=function(){return r.slice()},s.copy=function(){return g4().domain([e,t]).range(i).unknown(l)},yr.apply(ki(s),arguments)}function y4(){var e=[.5],t=[0,1],n,r=1;function i(l){return l!=null&&l<=l?t[df(e,l,0,r)]:n}return i.domain=function(l){return arguments.length?(e=Array.from(l),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(l){return arguments.length?(t=Array.from(l),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(l){var s=t.indexOf(l);return[e[s-1],e[s]]},i.unknown=function(l){return arguments.length?(n=l,i):n},i.copy=function(){return y4().domain(e).range(t).unknown(n)},yr.apply(i,arguments)}const Ex=new Date,Ax=new Date;function Vt(e,t,n,r){function i(l){return e(l=arguments.length===0?new Date:new Date(+l)),l}return i.floor=l=>(e(l=new Date(+l)),l),i.ceil=l=>(e(l=new Date(l-1)),t(l,1),e(l),l),i.round=l=>{const s=i(l),c=i.ceil(l);return l-s<c-l?s:c},i.offset=(l,s)=>(t(l=new Date(+l),s==null?1:Math.floor(s)),l),i.range=(l,s,c)=>{const f=[];if(l=i.ceil(l),c=c==null?1:Math.floor(c),!(l<s)||!(c>0))return f;let d;do f.push(d=new Date(+l)),t(l,c),e(l);while(d<l&&l<s);return f},i.filter=l=>Vt(s=>{if(s>=s)for(;e(s),!l(s);)s.setTime(s-1)},(s,c)=>{if(s>=s)if(c<0)for(;++c<=0;)for(;t(s,-1),!l(s););else for(;--c>=0;)for(;t(s,1),!l(s););}),n&&(i.count=(l,s)=>(Ex.setTime(+l),Ax.setTime(+s),e(Ex),e(Ax),Math.floor(n(Ex,Ax))),i.every=l=>(l=Math.floor(l),!isFinite(l)||!(l>0)?null:l>1?i.filter(r?s=>r(s)%l===0:s=>i.count(0,s)%l===0):i)),i}const Vh=Vt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Vh.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Vt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Vh);Vh.range;const Ca=1e3,fr=Ca*60,Ma=fr*60,za=Ma*24,PO=za*7,jR=za*30,Tx=za*365,go=Vt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Ca)},(e,t)=>(t-e)/Ca,e=>e.getUTCSeconds());go.range;const DO=Vt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ca)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getMinutes());DO.range;const kO=Vt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getUTCMinutes());kO.range;const $O=Vt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Ca-e.getMinutes()*fr)},(e,t)=>{e.setTime(+e+t*Ma)},(e,t)=>(t-e)/Ma,e=>e.getHours());$O.range;const LO=Vt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ma)},(e,t)=>(t-e)/Ma,e=>e.getUTCHours());LO.range;const mf=Vt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*fr)/za,e=>e.getDate()-1);mf.range;const um=Vt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/za,e=>e.getUTCDate()-1);um.range;const b4=Vt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/za,e=>Math.floor(e/za));b4.range;function $o(e){return Vt(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())*fr)/PO)}const cm=$o(0),Yh=$o(1),Wee=$o(2),Kee=$o(3),is=$o(4),Xee=$o(5),Qee=$o(6);cm.range;Yh.range;Wee.range;Kee.range;is.range;Xee.range;Qee.range;function Lo(e){return Vt(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)/PO)}const fm=Lo(0),Wh=Lo(1),Zee=Lo(2),Jee=Lo(3),os=Lo(4),ete=Lo(5),tte=Lo(6);fm.range;Wh.range;Zee.range;Jee.range;os.range;ete.range;tte.range;const IO=Vt(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());IO.range;const zO=Vt(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());zO.range;const Ba=Vt(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());Ba.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Vt(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)});Ba.range;const qa=Vt(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());qa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Vt(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)});qa.range;function x4(e,t,n,r,i,l){const s=[[go,1,Ca],[go,5,5*Ca],[go,15,15*Ca],[go,30,30*Ca],[l,1,fr],[l,5,5*fr],[l,15,15*fr],[l,30,30*fr],[i,1,Ma],[i,3,3*Ma],[i,6,6*Ma],[i,12,12*Ma],[r,1,za],[r,2,2*za],[n,1,PO],[t,1,jR],[t,3,3*jR],[e,1,Tx]];function c(d,m,p){const y=m<d;y&&([d,m]=[m,d]);const x=p&&typeof p.range=="function"?p:f(d,m,p),O=x?x.range(d,+m+1):[];return y?O.reverse():O}function f(d,m,p){const y=Math.abs(m-d)/p,x=wO(([,,S])=>S).right(s,y);if(x===s.length)return e.every(u1(d/Tx,m/Tx,p));if(x===0)return Vh.every(Math.max(u1(d,m,p),1));const[O,w]=s[y/s[x-1][2]<s[x][2]/y?x-1:x];return O.every(w)}return[c,f]}const[nte,rte]=x4(qa,zO,fm,b4,LO,kO),[ate,ite]=x4(Ba,IO,cm,mf,$O,DO);function jx(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 Cx(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 qu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function ote(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,l=e.days,s=e.shortDays,c=e.months,f=e.shortMonths,d=Uu(i),m=Hu(i),p=Uu(l),y=Hu(l),x=Uu(s),O=Hu(s),w=Uu(c),S=Hu(c),E=Uu(f),T=Hu(f),A={a:q,A:B,b:W,B:le,c:null,d:DR,e:DR,f:Cte,g:zte,G:qte,H:Ate,I:Tte,j:jte,L:w4,m:Mte,M:Nte,p:$,q:F,Q:LR,s:IR,S:Rte,u:Pte,U:Dte,V:kte,w:$te,W:Lte,x:null,X:null,y:Ite,Y:Bte,Z:Ute,"%":$R},M={a:X,A:ae,b:de,B:ge,c:null,d:kR,e:kR,f:Vte,g:nne,G:ane,H:Hte,I:Fte,j:Gte,L:O4,m:Yte,M:Wte,p:ce,q:he,Q:LR,s:IR,S:Kte,u:Xte,U:Qte,V:Zte,w:Jte,W:ene,x:null,X:null,y:tne,Y:rne,Z:ine,"%":$R},j={a:Y,A:z,b:H,B:V,c:Q,d:RR,e:RR,f:Ste,g:NR,G:MR,H:PR,I:PR,j:yte,L:wte,m:gte,M:bte,p:L,q:vte,Q:_te,s:Ete,S:xte,u:fte,U:dte,V:hte,w:cte,W:pte,x:K,X:k,y:NR,Y:MR,Z:mte,"%":Ote};A.x=N(n,A),A.X=N(r,A),A.c=N(t,A),M.x=N(n,M),M.X=N(r,M),M.c=N(t,M);function N(ie,pe){return function(ve){var ne=[],Pe=-1,Ee=0,Xe=ie.length,Ge,at,un;for(ve instanceof Date||(ve=new Date(+ve));++Pe<Xe;)ie.charCodeAt(Pe)===37&&(ne.push(ie.slice(Ee,Pe)),(at=CR[Ge=ie.charAt(++Pe)])!=null?Ge=ie.charAt(++Pe):at=Ge==="e"?" ":"0",(un=pe[Ge])&&(Ge=un(ve,at)),ne.push(Ge),Ee=Pe+1);return ne.push(ie.slice(Ee,Pe)),ne.join("")}}function R(ie,pe){return function(ve){var ne=qu(1900,void 0,1),Pe=P(ne,ie,ve+="",0),Ee,Xe;if(Pe!=ve.length)return null;if("Q"in ne)return new Date(ne.Q);if("s"in ne)return new Date(ne.s*1e3+("L"in ne?ne.L:0));if(pe&&!("Z"in ne)&&(ne.Z=0),"p"in ne&&(ne.H=ne.H%12+ne.p*12),ne.m===void 0&&(ne.m="q"in ne?ne.q:0),"V"in ne){if(ne.V<1||ne.V>53)return null;"w"in ne||(ne.w=1),"Z"in ne?(Ee=Cx(qu(ne.y,0,1)),Xe=Ee.getUTCDay(),Ee=Xe>4||Xe===0?Wh.ceil(Ee):Wh(Ee),Ee=um.offset(Ee,(ne.V-1)*7),ne.y=Ee.getUTCFullYear(),ne.m=Ee.getUTCMonth(),ne.d=Ee.getUTCDate()+(ne.w+6)%7):(Ee=jx(qu(ne.y,0,1)),Xe=Ee.getDay(),Ee=Xe>4||Xe===0?Yh.ceil(Ee):Yh(Ee),Ee=mf.offset(Ee,(ne.V-1)*7),ne.y=Ee.getFullYear(),ne.m=Ee.getMonth(),ne.d=Ee.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Xe="Z"in ne?Cx(qu(ne.y,0,1)).getUTCDay():jx(qu(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+ne.W*7-(Xe+5)%7:ne.w+ne.U*7-(Xe+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,Cx(ne)):jx(ne)}}function P(ie,pe,ve,ne){for(var Pe=0,Ee=pe.length,Xe=ve.length,Ge,at;Pe<Ee;){if(ne>=Xe)return-1;if(Ge=pe.charCodeAt(Pe++),Ge===37){if(Ge=pe.charAt(Pe++),at=j[Ge in CR?pe.charAt(Pe++):Ge],!at||(ne=at(ie,ve,ne))<0)return-1}else if(Ge!=ve.charCodeAt(ne++))return-1}return ne}function L(ie,pe,ve){var ne=d.exec(pe.slice(ve));return ne?(ie.p=m.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function Y(ie,pe,ve){var ne=x.exec(pe.slice(ve));return ne?(ie.w=O.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function z(ie,pe,ve){var ne=p.exec(pe.slice(ve));return ne?(ie.w=y.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function H(ie,pe,ve){var ne=E.exec(pe.slice(ve));return ne?(ie.m=T.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function V(ie,pe,ve){var ne=w.exec(pe.slice(ve));return ne?(ie.m=S.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function Q(ie,pe,ve){return P(ie,t,pe,ve)}function K(ie,pe,ve){return P(ie,n,pe,ve)}function k(ie,pe,ve){return P(ie,r,pe,ve)}function q(ie){return s[ie.getDay()]}function B(ie){return l[ie.getDay()]}function W(ie){return f[ie.getMonth()]}function le(ie){return c[ie.getMonth()]}function $(ie){return i[+(ie.getHours()>=12)]}function F(ie){return 1+~~(ie.getMonth()/3)}function X(ie){return s[ie.getUTCDay()]}function ae(ie){return l[ie.getUTCDay()]}function de(ie){return f[ie.getUTCMonth()]}function ge(ie){return c[ie.getUTCMonth()]}function ce(ie){return i[+(ie.getUTCHours()>=12)]}function he(ie){return 1+~~(ie.getUTCMonth()/3)}return{format:function(ie){var pe=N(ie+="",A);return pe.toString=function(){return ie},pe},parse:function(ie){var pe=R(ie+="",!1);return pe.toString=function(){return ie},pe},utcFormat:function(ie){var pe=N(ie+="",M);return pe.toString=function(){return ie},pe},utcParse:function(ie){var pe=R(ie+="",!0);return pe.toString=function(){return ie},pe}}}var CR={"-":"",_:" ",0:"0"},Jt=/^\s*\d+/,lte=/^%/,ste=/[\\^$*+?|[\]().{}]/g;function Ke(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",l=i.length;return r+(l<n?new Array(n-l+1).join(t)+i:i)}function ute(e){return e.replace(ste,"\\$&")}function Uu(e){return new RegExp("^(?:"+e.map(ute).join("|")+")","i")}function Hu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function cte(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function fte(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function dte(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function hte(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function pte(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function MR(e,t,n){var r=Jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function NR(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 mte(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 vte(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 gte(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 RR(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function yte(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 bte(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function xte(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function wte(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ste(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 Ote(e,t,n){var r=lte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function _te(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Ete(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function DR(e,t){return Ke(e.getDate(),t,2)}function Ate(e,t){return Ke(e.getHours(),t,2)}function Tte(e,t){return Ke(e.getHours()%12||12,t,2)}function jte(e,t){return Ke(1+mf.count(Ba(e),e),t,3)}function w4(e,t){return Ke(e.getMilliseconds(),t,3)}function Cte(e,t){return w4(e,t)+"000"}function Mte(e,t){return Ke(e.getMonth()+1,t,2)}function Nte(e,t){return Ke(e.getMinutes(),t,2)}function Rte(e,t){return Ke(e.getSeconds(),t,2)}function Pte(e){var t=e.getDay();return t===0?7:t}function Dte(e,t){return Ke(cm.count(Ba(e)-1,e),t,2)}function S4(e){var t=e.getDay();return t>=4||t===0?is(e):is.ceil(e)}function kte(e,t){return e=S4(e),Ke(is.count(Ba(e),e)+(Ba(e).getDay()===4),t,2)}function $te(e){return e.getDay()}function Lte(e,t){return Ke(Yh.count(Ba(e)-1,e),t,2)}function Ite(e,t){return Ke(e.getFullYear()%100,t,2)}function zte(e,t){return e=S4(e),Ke(e.getFullYear()%100,t,2)}function Bte(e,t){return Ke(e.getFullYear()%1e4,t,4)}function qte(e,t){var n=e.getDay();return e=n>=4||n===0?is(e):is.ceil(e),Ke(e.getFullYear()%1e4,t,4)}function Ute(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Ke(t/60|0,"0",2)+Ke(t%60,"0",2)}function kR(e,t){return Ke(e.getUTCDate(),t,2)}function Hte(e,t){return Ke(e.getUTCHours(),t,2)}function Fte(e,t){return Ke(e.getUTCHours()%12||12,t,2)}function Gte(e,t){return Ke(1+um.count(qa(e),e),t,3)}function O4(e,t){return Ke(e.getUTCMilliseconds(),t,3)}function Vte(e,t){return O4(e,t)+"000"}function Yte(e,t){return Ke(e.getUTCMonth()+1,t,2)}function Wte(e,t){return Ke(e.getUTCMinutes(),t,2)}function Kte(e,t){return Ke(e.getUTCSeconds(),t,2)}function Xte(e){var t=e.getUTCDay();return t===0?7:t}function Qte(e,t){return Ke(fm.count(qa(e)-1,e),t,2)}function _4(e){var t=e.getUTCDay();return t>=4||t===0?os(e):os.ceil(e)}function Zte(e,t){return e=_4(e),Ke(os.count(qa(e),e)+(qa(e).getUTCDay()===4),t,2)}function Jte(e){return e.getUTCDay()}function ene(e,t){return Ke(Wh.count(qa(e)-1,e),t,2)}function tne(e,t){return Ke(e.getUTCFullYear()%100,t,2)}function nne(e,t){return e=_4(e),Ke(e.getUTCFullYear()%100,t,2)}function rne(e,t){return Ke(e.getUTCFullYear()%1e4,t,4)}function ane(e,t){var n=e.getUTCDay();return e=n>=4||n===0?os(e):os.ceil(e),Ke(e.getUTCFullYear()%1e4,t,4)}function ine(){return"+0000"}function $R(){return"%"}function LR(e){return+e}function IR(e){return Math.floor(+e/1e3)}var Dl,E4,A4;one({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 one(e){return Dl=ote(e),E4=Dl.format,Dl.parse,A4=Dl.utcFormat,Dl.utcParse,Dl}function lne(e){return new Date(e)}function sne(e){return e instanceof Date?+e:+new Date(+e)}function BO(e,t,n,r,i,l,s,c,f,d){var m=AO(),p=m.invert,y=m.domain,x=d(".%L"),O=d(":%S"),w=d("%I:%M"),S=d("%I %p"),E=d("%a %d"),T=d("%b %d"),A=d("%B"),M=d("%Y");function j(N){return(f(N)<N?x:c(N)<N?O:s(N)<N?w:l(N)<N?S:r(N)<N?i(N)<N?E:T:n(N)<N?A:M)(N)}return m.invert=function(N){return new Date(p(N))},m.domain=function(N){return arguments.length?y(Array.from(N,sne)):y().map(lne)},m.ticks=function(N){var R=y();return e(R[0],R[R.length-1],N??10)},m.tickFormat=function(N,R){return R==null?j:d(R)},m.nice=function(N){var R=y();return(!N||typeof N.range!="function")&&(N=t(R[0],R[R.length-1],N??10)),N?y(d4(R,N)):m},m.copy=function(){return pf(m,BO(e,t,n,r,i,l,s,c,f,d))},m}function une(){return yr.apply(BO(ate,ite,Ba,IO,cm,mf,$O,DO,go,E4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function cne(){return yr.apply(BO(nte,rte,qa,zO,fm,um,LO,kO,go,A4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function dm(){var e=0,t=1,n,r,i,l,s=xn,c=!1,f;function d(p){return p==null||isNaN(p=+p)?f:s(i===0?.5:(p=(l(p)-n)*i,c?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t]=p,n=l(e=+e),r=l(t=+t),i=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(p){return arguments.length?(c=!!p,d):c},d.interpolator=function(p){return arguments.length?(s=p,d):s};function m(p){return function(y){var x,O;return arguments.length?([x,O]=y,s=p(x,O),d):[s(0),s(1)]}}return d.range=m(Ls),d.rangeRound=m(EO),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return l=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),d}}function $i(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function T4(){var e=ki(dm()(xn));return e.copy=function(){return $i(e,T4())},Ga.apply(e,arguments)}function j4(){var e=CO(dm()).domain([1,10]);return e.copy=function(){return $i(e,j4()).base(e.base())},Ga.apply(e,arguments)}function C4(){var e=MO(dm());return e.copy=function(){return $i(e,C4()).constant(e.constant())},Ga.apply(e,arguments)}function qO(){var e=NO(dm());return e.copy=function(){return $i(e,qO()).exponent(e.exponent())},Ga.apply(e,arguments)}function fne(){return qO.apply(null,arguments).exponent(.5)}function M4(){var e=[],t=xn;function n(r){if(r!=null&&!isNaN(r=+r))return t((df(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let i of r)i!=null&&!isNaN(i=+i)&&e.push(i);return e.sort(Ei),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,i)=>t(i/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(i,l)=>QJ(e,l/r))},n.copy=function(){return M4(t).domain(e)},Ga.apply(n,arguments)}function hm(){var e=0,t=.5,n=1,r=1,i,l,s,c,f,d=xn,m,p=!1,y;function x(w){return isNaN(w=+w)?y:(w=.5+((w=+m(w))-l)*(r*w<r*l?c:f),d(p?Math.max(0,Math.min(1,w)):w))}x.domain=function(w){return arguments.length?([e,t,n]=w,i=m(e=+e),l=m(t=+t),s=m(n=+n),c=i===l?0:.5/(l-i),f=l===s?0:.5/(s-l),r=l<i?-1:1,x):[e,t,n]},x.clamp=function(w){return arguments.length?(p=!!w,x):p},x.interpolator=function(w){return arguments.length?(d=w,x):d};function O(w){return function(S){var E,T,A;return arguments.length?([E,T,A]=S,d=Oee(w,[E,T,A]),x):[d(0),d(.5),d(1)]}}return x.range=O(Ls),x.rangeRound=O(EO),x.unknown=function(w){return arguments.length?(y=w,x):y},function(w){return m=w,i=w(e),l=w(t),s=w(n),c=i===l?0:.5/(l-i),f=l===s?0:.5/(s-l),r=l<i?-1:1,x}}function N4(){var e=ki(hm()(xn));return e.copy=function(){return $i(e,N4())},Ga.apply(e,arguments)}function R4(){var e=CO(hm()).domain([.1,1,10]);return e.copy=function(){return $i(e,R4()).base(e.base())},Ga.apply(e,arguments)}function P4(){var e=MO(hm());return e.copy=function(){return $i(e,P4()).constant(e.constant())},Ga.apply(e,arguments)}function UO(){var e=NO(hm());return e.copy=function(){return $i(e,UO()).exponent(e.exponent())},Ga.apply(e,arguments)}function dne(){return UO.apply(null,arguments).exponent(.5)}const zR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:xc,scaleDiverging:N4,scaleDivergingLog:R4,scaleDivergingPow:UO,scaleDivergingSqrt:dne,scaleDivergingSymlog:P4,scaleIdentity:f4,scaleImplicit:c1,scaleLinear:Gh,scaleLog:h4,scaleOrdinal:SO,scalePoint:nc,scalePow:RO,scaleQuantile:v4,scaleQuantize:g4,scaleRadial:m4,scaleSequential:T4,scaleSequentialLog:j4,scaleSequentialPow:qO,scaleSequentialQuantile:M4,scaleSequentialSqrt:fne,scaleSequentialSymlog:C4,scaleSqrt:Vee,scaleSymlog:p4,scaleThreshold:y4,scaleTime:une,scaleUtc:cne,tickFormat:c4},Symbol.toStringTag,{value:"Module"}));var Mx,BR;function D4(){if(BR)return Mx;BR=1;var e=Ps();function t(n,r,i){for(var l=-1,s=n.length;++l<s;){var c=n[l],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):i(f,d)))var d=f,m=c}return m}return Mx=t,Mx}var Nx,qR;function hne(){if(qR)return Nx;qR=1;function e(t,n){return t>n}return Nx=e,Nx}var Rx,UR;function pne(){if(UR)return Rx;UR=1;var e=D4(),t=hne(),n=ks();function r(i){return i&&i.length?e(i,n,t):void 0}return Rx=r,Rx}var mne=pne();const pm=ut(mne);var Px,HR;function vne(){if(HR)return Px;HR=1;function e(t,n){return t<n}return Px=e,Px}var Dx,FR;function gne(){if(FR)return Dx;FR=1;var e=D4(),t=vne(),n=ks();function r(i){return i&&i.length?e(i,n,t):void 0}return Dx=r,Dx}var yne=gne();const mm=ut(yne);var kx,GR;function bne(){if(GR)return kx;GR=1;var e=aO(),t=Di(),n=U3(),r=kn();function i(l,s){var c=r(l)?e:n;return c(l,t(s,3))}return kx=i,kx}var $x,VR;function xne(){if(VR)return $x;VR=1;var e=B3(),t=bne();function n(r,i){return e(t(r,i),1)}return $x=n,$x}var wne=xne();const Sne=ut(wne);var Lx,YR;function One(){if(YR)return Lx;YR=1;var e=gO();function t(n,r){return e(n,r)}return Lx=t,Lx}var _ne=One();const vm=ut(_ne);var Is=1e9,Ene={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},FO,bt=!0,vr="[DecimalError] ",wo=vr+"Invalid argument: ",HO=vr+"Exponent out of range: ",zs=Math.floor,po=Math.pow,Ane=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Wn,Zt=1e7,vt=7,k4=9007199254740991,Kh=zs(k4/vt),xe={};xe.absoluteValue=xe.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};xe.comparedTo=xe.cmp=function(e){var t,n,r,i,l=this;if(e=new l.constructor(e),l.s!==e.s)return l.s||-e.s;if(l.e!==e.e)return l.e>e.e^l.s<0?1:-1;for(r=l.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(l.d[t]!==e.d[t])return l.d[t]>e.d[t]^l.s<0?1:-1;return r===i?0:r>i^l.s<0?1:-1};xe.decimalPlaces=xe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*vt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};xe.dividedBy=xe.div=function(e){return ka(this,new this.constructor(e))};xe.dividedToIntegerBy=xe.idiv=function(e){var t=this,n=t.constructor;return ft(ka(t,new n(e),0,1),n.precision)};xe.equals=xe.eq=function(e){return!this.cmp(e)};xe.exponent=function(){return It(this)};xe.greaterThan=xe.gt=function(e){return this.cmp(e)>0};xe.greaterThanOrEqualTo=xe.gte=function(e){return this.cmp(e)>=0};xe.isInteger=xe.isint=function(){return this.e>this.d.length-2};xe.isNegative=xe.isneg=function(){return this.s<0};xe.isPositive=xe.ispos=function(){return this.s>0};xe.isZero=function(){return this.s===0};xe.lessThan=xe.lt=function(e){return this.cmp(e)<0};xe.lessThanOrEqualTo=xe.lte=function(e){return this.cmp(e)<1};xe.logarithm=xe.log=function(e){var t,n=this,r=n.constructor,i=r.precision,l=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Wn))throw Error(vr+"NaN");if(n.s<1)throw Error(vr+(n.s?"NaN":"-Infinity"));return n.eq(Wn)?new r(0):(bt=!1,t=ka(Ec(n,l),Ec(e,l),l),bt=!0,ft(t,i))};xe.minus=xe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?I4(t,e):$4(t,(e.s=-e.s,e))};xe.modulo=xe.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(vr+"NaN");return n.s?(bt=!1,t=ka(n,e,0,1).times(e),bt=!0,n.minus(t)):ft(new r(n),i)};xe.naturalExponential=xe.exp=function(){return L4(this)};xe.naturalLogarithm=xe.ln=function(){return Ec(this)};xe.negated=xe.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};xe.plus=xe.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?$4(t,e):I4(t,(e.s=-e.s,e))};xe.precision=xe.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(wo+e);if(t=It(i)+1,r=i.d.length-1,n=r*vt+1,r=i.d[r],r){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};xe.squareRoot=xe.sqrt=function(){var e,t,n,r,i,l,s,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(vr+"NaN")}for(e=It(c),bt=!1,i=Math.sqrt(+c),i==0||i==1/0?(t=Jr(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=zs((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(i.toString()),n=f.precision,i=s=n+3;;)if(l=r,r=l.plus(ka(c,l,s+2)).times(.5),Jr(l.d).slice(0,s)===(t=Jr(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(ft(l,n+1,0),l.times(l).eq(c)){r=l;break}}else if(t!="9999")break;s+=4}return bt=!0,ft(r,n)};xe.times=xe.mul=function(e){var t,n,r,i,l,s,c,f,d,m=this,p=m.constructor,y=m.d,x=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,f=y.length,d=x.length,f<d&&(l=y,y=x,x=l,s=f,f=d,d=s),l=[],s=f+d,r=s;r--;)l.push(0);for(r=d;--r>=0;){for(t=0,i=f+r;i>r;)c=l[i]+x[r]*y[i-r-1]+t,l[i--]=c%Zt|0,t=c/Zt|0;l[i]=(l[i]+t)%Zt|0}for(;!l[--s];)l.pop();return t?++n:l.shift(),e.d=l,e.e=n,bt?ft(e,p.precision):e};xe.toDecimalPlaces=xe.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(aa(e,0,Is),t===void 0?t=r.rounding:aa(t,0,8),ft(n,e+It(n)+1,t))};xe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=jo(r,!0):(aa(e,0,Is),t===void 0?t=i.rounding:aa(t,0,8),r=ft(new i(r),e+1,t),n=jo(r,!0,e+1)),n};xe.toFixed=function(e,t){var n,r,i=this,l=i.constructor;return e===void 0?jo(i):(aa(e,0,Is),t===void 0?t=l.rounding:aa(t,0,8),r=ft(new l(i),e+It(i)+1,t),n=jo(r.abs(),!1,e+It(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};xe.toInteger=xe.toint=function(){var e=this,t=e.constructor;return ft(new t(e),It(e)+1,t.rounding)};xe.toNumber=function(){return+this};xe.toPower=xe.pow=function(e){var t,n,r,i,l,s,c=this,f=c.constructor,d=12,m=+(e=new f(e));if(!e.s)return new f(Wn);if(c=new f(c),!c.s){if(e.s<1)throw Error(vr+"Infinity");return c}if(c.eq(Wn))return c;if(r=f.precision,e.eq(Wn))return ft(c,r);if(t=e.e,n=e.d.length-1,s=t>=n,l=c.s,s){if((n=m<0?-m:m)<=k4){for(i=new f(Wn),t=Math.ceil(r/vt+4),bt=!1;n%2&&(i=i.times(c),KR(i.d,t)),n=zs(n/2),n!==0;)c=c.times(c),KR(c.d,t);return bt=!0,e.s<0?new f(Wn).div(i):ft(i,r)}}else if(l<0)throw Error(vr+"NaN");return l=l<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,bt=!1,i=e.times(Ec(c,r+d)),bt=!0,i=L4(i),i.s=l,i};xe.toPrecision=function(e,t){var n,r,i=this,l=i.constructor;return e===void 0?(n=It(i),r=jo(i,n<=l.toExpNeg||n>=l.toExpPos)):(aa(e,1,Is),t===void 0?t=l.rounding:aa(t,0,8),i=ft(new l(i),e,t),n=It(i),r=jo(i,e<=n||n<=l.toExpNeg,e)),r};xe.toSignificantDigits=xe.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(aa(e,1,Is),t===void 0?t=r.rounding:aa(t,0,8)),ft(new r(n),e,t)};xe.toString=xe.valueOf=xe.val=xe.toJSON=xe[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=It(e),n=e.constructor;return jo(e,t<=n.toExpNeg||t>=n.toExpPos)};function $4(e,t){var n,r,i,l,s,c,f,d,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),bt?ft(t,p):t;if(f=e.d,d=t.d,s=e.e,i=t.e,f=f.slice(),l=s-i,l){for(l<0?(r=f,l=-l,c=d.length):(r=d,i=s,c=f.length),s=Math.ceil(p/vt),c=s>c?s+1:c+1,l>c&&(l=c,r.length=1),r.reverse();l--;)r.push(0);r.reverse()}for(c=f.length,l=d.length,c-l<0&&(l=c,r=d,d=f,f=r),n=0;l;)n=(f[--l]=f[l]+d[l]+n)/Zt|0,f[l]%=Zt;for(n&&(f.unshift(n),++i),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=i,bt?ft(t,p):t}function aa(e,t,n){if(e!==~~e||e<t||e>n)throw Error(wo+e)}function Jr(e){var t,n,r,i=e.length-1,l="",s=e[0];if(i>0){for(l+=s,t=1;t<i;t++)r=e[t]+"",n=vt-r.length,n&&(l+=Si(n)),l+=r;s=e[t],r=s+"",n=vt-r.length,n&&(l+=Si(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return l+s}var ka=(function(){function e(r,i){var l,s=0,c=r.length;for(r=r.slice();c--;)l=r[c]*i+s,r[c]=l%Zt|0,s=l/Zt|0;return s&&r.unshift(s),r}function t(r,i,l,s){var c,f;if(l!=s)f=l>s?1:-1;else for(c=f=0;c<l;c++)if(r[c]!=i[c]){f=r[c]>i[c]?1:-1;break}return f}function n(r,i,l){for(var s=0;l--;)r[l]-=s,s=r[l]<i[l]?1:0,r[l]=s*Zt+r[l]-i[l];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,l,s){var c,f,d,m,p,y,x,O,w,S,E,T,A,M,j,N,R,P,L=r.constructor,Y=r.s==i.s?1:-1,z=r.d,H=i.d;if(!r.s)return new L(r);if(!i.s)throw Error(vr+"Division by zero");for(f=r.e-i.e,R=H.length,j=z.length,x=new L(Y),O=x.d=[],d=0;H[d]==(z[d]||0);)++d;if(H[d]>(z[d]||0)&&--f,l==null?T=l=L.precision:s?T=l+(It(r)-It(i))+1:T=l,T<0)return new L(0);if(T=T/vt+2|0,d=0,R==1)for(m=0,H=H[0],T++;(d<j||m)&&T--;d++)A=m*Zt+(z[d]||0),O[d]=A/H|0,m=A%H|0;else{for(m=Zt/(H[0]+1)|0,m>1&&(H=e(H,m),z=e(z,m),R=H.length,j=z.length),M=R,w=z.slice(0,R),S=w.length;S<R;)w[S++]=0;P=H.slice(),P.unshift(0),N=H[0],H[1]>=Zt/2&&++N;do m=0,c=t(H,w,R,S),c<0?(E=w[0],R!=S&&(E=E*Zt+(w[1]||0)),m=E/N|0,m>1?(m>=Zt&&(m=Zt-1),p=e(H,m),y=p.length,S=w.length,c=t(p,w,y,S),c==1&&(m--,n(p,R<y?P:H,y))):(m==0&&(c=m=1),p=H.slice()),y=p.length,y<S&&p.unshift(0),n(w,p,S),c==-1&&(S=w.length,c=t(H,w,R,S),c<1&&(m++,n(w,R<S?P:H,S))),S=w.length):c===0&&(m++,w=[0]),O[d++]=m,c&&w[0]?w[S++]=z[M]||0:(w=[z[M]],S=1);while((M++<j||w[0]!==void 0)&&T--)}return O[0]||O.shift(),x.e=f,ft(x,s?l+It(x)+1:l)}})();function L4(e,t){var n,r,i,l,s,c,f=0,d=0,m=e.constructor,p=m.precision;if(It(e)>16)throw Error(HO+It(e));if(!e.s)return new m(Wn);for(bt=!1,c=p,s=new m(.03125);e.abs().gte(.1);)e=e.times(s),d+=5;for(r=Math.log(po(2,d))/Math.LN10*2+5|0,c+=r,n=i=l=new m(Wn),m.precision=c;;){if(i=ft(i.times(e),c),n=n.times(++f),s=l.plus(ka(i,n,c)),Jr(s.d).slice(0,c)===Jr(l.d).slice(0,c)){for(;d--;)l=ft(l.times(l),c);return m.precision=p,t==null?(bt=!0,ft(l,p)):l}l=s}}function It(e){for(var t=e.e*vt,n=e.d[0];n>=10;n/=10)t++;return t}function Ix(e,t,n){if(t>e.LN10.sd())throw bt=!0,n&&(e.precision=n),Error(vr+"LN10 precision limit exceeded");return ft(new e(e.LN10),t)}function Si(e){for(var t="";e--;)t+="0";return t}function Ec(e,t){var n,r,i,l,s,c,f,d,m,p=1,y=10,x=e,O=x.d,w=x.constructor,S=w.precision;if(x.s<1)throw Error(vr+(x.s?"NaN":"-Infinity"));if(x.eq(Wn))return new w(0);if(t==null?(bt=!1,d=S):d=t,x.eq(10))return t==null&&(bt=!0),Ix(w,d);if(d+=y,w.precision=d,n=Jr(O),r=n.charAt(0),l=It(x),Math.abs(l)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=Jr(x.d),r=n.charAt(0),p++;l=It(x),r>1?(x=new w("0."+n),l++):x=new w(r+"."+n.slice(1))}else return f=Ix(w,d+2,S).times(l+""),x=Ec(new w(r+"."+n.slice(1)),d-y).plus(f),w.precision=S,t==null?(bt=!0,ft(x,S)):x;for(c=s=x=ka(x.minus(Wn),x.plus(Wn),d),m=ft(x.times(x),d),i=3;;){if(s=ft(s.times(m),d),f=c.plus(ka(s,new w(i),d)),Jr(f.d).slice(0,d)===Jr(c.d).slice(0,d))return c=c.times(2),l!==0&&(c=c.plus(Ix(w,d+2,S).times(l+""))),c=ka(c,new w(p),d),w.precision=S,t==null?(bt=!0,ft(c,S)):c;c=f,i+=2}}function WR(e,t){var n,r,i;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(i=t.length;t.charCodeAt(i-1)===48;)--i;if(t=t.slice(r,i),t){if(i-=r,n=n-r-1,e.e=zs(n/vt),e.d=[],r=(n+1)%vt,n<0&&(r+=vt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=vt;r<i;)e.d.push(+t.slice(r,r+=vt));t=t.slice(r),r=vt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),bt&&(e.e>Kh||e.e<-Kh))throw Error(HO+n)}else e.s=0,e.e=0,e.d=[0];return e}function ft(e,t,n){var r,i,l,s,c,f,d,m,p=e.d;for(s=1,l=p[0];l>=10;l/=10)s++;if(r=t-s,r<0)r+=vt,i=t,d=p[m=0];else{if(m=Math.ceil((r+1)/vt),l=p.length,m>=l)return e;for(d=l=p[m],s=1;l>=10;l/=10)s++;r%=vt,i=r-vt+s}if(n!==void 0&&(l=po(10,s-i-1),c=d/l%10|0,f=t<0||p[m+1]!==void 0||d%l,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?i>0?d/po(10,s-i):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(l=It(e),p.length=1,t=t-l-1,p[0]=po(10,(vt-t%vt)%vt),e.e=zs(-t/vt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,l=1,m--):(p.length=m+1,l=po(10,vt-r),p[m]=i>0?(d/po(10,s-i)%po(10,i)|0)*l:0),f)for(;;)if(m==0){(p[0]+=l)==Zt&&(p[0]=1,++e.e);break}else{if(p[m]+=l,p[m]!=Zt)break;p[m--]=0,l=1}for(r=p.length;p[--r]===0;)p.pop();if(bt&&(e.e>Kh||e.e<-Kh))throw Error(HO+It(e));return e}function I4(e,t){var n,r,i,l,s,c,f,d,m,p,y=e.constructor,x=y.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new y(e),bt?ft(t,x):t;if(f=e.d,p=t.d,r=t.e,d=e.e,f=f.slice(),s=d-r,s){for(m=s<0,m?(n=f,s=-s,c=p.length):(n=p,r=d,c=f.length),i=Math.max(Math.ceil(x/vt),c)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=f.length,c=p.length,m=i<c,m&&(c=i),i=0;i<c;i++)if(f[i]!=p[i]){m=f[i]<p[i];break}s=0}for(m&&(n=f,f=p,p=n,t.s=-t.s),c=f.length,i=p.length-c;i>0;--i)f[c++]=0;for(i=p.length;i>s;){if(f[--i]<p[i]){for(l=i;l&&f[--l]===0;)f[l]=Zt-1;--f[l],f[i]+=Zt}f[i]-=p[i]}for(;f[--c]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,bt?ft(t,x):t):new y(0)}function jo(e,t,n){var r,i=It(e),l=Jr(e.d),s=l.length;return t?(n&&(r=n-s)>0?l=l.charAt(0)+"."+l.slice(1)+Si(r):s>1&&(l=l.charAt(0)+"."+l.slice(1)),l=l+(i<0?"e":"e+")+i):i<0?(l="0."+Si(-i-1)+l,n&&(r=n-s)>0&&(l+=Si(r))):i>=s?(l+=Si(i+1-s),n&&(r=n-i-1)>0&&(l=l+"."+Si(r))):((r=i+1)<s&&(l=l.slice(0,r)+"."+l.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(l+="."),l+=Si(r))),e.s<0?"-"+l:l}function KR(e,t){if(e.length>t)return e.length=t,!0}function z4(e){var t,n,r;function i(l){var s=this;if(!(s instanceof i))return new i(l);if(s.constructor=i,l instanceof i){s.s=l.s,s.e=l.e,s.d=(l=l.d)?l.slice():l;return}if(typeof l=="number"){if(l*0!==0)throw Error(wo+l);if(l>0)s.s=1;else if(l<0)l=-l,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(l===~~l&&l<1e7){s.e=0,s.d=[l];return}return WR(s,l.toString())}else if(typeof l!="string")throw Error(wo+l);if(l.charCodeAt(0)===45?(l=l.slice(1),s.s=-1):s.s=1,Ane.test(l))WR(s,l);else throw Error(wo+l)}if(i.prototype=xe,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.clone=z4,i.config=i.set=Tne,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 i.config(e),i}function Tne(e){if(!e||typeof e!="object")throw Error(vr+"Object expected");var t,n,r,i=["precision",1,Is,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if((r=e[n=i[t]])!==void 0)if(zs(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(wo+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(wo+n+": "+r);return this}var FO=z4(Ene);Wn=new FO(1);const st=FO;function jne(e){return Rne(e)||Nne(e)||Mne(e)||Cne()}function Cne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
302
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mne(e,t){if(e){if(typeof e=="string")return p1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p1(e,t)}}function Nne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Rne(e){if(Array.isArray(e))return p1(e)}function p1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Pne=function(t){return t},B4={},q4=function(t){return t===B4},XR=function(t){return function n(){return arguments.length===0||arguments.length===1&&q4(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Dne=function e(t,n){return t===1?n:XR(function(){for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];var s=i.filter(function(c){return c!==B4}).length;return s>=t?n.apply(void 0,i):e(t-s,XR(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var m=i.map(function(p){return q4(p)?f.shift():p});return n.apply(void 0,jne(m).concat(f))}))})},gm=function(t){return Dne(t.length,t)},m1=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},kne=gm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),$ne=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Pne;var i=n.reverse(),l=i[0],s=i.slice(1);return function(){return s.reduce(function(c,f){return f(c)},l.apply(void 0,arguments))}},v1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},U4=function(t){var n=null,r=null;return function(){for(var i=arguments.length,l=new Array(i),s=0;s<i;s++)l[s]=arguments[s];return n&&l.every(function(c,f){return c===n[f]})||(n=l,r=t.apply(void 0,l)),r}};function Lne(e){var t;return e===0?t=1:t=Math.floor(new st(e).abs().log(10).toNumber())+1,t}function Ine(e,t,n){for(var r=new st(e),i=0,l=[];r.lt(t)&&i<1e5;)l.push(r.toNumber()),r=r.add(n),i++;return l}var zne=gm(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),Bne=gm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),qne=gm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const ym={rangeStep:Ine,getDigitCount:Lne,interpolateNumber:zne,uninterpolateNumber:Bne,uninterpolateTruncation:qne};function g1(e){return Fne(e)||Hne(e)||H4(e)||Une()}function Une(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
303
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Hne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Fne(e){if(Array.isArray(e))return y1(e)}function Ac(e,t){return Yne(e)||Vne(e,t)||H4(e,t)||Gne()}function Gne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
304
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H4(e,t){if(e){if(typeof e=="string")return y1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y1(e,t)}}function y1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Vne(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,l=void 0;try{for(var s=e[Symbol.iterator](),c;!(r=(c=s.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,l=f}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw l}}return n}}function Yne(e){if(Array.isArray(e))return e}function F4(e){var t=Ac(e,2),n=t[0],r=t[1],i=n,l=r;return n>r&&(i=r,l=n),[i,l]}function G4(e,t,n){if(e.lte(0))return new st(0);var r=ym.getDigitCount(e.toNumber()),i=new st(10).pow(r),l=e.div(i),s=r!==1?.05:.1,c=new st(Math.ceil(l.div(s).toNumber())).add(n).mul(s),f=c.mul(i);return t?f:new st(Math.ceil(f))}function Wne(e,t,n){var r=1,i=new st(e);if(!i.isint()&&n){var l=Math.abs(e);l<1?(r=new st(10).pow(ym.getDigitCount(e)-1),i=new st(Math.floor(i.div(r).toNumber())).mul(r)):l>1&&(i=new st(Math.floor(e)))}else e===0?i=new st(Math.floor((t-1)/2)):n||(i=new st(Math.floor(e)));var s=Math.floor((t-1)/2),c=$ne(kne(function(f){return i.add(new st(f-s).mul(r)).toNumber()}),m1);return c(0,t)}function V4(e,t,n,r){var i=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 l=G4(new st(t).sub(e).div(n-1),r,i),s;e<=0&&t>=0?s=new st(0):(s=new st(e).add(t).div(2),s=s.sub(new st(s).mod(l)));var c=Math.ceil(s.sub(e).div(l).toNumber()),f=Math.ceil(new st(t).sub(s).div(l).toNumber()),d=c+f+1;return d>n?V4(e,t,n,r,i+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:l,tickMin:s.sub(new st(c).mul(l)),tickMax:s.add(new st(f).mul(l))})}function Kne(e){var t=Ac(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(i,2),c=F4([n,r]),f=Ac(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var p=m===1/0?[d].concat(g1(m1(0,i-1).map(function(){return 1/0}))):[].concat(g1(m1(0,i-1).map(function(){return-1/0})),[m]);return n>r?v1(p):p}if(d===m)return Wne(d,i,l);var y=V4(d,m,s,l),x=y.step,O=y.tickMin,w=y.tickMax,S=ym.rangeStep(O,w.add(new st(.1).mul(x)),x);return n>r?v1(S):S}function Xne(e,t){var n=Ac(e,2),r=n[0],i=n[1],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=F4([r,i]),c=Ac(s,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,i];if(f===d)return[f];var m=Math.max(t,2),p=G4(new st(d).sub(f).div(m-1),l,0),y=[].concat(g1(ym.rangeStep(new st(f),new st(d).sub(new st(.99).mul(p)),p)),[d]);return r>i?v1(y):y}var Qne=U4(Kne),Zne=U4(Xne),Jne="Invariant failed";function Co(e,t){throw new Error(Jne)}var ere=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ls(e){"@babel/helpers - typeof";return ls=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},ls(e)}function Xh(){return Xh=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},Xh.apply(this,arguments)}function tre(e,t){return ire(e)||are(e,t)||rre(e,t)||nre()}function nre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
305
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rre(e,t){if(e){if(typeof e=="string")return QR(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 QR(e,t)}}function QR(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 are(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function ire(e){if(Array.isArray(e))return e}function ore(e,t){if(e==null)return{};var n=lre(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lre(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 sre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ure(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,K4(r.key),r)}}function cre(e,t,n){return t&&ure(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fre(e,t,n){return t=Qh(t),dre(e,Y4()?Reflect.construct(t,n||[],Qh(e).constructor):t.apply(e,n))}function dre(e,t){if(t&&(ls(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hre(e)}function hre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Y4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Y4=function(){return!!e})()}function Qh(e){return Qh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qh(e)}function pre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b1(e,t)}function b1(e,t){return b1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},b1(e,t)}function W4(e,t,n){return t=K4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K4(e){var t=mre(e,"string");return ls(t)=="symbol"?t:t+""}function mre(e,t){if(ls(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ls(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vf=(function(e){function t(){return sre(this,t),fre(this,t,arguments)}return pre(t,e),cre(t,[{key:"render",value:function(){var r=this.props,i=r.offset,l=r.layout,s=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,m=r.xAxis,p=r.yAxis,y=ore(r,ere),x=He(y,!1);this.props.direction==="x"&&m.type!=="number"&&Co();var O=f.map(function(w){var S=d(w,c),E=S.x,T=S.y,A=S.value,M=S.errorVal;if(!M)return null;var j=[],N,R;if(Array.isArray(M)){var P=tre(M,2);N=P[0],R=P[1]}else N=R=M;if(l==="vertical"){var L=m.scale,Y=T+i,z=Y+s,H=Y-s,V=L(A-N),Q=L(A+R);j.push({x1:Q,y1:z,x2:Q,y2:H}),j.push({x1:V,y1:Y,x2:Q,y2:Y}),j.push({x1:V,y1:z,x2:V,y2:H})}else if(l==="horizontal"){var K=p.scale,k=E+i,q=k-s,B=k+s,W=K(A-N),le=K(A+R);j.push({x1:q,y1:le,x2:B,y2:le}),j.push({x1:k,y1:W,x2:k,y2:le}),j.push({x1:q,y1:W,x2:B,y2:W})}return I.createElement(Ct,Xh({className:"recharts-errorBar",key:"bar-".concat(j.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},x),j.map(function($){return I.createElement("line",Xh({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return I.createElement(Ct,{className:"recharts-errorBars"},O)}}])})(I.Component);W4(vf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});W4(vf,"displayName","ErrorBar");function Tc(e){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(e)}function ZR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function so(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){vre(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 vre(e,t,n){return t=gre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gre(e){var t=yre(e,"string");return Tc(t)=="symbol"?t:t+""}function yre(e,t){if(Tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var X4=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,l=t.legendContent,s=Vn(n,bo);if(!s)return null;var c=bo.defaultProps,f=c!==void 0?so(so({},c),s.props):{},d;return s.props&&s.props.payload?d=s.props&&s.props.payload:l==="children"?d=(r||[]).reduce(function(m,p){var y=p.item,x=p.props,O=x.sectors||x.data||[];return m.concat(O.map(function(w){return{type:s.props.iconType||y.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):d=(r||[]).map(function(m){var p=m.item,y=p.type.defaultProps,x=y!==void 0?so(so({},y),p.props):{},O=x.dataKey,w=x.name,S=x.legendType,E=x.hide;return{inactive:E,dataKey:O,type:f.iconType||S||"square",color:GO(p),value:w||O,payload:x}}),so(so(so({},f),bo.getWithHeight(s,i)),{},{payload:d,item:s})};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 JR(e){return Sre(e)||wre(e)||xre(e)||bre()}function bre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
306
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xre(e,t){if(e){if(typeof e=="string")return x1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x1(e,t)}}function wre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Sre(e){if(Array.isArray(e))return x1(e)}function x1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function At(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eP(Object(n),!0).forEach(function(r){Wl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wl(e,t,n){return t=Ore(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ore(e){var t=_re(e,"string");return jc(t)=="symbol"?t:t+""}function _re(e,t){if(jc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xn(e,t,n){return ze(e)||ze(t)?n:Gt(t)?pr(e,t,n):$e(t)?t(e):n}function rc(e,t,n,r){var i=Sne(e,function(c){return Xn(c,t)});if(n==="number"){var l=i.filter(function(c){return ye(c)||parseFloat(c)});return l.length?[mm(l),pm(l)]:[1/0,-1/0]}var s=r?i.filter(function(c){return!ze(c)}):i;return s.map(function(c){return Gt(c)||c instanceof Date?c:""})}var Ere=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,l=arguments.length>3?arguments[3]:void 0,s=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(l&&l.axisType==="angleAxis"&&Math.abs(Math.abs(l.range[1]-l.range[0])-360)<=1e-6)for(var f=l.range,d=0;d<c;d++){var m=d>0?i[d-1].coordinate:i[c-1].coordinate,p=i[d].coordinate,y=d>=c-1?i[0].coordinate:i[d+1].coordinate,x=void 0;if(Mr(p-m)!==Mr(y-p)){var O=[];if(Mr(y-p)===Mr(f[1]-f[0])){x=y;var w=p+f[1]-f[0];O[0]=Math.min(w,(w+m)/2),O[1]=Math.max(w,(w+m)/2)}else{x=m;var S=y+f[1]-f[0];O[0]=Math.min(p,(S+p)/2),O[1]=Math.max(p,(S+p)/2)}var E=[Math.min(p,(x+p)/2),Math.max(p,(x+p)/2)];if(t>E[0]&&t<=E[1]||t>=O[0]&&t<=O[1]){s=i[d].index;break}}else{var T=Math.min(m,y),A=Math.max(m,y);if(t>(T+p)/2&&t<=(A+p)/2){s=i[d].index;break}}}else for(var M=0;M<c;M++)if(M===0&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M>0&&M<c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2&&t<=(r[M].coordinate+r[M+1].coordinate)/2||M===c-1&&t>(r[M].coordinate+r[M-1].coordinate)/2){s=r[M].index;break}return s},GO=function(t){var n,r=t,i=r.type.displayName,l=(n=t.type)!==null&&n!==void 0&&n.defaultProps?At(At({},t.type.defaultProps),t.props):t.props,s=l.stroke,c=l.fill,f;switch(i){case"Line":f=s;break;case"Area":case"Radar":f=s&&s!=="none"?s:c;break;default:f=c;break}return f},Are=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,l=i===void 0?{}:i;if(!l)return{};for(var s={},c=Object.keys(l),f=0,d=c.length;f<d;f++)for(var m=l[c[f]].stackGroups,p=Object.keys(m),y=0,x=p.length;y<x;y++){var O=m[p[y]],w=O.items,S=O.cateAxisId,E=w.filter(function(R){return Pa(R.type).indexOf("Bar")>=0});if(E&&E.length){var T=E[0].type.defaultProps,A=T!==void 0?At(At({},T),E[0].props):E[0].props,M=A.barSize,j=A[S];s[j]||(s[j]=[]);var N=ze(M)?n:M;s[j].push({item:E[0],stackList:E.slice(1),barSize:ze(N)?void 0:To(N,r,0)})}}return s},Tre=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,l=t.sizeList,s=l===void 0?[]:l,c=t.maxBarSize,f=s.length;if(f<1)return null;var d=To(n,i,0,!0),m,p=[];if(s[0].barSize===+s[0].barSize){var y=!1,x=i/f,O=s.reduce(function(M,j){return M+j.barSize||0},0);O+=(f-1)*d,O>=i&&(O-=(f-1)*d,d=0),O>=i&&x>0&&(y=!0,x*=.9,O=f*x);var w=(i-O)/2>>0,S={offset:w-d,size:0};m=s.reduce(function(M,j){var N={item:j.item,position:{offset:S.offset+S.size+d,size:y?x:j.barSize}},R=[].concat(JR(M),[N]);return S=R[R.length-1].position,j.stackList&&j.stackList.length&&j.stackList.forEach(function(P){R.push({item:P,position:S})}),R},p)}else{var E=To(r,i,0,!0);i-2*E-(f-1)*d<=0&&(d=0);var T=(i-2*E-(f-1)*d)/f;T>1&&(T>>=0);var A=c===+c?Math.min(T,c):T;m=s.reduce(function(M,j,N){var R=[].concat(JR(M),[{item:j.item,position:{offset:E+(T+d)*N+(T-A)/2,size:A}}]);return j.stackList&&j.stackList.length&&j.stackList.forEach(function(P){R.push({item:P,position:R[R.length-1].position})}),R},p)}return m},jre=function(t,n,r,i){var l=r.children,s=r.width,c=r.margin,f=s-(c.left||0)-(c.right||0),d=X4({children:l,legendWidth:f});if(d){var m=i||{},p=m.width,y=m.height,x=d.align,O=d.verticalAlign,w=d.layout;if((w==="vertical"||w==="horizontal"&&O==="middle")&&x!=="center"&&ye(t[x]))return At(At({},t),{},Wl({},x,t[x]+(p||0)));if((w==="horizontal"||w==="vertical"&&x==="center")&&O!=="middle"&&ye(t[O]))return At(At({},t),{},Wl({},O,t[O]+(y||0)))}return t},Cre=function(t,n,r){return ze(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Q4=function(t,n,r,i,l){var s=n.props.children,c=mr(s,vf).filter(function(d){return Cre(i,l,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,m){var p=Xn(m,r);if(ze(p))return d;var y=Array.isArray(p)?[mm(p),pm(p)]:[p,p],x=f.reduce(function(O,w){var S=Xn(m,w,0),E=y[0]-Math.abs(Array.isArray(S)?S[0]:S),T=y[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(E,O[0]),Math.max(T,O[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},Mre=function(t,n,r,i,l){var s=n.map(function(c){return Q4(t,c,r,l,i)}).filter(function(c){return!ze(c)});return s&&s.length?s.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},Z4=function(t,n,r,i,l){var s=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&Q4(t,f,d,i)||rc(t,d,r,l)});if(r==="number")return s.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return s.reduce(function(f,d){for(var m=0,p=d.length;m<p;m++)c[d[m]]||(c[d[m]]=!0,f.push(d[m]));return f},[])},J4=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},ez=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var l,s,c=t.map(function(f){return f.coordinate===n&&(l=!0),f.coordinate===r&&(s=!0),f.coordinate});return l||c.push(n),s||c.push(r),c},Na=function(t,n,r){if(!t)return null;var i=t.scale,l=t.duplicateDomain,s=t.type,c=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(n||r)&&s==="category"&&i.bandwidth?i.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?Mr(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var m=(t.ticks||t.niceTicks).map(function(p){var y=l?l.indexOf(p):p;return{coordinate:i(y)+d,value:p,offset:d}});return m.filter(function(p){return!uf(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,y){return{coordinate:i(p)+d,value:p,index:y,offset:d}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(p){return{coordinate:i(p)+d,value:p,offset:d}}):i.domain().map(function(p,y){return{coordinate:i(p)+d,value:l?l[p]:p,index:y,offset:d}})},zx=new WeakMap,Xd=function(t,n){if(typeof n!="function")return t;zx.has(t)||zx.set(t,new WeakMap);var r=zx.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},Nre=function(t,n,r){var i=t.scale,l=t.type,s=t.layout,c=t.axisType;if(i==="auto")return s==="radial"&&c==="radiusAxis"?{scale:xc(),realScaleType:"band"}:s==="radial"&&c==="angleAxis"?{scale:Gh(),realScaleType:"linear"}:l==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:nc(),realScaleType:"point"}:l==="category"?{scale:xc(),realScaleType:"band"}:{scale:Gh(),realScaleType:"linear"};if(Ao(i)){var f="scale".concat(tm(i));return{scale:(zR[f]||nc)(),realScaleType:zR[f]?f:"point"}}return $e(i)?{scale:i}:{scale:nc(),realScaleType:"point"}},tP=1e-4,Rre=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),l=Math.min(i[0],i[1])-tP,s=Math.max(i[0],i[1])+tP,c=t(n[0]),f=t(n[r-1]);(c<l||c>s||f<l||f>s)&&t.domain([n[0],n[r-1]])}},Pre=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},Dre=function(t,n){if(!n||n.length!==2||!ye(n[0])||!ye(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),l=[t[0],t[1]];return(!ye(t[0])||t[0]<r)&&(l[0]=r),(!ye(t[1])||t[1]>i)&&(l[1]=i),l[0]>i&&(l[0]=i),l[1]<r&&(l[1]=r),l},kre=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var l=0,s=0,c=0;c<n;++c){var f=uf(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1]):(t[c][r][0]=s,t[c][r][1]=s+f,s=t[c][r][1])}},$re=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var l=0,s=0;s<n;++s){var c=uf(t[s][r][1])?t[s][r][0]:t[s][r][1];c>=0?(t[s][r][0]=l,t[s][r][1]=l+c,l=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},Lre={sign:kre,expand:bX,none:Jl,silhouette:xX,wiggle:wX,positive:$re},Ire=function(t,n,r){var i=n.map(function(c){return c.props.dataKey}),l=Lre[r],s=yX().keys(i).value(function(c,f){return+Xn(c,f,0)}).order(Xw).offset(l);return s(t)},zre=function(t,n,r,i,l,s){if(!t)return null;var c=s?n.reverse():n,f={},d=c.reduce(function(p,y){var x,O=(x=y.type)!==null&&x!==void 0&&x.defaultProps?At(At({},y.type.defaultProps),y.props):y.props,w=O.stackId,S=O.hide;if(S)return p;var E=O[r],T=p[E]||{hasStack:!1,stackGroups:{}};if(Gt(w)){var A=T.stackGroups[w]||{numericAxisId:r,cateAxisId:i,items:[]};A.items.push(y),T.hasStack=!0,T.stackGroups[w]=A}else T.stackGroups[cf("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[y]};return At(At({},p),{},Wl({},E,T))},f),m={};return Object.keys(d).reduce(function(p,y){var x=d[y];if(x.hasStack){var O={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(w,S){var E=x.stackGroups[S];return At(At({},w),{},Wl({},S,{numericAxisId:r,cateAxisId:i,items:E.items,stackedData:Ire(t,E.items,l)}))},O)}return At(At({},p),{},Wl({},y,x))},m)},Bre=function(t,n){var r=n.realScaleType,i=n.type,l=n.tickCount,s=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(l&&i==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var d=t.domain();if(!d.length)return null;var m=Qne(d,l,c);return t.domain([mm(m),pm(m)]),{niceTicks:m}}if(l&&i==="number"){var p=t.domain(),y=Zne(p,l,c);return{niceTicks:y}}return null};function nP(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,l=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!ze(i[t.dataKey])){var c=Eh(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[l]?n[l].coordinate+r/2:null}var f=Xn(i,ze(s)?t.dataKey:s);return ze(f)?null:t.scale(f)}var rP=function(t){var n=t.axis,r=t.ticks,i=t.offset,l=t.bandSize,s=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+i:null;var f=Xn(s,n.dataKey,n.domain[c]);return ze(f)?null:n.scale(f)-l/2+i},qre=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),l=Math.max(r[0],r[1]);return i<=0&&l>=0?0:l<0?l:i}return r[0]},Ure=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?At(At({},t.type.defaultProps),t.props):t.props,l=i.stackId;if(Gt(l)){var s=n[l];if(s){var c=s.items.indexOf(t);return c>=0?s.stackedData[c]:null}}return null},Hre=function(t){return t.reduce(function(n,r){return[mm(r.concat([n[0]]).filter(ye)),pm(r.concat([n[1]]).filter(ye))]},[1/0,-1/0])},tz=function(t,n,r){return Object.keys(t).reduce(function(i,l){var s=t[l],c=s.stackedData,f=c.reduce(function(d,m){var p=Hre(m.slice(n,r+1));return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},aP=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,iP=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,w1=function(t,n,r){if($e(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(ye(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(aP.test(t[0])){var l=+aP.exec(t[0])[1];i[0]=n[0]-l}else $e(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(ye(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(iP.test(t[1])){var s=+iP.exec(t[1])[1];i[1]=n[1]+s}else $e(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},Zh=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var l=bO(n,function(p){return p.coordinate}),s=1/0,c=1,f=l.length;c<f;c++){var d=l[c],m=l[c-1];s=Math.min((d.coordinate||0)-(m.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},oP=function(t,n,r){return!t||!t.length||vm(t,pr(r,"type.defaultProps.domain"))?n:t},nz=function(t,n){var r=t.type.defaultProps?At(At({},t.type.defaultProps),t.props):t.props,i=r.dataKey,l=r.name,s=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,m=r.hide;return At(At({},He(t,!1)),{},{dataKey:i,unit:s,formatter:c,name:l||i,color:GO(t),value:Xn(n,i),type:f,payload:n,chartType:d,hide:m})};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 lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function sP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(r){Fre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fre(e,t,n){return t=Gre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gre(e){var t=Vre(e,"string");return Cc(t)=="symbol"?t:t+""}function Vre(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 Jh=Math.PI/180,Yre=function(t){return t*180/Math.PI},sn=function(t,n,r,i){return{x:t+Math.cos(-Jh*i)*r,y:n+Math.sin(-Jh*i)*r}},Wre=function(t,n){var r=t.x,i=t.y,l=n.x,s=n.y;return Math.sqrt(Math.pow(r-l,2)+Math.pow(i-s,2))},Kre=function(t,n){var r=t.x,i=t.y,l=n.cx,s=n.cy,c=Wre({x:r,y:i},{x:l,y:s});if(c<=0)return{radius:c};var f=(r-l)/c,d=Math.acos(f);return i>s&&(d=2*Math.PI-d),{radius:c,angle:Yre(d),angleInRadian:d}},Xre=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),l=Math.floor(r/360),s=Math.min(i,l);return{startAngle:n-s*360,endAngle:r-s*360}},Qre=function(t,n){var r=n.startAngle,i=n.endAngle,l=Math.floor(r/360),s=Math.floor(i/360),c=Math.min(l,s);return t+c*360},uP=function(t,n){var r=t.x,i=t.y,l=Kre({x:r,y:i},n),s=l.radius,c=l.angle,f=n.innerRadius,d=n.outerRadius;if(s<f||s>d)return!1;if(s===0)return!0;var m=Xre(n),p=m.startAngle,y=m.endAngle,x=c,O;if(p<=y){for(;x>y;)x-=360;for(;x<p;)x+=360;O=x>=p&&x<=y}else{for(;x>p;)x-=360;for(;x<y;)x+=360;O=x>=y&&x<=p}return O?sP(sP({},n),{},{radius:s,angle:Qre(x,n)}):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)}var Zre=["offset"];function Jre(e){return rae(e)||nae(e)||tae(e)||eae()}function eae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
307
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tae(e,t){if(e){if(typeof e=="string")return S1(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 S1(e,t)}}function nae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rae(e){if(Array.isArray(e))return S1(e)}function S1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function aae(e,t){if(e==null)return{};var n=iae(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iae(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 cP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?cP(Object(n),!0).forEach(function(r){oae(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 oae(e,t,n){return t=lae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lae(e){var t=sae(e,"string");return Mc(t)=="symbol"?t:t+""}function sae(e,t){if(Mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nc(){return Nc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nc.apply(this,arguments)}var uae=function(t){var n=t.value,r=t.formatter,i=ze(t.children)?n:t.children;return $e(r)?r(i):i},cae=function(t,n){var r=Mr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},fae=function(t,n,r){var i=t.position,l=t.viewBox,s=t.offset,c=t.className,f=l,d=f.cx,m=f.cy,p=f.innerRadius,y=f.outerRadius,x=f.startAngle,O=f.endAngle,w=f.clockWise,S=(p+y)/2,E=cae(x,O),T=E>=0?1:-1,A,M;i==="insideStart"?(A=x+T*s,M=w):i==="insideEnd"?(A=O-T*s,M=!w):i==="end"&&(A=O+T*s,M=w),M=E<=0?M:!M;var j=sn(d,m,S,A),N=sn(d,m,S,A+(M?1:-1)*359),R="M".concat(j.x,",").concat(j.y,`
|
|
308
|
-
A`).concat(S,",").concat(S,",0,1,").concat(M?0:1,`,
|
|
309
|
-
`).concat(N.x,",").concat(N.y),P=ze(t.id)?cf("recharts-radial-line-"):t.id;return I.createElement("text",Nc({},r,{dominantBaseline:"central",className:Fe("recharts-radial-bar-label",c)}),I.createElement("defs",null,I.createElement("path",{id:P,d:R})),I.createElement("textPath",{xlinkHref:"#".concat(P)},n))},dae=function(t){var n=t.viewBox,r=t.offset,i=t.position,l=n,s=l.cx,c=l.cy,f=l.innerRadius,d=l.outerRadius,m=l.startAngle,p=l.endAngle,y=(m+p)/2;if(i==="outside"){var x=sn(s,c,d+r,y),O=x.x,w=x.y;return{x:O,y:w,textAnchor:O>=s?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:s,y:c,textAnchor:"middle",verticalAnchor:"end"};var S=(f+d)/2,E=sn(s,c,S,y),T=E.x,A=E.y;return{x:T,y:A,textAnchor:"middle",verticalAnchor:"middle"}},hae=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,l=t.position,s=n,c=s.x,f=s.y,d=s.width,m=s.height,p=m>=0?1:-1,y=p*i,x=p>0?"end":"start",O=p>0?"start":"end",w=d>=0?1:-1,S=w*i,E=w>0?"end":"start",T=w>0?"start":"end";if(l==="top"){var A={x:c+d/2,y:f-p*i,textAnchor:"middle",verticalAnchor:x};return Ht(Ht({},A),r?{height:Math.max(f-r.y,0),width:d}:{})}if(l==="bottom"){var M={x:c+d/2,y:f+m+y,textAnchor:"middle",verticalAnchor:O};return Ht(Ht({},M),r?{height:Math.max(r.y+r.height-(f+m),0),width:d}:{})}if(l==="left"){var j={x:c-S,y:f+m/2,textAnchor:E,verticalAnchor:"middle"};return Ht(Ht({},j),r?{width:Math.max(j.x-r.x,0),height:m}:{})}if(l==="right"){var N={x:c+d+S,y:f+m/2,textAnchor:T,verticalAnchor:"middle"};return Ht(Ht({},N),r?{width:Math.max(r.x+r.width-N.x,0),height:m}:{})}var R=r?{width:d,height:m}:{};return l==="insideLeft"?Ht({x:c+S,y:f+m/2,textAnchor:T,verticalAnchor:"middle"},R):l==="insideRight"?Ht({x:c+d-S,y:f+m/2,textAnchor:E,verticalAnchor:"middle"},R):l==="insideTop"?Ht({x:c+d/2,y:f+y,textAnchor:"middle",verticalAnchor:O},R):l==="insideBottom"?Ht({x:c+d/2,y:f+m-y,textAnchor:"middle",verticalAnchor:x},R):l==="insideTopLeft"?Ht({x:c+S,y:f+y,textAnchor:T,verticalAnchor:O},R):l==="insideTopRight"?Ht({x:c+d-S,y:f+y,textAnchor:E,verticalAnchor:O},R):l==="insideBottomLeft"?Ht({x:c+S,y:f+m-y,textAnchor:T,verticalAnchor:x},R):l==="insideBottomRight"?Ht({x:c+d-S,y:f+m-y,textAnchor:E,verticalAnchor:x},R):Ds(l)&&(ye(l.x)||mo(l.x))&&(ye(l.y)||mo(l.y))?Ht({x:c+To(l.x,d),y:f+To(l.y,m),textAnchor:"end",verticalAnchor:"end"},R):Ht({x:c+d/2,y:f+m/2,textAnchor:"middle",verticalAnchor:"middle"},R)},pae=function(t){return"cx"in t&&ye(t.cx)};function mn(e){var t=e.offset,n=t===void 0?5:t,r=aae(e,Zre),i=Ht({offset:n},r),l=i.viewBox,s=i.position,c=i.value,f=i.children,d=i.content,m=i.className,p=m===void 0?"":m,y=i.textBreakAll;if(!l||ze(c)&&ze(f)&&!_.isValidElement(d)&&!$e(d))return null;if(_.isValidElement(d))return _.cloneElement(d,i);var x;if($e(d)){if(x=_.createElement(d,i),_.isValidElement(x))return x}else x=uae(i);var O=pae(l),w=He(i,!0);if(O&&(s==="insideStart"||s==="insideEnd"||s==="end"))return fae(i,x,w);var S=O?dae(i):hae(i);return I.createElement(Ih,Nc({className:Fe("recharts-label",p)},w,S,{breakAll:y}),x)}mn.displayName="Label";var rz=function(t){var n=t.cx,r=t.cy,i=t.angle,l=t.startAngle,s=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,m=t.outerRadius,p=t.x,y=t.y,x=t.top,O=t.left,w=t.width,S=t.height,E=t.clockWise,T=t.labelViewBox;if(T)return T;if(ye(w)&&ye(S)){if(ye(p)&&ye(y))return{x:p,y,width:w,height:S};if(ye(x)&&ye(O))return{x,y:O,width:w,height:S}}return ye(p)&&ye(y)?{x:p,y,width:0,height:0}:ye(n)&&ye(r)?{cx:n,cy:r,startAngle:l||i||0,endAngle:s||i||0,innerRadius:d||0,outerRadius:m||f||c||0,clockWise:E}:t.viewBox?t.viewBox:{}},mae=function(t,n){return t?t===!0?I.createElement(mn,{key:"label-implicit",viewBox:n}):Gt(t)?I.createElement(mn,{key:"label-implicit",viewBox:n,value:t}):_.isValidElement(t)?t.type===mn?_.cloneElement(t,{key:"label-implicit",viewBox:n}):I.createElement(mn,{key:"label-implicit",content:t,viewBox:n}):$e(t)?I.createElement(mn,{key:"label-implicit",content:t,viewBox:n}):Ds(t)?I.createElement(mn,Nc({viewBox:n},t,{key:"label-implicit"})):null:null},vae=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 i=t.children,l=rz(t),s=mr(i,mn).map(function(f,d){return _.cloneElement(f,{viewBox:n||l,key:"label-".concat(d)})});if(!r)return s;var c=mae(t.label,n||l);return[c].concat(Jre(s))};mn.parseViewBox=rz;mn.renderCallByParent=vae;var Bx,fP;function gae(){if(fP)return Bx;fP=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Bx=e,Bx}var yae=gae();const bae=ut(yae);function Rc(e){"@babel/helpers - typeof";return Rc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rc(e)}var xae=["valueAccessor"],wae=["data","dataKey","clockWise","id","textBreakAll"];function Sae(e){return Aae(e)||Eae(e)||_ae(e)||Oae()}function Oae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
310
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _ae(e,t){if(e){if(typeof e=="string")return O1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return O1(e,t)}}function Eae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Aae(e){if(Array.isArray(e))return O1(e)}function O1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ep(){return ep=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},ep.apply(this,arguments)}function dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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){Tae(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 Tae(e,t,n){return t=jae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jae(e){var t=Cae(e,"string");return Rc(t)=="symbol"?t:t+""}function Cae(e,t){if(Rc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pP(e,t){if(e==null)return{};var n=Mae(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mae(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 Nae=function(t){return Array.isArray(t.value)?bae(t.value):t.value};function Ai(e){var t=e.valueAccessor,n=t===void 0?Nae:t,r=pP(e,xae),i=r.data,l=r.dataKey,s=r.clockWise,c=r.id,f=r.textBreakAll,d=pP(r,wae);return!i||!i.length?null:I.createElement(Ct,{className:"recharts-label-list"},i.map(function(m,p){var y=ze(l)?n(m,p):Xn(m&&m.payload,l),x=ze(c)?{}:{id:"".concat(c,"-").concat(p)};return I.createElement(mn,ep({},He(m,!0),d,x,{parentViewBox:m.parentViewBox,value:y,textBreakAll:f,viewBox:mn.parseViewBox(ze(s)?m:hP(hP({},m),{},{clockWise:s})),key:"label-".concat(p),index:p}))}))}Ai.displayName="LabelList";function Rae(e,t){return e?e===!0?I.createElement(Ai,{key:"labelList-implicit",data:t}):I.isValidElement(e)||$e(e)?I.createElement(Ai,{key:"labelList-implicit",data:t,content:e}):Ds(e)?I.createElement(Ai,ep({data:t},e,{key:"labelList-implicit"})):null:null}function Pae(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,i=mr(r,Ai).map(function(s,c){return _.cloneElement(s,{data:t,key:"labelList-".concat(c)})});if(!n)return i;var l=Rae(e.label,t);return[l].concat(Sae(i))}Ai.renderCallByParent=Pae;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 _1(){return _1=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},_1.apply(this,arguments)}function mP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vP(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){Dae(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 Dae(e,t,n){return t=kae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kae(e){var t=$ae(e,"string");return Pc(t)=="symbol"?t:t+""}function $ae(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 Lae=function(t,n){var r=Mr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Qd=function(t){var n=t.cx,r=t.cy,i=t.radius,l=t.angle,s=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,m=f*(c?1:-1)+i,p=Math.asin(f/m)/Jh,y=d?l:l+s*p,x=sn(n,r,m,y),O=sn(n,r,i,y),w=d?l-s*p:l,S=sn(n,r,m*Math.cos(p*Jh),w);return{center:x,circleTangency:O,lineTangency:S,theta:p}},az=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,l=t.outerRadius,s=t.startAngle,c=t.endAngle,f=Lae(s,c),d=s+f,m=sn(n,r,l,s),p=sn(n,r,l,d),y="M ".concat(m.x,",").concat(m.y,`
|
|
311
|
-
A `).concat(l,",").concat(l,`,0,
|
|
312
|
-
`).concat(+(Math.abs(f)>180),",").concat(+(s>d),`,
|
|
313
|
-
`).concat(p.x,",").concat(p.y,`
|
|
314
|
-
`);if(i>0){var x=sn(n,r,i,s),O=sn(n,r,i,d);y+="L ".concat(O.x,",").concat(O.y,`
|
|
315
|
-
A `).concat(i,",").concat(i,`,0,
|
|
316
|
-
`).concat(+(Math.abs(f)>180),",").concat(+(s<=d),`,
|
|
317
|
-
`).concat(x.x,",").concat(x.y," Z")}else y+="L ".concat(n,",").concat(r," Z");return y},Iae=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,l=t.outerRadius,s=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,m=t.endAngle,p=Mr(m-d),y=Qd({cx:n,cy:r,radius:l,angle:d,sign:p,cornerRadius:s,cornerIsExternal:f}),x=y.circleTangency,O=y.lineTangency,w=y.theta,S=Qd({cx:n,cy:r,radius:l,angle:m,sign:-p,cornerRadius:s,cornerIsExternal:f}),E=S.circleTangency,T=S.lineTangency,A=S.theta,M=f?Math.abs(d-m):Math.abs(d-m)-w-A;if(M<0)return c?"M ".concat(O.x,",").concat(O.y,`
|
|
318
|
-
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
319
|
-
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
320
|
-
`):az({cx:n,cy:r,innerRadius:i,outerRadius:l,startAngle:d,endAngle:m});var j="M ".concat(O.x,",").concat(O.y,`
|
|
321
|
-
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(x.x,",").concat(x.y,`
|
|
322
|
-
A`).concat(l,",").concat(l,",0,").concat(+(M>180),",").concat(+(p<0),",").concat(E.x,",").concat(E.y,`
|
|
323
|
-
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(T.x,",").concat(T.y,`
|
|
324
|
-
`);if(i>0){var N=Qd({cx:n,cy:r,radius:i,angle:d,sign:p,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),R=N.circleTangency,P=N.lineTangency,L=N.theta,Y=Qd({cx:n,cy:r,radius:i,angle:m,sign:-p,isExternal:!0,cornerRadius:s,cornerIsExternal:f}),z=Y.circleTangency,H=Y.lineTangency,V=Y.theta,Q=f?Math.abs(d-m):Math.abs(d-m)-L-V;if(Q<0&&s===0)return"".concat(j,"L").concat(n,",").concat(r,"Z");j+="L".concat(H.x,",").concat(H.y,`
|
|
325
|
-
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(z.x,",").concat(z.y,`
|
|
326
|
-
A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(p>0),",").concat(R.x,",").concat(R.y,`
|
|
327
|
-
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(P.x,",").concat(P.y,"Z")}else j+="L".concat(n,",").concat(r,"Z");return j},zae={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},iz=function(t){var n=vP(vP({},zae),t),r=n.cx,i=n.cy,l=n.innerRadius,s=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,m=n.startAngle,p=n.endAngle,y=n.className;if(s<l||m===p)return null;var x=Fe("recharts-sector",y),O=s-l,w=To(c,O,0,!0),S;return w>0&&Math.abs(m-p)<360?S=Iae({cx:r,cy:i,innerRadius:l,outerRadius:s,cornerRadius:Math.min(w,O/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:p}):S=az({cx:r,cy:i,innerRadius:l,outerRadius:s,startAngle:m,endAngle:p}),I.createElement("path",_1({},He(n,!0),{className:x,d:S,role:"img"}))};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 E1(){return E1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E1.apply(this,arguments)}function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?gP(Object(n),!0).forEach(function(r){Bae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bae(e,t,n){return t=qae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qae(e){var t=Uae(e,"string");return Dc(t)=="symbol"?t:t+""}function Uae(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 bP={curveBasisClosed:lX,curveBasisOpen:sX,curveBasis:oX,curveBumpX:VK,curveBumpY:YK,curveLinearClosed:uX,curveLinear:rm,curveMonotoneX:cX,curveMonotoneY:fX,curveNatural:dX,curveStep:hX,curveStepAfter:mX,curveStepBefore:pX},Zd=function(t){return t.x===+t.x&&t.y===+t.y},Fu=function(t){return t.x},Gu=function(t){return t.y},Hae=function(t,n){if($e(t))return t;var r="curve".concat(tm(t));return(r==="curveMonotone"||r==="curveBump")&&n?bP["".concat(r).concat(n==="vertical"?"Y":"X")]:bP[r]||rm},Fae=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,l=i===void 0?[]:i,s=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,m=Hae(r,c),p=d?l.filter(function(w){return Zd(w)}):l,y;if(Array.isArray(s)){var x=d?s.filter(function(w){return Zd(w)}):s,O=p.map(function(w,S){return yP(yP({},w),{},{base:x[S]})});return c==="vertical"?y=Hd().y(Gu).x1(Fu).x0(function(w){return w.base.x}):y=Hd().x(Fu).y1(Gu).y0(function(w){return w.base.y}),y.defined(Zd).curve(m),y(O)}return c==="vertical"&&ye(s)?y=Hd().y(Gu).x1(Fu).x0(s):ye(s)?y=Hd().x(Fu).y1(Gu).y0(s):y=u3().x(Fu).y(Gu),y.defined(Zd).curve(m),y(p)},A1=function(t){var n=t.className,r=t.points,i=t.path,l=t.pathRef;if((!r||!r.length)&&!i)return null;var s=r&&r.length?Fae(t):i;return _.createElement("path",E1({},He(t,!1),Ah(t),{className:Fe("recharts-curve",n),d:s,ref:l}))},qx={exports:{}},Ux,xP;function Gae(){if(xP)return Ux;xP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ux=e,Ux}var Hx,wP;function Vae(){if(wP)return Hx;wP=1;var e=Gae();function t(){}function n(){}return n.resetWarningCache=t,Hx=function(){function r(s,c,f,d,m,p){if(p!==e){var y=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 y.name="Invariant Violation",y}}r.isRequired=r;function i(){return r}var l={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return l.PropTypes=l,l},Hx}var SP;function Yae(){return SP||(SP=1,qx.exports=Vae()()),qx.exports}var Wae=Yae();const Je=ut(Wae);var Kae=Object.getOwnPropertyNames,Xae=Object.getOwnPropertySymbols,Qae=Object.prototype.hasOwnProperty;function OP(e,t){return function(r,i,l){return e(r,i,l)&&t(r,i,l)}}function Jd(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var l=i.cache,s=l.get(n),c=l.get(r);if(s&&c)return s===r&&c===n;l.set(n,r),l.set(r,n);var f=e(n,r,i);return l.delete(n),l.delete(r),f}}function Zae(e){return e!=null?e[Symbol.toStringTag]:void 0}function _P(e){return Kae(e).concat(Xae(e))}var Jae=Object.hasOwn||(function(e,t){return Qae.call(e,t)});function Io(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var eie="__v",tie="__o",nie="_owner",EP=Object.getOwnPropertyDescriptor,AP=Object.keys;function rie(e,t,n){var 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 aie(e,t){return Io(e.getTime(),t.getTime())}function iie(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function oie(e,t){return e===t}function TP(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),l=e.entries(),s,c,f=0;(s=l.next())&&!s.done;){for(var d=t.entries(),m=!1,p=0;(c=d.next())&&!c.done;){if(i[p]){p++;continue}var y=s.value,x=c.value;if(n.equals(y[0],x[0],f,p,e,t,n)&&n.equals(y[1],x[1],y[0],x[0],e,t,n)){m=i[p]=!0;break}p++}if(!m)return!1;f++}return!0}var lie=Io;function sie(e,t,n){var r=AP(e),i=r.length;if(AP(t).length!==i)return!1;for(;i-- >0;)if(!oz(e,t,n,r[i]))return!1;return!0}function Vu(e,t,n){var r=_P(e),i=r.length;if(_P(t).length!==i)return!1;for(var l,s,c;i-- >0;)if(l=r[i],!oz(e,t,n,l)||(s=EP(e,l),c=EP(t,l),(s||c)&&(!s||!c||s.configurable!==c.configurable||s.enumerable!==c.enumerable||s.writable!==c.writable)))return!1;return!0}function uie(e,t){return Io(e.valueOf(),t.valueOf())}function cie(e,t){return e.source===t.source&&e.flags===t.flags}function jP(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),l=e.values(),s,c;(s=l.next())&&!s.done;){for(var f=t.values(),d=!1,m=0;(c=f.next())&&!c.done;){if(!i[m]&&n.equals(s.value,c.value,s.value,c.value,e,t,n)){d=i[m]=!0;break}m++}if(!d)return!1}return!0}function fie(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function die(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 oz(e,t,n,r){return(r===nie||r===tie||r===eie)&&(e.$$typeof||t.$$typeof)?!0:Jae(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var hie="[object Arguments]",pie="[object Boolean]",mie="[object Date]",vie="[object Error]",gie="[object Map]",yie="[object Number]",bie="[object Object]",xie="[object RegExp]",wie="[object Set]",Sie="[object String]",Oie="[object URL]",_ie=Array.isArray,CP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,MP=Object.assign,Eie=Object.prototype.toString.call.bind(Object.prototype.toString);function Aie(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,l=e.areMapsEqual,s=e.areNumbersEqual,c=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,m=e.areSetsEqual,p=e.areTypedArraysEqual,y=e.areUrlsEqual,x=e.unknownTagComparators;return function(w,S,E){if(w===S)return!0;if(w==null||S==null)return!1;var T=typeof w;if(T!==typeof S)return!1;if(T!=="object")return T==="number"?s(w,S,E):T==="function"?i(w,S,E):!1;var A=w.constructor;if(A!==S.constructor)return!1;if(A===Object)return c(w,S,E);if(_ie(w))return t(w,S,E);if(CP!=null&&CP(w))return p(w,S,E);if(A===Date)return n(w,S,E);if(A===RegExp)return d(w,S,E);if(A===Map)return l(w,S,E);if(A===Set)return m(w,S,E);var M=Eie(w);if(M===mie)return n(w,S,E);if(M===xie)return d(w,S,E);if(M===gie)return l(w,S,E);if(M===wie)return m(w,S,E);if(M===bie)return typeof w.then!="function"&&typeof S.then!="function"&&c(w,S,E);if(M===Oie)return y(w,S,E);if(M===vie)return r(w,S,E);if(M===hie)return c(w,S,E);if(M===pie||M===yie||M===Sie)return f(w,S,E);if(x){var j=x[M];if(!j){var N=Zae(w);N&&(j=x[N])}if(j)return j(w,S,E)}return!1}}function Tie(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Vu:rie,areDatesEqual:aie,areErrorsEqual:iie,areFunctionsEqual:oie,areMapsEqual:r?OP(TP,Vu):TP,areNumbersEqual:lie,areObjectsEqual:r?Vu:sie,arePrimitiveWrappersEqual:uie,areRegExpsEqual:cie,areSetsEqual:r?OP(jP,Vu):jP,areTypedArraysEqual:r?Vu:fie,areUrlsEqual:die,unknownTagComparators:void 0};if(n&&(i=MP({},i,n(i))),t){var l=Jd(i.areArraysEqual),s=Jd(i.areMapsEqual),c=Jd(i.areObjectsEqual),f=Jd(i.areSetsEqual);i=MP({},i,{areArraysEqual:l,areMapsEqual:s,areObjectsEqual:c,areSetsEqual:f})}return i}function jie(e){return function(t,n,r,i,l,s,c){return e(t,n,c)}}function Cie(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,l=e.strict;if(r)return function(f,d){var m=r(),p=m.cache,y=p===void 0?t?new WeakMap:void 0:p,x=m.meta;return n(f,d,{cache:y,equals:i,meta:x,strict:l})};if(t)return function(f,d){return n(f,d,{cache:new WeakMap,equals:i,meta:void 0,strict:l})};var s={cache:void 0,equals:i,meta:void 0,strict:l};return function(f,d){return n(f,d,s)}}var Mie=Li();Li({strict:!0});Li({circular:!0});Li({circular:!0,strict:!0});Li({createInternalComparator:function(){return Io}});Li({strict:!0,createInternalComparator:function(){return Io}});Li({circular:!0,createInternalComparator:function(){return Io}});Li({circular:!0,createInternalComparator:function(){return Io},strict:!0});function Li(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,l=e.strict,s=l===void 0?!1:l,c=Tie(e),f=Aie(c),d=r?r(f):jie(f);return Cie({circular:n,comparator:f,createState:i,equals:d,strict:s})}function Nie(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function NP(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(l){n<0&&(n=l),l-n>t?(e(l),n=-1):Nie(i)};requestAnimationFrame(r)}function T1(e){"@babel/helpers - typeof";return T1=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},T1(e)}function Rie(e){return $ie(e)||kie(e)||Die(e)||Pie()}function Pie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
328
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Die(e,t){if(e){if(typeof e=="string")return RP(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 RP(e,t)}}function RP(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 kie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ie(e){if(Array.isArray(e))return e}function Lie(){var e={},t=function(){return null},n=!1,r=function i(l){if(!n){if(Array.isArray(l)){if(!l.length)return;var s=l,c=Rie(s),f=c[0],d=c.slice(1);if(typeof f=="number"){NP(i.bind(null,d),f);return}i(f),NP(i.bind(null,d));return}T1(l)==="object"&&(e=l,t(e)),typeof l=="function"&&l()}};return{stop:function(){n=!0},start:function(l){n=!1,r(l)},subscribe:function(l){return t=l,function(){t=function(){return null}}}}}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 PP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PP(Object(n),!0).forEach(function(r){lz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lz(e,t,n){return t=Iie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iie(e){var t=zie(e,"string");return kc(t)==="symbol"?t:String(t)}function zie(e,t){if(kc(e)!=="object"||e===null)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 Bie=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(l){return i.includes(l)})})},qie=function(t){return t},Uie=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},ac=function(t,n){return Object.keys(n).reduce(function(r,i){return DP(DP({},r),{},lz({},i,t(i,n[i])))},{})},kP=function(t,n,r){return t.map(function(i){return"".concat(Uie(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Hie(e,t){return Vie(e)||Gie(e,t)||sz(e,t)||Fie()}function Fie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
329
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Gie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Vie(e){if(Array.isArray(e))return e}function Yie(e){return Xie(e)||Kie(e)||sz(e)||Wie()}function Wie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
330
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sz(e,t){if(e){if(typeof e=="string")return j1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j1(e,t)}}function Kie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Xie(e){if(Array.isArray(e))return j1(e)}function j1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var tp=1e-4,uz=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},cz=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},$P=function(t,n){return function(r){var i=uz(t,n);return cz(i,r)}},Qie=function(t,n){return function(r){var i=uz(t,n),l=[].concat(Yie(i.map(function(s,c){return s*c}).slice(1)),[0]);return cz(l,r)}},LP=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],l=n[1],s=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,l=0,s=1,c=1;break;case"ease":i=.25,l=.1,s=.25,c=1;break;case"ease-in":i=.42,l=0,s=1,c=1;break;case"ease-out":i=.42,l=0,s=.58,c=1;break;case"ease-in-out":i=0,l=0,s=.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(S){return parseFloat(S)}),m=Hie(d,4);i=m[0],l=m[1],s=m[2],c=m[3]}}}var p=$P(i,s),y=$P(l,c),x=Qie(i,s),O=function(E){return E>1?1:E<0?0:E},w=function(E){for(var T=E>1?1:E,A=T,M=0;M<8;++M){var j=p(A)-T,N=x(A);if(Math.abs(j-T)<tp||N<tp)return y(A);A=O(A-j/N)}return y(A)};return w.isStepper=!1,w},Zie=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,l=i===void 0?8:i,s=t.dt,c=s===void 0?17:s,f=function(m,p,y){var x=-(m-p)*r,O=y*l,w=y+(x-O)*c/1e3,S=y*c/1e3+m;return Math.abs(S-p)<tp&&Math.abs(w)<tp?[p,0]:[S,w]};return f.isStepper=!0,f.dt=c,f},Jie=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return LP(i);case"spring":return Zie();default:if(i.split("(")[0]==="cubic-bezier")return LP(i)}return typeof i=="function"?i:null};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 IP(e){return noe(e)||toe(e)||fz(e)||eoe()}function eoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
331
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function toe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function noe(e){if(Array.isArray(e))return M1(e)}function zP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?zP(Object(n),!0).forEach(function(r){C1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C1(e,t,n){return t=roe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function roe(e){var t=aoe(e,"string");return $c(t)==="symbol"?t:String(t)}function aoe(e,t){if($c(e)!=="object"||e===null)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 ioe(e,t){return soe(e)||loe(e,t)||fz(e,t)||ooe()}function ooe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
332
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fz(e,t){if(e){if(typeof e=="string")return M1(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 M1(e,t)}}function M1(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 loe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function soe(e){if(Array.isArray(e))return e}var np=function(t,n,r){return t+(n-t)*r},N1=function(t){var n=t.from,r=t.to;return n!==r},uoe=function e(t,n,r){var i=ac(function(l,s){if(N1(s)){var c=t(s.from,s.to,s.velocity),f=ioe(c,2),d=f[0],m=f[1];return on(on({},s),{},{from:d,velocity:m})}return s},n);return r<1?ac(function(l,s){return N1(s)?on(on({},s),{},{velocity:np(s.velocity,i[l].velocity,r),from:np(s.from,i[l].from,r)}):s},n):e(t,i,r-1)};const coe=(function(e,t,n,r,i){var l=Bie(e,t),s=l.reduce(function(S,E){return on(on({},S),{},C1({},E,[e[E],t[E]]))},{}),c=l.reduce(function(S,E){return on(on({},S),{},C1({},E,{from:e[E],velocity:0,to:t[E]}))},{}),f=-1,d,m,p=function(){return null},y=function(){return ac(function(E,T){return T.from},c)},x=function(){return!Object.values(c).filter(N1).length},O=function(E){d||(d=E);var T=E-d,A=T/n.dt;c=uoe(n,c,A),i(on(on(on({},e),t),y())),d=E,x()||(f=requestAnimationFrame(p))},w=function(E){m||(m=E);var T=(E-m)/r,A=ac(function(j,N){return np.apply(void 0,IP(N).concat([n(T)]))},s);if(i(on(on(on({},e),t),A)),T<1)f=requestAnimationFrame(p);else{var M=ac(function(j,N){return np.apply(void 0,IP(N).concat([n(1)]))},s);i(on(on(on({},e),t),M))}};return p=n.isStepper?O:w,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}});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)}var foe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function doe(e,t){if(e==null)return{};var n=hoe(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,l;for(l=0;l<r.length;l++)i=r[l],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Fx(e){return goe(e)||voe(e)||moe(e)||poe()}function poe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
333
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function moe(e,t){if(e){if(typeof e=="string")return R1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return R1(e,t)}}function voe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function goe(e){if(Array.isArray(e))return R1(e)}function R1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function BP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _r(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BP(Object(n),!0).forEach(function(r){Zu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zu(e,t,n){return t=dz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function yoe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function boe(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,dz(r.key),r)}}function xoe(e,t,n){return t&&boe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dz(e){var t=woe(e,"string");return ss(t)==="symbol"?t:String(t)}function woe(e,t){if(ss(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ss(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Soe(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&&P1(e,t)}function P1(e,t){return P1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},P1(e,t)}function Ooe(e){var t=_oe();return function(){var r=rp(e),i;if(t){var l=rp(this).constructor;i=Reflect.construct(r,arguments,l)}else i=r.apply(this,arguments);return D1(this,i)}}function D1(e,t){if(t&&(ss(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return k1(e)}function k1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _oe(){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 rp(e){return rp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},rp(e)}var Ua=(function(e){Soe(n,e);var t=Ooe(n);function n(r,i){var l;yoe(this,n),l=t.call(this,r,i);var s=l.props,c=s.isActive,f=s.attributeName,d=s.from,m=s.to,p=s.steps,y=s.children,x=s.duration;if(l.handleStyleChange=l.handleStyleChange.bind(k1(l)),l.changeStyle=l.changeStyle.bind(k1(l)),!c||x<=0)return l.state={style:{}},typeof y=="function"&&(l.state={style:m}),D1(l);if(p&&p.length)l.state={style:p[0].style};else if(d){if(typeof y=="function")return l.state={style:d},D1(l);l.state={style:f?Zu({},f,d):d}}else l.state={style:{}};return l}return xoe(n,[{key:"componentDidMount",value:function(){var i=this.props,l=i.isActive,s=i.canBegin;this.mounted=!0,!(!l||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var l=this.props,s=l.isActive,c=l.canBegin,f=l.attributeName,d=l.shouldReAnimate,m=l.to,p=l.from,y=this.state.style;if(c){if(!s){var x={style:f?Zu({},f,m):m};this.state&&y&&(f&&y[f]!==m||!f&&y!==m)&&this.setState(x);return}if(!(Mie(i.to,m)&&i.canBegin&&i.isActive)){var O=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=O||d?p:i.to;if(this.state&&y){var S={style:f?Zu({},f,w):w};(f&&y[f]!==w||!f&&y!==w)&&this.setState(S)}this.runAnimation(_r(_r({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var l=this,s=i.from,c=i.to,f=i.duration,d=i.easing,m=i.begin,p=i.onAnimationEnd,y=i.onAnimationStart,x=coe(s,c,Jie(d),f,this.changeStyle),O=function(){l.stopJSAnimation=x()};this.manager.start([y,m,O,f,p])}},{key:"runStepAnimation",value:function(i){var l=this,s=i.steps,c=i.begin,f=i.onAnimationStart,d=s[0],m=d.style,p=d.duration,y=p===void 0?0:p,x=function(w,S,E){if(E===0)return w;var T=S.duration,A=S.easing,M=A===void 0?"ease":A,j=S.style,N=S.properties,R=S.onAnimationEnd,P=E>0?s[E-1]:S,L=N||Object.keys(j);if(typeof M=="function"||M==="spring")return[].concat(Fx(w),[l.runJSAnimation.bind(l,{from:P.style,to:j,duration:T,easing:M}),T]);var Y=kP(L,T,M),z=_r(_r(_r({},P.style),j),{},{transition:Y});return[].concat(Fx(w),[z,T,R]).filter(qie)};return this.manager.start([f].concat(Fx(s.reduce(x,[m,Math.max(y,c)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Lie());var l=i.begin,s=i.duration,c=i.attributeName,f=i.to,d=i.easing,m=i.onAnimationStart,p=i.onAnimationEnd,y=i.steps,x=i.children,O=this.manager;if(this.unSubscribe=O.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(i);return}if(y.length>1){this.runStepAnimation(i);return}var w=c?Zu({},c,f):f,S=kP(Object.keys(w),s,d);O.start([m,l,_r(_r({},w),{},{transition:S}),s,p])}},{key:"render",value:function(){var i=this.props,l=i.children;i.begin;var s=i.duration;i.attributeName,i.easing;var c=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=doe(i,foe),d=_.Children.count(l),m=this.state.style;if(typeof l=="function")return l(m);if(!c||d===0||s<=0)return l;var p=function(x){var O=x.props,w=O.style,S=w===void 0?{}:w,E=O.className,T=_.cloneElement(x,_r(_r({},f),{},{style:_r(_r({},S),m),className:E}));return T};return d===1?p(_.Children.only(l)):I.createElement("div",null,_.Children.map(l,function(y){return p(y)}))}}]),n})(_.PureComponent);Ua.displayName="Animate";Ua.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ua.propTypes={from:Je.oneOfType([Je.object,Je.string]),to:Je.oneOfType([Je.object,Je.string]),attributeName:Je.string,duration:Je.number,begin:Je.number,easing:Je.oneOfType([Je.string,Je.func]),steps:Je.arrayOf(Je.shape({duration:Je.number.isRequired,style:Je.object.isRequired,easing:Je.oneOfType([Je.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),Je.func]),properties:Je.arrayOf("string"),onAnimationEnd:Je.func})),children:Je.oneOfType([Je.node,Je.func]),isActive:Je.bool,canBegin:Je.bool,onAnimationEnd:Je.func,shouldReAnimate:Je.bool,onAnimationStart:Je.func,onAnimationReStart:Je.func};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 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 Eoe(e,t){return Coe(e)||joe(e,t)||Toe(e,t)||Aoe()}function Aoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
334
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Toe(e,t){if(e){if(typeof e=="string")return qP(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 qP(e,t)}}function qP(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 joe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Coe(e){if(Array.isArray(e))return e}function UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?UP(Object(n),!0).forEach(function(r){Moe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Moe(e,t,n){return t=Noe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Noe(e){var t=Roe(e,"string");return Lc(t)=="symbol"?t:t+""}function Roe(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)}var FP=function(t,n,r,i,l){var s=Math.min(Math.abs(r)/2,Math.abs(i)/2),c=i>=0?1:-1,f=r>=0?1:-1,d=i>=0&&r>=0||i<0&&r<0?1:0,m;if(s>0&&l instanceof Array){for(var p=[0,0,0,0],y=0,x=4;y<x;y++)p[y]=l[y]>s?s:l[y];m="M".concat(t,",").concat(n+c*p[0]),p[0]>0&&(m+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(d,",").concat(t+f*p[0],",").concat(n)),m+="L ".concat(t+r-f*p[1],",").concat(n),p[1]>0&&(m+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(d,`,
|
|
335
|
-
`).concat(t+r,",").concat(n+c*p[1])),m+="L ".concat(t+r,",").concat(n+i-c*p[2]),p[2]>0&&(m+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(d,`,
|
|
336
|
-
`).concat(t+r-f*p[2],",").concat(n+i)),m+="L ".concat(t+f*p[3],",").concat(n+i),p[3]>0&&(m+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(d,`,
|
|
337
|
-
`).concat(t,",").concat(n+i-c*p[3])),m+="Z"}else if(s>0&&l===+l&&l>0){var O=Math.min(s,l);m="M ".concat(t,",").concat(n+c*O,`
|
|
338
|
-
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+f*O,",").concat(n,`
|
|
339
|
-
L `).concat(t+r-f*O,",").concat(n,`
|
|
340
|
-
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*O,`
|
|
341
|
-
L `).concat(t+r,",").concat(n+i-c*O,`
|
|
342
|
-
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r-f*O,",").concat(n+i,`
|
|
343
|
-
L `).concat(t+f*O,",").concat(n+i,`
|
|
344
|
-
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t,",").concat(n+i-c*O," Z")}else m="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return m},Poe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,l=n.x,s=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(l,l+c),m=Math.max(l,l+c),p=Math.min(s,s+f),y=Math.max(s,s+f);return r>=d&&r<=m&&i>=p&&i<=y}return!1},Doe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},VO=function(t){var n=HP(HP({},Doe),t),r=_.useRef(),i=_.useState(-1),l=Eoe(i,2),s=l[0],c=l[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var M=r.current.getTotalLength();M&&c(M)}catch{}},[]);var f=n.x,d=n.y,m=n.width,p=n.height,y=n.radius,x=n.className,O=n.animationEasing,w=n.animationDuration,S=n.animationBegin,E=n.isAnimationActive,T=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||m===0||p===0)return null;var A=Fe("recharts-rectangle",x);return T?I.createElement(Ua,{canBegin:s>0,from:{width:m,height:p,x:f,y:d},to:{width:m,height:p,x:f,y:d},duration:w,animationEasing:O,isActive:T},function(M){var j=M.width,N=M.height,R=M.x,P=M.y;return I.createElement(Ua,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,isActive:E,easing:O},I.createElement("path",ap({},He(n,!0),{className:A,d:FP(R,P,j,N,y),ref:r})))}):I.createElement("path",ap({},He(n,!0),{className:A,d:FP(f,d,m,p,y)}))};function $1(){return $1=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},$1.apply(this,arguments)}var YO=function(t){var n=t.cx,r=t.cy,i=t.r,l=t.className,s=Fe("recharts-dot",l);return n===+n&&r===+r&&i===+i?_.createElement("circle",$1({},He(t,!1),Ah(t),{className:s,cx:n,cy:r,r:i})):null};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)}var koe=["x","y","top","left","width","height","className"];function L1(){return L1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},L1.apply(this,arguments)}function GP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function $oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GP(Object(n),!0).forEach(function(r){Loe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Loe(e,t,n){return t=Ioe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ioe(e){var t=zoe(e,"string");return Ic(t)=="symbol"?t:t+""}function zoe(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 Boe(e,t){if(e==null)return{};var n=qoe(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function qoe(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 Uoe=function(t,n,r,i,l,s){return"M".concat(t,",").concat(l,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},Hoe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,l=i===void 0?0:i,s=t.top,c=s===void 0?0:s,f=t.left,d=f===void 0?0:f,m=t.width,p=m===void 0?0:m,y=t.height,x=y===void 0?0:y,O=t.className,w=Boe(t,koe),S=$oe({x:r,y:l,top:c,left:d,width:p,height:x},w);return!ye(r)||!ye(l)||!ye(p)||!ye(x)||!ye(c)||!ye(d)?null:I.createElement("path",L1({},He(S,!0),{className:Fe("recharts-cross",O),d:Uoe(r,l,p,x,c,d)}))},Gx,VP;function Foe(){if(VP)return Gx;VP=1;var e=R3(),t=e(Object.getPrototypeOf,Object);return Gx=t,Gx}var Vx,YP;function Goe(){if(YP)return Vx;YP=1;var e=Ha(),t=Foe(),n=Fa(),r="[object Object]",i=Function.prototype,l=Object.prototype,s=i.toString,c=l.hasOwnProperty,f=s.call(Object);function d(m){if(!n(m)||e(m)!=r)return!1;var p=t(m);if(p===null)return!0;var y=c.call(p,"constructor")&&p.constructor;return typeof y=="function"&&y instanceof y&&s.call(y)==f}return Vx=d,Vx}var Voe=Goe();const Yoe=ut(Voe);var Yx,WP;function Woe(){if(WP)return Yx;WP=1;var e=Ha(),t=Fa(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return Yx=r,Yx}var Koe=Woe();const Xoe=ut(Koe);function zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}function ip(){return ip=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},ip.apply(this,arguments)}function Qoe(e,t){return tle(e)||ele(e,t)||Joe(e,t)||Zoe()}function Zoe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
345
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Joe(e,t){if(e){if(typeof e=="string")return KP(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 KP(e,t)}}function KP(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 ele(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function tle(e){if(Array.isArray(e))return e}function XP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function QP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?XP(Object(n),!0).forEach(function(r){nle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):XP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nle(e,t,n){return t=rle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rle(e){var t=ale(e,"string");return zc(t)=="symbol"?t:t+""}function ale(e,t){if(zc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var ZP=function(t,n,r,i,l){var s=r-i,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-s/2,",").concat(n+l),c+="L ".concat(t+r-s/2-i,",").concat(n+l),c+="L ".concat(t,",").concat(n," Z"),c},ile={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},ole=function(t){var n=QP(QP({},ile),t),r=_.useRef(),i=_.useState(-1),l=Qoe(i,2),s=l[0],c=l[1];_.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var A=r.current.getTotalLength();A&&c(A)}catch{}},[]);var f=n.x,d=n.y,m=n.upperWidth,p=n.lowerWidth,y=n.height,x=n.className,O=n.animationEasing,w=n.animationDuration,S=n.animationBegin,E=n.isUpdateAnimationActive;if(f!==+f||d!==+d||m!==+m||p!==+p||y!==+y||m===0&&p===0||y===0)return null;var T=Fe("recharts-trapezoid",x);return E?I.createElement(Ua,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:y,x:f,y:d},to:{upperWidth:m,lowerWidth:p,height:y,x:f,y:d},duration:w,animationEasing:O,isActive:E},function(A){var M=A.upperWidth,j=A.lowerWidth,N=A.height,R=A.x,P=A.y;return I.createElement(Ua,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,easing:O},I.createElement("path",ip({},He(n,!0),{className:T,d:ZP(R,P,M,j,N),ref:r})))}):I.createElement("g",null,I.createElement("path",ip({},He(n,!0),{className:T,d:ZP(f,d,m,p,y)})))},lle=["option","shapeType","propTransformer","activeClassName","isActive"];function Bc(e){"@babel/helpers - typeof";return Bc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Bc(e)}function sle(e,t){if(e==null)return{};var n=ule(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ule(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 JP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?JP(Object(n),!0).forEach(function(r){cle(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 cle(e,t,n){return t=fle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fle(e){var t=dle(e,"string");return Bc(t)=="symbol"?t:t+""}function dle(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 hle(e,t){return op(op({},t),e)}function ple(e,t){return e==="symbols"}function eD(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return I.createElement(VO,n);case"trapezoid":return I.createElement(ole,n);case"sector":return I.createElement(iz,n);case"symbols":if(ple(t))return I.createElement(fO,n);break;default:return null}}function mle(e){return _.isValidElement(e)?e.props:e}function vle(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?hle:r,l=e.activeClassName,s=l===void 0?"recharts-active-shape":l,c=e.isActive,f=sle(e,lle),d;if(_.isValidElement(t))d=_.cloneElement(t,op(op({},f),mle(t)));else if($e(t))d=t(f);else if(Yoe(t)&&!Xoe(t)){var m=i(t,f);d=I.createElement(eD,{shapeType:n,elementProps:m})}else{var p=f;d=I.createElement(eD,{shapeType:n,elementProps:p})}return c?I.createElement(Ct,{className:s},d):d}function bm(e,t){return t!=null&&"trapezoids"in e.props}function xm(e,t){return t!=null&&"sectors"in e.props}function qc(e,t){return t!=null&&"points"in e.props}function gle(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,l=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&l}function yle(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function ble(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function xle(e,t){var n;return bm(e,t)?n=gle:xm(e,t)?n=yle:qc(e,t)&&(n=ble),n}function wle(e,t){var n;return bm(e,t)?n="trapezoids":xm(e,t)?n="sectors":qc(e,t)&&(n="points"),n}function Sle(e,t){if(bm(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(xm(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 qc(e,t)?t.payload:{}}function Ole(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=wle(n,t),l=Sle(n,t),s=r.filter(function(f,d){var m=vm(l,f),p=n.props[i].filter(function(O){var w=xle(n,t);return w(O,t)}),y=n.props[i].indexOf(p[p.length-1]),x=d===y;return m&&x}),c=r.indexOf(s[s.length-1]);return c}var Wx,tD;function _le(){if(tD)return Wx;tD=1;var e=Math.ceil,t=Math.max;function n(r,i,l,s){for(var c=-1,f=t(e((i-r)/(l||1)),0),d=Array(f);f--;)d[s?f:++c]=r,r+=l;return d}return Wx=n,Wx}var Kx,nD;function hz(){if(nD)return Kx;nD=1;var e=W3(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var l=i<0?-1:1;return l*n}return i===i?i:0}return Kx=r,Kx}var Xx,rD;function Ele(){if(rD)return Xx;rD=1;var e=_le(),t=lm(),n=hz();function r(i){return function(l,s,c){return c&&typeof c!="number"&&t(l,s,c)&&(s=c=void 0),l=n(l),s===void 0?(s=l,l=0):s=n(s),c=c===void 0?l<s?1:-1:n(c),e(l,s,c,i)}}return Xx=r,Xx}var Qx,aD;function Ale(){if(aD)return Qx;aD=1;var e=Ele(),t=e();return Qx=t,Qx}var Tle=Ale();const lp=ut(Tle);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 iD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function oD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iD(Object(n),!0).forEach(function(r){pz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pz(e,t,n){return t=jle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jle(e){var t=Cle(e,"string");return Uc(t)=="symbol"?t:t+""}function Cle(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)}var Mle=["Webkit","Moz","O","ms"],Nle=function(t,n){var r=t.replace(/(\w)/,function(l){return l.toUpperCase()}),i=Mle.reduce(function(l,s){return oD(oD({},l),{},pz({},s+r,n))},{});return i[t]=n,i};function us(e){"@babel/helpers - typeof";return us=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},us(e)}function sp(){return sp=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},sp.apply(this,arguments)}function lD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lD(Object(n),!0).forEach(function(r){Gn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sD(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,vz(r.key),r)}}function Ple(e,t,n){return t&&sD(e.prototype,t),n&&sD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dle(e,t,n){return t=up(t),kle(e,mz()?Reflect.construct(t,n||[],up(e).constructor):t.apply(e,n))}function kle(e,t){if(t&&(us(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return $le(e)}function $le(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mz=function(){return!!e})()}function up(e){return up=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},up(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&&I1(e,t)}function I1(e,t){return I1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},I1(e,t)}function Gn(e,t,n){return t=vz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vz(e){var t=Ile(e,"string");return us(t)=="symbol"?t:t+""}function Ile(e,t){if(us(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(us(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zle=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,l=t.x,s=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=nc().domain(lp(0,f)).range([l,l+s-c]),m=d.domain().map(function(p){return d(p)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:d(r),endX:d(i),scale:d,scaleValues:m}},uD=function(t){return t.changedTouches&&!!t.changedTouches.length},cs=(function(e){function t(n){var r;return Rle(this,t),r=Dle(this,t,[n]),Gn(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Gn(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Gn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,l=i.endIndex,s=i.onDragEnd,c=i.startIndex;s==null||s({endIndex:l,startIndex:c})}),r.detachDragEndListener()}),Gn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Gn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Gn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Gn(r,"handleSlideDragStart",function(i){var l=uD(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:l.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Lle(t,e),Ple(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,l=r.endX,s=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,m=d.length-1,p=Math.min(i,l),y=Math.max(i,l),x=t.getIndexInRange(s,p),O=t.getIndexInRange(s,y);return{startIndex:x-x%f,endIndex:O===m?m:O-O%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,l=i.data,s=i.tickFormatter,c=i.dataKey,f=Xn(l[r],c,r);return $e(s)?s(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 i=this.state,l=i.slideMoveStartX,s=i.startX,c=i.endX,f=this.props,d=f.x,m=f.width,p=f.travellerWidth,y=f.startIndex,x=f.endIndex,O=f.onChange,w=r.pageX-l;w>0?w=Math.min(w,d+m-p-c,d+m-p-s):w<0&&(w=Math.max(w,d-s,d-c));var S=this.getIndex({startX:s+w,endX:c+w});(S.startIndex!==y||S.endIndex!==x)&&O&&O(S),this.setState({startX:s+w,endX:c+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var l=uD(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:l.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,l=i.brushMoveStartX,s=i.movingTravellerId,c=i.endX,f=i.startX,d=this.state[s],m=this.props,p=m.x,y=m.width,x=m.travellerWidth,O=m.onChange,w=m.gap,S=m.data,E={startX:this.state.startX,endX:this.state.endX},T=r.pageX-l;T>0?T=Math.min(T,p+y-x-d):T<0&&(T=Math.max(T,p-d)),E[s]=d+T;var A=this.getIndex(E),M=A.startIndex,j=A.endIndex,N=function(){var P=S.length-1;return s==="startX"&&(c>f?M%w===0:j%w===0)||c<f&&j===P||s==="endX"&&(c>f?j%w===0:M%w===0)||c>f&&j===P};this.setState(Gn(Gn({},s,d+T),"brushMoveStartX",r.pageX),function(){O&&N()&&O(A)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var l=this,s=this.state,c=s.scaleValues,f=s.startX,d=s.endX,m=this.state[i],p=c.indexOf(m);if(p!==-1){var y=p+r;if(!(y===-1||y>=c.length)){var x=c[y];i==="startX"&&x>=d||i==="endX"&&x<=f||this.setState(Gn({},i,x),function(){l.props.onChange(l.getIndex({startX:l.state.startX,endX:l.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,l=r.y,s=r.width,c=r.height,f=r.fill,d=r.stroke;return I.createElement("rect",{stroke:d,fill:f,x:i,y:l,width:s,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,l=r.y,s=r.width,c=r.height,f=r.data,d=r.children,m=r.padding,p=_.Children.only(d);return p?I.cloneElement(p,{x:i,y:l,width:s,height:c,margin:m,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var l,s,c=this,f=this.props,d=f.y,m=f.travellerWidth,p=f.height,y=f.traveller,x=f.ariaLabel,O=f.data,w=f.startIndex,S=f.endIndex,E=Math.max(r,this.props.x),T=Zx(Zx({},He(this.props,!1)),{},{x:E,y:d,width:m,height:p}),A=x||"Min value: ".concat((l=O[w])===null||l===void 0?void 0:l.name,", Max value: ").concat((s=O[S])===null||s===void 0?void 0:s.name);return I.createElement(Ct,{tabIndex:0,role:"slider","aria-label":A,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(j){["ArrowLeft","ArrowRight"].includes(j.key)&&(j.preventDefault(),j.stopPropagation(),c.handleTravellerMoveKeyboard(j.key==="ArrowRight"?1:-1,i))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(y,T))}},{key:"renderSlide",value:function(r,i){var l=this.props,s=l.y,c=l.height,f=l.stroke,d=l.travellerWidth,m=Math.min(r,i)+d,p=Math.max(Math.abs(i-r)-d,0);return I.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:s,width:p,height:c})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,l=r.endIndex,s=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,m=this.state,p=m.startX,y=m.endX,x=5,O={pointerEvents:"none",fill:d};return I.createElement(Ct,{className:"recharts-brush-texts"},I.createElement(Ih,sp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,y)-x,y:s+c/2},O),this.getTextOfTick(i)),I.createElement(Ih,sp({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,y)+f+x,y:s+c/2},O),this.getTextOfTick(l)))}},{key:"render",value:function(){var r=this.props,i=r.data,l=r.className,s=r.children,c=r.x,f=r.y,d=r.width,m=r.height,p=r.alwaysShowText,y=this.state,x=y.startX,O=y.endX,w=y.isTextActive,S=y.isSlideMoving,E=y.isTravellerMoving,T=y.isTravellerFocused;if(!i||!i.length||!ye(c)||!ye(f)||!ye(d)||!ye(m)||d<=0||m<=0)return null;var A=Fe("recharts-brush",l),M=I.Children.count(s)===1,j=Nle("userSelect","none");return I.createElement(Ct,{className:A,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:j},this.renderBackground(),M&&this.renderPanorama(),this.renderSlide(x,O),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(O,"endX"),(w||S||E||T||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,l=r.y,s=r.width,c=r.height,f=r.stroke,d=Math.floor(l+c/2)-1;return I.createElement(I.Fragment,null,I.createElement("rect",{x:i,y:l,width:s,height:c,fill:f,stroke:"none"}),I.createElement("line",{x1:i+1,y1:d,x2:i+s-1,y2:d,fill:"none",stroke:"#fff"}),I.createElement("line",{x1:i+1,y1:d+2,x2:i+s-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var l;return I.isValidElement(r)?l=I.cloneElement(r,i):$e(r)?l=r(i):l=t.renderDefaultTraveller(i),l}},{key:"getDerivedStateFromProps",value:function(r,i){var l=r.data,s=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,m=r.startIndex,p=r.endIndex;if(l!==i.prevData||d!==i.prevUpdateId)return Zx({prevData:l,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s},l&&l.length?zle({data:l,width:s,x:c,travellerWidth:f,startIndex:m,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(s!==i.prevWidth||c!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([c,c+s-f]);var y=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:l,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:y}}return null}},{key:"getIndexInRange",value:function(r,i){for(var l=r.length,s=0,c=l-1;c-s>1;){var f=Math.floor((s+c)/2);r[f]>i?c=f:s=f}return i>=r[c]?c:s}}])})(_.PureComponent);Gn(cs,"displayName","Brush");Gn(cs,"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 Jx,cD;function Ble(){if(cD)return Jx;cD=1;var e=yO();function t(n,r){var i;return e(n,function(l,s,c){return i=r(l,s,c),!i}),!!i}return Jx=t,Jx}var ew,fD;function qle(){if(fD)return ew;fD=1;var e=E3(),t=Di(),n=Ble(),r=kn(),i=lm();function l(s,c,f){var d=r(s)?e:n;return f&&i(s,c,f)&&(c=void 0),d(s,t(c,3))}return ew=l,ew}var Ule=qle();const Hle=ut(Ule);var na=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},tw,dD;function Fle(){if(dD)return tw;dD=1;var e=H3();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return tw=t,tw}var nw,hD;function Gle(){if(hD)return nw;hD=1;var e=Fle(),t=q3(),n=Di();function r(i,l){var s={};return l=n(l,3),t(i,function(c,f,d){e(s,f,l(c,f,d))}),s}return nw=r,nw}var Vle=Gle();const Yle=ut(Vle);var rw,pD;function Wle(){if(pD)return rw;pD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return rw=e,rw}var aw,mD;function Kle(){if(mD)return aw;mD=1;var e=yO();function t(n,r){var i=!0;return e(n,function(l,s,c){return i=!!r(l,s,c),i}),i}return aw=t,aw}var iw,vD;function Xle(){if(vD)return iw;vD=1;var e=Wle(),t=Kle(),n=Di(),r=kn(),i=lm();function l(s,c,f){var d=r(s)?e:t;return f&&i(s,c,f)&&(c=void 0),d(s,n(c,3))}return iw=l,iw}var Qle=Xle();const gz=ut(Qle);var Zle=["x","y"];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 z1(){return z1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z1.apply(this,arguments)}function gD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gD(Object(n),!0).forEach(function(r){Jle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jle(e,t,n){return t=ese(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ese(e){var t=tse(e,"string");return Hc(t)=="symbol"?t:t+""}function tse(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 nse(e,t){if(e==null)return{};var n=rse(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(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 ase(e,t){var n=e.x,r=e.y,i=nse(e,Zle),l="".concat(n),s=parseInt(l,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||i.height),m=parseInt(d,10),p="".concat(t.width||i.width),y=parseInt(p,10);return Yu(Yu(Yu(Yu(Yu({},t),i),s?{x:s}:{}),f?{y:f}:{}),{},{height:m,width:y,name:t.name,radius:t.radius})}function yD(e){return I.createElement(vle,z1({shapeType:"rectangle",propTransformer:ase,activeClassName:"recharts-active-bar"},e))}var ise=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var l=ye(r)||hK(r);return l?t(r,i):(l||Co(),n)}},ose=["value","background"],yz;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 lse(e,t){if(e==null)return{};var n=sse(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sse(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 cp(){return cp=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},cp.apply(this,arguments)}function bD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bD(Object(n),!0).forEach(function(r){_i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function use(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xD(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,xz(r.key),r)}}function cse(e,t,n){return t&&xD(e.prototype,t),n&&xD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fse(e,t,n){return t=fp(t),dse(e,bz()?Reflect.construct(t,n||[],fp(e).constructor):t.apply(e,n))}function dse(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 hse(e)}function hse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function bz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(bz=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fp(e)}function pse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B1(e,t)}function B1(e,t){return B1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},B1(e,t)}function _i(e,t,n){return t=xz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xz(e){var t=mse(e,"string");return fs(t)=="symbol"?t:t+""}function mse(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)}var gf=(function(e){function t(){var n;use(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=fse(this,t,[].concat(i)),_i(n,"state",{isAnimationFinished:!1}),_i(n,"id",cf("recharts-bar-")),_i(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),_i(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return pse(t,e),cse(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,l=this.props,s=l.shape,c=l.dataKey,f=l.activeIndex,d=l.activeBar,m=He(this.props,!1);return r&&r.map(function(p,y){var x=y===f,O=x?d:s,w=Dt(Dt(Dt({},m),p),{},{isActive:x,option:O,index:y,dataKey:c,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return I.createElement(Ct,cp({className:"recharts-bar-rectangle"},Th(i.props,p,y),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value,"-").concat(y)}),I.createElement(yD,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,l=i.data,s=i.layout,c=i.isAnimationActive,f=i.animationBegin,d=i.animationDuration,m=i.animationEasing,p=i.animationId,y=this.state.prevData;return I.createElement(Ua,{begin:f,duration:d,isActive:c,easing:m,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var O=x.t,w=l.map(function(S,E){var T=y&&y[E];if(T){var A=jr(T.x,S.x),M=jr(T.y,S.y),j=jr(T.width,S.width),N=jr(T.height,S.height);return Dt(Dt({},S),{},{x:A(O),y:M(O),width:j(O),height:N(O)})}if(s==="horizontal"){var R=jr(0,S.height),P=R(O);return Dt(Dt({},S),{},{y:S.y+S.height-P,height:P})}var L=jr(0,S.width),Y=L(O);return Dt(Dt({},S),{},{width:Y})});return I.createElement(Ct,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,l=r.isAnimationActive,s=this.state.prevData;return l&&i&&i.length&&(!s||!vm(s,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,l=i.data,s=i.dataKey,c=i.activeIndex,f=He(this.props.background,!1);return l.map(function(d,m){d.value;var p=d.background,y=lse(d,ose);if(!p)return null;var x=Dt(Dt(Dt(Dt(Dt({},y),{},{fill:"#eee"},p),f),Th(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:m,className:"recharts-bar-background-rectangle"});return I.createElement(yD,cp({key:"background-bar-".concat(m),option:r.props.background,isActive:m===c},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.data,c=l.xAxis,f=l.yAxis,d=l.layout,m=l.children,p=mr(m,vf);if(!p)return null;var y=d==="vertical"?s[0].height/2:s[0].width/2,x=function(S,E){var T=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:T,errorVal:Xn(S,E)}},O={clipPath:r?"url(#clipPath-".concat(i,")"):null};return I.createElement(Ct,O,p.map(function(w){return I.cloneElement(w,{key:"error-bar-".concat(i,"-").concat(w.props.dataKey),data:s,xAxis:c,yAxis:f,layout:d,offset:y,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,l=r.data,s=r.className,c=r.xAxis,f=r.yAxis,d=r.left,m=r.top,p=r.width,y=r.height,x=r.isAnimationActive,O=r.background,w=r.id;if(i||!l||!l.length)return null;var S=this.state.isAnimationFinished,E=Fe("recharts-bar",s),T=c&&c.allowDataOverflow,A=f&&f.allowDataOverflow,M=T||A,j=ze(w)?this.id:w;return I.createElement(Ct,{className:E},T||A?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(j)},I.createElement("rect",{x:T?d:d-p/2,y:A?m:m-y/2,width:T?p:p*2,height:A?y:y*2}))):null,I.createElement(Ct,{className:"recharts-bar-rectangles",clipPath:M?"url(#clipPath-".concat(j,")"):null},O?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(M,j),(!x||S)&&Ai.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])})(_.PureComponent);yz=gf;_i(gf,"displayName","Bar");_i(gf,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!$s.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});_i(gf,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,l=e.xAxis,s=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,m=e.dataStartIndex,p=e.displayedData,y=e.offset,x=Pre(r,n);if(!x)return null;var O=t.layout,w=n.type.defaultProps,S=w!==void 0?Dt(Dt({},w),n.props):n.props,E=S.dataKey,T=S.children,A=S.minPointSize,M=O==="horizontal"?s:l,j=d?M.scale.domain():null,N=qre({numericAxis:M}),R=mr(T,X3),P=p.map(function(L,Y){var z,H,V,Q,K,k;d?z=Dre(d[m+Y],j):(z=Xn(L,E),Array.isArray(z)||(z=[N,z]));var q=ise(A,yz.defaultProps.minPointSize)(z[1],Y);if(O==="horizontal"){var B,W=[s.scale(z[0]),s.scale(z[1])],le=W[0],$=W[1];H=rP({axis:l,ticks:c,bandSize:i,offset:x.offset,entry:L,index:Y}),V=(B=$??le)!==null&&B!==void 0?B:void 0,Q=x.size;var F=le-$;if(K=Number.isNaN(F)?0:F,k={x:H,y:s.y,width:Q,height:s.height},Math.abs(q)>0&&Math.abs(K)<Math.abs(q)){var X=Mr(K||q)*(Math.abs(q)-Math.abs(K));V-=X,K+=X}}else{var ae=[l.scale(z[0]),l.scale(z[1])],de=ae[0],ge=ae[1];if(H=de,V=rP({axis:s,ticks:f,bandSize:i,offset:x.offset,entry:L,index:Y}),Q=ge-de,K=x.size,k={x:l.x,y:V,width:l.width,height:K},Math.abs(q)>0&&Math.abs(Q)<Math.abs(q)){var ce=Mr(Q||q)*(Math.abs(q)-Math.abs(Q));Q+=ce}}return Dt(Dt(Dt({},L),{},{x:H,y:V,width:Q,height:K,value:d?z:z[1],payload:L,background:k},R&&R[Y]&&R[Y].props),{},{tooltipPayload:[nz(n,L)],tooltipPosition:{x:H+Q/2,y:V+K/2}})});return Dt({data:P,layout:O},y)});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 vse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wD(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,wz(r.key),r)}}function gse(e,t,n){return t&&wD(e.prototype,t),n&&wD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function SD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ar(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SD(Object(n),!0).forEach(function(r){wm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wm(e,t,n){return t=wz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wz(e){var t=yse(e,"string");return Fc(t)=="symbol"?t:t+""}function yse(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)}var bse=function(t,n,r,i,l){var s=t.width,c=t.height,f=t.layout,d=t.children,m=Object.keys(n),p={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},y=!!Vn(d,gf);return m.reduce(function(x,O){var w=n[O],S=w.orientation,E=w.domain,T=w.padding,A=T===void 0?{}:T,M=w.mirror,j=w.reversed,N="".concat(S).concat(M?"Mirror":""),R,P,L,Y,z;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var H=E[1]-E[0],V=1/0,Q=w.categoricalDomain.sort(vK);if(Q.forEach(function(ae,de){de>0&&(V=Math.min((ae||0)-(Q[de-1]||0),V))}),Number.isFinite(V)){var K=V/H,k=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&(R=K*k/2),w.padding==="no-gap"){var q=To(t.barCategoryGap,K*k),B=K*k/2;R=B-q-(B-q)/k*q}}}i==="xAxis"?P=[r.left+(A.left||0)+(R||0),r.left+r.width-(A.right||0)-(R||0)]:i==="yAxis"?P=f==="horizontal"?[r.top+r.height-(A.bottom||0),r.top+(A.top||0)]:[r.top+(A.top||0)+(R||0),r.top+r.height-(A.bottom||0)-(R||0)]:P=w.range,j&&(P=[P[1],P[0]]);var W=Nre(w,l,y),le=W.scale,$=W.realScaleType;le.domain(E).range(P),Rre(le);var F=Bre(le,Ar(Ar({},w),{},{realScaleType:$}));i==="xAxis"?(z=S==="top"&&!M||S==="bottom"&&M,L=r.left,Y=p[N]-z*w.height):i==="yAxis"&&(z=S==="left"&&!M||S==="right"&&M,L=p[N]-z*w.width,Y=r.top);var X=Ar(Ar(Ar({},w),F),{},{realScaleType:$,x:L,y:Y,scale:le,width:i==="xAxis"?r.width:w.width,height:i==="yAxis"?r.height:w.height});return X.bandSize=Zh(X,F),!w.hide&&i==="xAxis"?p[N]+=(z?-1:1)*X.height:w.hide||(p[N]+=(z?-1:1)*X.width),Ar(Ar({},x),{},wm({},O,X))},{})},Sz=function(t,n){var r=t.x,i=t.y,l=n.x,s=n.y;return{x:Math.min(r,l),y:Math.min(i,s),width:Math.abs(l-r),height:Math.abs(s-i)}},xse=function(t){var n=t.x1,r=t.y1,i=t.x2,l=t.y2;return Sz({x:n,y:r},{x:i,y:l})},Oz=(function(){function e(t){vse(this,e),this.scale=t}return gse(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]:{},i=r.bandAware,l=r.position;if(n!==void 0){if(l)switch(l){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(i){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(),i=r[0],l=r[r.length-1];return i<=l?n>=i&&n<=l:n>=l&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();wm(Oz,"EPS",1e-4);var WO=function(t){var n=Object.keys(t).reduce(function(r,i){return Ar(Ar({},r),{},wm({},i,Oz.create(t[i])))},{});return Ar(Ar({},n),{},{apply:function(i){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=l.bandAware,c=l.position;return Yle(i,function(f,d){return n[d].apply(f,{bandAware:s,position:c})})},isInRange:function(i){return gz(i,function(l,s){return n[s].isInRange(l)})}})};function wse(e){return(e%180+180)%180}var Sse=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=wse(i),s=l*Math.PI/180,c=Math.atan(r/n),f=s>c&&s<Math.PI-c?r/Math.sin(s):n/Math.cos(s);return Math.abs(f)},ow,OD;function Ose(){if(OD)return ow;OD=1;var e=Di(),t=ff(),n=im();function r(i){return function(l,s,c){var f=Object(l);if(!t(l)){var d=e(s,3);l=n(l),s=function(p){return d(f[p],p,f)}}var m=i(l,s,c);return m>-1?f[d?l[m]:m]:void 0}}return ow=r,ow}var lw,_D;function _se(){if(_D)return lw;_D=1;var e=hz();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return lw=t,lw}var sw,ED;function Ese(){if(ED)return sw;ED=1;var e=$3(),t=Di(),n=_se(),r=Math.max;function i(l,s,c){var f=l==null?0:l.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(l,t(s,3),d)}return sw=i,sw}var uw,AD;function Ase(){if(AD)return uw;AD=1;var e=Ose(),t=Ese(),n=e(t);return uw=n,uw}var Tse=Ase();const jse=ut(Tse);var Cse=ZI();const Mse=ut(Cse);var Nse=Mse(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("")}),KO=_.createContext(void 0),XO=_.createContext(void 0),_z=_.createContext(void 0),Ez=_.createContext({}),Az=_.createContext(void 0),Tz=_.createContext(0),jz=_.createContext(0),TD=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,l=n.offset,s=t.clipPathId,c=t.children,f=t.width,d=t.height,m=Nse(l);return I.createElement(KO.Provider,{value:r},I.createElement(XO.Provider,{value:i},I.createElement(Ez.Provider,{value:l},I.createElement(_z.Provider,{value:m},I.createElement(Az.Provider,{value:s},I.createElement(Tz.Provider,{value:d},I.createElement(jz.Provider,{value:f},c)))))))},Rse=function(){return _.useContext(Az)},Cz=function(t){var n=_.useContext(KO);n==null&&Co();var r=n[t];return r==null&&Co(),r},Pse=function(){var t=_.useContext(KO);return Oi(t)},Dse=function(){var t=_.useContext(XO),n=jse(t,function(r){return gz(r.domain,Number.isFinite)});return n||Oi(t)},Mz=function(t){var n=_.useContext(XO);n==null&&Co();var r=n[t];return r==null&&Co(),r},kse=function(){var t=_.useContext(_z);return t},$se=function(){return _.useContext(Ez)},QO=function(){return _.useContext(jz)},ZO=function(){return _.useContext(Tz)};function ds(e){"@babel/helpers - typeof";return ds=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},ds(e)}function Lse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ise(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Rz(r.key),r)}}function zse(e,t,n){return t&&Ise(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Bse(e,t,n){return t=dp(t),qse(e,Nz()?Reflect.construct(t,n||[],dp(e).constructor):t.apply(e,n))}function qse(e,t){if(t&&(ds(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Use(e)}function Use(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Nz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Nz=function(){return!!e})()}function dp(e){return dp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},dp(e)}function Hse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q1(e,t)}function q1(e,t){return q1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},q1(e,t)}function jD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jD(Object(n),!0).forEach(function(r){JO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JO(e,t,n){return t=Rz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rz(e){var t=Fse(e,"string");return ds(t)=="symbol"?t:t+""}function Fse(e,t){if(ds(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ds(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Gse(e,t){return Kse(e)||Wse(e,t)||Yse(e,t)||Vse()}function Vse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
346
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Yse(e,t){if(e){if(typeof e=="string")return MD(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 MD(e,t)}}function MD(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 Wse(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Kse(e){if(Array.isArray(e))return e}function U1(){return U1=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},U1.apply(this,arguments)}var Xse=function(t,n){var r;return I.isValidElement(t)?r=I.cloneElement(t,n):$e(t)?r=t(n):r=I.createElement("line",U1({},n,{className:"recharts-reference-line-line"})),r},Qse=function(t,n,r,i,l,s,c,f,d){var m=l.x,p=l.y,y=l.width,x=l.height;if(r){var O=d.y,w=t.y.apply(O,{position:s});if(na(d,"discard")&&!t.y.isInRange(w))return null;var S=[{x:m+y,y:w},{x:m,y:w}];return f==="left"?S.reverse():S}if(n){var E=d.x,T=t.x.apply(E,{position:s});if(na(d,"discard")&&!t.x.isInRange(T))return null;var A=[{x:T,y:p+x},{x:T,y:p}];return c==="top"?A.reverse():A}if(i){var M=d.segment,j=M.map(function(N){return t.apply(N,{position:s})});return na(d,"discard")&&Hle(j,function(N){return!t.isInRange(N)})?null:j}return null};function Zse(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,l=e.yAxisId,s=e.shape,c=e.className,f=e.alwaysShow,d=Rse(),m=Cz(i),p=Mz(l),y=kse();if(!d||!y)return null;Da(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=WO({x:m.scale,y:p.scale}),O=Gt(t),w=Gt(n),S=r&&r.length===2,E=Qse(x,O,w,S,y,e.position,m.orientation,p.orientation,e);if(!E)return null;var T=Gse(E,2),A=T[0],M=A.x,j=A.y,N=T[1],R=N.x,P=N.y,L=na(e,"hidden")?"url(#".concat(d,")"):void 0,Y=CD(CD({clipPath:L},He(e,!0)),{},{x1:M,y1:j,x2:R,y2:P});return I.createElement(Ct,{className:Fe("recharts-reference-line",c)},Xse(s,Y),mn.renderCallByParent(e,xse({x1:M,y1:j,x2:R,y2:P})))}var e_=(function(e){function t(){return Lse(this,t),Bse(this,t,arguments)}return Hse(t,e),zse(t,[{key:"render",value:function(){return I.createElement(Zse,this.props)}}])})(I.Component);JO(e_,"displayName","ReferenceLine");JO(e_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function H1(){return H1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H1.apply(this,arguments)}function 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)}function ND(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function RD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ND(Object(n),!0).forEach(function(r){Sm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ND(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eue(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,Dz(r.key),r)}}function tue(e,t,n){return t&&eue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nue(e,t,n){return t=hp(t),rue(e,Pz()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function rue(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 aue(e)}function aue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pz=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function iue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F1(e,t)}function F1(e,t){return F1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},F1(e,t)}function Sm(e,t,n){return t=Dz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dz(e){var t=oue(e,"string");return hs(t)=="symbol"?t:t+""}function oue(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)}var lue=function(t){var n=t.x,r=t.y,i=t.xAxis,l=t.yAxis,s=WO({x:i.scale,y:l.scale}),c=s.apply({x:n,y:r},{bandAware:!0});return na(t,"discard")&&!s.isInRange(c)?null:c},Om=(function(e){function t(){return Jse(this,t),nue(this,t,arguments)}return iue(t,e),tue(t,[{key:"render",value:function(){var r=this.props,i=r.x,l=r.y,s=r.r,c=r.alwaysShow,f=r.clipPathId,d=Gt(i),m=Gt(l);if(Da(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!m)return null;var p=lue(this.props);if(!p)return null;var y=p.x,x=p.y,O=this.props,w=O.shape,S=O.className,E=na(this.props,"hidden")?"url(#".concat(f,")"):void 0,T=RD(RD({clipPath:E},He(this.props,!0)),{},{cx:y,cy:x});return I.createElement(Ct,{className:Fe("recharts-reference-dot",S)},t.renderDot(w,T),mn.renderCallByParent(this.props,{x:y-s,y:x-s,width:2*s,height:2*s}))}}])})(I.Component);Sm(Om,"displayName","ReferenceDot");Sm(Om,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Sm(Om,"renderDot",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):$e(e)?n=e(t):n=I.createElement(YO,H1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function G1(){return G1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G1.apply(this,arguments)}function ps(e){"@babel/helpers - typeof";return ps=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},ps(e)}function PD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function DD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PD(Object(n),!0).forEach(function(r){_m(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,$z(r.key),r)}}function cue(e,t,n){return t&&uue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fue(e,t,n){return t=pp(t),due(e,kz()?Reflect.construct(t,n||[],pp(e).constructor):t.apply(e,n))}function due(e,t){if(t&&(ps(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hue(e)}function hue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(kz=function(){return!!e})()}function pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pp(e)}function pue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V1(e,t)}function V1(e,t){return V1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},V1(e,t)}function _m(e,t,n){return t=$z(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $z(e){var t=mue(e,"string");return ps(t)=="symbol"?t:t+""}function mue(e,t){if(ps(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ps(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vue=function(t,n,r,i,l){var s=l.x1,c=l.x2,f=l.y1,d=l.y2,m=l.xAxis,p=l.yAxis;if(!m||!p)return null;var y=WO({x:m.scale,y:p.scale}),x={x:t?y.x.apply(s,{position:"start"}):y.x.rangeMin,y:r?y.y.apply(f,{position:"start"}):y.y.rangeMin},O={x:n?y.x.apply(c,{position:"end"}):y.x.rangeMax,y:i?y.y.apply(d,{position:"end"}):y.y.rangeMax};return na(l,"discard")&&(!y.isInRange(x)||!y.isInRange(O))?null:Sz(x,O)},Em=(function(e){function t(){return sue(this,t),fue(this,t,arguments)}return pue(t,e),cue(t,[{key:"render",value:function(){var r=this.props,i=r.x1,l=r.x2,s=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,m=r.clipPathId;Da(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Gt(i),y=Gt(l),x=Gt(s),O=Gt(c),w=this.props.shape;if(!p&&!y&&!x&&!O&&!w)return null;var S=vue(p,y,x,O,this.props);if(!S&&!w)return null;var E=na(this.props,"hidden")?"url(#".concat(m,")"):void 0;return I.createElement(Ct,{className:Fe("recharts-reference-area",f)},t.renderRect(w,DD(DD({clipPath:E},He(this.props,!0)),S)),mn.renderCallByParent(this.props,S))}}])})(I.Component);_m(Em,"displayName","ReferenceArea");_m(Em,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});_m(Em,"renderRect",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):$e(e)?n=e(t):n=I.createElement(VO,G1({},t,{className:"recharts-reference-area-rect"})),n});function Lz(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],i=0;i<e.length;i+=t)r.push(e[i]);return r}function gue(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Sse(r,n)}function yue(e,t,n){var r=n==="width",i=e.x,l=e.y,s=e.width,c=e.height;return t===1?{start:r?i:l,end:r?i+s:l+c}:{start:r?i+s:l+c,end:r?i:l}}function mp(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var l=n();return e*(t-e*l/2-r)>=0&&e*(t+e*l/2-i)<=0}function bue(e,t){return Lz(e,t+1)}function xue(e,t,n,r,i){for(var l=(r||[]).slice(),s=t.start,c=t.end,f=0,d=1,m=s,p=function(){var O=r==null?void 0:r[f];if(O===void 0)return{v:Lz(r,d)};var w=f,S,E=function(){return S===void 0&&(S=n(O,w)),S},T=O.coordinate,A=f===0||mp(e,T,E,m,c);A||(f=0,m=s,d+=1),A&&(m=T+e*(E()/2+i),f+=d)},y;d<=l.length;)if(y=p(),y)return y.v;return[]}function Gc(e){"@babel/helpers - typeof";return Gc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gc(e)}function kD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?kD(Object(n),!0).forEach(function(r){wue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wue(e,t,n){return t=Sue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sue(e){var t=Oue(e,"string");return Gc(t)=="symbol"?t:t+""}function Oue(e,t){if(Gc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function _ue(e,t,n,r,i){for(var l=(r||[]).slice(),s=l.length,c=t.start,f=t.end,d=function(y){var x=l[y],O,w=function(){return O===void 0&&(O=n(x,y)),O};if(y===s-1){var S=e*(x.coordinate+e*w()/2-f);l[y]=x=hn(hn({},x),{},{tickCoord:S>0?x.coordinate-S*e:x.coordinate})}else l[y]=x=hn(hn({},x),{},{tickCoord:x.coordinate});var E=mp(e,x.tickCoord,w,c,f);E&&(f=x.tickCoord-e*(w()/2+i),l[y]=hn(hn({},x),{},{isShow:!0}))},m=s-1;m>=0;m--)d(m);return l}function Eue(e,t,n,r,i,l){var s=(r||[]).slice(),c=s.length,f=t.start,d=t.end;if(l){var m=r[c-1],p=n(m,c-1),y=e*(m.coordinate+e*p/2-d);s[c-1]=m=hn(hn({},m),{},{tickCoord:y>0?m.coordinate-y*e:m.coordinate});var x=mp(e,m.tickCoord,function(){return p},f,d);x&&(d=m.tickCoord-e*(p/2+i),s[c-1]=hn(hn({},m),{},{isShow:!0}))}for(var O=l?c-1:c,w=function(T){var A=s[T],M,j=function(){return M===void 0&&(M=n(A,T)),M};if(T===0){var N=e*(A.coordinate-e*j()/2-f);s[T]=A=hn(hn({},A),{},{tickCoord:N<0?A.coordinate-N*e:A.coordinate})}else s[T]=A=hn(hn({},A),{},{tickCoord:A.coordinate});var R=mp(e,A.tickCoord,j,f,d);R&&(f=A.tickCoord+e*(j()/2+i),s[T]=hn(hn({},A),{},{isShow:!0}))},S=0;S<O;S++)w(S);return s}function t_(e,t,n){var r=e.tick,i=e.ticks,l=e.viewBox,s=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,m=e.unit,p=e.angle;if(!i||!i.length||!r)return[];if(ye(f)||$s.isSsr)return bue(i,typeof f=="number"&&ye(f)?f:0);var y=[],x=c==="top"||c==="bottom"?"width":"height",O=m&&x==="width"?tc(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(A,M){var j=$e(d)?d(A.value,M):A.value;return x==="width"?gue(tc(j,{fontSize:t,letterSpacing:n}),O,p):tc(j,{fontSize:t,letterSpacing:n})[x]},S=i.length>=2?Mr(i[1].coordinate-i[0].coordinate):1,E=yue(l,S,x);return f==="equidistantPreserveStart"?xue(S,E,w,i,s):(f==="preserveStart"||f==="preserveStartEnd"?y=Eue(S,E,w,i,s,f==="preserveStartEnd"):y=_ue(S,E,w,i,s),y.filter(function(T){return T.isShow}))}var Aue=["viewBox"],Tue=["viewBox"],jue=["ticks"];function ms(e){"@babel/helpers - typeof";return ms=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},ms(e)}function zl(){return zl=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},zl.apply(this,arguments)}function $D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).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?$D(Object(n),!0).forEach(function(r){n_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$D(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cw(e,t){if(e==null)return{};var n=Cue(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Cue(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 Mue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function LD(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,zz(r.key),r)}}function Nue(e,t,n){return t&&LD(e.prototype,t),n&&LD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Rue(e,t,n){return t=vp(t),Pue(e,Iz()?Reflect.construct(t,n||[],vp(e).constructor):t.apply(e,n))}function Pue(e,t){if(t&&(ms(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Due(e)}function Due(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Iz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Iz=function(){return!!e})()}function vp(e){return vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vp(e)}function kue(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,i){return r.__proto__=i,r},Y1(e,t)}function n_(e,t,n){return t=zz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zz(e){var t=$ue(e,"string");return ms(t)=="symbol"?t:t+""}function $ue(e,t){if(ms(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ms(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Bs=(function(e){function t(n){var r;return Mue(this,t),r=Rue(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return kue(t,e),Nue(t,[{key:"shouldComponentUpdate",value:function(r,i){var l=r.viewBox,s=cw(r,Aue),c=this.props,f=c.viewBox,d=cw(c,Tue);return!Vl(l,f)||!Vl(s,d)||!Vl(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,l=i.x,s=i.y,c=i.width,f=i.height,d=i.orientation,m=i.tickSize,p=i.mirror,y=i.tickMargin,x,O,w,S,E,T,A=p?-1:1,M=r.tickSize||m,j=ye(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":x=O=r.coordinate,S=s+ +!p*f,w=S-A*M,T=w-A*y,E=j;break;case"left":w=S=r.coordinate,O=l+ +!p*c,x=O-A*M,E=x-A*y,T=j;break;case"right":w=S=r.coordinate,O=l+ +p*c,x=O+A*M,E=x+A*y,T=j;break;default:x=O=r.coordinate,S=s+ +p*f,w=S+A*M,T=w+A*y,E=j;break}return{line:{x1:x,y1:w,x2:O,y2:S},tick:{x:E,y:T}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,l=r.mirror,s;switch(i){case"left":s=l?"start":"end";break;case"right":s=l?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,l=r.mirror,s="end";switch(i){case"left":case"right":s="middle";break;case"top":s=l?"start":"end";break;default:s=l?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,l=r.y,s=r.width,c=r.height,f=r.orientation,d=r.mirror,m=r.axisLine,p=Ut(Ut(Ut({},He(this.props,!1)),He(m,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var y=+(f==="top"&&!d||f==="bottom"&&d);p=Ut(Ut({},p),{},{x1:i,y1:l+y*c,x2:i+s,y2:l+y*c})}else{var x=+(f==="left"&&!d||f==="right"&&d);p=Ut(Ut({},p),{},{x1:i+x*s,y1:l,x2:i+x*s,y2:l+c})}return I.createElement("line",zl({},p,{className:Fe("recharts-cartesian-axis-line",pr(m,"className"))}))}},{key:"renderTicks",value:function(r,i,l){var s=this,c=this.props,f=c.tickLine,d=c.stroke,m=c.tick,p=c.tickFormatter,y=c.unit,x=t_(Ut(Ut({},this.props),{},{ticks:r}),i,l),O=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),S=He(this.props,!1),E=He(m,!1),T=Ut(Ut({},S),{},{fill:"none"},He(f,!1)),A=x.map(function(M,j){var N=s.getTickLineCoord(M),R=N.line,P=N.tick,L=Ut(Ut(Ut(Ut({textAnchor:O,verticalAnchor:w},S),{},{stroke:"none",fill:d},E),P),{},{index:j,payload:M,visibleTicksCount:x.length,tickFormatter:p});return I.createElement(Ct,zl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},Th(s.props,M,j)),f&&I.createElement("line",zl({},T,R,{className:Fe("recharts-cartesian-axis-tick-line",pr(f,"className"))})),m&&t.renderTickItem(m,L,"".concat($e(p)?p(M.value,j):M.value).concat(y||"")))});return I.createElement("g",{className:"recharts-cartesian-axis-ticks"},A)}},{key:"render",value:function(){var r=this,i=this.props,l=i.axisLine,s=i.width,c=i.height,f=i.ticksGenerator,d=i.className,m=i.hide;if(m)return null;var p=this.props,y=p.ticks,x=cw(p,jue),O=y;return $e(f)&&(O=y&&y.length>0?f(this.props):f(x)),s<=0||c<=0||!O||!O.length?null:I.createElement(Ct,{className:Fe("recharts-cartesian-axis",d),ref:function(S){r.layerReference=S}},l&&this.renderAxisLine(),this.renderTicks(O,this.state.fontSize,this.state.letterSpacing),mn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,l){var s,c=Fe(i.className,"recharts-cartesian-axis-tick-value");return I.isValidElement(r)?s=I.cloneElement(r,Ut(Ut({},i),{},{className:c})):$e(r)?s=r(Ut(Ut({},i),{},{className:c})):s=I.createElement(Ih,zl({},i,{className:"recharts-cartesian-axis-tick-value"}),l),s}}])})(_.Component);n_(Bs,"displayName","CartesianAxis");n_(Bs,"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 Lue=["x1","y1","x2","y2","key"],Iue=["offset"];function Mo(e){"@babel/helpers - typeof";return Mo=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},Mo(e)}function ID(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ID(Object(n),!0).forEach(function(r){zue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ID(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zue(e,t,n){return t=Bue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bue(e){var t=que(e,"string");return Mo(t)=="symbol"?t:t+""}function que(e,t){if(Mo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}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 zD(e,t){if(e==null)return{};var n=Uue(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uue(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 Hue=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,l=t.y,s=t.width,c=t.height,f=t.ry;return I.createElement("rect",{x:i,y:l,ry:f,width:s,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function Bz(e,t){var n;if(I.isValidElement(e))n=I.cloneElement(e,t);else if($e(e))n=e(t);else{var r=t.x1,i=t.y1,l=t.x2,s=t.y2,c=t.key,f=zD(t,Lue),d=He(f,!1);d.offset;var m=zD(d,Iue);n=I.createElement("line",yo({},m,{x1:r,y1:i,x2:l,y2:s,fill:"none",key:c}))}return n}function Fue(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,l=e.horizontalPoints;if(!i||!l||!l.length)return null;var s=l.map(function(c,f){var d=vn(vn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return Bz(i,d)});return I.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function Gue(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,l=e.verticalPoints;if(!i||!l||!l.length)return null;var s=l.map(function(c,f){var d=vn(vn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return Bz(i,d)});return I.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Vue(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,l=e.width,s=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(y){return Math.round(y+i-i)}).sort(function(y,x){return y-x});i!==m[0]&&m.unshift(0);var p=m.map(function(y,x){var O=!m[x+1],w=O?i+s-y:m[x+1]-y;if(w<=0)return null;var S=x%t.length;return I.createElement("rect",{key:"react-".concat(x),y,x:r,height:w,width:l,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function Yue(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,l=e.x,s=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var m=d.map(function(y){return Math.round(y+l-l)}).sort(function(y,x){return y-x});l!==m[0]&&m.unshift(0);var p=m.map(function(y,x){var O=!m[x+1],w=O?l+c-y:m[x+1]-y;if(w<=0)return null;var S=x%r.length;return I.createElement("rect",{key:"react-".concat(x),x:y,y:s,width:w,height:f,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Wue=function(t,n){var r=t.xAxis,i=t.width,l=t.height,s=t.offset;return ez(t_(vn(vn(vn({},Bs.defaultProps),r),{},{ticks:Na(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.left,s.left+s.width,n)},Kue=function(t,n){var r=t.yAxis,i=t.width,l=t.height,s=t.offset;return ez(t_(vn(vn(vn({},Bs.defaultProps),r),{},{ticks:Na(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.top,s.top+s.height,n)},kl={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function qz(e){var t,n,r,i,l,s,c=QO(),f=ZO(),d=$se(),m=vn(vn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:kl.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:kl.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:kl.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:kl.horizontalFill,vertical:(l=e.vertical)!==null&&l!==void 0?l:kl.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:kl.verticalFill,x:ye(e.x)?e.x:d.left,y:ye(e.y)?e.y:d.top,width:ye(e.width)?e.width:d.width,height:ye(e.height)?e.height:d.height}),p=m.x,y=m.y,x=m.width,O=m.height,w=m.syncWithTicks,S=m.horizontalValues,E=m.verticalValues,T=Pse(),A=Dse();if(!ye(x)||x<=0||!ye(O)||O<=0||!ye(p)||p!==+p||!ye(y)||y!==+y)return null;var M=m.verticalCoordinatesGenerator||Wue,j=m.horizontalCoordinatesGenerator||Kue,N=m.horizontalPoints,R=m.verticalPoints;if((!N||!N.length)&&$e(j)){var P=S&&S.length,L=j({yAxis:A?vn(vn({},A),{},{ticks:P?S:A.ticks}):void 0,width:c,height:f,offset:d},P?!0:w);Da(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Mo(L),"]")),Array.isArray(L)&&(N=L)}if((!R||!R.length)&&$e(M)){var Y=E&&E.length,z=M({xAxis:T?vn(vn({},T),{},{ticks:Y?E:T.ticks}):void 0,width:c,height:f,offset:d},Y?!0:w);Da(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Mo(z),"]")),Array.isArray(z)&&(R=z)}return I.createElement("g",{className:"recharts-cartesian-grid"},I.createElement(Hue,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),I.createElement(Fue,yo({},m,{offset:d,horizontalPoints:N,xAxis:T,yAxis:A})),I.createElement(Gue,yo({},m,{offset:d,verticalPoints:R,xAxis:T,yAxis:A})),I.createElement(Vue,yo({},m,{horizontalPoints:N})),I.createElement(Yue,yo({},m,{verticalPoints:R})))}qz.displayName="CartesianGrid";var Xue=["type","layout","connectNulls","ref"],Que=["key"];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 BD(e,t){if(e==null)return{};var n=Zue(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zue(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 ic(){return ic=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},ic.apply(this,arguments)}function qD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fn(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){Tr(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 $l(e){return nce(e)||tce(e)||ece(e)||Jue()}function Jue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
347
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ece(e,t){if(e){if(typeof e=="string")return W1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W1(e,t)}}function tce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function nce(e){if(Array.isArray(e))return W1(e)}function W1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function rce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function UD(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,Hz(r.key),r)}}function ace(e,t,n){return t&&UD(e.prototype,t),n&&UD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ice(e,t,n){return t=gp(t),oce(e,Uz()?Reflect.construct(t,n||[],gp(e).constructor):t.apply(e,n))}function oce(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 lce(e)}function lce(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 gp(e){return gp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gp(e)}function sce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K1(e,t)}function K1(e,t){return K1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},K1(e,t)}function Tr(e,t,n){return t=Hz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hz(e){var t=uce(e,"string");return vs(t)=="symbol"?t:t+""}function uce(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 Xr=(function(e){function t(){var n;rce(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=ice(this,t,[].concat(i)),Tr(n,"state",{isAnimationFinished:!0,totalLength:0}),Tr(n,"generateSimpleStrokeDasharray",function(s,c){return"".concat(c,"px ").concat(s-c,"px")}),Tr(n,"getStrokeDasharray",function(s,c,f){var d=f.reduce(function(E,T){return E+T});if(!d)return n.generateSimpleStrokeDasharray(c,s);for(var m=Math.floor(s/d),p=s%d,y=c-s,x=[],O=0,w=0;O<f.length;w+=f[O],++O)if(w+f[O]>p){x=[].concat($l(f.slice(0,O)),[p-w]);break}var S=x.length%2===0?[0,y]:[y];return[].concat($l(t.repeat(f,m)),$l(x),S).map(function(E){return"".concat(E,"px")}).join(", ")}),Tr(n,"id",cf("recharts-line-")),Tr(n,"pathRef",function(s){n.mainCurve=s}),Tr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Tr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return sce(t,e),ace(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,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var l=this.props,s=l.points,c=l.xAxis,f=l.yAxis,d=l.layout,m=l.children,p=mr(m,vf);if(!p)return null;var y=function(w,S){return{x:w.x,y:w.y,value:w.value,errorVal:Xn(w.payload,S)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return I.createElement(Ct,x,p.map(function(O){return I.cloneElement(O,{key:"bar-".concat(O.props.dataKey),data:s,xAxis:c,yAxis:f,layout:d,dataPointFormatter:y})}))}},{key:"renderDots",value:function(r,i,l){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,m=c.dataKey,p=He(this.props,!1),y=He(f,!0),x=d.map(function(w,S){var E=Fn(Fn(Fn({key:"dot-".concat(S),r:3},p),y),{},{index:S,cx:w.x,cy:w.y,value:w.value,dataKey:m,payload:w.payload,points:d});return t.renderDotItem(f,E)}),O={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(l,")"):null};return I.createElement(Ct,ic({className:"recharts-line-dots",key:"dots"},O),x)}},{key:"renderCurveStatically",value:function(r,i,l,s){var c=this.props,f=c.type,d=c.layout,m=c.connectNulls;c.ref;var p=BD(c,Xue),y=Fn(Fn(Fn({},He(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(l,")"):null,points:r},s),{},{type:f,layout:d,connectNulls:m});return I.createElement(A1,ic({},y,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var l=this,s=this.props,c=s.points,f=s.strokeDasharray,d=s.isAnimationActive,m=s.animationBegin,p=s.animationDuration,y=s.animationEasing,x=s.animationId,O=s.animateNewValues,w=s.width,S=s.height,E=this.state,T=E.prevPoints,A=E.totalLength;return I.createElement(Ua,{begin:m,duration:p,isActive:d,easing:y,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(M){var j=M.t;if(T){var N=T.length/c.length,R=c.map(function(H,V){var Q=Math.floor(V*N);if(T[Q]){var K=T[Q],k=jr(K.x,H.x),q=jr(K.y,H.y);return Fn(Fn({},H),{},{x:k(j),y:q(j)})}if(O){var B=jr(w*2,H.x),W=jr(S/2,H.y);return Fn(Fn({},H),{},{x:B(j),y:W(j)})}return Fn(Fn({},H),{},{x:H.x,y:H.y})});return l.renderCurveStatically(R,r,i)}var P=jr(0,A),L=P(j),Y;if(f){var z="".concat(f).split(/[,\s]+/gim).map(function(H){return parseFloat(H)});Y=l.getStrokeDasharray(L,A,z)}else Y=l.generateSimpleStrokeDasharray(A,L);return l.renderCurveStatically(c,r,i,{strokeDasharray:Y})})}},{key:"renderCurve",value:function(r,i){var l=this.props,s=l.points,c=l.isAnimationActive,f=this.state,d=f.prevPoints,m=f.totalLength;return c&&s&&s.length&&(!d&&m>0||!vm(d,s))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(s,r,i)}},{key:"render",value:function(){var r,i=this.props,l=i.hide,s=i.dot,c=i.points,f=i.className,d=i.xAxis,m=i.yAxis,p=i.top,y=i.left,x=i.width,O=i.height,w=i.isAnimationActive,S=i.id;if(l||!c||!c.length)return null;var E=this.state.isAnimationFinished,T=c.length===1,A=Fe("recharts-line",f),M=d&&d.allowDataOverflow,j=m&&m.allowDataOverflow,N=M||j,R=ze(S)?this.id:S,P=(r=He(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},L=P.r,Y=L===void 0?3:L,z=P.strokeWidth,H=z===void 0?2:z,V=EK(s)?s:{},Q=V.clipDot,K=Q===void 0?!0:Q,k=Y*2+H;return I.createElement(Ct,{className:A},M||j?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(R)},I.createElement("rect",{x:M?y:y-x/2,y:j?p:p-O/2,width:M?x:x*2,height:j?O:O*2})),!K&&I.createElement("clipPath",{id:"clipPath-dots-".concat(R)},I.createElement("rect",{x:y-k/2,y:p-k/2,width:x+k,height:O+k}))):null,!T&&this.renderCurve(N,R),this.renderErrorBar(N,R),(T||s)&&this.renderDots(N,K,R),(!w||E)&&Ai.renderCallByParent(this.props,c))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var l=r.length%2!==0?[].concat($l(r),[0]):r,s=[],c=0;c<i;++c)s=[].concat($l(s),$l(l));return s}},{key:"renderDotItem",value:function(r,i){var l;if(I.isValidElement(r))l=I.cloneElement(r,i);else if($e(r))l=r(i);else{var s=i.key,c=BD(i,Que),f=Fe("recharts-line-dot",typeof r!="boolean"?r.className:"");l=I.createElement(YO,ic({key:s},c,{className:f}))}return l}}])})(_.PureComponent);Tr(Xr,"displayName","Line");Tr(Xr,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!$s.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Tr(Xr,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,l=e.yAxisTicks,s=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,m=t.layout,p=f.map(function(y,x){var O=Xn(y,s);return m==="horizontal"?{x:nP({axis:n,ticks:i,bandSize:c,entry:y,index:x}),y:ze(O)?null:r.scale(O),value:O,payload:y}:{x:ze(O)?null:n.scale(O),y:nP({axis:r,ticks:l,bandSize:c,entry:y,index:x}),value:O,payload:y}});return Fn({points:p,layout:m},d)});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 cce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function fce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Vz(r.key),r)}}function dce(e,t,n){return t&&fce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function hce(e,t,n){return t=yp(t),pce(e,Fz()?Reflect.construct(t,n||[],yp(e).constructor):t.apply(e,n))}function pce(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 mce(e)}function mce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Fz=function(){return!!e})()}function yp(e){return yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yp(e)}function vce(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,i){return r.__proto__=i,r},X1(e,t)}function Gz(e,t,n){return t=Vz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vz(e){var t=gce(e,"string");return gs(t)=="symbol"?t:t+""}function gce(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)}function Q1(){return Q1=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},Q1.apply(this,arguments)}function yce(e){var t=e.xAxisId,n=QO(),r=ZO(),i=Cz(t);return i==null?null:_.createElement(Bs,Q1({},i,{className:Fe("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return Na(s,!0)}}))}var Am=(function(e){function t(){return cce(this,t),hce(this,t,arguments)}return vce(t,e),dce(t,[{key:"render",value:function(){return _.createElement(yce,this.props)}}])})(_.Component);Gz(Am,"displayName","XAxis");Gz(Am,"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 ys(e){"@babel/helpers - typeof";return ys=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},ys(e)}function bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xce(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,Kz(r.key),r)}}function wce(e,t,n){return t&&xce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sce(e,t,n){return t=bp(t),Oce(e,Yz()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function Oce(e,t){if(t&&(ys(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _ce(e)}function _ce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yz=function(){return!!e})()}function bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(e)}function Ece(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,i){return r.__proto__=i,r},Z1(e,t)}function Wz(e,t,n){return t=Kz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kz(e){var t=Ace(e,"string");return ys(t)=="symbol"?t:t+""}function Ace(e,t){if(ys(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ys(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function J1(){return J1=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},J1.apply(this,arguments)}var Tce=function(t){var n=t.yAxisId,r=QO(),i=ZO(),l=Mz(n);return l==null?null:_.createElement(Bs,J1({},l,{className:Fe("recharts-".concat(l.axisType," ").concat(l.axisType),l.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(c){return Na(c,!0)}}))},Tm=(function(e){function t(){return bce(this,t),Sce(this,t,arguments)}return Ece(t,e),wce(t,[{key:"render",value:function(){return _.createElement(Tce,this.props)}}])})(_.Component);Wz(Tm,"displayName","YAxis");Wz(Tm,"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 HD(e){return Nce(e)||Mce(e)||Cce(e)||jce()}function jce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
348
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cce(e,t){if(e){if(typeof e=="string")return eS(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 eS(e,t)}}function Mce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Nce(e){if(Array.isArray(e))return eS(e)}function eS(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 tS=function(t,n,r,i,l){var s=mr(t,e_),c=mr(t,Om),f=[].concat(HD(s),HD(c)),d=mr(t,Em),m="".concat(i,"Id"),p=i[0],y=n;if(f.length&&(y=f.reduce(function(w,S){if(S.props[m]===r&&na(S.props,"extendDomain")&&ye(S.props[p])){var E=S.props[p];return[Math.min(w[0],E),Math.max(w[1],E)]}return w},y)),d.length){var x="".concat(p,"1"),O="".concat(p,"2");y=d.reduce(function(w,S){if(S.props[m]===r&&na(S.props,"extendDomain")&&ye(S.props[x])&&ye(S.props[O])){var E=S.props[x],T=S.props[O];return[Math.min(w[0],E,T),Math.max(w[1],E,T)]}return w},y)}return l&&l.length&&(y=l.reduce(function(w,S){return ye(S)?[Math.min(w[0],S),Math.max(w[1],S)]:w},y)),y},fw={exports:{}},FD;function Rce(){return FD||(FD=1,(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,d,m){this.fn=f,this.context=d,this.once=m||!1}function l(f,d,m,p,y){if(typeof m!="function")throw new TypeError("The listener must be a function");var x=new i(m,p||f,y),O=n?n+d:d;return f._events[O]?f._events[O].fn?f._events[O]=[f._events[O],x]:f._events[O].push(x):(f._events[O]=x,f._eventsCount++),f}function s(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,p;if(this._eventsCount===0)return d;for(p in m=this._events)t.call(m,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(m)):d},c.prototype.listeners=function(d){var m=n?n+d:d,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var y=0,x=p.length,O=new Array(x);y<x;y++)O[y]=p[y].fn;return O},c.prototype.listenerCount=function(d){var m=n?n+d:d,p=this._events[m];return p?p.fn?1:p.length:0},c.prototype.emit=function(d,m,p,y,x,O){var w=n?n+d:d;if(!this._events[w])return!1;var S=this._events[w],E=arguments.length,T,A;if(S.fn){switch(S.once&&this.removeListener(d,S.fn,void 0,!0),E){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,m),!0;case 3:return S.fn.call(S.context,m,p),!0;case 4:return S.fn.call(S.context,m,p,y),!0;case 5:return S.fn.call(S.context,m,p,y,x),!0;case 6:return S.fn.call(S.context,m,p,y,x,O),!0}for(A=1,T=new Array(E-1);A<E;A++)T[A-1]=arguments[A];S.fn.apply(S.context,T)}else{var M=S.length,j;for(A=0;A<M;A++)switch(S[A].once&&this.removeListener(d,S[A].fn,void 0,!0),E){case 1:S[A].fn.call(S[A].context);break;case 2:S[A].fn.call(S[A].context,m);break;case 3:S[A].fn.call(S[A].context,m,p);break;case 4:S[A].fn.call(S[A].context,m,p,y);break;default:if(!T)for(j=1,T=new Array(E-1);j<E;j++)T[j-1]=arguments[j];S[A].fn.apply(S[A].context,T)}}return!0},c.prototype.on=function(d,m,p){return l(this,d,m,p,!1)},c.prototype.once=function(d,m,p){return l(this,d,m,p,!0)},c.prototype.removeListener=function(d,m,p,y){var x=n?n+d:d;if(!this._events[x])return this;if(!m)return s(this,x),this;var O=this._events[x];if(O.fn)O.fn===m&&(!y||O.once)&&(!p||O.context===p)&&s(this,x);else{for(var w=0,S=[],E=O.length;w<E;w++)(O[w].fn!==m||y&&!O[w].once||p&&O[w].context!==p)&&S.push(O[w]);S.length?this._events[x]=S.length===1?S[0]:S:s(this,x)}return this},c.prototype.removeAllListeners=function(d){var m;return d?(m=n?n+d:d,this._events[m]&&s(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})(fw)),fw.exports}var Pce=Rce();const Dce=ut(Pce);var dw=new Dce,hw="recharts.syncMouseEvents";function Vc(e){"@babel/helpers - typeof";return Vc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vc(e)}function kce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $ce(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,Xz(r.key),r)}}function Lce(e,t,n){return t&&$ce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pw(e,t,n){return t=Xz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xz(e){var t=Ice(e,"string");return Vc(t)=="symbol"?t:t+""}function Ice(e,t){if(Vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zce=(function(){function e(){kce(this,e),pw(this,"activeIndex",0),pw(this,"coordinateList",[]),pw(this,"layout","horizontal")}return Lce(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,l=i===void 0?null:i,s=n.container,c=s===void 0?null:s,f=n.layout,d=f===void 0?null:f,m=n.offset,p=m===void 0?null:m,y=n.mouseHandlerCallback,x=y===void 0?null:y;this.coordinateList=(r=l??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=p??this.offset,this.mouseHandlerCallback=x??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 i=this.container.getBoundingClientRect(),l=i.x,s=i.y,c=i.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,p=l+f+d,y=s+this.offset.top+c/2+m;this.mouseHandlerCallback({pageX:p,pageY:y})}}}])})();function Bce(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&ye(r)&&ye(i))return!0}return!1}function qce(e,t,n,r){var i=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-i:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-i,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function Qz(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,l=e.endAngle,s=sn(t,n,r,i),c=sn(t,n,r,l);return{points:[s,c],cx:t,cy:n,radius:r,startAngle:i,endAngle:l}}function Uce(e,t,n){var r,i,l,s;if(e==="horizontal")r=t.x,l=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,l=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,p=t.angle,y=sn(c,f,d,p),x=sn(c,f,m,p);r=y.x,i=y.y,l=x.x,s=x.y}else return Qz(t);return[{x:r,y:i},{x:l,y:s}]}function Yc(e){"@babel/helpers - typeof";return Yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yc(e)}function GD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GD(Object(n),!0).forEach(function(r){Hce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hce(e,t,n){return t=Fce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fce(e){var t=Gce(e,"string");return Yc(t)=="symbol"?t:t+""}function Gce(e,t){if(Yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vce(e){var t,n,r=e.element,i=e.tooltipEventType,l=e.isActive,s=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,m=e.tooltipAxisBandSize,p=e.layout,y=e.chartName,x=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!x||!l||!s||y!=="ScatterChart"&&i!=="axis")return null;var O,w=A1;if(y==="ScatterChart")O=s,w=Hoe;else if(y==="BarChart")O=qce(p,s,f,m),w=VO;else if(p==="radial"){var S=Qz(s),E=S.cx,T=S.cy,A=S.radius,M=S.startAngle,j=S.endAngle;O={cx:E,cy:T,startAngle:M,endAngle:j,innerRadius:A,outerRadius:A},w=iz}else O={points:Uce(p,s,f)},w=A1;var N=eh(eh(eh(eh({stroke:"#ccc",pointerEvents:"none"},f),O),He(x,!1)),{},{payload:c,payloadIndex:d,className:Fe("recharts-tooltip-cursor",x.className)});return _.isValidElement(x)?_.cloneElement(x,N):_.createElement(w,N)}var Yce=["item"],Wce=["children","className","width","height","style","compact","title","desc"];function bs(e){"@babel/helpers - typeof";return bs=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},bs(e)}function Bl(){return Bl=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},Bl.apply(this,arguments)}function VD(e,t){return Qce(e)||Xce(e,t)||Jz(e,t)||Kce()}function Kce(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
349
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,l,s,c=[],f=!0,d=!1;try{if(l=(n=n.call(e)).next,t!==0)for(;!(f=(r=l.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(m){d=!0,i=m}finally{try{if(!f&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(d)throw i}}return c}}function Qce(e){if(Array.isArray(e))return e}function YD(e,t){if(e==null)return{};var n=Zce(e,t),r,i;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(i=0;i<l.length;i++)r=l[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zce(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 Jce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function efe(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,e5(r.key),r)}}function tfe(e,t,n){return t&&efe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nfe(e,t,n){return t=xp(t),rfe(e,Zz()?Reflect.construct(t,n||[],xp(e).constructor):t.apply(e,n))}function rfe(e,t){if(t&&(bs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return afe(e)}function afe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Zz=function(){return!!e})()}function xp(e){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xp(e)}function ife(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nS(e,t)}function nS(e,t){return nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nS(e,t)}function xs(e){return sfe(e)||lfe(e)||Jz(e)||ofe()}function ofe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
350
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jz(e,t){if(e){if(typeof e=="string")return rS(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 rS(e,t)}}function lfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sfe(e){if(Array.isArray(e))return rS(e)}function rS(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 WD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function se(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){je(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 je(e,t,n){return t=e5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e5(e){var t=ufe(e,"string");return bs(t)=="symbol"?t:t+""}function ufe(e,t){if(bs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cfe={xAxis:["bottom","top"],yAxis:["left","right"]},ffe={width:"100%",height:"100%"},t5={x:0,y:0};function th(e){return e}var dfe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},hfe=function(t,n,r,i){var l=n.find(function(m){return m&&m.index===r});if(l){if(t==="horizontal")return{x:l.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:l.coordinate};if(t==="centric"){var s=l.coordinate,c=i.radius;return se(se(se({},i),sn(i.cx,i.cy,c,s)),{},{angle:s,radius:c})}var f=l.coordinate,d=i.angle;return se(se(se({},i),sn(i.cx,i.cy,f,d)),{},{angle:d,radius:f})}return t5},jm=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,l=n.dataEndIndex,s=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(xs(c),xs(d)):c},[]);return s.length>0?s:t&&t.length&&ye(i)&&ye(l)?t.slice(i,l+1):[]};function n5(e){return e==="number"?[0,"auto"]:void 0}var aS=function(t,n,r,i){var l=t.graphicalItems,s=t.tooltipAxis,c=jm(n,t);return r<0||!l||!l.length||r>=c.length?null:l.reduce(function(f,d){var m,p=(m=d.props.data)!==null&&m!==void 0?m:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var y;if(s.dataKey&&!s.allowDuplicatedCategory){var x=p===void 0?c:p;y=Eh(x,s.dataKey,i)}else y=p&&p[r]||c[r];return y?[].concat(xs(f),[nz(d,y)]):f},[])},KD=function(t,n,r,i){var l=i||{x:t.chartX,y:t.chartY},s=dfe(l,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=Ere(s,c,d,f);if(m>=0&&d){var p=d[m]&&d[m].value,y=aS(t,n,m,p),x=hfe(r,c,m,l);return{activeTooltipIndex:m,activeLabel:p,activePayload:y,activeCoordinate:x}}return null},pfe=function(t,n){var r=n.axes,i=n.graphicalItems,l=n.axisType,s=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,p=t.children,y=t.stackOffset,x=J4(m,l);return r.reduce(function(O,w){var S,E=w.type.defaultProps!==void 0?se(se({},w.type.defaultProps),w.props):w.props,T=E.type,A=E.dataKey,M=E.allowDataOverflow,j=E.allowDuplicatedCategory,N=E.scale,R=E.ticks,P=E.includeHidden,L=E[s];if(O[L])return O;var Y=jm(t.data,{graphicalItems:i.filter(function(F){var X,ae=s in F.props?F.props[s]:(X=F.type.defaultProps)===null||X===void 0?void 0:X[s];return ae===L}),dataStartIndex:f,dataEndIndex:d}),z=Y.length,H,V,Q;Bce(E.domain,M,T)&&(H=w1(E.domain,null,M),x&&(T==="number"||N!=="auto")&&(Q=rc(Y,A,"category")));var K=n5(T);if(!H||H.length===0){var k,q=(k=E.domain)!==null&&k!==void 0?k:K;if(A){if(H=rc(Y,A,T),T==="category"&&x){var B=mK(H);j&&B?(V=H,H=lp(0,z)):j||(H=oP(q,H,w).reduce(function(F,X){return F.indexOf(X)>=0?F:[].concat(xs(F),[X])},[]))}else if(T==="category")j?H=H.filter(function(F){return F!==""&&!ze(F)}):H=oP(q,H,w).reduce(function(F,X){return F.indexOf(X)>=0||X===""||ze(X)?F:[].concat(xs(F),[X])},[]);else if(T==="number"){var W=Mre(Y,i.filter(function(F){var X,ae,de=s in F.props?F.props[s]:(X=F.type.defaultProps)===null||X===void 0?void 0:X[s],ge="hide"in F.props?F.props.hide:(ae=F.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return de===L&&(P||!ge)}),A,l,m);W&&(H=W)}x&&(T==="number"||N!=="auto")&&(Q=rc(Y,A,"category"))}else x?H=lp(0,z):c&&c[L]&&c[L].hasStack&&T==="number"?H=y==="expand"?[0,1]:tz(c[L].stackGroups,f,d):H=Z4(Y,i.filter(function(F){var X=s in F.props?F.props[s]:F.type.defaultProps[s],ae="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return X===L&&(P||!ae)}),T,m,!0);if(T==="number")H=tS(p,H,L,l,R),q&&(H=w1(q,H,M));else if(T==="category"&&q){var le=q,$=H.every(function(F){return le.indexOf(F)>=0});$&&(H=le)}}return se(se({},O),{},je({},L,se(se({},E),{},{axisType:l,domain:H,categoricalDomain:Q,duplicateDomain:V,originalDomain:(S=E.domain)!==null&&S!==void 0?S:K,isCategorical:x,layout:m})))},{})},mfe=function(t,n){var r=n.graphicalItems,i=n.Axis,l=n.axisType,s=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.layout,p=t.children,y=jm(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),x=y.length,O=J4(m,l),w=-1;return r.reduce(function(S,E){var T=E.type.defaultProps!==void 0?se(se({},E.type.defaultProps),E.props):E.props,A=T[s],M=n5("number");if(!S[A]){w++;var j;return O?j=lp(0,x):c&&c[A]&&c[A].hasStack?(j=tz(c[A].stackGroups,f,d),j=tS(p,j,A,l)):(j=w1(M,Z4(y,r.filter(function(N){var R,P,L=s in N.props?N.props[s]:(R=N.type.defaultProps)===null||R===void 0?void 0:R[s],Y="hide"in N.props?N.props.hide:(P=N.type.defaultProps)===null||P===void 0?void 0:P.hide;return L===A&&!Y}),"number",m),i.defaultProps.allowDataOverflow),j=tS(p,j,A,l)),se(se({},S),{},je({},A,se(se({axisType:l},i.defaultProps),{},{hide:!0,orientation:pr(cfe,"".concat(l,".").concat(w%2),null),domain:j,originalDomain:M,isCategorical:O,layout:m})))}return S},{})},vfe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,l=n.AxisComp,s=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,m=t.children,p="".concat(i,"Id"),y=mr(m,l),x={};return y&&y.length?x=pfe(t,{axes:y,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):s&&s.length&&(x=mfe(t,{Axis:l,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},gfe=function(t){var n=Oi(t),r=Na(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:bO(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Zh(n,r)}},XD=function(t){var n=t.children,r=t.defaultShowTooltip,i=Vn(n,cs),l=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(l=i.props.startIndex),i.props.endIndex>=0&&(s=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:l,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},yfe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Pa(n&&n.type);return r&&r.indexOf("Bar")>=0})},QD=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"}},bfe=function(t,n){var r=t.props,i=t.graphicalItems,l=t.xAxisMap,s=l===void 0?{}:l,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,m=r.height,p=r.children,y=r.margin||{},x=Vn(p,cs),O=Vn(p,bo),w=Object.keys(f).reduce(function(j,N){var R=f[N],P=R.orientation;return!R.mirror&&!R.hide?se(se({},j),{},je({},P,j[P]+R.width)):j},{left:y.left||0,right:y.right||0}),S=Object.keys(s).reduce(function(j,N){var R=s[N],P=R.orientation;return!R.mirror&&!R.hide?se(se({},j),{},je({},P,pr(j,"".concat(P))+R.height)):j},{top:y.top||0,bottom:y.bottom||0}),E=se(se({},S),w),T=E.bottom;x&&(E.bottom+=x.props.height||cs.defaultProps.height),O&&n&&(E=jre(E,i,r,n));var A=d-E.left-E.right,M=m-E.top-E.bottom;return se(se({brushBottom:T},E),{},{width:Math.max(A,0),height:Math.max(M,0)})},xfe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},wfe=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,l=i===void 0?"axis":i,s=t.validateTooltipEventTypes,c=s===void 0?["axis"]:s,f=t.axisComponents,d=t.legendContent,m=t.formatAxisMap,p=t.defaultProps,y=function(E,T){var A=T.graphicalItems,M=T.stackGroups,j=T.offset,N=T.updateId,R=T.dataStartIndex,P=T.dataEndIndex,L=E.barSize,Y=E.layout,z=E.barGap,H=E.barCategoryGap,V=E.maxBarSize,Q=QD(Y),K=Q.numericAxisName,k=Q.cateAxisName,q=yfe(A),B=[];return A.forEach(function(W,le){var $=jm(E.data,{graphicalItems:[W],dataStartIndex:R,dataEndIndex:P}),F=W.type.defaultProps!==void 0?se(se({},W.type.defaultProps),W.props):W.props,X=F.dataKey,ae=F.maxBarSize,de=F["".concat(K,"Id")],ge=F["".concat(k,"Id")],ce={},he=f.reduce(function($n,wt){var Qn=T["".concat(wt.axisType,"Map")],Yt=F["".concat(wt.axisType,"Id")];Qn&&Qn[Yt]||wt.axisType==="zAxis"||Co();var zo=Qn[Yt];return se(se({},$n),{},je(je({},wt.axisType,zo),"".concat(wt.axisType,"Ticks"),Na(zo)))},ce),ie=he[k],pe=he["".concat(k,"Ticks")],ve=M&&M[de]&&M[de].hasStack&&Ure(W,M[de].stackGroups),ne=Pa(W.type).indexOf("Bar")>=0,Pe=Zh(ie,pe),Ee=[],Xe=q&&Are({barSize:L,stackGroups:M,totalSize:xfe(he,k)});if(ne){var Ge,at,un=ze(ae)?V:ae,ht=(Ge=(at=Zh(ie,pe,!0))!==null&&at!==void 0?at:un)!==null&&Ge!==void 0?Ge:0;Ee=Tre({barGap:z,barCategoryGap:H,bandSize:ht!==Pe?ht:Pe,sizeList:Xe[ge],maxBarSize:un}),ht!==Pe&&(Ee=Ee.map(function($n){return se(se({},$n),{},{position:se(se({},$n.position),{},{offset:$n.position.offset-ht/2})})}))}var qr=W&&W.type&&W.type.getComposedData;qr&&B.push({props:se(se({},qr(se(se({},he),{},{displayedData:$,props:E,dataKey:X,item:W,bandSize:Pe,barPosition:Ee,offset:j,stackedData:ve,layout:Y,dataStartIndex:R,dataEndIndex:P}))),{},je(je(je({key:W.key||"item-".concat(le)},K,he[K]),k,he[k]),"animationId",N)),childIndex:jK(W,E.children),item:W})}),B},x=function(E,T){var A=E.props,M=E.dataStartIndex,j=E.dataEndIndex,N=E.updateId;if(!xM({props:A}))return null;var R=A.children,P=A.layout,L=A.stackOffset,Y=A.data,z=A.reverseStackOrder,H=QD(P),V=H.numericAxisName,Q=H.cateAxisName,K=mr(R,r),k=zre(Y,K,"".concat(V,"Id"),"".concat(Q,"Id"),L,z),q=f.reduce(function(F,X){var ae="".concat(X.axisType,"Map");return se(se({},F),{},je({},ae,vfe(A,se(se({},X),{},{graphicalItems:K,stackGroups:X.axisType===V&&k,dataStartIndex:M,dataEndIndex:j}))))},{}),B=bfe(se(se({},q),{},{props:A,graphicalItems:K}),T==null?void 0:T.legendBBox);Object.keys(q).forEach(function(F){q[F]=m(A,q[F],B,F.replace("Map",""),n)});var W=q["".concat(Q,"Map")],le=gfe(W),$=y(A,se(se({},q),{},{dataStartIndex:M,dataEndIndex:j,updateId:N,graphicalItems:K,stackGroups:k,offset:B}));return se(se({formattedGraphicalItems:$,graphicalItems:K,offset:B,stackGroups:k},le),q)},O=(function(S){function E(T){var A,M,j;return Jce(this,E),j=nfe(this,E,[T]),je(j,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),je(j,"accessibilityManager",new zce),je(j,"handleLegendBBoxUpdate",function(N){if(N){var R=j.state,P=R.dataStartIndex,L=R.dataEndIndex,Y=R.updateId;j.setState(se({legendBBox:N},x({props:j.props,dataStartIndex:P,dataEndIndex:L,updateId:Y},se(se({},j.state),{},{legendBBox:N}))))}}),je(j,"handleReceiveSyncEvent",function(N,R,P){if(j.props.syncId===N){if(P===j.eventEmitterSymbol&&typeof j.props.syncMethod!="function")return;j.applySyncEvent(R)}}),je(j,"handleBrushChange",function(N){var R=N.startIndex,P=N.endIndex;if(R!==j.state.dataStartIndex||P!==j.state.dataEndIndex){var L=j.state.updateId;j.setState(function(){return se({dataStartIndex:R,dataEndIndex:P},x({props:j.props,dataStartIndex:R,dataEndIndex:P,updateId:L},j.state))}),j.triggerSyncEvent({dataStartIndex:R,dataEndIndex:P})}}),je(j,"handleMouseEnter",function(N){var R=j.getMouseInfo(N);if(R){var P=se(se({},R),{},{isTooltipActive:!0});j.setState(P),j.triggerSyncEvent(P);var L=j.props.onMouseEnter;$e(L)&&L(P,N)}}),je(j,"triggeredAfterMouseMove",function(N){var R=j.getMouseInfo(N),P=R?se(se({},R),{},{isTooltipActive:!0}):{isTooltipActive:!1};j.setState(P),j.triggerSyncEvent(P);var L=j.props.onMouseMove;$e(L)&&L(P,N)}),je(j,"handleItemMouseEnter",function(N){j.setState(function(){return{isTooltipActive:!0,activeItem:N,activePayload:N.tooltipPayload,activeCoordinate:N.tooltipPosition||{x:N.cx,y:N.cy}}})}),je(j,"handleItemMouseLeave",function(){j.setState(function(){return{isTooltipActive:!1}})}),je(j,"handleMouseMove",function(N){N.persist(),j.throttleTriggeredAfterMouseMove(N)}),je(j,"handleMouseLeave",function(N){j.throttleTriggeredAfterMouseMove.cancel();var R={isTooltipActive:!1};j.setState(R),j.triggerSyncEvent(R);var P=j.props.onMouseLeave;$e(P)&&P(R,N)}),je(j,"handleOuterEvent",function(N){var R=TK(N),P=pr(j.props,"".concat(R));if(R&&$e(P)){var L,Y;/.*touch.*/i.test(R)?Y=j.getMouseInfo(N.changedTouches[0]):Y=j.getMouseInfo(N),P((L=Y)!==null&&L!==void 0?L:{},N)}}),je(j,"handleClick",function(N){var R=j.getMouseInfo(N);if(R){var P=se(se({},R),{},{isTooltipActive:!0});j.setState(P),j.triggerSyncEvent(P);var L=j.props.onClick;$e(L)&&L(P,N)}}),je(j,"handleMouseDown",function(N){var R=j.props.onMouseDown;if($e(R)){var P=j.getMouseInfo(N);R(P,N)}}),je(j,"handleMouseUp",function(N){var R=j.props.onMouseUp;if($e(R)){var P=j.getMouseInfo(N);R(P,N)}}),je(j,"handleTouchMove",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.throttleTriggeredAfterMouseMove(N.changedTouches[0])}),je(j,"handleTouchStart",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.handleMouseDown(N.changedTouches[0])}),je(j,"handleTouchEnd",function(N){N.changedTouches!=null&&N.changedTouches.length>0&&j.handleMouseUp(N.changedTouches[0])}),je(j,"handleDoubleClick",function(N){var R=j.props.onDoubleClick;if($e(R)){var P=j.getMouseInfo(N);R(P,N)}}),je(j,"handleContextMenu",function(N){var R=j.props.onContextMenu;if($e(R)){var P=j.getMouseInfo(N);R(P,N)}}),je(j,"triggerSyncEvent",function(N){j.props.syncId!==void 0&&dw.emit(hw,j.props.syncId,N,j.eventEmitterSymbol)}),je(j,"applySyncEvent",function(N){var R=j.props,P=R.layout,L=R.syncMethod,Y=j.state.updateId,z=N.dataStartIndex,H=N.dataEndIndex;if(N.dataStartIndex!==void 0||N.dataEndIndex!==void 0)j.setState(se({dataStartIndex:z,dataEndIndex:H},x({props:j.props,dataStartIndex:z,dataEndIndex:H,updateId:Y},j.state)));else if(N.activeTooltipIndex!==void 0){var V=N.chartX,Q=N.chartY,K=N.activeTooltipIndex,k=j.state,q=k.offset,B=k.tooltipTicks;if(!q)return;if(typeof L=="function")K=L(B,N);else if(L==="value"){K=-1;for(var W=0;W<B.length;W++)if(B[W].value===N.activeLabel){K=W;break}}var le=se(se({},q),{},{x:q.left,y:q.top}),$=Math.min(V,le.x+le.width),F=Math.min(Q,le.y+le.height),X=B[K]&&B[K].value,ae=aS(j.state,j.props.data,K),de=B[K]?{x:P==="horizontal"?B[K].coordinate:$,y:P==="horizontal"?F:B[K].coordinate}:t5;j.setState(se(se({},N),{},{activeLabel:X,activeCoordinate:de,activePayload:ae,activeTooltipIndex:K}))}else j.setState(N)}),je(j,"renderCursor",function(N){var R,P=j.state,L=P.isTooltipActive,Y=P.activeCoordinate,z=P.activePayload,H=P.offset,V=P.activeTooltipIndex,Q=P.tooltipAxisBandSize,K=j.getTooltipEventType(),k=(R=N.props.active)!==null&&R!==void 0?R:L,q=j.props.layout,B=N.key||"_recharts-cursor";return I.createElement(Vce,{key:B,activeCoordinate:Y,activePayload:z,activeTooltipIndex:V,chartName:n,element:N,isActive:k,layout:q,offset:H,tooltipAxisBandSize:Q,tooltipEventType:K})}),je(j,"renderPolarAxis",function(N,R,P){var L=pr(N,"type.axisType"),Y=pr(j.state,"".concat(L,"Map")),z=N.type.defaultProps,H=z!==void 0?se(se({},z),N.props):N.props,V=Y&&Y[H["".concat(L,"Id")]];return _.cloneElement(N,se(se({},V),{},{className:Fe(L,V.className),key:N.key||"".concat(R,"-").concat(P),ticks:Na(V,!0)}))}),je(j,"renderPolarGrid",function(N){var R=N.props,P=R.radialLines,L=R.polarAngles,Y=R.polarRadius,z=j.state,H=z.radiusAxisMap,V=z.angleAxisMap,Q=Oi(H),K=Oi(V),k=K.cx,q=K.cy,B=K.innerRadius,W=K.outerRadius;return _.cloneElement(N,{polarAngles:Array.isArray(L)?L:Na(K,!0).map(function(le){return le.coordinate}),polarRadius:Array.isArray(Y)?Y:Na(Q,!0).map(function(le){return le.coordinate}),cx:k,cy:q,innerRadius:B,outerRadius:W,key:N.key||"polar-grid",radialLines:P})}),je(j,"renderLegend",function(){var N=j.state.formattedGraphicalItems,R=j.props,P=R.children,L=R.width,Y=R.height,z=j.props.margin||{},H=L-(z.left||0)-(z.right||0),V=X4({children:P,formattedGraphicalItems:N,legendWidth:H,legendContent:d});if(!V)return null;var Q=V.item,K=YD(V,Yce);return _.cloneElement(Q,se(se({},K),{},{chartWidth:L,chartHeight:Y,margin:z,onBBoxUpdate:j.handleLegendBBoxUpdate}))}),je(j,"renderTooltip",function(){var N,R=j.props,P=R.children,L=R.accessibilityLayer,Y=Vn(P,Kr);if(!Y)return null;var z=j.state,H=z.isTooltipActive,V=z.activeCoordinate,Q=z.activePayload,K=z.activeLabel,k=z.offset,q=(N=Y.props.active)!==null&&N!==void 0?N:H;return _.cloneElement(Y,{viewBox:se(se({},k),{},{x:k.left,y:k.top}),active:q,label:K,payload:q?Q:[],coordinate:V,accessibilityLayer:L})}),je(j,"renderBrush",function(N){var R=j.props,P=R.margin,L=R.data,Y=j.state,z=Y.offset,H=Y.dataStartIndex,V=Y.dataEndIndex,Q=Y.updateId;return _.cloneElement(N,{key:N.key||"_recharts-brush",onChange:Xd(j.handleBrushChange,N.props.onChange),data:L,x:ye(N.props.x)?N.props.x:z.left,y:ye(N.props.y)?N.props.y:z.top+z.height+z.brushBottom-(P.bottom||0),width:ye(N.props.width)?N.props.width:z.width,startIndex:H,endIndex:V,updateId:"brush-".concat(Q)})}),je(j,"renderReferenceElement",function(N,R,P){if(!N)return null;var L=j,Y=L.clipPathId,z=j.state,H=z.xAxisMap,V=z.yAxisMap,Q=z.offset,K=N.type.defaultProps||{},k=N.props,q=k.xAxisId,B=q===void 0?K.xAxisId:q,W=k.yAxisId,le=W===void 0?K.yAxisId:W;return _.cloneElement(N,{key:N.key||"".concat(R,"-").concat(P),xAxis:H[B],yAxis:V[le],viewBox:{x:Q.left,y:Q.top,width:Q.width,height:Q.height},clipPathId:Y})}),je(j,"renderActivePoints",function(N){var R=N.item,P=N.activePoint,L=N.basePoint,Y=N.childIndex,z=N.isRange,H=[],V=R.props.key,Q=R.item.type.defaultProps!==void 0?se(se({},R.item.type.defaultProps),R.item.props):R.item.props,K=Q.activeDot,k=Q.dataKey,q=se(se({index:Y,dataKey:k,cx:P.x,cy:P.y,r:4,fill:GO(R.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},He(K,!1)),Ah(K));return H.push(E.renderActiveDot(K,q,"".concat(V,"-activePoint-").concat(Y))),L?H.push(E.renderActiveDot(K,se(se({},q),{},{cx:L.x,cy:L.y}),"".concat(V,"-basePoint-").concat(Y))):z&&H.push(null),H}),je(j,"renderGraphicChild",function(N,R,P){var L=j.filterFormatItem(N,R,P);if(!L)return null;var Y=j.getTooltipEventType(),z=j.state,H=z.isTooltipActive,V=z.tooltipAxis,Q=z.activeTooltipIndex,K=z.activeLabel,k=j.props.children,q=Vn(k,Kr),B=L.props,W=B.points,le=B.isRange,$=B.baseLine,F=L.item.type.defaultProps!==void 0?se(se({},L.item.type.defaultProps),L.item.props):L.item.props,X=F.activeDot,ae=F.hide,de=F.activeBar,ge=F.activeShape,ce=!!(!ae&&H&&q&&(X||de||ge)),he={};Y!=="axis"&&q&&q.props.trigger==="click"?he={onClick:Xd(j.handleItemMouseEnter,N.props.onClick)}:Y!=="axis"&&(he={onMouseLeave:Xd(j.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:Xd(j.handleItemMouseEnter,N.props.onMouseEnter)});var ie=_.cloneElement(N,se(se({},L.props),he));function pe(wt){return typeof V.dataKey=="function"?V.dataKey(wt.payload):null}if(ce)if(Q>=0){var ve,ne;if(V.dataKey&&!V.allowDuplicatedCategory){var Pe=typeof V.dataKey=="function"?pe:"payload.".concat(V.dataKey.toString());ve=Eh(W,Pe,K),ne=le&&$&&Eh($,Pe,K)}else ve=W==null?void 0:W[Q],ne=le&&$&&$[Q];if(ge||de){var Ee=N.props.activeIndex!==void 0?N.props.activeIndex:Q;return[_.cloneElement(N,se(se(se({},L.props),he),{},{activeIndex:Ee})),null,null]}if(!ze(ve))return[ie].concat(xs(j.renderActivePoints({item:L,activePoint:ve,basePoint:ne,childIndex:Q,isRange:le})))}else{var Xe,Ge=(Xe=j.getItemByXY(j.state.activeCoordinate))!==null&&Xe!==void 0?Xe:{graphicalItem:ie},at=Ge.graphicalItem,un=at.item,ht=un===void 0?N:un,qr=at.childIndex,$n=se(se(se({},L.props),he),{},{activeIndex:qr});return[_.cloneElement(ht,$n),null,null]}return le?[ie,null,null]:[ie,null]}),je(j,"renderCustomized",function(N,R,P){return _.cloneElement(N,se(se({key:"recharts-customized-".concat(P)},j.props),j.state))}),je(j,"renderMap",{CartesianGrid:{handler:th,once:!0},ReferenceArea:{handler:j.renderReferenceElement},ReferenceLine:{handler:th},ReferenceDot:{handler:j.renderReferenceElement},XAxis:{handler:th},YAxis:{handler:th},Brush:{handler:j.renderBrush,once:!0},Bar:{handler:j.renderGraphicChild},Line:{handler:j.renderGraphicChild},Area:{handler:j.renderGraphicChild},Radar:{handler:j.renderGraphicChild},RadialBar:{handler:j.renderGraphicChild},Scatter:{handler:j.renderGraphicChild},Pie:{handler:j.renderGraphicChild},Funnel:{handler:j.renderGraphicChild},Tooltip:{handler:j.renderCursor,once:!0},PolarGrid:{handler:j.renderPolarGrid,once:!0},PolarAngleAxis:{handler:j.renderPolarAxis},PolarRadiusAxis:{handler:j.renderPolarAxis},Customized:{handler:j.renderCustomized}}),j.clipPathId="".concat((A=T.id)!==null&&A!==void 0?A:cf("recharts"),"-clip"),j.throttleTriggeredAfterMouseMove=K3(j.triggeredAfterMouseMove,(M=T.throttleDelay)!==null&&M!==void 0?M:1e3/60),j.state={},j}return ife(E,S),tfe(E,[{key:"componentDidMount",value:function(){var A,M;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(A=this.props.margin.left)!==null&&A!==void 0?A:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var A=this.props,M=A.children,j=A.data,N=A.height,R=A.layout,P=Vn(M,Kr);if(P){var L=P.props.defaultIndex;if(!(typeof L!="number"||L<0||L>this.state.tooltipTicks.length-1)){var Y=this.state.tooltipTicks[L]&&this.state.tooltipTicks[L].value,z=aS(this.state,j,L,Y),H=this.state.tooltipTicks[L].coordinate,V=(this.state.offset.top+N)/2,Q=R==="horizontal",K=Q?{x:H,y:V}:{y:H,x:V},k=this.state.formattedGraphicalItems.find(function(B){var W=B.item;return W.type.name==="Scatter"});k&&(K=se(se({},K),k.props.points[L].tooltipPosition),z=k.props.points[L].tooltipPayload);var q={activeTooltipIndex:L,isTooltipActive:!0,activeLabel:Y,activePayload:z,activeCoordinate:K};this.setState(q),this.renderCursor(P),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(A,M){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==M.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==A.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==A.margin){var j,N;this.accessibilityManager.setDetails({offset:{left:(j=this.props.margin.left)!==null&&j!==void 0?j:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0}})}return null}},{key:"componentDidUpdate",value:function(A){Hw([Vn(A.children,Kr)],[Vn(this.props.children,Kr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var A=Vn(this.props.children,Kr);if(A&&typeof A.props.shared=="boolean"){var M=A.props.shared?"axis":"item";return c.indexOf(M)>=0?M:l}return l}},{key:"getMouseInfo",value:function(A){if(!this.container)return null;var M=this.container,j=M.getBoundingClientRect(),N=mJ(j),R={chartX:Math.round(A.pageX-N.left),chartY:Math.round(A.pageY-N.top)},P=j.width/M.offsetWidth||1,L=this.inRange(R.chartX,R.chartY,P);if(!L)return null;var Y=this.state,z=Y.xAxisMap,H=Y.yAxisMap,V=this.getTooltipEventType(),Q=KD(this.state,this.props.data,this.props.layout,L);if(V!=="axis"&&z&&H){var K=Oi(z).scale,k=Oi(H).scale,q=K&&K.invert?K.invert(R.chartX):null,B=k&&k.invert?k.invert(R.chartY):null;return se(se({},R),{},{xValue:q,yValue:B},Q)}return Q?se(se({},R),Q):null}},{key:"inRange",value:function(A,M){var j=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,N=this.props.layout,R=A/j,P=M/j;if(N==="horizontal"||N==="vertical"){var L=this.state.offset,Y=R>=L.left&&R<=L.left+L.width&&P>=L.top&&P<=L.top+L.height;return Y?{x:R,y:P}:null}var z=this.state,H=z.angleAxisMap,V=z.radiusAxisMap;if(H&&V){var Q=Oi(H);return uP({x:R,y:P},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var A=this.props.children,M=this.getTooltipEventType(),j=Vn(A,Kr),N={};j&&M==="axis"&&(j.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 R=Ah(this.props,this.handleOuterEvent);return se(se({},R),N)}},{key:"addListener",value:function(){dw.on(hw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){dw.removeListener(hw,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(A,M,j){for(var N=this.state.formattedGraphicalItems,R=0,P=N.length;R<P;R++){var L=N[R];if(L.item===A||L.props.key===A.key||M===Pa(L.item.type)&&j===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var A=this.clipPathId,M=this.state.offset,j=M.left,N=M.top,R=M.height,P=M.width;return I.createElement("defs",null,I.createElement("clipPath",{id:A},I.createElement("rect",{x:j,y:N,height:R,width:P})))}},{key:"getXScales",value:function(){var A=this.state.xAxisMap;return A?Object.entries(A).reduce(function(M,j){var N=VD(j,2),R=N[0],P=N[1];return se(se({},M),{},je({},R,P.scale))},{}):null}},{key:"getYScales",value:function(){var A=this.state.yAxisMap;return A?Object.entries(A).reduce(function(M,j){var N=VD(j,2),R=N[0],P=N[1];return se(se({},M),{},je({},R,P.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(A){var M;return(M=this.state.xAxisMap)===null||M===void 0||(M=M[A])===null||M===void 0?void 0:M.scale}},{key:"getYScaleByAxisId",value:function(A){var M;return(M=this.state.yAxisMap)===null||M===void 0||(M=M[A])===null||M===void 0?void 0:M.scale}},{key:"getItemByXY",value:function(A){var M=this.state,j=M.formattedGraphicalItems,N=M.activeItem;if(j&&j.length)for(var R=0,P=j.length;R<P;R++){var L=j[R],Y=L.props,z=L.item,H=z.type.defaultProps!==void 0?se(se({},z.type.defaultProps),z.props):z.props,V=Pa(z.type);if(V==="Bar"){var Q=(Y.data||[]).find(function(B){return Poe(A,B)});if(Q)return{graphicalItem:L,payload:Q}}else if(V==="RadialBar"){var K=(Y.data||[]).find(function(B){return uP(A,B)});if(K)return{graphicalItem:L,payload:K}}else if(bm(L,N)||xm(L,N)||qc(L,N)){var k=Ole({graphicalItem:L,activeTooltipItem:N,itemData:H.data}),q=H.activeIndex===void 0?k:H.activeIndex;return{graphicalItem:se(se({},L),{},{childIndex:q}),payload:qc(L,N)?H.data[k]:L.props.data[k]}}}return null}},{key:"render",value:function(){var A=this;if(!xM(this))return null;var M=this.props,j=M.children,N=M.className,R=M.width,P=M.height,L=M.style,Y=M.compact,z=M.title,H=M.desc,V=YD(M,Wce),Q=He(V,!1);if(Y)return I.createElement(TD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement(Gw,Bl({},Q,{width:R,height:P,title:z,desc:H}),this.renderClipPath(),SM(j,this.renderMap)));if(this.props.accessibilityLayer){var K,k;Q.tabIndex=(K=this.props.tabIndex)!==null&&K!==void 0?K:0,Q.role=(k=this.props.role)!==null&&k!==void 0?k:"application",Q.onKeyDown=function(B){A.accessibilityManager.keyboardEvent(B)},Q.onFocus=function(){A.accessibilityManager.focus()}}var q=this.parseEventsOfWrapper();return I.createElement(TD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement("div",Bl({className:Fe("recharts-wrapper",N),style:se({position:"relative",cursor:"default",width:R,height:P},L)},q,{ref:function(W){A.container=W}}),I.createElement(Gw,Bl({},Q,{width:R,height:P,title:z,desc:H,style:ffe}),this.renderClipPath(),SM(j,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(_.Component);je(O,"displayName",n),je(O,"defaultProps",se({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),je(O,"getDerivedStateFromProps",function(S,E){var T=S.dataKey,A=S.data,M=S.children,j=S.width,N=S.height,R=S.layout,P=S.stackOffset,L=S.margin,Y=E.dataStartIndex,z=E.dataEndIndex;if(E.updateId===void 0){var H=XD(S);return se(se(se({},H),{},{updateId:0},x(se(se({props:S},H),{},{updateId:0}),E)),{},{prevDataKey:T,prevData:A,prevWidth:j,prevHeight:N,prevLayout:R,prevStackOffset:P,prevMargin:L,prevChildren:M})}if(T!==E.prevDataKey||A!==E.prevData||j!==E.prevWidth||N!==E.prevHeight||R!==E.prevLayout||P!==E.prevStackOffset||!Vl(L,E.prevMargin)){var V=XD(S),Q={chartX:E.chartX,chartY:E.chartY,isTooltipActive:E.isTooltipActive},K=se(se({},KD(E,A,R)),{},{updateId:E.updateId+1}),k=se(se(se({},V),Q),K);return se(se(se({},k),x(se({props:S},k),E)),{},{prevDataKey:T,prevData:A,prevWidth:j,prevHeight:N,prevLayout:R,prevStackOffset:P,prevMargin:L,prevChildren:M})}if(!Hw(M,E.prevChildren)){var q,B,W,le,$=Vn(M,cs),F=$&&(q=(B=$.props)===null||B===void 0?void 0:B.startIndex)!==null&&q!==void 0?q:Y,X=$&&(W=(le=$.props)===null||le===void 0?void 0:le.endIndex)!==null&&W!==void 0?W:z,ae=F!==Y||X!==z,de=!ze(A),ge=de&&!ae?E.updateId:E.updateId+1;return se(se({updateId:ge},x(se(se({props:S},E),{},{updateId:ge,dataStartIndex:F,dataEndIndex:X}),E)),{},{prevChildren:M,dataStartIndex:F,dataEndIndex:X})}return null}),je(O,"renderActiveDot",function(S,E,T){var A;return _.isValidElement(S)?A=_.cloneElement(S,E):$e(S)?A=S(E):A=I.createElement(YO,E),I.createElement(Ct,{className:"recharts-active-dot",key:T},A)});var w=_.forwardRef(function(E,T){return I.createElement(O,Bl({},E,{ref:T}))});return w.displayName=O.displayName,w},Sfe=wfe({chartName:"LineChart",GraphicalChild:Xr,axisComponents:[{axisType:"xAxis",AxisComp:Am},{axisType:"yAxis",AxisComp:Tm}],formatAxisMap:bse});function Ofe({data:e}){const t=_fe(e);return t.length===0?v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Email Metrics"}),v.jsx(gn,{children:"Performance over the last 24 hours"})]}),v.jsx(Ft,{children:v.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"No metrics data available yet"})})]}):v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Email Metrics"}),v.jsx(gn,{children:"Performance over the last 24 hours"})]}),v.jsx(Ft,{children:v.jsx(sJ,{height:400,width:"100%",children:v.jsxs(Sfe,{data:t,children:[v.jsx(qz,{className:"stroke-muted",strokeDasharray:"3 3"}),v.jsx(Am,{className:"text-xs",dataKey:"timestamp",tickFormatter:n=>fC(new Date(n),"HH:mm")}),v.jsx(Tm,{className:"text-xs"}),v.jsx(Kr,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))"},labelFormatter:n=>fC(new Date(n),"MMM d, HH:mm")}),v.jsx(bo,{}),v.jsx(Xr,{dataKey:"sends",name:"Sends",stroke:"hsl(var(--primary))",strokeWidth:2,type:"monotone"}),v.jsx(Xr,{dataKey:"deliveries",name:"Deliveries",stroke:"#82ca9d",strokeWidth:2,type:"monotone"}),v.jsx(Xr,{dataKey:"opens",name:"Opens",stroke:"#8884d8",strokeWidth:2,type:"monotone"}),v.jsx(Xr,{dataKey:"clicks",name:"Clicks",stroke:"#ffc658",strokeWidth:2,type:"monotone"}),v.jsx(Xr,{dataKey:"bounces",name:"Bounces",stroke:"#ff7300",strokeWidth:2,type:"monotone"}),v.jsx(Xr,{dataKey:"complaints",name:"Complaints",stroke:"hsl(var(--destructive))",strokeWidth:2,type:"monotone"})]})})})]})}function _fe(e){const t=new Map;[...e.sends,...e.bounces,...e.complaints,...e.deliveries,...e.opens,...e.clicks].forEach(n=>{t.has(n.timestamp)||t.set(n.timestamp,{timestamp:n.timestamp,sends:0,bounces:0,complaints:0,deliveries:0,opens:0,clicks:0})});for(const n of e.sends)t.get(n.timestamp).sends=n.value;for(const n of e.bounces)t.get(n.timestamp).bounces=n.value;for(const n of e.complaints)t.get(n.timestamp).complaints=n.value;for(const n of e.deliveries)t.get(n.timestamp).deliveries=n.value;for(const n of e.opens)t.get(n.timestamp).opens=n.value;for(const n of e.clicks)t.get(n.timestamp).clicks=n.value;return Array.from(t.values()).sort((n,r)=>n.timestamp-r.timestamp)}var r_="Progress",a_=100,[Efe]=Rk(r_),[Afe,Tfe]=Efe(r_),r5=_.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:l=jfe,...s}=e;(i||i===0)&&!ZD(i)&&console.error(Cfe(`${i}`,"Progress"));const c=ZD(i)?i:a_;r!==null&&!JD(r,c)&&console.error(Mfe(`${r}`,"Progress"));const f=JD(r,c)?r:null,d=wp(f)?l(f,c):void 0;return v.jsx(Afe,{scope:n,value:f,max:c,children:v.jsx(Ro.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":wp(f)?f:void 0,"aria-valuetext":d,role:"progressbar","data-state":o5(f,c),"data-value":f??void 0,"data-max":c,...s,ref:t})})});r5.displayName=r_;var a5="ProgressIndicator",i5=_.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=Tfe(a5,n);return v.jsx(Ro.div,{"data-state":o5(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});i5.displayName=a5;function jfe(e,t){return`${Math.round(e/t*100)}%`}function o5(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function wp(e){return typeof e=="number"}function ZD(e){return wp(e)&&!isNaN(e)&&e>0}function JD(e,t){return wp(e)&&!isNaN(e)&&e<=t&&e>=0}function Cfe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${a_}\`.`}function Mfe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
351
|
-
- a positive number
|
|
352
|
-
- less than the value passed to \`max\` (or ${a_} if no \`max\` prop is set)
|
|
353
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
354
|
-
|
|
355
|
-
Defaulting to \`null\`.`}var Nfe=r5,Rfe=i5;function Pfe({className:e,value:t,...n}){return v.jsx(Nfe,{className:me("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),"data-slot":"progress",...n,children:v.jsx(Rfe,{className:"h-full w-full flex-1 bg-primary transition-all","data-slot":"progress-indicator",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Dfe({quota:e}){const t=e.sentLast24Hours/e.max24HourSend*100,n=t>90?"destructive":t>70?"warning":"default";return v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsxs(ln,{className:"flex items-center justify-between",children:["SES Quota",v.jsxs(pn,{variant:n==="destructive"?"destructive":"secondary",children:[t.toFixed(1),"% used"]})]}),v.jsx(gn,{children:"24-hour sending limits"})]}),v.jsxs(Ft,{className:"space-y-4",children:[v.jsxs("div",{children:[v.jsxs("div",{className:"mb-2 flex justify-between text-sm",children:[v.jsx("span",{className:"text-muted-foreground",children:"Emails sent"}),v.jsxs("span",{className:"font-medium",children:[e.sentLast24Hours.toLocaleString()," /"," ",e.max24HourSend.toLocaleString()]})]}),v.jsx(Pfe,{className:"h-2",value:t})]}),v.jsxs("div",{className:"flex items-center justify-between border-t pt-2",children:[v.jsx("span",{className:"text-muted-foreground text-sm",children:"Max send rate"}),v.jsxs("span",{className:"font-medium text-sm",children:[e.maxSendRate," emails/sec"]})]})]})]})}function kfe(){const[e,t]=_.useState("1"),[n,r]=_.useState(null),[i,l]=_.useState(!0),[s,c]=_.useState(null);if(_.useEffect(()=>{async function T(){try{l(!0),c(null);let A=sessionStorage.getItem("wraps-auth-token");if(A||(A=new URLSearchParams(window.location.search).get("token"),A&&sessionStorage.setItem("wraps-auth-token",A)),!A)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const M=Number.parseInt(e,10),j=Date.now()-M*24*60*60*1e3,N=Date.now(),R=await fetch(`/api/metrics?startTime=${j}&endTime=${N}&token=${A}`);if(!R.ok){let L="Failed to fetch email metrics";try{L=(await R.json()).error||L}catch{L=`${R.status}: ${R.statusText}`}throw new Error(L)}const P=await R.json();r(P)}catch(A){const M=A instanceof Error?A.message:"Unknown error";c(M),console.error("Error fetching email metrics:",A)}finally{l(!1)}}T()},[e]),s)return v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),v.jsx("div",{className:"mt-4 rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:s})]});if(i||!n)return v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),v.jsx("div",{className:"mt-4 flex h-[400px] items-center justify-center text-muted-foreground",children:"Loading metrics..."})]});const f=n.metrics.sends.reduce((T,A)=>T+A.value,0)||0,d=n.metrics.deliveries.reduce((T,A)=>T+A.value,0)||0,m=n.metrics.bounces.reduce((T,A)=>T+A.value,0)||0,p=n.metrics.complaints.reduce((T,A)=>T+A.value,0)||0,y=n.metrics.opens.reduce((T,A)=>T+A.value,0)||0,x=n.metrics.clicks.reduce((T,A)=>T+A.value,0)||0,O=f>0?d/f*100:0,w=d>0?y/d*100:0,S=y>0?x/y*100:0,E=[{title:"Emails Sent",value:f.toLocaleString(),description:`${e==="1"?"Last 24 hours":`Last ${e} days`}`,icon:ql},{title:"Delivery Rate",value:`${O.toFixed(1)}%`,description:`${d.toLocaleString()} delivered`,icon:$6},{title:"Open Rate",value:`${w.toFixed(1)}%`,description:`${y.toLocaleString()} opened`,icon:pS},{title:"Click Rate",value:`${S.toFixed(1)}%`,description:`${x.toLocaleString()} clicked`,icon:I6}];return v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),v.jsxs(Lw,{onValueChange:t,value:e,children:[v.jsx(zw,{className:"w-[180px]",children:v.jsx(Iw,{})}),v.jsxs(Bw,{children:[v.jsx(Qt,{value:"1",children:"Last 24 hours"}),v.jsx(Qt,{value:"7",children:"Last 7 days"}),v.jsx(Qt,{value:"15",children:"Last 15 days"}),v.jsx(Qt,{value:"30",children:"Last 30 days"}),v.jsx(Qt,{value:"90",children:"Last 90 days"})]})]})]}),v.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:E.map(T=>v.jsxs($t,{children:[v.jsxs(Lt,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[v.jsx(ln,{className:"font-medium text-sm",children:T.title}),v.jsx(T.icon,{className:"h-4 w-4 text-muted-foreground"})]}),v.jsxs(Ft,{children:[v.jsx("div",{className:"font-bold text-2xl",children:T.value}),v.jsx("p",{className:"text-muted-foreground text-xs",children:T.description})]})]},T.title))}),v.jsx(Dfe,{quota:n.quota}),v.jsx(Ofe,{data:n.metrics}),v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Metrics Summary"}),v.jsx(gn,{children:"Detailed breakdown of your email performance"})]}),v.jsxs(Ft,{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Total Emails Sent"}),v.jsx(pn,{variant:"outline",children:f.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Successfully Delivered"}),v.jsx(pn,{variant:"default",children:d.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Opened"}),v.jsx(pn,{variant:"default",children:y.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Clicked"}),v.jsx(pn,{variant:"default",children:x.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Bounced"}),v.jsx(pn,{variant:"destructive",children:m.toLocaleString()})]}),v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("span",{className:"text-sm",children:"Complaints"}),v.jsx(pn,{variant:"destructive",children:p.toLocaleString()})]})]})]})]})}function $fe(e){if(typeof document>"u")return;let t=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css",t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}const Lfe=e=>{switch(e){case"success":return Bfe;case"info":return Ufe;case"warning":return qfe;case"error":return Hfe;default:return null}},Ife=Array(12).fill(0),zfe=({visible:e,className:t})=>I.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},I.createElement("div",{className:"sonner-spinner"},Ife.map((n,r)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Bfe=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",clipRule:"evenodd"})),qfe=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",clipRule:"evenodd"})),Ufe=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",clipRule:"evenodd"})),Hfe=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},I.createElement("path",{fillRule:"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",clipRule:"evenodd"})),Ffe=I.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"},I.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"})),Gfe=()=>{const[e,t]=I.useState(document.hidden);return I.useEffect(()=>{const n=()=>{t(document.hidden)};return document.addEventListener("visibilitychange",n),()=>window.removeEventListener("visibilitychange",n)},[]),e};let iS=1;class Vfe{constructor(){this.subscribe=t=>(this.subscribers.push(t),()=>{const n=this.subscribers.indexOf(t);this.subscribers.splice(n,1)}),this.publish=t=>{this.subscribers.forEach(n=>n(t))},this.addToast=t=>{this.publish(t),this.toasts=[...this.toasts,t]},this.create=t=>{var n;const{message:r,...i}=t,l=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:iS++,s=this.toasts.find(f=>f.id===l),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(l)&&this.dismissedToasts.delete(l),s?this.toasts=this.toasts.map(f=>f.id===l?(this.publish({...f,...t,id:l,title:r}),{...f,...t,id:l,dismissible:c,title:r}):f):this.addToast({title:r,...i,dismissible:c,id:l}),l},this.dismiss=t=>(t?(this.dismissedToasts.add(t),requestAnimationFrame(()=>this.subscribers.forEach(n=>n({id:t,dismiss:!0})))):this.toasts.forEach(n=>{this.subscribers.forEach(r=>r({id:n.id,dismiss:!0}))}),t),this.message=(t,n)=>this.create({...n,message:t}),this.error=(t,n)=>this.create({...n,message:t,type:"error"}),this.success=(t,n)=>this.create({...n,type:"success",message:t}),this.info=(t,n)=>this.create({...n,type:"info",message:t}),this.warning=(t,n)=>this.create({...n,type:"warning",message:t}),this.loading=(t,n)=>this.create({...n,type:"loading",message:t}),this.promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:"loading",message:n.loading,description:typeof n.description!="function"?n.description:void 0}));const i=Promise.resolve(t instanceof Function?t():t);let l=r!==void 0,s;const c=i.then(async d=>{if(s=["resolve",d],I.isValidElement(d))l=!1,this.create({id:r,type:"default",message:d});else if(Wfe(d)&&!d.ok){l=!1;const p=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,y=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,O=typeof p=="object"&&!I.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:y,...O})}else if(d instanceof Error){l=!1;const p=typeof n.error=="function"?await n.error(d):n.error,y=typeof n.description=="function"?await n.description(d):n.description,O=typeof p=="object"&&!I.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:y,...O})}else if(n.success!==void 0){l=!1;const p=typeof n.success=="function"?await n.success(d):n.success,y=typeof n.description=="function"?await n.description(d):n.description,O=typeof p=="object"&&!I.isValidElement(p)?p:{message:p};this.create({id:r,type:"success",description:y,...O})}}).catch(async d=>{if(s=["reject",d],n.error!==void 0){l=!1;const m=typeof n.error=="function"?await n.error(d):n.error,p=typeof n.description=="function"?await n.description(d):n.description,x=typeof m=="object"&&!I.isValidElement(m)?m:{message:m};this.create({id:r,type:"error",description:p,...x})}}).finally(()=>{l&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((d,m)=>c.then(()=>s[0]==="reject"?m(s[1]):d(s[1])).catch(m));return typeof r!="string"&&typeof r!="number"?{unwrap:f}:Object.assign(r,{unwrap:f})},this.custom=(t,n)=>{const r=(n==null?void 0:n.id)||iS++;return this.create({jsx:t(r),id:r,...n}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}}const Rn=new Vfe,Yfe=(e,t)=>{const n=(t==null?void 0:t.id)||iS++;return Rn.addToast({title:e,...t,id:n}),n},Wfe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",Kfe=Yfe,Xfe=()=>Rn.toasts,Qfe=()=>Rn.getActiveToasts(),Pn=Object.assign(Kfe,{success:Rn.success,info:Rn.info,warning:Rn.warning,error:Rn.error,custom:Rn.custom,message:Rn.message,promise:Rn.promise,dismiss:Rn.dismiss,loading:Rn.loading},{getHistory:Xfe,getToasts:Qfe});$fe("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);background:var(--normal-bg);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}");function nh(e){return e.label!==void 0}const Zfe=3,Jfe="24px",ede="16px",ek=4e3,tde=356,nde=14,rde=45,ade=200;function Wr(...e){return e.filter(Boolean).join(" ")}function ide(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const ode=e=>{var t,n,r,i,l,s,c,f,d;const{invert:m,toast:p,unstyled:y,interacting:x,setHeights:O,visibleToasts:w,heights:S,index:E,toasts:T,expanded:A,removeToast:M,defaultRichColors:j,closeButton:N,style:R,cancelButtonStyle:P,actionButtonStyle:L,className:Y="",descriptionClassName:z="",duration:H,position:V,gap:Q,expandByDefault:K,classNames:k,icons:q,closeButtonAriaLabel:B="Close toast"}=e,[W,le]=I.useState(null),[$,F]=I.useState(null),[X,ae]=I.useState(!1),[de,ge]=I.useState(!1),[ce,he]=I.useState(!1),[ie,pe]=I.useState(!1),[ve,ne]=I.useState(!1),[Pe,Ee]=I.useState(0),[Xe,Ge]=I.useState(0),at=I.useRef(p.duration||H||ek),un=I.useRef(null),ht=I.useRef(null),qr=E===0,$n=E+1<=w,wt=p.type,Qn=p.dismissible!==!1,Yt=p.className||"",zo=p.descriptionClassName||"",Ii=I.useMemo(()=>S.findIndex(Ce=>Ce.toastId===p.id)||0,[S,p.id]),yf=I.useMemo(()=>{var Ce;return(Ce=p.closeButton)!=null?Ce:N},[p.closeButton,N]),zi=I.useMemo(()=>p.duration||H||ek,[p.duration,H]),qs=I.useRef(0),sa=I.useRef(0),bf=I.useRef(0),Ya=I.useRef(null),[Bi,yn]=V.split("-"),br=I.useMemo(()=>S.reduce((Ce,gt,Wt)=>Wt>=Ii?Ce:Ce+gt.height,0),[S,Ii]),cn=Gfe(),Pm=p.invert||m,Us=wt==="loading";sa.current=I.useMemo(()=>Ii*Q+br,[Ii,br]),I.useEffect(()=>{at.current=zi},[zi]),I.useEffect(()=>{ae(!0)},[]),I.useEffect(()=>{const Ce=ht.current;if(Ce){const gt=Ce.getBoundingClientRect().height;return Ge(gt),O(Wt=>[{toastId:p.id,height:gt,position:p.position},...Wt]),()=>O(Wt=>Wt.filter(fn=>fn.toastId!==p.id))}},[O,p.id]),I.useLayoutEffect(()=>{if(!X)return;const Ce=ht.current,gt=Ce.style.height;Ce.style.height="auto";const Wt=Ce.getBoundingClientRect().height;Ce.style.height=gt,Ge(Wt),O(fn=>fn.find(St=>St.toastId===p.id)?fn.map(St=>St.toastId===p.id?{...St,height:Wt}:St):[{toastId:p.id,height:Wt,position:p.position},...fn])},[X,p.title,p.description,O,p.id,p.jsx,p.action,p.cancel]);const Ur=I.useCallback(()=>{ge(!0),Ee(sa.current),O(Ce=>Ce.filter(gt=>gt.toastId!==p.id)),setTimeout(()=>{M(p)},ade)},[p,M,O,sa]);I.useEffect(()=>{if(p.promise&&wt==="loading"||p.duration===1/0||p.type==="loading")return;let Ce;return A||x||cn?(()=>{if(bf.current<qs.current){const fn=new Date().getTime()-qs.current;at.current=at.current-fn}bf.current=new Date().getTime()})():(()=>{at.current!==1/0&&(qs.current=new Date().getTime(),Ce=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),Ur()},at.current))})(),()=>clearTimeout(Ce)},[A,x,p,wt,cn,Ur]),I.useEffect(()=>{p.delete&&(Ur(),p.onDismiss==null||p.onDismiss.call(p,p))},[Ur,p.delete]);function Bo(){var Ce;if(q!=null&&q.loading){var gt;return I.createElement("div",{className:Wr(k==null?void 0:k.loader,p==null||(gt=p.classNames)==null?void 0:gt.loader,"sonner-loader"),"data-visible":wt==="loading"},q.loading)}return I.createElement(zfe,{className:Wr(k==null?void 0:k.loader,p==null||(Ce=p.classNames)==null?void 0:Ce.loader),visible:wt==="loading"})}const qo=p.icon||(q==null?void 0:q[wt])||Lfe(wt);var qi,Hr;return I.createElement("li",{tabIndex:0,ref:ht,className:Wr(Y,Yt,k==null?void 0:k.toast,p==null||(t=p.classNames)==null?void 0:t.toast,k==null?void 0:k.default,k==null?void 0:k[wt],p==null||(n=p.classNames)==null?void 0:n[wt]),"data-sonner-toast":"","data-rich-colors":(qi=p.richColors)!=null?qi:j,"data-styled":!(p.jsx||p.unstyled||y),"data-mounted":X,"data-promise":!!p.promise,"data-swiped":ve,"data-removed":de,"data-visible":$n,"data-y-position":Bi,"data-x-position":yn,"data-index":E,"data-front":qr,"data-swiping":ce,"data-dismissible":Qn,"data-type":wt,"data-invert":Pm,"data-swipe-out":ie,"data-swipe-direction":$,"data-expanded":!!(A||K&&X),"data-testid":p.testId,style:{"--index":E,"--toasts-before":E,"--z-index":T.length-E,"--offset":`${de?Pe:sa.current}px`,"--initial-height":K?"auto":`${Xe}px`,...R,...p.style},onDragEnd:()=>{he(!1),le(null),Ya.current=null},onPointerDown:Ce=>{Ce.button!==2&&(Us||!Qn||(un.current=new Date,Ee(sa.current),Ce.target.setPointerCapture(Ce.pointerId),Ce.target.tagName!=="BUTTON"&&(he(!0),Ya.current={x:Ce.clientX,y:Ce.clientY})))},onPointerUp:()=>{var Ce,gt,Wt;if(ie||!Qn)return;Ya.current=null;const fn=Number(((Ce=ht.current)==null?void 0:Ce.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Wa=Number(((gt=ht.current)==null?void 0:gt.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),St=new Date().getTime()-((Wt=un.current)==null?void 0:Wt.getTime()),Sn=W==="x"?fn:Wa,Ui=Math.abs(Sn)/St;if(Math.abs(Sn)>=rde||Ui>.11){Ee(sa.current),p.onDismiss==null||p.onDismiss.call(p,p),F(W==="x"?fn>0?"right":"left":Wa>0?"down":"up"),Ur(),pe(!0);return}else{var On,_n;(On=ht.current)==null||On.style.setProperty("--swipe-amount-x","0px"),(_n=ht.current)==null||_n.style.setProperty("--swipe-amount-y","0px")}ne(!1),he(!1),le(null)},onPointerMove:Ce=>{var gt,Wt,fn;if(!Ya.current||!Qn||((gt=window.getSelection())==null?void 0:gt.toString().length)>0)return;const St=Ce.clientY-Ya.current.y,Sn=Ce.clientX-Ya.current.x;var Ui;const On=(Ui=e.swipeDirections)!=null?Ui:ide(V);!W&&(Math.abs(Sn)>1||Math.abs(St)>1)&&le(Math.abs(Sn)>Math.abs(St)?"x":"y");let _n={x:0,y:0};const Uo=xr=>1/(1.5+Math.abs(xr)/20);if(W==="y"){if(On.includes("top")||On.includes("bottom"))if(On.includes("top")&&St<0||On.includes("bottom")&&St>0)_n.y=St;else{const xr=St*Uo(St);_n.y=Math.abs(xr)<Math.abs(St)?xr:St}}else if(W==="x"&&(On.includes("left")||On.includes("right")))if(On.includes("left")&&Sn<0||On.includes("right")&&Sn>0)_n.x=Sn;else{const xr=Sn*Uo(Sn);_n.x=Math.abs(xr)<Math.abs(Sn)?xr:Sn}(Math.abs(_n.x)>0||Math.abs(_n.y)>0)&&ne(!0),(Wt=ht.current)==null||Wt.style.setProperty("--swipe-amount-x",`${_n.x}px`),(fn=ht.current)==null||fn.style.setProperty("--swipe-amount-y",`${_n.y}px`)}},yf&&!p.jsx&&wt!=="loading"?I.createElement("button",{"aria-label":B,"data-disabled":Us,"data-close-button":!0,onClick:Us||!Qn?()=>{}:()=>{Ur(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Wr(k==null?void 0:k.closeButton,p==null||(r=p.classNames)==null?void 0:r.closeButton)},(Hr=q==null?void 0:q.close)!=null?Hr:Ffe):null,(wt||p.icon||p.promise)&&p.icon!==null&&((q==null?void 0:q[wt])!==null||p.icon)?I.createElement("div",{"data-icon":"",className:Wr(k==null?void 0:k.icon,p==null||(i=p.classNames)==null?void 0:i.icon)},p.promise||p.type==="loading"&&!p.icon?p.icon||Bo():null,p.type!=="loading"?qo:null):null,I.createElement("div",{"data-content":"",className:Wr(k==null?void 0:k.content,p==null||(l=p.classNames)==null?void 0:l.content)},I.createElement("div",{"data-title":"",className:Wr(k==null?void 0:k.title,p==null||(s=p.classNames)==null?void 0:s.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?I.createElement("div",{"data-description":"",className:Wr(z,zo,k==null?void 0:k.description,p==null||(c=p.classNames)==null?void 0:c.description)},typeof p.description=="function"?p.description():p.description):null),I.isValidElement(p.cancel)?p.cancel:p.cancel&&nh(p.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||P,onClick:Ce=>{nh(p.cancel)&&Qn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Ce),Ur())},className:Wr(k==null?void 0:k.cancelButton,p==null||(f=p.classNames)==null?void 0:f.cancelButton)},p.cancel.label):null,I.isValidElement(p.action)?p.action:p.action&&nh(p.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||L,onClick:Ce=>{nh(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Ce),!Ce.defaultPrevented&&Ur())},className:Wr(k==null?void 0:k.actionButton,p==null||(d=p.classNames)==null?void 0:d.actionButton)},p.action.label):null)};function tk(){if(typeof window>"u"||typeof document>"u")return"ltr";const e=document.documentElement.getAttribute("dir");return e==="auto"||!e?window.getComputedStyle(document.documentElement).direction:e}function lde(e,t){const n={};return[e,t].forEach((r,i)=>{const l=i===1,s=l?"--mobile-offset":"--offset",c=l?ede:Jfe;function f(d){["top","right","bottom","left"].forEach(m=>{n[`${s}-${m}`]=typeof d=="number"?`${d}px`:d})}typeof r=="number"||typeof r=="string"?f(r):typeof r=="object"?["top","right","bottom","left"].forEach(d=>{r[d]===void 0?n[`${s}-${d}`]=c:n[`${s}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):f(c)}),n}const sde=I.forwardRef(function(t,n){const{id:r,invert:i,position:l="bottom-right",hotkey:s=["altKey","KeyT"],expand:c,closeButton:f,className:d,offset:m,mobileOffset:p,theme:y="light",richColors:x,duration:O,style:w,visibleToasts:S=Zfe,toastOptions:E,dir:T=tk(),gap:A=nde,icons:M,containerAriaLabel:j="Notifications"}=t,[N,R]=I.useState([]),P=I.useMemo(()=>r?N.filter(X=>X.toasterId===r):N.filter(X=>!X.toasterId),[N,r]),L=I.useMemo(()=>Array.from(new Set([l].concat(P.filter(X=>X.position).map(X=>X.position)))),[P,l]),[Y,z]=I.useState([]),[H,V]=I.useState(!1),[Q,K]=I.useState(!1),[k,q]=I.useState(y!=="system"?y:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=I.useRef(null),W=s.join("+").replace(/Key/g,"").replace(/Digit/g,""),le=I.useRef(null),$=I.useRef(!1),F=I.useCallback(X=>{R(ae=>{var de;return(de=ae.find(ge=>ge.id===X.id))!=null&&de.delete||Rn.dismiss(X.id),ae.filter(({id:ge})=>ge!==X.id)})},[]);return I.useEffect(()=>Rn.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{R(ae=>ae.map(de=>de.id===X.id?{...de,delete:!0}:de))});return}setTimeout(()=>{Tk.flushSync(()=>{R(ae=>{const de=ae.findIndex(ge=>ge.id===X.id);return de!==-1?[...ae.slice(0,de),{...ae[de],...X},...ae.slice(de+1)]:[X,...ae]})})})}),[N]),I.useEffect(()=>{if(y!=="system"){q(y);return}if(y==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?q("dark"):q("light")),typeof window>"u")return;const X=window.matchMedia("(prefers-color-scheme: dark)");try{X.addEventListener("change",({matches:ae})=>{q(ae?"dark":"light")})}catch{X.addListener(({matches:de})=>{try{q(de?"dark":"light")}catch(ge){console.error(ge)}})}},[y]),I.useEffect(()=>{N.length<=1&&V(!1)},[N]),I.useEffect(()=>{const X=ae=>{var de;if(s.every(he=>ae[he]||ae.code===he)){var ce;V(!0),(ce=B.current)==null||ce.focus()}ae.code==="Escape"&&(document.activeElement===B.current||(de=B.current)!=null&&de.contains(document.activeElement))&&V(!1)};return document.addEventListener("keydown",X),()=>document.removeEventListener("keydown",X)},[s]),I.useEffect(()=>{if(B.current)return()=>{le.current&&(le.current.focus({preventScroll:!0}),le.current=null,$.current=!1)}},[B.current]),I.createElement("section",{ref:n,"aria-label":`${j} ${W}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},L.map((X,ae)=>{var de;const[ge,ce]=X.split("-");return P.length?I.createElement("ol",{key:X,dir:T==="auto"?tk():T,tabIndex:-1,ref:B,className:d,"data-sonner-toaster":!0,"data-sonner-theme":k,"data-y-position":ge,"data-x-position":ce,style:{"--front-toast-height":`${((de=Y[0])==null?void 0:de.height)||0}px`,"--width":`${tde}px`,"--gap":`${A}px`,...w,...lde(m,p)},onBlur:he=>{$.current&&!he.currentTarget.contains(he.relatedTarget)&&($.current=!1,le.current&&(le.current.focus({preventScroll:!0}),le.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||$.current||($.current=!0,le.current=he.relatedTarget)},onMouseEnter:()=>V(!0),onMouseMove:()=>V(!0),onMouseLeave:()=>{Q||V(!1)},onDragEnd:()=>V(!1),onPointerDown:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||K(!0)},onPointerUp:()=>K(!1)},P.filter(he=>!he.position&&ae===0||he.position===X).map((he,ie)=>{var pe,ve;return I.createElement(ode,{key:he.id,icons:M,index:ie,toast:he,defaultRichColors:x,duration:(pe=E==null?void 0:E.duration)!=null?pe:O,className:E==null?void 0:E.className,descriptionClassName:E==null?void 0:E.descriptionClassName,invert:i,visibleToasts:S,closeButton:(ve=E==null?void 0:E.closeButton)!=null?ve:f,interacting:Q,position:X,style:E==null?void 0:E.style,unstyled:E==null?void 0:E.unstyled,classNames:E==null?void 0:E.classNames,cancelButtonStyle:E==null?void 0:E.cancelButtonStyle,actionButtonStyle:E==null?void 0:E.actionButtonStyle,closeButtonAriaLabel:E==null?void 0:E.closeButtonAriaLabel,removeToast:F,toasts:P.filter(ne=>ne.position==he.position),heights:Y.filter(ne=>ne.position==he.position),setHeights:z,expandByDefault:c,gap:A,expanded:H,swipeDirections:t.swipeDirections})})):null}))});var l5="AlertDialog",[ude]=Lr(l5,[OL]),Va=OL(),s5=e=>{const{__scopeAlertDialog:t,...n}=e,r=Va(t);return v.jsx(HS,{...r,...n,modal:!0})};s5.displayName=l5;var cde="AlertDialogTrigger",fde=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(wG,{...i,...r,ref:t})});fde.displayName=cde;var dde="AlertDialogPortal",u5=e=>{const{__scopeAlertDialog:t,...n}=e,r=Va(t);return v.jsx(FS,{...r,...n})};u5.displayName=dde;var hde="AlertDialogOverlay",c5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(GS,{...i,...r,ref:t})});c5.displayName=hde;var Kl="AlertDialogContent",[pde,mde]=ude(Kl),vde=t$("AlertDialogContent"),f5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,l=Va(n),s=_.useRef(null),c=We(t,s),f=_.useRef(null);return v.jsx(gG,{contentName:Kl,titleName:d5,docsSlug:"alert-dialog",children:v.jsx(pde,{scope:n,cancelRef:f,children:v.jsxs(VS,{role:"alertdialog",...l,...i,ref:c,onOpenAutoFocus:be(i.onOpenAutoFocus,d=>{var m;d.preventDefault(),(m=f.current)==null||m.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[v.jsx(vde,{children:r}),v.jsx(yde,{contentRef:s})]})})})});f5.displayName=Kl;var d5="AlertDialogTitle",h5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(YS,{...i,...r,ref:t})});h5.displayName=d5;var p5="AlertDialogDescription",m5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(WS,{...i,...r,ref:t})});m5.displayName=p5;var gde="AlertDialogAction",v5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(Up,{...i,...r,ref:t})});v5.displayName=gde;var g5="AlertDialogCancel",y5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=mde(g5,n),l=Va(n),s=We(t,i);return v.jsx(Up,{...l,...r,ref:s})});y5.displayName=g5;var yde=({contentRef:e})=>{const t=`\`${Kl}\` requires a description for the component to be accessible for screen reader users.
|
|
356
|
-
|
|
357
|
-
You can add a description to the \`${Kl}\` by passing a \`${p5}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
358
|
-
|
|
359
|
-
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Kl}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
360
|
-
|
|
361
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return _.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},bde=s5,xde=u5,wde=c5,Sde=f5,Ode=v5,_de=y5,Ede=h5,Ade=m5;function nk({...e}){return v.jsx(bde,{"data-slot":"alert-dialog",...e})}function Tde({...e}){return v.jsx(xde,{"data-slot":"alert-dialog-portal",...e})}function jde({className:e,...t}){return v.jsx(wde,{className:me("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"alert-dialog-overlay",...t})}function rk({className:e,...t}){return v.jsxs(Tde,{children:[v.jsx(jde,{}),v.jsx(Sde,{className:me("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",e),"data-slot":"alert-dialog-content",...t})]})}function ak({className:e,...t}){return v.jsx("div",{className:me("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function ik({className:e,...t}){return v.jsx("div",{className:me("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function ok({className:e,...t}){return v.jsx(Ede,{className:me("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function lk({className:e,...t}){return v.jsx(Ade,{className:me("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function sk({className:e,...t}){return v.jsx(Ode,{className:me(zS(),e),...t})}function uk({className:e,...t}){return v.jsx(_de,{className:me(zS({variant:"outline"}),e),...t})}var Cm="Collapsible",[Cde]=Lr(Cm),[Mde,i_]=Cde(Cm),b5=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:l,onOpenChange:s,...c}=e,[f,d]=Ti({prop:r,defaultProp:i??!1,onChange:s,caller:Cm});return v.jsx(Mde,{scope:n,disabled:l,contentId:dr(),open:f,onOpenToggle:_.useCallback(()=>d(m=>!m),[d]),children:v.jsx(Re.div,{"data-state":l_(f),"data-disabled":l?"":void 0,...c,ref:t})})});b5.displayName=Cm;var x5="CollapsibleTrigger",w5=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=i_(x5,n);return v.jsx(Re.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":l_(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:be(e.onClick,i.onOpenToggle)})});w5.displayName=x5;var o_="CollapsibleContent",S5=_.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=i_(o_,e.__scopeCollapsible);return v.jsx(gr,{present:n||i.open,children:({present:l})=>v.jsx(Nde,{...r,ref:t,present:l})})});S5.displayName=o_;var Nde=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...l}=e,s=i_(o_,n),[c,f]=_.useState(r),d=_.useRef(null),m=We(t,d),p=_.useRef(0),y=p.current,x=_.useRef(0),O=x.current,w=s.open||c,S=_.useRef(w),E=_.useRef(void 0);return _.useEffect(()=>{const T=requestAnimationFrame(()=>S.current=!1);return()=>cancelAnimationFrame(T)},[]),zt(()=>{const T=d.current;if(T){E.current=E.current||{transitionDuration:T.style.transitionDuration,animationName:T.style.animationName},T.style.transitionDuration="0s",T.style.animationName="none";const A=T.getBoundingClientRect();p.current=A.height,x.current=A.width,S.current||(T.style.transitionDuration=E.current.transitionDuration,T.style.animationName=E.current.animationName),f(r)}},[s.open,r]),v.jsx(Re.div,{"data-state":l_(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!w,...l,ref:m,style:{"--radix-collapsible-content-height":y?`${y}px`:void 0,"--radix-collapsible-content-width":O?`${O}px`:void 0,...e.style},children:w&&i})});function l_(e){return e?"open":"closed"}var Rde=b5;const Mm=Rde,Nm=w5,Rm=S5;function Pde({...e}){return v.jsx(HS,{"data-slot":"dialog",...e})}function Dde({...e}){return v.jsx(FS,{"data-slot":"dialog-portal",...e})}function kde({className:e,...t}){return v.jsx(GS,{className:me("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",e),"data-slot":"dialog-overlay",...t})}function $de({className:e,children:t,showCloseButton:n=!0,...r}){return v.jsxs(Dde,{"data-slot":"dialog-portal",children:[v.jsx(kde,{}),v.jsxs(VS,{className:me("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",e),"data-slot":"dialog-content",...r,children:[t,n&&v.jsxs(Up,{className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0","data-slot":"dialog-close",children:[v.jsx(Ul,{}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Lde({className:e,...t}){return v.jsx("div",{className:me("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...t})}function Ide({className:e,...t}){return v.jsx("div",{className:me("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...t})}function zde({className:e,...t}){return v.jsx(YS,{className:me("font-semibold text-lg leading-none",e),"data-slot":"dialog-title",...t})}function Bde({className:e,...t}){return v.jsx(WS,{className:me("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...t})}var qde="Label",O5=_.forwardRef((e,t)=>v.jsx(Ro.label,{...e,ref:t,onMouseDown:n=>{var i;n.target.closest("button, input, select, textarea")||((i=e.onMouseDown)==null||i.call(e,n),!n.defaultPrevented&&n.detail>1&&n.preventDefault())}}));O5.displayName=qde;var Ude=O5;function Hde({className:e,...t}){return v.jsx(Ude,{className:me("flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",e),"data-slot":"label",...t})}async function Fde(){const e=sessionStorage.getItem("wraps-auth-token");if(!e)throw new Error("Authentication token not found");const t=await fetch(`/api/settings?token=${e}`);if(!t.ok)throw new Error(`Failed to fetch settings: ${t.statusText}`);return await t.json()}const _5="wraps-dns-verification",Gde=1e3*60*60;function E5(){try{const e=localStorage.getItem(_5);return e?JSON.parse(e):{}}catch{return{}}}function Sp(e){try{localStorage.setItem(_5,JSON.stringify(e))}catch(t){console.error("Failed to save DNS verification cache:",t)}}function A5(e){return e?Date.now()-e.lastChecked<Gde:!1}async function ck(e,t){var i;console.log("[DNS Verify] verifyTrackingDomain called",{domain:e,expectedTarget:t});const n=E5(),r=`${e}->${t}`;if((i=n.trackingDomain)!=null&&i[r]&&A5(n.trackingDomain[r]))return console.log("[DNS Verify] Returning cached result"),n.trackingDomain[r];try{const s=`/api/settings/verify-tracking-domain?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}&expectedTarget=${encodeURIComponent(t)}`;console.log("[DNS Verify] Fetching:",s);const c=await fetch(s);if(console.log("[DNS Verify] Response status:",c.status),!c.ok)throw new Error(`HTTP ${c.status}: ${c.statusText}`);const f=await c.json();console.log("[DNS Verify] Response data:",f);const d={verified:f.verified,lastChecked:Date.now(),error:f.error};return n.trackingDomain||(n.trackingDomain={}),n.trackingDomain[r]=d,Sp(n),d}catch(l){console.error("Tracking domain verification request failed:",l);const s={verified:!1,lastChecked:Date.now(),error:l instanceof Error?l.message:"Failed to verify"};return n.trackingDomain||(n.trackingDomain={}),n.trackingDomain[r]=s,Sp(n),s}}async function fk(e){var r;console.log("[DNS Verify] verifyDmarc called",{domain:e});const t=E5(),n=`_dmarc.${e}`;if((r=t.dmarc)!=null&&r[n]&&A5(t.dmarc[n]))return console.log("[DNS Verify] Returning cached DMARC result"),t.dmarc[n];try{const l=`/api/settings/verify-dmarc?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}`;console.log("[DNS Verify] Fetching:",l);const s=await fetch(l);if(console.log("[DNS Verify] Response status:",s.status),!s.ok)throw new Error(`HTTP ${s.status}: ${s.statusText}`);const c=await s.json();console.log("[DNS Verify] Response data:",c);const f={verified:c.verified,lastChecked:Date.now(),error:c.error};return t.dmarc||(t.dmarc={}),t.dmarc[n]=f,Sp(t),f}catch(i){console.error("DMARC verification request failed:",i);const l={verified:!1,lastChecked:Date.now(),error:i instanceof Error?i.message:"Failed to verify"};return t.dmarc||(t.dmarc={}),t.dmarc[n]=l,Sp(t),l}}function s_({status:e}){const t={SUCCESS:{icon:Ap,label:"Verified",variant:"default",className:"bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20"},PENDING:{icon:gw,label:"Pending",variant:"secondary",className:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20"},FAILED:{icon:O6,label:"Failed",variant:"destructive",className:"bg-red-500/10 text-red-700 dark:text-red-400 border-red-500/20"},TEMPORARY_FAILURE:{icon:Mk,label:"Temporary Failure",variant:"secondary",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 border-orange-500/20"},NOT_STARTED:{icon:gw,label:"Not Started",variant:"outline",className:"bg-gray-500/10 text-gray-700 dark:text-gray-400 border-gray-500/20"}},{icon:n,label:r,className:i}=t[e];return v.jsxs(pn,{className:i,variant:"outline",children:[v.jsx(n,{className:"mr-1 h-3 w-3"}),r]})}function ws({text:e}){const t=async()=>{await navigator.clipboard.writeText(e),Pn.success("Copied to clipboard",{description:"DNS record value copied successfully"})};return v.jsx(kt,{onClick:t,size:"sm",variant:"ghost",children:v.jsx(E6,{className:"h-3 w-3"})})}function Vde({identity:e}){const t=e==null?void 0:e.dkimAttributes,n=(t==null?void 0:t.status)==="SUCCESS",[r,i]=_.useState(!n);return t?v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),v.jsxs("p",{className:"text-muted-foreground text-sm",children:[t.signingEnabled?"Enabled":"Disabled",t.signingKeyLength&&` · ${t.signingKeyLength}`]})]}),v.jsx(s_,{status:t.status})]}),t.tokens&&t.tokens.length>0&&v.jsxs(Mm,{onOpenChange:i,open:r,children:[v.jsx(Nm,{asChild:!0,children:v.jsxs(kt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"DNS Records (CNAME)"}),r?v.jsx(Zc,{className:"h-4 w-4"}):v.jsx(Es,{className:"h-4 w-4"})]})}),v.jsx(Rm,{className:"mt-2 space-y-2",children:t.tokens.map(l=>v.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[v.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[v.jsxs("p",{className:"font-mono text-xs",children:[l,"._domainkey.",e.identityName]}),v.jsx(ws,{text:`${l}._domainkey.${e.identityName}`})]}),v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → ",l,".dkim.amazonses.com"]})]},l))})]})]}):v.jsx("div",{className:"space-y-4",children:v.jsx("div",{className:"flex items-center justify-between",children:v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]})})})}function Yde({identity:e}){const t=e==null?void 0:e.mailFromAttributes,n=(t==null?void 0:t.mailFromDomainStatus)==="SUCCESS",[r,i]=_.useState(!n);return v.jsx("div",{className:"space-y-4",children:t!=null&&t.mailFromDomain?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),v.jsxs("p",{className:"text-muted-foreground text-sm",children:[t.mailFromDomain,t.behaviorOnMxFailure&&` · ${t.behaviorOnMxFailure==="USE_DEFAULT_VALUE"?"Fallback enabled":"Reject on failure"}`]})]}),t.mailFromDomainStatus&&v.jsx(s_,{status:t.mailFromDomainStatus})]}),v.jsxs(Mm,{onOpenChange:i,open:r,children:[v.jsx(Nm,{asChild:!0,children:v.jsxs(kt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"DNS Record (MX)"}),r?v.jsx(Zc,{className:"h-4 w-4"}):v.jsx(Es,{className:"h-4 w-4"})]})}),v.jsx(Rm,{className:"mt-2",children:v.jsx("div",{className:"rounded-md border bg-muted/50 p-3",children:v.jsxs("div",{className:"space-y-1",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("p",{className:"font-mono text-xs",children:["MX ",t.mailFromDomain]}),v.jsx(ws,{text:`10 feedback-smtp.${e==null?void 0:e.identityName.split(".")[0]}.amazonses.com`})]}),v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["Priority 10 → feedback-smtp.",e==null?void 0:e.identityName.split(".")[0],".amazonses.com"]})]})})})]})]}):v.jsx("div",{className:"flex items-center justify-between",children:v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Using default amazonses.com domain"})]})})})}function Wde({identity:e}){const[t,n]=_.useState(null),[r,i]=_.useState(!1),[l,s]=_.useState(!(t!=null&&t.verified));_.useEffect(()=>{e!=null&&e.identityName&&fk(e.identityName).then(n)},[e==null?void 0:e.identityName]),_.useEffect(()=>{t&&s(!t.verified)},[t]);const c=async()=>{if(e!=null&&e.identityName){i(!0);try{const f=await fk(e.identityName);n(f),f.verified?Pn.success("DMARC record verified",{description:"DNS TXT record found and configured correctly"}):(console.error("DMARC verification failed:",f.error),Pn.error("Verification failed",{description:f.error||"DMARC record not found"}))}catch(f){console.error("DMARC verification error:",f),Pn.error("Verification error",{description:f instanceof Error?f.message:"Unknown error"})}finally{i(!1)}}};return v.jsxs("div",{className:"space-y-4",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:"DMARC Policy"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:t!=null&&t.verified?"Configured":"Recommended for better deliverability"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[(t==null?void 0:t.verified)&&v.jsxs(pn,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[v.jsx(Ap,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),v.jsx(kt,{className:"h-8 w-8 p-0",disabled:r,onClick:c,size:"sm",variant:"ghost",children:v.jsx(Nk,{className:`h-4 w-4 ${r?"animate-spin":""}`})})]})]}),v.jsxs(Mm,{onOpenChange:s,open:l,children:[v.jsx(Nm,{asChild:!0,children:v.jsxs(kt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"DNS Record (TXT)"}),l?v.jsx(Zc,{className:"h-4 w-4"}):v.jsx(Es,{className:"h-4 w-4"})]})}),v.jsx(Rm,{className:"mt-2",children:v.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[v.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[v.jsxs("p",{className:"font-mono text-xs",children:["_dmarc.",(e==null?void 0:e.identityName)||"yourdomain.com"]}),v.jsx(ws,{text:`_dmarc.${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]}),v.jsxs("div",{className:"flex items-start justify-between gap-2",children:[v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["v=DMARC1; p=quarantine; rua=mailto:dmarc@",(e==null?void 0:e.identityName)||"yourdomain.com"]}),v.jsx(ws,{text:`v=DMARC1; p=quarantine; rua=mailto:dmarc@${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]})]})})]})]})}function Kde({configSet:e,region:t,onRefresh:n}){const r=e==null?void 0:e.trackingOptions,[i,l]=_.useState(null),[s,c]=_.useState(!1),[f,d]=_.useState(!1),[m,p]=_.useState(""),[y,x]=_.useState(!1),[O,w]=_.useState(!(i!=null&&i.verified));_.useEffect(()=>{if(r!=null&&r.customRedirectDomain&&t){const A=`r.${t}.awstrack.me`;ck(r.customRedirectDomain,A).then(l)}},[r==null?void 0:r.customRedirectDomain,t]),_.useEffect(()=>{i&&w(!i.verified)},[i]);const S=async()=>{if(r!=null&&r.customRedirectDomain&&t){c(!0);try{const A=`r.${t}.awstrack.me`,M=await ck(r.customRedirectDomain,A);l(M),M.verified?Pn.success("Tracking domain verified",{description:"DNS records are configured correctly"}):(console.error("Tracking domain verification failed:",M.error),Pn.error("Verification failed",{description:M.error||"DNS records not found"}))}catch(A){console.error("Tracking domain verification error:",A),Pn.error("Verification error",{description:A instanceof Error?A.message:"Unknown error"})}finally{c(!1)}}},E=()=>{p((r==null?void 0:r.customRedirectDomain)||""),d(!0)},T=async()=>{if(!m.trim()){Pn.error("Invalid domain",{description:"Please enter a valid domain name"});return}x(!0);try{const A=sessionStorage.getItem("wraps-auth-token"),M=await fetch(`/api/settings/config-set/tracking-domain?token=${A}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:m})});if(!M.ok){const j=await M.json();throw new Error(j.error||`Failed to update: ${M.statusText}`)}d(!1),Pn.success("Tracking domain updated",{description:"Don't forget to configure the DNS records"}),n&&await n()}catch(A){console.error("Failed to update tracking domain:",A),Pn.error("Failed to update tracking domain",{description:A instanceof Error?A.message:"Unknown error"})}finally{x(!1)}};return v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Tracking Domain"}),v.jsx(gn,{children:"Custom domain for open and click tracking links"})]}),v.jsx(Ft,{className:"space-y-4",children:r!=null&&r.customRedirectDomain?v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:"font-medium",children:r.customRedirectDomain}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Custom Tracking Domain"})]}),v.jsxs("div",{className:"flex items-center gap-2",children:[(i==null?void 0:i.verified)&&v.jsxs(pn,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[v.jsx(Ap,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),v.jsx(pn,{variant:"outline",children:r.httpsPolicy==="REQUIRE"?"HTTPS Only":"HTTPS Optional"}),v.jsx(kt,{className:"h-8 w-8 p-0",disabled:s,onClick:S,size:"sm",variant:"ghost",children:v.jsx(Nk,{className:`h-4 w-4 ${s?"animate-spin":""}`})}),v.jsx(kt,{className:"h-8 w-8 p-0",onClick:E,size:"sm",variant:"ghost",children:v.jsx(mj,{className:"h-4 w-4"})})]})]}),v.jsxs(Mm,{onOpenChange:w,open:O,children:[v.jsx(Nm,{asChild:!0,children:v.jsxs(kt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[v.jsx("p",{className:"font-medium text-sm",children:"Required DNS Record (CNAME)"}),O?v.jsx(Zc,{className:"h-4 w-4"}):v.jsx(Es,{className:"h-4 w-4"})]})}),v.jsx(Rm,{className:"mt-2",children:v.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsx("p",{className:"font-mono text-xs",children:r.customRedirectDomain}),v.jsx(ws,{text:r.customRedirectDomain})]}),v.jsxs("div",{className:"mt-1 flex items-start justify-between gap-2",children:[v.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → r.",(e==null?void 0:e.name)||"region",".awstrack.me"]}),v.jsx(ws,{text:`r.${(e==null?void 0:e.name)||"region"}.awstrack.me`})]})]})})]})]}):v.jsxs("div",{className:"space-y-4",children:[v.jsx("p",{className:"text-muted-foreground text-sm",children:"No custom tracking domain configured. Using default awstrack.me domain."}),v.jsxs(kt,{onClick:E,size:"sm",variant:"outline",children:[v.jsx(mj,{className:"mr-2 h-4 w-4"}),"Configure Tracking Domain"]})]})}),v.jsx(Pde,{onOpenChange:d,open:f,children:v.jsxs($de,{children:[v.jsxs(Lde,{children:[v.jsx(zde,{children:"Update Tracking Domain"}),v.jsx(Bde,{children:"Enter the custom domain you want to use for email tracking links. You'll need to configure DNS records after saving."})]}),v.jsx("div",{className:"space-y-4 py-4",children:v.jsxs("div",{className:"space-y-2",children:[v.jsx(Hde,{htmlFor:"domain",children:"Tracking Domain"}),v.jsx(Bp,{disabled:y,id:"domain",onChange:A=>p(A.target.value),placeholder:"track.example.com",value:m}),v.jsx("p",{className:"text-muted-foreground text-xs",children:"Example: track.yourdomain.com or email.yourdomain.com"})]})}),v.jsxs(Ide,{children:[v.jsx(kt,{disabled:y,onClick:()=>d(!1),variant:"outline",children:"Cancel"}),v.jsx(kt,{disabled:y,onClick:T,children:y?"Updating...":"Update Domain"})]})]})})]})}function Xde({configSet:e,onRefresh:t}){var m,p;const[n,r]=_.useState(!1),[i,l]=_.useState(!1),[s,c]=_.useState(!1);if(!e)return v.jsx($t,{children:v.jsxs(Lt,{children:[v.jsx(ln,{children:"Configuration Set"}),v.jsx(gn,{children:"No configuration set found"})]})});const f=async()=>{var y;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),O=!((y=e.sendingOptions)!=null&&y.sendingEnabled),w=await fetch(`/api/settings/config-set/sending?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:O})});if(!w.ok)throw new Error(`Failed to update: ${w.statusText}`);r(!1),Pn.success(O?"Email sending enabled":"Email sending disabled"),t&&await t()}catch(x){console.error("Failed to toggle sending:",x),Pn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}},d=async()=>{var y;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),O=!((y=e.reputationOptions)!=null&&y.reputationMetricsEnabled),w=await fetch(`/api/settings/config-set/reputation?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:O})});if(!w.ok)throw new Error(`Failed to update: ${w.statusText}`);l(!1),Pn.success(O?"Reputation metrics enabled":"Reputation metrics disabled"),t&&await t()}catch(x){console.error("Failed to toggle reputation:",x),Pn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}};return v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Configuration Set"}),v.jsx(gn,{children:"Email sending and tracking configuration"})]}),v.jsxs(Ft,{className:"space-y-6",children:[v.jsxs("div",{children:[v.jsx("p",{className:"font-medium",children:e.name}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Configuration Set Name"})]}),v.jsx(Gl,{}),e.sendingOptions&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1 space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"Email Sending"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.sendingOptions.sendingEnabled?"Emails can be sent":"Email sending is disabled"})]}),v.jsx(kt,{onClick:()=>r(!0),size:"sm",variant:e.sendingOptions.sendingEnabled?"destructive":"default",children:e.sendingOptions.sendingEnabled?"Disable":"Enable"})]}),v.jsx(nk,{onOpenChange:r,open:n,children:v.jsxs(rk,{children:[v.jsxs(ak,{children:[v.jsx(ok,{children:e.sendingOptions.sendingEnabled?"Disable email sending?":"Enable email sending?"}),v.jsx(lk,{children:e.sendingOptions.sendingEnabled?"All outgoing emails will be blocked until you re-enable sending. Emails in the queue will not be sent.":"This will allow emails to be sent through this configuration set. Make sure your domain is verified before enabling."})]}),v.jsxs(ik,{children:[v.jsx(uk,{disabled:s,children:"Cancel"}),v.jsx(sk,{disabled:s,onClick:f,children:s?"Updating...":e.sendingOptions.sendingEnabled?"Disable sending":"Enable sending"})]})]})})]}),e.reputationOptions&&v.jsxs(v.Fragment,{children:[v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1 space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"Reputation Metrics"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.reputationOptions.reputationMetricsEnabled?"Tracking bounce and complaint rates":"Reputation tracking disabled"})]}),v.jsx(kt,{onClick:()=>l(!0),size:"sm",variant:"outline",children:e.reputationOptions.reputationMetricsEnabled?"Disable":"Enable"})]}),v.jsx(nk,{onOpenChange:l,open:i,children:v.jsxs(rk,{children:[v.jsxs(ak,{children:[v.jsx(ok,{children:e.reputationOptions.reputationMetricsEnabled?"Disable reputation metrics?":"Enable reputation metrics?"}),v.jsx(lk,{children:e.reputationOptions.reputationMetricsEnabled?"You will stop collecting bounce and complaint rate data. Historical data will be preserved but no new metrics will be tracked.":"This will start tracking bounce and complaint rates for your sending domain. This helps monitor your email reputation and deliverability."})]}),v.jsxs(ik,{children:[v.jsx(uk,{disabled:s,children:"Cancel"}),v.jsx(sk,{disabled:s,onClick:d,children:s?"Updating...":e.reputationOptions.reputationMetricsEnabled?"Disable metrics":"Enable metrics"})]})]})})]}),((m=e.deliveryOptions)==null?void 0:m.tlsPolicy)&&v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"TLS Encryption"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required for all connections":"Optional (opportunistic)"})]}),v.jsx(pn,{variant:"outline",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required":"Optional"})]}),e.suppressionOptions&&v.jsxs("div",{className:"space-y-2",children:[v.jsxs("div",{className:"space-y-0.5",children:[v.jsx("p",{className:"font-medium text-sm",children:"Suppression List"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Automatically suppress emails to addresses that bounced or complained"})]}),e.suppressionOptions.suppressedReasons&&e.suppressionOptions.suppressedReasons.length>0?v.jsx("div",{className:"flex gap-2",children:e.suppressionOptions.suppressedReasons.map(y=>v.jsx(pn,{variant:"secondary",children:y},y))}):v.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]}),((p=e.deliveryOptions)==null?void 0:p.sendingPoolName)&&v.jsxs("div",{children:[v.jsx("p",{className:"font-medium text-sm",children:"IP Pool"}),v.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.sendingPoolName})]})]})]})}function Qde(){var c,f;const[e,t]=_.useState(null),[n,r]=_.useState(!0),[i,l]=_.useState(null),s=_.useCallback(async()=>{try{r(!0);const d=await Fde();t(d),l(null)}catch(d){console.error("Failed to fetch email settings:",d),l(d instanceof Error?d.message:"Failed to load settings")}finally{r(!1)}},[]);return _.useEffect(()=>{s()},[s]),n?v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),v.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[v.jsxs($t,{className:"md:row-span-2",children:[v.jsxs(Lt,{children:[v.jsx(Et,{className:"h-6 w-48"}),v.jsx(Et,{className:"mt-2 h-4 w-64"})]}),v.jsxs(Ft,{className:"space-y-6",children:[v.jsxs("div",{className:"space-y-2",children:[v.jsx(Et,{className:"h-4 w-32"}),v.jsx(Et,{className:"h-4 w-24"})]}),v.jsx(Et,{className:"h-px w-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(Et,{className:"h-4 w-40"}),v.jsx(Et,{className:"h-4 w-28"})]}),v.jsx(Et,{className:"h-px w-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(Et,{className:"h-4 w-36"}),v.jsx(Et,{className:"h-4 w-32"})]}),v.jsx(Et,{className:"h-px w-full"}),v.jsxs("div",{className:"space-y-2",children:[v.jsx(Et,{className:"h-4 w-32"}),v.jsx(Et,{className:"h-4 w-44"})]})]})]}),v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(Et,{className:"h-6 w-48"}),v.jsx(Et,{className:"mt-2 h-4 w-64"})]}),v.jsx(Ft,{children:v.jsx(Et,{className:"h-20 w-full"})})]}),v.jsxs($t,{children:[v.jsxs(Lt,{children:[v.jsx(Et,{className:"h-6 w-48"}),v.jsx(Et,{className:"mt-2 h-4 w-64"})]}),v.jsx(Ft,{children:v.jsx(Et,{className:"h-20 w-full"})})]})]})]}):i?v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),v.jsxs(uo,{className:"mt-6",variant:"destructive",children:[v.jsx(Mk,{className:"h-4 w-4"}),v.jsx(wV,{children:"Error Loading Settings"}),v.jsx(co,{children:i})]})]}):v.jsxs(v.Fragment,{children:[v.jsxs("div",{children:[v.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),v.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),v.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[v.jsxs($t,{className:"md:row-span-2",children:[v.jsxs(Lt,{children:[v.jsx(ln,{children:"Sending Domain"}),v.jsx(gn,{children:"Email domain configuration and authentication"})]}),v.jsxs(Ft,{className:"space-y-6",children:[v.jsx("div",{className:"space-y-4",children:v.jsxs("div",{className:"flex items-center justify-between",children:[v.jsxs("div",{className:"flex-1",children:[v.jsx("p",{className:"font-medium",children:(c=e==null?void 0:e.identity)==null?void 0:c.identityName}),v.jsx("p",{className:"text-muted-foreground text-sm",children:"Domain Identity"})]}),v.jsx(s_,{status:((f=e==null?void 0:e.identity)==null?void 0:f.verificationStatus)||"NOT_STARTED"})]})}),v.jsx(Gl,{}),v.jsx(Vde,{identity:e==null?void 0:e.identity}),v.jsx(Gl,{}),v.jsx(Yde,{identity:e==null?void 0:e.identity}),v.jsx(Gl,{}),v.jsx(Wde,{identity:e==null?void 0:e.identity})]})]}),v.jsx(Xde,{configSet:e==null?void 0:e.configurationSet,onRefresh:s}),v.jsx(Kde,{configSet:e==null?void 0:e.configurationSet,onRefresh:s,region:e==null?void 0:e.region})]})]})}function Zde({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[i,l]=_.useState(()=>localStorage.getItem(n)||t);_.useEffect(()=>{const c=window.document.documentElement;if(c.classList.remove("light","dark"),i==="system"){const f=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";c.classList.add(f),c.style.colorScheme=f;return}c.classList.add(i),c.style.colorScheme=i},[i]);const s={theme:i,setTheme:c=>{localStorage.setItem(n,c),l(c)}};return v.jsx(oI.Provider,{...r,value:s,children:e})}function Jde({...e}){return v.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function ehe({className:e,...t}){return v.jsx("ol",{className:me("flex flex-wrap items-center gap-1.5 break-words text-muted-foreground text-sm sm:gap-2.5",e),"data-slot":"breadcrumb-list",...t})}function the({className:e,...t}){return v.jsx("li",{className:me("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...t})}function nhe({className:e,...t}){return v.jsx("span",{"aria-current":"page","aria-disabled":"true",className:me("font-normal text-foreground",e),"data-slot":"breadcrumb-page",role:"link",...t})}var rhe=(e,t,n,r,i,l,s,c)=>{let f=document.documentElement,d=["light","dark"];function m(x){(Array.isArray(e)?e:[e]).forEach(O=>{let w=O==="class",S=w&&l?i.map(E=>l[E]||E):i;w?(f.classList.remove(...S),f.classList.add(l&&l[x]?l[x]:x)):f.setAttribute(O,x)}),p(x)}function p(x){c&&d.includes(x)&&(f.style.colorScheme=x)}function y(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)m(r);else try{let x=localStorage.getItem(t)||n,O=s&&x==="system"?y():x;m(O)}catch{}},ahe=_.createContext(void 0),ihe={setTheme:e=>{},themes:[]},ohe=()=>{var e;return(e=_.useContext(ahe))!=null?e:ihe};_.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:l,value:s,themes:c,nonce:f,scriptProps:d})=>{let m=JSON.stringify([n,t,l,e,c,s,r,i]).slice(1,-1);return _.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${rhe.toString()})(${m})`}})});const lhe=({...e})=>{const{theme:t="system"}=ohe();return v.jsx(sde,{className:"toaster group",icons:{success:v.jsx(Ap,{className:"size-4"}),info:v.jsx(j6,{className:"size-4"}),warning:v.jsx(L6,{className:"size-4"}),error:v.jsx(N6,{className:"size-4"}),loading:v.jsx(C6,{className:"size-4 animate-spin"})},style:{"--normal-bg":"var(--popover)","--normal-text":"var(--popover-foreground)","--normal-border":"var(--border)","--border-radius":"var(--radius)"},theme:t,...e})};function she(){const e=ia(),[t,n]=_.useState(!1);_.useEffect(()=>{let i=sessionStorage.getItem("wraps-auth-token");i||(i=new URLSearchParams(window.location.search).get("token"),i&&sessionStorage.setItem("wraps-auth-token",i)),n(!0)},[]),_.useEffect(()=>{document.cookie="sidebar_state=; path=/; max-age=0"},[]);const r=()=>{if(e.pathname.startsWith("/email/")&&e.pathname!=="/email/metrics"&&e.pathname!=="/email/settings")return"Email Details";switch(e.pathname){case"/":case"/email":return"Emails";case"/email/metrics":return"Email Metrics";case"/email/settings":return"Email Settings";default:return"Emails"}};return v.jsxs(tI,{defaultOpen:!1,children:[v.jsx(yV,{}),v.jsxs(rI,{children:[v.jsxs("header",{className:"sticky top-0 flex shrink-0 items-center gap-2 border-b bg-background p-4",children:[v.jsx(nI,{className:"-ml-1"}),v.jsx(Gl,{className:"mr-2 data-[orientation=vertical]:h-4",orientation:"vertical"}),v.jsx(Jde,{children:v.jsx(ehe,{children:v.jsx(the,{children:v.jsx(nhe,{children:r()})})})})]}),v.jsx("div",{className:"flex flex-1 flex-col gap-6 p-6",children:t?v.jsxs(z8,{children:[v.jsx(Ll,{element:v.jsx(L8,{replace:!0,to:"/email"}),path:"/"}),v.jsx(Ll,{element:v.jsx(xY,{}),path:"/email"}),v.jsx(Ll,{element:v.jsx(RV,{}),path:"/email/:id"}),v.jsx(Ll,{element:v.jsx(kfe,{}),path:"/email/metrics"}),v.jsx(Ll,{element:v.jsx(Qde,{}),path:"/email/settings"})]}):v.jsx("div",{className:"flex items-center justify-center p-8",children:v.jsx("div",{className:"text-muted-foreground",children:"Loading..."})})})]})]})}function uhe(){return v.jsx(Zde,{defaultTheme:"system",storageKey:"console-ui-theme",children:v.jsxs(s6,{children:[v.jsx(she,{}),v.jsx(lhe,{})]})})}Yq.createRoot(document.getElementById("root")).render(v.jsx(_.StrictMode,{children:v.jsx(uhe,{})}));
|