@wraps.dev/cli 1.5.3 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +6676 -941
- package/dist/cli.js.map +1 -1
- package/dist/console/assets/index-BUM0aT88.js +376 -0
- package/dist/console/assets/index-DrwR3LQV.css +1 -0
- package/dist/console/index.html +2 -2
- package/dist/lambda/event-processor/.bundled +1 -1
- package/dist/lambda/event-processor/index.mjs +1 -1
- package/dist/lambda/sms-event-processor/.bundled +1 -0
- package/dist/lambda/sms-event-processor/index.mjs +1 -0
- package/package.json +3 -1
- package/dist/console/assets/index-B3tw1aZA.js +0 -361
- package/dist/console/assets/index-BXE8qB8y.css +0 -1
|
@@ -0,0 +1,376 @@
|
|
|
1
|
+
function Jq(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 s=Object.getOwnPropertyDescriptor(r,i);s&&Object.defineProperty(e,i,s.get?s:{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 s of i)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var Hd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function gt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ty={exports:{}},Fu={};/**
|
|
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 gT;function e6(){if(gT)return Fu;gT=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,s){var l=null;if(s!==void 0&&(l=""+s),i.key!==void 0&&(l=""+i.key),"key"in i){s={};for(var c in i)c!=="key"&&(s[c]=i[c])}else s=i;return i=s.ref,{$$typeof:e,type:r,key:l,ref:i!==void 0?i:null,props:s}}return Fu.Fragment=t,Fu.jsx=n,Fu.jsxs=n,Fu}var yT;function t6(){return yT||(yT=1,ty.exports=e6()),ty.exports}var m=t6(),ny={exports:{}},Ne={};/**
|
|
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 bT;function n6(){if(bT)return Ne;bT=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"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),g=Symbol.iterator;function x($){return $===null||typeof $!="object"?null:($=g&&$[g]||$["@@iterator"],typeof $=="function"?$:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function j($,F,X){this.props=$,this.context=F,this.refs=w,this.updater=X||_}j.prototype.isReactComponent={},j.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")},j.prototype.forceUpdate=function($){this.updater.enqueueForceUpdate(this,$,"forceUpdate")};function A(){}A.prototype=j.prototype;function E($,F,X){this.props=$,this.context=F,this.refs=w,this.updater=X||_}var N=E.prototype=new A;N.constructor=E,S(N,j.prototype),N.isPureReactComponent=!0;var T=Array.isArray;function M(){}var R={H:null,A:null,T:null,S:null},D=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(M,M):($.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 v:return ce=$._init,k(ce($._payload),F,X,ae,de)}}if(ce)return de=de($),ce=ae===""?"."+Q($,0):ae,T(de)?(X="",ce!=null&&(X=ce.replace(V,"$&/")+"/"),k(de,F,X,"",function(me){return me})):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(T($))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($)},se={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 Ne.Activity=p,Ne.Children=se,Ne.Component=j,Ne.Fragment=n,Ne.Profiler=i,Ne.PureComponent=E,Ne.StrictMode=r,Ne.Suspense=f,Ne.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,Ne.__COMPILER_RUNTIME={__proto__:null,c:function($){return R.H.useMemoCache($)}},Ne.cache=function($){return function(){return $.apply(null,arguments)}},Ne.cacheSignal=function(){return null},Ne.cloneElement=function($,F,X){if($==null)throw Error("The argument must be a React element, but you passed "+$+".");var ae=S({},$.props),de=$.key;if(F!=null)for(ge in F.key!==void 0&&(de=""+F.key),F)!D.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)},Ne.createContext=function($){return $={$$typeof:l,_currentValue:$,_currentValue2:$,_threadCount:0,Provider:null,Consumer:null},$.Provider=$,$.Consumer={$$typeof:s,_context:$},$},Ne.createElement=function($,F,X){var ae,de={},ge=null;if(F!=null)for(ae in F.key!==void 0&&(ge=""+F.key),F)D.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)},Ne.createRef=function(){return{current:null}},Ne.forwardRef=function($){return{$$typeof:c,render:$}},Ne.isValidElement=z,Ne.lazy=function($){return{$$typeof:v,_payload:{_status:-1,_result:$},_init:B}},Ne.memo=function($,F){return{$$typeof:d,type:$,compare:F===void 0?null:F}},Ne.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(M,W)}catch(ge){W(ge)}finally{F!==null&&X.types!==null&&(F.types=X.types),R.T=F}},Ne.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},Ne.use=function($){return R.H.use($)},Ne.useActionState=function($,F,X){return R.H.useActionState($,F,X)},Ne.useCallback=function($,F){return R.H.useCallback($,F)},Ne.useContext=function($){return R.H.useContext($)},Ne.useDebugValue=function(){},Ne.useDeferredValue=function($,F){return R.H.useDeferredValue($,F)},Ne.useEffect=function($,F){return R.H.useEffect($,F)},Ne.useEffectEvent=function($){return R.H.useEffectEvent($)},Ne.useId=function(){return R.H.useId()},Ne.useImperativeHandle=function($,F,X){return R.H.useImperativeHandle($,F,X)},Ne.useInsertionEffect=function($,F){return R.H.useInsertionEffect($,F)},Ne.useLayoutEffect=function($,F){return R.H.useLayoutEffect($,F)},Ne.useMemo=function($,F){return R.H.useMemo($,F)},Ne.useOptimistic=function($,F){return R.H.useOptimistic($,F)},Ne.useReducer=function($,F,X){return R.H.useReducer($,F,X)},Ne.useRef=function($){return R.H.useRef($)},Ne.useState=function($){return R.H.useState($)},Ne.useSyncExternalStore=function($,F,X){return R.H.useSyncExternalStore($,F,X)},Ne.useTransition=function(){return R.H.useTransition()},Ne.version="19.2.0",Ne}var xT;function km(){return xT||(xT=1,ny.exports=n6()),ny.exports}var O=km();const I=gt(O),xS=Jq({__proto__:null,default:I},[O]);var ry={exports:{}},Gu={},ay={exports:{}},iy={};/**
|
|
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 wT;function r6(){return wT||(wT=1,(function(e){function t(k,q){var B=k.length;k.push(q);e:for(;0<B;){var W=B-1>>>1,se=k[W];if(0<i(se,q))k[W]=q,k[B]=se,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,se=k.length,$=se>>>1;W<$;){var F=2*(W+1)-1,X=k[F],ae=F+1,de=k[ae];if(0>i(X,B))ae<se&&0>i(de,X)?(k[W]=de,k[ae]=B,W=ae):(k[W]=X,k[F]=B,W=F);else if(ae<se&&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 s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,c=l.now();e.unstable_now=function(){return l.now()-c}}var f=[],d=[],v=1,p=null,g=3,x=!1,_=!1,S=!1,w=!1,j=typeof setTimeout=="function"?setTimeout:null,A=typeof clearTimeout=="function"?clearTimeout:null,E=typeof setImmediate<"u"?setImmediate:null;function N(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 T(k){if(S=!1,N(k),!_)if(n(f)!==null)_=!0,M||(M=!0,H());else{var q=n(d);q!==null&&K(T,q.startTime-k)}}var M=!1,R=-1,D=5,L=-1;function Y(){return w?!0:!(e.unstable_now()-L<D)}function z(){if(w=!1,M){var k=e.unstable_now();L=k;var q=!0;try{e:{_=!1,S&&(S=!1,A(R),R=-1),x=!0;var B=g;try{t:{for(N(k),p=n(f);p!==null&&!(p.expirationTime>k&&Y());){var W=p.callback;if(typeof W=="function"){p.callback=null,g=p.priorityLevel;var se=W(p.expirationTime<=k);if(k=e.unstable_now(),typeof se=="function"){p.callback=se,N(k),q=!0;break t}p===n(f)&&r(f),N(k)}else r(f);p=n(f)}if(p!==null)q=!0;else{var $=n(d);$!==null&&K(T,$.startTime-k),q=!1}}break e}finally{p=null,g=B,x=!1}q=void 0}}finally{q?H():M=!1}}}var H;if(typeof E=="function")H=function(){E(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(){j(z,0)};function K(k,q){R=j(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"):D=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(k){switch(g){case 1:case 2:case 3:var q=3;break;default:q=g}var B=g;g=q;try{return k()}finally{g=B}},e.unstable_requestPaint=function(){w=!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=g;g=k;try{return q()}finally{g=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 se=-1;break;case 2:se=250;break;case 5:se=1073741823;break;case 4:se=1e4;break;default:se=5e3}return se=B+se,k={id:v++,callback:q,priorityLevel:k,startTime:B,expirationTime:se,sortIndex:-1},B>W?(k.sortIndex=B,t(d,k),n(f)===null&&k===n(d)&&(S?(A(R),R=-1):S=!0,K(T,B-W))):(k.sortIndex=se,t(f,k),_||x||(_=!0,M||(M=!0,H()))),k},e.unstable_shouldYield=Y,e.unstable_wrapCallback=function(k){var q=g;return function(){var B=g;g=q;try{return k.apply(this,arguments)}finally{g=B}}}})(iy)),iy}var ST;function a6(){return ST||(ST=1,ay.exports=r6()),ay.exports}var oy={exports:{}},mn={};/**
|
|
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 OT;function i6(){if(OT)return mn;OT=1;var e=km();function t(f){var d="https://react.dev/errors/"+f;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var v=2;v<arguments.length;v++)d+="&args[]="+encodeURIComponent(arguments[v])}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 s(f,d,v){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:v}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(f,d){if(f==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return mn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,mn.createPortal=function(f,d){var v=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return s(f,d,null,v)},mn.flushSync=function(f){var d=l.T,v=r.p;try{if(l.T=null,r.p=2,f)return f()}finally{l.T=d,r.p=v,r.d.f()}},mn.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))},mn.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},mn.preinit=function(f,d){if(typeof f=="string"&&d&&typeof d.as=="string"){var v=d.as,p=c(v,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,x=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;v==="style"?r.d.S(f,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:p,integrity:g,fetchPriority:x}):v==="script"&&r.d.X(f,{crossOrigin:p,integrity:g,fetchPriority:x,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},mn.preinitModule=function(f,d){if(typeof f=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var v=c(d.as,d.crossOrigin);r.d.M(f,{crossOrigin:v,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)},mn.preload=function(f,d){if(typeof f=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var v=d.as,p=c(v,d.crossOrigin);r.d.L(f,v,{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})}},mn.preloadModule=function(f,d){if(typeof f=="string")if(d){var v=c(d.as,d.crossOrigin);r.d.m(f,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:v,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(f)},mn.requestFormReset=function(f){r.d.r(f)},mn.unstable_batchedUpdates=function(f,d){return f(d)},mn.useFormState=function(f,d,v){return l.H.useFormState(f,d,v)},mn.useFormStatus=function(){return l.H.useHostTransitionStatus()},mn.version="19.2.0",mn}var _T;function jk(){if(_T)return oy.exports;_T=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(),oy.exports=i6(),oy.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 jT;function o6(){if(jT)return Gu;jT=1;var e=a6(),t=km(),n=jk();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 s(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 l(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(s(a)!==a)throw Error(r(188))}function d(a){var o=a.alternate;if(!o){if(o=s(a),o===null)throw Error(r(188));return o!==a?null:a}for(var u=a,h=o;;){var y=u.return;if(y===null)break;var b=y.alternate;if(b===null){if(h=y.return,h!==null){u=h;continue}break}if(y.child===b.child){for(b=y.child;b;){if(b===u)return f(y),a;if(b===h)return f(y),o;b=b.sibling}throw Error(r(188))}if(u.return!==h.return)u=y,h=b;else{for(var C=!1,P=y.child;P;){if(P===u){C=!0,u=y,h=b;break}if(P===h){C=!0,h=y,u=b;break}P=P.sibling}if(!C){for(P=b.child;P;){if(P===u){C=!0,u=b,h=y;break}if(P===h){C=!0,h=b,u=y;break}P=P.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 v(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a;for(a=a.child;a!==null;){if(o=v(a),o!==null)return o;a=a.sibling}return null}var p=Object.assign,g=Symbol.for("react.element"),x=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),j=Symbol.for("react.profiler"),A=Symbol.for("react.consumer"),E=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),M=Symbol.for("react.suspense_list"),R=Symbol.for("react.memo"),D=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 S:return"Fragment";case j:return"Profiler";case w:return"StrictMode";case T:return"Suspense";case M:return"SuspenseList";case L:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case _:return"Portal";case E:return a.displayName||"Context";case A:return(a._context.displayName||"Context")+".Consumer";case N: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 D: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=[],se=-1;function $(a){return{current:a}}function F(a){0>se||(a.current=W[se],W[se]=null,se--)}function X(a,o){se++,W[se]=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)?BA(a):0;break;default:if(a=o.tagName,o=o.namespaceURI)o=BA(o),a=qA(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 me(a){a.memoizedState!==null&&X(ce,a);var o=ae.current,u=qA(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),Bu._currentValue=B)}var ne,De;function je(a){if(ne===void 0)try{throw Error()}catch(u){var o=u.stack.trim().match(/\n( *(at )?)/);ne=o&&o[1]||"",De=-1<u.stack.indexOf(`
|
|
42
|
+
at`)?" (<anonymous>)":-1<u.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
43
|
+
`+ne+a+De}var rt=!1;function Xe(a,o){if(!a||rt)return"";rt=!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 y=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=h.DetermineComponentFrameRoot(),C=b[0],P=b[1];if(C&&P){var U=C.split(`
|
|
44
|
+
`),ee=P.split(`
|
|
45
|
+
`);for(y=h=0;h<U.length&&!U[h].includes("DetermineComponentFrameRoot");)h++;for(;y<ee.length&&!ee[y].includes("DetermineComponentFrameRoot");)y++;if(h===U.length||y===ee.length)for(h=U.length-1,y=ee.length-1;1<=h&&0<=y&&U[h]!==ee[y];)y--;for(;1<=h&&0<=y;h--,y--)if(U[h]!==ee[y]){if(h!==1||y!==1)do if(h--,y--,0>y||U[h]!==ee[y]){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<=y);break}}}finally{rt=!1,Error.prepareStackTrace=u}return(u=a?a.displayName||a.name:"")?je(u):""}function ft(a,o){switch(a.tag){case 26:case 27:case 5:return je(a.type);case 16:return je("Lazy");case 13:return a.child!==o&&o!==null?je("Suspense Fallback"):je("Suspense");case 19:return je("SuspenseList");case 0:case 15:return Xe(a.type,!1);case 11:return Xe(a.type.render,!1);case 1:return Xe(a.type,!0);case 31:return je("Activity");default:return""}}function fn(a){try{var o="",u=null;do o+=ft(a,u),u=a,a=a.return;while(a);return o}catch(h){return`
|
|
47
|
+
Error generating stack: `+h.message+`
|
|
48
|
+
`+h.stack}}var St=Object.prototype.hasOwnProperty,Hr=e.unstable_scheduleCallback,Ln=e.unstable_cancelCallback,Nt=e.unstable_shouldYield,Jn=e.unstable_requestPaint,Qt=e.unstable_now,Yo=e.unstable_getCurrentPriorityLevel,Yi=e.unstable_ImmediatePriority,Cf=e.unstable_UserBlockingPriority,Wi=e.unstable_NormalPriority,Jl=e.unstable_LowPriority,pa=e.unstable_IdlePriority,Nf=e.log,ei=e.unstable_setDisableYieldValue,Ki=null,bn=null;function wr(a){if(typeof Nf=="function"&&ei(a),bn&&typeof bn.setStrictMode=="function")try{bn.setStrictMode(Ki,a)}catch{}}var dn=Math.clz32?Math.clz32:Fr,Fp=Math.log,eu=Math.LN2;function Fr(a){return a>>>=0,a===0?32:31-(Fp(a)/eu|0)|0}var Wo=256,Ko=262144,Xi=4194304;function Gr(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 y=0,b=a.suspendedLanes,C=a.pingedLanes;a=a.warmLanes;var P=h&134217727;return P!==0?(h=P&~b,h!==0?y=Gr(h):(C&=P,C!==0?y=Gr(C):u||(u=P&~a,u!==0&&(y=Gr(u))))):(P=h&~b,P!==0?y=Gr(P):C!==0?y=Gr(C):u||(u=h&~a,u!==0&&(y=Gr(u)))),y===0?0:o!==0&&o!==y&&(o&b)===0&&(b=y&-y,u=o&-o,b>=u||b===32&&(u&4194048)!==0)?o:y}function Et(a,o){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&o)===0}function Zt(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 hn(){var a=Xi;return Xi<<=1,(Xi&62914560)===0&&(Xi=4194304),a}function ti(a){for(var o=[],u=0;31>u;u++)o.push(a);return o}function Mt(a,o){a.pendingLanes|=o,o!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function On(a,o,u,h,y,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 P=a.entanglements,U=a.expirationTimes,ee=a.hiddenUpdates;for(u=C&~u;0<u;){var oe=31-dn(u),fe=1<<oe;P[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&&Qi(a,h,0),b!==0&&y===0&&a.tag!==0&&(a.suspendedLanes|=b&~(C&~o))}function Qi(a,o,u){a.pendingLanes|=o,a.suspendedLanes&=~o;var h=31-dn(o);a.entangledLanes|=o,a.entanglements[h]=a.entanglements[h]|1073741824|u&261930}function _n(a,o){var u=a.entangledLanes|=o;for(a=a.entanglements;u;){var h=31-dn(u),y=1<<h;y&o|a[h]&o&&(a[h]|=o),u&=~y}}function jn(a,o){var u=o&-o;return u=(u&42)!==0?1:Xo(u),(u&(a.suspendedLanes|o))!==0?0:u}function Xo(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 Sr(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function Gp(){var a=q.p;return a!==0?a:(a=window.event,a===void 0?32:cT(a.type))}function E_(a,o){var u=q.p;try{return q.p=a,o()}finally{q.p=u}}var ni=Math.random().toString(36).slice(2),rn="__reactFiber$"+ni,En="__reactProps$"+ni,Qo="__reactContainer$"+ni,Vp="__reactEvents$"+ni,Uz="__reactListeners$"+ni,Hz="__reactHandles$"+ni,A_="__reactResources$"+ni,tu="__reactMarker$"+ni;function Yp(a){delete a[rn],delete a[En],delete a[Vp],delete a[Uz],delete a[Hz]}function Zo(a){var o=a[rn];if(o)return o;for(var u=a.parentNode;u;){if(o=u[Qo]||u[rn]){if(u=o.alternate,o.child!==null||u!==null&&u.child!==null)for(a=WA(a);a!==null;){if(u=a[rn])return u;a=WA(a)}return o}a=u,u=a.parentNode}return null}function Jo(a){if(a=a[rn]||a[Qo]){var o=a.tag;if(o===5||o===6||o===13||o===31||o===26||o===27||o===3)return a}return null}function nu(a){var o=a.tag;if(o===5||o===26||o===27||o===6)return a.stateNode;throw Error(r(33))}function es(a){var o=a[A_];return o||(o=a[A_]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function Jt(a){a[tu]=!0}var T_=new Set,C_={};function Zi(a,o){ts(a,o),ts(a+"Capture",o)}function ts(a,o){for(C_[a]=o,a=0;a<o.length;a++)T_.add(o[a])}var Fz=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]*$"),N_={},M_={};function Gz(a){return St.call(M_,a)?!0:St.call(N_,a)?!1:Fz.test(a)?M_[a]=!0:(N_[a]=!0,!1)}function Mf(a,o,u){if(Gz(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 Rf(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 va(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 er(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function R_(a){var o=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Vz(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 y=h.get,b=h.set;return Object.defineProperty(a,o,{configurable:!0,get:function(){return y.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 Wp(a){if(!a._valueTracker){var o=R_(a)?"checked":"value";a._valueTracker=Vz(a,o,""+a[o])}}function D_(a){if(!a)return!1;var o=a._valueTracker;if(!o)return!0;var u=o.getValue(),h="";return a&&(h=R_(a)?a.checked?"true":"false":a.value),a=h,a!==u?(o.setValue(a),!0):!1}function Df(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 Yz=/[\n"\\]/g;function tr(a){return a.replace(Yz,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Kp(a,o,u,h,y,b,C,P){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=""+er(o)):a.value!==""+er(o)&&(a.value=""+er(o)):C!=="submit"&&C!=="reset"||a.removeAttribute("value"),o!=null?Xp(a,C,er(o)):u!=null?Xp(a,C,er(u)):h!=null&&a.removeAttribute("value"),y==null&&b!=null&&(a.defaultChecked=!!b),y!=null&&(a.checked=y&&typeof y!="function"&&typeof y!="symbol"),P!=null&&typeof P!="function"&&typeof P!="symbol"&&typeof P!="boolean"?a.name=""+er(P):a.removeAttribute("name")}function P_(a,o,u,h,y,b,C,P){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)){Wp(a);return}u=u!=null?""+er(u):"",o=o!=null?""+er(o):u,P||o===a.value||(a.value=o),a.defaultValue=o}h=h??y,h=typeof h!="function"&&typeof h!="symbol"&&!!h,a.checked=P?a.checked:!!h,a.defaultChecked=!!h,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(a.name=C),Wp(a)}function Xp(a,o,u){o==="number"&&Df(a.ownerDocument)===a||a.defaultValue===""+u||(a.defaultValue=""+u)}function ns(a,o,u,h){if(a=a.options,o){o={};for(var y=0;y<u.length;y++)o["$"+u[y]]=!0;for(u=0;u<a.length;u++)y=o.hasOwnProperty("$"+a[u].value),a[u].selected!==y&&(a[u].selected=y),y&&h&&(a[u].defaultSelected=!0)}else{for(u=""+er(u),o=null,y=0;y<a.length;y++){if(a[y].value===u){a[y].selected=!0,h&&(a[y].defaultSelected=!0);return}o!==null||a[y].disabled||(o=a[y])}o!==null&&(o.selected=!0)}}function k_(a,o,u){if(o!=null&&(o=""+er(o),o!==a.value&&(a.value=o),u==null)){a.defaultValue!==o&&(a.defaultValue=o);return}a.defaultValue=u!=null?""+er(u):""}function $_(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=er(o),a.defaultValue=u,h=a.textContent,h===u&&h!==""&&h!==null&&(a.value=h),Wp(a)}function rs(a,o){if(o){var u=a.firstChild;if(u&&u===a.lastChild&&u.nodeType===3){u.nodeValue=o;return}}a.textContent=o}var Wz=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 L_(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||Wz.has(o)?o==="float"?a.cssFloat=u:a[o]=(""+u).trim():a[o]=u+"px"}function I_(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 y in o)h=o[y],o.hasOwnProperty(y)&&u[y]!==h&&L_(a,y,h)}else for(var b in o)o.hasOwnProperty(b)&&L_(a,b,o[b])}function Qp(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 Kz=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"]]),Xz=/^[\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 Pf(a){return Xz.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function ga(){}var Zp=null;function Jp(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var as=null,is=null;function z_(a){var o=Jo(a);if(o&&(a=o.stateNode)){var u=a[En]||null;e:switch(a=o.stateNode,o.type){case"input":if(Kp(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="'+tr(""+o)+'"][type="radio"]'),o=0;o<u.length;o++){var h=u[o];if(h!==a&&h.form===a.form){var y=h[En]||null;if(!y)throw Error(r(90));Kp(h,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(o=0;o<u.length;o++)h=u[o],h.form===a.form&&D_(h)}break e;case"textarea":k_(a,u.value,u.defaultValue);break e;case"select":o=u.value,o!=null&&ns(a,!!u.multiple,o,!1)}}}var ev=!1;function B_(a,o,u){if(ev)return a(o,u);ev=!0;try{var h=a(o);return h}finally{if(ev=!1,(as!==null||is!==null)&&(wd(),as&&(o=as,a=is,is=as=null,z_(o),a)))for(o=0;o<a.length;o++)z_(a[o])}}function ru(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 ya=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tv=!1;if(ya)try{var au={};Object.defineProperty(au,"passive",{get:function(){tv=!0}}),window.addEventListener("test",au,au),window.removeEventListener("test",au,au)}catch{tv=!1}var ri=null,nv=null,kf=null;function q_(){if(kf)return kf;var a,o=nv,u=o.length,h,y="value"in ri?ri.value:ri.textContent,b=y.length;for(a=0;a<u&&o[a]===y[a];a++);var C=u-a;for(h=1;h<=C&&o[u-h]===y[b-h];h++);return kf=y.slice(a,1<h?1-h:void 0)}function $f(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 Lf(){return!0}function U_(){return!1}function An(a){function o(u,h,y,b,C){this._reactName=u,this._targetInst=y,this.type=h,this.nativeEvent=b,this.target=C,this.currentTarget=null;for(var P in a)a.hasOwnProperty(P)&&(u=a[P],this[P]=u?u(b):b[P]);return this.isDefaultPrevented=(b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1)?Lf:U_,this.isPropagationStopped=U_,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=Lf)},stopPropagation:function(){var u=this.nativeEvent;u&&(u.stopPropagation?u.stopPropagation():typeof u.cancelBubble!="unknown"&&(u.cancelBubble=!0),this.isPropagationStopped=Lf)},persist:function(){},isPersistent:Lf}),o}var Ji={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},If=An(Ji),iu=p({},Ji,{view:0,detail:0}),Qz=An(iu),rv,av,ou,zf=p({},iu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ov,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!==ou&&(ou&&a.type==="mousemove"?(rv=a.screenX-ou.screenX,av=a.screenY-ou.screenY):av=rv=0,ou=a),rv)},movementY:function(a){return"movementY"in a?a.movementY:av}}),H_=An(zf),Zz=p({},zf,{dataTransfer:0}),Jz=An(Zz),eB=p({},iu,{relatedTarget:0}),iv=An(eB),tB=p({},Ji,{animationName:0,elapsedTime:0,pseudoElement:0}),nB=An(tB),rB=p({},Ji,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),aB=An(rB),iB=p({},Ji,{data:0}),F_=An(iB),oB={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sB={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"},lB={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function uB(a){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(a):(a=lB[a])?!!o[a]:!1}function ov(){return uB}var cB=p({},iu,{key:function(a){if(a.key){var o=oB[a.key]||a.key;if(o!=="Unidentified")return o}return a.type==="keypress"?(a=$f(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?sB[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ov,charCode:function(a){return a.type==="keypress"?$f(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?$f(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),fB=An(cB),dB=p({},zf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),G_=An(dB),hB=p({},iu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ov}),mB=An(hB),pB=p({},Ji,{propertyName:0,elapsedTime:0,pseudoElement:0}),vB=An(pB),gB=p({},zf,{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}),yB=An(gB),bB=p({},Ji,{newState:0,oldState:0}),xB=An(bB),wB=[9,13,27,32],sv=ya&&"CompositionEvent"in window,su=null;ya&&"documentMode"in document&&(su=document.documentMode);var SB=ya&&"TextEvent"in window&&!su,V_=ya&&(!sv||su&&8<su&&11>=su),Y_=" ",W_=!1;function K_(a,o){switch(a){case"keyup":return wB.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function X_(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var os=!1;function OB(a,o){switch(a){case"compositionend":return X_(o);case"keypress":return o.which!==32?null:(W_=!0,Y_);case"textInput":return a=o.data,a===Y_&&W_?null:a;default:return null}}function _B(a,o){if(os)return a==="compositionend"||!sv&&K_(a,o)?(a=q_(),kf=nv=ri=null,os=!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 V_&&o.locale!=="ko"?null:o.data;default:return null}}var jB={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 Q_(a){var o=a&&a.nodeName&&a.nodeName.toLowerCase();return o==="input"?!!jB[a.type]:o==="textarea"}function Z_(a,o,u,h){as?is?is.push(h):is=[h]:as=h,o=Td(o,"onChange"),0<o.length&&(u=new If("onChange","change",null,u,h),a.push({event:u,listeners:o}))}var lu=null,uu=null;function EB(a){PA(a,0)}function Bf(a){var o=nu(a);if(D_(o))return a}function J_(a,o){if(a==="change")return o}var ej=!1;if(ya){var lv;if(ya){var uv="oninput"in document;if(!uv){var tj=document.createElement("div");tj.setAttribute("oninput","return;"),uv=typeof tj.oninput=="function"}lv=uv}else lv=!1;ej=lv&&(!document.documentMode||9<document.documentMode)}function nj(){lu&&(lu.detachEvent("onpropertychange",rj),uu=lu=null)}function rj(a){if(a.propertyName==="value"&&Bf(uu)){var o=[];Z_(o,uu,a,Jp(a)),B_(EB,o)}}function AB(a,o,u){a==="focusin"?(nj(),lu=o,uu=u,lu.attachEvent("onpropertychange",rj)):a==="focusout"&&nj()}function TB(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Bf(uu)}function CB(a,o){if(a==="click")return Bf(o)}function NB(a,o){if(a==="input"||a==="change")return Bf(o)}function MB(a,o){return a===o&&(a!==0||1/a===1/o)||a!==a&&o!==o}var In=typeof Object.is=="function"?Object.is:MB;function cu(a,o){if(In(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 y=u[h];if(!St.call(o,y)||!In(a[y],o[y]))return!1}return!0}function aj(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function ij(a,o){var u=aj(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=aj(u)}}function oj(a,o){return a&&o?a===o?!0:a&&a.nodeType===3?!1:o&&o.nodeType===3?oj(a,o.parentNode):"contains"in a?a.contains(o):a.compareDocumentPosition?!!(a.compareDocumentPosition(o)&16):!1:!1}function sj(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var o=Df(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=Df(a.document)}return o}function cv(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 RB=ya&&"documentMode"in document&&11>=document.documentMode,ss=null,fv=null,fu=null,dv=!1;function lj(a,o,u){var h=u.window===u?u.document:u.nodeType===9?u:u.ownerDocument;dv||ss==null||ss!==Df(h)||(h=ss,"selectionStart"in h&&cv(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}),fu&&cu(fu,h)||(fu=h,h=Td(fv,"onSelect"),0<h.length&&(o=new If("onSelect","select",null,o,u),a.push({event:o,listeners:h}),o.target=ss)))}function eo(a,o){var u={};return u[a.toLowerCase()]=o.toLowerCase(),u["Webkit"+a]="webkit"+o,u["Moz"+a]="moz"+o,u}var ls={animationend:eo("Animation","AnimationEnd"),animationiteration:eo("Animation","AnimationIteration"),animationstart:eo("Animation","AnimationStart"),transitionrun:eo("Transition","TransitionRun"),transitionstart:eo("Transition","TransitionStart"),transitioncancel:eo("Transition","TransitionCancel"),transitionend:eo("Transition","TransitionEnd")},hv={},uj={};ya&&(uj=document.createElement("div").style,"AnimationEvent"in window||(delete ls.animationend.animation,delete ls.animationiteration.animation,delete ls.animationstart.animation),"TransitionEvent"in window||delete ls.transitionend.transition);function to(a){if(hv[a])return hv[a];if(!ls[a])return a;var o=ls[a],u;for(u in o)if(o.hasOwnProperty(u)&&u in uj)return hv[a]=o[u];return a}var cj=to("animationend"),fj=to("animationiteration"),dj=to("animationstart"),DB=to("transitionrun"),PB=to("transitionstart"),kB=to("transitioncancel"),hj=to("transitionend"),mj=new Map,mv="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(" ");mv.push("scrollEnd");function Or(a,o){mj.set(a,o),Zi(o,[a])}var qf=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)},nr=[],us=0,pv=0;function Uf(){for(var a=us,o=pv=us=0;o<a;){var u=nr[o];nr[o++]=null;var h=nr[o];nr[o++]=null;var y=nr[o];nr[o++]=null;var b=nr[o];if(nr[o++]=null,h!==null&&y!==null){var C=h.pending;C===null?y.next=y:(y.next=C.next,C.next=y),h.pending=y}b!==0&&pj(u,y,b)}}function Hf(a,o,u,h){nr[us++]=a,nr[us++]=o,nr[us++]=u,nr[us++]=h,pv|=h,a.lanes|=h,a=a.alternate,a!==null&&(a.lanes|=h)}function vv(a,o,u,h){return Hf(a,o,u,h),Ff(a)}function no(a,o){return Hf(a,null,null,o),Ff(a)}function pj(a,o,u){a.lanes|=u;var h=a.alternate;h!==null&&(h.lanes|=u);for(var y=!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||(y=!0)),a=b,b=b.return;return a.tag===3?(b=a.stateNode,y&&o!==null&&(y=31-dn(u),a=b.hiddenUpdates,h=a[y],h===null?a[y]=[o]:h.push(o),o.lane=u|536870912),b):null}function Ff(a){if(50<Du)throw Du=0,jg=null,Error(r(185));for(var o=a.return;o!==null;)a=o,o=a.return;return a.tag===3?a.stateNode:null}var cs={};function $B(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 zn(a,o,u,h){return new $B(a,o,u,h)}function gv(a){return a=a.prototype,!(!a||!a.isReactComponent)}function ba(a,o){var u=a.alternate;return u===null?(u=zn(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 vj(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 Gf(a,o,u,h,y,b){var C=0;if(h=a,typeof a=="function")gv(a)&&(C=1);else if(typeof a=="string")C=qq(a,u,ae.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case L:return a=zn(31,u,o,y),a.elementType=L,a.lanes=b,a;case S:return ro(u.children,y,b,o);case w:C=8,y|=24;break;case j:return a=zn(12,u,o,y|2),a.elementType=j,a.lanes=b,a;case T:return a=zn(13,u,o,y),a.elementType=T,a.lanes=b,a;case M:return a=zn(19,u,o,y),a.elementType=M,a.lanes=b,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case E:C=10;break e;case A:C=9;break e;case N:C=11;break e;case R:C=14;break e;case D:C=16,h=null;break e}C=29,u=Error(r(130,a===null?"null":typeof a,"")),h=null}return o=zn(C,u,o,y),o.elementType=a,o.type=h,o.lanes=b,o}function ro(a,o,u,h){return a=zn(7,a,h,o),a.lanes=u,a}function yv(a,o,u){return a=zn(6,a,null,o),a.lanes=u,a}function gj(a){var o=zn(18,null,null,0);return o.stateNode=a,o}function bv(a,o,u){return o=zn(4,a.children!==null?a.children:[],a.key,o),o.lanes=u,o.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},o}var yj=new WeakMap;function rr(a,o){if(typeof a=="object"&&a!==null){var u=yj.get(a);return u!==void 0?u:(o={value:a,source:o,stack:fn(o)},yj.set(a,o),o)}return{value:a,source:o,stack:fn(o)}}var fs=[],ds=0,Vf=null,du=0,ar=[],ir=0,ai=null,Vr=1,Yr="";function xa(a,o){fs[ds++]=du,fs[ds++]=Vf,Vf=a,du=o}function bj(a,o,u){ar[ir++]=Vr,ar[ir++]=Yr,ar[ir++]=ai,ai=a;var h=Vr;a=Yr;var y=32-dn(h)-1;h&=~(1<<y),u+=1;var b=32-dn(o)+y;if(30<b){var C=y-y%5;b=(h&(1<<C)-1).toString(32),h>>=C,y-=C,Vr=1<<32-dn(o)+y|u<<y|h,Yr=b+a}else Vr=1<<b|u<<y|h,Yr=a}function xv(a){a.return!==null&&(xa(a,1),bj(a,1,0))}function wv(a){for(;a===Vf;)Vf=fs[--ds],fs[ds]=null,du=fs[--ds],fs[ds]=null;for(;a===ai;)ai=ar[--ir],ar[ir]=null,Yr=ar[--ir],ar[ir]=null,Vr=ar[--ir],ar[ir]=null}function xj(a,o){ar[ir++]=Vr,ar[ir++]=Yr,ar[ir++]=ai,Vr=o.id,Yr=o.overflow,ai=a}var an=null,Ot=null,Fe=!1,ii=null,or=!1,Sv=Error(r(519));function oi(a){var o=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hu(rr(o,a)),Sv}function wj(a){var o=a.stateNode,u=a.type,h=a.memoizedProps;switch(o[rn]=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<ku.length;u++)Ie(ku[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),P_(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),$_(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||IA(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=ga),o=!0):o=!1,o||oi(a,!0)}function Sj(a){for(an=a.return;an;)switch(an.tag){case 5:case 31:case 13:or=!1;return;case 27:case 3:or=!0;return;default:an=an.return}}function hs(a){if(a!==an)return!1;if(!Fe)return Sj(a),Fe=!0,!1;var o=a.tag,u;if((u=o!==3&&o!==27)&&((u=o===5)&&(u=a.type,u=!(u!=="form"&&u!=="button")||Bg(a.type,a.memoizedProps)),u=!u),u&&Ot&&oi(a),Sj(a),o===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Ot=YA(a)}else if(o===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));Ot=YA(a)}else o===27?(o=Ot,xi(a.type)?(a=Gg,Gg=null,Ot=a):Ot=o):Ot=an?lr(a.stateNode.nextSibling):null;return!0}function ao(){Ot=an=null,Fe=!1}function Ov(){var a=ii;return a!==null&&(Mn===null?Mn=a:Mn.push.apply(Mn,a),ii=null),a}function hu(a){ii===null?ii=[a]:ii.push(a)}var _v=$(null),io=null,wa=null;function si(a,o,u){X(_v,o._currentValue),o._currentValue=u}function Sa(a){a._currentValue=_v.current,F(_v)}function jv(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 Ev(a,o,u,h){var y=a.child;for(y!==null&&(y.return=a);y!==null;){var b=y.dependencies;if(b!==null){var C=y.child;b=b.firstContext;e:for(;b!==null;){var P=b;b=y;for(var U=0;U<o.length;U++)if(P.context===o[U]){b.lanes|=u,P=b.alternate,P!==null&&(P.lanes|=u),jv(b.return,u,a),h||(C=null);break e}b=P.next}}else if(y.tag===18){if(C=y.return,C===null)throw Error(r(341));C.lanes|=u,b=C.alternate,b!==null&&(b.lanes|=u),jv(C,u,a),C=null}else C=y.child;if(C!==null)C.return=y;else for(C=y;C!==null;){if(C===a){C=null;break}if(y=C.sibling,y!==null){y.return=C.return,C=y;break}C=C.return}y=C}}function ms(a,o,u,h){a=null;for(var y=o,b=!1;y!==null;){if(!b){if((y.flags&524288)!==0)b=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var C=y.alternate;if(C===null)throw Error(r(387));if(C=C.memoizedProps,C!==null){var P=y.type;In(y.pendingProps.value,C.value)||(a!==null?a.push(P):a=[P])}}else if(y===ce.current){if(C=y.alternate,C===null)throw Error(r(387));C.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(a!==null?a.push(Bu):a=[Bu])}y=y.return}a!==null&&Ev(o,a,u,h),o.flags|=262144}function Yf(a){for(a=a.firstContext;a!==null;){if(!In(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function oo(a){io=a,wa=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function on(a){return Oj(io,a)}function Wf(a,o){return io===null&&oo(a),Oj(a,o)}function Oj(a,o){var u=o._currentValue;if(o={context:o,memoizedValue:u,next:null},wa===null){if(a===null)throw Error(r(308));wa=o,a.dependencies={lanes:0,firstContext:o},a.flags|=524288}else wa=wa.next=o;return u}var LB=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()})}},IB=e.unstable_scheduleCallback,zB=e.unstable_NormalPriority,It={$$typeof:E,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Av(){return{controller:new LB,data:new Map,refCount:0}}function mu(a){a.refCount--,a.refCount===0&&IB(zB,function(){a.controller.abort()})}var pu=null,Tv=0,ps=0,vs=null;function BB(a,o){if(pu===null){var u=pu=[];Tv=0,ps=Mg(),vs={status:"pending",value:void 0,then:function(h){u.push(h)}}}return Tv++,o.then(_j,_j),o}function _j(){if(--Tv===0&&pu!==null){vs!==null&&(vs.status="fulfilled");var a=pu;pu=null,ps=0,vs=null;for(var o=0;o<a.length;o++)(0,a[o])()}}function qB(a,o){var u=[],h={status:"pending",value:null,reason:null,then:function(y){u.push(y)}};return a.then(function(){h.status="fulfilled",h.value=o;for(var y=0;y<u.length;y++)(0,u[y])(o)},function(y){for(h.status="rejected",h.reason=y,y=0;y<u.length;y++)(0,u[y])(void 0)}),h}var jj=k.S;k.S=function(a,o){lA=Qt(),typeof o=="object"&&o!==null&&typeof o.then=="function"&&BB(a,o),jj!==null&&jj(a,o)};var so=$(null);function Cv(){var a=so.current;return a!==null?a:yt.pooledCache}function Kf(a,o){o===null?X(so,so.current):X(so,o.pool)}function Ej(){var a=Cv();return a===null?null:{parent:It._currentValue,pool:a}}var gs=Error(r(460)),Nv=Error(r(474)),Xf=Error(r(542)),Qf={then:function(){}};function Aj(a){return a=a.status,a==="fulfilled"||a==="rejected"}function Tj(a,o,u){switch(u=a[u],u===void 0?a.push(o):u!==o&&(o.then(ga,ga),o=u),o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,Nj(a),a;default:if(typeof o.status=="string")o.then(ga,ga);else{if(a=yt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=o,a.status="pending",a.then(function(h){if(o.status==="pending"){var y=o;y.status="fulfilled",y.value=h}},function(h){if(o.status==="pending"){var y=o;y.status="rejected",y.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw a=o.reason,Nj(a),a}throw uo=o,gs}}function lo(a){try{var o=a._init;return o(a._payload)}catch(u){throw u!==null&&typeof u=="object"&&typeof u.then=="function"?(uo=u,gs):u}}var uo=null;function Cj(){if(uo===null)throw Error(r(459));var a=uo;return uo=null,a}function Nj(a){if(a===gs||a===Xf)throw Error(r(483))}var ys=null,vu=0;function Zf(a){var o=vu;return vu+=1,ys===null&&(ys=[]),Tj(ys,a,o)}function gu(a,o){o=o.props.ref,a.ref=o!==void 0?o:null}function Jf(a,o){throw o.$$typeof===g?Error(r(525)):(a=Object.prototype.toString.call(o),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":a)))}function Mj(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 y(Z,G){return Z=ba(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 P(Z,G,J,ue){return G===null||G.tag!==6?(G=yv(J,Z.mode,ue),G.return=Z,G):(G=y(G,J),G.return=Z,G)}function U(Z,G,J,ue){var Ee=J.type;return Ee===S?oe(Z,G,J.props.children,ue,J.key):G!==null&&(G.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===D&&lo(Ee)===G.type)?(G=y(G,J.props),gu(G,J),G.return=Z,G):(G=Gf(J.type,J.key,J.props,null,Z.mode,ue),gu(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=bv(J,Z.mode,ue),G.return=Z,G):(G=y(G,J.children||[]),G.return=Z,G)}function oe(Z,G,J,ue,Ee){return G===null||G.tag!==7?(G=ro(J,Z.mode,ue,Ee),G.return=Z,G):(G=y(G,J),G.return=Z,G)}function fe(Z,G,J){if(typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint")return G=yv(""+G,Z.mode,J),G.return=Z,G;if(typeof G=="object"&&G!==null){switch(G.$$typeof){case x:return J=Gf(G.type,G.key,G.props,null,Z.mode,J),gu(J,G),J.return=Z,J;case _:return G=bv(G,Z.mode,J),G.return=Z,G;case D:return G=lo(G),fe(Z,G,J)}if(K(G)||H(G))return G=ro(G,Z.mode,J,null),G.return=Z,G;if(typeof G.then=="function")return fe(Z,Zf(G),J);if(G.$$typeof===E)return fe(Z,Wf(Z,G),J);Jf(Z,G)}return null}function te(Z,G,J,ue){var Ee=G!==null?G.key:null;if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return Ee!==null?null:P(Z,G,""+J,ue);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case x:return J.key===Ee?U(Z,G,J,ue):null;case _:return J.key===Ee?ee(Z,G,J,ue):null;case D:return J=lo(J),te(Z,G,J,ue)}if(K(J)||H(J))return Ee!==null?null:oe(Z,G,J,ue,null);if(typeof J.then=="function")return te(Z,G,Zf(J),ue);if(J.$$typeof===E)return te(Z,G,Wf(Z,J),ue);Jf(Z,J)}return null}function re(Z,G,J,ue,Ee){if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Z=Z.get(J)||null,P(G,Z,""+ue,Ee);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,Ee);case _:return Z=Z.get(ue.key===null?J:ue.key)||null,ee(G,Z,ue,Ee);case D:return ue=lo(ue),re(Z,G,J,ue,Ee)}if(K(ue)||H(ue))return Z=Z.get(J)||null,oe(G,Z,ue,Ee,null);if(typeof ue.then=="function")return re(Z,G,J,Zf(ue),Ee);if(ue.$$typeof===E)return re(Z,G,J,Wf(G,ue),Ee);Jf(G,ue)}return null}function we(Z,G,J,ue){for(var Ee=null,Qe=null,_e=G,Pe=G=0,He=null;_e!==null&&Pe<J.length;Pe++){_e.index>Pe?(He=_e,_e=null):He=_e.sibling;var Ze=te(Z,_e,J[Pe],ue);if(Ze===null){_e===null&&(_e=He);break}a&&_e&&Ze.alternate===null&&o(Z,_e),G=b(Ze,G,Pe),Qe===null?Ee=Ze:Qe.sibling=Ze,Qe=Ze,_e=He}if(Pe===J.length)return u(Z,_e),Fe&&xa(Z,Pe),Ee;if(_e===null){for(;Pe<J.length;Pe++)_e=fe(Z,J[Pe],ue),_e!==null&&(G=b(_e,G,Pe),Qe===null?Ee=_e:Qe.sibling=_e,Qe=_e);return Fe&&xa(Z,Pe),Ee}for(_e=h(_e);Pe<J.length;Pe++)He=re(_e,Z,Pe,J[Pe],ue),He!==null&&(a&&He.alternate!==null&&_e.delete(He.key===null?Pe:He.key),G=b(He,G,Pe),Qe===null?Ee=He:Qe.sibling=He,Qe=He);return a&&_e.forEach(function(ji){return o(Z,ji)}),Fe&&xa(Z,Pe),Ee}function Ae(Z,G,J,ue){if(J==null)throw Error(r(151));for(var Ee=null,Qe=null,_e=G,Pe=G=0,He=null,Ze=J.next();_e!==null&&!Ze.done;Pe++,Ze=J.next()){_e.index>Pe?(He=_e,_e=null):He=_e.sibling;var ji=te(Z,_e,Ze.value,ue);if(ji===null){_e===null&&(_e=He);break}a&&_e&&ji.alternate===null&&o(Z,_e),G=b(ji,G,Pe),Qe===null?Ee=ji:Qe.sibling=ji,Qe=ji,_e=He}if(Ze.done)return u(Z,_e),Fe&&xa(Z,Pe),Ee;if(_e===null){for(;!Ze.done;Pe++,Ze=J.next())Ze=fe(Z,Ze.value,ue),Ze!==null&&(G=b(Ze,G,Pe),Qe===null?Ee=Ze:Qe.sibling=Ze,Qe=Ze);return Fe&&xa(Z,Pe),Ee}for(_e=h(_e);!Ze.done;Pe++,Ze=J.next())Ze=re(_e,Z,Pe,Ze.value,ue),Ze!==null&&(a&&Ze.alternate!==null&&_e.delete(Ze.key===null?Pe:Ze.key),G=b(Ze,G,Pe),Qe===null?Ee=Ze:Qe.sibling=Ze,Qe=Ze);return a&&_e.forEach(function(Zq){return o(Z,Zq)}),Fe&&xa(Z,Pe),Ee}function mt(Z,G,J,ue){if(typeof J=="object"&&J!==null&&J.type===S&&J.key===null&&(J=J.props.children),typeof J=="object"&&J!==null){switch(J.$$typeof){case x:e:{for(var Ee=J.key;G!==null;){if(G.key===Ee){if(Ee=J.type,Ee===S){if(G.tag===7){u(Z,G.sibling),ue=y(G,J.props.children),ue.return=Z,Z=ue;break e}}else if(G.elementType===Ee||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===D&&lo(Ee)===G.type){u(Z,G.sibling),ue=y(G,J.props),gu(ue,J),ue.return=Z,Z=ue;break e}u(Z,G);break}else o(Z,G);G=G.sibling}J.type===S?(ue=ro(J.props.children,Z.mode,ue,J.key),ue.return=Z,Z=ue):(ue=Gf(J.type,J.key,J.props,null,Z.mode,ue),gu(ue,J),ue.return=Z,Z=ue)}return C(Z);case _:e:{for(Ee=J.key;G!==null;){if(G.key===Ee)if(G.tag===4&&G.stateNode.containerInfo===J.containerInfo&&G.stateNode.implementation===J.implementation){u(Z,G.sibling),ue=y(G,J.children||[]),ue.return=Z,Z=ue;break e}else{u(Z,G);break}else o(Z,G);G=G.sibling}ue=bv(J,Z.mode,ue),ue.return=Z,Z=ue}return C(Z);case D:return J=lo(J),mt(Z,G,J,ue)}if(K(J))return we(Z,G,J,ue);if(H(J)){if(Ee=H(J),typeof Ee!="function")throw Error(r(150));return J=Ee.call(J),Ae(Z,G,J,ue)}if(typeof J.then=="function")return mt(Z,G,Zf(J),ue);if(J.$$typeof===E)return mt(Z,G,Wf(Z,J),ue);Jf(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=y(G,J),ue.return=Z,Z=ue):(u(Z,G),ue=yv(J,Z.mode,ue),ue.return=Z,Z=ue),C(Z)):u(Z,G)}return function(Z,G,J,ue){try{vu=0;var Ee=mt(Z,G,J,ue);return ys=null,Ee}catch(_e){if(_e===gs||_e===Xf)throw _e;var Qe=zn(29,_e,null,Z.mode);return Qe.lanes=ue,Qe.return=Z,Qe}finally{}}}var co=Mj(!0),Rj=Mj(!1),li=!1;function Mv(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rv(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 ui(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function ci(a,o,u){var h=a.updateQueue;if(h===null)return null;if(h=h.shared,(at&2)!==0){var y=h.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),h.pending=o,o=Ff(a),pj(a,null,u),o}return Hf(a,h,o,u),Ff(a)}function yu(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,_n(a,u)}}function Dv(a,o){var u=a.updateQueue,h=a.alternate;if(h!==null&&(h=h.updateQueue,u===h)){var y=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?y=b=C:b=b.next=C,u=u.next}while(u!==null);b===null?y=b=o:b=b.next=o}else y=b=o;u={baseState:h.baseState,firstBaseUpdate:y,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 Pv=!1;function bu(){if(Pv){var a=vs;if(a!==null)throw a}}function xu(a,o,u,h){Pv=!1;var y=a.updateQueue;li=!1;var b=y.firstBaseUpdate,C=y.lastBaseUpdate,P=y.shared.pending;if(P!==null){y.shared.pending=null;var U=P,ee=U.next;U.next=null,C===null?b=ee:C.next=ee,C=U;var oe=a.alternate;oe!==null&&(oe=oe.updateQueue,P=oe.lastBaseUpdate,P!==C&&(P===null?oe.firstBaseUpdate=ee:P.next=ee,oe.lastBaseUpdate=U))}if(b!==null){var fe=y.baseState;C=0,oe=ee=U=null,P=b;do{var te=P.lane&-536870913,re=te!==P.lane;if(re?(Ue&te)===te:(h&te)===te){te!==0&&te===ps&&(Pv=!0),oe!==null&&(oe=oe.next={lane:0,tag:P.tag,payload:P.payload,callback:null,next:null});e:{var we=a,Ae=P;te=o;var mt=u;switch(Ae.tag){case 1:if(we=Ae.payload,typeof we=="function"){fe=we.call(mt,fe,te);break e}fe=we;break e;case 3:we.flags=we.flags&-65537|128;case 0:if(we=Ae.payload,te=typeof we=="function"?we.call(mt,fe,te):we,te==null)break e;fe=p({},fe,te);break e;case 2:li=!0}}te=P.callback,te!==null&&(a.flags|=64,re&&(a.flags|=8192),re=y.callbacks,re===null?y.callbacks=[te]:re.push(te))}else re={lane:te,tag:P.tag,payload:P.payload,callback:P.callback,next:null},oe===null?(ee=oe=re,U=fe):oe=oe.next=re,C|=te;if(P=P.next,P===null){if(P=y.shared.pending,P===null)break;re=P,P=re.next,re.next=null,y.lastBaseUpdate=re,y.shared.pending=null}}while(!0);oe===null&&(U=fe),y.baseState=U,y.firstBaseUpdate=ee,y.lastBaseUpdate=oe,b===null&&(y.shared.lanes=0),pi|=C,a.lanes=C,a.memoizedState=fe}}function Dj(a,o){if(typeof a!="function")throw Error(r(191,a));a.call(o)}function Pj(a,o){var u=a.callbacks;if(u!==null)for(a.callbacks=null,a=0;a<u.length;a++)Dj(u[a],o)}var bs=$(null),ed=$(0);function kj(a,o){a=Ma,X(ed,a),X(bs,o),Ma=a|o.baseLanes}function kv(){X(ed,Ma),X(bs,bs.current)}function $v(){Ma=ed.current,F(bs),F(ed)}var Bn=$(null),sr=null;function fi(a){var o=a.alternate;X(kt,kt.current&1),X(Bn,a),sr===null&&(o===null||bs.current!==null||o.memoizedState!==null)&&(sr=a)}function Lv(a){X(kt,kt.current),X(Bn,a),sr===null&&(sr=a)}function $j(a){a.tag===22?(X(kt,kt.current),X(Bn,a),sr===null&&(sr=a)):di()}function di(){X(kt,kt.current),X(Bn,Bn.current)}function qn(a){F(Bn),sr===a&&(sr=null),F(kt)}var kt=$(0);function td(a){for(var o=a;o!==null;){if(o.tag===13){var u=o.memoizedState;if(u!==null&&(u=u.dehydrated,u===null||Hg(u)||Fg(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 Oa=0,Me=null,dt=null,zt=null,nd=!1,xs=!1,fo=!1,rd=0,wu=0,ws=null,UB=0;function Rt(){throw Error(r(321))}function Iv(a,o){if(o===null)return!1;for(var u=0;u<o.length&&u<a.length;u++)if(!In(a[u],o[u]))return!1;return!0}function zv(a,o,u,h,y,b){return Oa=b,Me=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,k.H=a===null||a.memoizedState===null?bE:eg,fo=!1,b=u(h,y),fo=!1,xs&&(b=Ij(o,u,h,y)),Lj(a),b}function Lj(a){k.H=_u;var o=dt!==null&&dt.next!==null;if(Oa=0,zt=dt=Me=null,nd=!1,wu=0,ws=null,o)throw Error(r(300));a===null||Bt||(a=a.dependencies,a!==null&&Yf(a)&&(Bt=!0))}function Ij(a,o,u,h){Me=a;var y=0;do{if(xs&&(ws=null),wu=0,xs=!1,25<=y)throw Error(r(301));if(y+=1,zt=dt=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=xE,b=o(u,h)}while(xs);return b}function HB(){var a=k.H,o=a.useState()[0];return o=typeof o.then=="function"?Su(o):o,a=a.useState()[0],(dt!==null?dt.memoizedState:null)!==a&&(Me.flags|=1024),o}function Bv(){var a=rd!==0;return rd=0,a}function qv(a,o,u){o.updateQueue=a.updateQueue,o.flags&=-2053,a.lanes&=~u}function Uv(a){if(nd){for(a=a.memoizedState;a!==null;){var o=a.queue;o!==null&&(o.pending=null),a=a.next}nd=!1}Oa=0,zt=dt=Me=null,xs=!1,wu=rd=0,ws=null}function xn(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return zt===null?Me.memoizedState=zt=a:zt=zt.next=a,zt}function $t(){if(dt===null){var a=Me.alternate;a=a!==null?a.memoizedState:null}else a=dt.next;var o=zt===null?Me.memoizedState:zt.next;if(o!==null)zt=o,dt=a;else{if(a===null)throw Me.alternate===null?Error(r(467)):Error(r(310));dt=a,a={memoizedState:dt.memoizedState,baseState:dt.baseState,baseQueue:dt.baseQueue,queue:dt.queue,next:null},zt===null?Me.memoizedState=zt=a:zt=zt.next=a}return zt}function ad(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Su(a){var o=wu;return wu+=1,ws===null&&(ws=[]),a=Tj(ws,a,o),o=Me,(zt===null?o.memoizedState:zt.next)===null&&(o=o.alternate,k.H=o===null||o.memoizedState===null?bE:eg),a}function id(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return Su(a);if(a.$$typeof===E)return on(a)}throw Error(r(438,String(a)))}function Hv(a){var o=null,u=Me.updateQueue;if(u!==null&&(o=u.memoCache),o==null){var h=Me.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(y){return y.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),u===null&&(u=ad(),Me.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 _a(a,o){return typeof o=="function"?o(a):o}function od(a){var o=$t();return Fv(o,dt,a)}function Fv(a,o,u){var h=a.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=u;var y=a.baseQueue,b=h.pending;if(b!==null){if(y!==null){var C=y.next;y.next=b.next,b.next=C}o.baseQueue=y=b,h.pending=null}if(b=a.baseState,y===null)a.memoizedState=b;else{o=y.next;var P=C=null,U=null,ee=o,oe=!1;do{var fe=ee.lane&-536870913;if(fe!==ee.lane?(Ue&fe)===fe:(Oa&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===ps&&(oe=!0);else if((Oa&te)===te){ee=ee.next,te===ps&&(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?(P=U=fe,C=b):U=U.next=fe,Me.lanes|=te,pi|=te;fe=ee.action,fo&&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?(P=U=te,C=b):U=U.next=te,Me.lanes|=fe,pi|=fe;ee=ee.next}while(ee!==null&&ee!==o);if(U===null?C=b:U.next=P,!In(b,a.memoizedState)&&(Bt=!0,oe&&(u=vs,u!==null)))throw u;a.memoizedState=b,a.baseState=C,a.baseQueue=U,h.lastRenderedState=b}return y===null&&(h.lanes=0),[a.memoizedState,h.dispatch]}function Gv(a){var o=$t(),u=o.queue;if(u===null)throw Error(r(311));u.lastRenderedReducer=a;var h=u.dispatch,y=u.pending,b=o.memoizedState;if(y!==null){u.pending=null;var C=y=y.next;do b=a(b,C.action),C=C.next;while(C!==y);In(b,o.memoizedState)||(Bt=!0),o.memoizedState=b,o.baseQueue===null&&(o.baseState=b),u.lastRenderedState=b}return[b,h]}function zj(a,o,u){var h=Me,y=$t(),b=Fe;if(b){if(u===void 0)throw Error(r(407));u=u()}else u=o();var C=!In((dt||y).memoizedState,u);if(C&&(y.memoizedState=u,Bt=!0),y=y.queue,Wv(Uj.bind(null,h,y,a),[a]),y.getSnapshot!==o||C||zt!==null&&zt.memoizedState.tag&1){if(h.flags|=2048,Ss(9,{destroy:void 0},qj.bind(null,h,y,u,o),null),yt===null)throw Error(r(349));b||(Oa&127)!==0||Bj(h,o,u)}return u}function Bj(a,o,u){a.flags|=16384,a={getSnapshot:o,value:u},o=Me.updateQueue,o===null?(o=ad(),Me.updateQueue=o,o.stores=[a]):(u=o.stores,u===null?o.stores=[a]:u.push(a))}function qj(a,o,u,h){o.value=u,o.getSnapshot=h,Hj(o)&&Fj(a)}function Uj(a,o,u){return u(function(){Hj(o)&&Fj(a)})}function Hj(a){var o=a.getSnapshot;a=a.value;try{var u=o();return!In(a,u)}catch{return!0}}function Fj(a){var o=no(a,2);o!==null&&Rn(o,a,2)}function Vv(a){var o=xn();if(typeof a=="function"){var u=a;if(a=u(),fo){wr(!0);try{u()}finally{wr(!1)}}}return o.memoizedState=o.baseState=a,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:a},o}function Gj(a,o,u,h){return a.baseState=u,Fv(a,dt,typeof h=="function"?h:_a)}function FB(a,o,u,h,y){if(ud(a))throw Error(r(485));if(a=o.action,a!==null){var b={payload:y,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,Vj(o,b)):(b.next=u.next,o.pending=u.next=b)}}function Vj(a,o){var u=o.action,h=o.payload,y=a.state;if(o.isTransition){var b=k.T,C={};k.T=C;try{var P=u(y,h),U=k.S;U!==null&&U(C,P),Yj(a,o,P)}catch(ee){Yv(a,o,ee)}finally{b!==null&&C.types!==null&&(b.types=C.types),k.T=b}}else try{b=u(y,h),Yj(a,o,b)}catch(ee){Yv(a,o,ee)}}function Yj(a,o,u){u!==null&&typeof u=="object"&&typeof u.then=="function"?u.then(function(h){Wj(a,o,h)},function(h){return Yv(a,o,h)}):Wj(a,o,u)}function Wj(a,o,u){o.status="fulfilled",o.value=u,Kj(o),a.state=u,o=a.pending,o!==null&&(u=o.next,u===o?a.pending=null:(u=u.next,o.next=u,Vj(a,u)))}function Yv(a,o,u){var h=a.pending;if(a.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=u,Kj(o),o=o.next;while(o!==h)}a.action=null}function Kj(a){a=a.listeners;for(var o=0;o<a.length;o++)(0,a[o])()}function Xj(a,o){return o}function Qj(a,o){if(Fe){var u=yt.formState;if(u!==null){e:{var h=Me;if(Fe){if(Ot){t:{for(var y=Ot,b=or;y.nodeType!==8;){if(!b){y=null;break t}if(y=lr(y.nextSibling),y===null){y=null;break t}}b=y.data,y=b==="F!"||b==="F"?y:null}if(y){Ot=lr(y.nextSibling),h=y.data==="F!";break e}}oi(h)}h=!1}h&&(o=u[0])}}return u=xn(),u.memoizedState=u.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xj,lastRenderedState:o},u.queue=h,u=vE.bind(null,Me,h),h.dispatch=u,h=Vv(!1),b=Jv.bind(null,Me,!1,h.queue),h=xn(),y={state:o,dispatch:null,action:a,pending:null},h.queue=y,u=FB.bind(null,Me,y,b,u),y.dispatch=u,h.memoizedState=a,[o,u,!1]}function Zj(a){var o=$t();return Jj(o,dt,a)}function Jj(a,o,u){if(o=Fv(a,o,Xj)[0],a=od(_a)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=Su(o)}catch(C){throw C===gs?Xf:C}else h=o;o=$t();var y=o.queue,b=y.dispatch;return u!==o.memoizedState&&(Me.flags|=2048,Ss(9,{destroy:void 0},GB.bind(null,y,u),null)),[h,b,a]}function GB(a,o){a.action=o}function eE(a){var o=$t(),u=dt;if(u!==null)return Jj(o,u,a);$t(),o=o.memoizedState,u=$t();var h=u.queue.dispatch;return u.memoizedState=a,[o,h,!1]}function Ss(a,o,u,h){return a={tag:a,create:u,deps:h,inst:o,next:null},o=Me.updateQueue,o===null&&(o=ad(),Me.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 tE(){return $t().memoizedState}function sd(a,o,u,h){var y=xn();Me.flags|=a,y.memoizedState=Ss(1|o,{destroy:void 0},u,h===void 0?null:h)}function ld(a,o,u,h){var y=$t();h=h===void 0?null:h;var b=y.memoizedState.inst;dt!==null&&h!==null&&Iv(h,dt.memoizedState.deps)?y.memoizedState=Ss(o,b,u,h):(Me.flags|=a,y.memoizedState=Ss(1|o,b,u,h))}function nE(a,o){sd(8390656,8,a,o)}function Wv(a,o){ld(2048,8,a,o)}function VB(a){Me.flags|=4;var o=Me.updateQueue;if(o===null)o=ad(),Me.updateQueue=o,o.events=[a];else{var u=o.events;u===null?o.events=[a]:u.push(a)}}function rE(a){var o=$t().memoizedState;return VB({ref:o,nextImpl:a}),function(){if((at&2)!==0)throw Error(r(440));return o.impl.apply(void 0,arguments)}}function aE(a,o){return ld(4,2,a,o)}function iE(a,o){return ld(4,4,a,o)}function oE(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 sE(a,o,u){u=u!=null?u.concat([a]):null,ld(4,4,oE.bind(null,o,a),u)}function Kv(){}function lE(a,o){var u=$t();o=o===void 0?null:o;var h=u.memoizedState;return o!==null&&Iv(o,h[1])?h[0]:(u.memoizedState=[a,o],a)}function uE(a,o){var u=$t();o=o===void 0?null:o;var h=u.memoizedState;if(o!==null&&Iv(o,h[1]))return h[0];if(h=a(),fo){wr(!0);try{a()}finally{wr(!1)}}return u.memoizedState=[h,o],h}function Xv(a,o,u){return u===void 0||(Oa&1073741824)!==0&&(Ue&261930)===0?a.memoizedState=o:(a.memoizedState=u,a=cA(),Me.lanes|=a,pi|=a,u)}function cE(a,o,u,h){return In(u,o)?u:bs.current!==null?(a=Xv(a,u,h),In(a,o)||(Bt=!0),a):(Oa&42)===0||(Oa&1073741824)!==0&&(Ue&261930)===0?(Bt=!0,a.memoizedState=u):(a=cA(),Me.lanes|=a,pi|=a,o)}function fE(a,o,u,h,y){var b=q.p;q.p=b!==0&&8>b?b:8;var C=k.T,P={};k.T=P,Jv(a,!1,o,u);try{var U=y(),ee=k.S;if(ee!==null&&ee(P,U),U!==null&&typeof U=="object"&&typeof U.then=="function"){var oe=qB(U,h);Ou(a,o,oe,Fn(a))}else Ou(a,o,h,Fn(a))}catch(fe){Ou(a,o,{then:function(){},status:"rejected",reason:fe},Fn())}finally{q.p=b,C!==null&&P.types!==null&&(C.types=P.types),k.T=C}}function YB(){}function Qv(a,o,u,h){if(a.tag!==5)throw Error(r(476));var y=dE(a).queue;fE(a,y,o,B,u===null?YB:function(){return hE(a),u(h)})}function dE(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:_a,lastRenderedState:B},next:null};var u={};return o.next={memoizedState:u,baseState:u,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:_a,lastRenderedState:u},next:null},a.memoizedState=o,a=a.alternate,a!==null&&(a.memoizedState=o),o}function hE(a){var o=dE(a);o.next===null&&(o=a.alternate.memoizedState),Ou(a,o.next.queue,{},Fn())}function Zv(){return on(Bu)}function mE(){return $t().memoizedState}function pE(){return $t().memoizedState}function WB(a){for(var o=a.return;o!==null;){switch(o.tag){case 24:case 3:var u=Fn();a=ui(u);var h=ci(o,a,u);h!==null&&(Rn(h,o,u),yu(h,o,u)),o={cache:Av()},a.payload=o;return}o=o.return}}function KB(a,o,u){var h=Fn();u={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},ud(a)?gE(o,u):(u=vv(a,o,u,h),u!==null&&(Rn(u,a,h),yE(u,o,h)))}function vE(a,o,u){var h=Fn();Ou(a,o,u,h)}function Ou(a,o,u,h){var y={lane:h,revertLane:0,gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null};if(ud(a))gE(o,y);else{var b=a.alternate;if(a.lanes===0&&(b===null||b.lanes===0)&&(b=o.lastRenderedReducer,b!==null))try{var C=o.lastRenderedState,P=b(C,u);if(y.hasEagerState=!0,y.eagerState=P,In(P,C))return Hf(a,o,y,0),yt===null&&Uf(),!1}catch{}finally{}if(u=vv(a,o,y,h),u!==null)return Rn(u,a,h),yE(u,o,h),!0}return!1}function Jv(a,o,u,h){if(h={lane:2,revertLane:Mg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},ud(a)){if(o)throw Error(r(479))}else o=vv(a,u,h,2),o!==null&&Rn(o,a,2)}function ud(a){var o=a.alternate;return a===Me||o!==null&&o===Me}function gE(a,o){xs=nd=!0;var u=a.pending;u===null?o.next=o:(o.next=u.next,u.next=o),a.pending=o}function yE(a,o,u){if((u&4194048)!==0){var h=o.lanes;h&=a.pendingLanes,u|=h,o.lanes=u,_n(a,u)}}var _u={readContext:on,use:id,useCallback:Rt,useContext:Rt,useEffect:Rt,useImperativeHandle:Rt,useLayoutEffect:Rt,useInsertionEffect:Rt,useMemo:Rt,useReducer:Rt,useRef:Rt,useState:Rt,useDebugValue:Rt,useDeferredValue:Rt,useTransition:Rt,useSyncExternalStore:Rt,useId:Rt,useHostTransitionStatus:Rt,useFormState:Rt,useActionState:Rt,useOptimistic:Rt,useMemoCache:Rt,useCacheRefresh:Rt};_u.useEffectEvent=Rt;var bE={readContext:on,use:id,useCallback:function(a,o){return xn().memoizedState=[a,o===void 0?null:o],a},useContext:on,useEffect:nE,useImperativeHandle:function(a,o,u){u=u!=null?u.concat([a]):null,sd(4194308,4,oE.bind(null,o,a),u)},useLayoutEffect:function(a,o){return sd(4194308,4,a,o)},useInsertionEffect:function(a,o){sd(4,2,a,o)},useMemo:function(a,o){var u=xn();o=o===void 0?null:o;var h=a();if(fo){wr(!0);try{a()}finally{wr(!1)}}return u.memoizedState=[h,o],h},useReducer:function(a,o,u){var h=xn();if(u!==void 0){var y=u(o);if(fo){wr(!0);try{u(o)}finally{wr(!1)}}}else y=o;return h.memoizedState=h.baseState=y,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:y},h.queue=a,a=a.dispatch=KB.bind(null,Me,a),[h.memoizedState,a]},useRef:function(a){var o=xn();return a={current:a},o.memoizedState=a},useState:function(a){a=Vv(a);var o=a.queue,u=vE.bind(null,Me,o);return o.dispatch=u,[a.memoizedState,u]},useDebugValue:Kv,useDeferredValue:function(a,o){var u=xn();return Xv(u,a,o)},useTransition:function(){var a=Vv(!1);return a=fE.bind(null,Me,a.queue,!0,!1),xn().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,o,u){var h=Me,y=xn();if(Fe){if(u===void 0)throw Error(r(407));u=u()}else{if(u=o(),yt===null)throw Error(r(349));(Ue&127)!==0||Bj(h,o,u)}y.memoizedState=u;var b={value:u,getSnapshot:o};return y.queue=b,nE(Uj.bind(null,h,b,a),[a]),h.flags|=2048,Ss(9,{destroy:void 0},qj.bind(null,h,b,u,o),null),u},useId:function(){var a=xn(),o=yt.identifierPrefix;if(Fe){var u=Yr,h=Vr;u=(h&~(1<<32-dn(h)-1)).toString(32)+u,o="_"+o+"R_"+u,u=rd++,0<u&&(o+="H"+u.toString(32)),o+="_"}else u=UB++,o="_"+o+"r_"+u.toString(32)+"_";return a.memoizedState=o},useHostTransitionStatus:Zv,useFormState:Qj,useActionState:Qj,useOptimistic:function(a){var o=xn();o.memoizedState=o.baseState=a;var u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=u,o=Jv.bind(null,Me,!0,u),u.dispatch=o,[a,o]},useMemoCache:Hv,useCacheRefresh:function(){return xn().memoizedState=WB.bind(null,Me)},useEffectEvent:function(a){var o=xn(),u={impl:a};return o.memoizedState=u,function(){if((at&2)!==0)throw Error(r(440));return u.impl.apply(void 0,arguments)}}},eg={readContext:on,use:id,useCallback:lE,useContext:on,useEffect:Wv,useImperativeHandle:sE,useInsertionEffect:aE,useLayoutEffect:iE,useMemo:uE,useReducer:od,useRef:tE,useState:function(){return od(_a)},useDebugValue:Kv,useDeferredValue:function(a,o){var u=$t();return cE(u,dt.memoizedState,a,o)},useTransition:function(){var a=od(_a)[0],o=$t().memoizedState;return[typeof a=="boolean"?a:Su(a),o]},useSyncExternalStore:zj,useId:mE,useHostTransitionStatus:Zv,useFormState:Zj,useActionState:Zj,useOptimistic:function(a,o){var u=$t();return Gj(u,dt,a,o)},useMemoCache:Hv,useCacheRefresh:pE};eg.useEffectEvent=rE;var xE={readContext:on,use:id,useCallback:lE,useContext:on,useEffect:Wv,useImperativeHandle:sE,useInsertionEffect:aE,useLayoutEffect:iE,useMemo:uE,useReducer:Gv,useRef:tE,useState:function(){return Gv(_a)},useDebugValue:Kv,useDeferredValue:function(a,o){var u=$t();return dt===null?Xv(u,a,o):cE(u,dt.memoizedState,a,o)},useTransition:function(){var a=Gv(_a)[0],o=$t().memoizedState;return[typeof a=="boolean"?a:Su(a),o]},useSyncExternalStore:zj,useId:mE,useHostTransitionStatus:Zv,useFormState:eE,useActionState:eE,useOptimistic:function(a,o){var u=$t();return dt!==null?Gj(u,dt,a,o):(u.baseState=a,[a,u.queue.dispatch])},useMemoCache:Hv,useCacheRefresh:pE};xE.useEffectEvent=rE;function tg(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 ng={enqueueSetState:function(a,o,u){a=a._reactInternals;var h=Fn(),y=ui(h);y.payload=o,u!=null&&(y.callback=u),o=ci(a,y,h),o!==null&&(Rn(o,a,h),yu(o,a,h))},enqueueReplaceState:function(a,o,u){a=a._reactInternals;var h=Fn(),y=ui(h);y.tag=1,y.payload=o,u!=null&&(y.callback=u),o=ci(a,y,h),o!==null&&(Rn(o,a,h),yu(o,a,h))},enqueueForceUpdate:function(a,o){a=a._reactInternals;var u=Fn(),h=ui(u);h.tag=2,o!=null&&(h.callback=o),o=ci(a,h,u),o!==null&&(Rn(o,a,u),yu(o,a,u))}};function wE(a,o,u,h,y,b,C){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(h,b,C):o.prototype&&o.prototype.isPureReactComponent?!cu(u,h)||!cu(y,b):!0}function SE(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&&ng.enqueueReplaceState(o,o.state,null)}function ho(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 y in a)u[y]===void 0&&(u[y]=a[y])}return u}function OE(a){qf(a)}function _E(a){console.error(a)}function jE(a){qf(a)}function cd(a,o){try{var u=a.onUncaughtError;u(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function EE(a,o,u){try{var h=a.onCaughtError;h(u.value,{componentStack:u.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function rg(a,o,u){return u=ui(u),u.tag=3,u.payload={element:null},u.callback=function(){cd(a,o)},u}function AE(a){return a=ui(a),a.tag=3,a}function TE(a,o,u,h){var y=u.type.getDerivedStateFromError;if(typeof y=="function"){var b=h.value;a.payload=function(){return y(b)},a.callback=function(){EE(o,u,h)}}var C=u.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(a.callback=function(){EE(o,u,h),typeof y!="function"&&(vi===null?vi=new Set([this]):vi.add(this));var P=h.stack;this.componentDidCatch(h.value,{componentStack:P!==null?P:""})})}function XB(a,o,u,h,y){if(u.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=u.alternate,o!==null&&ms(o,u,y,!0),u=Bn.current,u!==null){switch(u.tag){case 31:case 13:return sr===null?Sd():u.alternate===null&&Dt===0&&(Dt=3),u.flags&=-257,u.flags|=65536,u.lanes=y,h===Qf?u.flags|=16384:(o=u.updateQueue,o===null?u.updateQueue=new Set([h]):o.add(h),Tg(a,h,y)),!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)),Tg(a,h,y)),!1}throw Error(r(435,u.tag))}return Tg(a,h,y),Sd(),!1}if(Fe)return o=Bn.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=y,h!==Sv&&(a=Error(r(422),{cause:h}),hu(rr(a,u)))):(h!==Sv&&(o=Error(r(423),{cause:h}),hu(rr(o,u))),a=a.current.alternate,a.flags|=65536,y&=-y,a.lanes|=y,h=rr(h,u),y=rg(a.stateNode,h,y),Dv(a,y),Dt!==4&&(Dt=2)),!1;var b=Error(r(520),{cause:h});if(b=rr(b,u),Ru===null?Ru=[b]:Ru.push(b),Dt!==4&&(Dt=2),o===null)return!0;h=rr(h,u),u=o;do{switch(u.tag){case 3:return u.flags|=65536,a=y&-y,u.lanes|=a,a=rg(u.stateNode,h,a),Dv(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"&&(vi===null||!vi.has(b))))return u.flags|=65536,y&=-y,u.lanes|=y,y=AE(y),TE(y,a,u,h),Dv(u,y),!1}u=u.return}while(u!==null);return!1}var ag=Error(r(461)),Bt=!1;function sn(a,o,u,h){o.child=a===null?Rj(o,null,u,h):co(o,a.child,u,h)}function CE(a,o,u,h,y){u=u.render;var b=o.ref;if("ref"in h){var C={};for(var P in h)P!=="ref"&&(C[P]=h[P])}else C=h;return oo(o),h=zv(a,o,u,C,b,y),P=Bv(),a!==null&&!Bt?(qv(a,o,y),ja(a,o,y)):(Fe&&P&&xv(o),o.flags|=1,sn(a,o,h,y),o.child)}function NE(a,o,u,h,y){if(a===null){var b=u.type;return typeof b=="function"&&!gv(b)&&b.defaultProps===void 0&&u.compare===null?(o.tag=15,o.type=b,ME(a,o,b,h,y)):(a=Gf(u.type,null,h,o,o.mode,y),a.ref=o.ref,a.return=o,o.child=a)}if(b=a.child,!dg(a,y)){var C=b.memoizedProps;if(u=u.compare,u=u!==null?u:cu,u(C,h)&&a.ref===o.ref)return ja(a,o,y)}return o.flags|=1,a=ba(b,h),a.ref=o.ref,a.return=o,o.child=a}function ME(a,o,u,h,y){if(a!==null){var b=a.memoizedProps;if(cu(b,h)&&a.ref===o.ref)if(Bt=!1,o.pendingProps=h=b,dg(a,y))(a.flags&131072)!==0&&(Bt=!0);else return o.lanes=a.lanes,ja(a,o,y)}return ig(a,o,u,h,y)}function RE(a,o,u,h){var y=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,y=0;h!==null;)y=y|h.lanes|h.childLanes,h=h.sibling;h=y&~b}else h=0,o.child=null;return DE(a,o,b,u,h)}if((u&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},a!==null&&Kf(o,b!==null?b.cachePool:null),b!==null?kj(o,b):kv(),$j(o);else return h=o.lanes=536870912,DE(a,o,b!==null?b.baseLanes|u:u,u,h)}else b!==null?(Kf(o,b.cachePool),kj(o,b),di(),o.memoizedState=null):(a!==null&&Kf(o,null),kv(),di());return sn(a,o,y,u),o.child}function ju(a,o){return a!==null&&a.tag===22||o.stateNode!==null||(o.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.sibling}function DE(a,o,u,h,y){var b=Cv();return b=b===null?null:{parent:It._currentValue,pool:b},o.memoizedState={baseLanes:u,cachePool:b},a!==null&&Kf(o,null),kv(),$j(o),a!==null&&ms(a,o,h,!0),o.childLanes=y,null}function fd(a,o){return o=hd({mode:o.mode,children:o.children},a.mode),o.ref=a.ref,a.child=o,o.return=a,o}function PE(a,o,u){return co(o,a.child,null,u),a=fd(o,o.pendingProps),a.flags|=2,qn(o),o.memoizedState=null,a}function QB(a,o,u){var h=o.pendingProps,y=(o.flags&128)!==0;if(o.flags&=-129,a===null){if(Fe){if(h.mode==="hidden")return a=fd(o,h),o.lanes=536870912,ju(null,a);if(Lv(o),(a=Ot)?(a=VA(a,or),a=a!==null&&a.data==="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:ai!==null?{id:Vr,overflow:Yr}:null,retryLane:536870912,hydrationErrors:null},u=gj(a),u.return=o,o.child=u,an=o,Ot=null)):a=null,a===null)throw oi(o);return o.lanes=536870912,null}return fd(o,h)}var b=a.memoizedState;if(b!==null){var C=b.dehydrated;if(Lv(o),y)if(o.flags&256)o.flags&=-257,o=PE(a,o,u);else if(o.memoizedState!==null)o.child=a.child,o.flags|=128,o=null;else throw Error(r(558));else if(Bt||ms(a,o,u,!1),y=(u&a.childLanes)!==0,Bt||y){if(h=yt,h!==null&&(C=jn(h,u),C!==0&&C!==b.retryLane))throw b.retryLane=C,no(a,C),Rn(h,a,C),ag;Sd(),o=PE(a,o,u)}else a=b.treeContext,Ot=lr(C.nextSibling),an=o,Fe=!0,ii=null,or=!1,a!==null&&xj(o,a),o=fd(o,h),o.flags|=4096;return o}return a=ba(a.child,{mode:h.mode,children:h.children}),a.ref=o.ref,o.child=a,a.return=o,a}function dd(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 ig(a,o,u,h,y){return oo(o),u=zv(a,o,u,h,void 0,y),h=Bv(),a!==null&&!Bt?(qv(a,o,y),ja(a,o,y)):(Fe&&h&&xv(o),o.flags|=1,sn(a,o,u,y),o.child)}function kE(a,o,u,h,y,b){return oo(o),o.updateQueue=null,u=Ij(o,h,u,y),Lj(a),h=Bv(),a!==null&&!Bt?(qv(a,o,b),ja(a,o,b)):(Fe&&h&&xv(o),o.flags|=1,sn(a,o,u,b),o.child)}function $E(a,o,u,h,y){if(oo(o),o.stateNode===null){var b=cs,C=u.contextType;typeof C=="object"&&C!==null&&(b=on(C)),b=new u(h,b),o.memoizedState=b.state!==null&&b.state!==void 0?b.state:null,b.updater=ng,o.stateNode=b,b._reactInternals=o,b=o.stateNode,b.props=h,b.state=o.memoizedState,b.refs={},Mv(o),C=u.contextType,b.context=typeof C=="object"&&C!==null?on(C):cs,b.state=o.memoizedState,C=u.getDerivedStateFromProps,typeof C=="function"&&(tg(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&&ng.enqueueReplaceState(b,b.state,null),xu(o,h,b,y),bu(),b.state=o.memoizedState),typeof b.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(a===null){b=o.stateNode;var P=o.memoizedProps,U=ho(u,P);b.props=U;var ee=b.context,oe=u.contextType;C=cs,typeof oe=="object"&&oe!==null&&(C=on(oe));var fe=u.getDerivedStateFromProps;oe=typeof fe=="function"||typeof b.getSnapshotBeforeUpdate=="function",P=o.pendingProps!==P,oe||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(P||ee!==C)&&SE(o,b,h,C),li=!1;var te=o.memoizedState;b.state=te,xu(o,h,b,y),bu(),ee=o.memoizedState,P||te!==ee||li?(typeof fe=="function"&&(tg(o,u,fe,h),ee=o.memoizedState),(U=li||wE(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,Rv(a,o),C=o.memoizedProps,oe=ho(u,C),b.props=oe,fe=o.pendingProps,te=b.context,ee=u.contextType,U=cs,typeof ee=="object"&&ee!==null&&(U=on(ee)),P=u.getDerivedStateFromProps,(ee=typeof P=="function"||typeof b.getSnapshotBeforeUpdate=="function")||typeof b.UNSAFE_componentWillReceiveProps!="function"&&typeof b.componentWillReceiveProps!="function"||(C!==fe||te!==U)&&SE(o,b,h,U),li=!1,te=o.memoizedState,b.state=te,xu(o,h,b,y),bu();var re=o.memoizedState;C!==fe||te!==re||li||a!==null&&a.dependencies!==null&&Yf(a.dependencies)?(typeof P=="function"&&(tg(o,u,P,h),re=o.memoizedState),(oe=li||wE(o,u,oe,h,te,re,U)||a!==null&&a.dependencies!==null&&Yf(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,dd(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=co(o,a.child,null,y),o.child=co(o,null,u,y)):sn(a,o,u,y),o.memoizedState=b.state,a=o.child):a=ja(a,o,y),a}function LE(a,o,u,h){return ao(),o.flags|=256,sn(a,o,u,h),o.child}var og={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function sg(a){return{baseLanes:a,cachePool:Ej()}}function lg(a,o,u){return a=a!==null?a.childLanes&~u:0,o&&(a|=Hn),a}function IE(a,o,u){var h=o.pendingProps,y=!1,b=(o.flags&128)!==0,C;if((C=b)||(C=a!==null&&a.memoizedState===null?!1:(kt.current&2)!==0),C&&(y=!0,o.flags&=-129),C=(o.flags&32)!==0,o.flags&=-33,a===null){if(Fe){if(y?fi(o):di(),(a=Ot)?(a=VA(a,or),a=a!==null&&a.data!=="&"?a:null,a!==null&&(o.memoizedState={dehydrated:a,treeContext:ai!==null?{id:Vr,overflow:Yr}:null,retryLane:536870912,hydrationErrors:null},u=gj(a),u.return=o,o.child=u,an=o,Ot=null)):a=null,a===null)throw oi(o);return Fg(a)?o.lanes=32:o.lanes=536870912,null}var P=h.children;return h=h.fallback,y?(di(),y=o.mode,P=hd({mode:"hidden",children:P},y),h=ro(h,y,u,null),P.return=o,h.return=o,P.sibling=h,o.child=P,h=o.child,h.memoizedState=sg(u),h.childLanes=lg(a,C,u),o.memoizedState=og,ju(null,h)):(fi(o),ug(o,P))}var U=a.memoizedState;if(U!==null&&(P=U.dehydrated,P!==null)){if(b)o.flags&256?(fi(o),o.flags&=-257,o=cg(a,o,u)):o.memoizedState!==null?(di(),o.child=a.child,o.flags|=128,o=null):(di(),P=h.fallback,y=o.mode,h=hd({mode:"visible",children:h.children},y),P=ro(P,y,u,null),P.flags|=2,h.return=o,P.return=o,h.sibling=P,o.child=h,co(o,a.child,null,u),h=o.child,h.memoizedState=sg(u),h.childLanes=lg(a,C,u),o.memoizedState=og,o=ju(null,h));else if(fi(o),Fg(P)){if(C=P.nextSibling&&P.nextSibling.dataset,C)var ee=C.dgst;C=ee,h=Error(r(419)),h.stack="",h.digest=C,hu({value:h,source:null,stack:null}),o=cg(a,o,u)}else if(Bt||ms(a,o,u,!1),C=(u&a.childLanes)!==0,Bt||C){if(C=yt,C!==null&&(h=jn(C,u),h!==0&&h!==U.retryLane))throw U.retryLane=h,no(a,h),Rn(C,a,h),ag;Hg(P)||Sd(),o=cg(a,o,u)}else Hg(P)?(o.flags|=192,o.child=a.child,o=null):(a=U.treeContext,Ot=lr(P.nextSibling),an=o,Fe=!0,ii=null,or=!1,a!==null&&xj(o,a),o=ug(o,h.children),o.flags|=4096);return o}return y?(di(),P=h.fallback,y=o.mode,U=a.child,ee=U.sibling,h=ba(U,{mode:"hidden",children:h.children}),h.subtreeFlags=U.subtreeFlags&65011712,ee!==null?P=ba(ee,P):(P=ro(P,y,u,null),P.flags|=2),P.return=o,h.return=o,h.sibling=P,o.child=h,ju(null,h),h=o.child,P=a.child.memoizedState,P===null?P=sg(u):(y=P.cachePool,y!==null?(U=It._currentValue,y=y.parent!==U?{parent:U,pool:U}:y):y=Ej(),P={baseLanes:P.baseLanes|u,cachePool:y}),h.memoizedState=P,h.childLanes=lg(a,C,u),o.memoizedState=og,ju(a.child,h)):(fi(o),u=a.child,a=u.sibling,u=ba(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 ug(a,o){return o=hd({mode:"visible",children:o},a.mode),o.return=a,a.child=o}function hd(a,o){return a=zn(22,a,null,o),a.lanes=0,a}function cg(a,o,u){return co(o,a.child,null,u),a=ug(o,o.pendingProps.children),a.flags|=2,o.memoizedState=null,a}function zE(a,o,u){a.lanes|=o;var h=a.alternate;h!==null&&(h.lanes|=o),jv(a.return,o,u)}function fg(a,o,u,h,y,b){var C=a.memoizedState;C===null?a.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:u,tailMode:y,treeForkCount:b}:(C.isBackwards=o,C.rendering=null,C.renderingStartTime=0,C.last=h,C.tail=u,C.tailMode=y,C.treeForkCount=b)}function BE(a,o,u){var h=o.pendingProps,y=h.revealOrder,b=h.tail;h=h.children;var C=kt.current,P=(C&2)!==0;if(P?(C=C&1|2,o.flags|=128):C&=1,X(kt,C),sn(a,o,h,u),h=Fe?du:0,!P&&a!==null&&(a.flags&128)!==0)e:for(a=o.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&zE(a,u,o);else if(a.tag===19)zE(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(y){case"forwards":for(u=o.child,y=null;u!==null;)a=u.alternate,a!==null&&td(a)===null&&(y=u),u=u.sibling;u=y,u===null?(y=o.child,o.child=null):(y=u.sibling,u.sibling=null),fg(o,!1,y,u,b,h);break;case"backwards":case"unstable_legacy-backwards":for(u=null,y=o.child,o.child=null;y!==null;){if(a=y.alternate,a!==null&&td(a)===null){o.child=y;break}a=y.sibling,y.sibling=u,u=y,y=a}fg(o,!0,u,null,b,h);break;case"together":fg(o,!1,null,null,void 0,h);break;default:o.memoizedState=null}return o.child}function ja(a,o,u){if(a!==null&&(o.dependencies=a.dependencies),pi|=o.lanes,(u&o.childLanes)===0)if(a!==null){if(ms(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=ba(a,a.pendingProps),o.child=u,u.return=o;a.sibling!==null;)a=a.sibling,u=u.sibling=ba(a,a.pendingProps),u.return=o;u.sibling=null}return o.child}function dg(a,o){return(a.lanes&o)!==0?!0:(a=a.dependencies,!!(a!==null&&Yf(a)))}function ZB(a,o,u){switch(o.tag){case 3:he(o,o.stateNode.containerInfo),si(o,It,a.memoizedState.cache),ao();break;case 27:case 5:me(o);break;case 4:he(o,o.stateNode.containerInfo);break;case 10:si(o,o.type,o.memoizedProps.value);break;case 31:if(o.memoizedState!==null)return o.flags|=128,Lv(o),null;break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(fi(o),o.flags|=128,null):(u&o.child.childLanes)!==0?IE(a,o,u):(fi(o),a=ja(a,o,u),a!==null?a.sibling:null);fi(o);break;case 19:var y=(a.flags&128)!==0;if(h=(u&o.childLanes)!==0,h||(ms(a,o,u,!1),h=(u&o.childLanes)!==0),y){if(h)return BE(a,o,u);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),X(kt,kt.current),h)break;return null;case 22:return o.lanes=0,RE(a,o,u,o.pendingProps);case 24:si(o,It,a.memoizedState.cache)}return ja(a,o,u)}function qE(a,o,u){if(a!==null)if(a.memoizedProps!==o.pendingProps)Bt=!0;else{if(!dg(a,u)&&(o.flags&128)===0)return Bt=!1,ZB(a,o,u);Bt=(a.flags&131072)!==0}else Bt=!1,Fe&&(o.flags&1048576)!==0&&bj(o,du,o.index);switch(o.lanes=0,o.tag){case 16:e:{var h=o.pendingProps;if(a=lo(o.elementType),o.type=a,typeof a=="function")gv(a)?(h=ho(a,h),o.tag=1,o=$E(null,o,a,h,u)):(o.tag=0,o=ig(null,o,a,h,u));else{if(a!=null){var y=a.$$typeof;if(y===N){o.tag=11,o=CE(null,o,a,h,u);break e}else if(y===R){o.tag=14,o=NE(null,o,a,h,u);break e}}throw o=Q(a)||a,Error(r(306,o,""))}}return o;case 0:return ig(a,o,o.type,o.pendingProps,u);case 1:return h=o.type,y=ho(h,o.pendingProps),$E(a,o,h,y,u);case 3:e:{if(he(o,o.stateNode.containerInfo),a===null)throw Error(r(387));h=o.pendingProps;var b=o.memoizedState;y=b.element,Rv(a,o),xu(o,h,null,u);var C=o.memoizedState;if(h=C.cache,si(o,It,h),h!==b.cache&&Ev(o,[It],u,!0),bu(),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=LE(a,o,h,u);break e}else if(h!==y){y=rr(Error(r(424)),o),hu(y),o=LE(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(Ot=lr(a.firstChild),an=o,Fe=!0,ii=null,or=!0,u=Rj(o,null,h,u),o.child=u;u;)u.flags=u.flags&-3|4096,u=u.sibling}else{if(ao(),h===y){o=ja(a,o,u);break e}sn(a,o,h,u)}o=o.child}return o;case 26:return dd(a,o),a===null?(u=ZA(o.type,null,o.pendingProps,null))?o.memoizedState=u:Fe||(u=o.type,a=o.pendingProps,h=Cd(ge.current).createElement(u),h[rn]=o,h[En]=a,ln(h,u,a),Jt(h),o.stateNode=h):o.memoizedState=ZA(o.type,a.memoizedProps,o.pendingProps,a.memoizedState),null;case 27:return me(o),a===null&&Fe&&(h=o.stateNode=KA(o.type,o.pendingProps,ge.current),an=o,or=!0,y=Ot,xi(o.type)?(Gg=y,Ot=lr(h.firstChild)):Ot=y),sn(a,o,o.pendingProps.children,u),dd(a,o),a===null&&(o.flags|=4194304),o.child;case 5:return a===null&&Fe&&((y=h=Ot)&&(h=Tq(h,o.type,o.pendingProps,or),h!==null?(o.stateNode=h,an=o,Ot=lr(h.firstChild),or=!1,y=!0):y=!1),y||oi(o)),me(o),y=o.type,b=o.pendingProps,C=a!==null?a.memoizedProps:null,h=b.children,Bg(y,b)?h=null:C!==null&&Bg(y,C)&&(o.flags|=32),o.memoizedState!==null&&(y=zv(a,o,HB,null,null,u),Bu._currentValue=y),dd(a,o),sn(a,o,h,u),o.child;case 6:return a===null&&Fe&&((a=u=Ot)&&(u=Cq(u,o.pendingProps,or),u!==null?(o.stateNode=u,an=o,Ot=null,a=!0):a=!1),a||oi(o)),null;case 13:return IE(a,o,u);case 4:return he(o,o.stateNode.containerInfo),h=o.pendingProps,a===null?o.child=co(o,null,h,u):sn(a,o,h,u),o.child;case 11:return CE(a,o,o.type,o.pendingProps,u);case 7:return sn(a,o,o.pendingProps,u),o.child;case 8:return sn(a,o,o.pendingProps.children,u),o.child;case 12:return sn(a,o,o.pendingProps.children,u),o.child;case 10:return h=o.pendingProps,si(o,o.type,h.value),sn(a,o,h.children,u),o.child;case 9:return y=o.type._context,h=o.pendingProps.children,oo(o),y=on(y),h=h(y),o.flags|=1,sn(a,o,h,u),o.child;case 14:return NE(a,o,o.type,o.pendingProps,u);case 15:return ME(a,o,o.type,o.pendingProps,u);case 19:return BE(a,o,u);case 31:return QB(a,o,u);case 22:return RE(a,o,u,o.pendingProps);case 24:return oo(o),h=on(It),a===null?(y=Cv(),y===null&&(y=yt,b=Av(),y.pooledCache=b,b.refCount++,b!==null&&(y.pooledCacheLanes|=u),y=b),o.memoizedState={parent:h,cache:y},Mv(o),si(o,It,y)):((a.lanes&u)!==0&&(Rv(a,o),xu(o,null,null,u),bu()),y=a.memoizedState,b=o.memoizedState,y.parent!==h?(y={parent:h,cache:h},o.memoizedState=y,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=y),si(o,It,h)):(h=b.cache,si(o,It,h),h!==y.cache&&Ev(o,[It],u,!0))),sn(a,o,o.pendingProps.children,u),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function Ea(a){a.flags|=4}function hg(a,o,u,h,y){if((o=(a.mode&32)!==0)&&(o=!1),o){if(a.flags|=16777216,(y&335544128)===y)if(a.stateNode.complete)a.flags|=8192;else if(mA())a.flags|=8192;else throw uo=Qf,Nv}else a.flags&=-16777217}function UE(a,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!rT(o))if(mA())a.flags|=8192;else throw uo=Qf,Nv}function md(a,o){o!==null&&(a.flags|=4),a.flags&16384&&(o=a.tag!==22?hn():536870912,a.lanes|=o,Es|=o)}function Eu(a,o){if(!Fe)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 _t(a){var o=a.alternate!==null&&a.alternate.child===a.child,u=0,h=0;if(o)for(var y=a.child;y!==null;)u|=y.lanes|y.childLanes,h|=y.subtreeFlags&65011712,h|=y.flags&65011712,y.return=a,y=y.sibling;else for(y=a.child;y!==null;)u|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=a,y=y.sibling;return a.subtreeFlags|=h,a.childLanes=u,o}function JB(a,o,u){var h=o.pendingProps;switch(wv(o),o.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return _t(o),null;case 1:return _t(o),null;case 3:return u=o.stateNode,h=null,a!==null&&(h=a.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),Sa(It),ie(),u.pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),(a===null||a.child===null)&&(hs(o)?Ea(o):a===null||a.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,Ov())),_t(o),null;case 26:var y=o.type,b=o.memoizedState;return a===null?(Ea(o),b!==null?(_t(o),UE(o,b)):(_t(o),hg(o,y,null,h,u))):b?b!==a.memoizedState?(Ea(o),_t(o),UE(o,b)):(_t(o),o.flags&=-16777217):(a=a.memoizedProps,a!==h&&Ea(o),_t(o),hg(o,y,a,h,u)),null;case 27:if(ve(o),u=ge.current,y=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&Ea(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return _t(o),null}a=ae.current,hs(o)?wj(o):(a=KA(y,h,u),o.stateNode=a,Ea(o))}return _t(o),null;case 5:if(ve(o),y=o.type,a!==null&&o.stateNode!=null)a.memoizedProps!==h&&Ea(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return _t(o),null}if(b=ae.current,hs(o))wj(o);else{var C=Cd(ge.current);switch(b){case 1:b=C.createElementNS("http://www.w3.org/2000/svg",y);break;case 2:b=C.createElementNS("http://www.w3.org/1998/Math/MathML",y);break;default:switch(y){case"svg":b=C.createElementNS("http://www.w3.org/2000/svg",y);break;case"math":b=C.createElementNS("http://www.w3.org/1998/Math/MathML",y);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(y,{is:h.is}):C.createElement(y)}}b[rn]=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(ln(b,y,h),y){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&Ea(o)}}return _t(o),hg(o,o.type,a===null?null:a.memoizedProps,o.pendingProps,u),null;case 6:if(a&&o.stateNode!=null)a.memoizedProps!==h&&Ea(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(a=ge.current,hs(o)){if(a=o.stateNode,u=o.memoizedProps,h=null,y=an,y!==null)switch(y.tag){case 27:case 5:h=y.memoizedProps}a[rn]=o,a=!!(a.nodeValue===u||h!==null&&h.suppressHydrationWarning===!0||IA(a.nodeValue,u)),a||oi(o,!0)}else a=Cd(a).createTextNode(h),a[rn]=o,o.stateNode=a}return _t(o),null;case 31:if(u=o.memoizedState,a===null||a.memoizedState!==null){if(h=hs(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[rn]=o}else ao(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;_t(o),a=!1}else u=Ov(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=u),a=!0;if(!a)return o.flags&256?(qn(o),o):(qn(o),null);if((o.flags&128)!==0)throw Error(r(558))}return _t(o),null;case 13:if(h=o.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(y=hs(o),h!==null&&h.dehydrated!==null){if(a===null){if(!y)throw Error(r(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[rn]=o}else ao(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;_t(o),y=!1}else y=Ov(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=y),y=!0;if(!y)return o.flags&256?(qn(o),o):(qn(o),null)}return qn(o),(o.flags&128)!==0?(o.lanes=u,o):(u=h!==null,a=a!==null&&a.memoizedState!==null,u&&(h=o.child,y=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(y=h.alternate.memoizedState.cachePool.pool),b=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(b=h.memoizedState.cachePool.pool),b!==y&&(h.flags|=2048)),u!==a&&u&&(o.child.flags|=8192),md(o,o.updateQueue),_t(o),null);case 4:return ie(),a===null&&kg(o.stateNode.containerInfo),_t(o),null;case 10:return Sa(o.type),_t(o),null;case 19:if(F(kt),h=o.memoizedState,h===null)return _t(o),null;if(y=(o.flags&128)!==0,b=h.rendering,b===null)if(y)Eu(h,!1);else{if(Dt!==0||a!==null&&(a.flags&128)!==0)for(a=o.child;a!==null;){if(b=td(a),b!==null){for(o.flags|=128,Eu(h,!1),a=b.updateQueue,o.updateQueue=a,md(o,a),o.subtreeFlags=0,a=u,u=o.child;u!==null;)vj(u,a),u=u.sibling;return X(kt,kt.current&1|2),Fe&&xa(o,h.treeForkCount),o.child}a=a.sibling}h.tail!==null&&Qt()>bd&&(o.flags|=128,y=!0,Eu(h,!1),o.lanes=4194304)}else{if(!y)if(a=td(b),a!==null){if(o.flags|=128,y=!0,a=a.updateQueue,o.updateQueue=a,md(o,a),Eu(h,!0),h.tail===null&&h.tailMode==="hidden"&&!b.alternate&&!Fe)return _t(o),null}else 2*Qt()-h.renderingStartTime>bd&&u!==536870912&&(o.flags|=128,y=!0,Eu(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=Qt(),a.sibling=null,u=kt.current,X(kt,y?u&1|2:u&1),Fe&&xa(o,h.treeForkCount),a):(_t(o),null);case 22:case 23:return qn(o),$v(),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&&(_t(o),o.subtreeFlags&6&&(o.flags|=8192)):_t(o),u=o.updateQueue,u!==null&&md(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(so),null;case 24:return u=null,a!==null&&(u=a.memoizedState.cache),o.memoizedState.cache!==u&&(o.flags|=2048),Sa(It),_t(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function eq(a,o){switch(wv(o),o.tag){case 1:return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 3:return Sa(It),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(qn(o),o.alternate===null)throw Error(r(340));ao()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 13:if(qn(o),a=o.memoizedState,a!==null&&a.dehydrated!==null){if(o.alternate===null)throw Error(r(340));ao()}return a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 19:return F(kt),null;case 4:return ie(),null;case 10:return Sa(o.type),null;case 22:case 23:return qn(o),$v(),a!==null&&F(so),a=o.flags,a&65536?(o.flags=a&-65537|128,o):null;case 24:return Sa(It),null;case 25:return null;default:return null}}function HE(a,o){switch(wv(o),o.tag){case 3:Sa(It),ie();break;case 26:case 27:case 5:ve(o);break;case 4:ie();break;case 31:o.memoizedState!==null&&qn(o);break;case 13:qn(o);break;case 19:F(kt);break;case 10:Sa(o.type);break;case 22:case 23:qn(o),$v(),a!==null&&F(so);break;case 24:Sa(It)}}function Au(a,o){try{var u=o.updateQueue,h=u!==null?u.lastEffect:null;if(h!==null){var y=h.next;u=y;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!==y)}}catch(P){ut(o,o.return,P)}}function hi(a,o,u){try{var h=o.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var b=y.next;h=b;do{if((h.tag&a)===a){var C=h.inst,P=C.destroy;if(P!==void 0){C.destroy=void 0,y=o;var U=u,ee=P;try{ee()}catch(oe){ut(y,U,oe)}}}h=h.next}while(h!==b)}}catch(oe){ut(o,o.return,oe)}}function FE(a){var o=a.updateQueue;if(o!==null){var u=a.stateNode;try{Pj(o,u)}catch(h){ut(a,a.return,h)}}}function GE(a,o,u){u.props=ho(a.type,a.memoizedProps),u.state=a.memoizedState;try{u.componentWillUnmount()}catch(h){ut(a,o,h)}}function Tu(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(y){ut(a,o,y)}}function Wr(a,o){var u=a.ref,h=a.refCleanup;if(u!==null)if(typeof h=="function")try{h()}catch(y){ut(a,o,y)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof u=="function")try{u(null)}catch(y){ut(a,o,y)}else u.current=null}function VE(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(y){ut(a,a.return,y)}}function mg(a,o,u){try{var h=a.stateNode;Sq(h,a.type,u,o),h[En]=o}catch(y){ut(a,a.return,y)}}function YE(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&xi(a.type)||a.tag===4}function pg(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||YE(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&&xi(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 vg(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=ga));else if(h!==4&&(h===27&&xi(a.type)&&(u=a.stateNode,o=null),a=a.child,a!==null))for(vg(a,o,u),a=a.sibling;a!==null;)vg(a,o,u),a=a.sibling}function pd(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&&xi(a.type)&&(u=a.stateNode),a=a.child,a!==null))for(pd(a,o,u),a=a.sibling;a!==null;)pd(a,o,u),a=a.sibling}function WE(a){var o=a.stateNode,u=a.memoizedProps;try{for(var h=a.type,y=o.attributes;y.length;)o.removeAttributeNode(y[0]);ln(o,h,u),o[rn]=a,o[En]=u}catch(b){ut(a,a.return,b)}}var Aa=!1,qt=!1,gg=!1,KE=typeof WeakSet=="function"?WeakSet:Set,en=null;function tq(a,o){if(a=a.containerInfo,Ig=$d,a=sj(a),cv(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 y=h.anchorOffset,b=h.focusNode;h=h.focusOffset;try{u.nodeType,b.nodeType}catch{u=null;break e}var C=0,P=-1,U=-1,ee=0,oe=0,fe=a,te=null;t:for(;;){for(var re;fe!==u||y!==0&&fe.nodeType!==3||(P=C+y),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===y&&(P=C),te===b&&++oe===h&&(U=C),(re=fe.nextSibling)!==null)break;fe=te,te=fe.parentNode}fe=re}u=P===-1||U===-1?null:{start:P,end:U}}else u=null}u=u||{start:0,end:0}}else u=null;for(zg={focusedElem:a,selectionRange:u},$d=!1,en=o;en!==null;)if(o=en,a=o.child,(o.subtreeFlags&1028)!==0&&a!==null)a.return=o,en=a;else for(;en!==null;){switch(o=en,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++)y=a[u],y.ref.impl=y.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&b!==null){a=void 0,u=o,y=b.memoizedProps,b=b.memoizedState,h=u.stateNode;try{var we=ho(u.type,y);a=h.getSnapshotBeforeUpdate(we,b),h.__reactInternalSnapshotBeforeUpdate=a}catch(Ae){ut(u,u.return,Ae)}}break;case 3:if((a&1024)!==0){if(a=o.stateNode.containerInfo,u=a.nodeType,u===9)Ug(a);else if(u===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":Ug(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,en=a;break}en=o.return}}function XE(a,o,u){var h=u.flags;switch(u.tag){case 0:case 11:case 15:Ca(a,u),h&4&&Au(5,u);break;case 1:if(Ca(a,u),h&4)if(a=u.stateNode,o===null)try{a.componentDidMount()}catch(C){ut(u,u.return,C)}else{var y=ho(u.type,o.memoizedProps);o=o.memoizedState;try{a.componentDidUpdate(y,o,a.__reactInternalSnapshotBeforeUpdate)}catch(C){ut(u,u.return,C)}}h&64&&FE(u),h&512&&Tu(u,u.return);break;case 3:if(Ca(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{Pj(a,o)}catch(C){ut(u,u.return,C)}}break;case 27:o===null&&h&4&&WE(u);case 26:case 5:Ca(a,u),o===null&&h&4&&VE(u),h&512&&Tu(u,u.return);break;case 12:Ca(a,u);break;case 31:Ca(a,u),h&4&&JE(a,u);break;case 13:Ca(a,u),h&4&&eA(a,u),h&64&&(a=u.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(u=cq.bind(null,u),Nq(a,u))));break;case 22:if(h=u.memoizedState!==null||Aa,!h){o=o!==null&&o.memoizedState!==null||qt,y=Aa;var b=qt;Aa=h,(qt=o)&&!b?Na(a,u,(u.subtreeFlags&8772)!==0):Ca(a,u),Aa=y,qt=b}break;case 30:break;default:Ca(a,u)}}function QE(a){var o=a.alternate;o!==null&&(a.alternate=null,QE(o)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(o=a.stateNode,o!==null&&Yp(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 At=null,Tn=!1;function Ta(a,o,u){for(u=u.child;u!==null;)ZE(a,o,u),u=u.sibling}function ZE(a,o,u){if(bn&&typeof bn.onCommitFiberUnmount=="function")try{bn.onCommitFiberUnmount(Ki,u)}catch{}switch(u.tag){case 26:qt||Wr(u,o),Ta(a,o,u),u.memoizedState?u.memoizedState.count--:u.stateNode&&(u=u.stateNode,u.parentNode.removeChild(u));break;case 27:qt||Wr(u,o);var h=At,y=Tn;xi(u.type)&&(At=u.stateNode,Tn=!1),Ta(a,o,u),Lu(u.stateNode),At=h,Tn=y;break;case 5:qt||Wr(u,o);case 6:if(h=At,y=Tn,At=null,Ta(a,o,u),At=h,Tn=y,At!==null)if(Tn)try{(At.nodeType===9?At.body:At.nodeName==="HTML"?At.ownerDocument.body:At).removeChild(u.stateNode)}catch(b){ut(u,o,b)}else try{At.removeChild(u.stateNode)}catch(b){ut(u,o,b)}break;case 18:At!==null&&(Tn?(a=At,FA(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,u.stateNode),Ps(a)):FA(At,u.stateNode));break;case 4:h=At,y=Tn,At=u.stateNode.containerInfo,Tn=!0,Ta(a,o,u),At=h,Tn=y;break;case 0:case 11:case 14:case 15:hi(2,u,o),qt||hi(4,u,o),Ta(a,o,u);break;case 1:qt||(Wr(u,o),h=u.stateNode,typeof h.componentWillUnmount=="function"&&GE(u,o,h)),Ta(a,o,u);break;case 21:Ta(a,o,u);break;case 22:qt=(h=qt)||u.memoizedState!==null,Ta(a,o,u),qt=h;break;default:Ta(a,o,u)}}function JE(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{Ps(a)}catch(u){ut(o,o.return,u)}}}function eA(a,o){if(o.memoizedState===null&&(a=o.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{Ps(a)}catch(u){ut(o,o.return,u)}}function nq(a){switch(a.tag){case 31:case 13:case 19:var o=a.stateNode;return o===null&&(o=a.stateNode=new KE),o;case 22:return a=a.stateNode,o=a._retryCache,o===null&&(o=a._retryCache=new KE),o;default:throw Error(r(435,a.tag))}}function vd(a,o){var u=nq(a);o.forEach(function(h){if(!u.has(h)){u.add(h);var y=fq.bind(null,a,h);h.then(y,y)}})}function Cn(a,o){var u=o.deletions;if(u!==null)for(var h=0;h<u.length;h++){var y=u[h],b=a,C=o,P=C;e:for(;P!==null;){switch(P.tag){case 27:if(xi(P.type)){At=P.stateNode,Tn=!1;break e}break;case 5:At=P.stateNode,Tn=!1;break e;case 3:case 4:At=P.stateNode.containerInfo,Tn=!0;break e}P=P.return}if(At===null)throw Error(r(160));ZE(b,C,y),At=null,Tn=!1,b=y.alternate,b!==null&&(b.return=null),y.return=null}if(o.subtreeFlags&13886)for(o=o.child;o!==null;)tA(o,a),o=o.sibling}var _r=null;function tA(a,o){var u=a.alternate,h=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Cn(o,a),Nn(a),h&4&&(hi(3,a,a.return),Au(3,a),hi(5,a,a.return));break;case 1:Cn(o,a),Nn(a),h&512&&(qt||u===null||Wr(u,u.return)),h&64&&Aa&&(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 y=_r;if(Cn(o,a),Nn(a),h&512&&(qt||u===null||Wr(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,y=y.ownerDocument||y;t:switch(h){case"title":b=y.getElementsByTagName("title")[0],(!b||b[tu]||b[rn]||b.namespaceURI==="http://www.w3.org/2000/svg"||b.hasAttribute("itemprop"))&&(b=y.createElement(h),y.head.insertBefore(b,y.querySelector("head > title"))),ln(b,h,u),b[rn]=a,Jt(b),h=b;break e;case"link":var C=tT("link","href",y).get(h+(u.href||""));if(C){for(var P=0;P<C.length;P++)if(b=C[P],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(P,1);break t}}b=y.createElement(h),ln(b,h,u),y.head.appendChild(b);break;case"meta":if(C=tT("meta","content",y).get(h+(u.content||""))){for(P=0;P<C.length;P++)if(b=C[P],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(P,1);break t}}b=y.createElement(h),ln(b,h,u),y.head.appendChild(b);break;default:throw Error(r(468,h))}b[rn]=a,Jt(b),h=b}a.stateNode=h}else nT(y,a.type,a.stateNode);else a.stateNode=eT(y,h,a.memoizedProps);else b!==h?(b===null?u.stateNode!==null&&(u=u.stateNode,u.parentNode.removeChild(u)):b.count--,h===null?nT(y,a.type,a.stateNode):eT(y,h,a.memoizedProps)):h===null&&a.stateNode!==null&&mg(a,a.memoizedProps,u.memoizedProps)}break;case 27:Cn(o,a),Nn(a),h&512&&(qt||u===null||Wr(u,u.return)),u!==null&&h&4&&mg(a,a.memoizedProps,u.memoizedProps);break;case 5:if(Cn(o,a),Nn(a),h&512&&(qt||u===null||Wr(u,u.return)),a.flags&32){y=a.stateNode;try{rs(y,"")}catch(we){ut(a,a.return,we)}}h&4&&a.stateNode!=null&&(y=a.memoizedProps,mg(a,y,u!==null?u.memoizedProps:y)),h&1024&&(gg=!0);break;case 6:if(Cn(o,a),Nn(a),h&4){if(a.stateNode===null)throw Error(r(162));h=a.memoizedProps,u=a.stateNode;try{u.nodeValue=h}catch(we){ut(a,a.return,we)}}break;case 3:if(Rd=null,y=_r,_r=Nd(o.containerInfo),Cn(o,a),_r=y,Nn(a),h&4&&u!==null&&u.memoizedState.isDehydrated)try{Ps(o.containerInfo)}catch(we){ut(a,a.return,we)}gg&&(gg=!1,nA(a));break;case 4:h=_r,_r=Nd(a.stateNode.containerInfo),Cn(o,a),Nn(a),_r=h;break;case 12:Cn(o,a),Nn(a);break;case 31:Cn(o,a),Nn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,vd(a,h)));break;case 13:Cn(o,a),Nn(a),a.child.flags&8192&&a.memoizedState!==null!=(u!==null&&u.memoizedState!==null)&&(yd=Qt()),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,vd(a,h)));break;case 22:y=a.memoizedState!==null;var U=u!==null&&u.memoizedState!==null,ee=Aa,oe=qt;if(Aa=ee||y,qt=oe||U,Cn(o,a),qt=oe,Aa=ee,Nn(a),h&8192)e:for(o=a.stateNode,o._visibility=y?o._visibility&-2:o._visibility|1,y&&(u===null||U||Aa||qt||mo(a)),u=null,o=a;;){if(o.tag===5||o.tag===26){if(u===null){U=u=o;try{if(b=U.stateNode,y)C=b.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{P=U.stateNode;var fe=U.memoizedProps.style,te=fe!=null&&fe.hasOwnProperty("display")?fe.display:null;P.style.display=te==null||typeof te=="boolean"?"":(""+te).trim()}}catch(we){ut(U,U.return,we)}}}else if(o.tag===6){if(u===null){U=o;try{U.stateNode.nodeValue=y?"":U.memoizedProps}catch(we){ut(U,U.return,we)}}}else if(o.tag===18){if(u===null){U=o;try{var re=U.stateNode;y?GA(re,!0):GA(U.stateNode,!1)}catch(we){ut(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,vd(a,u))));break;case 19:Cn(o,a),Nn(a),h&4&&(h=a.updateQueue,h!==null&&(a.updateQueue=null,vd(a,h)));break;case 30:break;case 21:break;default:Cn(o,a),Nn(a)}}function Nn(a){var o=a.flags;if(o&2){try{for(var u,h=a.return;h!==null;){if(YE(h)){u=h;break}h=h.return}if(u==null)throw Error(r(160));switch(u.tag){case 27:var y=u.stateNode,b=pg(a);pd(a,b,y);break;case 5:var C=u.stateNode;u.flags&32&&(rs(C,""),u.flags&=-33);var P=pg(a);pd(a,P,C);break;case 3:case 4:var U=u.stateNode.containerInfo,ee=pg(a);vg(a,ee,U);break;default:throw Error(r(161))}}catch(oe){ut(a,a.return,oe)}a.flags&=-3}o&4096&&(a.flags&=-4097)}function nA(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var o=a;nA(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),a=a.sibling}}function Ca(a,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)XE(a,o.alternate,o),o=o.sibling}function mo(a){for(a=a.child;a!==null;){var o=a;switch(o.tag){case 0:case 11:case 14:case 15:hi(4,o,o.return),mo(o);break;case 1:Wr(o,o.return);var u=o.stateNode;typeof u.componentWillUnmount=="function"&&GE(o,o.return,u),mo(o);break;case 27:Lu(o.stateNode);case 26:case 5:Wr(o,o.return),mo(o);break;case 22:o.memoizedState===null&&mo(o);break;case 30:mo(o);break;default:mo(o)}a=a.sibling}}function Na(a,o,u){for(u=u&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,y=a,b=o,C=b.flags;switch(b.tag){case 0:case 11:case 15:Na(y,b,u),Au(4,b);break;case 1:if(Na(y,b,u),h=b,y=h.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(ee){ut(h,h.return,ee)}if(h=b,y=h.updateQueue,y!==null){var P=h.stateNode;try{var U=y.shared.hiddenCallbacks;if(U!==null)for(y.shared.hiddenCallbacks=null,y=0;y<U.length;y++)Dj(U[y],P)}catch(ee){ut(h,h.return,ee)}}u&&C&64&&FE(b),Tu(b,b.return);break;case 27:WE(b);case 26:case 5:Na(y,b,u),u&&h===null&&C&4&&VE(b),Tu(b,b.return);break;case 12:Na(y,b,u);break;case 31:Na(y,b,u),u&&C&4&&JE(y,b);break;case 13:Na(y,b,u),u&&C&4&&eA(y,b);break;case 22:b.memoizedState===null&&Na(y,b,u),Tu(b,b.return);break;case 30:break;default:Na(y,b,u)}o=o.sibling}}function yg(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&&mu(u))}function bg(a,o){a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&mu(a))}function jr(a,o,u,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)rA(a,o,u,h),o=o.sibling}function rA(a,o,u,h){var y=o.flags;switch(o.tag){case 0:case 11:case 15:jr(a,o,u,h),y&2048&&Au(9,o);break;case 1:jr(a,o,u,h);break;case 3:jr(a,o,u,h),y&2048&&(a=null,o.alternate!==null&&(a=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==a&&(o.refCount++,a!=null&&mu(a)));break;case 12:if(y&2048){jr(a,o,u,h),a=o.stateNode;try{var b=o.memoizedProps,C=b.id,P=b.onPostCommit;typeof P=="function"&&P(C,o.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(U){ut(o,o.return,U)}}else jr(a,o,u,h);break;case 31:jr(a,o,u,h);break;case 13:jr(a,o,u,h);break;case 23:break;case 22:b=o.stateNode,C=o.alternate,o.memoizedState!==null?b._visibility&2?jr(a,o,u,h):Cu(a,o):b._visibility&2?jr(a,o,u,h):(b._visibility|=2,Os(a,o,u,h,(o.subtreeFlags&10256)!==0||!1)),y&2048&&yg(C,o);break;case 24:jr(a,o,u,h),y&2048&&bg(o.alternate,o);break;default:jr(a,o,u,h)}}function Os(a,o,u,h,y){for(y=y&&((o.subtreeFlags&10256)!==0||!1),o=o.child;o!==null;){var b=a,C=o,P=u,U=h,ee=C.flags;switch(C.tag){case 0:case 11:case 15:Os(b,C,P,U,y),Au(8,C);break;case 23:break;case 22:var oe=C.stateNode;C.memoizedState!==null?oe._visibility&2?Os(b,C,P,U,y):Cu(b,C):(oe._visibility|=2,Os(b,C,P,U,y)),y&&ee&2048&&yg(C.alternate,C);break;case 24:Os(b,C,P,U,y),y&&ee&2048&&bg(C.alternate,C);break;default:Os(b,C,P,U,y)}o=o.sibling}}function Cu(a,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var u=a,h=o,y=h.flags;switch(h.tag){case 22:Cu(u,h),y&2048&&yg(h.alternate,h);break;case 24:Cu(u,h),y&2048&&bg(h.alternate,h);break;default:Cu(u,h)}o=o.sibling}}var Nu=8192;function _s(a,o,u){if(a.subtreeFlags&Nu)for(a=a.child;a!==null;)aA(a,o,u),a=a.sibling}function aA(a,o,u){switch(a.tag){case 26:_s(a,o,u),a.flags&Nu&&a.memoizedState!==null&&Uq(u,_r,a.memoizedState,a.memoizedProps);break;case 5:_s(a,o,u);break;case 3:case 4:var h=_r;_r=Nd(a.stateNode.containerInfo),_s(a,o,u),_r=h;break;case 22:a.memoizedState===null&&(h=a.alternate,h!==null&&h.memoizedState!==null?(h=Nu,Nu=16777216,_s(a,o,u),Nu=h):_s(a,o,u));break;default:_s(a,o,u)}}function iA(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 Mu(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];en=h,sA(h,a)}iA(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)oA(a),a=a.sibling}function oA(a){switch(a.tag){case 0:case 11:case 15:Mu(a),a.flags&2048&&hi(9,a,a.return);break;case 3:Mu(a);break;case 12:Mu(a);break;case 22:var o=a.stateNode;a.memoizedState!==null&&o._visibility&2&&(a.return===null||a.return.tag!==13)?(o._visibility&=-3,gd(a)):Mu(a);break;default:Mu(a)}}function gd(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];en=h,sA(h,a)}iA(a)}for(a=a.child;a!==null;){switch(o=a,o.tag){case 0:case 11:case 15:hi(8,o,o.return),gd(o);break;case 22:u=o.stateNode,u._visibility&2&&(u._visibility&=-3,gd(o));break;default:gd(o)}a=a.sibling}}function sA(a,o){for(;en!==null;){var u=en;switch(u.tag){case 0:case 11:case 15:hi(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:mu(u.memoizedState.cache)}if(h=u.child,h!==null)h.return=u,en=h;else e:for(u=a;en!==null;){h=en;var y=h.sibling,b=h.return;if(QE(h),h===u){en=null;break e}if(y!==null){y.return=b,en=y;break e}en=b}}}var rq={getCacheForType:function(a){var o=on(It),u=o.data.get(a);return u===void 0&&(u=a(),o.data.set(a,u)),u},cacheSignal:function(){return on(It).controller.signal}},aq=typeof WeakMap=="function"?WeakMap:Map,at=0,yt=null,Le=null,Ue=0,lt=0,Un=null,mi=!1,js=!1,xg=!1,Ma=0,Dt=0,pi=0,po=0,wg=0,Hn=0,Es=0,Ru=null,Mn=null,Sg=!1,yd=0,lA=0,bd=1/0,xd=null,vi=null,Gt=0,gi=null,As=null,Ra=0,Og=0,_g=null,uA=null,Du=0,jg=null;function Fn(){return(at&2)!==0&&Ue!==0?Ue&-Ue:k.T!==null?Mg():Gp()}function cA(){if(Hn===0)if((Ue&536870912)===0||Fe){var a=Ko;Ko<<=1,(Ko&3932160)===0&&(Ko=262144),Hn=a}else Hn=536870912;return a=Bn.current,a!==null&&(a.flags|=32),Hn}function Rn(a,o,u){(a===yt&&(lt===2||lt===9)||a.cancelPendingCommit!==null)&&(Ts(a,0),yi(a,Ue,Hn,!1)),Mt(a,u),((at&2)===0||a!==yt)&&(a===yt&&((at&2)===0&&(po|=u),Dt===4&&yi(a,Ue,Hn,!1)),Kr(a))}function fA(a,o,u){if((at&6)!==0)throw Error(r(327));var h=!u&&(o&127)===0&&(o&a.expiredLanes)===0||Et(a,o),y=h?sq(a,o):Ag(a,o,!0),b=h;do{if(y===0){js&&!h&&yi(a,o,0,!1);break}else{if(u=a.current.alternate,b&&!iq(u)){y=Ag(a,o,!1),b=!1;continue}if(y===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 P=a;y=Ru;var U=P.current.memoizedState.isDehydrated;if(U&&(Ts(P,C).flags|=256),C=Ag(P,C,!1),C!==2){if(xg&&!U){P.errorRecoveryDisabledLanes|=b,po|=b,y=4;break e}b=Mn,Mn=y,b!==null&&(Mn===null?Mn=b:Mn.push.apply(Mn,b))}y=C}if(b=!1,y!==2)continue}}if(y===1){Ts(a,0),yi(a,o,0,!0);break}e:{switch(h=a,b=y,b){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:yi(h,o,Hn,!mi);break e;case 2:Mn=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(y=yd+300-Qt(),10<y)){if(yi(h,o,Hn,!mi),Ce(h,0,!0)!==0)break e;Ra=o,h.timeoutHandle=UA(dA.bind(null,h,u,Mn,xd,Sg,o,Hn,po,Es,mi,b,"Throttled",-0,0),y);break e}dA(h,u,Mn,xd,Sg,o,Hn,po,Es,mi,b,null,-0,0)}}break}while(!0);Kr(a)}function dA(a,o,u,h,y,b,C,P,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:ga},aA(o,b,fe);var we=(b&62914560)===b?yd-Qt():(b&4194048)===b?lA-Qt():0;if(we=Hq(fe,we),we!==null){Ra=b,a.cancelPendingCommit=we(xA.bind(null,a,o,b,u,h,y,C,P,U,oe,fe,null,te,re)),yi(a,b,C,!ee);return}}xA(a,o,b,u,h,y,C,P,U)}function iq(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 y=u[h],b=y.getSnapshot;y=y.value;try{if(!In(b(),y))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 yi(a,o,u,h){o&=~wg,o&=~po,a.suspendedLanes|=o,a.pingedLanes&=~o,h&&(a.warmLanes|=o),h=a.expirationTimes;for(var y=o;0<y;){var b=31-dn(y),C=1<<b;h[b]=-1,y&=~C}u!==0&&Qi(a,u,o)}function wd(){return(at&6)===0?(Pu(0),!1):!0}function Eg(){if(Le!==null){if(lt===0)var a=Le.return;else a=Le,wa=io=null,Uv(a),ys=null,vu=0,a=Le;for(;a!==null;)HE(a.alternate,a),a=a.return;Le=null}}function Ts(a,o){var u=a.timeoutHandle;u!==-1&&(a.timeoutHandle=-1,jq(u)),u=a.cancelPendingCommit,u!==null&&(a.cancelPendingCommit=null,u()),Ra=0,Eg(),yt=a,Le=u=ba(a.current,null),Ue=o,lt=0,Un=null,mi=!1,js=Et(a,o),xg=!1,Es=Hn=wg=po=pi=Dt=0,Mn=Ru=null,Sg=!1,(o&8)!==0&&(o|=o&32);var h=a.entangledLanes;if(h!==0)for(a=a.entanglements,h&=o;0<h;){var y=31-dn(h),b=1<<y;o|=a[y],h&=~b}return Ma=o,Uf(),u}function hA(a,o){Me=null,k.H=_u,o===gs||o===Xf?(o=Cj(),lt=3):o===Nv?(o=Cj(),lt=4):lt=o===ag?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,Un=o,Le===null&&(Dt=1,cd(a,rr(o,a.current)))}function mA(){var a=Bn.current;return a===null?!0:(Ue&4194048)===Ue?sr===null:(Ue&62914560)===Ue||(Ue&536870912)!==0?a===sr:!1}function pA(){var a=k.H;return k.H=_u,a===null?_u:a}function vA(){var a=k.A;return k.A=rq,a}function Sd(){Dt=4,mi||(Ue&4194048)!==Ue&&Bn.current!==null||(js=!0),(pi&134217727)===0&&(po&134217727)===0||yt===null||yi(yt,Ue,Hn,!1)}function Ag(a,o,u){var h=at;at|=2;var y=pA(),b=vA();(yt!==a||Ue!==o)&&(xd=null,Ts(a,o)),o=!1;var C=Dt;e:do try{if(lt!==0&&Le!==null){var P=Le,U=Un;switch(lt){case 8:Eg(),C=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(o=!0);var ee=lt;if(lt=0,Un=null,Cs(a,P,U,ee),u&&js){C=0;break e}break;default:ee=lt,lt=0,Un=null,Cs(a,P,U,ee)}}oq(),C=Dt;break}catch(oe){hA(a,oe)}while(!0);return o&&a.shellSuspendCounter++,wa=io=null,at=h,k.H=y,k.A=b,Le===null&&(yt=null,Ue=0,Uf()),C}function oq(){for(;Le!==null;)gA(Le)}function sq(a,o){var u=at;at|=2;var h=pA(),y=vA();yt!==a||Ue!==o?(xd=null,bd=Qt()+500,Ts(a,o)):js=Et(a,o);e:do try{if(lt!==0&&Le!==null){o=Le;var b=Un;t:switch(lt){case 1:lt=0,Un=null,Cs(a,o,b,1);break;case 2:case 9:if(Aj(b)){lt=0,Un=null,yA(o);break}o=function(){lt!==2&<!==9||yt!==a||(lt=7),Kr(a)},b.then(o,o);break e;case 3:lt=7;break e;case 4:lt=5;break e;case 7:Aj(b)?(lt=0,Un=null,yA(o)):(lt=0,Un=null,Cs(a,o,b,7));break;case 5:var C=null;switch(Le.tag){case 26:C=Le.memoizedState;case 5:case 27:var P=Le;if(C?rT(C):P.stateNode.complete){lt=0,Un=null;var U=P.sibling;if(U!==null)Le=U;else{var ee=P.return;ee!==null?(Le=ee,Od(ee)):Le=null}break t}}lt=0,Un=null,Cs(a,o,b,5);break;case 6:lt=0,Un=null,Cs(a,o,b,6);break;case 8:Eg(),Dt=6;break e;default:throw Error(r(462))}}lq();break}catch(oe){hA(a,oe)}while(!0);return wa=io=null,k.H=h,k.A=y,at=u,Le!==null?0:(yt=null,Ue=0,Uf(),Dt)}function lq(){for(;Le!==null&&!Nt();)gA(Le)}function gA(a){var o=qE(a.alternate,a,Ma);a.memoizedProps=a.pendingProps,o===null?Od(a):Le=o}function yA(a){var o=a,u=o.alternate;switch(o.tag){case 15:case 0:o=kE(u,o,o.pendingProps,o.type,void 0,Ue);break;case 11:o=kE(u,o,o.pendingProps,o.type.render,o.ref,Ue);break;case 5:Uv(o);default:HE(u,o),o=Le=vj(o,Ma),o=qE(u,o,Ma)}a.memoizedProps=a.pendingProps,o===null?Od(a):Le=o}function Cs(a,o,u,h){wa=io=null,Uv(o),ys=null,vu=0;var y=o.return;try{if(XB(a,y,o,u,Ue)){Dt=1,cd(a,rr(u,a.current)),Le=null;return}}catch(b){if(y!==null)throw Le=y,b;Dt=1,cd(a,rr(u,a.current)),Le=null;return}o.flags&32768?(Fe||h===1?a=!0:js||(Ue&536870912)!==0?a=!1:(mi=a=!0,(h===2||h===9||h===3||h===6)&&(h=Bn.current,h!==null&&h.tag===13&&(h.flags|=16384))),bA(o,a)):Od(o)}function Od(a){var o=a;do{if((o.flags&32768)!==0){bA(o,mi);return}a=o.return;var u=JB(o.alternate,o,Ma);if(u!==null){Le=u;return}if(o=o.sibling,o!==null){Le=o;return}Le=o=a}while(o!==null);Dt===0&&(Dt=5)}function bA(a,o){do{var u=eq(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);Dt=6,Le=null}function xA(a,o,u,h,y,b,C,P,U){a.cancelPendingCommit=null;do _d();while(Gt!==0);if((at&6)!==0)throw Error(r(327));if(o!==null){if(o===a.current)throw Error(r(177));if(b=o.lanes|o.childLanes,b|=pv,On(a,u,b,C,P,U),a===yt&&(Le=yt=null,Ue=0),As=o,gi=a,Ra=u,Og=b,_g=y,uA=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,dq(Wi,function(){return jA(),null})):(a.callbackNode=null,a.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=k.T,k.T=null,y=q.p,q.p=2,C=at,at|=4;try{tq(a,o,u)}finally{at=C,q.p=y,k.T=h}}Gt=1,wA(),SA(),OA()}}function wA(){if(Gt===1){Gt=0;var a=gi,o=As,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 y=at;at|=4;try{tA(o,a);var b=zg,C=sj(a.containerInfo),P=b.focusedElem,U=b.selectionRange;if(C!==P&&P&&P.ownerDocument&&oj(P.ownerDocument.documentElement,P)){if(U!==null&&cv(P)){var ee=U.start,oe=U.end;if(oe===void 0&&(oe=ee),"selectionStart"in P)P.selectionStart=ee,P.selectionEnd=Math.min(oe,P.value.length);else{var fe=P.ownerDocument||document,te=fe&&fe.defaultView||window;if(te.getSelection){var re=te.getSelection(),we=P.textContent.length,Ae=Math.min(U.start,we),mt=U.end===void 0?Ae:Math.min(U.end,we);!re.extend&&Ae>mt&&(C=mt,mt=Ae,Ae=C);var Z=ij(P,Ae),G=ij(P,mt);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(),Ae>mt?(re.addRange(J),re.extend(G.node,G.offset)):(J.setEnd(G.node,G.offset),re.addRange(J))}}}}for(fe=[],re=P;re=re.parentNode;)re.nodeType===1&&fe.push({element:re,left:re.scrollLeft,top:re.scrollTop});for(typeof P.focus=="function"&&P.focus(),P=0;P<fe.length;P++){var ue=fe[P];ue.element.scrollLeft=ue.left,ue.element.scrollTop=ue.top}}$d=!!Ig,zg=Ig=null}finally{at=y,q.p=h,k.T=u}}a.current=o,Gt=2}}function SA(){if(Gt===2){Gt=0;var a=gi,o=As,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 y=at;at|=4;try{XE(a,o.alternate,o)}finally{at=y,q.p=h,k.T=u}}Gt=3}}function OA(){if(Gt===4||Gt===3){Gt=0,Jn();var a=gi,o=As,u=Ra,h=uA;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?Gt=5:(Gt=0,As=gi=null,_A(a,a.pendingLanes));var y=a.pendingLanes;if(y===0&&(vi=null),Sr(u),o=o.stateNode,bn&&typeof bn.onCommitFiberRoot=="function")try{bn.onCommitFiberRoot(Ki,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=k.T,y=q.p,q.p=2,k.T=null;try{for(var b=a.onRecoverableError,C=0;C<h.length;C++){var P=h[C];b(P.value,{componentStack:P.stack})}}finally{k.T=o,q.p=y}}(Ra&3)!==0&&_d(),Kr(a),y=a.pendingLanes,(u&261930)!==0&&(y&42)!==0?a===jg?Du++:(Du=0,jg=a):Du=0,Pu(0)}}function _A(a,o){(a.pooledCacheLanes&=o)===0&&(o=a.pooledCache,o!=null&&(a.pooledCache=null,mu(o)))}function _d(){return wA(),SA(),OA(),jA()}function jA(){if(Gt!==5)return!1;var a=gi,o=Og;Og=0;var u=Sr(Ra),h=k.T,y=q.p;try{q.p=32>u?32:u,k.T=null,u=_g,_g=null;var b=gi,C=Ra;if(Gt=0,As=gi=null,Ra=0,(at&6)!==0)throw Error(r(331));var P=at;if(at|=4,oA(b.current),rA(b,b.current,C,u),at=P,Pu(0,!1),bn&&typeof bn.onPostCommitFiberRoot=="function")try{bn.onPostCommitFiberRoot(Ki,b)}catch{}return!0}finally{q.p=y,k.T=h,_A(a,o)}}function EA(a,o,u){o=rr(u,o),o=rg(a.stateNode,o,2),a=ci(a,o,2),a!==null&&(Mt(a,2),Kr(a))}function ut(a,o,u){if(a.tag===3)EA(a,a,u);else for(;o!==null;){if(o.tag===3){EA(o,a,u);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(vi===null||!vi.has(h))){a=rr(u,a),u=AE(2),h=ci(o,u,2),h!==null&&(TE(u,h,o,a),Mt(h,2),Kr(h));break}}o=o.return}}function Tg(a,o,u){var h=a.pingCache;if(h===null){h=a.pingCache=new aq;var y=new Set;h.set(o,y)}else y=h.get(o),y===void 0&&(y=new Set,h.set(o,y));y.has(u)||(xg=!0,y.add(u),a=uq.bind(null,a,o,u),o.then(a,a))}function uq(a,o,u){var h=a.pingCache;h!==null&&h.delete(o),a.pingedLanes|=a.suspendedLanes&u,a.warmLanes&=~u,yt===a&&(Ue&u)===u&&(Dt===4||Dt===3&&(Ue&62914560)===Ue&&300>Qt()-yd?(at&2)===0&&Ts(a,0):wg|=u,Es===Ue&&(Es=0)),Kr(a)}function AA(a,o){o===0&&(o=hn()),a=no(a,o),a!==null&&(Mt(a,o),Kr(a))}function cq(a){var o=a.memoizedState,u=0;o!==null&&(u=o.retryLane),AA(a,u)}function fq(a,o){var u=0;switch(a.tag){case 31:case 13:var h=a.stateNode,y=a.memoizedState;y!==null&&(u=y.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),AA(a,u)}function dq(a,o){return Hr(a,o)}var jd=null,Ns=null,Cg=!1,Ed=!1,Ng=!1,bi=0;function Kr(a){a!==Ns&&a.next===null&&(Ns===null?jd=Ns=a:Ns=Ns.next=a),Ed=!0,Cg||(Cg=!0,mq())}function Pu(a,o){if(!Ng&&Ed){Ng=!0;do for(var u=!1,h=jd;h!==null;){if(a!==0){var y=h.pendingLanes;if(y===0)var b=0;else{var C=h.suspendedLanes,P=h.pingedLanes;b=(1<<31-dn(42|a)+1)-1,b&=y&~(C&~P),b=b&201326741?b&201326741|1:b?b|2:0}b!==0&&(u=!0,MA(h,b))}else b=Ue,b=Ce(h,h===yt?b:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(b&3)===0||Et(h,b)||(u=!0,MA(h,b));h=h.next}while(u);Ng=!1}}function hq(){TA()}function TA(){Ed=Cg=!1;var a=0;bi!==0&&_q()&&(a=bi);for(var o=Qt(),u=null,h=jd;h!==null;){var y=h.next,b=CA(h,o);b===0?(h.next=null,u===null?jd=y:u.next=y,y===null&&(Ns=u)):(u=h,(a!==0||(b&3)!==0)&&(Ed=!0)),h=y}Gt!==0&&Gt!==5||Pu(a),bi!==0&&(bi=0)}function CA(a,o){for(var u=a.suspendedLanes,h=a.pingedLanes,y=a.expirationTimes,b=a.pendingLanes&-62914561;0<b;){var C=31-dn(b),P=1<<C,U=y[C];U===-1?((P&u)===0||(P&h)!==0)&&(y[C]=Zt(P,o)):U<=o&&(a.expiredLanes|=P),b&=~P}if(o=yt,u=Ue,u=Ce(a,a===o?u:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h=a.callbackNode,u===0||a===o&&(lt===2||lt===9)||a.cancelPendingCommit!==null)return h!==null&&h!==null&&Ln(h),a.callbackNode=null,a.callbackPriority=0;if((u&3)===0||Et(a,u)){if(o=u&-u,o===a.callbackPriority)return o;switch(h!==null&&Ln(h),Sr(u)){case 2:case 8:u=Cf;break;case 32:u=Wi;break;case 268435456:u=pa;break;default:u=Wi}return h=NA.bind(null,a),u=Hr(u,h),a.callbackPriority=o,a.callbackNode=u,o}return h!==null&&h!==null&&Ln(h),a.callbackPriority=2,a.callbackNode=null,2}function NA(a,o){if(Gt!==0&&Gt!==5)return a.callbackNode=null,a.callbackPriority=0,null;var u=a.callbackNode;if(_d()&&a.callbackNode!==u)return null;var h=Ue;return h=Ce(a,a===yt?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),h===0?null:(fA(a,h,o),CA(a,Qt()),a.callbackNode!=null&&a.callbackNode===u?NA.bind(null,a):null)}function MA(a,o){if(_d())return null;fA(a,o,!0)}function mq(){Eq(function(){(at&6)!==0?Hr(Yi,hq):TA()})}function Mg(){if(bi===0){var a=ps;a===0&&(a=Wo,Wo<<=1,(Wo&261888)===0&&(Wo=256)),bi=a}return bi}function RA(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:Pf(""+a)}function DA(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 pq(a,o,u,h,y){if(o==="submit"&&u&&u.stateNode===y){var b=RA((y[En]||null).action),C=h.submitter;C&&(o=(o=C[En]||null)?RA(o.formAction):C.getAttribute("formAction"),o!==null&&(b=o,C=null));var P=new If("action","action",null,h,y);a.push({event:P,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(bi!==0){var U=C?DA(y,C):new FormData(y);Qv(u,{pending:!0,data:U,method:y.method,action:b},null,U)}}else typeof b=="function"&&(P.preventDefault(),U=C?DA(y,C):new FormData(y),Qv(u,{pending:!0,data:U,method:y.method,action:b},b,U))},currentTarget:y}]})}}for(var Rg=0;Rg<mv.length;Rg++){var Dg=mv[Rg],vq=Dg.toLowerCase(),gq=Dg[0].toUpperCase()+Dg.slice(1);Or(vq,"on"+gq)}Or(cj,"onAnimationEnd"),Or(fj,"onAnimationIteration"),Or(dj,"onAnimationStart"),Or("dblclick","onDoubleClick"),Or("focusin","onFocus"),Or("focusout","onBlur"),Or(DB,"onTransitionRun"),Or(PB,"onTransitionStart"),Or(kB,"onTransitionCancel"),Or(hj,"onTransitionEnd"),ts("onMouseEnter",["mouseout","mouseover"]),ts("onMouseLeave",["mouseout","mouseover"]),ts("onPointerEnter",["pointerout","pointerover"]),ts("onPointerLeave",["pointerout","pointerover"]),Zi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ku="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(" "),yq=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ku));function PA(a,o){o=(o&4)!==0;for(var u=0;u<a.length;u++){var h=a[u],y=h.event;h=h.listeners;e:{var b=void 0;if(o)for(var C=h.length-1;0<=C;C--){var P=h[C],U=P.instance,ee=P.currentTarget;if(P=P.listener,U!==b&&y.isPropagationStopped())break e;b=P,y.currentTarget=ee;try{b(y)}catch(oe){qf(oe)}y.currentTarget=null,b=U}else for(C=0;C<h.length;C++){if(P=h[C],U=P.instance,ee=P.currentTarget,P=P.listener,U!==b&&y.isPropagationStopped())break e;b=P,y.currentTarget=ee;try{b(y)}catch(oe){qf(oe)}y.currentTarget=null,b=U}}}}function Ie(a,o){var u=o[Vp];u===void 0&&(u=o[Vp]=new Set);var h=a+"__bubble";u.has(h)||(kA(o,a,2,!1),u.add(h))}function Pg(a,o,u){var h=0;o&&(h|=4),kA(u,a,h,o)}var Ad="_reactListening"+Math.random().toString(36).slice(2);function kg(a){if(!a[Ad]){a[Ad]=!0,T_.forEach(function(u){u!=="selectionchange"&&(yq.has(u)||Pg(u,!1,a),Pg(u,!0,a))});var o=a.nodeType===9?a:a.ownerDocument;o===null||o[Ad]||(o[Ad]=!0,Pg("selectionchange",!1,o))}}function kA(a,o,u,h){switch(cT(o)){case 2:var y=Vq;break;case 8:y=Yq;break;default:y=Xg}u=y.bind(null,o,u,a),y=void 0,!tv||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),h?y!==void 0?a.addEventListener(o,u,{capture:!0,passive:y}):a.addEventListener(o,u,!0):y!==void 0?a.addEventListener(o,u,{passive:y}):a.addEventListener(o,u,!1)}function $g(a,o,u,h,y){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 P=h.stateNode.containerInfo;if(P===y)break;if(C===4)for(C=h.return;C!==null;){var U=C.tag;if((U===3||U===4)&&C.stateNode.containerInfo===y)return;C=C.return}for(;P!==null;){if(C=Zo(P),C===null)return;if(U=C.tag,U===5||U===6||U===26||U===27){h=b=C;continue e}P=P.parentNode}}h=h.return}B_(function(){var ee=b,oe=Jp(u),fe=[];e:{var te=mj.get(a);if(te!==void 0){var re=If,we=a;switch(a){case"keypress":if($f(u)===0)break e;case"keydown":case"keyup":re=fB;break;case"focusin":we="focus",re=iv;break;case"focusout":we="blur",re=iv;break;case"beforeblur":case"afterblur":re=iv;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=H_;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":re=Jz;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":re=mB;break;case cj:case fj:case dj:re=nB;break;case hj:re=vB;break;case"scroll":case"scrollend":re=Qz;break;case"wheel":re=yB;break;case"copy":case"cut":case"paste":re=aB;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":re=G_;break;case"toggle":case"beforetoggle":re=xB}var Ae=(o&4)!==0,mt=!Ae&&(a==="scroll"||a==="scrollend"),Z=Ae?te!==null?te+"Capture":null:te;Ae=[];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=ru(G,Z),ue!=null&&Ae.push($u(G,ue,J))),mt)break;G=G.return}0<Ae.length&&(te=new re(te,we,null,u,oe),fe.push({event:te,listeners:Ae}))}}if((o&7)===0){e:{if(te=a==="mouseover"||a==="pointerover",re=a==="mouseout"||a==="pointerout",te&&u!==Zp&&(we=u.relatedTarget||u.fromElement)&&(Zo(we)||we[Qo]))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?Zo(we):null,we!==null&&(mt=s(we),Ae=we.tag,we!==mt||Ae!==5&&Ae!==27&&Ae!==6)&&(we=null)):(re=null,we=ee),re!==we)){if(Ae=H_,ue="onMouseLeave",Z="onMouseEnter",G="mouse",(a==="pointerout"||a==="pointerover")&&(Ae=G_,ue="onPointerLeave",Z="onPointerEnter",G="pointer"),mt=re==null?te:nu(re),J=we==null?te:nu(we),te=new Ae(ue,G+"leave",re,u,oe),te.target=mt,te.relatedTarget=J,ue=null,Zo(oe)===ee&&(Ae=new Ae(Z,G+"enter",we,u,oe),Ae.target=J,Ae.relatedTarget=mt,ue=Ae),mt=ue,re&&we)t:{for(Ae=bq,Z=re,G=we,J=0,ue=Z;ue;ue=Ae(ue))J++;ue=0;for(var Ee=G;Ee;Ee=Ae(Ee))ue++;for(;0<J-ue;)Z=Ae(Z),J--;for(;0<ue-J;)G=Ae(G),ue--;for(;J--;){if(Z===G||G!==null&&Z===G.alternate){Ae=Z;break t}Z=Ae(Z),G=Ae(G)}Ae=null}else Ae=null;re!==null&&$A(fe,te,re,Ae,!1),we!==null&&mt!==null&&$A(fe,mt,we,Ae,!0)}}e:{if(te=ee?nu(ee):window,re=te.nodeName&&te.nodeName.toLowerCase(),re==="select"||re==="input"&&te.type==="file")var Qe=J_;else if(Q_(te))if(ej)Qe=NB;else{Qe=TB;var _e=AB}else re=te.nodeName,!re||re.toLowerCase()!=="input"||te.type!=="checkbox"&&te.type!=="radio"?ee&&Qp(ee.elementType)&&(Qe=J_):Qe=CB;if(Qe&&(Qe=Qe(a,ee))){Z_(fe,Qe,u,oe);break e}_e&&_e(a,te,ee),a==="focusout"&&ee&&te.type==="number"&&ee.memoizedProps.value!=null&&Xp(te,"number",te.value)}switch(_e=ee?nu(ee):window,a){case"focusin":(Q_(_e)||_e.contentEditable==="true")&&(ss=_e,fv=ee,fu=null);break;case"focusout":fu=fv=ss=null;break;case"mousedown":dv=!0;break;case"contextmenu":case"mouseup":case"dragend":dv=!1,lj(fe,u,oe);break;case"selectionchange":if(RB)break;case"keydown":case"keyup":lj(fe,u,oe)}var Pe;if(sv)e:{switch(a){case"compositionstart":var He="onCompositionStart";break e;case"compositionend":He="onCompositionEnd";break e;case"compositionupdate":He="onCompositionUpdate";break e}He=void 0}else os?K_(a,u)&&(He="onCompositionEnd"):a==="keydown"&&u.keyCode===229&&(He="onCompositionStart");He&&(V_&&u.locale!=="ko"&&(os||He!=="onCompositionStart"?He==="onCompositionEnd"&&os&&(Pe=q_()):(ri=oe,nv="value"in ri?ri.value:ri.textContent,os=!0)),_e=Td(ee,He),0<_e.length&&(He=new F_(He,a,null,u,oe),fe.push({event:He,listeners:_e}),Pe?He.data=Pe:(Pe=X_(u),Pe!==null&&(He.data=Pe)))),(Pe=SB?OB(a,u):_B(a,u))&&(He=Td(ee,"onBeforeInput"),0<He.length&&(_e=new F_("onBeforeInput","beforeinput",null,u,oe),fe.push({event:_e,listeners:He}),_e.data=Pe)),pq(fe,a,ee,u,oe)}PA(fe,o)})}function $u(a,o,u){return{instance:a,listener:o,currentTarget:u}}function Td(a,o){for(var u=o+"Capture",h=[];a!==null;){var y=a,b=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||b===null||(y=ru(a,u),y!=null&&h.unshift($u(a,y,b)),y=ru(a,o),y!=null&&h.push($u(a,y,b))),a.tag===3)return h;a=a.return}return[]}function bq(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function $A(a,o,u,h,y){for(var b=o._reactName,C=[];u!==null&&u!==h;){var P=u,U=P.alternate,ee=P.stateNode;if(P=P.tag,U!==null&&U===h)break;P!==5&&P!==26&&P!==27||ee===null||(U=ee,y?(ee=ru(u,b),ee!=null&&C.unshift($u(u,ee,U))):y||(ee=ru(u,b),ee!=null&&C.push($u(u,ee,U)))),u=u.return}C.length!==0&&a.push({event:o,listeners:C})}var xq=/\r\n?/g,wq=/\u0000|\uFFFD/g;function LA(a){return(typeof a=="string"?a:""+a).replace(xq,`
|
|
49
|
+
`).replace(wq,"")}function IA(a,o){return o=LA(o),LA(a)===o}function ht(a,o,u,h,y,b){switch(u){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||rs(a,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&rs(a,""+h);break;case"className":Rf(a,"class",h);break;case"tabIndex":Rf(a,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Rf(a,u,h);break;case"style":I_(a,h,b);break;case"data":if(o!=="object"){Rf(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=Pf(""+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"&&ht(a,o,"name",y.name,y,null),ht(a,o,"formEncType",y.formEncType,y,null),ht(a,o,"formMethod",y.formMethod,y,null),ht(a,o,"formTarget",y.formTarget,y,null)):(ht(a,o,"encType",y.encType,y,null),ht(a,o,"method",y.method,y,null),ht(a,o,"target",y.target,y,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){a.removeAttribute(u);break}h=Pf(""+h),a.setAttribute(u,h);break;case"onClick":h!=null&&(a.onclick=ga);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(y.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=Pf(""+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),Mf(a,"popover",h);break;case"xlinkActuate":va(a,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":va(a,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":va(a,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":va(a,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":va(a,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":va(a,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":va(a,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":va(a,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":va(a,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":Mf(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=Kz.get(u)||u,Mf(a,u,h))}}function Lg(a,o,u,h,y,b){switch(u){case"style":I_(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(y.children!=null)throw Error(r(60));a.innerHTML=u}}break;case"children":typeof h=="string"?rs(a,h):(typeof h=="number"||typeof h=="bigint")&&rs(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=ga);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!C_.hasOwnProperty(u))e:{if(u[0]==="o"&&u[1]==="n"&&(y=u.endsWith("Capture"),o=u.slice(2,y?u.length-7:void 0),b=a[En]||null,b=b!=null?b[u]:null,typeof b=="function"&&a.removeEventListener(o,b,y),typeof h=="function")){typeof b!="function"&&b!==null&&(u in a?a[u]=null:a.hasAttribute(u)&&a.removeAttribute(u)),a.addEventListener(o,h,y);break e}u in a?a[u]=h:h===!0?a.setAttribute(u,""):Mf(a,u,h)}}}function ln(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,y=!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":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:ht(a,o,b,C,u,null)}}y&&ht(a,o,"srcSet",u.srcSet,u,null),h&&ht(a,o,"src",u.src,u,null);return;case"input":Ie("invalid",a);var P=b=C=y=null,U=null,ee=null;for(h in u)if(u.hasOwnProperty(h)){var oe=u[h];if(oe!=null)switch(h){case"name":y=oe;break;case"type":C=oe;break;case"checked":U=oe;break;case"defaultChecked":ee=oe;break;case"value":b=oe;break;case"defaultValue":P=oe;break;case"children":case"dangerouslySetInnerHTML":if(oe!=null)throw Error(r(137,o));break;default:ht(a,o,h,oe,u,null)}}P_(a,b,P,U,ee,C,y,!1);return;case"select":Ie("invalid",a),h=C=b=null;for(y in u)if(u.hasOwnProperty(y)&&(P=u[y],P!=null))switch(y){case"value":b=P;break;case"defaultValue":C=P;break;case"multiple":h=P;default:ht(a,o,y,P,u,null)}o=b,u=C,a.multiple=!!h,o!=null?ns(a,!!h,o,!1):u!=null&&ns(a,!!h,u,!0);return;case"textarea":Ie("invalid",a),b=y=h=null;for(C in u)if(u.hasOwnProperty(C)&&(P=u[C],P!=null))switch(C){case"value":h=P;break;case"defaultValue":y=P;break;case"children":b=P;break;case"dangerouslySetInnerHTML":if(P!=null)throw Error(r(91));break;default:ht(a,o,C,P,u,null)}$_(a,h,y,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:ht(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<ku.length;h++)Ie(ku[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:ht(a,o,ee,h,u,null)}return;default:if(Qp(o)){for(oe in u)u.hasOwnProperty(oe)&&(h=u[oe],h!==void 0&&Lg(a,o,oe,h,u,void 0));return}}for(P in u)u.hasOwnProperty(P)&&(h=u[P],h!=null&&ht(a,o,P,h,u,null))}function Sq(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 y=null,b=null,C=null,P=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)||ht(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":y=re;break;case"checked":ee=re;break;case"defaultChecked":oe=re;break;case"value":C=re;break;case"defaultValue":P=re;break;case"children":case"dangerouslySetInnerHTML":if(re!=null)throw Error(r(137,o));break;default:re!==fe&&ht(a,o,te,re,h,fe)}}Kp(a,C,P,U,ee,oe,b,y);return;case"select":re=C=P=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)||ht(a,o,b,null,h,U)}for(y in h)if(b=h[y],U=u[y],h.hasOwnProperty(y)&&(b!=null||U!=null))switch(y){case"value":te=b;break;case"defaultValue":P=b;break;case"multiple":C=b;default:b!==U&&ht(a,o,y,b,h,U)}o=P,u=C,h=re,te!=null?ns(a,!!u,te,!1):!!h!=!!u&&(o!=null?ns(a,!!u,o,!0):ns(a,!!u,u?[]:"",!1));return;case"textarea":re=te=null;for(P in u)if(y=u[P],u.hasOwnProperty(P)&&y!=null&&!h.hasOwnProperty(P))switch(P){case"value":break;case"children":break;default:ht(a,o,P,null,h,y)}for(C in h)if(y=h[C],b=u[C],h.hasOwnProperty(C)&&(y!=null||b!=null))switch(C){case"value":te=y;break;case"defaultValue":re=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==b&&ht(a,o,C,y,h,b)}k_(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:ht(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:ht(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 Ae in u)te=u[Ae],u.hasOwnProperty(Ae)&&te!=null&&!h.hasOwnProperty(Ae)&&ht(a,o,Ae,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:ht(a,o,ee,te,h,re)}return;default:if(Qp(o)){for(var mt in u)te=u[mt],u.hasOwnProperty(mt)&&te!==void 0&&!h.hasOwnProperty(mt)&&Lg(a,o,mt,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||Lg(a,o,oe,te,h,re);return}}for(var Z in u)te=u[Z],u.hasOwnProperty(Z)&&te!=null&&!h.hasOwnProperty(Z)&&ht(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||ht(a,o,fe,te,h,re)}function zA(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function Oq(){if(typeof performance.getEntriesByType=="function"){for(var a=0,o=0,u=performance.getEntriesByType("resource"),h=0;h<u.length;h++){var y=u[h],b=y.transferSize,C=y.initiatorType,P=y.duration;if(b&&P&&zA(C)){for(C=0,P=y.responseEnd,h+=1;h<u.length;h++){var U=u[h],ee=U.startTime;if(ee>P)break;var oe=U.transferSize,fe=U.initiatorType;oe&&zA(fe)&&(U=U.responseEnd,C+=oe*(U<P?1:(P-ee)/(U-ee)))}if(--h,o+=8*(b+C)/(y.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 Ig=null,zg=null;function Cd(a){return a.nodeType===9?a:a.ownerDocument}function BA(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 qA(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 Bg(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 qg=null;function _q(){var a=window.event;return a&&a.type==="popstate"?a===qg?!1:(qg=a,!0):(qg=null,!1)}var UA=typeof setTimeout=="function"?setTimeout:void 0,jq=typeof clearTimeout=="function"?clearTimeout:void 0,HA=typeof Promise=="function"?Promise:void 0,Eq=typeof queueMicrotask=="function"?queueMicrotask:typeof HA<"u"?function(a){return HA.resolve(null).then(a).catch(Aq)}:UA;function Aq(a){setTimeout(function(){throw a})}function xi(a){return a==="head"}function FA(a,o){var u=o,h=0;do{var y=u.nextSibling;if(a.removeChild(u),y&&y.nodeType===8)if(u=y.data,u==="/$"||u==="/&"){if(h===0){a.removeChild(y),Ps(o);return}h--}else if(u==="$"||u==="$?"||u==="$~"||u==="$!"||u==="&")h++;else if(u==="html")Lu(a.ownerDocument.documentElement);else if(u==="head"){u=a.ownerDocument.head,Lu(u);for(var b=u.firstChild;b;){var C=b.nextSibling,P=b.nodeName;b[tu]||P==="SCRIPT"||P==="STYLE"||P==="LINK"&&b.rel.toLowerCase()==="stylesheet"||u.removeChild(b),b=C}}else u==="body"&&Lu(a.ownerDocument.body);u=y}while(u);Ps(o)}function GA(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 Ug(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":Ug(u),Yp(u);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(u.rel.toLowerCase()==="stylesheet")continue}a.removeChild(u)}}function Tq(a,o,u,h){for(;a.nodeType===1;){var y=u;if(a.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(h){if(!a[tu])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!==y.rel||a.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||a.getAttribute("title")!==(y.title==null?null:y.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(b=a.getAttribute("src"),(b!==(y.src==null?null:y.src)||a.getAttribute("type")!==(y.type==null?null:y.type)||a.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&b&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(o==="input"&&a.type==="hidden"){var b=y.name==null?null:""+y.name;if(y.type==="hidden"&&a.getAttribute("name")===b)return a}else return a;if(a=lr(a.nextSibling),a===null)break}return null}function Cq(a,o,u){if(o==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!u||(a=lr(a.nextSibling),a===null))return null;return a}function VA(a,o){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!o||(a=lr(a.nextSibling),a===null))return null;return a}function Hg(a){return a.data==="$?"||a.data==="$~"}function Fg(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function Nq(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 lr(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 Gg=null;function YA(a){a=a.nextSibling;for(var o=0;a;){if(a.nodeType===8){var u=a.data;if(u==="/$"||u==="/&"){if(o===0)return lr(a.nextSibling);o--}else u!=="$"&&u!=="$!"&&u!=="$?"&&u!=="$~"&&u!=="&"||o++}a=a.nextSibling}return null}function WA(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 KA(a,o,u){switch(o=Cd(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 Lu(a){for(var o=a.attributes;o.length;)a.removeAttributeNode(o[0]);Yp(a)}var ur=new Map,XA=new Set;function Nd(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Da=q.d;q.d={f:Mq,r:Rq,D:Dq,C:Pq,L:kq,m:$q,X:Iq,S:Lq,M:zq};function Mq(){var a=Da.f(),o=wd();return a||o}function Rq(a){var o=Jo(a);o!==null&&o.tag===5&&o.type==="form"?hE(o):Da.r(a)}var Ms=typeof document>"u"?null:document;function QA(a,o,u){var h=Ms;if(h&&typeof o=="string"&&o){var y=tr(o);y='link[rel="'+a+'"][href="'+y+'"]',typeof u=="string"&&(y+='[crossorigin="'+u+'"]'),XA.has(y)||(XA.add(y),a={rel:a,crossOrigin:u,href:o},h.querySelector(y)===null&&(o=h.createElement("link"),ln(o,"link",a),Jt(o),h.head.appendChild(o)))}}function Dq(a){Da.D(a),QA("dns-prefetch",a,null)}function Pq(a,o){Da.C(a,o),QA("preconnect",a,o)}function kq(a,o,u){Da.L(a,o,u);var h=Ms;if(h&&a&&o){var y='link[rel="preload"][as="'+tr(o)+'"]';o==="image"&&u&&u.imageSrcSet?(y+='[imagesrcset="'+tr(u.imageSrcSet)+'"]',typeof u.imageSizes=="string"&&(y+='[imagesizes="'+tr(u.imageSizes)+'"]')):y+='[href="'+tr(a)+'"]';var b=y;switch(o){case"style":b=Rs(a);break;case"script":b=Ds(a)}ur.has(b)||(a=p({rel:"preload",href:o==="image"&&u&&u.imageSrcSet?void 0:a,as:o},u),ur.set(b,a),h.querySelector(y)!==null||o==="style"&&h.querySelector(Iu(b))||o==="script"&&h.querySelector(zu(b))||(o=h.createElement("link"),ln(o,"link",a),Jt(o),h.head.appendChild(o)))}}function $q(a,o){Da.m(a,o);var u=Ms;if(u&&a){var h=o&&typeof o.as=="string"?o.as:"script",y='link[rel="modulepreload"][as="'+tr(h)+'"][href="'+tr(a)+'"]',b=y;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":b=Ds(a)}if(!ur.has(b)&&(a=p({rel:"modulepreload",href:a},o),ur.set(b,a),u.querySelector(y)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(u.querySelector(zu(b)))return}h=u.createElement("link"),ln(h,"link",a),Jt(h),u.head.appendChild(h)}}}function Lq(a,o,u){Da.S(a,o,u);var h=Ms;if(h&&a){var y=es(h).hoistableStyles,b=Rs(a);o=o||"default";var C=y.get(b);if(!C){var P={loading:0,preload:null};if(C=h.querySelector(Iu(b)))P.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":o},u),(u=ur.get(b))&&Vg(a,u);var U=C=h.createElement("link");Jt(U),ln(U,"link",a),U._p=new Promise(function(ee,oe){U.onload=ee,U.onerror=oe}),U.addEventListener("load",function(){P.loading|=1}),U.addEventListener("error",function(){P.loading|=2}),P.loading|=4,Md(C,o,h)}C={type:"stylesheet",instance:C,count:1,state:P},y.set(b,C)}}}function Iq(a,o){Da.X(a,o);var u=Ms;if(u&&a){var h=es(u).hoistableScripts,y=Ds(a),b=h.get(y);b||(b=u.querySelector(zu(y)),b||(a=p({src:a,async:!0},o),(o=ur.get(y))&&Yg(a,o),b=u.createElement("script"),Jt(b),ln(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(y,b))}}function zq(a,o){Da.M(a,o);var u=Ms;if(u&&a){var h=es(u).hoistableScripts,y=Ds(a),b=h.get(y);b||(b=u.querySelector(zu(y)),b||(a=p({src:a,async:!0,type:"module"},o),(o=ur.get(y))&&Yg(a,o),b=u.createElement("script"),Jt(b),ln(b,"link",a),u.head.appendChild(b)),b={type:"script",instance:b,count:1,state:null},h.set(y,b))}}function ZA(a,o,u,h){var y=(y=ge.current)?Nd(y):null;if(!y)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof u.precedence=="string"&&typeof u.href=="string"?(o=Rs(u.href),u=es(y).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=Rs(u.href);var b=es(y).hoistableStyles,C=b.get(a);if(C||(y=y.ownerDocument||y,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},b.set(a,C),(b=y.querySelector(Iu(a)))&&!b._p&&(C.instance=b,C.state.loading=5),ur.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},ur.set(a,u),b||Bq(y,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=Ds(u),u=es(y).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 Rs(a){return'href="'+tr(a)+'"'}function Iu(a){return'link[rel="stylesheet"]['+a+"]"}function JA(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function Bq(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}),ln(o,"link",u),Jt(o),a.head.appendChild(o))}function Ds(a){return'[src="'+tr(a)+'"]'}function zu(a){return"script[async]"+a}function eT(a,o,u){if(o.count++,o.instance===null)switch(o.type){case"style":var h=a.querySelector('style[data-href~="'+tr(u.href)+'"]');if(h)return o.instance=h,Jt(h),h;var y=p({},u,{"data-href":u.href,"data-precedence":u.precedence,href:null,precedence:null});return h=(a.ownerDocument||a).createElement("style"),Jt(h),ln(h,"style",y),Md(h,u.precedence,a),o.instance=h;case"stylesheet":y=Rs(u.href);var b=a.querySelector(Iu(y));if(b)return o.state.loading|=4,o.instance=b,Jt(b),b;h=JA(u),(y=ur.get(y))&&Vg(h,y),b=(a.ownerDocument||a).createElement("link"),Jt(b);var C=b;return C._p=new Promise(function(P,U){C.onload=P,C.onerror=U}),ln(b,"link",h),o.state.loading|=4,Md(b,u.precedence,a),o.instance=b;case"script":return b=Ds(u.src),(y=a.querySelector(zu(b)))?(o.instance=y,Jt(y),y):(h=u,(y=ur.get(b))&&(h=p({},u),Yg(h,y)),a=a.ownerDocument||a,y=a.createElement("script"),Jt(y),ln(y,"link",h),a.head.appendChild(y),o.instance=y);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,Md(h,u.precedence,a));return o.instance}function Md(a,o,u){for(var h=u.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=h.length?h[h.length-1]:null,b=y,C=0;C<h.length;C++){var P=h[C];if(P.dataset.precedence===o)b=P;else if(b!==y)break}b?b.parentNode.insertBefore(a,b.nextSibling):(o=u.nodeType===9?u.head:u,o.insertBefore(a,o.firstChild))}function Vg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.title==null&&(a.title=o.title)}function Yg(a,o){a.crossOrigin==null&&(a.crossOrigin=o.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=o.referrerPolicy),a.integrity==null&&(a.integrity=o.integrity)}var Rd=null;function tT(a,o,u){if(Rd===null){var h=new Map,y=Rd=new Map;y.set(u,h)}else y=Rd,h=y.get(u),h||(h=new Map,y.set(u,h));if(h.has(a))return h;for(h.set(a,null),u=u.getElementsByTagName(a),y=0;y<u.length;y++){var b=u[y];if(!(b[tu]||b[rn]||a==="link"&&b.getAttribute("rel")==="stylesheet")&&b.namespaceURI!=="http://www.w3.org/2000/svg"){var C=b.getAttribute(o)||"";C=a+C;var P=h.get(C);P?P.push(b):h.set(C,[b])}}return h}function nT(a,o,u){a=a.ownerDocument||a,a.head.insertBefore(u,o==="title"?a.querySelector("head > title"):null)}function qq(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 rT(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function Uq(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 y=Rs(h.href),b=o.querySelector(Iu(y));if(b){o=b._p,o!==null&&typeof o=="object"&&typeof o.then=="function"&&(a.count++,a=Dd.bind(a),o.then(a,a)),u.state.loading|=4,u.instance=b,Jt(b);return}b=o.ownerDocument||o,h=JA(h),(y=ur.get(y))&&Vg(h,y),b=b.createElement("link"),Jt(b);var C=b;C._p=new Promise(function(P,U){C.onload=P,C.onerror=U}),ln(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=Dd.bind(a),o.addEventListener("load",u),o.addEventListener("error",u))}}var Wg=0;function Hq(a,o){return a.stylesheets&&a.count===0&&kd(a,a.stylesheets),0<a.count||0<a.imgCount?function(u){var h=setTimeout(function(){if(a.stylesheets&&kd(a,a.stylesheets),a.unsuspend){var b=a.unsuspend;a.unsuspend=null,b()}},6e4+o);0<a.imgBytes&&Wg===0&&(Wg=62500*Oq());var y=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&kd(a,a.stylesheets),a.unsuspend)){var b=a.unsuspend;a.unsuspend=null,b()}},(a.imgBytes>Wg?50:800)+o);return a.unsuspend=u,function(){a.unsuspend=null,clearTimeout(h),clearTimeout(y)}}:null}function Dd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kd(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Pd=null;function kd(a,o){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Pd=new Map,o.forEach(Fq,a),Pd=null,Dd.call(a))}function Fq(a,o){if(!(o.state.loading&4)){var u=Pd.get(a);if(u)var h=u.get(null);else{u=new Map,Pd.set(a,u);for(var y=a.querySelectorAll("link[data-precedence],style[data-precedence]"),b=0;b<y.length;b++){var C=y[b];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(u.set(C.dataset.precedence,C),h=C)}h&&u.set(null,h)}y=o.instance,C=y.getAttribute("data-precedence"),b=u.get(C)||h,b===h&&u.set(null,y),u.set(C,y),this.count++,h=Dd.bind(this),y.addEventListener("load",h),y.addEventListener("error",h),b?b.parentNode.insertBefore(y,b.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(y,a.firstChild)),o.state.loading|=4}}var Bu={$$typeof:E,Provider:null,Consumer:null,_currentValue:B,_currentValue2:B,_threadCount:0};function Gq(a,o,u,h,y,b,C,P,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=ti(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ti(0),this.hiddenUpdates=ti(null),this.identifierPrefix=h,this.onUncaughtError=y,this.onCaughtError=b,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=U,this.incompleteTransitions=new Map}function aT(a,o,u,h,y,b,C,P,U,ee,oe,fe){return a=new Gq(a,o,u,C,U,ee,oe,fe,P),o=1,b===!0&&(o|=24),b=zn(3,null,null,o),a.current=b,b.stateNode=a,o=Av(),o.refCount++,a.pooledCache=o,o.refCount++,b.memoizedState={element:h,isDehydrated:u,cache:o},Mv(b),a}function iT(a){return a?(a=cs,a):cs}function oT(a,o,u,h,y,b){y=iT(y),h.context===null?h.context=y:h.pendingContext=y,h=ui(o),h.payload={element:u},b=b===void 0?null:b,b!==null&&(h.callback=b),u=ci(a,h,o),u!==null&&(Rn(u,a,o),yu(u,a,o))}function sT(a,o){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var u=a.retryLane;a.retryLane=u!==0&&u<o?u:o}}function Kg(a,o){sT(a,o),(a=a.alternate)&&sT(a,o)}function lT(a){if(a.tag===13||a.tag===31){var o=no(a,67108864);o!==null&&Rn(o,a,67108864),Kg(a,67108864)}}function uT(a){if(a.tag===13||a.tag===31){var o=Fn();o=Xo(o);var u=no(a,o);u!==null&&Rn(u,a,o),Kg(a,o)}}var $d=!0;function Vq(a,o,u,h){var y=k.T;k.T=null;var b=q.p;try{q.p=2,Xg(a,o,u,h)}finally{q.p=b,k.T=y}}function Yq(a,o,u,h){var y=k.T;k.T=null;var b=q.p;try{q.p=8,Xg(a,o,u,h)}finally{q.p=b,k.T=y}}function Xg(a,o,u,h){if($d){var y=Qg(h);if(y===null)$g(a,o,h,Ld,u),fT(a,h);else if(Kq(y,a,o,u,h))h.stopPropagation();else if(fT(a,h),o&4&&-1<Wq.indexOf(a)){for(;y!==null;){var b=Jo(y);if(b!==null)switch(b.tag){case 3:if(b=b.stateNode,b.current.memoizedState.isDehydrated){var C=Gr(b.pendingLanes);if(C!==0){var P=b;for(P.pendingLanes|=2,P.entangledLanes|=2;C;){var U=1<<31-dn(C);P.entanglements[1]|=U,C&=~U}Kr(b),(at&6)===0&&(bd=Qt()+500,Pu(0))}}break;case 31:case 13:P=no(b,2),P!==null&&Rn(P,b,2),wd(),Kg(b,2)}if(b=Qg(h),b===null&&$g(a,o,h,Ld,u),b===y)break;y=b}y!==null&&h.stopPropagation()}else $g(a,o,h,null,u)}}function Qg(a){return a=Jp(a),Zg(a)}var Ld=null;function Zg(a){if(Ld=null,a=Zo(a),a!==null){var o=s(a);if(o===null)a=null;else{var u=o.tag;if(u===13){if(a=l(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 Ld=a,null}function cT(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(Yo()){case Yi:return 2;case Cf:return 8;case Wi:case Jl:return 32;case pa:return 268435456;default:return 32}default:return 32}}var Jg=!1,wi=null,Si=null,Oi=null,qu=new Map,Uu=new Map,_i=[],Wq="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 fT(a,o){switch(a){case"focusin":case"focusout":wi=null;break;case"dragenter":case"dragleave":Si=null;break;case"mouseover":case"mouseout":Oi=null;break;case"pointerover":case"pointerout":qu.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":Uu.delete(o.pointerId)}}function Hu(a,o,u,h,y,b){return a===null||a.nativeEvent!==b?(a={blockedOn:o,domEventName:u,eventSystemFlags:h,nativeEvent:b,targetContainers:[y]},o!==null&&(o=Jo(o),o!==null&&lT(o)),a):(a.eventSystemFlags|=h,o=a.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),a)}function Kq(a,o,u,h,y){switch(o){case"focusin":return wi=Hu(wi,a,o,u,h,y),!0;case"dragenter":return Si=Hu(Si,a,o,u,h,y),!0;case"mouseover":return Oi=Hu(Oi,a,o,u,h,y),!0;case"pointerover":var b=y.pointerId;return qu.set(b,Hu(qu.get(b)||null,a,o,u,h,y)),!0;case"gotpointercapture":return b=y.pointerId,Uu.set(b,Hu(Uu.get(b)||null,a,o,u,h,y)),!0}return!1}function dT(a){var o=Zo(a.target);if(o!==null){var u=s(o);if(u!==null){if(o=u.tag,o===13){if(o=l(u),o!==null){a.blockedOn=o,E_(a.priority,function(){uT(u)});return}}else if(o===31){if(o=c(u),o!==null){a.blockedOn=o,E_(a.priority,function(){uT(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 Id(a){if(a.blockedOn!==null)return!1;for(var o=a.targetContainers;0<o.length;){var u=Qg(a.nativeEvent);if(u===null){u=a.nativeEvent;var h=new u.constructor(u.type,u);Zp=h,u.target.dispatchEvent(h),Zp=null}else return o=Jo(u),o!==null&&lT(o),a.blockedOn=u,!1;o.shift()}return!0}function hT(a,o,u){Id(a)&&u.delete(o)}function Xq(){Jg=!1,wi!==null&&Id(wi)&&(wi=null),Si!==null&&Id(Si)&&(Si=null),Oi!==null&&Id(Oi)&&(Oi=null),qu.forEach(hT),Uu.forEach(hT)}function zd(a,o){a.blockedOn===o&&(a.blockedOn=null,Jg||(Jg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Xq)))}var Bd=null;function mT(a){Bd!==a&&(Bd=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Bd===a&&(Bd=null);for(var o=0;o<a.length;o+=3){var u=a[o],h=a[o+1],y=a[o+2];if(typeof h!="function"){if(Zg(h||u)===null)continue;break}var b=Jo(u);b!==null&&(a.splice(o,3),o-=3,Qv(b,{pending:!0,data:y,method:u.method,action:h},h,y))}}))}function Ps(a){function o(U){return zd(U,a)}wi!==null&&zd(wi,a),Si!==null&&zd(Si,a),Oi!==null&&zd(Oi,a),qu.forEach(o),Uu.forEach(o);for(var u=0;u<_i.length;u++){var h=_i[u];h.blockedOn===a&&(h.blockedOn=null)}for(;0<_i.length&&(u=_i[0],u.blockedOn===null);)dT(u),u.blockedOn===null&&_i.shift();if(u=(a.ownerDocument||a).$$reactFormReplay,u!=null)for(h=0;h<u.length;h+=3){var y=u[h],b=u[h+1],C=y[En]||null;if(typeof b=="function")C||mT(u);else if(C){var P=null;if(b&&b.hasAttribute("formAction")){if(y=b,C=b[En]||null)P=C.formAction;else if(Zg(y)!==null)continue}else P=C.action;typeof P=="function"?u[h+1]=P:(u.splice(h,3),h-=3),mT(u)}}}function pT(){function a(b){b.canIntercept&&b.info==="react-transition"&&b.intercept({handler:function(){return new Promise(function(C){return y=C})},focusReset:"manual",scroll:"manual"})}function o(){y!==null&&(y(),y=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,y=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),y!==null&&(y(),y=null)}}}function ey(a){this._internalRoot=a}qd.prototype.render=ey.prototype.render=function(a){var o=this._internalRoot;if(o===null)throw Error(r(409));var u=o.current,h=Fn();oT(u,h,a,o,null,null)},qd.prototype.unmount=ey.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var o=a.containerInfo;oT(a.current,2,null,a,null,null),wd(),o[Qo]=null}};function qd(a){this._internalRoot=a}qd.prototype.unstable_scheduleHydration=function(a){if(a){var o=Gp();a={blockedOn:null,target:a,priority:o};for(var u=0;u<_i.length&&o!==0&&o<_i[u].priority;u++);_i.splice(u,0,a),u===0&&dT(a)}};var vT=t.version;if(vT!=="19.2.0")throw Error(r(527,vT,"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?v(a):null,a=a===null?null:a.stateNode,a};var Qq={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:k,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ud=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ud.isDisabled&&Ud.supportsFiber)try{Ki=Ud.inject(Qq),bn=Ud}catch{}}return Gu.createRoot=function(a,o){if(!i(a))throw Error(r(299));var u=!1,h="",y=OE,b=_E,C=jE;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(b=o.onCaughtError),o.onRecoverableError!==void 0&&(C=o.onRecoverableError)),o=aT(a,1,!1,null,null,u,h,null,y,b,C,pT),a[Qo]=o.current,kg(a),new ey(o)},Gu.hydrateRoot=function(a,o,u){if(!i(a))throw Error(r(299));var h=!1,y="",b=OE,C=_E,P=jE,U=null;return u!=null&&(u.unstable_strictMode===!0&&(h=!0),u.identifierPrefix!==void 0&&(y=u.identifierPrefix),u.onUncaughtError!==void 0&&(b=u.onUncaughtError),u.onCaughtError!==void 0&&(C=u.onCaughtError),u.onRecoverableError!==void 0&&(P=u.onRecoverableError),u.formState!==void 0&&(U=u.formState)),o=aT(a,1,!0,o,u??null,h,y,U,b,C,P,pT),o.context=iT(null),u=o.current,h=Fn(),h=Xo(h),y=ui(h),y.callback=null,ci(u,y,h),u=h,o.current.lanes=u,Mt(o,u),Kr(o),a[Qo]=o.current,kg(a),new qd(o)},Gu.version="19.2.0",Gu}var ET;function s6(){if(ET)return ry.exports;ET=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(),ry.exports=o6(),ry.exports}var l6=s6();/**
|
|
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 AT="popstate";function u6(e={}){function t(r,i){let{pathname:s,search:l,hash:c}=r.location;return Ew("",{pathname:s,search:l,hash:c},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:gc(i)}return f6(t,n,null,e)}function Ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Dr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function c6(){return Math.random().toString(36).substring(2,10)}function TT(e,t){return{usr:e.state,key:e.key,idx:t}}function Ew(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Dl(t):t,state:n,key:t&&t.key||r||c6()}}function gc({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 Dl(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 f6(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:s=!1}=r,l=i.history,c="POP",f=null,d=v();d==null&&(d=0,l.replaceState({...l.state,idx:d},""));function v(){return(l.state||{idx:null}).idx}function p(){c="POP";let w=v(),j=w==null?null:w-d;d=w,f&&f({action:c,location:S.location,delta:j})}function g(w,j){c="PUSH";let A=Ew(S.location,w,j);d=v()+1;let E=TT(A,d),N=S.createHref(A);try{l.pushState(E,"",N)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;i.location.assign(N)}s&&f&&f({action:c,location:S.location,delta:1})}function x(w,j){c="REPLACE";let A=Ew(S.location,w,j);d=v();let E=TT(A,d),N=S.createHref(A);l.replaceState(E,"",N),s&&f&&f({action:c,location:S.location,delta:0})}function _(w){return d6(w)}let S={get action(){return c},get location(){return e(i,l)},listen(w){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(AT,p),f=w,()=>{i.removeEventListener(AT,p),f=null}},createHref(w){return t(i,w)},createURL:_,encodeLocation(w){let j=_(w);return{pathname:j.pathname,search:j.search,hash:j.hash}},push:g,replace:x,go(w){return l.go(w)}};return S}function d6(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Ct(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:gc(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function Ek(e,t,n="/"){return h6(e,t,n,!1)}function h6(e,t,n,r){let i=typeof t=="string"?Dl(t):t,s=Ha(i.pathname||"/",n);if(s==null)return null;let l=Ak(e);m6(l);let c=null;for(let f=0;c==null&&f<l.length;++f){let d=j6(s);c=O6(l[f],d,r)}return c}function Ak(e,t=[],n=[],r="",i=!1){let s=(l,c,f=i,d)=>{let v={relativePath:d===void 0?l.path||"":d,caseSensitive:l.caseSensitive===!0,childrenIndex:c,route:l};if(v.relativePath.startsWith("/")){if(!v.relativePath.startsWith(r)&&f)return;Ct(v.relativePath.startsWith(r),`Absolute route path "${v.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),v.relativePath=v.relativePath.slice(r.length)}let p=za([r,v.relativePath]),g=n.concat(v);l.children&&l.children.length>0&&(Ct(l.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),Ak(l.children,t,g,p,f)),!(l.path==null&&!l.index)&&t.push({path:p,score:w6(p,l.index),routesMeta:g})};return e.forEach((l,c)=>{var f;if(l.path===""||!((f=l.path)!=null&&f.includes("?")))s(l,c);else for(let d of Tk(l.path))s(l,c,!0,d)}),t}function Tk(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return i?[s,""]:[s];let l=Tk(r.join("/")),c=[];return c.push(...l.map(f=>f===""?s:[s,f].join("/"))),i&&c.push(...l),c.map(f=>e.startsWith("/")&&f===""?"/":f)}function m6(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:S6(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var p6=/^:[\w-]+$/,v6=3,g6=2,y6=1,b6=10,x6=-2,CT=e=>e==="*";function w6(e,t){let n=e.split("/"),r=n.length;return n.some(CT)&&(r+=x6),t&&(r+=g6),n.filter(i=>!CT(i)).reduce((i,s)=>i+(p6.test(s)?v6:s===""?y6:b6),r)}function S6(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 O6(e,t,n=!1){let{routesMeta:r}=e,i={},s="/",l=[];for(let c=0;c<r.length;++c){let f=r[c],d=c===r.length-1,v=s==="/"?t:t.slice(s.length)||"/",p=bh({path:f.relativePath,caseSensitive:f.caseSensitive,end:d},v),g=f.route;if(!p&&d&&n&&!r[r.length-1].route.index&&(p=bh({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},v)),!p)return null;Object.assign(i,p.params),l.push({params:i,pathname:za([s,p.pathname]),pathnameBase:C6(za([s,p.pathnameBase])),route:g}),p.pathnameBase!=="/"&&(s=za([s,p.pathnameBase]))}return l}function bh(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=_6(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let s=i[0],l=s.replace(/(.)\/+$/,"$1"),c=i.slice(1);return{params:r.reduce((d,{paramName:v,isOptional:p},g)=>{if(v==="*"){let _=c[g]||"";l=s.slice(0,s.length-_.length).replace(/(.)\/+$/,"$1")}const x=c[g];return p&&!x?d[v]=void 0:d[v]=(x||"").replace(/%2F/g,"/"),d},{}),pathname:s,pathnameBase:l,pattern:e}}function _6(e,t=!1,n=!0){Dr(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,(l,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 j6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Dr(!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 Ha(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 E6(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Dl(e):e;return{pathname:n?n.startsWith("/")?n:A6(n,t):t,search:N6(r),hash:M6(i)}}function A6(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 sy(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 T6(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function wS(e){let t=T6(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function SS(e,t,n,r=!1){let i;typeof e=="string"?i=Dl(e):(i={...e},Ct(!i.pathname||!i.pathname.includes("?"),sy("?","pathname","search",i)),Ct(!i.pathname||!i.pathname.includes("#"),sy("#","pathname","hash",i)),Ct(!i.search||!i.search.includes("#"),sy("#","search","hash",i)));let s=e===""||i.pathname==="",l=s?"/":i.pathname,c;if(l==null)c=n;else{let p=t.length-1;if(!r&&l.startsWith("..")){let g=l.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}c=p>=0?t[p]:"/"}let f=E6(i,c),d=l&&l!=="/"&&l.endsWith("/"),v=(s||l===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(d||v)&&(f.pathname+="/"),f}var za=e=>e.join("/").replace(/\/\/+/g,"/"),C6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),N6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,M6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function R6(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 Ck=["POST","PUT","PATCH","DELETE"];new Set(Ck);var D6=["GET",...Ck];new Set(D6);var Pl=O.createContext(null);Pl.displayName="DataRouter";var $m=O.createContext(null);$m.displayName="DataRouterState";O.createContext(!1);var Nk=O.createContext({isTransitioning:!1});Nk.displayName="ViewTransition";var P6=O.createContext(new Map);P6.displayName="Fetchers";var k6=O.createContext(null);k6.displayName="Await";var Lr=O.createContext(null);Lr.displayName="Navigation";var of=O.createContext(null);of.displayName="Location";var Ir=O.createContext({outlet:null,matches:[],isDataRoute:!1});Ir.displayName="Route";var OS=O.createContext(null);OS.displayName="RouteError";function $6(e,{relative:t}={}){Ct(kl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=O.useContext(Lr),{hash:i,pathname:s,search:l}=sf(e,{relative:t}),c=s;return n!=="/"&&(c=s==="/"?n:za([n,s])),r.createHref({pathname:c,search:l,hash:i})}function kl(){return O.useContext(of)!=null}function da(){return Ct(kl(),"useLocation() may be used only in the context of a <Router> component."),O.useContext(of).location}var Mk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Rk(e){O.useContext(Lr).static||O.useLayoutEffect(e)}function Io(){let{isDataRoute:e}=O.useContext(Ir);return e?K6():L6()}function L6(){Ct(kl(),"useNavigate() may be used only in the context of a <Router> component.");let e=O.useContext(Pl),{basename:t,navigator:n}=O.useContext(Lr),{matches:r}=O.useContext(Ir),{pathname:i}=da(),s=JSON.stringify(wS(r)),l=O.useRef(!1);return Rk(()=>{l.current=!0}),O.useCallback((f,d={})=>{if(Dr(l.current,Mk),!l.current)return;if(typeof f=="number"){n.go(f);return}let v=SS(f,JSON.parse(s),i,d.relative==="path");e==null&&t!=="/"&&(v.pathname=v.pathname==="/"?t:za([t,v.pathname])),(d.replace?n.replace:n.push)(v,d.state,d)},[t,n,s,i,e])}O.createContext(null);function Dk(){let{matches:e}=O.useContext(Ir),t=e[e.length-1];return t?t.params:{}}function sf(e,{relative:t}={}){let{matches:n}=O.useContext(Ir),{pathname:r}=da(),i=JSON.stringify(wS(n));return O.useMemo(()=>SS(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function I6(e,t){return Pk(e,t)}function Pk(e,t,n,r,i){var A;Ct(kl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s}=O.useContext(Lr),{matches:l}=O.useContext(Ir),c=l[l.length-1],f=c?c.params:{},d=c?c.pathname:"/",v=c?c.pathnameBase:"/",p=c&&c.route;{let E=p&&p.path||"";kk(d,!p||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${E}">) 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="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let g=da(),x;if(t){let E=typeof t=="string"?Dl(t):t;Ct(v==="/"||((A=E.pathname)==null?void 0:A.startsWith(v)),`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 "${v}" but pathname "${E.pathname}" was given in the \`location\` prop.`),x=E}else x=g;let _=x.pathname||"/",S=_;if(v!=="/"){let E=v.replace(/^\//,"").split("/");S="/"+_.replace(/^\//,"").split("/").slice(E.length).join("/")}let w=Ek(e,{pathname:S});Dr(p||w!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),Dr(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${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 j=H6(w&&w.map(E=>Object.assign({},E,{params:Object.assign({},f,E.params),pathname:za([v,s.encodeLocation?s.encodeLocation(E.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?v:za([v,s.encodeLocation?s.encodeLocation(E.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:E.pathnameBase])})),l,n,r,i);return t&&j?O.createElement(of.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...x},navigationType:"POP"}},j):j}function z6(){let e=W6(),t=R6(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},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=O.createElement(O.Fragment,null,O.createElement("p",null,"💿 Hey developer 👋"),O.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",O.createElement("code",{style:s},"ErrorBoundary")," or"," ",O.createElement("code",{style:s},"errorElement")," prop on your route.")),O.createElement(O.Fragment,null,O.createElement("h2",null,"Unexpected Application Error!"),O.createElement("h3",{style:{fontStyle:"italic"}},t),n?O.createElement("pre",{style:i},n):null,l)}var B6=O.createElement(z6,null),q6=class extends O.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?O.createElement(Ir.Provider,{value:this.props.routeContext},O.createElement(OS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function U6({routeContext:e,match:t,children:n}){let r=O.useContext(Pl);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),O.createElement(Ir.Provider,{value:e},n)}function H6(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 s=e,l=n==null?void 0:n.errors;if(l!=null){let d=s.findIndex(v=>v.route.id&&(l==null?void 0:l[v.route.id])!==void 0);Ct(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(l).join(",")}`),s=s.slice(0,Math.min(s.length,d+1))}let c=!1,f=-1;if(n)for(let d=0;d<s.length;d++){let v=s[d];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(f=d),v.route.id){let{loaderData:p,errors:g}=n,x=v.route.loader&&!p.hasOwnProperty(v.route.id)&&(!g||g[v.route.id]===void 0);if(v.route.lazy||x){c=!0,f>=0?s=s.slice(0,f+1):s=[s[0]];break}}}return s.reduceRight((d,v,p)=>{let g,x=!1,_=null,S=null;n&&(g=l&&v.route.id?l[v.route.id]:void 0,_=v.route.errorElement||B6,c&&(f<0&&p===0?(kk("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),x=!0,S=null):f===p&&(x=!0,S=v.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,p+1)),j=()=>{let A;return g?A=_:x?A=S:v.route.Component?A=O.createElement(v.route.Component,null):v.route.element?A=v.route.element:A=d,O.createElement(U6,{match:v,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:A})};return n&&(v.route.ErrorBoundary||v.route.errorElement||p===0)?O.createElement(q6,{location:n.location,revalidation:n.revalidation,component:_,error:g,children:j(),routeContext:{outlet:null,matches:w,isDataRoute:!0},unstable_onError:r}):j()},null)}function _S(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function F6(e){let t=O.useContext(Pl);return Ct(t,_S(e)),t}function G6(e){let t=O.useContext($m);return Ct(t,_S(e)),t}function V6(e){let t=O.useContext(Ir);return Ct(t,_S(e)),t}function jS(e){let t=V6(e),n=t.matches[t.matches.length-1];return Ct(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Y6(){return jS("useRouteId")}function W6(){var r;let e=O.useContext(OS),t=G6("useRouteError"),n=jS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function K6(){let{router:e}=F6("useNavigate"),t=jS("useNavigate"),n=O.useRef(!1);return Rk(()=>{n.current=!0}),O.useCallback(async(i,s={})=>{Dr(n.current,Mk),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...s}))},[e,t])}var NT={};function kk(e,t,n){!t&&!NT[e]&&(NT[e]=!0,Dr(!1,n))}O.memo(X6);function X6({routes:e,future:t,state:n,unstable_onError:r}){return Pk(e,void 0,n,r,t)}function Q6({to:e,replace:t,state:n,relative:r}){Ct(kl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=O.useContext(Lr);Dr(!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:s}=O.useContext(Ir),{pathname:l}=da(),c=Io(),f=SS(e,wS(s),l,r==="path"),d=JSON.stringify(f);return O.useEffect(()=>{c(JSON.parse(d),{replace:t,state:n,relative:r})},[c,d,r,t,n]),null}function Qr(e){Ct(!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 Z6({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:s=!1}){Ct(!kl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),c=O.useMemo(()=>({basename:l,navigator:i,static:s,future:{}}),[l,i,s]);typeof n=="string"&&(n=Dl(n));let{pathname:f="/",search:d="",hash:v="",state:p=null,key:g="default"}=n,x=O.useMemo(()=>{let _=Ha(f,l);return _==null?null:{location:{pathname:_,search:d,hash:v,state:p,key:g},navigationType:r}},[l,f,d,v,p,g,r]);return Dr(x!=null,`<Router basename="${l}"> is not able to match the URL "${f}${d}${v}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:O.createElement(Lr.Provider,{value:c},O.createElement(of.Provider,{children:t,value:x}))}function J6({children:e,location:t}){return I6(Aw(e),t)}function Aw(e,t=[]){let n=[];return O.Children.forEach(e,(r,i)=>{if(!O.isValidElement(r))return;let s=[...t,i];if(r.type===O.Fragment){n.push.apply(n,Aw(r.props.children,s));return}Ct(r.type===Qr,`[${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>`),Ct(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=Aw(r.props.children,s)),n.push(l)}),n}var hh="get",mh="application/x-www-form-urlencoded";function Lm(e){return e!=null&&typeof e.tagName=="string"}function e8(e){return Lm(e)&&e.tagName.toLowerCase()==="button"}function t8(e){return Lm(e)&&e.tagName.toLowerCase()==="form"}function n8(e){return Lm(e)&&e.tagName.toLowerCase()==="input"}function r8(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function a8(e,t){return e.button===0&&(!t||t==="_self")&&!r8(e)}var Fd=null;function i8(){if(Fd===null)try{new FormData(document.createElement("form"),0),Fd=!1}catch{Fd=!0}return Fd}var o8=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function ly(e){return e!=null&&!o8.has(e)?(Dr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${mh}"`),null):e}function s8(e,t){let n,r,i,s,l;if(t8(e)){let c=e.getAttribute("action");r=c?Ha(c,t):null,n=e.getAttribute("method")||hh,i=ly(e.getAttribute("enctype"))||mh,s=new FormData(e)}else if(e8(e)||n8(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?Ha(f,t):null,n=e.getAttribute("formmethod")||c.getAttribute("method")||hh,i=ly(e.getAttribute("formenctype"))||ly(c.getAttribute("enctype"))||mh,s=new FormData(c,e),!i8()){let{name:d,type:v,value:p}=e;if(v==="image"){let g=d?`${d}.`:"";s.append(`${g}x`,"0"),s.append(`${g}y`,"0")}else d&&s.append(d,p)}}else{if(Lm(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=hh,r=null,i=mh,l=e}return s&&i==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:s,body:l}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function ES(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function l8(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&&Ha(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function u8(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 c8(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 f8(e,t,n){let r=await Promise.all(e.map(async i=>{let s=t.routes[i.route.id];if(s){let l=await u8(s,n);return l.links?l.links():[]}return[]}));return p8(r.flat(1).filter(c8).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function MT(e,t,n,r,i,s){let l=(f,d)=>n[d]?f.route.id!==n[d].route.id:!0,c=(f,d)=>{var v;return n[d].pathname!==f.pathname||((v=n[d].route.path)==null?void 0:v.endsWith("*"))&&n[d].params["*"]!==f.params["*"]};return s==="assets"?t.filter((f,d)=>l(f,d)||c(f,d)):s==="data"?t.filter((f,d)=>{var p;let v=r.routes[f.route.id];if(!v||!v.hasLoader)return!1;if(l(f,d)||c(f,d))return!0;if(f.route.shouldRevalidate){let g=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 g=="boolean")return g}return!0}):[]}function d8(e,t,{includeHydrateFallback:n}={}){return h8(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let s=[i.module];return i.clientActionModule&&(s=s.concat(i.clientActionModule)),i.clientLoaderModule&&(s=s.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(s=s.concat(i.hydrateFallbackModule)),i.imports&&(s=s.concat(i.imports)),s}).flat(1))}function h8(e){return[...new Set(e)]}function m8(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function p8(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let s=JSON.stringify(m8(i));return n.has(s)||(n.add(s),r.push({key:s,link:i})),r},[])}function $k(){let e=O.useContext(Pl);return ES(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function v8(){let e=O.useContext($m);return ES(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var AS=O.createContext(void 0);AS.displayName="FrameworkContext";function Lk(){let e=O.useContext(AS);return ES(e,"You must render this element inside a <HydratedRouter> element"),e}function g8(e,t){let n=O.useContext(AS),[r,i]=O.useState(!1),[s,l]=O.useState(!1),{onFocus:c,onBlur:f,onMouseEnter:d,onMouseLeave:v,onTouchStart:p}=t,g=O.useRef(null);O.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let S=j=>{j.forEach(A=>{l(A.isIntersecting)})},w=new IntersectionObserver(S,{threshold:.5});return g.current&&w.observe(g.current),()=>{w.disconnect()}}},[e]),O.useEffect(()=>{if(r){let S=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(S)}}},[r]);let x=()=>{i(!0)},_=()=>{i(!1),l(!1)};return n?e!=="intent"?[s,g,{}]:[s,g,{onFocus:Vu(c,x),onBlur:Vu(f,_),onMouseEnter:Vu(d,x),onMouseLeave:Vu(v,_),onTouchStart:Vu(p,x)}]:[!1,g,{}]}function Vu(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function y8({page:e,...t}){let{router:n}=$k(),r=O.useMemo(()=>Ek(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?O.createElement(x8,{page:e,matches:r,...t}):null}function b8(e){let{manifest:t,routeModules:n}=Lk(),[r,i]=O.useState([]);return O.useEffect(()=>{let s=!1;return f8(e,t,n).then(l=>{s||i(l)}),()=>{s=!0}},[e,t,n]),r}function x8({page:e,matches:t,...n}){let r=da(),{manifest:i,routeModules:s}=Lk(),{basename:l}=$k(),{loaderData:c,matches:f}=v8(),d=O.useMemo(()=>MT(e,t,f,i,r,"data"),[e,t,f,i,r]),v=O.useMemo(()=>MT(e,t,f,i,r,"assets"),[e,t,f,i,r]),p=O.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let _=new Set,S=!1;if(t.forEach(j=>{var E;let A=i.routes[j.route.id];!A||!A.hasLoader||(!d.some(N=>N.route.id===j.route.id)&&j.route.id in c&&((E=s[j.route.id])!=null&&E.shouldRevalidate)||A.hasClientLoader?S=!0:_.add(j.route.id))}),_.size===0)return[];let w=l8(e,l,"data");return S&&_.size>0&&w.searchParams.set("_routes",t.filter(j=>_.has(j.route.id)).map(j=>j.route.id).join(",")),[w.pathname+w.search]},[l,c,r,i,d,t,e,s]),g=O.useMemo(()=>d8(v,i),[v,i]),x=b8(v);return O.createElement(O.Fragment,null,p.map(_=>O.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...n})),g.map(_=>O.createElement("link",{key:_,rel:"modulepreload",href:_,...n})),x.map(({key:_,link:S})=>O.createElement("link",{key:_,nonce:n.nonce,...S})))}function w8(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var Ik=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ik&&(window.__reactRouterVersion="7.9.5")}catch{}function S8({basename:e,children:t,window:n}){let r=O.useRef();r.current==null&&(r.current=u6({window:n,v5Compat:!0}));let i=r.current,[s,l]=O.useState({action:i.action,location:i.location}),c=O.useCallback(f=>{O.startTransition(()=>l(f))},[l]);return O.useLayoutEffect(()=>i.listen(c),[i,c]),O.createElement(Z6,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i})}var zk=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xh=O.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:s,replace:l,state:c,target:f,to:d,preventScrollReset:v,viewTransition:p,...g},x){let{basename:_}=O.useContext(Lr),S=typeof d=="string"&&zk.test(d),w,j=!1;if(typeof d=="string"&&S&&(w=d,Ik))try{let L=new URL(window.location.href),Y=d.startsWith("//")?new URL(L.protocol+d):new URL(d),z=Ha(Y.pathname,_);Y.origin===L.origin&&z!=null?d=z+Y.search+Y.hash:j=!0}catch{Dr(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let A=$6(d,{relative:i}),[E,N,T]=g8(r,g),M=E8(d,{replace:l,state:c,target:f,preventScrollReset:v,relative:i,viewTransition:p});function R(L){t&&t(L),L.defaultPrevented||M(L)}let D=O.createElement("a",{...g,...T,href:w||A,onClick:j||s?t:R,ref:w8(x,N),target:f,"data-discover":!S&&n==="render"?"true":void 0});return E&&!S?O.createElement(O.Fragment,null,D,O.createElement(y8,{page:A})):D});xh.displayName="Link";var O8=O.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:s,to:l,viewTransition:c,children:f,...d},v){let p=sf(l,{relative:d.relative}),g=da(),x=O.useContext($m),{navigator:_,basename:S}=O.useContext(Lr),w=x!=null&&M8(p)&&c===!0,j=_.encodeLocation?_.encodeLocation(p).pathname:p.pathname,A=g.pathname,E=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;n||(A=A.toLowerCase(),E=E?E.toLowerCase():null,j=j.toLowerCase()),E&&S&&(E=Ha(E,S)||E);const N=j!=="/"&&j.endsWith("/")?j.length-1:j.length;let T=A===j||!i&&A.startsWith(j)&&A.charAt(N)==="/",M=E!=null&&(E===j||!i&&E.startsWith(j)&&E.charAt(j.length)==="/"),R={isActive:T,isPending:M,isTransitioning:w},D=T?t:void 0,L;typeof r=="function"?L=r(R):L=[r,T?"active":null,M?"pending":null,w?"transitioning":null].filter(Boolean).join(" ");let Y=typeof s=="function"?s(R):s;return O.createElement(xh,{...d,"aria-current":D,className:L,ref:v,style:Y,to:l,viewTransition:c},typeof f=="function"?f(R):f)});O8.displayName="NavLink";var _8=O.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:s,method:l=hh,action:c,onSubmit:f,relative:d,preventScrollReset:v,viewTransition:p,...g},x)=>{let _=C8(),S=N8(c,{relative:d}),w=l.toLowerCase()==="get"?"get":"post",j=typeof c=="string"&&zk.test(c),A=E=>{if(f&&f(E),E.defaultPrevented)return;E.preventDefault();let N=E.nativeEvent.submitter,T=(N==null?void 0:N.getAttribute("formmethod"))||l;_(N||E.currentTarget,{fetcherKey:t,method:T,navigate:n,replace:i,state:s,relative:d,preventScrollReset:v,viewTransition:p})};return O.createElement("form",{ref:x,method:w,action:S,onSubmit:r?f:A,...g,"data-discover":!j&&e==="render"?"true":void 0})});_8.displayName="Form";function j8(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Bk(e){let t=O.useContext(Pl);return Ct(t,j8(e)),t}function E8(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:s,viewTransition:l}={}){let c=Io(),f=da(),d=sf(e,{relative:s});return O.useCallback(v=>{if(a8(v,t)){v.preventDefault();let p=n!==void 0?n:gc(f)===gc(d);c(e,{replace:p,state:r,preventScrollReset:i,relative:s,viewTransition:l})}},[f,c,d,n,r,t,e,i,s,l])}var A8=0,T8=()=>`__${String(++A8)}__`;function C8(){let{router:e}=Bk("useSubmit"),{basename:t}=O.useContext(Lr),n=Y6();return O.useCallback(async(r,i={})=>{let{action:s,method:l,encType:c,formData:f,body:d}=s8(r,t);if(i.navigate===!1){let v=i.fetcherKey||T8();await e.fetch(v,n,i.action||s,{preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||l,formEncType:i.encType||c,flushSync:i.flushSync})}else await e.navigate(i.action||s,{preventScrollReset:i.preventScrollReset,formData:f,body:d,formMethod:i.method||l,formEncType:i.encType||c,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function N8(e,{relative:t}={}){let{basename:n}=O.useContext(Lr),r=O.useContext(Ir);Ct(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),s={...sf(e||".",{relative:t})},l=da();if(e==null){s.search=l.search;let c=new URLSearchParams(s.search),f=c.getAll("index");if(f.some(v=>v==="")){c.delete("index"),f.filter(p=>p).forEach(p=>c.append("index",p));let v=c.toString();s.search=v?`?${v}`:""}}return(!e||e===".")&&i.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:za([n,s.pathname])),gc(s)}function M8(e,{relative:t}={}){let n=O.useContext(Nk);Ct(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Bk("useViewTransitionState"),i=sf(e,{relative:t});if(!n.isTransitioning)return!1;let s=Ha(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=Ha(n.nextLocation.pathname,r)||n.nextLocation.pathname;return bh(i.pathname,l)!=null||bh(i.pathname,s)!=null}var lf=jk();const qk=gt(lf);/**
|
|
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 R8=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Uk=(...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 D8={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 P8=O.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:i="",children:s,iconNode:l,...c},f)=>O.createElement("svg",{ref:f,...D8,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:Uk("lucide",i),...c},[...l.map(([d,v])=>O.createElement(d,v)),...Array.isArray(s)?s:[s]]));/**
|
|
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 Ke=(e,t)=>{const n=O.forwardRef(({className:r,...i},s)=>O.createElement(P8,{ref:s,iconNode:t,className:Uk(`lucide-${R8(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 Im=Ke("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 Ys=Ke("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 RT=Ke("ChartColumn",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
|
|
96
|
+
* @license lucide-react v0.462.0 - ISC
|
|
97
|
+
*
|
|
98
|
+
* This source code is licensed under the ISC license.
|
|
99
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
100
|
+
*/const TS=Ke("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
101
|
+
* @license lucide-react v0.462.0 - ISC
|
|
102
|
+
*
|
|
103
|
+
* This source code is licensed under the ISC license.
|
|
104
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
105
|
+
*/const $l=Ke("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
106
|
+
* @license lucide-react v0.462.0 - ISC
|
|
107
|
+
*
|
|
108
|
+
* This source code is licensed under the ISC license.
|
|
109
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
110
|
+
*/const uf=Ke("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/**
|
|
111
|
+
* @license lucide-react v0.462.0 - ISC
|
|
112
|
+
*
|
|
113
|
+
* This source code is licensed under the ISC license.
|
|
114
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
115
|
+
*/const k8=Ke("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]);/**
|
|
116
|
+
* @license lucide-react v0.462.0 - ISC
|
|
117
|
+
*
|
|
118
|
+
* This source code is licensed under the ISC license.
|
|
119
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
120
|
+
*/const tl=Ke("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
121
|
+
* @license lucide-react v0.462.0 - ISC
|
|
122
|
+
*
|
|
123
|
+
* This source code is licensed under the ISC license.
|
|
124
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
125
|
+
*/const Ll=Ke("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
|
|
126
|
+
* @license lucide-react v0.462.0 - ISC
|
|
127
|
+
*
|
|
128
|
+
* This source code is licensed under the ISC license.
|
|
129
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
130
|
+
*/const $8=Ke("CircleX",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]);/**
|
|
131
|
+
* @license lucide-react v0.462.0 - ISC
|
|
132
|
+
*
|
|
133
|
+
* This source code is licensed under the ISC license.
|
|
134
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
135
|
+
*/const nl=Ke("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
|
|
136
|
+
* @license lucide-react v0.462.0 - ISC
|
|
137
|
+
*
|
|
138
|
+
* This source code is licensed under the ISC license.
|
|
139
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
140
|
+
*/const L8=Ke("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]);/**
|
|
141
|
+
* @license lucide-react v0.462.0 - ISC
|
|
142
|
+
*
|
|
143
|
+
* This source code is licensed under the ISC license.
|
|
144
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
145
|
+
*/const I8=Ke("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
146
|
+
* @license lucide-react v0.462.0 - ISC
|
|
147
|
+
*
|
|
148
|
+
* This source code is licensed under the ISC license.
|
|
149
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
150
|
+
*/const z8=Ke("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/**
|
|
151
|
+
* @license lucide-react v0.462.0 - ISC
|
|
152
|
+
*
|
|
153
|
+
* This source code is licensed under the ISC license.
|
|
154
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
155
|
+
*/const Hk=Ke("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);/**
|
|
156
|
+
* @license lucide-react v0.462.0 - ISC
|
|
157
|
+
*
|
|
158
|
+
* This source code is licensed under the ISC license.
|
|
159
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
160
|
+
*/const B8=Ke("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/**
|
|
161
|
+
* @license lucide-react v0.462.0 - ISC
|
|
162
|
+
*
|
|
163
|
+
* This source code is licensed under the ISC license.
|
|
164
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
165
|
+
*/const q8=Ke("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/**
|
|
166
|
+
* @license lucide-react v0.462.0 - ISC
|
|
167
|
+
*
|
|
168
|
+
* This source code is licensed under the ISC license.
|
|
169
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
170
|
+
*/const Ws=Ke("Mail",[["rect",{width:"20",height:"16",x:"2",y:"4",rx:"2",key:"18n3k1"}],["path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7",key:"1ocrg3"}]]);/**
|
|
171
|
+
* @license lucide-react v0.462.0 - ISC
|
|
172
|
+
*
|
|
173
|
+
* This source code is licensed under the ISC license.
|
|
174
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
175
|
+
*/const ki=Ke("MessageSquare",[["path",{d:"M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z",key:"1lielz"}]]);/**
|
|
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 U8=Ke("Moon",[["path",{d:"M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z",key:"a7tn18"}]]);/**
|
|
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 H8=Ke("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"}]]);/**
|
|
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 F8=Ke("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);/**
|
|
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 DT=Ke("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"}]]);/**
|
|
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 wh=Ke("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
|
|
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 Fk=Ke("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"}]]);/**
|
|
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 Gk=Ke("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
|
|
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 PT=Ke("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"}]]);/**
|
|
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 kT=Ke("Shield",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]]);/**
|
|
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 G8=Ke("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"}]]);/**
|
|
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 Vk=Ke("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"}]]);/**
|
|
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 V8=Ke("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"}]]);/**
|
|
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 Y8=Ke("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"}]]);/**
|
|
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 aa=Ke("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Yk(e,t=[]){let n=[];function r(s,l){const c=O.createContext(l);c.displayName=s+"Context";const f=n.length;n=[...n,l];const d=p=>{var j;const{scope:g,children:x,..._}=p,S=((j=g==null?void 0:g[e])==null?void 0:j[f])||c,w=O.useMemo(()=>_,Object.values(_));return m.jsx(S.Provider,{value:w,children:x})};d.displayName=s+"Provider";function v(p,g){var S;const x=((S=g==null?void 0:g[e])==null?void 0:S[f])||c,_=O.useContext(x);if(_)return _;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,v]}const i=()=>{const s=n.map(l=>O.createContext(l));return function(c){const f=(c==null?void 0:c[e])||s;return O.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,W8(i,...t)]}function W8(...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(s){const l=r.reduce((c,{useScope:f,scopeName:d})=>{const p=f(s)[`__scope${d}`];return{...c,...p}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}function Pr(e){const t=O.useRef(e);return O.useEffect(()=>{t.current=e}),O.useMemo(()=>(...n)=>{var r;return(r=t.current)==null?void 0:r.call(t,...n)},[])}var Ft=globalThis!=null&&globalThis.document?O.useLayoutEffect:()=>{};function $T(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function cf(...e){return t=>{let n=!1;const r=e.map(i=>{const s=$T(i,t);return!n&&typeof s=="function"&&(n=!0),s});if(n)return()=>{for(let i=0;i<r.length;i++){const s=r[i];typeof s=="function"?s():$T(e[i],null)}}}}function tt(...e){return O.useCallback(cf(...e),e)}var K8=Symbol.for("react.lazy"),Sh=xS[" use ".trim().toString()];function X8(e){return typeof e=="object"&&e!==null&&"then"in e}function Wk(e){return e!=null&&typeof e=="object"&&"$$typeof"in e&&e.$$typeof===K8&&"_payload"in e&&X8(e._payload)}function Kk(e){const t=Q8(e),n=O.forwardRef((r,i)=>{let{children:s,...l}=r;Wk(s)&&typeof Sh=="function"&&(s=Sh(s._payload));const c=O.Children.toArray(s),f=c.find(J8);if(f){const d=f.props.children,v=c.map(p=>p===f?O.Children.count(d)>1?O.Children.only(null):O.isValidElement(d)?d.props.children:null:p);return m.jsx(t,{...l,ref:i,children:O.isValidElement(d)?O.cloneElement(d,void 0,v):null})}return m.jsx(t,{...l,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}var zo=Kk("Slot");function Q8(e){const t=O.forwardRef((n,r)=>{let{children:i,...s}=n;if(Wk(i)&&typeof Sh=="function"&&(i=Sh(i._payload)),O.isValidElement(i)){const l=tU(i),c=eU(s,i.props);return i.type!==O.Fragment&&(c.ref=r?cf(r,l):l),O.cloneElement(i,c)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Z8=Symbol("radix.slottable");function J8(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===Z8}function eU(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...c)=>{const f=s(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function tU(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 nU=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Bo=nU.reduce((e,t)=>{const n=Kk(`Primitive.${t}`),r=O.forwardRef((i,s)=>{const{asChild:l,...c}=i,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(f,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{}),uy={exports:{}},cy={};/**
|
|
246
|
+
* @license React
|
|
247
|
+
* use-sync-external-store-shim.production.js
|
|
248
|
+
*
|
|
249
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
250
|
+
*
|
|
251
|
+
* This source code is licensed under the MIT license found in the
|
|
252
|
+
* LICENSE file in the root directory of this source tree.
|
|
253
|
+
*/var LT;function rU(){if(LT)return cy;LT=1;var e=km();function t(p,g){return p===g&&(p!==0||1/p===1/g)||p!==p&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,s=e.useLayoutEffect,l=e.useDebugValue;function c(p,g){var x=g(),_=r({inst:{value:x,getSnapshot:g}}),S=_[0].inst,w=_[1];return s(function(){S.value=x,S.getSnapshot=g,f(S)&&w({inst:S})},[p,x,g]),i(function(){return f(S)&&w({inst:S}),p(function(){f(S)&&w({inst:S})})},[p]),l(x),x}function f(p){var g=p.getSnapshot;p=p.value;try{var x=g();return!n(p,x)}catch{return!0}}function d(p,g){return g()}var v=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:c;return cy.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:v,cy}var IT;function aU(){return IT||(IT=1,uy.exports=rU()),uy.exports}var iU=aU();function oU(){return iU.useSyncExternalStore(sU,()=>!0,()=>!1)}function sU(){return()=>{}}var CS="Avatar",[lU]=Yk(CS),[uU,Xk]=lU(CS),Qk=O.forwardRef((e,t)=>{const{__scopeAvatar:n,...r}=e,[i,s]=O.useState("idle");return m.jsx(uU,{scope:n,imageLoadingStatus:i,onImageLoadingStatusChange:s,children:m.jsx(Bo.span,{...r,ref:t})})});Qk.displayName=CS;var Zk="AvatarImage",Jk=O.forwardRef((e,t)=>{const{__scopeAvatar:n,src:r,onLoadingStatusChange:i=()=>{},...s}=e,l=Xk(Zk,n),c=cU(r,s),f=Pr(d=>{i(d),l.onImageLoadingStatusChange(d)});return Ft(()=>{c!=="idle"&&f(c)},[c,f]),c==="loaded"?m.jsx(Bo.img,{...s,ref:t,src:r}):null});Jk.displayName=Zk;var e$="AvatarFallback",t$=O.forwardRef((e,t)=>{const{__scopeAvatar:n,delayMs:r,...i}=e,s=Xk(e$,n),[l,c]=O.useState(r===void 0);return O.useEffect(()=>{if(r!==void 0){const f=window.setTimeout(()=>c(!0),r);return()=>window.clearTimeout(f)}},[r]),l&&s.imageLoadingStatus!=="loaded"?m.jsx(Bo.span,{...i,ref:t}):null});t$.displayName=e$;function zT(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function cU(e,{referrerPolicy:t,crossOrigin:n}){const r=oU(),i=O.useRef(null),s=r?(i.current||(i.current=new window.Image),i.current):null,[l,c]=O.useState(()=>zT(s,e));return Ft(()=>{c(zT(s,e))},[s,e]),Ft(()=>{const f=p=>()=>{c(p)};if(!s)return;const d=f("loaded"),v=f("error");return s.addEventListener("load",d),s.addEventListener("error",v),t&&(s.referrerPolicy=t),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",d),s.removeEventListener("error",v)}},[s,n,t]),l}var fU=Qk,dU=Jk,hU=t$;function n$(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=n$(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ye(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=n$(e))&&(r&&(r+=" "),r+=t);return r}const mU=(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},pU=(e,t)=>({classGroupId:e,validator:t}),r$=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Oh="-",BT=[],vU="arbitrary..",gU=e=>{const t=bU(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:l=>{if(l.startsWith("[")&&l.endsWith("]"))return yU(l);const c=l.split(Oh),f=c[0]===""&&c.length>1?1:0;return a$(c,f,t)},getConflictingClassGroupIds:(l,c)=>{if(c){const f=r[l],d=n[l];return f?d?mU(d,f):f:d||BT}return n[l]||BT}}},a$=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const i=e[t],s=n.nextPart.get(i);if(s){const d=a$(e,t+1,s);if(d)return d}const l=n.validators;if(l===null)return;const c=t===0?e.join(Oh):e.slice(t).join(Oh),f=l.length;for(let d=0;d<f;d++){const v=l[d];if(v.validator(c))return v.classGroupId}},yU=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?vU+r:void 0})(),bU=e=>{const{theme:t,classGroups:n}=e;return xU(n,t)},xU=(e,t)=>{const n=r$();for(const r in e){const i=e[r];NS(i,n,r,t)}return n},NS=(e,t,n,r)=>{const i=e.length;for(let s=0;s<i;s++){const l=e[s];wU(l,t,n,r)}},wU=(e,t,n,r)=>{if(typeof e=="string"){SU(e,t,n);return}if(typeof e=="function"){OU(e,t,n,r);return}_U(e,t,n,r)},SU=(e,t,n)=>{const r=e===""?t:i$(t,e);r.classGroupId=n},OU=(e,t,n,r)=>{if(jU(e)){NS(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(pU(n,e))},_U=(e,t,n,r)=>{const i=Object.entries(e),s=i.length;for(let l=0;l<s;l++){const[c,f]=i[l];NS(f,i$(t,c),n,r)}},i$=(e,t)=>{let n=e;const r=t.split(Oh),i=r.length;for(let s=0;s<i;s++){const l=r[s];let c=n.nextPart.get(l);c||(c=r$(),n.nextPart.set(l,c)),n=c}return n},jU=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,EU=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null);const i=(s,l)=>{n[s]=l,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(s){let l=n[s];if(l!==void 0)return l;if((l=r[s])!==void 0)return i(s,l),l},set(s,l){s in n?n[s]=l:i(s,l)}}},Tw="!",qT=":",AU=[],UT=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),TU=e=>{const{prefix:t,experimentalParseClassName:n}=e;let r=i=>{const s=[];let l=0,c=0,f=0,d;const v=i.length;for(let S=0;S<v;S++){const w=i[S];if(l===0&&c===0){if(w===qT){s.push(i.slice(f,S)),f=S+1;continue}if(w==="/"){d=S;continue}}w==="["?l++:w==="]"?l--:w==="("?c++:w===")"&&c--}const p=s.length===0?i:i.slice(f);let g=p,x=!1;p.endsWith(Tw)?(g=p.slice(0,-1),x=!0):p.startsWith(Tw)&&(g=p.slice(1),x=!0);const _=d&&d>f?d-f:void 0;return UT(s,x,g,_)};if(t){const i=t+qT,s=r;r=l=>l.startsWith(i)?s(l.slice(i.length)):UT(AU,!1,l,void 0,!0)}if(n){const i=r;r=s=>n({className:s,parseClassName:i})}return r},CU=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,r)=>{t.set(n,1e6+r)}),n=>{const r=[];let i=[];for(let s=0;s<n.length;s++){const l=n[s],c=l[0]==="[",f=t.has(l);c||f?(i.length>0&&(i.sort(),r.push(...i),i=[]),r.push(l)):i.push(l)}return i.length>0&&(i.sort(),r.push(...i)),r}},NU=e=>({cache:EU(e.cacheSize),parseClassName:TU(e),sortModifiers:CU(e),...gU(e)}),MU=/\s+/,RU=(e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],c=e.trim().split(MU);let f="";for(let d=c.length-1;d>=0;d-=1){const v=c[d],{isExternal:p,modifiers:g,hasImportantModifier:x,baseClassName:_,maybePostfixModifierPosition:S}=n(v);if(p){f=v+(f.length>0?" "+f:f);continue}let w=!!S,j=r(w?_.substring(0,S):_);if(!j){if(!w){f=v+(f.length>0?" "+f:f);continue}if(j=r(_),!j){f=v+(f.length>0?" "+f:f);continue}w=!1}const A=g.length===0?"":g.length===1?g[0]:s(g).join(":"),E=x?A+Tw:A,N=E+j;if(l.indexOf(N)>-1)continue;l.push(N);const T=i(j,w);for(let M=0;M<T.length;++M){const R=T[M];l.push(E+R)}f=v+(f.length>0?" "+f:f)}return f},DU=(...e)=>{let t=0,n,r,i="";for(;t<e.length;)(n=e[t++])&&(r=o$(n))&&(i&&(i+=" "),i+=r);return i},o$=e=>{if(typeof e=="string")return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=o$(e[r]))&&(n&&(n+=" "),n+=t);return n},PU=(e,...t)=>{let n,r,i,s;const l=f=>{const d=t.reduce((v,p)=>p(v),e());return n=NU(d),r=n.cache.get,i=n.cache.set,s=c,c(f)},c=f=>{const d=r(f);if(d)return d;const v=RU(f,n);return i(f,v),v};return s=l,(...f)=>s(DU(...f))},kU=[],Vt=e=>{const t=n=>n[e]||kU;return t.isThemeGetter=!0,t},s$=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,l$=/^\((?:(\w[\w-]*):)?(.+)\)$/i,$U=/^\d+\/\d+$/,LU=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,IU=/\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$/,zU=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,BU=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,qU=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ks=e=>$U.test(e),ke=e=>!!e&&!Number.isNaN(Number(e)),Ei=e=>!!e&&Number.isInteger(Number(e)),fy=e=>e.endsWith("%")&&ke(e.slice(0,-1)),Pa=e=>LU.test(e),UU=()=>!0,HU=e=>IU.test(e)&&!zU.test(e),u$=()=>!1,FU=e=>BU.test(e),GU=e=>qU.test(e),VU=e=>!Se(e)&&!Oe(e),YU=e=>Il(e,d$,u$),Se=e=>s$.test(e),vo=e=>Il(e,h$,HU),dy=e=>Il(e,ZU,ke),HT=e=>Il(e,c$,u$),WU=e=>Il(e,f$,GU),Gd=e=>Il(e,m$,FU),Oe=e=>l$.test(e),Yu=e=>zl(e,h$),KU=e=>zl(e,JU),FT=e=>zl(e,c$),XU=e=>zl(e,d$),QU=e=>zl(e,f$),Vd=e=>zl(e,m$,!0),Il=(e,t,n)=>{const r=s$.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},zl=(e,t,n=!1)=>{const r=l$.exec(e);return r?r[1]?t(r[1]):n:!1},c$=e=>e==="position"||e==="percentage",f$=e=>e==="image"||e==="url",d$=e=>e==="length"||e==="size"||e==="bg-size",h$=e=>e==="length",ZU=e=>e==="number",JU=e=>e==="family-name",m$=e=>e==="shadow",eH=()=>{const e=Vt("color"),t=Vt("font"),n=Vt("text"),r=Vt("font-weight"),i=Vt("tracking"),s=Vt("leading"),l=Vt("breakpoint"),c=Vt("container"),f=Vt("spacing"),d=Vt("radius"),v=Vt("shadow"),p=Vt("inset-shadow"),g=Vt("text-shadow"),x=Vt("drop-shadow"),_=Vt("blur"),S=Vt("perspective"),w=Vt("aspect"),j=Vt("ease"),A=Vt("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],N=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],T=()=>[...N(),Oe,Se],M=()=>["auto","hidden","clip","visible","scroll"],R=()=>["auto","contain","none"],D=()=>[Oe,Se,f],L=()=>[ks,"full","auto",...D()],Y=()=>[Ei,"none","subgrid",Oe,Se],z=()=>["auto",{span:["full",Ei,Oe,Se]},Ei,Oe,Se],H=()=>[Ei,"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",...D()],q=()=>[ks,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...D()],B=()=>[e,Oe,Se],W=()=>[...N(),FT,HT,{position:[Oe,Se]}],se=()=>["no-repeat",{repeat:["","x","y","space","round"]}],$=()=>["auto","cover","contain",XU,YU,{size:[Oe,Se]}],F=()=>[fy,Yu,vo],X=()=>["","none","full",d,Oe,Se],ae=()=>["",ke,Yu,vo],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,fy,FT,HT],he=()=>["","none",_,Oe,Se],ie=()=>["none",ke,Oe,Se],me=()=>["none",ke,Oe,Se],ve=()=>[ke,Oe,Se],ne=()=>[ks,"full",...D()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Pa],breakpoint:[Pa],color:[UU],container:[Pa],"drop-shadow":[Pa],ease:["in","out","in-out"],font:[VU],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Pa],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Pa],shadow:[Pa],spacing:["px",ke],text:[Pa],"text-shadow":[Pa],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ks,Se,Oe,w]}],container:["container"],columns:[{columns:[ke,Se,Oe,c]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"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:T()}],overflow:[{overflow:M()}],"overflow-x":[{"overflow-x":M()}],"overflow-y":[{"overflow-y":M()}],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:[Ei,"auto",Oe,Se]}],basis:[{basis:[ks,"full","auto",c,...D()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[ke,ks,"auto","initial","none",Se]}],grow:[{grow:["",ke,Oe,Se]}],shrink:[{shrink:["",ke,Oe,Se]}],order:[{order:[Ei,"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:D()}],"gap-x":[{"gap-x":D()}],"gap-y":[{"gap-y":D()}],"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:D()}],px:[{px:D()}],py:[{py:D()}],ps:[{ps:D()}],pe:[{pe:D()}],pt:[{pt:D()}],pr:[{pr:D()}],pb:[{pb:D()}],pl:[{pl:D()}],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":D()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":D()}],"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:[l]},...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,Yu,vo]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,Oe,dy]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",fy,Se]}],"font-family":[{font:[KU,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,dy]}],leading:[{leading:[s,...D()]}],"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,vo]}],"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:D()}],"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:se()}],"bg-size":[{bg:$()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ei,Oe,Se],radial:["",Oe,Se],conic:[Ei,Oe,Se]},QU,WU]}],"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,Yu,vo]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",v,Vd,Gd]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",p,Vd,Gd]}],"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,vo]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":ae()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",g,Vd,Gd]}],"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":N()}],"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:se()}],"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,Vd,Gd]}],"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":D()}],"border-spacing-x":[{"border-spacing-x":D()}],"border-spacing-y":[{"border-spacing-y":D()}],"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",j,Oe,Se]}],delay:[{delay:[ke,Oe,Se]}],animate:[{animate:["none",A,Oe,Se]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,Oe,Se]}],"perspective-origin":[{"perspective-origin":T()}],rotate:[{rotate:ie()}],"rotate-x":[{"rotate-x":ie()}],"rotate-y":[{"rotate-y":ie()}],"rotate-z":[{"rotate-z":ie()}],scale:[{scale:me()}],"scale-x":[{"scale-x":me()}],"scale-y":[{"scale-y":me()}],"scale-z":[{"scale-z":me()}],"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:T()}],"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":D()}],"scroll-mx":[{"scroll-mx":D()}],"scroll-my":[{"scroll-my":D()}],"scroll-ms":[{"scroll-ms":D()}],"scroll-me":[{"scroll-me":D()}],"scroll-mt":[{"scroll-mt":D()}],"scroll-mr":[{"scroll-mr":D()}],"scroll-mb":[{"scroll-mb":D()}],"scroll-ml":[{"scroll-ml":D()}],"scroll-p":[{"scroll-p":D()}],"scroll-px":[{"scroll-px":D()}],"scroll-py":[{"scroll-py":D()}],"scroll-ps":[{"scroll-ps":D()}],"scroll-pe":[{"scroll-pe":D()}],"scroll-pt":[{"scroll-pt":D()}],"scroll-pr":[{"scroll-pr":D()}],"scroll-pb":[{"scroll-pb":D()}],"scroll-pl":[{"scroll-pl":D()}],"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,Yu,vo,dy]}],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"]}},tH=PU(eH);function pe(...e){return tH(Ye(e))}function GT({className:e,...t}){return m.jsx(fU,{className:pe("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),"data-slot":"avatar",...t})}function VT({className:e,...t}){return m.jsx(dU,{className:pe("aspect-square size-full",e),"data-slot":"avatar-image",...t})}function YT({className:e,...t}){return m.jsx(hU,{className:pe("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 nH(e,t){const n=O.createContext(t),r=s=>{const{children:l,...c}=s,f=O.useMemo(()=>c,Object.values(c));return m.jsx(n.Provider,{value:f,children:l})};r.displayName=e+"Provider";function i(s){const l=O.useContext(n);if(l)return l;if(t!==void 0)return t;throw new Error(`\`${s}\` must be used within \`${e}\``)}return[r,i]}function zr(e,t=[]){let n=[];function r(s,l){const c=O.createContext(l),f=n.length;n=[...n,l];const d=p=>{var j;const{scope:g,children:x,..._}=p,S=((j=g==null?void 0:g[e])==null?void 0:j[f])||c,w=O.useMemo(()=>_,Object.values(_));return m.jsx(S.Provider,{value:w,children:x})};d.displayName=s+"Provider";function v(p,g){var S;const x=((S=g==null?void 0:g[e])==null?void 0:S[f])||c,_=O.useContext(x);if(_)return _;if(l!==void 0)return l;throw new Error(`\`${p}\` must be used within \`${s}\``)}return[d,v]}const i=()=>{const s=n.map(l=>O.createContext(l));return function(c){const f=(c==null?void 0:c[e])||s;return O.useMemo(()=>({[`__scope${e}`]:{...c,[e]:f}}),[c,f])}};return i.scopeName=e,[r,rH(i,...t)]}function rH(...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(s){const l=r.reduce((c,{useScope:f,scopeName:d})=>{const p=f(s)[`__scope${d}`];return{...c,...p}},{});return O.useMemo(()=>({[`__scope${t.scopeName}`]:l}),[l])}};return n.scopeName=t.scopeName,n}var aH=xS[" useInsertionEffect ".trim().toString()]||Ft;function $i({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[i,s,l]=iH({defaultProp:t,onChange:n}),c=e!==void 0,f=c?e:i;{const v=O.useRef(e!==void 0);O.useEffect(()=>{const p=v.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.`),v.current=c},[c,r])}const d=O.useCallback(v=>{var p;if(c){const g=oH(v)?v(e):v;g!==e&&((p=l.current)==null||p.call(l,g))}else s(v)},[c,e,s,l]);return[f,d]}function iH({defaultProp:e,onChange:t}){const[n,r]=O.useState(e),i=O.useRef(n),s=O.useRef(t);return aH(()=>{s.current=t},[t]),O.useEffect(()=>{var l;i.current!==n&&((l=s.current)==null||l.call(s,n),i.current=n)},[n,i]),[n,r,s]}function oH(e){return typeof e=="function"}function rl(e){const t=sH(e),n=O.forwardRef((r,i)=>{const{children:s,...l}=r,c=O.Children.toArray(s),f=c.find(lH);if(f){const d=f.props.children,v=c.map(p=>p===f?O.Children.count(d)>1?O.Children.only(null):O.isValidElement(d)?d.props.children:null:p);return m.jsx(t,{...l,ref:i,children:O.isValidElement(d)?O.cloneElement(d,void 0,v):null})}return m.jsx(t,{...l,ref:i,children:s})});return n.displayName=`${e}.Slot`,n}function sH(e){const t=O.forwardRef((n,r)=>{const{children:i,...s}=n;if(O.isValidElement(i)){const l=cH(i),c=uH(s,i.props);return i.type!==O.Fragment&&(c.ref=r?cf(r,l):l),O.cloneElement(i,c)}return O.Children.count(i)>1?O.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var p$=Symbol("radix.slottable");function v$(e){const t=({children:n})=>m.jsx(m.Fragment,{children:n});return t.displayName=`${e}.Slottable`,t.__radixId=p$,t}function lH(e){return O.isValidElement(e)&&typeof e.type=="function"&&"__radixId"in e.type&&e.type.__radixId===p$}function uH(e,t){const n={...t};for(const r in t){const i=e[r],s=t[r];/^on[A-Z]/.test(r)?i&&s?n[r]=(...c)=>{const f=s(...c);return i(...c),f}:i&&(n[r]=i):r==="style"?n[r]={...i,...s}:r==="className"&&(n[r]=[i,s].filter(Boolean).join(" "))}return{...e,...n}}function cH(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 fH=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],Re=fH.reduce((e,t)=>{const n=rl(`Primitive.${t}`),r=O.forwardRef((i,s)=>{const{asChild:l,...c}=i,f=l?n:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),m.jsx(f,{...c,ref:s})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function g$(e,t){e&&lf.flushSync(()=>e.dispatchEvent(t))}function MS(e){const t=e+"CollectionProvider",[n,r]=zr(t),[i,s]=n(t,{collectionRef:{current:null},itemMap:new Map}),l=S=>{const{scope:w,children:j}=S,A=I.useRef(null),E=I.useRef(new Map).current;return m.jsx(i,{scope:w,itemMap:E,collectionRef:A,children:j})};l.displayName=t;const c=e+"CollectionSlot",f=rl(c),d=I.forwardRef((S,w)=>{const{scope:j,children:A}=S,E=s(c,j),N=tt(w,E.collectionRef);return m.jsx(f,{ref:N,children:A})});d.displayName=c;const v=e+"CollectionItemSlot",p="data-radix-collection-item",g=rl(v),x=I.forwardRef((S,w)=>{const{scope:j,children:A,...E}=S,N=I.useRef(null),T=tt(w,N),M=s(v,j);return I.useEffect(()=>(M.itemMap.set(N,{ref:N,...E}),()=>void M.itemMap.delete(N))),m.jsx(g,{[p]:"",ref:T,children:A})});x.displayName=v;function _(S){const w=s(e+"CollectionConsumer",S);return I.useCallback(()=>{const A=w.collectionRef.current;if(!A)return[];const E=Array.from(A.querySelectorAll(`[${p}]`));return Array.from(w.itemMap.values()).sort((M,R)=>E.indexOf(M.ref.current)-E.indexOf(R.ref.current))},[w.collectionRef,w.itemMap])}return[{Provider:l,Slot:d,ItemSlot:x},_,r]}var dH=O.createContext(void 0);function zm(e){const t=O.useContext(dH);return e||t||"ltr"}function hH(e,t=globalThis==null?void 0:globalThis.document){const n=Pr(e);O.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 mH="DismissableLayer",Cw="dismissableLayer.update",pH="dismissableLayer.pointerDownOutside",vH="dismissableLayer.focusOutside",WT,y$=O.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ff=O.forwardRef((e,t)=>{const{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:r,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...f}=e,d=O.useContext(y$),[v,p]=O.useState(null),g=(v==null?void 0:v.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,x]=O.useState({}),_=tt(t,R=>p(R)),S=Array.from(d.layers),[w]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),j=S.indexOf(w),A=v?S.indexOf(v):-1,E=d.layersWithOutsidePointerEventsDisabled.size>0,N=A>=j,T=bH(R=>{const D=R.target,L=[...d.branches].some(Y=>Y.contains(D));!N||L||(i==null||i(R),l==null||l(R),R.defaultPrevented||c==null||c())},g),M=xH(R=>{const D=R.target;[...d.branches].some(Y=>Y.contains(D))||(s==null||s(R),l==null||l(R),R.defaultPrevented||c==null||c())},g);return hH(R=>{A===d.layers.size-1&&(r==null||r(R),!R.defaultPrevented&&c&&(R.preventDefault(),c()))},g),O.useEffect(()=>{if(v)return n&&(d.layersWithOutsidePointerEventsDisabled.size===0&&(WT=g.body.style.pointerEvents,g.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(v)),d.layers.add(v),KT(),()=>{n&&d.layersWithOutsidePointerEventsDisabled.size===1&&(g.body.style.pointerEvents=WT)}},[v,g,n,d]),O.useEffect(()=>()=>{v&&(d.layers.delete(v),d.layersWithOutsidePointerEventsDisabled.delete(v),KT())},[v,d]),O.useEffect(()=>{const R=()=>x({});return document.addEventListener(Cw,R),()=>document.removeEventListener(Cw,R)},[]),m.jsx(Re.div,{...f,ref:_,style:{pointerEvents:E?N?"auto":"none":void 0,...e.style},onFocusCapture:be(e.onFocusCapture,M.onFocusCapture),onBlurCapture:be(e.onBlurCapture,M.onBlurCapture),onPointerDownCapture:be(e.onPointerDownCapture,T.onPointerDownCapture)})});ff.displayName=mH;var gH="DismissableLayerBranch",yH=O.forwardRef((e,t)=>{const n=O.useContext(y$),r=O.useRef(null),i=tt(t,r);return O.useEffect(()=>{const s=r.current;if(s)return n.branches.add(s),()=>{n.branches.delete(s)}},[n.branches]),m.jsx(Re.div,{...e,ref:i})});yH.displayName=gH;function bH(e,t=globalThis==null?void 0:globalThis.document){const n=Pr(e),r=O.useRef(!1),i=O.useRef(()=>{});return O.useEffect(()=>{const s=c=>{if(c.target&&!r.current){let f=function(){b$(pH,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},l=window.setTimeout(()=>{t.addEventListener("pointerdown",s)},0);return()=>{window.clearTimeout(l),t.removeEventListener("pointerdown",s),t.removeEventListener("click",i.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}function xH(e,t=globalThis==null?void 0:globalThis.document){const n=Pr(e),r=O.useRef(!1);return O.useEffect(()=>{const i=s=>{s.target&&!r.current&&b$(vH,n,{originalEvent:s},{discrete:!1})};return t.addEventListener("focusin",i),()=>t.removeEventListener("focusin",i)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}function KT(){const e=new CustomEvent(Cw);document.dispatchEvent(e)}function b$(e,t,n,{discrete:r}){const i=n.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?g$(i,s):i.dispatchEvent(s)}var hy=0;function RS(){O.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??XT()),document.body.insertAdjacentElement("beforeend",e[1]??XT()),hy++,()=>{hy===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(t=>t.remove()),hy--}},[])}function XT(){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 my="focusScope.autoFocusOnMount",py="focusScope.autoFocusOnUnmount",QT={bubbles:!1,cancelable:!0},wH="FocusScope",Bm=O.forwardRef((e,t)=>{const{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,f]=O.useState(null),d=Pr(i),v=Pr(s),p=O.useRef(null),g=tt(t,S=>f(S)),x=O.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;O.useEffect(()=>{if(r){let S=function(E){if(x.paused||!c)return;const N=E.target;c.contains(N)?p.current=N:Ti(p.current,{select:!0})},w=function(E){if(x.paused||!c)return;const N=E.relatedTarget;N!==null&&(c.contains(N)||Ti(p.current,{select:!0}))},j=function(E){if(document.activeElement===document.body)for(const T of E)T.removedNodes.length>0&&Ti(c)};document.addEventListener("focusin",S),document.addEventListener("focusout",w);const A=new MutationObserver(j);return c&&A.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",S),document.removeEventListener("focusout",w),A.disconnect()}}},[r,c,x.paused]),O.useEffect(()=>{if(c){JT.add(x);const S=document.activeElement;if(!c.contains(S)){const j=new CustomEvent(my,QT);c.addEventListener(my,d),c.dispatchEvent(j),j.defaultPrevented||(SH(AH(x$(c)),{select:!0}),document.activeElement===S&&Ti(c))}return()=>{c.removeEventListener(my,d),setTimeout(()=>{const j=new CustomEvent(py,QT);c.addEventListener(py,v),c.dispatchEvent(j),j.defaultPrevented||Ti(S??document.body,{select:!0}),c.removeEventListener(py,v),JT.remove(x)},0)}}},[c,d,v,x]);const _=O.useCallback(S=>{if(!n&&!r||x.paused)return;const w=S.key==="Tab"&&!S.altKey&&!S.ctrlKey&&!S.metaKey,j=document.activeElement;if(w&&j){const A=S.currentTarget,[E,N]=OH(A);E&&N?!S.shiftKey&&j===N?(S.preventDefault(),n&&Ti(E,{select:!0})):S.shiftKey&&j===E&&(S.preventDefault(),n&&Ti(N,{select:!0})):j===A&&S.preventDefault()}},[n,r,x.paused]);return m.jsx(Re.div,{tabIndex:-1,...l,ref:g,onKeyDown:_})});Bm.displayName=wH;function SH(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(Ti(r,{select:t}),document.activeElement!==n)return}function OH(e){const t=x$(e),n=ZT(t,e),r=ZT(t.reverse(),e);return[n,r]}function x$(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 ZT(e,t){for(const n of e)if(!_H(n,{upTo:t}))return n}function _H(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 jH(e){return e instanceof HTMLInputElement&&"select"in e}function Ti(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&jH(e)&&t&&e.select()}}var JT=EH();function EH(){let e=[];return{add(t){const n=e[0];t!==n&&(n==null||n.pause()),e=eC(e,t),e.unshift(t)},remove(t){var n;e=eC(e,t),(n=e[0])==null||n.resume()}}}function eC(e,t){const n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}function AH(e){return e.filter(t=>t.tagName!=="A")}var TH=xS[" useId ".trim().toString()]||(()=>{}),CH=0;function mr(e){const[t,n]=O.useState(TH());return Ft(()=>{n(r=>r??String(CH++))},[e]),e||(t?`radix-${t}`:"")}const NH=["top","right","bottom","left"],Li=Math.min,Wn=Math.max,_h=Math.round,Yd=Math.floor,sa=e=>({x:e,y:e}),MH={left:"right",right:"left",bottom:"top",top:"bottom"},RH={start:"end",end:"start"};function Nw(e,t,n){return Wn(e,Li(t,n))}function Fa(e,t){return typeof e=="function"?e(t):e}function Ga(e){return e.split("-")[0]}function Bl(e){return e.split("-")[1]}function DS(e){return e==="x"?"y":"x"}function PS(e){return e==="y"?"height":"width"}const DH=new Set(["top","bottom"]);function ia(e){return DH.has(Ga(e))?"y":"x"}function kS(e){return DS(ia(e))}function PH(e,t,n){n===void 0&&(n=!1);const r=Bl(e),i=kS(e),s=PS(i);let l=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=jh(l)),[l,jh(l)]}function kH(e){const t=jh(e);return[Mw(e),t,Mw(t)]}function Mw(e){return e.replace(/start|end/g,t=>RH[t])}const tC=["left","right"],nC=["right","left"],$H=["top","bottom"],LH=["bottom","top"];function IH(e,t,n){switch(e){case"top":case"bottom":return n?t?nC:tC:t?tC:nC;case"left":case"right":return t?$H:LH;default:return[]}}function zH(e,t,n,r){const i=Bl(e);let s=IH(Ga(e),n==="start",r);return i&&(s=s.map(l=>l+"-"+i),t&&(s=s.concat(s.map(Mw)))),s}function jh(e){return e.replace(/left|right|bottom|top/g,t=>MH[t])}function BH(e){return{top:0,right:0,bottom:0,left:0,...e}}function w$(e){return typeof e!="number"?BH(e):{top:e,right:e,bottom:e,left:e}}function Eh(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 rC(e,t,n){let{reference:r,floating:i}=e;const s=ia(t),l=kS(t),c=PS(l),f=Ga(t),d=s==="y",v=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,g=r[c]/2-i[c]/2;let x;switch(f){case"top":x={x:v,y:r.y-i.height};break;case"bottom":x={x:v,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(Bl(t)){case"start":x[l]-=g*(n&&d?-1:1);break;case"end":x[l]+=g*(n&&d?-1:1);break}return x}const qH=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:s=[],platform:l}=n,c=s.filter(Boolean),f=await(l.isRTL==null?void 0:l.isRTL(t));let d=await l.getElementRects({reference:e,floating:t,strategy:i}),{x:v,y:p}=rC(d,r,f),g=r,x={},_=0;for(let S=0;S<c.length;S++){const{name:w,fn:j}=c[S],{x:A,y:E,data:N,reset:T}=await j({x:v,y:p,initialPlacement:r,placement:g,strategy:i,middlewareData:x,rects:d,platform:l,elements:{reference:e,floating:t}});v=A??v,p=E??p,x={...x,[w]:{...x[w],...N}},T&&_<=50&&(_++,typeof T=="object"&&(T.placement&&(g=T.placement),T.rects&&(d=T.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:i}):T.rects),{x:v,y:p}=rC(d,g,f)),S=-1)}return{x:v,y:p,placement:g,strategy:i,middlewareData:x}};async function yc(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:s,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:v="viewport",elementContext:p="floating",altBoundary:g=!1,padding:x=0}=Fa(t,e),_=w$(x),w=c[g?p==="floating"?"reference":"floating":p],j=Eh(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(w)))==null||n?w:w.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:v,strategy:f})),A=p==="floating"?{x:r,y:i,width:l.floating.width,height:l.floating.height}:l.reference,E=await(s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating)),N=await(s.isElement==null?void 0:s.isElement(E))?await(s.getScale==null?void 0:s.getScale(E))||{x:1,y:1}:{x:1,y:1},T=Eh(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:A,offsetParent:E,strategy:f}):A);return{top:(j.top-T.top+_.top)/N.y,bottom:(T.bottom-j.bottom+_.bottom)/N.y,left:(j.left-T.left+_.left)/N.x,right:(T.right-j.right+_.right)/N.x}}const UH=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:s,platform:l,elements:c,middlewareData:f}=t,{element:d,padding:v=0}=Fa(e,t)||{};if(d==null)return{};const p=w$(v),g={x:n,y:r},x=kS(i),_=PS(x),S=await l.getDimensions(d),w=x==="y",j=w?"top":"left",A=w?"bottom":"right",E=w?"clientHeight":"clientWidth",N=s.reference[_]+s.reference[x]-g[x]-s.floating[_],T=g[x]-s.reference[x],M=await(l.getOffsetParent==null?void 0:l.getOffsetParent(d));let R=M?M[E]:0;(!R||!await(l.isElement==null?void 0:l.isElement(M)))&&(R=c.floating[E]||s.floating[_]);const D=N/2-T/2,L=R/2-S[_]/2-1,Y=Li(p[j],L),z=Li(p[A],L),H=Y,V=R-S[_]-z,Q=R/2-S[_]/2+D,K=Nw(H,Q,V),k=!f.arrow&&Bl(i)!=null&&Q!==K&&s.reference[_]/2-(Q<H?Y:z)-S[_]/2<0,q=k?Q<H?Q-H:Q-V:0;return{[x]:g[x]+q,data:{[x]:K,centerOffset:Q-K-q,...k&&{alignmentOffset:q}},reset:k}}}),HH=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:s,rects:l,initialPlacement:c,platform:f,elements:d}=t,{mainAxis:v=!0,crossAxis:p=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:S=!0,...w}=Fa(e,t);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const j=Ga(i),A=ia(c),E=Ga(c)===c,N=await(f.isRTL==null?void 0:f.isRTL(d.floating)),T=g||(E||!S?[jh(c)]:kH(c)),M=_!=="none";!g&&M&&T.push(...zH(c,S,_,N));const R=[c,...T],D=await yc(t,w),L=[];let Y=((r=s.flip)==null?void 0:r.overflows)||[];if(v&&L.push(D[j]),p){const Q=PH(i,l,N);L.push(D[Q[0]],D[Q[1]])}if(Y=[...Y,{placement:i,overflows:L}],!L.every(Q=>Q<=0)){var z,H;const Q=(((z=s.flip)==null?void 0:z.index)||0)+1,K=R[Q];if(K&&(!(p==="alignment"?A!==ia(K):!1)||Y.every(B=>ia(B.placement)===A?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(M){const W=ia(B.placement);return W===A||W==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(W=>W>0).reduce((W,se)=>W+se,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 aC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function iC(e){return NH.some(t=>e[t]>=0)}const FH=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:r="referenceHidden",...i}=Fa(e,t);switch(r){case"referenceHidden":{const s=await yc(t,{...i,elementContext:"reference"}),l=aC(s,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:iC(l)}}}case"escaped":{const s=await yc(t,{...i,altBoundary:!0}),l=aC(s,n.floating);return{data:{escapedOffsets:l,escaped:iC(l)}}}default:return{}}}}},S$=new Set(["left","top"]);async function GH(e,t){const{placement:n,platform:r,elements:i}=e,s=await(r.isRTL==null?void 0:r.isRTL(i.floating)),l=Ga(n),c=Bl(n),f=ia(n)==="y",d=S$.has(l)?-1:1,v=s&&f?-1:1,p=Fa(t,e);let{mainAxis:g,crossAxis:x,alignmentAxis:_}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof _=="number"&&(x=c==="end"?_*-1:_),f?{x:x*v,y:g*d}:{x:g*d,y:x*v}}const VH=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:s,placement:l,middlewareData:c}=t,f=await GH(t,e);return l===((n=c.offset)==null?void 0:n.placement)&&(r=c.arrow)!=null&&r.alignmentOffset?{}:{x:i+f.x,y:s+f.y,data:{...f,placement:l}}}}},YH=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,{mainAxis:s=!0,crossAxis:l=!1,limiter:c={fn:w=>{let{x:j,y:A}=w;return{x:j,y:A}}},...f}=Fa(e,t),d={x:n,y:r},v=await yc(t,f),p=ia(Ga(i)),g=DS(p);let x=d[g],_=d[p];if(s){const w=g==="y"?"top":"left",j=g==="y"?"bottom":"right",A=x+v[w],E=x-v[j];x=Nw(A,x,E)}if(l){const w=p==="y"?"top":"left",j=p==="y"?"bottom":"right",A=_+v[w],E=_-v[j];_=Nw(A,_,E)}const S=c.fn({...t,[g]:x,[p]:_});return{...S,data:{x:S.x-n,y:S.y-r,enabled:{[g]:s,[p]:l}}}}}},WH=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:i,rects:s,middlewareData:l}=t,{offset:c=0,mainAxis:f=!0,crossAxis:d=!0}=Fa(e,t),v={x:n,y:r},p=ia(i),g=DS(p);let x=v[g],_=v[p];const S=Fa(c,t),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(f){const E=g==="y"?"height":"width",N=s.reference[g]-s.floating[E]+w.mainAxis,T=s.reference[g]+s.reference[E]-w.mainAxis;x<N?x=N:x>T&&(x=T)}if(d){var j,A;const E=g==="y"?"width":"height",N=S$.has(Ga(i)),T=s.reference[p]-s.floating[E]+(N&&((j=l.offset)==null?void 0:j[p])||0)+(N?0:w.crossAxis),M=s.reference[p]+s.reference[E]+(N?0:((A=l.offset)==null?void 0:A[p])||0)-(N?w.crossAxis:0);_<T?_=T:_>M&&(_=M)}return{[g]:x,[p]:_}}}},KH=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:i,rects:s,platform:l,elements:c}=t,{apply:f=()=>{},...d}=Fa(e,t),v=await yc(t,d),p=Ga(i),g=Bl(i),x=ia(i)==="y",{width:_,height:S}=s.floating;let w,j;p==="top"||p==="bottom"?(w=p,j=g===(await(l.isRTL==null?void 0:l.isRTL(c.floating))?"start":"end")?"left":"right"):(j=p,w=g==="end"?"top":"bottom");const A=S-v.top-v.bottom,E=_-v.left-v.right,N=Li(S-v[w],A),T=Li(_-v[j],E),M=!t.middlewareData.shift;let R=N,D=T;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(D=E),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(R=A),M&&!g){const Y=Wn(v.left,0),z=Wn(v.right,0),H=Wn(v.top,0),V=Wn(v.bottom,0);x?D=_-2*(Y!==0||z!==0?Y+z:Wn(v.left,v.right)):R=S-2*(H!==0||V!==0?H+V:Wn(v.top,v.bottom))}await f({...t,availableWidth:D,availableHeight:R});const L=await l.getDimensions(c.floating);return _!==L.width||S!==L.height?{reset:{rects:!0}}:{}}}};function qm(){return typeof window<"u"}function ql(e){return O$(e)?(e.nodeName||"").toLowerCase():"#document"}function Xn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ha(e){var t;return(t=(O$(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function O$(e){return qm()?e instanceof Node||e instanceof Xn(e).Node:!1}function kr(e){return qm()?e instanceof Element||e instanceof Xn(e).Element:!1}function ca(e){return qm()?e instanceof HTMLElement||e instanceof Xn(e).HTMLElement:!1}function oC(e){return!qm()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xn(e).ShadowRoot}const XH=new Set(["inline","contents"]);function df(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=$r(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!XH.has(i)}const QH=new Set(["table","td","th"]);function ZH(e){return QH.has(ql(e))}const JH=[":popover-open",":modal"];function Um(e){return JH.some(t=>{try{return e.matches(t)}catch{return!1}})}const e7=["transform","translate","scale","rotate","perspective"],t7=["transform","translate","scale","rotate","perspective","filter"],n7=["paint","layout","strict","content"];function $S(e){const t=LS(),n=kr(e)?$r(e):e;return e7.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)||t7.some(r=>(n.willChange||"").includes(r))||n7.some(r=>(n.contain||"").includes(r))}function r7(e){let t=Ii(e);for(;ca(t)&&!al(t);){if($S(t))return t;if(Um(t))return null;t=Ii(t)}return null}function LS(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const a7=new Set(["html","body","#document"]);function al(e){return a7.has(ql(e))}function $r(e){return Xn(e).getComputedStyle(e)}function Hm(e){return kr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ii(e){if(ql(e)==="html")return e;const t=e.assignedSlot||e.parentNode||oC(e)&&e.host||ha(e);return oC(t)?t.host:t}function _$(e){const t=Ii(e);return al(t)?e.ownerDocument?e.ownerDocument.body:e.body:ca(t)&&df(t)?t:_$(t)}function bc(e,t,n){var r;t===void 0&&(t=[]),n===void 0&&(n=!0);const i=_$(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),l=Xn(i);if(s){const c=Rw(l);return t.concat(l,l.visualViewport||[],df(i)?i:[],c&&n?bc(c):[])}return t.concat(i,bc(i,[],n))}function Rw(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function j$(e){const t=$r(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=ca(e),s=i?e.offsetWidth:n,l=i?e.offsetHeight:r,c=_h(n)!==s||_h(r)!==l;return c&&(n=s,r=l),{width:n,height:r,$:c}}function IS(e){return kr(e)?e:e.contextElement}function Ks(e){const t=IS(e);if(!ca(t))return sa(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:s}=j$(t);let l=(s?_h(n.width):n.width)/r,c=(s?_h(n.height):n.height)/i;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}const i7=sa(0);function E$(e){const t=Xn(e);return!LS()||!t.visualViewport?i7:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function o7(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Xn(e)?!1:t}function Co(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),s=IS(e);let l=sa(1);t&&(r?kr(r)&&(l=Ks(r)):l=Ks(e));const c=o7(s,n,r)?E$(s):sa(0);let f=(i.left+c.x)/l.x,d=(i.top+c.y)/l.y,v=i.width/l.x,p=i.height/l.y;if(s){const g=Xn(s),x=r&&kr(r)?Xn(r):r;let _=g,S=Rw(_);for(;S&&r&&x!==_;){const w=Ks(S),j=S.getBoundingClientRect(),A=$r(S),E=j.left+(S.clientLeft+parseFloat(A.paddingLeft))*w.x,N=j.top+(S.clientTop+parseFloat(A.paddingTop))*w.y;f*=w.x,d*=w.y,v*=w.x,p*=w.y,f+=E,d+=N,_=Xn(S),S=Rw(_)}}return Eh({width:v,height:p,x:f,y:d})}function Fm(e,t){const n=Hm(e).scrollLeft;return t?t.left+n:Co(ha(e)).left+n}function A$(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Fm(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function s7(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const s=i==="fixed",l=ha(r),c=t?Um(t.floating):!1;if(r===l||c&&s)return n;let f={scrollLeft:0,scrollTop:0},d=sa(1);const v=sa(0),p=ca(r);if((p||!p&&!s)&&((ql(r)!=="body"||df(l))&&(f=Hm(r)),ca(r))){const x=Co(r);d=Ks(r),v.x=x.x+r.clientLeft,v.y=x.y+r.clientTop}const g=l&&!p&&!s?A$(l,f):sa(0);return{width:n.width*d.x,height:n.height*d.y,x:n.x*d.x-f.scrollLeft*d.x+v.x+g.x,y:n.y*d.y-f.scrollTop*d.y+v.y+g.y}}function l7(e){return Array.from(e.getClientRects())}function u7(e){const t=ha(e),n=Hm(e),r=e.ownerDocument.body,i=Wn(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Wn(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let l=-n.scrollLeft+Fm(e);const c=-n.scrollTop;return $r(r).direction==="rtl"&&(l+=Wn(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:l,y:c}}const sC=25;function c7(e,t){const n=Xn(e),r=ha(e),i=n.visualViewport;let s=r.clientWidth,l=r.clientHeight,c=0,f=0;if(i){s=i.width,l=i.height;const v=LS();(!v||v&&t==="fixed")&&(c=i.offsetLeft,f=i.offsetTop)}const d=Fm(r);if(d<=0){const v=r.ownerDocument,p=v.body,g=getComputedStyle(p),x=v.compatMode==="CSS1Compat"&&parseFloat(g.marginLeft)+parseFloat(g.marginRight)||0,_=Math.abs(r.clientWidth-p.clientWidth-x);_<=sC&&(s-=_)}else d<=sC&&(s+=d);return{width:s,height:l,x:c,y:f}}const f7=new Set(["absolute","fixed"]);function d7(e,t){const n=Co(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,s=ca(e)?Ks(e):sa(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,f=i*s.x,d=r*s.y;return{width:l,height:c,x:f,y:d}}function lC(e,t,n){let r;if(t==="viewport")r=c7(e,n);else if(t==="document")r=u7(ha(e));else if(kr(t))r=d7(t,n);else{const i=E$(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Eh(r)}function T$(e,t){const n=Ii(e);return n===t||!kr(n)||al(n)?!1:$r(n).position==="fixed"||T$(n,t)}function h7(e,t){const n=t.get(e);if(n)return n;let r=bc(e,[],!1).filter(c=>kr(c)&&ql(c)!=="body"),i=null;const s=$r(e).position==="fixed";let l=s?Ii(e):e;for(;kr(l)&&!al(l);){const c=$r(l),f=$S(l);!f&&c.position==="fixed"&&(i=null),(s?!f&&!i:!f&&c.position==="static"&&!!i&&f7.has(i.position)||df(l)&&!f&&T$(e,l))?r=r.filter(v=>v!==l):i=c,l=Ii(l)}return t.set(e,r),r}function m7(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const l=[...n==="clippingAncestors"?Um(t)?[]:h7(t,this._c):[].concat(n),r],c=l[0],f=l.reduce((d,v)=>{const p=lC(t,v,i);return d.top=Wn(p.top,d.top),d.right=Li(p.right,d.right),d.bottom=Li(p.bottom,d.bottom),d.left=Wn(p.left,d.left),d},lC(t,c,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function p7(e){const{width:t,height:n}=j$(e);return{width:t,height:n}}function v7(e,t,n){const r=ca(t),i=ha(t),s=n==="fixed",l=Co(e,!0,s,t);let c={scrollLeft:0,scrollTop:0};const f=sa(0);function d(){f.x=Fm(i)}if(r||!r&&!s)if((ql(t)!=="body"||df(i))&&(c=Hm(t)),r){const x=Co(t,!0,s,t);f.x=x.x+t.clientLeft,f.y=x.y+t.clientTop}else i&&d();s&&!r&&i&&d();const v=i&&!r&&!s?A$(i,c):sa(0),p=l.left+c.scrollLeft-f.x-v.x,g=l.top+c.scrollTop-f.y-v.y;return{x:p,y:g,width:l.width,height:l.height}}function vy(e){return $r(e).position==="static"}function uC(e,t){if(!ca(e)||$r(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return ha(e)===n&&(n=n.ownerDocument.body),n}function C$(e,t){const n=Xn(e);if(Um(e))return n;if(!ca(e)){let i=Ii(e);for(;i&&!al(i);){if(kr(i)&&!vy(i))return i;i=Ii(i)}return n}let r=uC(e,t);for(;r&&ZH(r)&&vy(r);)r=uC(r,t);return r&&al(r)&&vy(r)&&!$S(r)?n:r||r7(e)||n}const g7=async function(e){const t=this.getOffsetParent||C$,n=this.getDimensions,r=await n(e.floating);return{reference:v7(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function y7(e){return $r(e).direction==="rtl"}const b7={convertOffsetParentRelativeRectToViewportRelativeRect:s7,getDocumentElement:ha,getClippingRect:m7,getOffsetParent:C$,getElementRects:g7,getClientRects:l7,getDimensions:p7,getScale:Ks,isElement:kr,isRTL:y7};function N$(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function x7(e,t){let n=null,r;const i=ha(e);function s(){var c;clearTimeout(r),(c=n)==null||c.disconnect(),n=null}function l(c,f){c===void 0&&(c=!1),f===void 0&&(f=1),s();const d=e.getBoundingClientRect(),{left:v,top:p,width:g,height:x}=d;if(c||t(),!g||!x)return;const _=Yd(p),S=Yd(i.clientWidth-(v+g)),w=Yd(i.clientHeight-(p+x)),j=Yd(v),E={rootMargin:-_+"px "+-S+"px "+-w+"px "+-j+"px",threshold:Wn(0,Li(1,f))||1};let N=!0;function T(M){const R=M[0].intersectionRatio;if(R!==f){if(!N)return l();R?l(!1,R):r=setTimeout(()=>{l(!1,1e-7)},1e3)}R===1&&!N$(d,e.getBoundingClientRect())&&l(),N=!1}try{n=new IntersectionObserver(T,{...E,root:i.ownerDocument})}catch{n=new IntersectionObserver(T,E)}n.observe(e)}return l(!0),s}function w7(e,t,n,r){r===void 0&&(r={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:f=!1}=r,d=IS(e),v=i||s?[...d?bc(d):[],...bc(t)]:[];v.forEach(j=>{i&&j.addEventListener("scroll",n,{passive:!0}),s&&j.addEventListener("resize",n)});const p=d&&c?x7(d,n):null;let g=-1,x=null;l&&(x=new ResizeObserver(j=>{let[A]=j;A&&A.target===d&&x&&(x.unobserve(t),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var E;(E=x)==null||E.observe(t)})),n()}),d&&!f&&x.observe(d),x.observe(t));let _,S=f?Co(e):null;f&&w();function w(){const j=Co(e);S&&!N$(S,j)&&n(),S=j,_=requestAnimationFrame(w)}return n(),()=>{var j;v.forEach(A=>{i&&A.removeEventListener("scroll",n),s&&A.removeEventListener("resize",n)}),p==null||p(),(j=x)==null||j.disconnect(),x=null,f&&cancelAnimationFrame(_)}}const S7=VH,O7=YH,_7=HH,j7=KH,E7=FH,cC=UH,A7=WH,T7=(e,t,n)=>{const r=new Map,i={platform:b7,...n},s={...i.platform,_c:r};return qH(e,t,{...i,platform:s})};var C7=typeof document<"u",N7=function(){},ph=C7?O.useLayoutEffect:N7;function Ah(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(!Ah(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 s=i[r];if(!(s==="_owner"&&e.$$typeof)&&!Ah(e[s],t[s]))return!1}return!0}return e!==e&&t!==t}function M$(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function fC(e,t){const n=M$(e);return Math.round(t*n)/n}function gy(e){const t=O.useRef(e);return ph(()=>{t.current=e}),t}function M7(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:s,floating:l}={},transform:c=!0,whileElementsMounted:f,open:d}=e,[v,p]=O.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,x]=O.useState(r);Ah(g,r)||x(r);const[_,S]=O.useState(null),[w,j]=O.useState(null),A=O.useCallback(B=>{B!==M.current&&(M.current=B,S(B))},[]),E=O.useCallback(B=>{B!==R.current&&(R.current=B,j(B))},[]),N=s||_,T=l||w,M=O.useRef(null),R=O.useRef(null),D=O.useRef(v),L=f!=null,Y=gy(f),z=gy(i),H=gy(d),V=O.useCallback(()=>{if(!M.current||!R.current)return;const B={placement:t,strategy:n,middleware:g};z.current&&(B.platform=z.current),T7(M.current,R.current,B).then(W=>{const se={...W,isPositioned:H.current!==!1};Q.current&&!Ah(D.current,se)&&(D.current=se,lf.flushSync(()=>{p(se)}))})},[g,t,n,z,H]);ph(()=>{d===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,p(B=>({...B,isPositioned:!1})))},[d]);const Q=O.useRef(!1);ph(()=>(Q.current=!0,()=>{Q.current=!1}),[]),ph(()=>{if(N&&(M.current=N),T&&(R.current=T),N&&T){if(Y.current)return Y.current(N,T,V);V()}},[N,T,V,Y,L]);const K=O.useMemo(()=>({reference:M,floating:R,setReference:A,setFloating:E}),[A,E]),k=O.useMemo(()=>({reference:N,floating:T}),[N,T]),q=O.useMemo(()=>{const B={position:n,left:0,top:0};if(!k.floating)return B;const W=fC(k.floating,v.x),se=fC(k.floating,v.y);return c?{...B,transform:"translate("+W+"px, "+se+"px)",...M$(k.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:se}},[n,c,k.floating,v.x,v.y]);return O.useMemo(()=>({...v,update:V,refs:K,elements:k,floatingStyles:q}),[v,V,K,k,q])}const R7=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?cC({element:r.current,padding:i}).fn(n):{}:r?cC({element:r,padding:i}).fn(n):{}}}},D7=(e,t)=>({...S7(e),options:[e,t]}),P7=(e,t)=>({...O7(e),options:[e,t]}),k7=(e,t)=>({...A7(e),options:[e,t]}),$7=(e,t)=>({..._7(e),options:[e,t]}),L7=(e,t)=>({...j7(e),options:[e,t]}),I7=(e,t)=>({...E7(e),options:[e,t]}),z7=(e,t)=>({...R7(e),options:[e,t]});var B7="Arrow",R$=O.forwardRef((e,t)=>{const{children:n,width:r=10,height:i=5,...s}=e;return m.jsx(Re.svg,{...s,ref:t,width:r,height:i,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:m.jsx("polygon",{points:"0,0 30,0 15,10"})})});R$.displayName=B7;var q7=R$;function U7(e){const[t,n]=O.useState(void 0);return Ft(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const r=new ResizeObserver(i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,c;if("borderBoxSize"in s){const f=s.borderBoxSize,d=Array.isArray(f)?f[0]:f;l=d.inlineSize,c=d.blockSize}else l=e.offsetWidth,c=e.offsetHeight;n({width:l,height:c})});return r.observe(e,{box:"border-box"}),()=>r.unobserve(e)}else n(void 0)},[e]),t}var zS="Popper",[D$,Ul]=zr(zS),[H7,P$]=D$(zS),k$=e=>{const{__scopePopper:t,children:n}=e,[r,i]=O.useState(null);return m.jsx(H7,{scope:t,anchor:r,onAnchorChange:i,children:n})};k$.displayName=zS;var $$="PopperAnchor",L$=O.forwardRef((e,t)=>{const{__scopePopper:n,virtualRef:r,...i}=e,s=P$($$,n),l=O.useRef(null),c=tt(t,l),f=O.useRef(null);return O.useEffect(()=>{const d=f.current;f.current=(r==null?void 0:r.current)||l.current,d!==f.current&&s.onAnchorChange(f.current)}),r?null:m.jsx(Re.div,{...i,ref:c})});L$.displayName=$$;var BS="PopperContent",[F7,G7]=D$(BS),I$=O.forwardRef((e,t)=>{var ce,he,ie,me,ve,ne;const{__scopePopper:n,side:r="bottom",sideOffset:i=0,align:s="center",alignOffset:l=0,arrowPadding:c=0,avoidCollisions:f=!0,collisionBoundary:d=[],collisionPadding:v=0,sticky:p="partial",hideWhenDetached:g=!1,updatePositionStrategy:x="optimized",onPlaced:_,...S}=e,w=P$(BS,n),[j,A]=O.useState(null),E=tt(t,De=>A(De)),[N,T]=O.useState(null),M=U7(N),R=(M==null?void 0:M.width)??0,D=(M==null?void 0:M.height)??0,L=r+(s!=="center"?"-"+s:""),Y=typeof v=="number"?v:{top:0,right:0,bottom:0,left:0,...v},z=Array.isArray(d)?d:[d],H=z.length>0,V={padding:Y,boundary:z.filter(Y7),altBoundary:H},{refs:Q,floatingStyles:K,placement:k,isPositioned:q,middlewareData:B}=M7({strategy:"fixed",placement:L,whileElementsMounted:(...De)=>w7(...De,{animationFrame:x==="always"}),elements:{reference:w.anchor},middleware:[D7({mainAxis:i+D,alignmentAxis:l}),f&&P7({mainAxis:!0,crossAxis:!1,limiter:p==="partial"?k7():void 0,...V}),f&&$7({...V}),L7({...V,apply:({elements:De,rects:je,availableWidth:rt,availableHeight:Xe})=>{const{width:ft,height:fn}=je.reference,St=De.floating.style;St.setProperty("--radix-popper-available-width",`${rt}px`),St.setProperty("--radix-popper-available-height",`${Xe}px`),St.setProperty("--radix-popper-anchor-width",`${ft}px`),St.setProperty("--radix-popper-anchor-height",`${fn}px`)}}),N&&z7({element:N,padding:c}),W7({arrowWidth:R,arrowHeight:D}),g&&I7({strategy:"referenceHidden",...V})]}),[W,se]=q$(k),$=Pr(_);Ft(()=>{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]=O.useState();return Ft(()=>{j&&ge(window.getComputedStyle(j).zIndex)},[j]),m.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":[(me=B.transformOrigin)==null?void 0:me.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:m.jsx(F7,{scope:n,placedSide:W,onArrowChange:T,arrowX:F,arrowY:X,shouldHideArrow:ae,children:m.jsx(Re.div,{"data-side":W,"data-align":se,...S,ref:E,style:{...S.style,animation:q?void 0:"none"}})})})});I$.displayName=BS;var z$="PopperArrow",V7={top:"bottom",right:"left",bottom:"top",left:"right"},B$=O.forwardRef(function(t,n){const{__scopePopper:r,...i}=t,s=G7(z$,r),l=V7[s.placedSide];return m.jsx("span",{ref:s.onArrowChange,style:{position:"absolute",left:s.arrowX,top:s.arrowY,[l]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[s.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[s.placedSide],visibility:s.shouldHideArrow?"hidden":void 0},children:m.jsx(q7,{...i,ref:n,style:{...i.style,display:"block"}})})});B$.displayName=z$;function Y7(e){return e!==null}var W7=e=>({name:"transformOrigin",options:e,fn(t){var w,j,A;const{placement:n,rects:r,middlewareData:i}=t,l=((w=i.arrow)==null?void 0:w.centerOffset)!==0,c=l?0:e.arrowWidth,f=l?0:e.arrowHeight,[d,v]=q$(n),p={start:"0%",center:"50%",end:"100%"}[v],g=(((j=i.arrow)==null?void 0:j.x)??0)+c/2,x=(((A=i.arrow)==null?void 0:A.y)??0)+f/2;let _="",S="";return d==="bottom"?(_=l?p:`${g}px`,S=`${-f}px`):d==="top"?(_=l?p:`${g}px`,S=`${r.floating.height+f}px`):d==="right"?(_=`${-f}px`,S=l?p:`${x}px`):d==="left"&&(_=`${r.floating.width+f}px`,S=l?p:`${x}px`),{data:{x:_,y:S}}}});function q$(e){const[t,n="center"]=e.split("-");return[t,n]}var qS=k$,US=L$,HS=I$,FS=B$,K7="Portal",hf=O.forwardRef((e,t)=>{var c;const{container:n,...r}=e,[i,s]=O.useState(!1);Ft(()=>s(!0),[]);const l=n||i&&((c=globalThis==null?void 0:globalThis.document)==null?void 0:c.body);return l?qk.createPortal(m.jsx(Re.div,{...r,ref:t}),l):null});hf.displayName=K7;function X7(e,t){return O.useReducer((n,r)=>t[n][r]??n,e)}var br=e=>{const{present:t,children:n}=e,r=Q7(t),i=typeof n=="function"?n({present:r.isPresent}):O.Children.only(n),s=tt(r.ref,Z7(i));return typeof n=="function"||r.isPresent?O.cloneElement(i,{ref:s}):null};br.displayName="Presence";function Q7(e){const[t,n]=O.useState(),r=O.useRef(null),i=O.useRef(e),s=O.useRef("none"),l=e?"mounted":"unmounted",[c,f]=X7(l,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return O.useEffect(()=>{const d=Wd(r.current);s.current=c==="mounted"?d:"none"},[c]),Ft(()=>{const d=r.current,v=i.current;if(v!==e){const g=s.current,x=Wd(d);e?f("MOUNT"):x==="none"||(d==null?void 0:d.display)==="none"?f("UNMOUNT"):f(v&&g!==x?"ANIMATION_OUT":"UNMOUNT"),i.current=e}},[e,f]),Ft(()=>{if(t){let d;const v=t.ownerDocument.defaultView??window,p=x=>{const S=Wd(r.current).includes(CSS.escape(x.animationName));if(x.target===t&&S&&(f("ANIMATION_END"),!i.current)){const w=t.style.animationFillMode;t.style.animationFillMode="forwards",d=v.setTimeout(()=>{t.style.animationFillMode==="forwards"&&(t.style.animationFillMode=w)})}},g=x=>{x.target===t&&(s.current=Wd(r.current))};return t.addEventListener("animationstart",g),t.addEventListener("animationcancel",p),t.addEventListener("animationend",p),()=>{v.clearTimeout(d),t.removeEventListener("animationstart",g),t.removeEventListener("animationcancel",p),t.removeEventListener("animationend",p)}}else f("ANIMATION_END")},[t,f]),{isPresent:["mounted","unmountSuspended"].includes(c),ref:O.useCallback(d=>{r.current=d?getComputedStyle(d):null,n(d)},[])}}function Wd(e){return(e==null?void 0:e.animationName)||"none"}function Z7(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 yy="rovingFocusGroup.onEntryFocus",J7={bubbles:!1,cancelable:!0},mf="RovingFocusGroup",[Dw,U$,e9]=MS(mf),[t9,Gm]=zr(mf,[e9]),[n9,r9]=t9(mf),H$=O.forwardRef((e,t)=>m.jsx(Dw.Provider,{scope:e.__scopeRovingFocusGroup,children:m.jsx(Dw.Slot,{scope:e.__scopeRovingFocusGroup,children:m.jsx(a9,{...e,ref:t})})}));H$.displayName=mf;var a9=O.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:s,currentTabStopId:l,defaultCurrentTabStopId:c,onCurrentTabStopIdChange:f,onEntryFocus:d,preventScrollOnEntryFocus:v=!1,...p}=e,g=O.useRef(null),x=tt(t,g),_=zm(s),[S,w]=$i({prop:l,defaultProp:c??null,onChange:f,caller:mf}),[j,A]=O.useState(!1),E=Pr(d),N=U$(n),T=O.useRef(!1),[M,R]=O.useState(0);return O.useEffect(()=>{const D=g.current;if(D)return D.addEventListener(yy,E),()=>D.removeEventListener(yy,E)},[E]),m.jsx(n9,{scope:n,orientation:r,dir:_,loop:i,currentTabStopId:S,onItemFocus:O.useCallback(D=>w(D),[w]),onItemShiftTab:O.useCallback(()=>A(!0),[]),onFocusableItemAdd:O.useCallback(()=>R(D=>D+1),[]),onFocusableItemRemove:O.useCallback(()=>R(D=>D-1),[]),children:m.jsx(Re.div,{tabIndex:j||M===0?-1:0,"data-orientation":r,...p,ref:x,style:{outline:"none",...e.style},onMouseDown:be(e.onMouseDown,()=>{T.current=!0}),onFocus:be(e.onFocus,D=>{const L=!T.current;if(D.target===D.currentTarget&&L&&!j){const Y=new CustomEvent(yy,J7);if(D.currentTarget.dispatchEvent(Y),!Y.defaultPrevented){const z=N().filter(k=>k.focusable),H=z.find(k=>k.active),V=z.find(k=>k.id===S),K=[H,V,...z].filter(Boolean).map(k=>k.ref.current);V$(K,v)}}T.current=!1}),onBlur:be(e.onBlur,()=>A(!1))})})}),F$="RovingFocusGroupItem",G$=O.forwardRef((e,t)=>{const{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:s,children:l,...c}=e,f=mr(),d=s||f,v=r9(F$,n),p=v.currentTabStopId===d,g=U$(n),{onFocusableItemAdd:x,onFocusableItemRemove:_,currentTabStopId:S}=v;return O.useEffect(()=>{if(r)return x(),()=>_()},[r,x,_]),m.jsx(Dw.ItemSlot,{scope:n,id:d,focusable:r,active:i,children:m.jsx(Re.span,{tabIndex:p?0:-1,"data-orientation":v.orientation,...c,ref:t,onMouseDown:be(e.onMouseDown,w=>{r?v.onItemFocus(d):w.preventDefault()}),onFocus:be(e.onFocus,()=>v.onItemFocus(d)),onKeyDown:be(e.onKeyDown,w=>{if(w.key==="Tab"&&w.shiftKey){v.onItemShiftTab();return}if(w.target!==w.currentTarget)return;const j=s9(w,v.orientation,v.dir);if(j!==void 0){if(w.metaKey||w.ctrlKey||w.altKey||w.shiftKey)return;w.preventDefault();let E=g().filter(N=>N.focusable).map(N=>N.ref.current);if(j==="last")E.reverse();else if(j==="prev"||j==="next"){j==="prev"&&E.reverse();const N=E.indexOf(w.currentTarget);E=v.loop?l9(E,N+1):E.slice(N+1)}setTimeout(()=>V$(E))}}),children:typeof l=="function"?l({isCurrentTabStop:p,hasTabStop:S!=null}):l})})});G$.displayName=F$;var i9={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function o9(e,t){return t!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function s9(e,t,n){const r=o9(e.key,n);if(!(t==="vertical"&&["ArrowLeft","ArrowRight"].includes(r))&&!(t==="horizontal"&&["ArrowUp","ArrowDown"].includes(r)))return i9[r]}function V$(e,t=!1){const n=document.activeElement;for(const r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}function l9(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var Y$=H$,W$=G$,u9=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},$s=new WeakMap,Kd=new WeakMap,Xd={},by=0,K$=function(e){return e&&(e.host||K$(e.parentNode))},c9=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})},f9=function(e,t,n,r){var i=c9(t,Array.isArray(e)?e:[e]);Xd[n]||(Xd[n]=new WeakMap);var s=Xd[n],l=[],c=new Set,f=new Set(i),d=function(p){!p||c.has(p)||(c.add(p),d(p.parentNode))};i.forEach(d);var v=function(p){!p||f.has(p)||Array.prototype.forEach.call(p.children,function(g){if(c.has(g))v(g);else try{var x=g.getAttribute(r),_=x!==null&&x!=="false",S=($s.get(g)||0)+1,w=(s.get(g)||0)+1;$s.set(g,S),s.set(g,w),l.push(g),S===1&&_&&Kd.set(g,!0),w===1&&g.setAttribute(n,"true"),_||g.setAttribute(r,"true")}catch(j){console.error("aria-hidden: cannot operate on ",g,j)}})};return v(t),c.clear(),by++,function(){l.forEach(function(p){var g=$s.get(p)-1,x=s.get(p)-1;$s.set(p,g),s.set(p,x),g||(Kd.has(p)||p.removeAttribute(r),Kd.delete(p)),x||p.removeAttribute(n)}),by--,by||($s=new WeakMap,$s=new WeakMap,Kd=new WeakMap,Xd={})}},GS=function(e,t,n){n===void 0&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),i=u9(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll("[aria-live], script"))),f9(r,i,n,"aria-hidden")):function(){return null}},na=function(){return na=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},na.apply(this,arguments)};function X$(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 d9(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,s;r<i;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var vh="right-scroll-bar-position",gh="width-before-scroll-bar",h9="with-scroll-bars-hidden",m9="--removed-body-scroll-bar-size";function xy(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function p9(e,t){var n=O.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 v9=typeof window<"u"?O.useLayoutEffect:O.useEffect,dC=new WeakMap;function g9(e,t){var n=p9(null,function(r){return e.forEach(function(i){return xy(i,r)})});return v9(function(){var r=dC.get(n);if(r){var i=new Set(r),s=new Set(e),l=n.current;i.forEach(function(c){s.has(c)||xy(c,null)}),s.forEach(function(c){i.has(c)||xy(c,l)})}dC.set(n,e)},[e]),n}function y9(e){return e}function b9(e,t){t===void 0&&(t=y9);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(s){var l=t(s,r);return n.push(l),function(){n=n.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(r=!0;n.length;){var l=n;n=[],l.forEach(s)}n={push:function(c){return s(c)},filter:function(){return n}}},assignMedium:function(s){r=!0;var l=[];if(n.length){var c=n;n=[],c.forEach(s),l=n}var f=function(){var v=l;l=[],v.forEach(s)},d=function(){return Promise.resolve().then(f)};d(),n={push:function(v){l.push(v),d()},filter:function(v){return l=l.filter(v),n}}}};return i}function x9(e){e===void 0&&(e={});var t=b9(null);return t.options=na({async:!0,ssr:!1},e),t}var Q$=function(e){var t=e.sideCar,n=X$(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 O.createElement(r,na({},n))};Q$.isSideCarExport=!0;function w9(e,t){return e.useMedium(t),Q$}var Z$=x9(),wy=function(){},Vm=O.forwardRef(function(e,t){var n=O.useRef(null),r=O.useState({onScrollCapture:wy,onWheelCapture:wy,onTouchMoveCapture:wy}),i=r[0],s=r[1],l=e.forwardProps,c=e.children,f=e.className,d=e.removeScrollBar,v=e.enabled,p=e.shards,g=e.sideCar,x=e.noRelative,_=e.noIsolation,S=e.inert,w=e.allowPinchZoom,j=e.as,A=j===void 0?"div":j,E=e.gapMode,N=X$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=g,M=g9([n,t]),R=na(na({},N),i);return O.createElement(O.Fragment,null,v&&O.createElement(T,{sideCar:Z$,removeScrollBar:d,shards:p,noRelative:x,noIsolation:_,inert:S,setCallbacks:s,allowPinchZoom:!!w,lockRef:n,gapMode:E}),l?O.cloneElement(O.Children.only(c),na(na({},R),{ref:M})):O.createElement(A,na({},R,{className:f,ref:M}),c))});Vm.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Vm.classNames={fullWidth:gh,zeroRight:vh};var S9=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function O9(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=S9();return t&&e.setAttribute("nonce",t),e}function _9(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function j9(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var E9=function(){var e=0,t=null;return{add:function(n){e==0&&(t=O9())&&(_9(t,n),j9(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},A9=function(){var e=E9();return function(t,n){O.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},J$=function(){var e=A9(),t=function(n){var r=n.styles,i=n.dynamic;return e(r,i),null};return t},T9={left:0,top:0,right:0,gap:0},Sy=function(e){return parseInt(e||"",10)||0},C9=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[Sy(n),Sy(r),Sy(i)]},N9=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return T9;var t=C9(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])}},M9=J$(),Xs="data-scroll-locked",R9=function(e,t,n,r){var i=e.left,s=e.top,l=e.right,c=e.gap;return n===void 0&&(n="margin"),`
|
|
254
|
+
.`.concat(h9,` {
|
|
255
|
+
overflow: hidden `).concat(r,`;
|
|
256
|
+
padding-right: `).concat(c,"px ").concat(r,`;
|
|
257
|
+
}
|
|
258
|
+
body[`).concat(Xs,`] {
|
|
259
|
+
overflow: hidden `).concat(r,`;
|
|
260
|
+
overscroll-behavior: contain;
|
|
261
|
+
`).concat([t&&"position: relative ".concat(r,";"),n==="margin"&&`
|
|
262
|
+
padding-left: `.concat(i,`px;
|
|
263
|
+
padding-top: `).concat(s,`px;
|
|
264
|
+
padding-right: `).concat(l,`px;
|
|
265
|
+
margin-left:0;
|
|
266
|
+
margin-top:0;
|
|
267
|
+
margin-right: `).concat(c,"px ").concat(r,`;
|
|
268
|
+
`),n==="padding"&&"padding-right: ".concat(c,"px ").concat(r,";")].filter(Boolean).join(""),`
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
.`).concat(vh,` {
|
|
272
|
+
right: `).concat(c,"px ").concat(r,`;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.`).concat(gh,` {
|
|
276
|
+
margin-right: `).concat(c,"px ").concat(r,`;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.`).concat(vh," .").concat(vh,` {
|
|
280
|
+
right: 0 `).concat(r,`;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
.`).concat(gh," .").concat(gh,` {
|
|
284
|
+
margin-right: 0 `).concat(r,`;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
body[`).concat(Xs,`] {
|
|
288
|
+
`).concat(m9,": ").concat(c,`px;
|
|
289
|
+
}
|
|
290
|
+
`)},hC=function(){var e=parseInt(document.body.getAttribute(Xs)||"0",10);return isFinite(e)?e:0},D9=function(){O.useEffect(function(){return document.body.setAttribute(Xs,(hC()+1).toString()),function(){var e=hC()-1;e<=0?document.body.removeAttribute(Xs):document.body.setAttribute(Xs,e.toString())}},[])},P9=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?"margin":r;D9();var s=O.useMemo(function(){return N9(i)},[i]);return O.createElement(M9,{styles:R9(s,!t,i,n?"":"!important")})},Pw=!1;if(typeof window<"u")try{var Qd=Object.defineProperty({},"passive",{get:function(){return Pw=!0,!0}});window.addEventListener("test",Qd,Qd),window.removeEventListener("test",Qd,Qd)}catch{Pw=!1}var Ls=Pw?{passive:!1}:!1,k9=function(e){return e.tagName==="TEXTAREA"},eL=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!k9(e)&&n[t]==="visible")},$9=function(e){return eL(e,"overflowY")},L9=function(e){return eL(e,"overflowX")},mC=function(e,t){var n=t.ownerDocument,r=t;do{typeof ShadowRoot<"u"&&r instanceof ShadowRoot&&(r=r.host);var i=tL(e,r);if(i){var s=nL(e,r),l=s[1],c=s[2];if(l>c)return!0}r=r.parentNode}while(r&&r!==n.body);return!1},I9=function(e){var t=e.scrollTop,n=e.scrollHeight,r=e.clientHeight;return[t,n,r]},z9=function(e){var t=e.scrollLeft,n=e.scrollWidth,r=e.clientWidth;return[t,n,r]},tL=function(e,t){return e==="v"?$9(t):L9(t)},nL=function(e,t){return e==="v"?I9(t):z9(t)},B9=function(e,t){return e==="h"&&t==="rtl"?-1:1},q9=function(e,t,n,r,i){var s=B9(e,window.getComputedStyle(t).direction),l=s*r,c=n.target,f=t.contains(c),d=!1,v=l>0,p=0,g=0;do{if(!c)break;var x=nL(e,c),_=x[0],S=x[1],w=x[2],j=S-w-s*_;(_||j)&&tL(e,c)&&(p+=j,g+=_);var A=c.parentNode;c=A&&A.nodeType===Node.DOCUMENT_FRAGMENT_NODE?A.host:A}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(v&&Math.abs(p)<1||!v&&Math.abs(g)<1)&&(d=!0),d},Zd=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},pC=function(e){return[e.deltaX,e.deltaY]},vC=function(e){return e&&"current"in e?e.current:e},U9=function(e,t){return e[0]===t[0]&&e[1]===t[1]},H9=function(e){return`
|
|
291
|
+
.block-interactivity-`.concat(e,` {pointer-events: none;}
|
|
292
|
+
.allow-interactivity-`).concat(e,` {pointer-events: all;}
|
|
293
|
+
`)},F9=0,Is=[];function G9(e){var t=O.useRef([]),n=O.useRef([0,0]),r=O.useRef(),i=O.useState(F9++)[0],s=O.useState(J$)[0],l=O.useRef(e);O.useEffect(function(){l.current=e},[e]),O.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var S=d9([e.lockRef.current],(e.shards||[]).map(vC),!0).filter(Boolean);return S.forEach(function(w){return w.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),S.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=O.useCallback(function(S,w){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var j=Zd(S),A=n.current,E="deltaX"in S?S.deltaX:A[0]-j[0],N="deltaY"in S?S.deltaY:A[1]-j[1],T,M=S.target,R=Math.abs(E)>Math.abs(N)?"h":"v";if("touches"in S&&R==="h"&&M.type==="range")return!1;var D=mC(R,M);if(!D)return!0;if(D?T=R:(T=R==="v"?"h":"v",D=mC(R,M)),!D)return!1;if(!r.current&&"changedTouches"in S&&(E||N)&&(r.current=T),!T)return!0;var L=r.current||T;return q9(L,w,S,L==="h"?E:N)},[]),f=O.useCallback(function(S){var w=S;if(!(!Is.length||Is[Is.length-1]!==s)){var j="deltaY"in w?pC(w):Zd(w),A=t.current.filter(function(T){return T.name===w.type&&(T.target===w.target||w.target===T.shadowParent)&&U9(T.delta,j)})[0];if(A&&A.should){w.cancelable&&w.preventDefault();return}if(!A){var E=(l.current.shards||[]).map(vC).filter(Boolean).filter(function(T){return T.contains(w.target)}),N=E.length>0?c(w,E[0]):!l.current.noIsolation;N&&w.cancelable&&w.preventDefault()}}},[]),d=O.useCallback(function(S,w,j,A){var E={name:S,delta:w,target:j,should:A,shadowParent:V9(j)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(N){return N!==E})},1)},[]),v=O.useCallback(function(S){n.current=Zd(S),r.current=void 0},[]),p=O.useCallback(function(S){d(S.type,pC(S),S.target,c(S,e.lockRef.current))},[]),g=O.useCallback(function(S){d(S.type,Zd(S),S.target,c(S,e.lockRef.current))},[]);O.useEffect(function(){return Is.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:g}),document.addEventListener("wheel",f,Ls),document.addEventListener("touchmove",f,Ls),document.addEventListener("touchstart",v,Ls),function(){Is=Is.filter(function(S){return S!==s}),document.removeEventListener("wheel",f,Ls),document.removeEventListener("touchmove",f,Ls),document.removeEventListener("touchstart",v,Ls)}},[]);var x=e.removeScrollBar,_=e.inert;return O.createElement(O.Fragment,null,_?O.createElement(s,{styles:H9(i)}):null,x?O.createElement(P9,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function V9(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const Y9=w9(Z$,G9);var Ym=O.forwardRef(function(e,t){return O.createElement(Vm,na({},e,{ref:t,sideCar:Y9}))});Ym.classNames=Vm.classNames;var kw=["Enter"," "],W9=["ArrowDown","PageUp","Home"],rL=["ArrowUp","PageDown","End"],K9=[...W9,...rL],X9={ltr:[...kw,"ArrowRight"],rtl:[...kw,"ArrowLeft"]},Q9={ltr:["ArrowLeft"],rtl:["ArrowRight"]},pf="Menu",[xc,Z9,J9]=MS(pf),[qo,aL]=zr(pf,[J9,Ul,Gm]),Wm=Ul(),iL=Gm(),[eF,Uo]=qo(pf),[tF,vf]=qo(pf),oL=e=>{const{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:s,modal:l=!0}=e,c=Wm(t),[f,d]=O.useState(null),v=O.useRef(!1),p=Pr(s),g=zm(i);return O.useEffect(()=>{const x=()=>{v.current=!0,document.addEventListener("pointerdown",_,{capture:!0,once:!0}),document.addEventListener("pointermove",_,{capture:!0,once:!0})},_=()=>v.current=!1;return document.addEventListener("keydown",x,{capture:!0}),()=>{document.removeEventListener("keydown",x,{capture:!0}),document.removeEventListener("pointerdown",_,{capture:!0}),document.removeEventListener("pointermove",_,{capture:!0})}},[]),m.jsx(qS,{...c,children:m.jsx(eF,{scope:t,open:n,onOpenChange:p,content:f,onContentChange:d,children:m.jsx(tF,{scope:t,onClose:O.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:v,dir:g,modal:l,children:r})})})};oL.displayName=pf;var nF="MenuAnchor",VS=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Wm(n);return m.jsx(US,{...i,...r,ref:t})});VS.displayName=nF;var YS="MenuPortal",[rF,sL]=qo(YS,{forceMount:void 0}),lL=e=>{const{__scopeMenu:t,forceMount:n,children:r,container:i}=e,s=Uo(YS,t);return m.jsx(rF,{scope:t,forceMount:n,children:m.jsx(br,{present:n||s.open,children:m.jsx(hf,{asChild:!0,container:i,children:r})})})};lL.displayName=YS;var pr="MenuContent",[aF,WS]=qo(pr),uL=O.forwardRef((e,t)=>{const n=sL(pr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=Uo(pr,e.__scopeMenu),l=vf(pr,e.__scopeMenu);return m.jsx(xc.Provider,{scope:e.__scopeMenu,children:m.jsx(br,{present:r||s.open,children:m.jsx(xc.Slot,{scope:e.__scopeMenu,children:l.modal?m.jsx(iF,{...i,ref:t}):m.jsx(oF,{...i,ref:t})})})})}),iF=O.forwardRef((e,t)=>{const n=Uo(pr,e.__scopeMenu),r=O.useRef(null),i=tt(t,r);return O.useEffect(()=>{const s=r.current;if(s)return GS(s)},[]),m.jsx(KS,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:be(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),oF=O.forwardRef((e,t)=>{const n=Uo(pr,e.__scopeMenu);return m.jsx(KS,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),sF=rl("MenuContent.ScrollLock"),KS=O.forwardRef((e,t)=>{const{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:c,onEntryFocus:f,onEscapeKeyDown:d,onPointerDownOutside:v,onFocusOutside:p,onInteractOutside:g,onDismiss:x,disableOutsideScroll:_,...S}=e,w=Uo(pr,n),j=vf(pr,n),A=Wm(n),E=iL(n),N=Z9(n),[T,M]=O.useState(null),R=O.useRef(null),D=tt(t,R,w.onContentChange),L=O.useRef(0),Y=O.useRef(""),z=O.useRef(0),H=O.useRef(null),V=O.useRef("right"),Q=O.useRef(0),K=_?Ym:O.Fragment,k=_?{as:sF,allowPinchZoom:!0}:void 0,q=W=>{var ce,he;const se=Y.current+W,$=N().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=bF(ae,se,X),ge=(he=$.find(ie=>ie.textValue===de))==null?void 0:he.ref.current;(function ie(me){Y.current=me,window.clearTimeout(L.current),me!==""&&(L.current=window.setTimeout(()=>ie(""),1e3))})(se),ge&&setTimeout(()=>ge.focus())};O.useEffect(()=>()=>window.clearTimeout(L.current),[]),RS();const B=O.useCallback(W=>{var $,F;return V.current===(($=H.current)==null?void 0:$.side)&&wF(W,(F=H.current)==null?void 0:F.area)},[]);return m.jsx(aF,{scope:n,searchRef:Y,onItemEnter:O.useCallback(W=>{B(W)&&W.preventDefault()},[B]),onItemLeave:O.useCallback(W=>{var se;B(W)||((se=R.current)==null||se.focus(),M(null))},[B]),onTriggerLeave:O.useCallback(W=>{B(W)&&W.preventDefault()},[B]),pointerGraceTimerRef:z,onPointerGraceIntentChange:O.useCallback(W=>{H.current=W},[]),children:m.jsx(K,{...k,children:m.jsx(Bm,{asChild:!0,trapped:i,onMountAutoFocus:be(s,W=>{var se;W.preventDefault(),(se=R.current)==null||se.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:m.jsx(ff,{asChild:!0,disableOutsidePointerEvents:c,onEscapeKeyDown:d,onPointerDownOutside:v,onFocusOutside:p,onInteractOutside:g,onDismiss:x,children:m.jsx(Y$,{asChild:!0,...E,dir:j.dir,orientation:"vertical",loop:r,currentTabStopId:T,onCurrentTabStopIdChange:M,onEntryFocus:be(f,W=>{j.isUsingKeyboardRef.current||W.preventDefault()}),preventScrollOnEntryFocus:!0,children:m.jsx(HS,{role:"menu","aria-orientation":"vertical","data-state":jL(w.open),"data-radix-menu-content":"",dir:j.dir,...A,...S,ref:D,style:{outline:"none",...S.style},onKeyDown:be(S.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||!K9.includes(W.key))return;W.preventDefault();const ge=N().filter(ce=>!ce.disabled).map(ce=>ce.ref.current);rL.includes(W.key)&&ge.reverse(),gF(ge)}),onBlur:be(e.onBlur,W=>{W.currentTarget.contains(W.target)||(window.clearTimeout(L.current),Y.current="")}),onPointerMove:be(e.onPointerMove,wc(W=>{const se=W.target,$=Q.current!==W.clientX;if(W.currentTarget.contains(se)&&$){const F=W.clientX>Q.current?"right":"left";V.current=F,Q.current=W.clientX}}))})})})})})})});uL.displayName=pr;var lF="MenuGroup",XS=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Re.div,{role:"group",...r,ref:t})});XS.displayName=lF;var uF="MenuLabel",cL=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Re.div,{...r,ref:t})});cL.displayName=uF;var Th="MenuItem",gC="menu.itemSelect",Km=O.forwardRef((e,t)=>{const{disabled:n=!1,onSelect:r,...i}=e,s=O.useRef(null),l=vf(Th,e.__scopeMenu),c=WS(Th,e.__scopeMenu),f=tt(t,s),d=O.useRef(!1),v=()=>{const p=s.current;if(!n&&p){const g=new CustomEvent(gC,{bubbles:!0,cancelable:!0});p.addEventListener(gC,x=>r==null?void 0:r(x),{once:!0}),g$(p,g),g.defaultPrevented?d.current=!1:l.onClose()}};return m.jsx(fL,{...i,ref:f,disabled:n,onClick:be(e.onClick,v),onPointerDown:p=>{var g;(g=e.onPointerDown)==null||g.call(e,p),d.current=!0},onPointerUp:be(e.onPointerUp,p=>{var g;d.current||(g=p.currentTarget)==null||g.click()}),onKeyDown:be(e.onKeyDown,p=>{const g=c.searchRef.current!=="";n||g&&p.key===" "||kw.includes(p.key)&&(p.currentTarget.click(),p.preventDefault())})})});Km.displayName=Th;var fL=O.forwardRef((e,t)=>{const{__scopeMenu:n,disabled:r=!1,textValue:i,...s}=e,l=WS(Th,n),c=iL(n),f=O.useRef(null),d=tt(t,f),[v,p]=O.useState(!1),[g,x]=O.useState("");return O.useEffect(()=>{const _=f.current;_&&x((_.textContent??"").trim())},[s.children]),m.jsx(xc.ItemSlot,{scope:n,disabled:r,textValue:i??g,children:m.jsx(W$,{asChild:!0,...c,focusable:!r,children:m.jsx(Re.div,{role:"menuitem","data-highlighted":v?"":void 0,"aria-disabled":r||void 0,"data-disabled":r?"":void 0,...s,ref:d,onPointerMove:be(e.onPointerMove,wc(_=>{r?l.onItemLeave(_):(l.onItemEnter(_),_.defaultPrevented||_.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:be(e.onPointerLeave,wc(_=>l.onItemLeave(_))),onFocus:be(e.onFocus,()=>p(!0)),onBlur:be(e.onBlur,()=>p(!1))})})})}),cF="MenuCheckboxItem",dL=O.forwardRef((e,t)=>{const{checked:n=!1,onCheckedChange:r,...i}=e;return m.jsx(gL,{scope:e.__scopeMenu,checked:n,children:m.jsx(Km,{role:"menuitemcheckbox","aria-checked":Ch(n)?"mixed":n,...i,ref:t,"data-state":ZS(n),onSelect:be(i.onSelect,()=>r==null?void 0:r(Ch(n)?!0:!n),{checkForDefaultPrevented:!1})})})});dL.displayName=cF;var hL="MenuRadioGroup",[fF,dF]=qo(hL,{value:void 0,onValueChange:()=>{}}),mL=O.forwardRef((e,t)=>{const{value:n,onValueChange:r,...i}=e,s=Pr(r);return m.jsx(fF,{scope:e.__scopeMenu,value:n,onValueChange:s,children:m.jsx(XS,{...i,ref:t})})});mL.displayName=hL;var pL="MenuRadioItem",vL=O.forwardRef((e,t)=>{const{value:n,...r}=e,i=dF(pL,e.__scopeMenu),s=n===i.value;return m.jsx(gL,{scope:e.__scopeMenu,checked:s,children:m.jsx(Km,{role:"menuitemradio","aria-checked":s,...r,ref:t,"data-state":ZS(s),onSelect:be(r.onSelect,()=>{var l;return(l=i.onValueChange)==null?void 0:l.call(i,n)},{checkForDefaultPrevented:!1})})})});vL.displayName=pL;var QS="MenuItemIndicator",[gL,hF]=qo(QS,{checked:!1}),yL=O.forwardRef((e,t)=>{const{__scopeMenu:n,forceMount:r,...i}=e,s=hF(QS,n);return m.jsx(br,{present:r||Ch(s.checked)||s.checked===!0,children:m.jsx(Re.span,{...i,ref:t,"data-state":ZS(s.checked)})})});yL.displayName=QS;var mF="MenuSeparator",bL=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e;return m.jsx(Re.div,{role:"separator","aria-orientation":"horizontal",...r,ref:t})});bL.displayName=mF;var pF="MenuArrow",xL=O.forwardRef((e,t)=>{const{__scopeMenu:n,...r}=e,i=Wm(n);return m.jsx(FS,{...i,...r,ref:t})});xL.displayName=pF;var vF="MenuSub",[Ehe,wL]=qo(vF),ic="MenuSubTrigger",SL=O.forwardRef((e,t)=>{const n=Uo(ic,e.__scopeMenu),r=vf(ic,e.__scopeMenu),i=wL(ic,e.__scopeMenu),s=WS(ic,e.__scopeMenu),l=O.useRef(null),{pointerGraceTimerRef:c,onPointerGraceIntentChange:f}=s,d={__scopeMenu:e.__scopeMenu},v=O.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return O.useEffect(()=>v,[v]),O.useEffect(()=>{const p=c.current;return()=>{window.clearTimeout(p),f(null)}},[c,f]),m.jsx(VS,{asChild:!0,...d,children:m.jsx(fL,{id:i.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":i.contentId,"data-state":jL(n.open),...e,ref:cf(t,i.onTriggerChange),onClick:p=>{var g;(g=e.onClick)==null||g.call(e,p),!(e.disabled||p.defaultPrevented)&&(p.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:be(e.onPointerMove,wc(p=>{s.onItemEnter(p),!p.defaultPrevented&&!e.disabled&&!n.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{n.onOpenChange(!0),v()},100))})),onPointerLeave:be(e.onPointerLeave,wc(p=>{var x,_;v();const g=(x=n.content)==null?void 0:x.getBoundingClientRect();if(g){const S=(_=n.content)==null?void 0:_.dataset.side,w=S==="right",j=w?-5:5,A=g[w?"left":"right"],E=g[w?"right":"left"];s.onPointerGraceIntentChange({area:[{x:p.clientX+j,y:p.clientY},{x:A,y:g.top},{x:E,y:g.top},{x:E,y:g.bottom},{x:A,y:g.bottom}],side:S}),window.clearTimeout(c.current),c.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(p),p.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:be(e.onKeyDown,p=>{var x;const g=s.searchRef.current!=="";e.disabled||g&&p.key===" "||X9[r.dir].includes(p.key)&&(n.onOpenChange(!0),(x=n.content)==null||x.focus(),p.preventDefault())})})})});SL.displayName=ic;var OL="MenuSubContent",_L=O.forwardRef((e,t)=>{const n=sL(pr,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,s=Uo(pr,e.__scopeMenu),l=vf(pr,e.__scopeMenu),c=wL(OL,e.__scopeMenu),f=O.useRef(null),d=tt(t,f);return m.jsx(xc.Provider,{scope:e.__scopeMenu,children:m.jsx(br,{present:r||s.open,children:m.jsx(xc.Slot,{scope:e.__scopeMenu,children:m.jsx(KS,{id:c.contentId,"aria-labelledby":c.triggerId,...i,ref:d,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:v=>{var p;l.isUsingKeyboardRef.current&&((p=f.current)==null||p.focus()),v.preventDefault()},onCloseAutoFocus:v=>v.preventDefault(),onFocusOutside:be(e.onFocusOutside,v=>{v.target!==c.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:be(e.onEscapeKeyDown,v=>{l.onClose(),v.preventDefault()}),onKeyDown:be(e.onKeyDown,v=>{var x;const p=v.currentTarget.contains(v.target),g=Q9[l.dir].includes(v.key);p&&g&&(s.onOpenChange(!1),(x=c.trigger)==null||x.focus(),v.preventDefault())})})})})})});_L.displayName=OL;function jL(e){return e?"open":"closed"}function Ch(e){return e==="indeterminate"}function ZS(e){return Ch(e)?"indeterminate":e?"checked":"unchecked"}function gF(e){const t=document.activeElement;for(const n of e)if(n===t||(n.focus(),document.activeElement!==t))return}function yF(e,t){return e.map((n,r)=>e[(t+r)%e.length])}function bF(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=yF(e,Math.max(s,0));i.length===1&&(l=l.filter(d=>d!==n));const f=l.find(d=>d.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function xF(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s],f=t[l],d=c.x,v=c.y,p=f.x,g=f.y;v>r!=g>r&&n<(p-d)*(r-v)/(g-v)+d&&(i=!i)}return i}function wF(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return xF(n,t)}function wc(e){return t=>t.pointerType==="mouse"?e(t):void 0}var SF=oL,OF=VS,_F=lL,jF=uL,EF=XS,AF=cL,TF=Km,CF=dL,NF=mL,MF=vL,RF=yL,DF=bL,PF=xL,kF=SL,$F=_L,Xm="DropdownMenu",[LF]=zr(Xm,[aL]),Sn=aL(),[IF,EL]=LF(Xm),AL=e=>{const{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:s,onOpenChange:l,modal:c=!0}=e,f=Sn(t),d=O.useRef(null),[v,p]=$i({prop:i,defaultProp:s??!1,onChange:l,caller:Xm});return m.jsx(IF,{scope:t,triggerId:mr(),triggerRef:d,contentId:mr(),open:v,onOpenChange:p,onOpenToggle:O.useCallback(()=>p(g=>!g),[p]),modal:c,children:m.jsx(SF,{...f,open:v,onOpenChange:p,dir:r,modal:c,children:n})})};AL.displayName=Xm;var TL="DropdownMenuTrigger",CL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,s=EL(TL,n),l=Sn(n);return m.jsx(OF,{asChild:!0,...l,children:m.jsx(Re.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":r?"":void 0,disabled:r,...i,ref:cf(t,s.triggerRef),onPointerDown:be(e.onPointerDown,c=>{!r&&c.button===0&&c.ctrlKey===!1&&(s.onOpenToggle(),s.open||c.preventDefault())}),onKeyDown:be(e.onKeyDown,c=>{r||(["Enter"," "].includes(c.key)&&s.onOpenToggle(),c.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(c.key)&&c.preventDefault())})})})});CL.displayName=TL;var zF="DropdownMenuPortal",NL=e=>{const{__scopeDropdownMenu:t,...n}=e,r=Sn(t);return m.jsx(_F,{...r,...n})};NL.displayName=zF;var ML="DropdownMenuContent",RL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=EL(ML,n),s=Sn(n),l=O.useRef(!1);return m.jsx(jF,{id:i.contentId,"aria-labelledby":i.triggerId,...s,...r,ref:t,onCloseAutoFocus:be(e.onCloseAutoFocus,c=>{var f;l.current||(f=i.triggerRef.current)==null||f.focus(),l.current=!1,c.preventDefault()}),onInteractOutside:be(e.onInteractOutside,c=>{const f=c.detail.originalEvent,d=f.button===0&&f.ctrlKey===!0,v=f.button===2||d;(!i.modal||v)&&(l.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)"}})});RL.displayName=ML;var BF="DropdownMenuGroup",qF=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(EF,{...i,...r,ref:t})});qF.displayName=BF;var UF="DropdownMenuLabel",DL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(AF,{...i,...r,ref:t})});DL.displayName=UF;var HF="DropdownMenuItem",PL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(TF,{...i,...r,ref:t})});PL.displayName=HF;var FF="DropdownMenuCheckboxItem",GF=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(CF,{...i,...r,ref:t})});GF.displayName=FF;var VF="DropdownMenuRadioGroup",YF=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(NF,{...i,...r,ref:t})});YF.displayName=VF;var WF="DropdownMenuRadioItem",KF=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(MF,{...i,...r,ref:t})});KF.displayName=WF;var XF="DropdownMenuItemIndicator",QF=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(RF,{...i,...r,ref:t})});QF.displayName=XF;var ZF="DropdownMenuSeparator",kL=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(DF,{...i,...r,ref:t})});kL.displayName=ZF;var JF="DropdownMenuArrow",eG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(PF,{...i,...r,ref:t})});eG.displayName=JF;var tG="DropdownMenuSubTrigger",nG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx(kF,{...i,...r,ref:t})});nG.displayName=tG;var rG="DropdownMenuSubContent",aG=O.forwardRef((e,t)=>{const{__scopeDropdownMenu:n,...r}=e,i=Sn(n);return m.jsx($F,{...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)"}})});aG.displayName=rG;var iG=AL,oG=CL,sG=NL,lG=RL,uG=DL,cG=PL,fG=kL;function dG({...e}){return m.jsx(iG,{"data-slot":"dropdown-menu",...e})}function hG({...e}){return m.jsx(oG,{"data-slot":"dropdown-menu-trigger",...e})}function mG({className:e,sideOffset:t=4,...n}){return m.jsx(sG,{children:m.jsx(lG,{className:pe("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 yC({className:e,inset:t,variant:n="default",...r}){return m.jsx(cG,{className:pe("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 pG({className:e,inset:t,...n}){return m.jsx(uG,{className:pe("px-2 py-1.5 font-medium text-sm data-[inset]:pl-8",e),"data-inset":t,"data-slot":"dropdown-menu-label",...n})}function bC({className:e,...t}){return m.jsx(fG,{className:pe("-mx-1 my-1 h-px bg-border",e),"data-slot":"dropdown-menu-separator",...t})}const xC=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,wC=Ye,Qm=(e,t)=>n=>{var r;if((t==null?void 0:t.variants)==null)return wC(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:i,defaultVariants:s}=t,l=Object.keys(i).map(d=>{const v=n==null?void 0:n[d],p=s==null?void 0:s[d];if(v===null)return null;const g=xC(v)||xC(p);return i[d][g]}),c=n&&Object.entries(n).reduce((d,v)=>{let[p,g]=v;return g===void 0||(d[p]=g),d},{}),f=t==null||(r=t.compoundVariants)===null||r===void 0?void 0:r.reduce((d,v)=>{let{class:p,className:g,...x}=v;return Object.entries(x).every(_=>{let[S,w]=_;return Array.isArray(w)?w.includes({...s,...c}[S]):{...s,...c}[S]===w})?[...d,p,g]:d},[]);return wC(e,l,f,n==null?void 0:n.class,n==null?void 0:n.className)},JS=Qm("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 bt({className:e,variant:t,size:n,asChild:r=!1,...i}){const s=r?zo:"button";return m.jsx(s,{className:pe(JS({variant:t,size:n,className:e})),"data-slot":"button",...i})}const gf=O.forwardRef(({className:e,type:t,...n},r)=>m.jsx("input",{className:pe("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}));gf.displayName="Input";var vG="Separator",SC="horizontal",gG=["horizontal","vertical"],$L=O.forwardRef((e,t)=>{const{decorative:n,orientation:r=SC,...i}=e,s=yG(r)?r:SC,c=n?{role:"none"}:{"aria-orientation":s==="vertical"?s:void 0,role:"separator"};return m.jsx(Bo.div,{"data-orientation":s,...c,...i,ref:t})});$L.displayName=vG;function yG(e){return gG.includes(e)}var bG=$L;function Qn({className:e,orientation:t="horizontal",decorative:n=!0,...r}){return m.jsx(bG,{className:pe("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 Zm="Dialog",[LL,IL]=zr(Zm),[xG,Br]=LL(Zm),zL=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,c=O.useRef(null),f=O.useRef(null),[d,v]=$i({prop:r,defaultProp:i??!1,onChange:s,caller:Zm});return m.jsx(xG,{scope:t,triggerRef:c,contentRef:f,contentId:mr(),titleId:mr(),descriptionId:mr(),open:d,onOpenChange:v,onOpenToggle:O.useCallback(()=>v(p=>!p),[v]),modal:l,children:n})};zL.displayName=Zm;var BL="DialogTrigger",qL=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(BL,n),s=tt(t,i.triggerRef);return m.jsx(Re.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":nO(i.open),...r,ref:s,onClick:be(e.onClick,i.onOpenToggle)})});qL.displayName=BL;var eO="DialogPortal",[wG,UL]=LL(eO,{forceMount:void 0}),HL=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,s=Br(eO,t);return m.jsx(wG,{scope:t,forceMount:n,children:O.Children.map(r,l=>m.jsx(br,{present:n||s.open,children:m.jsx(hf,{asChild:!0,container:i,children:l})}))})};HL.displayName=eO;var Nh="DialogOverlay",FL=O.forwardRef((e,t)=>{const n=UL(Nh,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Br(Nh,e.__scopeDialog);return s.modal?m.jsx(br,{present:r||s.open,children:m.jsx(OG,{...i,ref:t})}):null});FL.displayName=Nh;var SG=rl("DialogOverlay.RemoveScroll"),OG=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(Nh,n);return m.jsx(Ym,{as:SG,allowPinchZoom:!0,shards:[i.contentRef],children:m.jsx(Re.div,{"data-state":nO(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),No="DialogContent",GL=O.forwardRef((e,t)=>{const n=UL(No,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,s=Br(No,e.__scopeDialog);return m.jsx(br,{present:r||s.open,children:s.modal?m.jsx(_G,{...i,ref:t}):m.jsx(jG,{...i,ref:t})})});GL.displayName=No;var _G=O.forwardRef((e,t)=>{const n=Br(No,e.__scopeDialog),r=O.useRef(null),i=tt(t,n.contentRef,r);return O.useEffect(()=>{const s=r.current;if(s)return GS(s)},[]),m.jsx(VL,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:be(e.onCloseAutoFocus,s=>{var l;s.preventDefault(),(l=n.triggerRef.current)==null||l.focus()}),onPointerDownOutside:be(e.onPointerDownOutside,s=>{const l=s.detail.originalEvent,c=l.button===0&&l.ctrlKey===!0;(l.button===2||c)&&s.preventDefault()}),onFocusOutside:be(e.onFocusOutside,s=>s.preventDefault())})}),jG=O.forwardRef((e,t)=>{const n=Br(No,e.__scopeDialog),r=O.useRef(!1),i=O.useRef(!1);return m.jsx(VL,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:s=>{var l,c;(l=e.onCloseAutoFocus)==null||l.call(e,s),s.defaultPrevented||(r.current||(c=n.triggerRef.current)==null||c.focus(),s.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:s=>{var f,d;(f=e.onInteractOutside)==null||f.call(e,s),s.defaultPrevented||(r.current=!0,s.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const l=s.target;((d=n.triggerRef.current)==null?void 0:d.contains(l))&&s.preventDefault(),s.detail.originalEvent.type==="focusin"&&i.current&&s.preventDefault()}})}),VL=O.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:s,...l}=e,c=Br(No,n),f=O.useRef(null),d=tt(t,f);return RS(),m.jsxs(m.Fragment,{children:[m.jsx(Bm,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:s,children:m.jsx(ff,{role:"dialog",id:c.contentId,"aria-describedby":c.descriptionId,"aria-labelledby":c.titleId,"data-state":nO(c.open),...l,ref:d,onDismiss:()=>c.onOpenChange(!1)})}),m.jsxs(m.Fragment,{children:[m.jsx(AG,{titleId:c.titleId}),m.jsx(CG,{contentRef:f,descriptionId:c.descriptionId})]})]})}),tO="DialogTitle",YL=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(tO,n);return m.jsx(Re.h2,{id:i.titleId,...r,ref:t})});YL.displayName=tO;var WL="DialogDescription",KL=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(WL,n);return m.jsx(Re.p,{id:i.descriptionId,...r,ref:t})});KL.displayName=WL;var XL="DialogClose",QL=O.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=Br(XL,n);return m.jsx(Re.button,{type:"button",...r,ref:t,onClick:be(e.onClick,()=>i.onOpenChange(!1))})});QL.displayName=XL;function nO(e){return e?"open":"closed"}var ZL="DialogTitleWarning",[EG,JL]=nH(ZL,{contentName:No,titleName:tO,docsSlug:"dialog"}),AG=({titleId:e})=>{const t=JL(ZL),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
294
|
+
|
|
295
|
+
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
296
|
+
|
|
297
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return O.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},TG="DialogDescriptionWarning",CG=({contentRef:e,descriptionId:t})=>{const r=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${JL(TG).contentName}}.`;return O.useEffect(()=>{var s;const i=(s=e.current)==null?void 0:s.getAttribute("aria-describedby");t&&i&&(document.getElementById(t)||console.warn(r))},[r,e,t]),null},rO=zL,NG=qL,aO=HL,iO=FL,oO=GL,sO=YL,lO=KL,Jm=QL;function MG({...e}){return m.jsx(rO,{"data-slot":"sheet",...e})}function RG({...e}){return m.jsx(aO,{"data-slot":"sheet-portal",...e})}function DG({className:e,...t}){return m.jsx(iO,{className:pe("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 PG({className:e,children:t,side:n="right",...r}){return m.jsxs(RG,{children:[m.jsx(DG,{}),m.jsxs(oO,{className:pe("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,m.jsxs(Jm,{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:[m.jsx(aa,{className:"size-4"}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function kG({className:e,...t}){return m.jsx("div",{className:pe("flex flex-col gap-1.5 p-4",e),"data-slot":"sheet-header",...t})}function $G({className:e,...t}){return m.jsx(sO,{className:pe("font-semibold text-foreground",e),"data-slot":"sheet-title",...t})}function LG({className:e,...t}){return m.jsx(lO,{className:pe("text-muted-foreground text-sm",e),"data-slot":"sheet-description",...t})}function pt({className:e,...t}){return m.jsx("div",{className:pe("animate-pulse rounded-md bg-accent",e),"data-slot":"skeleton",...t})}var eI=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"}),IG="VisuallyHidden",tI=O.forwardRef((e,t)=>m.jsx(Re.span,{...e,ref:t,style:{...eI,...e.style}}));tI.displayName=IG;var zG=tI,[ep]=zr("Tooltip",[Ul]),tp=Ul(),nI="TooltipProvider",BG=700,$w="tooltip.open",[qG,uO]=ep(nI),rI=e=>{const{__scopeTooltip:t,delayDuration:n=BG,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,l=O.useRef(!0),c=O.useRef(!1),f=O.useRef(0);return O.useEffect(()=>{const d=f.current;return()=>window.clearTimeout(d)},[]),m.jsx(qG,{scope:t,isOpenDelayedRef:l,delayDuration:n,onOpen:O.useCallback(()=>{window.clearTimeout(f.current),l.current=!1},[]),onClose:O.useCallback(()=>{window.clearTimeout(f.current),f.current=window.setTimeout(()=>l.current=!0,r)},[r]),isPointerInTransitRef:c,onPointerInTransitChange:O.useCallback(d=>{c.current=d},[]),disableHoverableContent:i,children:s})};rI.displayName=nI;var Sc="Tooltip",[UG,yf]=ep(Sc),aI=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:s,disableHoverableContent:l,delayDuration:c}=e,f=uO(Sc,e.__scopeTooltip),d=tp(t),[v,p]=O.useState(null),g=mr(),x=O.useRef(0),_=l??f.disableHoverableContent,S=c??f.delayDuration,w=O.useRef(!1),[j,A]=$i({prop:r,defaultProp:i??!1,onChange:R=>{R?(f.onOpen(),document.dispatchEvent(new CustomEvent($w))):f.onClose(),s==null||s(R)},caller:Sc}),E=O.useMemo(()=>j?w.current?"delayed-open":"instant-open":"closed",[j]),N=O.useCallback(()=>{window.clearTimeout(x.current),x.current=0,w.current=!1,A(!0)},[A]),T=O.useCallback(()=>{window.clearTimeout(x.current),x.current=0,A(!1)},[A]),M=O.useCallback(()=>{window.clearTimeout(x.current),x.current=window.setTimeout(()=>{w.current=!0,A(!0),x.current=0},S)},[S,A]);return O.useEffect(()=>()=>{x.current&&(window.clearTimeout(x.current),x.current=0)},[]),m.jsx(qS,{...d,children:m.jsx(UG,{scope:t,contentId:g,open:j,stateAttribute:E,trigger:v,onTriggerChange:p,onTriggerEnter:O.useCallback(()=>{f.isOpenDelayedRef.current?M():N()},[f.isOpenDelayedRef,M,N]),onTriggerLeave:O.useCallback(()=>{_?T():(window.clearTimeout(x.current),x.current=0)},[T,_]),onOpen:N,onClose:T,disableHoverableContent:_,children:n})})};aI.displayName=Sc;var Lw="TooltipTrigger",iI=O.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=yf(Lw,n),s=uO(Lw,n),l=tp(n),c=O.useRef(null),f=tt(t,c,i.onTriggerChange),d=O.useRef(!1),v=O.useRef(!1),p=O.useCallback(()=>d.current=!1,[]);return O.useEffect(()=>()=>document.removeEventListener("pointerup",p),[p]),m.jsx(US,{asChild:!0,...l,children:m.jsx(Re.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:f,onPointerMove:be(e.onPointerMove,g=>{g.pointerType!=="touch"&&!v.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),v.current=!0)}),onPointerLeave:be(e.onPointerLeave,()=>{i.onTriggerLeave(),v.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)})})});iI.displayName=Lw;var cO="TooltipPortal",[HG,FG]=ep(cO,{forceMount:void 0}),oI=e=>{const{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,s=yf(cO,t);return m.jsx(HG,{scope:t,forceMount:n,children:m.jsx(br,{present:n||s.open,children:m.jsx(hf,{asChild:!0,container:i,children:r})})})};oI.displayName=cO;var il="TooltipContent",sI=O.forwardRef((e,t)=>{const n=FG(il,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,l=yf(il,e.__scopeTooltip);return m.jsx(br,{present:r||l.open,children:l.disableHoverableContent?m.jsx(lI,{side:i,...s,ref:t}):m.jsx(GG,{side:i,...s,ref:t})})}),GG=O.forwardRef((e,t)=>{const n=yf(il,e.__scopeTooltip),r=uO(il,e.__scopeTooltip),i=O.useRef(null),s=tt(t,i),[l,c]=O.useState(null),{trigger:f,onClose:d}=n,v=i.current,{onPointerInTransitChange:p}=r,g=O.useCallback(()=>{c(null),p(!1)},[p]),x=O.useCallback((_,S)=>{const w=_.currentTarget,j={x:_.clientX,y:_.clientY},A=KG(j,w.getBoundingClientRect()),E=XG(j,A),N=QG(S.getBoundingClientRect()),T=JG([...E,...N]);c(T),p(!0)},[p]);return O.useEffect(()=>()=>g(),[g]),O.useEffect(()=>{if(f&&v){const _=w=>x(w,v),S=w=>x(w,f);return f.addEventListener("pointerleave",_),v.addEventListener("pointerleave",S),()=>{f.removeEventListener("pointerleave",_),v.removeEventListener("pointerleave",S)}}},[f,v,x,g]),O.useEffect(()=>{if(l){const _=S=>{const w=S.target,j={x:S.clientX,y:S.clientY},A=(f==null?void 0:f.contains(w))||(v==null?void 0:v.contains(w)),E=!ZG(j,l);A?g():E&&(g(),d())};return document.addEventListener("pointermove",_),()=>document.removeEventListener("pointermove",_)}},[f,v,l,d,g]),m.jsx(lI,{...e,ref:s})}),[VG,YG]=ep(Sc,{isInside:!1}),WG=v$("TooltipContent"),lI=O.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:l,...c}=e,f=yf(il,n),d=tp(n),{onClose:v}=f;return O.useEffect(()=>(document.addEventListener($w,v),()=>document.removeEventListener($w,v)),[v]),O.useEffect(()=>{if(f.trigger){const p=g=>{const x=g.target;x!=null&&x.contains(f.trigger)&&v()};return window.addEventListener("scroll",p,{capture:!0}),()=>window.removeEventListener("scroll",p,{capture:!0})}},[f.trigger,v]),m.jsx(ff,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:p=>p.preventDefault(),onDismiss:v,children:m.jsxs(HS,{"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:[m.jsx(WG,{children:r}),m.jsx(VG,{scope:n,isInside:!0,children:m.jsx(zG,{id:f.contentId,role:"tooltip",children:i||r})})]})})});sI.displayName=il;var uI="TooltipArrow",cI=O.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=tp(n);return YG(uI,n).isInside?null:m.jsx(FS,{...i,...r,ref:t})});cI.displayName=uI;function KG(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function XG(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 QG(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 ZG(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,l=t.length-1;s<t.length;l=s++){const c=t[s],f=t[l],d=c.x,v=c.y,p=f.x,g=f.y;v>r!=g>r&&n<(p-d)*(r-v)/(g-v)+d&&(i=!i)}return i}function JG(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),eV(t)}function eV(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 s=t[t.length-1],l=t[t.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.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 s=n[n.length-1],l=n[n.length-2];if((s.x-l.x)*(i.y-l.y)>=(s.y-l.y)*(i.x-l.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 tV=rI,nV=aI,rV=iI,aV=oI,iV=sI,oV=cI;function fI({delayDuration:e=0,...t}){return m.jsx(tV,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function fO({...e}){return m.jsx(fI,{children:m.jsx(nV,{"data-slot":"tooltip",...e})})}function dO({...e}){return m.jsx(rV,{"data-slot":"tooltip-trigger",...e})}function hO({className:e,sideOffset:t=0,children:n,...r}){return m.jsx(aV,{children:m.jsxs(iV,{className:pe("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,m.jsx(oV,{className:"z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px] bg-foreground fill-foreground"})]})})}const Oy=768;function sV(){const[e,t]=O.useState(void 0);return O.useEffect(()=>{const n=window.matchMedia(`(max-width: ${Oy-1}px)`),r=()=>{t(window.innerWidth<Oy)};return n.addEventListener("change",r),t(window.innerWidth<Oy),()=>n.removeEventListener("change",r)},[]),!!e}const lV="sidebar_state",uV=3600*24*7,cV="16rem",fV="18rem",dV="3rem",hV="b",dI=O.createContext(null);function Hl(){const e=O.useContext(dI);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}const hI=O.forwardRef(({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:s,...l},c)=>{const f=sV(),[d,v]=O.useState(!1),[p,g]=O.useState(e),x=t??p,_=O.useCallback(A=>{const E=typeof A=="function"?A(x):A;n?n(E):g(E),document.cookie=`${lV}=${E}; path=/; max-age=${uV}`},[n,x]),S=O.useCallback(()=>f?v(A=>!A):_(A=>!A),[f,_]);O.useEffect(()=>{const A=E=>{E.key===hV&&(E.metaKey||E.ctrlKey)&&(E.preventDefault(),S())};return window.addEventListener("keydown",A),()=>window.removeEventListener("keydown",A)},[S]);const w=x?"expanded":"collapsed",j=O.useMemo(()=>({state:w,open:x,setOpen:_,isMobile:f,openMobile:d,setOpenMobile:v,toggleSidebar:S}),[w,x,_,f,d,S]);return m.jsx(dI.Provider,{value:j,children:m.jsx(fI,{delayDuration:0,children:m.jsx("div",{className:pe("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:c,style:{"--sidebar-width":cV,"--sidebar-width-icon":dV,...i},...l,children:s})})})});hI.displayName="SidebarProvider";const yh=O.forwardRef(({side:e="left",variant:t="sidebar",collapsible:n="offcanvas",className:r,children:i,...s},l)=>{const{isMobile:c,state:f,openMobile:d,setOpenMobile:v}=Hl();return n==="none"?m.jsx("div",{className:pe("flex h-full w-[calc(var(--sidebar-width)-var(--sidebar-width-icon)+1px)]! flex-col bg-sidebar text-sidebar-foreground",r),ref:l,...s,children:i}):c?m.jsx(MG,{onOpenChange:v,open:d,...s,children:m.jsxs(PG,{className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden","data-mobile":"true","data-sidebar":"sidebar",side:e,style:{"--sidebar-width":fV},children:[m.jsxs(kG,{className:"sr-only",children:[m.jsx($G,{children:"Sidebar"}),m.jsx(LG,{children:"Displays the mobile sidebar."})]}),m.jsx("div",{className:"flex h-full w-full flex-col",children:i})]})}):m.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:l,children:[m.jsx("div",{className:pe("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]")}),m.jsx("div",{className:pe("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),...s,children:m.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})})]})});yh.displayName="Sidebar";const mI=O.forwardRef(({className:e,onClick:t,...n},r)=>{const{toggleSidebar:i}=Hl();return m.jsxs(bt,{className:pe("h-7 w-7",e),"data-sidebar":"trigger",onClick:s=>{t==null||t(s),i()},ref:r,size:"icon",variant:"ghost",...n,children:[m.jsx(F8,{}),m.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})});mI.displayName="SidebarTrigger";const mV=O.forwardRef(({className:e,...t},n)=>{const{toggleSidebar:r}=Hl();return m.jsx("button",{"aria-label":"Toggle Sidebar",className:pe("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 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=left]:-right-4 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})});mV.displayName="SidebarRail";const pI=O.forwardRef(({className:e,...t},n)=>m.jsx("main",{className:pe("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}));pI.displayName="SidebarInset";const vI=O.forwardRef(({className:e,...t},n)=>m.jsx(gf,{className:pe("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",e),"data-sidebar":"input",ref:n,...t}));vI.displayName="SidebarInput";const Iw=O.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:pe("flex flex-col gap-2 p-2",e),"data-sidebar":"header",ref:n,...t}));Iw.displayName="SidebarHeader";const gI=O.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:pe("flex flex-col gap-2 p-2",e),"data-sidebar":"footer",ref:n,...t}));gI.displayName="SidebarFooter";const pV=O.forwardRef(({className:e,...t},n)=>m.jsx(Qn,{className:pe("mx-2 w-auto bg-sidebar-border",e),"data-sidebar":"separator",ref:n,...t}));pV.displayName="SidebarSeparator";const zw=O.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:pe("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}));zw.displayName="SidebarContent";const Bw=O.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:pe("relative flex w-full min-w-0 flex-col p-2",e),"data-sidebar":"group",ref:n,...t}));Bw.displayName="SidebarGroup";const vV=O.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?zo:"div";return m.jsx(i,{className:pe("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})});vV.displayName="SidebarGroupLabel";const gV=O.forwardRef(({className:e,asChild:t=!1,...n},r)=>{const i=t?zo:"button";return m.jsx(i,{className:pe("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:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",e),"data-sidebar":"group-action",ref:r,...n})});gV.displayName="SidebarGroupAction";const qw=O.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:pe("w-full text-sm",e),"data-sidebar":"group-content",ref:n,...t}));qw.displayName="SidebarGroupContent";const Mh=O.forwardRef(({className:e,...t},n)=>m.jsx("ul",{className:pe("flex w-full min-w-0 flex-col gap-1",e),"data-sidebar":"menu",ref:n,...t}));Mh.displayName="SidebarMenu";const Rh=O.forwardRef(({className:e,...t},n)=>m.jsx("li",{className:pe("group/menu-item relative",e),"data-sidebar":"menu-item",ref:n,...t}));Rh.displayName="SidebarMenuItem";const yV=Qm("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"}}),Dh=O.forwardRef(({asChild:e=!1,isActive:t=!1,variant:n="default",size:r="default",tooltip:i,className:s,...l},c)=>{const f=e?zo:"button",{isMobile:d,state:v}=Hl(),p=m.jsx(f,{className:pe(yV({variant:n,size:r}),s),"data-active":t,"data-sidebar":"menu-button","data-size":r,ref:c,...l});return i?(typeof i=="string"&&(i={children:i}),m.jsxs(fO,{children:[m.jsx(dO,{asChild:!0,children:p}),m.jsx(hO,{align:"center",hidden:v!=="collapsed"||d,side:"right",...i})]})):p});Dh.displayName="SidebarMenuButton";const bV=O.forwardRef(({className:e,asChild:t=!1,showOnHover:n=!1,...r},i)=>{const s=t?zo:"button";return m.jsx(s,{className:pe("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:absolute after:-inset-2 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})});bV.displayName="SidebarMenuAction";const xV=O.forwardRef(({className:e,...t},n)=>m.jsx("div",{className:pe("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}));xV.displayName="SidebarMenuBadge";const wV=O.forwardRef(({className:e,showIcon:t=!1,...n},r)=>{const i=O.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return m.jsxs("div",{className:pe("flex h-8 items-center gap-2 rounded-md px-2",e),"data-sidebar":"menu-skeleton",ref:r,...n,children:[t&&m.jsx(pt,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),m.jsx(pt,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":i}})]})});wV.displayName="SidebarMenuSkeleton";const SV=O.forwardRef(({className:e,...t},n)=>m.jsx("ul",{className:pe("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}));SV.displayName="SidebarMenuSub";const OV=O.forwardRef(({...e},t)=>m.jsx("li",{ref:t,...e}));OV.displayName="SidebarMenuSubItem";const _V=O.forwardRef(({asChild:e=!1,size:t="md",isActive:n,className:r,...i},s)=>{const l=e?zo:"a";return m.jsx(l,{className:pe("flex h-7 min-w-0 -translate-x-px 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:s,...i})});_V.displayName="SidebarMenuSubButton";const jV={theme:"system",setTheme:()=>null},yI=O.createContext(jV),bI=()=>{const e=O.useContext(yI);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};function EV({user:e}){const{isMobile:t}=Hl(),{theme:n,setTheme:r}=bI(),[i,s]=O.useState(null),[l,c]=O.useState(0);O.useEffect(()=>{(async()=>{try{const g=sessionStorage.getItem("wraps-auth-token");if(!g){console.log("No auth token found yet, will retry..."),l<5&&setTimeout(()=>{c(_=>_+1)},200);return}console.log("Fetching user info from /api/user");const x=await fetch(`/api/user?token=${g}`);if(console.log("User API response status:",x.status),x.ok){const _=await x.json();console.log("User info received:",_),s(_)}else{const _=await x.text();console.error("Failed to fetch user info:",x.status,_)}}catch(g){console.error("Error fetching user info:",g)}})().catch(g=>{console.error("Failed to fetch user info:",g)})},[l]);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...",v=(i==null?void 0:i.region)||"...";return m.jsx(Mh,{children:m.jsx(Rh,{children:m.jsxs(dG,{children:[m.jsx(hG,{asChild:!0,children:m.jsxs(Dh,{className:"data-[state=open]:bg-sidebar-accent data-[state=open]:text-sidebar-accent-foreground md:h-8 md:p-0",size:"lg",children:[m.jsxs(GT,{className:"h-8 w-8 rounded-lg",children:[m.jsx(VT,{alt:d,src:e.avatar}),m.jsx(YT,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),m.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[m.jsx("span",{className:"truncate font-medium",children:d}),m.jsx("span",{className:"truncate text-xs",children:v})]}),m.jsx(k8,{className:"ml-auto size-4"})]})}),m.jsxs(mG,{align:"end",className:"w-(--radix-dropdown-menu-trigger-width) min-w-56 rounded-lg",side:t?"bottom":"right",sideOffset:4,children:[m.jsx(pG,{className:"p-0 font-normal",children:m.jsxs("div",{className:"flex items-center gap-2 px-1 py-1.5 text-left text-sm",children:[m.jsxs(GT,{className:"h-8 w-8 rounded-lg",children:[m.jsx(VT,{alt:d,src:e.avatar}),m.jsx(YT,{className:"rounded-lg bg-orange-500 text-white",children:"AWS"})]}),m.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[m.jsx("span",{className:"truncate font-medium",children:d}),m.jsx("span",{className:"truncate text-xs",children:v}),(i==null?void 0:i.accountId)&&i.accountId!==i.accountAlias&&m.jsx("span",{className:"truncate font-mono text-[10px] text-muted-foreground",children:i.accountId})]})]})}),m.jsx(bC,{}),m.jsxs(yC,{onClick:()=>r(n==="dark"?"light":"dark"),children:[n==="dark"?m.jsx(G8,{}):m.jsx(U8,{}),n==="dark"?"Light Mode":"Dark Mode"]}),m.jsx(bC,{}),m.jsxs(yC,{onClick:f,children:[m.jsx(aa,{}),"Close Console"]})]})]})})})}const go={user:{name:"Wraps Console",email:"admin@wraps.dev",avatar:"/avatars/wraps.jpg"},navMain:[{title:"Dashboard",url:"/",icon:Im,isActive:!0,isDashboard:!0},{title:"Email",url:"#",icon:Ws,isActive:!1,subItems:[{title:"Emails",icon:Ws,url:"/email"},{title:"Metrics",icon:RT,url:"/email/metrics"},{title:"Settings",icon:PT,url:"/email/settings"}]},{title:"SMS",url:"#",icon:ki,isActive:!1,subItems:[{title:"Messages",icon:ki,url:"/sms"},{title:"Metrics",icon:RT,url:"/sms/metrics"},{title:"Settings",icon:PT,url:"/sms/settings"}]}]};function AV({...e}){const t=da(),n=Io(),{setOpen:r,state:i}=Hl(),{theme:s}=bI(),l=O.useCallback(()=>t.pathname==="/"?go.navMain[0]:t.pathname.startsWith("/email")?go.navMain[1]:t.pathname.startsWith("/sms")?go.navMain[2]:go.navMain[0],[t.pathname]),[c,f]=O.useState(l());return O.useEffect(()=>{f(l())},[l]),m.jsxs(yh,{className:"overflow-hidden *:data-[sidebar=sidebar]:flex-row",collapsible:"icon",...e,children:[m.jsxs(yh,{className:"w-[calc(var(--sidebar-width-icon)+1px)]! border-r",collapsible:"none",children:[m.jsx(Iw,{children:m.jsx(Mh,{children:m.jsx(Rh,{children:m.jsx(Dh,{asChild:!0,className:"md:h-8 md:p-0",onClick:()=>{f(go.navMain[0]),r(!1)},size:"lg",children:m.jsxs(xh,{to:"/",children:[m.jsx("div",{className:"flex aspect-square size-8 items-center justify-center rounded-lg",children:m.jsx("img",{alt:"Wraps",className:"size-8 object-contain",src:s==="dark"?"/wraps-dark.png":"/wraps-light.png"})}),m.jsxs("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[m.jsx("span",{className:"truncate font-semibold",children:"Wraps"}),m.jsx("span",{className:"truncate text-xs",children:"Console"})]})]})})})})}),m.jsx(zw,{children:m.jsx(Bw,{children:m.jsx(qw,{className:"px-1.5 md:px-0",children:m.jsx(Mh,{children:go.navMain.filter(d=>!d.isDashboard).map(d=>m.jsx(Rh,{children:m.jsxs(Dh,{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:[m.jsx(d.icon,{}),m.jsx("span",{children:d.title})]})},d.title))})})})}),m.jsx(gI,{children:m.jsx(EV,{user:go.user})})]}),i==="expanded"&&m.jsx(yh,{className:"hidden flex-1 md:flex",collapsible:"none",children:c&&!c.isDashboard&&c.subItems?m.jsxs(m.Fragment,{children:[m.jsxs(Iw,{className:"gap-3.5 border-b p-4",children:[m.jsx("div",{className:"flex w-full items-center justify-between",children:m.jsxs("div",{className:"flex items-center gap-2 font-medium text-base text-foreground",children:[m.jsx(c.icon,{className:"size-4"}),c.title]})}),m.jsx(vI,{placeholder:"Search..."})]}),m.jsx(zw,{children:m.jsx(Bw,{className:"px-0",children:m.jsx(qw,{children:c.subItems.map(d=>{const v=t.pathname===d.url||d.url==="/email"&&t.pathname.startsWith("/email/")&&t.pathname!=="/email/metrics"&&t.pathname!=="/email/settings"||d.url==="/sms"&&t.pathname.startsWith("/sms/")&&t.pathname!=="/sms/metrics"&&t.pathname!=="/sms/settings";return m.jsxs(xh,{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 ${v?"bg-sidebar-accent font-semibold text-sidebar-accent-foreground":""}`,to:d.url,children:[m.jsx(d.icon,{className:"size-4 shrink-0"}),m.jsx("span",{className:"font-medium",children:d.title})]},d.title)})})})})]}):m.jsx("div",{className:"flex h-full items-center justify-center p-8 text-center",children:m.jsxs("div",{className:"text-muted-foreground",children:[m.jsx(Im,{className:"mx-auto mb-4 size-12 opacity-50"}),m.jsx("p",{className:"text-sm",children:"Select a product to view options"})]})})})]})}const TV=Qm("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 Je({className:e,variant:t,asChild:n=!1,...r}){const i=n?zo:"span";return m.jsx(i,{className:pe(TV({variant:t}),e),"data-slot":"badge",...r})}function ze({className:e,...t}){return m.jsx("div",{className:pe("flex flex-col gap-6 rounded-xl border bg-card py-6 text-card-foreground shadow-sm",e),"data-slot":"card",...t})}function Be({className:e,...t}){return m.jsx("div",{className:pe("@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 et({className:e,...t}){return m.jsx("div",{className:pe("font-semibold leading-none",e),"data-slot":"card-title",...t})}function st({className:e,...t}){return m.jsx("div",{className:pe("text-muted-foreground text-sm",e),"data-slot":"card-description",...t})}function We({className:e,...t}){return m.jsx("div",{className:pe("px-6",e),"data-slot":"card-content",...t})}const CV=Qm("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 Jr({className:e,variant:t,...n}){return m.jsx("div",{className:pe(CV({variant:t}),e),"data-slot":"alert",role:"alert",...n})}function Ph({className:e,...t}){return m.jsx("div",{className:pe("col-start-2 line-clamp-1 min-h-4 font-medium tracking-tight",e),"data-slot":"alert-title",...t})}function ea({className:e,...t}){return m.jsx("div",{className:pe("col-start-2 grid justify-items-start gap-1 text-muted-foreground text-sm [&_p]:leading-relaxed",e),"data-slot":"alert-description",...t})}var np="Tabs",[NV]=zr(np,[Gm]),xI=Gm(),[MV,mO]=NV(np),wI=O.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,onValueChange:i,defaultValue:s,orientation:l="horizontal",dir:c,activationMode:f="automatic",...d}=e,v=zm(c),[p,g]=$i({prop:r,onChange:i,defaultProp:s??"",caller:np});return m.jsx(MV,{scope:n,baseId:mr(),value:p,onValueChange:g,orientation:l,dir:v,activationMode:f,children:m.jsx(Re.div,{dir:v,"data-orientation":l,...d,ref:t})})});wI.displayName=np;var SI="TabsList",OI=O.forwardRef((e,t)=>{const{__scopeTabs:n,loop:r=!0,...i}=e,s=mO(SI,n),l=xI(n);return m.jsx(Y$,{asChild:!0,...l,orientation:s.orientation,dir:s.dir,loop:r,children:m.jsx(Re.div,{role:"tablist","aria-orientation":s.orientation,...i,ref:t})})});OI.displayName=SI;var _I="TabsTrigger",jI=O.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,disabled:i=!1,...s}=e,l=mO(_I,n),c=xI(n),f=TI(l.baseId,r),d=CI(l.baseId,r),v=r===l.value;return m.jsx(W$,{asChild:!0,...c,focusable:!i,active:v,children:m.jsx(Re.button,{type:"button",role:"tab","aria-selected":v,"aria-controls":d,"data-state":v?"active":"inactive","data-disabled":i?"":void 0,disabled:i,id:f,...s,ref:t,onMouseDown:be(e.onMouseDown,p=>{!i&&p.button===0&&p.ctrlKey===!1?l.onValueChange(r):p.preventDefault()}),onKeyDown:be(e.onKeyDown,p=>{[" ","Enter"].includes(p.key)&&l.onValueChange(r)}),onFocus:be(e.onFocus,()=>{const p=l.activationMode!=="manual";!v&&!i&&p&&l.onValueChange(r)})})})});jI.displayName=_I;var EI="TabsContent",AI=O.forwardRef((e,t)=>{const{__scopeTabs:n,value:r,forceMount:i,children:s,...l}=e,c=mO(EI,n),f=TI(c.baseId,r),d=CI(c.baseId,r),v=r===c.value,p=O.useRef(v);return O.useEffect(()=>{const g=requestAnimationFrame(()=>p.current=!1);return()=>cancelAnimationFrame(g)},[]),m.jsx(br,{present:i||v,children:({present:g})=>m.jsx(Re.div,{"data-state":v?"active":"inactive","data-orientation":c.orientation,role:"tabpanel","aria-labelledby":f,hidden:!g,id:d,tabIndex:0,...l,ref:t,style:{...e.style,animationDuration:p.current?"0s":void 0},children:g&&s})})});AI.displayName=EI;function TI(e,t){return`${e}-trigger-${t}`}function CI(e,t){return`${e}-content-${t}`}var RV=wI,DV=OI,PV=jI,kV=AI;function NI({className:e,...t}){return m.jsx(RV,{className:pe("flex flex-col gap-2",e),"data-slot":"tabs",...t})}function MI({className:e,...t}){return m.jsx(DV,{className:pe("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 cc({className:e,...t}){return m.jsx(PV,{className:pe("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 fc({className:e,...t}){return m.jsx(kV,{className:pe("flex-1 outline-none",e),"data-slot":"tabs-content",...t})}function $V({messageId:e,archivingEnabled:t}){const[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null);return O.useEffect(()=>{async function f(){if(!t){s(!1);return}try{s(!0),c(null);const d=sessionStorage.getItem("wraps-auth-token");if(!d)throw new Error("Authentication token not found");const v=encodeURIComponent(e),p=await fetch(`/api/emails/${v}/archive?token=${d}`);if(!p.ok){if(p.status===404){r(null),s(!1);return}throw new Error(`Failed to fetch archived email: ${p.statusText}`)}const g=await p.json();r({...g,timestamp:new Date(g.timestamp)})}catch(d){const v=d instanceof Error?d.message:"Unknown error";c(v),console.error("Error fetching archived email:",d)}finally{s(!1)}}f()},[e,t]),t?i?m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Email Archive"}),m.jsx(st,{children:"Loading archived email content..."})]}),m.jsx(We,{className:"space-y-4",children:m.jsx(pt,{className:"h-[400px] w-full"})})]}):l?m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Email Archive"}),m.jsx(st,{children:"Failed to load archived email"})]}),m.jsx(We,{children:m.jsx(Jr,{variant:"destructive",children:m.jsx(ea,{children:l})})})]}):n?m.jsxs(ze,{children:[m.jsx(Be,{children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx(et,{children:"Email Archive"}),m.jsx(st,{children:"Full email content stored in AWS SES Mail Manager"})]}),n.attachments.length>0&&m.jsxs(Je,{variant:"secondary",children:[n.attachments.length," attachment",n.attachments.length>1?"s":""]})]})}),m.jsxs(We,{children:[m.jsxs(NI,{className:"w-full",defaultValue:"rendered",children:[m.jsxs(MI,{className:"grid w-full grid-cols-3",children:[m.jsxs(cc,{className:"gap-2",value:"rendered",children:[m.jsx(Hk,{className:"h-4 w-4"}),"Rendered Email"]}),m.jsxs(cc,{className:"gap-2",value:"text",children:[m.jsx(z8,{className:"h-4 w-4"}),"Plain Text"]}),m.jsxs(cc,{className:"gap-2",value:"html",children:[m.jsx(L8,{className:"h-4 w-4"}),"HTML Source"]})]}),m.jsxs(fc,{className:"space-y-4",value:"rendered",children:[n.html?m.jsx("div",{className:"rounded-md border",children:m.jsx("iframe",{className:"h-[600px] w-full rounded-md",sandbox:"allow-same-origin",srcDoc:n.html,title:"Email preview"})}):m.jsx(Jr,{children:m.jsx(ea,{children:"No HTML content available for this email. View the plain text tab instead."})}),n.attachments.length>0&&m.jsxs("div",{className:"space-y-2",children:[m.jsx("div",{className:"font-medium text-sm",children:"Attachments"}),m.jsx("div",{className:"space-y-2",children:n.attachments.map((f,d)=>m.jsx("div",{className:"flex items-center justify-between rounded-md border p-3",children:m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"font-mono text-sm",children:f.filename||`Attachment ${d+1}`}),m.jsxs("div",{className:"text-muted-foreground text-xs",children:[f.contentType," •"," ",(f.size/1024).toFixed(2)," KB"]})]})},f.filename||`attachment-${d}`))})]})]}),m.jsx(fc,{className:"space-y-4",value:"text",children:n.text?m.jsx("div",{className:"rounded-md border bg-muted p-4",children:m.jsx("pre",{className:"whitespace-pre-wrap font-mono text-sm",children:n.text})}):m.jsx(Jr,{children:m.jsx(ea,{children:"No plain text content available for this email."})})}),m.jsx(fc,{className:"space-y-4",value:"html",children:n.html?m.jsx("div",{className:"rounded-md border bg-muted p-4",children:m.jsx("pre",{className:"overflow-x-auto whitespace-pre-wrap font-mono text-xs",children:n.html})}):m.jsx(Jr,{children:m.jsx(ea,{children:"No HTML content available for this email."})})})]}),n.metadata&&m.jsxs("div",{className:"mt-6 space-y-3 rounded-md border p-4",children:[m.jsx("div",{className:"font-medium text-sm",children:"SMTP Metadata"}),m.jsxs("div",{className:"grid gap-3 md:grid-cols-2",children:[n.metadata.senderIp&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-xs",children:"Sender IP"}),m.jsx("div",{className:"font-mono text-sm",children:n.metadata.senderIp})]}),n.metadata.tlsProtocol&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-xs",children:"TLS Protocol"}),m.jsx("div",{className:"font-mono text-sm",children:n.metadata.tlsProtocol})]}),n.metadata.senderHostname&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-xs",children:"Sender Hostname"}),m.jsx("div",{className:"font-mono text-sm",children:n.metadata.senderHostname})]})]})]})]})]}):m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Email Archive"}),m.jsx(st,{children:"Email content not available"})]}),m.jsx(We,{children:m.jsx(Jr,{children:m.jsx(ea,{children:"This email was not archived. It may have been sent before email archiving was enabled for this deployment."})})})]}):m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Email Archive"}),m.jsx(st,{children:"Enable email archiving to view full email content"})]}),m.jsx(We,{children:m.jsx(Jr,{children:m.jsxs(ea,{children:["Email archiving is not enabled for this deployment. Run"," ",m.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 LV={sent:Ws,delivered:TS,bounced:aa,complained:aa,opened:Ws,clicked:Ws,failed:aa},IV={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"},zV={delivered:"default",sent:"secondary",bounced:"destructive",complained:"destructive",failed:"destructive",opened:"default",clicked:"default"};function BV(){const{id:e}=Dk(),t=Io(),[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null),[f,d]=O.useState(!1);O.useEffect(()=>{async function g(){var x,_,S;try{s(!0),c(null);const w=sessionStorage.getItem("wraps-auth-token");if(!w)throw new Error("Authentication token not found");try{const T=await fetch(`/api/settings/deployment?token=${w}`);if(T.ok){const M=await T.json();d(M.archivingEnabled??!1)}}catch(T){console.warn("Failed to fetch deployment config:",T)}const j=encodeURIComponent(e||"");console.log("Fetching email with ID:",e),console.log("Encoded ID:",j),console.log("Full URL:",`/api/emails/${j}?token=${w.substring(0,8)}...`);const A=await fetch(`/api/emails/${j}?token=${w}`);if(!A.ok){let T="Failed to fetch email details";try{T=(await A.json()).error||T}catch{T=`${A.status}: ${A.statusText}`}throw new Error(T)}const E=A.headers.get("content-type");if(!(E!=null&&E.includes("application/json"))){const T=await A.text();throw console.error("Non-JSON response:",T),new Error("Server returned non-JSON response")}const N=await A.json();console.log("Email data received:",{id:N.id,hasHtmlBody:!!N.htmlBody,hasTextBody:!!N.textBody,htmlBodyLength:((x=N.htmlBody)==null?void 0:x.length)||0,textBodyLength:((_=N.textBody)==null?void 0:_.length)||0,events:((S=N.events)==null?void 0:S.length)||0}),r(N)}catch(w){const j=w instanceof Error?w.message:"Unknown error";c(j),console.error("Error fetching email details:",w)}finally{s(!1)}}e&&g()},[e]);const v=g=>new Date(g).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),p=g=>new Date(g).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0});return i?m.jsx("div",{className:"flex h-[600px] items-center justify-center",children:m.jsx("div",{className:"text-muted-foreground",children:"Loading email details..."})}):l?m.jsxs("div",{className:"space-y-4",children:[m.jsxs(bt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[m.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),m.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:l})]}):n?m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs(bt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[m.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),m.jsx(Je,{variant:zV[n.status],children:n.status.charAt(0).toUpperCase()+n.status.slice(1)})]}),m.jsxs(ze,{children:[m.jsx(Be,{children:m.jsx("div",{className:"flex items-start justify-between",children:m.jsxs("div",{className:"space-y-1.5",children:[m.jsx(et,{className:"text-2xl",children:n.subject}),m.jsx(st,{className:"font-mono text-xs",children:n.messageId})]})})}),m.jsx(We,{className:"space-y-4",children:m.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-sm",children:"FROM"}),m.jsx("div",{className:"font-mono text-sm",children:n.from})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-sm",children:"TO"}),m.jsx("div",{className:"font-mono text-sm",children:n.to.length>0?n.to.join(", "):"(no recipients)"})]}),n.replyTo&&m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-sm",children:"REPLY-TO"}),m.jsx("div",{className:"font-mono text-sm",children:n.replyTo})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-sm",children:"ID"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"rounded bg-muted px-2 py-1 font-mono text-xs",children:n.id}),m.jsxs(bt,{className:"h-6 w-6",onClick:()=>navigator.clipboard.writeText(n.id),size:"icon",variant:"ghost",children:[m.jsx("span",{className:"sr-only",children:"Copy ID"}),"📋"]})]})]})]})})]}),f&&m.jsx($V,{archivingEnabled:f,messageId:n.messageId}),m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Email Events"}),m.jsx(st,{children:"Lifecycle of this email from send to delivery"})]}),m.jsx(We,{children:m.jsx("div",{className:"space-y-4",children:n.events.length===0?m.jsx("div",{className:"text-muted-foreground text-sm",children:"No events recorded yet"}):n.events.map((g,x)=>{const _=LV[g.type]||nl,S=x===n.events.length-1;return m.jsx("div",{children:m.jsxs("div",{className:"flex gap-4",children:[m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("div",{className:`rounded-full border-2 border-background bg-muted p-2 ${IV[g.type]}`,children:m.jsx(_,{className:"h-4 w-4"})}),!S&&m.jsx("div",{className:"my-1 w-px flex-1 bg-border"})]}),m.jsxs("div",{className:"flex-1 pb-6",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("div",{className:"font-medium capitalize",children:g.type}),m.jsx("div",{className:"text-muted-foreground text-sm",children:v(g.timestamp)})]}),m.jsx("div",{className:"text-muted-foreground text-sm",children:p(g.timestamp)}),g.metadata&&Object.keys(g.metadata).length>0&&m.jsx("div",{className:"mt-2 rounded-md border bg-muted/50 p-2 font-mono text-xs",children:m.jsx("pre",{className:"overflow-x-auto",children:JSON.stringify(g.metadata,null,2)})})]})]})},`${g.type}-${g.timestamp}`)})})})]})]}):m.jsxs("div",{className:"space-y-4",children:[m.jsxs(bt,{onClick:()=>t("/email"),size:"sm",variant:"ghost",children:[m.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to emails"]}),m.jsx("div",{className:"rounded-md border p-4 text-muted-foreground text-sm",children:"Email not found"})]})}function OC(e,[t,n]){return Math.min(n,Math.max(t,e))}function qV(e){const t=O.useRef({value:e,previous:e});return O.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var UV=[" ","Enter","ArrowUp","ArrowDown"],HV=[" ","Enter"],Mo="Select",[rp,ap,FV]=MS(Mo),[Fl]=zr(Mo,[FV,Ul]),ip=Ul(),[GV,Bi]=Fl(Mo),[VV,YV]=Fl(Mo),RI=e=>{const{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:s,value:l,defaultValue:c,onValueChange:f,dir:d,name:v,autoComplete:p,disabled:g,required:x,form:_}=e,S=ip(t),[w,j]=O.useState(null),[A,E]=O.useState(null),[N,T]=O.useState(!1),M=zm(d),[R,D]=$i({prop:r,defaultProp:i??!1,onChange:s,caller:Mo}),[L,Y]=$i({prop:l,defaultProp:c,onChange:f,caller:Mo}),z=O.useRef(null),H=w?_||!!w.closest("form"):!0,[V,Q]=O.useState(new Set),K=Array.from(V).map(k=>k.props.value).join(";");return m.jsx(qS,{...S,children:m.jsxs(GV,{required:x,scope:t,trigger:w,onTriggerChange:j,valueNode:A,onValueNodeChange:E,valueNodeHasChildren:N,onValueNodeHasChildrenChange:T,contentId:mr(),value:L,onValueChange:Y,open:R,onOpenChange:D,dir:M,triggerPointerDownPosRef:z,disabled:g,children:[m.jsx(rp.Provider,{scope:t,children:m.jsx(VV,{scope:e.__scopeSelect,onNativeOptionAdd:O.useCallback(k=>{Q(q=>new Set(q).add(k))},[]),onNativeOptionRemove:O.useCallback(k=>{Q(q=>{const B=new Set(q);return B.delete(k),B})},[]),children:n})}),H?m.jsxs(e4,{"aria-hidden":!0,required:x,tabIndex:-1,name:v,autoComplete:p,value:L,onChange:k=>Y(k.target.value),disabled:g,form:_,children:[L===void 0?m.jsx("option",{value:""}):null,Array.from(V)]},K):null]})})};RI.displayName=Mo;var DI="SelectTrigger",PI=O.forwardRef((e,t)=>{const{__scopeSelect:n,disabled:r=!1,...i}=e,s=ip(n),l=Bi(DI,n),c=l.disabled||r,f=tt(t,l.onTriggerChange),d=ap(n),v=O.useRef("touch"),[p,g,x]=n4(S=>{const w=d().filter(E=>!E.disabled),j=w.find(E=>E.value===l.value),A=r4(w,S,j);A!==void 0&&l.onValueChange(A.value)}),_=S=>{c||(l.onOpenChange(!0),x()),S&&(l.triggerPointerDownPosRef.current={x:Math.round(S.pageX),y:Math.round(S.pageY)})};return m.jsx(US,{asChild:!0,...s,children:m.jsx(Re.button,{type:"button",role:"combobox","aria-controls":l.contentId,"aria-expanded":l.open,"aria-required":l.required,"aria-autocomplete":"none",dir:l.dir,"data-state":l.open?"open":"closed",disabled:c,"data-disabled":c?"":void 0,"data-placeholder":t4(l.value)?"":void 0,...i,ref:f,onClick:be(i.onClick,S=>{S.currentTarget.focus(),v.current!=="mouse"&&_(S)}),onPointerDown:be(i.onPointerDown,S=>{v.current=S.pointerType;const w=S.target;w.hasPointerCapture(S.pointerId)&&w.releasePointerCapture(S.pointerId),S.button===0&&S.ctrlKey===!1&&S.pointerType==="mouse"&&(_(S),S.preventDefault())}),onKeyDown:be(i.onKeyDown,S=>{const w=p.current!=="";!(S.ctrlKey||S.altKey||S.metaKey)&&S.key.length===1&&g(S.key),!(w&&S.key===" ")&&UV.includes(S.key)&&(_(),S.preventDefault())})})})});PI.displayName=DI;var kI="SelectValue",$I=O.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,children:s,placeholder:l="",...c}=e,f=Bi(kI,n),{onValueNodeHasChildrenChange:d}=f,v=s!==void 0,p=tt(t,f.onValueNodeChange);return Ft(()=>{d(v)},[d,v]),m.jsx(Re.span,{...c,ref:p,style:{pointerEvents:"none"},children:t4(f.value)?m.jsx(m.Fragment,{children:l}):s})});$I.displayName=kI;var WV="SelectIcon",LI=O.forwardRef((e,t)=>{const{__scopeSelect:n,children:r,...i}=e;return m.jsx(Re.span,{"aria-hidden":!0,...i,ref:t,children:r||"▼"})});LI.displayName=WV;var KV="SelectPortal",II=e=>m.jsx(hf,{asChild:!0,...e});II.displayName=KV;var Ro="SelectContent",zI=O.forwardRef((e,t)=>{const n=Bi(Ro,e.__scopeSelect),[r,i]=O.useState();if(Ft(()=>{i(new DocumentFragment)},[]),!n.open){const s=r;return s?lf.createPortal(m.jsx(BI,{scope:e.__scopeSelect,children:m.jsx(rp.Slot,{scope:e.__scopeSelect,children:m.jsx("div",{children:e.children})})}),s):null}return m.jsx(qI,{...e,ref:t})});zI.displayName=Ro;var Ar=10,[BI,qi]=Fl(Ro),XV="SelectContentImpl",QV=rl("SelectContent.RemoveScroll"),qI=O.forwardRef((e,t)=>{const{__scopeSelect:n,position:r="item-aligned",onCloseAutoFocus:i,onEscapeKeyDown:s,onPointerDownOutside:l,side:c,sideOffset:f,align:d,alignOffset:v,arrowPadding:p,collisionBoundary:g,collisionPadding:x,sticky:_,hideWhenDetached:S,avoidCollisions:w,...j}=e,A=Bi(Ro,n),[E,N]=O.useState(null),[T,M]=O.useState(null),R=tt(t,ce=>N(ce)),[D,L]=O.useState(null),[Y,z]=O.useState(null),H=ap(n),[V,Q]=O.useState(!1),K=O.useRef(!1);O.useEffect(()=>{if(E)return GS(E)},[E]),RS();const k=O.useCallback(ce=>{const[he,...ie]=H().map(ne=>ne.ref.current),[me]=ie.slice(-1),ve=document.activeElement;for(const ne of ce)if(ne===ve||(ne==null||ne.scrollIntoView({block:"nearest"}),ne===he&&T&&(T.scrollTop=0),ne===me&&T&&(T.scrollTop=T.scrollHeight),ne==null||ne.focus(),document.activeElement!==ve))return},[H,T]),q=O.useCallback(()=>k([D,E]),[k,D,E]);O.useEffect(()=>{V&&q()},[V,q]);const{onOpenChange:B,triggerPointerDownPosRef:W}=A;O.useEffect(()=>{if(E){let ce={x:0,y:0};const he=me=>{var ve,ne;ce={x:Math.abs(Math.round(me.pageX)-(((ve=W.current)==null?void 0:ve.x)??0)),y:Math.abs(Math.round(me.pageY)-(((ne=W.current)==null?void 0:ne.y)??0))}},ie=me=>{ce.x<=10&&ce.y<=10?me.preventDefault():E.contains(me.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})}}},[E,B,W]),O.useEffect(()=>{const ce=()=>B(!1);return window.addEventListener("blur",ce),window.addEventListener("resize",ce),()=>{window.removeEventListener("blur",ce),window.removeEventListener("resize",ce)}},[B]);const[se,$]=n4(ce=>{const he=H().filter(ve=>!ve.disabled),ie=he.find(ve=>ve.ref.current===document.activeElement),me=r4(he,ce,ie);me&&setTimeout(()=>me.ref.current.focus())}),F=O.useCallback((ce,he,ie)=>{const me=!K.current&&!ie;(A.value!==void 0&&A.value===he||me)&&(L(ce),me&&(K.current=!0))},[A.value]),X=O.useCallback(()=>E==null?void 0:E.focus(),[E]),ae=O.useCallback((ce,he,ie)=>{const me=!K.current&&!ie;(A.value!==void 0&&A.value===he||me)&&z(ce)},[A.value]),de=r==="popper"?Uw:UI,ge=de===Uw?{side:c,sideOffset:f,align:d,alignOffset:v,arrowPadding:p,collisionBoundary:g,collisionPadding:x,sticky:_,hideWhenDetached:S,avoidCollisions:w}:{};return m.jsx(BI,{scope:n,content:E,viewport:T,onViewportChange:M,itemRefCallback:F,selectedItem:D,onItemLeave:X,itemTextRefCallback:ae,focusSelectedItem:q,selectedItemText:Y,position:r,isPositioned:V,searchRef:se,children:m.jsx(Ym,{as:QV,allowPinchZoom:!0,children:m.jsx(Bm,{asChild:!0,trapped:A.open,onMountAutoFocus:ce=>{ce.preventDefault()},onUnmountAutoFocus:be(i,ce=>{var he;(he=A.trigger)==null||he.focus({preventScroll:!0}),ce.preventDefault()}),children:m.jsx(ff,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:s,onPointerDownOutside:l,onFocusOutside:ce=>ce.preventDefault(),onDismiss:()=>A.onOpenChange(!1),children:m.jsx(de,{role:"listbox",id:A.contentId,"data-state":A.open?"open":"closed",dir:A.dir,onContextMenu:ce=>ce.preventDefault(),...j,...ge,onPlaced:()=>Q(!0),ref:R,style:{display:"flex",flexDirection:"column",outline:"none",...j.style},onKeyDown:be(j.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 me=H().filter(ve=>!ve.disabled).map(ve=>ve.ref.current);if(["ArrowUp","End"].includes(ce.key)&&(me=me.slice().reverse()),["ArrowUp","ArrowDown"].includes(ce.key)){const ve=ce.target,ne=me.indexOf(ve);me=me.slice(ne+1)}setTimeout(()=>k(me)),ce.preventDefault()}})})})})})})});qI.displayName=XV;var ZV="SelectItemAlignedPosition",UI=O.forwardRef((e,t)=>{const{__scopeSelect:n,onPlaced:r,...i}=e,s=Bi(Ro,n),l=qi(Ro,n),[c,f]=O.useState(null),[d,v]=O.useState(null),p=tt(t,R=>v(R)),g=ap(n),x=O.useRef(!1),_=O.useRef(!0),{viewport:S,selectedItem:w,selectedItemText:j,focusSelectedItem:A}=l,E=O.useCallback(()=>{if(s.trigger&&s.valueNode&&c&&d&&S&&w&&j){const R=s.trigger.getBoundingClientRect(),D=d.getBoundingClientRect(),L=s.valueNode.getBoundingClientRect(),Y=j.getBoundingClientRect();if(s.dir!=="rtl"){const ve=Y.left-D.left,ne=L.left-ve,De=R.left-ne,je=R.width+De,rt=Math.max(je,D.width),Xe=window.innerWidth-Ar,ft=OC(ne,[Ar,Math.max(Ar,Xe-rt)]);c.style.minWidth=je+"px",c.style.left=ft+"px"}else{const ve=D.right-Y.right,ne=window.innerWidth-L.right-ve,De=window.innerWidth-R.right-ne,je=R.width+De,rt=Math.max(je,D.width),Xe=window.innerWidth-Ar,ft=OC(ne,[Ar,Math.max(Ar,Xe-rt)]);c.style.minWidth=je+"px",c.style.right=ft+"px"}const z=g(),H=window.innerHeight-Ar*2,V=S.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,se=Math.min(w.offsetHeight*5,W),$=window.getComputedStyle(S),F=parseInt($.paddingTop,10),X=parseInt($.paddingBottom,10),ae=R.top+R.height/2-Ar,de=H-ae,ge=w.offsetHeight/2,ce=w.offsetTop+ge,he=K+k+ce,ie=W-he;if(he<=ae){const ve=z.length>0&&w===z[z.length-1].ref.current;c.style.bottom="0px";const ne=d.clientHeight-S.offsetTop-S.offsetHeight,De=Math.max(de,ge+(ve?X:0)+ne+q),je=he+De;c.style.height=je+"px"}else{const ve=z.length>0&&w===z[0].ref.current;c.style.top="0px";const De=Math.max(ae,K+S.offsetTop+(ve?F:0)+ge)+ie;c.style.height=De+"px",S.scrollTop=he-ae+S.offsetTop}c.style.margin=`${Ar}px 0`,c.style.minHeight=se+"px",c.style.maxHeight=H+"px",r==null||r(),requestAnimationFrame(()=>x.current=!0)}},[g,s.trigger,s.valueNode,c,d,S,w,j,s.dir,r]);Ft(()=>E(),[E]);const[N,T]=O.useState();Ft(()=>{d&&T(window.getComputedStyle(d).zIndex)},[d]);const M=O.useCallback(R=>{R&&_.current===!0&&(E(),A==null||A(),_.current=!1)},[E,A]);return m.jsx(eY,{scope:n,contentWrapper:c,shouldExpandOnScrollRef:x,onScrollButtonChange:M,children:m.jsx("div",{ref:f,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:N},children:m.jsx(Re.div,{...i,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...i.style}})})})});UI.displayName=ZV;var JV="SelectPopperPosition",Uw=O.forwardRef((e,t)=>{const{__scopeSelect:n,align:r="start",collisionPadding:i=Ar,...s}=e,l=ip(n);return m.jsx(HS,{...l,...s,ref:t,align:r,collisionPadding:i,style:{boxSizing:"border-box",...s.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)"}})});Uw.displayName=JV;var[eY,pO]=Fl(Ro,{}),Hw="SelectViewport",HI=O.forwardRef((e,t)=>{const{__scopeSelect:n,nonce:r,...i}=e,s=qi(Hw,n),l=pO(Hw,n),c=tt(t,s.onViewportChange),f=O.useRef(0);return m.jsxs(m.Fragment,{children:[m.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}),m.jsx(rp.Slot,{scope:n,children:m.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 v=d.currentTarget,{contentWrapper:p,shouldExpandOnScrollRef:g}=l;if(g!=null&&g.current&&p){const x=Math.abs(f.current-v.scrollTop);if(x>0){const _=window.innerHeight-Ar*2,S=parseFloat(p.style.minHeight),w=parseFloat(p.style.height),j=Math.max(S,w);if(j<_){const A=j+x,E=Math.min(_,A),N=A-E;p.style.height=E+"px",p.style.bottom==="0px"&&(v.scrollTop=N>0?N:0,p.style.justifyContent="flex-end")}}}f.current=v.scrollTop})})})]})});HI.displayName=Hw;var FI="SelectGroup",[tY,nY]=Fl(FI),rY=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=mr();return m.jsx(tY,{scope:n,id:i,children:m.jsx(Re.div,{role:"group","aria-labelledby":i,...r,ref:t})})});rY.displayName=FI;var GI="SelectLabel",aY=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=nY(GI,n);return m.jsx(Re.div,{id:i.id,...r,ref:t})});aY.displayName=GI;var kh="SelectItem",[iY,VI]=Fl(kh),YI=O.forwardRef((e,t)=>{const{__scopeSelect:n,value:r,disabled:i=!1,textValue:s,...l}=e,c=Bi(kh,n),f=qi(kh,n),d=c.value===r,[v,p]=O.useState(s??""),[g,x]=O.useState(!1),_=tt(t,A=>{var E;return(E=f.itemRefCallback)==null?void 0:E.call(f,A,r,i)}),S=mr(),w=O.useRef("touch"),j=()=>{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 m.jsx(iY,{scope:n,value:r,disabled:i,textId:S,isSelected:d,onItemTextChange:O.useCallback(A=>{p(E=>E||((A==null?void 0:A.textContent)??"").trim())},[]),children:m.jsx(rp.ItemSlot,{scope:n,value:r,disabled:i,textValue:v,children:m.jsx(Re.div,{role:"option","aria-labelledby":S,"data-highlighted":g?"":void 0,"aria-selected":d&&g,"data-state":d?"checked":"unchecked","aria-disabled":i||void 0,"data-disabled":i?"":void 0,tabIndex:i?void 0:-1,...l,ref:_,onFocus:be(l.onFocus,()=>x(!0)),onBlur:be(l.onBlur,()=>x(!1)),onClick:be(l.onClick,()=>{w.current!=="mouse"&&j()}),onPointerUp:be(l.onPointerUp,()=>{w.current==="mouse"&&j()}),onPointerDown:be(l.onPointerDown,A=>{w.current=A.pointerType}),onPointerMove:be(l.onPointerMove,A=>{var E;w.current=A.pointerType,i?(E=f.onItemLeave)==null||E.call(f):w.current==="mouse"&&A.currentTarget.focus({preventScroll:!0})}),onPointerLeave:be(l.onPointerLeave,A=>{var E;A.currentTarget===document.activeElement&&((E=f.onItemLeave)==null||E.call(f))}),onKeyDown:be(l.onKeyDown,A=>{var N;((N=f.searchRef)==null?void 0:N.current)!==""&&A.key===" "||(HV.includes(A.key)&&j(),A.key===" "&&A.preventDefault())})})})})});YI.displayName=kh;var oc="SelectItemText",WI=O.forwardRef((e,t)=>{const{__scopeSelect:n,className:r,style:i,...s}=e,l=Bi(oc,n),c=qi(oc,n),f=VI(oc,n),d=YV(oc,n),[v,p]=O.useState(null),g=tt(t,j=>p(j),f.onItemTextChange,j=>{var A;return(A=c.itemTextRefCallback)==null?void 0:A.call(c,j,f.value,f.disabled)}),x=v==null?void 0:v.textContent,_=O.useMemo(()=>m.jsx("option",{value:f.value,disabled:f.disabled,children:x},f.value),[f.disabled,f.value,x]),{onNativeOptionAdd:S,onNativeOptionRemove:w}=d;return Ft(()=>(S(_),()=>w(_)),[S,w,_]),m.jsxs(m.Fragment,{children:[m.jsx(Re.span,{id:f.textId,...s,ref:g}),f.isSelected&&l.valueNode&&!l.valueNodeHasChildren?lf.createPortal(s.children,l.valueNode):null]})});WI.displayName=oc;var KI="SelectItemIndicator",XI=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return VI(KI,n).isSelected?m.jsx(Re.span,{"aria-hidden":!0,...r,ref:t}):null});XI.displayName=KI;var Fw="SelectScrollUpButton",QI=O.forwardRef((e,t)=>{const n=qi(Fw,e.__scopeSelect),r=pO(Fw,e.__scopeSelect),[i,s]=O.useState(!1),l=tt(t,r.onScrollButtonChange);return Ft(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollTop>0;s(d)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?m.jsx(JI,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop-f.offsetHeight)}}):null});QI.displayName=Fw;var Gw="SelectScrollDownButton",ZI=O.forwardRef((e,t)=>{const n=qi(Gw,e.__scopeSelect),r=pO(Gw,e.__scopeSelect),[i,s]=O.useState(!1),l=tt(t,r.onScrollButtonChange);return Ft(()=>{if(n.viewport&&n.isPositioned){let c=function(){const d=f.scrollHeight-f.clientHeight,v=Math.ceil(f.scrollTop)<d;s(v)};const f=n.viewport;return c(),f.addEventListener("scroll",c),()=>f.removeEventListener("scroll",c)}},[n.viewport,n.isPositioned]),i?m.jsx(JI,{...e,ref:l,onAutoScroll:()=>{const{viewport:c,selectedItem:f}=n;c&&f&&(c.scrollTop=c.scrollTop+f.offsetHeight)}}):null});ZI.displayName=Gw;var JI=O.forwardRef((e,t)=>{const{__scopeSelect:n,onAutoScroll:r,...i}=e,s=qi("SelectScrollButton",n),l=O.useRef(null),c=ap(n),f=O.useCallback(()=>{l.current!==null&&(window.clearInterval(l.current),l.current=null)},[]);return O.useEffect(()=>()=>f(),[f]),Ft(()=>{var v;const d=c().find(p=>p.ref.current===document.activeElement);(v=d==null?void 0:d.ref.current)==null||v.scrollIntoView({block:"nearest"})},[c]),m.jsx(Re.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:be(i.onPointerDown,()=>{l.current===null&&(l.current=window.setInterval(r,50))}),onPointerMove:be(i.onPointerMove,()=>{var d;(d=s.onItemLeave)==null||d.call(s),l.current===null&&(l.current=window.setInterval(r,50))}),onPointerLeave:be(i.onPointerLeave,()=>{f()})})}),oY="SelectSeparator",sY=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e;return m.jsx(Re.div,{"aria-hidden":!0,...r,ref:t})});sY.displayName=oY;var Vw="SelectArrow",lY=O.forwardRef((e,t)=>{const{__scopeSelect:n,...r}=e,i=ip(n),s=Bi(Vw,n),l=qi(Vw,n);return s.open&&l.position==="popper"?m.jsx(FS,{...i,...r,ref:t}):null});lY.displayName=Vw;var uY="SelectBubbleInput",e4=O.forwardRef(({__scopeSelect:e,value:t,...n},r)=>{const i=O.useRef(null),s=tt(r,i),l=qV(t);return O.useEffect(()=>{const c=i.current;if(!c)return;const f=window.HTMLSelectElement.prototype,v=Object.getOwnPropertyDescriptor(f,"value").set;if(l!==t&&v){const p=new Event("change",{bubbles:!0});v.call(c,t),c.dispatchEvent(p)}},[l,t]),m.jsx(Re.select,{...n,style:{...eI,...n.style},ref:s,defaultValue:t})});e4.displayName=uY;function t4(e){return e===""||e===void 0}function n4(e){const t=Pr(e),n=O.useRef(""),r=O.useRef(0),i=O.useCallback(l=>{const c=n.current+l;t(c),(function f(d){n.current=d,window.clearTimeout(r.current),d!==""&&(r.current=window.setTimeout(()=>f(""),1e3))})(c)},[t]),s=O.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return O.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,s]}function r4(e,t,n){const i=t.length>1&&Array.from(t).every(d=>d===t[0])?t[0]:t,s=n?e.indexOf(n):-1;let l=cY(e,Math.max(s,0));i.length===1&&(l=l.filter(d=>d!==n));const f=l.find(d=>d.textValue.toLowerCase().startsWith(i.toLowerCase()));return f!==n?f:void 0}function cY(e,t){return e.map((n,r)=>e[(t+r)%e.length])}var fY=RI,dY=PI,hY=$I,mY=LI,pY=II,vY=zI,gY=HI,yY=YI,bY=WI,xY=XI,wY=QI,SY=ZI;function ol({...e}){return m.jsx(fY,{"data-slot":"select",...e})}function sl({...e}){return m.jsx(hY,{"data-slot":"select-value",...e})}function ll({className:e,size:t="default",children:n,...r}){return m.jsxs(dY,{className:pe("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,m.jsx(mY,{asChild:!0,children:m.jsx($l,{className:"size-4 opacity-50"})})]})}function ul({className:e,children:t,position:n="popper",align:r="center",...i}){return m.jsx(pY,{children:m.jsxs(vY,{align:r,className:pe("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=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",e),"data-slot":"select-content",position:n,...i,children:[m.jsx(OY,{}),m.jsx(gY,{className:pe("p-1",n==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),m.jsx(_Y,{})]})})}function Ge({className:e,children:t,...n}){return m.jsxs(yY,{className:pe("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:[m.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:m.jsx(xY,{children:m.jsx(TS,{className:"size-4"})})}),m.jsx(bY,{children:t})]})}function OY({className:e,...t}){return m.jsx(wY,{className:pe("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-up-button",...t,children:m.jsx(uf,{className:"size-4"})})}function _Y({className:e,...t}){return m.jsx(SY,{className:pe("flex cursor-default items-center justify-center py-1",e),"data-slot":"select-scroll-down-button",...t,children:m.jsx($l,{className:"size-4"})})}function a4({className:e,...t}){return m.jsx("div",{className:"relative w-full overflow-x-auto","data-slot":"table-container",children:m.jsx("table",{className:pe("w-full caption-bottom text-sm",e),"data-slot":"table",...t})})}function i4({className:e,...t}){return m.jsx("thead",{className:pe("[&_tr]:border-b",e),"data-slot":"table-header",...t})}function o4({className:e,...t}){return m.jsx("tbody",{className:pe("[&_tr:last-child]:border-0",e),"data-slot":"table-body",...t})}function Mi({className:e,...t}){return m.jsx("tr",{className:pe("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",e),"data-slot":"table-row",...t})}function ra({className:e,...t}){return m.jsx("th",{className:pe("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 Pn({className:e,...t}){return m.jsx("td",{className:pe("whitespace-nowrap p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]",e),"data-slot":"table-cell",...t})}const _y={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 jY(){const e=Io(),[t,n]=O.useState(""),[r,i]=O.useState("15"),[s,l]=O.useState("all"),[c,f]=O.useState("sending"),[d,v]=O.useState([]),[p,g]=O.useState(!0),[x,_]=O.useState(null);O.useEffect(()=>{async function j(){try{g(!0),_(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 E=Number.parseInt(r,10),N=Date.now()-E*24*60*60*1e3,T=Date.now(),M=await fetch(`/api/emails?startTime=${N}&endTime=${T}&limit=100&token=${A}`);if(!M.ok){let D="Failed to fetch email logs";try{D=(await M.json()).error||D}catch{D=`${M.status}: ${M.statusText}`}throw new Error(D)}const R=await M.json();v(R.logs.map(D=>({id:D.messageId,to:D.to,from:D.from,subject:D.subject,status:D.status,timestamp:D.sentAt,messageId:D.messageId})))}catch(A){const E=A instanceof Error?A.message:"Unknown error";_(E),console.error("Error fetching email logs:",A)}finally{g(!1)}}j()},[r]);const S=d.filter(j=>{if(t){const A=t.toLowerCase(),E=j.to.some(T=>T.toLowerCase().includes(A)),N=j.subject.toLowerCase().includes(A);if(!(E||N))return!1}return!(s!=="all"&&j.status!==s)}),w=j=>{const A=new Date(j),N=Math.floor((new Date().getTime()-A.getTime())/(1e3*60*60*24));return N===0?"Today":N===1?"Yesterday":N<7?`${N} days ago`:A.toLocaleDateString()};return m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Emails"}),m.jsx(st,{children:"View and manage your email sending history"})]}),m.jsx(We,{children:m.jsxs(NI,{onValueChange:f,value:c,children:[m.jsxs(MI,{children:[m.jsx(cc,{value:"sending",children:"Sending"}),m.jsx(cc,{value:"receiving",children:"Receiving"})]}),m.jsxs(fc,{className:"space-y-4",value:"sending",children:[x&&m.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:x}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsxs("div",{className:"relative flex-1",children:[m.jsx(Gk,{className:"absolute top-2.5 left-2.5 h-4 w-4 text-muted-foreground"}),m.jsx(gf,{className:"pl-8",onChange:j=>n(j.target.value),placeholder:"Search...",value:t})]}),m.jsxs(ol,{onValueChange:i,value:r,children:[m.jsx(ll,{className:"w-[180px]",children:m.jsx(sl,{})}),m.jsxs(ul,{children:[m.jsx(Ge,{value:"1",children:"Last 24 hours"}),m.jsx(Ge,{value:"7",children:"Last 7 days"}),m.jsx(Ge,{value:"15",children:"Last 15 days"}),m.jsx(Ge,{value:"30",children:"Last 30 days"}),m.jsx(Ge,{value:"90",children:"Last 90 days"})]})]}),m.jsxs(ol,{onValueChange:l,value:s,children:[m.jsx(ll,{className:"w-[180px]",children:m.jsx(sl,{})}),m.jsxs(ul,{children:[m.jsx(Ge,{value:"all",children:"All Statuses"}),m.jsx(Ge,{value:"clicked",children:"Clicked"}),m.jsx(Ge,{value:"opened",children:"Opened"}),m.jsx(Ge,{value:"delivered",children:"Delivered"}),m.jsx(Ge,{value:"sent",children:"Sent"}),m.jsx(Ge,{value:"bounced",children:"Bounced"}),m.jsx(Ge,{value:"complained",children:"Complained"}),m.jsx(Ge,{value:"failed",children:"Failed"})]})]}),m.jsxs(bt,{size:"icon",variant:"outline",children:[m.jsx("span",{className:"sr-only",children:"Download"}),"↓"]})]}),m.jsx("div",{className:"rounded-md border",children:m.jsxs(a4,{children:[m.jsx(i4,{children:m.jsxs(Mi,{children:[m.jsx(ra,{children:"To"}),m.jsx(ra,{children:"Status"}),m.jsx(ra,{children:"Subject"}),m.jsx(ra,{children:"Sent"}),m.jsx(ra,{className:"w-[50px]"})]})}),m.jsx(o4,{children:p?m.jsx(Mi,{children:m.jsx(Pn,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"Loading email logs..."})}):S.length===0?m.jsx(Mi,{children:m.jsx(Pn,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"No emails found"})}):S.map(j=>{var A,E,N;return m.jsxs(Mi,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>e(`/email/${j.id}`),children:[m.jsx(Pn,{className:"font-mono text-sm",children:j.to.length>0?m.jsxs(m.Fragment,{children:[j.to[0],j.to.length>1&&m.jsxs("span",{className:"ml-1 text-muted-foreground text-xs",children:["+",j.to.length-1," more"]})]}):m.jsx("span",{className:"text-muted-foreground",children:"(no recipients)"})}),m.jsx(Pn,{children:m.jsxs(fO,{children:[m.jsx(dO,{asChild:!0,children:m.jsx(Je,{className:(A=_y[j.status])==null?void 0:A.className,variant:((E=_y[j.status])==null?void 0:E.variant)??"default",children:j.status.charAt(0).toUpperCase()+j.status.slice(1)})}),m.jsx(hO,{children:m.jsx("p",{children:((N=_y[j.status])==null?void 0:N.description)??"Unknown status"})})]})}),m.jsx(Pn,{className:"max-w-[400px] truncate",children:j.subject}),m.jsx(Pn,{className:"text-muted-foreground",children:w(j.timestamp)}),m.jsx(Pn,{children:m.jsxs(bt,{onClick:T=>{T.stopPropagation()},size:"icon",variant:"ghost",children:[m.jsx("span",{className:"sr-only",children:"More options"}),"⋯"]})})]},j.id)})})]})}),S.length>0&&!p&&m.jsx("div",{className:"flex items-center justify-between text-muted-foreground text-sm",children:m.jsxs("div",{children:["Showing ",S.length," of ",d.length," emails"]})})]}),m.jsx(fc,{value:"receiving",children:m.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"Receiving emails coming soon"})})]})})]})}const s4=6048e5,EY=864e5,_C=Symbol.for("constructDateFrom");function zi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&_C in e?e[_C](t):e instanceof Date?new e.constructor(t):new Date(t)}function qr(e,t){return zi(t||e,e)}let AY={};function op(){return AY}function Oc(e,t){var c,f,d,v;const n=op(),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??((v=(d=n.locale)==null?void 0:d.options)==null?void 0:v.weekStartsOn)??0,i=qr(e,t==null?void 0:t.in),s=i.getDay(),l=(s<r?7:0)+s-r;return i.setDate(i.getDate()-l),i.setHours(0,0,0,0),i}function $h(e,t){return Oc(e,{...t,weekStartsOn:1})}function l4(e,t){const n=qr(e,t==null?void 0:t.in),r=n.getFullYear(),i=zi(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const s=$h(i),l=zi(n,0);l.setFullYear(r,0,4),l.setHours(0,0,0,0);const c=$h(l);return n.getTime()>=s.getTime()?r+1:n.getTime()>=c.getTime()?r:r-1}function jC(e){const t=qr(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 TY(e,...t){const n=zi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function EC(e,t){const n=qr(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function CY(e,t,n){const[r,i]=TY(n==null?void 0:n.in,e,t),s=EC(r),l=EC(i),c=+s-jC(s),f=+l-jC(l);return Math.round((c-f)/EY)}function NY(e,t){const n=l4(e,t),r=zi(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),$h(r)}function MY(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function RY(e){return!(!MY(e)&&typeof e!="number"||isNaN(+qr(e)))}function DY(e,t){const n=qr(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}const PY={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"}},kY=(e,t,n)=>{let r;const i=PY[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 jy(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const $Y={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},LY={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},IY={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zY={date:jy({formats:$Y,defaultWidth:"full"}),time:jy({formats:LY,defaultWidth:"full"}),dateTime:jy({formats:IY,defaultWidth:"full"})},BY={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qY=(e,t,n,r)=>BY[e];function Wu(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,c=n!=null&&n.width?String(n.width):l;i=e.formattingValues[c]||e.formattingValues[l]}else{const l=e.defaultWidth,c=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[c]||e.values[l]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}const UY={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},HY={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},FY={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"]},GY={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"]},VY={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"}},YY={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"}},WY=(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"},KY={ordinalNumber:WY,era:Wu({values:UY,defaultWidth:"wide"}),quarter:Wu({values:HY,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Wu({values:FY,defaultWidth:"wide"}),day:Wu({values:GY,defaultWidth:"wide"}),dayPeriod:Wu({values:VY,defaultWidth:"wide",formattingValues:YY,defaultFormattingWidth:"wide"})};function Ku(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],s=t.match(i);if(!s)return null;const l=s[0],c=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(c)?QY(c,p=>p.test(l)):XY(c,p=>p.test(l));let d;d=e.valueCallback?e.valueCallback(f):f,d=n.valueCallback?n.valueCallback(d):d;const v=t.slice(l.length);return{value:d,rest:v}}}function XY(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function QY(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function ZY(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],s=t.match(e.parsePattern);if(!s)return null;let l=e.valueCallback?e.valueCallback(s[0]):s[0];l=n.valueCallback?n.valueCallback(l):l;const c=t.slice(i.length);return{value:l,rest:c}}}const JY=/^(\d+)(th|st|nd|rd)?/i,eW=/\d+/i,tW={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},nW={any:[/^b/i,/^(a|c)/i]},rW={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},aW={any:[/1/i,/2/i,/3/i,/4/i]},iW={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},oW={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},lW={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]},uW={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},cW={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}},fW={ordinalNumber:ZY({matchPattern:JY,parsePattern:eW,valueCallback:e=>parseInt(e,10)}),era:Ku({matchPatterns:tW,defaultMatchWidth:"wide",parsePatterns:nW,defaultParseWidth:"any"}),quarter:Ku({matchPatterns:rW,defaultMatchWidth:"wide",parsePatterns:aW,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Ku({matchPatterns:iW,defaultMatchWidth:"wide",parsePatterns:oW,defaultParseWidth:"any"}),day:Ku({matchPatterns:sW,defaultMatchWidth:"wide",parsePatterns:lW,defaultParseWidth:"any"}),dayPeriod:Ku({matchPatterns:uW,defaultMatchWidth:"any",parsePatterns:cW,defaultParseWidth:"any"})},dW={code:"en-US",formatDistance:kY,formatLong:zY,formatRelative:qY,localize:KY,match:fW,options:{weekStartsOn:0,firstWeekContainsDate:1}};function hW(e,t){const n=qr(e,t==null?void 0:t.in);return CY(n,DY(n))+1}function mW(e,t){const n=qr(e,t==null?void 0:t.in),r=+$h(n)-+NY(n);return Math.round(r/s4)+1}function u4(e,t){var v,p,g,x;const n=qr(e,t==null?void 0:t.in),r=n.getFullYear(),i=op(),s=(t==null?void 0:t.firstWeekContainsDate)??((p=(v=t==null?void 0:t.locale)==null?void 0:v.options)==null?void 0:p.firstWeekContainsDate)??i.firstWeekContainsDate??((x=(g=i.locale)==null?void 0:g.options)==null?void 0:x.firstWeekContainsDate)??1,l=zi((t==null?void 0:t.in)||e,0);l.setFullYear(r+1,0,s),l.setHours(0,0,0,0);const c=Oc(l,t),f=zi((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,s),f.setHours(0,0,0,0);const d=Oc(f,t);return+n>=+c?r+1:+n>=+d?r:r-1}function pW(e,t){var c,f,d,v;const n=op(),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??((v=(d=n.locale)==null?void 0:d.options)==null?void 0:v.firstWeekContainsDate)??1,i=u4(e,t),s=zi((t==null?void 0:t.in)||e,0);return s.setFullYear(i,0,r),s.setHours(0,0,0,0),Oc(s,t)}function vW(e,t){const n=qr(e,t==null?void 0:t.in),r=+Oc(n,t)-+pW(n,t);return Math.round(r/s4)+1}function ct(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Ai={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return ct(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):ct(n+1,2)},d(e,t){return ct(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 ct(e.getHours()%12||12,t.length)},H(e,t){return ct(e.getHours(),t.length)},m(e,t){return ct(e.getMinutes(),t.length)},s(e,t){return ct(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return ct(i,t.length)}},zs={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},AC={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 Ai.y(e,t)},Y:function(e,t,n,r){const i=u4(e,r),s=i>0?i:1-i;if(t==="YY"){const l=s%100;return ct(l,2)}return t==="Yo"?n.ordinalNumber(s,{unit:"year"}):ct(s,t.length)},R:function(e,t){const n=l4(e);return ct(n,t.length)},u:function(e,t){const n=e.getFullYear();return ct(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 ct(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 ct(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 Ai.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 ct(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=vW(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):ct(i,t.length)},I:function(e,t,n){const r=mW(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):ct(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Ai.d(e,t)},D:function(e,t,n){const r=hW(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):ct(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(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return ct(s,2);case"eo":return n.ordinalNumber(s,{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(),s=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return ct(s,t.length);case"co":return n.ordinalNumber(s,{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 ct(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=zs.noon:r===0?i=zs.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=zs.evening:r>=12?i=zs.afternoon:r>=4?i=zs.morning:i=zs.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 Ai.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Ai.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):ct(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):ct(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ai.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Ai.s(e,t)},S:function(e,t){return Ai.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 bo(r);case"XXXXX":case"XXX":default:return bo(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return CC(r);case"xxxx":case"xx":return bo(r);case"xxxxx":case"xxx":default:return bo(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+TC(r,":");case"OOOO":default:return"GMT"+bo(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+TC(r,":");case"zzzz":default:return"GMT"+bo(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return ct(r,t.length)},T:function(e,t,n){return ct(+e,t.length)}};function TC(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),s=r%60;return s===0?n+String(i):n+String(i)+t+ct(s,2)}function CC(e,t){return e%60===0?(e>0?"-":"+")+ct(Math.abs(e)/60,2):bo(e,t)}function bo(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=ct(Math.trunc(r/60),2),s=ct(r%60,2);return n+i+t+s}const NC=(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"})}},c4=(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"})}},gW=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return NC(e,t);let s;switch(r){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",NC(r,t)).replace("{{time}}",c4(i,t))},yW={p:c4,P:gW},bW=/^D+$/,xW=/^Y+$/,wW=["D","DD","YY","YYYY"];function SW(e){return bW.test(e)}function OW(e){return xW.test(e)}function _W(e,t,n){const r=jW(e,t,n);if(console.warn(r),wW.includes(e))throw new RangeError(r)}function jW(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 EW=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,AW=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,TW=/^'([^]*?)'?$/,CW=/''/g,NW=/[a-zA-Z]/;function MC(e,t,n){var v,p,g,x;const r=op(),i=r.locale??dW,s=r.firstWeekContainsDate??((p=(v=r.locale)==null?void 0:v.options)==null?void 0:p.firstWeekContainsDate)??1,l=r.weekStartsOn??((x=(g=r.locale)==null?void 0:g.options)==null?void 0:x.weekStartsOn)??0,c=qr(e,n==null?void 0:n.in);if(!RY(c))throw new RangeError("Invalid time value");let f=t.match(AW).map(_=>{const S=_[0];if(S==="p"||S==="P"){const w=yW[S];return w(_,i.formatLong)}return _}).join("").match(EW).map(_=>{if(_==="''")return{isToken:!1,value:"'"};const S=_[0];if(S==="'")return{isToken:!1,value:MW(_)};if(AC[S])return{isToken:!0,value:_};if(S.match(NW))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:_}});i.localize.preprocessor&&(f=i.localize.preprocessor(c,f));const d={firstWeekContainsDate:s,weekStartsOn:l,locale:i};return f.map(_=>{if(!_.isToken)return _.value;const S=_.value;(OW(S)||SW(S))&&_W(S,t,String(e));const w=AC[S[0]];return w(c,S,i.localize,d)}).join("")}function MW(e){const t=e.match(TW);return t?t[1].replace(CW,"'"):e}var Ey,RC;function $n(){if(RC)return Ey;RC=1;var e=Array.isArray;return Ey=e,Ey}var Ay,DC;function f4(){if(DC)return Ay;DC=1;var e=typeof Hd=="object"&&Hd&&Hd.Object===Object&&Hd;return Ay=e,Ay}var Ty,PC;function ma(){if(PC)return Ty;PC=1;var e=f4(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return Ty=n,Ty}var Cy,kC;function bf(){if(kC)return Cy;kC=1;var e=ma(),t=e.Symbol;return Cy=t,Cy}var Ny,$C;function RW(){if($C)return Ny;$C=1;var e=bf(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function s(l){var c=n.call(l,i),f=l[i];try{l[i]=void 0;var d=!0}catch{}var v=r.call(l);return d&&(c?l[i]=f:delete l[i]),v}return Ny=s,Ny}var My,LC;function DW(){if(LC)return My;LC=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return My=n,My}var Ry,IC;function Xa(){if(IC)return Ry;IC=1;var e=bf(),t=RW(),n=DW(),r="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function l(c){return c==null?c===void 0?i:r:s&&s in Object(c)?t(c):n(c)}return Ry=l,Ry}var Dy,zC;function Qa(){if(zC)return Dy;zC=1;function e(t){return t!=null&&typeof t=="object"}return Dy=e,Dy}var Py,BC;function Gl(){if(BC)return Py;BC=1;var e=Xa(),t=Qa(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return Py=r,Py}var ky,qC;function vO(){if(qC)return ky;qC=1;var e=$n(),t=Gl(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(s,l){if(e(s))return!1;var c=typeof s;return c=="number"||c=="symbol"||c=="boolean"||s==null||t(s)?!0:r.test(s)||!n.test(s)||l!=null&&s in Object(l)}return ky=i,ky}var $y,UC;function Ui(){if(UC)return $y;UC=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return $y=e,$y}var Ly,HC;function gO(){if(HC)return Ly;HC=1;var e=Xa(),t=Ui(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function l(c){if(!t(c))return!1;var f=e(c);return f==r||f==i||f==n||f==s}return Ly=l,Ly}var Iy,FC;function PW(){if(FC)return Iy;FC=1;var e=ma(),t=e["__core-js_shared__"];return Iy=t,Iy}var zy,GC;function kW(){if(GC)return zy;GC=1;var e=PW(),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 zy=n,zy}var By,VC;function d4(){if(VC)return By;VC=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 By=n,By}var qy,YC;function $W(){if(YC)return qy;YC=1;var e=gO(),t=kW(),n=Ui(),r=d4(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,f=l.toString,d=c.hasOwnProperty,v=RegExp("^"+f.call(d).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(g){if(!n(g)||t(g))return!1;var x=e(g)?v:s;return x.test(r(g))}return qy=p,qy}var Uy,WC;function LW(){if(WC)return Uy;WC=1;function e(t,n){return t==null?void 0:t[n]}return Uy=e,Uy}var Hy,KC;function Ho(){if(KC)return Hy;KC=1;var e=$W(),t=LW();function n(r,i){var s=t(r,i);return e(s)?s:void 0}return Hy=n,Hy}var Fy,XC;function sp(){if(XC)return Fy;XC=1;var e=Ho(),t=e(Object,"create");return Fy=t,Fy}var Gy,QC;function IW(){if(QC)return Gy;QC=1;var e=sp();function t(){this.__data__=e?e(null):{},this.size=0}return Gy=t,Gy}var Vy,ZC;function zW(){if(ZC)return Vy;ZC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Vy=e,Vy}var Yy,JC;function BW(){if(JC)return Yy;JC=1;var e=sp(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(s){var l=this.__data__;if(e){var c=l[s];return c===t?void 0:c}return r.call(l,s)?l[s]:void 0}return Yy=i,Yy}var Wy,eN;function qW(){if(eN)return Wy;eN=1;var e=sp(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var s=this.__data__;return e?s[i]!==void 0:n.call(s,i)}return Wy=r,Wy}var Ky,tN;function UW(){if(tN)return Ky;tN=1;var e=sp(),t="__lodash_hash_undefined__";function n(r,i){var s=this.__data__;return this.size+=this.has(r)?0:1,s[r]=e&&i===void 0?t:i,this}return Ky=n,Ky}var Xy,nN;function HW(){if(nN)return Xy;nN=1;var e=IW(),t=zW(),n=BW(),r=qW(),i=UW();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,Xy=s,Xy}var Qy,rN;function FW(){if(rN)return Qy;rN=1;function e(){this.__data__=[],this.size=0}return Qy=e,Qy}var Zy,aN;function yO(){if(aN)return Zy;aN=1;function e(t,n){return t===n||t!==t&&n!==n}return Zy=e,Zy}var Jy,iN;function lp(){if(iN)return Jy;iN=1;var e=yO();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return Jy=t,Jy}var eb,oN;function GW(){if(oN)return eb;oN=1;var e=lp(),t=Array.prototype,n=t.splice;function r(i){var s=this.__data__,l=e(s,i);if(l<0)return!1;var c=s.length-1;return l==c?s.pop():n.call(s,l,1),--this.size,!0}return eb=r,eb}var tb,sN;function VW(){if(sN)return tb;sN=1;var e=lp();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return tb=t,tb}var nb,lN;function YW(){if(lN)return nb;lN=1;var e=lp();function t(n){return e(this.__data__,n)>-1}return nb=t,nb}var rb,uN;function WW(){if(uN)return rb;uN=1;var e=lp();function t(n,r){var i=this.__data__,s=e(i,n);return s<0?(++this.size,i.push([n,r])):i[s][1]=r,this}return rb=t,rb}var ab,cN;function up(){if(cN)return ab;cN=1;var e=FW(),t=GW(),n=VW(),r=YW(),i=WW();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,ab=s,ab}var ib,fN;function bO(){if(fN)return ib;fN=1;var e=Ho(),t=ma(),n=e(t,"Map");return ib=n,ib}var ob,dN;function KW(){if(dN)return ob;dN=1;var e=HW(),t=up(),n=bO();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ob=r,ob}var sb,hN;function XW(){if(hN)return sb;hN=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return sb=e,sb}var lb,mN;function cp(){if(mN)return lb;mN=1;var e=XW();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return lb=t,lb}var ub,pN;function QW(){if(pN)return ub;pN=1;var e=cp();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return ub=t,ub}var cb,vN;function ZW(){if(vN)return cb;vN=1;var e=cp();function t(n){return e(this,n).get(n)}return cb=t,cb}var fb,gN;function JW(){if(gN)return fb;gN=1;var e=cp();function t(n){return e(this,n).has(n)}return fb=t,fb}var db,yN;function eK(){if(yN)return db;yN=1;var e=cp();function t(n,r){var i=e(this,n),s=i.size;return i.set(n,r),this.size+=i.size==s?0:1,this}return db=t,db}var hb,bN;function xO(){if(bN)return hb;bN=1;var e=KW(),t=QW(),n=ZW(),r=JW(),i=eK();function s(l){var c=-1,f=l==null?0:l.length;for(this.clear();++c<f;){var d=l[c];this.set(d[0],d[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=n,s.prototype.has=r,s.prototype.set=i,hb=s,hb}var mb,xN;function h4(){if(xN)return mb;xN=1;var e=xO(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var s=function(){var l=arguments,c=i?i.apply(this,l):l[0],f=s.cache;if(f.has(c))return f.get(c);var d=r.apply(this,l);return s.cache=f.set(c,d)||f,d};return s.cache=new(n.Cache||e),s}return n.Cache=e,mb=n,mb}var pb,wN;function tK(){if(wN)return pb;wN=1;var e=h4(),t=500;function n(r){var i=e(r,function(l){return s.size===t&&s.clear(),l}),s=i.cache;return i}return pb=n,pb}var vb,SN;function nK(){if(SN)return vb;SN=1;var e=tK(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(l,c,f,d){s.push(f?d.replace(n,"$1"):c||l)}),s});return vb=r,vb}var gb,ON;function wO(){if(ON)return gb;ON=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=Array(i);++r<i;)s[r]=n(t[r],r,t);return s}return gb=e,gb}var yb,_N;function rK(){if(_N)return yb;_N=1;var e=bf(),t=wO(),n=$n(),r=Gl(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function l(c){if(typeof c=="string")return c;if(n(c))return t(c,l)+"";if(r(c))return s?s.call(c):"";var f=c+"";return f=="0"&&1/c==-1/0?"-0":f}return yb=l,yb}var bb,jN;function m4(){if(jN)return bb;jN=1;var e=rK();function t(n){return n==null?"":e(n)}return bb=t,bb}var xb,EN;function p4(){if(EN)return xb;EN=1;var e=$n(),t=vO(),n=nK(),r=m4();function i(s,l){return e(s)?s:t(s,l)?[s]:n(r(s))}return xb=i,xb}var wb,AN;function fp(){if(AN)return wb;AN=1;var e=Gl();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return wb=t,wb}var Sb,TN;function SO(){if(TN)return Sb;TN=1;var e=p4(),t=fp();function n(r,i){i=e(i,r);for(var s=0,l=i.length;r!=null&&s<l;)r=r[t(i[s++])];return s&&s==l?r:void 0}return Sb=n,Sb}var Ob,CN;function v4(){if(CN)return Ob;CN=1;var e=SO();function t(n,r,i){var s=n==null?void 0:e(n,r);return s===void 0?i:s}return Ob=t,Ob}var aK=v4();const vr=gt(aK);var _b,NN;function iK(){if(NN)return _b;NN=1;function e(t){return t==null}return _b=e,_b}var oK=iK();const qe=gt(oK);var jb,MN;function sK(){if(MN)return jb;MN=1;var e=Xa(),t=$n(),n=Qa(),r="[object String]";function i(s){return typeof s=="string"||!t(s)&&n(s)&&e(s)==r}return jb=i,jb}var lK=sK();const Do=gt(lK);var uK=gO();const $e=gt(uK);var cK=Ui();const Vl=gt(cK);var Eb={exports:{}},it={};/**
|
|
298
|
+
* @license React
|
|
299
|
+
* react-is.production.min.js
|
|
300
|
+
*
|
|
301
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
302
|
+
*
|
|
303
|
+
* This source code is licensed under the MIT license found in the
|
|
304
|
+
* LICENSE file in the root directory of this source tree.
|
|
305
|
+
*/var RN;function fK(){if(RN)return it;RN=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"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function S(w){if(typeof w=="object"&&w!==null){var j=w.$$typeof;switch(j){case e:switch(w=w.type,w){case n:case i:case r:case d:case v:return w;default:switch(w=w&&w.$$typeof,w){case c:case l:case f:case g:case p:case s:return w;default:return j}}case t:return j}}}return it.ContextConsumer=l,it.ContextProvider=s,it.Element=e,it.ForwardRef=f,it.Fragment=n,it.Lazy=g,it.Memo=p,it.Portal=t,it.Profiler=i,it.StrictMode=r,it.Suspense=d,it.SuspenseList=v,it.isAsyncMode=function(){return!1},it.isConcurrentMode=function(){return!1},it.isContextConsumer=function(w){return S(w)===l},it.isContextProvider=function(w){return S(w)===s},it.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===e},it.isForwardRef=function(w){return S(w)===f},it.isFragment=function(w){return S(w)===n},it.isLazy=function(w){return S(w)===g},it.isMemo=function(w){return S(w)===p},it.isPortal=function(w){return S(w)===t},it.isProfiler=function(w){return S(w)===i},it.isStrictMode=function(w){return S(w)===r},it.isSuspense=function(w){return S(w)===d},it.isSuspenseList=function(w){return S(w)===v},it.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===i||w===r||w===d||w===v||w===x||typeof w=="object"&&w!==null&&(w.$$typeof===g||w.$$typeof===p||w.$$typeof===s||w.$$typeof===l||w.$$typeof===f||w.$$typeof===_||w.getModuleId!==void 0)},it.typeOf=S,it}var DN;function dK(){return DN||(DN=1,Eb.exports=fK()),Eb.exports}var hK=dK(),Ab,PN;function g4(){if(PN)return Ab;PN=1;var e=Xa(),t=Qa(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return Ab=r,Ab}var Tb,kN;function mK(){if(kN)return Tb;kN=1;var e=g4();function t(n){return e(n)&&n!=+n}return Tb=t,Tb}var pK=mK();const xf=gt(pK);var vK=g4();const gK=gt(vK);var Rr=function(t){return t===0?0:t>0?1:-1},So=function(t){return Do(t)&&t.indexOf("%")===t.length-1},ye=function(t){return gK(t)&&!xf(t)},yK=function(t){return qe(t)},Kt=function(t){return ye(t)||Do(t)},bK=0,wf=function(t){var n=++bK;return"".concat(t||"").concat(n)},Po=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)&&!Do(t))return r;var s;if(So(t)){var l=t.indexOf("%");s=n*parseFloat(t.slice(0,l))/100}else s=+t;return xf(s)&&(s=r),i&&s>n&&(s=n),s},Ni=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},xK=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},Nr=function(t,n){return ye(t)&&ye(n)?function(r){return t+r*(n-t)}:function(){return n}};function Lh(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):vr(r,t))===n})}var wK=function(t,n){return ye(t)&&ye(n)?t-n:Do(t)&&Do(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Qs(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 Yw(e){"@babel/helpers - typeof";return Yw=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},Yw(e)}var SK=["viewBox","children"],OK=["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"],$N=["points","pathLength"],Cb={svg:SK,polygon:$N,polyline:$N},OO=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Ih=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(O.isValidElement(t)&&(r=t.props),!Vl(r))return null;var i={};return Object.keys(r).forEach(function(s){OO.includes(s)&&(i[s]=n||function(l){return r[s](r,l)})}),i},_K=function(t,n,r){return function(i){return t(n,r,i),null}},zh=function(t,n,r){if(!Vl(t)||Yw(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(s){var l=t[s];OO.includes(s)&&typeof l=="function"&&(i||(i={}),i[s]=_K(l,n,r))}),i},jK=["children"],EK=["children"];function LN(e,t){if(e==null)return{};var n=AK(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function AK(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 Ww(e){"@babel/helpers - typeof";return Ww=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},Ww(e)}var IN={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"},Ba=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},zN=null,Nb=null,_O=function e(t){if(t===zN&&Array.isArray(Nb))return Nb;var n=[];return O.Children.forEach(t,function(r){qe(r)||(hK.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),Nb=n,zN=t,n};function gr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return Ba(i)}):r=[Ba(t)],_O(e).forEach(function(i){var s=vr(i,"type.displayName")||vr(i,"type.name");r.indexOf(s)!==-1&&n.push(i)}),n}function Yn(e,t){var n=gr(e,t);return n&&n[0]}var BN=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)},TK=["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"],CK=function(t){return t&&t.type&&Do(t.type)&&TK.indexOf(t.type)>=0},NK=function(t){return t&&Ww(t)==="object"&&"clipDot"in t},MK=function(t,n,r,i){var s,l=(s=Cb==null?void 0:Cb[i])!==null&&s!==void 0?s:[];return n.startsWith("data-")||!$e(t)&&(i&&l.includes(n)||OK.includes(n))||r&&OO.includes(n)},Ve=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(O.isValidElement(t)&&(i=t.props),!Vl(i))return null;var s={};return Object.keys(i).forEach(function(l){var c;MK((c=i)===null||c===void 0?void 0:c[l],l,n,r)&&(s[l]=i[l])}),s},Kw=function e(t,n){if(t===n)return!0;var r=O.Children.count(t);if(r!==O.Children.count(n))return!1;if(r===0)return!0;if(r===1)return qN(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var s=t[i],l=n[i];if(Array.isArray(s)||Array.isArray(l)){if(!e(s,l))return!1}else if(!qN(s,l))return!1}return!0},qN=function(t,n){if(qe(t)&&qe(n))return!0;if(!qe(t)&&!qe(n)){var r=t.props||{},i=r.children,s=LN(r,jK),l=n.props||{},c=l.children,f=LN(l,EK);return i&&c?Qs(s,f)&&Kw(i,c):!i&&!c?Qs(s,f):!1}return!1},UN=function(t,n){var r=[],i={};return _O(t).forEach(function(s,l){if(CK(s))r.push(s);else if(s){var c=Ba(s.type),f=n[c]||{},d=f.handler,v=f.once;if(d&&(!v||!i[c])){var p=d(s,c,l);r.push(p),i[c]=!0}}}),r},RK=function(t){var n=t&&t.type;return n&&IN[n]?IN[n]:null},DK=function(t,n){return _O(n).indexOf(t)},PK=["children","width","height","viewBox","className","style","title","desc"];function Xw(){return Xw=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},Xw.apply(this,arguments)}function kK(e,t){if(e==null)return{};var n=$K(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $K(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 Qw(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,s=e.className,l=e.style,c=e.title,f=e.desc,d=kK(e,PK),v=i||{width:n,height:r,x:0,y:0},p=Ye("recharts-surface",s);return I.createElement("svg",Xw({},Ve(d,!0,"svg"),{className:p,width:n,height:r,style:l,viewBox:"".concat(v.x," ").concat(v.y," ").concat(v.width," ").concat(v.height)}),I.createElement("title",null,c),I.createElement("desc",null,f),t)}var LK=["children","className"];function Zw(){return Zw=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zw.apply(this,arguments)}function IK(e,t){if(e==null)return{};var n=zK(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zK(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 Lt=I.forwardRef(function(e,t){var n=e.children,r=e.className,i=IK(e,LK),s=Ye("recharts-layer",r);return I.createElement("g",Zw({className:s},Ve(i,!0),{ref:t}),n)}),qa=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),s=2;s<r;s++)i[s-2]=arguments[s]},Mb,HN;function BK(){if(HN)return Mb;HN=1;function e(t,n,r){var i=-1,s=t.length;n<0&&(n=-n>s?0:s+n),r=r>s?s:r,r<0&&(r+=s),s=n>r?0:r-n>>>0,n>>>=0;for(var l=Array(s);++i<s;)l[i]=t[i+n];return l}return Mb=e,Mb}var Rb,FN;function qK(){if(FN)return Rb;FN=1;var e=BK();function t(n,r,i){var s=n.length;return i=i===void 0?s:i,!r&&i>=s?n:e(n,r,i)}return Rb=t,Rb}var Db,GN;function y4(){if(GN)return Db;GN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="\\u200d",c=RegExp("["+l+e+i+s+"]");function f(d){return c.test(d)}return Db=f,Db}var Pb,VN;function UK(){if(VN)return Pb;VN=1;function e(t){return t.split("")}return Pb=e,Pb}var kb,YN;function HK(){if(YN)return kb;YN=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,s="\\ufe0e\\ufe0f",l="["+e+"]",c="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",d="(?:"+c+"|"+f+")",v="[^"+e+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",g="[\\ud800-\\udbff][\\udc00-\\udfff]",x="\\u200d",_=d+"?",S="["+s+"]?",w="(?:"+x+"(?:"+[v,p,g].join("|")+")"+S+_+")*",j=S+_+w,A="(?:"+[v+c+"?",c,p,g,l].join("|")+")",E=RegExp(f+"(?="+f+")|"+A+j,"g");function N(T){return T.match(E)||[]}return kb=N,kb}var $b,WN;function FK(){if(WN)return $b;WN=1;var e=UK(),t=y4(),n=HK();function r(i){return t(i)?n(i):e(i)}return $b=r,$b}var Lb,KN;function GK(){if(KN)return Lb;KN=1;var e=qK(),t=y4(),n=FK(),r=m4();function i(s){return function(l){l=r(l);var c=t(l)?n(l):void 0,f=c?c[0]:l.charAt(0),d=c?e(c,1).join(""):l.slice(1);return f[s]()+d}}return Lb=i,Lb}var Ib,XN;function VK(){if(XN)return Ib;XN=1;var e=GK(),t=e("toUpperCase");return Ib=t,Ib}var YK=VK();const dp=gt(YK);function wt(e){return function(){return e}}const b4=Math.cos,Bh=Math.sin,Ur=Math.sqrt,qh=Math.PI,hp=2*qh,Jw=Math.PI,e1=2*Jw,xo=1e-6,WK=e1-xo;function x4(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function KK(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return x4;const n=10**t;return function(r){this._+=r[0];for(let i=1,s=r.length;i<s;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class XK{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?x4:KK(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,s,l){this._append`C${+t},${+n},${+r},${+i},${this._x1=+s},${this._y1=+l}`}arcTo(t,n,r,i,s){if(t=+t,n=+n,r=+r,i=+i,s=+s,s<0)throw new Error(`negative radius: ${s}`);let l=this._x1,c=this._y1,f=r-t,d=i-n,v=l-t,p=c-n,g=v*v+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(g>xo)if(!(Math.abs(p*f-d*v)>xo)||!s)this._append`L${this._x1=t},${this._y1=n}`;else{let x=r-l,_=i-c,S=f*f+d*d,w=x*x+_*_,j=Math.sqrt(S),A=Math.sqrt(g),E=s*Math.tan((Jw-Math.acos((S+g-w)/(2*j*A)))/2),N=E/A,T=E/j;Math.abs(N-1)>xo&&this._append`L${t+N*v},${n+N*p}`,this._append`A${s},${s},0,0,${+(p*x>v*_)},${this._x1=t+T*f},${this._y1=n+T*d}`}}arc(t,n,r,i,s,l){if(t=+t,n=+n,r=+r,l=!!l,r<0)throw new Error(`negative radius: ${r}`);let c=r*Math.cos(i),f=r*Math.sin(i),d=t+c,v=n+f,p=1^l,g=l?i-s:s-i;this._x1===null?this._append`M${d},${v}`:(Math.abs(this._x1-d)>xo||Math.abs(this._y1-v)>xo)&&this._append`L${d},${v}`,r&&(g<0&&(g=g%e1+e1),g>WK?this._append`A${r},${r},0,1,${p},${t-c},${n-f}A${r},${r},0,1,${p},${this._x1=d},${this._y1=v}`:g>xo&&this._append`A${r},${r},0,${+(g>=Jw)},${p},${this._x1=t+r*Math.cos(s)},${this._y1=n+r*Math.sin(s)}`)}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 jO(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 XK(t)}function EO(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function w4(e){this._context=e}w4.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 mp(e){return new w4(e)}function S4(e){return e[0]}function O4(e){return e[1]}function _4(e,t){var n=wt(!0),r=null,i=mp,s=null,l=jO(c);e=typeof e=="function"?e:e===void 0?S4:wt(e),t=typeof t=="function"?t:t===void 0?O4:wt(t);function c(f){var d,v=(f=EO(f)).length,p,g=!1,x;for(r==null&&(s=i(x=l())),d=0;d<=v;++d)!(d<v&&n(p=f[d],d,f))===g&&((g=!g)?s.lineStart():s.lineEnd()),g&&s.point(+e(p,d,f),+t(p,d,f));if(x)return s=null,x+""||null}return c.x=function(f){return arguments.length?(e=typeof f=="function"?f:wt(+f),c):e},c.y=function(f){return arguments.length?(t=typeof f=="function"?f:wt(+f),c):t},c.defined=function(f){return arguments.length?(n=typeof f=="function"?f:wt(!!f),c):n},c.curve=function(f){return arguments.length?(i=f,r!=null&&(s=i(r)),c):i},c.context=function(f){return arguments.length?(f==null?r=s=null:s=i(r=f),c):r},c}function Jd(e,t,n){var r=null,i=wt(!0),s=null,l=mp,c=null,f=jO(d);e=typeof e=="function"?e:e===void 0?S4:wt(+e),t=typeof t=="function"?t:wt(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?O4:wt(+n);function d(p){var g,x,_,S=(p=EO(p)).length,w,j=!1,A,E=new Array(S),N=new Array(S);for(s==null&&(c=l(A=f())),g=0;g<=S;++g){if(!(g<S&&i(w=p[g],g,p))===j)if(j=!j)x=g,c.areaStart(),c.lineStart();else{for(c.lineEnd(),c.lineStart(),_=g-1;_>=x;--_)c.point(E[_],N[_]);c.lineEnd(),c.areaEnd()}j&&(E[g]=+e(w,g,p),N[g]=+t(w,g,p),c.point(r?+r(w,g,p):E[g],n?+n(w,g,p):N[g]))}if(A)return c=null,A+""||null}function v(){return _4().defined(i).curve(l).context(s)}return d.x=function(p){return arguments.length?(e=typeof p=="function"?p:wt(+p),r=null,d):e},d.x0=function(p){return arguments.length?(e=typeof p=="function"?p:wt(+p),d):e},d.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:wt(+p),d):r},d.y=function(p){return arguments.length?(t=typeof p=="function"?p:wt(+p),n=null,d):t},d.y0=function(p){return arguments.length?(t=typeof p=="function"?p:wt(+p),d):t},d.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:wt(+p),d):n},d.lineX0=d.lineY0=function(){return v().x(e).y(t)},d.lineY1=function(){return v().x(e).y(n)},d.lineX1=function(){return v().x(r).y(t)},d.defined=function(p){return arguments.length?(i=typeof p=="function"?p:wt(!!p),d):i},d.curve=function(p){return arguments.length?(l=p,s!=null&&(c=l(s)),d):l},d.context=function(p){return arguments.length?(p==null?s=c=null:c=l(s=p),d):s},d}class j4{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 QK(e){return new j4(e,!0)}function ZK(e){return new j4(e,!1)}const AO={draw(e,t){const n=Ur(t/qh);e.moveTo(n,0),e.arc(0,0,n,0,hp)}},JK={draw(e,t){const n=Ur(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},E4=Ur(1/3),eX=E4*2,tX={draw(e,t){const n=Ur(t/eX),r=n*E4;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},nX={draw(e,t){const n=Ur(t),r=-n/2;e.rect(r,r,n,n)}},rX=.8908130915292852,A4=Bh(qh/10)/Bh(7*qh/10),aX=Bh(hp/10)*A4,iX=-b4(hp/10)*A4,oX={draw(e,t){const n=Ur(t*rX),r=aX*n,i=iX*n;e.moveTo(0,-n),e.lineTo(r,i);for(let s=1;s<5;++s){const l=hp*s/5,c=b4(l),f=Bh(l);e.lineTo(f*n,-c*n),e.lineTo(c*r-f*i,f*r+c*i)}e.closePath()}},zb=Ur(3),sX={draw(e,t){const n=-Ur(t/(zb*3));e.moveTo(0,n*2),e.lineTo(-zb*n,-n),e.lineTo(zb*n,-n),e.closePath()}},cr=-.5,fr=Ur(3)/2,t1=1/Ur(12),lX=(t1/2+1)*3,uX={draw(e,t){const n=Ur(t/lX),r=n/2,i=n*t1,s=r,l=n*t1+n,c=-s,f=l;e.moveTo(r,i),e.lineTo(s,l),e.lineTo(c,f),e.lineTo(cr*r-fr*i,fr*r+cr*i),e.lineTo(cr*s-fr*l,fr*s+cr*l),e.lineTo(cr*c-fr*f,fr*c+cr*f),e.lineTo(cr*r+fr*i,cr*i-fr*r),e.lineTo(cr*s+fr*l,cr*l-fr*s),e.lineTo(cr*c+fr*f,cr*f-fr*c),e.closePath()}};function cX(e,t){let n=null,r=jO(i);e=typeof e=="function"?e:wt(e||AO),t=typeof t=="function"?t:wt(t===void 0?64:+t);function i(){let s;if(n||(n=s=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),s)return n=null,s+""||null}return i.type=function(s){return arguments.length?(e=typeof s=="function"?s:wt(s),i):e},i.size=function(s){return arguments.length?(t=typeof s=="function"?s:wt(+s),i):t},i.context=function(s){return arguments.length?(n=s??null,i):n},i}function Uh(){}function Hh(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 T4(e){this._context=e}T4.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:Hh(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:Hh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fX(e){return new T4(e)}function C4(e){this._context=e}C4.prototype={areaStart:Uh,areaEnd:Uh,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:Hh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dX(e){return new C4(e)}function N4(e){this._context=e}N4.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:Hh(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function hX(e){return new N4(e)}function M4(e){this._context=e}M4.prototype={areaStart:Uh,areaEnd:Uh,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 M4(e)}function QN(e){return e<0?-1:1}function ZN(e,t,n){var r=e._x1-e._x0,i=t-e._x1,s=(e._y1-e._y0)/(r||i<0&&-0),l=(n-e._y1)/(i||r<0&&-0),c=(s*i+l*r)/(r+i);return(QN(s)+QN(l))*Math.min(Math.abs(s),Math.abs(l),.5*Math.abs(c))||0}function JN(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Bb(e,t,n){var r=e._x0,i=e._y0,s=e._x1,l=e._y1,c=(s-r)/3;e._context.bezierCurveTo(r+c,i+c*t,s-c,l-c*n,s,l)}function Fh(e){this._context=e}Fh.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:Bb(this,this._t0,JN(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,Bb(this,JN(this,n=ZN(this,e,t)),n);break;default:Bb(this,this._t0,n=ZN(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function R4(e){this._context=new D4(e)}(R4.prototype=Object.create(Fh.prototype)).point=function(e,t){Fh.prototype.point.call(this,t,e)};function D4(e){this._context=e}D4.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,s){this._context.bezierCurveTo(t,e,r,n,s,i)}};function pX(e){return new Fh(e)}function vX(e){return new R4(e)}function P4(e){this._context=e}P4.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=eM(e),i=eM(t),s=0,l=1;l<n;++s,++l)this._context.bezierCurveTo(r[0][s],i[0][s],r[1][s],i[1][s],e[l],t[l]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function eM(e){var t,n=e.length-1,r,i=new Array(n),s=new Array(n),l=new Array(n);for(i[0]=0,s[0]=2,l[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,s[t]=4,l[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,s[n-1]=7,l[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/s[t-1],s[t]-=r,l[t]-=r*l[t-1];for(i[n-1]=l[n-1]/s[n-1],t=n-2;t>=0;--t)i[t]=(l[t]-i[t+1])/s[t];for(s[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)s[t]=2*e[t+1]-i[t+1];return[i,s]}function gX(e){return new P4(e)}function pp(e,t){this._context=e,this._t=t}pp.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 yX(e){return new pp(e,.5)}function bX(e){return new pp(e,0)}function xX(e){return new pp(e,1)}function cl(e,t){if((l=e.length)>1)for(var n=1,r,i,s=e[t[0]],l,c=s.length;n<l;++n)for(i=s,s=e[t[n]],r=0;r<c;++r)s[r][1]+=s[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function n1(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function wX(e,t){return e[t]}function SX(e){const t=[];return t.key=e,t}function OX(){var e=wt([]),t=n1,n=cl,r=wX;function i(s){var l=Array.from(e.apply(this,arguments),SX),c,f=l.length,d=-1,v;for(const p of s)for(c=0,++d;c<f;++c)(l[c][d]=[0,+r(p,l[c].key,d,s)]).data=p;for(c=0,v=EO(t(l));c<f;++c)l[v[c]].index=c;return n(l,v),l}return i.keys=function(s){return arguments.length?(e=typeof s=="function"?s:wt(Array.from(s)),i):e},i.value=function(s){return arguments.length?(r=typeof s=="function"?s:wt(+s),i):r},i.order=function(s){return arguments.length?(t=s==null?n1:typeof s=="function"?s:wt(Array.from(s)),i):t},i.offset=function(s){return arguments.length?(n=s??cl,i):n},i}function _X(e,t){if((r=e.length)>0){for(var n,r,i=0,s=e[0].length,l;i<s;++i){for(l=n=0;n<r;++n)l+=e[n][i][1]||0;if(l)for(n=0;n<r;++n)e[n][i][1]/=l}cl(e,t)}}function jX(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,s=r.length;n<s;++n){for(var l=0,c=0;l<i;++l)c+=e[l][n][1]||0;r[n][1]+=r[n][0]=-c/2}cl(e,t)}}function EX(e,t){if(!(!((l=e.length)>0)||!((s=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,s,l;r<s;++r){for(var c=0,f=0,d=0;c<l;++c){for(var v=e[t[c]],p=v[r][1]||0,g=v[r-1][1]||0,x=(p-g)/2,_=0;_<c;++_){var S=e[t[_]],w=S[r][1]||0,j=S[r-1][1]||0;x+=w-j}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,cl(e,t)}}function _c(e){"@babel/helpers - typeof";return _c=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_c(e)}var AX=["type","size","sizeType"];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 tM(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 nM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tM(Object(n),!0).forEach(function(r){TX(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TX(e,t,n){return t=CX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CX(e){var t=NX(e,"string");return _c(t)=="symbol"?t:t+""}function NX(e,t){if(_c(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_c(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function MX(e,t){if(e==null)return{};var n=RX(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function RX(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 k4={symbolCircle:AO,symbolCross:JK,symbolDiamond:tX,symbolSquare:nX,symbolStar:oX,symbolTriangle:sX,symbolWye:uX},DX=Math.PI/180,PX=function(t){var n="symbol".concat(dp(t));return k4[n]||AO},kX=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}},$X=function(t,n){k4["symbol".concat(dp(t))]=n},TO=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,s=i===void 0?64:i,l=t.sizeType,c=l===void 0?"area":l,f=MX(t,AX),d=nM(nM({},f),{},{type:r,size:s,sizeType:c}),v=function(){var w=PX(r),j=cX().type(w).size(kX(s,c,r));return j()},p=d.className,g=d.cx,x=d.cy,_=Ve(d,!0);return g===+g&&x===+x&&s===+s?I.createElement("path",r1({},_,{className:Ye("recharts-symbols",p),transform:"translate(".concat(g,", ").concat(x,")"),d:v()})):null};TO.registerSymbol=$X;function fl(e){"@babel/helpers - typeof";return fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fl(e)}function 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 rM(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 LX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rM(Object(n),!0).forEach(function(r){jc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function IX(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zX(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,L4(r.key),r)}}function BX(e,t,n){return t&&zX(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qX(e,t,n){return t=Gh(t),UX(e,$4()?Reflect.construct(t,n||[],Gh(e).constructor):t.apply(e,n))}function UX(e,t){if(t&&(fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HX(e)}function HX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($4=function(){return!!e})()}function Gh(e){return Gh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gh(e)}function FX(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i1(e,t)}function i1(e,t){return i1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},i1(e,t)}function jc(e,t,n){return t=L4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L4(e){var t=GX(e,"string");return fl(t)=="symbol"?t:t+""}function GX(e,t){if(fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var dr=32,CO=(function(e){function t(){return IX(this,t),qX(this,t,arguments)}return FX(t,e),BX(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,s=dr/2,l=dr/6,c=dr/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:s,x2:dr,y2:s,className:"recharts-legend-icon"});if(r.type==="line")return I.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(s,"h").concat(c,`
|
|
306
|
+
A`).concat(l,",").concat(l,",0,1,1,").concat(2*c,",").concat(s,`
|
|
307
|
+
H`).concat(dr,"M").concat(2*c,",").concat(s,`
|
|
308
|
+
A`).concat(l,",").concat(l,",0,1,1,").concat(c,",").concat(s),className:"recharts-legend-icon"});if(r.type==="rect")return I.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(dr/8,"h").concat(dr,"v").concat(dr*3/4,"h").concat(-dr,"z"),className:"recharts-legend-icon"});if(I.isValidElement(r.legendIcon)){var d=LX({},r);return delete d.legendIcon,I.cloneElement(r.legendIcon,d)}return I.createElement(TO,{fill:f,cx:s,cy:s,size:dr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,s=i.payload,l=i.iconSize,c=i.layout,f=i.formatter,d=i.inactiveColor,v={x:0,y:0,width:dr,height:dr},p={display:c==="horizontal"?"inline-block":"block",marginRight:10},g={display:"inline-block",verticalAlign:"middle",marginRight:4};return s.map(function(x,_){var S=x.formatter||f,w=Ye(jc(jc({"recharts-legend-item":!0},"legend-item-".concat(_),!0),"inactive",x.inactive));if(x.type==="none")return null;var j=$e(x.value)?null:x.value;qa(!$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 A=x.inactive?d:x.color;return I.createElement("li",a1({className:w,style:p,key:"legend-item-".concat(_)},zh(r.props,x,_)),I.createElement(Qw,{width:l,height:l,viewBox:v,style:g},r.renderIcon(x)),I.createElement("span",{className:"recharts-legend-item-text",style:{color:A}},S?S(j,x,_):j))})}},{key:"render",value:function(){var r=this.props,i=r.payload,s=r.layout,l=r.align;if(!i||!i.length)return null;var c={padding:0,margin:0,textAlign:s==="horizontal"?l:"left"};return I.createElement("ul",{className:"recharts-default-legend",style:c},this.renderItems())}}])})(O.PureComponent);jc(CO,"displayName","Legend");jc(CO,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var qb,aM;function VX(){if(aM)return qb;aM=1;var e=up();function t(){this.__data__=new e,this.size=0}return qb=t,qb}var Ub,iM;function YX(){if(iM)return Ub;iM=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return Ub=e,Ub}var Hb,oM;function WX(){if(oM)return Hb;oM=1;function e(t){return this.__data__.get(t)}return Hb=e,Hb}var Fb,sM;function KX(){if(sM)return Fb;sM=1;function e(t){return this.__data__.has(t)}return Fb=e,Fb}var Gb,lM;function XX(){if(lM)return Gb;lM=1;var e=up(),t=bO(),n=xO(),r=200;function i(s,l){var c=this.__data__;if(c instanceof e){var f=c.__data__;if(!t||f.length<r-1)return f.push([s,l]),this.size=++c.size,this;c=this.__data__=new n(f)}return c.set(s,l),this.size=c.size,this}return Gb=i,Gb}var Vb,uM;function I4(){if(uM)return Vb;uM=1;var e=up(),t=VX(),n=YX(),r=WX(),i=KX(),s=XX();function l(c){var f=this.__data__=new e(c);this.size=f.size}return l.prototype.clear=t,l.prototype.delete=n,l.prototype.get=r,l.prototype.has=i,l.prototype.set=s,Vb=l,Vb}var Yb,cM;function QX(){if(cM)return Yb;cM=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return Yb=t,Yb}var Wb,fM;function ZX(){if(fM)return Wb;fM=1;function e(t){return this.__data__.has(t)}return Wb=e,Wb}var Kb,dM;function z4(){if(dM)return Kb;dM=1;var e=xO(),t=QX(),n=ZX();function r(i){var s=-1,l=i==null?0:i.length;for(this.__data__=new e;++s<l;)this.add(i[s])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,Kb=r,Kb}var Xb,hM;function B4(){if(hM)return Xb;hM=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 Xb=e,Xb}var Qb,mM;function q4(){if(mM)return Qb;mM=1;function e(t,n){return t.has(n)}return Qb=e,Qb}var Zb,pM;function U4(){if(pM)return Zb;pM=1;var e=z4(),t=B4(),n=q4(),r=1,i=2;function s(l,c,f,d,v,p){var g=f&r,x=l.length,_=c.length;if(x!=_&&!(g&&_>x))return!1;var S=p.get(l),w=p.get(c);if(S&&w)return S==c&&w==l;var j=-1,A=!0,E=f&i?new e:void 0;for(p.set(l,c),p.set(c,l);++j<x;){var N=l[j],T=c[j];if(d)var M=g?d(T,N,j,c,l,p):d(N,T,j,l,c,p);if(M!==void 0){if(M)continue;A=!1;break}if(E){if(!t(c,function(R,D){if(!n(E,D)&&(N===R||v(N,R,f,d,p)))return E.push(D)})){A=!1;break}}else if(!(N===T||v(N,T,f,d,p))){A=!1;break}}return p.delete(l),p.delete(c),A}return Zb=s,Zb}var Jb,vM;function JX(){if(vM)return Jb;vM=1;var e=ma(),t=e.Uint8Array;return Jb=t,Jb}var e0,gM;function eQ(){if(gM)return e0;gM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,s){r[++n]=[s,i]}),r}return e0=e,e0}var t0,yM;function NO(){if(yM)return t0;yM=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return t0=e,t0}var n0,bM;function tQ(){if(bM)return n0;bM=1;var e=bf(),t=JX(),n=yO(),r=U4(),i=eQ(),s=NO(),l=1,c=2,f="[object Boolean]",d="[object Date]",v="[object Error]",p="[object Map]",g="[object Number]",x="[object RegExp]",_="[object Set]",S="[object String]",w="[object Symbol]",j="[object ArrayBuffer]",A="[object DataView]",E=e?e.prototype:void 0,N=E?E.valueOf:void 0;function T(M,R,D,L,Y,z,H){switch(D){case A:if(M.byteLength!=R.byteLength||M.byteOffset!=R.byteOffset)return!1;M=M.buffer,R=R.buffer;case j:return!(M.byteLength!=R.byteLength||!z(new t(M),new t(R)));case f:case d:case g:return n(+M,+R);case v:return M.name==R.name&&M.message==R.message;case x:case S:return M==R+"";case p:var V=i;case _:var Q=L&l;if(V||(V=s),M.size!=R.size&&!Q)return!1;var K=H.get(M);if(K)return K==R;L|=c,H.set(M,R);var k=r(V(M),V(R),L,Y,z,H);return H.delete(M),k;case w:if(N)return N.call(M)==N.call(R)}return!1}return n0=T,n0}var r0,xM;function H4(){if(xM)return r0;xM=1;function e(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}return r0=e,r0}var a0,wM;function nQ(){if(wM)return a0;wM=1;var e=H4(),t=$n();function n(r,i,s){var l=i(r);return t(r)?l:e(l,s(r))}return a0=n,a0}var i0,SM;function rQ(){if(SM)return i0;SM=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,s=0,l=[];++r<i;){var c=t[r];n(c,r,t)&&(l[s++]=c)}return l}return i0=e,i0}var o0,OM;function aQ(){if(OM)return o0;OM=1;function e(){return[]}return o0=e,o0}var s0,_M;function iQ(){if(_M)return s0;_M=1;var e=rQ(),t=aQ(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(l){return l==null?[]:(l=Object(l),e(i(l),function(c){return r.call(l,c)}))}:t;return s0=s,s0}var l0,jM;function oQ(){if(jM)return l0;jM=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return l0=e,l0}var u0,EM;function sQ(){if(EM)return u0;EM=1;var e=Xa(),t=Qa(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return u0=r,u0}var c0,AM;function MO(){if(AM)return c0;AM=1;var e=sQ(),t=Qa(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,s=e((function(){return arguments})())?e:function(l){return t(l)&&r.call(l,"callee")&&!i.call(l,"callee")};return c0=s,c0}var sc={exports:{}},f0,TM;function lQ(){if(TM)return f0;TM=1;function e(){return!1}return f0=e,f0}sc.exports;var CM;function F4(){return CM||(CM=1,(function(e,t){var n=ma(),r=lQ(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,l=s&&s.exports===i,c=l?n.Buffer:void 0,f=c?c.isBuffer:void 0,d=f||r;e.exports=d})(sc,sc.exports)),sc.exports}var d0,NM;function RO(){if(NM)return d0;NM=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var s=typeof r;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return d0=n,d0}var h0,MM;function DO(){if(MM)return h0;MM=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return h0=t,h0}var m0,RM;function uQ(){if(RM)return m0;RM=1;var e=Xa(),t=DO(),n=Qa(),r="[object Arguments]",i="[object Array]",s="[object Boolean]",l="[object Date]",c="[object Error]",f="[object Function]",d="[object Map]",v="[object Number]",p="[object Object]",g="[object RegExp]",x="[object Set]",_="[object String]",S="[object WeakMap]",w="[object ArrayBuffer]",j="[object DataView]",A="[object Float32Array]",E="[object Float64Array]",N="[object Int8Array]",T="[object Int16Array]",M="[object Int32Array]",R="[object Uint8Array]",D="[object Uint8ClampedArray]",L="[object Uint16Array]",Y="[object Uint32Array]",z={};z[A]=z[E]=z[N]=z[T]=z[M]=z[R]=z[D]=z[L]=z[Y]=!0,z[r]=z[i]=z[w]=z[s]=z[j]=z[l]=z[c]=z[f]=z[d]=z[v]=z[p]=z[g]=z[x]=z[_]=z[S]=!1;function H(V){return n(V)&&t(V.length)&&!!z[e(V)]}return m0=H,m0}var p0,DM;function G4(){if(DM)return p0;DM=1;function e(t){return function(n){return t(n)}}return p0=e,p0}var lc={exports:{}};lc.exports;var PM;function cQ(){return PM||(PM=1,(function(e,t){var n=f4(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===r,l=s&&n.process,c=(function(){try{var f=i&&i.require&&i.require("util").types;return f||l&&l.binding&&l.binding("util")}catch{}})();e.exports=c})(lc,lc.exports)),lc.exports}var v0,kM;function V4(){if(kM)return v0;kM=1;var e=uQ(),t=G4(),n=cQ(),r=n&&n.isTypedArray,i=r?t(r):e;return v0=i,v0}var g0,$M;function fQ(){if($M)return g0;$M=1;var e=oQ(),t=MO(),n=$n(),r=F4(),i=RO(),s=V4(),l=Object.prototype,c=l.hasOwnProperty;function f(d,v){var p=n(d),g=!p&&t(d),x=!p&&!g&&r(d),_=!p&&!g&&!x&&s(d),S=p||g||x||_,w=S?e(d.length,String):[],j=w.length;for(var A in d)(v||c.call(d,A))&&!(S&&(A=="length"||x&&(A=="offset"||A=="parent")||_&&(A=="buffer"||A=="byteLength"||A=="byteOffset")||i(A,j)))&&w.push(A);return w}return g0=f,g0}var y0,LM;function dQ(){if(LM)return y0;LM=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return y0=t,y0}var b0,IM;function Y4(){if(IM)return b0;IM=1;function e(t,n){return function(r){return t(n(r))}}return b0=e,b0}var x0,zM;function hQ(){if(zM)return x0;zM=1;var e=Y4(),t=e(Object.keys,Object);return x0=t,x0}var w0,BM;function mQ(){if(BM)return w0;BM=1;var e=dQ(),t=hQ(),n=Object.prototype,r=n.hasOwnProperty;function i(s){if(!e(s))return t(s);var l=[];for(var c in Object(s))r.call(s,c)&&c!="constructor"&&l.push(c);return l}return w0=i,w0}var S0,qM;function Sf(){if(qM)return S0;qM=1;var e=gO(),t=DO();function n(r){return r!=null&&t(r.length)&&!e(r)}return S0=n,S0}var O0,UM;function vp(){if(UM)return O0;UM=1;var e=fQ(),t=mQ(),n=Sf();function r(i){return n(i)?e(i):t(i)}return O0=r,O0}var _0,HM;function pQ(){if(HM)return _0;HM=1;var e=nQ(),t=iQ(),n=vp();function r(i){return e(i,n,t)}return _0=r,_0}var j0,FM;function vQ(){if(FM)return j0;FM=1;var e=pQ(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(s,l,c,f,d,v){var p=c&t,g=e(s),x=g.length,_=e(l),S=_.length;if(x!=S&&!p)return!1;for(var w=x;w--;){var j=g[w];if(!(p?j in l:r.call(l,j)))return!1}var A=v.get(s),E=v.get(l);if(A&&E)return A==l&&E==s;var N=!0;v.set(s,l),v.set(l,s);for(var T=p;++w<x;){j=g[w];var M=s[j],R=l[j];if(f)var D=p?f(R,M,j,l,s,v):f(M,R,j,s,l,v);if(!(D===void 0?M===R||d(M,R,c,f,v):D)){N=!1;break}T||(T=j=="constructor")}if(N&&!T){var L=s.constructor,Y=l.constructor;L!=Y&&"constructor"in s&&"constructor"in l&&!(typeof L=="function"&&L instanceof L&&typeof Y=="function"&&Y instanceof Y)&&(N=!1)}return v.delete(s),v.delete(l),N}return j0=i,j0}var E0,GM;function gQ(){if(GM)return E0;GM=1;var e=Ho(),t=ma(),n=e(t,"DataView");return E0=n,E0}var A0,VM;function yQ(){if(VM)return A0;VM=1;var e=Ho(),t=ma(),n=e(t,"Promise");return A0=n,A0}var T0,YM;function W4(){if(YM)return T0;YM=1;var e=Ho(),t=ma(),n=e(t,"Set");return T0=n,T0}var C0,WM;function bQ(){if(WM)return C0;WM=1;var e=Ho(),t=ma(),n=e(t,"WeakMap");return C0=n,C0}var N0,KM;function xQ(){if(KM)return N0;KM=1;var e=gQ(),t=bO(),n=yQ(),r=W4(),i=bQ(),s=Xa(),l=d4(),c="[object Map]",f="[object Object]",d="[object Promise]",v="[object Set]",p="[object WeakMap]",g="[object DataView]",x=l(e),_=l(t),S=l(n),w=l(r),j=l(i),A=s;return(e&&A(new e(new ArrayBuffer(1)))!=g||t&&A(new t)!=c||n&&A(n.resolve())!=d||r&&A(new r)!=v||i&&A(new i)!=p)&&(A=function(E){var N=s(E),T=N==f?E.constructor:void 0,M=T?l(T):"";if(M)switch(M){case x:return g;case _:return c;case S:return d;case w:return v;case j:return p}return N}),N0=A,N0}var M0,XM;function wQ(){if(XM)return M0;XM=1;var e=I4(),t=U4(),n=tQ(),r=vQ(),i=xQ(),s=$n(),l=F4(),c=V4(),f=1,d="[object Arguments]",v="[object Array]",p="[object Object]",g=Object.prototype,x=g.hasOwnProperty;function _(S,w,j,A,E,N){var T=s(S),M=s(w),R=T?v:i(S),D=M?v:i(w);R=R==d?p:R,D=D==d?p:D;var L=R==p,Y=D==p,z=R==D;if(z&&l(S)){if(!l(w))return!1;T=!0,L=!1}if(z&&!L)return N||(N=new e),T||c(S)?t(S,w,j,A,E,N):n(S,w,R,j,A,E,N);if(!(j&f)){var H=L&&x.call(S,"__wrapped__"),V=Y&&x.call(w,"__wrapped__");if(H||V){var Q=H?S.value():S,K=V?w.value():w;return N||(N=new e),E(Q,K,j,A,N)}}return z?(N||(N=new e),r(S,w,j,A,E,N)):!1}return M0=_,M0}var R0,QM;function PO(){if(QM)return R0;QM=1;var e=wQ(),t=Qa();function n(r,i,s,l,c){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,s,l,n,c)}return R0=n,R0}var D0,ZM;function SQ(){if(ZM)return D0;ZM=1;var e=I4(),t=PO(),n=1,r=2;function i(s,l,c,f){var d=c.length,v=d,p=!f;if(s==null)return!v;for(s=Object(s);d--;){var g=c[d];if(p&&g[2]?g[1]!==s[g[0]]:!(g[0]in s))return!1}for(;++d<v;){g=c[d];var x=g[0],_=s[x],S=g[1];if(p&&g[2]){if(_===void 0&&!(x in s))return!1}else{var w=new e;if(f)var j=f(_,S,x,s,l,w);if(!(j===void 0?t(S,_,n|r,f,w):j))return!1}}return!0}return D0=i,D0}var P0,JM;function K4(){if(JM)return P0;JM=1;var e=Ui();function t(n){return n===n&&!e(n)}return P0=t,P0}var k0,e2;function OQ(){if(e2)return k0;e2=1;var e=K4(),t=vp();function n(r){for(var i=t(r),s=i.length;s--;){var l=i[s],c=r[l];i[s]=[l,c,e(c)]}return i}return k0=n,k0}var $0,t2;function X4(){if(t2)return $0;t2=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return $0=e,$0}var L0,n2;function _Q(){if(n2)return L0;n2=1;var e=SQ(),t=OQ(),n=X4();function r(i){var s=t(i);return s.length==1&&s[0][2]?n(s[0][0],s[0][1]):function(l){return l===i||e(l,i,s)}}return L0=r,L0}var I0,r2;function jQ(){if(r2)return I0;r2=1;function e(t,n){return t!=null&&n in Object(t)}return I0=e,I0}var z0,a2;function EQ(){if(a2)return z0;a2=1;var e=p4(),t=MO(),n=$n(),r=RO(),i=DO(),s=fp();function l(c,f,d){f=e(f,c);for(var v=-1,p=f.length,g=!1;++v<p;){var x=s(f[v]);if(!(g=c!=null&&d(c,x)))break;c=c[x]}return g||++v!=p?g:(p=c==null?0:c.length,!!p&&i(p)&&r(x,p)&&(n(c)||t(c)))}return z0=l,z0}var B0,i2;function AQ(){if(i2)return B0;i2=1;var e=jQ(),t=EQ();function n(r,i){return r!=null&&t(r,i,e)}return B0=n,B0}var q0,o2;function TQ(){if(o2)return q0;o2=1;var e=PO(),t=v4(),n=AQ(),r=vO(),i=K4(),s=X4(),l=fp(),c=1,f=2;function d(v,p){return r(v)&&i(p)?s(l(v),p):function(g){var x=t(g,v);return x===void 0&&x===p?n(g,v):e(p,x,c|f)}}return q0=d,q0}var U0,s2;function Yl(){if(s2)return U0;s2=1;function e(t){return t}return U0=e,U0}var H0,l2;function CQ(){if(l2)return H0;l2=1;function e(t){return function(n){return n==null?void 0:n[t]}}return H0=e,H0}var F0,u2;function NQ(){if(u2)return F0;u2=1;var e=SO();function t(n){return function(r){return e(r,n)}}return F0=t,F0}var G0,c2;function MQ(){if(c2)return G0;c2=1;var e=CQ(),t=NQ(),n=vO(),r=fp();function i(s){return n(s)?e(r(s)):t(s)}return G0=i,G0}var V0,f2;function Hi(){if(f2)return V0;f2=1;var e=_Q(),t=TQ(),n=Yl(),r=$n(),i=MQ();function s(l){return typeof l=="function"?l:l==null?n:typeof l=="object"?r(l)?t(l[0],l[1]):e(l):i(l)}return V0=s,V0}var Y0,d2;function Q4(){if(d2)return Y0;d2=1;function e(t,n,r,i){for(var s=t.length,l=r+(i?1:-1);i?l--:++l<s;)if(n(t[l],l,t))return l;return-1}return Y0=e,Y0}var W0,h2;function RQ(){if(h2)return W0;h2=1;function e(t){return t!==t}return W0=e,W0}var K0,m2;function DQ(){if(m2)return K0;m2=1;function e(t,n,r){for(var i=r-1,s=t.length;++i<s;)if(t[i]===n)return i;return-1}return K0=e,K0}var X0,p2;function PQ(){if(p2)return X0;p2=1;var e=Q4(),t=RQ(),n=DQ();function r(i,s,l){return s===s?n(i,s,l):e(i,t,l)}return X0=r,X0}var Q0,v2;function kQ(){if(v2)return Q0;v2=1;var e=PQ();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return Q0=t,Q0}var Z0,g2;function $Q(){if(g2)return Z0;g2=1;function e(t,n,r){for(var i=-1,s=t==null?0:t.length;++i<s;)if(r(n,t[i]))return!0;return!1}return Z0=e,Z0}var J0,y2;function LQ(){if(y2)return J0;y2=1;function e(){}return J0=e,J0}var ex,b2;function IQ(){if(b2)return ex;b2=1;var e=W4(),t=LQ(),n=NO(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(s){return new e(s)}:t;return ex=i,ex}var tx,x2;function zQ(){if(x2)return tx;x2=1;var e=z4(),t=kQ(),n=$Q(),r=q4(),i=IQ(),s=NO(),l=200;function c(f,d,v){var p=-1,g=t,x=f.length,_=!0,S=[],w=S;if(v)_=!1,g=n;else if(x>=l){var j=d?null:i(f);if(j)return s(j);_=!1,g=r,w=new e}else w=d?[]:S;e:for(;++p<x;){var A=f[p],E=d?d(A):A;if(A=v||A!==0?A:0,_&&E===E){for(var N=w.length;N--;)if(w[N]===E)continue e;d&&w.push(E),S.push(A)}else g(w,E,v)||(w!==S&&w.push(E),S.push(A))}return S}return tx=c,tx}var nx,w2;function BQ(){if(w2)return nx;w2=1;var e=Hi(),t=zQ();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return nx=n,nx}var qQ=BQ();const S2=gt(qQ);function Z4(e,t,n){return t===!0?S2(e,n):$e(t)?S2(e,t):e}function dl(e){"@babel/helpers - typeof";return dl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dl(e)}var UQ=["ref"];function O2(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 ka(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O2(Object(n),!0).forEach(function(r){gp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HQ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _2(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,e3(r.key),r)}}function FQ(e,t,n){return t&&_2(e.prototype,t),n&&_2(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function GQ(e,t,n){return t=Vh(t),VQ(e,J4()?Reflect.construct(t,n||[],Vh(e).constructor):t.apply(e,n))}function VQ(e,t){if(t&&(dl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YQ(e)}function YQ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J4=function(){return!!e})()}function Vh(e){return Vh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vh(e)}function WQ(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 gp(e,t,n){return t=e3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e3(e){var t=KQ(e,"string");return dl(t)=="symbol"?t:t+""}function KQ(e,t){if(dl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function XQ(e,t){if(e==null)return{};var n=QQ(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QQ(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 ZQ(e){return e.value}function JQ(e,t){if(I.isValidElement(e))return I.cloneElement(e,t);if(typeof e=="function")return I.createElement(e,t);t.ref;var n=XQ(t,UQ);return I.createElement(CO,n)}var j2=1,Eo=(function(e){function t(){var n;HQ(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=GQ(this,t,[].concat(i)),gp(n,"lastBoundingBox",{width:-1,height:-1}),n}return WQ(t,e),FQ(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)>j2||Math.abs(i.height-this.lastBoundingBox.height)>j2)&&(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?ka({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,s=i.layout,l=i.align,c=i.verticalAlign,f=i.margin,d=i.chartWidth,v=i.chartHeight,p,g;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(l==="center"&&s==="vertical"){var x=this.getBBoxSnapshot();p={left:((d||0)-x.width)/2}}else p=l==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(c==="middle"){var _=this.getBBoxSnapshot();g={top:((v||0)-_.height)/2}}else g=c==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return ka(ka({},p),g)}},{key:"render",value:function(){var r=this,i=this.props,s=i.content,l=i.width,c=i.height,f=i.wrapperStyle,d=i.payloadUniqBy,v=i.payload,p=ka(ka({position:"absolute",width:l||"auto",height:c||"auto"},this.getDefaultPosition(f)),f);return I.createElement("div",{className:"recharts-legend-wrapper",style:p,ref:function(x){r.wrapperNode=x}},JQ(s,ka(ka({},this.props),{},{payload:Z4(v,d,ZQ)})))}}],[{key:"getWithHeight",value:function(r,i){var s=ka(ka({},this.defaultProps),r.props),l=s.layout;return l==="vertical"&&ye(r.props.height)?{height:r.props.height}:l==="horizontal"?{width:r.props.width||i}:null}}])})(O.PureComponent);gp(Eo,"displayName","Legend");gp(Eo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var rx,E2;function eZ(){if(E2)return rx;E2=1;var e=bf(),t=MO(),n=$n(),r=e?e.isConcatSpreadable:void 0;function i(s){return n(s)||t(s)||!!(r&&s&&s[r])}return rx=i,rx}var ax,A2;function t3(){if(A2)return ax;A2=1;var e=H4(),t=eZ();function n(r,i,s,l,c){var f=-1,d=r.length;for(s||(s=t),c||(c=[]);++f<d;){var v=r[f];i>0&&s(v)?i>1?n(v,i-1,s,l,c):e(c,v):l||(c[c.length]=v)}return c}return ax=n,ax}var ix,T2;function tZ(){if(T2)return ix;T2=1;function e(t){return function(n,r,i){for(var s=-1,l=Object(n),c=i(n),f=c.length;f--;){var d=c[t?f:++s];if(r(l[d],d,l)===!1)break}return n}}return ix=e,ix}var ox,C2;function nZ(){if(C2)return ox;C2=1;var e=tZ(),t=e();return ox=t,ox}var sx,N2;function n3(){if(N2)return sx;N2=1;var e=nZ(),t=vp();function n(r,i){return r&&e(r,i,t)}return sx=n,sx}var lx,M2;function rZ(){if(M2)return lx;M2=1;var e=Sf();function t(n,r){return function(i,s){if(i==null)return i;if(!e(i))return n(i,s);for(var l=i.length,c=r?l:-1,f=Object(i);(r?c--:++c<l)&&s(f[c],c,f)!==!1;);return i}}return lx=t,lx}var ux,R2;function kO(){if(R2)return ux;R2=1;var e=n3(),t=rZ(),n=t(e);return ux=n,ux}var cx,D2;function r3(){if(D2)return cx;D2=1;var e=kO(),t=Sf();function n(r,i){var s=-1,l=t(r)?Array(r.length):[];return e(r,function(c,f,d){l[++s]=i(c,f,d)}),l}return cx=n,cx}var fx,P2;function aZ(){if(P2)return fx;P2=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return fx=e,fx}var dx,k2;function iZ(){if(k2)return dx;k2=1;var e=Gl();function t(n,r){if(n!==r){var i=n!==void 0,s=n===null,l=n===n,c=e(n),f=r!==void 0,d=r===null,v=r===r,p=e(r);if(!d&&!p&&!c&&n>r||c&&f&&v&&!d&&!p||s&&f&&v||!i&&v||!l)return 1;if(!s&&!c&&!p&&n<r||p&&i&&l&&!s&&!c||d&&i&&l||!f&&l||!v)return-1}return 0}return dx=t,dx}var hx,$2;function oZ(){if($2)return hx;$2=1;var e=iZ();function t(n,r,i){for(var s=-1,l=n.criteria,c=r.criteria,f=l.length,d=i.length;++s<f;){var v=e(l[s],c[s]);if(v){if(s>=d)return v;var p=i[s];return v*(p=="desc"?-1:1)}}return n.index-r.index}return hx=t,hx}var mx,L2;function sZ(){if(L2)return mx;L2=1;var e=wO(),t=SO(),n=Hi(),r=r3(),i=aZ(),s=G4(),l=oZ(),c=Yl(),f=$n();function d(v,p,g){p.length?p=e(p,function(S){return f(S)?function(w){return t(w,S.length===1?S[0]:S)}:S}):p=[c];var x=-1;p=e(p,s(n));var _=r(v,function(S,w,j){var A=e(p,function(E){return E(S)});return{criteria:A,index:++x,value:S}});return i(_,function(S,w){return l(S,w,g)})}return mx=d,mx}var px,I2;function lZ(){if(I2)return px;I2=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 px=e,px}var vx,z2;function uZ(){if(z2)return vx;z2=1;var e=lZ(),t=Math.max;function n(r,i,s){return i=t(i===void 0?r.length-1:i,0),function(){for(var l=arguments,c=-1,f=t(l.length-i,0),d=Array(f);++c<f;)d[c]=l[i+c];c=-1;for(var v=Array(i+1);++c<i;)v[c]=l[c];return v[i]=s(d),e(r,this,v)}}return vx=n,vx}var gx,B2;function cZ(){if(B2)return gx;B2=1;function e(t){return function(){return t}}return gx=e,gx}var yx,q2;function a3(){if(q2)return yx;q2=1;var e=Ho(),t=(function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}})();return yx=t,yx}var bx,U2;function fZ(){if(U2)return bx;U2=1;var e=cZ(),t=a3(),n=Yl(),r=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:n;return bx=r,bx}var xx,H2;function dZ(){if(H2)return xx;H2=1;var e=800,t=16,n=Date.now;function r(i){var s=0,l=0;return function(){var c=n(),f=t-(c-l);if(l=c,f>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return xx=r,xx}var wx,F2;function hZ(){if(F2)return wx;F2=1;var e=fZ(),t=dZ(),n=t(e);return wx=n,wx}var Sx,G2;function mZ(){if(G2)return Sx;G2=1;var e=Yl(),t=uZ(),n=hZ();function r(i,s){return n(t(i,s,e),i+"")}return Sx=r,Sx}var Ox,V2;function yp(){if(V2)return Ox;V2=1;var e=yO(),t=Sf(),n=RO(),r=Ui();function i(s,l,c){if(!r(c))return!1;var f=typeof l;return(f=="number"?t(c)&&n(l,c.length):f=="string"&&l in c)?e(c[l],s):!1}return Ox=i,Ox}var _x,Y2;function pZ(){if(Y2)return _x;Y2=1;var e=t3(),t=sZ(),n=mZ(),r=yp(),i=n(function(s,l){if(s==null)return[];var c=l.length;return c>1&&r(s,l[0],l[1])?l=[]:c>2&&r(l[0],l[1],l[2])&&(l=[l[0]]),t(s,e(l,1),[])});return _x=i,_x}var vZ=pZ();const $O=gt(vZ);function Ec(e){"@babel/helpers - typeof";return Ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ec(e)}function 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 gZ(e,t){return wZ(e)||xZ(e,t)||bZ(e,t)||yZ()}function yZ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
309
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bZ(e,t){if(e){if(typeof e=="string")return W2(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 W2(e,t)}}function W2(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 xZ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function wZ(e){if(Array.isArray(e))return e}function K2(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 jx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K2(Object(n),!0).forEach(function(r){SZ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K2(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function SZ(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=_Z(e,"string");return Ec(t)=="symbol"?t:t+""}function _Z(e,t){if(Ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jZ(e){return Array.isArray(e)&&Kt(e[0])&&Kt(e[1])?e.join(" ~ "):e}var EZ=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,s=i===void 0?{}:i,l=t.itemStyle,c=l===void 0?{}:l,f=t.labelStyle,d=f===void 0?{}:f,v=t.payload,p=t.formatter,g=t.itemSorter,x=t.wrapperClassName,_=t.labelClassName,S=t.label,w=t.labelFormatter,j=t.accessibilityLayer,A=j===void 0?!1:j,E=function(){if(v&&v.length){var H={padding:0,margin:0},V=(g?$O(v,g):v).map(function(Q,K){if(Q.type==="none")return null;var k=jx({display:"block",paddingTop:4,paddingBottom:4,color:Q.color||"#000"},c),q=Q.formatter||p||jZ,B=Q.value,W=Q.name,se=B,$=W;if(q&&se!=null&&$!=null){var F=q(B,W,Q,K,v);if(Array.isArray(F)){var X=gZ(F,2);se=X[0],$=X[1]}else se=F}return I.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(K),style:k},Kt($)?I.createElement("span",{className:"recharts-tooltip-item-name"},$):null,Kt($)?I.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,I.createElement("span",{className:"recharts-tooltip-item-value"},se),I.createElement("span",{className:"recharts-tooltip-item-unit"},Q.unit||""))});return I.createElement("ul",{className:"recharts-tooltip-item-list",style:H},V)}return null},N=jx({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},s),T=jx({margin:0},d),M=!qe(S),R=M?S:"",D=Ye("recharts-default-tooltip",x),L=Ye("recharts-tooltip-label",_);M&&w&&v!==void 0&&v!==null&&(R=w(S,v));var Y=A?{role:"status","aria-live":"assertive"}:{};return I.createElement("div",s1({className:D,style:N},Y),I.createElement("p",{className:L,style:T},I.isValidElement(R)?R:"".concat(R)),E())};function Ac(e){"@babel/helpers - typeof";return Ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ac(e)}function eh(e,t,n){return t=AZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AZ(e){var t=TZ(e,"string");return Ac(t)=="symbol"?t:t+""}function TZ(e,t){if(Ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Xu="recharts-tooltip-wrapper",CZ={visibility:"hidden"};function NZ(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ye(Xu,eh(eh(eh(eh({},"".concat(Xu,"-right"),ye(n)&&t&&ye(t.x)&&n>=t.x),"".concat(Xu,"-left"),ye(n)&&t&&ye(t.x)&&n<t.x),"".concat(Xu,"-bottom"),ye(r)&&t&&ye(t.y)&&r>=t.y),"".concat(Xu,"-top"),ye(r)&&t&&ye(t.y)&&r<t.y))}function X2(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,s=e.position,l=e.reverseDirection,c=e.tooltipDimension,f=e.viewBox,d=e.viewBoxDimension;if(s&&ye(s[r]))return s[r];var v=n[r]-c-i,p=n[r]+i;if(t[r])return l[r]?v:p;if(l[r]){var g=v,x=f[r];return g<x?Math.max(p,f[r]):Math.max(v,f[r])}var _=p+c,S=f[r]+d;return _>S?Math.max(v,f[r]):Math.max(p,f[r])}function MZ(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 RZ(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,s=e.reverseDirection,l=e.tooltipBox,c=e.useTranslate3d,f=e.viewBox,d,v,p;return l.height>0&&l.width>0&&n?(v=X2({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:l.width,viewBox:f,viewBoxDimension:f.width}),p=X2({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:s,tooltipDimension:l.height,viewBox:f,viewBoxDimension:f.height}),d=MZ({translateX:v,translateY:p,useTranslate3d:c})):d=CZ,{cssProperties:d,cssClasses:NZ({translateX:v,translateY:p,coordinate:n})}}function hl(e){"@babel/helpers - typeof";return hl=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},hl(e)}function Q2(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 Z2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q2(Object(n),!0).forEach(function(r){u1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q2(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 PZ(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,o3(r.key),r)}}function kZ(e,t,n){return t&&PZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Z(e,t,n){return t=Yh(t),LZ(e,i3()?Reflect.construct(t,n||[],Yh(e).constructor):t.apply(e,n))}function LZ(e,t){if(t&&(hl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return IZ(e)}function IZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(i3=function(){return!!e})()}function Yh(e){return Yh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Yh(e)}function zZ(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&&l1(e,t)}function l1(e,t){return l1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},l1(e,t)}function u1(e,t,n){return t=o3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o3(e){var t=BZ(e,"string");return hl(t)=="symbol"?t:t+""}function BZ(e,t){if(hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var J2=1,qZ=(function(e){function t(){var n;DZ(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=$Z(this,t,[].concat(i)),u1(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),u1(n,"handleKeyDown",function(l){if(l.key==="Escape"){var c,f,d,v;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=(v=n.props.coordinate)===null||v===void 0?void 0:v.y)!==null&&d!==void 0?d:0}})}}),n}return zZ(t,e),kZ(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>J2||Math.abs(r.height-this.state.lastBoundingBox.height)>J2)&&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,s=i.active,l=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.children,v=i.coordinate,p=i.hasPayload,g=i.isAnimationActive,x=i.offset,_=i.position,S=i.reverseDirection,w=i.useTranslate3d,j=i.viewBox,A=i.wrapperStyle,E=RZ({allowEscapeViewBox:l,coordinate:v,offsetTopLeft:x,position:_,reverseDirection:S,tooltipBox:this.state.lastBoundingBox,useTranslate3d:w,viewBox:j}),N=E.cssClasses,T=E.cssProperties,M=Z2(Z2({transition:g&&s?"transform ".concat(c,"ms ").concat(f):void 0},T),{},{pointerEvents:"none",visibility:!this.state.dismissed&&s&&p?"visible":"hidden",position:"absolute",top:0,left:0},A);return I.createElement("div",{tabIndex:-1,className:N,style:M,ref:function(D){r.wrapperNode=D}},d)}}])})(O.PureComponent),UZ=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Wl={isSsr:UZ()};function ml(e){"@babel/helpers - typeof";return ml=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},ml(e)}function eR(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 tR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eR(Object(n),!0).forEach(function(r){LO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function FZ(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,l3(r.key),r)}}function GZ(e,t,n){return t&&FZ(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function VZ(e,t,n){return t=Wh(t),YZ(e,s3()?Reflect.construct(t,n||[],Wh(e).constructor):t.apply(e,n))}function YZ(e,t){if(t&&(ml(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return WZ(e)}function WZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s3(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(s3=function(){return!!e})()}function Wh(e){return Wh=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wh(e)}function KZ(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&&c1(e,t)}function c1(e,t){return c1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},c1(e,t)}function LO(e,t,n){return t=l3(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l3(e){var t=XZ(e,"string");return ml(t)=="symbol"?t:t+""}function XZ(e,t){if(ml(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ml(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function QZ(e){return e.dataKey}function ZZ(e,t){return I.isValidElement(e)?I.cloneElement(e,t):typeof e=="function"?I.createElement(e,t):I.createElement(EZ,t)}var Zr=(function(e){function t(){return HZ(this,t),VZ(this,t,arguments)}return KZ(t,e),GZ(t,[{key:"render",value:function(){var r=this,i=this.props,s=i.active,l=i.allowEscapeViewBox,c=i.animationDuration,f=i.animationEasing,d=i.content,v=i.coordinate,p=i.filterNull,g=i.isAnimationActive,x=i.offset,_=i.payload,S=i.payloadUniqBy,w=i.position,j=i.reverseDirection,A=i.useTranslate3d,E=i.viewBox,N=i.wrapperStyle,T=_??[];p&&T.length&&(T=Z4(_.filter(function(R){return R.value!=null&&(R.hide!==!0||r.props.includeHidden)}),S,QZ));var M=T.length>0;return I.createElement(qZ,{allowEscapeViewBox:l,animationDuration:c,animationEasing:f,isAnimationActive:g,active:s,coordinate:v,hasPayload:M,offset:x,position:w,reverseDirection:j,useTranslate3d:A,viewBox:E,wrapperStyle:N},ZZ(d,tR(tR({},this.props),{},{payload:T})))}}])})(O.PureComponent);LO(Zr,"displayName","Tooltip");LO(Zr,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Wl.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 Ex,nR;function JZ(){if(nR)return Ex;nR=1;var e=ma(),t=function(){return e.Date.now()};return Ex=t,Ex}var Ax,rR;function eJ(){if(rR)return Ax;rR=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Ax=t,Ax}var Tx,aR;function tJ(){if(aR)return Tx;aR=1;var e=eJ(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Tx=n,Tx}var Cx,iR;function u3(){if(iR)return Cx;iR=1;var e=tJ(),t=Ui(),n=Gl(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,l=/^0o[0-7]+$/i,c=parseInt;function f(d){if(typeof d=="number")return d;if(n(d))return r;if(t(d)){var v=typeof d.valueOf=="function"?d.valueOf():d;d=t(v)?v+"":v}if(typeof d!="string")return d===0?d:+d;d=e(d);var p=s.test(d);return p||l.test(d)?c(d.slice(2),p?2:8):i.test(d)?r:+d}return Cx=f,Cx}var Nx,oR;function nJ(){if(oR)return Nx;oR=1;var e=Ui(),t=JZ(),n=u3(),r="Expected a function",i=Math.max,s=Math.min;function l(c,f,d){var v,p,g,x,_,S,w=0,j=!1,A=!1,E=!0;if(typeof c!="function")throw new TypeError(r);f=n(f)||0,e(d)&&(j=!!d.leading,A="maxWait"in d,g=A?i(n(d.maxWait)||0,f):g,E="trailing"in d?!!d.trailing:E);function N(V){var Q=v,K=p;return v=p=void 0,w=V,x=c.apply(K,Q),x}function T(V){return w=V,_=setTimeout(D,f),j?N(V):x}function M(V){var Q=V-S,K=V-w,k=f-Q;return A?s(k,g-K):k}function R(V){var Q=V-S,K=V-w;return S===void 0||Q>=f||Q<0||A&&K>=g}function D(){var V=t();if(R(V))return L(V);_=setTimeout(D,M(V))}function L(V){return _=void 0,E&&v?N(V):(v=p=void 0,x)}function Y(){_!==void 0&&clearTimeout(_),w=0,v=S=p=_=void 0}function z(){return _===void 0?x:L(t())}function H(){var V=t(),Q=R(V);if(v=arguments,p=this,S=V,Q){if(_===void 0)return T(S);if(A)return clearTimeout(_),_=setTimeout(D,f),N(S)}return _===void 0&&(_=setTimeout(D,f)),x}return H.cancel=Y,H.flush=z,H}return Nx=l,Nx}var Mx,sR;function rJ(){if(sR)return Mx;sR=1;var e=nJ(),t=Ui(),n="Expected a function";function r(i,s,l){var c=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(l)&&(c="leading"in l?!!l.leading:c,f="trailing"in l?!!l.trailing:f),e(i,s,{leading:c,maxWait:s,trailing:f})}return Mx=r,Mx}var aJ=rJ();const c3=gt(aJ);function Tc(e){"@babel/helpers - typeof";return Tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tc(e)}function lR(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 th(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lR(Object(n),!0).forEach(function(r){iJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function iJ(e,t,n){return t=oJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oJ(e){var t=sJ(e,"string");return Tc(t)=="symbol"?t:t+""}function sJ(e,t){if(Tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lJ(e,t){return dJ(e)||fJ(e,t)||cJ(e,t)||uJ()}function uJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
310
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cJ(e,t){if(e){if(typeof e=="string")return uR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uR(e,t)}}function uR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function fJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function dJ(e){if(Array.isArray(e))return e}var hJ=O.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,s=e.width,l=s===void 0?"100%":s,c=e.height,f=c===void 0?"100%":c,d=e.minWidth,v=d===void 0?0:d,p=e.minHeight,g=e.maxHeight,x=e.children,_=e.debounce,S=_===void 0?0:_,w=e.id,j=e.className,A=e.onResize,E=e.style,N=E===void 0?{}:E,T=O.useRef(null),M=O.useRef();M.current=A,O.useImperativeHandle(t,function(){return Object.defineProperty(T.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),T.current},configurable:!0})});var R=O.useState({containerWidth:i.width,containerHeight:i.height}),D=lJ(R,2),L=D[0],Y=D[1],z=O.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}})},[]);O.useEffect(function(){var V=function(W){var se,$=W[0].contentRect,F=$.width,X=$.height;z(F,X),(se=M.current)===null||se===void 0||se.call(M,F,X)};S>0&&(V=c3(V,S,{trailing:!0,leading:!1}));var Q=new ResizeObserver(V),K=T.current.getBoundingClientRect(),k=K.width,q=K.height;return z(k,q),Q.observe(T.current),function(){Q.disconnect()}},[z,S]);var H=O.useMemo(function(){var V=L.containerWidth,Q=L.containerHeight;if(V<0||Q<0)return null;qa(So(l)||So(f),`The width(%s) and height(%s) are both fixed numbers,
|
|
311
|
+
maybe you don't need to use a ResponsiveContainer.`,l,f),qa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var K=So(l)?V:l,k=So(f)?Q:f;n&&n>0&&(K?k=K/n:k&&(K=k*n),g&&k>g&&(k=g)),qa(K>0||k>0,`The width(%s) and height(%s) of chart should be greater than 0,
|
|
312
|
+
please check the style of container, or the props width(%s) and height(%s),
|
|
313
|
+
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
|
|
314
|
+
height and width.`,K,k,l,f,v,p,n);var q=!Array.isArray(x)&&Ba(x.type).endsWith("Chart");return I.Children.map(x,function(B){return I.isValidElement(B)?O.cloneElement(B,th({width:K,height:k},q?{style:th({height:"100%",width:"100%",maxHeight:k,maxWidth:K},B.props.style)}:{})):B})},[n,x,f,g,p,v,L,l]);return I.createElement("div",{id:w?"".concat(w):void 0,className:Ye("recharts-responsive-container",j),style:th(th({},N),{},{width:l,height:f,minWidth:v,minHeight:p,maxHeight:g}),ref:T},H)}),f3=function(t){return null};f3.displayName="Cell";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 cR(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 f1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cR(Object(n),!0).forEach(function(r){mJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cR(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mJ(e,t,n){return t=pJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pJ(e){var t=vJ(e,"string");return Cc(t)=="symbol"?t:t+""}function vJ(e,t){if(Cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Bs={widthCache:{},cacheCount:0},gJ=2e3,yJ={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},fR="recharts_measurement_span";function bJ(e){var t=f1({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var dc=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Wl.isSsr)return{width:0,height:0};var r=bJ(n),i=JSON.stringify({text:t,copyStyle:r});if(Bs.widthCache[i])return Bs.widthCache[i];try{var s=document.getElementById(fR);s||(s=document.createElement("span"),s.setAttribute("id",fR),s.setAttribute("aria-hidden","true"),document.body.appendChild(s));var l=f1(f1({},yJ),r);Object.assign(s.style,l),s.textContent="".concat(t);var c=s.getBoundingClientRect(),f={width:c.width,height:c.height};return Bs.widthCache[i]=f,++Bs.cacheCount>gJ&&(Bs.cacheCount=0,Bs.widthCache={}),f}catch{return{width:0,height:0}}},xJ=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Nc(e){"@babel/helpers - typeof";return Nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nc(e)}function Kh(e,t){return _J(e)||OJ(e,t)||SJ(e,t)||wJ()}function wJ(){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 SJ(e,t){if(e){if(typeof e=="string")return dR(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 dR(e,t)}}function dR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function OJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function _J(e){if(Array.isArray(e))return e}function jJ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function hR(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,AJ(r.key),r)}}function EJ(e,t,n){return t&&hR(e.prototype,t),n&&hR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function AJ(e){var t=TJ(e,"string");return Nc(t)=="symbol"?t:t+""}function TJ(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 String(e)}var mR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,pR=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,CJ=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,NJ=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,d3={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},MJ=Object.keys(d3),Fs="NaN";function RJ(e,t){return e*d3[t]}var nh=(function(){function e(t,n){jJ(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!CJ.test(n)&&(this.num=NaN,this.unit=""),MJ.includes(n)&&(this.num=RJ(t,n),this.unit="px")}return EJ(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:[],s=Kh(i,3),l=s[1],c=s[2];return new e(parseFloat(l),c??"")}}])})();function h3(e){if(e.includes(Fs))return Fs;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=mR.exec(t))!==null&&n!==void 0?n:[],i=Kh(r,4),s=i[1],l=i[2],c=i[3],f=nh.parse(s??""),d=nh.parse(c??""),v=l==="*"?f.multiply(d):f.divide(d);if(v.isNaN())return Fs;t=t.replace(mR,v.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var p,g=(p=pR.exec(t))!==null&&p!==void 0?p:[],x=Kh(g,4),_=x[1],S=x[2],w=x[3],j=nh.parse(_??""),A=nh.parse(w??""),E=S==="+"?j.add(A):j.subtract(A);if(E.isNaN())return Fs;t=t.replace(pR,E.toString())}return t}var vR=/\(([^()]*)\)/;function DJ(e){for(var t=e;t.includes("(");){var n=vR.exec(t),r=Kh(n,2),i=r[1];t=t.replace(vR,h3(i))}return t}function PJ(e){var t=e.replace(/\s+/g,"");return t=DJ(t),t=h3(t),t}function kJ(e){try{return PJ(e)}catch{return Fs}}function Rx(e){var t=kJ(e.slice(5,-1));return t===Fs?"":t}var $J=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],LJ=["dx","dy","angle","className","breakAll"];function d1(){return d1=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},d1.apply(this,arguments)}function gR(e,t){if(e==null)return{};var n=IJ(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IJ(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 yR(e,t){return UJ(e)||qJ(e,t)||BJ(e,t)||zJ()}function zJ(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
316
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function BJ(e,t){if(e){if(typeof e=="string")return bR(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 bR(e,t)}}function bR(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 qJ(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function UJ(e){if(Array.isArray(e))return e}var m3=/[ \f\n\r\t\v\u2028\u2029]+/,p3=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var s=[];qe(n)||(r?s=n.toString().split(""):s=n.toString().split(m3));var l=s.map(function(f){return{word:f,width:dc(f,i).width}}),c=r?0:dc(" ",i).width;return{wordsWithComputedWidth:l,spaceWidth:c}}catch{return null}},HJ=function(t,n,r,i,s){var l=t.maxLines,c=t.children,f=t.style,d=t.breakAll,v=ye(l),p=c,g=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,se=k[k.length-1];if(se&&(i==null||s||se.width+W+r<Number(i)))se.words.push(B),se.width+=W+r;else{var $={words:[B],width:W};k.push($)}return k},[])},x=g(n),_=function(K){return K.reduce(function(k,q){return k.width>q.width?k:q})};if(!v)return x;for(var S="…",w=function(K){var k=p.slice(0,K),q=p3({breakAll:d,style:f,children:k+S}).wordsWithComputedWidth,B=g(q),W=B.length>l||_(B).width>Number(i);return[W,B]},j=0,A=p.length-1,E=0,N;j<=A&&E<=p.length-1;){var T=Math.floor((j+A)/2),M=T-1,R=w(M),D=yR(R,2),L=D[0],Y=D[1],z=w(T),H=yR(z,1),V=H[0];if(!L&&!V&&(j=T+1),L&&V&&(A=T-1),!L&&V){N=Y;break}E++}return N||x},xR=function(t){var n=qe(t)?[]:t.toString().split(m3);return[{words:n}]},FJ=function(t){var n=t.width,r=t.scaleToFit,i=t.children,s=t.style,l=t.breakAll,c=t.maxLines;if((n||r)&&!Wl.isSsr){var f,d,v=p3({breakAll:l,children:i,style:s});if(v){var p=v.wordsWithComputedWidth,g=v.spaceWidth;f=p,d=g}else return xR(i);return HJ({breakAll:l,children:i,maxLines:c,style:s},f,d,n,r)}return xR(i)},wR="#808080",Xh=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,l=t.lineHeight,c=l===void 0?"1em":l,f=t.capHeight,d=f===void 0?"0.71em":f,v=t.scaleToFit,p=v===void 0?!1:v,g=t.textAnchor,x=g===void 0?"start":g,_=t.verticalAnchor,S=_===void 0?"end":_,w=t.fill,j=w===void 0?wR:w,A=gR(t,$J),E=O.useMemo(function(){return FJ({breakAll:A.breakAll,children:A.children,maxLines:A.maxLines,scaleToFit:p,style:A.style,width:A.width})},[A.breakAll,A.children,A.maxLines,p,A.style,A.width]),N=A.dx,T=A.dy,M=A.angle,R=A.className,D=A.breakAll,L=gR(A,LJ);if(!Kt(r)||!Kt(s))return null;var Y=r+(ye(N)?N:0),z=s+(ye(T)?T:0),H;switch(S){case"start":H=Rx("calc(".concat(d,")"));break;case"middle":H=Rx("calc(".concat((E.length-1)/2," * -").concat(c," + (").concat(d," / 2))"));break;default:H=Rx("calc(".concat(E.length-1," * -").concat(c,")"));break}var V=[];if(p){var Q=E[0].width,K=A.width;V.push("scale(".concat((ye(K)?K/Q:1)/Q,")"))}return M&&V.push("rotate(".concat(M,", ").concat(Y,", ").concat(z,")")),V.length&&(L.transform=V.join(" ")),I.createElement("text",d1({},Ve(L,!0),{x:Y,y:z,className:Ye("recharts-text",R),textAnchor:x,fill:j.includes("url")?wR:j}),E.map(function(k,q){var B=k.words.join(D?"":" ");return I.createElement("tspan",{x:Y,dy:q===0?H:c,key:"".concat(B,"-").concat(q)},B)}))};function Di(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function GJ(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function IO(e){let t,n,r;e.length!==2?(t=Di,n=(c,f)=>Di(e(c),f),r=(c,f)=>e(c)-f):(t=e===Di||e===GJ?e:VJ,n=e,r=e);function i(c,f,d=0,v=c.length){if(d<v){if(t(f,f)!==0)return v;do{const p=d+v>>>1;n(c[p],f)<0?d=p+1:v=p}while(d<v)}return d}function s(c,f,d=0,v=c.length){if(d<v){if(t(f,f)!==0)return v;do{const p=d+v>>>1;n(c[p],f)<=0?d=p+1:v=p}while(d<v)}return d}function l(c,f,d=0,v=c.length){const p=i(c,f,d,v-1);return p>d&&r(c[p-1],f)>-r(c[p],f)?p-1:p}return{left:i,center:l,right:s}}function VJ(){return 0}function v3(e){return e===null?NaN:+e}function*YJ(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const WJ=IO(Di),Of=WJ.right;IO(v3).center;class SR extends Map{constructor(t,n=QJ){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(OR(this,t))}has(t){return super.has(OR(this,t))}set(t,n){return super.set(KJ(this,t),n)}delete(t){return super.delete(XJ(this,t))}}function OR({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function KJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function XJ({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function QJ(e){return e!==null&&typeof e=="object"?e.valueOf():e}function ZJ(e=Di){if(e===Di)return g3;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 g3(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const JJ=Math.sqrt(50),eee=Math.sqrt(10),tee=Math.sqrt(2);function Qh(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),s=r/Math.pow(10,i),l=s>=JJ?10:s>=eee?5:s>=tee?2:1;let c,f,d;return i<0?(d=Math.pow(10,-i)/l,c=Math.round(e*d),f=Math.round(t*d),c/d<e&&++c,f/d>t&&--f,d=-d):(d=Math.pow(10,i)*l,c=Math.round(e/d),f=Math.round(t/d),c*d<e&&++c,f*d>t&&--f),f<c&&.5<=n&&n<2?Qh(e,t,n*2):[c,f,d]}function h1(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,s,l]=r?Qh(t,e,n):Qh(e,t,n);if(!(s>=i))return[];const c=s-i+1,f=new Array(c);if(r)if(l<0)for(let d=0;d<c;++d)f[d]=(s-d)/-l;else for(let d=0;d<c;++d)f[d]=(s-d)*l;else if(l<0)for(let d=0;d<c;++d)f[d]=(i+d)/-l;else for(let d=0;d<c;++d)f[d]=(i+d)*l;return f}function m1(e,t,n){return t=+t,e=+e,n=+n,Qh(e,t,n)[2]}function p1(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?m1(t,e,n):m1(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function _R(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function jR(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function y3(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?g3:ZJ(i);r>n;){if(r-n>600){const f=r-n+1,d=t-n+1,v=Math.log(f),p=.5*Math.exp(2*v/3),g=.5*Math.sqrt(v*p*(f-p)/f)*(d-f/2<0?-1:1),x=Math.max(n,Math.floor(t-d*p/f+g)),_=Math.min(r,Math.floor(t+(f-d)*p/f+g));y3(e,t,x,_,i)}const s=e[t];let l=n,c=r;for(Qu(e,n,t),i(e[r],s)>0&&Qu(e,n,r);l<c;){for(Qu(e,l,c),++l,--c;i(e[l],s)<0;)++l;for(;i(e[c],s)>0;)--c}i(e[n],s)===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 nee(e,t,n){if(e=Float64Array.from(YJ(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return jR(e);if(t>=1)return _R(e);var r,i=(r-1)*t,s=Math.floor(i),l=_R(y3(e,s).subarray(0,s+1)),c=jR(e.subarray(s+1));return l+(c-l)*(i-s)}}function ree(e,t,n=v3){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,s=Math.floor(i),l=+n(e[s],s,e),c=+n(e[s+1],s+1,e);return l+(c-l)*(i-s)}}function aee(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,s=new Array(i);++r<i;)s[r]=e+r*n;return s}function xr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Za(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 v1=Symbol("implicit");function zO(){var e=new SR,t=[],n=[],r=v1;function i(s){let l=e.get(s);if(l===void 0){if(r!==v1)return r;e.set(s,l=t.push(s)-1)}return n[l%n.length]}return i.domain=function(s){if(!arguments.length)return t.slice();t=[],e=new SR;for(const l of s)e.has(l)||e.set(l,t.push(l)-1);return i},i.range=function(s){return arguments.length?(n=Array.from(s),i):n.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return zO(t,n).unknown(r)},xr.apply(i,arguments),i}function Mc(){var e=zO().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,s,l,c=!1,f=0,d=0,v=.5;delete e.unknown;function p(){var g=t().length,x=i<r,_=x?i:r,S=x?r:i;s=(S-_)/Math.max(1,g-f+d*2),c&&(s=Math.floor(s)),_+=(S-_-s*(g-f))*v,l=s*(1-f),c&&(_=Math.round(_),l=Math.round(l));var w=aee(g).map(function(j){return _+s*j});return n(x?w.reverse():w)}return e.domain=function(g){return arguments.length?(t(g),p()):t()},e.range=function(g){return arguments.length?([r,i]=g,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(g){return[r,i]=g,r=+r,i=+i,c=!0,p()},e.bandwidth=function(){return l},e.step=function(){return s},e.round=function(g){return arguments.length?(c=!!g,p()):c},e.padding=function(g){return arguments.length?(f=Math.min(1,d=+g),p()):f},e.paddingInner=function(g){return arguments.length?(f=Math.min(1,g),p()):f},e.paddingOuter=function(g){return arguments.length?(d=+g,p()):d},e.align=function(g){return arguments.length?(v=Math.max(0,Math.min(1,g)),p()):v},e.copy=function(){return Mc(t(),[r,i]).round(c).paddingInner(f).paddingOuter(d).align(v)},xr.apply(p(),arguments)}function b3(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return b3(t())},e}function hc(){return b3(Mc.apply(null,arguments).paddingInner(1))}function BO(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function x3(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function _f(){}var Rc=.7,Zh=1/Rc,Zs="\\s*([+-]?\\d+)\\s*",Dc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",iee=/^#([0-9a-f]{3,8})$/,oee=new RegExp(`^rgb\\(${Zs},${Zs},${Zs}\\)$`),see=new RegExp(`^rgb\\(${la},${la},${la}\\)$`),lee=new RegExp(`^rgba\\(${Zs},${Zs},${Zs},${Dc}\\)$`),uee=new RegExp(`^rgba\\(${la},${la},${la},${Dc}\\)$`),cee=new RegExp(`^hsl\\(${Dc},${la},${la}\\)$`),fee=new RegExp(`^hsla\\(${Dc},${la},${la},${Dc}\\)$`),ER={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};BO(_f,Pc,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:AR,formatHex:AR,formatHex8:dee,formatHsl:hee,formatRgb:TR,toString:TR});function AR(){return this.rgb().formatHex()}function dee(){return this.rgb().formatHex8()}function hee(){return w3(this).formatHsl()}function TR(){return this.rgb().formatRgb()}function Pc(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=iee.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?CR(t):n===3?new kn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?rh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?rh(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=oee.exec(e))?new kn(t[1],t[2],t[3],1):(t=see.exec(e))?new kn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=lee.exec(e))?rh(t[1],t[2],t[3],t[4]):(t=uee.exec(e))?rh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=cee.exec(e))?RR(t[1],t[2]/100,t[3]/100,1):(t=fee.exec(e))?RR(t[1],t[2]/100,t[3]/100,t[4]):ER.hasOwnProperty(e)?CR(ER[e]):e==="transparent"?new kn(NaN,NaN,NaN,0):null}function CR(e){return new kn(e>>16&255,e>>8&255,e&255,1)}function rh(e,t,n,r){return r<=0&&(e=t=n=NaN),new kn(e,t,n,r)}function mee(e){return e instanceof _f||(e=Pc(e)),e?(e=e.rgb(),new kn(e.r,e.g,e.b,e.opacity)):new kn}function g1(e,t,n,r){return arguments.length===1?mee(e):new kn(e,t,n,r??1)}function kn(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}BO(kn,g1,x3(_f,{brighter(e){return e=e==null?Zh:Math.pow(Zh,e),new kn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Rc:Math.pow(Rc,e),new kn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new kn(Ao(this.r),Ao(this.g),Ao(this.b),Jh(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:NR,formatHex:NR,formatHex8:pee,formatRgb:MR,toString:MR}));function NR(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}`}function pee(){return`#${Oo(this.r)}${Oo(this.g)}${Oo(this.b)}${Oo((isNaN(this.opacity)?1:this.opacity)*255)}`}function MR(){const e=Jh(this.opacity);return`${e===1?"rgb(":"rgba("}${Ao(this.r)}, ${Ao(this.g)}, ${Ao(this.b)}${e===1?")":`, ${e})`}`}function Jh(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ao(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Oo(e){return e=Ao(e),(e<16?"0":"")+e.toString(16)}function RR(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,n,r)}function w3(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof _f||(e=Pc(e)),!e)return new Mr;if(e instanceof Mr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),s=Math.max(t,n,r),l=NaN,c=s-i,f=(s+i)/2;return c?(t===s?l=(n-r)/c+(n<r)*6:n===s?l=(r-t)/c+2:l=(t-n)/c+4,c/=f<.5?s+i:2-s-i,l*=60):c=f>0&&f<1?0:l,new Mr(l,c,f,e.opacity)}function vee(e,t,n,r){return arguments.length===1?w3(e):new Mr(e,t,n,r??1)}function Mr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}BO(Mr,vee,x3(_f,{brighter(e){return e=e==null?Zh:Math.pow(Zh,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Rc:Math.pow(Rc,e),new Mr(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 kn(Dx(e>=240?e-240:e+120,i,r),Dx(e,i,r),Dx(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Mr(DR(this.h),ah(this.s),ah(this.l),Jh(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=Jh(this.opacity);return`${e===1?"hsl(":"hsla("}${DR(this.h)}, ${ah(this.s)*100}%, ${ah(this.l)*100}%${e===1?")":`, ${e})`}`}}));function DR(e){return e=(e||0)%360,e<0?e+360:e}function ah(e){return Math.max(0,Math.min(1,e||0))}function Dx(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 qO=e=>()=>e;function gee(e,t){return function(n){return e+n*t}}function yee(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 bee(e){return(e=+e)==1?S3:function(t,n){return n-t?yee(t,n,e):qO(isNaN(t)?n:t)}}function S3(e,t){var n=t-e;return n?gee(e,n):qO(isNaN(e)?t:e)}const PR=(function e(t){var n=bee(t);function r(i,s){var l=n((i=g1(i)).r,(s=g1(s)).r),c=n(i.g,s.g),f=n(i.b,s.b),d=S3(i.opacity,s.opacity);return function(v){return i.r=l(v),i.g=c(v),i.b=f(v),i.opacity=d(v),i+""}}return r.gamma=e,r})(1);function xee(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(s){for(i=0;i<n;++i)r[i]=e[i]*(1-s)+t[i]*s;return r}}function wee(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function See(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),s=new Array(n),l;for(l=0;l<r;++l)i[l]=Kl(e[l],t[l]);for(;l<n;++l)s[l]=t[l];return function(c){for(l=0;l<r;++l)s[l]=i[l](c);return s}}function Oee(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function em(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function _ee(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]=Kl(e[i],t[i]):r[i]=t[i];return function(s){for(i in n)r[i]=n[i](s);return r}}var y1=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Px=new RegExp(y1.source,"g");function jee(e){return function(){return e}}function Eee(e){return function(t){return e(t)+""}}function Aee(e,t){var n=y1.lastIndex=Px.lastIndex=0,r,i,s,l=-1,c=[],f=[];for(e=e+"",t=t+"";(r=y1.exec(e))&&(i=Px.exec(t));)(s=i.index)>n&&(s=t.slice(n,s),c[l]?c[l]+=s:c[++l]=s),(r=r[0])===(i=i[0])?c[l]?c[l]+=i:c[++l]=i:(c[++l]=null,f.push({i:l,x:em(r,i)})),n=Px.lastIndex;return n<t.length&&(s=t.slice(n),c[l]?c[l]+=s:c[++l]=s),c.length<2?f[0]?Eee(f[0].x):jee(t):(t=f.length,function(d){for(var v=0,p;v<t;++v)c[(p=f[v]).i]=p.x(d);return c.join("")})}function Kl(e,t){var n=typeof t,r;return t==null||n==="boolean"?qO(t):(n==="number"?em:n==="string"?(r=Pc(t))?(t=r,PR):Aee:t instanceof Pc?PR:t instanceof Date?Oee:wee(t)?xee:Array.isArray(t)?See:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?_ee:em)(e,t)}function UO(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Tee(e,t){t===void 0&&(t=e,e=Kl);for(var n=0,r=t.length-1,i=t[0],s=new Array(r<0?0:r);n<r;)s[n]=e(i,i=t[++n]);return function(l){var c=Math.max(0,Math.min(r-1,Math.floor(l*=r)));return s[c](l-c)}}function Cee(e){return function(){return e}}function tm(e){return+e}var kR=[0,1];function wn(e){return e}function b1(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Cee(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 Mee(e,t,n){var r=e[0],i=e[1],s=t[0],l=t[1];return i<r?(r=b1(i,r),s=n(l,s)):(r=b1(r,i),s=n(s,l)),function(c){return s(r(c))}}function Ree(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),s=new Array(r),l=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++l<r;)i[l]=b1(e[l],e[l+1]),s[l]=n(t[l],t[l+1]);return function(c){var f=Of(e,c,1,r)-1;return s[f](i[f](c))}}function jf(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function bp(){var e=kR,t=kR,n=Kl,r,i,s,l=wn,c,f,d;function v(){var g=Math.min(e.length,t.length);return l!==wn&&(l=Nee(e[0],e[g-1])),c=g>2?Ree:Mee,f=d=null,p}function p(g){return g==null||isNaN(g=+g)?s:(f||(f=c(e.map(r),t,n)))(r(l(g)))}return p.invert=function(g){return l(i((d||(d=c(t,e.map(r),em)))(g)))},p.domain=function(g){return arguments.length?(e=Array.from(g,tm),v()):e.slice()},p.range=function(g){return arguments.length?(t=Array.from(g),v()):t.slice()},p.rangeRound=function(g){return t=Array.from(g),n=UO,v()},p.clamp=function(g){return arguments.length?(l=g?!0:wn,v()):l!==wn},p.interpolate=function(g){return arguments.length?(n=g,v()):n},p.unknown=function(g){return arguments.length?(s=g,p):s},function(g,x){return r=g,i=x,v()}}function HO(){return bp()(wn,wn)}function Dee(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function nm(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 pl(e){return e=nm(Math.abs(e)),e?e[1]:NaN}function Pee(e,t){return function(n,r){for(var i=n.length,s=[],l=0,c=e[0],f=0;i>0&&c>0&&(f+c+1>r&&(c=Math.max(1,r-f)),s.push(n.substring(i-=c,i+c)),!((f+=c+1)>r));)c=e[l=(l+1)%e.length];return s.reverse().join(t)}}function kee(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var $ee=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function kc(e){if(!(t=$ee.exec(e)))throw new Error("invalid format: "+e);var t;return new FO({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]})}kc.prototype=FO.prototype;function FO(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+""}FO.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 Lee(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 O3;function Iee(e,t){var n=nm(e,t);if(!n)return e+"";var r=n[0],i=n[1],s=i-(O3=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,l=r.length;return s===l?r:s>l?r+new Array(s-l+1).join("0"):s>0?r.slice(0,s)+"."+r.slice(s):"0."+new Array(1-s).join("0")+nm(e,Math.max(0,t+s-1))[0]}function $R(e,t){var n=nm(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 LR={"%":(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)=>$R(e*100,t),r:$R,s:Iee,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function IR(e){return e}var zR=Array.prototype.map,BR=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function zee(e){var t=e.grouping===void 0||e.thousands===void 0?IR:Pee(zR.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+"",s=e.numerals===void 0?IR:kee(zR.call(e.numerals,String)),l=e.percent===void 0?"%":e.percent+"",c=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function d(p){p=kc(p);var g=p.fill,x=p.align,_=p.sign,S=p.symbol,w=p.zero,j=p.width,A=p.comma,E=p.precision,N=p.trim,T=p.type;T==="n"?(A=!0,T="g"):LR[T]||(E===void 0&&(E=12),N=!0,T="g"),(w||g==="0"&&x==="=")&&(w=!0,g="0",x="=");var M=S==="$"?n:S==="#"&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",R=S==="$"?r:/[%p]/.test(T)?l:"",D=LR[T],L=/[defgprs%]/.test(T);E=E===void 0?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function Y(z){var H=M,V=R,Q,K,k;if(T==="c")V=D(z)+V,z="";else{z=+z;var q=z<0||1/z<0;if(z=isNaN(z)?f:D(Math.abs(z),E),N&&(z=Lee(z)),q&&+z==0&&_!=="+"&&(q=!1),H=(q?_==="("?_:c:_==="-"||_==="("?"":_)+H,V=(T==="s"?BR[8+O3/3]:"")+V+(q&&_==="("?")":""),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}}}A&&!w&&(z=t(z,1/0));var B=H.length+z.length+V.length,W=B<j?new Array(j-B+1).join(g):"";switch(A&&w&&(z=t(W+z,W.length?j-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 s(z)}return Y.toString=function(){return p+""},Y}function v(p,g){var x=d((p=kc(p),p.type="f",p)),_=Math.max(-8,Math.min(8,Math.floor(pl(g)/3)))*3,S=Math.pow(10,-_),w=BR[8+_/3];return function(j){return x(S*j)+w}}return{format:d,formatPrefix:v}}var ih,GO,_3;Bee({thousands:",",grouping:[3],currency:["$",""]});function Bee(e){return ih=zee(e),GO=ih.format,_3=ih.formatPrefix,ih}function qee(e){return Math.max(0,-pl(Math.abs(e)))}function Uee(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(pl(t)/3)))*3-pl(Math.abs(e)))}function Hee(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,pl(t)-pl(e))+1}function j3(e,t,n,r){var i=p1(e,t,n),s;switch(r=kc(r??",f"),r.type){case"s":{var l=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(s=Uee(i,l))&&(r.precision=s),_3(r,l)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(s=Hee(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=s-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(s=qee(i))&&(r.precision=s-(r.type==="%")*2);break}}return GO(r)}function Fi(e){var t=e.domain;return e.ticks=function(n){var r=t();return h1(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return j3(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,s=r.length-1,l=r[i],c=r[s],f,d,v=10;for(c<l&&(d=l,l=c,c=d,d=i,i=s,s=d);v-- >0;){if(d=m1(l,c,n),d===f)return r[i]=l,r[s]=c,t(r);if(d>0)l=Math.floor(l/d)*d,c=Math.ceil(c/d)*d;else if(d<0)l=Math.ceil(l*d)/d,c=Math.floor(c*d)/d;else break;f=d}return e},e}function rm(){var e=HO();return e.copy=function(){return jf(e,rm())},xr.apply(e,arguments),Fi(e)}function E3(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,tm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return E3(e).unknown(t)},e=arguments.length?Array.from(e,tm):[0,1],Fi(n)}function A3(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],s=e[r],l;return s<i&&(l=n,n=r,r=l,l=i,i=s,s=l),e[n]=t.floor(i),e[r]=t.ceil(s),e}function qR(e){return Math.log(e)}function UR(e){return Math.exp(e)}function Fee(e){return-Math.log(-e)}function Gee(e){return-Math.exp(-e)}function Vee(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Yee(e){return e===10?Vee:e===Math.E?Math.exp:t=>Math.pow(e,t)}function Wee(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 HR(e){return(t,n)=>-e(-t,n)}function VO(e){const t=e(qR,UR),n=t.domain;let r=10,i,s;function l(){return i=Wee(r),s=Yee(r),n()[0]<0?(i=HR(i),s=HR(s),e(Fee,Gee)):e(qR,UR),t}return t.base=function(c){return arguments.length?(r=+c,l()):r},t.domain=function(c){return arguments.length?(n(c),l()):n()},t.ticks=c=>{const f=n();let d=f[0],v=f[f.length-1];const p=v<d;p&&([d,v]=[v,d]);let g=i(d),x=i(v),_,S;const w=c==null?10:+c;let j=[];if(!(r%1)&&x-g<w){if(g=Math.floor(g),x=Math.ceil(x),d>0){for(;g<=x;++g)for(_=1;_<r;++_)if(S=g<0?_/s(-g):_*s(g),!(S<d)){if(S>v)break;j.push(S)}}else for(;g<=x;++g)for(_=r-1;_>=1;--_)if(S=g>0?_/s(-g):_*s(g),!(S<d)){if(S>v)break;j.push(S)}j.length*2<w&&(j=h1(d,v,w))}else j=h1(g,x,Math.min(x-g,w)).map(s);return p?j.reverse():j},t.tickFormat=(c,f)=>{if(c==null&&(c=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=kc(f)).precision==null&&(f.trim=!0),f=GO(f)),c===1/0)return f;const d=Math.max(1,r*c/t.ticks().length);return v=>{let p=v/s(Math.round(i(v)));return p*r<r-.5&&(p*=r),p<=d?f(v):""}},t.nice=()=>n(A3(n(),{floor:c=>s(Math.floor(i(c))),ceil:c=>s(Math.ceil(i(c)))})),t}function T3(){const e=VO(bp()).domain([1,10]);return e.copy=()=>jf(e,T3()).base(e.base()),xr.apply(e,arguments),e}function FR(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function GR(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function YO(e){var t=1,n=e(FR(t),GR(t));return n.constant=function(r){return arguments.length?e(FR(t=+r),GR(t)):t},Fi(n)}function C3(){var e=YO(bp());return e.copy=function(){return jf(e,C3()).constant(e.constant())},xr.apply(e,arguments)}function VR(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function Kee(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Xee(e){return e<0?-e*e:e*e}function WO(e){var t=e(wn,wn),n=1;function r(){return n===1?e(wn,wn):n===.5?e(Kee,Xee):e(VR(n),VR(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Fi(t)}function KO(){var e=WO(bp());return e.copy=function(){return jf(e,KO()).exponent(e.exponent())},xr.apply(e,arguments),e}function Qee(){return KO.apply(null,arguments).exponent(.5)}function YR(e){return Math.sign(e)*e*e}function Zee(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function N3(){var e=HO(),t=[0,1],n=!1,r;function i(s){var l=Zee(e(s));return isNaN(l)?r:n?Math.round(l):l}return i.invert=function(s){return e.invert(YR(s))},i.domain=function(s){return arguments.length?(e.domain(s),i):e.domain()},i.range=function(s){return arguments.length?(e.range((t=Array.from(s,tm)).map(YR)),i):t.slice()},i.rangeRound=function(s){return i.range(s).round(!0)},i.round=function(s){return arguments.length?(n=!!s,i):n},i.clamp=function(s){return arguments.length?(e.clamp(s),i):e.clamp()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.copy=function(){return N3(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},xr.apply(i,arguments),Fi(i)}function M3(){var e=[],t=[],n=[],r;function i(){var l=0,c=Math.max(1,t.length);for(n=new Array(c-1);++l<c;)n[l-1]=ree(e,l/c);return s}function s(l){return l==null||isNaN(l=+l)?r:t[Of(n,l)]}return s.invertExtent=function(l){var c=t.indexOf(l);return c<0?[NaN,NaN]:[c>0?n[c-1]:e[0],c<n.length?n[c]:e[e.length-1]]},s.domain=function(l){if(!arguments.length)return e.slice();e=[];for(let c of l)c!=null&&!isNaN(c=+c)&&e.push(c);return e.sort(Di),i()},s.range=function(l){return arguments.length?(t=Array.from(l),i()):t.slice()},s.unknown=function(l){return arguments.length?(r=l,s):r},s.quantiles=function(){return n.slice()},s.copy=function(){return M3().domain(e).range(t).unknown(r)},xr.apply(s,arguments)}function R3(){var e=0,t=1,n=1,r=[.5],i=[0,1],s;function l(f){return f!=null&&f<=f?i[Of(r,f,0,n)]:s}function c(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return l}return l.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,c()):[e,t]},l.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,c()):i.slice()},l.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]]},l.unknown=function(f){return arguments.length&&(s=f),l},l.thresholds=function(){return r.slice()},l.copy=function(){return R3().domain([e,t]).range(i).unknown(s)},xr.apply(Fi(l),arguments)}function D3(){var e=[.5],t=[0,1],n,r=1;function i(s){return s!=null&&s<=s?t[Of(e,s,0,r)]:n}return i.domain=function(s){return arguments.length?(e=Array.from(s),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(s){return arguments.length?(t=Array.from(s),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(s){var l=t.indexOf(s);return[e[l-1],e[l]]},i.unknown=function(s){return arguments.length?(n=s,i):n},i.copy=function(){return D3().domain(e).range(t).unknown(n)},xr.apply(i,arguments)}const kx=new Date,$x=new Date;function Xt(e,t,n,r){function i(s){return e(s=arguments.length===0?new Date:new Date(+s)),s}return i.floor=s=>(e(s=new Date(+s)),s),i.ceil=s=>(e(s=new Date(s-1)),t(s,1),e(s),s),i.round=s=>{const l=i(s),c=i.ceil(s);return s-l<c-s?l:c},i.offset=(s,l)=>(t(s=new Date(+s),l==null?1:Math.floor(l)),s),i.range=(s,l,c)=>{const f=[];if(s=i.ceil(s),c=c==null?1:Math.floor(c),!(s<l)||!(c>0))return f;let d;do f.push(d=new Date(+s)),t(s,c),e(s);while(d<s&&s<l);return f},i.filter=s=>Xt(l=>{if(l>=l)for(;e(l),!s(l);)l.setTime(l-1)},(l,c)=>{if(l>=l)if(c<0)for(;++c<=0;)for(;t(l,-1),!s(l););else for(;--c>=0;)for(;t(l,1),!s(l););}),n&&(i.count=(s,l)=>(kx.setTime(+s),$x.setTime(+l),e(kx),e($x),Math.floor(n(kx,$x))),i.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?i.filter(r?l=>r(l)%s===0:l=>i.count(0,l)%s===0):i)),i}const am=Xt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);am.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Xt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):am);am.range;const $a=1e3,hr=$a*60,La=hr*60,Va=La*24,XO=Va*7,WR=Va*30,Lx=Va*365,_o=Xt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*$a)},(e,t)=>(t-e)/$a,e=>e.getUTCSeconds());_o.range;const QO=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$a)},(e,t)=>{e.setTime(+e+t*hr)},(e,t)=>(t-e)/hr,e=>e.getMinutes());QO.range;const ZO=Xt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*hr)},(e,t)=>(t-e)/hr,e=>e.getUTCMinutes());ZO.range;const JO=Xt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$a-e.getMinutes()*hr)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getHours());JO.range;const e_=Xt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*La)},(e,t)=>(t-e)/La,e=>e.getUTCHours());e_.range;const Ef=Xt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*hr)/Va,e=>e.getDate()-1);Ef.range;const xp=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Va,e=>e.getUTCDate()-1);xp.range;const P3=Xt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Va,e=>Math.floor(e/Va));P3.range;function Fo(e){return Xt(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())*hr)/XO)}const wp=Fo(0),im=Fo(1),Jee=Fo(2),ete=Fo(3),vl=Fo(4),tte=Fo(5),nte=Fo(6);wp.range;im.range;Jee.range;ete.range;vl.range;tte.range;nte.range;function Go(e){return Xt(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)/XO)}const Sp=Go(0),om=Go(1),rte=Go(2),ate=Go(3),gl=Go(4),ite=Go(5),ote=Go(6);Sp.range;om.range;rte.range;ate.range;gl.range;ite.range;ote.range;const t_=Xt(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());t_.range;const n_=Xt(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());n_.range;const Ya=Xt(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());Ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(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)});Ya.range;const Wa=Xt(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());Wa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Xt(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)});Wa.range;function k3(e,t,n,r,i,s){const l=[[_o,1,$a],[_o,5,5*$a],[_o,15,15*$a],[_o,30,30*$a],[s,1,hr],[s,5,5*hr],[s,15,15*hr],[s,30,30*hr],[i,1,La],[i,3,3*La],[i,6,6*La],[i,12,12*La],[r,1,Va],[r,2,2*Va],[n,1,XO],[t,1,WR],[t,3,3*WR],[e,1,Lx]];function c(d,v,p){const g=v<d;g&&([d,v]=[v,d]);const x=p&&typeof p.range=="function"?p:f(d,v,p),_=x?x.range(d,+v+1):[];return g?_.reverse():_}function f(d,v,p){const g=Math.abs(v-d)/p,x=IO(([,,w])=>w).right(l,g);if(x===l.length)return e.every(p1(d/Lx,v/Lx,p));if(x===0)return am.every(Math.max(p1(d,v,p),1));const[_,S]=l[g/l[x-1][2]<l[x][2]/g?x-1:x];return _.every(S)}return[c,f]}const[ste,lte]=k3(Wa,n_,Sp,P3,e_,ZO),[ute,cte]=k3(Ya,t_,wp,Ef,JO,QO);function Ix(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 zx(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 Zu(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function fte(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,s=e.days,l=e.shortDays,c=e.months,f=e.shortMonths,d=Ju(i),v=ec(i),p=Ju(s),g=ec(s),x=Ju(l),_=ec(l),S=Ju(c),w=ec(c),j=Ju(f),A=ec(f),E={a:q,A:B,b:W,B:se,c:null,d:eD,e:eD,f:Pte,g:Fte,G:Vte,H:Mte,I:Rte,j:Dte,L:$3,m:kte,M:$te,p:$,q:F,Q:rD,s:aD,S:Lte,u:Ite,U:zte,V:Bte,w:qte,W:Ute,x:null,X:null,y:Hte,Y:Gte,Z:Yte,"%":nD},N={a:X,A:ae,b:de,B:ge,c:null,d:tD,e:tD,f:Qte,g:sne,G:une,H:Wte,I:Kte,j:Xte,L:I3,m:Zte,M:Jte,p:ce,q:he,Q:rD,s:aD,S:ene,u:tne,U:nne,V:rne,w:ane,W:ine,x:null,X:null,y:one,Y:lne,Z:cne,"%":nD},T={a:Y,A:z,b:H,B:V,c:Q,d:ZR,e:ZR,f:Ate,g:QR,G:XR,H:JR,I:JR,j:Ote,L:Ete,m:Ste,M:_te,p:L,q:wte,Q:Cte,s:Nte,S:jte,u:vte,U:gte,V:yte,w:pte,W:bte,x:K,X:k,y:QR,Y:XR,Z:xte,"%":Tte};E.x=M(n,E),E.X=M(r,E),E.c=M(t,E),N.x=M(n,N),N.X=M(r,N),N.c=M(t,N);function M(ie,me){return function(ve){var ne=[],De=-1,je=0,rt=ie.length,Xe,ft,fn;for(ve instanceof Date||(ve=new Date(+ve));++De<rt;)ie.charCodeAt(De)===37&&(ne.push(ie.slice(je,De)),(ft=KR[Xe=ie.charAt(++De)])!=null?Xe=ie.charAt(++De):ft=Xe==="e"?" ":"0",(fn=me[Xe])&&(Xe=fn(ve,ft)),ne.push(Xe),je=De+1);return ne.push(ie.slice(je,De)),ne.join("")}}function R(ie,me){return function(ve){var ne=Zu(1900,void 0,1),De=D(ne,ie,ve+="",0),je,rt;if(De!=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(me&&!("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?(je=zx(Zu(ne.y,0,1)),rt=je.getUTCDay(),je=rt>4||rt===0?om.ceil(je):om(je),je=xp.offset(je,(ne.V-1)*7),ne.y=je.getUTCFullYear(),ne.m=je.getUTCMonth(),ne.d=je.getUTCDate()+(ne.w+6)%7):(je=Ix(Zu(ne.y,0,1)),rt=je.getDay(),je=rt>4||rt===0?im.ceil(je):im(je),je=Ef.offset(je,(ne.V-1)*7),ne.y=je.getFullYear(),ne.m=je.getMonth(),ne.d=je.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),rt="Z"in ne?zx(Zu(ne.y,0,1)).getUTCDay():Ix(Zu(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+ne.W*7-(rt+5)%7:ne.w+ne.U*7-(rt+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,zx(ne)):Ix(ne)}}function D(ie,me,ve,ne){for(var De=0,je=me.length,rt=ve.length,Xe,ft;De<je;){if(ne>=rt)return-1;if(Xe=me.charCodeAt(De++),Xe===37){if(Xe=me.charAt(De++),ft=T[Xe in KR?me.charAt(De++):Xe],!ft||(ne=ft(ie,ve,ne))<0)return-1}else if(Xe!=ve.charCodeAt(ne++))return-1}return ne}function L(ie,me,ve){var ne=d.exec(me.slice(ve));return ne?(ie.p=v.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function Y(ie,me,ve){var ne=x.exec(me.slice(ve));return ne?(ie.w=_.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function z(ie,me,ve){var ne=p.exec(me.slice(ve));return ne?(ie.w=g.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function H(ie,me,ve){var ne=j.exec(me.slice(ve));return ne?(ie.m=A.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function V(ie,me,ve){var ne=S.exec(me.slice(ve));return ne?(ie.m=w.get(ne[0].toLowerCase()),ve+ne[0].length):-1}function Q(ie,me,ve){return D(ie,t,me,ve)}function K(ie,me,ve){return D(ie,n,me,ve)}function k(ie,me,ve){return D(ie,r,me,ve)}function q(ie){return l[ie.getDay()]}function B(ie){return s[ie.getDay()]}function W(ie){return f[ie.getMonth()]}function se(ie){return c[ie.getMonth()]}function $(ie){return i[+(ie.getHours()>=12)]}function F(ie){return 1+~~(ie.getMonth()/3)}function X(ie){return l[ie.getUTCDay()]}function ae(ie){return s[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 me=M(ie+="",E);return me.toString=function(){return ie},me},parse:function(ie){var me=R(ie+="",!1);return me.toString=function(){return ie},me},utcFormat:function(ie){var me=M(ie+="",N);return me.toString=function(){return ie},me},utcParse:function(ie){var me=R(ie+="",!0);return me.toString=function(){return ie},me}}}var KR={"-":"",_:" ",0:"0"},nn=/^\s*\d+/,dte=/^%/,hte=/[\\^$*+?|[\]().{}]/g;function nt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",s=i.length;return r+(s<n?new Array(n-s+1).join(t)+i:i)}function mte(e){return e.replace(hte,"\\$&")}function Ju(e){return new RegExp("^(?:"+e.map(mte).join("|")+")","i")}function ec(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function pte(e,t,n){var r=nn.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function vte(e,t,n){var r=nn.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function gte(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function yte(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bte(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function XR(e,t,n){var r=nn.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function QR(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function xte(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 wte(e,t,n){var r=nn.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Ste(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function ZR(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Ote(e,t,n){var r=nn.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function JR(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function _te(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function jte(e,t,n){var r=nn.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Ete(e,t,n){var r=nn.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Ate(e,t,n){var r=nn.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Tte(e,t,n){var r=dte.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Cte(e,t,n){var r=nn.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Nte(e,t,n){var r=nn.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function eD(e,t){return nt(e.getDate(),t,2)}function Mte(e,t){return nt(e.getHours(),t,2)}function Rte(e,t){return nt(e.getHours()%12||12,t,2)}function Dte(e,t){return nt(1+Ef.count(Ya(e),e),t,3)}function $3(e,t){return nt(e.getMilliseconds(),t,3)}function Pte(e,t){return $3(e,t)+"000"}function kte(e,t){return nt(e.getMonth()+1,t,2)}function $te(e,t){return nt(e.getMinutes(),t,2)}function Lte(e,t){return nt(e.getSeconds(),t,2)}function Ite(e){var t=e.getDay();return t===0?7:t}function zte(e,t){return nt(wp.count(Ya(e)-1,e),t,2)}function L3(e){var t=e.getDay();return t>=4||t===0?vl(e):vl.ceil(e)}function Bte(e,t){return e=L3(e),nt(vl.count(Ya(e),e)+(Ya(e).getDay()===4),t,2)}function qte(e){return e.getDay()}function Ute(e,t){return nt(im.count(Ya(e)-1,e),t,2)}function Hte(e,t){return nt(e.getFullYear()%100,t,2)}function Fte(e,t){return e=L3(e),nt(e.getFullYear()%100,t,2)}function Gte(e,t){return nt(e.getFullYear()%1e4,t,4)}function Vte(e,t){var n=e.getDay();return e=n>=4||n===0?vl(e):vl.ceil(e),nt(e.getFullYear()%1e4,t,4)}function Yte(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+nt(t/60|0,"0",2)+nt(t%60,"0",2)}function tD(e,t){return nt(e.getUTCDate(),t,2)}function Wte(e,t){return nt(e.getUTCHours(),t,2)}function Kte(e,t){return nt(e.getUTCHours()%12||12,t,2)}function Xte(e,t){return nt(1+xp.count(Wa(e),e),t,3)}function I3(e,t){return nt(e.getUTCMilliseconds(),t,3)}function Qte(e,t){return I3(e,t)+"000"}function Zte(e,t){return nt(e.getUTCMonth()+1,t,2)}function Jte(e,t){return nt(e.getUTCMinutes(),t,2)}function ene(e,t){return nt(e.getUTCSeconds(),t,2)}function tne(e){var t=e.getUTCDay();return t===0?7:t}function nne(e,t){return nt(Sp.count(Wa(e)-1,e),t,2)}function z3(e){var t=e.getUTCDay();return t>=4||t===0?gl(e):gl.ceil(e)}function rne(e,t){return e=z3(e),nt(gl.count(Wa(e),e)+(Wa(e).getUTCDay()===4),t,2)}function ane(e){return e.getUTCDay()}function ine(e,t){return nt(om.count(Wa(e)-1,e),t,2)}function one(e,t){return nt(e.getUTCFullYear()%100,t,2)}function sne(e,t){return e=z3(e),nt(e.getUTCFullYear()%100,t,2)}function lne(e,t){return nt(e.getUTCFullYear()%1e4,t,4)}function une(e,t){var n=e.getUTCDay();return e=n>=4||n===0?gl(e):gl.ceil(e),nt(e.getUTCFullYear()%1e4,t,4)}function cne(){return"+0000"}function nD(){return"%"}function rD(e){return+e}function aD(e){return Math.floor(+e/1e3)}var qs,B3,q3;fne({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 fne(e){return qs=fte(e),B3=qs.format,qs.parse,q3=qs.utcFormat,qs.utcParse,qs}function dne(e){return new Date(e)}function hne(e){return e instanceof Date?+e:+new Date(+e)}function r_(e,t,n,r,i,s,l,c,f,d){var v=HO(),p=v.invert,g=v.domain,x=d(".%L"),_=d(":%S"),S=d("%I:%M"),w=d("%I %p"),j=d("%a %d"),A=d("%b %d"),E=d("%B"),N=d("%Y");function T(M){return(f(M)<M?x:c(M)<M?_:l(M)<M?S:s(M)<M?w:r(M)<M?i(M)<M?j:A:n(M)<M?E:N)(M)}return v.invert=function(M){return new Date(p(M))},v.domain=function(M){return arguments.length?g(Array.from(M,hne)):g().map(dne)},v.ticks=function(M){var R=g();return e(R[0],R[R.length-1],M??10)},v.tickFormat=function(M,R){return R==null?T:d(R)},v.nice=function(M){var R=g();return(!M||typeof M.range!="function")&&(M=t(R[0],R[R.length-1],M??10)),M?g(A3(R,M)):v},v.copy=function(){return jf(v,r_(e,t,n,r,i,s,l,c,f,d))},v}function mne(){return xr.apply(r_(ute,cte,Ya,t_,wp,Ef,JO,QO,_o,B3).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function pne(){return xr.apply(r_(ste,lte,Wa,n_,Sp,xp,e_,ZO,_o,q3).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Op(){var e=0,t=1,n,r,i,s,l=wn,c=!1,f;function d(p){return p==null||isNaN(p=+p)?f:l(i===0?.5:(p=(s(p)-n)*i,c?Math.max(0,Math.min(1,p)):p))}d.domain=function(p){return arguments.length?([e,t]=p,n=s(e=+e),r=s(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?(l=p,d):l};function v(p){return function(g){var x,_;return arguments.length?([x,_]=g,l=p(x,_),d):[l(0),l(1)]}}return d.range=v(Kl),d.rangeRound=v(UO),d.unknown=function(p){return arguments.length?(f=p,d):f},function(p){return s=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),d}}function Gi(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function U3(){var e=Fi(Op()(wn));return e.copy=function(){return Gi(e,U3())},Za.apply(e,arguments)}function H3(){var e=VO(Op()).domain([1,10]);return e.copy=function(){return Gi(e,H3()).base(e.base())},Za.apply(e,arguments)}function F3(){var e=YO(Op());return e.copy=function(){return Gi(e,F3()).constant(e.constant())},Za.apply(e,arguments)}function a_(){var e=WO(Op());return e.copy=function(){return Gi(e,a_()).exponent(e.exponent())},Za.apply(e,arguments)}function vne(){return a_.apply(null,arguments).exponent(.5)}function G3(){var e=[],t=wn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Of(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(Di),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,s)=>nee(e,s/r))},n.copy=function(){return G3(t).domain(e)},Za.apply(n,arguments)}function _p(){var e=0,t=.5,n=1,r=1,i,s,l,c,f,d=wn,v,p=!1,g;function x(S){return isNaN(S=+S)?g:(S=.5+((S=+v(S))-s)*(r*S<r*s?c:f),d(p?Math.max(0,Math.min(1,S)):S))}x.domain=function(S){return arguments.length?([e,t,n]=S,i=v(e=+e),s=v(t=+t),l=v(n=+n),c=i===s?0:.5/(s-i),f=s===l?0:.5/(l-s),r=s<i?-1:1,x):[e,t,n]},x.clamp=function(S){return arguments.length?(p=!!S,x):p},x.interpolator=function(S){return arguments.length?(d=S,x):d};function _(S){return function(w){var j,A,E;return arguments.length?([j,A,E]=w,d=Tee(S,[j,A,E]),x):[d(0),d(.5),d(1)]}}return x.range=_(Kl),x.rangeRound=_(UO),x.unknown=function(S){return arguments.length?(g=S,x):g},function(S){return v=S,i=S(e),s=S(t),l=S(n),c=i===s?0:.5/(s-i),f=s===l?0:.5/(l-s),r=s<i?-1:1,x}}function V3(){var e=Fi(_p()(wn));return e.copy=function(){return Gi(e,V3())},Za.apply(e,arguments)}function Y3(){var e=VO(_p()).domain([.1,1,10]);return e.copy=function(){return Gi(e,Y3()).base(e.base())},Za.apply(e,arguments)}function W3(){var e=YO(_p());return e.copy=function(){return Gi(e,W3()).constant(e.constant())},Za.apply(e,arguments)}function i_(){var e=WO(_p());return e.copy=function(){return Gi(e,i_()).exponent(e.exponent())},Za.apply(e,arguments)}function gne(){return i_.apply(null,arguments).exponent(.5)}const iD=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Mc,scaleDiverging:V3,scaleDivergingLog:Y3,scaleDivergingPow:i_,scaleDivergingSqrt:gne,scaleDivergingSymlog:W3,scaleIdentity:E3,scaleImplicit:v1,scaleLinear:rm,scaleLog:T3,scaleOrdinal:zO,scalePoint:hc,scalePow:KO,scaleQuantile:M3,scaleQuantize:R3,scaleRadial:N3,scaleSequential:U3,scaleSequentialLog:H3,scaleSequentialPow:a_,scaleSequentialQuantile:G3,scaleSequentialSqrt:vne,scaleSequentialSymlog:F3,scaleSqrt:Qee,scaleSymlog:C3,scaleThreshold:D3,scaleTime:mne,scaleUtc:pne,tickFormat:j3},Symbol.toStringTag,{value:"Module"}));var Bx,oD;function K3(){if(oD)return Bx;oD=1;var e=Gl();function t(n,r,i){for(var s=-1,l=n.length;++s<l;){var c=n[s],f=r(c);if(f!=null&&(d===void 0?f===f&&!e(f):i(f,d)))var d=f,v=c}return v}return Bx=t,Bx}var qx,sD;function yne(){if(sD)return qx;sD=1;function e(t,n){return t>n}return qx=e,qx}var Ux,lD;function bne(){if(lD)return Ux;lD=1;var e=K3(),t=yne(),n=Yl();function r(i){return i&&i.length?e(i,n,t):void 0}return Ux=r,Ux}var xne=bne();const jp=gt(xne);var Hx,uD;function wne(){if(uD)return Hx;uD=1;function e(t,n){return t<n}return Hx=e,Hx}var Fx,cD;function Sne(){if(cD)return Fx;cD=1;var e=K3(),t=wne(),n=Yl();function r(i){return i&&i.length?e(i,n,t):void 0}return Fx=r,Fx}var One=Sne();const Ep=gt(One);var Gx,fD;function _ne(){if(fD)return Gx;fD=1;var e=wO(),t=Hi(),n=r3(),r=$n();function i(s,l){var c=r(s)?e:n;return c(s,t(l,3))}return Gx=i,Gx}var Vx,dD;function jne(){if(dD)return Vx;dD=1;var e=t3(),t=_ne();function n(r,i){return e(t(r,i),1)}return Vx=n,Vx}var Ene=jne();const Ane=gt(Ene);var Yx,hD;function Tne(){if(hD)return Yx;hD=1;var e=PO();function t(n,r){return e(n,r)}return Yx=t,Yx}var Cne=Tne();const Ap=gt(Cne);var Xl=1e9,Nne={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},s_,Tt=!0,yr="[DecimalError] ",To=yr+"Invalid argument: ",o_=yr+"Exponent out of range: ",Ql=Math.floor,wo=Math.pow,Mne=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Kn,tn=1e7,jt=7,X3=9007199254740991,sm=Ql(X3/jt),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,s=this;if(e=new s.constructor(e),s.s!==e.s)return s.s||-e.s;if(s.e!==e.e)return s.e>e.e^s.s<0?1:-1;for(r=s.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(s.d[t]!==e.d[t])return s.d[t]>e.d[t]^s.s<0?1:-1;return r===i?0:r>i^s.s<0?1:-1};xe.decimalPlaces=xe.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*jt;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 Ua(this,new this.constructor(e))};xe.dividedToIntegerBy=xe.idiv=function(e){var t=this,n=t.constructor;return xt(Ua(t,new n(e),0,1),n.precision)};xe.equals=xe.eq=function(e){return!this.cmp(e)};xe.exponent=function(){return Ht(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,s=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Kn))throw Error(yr+"NaN");if(n.s<1)throw Error(yr+(n.s?"NaN":"-Infinity"));return n.eq(Kn)?new r(0):(Tt=!1,t=Ua($c(n,s),$c(e,s),s),Tt=!0,xt(t,i))};xe.minus=xe.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?J3(t,e):Q3(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(yr+"NaN");return n.s?(Tt=!1,t=Ua(n,e,0,1).times(e),Tt=!0,n.minus(t)):xt(new r(n),i)};xe.naturalExponential=xe.exp=function(){return Z3(this)};xe.naturalLogarithm=xe.ln=function(){return $c(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?Q3(t,e):J3(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(To+e);if(t=Ht(i)+1,r=i.d.length-1,n=r*jt+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,s,l,c=this,f=c.constructor;if(c.s<1){if(!c.s)return new f(0);throw Error(yr+"NaN")}for(e=Ht(c),Tt=!1,i=Math.sqrt(+c),i==0||i==1/0?(t=oa(c.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Ql((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=l=n+3;;)if(s=r,r=s.plus(Ua(c,s,l+2)).times(.5),oa(s.d).slice(0,l)===(t=oa(r.d)).slice(0,l)){if(t=t.slice(l-3,l+1),i==l&&t=="4999"){if(xt(s,n+1,0),s.times(s).eq(c)){r=s;break}}else if(t!="9999")break;l+=4}return Tt=!0,xt(r,n)};xe.times=xe.mul=function(e){var t,n,r,i,s,l,c,f,d,v=this,p=v.constructor,g=v.d,x=(e=new p(e)).d;if(!v.s||!e.s)return new p(0);for(e.s*=v.s,n=v.e+e.e,f=g.length,d=x.length,f<d&&(s=g,g=x,x=s,l=f,f=d,d=l),s=[],l=f+d,r=l;r--;)s.push(0);for(r=d;--r>=0;){for(t=0,i=f+r;i>r;)c=s[i]+x[r]*g[i-r-1]+t,s[i--]=c%tn|0,t=c/tn|0;s[i]=(s[i]+t)%tn|0}for(;!s[--l];)s.pop();return t?++n:s.shift(),e.d=s,e.e=n,Tt?xt(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:(fa(e,0,Xl),t===void 0?t=r.rounding:fa(t,0,8),xt(n,e+Ht(n)+1,t))};xe.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=ko(r,!0):(fa(e,0,Xl),t===void 0?t=i.rounding:fa(t,0,8),r=xt(new i(r),e+1,t),n=ko(r,!0,e+1)),n};xe.toFixed=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?ko(i):(fa(e,0,Xl),t===void 0?t=s.rounding:fa(t,0,8),r=xt(new s(i),e+Ht(i)+1,t),n=ko(r.abs(),!1,e+Ht(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};xe.toInteger=xe.toint=function(){var e=this,t=e.constructor;return xt(new t(e),Ht(e)+1,t.rounding)};xe.toNumber=function(){return+this};xe.toPower=xe.pow=function(e){var t,n,r,i,s,l,c=this,f=c.constructor,d=12,v=+(e=new f(e));if(!e.s)return new f(Kn);if(c=new f(c),!c.s){if(e.s<1)throw Error(yr+"Infinity");return c}if(c.eq(Kn))return c;if(r=f.precision,e.eq(Kn))return xt(c,r);if(t=e.e,n=e.d.length-1,l=t>=n,s=c.s,l){if((n=v<0?-v:v)<=X3){for(i=new f(Kn),t=Math.ceil(r/jt+4),Tt=!1;n%2&&(i=i.times(c),pD(i.d,t)),n=Ql(n/2),n!==0;)c=c.times(c),pD(c.d,t);return Tt=!0,e.s<0?new f(Kn).div(i):xt(i,r)}}else if(s<0)throw Error(yr+"NaN");return s=s<0&&e.d[Math.max(t,n)]&1?-1:1,c.s=1,Tt=!1,i=e.times($c(c,r+d)),Tt=!0,i=Z3(i),i.s=s,i};xe.toPrecision=function(e,t){var n,r,i=this,s=i.constructor;return e===void 0?(n=Ht(i),r=ko(i,n<=s.toExpNeg||n>=s.toExpPos)):(fa(e,1,Xl),t===void 0?t=s.rounding:fa(t,0,8),i=xt(new s(i),e,t),n=Ht(i),r=ko(i,e<=n||n<=s.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):(fa(e,1,Xl),t===void 0?t=r.rounding:fa(t,0,8)),xt(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=Ht(e),n=e.constructor;return ko(e,t<=n.toExpNeg||t>=n.toExpPos)};function Q3(e,t){var n,r,i,s,l,c,f,d,v=e.constructor,p=v.precision;if(!e.s||!t.s)return t.s||(t=new v(e)),Tt?xt(t,p):t;if(f=e.d,d=t.d,l=e.e,i=t.e,f=f.slice(),s=l-i,s){for(s<0?(r=f,s=-s,c=d.length):(r=d,i=l,c=f.length),l=Math.ceil(p/jt),c=l>c?l+1:c+1,s>c&&(s=c,r.length=1),r.reverse();s--;)r.push(0);r.reverse()}for(c=f.length,s=d.length,c-s<0&&(s=c,r=d,d=f,f=r),n=0;s;)n=(f[--s]=f[s]+d[s]+n)/tn|0,f[s]%=tn;for(n&&(f.unshift(n),++i),c=f.length;f[--c]==0;)f.pop();return t.d=f,t.e=i,Tt?xt(t,p):t}function fa(e,t,n){if(e!==~~e||e<t||e>n)throw Error(To+e)}function oa(e){var t,n,r,i=e.length-1,s="",l=e[0];if(i>0){for(s+=l,t=1;t<i;t++)r=e[t]+"",n=jt-r.length,n&&(s+=Ci(n)),s+=r;l=e[t],r=l+"",n=jt-r.length,n&&(s+=Ci(n))}else if(l===0)return"0";for(;l%10===0;)l/=10;return s+l}var Ua=(function(){function e(r,i){var s,l=0,c=r.length;for(r=r.slice();c--;)s=r[c]*i+l,r[c]=s%tn|0,l=s/tn|0;return l&&r.unshift(l),r}function t(r,i,s,l){var c,f;if(s!=l)f=s>l?1:-1;else for(c=f=0;c<s;c++)if(r[c]!=i[c]){f=r[c]>i[c]?1:-1;break}return f}function n(r,i,s){for(var l=0;s--;)r[s]-=l,l=r[s]<i[s]?1:0,r[s]=l*tn+r[s]-i[s];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,s,l){var c,f,d,v,p,g,x,_,S,w,j,A,E,N,T,M,R,D,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(yr+"Division by zero");for(f=r.e-i.e,R=H.length,T=z.length,x=new L(Y),_=x.d=[],d=0;H[d]==(z[d]||0);)++d;if(H[d]>(z[d]||0)&&--f,s==null?A=s=L.precision:l?A=s+(Ht(r)-Ht(i))+1:A=s,A<0)return new L(0);if(A=A/jt+2|0,d=0,R==1)for(v=0,H=H[0],A++;(d<T||v)&&A--;d++)E=v*tn+(z[d]||0),_[d]=E/H|0,v=E%H|0;else{for(v=tn/(H[0]+1)|0,v>1&&(H=e(H,v),z=e(z,v),R=H.length,T=z.length),N=R,S=z.slice(0,R),w=S.length;w<R;)S[w++]=0;D=H.slice(),D.unshift(0),M=H[0],H[1]>=tn/2&&++M;do v=0,c=t(H,S,R,w),c<0?(j=S[0],R!=w&&(j=j*tn+(S[1]||0)),v=j/M|0,v>1?(v>=tn&&(v=tn-1),p=e(H,v),g=p.length,w=S.length,c=t(p,S,g,w),c==1&&(v--,n(p,R<g?D:H,g))):(v==0&&(c=v=1),p=H.slice()),g=p.length,g<w&&p.unshift(0),n(S,p,w),c==-1&&(w=S.length,c=t(H,S,R,w),c<1&&(v++,n(S,R<w?D:H,w))),w=S.length):c===0&&(v++,S=[0]),_[d++]=v,c&&S[0]?S[w++]=z[N]||0:(S=[z[N]],w=1);while((N++<T||S[0]!==void 0)&&A--)}return _[0]||_.shift(),x.e=f,xt(x,l?s+Ht(x)+1:s)}})();function Z3(e,t){var n,r,i,s,l,c,f=0,d=0,v=e.constructor,p=v.precision;if(Ht(e)>16)throw Error(o_+Ht(e));if(!e.s)return new v(Kn);for(Tt=!1,c=p,l=new v(.03125);e.abs().gte(.1);)e=e.times(l),d+=5;for(r=Math.log(wo(2,d))/Math.LN10*2+5|0,c+=r,n=i=s=new v(Kn),v.precision=c;;){if(i=xt(i.times(e),c),n=n.times(++f),l=s.plus(Ua(i,n,c)),oa(l.d).slice(0,c)===oa(s.d).slice(0,c)){for(;d--;)s=xt(s.times(s),c);return v.precision=p,t==null?(Tt=!0,xt(s,p)):s}s=l}}function Ht(e){for(var t=e.e*jt,n=e.d[0];n>=10;n/=10)t++;return t}function Wx(e,t,n){if(t>e.LN10.sd())throw Tt=!0,n&&(e.precision=n),Error(yr+"LN10 precision limit exceeded");return xt(new e(e.LN10),t)}function Ci(e){for(var t="";e--;)t+="0";return t}function $c(e,t){var n,r,i,s,l,c,f,d,v,p=1,g=10,x=e,_=x.d,S=x.constructor,w=S.precision;if(x.s<1)throw Error(yr+(x.s?"NaN":"-Infinity"));if(x.eq(Kn))return new S(0);if(t==null?(Tt=!1,d=w):d=t,x.eq(10))return t==null&&(Tt=!0),Wx(S,d);if(d+=g,S.precision=d,n=oa(_),r=n.charAt(0),s=Ht(x),Math.abs(s)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)x=x.times(e),n=oa(x.d),r=n.charAt(0),p++;s=Ht(x),r>1?(x=new S("0."+n),s++):x=new S(r+"."+n.slice(1))}else return f=Wx(S,d+2,w).times(s+""),x=$c(new S(r+"."+n.slice(1)),d-g).plus(f),S.precision=w,t==null?(Tt=!0,xt(x,w)):x;for(c=l=x=Ua(x.minus(Kn),x.plus(Kn),d),v=xt(x.times(x),d),i=3;;){if(l=xt(l.times(v),d),f=c.plus(Ua(l,new S(i),d)),oa(f.d).slice(0,d)===oa(c.d).slice(0,d))return c=c.times(2),s!==0&&(c=c.plus(Wx(S,d+2,w).times(s+""))),c=Ua(c,new S(p),d),S.precision=w,t==null?(Tt=!0,xt(c,w)):c;c=f,i+=2}}function mD(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=Ql(n/jt),e.d=[],r=(n+1)%jt,n<0&&(r+=jt),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=jt;r<i;)e.d.push(+t.slice(r,r+=jt));t=t.slice(r),r=jt-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),Tt&&(e.e>sm||e.e<-sm))throw Error(o_+n)}else e.s=0,e.e=0,e.d=[0];return e}function xt(e,t,n){var r,i,s,l,c,f,d,v,p=e.d;for(l=1,s=p[0];s>=10;s/=10)l++;if(r=t-l,r<0)r+=jt,i=t,d=p[v=0];else{if(v=Math.ceil((r+1)/jt),s=p.length,v>=s)return e;for(d=s=p[v],l=1;s>=10;s/=10)l++;r%=jt,i=r-jt+l}if(n!==void 0&&(s=wo(10,l-i-1),c=d/s%10|0,f=t<0||p[v+1]!==void 0||d%s,f=n<4?(c||f)&&(n==0||n==(e.s<0?3:2)):c>5||c==5&&(n==4||f||n==6&&(r>0?i>0?d/wo(10,l-i):0:p[v-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return f?(s=Ht(e),p.length=1,t=t-s-1,p[0]=wo(10,(jt-t%jt)%jt),e.e=Ql(-t/jt)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=v,s=1,v--):(p.length=v+1,s=wo(10,jt-r),p[v]=i>0?(d/wo(10,l-i)%wo(10,i)|0)*s:0),f)for(;;)if(v==0){(p[0]+=s)==tn&&(p[0]=1,++e.e);break}else{if(p[v]+=s,p[v]!=tn)break;p[v--]=0,s=1}for(r=p.length;p[--r]===0;)p.pop();if(Tt&&(e.e>sm||e.e<-sm))throw Error(o_+Ht(e));return e}function J3(e,t){var n,r,i,s,l,c,f,d,v,p,g=e.constructor,x=g.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new g(e),Tt?xt(t,x):t;if(f=e.d,p=t.d,r=t.e,d=e.e,f=f.slice(),l=d-r,l){for(v=l<0,v?(n=f,l=-l,c=p.length):(n=p,r=d,c=f.length),i=Math.max(Math.ceil(x/jt),c)+2,l>i&&(l=i,n.length=1),n.reverse(),i=l;i--;)n.push(0);n.reverse()}else{for(i=f.length,c=p.length,v=i<c,v&&(c=i),i=0;i<c;i++)if(f[i]!=p[i]){v=f[i]<p[i];break}l=0}for(v&&(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>l;){if(f[--i]<p[i]){for(s=i;s&&f[--s]===0;)f[s]=tn-1;--f[s],f[i]+=tn}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,Tt?xt(t,x):t):new g(0)}function ko(e,t,n){var r,i=Ht(e),s=oa(e.d),l=s.length;return t?(n&&(r=n-l)>0?s=s.charAt(0)+"."+s.slice(1)+Ci(r):l>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+Ci(-i-1)+s,n&&(r=n-l)>0&&(s+=Ci(r))):i>=l?(s+=Ci(i+1-l),n&&(r=n-i-1)>0&&(s=s+"."+Ci(r))):((r=i+1)<l&&(s=s.slice(0,r)+"."+s.slice(r)),n&&(r=n-l)>0&&(i+1===l&&(s+="."),s+=Ci(r))),e.s<0?"-"+s:s}function pD(e,t){if(e.length>t)return e.length=t,!0}function e5(e){var t,n,r;function i(s){var l=this;if(!(l instanceof i))return new i(s);if(l.constructor=i,s instanceof i){l.s=s.s,l.e=s.e,l.d=(s=s.d)?s.slice():s;return}if(typeof s=="number"){if(s*0!==0)throw Error(To+s);if(s>0)l.s=1;else if(s<0)s=-s,l.s=-1;else{l.s=0,l.e=0,l.d=[0];return}if(s===~~s&&s<1e7){l.e=0,l.d=[s];return}return mD(l,s.toString())}else if(typeof s!="string")throw Error(To+s);if(s.charCodeAt(0)===45?(s=s.slice(1),l.s=-1):l.s=1,Mne.test(s))mD(l,s);else throw Error(To+s)}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=e5,i.config=i.set=Rne,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 Rne(e){if(!e||typeof e!="object")throw Error(yr+"Object expected");var t,n,r,i=["precision",1,Xl,"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(Ql(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(To+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(To+n+": "+r);return this}var s_=e5(Nne);Kn=new s_(1);const vt=s_;function Dne(e){return Lne(e)||$ne(e)||kne(e)||Pne()}function Pne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
317
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kne(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 $ne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Lne(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}var Ine=function(t){return t},t5={},n5=function(t){return t===t5},vD=function(t){return function n(){return arguments.length===0||arguments.length===1&&n5(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},zne=function e(t,n){return t===1?n:vD(function(){for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];var l=i.filter(function(c){return c!==t5}).length;return l>=t?n.apply(void 0,i):e(t-l,vD(function(){for(var c=arguments.length,f=new Array(c),d=0;d<c;d++)f[d]=arguments[d];var v=i.map(function(p){return n5(p)?f.shift():p});return n.apply(void 0,Dne(v).concat(f))}))})},Tp=function(t){return zne(t.length,t)},w1=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},Bne=Tp(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),qne=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Ine;var i=n.reverse(),s=i[0],l=i.slice(1);return function(){return l.reduce(function(c,f){return f(c)},s.apply(void 0,arguments))}},S1=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},r5=function(t){var n=null,r=null;return function(){for(var i=arguments.length,s=new Array(i),l=0;l<i;l++)s[l]=arguments[l];return n&&s.every(function(c,f){return c===n[f]})||(n=s,r=t.apply(void 0,s)),r}};function Une(e){var t;return e===0?t=1:t=Math.floor(new vt(e).abs().log(10).toNumber())+1,t}function Hne(e,t,n){for(var r=new vt(e),i=0,s=[];r.lt(t)&&i<1e5;)s.push(r.toNumber()),r=r.add(n),i++;return s}var Fne=Tp(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),Gne=Tp(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),Vne=Tp(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const Cp={rangeStep:Hne,getDigitCount:Une,interpolateNumber:Fne,uninterpolateNumber:Gne,uninterpolateTruncation:Vne};function O1(e){return Kne(e)||Wne(e)||a5(e)||Yne()}function Yne(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
318
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wne(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Kne(e){if(Array.isArray(e))return _1(e)}function Lc(e,t){return Zne(e)||Qne(e,t)||a5(e,t)||Xne()}function Xne(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
319
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a5(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 _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 Qne(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var l=e[Symbol.iterator](),c;!(r=(c=l.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,s=f}finally{try{!r&&l.return!=null&&l.return()}finally{if(i)throw s}}return n}}function Zne(e){if(Array.isArray(e))return e}function i5(e){var t=Lc(e,2),n=t[0],r=t[1],i=n,s=r;return n>r&&(i=r,s=n),[i,s]}function o5(e,t,n){if(e.lte(0))return new vt(0);var r=Cp.getDigitCount(e.toNumber()),i=new vt(10).pow(r),s=e.div(i),l=r!==1?.05:.1,c=new vt(Math.ceil(s.div(l).toNumber())).add(n).mul(l),f=c.mul(i);return t?f:new vt(Math.ceil(f))}function Jne(e,t,n){var r=1,i=new vt(e);if(!i.isint()&&n){var s=Math.abs(e);s<1?(r=new vt(10).pow(Cp.getDigitCount(e)-1),i=new vt(Math.floor(i.div(r).toNumber())).mul(r)):s>1&&(i=new vt(Math.floor(e)))}else e===0?i=new vt(Math.floor((t-1)/2)):n||(i=new vt(Math.floor(e)));var l=Math.floor((t-1)/2),c=qne(Bne(function(f){return i.add(new vt(f-l).mul(r)).toNumber()}),w1);return c(0,t)}function s5(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 vt(0),tickMin:new vt(0),tickMax:new vt(0)};var s=o5(new vt(t).sub(e).div(n-1),r,i),l;e<=0&&t>=0?l=new vt(0):(l=new vt(e).add(t).div(2),l=l.sub(new vt(l).mod(s)));var c=Math.ceil(l.sub(e).div(s).toNumber()),f=Math.ceil(new vt(t).sub(l).div(s).toNumber()),d=c+f+1;return d>n?s5(e,t,n,r,i+1):(d<n&&(f=t>0?f+(n-d):f,c=t>0?c:c+(n-d)),{step:s,tickMin:l.sub(new vt(c).mul(s)),tickMax:l.add(new vt(f).mul(s))})}function ere(e){var t=Lc(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=Math.max(i,2),c=i5([n,r]),f=Lc(c,2),d=f[0],v=f[1];if(d===-1/0||v===1/0){var p=v===1/0?[d].concat(O1(w1(0,i-1).map(function(){return 1/0}))):[].concat(O1(w1(0,i-1).map(function(){return-1/0})),[v]);return n>r?S1(p):p}if(d===v)return Jne(d,i,s);var g=s5(d,v,l,s),x=g.step,_=g.tickMin,S=g.tickMax,w=Cp.rangeStep(_,S.add(new vt(.1).mul(x)),x);return n>r?S1(w):w}function tre(e,t){var n=Lc(e,2),r=n[0],i=n[1],s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,l=i5([r,i]),c=Lc(l,2),f=c[0],d=c[1];if(f===-1/0||d===1/0)return[r,i];if(f===d)return[f];var v=Math.max(t,2),p=o5(new vt(d).sub(f).div(v-1),s,0),g=[].concat(O1(Cp.rangeStep(new vt(f),new vt(d).sub(new vt(.99).mul(p)),p)),[d]);return r>i?S1(g):g}var nre=r5(ere),rre=r5(tre),are="Invariant failed";function $o(e,t){throw new Error(are)}var ire=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function yl(e){"@babel/helpers - typeof";return yl=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},yl(e)}function lm(){return lm=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},lm.apply(this,arguments)}function ore(e,t){return cre(e)||ure(e,t)||lre(e,t)||sre()}function sre(){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 lre(e,t){if(e){if(typeof e=="string")return gD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gD(e,t)}}function gD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ure(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function cre(e){if(Array.isArray(e))return e}function fre(e,t){if(e==null)return{};var n=dre(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dre(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 hre(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,c5(r.key),r)}}function pre(e,t,n){return t&&mre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vre(e,t,n){return t=um(t),gre(e,l5()?Reflect.construct(t,n||[],um(e).constructor):t.apply(e,n))}function gre(e,t){if(t&&(yl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yre(e)}function yre(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(l5=function(){return!!e})()}function um(e){return um=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},um(e)}function bre(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j1(e,t)}function j1(e,t){return j1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},j1(e,t)}function u5(e,t,n){return t=c5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c5(e){var t=xre(e,"string");return yl(t)=="symbol"?t:t+""}function xre(e,t){if(yl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Af=(function(e){function t(){return hre(this,t),vre(this,t,arguments)}return bre(t,e),pre(t,[{key:"render",value:function(){var r=this.props,i=r.offset,s=r.layout,l=r.width,c=r.dataKey,f=r.data,d=r.dataPointFormatter,v=r.xAxis,p=r.yAxis,g=fre(r,ire),x=Ve(g,!1);this.props.direction==="x"&&v.type!=="number"&&$o();var _=f.map(function(S){var w=d(S,c),j=w.x,A=w.y,E=w.value,N=w.errorVal;if(!N)return null;var T=[],M,R;if(Array.isArray(N)){var D=ore(N,2);M=D[0],R=D[1]}else M=R=N;if(s==="vertical"){var L=v.scale,Y=A+i,z=Y+l,H=Y-l,V=L(E-M),Q=L(E+R);T.push({x1:Q,y1:z,x2:Q,y2:H}),T.push({x1:V,y1:Y,x2:Q,y2:Y}),T.push({x1:V,y1:z,x2:V,y2:H})}else if(s==="horizontal"){var K=p.scale,k=j+i,q=k-l,B=k+l,W=K(E-M),se=K(E+R);T.push({x1:q,y1:se,x2:B,y2:se}),T.push({x1:k,y1:W,x2:k,y2:se}),T.push({x1:q,y1:W,x2:B,y2:W})}return I.createElement(Lt,lm({className:"recharts-errorBar",key:"bar-".concat(T.map(function($){return"".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))},x),T.map(function($){return I.createElement("line",lm({},$,{key:"line-".concat($.x1,"-").concat($.x2,"-").concat($.y1,"-").concat($.y2)}))}))});return I.createElement(Lt,{className:"recharts-errorBars"},_)}}])})(I.Component);u5(Af,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});u5(Af,"displayName","ErrorBar");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 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 yo(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){wre(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 wre(e,t,n){return t=Sre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sre(e){var t=Ore(e,"string");return Ic(t)=="symbol"?t:t+""}function Ore(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 f5=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,s=t.legendContent,l=Yn(n,Eo);if(!l)return null;var c=Eo.defaultProps,f=c!==void 0?yo(yo({},c),l.props):{},d;return l.props&&l.props.payload?d=l.props&&l.props.payload:s==="children"?d=(r||[]).reduce(function(v,p){var g=p.item,x=p.props,_=x.sectors||x.data||[];return v.concat(_.map(function(S){return{type:l.props.iconType||g.props.legendType,value:S.name,color:S.fill,payload:S}}))},[]):d=(r||[]).map(function(v){var p=v.item,g=p.type.defaultProps,x=g!==void 0?yo(yo({},g),p.props):{},_=x.dataKey,S=x.name,w=x.legendType,j=x.hide;return{inactive:j,dataKey:_,type:f.iconType||w||"square",color:l_(p),value:S||_,payload:x}}),yo(yo(yo({},f),Eo.getWithHeight(l,i)),{},{payload:d,item:l})};function zc(e){"@babel/helpers - typeof";return zc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function bD(e){return Are(e)||Ere(e)||jre(e)||_re()}function _re(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
321
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jre(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 Ere(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Are(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 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 Pt(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){Js(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 Js(e,t,n){return t=Tre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tre(e){var t=Cre(e,"string");return zc(t)=="symbol"?t:t+""}function Cre(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 Zn(e,t,n){return qe(e)||qe(t)?n:Kt(t)?vr(e,t,n):$e(t)?t(e):n}function mc(e,t,n,r){var i=Ane(e,function(c){return Zn(c,t)});if(n==="number"){var s=i.filter(function(c){return ye(c)||parseFloat(c)});return s.length?[Ep(s),jp(s)]:[1/0,-1/0]}var l=r?i.filter(function(c){return!qe(c)}):i;return l.map(function(c){return Kt(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,s=arguments.length>3?arguments[3]:void 0,l=-1,c=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(c<=1)return 0;if(s&&s.axisType==="angleAxis"&&Math.abs(Math.abs(s.range[1]-s.range[0])-360)<=1e-6)for(var f=s.range,d=0;d<c;d++){var v=d>0?i[d-1].coordinate:i[c-1].coordinate,p=i[d].coordinate,g=d>=c-1?i[0].coordinate:i[d+1].coordinate,x=void 0;if(Rr(p-v)!==Rr(g-p)){var _=[];if(Rr(g-p)===Rr(f[1]-f[0])){x=g;var S=p+f[1]-f[0];_[0]=Math.min(S,(S+v)/2),_[1]=Math.max(S,(S+v)/2)}else{x=v;var w=g+f[1]-f[0];_[0]=Math.min(p,(w+p)/2),_[1]=Math.max(p,(w+p)/2)}var j=[Math.min(p,(x+p)/2),Math.max(p,(x+p)/2)];if(t>j[0]&&t<=j[1]||t>=_[0]&&t<=_[1]){l=i[d].index;break}}else{var A=Math.min(v,g),E=Math.max(v,g);if(t>(A+p)/2&&t<=(E+p)/2){l=i[d].index;break}}}else for(var N=0;N<c;N++)if(N===0&&t<=(r[N].coordinate+r[N+1].coordinate)/2||N>0&&N<c-1&&t>(r[N].coordinate+r[N-1].coordinate)/2&&t<=(r[N].coordinate+r[N+1].coordinate)/2||N===c-1&&t>(r[N].coordinate+r[N-1].coordinate)/2){l=r[N].index;break}return l},l_=function(t){var n,r=t,i=r.type.displayName,s=(n=t.type)!==null&&n!==void 0&&n.defaultProps?Pt(Pt({},t.type.defaultProps),t.props):t.props,l=s.stroke,c=s.fill,f;switch(i){case"Line":f=l;break;case"Area":case"Radar":f=l&&l!=="none"?l:c;break;default:f=c;break}return f},Mre=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,s=i===void 0?{}:i;if(!s)return{};for(var l={},c=Object.keys(s),f=0,d=c.length;f<d;f++)for(var v=s[c[f]].stackGroups,p=Object.keys(v),g=0,x=p.length;g<x;g++){var _=v[p[g]],S=_.items,w=_.cateAxisId,j=S.filter(function(R){return Ba(R.type).indexOf("Bar")>=0});if(j&&j.length){var A=j[0].type.defaultProps,E=A!==void 0?Pt(Pt({},A),j[0].props):j[0].props,N=E.barSize,T=E[w];l[T]||(l[T]=[]);var M=qe(N)?n:N;l[T].push({item:j[0],stackList:j.slice(1),barSize:qe(M)?void 0:Po(M,r,0)})}}return l},Rre=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,s=t.sizeList,l=s===void 0?[]:s,c=t.maxBarSize,f=l.length;if(f<1)return null;var d=Po(n,i,0,!0),v,p=[];if(l[0].barSize===+l[0].barSize){var g=!1,x=i/f,_=l.reduce(function(N,T){return N+T.barSize||0},0);_+=(f-1)*d,_>=i&&(_-=(f-1)*d,d=0),_>=i&&x>0&&(g=!0,x*=.9,_=f*x);var S=(i-_)/2>>0,w={offset:S-d,size:0};v=l.reduce(function(N,T){var M={item:T.item,position:{offset:w.offset+w.size+d,size:g?x:T.barSize}},R=[].concat(bD(N),[M]);return w=R[R.length-1].position,T.stackList&&T.stackList.length&&T.stackList.forEach(function(D){R.push({item:D,position:w})}),R},p)}else{var j=Po(r,i,0,!0);i-2*j-(f-1)*d<=0&&(d=0);var A=(i-2*j-(f-1)*d)/f;A>1&&(A>>=0);var E=c===+c?Math.min(A,c):A;v=l.reduce(function(N,T,M){var R=[].concat(bD(N),[{item:T.item,position:{offset:j+(A+d)*M+(A-E)/2,size:E}}]);return T.stackList&&T.stackList.length&&T.stackList.forEach(function(D){R.push({item:D,position:R[R.length-1].position})}),R},p)}return v},Dre=function(t,n,r,i){var s=r.children,l=r.width,c=r.margin,f=l-(c.left||0)-(c.right||0),d=f5({children:s,legendWidth:f});if(d){var v=i||{},p=v.width,g=v.height,x=d.align,_=d.verticalAlign,S=d.layout;if((S==="vertical"||S==="horizontal"&&_==="middle")&&x!=="center"&&ye(t[x]))return Pt(Pt({},t),{},Js({},x,t[x]+(p||0)));if((S==="horizontal"||S==="vertical"&&x==="center")&&_!=="middle"&&ye(t[_]))return Pt(Pt({},t),{},Js({},_,t[_]+(g||0)))}return t},Pre=function(t,n,r){return qe(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},d5=function(t,n,r,i,s){var l=n.props.children,c=gr(l,Af).filter(function(d){return Pre(i,s,d.props.direction)});if(c&&c.length){var f=c.map(function(d){return d.props.dataKey});return t.reduce(function(d,v){var p=Zn(v,r);if(qe(p))return d;var g=Array.isArray(p)?[Ep(p),jp(p)]:[p,p],x=f.reduce(function(_,S){var w=Zn(v,S,0),j=g[0]-Math.abs(Array.isArray(w)?w[0]:w),A=g[1]+Math.abs(Array.isArray(w)?w[1]:w);return[Math.min(j,_[0]),Math.max(A,_[1])]},[1/0,-1/0]);return[Math.min(x[0],d[0]),Math.max(x[1],d[1])]},[1/0,-1/0])}return null},kre=function(t,n,r,i,s){var l=n.map(function(c){return d5(t,c,r,s,i)}).filter(function(c){return!qe(c)});return l&&l.length?l.reduce(function(c,f){return[Math.min(c[0],f[0]),Math.max(c[1],f[1])]},[1/0,-1/0]):null},h5=function(t,n,r,i,s){var l=n.map(function(f){var d=f.props.dataKey;return r==="number"&&d&&d5(t,f,d,i)||mc(t,d,r,s)});if(r==="number")return l.reduce(function(f,d){return[Math.min(f[0],d[0]),Math.max(f[1],d[1])]},[1/0,-1/0]);var c={};return l.reduce(function(f,d){for(var v=0,p=d.length;v<p;v++)c[d[v]]||(c[d[v]]=!0,f.push(d[v]));return f},[])},m5=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},p5=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var s,l,c=t.map(function(f){return f.coordinate===n&&(s=!0),f.coordinate===r&&(l=!0),f.coordinate});return s||c.push(n),l||c.push(r),c},Ia=function(t,n,r){if(!t)return null;var i=t.scale,s=t.duplicateDomain,l=t.type,c=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,d=(n||r)&&l==="category"&&i.bandwidth?i.bandwidth()/f:0;if(d=t.axisType==="angleAxis"&&(c==null?void 0:c.length)>=2?Rr(c[0]-c[1])*2*d:d,n&&(t.ticks||t.niceTicks)){var v=(t.ticks||t.niceTicks).map(function(p){var g=s?s.indexOf(p):p;return{coordinate:i(g)+d,value:p,offset:d}});return v.filter(function(p){return!xf(p.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(p,g){return{coordinate:i(p)+d,value:p,index:g,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,g){return{coordinate:i(p)+d,value:s?s[p]:p,index:g,offset:d}})},Kx=new WeakMap,oh=function(t,n){if(typeof n!="function")return t;Kx.has(t)||Kx.set(t,new WeakMap);var r=Kx.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},$re=function(t,n,r){var i=t.scale,s=t.type,l=t.layout,c=t.axisType;if(i==="auto")return l==="radial"&&c==="radiusAxis"?{scale:Mc(),realScaleType:"band"}:l==="radial"&&c==="angleAxis"?{scale:rm(),realScaleType:"linear"}:s==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:hc(),realScaleType:"point"}:s==="category"?{scale:Mc(),realScaleType:"band"}:{scale:rm(),realScaleType:"linear"};if(Do(i)){var f="scale".concat(dp(i));return{scale:(iD[f]||hc)(),realScaleType:iD[f]?f:"point"}}return $e(i)?{scale:i}:{scale:hc(),realScaleType:"point"}},wD=1e-4,Lre=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),s=Math.min(i[0],i[1])-wD,l=Math.max(i[0],i[1])+wD,c=t(n[0]),f=t(n[r-1]);(c<s||c>l||f<s||f>l)&&t.domain([n[0],n[r-1]])}},Ire=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},zre=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]),s=[t[0],t[1]];return(!ye(t[0])||t[0]<r)&&(s[0]=r),(!ye(t[1])||t[1]>i)&&(s[1]=i),s[0]>i&&(s[0]=i),s[1]<r&&(s[1]=r),s},Bre=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,l=0,c=0;c<n;++c){var f=xf(t[c][r][1])?t[c][r][0]:t[c][r][1];f>=0?(t[c][r][0]=s,t[c][r][1]=s+f,s=t[c][r][1]):(t[c][r][0]=l,t[c][r][1]=l+f,l=t[c][r][1])}},qre=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var s=0,l=0;l<n;++l){var c=xf(t[l][r][1])?t[l][r][0]:t[l][r][1];c>=0?(t[l][r][0]=s,t[l][r][1]=s+c,s=t[l][r][1]):(t[l][r][0]=0,t[l][r][1]=0)}},Ure={sign:Bre,expand:_X,none:cl,silhouette:jX,wiggle:EX,positive:qre},Hre=function(t,n,r){var i=n.map(function(c){return c.props.dataKey}),s=Ure[r],l=OX().keys(i).value(function(c,f){return+Zn(c,f,0)}).order(n1).offset(s);return l(t)},Fre=function(t,n,r,i,s,l){if(!t)return null;var c=l?n.reverse():n,f={},d=c.reduce(function(p,g){var x,_=(x=g.type)!==null&&x!==void 0&&x.defaultProps?Pt(Pt({},g.type.defaultProps),g.props):g.props,S=_.stackId,w=_.hide;if(w)return p;var j=_[r],A=p[j]||{hasStack:!1,stackGroups:{}};if(Kt(S)){var E=A.stackGroups[S]||{numericAxisId:r,cateAxisId:i,items:[]};E.items.push(g),A.hasStack=!0,A.stackGroups[S]=E}else A.stackGroups[wf("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[g]};return Pt(Pt({},p),{},Js({},j,A))},f),v={};return Object.keys(d).reduce(function(p,g){var x=d[g];if(x.hasStack){var _={};x.stackGroups=Object.keys(x.stackGroups).reduce(function(S,w){var j=x.stackGroups[w];return Pt(Pt({},S),{},Js({},w,{numericAxisId:r,cateAxisId:i,items:j.items,stackedData:Hre(t,j.items,s)}))},_)}return Pt(Pt({},p),{},Js({},g,x))},v)},Gre=function(t,n){var r=n.realScaleType,i=n.type,s=n.tickCount,l=n.originalDomain,c=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(s&&i==="number"&&l&&(l[0]==="auto"||l[1]==="auto")){var d=t.domain();if(!d.length)return null;var v=nre(d,s,c);return t.domain([Ep(v),jp(v)]),{niceTicks:v}}if(s&&i==="number"){var p=t.domain(),g=rre(p,s,c);return{niceTicks:g}}return null};function SD(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,s=e.index,l=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!qe(i[t.dataKey])){var c=Lh(n,"value",i[t.dataKey]);if(c)return c.coordinate+r/2}return n[s]?n[s].coordinate+r/2:null}var f=Zn(i,qe(l)?t.dataKey:l);return qe(f)?null:t.scale(f)}var OD=function(t){var n=t.axis,r=t.ticks,i=t.offset,s=t.bandSize,l=t.entry,c=t.index;if(n.type==="category")return r[c]?r[c].coordinate+i:null;var f=Zn(l,n.dataKey,n.domain[c]);return qe(f)?null:n.scale(f)-s/2+i},Vre=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),s=Math.max(r[0],r[1]);return i<=0&&s>=0?0:s<0?s:i}return r[0]},Yre=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?Pt(Pt({},t.type.defaultProps),t.props):t.props,s=i.stackId;if(Kt(s)){var l=n[s];if(l){var c=l.items.indexOf(t);return c>=0?l.stackedData[c]:null}}return null},Wre=function(t){return t.reduce(function(n,r){return[Ep(r.concat([n[0]]).filter(ye)),jp(r.concat([n[1]]).filter(ye))]},[1/0,-1/0])},v5=function(t,n,r){return Object.keys(t).reduce(function(i,s){var l=t[s],c=l.stackedData,f=c.reduce(function(d,v){var p=Wre(v.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})},_D=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,jD=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,A1=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(_D.test(t[0])){var s=+_D.exec(t[0])[1];i[0]=n[0]-s}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(jD.test(t[1])){var l=+jD.exec(t[1])[1];i[1]=n[1]+l}else $e(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},cm=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 s=$O(n,function(p){return p.coordinate}),l=1/0,c=1,f=s.length;c<f;c++){var d=s[c],v=s[c-1];l=Math.min((d.coordinate||0)-(v.coordinate||0),l)}return l===1/0?0:l}return r?void 0:0},ED=function(t,n,r){return!t||!t.length||Ap(t,vr(r,"type.defaultProps.domain"))?n:t},g5=function(t,n){var r=t.type.defaultProps?Pt(Pt({},t.type.defaultProps),t.props):t.props,i=r.dataKey,s=r.name,l=r.unit,c=r.formatter,f=r.tooltipType,d=r.chartType,v=r.hide;return Pt(Pt({},Ve(t,!1)),{},{dataKey:i,unit:l,formatter:c,name:s||i,color:l_(t),value:Zn(n,i),type:f,payload:n,chartType:d,hide:v})};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 AD(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 TD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AD(Object(n),!0).forEach(function(r){Kre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kre(e,t,n){return t=Xre(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xre(e){var t=Qre(e,"string");return Bc(t)=="symbol"?t:t+""}function Qre(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 fm=Math.PI/180,Zre=function(t){return t*180/Math.PI},cn=function(t,n,r,i){return{x:t+Math.cos(-fm*i)*r,y:n+Math.sin(-fm*i)*r}},Jre=function(t,n){var r=t.x,i=t.y,s=n.x,l=n.y;return Math.sqrt(Math.pow(r-s,2)+Math.pow(i-l,2))},eae=function(t,n){var r=t.x,i=t.y,s=n.cx,l=n.cy,c=Jre({x:r,y:i},{x:s,y:l});if(c<=0)return{radius:c};var f=(r-s)/c,d=Math.acos(f);return i>l&&(d=2*Math.PI-d),{radius:c,angle:Zre(d),angleInRadian:d}},tae=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),s=Math.floor(r/360),l=Math.min(i,s);return{startAngle:n-l*360,endAngle:r-l*360}},nae=function(t,n){var r=n.startAngle,i=n.endAngle,s=Math.floor(r/360),l=Math.floor(i/360),c=Math.min(s,l);return t+c*360},CD=function(t,n){var r=t.x,i=t.y,s=eae({x:r,y:i},n),l=s.radius,c=s.angle,f=n.innerRadius,d=n.outerRadius;if(l<f||l>d)return!1;if(l===0)return!0;var v=tae(n),p=v.startAngle,g=v.endAngle,x=c,_;if(p<=g){for(;x>g;)x-=360;for(;x<p;)x+=360;_=x>=p&&x<=g}else{for(;x>p;)x-=360;for(;x<g;)x+=360;_=x>=g&&x<=p}return _?TD(TD({},n),{},{radius:l,angle:nae(x,n)}):null};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)}var rae=["offset"];function aae(e){return lae(e)||sae(e)||oae(e)||iae()}function iae(){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 oae(e,t){if(e){if(typeof e=="string")return T1(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 T1(e,t)}}function sae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lae(e){if(Array.isArray(e))return T1(e)}function T1(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 uae(e,t){if(e==null)return{};var n=cae(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ND(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Wt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ND(Object(n),!0).forEach(function(r){fae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ND(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fae(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=hae(e,"string");return qc(t)=="symbol"?t:t+""}function hae(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 Uc(){return Uc=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},Uc.apply(this,arguments)}var mae=function(t){var n=t.value,r=t.formatter,i=qe(t.children)?n:t.children;return $e(r)?r(i):i},pae=function(t,n){var r=Rr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},vae=function(t,n,r){var i=t.position,s=t.viewBox,l=t.offset,c=t.className,f=s,d=f.cx,v=f.cy,p=f.innerRadius,g=f.outerRadius,x=f.startAngle,_=f.endAngle,S=f.clockWise,w=(p+g)/2,j=pae(x,_),A=j>=0?1:-1,E,N;i==="insideStart"?(E=x+A*l,N=S):i==="insideEnd"?(E=_-A*l,N=!S):i==="end"&&(E=_+A*l,N=S),N=j<=0?N:!N;var T=cn(d,v,w,E),M=cn(d,v,w,E+(N?1:-1)*359),R="M".concat(T.x,",").concat(T.y,`
|
|
323
|
+
A`).concat(w,",").concat(w,",0,1,").concat(N?0:1,`,
|
|
324
|
+
`).concat(M.x,",").concat(M.y),D=qe(t.id)?wf("recharts-radial-line-"):t.id;return I.createElement("text",Uc({},r,{dominantBaseline:"central",className:Ye("recharts-radial-bar-label",c)}),I.createElement("defs",null,I.createElement("path",{id:D,d:R})),I.createElement("textPath",{xlinkHref:"#".concat(D)},n))},gae=function(t){var n=t.viewBox,r=t.offset,i=t.position,s=n,l=s.cx,c=s.cy,f=s.innerRadius,d=s.outerRadius,v=s.startAngle,p=s.endAngle,g=(v+p)/2;if(i==="outside"){var x=cn(l,c,d+r,g),_=x.x,S=x.y;return{x:_,y:S,textAnchor:_>=l?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:l,y:c,textAnchor:"middle",verticalAnchor:"end"};var w=(f+d)/2,j=cn(l,c,w,g),A=j.x,E=j.y;return{x:A,y:E,textAnchor:"middle",verticalAnchor:"middle"}},yae=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,s=t.position,l=n,c=l.x,f=l.y,d=l.width,v=l.height,p=v>=0?1:-1,g=p*i,x=p>0?"end":"start",_=p>0?"start":"end",S=d>=0?1:-1,w=S*i,j=S>0?"end":"start",A=S>0?"start":"end";if(s==="top"){var E={x:c+d/2,y:f-p*i,textAnchor:"middle",verticalAnchor:x};return Wt(Wt({},E),r?{height:Math.max(f-r.y,0),width:d}:{})}if(s==="bottom"){var N={x:c+d/2,y:f+v+g,textAnchor:"middle",verticalAnchor:_};return Wt(Wt({},N),r?{height:Math.max(r.y+r.height-(f+v),0),width:d}:{})}if(s==="left"){var T={x:c-w,y:f+v/2,textAnchor:j,verticalAnchor:"middle"};return Wt(Wt({},T),r?{width:Math.max(T.x-r.x,0),height:v}:{})}if(s==="right"){var M={x:c+d+w,y:f+v/2,textAnchor:A,verticalAnchor:"middle"};return Wt(Wt({},M),r?{width:Math.max(r.x+r.width-M.x,0),height:v}:{})}var R=r?{width:d,height:v}:{};return s==="insideLeft"?Wt({x:c+w,y:f+v/2,textAnchor:A,verticalAnchor:"middle"},R):s==="insideRight"?Wt({x:c+d-w,y:f+v/2,textAnchor:j,verticalAnchor:"middle"},R):s==="insideTop"?Wt({x:c+d/2,y:f+g,textAnchor:"middle",verticalAnchor:_},R):s==="insideBottom"?Wt({x:c+d/2,y:f+v-g,textAnchor:"middle",verticalAnchor:x},R):s==="insideTopLeft"?Wt({x:c+w,y:f+g,textAnchor:A,verticalAnchor:_},R):s==="insideTopRight"?Wt({x:c+d-w,y:f+g,textAnchor:j,verticalAnchor:_},R):s==="insideBottomLeft"?Wt({x:c+w,y:f+v-g,textAnchor:A,verticalAnchor:x},R):s==="insideBottomRight"?Wt({x:c+d-w,y:f+v-g,textAnchor:j,verticalAnchor:x},R):Vl(s)&&(ye(s.x)||So(s.x))&&(ye(s.y)||So(s.y))?Wt({x:c+Po(s.x,d),y:f+Po(s.y,v),textAnchor:"end",verticalAnchor:"end"},R):Wt({x:c+d/2,y:f+v/2,textAnchor:"middle",verticalAnchor:"middle"},R)},bae=function(t){return"cx"in t&&ye(t.cx)};function vn(e){var t=e.offset,n=t===void 0?5:t,r=uae(e,rae),i=Wt({offset:n},r),s=i.viewBox,l=i.position,c=i.value,f=i.children,d=i.content,v=i.className,p=v===void 0?"":v,g=i.textBreakAll;if(!s||qe(c)&&qe(f)&&!O.isValidElement(d)&&!$e(d))return null;if(O.isValidElement(d))return O.cloneElement(d,i);var x;if($e(d)){if(x=O.createElement(d,i),O.isValidElement(x))return x}else x=mae(i);var _=bae(s),S=Ve(i,!0);if(_&&(l==="insideStart"||l==="insideEnd"||l==="end"))return vae(i,x,S);var w=_?gae(i):yae(i);return I.createElement(Xh,Uc({className:Ye("recharts-label",p)},S,w,{breakAll:g}),x)}vn.displayName="Label";var y5=function(t){var n=t.cx,r=t.cy,i=t.angle,s=t.startAngle,l=t.endAngle,c=t.r,f=t.radius,d=t.innerRadius,v=t.outerRadius,p=t.x,g=t.y,x=t.top,_=t.left,S=t.width,w=t.height,j=t.clockWise,A=t.labelViewBox;if(A)return A;if(ye(S)&&ye(w)){if(ye(p)&&ye(g))return{x:p,y:g,width:S,height:w};if(ye(x)&&ye(_))return{x,y:_,width:S,height:w}}return ye(p)&&ye(g)?{x:p,y:g,width:0,height:0}:ye(n)&&ye(r)?{cx:n,cy:r,startAngle:s||i||0,endAngle:l||i||0,innerRadius:d||0,outerRadius:v||f||c||0,clockWise:j}:t.viewBox?t.viewBox:{}},xae=function(t,n){return t?t===!0?I.createElement(vn,{key:"label-implicit",viewBox:n}):Kt(t)?I.createElement(vn,{key:"label-implicit",viewBox:n,value:t}):O.isValidElement(t)?t.type===vn?O.cloneElement(t,{key:"label-implicit",viewBox:n}):I.createElement(vn,{key:"label-implicit",content:t,viewBox:n}):$e(t)?I.createElement(vn,{key:"label-implicit",content:t,viewBox:n}):Vl(t)?I.createElement(vn,Uc({viewBox:n},t,{key:"label-implicit"})):null:null},wae=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,s=y5(t),l=gr(i,vn).map(function(f,d){return O.cloneElement(f,{viewBox:n||s,key:"label-".concat(d)})});if(!r)return l;var c=xae(t.label,n||s);return[c].concat(aae(l))};vn.parseViewBox=y5;vn.renderCallByParent=wae;var Xx,MD;function Sae(){if(MD)return Xx;MD=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return Xx=e,Xx}var Oae=Sae();const _ae=gt(Oae);function Hc(e){"@babel/helpers - typeof";return Hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hc(e)}var jae=["valueAccessor"],Eae=["data","dataKey","clockWise","id","textBreakAll"];function Aae(e){return Mae(e)||Nae(e)||Cae(e)||Tae()}function Tae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
325
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cae(e,t){if(e){if(typeof e=="string")return C1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return C1(e,t)}}function Nae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Mae(e){if(Array.isArray(e))return C1(e)}function C1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function dm(){return dm=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},dm.apply(this,arguments)}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 DD(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){Rae(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 Rae(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=Pae(e,"string");return Hc(t)=="symbol"?t:t+""}function Pae(e,t){if(Hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PD(e,t){if(e==null)return{};var n=kae(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kae(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var $ae=function(t){return Array.isArray(t.value)?_ae(t.value):t.value};function Pi(e){var t=e.valueAccessor,n=t===void 0?$ae:t,r=PD(e,jae),i=r.data,s=r.dataKey,l=r.clockWise,c=r.id,f=r.textBreakAll,d=PD(r,Eae);return!i||!i.length?null:I.createElement(Lt,{className:"recharts-label-list"},i.map(function(v,p){var g=qe(s)?n(v,p):Zn(v&&v.payload,s),x=qe(c)?{}:{id:"".concat(c,"-").concat(p)};return I.createElement(vn,dm({},Ve(v,!0),d,x,{parentViewBox:v.parentViewBox,value:g,textBreakAll:f,viewBox:vn.parseViewBox(qe(l)?v:DD(DD({},v),{},{clockWise:l})),key:"label-".concat(p),index:p}))}))}Pi.displayName="LabelList";function Lae(e,t){return e?e===!0?I.createElement(Pi,{key:"labelList-implicit",data:t}):I.isValidElement(e)||$e(e)?I.createElement(Pi,{key:"labelList-implicit",data:t,content:e}):Vl(e)?I.createElement(Pi,dm({data:t},e,{key:"labelList-implicit"})):null:null}function Iae(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=gr(r,Pi).map(function(l,c){return O.cloneElement(l,{data:t,key:"labelList-".concat(c)})});if(!n)return i;var s=Lae(e.label,t);return[s].concat(Aae(i))}Pi.renderCallByParent=Iae;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 N1(){return N1=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},N1.apply(this,arguments)}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 $D(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){zae(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 zae(e,t,n){return t=Bae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bae(e){var t=qae(e,"string");return Fc(t)=="symbol"?t:t+""}function qae(e,t){if(Fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Uae=function(t,n){var r=Rr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},sh=function(t){var n=t.cx,r=t.cy,i=t.radius,s=t.angle,l=t.sign,c=t.isExternal,f=t.cornerRadius,d=t.cornerIsExternal,v=f*(c?1:-1)+i,p=Math.asin(f/v)/fm,g=d?s:s+l*p,x=cn(n,r,v,g),_=cn(n,r,i,g),S=d?s-l*p:s,w=cn(n,r,v*Math.cos(p*fm),S);return{center:x,circleTangency:_,lineTangency:w,theta:p}},b5=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,l=t.startAngle,c=t.endAngle,f=Uae(l,c),d=l+f,v=cn(n,r,s,l),p=cn(n,r,s,d),g="M ".concat(v.x,",").concat(v.y,`
|
|
326
|
+
A `).concat(s,",").concat(s,`,0,
|
|
327
|
+
`).concat(+(Math.abs(f)>180),",").concat(+(l>d),`,
|
|
328
|
+
`).concat(p.x,",").concat(p.y,`
|
|
329
|
+
`);if(i>0){var x=cn(n,r,i,l),_=cn(n,r,i,d);g+="L ".concat(_.x,",").concat(_.y,`
|
|
330
|
+
A `).concat(i,",").concat(i,`,0,
|
|
331
|
+
`).concat(+(Math.abs(f)>180),",").concat(+(l<=d),`,
|
|
332
|
+
`).concat(x.x,",").concat(x.y," Z")}else g+="L ".concat(n,",").concat(r," Z");return g},Hae=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,s=t.outerRadius,l=t.cornerRadius,c=t.forceCornerRadius,f=t.cornerIsExternal,d=t.startAngle,v=t.endAngle,p=Rr(v-d),g=sh({cx:n,cy:r,radius:s,angle:d,sign:p,cornerRadius:l,cornerIsExternal:f}),x=g.circleTangency,_=g.lineTangency,S=g.theta,w=sh({cx:n,cy:r,radius:s,angle:v,sign:-p,cornerRadius:l,cornerIsExternal:f}),j=w.circleTangency,A=w.lineTangency,E=w.theta,N=f?Math.abs(d-v):Math.abs(d-v)-S-E;if(N<0)return c?"M ".concat(_.x,",").concat(_.y,`
|
|
333
|
+
a`).concat(l,",").concat(l,",0,0,1,").concat(l*2,`,0
|
|
334
|
+
a`).concat(l,",").concat(l,",0,0,1,").concat(-l*2,`,0
|
|
335
|
+
`):b5({cx:n,cy:r,innerRadius:i,outerRadius:s,startAngle:d,endAngle:v});var T="M ".concat(_.x,",").concat(_.y,`
|
|
336
|
+
A`).concat(l,",").concat(l,",0,0,").concat(+(p<0),",").concat(x.x,",").concat(x.y,`
|
|
337
|
+
A`).concat(s,",").concat(s,",0,").concat(+(N>180),",").concat(+(p<0),",").concat(j.x,",").concat(j.y,`
|
|
338
|
+
A`).concat(l,",").concat(l,",0,0,").concat(+(p<0),",").concat(A.x,",").concat(A.y,`
|
|
339
|
+
`);if(i>0){var M=sh({cx:n,cy:r,radius:i,angle:d,sign:p,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),R=M.circleTangency,D=M.lineTangency,L=M.theta,Y=sh({cx:n,cy:r,radius:i,angle:v,sign:-p,isExternal:!0,cornerRadius:l,cornerIsExternal:f}),z=Y.circleTangency,H=Y.lineTangency,V=Y.theta,Q=f?Math.abs(d-v):Math.abs(d-v)-L-V;if(Q<0&&l===0)return"".concat(T,"L").concat(n,",").concat(r,"Z");T+="L".concat(H.x,",").concat(H.y,`
|
|
340
|
+
A`).concat(l,",").concat(l,",0,0,").concat(+(p<0),",").concat(z.x,",").concat(z.y,`
|
|
341
|
+
A`).concat(i,",").concat(i,",0,").concat(+(Q>180),",").concat(+(p>0),",").concat(R.x,",").concat(R.y,`
|
|
342
|
+
A`).concat(l,",").concat(l,",0,0,").concat(+(p<0),",").concat(D.x,",").concat(D.y,"Z")}else T+="L".concat(n,",").concat(r,"Z");return T},Fae={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},x5=function(t){var n=$D($D({},Fae),t),r=n.cx,i=n.cy,s=n.innerRadius,l=n.outerRadius,c=n.cornerRadius,f=n.forceCornerRadius,d=n.cornerIsExternal,v=n.startAngle,p=n.endAngle,g=n.className;if(l<s||v===p)return null;var x=Ye("recharts-sector",g),_=l-s,S=Po(c,_,0,!0),w;return S>0&&Math.abs(v-p)<360?w=Hae({cx:r,cy:i,innerRadius:s,outerRadius:l,cornerRadius:Math.min(S,_/2),forceCornerRadius:f,cornerIsExternal:d,startAngle:v,endAngle:p}):w=b5({cx:r,cy:i,innerRadius:s,outerRadius:l,startAngle:v,endAngle:p}),I.createElement("path",N1({},Ve(n,!0),{className:x,d:w,role:"img"}))};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 M1(){return M1=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},M1.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 ID(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){Gae(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 Gae(e,t,n){return t=Vae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vae(e){var t=Yae(e,"string");return Gc(t)=="symbol"?t:t+""}function Yae(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 zD={curveBasisClosed:dX,curveBasisOpen:hX,curveBasis:fX,curveBumpX:QK,curveBumpY:ZK,curveLinearClosed:mX,curveLinear:mp,curveMonotoneX:pX,curveMonotoneY:vX,curveNatural:gX,curveStep:yX,curveStepAfter:xX,curveStepBefore:bX},lh=function(t){return t.x===+t.x&&t.y===+t.y},tc=function(t){return t.x},nc=function(t){return t.y},Wae=function(t,n){if($e(t))return t;var r="curve".concat(dp(t));return(r==="curveMonotone"||r==="curveBump")&&n?zD["".concat(r).concat(n==="vertical"?"Y":"X")]:zD[r]||mp},Kae=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,s=i===void 0?[]:i,l=t.baseLine,c=t.layout,f=t.connectNulls,d=f===void 0?!1:f,v=Wae(r,c),p=d?s.filter(function(S){return lh(S)}):s,g;if(Array.isArray(l)){var x=d?l.filter(function(S){return lh(S)}):l,_=p.map(function(S,w){return ID(ID({},S),{},{base:x[w]})});return c==="vertical"?g=Jd().y(nc).x1(tc).x0(function(S){return S.base.x}):g=Jd().x(tc).y1(nc).y0(function(S){return S.base.y}),g.defined(lh).curve(v),g(_)}return c==="vertical"&&ye(l)?g=Jd().y(nc).x1(tc).x0(l):ye(l)?g=Jd().x(tc).y1(nc).y0(l):g=_4().x(tc).y(nc),g.defined(lh).curve(v),g(p)},R1=function(t){var n=t.className,r=t.points,i=t.path,s=t.pathRef;if((!r||!r.length)&&!i)return null;var l=r&&r.length?Kae(t):i;return O.createElement("path",M1({},Ve(t,!1),Ih(t),{className:Ye("recharts-curve",n),d:l,ref:s}))},Qx={exports:{}},Zx,BD;function Xae(){if(BD)return Zx;BD=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Zx=e,Zx}var Jx,qD;function Qae(){if(qD)return Jx;qD=1;var e=Xae();function t(){}function n(){}return n.resetWarningCache=t,Jx=function(){function r(l,c,f,d,v,p){if(p!==e){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function i(){return r}var s={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 s.PropTypes=s,s},Jx}var UD;function Zae(){return UD||(UD=1,Qx.exports=Qae()()),Qx.exports}var Jae=Zae();const ot=gt(Jae);var eie=Object.getOwnPropertyNames,tie=Object.getOwnPropertySymbols,nie=Object.prototype.hasOwnProperty;function HD(e,t){return function(r,i,s){return e(r,i,s)&&t(r,i,s)}}function uh(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var s=i.cache,l=s.get(n),c=s.get(r);if(l&&c)return l===r&&c===n;s.set(n,r),s.set(r,n);var f=e(n,r,i);return s.delete(n),s.delete(r),f}}function rie(e){return e!=null?e[Symbol.toStringTag]:void 0}function FD(e){return eie(e).concat(tie(e))}var aie=Object.hasOwn||(function(e,t){return nie.call(e,t)});function Vo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var iie="__v",oie="__o",sie="_owner",GD=Object.getOwnPropertyDescriptor,VD=Object.keys;function lie(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 uie(e,t){return Vo(e.getTime(),t.getTime())}function cie(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function fie(e,t){return e===t}function YD(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),s=e.entries(),l,c,f=0;(l=s.next())&&!l.done;){for(var d=t.entries(),v=!1,p=0;(c=d.next())&&!c.done;){if(i[p]){p++;continue}var g=l.value,x=c.value;if(n.equals(g[0],x[0],f,p,e,t,n)&&n.equals(g[1],x[1],g[0],x[0],e,t,n)){v=i[p]=!0;break}p++}if(!v)return!1;f++}return!0}var die=Vo;function hie(e,t,n){var r=VD(e),i=r.length;if(VD(t).length!==i)return!1;for(;i-- >0;)if(!w5(e,t,n,r[i]))return!1;return!0}function rc(e,t,n){var r=FD(e),i=r.length;if(FD(t).length!==i)return!1;for(var s,l,c;i-- >0;)if(s=r[i],!w5(e,t,n,s)||(l=GD(e,s),c=GD(t,s),(l||c)&&(!l||!c||l.configurable!==c.configurable||l.enumerable!==c.enumerable||l.writable!==c.writable)))return!1;return!0}function mie(e,t){return Vo(e.valueOf(),t.valueOf())}function pie(e,t){return e.source===t.source&&e.flags===t.flags}function WD(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),s=e.values(),l,c;(l=s.next())&&!l.done;){for(var f=t.values(),d=!1,v=0;(c=f.next())&&!c.done;){if(!i[v]&&n.equals(l.value,c.value,l.value,c.value,e,t,n)){d=i[v]=!0;break}v++}if(!d)return!1}return!0}function vie(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 gie(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 w5(e,t,n,r){return(r===sie||r===oie||r===iie)&&(e.$$typeof||t.$$typeof)?!0:aie(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var yie="[object Arguments]",bie="[object Boolean]",xie="[object Date]",wie="[object Error]",Sie="[object Map]",Oie="[object Number]",_ie="[object Object]",jie="[object RegExp]",Eie="[object Set]",Aie="[object String]",Tie="[object URL]",Cie=Array.isArray,KD=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,XD=Object.assign,Nie=Object.prototype.toString.call.bind(Object.prototype.toString);function Mie(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,s=e.areMapsEqual,l=e.areNumbersEqual,c=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,d=e.areRegExpsEqual,v=e.areSetsEqual,p=e.areTypedArraysEqual,g=e.areUrlsEqual,x=e.unknownTagComparators;return function(S,w,j){if(S===w)return!0;if(S==null||w==null)return!1;var A=typeof S;if(A!==typeof w)return!1;if(A!=="object")return A==="number"?l(S,w,j):A==="function"?i(S,w,j):!1;var E=S.constructor;if(E!==w.constructor)return!1;if(E===Object)return c(S,w,j);if(Cie(S))return t(S,w,j);if(KD!=null&&KD(S))return p(S,w,j);if(E===Date)return n(S,w,j);if(E===RegExp)return d(S,w,j);if(E===Map)return s(S,w,j);if(E===Set)return v(S,w,j);var N=Nie(S);if(N===xie)return n(S,w,j);if(N===jie)return d(S,w,j);if(N===Sie)return s(S,w,j);if(N===Eie)return v(S,w,j);if(N===_ie)return typeof S.then!="function"&&typeof w.then!="function"&&c(S,w,j);if(N===Tie)return g(S,w,j);if(N===wie)return r(S,w,j);if(N===yie)return c(S,w,j);if(N===bie||N===Oie||N===Aie)return f(S,w,j);if(x){var T=x[N];if(!T){var M=rie(S);M&&(T=x[M])}if(T)return T(S,w,j)}return!1}}function Rie(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?rc:lie,areDatesEqual:uie,areErrorsEqual:cie,areFunctionsEqual:fie,areMapsEqual:r?HD(YD,rc):YD,areNumbersEqual:die,areObjectsEqual:r?rc:hie,arePrimitiveWrappersEqual:mie,areRegExpsEqual:pie,areSetsEqual:r?HD(WD,rc):WD,areTypedArraysEqual:r?rc:vie,areUrlsEqual:gie,unknownTagComparators:void 0};if(n&&(i=XD({},i,n(i))),t){var s=uh(i.areArraysEqual),l=uh(i.areMapsEqual),c=uh(i.areObjectsEqual),f=uh(i.areSetsEqual);i=XD({},i,{areArraysEqual:s,areMapsEqual:l,areObjectsEqual:c,areSetsEqual:f})}return i}function Die(e){return function(t,n,r,i,s,l,c){return e(t,n,c)}}function Pie(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,s=e.strict;if(r)return function(f,d){var v=r(),p=v.cache,g=p===void 0?t?new WeakMap:void 0:p,x=v.meta;return n(f,d,{cache:g,equals:i,meta:x,strict:s})};if(t)return function(f,d){return n(f,d,{cache:new WeakMap,equals:i,meta:void 0,strict:s})};var l={cache:void 0,equals:i,meta:void 0,strict:s};return function(f,d){return n(f,d,l)}}var kie=Vi();Vi({strict:!0});Vi({circular:!0});Vi({circular:!0,strict:!0});Vi({createInternalComparator:function(){return Vo}});Vi({strict:!0,createInternalComparator:function(){return Vo}});Vi({circular:!0,createInternalComparator:function(){return Vo}});Vi({circular:!0,createInternalComparator:function(){return Vo},strict:!0});function Vi(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,s=e.strict,l=s===void 0?!1:s,c=Rie(e),f=Mie(c),d=r?r(f):Die(f);return Pie({circular:n,comparator:f,createState:i,equals:d,strict:l})}function $ie(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function QD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(s){n<0&&(n=s),s-n>t?(e(s),n=-1):$ie(i)};requestAnimationFrame(r)}function D1(e){"@babel/helpers - typeof";return D1=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},D1(e)}function Lie(e){return qie(e)||Bie(e)||zie(e)||Iie()}function Iie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
343
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function zie(e,t){if(e){if(typeof e=="string")return ZD(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 ZD(e,t)}}function ZD(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 Bie(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qie(e){if(Array.isArray(e))return e}function Uie(){var e={},t=function(){return null},n=!1,r=function i(s){if(!n){if(Array.isArray(s)){if(!s.length)return;var l=s,c=Lie(l),f=c[0],d=c.slice(1);if(typeof f=="number"){QD(i.bind(null,d),f);return}i(f),QD(i.bind(null,d));return}D1(s)==="object"&&(e=s,t(e)),typeof s=="function"&&s()}};return{stop:function(){n=!0},start:function(s){n=!1,r(s)},subscribe:function(s){return t=s,function(){t=function(){return null}}}}}function 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 JD(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function eP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JD(Object(n),!0).forEach(function(r){S5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function S5(e,t,n){return t=Hie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hie(e){var t=Fie(e,"string");return Vc(t)==="symbol"?t:String(t)}function Fie(e,t){if(Vc(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gie=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(s){return i.includes(s)})})},Vie=function(t){return t},Yie=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},pc=function(t,n){return Object.keys(n).reduce(function(r,i){return eP(eP({},r),{},S5({},i,t(i,n[i])))},{})},tP=function(t,n,r){return t.map(function(i){return"".concat(Yie(i)," ").concat(n,"ms ").concat(r)}).join(",")};function Wie(e,t){return Qie(e)||Xie(e,t)||O5(e,t)||Kie()}function Kie(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
344
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xie(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Qie(e){if(Array.isArray(e))return e}function Zie(e){return toe(e)||eoe(e)||O5(e)||Jie()}function Jie(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
345
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O5(e,t){if(e){if(typeof e=="string")return P1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return P1(e,t)}}function eoe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function toe(e){if(Array.isArray(e))return P1(e)}function P1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var hm=1e-4,_5=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},j5=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},nP=function(t,n){return function(r){var i=_5(t,n);return j5(i,r)}},noe=function(t,n){return function(r){var i=_5(t,n),s=[].concat(Zie(i.map(function(l,c){return l*c}).slice(1)),[0]);return j5(s,r)}},rP=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],s=n[1],l=n[2],c=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,s=0,l=1,c=1;break;case"ease":i=.25,s=.1,l=.25,c=1;break;case"ease-in":i=.42,s=0,l=1,c=1;break;case"ease-out":i=.42,s=0,l=.58,c=1;break;case"ease-in-out":i=0,s=0,l=.58,c=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var d=f[1].split(")")[0].split(",").map(function(w){return parseFloat(w)}),v=Wie(d,4);i=v[0],s=v[1],l=v[2],c=v[3]}}}var p=nP(i,l),g=nP(s,c),x=noe(i,l),_=function(j){return j>1?1:j<0?0:j},S=function(j){for(var A=j>1?1:j,E=A,N=0;N<8;++N){var T=p(E)-A,M=x(E);if(Math.abs(T-A)<hm||M<hm)return g(E);E=_(E-T/M)}return g(E)};return S.isStepper=!1,S},roe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,s=i===void 0?8:i,l=t.dt,c=l===void 0?17:l,f=function(v,p,g){var x=-(v-p)*r,_=g*s,S=g+(x-_)*c/1e3,w=g*c/1e3+v;return Math.abs(w-p)<hm&&Math.abs(S)<hm?[p,0]:[w,S]};return f.isStepper=!0,f.dt=c,f},aoe=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 rP(i);case"spring":return roe();default:if(i.split("(")[0]==="cubic-bezier")return rP(i)}return typeof i=="function"?i:null};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 aP(e){return soe(e)||ooe(e)||E5(e)||ioe()}function ioe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
346
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ooe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function soe(e){if(Array.isArray(e))return $1(e)}function iP(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 un(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iP(Object(n),!0).forEach(function(r){k1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function k1(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=uoe(e,"string");return Yc(t)==="symbol"?t:String(t)}function uoe(e,t){if(Yc(e)!=="object"||e===null)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 coe(e,t){return hoe(e)||doe(e,t)||E5(e,t)||foe()}function foe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
347
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function E5(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 $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 doe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function hoe(e){if(Array.isArray(e))return e}var mm=function(t,n,r){return t+(n-t)*r},L1=function(t){var n=t.from,r=t.to;return n!==r},moe=function e(t,n,r){var i=pc(function(s,l){if(L1(l)){var c=t(l.from,l.to,l.velocity),f=coe(c,2),d=f[0],v=f[1];return un(un({},l),{},{from:d,velocity:v})}return l},n);return r<1?pc(function(s,l){return L1(l)?un(un({},l),{},{velocity:mm(l.velocity,i[s].velocity,r),from:mm(l.from,i[s].from,r)}):l},n):e(t,i,r-1)};const poe=(function(e,t,n,r,i){var s=Gie(e,t),l=s.reduce(function(w,j){return un(un({},w),{},k1({},j,[e[j],t[j]]))},{}),c=s.reduce(function(w,j){return un(un({},w),{},k1({},j,{from:e[j],velocity:0,to:t[j]}))},{}),f=-1,d,v,p=function(){return null},g=function(){return pc(function(j,A){return A.from},c)},x=function(){return!Object.values(c).filter(L1).length},_=function(j){d||(d=j);var A=j-d,E=A/n.dt;c=moe(n,c,E),i(un(un(un({},e),t),g())),d=j,x()||(f=requestAnimationFrame(p))},S=function(j){v||(v=j);var A=(j-v)/r,E=pc(function(T,M){return mm.apply(void 0,aP(M).concat([n(A)]))},l);if(i(un(un(un({},e),t),E)),A<1)f=requestAnimationFrame(p);else{var N=pc(function(T,M){return mm.apply(void 0,aP(M).concat([n(1)]))},l);i(un(un(un({},e),t),N))}};return p=n.isStepper?_:S,function(){return requestAnimationFrame(p),function(){cancelAnimationFrame(f)}}});function bl(e){"@babel/helpers - typeof";return bl=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},bl(e)}var voe=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function goe(e,t){if(e==null)return{};var n=yoe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[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={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ew(e){return Soe(e)||woe(e)||xoe(e)||boe()}function boe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
348
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function xoe(e,t){if(e){if(typeof e=="string")return I1(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 I1(e,t)}}function woe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Soe(e){if(Array.isArray(e))return I1(e)}function I1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function oP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oP(Object(n),!0).forEach(function(r){uc(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uc(e,t,n){return t=A5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ooe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _oe(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,A5(r.key),r)}}function joe(e,t,n){return t&&_oe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function A5(e){var t=Eoe(e,"string");return bl(t)==="symbol"?t:String(t)}function Eoe(e,t){if(bl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aoe(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 Toe(e){var t=Coe();return function(){var r=pm(e),i;if(t){var s=pm(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return B1(this,i)}}function B1(e,t){if(t&&(bl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q1(e)}function q1(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Coe(){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 pm(e){return pm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},pm(e)}var Ka=(function(e){Aoe(n,e);var t=Toe(n);function n(r,i){var s;Ooe(this,n),s=t.call(this,r,i);var l=s.props,c=l.isActive,f=l.attributeName,d=l.from,v=l.to,p=l.steps,g=l.children,x=l.duration;if(s.handleStyleChange=s.handleStyleChange.bind(q1(s)),s.changeStyle=s.changeStyle.bind(q1(s)),!c||x<=0)return s.state={style:{}},typeof g=="function"&&(s.state={style:v}),B1(s);if(p&&p.length)s.state={style:p[0].style};else if(d){if(typeof g=="function")return s.state={style:d},B1(s);s.state={style:f?uc({},f,d):d}}else s.state={style:{}};return s}return joe(n,[{key:"componentDidMount",value:function(){var i=this.props,s=i.isActive,l=i.canBegin;this.mounted=!0,!(!s||!l)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var s=this.props,l=s.isActive,c=s.canBegin,f=s.attributeName,d=s.shouldReAnimate,v=s.to,p=s.from,g=this.state.style;if(c){if(!l){var x={style:f?uc({},f,v):v};this.state&&g&&(f&&g[f]!==v||!f&&g!==v)&&this.setState(x);return}if(!(kie(i.to,v)&&i.canBegin&&i.isActive)){var _=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var S=_||d?p:i.to;if(this.state&&g){var w={style:f?uc({},f,S):S};(f&&g[f]!==S||!f&&g!==S)&&this.setState(w)}this.runAnimation(Er(Er({},this.props),{},{from:S,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 s=this,l=i.from,c=i.to,f=i.duration,d=i.easing,v=i.begin,p=i.onAnimationEnd,g=i.onAnimationStart,x=poe(l,c,aoe(d),f,this.changeStyle),_=function(){s.stopJSAnimation=x()};this.manager.start([g,v,_,f,p])}},{key:"runStepAnimation",value:function(i){var s=this,l=i.steps,c=i.begin,f=i.onAnimationStart,d=l[0],v=d.style,p=d.duration,g=p===void 0?0:p,x=function(S,w,j){if(j===0)return S;var A=w.duration,E=w.easing,N=E===void 0?"ease":E,T=w.style,M=w.properties,R=w.onAnimationEnd,D=j>0?l[j-1]:w,L=M||Object.keys(T);if(typeof N=="function"||N==="spring")return[].concat(ew(S),[s.runJSAnimation.bind(s,{from:D.style,to:T,duration:A,easing:N}),A]);var Y=tP(L,A,N),z=Er(Er(Er({},D.style),T),{},{transition:Y});return[].concat(ew(S),[z,A,R]).filter(Vie)};return this.manager.start([f].concat(ew(l.reduce(x,[v,Math.max(g,c)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=Uie());var s=i.begin,l=i.duration,c=i.attributeName,f=i.to,d=i.easing,v=i.onAnimationStart,p=i.onAnimationEnd,g=i.steps,x=i.children,_=this.manager;if(this.unSubscribe=_.subscribe(this.handleStyleChange),typeof d=="function"||typeof x=="function"||d==="spring"){this.runJSAnimation(i);return}if(g.length>1){this.runStepAnimation(i);return}var S=c?uc({},c,f):f,w=tP(Object.keys(S),l,d);_.start([v,s,Er(Er({},S),{},{transition:w}),l,p])}},{key:"render",value:function(){var i=this.props,s=i.children;i.begin;var l=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=goe(i,voe),d=O.Children.count(s),v=this.state.style;if(typeof s=="function")return s(v);if(!c||d===0||l<=0)return s;var p=function(x){var _=x.props,S=_.style,w=S===void 0?{}:S,j=_.className,A=O.cloneElement(x,Er(Er({},f),{},{style:Er(Er({},w),v),className:j}));return A};return d===1?p(O.Children.only(s)):I.createElement("div",null,O.Children.map(s,function(g){return p(g)}))}}]),n})(O.PureComponent);Ka.displayName="Animate";Ka.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};Ka.propTypes={from:ot.oneOfType([ot.object,ot.string]),to:ot.oneOfType([ot.object,ot.string]),attributeName:ot.string,duration:ot.number,begin:ot.number,easing:ot.oneOfType([ot.string,ot.func]),steps:ot.arrayOf(ot.shape({duration:ot.number.isRequired,style:ot.object.isRequired,easing:ot.oneOfType([ot.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),ot.func]),properties:ot.arrayOf("string"),onAnimationEnd:ot.func})),children:ot.oneOfType([ot.node,ot.func]),isActive:ot.bool,canBegin:ot.bool,onAnimationEnd:ot.func,shouldReAnimate:ot.bool,onAnimationStart:ot.func,onAnimationReStart:ot.func};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 vm(){return vm=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},vm.apply(this,arguments)}function Noe(e,t){return Poe(e)||Doe(e,t)||Roe(e,t)||Moe()}function Moe(){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 Roe(e,t){if(e){if(typeof e=="string")return sP(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sP(e,t)}}function sP(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Doe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function Poe(e){if(Array.isArray(e))return e}function lP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function uP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lP(Object(n),!0).forEach(function(r){koe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function koe(e,t,n){return t=$oe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $oe(e){var t=Loe(e,"string");return Wc(t)=="symbol"?t:t+""}function Loe(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)}var cP=function(t,n,r,i,s){var l=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,v;if(l>0&&s instanceof Array){for(var p=[0,0,0,0],g=0,x=4;g<x;g++)p[g]=s[g]>l?l:s[g];v="M".concat(t,",").concat(n+c*p[0]),p[0]>0&&(v+="A ".concat(p[0],",").concat(p[0],",0,0,").concat(d,",").concat(t+f*p[0],",").concat(n)),v+="L ".concat(t+r-f*p[1],",").concat(n),p[1]>0&&(v+="A ".concat(p[1],",").concat(p[1],",0,0,").concat(d,`,
|
|
350
|
+
`).concat(t+r,",").concat(n+c*p[1])),v+="L ".concat(t+r,",").concat(n+i-c*p[2]),p[2]>0&&(v+="A ".concat(p[2],",").concat(p[2],",0,0,").concat(d,`,
|
|
351
|
+
`).concat(t+r-f*p[2],",").concat(n+i)),v+="L ".concat(t+f*p[3],",").concat(n+i),p[3]>0&&(v+="A ".concat(p[3],",").concat(p[3],",0,0,").concat(d,`,
|
|
352
|
+
`).concat(t,",").concat(n+i-c*p[3])),v+="Z"}else if(l>0&&s===+s&&s>0){var _=Math.min(l,s);v="M ".concat(t,",").concat(n+c*_,`
|
|
353
|
+
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(t+f*_,",").concat(n,`
|
|
354
|
+
L `).concat(t+r-f*_,",").concat(n,`
|
|
355
|
+
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(t+r,",").concat(n+c*_,`
|
|
356
|
+
L `).concat(t+r,",").concat(n+i-c*_,`
|
|
357
|
+
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(t+r-f*_,",").concat(n+i,`
|
|
358
|
+
L `).concat(t+f*_,",").concat(n+i,`
|
|
359
|
+
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(t,",").concat(n+i-c*_," Z")}else v="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return v},Ioe=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,s=n.x,l=n.y,c=n.width,f=n.height;if(Math.abs(c)>0&&Math.abs(f)>0){var d=Math.min(s,s+c),v=Math.max(s,s+c),p=Math.min(l,l+f),g=Math.max(l,l+f);return r>=d&&r<=v&&i>=p&&i<=g}return!1},zoe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},u_=function(t){var n=uP(uP({},zoe),t),r=O.useRef(),i=O.useState(-1),s=Noe(i,2),l=s[0],c=s[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var N=r.current.getTotalLength();N&&c(N)}catch{}},[]);var f=n.x,d=n.y,v=n.width,p=n.height,g=n.radius,x=n.className,_=n.animationEasing,S=n.animationDuration,w=n.animationBegin,j=n.isAnimationActive,A=n.isUpdateAnimationActive;if(f!==+f||d!==+d||v!==+v||p!==+p||v===0||p===0)return null;var E=Ye("recharts-rectangle",x);return A?I.createElement(Ka,{canBegin:l>0,from:{width:v,height:p,x:f,y:d},to:{width:v,height:p,x:f,y:d},duration:S,animationEasing:_,isActive:A},function(N){var T=N.width,M=N.height,R=N.x,D=N.y;return I.createElement(Ka,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:S,isActive:j,easing:_},I.createElement("path",vm({},Ve(n,!0),{className:E,d:cP(R,D,T,M,g),ref:r})))}):I.createElement("path",vm({},Ve(n,!0),{className:E,d:cP(f,d,v,p,g)}))};function U1(){return U1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U1.apply(this,arguments)}var c_=function(t){var n=t.cx,r=t.cy,i=t.r,s=t.className,l=Ye("recharts-dot",s);return n===+n&&r===+r&&i===+i?O.createElement("circle",U1({},Ve(t,!1),Ih(t),{className:l,cx:n,cy:r,r:i})):null};function Kc(e){"@babel/helpers - typeof";return Kc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kc(e)}var Boe=["x","y","top","left","width","height","className"];function H1(){return H1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},H1.apply(this,arguments)}function 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 qoe(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){Uoe(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 Uoe(e,t,n){return t=Hoe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hoe(e){var t=Foe(e,"string");return Kc(t)=="symbol"?t:t+""}function Foe(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)}function Goe(e,t){if(e==null)return{};var n=Voe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Voe(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 Yoe=function(t,n,r,i,s,l){return"M".concat(t,",").concat(s,"v").concat(i,"M").concat(l,",").concat(n,"h").concat(r)},Woe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,s=i===void 0?0:i,l=t.top,c=l===void 0?0:l,f=t.left,d=f===void 0?0:f,v=t.width,p=v===void 0?0:v,g=t.height,x=g===void 0?0:g,_=t.className,S=Goe(t,Boe),w=qoe({x:r,y:s,top:c,left:d,width:p,height:x},S);return!ye(r)||!ye(s)||!ye(p)||!ye(x)||!ye(c)||!ye(d)?null:I.createElement("path",H1({},Ve(w,!0),{className:Ye("recharts-cross",_),d:Yoe(r,s,p,x,c,d)}))},tw,dP;function Koe(){if(dP)return tw;dP=1;var e=Y4(),t=e(Object.getPrototypeOf,Object);return tw=t,tw}var nw,hP;function Xoe(){if(hP)return nw;hP=1;var e=Xa(),t=Koe(),n=Qa(),r="[object Object]",i=Function.prototype,s=Object.prototype,l=i.toString,c=s.hasOwnProperty,f=l.call(Object);function d(v){if(!n(v)||e(v)!=r)return!1;var p=t(v);if(p===null)return!0;var g=c.call(p,"constructor")&&p.constructor;return typeof g=="function"&&g instanceof g&&l.call(g)==f}return nw=d,nw}var Qoe=Xoe();const Zoe=gt(Qoe);var rw,mP;function Joe(){if(mP)return rw;mP=1;var e=Xa(),t=Qa(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return rw=r,rw}var ese=Joe();const tse=gt(ese);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 gm(){return gm=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},gm.apply(this,arguments)}function nse(e,t){return ose(e)||ise(e,t)||ase(e,t)||rse()}function rse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
360
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ase(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 ise(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function ose(e){if(Array.isArray(e))return e}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){sse(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 sse(e,t,n){return t=lse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lse(e){var t=use(e,"string");return Xc(t)=="symbol"?t:t+""}function use(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(t==="string"?String:Number)(e)}var yP=function(t,n,r,i,s){var l=r-i,c;return c="M ".concat(t,",").concat(n),c+="L ".concat(t+r,",").concat(n),c+="L ".concat(t+r-l/2,",").concat(n+s),c+="L ".concat(t+r-l/2-i,",").concat(n+s),c+="L ".concat(t,",").concat(n," Z"),c},cse={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},fse=function(t){var n=gP(gP({},cse),t),r=O.useRef(),i=O.useState(-1),s=nse(i,2),l=s[0],c=s[1];O.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var E=r.current.getTotalLength();E&&c(E)}catch{}},[]);var f=n.x,d=n.y,v=n.upperWidth,p=n.lowerWidth,g=n.height,x=n.className,_=n.animationEasing,S=n.animationDuration,w=n.animationBegin,j=n.isUpdateAnimationActive;if(f!==+f||d!==+d||v!==+v||p!==+p||g!==+g||v===0&&p===0||g===0)return null;var A=Ye("recharts-trapezoid",x);return j?I.createElement(Ka,{canBegin:l>0,from:{upperWidth:0,lowerWidth:0,height:g,x:f,y:d},to:{upperWidth:v,lowerWidth:p,height:g,x:f,y:d},duration:S,animationEasing:_,isActive:j},function(E){var N=E.upperWidth,T=E.lowerWidth,M=E.height,R=E.x,D=E.y;return I.createElement(Ka,{canBegin:l>0,from:"0px ".concat(l===-1?1:l,"px"),to:"".concat(l,"px 0px"),attributeName:"strokeDasharray",begin:w,duration:S,easing:_},I.createElement("path",gm({},Ve(n,!0),{className:A,d:yP(R,D,N,T,M),ref:r})))}):I.createElement("g",null,I.createElement("path",gm({},Ve(n,!0),{className:A,d:yP(f,d,v,p,g)})))},dse=["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 hse(e,t){if(e==null)return{};var n=mse(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mse(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 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 ym(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){pse(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 pse(e,t,n){return t=vse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vse(e){var t=gse(e,"string");return Qc(t)=="symbol"?t:t+""}function gse(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 yse(e,t){return ym(ym({},t),e)}function bse(e,t){return e==="symbols"}function xP(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return I.createElement(u_,n);case"trapezoid":return I.createElement(fse,n);case"sector":return I.createElement(x5,n);case"symbols":if(bse(t))return I.createElement(TO,n);break;default:return null}}function xse(e){return O.isValidElement(e)?e.props:e}function wse(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?yse:r,s=e.activeClassName,l=s===void 0?"recharts-active-shape":s,c=e.isActive,f=hse(e,dse),d;if(O.isValidElement(t))d=O.cloneElement(t,ym(ym({},f),xse(t)));else if($e(t))d=t(f);else if(Zoe(t)&&!tse(t)){var v=i(t,f);d=I.createElement(xP,{shapeType:n,elementProps:v})}else{var p=f;d=I.createElement(xP,{shapeType:n,elementProps:p})}return c?I.createElement(Lt,{className:l},d):d}function Np(e,t){return t!=null&&"trapezoids"in e.props}function Mp(e,t){return t!=null&&"sectors"in e.props}function Zc(e,t){return t!=null&&"points"in e.props}function Sse(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,s=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&s}function Ose(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function _se(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function jse(e,t){var n;return Np(e,t)?n=Sse:Mp(e,t)?n=Ose:Zc(e,t)&&(n=_se),n}function Ese(e,t){var n;return Np(e,t)?n="trapezoids":Mp(e,t)?n="sectors":Zc(e,t)&&(n="points"),n}function Ase(e,t){if(Np(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(Mp(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Zc(e,t)?t.payload:{}}function Tse(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=Ese(n,t),s=Ase(n,t),l=r.filter(function(f,d){var v=Ap(s,f),p=n.props[i].filter(function(_){var S=jse(n,t);return S(_,t)}),g=n.props[i].indexOf(p[p.length-1]),x=d===g;return v&&x}),c=r.indexOf(l[l.length-1]);return c}var aw,wP;function Cse(){if(wP)return aw;wP=1;var e=Math.ceil,t=Math.max;function n(r,i,s,l){for(var c=-1,f=t(e((i-r)/(s||1)),0),d=Array(f);f--;)d[l?f:++c]=r,r+=s;return d}return aw=n,aw}var iw,SP;function T5(){if(SP)return iw;SP=1;var e=u3(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*n}return i===i?i:0}return iw=r,iw}var ow,OP;function Nse(){if(OP)return ow;OP=1;var e=Cse(),t=yp(),n=T5();function r(i){return function(s,l,c){return c&&typeof c!="number"&&t(s,l,c)&&(l=c=void 0),s=n(s),l===void 0?(l=s,s=0):l=n(l),c=c===void 0?s<l?1:-1:n(c),e(s,l,c,i)}}return ow=r,ow}var sw,_P;function Mse(){if(_P)return sw;_P=1;var e=Nse(),t=e();return sw=t,sw}var Rse=Mse();const bm=gt(Rse);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 jP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function EP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jP(Object(n),!0).forEach(function(r){C5(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function C5(e,t,n){return t=Dse(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dse(e){var t=Pse(e,"string");return Jc(t)=="symbol"?t:t+""}function Pse(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 kse=["Webkit","Moz","O","ms"],$se=function(t,n){var r=t.replace(/(\w)/,function(s){return s.toUpperCase()}),i=kse.reduce(function(s,l){return EP(EP({},s),{},C5({},l+r,n))},{});return i[t]=n,i};function xl(e){"@babel/helpers - typeof";return xl=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},xl(e)}function xm(){return xm=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},xm.apply(this,arguments)}function AP(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 lw(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AP(Object(n),!0).forEach(function(r){Vn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lse(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TP(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,M5(r.key),r)}}function Ise(e,t,n){return t&&TP(e.prototype,t),n&&TP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zse(e,t,n){return t=wm(t),Bse(e,N5()?Reflect.construct(t,n||[],wm(e).constructor):t.apply(e,n))}function Bse(e,t){if(t&&(xl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qse(e)}function qse(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function N5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(N5=function(){return!!e})()}function wm(e){return wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},wm(e)}function Use(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&F1(e,t)}function F1(e,t){return F1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},F1(e,t)}function Vn(e,t,n){return t=M5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M5(e){var t=Hse(e,"string");return xl(t)=="symbol"?t:t+""}function Hse(e,t){if(xl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fse=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,s=t.x,l=t.width,c=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,d=hc().domain(bm(0,f)).range([s,s+l-c]),v=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:v}},CP=function(t){return t.changedTouches&&!!t.changedTouches.length},wl=(function(e){function t(n){var r;return Lse(this,t),r=zse(this,t,[n]),Vn(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Vn(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Vn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,s=i.endIndex,l=i.onDragEnd,c=i.startIndex;l==null||l({endIndex:s,startIndex:c})}),r.detachDragEndListener()}),Vn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Vn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Vn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Vn(r,"handleSlideDragStart",function(i){var s=CP(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:s.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Use(t,e),Ise(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,s=r.endX,l=this.state.scaleValues,c=this.props,f=c.gap,d=c.data,v=d.length-1,p=Math.min(i,s),g=Math.max(i,s),x=t.getIndexInRange(l,p),_=t.getIndexInRange(l,g);return{startIndex:x-x%f,endIndex:_===v?v:_-_%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,s=i.data,l=i.tickFormatter,c=i.dataKey,f=Zn(s[r],c,r);return $e(l)?l(f,r):f}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,s=i.slideMoveStartX,l=i.startX,c=i.endX,f=this.props,d=f.x,v=f.width,p=f.travellerWidth,g=f.startIndex,x=f.endIndex,_=f.onChange,S=r.pageX-s;S>0?S=Math.min(S,d+v-p-c,d+v-p-l):S<0&&(S=Math.max(S,d-l,d-c));var w=this.getIndex({startX:l+S,endX:c+S});(w.startIndex!==g||w.endIndex!==x)&&_&&_(w),this.setState({startX:l+S,endX:c+S,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var s=CP(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:s.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,s=i.brushMoveStartX,l=i.movingTravellerId,c=i.endX,f=i.startX,d=this.state[l],v=this.props,p=v.x,g=v.width,x=v.travellerWidth,_=v.onChange,S=v.gap,w=v.data,j={startX:this.state.startX,endX:this.state.endX},A=r.pageX-s;A>0?A=Math.min(A,p+g-x-d):A<0&&(A=Math.max(A,p-d)),j[l]=d+A;var E=this.getIndex(j),N=E.startIndex,T=E.endIndex,M=function(){var D=w.length-1;return l==="startX"&&(c>f?N%S===0:T%S===0)||c<f&&T===D||l==="endX"&&(c>f?T%S===0:N%S===0)||c>f&&T===D};this.setState(Vn(Vn({},l,d+A),"brushMoveStartX",r.pageX),function(){_&&M()&&_(E)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var s=this,l=this.state,c=l.scaleValues,f=l.startX,d=l.endX,v=this.state[i],p=c.indexOf(v);if(p!==-1){var g=p+r;if(!(g===-1||g>=c.length)){var x=c[g];i==="startX"&&x>=d||i==="endX"&&x<=f||this.setState(Vn({},i,x),function(){s.props.onChange(s.getIndex({startX:s.state.startX,endX:s.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,c=r.height,f=r.fill,d=r.stroke;return I.createElement("rect",{stroke:d,fill:f,x:i,y:s,width:l,height:c})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,c=r.height,f=r.data,d=r.children,v=r.padding,p=O.Children.only(d);return p?I.cloneElement(p,{x:i,y:s,width:l,height:c,margin:v,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var s,l,c=this,f=this.props,d=f.y,v=f.travellerWidth,p=f.height,g=f.traveller,x=f.ariaLabel,_=f.data,S=f.startIndex,w=f.endIndex,j=Math.max(r,this.props.x),A=lw(lw({},Ve(this.props,!1)),{},{x:j,y:d,width:v,height:p}),E=x||"Min value: ".concat((s=_[S])===null||s===void 0?void 0:s.name,", Max value: ").concat((l=_[w])===null||l===void 0?void 0:l.name);return I.createElement(Lt,{tabIndex:0,role:"slider","aria-label":E,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(T){["ArrowLeft","ArrowRight"].includes(T.key)&&(T.preventDefault(),T.stopPropagation(),c.handleTravellerMoveKeyboard(T.key==="ArrowRight"?1:-1,i))},onFocus:function(){c.setState({isTravellerFocused:!0})},onBlur:function(){c.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(g,A))}},{key:"renderSlide",value:function(r,i){var s=this.props,l=s.y,c=s.height,f=s.stroke,d=s.travellerWidth,v=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:v,y:l,width:p,height:c})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,s=r.endIndex,l=r.y,c=r.height,f=r.travellerWidth,d=r.stroke,v=this.state,p=v.startX,g=v.endX,x=5,_={pointerEvents:"none",fill:d};return I.createElement(Lt,{className:"recharts-brush-texts"},I.createElement(Xh,xm({textAnchor:"end",verticalAnchor:"middle",x:Math.min(p,g)-x,y:l+c/2},_),this.getTextOfTick(i)),I.createElement(Xh,xm({textAnchor:"start",verticalAnchor:"middle",x:Math.max(p,g)+f+x,y:l+c/2},_),this.getTextOfTick(s)))}},{key:"render",value:function(){var r=this.props,i=r.data,s=r.className,l=r.children,c=r.x,f=r.y,d=r.width,v=r.height,p=r.alwaysShowText,g=this.state,x=g.startX,_=g.endX,S=g.isTextActive,w=g.isSlideMoving,j=g.isTravellerMoving,A=g.isTravellerFocused;if(!i||!i.length||!ye(c)||!ye(f)||!ye(d)||!ye(v)||d<=0||v<=0)return null;var E=Ye("recharts-brush",s),N=I.Children.count(l)===1,T=$se("userSelect","none");return I.createElement(Lt,{className:E,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:T},this.renderBackground(),N&&this.renderPanorama(),this.renderSlide(x,_),this.renderTravellerLayer(x,"startX"),this.renderTravellerLayer(_,"endX"),(S||w||j||A||p)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,s=r.y,l=r.width,c=r.height,f=r.stroke,d=Math.floor(s+c/2)-1;return I.createElement(I.Fragment,null,I.createElement("rect",{x:i,y:s,width:l,height:c,fill:f,stroke:"none"}),I.createElement("line",{x1:i+1,y1:d,x2:i+l-1,y2:d,fill:"none",stroke:"#fff"}),I.createElement("line",{x1:i+1,y1:d+2,x2:i+l-1,y2:d+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var s;return I.isValidElement(r)?s=I.cloneElement(r,i):$e(r)?s=r(i):s=t.renderDefaultTraveller(i),s}},{key:"getDerivedStateFromProps",value:function(r,i){var s=r.data,l=r.width,c=r.x,f=r.travellerWidth,d=r.updateId,v=r.startIndex,p=r.endIndex;if(s!==i.prevData||d!==i.prevUpdateId)return lw({prevData:s,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l},s&&s.length?Fse({data:s,width:l,x:c,travellerWidth:f,startIndex:v,endIndex:p}):{scale:null,scaleValues:null});if(i.scale&&(l!==i.prevWidth||c!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([c,c+l-f]);var g=i.scale.domain().map(function(x){return i.scale(x)});return{prevData:s,prevTravellerWidth:f,prevUpdateId:d,prevX:c,prevWidth:l,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:g}}return null}},{key:"getIndexInRange",value:function(r,i){for(var s=r.length,l=0,c=s-1;c-l>1;){var f=Math.floor((l+c)/2);r[f]>i?c=f:l=f}return i>=r[c]?c:l}}])})(O.PureComponent);Vn(wl,"displayName","Brush");Vn(wl,"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 uw,NP;function Gse(){if(NP)return uw;NP=1;var e=kO();function t(n,r){var i;return e(n,function(s,l,c){return i=r(s,l,c),!i}),!!i}return uw=t,uw}var cw,MP;function Vse(){if(MP)return cw;MP=1;var e=B4(),t=Hi(),n=Gse(),r=$n(),i=yp();function s(l,c,f){var d=r(l)?e:n;return f&&i(l,c,f)&&(c=void 0),d(l,t(c,3))}return cw=s,cw}var Yse=Vse();const Wse=gt(Yse);var ua=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},fw,RP;function Kse(){if(RP)return fw;RP=1;var e=a3();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return fw=t,fw}var dw,DP;function Xse(){if(DP)return dw;DP=1;var e=Kse(),t=n3(),n=Hi();function r(i,s){var l={};return s=n(s,3),t(i,function(c,f,d){e(l,f,s(c,f,d))}),l}return dw=r,dw}var Qse=Xse();const Zse=gt(Qse);var hw,PP;function Jse(){if(PP)return hw;PP=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 hw=e,hw}var mw,kP;function ele(){if(kP)return mw;kP=1;var e=kO();function t(n,r){var i=!0;return e(n,function(s,l,c){return i=!!r(s,l,c),i}),i}return mw=t,mw}var pw,$P;function tle(){if($P)return pw;$P=1;var e=Jse(),t=ele(),n=Hi(),r=$n(),i=yp();function s(l,c,f){var d=r(l)?e:t;return f&&i(l,c,f)&&(c=void 0),d(l,n(c,3))}return pw=s,pw}var nle=tle();const R5=gt(nle);var rle=["x","y"];function ef(e){"@babel/helpers - typeof";return ef=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},ef(e)}function G1(){return G1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G1.apply(this,arguments)}function LP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ac(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?LP(Object(n),!0).forEach(function(r){ale(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ale(e,t,n){return t=ile(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ile(e){var t=ole(e,"string");return ef(t)=="symbol"?t:t+""}function ole(e,t){if(ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sle(e,t){if(e==null)return{};var n=lle(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lle(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 ule(e,t){var n=e.x,r=e.y,i=sle(e,rle),s="".concat(n),l=parseInt(s,10),c="".concat(r),f=parseInt(c,10),d="".concat(t.height||i.height),v=parseInt(d,10),p="".concat(t.width||i.width),g=parseInt(p,10);return ac(ac(ac(ac(ac({},t),i),l?{x:l}:{}),f?{y:f}:{}),{},{height:v,width:g,name:t.name,radius:t.radius})}function IP(e){return I.createElement(wse,G1({shapeType:"rectangle",propTransformer:ule,activeClassName:"recharts-active-bar"},e))}var cle=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 s=ye(r)||yK(r);return s?t(r,i):(s||$o(),n)}},fle=["value","background"],D5;function Sl(e){"@babel/helpers - typeof";return Sl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sl(e)}function dle(e,t){if(e==null)return{};var n=hle(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hle(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 Sm(){return Sm=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},Sm.apply(this,arguments)}function zP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ut(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?zP(Object(n),!0).forEach(function(r){Ri(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function BP(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,k5(r.key),r)}}function ple(e,t,n){return t&&BP(e.prototype,t),n&&BP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function vle(e,t,n){return t=Om(t),gle(e,P5()?Reflect.construct(t,n||[],Om(e).constructor):t.apply(e,n))}function gle(e,t){if(t&&(Sl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yle(e)}function yle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function P5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(P5=function(){return!!e})()}function Om(e){return Om=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Om(e)}function ble(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 Ri(e,t,n){return t=k5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k5(e){var t=xle(e,"string");return Sl(t)=="symbol"?t:t+""}function xle(e,t){if(Sl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Tf=(function(e){function t(){var n;mle(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=vle(this,t,[].concat(i)),Ri(n,"state",{isAnimationFinished:!1}),Ri(n,"id",wf("recharts-bar-")),Ri(n,"handleAnimationEnd",function(){var l=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),l&&l()}),Ri(n,"handleAnimationStart",function(){var l=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),l&&l()}),n}return ble(t,e),ple(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,s=this.props,l=s.shape,c=s.dataKey,f=s.activeIndex,d=s.activeBar,v=Ve(this.props,!1);return r&&r.map(function(p,g){var x=g===f,_=x?d:l,S=Ut(Ut(Ut({},v),p),{},{isActive:x,option:_,index:g,dataKey:c,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return I.createElement(Lt,Sm({className:"recharts-bar-rectangle"},zh(i.props,p,g),{key:"rectangle-".concat(p==null?void 0:p.x,"-").concat(p==null?void 0:p.y,"-").concat(p==null?void 0:p.value,"-").concat(g)}),I.createElement(IP,S))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,s=i.data,l=i.layout,c=i.isAnimationActive,f=i.animationBegin,d=i.animationDuration,v=i.animationEasing,p=i.animationId,g=this.state.prevData;return I.createElement(Ka,{begin:f,duration:d,isActive:c,easing:v,from:{t:0},to:{t:1},key:"bar-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(x){var _=x.t,S=s.map(function(w,j){var A=g&&g[j];if(A){var E=Nr(A.x,w.x),N=Nr(A.y,w.y),T=Nr(A.width,w.width),M=Nr(A.height,w.height);return Ut(Ut({},w),{},{x:E(_),y:N(_),width:T(_),height:M(_)})}if(l==="horizontal"){var R=Nr(0,w.height),D=R(_);return Ut(Ut({},w),{},{y:w.y+w.height-D,height:D})}var L=Nr(0,w.width),Y=L(_);return Ut(Ut({},w),{},{width:Y})});return I.createElement(Lt,null,r.renderRectanglesStatically(S))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,s=r.isAnimationActive,l=this.state.prevData;return s&&i&&i.length&&(!l||!Ap(l,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,s=i.data,l=i.dataKey,c=i.activeIndex,f=Ve(this.props.background,!1);return s.map(function(d,v){d.value;var p=d.background,g=dle(d,fle);if(!p)return null;var x=Ut(Ut(Ut(Ut(Ut({},g),{},{fill:"#eee"},p),f),zh(r.props,d,v)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:l,index:v,className:"recharts-bar-background-rectangle"});return I.createElement(IP,Sm({key:"background-bar-".concat(v),option:r.props.background,isActive:v===c},x))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var s=this.props,l=s.data,c=s.xAxis,f=s.yAxis,d=s.layout,v=s.children,p=gr(v,Af);if(!p)return null;var g=d==="vertical"?l[0].height/2:l[0].width/2,x=function(w,j){var A=Array.isArray(w.value)?w.value[1]:w.value;return{x:w.x,y:w.y,value:A,errorVal:Zn(w,j)}},_={clipPath:r?"url(#clipPath-".concat(i,")"):null};return I.createElement(Lt,_,p.map(function(S){return I.cloneElement(S,{key:"error-bar-".concat(i,"-").concat(S.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,offset:g,dataPointFormatter:x})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,s=r.data,l=r.className,c=r.xAxis,f=r.yAxis,d=r.left,v=r.top,p=r.width,g=r.height,x=r.isAnimationActive,_=r.background,S=r.id;if(i||!s||!s.length)return null;var w=this.state.isAnimationFinished,j=Ye("recharts-bar",l),A=c&&c.allowDataOverflow,E=f&&f.allowDataOverflow,N=A||E,T=qe(S)?this.id:S;return I.createElement(Lt,{className:j},A||E?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(T)},I.createElement("rect",{x:A?d:d-p/2,y:E?v:v-g/2,width:A?p:p*2,height:E?g:g*2}))):null,I.createElement(Lt,{className:"recharts-bar-rectangles",clipPath:N?"url(#clipPath-".concat(T,")"):null},_?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(N,T),(!x||w)&&Pi.renderCallByParent(this.props,s))}}],[{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}}])})(O.PureComponent);D5=Tf;Ri(Tf,"displayName","Bar");Ri(Tf,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Wl.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ri(Tf,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,s=e.xAxis,l=e.yAxis,c=e.xAxisTicks,f=e.yAxisTicks,d=e.stackedData,v=e.dataStartIndex,p=e.displayedData,g=e.offset,x=Ire(r,n);if(!x)return null;var _=t.layout,S=n.type.defaultProps,w=S!==void 0?Ut(Ut({},S),n.props):n.props,j=w.dataKey,A=w.children,E=w.minPointSize,N=_==="horizontal"?l:s,T=d?N.scale.domain():null,M=Vre({numericAxis:N}),R=gr(A,f3),D=p.map(function(L,Y){var z,H,V,Q,K,k;d?z=zre(d[v+Y],T):(z=Zn(L,j),Array.isArray(z)||(z=[M,z]));var q=cle(E,D5.defaultProps.minPointSize)(z[1],Y);if(_==="horizontal"){var B,W=[l.scale(z[0]),l.scale(z[1])],se=W[0],$=W[1];H=OD({axis:s,ticks:c,bandSize:i,offset:x.offset,entry:L,index:Y}),V=(B=$??se)!==null&&B!==void 0?B:void 0,Q=x.size;var F=se-$;if(K=Number.isNaN(F)?0:F,k={x:H,y:l.y,width:Q,height:l.height},Math.abs(q)>0&&Math.abs(K)<Math.abs(q)){var X=Rr(K||q)*(Math.abs(q)-Math.abs(K));V-=X,K+=X}}else{var ae=[s.scale(z[0]),s.scale(z[1])],de=ae[0],ge=ae[1];if(H=de,V=OD({axis:l,ticks:f,bandSize:i,offset:x.offset,entry:L,index:Y}),Q=ge-de,K=x.size,k={x:s.x,y:V,width:s.width,height:K},Math.abs(q)>0&&Math.abs(Q)<Math.abs(q)){var ce=Rr(Q||q)*(Math.abs(q)-Math.abs(Q));Q+=ce}}return Ut(Ut(Ut({},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:[g5(n,L)],tooltipPosition:{x:H+Q/2,y:V+K/2}})});return Ut({data:D,layout:_},g)});function tf(e){"@babel/helpers - typeof";return tf=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},tf(e)}function wle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qP(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,$5(r.key),r)}}function Sle(e,t,n){return t&&qP(e.prototype,t),n&&qP(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UP(Object(n),!0).forEach(function(r){Rp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rp(e,t,n){return t=$5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $5(e){var t=Ole(e,"string");return tf(t)=="symbol"?t:t+""}function Ole(e,t){if(tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var _le=function(t,n,r,i,s){var l=t.width,c=t.height,f=t.layout,d=t.children,v=Object.keys(n),p={left:r.left,leftMirror:r.left,right:l-r.right,rightMirror:l-r.right,top:r.top,topMirror:r.top,bottom:c-r.bottom,bottomMirror:c-r.bottom},g=!!Yn(d,Tf);return v.reduce(function(x,_){var S=n[_],w=S.orientation,j=S.domain,A=S.padding,E=A===void 0?{}:A,N=S.mirror,T=S.reversed,M="".concat(w).concat(N?"Mirror":""),R,D,L,Y,z;if(S.type==="number"&&(S.padding==="gap"||S.padding==="no-gap")){var H=j[1]-j[0],V=1/0,Q=S.categoricalDomain.sort(wK);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=S.layout==="vertical"?r.height:r.width;if(S.padding==="gap"&&(R=K*k/2),S.padding==="no-gap"){var q=Po(t.barCategoryGap,K*k),B=K*k/2;R=B-q-(B-q)/k*q}}}i==="xAxis"?D=[r.left+(E.left||0)+(R||0),r.left+r.width-(E.right||0)-(R||0)]:i==="yAxis"?D=f==="horizontal"?[r.top+r.height-(E.bottom||0),r.top+(E.top||0)]:[r.top+(E.top||0)+(R||0),r.top+r.height-(E.bottom||0)-(R||0)]:D=S.range,T&&(D=[D[1],D[0]]);var W=$re(S,s,g),se=W.scale,$=W.realScaleType;se.domain(j).range(D),Lre(se);var F=Gre(se,Tr(Tr({},S),{},{realScaleType:$}));i==="xAxis"?(z=w==="top"&&!N||w==="bottom"&&N,L=r.left,Y=p[M]-z*S.height):i==="yAxis"&&(z=w==="left"&&!N||w==="right"&&N,L=p[M]-z*S.width,Y=r.top);var X=Tr(Tr(Tr({},S),F),{},{realScaleType:$,x:L,y:Y,scale:se,width:i==="xAxis"?r.width:S.width,height:i==="yAxis"?r.height:S.height});return X.bandSize=cm(X,F),!S.hide&&i==="xAxis"?p[M]+=(z?-1:1)*X.height:S.hide||(p[M]+=(z?-1:1)*X.width),Tr(Tr({},x),{},Rp({},_,X))},{})},L5=function(t,n){var r=t.x,i=t.y,s=n.x,l=n.y;return{x:Math.min(r,s),y:Math.min(i,l),width:Math.abs(s-r),height:Math.abs(l-i)}},jle=function(t){var n=t.x1,r=t.y1,i=t.x2,s=t.y2;return L5({x:n,y:r},{x:i,y:s})},I5=(function(){function e(t){wle(this,e),this.scale=t}return Sle(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,s=r.position;if(n!==void 0){if(s)switch(s){case"start":return this.scale(n);case"middle":{var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}case"end":{var c=this.bandwidth?this.bandwidth():0;return this.scale(n)+c}default:return this.scale(n)}if(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],s=r[r.length-1];return i<=s?n>=i&&n<=s:n>=s&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])})();Rp(I5,"EPS",1e-4);var f_=function(t){var n=Object.keys(t).reduce(function(r,i){return Tr(Tr({},r),{},Rp({},i,I5.create(t[i])))},{});return Tr(Tr({},n),{},{apply:function(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=s.bandAware,c=s.position;return Zse(i,function(f,d){return n[d].apply(f,{bandAware:l,position:c})})},isInRange:function(i){return R5(i,function(s,l){return n[l].isInRange(s)})}})};function Ele(e){return(e%180+180)%180}var Ale=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,s=Ele(i),l=s*Math.PI/180,c=Math.atan(r/n),f=l>c&&l<Math.PI-c?r/Math.sin(l):n/Math.cos(l);return Math.abs(f)},vw,HP;function Tle(){if(HP)return vw;HP=1;var e=Hi(),t=Sf(),n=vp();function r(i){return function(s,l,c){var f=Object(s);if(!t(s)){var d=e(l,3);s=n(s),l=function(p){return d(f[p],p,f)}}var v=i(s,l,c);return v>-1?f[d?s[v]:v]:void 0}}return vw=r,vw}var gw,FP;function Cle(){if(FP)return gw;FP=1;var e=T5();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return gw=t,gw}var yw,GP;function Nle(){if(GP)return yw;GP=1;var e=Q4(),t=Hi(),n=Cle(),r=Math.max;function i(s,l,c){var f=s==null?0:s.length;if(!f)return-1;var d=c==null?0:n(c);return d<0&&(d=r(f+d,0)),e(s,t(l,3),d)}return yw=i,yw}var bw,VP;function Mle(){if(VP)return bw;VP=1;var e=Tle(),t=Nle(),n=e(t);return bw=n,bw}var Rle=Mle();const Dle=gt(Rle);var Ple=h4();const kle=gt(Ple);var $le=kle(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("")}),d_=O.createContext(void 0),h_=O.createContext(void 0),z5=O.createContext(void 0),B5=O.createContext({}),q5=O.createContext(void 0),U5=O.createContext(0),H5=O.createContext(0),YP=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,s=n.offset,l=t.clipPathId,c=t.children,f=t.width,d=t.height,v=$le(s);return I.createElement(d_.Provider,{value:r},I.createElement(h_.Provider,{value:i},I.createElement(B5.Provider,{value:s},I.createElement(z5.Provider,{value:v},I.createElement(q5.Provider,{value:l},I.createElement(U5.Provider,{value:d},I.createElement(H5.Provider,{value:f},c)))))))},Lle=function(){return O.useContext(q5)},F5=function(t){var n=O.useContext(d_);n==null&&$o();var r=n[t];return r==null&&$o(),r},Ile=function(){var t=O.useContext(d_);return Ni(t)},zle=function(){var t=O.useContext(h_),n=Dle(t,function(r){return R5(r.domain,Number.isFinite)});return n||Ni(t)},G5=function(t){var n=O.useContext(h_);n==null&&$o();var r=n[t];return r==null&&$o(),r},Ble=function(){var t=O.useContext(z5);return t},qle=function(){return O.useContext(B5)},m_=function(){return O.useContext(H5)},p_=function(){return O.useContext(U5)};function Ol(e){"@babel/helpers - typeof";return Ol=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ol(e)}function Ule(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Hle(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Y5(r.key),r)}}function Fle(e,t,n){return t&&Hle(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gle(e,t,n){return t=_m(t),Vle(e,V5()?Reflect.construct(t,n||[],_m(e).constructor):t.apply(e,n))}function Vle(e,t){if(t&&(Ol(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yle(e)}function Yle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V5=function(){return!!e})()}function _m(e){return _m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},_m(e)}function Wle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y1(e,t)}function Y1(e,t){return Y1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Y1(e,t)}function WP(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?WP(Object(n),!0).forEach(function(r){v_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v_(e,t,n){return t=Y5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Y5(e){var t=Kle(e,"string");return Ol(t)=="symbol"?t:t+""}function Kle(e,t){if(Ol(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ol(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Xle(e,t){return eue(e)||Jle(e,t)||Zle(e,t)||Qle()}function Qle(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
361
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zle(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 Jle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function eue(e){if(Array.isArray(e))return e}function W1(){return W1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W1.apply(this,arguments)}var tue=function(t,n){var r;return I.isValidElement(t)?r=I.cloneElement(t,n):$e(t)?r=t(n):r=I.createElement("line",W1({},n,{className:"recharts-reference-line-line"})),r},nue=function(t,n,r,i,s,l,c,f,d){var v=s.x,p=s.y,g=s.width,x=s.height;if(r){var _=d.y,S=t.y.apply(_,{position:l});if(ua(d,"discard")&&!t.y.isInRange(S))return null;var w=[{x:v+g,y:S},{x:v,y:S}];return f==="left"?w.reverse():w}if(n){var j=d.x,A=t.x.apply(j,{position:l});if(ua(d,"discard")&&!t.x.isInRange(A))return null;var E=[{x:A,y:p+x},{x:A,y:p}];return c==="top"?E.reverse():E}if(i){var N=d.segment,T=N.map(function(M){return t.apply(M,{position:l})});return ua(d,"discard")&&Wse(T,function(M){return!t.isInRange(M)})?null:T}return null};function rue(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,s=e.yAxisId,l=e.shape,c=e.className,f=e.alwaysShow,d=Lle(),v=F5(i),p=G5(s),g=Ble();if(!d||!g)return null;qa(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var x=f_({x:v.scale,y:p.scale}),_=Kt(t),S=Kt(n),w=r&&r.length===2,j=nue(x,_,S,w,g,e.position,v.orientation,p.orientation,e);if(!j)return null;var A=Xle(j,2),E=A[0],N=E.x,T=E.y,M=A[1],R=M.x,D=M.y,L=ua(e,"hidden")?"url(#".concat(d,")"):void 0,Y=KP(KP({clipPath:L},Ve(e,!0)),{},{x1:N,y1:T,x2:R,y2:D});return I.createElement(Lt,{className:Ye("recharts-reference-line",c)},tue(l,Y),vn.renderCallByParent(e,jle({x1:N,y1:T,x2:R,y2:D})))}var g_=(function(e){function t(){return Ule(this,t),Gle(this,t,arguments)}return Wle(t,e),Fle(t,[{key:"render",value:function(){return I.createElement(rue,this.props)}}])})(I.Component);v_(g_,"displayName","ReferenceLine");v_(g_,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function K1(){return K1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},K1.apply(this,arguments)}function _l(e){"@babel/helpers - typeof";return _l=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},_l(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){Dp(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 aue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function iue(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,K5(r.key),r)}}function oue(e,t,n){return t&&iue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sue(e,t,n){return t=jm(t),lue(e,W5()?Reflect.construct(t,n||[],jm(e).constructor):t.apply(e,n))}function lue(e,t){if(t&&(_l(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uue(e)}function uue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function W5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W5=function(){return!!e})()}function jm(e){return jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jm(e)}function cue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X1(e,t)}function X1(e,t){return X1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},X1(e,t)}function Dp(e,t,n){return t=K5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function K5(e){var t=fue(e,"string");return _l(t)=="symbol"?t:t+""}function fue(e,t){if(_l(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_l(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var due=function(t){var n=t.x,r=t.y,i=t.xAxis,s=t.yAxis,l=f_({x:i.scale,y:s.scale}),c=l.apply({x:n,y:r},{bandAware:!0});return ua(t,"discard")&&!l.isInRange(c)?null:c},Pp=(function(e){function t(){return aue(this,t),sue(this,t,arguments)}return cue(t,e),oue(t,[{key:"render",value:function(){var r=this.props,i=r.x,s=r.y,l=r.r,c=r.alwaysShow,f=r.clipPathId,d=Kt(i),v=Kt(s);if(qa(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!d||!v)return null;var p=due(this.props);if(!p)return null;var g=p.x,x=p.y,_=this.props,S=_.shape,w=_.className,j=ua(this.props,"hidden")?"url(#".concat(f,")"):void 0,A=ZP(ZP({clipPath:j},Ve(this.props,!0)),{},{cx:g,cy:x});return I.createElement(Lt,{className:Ye("recharts-reference-dot",w)},t.renderDot(S,A),vn.renderCallByParent(this.props,{x:g-l,y:x-l,width:2*l,height:2*l}))}}])})(I.Component);Dp(Pp,"displayName","ReferenceDot");Dp(Pp,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Dp(Pp,"renderDot",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):$e(e)?n=e(t):n=I.createElement(c_,K1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});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 jl(e){"@babel/helpers - typeof";return jl=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},jl(e)}function JP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ek(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JP(Object(n),!0).forEach(function(r){kp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hue(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,Q5(r.key),r)}}function pue(e,t,n){return t&&mue(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function vue(e,t,n){return t=Em(t),gue(e,X5()?Reflect.construct(t,n||[],Em(e).constructor):t.apply(e,n))}function gue(e,t){if(t&&(jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return yue(e)}function yue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(X5=function(){return!!e})()}function Em(e){return Em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Em(e)}function bue(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 kp(e,t,n){return t=Q5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q5(e){var t=xue(e,"string");return jl(t)=="symbol"?t:t+""}function xue(e,t){if(jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wue=function(t,n,r,i,s){var l=s.x1,c=s.x2,f=s.y1,d=s.y2,v=s.xAxis,p=s.yAxis;if(!v||!p)return null;var g=f_({x:v.scale,y:p.scale}),x={x:t?g.x.apply(l,{position:"start"}):g.x.rangeMin,y:r?g.y.apply(f,{position:"start"}):g.y.rangeMin},_={x:n?g.x.apply(c,{position:"end"}):g.x.rangeMax,y:i?g.y.apply(d,{position:"end"}):g.y.rangeMax};return ua(s,"discard")&&(!g.isInRange(x)||!g.isInRange(_))?null:L5(x,_)},$p=(function(e){function t(){return hue(this,t),vue(this,t,arguments)}return bue(t,e),pue(t,[{key:"render",value:function(){var r=this.props,i=r.x1,s=r.x2,l=r.y1,c=r.y2,f=r.className,d=r.alwaysShow,v=r.clipPathId;qa(d===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Kt(i),g=Kt(s),x=Kt(l),_=Kt(c),S=this.props.shape;if(!p&&!g&&!x&&!_&&!S)return null;var w=wue(p,g,x,_,this.props);if(!w&&!S)return null;var j=ua(this.props,"hidden")?"url(#".concat(v,")"):void 0;return I.createElement(Lt,{className:Ye("recharts-reference-area",f)},t.renderRect(S,ek(ek({clipPath:j},Ve(this.props,!0)),w)),vn.renderCallByParent(this.props,w))}}])})(I.Component);kp($p,"displayName","ReferenceArea");kp($p,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});kp($p,"renderRect",function(e,t){var n;return I.isValidElement(e)?n=I.cloneElement(e,t):$e(e)?n=e(t):n=I.createElement(u_,Q1({},t,{className:"recharts-reference-area-rect"})),n});function Z5(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 Sue(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return Ale(r,n)}function Oue(e,t,n){var r=n==="width",i=e.x,s=e.y,l=e.width,c=e.height;return t===1?{start:r?i:s,end:r?i+l:s+c}:{start:r?i+l:s+c,end:r?i:s}}function Am(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var s=n();return e*(t-e*s/2-r)>=0&&e*(t+e*s/2-i)<=0}function _ue(e,t){return Z5(e,t+1)}function jue(e,t,n,r,i){for(var s=(r||[]).slice(),l=t.start,c=t.end,f=0,d=1,v=l,p=function(){var _=r==null?void 0:r[f];if(_===void 0)return{v:Z5(r,d)};var S=f,w,j=function(){return w===void 0&&(w=n(_,S)),w},A=_.coordinate,E=f===0||Am(e,A,j,v,c);E||(f=0,v=l,d+=1),E&&(v=A+e*(j()/2+i),f+=d)},g;d<=s.length;)if(g=p(),g)return g.v;return[]}function nf(e){"@babel/helpers - typeof";return nf=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},nf(e)}function tk(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?tk(Object(n),!0).forEach(function(r){Eue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Eue(e,t,n){return t=Aue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aue(e){var t=Tue(e,"string");return nf(t)=="symbol"?t:t+""}function Tue(e,t){if(nf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Cue(e,t,n,r,i){for(var s=(r||[]).slice(),l=s.length,c=t.start,f=t.end,d=function(g){var x=s[g],_,S=function(){return _===void 0&&(_=n(x,g)),_};if(g===l-1){var w=e*(x.coordinate+e*S()/2-f);s[g]=x=pn(pn({},x),{},{tickCoord:w>0?x.coordinate-w*e:x.coordinate})}else s[g]=x=pn(pn({},x),{},{tickCoord:x.coordinate});var j=Am(e,x.tickCoord,S,c,f);j&&(f=x.tickCoord-e*(S()/2+i),s[g]=pn(pn({},x),{},{isShow:!0}))},v=l-1;v>=0;v--)d(v);return s}function Nue(e,t,n,r,i,s){var l=(r||[]).slice(),c=l.length,f=t.start,d=t.end;if(s){var v=r[c-1],p=n(v,c-1),g=e*(v.coordinate+e*p/2-d);l[c-1]=v=pn(pn({},v),{},{tickCoord:g>0?v.coordinate-g*e:v.coordinate});var x=Am(e,v.tickCoord,function(){return p},f,d);x&&(d=v.tickCoord-e*(p/2+i),l[c-1]=pn(pn({},v),{},{isShow:!0}))}for(var _=s?c-1:c,S=function(A){var E=l[A],N,T=function(){return N===void 0&&(N=n(E,A)),N};if(A===0){var M=e*(E.coordinate-e*T()/2-f);l[A]=E=pn(pn({},E),{},{tickCoord:M<0?E.coordinate-M*e:E.coordinate})}else l[A]=E=pn(pn({},E),{},{tickCoord:E.coordinate});var R=Am(e,E.tickCoord,T,f,d);R&&(f=E.tickCoord+e*(T()/2+i),l[A]=pn(pn({},E),{},{isShow:!0}))},w=0;w<_;w++)S(w);return l}function y_(e,t,n){var r=e.tick,i=e.ticks,s=e.viewBox,l=e.minTickGap,c=e.orientation,f=e.interval,d=e.tickFormatter,v=e.unit,p=e.angle;if(!i||!i.length||!r)return[];if(ye(f)||Wl.isSsr)return _ue(i,typeof f=="number"&&ye(f)?f:0);var g=[],x=c==="top"||c==="bottom"?"width":"height",_=v&&x==="width"?dc(v,{fontSize:t,letterSpacing:n}):{width:0,height:0},S=function(E,N){var T=$e(d)?d(E.value,N):E.value;return x==="width"?Sue(dc(T,{fontSize:t,letterSpacing:n}),_,p):dc(T,{fontSize:t,letterSpacing:n})[x]},w=i.length>=2?Rr(i[1].coordinate-i[0].coordinate):1,j=Oue(s,w,x);return f==="equidistantPreserveStart"?jue(w,j,S,i,l):(f==="preserveStart"||f==="preserveStartEnd"?g=Nue(w,j,S,i,l,f==="preserveStartEnd"):g=Cue(w,j,S,i,l),g.filter(function(A){return A.isShow}))}var Mue=["viewBox"],Rue=["viewBox"],Due=["ticks"];function El(e){"@babel/helpers - typeof";return El=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},El(e)}function Gs(){return Gs=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},Gs.apply(this,arguments)}function nk(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 Yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nk(Object(n),!0).forEach(function(r){b_(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xw(e,t){if(e==null)return{};var n=Pue(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pue(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 kue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function rk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ez(r.key),r)}}function $ue(e,t,n){return t&&rk(e.prototype,t),n&&rk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lue(e,t,n){return t=Tm(t),Iue(e,J5()?Reflect.construct(t,n||[],Tm(e).constructor):t.apply(e,n))}function Iue(e,t){if(t&&(El(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zue(e)}function zue(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function J5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(J5=function(){return!!e})()}function Tm(e){return Tm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Tm(e)}function Bue(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J1(e,t)}function J1(e,t){return J1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},J1(e,t)}function b_(e,t,n){return t=ez(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ez(e){var t=que(e,"string");return El(t)=="symbol"?t:t+""}function que(e,t){if(El(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(El(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Zl=(function(e){function t(n){var r;return kue(this,t),r=Lue(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Bue(t,e),$ue(t,[{key:"shouldComponentUpdate",value:function(r,i){var s=r.viewBox,l=xw(r,Mue),c=this.props,f=c.viewBox,d=xw(c,Rue);return!Qs(s,f)||!Qs(l,d)||!Qs(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,s=i.x,l=i.y,c=i.width,f=i.height,d=i.orientation,v=i.tickSize,p=i.mirror,g=i.tickMargin,x,_,S,w,j,A,E=p?-1:1,N=r.tickSize||v,T=ye(r.tickCoord)?r.tickCoord:r.coordinate;switch(d){case"top":x=_=r.coordinate,w=l+ +!p*f,S=w-E*N,A=S-E*g,j=T;break;case"left":S=w=r.coordinate,_=s+ +!p*c,x=_-E*N,j=x-E*g,A=T;break;case"right":S=w=r.coordinate,_=s+ +p*c,x=_+E*N,j=x+E*g,A=T;break;default:x=_=r.coordinate,w=l+ +p*f,S=w+E*N,A=S+E*g,j=T;break}return{line:{x1:x,y1:S,x2:_,y2:w},tick:{x:j,y:A}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,l;switch(i){case"left":l=s?"start":"end";break;case"right":l=s?"end":"start";break;default:l="middle";break}return l}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,s=r.mirror,l="end";switch(i){case"left":case"right":l="middle";break;case"top":l=s?"start":"end";break;default:l=s?"end":"start";break}return l}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,s=r.y,l=r.width,c=r.height,f=r.orientation,d=r.mirror,v=r.axisLine,p=Yt(Yt(Yt({},Ve(this.props,!1)),Ve(v,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var g=+(f==="top"&&!d||f==="bottom"&&d);p=Yt(Yt({},p),{},{x1:i,y1:s+g*c,x2:i+l,y2:s+g*c})}else{var x=+(f==="left"&&!d||f==="right"&&d);p=Yt(Yt({},p),{},{x1:i+x*l,y1:s,x2:i+x*l,y2:s+c})}return I.createElement("line",Gs({},p,{className:Ye("recharts-cartesian-axis-line",vr(v,"className"))}))}},{key:"renderTicks",value:function(r,i,s){var l=this,c=this.props,f=c.tickLine,d=c.stroke,v=c.tick,p=c.tickFormatter,g=c.unit,x=y_(Yt(Yt({},this.props),{},{ticks:r}),i,s),_=this.getTickTextAnchor(),S=this.getTickVerticalAnchor(),w=Ve(this.props,!1),j=Ve(v,!1),A=Yt(Yt({},w),{},{fill:"none"},Ve(f,!1)),E=x.map(function(N,T){var M=l.getTickLineCoord(N),R=M.line,D=M.tick,L=Yt(Yt(Yt(Yt({textAnchor:_,verticalAnchor:S},w),{},{stroke:"none",fill:d},j),D),{},{index:T,payload:N,visibleTicksCount:x.length,tickFormatter:p});return I.createElement(Lt,Gs({className:"recharts-cartesian-axis-tick",key:"tick-".concat(N.value,"-").concat(N.coordinate,"-").concat(N.tickCoord)},zh(l.props,N,T)),f&&I.createElement("line",Gs({},A,R,{className:Ye("recharts-cartesian-axis-tick-line",vr(f,"className"))})),v&&t.renderTickItem(v,L,"".concat($e(p)?p(N.value,T):N.value).concat(g||"")))});return I.createElement("g",{className:"recharts-cartesian-axis-ticks"},E)}},{key:"render",value:function(){var r=this,i=this.props,s=i.axisLine,l=i.width,c=i.height,f=i.ticksGenerator,d=i.className,v=i.hide;if(v)return null;var p=this.props,g=p.ticks,x=xw(p,Due),_=g;return $e(f)&&(_=g&&g.length>0?f(this.props):f(x)),l<=0||c<=0||!_||!_.length?null:I.createElement(Lt,{className:Ye("recharts-cartesian-axis",d),ref:function(w){r.layerReference=w}},s&&this.renderAxisLine(),this.renderTicks(_,this.state.fontSize,this.state.letterSpacing),vn.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,s){var l,c=Ye(i.className,"recharts-cartesian-axis-tick-value");return I.isValidElement(r)?l=I.cloneElement(r,Yt(Yt({},i),{},{className:c})):$e(r)?l=r(Yt(Yt({},i),{},{className:c})):l=I.createElement(Xh,Gs({},i,{className:"recharts-cartesian-axis-tick-value"}),s),l}}])})(O.Component);b_(Zl,"displayName","CartesianAxis");b_(Zl,"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 Uue=["x1","y1","x2","y2","key"],Hue=["offset"];function Lo(e){"@babel/helpers - typeof";return Lo=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},Lo(e)}function ak(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 gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ak(Object(n),!0).forEach(function(r){Fue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ak(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fue(e,t,n){return t=Gue(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gue(e){var t=Vue(e,"string");return Lo(t)=="symbol"?t:t+""}function Vue(e,t){if(Lo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jo(){return jo=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},jo.apply(this,arguments)}function ik(e,t){if(e==null)return{};var n=Yue(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yue(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 Wue=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,s=t.y,l=t.width,c=t.height,f=t.ry;return I.createElement("rect",{x:i,y:s,ry:f,width:l,height:c,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function tz(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,s=t.x2,l=t.y2,c=t.key,f=ik(t,Uue),d=Ve(f,!1);d.offset;var v=ik(d,Hue);n=I.createElement("line",jo({},v,{x1:r,y1:i,x2:s,y2:l,fill:"none",key:c}))}return n}function Kue(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,s=e.horizontalPoints;if(!i||!s||!s.length)return null;var l=s.map(function(c,f){var d=gn(gn({},e),{},{x1:t,y1:c,x2:t+n,y2:c,key:"line-".concat(f),index:f});return tz(i,d)});return I.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function Xue(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,s=e.verticalPoints;if(!i||!s||!s.length)return null;var l=s.map(function(c,f){var d=gn(gn({},e),{},{x1:c,y1:t,x2:c,y2:t+n,key:"line-".concat(f),index:f});return tz(i,d)});return I.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function Que(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,s=e.width,l=e.height,c=e.horizontalPoints,f=e.horizontal,d=f===void 0?!0:f;if(!d||!t||!t.length)return null;var v=c.map(function(g){return Math.round(g+i-i)}).sort(function(g,x){return g-x});i!==v[0]&&v.unshift(0);var p=v.map(function(g,x){var _=!v[x+1],S=_?i+l-g:v[x+1]-g;if(S<=0)return null;var w=x%t.length;return I.createElement("rect",{key:"react-".concat(x),y:g,x:r,height:S,width:s,stroke:"none",fill:t[w],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},p)}function Zue(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,s=e.x,l=e.y,c=e.width,f=e.height,d=e.verticalPoints;if(!n||!r||!r.length)return null;var v=d.map(function(g){return Math.round(g+s-s)}).sort(function(g,x){return g-x});s!==v[0]&&v.unshift(0);var p=v.map(function(g,x){var _=!v[x+1],S=_?s+c-g:v[x+1]-g;if(S<=0)return null;var w=x%r.length;return I.createElement("rect",{key:"react-".concat(x),x:g,y:l,width:S,height:f,stroke:"none",fill:r[w],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return I.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},p)}var Jue=function(t,n){var r=t.xAxis,i=t.width,s=t.height,l=t.offset;return p5(y_(gn(gn(gn({},Zl.defaultProps),r),{},{ticks:Ia(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),l.left,l.left+l.width,n)},ece=function(t,n){var r=t.yAxis,i=t.width,s=t.height,l=t.offset;return p5(y_(gn(gn(gn({},Zl.defaultProps),r),{},{ticks:Ia(r,!0),viewBox:{x:0,y:0,width:i,height:s}})),l.top,l.top+l.height,n)},Us={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function nz(e){var t,n,r,i,s,l,c=m_(),f=p_(),d=qle(),v=gn(gn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Us.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Us.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Us.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Us.horizontalFill,vertical:(s=e.vertical)!==null&&s!==void 0?s:Us.vertical,verticalFill:(l=e.verticalFill)!==null&&l!==void 0?l:Us.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=v.x,g=v.y,x=v.width,_=v.height,S=v.syncWithTicks,w=v.horizontalValues,j=v.verticalValues,A=Ile(),E=zle();if(!ye(x)||x<=0||!ye(_)||_<=0||!ye(p)||p!==+p||!ye(g)||g!==+g)return null;var N=v.verticalCoordinatesGenerator||Jue,T=v.horizontalCoordinatesGenerator||ece,M=v.horizontalPoints,R=v.verticalPoints;if((!M||!M.length)&&$e(T)){var D=w&&w.length,L=T({yAxis:E?gn(gn({},E),{},{ticks:D?w:E.ticks}):void 0,width:c,height:f,offset:d},D?!0:S);qa(Array.isArray(L),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(Lo(L),"]")),Array.isArray(L)&&(M=L)}if((!R||!R.length)&&$e(N)){var Y=j&&j.length,z=N({xAxis:A?gn(gn({},A),{},{ticks:Y?j:A.ticks}):void 0,width:c,height:f,offset:d},Y?!0:S);qa(Array.isArray(z),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(Lo(z),"]")),Array.isArray(z)&&(R=z)}return I.createElement("g",{className:"recharts-cartesian-grid"},I.createElement(Wue,{fill:v.fill,fillOpacity:v.fillOpacity,x:v.x,y:v.y,width:v.width,height:v.height,ry:v.ry}),I.createElement(Kue,jo({},v,{offset:d,horizontalPoints:M,xAxis:A,yAxis:E})),I.createElement(Xue,jo({},v,{offset:d,verticalPoints:R,xAxis:A,yAxis:E})),I.createElement(Que,jo({},v,{horizontalPoints:M})),I.createElement(Zue,jo({},v,{verticalPoints:R})))}nz.displayName="CartesianGrid";var tce=["type","layout","connectNulls","ref"],nce=["key"];function Al(e){"@babel/helpers - typeof";return Al=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Al(e)}function ok(e,t){if(e==null)return{};var n=rce(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rce(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 vc(){return vc=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},vc.apply(this,arguments)}function sk(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 Gn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sk(Object(n),!0).forEach(function(r){Cr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hs(e){return sce(e)||oce(e)||ice(e)||ace()}function ace(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
362
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ice(e,t){if(e){if(typeof e=="string")return eS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return eS(e,t)}}function oce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sce(e){if(Array.isArray(e))return eS(e)}function eS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lk(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,az(r.key),r)}}function uce(e,t,n){return t&&lk(e.prototype,t),n&&lk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function cce(e,t,n){return t=Cm(t),fce(e,rz()?Reflect.construct(t,n||[],Cm(e).constructor):t.apply(e,n))}function fce(e,t){if(t&&(Al(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return dce(e)}function dce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rz=function(){return!!e})()}function Cm(e){return Cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cm(e)}function hce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tS(e,t)}function tS(e,t){return tS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tS(e,t)}function Cr(e,t,n){return t=az(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function az(e){var t=mce(e,"string");return Al(t)=="symbol"?t:t+""}function mce(e,t){if(Al(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Al(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ta=(function(e){function t(){var n;lce(this,t);for(var r=arguments.length,i=new Array(r),s=0;s<r;s++)i[s]=arguments[s];return n=cce(this,t,[].concat(i)),Cr(n,"state",{isAnimationFinished:!0,totalLength:0}),Cr(n,"generateSimpleStrokeDasharray",function(l,c){return"".concat(c,"px ").concat(l-c,"px")}),Cr(n,"getStrokeDasharray",function(l,c,f){var d=f.reduce(function(j,A){return j+A});if(!d)return n.generateSimpleStrokeDasharray(c,l);for(var v=Math.floor(l/d),p=l%d,g=c-l,x=[],_=0,S=0;_<f.length;S+=f[_],++_)if(S+f[_]>p){x=[].concat(Hs(f.slice(0,_)),[p-S]);break}var w=x.length%2===0?[0,g]:[g];return[].concat(Hs(t.repeat(f,v)),Hs(x),w).map(function(j){return"".concat(j,"px")}).join(", ")}),Cr(n,"id",wf("recharts-line-")),Cr(n,"pathRef",function(l){n.mainCurve=l}),Cr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Cr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return hce(t,e),uce(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 s=this.props,l=s.points,c=s.xAxis,f=s.yAxis,d=s.layout,v=s.children,p=gr(v,Af);if(!p)return null;var g=function(S,w){return{x:S.x,y:S.y,value:S.value,errorVal:Zn(S.payload,w)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return I.createElement(Lt,x,p.map(function(_){return I.cloneElement(_,{key:"bar-".concat(_.props.dataKey),data:l,xAxis:c,yAxis:f,layout:d,dataPointFormatter:g})}))}},{key:"renderDots",value:function(r,i,s){var l=this.props.isAnimationActive;if(l&&!this.state.isAnimationFinished)return null;var c=this.props,f=c.dot,d=c.points,v=c.dataKey,p=Ve(this.props,!1),g=Ve(f,!0),x=d.map(function(S,w){var j=Gn(Gn(Gn({key:"dot-".concat(w),r:3},p),g),{},{index:w,cx:S.x,cy:S.y,value:S.value,dataKey:v,payload:S.payload,points:d});return t.renderDotItem(f,j)}),_={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(s,")"):null};return I.createElement(Lt,vc({className:"recharts-line-dots",key:"dots"},_),x)}},{key:"renderCurveStatically",value:function(r,i,s,l){var c=this.props,f=c.type,d=c.layout,v=c.connectNulls;c.ref;var p=ok(c,tce),g=Gn(Gn(Gn({},Ve(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(s,")"):null,points:r},l),{},{type:f,layout:d,connectNulls:v});return I.createElement(R1,vc({},g,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var s=this,l=this.props,c=l.points,f=l.strokeDasharray,d=l.isAnimationActive,v=l.animationBegin,p=l.animationDuration,g=l.animationEasing,x=l.animationId,_=l.animateNewValues,S=l.width,w=l.height,j=this.state,A=j.prevPoints,E=j.totalLength;return I.createElement(Ka,{begin:v,duration:p,isActive:d,easing:g,from:{t:0},to:{t:1},key:"line-".concat(x),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(N){var T=N.t;if(A){var M=A.length/c.length,R=c.map(function(H,V){var Q=Math.floor(V*M);if(A[Q]){var K=A[Q],k=Nr(K.x,H.x),q=Nr(K.y,H.y);return Gn(Gn({},H),{},{x:k(T),y:q(T)})}if(_){var B=Nr(S*2,H.x),W=Nr(w/2,H.y);return Gn(Gn({},H),{},{x:B(T),y:W(T)})}return Gn(Gn({},H),{},{x:H.x,y:H.y})});return s.renderCurveStatically(R,r,i)}var D=Nr(0,E),L=D(T),Y;if(f){var z="".concat(f).split(/[,\s]+/gim).map(function(H){return parseFloat(H)});Y=s.getStrokeDasharray(L,E,z)}else Y=s.generateSimpleStrokeDasharray(E,L);return s.renderCurveStatically(c,r,i,{strokeDasharray:Y})})}},{key:"renderCurve",value:function(r,i){var s=this.props,l=s.points,c=s.isAnimationActive,f=this.state,d=f.prevPoints,v=f.totalLength;return c&&l&&l.length&&(!d&&v>0||!Ap(d,l))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(l,r,i)}},{key:"render",value:function(){var r,i=this.props,s=i.hide,l=i.dot,c=i.points,f=i.className,d=i.xAxis,v=i.yAxis,p=i.top,g=i.left,x=i.width,_=i.height,S=i.isAnimationActive,w=i.id;if(s||!c||!c.length)return null;var j=this.state.isAnimationFinished,A=c.length===1,E=Ye("recharts-line",f),N=d&&d.allowDataOverflow,T=v&&v.allowDataOverflow,M=N||T,R=qe(w)?this.id:w,D=(r=Ve(l,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},L=D.r,Y=L===void 0?3:L,z=D.strokeWidth,H=z===void 0?2:z,V=NK(l)?l:{},Q=V.clipDot,K=Q===void 0?!0:Q,k=Y*2+H;return I.createElement(Lt,{className:E},N||T?I.createElement("defs",null,I.createElement("clipPath",{id:"clipPath-".concat(R)},I.createElement("rect",{x:N?g:g-x/2,y:T?p:p-_/2,width:N?x:x*2,height:T?_:_*2})),!K&&I.createElement("clipPath",{id:"clipPath-dots-".concat(R)},I.createElement("rect",{x:g-k/2,y:p-k/2,width:x+k,height:_+k}))):null,!A&&this.renderCurve(M,R),this.renderErrorBar(M,R),(A||l)&&this.renderDots(M,K,R),(!S||j)&&Pi.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 s=r.length%2!==0?[].concat(Hs(r),[0]):r,l=[],c=0;c<i;++c)l=[].concat(Hs(l),Hs(s));return l}},{key:"renderDotItem",value:function(r,i){var s;if(I.isValidElement(r))s=I.cloneElement(r,i);else if($e(r))s=r(i);else{var l=i.key,c=ok(i,nce),f=Ye("recharts-line-dot",typeof r!="boolean"?r.className:"");s=I.createElement(c_,vc({key:l},c,{className:f}))}return s}}])})(O.PureComponent);Cr(ta,"displayName","Line");Cr(ta,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Wl.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Cr(ta,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,s=e.yAxisTicks,l=e.dataKey,c=e.bandSize,f=e.displayedData,d=e.offset,v=t.layout,p=f.map(function(g,x){var _=Zn(g,l);return v==="horizontal"?{x:SD({axis:n,ticks:i,bandSize:c,entry:g,index:x}),y:qe(_)?null:r.scale(_),value:_,payload:g}:{x:qe(_)?null:n.scale(_),y:SD({axis:r,ticks:s,bandSize:c,entry:g,index:x}),value:_,payload:g}});return Gn({points:p,layout:v},d)});function Tl(e){"@babel/helpers - typeof";return Tl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tl(e)}function pce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vce(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 gce(e,t,n){return t&&vce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function yce(e,t,n){return t=Nm(t),bce(e,iz()?Reflect.construct(t,n||[],Nm(e).constructor):t.apply(e,n))}function bce(e,t){if(t&&(Tl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xce(e)}function xce(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iz=function(){return!!e})()}function Nm(e){return Nm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Nm(e)}function wce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nS(e,t)}function nS(e,t){return nS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nS(e,t)}function oz(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=Sce(e,"string");return Tl(t)=="symbol"?t:t+""}function Sce(e,t){if(Tl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function rS(){return rS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rS.apply(this,arguments)}function Oce(e){var t=e.xAxisId,n=m_(),r=p_(),i=F5(t);return i==null?null:O.createElement(Zl,rS({},i,{className:Ye("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(l){return Ia(l,!0)}}))}var Lp=(function(e){function t(){return pce(this,t),yce(this,t,arguments)}return wce(t,e),gce(t,[{key:"render",value:function(){return O.createElement(Oce,this.props)}}])})(O.Component);oz(Lp,"displayName","XAxis");oz(Lp,"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 Cl(e){"@babel/helpers - typeof";return Cl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Cl(e)}function _ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function jce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,cz(r.key),r)}}function Ece(e,t,n){return t&&jce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ace(e,t,n){return t=Mm(t),Tce(e,lz()?Reflect.construct(t,n||[],Mm(e).constructor):t.apply(e,n))}function Tce(e,t){if(t&&(Cl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Cce(e)}function Cce(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 Mm(e){return Mm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mm(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&&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 uz(e,t,n){return t=cz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function cz(e){var t=Mce(e,"string");return Cl(t)=="symbol"?t:t+""}function Mce(e,t){if(Cl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function iS(){return iS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iS.apply(this,arguments)}var Rce=function(t){var n=t.yAxisId,r=m_(),i=p_(),s=G5(n);return s==null?null:O.createElement(Zl,iS({},s,{className:Ye("recharts-".concat(s.axisType," ").concat(s.axisType),s.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(c){return Ia(c,!0)}}))},Ip=(function(e){function t(){return _ce(this,t),Ace(this,t,arguments)}return Nce(t,e),Ece(t,[{key:"render",value:function(){return O.createElement(Rce,this.props)}}])})(O.Component);uz(Ip,"displayName","YAxis");uz(Ip,"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 uk(e){return $ce(e)||kce(e)||Pce(e)||Dce()}function Dce(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
363
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pce(e,t){if(e){if(typeof e=="string")return oS(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 oS(e,t)}}function kce(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function $ce(e){if(Array.isArray(e))return oS(e)}function oS(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 sS=function(t,n,r,i,s){var l=gr(t,g_),c=gr(t,Pp),f=[].concat(uk(l),uk(c)),d=gr(t,$p),v="".concat(i,"Id"),p=i[0],g=n;if(f.length&&(g=f.reduce(function(S,w){if(w.props[v]===r&&ua(w.props,"extendDomain")&&ye(w.props[p])){var j=w.props[p];return[Math.min(S[0],j),Math.max(S[1],j)]}return S},g)),d.length){var x="".concat(p,"1"),_="".concat(p,"2");g=d.reduce(function(S,w){if(w.props[v]===r&&ua(w.props,"extendDomain")&&ye(w.props[x])&&ye(w.props[_])){var j=w.props[x],A=w.props[_];return[Math.min(S[0],j,A),Math.max(S[1],j,A)]}return S},g)}return s&&s.length&&(g=s.reduce(function(S,w){return ye(w)?[Math.min(S[0],w),Math.max(S[1],w)]:S},g)),g},ww={exports:{}},ck;function Lce(){return ck||(ck=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,v){this.fn=f,this.context=d,this.once=v||!1}function s(f,d,v,p,g){if(typeof v!="function")throw new TypeError("The listener must be a function");var x=new i(v,p||f,g),_=n?n+d:d;return f._events[_]?f._events[_].fn?f._events[_]=[f._events[_],x]:f._events[_].push(x):(f._events[_]=x,f._eventsCount++),f}function l(f,d){--f._eventsCount===0?f._events=new r:delete f._events[d]}function c(){this._events=new r,this._eventsCount=0}c.prototype.eventNames=function(){var d=[],v,p;if(this._eventsCount===0)return d;for(p in v=this._events)t.call(v,p)&&d.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(v)):d},c.prototype.listeners=function(d){var v=n?n+d:d,p=this._events[v];if(!p)return[];if(p.fn)return[p.fn];for(var g=0,x=p.length,_=new Array(x);g<x;g++)_[g]=p[g].fn;return _},c.prototype.listenerCount=function(d){var v=n?n+d:d,p=this._events[v];return p?p.fn?1:p.length:0},c.prototype.emit=function(d,v,p,g,x,_){var S=n?n+d:d;if(!this._events[S])return!1;var w=this._events[S],j=arguments.length,A,E;if(w.fn){switch(w.once&&this.removeListener(d,w.fn,void 0,!0),j){case 1:return w.fn.call(w.context),!0;case 2:return w.fn.call(w.context,v),!0;case 3:return w.fn.call(w.context,v,p),!0;case 4:return w.fn.call(w.context,v,p,g),!0;case 5:return w.fn.call(w.context,v,p,g,x),!0;case 6:return w.fn.call(w.context,v,p,g,x,_),!0}for(E=1,A=new Array(j-1);E<j;E++)A[E-1]=arguments[E];w.fn.apply(w.context,A)}else{var N=w.length,T;for(E=0;E<N;E++)switch(w[E].once&&this.removeListener(d,w[E].fn,void 0,!0),j){case 1:w[E].fn.call(w[E].context);break;case 2:w[E].fn.call(w[E].context,v);break;case 3:w[E].fn.call(w[E].context,v,p);break;case 4:w[E].fn.call(w[E].context,v,p,g);break;default:if(!A)for(T=1,A=new Array(j-1);T<j;T++)A[T-1]=arguments[T];w[E].fn.apply(w[E].context,A)}}return!0},c.prototype.on=function(d,v,p){return s(this,d,v,p,!1)},c.prototype.once=function(d,v,p){return s(this,d,v,p,!0)},c.prototype.removeListener=function(d,v,p,g){var x=n?n+d:d;if(!this._events[x])return this;if(!v)return l(this,x),this;var _=this._events[x];if(_.fn)_.fn===v&&(!g||_.once)&&(!p||_.context===p)&&l(this,x);else{for(var S=0,w=[],j=_.length;S<j;S++)(_[S].fn!==v||g&&!_[S].once||p&&_[S].context!==p)&&w.push(_[S]);w.length?this._events[x]=w.length===1?w[0]:w:l(this,x)}return this},c.prototype.removeAllListeners=function(d){var v;return d?(v=n?n+d:d,this._events[v]&&l(this,v)):(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})(ww)),ww.exports}var Ice=Lce();const zce=gt(Ice);var Sw=new zce,Ow="recharts.syncMouseEvents";function rf(e){"@babel/helpers - typeof";return rf=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},rf(e)}function Bce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qce(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,fz(r.key),r)}}function Uce(e,t,n){return t&&qce(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function _w(e,t,n){return t=fz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fz(e){var t=Hce(e,"string");return rf(t)=="symbol"?t:t+""}function Hce(e,t){if(rf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Fce=(function(){function e(){Bce(this,e),_w(this,"activeIndex",0),_w(this,"coordinateList",[]),_w(this,"layout","horizontal")}return Uce(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,s=i===void 0?null:i,l=n.container,c=l===void 0?null:l,f=n.layout,d=f===void 0?null:f,v=n.offset,p=v===void 0?null:v,g=n.mouseHandlerCallback,x=g===void 0?null:g;this.coordinateList=(r=s??this.coordinateList)!==null&&r!==void 0?r:[],this.container=c??this.container,this.layout=d??this.layout,this.offset=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(),s=i.x,l=i.y,c=i.height,f=this.coordinateList[this.activeIndex].coordinate,d=((n=window)===null||n===void 0?void 0:n.scrollX)||0,v=((r=window)===null||r===void 0?void 0:r.scrollY)||0,p=s+f+d,g=l+this.offset.top+c/2+v;this.mouseHandlerCallback({pageX:p,pageY:g})}}}])})();function Gce(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 Vce(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 dz(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,s=e.endAngle,l=cn(t,n,r,i),c=cn(t,n,r,s);return{points:[l,c],cx:t,cy:n,radius:r,startAngle:i,endAngle:s}}function Yce(e,t,n){var r,i,s,l;if(e==="horizontal")r=t.x,s=r,i=n.top,l=n.top+n.height;else if(e==="vertical")i=t.y,l=i,r=n.left,s=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var c=t.cx,f=t.cy,d=t.innerRadius,v=t.outerRadius,p=t.angle,g=cn(c,f,d,p),x=cn(c,f,v,p);r=g.x,i=g.y,s=x.x,l=x.y}else return dz(t);return[{x:r,y:i},{x:s,y:l}]}function af(e){"@babel/helpers - typeof";return af=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},af(e)}function fk(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 ch(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?fk(Object(n),!0).forEach(function(r){Wce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wce(e,t,n){return t=Kce(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kce(e){var t=Xce(e,"string");return af(t)=="symbol"?t:t+""}function Xce(e,t){if(af(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(af(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qce(e){var t,n,r=e.element,i=e.tooltipEventType,s=e.isActive,l=e.activeCoordinate,c=e.activePayload,f=e.offset,d=e.activeTooltipIndex,v=e.tooltipAxisBandSize,p=e.layout,g=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||!s||!l||g!=="ScatterChart"&&i!=="axis")return null;var _,S=R1;if(g==="ScatterChart")_=l,S=Woe;else if(g==="BarChart")_=Vce(p,l,f,v),S=u_;else if(p==="radial"){var w=dz(l),j=w.cx,A=w.cy,E=w.radius,N=w.startAngle,T=w.endAngle;_={cx:j,cy:A,startAngle:N,endAngle:T,innerRadius:E,outerRadius:E},S=x5}else _={points:Yce(p,l,f)},S=R1;var M=ch(ch(ch(ch({stroke:"#ccc",pointerEvents:"none"},f),_),Ve(x,!1)),{},{payload:c,payloadIndex:d,className:Ye("recharts-tooltip-cursor",x.className)});return O.isValidElement(x)?O.cloneElement(x,M):O.createElement(S,M)}var Zce=["item"],Jce=["children","className","width","height","style","compact","title","desc"];function Nl(e){"@babel/helpers - typeof";return Nl=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},Nl(e)}function Vs(){return Vs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vs.apply(this,arguments)}function dk(e,t){return nfe(e)||tfe(e,t)||mz(e,t)||efe()}function efe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
364
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function tfe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,s,l,c=[],f=!0,d=!1;try{if(s=(n=n.call(e)).next,t!==0)for(;!(f=(r=s.call(n)).done)&&(c.push(r.value),c.length!==t);f=!0);}catch(v){d=!0,i=v}finally{try{if(!f&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(d)throw i}}return c}}function nfe(e){if(Array.isArray(e))return e}function hk(e,t){if(e==null)return{};var n=rfe(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rfe(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 afe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ife(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 ofe(e,t,n){return t&&ife(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sfe(e,t,n){return t=Rm(t),lfe(e,hz()?Reflect.construct(t,n||[],Rm(e).constructor):t.apply(e,n))}function lfe(e,t){if(t&&(Nl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ufe(e)}function ufe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function hz(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(hz=function(){return!!e})()}function Rm(e){return Rm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Rm(e)}function cfe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&lS(e,t)}function lS(e,t){return lS=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},lS(e,t)}function Ml(e){return hfe(e)||dfe(e)||mz(e)||ffe()}function ffe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
365
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mz(e,t){if(e){if(typeof e=="string")return uS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return uS(e,t)}}function dfe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hfe(e){if(Array.isArray(e))return uS(e)}function uS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mk(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 le(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mk(Object(n),!0).forEach(function(r){Te(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Te(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 pz(e){var t=mfe(e,"string");return Nl(t)=="symbol"?t:t+""}function mfe(e,t){if(Nl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pfe={xAxis:["bottom","top"],yAxis:["left","right"]},vfe={width:"100%",height:"100%"},vz={x:0,y:0};function fh(e){return e}var gfe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},yfe=function(t,n,r,i){var s=n.find(function(v){return v&&v.index===r});if(s){if(t==="horizontal")return{x:s.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:s.coordinate};if(t==="centric"){var l=s.coordinate,c=i.radius;return le(le(le({},i),cn(i.cx,i.cy,c,l)),{},{angle:l,radius:c})}var f=s.coordinate,d=i.angle;return le(le(le({},i),cn(i.cx,i.cy,f,d)),{},{angle:d,radius:f})}return vz},zp=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,s=n.dataEndIndex,l=(r??[]).reduce(function(c,f){var d=f.props.data;return d&&d.length?[].concat(Ml(c),Ml(d)):c},[]);return l.length>0?l:t&&t.length&&ye(i)&&ye(s)?t.slice(i,s+1):[]};function gz(e){return e==="number"?[0,"auto"]:void 0}var cS=function(t,n,r,i){var s=t.graphicalItems,l=t.tooltipAxis,c=zp(n,t);return r<0||!s||!s.length||r>=c.length?null:s.reduce(function(f,d){var v,p=(v=d.props.data)!==null&&v!==void 0?v:n;p&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(p=p.slice(t.dataStartIndex,t.dataEndIndex+1));var g;if(l.dataKey&&!l.allowDuplicatedCategory){var x=p===void 0?c:p;g=Lh(x,l.dataKey,i)}else g=p&&p[r]||c[r];return g?[].concat(Ml(f),[g5(d,g)]):f},[])},pk=function(t,n,r,i){var s=i||{x:t.chartX,y:t.chartY},l=gfe(s,r),c=t.orderedTooltipTicks,f=t.tooltipAxis,d=t.tooltipTicks,v=Nre(l,c,d,f);if(v>=0&&d){var p=d[v]&&d[v].value,g=cS(t,n,v,p),x=yfe(r,c,v,s);return{activeTooltipIndex:v,activeLabel:p,activePayload:g,activeCoordinate:x}}return null},bfe=function(t,n){var r=n.axes,i=n.graphicalItems,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,v=t.layout,p=t.children,g=t.stackOffset,x=m5(v,s);return r.reduce(function(_,S){var w,j=S.type.defaultProps!==void 0?le(le({},S.type.defaultProps),S.props):S.props,A=j.type,E=j.dataKey,N=j.allowDataOverflow,T=j.allowDuplicatedCategory,M=j.scale,R=j.ticks,D=j.includeHidden,L=j[l];if(_[L])return _;var Y=zp(t.data,{graphicalItems:i.filter(function(F){var X,ae=l in F.props?F.props[l]:(X=F.type.defaultProps)===null||X===void 0?void 0:X[l];return ae===L}),dataStartIndex:f,dataEndIndex:d}),z=Y.length,H,V,Q;Gce(j.domain,N,A)&&(H=A1(j.domain,null,N),x&&(A==="number"||M!=="auto")&&(Q=mc(Y,E,"category")));var K=gz(A);if(!H||H.length===0){var k,q=(k=j.domain)!==null&&k!==void 0?k:K;if(E){if(H=mc(Y,E,A),A==="category"&&x){var B=xK(H);T&&B?(V=H,H=bm(0,z)):T||(H=ED(q,H,S).reduce(function(F,X){return F.indexOf(X)>=0?F:[].concat(Ml(F),[X])},[]))}else if(A==="category")T?H=H.filter(function(F){return F!==""&&!qe(F)}):H=ED(q,H,S).reduce(function(F,X){return F.indexOf(X)>=0||X===""||qe(X)?F:[].concat(Ml(F),[X])},[]);else if(A==="number"){var W=kre(Y,i.filter(function(F){var X,ae,de=l in F.props?F.props[l]:(X=F.type.defaultProps)===null||X===void 0?void 0:X[l],ge="hide"in F.props?F.props.hide:(ae=F.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return de===L&&(D||!ge)}),E,s,v);W&&(H=W)}x&&(A==="number"||M!=="auto")&&(Q=mc(Y,E,"category"))}else x?H=bm(0,z):c&&c[L]&&c[L].hasStack&&A==="number"?H=g==="expand"?[0,1]:v5(c[L].stackGroups,f,d):H=h5(Y,i.filter(function(F){var X=l in F.props?F.props[l]:F.type.defaultProps[l],ae="hide"in F.props?F.props.hide:F.type.defaultProps.hide;return X===L&&(D||!ae)}),A,v,!0);if(A==="number")H=sS(p,H,L,s,R),q&&(H=A1(q,H,N));else if(A==="category"&&q){var se=q,$=H.every(function(F){return se.indexOf(F)>=0});$&&(H=se)}}return le(le({},_),{},Te({},L,le(le({},j),{},{axisType:s,domain:H,categoricalDomain:Q,duplicateDomain:V,originalDomain:(w=j.domain)!==null&&w!==void 0?w:K,isCategorical:x,layout:v})))},{})},xfe=function(t,n){var r=n.graphicalItems,i=n.Axis,s=n.axisType,l=n.axisIdKey,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,v=t.layout,p=t.children,g=zp(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:d}),x=g.length,_=m5(v,s),S=-1;return r.reduce(function(w,j){var A=j.type.defaultProps!==void 0?le(le({},j.type.defaultProps),j.props):j.props,E=A[l],N=gz("number");if(!w[E]){S++;var T;return _?T=bm(0,x):c&&c[E]&&c[E].hasStack?(T=v5(c[E].stackGroups,f,d),T=sS(p,T,E,s)):(T=A1(N,h5(g,r.filter(function(M){var R,D,L=l in M.props?M.props[l]:(R=M.type.defaultProps)===null||R===void 0?void 0:R[l],Y="hide"in M.props?M.props.hide:(D=M.type.defaultProps)===null||D===void 0?void 0:D.hide;return L===E&&!Y}),"number",v),i.defaultProps.allowDataOverflow),T=sS(p,T,E,s)),le(le({},w),{},Te({},E,le(le({axisType:s},i.defaultProps),{},{hide:!0,orientation:vr(pfe,"".concat(s,".").concat(S%2),null),domain:T,originalDomain:N,isCategorical:_,layout:v})))}return w},{})},wfe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,s=n.AxisComp,l=n.graphicalItems,c=n.stackGroups,f=n.dataStartIndex,d=n.dataEndIndex,v=t.children,p="".concat(i,"Id"),g=gr(v,s),x={};return g&&g.length?x=bfe(t,{axes:g,graphicalItems:l,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d}):l&&l.length&&(x=xfe(t,{Axis:s,graphicalItems:l,axisType:i,axisIdKey:p,stackGroups:c,dataStartIndex:f,dataEndIndex:d})),x},Sfe=function(t){var n=Ni(t),r=Ia(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:$O(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:cm(n,r)}},vk=function(t){var n=t.children,r=t.defaultShowTooltip,i=Yn(n,wl),s=0,l=0;return t.data&&t.data.length!==0&&(l=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(s=i.props.startIndex),i.props.endIndex>=0&&(l=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:s,dataEndIndex:l,activeTooltipIndex:-1,isTooltipActive:!!r}},Ofe=function(t){return!t||!t.length?!1:t.some(function(n){var r=Ba(n&&n.type);return r&&r.indexOf("Bar")>=0})},gk=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"}},_fe=function(t,n){var r=t.props,i=t.graphicalItems,s=t.xAxisMap,l=s===void 0?{}:s,c=t.yAxisMap,f=c===void 0?{}:c,d=r.width,v=r.height,p=r.children,g=r.margin||{},x=Yn(p,wl),_=Yn(p,Eo),S=Object.keys(f).reduce(function(T,M){var R=f[M],D=R.orientation;return!R.mirror&&!R.hide?le(le({},T),{},Te({},D,T[D]+R.width)):T},{left:g.left||0,right:g.right||0}),w=Object.keys(l).reduce(function(T,M){var R=l[M],D=R.orientation;return!R.mirror&&!R.hide?le(le({},T),{},Te({},D,vr(T,"".concat(D))+R.height)):T},{top:g.top||0,bottom:g.bottom||0}),j=le(le({},w),S),A=j.bottom;x&&(j.bottom+=x.props.height||wl.defaultProps.height),_&&n&&(j=Dre(j,i,r,n));var E=d-j.left-j.right,N=v-j.top-j.bottom;return le(le({brushBottom:A},j),{},{width:Math.max(E,0),height:Math.max(N,0)})},jfe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Efe=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,s=i===void 0?"axis":i,l=t.validateTooltipEventTypes,c=l===void 0?["axis"]:l,f=t.axisComponents,d=t.legendContent,v=t.formatAxisMap,p=t.defaultProps,g=function(j,A){var E=A.graphicalItems,N=A.stackGroups,T=A.offset,M=A.updateId,R=A.dataStartIndex,D=A.dataEndIndex,L=j.barSize,Y=j.layout,z=j.barGap,H=j.barCategoryGap,V=j.maxBarSize,Q=gk(Y),K=Q.numericAxisName,k=Q.cateAxisName,q=Ofe(E),B=[];return E.forEach(function(W,se){var $=zp(j.data,{graphicalItems:[W],dataStartIndex:R,dataEndIndex:D}),F=W.type.defaultProps!==void 0?le(le({},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(Ln,Nt){var Jn=A["".concat(Nt.axisType,"Map")],Qt=F["".concat(Nt.axisType,"Id")];Jn&&Jn[Qt]||Nt.axisType==="zAxis"||$o();var Yo=Jn[Qt];return le(le({},Ln),{},Te(Te({},Nt.axisType,Yo),"".concat(Nt.axisType,"Ticks"),Ia(Yo)))},ce),ie=he[k],me=he["".concat(k,"Ticks")],ve=N&&N[de]&&N[de].hasStack&&Yre(W,N[de].stackGroups),ne=Ba(W.type).indexOf("Bar")>=0,De=cm(ie,me),je=[],rt=q&&Mre({barSize:L,stackGroups:N,totalSize:jfe(he,k)});if(ne){var Xe,ft,fn=qe(ae)?V:ae,St=(Xe=(ft=cm(ie,me,!0))!==null&&ft!==void 0?ft:fn)!==null&&Xe!==void 0?Xe:0;je=Rre({barGap:z,barCategoryGap:H,bandSize:St!==De?St:De,sizeList:rt[ge],maxBarSize:fn}),St!==De&&(je=je.map(function(Ln){return le(le({},Ln),{},{position:le(le({},Ln.position),{},{offset:Ln.position.offset-St/2})})}))}var Hr=W&&W.type&&W.type.getComposedData;Hr&&B.push({props:le(le({},Hr(le(le({},he),{},{displayedData:$,props:j,dataKey:X,item:W,bandSize:De,barPosition:je,offset:T,stackedData:ve,layout:Y,dataStartIndex:R,dataEndIndex:D}))),{},Te(Te(Te({key:W.key||"item-".concat(se)},K,he[K]),k,he[k]),"animationId",M)),childIndex:DK(W,j.children),item:W})}),B},x=function(j,A){var E=j.props,N=j.dataStartIndex,T=j.dataEndIndex,M=j.updateId;if(!BN({props:E}))return null;var R=E.children,D=E.layout,L=E.stackOffset,Y=E.data,z=E.reverseStackOrder,H=gk(D),V=H.numericAxisName,Q=H.cateAxisName,K=gr(R,r),k=Fre(Y,K,"".concat(V,"Id"),"".concat(Q,"Id"),L,z),q=f.reduce(function(F,X){var ae="".concat(X.axisType,"Map");return le(le({},F),{},Te({},ae,wfe(E,le(le({},X),{},{graphicalItems:K,stackGroups:X.axisType===V&&k,dataStartIndex:N,dataEndIndex:T}))))},{}),B=_fe(le(le({},q),{},{props:E,graphicalItems:K}),A==null?void 0:A.legendBBox);Object.keys(q).forEach(function(F){q[F]=v(E,q[F],B,F.replace("Map",""),n)});var W=q["".concat(Q,"Map")],se=Sfe(W),$=g(E,le(le({},q),{},{dataStartIndex:N,dataEndIndex:T,updateId:M,graphicalItems:K,stackGroups:k,offset:B}));return le(le({formattedGraphicalItems:$,graphicalItems:K,offset:B,stackGroups:k},se),q)},_=(function(w){function j(A){var E,N,T;return afe(this,j),T=sfe(this,j,[A]),Te(T,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),Te(T,"accessibilityManager",new Fce),Te(T,"handleLegendBBoxUpdate",function(M){if(M){var R=T.state,D=R.dataStartIndex,L=R.dataEndIndex,Y=R.updateId;T.setState(le({legendBBox:M},x({props:T.props,dataStartIndex:D,dataEndIndex:L,updateId:Y},le(le({},T.state),{},{legendBBox:M}))))}}),Te(T,"handleReceiveSyncEvent",function(M,R,D){if(T.props.syncId===M){if(D===T.eventEmitterSymbol&&typeof T.props.syncMethod!="function")return;T.applySyncEvent(R)}}),Te(T,"handleBrushChange",function(M){var R=M.startIndex,D=M.endIndex;if(R!==T.state.dataStartIndex||D!==T.state.dataEndIndex){var L=T.state.updateId;T.setState(function(){return le({dataStartIndex:R,dataEndIndex:D},x({props:T.props,dataStartIndex:R,dataEndIndex:D,updateId:L},T.state))}),T.triggerSyncEvent({dataStartIndex:R,dataEndIndex:D})}}),Te(T,"handleMouseEnter",function(M){var R=T.getMouseInfo(M);if(R){var D=le(le({},R),{},{isTooltipActive:!0});T.setState(D),T.triggerSyncEvent(D);var L=T.props.onMouseEnter;$e(L)&&L(D,M)}}),Te(T,"triggeredAfterMouseMove",function(M){var R=T.getMouseInfo(M),D=R?le(le({},R),{},{isTooltipActive:!0}):{isTooltipActive:!1};T.setState(D),T.triggerSyncEvent(D);var L=T.props.onMouseMove;$e(L)&&L(D,M)}),Te(T,"handleItemMouseEnter",function(M){T.setState(function(){return{isTooltipActive:!0,activeItem:M,activePayload:M.tooltipPayload,activeCoordinate:M.tooltipPosition||{x:M.cx,y:M.cy}}})}),Te(T,"handleItemMouseLeave",function(){T.setState(function(){return{isTooltipActive:!1}})}),Te(T,"handleMouseMove",function(M){M.persist(),T.throttleTriggeredAfterMouseMove(M)}),Te(T,"handleMouseLeave",function(M){T.throttleTriggeredAfterMouseMove.cancel();var R={isTooltipActive:!1};T.setState(R),T.triggerSyncEvent(R);var D=T.props.onMouseLeave;$e(D)&&D(R,M)}),Te(T,"handleOuterEvent",function(M){var R=RK(M),D=vr(T.props,"".concat(R));if(R&&$e(D)){var L,Y;/.*touch.*/i.test(R)?Y=T.getMouseInfo(M.changedTouches[0]):Y=T.getMouseInfo(M),D((L=Y)!==null&&L!==void 0?L:{},M)}}),Te(T,"handleClick",function(M){var R=T.getMouseInfo(M);if(R){var D=le(le({},R),{},{isTooltipActive:!0});T.setState(D),T.triggerSyncEvent(D);var L=T.props.onClick;$e(L)&&L(D,M)}}),Te(T,"handleMouseDown",function(M){var R=T.props.onMouseDown;if($e(R)){var D=T.getMouseInfo(M);R(D,M)}}),Te(T,"handleMouseUp",function(M){var R=T.props.onMouseUp;if($e(R)){var D=T.getMouseInfo(M);R(D,M)}}),Te(T,"handleTouchMove",function(M){M.changedTouches!=null&&M.changedTouches.length>0&&T.throttleTriggeredAfterMouseMove(M.changedTouches[0])}),Te(T,"handleTouchStart",function(M){M.changedTouches!=null&&M.changedTouches.length>0&&T.handleMouseDown(M.changedTouches[0])}),Te(T,"handleTouchEnd",function(M){M.changedTouches!=null&&M.changedTouches.length>0&&T.handleMouseUp(M.changedTouches[0])}),Te(T,"handleDoubleClick",function(M){var R=T.props.onDoubleClick;if($e(R)){var D=T.getMouseInfo(M);R(D,M)}}),Te(T,"handleContextMenu",function(M){var R=T.props.onContextMenu;if($e(R)){var D=T.getMouseInfo(M);R(D,M)}}),Te(T,"triggerSyncEvent",function(M){T.props.syncId!==void 0&&Sw.emit(Ow,T.props.syncId,M,T.eventEmitterSymbol)}),Te(T,"applySyncEvent",function(M){var R=T.props,D=R.layout,L=R.syncMethod,Y=T.state.updateId,z=M.dataStartIndex,H=M.dataEndIndex;if(M.dataStartIndex!==void 0||M.dataEndIndex!==void 0)T.setState(le({dataStartIndex:z,dataEndIndex:H},x({props:T.props,dataStartIndex:z,dataEndIndex:H,updateId:Y},T.state)));else if(M.activeTooltipIndex!==void 0){var V=M.chartX,Q=M.chartY,K=M.activeTooltipIndex,k=T.state,q=k.offset,B=k.tooltipTicks;if(!q)return;if(typeof L=="function")K=L(B,M);else if(L==="value"){K=-1;for(var W=0;W<B.length;W++)if(B[W].value===M.activeLabel){K=W;break}}var se=le(le({},q),{},{x:q.left,y:q.top}),$=Math.min(V,se.x+se.width),F=Math.min(Q,se.y+se.height),X=B[K]&&B[K].value,ae=cS(T.state,T.props.data,K),de=B[K]?{x:D==="horizontal"?B[K].coordinate:$,y:D==="horizontal"?F:B[K].coordinate}:vz;T.setState(le(le({},M),{},{activeLabel:X,activeCoordinate:de,activePayload:ae,activeTooltipIndex:K}))}else T.setState(M)}),Te(T,"renderCursor",function(M){var R,D=T.state,L=D.isTooltipActive,Y=D.activeCoordinate,z=D.activePayload,H=D.offset,V=D.activeTooltipIndex,Q=D.tooltipAxisBandSize,K=T.getTooltipEventType(),k=(R=M.props.active)!==null&&R!==void 0?R:L,q=T.props.layout,B=M.key||"_recharts-cursor";return I.createElement(Qce,{key:B,activeCoordinate:Y,activePayload:z,activeTooltipIndex:V,chartName:n,element:M,isActive:k,layout:q,offset:H,tooltipAxisBandSize:Q,tooltipEventType:K})}),Te(T,"renderPolarAxis",function(M,R,D){var L=vr(M,"type.axisType"),Y=vr(T.state,"".concat(L,"Map")),z=M.type.defaultProps,H=z!==void 0?le(le({},z),M.props):M.props,V=Y&&Y[H["".concat(L,"Id")]];return O.cloneElement(M,le(le({},V),{},{className:Ye(L,V.className),key:M.key||"".concat(R,"-").concat(D),ticks:Ia(V,!0)}))}),Te(T,"renderPolarGrid",function(M){var R=M.props,D=R.radialLines,L=R.polarAngles,Y=R.polarRadius,z=T.state,H=z.radiusAxisMap,V=z.angleAxisMap,Q=Ni(H),K=Ni(V),k=K.cx,q=K.cy,B=K.innerRadius,W=K.outerRadius;return O.cloneElement(M,{polarAngles:Array.isArray(L)?L:Ia(K,!0).map(function(se){return se.coordinate}),polarRadius:Array.isArray(Y)?Y:Ia(Q,!0).map(function(se){return se.coordinate}),cx:k,cy:q,innerRadius:B,outerRadius:W,key:M.key||"polar-grid",radialLines:D})}),Te(T,"renderLegend",function(){var M=T.state.formattedGraphicalItems,R=T.props,D=R.children,L=R.width,Y=R.height,z=T.props.margin||{},H=L-(z.left||0)-(z.right||0),V=f5({children:D,formattedGraphicalItems:M,legendWidth:H,legendContent:d});if(!V)return null;var Q=V.item,K=hk(V,Zce);return O.cloneElement(Q,le(le({},K),{},{chartWidth:L,chartHeight:Y,margin:z,onBBoxUpdate:T.handleLegendBBoxUpdate}))}),Te(T,"renderTooltip",function(){var M,R=T.props,D=R.children,L=R.accessibilityLayer,Y=Yn(D,Zr);if(!Y)return null;var z=T.state,H=z.isTooltipActive,V=z.activeCoordinate,Q=z.activePayload,K=z.activeLabel,k=z.offset,q=(M=Y.props.active)!==null&&M!==void 0?M:H;return O.cloneElement(Y,{viewBox:le(le({},k),{},{x:k.left,y:k.top}),active:q,label:K,payload:q?Q:[],coordinate:V,accessibilityLayer:L})}),Te(T,"renderBrush",function(M){var R=T.props,D=R.margin,L=R.data,Y=T.state,z=Y.offset,H=Y.dataStartIndex,V=Y.dataEndIndex,Q=Y.updateId;return O.cloneElement(M,{key:M.key||"_recharts-brush",onChange:oh(T.handleBrushChange,M.props.onChange),data:L,x:ye(M.props.x)?M.props.x:z.left,y:ye(M.props.y)?M.props.y:z.top+z.height+z.brushBottom-(D.bottom||0),width:ye(M.props.width)?M.props.width:z.width,startIndex:H,endIndex:V,updateId:"brush-".concat(Q)})}),Te(T,"renderReferenceElement",function(M,R,D){if(!M)return null;var L=T,Y=L.clipPathId,z=T.state,H=z.xAxisMap,V=z.yAxisMap,Q=z.offset,K=M.type.defaultProps||{},k=M.props,q=k.xAxisId,B=q===void 0?K.xAxisId:q,W=k.yAxisId,se=W===void 0?K.yAxisId:W;return O.cloneElement(M,{key:M.key||"".concat(R,"-").concat(D),xAxis:H[B],yAxis:V[se],viewBox:{x:Q.left,y:Q.top,width:Q.width,height:Q.height},clipPathId:Y})}),Te(T,"renderActivePoints",function(M){var R=M.item,D=M.activePoint,L=M.basePoint,Y=M.childIndex,z=M.isRange,H=[],V=R.props.key,Q=R.item.type.defaultProps!==void 0?le(le({},R.item.type.defaultProps),R.item.props):R.item.props,K=Q.activeDot,k=Q.dataKey,q=le(le({index:Y,dataKey:k,cx:D.x,cy:D.y,r:4,fill:l_(R.item),strokeWidth:2,stroke:"#fff",payload:D.payload,value:D.value},Ve(K,!1)),Ih(K));return H.push(j.renderActiveDot(K,q,"".concat(V,"-activePoint-").concat(Y))),L?H.push(j.renderActiveDot(K,le(le({},q),{},{cx:L.x,cy:L.y}),"".concat(V,"-basePoint-").concat(Y))):z&&H.push(null),H}),Te(T,"renderGraphicChild",function(M,R,D){var L=T.filterFormatItem(M,R,D);if(!L)return null;var Y=T.getTooltipEventType(),z=T.state,H=z.isTooltipActive,V=z.tooltipAxis,Q=z.activeTooltipIndex,K=z.activeLabel,k=T.props.children,q=Yn(k,Zr),B=L.props,W=B.points,se=B.isRange,$=B.baseLine,F=L.item.type.defaultProps!==void 0?le(le({},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:oh(T.handleItemMouseEnter,M.props.onClick)}:Y!=="axis"&&(he={onMouseLeave:oh(T.handleItemMouseLeave,M.props.onMouseLeave),onMouseEnter:oh(T.handleItemMouseEnter,M.props.onMouseEnter)});var ie=O.cloneElement(M,le(le({},L.props),he));function me(Nt){return typeof V.dataKey=="function"?V.dataKey(Nt.payload):null}if(ce)if(Q>=0){var ve,ne;if(V.dataKey&&!V.allowDuplicatedCategory){var De=typeof V.dataKey=="function"?me:"payload.".concat(V.dataKey.toString());ve=Lh(W,De,K),ne=se&&$&&Lh($,De,K)}else ve=W==null?void 0:W[Q],ne=se&&$&&$[Q];if(ge||de){var je=M.props.activeIndex!==void 0?M.props.activeIndex:Q;return[O.cloneElement(M,le(le(le({},L.props),he),{},{activeIndex:je})),null,null]}if(!qe(ve))return[ie].concat(Ml(T.renderActivePoints({item:L,activePoint:ve,basePoint:ne,childIndex:Q,isRange:se})))}else{var rt,Xe=(rt=T.getItemByXY(T.state.activeCoordinate))!==null&&rt!==void 0?rt:{graphicalItem:ie},ft=Xe.graphicalItem,fn=ft.item,St=fn===void 0?M:fn,Hr=ft.childIndex,Ln=le(le(le({},L.props),he),{},{activeIndex:Hr});return[O.cloneElement(St,Ln),null,null]}return se?[ie,null,null]:[ie,null]}),Te(T,"renderCustomized",function(M,R,D){return O.cloneElement(M,le(le({key:"recharts-customized-".concat(D)},T.props),T.state))}),Te(T,"renderMap",{CartesianGrid:{handler:fh,once:!0},ReferenceArea:{handler:T.renderReferenceElement},ReferenceLine:{handler:fh},ReferenceDot:{handler:T.renderReferenceElement},XAxis:{handler:fh},YAxis:{handler:fh},Brush:{handler:T.renderBrush,once:!0},Bar:{handler:T.renderGraphicChild},Line:{handler:T.renderGraphicChild},Area:{handler:T.renderGraphicChild},Radar:{handler:T.renderGraphicChild},RadialBar:{handler:T.renderGraphicChild},Scatter:{handler:T.renderGraphicChild},Pie:{handler:T.renderGraphicChild},Funnel:{handler:T.renderGraphicChild},Tooltip:{handler:T.renderCursor,once:!0},PolarGrid:{handler:T.renderPolarGrid,once:!0},PolarAngleAxis:{handler:T.renderPolarAxis},PolarRadiusAxis:{handler:T.renderPolarAxis},Customized:{handler:T.renderCustomized}}),T.clipPathId="".concat((E=A.id)!==null&&E!==void 0?E:wf("recharts"),"-clip"),T.throttleTriggeredAfterMouseMove=c3(T.triggeredAfterMouseMove,(N=A.throttleDelay)!==null&&N!==void 0?N:1e3/60),T.state={},T}return cfe(j,w),ofe(j,[{key:"componentDidMount",value:function(){var E,N;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(E=this.props.margin.left)!==null&&E!==void 0?E:0,top:(N=this.props.margin.top)!==null&&N!==void 0?N:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var E=this.props,N=E.children,T=E.data,M=E.height,R=E.layout,D=Yn(N,Zr);if(D){var L=D.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=cS(this.state,T,L,Y),H=this.state.tooltipTicks[L].coordinate,V=(this.state.offset.top+M)/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=le(le({},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(D),this.accessibilityManager.setIndex(L)}}}},{key:"getSnapshotBeforeUpdate",value:function(E,N){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==N.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==E.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==E.margin){var T,M;this.accessibilityManager.setDetails({offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(M=this.props.margin.top)!==null&&M!==void 0?M:0}})}return null}},{key:"componentDidUpdate",value:function(E){Kw([Yn(E.children,Zr)],[Yn(this.props.children,Zr)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var E=Yn(this.props.children,Zr);if(E&&typeof E.props.shared=="boolean"){var N=E.props.shared?"axis":"item";return c.indexOf(N)>=0?N:s}return s}},{key:"getMouseInfo",value:function(E){if(!this.container)return null;var N=this.container,T=N.getBoundingClientRect(),M=xJ(T),R={chartX:Math.round(E.pageX-M.left),chartY:Math.round(E.pageY-M.top)},D=T.width/N.offsetWidth||1,L=this.inRange(R.chartX,R.chartY,D);if(!L)return null;var Y=this.state,z=Y.xAxisMap,H=Y.yAxisMap,V=this.getTooltipEventType(),Q=pk(this.state,this.props.data,this.props.layout,L);if(V!=="axis"&&z&&H){var K=Ni(z).scale,k=Ni(H).scale,q=K&&K.invert?K.invert(R.chartX):null,B=k&&k.invert?k.invert(R.chartY):null;return le(le({},R),{},{xValue:q,yValue:B},Q)}return Q?le(le({},R),Q):null}},{key:"inRange",value:function(E,N){var T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,M=this.props.layout,R=E/T,D=N/T;if(M==="horizontal"||M==="vertical"){var L=this.state.offset,Y=R>=L.left&&R<=L.left+L.width&&D>=L.top&&D<=L.top+L.height;return Y?{x:R,y:D}:null}var z=this.state,H=z.angleAxisMap,V=z.radiusAxisMap;if(H&&V){var Q=Ni(H);return CD({x:R,y:D},Q)}return null}},{key:"parseEventsOfWrapper",value:function(){var E=this.props.children,N=this.getTooltipEventType(),T=Yn(E,Zr),M={};T&&N==="axis"&&(T.props.trigger==="click"?M={onClick:this.handleClick}:M={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=Ih(this.props,this.handleOuterEvent);return le(le({},R),M)}},{key:"addListener",value:function(){Sw.on(Ow,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){Sw.removeListener(Ow,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(E,N,T){for(var M=this.state.formattedGraphicalItems,R=0,D=M.length;R<D;R++){var L=M[R];if(L.item===E||L.props.key===E.key||N===Ba(L.item.type)&&T===L.childIndex)return L}return null}},{key:"renderClipPath",value:function(){var E=this.clipPathId,N=this.state.offset,T=N.left,M=N.top,R=N.height,D=N.width;return I.createElement("defs",null,I.createElement("clipPath",{id:E},I.createElement("rect",{x:T,y:M,height:R,width:D})))}},{key:"getXScales",value:function(){var E=this.state.xAxisMap;return E?Object.entries(E).reduce(function(N,T){var M=dk(T,2),R=M[0],D=M[1];return le(le({},N),{},Te({},R,D.scale))},{}):null}},{key:"getYScales",value:function(){var E=this.state.yAxisMap;return E?Object.entries(E).reduce(function(N,T){var M=dk(T,2),R=M[0],D=M[1];return le(le({},N),{},Te({},R,D.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(E){var N;return(N=this.state.xAxisMap)===null||N===void 0||(N=N[E])===null||N===void 0?void 0:N.scale}},{key:"getYScaleByAxisId",value:function(E){var N;return(N=this.state.yAxisMap)===null||N===void 0||(N=N[E])===null||N===void 0?void 0:N.scale}},{key:"getItemByXY",value:function(E){var N=this.state,T=N.formattedGraphicalItems,M=N.activeItem;if(T&&T.length)for(var R=0,D=T.length;R<D;R++){var L=T[R],Y=L.props,z=L.item,H=z.type.defaultProps!==void 0?le(le({},z.type.defaultProps),z.props):z.props,V=Ba(z.type);if(V==="Bar"){var Q=(Y.data||[]).find(function(B){return Ioe(E,B)});if(Q)return{graphicalItem:L,payload:Q}}else if(V==="RadialBar"){var K=(Y.data||[]).find(function(B){return CD(E,B)});if(K)return{graphicalItem:L,payload:K}}else if(Np(L,M)||Mp(L,M)||Zc(L,M)){var k=Tse({graphicalItem:L,activeTooltipItem:M,itemData:H.data}),q=H.activeIndex===void 0?k:H.activeIndex;return{graphicalItem:le(le({},L),{},{childIndex:q}),payload:Zc(L,M)?H.data[k]:L.props.data[k]}}}return null}},{key:"render",value:function(){var E=this;if(!BN(this))return null;var N=this.props,T=N.children,M=N.className,R=N.width,D=N.height,L=N.style,Y=N.compact,z=N.title,H=N.desc,V=hk(N,Jce),Q=Ve(V,!1);if(Y)return I.createElement(YP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement(Qw,Vs({},Q,{width:R,height:D,title:z,desc:H}),this.renderClipPath(),UN(T,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){E.accessibilityManager.keyboardEvent(B)},Q.onFocus=function(){E.accessibilityManager.focus()}}var q=this.parseEventsOfWrapper();return I.createElement(YP,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},I.createElement("div",Vs({className:Ye("recharts-wrapper",M),style:le({position:"relative",cursor:"default",width:R,height:D},L)},q,{ref:function(W){E.container=W}}),I.createElement(Qw,Vs({},Q,{width:R,height:D,title:z,desc:H,style:vfe}),this.renderClipPath(),UN(T,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])})(O.Component);Te(_,"displayName",n),Te(_,"defaultProps",le({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},p)),Te(_,"getDerivedStateFromProps",function(w,j){var A=w.dataKey,E=w.data,N=w.children,T=w.width,M=w.height,R=w.layout,D=w.stackOffset,L=w.margin,Y=j.dataStartIndex,z=j.dataEndIndex;if(j.updateId===void 0){var H=vk(w);return le(le(le({},H),{},{updateId:0},x(le(le({props:w},H),{},{updateId:0}),j)),{},{prevDataKey:A,prevData:E,prevWidth:T,prevHeight:M,prevLayout:R,prevStackOffset:D,prevMargin:L,prevChildren:N})}if(A!==j.prevDataKey||E!==j.prevData||T!==j.prevWidth||M!==j.prevHeight||R!==j.prevLayout||D!==j.prevStackOffset||!Qs(L,j.prevMargin)){var V=vk(w),Q={chartX:j.chartX,chartY:j.chartY,isTooltipActive:j.isTooltipActive},K=le(le({},pk(j,E,R)),{},{updateId:j.updateId+1}),k=le(le(le({},V),Q),K);return le(le(le({},k),x(le({props:w},k),j)),{},{prevDataKey:A,prevData:E,prevWidth:T,prevHeight:M,prevLayout:R,prevStackOffset:D,prevMargin:L,prevChildren:N})}if(!Kw(N,j.prevChildren)){var q,B,W,se,$=Yn(N,wl),F=$&&(q=(B=$.props)===null||B===void 0?void 0:B.startIndex)!==null&&q!==void 0?q:Y,X=$&&(W=(se=$.props)===null||se===void 0?void 0:se.endIndex)!==null&&W!==void 0?W:z,ae=F!==Y||X!==z,de=!qe(E),ge=de&&!ae?j.updateId:j.updateId+1;return le(le({updateId:ge},x(le(le({props:w},j),{},{updateId:ge,dataStartIndex:F,dataEndIndex:X}),j)),{},{prevChildren:N,dataStartIndex:F,dataEndIndex:X})}return null}),Te(_,"renderActiveDot",function(w,j,A){var E;return O.isValidElement(w)?E=O.cloneElement(w,j):$e(w)?E=w(j):E=I.createElement(c_,j),I.createElement(Lt,{className:"recharts-active-dot",key:A},E)});var S=O.forwardRef(function(j,A){return I.createElement(_,Vs({},j,{ref:A}))});return S.displayName=_.displayName,S},Afe=Efe({chartName:"LineChart",GraphicalChild:ta,axisComponents:[{axisType:"xAxis",AxisComp:Lp},{axisType:"yAxis",AxisComp:Ip}],formatAxisMap:_le});function Tfe({data:e}){const t=Cfe(e);return t.length===0?m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Email Metrics"}),m.jsx(st,{children:"Performance over the last 24 hours"})]}),m.jsx(We,{children:m.jsx("div",{className:"flex h-[400px] items-center justify-center text-muted-foreground",children:"No metrics data available yet"})})]}):m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Email Metrics"}),m.jsx(st,{children:"Performance over the last 24 hours"})]}),m.jsx(We,{children:m.jsx(hJ,{height:400,width:"100%",children:m.jsxs(Afe,{data:t,children:[m.jsx(nz,{className:"stroke-muted",strokeDasharray:"3 3"}),m.jsx(Lp,{className:"text-xs",dataKey:"timestamp",tickFormatter:n=>MC(new Date(n),"HH:mm")}),m.jsx(Ip,{className:"text-xs"}),m.jsx(Zr,{contentStyle:{backgroundColor:"hsl(var(--popover))",border:"1px solid hsl(var(--border))"},labelFormatter:n=>MC(new Date(n),"MMM d, HH:mm")}),m.jsx(Eo,{}),m.jsx(ta,{dataKey:"sends",name:"Sends",stroke:"hsl(var(--primary))",strokeWidth:2,type:"monotone"}),m.jsx(ta,{dataKey:"deliveries",name:"Deliveries",stroke:"#82ca9d",strokeWidth:2,type:"monotone"}),m.jsx(ta,{dataKey:"opens",name:"Opens",stroke:"#8884d8",strokeWidth:2,type:"monotone"}),m.jsx(ta,{dataKey:"clicks",name:"Clicks",stroke:"#ffc658",strokeWidth:2,type:"monotone"}),m.jsx(ta,{dataKey:"bounces",name:"Bounces",stroke:"#ff7300",strokeWidth:2,type:"monotone"}),m.jsx(ta,{dataKey:"complaints",name:"Complaints",stroke:"hsl(var(--destructive))",strokeWidth:2,type:"monotone"})]})})})]})}function Cfe(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 x_="Progress",w_=100,[Nfe]=Yk(x_),[Mfe,Rfe]=Nfe(x_),yz=O.forwardRef((e,t)=>{const{__scopeProgress:n,value:r=null,max:i,getValueLabel:s=Dfe,...l}=e;(i||i===0)&&!yk(i)&&console.error(Pfe(`${i}`,"Progress"));const c=yk(i)?i:w_;r!==null&&!bk(r,c)&&console.error(kfe(`${r}`,"Progress"));const f=bk(r,c)?r:null,d=Dm(f)?s(f,c):void 0;return m.jsx(Mfe,{scope:n,value:f,max:c,children:m.jsx(Bo.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":Dm(f)?f:void 0,"aria-valuetext":d,role:"progressbar","data-state":wz(f,c),"data-value":f??void 0,"data-max":c,...l,ref:t})})});yz.displayName=x_;var bz="ProgressIndicator",xz=O.forwardRef((e,t)=>{const{__scopeProgress:n,...r}=e,i=Rfe(bz,n);return m.jsx(Bo.div,{"data-state":wz(i.value,i.max),"data-value":i.value??void 0,"data-max":i.max,...r,ref:t})});xz.displayName=bz;function Dfe(e,t){return`${Math.round(e/t*100)}%`}function wz(e,t){return e==null?"indeterminate":e===t?"complete":"loading"}function Dm(e){return typeof e=="number"}function yk(e){return Dm(e)&&!isNaN(e)&&e>0}function bk(e,t){return Dm(e)&&!isNaN(e)&&e<=t&&e>=0}function Pfe(e,t){return`Invalid prop \`max\` of value \`${e}\` supplied to \`${t}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${w_}\`.`}function kfe(e,t){return`Invalid prop \`value\` of value \`${e}\` supplied to \`${t}\`. The \`value\` prop must be:
|
|
366
|
+
- a positive number
|
|
367
|
+
- less than the value passed to \`max\` (or ${w_} if no \`max\` prop is set)
|
|
368
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
369
|
+
|
|
370
|
+
Defaulting to \`null\`.`}var $fe=yz,Lfe=xz;function Ife({className:e,value:t,...n}){return m.jsx($fe,{className:pe("relative h-2 w-full overflow-hidden rounded-full bg-primary/20",e),"data-slot":"progress",...n,children:m.jsx(Lfe,{className:"h-full w-full flex-1 bg-primary transition-all","data-slot":"progress-indicator",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function zfe({quota:e}){const t=e.sentLast24Hours/e.max24HourSend*100,n=t>90?"destructive":t>70?"warning":"default";return m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsxs(et,{className:"flex items-center justify-between",children:["SES Quota",m.jsxs(Je,{variant:n==="destructive"?"destructive":"secondary",children:[t.toFixed(1),"% used"]})]}),m.jsx(st,{children:"24-hour sending limits"})]}),m.jsxs(We,{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsxs("div",{className:"mb-2 flex justify-between text-sm",children:[m.jsx("span",{className:"text-muted-foreground",children:"Emails sent"}),m.jsxs("span",{className:"font-medium",children:[e.sentLast24Hours.toLocaleString()," /"," ",e.max24HourSend.toLocaleString()]})]}),m.jsx(Ife,{className:"h-2",value:t})]}),m.jsxs("div",{className:"flex items-center justify-between border-t pt-2",children:[m.jsx("span",{className:"text-muted-foreground text-sm",children:"Max send rate"}),m.jsxs("span",{className:"font-medium text-sm",children:[e.maxSendRate," emails/sec"]})]})]})]})}function Bfe(){const[e,t]=O.useState("1"),[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null);if(O.useEffect(()=>{async function A(){try{s(!0),c(null);let E=sessionStorage.getItem("wraps-auth-token");if(E||(E=new URLSearchParams(window.location.search).get("token"),E&&sessionStorage.setItem("wraps-auth-token",E)),!E)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const N=Number.parseInt(e,10),T=Date.now()-N*24*60*60*1e3,M=Date.now(),R=await fetch(`/api/metrics?startTime=${T}&endTime=${M}&token=${E}`);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 D=await R.json();r(D)}catch(E){const N=E instanceof Error?E.message:"Unknown error";c(N),console.error("Error fetching email metrics:",E)}finally{s(!1)}}A()},[e]),l)return m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),m.jsx("div",{className:"mt-4 rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:l})]});if(i||!n)return m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),m.jsx("div",{className:"mt-4 flex h-[400px] items-center justify-center text-muted-foreground",children:"Loading metrics..."})]});const f=n.metrics.sends.reduce((A,E)=>A+E.value,0)||0,d=n.metrics.deliveries.reduce((A,E)=>A+E.value,0)||0,v=n.metrics.bounces.reduce((A,E)=>A+E.value,0)||0,p=n.metrics.complaints.reduce((A,E)=>A+E.value,0)||0,g=n.metrics.opens.reduce((A,E)=>A+E.value,0)||0,x=n.metrics.clicks.reduce((A,E)=>A+E.value,0)||0,_=f>0?d/f*100:0,S=d>0?g/d*100:0,w=g>0?x/g*100:0,j=[{title:"Emails Sent",value:f.toLocaleString(),description:`${e==="1"?"Last 24 hours":`Last ${e} days`}`,icon:Ws},{title:"Delivery Rate",value:`${_.toFixed(1)}%`,description:`${d.toLocaleString()} delivered`,icon:Vk},{title:"Open Rate",value:`${S.toFixed(1)}%`,description:`${g.toLocaleString()} opened`,icon:Im},{title:"Click Rate",value:`${w.toFixed(1)}%`,description:`${x.toLocaleString()} clicked`,icon:Y8}];return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Metrics"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your email campaigns"})]}),m.jsxs(ol,{onValueChange:t,value:e,children:[m.jsx(ll,{className:"w-[180px]",children:m.jsx(sl,{})}),m.jsxs(ul,{children:[m.jsx(Ge,{value:"1",children:"Last 24 hours"}),m.jsx(Ge,{value:"7",children:"Last 7 days"}),m.jsx(Ge,{value:"15",children:"Last 15 days"}),m.jsx(Ge,{value:"30",children:"Last 30 days"}),m.jsx(Ge,{value:"90",children:"Last 90 days"})]})]})]}),m.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:j.map(A=>m.jsxs(ze,{children:[m.jsxs(Be,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[m.jsx(et,{className:"font-medium text-sm",children:A.title}),m.jsx(A.icon,{className:"h-4 w-4 text-muted-foreground"})]}),m.jsxs(We,{children:[m.jsx("div",{className:"font-bold text-2xl",children:A.value}),m.jsx("p",{className:"text-muted-foreground text-xs",children:A.description})]})]},A.title))}),m.jsx(zfe,{quota:n.quota}),m.jsx(Tfe,{data:n.metrics}),m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Metrics Summary"}),m.jsx(st,{children:"Detailed breakdown of your email performance"})]}),m.jsxs(We,{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Total Emails Sent"}),m.jsx(Je,{variant:"outline",children:f.toLocaleString()})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Successfully Delivered"}),m.jsx(Je,{variant:"default",children:d.toLocaleString()})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Opened"}),m.jsx(Je,{variant:"default",children:g.toLocaleString()})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Clicked"}),m.jsx(Je,{variant:"default",children:x.toLocaleString()})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Bounced"}),m.jsx(Je,{variant:"destructive",children:v.toLocaleString()})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Complaints"}),m.jsx(Je,{variant:"destructive",children:p.toLocaleString()})]})]})]})]})}function qfe(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 Ufe=e=>{switch(e){case"success":return Gfe;case"info":return Yfe;case"warning":return Vfe;case"error":return Wfe;default:return null}},Hfe=Array(12).fill(0),Ffe=({visible:e,className:t})=>I.createElement("div",{className:["sonner-loading-wrapper",t].filter(Boolean).join(" "),"data-visible":e},I.createElement("div",{className:"sonner-spinner"},Hfe.map((n,r)=>I.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${r}`})))),Gfe=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"})),Vfe=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"})),Yfe=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"})),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-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"})),Kfe=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"})),Xfe=()=>{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 fS=1;class Qfe{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,s=typeof(t==null?void 0:t.id)=="number"||((n=t.id)==null?void 0:n.length)>0?t.id:fS++,l=this.toasts.find(f=>f.id===s),c=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(s)&&this.dismissedToasts.delete(s),l?this.toasts=this.toasts.map(f=>f.id===s?(this.publish({...f,...t,id:s,title:r}),{...f,...t,id:s,dismissible:c,title:r}):f):this.addToast({title:r,...i,dismissible:c,id:s}),s},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 s=r!==void 0,l;const c=i.then(async d=>{if(l=["resolve",d],I.isValidElement(d))s=!1,this.create({id:r,type:"default",message:d});else if(Jfe(d)&&!d.ok){s=!1;const p=typeof n.error=="function"?await n.error(`HTTP error! status: ${d.status}`):n.error,g=typeof n.description=="function"?await n.description(`HTTP error! status: ${d.status}`):n.description,_=typeof p=="object"&&!I.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:g,..._})}else if(d instanceof Error){s=!1;const p=typeof n.error=="function"?await n.error(d):n.error,g=typeof n.description=="function"?await n.description(d):n.description,_=typeof p=="object"&&!I.isValidElement(p)?p:{message:p};this.create({id:r,type:"error",description:g,..._})}else if(n.success!==void 0){s=!1;const p=typeof n.success=="function"?await n.success(d):n.success,g=typeof n.description=="function"?await n.description(d):n.description,_=typeof p=="object"&&!I.isValidElement(p)?p:{message:p};this.create({id:r,type:"success",description:g,..._})}}).catch(async d=>{if(l=["reject",d],n.error!==void 0){s=!1;const v=typeof n.error=="function"?await n.error(d):n.error,p=typeof n.description=="function"?await n.description(d):n.description,x=typeof v=="object"&&!I.isValidElement(v)?v:{message:v};this.create({id:r,type:"error",description:p,...x})}}).finally(()=>{s&&(this.dismiss(r),r=void 0),n.finally==null||n.finally.call(n)}),f=()=>new Promise((d,v)=>c.then(()=>l[0]==="reject"?v(l[1]):d(l[1])).catch(v));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)||fS++;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 Dn=new Qfe,Zfe=(e,t)=>{const n=(t==null?void 0:t.id)||fS++;return Dn.addToast({title:e,...t,id:n}),n},Jfe=e=>e&&typeof e=="object"&&"ok"in e&&typeof e.ok=="boolean"&&"status"in e&&typeof e.status=="number",ede=Zfe,tde=()=>Dn.toasts,nde=()=>Dn.getActiveToasts(),yn=Object.assign(ede,{success:Dn.success,info:Dn.info,warning:Dn.warning,error:Dn.error,custom:Dn.custom,message:Dn.message,promise:Dn.promise,dismiss:Dn.dismiss,loading:Dn.loading},{getHistory:tde,getToasts:nde});qfe("[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 dh(e){return e.label!==void 0}const rde=3,ade="24px",ide="16px",xk=4e3,ode=356,sde=14,lde=45,ude=200;function Xr(...e){return e.filter(Boolean).join(" ")}function cde(e){const[t,n]=e.split("-"),r=[];return t&&r.push(t),n&&r.push(n),r}const fde=e=>{var t,n,r,i,s,l,c,f,d;const{invert:v,toast:p,unstyled:g,interacting:x,setHeights:_,visibleToasts:S,heights:w,index:j,toasts:A,expanded:E,removeToast:N,defaultRichColors:T,closeButton:M,style:R,cancelButtonStyle:D,actionButtonStyle:L,className:Y="",descriptionClassName:z="",duration:H,position:V,gap:Q,expandByDefault:K,classNames:k,icons:q,closeButtonAriaLabel:B="Close toast"}=e,[W,se]=I.useState(null),[$,F]=I.useState(null),[X,ae]=I.useState(!1),[de,ge]=I.useState(!1),[ce,he]=I.useState(!1),[ie,me]=I.useState(!1),[ve,ne]=I.useState(!1),[De,je]=I.useState(0),[rt,Xe]=I.useState(0),ft=I.useRef(p.duration||H||xk),fn=I.useRef(null),St=I.useRef(null),Hr=j===0,Ln=j+1<=S,Nt=p.type,Jn=p.dismissible!==!1,Qt=p.className||"",Yo=p.descriptionClassName||"",Yi=I.useMemo(()=>w.findIndex(Ce=>Ce.toastId===p.id)||0,[w,p.id]),Cf=I.useMemo(()=>{var Ce;return(Ce=p.closeButton)!=null?Ce:M},[p.closeButton,M]),Wi=I.useMemo(()=>p.duration||H||xk,[p.duration,H]),Jl=I.useRef(0),pa=I.useRef(0),Nf=I.useRef(0),ei=I.useRef(null),[Ki,bn]=V.split("-"),wr=I.useMemo(()=>w.reduce((Ce,Et,Zt)=>Zt>=Yi?Ce:Ce+Et.height,0),[w,Yi]),dn=Xfe(),Fp=p.invert||v,eu=Nt==="loading";pa.current=I.useMemo(()=>Yi*Q+wr,[Yi,wr]),I.useEffect(()=>{ft.current=Wi},[Wi]),I.useEffect(()=>{ae(!0)},[]),I.useEffect(()=>{const Ce=St.current;if(Ce){const Et=Ce.getBoundingClientRect().height;return Xe(Et),_(Zt=>[{toastId:p.id,height:Et,position:p.position},...Zt]),()=>_(Zt=>Zt.filter(hn=>hn.toastId!==p.id))}},[_,p.id]),I.useLayoutEffect(()=>{if(!X)return;const Ce=St.current,Et=Ce.style.height;Ce.style.height="auto";const Zt=Ce.getBoundingClientRect().height;Ce.style.height=Et,Xe(Zt),_(hn=>hn.find(Mt=>Mt.toastId===p.id)?hn.map(Mt=>Mt.toastId===p.id?{...Mt,height:Zt}:Mt):[{toastId:p.id,height:Zt,position:p.position},...hn])},[X,p.title,p.description,_,p.id,p.jsx,p.action,p.cancel]);const Fr=I.useCallback(()=>{ge(!0),je(pa.current),_(Ce=>Ce.filter(Et=>Et.toastId!==p.id)),setTimeout(()=>{N(p)},ude)},[p,N,_,pa]);I.useEffect(()=>{if(p.promise&&Nt==="loading"||p.duration===1/0||p.type==="loading")return;let Ce;return E||x||dn?(()=>{if(Nf.current<Jl.current){const hn=new Date().getTime()-Jl.current;ft.current=ft.current-hn}Nf.current=new Date().getTime()})():(()=>{ft.current!==1/0&&(Jl.current=new Date().getTime(),Ce=setTimeout(()=>{p.onAutoClose==null||p.onAutoClose.call(p,p),Fr()},ft.current))})(),()=>clearTimeout(Ce)},[E,x,p,Nt,dn,Fr]),I.useEffect(()=>{p.delete&&(Fr(),p.onDismiss==null||p.onDismiss.call(p,p))},[Fr,p.delete]);function Wo(){var Ce;if(q!=null&&q.loading){var Et;return I.createElement("div",{className:Xr(k==null?void 0:k.loader,p==null||(Et=p.classNames)==null?void 0:Et.loader,"sonner-loader"),"data-visible":Nt==="loading"},q.loading)}return I.createElement(Ffe,{className:Xr(k==null?void 0:k.loader,p==null||(Ce=p.classNames)==null?void 0:Ce.loader),visible:Nt==="loading"})}const Ko=p.icon||(q==null?void 0:q[Nt])||Ufe(Nt);var Xi,Gr;return I.createElement("li",{tabIndex:0,ref:St,className:Xr(Y,Qt,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[Nt],p==null||(n=p.classNames)==null?void 0:n[Nt]),"data-sonner-toast":"","data-rich-colors":(Xi=p.richColors)!=null?Xi:T,"data-styled":!(p.jsx||p.unstyled||g),"data-mounted":X,"data-promise":!!p.promise,"data-swiped":ve,"data-removed":de,"data-visible":Ln,"data-y-position":Ki,"data-x-position":bn,"data-index":j,"data-front":Hr,"data-swiping":ce,"data-dismissible":Jn,"data-type":Nt,"data-invert":Fp,"data-swipe-out":ie,"data-swipe-direction":$,"data-expanded":!!(E||K&&X),"data-testid":p.testId,style:{"--index":j,"--toasts-before":j,"--z-index":A.length-j,"--offset":`${de?De:pa.current}px`,"--initial-height":K?"auto":`${rt}px`,...R,...p.style},onDragEnd:()=>{he(!1),se(null),ei.current=null},onPointerDown:Ce=>{Ce.button!==2&&(eu||!Jn||(fn.current=new Date,je(pa.current),Ce.target.setPointerCapture(Ce.pointerId),Ce.target.tagName!=="BUTTON"&&(he(!0),ei.current={x:Ce.clientX,y:Ce.clientY})))},onPointerUp:()=>{var Ce,Et,Zt;if(ie||!Jn)return;ei.current=null;const hn=Number(((Ce=St.current)==null?void 0:Ce.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),ti=Number(((Et=St.current)==null?void 0:Et.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Mt=new Date().getTime()-((Zt=fn.current)==null?void 0:Zt.getTime()),On=W==="x"?hn:ti,Qi=Math.abs(On)/Mt;if(Math.abs(On)>=lde||Qi>.11){je(pa.current),p.onDismiss==null||p.onDismiss.call(p,p),F(W==="x"?hn>0?"right":"left":ti>0?"down":"up"),Fr(),me(!0);return}else{var _n,jn;(_n=St.current)==null||_n.style.setProperty("--swipe-amount-x","0px"),(jn=St.current)==null||jn.style.setProperty("--swipe-amount-y","0px")}ne(!1),he(!1),se(null)},onPointerMove:Ce=>{var Et,Zt,hn;if(!ei.current||!Jn||((Et=window.getSelection())==null?void 0:Et.toString().length)>0)return;const Mt=Ce.clientY-ei.current.y,On=Ce.clientX-ei.current.x;var Qi;const _n=(Qi=e.swipeDirections)!=null?Qi:cde(V);!W&&(Math.abs(On)>1||Math.abs(Mt)>1)&&se(Math.abs(On)>Math.abs(Mt)?"x":"y");let jn={x:0,y:0};const Xo=Sr=>1/(1.5+Math.abs(Sr)/20);if(W==="y"){if(_n.includes("top")||_n.includes("bottom"))if(_n.includes("top")&&Mt<0||_n.includes("bottom")&&Mt>0)jn.y=Mt;else{const Sr=Mt*Xo(Mt);jn.y=Math.abs(Sr)<Math.abs(Mt)?Sr:Mt}}else if(W==="x"&&(_n.includes("left")||_n.includes("right")))if(_n.includes("left")&&On<0||_n.includes("right")&&On>0)jn.x=On;else{const Sr=On*Xo(On);jn.x=Math.abs(Sr)<Math.abs(On)?Sr:On}(Math.abs(jn.x)>0||Math.abs(jn.y)>0)&&ne(!0),(Zt=St.current)==null||Zt.style.setProperty("--swipe-amount-x",`${jn.x}px`),(hn=St.current)==null||hn.style.setProperty("--swipe-amount-y",`${jn.y}px`)}},Cf&&!p.jsx&&Nt!=="loading"?I.createElement("button",{"aria-label":B,"data-disabled":eu,"data-close-button":!0,onClick:eu||!Jn?()=>{}:()=>{Fr(),p.onDismiss==null||p.onDismiss.call(p,p)},className:Xr(k==null?void 0:k.closeButton,p==null||(r=p.classNames)==null?void 0:r.closeButton)},(Gr=q==null?void 0:q.close)!=null?Gr:Kfe):null,(Nt||p.icon||p.promise)&&p.icon!==null&&((q==null?void 0:q[Nt])!==null||p.icon)?I.createElement("div",{"data-icon":"",className:Xr(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||Wo():null,p.type!=="loading"?Ko:null):null,I.createElement("div",{"data-content":"",className:Xr(k==null?void 0:k.content,p==null||(s=p.classNames)==null?void 0:s.content)},I.createElement("div",{"data-title":"",className:Xr(k==null?void 0:k.title,p==null||(l=p.classNames)==null?void 0:l.title)},p.jsx?p.jsx:typeof p.title=="function"?p.title():p.title),p.description?I.createElement("div",{"data-description":"",className:Xr(z,Yo,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&&dh(p.cancel)?I.createElement("button",{"data-button":!0,"data-cancel":!0,style:p.cancelButtonStyle||D,onClick:Ce=>{dh(p.cancel)&&Jn&&(p.cancel.onClick==null||p.cancel.onClick.call(p.cancel,Ce),Fr())},className:Xr(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&&dh(p.action)?I.createElement("button",{"data-button":!0,"data-action":!0,style:p.actionButtonStyle||L,onClick:Ce=>{dh(p.action)&&(p.action.onClick==null||p.action.onClick.call(p.action,Ce),!Ce.defaultPrevented&&Fr())},className:Xr(k==null?void 0:k.actionButton,p==null||(d=p.classNames)==null?void 0:d.actionButton)},p.action.label):null)};function wk(){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 dde(e,t){const n={};return[e,t].forEach((r,i)=>{const s=i===1,l=s?"--mobile-offset":"--offset",c=s?ide:ade;function f(d){["top","right","bottom","left"].forEach(v=>{n[`${l}-${v}`]=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[`${l}-${d}`]=c:n[`${l}-${d}`]=typeof r[d]=="number"?`${r[d]}px`:r[d]}):f(c)}),n}const hde=I.forwardRef(function(t,n){const{id:r,invert:i,position:s="bottom-right",hotkey:l=["altKey","KeyT"],expand:c,closeButton:f,className:d,offset:v,mobileOffset:p,theme:g="light",richColors:x,duration:_,style:S,visibleToasts:w=rde,toastOptions:j,dir:A=wk(),gap:E=sde,icons:N,containerAriaLabel:T="Notifications"}=t,[M,R]=I.useState([]),D=I.useMemo(()=>r?M.filter(X=>X.toasterId===r):M.filter(X=>!X.toasterId),[M,r]),L=I.useMemo(()=>Array.from(new Set([s].concat(D.filter(X=>X.position).map(X=>X.position)))),[D,s]),[Y,z]=I.useState([]),[H,V]=I.useState(!1),[Q,K]=I.useState(!1),[k,q]=I.useState(g!=="system"?g:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),B=I.useRef(null),W=l.join("+").replace(/Key/g,"").replace(/Digit/g,""),se=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||Dn.dismiss(X.id),ae.filter(({id:ge})=>ge!==X.id)})},[]);return I.useEffect(()=>Dn.subscribe(X=>{if(X.dismiss){requestAnimationFrame(()=>{R(ae=>ae.map(de=>de.id===X.id?{...de,delete:!0}:de))});return}setTimeout(()=>{qk.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]})})})}),[M]),I.useEffect(()=>{if(g!=="system"){q(g);return}if(g==="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)}})}},[g]),I.useEffect(()=>{M.length<=1&&V(!1)},[M]),I.useEffect(()=>{const X=ae=>{var de;if(l.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)},[l]),I.useEffect(()=>{if(B.current)return()=>{se.current&&(se.current.focus({preventScroll:!0}),se.current=null,$.current=!1)}},[B.current]),I.createElement("section",{ref:n,"aria-label":`${T} ${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 D.length?I.createElement("ol",{key:X,dir:A==="auto"?wk():A,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":`${ode}px`,"--gap":`${E}px`,...S,...dde(v,p)},onBlur:he=>{$.current&&!he.currentTarget.contains(he.relatedTarget)&&($.current=!1,se.current&&(se.current.focus({preventScroll:!0}),se.current=null))},onFocus:he=>{he.target instanceof HTMLElement&&he.target.dataset.dismissible==="false"||$.current||($.current=!0,se.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)},D.filter(he=>!he.position&&ae===0||he.position===X).map((he,ie)=>{var me,ve;return I.createElement(fde,{key:he.id,icons:N,index:ie,toast:he,defaultRichColors:x,duration:(me=j==null?void 0:j.duration)!=null?me:_,className:j==null?void 0:j.className,descriptionClassName:j==null?void 0:j.descriptionClassName,invert:i,visibleToasts:w,closeButton:(ve=j==null?void 0:j.closeButton)!=null?ve:f,interacting:Q,position:X,style:j==null?void 0:j.style,unstyled:j==null?void 0:j.unstyled,classNames:j==null?void 0:j.classNames,cancelButtonStyle:j==null?void 0:j.cancelButtonStyle,actionButtonStyle:j==null?void 0:j.actionButtonStyle,closeButtonAriaLabel:j==null?void 0:j.closeButtonAriaLabel,removeToast:F,toasts:D.filter(ne=>ne.position==he.position),heights:Y.filter(ne=>ne.position==he.position),setHeights:z,expandByDefault:c,gap:E,expanded:H,swipeDirections:t.swipeDirections})})):null}))});var Sz="AlertDialog",[mde]=zr(Sz,[IL]),Ja=IL(),Oz=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ja(t);return m.jsx(rO,{...r,...n,modal:!0})};Oz.displayName=Sz;var pde="AlertDialogTrigger",vde=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return m.jsx(NG,{...i,...r,ref:t})});vde.displayName=pde;var gde="AlertDialogPortal",_z=e=>{const{__scopeAlertDialog:t,...n}=e,r=Ja(t);return m.jsx(aO,{...r,...n})};_z.displayName=gde;var yde="AlertDialogOverlay",jz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return m.jsx(iO,{...i,...r,ref:t})});jz.displayName=yde;var el="AlertDialogContent",[bde,xde]=mde(el),wde=v$("AlertDialogContent"),Ez=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,children:r,...i}=e,s=Ja(n),l=O.useRef(null),c=tt(t,l),f=O.useRef(null);return m.jsx(EG,{contentName:el,titleName:Az,docsSlug:"alert-dialog",children:m.jsx(bde,{scope:n,cancelRef:f,children:m.jsxs(oO,{role:"alertdialog",...s,...i,ref:c,onOpenAutoFocus:be(i.onOpenAutoFocus,d=>{var v;d.preventDefault(),(v=f.current)==null||v.focus({preventScroll:!0})}),onPointerDownOutside:d=>d.preventDefault(),onInteractOutside:d=>d.preventDefault(),children:[m.jsx(wde,{children:r}),m.jsx(Ode,{contentRef:l})]})})})});Ez.displayName=el;var Az="AlertDialogTitle",Tz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return m.jsx(sO,{...i,...r,ref:t})});Tz.displayName=Az;var Cz="AlertDialogDescription",Nz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return m.jsx(lO,{...i,...r,ref:t})});Nz.displayName=Cz;var Sde="AlertDialogAction",Mz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,i=Ja(n);return m.jsx(Jm,{...i,...r,ref:t})});Mz.displayName=Sde;var Rz="AlertDialogCancel",Dz=O.forwardRef((e,t)=>{const{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=xde(Rz,n),s=Ja(n),l=tt(t,i);return m.jsx(Jm,{...s,...r,ref:l})});Dz.displayName=Rz;var Ode=({contentRef:e})=>{const t=`\`${el}\` requires a description for the component to be accessible for screen reader users.
|
|
371
|
+
|
|
372
|
+
You can add a description to the \`${el}\` by passing a \`${Cz}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
373
|
+
|
|
374
|
+
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 \`${el}\`. 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.
|
|
375
|
+
|
|
376
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return O.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},_de=Oz,jde=_z,Ede=jz,Ade=Ez,Tde=Mz,Cde=Dz,Nde=Tz,Mde=Nz;function dS({...e}){return m.jsx(_de,{"data-slot":"alert-dialog",...e})}function Rde({...e}){return m.jsx(jde,{"data-slot":"alert-dialog-portal",...e})}function Dde({className:e,...t}){return m.jsx(Ede,{className:pe("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 hS({className:e,...t}){return m.jsxs(Rde,{children:[m.jsx(Dde,{}),m.jsx(Ade,{className:pe("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 mS({className:e,...t}){return m.jsx("div",{className:pe("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"alert-dialog-header",...t})}function pS({className:e,...t}){return m.jsx("div",{className:pe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"alert-dialog-footer",...t})}function vS({className:e,...t}){return m.jsx(Nde,{className:pe("font-semibold text-lg",e),"data-slot":"alert-dialog-title",...t})}function gS({className:e,...t}){return m.jsx(Mde,{className:pe("text-muted-foreground text-sm",e),"data-slot":"alert-dialog-description",...t})}function yS({className:e,...t}){return m.jsx(Tde,{className:pe(JS(),e),...t})}function bS({className:e,...t}){return m.jsx(Cde,{className:pe(JS({variant:"outline"}),e),...t})}var Bp="Collapsible",[Pde]=zr(Bp),[kde,S_]=Pde(Bp),Pz=O.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:l,...c}=e,[f,d]=$i({prop:r,defaultProp:i??!1,onChange:l,caller:Bp});return m.jsx(kde,{scope:n,disabled:s,contentId:mr(),open:f,onOpenToggle:O.useCallback(()=>d(v=>!v),[d]),children:m.jsx(Re.div,{"data-state":__(f),"data-disabled":s?"":void 0,...c,ref:t})})});Pz.displayName=Bp;var kz="CollapsibleTrigger",$z=O.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=S_(kz,n);return m.jsx(Re.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":__(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:be(e.onClick,i.onOpenToggle)})});$z.displayName=kz;var O_="CollapsibleContent",Lz=O.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=S_(O_,e.__scopeCollapsible);return m.jsx(br,{present:n||i.open,children:({present:s})=>m.jsx($de,{...r,ref:t,present:s})})});Lz.displayName=O_;var $de=O.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,l=S_(O_,n),[c,f]=O.useState(r),d=O.useRef(null),v=tt(t,d),p=O.useRef(0),g=p.current,x=O.useRef(0),_=x.current,S=l.open||c,w=O.useRef(S),j=O.useRef(void 0);return O.useEffect(()=>{const A=requestAnimationFrame(()=>w.current=!1);return()=>cancelAnimationFrame(A)},[]),Ft(()=>{const A=d.current;if(A){j.current=j.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";const E=A.getBoundingClientRect();p.current=E.height,x.current=E.width,w.current||(A.style.transitionDuration=j.current.transitionDuration,A.style.animationName=j.current.animationName),f(r)}},[l.open,r]),m.jsx(Re.div,{"data-state":__(l.open),"data-disabled":l.disabled?"":void 0,id:l.contentId,hidden:!S,...s,ref:v,style:{"--radix-collapsible-content-height":g?`${g}px`:void 0,"--radix-collapsible-content-width":_?`${_}px`:void 0,...e.style},children:S&&i})});function __(e){return e?"open":"closed"}var Lde=Pz;const qp=Lde,Up=$z,Hp=Lz;function Ide({...e}){return m.jsx(rO,{"data-slot":"dialog",...e})}function zde({...e}){return m.jsx(aO,{"data-slot":"dialog-portal",...e})}function Bde({className:e,...t}){return m.jsx(iO,{className:pe("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 qde({className:e,children:t,showCloseButton:n=!0,...r}){return m.jsxs(zde,{"data-slot":"dialog-portal",children:[m.jsx(Bde,{}),m.jsxs(oO,{className:pe("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&&m.jsxs(Jm,{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:[m.jsx(aa,{}),m.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function Ude({className:e,...t}){return m.jsx("div",{className:pe("flex flex-col gap-2 text-center sm:text-left",e),"data-slot":"dialog-header",...t})}function Hde({className:e,...t}){return m.jsx("div",{className:pe("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",e),"data-slot":"dialog-footer",...t})}function Fde({className:e,...t}){return m.jsx(sO,{className:pe("font-semibold text-lg leading-none",e),"data-slot":"dialog-title",...t})}function Gde({className:e,...t}){return m.jsx(lO,{className:pe("text-muted-foreground text-sm",e),"data-slot":"dialog-description",...t})}var Vde="Label",Iz=O.forwardRef((e,t)=>m.jsx(Bo.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())}}));Iz.displayName=Vde;var Yde=Iz;function Wde({className:e,...t}){return m.jsx(Yde,{className:pe("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 Kde(){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 zz="wraps-dns-verification",Xde=1e3*60*60;function Bz(){try{const e=localStorage.getItem(zz);return e?JSON.parse(e):{}}catch{return{}}}function Pm(e){try{localStorage.setItem(zz,JSON.stringify(e))}catch(t){console.error("Failed to save DNS verification cache:",t)}}function qz(e){return e?Date.now()-e.lastChecked<Xde:!1}async function Sk(e,t){var i;console.log("[DNS Verify] verifyTrackingDomain called",{domain:e,expectedTarget:t});const n=Bz(),r=`${e}->${t}`;if((i=n.trackingDomain)!=null&&i[r]&&qz(n.trackingDomain[r]))return console.log("[DNS Verify] Returning cached result"),n.trackingDomain[r];try{const l=`/api/settings/verify-tracking-domain?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}&expectedTarget=${encodeURIComponent(t)}`;console.log("[DNS Verify] Fetching:",l);const c=await fetch(l);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,Pm(n),d}catch(s){console.error("Tracking domain verification request failed:",s);const l={verified:!1,lastChecked:Date.now(),error:s instanceof Error?s.message:"Failed to verify"};return n.trackingDomain||(n.trackingDomain={}),n.trackingDomain[r]=l,Pm(n),l}}async function Ok(e){var r;console.log("[DNS Verify] verifyDmarc called",{domain:e});const t=Bz(),n=`_dmarc.${e}`;if((r=t.dmarc)!=null&&r[n]&&qz(t.dmarc[n]))return console.log("[DNS Verify] Returning cached DMARC result"),t.dmarc[n];try{const s=`/api/settings/verify-dmarc?token=${sessionStorage.getItem("wraps-auth-token")}&domain=${encodeURIComponent(e)}`;console.log("[DNS Verify] Fetching:",s);const l=await fetch(s);if(console.log("[DNS Verify] Response status:",l.status),!l.ok)throw new Error(`HTTP ${l.status}: ${l.statusText}`);const c=await l.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,Pm(t),f}catch(i){console.error("DMARC verification request failed:",i);const s={verified:!1,lastChecked:Date.now(),error:i instanceof Error?i.message:"Failed to verify"};return t.dmarc||(t.dmarc={}),t.dmarc[n]=s,Pm(t),s}}function j_({status:e}){const t={SUCCESS:{icon:Ll,label:"Verified",variant:"default",className:"bg-green-500/10 text-green-700 dark:text-green-400 border-green-500/20"},PENDING:{icon:nl,label:"Pending",variant:"secondary",className:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 border-yellow-500/20"},FAILED:{icon:$8,label:"Failed",variant:"destructive",className:"bg-red-500/10 text-red-700 dark:text-red-400 border-red-500/20"},TEMPORARY_FAILURE:{icon:tl,label:"Temporary Failure",variant:"secondary",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 border-orange-500/20"},NOT_STARTED:{icon:nl,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 m.jsxs(Je,{className:i,variant:"outline",children:[m.jsx(n,{className:"mr-1 h-3 w-3"}),r]})}function Rl({text:e}){const t=async()=>{await navigator.clipboard.writeText(e),yn.success("Copied to clipboard",{description:"DNS record value copied successfully"})};return m.jsx(bt,{onClick:t,size:"sm",variant:"ghost",children:m.jsx(I8,{className:"h-3 w-3"})})}function Qde({identity:e}){const t=e==null?void 0:e.dkimAttributes,n=(t==null?void 0:t.status)==="SUCCESS",[r,i]=O.useState(!n);return t?m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),m.jsxs("p",{className:"text-muted-foreground text-sm",children:[t.signingEnabled?"Enabled":"Disabled",t.signingKeyLength&&` · ${t.signingKeyLength}`]})]}),m.jsx(j_,{status:t.status})]}),t.tokens&&t.tokens.length>0&&m.jsxs(qp,{onOpenChange:i,open:r,children:[m.jsx(Up,{asChild:!0,children:m.jsxs(bt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[m.jsx("p",{className:"font-medium text-sm",children:"DNS Records (CNAME)"}),r?m.jsx(uf,{className:"h-4 w-4"}):m.jsx($l,{className:"h-4 w-4"})]})}),m.jsx(Hp,{className:"mt-2 space-y-2",children:t.tokens.map(s=>m.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[m.jsxs("div",{className:"mb-1 flex items-center justify-between",children:[m.jsxs("p",{className:"font-mono text-xs",children:[s,"._domainkey.",e.identityName]}),m.jsx(Rl,{text:`${s}._domainkey.${e.identityName}`})]}),m.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → ",s,".dkim.amazonses.com"]})]},s))})]})]}):m.jsx("div",{className:"space-y-4",children:m.jsx("div",{className:"flex items-center justify-between",children:m.jsxs("div",{children:[m.jsx("p",{className:"font-medium",children:"DKIM Authentication"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]})})})}function Zde({identity:e}){const t=e==null?void 0:e.mailFromAttributes,n=(t==null?void 0:t.mailFromDomainStatus)==="SUCCESS",[r,i]=O.useState(!n);return m.jsx("div",{className:"space-y-4",children:t!=null&&t.mailFromDomain?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),m.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&&m.jsx(j_,{status:t.mailFromDomainStatus})]}),m.jsxs(qp,{onOpenChange:i,open:r,children:[m.jsx(Up,{asChild:!0,children:m.jsxs(bt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[m.jsx("p",{className:"font-medium text-sm",children:"DNS Record (MX)"}),r?m.jsx(uf,{className:"h-4 w-4"}):m.jsx($l,{className:"h-4 w-4"})]})}),m.jsx(Hp,{className:"mt-2",children:m.jsx("div",{className:"rounded-md border bg-muted/50 p-3",children:m.jsxs("div",{className:"space-y-1",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("p",{className:"font-mono text-xs",children:["MX ",t.mailFromDomain]}),m.jsx(Rl,{text:`10 feedback-smtp.${e==null?void 0:e.identityName.split(".")[0]}.amazonses.com`})]}),m.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"]})]})})})]})]}):m.jsx("div",{className:"flex items-center justify-between",children:m.jsxs("div",{children:[m.jsx("p",{className:"font-medium",children:"Mail-From Domain"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"Using default amazonses.com domain"})]})})})}function Jde({identity:e}){const[t,n]=O.useState(null),[r,i]=O.useState(!1),[s,l]=O.useState(!(t!=null&&t.verified));O.useEffect(()=>{e!=null&&e.identityName&&Ok(e.identityName).then(n)},[e==null?void 0:e.identityName]),O.useEffect(()=>{t&&l(!t.verified)},[t]);const c=async()=>{if(e!=null&&e.identityName){i(!0);try{const f=await Ok(e.identityName);n(f),f.verified?yn.success("DMARC record verified",{description:"DNS TXT record found and configured correctly"}):(console.error("DMARC verification failed:",f.error),yn.error("Verification failed",{description:f.error||"DMARC record not found"}))}catch(f){console.error("DMARC verification error:",f),yn.error("Verification error",{description:f instanceof Error?f.message:"Unknown error"})}finally{i(!1)}}};return m.jsxs("div",{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium",children:"DMARC Policy"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:t!=null&&t.verified?"Configured":"Recommended for better deliverability"})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[(t==null?void 0:t.verified)&&m.jsxs(Je,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[m.jsx(Ll,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),m.jsx(bt,{className:"h-8 w-8 p-0",disabled:r,onClick:c,size:"sm",variant:"ghost",children:m.jsx(Fk,{className:`h-4 w-4 ${r?"animate-spin":""}`})})]})]}),m.jsxs(qp,{onOpenChange:l,open:s,children:[m.jsx(Up,{asChild:!0,children:m.jsxs(bt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[m.jsx("p",{className:"font-medium text-sm",children:"DNS Record (TXT)"}),s?m.jsx(uf,{className:"h-4 w-4"}):m.jsx($l,{className:"h-4 w-4"})]})}),m.jsx(Hp,{className:"mt-2",children:m.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[m.jsxs("div",{className:"mb-2 flex items-center justify-between",children:[m.jsxs("p",{className:"font-mono text-xs",children:["_dmarc.",(e==null?void 0:e.identityName)||"yourdomain.com"]}),m.jsx(Rl,{text:`_dmarc.${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]}),m.jsxs("div",{className:"flex items-start justify-between gap-2",children:[m.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"]}),m.jsx(Rl,{text:`v=DMARC1; p=quarantine; rua=mailto:dmarc@${(e==null?void 0:e.identityName)||"yourdomain.com"}`})]})]})})]})]})}function ehe({configSet:e,region:t,onRefresh:n}){const r=e==null?void 0:e.trackingOptions,[i,s]=O.useState(null),[l,c]=O.useState(!1),[f,d]=O.useState(!1),[v,p]=O.useState(""),[g,x]=O.useState(!1),[_,S]=O.useState(!(i!=null&&i.verified));O.useEffect(()=>{if(r!=null&&r.customRedirectDomain&&t){const E=`r.${t}.awstrack.me`;Sk(r.customRedirectDomain,E).then(s)}},[r==null?void 0:r.customRedirectDomain,t]),O.useEffect(()=>{i&&S(!i.verified)},[i]);const w=async()=>{if(r!=null&&r.customRedirectDomain&&t){c(!0);try{const E=`r.${t}.awstrack.me`,N=await Sk(r.customRedirectDomain,E);s(N),N.verified?yn.success("Tracking domain verified",{description:"DNS records are configured correctly"}):(console.error("Tracking domain verification failed:",N.error),yn.error("Verification failed",{description:N.error||"DNS records not found"}))}catch(E){console.error("Tracking domain verification error:",E),yn.error("Verification error",{description:E instanceof Error?E.message:"Unknown error"})}finally{c(!1)}}},j=()=>{p((r==null?void 0:r.customRedirectDomain)||""),d(!0)},A=async()=>{if(!v.trim()){yn.error("Invalid domain",{description:"Please enter a valid domain name"});return}x(!0);try{const E=sessionStorage.getItem("wraps-auth-token"),N=await fetch(`/api/settings/config-set/tracking-domain?token=${E}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({domain:v})});if(!N.ok){const T=await N.json();throw new Error(T.error||`Failed to update: ${N.statusText}`)}d(!1),yn.success("Tracking domain updated",{description:"Don't forget to configure the DNS records"}),n&&await n()}catch(E){console.error("Failed to update tracking domain:",E),yn.error("Failed to update tracking domain",{description:E instanceof Error?E.message:"Unknown error"})}finally{x(!1)}};return m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Tracking Domain"}),m.jsx(st,{children:"Custom domain for open and click tracking links"})]}),m.jsx(We,{className:"space-y-4",children:r!=null&&r.customRedirectDomain?m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex-1",children:[m.jsx("p",{className:"font-medium",children:r.customRedirectDomain}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"Custom Tracking Domain"})]}),m.jsxs("div",{className:"flex items-center gap-2",children:[(i==null?void 0:i.verified)&&m.jsxs(Je,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[m.jsx(Ll,{className:"mr-1 h-3 w-3"}),"Verified by Wraps"]}),m.jsx(Je,{variant:"outline",children:r.httpsPolicy==="REQUIRE"?"HTTPS Only":"HTTPS Optional"}),m.jsx(bt,{className:"h-8 w-8 p-0",disabled:l,onClick:w,size:"sm",variant:"ghost",children:m.jsx(Fk,{className:`h-4 w-4 ${l?"animate-spin":""}`})}),m.jsx(bt,{className:"h-8 w-8 p-0",onClick:j,size:"sm",variant:"ghost",children:m.jsx(DT,{className:"h-4 w-4"})})]})]}),m.jsxs(qp,{onOpenChange:S,open:_,children:[m.jsx(Up,{asChild:!0,children:m.jsxs(bt,{className:"h-auto w-full justify-between p-0",size:"sm",variant:"ghost",children:[m.jsx("p",{className:"font-medium text-sm",children:"Required DNS Record (CNAME)"}),_?m.jsx(uf,{className:"h-4 w-4"}):m.jsx($l,{className:"h-4 w-4"})]})}),m.jsx(Hp,{className:"mt-2",children:m.jsxs("div",{className:"rounded-md border bg-muted/50 p-3",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("p",{className:"font-mono text-xs",children:r.customRedirectDomain}),m.jsx(Rl,{text:r.customRedirectDomain})]}),m.jsxs("div",{className:"mt-1 flex items-start justify-between gap-2",children:[m.jsxs("p",{className:"font-mono text-muted-foreground text-xs",children:["CNAME → r.",(e==null?void 0:e.name)||"region",".awstrack.me"]}),m.jsx(Rl,{text:`r.${(e==null?void 0:e.name)||"region"}.awstrack.me`})]})]})})]})]}):m.jsxs("div",{className:"space-y-4",children:[m.jsx("p",{className:"text-muted-foreground text-sm",children:"No custom tracking domain configured. Using default awstrack.me domain."}),m.jsxs(bt,{onClick:j,size:"sm",variant:"outline",children:[m.jsx(DT,{className:"mr-2 h-4 w-4"}),"Configure Tracking Domain"]})]})}),m.jsx(Ide,{onOpenChange:d,open:f,children:m.jsxs(qde,{children:[m.jsxs(Ude,{children:[m.jsx(Fde,{children:"Update Tracking Domain"}),m.jsx(Gde,{children:"Enter the custom domain you want to use for email tracking links. You'll need to configure DNS records after saving."})]}),m.jsx("div",{className:"space-y-4 py-4",children:m.jsxs("div",{className:"space-y-2",children:[m.jsx(Wde,{htmlFor:"domain",children:"Tracking Domain"}),m.jsx(gf,{disabled:g,id:"domain",onChange:E=>p(E.target.value),placeholder:"track.example.com",value:v}),m.jsx("p",{className:"text-muted-foreground text-xs",children:"Example: track.yourdomain.com or email.yourdomain.com"})]})}),m.jsxs(Hde,{children:[m.jsx(bt,{disabled:g,onClick:()=>d(!1),variant:"outline",children:"Cancel"}),m.jsx(bt,{disabled:g,onClick:A,children:g?"Updating...":"Update Domain"})]})]})})]})}function the({configSet:e,onRefresh:t}){var v,p;const[n,r]=O.useState(!1),[i,s]=O.useState(!1),[l,c]=O.useState(!1);if(!e)return m.jsx(ze,{children:m.jsxs(Be,{children:[m.jsx(et,{children:"Configuration Set"}),m.jsx(st,{children:"No configuration set found"})]})});const f=async()=>{var g;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),_=!((g=e.sendingOptions)!=null&&g.sendingEnabled),S=await fetch(`/api/settings/config-set/sending?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:_})});if(!S.ok)throw new Error(`Failed to update: ${S.statusText}`);r(!1),yn.success(_?"Email sending enabled":"Email sending disabled"),t&&await t()}catch(x){console.error("Failed to toggle sending:",x),yn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}},d=async()=>{var g;c(!0);try{const x=sessionStorage.getItem("wraps-auth-token"),_=!((g=e.reputationOptions)!=null&&g.reputationMetricsEnabled),S=await fetch(`/api/settings/config-set/reputation?token=${x}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:_})});if(!S.ok)throw new Error(`Failed to update: ${S.statusText}`);s(!1),yn.success(_?"Reputation metrics enabled":"Reputation metrics disabled"),t&&await t()}catch(x){console.error("Failed to toggle reputation:",x),yn.error("Failed to update setting",{description:x instanceof Error?x.message:"Unknown error"})}finally{c(!1)}};return m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Configuration Set"}),m.jsx(st,{children:"Email sending and tracking configuration"})]}),m.jsxs(We,{className:"space-y-6",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium",children:e.name}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"Configuration Set Name"})]}),m.jsx(Qn,{}),e.sendingOptions&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex-1 space-y-0.5",children:[m.jsx("p",{className:"font-medium text-sm",children:"Email Sending"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:e.sendingOptions.sendingEnabled?"Emails can be sent":"Email sending is disabled"})]}),m.jsx(bt,{onClick:()=>r(!0),size:"sm",variant:e.sendingOptions.sendingEnabled?"destructive":"default",children:e.sendingOptions.sendingEnabled?"Disable":"Enable"})]}),m.jsx(dS,{onOpenChange:r,open:n,children:m.jsxs(hS,{children:[m.jsxs(mS,{children:[m.jsx(vS,{children:e.sendingOptions.sendingEnabled?"Disable email sending?":"Enable email sending?"}),m.jsx(gS,{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."})]}),m.jsxs(pS,{children:[m.jsx(bS,{disabled:l,children:"Cancel"}),m.jsx(yS,{disabled:l,onClick:f,children:l?"Updating...":e.sendingOptions.sendingEnabled?"Disable sending":"Enable sending"})]})]})})]}),e.reputationOptions&&m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex-1 space-y-0.5",children:[m.jsx("p",{className:"font-medium text-sm",children:"Reputation Metrics"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:e.reputationOptions.reputationMetricsEnabled?"Tracking bounce and complaint rates":"Reputation tracking disabled"})]}),m.jsx(bt,{onClick:()=>s(!0),size:"sm",variant:"outline",children:e.reputationOptions.reputationMetricsEnabled?"Disable":"Enable"})]}),m.jsx(dS,{onOpenChange:s,open:i,children:m.jsxs(hS,{children:[m.jsxs(mS,{children:[m.jsx(vS,{children:e.reputationOptions.reputationMetricsEnabled?"Disable reputation metrics?":"Enable reputation metrics?"}),m.jsx(gS,{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."})]}),m.jsxs(pS,{children:[m.jsx(bS,{disabled:l,children:"Cancel"}),m.jsx(yS,{disabled:l,onClick:d,children:l?"Updating...":e.reputationOptions.reputationMetricsEnabled?"Disable metrics":"Enable metrics"})]})]})})]}),((v=e.deliveryOptions)==null?void 0:v.tlsPolicy)&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"space-y-0.5",children:[m.jsx("p",{className:"font-medium text-sm",children:"TLS Encryption"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required for all connections":"Optional (opportunistic)"})]}),m.jsx(Je,{variant:"outline",children:e.deliveryOptions.tlsPolicy==="REQUIRE"?"Required":"Optional"})]}),e.suppressionOptions&&m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"space-y-0.5",children:[m.jsx("p",{className:"font-medium text-sm",children:"Suppression List"}),m.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?m.jsx("div",{className:"flex gap-2",children:e.suppressionOptions.suppressedReasons.map(g=>m.jsx(Je,{variant:"secondary",children:g},g))}):m.jsx("p",{className:"text-muted-foreground text-sm",children:"Not configured"})]}),((p=e.deliveryOptions)==null?void 0:p.sendingPoolName)&&m.jsxs("div",{children:[m.jsx("p",{className:"font-medium text-sm",children:"IP Pool"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:e.deliveryOptions.sendingPoolName})]})]})]})}function nhe(){var c,f;const[e,t]=O.useState(null),[n,r]=O.useState(!0),[i,s]=O.useState(null),l=O.useCallback(async()=>{try{r(!0);const d=await Kde();t(d),s(null)}catch(d){console.error("Failed to fetch email settings:",d),s(d instanceof Error?d.message:"Failed to load settings")}finally{r(!1)}},[]);return O.useEffect(()=>{l()},[l]),n?m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),m.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[m.jsxs(ze,{className:"md:row-span-2",children:[m.jsxs(Be,{children:[m.jsx(pt,{className:"h-6 w-48"}),m.jsx(pt,{className:"mt-2 h-4 w-64"})]}),m.jsxs(We,{className:"space-y-6",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsx(pt,{className:"h-4 w-32"}),m.jsx(pt,{className:"h-4 w-24"})]}),m.jsx(pt,{className:"h-px w-full"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(pt,{className:"h-4 w-40"}),m.jsx(pt,{className:"h-4 w-28"})]}),m.jsx(pt,{className:"h-px w-full"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(pt,{className:"h-4 w-36"}),m.jsx(pt,{className:"h-4 w-32"})]}),m.jsx(pt,{className:"h-px w-full"}),m.jsxs("div",{className:"space-y-2",children:[m.jsx(pt,{className:"h-4 w-32"}),m.jsx(pt,{className:"h-4 w-44"})]})]})]}),m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(pt,{className:"h-6 w-48"}),m.jsx(pt,{className:"mt-2 h-4 w-64"})]}),m.jsx(We,{children:m.jsx(pt,{className:"h-20 w-full"})})]}),m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(pt,{className:"h-6 w-48"}),m.jsx(pt,{className:"mt-2 h-4 w-64"})]}),m.jsx(We,{children:m.jsx(pt,{className:"h-20 w-full"})})]})]})]}):i?m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),m.jsxs(Jr,{className:"mt-6",variant:"destructive",children:[m.jsx(tl,{className:"h-4 w-4"}),m.jsx(Ph,{children:"Error Loading Settings"}),m.jsx(ea,{children:i})]})]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"Email Settings"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your email settings and preferences"})]}),m.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[m.jsxs(ze,{className:"md:row-span-2",children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Sending Domain"}),m.jsx(st,{children:"Email domain configuration and authentication"})]}),m.jsxs(We,{className:"space-y-6",children:[m.jsx("div",{className:"space-y-4",children:m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex-1",children:[m.jsx("p",{className:"font-medium",children:(c=e==null?void 0:e.identity)==null?void 0:c.identityName}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"Domain Identity"})]}),m.jsx(j_,{status:((f=e==null?void 0:e.identity)==null?void 0:f.verificationStatus)||"NOT_STARTED"})]})}),m.jsx(Qn,{}),m.jsx(Qde,{identity:e==null?void 0:e.identity}),m.jsx(Qn,{}),m.jsx(Zde,{identity:e==null?void 0:e.identity}),m.jsx(Qn,{}),m.jsx(Jde,{identity:e==null?void 0:e.identity})]})]}),m.jsx(the,{configSet:e==null?void 0:e.configurationSet,onRefresh:l}),m.jsx(ehe,{configSet:e==null?void 0:e.configurationSet,onRefresh:l,region:e==null?void 0:e.region})]})]})}const rhe={sent:ki,delivered:TS,failed:aa,queued:nl,blocked:aa,carrier_unreachable:wh,invalid:aa,opted_out:aa,ttl_expired:nl},ahe={sent:"text-blue-500",delivered:"text-green-500",failed:"text-red-500",queued:"text-gray-500",blocked:"text-orange-500",carrier_unreachable:"text-red-500",invalid:"text-red-500",opted_out:"text-yellow-500",ttl_expired:"text-gray-500"},ihe={delivered:"default",sent:"secondary",queued:"secondary",failed:"destructive",blocked:"destructive",invalid:"destructive",opted_out:"default"};function ohe(){const{id:e}=Dk(),t=Io(),[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null);O.useEffect(()=>{async function p(){try{s(!0),c(null);const g=sessionStorage.getItem("wraps-auth-token");if(!g)throw new Error("Authentication token not found");const x=encodeURIComponent(e||""),_=await fetch(`/api/sms/${x}?token=${g}`);if(!_.ok){let j="Failed to fetch SMS details";try{j=(await _.json()).error||j}catch{j=`${_.status}: ${_.statusText}`}throw new Error(j)}const S=_.headers.get("content-type");if(!(S!=null&&S.includes("application/json"))){const j=await _.text();throw console.error("Non-JSON response:",j),new Error("Server returned non-JSON response")}const w=await _.json();r(w)}catch(g){const x=g instanceof Error?g.message:"Unknown error";c(x),console.error("Error fetching SMS details:",g)}finally{s(!1)}}e&&p()},[e]);const f=p=>new Date(p).toLocaleString("en-US",{month:"short",day:"numeric",hour:"numeric",minute:"2-digit",hour12:!0}),d=p=>new Date(p).toLocaleString("en-US",{weekday:"short",month:"short",day:"numeric",year:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit",hour12:!0}),v=p=>p.startsWith("+1")&&p.length===12?`(${p.slice(2,5)}) ${p.slice(5,8)}-${p.slice(8)}`:p;return i?m.jsx("div",{className:"flex h-[600px] items-center justify-center",children:m.jsx("div",{className:"text-muted-foreground",children:"Loading SMS details..."})}):l?m.jsxs("div",{className:"space-y-4",children:[m.jsxs(bt,{onClick:()=>t("/sms"),size:"sm",variant:"ghost",children:[m.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to messages"]}),m.jsx("div",{className:"rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:l})]}):n?m.jsxs("div",{className:"space-y-6",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs(bt,{onClick:()=>t("/sms"),size:"sm",variant:"ghost",children:[m.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to messages"]}),m.jsx(Je,{variant:ihe[n.status],children:n.status.charAt(0).toUpperCase()+n.status.slice(1).replace("_"," ")})]}),m.jsxs(ze,{children:[m.jsx(Be,{children:m.jsx("div",{className:"flex items-start justify-between",children:m.jsxs("div",{className:"space-y-1.5",children:[m.jsxs(et,{className:"flex items-center gap-2 text-2xl",children:[m.jsx(ki,{className:"h-6 w-6"}),"SMS Message"]}),m.jsx(st,{className:"font-mono text-xs",children:n.messageId})]})})}),m.jsx(We,{className:"space-y-4",children:m.jsxs("div",{className:"grid gap-4 md:grid-cols-2",children:[m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-sm",children:"FROM"}),m.jsx("div",{className:"font-mono text-sm",children:v(n.from)})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-sm",children:"TO"}),m.jsx("div",{className:"font-mono text-sm",children:v(n.to)})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-sm",children:"SEGMENTS"}),m.jsx("div",{className:"font-mono text-sm",children:n.segments})]}),m.jsxs("div",{className:"space-y-1",children:[m.jsx("div",{className:"text-muted-foreground text-sm",children:"ID"}),m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx("code",{className:"rounded bg-muted px-2 py-1 font-mono text-xs",children:n.id}),m.jsx(bt,{className:"h-6 w-6",onClick:()=>navigator.clipboard.writeText(n.id),size:"icon",variant:"ghost",children:m.jsx("span",{className:"sr-only",children:"Copy ID"})})]})]})]})})]}),m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Message Content"}),m.jsx(st,{children:"The SMS message body"})]}),m.jsx(We,{children:m.jsx("div",{className:"rounded-md border bg-muted/50 p-4",children:m.jsx("p",{className:"whitespace-pre-wrap text-sm",children:n.body})})})]}),m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Message Events"}),m.jsx(st,{children:"Lifecycle of this message from send to delivery"})]}),m.jsx(We,{children:m.jsx("div",{className:"space-y-4",children:n.events.length===0?m.jsx("div",{className:"text-muted-foreground text-sm",children:"No events recorded yet"}):n.events.map((p,g)=>{const x=rhe[p.type]||nl,_=g===n.events.length-1;return m.jsx("div",{children:m.jsxs("div",{className:"flex gap-4",children:[m.jsxs("div",{className:"flex flex-col items-center",children:[m.jsx("div",{className:`rounded-full border-2 border-background bg-muted p-2 ${ahe[p.type]}`,children:m.jsx(x,{className:"h-4 w-4"})}),!_&&m.jsx("div",{className:"my-1 w-px flex-1 bg-border"})]}),m.jsxs("div",{className:"flex-1 pb-6",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("div",{className:"font-medium capitalize",children:p.type.replace("_"," ")}),m.jsx("div",{className:"text-muted-foreground text-sm",children:f(p.timestamp)})]}),m.jsx("div",{className:"text-muted-foreground text-sm",children:d(p.timestamp)}),p.metadata&&Object.keys(p.metadata).length>0&&m.jsx("div",{className:"mt-2 rounded-md border bg-muted/50 p-2 font-mono text-xs",children:m.jsx("pre",{className:"overflow-x-auto",children:JSON.stringify(p.metadata,null,2)})})]})]})},`${p.type}-${p.timestamp}`)})})})]})]}):m.jsxs("div",{className:"space-y-4",children:[m.jsxs(bt,{onClick:()=>t("/sms"),size:"sm",variant:"ghost",children:[m.jsx(Ys,{className:"mr-2 h-4 w-4"}),"Back to messages"]}),m.jsx("div",{className:"rounded-md border p-4 text-muted-foreground text-sm",children:"SMS message not found"})]})}const jw={delivered:{variant:"default",description:"Message was delivered to recipient's device",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:"Message was sent but delivery not yet confirmed",className:"bg-blue-500/10 text-blue-700 dark:text-blue-400 hover:bg-blue-500/20 border-blue-500/20"},queued:{variant:"secondary",description:"Message is queued for delivery",className:"bg-gray-500/10 text-gray-700 dark:text-gray-400 hover:bg-gray-500/20 border-gray-500/20"},failed:{variant:"destructive",description:"Message failed to deliver",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"},blocked:{variant:"destructive",description:"Message was blocked by carrier or filter",className:"bg-orange-500/10 text-orange-700 dark:text-orange-400 hover:bg-orange-500/20 border-orange-500/20"},invalid:{variant:"destructive",description:"Invalid phone number or message format",className:"bg-red-500/10 text-red-700 dark:text-red-400 hover:bg-red-500/20 border-red-500/20"},opted_out:{variant:"default",description:"Recipient has opted out of receiving messages",className:"bg-yellow-500/10 text-yellow-700 dark:text-yellow-400 hover:bg-yellow-500/20 border-yellow-500/20"}};function she(){const e=Io(),[t,n]=O.useState(""),[r,i]=O.useState("15"),[s,l]=O.useState("all"),[c,f]=O.useState([]),[d,v]=O.useState(!0),[p,g]=O.useState(null);O.useEffect(()=>{async function w(){try{v(!0),g(null);let j=sessionStorage.getItem("wraps-auth-token");if(j||(j=new URLSearchParams(window.location.search).get("token"),j&&sessionStorage.setItem("wraps-auth-token",j)),!j)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const A=Number.parseInt(r,10),E=Date.now()-A*24*60*60*1e3,N=Date.now(),T=await fetch(`/api/sms?startTime=${E}&endTime=${N}&limit=100&token=${j}`);if(!T.ok){let R="Failed to fetch SMS logs";try{R=(await T.json()).error||R}catch{R=`${T.status}: ${T.statusText}`}throw new Error(R)}const M=await T.json();f(M.logs.map(R=>({id:R.messageId,to:R.to,from:R.from,body:R.body,status:R.status,timestamp:R.sentAt,messageId:R.messageId,segments:R.segments})))}catch(j){const A=j instanceof Error?j.message:"Unknown error";g(A),console.error("Error fetching SMS logs:",j)}finally{v(!1)}}w()},[r]);const x=c.filter(w=>{if(t){const j=t.toLowerCase(),A=w.to.toLowerCase().includes(j),E=w.body.toLowerCase().includes(j);if(!(A||E))return!1}return!(s!=="all"&&w.status!==s)}),_=w=>{const j=new Date(w),E=Math.floor((new Date().getTime()-j.getTime())/(1e3*60*60*24));return E===0?"Today":E===1?"Yesterday":E<7?`${E} days ago`:j.toLocaleDateString()},S=w=>w.startsWith("+1")&&w.length===12?`(${w.slice(2,5)}) ${w.slice(5,8)}-${w.slice(8)}`:w;return m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsxs(et,{className:"flex items-center gap-2",children:[m.jsx(ki,{className:"h-5 w-5"}),"SMS Messages"]}),m.jsx(st,{children:"View and manage your SMS sending history"})]}),m.jsxs(We,{children:[p&&m.jsx("div",{className:"mb-4 rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:p}),m.jsxs("div",{className:"mb-4 flex items-center gap-2",children:[m.jsxs("div",{className:"relative flex-1",children:[m.jsx(Gk,{className:"absolute top-2.5 left-2.5 h-4 w-4 text-muted-foreground"}),m.jsx(gf,{className:"pl-8",onChange:w=>n(w.target.value),placeholder:"Search by phone or message...",value:t})]}),m.jsxs(ol,{onValueChange:i,value:r,children:[m.jsx(ll,{className:"w-[180px]",children:m.jsx(sl,{})}),m.jsxs(ul,{children:[m.jsx(Ge,{value:"1",children:"Last 24 hours"}),m.jsx(Ge,{value:"7",children:"Last 7 days"}),m.jsx(Ge,{value:"15",children:"Last 15 days"}),m.jsx(Ge,{value:"30",children:"Last 30 days"}),m.jsx(Ge,{value:"90",children:"Last 90 days"})]})]}),m.jsxs(ol,{onValueChange:l,value:s,children:[m.jsx(ll,{className:"w-[180px]",children:m.jsx(sl,{})}),m.jsxs(ul,{children:[m.jsx(Ge,{value:"all",children:"All Statuses"}),m.jsx(Ge,{value:"delivered",children:"Delivered"}),m.jsx(Ge,{value:"sent",children:"Sent"}),m.jsx(Ge,{value:"queued",children:"Queued"}),m.jsx(Ge,{value:"failed",children:"Failed"}),m.jsx(Ge,{value:"blocked",children:"Blocked"}),m.jsx(Ge,{value:"opted_out",children:"Opted Out"})]})]}),m.jsx(bt,{size:"icon",variant:"outline",children:m.jsx("span",{className:"sr-only",children:"Download"})})]}),m.jsx("div",{className:"rounded-md border",children:m.jsxs(a4,{children:[m.jsx(i4,{children:m.jsxs(Mi,{children:[m.jsx(ra,{children:"To"}),m.jsx(ra,{children:"Status"}),m.jsx(ra,{children:"Message"}),m.jsx(ra,{children:"Sent"}),m.jsx(ra,{className:"w-[50px]"})]})}),m.jsx(o4,{children:d?m.jsx(Mi,{children:m.jsx(Pn,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"Loading SMS logs..."})}):x.length===0?m.jsx(Mi,{children:m.jsx(Pn,{className:"h-24 text-center text-muted-foreground",colSpan:5,children:"No SMS messages found"})}):x.map(w=>{var j,A,E;return m.jsxs(Mi,{className:"cursor-pointer hover:bg-muted/50",onClick:()=>e(`/sms/${w.id}`),children:[m.jsx(Pn,{className:"font-mono text-sm",children:S(w.to)}),m.jsx(Pn,{children:m.jsxs(fO,{children:[m.jsx(dO,{asChild:!0,children:m.jsx(Je,{className:(j=jw[w.status])==null?void 0:j.className,variant:((A=jw[w.status])==null?void 0:A.variant)??"default",children:w.status.charAt(0).toUpperCase()+w.status.slice(1).replace("_"," ")})}),m.jsx(hO,{children:m.jsx("p",{children:((E=jw[w.status])==null?void 0:E.description)??"Unknown status"})})]})}),m.jsx(Pn,{className:"max-w-[400px] truncate",children:w.body}),m.jsx(Pn,{className:"text-muted-foreground",children:_(w.timestamp)}),m.jsx(Pn,{children:m.jsx(bt,{onClick:N=>{N.stopPropagation()},size:"icon",variant:"ghost",children:m.jsx("span",{className:"sr-only",children:"More options"})})})]},w.id)})})]})}),x.length>0&&!d&&m.jsx("div",{className:"mt-4 flex items-center justify-between text-muted-foreground text-sm",children:m.jsxs("div",{children:["Showing ",x.length," of ",c.length," messages"]})})]})]})}function lhe(){const[e,t]=O.useState("7"),[n,r]=O.useState(null),[i,s]=O.useState(!0),[l,c]=O.useState(null);if(O.useEffect(()=>{async function S(){try{s(!0),c(null);let w=sessionStorage.getItem("wraps-auth-token");if(w||(w=new URLSearchParams(window.location.search).get("token"),w&&sessionStorage.setItem("wraps-auth-token",w)),!w)throw new Error("Authentication token not found. Please use the URL provided by 'wraps console' command.");const j=Number.parseInt(e,10),A=Date.now()-j*24*60*60*1e3,E=Date.now(),N=await fetch(`/api/sms/metrics?startTime=${A}&endTime=${E}&token=${w}`);if(!N.ok){let M="Failed to fetch SMS metrics";try{M=(await N.json()).error||M}catch{M=`${N.status}: ${N.statusText}`}throw new Error(M)}const T=await N.json();r(T)}catch(w){const j=w instanceof Error?w.message:"Unknown error";c(j),console.error("Error fetching SMS metrics:",w)}finally{s(!1)}}S()},[e]),l)return m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Metrics"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your SMS messaging"})]}),m.jsx("div",{className:"mt-4 rounded-md border border-destructive bg-destructive/10 p-4 text-destructive text-sm",children:l})]});if(i||!n)return m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Metrics"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your SMS messaging"})]}),m.jsx("div",{className:"mt-4 flex h-[400px] items-center justify-center text-muted-foreground",children:"Loading metrics..."})]});const f=n.metrics.sends.reduce((S,w)=>S+w.value,0)||0,d=n.metrics.deliveries.reduce((S,w)=>S+w.value,0)||0,v=n.metrics.failures.reduce((S,w)=>S+w.value,0)||0,p=n.metrics.optOuts.reduce((S,w)=>S+w.value,0)||0,g=f>0?d/f*100:0,x=f>0?v/f*100:0,_=[{title:"Messages Sent",value:f.toLocaleString(),description:`${e==="1"?"Last 24 hours":`Last ${e} days`}`,icon:ki},{title:"Delivery Rate",value:`${g.toFixed(1)}%`,description:`${d.toLocaleString()} delivered`,icon:Vk},{title:"Failure Rate",value:`${x.toFixed(1)}%`,description:`${v.toLocaleString()} failed`,icon:Im},{title:"Opt Outs",value:p.toLocaleString(),description:"Recipients unsubscribed",icon:wh}];return m.jsxs(m.Fragment,{children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Metrics"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"View detailed metrics and analytics for your SMS messaging"})]}),m.jsxs(ol,{onValueChange:t,value:e,children:[m.jsx(ll,{className:"w-[180px]",children:m.jsx(sl,{})}),m.jsxs(ul,{children:[m.jsx(Ge,{value:"1",children:"Last 24 hours"}),m.jsx(Ge,{value:"7",children:"Last 7 days"}),m.jsx(Ge,{value:"15",children:"Last 15 days"}),m.jsx(Ge,{value:"30",children:"Last 30 days"}),m.jsx(Ge,{value:"90",children:"Last 90 days"})]})]})]}),m.jsx("div",{className:"grid gap-4 md:grid-cols-2 lg:grid-cols-4",children:_.map(S=>m.jsxs(ze,{children:[m.jsxs(Be,{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:[m.jsx(et,{className:"font-medium text-sm",children:S.title}),m.jsx(S.icon,{className:"h-4 w-4 text-muted-foreground"})]}),m.jsxs(We,{children:[m.jsx("div",{className:"font-bold text-2xl",children:S.value}),m.jsx("p",{className:"text-muted-foreground text-xs",children:S.description})]})]},S.title))}),n.phoneNumber&&m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Phone Number"}),m.jsx(st,{children:"Your SMS sending number"})]}),m.jsxs(We,{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Number"}),m.jsx("span",{className:"font-mono text-sm",children:n.phoneNumber.number})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Type"}),m.jsx(Je,{variant:"outline",children:n.phoneNumber.type})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Status"}),m.jsx(Je,{variant:n.phoneNumber.status==="ACTIVE"?"default":"secondary",children:n.phoneNumber.status})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Throughput"}),m.jsx("span",{className:"text-muted-foreground text-sm",children:n.phoneNumber.throughput})]})]})]}),n.quota&&m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Spend Limits"}),m.jsx(st,{children:"Your AWS SMS spending limits"})]}),m.jsxs(We,{className:"space-y-4",children:[m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Monthly Spend"}),m.jsxs("span",{className:"font-medium",children:["$",n.quota.spentThisMonth.toFixed(2)," / $",n.quota.spendLimitMonthly.toFixed(2)]})]}),m.jsx("div",{className:"h-2 w-full overflow-hidden rounded-full bg-secondary",children:m.jsx("div",{className:"h-full bg-primary transition-all",style:{width:`${Math.min(n.quota.spentThisMonth/n.quota.spendLimitMonthly*100,100)}%`}})})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Daily Limit"}),m.jsxs("span",{className:"text-muted-foreground text-sm",children:["$",n.quota.spendLimitDaily.toFixed(2)]})]})]})]}),m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Metrics Summary"}),m.jsx(st,{children:"Detailed breakdown of your SMS performance"})]}),m.jsxs(We,{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Total Messages Sent"}),m.jsx(Je,{variant:"outline",children:f.toLocaleString()})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Successfully Delivered"}),m.jsx(Je,{variant:"default",children:d.toLocaleString()})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Failed"}),m.jsx(Je,{variant:"destructive",children:v.toLocaleString()})]}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsx("span",{className:"text-sm",children:"Opt Outs"}),m.jsx(Je,{variant:"secondary",children:p.toLocaleString()})]})]})]})]})}function _k({status:e}){const t=e==="ACTIVE"||e==="SUCCESS";return m.jsxs(Je,{className:t?"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400":"border-yellow-500/20 bg-yellow-500/10 text-yellow-700 dark:text-yellow-400",variant:"outline",children:[t?m.jsx(Ll,{className:"mr-1 h-3 w-3"}):m.jsx(tl,{className:"mr-1 h-3 w-3"}),e]})}function uhe({phoneNumber:e}){if(!e)return m.jsx(ze,{children:m.jsxs(Be,{children:[m.jsxs(et,{className:"flex items-center gap-2",children:[m.jsx(wh,{className:"h-5 w-5"}),"Phone Number"]}),m.jsx(st,{children:"No phone number configured"})]})});const t=r=>r.startsWith("+1")&&r.length===12?`(${r.slice(2,5)}) ${r.slice(5,8)}-${r.slice(8)}`:r,n=r=>{switch(r){case"simulator":return"Simulator";case"toll-free":return"Toll-Free";case"10dlc":return"10DLC";case"short-code":return"Short Code";default:return r}};return m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsxs(et,{className:"flex items-center gap-2",children:[m.jsx(wh,{className:"h-5 w-5"}),"Phone Number"]}),m.jsx(st,{children:"Your SMS sending number"})]}),m.jsxs(We,{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium font-mono text-lg",children:t(e.number)}),m.jsx("p",{className:"text-muted-foreground text-sm",children:n(e.type)})]}),m.jsx(_k,{status:e.status})]}),e.registrationStatus&&m.jsxs(m.Fragment,{children:[m.jsx(Qn,{}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium text-sm",children:"Registration Status"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:e.type==="toll-free"?"Toll-free verification":"Campaign registration"})]}),m.jsx(_k,{status:e.registrationStatus})]})]}),e.capabilities.length>0&&m.jsxs(m.Fragment,{children:[m.jsx(Qn,{}),m.jsxs("div",{className:"space-y-2",children:[m.jsx("p",{className:"font-medium text-sm",children:"Capabilities"}),m.jsx("div",{className:"flex flex-wrap gap-2",children:e.capabilities.map(r=>m.jsx(Je,{variant:"secondary",children:r},r))})]})]}),e.monthlyLeasingPrice&&m.jsxs(m.Fragment,{children:[m.jsx(Qn,{}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium text-sm",children:"Monthly Cost"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"Phone number lease"})]}),m.jsxs("span",{className:"font-mono text-sm",children:["$",e.monthlyLeasingPrice,"/mo"]})]})]}),e.type==="simulator"&&m.jsxs(Jr,{children:[m.jsx(tl,{className:"h-4 w-4"}),m.jsx(Ph,{children:"Simulator Mode"}),m.jsx(ea,{children:"This number is for testing only. Messages are simulated and not actually sent. Upgrade to a toll-free number for production use."})]}),e.type==="toll-free"&&e.registrationStatus!=="VERIFIED"&&m.jsxs(Jr,{children:[m.jsx(tl,{className:"h-4 w-4"}),m.jsx(Ph,{children:"Registration Required"}),m.jsxs(ea,{children:["Toll-free numbers require registration before they can send messages. Run ",m.jsx("code",{children:"wraps sms register"})," to complete registration."]})]})]})]})}function che({protectConfig:e}){return e!=null&&e.enabled?m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsxs(et,{className:"flex items-center gap-2",children:[m.jsx(kT,{className:"h-5 w-5"}),"Fraud Protection"]}),m.jsx(st,{children:"Country restrictions and AIT filtering"})]}),m.jsxs(We,{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium text-sm",children:"Status"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"Protect configuration active"})]}),m.jsxs(Je,{className:"border-green-500/20 bg-green-500/10 text-green-700 dark:text-green-400",variant:"outline",children:[m.jsx(Ll,{className:"mr-1 h-3 w-3"}),"Enabled"]})]}),m.jsx(Qn,{}),m.jsxs("div",{className:"space-y-2",children:[m.jsxs("div",{className:"flex items-center gap-2",children:[m.jsx(Hk,{className:"h-4 w-4 text-muted-foreground"}),m.jsx("p",{className:"font-medium text-sm",children:"Allowed Countries"})]}),m.jsx("div",{className:"flex flex-wrap gap-2",children:e.allowedCountries.map(t=>m.jsx(Je,{variant:"secondary",children:t},t))}),m.jsx("p",{className:"text-muted-foreground text-xs",children:"Messages can only be sent to these countries. All others are blocked."})]}),m.jsx(Qn,{}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium text-sm",children:"AIT Filtering"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:e.aitFiltering?"Enabled - adds per-message cost":"Disabled - no extra cost"})]}),m.jsx(Je,{variant:e.aitFiltering?"default":"secondary",children:e.aitFiltering?"Enabled":"Disabled"})]})]})]}):m.jsx(ze,{children:m.jsxs(Be,{children:[m.jsxs(et,{className:"flex items-center gap-2",children:[m.jsx(kT,{className:"h-5 w-5"}),"Fraud Protection"]}),m.jsx(st,{children:"Not configured"})]})})}function fhe({configSet:e,onRefresh:t}){const[n,r]=O.useState(!1),[i,s]=O.useState(!1);if(!e)return m.jsx(ze,{children:m.jsxs(Be,{children:[m.jsxs(et,{className:"flex items-center gap-2",children:[m.jsx(ki,{className:"h-5 w-5"}),"Configuration Set"]}),m.jsx(st,{children:"No configuration set found"})]})});const l=async()=>{s(!0);try{const c=sessionStorage.getItem("wraps-auth-token"),f=!e.sendingEnabled,d=await fetch(`/api/sms/settings/sending?token=${c}`,{method:"PUT",headers:{"Content-Type":"application/json"},body:JSON.stringify({enabled:f})});if(!d.ok)throw new Error(`Failed to update: ${d.statusText}`);r(!1),yn.success(f?"SMS sending enabled":"SMS sending disabled"),t&&await t()}catch(c){console.error("Failed to toggle sending:",c),yn.error("Failed to update setting",{description:c instanceof Error?c.message:"Unknown error"})}finally{s(!1)}};return m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsxs(et,{className:"flex items-center gap-2",children:[m.jsx(ki,{className:"h-5 w-5"}),"Configuration Set"]}),m.jsx(st,{children:"SMS sending configuration"})]}),m.jsxs(We,{className:"space-y-4",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium",children:e.name}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"Configuration Set Name"})]}),m.jsx(Qn,{}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{className:"flex-1 space-y-0.5",children:[m.jsx("p",{className:"font-medium text-sm",children:"SMS Sending"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:e.sendingEnabled?"Messages can be sent":"Message sending is disabled"})]}),m.jsx(bt,{onClick:()=>r(!0),size:"sm",variant:e.sendingEnabled?"destructive":"default",children:e.sendingEnabled?"Disable":"Enable"})]}),m.jsx(dS,{onOpenChange:r,open:n,children:m.jsxs(hS,{children:[m.jsxs(mS,{children:[m.jsx(vS,{children:e.sendingEnabled?"Disable SMS sending?":"Enable SMS sending?"}),m.jsx(gS,{children:e.sendingEnabled?"All outgoing SMS messages will be blocked until you re-enable sending.":"This will allow SMS messages to be sent through this configuration set."})]}),m.jsxs(pS,{children:[m.jsx(bS,{disabled:i,children:"Cancel"}),m.jsx(yS,{disabled:i,onClick:l,children:i?"Updating...":e.sendingEnabled?"Disable sending":"Enable sending"})]})]})})]})]})}function dhe({eventTracking:e}){return m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(et,{children:"Event Tracking"}),m.jsx(st,{children:"Message history and event storage"})]}),m.jsxs(We,{className:"space-y-4",children:[m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium text-sm",children:"Event Tracking"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:e!=null&&e.enabled?"Tracking delivery events":"Event tracking disabled"})]}),m.jsx(Je,{variant:e!=null&&e.enabled?"default":"secondary",children:e!=null&&e.enabled?"Enabled":"Disabled"})]}),(e==null?void 0:e.enabled)&&m.jsxs(m.Fragment,{children:[m.jsx(Qn,{}),m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium text-sm",children:"Message History"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:e.dynamoDBHistory?"Stored in DynamoDB":"Not stored"})]}),m.jsx(Je,{variant:e.dynamoDBHistory?"default":"secondary",children:e.dynamoDBHistory?"Enabled":"Disabled"})]}),e.archiveRetention&&m.jsxs("div",{className:"flex items-center justify-between",children:[m.jsxs("div",{children:[m.jsx("p",{className:"font-medium text-sm",children:"Retention Period"}),m.jsx("p",{className:"text-muted-foreground text-sm",children:"How long message history is kept"})]}),m.jsx(Je,{variant:"outline",children:e.archiveRetention})]})]})]})]})}function hhe(){const[e,t]=O.useState(null),[n,r]=O.useState(!0),[i,s]=O.useState(null),l=O.useCallback(async()=>{try{r(!0);const c=sessionStorage.getItem("wraps-auth-token");if(!c)throw new Error("Authentication token not found");const f=await fetch(`/api/sms/settings?token=${c}`);if(!f.ok)throw new Error(`Failed to fetch settings: ${f.statusText}`);const d=await f.json();t(d),s(null)}catch(c){console.error("Failed to fetch SMS settings:",c),s(c instanceof Error?c.message:"Failed to load settings")}finally{r(!1)}},[]);return O.useEffect(()=>{l()},[l]),n?m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Settings"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your SMS settings and preferences"})]}),m.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(pt,{className:"h-6 w-48"}),m.jsx(pt,{className:"mt-2 h-4 w-64"})]}),m.jsx(We,{children:m.jsx(pt,{className:"h-20 w-full"})})]}),m.jsxs(ze,{children:[m.jsxs(Be,{children:[m.jsx(pt,{className:"h-6 w-48"}),m.jsx(pt,{className:"mt-2 h-4 w-64"})]}),m.jsx(We,{children:m.jsx(pt,{className:"h-20 w-full"})})]})]})]}):i?m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Settings"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your SMS settings and preferences"})]}),m.jsxs(Jr,{className:"mt-6",variant:"destructive",children:[m.jsx(tl,{className:"h-4 w-4"}),m.jsx(Ph,{children:"Error Loading Settings"}),m.jsx(ea,{children:i})]})]}):m.jsxs(m.Fragment,{children:[m.jsxs("div",{children:[m.jsx("h1",{className:"font-semibold text-3xl tracking-tight",children:"SMS Settings"}),m.jsx("p",{className:"mt-2 text-muted-foreground",children:"Configure your SMS settings and preferences"})]}),m.jsxs("div",{className:"mt-6 grid gap-6 md:grid-cols-2",children:[m.jsx(uhe,{phoneNumber:e==null?void 0:e.phoneNumber}),m.jsx(fhe,{configSet:e==null?void 0:e.configurationSet,onRefresh:l}),m.jsx(che,{protectConfig:e==null?void 0:e.protectConfiguration}),m.jsx(dhe,{eventTracking:e==null?void 0:e.eventTracking})]})]})}function mhe({children:e,defaultTheme:t="system",storageKey:n="vite-ui-theme",...r}){const[i,s]=O.useState(()=>localStorage.getItem(n)||t);O.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 l={theme:i,setTheme:c=>{localStorage.setItem(n,c),s(c)}};return m.jsx(yI.Provider,{...r,value:l,children:e})}function phe({...e}){return m.jsx("nav",{"aria-label":"breadcrumb","data-slot":"breadcrumb",...e})}function vhe({className:e,...t}){return m.jsx("ol",{className:pe("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 ghe({className:e,...t}){return m.jsx("li",{className:pe("inline-flex items-center gap-1.5",e),"data-slot":"breadcrumb-item",...t})}function yhe({className:e,...t}){return m.jsx("span",{"aria-current":"page","aria-disabled":"true",className:pe("font-normal text-foreground",e),"data-slot":"breadcrumb-page",role:"link",...t})}var bhe=(e,t,n,r,i,s,l,c)=>{let f=document.documentElement,d=["light","dark"];function v(x){(Array.isArray(e)?e:[e]).forEach(_=>{let S=_==="class",w=S&&s?i.map(j=>s[j]||j):i;S?(f.classList.remove(...w),f.classList.add(s&&s[x]?s[x]:x)):f.setAttribute(_,x)}),p(x)}function p(x){c&&d.includes(x)&&(f.style.colorScheme=x)}function g(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(r)v(r);else try{let x=localStorage.getItem(t)||n,_=l&&x==="system"?g():x;v(_)}catch{}},xhe=O.createContext(void 0),whe={setTheme:e=>{},themes:[]},She=()=>{var e;return(e=O.useContext(xhe))!=null?e:whe};O.memo(({forcedTheme:e,storageKey:t,attribute:n,enableSystem:r,enableColorScheme:i,defaultTheme:s,value:l,themes:c,nonce:f,scriptProps:d})=>{let v=JSON.stringify([n,t,s,e,c,l,r,i]).slice(1,-1);return O.createElement("script",{...d,suppressHydrationWarning:!0,nonce:typeof window>"u"?f:"",dangerouslySetInnerHTML:{__html:`(${bhe.toString()})(${v})`}})});const Ohe=({...e})=>{const{theme:t="system"}=She();return m.jsx(hde,{className:"toaster group",icons:{success:m.jsx(Ll,{className:"size-4"}),info:m.jsx(B8,{className:"size-4"}),warning:m.jsx(V8,{className:"size-4"}),error:m.jsx(H8,{className:"size-4"}),loading:m.jsx(q8,{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 _he(){const e=da(),[t,n]=O.useState(!1);O.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)},[]),O.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";if(e.pathname.startsWith("/sms/")&&e.pathname!=="/sms/metrics"&&e.pathname!=="/sms/settings")return"SMS Details";switch(e.pathname){case"/":case"/email":return"Emails";case"/email/metrics":return"Email Metrics";case"/email/settings":return"Email Settings";case"/sms":return"SMS Messages";case"/sms/metrics":return"SMS Metrics";case"/sms/settings":return"SMS Settings";default:return"Emails"}};return m.jsxs(hI,{defaultOpen:!1,children:[m.jsx(AV,{}),m.jsxs(pI,{children:[m.jsxs("header",{className:"sticky top-0 flex shrink-0 items-center gap-2 border-b bg-background p-4",children:[m.jsx(mI,{className:"-ml-1"}),m.jsx(Qn,{className:"mr-2 data-[orientation=vertical]:h-4",orientation:"vertical"}),m.jsx(phe,{children:m.jsx(vhe,{children:m.jsx(ghe,{children:m.jsx(yhe,{children:r()})})})})]}),m.jsx("div",{className:"flex flex-1 flex-col gap-6 p-6",children:t?m.jsxs(J6,{children:[m.jsx(Qr,{element:m.jsx(Q6,{replace:!0,to:"/email"}),path:"/"}),m.jsx(Qr,{element:m.jsx(jY,{}),path:"/email"}),m.jsx(Qr,{element:m.jsx(BV,{}),path:"/email/:id"}),m.jsx(Qr,{element:m.jsx(Bfe,{}),path:"/email/metrics"}),m.jsx(Qr,{element:m.jsx(nhe,{}),path:"/email/settings"}),m.jsx(Qr,{element:m.jsx(she,{}),path:"/sms"}),m.jsx(Qr,{element:m.jsx(ohe,{}),path:"/sms/:id"}),m.jsx(Qr,{element:m.jsx(lhe,{}),path:"/sms/metrics"}),m.jsx(Qr,{element:m.jsx(hhe,{}),path:"/sms/settings"})]}):m.jsx("div",{className:"flex items-center justify-center p-8",children:m.jsx("div",{className:"text-muted-foreground",children:"Loading..."})})})]})]})}function jhe(){return m.jsx(mhe,{defaultTheme:"system",storageKey:"console-ui-theme",children:m.jsxs(S8,{children:[m.jsx(_he,{}),m.jsx(Ohe,{})]})})}l6.createRoot(document.getElementById("root")).render(m.jsx(O.StrictMode,{children:m.jsx(jhe,{})}));
|