@wraps.dev/cli 0.3.3 → 0.3.4
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 +23 -2
- package/dist/cli.js.map +1 -1
- package/dist/console/assets/index-DCoFg1PY.js +381 -0
- package/dist/console/index.html +1 -1
- package/dist/lambda/event-processor/.bundled +1 -1
- package/dist/lambda/event-processor/index.mjs +1 -1
- package/package.json +5 -4
- package/dist/console/assets/index-BmOMPb6r.js +0 -381
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
function Bq(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 Pd=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 Vg={exports:{}},Pu={};/**
|
|
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 nj;function qq(){if(nj)return Pu;nj=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 Pu.Fragment=t,Pu.jsx=n,Pu.jsxs=n,Pu}var rj;function Uq(){return rj||(rj=1,Vg.exports=qq()),Vg.exports}var v=Uq(),Yg={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 aj;function Hq(){if(aj)return Me;aj=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 ij;function Ep(){return ij||(ij=1,Yg.exports=Hq()),Yg.exports}var _=Ep();const I=ut(_),sS=Bq({__proto__:null,default:I},[_]);var Wg={exports:{}},Du={},Kg={exports:{}},Xg={};/**
|
|
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 oj;function Fq(){return oj||(oj=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}}}})(Xg)),Xg}var lj;function Gq(){return lj||(lj=1,Kg.exports=Fq()),Kg.exports}var Qg={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 sj;function Vq(){if(sj)return dn;sj=1;var e=Ep();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 uj;function hk(){if(uj)return Qg.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(),Qg.exports=Vq(),Qg.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 cj;function Yq(){if(cj)return Du;cj=1;var e=Gq(),t=Ep(),n=hk();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)?ET(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=ET(o),a=AT(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=AT(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),Cu._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 Qe=!1;function Ve(a,o){if(!a||Qe)return"";Qe=!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{Qe=!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 Ve(a.type,!1);case 11:return Ve(a.type.render,!1);case 1:return Ve(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,bf=e.unstable_UserBlockingPriority,zi=e.unstable_NormalPriority,Us=e.unstable_LowPriority,sa=e.unstable_IdlePriority,xf=e.log,Ya=e.unstable_setDisableYieldValue,Bi=null,yn=null;function br(a){if(typeof xf=="function"&&Ya(a),yn&&typeof yn.setStrictMode=="function")try{yn.setStrictMode(Bi,a)}catch{}}var cn=Math.clz32?Math.clz32:Ur,km=Math.log,Hs=Math.LN2;function Ur(a){return a>>>=0,a===0?32:31-(km(a)/Hs|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 $m(){var a=q.p;return a!==0?a:(a=window.event,a===void 0?32:KT(a.type))}function f_(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,Lm="__reactEvents$"+Ka,C5="__reactListeners$"+Ka,M5="__reactHandles$"+Ka,d_="__reactResources$"+Ka,Fs="__reactMarker$"+Ka;function Im(a){delete a[en],delete a[En],delete a[Lm],delete a[C5],delete a[M5]}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=PT(a);a!==null;){if(u=a[en])return u;a=PT(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 Gs(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[d_];return o||(o=a[d_]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Kt(a){a[Fs]=!0}var h_=new Set,p_={};function Hi(a,o){Yo(a,o),Yo(a+"Capture",o)}function Yo(a,o){for(p_[a]=o,a=0;a<o.length;a++)h_.add(o[a])}var N5=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]*$"),m_={},v_={};function R5(a){return ht.call(v_,a)?!0:ht.call(m_,a)?!1:N5.test(a)?v_[a]=!0:(m_[a]=!0,!1)}function wf(a,o,u){if(R5(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 Sf(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 g_(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function P5(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 zm(a){if(!a._valueTracker){var o=g_(a)?"checked":"value";a._valueTracker=P5(a,o,""+a[o])}}function y_(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return a&&(h=g_(a)?a.checked?"true":"false":a.value),a=h,a!==u?(o.setValue(a),!0):!1}function Of(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 D5=/[\n"\\]/g;function Jn(a){return a.replace(D5,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Bm(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?qm(a,C,Zn(o)):u!=null?qm(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 b_(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)){zm(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),zm(a)}function qm(a,o,u){o==="number"&&Of(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 x_(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 w_(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),zm(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 k5=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 S_(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||k5.has(o)?o==="float"?a.cssFloat=u:a[o]=(""+u).trim():a[o]=u+"px"}function O_(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&&S_(a,g,h)}else for(var b in o)o.hasOwnProperty(b)&&S_(a,b,o[b])}function Um(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 $5=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"]]),L5=/^[\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 _f(a){return L5.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ca(){}var Hm=null;function Fm(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 __(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(Bm(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));Bm(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&&y_(h)}break e;case"textarea":x_(a,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&Wo(a,!!u.multiple,o,!1)}}}var Gm=!1;function E_(a,o,u){if(Gm)return a(o,u);Gm=!0;try{var h=a(o);return h}finally{if(Gm=!1,(Xo!==null||Qo!==null)&&(fd(),Xo&&(o=Xo,a=Qo,Qo=Xo=null,__(o),a)))for(o=0;o<a.length;o++)__(a[o])}}function Vs(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"),Vm=!1;if(fa)try{var Ys={};Object.defineProperty(Ys,"passive",{get:function(){Vm=!0}}),window.addEventListener("test",Ys,Ys),window.removeEventListener("test",Ys,Ys)}catch{Vm=!1}var Xa=null,Ym=null,Ef=null;function A_(){if(Ef)return Ef;var a,o=Ym,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 Ef=g.slice(a,1<h?1-h:void 0)}function Af(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 Tf(){return!0}function T_(){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)?Tf:T_,this.isPropagationStopped=T_,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=Tf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Tf)},persist:function(){},isPersistent:Tf}),o}var Fi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jf=An(Fi),Ws=p({},Fi,{view:0,detail:0}),I5=An(Ws),Wm,Km,Ks,Cf=p({},Ws,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Qm,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!==Ks&&(Ks&&a.type==="mousemove"?(Wm=a.screenX-Ks.screenX,Km=a.screenY-Ks.screenY):Km=Wm=0,Ks=a),Wm)},movementY:function(a){return"movementY"in a?a.movementY:Km}}),j_=An(Cf),z5=p({},Cf,{dataTransfer:0}),B5=An(z5),q5=p({},Ws,{relatedTarget:0}),Xm=An(q5),U5=p({},Fi,{animationName:0,elapsedTime:0,pseudoElement:0}),H5=An(U5),F5=p({},Fi,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),G5=An(F5),V5=p({},Fi,{data:0}),C_=An(V5),Y5={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W5={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"},K5={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function X5(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=K5[a])?!!o[a]:!1}function Qm(){return X5}var Q5=p({},Ws,{key:function(a){if(a.key){var o=Y5[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=Af(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?W5[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Qm,charCode:function(a){return a.type==="keypress"?Af(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Af(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Z5=An(Q5),J5=p({},Cf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),M_=An(J5),eB=p({},Ws,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Qm}),tB=An(eB),nB=p({},Fi,{propertyName:0,elapsedTime:0,pseudoElement:0}),rB=An(nB),aB=p({},Cf,{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}),iB=An(aB),oB=p({},Fi,{newState:0,oldState:0}),lB=An(oB),sB=[9,13,27,32],Zm=fa&&"CompositionEvent"in window,Xs=null;fa&&"documentMode"in document&&(Xs=document.documentMode);var uB=fa&&"TextEvent"in window&&!Xs,N_=fa&&(!Zm||Xs&&8<Xs&&11>=Xs),R_=" ",P_=!1;function D_(a,o){switch(a){case"keyup":return sB.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function k_(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var Zo=!1;function cB(a,o){switch(a){case"compositionend":return k_(o);case"keypress":return o.which!==32?null:(P_=!0,R_);case"textInput":return a=o.data,a===R_&&P_?null:a;default:return null}}function fB(a,o){if(Zo)return a==="compositionend"||!Zm&&D_(a,o)?(a=A_(),Ef=Ym=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 N_&&o.locale!=="ko"?null:o.data;default:return null}}var dB={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 $_(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!dB[a.type]:o==="textarea"}function L_(a,o,u,h){Xo?Qo?Qo.push(h):Qo=[h]:Xo=h,o=yd(o,"onChange"),0<o.length&&(u=new jf("onChange","change",null,u,h),a.push({event:u,listeners:o}))}var Qs=null,Zs=null;function hB(a){bT(a,0)}function Mf(a){var o=Gs(a);if(y_(o))return a}function I_(a,o){if(a==="change")return o}var z_=!1;if(fa){var Jm;if(fa){var ev="oninput"in document;if(!ev){var B_=document.createElement("div");B_.setAttribute("oninput","return;"),ev=typeof B_.oninput=="function"}Jm=ev}else Jm=!1;z_=Jm&&(!document.documentMode||9<document.documentMode)}function q_(){Qs&&(Qs.detachEvent("onpropertychange",U_),Zs=Qs=null)}function U_(a){if(a.propertyName==="value"&&Mf(Zs)){var o=[];L_(o,Zs,a,Fm(a)),E_(hB,o)}}function pB(a,o,u){a==="focusin"?(q_(),Qs=o,Zs=u,Qs.attachEvent("onpropertychange",U_)):a==="focusout"&&q_()}function mB(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Mf(Zs)}function vB(a,o){if(a==="click")return Mf(o)}function gB(a,o){if(a==="input"||a==="change")return Mf(o)}function yB(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var Ln=typeof Object.is=="function"?Object.is:yB;function Js(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 H_(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function F_(a,o){var u=H_(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=H_(u)}}function G_(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?G_(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function V_(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=Of(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=Of(a.document)}return o}function tv(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 bB=fa&&"documentMode"in document&&11>=document.documentMode,Jo=null,nv=null,eu=null,rv=!1;function Y_(a,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;rv||Jo==null||Jo!==Of(h)||(h=Jo,"selectionStart"in h&&tv(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}),eu&&Js(eu,h)||(eu=h,h=yd(nv,"onSelect"),0<h.length&&(o=new jf("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")},av={},W_={};fa&&(W_=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(av[a])return av[a];if(!el[a])return a;var o=el[a],u;for(u in o)if(o.hasOwnProperty(u)&&u in W_)return av[a]=o[u];return a}var K_=Vi("animationend"),X_=Vi("animationiteration"),Q_=Vi("animationstart"),xB=Vi("transitionrun"),wB=Vi("transitionstart"),SB=Vi("transitioncancel"),Z_=Vi("transitionend"),J_=new Map,iv="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(" ");iv.push("scrollEnd");function wr(a,o){J_.set(a,o),Hi(o,[a])}var Nf=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,ov=0;function Rf(){for(var a=tl,o=ov=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&&eE(u,g,b)}}function Pf(a,o,u,h){er[tl++]=a,er[tl++]=o,er[tl++]=u,er[tl++]=h,ov|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function lv(a,o,u,h){return Pf(a,o,u,h),Df(a)}function Yi(a,o){return Pf(a,null,null,o),Df(a)}function eE(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 Df(a){if(50<Su)throw Su=0,vg=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 OB(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 OB(a,o,u,h)}function sv(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 tE(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 kf(a,o,u,h,g,b){var C=0;if(h=a,typeof a=="function")sv(a)&&(C=1);else if(typeof a=="string")C=jq(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 uv(a,o,u){return a=In(6,a,null,o),a.lanes=u,a}function nE(a){var o=In(18,null,null,0);return o.stateNode=a,o}function cv(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 rE=new WeakMap;function tr(a,o){if(typeof a=="object"&&a!==null){var u=rE.get(a);return u!==void 0?u:(o={value:a,source:o,stack:un(o)},rE.set(a,o),o)}return{value:a,source:o,stack:un(o)}}var rl=[],al=0,$f=null,tu=0,nr=[],rr=0,Qa=null,Fr=1,Gr="";function ha(a,o){rl[al++]=tu,rl[al++]=$f,$f=a,tu=o}function aE(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 fv(a){a.return!==null&&(ha(a,1),aE(a,1,0))}function dv(a){for(;a===$f;)$f=rl[--al],rl[al]=null,tu=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 iE(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,hv=Error(r(519));function Ja(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw nu(tr(o,a)),hv}function oE(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<_u.length;u++)Ie(_u[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),b_(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),w_(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||OT(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 lE(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 lE(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")||Ng(a.type,a.memoizedProps)),u=!u),u&&pt&&Ja(a),lE(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));pt=RT(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));pt=RT(a)}else o===27?(o=pt,hi(a.type)?(a=$g,$g=null,pt=a):pt=o):pt=tn?or(a.stateNode.nextSibling):null;return!0}function Ki(){pt=tn=null,Ue=!1}function pv(){var a=Za;return a!==null&&(Mn===null?Mn=a:Mn.push.apply(Mn,a),Za=null),a}function nu(a){Za===null?Za=[a]:Za.push(a)}var mv=$(null),Xi=null,pa=null;function ei(a,o,u){X(mv,o._currentValue),o._currentValue=u}function ma(a){a._currentValue=mv.current,F(mv)}function vv(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 gv(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),vv(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),vv(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(Cu):a=[Cu])}g=g.return}a!==null&&gv(o,a,u,h),o.flags|=262144}function Lf(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 sE(Xi,a)}function If(a,o){return Xi===null&&Qi(a),sE(a,o)}function sE(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 _B=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()})}},EB=e.unstable_scheduleCallback,AB=e.unstable_NormalPriority,Mt={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function yv(){return{controller:new _B,data:new Map,refCount:0}}function ru(a){a.refCount--,a.refCount===0&&EB(AB,function(){a.controller.abort()})}var au=null,bv=0,ll=0,sl=null;function TB(a,o){if(au===null){var u=au=[];bv=0,ll=Sg(),sl={status:"pending",value:void 0,then:function(h){u.push(h)}}}return bv++,o.then(uE,uE),o}function uE(){if(--bv===0&&au!==null){sl!==null&&(sl.status="fulfilled");var a=au;au=null,ll=0,sl=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function jB(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 cE=k.S;k.S=function(a,o){YA=Yt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&TB(a,o),cE!==null&&cE(a,o)};var Zi=$(null);function xv(){var a=Zi.current;return a!==null?a:ct.pooledCache}function zf(a,o){o===null?X(Zi,Zi.current):X(Zi,o.pool)}function fE(){var a=xv();return a===null?null:{parent:Mt._currentValue,pool:a}}var ul=Error(r(460)),wv=Error(r(474)),Bf=Error(r(542)),qf={then:function(){}};function dE(a){return a=a.status,a==="fulfilled"||a==="rejected"}function hE(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,mE(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,mE(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 pE(){if(eo===null)throw Error(r(459));var a=eo;return eo=null,a}function mE(a){if(a===ul||a===Bf)throw Error(r(483))}var cl=null,iu=0;function Uf(a){var o=iu;return iu+=1,cl===null&&(cl=[]),hE(cl,a,o)}function ou(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function Hf(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 vE(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=uv(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),ou(G,J),G.return=Z,G):(G=kf(J.type,J.key,J.props,null,Z.mode,ue),ou(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=cv(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=uv(""+G,Z.mode,J),G.return=Z,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return J=kf(G.type,G.key,G.props,null,Z.mode,J),ou(J,G),J.return=Z,J;case O:return G=cv(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,Uf(G),J);if(G.$$typeof===A)return fe(Z,If(Z,G),J);Hf(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,Uf(J),ue);if(J.$$typeof===A)return te(Z,G,If(Z,J),ue);Hf(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,Uf(ue),Ae);if(ue.$$typeof===A)return re(Z,G,J,If(G,ue),Ae);Hf(G,ue)}return null}function we(Z,G,J,ue){for(var Ae=null,Ye=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 We=te(Z,_e,J[De],ue);if(We===null){_e===null&&(_e=qe);break}a&&_e&&We.alternate===null&&o(Z,_e),G=b(We,G,De),Ye===null?Ae=We:Ye.sibling=We,Ye=We,_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),Ye===null?Ae=_e:Ye.sibling=_e,Ye=_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),Ye===null?Ae=qe:Ye.sibling=qe,Ye=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,Ye=null,_e=G,De=G=0,qe=null,We=J.next();_e!==null&&!We.done;De++,We=J.next()){_e.index>De?(qe=_e,_e=null):qe=_e.sibling;var yi=te(Z,_e,We.value,ue);if(yi===null){_e===null&&(_e=qe);break}a&&_e&&yi.alternate===null&&o(Z,_e),G=b(yi,G,De),Ye===null?Ae=yi:Ye.sibling=yi,Ye=yi,_e=qe}if(We.done)return u(Z,_e),Ue&&ha(Z,De),Ae;if(_e===null){for(;!We.done;De++,We=J.next())We=fe(Z,We.value,ue),We!==null&&(G=b(We,G,De),Ye===null?Ae=We:Ye.sibling=We,Ye=We);return Ue&&ha(Z,De),Ae}for(_e=h(_e);!We.done;De++,We=J.next())We=re(_e,Z,De,We.value,ue),We!==null&&(a&&We.alternate!==null&&_e.delete(We.key===null?De:We.key),G=b(We,G,De),Ye===null?Ae=We:Ye.sibling=We,Ye=We);return a&&_e.forEach(function(zq){return o(Z,zq)}),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),ou(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=kf(J.type,J.key,J.props,null,Z.mode,ue),ou(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=cv(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,Uf(J),ue);if(J.$$typeof===A)return lt(Z,G,If(Z,J),ue);Hf(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=uv(J,Z.mode,ue),ue.return=Z,Z=ue),C(Z)):u(Z,G)}return function(Z,G,J,ue){try{iu=0;var Ae=lt(Z,G,J,ue);return cl=null,Ae}catch(_e){if(_e===ul||_e===Bf)throw _e;var Ye=In(29,_e,null,Z.mode);return Ye.lanes=ue,Ye.return=Z,Ye}finally{}}}var to=vE(!0),gE=vE(!1),ti=!1;function Sv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ov(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,(Ze&2)!==0){var g=h.pending;return g===null?o.next=o:(o.next=g.next,g.next=o),h.pending=o,o=Df(a),eE(a,null,u),o}return Pf(a,h,o,u),Df(a)}function lu(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 _v(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 Ev=!1;function su(){if(Ev){var a=sl;if(a!==null)throw a}}function uu(a,o,u,h){Ev=!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&&(Ev=!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 yE(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function bE(a,o){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)yE(u[a],o)}var fl=$(null),Ff=$(0);function xE(a,o){a=_a,X(Ff,a),X(fl,o),_a=a|o.baseLanes}function Av(){X(Ff,_a),X(fl,fl.current)}function Tv(){_a=Ff.current,F(fl),F(Ff)}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 jv(a){X(Tt,Tt.current),X(zn,a),ir===null&&(ir=a)}function wE(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 Gf(a){for(var o=a;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Dg(u)||kg(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,Vf=!1,dl=!1,no=!1,Yf=0,cu=0,hl=null,CB=0;function Ot(){throw Error(r(321))}function Cv(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 Mv(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?aA:Gv,no=!1,b=u(h,g),no=!1,dl&&(b=OE(o,u,h,g)),SE(a),b}function SE(a){k.H=hu;var o=it!==null&&it.next!==null;if(va=0,Nt=it=Ne=null,Vf=!1,cu=0,hl=null,o)throw Error(r(300));a===null||Rt||(a=a.dependencies,a!==null&&Lf(a)&&(Rt=!0))}function OE(a,o,u,h){Ne=a;var g=0;do{if(dl&&(hl=null),cu=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=iA,b=o(u,h)}while(dl);return b}function MB(){var a=k.H,o=a.useState()[0];return o=typeof o.then=="function"?fu(o):o,a=a.useState()[0],(it!==null?it.memoizedState:null)!==a&&(Ne.flags|=1024),o}function Nv(){var a=Yf!==0;return Yf=0,a}function Rv(a,o,u){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~u}function Pv(a){if(Vf){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}Vf=!1}va=0,Nt=it=Ne=null,dl=!1,cu=Yf=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 Wf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fu(a){var o=cu;return cu+=1,hl===null&&(hl=[]),a=hE(hl,a,o),o=Ne,(Nt===null?o.memoizedState:Nt.next)===null&&(o=o.alternate,k.H=o===null||o.memoizedState===null?aA:Gv),a}function Kf(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return fu(a);if(a.$$typeof===A)return nn(a)}throw Error(r(438,String(a)))}function Dv(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=Wf(),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 Xf(a){var o=jt();return kv(o,it,a)}function kv(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 $v(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 _E(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,zv(TE.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},AE.bind(null,h,g,u,o),null),ct===null)throw Error(r(349));b||(va&127)!==0||EE(h,o,u)}return u}function EE(a,o,u){a.flags|=16384,a={getSnapshot:o,value:u},o=Ne.updateQueue,o===null?(o=Wf(),Ne.updateQueue=o,o.stores=[a]):(u=o.stores,u===null?o.stores=[a]:u.push(a))}function AE(a,o,u,h){o.value=u,o.getSnapshot=h,jE(o)&&CE(a)}function TE(a,o,u){return u(function(){jE(o)&&CE(a)})}function jE(a){var o=a.getSnapshot;a=a.value;try{var u=o();return!Ln(a,u)}catch{return!0}}function CE(a){var o=Yi(a,2);o!==null&&Nn(o,a,2)}function Lv(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 ME(a,o,u,h){return a.baseState=u,kv(a,it,typeof h=="function"?h:ga)}function NB(a,o,u,h,g){if(Jf(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,NE(o,b)):(b.next=u.next,o.pending=u.next=b)}}function NE(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),RE(a,o,D)}catch(ee){Iv(a,o,ee)}finally{b!==null&&C.types!==null&&(b.types=C.types),k.T=b}}else try{b=u(g,h),RE(a,o,b)}catch(ee){Iv(a,o,ee)}}function RE(a,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){PE(a,o,h)},function(h){return Iv(a,o,h)}):PE(a,o,u)}function PE(a,o,u){o.status="fulfilled",o.value=u,DE(o),a.state=u,o=a.pending,o!==null&&(u=o.next,u===o?a.pending=null:(u=u.next,o.next=u,NE(a,u)))}function Iv(a,o,u){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,DE(o),o=o.next;while(o!==h)}a.action=null}function DE(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function kE(a,o){return o}function $E(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:kE,lastRenderedState:o},u.queue=h,u=tA.bind(null,Ne,h),h.dispatch=u,h=Lv(!1),b=Fv.bind(null,Ne,!1,h.queue),h=bn(),g={state:o,dispatch:null,action:a,pending:null},h.queue=g,u=NB.bind(null,Ne,g,b,u),g.dispatch=u,h.memoizedState=a,[o,u,!1]}function LE(a){var o=jt();return IE(o,it,a)}function IE(a,o,u){if(o=kv(a,o,kE)[0],a=Xf(ga)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=fu(o)}catch(C){throw C===ul?Bf: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},RB.bind(null,g,u),null)),[h,b,a]}function RB(a,o){a.action=o}function zE(a){var o=jt(),u=it;if(u!==null)return IE(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=Wf(),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 BE(){return jt().memoizedState}function Qf(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 Zf(a,o,u,h){var g=jt();h=h===void 0?null:h;var b=g.memoizedState.inst;it!==null&&h!==null&&Cv(h,it.memoizedState.deps)?g.memoizedState=pl(o,b,u,h):(Ne.flags|=a,g.memoizedState=pl(1|o,b,u,h))}function qE(a,o){Qf(8390656,8,a,o)}function zv(a,o){Zf(2048,8,a,o)}function PB(a){Ne.flags|=4;var o=Ne.updateQueue;if(o===null)o=Wf(),Ne.updateQueue=o,o.events=[a];else{var u=o.events;u===null?o.events=[a]:u.push(a)}}function UE(a){var o=jt().memoizedState;return PB({ref:o,nextImpl:a}),function(){if((Ze&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function HE(a,o){return Zf(4,2,a,o)}function FE(a,o){return Zf(4,4,a,o)}function GE(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 VE(a,o,u){u=u!=null?u.concat([a]):null,Zf(4,4,GE.bind(null,o,a),u)}function Bv(){}function YE(a,o){var u=jt();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&Cv(o,h[1])?h[0]:(u.memoizedState=[a,o],a)}function WE(a,o){var u=jt();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&Cv(o,h[1]))return h[0];if(h=a(),no){br(!0);try{a()}finally{br(!1)}}return u.memoizedState=[h,o],h}function qv(a,o,u){return u===void 0||(va&1073741824)!==0&&(Be&261930)===0?a.memoizedState=o:(a.memoizedState=u,a=KA(),Ne.lanes|=a,si|=a,u)}function KE(a,o,u,h){return Ln(u,o)?u:fl.current!==null?(a=qv(a,u,h),Ln(a,o)||(Rt=!0),a):(va&42)===0||(va&1073741824)!==0&&(Be&261930)===0?(Rt=!0,a.memoizedState=u):(a=KA(),Ne.lanes|=a,si|=a,o)}function XE(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,Fv(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=jB(U,h);du(a,o,oe,Hn(a))}else du(a,o,h,Hn(a))}catch(fe){du(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 DB(){}function Uv(a,o,u,h){if(a.tag!==5)throw Error(r(476));var g=QE(a).queue;XE(a,g,o,B,u===null?DB:function(){return ZE(a),u(h)})}function QE(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 ZE(a){var o=QE(a);o.next===null&&(o=a.alternate.memoizedState),du(a,o.next.queue,{},Hn())}function Hv(){return nn(Cu)}function JE(){return jt().memoizedState}function eA(){return jt().memoizedState}function kB(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),lu(h,o,u)),o={cache:yv()},a.payload=o;return}o=o.return}}function $B(a,o,u){var h=Hn();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},Jf(a)?nA(o,u):(u=lv(a,o,u,h),u!==null&&(Nn(u,a,h),rA(u,o,h)))}function tA(a,o,u){var h=Hn();du(a,o,u,h)}function du(a,o,u,h){var g={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(Jf(a))nA(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 Pf(a,o,g,0),ct===null&&Rf(),!1}catch{}finally{}if(u=lv(a,o,g,h),u!==null)return Nn(u,a,h),rA(u,o,h),!0}return!1}function Fv(a,o,u,h){if(h={lane:2,revertLane:Sg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Jf(a)){if(o)throw Error(r(479))}else o=lv(a,u,h,2),o!==null&&Nn(o,a,2)}function Jf(a){var o=a.alternate;return a===Ne||o!==null&&o===Ne}function nA(a,o){dl=Vf=!0;var u=a.pending;u===null?o.next=o:(o.next=u.next,u.next=o),a.pending=o}function rA(a,o,u){if((u&4194048)!==0){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,On(a,u)}}var hu={readContext:nn,use:Kf,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};hu.useEffectEvent=Ot;var aA={readContext:nn,use:Kf,useCallback:function(a,o){return bn().memoizedState=[a,o===void 0?null:o],a},useContext:nn,useEffect:qE,useImperativeHandle:function(a,o,u){u=u!=null?u.concat([a]):null,Qf(4194308,4,GE.bind(null,o,a),u)},useLayoutEffect:function(a,o){return Qf(4194308,4,a,o)},useInsertionEffect:function(a,o){Qf(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=$B.bind(null,Ne,a),[h.memoizedState,a]},useRef:function(a){var o=bn();return a={current:a},o.memoizedState=a},useState:function(a){a=Lv(a);var o=a.queue,u=tA.bind(null,Ne,o);return o.dispatch=u,[a.memoizedState,u]},useDebugValue:Bv,useDeferredValue:function(a,o){var u=bn();return qv(u,a,o)},useTransition:function(){var a=Lv(!1);return a=XE.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||EE(h,o,u)}g.memoizedState=u;var b={value:u,getSnapshot:o};return g.queue=b,qE(TE.bind(null,h,b,a),[a]),h.flags|=2048,pl(9,{destroy:void 0},AE.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=Yf++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=CB++,o="_"+o+"r_"+u.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:Hv,useFormState:$E,useActionState:$E,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=Fv.bind(null,Ne,!0,u),u.dispatch=o,[a,o]},useMemoCache:Dv,useCacheRefresh:function(){return bn().memoizedState=kB.bind(null,Ne)},useEffectEvent:function(a){var o=bn(),u={impl:a};return o.memoizedState=u,function(){if((Ze&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},Gv={readContext:nn,use:Kf,useCallback:YE,useContext:nn,useEffect:zv,useImperativeHandle:VE,useInsertionEffect:HE,useLayoutEffect:FE,useMemo:WE,useReducer:Xf,useRef:BE,useState:function(){return Xf(ga)},useDebugValue:Bv,useDeferredValue:function(a,o){var u=jt();return KE(u,it.memoizedState,a,o)},useTransition:function(){var a=Xf(ga)[0],o=jt().memoizedState;return[typeof a=="boolean"?a:fu(a),o]},useSyncExternalStore:_E,useId:JE,useHostTransitionStatus:Hv,useFormState:LE,useActionState:LE,useOptimistic:function(a,o){var u=jt();return ME(u,it,a,o)},useMemoCache:Dv,useCacheRefresh:eA};Gv.useEffectEvent=UE;var iA={readContext:nn,use:Kf,useCallback:YE,useContext:nn,useEffect:zv,useImperativeHandle:VE,useInsertionEffect:HE,useLayoutEffect:FE,useMemo:WE,useReducer:$v,useRef:BE,useState:function(){return $v(ga)},useDebugValue:Bv,useDeferredValue:function(a,o){var u=jt();return it===null?qv(u,a,o):KE(u,it.memoizedState,a,o)},useTransition:function(){var a=$v(ga)[0],o=jt().memoizedState;return[typeof a=="boolean"?a:fu(a),o]},useSyncExternalStore:_E,useId:JE,useHostTransitionStatus:Hv,useFormState:zE,useActionState:zE,useOptimistic:function(a,o){var u=jt();return it!==null?ME(u,it,a,o):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Dv,useCacheRefresh:eA};iA.useEffectEvent=UE;function Vv(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 Yv={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),lu(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),lu(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),lu(o,a,u))}};function oA(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?!Js(u,h)||!Js(g,b):!0}function lA(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&&Yv.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 sA(a){Nf(a)}function uA(a){console.error(a)}function cA(a){Nf(a)}function ed(a,o){try{var u=a.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function fA(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 Wv(a,o,u){return u=ni(u),u.tag=3,u.payload={element:null},u.callback=function(){ed(a,o)},u}function dA(a){return a=ni(a),a.tag=3,a}function hA(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(){fA(o,u,h)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){fA(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 LB(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?dd():u.alternate===null&&_t===0&&(_t=3),u.flags&=-257,u.flags|=65536,u.lanes=g,h===qf?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),bg(a,h,g)),!1;case 22:return u.flags|=65536,h===qf?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)),bg(a,h,g)),!1}throw Error(r(435,u.tag))}return bg(a,h,g),dd(),!1}if(Ue)return o=zn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=g,h!==hv&&(a=Error(r(422),{cause:h}),nu(tr(a,u)))):(h!==hv&&(o=Error(r(423),{cause:h}),nu(tr(o,u))),a=a.current.alternate,a.flags|=65536,g&=-g,a.lanes|=g,h=tr(h,u),g=Wv(a.stateNode,h,g),_v(a,g),_t!==4&&(_t=2)),!1;var b=Error(r(520),{cause:h});if(b=tr(b,u),wu===null?wu=[b]:wu.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=Wv(u.stateNode,h,a),_v(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=dA(g),hA(g,a,u,h),_v(u,g),!1}u=u.return}while(u!==null);return!1}var Kv=Error(r(461)),Rt=!1;function rn(a,o,u,h){o.child=a===null?gE(o,null,u,h):to(o,a.child,u,h)}function pA(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=Mv(a,o,u,C,b,g),D=Nv(),a!==null&&!Rt?(Rv(a,o,g),ya(a,o,g)):(Ue&&D&&fv(o),o.flags|=1,rn(a,o,h,g),o.child)}function mA(a,o,u,h,g){if(a===null){var b=u.type;return typeof b=="function"&&!sv(b)&&b.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=b,vA(a,o,b,h,g)):(a=kf(u.type,null,h,o,o.mode,g),a.ref=o.ref,a.return=o,o.child=a)}if(b=a.child,!rg(a,g)){var C=b.memoizedProps;if(u=u.compare,u=u!==null?u:Js,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 vA(a,o,u,h,g){if(a!==null){var b=a.memoizedProps;if(Js(b,h)&&a.ref===o.ref)if(Rt=!1,o.pendingProps=h=b,rg(a,g))(a.flags&131072)!==0&&(Rt=!0);else return o.lanes=a.lanes,ya(a,o,g)}return Xv(a,o,u,h,g)}function gA(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 yA(a,o,b,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&zf(o,b!==null?b.cachePool:null),b!==null?xE(o,b):Av(),wE(o);else return h=o.lanes=536870912,yA(a,o,b!==null?b.baseLanes|u:u,u,h)}else b!==null?(zf(o,b.cachePool),xE(o,b),ii(),o.memoizedState=null):(a!==null&&zf(o,null),Av(),ii());return rn(a,o,g,u),o.child}function pu(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function yA(a,o,u,h,g){var b=xv();return b=b===null?null:{parent:Mt._currentValue,pool:b},o.memoizedState={baseLanes:u,cachePool:b},a!==null&&zf(o,null),Av(),wE(o),a!==null&&ol(a,o,h,!0),o.childLanes=g,null}function td(a,o){return o=rd({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function bA(a,o,u){return to(o,a.child,null,u),a=td(o,o.pendingProps),a.flags|=2,Bn(o),o.memoizedState=null,a}function IB(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=td(o,h),o.lanes=536870912,pu(null,a);if(jv(o),(a=pt)?(a=NT(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=nE(a),u.return=o,o.child=u,tn=o,pt=null)):a=null,a===null)throw Ja(o);return o.lanes=536870912,null}return td(o,h)}var b=a.memoizedState;if(b!==null){var C=b.dehydrated;if(jv(o),g)if(o.flags&256)o.flags&=-257,o=bA(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),Kv;dd(),o=bA(a,o,u)}else a=b.treeContext,pt=or(C.nextSibling),tn=o,Ue=!0,Za=null,ar=!1,a!==null&&iE(o,a),o=td(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 nd(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 Xv(a,o,u,h,g){return Qi(o),u=Mv(a,o,u,h,void 0,g),h=Nv(),a!==null&&!Rt?(Rv(a,o,g),ya(a,o,g)):(Ue&&h&&fv(o),o.flags|=1,rn(a,o,u,g),o.child)}function xA(a,o,u,h,g,b){return Qi(o),o.updateQueue=null,u=OE(o,h,u,g),SE(a),h=Nv(),a!==null&&!Rt?(Rv(a,o,b),ya(a,o,b)):(Ue&&h&&fv(o),o.flags|=1,rn(a,o,u,b),o.child)}function wA(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=Yv,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},Sv(o),C=u.contextType,b.context=typeof C=="object"&&C!==null?nn(C):nl,b.state=o.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(Vv(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&&Yv.enqueueReplaceState(b,b.state,null),uu(o,h,b,g),su(),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)&&lA(o,b,h,C),ti=!1;var te=o.memoizedState;b.state=te,uu(o,h,b,g),su(),ee=o.memoizedState,D||te!==ee||ti?(typeof fe=="function"&&(Vv(o,u,fe,h),ee=o.memoizedState),(U=ti||oA(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,Ov(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)&&lA(o,b,h,U),ti=!1,te=o.memoizedState,b.state=te,uu(o,h,b,g),su();var re=o.memoizedState;C!==fe||te!==re||ti||a!==null&&a.dependencies!==null&&Lf(a.dependencies)?(typeof D=="function"&&(Vv(o,u,D,h),re=o.memoizedState),(oe=ti||oA(o,u,oe,h,te,re,U)||a!==null&&a.dependencies!==null&&Lf(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,nd(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 SA(a,o,u,h){return Ki(),o.flags|=256,rn(a,o,u,h),o.child}var Qv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zv(a){return{baseLanes:a,cachePool:fE()}}function Jv(a,o,u){return a=a!==null?a.childLanes&~u:0,o&&(a|=Un),a}function OA(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=NT(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=nE(a),u.return=o,o.child=u,tn=o,pt=null)):a=null,a===null)throw Ja(o);return kg(a)?o.lanes=32:o.lanes=536870912,null}var D=h.children;return h=h.fallback,g?(ii(),g=o.mode,D=rd({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=Zv(u),h.childLanes=Jv(a,C,u),o.memoizedState=Qv,pu(null,h)):(ai(o),eg(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=tg(a,o,u)):o.memoizedState!==null?(ii(),o.child=a.child,o.flags|=128,o=null):(ii(),D=h.fallback,g=o.mode,h=rd({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=Zv(u),h.childLanes=Jv(a,C,u),o.memoizedState=Qv,o=pu(null,h));else if(ai(o),kg(D)){if(C=D.nextSibling&&D.nextSibling.dataset,C)var ee=C.dgst;C=ee,h=Error(r(419)),h.stack="",h.digest=C,nu({value:h,source:null,stack:null}),o=tg(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),Kv;Dg(D)||dd(),o=tg(a,o,u)}else Dg(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&&iE(o,a),o=eg(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,pu(null,h),h=o.child,D=a.child.memoizedState,D===null?D=Zv(u):(g=D.cachePool,g!==null?(U=Mt._currentValue,g=g.parent!==U?{parent:U,pool:U}:g):g=fE(),D={baseLanes:D.baseLanes|u,cachePool:g}),h.memoizedState=D,h.childLanes=Jv(a,C,u),o.memoizedState=Qv,pu(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 eg(a,o){return o=rd({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function rd(a,o){return a=In(22,a,null,o),a.lanes=0,a}function tg(a,o,u){return to(o,a.child,null,u),a=eg(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function _A(a,o,u){a.lanes|=o;var h=a.alternate;h!==null&&(h.lanes|=o),vv(a.return,o,u)}function ng(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 EA(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?tu:0,!D&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&_A(a,u,o);else if(a.tag===19)_A(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&&Gf(a)===null&&(g=u),u=u.sibling;u=g,u===null?(g=o.child,o.child=null):(g=u.sibling,u.sibling=null),ng(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&&Gf(a)===null){o.child=g;break}a=g.sibling,g.sibling=u,u=g,g=a}ng(o,!0,u,null,b,h);break;case"together":ng(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 rg(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&Lf(a)))}function zB(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,jv(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?OA(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 EA(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,gA(a,o,u,o.pendingProps);case 24:ei(o,Mt,a.memoizedState.cache)}return ya(a,o,u)}function AA(a,o,u){if(a!==null)if(a.memoizedProps!==o.pendingProps)Rt=!0;else{if(!rg(a,u)&&(o.flags&128)===0)return Rt=!1,zB(a,o,u);Rt=(a.flags&131072)!==0}else Rt=!1,Ue&&(o.flags&1048576)!==0&&aE(o,tu,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")sv(a)?(h=ro(a,h),o.tag=1,o=wA(null,o,a,h,u)):(o.tag=0,o=Xv(null,o,a,h,u));else{if(a!=null){var g=a.$$typeof;if(g===M){o.tag=11,o=pA(null,o,a,h,u);break e}else if(g===R){o.tag=14,o=mA(null,o,a,h,u);break e}}throw o=Q(a)||a,Error(r(306,o,""))}}return o;case 0:return Xv(a,o,o.type,o.pendingProps,u);case 1:return h=o.type,g=ro(h,o.pendingProps),wA(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,Ov(a,o),uu(o,h,null,u);var C=o.memoizedState;if(h=C.cache,ei(o,Mt,h),h!==b.cache&&gv(o,[Mt],u,!0),su(),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=SA(a,o,h,u);break e}else if(h!==g){g=tr(Error(r(424)),o),nu(g),o=SA(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=gE(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 nd(a,o),a===null?(u=LT(o.type,null,o.pendingProps,null))?o.memoizedState=u:Ue||(u=o.type,a=o.pendingProps,h=bd(ge.current).createElement(u),h[en]=o,h[En]=a,an(h,u,a),Kt(h),o.stateNode=h):o.memoizedState=LT(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return pe(o),a===null&&Ue&&(h=o.stateNode=DT(o.type,o.pendingProps,ge.current),tn=o,ar=!0,g=pt,hi(o.type)?($g=g,pt=or(h.firstChild)):pt=g),rn(a,o,o.pendingProps.children,u),nd(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Ue&&((g=h=pt)&&(h=mq(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,Ng(g,b)?h=null:C!==null&&Ng(g,C)&&(o.flags|=32),o.memoizedState!==null&&(g=Mv(a,o,MB,null,null,u),Cu._currentValue=g),nd(a,o),rn(a,o,h,u),o.child;case 6:return a===null&&Ue&&((a=u=pt)&&(u=vq(u,o.pendingProps,ar),u!==null?(o.stateNode=u,tn=o,pt=null,a=!0):a=!1),a||Ja(o)),null;case 13:return OA(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 pA(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 mA(a,o,o.type,o.pendingProps,u);case 15:return vA(a,o,o.type,o.pendingProps,u);case 19:return EA(a,o,u);case 31:return IB(a,o,u);case 22:return gA(a,o,u,o.pendingProps);case 24:return Qi(o),h=nn(Mt),a===null?(g=xv(),g===null&&(g=ct,b=yv(),g.pooledCache=b,b.refCount++,b!==null&&(g.pooledCacheLanes|=u),g=b),o.memoizedState={parent:h,cache:g},Sv(o),ei(o,Mt,g)):((a.lanes&u)!==0&&(Ov(a,o),uu(o,null,null,u),su()),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&&gv(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 ag(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(JA())a.flags|=8192;else throw eo=qf,wv}else a.flags&=-16777217}function TA(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!UT(o))if(JA())a.flags|=8192;else throw eo=qf,wv}function ad(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?fn():536870912,a.lanes|=o,yl|=o)}function mu(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 BB(a,o,u){var h=o.pendingProps;switch(dv(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,pv())),mt(o),null;case 26:var g=o.type,b=o.memoizedState;return a===null?(ba(o),b!==null?(mt(o),TA(o,b)):(mt(o),ag(o,g,null,h,u))):b?b!==a.memoizedState?(ba(o),mt(o),TA(o,b)):(mt(o),o.flags&=-16777217):(a=a.memoizedProps,a!==h&&ba(o),mt(o),ag(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)?oE(o):(a=DT(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))oE(o);else{var C=bd(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),ag(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||OT(a.nodeValue,u)),a||Ja(o,!0)}else a=bd(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=pv(),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=pv(),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),ad(o,o.updateQueue),mt(o),null);case 4:return ie(),a===null&&Ag(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)mu(h,!1);else{if(_t!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(b=Gf(a),b!==null){for(o.flags|=128,mu(h,!1),a=b.updateQueue,o.updateQueue=a,ad(o,a),o.subtreeFlags=0,a=u,u=o.child;u!==null;)tE(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()>ud&&(o.flags|=128,g=!0,mu(h,!1),o.lanes=4194304)}else{if(!g)if(a=Gf(b),a!==null){if(o.flags|=128,g=!0,a=a.updateQueue,o.updateQueue=a,ad(o,a),mu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Ue)return mt(o),null}else 2*Yt()-h.renderingStartTime>ud&&u!==536870912&&(o.flags|=128,g=!0,mu(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),Tv(),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&&ad(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 qB(a,o){switch(dv(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),Tv(),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 jA(a,o){switch(dv(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),Tv(),a!==null&&F(Zi);break;case 24:ma(Mt)}}function vu(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 CA(a){var o=a.updateQueue;if(o!==null){var u=a.stateNode;try{bE(o,u)}catch(h){nt(a,a.return,h)}}}function MA(a,o,u){u.props=ro(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(h){nt(a,o,h)}}function gu(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 NA(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 ig(a,o,u){try{var h=a.stateNode;uq(h,a.type,u,o),h[En]=o}catch(g){nt(a,a.return,g)}}function RA(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&hi(a.type)||a.tag===4}function og(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||RA(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 lg(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(lg(a,o,u),a=a.sibling;a!==null;)lg(a,o,u),a=a.sibling}function id(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(id(a,o,u),a=a.sibling;a!==null;)id(a,o,u),a=a.sibling}function PA(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,sg=!1,DA=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function UB(a,o){if(a=a.containerInfo,Cg=Ad,a=V_(a),tv(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(Mg={focusedElem:a,selectionRange:u},Ad=!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)Pg(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Pg(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 kA(a,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:Sa(a,u),h&4&&vu(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&&CA(u),h&512&&gu(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{bE(a,o)}catch(C){nt(u,u.return,C)}}break;case 27:o===null&&h&4&&PA(u);case 26:case 5:Sa(a,u),o===null&&h&4&&NA(u),h&512&&gu(u,u.return);break;case 12:Sa(a,u);break;case 31:Sa(a,u),h&4&&IA(a,u);break;case 13:Sa(a,u),h&4&&zA(a,u),h&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=QB.bind(null,u),gq(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 $A(a){var o=a.alternate;o!==null&&(a.alternate=null,$A(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&Im(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;)LA(a,o,u),u=u.sibling}function LA(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),Au(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,CT(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),Al(a)):CT(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"&&MA(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 IA(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 zA(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 HB(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new DA),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new DA),o;default:throw Error(r(435,a.tag))}}function od(a,o){var u=HB(a);o.forEach(function(h){if(!u.has(h)){u.add(h);var g=ZB.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));LA(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;)BA(o,a),o=o.sibling}var Sr=null;function BA(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),vu(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[Fs]||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=BT("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=BT("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 qT(g,a.type,a.stateNode);else a.stateNode=zT(g,h,a.memoizedProps);else b!==h?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,h===null?qT(g,a.type,a.stateNode):zT(g,h,a.memoizedProps)):h===null&&a.stateNode!==null&&ig(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&&ig(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,ig(a,g,u!==null?u.memoizedProps:g)),h&1024&&(sg=!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(Sd=null,g=Sr,Sr=xd(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)}sg&&(sg=!1,qA(a));break;case 4:h=Sr,Sr=xd(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,od(a,h)));break;case 13:jn(o,a),Cn(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(sd=Yt()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,od(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?MT(re,!0):MT(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,od(a,u))));break;case 19:jn(o,a),Cn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,od(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(RA(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var g=u.stateNode,b=og(a);id(a,b,g);break;case 5:var C=u.stateNode;u.flags&32&&(Ko(C,""),u.flags&=-33);var D=og(a);id(a,D,C);break;case 3:case 4:var U=u.stateNode.containerInfo,ee=og(a);lg(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 qA(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;qA(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;)kA(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"&&MA(o,o.return,u),ao(o);break;case 27:Au(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),vu(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++)yE(U[g],D)}catch(ee){nt(h,h.return,ee)}}u&&C&64&&CA(b),gu(b,b.return);break;case 27:PA(b);case 26:case 5:Oa(g,b,u),u&&h===null&&C&4&&NA(b),gu(b,b.return);break;case 12:Oa(g,b,u);break;case 31:Oa(g,b,u),u&&C&4&&IA(g,b);break;case 13:Oa(g,b,u),u&&C&4&&zA(g,b);break;case 22:b.memoizedState===null&&Oa(g,b,u),gu(b,b.return);break;case 30:break;default:Oa(g,b,u)}o=o.sibling}}function ug(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&&ru(u))}function cg(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&ru(a))}function Or(a,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)UA(a,o,u,h),o=o.sibling}function UA(a,o,u,h){var g=o.flags;switch(o.tag){case 0:case 11:case 15:Or(a,o,u,h),g&2048&&vu(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&&ru(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):yu(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&&ug(C,o);break;case 24:Or(a,o,u,h),g&2048&&cg(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),vu(8,C);break;case 23:break;case 22:var oe=C.stateNode;C.memoizedState!==null?oe._visibility&2?ml(b,C,D,U,g):yu(b,C):(oe._visibility|=2,ml(b,C,D,U,g)),g&&ee&2048&&ug(C.alternate,C);break;case 24:ml(b,C,D,U,g),g&&ee&2048&&cg(C.alternate,C);break;default:ml(b,C,D,U,g)}o=o.sibling}}function yu(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:yu(u,h),g&2048&&ug(h.alternate,h);break;case 24:yu(u,h),g&2048&&cg(h.alternate,h);break;default:yu(u,h)}o=o.sibling}}var bu=8192;function vl(a,o,u){if(a.subtreeFlags&bu)for(a=a.child;a!==null;)HA(a,o,u),a=a.sibling}function HA(a,o,u){switch(a.tag){case 26:vl(a,o,u),a.flags&bu&&a.memoizedState!==null&&Cq(u,Sr,a.memoizedState,a.memoizedProps);break;case 5:vl(a,o,u);break;case 3:case 4:var h=Sr;Sr=xd(a.stateNode.containerInfo),vl(a,o,u),Sr=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=bu,bu=16777216,vl(a,o,u),bu=h):vl(a,o,u));break;default:vl(a,o,u)}}function FA(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 xu(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,VA(h,a)}FA(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)GA(a),a=a.sibling}function GA(a){switch(a.tag){case 0:case 11:case 15:xu(a),a.flags&2048&&oi(9,a,a.return);break;case 3:xu(a);break;case 12:xu(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,ld(a)):xu(a);break;default:xu(a)}}function ld(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,VA(h,a)}FA(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:oi(8,o,o.return),ld(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,ld(o));break;default:ld(o)}a=a.sibling}}function VA(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:ru(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($A(h),h===u){Xt=null;break e}if(g!==null){g.return=b,Xt=g;break e}Xt=b}}}var FB={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}},GB=typeof WeakMap=="function"?WeakMap:Map,Ze=0,ct=null,Le=null,Be=0,tt=0,qn=null,li=!1,gl=!1,fg=!1,_a=0,_t=0,si=0,io=0,dg=0,Un=0,yl=0,wu=null,Mn=null,hg=!1,sd=0,YA=0,ud=1/0,cd=null,ui=null,Bt=0,ci=null,bl=null,Ea=0,pg=0,mg=null,WA=null,Su=0,vg=null;function Hn(){return(Ze&2)!==0&&Be!==0?Be&-Be:k.T!==null?Sg():$m()}function KA(){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),((Ze&2)===0||a!==ct)&&(a===ct&&((Ze&2)===0&&(io|=u),_t===4&&fi(a,Be,Un,!1)),Yr(a))}function XA(a,o,u){if((Ze&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&a.expiredLanes)===0||gt(a,o),g=h?WB(a,o):yg(a,o,!0),b=h;do{if(g===0){gl&&!h&&fi(a,o,0,!1);break}else{if(u=a.current.alternate,b&&!VB(u)){g=yg(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=wu;var U=D.current.memoizedState.isDehydrated;if(U&&(xl(D,C).flags|=256),C=yg(D,C,!1),C!==2){if(fg&&!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=sd+300-Yt(),10<g)){if(fi(h,o,Un,!li),Ce(h,0,!0)!==0)break e;Ea=o,h.timeoutHandle=TT(QA.bind(null,h,u,Mn,cd,hg,o,Un,io,yl,li,b,"Throttled",-0,0),g);break e}QA(h,u,Mn,cd,hg,o,Un,io,yl,li,b,null,-0,0)}}break}while(!0);Yr(a)}function QA(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},HA(o,b,fe);var we=(b&62914560)===b?sd-Yt():(b&4194048)===b?YA-Yt():0;if(we=Mq(fe,we),we!==null){Ea=b,a.cancelPendingCommit=we(iT.bind(null,a,o,b,u,h,g,C,D,U,oe,fe,null,te,re)),fi(a,b,C,!ee);return}}iT(a,o,b,u,h,g,C,D,U)}function VB(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&=~dg,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 fd(){return(Ze&6)===0?(Ou(0),!1):!0}function gg(){if(Le!==null){if(tt===0)var a=Le.return;else a=Le,pa=Xi=null,Pv(a),cl=null,iu=0,a=Le;for(;a!==null;)jA(a.alternate,a),a=a.return;Le=null}}function xl(a,o){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,dq(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Ea=0,gg(),ct=a,Le=u=da(a.current,null),Be=o,tt=0,qn=null,li=!1,gl=gt(a,o),fg=!1,yl=Un=dg=io=si=_t=0,Mn=wu=null,hg=!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,Rf(),u}function ZA(a,o){Ne=null,k.H=hu,o===ul||o===Bf?(o=pE(),tt=3):o===wv?(o=pE(),tt=4):tt=o===Kv?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,qn=o,Le===null&&(_t=1,ed(a,tr(o,a.current)))}function JA(){var a=zn.current;return a===null?!0:(Be&4194048)===Be?ir===null:(Be&62914560)===Be||(Be&536870912)!==0?a===ir:!1}function eT(){var a=k.H;return k.H=hu,a===null?hu:a}function tT(){var a=k.A;return k.A=FB,a}function dd(){_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 yg(a,o,u){var h=Ze;Ze|=2;var g=eT(),b=tT();(ct!==a||Be!==o)&&(cd=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:gg(),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)}}YB(),C=_t;break}catch(oe){ZA(a,oe)}while(!0);return o&&a.shellSuspendCounter++,pa=Xi=null,Ze=h,k.H=g,k.A=b,Le===null&&(ct=null,Be=0,Rf()),C}function YB(){for(;Le!==null;)nT(Le)}function WB(a,o){var u=Ze;Ze|=2;var h=eT(),g=tT();ct!==a||Be!==o?(cd=null,ud=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(dE(b)){tt=0,qn=null,rT(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:dE(b)?(tt=0,qn=null,rT(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?UT(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,hd(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:gg(),_t=6;break e;default:throw Error(r(462))}}KB();break}catch(oe){ZA(a,oe)}while(!0);return pa=Xi=null,k.H=h,k.A=g,Ze=u,Le!==null?0:(ct=null,Be=0,Rf(),_t)}function KB(){for(;Le!==null&&!wt();)nT(Le)}function nT(a){var o=AA(a.alternate,a,_a);a.memoizedProps=a.pendingProps,o===null?hd(a):Le=o}function rT(a){var o=a,u=o.alternate;switch(o.tag){case 15:case 0:o=xA(u,o,o.pendingProps,o.type,void 0,Be);break;case 11:o=xA(u,o,o.pendingProps,o.type.render,o.ref,Be);break;case 5:Pv(o);default:jA(u,o),o=Le=tE(o,_a),o=AA(u,o,_a)}a.memoizedProps=a.pendingProps,o===null?hd(a):Le=o}function wl(a,o,u,h){pa=Xi=null,Pv(o),cl=null,iu=0;var g=o.return;try{if(LB(a,g,o,u,Be)){_t=1,ed(a,tr(u,a.current)),Le=null;return}}catch(b){if(g!==null)throw Le=g,b;_t=1,ed(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))),aT(o,a)):hd(o)}function hd(a){var o=a;do{if((o.flags&32768)!==0){aT(o,li);return}a=o.return;var u=BB(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 aT(a,o){do{var u=qB(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 iT(a,o,u,h,g,b,C,D,U){a.cancelPendingCommit=null;do pd();while(Bt!==0);if((Ze&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=ov,Sn(a,u,b,C,D,U),a===ct&&(Le=ct=null,Be=0),bl=o,ci=a,Ea=u,pg=b,mg=g,WA=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,JB(zi,function(){return cT(),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=Ze,Ze|=4;try{UB(a,o,u)}finally{Ze=C,q.p=g,k.T=h}}Bt=1,oT(),lT(),sT()}}function oT(){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=Ze;Ze|=4;try{BA(o,a);var b=Mg,C=V_(a.containerInfo),D=b.focusedElem,U=b.selectionRange;if(C!==D&&D&&D.ownerDocument&&G_(D.ownerDocument.documentElement,D)){if(U!==null&&tv(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=F_(D,Te),G=F_(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}}Ad=!!Cg,Mg=Cg=null}finally{Ze=g,q.p=h,k.T=u}}a.current=o,Bt=2}}function lT(){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=Ze;Ze|=4;try{kA(a,o.alternate,o)}finally{Ze=g,q.p=h,k.T=u}}Bt=3}}function sT(){if(Bt===4||Bt===3){Bt=0,Qn();var a=ci,o=bl,u=Ea,h=WA;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Bt=5:(Bt=0,bl=ci=null,uT(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&&pd(),Yr(a),g=a.pendingLanes,(u&261930)!==0&&(g&42)!==0?a===vg?Su++:(Su=0,vg=a):Su=0,Ou(0)}}function uT(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,ru(o)))}function pd(){return oT(),lT(),sT(),cT()}function cT(){if(Bt!==5)return!1;var a=ci,o=pg;pg=0;var u=xr(Ea),h=k.T,g=q.p;try{q.p=32>u?32:u,k.T=null,u=mg,mg=null;var b=ci,C=Ea;if(Bt=0,bl=ci=null,Ea=0,(Ze&6)!==0)throw Error(r(331));var D=Ze;if(Ze|=4,GA(b.current),UA(b,b.current,C,u),Ze=D,Ou(0,!1),yn&&typeof yn.onPostCommitFiberRoot=="function")try{yn.onPostCommitFiberRoot(Bi,b)}catch{}return!0}finally{q.p=g,k.T=h,uT(a,o)}}function fT(a,o,u){o=tr(u,o),o=Wv(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)fT(a,a,u);else for(;o!==null;){if(o.tag===3){fT(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=dA(2),h=ri(o,u,2),h!==null&&(hA(u,h,o,a),St(h,2),Yr(h));break}}o=o.return}}function bg(a,o,u){var h=a.pingCache;if(h===null){h=a.pingCache=new GB;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)||(fg=!0,g.add(u),a=XB.bind(null,a,o,u),o.then(a,a))}function XB(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()-sd?(Ze&2)===0&&xl(a,0):dg|=u,yl===Be&&(yl=0)),Yr(a)}function dT(a,o){o===0&&(o=fn()),a=Yi(a,o),a!==null&&(St(a,o),Yr(a))}function QB(a){var o=a.memoizedState,u=0;o!==null&&(u=o.retryLane),dT(a,u)}function ZB(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),dT(a,u)}function JB(a,o){return qr(a,o)}var md=null,Sl=null,xg=!1,vd=!1,wg=!1,di=0;function Yr(a){a!==Sl&&a.next===null&&(Sl===null?md=Sl=a:Sl=Sl.next=a),vd=!0,xg||(xg=!0,tq())}function Ou(a,o){if(!wg&&vd){wg=!0;do for(var u=!1,h=md;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,vT(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,vT(h,b));h=h.next}while(u);wg=!1}}function eq(){hT()}function hT(){vd=xg=!1;var a=0;di!==0&&fq()&&(a=di);for(var o=Yt(),u=null,h=md;h!==null;){var g=h.next,b=pT(h,o);b===0?(h.next=null,u===null?md=g:u.next=g,g===null&&(Sl=u)):(u=h,(a!==0||(b&3)!==0)&&(vd=!0)),h=g}Bt!==0&&Bt!==5||Ou(a),di!==0&&(di=0)}function pT(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=bf;break;case 32:u=zi;break;case 268435456:u=sa;break;default:u=zi}return h=mT.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 mT(a,o){if(Bt!==0&&Bt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(pd()&&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:(XA(a,h,o),pT(a,Yt()),a.callbackNode!=null&&a.callbackNode===u?mT.bind(null,a):null)}function vT(a,o){if(pd())return null;XA(a,o,!0)}function tq(){hq(function(){(Ze&6)!==0?qr(Ii,eq):hT()})}function Sg(){if(di===0){var a=ll;a===0&&(a=Bo,Bo<<=1,(Bo&261888)===0&&(Bo=256)),di=a}return di}function gT(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:_f(""+a)}function yT(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 nq(a,o,u,h,g){if(o==="submit"&&u&&u.stateNode===g){var b=gT((g[En]||null).action),C=h.submitter;C&&(o=(o=C[En]||null)?gT(o.formAction):C.getAttribute("formAction"),o!==null&&(b=o,C=null));var D=new jf("action","action",null,h,g);a.push({event:D,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(di!==0){var U=C?yT(g,C):new FormData(g);Uv(u,{pending:!0,data:U,method:g.method,action:b},null,U)}}else typeof b=="function"&&(D.preventDefault(),U=C?yT(g,C):new FormData(g),Uv(u,{pending:!0,data:U,method:g.method,action:b},b,U))},currentTarget:g}]})}}for(var Og=0;Og<iv.length;Og++){var _g=iv[Og],rq=_g.toLowerCase(),aq=_g[0].toUpperCase()+_g.slice(1);wr(rq,"on"+aq)}wr(K_,"onAnimationEnd"),wr(X_,"onAnimationIteration"),wr(Q_,"onAnimationStart"),wr("dblclick","onDoubleClick"),wr("focusin","onFocus"),wr("focusout","onBlur"),wr(xB,"onTransitionRun"),wr(wB,"onTransitionStart"),wr(SB,"onTransitionCancel"),wr(Z_,"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 _u="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(" "),iq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(_u));function bT(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){Nf(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){Nf(oe)}g.currentTarget=null,b=U}}}}function Ie(a,o){var u=o[Lm];u===void 0&&(u=o[Lm]=new Set);var h=a+"__bubble";u.has(h)||(xT(o,a,2,!1),u.add(h))}function Eg(a,o,u){var h=0;o&&(h|=4),xT(u,a,h,o)}var gd="_reactListening"+Math.random().toString(36).slice(2);function Ag(a){if(!a[gd]){a[gd]=!0,h_.forEach(function(u){u!=="selectionchange"&&(iq.has(u)||Eg(u,!1,a),Eg(u,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[gd]||(o[gd]=!0,Eg("selectionchange",!1,o))}}function xT(a,o,u,h){switch(KT(o)){case 2:var g=Pq;break;case 8:g=Dq;break;default:g=qg}u=g.bind(null,o,u,a),g=void 0,!Vm||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 Tg(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}E_(function(){var ee=b,oe=Fm(u),fe=[];e:{var te=J_.get(a);if(te!==void 0){var re=jf,we=a;switch(a){case"keypress":if(Af(u)===0)break e;case"keydown":case"keyup":re=Z5;break;case"focusin":we="focus",re=Xm;break;case"focusout":we="blur",re=Xm;break;case"beforeblur":case"afterblur":re=Xm;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=j_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=B5;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=tB;break;case K_:case X_:case Q_:re=H5;break;case Z_:re=rB;break;case"scroll":case"scrollend":re=I5;break;case"wheel":re=iB;break;case"copy":case"cut":case"paste":re=G5;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=M_;break;case"toggle":case"beforetoggle":re=lB}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=Vs(G,Z),ue!=null&&Te.push(Eu(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!==Hm&&(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=j_,ue="onMouseLeave",Z="onMouseEnter",G="mouse",(a==="pointerout"||a==="pointerover")&&(Te=M_,ue="onPointerLeave",Z="onPointerEnter",G="pointer"),lt=re==null?te:Gs(re),J=we==null?te:Gs(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=oq,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&&wT(fe,te,re,Te,!1),we!==null&<!==null&&wT(fe,lt,we,Te,!0)}}e:{if(te=ee?Gs(ee):window,re=te.nodeName&&te.nodeName.toLowerCase(),re==="select"||re==="input"&&te.type==="file")var Ye=I_;else if($_(te))if(z_)Ye=gB;else{Ye=mB;var _e=pB}else re=te.nodeName,!re||re.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&Um(ee.elementType)&&(Ye=I_):Ye=vB;if(Ye&&(Ye=Ye(a,ee))){L_(fe,Ye,u,oe);break e}_e&&_e(a,te,ee),a==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&qm(te,"number",te.value)}switch(_e=ee?Gs(ee):window,a){case"focusin":($_(_e)||_e.contentEditable==="true")&&(Jo=_e,nv=ee,eu=null);break;case"focusout":eu=nv=Jo=null;break;case"mousedown":rv=!0;break;case"contextmenu":case"mouseup":case"dragend":rv=!1,Y_(fe,u,oe);break;case"selectionchange":if(bB)break;case"keydown":case"keyup":Y_(fe,u,oe)}var De;if(Zm)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?D_(a,u)&&(qe="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(qe="onCompositionStart");qe&&(N_&&u.locale!=="ko"&&(Zo||qe!=="onCompositionStart"?qe==="onCompositionEnd"&&Zo&&(De=A_()):(Xa=oe,Ym="value"in Xa?Xa.value:Xa.textContent,Zo=!0)),_e=yd(ee,qe),0<_e.length&&(qe=new C_(qe,a,null,u,oe),fe.push({event:qe,listeners:_e}),De?qe.data=De:(De=k_(u),De!==null&&(qe.data=De)))),(De=uB?cB(a,u):fB(a,u))&&(qe=yd(ee,"onBeforeInput"),0<qe.length&&(_e=new C_("onBeforeInput","beforeinput",null,u,oe),fe.push({event:_e,listeners:qe}),_e.data=De)),nq(fe,a,ee,u,oe)}bT(fe,o)})}function Eu(a,o,u){return{instance:a,listener:o,currentTarget:u}}function yd(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=Vs(a,u),g!=null&&h.unshift(Eu(a,g,b)),g=Vs(a,o),g!=null&&h.push(Eu(a,g,b))),a.tag===3)return h;a=a.return}return[]}function oq(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function wT(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=Vs(u,b),ee!=null&&C.unshift(Eu(u,ee,U))):g||(ee=Vs(u,b),ee!=null&&C.push(Eu(u,ee,U)))),u=u.return}C.length!==0&&a.push({event:o,listeners:C})}var lq=/\r\n?/g,sq=/\u0000|\uFFFD/g;function ST(a){return(typeof a=="string"?a:""+a).replace(lq,`
|
|
49
|
+
`).replace(sq,"")}function OT(a,o){return o=ST(o),ST(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":Sf(a,"class",h);break;case"tabIndex":Sf(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Sf(a,u,h);break;case"style":O_(a,h,b);break;case"data":if(o!=="object"){Sf(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=_f(""+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=_f(""+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=_f(""+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),wf(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":wf(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=$5.get(u)||u,wf(a,u,h))}}function jg(a,o,u,h,g,b){switch(u){case"style":O_(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(!p_.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,""):wf(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)}}b_(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)}w_(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<_u.length;h++)Ie(_u[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(Um(o)){for(oe in u)u.hasOwnProperty(oe)&&(h=u[oe],h!==void 0&&jg(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 uq(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)}}Bm(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)}x_(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(Um(o)){for(var lt in u)te=u[lt],u.hasOwnProperty(lt)&&te!==void 0&&!h.hasOwnProperty(lt)&&jg(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||jg(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 _T(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function cq(){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&&_T(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&&_T(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 Cg=null,Mg=null;function bd(a){return a.nodeType===9?a:a.ownerDocument}function ET(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 AT(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 Ng(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 Rg=null;function fq(){var a=window.event;return a&&a.type==="popstate"?a===Rg?!1:(Rg=a,!0):(Rg=null,!1)}var TT=typeof setTimeout=="function"?setTimeout:void 0,dq=typeof clearTimeout=="function"?clearTimeout:void 0,jT=typeof Promise=="function"?Promise:void 0,hq=typeof queueMicrotask=="function"?queueMicrotask:typeof jT<"u"?function(a){return jT.resolve(null).then(a).catch(pq)}:TT;function pq(a){setTimeout(function(){throw a})}function hi(a){return a==="head"}function CT(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")Au(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,Au(u);for(var b=u.firstChild;b;){var C=b.nextSibling,D=b.nodeName;b[Fs]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=C}}else u==="body"&&Au(a.ownerDocument.body);u=g}while(u);Al(o)}function MT(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 Pg(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":Pg(u),Im(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function mq(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[Fs])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 vq(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 NT(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 Dg(a){return a.data==="$?"||a.data==="$~"}function kg(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function gq(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 $g=null;function RT(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 PT(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 DT(a,o,u){switch(o=bd(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 Au(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);Im(a)}var lr=new Map,kT=new Set;function xd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Aa=q.d;q.d={f:yq,r:bq,D:xq,C:wq,L:Sq,m:Oq,X:Eq,S:_q,M:Aq};function yq(){var a=Aa.f(),o=fd();return a||o}function bq(a){var o=Go(a);o!==null&&o.tag===5&&o.type==="form"?ZE(o):Aa.r(a)}var Ol=typeof document>"u"?null:document;function $T(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+'"]'),kT.has(g)||(kT.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 xq(a){Aa.D(a),$T("dns-prefetch",a,null)}function wq(a,o){Aa.C(a,o),$T("preconnect",a,o)}function Sq(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(Tu(b))||o==="script"&&h.querySelector(ju(b))||(o=h.createElement("link"),an(o,"link",a),Kt(o),h.head.appendChild(o)))}}function Oq(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(ju(b)))return}h=u.createElement("link"),an(h,"link",a),Kt(h),u.head.appendChild(h)}}}function _q(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(Tu(b)))D.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":o},u),(u=lr.get(b))&&Lg(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,wd(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:D},g.set(b,C)}}}function Eq(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(ju(g)),b||(a=p({src:a,async:!0},o),(o=lr.get(g))&&Ig(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 Aq(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(ju(g)),b||(a=p({src:a,async:!0,type:"module"},o),(o=lr.get(g))&&Ig(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 LT(a,o,u,h){var g=(g=ge.current)?xd(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(Tu(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||Tq(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 Tu(a){return'link[rel="stylesheet"]['+a+"]"}function IT(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function Tq(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 ju(a){return"script[async]"+a}function zT(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),wd(h,u.precedence,a),o.instance=h;case"stylesheet":g=_l(u.href);var b=a.querySelector(Tu(g));if(b)return o.state.loading|=4,o.instance=b,Kt(b),b;h=IT(u),(g=lr.get(g))&&Lg(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,wd(b,u.precedence,a),o.instance=b;case"script":return b=El(u.src),(g=a.querySelector(ju(b)))?(o.instance=g,Kt(g),g):(h=u,(g=lr.get(b))&&(h=p({},u),Ig(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,wd(h,u.precedence,a));return o.instance}function wd(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 Lg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Ig(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var Sd=null;function BT(a,o,u){if(Sd===null){var h=new Map,g=Sd=new Map;g.set(u,h)}else g=Sd,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[Fs]||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 qT(a,o,u){a=a.ownerDocument||a,a.head.insertBefore(u,o==="title"?a.querySelector("head > title"):null)}function jq(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 UT(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function Cq(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(Tu(g));if(b){o=b._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=Od.bind(a),o.then(a,a)),u.state.loading|=4,u.instance=b,Kt(b);return}b=o.ownerDocument||o,h=IT(h),(g=lr.get(g))&&Lg(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=Od.bind(a),o.addEventListener("load",u),o.addEventListener("error",u))}}var zg=0;function Mq(a,o){return a.stylesheets&&a.count===0&&Ed(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var h=setTimeout(function(){if(a.stylesheets&&Ed(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+o);0<a.imgBytes&&zg===0&&(zg=62500*cq());var g=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&Ed(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>zg?50:800)+o);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(g)}}:null}function Od(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Ed(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var _d=null;function Ed(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,_d=new Map,o.forEach(Nq,a),_d=null,Od.call(a))}function Nq(a,o){if(!(o.state.loading&4)){var u=_d.get(a);if(u)var h=u.get(null);else{u=new Map,_d.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=Od.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 Cu={$$typeof:A,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function Rq(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 HT(a,o,u,h,g,b,C,D,U,ee,oe,fe){return a=new Rq(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=yv(),o.refCount++,a.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:u,cache:o},Sv(b),a}function FT(a){return a?(a=nl,a):nl}function GT(a,o,u,h,g,b){g=FT(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),lu(u,a,o))}function VT(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<o?u:o}}function Bg(a,o){VT(a,o),(a=a.alternate)&&VT(a,o)}function YT(a){if(a.tag===13||a.tag===31){var o=Yi(a,67108864);o!==null&&Nn(o,a,67108864),Bg(a,67108864)}}function WT(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),Bg(a,o)}}var Ad=!0;function Pq(a,o,u,h){var g=k.T;k.T=null;var b=q.p;try{q.p=2,qg(a,o,u,h)}finally{q.p=b,k.T=g}}function Dq(a,o,u,h){var g=k.T;k.T=null;var b=q.p;try{q.p=8,qg(a,o,u,h)}finally{q.p=b,k.T=g}}function qg(a,o,u,h){if(Ad){var g=Ug(h);if(g===null)Tg(a,o,h,Td,u),XT(a,h);else if($q(g,a,o,u,h))h.stopPropagation();else if(XT(a,h),o&4&&-1<kq.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),(Ze&6)===0&&(ud=Yt()+500,Ou(0))}}break;case 31:case 13:D=Yi(b,2),D!==null&&Nn(D,b,2),fd(),Bg(b,2)}if(b=Ug(h),b===null&&Tg(a,o,h,Td,u),b===g)break;g=b}g!==null&&h.stopPropagation()}else Tg(a,o,h,null,u)}}function Ug(a){return a=Fm(a),Hg(a)}var Td=null;function Hg(a){if(Td=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 Td=a,null}function KT(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 bf:return 8;case zi:case Us:return 32;case sa:return 268435456;default:return 32}default:return 32}}var Fg=!1,pi=null,mi=null,vi=null,Mu=new Map,Nu=new Map,gi=[],kq="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 XT(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":Mu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Nu.delete(o.pointerId)}}function Ru(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&&YT(o)),a):(a.eventSystemFlags|=h,o=a.targetContainers,g!==null&&o.indexOf(g)===-1&&o.push(g),a)}function $q(a,o,u,h,g){switch(o){case"focusin":return pi=Ru(pi,a,o,u,h,g),!0;case"dragenter":return mi=Ru(mi,a,o,u,h,g),!0;case"mouseover":return vi=Ru(vi,a,o,u,h,g),!0;case"pointerover":var b=g.pointerId;return Mu.set(b,Ru(Mu.get(b)||null,a,o,u,h,g)),!0;case"gotpointercapture":return b=g.pointerId,Nu.set(b,Ru(Nu.get(b)||null,a,o,u,h,g)),!0}return!1}function QT(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,f_(a.priority,function(){WT(u)});return}}else if(o===31){if(o=c(u),o!==null){a.blockedOn=o,f_(a.priority,function(){WT(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 jd(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var u=Ug(a.nativeEvent);if(u===null){u=a.nativeEvent;var h=new u.constructor(u.type,u);Hm=h,u.target.dispatchEvent(h),Hm=null}else return o=Go(u),o!==null&&YT(o),a.blockedOn=u,!1;o.shift()}return!0}function ZT(a,o,u){jd(a)&&u.delete(o)}function Lq(){Fg=!1,pi!==null&&jd(pi)&&(pi=null),mi!==null&&jd(mi)&&(mi=null),vi!==null&&jd(vi)&&(vi=null),Mu.forEach(ZT),Nu.forEach(ZT)}function Cd(a,o){a.blockedOn===o&&(a.blockedOn=null,Fg||(Fg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Lq)))}var Md=null;function JT(a){Md!==a&&(Md=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Md===a&&(Md=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(Hg(h||u)===null)continue;break}var b=Go(u);b!==null&&(a.splice(o,3),o-=3,Uv(b,{pending:!0,data:g,method:u.method,action:h},h,g))}}))}function Al(a){function o(U){return Cd(U,a)}pi!==null&&Cd(pi,a),mi!==null&&Cd(mi,a),vi!==null&&Cd(vi,a),Mu.forEach(o),Nu.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);)QT(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||JT(u);else if(C){var D=null;if(b&&b.hasAttribute("formAction")){if(g=b,C=b[En]||null)D=C.formAction;else if(Hg(g)!==null)continue}else D=C.action;typeof D=="function"?u[h+1]=D:(u.splice(h,3),h-=3),JT(u)}}}function ej(){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 Gg(a){this._internalRoot=a}Nd.prototype.render=Gg.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=Hn();GT(u,h,a,o,null,null)},Nd.prototype.unmount=Gg.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;GT(a.current,2,null,a,null,null),fd(),o[Ho]=null}};function Nd(a){this._internalRoot=a}Nd.prototype.unstable_scheduleHydration=function(a){if(a){var o=$m();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&&QT(a)}};var tj=t.version;if(tj!=="19.2.0")throw Error(r(527,tj,"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 Iq={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Rd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Rd.isDisabled&&Rd.supportsFiber)try{Bi=Rd.inject(Iq),yn=Rd}catch{}}return Du.createRoot=function(a,o){if(!i(a))throw Error(r(299));var u=!1,h="",g=sA,b=uA,C=cA;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=HT(a,1,!1,null,null,u,h,null,g,b,C,ej),a[Ho]=o.current,Ag(a),new Gg(o)},Du.hydrateRoot=function(a,o,u){if(!i(a))throw Error(r(299));var h=!1,g="",b=sA,C=uA,D=cA,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=HT(a,1,!0,o,u??null,h,g,U,b,C,D,ej),o.context=FT(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,Ag(a),new Nd(o)},Du.version="19.2.0",Du}var fj;function Wq(){if(fj)return Wg.exports;fj=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(),Wg.exports=Yq(),Wg.exports}var Kq=Wq();/**
|
|
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 dj="popstate";function Xq(e={}){function t(r,i){let{pathname:l,search:s,hash:c}=r.location;return gw("",{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:lc(i)}return Zq(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 Qq(){return Math.random().toString(36).substring(2,10)}function hj(e,t){return{usr:e.state,key:e.key,idx:t}}function gw(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Os(t):t,state:n,key:t&&t.key||r||Qq()}}function lc({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 Os(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 Zq(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=gw(w.location,S,E);d=m()+1;let A=hj(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=gw(w.location,S,E);d=m();let A=hj(T,d),M=w.createHref(T);s.replaceState(A,"",M),l&&f&&f({action:c,location:w.location,delta:0})}function O(S){return Jq(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(dj,p),f=S,()=>{i.removeEventListener(dj,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 Jq(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:lc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function pk(e,t,n="/"){return e8(e,t,n,!1)}function e8(e,t,n,r){let i=typeof t=="string"?Os(t):t,l=$a(i.pathname||"/",n);if(l==null)return null;let s=mk(e);t8(s);let c=null;for(let f=0;c==null&&f<s.length;++f){let d=d8(l);c=c8(s[f],d,r)}return c}function mk(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}".`),mk(s.children,t,y,p,f)),!(s.path==null&&!s.index)&&t.push({path:p,score:s8(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 vk(s.path))l(s,c,!0,d)}),t}function vk(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=vk(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 t8(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:u8(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var n8=/^:[\w-]+$/,r8=3,a8=2,i8=1,o8=10,l8=-2,pj=e=>e==="*";function s8(e,t){let n=e.split("/"),r=n.length;return n.some(pj)&&(r+=l8),t&&(r+=a8),n.filter(i=>!pj(i)).reduce((i,l)=>i+(n8.test(l)?r8:l===""?i8:o8),r)}function u8(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 c8(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=fh({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},m),y=f.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=fh({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:v8(Ra([l,p.pathnameBase])),route:y}),p.pathnameBase!=="/"&&(l=Ra([l,p.pathnameBase]))}return s}function fh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=f8(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 f8(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 d8(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 h8(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Os(e):e;return{pathname:n?n.startsWith("/")?n:p8(n,t):t,search:g8(r),hash:y8(i)}}function p8(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 Zg(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 m8(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function uS(e){let t=m8(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function cS(e,t,n,r=!1){let i;typeof e=="string"?i=Os(e):(i={...e},xt(!i.pathname||!i.pathname.includes("?"),Zg("?","pathname","search",i)),xt(!i.pathname||!i.pathname.includes("#"),Zg("#","pathname","hash",i)),xt(!i.search||!i.search.includes("#"),Zg("#","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=h8(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,"/"),v8=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),g8=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y8=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function b8(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 gk=["POST","PUT","PATCH","DELETE"];new Set(gk);var x8=["GET",...gk];new Set(x8);var _s=_.createContext(null);_s.displayName="DataRouter";var Ap=_.createContext(null);Ap.displayName="DataRouterState";_.createContext(!1);var yk=_.createContext({isTransitioning:!1});yk.displayName="ViewTransition";var w8=_.createContext(new Map);w8.displayName="Fetchers";var S8=_.createContext(null);S8.displayName="Await";var kr=_.createContext(null);kr.displayName="Navigation";var Kc=_.createContext(null);Kc.displayName="Location";var $r=_.createContext({outlet:null,matches:[],isDataRoute:!1});$r.displayName="Route";var fS=_.createContext(null);fS.displayName="RouteError";function O8(e,{relative:t}={}){xt(Es(),"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}=Qc(e,{relative:t}),c=l;return n!=="/"&&(c=l==="/"?n:Ra([n,l])),r.createHref({pathname:c,search:s,hash:i})}function Es(){return _.useContext(Kc)!=null}function ia(){return xt(Es(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(Kc).location}var bk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function xk(e){_.useContext(kr).static||_.useLayoutEffect(e)}function Xc(){let{isDataRoute:e}=_.useContext($r);return e?L8():_8()}function _8(){xt(Es(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(_s),{basename:t,navigator:n}=_.useContext(kr),{matches:r}=_.useContext($r),{pathname:i}=ia(),l=JSON.stringify(uS(r)),s=_.useRef(!1);return xk(()=>{s.current=!0}),_.useCallback((f,d={})=>{if(Nr(s.current,bk),!s.current)return;if(typeof f=="number"){n.go(f);return}let m=cS(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 E8(){let{matches:e}=_.useContext($r),t=e[e.length-1];return t?t.params:{}}function Qc(e,{relative:t}={}){let{matches:n}=_.useContext($r),{pathname:r}=ia(),i=JSON.stringify(uS(n));return _.useMemo(()=>cS(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function A8(e,t){return wk(e,t)}function wk(e,t,n,r,i){var T;xt(Es(),"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||"";Sk(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"?Os(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=pk(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=N8(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(Kc.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},E):E}function T8(){let e=$8(),t=b8(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 j8=_.createElement(T8,null),C8=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(fS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function M8({routeContext:e,match:t,children:n}){let r=_.useContext(_s);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 N8(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||j8,c&&(f<0&&p===0?(Sk("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(M8,{match:m,routeContext:{outlet:d,matches:S,isDataRoute:n!=null},children:T})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?_.createElement(C8,{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 dS(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function R8(e){let t=_.useContext(_s);return xt(t,dS(e)),t}function P8(e){let t=_.useContext(Ap);return xt(t,dS(e)),t}function D8(e){let t=_.useContext($r);return xt(t,dS(e)),t}function hS(e){let t=D8(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 k8(){return hS("useRouteId")}function $8(){var r;let e=_.useContext(fS),t=P8("useRouteError"),n=hS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function L8(){let{router:e}=R8("useNavigate"),t=hS("useNavigate"),n=_.useRef(!1);return xk(()=>{n.current=!0}),_.useCallback(async(i,l={})=>{Nr(n.current,bk),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...l}))},[e,t])}var mj={};function Sk(e,t,n){!t&&!mj[e]&&(mj[e]=!0,Nr(!1,n))}_.memo(I8);function I8({routes:e,future:t,state:n,unstable_onError:r}){return wk(e,void 0,n,r,t)}function z8({to:e,replace:t,state:n,relative:r}){xt(Es(),"<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=Xc(),f=cS(e,uS(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 Il(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 B8({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:l=!1}){xt(!Es(),"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=Os(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(Kc.Provider,{children:t,value:x}))}function q8({children:e,location:t}){return A8(yw(e),t)}function yw(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,yw(r.props.children,l));return}xt(r.type===Il,`[${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=yw(r.props.children,l)),n.push(s)}),n}var ih="get",oh="application/x-www-form-urlencoded";function Tp(e){return e!=null&&typeof e.tagName=="string"}function U8(e){return Tp(e)&&e.tagName.toLowerCase()==="button"}function H8(e){return Tp(e)&&e.tagName.toLowerCase()==="form"}function F8(e){return Tp(e)&&e.tagName.toLowerCase()==="input"}function G8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function V8(e,t){return e.button===0&&(!t||t==="_self")&&!G8(e)}var Dd=null;function Y8(){if(Dd===null)try{new FormData(document.createElement("form"),0),Dd=!1}catch{Dd=!0}return Dd}var W8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Jg(e){return e!=null&&!W8.has(e)?(Nr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${oh}"`),null):e}function K8(e,t){let n,r,i,l,s;if(H8(e)){let c=e.getAttribute("action");r=c?$a(c,t):null,n=e.getAttribute("method")||ih,i=Jg(e.getAttribute("enctype"))||oh,l=new FormData(e)}else if(U8(e)||F8(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")||ih,i=Jg(e.getAttribute("formenctype"))||Jg(c.getAttribute("enctype"))||oh,l=new FormData(c,e),!Y8()){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(Tp(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=ih,r=null,i=oh,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 pS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function X8(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 Q8(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 Z8(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 J8(e,t,n){let r=await Promise.all(e.map(async i=>{let l=t.routes[i.route.id];if(l){let s=await Q8(l,n);return s.links?s.links():[]}return[]}));return r6(r.flat(1).filter(Z8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function vj(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 e6(e,t,{includeHydrateFallback:n}={}){return t6(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 t6(e){return[...new Set(e)]}function n6(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function r6(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let l=JSON.stringify(n6(i));return n.has(l)||(n.add(l),r.push({key:l,link:i})),r},[])}function Ok(){let e=_.useContext(_s);return pS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function a6(){let e=_.useContext(Ap);return pS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var mS=_.createContext(void 0);mS.displayName="FrameworkContext";function _k(){let e=_.useContext(mS);return pS(e,"You must render this element inside a <HydratedRouter> element"),e}function i6(e,t){let n=_.useContext(mS),[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:ku(c,x),onBlur:ku(f,O),onMouseEnter:ku(d,x),onMouseLeave:ku(m,O),onTouchStart:ku(p,x)}]:[!1,y,{}]}function ku(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function o6({page:e,...t}){let{router:n}=Ok(),r=_.useMemo(()=>pk(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?_.createElement(s6,{page:e,matches:r,...t}):null}function l6(e){let{manifest:t,routeModules:n}=_k(),[r,i]=_.useState([]);return _.useEffect(()=>{let l=!1;return J8(e,t,n).then(s=>{l||i(s)}),()=>{l=!0}},[e,t,n]),r}function s6({page:e,matches:t,...n}){let r=ia(),{manifest:i,routeModules:l}=_k(),{basename:s}=Ok(),{loaderData:c,matches:f}=a6(),d=_.useMemo(()=>vj(e,t,f,i,r,"data"),[e,t,f,i,r]),m=_.useMemo(()=>vj(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=X8(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(()=>e6(m,i),[m,i]),x=l6(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 u6(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Ek=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ek&&(window.__reactRouterVersion="7.9.5")}catch{}function c6({basename:e,children:t,window:n}){let r=_.useRef();r.current==null&&(r.current=Xq({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(B8,{basename:e,children:t,location:l.location,navigationType:l.action,navigator:i})}var Ak=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,dh=_.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"&&Ak.test(d),S,E=!1;if(typeof d=="string"&&w&&(S=d,Ek))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=O8(d,{relative:i}),[A,M,j]=i6(r,y),N=p6(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:u6(x,M),target:f,"data-discover":!w&&n==="render"?"true":void 0});return A&&!w?_.createElement(_.Fragment,null,P,_.createElement(o6,{page:T})):P});dh.displayName="Link";var f6=_.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=Qc(s,{relative:d.relative}),y=ia(),x=_.useContext(Ap),{navigator:O,basename:w}=_.useContext(kr),S=x!=null&&b6(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(dh,{...d,"aria-current":P,className:L,ref:m,style:Y,to:s,viewTransition:c},typeof f=="function"?f(R):f)});f6.displayName="NavLink";var d6=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:l,method:s=ih,action:c,onSubmit:f,relative:d,preventScrollReset:m,viewTransition:p,...y},x)=>{let O=g6(),w=y6(c,{relative:d}),S=s.toLowerCase()==="get"?"get":"post",E=typeof c=="string"&&Ak.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})});d6.displayName="Form";function h6(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Tk(e){let t=_.useContext(_s);return xt(t,h6(e)),t}function p6(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:l,viewTransition:s}={}){let c=Xc(),f=ia(),d=Qc(e,{relative:l});return _.useCallback(m=>{if(V8(m,t)){m.preventDefault();let p=n!==void 0?n:lc(f)===lc(d);c(e,{replace:p,state:r,preventScrollReset:i,relative:l,viewTransition:s})}},[f,c,d,n,r,t,e,i,l,s])}var m6=0,v6=()=>`__${String(++m6)}__`;function g6(){let{router:e}=Tk("useSubmit"),{basename:t}=_.useContext(kr),n=k8();return _.useCallback(async(r,i={})=>{let{action:l,method:s,encType:c,formData:f,body:d}=K8(r,t);if(i.navigate===!1){let m=i.fetcherKey||v6();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 y6(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={...Qc(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])),lc(l)}function b6(e,{relative:t}={}){let n=_.useContext(yk);xt(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Tk("useViewTransitionState"),i=Qc(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 fh(i.pathname,s)!=null||fh(i.pathname,l)!=null}var Zc=hk();const jk=ut(Zc);/**
|
|
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 x6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Ck=(...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 w6={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 S6=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:l,iconNode:s,...c},f)=>_.createElement("svg",{ref:f,...w6,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Ck("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 Ge=(e,t)=>{const n=_.forwardRef(({className:r,...i},l)=>_.createElement(S6,{ref:l,iconNode:t,className:Ck(`lucide-${x6(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 vS=Ge("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 ey=Ge("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 O6=Ge("BadgeCheck",[["path",{d:"M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",key:"3c2336"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
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 _6=Ge("Bell",[["path",{d:"M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9",key:"1qo2s2"}],["path",{d:"M10.3 21a1.94 1.94 0 0 0 3.4 0",key:"qgo35s"}]]);/**
|
|
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 E6=Ge("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"}]]);/**
|
|
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 Mk=Ge("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
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 As=Ge("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
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 Jc=Ge("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
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 A6=Ge("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|
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 Nk=Ge("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"}]]);/**
|
|
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 jp=Ge("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
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 T6=Ge("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"}]]);/**
|
|
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 bw=Ge("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
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 j6=Ge("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"}]]);/**
|
|
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 C6=Ge("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"}]]);/**
|
|
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 M6=Ge("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
|
|
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 N6=Ge("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"}]]);/**
|
|
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 R6=Ge("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"}]]);/**
|
|
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 P6=Ge("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
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 D6=Ge("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
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 Ul=Ge("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"}]]);/**
|
|
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 k6=Ge("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 $6=Ge("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"}]]);/**
|
|
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 L6=Ge("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
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 gj=Ge("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"}]]);/**
|
|
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 Rk=Ge("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"}]]);/**
|
|
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 I6=Ge("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 z6=Ge("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"}]]);/**
|
|
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 B6=Ge("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
|
|
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 q6=Ge("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"}]]);/**
|
|
231
|
+
* @license lucide-react v0.462.0 - ISC
|
|
232
|
+
*
|
|
233
|
+
* This source code is licensed under the ISC license.
|
|
234
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
235
|
+
*/const U6=Ge("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"}]]);/**
|
|
236
|
+
* @license lucide-react v0.462.0 - ISC
|
|
237
|
+
*
|
|
238
|
+
* This source code is licensed under the ISC license.
|
|
239
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
240
|
+
*/const H6=Ge("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"}]]);/**
|
|
241
|
+
* @license lucide-react v0.462.0 - ISC
|
|
242
|
+
*
|
|
243
|
+
* This source code is licensed under the ISC license.
|
|
244
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
245
|
+
*/const F6=Ge("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"}]]);/**
|
|
246
|
+
* @license lucide-react v0.462.0 - ISC
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the ISC license.
|
|
249
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/const Hl=Ge("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Pk(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,G6(i,...t)]}function G6(...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 yj(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function ef(...e){return t=>{let n=!1;const r=e.map(i=>{const l=yj(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():yj(e[i],null)}}}}function Ke(...e){return _.useCallback(ef(...e),e)}var V6=Symbol.for("react.lazy"),hh=sS[" use ".trim().toString()];function Y6(e){return typeof e=="object"&&e!==null&&"then"in e}function Dk(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===V6&&"_payload"in e&&Y6(e._payload)}function kk(e){const t=W6(e),n=_.forwardRef((r,i)=>{let{children:l,...s}=r;Dk(l)&&typeof hh=="function"&&(l=hh(l._payload));const c=_.Children.toArray(l),f=c.find(X6);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=kk("Slot");function W6(e){const t=_.forwardRef((n,r)=>{let{children:i,...l}=n;if(Dk(i)&&typeof hh=="function"&&(i=hh(i._payload)),_.isValidElement(i)){const s=Z6(i),c=Q6(l,i.props);return i.type!==_.Fragment&&(c.ref=r?ef(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var K6=Symbol("radix.slottable");function X6(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===K6}function Q6(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 Z6(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 J6=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Ro=J6.reduce((e,t)=>{const n=kk(`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}},{}),ty={exports:{}},ny={};/**
|
|
251
|
+
* @license React
|
|
252
|
+
* use-sync-external-store-shim.production.js
|
|
253
|
+
*
|
|
254
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the MIT license found in the
|
|
257
|
+
* LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/var bj;function eU(){if(bj)return ny;bj=1;var e=Ep();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 ny.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,ny}var xj;function tU(){return xj||(xj=1,ty.exports=eU()),ty.exports}var nU=tU();function rU(){return nU.useSyncExternalStore(aU,()=>!0,()=>!1)}function aU(){return()=>{}}var gS="Avatar",[iU]=Pk(gS),[oU,$k]=iU(gS),Lk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,l]=_.useState("idle");return v.jsx(oU,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:l,children:v.jsx(Ro.span,{...r,ref:t})})});Lk.displayName=gS;var Ik="AvatarImage",zk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...l}=e,s=$k(Ik,n),c=lU(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});zk.displayName=Ik;var Bk="AvatarFallback",qk=_.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,l=$k(Bk,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});qk.displayName=Bk;function wj(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function lU(e,{referrerPolicy:t,crossOrigin:n}){const r=rU(),i=_.useRef(null),l=r?(i.current||(i.current=new window.Image),i.current):null,[s,c]=_.useState(()=>wj(l,e));return zt(()=>{c(wj(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 sU=Lk,uU=zk,cU=qk;function Uk(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=Uk(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=Uk(e))&&(r&&(r+=" "),r+=t);return r}const fU=(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},dU=(e,t)=>({classGroupId:e,validator:t}),Hk=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),ph="-",Sj=[],hU="arbitrary..",pU=e=>{const t=vU(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return mU(s);const c=s.split(ph),f=c[0]===""&&c.length>1?1:0;return Fk(c,f,t)},getConflictingClassGroupIds:(s,c)=>{if(c){const f=r[s],d=n[s];return f?d?fU(d,f):f:d||Sj}return n[s]||Sj}}},Fk=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],l=n.nextPart.get(i);if(l){const d=Fk(e,t+1,l);if(d)return d}const s=n.validators;if(s===null)return;const c=t===0?e.join(ph):e.slice(t).join(ph),f=s.length;for(let d=0;d<f;d++){const m=s[d];if(m.validator(c))return m.classGroupId}},mU=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?hU+r:void 0})(),vU=e=>{const{theme:t,classGroups:n}=e;return gU(n,t)},gU=(e,t)=>{const n=Hk();for(const r in e){const i=e[r];yS(i,n,r,t)}return n},yS=(e,t,n,r)=>{const i=e.length;for(let l=0;l<i;l++){const s=e[l];yU(s,t,n,r)}},yU=(e,t,n,r)=>{if(typeof e=="string"){bU(e,t,n);return}if(typeof e=="function"){xU(e,t,n,r);return}wU(e,t,n,r)},bU=(e,t,n)=>{const r=e===""?t:Gk(t,e);r.classGroupId=n},xU=(e,t,n,r)=>{if(SU(e)){yS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(dU(n,e))},wU=(e,t,n,r)=>{const i=Object.entries(e),l=i.length;for(let s=0;s<l;s++){const[c,f]=i[s];yS(f,Gk(t,c),n,r)}},Gk=(e,t)=>{let n=e;const r=t.split(ph),i=r.length;for(let l=0;l<i;l++){const s=r[l];let c=n.nextPart.get(s);c||(c=Hk(),n.nextPart.set(s,c)),n=c}return n},SU=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,OU=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)}}},xw="!",Oj=":",_U=[],_j=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),EU=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===Oj){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(xw)?(y=p.slice(0,-1),x=!0):p.startsWith(xw)&&(y=p.slice(1),x=!0);const O=d&&d>f?d-f:void 0;return _j(l,x,y,O)};if(t){const i=t+Oj,l=r;r=s=>s.startsWith(i)?l(s.slice(i.length)):_j(_U,!1,s,void 0,!0)}if(n){const i=r;r=l=>n({className:l,parseClassName:i})}return r},AU=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}},TU=e=>({cache:OU(e.cacheSize),parseClassName:EU(e),sortModifiers:AU(e),...pU(e)}),jU=/\s+/,CU=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:l}=t,s=[],c=e.trim().split(jU);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+xw: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},MU=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=Vk(n))&&(i&&(i+=" "),i+=r);return i},Vk=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Vk(e[r]))&&(n&&(n+=" "),n+=t);return n},NU=(e,...t)=>{let n,r,i,l;const s=f=>{const d=t.reduce((m,p)=>p(m),e());return n=TU(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=CU(f,n);return i(f,m),m};return l=s,(...f)=>l(MU(...f))},RU=[],qt=e=>{const t=n=>n[e]||RU;return t.isThemeGetter=!0,t},Yk=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Wk=/^\((?:(\w[\w-]*):)?(.+)\)$/i,PU=/^\d+\/\d+$/,DU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,kU=/\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$/,$U=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,LU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,IU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Tl=e=>PU.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),bi=e=>!!e&&Number.isInteger(Number(e)),ry=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Ta=e=>DU.test(e),zU=()=>!0,BU=e=>kU.test(e)&&!$U.test(e),Kk=()=>!1,qU=e=>LU.test(e),UU=e=>IU.test(e),HU=e=>!Se(e)&&!Oe(e),FU=e=>Ts(e,Zk,Kk),Se=e=>Yk.test(e),oo=e=>Ts(e,Jk,BU),ay=e=>Ts(e,KU,ke),Ej=e=>Ts(e,Xk,Kk),GU=e=>Ts(e,Qk,UU),kd=e=>Ts(e,e$,qU),Oe=e=>Wk.test(e),$u=e=>js(e,Jk),VU=e=>js(e,XU),Aj=e=>js(e,Xk),YU=e=>js(e,Zk),WU=e=>js(e,Qk),$d=e=>js(e,e$,!0),Ts=(e,t,n)=>{const r=Yk.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},js=(e,t,n=!1)=>{const r=Wk.exec(e);return r?r[1]?t(r[1]):n:!1},Xk=e=>e==="position"||e==="percentage",Qk=e=>e==="image"||e==="url",Zk=e=>e==="length"||e==="size"||e==="bg-size",Jk=e=>e==="length",KU=e=>e==="number",XU=e=>e==="family-name",e$=e=>e==="shadow",QU=()=>{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(),Aj,Ej,{position:[Oe,Se]}],le=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",YU,FU,{size:[Oe,Se]}],F=()=>[ry,$u,oo],X=()=>["","none","full",d,Oe,Se],ae=()=>["",ke,$u,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,ry,Aj,Ej],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:[zU],container:[Ta],"drop-shadow":[Ta],ease:["in","out","in-out"],font:[HU],"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,$u,oo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Oe,ay]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",ry,Se]}],"font-family":[{font:[VU,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,ay]}],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]},WU,GU]}],"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,$u,oo]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",m,$d,kd]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",p,$d,kd]}],"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,$d,kd]}],"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,$d,kd]}],"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,$u,oo,ay]}],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"]}},ZU=NU(QU);function me(...e){return ZU(Fe(e))}function Tj({className:e,...t}){return v.jsx(sU,{className:me("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),"data-slot":"avatar",...t})}function jj({className:e,...t}){return v.jsx(uU,{className:me("aspect-square size-full",e),"data-slot":"avatar-image",...t})}function Cj({className:e,...t}){return v.jsx(cU,{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 JU(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,eH(i,...t)]}function eH(...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 tH=sS[" useInsertionEffect ".trim().toString()]||zt;function Ti({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,l,s]=nH({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=rH(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 nH({defaultProp:e,onChange:t}){const[n,r]=_.useState(e),i=_.useRef(n),l=_.useRef(t);return tH(()=>{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 rH(e){return typeof e=="function"}function Ql(e){const t=aH(e),n=_.forwardRef((r,i)=>{const{children:l,...s}=r,c=_.Children.toArray(l),f=c.find(iH);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 aH(e){const t=_.forwardRef((n,r)=>{const{children:i,...l}=n;if(_.isValidElement(i)){const s=lH(i),c=oH(l,i.props);return i.type!==_.Fragment&&(c.ref=r?ef(r,s):s),_.cloneElement(i,c)}return _.Children.count(i)>1?_.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var t$=Symbol("radix.slottable");function n$(e){const t=({children:n})=>v.jsx(v.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=t$,t}function iH(e){return _.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===t$}function oH(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 lH(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 sH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=sH.reduce((e,t)=>{const n=Ql(`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 r$(e,t){e&&Zc.flushSync(()=>e.dispatchEvent(t))}function bS(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=Ql(c),d=I.forwardRef((w,S)=>{const{scope:E,children:T}=w,A=l(c,E),M=Ke(S,A.collectionRef);return v.jsx(f,{ref:M,children:T})});d.displayName=c;const m=e+"CollectionItemSlot",p="data-radix-collection-item",y=Ql(m),x=I.forwardRef((w,S)=>{const{scope:E,children:T,...A}=w,M=I.useRef(null),j=Ke(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 uH=_.createContext(void 0);function Cp(e){const t=_.useContext(uH);return e||t||"ltr"}function cH(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 fH="DismissableLayer",ww="dismissableLayer.update",dH="dismissableLayer.pointerDownOutside",hH="dismissableLayer.focusOutside",Mj,a$=_.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),tf=_.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:l,onInteractOutside:s,onDismiss:c,...f}=e,d=_.useContext(a$),[m,p]=_.useState(null),y=(m==null?void 0:m.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=_.useState({}),O=Ke(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=vH(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=gH(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 cH(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&&(Mj=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),Nj(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(y.body.style.pointerEvents=Mj)}},[m,y,n,d]),_.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),Nj())},[m,d]),_.useEffect(()=>{const R=()=>x({});return document.addEventListener(ww,R),()=>document.removeEventListener(ww,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)})});tf.displayName=fH;var pH="DismissableLayerBranch",mH=_.forwardRef((e,t)=>{const n=_.useContext(a$),r=_.useRef(null),i=Ke(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})});mH.displayName=pH;function vH(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(){i$(dH,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 gH(e,t=globalThis==null?void 0:globalThis.document){const n=Rr(e),r=_.useRef(!1);return _.useEffect(()=>{const i=l=>{l.target&&!r.current&&i$(hH,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 Nj(){const e=new CustomEvent(ww);document.dispatchEvent(e)}function i$(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?r$(i,l):i.dispatchEvent(l)}var iy=0;function xS(){_.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Rj()),document.body.insertAdjacentElement("beforeend",e[1]??Rj()),iy++,()=>{iy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),iy--}},[])}function Rj(){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 oy="focusScope.autoFocusOnMount",ly="focusScope.autoFocusOnUnmount",Pj={bubbles:!1,cancelable:!0},yH="FocusScope",Mp=_.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=Ke(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){kj.add(x);const w=document.activeElement;if(!c.contains(w)){const E=new CustomEvent(oy,Pj);c.addEventListener(oy,d),c.dispatchEvent(E),E.defaultPrevented||(bH(_H(o$(c)),{select:!0}),document.activeElement===w&&wi(c))}return()=>{c.removeEventListener(oy,d),setTimeout(()=>{const E=new CustomEvent(ly,Pj);c.addEventListener(ly,m),c.dispatchEvent(E),E.defaultPrevented||wi(w??document.body,{select:!0}),c.removeEventListener(ly,m),kj.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]=xH(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})});Mp.displayName=yH;function bH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(wi(r,{select:t}),document.activeElement!==n)return}function xH(e){const t=o$(e),n=Dj(t,e),r=Dj(t.reverse(),e);return[n,r]}function o$(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 Dj(e,t){for(const n of e)if(!wH(n,{upTo:t}))return n}function wH(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 SH(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&&SH(e)&&t&&e.select()}}var kj=OH();function OH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=$j(e,t),e.unshift(t)},remove(t){var n;e=$j(e,t),(n=e[0])==null||n.resume()}}}function $j(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function _H(e){return e.filter(t=>t.tagName!=="A")}var EH=sS[" useId ".trim().toString()]||(()=>{}),AH=0;function dr(e){const[t,n]=_.useState(EH());return zt(()=>{n(r=>r??String(AH++))},[e]),e||(t?`radix-${t}`:"")}const TH=["top","right","bottom","left"],ji=Math.min,Yn=Math.max,mh=Math.round,Ld=Math.floor,ea=e=>({x:e,y:e}),jH={left:"right",right:"left",bottom:"top",top:"bottom"},CH={start:"end",end:"start"};function Sw(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 Cs(e){return e.split("-")[1]}function wS(e){return e==="x"?"y":"x"}function SS(e){return e==="y"?"height":"width"}const MH=new Set(["top","bottom"]);function Zr(e){return MH.has(Ia(e))?"y":"x"}function OS(e){return wS(Zr(e))}function NH(e,t,n){n===void 0&&(n=!1);const r=Cs(e),i=OS(e),l=SS(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(s=vh(s)),[s,vh(s)]}function RH(e){const t=vh(e);return[Ow(e),t,Ow(t)]}function Ow(e){return e.replace(/start|end/g,t=>CH[t])}const Lj=["left","right"],Ij=["right","left"],PH=["top","bottom"],DH=["bottom","top"];function kH(e,t,n){switch(e){case"top":case"bottom":return n?t?Ij:Lj:t?Lj:Ij;case"left":case"right":return t?PH:DH;default:return[]}}function $H(e,t,n,r){const i=Cs(e);let l=kH(Ia(e),n==="start",r);return i&&(l=l.map(s=>s+"-"+i),t&&(l=l.concat(l.map(Ow)))),l}function vh(e){return e.replace(/left|right|bottom|top/g,t=>jH[t])}function LH(e){return{top:0,right:0,bottom:0,left:0,...e}}function l$(e){return typeof e!="number"?LH(e):{top:e,right:e,bottom:e,left:e}}function gh(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 zj(e,t,n){let{reference:r,floating:i}=e;const l=Zr(t),s=OS(t),c=SS(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(Cs(t)){case"start":x[s]-=y*(n&&d?-1:1);break;case"end":x[s]+=y*(n&&d?-1:1);break}return x}const IH=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}=zj(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}=zj(d,y,f)),w=-1)}return{x:m,y:p,placement:y,strategy:i,middlewareData:x}};async function sc(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=l$(x),S=c[y?p==="floating"?"reference":"floating":p],E=gh(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=gh(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 zH=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=l$(m),y={x:n,y:r},x=OS(i),O=SS(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=Sw(H,Q,V),k=!f.arrow&&Cs(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}}}),BH=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?[vh(c)]:RH(c)),N=O!=="none";!y&&N&&j.push(...$H(c,w,O,M));const R=[c,...j],P=await sc(t,S),L=[];let Y=((r=l.flip)==null?void 0:r.overflows)||[];if(m&&L.push(P[E]),p){const Q=NH(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 Bj(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function qj(e){return TH.some(t=>e[t]>=0)}const qH=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 sc(t,{...i,elementContext:"reference"}),s=Bj(l,n.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:qj(s)}}}case"escaped":{const l=await sc(t,{...i,altBoundary:!0}),s=Bj(l,n.floating);return{data:{escapedOffsets:s,escaped:qj(s)}}}default:return{}}}}},s$=new Set(["left","top"]);async function UH(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=Cs(n),f=Zr(n)==="y",d=s$.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 HH=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 UH(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}}}}},FH=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 sc(t,f),p=Zr(Ia(i)),y=wS(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=Sw(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=Sw(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}}}}}},GH=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=wS(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=s$.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}}}},VH=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 sc(t,d),p=Ia(i),y=Cs(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 Np(){return typeof window<"u"}function Ms(e){return u$(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=(u$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function u$(e){return Np()?e instanceof Node||e instanceof Kn(e).Node:!1}function Pr(e){return Np()?e instanceof Element||e instanceof Kn(e).Element:!1}function ra(e){return Np()?e instanceof HTMLElement||e instanceof Kn(e).HTMLElement:!1}function Uj(e){return!Np()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Kn(e).ShadowRoot}const YH=new Set(["inline","contents"]);function nf(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Dr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!YH.has(i)}const WH=new Set(["table","td","th"]);function KH(e){return WH.has(Ms(e))}const XH=[":popover-open",":modal"];function Rp(e){return XH.some(t=>{try{return e.matches(t)}catch{return!1}})}const QH=["transform","translate","scale","rotate","perspective"],ZH=["transform","translate","scale","rotate","perspective","filter"],JH=["paint","layout","strict","content"];function _S(e){const t=ES(),n=Pr(e)?Dr(e):e;return QH.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)||ZH.some(r=>(n.willChange||"").includes(r))||JH.some(r=>(n.contain||"").includes(r))}function e7(e){let t=Ci(e);for(;ra(t)&&!Zl(t);){if(_S(t))return t;if(Rp(t))return null;t=Ci(t)}return null}function ES(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const t7=new Set(["html","body","#document"]);function Zl(e){return t7.has(Ms(e))}function Dr(e){return Kn(e).getComputedStyle(e)}function Pp(e){return Pr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ci(e){if(Ms(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Uj(e)&&e.host||oa(e);return Uj(t)?t.host:t}function c$(e){const t=Ci(e);return Zl(t)?e.ownerDocument?e.ownerDocument.body:e.body:ra(t)&&nf(t)?t:c$(t)}function uc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=c$(e),l=i===((r=e.ownerDocument)==null?void 0:r.body),s=Kn(i);if(l){const c=_w(s);return t.concat(s,s.visualViewport||[],nf(i)?i:[],c&&n?uc(c):[])}return t.concat(i,uc(i,[],n))}function _w(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function f$(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=mh(n)!==l||mh(r)!==s;return c&&(n=l,r=s),{width:n,height:r,$:c}}function AS(e){return Pr(e)?e:e.contextElement}function Fl(e){const t=AS(e);if(!ra(t))return ea(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:l}=f$(t);let s=(l?mh(n.width):n.width)/r,c=(l?mh(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}const n7=ea(0);function d$(e){const t=Kn(e);return!ES()||!t.visualViewport?n7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function r7(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=AS(e);let s=ea(1);t&&(r?Pr(r)&&(s=Fl(r)):s=Fl(e));const c=r7(l,n,r)?d$(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=_w(O);for(;w&&r&&x!==O;){const S=Fl(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=_w(O)}}return gh({width:m,height:p,x:f,y:d})}function Dp(e,t){const n=Pp(e).scrollLeft;return t?t.left+n:So(oa(e)).left+n}function h$(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Dp(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function a7(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const l=i==="fixed",s=oa(r),c=t?Rp(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)&&((Ms(r)!=="body"||nf(s))&&(f=Pp(r)),ra(r))){const x=So(r);d=Fl(r),m.x=x.x+r.clientLeft,m.y=x.y+r.clientTop}const y=s&&!p&&!l?h$(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 i7(e){return Array.from(e.getClientRects())}function o7(e){const t=oa(e),n=Pp(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+Dp(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 Hj=25;function l7(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=ES();(!m||m&&t==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const d=Dp(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<=Hj&&(l-=O)}else d<=Hj&&(l+=d);return{width:l,height:s,x:c,y:f}}const s7=new Set(["absolute","fixed"]);function u7(e,t){const n=So(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,l=ra(e)?Fl(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 Fj(e,t,n){let r;if(t==="viewport")r=l7(e,n);else if(t==="document")r=o7(oa(e));else if(Pr(t))r=u7(t,n);else{const i=d$(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return gh(r)}function p$(e,t){const n=Ci(e);return n===t||!Pr(n)||Zl(n)?!1:Dr(n).position==="fixed"||p$(n,t)}function c7(e,t){const n=t.get(e);if(n)return n;let r=uc(e,[],!1).filter(c=>Pr(c)&&Ms(c)!=="body"),i=null;const l=Dr(e).position==="fixed";let s=l?Ci(e):e;for(;Pr(s)&&!Zl(s);){const c=Dr(s),f=_S(s);!f&&c.position==="fixed"&&(i=null),(l?!f&&!i:!f&&c.position==="static"&&!!i&&s7.has(i.position)||nf(s)&&!f&&p$(e,s))?r=r.filter(m=>m!==s):i=c,s=Ci(s)}return t.set(e,r),r}function f7(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?Rp(t)?[]:c7(t,this._c):[].concat(n),r],c=s[0],f=s.reduce((d,m)=>{const p=Fj(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},Fj(t,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function d7(e){const{width:t,height:n}=f$(e);return{width:t,height:n}}function h7(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=Dp(i)}if(r||!r&&!l)if((Ms(t)!=="body"||nf(i))&&(c=Pp(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?h$(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 sy(e){return Dr(e).position==="static"}function Gj(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 m$(e,t){const n=Kn(e);if(Rp(e))return n;if(!ra(e)){let i=Ci(e);for(;i&&!Zl(i);){if(Pr(i)&&!sy(i))return i;i=Ci(i)}return n}let r=Gj(e,t);for(;r&&KH(r)&&sy(r);)r=Gj(r,t);return r&&Zl(r)&&sy(r)&&!_S(r)?n:r||e7(e)||n}const p7=async function(e){const t=this.getOffsetParent||m$,n=this.getDimensions,r=await n(e.floating);return{reference:h7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function m7(e){return Dr(e).direction==="rtl"}const v7={convertOffsetParentRelativeRectToViewportRelativeRect:a7,getDocumentElement:oa,getClippingRect:f7,getOffsetParent:m$,getElementRects:p7,getClientRects:i7,getDimensions:d7,getScale:Fl,isElement:Pr,isRTL:m7};function v$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function g7(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=Ld(p),w=Ld(i.clientWidth-(m+y)),S=Ld(i.clientHeight-(p+x)),E=Ld(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&&!v$(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 y7(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=AS(e),m=i||l?[...d?uc(d):[],...uc(t)]:[];m.forEach(E=>{i&&E.addEventListener("scroll",n,{passive:!0}),l&&E.addEventListener("resize",n)});const p=d&&c?g7(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&&!v$(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 b7=HH,x7=FH,w7=BH,S7=VH,O7=qH,Vj=zH,_7=GH,E7=(e,t,n)=>{const r=new Map,i={platform:v7,...n},l={...i.platform,_c:r};return IH(e,t,{...i,platform:l})};var A7=typeof document<"u",T7=function(){},lh=A7?_.useLayoutEffect:T7;function yh(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(!yh(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)&&!yh(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}function g$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Yj(e,t){const n=g$(e);return Math.round(t*n)/n}function uy(e){const t=_.useRef(e);return lh(()=>{t.current=e}),t}function j7(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);yh(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=uy(f),z=uy(i),H=uy(d),V=_.useCallback(()=>{if(!N.current||!R.current)return;const B={placement:t,strategy:n,middleware:y};z.current&&(B.platform=z.current),E7(N.current,R.current,B).then(W=>{const le={...W,isPositioned:H.current!==!1};Q.current&&!yh(P.current,le)&&(P.current=le,Zc.flushSync(()=>{p(le)}))})},[y,t,n,z,H]);lh(()=>{d===!1&&P.current.isPositioned&&(P.current.isPositioned=!1,p(B=>({...B,isPositioned:!1})))},[d]);const Q=_.useRef(!1);lh(()=>(Q.current=!0,()=>{Q.current=!1}),[]),lh(()=>{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=Yj(k.floating,m.x),le=Yj(k.floating,m.y);return c?{...B,transform:"translate("+W+"px, "+le+"px)",...g$(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 C7=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?Vj({element:r.current,padding:i}).fn(n):{}:r?Vj({element:r,padding:i}).fn(n):{}}}},M7=(e,t)=>({...b7(e),options:[e,t]}),N7=(e,t)=>({...x7(e),options:[e,t]}),R7=(e,t)=>({..._7(e),options:[e,t]}),P7=(e,t)=>({...w7(e),options:[e,t]}),D7=(e,t)=>({...S7(e),options:[e,t]}),k7=(e,t)=>({...O7(e),options:[e,t]}),$7=(e,t)=>({...C7(e),options:[e,t]});var L7="Arrow",y$=_.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"})})});y$.displayName=L7;var I7=y$;function z7(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 TS="Popper",[b$,Ns]=Lr(TS),[B7,x$]=b$(TS),w$=e=>{const{__scopePopper:t,children:n}=e,[r,i]=_.useState(null);return v.jsx(B7,{scope:t,anchor:r,onAnchorChange:i,children:n})};w$.displayName=TS;var S$="PopperAnchor",O$=_.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,l=x$(S$,n),s=_.useRef(null),c=Ke(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})});O$.displayName=S$;var jS="PopperContent",[q7,U7]=b$(jS),_$=_.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=x$(jS,n),[E,T]=_.useState(null),A=Ke(t,Pe=>T(Pe)),[M,j]=_.useState(null),N=z7(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(F7),altBoundary:H},{refs:Q,floatingStyles:K,placement:k,isPositioned:q,middlewareData:B}=j7({strategy:"fixed",placement:L,whileElementsMounted:(...Pe)=>y7(...Pe,{animationFrame:x==="always"}),elements:{reference:S.anchor},middleware:[M7({mainAxis:i+P,alignmentAxis:s}),f&&N7({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?R7():void 0,...V}),f&&P7({...V}),D7({...V,apply:({elements:Pe,rects:Ee,availableWidth:Qe,availableHeight:Ve})=>{const{width:at,height:un}=Ee.reference,ht=Pe.floating.style;ht.setProperty("--radix-popper-available-width",`${Qe}px`),ht.setProperty("--radix-popper-available-height",`${Ve}px`),ht.setProperty("--radix-popper-anchor-width",`${at}px`),ht.setProperty("--radix-popper-anchor-height",`${un}px`)}}),M&&$7({element:M,padding:c}),G7({arrowWidth:R,arrowHeight:P}),y&&k7({strategy:"referenceHidden",...V})]}),[W,le]=T$(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(q7,{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"}})})})});_$.displayName=jS;var E$="PopperArrow",H7={top:"bottom",right:"left",bottom:"top",left:"right"},A$=_.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,l=U7(E$,r),s=H7[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(I7,{...i,ref:n,style:{...i.style,display:"block"}})})});A$.displayName=E$;function F7(e){return e!==null}var G7=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]=T$(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 T$(e){const[t,n="center"]=e.split("-");return[t,n]}var CS=w$,MS=O$,NS=_$,RS=A$,V7="Portal",rf=_.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?jk.createPortal(v.jsx(Re.div,{...r,ref:t}),s):null});rf.displayName=V7;function Y7(e,t){return _.useReducer((n,r)=>t[n][r]??n,e)}var gr=e=>{const{present:t,children:n}=e,r=W7(t),i=typeof n=="function"?n({present:r.isPresent}):_.Children.only(n),l=Ke(r.ref,K7(i));return typeof n=="function"||r.isPresent?_.cloneElement(i,{ref:l}):null};gr.displayName="Presence";function W7(e){const[t,n]=_.useState(),r=_.useRef(null),i=_.useRef(e),l=_.useRef("none"),s=e?"mounted":"unmounted",[c,f]=Y7(s,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return _.useEffect(()=>{const d=Id(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=Id(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=Id(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=Id(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 Id(e){return(e==null?void 0:e.animationName)||"none"}function K7(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 cy="rovingFocusGroup.onEntryFocus",X7={bubbles:!1,cancelable:!0},af="RovingFocusGroup",[Ew,j$,Q7]=bS(af),[Z7,kp]=Lr(af,[Q7]),[J7,e9]=Z7(af),C$=_.forwardRef((e,t)=>v.jsx(Ew.Provider,{scope:e.__scopeRovingFocusGroup,children:v.jsx(Ew.Slot,{scope:e.__scopeRovingFocusGroup,children:v.jsx(t9,{...e,ref:t})})}));C$.displayName=af;var t9=_.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=Ke(t,y),O=Cp(l),[w,S]=Ti({prop:s,defaultProp:c??null,onChange:f,caller:af}),[E,T]=_.useState(!1),A=Rr(d),M=j$(n),j=_.useRef(!1),[N,R]=_.useState(0);return _.useEffect(()=>{const P=y.current;if(P)return P.addEventListener(cy,A),()=>P.removeEventListener(cy,A)},[A]),v.jsx(J7,{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(cy,X7);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);R$(K,m)}}j.current=!1}),onBlur:be(e.onBlur,()=>T(!1))})})}),M$="RovingFocusGroupItem",N$=_.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:l,children:s,...c}=e,f=dr(),d=l||f,m=e9(M$,n),p=m.currentTabStopId===d,y=j$(n),{onFocusableItemAdd:x,onFocusableItemRemove:O,currentTabStopId:w}=m;return _.useEffect(()=>{if(r)return x(),()=>O()},[r,x,O]),v.jsx(Ew.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=a9(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?i9(A,M+1):A.slice(M+1)}setTimeout(()=>R$(A))}}),children:typeof s=="function"?s({isCurrentTabStop:p,hasTabStop:w!=null}):s})})});N$.displayName=M$;var n9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function r9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function a9(e,t,n){const r=r9(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return n9[r]}function R$(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function i9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var P$=C$,D$=N$,o9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},jl=new WeakMap,zd=new WeakMap,Bd={},fy=0,k$=function(e){return e&&(e.host||k$(e.parentNode))},l9=function(e,t){return t.map(function(n){if(e.contains(n))return n;var r=k$(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})},s9=function(e,t,n,r){var i=l9(t,Array.isArray(e)?e:[e]);Bd[n]||(Bd[n]=new WeakMap);var l=Bd[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&&zd.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(),fy++,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||(zd.has(p)||p.removeAttribute(r),zd.delete(p)),x||p.removeAttribute(n)}),fy--,fy||(jl=new WeakMap,jl=new WeakMap,zd=new WeakMap,Bd={})}},PS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=o9(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),s9(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 $$(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 u9(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 sh="right-scroll-bar-position",uh="width-before-scroll-bar",c9="with-scroll-bars-hidden",f9="--removed-body-scroll-bar-size";function dy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function d9(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 h9=typeof window<"u"?_.useLayoutEffect:_.useEffect,Wj=new WeakMap;function p9(e,t){var n=d9(null,function(r){return e.forEach(function(i){return dy(i,r)})});return h9(function(){var r=Wj.get(n);if(r){var i=new Set(r),l=new Set(e),s=n.current;i.forEach(function(c){l.has(c)||dy(c,null)}),l.forEach(function(c){i.has(c)||dy(c,s)})}Wj.set(n,e)},[e]),n}function m9(e){return e}function v9(e,t){t===void 0&&(t=m9);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 g9(e){e===void 0&&(e={});var t=v9(null);return t.options=Qr({async:!0,ssr:!1},e),t}var L$=function(e){var t=e.sideCar,n=$$(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))};L$.isSideCarExport=!0;function y9(e,t){return e.useMedium(t),L$}var I$=g9(),hy=function(){},$p=_.forwardRef(function(e,t){var n=_.useRef(null),r=_.useState({onScrollCapture:hy,onWheelCapture:hy,onTouchMoveCapture:hy}),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=$$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=y,N=p9([n,t]),R=Qr(Qr({},M),i);return _.createElement(_.Fragment,null,m&&_.createElement(j,{sideCar:I$,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))});$p.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};$p.classNames={fullWidth:uh,zeroRight:sh};var b9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function x9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=b9();return t&&e.setAttribute("nonce",t),e}function w9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function S9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var O9=function(){var e=0,t=null;return{add:function(n){e==0&&(t=x9())&&(w9(t,n),S9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_9=function(){var e=O9();return function(t,n){_.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},z$=function(){var e=_9(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},E9={left:0,top:0,right:0,gap:0},py=function(e){return parseInt(e||"",10)||0},A9=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[py(n),py(r),py(i)]},T9=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return E9;var t=A9(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])}},j9=z$(),Gl="data-scroll-locked",C9=function(e,t,n,r){var i=e.left,l=e.top,s=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
259
|
+
.`.concat(c9,` {
|
|
260
|
+
overflow: hidden `).concat(r,`;
|
|
261
|
+
padding-right: `).concat(c,"px ").concat(r,`;
|
|
262
|
+
}
|
|
263
|
+
body[`).concat(Gl,`] {
|
|
264
|
+
overflow: hidden `).concat(r,`;
|
|
265
|
+
overscroll-behavior: contain;
|
|
266
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
267
|
+
padding-left: `.concat(i,`px;
|
|
268
|
+
padding-top: `).concat(l,`px;
|
|
269
|
+
padding-right: `).concat(s,`px;
|
|
270
|
+
margin-left:0;
|
|
271
|
+
margin-top:0;
|
|
272
|
+
margin-right: `).concat(c,"px ").concat(r,`;
|
|
273
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
.`).concat(sh,` {
|
|
277
|
+
right: `).concat(c,"px ").concat(r,`;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.`).concat(uh,` {
|
|
281
|
+
margin-right: `).concat(c,"px ").concat(r,`;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.`).concat(sh," .").concat(sh,` {
|
|
285
|
+
right: 0 `).concat(r,`;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.`).concat(uh," .").concat(uh,` {
|
|
289
|
+
margin-right: 0 `).concat(r,`;
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
body[`).concat(Gl,`] {
|
|
293
|
+
`).concat(f9,": ").concat(c,`px;
|
|
294
|
+
}
|
|
295
|
+
`)},Kj=function(){var e=parseInt(document.body.getAttribute(Gl)||"0",10);return isFinite(e)?e:0},M9=function(){_.useEffect(function(){return document.body.setAttribute(Gl,(Kj()+1).toString()),function(){var e=Kj()-1;e<=0?document.body.removeAttribute(Gl):document.body.setAttribute(Gl,e.toString())}},[])},N9=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;M9();var l=_.useMemo(function(){return T9(i)},[i]);return _.createElement(j9,{styles:C9(l,!t,i,n?"":"!important")})},Aw=!1;if(typeof window<"u")try{var qd=Object.defineProperty({},"passive",{get:function(){return Aw=!0,!0}});window.addEventListener("test",qd,qd),window.removeEventListener("test",qd,qd)}catch{Aw=!1}var Cl=Aw?{passive:!1}:!1,R9=function(e){return e.tagName==="TEXTAREA"},B$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!R9(e)&&n[t]==="visible")},P9=function(e){return B$(e,"overflowY")},D9=function(e){return B$(e,"overflowX")},Xj=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=q$(e,r);if(i){var l=U$(e,r),s=l[1],c=l[2];if(s>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},k9=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},$9=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},q$=function(e,t){return e==="v"?P9(t):D9(t)},U$=function(e,t){return e==="v"?k9(t):$9(t)},L9=function(e,t){return e==="h"&&t==="rtl"?-1:1},I9=function(e,t,n,r,i){var l=L9(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=U$(e,c),O=x[0],w=x[1],S=x[2],E=w-S-l*O;(O||E)&&q$(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},Ud=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Qj=function(e){return[e.deltaX,e.deltaY]},Zj=function(e){return e&&"current"in e?e.current:e},z9=function(e,t){return e[0]===t[0]&&e[1]===t[1]},B9=function(e){return`
|
|
296
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
297
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
298
|
+
`)},q9=0,Ml=[];function U9(e){var t=_.useRef([]),n=_.useRef([0,0]),r=_.useRef(),i=_.useState(q9++)[0],l=_.useState(z$)[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=u9([e.lockRef.current],(e.shards||[]).map(Zj),!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=Ud(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=Xj(R,N);if(!P)return!0;if(P?j=R:(j=R==="v"?"h":"v",P=Xj(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 I9(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?Qj(S):Ud(S),T=t.current.filter(function(j){return j.name===S.type&&(j.target===S.target||S.target===j.shadowParent)&&z9(j.delta,E)})[0];if(T&&T.should){S.cancelable&&S.preventDefault();return}if(!T){var A=(s.current.shards||[]).map(Zj).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:H9(E)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(M){return M!==A})},1)},[]),m=_.useCallback(function(w){n.current=Ud(w),r.current=void 0},[]),p=_.useCallback(function(w){d(w.type,Qj(w),w.target,c(w,e.lockRef.current))},[]),y=_.useCallback(function(w){d(w.type,Ud(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:B9(i)}):null,x?_.createElement(N9,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function H9(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const F9=y9(I$,U9);var Lp=_.forwardRef(function(e,t){return _.createElement($p,Qr({},e,{ref:t,sideCar:F9}))});Lp.classNames=$p.classNames;var Tw=["Enter"," "],G9=["ArrowDown","PageUp","Home"],H$=["ArrowUp","PageDown","End"],V9=[...G9,...H$],Y9={ltr:[...Tw,"ArrowRight"],rtl:[...Tw,"ArrowLeft"]},W9={ltr:["ArrowLeft"],rtl:["ArrowRight"]},of="Menu",[cc,K9,X9]=bS(of),[Po,F$]=Lr(of,[X9,Ns,kp]),Ip=Ns(),G$=kp(),[Q9,Do]=Po(of),[Z9,lf]=Po(of),V$=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:l,modal:s=!0}=e,c=Ip(t),[f,d]=_.useState(null),m=_.useRef(!1),p=Rr(l),y=Cp(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(CS,{...c,children:v.jsx(Q9,{scope:t,open:n,onOpenChange:p,content:f,onContentChange:d,children:v.jsx(Z9,{scope:t,onClose:_.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:m,dir:y,modal:s,children:r})})})};V$.displayName=of;var J9="MenuAnchor",DS=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Ip(n);return v.jsx(MS,{...i,...r,ref:t})});DS.displayName=J9;var kS="MenuPortal",[eF,Y$]=Po(kS,{forceMount:void 0}),W$=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,l=Do(kS,t);return v.jsx(eF,{scope:t,forceMount:n,children:v.jsx(gr,{present:n||l.open,children:v.jsx(rf,{asChild:!0,container:i,children:r})})})};W$.displayName=kS;var hr="MenuContent",[tF,$S]=Po(hr),K$=_.forwardRef((e,t)=>{const n=Y$(hr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=Do(hr,e.__scopeMenu),s=lf(hr,e.__scopeMenu);return v.jsx(cc.Provider,{scope:e.__scopeMenu,children:v.jsx(gr,{present:r||l.open,children:v.jsx(cc.Slot,{scope:e.__scopeMenu,children:s.modal?v.jsx(nF,{...i,ref:t}):v.jsx(rF,{...i,ref:t})})})})}),nF=_.forwardRef((e,t)=>{const n=Do(hr,e.__scopeMenu),r=_.useRef(null),i=Ke(t,r);return _.useEffect(()=>{const l=r.current;if(l)return PS(l)},[]),v.jsx(LS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:be(e.onFocusOutside,l=>l.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),rF=_.forwardRef((e,t)=>{const n=Do(hr,e.__scopeMenu);return v.jsx(LS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),aF=Ql("MenuContent.ScrollLock"),LS=_.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=lf(hr,n),T=Ip(n),A=G$(n),M=K9(n),[j,N]=_.useState(null),R=_.useRef(null),P=Ke(t,R,S.onContentChange),L=_.useRef(0),Y=_.useRef(""),z=_.useRef(0),H=_.useRef(null),V=_.useRef("right"),Q=_.useRef(0),K=O?Lp:_.Fragment,k=O?{as:aF,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=vF(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),[]),xS();const B=_.useCallback(W=>{var $,F;return V.current===(($=H.current)==null?void 0:$.side)&&yF(W,(F=H.current)==null?void 0:F.area)},[]);return v.jsx(tF,{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(Mp,{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(tf,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:m,onFocusOutside:p,onInteractOutside:y,onDismiss:x,children:v.jsx(P$,{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(NS,{role:"menu","aria-orientation":"vertical","data-state":fL(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||!V9.includes(W.key))return;W.preventDefault();const ge=M().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);H$.includes(W.key)&&ge.reverse(),pF(ge)}),onBlur:be(e.onBlur,W=>{W.currentTarget.contains(W.target)||(window.clearTimeout(L.current),Y.current="")}),onPointerMove:be(e.onPointerMove,fc(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}}))})})})})})})});K$.displayName=hr;var iF="MenuGroup",IS=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Re.div,{role:"group",...r,ref:t})});IS.displayName=iF;var oF="MenuLabel",X$=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Re.div,{...r,ref:t})});X$.displayName=oF;var bh="MenuItem",Jj="menu.itemSelect",zp=_.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,l=_.useRef(null),s=lf(bh,e.__scopeMenu),c=$S(bh,e.__scopeMenu),f=Ke(t,l),d=_.useRef(!1),m=()=>{const p=l.current;if(!n&&p){const y=new CustomEvent(Jj,{bubbles:!0,cancelable:!0});p.addEventListener(Jj,x=>r==null?void 0:r(x),{once:!0}),r$(p,y),y.defaultPrevented?d.current=!1:s.onClose()}};return v.jsx(Q$,{...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===" "||Tw.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});zp.displayName=bh;var Q$=_.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...l}=e,s=$S(bh,n),c=G$(n),f=_.useRef(null),d=Ke(t,f),[m,p]=_.useState(!1),[y,x]=_.useState("");return _.useEffect(()=>{const O=f.current;O&&x((O.textContent??"").trim())},[l.children]),v.jsx(cc.ItemSlot,{scope:n,disabled:r,textValue:i??y,children:v.jsx(D$,{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,fc(O=>{r?s.onItemLeave(O):(s.onItemEnter(O),O.defaultPrevented||O.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:be(e.onPointerLeave,fc(O=>s.onItemLeave(O))),onFocus:be(e.onFocus,()=>p(!0)),onBlur:be(e.onBlur,()=>p(!1))})})})}),lF="MenuCheckboxItem",Z$=_.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return v.jsx(rL,{scope:e.__scopeMenu,checked:n,children:v.jsx(zp,{role:"menuitemcheckbox","aria-checked":xh(n)?"mixed":n,...i,ref:t,"data-state":BS(n),onSelect:be(i.onSelect,()=>r==null?void 0:r(xh(n)?!0:!n),{checkForDefaultPrevented:!1})})})});Z$.displayName=lF;var J$="MenuRadioGroup",[sF,uF]=Po(J$,{value:void 0,onValueChange:()=>{}}),eL=_.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,l=Rr(r);return v.jsx(sF,{scope:e.__scopeMenu,value:n,onValueChange:l,children:v.jsx(IS,{...i,ref:t})})});eL.displayName=J$;var tL="MenuRadioItem",nL=_.forwardRef((e,t)=>{const{value:n,...r}=e,i=uF(tL,e.__scopeMenu),l=n===i.value;return v.jsx(rL,{scope:e.__scopeMenu,checked:l,children:v.jsx(zp,{role:"menuitemradio","aria-checked":l,...r,ref:t,"data-state":BS(l),onSelect:be(r.onSelect,()=>{var s;return(s=i.onValueChange)==null?void 0:s.call(i,n)},{checkForDefaultPrevented:!1})})})});nL.displayName=tL;var zS="MenuItemIndicator",[rL,cF]=Po(zS,{checked:!1}),aL=_.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,l=cF(zS,n);return v.jsx(gr,{present:r||xh(l.checked)||l.checked===!0,children:v.jsx(Re.span,{...i,ref:t,"data-state":BS(l.checked)})})});aL.displayName=zS;var fF="MenuSeparator",iL=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return v.jsx(Re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});iL.displayName=fF;var dF="MenuArrow",oL=_.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Ip(n);return v.jsx(RS,{...i,...r,ref:t})});oL.displayName=dF;var hF="MenuSub",[vhe,lL]=Po(hF),Ku="MenuSubTrigger",sL=_.forwardRef((e,t)=>{const n=Do(Ku,e.__scopeMenu),r=lf(Ku,e.__scopeMenu),i=lL(Ku,e.__scopeMenu),l=$S(Ku,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(DS,{asChild:!0,...d,children:v.jsx(Q$,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":fL(n.open),...e,ref:ef(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,fc(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,fc(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===" "||Y9[r.dir].includes(p.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),p.preventDefault())})})})});sL.displayName=Ku;var uL="MenuSubContent",cL=_.forwardRef((e,t)=>{const n=Y$(hr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,l=Do(hr,e.__scopeMenu),s=lf(hr,e.__scopeMenu),c=lL(uL,e.__scopeMenu),f=_.useRef(null),d=Ke(t,f);return v.jsx(cc.Provider,{scope:e.__scopeMenu,children:v.jsx(gr,{present:r||l.open,children:v.jsx(cc.Slot,{scope:e.__scopeMenu,children:v.jsx(LS,{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=W9[s.dir].includes(m.key);p&&y&&(l.onOpenChange(!1),(x=c.trigger)==null||x.focus(),m.preventDefault())})})})})})});cL.displayName=uL;function fL(e){return e?"open":"closed"}function xh(e){return e==="indeterminate"}function BS(e){return xh(e)?"indeterminate":e?"checked":"unchecked"}function pF(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function mF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function vF(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=mF(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 gF(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 yF(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return gF(n,t)}function fc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var bF=V$,xF=DS,wF=W$,SF=K$,OF=IS,_F=X$,EF=zp,AF=Z$,TF=eL,jF=nL,CF=aL,MF=iL,NF=oL,RF=sL,PF=cL,Bp="DropdownMenu",[DF]=Lr(Bp,[F$]),wn=F$(),[kF,dL]=DF(Bp),hL=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:Bp});return v.jsx(kF,{scope:t,triggerId:dr(),triggerRef:d,contentId:dr(),open:m,onOpenChange:p,onOpenToggle:_.useCallback(()=>p(y=>!y),[p]),modal:c,children:v.jsx(bF,{...f,open:m,onOpenChange:p,dir:r,modal:c,children:n})})};hL.displayName=Bp;var pL="DropdownMenuTrigger",mL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,l=dL(pL,n),s=wn(n);return v.jsx(xF,{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:ef(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())})})})});mL.displayName=pL;var $F="DropdownMenuPortal",vL=e=>{const{__scopeDropdownMenu:t,...n}=e,r=wn(t);return v.jsx(wF,{...r,...n})};vL.displayName=$F;var gL="DropdownMenuContent",yL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=dL(gL,n),l=wn(n),s=_.useRef(!1);return v.jsx(SF,{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)"}})});yL.displayName=gL;var LF="DropdownMenuGroup",bL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(OF,{...i,...r,ref:t})});bL.displayName=LF;var IF="DropdownMenuLabel",xL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(_F,{...i,...r,ref:t})});xL.displayName=IF;var zF="DropdownMenuItem",wL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(EF,{...i,...r,ref:t})});wL.displayName=zF;var BF="DropdownMenuCheckboxItem",qF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(AF,{...i,...r,ref:t})});qF.displayName=BF;var UF="DropdownMenuRadioGroup",HF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(TF,{...i,...r,ref:t})});HF.displayName=UF;var FF="DropdownMenuRadioItem",GF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(jF,{...i,...r,ref:t})});GF.displayName=FF;var VF="DropdownMenuItemIndicator",YF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(CF,{...i,...r,ref:t})});YF.displayName=VF;var WF="DropdownMenuSeparator",SL=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(MF,{...i,...r,ref:t})});SL.displayName=WF;var KF="DropdownMenuArrow",XF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(NF,{...i,...r,ref:t})});XF.displayName=KF;var QF="DropdownMenuSubTrigger",ZF=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(RF,{...i,...r,ref:t})});ZF.displayName=QF;var JF="DropdownMenuSubContent",eG=_.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=wn(n);return v.jsx(PF,{...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)"}})});eG.displayName=JF;var tG=hL,nG=mL,rG=vL,aG=yL,iG=bL,oG=xL,lG=wL,sG=SL;function uG({...e}){return v.jsx(tG,{"data-slot":"dropdown-menu",...e})}function cG({...e}){return v.jsx(nG,{"data-slot":"dropdown-menu-trigger",...e})}function fG({className:e,sideOffset:t=4,...n}){return v.jsx(rG,{children:v.jsx(aG,{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 eC({...e}){return v.jsx(iG,{"data-slot":"dropdown-menu-group",...e})}function Nl({className:e,inset:t,variant:n="default",...r}){return v.jsx(lG,{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 dG({className:e,inset:t,...n}){return v.jsx(oG,{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 Hd({className:e,...t}){return v.jsx(sG,{className:me("-mx-1 my-1 h-px bg-border",e),"data-slot":"dropdown-menu-separator",...t})}const tC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,nC=Fe,qp=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return nC(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=tC(m)||tC(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 nC(e,s,f,n==null?void 0:n.class,n==null?void 0:n.className)},qS=qp("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(qS({variant:t,size:n,className:e})),"data-slot":"button",...i})}const Up=_.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}));Up.displayName="Input";var hG="Separator",rC="horizontal",pG=["horizontal","vertical"],OL=_.forwardRef((e,t)=>{const{decorative:n,orientation:r=rC,...i}=e,l=mG(r)?r:rC,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})});OL.displayName=hG;function mG(e){return pG.includes(e)}var vG=OL;function Vl({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return v.jsx(vG,{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 Hp="Dialog",[_L,EL]=Lr(Hp),[gG,Ir]=_L(Hp),AL=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:Hp});return v.jsx(gG,{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})};AL.displayName=Hp;var TL="DialogTrigger",jL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(TL,n),l=Ke(t,i.triggerRef);return v.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":FS(i.open),...r,ref:l,onClick:be(e.onClick,i.onOpenToggle)})});jL.displayName=TL;var US="DialogPortal",[yG,CL]=_L(US,{forceMount:void 0}),ML=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,l=Ir(US,t);return v.jsx(yG,{scope:t,forceMount:n,children:_.Children.map(r,s=>v.jsx(gr,{present:n||l.open,children:v.jsx(rf,{asChild:!0,container:i,children:s})}))})};ML.displayName=US;var wh="DialogOverlay",NL=_.forwardRef((e,t)=>{const n=CL(wh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,l=Ir(wh,e.__scopeDialog);return l.modal?v.jsx(gr,{present:r||l.open,children:v.jsx(xG,{...i,ref:t})}):null});NL.displayName=wh;var bG=Ql("DialogOverlay.RemoveScroll"),xG=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(wh,n);return v.jsx(Lp,{as:bG,allowPinchZoom:!0,shards:[i.contentRef],children:v.jsx(Re.div,{"data-state":FS(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),Oo="DialogContent",RL=_.forwardRef((e,t)=>{const n=CL(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(wG,{...i,ref:t}):v.jsx(SG,{...i,ref:t})})});RL.displayName=Oo;var wG=_.forwardRef((e,t)=>{const n=Ir(Oo,e.__scopeDialog),r=_.useRef(null),i=Ke(t,n.contentRef,r);return _.useEffect(()=>{const l=r.current;if(l)return PS(l)},[]),v.jsx(PL,{...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())})}),SG=_.forwardRef((e,t)=>{const n=Ir(Oo,e.__scopeDialog),r=_.useRef(!1),i=_.useRef(!1);return v.jsx(PL,{...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()}})}),PL=_.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:l,...s}=e,c=Ir(Oo,n),f=_.useRef(null),d=Ke(t,f);return xS(),v.jsxs(v.Fragment,{children:[v.jsx(Mp,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:l,children:v.jsx(tf,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":FS(c.open),...s,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),v.jsxs(v.Fragment,{children:[v.jsx(_G,{titleId:c.titleId}),v.jsx(AG,{contentRef:f,descriptionId:c.descriptionId})]})]})}),HS="DialogTitle",DL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(HS,n);return v.jsx(Re.h2,{id:i.titleId,...r,ref:t})});DL.displayName=HS;var kL="DialogDescription",$L=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(kL,n);return v.jsx(Re.p,{id:i.descriptionId,...r,ref:t})});$L.displayName=kL;var LL="DialogClose",IL=_.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Ir(LL,n);return v.jsx(Re.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>i.onOpenChange(!1))})});IL.displayName=LL;function FS(e){return e?"open":"closed"}var zL="DialogTitleWarning",[OG,BL]=JU(zL,{contentName:Oo,titleName:HS,docsSlug:"dialog"}),_G=({titleId:e})=>{const t=BL(zL),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
299
|
+
|
|
300
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
301
|
+
|
|
302
|
+
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},EG="DialogDescriptionWarning",AG=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${BL(EG).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},GS=AL,TG=jL,VS=ML,YS=NL,WS=RL,KS=DL,XS=$L,Fp=IL;function jG({...e}){return v.jsx(GS,{"data-slot":"sheet",...e})}function CG({...e}){return v.jsx(VS,{"data-slot":"sheet-portal",...e})}function MG({className:e,...t}){return v.jsx(YS,{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 NG({className:e,children:t,side:n="right",...r}){return v.jsxs(CG,{children:[v.jsx(MG,{}),v.jsxs(WS,{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(Fp,{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(Hl,{className:"size-4"}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function RG({className:e,...t}){return v.jsx("div",{className:me("flex flex-col gap-1.5 p-4",e),"data-slot":"sheet-header",...t})}function PG({className:e,...t}){return v.jsx(KS,{className:me("font-semibold text-foreground",e),"data-slot":"sheet-title",...t})}function DG({className:e,...t}){return v.jsx(XS,{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 qL=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"}),kG="VisuallyHidden",UL=_.forwardRef((e,t)=>v.jsx(Re.span,{...e,ref:t,style:{...qL,...e.style}}));UL.displayName=kG;var $G=UL,[Gp]=Lr("Tooltip",[Ns]),Vp=Ns(),HL="TooltipProvider",LG=700,jw="tooltip.open",[IG,QS]=Gp(HL),FL=e=>{const{__scopeTooltip:t,delayDuration:n=LG,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(IG,{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})};FL.displayName=HL;var dc="Tooltip",[zG,sf]=Gp(dc),GL=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:l,disableHoverableContent:s,delayDuration:c}=e,f=QS(dc,e.__scopeTooltip),d=Vp(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(jw))):f.onClose(),l==null||l(R)},caller:dc}),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(CS,{...d,children:v.jsx(zG,{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})})};GL.displayName=dc;var Cw="TooltipTrigger",VL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=sf(Cw,n),l=QS(Cw,n),s=Vp(n),c=_.useRef(null),f=Ke(t,c,i.onTriggerChange),d=_.useRef(!1),m=_.useRef(!1),p=_.useCallback(()=>d.current=!1,[]);return _.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),v.jsx(MS,{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)})})});VL.displayName=Cw;var ZS="TooltipPortal",[BG,qG]=Gp(ZS,{forceMount:void 0}),YL=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,l=sf(ZS,t);return v.jsx(BG,{scope:t,forceMount:n,children:v.jsx(gr,{present:n||l.open,children:v.jsx(rf,{asChild:!0,container:i,children:r})})})};YL.displayName=ZS;var Jl="TooltipContent",WL=_.forwardRef((e,t)=>{const n=qG(Jl,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...l}=e,s=sf(Jl,e.__scopeTooltip);return v.jsx(gr,{present:r||s.open,children:s.disableHoverableContent?v.jsx(KL,{side:i,...l,ref:t}):v.jsx(UG,{side:i,...l,ref:t})})}),UG=_.forwardRef((e,t)=>{const n=sf(Jl,e.__scopeTooltip),r=QS(Jl,e.__scopeTooltip),i=_.useRef(null),l=Ke(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=VG(E,S.getBoundingClientRect()),A=YG(E,T),M=WG(w.getBoundingClientRect()),j=XG([...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=!KG(E,s);T?y():A&&(y(),d())};return document.addEventListener("pointermove",O),()=>document.removeEventListener("pointermove",O)}},[f,m,s,d,y]),v.jsx(KL,{...e,ref:l})}),[HG,FG]=Gp(dc,{isInside:!1}),GG=n$("TooltipContent"),KL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:l,onPointerDownOutside:s,...c}=e,f=sf(Jl,n),d=Vp(n),{onClose:m}=f;return _.useEffect(()=>(document.addEventListener(jw,m),()=>document.removeEventListener(jw,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(tf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:l,onPointerDownOutside:s,onFocusOutside:p=>p.preventDefault(),onDismiss:m,children:v.jsxs(NS,{"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(GG,{children:r}),v.jsx(HG,{scope:n,isInside:!0,children:v.jsx($G,{id:f.contentId,role:"tooltip",children:i||r})})]})})});WL.displayName=Jl;var XL="TooltipArrow",QL=_.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=Vp(n);return FG(XL,n).isInside?null:v.jsx(RS,{...i,...r,ref:t})});QL.displayName=XL;function VG(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 YG(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 WG(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 KG(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 XG(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),QG(t)}function QG(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 ZG=FL,JG=GL,eV=VL,tV=YL,nV=WL,rV=QL;function ZL({delayDuration:e=0,...t}){return v.jsx(ZG,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function JL({...e}){return v.jsx(ZL,{children:v.jsx(JG,{"data-slot":"tooltip",...e})})}function eI({...e}){return v.jsx(eV,{"data-slot":"tooltip-trigger",...e})}function tI({className:e,sideOffset:t=0,children:n,...r}){return v.jsx(tV,{children:v.jsxs(nV,{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(rV,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}const my=768;function aV(){const[e,t]=_.useState(void 0);return _.useEffect(()=>{const n=window.matchMedia(`(max-width: ${my-1}px)`),r=()=>{t(window.innerWidth<my)};return n.addEventListener("change",r),t(window.innerWidth<my),()=>n.removeEventListener("change",r)},[]),!!e}const iV="sidebar_state",oV=3600*24*7,lV="16rem",sV="18rem",uV="3rem",cV="b",nI=_.createContext(null);function Rs(){const e=_.useContext(nI);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const rI=_.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:l,...s},c)=>{const f=aV(),[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=`${iV}=${A}; path=/; max-age=${oV}`},[n,x]),w=_.useCallback(()=>f?m(T=>!T):O(T=>!T),[f,O]);_.useEffect(()=>{const T=A=>{A.key===cV&&(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(nI.Provider,{value:E,children:v.jsx(ZL,{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":lV,"--sidebar-width-icon":uV,...i},...s,children:l})})})});rI.displayName="SidebarProvider";const ch=_.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}=Rs();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(jG,{onOpenChange:m,open:d,...l,children:v.jsxs(NG,{className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:e,style:{"--sidebar-width":sV},children:[v.jsxs(RG,{className:"sr-only",children:[v.jsx(PG,{children:"Sidebar"}),v.jsx(DG,{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})})]})});ch.displayName="Sidebar";const aI=_.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:i}=Rs();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(L6,{}),v.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});aI.displayName="SidebarTrigger";const fV=_.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Rs();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})});fV.displayName="SidebarRail";const iI=_.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}));iI.displayName="SidebarInset";const oI=_.forwardRef(({className:e,...t},n)=>v.jsx(Up,{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}));oI.displayName="SidebarInput";const Mw=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:me("flex flex-col gap-2 p-2",e),"data-sidebar":"header",ref:n,...t}));Mw.displayName="SidebarHeader";const lI=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:me("flex flex-col gap-2 p-2",e),"data-sidebar":"footer",ref:n,...t}));lI.displayName="SidebarFooter";const dV=_.forwardRef(({className:e,...t},n)=>v.jsx(Vl,{className:me("mx-2 w-auto bg-sidebar-border",e),"data-sidebar":"separator",ref:n,...t}));dV.displayName="SidebarSeparator";const Nw=_.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}));Nw.displayName="SidebarContent";const Rw=_.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}));Rw.displayName="SidebarGroup";const hV=_.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})});hV.displayName="SidebarGroupLabel";const pV=_.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})});pV.displayName="SidebarGroupAction";const Pw=_.forwardRef(({className:e,...t},n)=>v.jsx("div",{className:me("w-full text-sm",e),"data-sidebar":"group-content",ref:n,...t}));Pw.displayName="SidebarGroupContent";const Sh=_.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}));Sh.displayName="SidebarMenu";const Oh=_.forwardRef(({className:e,...t},n)=>v.jsx("li",{className:me("group/menu-item relative",e),"data-sidebar":"menu-item",ref:n,...t}));Oh.displayName="SidebarMenuItem";const mV=qp("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"}}),_h=_.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}=Rs(),p=v.jsx(f,{className:me(mV({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(JL,{children:[v.jsx(eI,{asChild:!0,children:p}),v.jsx(tI,{align:"center",hidden:m!=="collapsed"||d,side:"right",...i})]})):p});_h.displayName="SidebarMenuButton";const vV=_.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})});vV.displayName="SidebarMenuAction";const gV=_.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}));gV.displayName="SidebarMenuBadge";const yV=_.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}})]})});yV.displayName="SidebarMenuSkeleton";const bV=_.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}));bV.displayName="SidebarMenuSub";const xV=_.forwardRef(({...e},t)=>v.jsx("li",{ref:t,...e}));xV.displayName="SidebarMenuSubItem";const wV=_.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})});wV.displayName="SidebarMenuSubButton";const SV={theme:"system",setTheme:()=>null},sI=_.createContext(SV),uI=()=>{const e=_.useContext(sI);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function OV({user:e}){const{isMobile:t}=Rs(),{theme:n,setTheme:r}=uI(),[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(Sh,{children:v.jsx(Oh,{children:v.jsxs(uG,{children:[v.jsx(cG,{asChild:!0,children:v.jsxs(_h,{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(Tj,{className:"h-8 w-8 rounded-lg",children:[v.jsx(jj,{alt:d,src:e.avatar}),v.jsx(Cj,{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(A6,{className:"ml-auto size-4"})]})}),v.jsxs(fG,{align:"end",className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",side:t?"bottom":"right",sideOffset:4,children:[v.jsx(dG,{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(Tj,{className:"h-8 w-8 rounded-lg",children:[v.jsx(jj,{alt:d,src:e.avatar}),v.jsx(Cj,{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(Hd,{}),v.jsx(eC,{children:v.jsxs(Nl,{onClick:()=>window.open("https://wraps.dev/pricing","_blank"),children:[v.jsx(B6,{}),"Upgrade Plan"]})}),v.jsx(Hd,{}),v.jsxs(eC,{children:[v.jsxs(Nl,{onClick:()=>window.open("https://wraps.dev/account","_blank"),children:[v.jsx(O6,{}),"Account"]}),v.jsxs(Nl,{onClick:()=>window.open("https://wraps.dev/billing","_blank"),children:[v.jsx(M6,{}),"Billing"]}),v.jsxs(Nl,{onClick:()=>window.open("https://wraps.dev/changelog","_blank"),children:[v.jsx(_6,{}),"Product Updates"]})]}),v.jsx(Hd,{}),v.jsxs(Nl,{onClick:()=>r(n==="dark"?"light":"dark"),children:[n==="dark"?v.jsx(q6,{}):v.jsx(k6,{}),n==="dark"?"Light Mode":"Dark Mode"]}),v.jsx(Hd,{}),v.jsxs(Nl,{onClick:f,children:[v.jsx(Hl,{}),"Close Console"]})]})]})})})}const Rl={user:{name:"Wraps Console",email:"admin@wraps.dev",avatar:"/avatars/wraps.jpg"},navMain:[{title:"Dashboard",url:"/",icon:vS,isActive:!0,isDashboard:!0},{title:"Email",url:"#",icon:Ul,isActive:!1,subItems:[{title:"Emails",icon:Ul,url:"/email"},{title:"Metrics",icon:E6,url:"/email/metrics"},{title:"Settings",icon:z6,url:"/email/settings"}]}]};function _V({...e}){const t=ia(),n=Xc(),{setOpen:r,state:i}=Rs(),{theme:l}=uI(),s=_.useCallback(()=>t.pathname==="/"?Rl.navMain[0]:t.pathname.startsWith("/email")?Rl.navMain[1]:Rl.navMain[0],[t.pathname]),[c,f]=_.useState(s());return _.useEffect(()=>{f(s())},[s]),v.jsxs(ch,{className:"overflow-hidden *:data-[sidebar=sidebar]:flex-row",collapsible:"icon",...e,children:[v.jsxs(ch,{className:"w-[calc(var(--sidebar-width-icon)+1px)]! border-r",collapsible:"none",children:[v.jsx(Mw,{children:v.jsx(Sh,{children:v.jsx(Oh,{children:v.jsx(_h,{asChild:!0,className:"md:h-8 md:p-0",onClick:()=>{f(Rl.navMain[0]),r(!1)},size:"lg",children:v.jsxs(dh,{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(Nw,{children:v.jsx(Rw,{children:v.jsx(Pw,{className:"px-1.5 md:px-0",children:v.jsx(Sh,{children:Rl.navMain.filter(d=>!d.isDashboard).map(d=>v.jsx(Oh,{children:v.jsxs(_h,{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(lI,{children:v.jsx(OV,{user:Rl.user})})]}),i==="expanded"&&v.jsx(ch,{className:"hidden flex-1 md:flex",collapsible:"none",children:c&&!c.isDashboard&&c.subItems?v.jsxs(v.Fragment,{children:[v.jsxs(Mw,{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(oI,{placeholder:"Search..."})]}),v.jsx(Nw,{children:v.jsx(Rw,{className:"px-0",children:v.jsx(Pw,{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(dh,{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(vS,{className:"mx-auto mb-4 size-12 opacity-50"}),v.jsx("p",{className:"text-sm",children:"Select a product to view options"})]})})})]})}const EV=qp("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(EV({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 AV=qp("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(AV({variant:t}),e),"data-slot":"alert",role:"alert",...n})}function TV({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 Yp="Tabs",[jV]=Lr(Yp,[kp]),cI=kp(),[CV,JS]=jV(Yp),fI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:l,orientation:s="horizontal",dir:c,activationMode:f="automatic",...d}=e,m=Cp(c),[p,y]=Ti({prop:r,onChange:i,defaultProp:l??"",caller:Yp});return v.jsx(CV,{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})})});fI.displayName=Yp;var dI="TabsList",hI=_.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,l=JS(dI,n),s=cI(n);return v.jsx(P$,{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})})});hI.displayName=dI;var pI="TabsTrigger",mI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...l}=e,s=JS(pI,n),c=cI(n),f=yI(s.baseId,r),d=bI(s.baseId,r),m=r===s.value;return v.jsx(D$,{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)})})})});mI.displayName=pI;var vI="TabsContent",gI=_.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:l,...s}=e,c=JS(vI,n),f=yI(c.baseId,r),d=bI(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})})});gI.displayName=vI;function yI(e,t){return`${e}-trigger-${t}`}function bI(e,t){return`${e}-content-${t}`}var MV=fI,NV=hI,RV=mI,PV=gI;function xI({className:e,...t}){return v.jsx(MV,{className:me("flex flex-col gap-2",e),"data-slot":"tabs",...t})}function wI({className:e,...t}){return v.jsx(NV,{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 ec({className:e,...t}){return v.jsx(RV,{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 tc({className:e,...t}){return v.jsx(PV,{className:me("flex-1 outline-none",e),"data-slot":"tabs-content",...t})}function DV({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(xI,{className:"w-full",defaultValue:"rendered",children:[v.jsxs(wI,{className:"grid w-full grid-cols-3",children:[v.jsxs(ec,{className:"gap-2",value:"rendered",children:[v.jsx(R6,{className:"h-4 w-4"}),"Rendered Email"]}),v.jsxs(ec,{className:"gap-2",value:"text",children:[v.jsx(N6,{className:"h-4 w-4"}),"Plain Text"]}),v.jsxs(ec,{className:"gap-2",value:"html",children:[v.jsx(j6,{className:"h-4 w-4"}),"HTML Source"]})]}),v.jsxs(tc,{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(tc,{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(tc,{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 kV={sent:Ul,delivered:Mk,bounced:Hl,complained:Hl,opened:Ul,clicked:Ul,failed:Hl},$V={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"},LV={delivered:"default",sent:"secondary",bounced:"destructive",complained:"destructive",failed:"destructive",opened:"default",clicked:"default"};function IV(){const{id:e}=E8(),t=Xc(),[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(ey,{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(ey,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),v.jsx(pn,{variant:LV[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"}),"📋"]})]})]})]})})]}),v.jsx(DV,{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=kV[y.type]||bw,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 ${$V[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(ey,{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 aC(e,[t,n]){return Math.min(n,Math.max(t,e))}function zV(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 BV=[" ","Enter","ArrowUp","ArrowDown"],qV=[" ","Enter"],_o="Select",[Wp,Kp,UV]=bS(_o),[Ps]=Lr(_o,[UV,Ns]),Xp=Ns(),[HV,Ni]=Ps(_o),[FV,GV]=Ps(_o),SI=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=Xp(t),[S,E]=_.useState(null),[T,A]=_.useState(null),[M,j]=_.useState(!1),N=Cp(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(CS,{...w,children:v.jsxs(HV,{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(Wp.Provider,{scope:t,children:v.jsx(FV,{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(FI,{"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]})})};SI.displayName=_o;var OI="SelectTrigger",_I=_.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,l=Xp(n),s=Ni(OI,n),c=s.disabled||r,f=Ke(t,s.onTriggerChange),d=Kp(n),m=_.useRef("touch"),[p,y,x]=VI(w=>{const S=d().filter(A=>!A.disabled),E=S.find(A=>A.value===s.value),T=YI(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(MS,{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":GI(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===" ")&&BV.includes(w.key)&&(O(),w.preventDefault())})})})});_I.displayName=OI;var EI="SelectValue",AI=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:l,placeholder:s="",...c}=e,f=Ni(EI,n),{onValueNodeHasChildrenChange:d}=f,m=l!==void 0,p=Ke(t,f.onValueNodeChange);return zt(()=>{d(m)},[d,m]),v.jsx(Re.span,{...c,ref:p,style:{pointerEvents:"none"},children:GI(f.value)?v.jsx(v.Fragment,{children:s}):l})});AI.displayName=EI;var VV="SelectIcon",TI=_.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return v.jsx(Re.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});TI.displayName=VV;var YV="SelectPortal",jI=e=>v.jsx(rf,{asChild:!0,...e});jI.displayName=YV;var Eo="SelectContent",CI=_.forwardRef((e,t)=>{const n=Ni(Eo,e.__scopeSelect),[r,i]=_.useState();if(zt(()=>{i(new DocumentFragment)},[]),!n.open){const l=r;return l?Zc.createPortal(v.jsx(MI,{scope:e.__scopeSelect,children:v.jsx(Wp.Slot,{scope:e.__scopeSelect,children:v.jsx("div",{children:e.children})})}),l):null}return v.jsx(NI,{...e,ref:t})});CI.displayName=Eo;var Er=10,[MI,Ri]=Ps(Eo),WV="SelectContentImpl",KV=Ql("SelectContent.RemoveScroll"),NI=_.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=Ke(t,ce=>M(ce)),[P,L]=_.useState(null),[Y,z]=_.useState(null),H=Kp(n),[V,Q]=_.useState(!1),K=_.useRef(!1);_.useEffect(()=>{if(A)return PS(A)},[A]),xS();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,$]=VI(ce=>{const he=H().filter(ve=>!ve.disabled),ie=he.find(ve=>ve.ref.current===document.activeElement),pe=YI(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"?Dw:RI,ge=de===Dw?{side:c,sideOffset:f,align:d,alignOffset:m,arrowPadding:p,collisionBoundary:y,collisionPadding:x,sticky:O,hideWhenDetached:w,avoidCollisions:S}:{};return v.jsx(MI,{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(Lp,{as:KV,allowPinchZoom:!0,children:v.jsx(Mp,{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(tf,{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()}})})})})})})});NI.displayName=WV;var XV="SelectItemAlignedPosition",RI=_.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=Ke(t,R=>m(R)),y=Kp(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,Qe=Math.max(Ee,P.width),Ve=window.innerWidth-Er,at=aC(ne,[Er,Math.max(Er,Ve-Qe)]);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,Qe=Math.max(Ee,P.width),Ve=window.innerWidth-Er,at=aC(ne,[Er,Math.max(Er,Ve-Qe)]);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(ZV,{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}})})})});RI.displayName=XV;var QV="SelectPopperPosition",Dw=_.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Er,...l}=e,s=Xp(n);return v.jsx(NS,{...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)"}})});Dw.displayName=QV;var[ZV,eO]=Ps(Eo,{}),kw="SelectViewport",PI=_.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,l=Ri(kw,n),s=eO(kw,n),c=Ke(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(Wp.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})})})]})});PI.displayName=kw;var DI="SelectGroup",[JV,eY]=Ps(DI),tY=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=dr();return v.jsx(JV,{scope:n,id:i,children:v.jsx(Re.div,{role:"group","aria-labelledby":i,...r,ref:t})})});tY.displayName=DI;var kI="SelectLabel",nY=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=eY(kI,n);return v.jsx(Re.div,{id:i.id,...r,ref:t})});nY.displayName=kI;var Eh="SelectItem",[rY,$I]=Ps(Eh),LI=_.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:l,...s}=e,c=Ni(Eh,n),f=Ri(Eh,n),d=c.value===r,[m,p]=_.useState(l??""),[y,x]=_.useState(!1),O=Ke(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(rY,{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(Wp.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===" "||(qV.includes(T.key)&&E(),T.key===" "&&T.preventDefault())})})})})});LI.displayName=Eh;var Xu="SelectItemText",II=_.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...l}=e,s=Ni(Xu,n),c=Ri(Xu,n),f=$I(Xu,n),d=GV(Xu,n),[m,p]=_.useState(null),y=Ke(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?Zc.createPortal(l.children,s.valueNode):null]})});II.displayName=Xu;var zI="SelectItemIndicator",BI=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return $I(zI,n).isSelected?v.jsx(Re.span,{"aria-hidden":!0,...r,ref:t}):null});BI.displayName=zI;var $w="SelectScrollUpButton",qI=_.forwardRef((e,t)=>{const n=Ri($w,e.__scopeSelect),r=eO($w,e.__scopeSelect),[i,l]=_.useState(!1),s=Ke(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(HI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});qI.displayName=$w;var Lw="SelectScrollDownButton",UI=_.forwardRef((e,t)=>{const n=Ri(Lw,e.__scopeSelect),r=eO(Lw,e.__scopeSelect),[i,l]=_.useState(!1),s=Ke(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(HI,{...e,ref:s,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});UI.displayName=Lw;var HI=_.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,l=Ri("SelectScrollButton",n),s=_.useRef(null),c=Kp(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()})})}),aY="SelectSeparator",iY=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return v.jsx(Re.div,{"aria-hidden":!0,...r,ref:t})});iY.displayName=aY;var Iw="SelectArrow",oY=_.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=Xp(n),l=Ni(Iw,n),s=Ri(Iw,n);return l.open&&s.position==="popper"?v.jsx(RS,{...i,...r,ref:t}):null});oY.displayName=Iw;var lY="SelectBubbleInput",FI=_.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=_.useRef(null),l=Ke(r,i),s=zV(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:{...qL,...n.style},ref:l,defaultValue:t})});FI.displayName=lY;function GI(e){return e===""||e===void 0}function VI(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 YI(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=sY(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 sY(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var uY=SI,cY=_I,fY=AI,dY=TI,hY=jI,pY=CI,mY=PI,vY=LI,gY=II,yY=BI,bY=qI,xY=UI;function zw({...e}){return v.jsx(uY,{"data-slot":"select",...e})}function Bw({...e}){return v.jsx(fY,{"data-slot":"select-value",...e})}function qw({className:e,size:t="default",children:n,...r}){return v.jsxs(cY,{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(dY,{asChild:!0,children:v.jsx(As,{className:"size-4 opacity-50"})})]})}function Uw({className:e,children:t,position:n="popper",align:r="center",...i}){return v.jsx(hY,{children:v.jsxs(pY,{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(wY,{}),v.jsx(mY,{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(SY,{})]})})}function Qt({className:e,children:t,...n}){return v.jsxs(vY,{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(yY,{children:v.jsx(Mk,{className:"size-4"})})}),v.jsx(gY,{children:t})]})}function wY({className:e,...t}){return v.jsx(bY,{className:me("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button",...t,children:v.jsx(Jc,{className:"size-4"})})}function SY({className:e,...t}){return v.jsx(xY,{className:me("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button",...t,children:v.jsx(As,{className:"size-4"})})}function OY({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 _Y({className:e,...t}){return v.jsx("thead",{className:me("[&_tr]:border-b",e),"data-slot":"table-header",...t})}function EY({className:e,...t}){return v.jsx("tbody",{className:me("[&_tr:last-child]:border-0",e),"data-slot":"table-body",...t})}function Fd({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 Lu({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 vy={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 AY(){const e=Xc(),[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(xI,{onValueChange:f,value:c,children:[v.jsxs(wI,{children:[v.jsx(ec,{value:"sending",children:"Sending"}),v.jsx(ec,{value:"receiving",children:"Receiving"})]}),v.jsxs(tc,{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(I6,{className:"absolute top-2.5 left-2.5 h-4 w-4 text-muted-foreground"}),v.jsx(Up,{className:"pl-8",onChange:E=>n(E.target.value),placeholder:"Search...",value:t})]}),v.jsxs(zw,{onValueChange:i,value:r,children:[v.jsx(qw,{className:"w-[180px]",children:v.jsx(Bw,{})}),v.jsxs(Uw,{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(zw,{onValueChange:s,value:l,children:[v.jsx(qw,{className:"w-[180px]",children:v.jsx(Bw,{})}),v.jsxs(Uw,{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(OY,{children:[v.jsx(_Y,{children:v.jsxs(Fd,{children:[v.jsx(Lu,{children:"To"}),v.jsx(Lu,{children:"Status"}),v.jsx(Lu,{children:"Subject"}),v.jsx(Lu,{children:"Sent"}),v.jsx(Lu,{className:"w-[50px]"})]})}),v.jsx(EY,{children:p?v.jsx(Fd,{children:v.jsx(lo,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"Loading email logs..."})}):w.length===0?v.jsx(Fd,{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(Fd,{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(JL,{children:[v.jsx(eI,{asChild:!0,children:v.jsx(pn,{className:(T=vy[E.status])==null?void 0:T.className,variant:((A=vy[E.status])==null?void 0:A.variant)??"default",children:E.status.charAt(0).toUpperCase()+E.status.slice(1)})}),v.jsx(tI,{children:v.jsx("p",{children:((M=vy[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(tc,{value:"receiving",children:v.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"Receiving emails coming soon"})})]})})]})}const WI=6048e5,TY=864e5,iC=Symbol.for("constructDateFrom");function Mi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&iC in e?e[iC](t):e instanceof Date?new e.constructor(t):new Date(t)}function zr(e,t){return Mi(t||e,e)}let jY={};function Qp(){return jY}function hc(e,t){var c,f,d,m;const n=Qp(),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 Ah(e,t){return hc(e,{...t,weekStartsOn:1})}function KI(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=Ah(i),s=Mi(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const c=Ah(s);return n.getTime()>=l.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function oC(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 CY(e,...t){const n=Mi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function lC(e,t){const n=zr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function MY(e,t,n){const[r,i]=CY(n==null?void 0:n.in,e,t),l=lC(r),s=lC(i),c=+l-oC(l),f=+s-oC(s);return Math.round((c-f)/TY)}function NY(e,t){const n=KI(e,t),r=Mi(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ah(r)}function RY(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function PY(e){return!(!RY(e)&&typeof e!="number"||isNaN(+zr(e)))}function DY(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 kY={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"}},$Y=(e,t,n)=>{let r;const i=kY[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 gy(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const LY={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},IY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},zY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},BY={date:gy({formats:LY,defaultWidth:"full"}),time:gy({formats:IY,defaultWidth:"full"}),dateTime:gy({formats:zY,defaultWidth:"full"})},qY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},UY=(e,t,n,r)=>qY[e];function Iu(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 HY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},FY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},GY={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"]},VY={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"]},YY={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"}},WY={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"}},KY=(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"},XY={ordinalNumber:KY,era:Iu({values:HY,defaultWidth:"wide"}),quarter:Iu({values:FY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Iu({values:GY,defaultWidth:"wide"}),day:Iu({values:VY,defaultWidth:"wide"}),dayPeriod:Iu({values:YY,defaultWidth:"wide",formattingValues:WY,defaultFormattingWidth:"wide"})};function zu(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)?ZY(c,p=>p.test(s)):QY(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 QY(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function ZY(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function JY(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 eW=/^(\d+)(th|st|nd|rd)?/i,tW=/\d+/i,nW={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},rW={any:[/^b/i,/^(a|c)/i]},aW={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},iW={any:[/1/i,/2/i,/3/i,/4/i]},oW={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},lW={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]},sW={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},uW={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]},cW={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},fW={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}},dW={ordinalNumber:JY({matchPattern:eW,parsePattern:tW,valueCallback:e=>parseInt(e,10)}),era:zu({matchPatterns:nW,defaultMatchWidth:"wide",parsePatterns:rW,defaultParseWidth:"any"}),quarter:zu({matchPatterns:aW,defaultMatchWidth:"wide",parsePatterns:iW,defaultParseWidth:"any",valueCallback:e=>e+1}),month:zu({matchPatterns:oW,defaultMatchWidth:"wide",parsePatterns:lW,defaultParseWidth:"any"}),day:zu({matchPatterns:sW,defaultMatchWidth:"wide",parsePatterns:uW,defaultParseWidth:"any"}),dayPeriod:zu({matchPatterns:cW,defaultMatchWidth:"any",parsePatterns:fW,defaultParseWidth:"any"})},hW={code:"en-US",formatDistance:$Y,formatLong:BY,formatRelative:UY,localize:XY,match:dW,options:{weekStartsOn:0,firstWeekContainsDate:1}};function pW(e,t){const n=zr(e,t==null?void 0:t.in);return MY(n,DY(n))+1}function mW(e,t){const n=zr(e,t==null?void 0:t.in),r=+Ah(n)-+NY(n);return Math.round(r/WI)+1}function XI(e,t){var m,p,y,x;const n=zr(e,t==null?void 0:t.in),r=n.getFullYear(),i=Qp(),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=hc(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=hc(f,t);return+n>=+c?r+1:+n>=+d?r:r-1}function vW(e,t){var c,f,d,m;const n=Qp(),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=XI(e,t),l=Mi((t==null?void 0:t.in)||e,0);return l.setFullYear(i,0,r),l.setHours(0,0,0,0),hc(l,t)}function gW(e,t){const n=zr(e,t==null?void 0:t.in),r=+hc(n,t)-+vW(n,t);return Math.round(r/WI)+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)}},Pl={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sC={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=XI(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=KI(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=gW(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):rt(i,t.length)},I:function(e,t,n){const r=mW(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=pW(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=Pl.noon:r===0?i=Pl.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=Pl.evening:r>=12?i=Pl.afternoon:r>=4?i=Pl.morning:i=Pl.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 cC(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 cC(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"+uC(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"+uC(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 uC(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 cC(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 fC=(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"})}},QI=(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"})}},yW=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return fC(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}}",fC(r,t)).replace("{{time}}",QI(i,t))},bW={p:QI,P:yW},xW=/^D+$/,wW=/^Y+$/,SW=["D","DD","YY","YYYY"];function OW(e){return xW.test(e)}function _W(e){return wW.test(e)}function EW(e,t,n){const r=AW(e,t,n);if(console.warn(r),SW.includes(e))throw new RangeError(r)}function AW(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 TW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,jW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CW=/^'([^]*?)'?$/,MW=/''/g,NW=/[a-zA-Z]/;function dC(e,t,n){var m,p,y,x;const r=Qp(),i=r.locale??hW,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(!PY(c))throw new RangeError("Invalid time value");let f=t.match(jW).map(O=>{const w=O[0];if(w==="p"||w==="P"){const S=bW[w];return S(O,i.formatLong)}return O}).join("").match(TW).map(O=>{if(O==="''")return{isToken:!1,value:"'"};const w=O[0];if(w==="'")return{isToken:!1,value:RW(O)};if(sC[w])return{isToken:!0,value:O};if(w.match(NW))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;(_W(w)||OW(w))&&EW(w,t,String(e));const S=sC[w[0]];return S(c,w,i.localize,d)}).join("")}function RW(e){const t=e.match(CW);return t?t[1].replace(MW,"'"):e}var yy,hC;function kn(){if(hC)return yy;hC=1;var e=Array.isArray;return yy=e,yy}var by,pC;function ZI(){if(pC)return by;pC=1;var e=typeof Pd=="object"&&Pd&&Pd.Object===Object&&Pd;return by=e,by}var xy,mC;function la(){if(mC)return xy;mC=1;var e=ZI(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return xy=n,xy}var wy,vC;function uf(){if(vC)return wy;vC=1;var e=la(),t=e.Symbol;return wy=t,wy}var Sy,gC;function PW(){if(gC)return Sy;gC=1;var e=uf(),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 Sy=l,Sy}var Oy,yC;function DW(){if(yC)return Oy;yC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Oy=n,Oy}var _y,bC;function Ha(){if(bC)return _y;bC=1;var e=uf(),t=PW(),n=DW(),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 _y=s,_y}var Ey,xC;function Fa(){if(xC)return Ey;xC=1;function e(t){return t!=null&&typeof t=="object"}return Ey=e,Ey}var Ay,wC;function Ds(){if(wC)return Ay;wC=1;var e=Ha(),t=Fa(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Ay=r,Ay}var Ty,SC;function tO(){if(SC)return Ty;SC=1;var e=kn(),t=Ds(),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 Ty=i,Ty}var jy,OC;function Pi(){if(OC)return jy;OC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return jy=e,jy}var Cy,_C;function nO(){if(_C)return Cy;_C=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 Cy=s,Cy}var My,EC;function kW(){if(EC)return My;EC=1;var e=la(),t=e["__core-js_shared__"];return My=t,My}var Ny,AC;function $W(){if(AC)return Ny;AC=1;var e=kW(),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 Ny=n,Ny}var Ry,TC;function JI(){if(TC)return Ry;TC=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 Ry=n,Ry}var Py,jC;function LW(){if(jC)return Py;jC=1;var e=nO(),t=$W(),n=Pi(),r=JI(),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 Py=p,Py}var Dy,CC;function IW(){if(CC)return Dy;CC=1;function e(t,n){return t==null?void 0:t[n]}return Dy=e,Dy}var ky,MC;function ko(){if(MC)return ky;MC=1;var e=LW(),t=IW();function n(r,i){var l=t(r,i);return e(l)?l:void 0}return ky=n,ky}var $y,NC;function Zp(){if(NC)return $y;NC=1;var e=ko(),t=e(Object,"create");return $y=t,$y}var Ly,RC;function zW(){if(RC)return Ly;RC=1;var e=Zp();function t(){this.__data__=e?e(null):{},this.size=0}return Ly=t,Ly}var Iy,PC;function BW(){if(PC)return Iy;PC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Iy=e,Iy}var zy,DC;function qW(){if(DC)return zy;DC=1;var e=Zp(),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 zy=i,zy}var By,kC;function UW(){if(kC)return By;kC=1;var e=Zp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var l=this.__data__;return e?l[i]!==void 0:n.call(l,i)}return By=r,By}var qy,$C;function HW(){if($C)return qy;$C=1;var e=Zp(),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 qy=n,qy}var Uy,LC;function FW(){if(LC)return Uy;LC=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,Uy=l,Uy}var Hy,IC;function GW(){if(IC)return Hy;IC=1;function e(){this.__data__=[],this.size=0}return Hy=e,Hy}var Fy,zC;function rO(){if(zC)return Fy;zC=1;function e(t,n){return t===n||t!==t&&n!==n}return Fy=e,Fy}var Gy,BC;function Jp(){if(BC)return Gy;BC=1;var e=rO();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Gy=t,Gy}var Vy,qC;function VW(){if(qC)return Vy;qC=1;var e=Jp(),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 Vy=r,Vy}var Yy,UC;function YW(){if(UC)return Yy;UC=1;var e=Jp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return Yy=t,Yy}var Wy,HC;function WW(){if(HC)return Wy;HC=1;var e=Jp();function t(n){return e(this.__data__,n)>-1}return Wy=t,Wy}var Ky,FC;function KW(){if(FC)return Ky;FC=1;var e=Jp();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 Ky=t,Ky}var Xy,GC;function em(){if(GC)return Xy;GC=1;var e=GW(),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,Xy=l,Xy}var Qy,VC;function aO(){if(VC)return Qy;VC=1;var e=ko(),t=la(),n=e(t,"Map");return Qy=n,Qy}var Zy,YC;function XW(){if(YC)return Zy;YC=1;var e=FW(),t=em(),n=aO();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Zy=r,Zy}var Jy,WC;function QW(){if(WC)return Jy;WC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return Jy=e,Jy}var eb,KC;function tm(){if(KC)return eb;KC=1;var e=QW();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return eb=t,eb}var tb,XC;function ZW(){if(XC)return tb;XC=1;var e=tm();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return tb=t,tb}var nb,QC;function JW(){if(QC)return nb;QC=1;var e=tm();function t(n){return e(this,n).get(n)}return nb=t,nb}var rb,ZC;function eK(){if(ZC)return rb;ZC=1;var e=tm();function t(n){return e(this,n).has(n)}return rb=t,rb}var ab,JC;function tK(){if(JC)return ab;JC=1;var e=tm();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 ab=t,ab}var ib,eM;function iO(){if(eM)return ib;eM=1;var e=XW(),t=ZW(),n=JW(),r=eK(),i=tK();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,ib=l,ib}var ob,tM;function e3(){if(tM)return ob;tM=1;var e=iO(),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,ob=n,ob}var lb,nM;function nK(){if(nM)return lb;nM=1;var e=e3(),t=500;function n(r){var i=e(r,function(s){return l.size===t&&l.clear(),s}),l=i.cache;return i}return lb=n,lb}var sb,rM;function rK(){if(rM)return sb;rM=1;var e=nK(),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 sb=r,sb}var ub,aM;function oO(){if(aM)return ub;aM=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 ub=e,ub}var cb,iM;function aK(){if(iM)return cb;iM=1;var e=uf(),t=oO(),n=kn(),r=Ds(),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 cb=s,cb}var fb,oM;function t3(){if(oM)return fb;oM=1;var e=aK();function t(n){return n==null?"":e(n)}return fb=t,fb}var db,lM;function n3(){if(lM)return db;lM=1;var e=kn(),t=tO(),n=rK(),r=t3();function i(l,s){return e(l)?l:t(l,s)?[l]:n(r(l))}return db=i,db}var hb,sM;function nm(){if(sM)return hb;sM=1;var e=Ds();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return hb=t,hb}var pb,uM;function lO(){if(uM)return pb;uM=1;var e=n3(),t=nm();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 pb=n,pb}var mb,cM;function r3(){if(cM)return mb;cM=1;var e=lO();function t(n,r,i){var l=n==null?void 0:e(n,r);return l===void 0?i:l}return mb=t,mb}var iK=r3();const pr=ut(iK);var vb,fM;function oK(){if(fM)return vb;fM=1;function e(t){return t==null}return vb=e,vb}var lK=oK();const ze=ut(lK);var gb,dM;function sK(){if(dM)return gb;dM=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 gb=i,gb}var uK=sK();const Ao=ut(uK);var cK=nO();const $e=ut(cK);var fK=Pi();const ks=ut(fK);var yb={exports:{}},Je={};/**
|
|
303
|
+
* @license React
|
|
304
|
+
* react-is.production.min.js
|
|
305
|
+
*
|
|
306
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
307
|
+
*
|
|
308
|
+
* This source code is licensed under the MIT license found in the
|
|
309
|
+
* LICENSE file in the root directory of this source tree.
|
|
310
|
+
*/var hM;function dK(){if(hM)return Je;hM=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 Je.ContextConsumer=s,Je.ContextProvider=l,Je.Element=e,Je.ForwardRef=f,Je.Fragment=n,Je.Lazy=y,Je.Memo=p,Je.Portal=t,Je.Profiler=i,Je.StrictMode=r,Je.Suspense=d,Je.SuspenseList=m,Je.isAsyncMode=function(){return!1},Je.isConcurrentMode=function(){return!1},Je.isContextConsumer=function(S){return w(S)===s},Je.isContextProvider=function(S){return w(S)===l},Je.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Je.isForwardRef=function(S){return w(S)===f},Je.isFragment=function(S){return w(S)===n},Je.isLazy=function(S){return w(S)===y},Je.isMemo=function(S){return w(S)===p},Je.isPortal=function(S){return w(S)===t},Je.isProfiler=function(S){return w(S)===i},Je.isStrictMode=function(S){return w(S)===r},Je.isSuspense=function(S){return w(S)===d},Je.isSuspenseList=function(S){return w(S)===m},Je.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)},Je.typeOf=w,Je}var pM;function hK(){return pM||(pM=1,yb.exports=dK()),yb.exports}var pK=hK(),bb,mM;function a3(){if(mM)return bb;mM=1;var e=Ha(),t=Fa(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return bb=r,bb}var xb,vM;function mK(){if(vM)return xb;vM=1;var e=a3();function t(n){return e(n)&&n!=+n}return xb=t,xb}var vK=mK();const cf=ut(vK);var gK=a3();const yK=ut(gK);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 yK(t)&&!cf(t)},bK=function(t){return ze(t)},Gt=function(t){return ye(t)||Ao(t)},xK=0,ff=function(t){var n=++xK;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 cf(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},wK=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 Th(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):pr(r,t))===n})}var SK=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 Yl(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 Hw(e){"@babel/helpers - typeof";return Hw=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},Hw(e)}var OK=["viewBox","children"],_K=["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"],gM=["points","pathLength"],wb={svg:OK,polygon:gM,polyline:gM},sO=["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"],jh=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(_.isValidElement(t)&&(r=t.props),!ks(r))return null;var i={};return Object.keys(r).forEach(function(l){sO.includes(l)&&(i[l]=n||function(s){return r[l](r,s)})}),i},EK=function(t,n,r){return function(i){return t(n,r,i),null}},Ch=function(t,n,r){if(!ks(t)||Hw(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(l){var s=t[l];sO.includes(l)&&typeof s=="function"&&(i||(i={}),i[l]=EK(s,n,r))}),i},AK=["children"],TK=["children"];function yM(e,t){if(e==null)return{};var n=jK(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 jK(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 Fw(e){"@babel/helpers - typeof";return Fw=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},Fw(e)}var bM={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":""},xM=null,Sb=null,uO=function e(t){if(t===xM&&Array.isArray(Sb))return Sb;var n=[];return _.Children.forEach(t,function(r){ze(r)||(pK.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Sb=n,xM=t,n};function mr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Pa(i)}):r=[Pa(t)],uO(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 wM=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)},CK=["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"],MK=function(t){return t&&t.type&&Ao(t.type)&&CK.indexOf(t.type)>=0},NK=function(t){return t&&Fw(t)==="object"&&"clipDot"in t},RK=function(t,n,r,i){var l,s=(l=wb==null?void 0:wb[i])!==null&&l!==void 0?l:[];return n.startsWith("data-")||!$e(t)&&(i&&s.includes(n)||_K.includes(n))||r&&sO.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),!ks(i))return null;var l={};return Object.keys(i).forEach(function(s){var c;RK((c=i)===null||c===void 0?void 0:c[s],s,n,r)&&(l[s]=i[s])}),l},Gw=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 SM(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(!SM(l,s))return!1}return!0},SM=function(t,n){if(ze(t)&&ze(n))return!0;if(!ze(t)&&!ze(n)){var r=t.props||{},i=r.children,l=yM(r,AK),s=n.props||{},c=s.children,f=yM(s,TK);return i&&c?Yl(l,f)&&Gw(i,c):!i&&!c?Yl(l,f):!1}return!1},OM=function(t,n){var r=[],i={};return uO(t).forEach(function(l,s){if(MK(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},PK=function(t){var n=t&&t.type;return n&&bM[n]?bM[n]:null},DK=function(t,n){return uO(n).indexOf(t)},kK=["children","width","height","viewBox","className","style","title","desc"];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 $K(e,t){if(e==null)return{};var n=LK(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 LK(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 Yw(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=$K(e,kK),m=i||{width:n,height:r,x:0,y:0},p=Fe("recharts-surface",l);return I.createElement("svg",Vw({},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 IK=["children","className"];function Ww(){return Ww=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},Ww.apply(this,arguments)}function zK(e,t){if(e==null)return{};var n=BK(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 BK(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=zK(e,IK),l=Fe("recharts-layer",r);return I.createElement("g",Ww({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]},Ob,_M;function qK(){if(_M)return Ob;_M=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 Ob=e,Ob}var _b,EM;function UK(){if(EM)return _b;EM=1;var e=qK();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 _b=t,_b}var Eb,AM;function i3(){if(AM)return Eb;AM=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 Eb=f,Eb}var Ab,TM;function HK(){if(TM)return Ab;TM=1;function e(t){return t.split("")}return Ab=e,Ab}var Tb,jM;function FK(){if(jM)return Tb;jM=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 Tb=M,Tb}var jb,CM;function GK(){if(CM)return jb;CM=1;var e=HK(),t=i3(),n=FK();function r(i){return t(i)?n(i):e(i)}return jb=r,jb}var Cb,MM;function VK(){if(MM)return Cb;MM=1;var e=UK(),t=i3(),n=GK(),r=t3();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 Cb=i,Cb}var Mb,NM;function YK(){if(NM)return Mb;NM=1;var e=VK(),t=e("toUpperCase");return Mb=t,Mb}var WK=YK();const rm=ut(WK);function dt(e){return function(){return e}}const o3=Math.cos,Mh=Math.sin,Br=Math.sqrt,Nh=Math.PI,am=2*Nh,Kw=Math.PI,Xw=2*Kw,ho=1e-6,KK=Xw-ho;function l3(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function XK(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return l3;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 QK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?l3:XK(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((Kw-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%Xw+Xw),y>KK?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>=Kw)},${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 cO(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 QK(t)}function fO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function s3(e){this._context=e}s3.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 im(e){return new s3(e)}function u3(e){return e[0]}function c3(e){return e[1]}function f3(e,t){var n=dt(!0),r=null,i=im,l=null,s=cO(c);e=typeof e=="function"?e:e===void 0?u3:dt(e),t=typeof t=="function"?t:t===void 0?c3:dt(t);function c(f){var d,m=(f=fO(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 Gd(e,t,n){var r=null,i=dt(!0),l=null,s=im,c=null,f=cO(d);e=typeof e=="function"?e:e===void 0?u3:dt(+e),t=typeof t=="function"?t:dt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?c3:dt(+n);function d(p){var y,x,O,w=(p=fO(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 f3().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 d3{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 ZK(e){return new d3(e,!0)}function JK(e){return new d3(e,!1)}const dO={draw(e,t){const n=Br(t/Nh);e.moveTo(n,0),e.arc(0,0,n,0,am)}},eX={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()}},h3=Br(1/3),tX=h3*2,nX={draw(e,t){const n=Br(t/tX),r=n*h3;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},rX={draw(e,t){const n=Br(t),r=-n/2;e.rect(r,r,n,n)}},aX=.8908130915292852,p3=Mh(Nh/10)/Mh(7*Nh/10),iX=Mh(am/10)*p3,oX=-o3(am/10)*p3,lX={draw(e,t){const n=Br(t*aX),r=iX*n,i=oX*n;e.moveTo(0,-n),e.lineTo(r,i);for(let l=1;l<5;++l){const s=am*l/5,c=o3(s),f=Mh(s);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*i,f*r+c*i)}e.closePath()}},Nb=Br(3),sX={draw(e,t){const n=-Br(t/(Nb*3));e.moveTo(0,n*2),e.lineTo(-Nb*n,-n),e.lineTo(Nb*n,-n),e.closePath()}},sr=-.5,ur=Br(3)/2,Qw=1/Br(12),uX=(Qw/2+1)*3,cX={draw(e,t){const n=Br(t/uX),r=n/2,i=n*Qw,l=r,s=n*Qw+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 fX(e,t){let n=null,r=cO(i);e=typeof e=="function"?e:dt(e||dO),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 Rh(){}function Ph(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 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(){switch(this._point){case 3:Ph(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:Ph(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dX(e){return new m3(e)}function v3(e){this._context=e}v3.prototype={areaStart:Rh,areaEnd:Rh,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:Ph(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hX(e){return new v3(e)}function g3(e){this._context=e}g3.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:Ph(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function pX(e){return new g3(e)}function y3(e){this._context=e}y3.prototype={areaStart:Rh,areaEnd:Rh,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 mX(e){return new y3(e)}function RM(e){return e<0?-1:1}function PM(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(RM(l)+RM(s))*Math.min(Math.abs(l),Math.abs(s),.5*Math.abs(c))||0}function DM(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Rb(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 Dh(e){this._context=e}Dh.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:Rb(this,this._t0,DM(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,Rb(this,DM(this,n=PM(this,e,t)),n);break;default:Rb(this,this._t0,n=PM(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function b3(e){this._context=new x3(e)}(b3.prototype=Object.create(Dh.prototype)).point=function(e,t){Dh.prototype.point.call(this,t,e)};function x3(e){this._context=e}x3.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 vX(e){return new Dh(e)}function gX(e){return new b3(e)}function w3(e){this._context=e}w3.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=kM(e),i=kM(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 kM(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 yX(e){return new w3(e)}function om(e,t){this._context=e,this._t=t}om.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 bX(e){return new om(e,.5)}function xX(e){return new om(e,0)}function wX(e){return new om(e,1)}function es(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 Zw(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function SX(e,t){return e[t]}function OX(e){const t=[];return t.key=e,t}function _X(){var e=dt([]),t=Zw,n=es,r=SX;function i(l){var s=Array.from(e.apply(this,arguments),OX),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=fO(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?Zw:typeof l=="function"?l:dt(Array.from(l)),i):t},i.offset=function(l){return arguments.length?(n=l??es,i):n},i}function EX(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}es(e,t)}}function AX(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}es(e,t)}}function TX(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,es(e,t)}}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)}var jX=["type","size","sizeType"];function Jw(){return Jw=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},Jw.apply(this,arguments)}function $M(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 LM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$M(Object(n),!0).forEach(function(r){CX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$M(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function CX(e,t,n){return t=MX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MX(e){var t=NX(e,"string");return pc(t)=="symbol"?t:t+""}function NX(e,t){if(pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RX(e,t){if(e==null)return{};var n=PX(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 PX(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 S3={symbolCircle:dO,symbolCross:eX,symbolDiamond:nX,symbolSquare:rX,symbolStar:lX,symbolTriangle:sX,symbolWye:cX},DX=Math.PI/180,kX=function(t){var n="symbol".concat(rm(t));return S3[n]||dO},$X=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*DX;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}},LX=function(t,n){S3["symbol".concat(rm(t))]=n},hO=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=RX(t,jX),d=LM(LM({},f),{},{type:r,size:l,sizeType:c}),m=function(){var S=kX(r),E=fX().type(S).size($X(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",Jw({},O,{className:Fe("recharts-symbols",p),transform:"translate(".concat(y,", ").concat(x,")"),d:m()})):null};hO.registerSymbol=LX;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)}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 IM(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 IX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?IM(Object(n),!0).forEach(function(r){mc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BX(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,_3(r.key),r)}}function qX(e,t,n){return t&&BX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function UX(e,t,n){return t=kh(t),HX(e,O3()?Reflect.construct(t,n||[],kh(e).constructor):t.apply(e,n))}function HX(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 FX(e)}function FX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function O3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(O3=function(){return!!e})()}function kh(e){return kh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kh(e)}function GX(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&&t1(e,t)}function t1(e,t){return t1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},t1(e,t)}function mc(e,t,n){return t=_3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _3(e){var t=VX(e,"string");return ts(t)=="symbol"?t:t+""}function VX(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)}var cr=32,pO=(function(e){function t(){return zX(this,t),UX(this,t,arguments)}return GX(t,e),qX(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,`
|
|
311
|
+
A`).concat(s,",").concat(s,",0,1,1,").concat(2*c,",").concat(l,`
|
|
312
|
+
H`).concat(cr,"M").concat(2*c,",").concat(l,`
|
|
313
|
+
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=IX({},r);return delete d.legendIcon,I.cloneElement(r.legendIcon,d)}return I.createElement(hO,{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(mc(mc({"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",e1({className:S,style:p,key:"legend-item-".concat(O)},Ch(r.props,x,O)),I.createElement(Yw,{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);mc(pO,"displayName","Legend");mc(pO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var Pb,zM;function YX(){if(zM)return Pb;zM=1;var e=em();function t(){this.__data__=new e,this.size=0}return Pb=t,Pb}var Db,BM;function WX(){if(BM)return Db;BM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Db=e,Db}var kb,qM;function KX(){if(qM)return kb;qM=1;function e(t){return this.__data__.get(t)}return kb=e,kb}var $b,UM;function XX(){if(UM)return $b;UM=1;function e(t){return this.__data__.has(t)}return $b=e,$b}var Lb,HM;function QX(){if(HM)return Lb;HM=1;var e=em(),t=aO(),n=iO(),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 Lb=i,Lb}var Ib,FM;function E3(){if(FM)return Ib;FM=1;var e=em(),t=YX(),n=WX(),r=KX(),i=XX(),l=QX();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,Ib=s,Ib}var zb,GM;function ZX(){if(GM)return zb;GM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return zb=t,zb}var Bb,VM;function JX(){if(VM)return Bb;VM=1;function e(t){return this.__data__.has(t)}return Bb=e,Bb}var qb,YM;function A3(){if(YM)return qb;YM=1;var e=iO(),t=ZX(),n=JX();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,qb=r,qb}var Ub,WM;function T3(){if(WM)return Ub;WM=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 Ub=e,Ub}var Hb,KM;function j3(){if(KM)return Hb;KM=1;function e(t,n){return t.has(n)}return Hb=e,Hb}var Fb,XM;function C3(){if(XM)return Fb;XM=1;var e=A3(),t=T3(),n=j3(),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 Fb=l,Fb}var Gb,QM;function eQ(){if(QM)return Gb;QM=1;var e=la(),t=e.Uint8Array;return Gb=t,Gb}var Vb,ZM;function tQ(){if(ZM)return Vb;ZM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,l){r[++n]=[l,i]}),r}return Vb=e,Vb}var Yb,JM;function mO(){if(JM)return Yb;JM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return Yb=e,Yb}var Wb,e2;function nQ(){if(e2)return Wb;e2=1;var e=uf(),t=eQ(),n=rO(),r=C3(),i=tQ(),l=mO(),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 Wb=j,Wb}var Kb,t2;function M3(){if(t2)return Kb;t2=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 Kb=e,Kb}var Xb,n2;function rQ(){if(n2)return Xb;n2=1;var e=M3(),t=kn();function n(r,i,l){var s=i(r);return t(r)?s:e(s,l(r))}return Xb=n,Xb}var Qb,r2;function aQ(){if(r2)return Qb;r2=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 Qb=e,Qb}var Zb,a2;function iQ(){if(a2)return Zb;a2=1;function e(){return[]}return Zb=e,Zb}var Jb,i2;function oQ(){if(i2)return Jb;i2=1;var e=aQ(),t=iQ(),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 Jb=l,Jb}var e0,o2;function lQ(){if(o2)return e0;o2=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return e0=e,e0}var t0,l2;function sQ(){if(l2)return t0;l2=1;var e=Ha(),t=Fa(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return t0=r,t0}var n0,s2;function vO(){if(s2)return n0;s2=1;var e=sQ(),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 n0=l,n0}var Qu={exports:{}},r0,u2;function uQ(){if(u2)return r0;u2=1;function e(){return!1}return r0=e,r0}Qu.exports;var c2;function N3(){return c2||(c2=1,(function(e,t){var n=la(),r=uQ(),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})(Qu,Qu.exports)),Qu.exports}var a0,f2;function gO(){if(f2)return a0;f2=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 a0=n,a0}var i0,d2;function yO(){if(d2)return i0;d2=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return i0=t,i0}var o0,h2;function cQ(){if(h2)return o0;h2=1;var e=Ha(),t=yO(),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 o0=H,o0}var l0,p2;function R3(){if(p2)return l0;p2=1;function e(t){return function(n){return t(n)}}return l0=e,l0}var Zu={exports:{}};Zu.exports;var m2;function fQ(){return m2||(m2=1,(function(e,t){var n=ZI(),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})(Zu,Zu.exports)),Zu.exports}var s0,v2;function P3(){if(v2)return s0;v2=1;var e=cQ(),t=R3(),n=fQ(),r=n&&n.isTypedArray,i=r?t(r):e;return s0=i,s0}var u0,g2;function dQ(){if(g2)return u0;g2=1;var e=lQ(),t=vO(),n=kn(),r=N3(),i=gO(),l=P3(),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 u0=f,u0}var c0,y2;function hQ(){if(y2)return c0;y2=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return c0=t,c0}var f0,b2;function D3(){if(b2)return f0;b2=1;function e(t,n){return function(r){return t(n(r))}}return f0=e,f0}var d0,x2;function pQ(){if(x2)return d0;x2=1;var e=D3(),t=e(Object.keys,Object);return d0=t,d0}var h0,w2;function mQ(){if(w2)return h0;w2=1;var e=hQ(),t=pQ(),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 h0=i,h0}var p0,S2;function df(){if(S2)return p0;S2=1;var e=nO(),t=yO();function n(r){return r!=null&&t(r.length)&&!e(r)}return p0=n,p0}var m0,O2;function lm(){if(O2)return m0;O2=1;var e=dQ(),t=mQ(),n=df();function r(i){return n(i)?e(i):t(i)}return m0=r,m0}var v0,_2;function vQ(){if(_2)return v0;_2=1;var e=rQ(),t=oQ(),n=lm();function r(i){return e(i,n,t)}return v0=r,v0}var g0,E2;function gQ(){if(E2)return g0;E2=1;var e=vQ(),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 g0=i,g0}var y0,A2;function yQ(){if(A2)return y0;A2=1;var e=ko(),t=la(),n=e(t,"DataView");return y0=n,y0}var b0,T2;function bQ(){if(T2)return b0;T2=1;var e=ko(),t=la(),n=e(t,"Promise");return b0=n,b0}var x0,j2;function k3(){if(j2)return x0;j2=1;var e=ko(),t=la(),n=e(t,"Set");return x0=n,x0}var w0,C2;function xQ(){if(C2)return w0;C2=1;var e=ko(),t=la(),n=e(t,"WeakMap");return w0=n,w0}var S0,M2;function wQ(){if(M2)return S0;M2=1;var e=yQ(),t=aO(),n=bQ(),r=k3(),i=xQ(),l=Ha(),s=JI(),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}),S0=T,S0}var O0,N2;function SQ(){if(N2)return O0;N2=1;var e=E3(),t=C3(),n=nQ(),r=gQ(),i=wQ(),l=kn(),s=N3(),c=P3(),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 O0=O,O0}var _0,R2;function bO(){if(R2)return _0;R2=1;var e=SQ(),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 _0=n,_0}var E0,P2;function OQ(){if(P2)return E0;P2=1;var e=E3(),t=bO(),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 E0=i,E0}var A0,D2;function $3(){if(D2)return A0;D2=1;var e=Pi();function t(n){return n===n&&!e(n)}return A0=t,A0}var T0,k2;function _Q(){if(k2)return T0;k2=1;var e=$3(),t=lm();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 T0=n,T0}var j0,$2;function L3(){if($2)return j0;$2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return j0=e,j0}var C0,L2;function EQ(){if(L2)return C0;L2=1;var e=OQ(),t=_Q(),n=L3();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 C0=r,C0}var M0,I2;function AQ(){if(I2)return M0;I2=1;function e(t,n){return t!=null&&n in Object(t)}return M0=e,M0}var N0,z2;function TQ(){if(z2)return N0;z2=1;var e=n3(),t=vO(),n=kn(),r=gO(),i=yO(),l=nm();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 N0=s,N0}var R0,B2;function jQ(){if(B2)return R0;B2=1;var e=AQ(),t=TQ();function n(r,i){return r!=null&&t(r,i,e)}return R0=n,R0}var P0,q2;function CQ(){if(q2)return P0;q2=1;var e=bO(),t=r3(),n=jQ(),r=tO(),i=$3(),l=L3(),s=nm(),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 P0=d,P0}var D0,U2;function $s(){if(U2)return D0;U2=1;function e(t){return t}return D0=e,D0}var k0,H2;function MQ(){if(H2)return k0;H2=1;function e(t){return function(n){return n==null?void 0:n[t]}}return k0=e,k0}var $0,F2;function NQ(){if(F2)return $0;F2=1;var e=lO();function t(n){return function(r){return e(r,n)}}return $0=t,$0}var L0,G2;function RQ(){if(G2)return L0;G2=1;var e=MQ(),t=NQ(),n=tO(),r=nm();function i(l){return n(l)?e(r(l)):t(l)}return L0=i,L0}var I0,V2;function Di(){if(V2)return I0;V2=1;var e=EQ(),t=CQ(),n=$s(),r=kn(),i=RQ();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 I0=l,I0}var z0,Y2;function I3(){if(Y2)return z0;Y2=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 z0=e,z0}var B0,W2;function PQ(){if(W2)return B0;W2=1;function e(t){return t!==t}return B0=e,B0}var q0,K2;function DQ(){if(K2)return q0;K2=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 q0=e,q0}var U0,X2;function kQ(){if(X2)return U0;X2=1;var e=I3(),t=PQ(),n=DQ();function r(i,l,s){return l===l?n(i,l,s):e(i,t,s)}return U0=r,U0}var H0,Q2;function $Q(){if(Q2)return H0;Q2=1;var e=kQ();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return H0=t,H0}var F0,Z2;function LQ(){if(Z2)return F0;Z2=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 F0=e,F0}var G0,J2;function IQ(){if(J2)return G0;J2=1;function e(){}return G0=e,G0}var V0,eN;function zQ(){if(eN)return V0;eN=1;var e=k3(),t=IQ(),n=mO(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(l){return new e(l)}:t;return V0=i,V0}var Y0,tN;function BQ(){if(tN)return Y0;tN=1;var e=A3(),t=$Q(),n=LQ(),r=j3(),i=zQ(),l=mO(),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 Y0=c,Y0}var W0,nN;function qQ(){if(nN)return W0;nN=1;var e=Di(),t=BQ();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return W0=n,W0}var UQ=qQ();const rN=ut(UQ);function z3(e,t,n){return t===!0?rN(e,n):$e(t)?rN(e,t):e}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)}var HQ=["ref"];function aN(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?aN(Object(n),!0).forEach(function(r){sm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iN(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,q3(r.key),r)}}function GQ(e,t,n){return t&&iN(e.prototype,t),n&&iN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function VQ(e,t,n){return t=$h(t),YQ(e,B3()?Reflect.construct(t,n||[],$h(e).constructor):t.apply(e,n))}function YQ(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 WQ(e)}function WQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function B3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B3=function(){return!!e})()}function $h(e){return $h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},$h(e)}function KQ(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 sm(e,t,n){return t=q3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q3(e){var t=XQ(e,"string");return ns(t)=="symbol"?t:t+""}function XQ(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)}function QQ(e,t){if(e==null)return{};var n=ZQ(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 ZQ(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 JQ(e){return e.value}function eZ(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var n=QQ(t,HQ);return I.createElement(pO,n)}var oN=1,bo=(function(e){function t(){var n;FQ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=VQ(this,t,[].concat(i)),sm(n,"lastBoundingBox",{width:-1,height:-1}),n}return KQ(t,e),GQ(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)>oN||Math.abs(i.height-this.lastBoundingBox.height)>oN)&&(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}},eZ(l,ja(ja({},this.props),{},{payload:z3(m,d,JQ)})))}}],[{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);sm(bo,"displayName","Legend");sm(bo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var K0,lN;function tZ(){if(lN)return K0;lN=1;var e=uf(),t=vO(),n=kn(),r=e?e.isConcatSpreadable:void 0;function i(l){return n(l)||t(l)||!!(r&&l&&l[r])}return K0=i,K0}var X0,sN;function U3(){if(sN)return X0;sN=1;var e=M3(),t=tZ();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 X0=n,X0}var Q0,uN;function nZ(){if(uN)return Q0;uN=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 Q0=e,Q0}var Z0,cN;function rZ(){if(cN)return Z0;cN=1;var e=nZ(),t=e();return Z0=t,Z0}var J0,fN;function H3(){if(fN)return J0;fN=1;var e=rZ(),t=lm();function n(r,i){return r&&e(r,i,t)}return J0=n,J0}var ex,dN;function aZ(){if(dN)return ex;dN=1;var e=df();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 ex=t,ex}var tx,hN;function xO(){if(hN)return tx;hN=1;var e=H3(),t=aZ(),n=t(e);return tx=n,tx}var nx,pN;function F3(){if(pN)return nx;pN=1;var e=xO(),t=df();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 nx=n,nx}var rx,mN;function iZ(){if(mN)return rx;mN=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return rx=e,rx}var ax,vN;function oZ(){if(vN)return ax;vN=1;var e=Ds();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 ax=t,ax}var ix,gN;function lZ(){if(gN)return ix;gN=1;var e=oZ();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 ix=t,ix}var ox,yN;function sZ(){if(yN)return ox;yN=1;var e=oO(),t=lO(),n=Di(),r=F3(),i=iZ(),l=R3(),s=lZ(),c=$s(),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 ox=d,ox}var lx,bN;function uZ(){if(bN)return lx;bN=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 lx=e,lx}var sx,xN;function cZ(){if(xN)return sx;xN=1;var e=uZ(),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 sx=n,sx}var ux,wN;function fZ(){if(wN)return ux;wN=1;function e(t){return function(){return t}}return ux=e,ux}var cx,SN;function G3(){if(SN)return cx;SN=1;var e=ko(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return cx=t,cx}var fx,ON;function dZ(){if(ON)return fx;ON=1;var e=fZ(),t=G3(),n=$s(),r=t?function(i,l){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(l),writable:!0})}:n;return fx=r,fx}var dx,_N;function hZ(){if(_N)return dx;_N=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 dx=r,dx}var hx,EN;function pZ(){if(EN)return hx;EN=1;var e=dZ(),t=hZ(),n=t(e);return hx=n,hx}var px,AN;function mZ(){if(AN)return px;AN=1;var e=$s(),t=cZ(),n=pZ();function r(i,l){return n(t(i,l,e),i+"")}return px=r,px}var mx,TN;function um(){if(TN)return mx;TN=1;var e=rO(),t=df(),n=gO(),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 mx=i,mx}var vx,jN;function vZ(){if(jN)return vx;jN=1;var e=U3(),t=sZ(),n=mZ(),r=um(),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 vx=i,vx}var gZ=vZ();const wO=ut(gZ);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 r1(){return r1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r1.apply(this,arguments)}function yZ(e,t){return SZ(e)||wZ(e,t)||xZ(e,t)||bZ()}function bZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
314
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xZ(e,t){if(e){if(typeof e=="string")return CN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CN(e,t)}}function CN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function wZ(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 SZ(e){if(Array.isArray(e))return e}function MN(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 gx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?MN(Object(n),!0).forEach(function(r){OZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):MN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OZ(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=EZ(e,"string");return vc(t)=="symbol"?t:t+""}function EZ(e,t){if(vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function AZ(e){return Array.isArray(e)&&Gt(e[0])&&Gt(e[1])?e.join(" ~ "):e}var TZ=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?wO(m,y):m).map(function(Q,K){if(Q.type==="none")return null;var k=gx({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},c),q=Q.formatter||p||AZ,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=yZ(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=gx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},l),j=gx({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",r1({className:P,style:M},Y),I.createElement("p",{className:L,style:j},I.isValidElement(R)?R:"".concat(R)),A())};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 Vd(e,t,n){return t=jZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jZ(e){var t=CZ(e,"string");return gc(t)=="symbol"?t:t+""}function CZ(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)}var Bu="recharts-tooltip-wrapper",MZ={visibility:"hidden"};function NZ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Fe(Bu,Vd(Vd(Vd(Vd({},"".concat(Bu,"-right"),ye(n)&&t&&ye(t.x)&&n>=t.x),"".concat(Bu,"-left"),ye(n)&&t&&ye(t.x)&&n<t.x),"".concat(Bu,"-bottom"),ye(r)&&t&&ye(t.y)&&r>=t.y),"".concat(Bu,"-top"),ye(r)&&t&&ye(t.y)&&r<t.y))}function NN(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 RZ(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 PZ(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=NN({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.width,viewBox:f,viewBoxDimension:f.width}),p=NN({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:l,tooltipDimension:s.height,viewBox:f,viewBoxDimension:f.height}),d=RZ({translateX:m,translateY:p,useTranslate3d:c})):d=MZ,{cssProperties:d,cssClasses:NZ({translateX:m,translateY:p,coordinate:n})}}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 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 PN(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){i1(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 DZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kZ(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 $Z(e,t,n){return t&&kZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function LZ(e,t,n){return t=Lh(t),IZ(e,V3()?Reflect.construct(t,n||[],Lh(e).constructor):t.apply(e,n))}function IZ(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 zZ(e)}function zZ(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 Lh(e){return Lh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lh(e)}function BZ(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 i1(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=qZ(e,"string");return rs(t)=="symbol"?t:t+""}function qZ(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)}var DN=1,UZ=(function(e){function t(){var n;DZ(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=LZ(this,t,[].concat(i)),i1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),i1(n,"handleKeyDown",function(s){if(s.key==="Escape"){var 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 BZ(t,e),$Z(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>DN||Math.abs(r.height-this.state.lastBoundingBox.height)>DN)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,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=PZ({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=PN(PN({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),HZ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ls={isSsr:HZ()};function as(e){"@babel/helpers - typeof";return as=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},as(e)}function kN(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 $N(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kN(Object(n),!0).forEach(function(r){SO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GZ(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,K3(r.key),r)}}function VZ(e,t,n){return t&&GZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YZ(e,t,n){return t=Ih(t),WZ(e,W3()?Reflect.construct(t,n||[],Ih(e).constructor):t.apply(e,n))}function WZ(e,t){if(t&&(as(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return KZ(e)}function KZ(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 Ih(e){return Ih=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ih(e)}function XZ(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&&o1(e,t)}function o1(e,t){return o1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},o1(e,t)}function SO(e,t,n){return t=K3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K3(e){var t=QZ(e,"string");return as(t)=="symbol"?t:t+""}function QZ(e,t){if(as(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(as(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ZZ(e){return e.dataKey}function JZ(e,t){return I.isValidElement(e)?I.cloneElement(e,t):typeof e=="function"?I.createElement(e,t):I.createElement(TZ,t)}var Kr=(function(e){function t(){return FZ(this,t),YZ(this,t,arguments)}return XZ(t,e),VZ(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=z3(O.filter(function(R){return R.value!=null&&(R.hide!==!0||r.props.includeHidden)}),w,ZZ));var N=j.length>0;return I.createElement(UZ,{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},JZ(d,$N($N({},this.props),{},{payload:j})))}}])})(_.PureComponent);SO(Kr,"displayName","Tooltip");SO(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:!Ls.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 yx,LN;function eJ(){if(LN)return yx;LN=1;var e=la(),t=function(){return e.Date.now()};return yx=t,yx}var bx,IN;function tJ(){if(IN)return bx;IN=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return bx=t,bx}var xx,zN;function nJ(){if(zN)return xx;zN=1;var e=tJ(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return xx=n,xx}var wx,BN;function X3(){if(BN)return wx;BN=1;var e=nJ(),t=Pi(),n=Ds(),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 wx=f,wx}var Sx,qN;function rJ(){if(qN)return Sx;qN=1;var e=Pi(),t=eJ(),n=X3(),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 Sx=s,Sx}var Ox,UN;function aJ(){if(UN)return Ox;UN=1;var e=rJ(),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 Ox=r,Ox}var iJ=aJ();const Q3=ut(iJ);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 HN(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 Yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HN(Object(n),!0).forEach(function(r){oJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oJ(e,t,n){return t=lJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lJ(e){var t=sJ(e,"string");return yc(t)=="symbol"?t:t+""}function sJ(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 uJ(e,t){return hJ(e)||dJ(e,t)||fJ(e,t)||cJ()}function cJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
315
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function fJ(e,t){if(e){if(typeof e=="string")return FN(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 FN(e,t)}}function FN(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 dJ(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 hJ(e){if(Array.isArray(e))return e}var pJ=_.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=uJ(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=Q3(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,
|
|
316
|
+
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,
|
|
317
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
318
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
319
|
+
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,Yd({width:K,height:k},q?{style:Yd({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:Yd(Yd({},M),{},{width:s,height:f,minWidth:m,minHeight:p,maxHeight:y}),ref:j},H)}),Z3=function(t){return null};Z3.displayName="Cell";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 GN(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 l1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?GN(Object(n),!0).forEach(function(r){mJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mJ(e,t,n){return t=vJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vJ(e){var t=gJ(e,"string");return bc(t)=="symbol"?t:t+""}function gJ(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)}var Dl={widthCache:{},cacheCount:0},yJ=2e3,bJ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},VN="recharts_measurement_span";function xJ(e){var t=l1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var nc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ls.isSsr)return{width:0,height:0};var r=xJ(n),i=JSON.stringify({text:t,copyStyle:r});if(Dl.widthCache[i])return Dl.widthCache[i];try{var l=document.getElementById(VN);l||(l=document.createElement("span"),l.setAttribute("id",VN),l.setAttribute("aria-hidden","true"),document.body.appendChild(l));var s=l1(l1({},bJ),r);Object.assign(l.style,s),l.textContent="".concat(t);var c=l.getBoundingClientRect(),f={width:c.width,height:c.height};return Dl.widthCache[i]=f,++Dl.cacheCount>yJ&&(Dl.cacheCount=0,Dl.widthCache={}),f}catch{return{width:0,height:0}}},wJ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function xc(e){"@babel/helpers - typeof";return xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},xc(e)}function zh(e,t){return EJ(e)||_J(e,t)||OJ(e,t)||SJ()}function SJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
320
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OJ(e,t){if(e){if(typeof e=="string")return YN(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 YN(e,t)}}function YN(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 EJ(e){if(Array.isArray(e))return e}function AJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WN(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,jJ(r.key),r)}}function TJ(e,t,n){return t&&WN(e.prototype,t),n&&WN(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jJ(e){var t=CJ(e,"string");return xc(t)=="symbol"?t:t+""}function CJ(e,t){if(xc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,XN=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,MJ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,NJ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,J3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},RJ=Object.keys(J3),zl="NaN";function PJ(e,t){return e*J3[t]}var Wd=(function(){function e(t,n){AJ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!MJ.test(n)&&(this.num=NaN,this.unit=""),RJ.includes(n)&&(this.num=PJ(t,n),this.unit="px")}return TJ(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=NJ.exec(n))!==null&&r!==void 0?r:[],l=zh(i,3),s=l[1],c=l[2];return new e(parseFloat(s),c??"")}}])})();function e4(e){if(e.includes(zl))return zl;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=KN.exec(t))!==null&&n!==void 0?n:[],i=zh(r,4),l=i[1],s=i[2],c=i[3],f=Wd.parse(l??""),d=Wd.parse(c??""),m=s==="*"?f.multiply(d):f.divide(d);if(m.isNaN())return zl;t=t.replace(KN,m.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,y=(p=XN.exec(t))!==null&&p!==void 0?p:[],x=zh(y,4),O=x[1],w=x[2],S=x[3],E=Wd.parse(O??""),T=Wd.parse(S??""),A=w==="+"?E.add(T):E.subtract(T);if(A.isNaN())return zl;t=t.replace(XN,A.toString())}return t}var QN=/\(([^()]*)\)/;function DJ(e){for(var t=e;t.includes("(");){var n=QN.exec(t),r=zh(n,2),i=r[1];t=t.replace(QN,e4(i))}return t}function kJ(e){var t=e.replace(/\s+/g,"");return t=DJ(t),t=e4(t),t}function $J(e){try{return kJ(e)}catch{return zl}}function _x(e){var t=$J(e.slice(5,-1));return t===zl?"":t}var LJ=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],IJ=["dx","dy","angle","className","breakAll"];function s1(){return s1=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},s1.apply(this,arguments)}function ZN(e,t){if(e==null)return{};var n=zJ(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 zJ(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 JN(e,t){return HJ(e)||UJ(e,t)||qJ(e,t)||BJ()}function BJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
321
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qJ(e,t){if(e){if(typeof e=="string")return eR(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 eR(e,t)}}function eR(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 UJ(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 HJ(e){if(Array.isArray(e))return e}var t4=/[ \f\n\r\t\v\u2028\u2029]+/,n4=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(t4));var s=l.map(function(f){return{word:f,width:nc(f,i).width}}),c=r?0:nc(" ",i).width;return{wordsWithComputedWidth:s,spaceWidth:c}}catch{return null}},FJ=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=n4({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=JN(R,2),L=P[0],Y=P[1],z=S(j),H=JN(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},tR=function(t){var n=ze(t)?[]:t.toString().split(t4);return[{words:n}]},GJ=function(t){var n=t.width,r=t.scaleToFit,i=t.children,l=t.style,s=t.breakAll,c=t.maxLines;if((n||r)&&!Ls.isSsr){var f,d,m=n4({breakAll:s,children:i,style:l});if(m){var p=m.wordsWithComputedWidth,y=m.spaceWidth;f=p,d=y}else return tR(i);return FJ({breakAll:s,children:i,maxLines:c,style:l},f,d,n,r)}return tR(i)},nR="#808080",Bh=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?nR:S,T=ZN(t,LJ),A=_.useMemo(function(){return GJ({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=ZN(T,IJ);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=_x("calc(".concat(d,")"));break;case"middle":H=_x("calc(".concat((A.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:H=_x("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",s1({},He(L,!0),{x:Y,y:z,className:Fe("recharts-text",R),textAnchor:x,fill:E.includes("url")?nR: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 VJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function OO(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===VJ?e:YJ,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 YJ(){return 0}function r4(e){return e===null?NaN:+e}function*WJ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const KJ=OO(Ei),hf=KJ.right;OO(r4).center;class rR extends Map{constructor(t,n=ZJ){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(aR(this,t))}has(t){return super.has(aR(this,t))}set(t,n){return super.set(XJ(this,t),n)}delete(t){return super.delete(QJ(this,t))}}function aR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function XJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function QJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function ZJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function JJ(e=Ei){if(e===Ei)return a4;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 a4(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const eee=Math.sqrt(50),tee=Math.sqrt(10),nee=Math.sqrt(2);function qh(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>=eee?10:l>=tee?5:l>=nee?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?qh(e,t,n*2):[c,f,d]}function u1(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?qh(t,e,n):qh(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 c1(e,t,n){return t=+t,e=+e,n=+n,qh(e,t,n)[2]}function f1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?c1(t,e,n):c1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}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 oR(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function i4(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?a4:JJ(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));i4(e,t,x,O,i)}const l=e[t];let s=n,c=r;for(qu(e,n,t),i(e[r],l)>0&&qu(e,n,r);s<c;){for(qu(e,s,c),++s,--c;i(e[s],l)<0;)++s;for(;i(e[c],l)>0;)--c}i(e[n],l)===0?qu(e,n,c):(++c,qu(e,c,r)),c<=t&&(n=c+1),t<=c&&(r=c-1)}return e}function qu(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function ree(e,t,n){if(e=Float64Array.from(WJ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return oR(e);if(t>=1)return iR(e);var r,i=(r-1)*t,l=Math.floor(i),s=iR(i4(e,l).subarray(0,l+1)),c=oR(e.subarray(l+1));return s+(c-s)*(i-l)}}function aee(e,t,n=r4){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 iee(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 d1=Symbol("implicit");function _O(){var e=new rR,t=[],n=[],r=d1;function i(l){let s=e.get(l);if(s===void 0){if(r!==d1)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 rR;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 _O(t,n).unknown(r)},yr.apply(i,arguments),i}function wc(){var e=_O().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=iee(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 wc(t(),[r,i]).round(c).paddingInner(f).paddingOuter(d).align(m)},yr.apply(p(),arguments)}function o4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return o4(t())},e}function rc(){return o4(wc.apply(null,arguments).paddingInner(1))}function EO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function l4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function pf(){}var Sc=.7,Uh=1/Sc,Wl="\\s*([+-]?\\d+)\\s*",Oc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",ta="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",oee=/^#([0-9a-f]{3,8})$/,lee=new RegExp(`^rgb\\(${Wl},${Wl},${Wl}\\)$`),see=new RegExp(`^rgb\\(${ta},${ta},${ta}\\)$`),uee=new RegExp(`^rgba\\(${Wl},${Wl},${Wl},${Oc}\\)$`),cee=new RegExp(`^rgba\\(${ta},${ta},${ta},${Oc}\\)$`),fee=new RegExp(`^hsl\\(${Oc},${ta},${ta}\\)$`),dee=new RegExp(`^hsla\\(${Oc},${ta},${ta},${Oc}\\)$`),lR={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};EO(pf,_c,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sR,formatHex:sR,formatHex8:hee,formatHsl:pee,formatRgb:uR,toString:uR});function sR(){return this.rgb().formatHex()}function hee(){return this.rgb().formatHex8()}function pee(){return s4(this).formatHsl()}function uR(){return this.rgb().formatRgb()}function _c(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=oee.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?cR(t):n===3?new Dn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Kd(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Kd(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=lee.exec(e))?new Dn(t[1],t[2],t[3],1):(t=see.exec(e))?new Dn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=uee.exec(e))?Kd(t[1],t[2],t[3],t[4]):(t=cee.exec(e))?Kd(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=fee.exec(e))?hR(t[1],t[2]/100,t[3]/100,1):(t=dee.exec(e))?hR(t[1],t[2]/100,t[3]/100,t[4]):lR.hasOwnProperty(e)?cR(lR[e]):e==="transparent"?new Dn(NaN,NaN,NaN,0):null}function cR(e){return new Dn(e>>16&255,e>>8&255,e&255,1)}function Kd(e,t,n,r){return r<=0&&(e=t=n=NaN),new Dn(e,t,n,r)}function mee(e){return e instanceof pf||(e=_c(e)),e?(e=e.rgb(),new Dn(e.r,e.g,e.b,e.opacity)):new Dn}function h1(e,t,n,r){return arguments.length===1?mee(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}EO(Dn,h1,l4(pf,{brighter(e){return e=e==null?Uh:Math.pow(Uh,e),new Dn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Sc:Math.pow(Sc,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),Hh(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:fR,formatHex:fR,formatHex8:vee,formatRgb:dR,toString:dR}));function fR(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}`}function vee(){return`#${vo(this.r)}${vo(this.g)}${vo(this.b)}${vo((isNaN(this.opacity)?1:this.opacity)*255)}`}function dR(){const e=Hh(this.opacity);return`${e===1?"rgb(":"rgba("}${xo(this.r)}, ${xo(this.g)}, ${xo(this.b)}${e===1?")":`, ${e})`}`}function Hh(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 hR(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 s4(e){if(e instanceof Cr)return new Cr(e.h,e.s,e.l,e.opacity);if(e instanceof pf||(e=_c(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 gee(e,t,n,r){return arguments.length===1?s4(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}EO(Cr,gee,l4(pf,{brighter(e){return e=e==null?Uh:Math.pow(Uh,e),new Cr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Sc:Math.pow(Sc,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(Ex(e>=240?e-240:e+120,i,r),Ex(e,i,r),Ex(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Cr(pR(this.h),Xd(this.s),Xd(this.l),Hh(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=Hh(this.opacity);return`${e===1?"hsl(":"hsla("}${pR(this.h)}, ${Xd(this.s)*100}%, ${Xd(this.l)*100}%${e===1?")":`, ${e})`}`}}));function pR(e){return e=(e||0)%360,e<0?e+360:e}function Xd(e){return Math.max(0,Math.min(1,e||0))}function Ex(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 AO=e=>()=>e;function yee(e,t){return function(n){return e+n*t}}function bee(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 xee(e){return(e=+e)==1?u4:function(t,n){return n-t?bee(t,n,e):AO(isNaN(t)?n:t)}}function u4(e,t){var n=t-e;return n?yee(e,n):AO(isNaN(e)?t:e)}const mR=(function e(t){var n=xee(t);function r(i,l){var s=n((i=h1(i)).r,(l=h1(l)).r),c=n(i.g,l.g),f=n(i.b,l.b),d=u4(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 wee(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 See(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Oee(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]=Is(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 _ee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Fh(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Eee(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]=Is(e[i],t[i]):r[i]=t[i];return function(l){for(i in n)r[i]=n[i](l);return r}}var p1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Ax=new RegExp(p1.source,"g");function Aee(e){return function(){return e}}function Tee(e){return function(t){return e(t)+""}}function jee(e,t){var n=p1.lastIndex=Ax.lastIndex=0,r,i,l,s=-1,c=[],f=[];for(e=e+"",t=t+"";(r=p1.exec(e))&&(i=Ax.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:Fh(r,i)})),n=Ax.lastIndex;return n<t.length&&(l=t.slice(n),c[s]?c[s]+=l:c[++s]=l),c.length<2?f[0]?Tee(f[0].x):Aee(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 Is(e,t){var n=typeof t,r;return t==null||n==="boolean"?AO(t):(n==="number"?Fh:n==="string"?(r=_c(t))?(t=r,mR):jee:t instanceof _c?mR:t instanceof Date?_ee:See(t)?wee:Array.isArray(t)?Oee:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Eee:Fh)(e,t)}function TO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Cee(e,t){t===void 0&&(t=e,e=Is);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 Mee(e){return function(){return e}}function Gh(e){return+e}var vR=[0,1];function xn(e){return e}function m1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Mee(isNaN(t)?NaN:.5)}function Nee(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Ree(e,t,n){var r=e[0],i=e[1],l=t[0],s=t[1];return i<r?(r=m1(i,r),l=n(s,l)):(r=m1(r,i),l=n(l,s)),function(c){return l(r(c))}}function Pee(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]=m1(e[s],e[s+1]),l[s]=n(t[s],t[s+1]);return function(c){var f=hf(e,c,1,r)-1;return l[f](i[f](c))}}function mf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function cm(){var e=vR,t=vR,n=Is,r,i,l,s=xn,c,f,d;function m(){var y=Math.min(e.length,t.length);return s!==xn&&(s=Nee(e[0],e[y-1])),c=y>2?Pee:Ree,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),Fh)))(y)))},p.domain=function(y){return arguments.length?(e=Array.from(y,Gh),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=TO,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 jO(){return cm()(xn,xn)}function Dee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Vh(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 is(e){return e=Vh(Math.abs(e)),e?e[1]:NaN}function kee(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 $ee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Lee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Ec(e){if(!(t=Lee.exec(e)))throw new Error("invalid format: "+e);var t;return new CO({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]})}Ec.prototype=CO.prototype;function CO(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+""}CO.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 Iee(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 c4;function zee(e,t){var n=Vh(e,t);if(!n)return e+"";var r=n[0],i=n[1],l=i-(c4=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")+Vh(e,Math.max(0,t+l-1))[0]}function gR(e,t){var n=Vh(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 yR={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Dee,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)=>gR(e*100,t),r:gR,s:zee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function bR(e){return e}var xR=Array.prototype.map,wR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Bee(e){var t=e.grouping===void 0||e.thousands===void 0?bR:kee(xR.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?bR:$ee(xR.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=Ec(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"):yR[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=yR[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=Iee(z)),q&&+z==0&&O!=="+"&&(q=!1),H=(q?O==="("?O:c:O==="-"||O==="("?"":O)+H,V=(j==="s"?wR[8+c4/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=Ec(p),p.type="f",p)),O=Math.max(-8,Math.min(8,Math.floor(is(y)/3)))*3,w=Math.pow(10,-O),S=wR[8+O/3];return function(E){return x(w*E)+S}}return{format:d,formatPrefix:m}}var Qd,MO,f4;qee({thousands:",",grouping:[3],currency:["$",""]});function qee(e){return Qd=Bee(e),MO=Qd.format,f4=Qd.formatPrefix,Qd}function Uee(e){return Math.max(0,-is(Math.abs(e)))}function Hee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(is(t)/3)))*3-is(Math.abs(e)))}function Fee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,is(t)-is(e))+1}function d4(e,t,n,r){var i=f1(e,t,n),l;switch(r=Ec(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(l=Hee(i,s))&&(r.precision=l),f4(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(l=Fee(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=l-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(l=Uee(i))&&(r.precision=l-(r.type==="%")*2);break}}return MO(r)}function ki(e){var t=e.domain;return e.ticks=function(n){var r=t();return u1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return d4(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=c1(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 Yh(){var e=jO();return e.copy=function(){return mf(e,Yh())},yr.apply(e,arguments),ki(e)}function h4(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,Gh),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return h4(e).unknown(t)},e=arguments.length?Array.from(e,Gh):[0,1],ki(n)}function p4(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 SR(e){return Math.log(e)}function OR(e){return Math.exp(e)}function Gee(e){return-Math.log(-e)}function Vee(e){return-Math.exp(-e)}function Yee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Wee(e){return e===10?Yee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Kee(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 _R(e){return(t,n)=>-e(-t,n)}function NO(e){const t=e(SR,OR),n=t.domain;let r=10,i,l;function s(){return i=Kee(r),l=Wee(r),n()[0]<0?(i=_R(i),l=_R(l),e(Gee,Vee)):e(SR,OR),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=u1(d,m,S))}else E=u1(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=Ec(f)).precision==null&&(f.trim=!0),f=MO(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(p4(n(),{floor:c=>l(Math.floor(i(c))),ceil:c=>l(Math.ceil(i(c)))})),t}function m4(){const e=NO(cm()).domain([1,10]);return e.copy=()=>mf(e,m4()).base(e.base()),yr.apply(e,arguments),e}function ER(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function AR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function RO(e){var t=1,n=e(ER(t),AR(t));return n.constant=function(r){return arguments.length?e(ER(t=+r),AR(t)):t},ki(n)}function v4(){var e=RO(cm());return e.copy=function(){return mf(e,v4()).constant(e.constant())},yr.apply(e,arguments)}function TR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Xee(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Qee(e){return e<0?-e*e:e*e}function PO(e){var t=e(xn,xn),n=1;function r(){return n===1?e(xn,xn):n===.5?e(Xee,Qee):e(TR(n),TR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},ki(t)}function DO(){var e=PO(cm());return e.copy=function(){return mf(e,DO()).exponent(e.exponent())},yr.apply(e,arguments),e}function Zee(){return DO.apply(null,arguments).exponent(.5)}function jR(e){return Math.sign(e)*e*e}function Jee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function g4(){var e=jO(),t=[0,1],n=!1,r;function i(l){var s=Jee(e(l));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(l){return e.invert(jR(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,Gh)).map(jR)),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 g4(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},yr.apply(i,arguments),ki(i)}function y4(){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]=aee(e,s/c);return l}function l(s){return s==null||isNaN(s=+s)?r:t[hf(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 y4().domain(e).range(t).unknown(r)},yr.apply(l,arguments)}function b4(){var e=0,t=1,n=1,r=[.5],i=[0,1],l;function s(f){return f!=null&&f<=f?i[hf(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 b4().domain([e,t]).range(i).unknown(l)},yr.apply(ki(s),arguments)}function x4(){var e=[.5],t=[0,1],n,r=1;function i(l){return l!=null&&l<=l?t[hf(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 x4().domain(e).range(t).unknown(n)},yr.apply(i,arguments)}const Tx=new Date,jx=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)=>(Tx.setTime(+l),jx.setTime(+s),e(Tx),e(jx),Math.floor(n(Tx,jx))),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 Wh=Vt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Wh.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):Wh);Wh.range;const Ca=1e3,fr=Ca*60,Ma=fr*60,za=Ma*24,kO=za*7,CR=za*30,Cx=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 $O=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());$O.range;const LO=Vt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*fr)},(e,t)=>(t-e)/fr,e=>e.getUTCMinutes());LO.range;const IO=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());IO.range;const zO=Vt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Ma)},(e,t)=>(t-e)/Ma,e=>e.getUTCHours());zO.range;const vf=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);vf.range;const fm=Vt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/za,e=>e.getUTCDate()-1);fm.range;const w4=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));w4.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)/kO)}const dm=$o(0),Kh=$o(1),ete=$o(2),tte=$o(3),os=$o(4),nte=$o(5),rte=$o(6);dm.range;Kh.range;ete.range;tte.range;os.range;nte.range;rte.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)/kO)}const hm=Lo(0),Xh=Lo(1),ate=Lo(2),ite=Lo(3),ls=Lo(4),ote=Lo(5),lte=Lo(6);hm.range;Xh.range;ate.range;ite.range;ls.range;ote.range;lte.range;const BO=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());BO.range;const qO=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());qO.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 S4(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,kO],[t,1,CR],[t,3,3*CR],[e,1,Cx]];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=OO(([,,S])=>S).right(s,y);if(x===s.length)return e.every(f1(d/Cx,m/Cx,p));if(x===0)return Wh.every(Math.max(f1(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[ste,ute]=S4(qa,qO,hm,w4,zO,LO),[cte,fte]=S4(Ba,BO,dm,vf,IO,$O);function Mx(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 Nx(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 Uu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function dte(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=Hu(i),m=Fu(i),p=Hu(l),y=Fu(l),x=Hu(s),O=Fu(s),w=Hu(c),S=Fu(c),E=Hu(f),T=Fu(f),A={a:q,A:B,b:W,B:le,c:null,d:kR,e:kR,f:kte,g:Gte,G:Yte,H:Rte,I:Pte,j:Dte,L:O4,m:$te,M:Lte,p:$,q:F,Q:IR,s:zR,S:Ite,u:zte,U:Bte,V:qte,w:Ute,W:Hte,x:null,X:null,y:Fte,Y:Vte,Z:Wte,"%":LR},M={a:X,A:ae,b:de,B:ge,c:null,d:$R,e:$R,f:Zte,g:sne,G:cne,H:Kte,I:Xte,j:Qte,L:E4,m:Jte,M:ene,p:ce,q:he,Q:IR,s:zR,S:tne,u:nne,U:rne,V:ane,w:ine,W:one,x:null,X:null,y:lne,Y:une,Z:fne,"%":LR},j={a:Y,A:z,b:H,B:V,c:Q,d:PR,e:PR,f:jte,g:RR,G:NR,H:DR,I:DR,j:_te,L:Tte,m:Ote,M:Ete,p:L,q:Ste,Q:Mte,s:Nte,S:Ate,u:gte,U:yte,V:bte,w:vte,W:xte,x:K,X:k,y:RR,Y:NR,Z:wte,"%":Cte};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,Qe=ie.length,Ve,at,un;for(ve instanceof Date||(ve=new Date(+ve));++Pe<Qe;)ie.charCodeAt(Pe)===37&&(ne.push(ie.slice(Ee,Pe)),(at=MR[Ve=ie.charAt(++Pe)])!=null?Ve=ie.charAt(++Pe):at=Ve==="e"?" ":"0",(un=pe[Ve])&&(Ve=un(ve,at)),ne.push(Ve),Ee=Pe+1);return ne.push(ie.slice(Ee,Pe)),ne.join("")}}function R(ie,pe){return function(ve){var ne=Uu(1900,void 0,1),Pe=P(ne,ie,ve+="",0),Ee,Qe;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=Nx(Uu(ne.y,0,1)),Qe=Ee.getUTCDay(),Ee=Qe>4||Qe===0?Xh.ceil(Ee):Xh(Ee),Ee=fm.offset(Ee,(ne.V-1)*7),ne.y=Ee.getUTCFullYear(),ne.m=Ee.getUTCMonth(),ne.d=Ee.getUTCDate()+(ne.w+6)%7):(Ee=Mx(Uu(ne.y,0,1)),Qe=Ee.getDay(),Ee=Qe>4||Qe===0?Kh.ceil(Ee):Kh(Ee),Ee=vf.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),Qe="Z"in ne?Nx(Uu(ne.y,0,1)).getUTCDay():Mx(Uu(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+ne.W*7-(Qe+5)%7:ne.w+ne.U*7-(Qe+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,Nx(ne)):Mx(ne)}}function P(ie,pe,ve,ne){for(var Pe=0,Ee=pe.length,Qe=ve.length,Ve,at;Pe<Ee;){if(ne>=Qe)return-1;if(Ve=pe.charCodeAt(Pe++),Ve===37){if(Ve=pe.charAt(Pe++),at=j[Ve in MR?pe.charAt(Pe++):Ve],!at||(ne=at(ie,ve,ne))<0)return-1}else if(Ve!=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 MR={"-":"",_:" ",0:"0"},Jt=/^\s*\d+/,hte=/^%/,pte=/[\\^$*+?|[\]().{}]/g;function Xe(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 mte(e){return e.replace(pte,"\\$&")}function Hu(e){return new RegExp("^(?:"+e.map(mte).join("|")+")","i")}function Fu(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function vte(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function gte(e,t,n){var r=Jt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function yte(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function bte(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function xte(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function NR(e,t,n){var r=Jt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function RR(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 wte(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 Ste(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 Ote(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 PR(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function _te(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 DR(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Ete(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Ate(e,t,n){var r=Jt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Tte(e,t,n){var r=Jt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function jte(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 Cte(e,t,n){var r=hte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Mte(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Nte(e,t,n){var r=Jt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function kR(e,t){return Xe(e.getDate(),t,2)}function Rte(e,t){return Xe(e.getHours(),t,2)}function Pte(e,t){return Xe(e.getHours()%12||12,t,2)}function Dte(e,t){return Xe(1+vf.count(Ba(e),e),t,3)}function O4(e,t){return Xe(e.getMilliseconds(),t,3)}function kte(e,t){return O4(e,t)+"000"}function $te(e,t){return Xe(e.getMonth()+1,t,2)}function Lte(e,t){return Xe(e.getMinutes(),t,2)}function Ite(e,t){return Xe(e.getSeconds(),t,2)}function zte(e){var t=e.getDay();return t===0?7:t}function Bte(e,t){return Xe(dm.count(Ba(e)-1,e),t,2)}function _4(e){var t=e.getDay();return t>=4||t===0?os(e):os.ceil(e)}function qte(e,t){return e=_4(e),Xe(os.count(Ba(e),e)+(Ba(e).getDay()===4),t,2)}function Ute(e){return e.getDay()}function Hte(e,t){return Xe(Kh.count(Ba(e)-1,e),t,2)}function Fte(e,t){return Xe(e.getFullYear()%100,t,2)}function Gte(e,t){return e=_4(e),Xe(e.getFullYear()%100,t,2)}function Vte(e,t){return Xe(e.getFullYear()%1e4,t,4)}function Yte(e,t){var n=e.getDay();return e=n>=4||n===0?os(e):os.ceil(e),Xe(e.getFullYear()%1e4,t,4)}function Wte(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Xe(t/60|0,"0",2)+Xe(t%60,"0",2)}function $R(e,t){return Xe(e.getUTCDate(),t,2)}function Kte(e,t){return Xe(e.getUTCHours(),t,2)}function Xte(e,t){return Xe(e.getUTCHours()%12||12,t,2)}function Qte(e,t){return Xe(1+fm.count(qa(e),e),t,3)}function E4(e,t){return Xe(e.getUTCMilliseconds(),t,3)}function Zte(e,t){return E4(e,t)+"000"}function Jte(e,t){return Xe(e.getUTCMonth()+1,t,2)}function ene(e,t){return Xe(e.getUTCMinutes(),t,2)}function tne(e,t){return Xe(e.getUTCSeconds(),t,2)}function nne(e){var t=e.getUTCDay();return t===0?7:t}function rne(e,t){return Xe(hm.count(qa(e)-1,e),t,2)}function A4(e){var t=e.getUTCDay();return t>=4||t===0?ls(e):ls.ceil(e)}function ane(e,t){return e=A4(e),Xe(ls.count(qa(e),e)+(qa(e).getUTCDay()===4),t,2)}function ine(e){return e.getUTCDay()}function one(e,t){return Xe(Xh.count(qa(e)-1,e),t,2)}function lne(e,t){return Xe(e.getUTCFullYear()%100,t,2)}function sne(e,t){return e=A4(e),Xe(e.getUTCFullYear()%100,t,2)}function une(e,t){return Xe(e.getUTCFullYear()%1e4,t,4)}function cne(e,t){var n=e.getUTCDay();return e=n>=4||n===0?ls(e):ls.ceil(e),Xe(e.getUTCFullYear()%1e4,t,4)}function fne(){return"+0000"}function LR(){return"%"}function IR(e){return+e}function zR(e){return Math.floor(+e/1e3)}var kl,T4,j4;dne({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 dne(e){return kl=dte(e),T4=kl.format,kl.parse,j4=kl.utcFormat,kl.utcParse,kl}function hne(e){return new Date(e)}function pne(e){return e instanceof Date?+e:+new Date(+e)}function UO(e,t,n,r,i,l,s,c,f,d){var m=jO(),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,pne)):y().map(hne)},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(p4(R,N)):m},m.copy=function(){return mf(m,UO(e,t,n,r,i,l,s,c,f,d))},m}function mne(){return yr.apply(UO(cte,fte,Ba,BO,dm,vf,IO,$O,go,T4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function vne(){return yr.apply(UO(ste,ute,qa,qO,hm,fm,zO,LO,go,j4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function pm(){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(Is),d.rangeRound=m(TO),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 C4(){var e=ki(pm()(xn));return e.copy=function(){return $i(e,C4())},Ga.apply(e,arguments)}function M4(){var e=NO(pm()).domain([1,10]);return e.copy=function(){return $i(e,M4()).base(e.base())},Ga.apply(e,arguments)}function N4(){var e=RO(pm());return e.copy=function(){return $i(e,N4()).constant(e.constant())},Ga.apply(e,arguments)}function HO(){var e=PO(pm());return e.copy=function(){return $i(e,HO()).exponent(e.exponent())},Ga.apply(e,arguments)}function gne(){return HO.apply(null,arguments).exponent(.5)}function R4(){var e=[],t=xn;function n(r){if(r!=null&&!isNaN(r=+r))return t((hf(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)=>ree(e,l/r))},n.copy=function(){return R4(t).domain(e)},Ga.apply(n,arguments)}function mm(){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=Cee(w,[E,T,A]),x):[d(0),d(.5),d(1)]}}return x.range=O(Is),x.rangeRound=O(TO),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 P4(){var e=ki(mm()(xn));return e.copy=function(){return $i(e,P4())},Ga.apply(e,arguments)}function D4(){var e=NO(mm()).domain([.1,1,10]);return e.copy=function(){return $i(e,D4()).base(e.base())},Ga.apply(e,arguments)}function k4(){var e=RO(mm());return e.copy=function(){return $i(e,k4()).constant(e.constant())},Ga.apply(e,arguments)}function FO(){var e=PO(mm());return e.copy=function(){return $i(e,FO()).exponent(e.exponent())},Ga.apply(e,arguments)}function yne(){return FO.apply(null,arguments).exponent(.5)}const BR=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:wc,scaleDiverging:P4,scaleDivergingLog:D4,scaleDivergingPow:FO,scaleDivergingSqrt:yne,scaleDivergingSymlog:k4,scaleIdentity:h4,scaleImplicit:d1,scaleLinear:Yh,scaleLog:m4,scaleOrdinal:_O,scalePoint:rc,scalePow:DO,scaleQuantile:y4,scaleQuantize:b4,scaleRadial:g4,scaleSequential:C4,scaleSequentialLog:M4,scaleSequentialPow:HO,scaleSequentialQuantile:R4,scaleSequentialSqrt:gne,scaleSequentialSymlog:N4,scaleSqrt:Zee,scaleSymlog:v4,scaleThreshold:x4,scaleTime:mne,scaleUtc:vne,tickFormat:d4},Symbol.toStringTag,{value:"Module"}));var Rx,qR;function $4(){if(qR)return Rx;qR=1;var e=Ds();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 Rx=t,Rx}var Px,UR;function bne(){if(UR)return Px;UR=1;function e(t,n){return t>n}return Px=e,Px}var Dx,HR;function xne(){if(HR)return Dx;HR=1;var e=$4(),t=bne(),n=$s();function r(i){return i&&i.length?e(i,n,t):void 0}return Dx=r,Dx}var wne=xne();const vm=ut(wne);var kx,FR;function Sne(){if(FR)return kx;FR=1;function e(t,n){return t<n}return kx=e,kx}var $x,GR;function One(){if(GR)return $x;GR=1;var e=$4(),t=Sne(),n=$s();function r(i){return i&&i.length?e(i,n,t):void 0}return $x=r,$x}var _ne=One();const gm=ut(_ne);var Lx,VR;function Ene(){if(VR)return Lx;VR=1;var e=oO(),t=Di(),n=F3(),r=kn();function i(l,s){var c=r(l)?e:n;return c(l,t(s,3))}return Lx=i,Lx}var Ix,YR;function Ane(){if(YR)return Ix;YR=1;var e=U3(),t=Ene();function n(r,i){return e(t(r,i),1)}return Ix=n,Ix}var Tne=Ane();const jne=ut(Tne);var zx,WR;function Cne(){if(WR)return zx;WR=1;var e=bO();function t(n,r){return e(n,r)}return zx=t,zx}var Mne=Cne();const ym=ut(Mne);var zs=1e9,Nne={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},VO,bt=!0,vr="[DecimalError] ",wo=vr+"Invalid argument: ",GO=vr+"Exponent out of range: ",Bs=Math.floor,po=Math.pow,Rne=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Wn,Zt=1e7,vt=7,L4=9007199254740991,Qh=Bs(L4/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(Ac(n,l),Ac(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?B4(t,e):I4(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 z4(this)};xe.naturalLogarithm=xe.ln=function(){return Ac(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?I4(t,e):B4(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=Bs((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,zs),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,zs),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,zs),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)<=L4){for(i=new f(Wn),t=Math.ceil(r/vt+4),bt=!1;n%2&&(i=i.times(c),XR(i.d,t)),n=Bs(n/2),n!==0;)c=c.times(c),XR(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(Ac(c,r+d)),bt=!0,i=z4(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,zs),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,zs),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 I4(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 z4(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(GO+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 Bx(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 Ac(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),Bx(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=Bx(w,d+2,S).times(l+""),x=Ac(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(Bx(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 KR(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=Bs(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>Qh||e.e<-Qh))throw Error(GO+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=Bs(-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>Qh||e.e<-Qh))throw Error(GO+It(e));return e}function B4(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 XR(e,t){if(e.length>t)return e.length=t,!0}function q4(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 KR(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,Rne.test(l))KR(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=q4,i.config=i.set=Pne,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 Pne(e){if(!e||typeof e!="object")throw Error(vr+"Object expected");var t,n,r,i=["precision",1,zs,"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(Bs(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 VO=q4(Nne);Wn=new VO(1);const st=VO;function Dne(e){return Ine(e)||Lne(e)||$ne(e)||kne()}function kne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
322
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $ne(e,t){if(e){if(typeof e=="string")return v1(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 v1(e,t)}}function Lne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Ine(e){if(Array.isArray(e))return v1(e)}function v1(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 zne=function(t){return t},U4={},H4=function(t){return t===U4},QR=function(t){return function n(){return arguments.length===0||arguments.length===1&&H4(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},Bne=function e(t,n){return t===1?n:QR(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!==U4}).length;return s>=t?n.apply(void 0,i):e(t-s,QR(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 H4(p)?f.shift():p});return n.apply(void 0,Dne(m).concat(f))}))})},bm=function(t){return Bne(t.length,t)},g1=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},qne=bm(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Une=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return zne;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))}},y1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},F4=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 Hne(e){var t;return e===0?t=1:t=Math.floor(new st(e).abs().log(10).toNumber())+1,t}function Fne(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 Gne=bm(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),Vne=bm(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Yne=bm(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const xm={rangeStep:Fne,getDigitCount:Hne,interpolateNumber:Gne,uninterpolateNumber:Vne,uninterpolateTruncation:Yne};function b1(e){return Xne(e)||Kne(e)||G4(e)||Wne()}function Wne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
323
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Xne(e){if(Array.isArray(e))return x1(e)}function Tc(e,t){return Jne(e)||Zne(e,t)||G4(e,t)||Qne()}function Qne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
324
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function G4(e,t){if(e){if(typeof e=="string")return x1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return x1(e,t)}}function x1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zne(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 Jne(e){if(Array.isArray(e))return e}function V4(e){var t=Tc(e,2),n=t[0],r=t[1],i=n,l=r;return n>r&&(i=r,l=n),[i,l]}function Y4(e,t,n){if(e.lte(0))return new st(0);var r=xm.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 ere(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(xm.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=Une(qne(function(f){return i.add(new st(f-s).mul(r)).toNumber()}),g1);return c(0,t)}function W4(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=Y4(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?W4(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 tre(e){var t=Tc(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=V4([n,r]),f=Tc(c,2),d=f[0],m=f[1];if(d===-1/0||m===1/0){var p=m===1/0?[d].concat(b1(g1(0,i-1).map(function(){return 1/0}))):[].concat(b1(g1(0,i-1).map(function(){return-1/0})),[m]);return n>r?y1(p):p}if(d===m)return ere(d,i,l);var y=W4(d,m,s,l),x=y.step,O=y.tickMin,w=y.tickMax,S=xm.rangeStep(O,w.add(new st(.1).mul(x)),x);return n>r?y1(S):S}function nre(e,t){var n=Tc(e,2),r=n[0],i=n[1],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=V4([r,i]),c=Tc(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=Y4(new st(d).sub(f).div(m-1),l,0),y=[].concat(b1(xm.rangeStep(new st(f),new st(d).sub(new st(.99).mul(p)),p)),[d]);return r>i?y1(y):y}var rre=F4(tre),are=F4(nre),ire="Invariant failed";function Co(e,t){throw new Error(ire)}var ore=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function ss(e){"@babel/helpers - typeof";return ss=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ss(e)}function Zh(){return Zh=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zh.apply(this,arguments)}function lre(e,t){return fre(e)||cre(e,t)||ure(e,t)||sre()}function sre(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
325
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ure(e,t){if(e){if(typeof e=="string")return ZR(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 ZR(e,t)}}function ZR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cre(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,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 fre(e){if(Array.isArray(e))return e}function dre(e,t){if(e==null)return{};var n=hre(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 hre(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function pre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mre(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,Q4(r.key),r)}}function vre(e,t,n){return t&&mre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gre(e,t,n){return t=Jh(t),yre(e,K4()?Reflect.construct(t,n||[],Jh(e).constructor):t.apply(e,n))}function yre(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 bre(e)}function bre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function K4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(K4=function(){return!!e})()}function Jh(e){return Jh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jh(e)}function xre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w1(e,t)}function w1(e,t){return w1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},w1(e,t)}function X4(e,t,n){return t=Q4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q4(e){var t=wre(e,"string");return ss(t)=="symbol"?t:t+""}function wre(e,t){if(ss(e)!="object"||!e)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 String(e)}var gf=(function(e){function t(){return pre(this,t),gre(this,t,arguments)}return xre(t,e),vre(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=dre(r,ore),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=lre(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,Zh({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",Zh({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return I.createElement(Ct,{className:"recharts-errorBars"},O)}}])})(I.Component);X4(gf,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});X4(gf,"displayName","ErrorBar");function jc(e){"@babel/helpers - typeof";return jc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jc(e)}function JR(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?JR(Object(n),!0).forEach(function(r){Sre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Sre(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)}var Z4=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:YO(p),value:w||O,payload:x}}),so(so(so({},f),bo.getWithHeight(s,i)),{},{payload:d,item:s})};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 eP(e){return jre(e)||Tre(e)||Are(e)||Ere()}function Ere(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
326
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Are(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 Tre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jre(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 tP(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?tP(Object(n),!0).forEach(function(r){Kl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kl(e,t,n){return t=Cre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cre(e){var t=Mre(e,"string");return Cc(t)=="symbol"?t:t+""}function Mre(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)}function Xn(e,t,n){return ze(e)||ze(t)?n:Gt(t)?pr(e,t,n):$e(t)?t(e):n}function ac(e,t,n,r){var i=jne(e,function(c){return Xn(c,t)});if(n==="number"){var l=i.filter(function(c){return ye(c)||parseFloat(c)});return l.length?[gm(l),vm(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 Nre=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},YO=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},Rre=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},Pre=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(eP(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(eP(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},Dre=function(t,n,r,i){var l=r.children,s=r.width,c=r.margin,f=s-(c.left||0)-(c.right||0),d=Z4({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),{},Kl({},x,t[x]+(p||0)));if((w==="horizontal"||w==="vertical"&&x==="center")&&O!=="middle"&&ye(t[O]))return At(At({},t),{},Kl({},O,t[O]+(y||0)))}return t},kre=function(t,n,r){return ze(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},J4=function(t,n,r,i,l){var s=n.props.children,c=mr(s,gf).filter(function(d){return kre(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)?[gm(p),vm(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},$re=function(t,n,r,i,l){var s=n.map(function(c){return J4(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},ez=function(t,n,r,i,l){var s=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&J4(t,f,d,i)||ac(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},[])},tz=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},nz=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!cf(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}})},qx=new WeakMap,Zd=function(t,n){if(typeof n!="function")return t;qx.has(t)||qx.set(t,new WeakMap);var r=qx.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},Lre=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:wc(),realScaleType:"band"}:s==="radial"&&c==="angleAxis"?{scale:Yh(),realScaleType:"linear"}:l==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:rc(),realScaleType:"point"}:l==="category"?{scale:wc(),realScaleType:"band"}:{scale:Yh(),realScaleType:"linear"};if(Ao(i)){var f="scale".concat(rm(i));return{scale:(BR[f]||rc)(),realScaleType:BR[f]?f:"point"}}return $e(i)?{scale:i}:{scale:rc(),realScaleType:"point"}},nP=1e-4,Ire=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])-nP,s=Math.max(i[0],i[1])+nP,c=t(n[0]),f=t(n[r-1]);(c<l||c>s||f<l||f>s)&&t.domain([n[0],n[r-1]])}},zre=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},Bre=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},qre=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=cf(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])}},Ure=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=cf(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)}},Hre={sign:qre,expand:EX,none:es,silhouette:AX,wiggle:TX,positive:Ure},Fre=function(t,n,r){var i=n.map(function(c){return c.props.dataKey}),l=Hre[r],s=_X().keys(i).value(function(c,f){return+Xn(c,f,0)}).order(Zw).offset(l);return s(t)},Gre=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[ff("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[y]};return At(At({},p),{},Kl({},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),{},Kl({},S,{numericAxisId:r,cateAxisId:i,items:E.items,stackedData:Fre(t,E.items,l)}))},O)}return At(At({},p),{},Kl({},y,x))},m)},Vre=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=rre(d,l,c);return t.domain([gm(m),vm(m)]),{niceTicks:m}}if(l&&i==="number"){var p=t.domain(),y=are(p,l,c);return{niceTicks:y}}return null};function rP(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=Th(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 aP=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},Yre=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]},Wre=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},Kre=function(t){return t.reduce(function(n,r){return[gm(r.concat([n[0]]).filter(ye)),vm(r.concat([n[1]]).filter(ye))]},[1/0,-1/0])},rz=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=Kre(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})},iP=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oP=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,O1=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(iP.test(t[0])){var l=+iP.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(oP.test(t[1])){var s=+oP.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},ep=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=wO(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},lP=function(t,n,r){return!t||!t.length||ym(t,pr(r,"type.defaultProps.domain"))?n:t},az=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:YO(t),value:Xn(n,i),type:f,payload:n,chartType:d,hide:m})};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 sP(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 uP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(n),!0).forEach(function(r){Xre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xre(e,t,n){return t=Qre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qre(e){var t=Zre(e,"string");return Mc(t)=="symbol"?t:t+""}function Zre(e,t){if(Mc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var tp=Math.PI/180,Jre=function(t){return t*180/Math.PI},sn=function(t,n,r,i){return{x:t+Math.cos(-tp*i)*r,y:n+Math.sin(-tp*i)*r}},eae=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))},tae=function(t,n){var r=t.x,i=t.y,l=n.cx,s=n.cy,c=eae({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:Jre(d),angleInRadian:d}},nae=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}},rae=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},cP=function(t,n){var r=t.x,i=t.y,l=tae({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=nae(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?uP(uP({},n),{},{radius:s,angle:rae(x,n)}):null};function Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}var aae=["offset"];function iae(e){return uae(e)||sae(e)||lae(e)||oae()}function oae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
327
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lae(e,t){if(e){if(typeof e=="string")return _1(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 _1(e,t)}}function sae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function uae(e){if(Array.isArray(e))return _1(e)}function _1(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 cae(e,t){if(e==null)return{};var n=fae(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 fae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fP(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?fP(Object(n),!0).forEach(function(r){dae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dae(e,t,n){return t=hae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hae(e){var t=pae(e,"string");return Nc(t)=="symbol"?t:t+""}function pae(e,t){if(Nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Rc(){return Rc=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},Rc.apply(this,arguments)}var mae=function(t){var n=t.value,r=t.formatter,i=ze(t.children)?n:t.children;return $e(r)?r(i):i},vae=function(t,n){var r=Mr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},gae=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=vae(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,`
|
|
328
|
+
A`).concat(S,",").concat(S,",0,1,").concat(M?0:1,`,
|
|
329
|
+
`).concat(N.x,",").concat(N.y),P=ze(t.id)?ff("recharts-radial-line-"):t.id;return I.createElement("text",Rc({},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))},yae=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"}},bae=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):ks(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)},xae=function(t){return"cx"in t&&ye(t.cx)};function mn(e){var t=e.offset,n=t===void 0?5:t,r=cae(e,aae),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=mae(i);var O=xae(l),w=He(i,!0);if(O&&(s==="insideStart"||s==="insideEnd"||s==="end"))return gae(i,x,w);var S=O?yae(i):bae(i);return I.createElement(Bh,Rc({className:Fe("recharts-label",p)},w,S,{breakAll:y}),x)}mn.displayName="Label";var iz=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:{}},wae=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}):ks(t)?I.createElement(mn,Rc({viewBox:n},t,{key:"label-implicit"})):null:null},Sae=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=iz(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=wae(t.label,n||l);return[c].concat(iae(s))};mn.parseViewBox=iz;mn.renderCallByParent=Sae;var Ux,dP;function Oae(){if(dP)return Ux;dP=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Ux=e,Ux}var _ae=Oae();const Eae=ut(_ae);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)}var Aae=["valueAccessor"],Tae=["data","dataKey","clockWise","id","textBreakAll"];function jae(e){return Rae(e)||Nae(e)||Mae(e)||Cae()}function Cae(){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 Mae(e,t){if(e){if(typeof e=="string")return E1(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 E1(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 E1(e)}function E1(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 np(){return np=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},np.apply(this,arguments)}function hP(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 pP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hP(Object(n),!0).forEach(function(r){Pae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pae(e,t,n){return t=Dae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dae(e){var t=kae(e,"string");return Pc(t)=="symbol"?t:t+""}function kae(e,t){if(Pc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mP(e,t){if(e==null)return{};var n=$ae(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 $ae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Lae=function(t){return Array.isArray(t.value)?Eae(t.value):t.value};function Ai(e){var t=e.valueAccessor,n=t===void 0?Lae:t,r=mP(e,Aae),i=r.data,l=r.dataKey,s=r.clockWise,c=r.id,f=r.textBreakAll,d=mP(r,Tae);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,np({},He(m,!0),d,x,{parentViewBox:m.parentViewBox,value:y,textBreakAll:f,viewBox:mn.parseViewBox(ze(s)?m:pP(pP({},m),{},{clockWise:s})),key:"label-".concat(p),index:p}))}))}Ai.displayName="LabelList";function Iae(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}):ks(e)?I.createElement(Ai,np({data:t},e,{key:"labelList-implicit"})):null:null}function zae(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=Iae(e.label,t);return[l].concat(jae(i))}Ai.renderCallByParent=zae;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 A1(){return A1=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},A1.apply(this,arguments)}function vP(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 gP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vP(Object(n),!0).forEach(function(r){Bae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vP(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 Hae=function(t,n){var r=Mr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},Jd=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)/tp,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*tp),w);return{center:x,circleTangency:O,lineTangency:S,theta:p}},oz=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,l=t.outerRadius,s=t.startAngle,c=t.endAngle,f=Hae(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,`
|
|
331
|
+
A `).concat(l,",").concat(l,`,0,
|
|
332
|
+
`).concat(+(Math.abs(f)>180),",").concat(+(s>d),`,
|
|
333
|
+
`).concat(p.x,",").concat(p.y,`
|
|
334
|
+
`);if(i>0){var x=sn(n,r,i,s),O=sn(n,r,i,d);y+="L ".concat(O.x,",").concat(O.y,`
|
|
335
|
+
A `).concat(i,",").concat(i,`,0,
|
|
336
|
+
`).concat(+(Math.abs(f)>180),",").concat(+(s<=d),`,
|
|
337
|
+
`).concat(x.x,",").concat(x.y," Z")}else y+="L ".concat(n,",").concat(r," Z");return y},Fae=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=Jd({cx:n,cy:r,radius:l,angle:d,sign:p,cornerRadius:s,cornerIsExternal:f}),x=y.circleTangency,O=y.lineTangency,w=y.theta,S=Jd({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,`
|
|
338
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
|
|
339
|
+
a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
|
|
340
|
+
`):oz({cx:n,cy:r,innerRadius:i,outerRadius:l,startAngle:d,endAngle:m});var j="M ".concat(O.x,",").concat(O.y,`
|
|
341
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(x.x,",").concat(x.y,`
|
|
342
|
+
A`).concat(l,",").concat(l,",0,").concat(+(M>180),",").concat(+(p<0),",").concat(E.x,",").concat(E.y,`
|
|
343
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(T.x,",").concat(T.y,`
|
|
344
|
+
`);if(i>0){var N=Jd({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=Jd({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,`
|
|
345
|
+
A`).concat(s,",").concat(s,",0,0,").concat(+(p<0),",").concat(z.x,",").concat(z.y,`
|
|
346
|
+
A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(p>0),",").concat(R.x,",").concat(R.y,`
|
|
347
|
+
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},Gae={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},lz=function(t){var n=gP(gP({},Gae),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=Fae({cx:r,cy:i,innerRadius:l,outerRadius:s,cornerRadius:Math.min(w,O/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:m,endAngle:p}):S=oz({cx:r,cy:i,innerRadius:l,outerRadius:s,startAngle:m,endAngle:p}),I.createElement("path",A1({},He(n,!0),{className:x,d:S,role:"img"}))};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 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 yP(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 bP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yP(Object(n),!0).forEach(function(r){Vae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vae(e,t,n){return t=Yae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yae(e){var t=Wae(e,"string");return kc(t)=="symbol"?t:t+""}function Wae(e,t){if(kc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var xP={curveBasisClosed:hX,curveBasisOpen:pX,curveBasis:dX,curveBumpX:ZK,curveBumpY:JK,curveLinearClosed:mX,curveLinear:im,curveMonotoneX:vX,curveMonotoneY:gX,curveNatural:yX,curveStep:bX,curveStepAfter:wX,curveStepBefore:xX},eh=function(t){return t.x===+t.x&&t.y===+t.y},Gu=function(t){return t.x},Vu=function(t){return t.y},Kae=function(t,n){if($e(t))return t;var r="curve".concat(rm(t));return(r==="curveMonotone"||r==="curveBump")&&n?xP["".concat(r).concat(n==="vertical"?"Y":"X")]:xP[r]||im},Xae=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=Kae(r,c),p=d?l.filter(function(w){return eh(w)}):l,y;if(Array.isArray(s)){var x=d?s.filter(function(w){return eh(w)}):s,O=p.map(function(w,S){return bP(bP({},w),{},{base:x[S]})});return c==="vertical"?y=Gd().y(Vu).x1(Gu).x0(function(w){return w.base.x}):y=Gd().x(Gu).y1(Vu).y0(function(w){return w.base.y}),y.defined(eh).curve(m),y(O)}return c==="vertical"&&ye(s)?y=Gd().y(Vu).x1(Gu).x0(s):ye(s)?y=Gd().x(Gu).y1(Vu).y0(s):y=f3().x(Gu).y(Vu),y.defined(eh).curve(m),y(p)},j1=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?Xae(t):i;return _.createElement("path",T1({},He(t,!1),jh(t),{className:Fe("recharts-curve",n),d:s,ref:l}))},Hx={exports:{}},Fx,wP;function Qae(){if(wP)return Fx;wP=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fx=e,Fx}var Gx,SP;function Zae(){if(SP)return Gx;SP=1;var e=Qae();function t(){}function n(){}return n.resetWarningCache=t,Gx=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},Gx}var OP;function Jae(){return OP||(OP=1,Hx.exports=Zae()()),Hx.exports}var eie=Jae();const et=ut(eie);var tie=Object.getOwnPropertyNames,nie=Object.getOwnPropertySymbols,rie=Object.prototype.hasOwnProperty;function _P(e,t){return function(r,i,l){return e(r,i,l)&&t(r,i,l)}}function th(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 aie(e){return e!=null?e[Symbol.toStringTag]:void 0}function EP(e){return tie(e).concat(nie(e))}var iie=Object.hasOwn||(function(e,t){return rie.call(e,t)});function Io(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var oie="__v",lie="__o",sie="_owner",AP=Object.getOwnPropertyDescriptor,TP=Object.keys;function uie(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 cie(e,t){return Io(e.getTime(),t.getTime())}function fie(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function die(e,t){return e===t}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.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 hie=Io;function pie(e,t,n){var r=TP(e),i=r.length;if(TP(t).length!==i)return!1;for(;i-- >0;)if(!sz(e,t,n,r[i]))return!1;return!0}function Yu(e,t,n){var r=EP(e),i=r.length;if(EP(t).length!==i)return!1;for(var l,s,c;i-- >0;)if(l=r[i],!sz(e,t,n,l)||(s=AP(e,l),c=AP(t,l),(s||c)&&(!s||!c||s.configurable!==c.configurable||s.enumerable!==c.enumerable||s.writable!==c.writable)))return!1;return!0}function mie(e,t){return Io(e.valueOf(),t.valueOf())}function vie(e,t){return e.source===t.source&&e.flags===t.flags}function CP(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 gie(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 yie(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 sz(e,t,n,r){return(r===sie||r===lie||r===oie)&&(e.$$typeof||t.$$typeof)?!0:iie(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var bie="[object Arguments]",xie="[object Boolean]",wie="[object Date]",Sie="[object Error]",Oie="[object Map]",_ie="[object Number]",Eie="[object Object]",Aie="[object RegExp]",Tie="[object Set]",jie="[object String]",Cie="[object URL]",Mie=Array.isArray,MP=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,NP=Object.assign,Nie=Object.prototype.toString.call.bind(Object.prototype.toString);function Rie(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(Mie(w))return t(w,S,E);if(MP!=null&&MP(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=Nie(w);if(M===wie)return n(w,S,E);if(M===Aie)return d(w,S,E);if(M===Oie)return l(w,S,E);if(M===Tie)return m(w,S,E);if(M===Eie)return typeof w.then!="function"&&typeof S.then!="function"&&c(w,S,E);if(M===Cie)return y(w,S,E);if(M===Sie)return r(w,S,E);if(M===bie)return c(w,S,E);if(M===xie||M===_ie||M===jie)return f(w,S,E);if(x){var j=x[M];if(!j){var N=aie(w);N&&(j=x[N])}if(j)return j(w,S,E)}return!1}}function Pie(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Yu:uie,areDatesEqual:cie,areErrorsEqual:fie,areFunctionsEqual:die,areMapsEqual:r?_P(jP,Yu):jP,areNumbersEqual:hie,areObjectsEqual:r?Yu:pie,arePrimitiveWrappersEqual:mie,areRegExpsEqual:vie,areSetsEqual:r?_P(CP,Yu):CP,areTypedArraysEqual:r?Yu:gie,areUrlsEqual:yie,unknownTagComparators:void 0};if(n&&(i=NP({},i,n(i))),t){var l=th(i.areArraysEqual),s=th(i.areMapsEqual),c=th(i.areObjectsEqual),f=th(i.areSetsEqual);i=NP({},i,{areArraysEqual:l,areMapsEqual:s,areObjectsEqual:c,areSetsEqual:f})}return i}function Die(e){return function(t,n,r,i,l,s,c){return e(t,n,c)}}function kie(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 $ie=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=Pie(e),f=Rie(c),d=r?r(f):Die(f);return kie({circular:n,comparator:f,createState:i,equals:d,strict:s})}function Lie(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function RP(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):Lie(i)};requestAnimationFrame(r)}function C1(e){"@babel/helpers - typeof";return C1=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},C1(e)}function Iie(e){return Uie(e)||qie(e)||Bie(e)||zie()}function zie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
348
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bie(e,t){if(e){if(typeof e=="string")return PP(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 PP(e,t)}}function PP(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 qie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Uie(e){if(Array.isArray(e))return e}function Hie(){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=Iie(s),f=c[0],d=c.slice(1);if(typeof f=="number"){RP(i.bind(null,d),f);return}i(f),RP(i.bind(null,d));return}C1(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 $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 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 kP(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){uz(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 uz(e,t,n){return t=Fie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Fie(e){var t=Gie(e,"string");return $c(t)==="symbol"?t:String(t)}function Gie(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)}var Vie=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(l){return i.includes(l)})})},Yie=function(t){return t},Wie=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},ic=function(t,n){return Object.keys(n).reduce(function(r,i){return kP(kP({},r),{},uz({},i,t(i,n[i])))},{})},$P=function(t,n,r){return t.map(function(i){return"".concat(Wie(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Kie(e,t){return Zie(e)||Qie(e,t)||cz(e,t)||Xie()}function Xie(){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 Qie(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 Zie(e){if(Array.isArray(e))return e}function Jie(e){return noe(e)||toe(e)||cz(e)||eoe()}function eoe(){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 cz(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 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 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}var rp=1e-4,fz=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},dz=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},LP=function(t,n){return function(r){var i=fz(t,n);return dz(i,r)}},roe=function(t,n){return function(r){var i=fz(t,n),l=[].concat(Jie(i.map(function(s,c){return s*c}).slice(1)),[0]);return dz(l,r)}},IP=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=Kie(d,4);i=m[0],l=m[1],s=m[2],c=m[3]}}}var p=LP(i,s),y=LP(l,c),x=roe(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)<rp||N<rp)return y(A);A=O(A-j/N)}return y(A)};return w.isStepper=!1,w},aoe=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)<rp&&Math.abs(w)<rp?[p,0]:[S,w]};return f.isStepper=!0,f.dt=c,f},ioe=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 IP(i);case"spring":return aoe();default:if(i.split("(")[0]==="cubic-bezier")return IP(i)}return typeof i=="function"?i:null};function Lc(e){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lc(e)}function zP(e){return soe(e)||loe(e)||hz(e)||ooe()}function ooe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
351
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function loe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function soe(e){if(Array.isArray(e))return R1(e)}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 on(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){N1(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 N1(e,t,n){return t=uoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uoe(e){var t=coe(e,"string");return Lc(t)==="symbol"?t:String(t)}function coe(e,t){if(Lc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function foe(e,t){return poe(e)||hoe(e,t)||hz(e,t)||doe()}function doe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
352
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function hz(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 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 hoe(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 poe(e){if(Array.isArray(e))return e}var ap=function(t,n,r){return t+(n-t)*r},P1=function(t){var n=t.from,r=t.to;return n!==r},moe=function e(t,n,r){var i=ic(function(l,s){if(P1(s)){var c=t(s.from,s.to,s.velocity),f=foe(c,2),d=f[0],m=f[1];return on(on({},s),{},{from:d,velocity:m})}return s},n);return r<1?ic(function(l,s){return P1(s)?on(on({},s),{},{velocity:ap(s.velocity,i[l].velocity,r),from:ap(s.from,i[l].from,r)}):s},n):e(t,i,r-1)};const voe=(function(e,t,n,r,i){var l=Vie(e,t),s=l.reduce(function(S,E){return on(on({},S),{},N1({},E,[e[E],t[E]]))},{}),c=l.reduce(function(S,E){return on(on({},S),{},N1({},E,{from:e[E],velocity:0,to:t[E]}))},{}),f=-1,d,m,p=function(){return null},y=function(){return ic(function(E,T){return T.from},c)},x=function(){return!Object.values(c).filter(P1).length},O=function(E){d||(d=E);var T=E-d,A=T/n.dt;c=moe(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=ic(function(j,N){return ap.apply(void 0,zP(N).concat([n(T)]))},s);if(i(on(on(on({},e),t),A)),T<1)f=requestAnimationFrame(p);else{var M=ic(function(j,N){return ap.apply(void 0,zP(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 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)}var goe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function yoe(e,t){if(e==null)return{};var n=boe(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 boe(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 Vx(e){return Ooe(e)||Soe(e)||woe(e)||xoe()}function xoe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
353
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function woe(e,t){if(e){if(typeof e=="string")return D1(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 D1(e,t)}}function Soe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ooe(e){if(Array.isArray(e))return D1(e)}function D1(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 qP(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?qP(Object(n),!0).forEach(function(r){Ju(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ju(e,t,n){return t=pz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Eoe(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,pz(r.key),r)}}function Aoe(e,t,n){return t&&Eoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pz(e){var t=Toe(e,"string");return us(t)==="symbol"?t:String(t)}function Toe(e,t){if(us(e)!=="object"||e===null)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(t==="string"?String:Number)(e)}function joe(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 Coe(e){var t=Moe();return function(){var r=ip(e),i;if(t){var l=ip(this).constructor;i=Reflect.construct(r,arguments,l)}else i=r.apply(this,arguments);return $1(this,i)}}function $1(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 L1(e)}function L1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Moe(){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 ip(e){return ip=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ip(e)}var Ua=(function(e){joe(n,e);var t=Coe(n);function n(r,i){var l;_oe(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(L1(l)),l.changeStyle=l.changeStyle.bind(L1(l)),!c||x<=0)return l.state={style:{}},typeof y=="function"&&(l.state={style:m}),$1(l);if(p&&p.length)l.state={style:p[0].style};else if(d){if(typeof y=="function")return l.state={style:d},$1(l);l.state={style:f?Ju({},f,d):d}}else l.state={style:{}};return l}return Aoe(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?Ju({},f,m):m};this.state&&y&&(f&&y[f]!==m||!f&&y!==m)&&this.setState(x);return}if(!($ie(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?Ju({},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=voe(s,c,ioe(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(Vx(w),[l.runJSAnimation.bind(l,{from:P.style,to:j,duration:T,easing:M}),T]);var Y=$P(L,T,M),z=_r(_r(_r({},P.style),j),{},{transition:Y});return[].concat(Vx(w),[z,T,R]).filter(Yie)};return this.manager.start([f].concat(Vx(s.reduce(x,[m,Math.max(y,c)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Hie());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?Ju({},c,f):f,S=$P(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=yoe(i,goe),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:et.oneOfType([et.object,et.string]),to:et.oneOfType([et.object,et.string]),attributeName:et.string,duration:et.number,begin:et.number,easing:et.oneOfType([et.string,et.func]),steps:et.arrayOf(et.shape({duration:et.number.isRequired,style:et.object.isRequired,easing:et.oneOfType([et.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),et.func]),properties:et.arrayOf("string"),onAnimationEnd:et.func})),children:et.oneOfType([et.node,et.func]),isActive:et.bool,canBegin:et.bool,onAnimationEnd:et.func,shouldReAnimate:et.bool,onAnimationStart:et.func,onAnimationReStart:et.func};function Ic(e){"@babel/helpers - typeof";return Ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ic(e)}function op(){return op=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},op.apply(this,arguments)}function Noe(e,t){return koe(e)||Doe(e,t)||Poe(e,t)||Roe()}function Roe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
354
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Poe(e,t){if(e){if(typeof e=="string")return UP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UP(e,t)}}function UP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Doe(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 koe(e){if(Array.isArray(e))return e}function HP(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 FP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HP(Object(n),!0).forEach(function(r){$oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $oe(e,t,n){return t=Loe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Loe(e){var t=Ioe(e,"string");return Ic(t)=="symbol"?t:t+""}function Ioe(e,t){if(Ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var GP=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,`,
|
|
355
|
+
`).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,`,
|
|
356
|
+
`).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,`,
|
|
357
|
+
`).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,`
|
|
358
|
+
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+f*O,",").concat(n,`
|
|
359
|
+
L `).concat(t+r-f*O,",").concat(n,`
|
|
360
|
+
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*O,`
|
|
361
|
+
L `).concat(t+r,",").concat(n+i-c*O,`
|
|
362
|
+
A `).concat(O,",").concat(O,",0,0,").concat(d,",").concat(t+r-f*O,",").concat(n+i,`
|
|
363
|
+
L `).concat(t+f*O,",").concat(n+i,`
|
|
364
|
+
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},zoe=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},Boe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},WO=function(t){var n=FP(FP({},Boe),t),r=_.useRef(),i=_.useState(-1),l=Noe(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",op({},He(n,!0),{className:A,d:GP(R,P,j,N,y),ref:r})))}):I.createElement("path",op({},He(n,!0),{className:A,d:GP(f,d,m,p,y)}))};function I1(){return I1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I1.apply(this,arguments)}var KO=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",I1({},He(t,!1),jh(t),{className:s,cx:n,cy:r,r:i})):null};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)}var qoe=["x","y","top","left","width","height","className"];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 VP(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 Uoe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VP(Object(n),!0).forEach(function(r){Hoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hoe(e,t,n){return t=Foe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Foe(e){var t=Goe(e,"string");return zc(t)=="symbol"?t:t+""}function Goe(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)}function Voe(e,t){if(e==null)return{};var n=Yoe(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 Yoe(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 Woe=function(t,n,r,i,l,s){return"M".concat(t,",").concat(l,"v").concat(i,"M").concat(s,",").concat(n,"h").concat(r)},Koe=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=Voe(t,qoe),S=Uoe({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",z1({},He(S,!0),{className:Fe("recharts-cross",O),d:Woe(r,l,p,x,c,d)}))},Yx,YP;function Xoe(){if(YP)return Yx;YP=1;var e=D3(),t=e(Object.getPrototypeOf,Object);return Yx=t,Yx}var Wx,WP;function Qoe(){if(WP)return Wx;WP=1;var e=Ha(),t=Xoe(),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 Wx=d,Wx}var Zoe=Qoe();const Joe=ut(Zoe);var Kx,KP;function ele(){if(KP)return Kx;KP=1;var e=Ha(),t=Fa(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return Kx=r,Kx}var tle=ele();const nle=ut(tle);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 lp(){return lp=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},lp.apply(this,arguments)}function rle(e,t){return lle(e)||ole(e,t)||ile(e,t)||ale()}function ale(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
365
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ile(e,t){if(e){if(typeof e=="string")return XP(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 XP(e,t)}}function XP(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 ole(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 lle(e){if(Array.isArray(e))return e}function QP(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 ZP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QP(Object(n),!0).forEach(function(r){sle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function sle(e,t,n){return t=ule(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ule(e){var t=cle(e,"string");return Bc(t)=="symbol"?t:t+""}function cle(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)}var JP=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},fle={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},dle=function(t){var n=ZP(ZP({},fle),t),r=_.useRef(),i=_.useState(-1),l=rle(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",lp({},He(n,!0),{className:T,d:JP(R,P,M,j,N),ref:r})))}):I.createElement("g",null,I.createElement("path",lp({},He(n,!0),{className:T,d:JP(f,d,m,p,y)})))},hle=["option","shapeType","propTransformer","activeClassName","isActive"];function qc(e){"@babel/helpers - typeof";return qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qc(e)}function ple(e,t){if(e==null)return{};var n=mle(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 mle(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 eD(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?eD(Object(n),!0).forEach(function(r){vle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vle(e,t,n){return t=gle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gle(e){var t=yle(e,"string");return qc(t)=="symbol"?t:t+""}function yle(e,t){if(qc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ble(e,t){return sp(sp({},t),e)}function xle(e,t){return e==="symbols"}function tD(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return I.createElement(WO,n);case"trapezoid":return I.createElement(dle,n);case"sector":return I.createElement(lz,n);case"symbols":if(xle(t))return I.createElement(hO,n);break;default:return null}}function wle(e){return _.isValidElement(e)?e.props:e}function Sle(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?ble:r,l=e.activeClassName,s=l===void 0?"recharts-active-shape":l,c=e.isActive,f=ple(e,hle),d;if(_.isValidElement(t))d=_.cloneElement(t,sp(sp({},f),wle(t)));else if($e(t))d=t(f);else if(Joe(t)&&!nle(t)){var m=i(t,f);d=I.createElement(tD,{shapeType:n,elementProps:m})}else{var p=f;d=I.createElement(tD,{shapeType:n,elementProps:p})}return c?I.createElement(Ct,{className:s},d):d}function wm(e,t){return t!=null&&"trapezoids"in e.props}function Sm(e,t){return t!=null&&"sectors"in e.props}function Uc(e,t){return t!=null&&"points"in e.props}function Ole(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 _le(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function Ele(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function Ale(e,t){var n;return wm(e,t)?n=Ole:Sm(e,t)?n=_le:Uc(e,t)&&(n=Ele),n}function Tle(e,t){var n;return wm(e,t)?n="trapezoids":Sm(e,t)?n="sectors":Uc(e,t)&&(n="points"),n}function jle(e,t){if(wm(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(Sm(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 Uc(e,t)?t.payload:{}}function Cle(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Tle(n,t),l=jle(n,t),s=r.filter(function(f,d){var m=ym(l,f),p=n.props[i].filter(function(O){var w=Ale(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 Xx,nD;function Mle(){if(nD)return Xx;nD=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 Xx=n,Xx}var Qx,rD;function mz(){if(rD)return Qx;rD=1;var e=X3(),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 Qx=r,Qx}var Zx,aD;function Nle(){if(aD)return Zx;aD=1;var e=Mle(),t=um(),n=mz();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 Zx=r,Zx}var Jx,iD;function Rle(){if(iD)return Jx;iD=1;var e=Nle(),t=e();return Jx=t,Jx}var Ple=Rle();const up=ut(Ple);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 oD(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 lD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oD(Object(n),!0).forEach(function(r){vz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vz(e,t,n){return t=Dle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dle(e){var t=kle(e,"string");return Hc(t)=="symbol"?t:t+""}function kle(e,t){if(Hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var $le=["Webkit","Moz","O","ms"],Lle=function(t,n){var r=t.replace(/(\w)/,function(l){return l.toUpperCase()}),i=$le.reduce(function(l,s){return lD(lD({},l),{},vz({},s+r,n))},{});return i[t]=n,i};function cs(e){"@babel/helpers - typeof";return cs=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},cs(e)}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 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 ew(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){Gn(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 Ile(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,yz(r.key),r)}}function zle(e,t,n){return t&&uD(e.prototype,t),n&&uD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ble(e,t,n){return t=fp(t),qle(e,gz()?Reflect.construct(t,n||[],fp(e).constructor):t.apply(e,n))}function qle(e,t){if(t&&(cs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ule(e)}function Ule(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function gz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(gz=function(){return!!e})()}function fp(e){return fp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fp(e)}function Hle(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 Gn(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=Fle(e,"string");return cs(t)=="symbol"?t:t+""}function Fle(e,t){if(cs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Gle=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=rc().domain(up(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}},cD=function(t){return t.changedTouches&&!!t.changedTouches.length},fs=(function(e){function t(n){var r;return Ile(this,t),r=Ble(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=cD(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 Hle(t,e),zle(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=cD(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=ew(ew({},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(Bh,cp({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,y)-x,y:s+c/2},O),this.getTextOfTick(i)),I.createElement(Bh,cp({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=Lle("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 ew({prevData:l,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:s},l&&l.length?Gle({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(fs,"displayName","Brush");Gn(fs,"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 tw,fD;function Vle(){if(fD)return tw;fD=1;var e=xO();function t(n,r){var i;return e(n,function(l,s,c){return i=r(l,s,c),!i}),!!i}return tw=t,tw}var nw,dD;function Yle(){if(dD)return nw;dD=1;var e=T3(),t=Di(),n=Vle(),r=kn(),i=um();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 nw=l,nw}var Wle=Yle();const Kle=ut(Wle);var na=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},rw,hD;function Xle(){if(hD)return rw;hD=1;var e=G3();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return rw=t,rw}var aw,pD;function Qle(){if(pD)return aw;pD=1;var e=Xle(),t=H3(),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 aw=r,aw}var Zle=Qle();const Jle=ut(Zle);var iw,mD;function ese(){if(mD)return iw;mD=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 iw=e,iw}var ow,vD;function tse(){if(vD)return ow;vD=1;var e=xO();function t(n,r){var i=!0;return e(n,function(l,s,c){return i=!!r(l,s,c),i}),i}return ow=t,ow}var lw,gD;function nse(){if(gD)return lw;gD=1;var e=ese(),t=tse(),n=Di(),r=kn(),i=um();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 lw=l,lw}var rse=nse();const bz=ut(rse);var ase=["x","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 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 yD(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 Wu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yD(Object(n),!0).forEach(function(r){ise(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ise(e,t,n){return t=ose(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ose(e){var t=lse(e,"string");return Fc(t)=="symbol"?t:t+""}function lse(e,t){if(Fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sse(e,t){if(e==null)return{};var n=use(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 use(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function cse(e,t){var n=e.x,r=e.y,i=sse(e,ase),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 Wu(Wu(Wu(Wu(Wu({},t),i),s?{x:s}:{}),f?{y:f}:{}),{},{height:m,width:y,name:t.name,radius:t.radius})}function bD(e){return I.createElement(Sle,q1({shapeType:"rectangle",propTransformer:cse,activeClassName:"recharts-active-bar"},e))}var fse=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)||bK(r);return l?t(r,i):(l||Co(),n)}},dse=["value","background"],xz;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 hse(e,t){if(e==null)return{};var n=pse(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 pse(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 dp(){return dp=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},dp.apply(this,arguments)}function xD(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?xD(Object(n),!0).forEach(function(r){_i(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mse(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,Sz(r.key),r)}}function vse(e,t,n){return t&&wD(e.prototype,t),n&&wD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gse(e,t,n){return t=hp(t),yse(e,wz()?Reflect.construct(t,n||[],hp(e).constructor):t.apply(e,n))}function yse(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 bse(e)}function bse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function wz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(wz=function(){return!!e})()}function hp(e){return hp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},hp(e)}function xse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&U1(e,t)}function U1(e,t){return U1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},U1(e,t)}function _i(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=wse(e,"string");return ds(t)=="symbol"?t:t+""}function wse(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)}var yf=(function(e){function t(){var n;mse(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=gse(this,t,[].concat(i)),_i(n,"state",{isAnimationFinished:!1}),_i(n,"id",ff("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 xse(t,e),vse(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,dp({className:"recharts-bar-rectangle"},Ch(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(bD,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||!ym(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=hse(d,dse);if(!p)return null;var x=Dt(Dt(Dt(Dt(Dt({},y),{},{fill:"#eee"},p),f),Ch(r.props,d,m)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:m,className:"recharts-bar-background-rectangle"});return I.createElement(bD,dp({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,gf);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);xz=yf;_i(yf,"displayName","Bar");_i(yf,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ls.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});_i(yf,"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=zre(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=Yre({numericAxis:M}),R=mr(T,Z3),P=p.map(function(L,Y){var z,H,V,Q,K,k;d?z=Bre(d[m+Y],j):(z=Xn(L,E),Array.isArray(z)||(z=[N,z]));var q=fse(A,xz.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=aP({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=aP({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:[az(n,L)],tooltipPosition:{x:H+Q/2,y:V+K/2}})});return Dt({data:P,layout:O},y)});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 Sse(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,Oz(r.key),r)}}function Ose(e,t,n){return t&&SD(e.prototype,t),n&&SD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function OD(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?OD(Object(n),!0).forEach(function(r){Om(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Om(e,t,n){return t=Oz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oz(e){var t=_se(e,"string");return Gc(t)=="symbol"?t:t+""}function _se(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)}var Ese=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,yf);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(SK);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=Lre(w,l,y),le=W.scale,$=W.realScaleType;le.domain(E).range(P),Ire(le);var F=Vre(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=ep(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),{},Om({},O,X))},{})},_z=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)}},Ase=function(t){var n=t.x1,r=t.y1,i=t.x2,l=t.y2;return _z({x:n,y:r},{x:i,y:l})},Ez=(function(){function e(t){Sse(this,e),this.scale=t}return Ose(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)}}])})();Om(Ez,"EPS",1e-4);var XO=function(t){var n=Object.keys(t).reduce(function(r,i){return Ar(Ar({},r),{},Om({},i,Ez.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 Jle(i,function(f,d){return n[d].apply(f,{bandAware:s,position:c})})},isInRange:function(i){return bz(i,function(l,s){return n[s].isInRange(l)})}})};function Tse(e){return(e%180+180)%180}var jse=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,l=Tse(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)},sw,_D;function Cse(){if(_D)return sw;_D=1;var e=Di(),t=df(),n=lm();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 sw=r,sw}var uw,ED;function Mse(){if(ED)return uw;ED=1;var e=mz();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return uw=t,uw}var cw,AD;function Nse(){if(AD)return cw;AD=1;var e=I3(),t=Di(),n=Mse(),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 cw=i,cw}var fw,TD;function Rse(){if(TD)return fw;TD=1;var e=Cse(),t=Nse(),n=e(t);return fw=n,fw}var Pse=Rse();const Dse=ut(Pse);var kse=e3();const $se=ut(kse);var Lse=$se(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("")}),QO=_.createContext(void 0),ZO=_.createContext(void 0),Az=_.createContext(void 0),Tz=_.createContext({}),jz=_.createContext(void 0),Cz=_.createContext(0),Mz=_.createContext(0),jD=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=Lse(l);return I.createElement(QO.Provider,{value:r},I.createElement(ZO.Provider,{value:i},I.createElement(Tz.Provider,{value:l},I.createElement(Az.Provider,{value:m},I.createElement(jz.Provider,{value:s},I.createElement(Cz.Provider,{value:d},I.createElement(Mz.Provider,{value:f},c)))))))},Ise=function(){return _.useContext(jz)},Nz=function(t){var n=_.useContext(QO);n==null&&Co();var r=n[t];return r==null&&Co(),r},zse=function(){var t=_.useContext(QO);return Oi(t)},Bse=function(){var t=_.useContext(ZO),n=Dse(t,function(r){return bz(r.domain,Number.isFinite)});return n||Oi(t)},Rz=function(t){var n=_.useContext(ZO);n==null&&Co();var r=n[t];return r==null&&Co(),r},qse=function(){var t=_.useContext(Az);return t},Use=function(){return _.useContext(Tz)},JO=function(){return _.useContext(Mz)},e_=function(){return _.useContext(Cz)};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 Hse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fse(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 Gse(e,t,n){return t&&Fse(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Vse(e,t,n){return t=pp(t),Yse(e,Pz()?Reflect.construct(t,n||[],pp(e).constructor):t.apply(e,n))}function Yse(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 Wse(e)}function Wse(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 pp(e){return pp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pp(e)}function Kse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H1(e,t)}function H1(e,t){return H1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},H1(e,t)}function CD(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 MD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?CD(Object(n),!0).forEach(function(r){t_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):CD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function t_(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=Xse(e,"string");return hs(t)=="symbol"?t:t+""}function Xse(e,t){if(hs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qse(e,t){return tue(e)||eue(e,t)||Jse(e,t)||Zse()}function Zse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
366
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jse(e,t){if(e){if(typeof e=="string")return ND(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 ND(e,t)}}function ND(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 eue(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 tue(e){if(Array.isArray(e))return e}function F1(){return F1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},F1.apply(this,arguments)}var nue=function(t,n){var r;return I.isValidElement(t)?r=I.cloneElement(t,n):$e(t)?r=t(n):r=I.createElement("line",F1({},n,{className:"recharts-reference-line-line"})),r},rue=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")&&Kle(j,function(N){return!t.isInRange(N)})?null:j}return null};function aue(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=Ise(),m=Nz(i),p=Rz(l),y=qse();if(!d||!y)return null;Da(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=XO({x:m.scale,y:p.scale}),O=Gt(t),w=Gt(n),S=r&&r.length===2,E=rue(x,O,w,S,y,e.position,m.orientation,p.orientation,e);if(!E)return null;var T=Qse(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=MD(MD({clipPath:L},He(e,!0)),{},{x1:M,y1:j,x2:R,y2:P});return I.createElement(Ct,{className:Fe("recharts-reference-line",c)},nue(s,Y),mn.renderCallByParent(e,Ase({x1:M,y1:j,x2:R,y2:P})))}var n_=(function(e){function t(){return Hse(this,t),Vse(this,t,arguments)}return Kse(t,e),Gse(t,[{key:"render",value:function(){return I.createElement(aue,this.props)}}])})(I.Component);t_(n_,"displayName","ReferenceLine");t_(n_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});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 RD(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 PD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RD(Object(n),!0).forEach(function(r){_m(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oue(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 lue(e,t,n){return t&&oue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sue(e,t,n){return t=mp(t),uue(e,kz()?Reflect.construct(t,n||[],mp(e).constructor):t.apply(e,n))}function uue(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 cue(e)}function cue(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 mp(e){return mp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},mp(e)}function fue(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=due(e,"string");return ps(t)=="symbol"?t:t+""}function due(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 hue=function(t){var n=t.x,r=t.y,i=t.xAxis,l=t.yAxis,s=XO({x:i.scale,y:l.scale}),c=s.apply({x:n,y:r},{bandAware:!0});return na(t,"discard")&&!s.isInRange(c)?null:c},Em=(function(e){function t(){return iue(this,t),sue(this,t,arguments)}return fue(t,e),lue(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=hue(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=PD(PD({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);_m(Em,"displayName","ReferenceDot");_m(Em,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});_m(Em,"renderDot",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):$e(e)?n=e(t):n=I.createElement(KO,G1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function Y1(){return Y1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Y1.apply(this,arguments)}function 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 DD(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 kD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?DD(Object(n),!0).forEach(function(r){Am(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mue(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,Iz(r.key),r)}}function vue(e,t,n){return t&&mue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gue(e,t,n){return t=vp(t),yue(e,Lz()?Reflect.construct(t,n||[],vp(e).constructor):t.apply(e,n))}function yue(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 bue(e)}function bue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Lz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lz=function(){return!!e})()}function vp(e){return vp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vp(e)}function xue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&W1(e,t)}function W1(e,t){return W1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},W1(e,t)}function Am(e,t,n){return t=Iz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Iz(e){var t=wue(e,"string");return ms(t)=="symbol"?t:t+""}function wue(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 Sue=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=XO({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:_z(x,O)},Tm=(function(e){function t(){return pue(this,t),gue(this,t,arguments)}return xue(t,e),vue(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=Sue(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,kD(kD({clipPath:E},He(this.props,!0)),S)),mn.renderCallByParent(this.props,S))}}])})(I.Component);Am(Tm,"displayName","ReferenceArea");Am(Tm,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Am(Tm,"renderRect",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):$e(e)?n=e(t):n=I.createElement(WO,Y1({},t,{className:"recharts-reference-area-rect"})),n});function zz(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 Oue(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return jse(r,n)}function _ue(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 gp(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 Eue(e,t){return zz(e,t+1)}function Aue(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:zz(r,d)};var w=f,S,E=function(){return S===void 0&&(S=n(O,w)),S},T=O.coordinate,A=f===0||gp(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 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 $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 hn(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){Tue(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 Tue(e,t,n){return t=jue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jue(e){var t=Cue(e,"string");return Vc(t)=="symbol"?t:t+""}function Cue(e,t){if(Vc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Mue(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=gp(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 Nue(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=gp(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=gp(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 r_(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)||Ls.isSsr)return Eue(i,typeof f=="number"&&ye(f)?f:0);var y=[],x=c==="top"||c==="bottom"?"width":"height",O=m&&x==="width"?nc(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"?Oue(nc(j,{fontSize:t,letterSpacing:n}),O,p):nc(j,{fontSize:t,letterSpacing:n})[x]},S=i.length>=2?Mr(i[1].coordinate-i[0].coordinate):1,E=_ue(l,S,x);return f==="equidistantPreserveStart"?Aue(S,E,w,i,s):(f==="preserveStart"||f==="preserveStartEnd"?y=Nue(S,E,w,i,s,f==="preserveStartEnd"):y=Mue(S,E,w,i,s),y.filter(function(T){return T.isShow}))}var Rue=["viewBox"],Pue=["viewBox"],Due=["ticks"];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 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 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 Ut(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){a_(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 dw(e,t){if(e==null)return{};var n=kue(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 kue(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 $ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ID(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,qz(r.key),r)}}function Lue(e,t,n){return t&&ID(e.prototype,t),n&&ID(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Iue(e,t,n){return t=yp(t),zue(e,Bz()?Reflect.construct(t,n||[],yp(e).constructor):t.apply(e,n))}function zue(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 Bue(e)}function Bue(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 yp(e){return yp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},yp(e)}function que(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 a_(e,t,n){return t=qz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qz(e){var t=Uue(e,"string");return vs(t)=="symbol"?t:t+""}function Uue(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 qs=(function(e){function t(n){var r;return $ue(this,t),r=Iue(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return que(t,e),Lue(t,[{key:"shouldComponentUpdate",value:function(r,i){var l=r.viewBox,s=dw(r,Rue),c=this.props,f=c.viewBox,d=dw(c,Pue);return!Yl(l,f)||!Yl(s,d)||!Yl(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",Bl({},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=r_(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,Bl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(M.value,"-").concat(M.coordinate,"-").concat(M.tickCoord)},Ch(s.props,M,j)),f&&I.createElement("line",Bl({},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=dw(p,Due),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(Bh,Bl({},i,{className:"recharts-cartesian-axis-tick-value"}),l),s}}])})(_.Component);a_(qs,"displayName","CartesianAxis");a_(qs,"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 Hue=["x1","y1","x2","y2","key"],Fue=["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 zD(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?zD(Object(n),!0).forEach(function(r){Gue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gue(e,t,n){return t=Vue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vue(e){var t=Yue(e,"string");return Mo(t)=="symbol"?t:t+""}function Yue(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 BD(e,t){if(e==null)return{};var n=Wue(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 Wue(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 Kue=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 Uz(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=BD(t,Hue),d=He(f,!1);d.offset;var m=BD(d,Fue);n=I.createElement("line",yo({},m,{x1:r,y1:i,x2:l,y2:s,fill:"none",key:c}))}return n}function Xue(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 Uz(i,d)});return I.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function Que(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 Uz(i,d)});return I.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Zue(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 Jue(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 ece=function(t,n){var r=t.xAxis,i=t.width,l=t.height,s=t.offset;return nz(r_(vn(vn(vn({},qs.defaultProps),r),{},{ticks:Na(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.left,s.left+s.width,n)},tce=function(t,n){var r=t.yAxis,i=t.width,l=t.height,s=t.offset;return nz(r_(vn(vn(vn({},qs.defaultProps),r),{},{ticks:Na(r,!0),viewBox:{x:0,y:0,width:i,height:l}})),s.top,s.top+s.height,n)},$l={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function Hz(e){var t,n,r,i,l,s,c=JO(),f=e_(),d=Use(),m=vn(vn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:$l.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:$l.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:$l.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:$l.horizontalFill,vertical:(l=e.vertical)!==null&&l!==void 0?l:$l.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:$l.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=zse(),A=Bse();if(!ye(x)||x<=0||!ye(O)||O<=0||!ye(p)||p!==+p||!ye(y)||y!==+y)return null;var M=m.verticalCoordinatesGenerator||ece,j=m.horizontalCoordinatesGenerator||tce,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(Kue,{fill:m.fill,fillOpacity:m.fillOpacity,x:m.x,y:m.y,width:m.width,height:m.height,ry:m.ry}),I.createElement(Xue,yo({},m,{offset:d,horizontalPoints:N,xAxis:T,yAxis:A})),I.createElement(Que,yo({},m,{offset:d,verticalPoints:R,xAxis:T,yAxis:A})),I.createElement(Zue,yo({},m,{horizontalPoints:N})),I.createElement(Jue,yo({},m,{verticalPoints:R})))}Hz.displayName="CartesianGrid";var nce=["type","layout","connectNulls","ref"],rce=["key"];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 qD(e,t){if(e==null)return{};var n=ace(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 ace(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 oc(){return oc=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},oc.apply(this,arguments)}function UD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(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?UD(Object(n),!0).forEach(function(r){Tr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ll(e){return sce(e)||lce(e)||oce(e)||ice()}function ice(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
367
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function oce(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 lce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sce(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 uce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function HD(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,Gz(r.key),r)}}function cce(e,t,n){return t&&HD(e.prototype,t),n&&HD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fce(e,t,n){return t=bp(t),dce(e,Fz()?Reflect.construct(t,n||[],bp(e).constructor):t.apply(e,n))}function dce(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 hce(e)}function hce(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 bp(e){return bp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},bp(e)}function pce(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 Tr(e,t,n){return t=Gz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gz(e){var t=mce(e,"string");return gs(t)=="symbol"?t:t+""}function mce(e,t){if(gs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(gs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Xr=(function(e){function t(){var n;uce(this,t);for(var r=arguments.length,i=new Array(r),l=0;l<r;l++)i[l]=arguments[l];return n=fce(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(Ll(f.slice(0,O)),[p-w]);break}var S=x.length%2===0?[0,y]:[y];return[].concat(Ll(t.repeat(f,m)),Ll(x),S).map(function(E){return"".concat(E,"px")}).join(", ")}),Tr(n,"id",ff("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 pce(t,e),cce(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,gf);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,oc({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=qD(c,nce),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(j1,oc({},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||!ym(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=NK(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(Ll(r),[0]):r,s=[],c=0;c<i;++c)s=[].concat(Ll(s),Ll(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=qD(i,rce),f=Fe("recharts-line-dot",typeof r!="boolean"?r.className:"");l=I.createElement(KO,oc({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:!Ls.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:rP({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:rP({axis:r,ticks:l,bandSize:c,entry:y,index:x}),value:O,payload:y}});return Fn({points:p,layout:m},d)});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 vce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gce(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 yce(e,t,n){return t&&gce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bce(e,t,n){return t=xp(t),xce(e,Vz()?Reflect.construct(t,n||[],xp(e).constructor):t.apply(e,n))}function xce(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 wce(e)}function wce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vz=function(){return!!e})()}function xp(e){return xp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xp(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&&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 Yz(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=Oce(e,"string");return ys(t)=="symbol"?t:t+""}function Oce(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)}function _ce(e){var t=e.xAxisId,n=JO(),r=e_(),i=Nz(t);return i==null?null:_.createElement(qs,J1({},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 jm=(function(e){function t(){return vce(this,t),bce(this,t,arguments)}return Sce(t,e),yce(t,[{key:"render",value:function(){return _.createElement(_ce,this.props)}}])})(_.Component);Yz(jm,"displayName","XAxis");Yz(jm,"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 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 Ece(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ace(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,Qz(r.key),r)}}function Tce(e,t,n){return t&&Ace(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jce(e,t,n){return t=wp(t),Cce(e,Kz()?Reflect.construct(t,n||[],wp(e).constructor):t.apply(e,n))}function Cce(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 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 Kz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Kz=function(){return!!e})()}function wp(e){return wp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wp(e)}function Nce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&eS(e,t)}function eS(e,t){return eS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},eS(e,t)}function Xz(e,t,n){return t=Qz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Qz(e){var t=Rce(e,"string");return bs(t)=="symbol"?t:t+""}function Rce(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 String(e)}function tS(){return tS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tS.apply(this,arguments)}var Pce=function(t){var n=t.yAxisId,r=JO(),i=e_(),l=Rz(n);return l==null?null:_.createElement(qs,tS({},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)}}))},Cm=(function(e){function t(){return Ece(this,t),jce(this,t,arguments)}return Nce(t,e),Tce(t,[{key:"render",value:function(){return _.createElement(Pce,this.props)}}])})(_.Component);Xz(Cm,"displayName","YAxis");Xz(Cm,"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 FD(e){return Lce(e)||$ce(e)||kce(e)||Dce()}function Dce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
368
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kce(e,t){if(e){if(typeof e=="string")return nS(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 nS(e,t)}}function $ce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lce(e){if(Array.isArray(e))return nS(e)}function nS(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 rS=function(t,n,r,i,l){var s=mr(t,n_),c=mr(t,Em),f=[].concat(FD(s),FD(c)),d=mr(t,Tm),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},hw={exports:{}},GD;function Ice(){return GD||(GD=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})(hw)),hw.exports}var zce=Ice();const Bce=ut(zce);var pw=new Bce,mw="recharts.syncMouseEvents";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 qce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uce(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 Hce(e,t,n){return t&&Uce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vw(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=Fce(e,"string");return Yc(t)=="symbol"?t:t+""}function Fce(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 String(e)}var Gce=(function(){function e(){qce(this,e),vw(this,"activeIndex",0),vw(this,"coordinateList",[]),vw(this,"layout","horizontal")}return Hce(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 Vce(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 Yce(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 Jz(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 Wce(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 Jz(t);return[{x:r,y:i},{x:l,y:s}]}function Wc(e){"@babel/helpers - typeof";return Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wc(e)}function VD(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 nh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VD(Object(n),!0).forEach(function(r){Kce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kce(e,t,n){return t=Xce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xce(e){var t=Qce(e,"string");return Wc(t)=="symbol"?t:t+""}function Qce(e,t){if(Wc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zce(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=j1;if(y==="ScatterChart")O=s,w=Koe;else if(y==="BarChart")O=Yce(p,s,f,m),w=WO;else if(p==="radial"){var S=Jz(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=lz}else O={points:Wce(p,s,f)},w=j1;var N=nh(nh(nh(nh({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 Jce=["item"],efe=["children","className","width","height","style","compact","title","desc"];function xs(e){"@babel/helpers - typeof";return xs=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},xs(e)}function ql(){return ql=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},ql.apply(this,arguments)}function YD(e,t){return rfe(e)||nfe(e,t)||t5(e,t)||tfe()}function tfe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
369
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function nfe(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 rfe(e){if(Array.isArray(e))return e}function WD(e,t){if(e==null)return{};var n=afe(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 afe(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 ife(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ofe(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,n5(r.key),r)}}function lfe(e,t,n){return t&&ofe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sfe(e,t,n){return t=Sp(t),ufe(e,e5()?Reflect.construct(t,n||[],Sp(e).constructor):t.apply(e,n))}function ufe(e,t){if(t&&(xs(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cfe(e)}function cfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(e5=function(){return!!e})()}function Sp(e){return Sp=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Sp(e)}function ffe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aS(e,t)}function aS(e,t){return aS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aS(e,t)}function ws(e){return pfe(e)||hfe(e)||t5(e)||dfe()}function dfe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
370
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function t5(e,t){if(e){if(typeof e=="string")return iS(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 iS(e,t)}}function hfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function pfe(e){if(Array.isArray(e))return iS(e)}function iS(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 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 se(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){je(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 je(e,t,n){return t=n5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n5(e){var t=mfe(e,"string");return xs(t)=="symbol"?t:t+""}function mfe(e,t){if(xs(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xs(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vfe={xAxis:["bottom","top"],yAxis:["left","right"]},gfe={width:"100%",height:"100%"},r5={x:0,y:0};function rh(e){return e}var yfe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},bfe=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 r5},Mm=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(ws(c),ws(d)):c},[]);return s.length>0?s:t&&t.length&&ye(i)&&ye(l)?t.slice(i,l+1):[]};function a5(e){return e==="number"?[0,"auto"]:void 0}var oS=function(t,n,r,i){var l=t.graphicalItems,s=t.tooltipAxis,c=Mm(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=Th(x,s.dataKey,i)}else y=p&&p[r]||c[r];return y?[].concat(ws(f),[az(d,y)]):f},[])},XD=function(t,n,r,i){var l=i||{x:t.chartX,y:t.chartY},s=yfe(l,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,m=Nre(s,c,d,f);if(m>=0&&d){var p=d[m]&&d[m].value,y=oS(t,n,m,p),x=bfe(r,c,m,l);return{activeTooltipIndex:m,activeLabel:p,activePayload:y,activeCoordinate:x}}return null},xfe=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=tz(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=Mm(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;Vce(E.domain,M,T)&&(H=O1(E.domain,null,M),x&&(T==="number"||N!=="auto")&&(Q=ac(Y,A,"category")));var K=a5(T);if(!H||H.length===0){var k,q=(k=E.domain)!==null&&k!==void 0?k:K;if(A){if(H=ac(Y,A,T),T==="category"&&x){var B=wK(H);j&&B?(V=H,H=up(0,z)):j||(H=lP(q,H,w).reduce(function(F,X){return F.indexOf(X)>=0?F:[].concat(ws(F),[X])},[]))}else if(T==="category")j?H=H.filter(function(F){return F!==""&&!ze(F)}):H=lP(q,H,w).reduce(function(F,X){return F.indexOf(X)>=0||X===""||ze(X)?F:[].concat(ws(F),[X])},[]);else if(T==="number"){var W=$re(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=ac(Y,A,"category"))}else x?H=up(0,z):c&&c[L]&&c[L].hasStack&&T==="number"?H=y==="expand"?[0,1]:rz(c[L].stackGroups,f,d):H=ez(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=rS(p,H,L,l,R),q&&(H=O1(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})))},{})},wfe=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=Mm(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),x=y.length,O=tz(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=a5("number");if(!S[A]){w++;var j;return O?j=up(0,x):c&&c[A]&&c[A].hasStack?(j=rz(c[A].stackGroups,f,d),j=rS(p,j,A,l)):(j=O1(M,ez(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=rS(p,j,A,l)),se(se({},S),{},je({},A,se(se({axisType:l},i.defaultProps),{},{hide:!0,orientation:pr(vfe,"".concat(l,".").concat(w%2),null),domain:j,originalDomain:M,isCategorical:O,layout:m})))}return S},{})},Sfe=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=xfe(t,{axes:y,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):s&&s.length&&(x=wfe(t,{Axis:l,graphicalItems:s,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},Ofe=function(t){var n=Oi(t),r=Na(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:wO(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:ep(n,r)}},QD=function(t){var n=t.children,r=t.defaultShowTooltip,i=Vn(n,fs),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}},_fe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Pa(n&&n.type);return r&&r.indexOf("Bar")>=0})},ZD=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"}},Efe=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,fs),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||fs.defaultProps.height),O&&n&&(E=Dre(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)})},Afe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Tfe=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=ZD(Y),K=Q.numericAxisName,k=Q.cateAxisName,q=_fe(A),B=[];return A.forEach(function(W,le){var $=Mm(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&&Wre(W,M[de].stackGroups),ne=Pa(W.type).indexOf("Bar")>=0,Pe=ep(ie,pe),Ee=[],Qe=q&&Rre({barSize:L,stackGroups:M,totalSize:Afe(he,k)});if(ne){var Ve,at,un=ze(ae)?V:ae,ht=(Ve=(at=ep(ie,pe,!0))!==null&&at!==void 0?at:un)!==null&&Ve!==void 0?Ve:0;Ee=Pre({barGap:z,barCategoryGap:H,bandSize:ht!==Pe?ht:Pe,sizeList:Qe[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:DK(W,E.children),item:W})}),B},x=function(E,T){var A=E.props,M=E.dataStartIndex,j=E.dataEndIndex,N=E.updateId;if(!wM({props:A}))return null;var R=A.children,P=A.layout,L=A.stackOffset,Y=A.data,z=A.reverseStackOrder,H=ZD(P),V=H.numericAxisName,Q=H.cateAxisName,K=mr(R,r),k=Gre(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,Sfe(A,se(se({},X),{},{graphicalItems:K,stackGroups:X.axisType===V&&k,dataStartIndex:M,dataEndIndex:j}))))},{}),B=Efe(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=Ofe(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 ife(this,E),j=sfe(this,E,[T]),je(j,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),je(j,"accessibilityManager",new Gce),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=PK(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&&pw.emit(mw,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=oS(j.state,j.props.data,K),de=B[K]?{x:P==="horizontal"?B[K].coordinate:$,y:P==="horizontal"?F:B[K].coordinate}:r5;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(Zce,{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=Z4({children:P,formattedGraphicalItems:N,legendWidth:H,legendContent:d});if(!V)return null;var Q=V.item,K=WD(V,Jce);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:Zd(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:YO(R.item),strokeWidth:2,stroke:"#fff",payload:P.payload,value:P.value},He(K,!1)),jh(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:Zd(j.handleItemMouseEnter,N.props.onClick)}:Y!=="axis"&&(he={onMouseLeave:Zd(j.handleItemMouseLeave,N.props.onMouseLeave),onMouseEnter:Zd(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=Th(W,Pe,K),ne=le&&$&&Th($,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(ws(j.renderActivePoints({item:L,activePoint:ve,basePoint:ne,childIndex:Q,isRange:le})))}else{var Qe,Ve=(Qe=j.getItemByXY(j.state.activeCoordinate))!==null&&Qe!==void 0?Qe:{graphicalItem:ie},at=Ve.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:rh,once:!0},ReferenceArea:{handler:j.renderReferenceElement},ReferenceLine:{handler:rh},ReferenceDot:{handler:j.renderReferenceElement},XAxis:{handler:rh},YAxis:{handler:rh},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:ff("recharts"),"-clip"),j.throttleTriggeredAfterMouseMove=Q3(j.triggeredAfterMouseMove,(M=T.throttleDelay)!==null&&M!==void 0?M:1e3/60),j.state={},j}return ffe(E,S),lfe(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=oS(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){Gw([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=wJ(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=XD(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 cP({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=jh(this.props,this.handleOuterEvent);return se(se({},R),N)}},{key:"addListener",value:function(){pw.on(mw,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){pw.removeListener(mw,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=YD(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=YD(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 zoe(A,B)});if(Q)return{graphicalItem:L,payload:Q}}else if(V==="RadialBar"){var K=(Y.data||[]).find(function(B){return cP(A,B)});if(K)return{graphicalItem:L,payload:K}}else if(wm(L,N)||Sm(L,N)||Uc(L,N)){var k=Cle({graphicalItem:L,activeTooltipItem:N,itemData:H.data}),q=H.activeIndex===void 0?k:H.activeIndex;return{graphicalItem:se(se({},L),{},{childIndex:q}),payload:Uc(L,N)?H.data[k]:L.props.data[k]}}}return null}},{key:"render",value:function(){var A=this;if(!wM(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=WD(M,efe),Q=He(V,!1);if(Y)return I.createElement(jD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement(Yw,ql({},Q,{width:R,height:P,title:z,desc:H}),this.renderClipPath(),OM(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(jD,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement("div",ql({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(Yw,ql({},Q,{width:R,height:P,title:z,desc:H,style:gfe}),this.renderClipPath(),OM(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=QD(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||!Yl(L,E.prevMargin)){var V=QD(S),Q={chartX:E.chartX,chartY:E.chartY,isTooltipActive:E.isTooltipActive},K=se(se({},XD(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(!Gw(M,E.prevChildren)){var q,B,W,le,$=Vn(M,fs),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(KO,E),I.createElement(Ct,{className:"recharts-active-dot",key:T},A)});var w=_.forwardRef(function(E,T){return I.createElement(O,ql({},E,{ref:T}))});return w.displayName=O.displayName,w},jfe=Tfe({chartName:"LineChart",GraphicalChild:Xr,axisComponents:[{axisType:"xAxis",AxisComp:jm},{axisType:"yAxis",AxisComp:Cm}],formatAxisMap:Ese});function Cfe({data:e}){const t=Mfe(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(pJ,{height:400,width:"100%",children:v.jsxs(jfe,{data:t,children:[v.jsx(Hz,{className:"stroke-muted",strokeDasharray:"3 3"}),v.jsx(jm,{className:"text-xs",dataKey:"timestamp",tickFormatter:n=>dC(new Date(n),"HH:mm")}),v.jsx(Cm,{className:"text-xs"}),v.jsx(Kr,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))"},labelFormatter:n=>dC(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 Mfe(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 i_="Progress",o_=100,[Nfe]=Pk(i_),[Rfe,Pfe]=Nfe(i_),i5=_.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:l=Dfe,...s}=e;(i||i===0)&&!JD(i)&&console.error(kfe(`${i}`,"Progress"));const c=JD(i)?i:o_;r!==null&&!ek(r,c)&&console.error($fe(`${r}`,"Progress"));const f=ek(r,c)?r:null,d=Op(f)?l(f,c):void 0;return v.jsx(Rfe,{scope:n,value:f,max:c,children:v.jsx(Ro.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":Op(f)?f:void 0,"aria-valuetext":d,role:"progressbar","data-state":s5(f,c),"data-value":f??void 0,"data-max":c,...s,ref:t})})});i5.displayName=i_;var o5="ProgressIndicator",l5=_.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=Pfe(o5,n);return v.jsx(Ro.div,{"data-state":s5(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});l5.displayName=o5;function Dfe(e,t){return`${Math.round(e/t*100)}%`}function s5(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Op(e){return typeof e=="number"}function JD(e){return Op(e)&&!isNaN(e)&&e>0}function ek(e,t){return Op(e)&&!isNaN(e)&&e<=t&&e>=0}function kfe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${o_}\`.`}function $fe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
371
|
+
- a positive number
|
|
372
|
+
- less than the value passed to \`max\` (or ${o_} if no \`max\` prop is set)
|
|
373
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
374
|
+
|
|
375
|
+
Defaulting to \`null\`.`}var Lfe=i5,Ife=l5;function zfe({className:e,value:t,...n}){return v.jsx(Lfe,{className:me("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),"data-slot":"progress",...n,children:v.jsx(Ife,{className:"h-full w-full flex-1 bg-primary transition-all","data-slot":"progress-indicator",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Bfe({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(zfe,{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 qfe(){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:Ul},{title:"Delivery Rate",value:`${O.toFixed(1)}%`,description:`${d.toLocaleString()} delivered`,icon:U6},{title:"Open Rate",value:`${w.toFixed(1)}%`,description:`${y.toLocaleString()} opened`,icon:vS},{title:"Click Rate",value:`${S.toFixed(1)}%`,description:`${x.toLocaleString()} clicked`,icon:F6}];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(zw,{onValueChange:t,value:e,children:[v.jsx(qw,{className:"w-[180px]",children:v.jsx(Bw,{})}),v.jsxs(Uw,{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(Bfe,{quota:n.quota}),v.jsx(Cfe,{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 Ufe(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 Hfe=e=>{switch(e){case"success":return Vfe;case"info":return Wfe;case"warning":return Yfe;case"error":return Kfe;default:return null}},Ffe=Array(12).fill(0),Gfe=({visible:e,className:t})=>I.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},I.createElement("div",{className:"sonner-spinner"},Ffe.map((n,r)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Vfe=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"})),Yfe=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"})),Wfe=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"})),Kfe=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"})),Xfe=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"})),Qfe=()=>{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 lS=1;class Zfe{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:lS++,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(ede(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)||lS++;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 Zfe,Jfe=(e,t)=>{const n=(t==null?void 0:t.id)||lS++;return Rn.addToast({title:e,...t,id:n}),n},ede=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",tde=Jfe,nde=()=>Rn.toasts,rde=()=>Rn.getActiveToasts(),Pn=Object.assign(tde,{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:nde,getToasts:rde});Ufe("[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 ah(e){return e.label!==void 0}const ade=3,ide="24px",ode="16px",tk=4e3,lde=356,sde=14,ude=45,cde=200;function Wr(...e){return e.filter(Boolean).join(" ")}function fde(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const dde=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),[Qe,Ve]=I.useState(0),at=I.useRef(p.duration||H||tk),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]),bf=I.useMemo(()=>{var Ce;return(Ce=p.closeButton)!=null?Ce:N},[p.closeButton,N]),zi=I.useMemo(()=>p.duration||H||tk,[p.duration,H]),Us=I.useRef(0),sa=I.useRef(0),xf=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=Qfe(),km=p.invert||m,Hs=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 Ve(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,Ve(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)},cde)},[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(xf.current<Us.current){const fn=new Date().getTime()-Us.current;at.current=at.current-fn}xf.current=new Date().getTime()})():(()=>{at.current!==1/0&&(Us.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(Gfe,{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])||Hfe(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":km,"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":`${Qe}px`,...R,...p.style},onDragEnd:()=>{he(!1),le(null),Ya.current=null},onPointerDown:Ce=>{Ce.button!==2&&(Hs||!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)>=ude||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:fde(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`)}},bf&&!p.jsx&&wt!=="loading"?I.createElement("button",{"aria-label":B,"data-disabled":Hs,"data-close-button":!0,onClick:Hs||!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:Xfe):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&&ah(p.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||P,onClick:Ce=>{ah(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&&ah(p.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||L,onClick:Ce=>{ah(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 nk(){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 hde(e,t){const n={};return[e,t].forEach((r,i)=>{const l=i===1,s=l?"--mobile-offset":"--offset",c=l?ode:ide;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 pde=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=ade,toastOptions:E,dir:T=nk(),gap:A=sde,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(()=>{jk.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"?nk():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":`${lde}px`,"--gap":`${A}px`,...w,...hde(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(dde,{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 u5="AlertDialog",[mde]=Lr(u5,[EL]),Va=EL(),c5=e=>{const{__scopeAlertDialog:t,...n}=e,r=Va(t);return v.jsx(GS,{...r,...n,modal:!0})};c5.displayName=u5;var vde="AlertDialogTrigger",gde=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(TG,{...i,...r,ref:t})});gde.displayName=vde;var yde="AlertDialogPortal",f5=e=>{const{__scopeAlertDialog:t,...n}=e,r=Va(t);return v.jsx(VS,{...r,...n})};f5.displayName=yde;var bde="AlertDialogOverlay",d5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(YS,{...i,...r,ref:t})});d5.displayName=bde;var Xl="AlertDialogContent",[xde,wde]=mde(Xl),Sde=n$("AlertDialogContent"),h5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,l=Va(n),s=_.useRef(null),c=Ke(t,s),f=_.useRef(null);return v.jsx(OG,{contentName:Xl,titleName:p5,docsSlug:"alert-dialog",children:v.jsx(xde,{scope:n,cancelRef:f,children:v.jsxs(WS,{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(Sde,{children:r}),v.jsx(_de,{contentRef:s})]})})})});h5.displayName=Xl;var p5="AlertDialogTitle",m5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(KS,{...i,...r,ref:t})});m5.displayName=p5;var v5="AlertDialogDescription",g5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(XS,{...i,...r,ref:t})});g5.displayName=v5;var Ode="AlertDialogAction",y5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Va(n);return v.jsx(Fp,{...i,...r,ref:t})});y5.displayName=Ode;var b5="AlertDialogCancel",x5=_.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=wde(b5,n),l=Va(n),s=Ke(t,i);return v.jsx(Fp,{...l,...r,ref:s})});x5.displayName=b5;var _de=({contentRef:e})=>{const t=`\`${Xl}\` requires a description for the component to be accessible for screen reader users.
|
|
376
|
+
|
|
377
|
+
You can add a description to the \`${Xl}\` by passing a \`${v5}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
378
|
+
|
|
379
|
+
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 \`${Xl}\`. 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.
|
|
380
|
+
|
|
381
|
+
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},Ede=c5,Ade=f5,Tde=d5,jde=h5,Cde=y5,Mde=x5,Nde=m5,Rde=g5;function rk({...e}){return v.jsx(Ede,{"data-slot":"alert-dialog",...e})}function Pde({...e}){return v.jsx(Ade,{"data-slot":"alert-dialog-portal",...e})}function Dde({className:e,...t}){return v.jsx(Tde,{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 ak({className:e,...t}){return v.jsxs(Pde,{children:[v.jsx(Dde,{}),v.jsx(jde,{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 ik({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 ok({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 lk({className:e,...t}){return v.jsx(Nde,{className:me("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function sk({className:e,...t}){return v.jsx(Rde,{className:me("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function uk({className:e,...t}){return v.jsx(Cde,{className:me(qS(),e),...t})}function ck({className:e,...t}){return v.jsx(Mde,{className:me(qS({variant:"outline"}),e),...t})}var Nm="Collapsible",[kde]=Lr(Nm),[$de,l_]=kde(Nm),w5=_.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:Nm});return v.jsx($de,{scope:n,disabled:l,contentId:dr(),open:f,onOpenToggle:_.useCallback(()=>d(m=>!m),[d]),children:v.jsx(Re.div,{"data-state":u_(f),"data-disabled":l?"":void 0,...c,ref:t})})});w5.displayName=Nm;var S5="CollapsibleTrigger",O5=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=l_(S5,n);return v.jsx(Re.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":u_(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:be(e.onClick,i.onOpenToggle)})});O5.displayName=S5;var s_="CollapsibleContent",_5=_.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=l_(s_,e.__scopeCollapsible);return v.jsx(gr,{present:n||i.open,children:({present:l})=>v.jsx(Lde,{...r,ref:t,present:l})})});_5.displayName=s_;var Lde=_.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...l}=e,s=l_(s_,n),[c,f]=_.useState(r),d=_.useRef(null),m=Ke(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":u_(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 u_(e){return e?"open":"closed"}var Ide=w5;const Rm=Ide,Pm=O5,Dm=_5;function zde({...e}){return v.jsx(GS,{"data-slot":"dialog",...e})}function Bde({...e}){return v.jsx(VS,{"data-slot":"dialog-portal",...e})}function qde({className:e,...t}){return v.jsx(YS,{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 Ude({className:e,children:t,showCloseButton:n=!0,...r}){return v.jsxs(Bde,{"data-slot":"dialog-portal",children:[v.jsx(qde,{}),v.jsxs(WS,{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(Fp,{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(Hl,{}),v.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Hde({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 Fde({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 Gde({className:e,...t}){return v.jsx(KS,{className:me("font-semibold text-lg leading-none",e),"data-slot":"dialog-title",...t})}function Vde({className:e,...t}){return v.jsx(XS,{className:me("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...t})}var Yde="Label",E5=_.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())}}));E5.displayName=Yde;var Wde=E5;function Kde({className:e,...t}){return v.jsx(Wde,{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 Xde(){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 A5="wraps-dns-verification",Qde=1e3*60*60;function T5(){try{const e=localStorage.getItem(A5);return e?JSON.parse(e):{}}catch{return{}}}function _p(e){try{localStorage.setItem(A5,JSON.stringify(e))}catch(t){console.error("Failed to save DNS verification cache:",t)}}function j5(e){return e?Date.now()-e.lastChecked<Qde:!1}async function fk(e,t){var i;console.log("[DNS Verify] verifyTrackingDomain called",{domain:e,expectedTarget:t});const n=T5(),r=`${e}->${t}`;if((i=n.trackingDomain)!=null&&i[r]&&j5(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,_p(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,_p(n),s}}async function dk(e){var r;console.log("[DNS Verify] verifyDmarc called",{domain:e});const t=T5(),n=`_dmarc.${e}`;if((r=t.dmarc)!=null&&r[n]&&j5(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,_p(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,_p(t),l}}function c_({status:e}){const t={SUCCESS:{icon:jp,label:"Verified",variant:"default",className:"bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20"},PENDING:{icon:bw,label:"Pending",variant:"secondary",className:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20"},FAILED:{icon:T6,label:"Failed",variant:"destructive",className:"bg-red-500/10 text-red-700 dark:text-red-400 border-red-500/20"},TEMPORARY_FAILURE:{icon:Nk,label:"Temporary Failure",variant:"secondary",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 border-orange-500/20"},NOT_STARTED:{icon:bw,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 Ss({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(C6,{className:"h-3 w-3"})})}function Zde({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(c_,{status:t.status})]}),t.tokens&&t.tokens.length>0&&v.jsxs(Rm,{onOpenChange:i,open:r,children:[v.jsx(Pm,{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(Jc,{className:"h-4 w-4"}):v.jsx(As,{className:"h-4 w-4"})]})}),v.jsx(Dm,{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(Ss,{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 Jde({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(c_,{status:t.mailFromDomainStatus})]}),v.jsxs(Rm,{onOpenChange:i,open:r,children:[v.jsx(Pm,{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(Jc,{className:"h-4 w-4"}):v.jsx(As,{className:"h-4 w-4"})]})}),v.jsx(Dm,{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(Ss,{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 ehe({identity:e}){const[t,n]=_.useState(null),[r,i]=_.useState(!1),[l,s]=_.useState(!(t!=null&&t.verified));_.useEffect(()=>{e!=null&&e.identityName&&dk(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 dk(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(jp,{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(Rk,{className:`h-4 w-4 ${r?"animate-spin":""}`})})]})]}),v.jsxs(Rm,{onOpenChange:s,open:l,children:[v.jsx(Pm,{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(Jc,{className:"h-4 w-4"}):v.jsx(As,{className:"h-4 w-4"})]})}),v.jsx(Dm,{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(Ss,{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(Ss,{text:`v=DMARC1; p=quarantine; rua=mailto:dmarc@${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]})]})})]})]})}function the({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`;fk(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 fk(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(jp,{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(Rk,{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(gj,{className:"h-4 w-4"})})]})]}),v.jsxs(Rm,{onOpenChange:w,open:O,children:[v.jsx(Pm,{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(Jc,{className:"h-4 w-4"}):v.jsx(As,{className:"h-4 w-4"})]})}),v.jsx(Dm,{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(Ss,{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(Ss,{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(gj,{className:"mr-2 h-4 w-4"}),"Configure Tracking Domain"]})]})}),v.jsx(zde,{onOpenChange:d,open:f,children:v.jsxs(Ude,{children:[v.jsxs(Hde,{children:[v.jsx(Gde,{children:"Update Tracking Domain"}),v.jsx(Vde,{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(Kde,{htmlFor:"domain",children:"Tracking Domain"}),v.jsx(Up,{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(Fde,{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 nhe({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(Vl,{}),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(rk,{onOpenChange:r,open:n,children:v.jsxs(ak,{children:[v.jsxs(ik,{children:[v.jsx(lk,{children:e.sendingOptions.sendingEnabled?"Disable email sending?":"Enable email sending?"}),v.jsx(sk,{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(ok,{children:[v.jsx(ck,{disabled:s,children:"Cancel"}),v.jsx(uk,{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(rk,{onOpenChange:l,open:i,children:v.jsxs(ak,{children:[v.jsxs(ik,{children:[v.jsx(lk,{children:e.reputationOptions.reputationMetricsEnabled?"Disable reputation metrics?":"Enable reputation metrics?"}),v.jsx(sk,{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(ok,{children:[v.jsx(ck,{disabled:s,children:"Cancel"}),v.jsx(uk,{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 rhe(){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 Xde();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(Nk,{className:"h-4 w-4"}),v.jsx(TV,{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(c_,{status:((f=e==null?void 0:e.identity)==null?void 0:f.verificationStatus)||"NOT_STARTED"})]})}),v.jsx(Vl,{}),v.jsx(Zde,{identity:e==null?void 0:e.identity}),v.jsx(Vl,{}),v.jsx(Jde,{identity:e==null?void 0:e.identity}),v.jsx(Vl,{}),v.jsx(ehe,{identity:e==null?void 0:e.identity})]})]}),v.jsx(nhe,{configSet:e==null?void 0:e.configurationSet,onRefresh:s}),v.jsx(the,{configSet:e==null?void 0:e.configurationSet,onRefresh:s,region:e==null?void 0:e.region})]})]})}function ahe({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(sI.Provider,{...r,value:s,children:e})}function ihe({...e}){return v.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function ohe({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 lhe({className:e,...t}){return v.jsx("li",{className:me("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...t})}function she({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 uhe=(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{}},che=_.createContext(void 0),fhe={setTheme:e=>{},themes:[]},dhe=()=>{var e;return(e=_.useContext(che))!=null?e:fhe};_.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:`(${uhe.toString()})(${m})`}})});const hhe=({...e})=>{const{theme:t="system"}=dhe();return v.jsx(pde,{className:"toaster group",icons:{success:v.jsx(jp,{className:"size-4"}),info:v.jsx(P6,{className:"size-4"}),warning:v.jsx(H6,{className:"size-4"}),error:v.jsx($6,{className:"size-4"}),loading:v.jsx(D6,{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 phe(){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(rI,{defaultOpen:!1,children:[v.jsx(_V,{}),v.jsxs(iI,{children:[v.jsxs("header",{className:"sticky top-0 flex shrink-0 items-center gap-2 border-b bg-background p-4",children:[v.jsx(aI,{className:"-ml-1"}),v.jsx(Vl,{className:"mr-2 data-[orientation=vertical]:h-4",orientation:"vertical"}),v.jsx(ihe,{children:v.jsx(ohe,{children:v.jsx(lhe,{children:v.jsx(she,{children:r()})})})})]}),v.jsx("div",{className:"flex flex-1 flex-col gap-6 p-6",children:t?v.jsxs(q8,{children:[v.jsx(Il,{element:v.jsx(z8,{replace:!0,to:"/email"}),path:"/"}),v.jsx(Il,{element:v.jsx(AY,{}),path:"/email"}),v.jsx(Il,{element:v.jsx(IV,{}),path:"/email/:id"}),v.jsx(Il,{element:v.jsx(qfe,{}),path:"/email/metrics"}),v.jsx(Il,{element:v.jsx(rhe,{}),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 mhe(){return v.jsx(ahe,{defaultTheme:"system",storageKey:"console-ui-theme",children:v.jsxs(c6,{children:[v.jsx(phe,{}),v.jsx(hhe,{})]})})}Kq.createRoot(document.getElementById("root")).render(v.jsx(_.StrictMode,{children:v.jsx(mhe,{})}));
|