Files
shlink-web-client/dependabot/docker/node-24.10-alpine/assets/index-DIob4pa1.js

807 lines
1.4 MiB
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
function Nz(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 o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{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 o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();function Li(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Y1={exports:{}},Vd={};/**
* @license React
* react-jsx-runtime.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var _A;function Lz(){if(_A)return Vd;_A=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,o){var s=null;if(o!==void 0&&(s=""+o),i.key!==void 0&&(s=""+i.key),"key"in i){o={};for(var u in i)u!=="key"&&(o[u]=i[u])}else o=i;return i=o.ref,{$$typeof:e,type:r,key:s,ref:i!==void 0?i:null,props:o}}return Vd.Fragment=t,Vd.jsx=n,Vd.jsxs=n,Vd}var xA;function Dz(){return xA||(xA=1,Y1.exports=Lz()),Y1.exports}var y=Dz(),W1={exports:{}},Hd={},K1={exports:{}},Z1={};/**
* @license React
* scheduler.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var wA;function kz(){return wA||(wA=1,function(e){function t(Z,I){var k=Z.length;Z.push(I);e:for(;0<k;){var z=k-1>>>1,F=Z[z];if(0<i(F,I))Z[z]=I,Z[k]=F,k=z;else break e}}function n(Z){return Z.length===0?null:Z[0]}function r(Z){if(Z.length===0)return null;var I=Z[0],k=Z.pop();if(k!==I){Z[0]=k;e:for(var z=0,F=Z.length,P=F>>>1;z<P;){var G=2*(z+1)-1,Y=Z[G],te=G+1,ue=Z[te];if(0>i(Y,k))te<F&&0>i(ue,Y)?(Z[z]=ue,Z[te]=k,z=te):(Z[z]=Y,Z[G]=k,z=G);else if(te<F&&0>i(ue,k))Z[z]=ue,Z[te]=k,z=te;else break e}}return I}function i(Z,I){var k=Z.sortIndex-I.sortIndex;return k!==0?k:Z.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var d=[],f=[],m=1,p=null,b=3,_=!1,w=!1,x=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,j=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function N(Z){for(var I=n(f);I!==null;){if(I.callback===null)r(f);else if(I.startTime<=Z)r(f),I.sortIndex=I.expirationTime,t(d,I);else break;I=n(f)}}function U(Z){if(x=!1,N(Z),!w)if(n(d)!==null)w=!0,$||($=!0,ne());else{var I=n(f);I!==null&&se(U,I.startTime-Z)}}var $=!1,K=-1,X=5,oe=-1;function ee(){return C?!0:!(e.unstable_now()-oe<X)}function J(){if(C=!1,$){var Z=e.unstable_now();oe=Z;var I=!0;try{e:{w=!1,x&&(x=!1,j(K),K=-1),_=!0;var k=b;try{t:{for(N(Z),p=n(d);p!==null&&!(p.expirationTime>Z&&ee());){var z=p.callback;if(typeof z=="function"){p.callback=null,b=p.priorityLevel;var F=z(p.expirationTime<=Z);if(Z=e.unstable_now(),typeof F=="function"){p.callback=F,N(Z),I=!0;break t}p===n(d)&&r(d),N(Z)}else r(d);p=n(d)}if(p!==null)I=!0;else{var P=n(f);P!==null&&se(U,P.startTime-Z),I=!1}}break e}finally{p=null,b=k,_=!1}I=void 0}}finally{I?ne():$=!1}}}var ne;if(typeof O=="function")ne=function(){O(J)};else if(typeof MessageChannel<"u"){var he=new MessageChannel,Q=he.port2;he.port1.onmessage=J,ne=function(){Q.postMessage(null)}}else ne=function(){E(J,0)};function se(Z,I){K=E(function(){Z(e.unstable_now())},I)}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(Z){Z.callback=null},e.unstable_forceFrameRate=function(Z){0>Z||125<Z?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<Z?Math.floor(1e3/Z):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(Z){switch(b){case 1:case 2:case 3:var I=3;break;default:I=b}var k=b;b=I;try{return Z()}finally{b=k}},e.unstable_requestPaint=function(){C=!0},e.unstable_runWithPriority=function(Z,I){switch(Z){case 1:case 2:case 3:case 4:case 5:break;default:Z=3}var k=b;b=Z;try{return I()}finally{b=k}},e.unstable_scheduleCallback=function(Z,I,k){var z=e.unstable_now();switch(typeof k=="object"&&k!==null?(k=k.delay,k=typeof k=="number"&&0<k?z+k:z):k=z,Z){case 1:var F=-1;break;case 2:F=250;break;case 5:F=1073741823;break;case 4:F=1e4;break;default:F=5e3}return F=k+F,Z={id:m++,callback:I,priorityLevel:Z,startTime:k,expirationTime:F,sortIndex:-1},k>z?(Z.sortIndex=k,t(f,Z),n(d)===null&&Z===n(f)&&(x?(j(K),K=-1):x=!0,se(U,k-z))):(Z.sortIndex=F,t(d,Z),w||_||(w=!0,$||($=!0,ne()))),Z},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(Z){var I=b;return function(){var k=b;b=I;try{return Z.apply(this,arguments)}finally{b=k}}}}(Z1)),Z1}var SA;function Iz(){return SA||(SA=1,K1.exports=kz()),K1.exports}var X1={exports:{}},mt={};/**
* @license React
* react.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var CA;function Uz(){if(CA)return mt;CA=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"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),b=Symbol.iterator;function _(P){return P===null||typeof P!="object"?null:(P=b&&P[b]||P["@@iterator"],typeof P=="function"?P:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,C={};function E(P,G,Y){this.props=P,this.context=G,this.refs=C,this.updater=Y||w}E.prototype.isReactComponent={},E.prototype.setState=function(P,G){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,G,"setState")},E.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function j(){}j.prototype=E.prototype;function O(P,G,Y){this.props=P,this.context=G,this.refs=C,this.updater=Y||w}var N=O.prototype=new j;N.constructor=O,x(N,E.prototype),N.isPureReactComponent=!0;var U=Array.isArray;function $(){}var K={H:null,A:null,T:null,S:null},X=Object.prototype.hasOwnProperty;function oe(P,G,Y){var te=Y.ref;return{$$typeof:e,type:P,key:G,ref:te!==void 0?te:null,props:Y}}function ee(P,G){return oe(P.type,G,P.props)}function J(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function ne(P){var G={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(Y){return G[Y]})}var he=/\/+/g;function Q(P,G){return typeof P=="object"&&P!==null&&P.key!=null?ne(""+P.key):G.toString(36)}function se(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then($,$):(P.status="pending",P.then(function(G){P.status==="pending"&&(P.status="fulfilled",P.value=G)},function(G){P.status==="pending"&&(P.status="rejected",P.reason=G)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function Z(P,G,Y,te,ue){var fe=typeof P;(fe==="undefined"||fe==="boolean")&&(P=null);var ge=!1;if(P===null)ge=!0;else switch(fe){case"bigint":case"string":case"number":ge=!0;break;case"object":switch(P.$$typeof){case e:case t:ge=!0;break;case m:return ge=P._init,Z(ge(P._payload),G,Y,te,ue)}}if(ge)return ue=ue(P),ge=te===""?"."+Q(P,0):te,U(ue)?(Y="",ge!=null&&(Y=ge.replace(he,"$&/")+"/"),Z(ue,G,Y,"",function(W){return W})):ue!=null&&(J(ue)&&(ue=ee(ue,Y+(ue.key==null||P&&P.key===ue.key?"":(""+ue.key).replace(he,"$&/")+"/")+ge)),G.push(ue)),1;ge=0;var D=te===""?".":te+":";if(U(P))for(var B=0;B<P.length;B++)te=P[B],fe=D+Q(te,B),ge+=Z(te,G,Y,fe,ue);else if(B=_(P),typeof B=="function")for(P=B.call(P),B=0;!(te=P.next()).done;)te=te.value,fe=D+Q(te,B++),ge+=Z(te,G,Y,fe,ue);else if(fe==="object"){if(typeof P.then=="function")return Z(se(P),G,Y,te,ue);throw G=String(P),Error("Objects are not valid as a React child (found: "+(G==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":G)+"). If you meant to render a collection of children, use an array instead.")}return ge}function I(P,G,Y){if(P==null)return P;var te=[],ue=0;return Z(P,te,"","",function(fe){return G.call(Y,fe,ue++)}),te}function k(P){if(P._status===-1){var G=P._result;G=G(),G.then(function(Y){(P._status===0||P._status===-1)&&(P._status=1,P._result=Y)},function(Y){(P._status===0||P._status===-1)&&(P._status=2,P._result=Y)}),P._status===-1&&(P._status=0,P._result=G)}if(P._status===1)return P._result.default;throw P._result}var z=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var G=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(G))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},F={map:I,forEach:function(P,G,Y){I(P,function(){G.apply(this,arguments)},Y)},count:function(P){var G=0;return I(P,function(){G++}),G},toArray:function(P){return I(P,function(G){return G})||[]},only:function(P){if(!J(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return mt.Activity=p,mt.Children=F,mt.Component=E,mt.Fragment=n,mt.Profiler=i,mt.PureComponent=O,mt.StrictMode=r,mt.Suspense=d,mt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=K,mt.__COMPILER_RUNTIME={__proto__:null,c:function(P){return K.H.useMemoCache(P)}},mt.cache=function(P){return function(){return P.apply(null,arguments)}},mt.cacheSignal=function(){return null},mt.cloneElement=function(P,G,Y){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var te=x({},P.props),ue=P.key;if(G!=null)for(fe in G.key!==void 0&&(ue=""+G.key),G)!X.call(G,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&G.ref===void 0||(te[fe]=G[fe]);var fe=arguments.length-2;if(fe===1)te.children=Y;else if(1<fe){for(var ge=Array(fe),D=0;D<fe;D++)ge[D]=arguments[D+2];te.children=ge}return oe(P.type,ue,te)},mt.createContext=function(P){return P={$$typeof:s,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:o,_context:P},P},mt.createElement=function(P,G,Y){var te,ue={},fe=null;if(G!=null)for(te in G.key!==void 0&&(fe=""+G.key),G)X.call(G,te)&&te!=="key"&&te!=="__self"&&te!=="__source"&&(ue[te]=G[te]);var ge=arguments.length-2;if(ge===1)ue.children=Y;else if(1<ge){for(var D=Array(ge),B=0;B<ge;B++)D[B]=arguments[B+2];ue.children=D}if(P&&P.defaultProps)for(te in ge=P.defaultProps,ge)ue[te]===void 0&&(ue[te]=ge[te]);return oe(P,fe,ue)},mt.createRef=function(){return{current:null}},mt.forwardRef=function(P){return{$$typeof:u,render:P}},mt.isValidElement=J,mt.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:k}},mt.memo=function(P,G){return{$$typeof:f,type:P,compare:G===void 0?null:G}},mt.startTransition=function(P){var G=K.T,Y={};K.T=Y;try{var te=P(),ue=K.S;ue!==null&&ue(Y,te),typeof te=="object"&&te!==null&&typeof te.then=="function"&&te.then($,z)}catch(fe){z(fe)}finally{G!==null&&Y.types!==null&&(G.types=Y.types),K.T=G}},mt.unstable_useCacheRefresh=function(){return K.H.useCacheRefresh()},mt.use=function(P){return K.H.use(P)},mt.useActionState=function(P,G,Y){return K.H.useActionState(P,G,Y)},mt.useCallback=function(P,G){return K.H.useCallback(P,G)},mt.useContext=function(P){return K.H.useContext(P)},mt.useDebugValue=function(){},mt.useDeferredValue=function(P,G){return K.H.useDeferredValue(P,G)},mt.useEffect=function(P,G){return K.H.useEffect(P,G)},mt.useEffectEvent=function(P){return K.H.useEffectEvent(P)},mt.useId=function(){return K.H.useId()},mt.useImperativeHandle=function(P,G,Y){return K.H.useImperativeHandle(P,G,Y)},mt.useInsertionEffect=function(P,G){return K.H.useInsertionEffect(P,G)},mt.useLayoutEffect=function(P,G){return K.H.useLayoutEffect(P,G)},mt.useMemo=function(P,G){return K.H.useMemo(P,G)},mt.useOptimistic=function(P,G){return K.H.useOptimistic(P,G)},mt.useReducer=function(P,G,Y){return K.H.useReducer(P,G,Y)},mt.useRef=function(P){return K.H.useRef(P)},mt.useState=function(P){return K.H.useState(P)},mt.useSyncExternalStore=function(P,G,Y){return K.H.useSyncExternalStore(P,G,Y)},mt.useTransition=function(){return K.H.useTransition()},mt.version="19.2.0",mt}var EA;function yf(){return EA||(EA=1,X1.exports=Uz()),X1.exports}var Q1={exports:{}},Tr={};/**
* @license React
* react-dom.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var AA;function zz(){if(AA)return Tr;AA=1;var e=yf();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" 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 o(d,f,m){var p=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:p==null?null:""+p,children:d,containerInfo:f,implementation:m}}var s=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Tr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Tr.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return o(d,f,null,m)},Tr.flushSync=function(d){var f=s.T,m=r.p;try{if(s.T=null,r.p=2,d)return d()}finally{s.T=f,r.p=m,r.d.f()}},Tr.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,r.d.C(d,f))},Tr.prefetchDNS=function(d){typeof d=="string"&&r.d.D(d)},Tr.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin),b=typeof f.integrity=="string"?f.integrity:void 0,_=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?r.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:p,integrity:b,fetchPriority:_}):m==="script"&&r.d.X(d,{crossOrigin:p,integrity:b,fetchPriority:_,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Tr.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=u(f.as,f.crossOrigin);r.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&r.d.M(d)},Tr.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,p=u(m,f.crossOrigin);r.d.L(d,m,{crossOrigin:p,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Tr.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=u(f.as,f.crossOrigin);r.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else r.d.m(d)},Tr.requestFormReset=function(d){r.d.r(d)},Tr.unstable_batchedUpdates=function(d,f){return d(f)},Tr.useFormState=function(d,f,m){return s.H.useFormState(d,f,m)},Tr.useFormStatus=function(){return s.H.useHostTransitionStatus()},Tr.version="19.2.0",Tr}var TA;function x6(){if(TA)return Q1.exports;TA=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(),Q1.exports=zz(),Q1.exports}/**
* @license React
* react-dom-client.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var OA;function Bz(){if(OA)return Hd;OA=1;var e=Iz(),t=yf(),n=x6();function r(a){var l="https://react.dev/errors/"+a;if(1<arguments.length){l+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)l+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+a+"; visit "+l+" 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 o(a){var l=a,h=a;if(a.alternate)for(;l.return;)l=l.return;else{a=l;do l=a,(l.flags&4098)!==0&&(h=l.return),a=l.return;while(a)}return l.tag===3?h:null}function s(a){if(a.tag===13){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function u(a){if(a.tag===31){var l=a.memoizedState;if(l===null&&(a=a.alternate,a!==null&&(l=a.memoizedState)),l!==null)return l.dehydrated}return null}function d(a){if(o(a)!==a)throw Error(r(188))}function f(a){var l=a.alternate;if(!l){if(l=o(a),l===null)throw Error(r(188));return l!==a?null:a}for(var h=a,v=l;;){var T=h.return;if(T===null)break;var M=T.alternate;if(M===null){if(v=T.return,v!==null){h=v;continue}break}if(T.child===M.child){for(M=T.child;M;){if(M===h)return d(T),a;if(M===v)return d(T),l;M=M.sibling}throw Error(r(188))}if(h.return!==v.return)h=T,v=M;else{for(var q=!1,ie=T.child;ie;){if(ie===h){q=!0,h=T,v=M;break}if(ie===v){q=!0,v=T,h=M;break}ie=ie.sibling}if(!q){for(ie=M.child;ie;){if(ie===h){q=!0,h=M,v=T;break}if(ie===v){q=!0,v=M,h=T;break}ie=ie.sibling}if(!q)throw Error(r(189))}}if(h.alternate!==v)throw Error(r(190))}if(h.tag!==3)throw Error(r(188));return h.stateNode.current===h?a:l}function m(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a;for(a=a.child;a!==null;){if(l=m(a),l!==null)return l;a=a.sibling}return null}var p=Object.assign,b=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),C=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),j=Symbol.for("react.consumer"),O=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),X=Symbol.for("react.lazy"),oe=Symbol.for("react.activity"),ee=Symbol.for("react.memo_cache_sentinel"),J=Symbol.iterator;function ne(a){return a===null||typeof a!="object"?null:(a=J&&a[J]||a["@@iterator"],typeof a=="function"?a:null)}var he=Symbol.for("react.client.reference");function Q(a){if(a==null)return null;if(typeof a=="function")return a.$$typeof===he?null:a.displayName||a.name||null;if(typeof a=="string")return a;switch(a){case x:return"Fragment";case E:return"Profiler";case C:return"StrictMode";case U:return"Suspense";case $:return"SuspenseList";case oe:return"Activity"}if(typeof a=="object")switch(a.$$typeof){case w:return"Portal";case O:return a.displayName||"Context";case j:return(a._context.displayName||"Context")+".Consumer";case N:var l=a.render;return a=a.displayName,a||(a=l.displayName||l.name||"",a=a!==""?"ForwardRef("+a+")":"ForwardRef"),a;case K:return l=a.displayName||null,l!==null?l:Q(a.type)||"Memo";case X:l=a._payload,a=a._init;try{return Q(a(l))}catch{}}return null}var se=Array.isArray,Z=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k={pending:!1,data:null,method:null,action:null},z=[],F=-1;function P(a){return{current:a}}function G(a){0>F||(a.current=z[F],z[F]=null,F--)}function Y(a,l){F++,z[F]=a.current,a.current=l}var te=P(null),ue=P(null),fe=P(null),ge=P(null);function D(a,l){switch(Y(fe,l),Y(ue,a),Y(te,null),l.nodeType){case 9:case 11:a=(a=l.documentElement)&&(a=a.namespaceURI)?VE(a):0;break;default:if(a=l.tagName,l=l.namespaceURI)l=VE(l),a=HE(l,a);else switch(a){case"svg":a=1;break;case"math":a=2;break;default:a=0}}G(te),Y(te,a)}function B(){G(te),G(ue),G(fe)}function W(a){a.memoizedState!==null&&Y(ge,a);var l=te.current,h=HE(l,a.type);l!==h&&(Y(ue,a),Y(te,h))}function le(a){ue.current===a&&(G(te),G(ue)),ge.current===a&&(G(ge),zd._currentValue=k)}var H,ae;function ce(a){if(H===void 0)try{throw Error()}catch(h){var l=h.stack.trim().match(/\n( *(at )?)/);H=l&&l[1]||"",ae=-1<h.stack.indexOf(`
at`)?" (<anonymous>)":-1<h.stack.indexOf("@")?"@unknown:0:0":""}return`
`+H+a+ae}var ve=!1;function de(a,l){if(!a||ve)return"";ve=!0;var h=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var v={DetermineComponentFrameRoot:function(){try{if(l){var ze=function(){throw Error()};if(Object.defineProperty(ze.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ze,[])}catch(Ne){var Oe=Ne}Reflect.construct(a,[],ze)}else{try{ze.call()}catch(Ne){Oe=Ne}a.call(ze.prototype)}}else{try{throw Error()}catch(Ne){Oe=Ne}(ze=a())&&typeof ze.catch=="function"&&ze.catch(function(){})}}catch(Ne){if(Ne&&Oe&&typeof Ne.stack=="string")return[Ne.stack,Oe.stack]}return[null,null]}};v.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var T=Object.getOwnPropertyDescriptor(v.DetermineComponentFrameRoot,"name");T&&T.configurable&&Object.defineProperty(v.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var M=v.DetermineComponentFrameRoot(),q=M[0],ie=M[1];if(q&&ie){var pe=q.split(`
`),Ee=ie.split(`
`);for(T=v=0;v<pe.length&&!pe[v].includes("DetermineComponentFrameRoot");)v++;for(;T<Ee.length&&!Ee[T].includes("DetermineComponentFrameRoot");)T++;if(v===pe.length||T===Ee.length)for(v=pe.length-1,T=Ee.length-1;1<=v&&0<=T&&pe[v]!==Ee[T];)T--;for(;1<=v&&0<=T;v--,T--)if(pe[v]!==Ee[T]){if(v!==1||T!==1)do if(v--,T--,0>T||pe[v]!==Ee[T]){var ke=`
`+pe[v].replace(" at new "," at ");return a.displayName&&ke.includes("<anonymous>")&&(ke=ke.replace("<anonymous>",a.displayName)),ke}while(1<=v&&0<=T);break}}}finally{ve=!1,Error.prepareStackTrace=h}return(h=a?a.displayName||a.name:"")?ce(h):""}function we(a,l){switch(a.tag){case 26:case 27:case 5:return ce(a.type);case 16:return ce("Lazy");case 13:return a.child!==l&&l!==null?ce("Suspense Fallback"):ce("Suspense");case 19:return ce("SuspenseList");case 0:case 15:return de(a.type,!1);case 11:return de(a.type.render,!1);case 1:return de(a.type,!0);case 31:return ce("Activity");default:return""}}function Ae(a){try{var l="",h=null;do l+=we(a,h),h=a,a=a.return;while(a);return l}catch(v){return`
Error generating stack: `+v.message+`
`+v.stack}}var Le=Object.prototype.hasOwnProperty,Ve=e.unstable_scheduleCallback,Fe=e.unstable_cancelCallback,He=e.unstable_shouldYield,be=e.unstable_requestPaint,_e=e.unstable_now,De=e.unstable_getCurrentPriorityLevel,Re=e.unstable_ImmediatePriority,Me=e.unstable_UserBlockingPriority,$e=e.unstable_NormalPriority,Ge=e.unstable_LowPriority,Ze=e.unstable_IdlePriority,ut=e.log,it=e.unstable_setDisableYieldValue,dt=null,gt=null;function Dt(a){if(typeof ut=="function"&&it(a),gt&&typeof gt.setStrictMode=="function")try{gt.setStrictMode(dt,a)}catch{}}var yt=Math.clz32?Math.clz32:Rl,Ui=Math.log,Wn=Math.LN2;function Rl(a){return a>>>=0,a===0?32:31-(Ui(a)/Wn|0)|0}var Nr=256,mo=262144,po=4194304;function zi(a){var l=a&42;if(l!==0)return l;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 ka(a,l,h){var v=a.pendingLanes;if(v===0)return 0;var T=0,M=a.suspendedLanes,q=a.pingedLanes;a=a.warmLanes;var ie=v&134217727;return ie!==0?(v=ie&~M,v!==0?T=zi(v):(q&=ie,q!==0?T=zi(q):h||(h=ie&~a,h!==0&&(T=zi(h))))):(ie=v&~M,ie!==0?T=zi(ie):q!==0?T=zi(q):h||(h=v&~a,h!==0&&(T=zi(h)))),T===0?0:l!==0&&l!==T&&(l&M)===0&&(M=T&-T,h=l&-l,M>=h||M===32&&(h&4194048)!==0)?l:T}function ui(a,l){return(a.pendingLanes&~(a.suspendedLanes&~a.pingedLanes)&l)===0}function Sn(a,l){switch(a){case 1:case 2:case 4:case 8:case 64:return l+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 l+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=po;return po<<=1,(po&62914560)===0&&(po=4194304),a}function Kn(a){for(var l=[],h=0;31>h;h++)l.push(a);return l}function bn(a,l){a.pendingLanes|=l,l!==268435456&&(a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0)}function Zn(a,l,h,v,T,M){var q=a.pendingLanes;a.pendingLanes=h,a.suspendedLanes=0,a.pingedLanes=0,a.warmLanes=0,a.expiredLanes&=h,a.entangledLanes&=h,a.errorRecoveryDisabledLanes&=h,a.shellSuspendCounter=0;var ie=a.entanglements,pe=a.expirationTimes,Ee=a.hiddenUpdates;for(h=q&~h;0<h;){var ke=31-yt(h),ze=1<<ke;ie[ke]=0,pe[ke]=-1;var Oe=Ee[ke];if(Oe!==null)for(Ee[ke]=null,ke=0;ke<Oe.length;ke++){var Ne=Oe[ke];Ne!==null&&(Ne.lane&=-536870913)}h&=~ze}v!==0&&Cn(a,v,0),M!==0&&T===0&&a.tag!==0&&(a.suspendedLanes|=M&~(q&~l))}function Cn(a,l,h){a.pendingLanes|=l,a.suspendedLanes&=~l;var v=31-yt(l);a.entangledLanes|=l,a.entanglements[v]=a.entanglements[v]|1073741824|h&261930}function Hr(a,l){var h=a.entangledLanes|=l;for(a=a.entanglements;h;){var v=31-yt(h),T=1<<v;T&l|a[v]&l&&(a[v]|=l),h&=~T}}function qr(a,l){var h=l&-l;return h=(h&42)!==0?1:Dn(h),(h&(a.suspendedLanes|l))!==0?0:h}function Dn(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 at(a){return a&=-a,2<a?8<a?(a&134217727)!==0?32:268435456:8:2}function $f(){var a=I.p;return a!==0?a:(a=window.event,a===void 0?32:hA(a.type))}function Vf(a,l){var h=I.p;try{return I.p=a,l()}finally{I.p=h}}var sa=Math.random().toString(36).slice(2),Bn="__reactFiber$"+sa,or="__reactProps$"+sa,go="__reactContainer$"+sa,Ia="__reactEvents$"+sa,Sm="__reactListeners$"+sa,n0="__reactHandles$"+sa,Cm="__reactResources$"+sa,Nl="__reactMarker$"+sa;function Hf(a){delete a[Bn],delete a[or],delete a[Ia],delete a[Sm],delete a[n0]}function vo(a){var l=a[Bn];if(l)return l;for(var h=a.parentNode;h;){if(l=h[go]||h[Bn]){if(h=l.alternate,l.child!==null||h!==null&&h.child!==null)for(a=XE(a);a!==null;){if(h=a[Bn])return h;a=XE(a)}return l}a=h,h=a.parentNode}return null}function hs(a){if(a=a[Bn]||a[go]){var l=a.tag;if(l===5||l===6||l===13||l===31||l===26||l===27||l===3)return a}return null}function Ua(a){var l=a.tag;if(l===5||l===26||l===27||l===6)return a.stateNode;throw Error(r(33))}function ms(a){var l=a[Cm];return l||(l=a[Cm]={hoistableStyles:new Map,hoistableScripts:new Map}),l}function Fn(a){a[Nl]=!0}var Em=new Set,Am={};function yo(a,l){za(a,l),za(a+"Capture",l)}function za(a,l){for(Am[a]=l,a=0;a<l.length;a++)Em.add(l[a])}var Ll=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]*$"),qf={},Gf={};function Dl(a){return Le.call(Gf,a)?!0:Le.call(qf,a)?!1:Ll.test(a)?Gf[a]=!0:(qf[a]=!0,!1)}function wt(a,l,h){if(Dl(l))if(h===null)a.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":a.removeAttribute(l);return;case"boolean":var v=l.toLowerCase().slice(0,5);if(v!=="data-"&&v!=="aria-"){a.removeAttribute(l);return}}a.setAttribute(l,""+h)}}function Yt(a,l,h){if(h===null)a.removeAttribute(l);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(l);return}a.setAttribute(l,""+h)}}function Gr(a,l,h,v){if(v===null)a.removeAttribute(h);else{switch(typeof v){case"undefined":case"function":case"symbol":case"boolean":a.removeAttribute(h);return}a.setAttributeNS(l,h,""+v)}}function Xn(a){switch(typeof a){case"bigint":case"boolean":case"number":case"string":case"undefined":return a;case"object":return a;default:return""}}function bo(a){var l=a.type;return(a=a.nodeName)&&a.toLowerCase()==="input"&&(l==="checkbox"||l==="radio")}function Yf(a,l,h){var v=Object.getOwnPropertyDescriptor(a.constructor.prototype,l);if(!a.hasOwnProperty(l)&&typeof v<"u"&&typeof v.get=="function"&&typeof v.set=="function"){var T=v.get,M=v.set;return Object.defineProperty(a,l,{configurable:!0,get:function(){return T.call(this)},set:function(q){h=""+q,M.call(this,q)}}),Object.defineProperty(a,l,{enumerable:v.enumerable}),{getValue:function(){return h},setValue:function(q){h=""+q},stopTracking:function(){a._valueTracker=null,delete a[l]}}}}function ht(a){if(!a._valueTracker){var l=bo(a)?"checked":"value";a._valueTracker=Yf(a,l,""+a[l])}}function mn(a){if(!a)return!1;var l=a._valueTracker;if(!l)return!0;var h=l.getValue(),v="";return a&&(v=bo(a)?a.checked?"true":"false":a.value),a=v,a!==h?(l.setValue(a),!0):!1}function ps(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 Xu=/[\n"\\]/g;function an(a){return a.replace(Xu,function(l){return"\\"+l.charCodeAt(0).toString(16)+" "})}function Wf(a,l,h,v,T,M,q,ie){a.name="",q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"?a.type=q:a.removeAttribute("type"),l!=null?q==="number"?(l===0&&a.value===""||a.value!=l)&&(a.value=""+Xn(l)):a.value!==""+Xn(l)&&(a.value=""+Xn(l)):q!=="submit"&&q!=="reset"||a.removeAttribute("value"),l!=null?la(a,q,Xn(l)):h!=null?la(a,q,Xn(h)):v!=null&&a.removeAttribute("value"),T==null&&M!=null&&(a.defaultChecked=!!M),T!=null&&(a.checked=T&&typeof T!="function"&&typeof T!="symbol"),ie!=null&&typeof ie!="function"&&typeof ie!="symbol"&&typeof ie!="boolean"?a.name=""+Xn(ie):a.removeAttribute("name")}function kl(a,l,h,v,T,M,q,ie){if(M!=null&&typeof M!="function"&&typeof M!="symbol"&&typeof M!="boolean"&&(a.type=M),l!=null||h!=null){if(!(M!=="submit"&&M!=="reset"||l!=null)){ht(a);return}h=h!=null?""+Xn(h):"",l=l!=null?""+Xn(l):h,ie||l===a.value||(a.value=l),a.defaultValue=l}v=v??T,v=typeof v!="function"&&typeof v!="symbol"&&!!v,a.checked=ie?a.checked:!!v,a.defaultChecked=!!v,q!=null&&typeof q!="function"&&typeof q!="symbol"&&typeof q!="boolean"&&(a.name=q),ht(a)}function la(a,l,h){l==="number"&&ps(a.ownerDocument)===a||a.defaultValue===""+h||(a.defaultValue=""+h)}function Qt(a,l,h,v){if(a=a.options,l){l={};for(var T=0;T<h.length;T++)l["$"+h[T]]=!0;for(h=0;h<a.length;h++)T=l.hasOwnProperty("$"+a[h].value),a[h].selected!==T&&(a[h].selected=T),T&&v&&(a[h].defaultSelected=!0)}else{for(h=""+Xn(h),l=null,T=0;T<a.length;T++){if(a[T].value===h){a[T].selected=!0,v&&(a[T].defaultSelected=!0);return}l!==null||a[T].disabled||(l=a[T])}l!==null&&(l.selected=!0)}}function Ba(a,l,h){if(l!=null&&(l=""+Xn(l),l!==a.value&&(a.value=l),h==null)){a.defaultValue!==l&&(a.defaultValue=l);return}a.defaultValue=h!=null?""+Xn(h):""}function gs(a,l,h,v){if(l==null){if(v!=null){if(h!=null)throw Error(r(92));if(se(v)){if(1<v.length)throw Error(r(93));v=v[0]}h=v}h==null&&(h=""),l=h}h=Xn(l),a.defaultValue=h,v=a.textContent,v===h&&v!==""&&v!==null&&(a.value=v),ht(a)}function Bi(a,l){if(l){var h=a.firstChild;if(h&&h===a.lastChild&&h.nodeType===3){h.nodeValue=l;return}}a.textContent=l}var Kf=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 vs(a,l,h){var v=l.indexOf("--")===0;h==null||typeof h=="boolean"||h===""?v?a.setProperty(l,""):l==="float"?a.cssFloat="":a[l]="":v?a.setProperty(l,h):typeof h!="number"||h===0||Kf.has(l)?l==="float"?a.cssFloat=h:a[l]=(""+h).trim():a[l]=h+"px"}function Qu(a,l,h){if(l!=null&&typeof l!="object")throw Error(r(62));if(a=a.style,h!=null){for(var v in h)!h.hasOwnProperty(v)||l!=null&&l.hasOwnProperty(v)||(v.indexOf("--")===0?a.setProperty(v,""):v==="float"?a.cssFloat="":a[v]="");for(var T in l)v=l[T],l.hasOwnProperty(T)&&h[T]!==v&&vs(a,T,v)}else for(var M in l)l.hasOwnProperty(M)&&vs(a,M,l[M])}function Il(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 Ju=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"]]),Zf=/^[\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 ys(a){return Zf.test(""+a)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":a}function Yr(){}var ec=null;function Ul(a){return a=a.target||a.srcElement||window,a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===3?a.parentNode:a}var bs=null,ft=null;function ci(a){var l=hs(a);if(l&&(a=l.stateNode)){var h=a[or]||null;e:switch(a=l.stateNode,l.type){case"input":if(Wf(a,h.value,h.defaultValue,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name),l=h.name,h.type==="radio"&&l!=null){for(h=a;h.parentNode;)h=h.parentNode;for(h=h.querySelectorAll('input[name="'+an(""+l)+'"][type="radio"]'),l=0;l<h.length;l++){var v=h[l];if(v!==a&&v.form===a.form){var T=v[or]||null;if(!T)throw Error(r(90));Wf(v,T.value,T.defaultValue,T.defaultValue,T.checked,T.defaultChecked,T.type,T.name)}}for(l=0;l<h.length;l++)v=h[l],v.form===a.form&&mn(v)}break e;case"textarea":Ba(a,h.value,h.defaultValue);break e;case"select":l=h.value,l!=null&&Qt(a,!!h.multiple,l,!1)}}}var $t=!1;function Xf(a,l,h){if($t)return a(l,h);$t=!0;try{var v=a(l);return v}finally{if($t=!1,(bs!==null||ft!==null)&&(wp(),bs&&(l=bs,a=ft,ft=bs=null,ci(l),a)))for(l=0;l<a.length;l++)ci(a[l])}}function _o(a,l){var h=a.stateNode;if(h===null)return null;var v=h[or]||null;if(v===null)return null;h=v[l];e:switch(l){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(v=!v.disabled)||(a=a.type,v=!(a==="button"||a==="input"||a==="select"||a==="textarea")),a=!v;break e;default:a=!1}if(a)return null;if(h&&typeof h!="function")throw Error(r(231,l,typeof h));return h}var fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),zl=!1;if(fi)try{var di={};Object.defineProperty(di,"passive",{get:function(){zl=!0}}),window.addEventListener("test",di,di),window.removeEventListener("test",di,di)}catch{zl=!1}var Fi=null,xo=null,En=null;function Fa(){if(En)return En;var a,l=xo,h=l.length,v,T="value"in Fi?Fi.value:Fi.textContent,M=T.length;for(a=0;a<h&&l[a]===T[a];a++);var q=h-a;for(v=1;v<=q&&l[h-v]===T[M-v];v++);return En=T.slice(a,1<v?1-v:void 0)}function Bl(a){var l=a.keyCode;return"charCode"in a?(a=a.charCode,a===0&&l===13&&(a=13)):a=l,a===10&&(a=13),32<=a||a===13?a:0}function Fl(){return!0}function Tm(){return!1}function mr(a){function l(h,v,T,M,q){this._reactName=h,this._targetInst=T,this.type=v,this.nativeEvent=M,this.target=q,this.currentTarget=null;for(var ie in a)a.hasOwnProperty(ie)&&(h=a[ie],this[ie]=h?h(M):M[ie]);return this.isDefaultPrevented=(M.defaultPrevented!=null?M.defaultPrevented:M.returnValue===!1)?Fl:Tm,this.isPropagationStopped=Tm,this}return p(l.prototype,{preventDefault:function(){this.defaultPrevented=!0;var h=this.nativeEvent;h&&(h.preventDefault?h.preventDefault():typeof h.returnValue!="unknown"&&(h.returnValue=!1),this.isDefaultPrevented=Fl)},stopPropagation:function(){var h=this.nativeEvent;h&&(h.stopPropagation?h.stopPropagation():typeof h.cancelBubble!="unknown"&&(h.cancelBubble=!0),this.isPropagationStopped=Fl)},persist:function(){},isPersistent:Fl}),l}var ua={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(a){return a.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},tc=mr(ua),_s=p({},ua,{view:0,detail:0}),Ot=mr(_s),Qf,Lr,ca,$l=p({},_s,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,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!==ca&&(ca&&a.type==="mousemove"?(Qf=a.screenX-ca.screenX,Lr=a.screenY-ca.screenY):Lr=Qf=0,ca=a),Qf)},movementY:function(a){return"movementY"in a?a.movementY:Lr}}),Om=mr($l),Jf=p({},$l,{dataTransfer:0}),r0=mr(Jf),jm=p({},_s,{relatedTarget:0}),ed=mr(jm),i0=p({},ua,{animationName:0,elapsedTime:0,pseudoElement:0}),td=mr(i0),a0=p({},ua,{clipboardData:function(a){return"clipboardData"in a?a.clipboardData:window.clipboardData}}),$i=mr(a0),o0=p({},ua,{data:0}),nd=mr(o0),$a={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Mm={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"},Pm={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rd(a){var l=this.nativeEvent;return l.getModifierState?l.getModifierState(a):(a=Pm[a])?!!l[a]:!1}function id(){return rd}var Rm=p({},_s,{key:function(a){if(a.key){var l=$a[a.key]||a.key;if(l!=="Unidentified")return l}return a.type==="keypress"?(a=Bl(a),a===13?"Enter":String.fromCharCode(a)):a.type==="keydown"||a.type==="keyup"?Mm[a.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(a){return a.type==="keypress"?Bl(a):0},keyCode:function(a){return a.type==="keydown"||a.type==="keyup"?a.keyCode:0},which:function(a){return a.type==="keypress"?Bl(a):a.type==="keydown"||a.type==="keyup"?a.keyCode:0}}),Nm=mr(Rm),s0=p({},$l,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lm=mr(s0),ad=p({},_s,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),l0=mr(ad),Dm=p({},ua,{propertyName:0,elapsedTime:0,pseudoElement:0}),km=mr(Dm),nc=p({},$l,{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}),wo=mr(nc),u0=p({},ua,{newState:0,oldState:0}),Vl=mr(u0),Wr=[9,13,27,32],rc=fi&&"CompositionEvent"in window,xs=null;fi&&"documentMode"in document&&(xs=document.documentMode);var c0=fi&&"TextEvent"in window&&!xs,ic=fi&&(!rc||xs&&8<xs&&11>=xs),ac=" ",Im=!1;function Um(a,l){switch(a){case"keyup":return Wr.indexOf(l.keyCode)!==-1;case"keydown":return l.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function od(a){return a=a.detail,typeof a=="object"&&"data"in a?a.data:null}var ws=!1;function hi(a,l){switch(a){case"compositionend":return od(l);case"keypress":return l.which!==32?null:(Im=!0,ac);case"textInput":return a=l.data,a===ac&&Im?null:a;default:return null}}function Ss(a,l){if(ws)return a==="compositionend"||!rc&&Um(a,l)?(a=Fa(),En=xo=Fi=null,ws=!1,a):null;switch(a){case"paste":return null;case"keypress":if(!(l.ctrlKey||l.altKey||l.metaKey)||l.ctrlKey&&l.altKey){if(l.char&&1<l.char.length)return l.char;if(l.which)return String.fromCharCode(l.which)}return null;case"compositionend":return ic&&l.locale!=="ko"?null:l.data;default:return null}}var f0={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 Vi(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l==="input"?!!f0[a.type]:l==="textarea"}function zm(a,l,h,v){bs?ft?ft.push(v):ft=[v]:bs=v,l=jp(l,"onChange"),0<l.length&&(h=new tc("onChange","change",null,h,v),a.push({event:h,listeners:l}))}var Hi=null,Hl=null;function ql(a){IE(a,0)}function Gl(a){var l=Ua(a);if(mn(l))return a}function Yl(a,l){if(a==="change")return l}var Bm=!1;if(fi){var qi;if(fi){var Cs="oninput"in document;if(!Cs){var Fm=document.createElement("div");Fm.setAttribute("oninput","return;"),Cs=typeof Fm.oninput=="function"}qi=Cs}else qi=!1;Bm=qi&&(!document.documentMode||9<document.documentMode)}function oc(){Hi&&(Hi.detachEvent("onpropertychange",$m),Hl=Hi=null)}function $m(a){if(a.propertyName==="value"&&Gl(Hl)){var l=[];zm(l,Hl,a,Ul(a)),Xf(ql,l)}}function fa(a,l,h){a==="focusin"?(oc(),Hi=l,Hl=h,Hi.attachEvent("onpropertychange",$m)):a==="focusout"&&oc()}function d0(a){if(a==="selectionchange"||a==="keyup"||a==="keydown")return Gl(Hl)}function Es(a,l){if(a==="click")return Gl(l)}function h0(a,l){if(a==="input"||a==="change")return Gl(l)}function da(a,l){return a===l&&(a!==0||1/a===1/l)||a!==a&&l!==l}var sr=typeof Object.is=="function"?Object.is:da;function As(a,l){if(sr(a,l))return!0;if(typeof a!="object"||a===null||typeof l!="object"||l===null)return!1;var h=Object.keys(a),v=Object.keys(l);if(h.length!==v.length)return!1;for(v=0;v<h.length;v++){var T=h[v];if(!Le.call(l,T)||!sr(a[T],l[T]))return!1}return!0}function sc(a){for(;a&&a.firstChild;)a=a.firstChild;return a}function Wl(a,l){var h=sc(a);a=0;for(var v;h;){if(h.nodeType===3){if(v=a+h.textContent.length,a<=l&&v>=l)return{node:h,offset:l-a};a=v}e:{for(;h;){if(h.nextSibling){h=h.nextSibling;break e}h=h.parentNode}h=void 0}h=sc(h)}}function lc(a,l){return a&&l?a===l?!0:a&&a.nodeType===3?!1:l&&l.nodeType===3?lc(a,l.parentNode):"contains"in a?a.contains(l):a.compareDocumentPosition?!!(a.compareDocumentPosition(l)&16):!1:!1}function Kl(a){a=a!=null&&a.ownerDocument!=null&&a.ownerDocument.defaultView!=null?a.ownerDocument.defaultView:window;for(var l=ps(a.document);l instanceof a.HTMLIFrameElement;){try{var h=typeof l.contentWindow.location.href=="string"}catch{h=!1}if(h)a=l.contentWindow;else break;l=ps(a.document)}return l}function Va(a){var l=a&&a.nodeName&&a.nodeName.toLowerCase();return l&&(l==="input"&&(a.type==="text"||a.type==="search"||a.type==="tel"||a.type==="url"||a.type==="password")||l==="textarea"||a.contentEditable==="true")}var uc=fi&&"documentMode"in document&&11>=document.documentMode,Ha=null,cc=null,Zl=null,Ts=!1;function Vm(a,l,h){var v=h.window===h?h.document:h.nodeType===9?h:h.ownerDocument;Ts||Ha==null||Ha!==ps(v)||(v=Ha,"selectionStart"in v&&Va(v)?v={start:v.selectionStart,end:v.selectionEnd}:(v=(v.ownerDocument&&v.ownerDocument.defaultView||window).getSelection(),v={anchorNode:v.anchorNode,anchorOffset:v.anchorOffset,focusNode:v.focusNode,focusOffset:v.focusOffset}),Zl&&As(Zl,v)||(Zl=v,v=jp(cc,"onSelect"),0<v.length&&(l=new tc("onSelect","select",null,l,h),a.push({event:l,listeners:v}),l.target=Ha)))}function qa(a,l){var h={};return h[a.toLowerCase()]=l.toLowerCase(),h["Webkit"+a]="webkit"+l,h["Moz"+a]="moz"+l,h}var Os={animationend:qa("Animation","AnimationEnd"),animationiteration:qa("Animation","AnimationIteration"),animationstart:qa("Animation","AnimationStart"),transitionrun:qa("Transition","TransitionRun"),transitionstart:qa("Transition","TransitionStart"),transitioncancel:qa("Transition","TransitionCancel"),transitionend:qa("Transition","TransitionEnd")},fc={},Hm={};fi&&(Hm=document.createElement("div").style,"AnimationEvent"in window||(delete Os.animationend.animation,delete Os.animationiteration.animation,delete Os.animationstart.animation),"TransitionEvent"in window||delete Os.transitionend.transition);function lr(a){if(fc[a])return fc[a];if(!Os[a])return a;var l=Os[a],h;for(h in l)if(l.hasOwnProperty(h)&&h in Hm)return fc[a]=l[h];return a}var Xl=lr("animationend"),qm=lr("animationiteration"),Ql=lr("animationstart"),m0=lr("transitionrun"),Gm=lr("transitionstart"),p0=lr("transitioncancel"),js=lr("transitionend"),Ym=new Map,Ga="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(" ");Ga.push("scrollEnd");function Kr(a,l){Ym.set(a,l),yo(l,[a])}var Jl=typeof reportError=="function"?reportError:function(a){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var l=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(l))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",a);return}console.error(a)},Zr=[],Er=0,dc=0;function eu(){for(var a=Er,l=dc=Er=0;l<a;){var h=Zr[l];Zr[l++]=null;var v=Zr[l];Zr[l++]=null;var T=Zr[l];Zr[l++]=null;var M=Zr[l];if(Zr[l++]=null,v!==null&&T!==null){var q=v.pending;q===null?T.next=T:(T.next=q.next,q.next=T),v.pending=T}M!==0&&Ms(h,T,M)}}function Ya(a,l,h,v){Zr[Er++]=a,Zr[Er++]=l,Zr[Er++]=h,Zr[Er++]=v,dc|=v,a.lanes|=v,a=a.alternate,a!==null&&(a.lanes|=v)}function sd(a,l,h,v){return Ya(a,l,h,v),tu(a)}function Gi(a,l){return Ya(a,null,null,l),tu(a)}function Ms(a,l,h){a.lanes|=h;var v=a.alternate;v!==null&&(v.lanes|=h);for(var T=!1,M=a.return;M!==null;)M.childLanes|=h,v=M.alternate,v!==null&&(v.childLanes|=h),M.tag===22&&(a=M.stateNode,a===null||a._visibility&1||(T=!0)),a=M,M=M.return;return a.tag===3?(M=a.stateNode,T&&l!==null&&(T=31-yt(h),a=M.hiddenUpdates,v=a[T],v===null?a[T]=[l]:v.push(l),l.lane=h|536870912),M):null}function tu(a){if(50<Rd)throw Rd=0,v1=null,Error(r(185));for(var l=a.return;l!==null;)a=l,l=a.return;return a.tag===3?a.stateNode:null}var So={};function g0(a,l,h,v){this.tag=a,this.key=h,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=l,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=v,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ar(a,l,h,v){return new g0(a,l,h,v)}function hc(a){return a=a.prototype,!(!a||!a.isReactComponent)}function Yi(a,l){var h=a.alternate;return h===null?(h=Ar(a.tag,l,a.key,a.mode),h.elementType=a.elementType,h.type=a.type,h.stateNode=a.stateNode,h.alternate=a,a.alternate=h):(h.pendingProps=l,h.type=a.type,h.flags=0,h.subtreeFlags=0,h.deletions=null),h.flags=a.flags&65011712,h.childLanes=a.childLanes,h.lanes=a.lanes,h.child=a.child,h.memoizedProps=a.memoizedProps,h.memoizedState=a.memoizedState,h.updateQueue=a.updateQueue,l=a.dependencies,h.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext},h.sibling=a.sibling,h.index=a.index,h.ref=a.ref,h.refCleanup=a.refCleanup,h}function ld(a,l){a.flags&=65011714;var h=a.alternate;return h===null?(a.childLanes=0,a.lanes=l,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=h.childLanes,a.lanes=h.lanes,a.child=h.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=h.memoizedProps,a.memoizedState=h.memoizedState,a.updateQueue=h.updateQueue,a.type=h.type,l=h.dependencies,a.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),a}function nu(a,l,h,v,T,M){var q=0;if(v=a,typeof a=="function")hc(a)&&(q=1);else if(typeof a=="string")q=xz(a,h,te.current)?26:a==="html"||a==="head"||a==="body"?27:5;else e:switch(a){case oe:return a=Ar(31,h,l,T),a.elementType=oe,a.lanes=M,a;case x:return Co(h.children,T,M,l);case C:q=8,T|=24;break;case E:return a=Ar(12,h,l,T|2),a.elementType=E,a.lanes=M,a;case U:return a=Ar(13,h,l,T),a.elementType=U,a.lanes=M,a;case $:return a=Ar(19,h,l,T),a.elementType=$,a.lanes=M,a;default:if(typeof a=="object"&&a!==null)switch(a.$$typeof){case O:q=10;break e;case j:q=9;break e;case N:q=11;break e;case K:q=14;break e;case X:q=16,v=null;break e}q=29,h=Error(r(130,a===null?"null":typeof a,"")),v=null}return l=Ar(q,h,l,T),l.elementType=a,l.type=v,l.lanes=M,l}function Co(a,l,h,v){return a=Ar(7,a,v,l),a.lanes=h,a}function mc(a,l,h){return a=Ar(6,a,null,l),a.lanes=h,a}function ud(a){var l=Ar(18,null,null,0);return l.stateNode=a,l}function cd(a,l,h){return l=Ar(4,a.children!==null?a.children:[],a.key,l),l.lanes=h,l.stateNode={containerInfo:a.containerInfo,pendingChildren:null,implementation:a.implementation},l}var c=new WeakMap;function g(a,l){if(typeof a=="object"&&a!==null){var h=c.get(a);return h!==void 0?h:(l={value:a,source:l,stack:Ae(l)},c.set(a,l),l)}return{value:a,source:l,stack:Ae(l)}}var S=[],R=0,V=null,re=0,me=[],Se=0,Te=null,Ue=1,Xe="";function ot(a,l){S[R++]=re,S[R++]=V,V=a,re=l}function bt(a,l,h){me[Se++]=Ue,me[Se++]=Xe,me[Se++]=Te,Te=a;var v=Ue;a=Xe;var T=32-yt(v)-1;v&=~(1<<T),h+=1;var M=32-yt(l)+T;if(30<M){var q=T-T%5;M=(v&(1<<q)-1).toString(32),v>>=q,T-=q,Ue=1<<32-yt(l)+T|h<<T|v,Xe=M+a}else Ue=1<<M|h<<T|v,Xe=a}function Qn(a){a.return!==null&&(ot(a,1),bt(a,1,0))}function An(a){for(;a===V;)V=S[--R],S[R]=null,re=S[--R],S[R]=null;for(;a===Te;)Te=me[--Se],me[Se]=null,Xe=me[--Se],me[Se]=null,Ue=me[--Se],me[Se]=null}function Dr(a,l){me[Se++]=Ue,me[Se++]=Xe,me[Se++]=Te,Ue=l.id,Xe=l.overflow,Te=a}var kt=null,It=null,St=!1,Wa=null,Xr=!1,pc=Error(r(519));function Ka(a){var l=Error(r(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw ru(g(l,a)),pc}function fd(a){var l=a.stateNode,h=a.type,v=a.memoizedProps;switch(l[Bn]=a,l[or]=v,h){case"dialog":Et("cancel",l),Et("close",l);break;case"iframe":case"object":case"embed":Et("load",l);break;case"video":case"audio":for(h=0;h<Ld.length;h++)Et(Ld[h],l);break;case"source":Et("error",l);break;case"img":case"image":case"link":Et("error",l),Et("load",l);break;case"details":Et("toggle",l);break;case"input":Et("invalid",l),kl(l,v.value,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name,!0);break;case"select":Et("invalid",l);break;case"textarea":Et("invalid",l),gs(l,v.value,v.defaultValue,v.children)}h=v.children,typeof h!="string"&&typeof h!="number"&&typeof h!="bigint"||l.textContent===""+h||v.suppressHydrationWarning===!0||FE(l.textContent,h)?(v.popover!=null&&(Et("beforetoggle",l),Et("toggle",l)),v.onScroll!=null&&Et("scroll",l),v.onScrollEnd!=null&&Et("scrollend",l),v.onClick!=null&&(l.onclick=Yr),l=!0):l=!1,l||Ka(a,!0)}function _n(a){for(kt=a.return;kt;)switch(kt.tag){case 5:case 31:case 13:Xr=!1;return;case 27:case 3:Xr=!0;return;default:kt=kt.return}}function ha(a){if(a!==kt)return!1;if(!St)return _n(a),St=!0,!1;var l=a.tag,h;if((h=l!==3&&l!==27)&&((h=l===5)&&(h=a.type,h=!(h!=="form"&&h!=="button")||R1(a.type,a.memoizedProps)),h=!h),h&&It&&Ka(a),_n(a),l===13){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));It=ZE(a)}else if(l===31){if(a=a.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(317));It=ZE(a)}else l===27?(l=It,Hs(a.type)?(a=I1,I1=null,It=a):It=l):It=kt?Ki(a.stateNode.nextSibling):null;return!0}function Eo(){It=kt=null,St=!1}function dd(){var a=Wa;return a!==null&&(ti===null?ti=a:ti.push.apply(ti,a),Wa=null),a}function ru(a){Wa===null?Wa=[a]:Wa.push(a)}var iu=P(null),Za=null,ma=null;function Ps(a,l,h){Y(iu,l._currentValue),l._currentValue=h}function Ao(a){a._currentValue=iu.current,G(iu)}function v0(a,l,h){for(;a!==null;){var v=a.alternate;if((a.childLanes&l)!==l?(a.childLanes|=l,v!==null&&(v.childLanes|=l)):v!==null&&(v.childLanes&l)!==l&&(v.childLanes|=l),a===h)break;a=a.return}}function y0(a,l,h,v){var T=a.child;for(T!==null&&(T.return=a);T!==null;){var M=T.dependencies;if(M!==null){var q=T.child;M=M.firstContext;e:for(;M!==null;){var ie=M;M=T;for(var pe=0;pe<l.length;pe++)if(ie.context===l[pe]){M.lanes|=h,ie=M.alternate,ie!==null&&(ie.lanes|=h),v0(M.return,h,a),v||(q=null);break e}M=ie.next}}else if(T.tag===18){if(q=T.return,q===null)throw Error(r(341));q.lanes|=h,M=q.alternate,M!==null&&(M.lanes|=h),v0(q,h,a),q=null}else q=T.child;if(q!==null)q.return=T;else for(q=T;q!==null;){if(q===a){q=null;break}if(T=q.sibling,T!==null){T.return=q.return,q=T;break}q=q.return}T=q}}function gc(a,l,h,v){a=null;for(var T=l,M=!1;T!==null;){if(!M){if((T.flags&524288)!==0)M=!0;else if((T.flags&262144)!==0)break}if(T.tag===10){var q=T.alternate;if(q===null)throw Error(r(387));if(q=q.memoizedProps,q!==null){var ie=T.type;sr(T.pendingProps.value,q.value)||(a!==null?a.push(ie):a=[ie])}}else if(T===ge.current){if(q=T.alternate,q===null)throw Error(r(387));q.memoizedState.memoizedState!==T.memoizedState.memoizedState&&(a!==null?a.push(zd):a=[zd])}T=T.return}a!==null&&y0(l,a,h,v),l.flags|=262144}function Wm(a){for(a=a.firstContext;a!==null;){if(!sr(a.context._currentValue,a.memoizedValue))return!0;a=a.next}return!1}function au(a){Za=a,ma=null,a=a.dependencies,a!==null&&(a.firstContext=null)}function pr(a){return A3(Za,a)}function Km(a,l){return Za===null&&au(a),A3(a,l)}function A3(a,l){var h=l._currentValue;if(l={context:l,memoizedValue:h,next:null},ma===null){if(a===null)throw Error(r(308));ma=l,a.dependencies={lanes:0,firstContext:l},a.flags|=524288}else ma=ma.next=l;return h}var vU=typeof AbortController<"u"?AbortController:function(){var a=[],l=this.signal={aborted:!1,addEventListener:function(h,v){a.push(v)}};this.abort=function(){l.aborted=!0,a.forEach(function(h){return h()})}},yU=e.unstable_scheduleCallback,bU=e.unstable_NormalPriority,$n={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function b0(){return{controller:new vU,data:new Map,refCount:0}}function hd(a){a.refCount--,a.refCount===0&&yU(bU,function(){a.controller.abort()})}var md=null,_0=0,vc=0,yc=null;function _U(a,l){if(md===null){var h=md=[];_0=0,vc=S1(),yc={status:"pending",value:void 0,then:function(v){h.push(v)}}}return _0++,l.then(T3,T3),l}function T3(){if(--_0===0&&md!==null){yc!==null&&(yc.status="fulfilled");var a=md;md=null,vc=0,yc=null;for(var l=0;l<a.length;l++)(0,a[l])()}}function xU(a,l){var h=[],v={status:"pending",value:null,reason:null,then:function(T){h.push(T)}};return a.then(function(){v.status="fulfilled",v.value=l;for(var T=0;T<h.length;T++)(0,h[T])(l)},function(T){for(v.status="rejected",v.reason=T,T=0;T<h.length;T++)(0,h[T])(void 0)}),v}var O3=Z.S;Z.S=function(a,l){fE=_e(),typeof l=="object"&&l!==null&&typeof l.then=="function"&&_U(a,l),O3!==null&&O3(a,l)};var ou=P(null);function x0(){var a=ou.current;return a!==null?a:Jt.pooledCache}function Zm(a,l){l===null?Y(ou,ou.current):Y(ou,l.pool)}function j3(){var a=x0();return a===null?null:{parent:$n._currentValue,pool:a}}var bc=Error(r(460)),w0=Error(r(474)),Xm=Error(r(542)),Qm={then:function(){}};function M3(a){return a=a.status,a==="fulfilled"||a==="rejected"}function P3(a,l,h){switch(h=a[h],h===void 0?a.push(l):h!==l&&(l.then(Yr,Yr),l=h),l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,N3(a),a;default:if(typeof l.status=="string")l.then(Yr,Yr);else{if(a=Jt,a!==null&&100<a.shellSuspendCounter)throw Error(r(482));a=l,a.status="pending",a.then(function(v){if(l.status==="pending"){var T=l;T.status="fulfilled",T.value=v}},function(v){if(l.status==="pending"){var T=l;T.status="rejected",T.reason=v}})}switch(l.status){case"fulfilled":return l.value;case"rejected":throw a=l.reason,N3(a),a}throw lu=l,bc}}function su(a){try{var l=a._init;return l(a._payload)}catch(h){throw h!==null&&typeof h=="object"&&typeof h.then=="function"?(lu=h,bc):h}}var lu=null;function R3(){if(lu===null)throw Error(r(459));var a=lu;return lu=null,a}function N3(a){if(a===bc||a===Xm)throw Error(r(483))}var _c=null,pd=0;function Jm(a){var l=pd;return pd+=1,_c===null&&(_c=[]),P3(_c,a,l)}function gd(a,l){l=l.props.ref,a.ref=l!==void 0?l:null}function ep(a,l){throw l.$$typeof===b?Error(r(525)):(a=Object.prototype.toString.call(l),Error(r(31,a==="[object Object]"?"object with keys {"+Object.keys(l).join(", ")+"}":a)))}function L3(a){function l(xe,ye){if(a){var Ce=xe.deletions;Ce===null?(xe.deletions=[ye],xe.flags|=16):Ce.push(ye)}}function h(xe,ye){if(!a)return null;for(;ye!==null;)l(xe,ye),ye=ye.sibling;return null}function v(xe){for(var ye=new Map;xe!==null;)xe.key!==null?ye.set(xe.key,xe):ye.set(xe.index,xe),xe=xe.sibling;return ye}function T(xe,ye){return xe=Yi(xe,ye),xe.index=0,xe.sibling=null,xe}function M(xe,ye,Ce){return xe.index=Ce,a?(Ce=xe.alternate,Ce!==null?(Ce=Ce.index,Ce<ye?(xe.flags|=67108866,ye):Ce):(xe.flags|=67108866,ye)):(xe.flags|=1048576,ye)}function q(xe){return a&&xe.alternate===null&&(xe.flags|=67108866),xe}function ie(xe,ye,Ce,Ie){return ye===null||ye.tag!==6?(ye=mc(Ce,xe.mode,Ie),ye.return=xe,ye):(ye=T(ye,Ce),ye.return=xe,ye)}function pe(xe,ye,Ce,Ie){var st=Ce.type;return st===x?ke(xe,ye,Ce.props.children,Ie,Ce.key):ye!==null&&(ye.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===X&&su(st)===ye.type)?(ye=T(ye,Ce.props),gd(ye,Ce),ye.return=xe,ye):(ye=nu(Ce.type,Ce.key,Ce.props,null,xe.mode,Ie),gd(ye,Ce),ye.return=xe,ye)}function Ee(xe,ye,Ce,Ie){return ye===null||ye.tag!==4||ye.stateNode.containerInfo!==Ce.containerInfo||ye.stateNode.implementation!==Ce.implementation?(ye=cd(Ce,xe.mode,Ie),ye.return=xe,ye):(ye=T(ye,Ce.children||[]),ye.return=xe,ye)}function ke(xe,ye,Ce,Ie,st){return ye===null||ye.tag!==7?(ye=Co(Ce,xe.mode,Ie,st),ye.return=xe,ye):(ye=T(ye,Ce),ye.return=xe,ye)}function ze(xe,ye,Ce){if(typeof ye=="string"&&ye!==""||typeof ye=="number"||typeof ye=="bigint")return ye=mc(""+ye,xe.mode,Ce),ye.return=xe,ye;if(typeof ye=="object"&&ye!==null){switch(ye.$$typeof){case _:return Ce=nu(ye.type,ye.key,ye.props,null,xe.mode,Ce),gd(Ce,ye),Ce.return=xe,Ce;case w:return ye=cd(ye,xe.mode,Ce),ye.return=xe,ye;case X:return ye=su(ye),ze(xe,ye,Ce)}if(se(ye)||ne(ye))return ye=Co(ye,xe.mode,Ce,null),ye.return=xe,ye;if(typeof ye.then=="function")return ze(xe,Jm(ye),Ce);if(ye.$$typeof===O)return ze(xe,Km(xe,ye),Ce);ep(xe,ye)}return null}function Oe(xe,ye,Ce,Ie){var st=ye!==null?ye.key:null;if(typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint")return st!==null?null:ie(xe,ye,""+Ce,Ie);if(typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case _:return Ce.key===st?pe(xe,ye,Ce,Ie):null;case w:return Ce.key===st?Ee(xe,ye,Ce,Ie):null;case X:return Ce=su(Ce),Oe(xe,ye,Ce,Ie)}if(se(Ce)||ne(Ce))return st!==null?null:ke(xe,ye,Ce,Ie,null);if(typeof Ce.then=="function")return Oe(xe,ye,Jm(Ce),Ie);if(Ce.$$typeof===O)return Oe(xe,ye,Km(xe,Ce),Ie);ep(xe,Ce)}return null}function Ne(xe,ye,Ce,Ie,st){if(typeof Ie=="string"&&Ie!==""||typeof Ie=="number"||typeof Ie=="bigint")return xe=xe.get(Ce)||null,ie(ye,xe,""+Ie,st);if(typeof Ie=="object"&&Ie!==null){switch(Ie.$$typeof){case _:return xe=xe.get(Ie.key===null?Ce:Ie.key)||null,pe(ye,xe,Ie,st);case w:return xe=xe.get(Ie.key===null?Ce:Ie.key)||null,Ee(ye,xe,Ie,st);case X:return Ie=su(Ie),Ne(xe,ye,Ce,Ie,st)}if(se(Ie)||ne(Ie))return xe=xe.get(Ce)||null,ke(ye,xe,Ie,st,null);if(typeof Ie.then=="function")return Ne(xe,ye,Ce,Jm(Ie),st);if(Ie.$$typeof===O)return Ne(xe,ye,Ce,Km(ye,Ie),st);ep(ye,Ie)}return null}function tt(xe,ye,Ce,Ie){for(var st=null,Ut=null,nt=ye,_t=ye=0,Mt=null;nt!==null&&_t<Ce.length;_t++){nt.index>_t?(Mt=nt,nt=null):Mt=nt.sibling;var zt=Oe(xe,nt,Ce[_t],Ie);if(zt===null){nt===null&&(nt=Mt);break}a&&nt&&zt.alternate===null&&l(xe,nt),ye=M(zt,ye,_t),Ut===null?st=zt:Ut.sibling=zt,Ut=zt,nt=Mt}if(_t===Ce.length)return h(xe,nt),St&&ot(xe,_t),st;if(nt===null){for(;_t<Ce.length;_t++)nt=ze(xe,Ce[_t],Ie),nt!==null&&(ye=M(nt,ye,_t),Ut===null?st=nt:Ut.sibling=nt,Ut=nt);return St&&ot(xe,_t),st}for(nt=v(nt);_t<Ce.length;_t++)Mt=Ne(nt,xe,_t,Ce[_t],Ie),Mt!==null&&(a&&Mt.alternate!==null&&nt.delete(Mt.key===null?_t:Mt.key),ye=M(Mt,ye,_t),Ut===null?st=Mt:Ut.sibling=Mt,Ut=Mt);return a&&nt.forEach(function(Ks){return l(xe,Ks)}),St&&ot(xe,_t),st}function ct(xe,ye,Ce,Ie){if(Ce==null)throw Error(r(151));for(var st=null,Ut=null,nt=ye,_t=ye=0,Mt=null,zt=Ce.next();nt!==null&&!zt.done;_t++,zt=Ce.next()){nt.index>_t?(Mt=nt,nt=null):Mt=nt.sibling;var Ks=Oe(xe,nt,zt.value,Ie);if(Ks===null){nt===null&&(nt=Mt);break}a&&nt&&Ks.alternate===null&&l(xe,nt),ye=M(Ks,ye,_t),Ut===null?st=Ks:Ut.sibling=Ks,Ut=Ks,nt=Mt}if(zt.done)return h(xe,nt),St&&ot(xe,_t),st;if(nt===null){for(;!zt.done;_t++,zt=Ce.next())zt=ze(xe,zt.value,Ie),zt!==null&&(ye=M(zt,ye,_t),Ut===null?st=zt:Ut.sibling=zt,Ut=zt);return St&&ot(xe,_t),st}for(nt=v(nt);!zt.done;_t++,zt=Ce.next())zt=Ne(nt,xe,_t,zt.value,Ie),zt!==null&&(a&&zt.alternate!==null&&nt.delete(zt.key===null?_t:zt.key),ye=M(zt,ye,_t),Ut===null?st=zt:Ut.sibling=zt,Ut=zt);return a&&nt.forEach(function(Rz){return l(xe,Rz)}),St&&ot(xe,_t),st}function Zt(xe,ye,Ce,Ie){if(typeof Ce=="object"&&Ce!==null&&Ce.type===x&&Ce.key===null&&(Ce=Ce.props.children),typeof Ce=="object"&&Ce!==null){switch(Ce.$$typeof){case _:e:{for(var st=Ce.key;ye!==null;){if(ye.key===st){if(st=Ce.type,st===x){if(ye.tag===7){h(xe,ye.sibling),Ie=T(ye,Ce.props.children),Ie.return=xe,xe=Ie;break e}}else if(ye.elementType===st||typeof st=="object"&&st!==null&&st.$$typeof===X&&su(st)===ye.type){h(xe,ye.sibling),Ie=T(ye,Ce.props),gd(Ie,Ce),Ie.return=xe,xe=Ie;break e}h(xe,ye);break}else l(xe,ye);ye=ye.sibling}Ce.type===x?(Ie=Co(Ce.props.children,xe.mode,Ie,Ce.key),Ie.return=xe,xe=Ie):(Ie=nu(Ce.type,Ce.key,Ce.props,null,xe.mode,Ie),gd(Ie,Ce),Ie.return=xe,xe=Ie)}return q(xe);case w:e:{for(st=Ce.key;ye!==null;){if(ye.key===st)if(ye.tag===4&&ye.stateNode.containerInfo===Ce.containerInfo&&ye.stateNode.implementation===Ce.implementation){h(xe,ye.sibling),Ie=T(ye,Ce.children||[]),Ie.return=xe,xe=Ie;break e}else{h(xe,ye);break}else l(xe,ye);ye=ye.sibling}Ie=cd(Ce,xe.mode,Ie),Ie.return=xe,xe=Ie}return q(xe);case X:return Ce=su(Ce),Zt(xe,ye,Ce,Ie)}if(se(Ce))return tt(xe,ye,Ce,Ie);if(ne(Ce)){if(st=ne(Ce),typeof st!="function")throw Error(r(150));return Ce=st.call(Ce),ct(xe,ye,Ce,Ie)}if(typeof Ce.then=="function")return Zt(xe,ye,Jm(Ce),Ie);if(Ce.$$typeof===O)return Zt(xe,ye,Km(xe,Ce),Ie);ep(xe,Ce)}return typeof Ce=="string"&&Ce!==""||typeof Ce=="number"||typeof Ce=="bigint"?(Ce=""+Ce,ye!==null&&ye.tag===6?(h(xe,ye.sibling),Ie=T(ye,Ce),Ie.return=xe,xe=Ie):(h(xe,ye),Ie=mc(Ce,xe.mode,Ie),Ie.return=xe,xe=Ie),q(xe)):h(xe,ye)}return function(xe,ye,Ce,Ie){try{pd=0;var st=Zt(xe,ye,Ce,Ie);return _c=null,st}catch(nt){if(nt===bc||nt===Xm)throw nt;var Ut=Ar(29,nt,null,xe.mode);return Ut.lanes=Ie,Ut.return=xe,Ut}finally{}}}var uu=L3(!0),D3=L3(!1),Rs=!1;function S0(a){a.updateQueue={baseState:a.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function C0(a,l){a=a.updateQueue,l.updateQueue===a&&(l.updateQueue={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,callbacks:null})}function Ns(a){return{lane:a,tag:0,payload:null,callback:null,next:null}}function Ls(a,l,h){var v=a.updateQueue;if(v===null)return null;if(v=v.shared,(Ft&2)!==0){var T=v.pending;return T===null?l.next=l:(l.next=T.next,T.next=l),v.pending=l,l=tu(a),Ms(a,null,h),l}return Ya(a,v,l,h),tu(a)}function vd(a,l,h){if(l=l.updateQueue,l!==null&&(l=l.shared,(h&4194048)!==0)){var v=l.lanes;v&=a.pendingLanes,h|=v,l.lanes=h,Hr(a,h)}}function E0(a,l){var h=a.updateQueue,v=a.alternate;if(v!==null&&(v=v.updateQueue,h===v)){var T=null,M=null;if(h=h.firstBaseUpdate,h!==null){do{var q={lane:h.lane,tag:h.tag,payload:h.payload,callback:null,next:null};M===null?T=M=q:M=M.next=q,h=h.next}while(h!==null);M===null?T=M=l:M=M.next=l}else T=M=l;h={baseState:v.baseState,firstBaseUpdate:T,lastBaseUpdate:M,shared:v.shared,callbacks:v.callbacks},a.updateQueue=h;return}a=h.lastBaseUpdate,a===null?h.firstBaseUpdate=l:a.next=l,h.lastBaseUpdate=l}var A0=!1;function yd(){if(A0){var a=yc;if(a!==null)throw a}}function bd(a,l,h,v){A0=!1;var T=a.updateQueue;Rs=!1;var M=T.firstBaseUpdate,q=T.lastBaseUpdate,ie=T.shared.pending;if(ie!==null){T.shared.pending=null;var pe=ie,Ee=pe.next;pe.next=null,q===null?M=Ee:q.next=Ee,q=pe;var ke=a.alternate;ke!==null&&(ke=ke.updateQueue,ie=ke.lastBaseUpdate,ie!==q&&(ie===null?ke.firstBaseUpdate=Ee:ie.next=Ee,ke.lastBaseUpdate=pe))}if(M!==null){var ze=T.baseState;q=0,ke=Ee=pe=null,ie=M;do{var Oe=ie.lane&-536870913,Ne=Oe!==ie.lane;if(Ne?(jt&Oe)===Oe:(v&Oe)===Oe){Oe!==0&&Oe===vc&&(A0=!0),ke!==null&&(ke=ke.next={lane:0,tag:ie.tag,payload:ie.payload,callback:null,next:null});e:{var tt=a,ct=ie;Oe=l;var Zt=h;switch(ct.tag){case 1:if(tt=ct.payload,typeof tt=="function"){ze=tt.call(Zt,ze,Oe);break e}ze=tt;break e;case 3:tt.flags=tt.flags&-65537|128;case 0:if(tt=ct.payload,Oe=typeof tt=="function"?tt.call(Zt,ze,Oe):tt,Oe==null)break e;ze=p({},ze,Oe);break e;case 2:Rs=!0}}Oe=ie.callback,Oe!==null&&(a.flags|=64,Ne&&(a.flags|=8192),Ne=T.callbacks,Ne===null?T.callbacks=[Oe]:Ne.push(Oe))}else Ne={lane:Oe,tag:ie.tag,payload:ie.payload,callback:ie.callback,next:null},ke===null?(Ee=ke=Ne,pe=ze):ke=ke.next=Ne,q|=Oe;if(ie=ie.next,ie===null){if(ie=T.shared.pending,ie===null)break;Ne=ie,ie=Ne.next,Ne.next=null,T.lastBaseUpdate=Ne,T.shared.pending=null}}while(!0);ke===null&&(pe=ze),T.baseState=pe,T.firstBaseUpdate=Ee,T.lastBaseUpdate=ke,M===null&&(T.shared.lanes=0),zs|=q,a.lanes=q,a.memoizedState=ze}}function k3(a,l){if(typeof a!="function")throw Error(r(191,a));a.call(l)}function I3(a,l){var h=a.callbacks;if(h!==null)for(a.callbacks=null,a=0;a<h.length;a++)k3(h[a],l)}var xc=P(null),tp=P(0);function U3(a,l){a=Do,Y(tp,a),Y(xc,l),Do=a|l.baseLanes}function T0(){Y(tp,Do),Y(xc,xc.current)}function O0(){Do=tp.current,G(xc),G(tp)}var mi=P(null),Wi=null;function Ds(a){var l=a.alternate;Y(kn,kn.current&1),Y(mi,a),Wi===null&&(l===null||xc.current!==null||l.memoizedState!==null)&&(Wi=a)}function j0(a){Y(kn,kn.current),Y(mi,a),Wi===null&&(Wi=a)}function z3(a){a.tag===22?(Y(kn,kn.current),Y(mi,a),Wi===null&&(Wi=a)):ks()}function ks(){Y(kn,kn.current),Y(mi,mi.current)}function pi(a){G(mi),Wi===a&&(Wi=null),G(kn)}var kn=P(0);function np(a){for(var l=a;l!==null;){if(l.tag===13){var h=l.memoizedState;if(h!==null&&(h=h.dehydrated,h===null||D1(h)||k1(h)))return l}else if(l.tag===19&&(l.memoizedProps.revealOrder==="forwards"||l.memoizedProps.revealOrder==="backwards"||l.memoizedProps.revealOrder==="unstable_legacy-backwards"||l.memoizedProps.revealOrder==="together")){if((l.flags&128)!==0)return l}else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return null;l=l.return}l.sibling.return=l.return,l=l.sibling}return null}var To=0,vt=null,Wt=null,Vn=null,rp=!1,wc=!1,cu=!1,ip=0,_d=0,Sc=null,wU=0;function Tn(){throw Error(r(321))}function M0(a,l){if(l===null)return!1;for(var h=0;h<l.length&&h<a.length;h++)if(!sr(a[h],l[h]))return!1;return!0}function P0(a,l,h,v,T,M){return To=M,vt=l,l.memoizedState=null,l.updateQueue=null,l.lanes=0,Z.H=a===null||a.memoizedState===null?w4:G0,cu=!1,M=h(v,T),cu=!1,wc&&(M=F3(l,h,v,T)),B3(a),M}function B3(a){Z.H=Sd;var l=Wt!==null&&Wt.next!==null;if(To=0,Vn=Wt=vt=null,rp=!1,_d=0,Sc=null,l)throw Error(r(300));a===null||Hn||(a=a.dependencies,a!==null&&Wm(a)&&(Hn=!0))}function F3(a,l,h,v){vt=a;var T=0;do{if(wc&&(Sc=null),_d=0,wc=!1,25<=T)throw Error(r(301));if(T+=1,Vn=Wt=null,a.updateQueue!=null){var M=a.updateQueue;M.lastEffect=null,M.events=null,M.stores=null,M.memoCache!=null&&(M.memoCache.index=0)}Z.H=S4,M=l(h,v)}while(wc);return M}function SU(){var a=Z.H,l=a.useState()[0];return l=typeof l.then=="function"?xd(l):l,a=a.useState()[0],(Wt!==null?Wt.memoizedState:null)!==a&&(vt.flags|=1024),l}function R0(){var a=ip!==0;return ip=0,a}function N0(a,l,h){l.updateQueue=a.updateQueue,l.flags&=-2053,a.lanes&=~h}function L0(a){if(rp){for(a=a.memoizedState;a!==null;){var l=a.queue;l!==null&&(l.pending=null),a=a.next}rp=!1}To=0,Vn=Wt=vt=null,wc=!1,_d=ip=0,Sc=null}function kr(){var a={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vn===null?vt.memoizedState=Vn=a:Vn=Vn.next=a,Vn}function In(){if(Wt===null){var a=vt.alternate;a=a!==null?a.memoizedState:null}else a=Wt.next;var l=Vn===null?vt.memoizedState:Vn.next;if(l!==null)Vn=l,Wt=a;else{if(a===null)throw vt.alternate===null?Error(r(467)):Error(r(310));Wt=a,a={memoizedState:Wt.memoizedState,baseState:Wt.baseState,baseQueue:Wt.baseQueue,queue:Wt.queue,next:null},Vn===null?vt.memoizedState=Vn=a:Vn=Vn.next=a}return Vn}function ap(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xd(a){var l=_d;return _d+=1,Sc===null&&(Sc=[]),a=P3(Sc,a,l),l=vt,(Vn===null?l.memoizedState:Vn.next)===null&&(l=l.alternate,Z.H=l===null||l.memoizedState===null?w4:G0),a}function op(a){if(a!==null&&typeof a=="object"){if(typeof a.then=="function")return xd(a);if(a.$$typeof===O)return pr(a)}throw Error(r(438,String(a)))}function D0(a){var l=null,h=vt.updateQueue;if(h!==null&&(l=h.memoCache),l==null){var v=vt.alternate;v!==null&&(v=v.updateQueue,v!==null&&(v=v.memoCache,v!=null&&(l={data:v.data.map(function(T){return T.slice()}),index:0})))}if(l==null&&(l={data:[],index:0}),h===null&&(h=ap(),vt.updateQueue=h),h.memoCache=l,h=l.data[l.index],h===void 0)for(h=l.data[l.index]=Array(a),v=0;v<a;v++)h[v]=ee;return l.index++,h}function Oo(a,l){return typeof l=="function"?l(a):l}function sp(a){var l=In();return k0(l,Wt,a)}function k0(a,l,h){var v=a.queue;if(v===null)throw Error(r(311));v.lastRenderedReducer=h;var T=a.baseQueue,M=v.pending;if(M!==null){if(T!==null){var q=T.next;T.next=M.next,M.next=q}l.baseQueue=T=M,v.pending=null}if(M=a.baseState,T===null)a.memoizedState=M;else{l=T.next;var ie=q=null,pe=null,Ee=l,ke=!1;do{var ze=Ee.lane&-536870913;if(ze!==Ee.lane?(jt&ze)===ze:(To&ze)===ze){var Oe=Ee.revertLane;if(Oe===0)pe!==null&&(pe=pe.next={lane:0,revertLane:0,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null}),ze===vc&&(ke=!0);else if((To&Oe)===Oe){Ee=Ee.next,Oe===vc&&(ke=!0);continue}else ze={lane:0,revertLane:Ee.revertLane,gesture:null,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},pe===null?(ie=pe=ze,q=M):pe=pe.next=ze,vt.lanes|=Oe,zs|=Oe;ze=Ee.action,cu&&h(M,ze),M=Ee.hasEagerState?Ee.eagerState:h(M,ze)}else Oe={lane:ze,revertLane:Ee.revertLane,gesture:Ee.gesture,action:Ee.action,hasEagerState:Ee.hasEagerState,eagerState:Ee.eagerState,next:null},pe===null?(ie=pe=Oe,q=M):pe=pe.next=Oe,vt.lanes|=ze,zs|=ze;Ee=Ee.next}while(Ee!==null&&Ee!==l);if(pe===null?q=M:pe.next=ie,!sr(M,a.memoizedState)&&(Hn=!0,ke&&(h=yc,h!==null)))throw h;a.memoizedState=M,a.baseState=q,a.baseQueue=pe,v.lastRenderedState=M}return T===null&&(v.lanes=0),[a.memoizedState,v.dispatch]}function I0(a){var l=In(),h=l.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=a;var v=h.dispatch,T=h.pending,M=l.memoizedState;if(T!==null){h.pending=null;var q=T=T.next;do M=a(M,q.action),q=q.next;while(q!==T);sr(M,l.memoizedState)||(Hn=!0),l.memoizedState=M,l.baseQueue===null&&(l.baseState=M),h.lastRenderedState=M}return[M,v]}function $3(a,l,h){var v=vt,T=In(),M=St;if(M){if(h===void 0)throw Error(r(407));h=h()}else h=l();var q=!sr((Wt||T).memoizedState,h);if(q&&(T.memoizedState=h,Hn=!0),T=T.queue,B0(q3.bind(null,v,T,a),[a]),T.getSnapshot!==l||q||Vn!==null&&Vn.memoizedState.tag&1){if(v.flags|=2048,Cc(9,{destroy:void 0},H3.bind(null,v,T,h,l),null),Jt===null)throw Error(r(349));M||(To&127)!==0||V3(v,l,h)}return h}function V3(a,l,h){a.flags|=16384,a={getSnapshot:l,value:h},l=vt.updateQueue,l===null?(l=ap(),vt.updateQueue=l,l.stores=[a]):(h=l.stores,h===null?l.stores=[a]:h.push(a))}function H3(a,l,h,v){l.value=h,l.getSnapshot=v,G3(l)&&Y3(a)}function q3(a,l,h){return h(function(){G3(l)&&Y3(a)})}function G3(a){var l=a.getSnapshot;a=a.value;try{var h=l();return!sr(a,h)}catch{return!0}}function Y3(a){var l=Gi(a,2);l!==null&&ni(l,a,2)}function U0(a){var l=kr();if(typeof a=="function"){var h=a;if(a=h(),cu){Dt(!0);try{h()}finally{Dt(!1)}}}return l.memoizedState=l.baseState=a,l.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:a},l}function W3(a,l,h,v){return a.baseState=h,k0(a,Wt,typeof v=="function"?v:Oo)}function CU(a,l,h,v,T){if(cp(a))throw Error(r(485));if(a=l.action,a!==null){var M={payload:T,action:a,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(q){M.listeners.push(q)}};Z.T!==null?h(!0):M.isTransition=!1,v(M),h=l.pending,h===null?(M.next=l.pending=M,K3(l,M)):(M.next=h.next,l.pending=h.next=M)}}function K3(a,l){var h=l.action,v=l.payload,T=a.state;if(l.isTransition){var M=Z.T,q={};Z.T=q;try{var ie=h(T,v),pe=Z.S;pe!==null&&pe(q,ie),Z3(a,l,ie)}catch(Ee){z0(a,l,Ee)}finally{M!==null&&q.types!==null&&(M.types=q.types),Z.T=M}}else try{M=h(T,v),Z3(a,l,M)}catch(Ee){z0(a,l,Ee)}}function Z3(a,l,h){h!==null&&typeof h=="object"&&typeof h.then=="function"?h.then(function(v){X3(a,l,v)},function(v){return z0(a,l,v)}):X3(a,l,h)}function X3(a,l,h){l.status="fulfilled",l.value=h,Q3(l),a.state=h,l=a.pending,l!==null&&(h=l.next,h===l?a.pending=null:(h=h.next,l.next=h,K3(a,h)))}function z0(a,l,h){var v=a.pending;if(a.pending=null,v!==null){v=v.next;do l.status="rejected",l.reason=h,Q3(l),l=l.next;while(l!==v)}a.action=null}function Q3(a){a=a.listeners;for(var l=0;l<a.length;l++)(0,a[l])()}function J3(a,l){return l}function e4(a,l){if(St){var h=Jt.formState;if(h!==null){e:{var v=vt;if(St){if(It){t:{for(var T=It,M=Xr;T.nodeType!==8;){if(!M){T=null;break t}if(T=Ki(T.nextSibling),T===null){T=null;break t}}M=T.data,T=M==="F!"||M==="F"?T:null}if(T){It=Ki(T.nextSibling),v=T.data==="F!";break e}}Ka(v)}v=!1}v&&(l=h[0])}}return h=kr(),h.memoizedState=h.baseState=l,v={pending:null,lanes:0,dispatch:null,lastRenderedReducer:J3,lastRenderedState:l},h.queue=v,h=b4.bind(null,vt,v),v.dispatch=h,v=U0(!1),M=q0.bind(null,vt,!1,v.queue),v=kr(),T={state:l,dispatch:null,action:a,pending:null},v.queue=T,h=CU.bind(null,vt,T,M,h),T.dispatch=h,v.memoizedState=a,[l,h,!1]}function t4(a){var l=In();return n4(l,Wt,a)}function n4(a,l,h){if(l=k0(a,l,J3)[0],a=sp(Oo)[0],typeof l=="object"&&l!==null&&typeof l.then=="function")try{var v=xd(l)}catch(q){throw q===bc?Xm:q}else v=l;l=In();var T=l.queue,M=T.dispatch;return h!==l.memoizedState&&(vt.flags|=2048,Cc(9,{destroy:void 0},EU.bind(null,T,h),null)),[v,M,a]}function EU(a,l){a.action=l}function r4(a){var l=In(),h=Wt;if(h!==null)return n4(l,h,a);In(),l=l.memoizedState,h=In();var v=h.queue.dispatch;return h.memoizedState=a,[l,v,!1]}function Cc(a,l,h,v){return a={tag:a,create:h,deps:v,inst:l,next:null},l=vt.updateQueue,l===null&&(l=ap(),vt.updateQueue=l),h=l.lastEffect,h===null?l.lastEffect=a.next=a:(v=h.next,h.next=a,a.next=v,l.lastEffect=a),a}function i4(){return In().memoizedState}function lp(a,l,h,v){var T=kr();vt.flags|=a,T.memoizedState=Cc(1|l,{destroy:void 0},h,v===void 0?null:v)}function up(a,l,h,v){var T=In();v=v===void 0?null:v;var M=T.memoizedState.inst;Wt!==null&&v!==null&&M0(v,Wt.memoizedState.deps)?T.memoizedState=Cc(l,M,h,v):(vt.flags|=a,T.memoizedState=Cc(1|l,M,h,v))}function a4(a,l){lp(8390656,8,a,l)}function B0(a,l){up(2048,8,a,l)}function AU(a){vt.flags|=4;var l=vt.updateQueue;if(l===null)l=ap(),vt.updateQueue=l,l.events=[a];else{var h=l.events;h===null?l.events=[a]:h.push(a)}}function o4(a){var l=In().memoizedState;return AU({ref:l,nextImpl:a}),function(){if((Ft&2)!==0)throw Error(r(440));return l.impl.apply(void 0,arguments)}}function s4(a,l){return up(4,2,a,l)}function l4(a,l){return up(4,4,a,l)}function u4(a,l){if(typeof l=="function"){a=a();var h=l(a);return function(){typeof h=="function"?h():l(null)}}if(l!=null)return a=a(),l.current=a,function(){l.current=null}}function c4(a,l,h){h=h!=null?h.concat([a]):null,up(4,4,u4.bind(null,l,a),h)}function F0(){}function f4(a,l){var h=In();l=l===void 0?null:l;var v=h.memoizedState;return l!==null&&M0(l,v[1])?v[0]:(h.memoizedState=[a,l],a)}function d4(a,l){var h=In();l=l===void 0?null:l;var v=h.memoizedState;if(l!==null&&M0(l,v[1]))return v[0];if(v=a(),cu){Dt(!0);try{a()}finally{Dt(!1)}}return h.memoizedState=[v,l],v}function $0(a,l,h){return h===void 0||(To&1073741824)!==0&&(jt&261930)===0?a.memoizedState=l:(a.memoizedState=h,a=hE(),vt.lanes|=a,zs|=a,h)}function h4(a,l,h,v){return sr(h,l)?h:xc.current!==null?(a=$0(a,h,v),sr(a,l)||(Hn=!0),a):(To&42)===0||(To&1073741824)!==0&&(jt&261930)===0?(Hn=!0,a.memoizedState=h):(a=hE(),vt.lanes|=a,zs|=a,l)}function m4(a,l,h,v,T){var M=I.p;I.p=M!==0&&8>M?M:8;var q=Z.T,ie={};Z.T=ie,q0(a,!1,l,h);try{var pe=T(),Ee=Z.S;if(Ee!==null&&Ee(ie,pe),pe!==null&&typeof pe=="object"&&typeof pe.then=="function"){var ke=xU(pe,v);wd(a,l,ke,yi(a))}else wd(a,l,v,yi(a))}catch(ze){wd(a,l,{then:function(){},status:"rejected",reason:ze},yi())}finally{I.p=M,q!==null&&ie.types!==null&&(q.types=ie.types),Z.T=q}}function TU(){}function V0(a,l,h,v){if(a.tag!==5)throw Error(r(476));var T=p4(a).queue;m4(a,T,l,k,h===null?TU:function(){return g4(a),h(v)})}function p4(a){var l=a.memoizedState;if(l!==null)return l;l={memoizedState:k,baseState:k,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:k},next:null};var h={};return l.next={memoizedState:h,baseState:h,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Oo,lastRenderedState:h},next:null},a.memoizedState=l,a=a.alternate,a!==null&&(a.memoizedState=l),l}function g4(a){var l=p4(a);l.next===null&&(l=a.alternate.memoizedState),wd(a,l.next.queue,{},yi())}function H0(){return pr(zd)}function v4(){return In().memoizedState}function y4(){return In().memoizedState}function OU(a){for(var l=a.return;l!==null;){switch(l.tag){case 24:case 3:var h=yi();a=Ns(h);var v=Ls(l,a,h);v!==null&&(ni(v,l,h),vd(v,l,h)),l={cache:b0()},a.payload=l;return}l=l.return}}function jU(a,l,h){var v=yi();h={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},cp(a)?_4(l,h):(h=sd(a,l,h,v),h!==null&&(ni(h,a,v),x4(h,l,v)))}function b4(a,l,h){var v=yi();wd(a,l,h,v)}function wd(a,l,h,v){var T={lane:v,revertLane:0,gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null};if(cp(a))_4(l,T);else{var M=a.alternate;if(a.lanes===0&&(M===null||M.lanes===0)&&(M=l.lastRenderedReducer,M!==null))try{var q=l.lastRenderedState,ie=M(q,h);if(T.hasEagerState=!0,T.eagerState=ie,sr(ie,q))return Ya(a,l,T,0),Jt===null&&eu(),!1}catch{}finally{}if(h=sd(a,l,T,v),h!==null)return ni(h,a,v),x4(h,l,v),!0}return!1}function q0(a,l,h,v){if(v={lane:2,revertLane:S1(),gesture:null,action:v,hasEagerState:!1,eagerState:null,next:null},cp(a)){if(l)throw Error(r(479))}else l=sd(a,h,v,2),l!==null&&ni(l,a,2)}function cp(a){var l=a.alternate;return a===vt||l!==null&&l===vt}function _4(a,l){wc=rp=!0;var h=a.pending;h===null?l.next=l:(l.next=h.next,h.next=l),a.pending=l}function x4(a,l,h){if((h&4194048)!==0){var v=l.lanes;v&=a.pendingLanes,h|=v,l.lanes=h,Hr(a,h)}}var Sd={readContext:pr,use:op,useCallback:Tn,useContext:Tn,useEffect:Tn,useImperativeHandle:Tn,useLayoutEffect:Tn,useInsertionEffect:Tn,useMemo:Tn,useReducer:Tn,useRef:Tn,useState:Tn,useDebugValue:Tn,useDeferredValue:Tn,useTransition:Tn,useSyncExternalStore:Tn,useId:Tn,useHostTransitionStatus:Tn,useFormState:Tn,useActionState:Tn,useOptimistic:Tn,useMemoCache:Tn,useCacheRefresh:Tn};Sd.useEffectEvent=Tn;var w4={readContext:pr,use:op,useCallback:function(a,l){return kr().memoizedState=[a,l===void 0?null:l],a},useContext:pr,useEffect:a4,useImperativeHandle:function(a,l,h){h=h!=null?h.concat([a]):null,lp(4194308,4,u4.bind(null,l,a),h)},useLayoutEffect:function(a,l){return lp(4194308,4,a,l)},useInsertionEffect:function(a,l){lp(4,2,a,l)},useMemo:function(a,l){var h=kr();l=l===void 0?null:l;var v=a();if(cu){Dt(!0);try{a()}finally{Dt(!1)}}return h.memoizedState=[v,l],v},useReducer:function(a,l,h){var v=kr();if(h!==void 0){var T=h(l);if(cu){Dt(!0);try{h(l)}finally{Dt(!1)}}}else T=l;return v.memoizedState=v.baseState=T,a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:a,lastRenderedState:T},v.queue=a,a=a.dispatch=jU.bind(null,vt,a),[v.memoizedState,a]},useRef:function(a){var l=kr();return a={current:a},l.memoizedState=a},useState:function(a){a=U0(a);var l=a.queue,h=b4.bind(null,vt,l);return l.dispatch=h,[a.memoizedState,h]},useDebugValue:F0,useDeferredValue:function(a,l){var h=kr();return $0(h,a,l)},useTransition:function(){var a=U0(!1);return a=m4.bind(null,vt,a.queue,!0,!1),kr().memoizedState=a,[!1,a]},useSyncExternalStore:function(a,l,h){var v=vt,T=kr();if(St){if(h===void 0)throw Error(r(407));h=h()}else{if(h=l(),Jt===null)throw Error(r(349));(jt&127)!==0||V3(v,l,h)}T.memoizedState=h;var M={value:h,getSnapshot:l};return T.queue=M,a4(q3.bind(null,v,M,a),[a]),v.flags|=2048,Cc(9,{destroy:void 0},H3.bind(null,v,M,h,l),null),h},useId:function(){var a=kr(),l=Jt.identifierPrefix;if(St){var h=Xe,v=Ue;h=(v&~(1<<32-yt(v)-1)).toString(32)+h,l="_"+l+"R_"+h,h=ip++,0<h&&(l+="H"+h.toString(32)),l+="_"}else h=wU++,l="_"+l+"r_"+h.toString(32)+"_";return a.memoizedState=l},useHostTransitionStatus:H0,useFormState:e4,useActionState:e4,useOptimistic:function(a){var l=kr();l.memoizedState=l.baseState=a;var h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return l.queue=h,l=q0.bind(null,vt,!0,h),h.dispatch=l,[a,l]},useMemoCache:D0,useCacheRefresh:function(){return kr().memoizedState=OU.bind(null,vt)},useEffectEvent:function(a){var l=kr(),h={impl:a};return l.memoizedState=h,function(){if((Ft&2)!==0)throw Error(r(440));return h.impl.apply(void 0,arguments)}}},G0={readContext:pr,use:op,useCallback:f4,useContext:pr,useEffect:B0,useImperativeHandle:c4,useInsertionEffect:s4,useLayoutEffect:l4,useMemo:d4,useReducer:sp,useRef:i4,useState:function(){return sp(Oo)},useDebugValue:F0,useDeferredValue:function(a,l){var h=In();return h4(h,Wt.memoizedState,a,l)},useTransition:function(){var a=sp(Oo)[0],l=In().memoizedState;return[typeof a=="boolean"?a:xd(a),l]},useSyncExternalStore:$3,useId:v4,useHostTransitionStatus:H0,useFormState:t4,useActionState:t4,useOptimistic:function(a,l){var h=In();return W3(h,Wt,a,l)},useMemoCache:D0,useCacheRefresh:y4};G0.useEffectEvent=o4;var S4={readContext:pr,use:op,useCallback:f4,useContext:pr,useEffect:B0,useImperativeHandle:c4,useInsertionEffect:s4,useLayoutEffect:l4,useMemo:d4,useReducer:I0,useRef:i4,useState:function(){return I0(Oo)},useDebugValue:F0,useDeferredValue:function(a,l){var h=In();return Wt===null?$0(h,a,l):h4(h,Wt.memoizedState,a,l)},useTransition:function(){var a=I0(Oo)[0],l=In().memoizedState;return[typeof a=="boolean"?a:xd(a),l]},useSyncExternalStore:$3,useId:v4,useHostTransitionStatus:H0,useFormState:r4,useActionState:r4,useOptimistic:function(a,l){var h=In();return Wt!==null?W3(h,Wt,a,l):(h.baseState=a,[a,h.queue.dispatch])},useMemoCache:D0,useCacheRefresh:y4};S4.useEffectEvent=o4;function Y0(a,l,h,v){l=a.memoizedState,h=h(v,l),h=h==null?l:p({},l,h),a.memoizedState=h,a.lanes===0&&(a.updateQueue.baseState=h)}var W0={enqueueSetState:function(a,l,h){a=a._reactInternals;var v=yi(),T=Ns(v);T.payload=l,h!=null&&(T.callback=h),l=Ls(a,T,v),l!==null&&(ni(l,a,v),vd(l,a,v))},enqueueReplaceState:function(a,l,h){a=a._reactInternals;var v=yi(),T=Ns(v);T.tag=1,T.payload=l,h!=null&&(T.callback=h),l=Ls(a,T,v),l!==null&&(ni(l,a,v),vd(l,a,v))},enqueueForceUpdate:function(a,l){a=a._reactInternals;var h=yi(),v=Ns(h);v.tag=2,l!=null&&(v.callback=l),l=Ls(a,v,h),l!==null&&(ni(l,a,h),vd(l,a,h))}};function C4(a,l,h,v,T,M,q){return a=a.stateNode,typeof a.shouldComponentUpdate=="function"?a.shouldComponentUpdate(v,M,q):l.prototype&&l.prototype.isPureReactComponent?!As(h,v)||!As(T,M):!0}function E4(a,l,h,v){a=l.state,typeof l.componentWillReceiveProps=="function"&&l.componentWillReceiveProps(h,v),typeof l.UNSAFE_componentWillReceiveProps=="function"&&l.UNSAFE_componentWillReceiveProps(h,v),l.state!==a&&W0.enqueueReplaceState(l,l.state,null)}function fu(a,l){var h=l;if("ref"in l){h={};for(var v in l)v!=="ref"&&(h[v]=l[v])}if(a=a.defaultProps){h===l&&(h=p({},h));for(var T in a)h[T]===void 0&&(h[T]=a[T])}return h}function A4(a){Jl(a)}function T4(a){console.error(a)}function O4(a){Jl(a)}function fp(a,l){try{var h=a.onUncaughtError;h(l.value,{componentStack:l.stack})}catch(v){setTimeout(function(){throw v})}}function j4(a,l,h){try{var v=a.onCaughtError;v(h.value,{componentStack:h.stack,errorBoundary:l.tag===1?l.stateNode:null})}catch(T){setTimeout(function(){throw T})}}function K0(a,l,h){return h=Ns(h),h.tag=3,h.payload={element:null},h.callback=function(){fp(a,l)},h}function M4(a){return a=Ns(a),a.tag=3,a}function P4(a,l,h,v){var T=h.type.getDerivedStateFromError;if(typeof T=="function"){var M=v.value;a.payload=function(){return T(M)},a.callback=function(){j4(l,h,v)}}var q=h.stateNode;q!==null&&typeof q.componentDidCatch=="function"&&(a.callback=function(){j4(l,h,v),typeof T!="function"&&(Bs===null?Bs=new Set([this]):Bs.add(this));var ie=v.stack;this.componentDidCatch(v.value,{componentStack:ie!==null?ie:""})})}function MU(a,l,h,v,T){if(h.flags|=32768,v!==null&&typeof v=="object"&&typeof v.then=="function"){if(l=h.alternate,l!==null&&gc(l,h,T,!0),h=mi.current,h!==null){switch(h.tag){case 31:case 13:return Wi===null?Sp():h.alternate===null&&On===0&&(On=3),h.flags&=-257,h.flags|=65536,h.lanes=T,v===Qm?h.flags|=16384:(l=h.updateQueue,l===null?h.updateQueue=new Set([v]):l.add(v),_1(a,v,T)),!1;case 22:return h.flags|=65536,v===Qm?h.flags|=16384:(l=h.updateQueue,l===null?(l={transitions:null,markerInstances:null,retryQueue:new Set([v])},h.updateQueue=l):(h=l.retryQueue,h===null?l.retryQueue=new Set([v]):h.add(v)),_1(a,v,T)),!1}throw Error(r(435,h.tag))}return _1(a,v,T),Sp(),!1}if(St)return l=mi.current,l!==null?((l.flags&65536)===0&&(l.flags|=256),l.flags|=65536,l.lanes=T,v!==pc&&(a=Error(r(422),{cause:v}),ru(g(a,h)))):(v!==pc&&(l=Error(r(423),{cause:v}),ru(g(l,h))),a=a.current.alternate,a.flags|=65536,T&=-T,a.lanes|=T,v=g(v,h),T=K0(a.stateNode,v,T),E0(a,T),On!==4&&(On=2)),!1;var M=Error(r(520),{cause:v});if(M=g(M,h),Pd===null?Pd=[M]:Pd.push(M),On!==4&&(On=2),l===null)return!0;v=g(v,h),h=l;do{switch(h.tag){case 3:return h.flags|=65536,a=T&-T,h.lanes|=a,a=K0(h.stateNode,v,a),E0(h,a),!1;case 1:if(l=h.type,M=h.stateNode,(h.flags&128)===0&&(typeof l.getDerivedStateFromError=="function"||M!==null&&typeof M.componentDidCatch=="function"&&(Bs===null||!Bs.has(M))))return h.flags|=65536,T&=-T,h.lanes|=T,T=M4(T),P4(T,a,h,v),E0(h,T),!1}h=h.return}while(h!==null);return!1}var Z0=Error(r(461)),Hn=!1;function gr(a,l,h,v){l.child=a===null?D3(l,null,h,v):uu(l,a.child,h,v)}function R4(a,l,h,v,T){h=h.render;var M=l.ref;if("ref"in v){var q={};for(var ie in v)ie!=="ref"&&(q[ie]=v[ie])}else q=v;return au(l),v=P0(a,l,h,q,M,T),ie=R0(),a!==null&&!Hn?(N0(a,l,T),jo(a,l,T)):(St&&ie&&Qn(l),l.flags|=1,gr(a,l,v,T),l.child)}function N4(a,l,h,v,T){if(a===null){var M=h.type;return typeof M=="function"&&!hc(M)&&M.defaultProps===void 0&&h.compare===null?(l.tag=15,l.type=M,L4(a,l,M,v,T)):(a=nu(h.type,null,v,l,l.mode,T),a.ref=l.ref,a.return=l,l.child=a)}if(M=a.child,!i1(a,T)){var q=M.memoizedProps;if(h=h.compare,h=h!==null?h:As,h(q,v)&&a.ref===l.ref)return jo(a,l,T)}return l.flags|=1,a=Yi(M,v),a.ref=l.ref,a.return=l,l.child=a}function L4(a,l,h,v,T){if(a!==null){var M=a.memoizedProps;if(As(M,v)&&a.ref===l.ref)if(Hn=!1,l.pendingProps=v=M,i1(a,T))(a.flags&131072)!==0&&(Hn=!0);else return l.lanes=a.lanes,jo(a,l,T)}return X0(a,l,h,v,T)}function D4(a,l,h,v){var T=v.children,M=a!==null?a.memoizedState:null;if(a===null&&l.stateNode===null&&(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),v.mode==="hidden"){if((l.flags&128)!==0){if(M=M!==null?M.baseLanes|h:h,a!==null){for(v=l.child=a.child,T=0;v!==null;)T=T|v.lanes|v.childLanes,v=v.sibling;v=T&~M}else v=0,l.child=null;return k4(a,l,M,h,v)}if((h&536870912)!==0)l.memoizedState={baseLanes:0,cachePool:null},a!==null&&Zm(l,M!==null?M.cachePool:null),M!==null?U3(l,M):T0(),z3(l);else return v=l.lanes=536870912,k4(a,l,M!==null?M.baseLanes|h:h,h,v)}else M!==null?(Zm(l,M.cachePool),U3(l,M),ks(),l.memoizedState=null):(a!==null&&Zm(l,null),T0(),ks());return gr(a,l,T,h),l.child}function Cd(a,l){return a!==null&&a.tag===22||l.stateNode!==null||(l.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),l.sibling}function k4(a,l,h,v,T){var M=x0();return M=M===null?null:{parent:$n._currentValue,pool:M},l.memoizedState={baseLanes:h,cachePool:M},a!==null&&Zm(l,null),T0(),z3(l),a!==null&&gc(a,l,v,!0),l.childLanes=T,null}function dp(a,l){return l=mp({mode:l.mode,children:l.children},a.mode),l.ref=a.ref,a.child=l,l.return=a,l}function I4(a,l,h){return uu(l,a.child,null,h),a=dp(l,l.pendingProps),a.flags|=2,pi(l),l.memoizedState=null,a}function PU(a,l,h){var v=l.pendingProps,T=(l.flags&128)!==0;if(l.flags&=-129,a===null){if(St){if(v.mode==="hidden")return a=dp(l,v),l.lanes=536870912,Cd(null,a);if(j0(l),(a=It)?(a=KE(a,Xr),a=a!==null&&a.data==="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:Te!==null?{id:Ue,overflow:Xe}:null,retryLane:536870912,hydrationErrors:null},h=ud(a),h.return=l,l.child=h,kt=l,It=null)):a=null,a===null)throw Ka(l);return l.lanes=536870912,null}return dp(l,v)}var M=a.memoizedState;if(M!==null){var q=M.dehydrated;if(j0(l),T)if(l.flags&256)l.flags&=-257,l=I4(a,l,h);else if(l.memoizedState!==null)l.child=a.child,l.flags|=128,l=null;else throw Error(r(558));else if(Hn||gc(a,l,h,!1),T=(h&a.childLanes)!==0,Hn||T){if(v=Jt,v!==null&&(q=qr(v,h),q!==0&&q!==M.retryLane))throw M.retryLane=q,Gi(a,q),ni(v,a,q),Z0;Sp(),l=I4(a,l,h)}else a=M.treeContext,It=Ki(q.nextSibling),kt=l,St=!0,Wa=null,Xr=!1,a!==null&&Dr(l,a),l=dp(l,v),l.flags|=4096;return l}return a=Yi(a.child,{mode:v.mode,children:v.children}),a.ref=l.ref,l.child=a,a.return=l,a}function hp(a,l){var h=l.ref;if(h===null)a!==null&&a.ref!==null&&(l.flags|=4194816);else{if(typeof h!="function"&&typeof h!="object")throw Error(r(284));(a===null||a.ref!==h)&&(l.flags|=4194816)}}function X0(a,l,h,v,T){return au(l),h=P0(a,l,h,v,void 0,T),v=R0(),a!==null&&!Hn?(N0(a,l,T),jo(a,l,T)):(St&&v&&Qn(l),l.flags|=1,gr(a,l,h,T),l.child)}function U4(a,l,h,v,T,M){return au(l),l.updateQueue=null,h=F3(l,v,h,T),B3(a),v=R0(),a!==null&&!Hn?(N0(a,l,M),jo(a,l,M)):(St&&v&&Qn(l),l.flags|=1,gr(a,l,h,M),l.child)}function z4(a,l,h,v,T){if(au(l),l.stateNode===null){var M=So,q=h.contextType;typeof q=="object"&&q!==null&&(M=pr(q)),M=new h(v,M),l.memoizedState=M.state!==null&&M.state!==void 0?M.state:null,M.updater=W0,l.stateNode=M,M._reactInternals=l,M=l.stateNode,M.props=v,M.state=l.memoizedState,M.refs={},S0(l),q=h.contextType,M.context=typeof q=="object"&&q!==null?pr(q):So,M.state=l.memoizedState,q=h.getDerivedStateFromProps,typeof q=="function"&&(Y0(l,h,q,v),M.state=l.memoizedState),typeof h.getDerivedStateFromProps=="function"||typeof M.getSnapshotBeforeUpdate=="function"||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(q=M.state,typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount(),q!==M.state&&W0.enqueueReplaceState(M,M.state,null),bd(l,v,M,T),yd(),M.state=l.memoizedState),typeof M.componentDidMount=="function"&&(l.flags|=4194308),v=!0}else if(a===null){M=l.stateNode;var ie=l.memoizedProps,pe=fu(h,ie);M.props=pe;var Ee=M.context,ke=h.contextType;q=So,typeof ke=="object"&&ke!==null&&(q=pr(ke));var ze=h.getDerivedStateFromProps;ke=typeof ze=="function"||typeof M.getSnapshotBeforeUpdate=="function",ie=l.pendingProps!==ie,ke||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(ie||Ee!==q)&&E4(l,M,v,q),Rs=!1;var Oe=l.memoizedState;M.state=Oe,bd(l,v,M,T),yd(),Ee=l.memoizedState,ie||Oe!==Ee||Rs?(typeof ze=="function"&&(Y0(l,h,ze,v),Ee=l.memoizedState),(pe=Rs||C4(l,h,pe,v,Oe,Ee,q))?(ke||typeof M.UNSAFE_componentWillMount!="function"&&typeof M.componentWillMount!="function"||(typeof M.componentWillMount=="function"&&M.componentWillMount(),typeof M.UNSAFE_componentWillMount=="function"&&M.UNSAFE_componentWillMount()),typeof M.componentDidMount=="function"&&(l.flags|=4194308)):(typeof M.componentDidMount=="function"&&(l.flags|=4194308),l.memoizedProps=v,l.memoizedState=Ee),M.props=v,M.state=Ee,M.context=q,v=pe):(typeof M.componentDidMount=="function"&&(l.flags|=4194308),v=!1)}else{M=l.stateNode,C0(a,l),q=l.memoizedProps,ke=fu(h,q),M.props=ke,ze=l.pendingProps,Oe=M.context,Ee=h.contextType,pe=So,typeof Ee=="object"&&Ee!==null&&(pe=pr(Ee)),ie=h.getDerivedStateFromProps,(Ee=typeof ie=="function"||typeof M.getSnapshotBeforeUpdate=="function")||typeof M.UNSAFE_componentWillReceiveProps!="function"&&typeof M.componentWillReceiveProps!="function"||(q!==ze||Oe!==pe)&&E4(l,M,v,pe),Rs=!1,Oe=l.memoizedState,M.state=Oe,bd(l,v,M,T),yd();var Ne=l.memoizedState;q!==ze||Oe!==Ne||Rs||a!==null&&a.dependencies!==null&&Wm(a.dependencies)?(typeof ie=="function"&&(Y0(l,h,ie,v),Ne=l.memoizedState),(ke=Rs||C4(l,h,ke,v,Oe,Ne,pe)||a!==null&&a.dependencies!==null&&Wm(a.dependencies))?(Ee||typeof M.UNSAFE_componentWillUpdate!="function"&&typeof M.componentWillUpdate!="function"||(typeof M.componentWillUpdate=="function"&&M.componentWillUpdate(v,Ne,pe),typeof M.UNSAFE_componentWillUpdate=="function"&&M.UNSAFE_componentWillUpdate(v,Ne,pe)),typeof M.componentDidUpdate=="function"&&(l.flags|=4),typeof M.getSnapshotBeforeUpdate=="function"&&(l.flags|=1024)):(typeof M.componentDidUpdate!="function"||q===a.memoizedProps&&Oe===a.memoizedState||(l.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||q===a.memoizedProps&&Oe===a.memoizedState||(l.flags|=1024),l.memoizedProps=v,l.memoizedState=Ne),M.props=v,M.state=Ne,M.context=pe,v=ke):(typeof M.componentDidUpdate!="function"||q===a.memoizedProps&&Oe===a.memoizedState||(l.flags|=4),typeof M.getSnapshotBeforeUpdate!="function"||q===a.memoizedProps&&Oe===a.memoizedState||(l.flags|=1024),v=!1)}return M=v,hp(a,l),v=(l.flags&128)!==0,M||v?(M=l.stateNode,h=v&&typeof h.getDerivedStateFromError!="function"?null:M.render(),l.flags|=1,a!==null&&v?(l.child=uu(l,a.child,null,T),l.child=uu(l,null,h,T)):gr(a,l,h,T),l.memoizedState=M.state,a=l.child):a=jo(a,l,T),a}function B4(a,l,h,v){return Eo(),l.flags|=256,gr(a,l,h,v),l.child}var Q0={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function J0(a){return{baseLanes:a,cachePool:j3()}}function e1(a,l,h){return a=a!==null?a.childLanes&~h:0,l&&(a|=vi),a}function F4(a,l,h){var v=l.pendingProps,T=!1,M=(l.flags&128)!==0,q;if((q=M)||(q=a!==null&&a.memoizedState===null?!1:(kn.current&2)!==0),q&&(T=!0,l.flags&=-129),q=(l.flags&32)!==0,l.flags&=-33,a===null){if(St){if(T?Ds(l):ks(),(a=It)?(a=KE(a,Xr),a=a!==null&&a.data!=="&"?a:null,a!==null&&(l.memoizedState={dehydrated:a,treeContext:Te!==null?{id:Ue,overflow:Xe}:null,retryLane:536870912,hydrationErrors:null},h=ud(a),h.return=l,l.child=h,kt=l,It=null)):a=null,a===null)throw Ka(l);return k1(a)?l.lanes=32:l.lanes=536870912,null}var ie=v.children;return v=v.fallback,T?(ks(),T=l.mode,ie=mp({mode:"hidden",children:ie},T),v=Co(v,T,h,null),ie.return=l,v.return=l,ie.sibling=v,l.child=ie,v=l.child,v.memoizedState=J0(h),v.childLanes=e1(a,q,h),l.memoizedState=Q0,Cd(null,v)):(Ds(l),t1(l,ie))}var pe=a.memoizedState;if(pe!==null&&(ie=pe.dehydrated,ie!==null)){if(M)l.flags&256?(Ds(l),l.flags&=-257,l=n1(a,l,h)):l.memoizedState!==null?(ks(),l.child=a.child,l.flags|=128,l=null):(ks(),ie=v.fallback,T=l.mode,v=mp({mode:"visible",children:v.children},T),ie=Co(ie,T,h,null),ie.flags|=2,v.return=l,ie.return=l,v.sibling=ie,l.child=v,uu(l,a.child,null,h),v=l.child,v.memoizedState=J0(h),v.childLanes=e1(a,q,h),l.memoizedState=Q0,l=Cd(null,v));else if(Ds(l),k1(ie)){if(q=ie.nextSibling&&ie.nextSibling.dataset,q)var Ee=q.dgst;q=Ee,v=Error(r(419)),v.stack="",v.digest=q,ru({value:v,source:null,stack:null}),l=n1(a,l,h)}else if(Hn||gc(a,l,h,!1),q=(h&a.childLanes)!==0,Hn||q){if(q=Jt,q!==null&&(v=qr(q,h),v!==0&&v!==pe.retryLane))throw pe.retryLane=v,Gi(a,v),ni(q,a,v),Z0;D1(ie)||Sp(),l=n1(a,l,h)}else D1(ie)?(l.flags|=192,l.child=a.child,l=null):(a=pe.treeContext,It=Ki(ie.nextSibling),kt=l,St=!0,Wa=null,Xr=!1,a!==null&&Dr(l,a),l=t1(l,v.children),l.flags|=4096);return l}return T?(ks(),ie=v.fallback,T=l.mode,pe=a.child,Ee=pe.sibling,v=Yi(pe,{mode:"hidden",children:v.children}),v.subtreeFlags=pe.subtreeFlags&65011712,Ee!==null?ie=Yi(Ee,ie):(ie=Co(ie,T,h,null),ie.flags|=2),ie.return=l,v.return=l,v.sibling=ie,l.child=v,Cd(null,v),v=l.child,ie=a.child.memoizedState,ie===null?ie=J0(h):(T=ie.cachePool,T!==null?(pe=$n._currentValue,T=T.parent!==pe?{parent:pe,pool:pe}:T):T=j3(),ie={baseLanes:ie.baseLanes|h,cachePool:T}),v.memoizedState=ie,v.childLanes=e1(a,q,h),l.memoizedState=Q0,Cd(a.child,v)):(Ds(l),h=a.child,a=h.sibling,h=Yi(h,{mode:"visible",children:v.children}),h.return=l,h.sibling=null,a!==null&&(q=l.deletions,q===null?(l.deletions=[a],l.flags|=16):q.push(a)),l.child=h,l.memoizedState=null,h)}function t1(a,l){return l=mp({mode:"visible",children:l},a.mode),l.return=a,a.child=l}function mp(a,l){return a=Ar(22,a,null,l),a.lanes=0,a}function n1(a,l,h){return uu(l,a.child,null,h),a=t1(l,l.pendingProps.children),a.flags|=2,l.memoizedState=null,a}function $4(a,l,h){a.lanes|=l;var v=a.alternate;v!==null&&(v.lanes|=l),v0(a.return,l,h)}function r1(a,l,h,v,T,M){var q=a.memoizedState;q===null?a.memoizedState={isBackwards:l,rendering:null,renderingStartTime:0,last:v,tail:h,tailMode:T,treeForkCount:M}:(q.isBackwards=l,q.rendering=null,q.renderingStartTime=0,q.last=v,q.tail=h,q.tailMode=T,q.treeForkCount=M)}function V4(a,l,h){var v=l.pendingProps,T=v.revealOrder,M=v.tail;v=v.children;var q=kn.current,ie=(q&2)!==0;if(ie?(q=q&1|2,l.flags|=128):q&=1,Y(kn,q),gr(a,l,v,h),v=St?re:0,!ie&&a!==null&&(a.flags&128)!==0)e:for(a=l.child;a!==null;){if(a.tag===13)a.memoizedState!==null&&$4(a,h,l);else if(a.tag===19)$4(a,h,l);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===l)break e;for(;a.sibling===null;){if(a.return===null||a.return===l)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}switch(T){case"forwards":for(h=l.child,T=null;h!==null;)a=h.alternate,a!==null&&np(a)===null&&(T=h),h=h.sibling;h=T,h===null?(T=l.child,l.child=null):(T=h.sibling,h.sibling=null),r1(l,!1,T,h,M,v);break;case"backwards":case"unstable_legacy-backwards":for(h=null,T=l.child,l.child=null;T!==null;){if(a=T.alternate,a!==null&&np(a)===null){l.child=T;break}a=T.sibling,T.sibling=h,h=T,T=a}r1(l,!0,h,null,M,v);break;case"together":r1(l,!1,null,null,void 0,v);break;default:l.memoizedState=null}return l.child}function jo(a,l,h){if(a!==null&&(l.dependencies=a.dependencies),zs|=l.lanes,(h&l.childLanes)===0)if(a!==null){if(gc(a,l,h,!1),(h&l.childLanes)===0)return null}else return null;if(a!==null&&l.child!==a.child)throw Error(r(153));if(l.child!==null){for(a=l.child,h=Yi(a,a.pendingProps),l.child=h,h.return=l;a.sibling!==null;)a=a.sibling,h=h.sibling=Yi(a,a.pendingProps),h.return=l;h.sibling=null}return l.child}function i1(a,l){return(a.lanes&l)!==0?!0:(a=a.dependencies,!!(a!==null&&Wm(a)))}function RU(a,l,h){switch(l.tag){case 3:D(l,l.stateNode.containerInfo),Ps(l,$n,a.memoizedState.cache),Eo();break;case 27:case 5:W(l);break;case 4:D(l,l.stateNode.containerInfo);break;case 10:Ps(l,l.type,l.memoizedProps.value);break;case 31:if(l.memoizedState!==null)return l.flags|=128,j0(l),null;break;case 13:var v=l.memoizedState;if(v!==null)return v.dehydrated!==null?(Ds(l),l.flags|=128,null):(h&l.child.childLanes)!==0?F4(a,l,h):(Ds(l),a=jo(a,l,h),a!==null?a.sibling:null);Ds(l);break;case 19:var T=(a.flags&128)!==0;if(v=(h&l.childLanes)!==0,v||(gc(a,l,h,!1),v=(h&l.childLanes)!==0),T){if(v)return V4(a,l,h);l.flags|=128}if(T=l.memoizedState,T!==null&&(T.rendering=null,T.tail=null,T.lastEffect=null),Y(kn,kn.current),v)break;return null;case 22:return l.lanes=0,D4(a,l,h,l.pendingProps);case 24:Ps(l,$n,a.memoizedState.cache)}return jo(a,l,h)}function H4(a,l,h){if(a!==null)if(a.memoizedProps!==l.pendingProps)Hn=!0;else{if(!i1(a,h)&&(l.flags&128)===0)return Hn=!1,RU(a,l,h);Hn=(a.flags&131072)!==0}else Hn=!1,St&&(l.flags&1048576)!==0&&bt(l,re,l.index);switch(l.lanes=0,l.tag){case 16:e:{var v=l.pendingProps;if(a=su(l.elementType),l.type=a,typeof a=="function")hc(a)?(v=fu(a,v),l.tag=1,l=z4(null,l,a,v,h)):(l.tag=0,l=X0(null,l,a,v,h));else{if(a!=null){var T=a.$$typeof;if(T===N){l.tag=11,l=R4(null,l,a,v,h);break e}else if(T===K){l.tag=14,l=N4(null,l,a,v,h);break e}}throw l=Q(a)||a,Error(r(306,l,""))}}return l;case 0:return X0(a,l,l.type,l.pendingProps,h);case 1:return v=l.type,T=fu(v,l.pendingProps),z4(a,l,v,T,h);case 3:e:{if(D(l,l.stateNode.containerInfo),a===null)throw Error(r(387));v=l.pendingProps;var M=l.memoizedState;T=M.element,C0(a,l),bd(l,v,null,h);var q=l.memoizedState;if(v=q.cache,Ps(l,$n,v),v!==M.cache&&y0(l,[$n],h,!0),yd(),v=q.element,M.isDehydrated)if(M={element:v,isDehydrated:!1,cache:q.cache},l.updateQueue.baseState=M,l.memoizedState=M,l.flags&256){l=B4(a,l,v,h);break e}else if(v!==T){T=g(Error(r(424)),l),ru(T),l=B4(a,l,v,h);break e}else{switch(a=l.stateNode.containerInfo,a.nodeType){case 9:a=a.body;break;default:a=a.nodeName==="HTML"?a.ownerDocument.body:a}for(It=Ki(a.firstChild),kt=l,St=!0,Wa=null,Xr=!0,h=D3(l,null,v,h),l.child=h;h;)h.flags=h.flags&-3|4096,h=h.sibling}else{if(Eo(),v===T){l=jo(a,l,h);break e}gr(a,l,v,h)}l=l.child}return l;case 26:return hp(a,l),a===null?(h=tA(l.type,null,l.pendingProps,null))?l.memoizedState=h:St||(h=l.type,a=l.pendingProps,v=Mp(fe.current).createElement(h),v[Bn]=l,v[or]=a,vr(v,h,a),Fn(v),l.stateNode=v):l.memoizedState=tA(l.type,a.memoizedProps,l.pendingProps,a.memoizedState),null;case 27:return W(l),a===null&&St&&(v=l.stateNode=QE(l.type,l.pendingProps,fe.current),kt=l,Xr=!0,T=It,Hs(l.type)?(I1=T,It=Ki(v.firstChild)):It=T),gr(a,l,l.pendingProps.children,h),hp(a,l),a===null&&(l.flags|=4194304),l.child;case 5:return a===null&&St&&((T=v=It)&&(v=lz(v,l.type,l.pendingProps,Xr),v!==null?(l.stateNode=v,kt=l,It=Ki(v.firstChild),Xr=!1,T=!0):T=!1),T||Ka(l)),W(l),T=l.type,M=l.pendingProps,q=a!==null?a.memoizedProps:null,v=M.children,R1(T,M)?v=null:q!==null&&R1(T,q)&&(l.flags|=32),l.memoizedState!==null&&(T=P0(a,l,SU,null,null,h),zd._currentValue=T),hp(a,l),gr(a,l,v,h),l.child;case 6:return a===null&&St&&((a=h=It)&&(h=uz(h,l.pendingProps,Xr),h!==null?(l.stateNode=h,kt=l,It=null,a=!0):a=!1),a||Ka(l)),null;case 13:return F4(a,l,h);case 4:return D(l,l.stateNode.containerInfo),v=l.pendingProps,a===null?l.child=uu(l,null,v,h):gr(a,l,v,h),l.child;case 11:return R4(a,l,l.type,l.pendingProps,h);case 7:return gr(a,l,l.pendingProps,h),l.child;case 8:return gr(a,l,l.pendingProps.children,h),l.child;case 12:return gr(a,l,l.pendingProps.children,h),l.child;case 10:return v=l.pendingProps,Ps(l,l.type,v.value),gr(a,l,v.children,h),l.child;case 9:return T=l.type._context,v=l.pendingProps.children,au(l),T=pr(T),v=v(T),l.flags|=1,gr(a,l,v,h),l.child;case 14:return N4(a,l,l.type,l.pendingProps,h);case 15:return L4(a,l,l.type,l.pendingProps,h);case 19:return V4(a,l,h);case 31:return PU(a,l,h);case 22:return D4(a,l,h,l.pendingProps);case 24:return au(l),v=pr($n),a===null?(T=x0(),T===null&&(T=Jt,M=b0(),T.pooledCache=M,M.refCount++,M!==null&&(T.pooledCacheLanes|=h),T=M),l.memoizedState={parent:v,cache:T},S0(l),Ps(l,$n,T)):((a.lanes&h)!==0&&(C0(a,l),bd(l,null,null,h),yd()),T=a.memoizedState,M=l.memoizedState,T.parent!==v?(T={parent:v,cache:v},l.memoizedState=T,l.lanes===0&&(l.memoizedState=l.updateQueue.baseState=T),Ps(l,$n,v)):(v=M.cache,Ps(l,$n,v),v!==T.cache&&y0(l,[$n],h,!0))),gr(a,l,l.pendingProps.children,h),l.child;case 29:throw l.pendingProps}throw Error(r(156,l.tag))}function Mo(a){a.flags|=4}function a1(a,l,h,v,T){if((l=(a.mode&32)!==0)&&(l=!1),l){if(a.flags|=16777216,(T&335544128)===T)if(a.stateNode.complete)a.flags|=8192;else if(vE())a.flags|=8192;else throw lu=Qm,w0}else a.flags&=-16777217}function q4(a,l){if(l.type!=="stylesheet"||(l.state.loading&4)!==0)a.flags&=-16777217;else if(a.flags|=16777216,!oA(l))if(vE())a.flags|=8192;else throw lu=Qm,w0}function pp(a,l){l!==null&&(a.flags|=4),a.flags&16384&&(l=a.tag!==22?hn():536870912,a.lanes|=l,Oc|=l)}function Ed(a,l){if(!St)switch(a.tailMode){case"hidden":l=a.tail;for(var h=null;l!==null;)l.alternate!==null&&(h=l),l=l.sibling;h===null?a.tail=null:h.sibling=null;break;case"collapsed":h=a.tail;for(var v=null;h!==null;)h.alternate!==null&&(v=h),h=h.sibling;v===null?l||a.tail===null?a.tail=null:a.tail.sibling=null:v.sibling=null}}function on(a){var l=a.alternate!==null&&a.alternate.child===a.child,h=0,v=0;if(l)for(var T=a.child;T!==null;)h|=T.lanes|T.childLanes,v|=T.subtreeFlags&65011712,v|=T.flags&65011712,T.return=a,T=T.sibling;else for(T=a.child;T!==null;)h|=T.lanes|T.childLanes,v|=T.subtreeFlags,v|=T.flags,T.return=a,T=T.sibling;return a.subtreeFlags|=v,a.childLanes=h,l}function NU(a,l,h){var v=l.pendingProps;switch(An(l),l.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return on(l),null;case 1:return on(l),null;case 3:return h=l.stateNode,v=null,a!==null&&(v=a.memoizedState.cache),l.memoizedState.cache!==v&&(l.flags|=2048),Ao($n),B(),h.pendingContext&&(h.context=h.pendingContext,h.pendingContext=null),(a===null||a.child===null)&&(ha(l)?Mo(l):a===null||a.memoizedState.isDehydrated&&(l.flags&256)===0||(l.flags|=1024,dd())),on(l),null;case 26:var T=l.type,M=l.memoizedState;return a===null?(Mo(l),M!==null?(on(l),q4(l,M)):(on(l),a1(l,T,null,v,h))):M?M!==a.memoizedState?(Mo(l),on(l),q4(l,M)):(on(l),l.flags&=-16777217):(a=a.memoizedProps,a!==v&&Mo(l),on(l),a1(l,T,a,v,h)),null;case 27:if(le(l),h=fe.current,T=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==v&&Mo(l);else{if(!v){if(l.stateNode===null)throw Error(r(166));return on(l),null}a=te.current,ha(l)?fd(l):(a=QE(T,v,h),l.stateNode=a,Mo(l))}return on(l),null;case 5:if(le(l),T=l.type,a!==null&&l.stateNode!=null)a.memoizedProps!==v&&Mo(l);else{if(!v){if(l.stateNode===null)throw Error(r(166));return on(l),null}if(M=te.current,ha(l))fd(l);else{var q=Mp(fe.current);switch(M){case 1:M=q.createElementNS("http://www.w3.org/2000/svg",T);break;case 2:M=q.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;default:switch(T){case"svg":M=q.createElementNS("http://www.w3.org/2000/svg",T);break;case"math":M=q.createElementNS("http://www.w3.org/1998/Math/MathML",T);break;case"script":M=q.createElement("div"),M.innerHTML="<script><\/script>",M=M.removeChild(M.firstChild);break;case"select":M=typeof v.is=="string"?q.createElement("select",{is:v.is}):q.createElement("select"),v.multiple?M.multiple=!0:v.size&&(M.size=v.size);break;default:M=typeof v.is=="string"?q.createElement(T,{is:v.is}):q.createElement(T)}}M[Bn]=l,M[or]=v;e:for(q=l.child;q!==null;){if(q.tag===5||q.tag===6)M.appendChild(q.stateNode);else if(q.tag!==4&&q.tag!==27&&q.child!==null){q.child.return=q,q=q.child;continue}if(q===l)break e;for(;q.sibling===null;){if(q.return===null||q.return===l)break e;q=q.return}q.sibling.return=q.return,q=q.sibling}l.stateNode=M;e:switch(vr(M,T,v),T){case"button":case"input":case"select":case"textarea":v=!!v.autoFocus;break e;case"img":v=!0;break e;default:v=!1}v&&Mo(l)}}return on(l),a1(l,l.type,a===null?null:a.memoizedProps,l.pendingProps,h),null;case 6:if(a&&l.stateNode!=null)a.memoizedProps!==v&&Mo(l);else{if(typeof v!="string"&&l.stateNode===null)throw Error(r(166));if(a=fe.current,ha(l)){if(a=l.stateNode,h=l.memoizedProps,v=null,T=kt,T!==null)switch(T.tag){case 27:case 5:v=T.memoizedProps}a[Bn]=l,a=!!(a.nodeValue===h||v!==null&&v.suppressHydrationWarning===!0||FE(a.nodeValue,h)),a||Ka(l,!0)}else a=Mp(a).createTextNode(v),a[Bn]=l,l.stateNode=a}return on(l),null;case 31:if(h=l.memoizedState,a===null||a.memoizedState!==null){if(v=ha(l),h!==null){if(a===null){if(!v)throw Error(r(318));if(a=l.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(r(557));a[Bn]=l}else Eo(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;on(l),a=!1}else h=dd(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=h),a=!0;if(!a)return l.flags&256?(pi(l),l):(pi(l),null);if((l.flags&128)!==0)throw Error(r(558))}return on(l),null;case 13:if(v=l.memoizedState,a===null||a.memoizedState!==null&&a.memoizedState.dehydrated!==null){if(T=ha(l),v!==null&&v.dehydrated!==null){if(a===null){if(!T)throw Error(r(318));if(T=l.memoizedState,T=T!==null?T.dehydrated:null,!T)throw Error(r(317));T[Bn]=l}else Eo(),(l.flags&128)===0&&(l.memoizedState=null),l.flags|=4;on(l),T=!1}else T=dd(),a!==null&&a.memoizedState!==null&&(a.memoizedState.hydrationErrors=T),T=!0;if(!T)return l.flags&256?(pi(l),l):(pi(l),null)}return pi(l),(l.flags&128)!==0?(l.lanes=h,l):(h=v!==null,a=a!==null&&a.memoizedState!==null,h&&(v=l.child,T=null,v.alternate!==null&&v.alternate.memoizedState!==null&&v.alternate.memoizedState.cachePool!==null&&(T=v.alternate.memoizedState.cachePool.pool),M=null,v.memoizedState!==null&&v.memoizedState.cachePool!==null&&(M=v.memoizedState.cachePool.pool),M!==T&&(v.flags|=2048)),h!==a&&h&&(l.child.flags|=8192),pp(l,l.updateQueue),on(l),null);case 4:return B(),a===null&&T1(l.stateNode.containerInfo),on(l),null;case 10:return Ao(l.type),on(l),null;case 19:if(G(kn),v=l.memoizedState,v===null)return on(l),null;if(T=(l.flags&128)!==0,M=v.rendering,M===null)if(T)Ed(v,!1);else{if(On!==0||a!==null&&(a.flags&128)!==0)for(a=l.child;a!==null;){if(M=np(a),M!==null){for(l.flags|=128,Ed(v,!1),a=M.updateQueue,l.updateQueue=a,pp(l,a),l.subtreeFlags=0,a=h,h=l.child;h!==null;)ld(h,a),h=h.sibling;return Y(kn,kn.current&1|2),St&&ot(l,v.treeForkCount),l.child}a=a.sibling}v.tail!==null&&_e()>_p&&(l.flags|=128,T=!0,Ed(v,!1),l.lanes=4194304)}else{if(!T)if(a=np(M),a!==null){if(l.flags|=128,T=!0,a=a.updateQueue,l.updateQueue=a,pp(l,a),Ed(v,!0),v.tail===null&&v.tailMode==="hidden"&&!M.alternate&&!St)return on(l),null}else 2*_e()-v.renderingStartTime>_p&&h!==536870912&&(l.flags|=128,T=!0,Ed(v,!1),l.lanes=4194304);v.isBackwards?(M.sibling=l.child,l.child=M):(a=v.last,a!==null?a.sibling=M:l.child=M,v.last=M)}return v.tail!==null?(a=v.tail,v.rendering=a,v.tail=a.sibling,v.renderingStartTime=_e(),a.sibling=null,h=kn.current,Y(kn,T?h&1|2:h&1),St&&ot(l,v.treeForkCount),a):(on(l),null);case 22:case 23:return pi(l),O0(),v=l.memoizedState!==null,a!==null?a.memoizedState!==null!==v&&(l.flags|=8192):v&&(l.flags|=8192),v?(h&536870912)!==0&&(l.flags&128)===0&&(on(l),l.subtreeFlags&6&&(l.flags|=8192)):on(l),h=l.updateQueue,h!==null&&pp(l,h.retryQueue),h=null,a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),v=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(v=l.memoizedState.cachePool.pool),v!==h&&(l.flags|=2048),a!==null&&G(ou),null;case 24:return h=null,a!==null&&(h=a.memoizedState.cache),l.memoizedState.cache!==h&&(l.flags|=2048),Ao($n),on(l),null;case 25:return null;case 30:return null}throw Error(r(156,l.tag))}function LU(a,l){switch(An(l),l.tag){case 1:return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 3:return Ao($n),B(),a=l.flags,(a&65536)!==0&&(a&128)===0?(l.flags=a&-65537|128,l):null;case 26:case 27:case 5:return le(l),null;case 31:if(l.memoizedState!==null){if(pi(l),l.alternate===null)throw Error(r(340));Eo()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 13:if(pi(l),a=l.memoizedState,a!==null&&a.dehydrated!==null){if(l.alternate===null)throw Error(r(340));Eo()}return a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 19:return G(kn),null;case 4:return B(),null;case 10:return Ao(l.type),null;case 22:case 23:return pi(l),O0(),a!==null&&G(ou),a=l.flags,a&65536?(l.flags=a&-65537|128,l):null;case 24:return Ao($n),null;case 25:return null;default:return null}}function G4(a,l){switch(An(l),l.tag){case 3:Ao($n),B();break;case 26:case 27:case 5:le(l);break;case 4:B();break;case 31:l.memoizedState!==null&&pi(l);break;case 13:pi(l);break;case 19:G(kn);break;case 10:Ao(l.type);break;case 22:case 23:pi(l),O0(),a!==null&&G(ou);break;case 24:Ao($n)}}function Ad(a,l){try{var h=l.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var T=v.next;h=T;do{if((h.tag&a)===a){v=void 0;var M=h.create,q=h.inst;v=M(),q.destroy=v}h=h.next}while(h!==T)}}catch(ie){qt(l,l.return,ie)}}function Is(a,l,h){try{var v=l.updateQueue,T=v!==null?v.lastEffect:null;if(T!==null){var M=T.next;v=M;do{if((v.tag&a)===a){var q=v.inst,ie=q.destroy;if(ie!==void 0){q.destroy=void 0,T=l;var pe=h,Ee=ie;try{Ee()}catch(ke){qt(T,pe,ke)}}}v=v.next}while(v!==M)}}catch(ke){qt(l,l.return,ke)}}function Y4(a){var l=a.updateQueue;if(l!==null){var h=a.stateNode;try{I3(l,h)}catch(v){qt(a,a.return,v)}}}function W4(a,l,h){h.props=fu(a.type,a.memoizedProps),h.state=a.memoizedState;try{h.componentWillUnmount()}catch(v){qt(a,l,v)}}function Td(a,l){try{var h=a.ref;if(h!==null){switch(a.tag){case 26:case 27:case 5:var v=a.stateNode;break;case 30:v=a.stateNode;break;default:v=a.stateNode}typeof h=="function"?a.refCleanup=h(v):h.current=v}}catch(T){qt(a,l,T)}}function Xa(a,l){var h=a.ref,v=a.refCleanup;if(h!==null)if(typeof v=="function")try{v()}catch(T){qt(a,l,T)}finally{a.refCleanup=null,a=a.alternate,a!=null&&(a.refCleanup=null)}else if(typeof h=="function")try{h(null)}catch(T){qt(a,l,T)}else h.current=null}function K4(a){var l=a.type,h=a.memoizedProps,v=a.stateNode;try{e:switch(l){case"button":case"input":case"select":case"textarea":h.autoFocus&&v.focus();break e;case"img":h.src?v.src=h.src:h.srcSet&&(v.srcset=h.srcSet)}}catch(T){qt(a,a.return,T)}}function o1(a,l,h){try{var v=a.stateNode;nz(v,a.type,h,l),v[or]=l}catch(T){qt(a,a.return,T)}}function Z4(a){return a.tag===5||a.tag===3||a.tag===26||a.tag===27&&Hs(a.type)||a.tag===4}function s1(a){e:for(;;){for(;a.sibling===null;){if(a.return===null||Z4(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&&Hs(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 l1(a,l,h){var v=a.tag;if(v===5||v===6)a=a.stateNode,l?(h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h).insertBefore(a,l):(l=h.nodeType===9?h.body:h.nodeName==="HTML"?h.ownerDocument.body:h,l.appendChild(a),h=h._reactRootContainer,h!=null||l.onclick!==null||(l.onclick=Yr));else if(v!==4&&(v===27&&Hs(a.type)&&(h=a.stateNode,l=null),a=a.child,a!==null))for(l1(a,l,h),a=a.sibling;a!==null;)l1(a,l,h),a=a.sibling}function gp(a,l,h){var v=a.tag;if(v===5||v===6)a=a.stateNode,l?h.insertBefore(a,l):h.appendChild(a);else if(v!==4&&(v===27&&Hs(a.type)&&(h=a.stateNode),a=a.child,a!==null))for(gp(a,l,h),a=a.sibling;a!==null;)gp(a,l,h),a=a.sibling}function X4(a){var l=a.stateNode,h=a.memoizedProps;try{for(var v=a.type,T=l.attributes;T.length;)l.removeAttributeNode(T[0]);vr(l,v,h),l[Bn]=a,l[or]=h}catch(M){qt(a,a.return,M)}}var Po=!1,qn=!1,u1=!1,Q4=typeof WeakSet=="function"?WeakSet:Set,ur=null;function DU(a,l){if(a=a.containerInfo,M1=Ip,a=Kl(a),Va(a)){if("selectionStart"in a)var h={start:a.selectionStart,end:a.selectionEnd};else e:{h=(h=a.ownerDocument)&&h.defaultView||window;var v=h.getSelection&&h.getSelection();if(v&&v.rangeCount!==0){h=v.anchorNode;var T=v.anchorOffset,M=v.focusNode;v=v.focusOffset;try{h.nodeType,M.nodeType}catch{h=null;break e}var q=0,ie=-1,pe=-1,Ee=0,ke=0,ze=a,Oe=null;t:for(;;){for(var Ne;ze!==h||T!==0&&ze.nodeType!==3||(ie=q+T),ze!==M||v!==0&&ze.nodeType!==3||(pe=q+v),ze.nodeType===3&&(q+=ze.nodeValue.length),(Ne=ze.firstChild)!==null;)Oe=ze,ze=Ne;for(;;){if(ze===a)break t;if(Oe===h&&++Ee===T&&(ie=q),Oe===M&&++ke===v&&(pe=q),(Ne=ze.nextSibling)!==null)break;ze=Oe,Oe=ze.parentNode}ze=Ne}h=ie===-1||pe===-1?null:{start:ie,end:pe}}else h=null}h=h||{start:0,end:0}}else h=null;for(P1={focusedElem:a,selectionRange:h},Ip=!1,ur=l;ur!==null;)if(l=ur,a=l.child,(l.subtreeFlags&1028)!==0&&a!==null)a.return=l,ur=a;else for(;ur!==null;){switch(l=ur,M=l.alternate,a=l.flags,l.tag){case 0:if((a&4)!==0&&(a=l.updateQueue,a=a!==null?a.events:null,a!==null))for(h=0;h<a.length;h++)T=a[h],T.ref.impl=T.nextImpl;break;case 11:case 15:break;case 1:if((a&1024)!==0&&M!==null){a=void 0,h=l,T=M.memoizedProps,M=M.memoizedState,v=h.stateNode;try{var tt=fu(h.type,T);a=v.getSnapshotBeforeUpdate(tt,M),v.__reactInternalSnapshotBeforeUpdate=a}catch(ct){qt(h,h.return,ct)}}break;case 3:if((a&1024)!==0){if(a=l.stateNode.containerInfo,h=a.nodeType,h===9)L1(a);else if(h===1)switch(a.nodeName){case"HEAD":case"HTML":case"BODY":L1(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=l.sibling,a!==null){a.return=l.return,ur=a;break}ur=l.return}}function J4(a,l,h){var v=h.flags;switch(h.tag){case 0:case 11:case 15:No(a,h),v&4&&Ad(5,h);break;case 1:if(No(a,h),v&4)if(a=h.stateNode,l===null)try{a.componentDidMount()}catch(q){qt(h,h.return,q)}else{var T=fu(h.type,l.memoizedProps);l=l.memoizedState;try{a.componentDidUpdate(T,l,a.__reactInternalSnapshotBeforeUpdate)}catch(q){qt(h,h.return,q)}}v&64&&Y4(h),v&512&&Td(h,h.return);break;case 3:if(No(a,h),v&64&&(a=h.updateQueue,a!==null)){if(l=null,h.child!==null)switch(h.child.tag){case 27:case 5:l=h.child.stateNode;break;case 1:l=h.child.stateNode}try{I3(a,l)}catch(q){qt(h,h.return,q)}}break;case 27:l===null&&v&4&&X4(h);case 26:case 5:No(a,h),l===null&&v&4&&K4(h),v&512&&Td(h,h.return);break;case 12:No(a,h);break;case 31:No(a,h),v&4&&nE(a,h);break;case 13:No(a,h),v&4&&rE(a,h),v&64&&(a=h.memoizedState,a!==null&&(a=a.dehydrated,a!==null&&(h=HU.bind(null,h),cz(a,h))));break;case 22:if(v=h.memoizedState!==null||Po,!v){l=l!==null&&l.memoizedState!==null||qn,T=Po;var M=qn;Po=v,(qn=l)&&!M?Lo(a,h,(h.subtreeFlags&8772)!==0):No(a,h),Po=T,qn=M}break;case 30:break;default:No(a,h)}}function eE(a){var l=a.alternate;l!==null&&(a.alternate=null,eE(l)),a.child=null,a.deletions=null,a.sibling=null,a.tag===5&&(l=a.stateNode,l!==null&&Hf(l)),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 pn=null,Qr=!1;function Ro(a,l,h){for(h=h.child;h!==null;)tE(a,l,h),h=h.sibling}function tE(a,l,h){if(gt&&typeof gt.onCommitFiberUnmount=="function")try{gt.onCommitFiberUnmount(dt,h)}catch{}switch(h.tag){case 26:qn||Xa(h,l),Ro(a,l,h),h.memoizedState?h.memoizedState.count--:h.stateNode&&(h=h.stateNode,h.parentNode.removeChild(h));break;case 27:qn||Xa(h,l);var v=pn,T=Qr;Hs(h.type)&&(pn=h.stateNode,Qr=!1),Ro(a,l,h),kd(h.stateNode),pn=v,Qr=T;break;case 5:qn||Xa(h,l);case 6:if(v=pn,T=Qr,pn=null,Ro(a,l,h),pn=v,Qr=T,pn!==null)if(Qr)try{(pn.nodeType===9?pn.body:pn.nodeName==="HTML"?pn.ownerDocument.body:pn).removeChild(h.stateNode)}catch(M){qt(h,l,M)}else try{pn.removeChild(h.stateNode)}catch(M){qt(h,l,M)}break;case 18:pn!==null&&(Qr?(a=pn,YE(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,h.stateNode),kc(a)):YE(pn,h.stateNode));break;case 4:v=pn,T=Qr,pn=h.stateNode.containerInfo,Qr=!0,Ro(a,l,h),pn=v,Qr=T;break;case 0:case 11:case 14:case 15:Is(2,h,l),qn||Is(4,h,l),Ro(a,l,h);break;case 1:qn||(Xa(h,l),v=h.stateNode,typeof v.componentWillUnmount=="function"&&W4(h,l,v)),Ro(a,l,h);break;case 21:Ro(a,l,h);break;case 22:qn=(v=qn)||h.memoizedState!==null,Ro(a,l,h),qn=v;break;default:Ro(a,l,h)}}function nE(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null))){a=a.dehydrated;try{kc(a)}catch(h){qt(l,l.return,h)}}}function rE(a,l){if(l.memoizedState===null&&(a=l.alternate,a!==null&&(a=a.memoizedState,a!==null&&(a=a.dehydrated,a!==null))))try{kc(a)}catch(h){qt(l,l.return,h)}}function kU(a){switch(a.tag){case 31:case 13:case 19:var l=a.stateNode;return l===null&&(l=a.stateNode=new Q4),l;case 22:return a=a.stateNode,l=a._retryCache,l===null&&(l=a._retryCache=new Q4),l;default:throw Error(r(435,a.tag))}}function vp(a,l){var h=kU(a);l.forEach(function(v){if(!h.has(v)){h.add(v);var T=qU.bind(null,a,v);v.then(T,T)}})}function Jr(a,l){var h=l.deletions;if(h!==null)for(var v=0;v<h.length;v++){var T=h[v],M=a,q=l,ie=q;e:for(;ie!==null;){switch(ie.tag){case 27:if(Hs(ie.type)){pn=ie.stateNode,Qr=!1;break e}break;case 5:pn=ie.stateNode,Qr=!1;break e;case 3:case 4:pn=ie.stateNode.containerInfo,Qr=!0;break e}ie=ie.return}if(pn===null)throw Error(r(160));tE(M,q,T),pn=null,Qr=!1,M=T.alternate,M!==null&&(M.return=null),T.return=null}if(l.subtreeFlags&13886)for(l=l.child;l!==null;)iE(l,a),l=l.sibling}var pa=null;function iE(a,l){var h=a.alternate,v=a.flags;switch(a.tag){case 0:case 11:case 14:case 15:Jr(l,a),ei(a),v&4&&(Is(3,a,a.return),Ad(3,a),Is(5,a,a.return));break;case 1:Jr(l,a),ei(a),v&512&&(qn||h===null||Xa(h,h.return)),v&64&&Po&&(a=a.updateQueue,a!==null&&(v=a.callbacks,v!==null&&(h=a.shared.hiddenCallbacks,a.shared.hiddenCallbacks=h===null?v:h.concat(v))));break;case 26:var T=pa;if(Jr(l,a),ei(a),v&512&&(qn||h===null||Xa(h,h.return)),v&4){var M=h!==null?h.memoizedState:null;if(v=a.memoizedState,h===null)if(v===null)if(a.stateNode===null){e:{v=a.type,h=a.memoizedProps,T=T.ownerDocument||T;t:switch(v){case"title":M=T.getElementsByTagName("title")[0],(!M||M[Nl]||M[Bn]||M.namespaceURI==="http://www.w3.org/2000/svg"||M.hasAttribute("itemprop"))&&(M=T.createElement(v),T.head.insertBefore(M,T.querySelector("head > title"))),vr(M,v,h),M[Bn]=a,Fn(M),v=M;break e;case"link":var q=iA("link","href",T).get(v+(h.href||""));if(q){for(var ie=0;ie<q.length;ie++)if(M=q[ie],M.getAttribute("href")===(h.href==null||h.href===""?null:h.href)&&M.getAttribute("rel")===(h.rel==null?null:h.rel)&&M.getAttribute("title")===(h.title==null?null:h.title)&&M.getAttribute("crossorigin")===(h.crossOrigin==null?null:h.crossOrigin)){q.splice(ie,1);break t}}M=T.createElement(v),vr(M,v,h),T.head.appendChild(M);break;case"meta":if(q=iA("meta","content",T).get(v+(h.content||""))){for(ie=0;ie<q.length;ie++)if(M=q[ie],M.getAttribute("content")===(h.content==null?null:""+h.content)&&M.getAttribute("name")===(h.name==null?null:h.name)&&M.getAttribute("property")===(h.property==null?null:h.property)&&M.getAttribute("http-equiv")===(h.httpEquiv==null?null:h.httpEquiv)&&M.getAttribute("charset")===(h.charSet==null?null:h.charSet)){q.splice(ie,1);break t}}M=T.createElement(v),vr(M,v,h),T.head.appendChild(M);break;default:throw Error(r(468,v))}M[Bn]=a,Fn(M),v=M}a.stateNode=v}else aA(T,a.type,a.stateNode);else a.stateNode=rA(T,v,a.memoizedProps);else M!==v?(M===null?h.stateNode!==null&&(h=h.stateNode,h.parentNode.removeChild(h)):M.count--,v===null?aA(T,a.type,a.stateNode):rA(T,v,a.memoizedProps)):v===null&&a.stateNode!==null&&o1(a,a.memoizedProps,h.memoizedProps)}break;case 27:Jr(l,a),ei(a),v&512&&(qn||h===null||Xa(h,h.return)),h!==null&&v&4&&o1(a,a.memoizedProps,h.memoizedProps);break;case 5:if(Jr(l,a),ei(a),v&512&&(qn||h===null||Xa(h,h.return)),a.flags&32){T=a.stateNode;try{Bi(T,"")}catch(tt){qt(a,a.return,tt)}}v&4&&a.stateNode!=null&&(T=a.memoizedProps,o1(a,T,h!==null?h.memoizedProps:T)),v&1024&&(u1=!0);break;case 6:if(Jr(l,a),ei(a),v&4){if(a.stateNode===null)throw Error(r(162));v=a.memoizedProps,h=a.stateNode;try{h.nodeValue=v}catch(tt){qt(a,a.return,tt)}}break;case 3:if(Np=null,T=pa,pa=Pp(l.containerInfo),Jr(l,a),pa=T,ei(a),v&4&&h!==null&&h.memoizedState.isDehydrated)try{kc(l.containerInfo)}catch(tt){qt(a,a.return,tt)}u1&&(u1=!1,aE(a));break;case 4:v=pa,pa=Pp(a.stateNode.containerInfo),Jr(l,a),ei(a),pa=v;break;case 12:Jr(l,a),ei(a);break;case 31:Jr(l,a),ei(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,vp(a,v)));break;case 13:Jr(l,a),ei(a),a.child.flags&8192&&a.memoizedState!==null!=(h!==null&&h.memoizedState!==null)&&(bp=_e()),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,vp(a,v)));break;case 22:T=a.memoizedState!==null;var pe=h!==null&&h.memoizedState!==null,Ee=Po,ke=qn;if(Po=Ee||T,qn=ke||pe,Jr(l,a),qn=ke,Po=Ee,ei(a),v&8192)e:for(l=a.stateNode,l._visibility=T?l._visibility&-2:l._visibility|1,T&&(h===null||pe||Po||qn||du(a)),h=null,l=a;;){if(l.tag===5||l.tag===26){if(h===null){pe=h=l;try{if(M=pe.stateNode,T)q=M.style,typeof q.setProperty=="function"?q.setProperty("display","none","important"):q.display="none";else{ie=pe.stateNode;var ze=pe.memoizedProps.style,Oe=ze!=null&&ze.hasOwnProperty("display")?ze.display:null;ie.style.display=Oe==null||typeof Oe=="boolean"?"":(""+Oe).trim()}}catch(tt){qt(pe,pe.return,tt)}}}else if(l.tag===6){if(h===null){pe=l;try{pe.stateNode.nodeValue=T?"":pe.memoizedProps}catch(tt){qt(pe,pe.return,tt)}}}else if(l.tag===18){if(h===null){pe=l;try{var Ne=pe.stateNode;T?WE(Ne,!0):WE(pe.stateNode,!1)}catch(tt){qt(pe,pe.return,tt)}}}else if((l.tag!==22&&l.tag!==23||l.memoizedState===null||l===a)&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;h===l&&(h=null),l=l.return}h===l&&(h=null),l.sibling.return=l.return,l=l.sibling}v&4&&(v=a.updateQueue,v!==null&&(h=v.retryQueue,h!==null&&(v.retryQueue=null,vp(a,h))));break;case 19:Jr(l,a),ei(a),v&4&&(v=a.updateQueue,v!==null&&(a.updateQueue=null,vp(a,v)));break;case 30:break;case 21:break;default:Jr(l,a),ei(a)}}function ei(a){var l=a.flags;if(l&2){try{for(var h,v=a.return;v!==null;){if(Z4(v)){h=v;break}v=v.return}if(h==null)throw Error(r(160));switch(h.tag){case 27:var T=h.stateNode,M=s1(a);gp(a,M,T);break;case 5:var q=h.stateNode;h.flags&32&&(Bi(q,""),h.flags&=-33);var ie=s1(a);gp(a,ie,q);break;case 3:case 4:var pe=h.stateNode.containerInfo,Ee=s1(a);l1(a,Ee,pe);break;default:throw Error(r(161))}}catch(ke){qt(a,a.return,ke)}a.flags&=-3}l&4096&&(a.flags&=-4097)}function aE(a){if(a.subtreeFlags&1024)for(a=a.child;a!==null;){var l=a;aE(l),l.tag===5&&l.flags&1024&&l.stateNode.reset(),a=a.sibling}}function No(a,l){if(l.subtreeFlags&8772)for(l=l.child;l!==null;)J4(a,l.alternate,l),l=l.sibling}function du(a){for(a=a.child;a!==null;){var l=a;switch(l.tag){case 0:case 11:case 14:case 15:Is(4,l,l.return),du(l);break;case 1:Xa(l,l.return);var h=l.stateNode;typeof h.componentWillUnmount=="function"&&W4(l,l.return,h),du(l);break;case 27:kd(l.stateNode);case 26:case 5:Xa(l,l.return),du(l);break;case 22:l.memoizedState===null&&du(l);break;case 30:du(l);break;default:du(l)}a=a.sibling}}function Lo(a,l,h){for(h=h&&(l.subtreeFlags&8772)!==0,l=l.child;l!==null;){var v=l.alternate,T=a,M=l,q=M.flags;switch(M.tag){case 0:case 11:case 15:Lo(T,M,h),Ad(4,M);break;case 1:if(Lo(T,M,h),v=M,T=v.stateNode,typeof T.componentDidMount=="function")try{T.componentDidMount()}catch(Ee){qt(v,v.return,Ee)}if(v=M,T=v.updateQueue,T!==null){var ie=v.stateNode;try{var pe=T.shared.hiddenCallbacks;if(pe!==null)for(T.shared.hiddenCallbacks=null,T=0;T<pe.length;T++)k3(pe[T],ie)}catch(Ee){qt(v,v.return,Ee)}}h&&q&64&&Y4(M),Td(M,M.return);break;case 27:X4(M);case 26:case 5:Lo(T,M,h),h&&v===null&&q&4&&K4(M),Td(M,M.return);break;case 12:Lo(T,M,h);break;case 31:Lo(T,M,h),h&&q&4&&nE(T,M);break;case 13:Lo(T,M,h),h&&q&4&&rE(T,M);break;case 22:M.memoizedState===null&&Lo(T,M,h),Td(M,M.return);break;case 30:break;default:Lo(T,M,h)}l=l.sibling}}function c1(a,l){var h=null;a!==null&&a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(h=a.memoizedState.cachePool.pool),a=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(a=l.memoizedState.cachePool.pool),a!==h&&(a!=null&&a.refCount++,h!=null&&hd(h))}function f1(a,l){a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&hd(a))}function ga(a,l,h,v){if(l.subtreeFlags&10256)for(l=l.child;l!==null;)oE(a,l,h,v),l=l.sibling}function oE(a,l,h,v){var T=l.flags;switch(l.tag){case 0:case 11:case 15:ga(a,l,h,v),T&2048&&Ad(9,l);break;case 1:ga(a,l,h,v);break;case 3:ga(a,l,h,v),T&2048&&(a=null,l.alternate!==null&&(a=l.alternate.memoizedState.cache),l=l.memoizedState.cache,l!==a&&(l.refCount++,a!=null&&hd(a)));break;case 12:if(T&2048){ga(a,l,h,v),a=l.stateNode;try{var M=l.memoizedProps,q=M.id,ie=M.onPostCommit;typeof ie=="function"&&ie(q,l.alternate===null?"mount":"update",a.passiveEffectDuration,-0)}catch(pe){qt(l,l.return,pe)}}else ga(a,l,h,v);break;case 31:ga(a,l,h,v);break;case 13:ga(a,l,h,v);break;case 23:break;case 22:M=l.stateNode,q=l.alternate,l.memoizedState!==null?M._visibility&2?ga(a,l,h,v):Od(a,l):M._visibility&2?ga(a,l,h,v):(M._visibility|=2,Ec(a,l,h,v,(l.subtreeFlags&10256)!==0||!1)),T&2048&&c1(q,l);break;case 24:ga(a,l,h,v),T&2048&&f1(l.alternate,l);break;default:ga(a,l,h,v)}}function Ec(a,l,h,v,T){for(T=T&&((l.subtreeFlags&10256)!==0||!1),l=l.child;l!==null;){var M=a,q=l,ie=h,pe=v,Ee=q.flags;switch(q.tag){case 0:case 11:case 15:Ec(M,q,ie,pe,T),Ad(8,q);break;case 23:break;case 22:var ke=q.stateNode;q.memoizedState!==null?ke._visibility&2?Ec(M,q,ie,pe,T):Od(M,q):(ke._visibility|=2,Ec(M,q,ie,pe,T)),T&&Ee&2048&&c1(q.alternate,q);break;case 24:Ec(M,q,ie,pe,T),T&&Ee&2048&&f1(q.alternate,q);break;default:Ec(M,q,ie,pe,T)}l=l.sibling}}function Od(a,l){if(l.subtreeFlags&10256)for(l=l.child;l!==null;){var h=a,v=l,T=v.flags;switch(v.tag){case 22:Od(h,v),T&2048&&c1(v.alternate,v);break;case 24:Od(h,v),T&2048&&f1(v.alternate,v);break;default:Od(h,v)}l=l.sibling}}var jd=8192;function Ac(a,l,h){if(a.subtreeFlags&jd)for(a=a.child;a!==null;)sE(a,l,h),a=a.sibling}function sE(a,l,h){switch(a.tag){case 26:Ac(a,l,h),a.flags&jd&&a.memoizedState!==null&&wz(h,pa,a.memoizedState,a.memoizedProps);break;case 5:Ac(a,l,h);break;case 3:case 4:var v=pa;pa=Pp(a.stateNode.containerInfo),Ac(a,l,h),pa=v;break;case 22:a.memoizedState===null&&(v=a.alternate,v!==null&&v.memoizedState!==null?(v=jd,jd=16777216,Ac(a,l,h),jd=v):Ac(a,l,h));break;default:Ac(a,l,h)}}function lE(a){var l=a.alternate;if(l!==null&&(a=l.child,a!==null)){l.child=null;do l=a.sibling,a.sibling=null,a=l;while(a!==null)}}function Md(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var v=l[h];ur=v,cE(v,a)}lE(a)}if(a.subtreeFlags&10256)for(a=a.child;a!==null;)uE(a),a=a.sibling}function uE(a){switch(a.tag){case 0:case 11:case 15:Md(a),a.flags&2048&&Is(9,a,a.return);break;case 3:Md(a);break;case 12:Md(a);break;case 22:var l=a.stateNode;a.memoizedState!==null&&l._visibility&2&&(a.return===null||a.return.tag!==13)?(l._visibility&=-3,yp(a)):Md(a);break;default:Md(a)}}function yp(a){var l=a.deletions;if((a.flags&16)!==0){if(l!==null)for(var h=0;h<l.length;h++){var v=l[h];ur=v,cE(v,a)}lE(a)}for(a=a.child;a!==null;){switch(l=a,l.tag){case 0:case 11:case 15:Is(8,l,l.return),yp(l);break;case 22:h=l.stateNode,h._visibility&2&&(h._visibility&=-3,yp(l));break;default:yp(l)}a=a.sibling}}function cE(a,l){for(;ur!==null;){var h=ur;switch(h.tag){case 0:case 11:case 15:Is(8,h,l);break;case 23:case 22:if(h.memoizedState!==null&&h.memoizedState.cachePool!==null){var v=h.memoizedState.cachePool.pool;v!=null&&v.refCount++}break;case 24:hd(h.memoizedState.cache)}if(v=h.child,v!==null)v.return=h,ur=v;else e:for(h=a;ur!==null;){v=ur;var T=v.sibling,M=v.return;if(eE(v),v===h){ur=null;break e}if(T!==null){T.return=M,ur=T;break e}ur=M}}}var IU={getCacheForType:function(a){var l=pr($n),h=l.data.get(a);return h===void 0&&(h=a(),l.data.set(a,h)),h},cacheSignal:function(){return pr($n).controller.signal}},UU=typeof WeakMap=="function"?WeakMap:Map,Ft=0,Jt=null,Ct=null,jt=0,Ht=0,gi=null,Us=!1,Tc=!1,d1=!1,Do=0,On=0,zs=0,hu=0,h1=0,vi=0,Oc=0,Pd=null,ti=null,m1=!1,bp=0,fE=0,_p=1/0,xp=null,Bs=null,Jn=0,Fs=null,jc=null,ko=0,p1=0,g1=null,dE=null,Rd=0,v1=null;function yi(){return(Ft&2)!==0&&jt!==0?jt&-jt:Z.T!==null?S1():$f()}function hE(){if(vi===0)if((jt&536870912)===0||St){var a=mo;mo<<=1,(mo&3932160)===0&&(mo=262144),vi=a}else vi=536870912;return a=mi.current,a!==null&&(a.flags|=32),vi}function ni(a,l,h){(a===Jt&&(Ht===2||Ht===9)||a.cancelPendingCommit!==null)&&(Mc(a,0),$s(a,jt,vi,!1)),bn(a,h),((Ft&2)===0||a!==Jt)&&(a===Jt&&((Ft&2)===0&&(hu|=h),On===4&&$s(a,jt,vi,!1)),Qa(a))}function mE(a,l,h){if((Ft&6)!==0)throw Error(r(327));var v=!h&&(l&127)===0&&(l&a.expiredLanes)===0||ui(a,l),T=v?FU(a,l):b1(a,l,!0),M=v;do{if(T===0){Tc&&!v&&$s(a,l,0,!1);break}else{if(h=a.current.alternate,M&&!zU(h)){T=b1(a,l,!1),M=!1;continue}if(T===2){if(M=l,a.errorRecoveryDisabledLanes&M)var q=0;else q=a.pendingLanes&-536870913,q=q!==0?q:q&536870912?536870912:0;if(q!==0){l=q;e:{var ie=a;T=Pd;var pe=ie.current.memoizedState.isDehydrated;if(pe&&(Mc(ie,q).flags|=256),q=b1(ie,q,!1),q!==2){if(d1&&!pe){ie.errorRecoveryDisabledLanes|=M,hu|=M,T=4;break e}M=ti,ti=T,M!==null&&(ti===null?ti=M:ti.push.apply(ti,M))}T=q}if(M=!1,T!==2)continue}}if(T===1){Mc(a,0),$s(a,l,0,!0);break}e:{switch(v=a,M=T,M){case 0:case 1:throw Error(r(345));case 4:if((l&4194048)!==l)break;case 6:$s(v,l,vi,!Us);break e;case 2:ti=null;break;case 3:case 5:break;default:throw Error(r(329))}if((l&62914560)===l&&(T=bp+300-_e(),10<T)){if($s(v,l,vi,!Us),ka(v,0,!0)!==0)break e;ko=l,v.timeoutHandle=qE(pE.bind(null,v,h,ti,xp,m1,l,vi,hu,Oc,Us,M,"Throttled",-0,0),T);break e}pE(v,h,ti,xp,m1,l,vi,hu,Oc,Us,M,null,-0,0)}}break}while(!0);Qa(a)}function pE(a,l,h,v,T,M,q,ie,pe,Ee,ke,ze,Oe,Ne){if(a.timeoutHandle=-1,ze=l.subtreeFlags,ze&8192||(ze&16785408)===16785408){ze={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Yr},sE(l,M,ze);var tt=(M&62914560)===M?bp-_e():(M&4194048)===M?fE-_e():0;if(tt=Sz(ze,tt),tt!==null){ko=M,a.cancelPendingCommit=tt(SE.bind(null,a,l,M,h,v,T,q,ie,pe,ke,ze,null,Oe,Ne)),$s(a,M,q,!Ee);return}}SE(a,l,M,h,v,T,q,ie,pe)}function zU(a){for(var l=a;;){var h=l.tag;if((h===0||h===11||h===15)&&l.flags&16384&&(h=l.updateQueue,h!==null&&(h=h.stores,h!==null)))for(var v=0;v<h.length;v++){var T=h[v],M=T.getSnapshot;T=T.value;try{if(!sr(M(),T))return!1}catch{return!1}}if(h=l.child,l.subtreeFlags&16384&&h!==null)h.return=l,l=h;else{if(l===a)break;for(;l.sibling===null;){if(l.return===null||l.return===a)return!0;l=l.return}l.sibling.return=l.return,l=l.sibling}}return!0}function $s(a,l,h,v){l&=~h1,l&=~hu,a.suspendedLanes|=l,a.pingedLanes&=~l,v&&(a.warmLanes|=l),v=a.expirationTimes;for(var T=l;0<T;){var M=31-yt(T),q=1<<M;v[M]=-1,T&=~q}h!==0&&Cn(a,h,l)}function wp(){return(Ft&6)===0?(Nd(0),!1):!0}function y1(){if(Ct!==null){if(Ht===0)var a=Ct.return;else a=Ct,ma=Za=null,L0(a),_c=null,pd=0,a=Ct;for(;a!==null;)G4(a.alternate,a),a=a.return;Ct=null}}function Mc(a,l){var h=a.timeoutHandle;h!==-1&&(a.timeoutHandle=-1,az(h)),h=a.cancelPendingCommit,h!==null&&(a.cancelPendingCommit=null,h()),ko=0,y1(),Jt=a,Ct=h=Yi(a.current,null),jt=l,Ht=0,gi=null,Us=!1,Tc=ui(a,l),d1=!1,Oc=vi=h1=hu=zs=On=0,ti=Pd=null,m1=!1,(l&8)!==0&&(l|=l&32);var v=a.entangledLanes;if(v!==0)for(a=a.entanglements,v&=l;0<v;){var T=31-yt(v),M=1<<T;l|=a[T],v&=~M}return Do=l,eu(),h}function gE(a,l){vt=null,Z.H=Sd,l===bc||l===Xm?(l=R3(),Ht=3):l===w0?(l=R3(),Ht=4):Ht=l===Z0?8:l!==null&&typeof l=="object"&&typeof l.then=="function"?6:1,gi=l,Ct===null&&(On=1,fp(a,g(l,a.current)))}function vE(){var a=mi.current;return a===null?!0:(jt&4194048)===jt?Wi===null:(jt&62914560)===jt||(jt&536870912)!==0?a===Wi:!1}function yE(){var a=Z.H;return Z.H=Sd,a===null?Sd:a}function bE(){var a=Z.A;return Z.A=IU,a}function Sp(){On=4,Us||(jt&4194048)!==jt&&mi.current!==null||(Tc=!0),(zs&134217727)===0&&(hu&134217727)===0||Jt===null||$s(Jt,jt,vi,!1)}function b1(a,l,h){var v=Ft;Ft|=2;var T=yE(),M=bE();(Jt!==a||jt!==l)&&(xp=null,Mc(a,l)),l=!1;var q=On;e:do try{if(Ht!==0&&Ct!==null){var ie=Ct,pe=gi;switch(Ht){case 8:y1(),q=6;break e;case 3:case 2:case 9:case 6:mi.current===null&&(l=!0);var Ee=Ht;if(Ht=0,gi=null,Pc(a,ie,pe,Ee),h&&Tc){q=0;break e}break;default:Ee=Ht,Ht=0,gi=null,Pc(a,ie,pe,Ee)}}BU(),q=On;break}catch(ke){gE(a,ke)}while(!0);return l&&a.shellSuspendCounter++,ma=Za=null,Ft=v,Z.H=T,Z.A=M,Ct===null&&(Jt=null,jt=0,eu()),q}function BU(){for(;Ct!==null;)_E(Ct)}function FU(a,l){var h=Ft;Ft|=2;var v=yE(),T=bE();Jt!==a||jt!==l?(xp=null,_p=_e()+500,Mc(a,l)):Tc=ui(a,l);e:do try{if(Ht!==0&&Ct!==null){l=Ct;var M=gi;t:switch(Ht){case 1:Ht=0,gi=null,Pc(a,l,M,1);break;case 2:case 9:if(M3(M)){Ht=0,gi=null,xE(l);break}l=function(){Ht!==2&&Ht!==9||Jt!==a||(Ht=7),Qa(a)},M.then(l,l);break e;case 3:Ht=7;break e;case 4:Ht=5;break e;case 7:M3(M)?(Ht=0,gi=null,xE(l)):(Ht=0,gi=null,Pc(a,l,M,7));break;case 5:var q=null;switch(Ct.tag){case 26:q=Ct.memoizedState;case 5:case 27:var ie=Ct;if(q?oA(q):ie.stateNode.complete){Ht=0,gi=null;var pe=ie.sibling;if(pe!==null)Ct=pe;else{var Ee=ie.return;Ee!==null?(Ct=Ee,Cp(Ee)):Ct=null}break t}}Ht=0,gi=null,Pc(a,l,M,5);break;case 6:Ht=0,gi=null,Pc(a,l,M,6);break;case 8:y1(),On=6;break e;default:throw Error(r(462))}}$U();break}catch(ke){gE(a,ke)}while(!0);return ma=Za=null,Z.H=v,Z.A=T,Ft=h,Ct!==null?0:(Jt=null,jt=0,eu(),On)}function $U(){for(;Ct!==null&&!He();)_E(Ct)}function _E(a){var l=H4(a.alternate,a,Do);a.memoizedProps=a.pendingProps,l===null?Cp(a):Ct=l}function xE(a){var l=a,h=l.alternate;switch(l.tag){case 15:case 0:l=U4(h,l,l.pendingProps,l.type,void 0,jt);break;case 11:l=U4(h,l,l.pendingProps,l.type.render,l.ref,jt);break;case 5:L0(l);default:G4(h,l),l=Ct=ld(l,Do),l=H4(h,l,Do)}a.memoizedProps=a.pendingProps,l===null?Cp(a):Ct=l}function Pc(a,l,h,v){ma=Za=null,L0(l),_c=null,pd=0;var T=l.return;try{if(MU(a,T,l,h,jt)){On=1,fp(a,g(h,a.current)),Ct=null;return}}catch(M){if(T!==null)throw Ct=T,M;On=1,fp(a,g(h,a.current)),Ct=null;return}l.flags&32768?(St||v===1?a=!0:Tc||(jt&536870912)!==0?a=!1:(Us=a=!0,(v===2||v===9||v===3||v===6)&&(v=mi.current,v!==null&&v.tag===13&&(v.flags|=16384))),wE(l,a)):Cp(l)}function Cp(a){var l=a;do{if((l.flags&32768)!==0){wE(l,Us);return}a=l.return;var h=NU(l.alternate,l,Do);if(h!==null){Ct=h;return}if(l=l.sibling,l!==null){Ct=l;return}Ct=l=a}while(l!==null);On===0&&(On=5)}function wE(a,l){do{var h=LU(a.alternate,a);if(h!==null){h.flags&=32767,Ct=h;return}if(h=a.return,h!==null&&(h.flags|=32768,h.subtreeFlags=0,h.deletions=null),!l&&(a=a.sibling,a!==null)){Ct=a;return}Ct=a=h}while(a!==null);On=6,Ct=null}function SE(a,l,h,v,T,M,q,ie,pe){a.cancelPendingCommit=null;do Ep();while(Jn!==0);if((Ft&6)!==0)throw Error(r(327));if(l!==null){if(l===a.current)throw Error(r(177));if(M=l.lanes|l.childLanes,M|=dc,Zn(a,h,M,q,ie,pe),a===Jt&&(Ct=Jt=null,jt=0),jc=l,Fs=a,ko=h,p1=M,g1=T,dE=v,(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?(a.callbackNode=null,a.callbackPriority=0,GU($e,function(){return OE(),null})):(a.callbackNode=null,a.callbackPriority=0),v=(l.flags&13878)!==0,(l.subtreeFlags&13878)!==0||v){v=Z.T,Z.T=null,T=I.p,I.p=2,q=Ft,Ft|=4;try{DU(a,l,h)}finally{Ft=q,I.p=T,Z.T=v}}Jn=1,CE(),EE(),AE()}}function CE(){if(Jn===1){Jn=0;var a=Fs,l=jc,h=(l.flags&13878)!==0;if((l.subtreeFlags&13878)!==0||h){h=Z.T,Z.T=null;var v=I.p;I.p=2;var T=Ft;Ft|=4;try{iE(l,a);var M=P1,q=Kl(a.containerInfo),ie=M.focusedElem,pe=M.selectionRange;if(q!==ie&&ie&&ie.ownerDocument&&lc(ie.ownerDocument.documentElement,ie)){if(pe!==null&&Va(ie)){var Ee=pe.start,ke=pe.end;if(ke===void 0&&(ke=Ee),"selectionStart"in ie)ie.selectionStart=Ee,ie.selectionEnd=Math.min(ke,ie.value.length);else{var ze=ie.ownerDocument||document,Oe=ze&&ze.defaultView||window;if(Oe.getSelection){var Ne=Oe.getSelection(),tt=ie.textContent.length,ct=Math.min(pe.start,tt),Zt=pe.end===void 0?ct:Math.min(pe.end,tt);!Ne.extend&&ct>Zt&&(q=Zt,Zt=ct,ct=q);var xe=Wl(ie,ct),ye=Wl(ie,Zt);if(xe&&ye&&(Ne.rangeCount!==1||Ne.anchorNode!==xe.node||Ne.anchorOffset!==xe.offset||Ne.focusNode!==ye.node||Ne.focusOffset!==ye.offset)){var Ce=ze.createRange();Ce.setStart(xe.node,xe.offset),Ne.removeAllRanges(),ct>Zt?(Ne.addRange(Ce),Ne.extend(ye.node,ye.offset)):(Ce.setEnd(ye.node,ye.offset),Ne.addRange(Ce))}}}}for(ze=[],Ne=ie;Ne=Ne.parentNode;)Ne.nodeType===1&&ze.push({element:Ne,left:Ne.scrollLeft,top:Ne.scrollTop});for(typeof ie.focus=="function"&&ie.focus(),ie=0;ie<ze.length;ie++){var Ie=ze[ie];Ie.element.scrollLeft=Ie.left,Ie.element.scrollTop=Ie.top}}Ip=!!M1,P1=M1=null}finally{Ft=T,I.p=v,Z.T=h}}a.current=l,Jn=2}}function EE(){if(Jn===2){Jn=0;var a=Fs,l=jc,h=(l.flags&8772)!==0;if((l.subtreeFlags&8772)!==0||h){h=Z.T,Z.T=null;var v=I.p;I.p=2;var T=Ft;Ft|=4;try{J4(a,l.alternate,l)}finally{Ft=T,I.p=v,Z.T=h}}Jn=3}}function AE(){if(Jn===4||Jn===3){Jn=0,be();var a=Fs,l=jc,h=ko,v=dE;(l.subtreeFlags&10256)!==0||(l.flags&10256)!==0?Jn=5:(Jn=0,jc=Fs=null,TE(a,a.pendingLanes));var T=a.pendingLanes;if(T===0&&(Bs=null),at(h),l=l.stateNode,gt&&typeof gt.onCommitFiberRoot=="function")try{gt.onCommitFiberRoot(dt,l,void 0,(l.current.flags&128)===128)}catch{}if(v!==null){l=Z.T,T=I.p,I.p=2,Z.T=null;try{for(var M=a.onRecoverableError,q=0;q<v.length;q++){var ie=v[q];M(ie.value,{componentStack:ie.stack})}}finally{Z.T=l,I.p=T}}(ko&3)!==0&&Ep(),Qa(a),T=a.pendingLanes,(h&261930)!==0&&(T&42)!==0?a===v1?Rd++:(Rd=0,v1=a):Rd=0,Nd(0)}}function TE(a,l){(a.pooledCacheLanes&=l)===0&&(l=a.pooledCache,l!=null&&(a.pooledCache=null,hd(l)))}function Ep(){return CE(),EE(),AE(),OE()}function OE(){if(Jn!==5)return!1;var a=Fs,l=p1;p1=0;var h=at(ko),v=Z.T,T=I.p;try{I.p=32>h?32:h,Z.T=null,h=g1,g1=null;var M=Fs,q=ko;if(Jn=0,jc=Fs=null,ko=0,(Ft&6)!==0)throw Error(r(331));var ie=Ft;if(Ft|=4,uE(M.current),oE(M,M.current,q,h),Ft=ie,Nd(0,!1),gt&&typeof gt.onPostCommitFiberRoot=="function")try{gt.onPostCommitFiberRoot(dt,M)}catch{}return!0}finally{I.p=T,Z.T=v,TE(a,l)}}function jE(a,l,h){l=g(h,l),l=K0(a.stateNode,l,2),a=Ls(a,l,2),a!==null&&(bn(a,2),Qa(a))}function qt(a,l,h){if(a.tag===3)jE(a,a,h);else for(;l!==null;){if(l.tag===3){jE(l,a,h);break}else if(l.tag===1){var v=l.stateNode;if(typeof l.type.getDerivedStateFromError=="function"||typeof v.componentDidCatch=="function"&&(Bs===null||!Bs.has(v))){a=g(h,a),h=M4(2),v=Ls(l,h,2),v!==null&&(P4(h,v,l,a),bn(v,2),Qa(v));break}}l=l.return}}function _1(a,l,h){var v=a.pingCache;if(v===null){v=a.pingCache=new UU;var T=new Set;v.set(l,T)}else T=v.get(l),T===void 0&&(T=new Set,v.set(l,T));T.has(h)||(d1=!0,T.add(h),a=VU.bind(null,a,l,h),l.then(a,a))}function VU(a,l,h){var v=a.pingCache;v!==null&&v.delete(l),a.pingedLanes|=a.suspendedLanes&h,a.warmLanes&=~h,Jt===a&&(jt&h)===h&&(On===4||On===3&&(jt&62914560)===jt&&300>_e()-bp?(Ft&2)===0&&Mc(a,0):h1|=h,Oc===jt&&(Oc=0)),Qa(a)}function ME(a,l){l===0&&(l=hn()),a=Gi(a,l),a!==null&&(bn(a,l),Qa(a))}function HU(a){var l=a.memoizedState,h=0;l!==null&&(h=l.retryLane),ME(a,h)}function qU(a,l){var h=0;switch(a.tag){case 31:case 13:var v=a.stateNode,T=a.memoizedState;T!==null&&(h=T.retryLane);break;case 19:v=a.stateNode;break;case 22:v=a.stateNode._retryCache;break;default:throw Error(r(314))}v!==null&&v.delete(l),ME(a,h)}function GU(a,l){return Ve(a,l)}var Ap=null,Rc=null,x1=!1,Tp=!1,w1=!1,Vs=0;function Qa(a){a!==Rc&&a.next===null&&(Rc===null?Ap=Rc=a:Rc=Rc.next=a),Tp=!0,x1||(x1=!0,WU())}function Nd(a,l){if(!w1&&Tp){w1=!0;do for(var h=!1,v=Ap;v!==null;){if(a!==0){var T=v.pendingLanes;if(T===0)var M=0;else{var q=v.suspendedLanes,ie=v.pingedLanes;M=(1<<31-yt(42|a)+1)-1,M&=T&~(q&~ie),M=M&201326741?M&201326741|1:M?M|2:0}M!==0&&(h=!0,LE(v,M))}else M=jt,M=ka(v,v===Jt?M:0,v.cancelPendingCommit!==null||v.timeoutHandle!==-1),(M&3)===0||ui(v,M)||(h=!0,LE(v,M));v=v.next}while(h);w1=!1}}function YU(){PE()}function PE(){Tp=x1=!1;var a=0;Vs!==0&&iz()&&(a=Vs);for(var l=_e(),h=null,v=Ap;v!==null;){var T=v.next,M=RE(v,l);M===0?(v.next=null,h===null?Ap=T:h.next=T,T===null&&(Rc=h)):(h=v,(a!==0||(M&3)!==0)&&(Tp=!0)),v=T}Jn!==0&&Jn!==5||Nd(a),Vs!==0&&(Vs=0)}function RE(a,l){for(var h=a.suspendedLanes,v=a.pingedLanes,T=a.expirationTimes,M=a.pendingLanes&-62914561;0<M;){var q=31-yt(M),ie=1<<q,pe=T[q];pe===-1?((ie&h)===0||(ie&v)!==0)&&(T[q]=Sn(ie,l)):pe<=l&&(a.expiredLanes|=ie),M&=~ie}if(l=Jt,h=jt,h=ka(a,a===l?h:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),v=a.callbackNode,h===0||a===l&&(Ht===2||Ht===9)||a.cancelPendingCommit!==null)return v!==null&&v!==null&&Fe(v),a.callbackNode=null,a.callbackPriority=0;if((h&3)===0||ui(a,h)){if(l=h&-h,l===a.callbackPriority)return l;switch(v!==null&&Fe(v),at(h)){case 2:case 8:h=Me;break;case 32:h=$e;break;case 268435456:h=Ze;break;default:h=$e}return v=NE.bind(null,a),h=Ve(h,v),a.callbackPriority=l,a.callbackNode=h,l}return v!==null&&v!==null&&Fe(v),a.callbackPriority=2,a.callbackNode=null,2}function NE(a,l){if(Jn!==0&&Jn!==5)return a.callbackNode=null,a.callbackPriority=0,null;var h=a.callbackNode;if(Ep()&&a.callbackNode!==h)return null;var v=jt;return v=ka(a,a===Jt?v:0,a.cancelPendingCommit!==null||a.timeoutHandle!==-1),v===0?null:(mE(a,v,l),RE(a,_e()),a.callbackNode!=null&&a.callbackNode===h?NE.bind(null,a):null)}function LE(a,l){if(Ep())return null;mE(a,l,!0)}function WU(){oz(function(){(Ft&6)!==0?Ve(Re,YU):PE()})}function S1(){if(Vs===0){var a=vc;a===0&&(a=Nr,Nr<<=1,(Nr&261888)===0&&(Nr=256)),Vs=a}return Vs}function DE(a){return a==null||typeof a=="symbol"||typeof a=="boolean"?null:typeof a=="function"?a:ys(""+a)}function kE(a,l){var h=l.ownerDocument.createElement("input");return h.name=l.name,h.value=l.value,a.id&&h.setAttribute("form",a.id),l.parentNode.insertBefore(h,l),a=new FormData(a),h.parentNode.removeChild(h),a}function KU(a,l,h,v,T){if(l==="submit"&&h&&h.stateNode===T){var M=DE((T[or]||null).action),q=v.submitter;q&&(l=(l=q[or]||null)?DE(l.formAction):q.getAttribute("formAction"),l!==null&&(M=l,q=null));var ie=new tc("action","action",null,v,T);a.push({event:ie,listeners:[{instance:null,listener:function(){if(v.defaultPrevented){if(Vs!==0){var pe=q?kE(T,q):new FormData(T);V0(h,{pending:!0,data:pe,method:T.method,action:M},null,pe)}}else typeof M=="function"&&(ie.preventDefault(),pe=q?kE(T,q):new FormData(T),V0(h,{pending:!0,data:pe,method:T.method,action:M},M,pe))},currentTarget:T}]})}}for(var C1=0;C1<Ga.length;C1++){var E1=Ga[C1],ZU=E1.toLowerCase(),XU=E1[0].toUpperCase()+E1.slice(1);Kr(ZU,"on"+XU)}Kr(Xl,"onAnimationEnd"),Kr(qm,"onAnimationIteration"),Kr(Ql,"onAnimationStart"),Kr("dblclick","onDoubleClick"),Kr("focusin","onFocus"),Kr("focusout","onBlur"),Kr(m0,"onTransitionRun"),Kr(Gm,"onTransitionStart"),Kr(p0,"onTransitionCancel"),Kr(js,"onTransitionEnd"),za("onMouseEnter",["mouseout","mouseover"]),za("onMouseLeave",["mouseout","mouseover"]),za("onPointerEnter",["pointerout","pointerover"]),za("onPointerLeave",["pointerout","pointerover"]),yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),yo("onBeforeInput",["compositionend","keypress","textInput","paste"]),yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ld="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(" "),QU=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ld));function IE(a,l){l=(l&4)!==0;for(var h=0;h<a.length;h++){var v=a[h],T=v.event;v=v.listeners;e:{var M=void 0;if(l)for(var q=v.length-1;0<=q;q--){var ie=v[q],pe=ie.instance,Ee=ie.currentTarget;if(ie=ie.listener,pe!==M&&T.isPropagationStopped())break e;M=ie,T.currentTarget=Ee;try{M(T)}catch(ke){Jl(ke)}T.currentTarget=null,M=pe}else for(q=0;q<v.length;q++){if(ie=v[q],pe=ie.instance,Ee=ie.currentTarget,ie=ie.listener,pe!==M&&T.isPropagationStopped())break e;M=ie,T.currentTarget=Ee;try{M(T)}catch(ke){Jl(ke)}T.currentTarget=null,M=pe}}}}function Et(a,l){var h=l[Ia];h===void 0&&(h=l[Ia]=new Set);var v=a+"__bubble";h.has(v)||(UE(l,a,2,!1),h.add(v))}function A1(a,l,h){var v=0;l&&(v|=4),UE(h,a,v,l)}var Op="_reactListening"+Math.random().toString(36).slice(2);function T1(a){if(!a[Op]){a[Op]=!0,Em.forEach(function(h){h!=="selectionchange"&&(QU.has(h)||A1(h,!1,a),A1(h,!0,a))});var l=a.nodeType===9?a:a.ownerDocument;l===null||l[Op]||(l[Op]=!0,A1("selectionchange",!1,l))}}function UE(a,l,h,v){switch(hA(l)){case 2:var T=Az;break;case 8:T=Tz;break;default:T=$1}h=T.bind(null,l,h,a),T=void 0,!zl||l!=="touchstart"&&l!=="touchmove"&&l!=="wheel"||(T=!0),v?T!==void 0?a.addEventListener(l,h,{capture:!0,passive:T}):a.addEventListener(l,h,!0):T!==void 0?a.addEventListener(l,h,{passive:T}):a.addEventListener(l,h,!1)}function O1(a,l,h,v,T){var M=v;if((l&1)===0&&(l&2)===0&&v!==null)e:for(;;){if(v===null)return;var q=v.tag;if(q===3||q===4){var ie=v.stateNode.containerInfo;if(ie===T)break;if(q===4)for(q=v.return;q!==null;){var pe=q.tag;if((pe===3||pe===4)&&q.stateNode.containerInfo===T)return;q=q.return}for(;ie!==null;){if(q=vo(ie),q===null)return;if(pe=q.tag,pe===5||pe===6||pe===26||pe===27){v=M=q;continue e}ie=ie.parentNode}}v=v.return}Xf(function(){var Ee=M,ke=Ul(h),ze=[];e:{var Oe=Ym.get(a);if(Oe!==void 0){var Ne=tc,tt=a;switch(a){case"keypress":if(Bl(h)===0)break e;case"keydown":case"keyup":Ne=Nm;break;case"focusin":tt="focus",Ne=ed;break;case"focusout":tt="blur",Ne=ed;break;case"beforeblur":case"afterblur":Ne=ed;break;case"click":if(h.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Ne=Om;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Ne=r0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Ne=l0;break;case Xl:case qm:case Ql:Ne=td;break;case js:Ne=km;break;case"scroll":case"scrollend":Ne=Ot;break;case"wheel":Ne=wo;break;case"copy":case"cut":case"paste":Ne=$i;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Ne=Lm;break;case"toggle":case"beforetoggle":Ne=Vl}var ct=(l&4)!==0,Zt=!ct&&(a==="scroll"||a==="scrollend"),xe=ct?Oe!==null?Oe+"Capture":null:Oe;ct=[];for(var ye=Ee,Ce;ye!==null;){var Ie=ye;if(Ce=Ie.stateNode,Ie=Ie.tag,Ie!==5&&Ie!==26&&Ie!==27||Ce===null||xe===null||(Ie=_o(ye,xe),Ie!=null&&ct.push(Dd(ye,Ie,Ce))),Zt)break;ye=ye.return}0<ct.length&&(Oe=new Ne(Oe,tt,null,h,ke),ze.push({event:Oe,listeners:ct}))}}if((l&7)===0){e:{if(Oe=a==="mouseover"||a==="pointerover",Ne=a==="mouseout"||a==="pointerout",Oe&&h!==ec&&(tt=h.relatedTarget||h.fromElement)&&(vo(tt)||tt[go]))break e;if((Ne||Oe)&&(Oe=ke.window===ke?ke:(Oe=ke.ownerDocument)?Oe.defaultView||Oe.parentWindow:window,Ne?(tt=h.relatedTarget||h.toElement,Ne=Ee,tt=tt?vo(tt):null,tt!==null&&(Zt=o(tt),ct=tt.tag,tt!==Zt||ct!==5&&ct!==27&&ct!==6)&&(tt=null)):(Ne=null,tt=Ee),Ne!==tt)){if(ct=Om,Ie="onMouseLeave",xe="onMouseEnter",ye="mouse",(a==="pointerout"||a==="pointerover")&&(ct=Lm,Ie="onPointerLeave",xe="onPointerEnter",ye="pointer"),Zt=Ne==null?Oe:Ua(Ne),Ce=tt==null?Oe:Ua(tt),Oe=new ct(Ie,ye+"leave",Ne,h,ke),Oe.target=Zt,Oe.relatedTarget=Ce,Ie=null,vo(ke)===Ee&&(ct=new ct(xe,ye+"enter",tt,h,ke),ct.target=Ce,ct.relatedTarget=Zt,Ie=ct),Zt=Ie,Ne&&tt)t:{for(ct=JU,xe=Ne,ye=tt,Ce=0,Ie=xe;Ie;Ie=ct(Ie))Ce++;Ie=0;for(var st=ye;st;st=ct(st))Ie++;for(;0<Ce-Ie;)xe=ct(xe),Ce--;for(;0<Ie-Ce;)ye=ct(ye),Ie--;for(;Ce--;){if(xe===ye||ye!==null&&xe===ye.alternate){ct=xe;break t}xe=ct(xe),ye=ct(ye)}ct=null}else ct=null;Ne!==null&&zE(ze,Oe,Ne,ct,!1),tt!==null&&Zt!==null&&zE(ze,Zt,tt,ct,!0)}}e:{if(Oe=Ee?Ua(Ee):window,Ne=Oe.nodeName&&Oe.nodeName.toLowerCase(),Ne==="select"||Ne==="input"&&Oe.type==="file")var Ut=Yl;else if(Vi(Oe))if(Bm)Ut=h0;else{Ut=d0;var nt=fa}else Ne=Oe.nodeName,!Ne||Ne.toLowerCase()!=="input"||Oe.type!=="checkbox"&&Oe.type!=="radio"?Ee&&Il(Ee.elementType)&&(Ut=Yl):Ut=Es;if(Ut&&(Ut=Ut(a,Ee))){zm(ze,Ut,h,ke);break e}nt&&nt(a,Oe,Ee),a==="focusout"&&Ee&&Oe.type==="number"&&Ee.memoizedProps.value!=null&&la(Oe,"number",Oe.value)}switch(nt=Ee?Ua(Ee):window,a){case"focusin":(Vi(nt)||nt.contentEditable==="true")&&(Ha=nt,cc=Ee,Zl=null);break;case"focusout":Zl=cc=Ha=null;break;case"mousedown":Ts=!0;break;case"contextmenu":case"mouseup":case"dragend":Ts=!1,Vm(ze,h,ke);break;case"selectionchange":if(uc)break;case"keydown":case"keyup":Vm(ze,h,ke)}var _t;if(rc)e:{switch(a){case"compositionstart":var Mt="onCompositionStart";break e;case"compositionend":Mt="onCompositionEnd";break e;case"compositionupdate":Mt="onCompositionUpdate";break e}Mt=void 0}else ws?Um(a,h)&&(Mt="onCompositionEnd"):a==="keydown"&&h.keyCode===229&&(Mt="onCompositionStart");Mt&&(ic&&h.locale!=="ko"&&(ws||Mt!=="onCompositionStart"?Mt==="onCompositionEnd"&&ws&&(_t=Fa()):(Fi=ke,xo="value"in Fi?Fi.value:Fi.textContent,ws=!0)),nt=jp(Ee,Mt),0<nt.length&&(Mt=new nd(Mt,a,null,h,ke),ze.push({event:Mt,listeners:nt}),_t?Mt.data=_t:(_t=od(h),_t!==null&&(Mt.data=_t)))),(_t=c0?hi(a,h):Ss(a,h))&&(Mt=jp(Ee,"onBeforeInput"),0<Mt.length&&(nt=new nd("onBeforeInput","beforeinput",null,h,ke),ze.push({event:nt,listeners:Mt}),nt.data=_t)),KU(ze,a,Ee,h,ke)}IE(ze,l)})}function Dd(a,l,h){return{instance:a,listener:l,currentTarget:h}}function jp(a,l){for(var h=l+"Capture",v=[];a!==null;){var T=a,M=T.stateNode;if(T=T.tag,T!==5&&T!==26&&T!==27||M===null||(T=_o(a,h),T!=null&&v.unshift(Dd(a,T,M)),T=_o(a,l),T!=null&&v.push(Dd(a,T,M))),a.tag===3)return v;a=a.return}return[]}function JU(a){if(a===null)return null;do a=a.return;while(a&&a.tag!==5&&a.tag!==27);return a||null}function zE(a,l,h,v,T){for(var M=l._reactName,q=[];h!==null&&h!==v;){var ie=h,pe=ie.alternate,Ee=ie.stateNode;if(ie=ie.tag,pe!==null&&pe===v)break;ie!==5&&ie!==26&&ie!==27||Ee===null||(pe=Ee,T?(Ee=_o(h,M),Ee!=null&&q.unshift(Dd(h,Ee,pe))):T||(Ee=_o(h,M),Ee!=null&&q.push(Dd(h,Ee,pe)))),h=h.return}q.length!==0&&a.push({event:l,listeners:q})}var ez=/\r\n?/g,tz=/\u0000|\uFFFD/g;function BE(a){return(typeof a=="string"?a:""+a).replace(ez,`
`).replace(tz,"")}function FE(a,l){return l=BE(l),BE(a)===l}function Kt(a,l,h,v,T,M){switch(h){case"children":typeof v=="string"?l==="body"||l==="textarea"&&v===""||Bi(a,v):(typeof v=="number"||typeof v=="bigint")&&l!=="body"&&Bi(a,""+v);break;case"className":Yt(a,"class",v);break;case"tabIndex":Yt(a,"tabindex",v);break;case"dir":case"role":case"viewBox":case"width":case"height":Yt(a,h,v);break;case"style":Qu(a,v,M);break;case"data":if(l!=="object"){Yt(a,"data",v);break}case"src":case"href":if(v===""&&(l!=="a"||h!=="href")){a.removeAttribute(h);break}if(v==null||typeof v=="function"||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(h);break}v=ys(""+v),a.setAttribute(h,v);break;case"action":case"formAction":if(typeof v=="function"){a.setAttribute(h,"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 M=="function"&&(h==="formAction"?(l!=="input"&&Kt(a,l,"name",T.name,T,null),Kt(a,l,"formEncType",T.formEncType,T,null),Kt(a,l,"formMethod",T.formMethod,T,null),Kt(a,l,"formTarget",T.formTarget,T,null)):(Kt(a,l,"encType",T.encType,T,null),Kt(a,l,"method",T.method,T,null),Kt(a,l,"target",T.target,T,null)));if(v==null||typeof v=="symbol"||typeof v=="boolean"){a.removeAttribute(h);break}v=ys(""+v),a.setAttribute(h,v);break;case"onClick":v!=null&&(a.onclick=Yr);break;case"onScroll":v!=null&&Et("scroll",a);break;case"onScrollEnd":v!=null&&Et("scrollend",a);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(h=v.__html,h!=null){if(T.children!=null)throw Error(r(60));a.innerHTML=h}}break;case"multiple":a.multiple=v&&typeof v!="function"&&typeof v!="symbol";break;case"muted":a.muted=v&&typeof v!="function"&&typeof v!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(v==null||typeof v=="function"||typeof v=="boolean"||typeof v=="symbol"){a.removeAttribute("xlink:href");break}h=ys(""+v),a.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",h);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":v!=null&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(h,""+v):a.removeAttribute(h);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":v&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(h,""):a.removeAttribute(h);break;case"capture":case"download":v===!0?a.setAttribute(h,""):v!==!1&&v!=null&&typeof v!="function"&&typeof v!="symbol"?a.setAttribute(h,v):a.removeAttribute(h);break;case"cols":case"rows":case"size":case"span":v!=null&&typeof v!="function"&&typeof v!="symbol"&&!isNaN(v)&&1<=v?a.setAttribute(h,v):a.removeAttribute(h);break;case"rowSpan":case"start":v==null||typeof v=="function"||typeof v=="symbol"||isNaN(v)?a.removeAttribute(h):a.setAttribute(h,v);break;case"popover":Et("beforetoggle",a),Et("toggle",a),wt(a,"popover",v);break;case"xlinkActuate":Gr(a,"http://www.w3.org/1999/xlink","xlink:actuate",v);break;case"xlinkArcrole":Gr(a,"http://www.w3.org/1999/xlink","xlink:arcrole",v);break;case"xlinkRole":Gr(a,"http://www.w3.org/1999/xlink","xlink:role",v);break;case"xlinkShow":Gr(a,"http://www.w3.org/1999/xlink","xlink:show",v);break;case"xlinkTitle":Gr(a,"http://www.w3.org/1999/xlink","xlink:title",v);break;case"xlinkType":Gr(a,"http://www.w3.org/1999/xlink","xlink:type",v);break;case"xmlBase":Gr(a,"http://www.w3.org/XML/1998/namespace","xml:base",v);break;case"xmlLang":Gr(a,"http://www.w3.org/XML/1998/namespace","xml:lang",v);break;case"xmlSpace":Gr(a,"http://www.w3.org/XML/1998/namespace","xml:space",v);break;case"is":wt(a,"is",v);break;case"innerText":case"textContent":break;default:(!(2<h.length)||h[0]!=="o"&&h[0]!=="O"||h[1]!=="n"&&h[1]!=="N")&&(h=Ju.get(h)||h,wt(a,h,v))}}function j1(a,l,h,v,T,M){switch(h){case"style":Qu(a,v,M);break;case"dangerouslySetInnerHTML":if(v!=null){if(typeof v!="object"||!("__html"in v))throw Error(r(61));if(h=v.__html,h!=null){if(T.children!=null)throw Error(r(60));a.innerHTML=h}}break;case"children":typeof v=="string"?Bi(a,v):(typeof v=="number"||typeof v=="bigint")&&Bi(a,""+v);break;case"onScroll":v!=null&&Et("scroll",a);break;case"onScrollEnd":v!=null&&Et("scrollend",a);break;case"onClick":v!=null&&(a.onclick=Yr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Am.hasOwnProperty(h))e:{if(h[0]==="o"&&h[1]==="n"&&(T=h.endsWith("Capture"),l=h.slice(2,T?h.length-7:void 0),M=a[or]||null,M=M!=null?M[h]:null,typeof M=="function"&&a.removeEventListener(l,M,T),typeof v=="function")){typeof M!="function"&&M!==null&&(h in a?a[h]=null:a.hasAttribute(h)&&a.removeAttribute(h)),a.addEventListener(l,v,T);break e}h in a?a[h]=v:v===!0?a.setAttribute(h,""):wt(a,h,v)}}}function vr(a,l,h){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Et("error",a),Et("load",a);var v=!1,T=!1,M;for(M in h)if(h.hasOwnProperty(M)){var q=h[M];if(q!=null)switch(M){case"src":v=!0;break;case"srcSet":T=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Kt(a,l,M,q,h,null)}}T&&Kt(a,l,"srcSet",h.srcSet,h,null),v&&Kt(a,l,"src",h.src,h,null);return;case"input":Et("invalid",a);var ie=M=q=T=null,pe=null,Ee=null;for(v in h)if(h.hasOwnProperty(v)){var ke=h[v];if(ke!=null)switch(v){case"name":T=ke;break;case"type":q=ke;break;case"checked":pe=ke;break;case"defaultChecked":Ee=ke;break;case"value":M=ke;break;case"defaultValue":ie=ke;break;case"children":case"dangerouslySetInnerHTML":if(ke!=null)throw Error(r(137,l));break;default:Kt(a,l,v,ke,h,null)}}kl(a,M,ie,pe,Ee,q,T,!1);return;case"select":Et("invalid",a),v=q=M=null;for(T in h)if(h.hasOwnProperty(T)&&(ie=h[T],ie!=null))switch(T){case"value":M=ie;break;case"defaultValue":q=ie;break;case"multiple":v=ie;default:Kt(a,l,T,ie,h,null)}l=M,h=q,a.multiple=!!v,l!=null?Qt(a,!!v,l,!1):h!=null&&Qt(a,!!v,h,!0);return;case"textarea":Et("invalid",a),M=T=v=null;for(q in h)if(h.hasOwnProperty(q)&&(ie=h[q],ie!=null))switch(q){case"value":v=ie;break;case"defaultValue":T=ie;break;case"children":M=ie;break;case"dangerouslySetInnerHTML":if(ie!=null)throw Error(r(91));break;default:Kt(a,l,q,ie,h,null)}gs(a,v,T,M);return;case"option":for(pe in h)if(h.hasOwnProperty(pe)&&(v=h[pe],v!=null))switch(pe){case"selected":a.selected=v&&typeof v!="function"&&typeof v!="symbol";break;default:Kt(a,l,pe,v,h,null)}return;case"dialog":Et("beforetoggle",a),Et("toggle",a),Et("cancel",a),Et("close",a);break;case"iframe":case"object":Et("load",a);break;case"video":case"audio":for(v=0;v<Ld.length;v++)Et(Ld[v],a);break;case"image":Et("error",a),Et("load",a);break;case"details":Et("toggle",a);break;case"embed":case"source":case"link":Et("error",a),Et("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 h)if(h.hasOwnProperty(Ee)&&(v=h[Ee],v!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,l));default:Kt(a,l,Ee,v,h,null)}return;default:if(Il(l)){for(ke in h)h.hasOwnProperty(ke)&&(v=h[ke],v!==void 0&&j1(a,l,ke,v,h,void 0));return}}for(ie in h)h.hasOwnProperty(ie)&&(v=h[ie],v!=null&&Kt(a,l,ie,v,h,null))}function nz(a,l,h,v){switch(l){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var T=null,M=null,q=null,ie=null,pe=null,Ee=null,ke=null;for(Ne in h){var ze=h[Ne];if(h.hasOwnProperty(Ne)&&ze!=null)switch(Ne){case"checked":break;case"value":break;case"defaultValue":pe=ze;default:v.hasOwnProperty(Ne)||Kt(a,l,Ne,null,v,ze)}}for(var Oe in v){var Ne=v[Oe];if(ze=h[Oe],v.hasOwnProperty(Oe)&&(Ne!=null||ze!=null))switch(Oe){case"type":M=Ne;break;case"name":T=Ne;break;case"checked":Ee=Ne;break;case"defaultChecked":ke=Ne;break;case"value":q=Ne;break;case"defaultValue":ie=Ne;break;case"children":case"dangerouslySetInnerHTML":if(Ne!=null)throw Error(r(137,l));break;default:Ne!==ze&&Kt(a,l,Oe,Ne,v,ze)}}Wf(a,q,ie,pe,Ee,ke,M,T);return;case"select":Ne=q=ie=Oe=null;for(M in h)if(pe=h[M],h.hasOwnProperty(M)&&pe!=null)switch(M){case"value":break;case"multiple":Ne=pe;default:v.hasOwnProperty(M)||Kt(a,l,M,null,v,pe)}for(T in v)if(M=v[T],pe=h[T],v.hasOwnProperty(T)&&(M!=null||pe!=null))switch(T){case"value":Oe=M;break;case"defaultValue":ie=M;break;case"multiple":q=M;default:M!==pe&&Kt(a,l,T,M,v,pe)}l=ie,h=q,v=Ne,Oe!=null?Qt(a,!!h,Oe,!1):!!v!=!!h&&(l!=null?Qt(a,!!h,l,!0):Qt(a,!!h,h?[]:"",!1));return;case"textarea":Ne=Oe=null;for(ie in h)if(T=h[ie],h.hasOwnProperty(ie)&&T!=null&&!v.hasOwnProperty(ie))switch(ie){case"value":break;case"children":break;default:Kt(a,l,ie,null,v,T)}for(q in v)if(T=v[q],M=h[q],v.hasOwnProperty(q)&&(T!=null||M!=null))switch(q){case"value":Oe=T;break;case"defaultValue":Ne=T;break;case"children":break;case"dangerouslySetInnerHTML":if(T!=null)throw Error(r(91));break;default:T!==M&&Kt(a,l,q,T,v,M)}Ba(a,Oe,Ne);return;case"option":for(var tt in h)if(Oe=h[tt],h.hasOwnProperty(tt)&&Oe!=null&&!v.hasOwnProperty(tt))switch(tt){case"selected":a.selected=!1;break;default:Kt(a,l,tt,null,v,Oe)}for(pe in v)if(Oe=v[pe],Ne=h[pe],v.hasOwnProperty(pe)&&Oe!==Ne&&(Oe!=null||Ne!=null))switch(pe){case"selected":a.selected=Oe&&typeof Oe!="function"&&typeof Oe!="symbol";break;default:Kt(a,l,pe,Oe,v,Ne)}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 ct in h)Oe=h[ct],h.hasOwnProperty(ct)&&Oe!=null&&!v.hasOwnProperty(ct)&&Kt(a,l,ct,null,v,Oe);for(Ee in v)if(Oe=v[Ee],Ne=h[Ee],v.hasOwnProperty(Ee)&&Oe!==Ne&&(Oe!=null||Ne!=null))switch(Ee){case"children":case"dangerouslySetInnerHTML":if(Oe!=null)throw Error(r(137,l));break;default:Kt(a,l,Ee,Oe,v,Ne)}return;default:if(Il(l)){for(var Zt in h)Oe=h[Zt],h.hasOwnProperty(Zt)&&Oe!==void 0&&!v.hasOwnProperty(Zt)&&j1(a,l,Zt,void 0,v,Oe);for(ke in v)Oe=v[ke],Ne=h[ke],!v.hasOwnProperty(ke)||Oe===Ne||Oe===void 0&&Ne===void 0||j1(a,l,ke,Oe,v,Ne);return}}for(var xe in h)Oe=h[xe],h.hasOwnProperty(xe)&&Oe!=null&&!v.hasOwnProperty(xe)&&Kt(a,l,xe,null,v,Oe);for(ze in v)Oe=v[ze],Ne=h[ze],!v.hasOwnProperty(ze)||Oe===Ne||Oe==null&&Ne==null||Kt(a,l,ze,Oe,v,Ne)}function $E(a){switch(a){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function rz(){if(typeof performance.getEntriesByType=="function"){for(var a=0,l=0,h=performance.getEntriesByType("resource"),v=0;v<h.length;v++){var T=h[v],M=T.transferSize,q=T.initiatorType,ie=T.duration;if(M&&ie&&$E(q)){for(q=0,ie=T.responseEnd,v+=1;v<h.length;v++){var pe=h[v],Ee=pe.startTime;if(Ee>ie)break;var ke=pe.transferSize,ze=pe.initiatorType;ke&&$E(ze)&&(pe=pe.responseEnd,q+=ke*(pe<ie?1:(ie-Ee)/(pe-Ee)))}if(--v,l+=8*(M+q)/(T.duration/1e3),a++,10<a)break}}if(0<a)return l/a/1e6}return navigator.connection&&(a=navigator.connection.downlink,typeof a=="number")?a:5}var M1=null,P1=null;function Mp(a){return a.nodeType===9?a:a.ownerDocument}function VE(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 HE(a,l){if(a===0)switch(l){case"svg":return 1;case"math":return 2;default:return 0}return a===1&&l==="foreignObject"?0:a}function R1(a,l){return a==="textarea"||a==="noscript"||typeof l.children=="string"||typeof l.children=="number"||typeof l.children=="bigint"||typeof l.dangerouslySetInnerHTML=="object"&&l.dangerouslySetInnerHTML!==null&&l.dangerouslySetInnerHTML.__html!=null}var N1=null;function iz(){var a=window.event;return a&&a.type==="popstate"?a===N1?!1:(N1=a,!0):(N1=null,!1)}var qE=typeof setTimeout=="function"?setTimeout:void 0,az=typeof clearTimeout=="function"?clearTimeout:void 0,GE=typeof Promise=="function"?Promise:void 0,oz=typeof queueMicrotask=="function"?queueMicrotask:typeof GE<"u"?function(a){return GE.resolve(null).then(a).catch(sz)}:qE;function sz(a){setTimeout(function(){throw a})}function Hs(a){return a==="head"}function YE(a,l){var h=l,v=0;do{var T=h.nextSibling;if(a.removeChild(h),T&&T.nodeType===8)if(h=T.data,h==="/$"||h==="/&"){if(v===0){a.removeChild(T),kc(l);return}v--}else if(h==="$"||h==="$?"||h==="$~"||h==="$!"||h==="&")v++;else if(h==="html")kd(a.ownerDocument.documentElement);else if(h==="head"){h=a.ownerDocument.head,kd(h);for(var M=h.firstChild;M;){var q=M.nextSibling,ie=M.nodeName;M[Nl]||ie==="SCRIPT"||ie==="STYLE"||ie==="LINK"&&M.rel.toLowerCase()==="stylesheet"||h.removeChild(M),M=q}}else h==="body"&&kd(a.ownerDocument.body);h=T}while(h);kc(l)}function WE(a,l){var h=a;a=0;do{var v=h.nextSibling;if(h.nodeType===1?l?(h._stashedDisplay=h.style.display,h.style.display="none"):(h.style.display=h._stashedDisplay||"",h.getAttribute("style")===""&&h.removeAttribute("style")):h.nodeType===3&&(l?(h._stashedText=h.nodeValue,h.nodeValue=""):h.nodeValue=h._stashedText||""),v&&v.nodeType===8)if(h=v.data,h==="/$"){if(a===0)break;a--}else h!=="$"&&h!=="$?"&&h!=="$~"&&h!=="$!"||a++;h=v}while(h)}function L1(a){var l=a.firstChild;for(l&&l.nodeType===10&&(l=l.nextSibling);l;){var h=l;switch(l=l.nextSibling,h.nodeName){case"HTML":case"HEAD":case"BODY":L1(h),Hf(h);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(h.rel.toLowerCase()==="stylesheet")continue}a.removeChild(h)}}function lz(a,l,h,v){for(;a.nodeType===1;){var T=h;if(a.nodeName.toLowerCase()!==l.toLowerCase()){if(!v&&(a.nodeName!=="INPUT"||a.type!=="hidden"))break}else if(v){if(!a[Nl])switch(l){case"meta":if(!a.hasAttribute("itemprop"))break;return a;case"link":if(M=a.getAttribute("rel"),M==="stylesheet"&&a.hasAttribute("data-precedence"))break;if(M!==T.rel||a.getAttribute("href")!==(T.href==null||T.href===""?null:T.href)||a.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin)||a.getAttribute("title")!==(T.title==null?null:T.title))break;return a;case"style":if(a.hasAttribute("data-precedence"))break;return a;case"script":if(M=a.getAttribute("src"),(M!==(T.src==null?null:T.src)||a.getAttribute("type")!==(T.type==null?null:T.type)||a.getAttribute("crossorigin")!==(T.crossOrigin==null?null:T.crossOrigin))&&M&&a.hasAttribute("async")&&!a.hasAttribute("itemprop"))break;return a;default:return a}}else if(l==="input"&&a.type==="hidden"){var M=T.name==null?null:""+T.name;if(T.type==="hidden"&&a.getAttribute("name")===M)return a}else return a;if(a=Ki(a.nextSibling),a===null)break}return null}function uz(a,l,h){if(l==="")return null;for(;a.nodeType!==3;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!h||(a=Ki(a.nextSibling),a===null))return null;return a}function KE(a,l){for(;a.nodeType!==8;)if((a.nodeType!==1||a.nodeName!=="INPUT"||a.type!=="hidden")&&!l||(a=Ki(a.nextSibling),a===null))return null;return a}function D1(a){return a.data==="$?"||a.data==="$~"}function k1(a){return a.data==="$!"||a.data==="$?"&&a.ownerDocument.readyState!=="loading"}function cz(a,l){var h=a.ownerDocument;if(a.data==="$~")a._reactRetry=l;else if(a.data!=="$?"||h.readyState!=="loading")l();else{var v=function(){l(),h.removeEventListener("DOMContentLoaded",v)};h.addEventListener("DOMContentLoaded",v),a._reactRetry=v}}function Ki(a){for(;a!=null;a=a.nextSibling){var l=a.nodeType;if(l===1||l===3)break;if(l===8){if(l=a.data,l==="$"||l==="$!"||l==="$?"||l==="$~"||l==="&"||l==="F!"||l==="F")break;if(l==="/$"||l==="/&")return null}}return a}var I1=null;function ZE(a){a=a.nextSibling;for(var l=0;a;){if(a.nodeType===8){var h=a.data;if(h==="/$"||h==="/&"){if(l===0)return Ki(a.nextSibling);l--}else h!=="$"&&h!=="$!"&&h!=="$?"&&h!=="$~"&&h!=="&"||l++}a=a.nextSibling}return null}function XE(a){a=a.previousSibling;for(var l=0;a;){if(a.nodeType===8){var h=a.data;if(h==="$"||h==="$!"||h==="$?"||h==="$~"||h==="&"){if(l===0)return a;l--}else h!=="/$"&&h!=="/&"||l++}a=a.previousSibling}return null}function QE(a,l,h){switch(l=Mp(h),a){case"html":if(a=l.documentElement,!a)throw Error(r(452));return a;case"head":if(a=l.head,!a)throw Error(r(453));return a;case"body":if(a=l.body,!a)throw Error(r(454));return a;default:throw Error(r(451))}}function kd(a){for(var l=a.attributes;l.length;)a.removeAttributeNode(l[0]);Hf(a)}var Zi=new Map,JE=new Set;function Pp(a){return typeof a.getRootNode=="function"?a.getRootNode():a.nodeType===9?a:a.ownerDocument}var Io=I.d;I.d={f:fz,r:dz,D:hz,C:mz,L:pz,m:gz,X:yz,S:vz,M:bz};function fz(){var a=Io.f(),l=wp();return a||l}function dz(a){var l=hs(a);l!==null&&l.tag===5&&l.type==="form"?g4(l):Io.r(a)}var Nc=typeof document>"u"?null:document;function eA(a,l,h){var v=Nc;if(v&&typeof l=="string"&&l){var T=an(l);T='link[rel="'+a+'"][href="'+T+'"]',typeof h=="string"&&(T+='[crossorigin="'+h+'"]'),JE.has(T)||(JE.add(T),a={rel:a,crossOrigin:h,href:l},v.querySelector(T)===null&&(l=v.createElement("link"),vr(l,"link",a),Fn(l),v.head.appendChild(l)))}}function hz(a){Io.D(a),eA("dns-prefetch",a,null)}function mz(a,l){Io.C(a,l),eA("preconnect",a,l)}function pz(a,l,h){Io.L(a,l,h);var v=Nc;if(v&&a&&l){var T='link[rel="preload"][as="'+an(l)+'"]';l==="image"&&h&&h.imageSrcSet?(T+='[imagesrcset="'+an(h.imageSrcSet)+'"]',typeof h.imageSizes=="string"&&(T+='[imagesizes="'+an(h.imageSizes)+'"]')):T+='[href="'+an(a)+'"]';var M=T;switch(l){case"style":M=Lc(a);break;case"script":M=Dc(a)}Zi.has(M)||(a=p({rel:"preload",href:l==="image"&&h&&h.imageSrcSet?void 0:a,as:l},h),Zi.set(M,a),v.querySelector(T)!==null||l==="style"&&v.querySelector(Id(M))||l==="script"&&v.querySelector(Ud(M))||(l=v.createElement("link"),vr(l,"link",a),Fn(l),v.head.appendChild(l)))}}function gz(a,l){Io.m(a,l);var h=Nc;if(h&&a){var v=l&&typeof l.as=="string"?l.as:"script",T='link[rel="modulepreload"][as="'+an(v)+'"][href="'+an(a)+'"]',M=T;switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":M=Dc(a)}if(!Zi.has(M)&&(a=p({rel:"modulepreload",href:a},l),Zi.set(M,a),h.querySelector(T)===null)){switch(v){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(h.querySelector(Ud(M)))return}v=h.createElement("link"),vr(v,"link",a),Fn(v),h.head.appendChild(v)}}}function vz(a,l,h){Io.S(a,l,h);var v=Nc;if(v&&a){var T=ms(v).hoistableStyles,M=Lc(a);l=l||"default";var q=T.get(M);if(!q){var ie={loading:0,preload:null};if(q=v.querySelector(Id(M)))ie.loading=5;else{a=p({rel:"stylesheet",href:a,"data-precedence":l},h),(h=Zi.get(M))&&U1(a,h);var pe=q=v.createElement("link");Fn(pe),vr(pe,"link",a),pe._p=new Promise(function(Ee,ke){pe.onload=Ee,pe.onerror=ke}),pe.addEventListener("load",function(){ie.loading|=1}),pe.addEventListener("error",function(){ie.loading|=2}),ie.loading|=4,Rp(q,l,v)}q={type:"stylesheet",instance:q,count:1,state:ie},T.set(M,q)}}}function yz(a,l){Io.X(a,l);var h=Nc;if(h&&a){var v=ms(h).hoistableScripts,T=Dc(a),M=v.get(T);M||(M=h.querySelector(Ud(T)),M||(a=p({src:a,async:!0},l),(l=Zi.get(T))&&z1(a,l),M=h.createElement("script"),Fn(M),vr(M,"link",a),h.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},v.set(T,M))}}function bz(a,l){Io.M(a,l);var h=Nc;if(h&&a){var v=ms(h).hoistableScripts,T=Dc(a),M=v.get(T);M||(M=h.querySelector(Ud(T)),M||(a=p({src:a,async:!0,type:"module"},l),(l=Zi.get(T))&&z1(a,l),M=h.createElement("script"),Fn(M),vr(M,"link",a),h.head.appendChild(M)),M={type:"script",instance:M,count:1,state:null},v.set(T,M))}}function tA(a,l,h,v){var T=(T=fe.current)?Pp(T):null;if(!T)throw Error(r(446));switch(a){case"meta":case"title":return null;case"style":return typeof h.precedence=="string"&&typeof h.href=="string"?(l=Lc(h.href),h=ms(T).hoistableStyles,v=h.get(l),v||(v={type:"style",instance:null,count:0,state:null},h.set(l,v)),v):{type:"void",instance:null,count:0,state:null};case"link":if(h.rel==="stylesheet"&&typeof h.href=="string"&&typeof h.precedence=="string"){a=Lc(h.href);var M=ms(T).hoistableStyles,q=M.get(a);if(q||(T=T.ownerDocument||T,q={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},M.set(a,q),(M=T.querySelector(Id(a)))&&!M._p&&(q.instance=M,q.state.loading=5),Zi.has(a)||(h={rel:"preload",as:"style",href:h.href,crossOrigin:h.crossOrigin,integrity:h.integrity,media:h.media,hrefLang:h.hrefLang,referrerPolicy:h.referrerPolicy},Zi.set(a,h),M||_z(T,a,h,q.state))),l&&v===null)throw Error(r(528,""));return q}if(l&&v!==null)throw Error(r(529,""));return null;case"script":return l=h.async,h=h.src,typeof h=="string"&&l&&typeof l!="function"&&typeof l!="symbol"?(l=Dc(h),h=ms(T).hoistableScripts,v=h.get(l),v||(v={type:"script",instance:null,count:0,state:null},h.set(l,v)),v):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,a))}}function Lc(a){return'href="'+an(a)+'"'}function Id(a){return'link[rel="stylesheet"]['+a+"]"}function nA(a){return p({},a,{"data-precedence":a.precedence,precedence:null})}function _z(a,l,h,v){a.querySelector('link[rel="preload"][as="style"]['+l+"]")?v.loading=1:(l=a.createElement("link"),v.preload=l,l.addEventListener("load",function(){return v.loading|=1}),l.addEventListener("error",function(){return v.loading|=2}),vr(l,"link",h),Fn(l),a.head.appendChild(l))}function Dc(a){return'[src="'+an(a)+'"]'}function Ud(a){return"script[async]"+a}function rA(a,l,h){if(l.count++,l.instance===null)switch(l.type){case"style":var v=a.querySelector('style[data-href~="'+an(h.href)+'"]');if(v)return l.instance=v,Fn(v),v;var T=p({},h,{"data-href":h.href,"data-precedence":h.precedence,href:null,precedence:null});return v=(a.ownerDocument||a).createElement("style"),Fn(v),vr(v,"style",T),Rp(v,h.precedence,a),l.instance=v;case"stylesheet":T=Lc(h.href);var M=a.querySelector(Id(T));if(M)return l.state.loading|=4,l.instance=M,Fn(M),M;v=nA(h),(T=Zi.get(T))&&U1(v,T),M=(a.ownerDocument||a).createElement("link"),Fn(M);var q=M;return q._p=new Promise(function(ie,pe){q.onload=ie,q.onerror=pe}),vr(M,"link",v),l.state.loading|=4,Rp(M,h.precedence,a),l.instance=M;case"script":return M=Dc(h.src),(T=a.querySelector(Ud(M)))?(l.instance=T,Fn(T),T):(v=h,(T=Zi.get(M))&&(v=p({},h),z1(v,T)),a=a.ownerDocument||a,T=a.createElement("script"),Fn(T),vr(T,"link",v),a.head.appendChild(T),l.instance=T);case"void":return null;default:throw Error(r(443,l.type))}else l.type==="stylesheet"&&(l.state.loading&4)===0&&(v=l.instance,l.state.loading|=4,Rp(v,h.precedence,a));return l.instance}function Rp(a,l,h){for(var v=h.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),T=v.length?v[v.length-1]:null,M=T,q=0;q<v.length;q++){var ie=v[q];if(ie.dataset.precedence===l)M=ie;else if(M!==T)break}M?M.parentNode.insertBefore(a,M.nextSibling):(l=h.nodeType===9?h.head:h,l.insertBefore(a,l.firstChild))}function U1(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.title==null&&(a.title=l.title)}function z1(a,l){a.crossOrigin==null&&(a.crossOrigin=l.crossOrigin),a.referrerPolicy==null&&(a.referrerPolicy=l.referrerPolicy),a.integrity==null&&(a.integrity=l.integrity)}var Np=null;function iA(a,l,h){if(Np===null){var v=new Map,T=Np=new Map;T.set(h,v)}else T=Np,v=T.get(h),v||(v=new Map,T.set(h,v));if(v.has(a))return v;for(v.set(a,null),h=h.getElementsByTagName(a),T=0;T<h.length;T++){var M=h[T];if(!(M[Nl]||M[Bn]||a==="link"&&M.getAttribute("rel")==="stylesheet")&&M.namespaceURI!=="http://www.w3.org/2000/svg"){var q=M.getAttribute(l)||"";q=a+q;var ie=v.get(q);ie?ie.push(M):v.set(q,[M])}}return v}function aA(a,l,h){a=a.ownerDocument||a,a.head.insertBefore(h,l==="title"?a.querySelector("head > title"):null)}function xz(a,l,h){if(h===1||l.itemProp!=null)return!1;switch(a){case"meta":case"title":return!0;case"style":if(typeof l.precedence!="string"||typeof l.href!="string"||l.href==="")break;return!0;case"link":if(typeof l.rel!="string"||typeof l.href!="string"||l.href===""||l.onLoad||l.onError)break;switch(l.rel){case"stylesheet":return a=l.disabled,typeof l.precedence=="string"&&a==null;default:return!0}case"script":if(l.async&&typeof l.async!="function"&&typeof l.async!="symbol"&&!l.onLoad&&!l.onError&&l.src&&typeof l.src=="string")return!0}return!1}function oA(a){return!(a.type==="stylesheet"&&(a.state.loading&3)===0)}function wz(a,l,h,v){if(h.type==="stylesheet"&&(typeof v.media!="string"||matchMedia(v.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var T=Lc(v.href),M=l.querySelector(Id(T));if(M){l=M._p,l!==null&&typeof l=="object"&&typeof l.then=="function"&&(a.count++,a=Lp.bind(a),l.then(a,a)),h.state.loading|=4,h.instance=M,Fn(M);return}M=l.ownerDocument||l,v=nA(v),(T=Zi.get(T))&&U1(v,T),M=M.createElement("link"),Fn(M);var q=M;q._p=new Promise(function(ie,pe){q.onload=ie,q.onerror=pe}),vr(M,"link",v),h.instance=M}a.stylesheets===null&&(a.stylesheets=new Map),a.stylesheets.set(h,l),(l=h.state.preload)&&(h.state.loading&3)===0&&(a.count++,h=Lp.bind(a),l.addEventListener("load",h),l.addEventListener("error",h))}}var B1=0;function Sz(a,l){return a.stylesheets&&a.count===0&&kp(a,a.stylesheets),0<a.count||0<a.imgCount?function(h){var v=setTimeout(function(){if(a.stylesheets&&kp(a,a.stylesheets),a.unsuspend){var M=a.unsuspend;a.unsuspend=null,M()}},6e4+l);0<a.imgBytes&&B1===0&&(B1=62500*rz());var T=setTimeout(function(){if(a.waitingForImages=!1,a.count===0&&(a.stylesheets&&kp(a,a.stylesheets),a.unsuspend)){var M=a.unsuspend;a.unsuspend=null,M()}},(a.imgBytes>B1?50:800)+l);return a.unsuspend=h,function(){a.unsuspend=null,clearTimeout(v),clearTimeout(T)}}:null}function Lp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)kp(this,this.stylesheets);else if(this.unsuspend){var a=this.unsuspend;this.unsuspend=null,a()}}}var Dp=null;function kp(a,l){a.stylesheets=null,a.unsuspend!==null&&(a.count++,Dp=new Map,l.forEach(Cz,a),Dp=null,Lp.call(a))}function Cz(a,l){if(!(l.state.loading&4)){var h=Dp.get(a);if(h)var v=h.get(null);else{h=new Map,Dp.set(a,h);for(var T=a.querySelectorAll("link[data-precedence],style[data-precedence]"),M=0;M<T.length;M++){var q=T[M];(q.nodeName==="LINK"||q.getAttribute("media")!=="not all")&&(h.set(q.dataset.precedence,q),v=q)}v&&h.set(null,v)}T=l.instance,q=T.getAttribute("data-precedence"),M=h.get(q)||v,M===v&&h.set(null,T),h.set(q,T),this.count++,v=Lp.bind(this),T.addEventListener("load",v),T.addEventListener("error",v),M?M.parentNode.insertBefore(T,M.nextSibling):(a=a.nodeType===9?a.head:a,a.insertBefore(T,a.firstChild)),l.state.loading|=4}}var zd={$$typeof:O,Provider:null,Consumer:null,_currentValue:k,_currentValue2:k,_threadCount:0};function Ez(a,l,h,v,T,M,q,ie,pe){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=Kn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Kn(0),this.hiddenUpdates=Kn(null),this.identifierPrefix=v,this.onUncaughtError=T,this.onCaughtError=M,this.onRecoverableError=q,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=pe,this.incompleteTransitions=new Map}function sA(a,l,h,v,T,M,q,ie,pe,Ee,ke,ze){return a=new Ez(a,l,h,q,pe,Ee,ke,ze,ie),l=1,M===!0&&(l|=24),M=Ar(3,null,null,l),a.current=M,M.stateNode=a,l=b0(),l.refCount++,a.pooledCache=l,l.refCount++,M.memoizedState={element:v,isDehydrated:h,cache:l},S0(M),a}function lA(a){return a?(a=So,a):So}function uA(a,l,h,v,T,M){T=lA(T),v.context===null?v.context=T:v.pendingContext=T,v=Ns(l),v.payload={element:h},M=M===void 0?null:M,M!==null&&(v.callback=M),h=Ls(a,v,l),h!==null&&(ni(h,a,l),vd(h,a,l))}function cA(a,l){if(a=a.memoizedState,a!==null&&a.dehydrated!==null){var h=a.retryLane;a.retryLane=h!==0&&h<l?h:l}}function F1(a,l){cA(a,l),(a=a.alternate)&&cA(a,l)}function fA(a){if(a.tag===13||a.tag===31){var l=Gi(a,67108864);l!==null&&ni(l,a,67108864),F1(a,67108864)}}function dA(a){if(a.tag===13||a.tag===31){var l=yi();l=Dn(l);var h=Gi(a,l);h!==null&&ni(h,a,l),F1(a,l)}}var Ip=!0;function Az(a,l,h,v){var T=Z.T;Z.T=null;var M=I.p;try{I.p=2,$1(a,l,h,v)}finally{I.p=M,Z.T=T}}function Tz(a,l,h,v){var T=Z.T;Z.T=null;var M=I.p;try{I.p=8,$1(a,l,h,v)}finally{I.p=M,Z.T=T}}function $1(a,l,h,v){if(Ip){var T=V1(v);if(T===null)O1(a,l,v,Up,h),mA(a,v);else if(jz(T,a,l,h,v))v.stopPropagation();else if(mA(a,v),l&4&&-1<Oz.indexOf(a)){for(;T!==null;){var M=hs(T);if(M!==null)switch(M.tag){case 3:if(M=M.stateNode,M.current.memoizedState.isDehydrated){var q=zi(M.pendingLanes);if(q!==0){var ie=M;for(ie.pendingLanes|=2,ie.entangledLanes|=2;q;){var pe=1<<31-yt(q);ie.entanglements[1]|=pe,q&=~pe}Qa(M),(Ft&6)===0&&(_p=_e()+500,Nd(0))}}break;case 31:case 13:ie=Gi(M,2),ie!==null&&ni(ie,M,2),wp(),F1(M,2)}if(M=V1(v),M===null&&O1(a,l,v,Up,h),M===T)break;T=M}T!==null&&v.stopPropagation()}else O1(a,l,v,null,h)}}function V1(a){return a=Ul(a),H1(a)}var Up=null;function H1(a){if(Up=null,a=vo(a),a!==null){var l=o(a);if(l===null)a=null;else{var h=l.tag;if(h===13){if(a=s(l),a!==null)return a;a=null}else if(h===31){if(a=u(l),a!==null)return a;a=null}else if(h===3){if(l.stateNode.current.memoizedState.isDehydrated)return l.tag===3?l.stateNode.containerInfo:null;a=null}else l!==a&&(a=null)}}return Up=a,null}function hA(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(De()){case Re:return 2;case Me:return 8;case $e:case Ge:return 32;case Ze:return 268435456;default:return 32}default:return 32}}var q1=!1,qs=null,Gs=null,Ys=null,Bd=new Map,Fd=new Map,Ws=[],Oz="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 mA(a,l){switch(a){case"focusin":case"focusout":qs=null;break;case"dragenter":case"dragleave":Gs=null;break;case"mouseover":case"mouseout":Ys=null;break;case"pointerover":case"pointerout":Bd.delete(l.pointerId);break;case"gotpointercapture":case"lostpointercapture":Fd.delete(l.pointerId)}}function $d(a,l,h,v,T,M){return a===null||a.nativeEvent!==M?(a={blockedOn:l,domEventName:h,eventSystemFlags:v,nativeEvent:M,targetContainers:[T]},l!==null&&(l=hs(l),l!==null&&fA(l)),a):(a.eventSystemFlags|=v,l=a.targetContainers,T!==null&&l.indexOf(T)===-1&&l.push(T),a)}function jz(a,l,h,v,T){switch(l){case"focusin":return qs=$d(qs,a,l,h,v,T),!0;case"dragenter":return Gs=$d(Gs,a,l,h,v,T),!0;case"mouseover":return Ys=$d(Ys,a,l,h,v,T),!0;case"pointerover":var M=T.pointerId;return Bd.set(M,$d(Bd.get(M)||null,a,l,h,v,T)),!0;case"gotpointercapture":return M=T.pointerId,Fd.set(M,$d(Fd.get(M)||null,a,l,h,v,T)),!0}return!1}function pA(a){var l=vo(a.target);if(l!==null){var h=o(l);if(h!==null){if(l=h.tag,l===13){if(l=s(h),l!==null){a.blockedOn=l,Vf(a.priority,function(){dA(h)});return}}else if(l===31){if(l=u(h),l!==null){a.blockedOn=l,Vf(a.priority,function(){dA(h)});return}}else if(l===3&&h.stateNode.current.memoizedState.isDehydrated){a.blockedOn=h.tag===3?h.stateNode.containerInfo:null;return}}}a.blockedOn=null}function zp(a){if(a.blockedOn!==null)return!1;for(var l=a.targetContainers;0<l.length;){var h=V1(a.nativeEvent);if(h===null){h=a.nativeEvent;var v=new h.constructor(h.type,h);ec=v,h.target.dispatchEvent(v),ec=null}else return l=hs(h),l!==null&&fA(l),a.blockedOn=h,!1;l.shift()}return!0}function gA(a,l,h){zp(a)&&h.delete(l)}function Mz(){q1=!1,qs!==null&&zp(qs)&&(qs=null),Gs!==null&&zp(Gs)&&(Gs=null),Ys!==null&&zp(Ys)&&(Ys=null),Bd.forEach(gA),Fd.forEach(gA)}function Bp(a,l){a.blockedOn===l&&(a.blockedOn=null,q1||(q1=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Mz)))}var Fp=null;function vA(a){Fp!==a&&(Fp=a,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Fp===a&&(Fp=null);for(var l=0;l<a.length;l+=3){var h=a[l],v=a[l+1],T=a[l+2];if(typeof v!="function"){if(H1(v||h)===null)continue;break}var M=hs(h);M!==null&&(a.splice(l,3),l-=3,V0(M,{pending:!0,data:T,method:h.method,action:v},v,T))}}))}function kc(a){function l(pe){return Bp(pe,a)}qs!==null&&Bp(qs,a),Gs!==null&&Bp(Gs,a),Ys!==null&&Bp(Ys,a),Bd.forEach(l),Fd.forEach(l);for(var h=0;h<Ws.length;h++){var v=Ws[h];v.blockedOn===a&&(v.blockedOn=null)}for(;0<Ws.length&&(h=Ws[0],h.blockedOn===null);)pA(h),h.blockedOn===null&&Ws.shift();if(h=(a.ownerDocument||a).$$reactFormReplay,h!=null)for(v=0;v<h.length;v+=3){var T=h[v],M=h[v+1],q=T[or]||null;if(typeof M=="function")q||vA(h);else if(q){var ie=null;if(M&&M.hasAttribute("formAction")){if(T=M,q=M[or]||null)ie=q.formAction;else if(H1(T)!==null)continue}else ie=q.action;typeof ie=="function"?h[v+1]=ie:(h.splice(v,3),v-=3),vA(h)}}}function yA(){function a(M){M.canIntercept&&M.info==="react-transition"&&M.intercept({handler:function(){return new Promise(function(q){return T=q})},focusReset:"manual",scroll:"manual"})}function l(){T!==null&&(T(),T=null),v||setTimeout(h,20)}function h(){if(!v&&!navigation.transition){var M=navigation.currentEntry;M&&M.url!=null&&navigation.navigate(M.url,{state:M.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var v=!1,T=null;return navigation.addEventListener("navigate",a),navigation.addEventListener("navigatesuccess",l),navigation.addEventListener("navigateerror",l),setTimeout(h,100),function(){v=!0,navigation.removeEventListener("navigate",a),navigation.removeEventListener("navigatesuccess",l),navigation.removeEventListener("navigateerror",l),T!==null&&(T(),T=null)}}}function G1(a){this._internalRoot=a}$p.prototype.render=G1.prototype.render=function(a){var l=this._internalRoot;if(l===null)throw Error(r(409));var h=l.current,v=yi();uA(h,v,a,l,null,null)},$p.prototype.unmount=G1.prototype.unmount=function(){var a=this._internalRoot;if(a!==null){this._internalRoot=null;var l=a.containerInfo;uA(a.current,2,null,a,null,null),wp(),l[go]=null}};function $p(a){this._internalRoot=a}$p.prototype.unstable_scheduleHydration=function(a){if(a){var l=$f();a={blockedOn:null,target:a,priority:l};for(var h=0;h<Ws.length&&l!==0&&l<Ws[h].priority;h++);Ws.splice(h,0,a),h===0&&pA(a)}};var bA=t.version;if(bA!=="19.2.0")throw Error(r(527,bA,"19.2.0"));I.findDOMNode=function(a){var l=a._reactInternals;if(l===void 0)throw typeof a.render=="function"?Error(r(188)):(a=Object.keys(a).join(","),Error(r(268,a)));return a=f(l),a=a!==null?m(a):null,a=a===null?null:a.stateNode,a};var Pz={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:Z,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Vp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vp.isDisabled&&Vp.supportsFiber)try{dt=Vp.inject(Pz),gt=Vp}catch{}}return Hd.createRoot=function(a,l){if(!i(a))throw Error(r(299));var h=!1,v="",T=A4,M=T4,q=O4;return l!=null&&(l.unstable_strictMode===!0&&(h=!0),l.identifierPrefix!==void 0&&(v=l.identifierPrefix),l.onUncaughtError!==void 0&&(T=l.onUncaughtError),l.onCaughtError!==void 0&&(M=l.onCaughtError),l.onRecoverableError!==void 0&&(q=l.onRecoverableError)),l=sA(a,1,!1,null,null,h,v,null,T,M,q,yA),a[go]=l.current,T1(a),new G1(l)},Hd.hydrateRoot=function(a,l,h){if(!i(a))throw Error(r(299));var v=!1,T="",M=A4,q=T4,ie=O4,pe=null;return h!=null&&(h.unstable_strictMode===!0&&(v=!0),h.identifierPrefix!==void 0&&(T=h.identifierPrefix),h.onUncaughtError!==void 0&&(M=h.onUncaughtError),h.onCaughtError!==void 0&&(q=h.onCaughtError),h.onRecoverableError!==void 0&&(ie=h.onRecoverableError),h.formState!==void 0&&(pe=h.formState)),l=sA(a,1,!0,l,h??null,v,T,pe,M,q,ie,yA),l.context=lA(null),h=l.current,v=yi(),v=Dn(v),T=Ns(v),T.callback=null,Ls(h,T,v),h=v,l.current.lanes=h,bn(l,h),Qa(l),a[go]=l.current,T1(a),new $p(l)},Hd.version="19.2.0",Hd}var jA;function Fz(){if(jA)return W1.exports;jA=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(),W1.exports=Bz(),W1.exports}var $z=Fz(),A=yf();const tf=Li(A),G2=Nz({__proto__:null,default:tf},[A]);var J1={exports:{}},eb={};/**
* @license React
* use-sync-external-store-with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var MA;function Vz(){if(MA)return eb;MA=1;var e=yf();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,o=e.useEffect,s=e.useMemo,u=e.useDebugValue;return eb.useSyncExternalStoreWithSelector=function(d,f,m,p,b){var _=i(null);if(_.current===null){var w={hasValue:!1,value:null};_.current=w}else w=_.current;_=s(function(){function C(U){if(!E){if(E=!0,j=U,U=p(U),b!==void 0&&w.hasValue){var $=w.value;if(b($,U))return O=$}return O=U}if($=O,n(j,U))return $;var K=p(U);return b!==void 0&&b($,K)?(j=U,$):(j=U,O=K)}var E=!1,j,O,N=m===void 0?null:m;return[function(){return C(f())},N===null?void 0:function(){return C(N())}]},[f,m,p,b]);var x=r(d,_[0],_[1]);return o(function(){w.hasValue=!0,w.value=x},[x]),u(x),x},eb}var PA;function Hz(){return PA||(PA=1,J1.exports=Vz()),J1.exports}Hz();var qz=A.version.startsWith("19"),Gz=Symbol.for(qz?"react.transitional.element":"react.element"),Yz=Symbol.for("react.portal"),Wz=Symbol.for("react.fragment"),Kz=Symbol.for("react.strict_mode"),Zz=Symbol.for("react.profiler"),Xz=Symbol.for("react.consumer"),Qz=Symbol.for("react.context"),w6=Symbol.for("react.forward_ref"),Jz=Symbol.for("react.suspense"),eB=Symbol.for("react.suspense_list"),Y2=Symbol.for("react.memo"),tB=Symbol.for("react.lazy"),nB=w6,rB=Y2;function iB(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case Gz:switch(e=e.type,e){case Wz:case Zz:case Kz:case Jz:case eB:return e;default:switch(e=e&&e.$$typeof,e){case Qz:case w6:case tB:case Y2:return e;case Xz:return e;default:return t}}case Yz:return t}}}function aB(e){return iB(e)===Y2}function oB(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:o,areStatePropsEqual:s}){let u=!1,d,f,m,p,b;function _(j,O){return d=j,f=O,m=e(d,f),p=t(r,f),b=n(m,p,f),u=!0,b}function w(){return m=e(d,f),t.dependsOnOwnProps&&(p=t(r,f)),b=n(m,p,f),b}function x(){return e.dependsOnOwnProps&&(m=e(d,f)),t.dependsOnOwnProps&&(p=t(r,f)),b=n(m,p,f),b}function C(){const j=e(d,f),O=!s(j,m);return m=j,O&&(b=n(m,p,f)),b}function E(j,O){const N=!o(O,f),U=!i(j,d,O,f);return d=j,f=O,N&&U?w():N?x():U?C():b}return function(O,N){return u?E(O,N):_(O,N)}}function sB(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const o=t(e,i),s=n(e,i),u=r(e,i);return oB(o,s,u,e,i)}function lB(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...o)=>t(i(...o)))}return n}function gx(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function RA(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function S6(e,t){return function(r,{displayName:i}){const o=function(u,d){return o.dependsOnOwnProps?o.mapToProps(u,d):o.mapToProps(u,void 0)};return o.dependsOnOwnProps=!0,o.mapToProps=function(u,d){o.mapToProps=e,o.dependsOnOwnProps=RA(e);let f=o(u,d);return typeof f=="function"&&(o.mapToProps=f,o.dependsOnOwnProps=RA(f),f=o(u,d)),f},o}}function W2(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function uB(e){return e&&typeof e=="object"?gx(t=>lB(e,t)):e?typeof e=="function"?S6(e):W2(e,"mapDispatchToProps"):gx(t=>({dispatch:t}))}function cB(e){return e?typeof e=="function"?S6(e):W2(e,"mapStateToProps"):gx(()=>({}))}function fB(e,t,n){return{...n,...e,...t}}function dB(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let o=!1,s;return function(d,f,m){const p=e(d,f,m);return o?i(p,s)||(s=p):(o=!0,s=p),s}}}function hB(e){return e?typeof e=="function"?dB(e):W2(e,"mergeProps"):()=>fB}function mB(e){e()}function pB(){let e=null,t=null;return{clear(){e=null,t=null},notify(){mB(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!r||e===null||(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var NA={notify(){},get:()=>[]};function C6(e,t){let n,r=NA,i=0,o=!1;function s(x){m();const C=r.subscribe(x);let E=!1;return()=>{E||(E=!0,C(),p())}}function u(){r.notify()}function d(){w.onStateChange&&w.onStateChange()}function f(){return o}function m(){i++,n||(n=t?t.addNestedSub(d):e.subscribe(d),r=pB())}function p(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=NA)}function b(){o||(o=!0,m())}function _(){o&&(o=!1,p())}const w={addNestedSub:s,notifyNestedSubs:u,handleChangeWrapper:d,isSubscribed:f,trySubscribe:b,tryUnsubscribe:_,getListeners:()=>r};return w}var gB=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vB=gB(),yB=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bB=yB(),_B=()=>vB||bB?A.useLayoutEffect:A.useEffect,Ng=_B();function LA(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function tb(e,t){if(LA(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let i=0;i<n.length;i++)if(!Object.prototype.hasOwnProperty.call(t,n[i])||!LA(e[n[i]],t[n[i]]))return!1;return!0}var xB={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},wB={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},SB={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},E6={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},CB={[nB]:SB,[rB]:E6};function DA(e){return aB(e)?E6:CB[e.$$typeof]||xB}var EB=Object.defineProperty,AB=Object.getOwnPropertyNames,kA=Object.getOwnPropertySymbols,TB=Object.getOwnPropertyDescriptor,OB=Object.getPrototypeOf,IA=Object.prototype;function vx(e,t){if(typeof t!="string"){if(IA){const o=OB(t);o&&o!==IA&&vx(e,o)}let n=AB(t);kA&&(n=n.concat(kA(t)));const r=DA(e),i=DA(t);for(let o=0;o<n.length;++o){const s=n[o];if(!wB[s]&&!(i&&i[s])&&!(r&&r[s])){const u=TB(t,s);try{EB(e,s,u)}catch{}}}}return e}var jB=Symbol.for("react-redux-context"),MB=typeof globalThis<"u"?globalThis:{};function PB(){if(!A.createContext)return{};const e=MB[jB]??=new Map;let t=e.get(A.createContext);return t||(t=A.createContext(null),e.set(A.createContext,t)),t}var A6=PB(),RB=[null,null];function NB(e,t,n){Ng(()=>e(...t),n)}function LB(e,t,n,r,i,o){e.current=r,n.current=!1,i.current&&(i.current=null,o())}function DB(e,t,n,r,i,o,s,u,d,f,m){if(!e)return()=>{};let p=!1,b=null;const _=()=>{if(p||!u.current)return;const x=t.getState();let C,E;try{C=r(x,i.current)}catch(j){E=j,b=j}E||(b=null),C===o.current?s.current||f():(o.current=C,d.current=C,s.current=!0,m())};return n.onStateChange=_,n.trySubscribe(),_(),()=>{if(p=!0,n.tryUnsubscribe(),n.onStateChange=null,b)throw b}}function kB(e,t){return e===t}function IB(e,t,n,{pure:r,areStatesEqual:i=kB,areOwnPropsEqual:o=tb,areStatePropsEqual:s=tb,areMergedPropsEqual:u=tb,forwardRef:d=!1,context:f=A6}={}){const m=f,p=cB(e),b=uB(t),_=hB(n),w=!!e;return C=>{const E=C.displayName||C.name||"Component",j=`Connect(${E})`,O={shouldHandleStateChanges:w,displayName:j,wrappedComponentName:E,WrappedComponent:C,initMapStateToProps:p,initMapDispatchToProps:b,initMergeProps:_,areStatesEqual:i,areStatePropsEqual:s,areOwnPropsEqual:o,areMergedPropsEqual:u};function N(K){const[X,oe,ee]=A.useMemo(()=>{const{reactReduxForwardedRef:H,...ae}=K;return[K.context,H,ae]},[K]),J=A.useMemo(()=>{let H=m;return X?.Consumer,H},[X,m]),ne=A.useContext(J),he=!!K.store&&!!K.store.getState&&!!K.store.dispatch,Q=!!ne&&!!ne.store,se=he?K.store:ne.store,Z=Q?ne.getServerState:se.getState,I=A.useMemo(()=>sB(se.dispatch,O),[se]),[k,z]=A.useMemo(()=>{if(!w)return RB;const H=C6(se,he?void 0:ne.subscription),ae=H.notifyNestedSubs.bind(H);return[H,ae]},[se,he,ne]),F=A.useMemo(()=>he?ne:{...ne,subscription:k},[he,ne,k]),P=A.useRef(void 0),G=A.useRef(ee),Y=A.useRef(void 0),te=A.useRef(!1),ue=A.useRef(!1),fe=A.useRef(void 0);Ng(()=>(ue.current=!0,()=>{ue.current=!1}),[]);const ge=A.useMemo(()=>()=>Y.current&&ee===G.current?Y.current:I(se.getState(),ee),[se,ee]),D=A.useMemo(()=>ae=>k?DB(w,se,k,I,G,P,te,ue,Y,z,ae):()=>{},[k]);NB(LB,[G,P,te,ee,Y,z]);let B;try{B=A.useSyncExternalStore(D,ge,Z?()=>I(Z(),ee):ge)}catch(H){throw fe.current&&(H.message+=`
The error may be correlated with this previous error:
${fe.current.stack}
`),H}Ng(()=>{fe.current=void 0,Y.current=void 0,P.current=B});const W=A.useMemo(()=>A.createElement(C,{...B,ref:oe}),[oe,C,B]);return A.useMemo(()=>w?A.createElement(J.Provider,{value:F},W):W,[J,W,F])}const $=A.memo(N);if($.WrappedComponent=C,$.displayName=N.displayName=j,d){const X=A.forwardRef(function(ee,J){return A.createElement($,{...ee,reactReduxForwardedRef:J})});return X.displayName=j,X.WrappedComponent=C,vx(X,C)}return vx($,C)}}var T6=IB;function UB(e){const{children:t,context:n,serverState:r,store:i}=e,o=A.useMemo(()=>{const d=C6(i);return{store:i,subscription:d,getServerState:r?()=>r:void 0}},[i,r]),s=A.useMemo(()=>i.getState(),[i]);Ng(()=>{const{subscription:d}=o;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),s!==i.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[o,s]);const u=n||A6;return A.createElement(u.Provider,{value:o},t)}var K2=UB;/**
* react-router v7.9.3
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var UA="popstate";function zB(e={}){function t(r,i){let{pathname:o,search:s,hash:u}=r.location;return yx("",{pathname:o,search:s,hash:u},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:wh(i)}return FB(t,n,null,e)}function vn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Ca(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function BB(){return Math.random().toString(36).substring(2,10)}function zA(e,t){return{usr:e.state,key:e.key,idx:t}}function yx(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?bf(t):t,state:n,key:t&&t.key||r||BB()}}function wh({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 bf(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 FB(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,u="POP",d=null,f=m();f==null&&(f=0,s.replaceState({...s.state,idx:f},""));function m(){return(s.state||{idx:null}).idx}function p(){u="POP";let C=m(),E=C==null?null:C-f;f=C,d&&d({action:u,location:x.location,delta:E})}function b(C,E){u="PUSH";let j=yx(x.location,C,E);f=m()+1;let O=zA(j,f),N=x.createHref(j);try{s.pushState(O,"",N)}catch(U){if(U instanceof DOMException&&U.name==="DataCloneError")throw U;i.location.assign(N)}o&&d&&d({action:u,location:x.location,delta:1})}function _(C,E){u="REPLACE";let j=yx(x.location,C,E);f=m();let O=zA(j,f),N=x.createHref(j);s.replaceState(O,"",N),o&&d&&d({action:u,location:x.location,delta:0})}function w(C){return $B(C)}let x={get action(){return u},get location(){return e(i,s)},listen(C){if(d)throw new Error("A history only accepts one active listener");return i.addEventListener(UA,p),d=C,()=>{i.removeEventListener(UA,p),d=null}},createHref(C){return t(i,C)},createURL:w,encodeLocation(C){let E=w(C);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:b,replace:_,go(C){return s.go(C)}};return x}function $B(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),vn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:wh(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function O6(e,t,n="/"){return VB(e,t,n,!1)}function VB(e,t,n,r){let i=typeof t=="string"?bf(t):t,o=Yo(i.pathname||"/",n);if(o==null)return null;let s=j6(e);HB(s);let u=null;for(let d=0;u==null&&d<s.length;++d){let f=tF(o);u=JB(s[d],f,r)}return u}function j6(e,t=[],n=[],r="",i=!1){let o=(s,u,d=i,f)=>{let m={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};if(m.relativePath.startsWith("/")){if(!m.relativePath.startsWith(r)&&d)return;vn(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length)}let p=Ho([r,m.relativePath]),b=n.concat(m);s.children&&s.children.length>0&&(vn(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),j6(s.children,t,b,p,d)),!(s.path==null&&!s.index)&&t.push({path:p,score:XB(p,s.index),routesMeta:b})};return e.forEach((s,u)=>{if(s.path===""||!s.path?.includes("?"))o(s,u);else for(let d of M6(s.path))o(s,u,!0,d)}),t}function M6(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return i?[o,""]:[o];let s=M6(r.join("/")),u=[];return u.push(...s.map(d=>d===""?o:[o,d].join("/"))),i&&u.push(...s),u.map(d=>e.startsWith("/")&&d===""?"/":d)}function HB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:QB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var qB=/^:[\w-]+$/,GB=3,YB=2,WB=1,KB=10,ZB=-2,BA=e=>e==="*";function XB(e,t){let n=e.split("/"),r=n.length;return n.some(BA)&&(r+=ZB),t&&(r+=YB),n.filter(i=>!BA(i)).reduce((i,o)=>i+(qB.test(o)?GB:o===""?WB:KB),r)}function QB(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 JB(e,t,n=!1){let{routesMeta:r}=e,i={},o="/",s=[];for(let u=0;u<r.length;++u){let d=r[u],f=u===r.length-1,m=o==="/"?t:t.slice(o.length)||"/",p=Lg({path:d.relativePath,caseSensitive:d.caseSensitive,end:f},m),b=d.route;if(!p&&f&&n&&!r[r.length-1].route.index&&(p=Lg({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},m)),!p)return null;Object.assign(i,p.params),s.push({params:i,pathname:Ho([o,p.pathname]),pathnameBase:aF(Ho([o,p.pathnameBase])),route:b}),p.pathnameBase!=="/"&&(o=Ho([o,p.pathnameBase]))}return s}function Lg(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=eF(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),u=i.slice(1);return{params:r.reduce((f,{paramName:m,isOptional:p},b)=>{if(m==="*"){let w=u[b]||"";s=o.slice(0,o.length-w.length).replace(/(.)\/+$/,"$1")}const _=u[b];return p&&!_?f[m]=void 0:f[m]=(_||"").replace(/%2F/g,"/"),f},{}),pathname:o,pathnameBase:s,pattern:e}}function eF(e,t=!1,n=!0){Ca(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,u,d)=>(r.push({paramName:u,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)")).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 tF(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Ca(!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 Yo(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 nF(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?bf(e):e;return{pathname:n?n.startsWith("/")?n:rF(n,t):t,search:oF(r),hash:sF(i)}}function rF(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 nb(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 iF(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Z2(e){let t=iF(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function X2(e,t,n,r=!1){let i;typeof e=="string"?i=bf(e):(i={...e},vn(!i.pathname||!i.pathname.includes("?"),nb("?","pathname","search",i)),vn(!i.pathname||!i.pathname.includes("#"),nb("#","pathname","hash",i)),vn(!i.search||!i.search.includes("#"),nb("#","search","hash",i)));let o=e===""||i.pathname==="",s=o?"/":i.pathname,u;if(s==null)u=n;else{let p=t.length-1;if(!r&&s.startsWith("..")){let b=s.split("/");for(;b[0]==="..";)b.shift(),p-=1;i.pathname=b.join("/")}u=p>=0?t[p]:"/"}let d=nF(i,u),f=s&&s!=="/"&&s.endsWith("/"),m=(o||s===".")&&n.endsWith("/");return!d.pathname.endsWith("/")&&(f||m)&&(d.pathname+="/"),d}var Ho=e=>e.join("/").replace(/\/\/+/g,"/"),aF=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),oF=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sF=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function lF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var P6=["POST","PUT","PATCH","DELETE"];new Set(P6);var uF=["GET",...P6];new Set(uF);var _f=A.createContext(null);_f.displayName="DataRouter";var Vv=A.createContext(null);Vv.displayName="DataRouterState";A.createContext(!1);var R6=A.createContext({isTransitioning:!1});R6.displayName="ViewTransition";var cF=A.createContext(new Map);cF.displayName="Fetchers";var fF=A.createContext(null);fF.displayName="Await";var Oa=A.createContext(null);Oa.displayName="Navigation";var Vh=A.createContext(null);Vh.displayName="Location";var ja=A.createContext({outlet:null,matches:[],isDataRoute:!1});ja.displayName="Route";var Q2=A.createContext(null);Q2.displayName="RouteError";function dF(e,{relative:t}={}){vn(Hu(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=A.useContext(Oa),{hash:i,pathname:o,search:s}=Hh(e,{relative:t}),u=o;return n!=="/"&&(u=o==="/"?n:Ho([n,o])),r.createHref({pathname:u,search:s,hash:i})}function Hu(){return A.useContext(Vh)!=null}function Cr(){return vn(Hu(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Vh).location}var N6="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function L6(e){A.useContext(Oa).static||A.useLayoutEffect(e)}function uo(){let{isDataRoute:e}=A.useContext(ja);return e?EF():hF()}function hF(){vn(Hu(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(_f),{basename:t,navigator:n}=A.useContext(Oa),{matches:r}=A.useContext(ja),{pathname:i}=Cr(),o=JSON.stringify(Z2(r)),s=A.useRef(!1);return L6(()=>{s.current=!0}),A.useCallback((d,f={})=>{if(Ca(s.current,N6),!s.current)return;if(typeof d=="number"){n.go(d);return}let m=X2(d,JSON.parse(o),i,f.relative==="path");e==null&&t!=="/"&&(m.pathname=m.pathname==="/"?t:Ho([t,m.pathname])),(f.replace?n.replace:n.push)(m,f.state,f)},[t,n,o,i,e])}A.createContext(null);function xf(){let{matches:e}=A.useContext(ja),t=e[e.length-1];return t?t.params:{}}function Hh(e,{relative:t}={}){let{matches:n}=A.useContext(ja),{pathname:r}=Cr(),i=JSON.stringify(Z2(n));return A.useMemo(()=>X2(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function mF(e,t){return D6(e,t)}function D6(e,t,n,r,i){vn(Hu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=A.useContext(Oa),{matches:s}=A.useContext(ja),u=s[s.length-1],d=u?u.params:{},f=u?u.pathname:"/",m=u?u.pathnameBase:"/",p=u&&u.route;{let j=p&&p.path||"";k6(f,!p||j.endsWith("*")||j.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${j}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
Please change the parent <Route path="${j}"> to <Route path="${j==="/"?"*":`${j}/*`}">.`)}let b=Cr(),_;if(t){let j=typeof t=="string"?bf(t):t;vn(m==="/"||j.pathname?.startsWith(m),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${m}" but pathname "${j.pathname}" was given in the \`location\` prop.`),_=j}else _=b;let w=_.pathname||"/",x=w;if(m!=="/"){let j=m.replace(/^\//,"").split("/");x="/"+w.replace(/^\//,"").split("/").slice(j.length).join("/")}let C=O6(e,{pathname:x});Ca(p||C!=null,`No routes matched location "${_.pathname}${_.search}${_.hash}" `),Ca(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${_.pathname}${_.search}${_.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let E=bF(C&&C.map(j=>Object.assign({},j,{params:Object.assign({},d,j.params),pathname:Ho([m,o.encodeLocation?o.encodeLocation(j.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathname]),pathnameBase:j.pathnameBase==="/"?m:Ho([m,o.encodeLocation?o.encodeLocation(j.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:j.pathnameBase])})),s,n,r,i);return t&&E?A.createElement(Vh.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",..._},navigationType:"POP"}},E):E}function pF(){let e=CF(),t=lF(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},o={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:o},"ErrorBoundary")," or"," ",A.createElement("code",{style:o},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:i},n):null,s)}var gF=A.createElement(pF,null),vF=class extends A.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.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?A.createElement(ja.Provider,{value:this.props.routeContext},A.createElement(Q2.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function yF({routeContext:e,match:t,children:n}){let r=A.useContext(_f);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(ja.Provider,{value:e},n)}function bF(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 o=e,s=n?.errors;if(s!=null){let f=o.findIndex(m=>m.route.id&&s?.[m.route.id]!==void 0);vn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),o=o.slice(0,Math.min(o.length,f+1))}let u=!1,d=-1;if(n)for(let f=0;f<o.length;f++){let m=o[f];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(d=f),m.route.id){let{loaderData:p,errors:b}=n,_=m.route.loader&&!p.hasOwnProperty(m.route.id)&&(!b||b[m.route.id]===void 0);if(m.route.lazy||_){u=!0,d>=0?o=o.slice(0,d+1):o=[o[0]];break}}}return o.reduceRight((f,m,p)=>{let b,_=!1,w=null,x=null;n&&(b=s&&m.route.id?s[m.route.id]:void 0,w=m.route.errorElement||gF,u&&(d<0&&p===0?(k6("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,x=null):d===p&&(_=!0,x=m.route.hydrateFallbackElement||null)));let C=t.concat(o.slice(0,p+1)),E=()=>{let j;return b?j=w:_?j=x:m.route.Component?j=A.createElement(m.route.Component,null):m.route.element?j=m.route.element:j=f,A.createElement(yF,{match:m,routeContext:{outlet:f,matches:C,isDataRoute:n!=null},children:j})};return n&&(m.route.ErrorBoundary||m.route.errorElement||p===0)?A.createElement(vF,{location:n.location,revalidation:n.revalidation,component:w,error:b,children:E(),routeContext:{outlet:null,matches:C,isDataRoute:!0},unstable_onError:r}):E()},null)}function J2(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function _F(e){let t=A.useContext(_f);return vn(t,J2(e)),t}function xF(e){let t=A.useContext(Vv);return vn(t,J2(e)),t}function wF(e){let t=A.useContext(ja);return vn(t,J2(e)),t}function ew(e){let t=wF(e),n=t.matches[t.matches.length-1];return vn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function SF(){return ew("useRouteId")}function CF(){let e=A.useContext(Q2),t=xF("useRouteError"),n=ew("useRouteError");return e!==void 0?e:t.errors?.[n]}function EF(){let{router:e}=_F("useNavigate"),t=ew("useNavigate"),n=A.useRef(!1);return L6(()=>{n.current=!0}),A.useCallback(async(i,o={})=>{Ca(n.current,N6),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...o}))},[e,t])}var FA={};function k6(e,t,n){!t&&!FA[e]&&(FA[e]=!0,Ca(!1,n))}A.memo(AF);function AF({routes:e,future:t,state:n,unstable_onError:r}){return D6(e,void 0,n,r,t)}function tw({to:e,replace:t,state:n,relative:r}){vn(Hu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=A.useContext(Oa);Ca(!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:o}=A.useContext(ja),{pathname:s}=Cr(),u=uo(),d=X2(e,Z2(o),s,r==="path"),f=JSON.stringify(d);return A.useEffect(()=>{u(JSON.parse(f),{replace:t,state:n,relative:r})},[u,f,r,t,n]),null}function pt(e){vn(!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 TF({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:o=!1}){vn(!Hu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),u=A.useMemo(()=>({basename:s,navigator:i,static:o,future:{}}),[s,i,o]);typeof n=="string"&&(n=bf(n));let{pathname:d="/",search:f="",hash:m="",state:p=null,key:b="default"}=n,_=A.useMemo(()=>{let w=Yo(d,s);return w==null?null:{location:{pathname:w,search:f,hash:m,state:p,key:b},navigationType:r}},[s,d,f,m,p,b,r]);return Ca(_!=null,`<Router basename="${s}"> is not able to match the URL "${d}${f}${m}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:A.createElement(Oa.Provider,{value:u},A.createElement(Vh.Provider,{children:t,value:_}))}function Hv({children:e,location:t}){return mF(bx(e),t)}function bx(e,t=[]){let n=[];return A.Children.forEach(e,(r,i)=>{if(!A.isValidElement(r))return;let o=[...t,i];if(r.type===A.Fragment){n.push.apply(n,bx(r.props.children,o));return}vn(r.type===pt,`[${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>`),vn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=bx(r.props.children,o)),n.push(s)}),n}var xg="get",wg="application/x-www-form-urlencoded";function qv(e){return e!=null&&typeof e.tagName=="string"}function OF(e){return qv(e)&&e.tagName.toLowerCase()==="button"}function jF(e){return qv(e)&&e.tagName.toLowerCase()==="form"}function MF(e){return qv(e)&&e.tagName.toLowerCase()==="input"}function PF(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function RF(e,t){return e.button===0&&(!t||t==="_self")&&!PF(e)}var Hp=null;function NF(){if(Hp===null)try{new FormData(document.createElement("form"),0),Hp=!1}catch{Hp=!0}return Hp}var LF=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function rb(e){return e!=null&&!LF.has(e)?(Ca(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${wg}"`),null):e}function DF(e,t){let n,r,i,o,s;if(jF(e)){let u=e.getAttribute("action");r=u?Yo(u,t):null,n=e.getAttribute("method")||xg,i=rb(e.getAttribute("enctype"))||wg,o=new FormData(e)}else if(OF(e)||MF(e)&&(e.type==="submit"||e.type==="image")){let u=e.form;if(u==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||u.getAttribute("action");if(r=d?Yo(d,t):null,n=e.getAttribute("formmethod")||u.getAttribute("method")||xg,i=rb(e.getAttribute("formenctype"))||rb(u.getAttribute("enctype"))||wg,o=new FormData(u,e),!NF()){let{name:f,type:m,value:p}=e;if(m==="image"){let b=f?`${f}.`:"";o.append(`${b}x`,"0"),o.append(`${b}y`,"0")}else f&&o.append(f,p)}}else{if(qv(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=xg,r=null,i=wg,s=e}return o&&i==="text/plain"&&(s=o,o=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:o,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function nw(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function kF(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&&Yo(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function IF(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 UF(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 zF(e,t,n){let r=await Promise.all(e.map(async i=>{let o=t.routes[i.route.id];if(o){let s=await IF(o,n);return s.links?s.links():[]}return[]}));return VF(r.flat(1).filter(UF).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function $A(e,t,n,r,i,o){let s=(d,f)=>n[f]?d.route.id!==n[f].route.id:!0,u=(d,f)=>n[f].pathname!==d.pathname||n[f].route.path?.endsWith("*")&&n[f].params["*"]!==d.params["*"];return o==="assets"?t.filter((d,f)=>s(d,f)||u(d,f)):o==="data"?t.filter((d,f)=>{let m=r.routes[d.route.id];if(!m||!m.hasLoader)return!1;if(s(d,f)||u(d,f))return!0;if(d.route.shouldRevalidate){let p=d.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof p=="boolean")return p}return!0}):[]}function BF(e,t,{includeHydrateFallback:n}={}){return FF(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let o=[i.module];return i.clientActionModule&&(o=o.concat(i.clientActionModule)),i.clientLoaderModule&&(o=o.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(o=o.concat(i.hydrateFallbackModule)),i.imports&&(o=o.concat(i.imports)),o}).flat(1))}function FF(e){return[...new Set(e)]}function $F(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function VF(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let o=JSON.stringify($F(i));return n.has(o)||(n.add(o),r.push({key:o,link:i})),r},[])}function I6(){let e=A.useContext(_f);return nw(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function HF(){let e=A.useContext(Vv);return nw(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var rw=A.createContext(void 0);rw.displayName="FrameworkContext";function U6(){let e=A.useContext(rw);return nw(e,"You must render this element inside a <HydratedRouter> element"),e}function qF(e,t){let n=A.useContext(rw),[r,i]=A.useState(!1),[o,s]=A.useState(!1),{onFocus:u,onBlur:d,onMouseEnter:f,onMouseLeave:m,onTouchStart:p}=t,b=A.useRef(null);A.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let x=E=>{E.forEach(j=>{s(j.isIntersecting)})},C=new IntersectionObserver(x,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[e]),A.useEffect(()=>{if(r){let x=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(x)}}},[r]);let _=()=>{i(!0)},w=()=>{i(!1),s(!1)};return n?e!=="intent"?[o,b,{}]:[o,b,{onFocus:qd(u,_),onBlur:qd(d,w),onMouseEnter:qd(f,_),onMouseLeave:qd(m,w),onTouchStart:qd(p,_)}]:[!1,b,{}]}function qd(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function GF({page:e,...t}){let{router:n}=I6(),r=A.useMemo(()=>O6(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?A.createElement(WF,{page:e,matches:r,...t}):null}function YF(e){let{manifest:t,routeModules:n}=U6(),[r,i]=A.useState([]);return A.useEffect(()=>{let o=!1;return zF(e,t,n).then(s=>{o||i(s)}),()=>{o=!0}},[e,t,n]),r}function WF({page:e,matches:t,...n}){let r=Cr(),{manifest:i,routeModules:o}=U6(),{basename:s}=I6(),{loaderData:u,matches:d}=HF(),f=A.useMemo(()=>$A(e,t,d,i,r,"data"),[e,t,d,i,r]),m=A.useMemo(()=>$A(e,t,d,i,r,"assets"),[e,t,d,i,r]),p=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let w=new Set,x=!1;if(t.forEach(E=>{let j=i.routes[E.route.id];!j||!j.hasLoader||(!f.some(O=>O.route.id===E.route.id)&&E.route.id in u&&o[E.route.id]?.shouldRevalidate||j.hasClientLoader?x=!0:w.add(E.route.id))}),w.size===0)return[];let C=kF(e,s,"data");return x&&w.size>0&&C.searchParams.set("_routes",t.filter(E=>w.has(E.route.id)).map(E=>E.route.id).join(",")),[C.pathname+C.search]},[s,u,r,i,f,t,e,o]),b=A.useMemo(()=>BF(m,i),[m,i]),_=YF(m);return A.createElement(A.Fragment,null,p.map(w=>A.createElement("link",{key:w,rel:"prefetch",as:"fetch",href:w,...n})),b.map(w=>A.createElement("link",{key:w,rel:"modulepreload",href:w,...n})),_.map(({key:w,link:x})=>A.createElement("link",{key:w,nonce:n.nonce,...x})))}function KF(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var z6=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{z6&&(window.__reactRouterVersion="7.9.3")}catch{}function B6({basename:e,children:t,window:n}){let r=A.useRef();r.current==null&&(r.current=zB({window:n,v5Compat:!0}));let i=r.current,[o,s]=A.useState({action:i.action,location:i.location}),u=A.useCallback(d=>{A.startTransition(()=>s(d))},[s]);return A.useLayoutEffect(()=>i.listen(u),[i,u]),A.createElement(TF,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:i})}var F6=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rr=A.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:o,replace:s,state:u,target:d,to:f,preventScrollReset:m,viewTransition:p,...b},_){let{basename:w}=A.useContext(Oa),x=typeof f=="string"&&F6.test(f),C,E=!1;if(typeof f=="string"&&x&&(C=f,z6))try{let oe=new URL(window.location.href),ee=f.startsWith("//")?new URL(oe.protocol+f):new URL(f),J=Yo(ee.pathname,w);ee.origin===oe.origin&&J!=null?f=J+ee.search+ee.hash:E=!0}catch{Ca(!1,`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let j=dF(f,{relative:i}),[O,N,U]=qF(r,b),$=QF(f,{replace:s,state:u,target:d,preventScrollReset:m,relative:i,viewTransition:p});function K(oe){t&&t(oe),oe.defaultPrevented||$(oe)}let X=A.createElement("a",{...b,...U,href:C||j,onClick:E||o?t:K,ref:KF(_,N),target:d,"data-discover":!x&&n==="render"?"true":void 0});return O&&!x?A.createElement(A.Fragment,null,X,A.createElement(GF,{page:j})):X});Rr.displayName="Link";var iw=A.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:o,to:s,viewTransition:u,children:d,...f},m){let p=Hh(s,{relative:f.relative}),b=Cr(),_=A.useContext(Vv),{navigator:w,basename:x}=A.useContext(Oa),C=_!=null&&r$(p)&&u===!0,E=w.encodeLocation?w.encodeLocation(p).pathname:p.pathname,j=b.pathname,O=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(j=j.toLowerCase(),O=O?O.toLowerCase():null,E=E.toLowerCase()),O&&x&&(O=Yo(O,x)||O);const N=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let U=j===E||!i&&j.startsWith(E)&&j.charAt(N)==="/",$=O!=null&&(O===E||!i&&O.startsWith(E)&&O.charAt(E.length)==="/"),K={isActive:U,isPending:$,isTransitioning:C},X=U?t:void 0,oe;typeof r=="function"?oe=r(K):oe=[r,U?"active":null,$?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ee=typeof o=="function"?o(K):o;return A.createElement(Rr,{...f,"aria-current":X,className:oe,ref:m,style:ee,to:s,viewTransition:u},typeof d=="function"?d(K):d)});iw.displayName="NavLink";var ZF=A.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:o,method:s=xg,action:u,onSubmit:d,relative:f,preventScrollReset:m,viewTransition:p,...b},_)=>{let w=t$(),x=n$(u,{relative:f}),C=s.toLowerCase()==="get"?"get":"post",E=typeof u=="string"&&F6.test(u),j=O=>{if(d&&d(O),O.defaultPrevented)return;O.preventDefault();let N=O.nativeEvent.submitter,U=N?.getAttribute("formmethod")||s;w(N||O.currentTarget,{fetcherKey:t,method:U,navigate:n,replace:i,state:o,relative:f,preventScrollReset:m,viewTransition:p})};return A.createElement("form",{ref:_,method:C,action:x,onSubmit:r?d:j,...b,"data-discover":!E&&e==="render"?"true":void 0})});ZF.displayName="Form";function XF(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $6(e){let t=A.useContext(_f);return vn(t,XF(e)),t}function QF(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:o,viewTransition:s}={}){let u=uo(),d=Cr(),f=Hh(e,{relative:o});return A.useCallback(m=>{if(RF(m,t)){m.preventDefault();let p=n!==void 0?n:wh(d)===wh(f);u(e,{replace:p,state:r,preventScrollReset:i,relative:o,viewTransition:s})}},[d,u,f,n,r,t,e,i,o,s])}var JF=0,e$=()=>`__${String(++JF)}__`;function t$(){let{router:e}=$6("useSubmit"),{basename:t}=A.useContext(Oa),n=SF();return A.useCallback(async(r,i={})=>{let{action:o,method:s,encType:u,formData:d,body:f}=DF(r,t);if(i.navigate===!1){let m=i.fetcherKey||e$();await e.fetch(m,n,i.action||o,{preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||s,formEncType:i.encType||u,flushSync:i.flushSync})}else await e.navigate(i.action||o,{preventScrollReset:i.preventScrollReset,formData:d,body:f,formMethod:i.method||s,formEncType:i.encType||u,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function n$(e,{relative:t}={}){let{basename:n}=A.useContext(Oa),r=A.useContext(ja);vn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),o={...Hh(e||".",{relative:t})},s=Cr();if(e==null){o.search=s.search;let u=new URLSearchParams(o.search),d=u.getAll("index");if(d.some(m=>m==="")){u.delete("index"),d.filter(p=>p).forEach(p=>u.append("index",p));let m=u.toString();o.search=m?`?${m}`:""}}return(!e||e===".")&&i.route.index&&(o.search=o.search?o.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(o.pathname=o.pathname==="/"?n:Ho([n,o.pathname])),wh(o)}function r$(e,{relative:t}={}){let n=A.useContext(R6);vn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=$6("useViewTransitionState"),i=Hh(e,{relative:t});if(!n.isTransitioning)return!1;let o=Yo(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Yo(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Lg(i.pathname,s)!=null||Lg(i.pathname,o)!=null}var qh=x6();const i$="/shlink-web-client/dependabot/docker/node-24.10-alpine",Dg={homepage:i$};var Ea,ao=".",V6="function",H6="string",q6="__global__",aw="Provider",a$=0,ow=Array.prototype.slice,o$=function(t,n){var r=t[n];if(r===void 0&&Ea.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},Gv=function(t){var n;return this.nested[t]||(n=Ea.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},G6=function(t){return t.split(ao).reduce(o$,this)},s$=function(t,n,r,i){var o={configurable:!0,enumerable:!0};return t.length?o.get=function(){var u=0,d=function(m){if(m)throw m;t[u]&&t[u++](r,d)};return d(),r}:(o.value=r,o.writable=!0),Object.defineProperty(i,n,o),i[n]},l$=function(t,n){var r,i;return typeof t===V6&&(n=t,t=q6),r=t.split(ao),i=r.shift(),r.length?Gv.call(this,i).middleware(r.join(ao),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},u$=function(t,n){return n(t)},VA=function(t,n){return(t[n]||[]).concat(t.__global__||[])},c$=function(t,n){var r,i,o,s,u;return this.id,o=this.container,s=this.decorators,u=this.middlewares,r=t+aw,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var f=new n;return delete o[r],o[r]=f,f}},i[t]={configurable:!0,enumerable:!0,get:function(){var f=o[r],m;return f&&(m=VA(s,t).reduce(u$,f.$get(o)),delete o[r],delete o[t]),m===void 0?m:s$(VA(u,t),t,m,o)}},Object.defineProperties(o,i),this},Y6=function(t,n){var r,i;return r=t.split(ao),this.providerMap[t]&&r.length===1&&!this.container[t+aw]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(Gv.call(this,i).provider(r.join(ao),n),this):c$.call(this,i,n))},sw=function(t,n){return Y6.call(this,t,function(){this.$get=n})},W6=function(t,n,r){var i=arguments.length>3?ow.call(arguments,3):[],o=this;return sw.call(this,t,function(){var u=n,d=i.map(G6,o.container);return r?new(n.bind.apply(n,[null].concat(d))):u.apply(null,d)})},f$=function(t,n){return W6.apply(this,[t,n,!0].concat(ow.call(arguments,2)))},d$=function(t,n){return W6.apply(this,[t,n,!1].concat(ow.call(arguments,2)))},K6=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},Z6=function(t,n){var r=t[n];return r||(r={},K6.call(t,n,r)),r},h$=function(t,n){var r;return r=t.split(ao),t=r.pop(),K6.call(r.reduce(Z6,this.container),t,n),this},m$=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},p$=function(t,n){var r=t.split(ao);return t=r.pop(),m$.call(r.reduce(Z6,this.container),t,n),this},X6=function(t,n){var r,i;return typeof t===V6&&(n=t,t=q6),r=t.split(ao),i=r.shift(),r.length?Gv.call(this,i).decorator(r.join(ao),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},g$=function(t){return this.deferred.push(t),this},v$=function(t){return(t||[]).map(G6,this.container)},y$=function(t,n){return sw.call(this,t,function(i){return{instance:n.bind(n,i)}})},b$=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},lw=function(t){return Object.keys(t||this.container||{}).filter(b$)},kg={},_$=function(t){var n;return typeof t===H6?(n=kg[t],n||(kg[t]=n=new Ea,n.constant("BOTTLE_NAME",t)),n):new Ea},x$=function(t){typeof t===H6?delete kg[t]:kg={}},Q6=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},HA=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+aw]},w$=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(o){if(!(r&&t.indexOf(o)===-1)){var s=o.split(ao);s.length>1&&s.forEach(HA,Gv.call(this,s[0])),HA.call(this,o),this.provider(o,n[o])}},this)},S$=function(t){return this.deferred.forEach(function(r){r(t)}),this};Ea=function e(t){if(!(this instanceof e))return e.pop(t);this.id=a$++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:X6.bind(this),$register:Q6.bind(this),$list:lw.bind(this)}};Ea.prototype={constant:p$,decorator:X6,defer:g$,digest:v$,factory:sw,instanceFactory:y$,list:lw,middleware:l$,provider:Y6,resetProviders:w$,register:Q6,resolve:S$,service:f$,serviceFactory:d$,value:h$};Ea.pop=_$;Ea.clear=x$;Ea.list=lw;Ea.config={strict:!1};const J6=Ea,C$=(e,t)=>`${e}/rest/v${t}`,E$=e=>e.dir?`${e.field}-${e.dir}`:void 0,A$=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:E$(e)}),T$=(e,t)=>{const[n,r]=e.split("://");if(!r)throw new Error(`It is not possible to determine authority on "${e}" for replacement`);const[,...i]=r.split("/"),o=i.length?`/${i.join("/")}`:"";return`${n}://${t}${o}`},O$=(e={})=>{const t=Object.entries(e).flatMap(([n,r])=>r==null?[]:Array.isArray(r)?r.map(i=>[`${n}[]`,i]):[[n,r]]);return new URLSearchParams(t).toString()};let j$=class{#t;#r;#n;#o;constructor(t,n,r={}){this.#r=t,this.#n=n,this.#o=r,this.#t=3}async listShortUrls({signal:t,...n}={}){return this.#e({url:"/short-urls",query:A$(n),signal:t}).then(({shortUrls:r})=>r)}async createShortUrl({signal:t,...n}){const r=Object.entries(n).reduce((i,[o,s])=>(s&&(i[o]=s),i),{});return this.#e({url:"/short-urls",method:"POST",body:r,signal:t})}async getShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.#e({url:`/short-urls/${t}`,query:{domain:n},signal:r})}async deleteShortUrl({shortCode:t,domain:n},{signal:r}={}){return this.#a({url:`/short-urls/${t}`,method:"DELETE",query:{domain:n},signal:r})}async updateShortUrl({shortCode:t,domain:n},{signal:r,...i}){return this.#e({url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:i,signal:r})}async getShortUrlRedirectRules({shortCode:t,domain:n},{signal:r}={}){return this.#e({url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n},signal:r})}async setShortUrlRedirectRules({shortCode:t,domain:n},{signal:r,...i}){return this.#e({url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:i,signal:r})}async getVisitsOverview({signal:t}={}){return this.#e({url:"/visits",signal:t}).then(({visits:n})=>n)}async getShortUrlVisits({shortCode:t,domain:n},{signal:r,...i}={}){return this.#i({url:`/short-urls/${t}/visits`,query:{...i,domain:n},signal:r})}async getTagVisits(t,{signal:n,...r}={}){return this.#i({url:`/tags/${t}/visits`,query:r,signal:n})}async getDomainVisits(t,{signal:n,...r}={}){return this.#i({url:`/domains/${t}/visits`,query:r,signal:n})}async getOrphanVisits({signal:t,...n}={}){return this.#i({url:"/visits/orphan",query:n,signal:t})}async getNonOrphanVisits({signal:t,...n}={}){return this.#i({url:"/visits/non-orphan",query:n,signal:t})}async#i(t){return this.#e(t).then(({visits:n})=>n)}async deleteShortUrlVisits({shortCode:t,domain:n},{signal:r}={}){const i=n?{domain:n}:void 0;return this.#e({method:"DELETE",url:`/short-urls/${t}/visits`,query:i,signal:r})}async deleteOrphanVisits({signal:t}={}){return this.#e({method:"DELETE",url:"/visits/orphan",signal:t})}async listTags({signal:t}={}){return this.#e({url:"/tags",signal:t}).then(({tags:n})=>n)}async tagsStats({signal:t}={}){return this.#e({url:"/tags/stats",signal:t}).then(({tags:n})=>n)}async deleteTags(t,{signal:n}={}){return this.#a({url:"/tags",method:"DELETE",query:{tags:t},signal:n}).then(()=>({tags:t}))}async editTag({oldName:t,newName:n},{signal:r}={}){return this.#a({url:"/tags",method:"PUT",body:{oldName:t,newName:n},signal:r}).then(()=>({oldName:t,newName:n}))}async listDomains({signal:t}={}){return this.#e({url:"/domains",signal:t}).then(({domains:n})=>n)}async editDomainRedirects(t,{signal:n}={}){return this.#e({url:"/domains/redirects",method:"PATCH",body:t,signal:n})}async health({domain:t,signal:n}={}){return this.#e({url:"/health",domain:t,signal:n})}async mercureInfo({signal:t}={}){return this.#e({url:"/mercure-info",signal:t})}async#e(t){return this.#r.jsonRequest(...this.#s(t))}async#a(t){return this.#r.emptyRequest(...this.#s(t))}#s({url:t,method:n="GET",query:r,body:i,domain:o,signal:s}){const u=O$(r??{}),d=u?`?${u}`:"",f=o?T$(this.#n.baseUrl,o):this.#n.baseUrl;return[`${C$(f,this.#t)}${t}${d}`,{method:n,body:i&&JSON.stringify(i),headers:{"X-Api-Key":this.#n.apiKey},credentials:this.#o.requestCredentials,signal:s}]}};const eR=e=>!!e?.url&&!!e?.apiKey,hh=e=>!!e?.id,uw=e=>!!e?.version,M$=e=>!!e?.serverNotFound,P$=e=>hh(e)?e.id:"",R$=({name:e,url:t,apiKey:n,forwardCredentials:r})=>({name:e,url:t,apiKey:n,forwardCredentials:r?"true":"false"}),N$=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",L$=e=>{const{forwardCredentials:t,...n}=e;if(!N$(n))throw new Error('Server is missing required "url", "apiKey" and/or "name" properties');return{...n,forwardCredentials:t==="true"}},qA=new Map,D$=e=>typeof e=="function",k$=e=>{const{selectedServer:t}=e();if(!eR(t))throw new Error("There's no selected server or it is not found");return t},I$=e=>t=>{const{url:n,apiKey:r,forwardCredentials:i}=D$(t)?k$(t):t,o=`${r}_${n}_${i?"forward":"no-forward"}`,s=qA.get(o);if(s)return s;const u=new j$(e,{apiKey:r,baseUrl:n},{requestCredentials:i?"include":void 0});return qA.set(o,u),u},U$=e=>{e.serviceFactory("buildShlinkApiClient",I$,"HttpClient")};function tR(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=tR(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tR(e))&&(r&&(r+=" "),r+=t);return r}/*!
* Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2025 Fonticons, Inc.
*/var z$={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M480.1 192l7.9 0c13.3 0 24-10.7 24-24l0-144c0-9.7-5.8-18.5-14.8-22.2S477.9 .2 471 7L419.3 58.8C375 22.1 318 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1C79.2 135.5 159.3 64 256 64 300.4 64 341.2 79 373.7 104.3L327 151c-6.9 6.9-8.9 17.2-5.2 26.2S334.3 192 344 192l136.1 0zm29.4 100.5c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-44.4 0-85.2-15-117.7-40.3L185 361c6.9-6.9 8.9-17.2 5.2-26.2S177.7 320 168 320L24 320c-13.3 0-24 10.7-24 24L0 488c0 9.7 5.8 18.5 14.8 22.2S34.1 511.8 41 505l51.8-51.8C137 489.9 194 512 256 512 385 512 491.7 416.6 509.4 292.5z"]},B$=z$,nR={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M415.9 210.5c12.2-3.3 25 2.5 30.5 13.8L465 261.9c10.3 1.4 20.4 4.2 29.9 8.1l35-23.3c10.5-7 24.4-5.6 33.3 3.3l19.2 19.2c8.9 8.9 10.3 22.9 3.3 33.3l-23.3 34.9c1.9 4.7 3.6 9.6 5 14.7 1.4 5.1 2.3 10.1 3 15.2l37.7 18.6c11.3 5.6 17.1 18.4 13.8 30.5l-7 26.2c-3.3 12.1-14.6 20.3-27.2 19.5l-42-2.7c-6.3 8.1-13.6 15.6-21.9 22l2.7 41.9c.8 12.6-7.4 24-19.5 27.2l-26.2 7c-12.2 3.3-24.9-2.5-30.5-13.8l-18.6-37.6c-10.3-1.4-20.4-4.2-29.9-8.1l-35 23.3c-10.5 7-24.4 5.6-33.3-3.3l-19.2-19.2c-8.9-8.9-10.3-22.8-3.3-33.3l23.3-35c-1.9-4.7-3.6-9.6-5-14.7s-2.3-10.2-3-15.2l-37.7-18.6c-11.3-5.6-17-18.4-13.8-30.5l7-26.2c3.3-12.1 14.6-20.3 27.2-19.5l41.9 2.7c6.3-8.1 13.6-15.6 21.9-22l-2.7-41.8c-.8-12.6 7.4-24 19.5-27.2l26.2-7zM448.4 340a44 44 0 1 0 .1 88 44 44 0 1 0 -.1-88zM224.9-45.5l26.2 7c12.1 3.3 20.3 14.7 19.5 27.2l-2.7 41.8c8.3 6.4 15.6 13.8 21.9 22l42-2.7c12.5-.8 23.9 7.4 27.2 19.5l7 26.2c3.2 12.1-2.5 24.9-13.8 30.5l-37.7 18.6c-.7 5.1-1.7 10.2-3 15.2s-3.1 10-5 14.7l23.3 35c7 10.5 5.6 24.4-3.3 33.3L307.3 262c-8.9 8.9-22.8 10.3-33.3 3.3L239 242c-9.5 3.9-19.6 6.7-29.9 8.1l-18.6 37.6c-5.6 11.3-18.4 17-30.5 13.8l-26.2-7c-12.2-3.3-20.3-14.7-19.5-27.2l2.7-41.9c-8.3-6.4-15.6-13.8-21.9-22l-42 2.7c-12.5 .8-23.9-7.4-27.2-19.5l-7-26.2c-3.2-12.1 2.5-24.9 13.8-30.5l37.7-18.6c.7-5.1 1.7-10.1 3-15.2 1.4-5.1 3-10 5-14.7L55.1 46.5c-7-10.5-5.6-24.4 3.3-33.3L77.6-6c8.9-8.9 22.8-10.3 33.3-3.3l35 23.3c9.5-3.9 19.6-6.7 29.9-8.1l18.6-37.6c5.6-11.3 18.3-17 30.5-13.8zM192.4 84a44 44 0 1 0 0 88 44 44 0 1 0 0-88z"]},F$=nR,$$={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM175 441c9.4 9.4 24.6 9.4 33.9 0l64-64c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-23 23 0-86.1c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 86.1-23-23c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64z"]},rR=$$,V$={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-32c0-17.7 14.3-32 32-32zM64 240l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 368l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},H$=V$,q$={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M290.4 19.8C295.4 7.8 307.1 0 320 0L480 0c17.7 0 32 14.3 32 32l0 160c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9L400 157.3 246.6 310.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L354.7 112 297.4 54.6c-9.2-9.2-11.9-22.9-6.9-34.9zM0 176c0-44.2 35.8-80 80-80l80 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-80 0c-8.8 0-16 7.2-16 16l0 256c0 8.8 7.2 16 16 16l256 0c8.8 0 16-7.2 16-16l0-80c0-17.7 14.3-32 32-32s32 14.3 32 32l0 80c0 44.2-35.8 80-80 80L80 512c-44.2 0-80-35.8-80-80L0 176z"]},G$=q$,Y$={prefix:"fas",iconName:"map-location-dot",icon:[640,512,["map-marked-alt"],"f5a0","M576 48c0-11.1-5.7-21.4-15.2-27.2s-21.2-6.4-31.1-1.4L413.5 77.5 234.1 17.6c-8.1-2.7-16.8-2.1-24.4 1.7l-128 64C70.8 88.8 64 99.9 64 112l0 352c0 11.1 5.7 21.4 15.2 27.2s21.2 6.4 31.1 1.4l116.1-58.1 173.3 57.8c-4.3-6.4-8.5-13.1-12.6-19.9-11-18.3-21.9-39.3-30-61.8l-101.2-33.7 0-284.5 128 42.7 0 99.3c31-35.8 77-58.4 128-58.4 22.6 0 44.2 4.4 64 12.5L576 48zM512 224c-66.3 0-120 52.8-120 117.9 0 68.9 64.1 150.4 98.6 189.3 11.6 13 31.3 13 42.9 0 34.5-38.9 98.6-120.4 98.6-189.3 0-65.1-53.7-117.9-120-117.9zM472 344a40 40 0 1 1 80 0 40 40 0 1 1 -80 0z"]},_x=Y$,W$={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},K$=W$,Z$={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8c-22.4 31.4-35.5 69.8-35.5 111.2 0 106 86 192 192 192 41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3c22.4-31.4 35.5-69.8 35.5-111.2 0-106-86-192-192-192-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},X$={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48 0 3.4 .4 6.7 1 9.9 2.1 10.2 6.5 20 10.8 29.9 6.1 13.8 12.1 27.5 12.1 42 0 31.8-21.6 60.7-53.4 62-3.5 .1-7 .2-10.6 .2-141.4 0-256-114.6-256-256S114.6 0 256 0 512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},Q$={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6-46.8 43.5-78.1 95.4-93 131.1-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64-11.5 0-22.3-3-31.7-8.4-1 10.9-.1 22.1 2.9 33.2 13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-12.2-45.7-55.5-74.8-101.1-70.8 5.3 9.3 8.4 20.1 8.4 31.7z"]},J$={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M136.7 5.9L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-8.7-26.1C306.9-7.2 294.7-16 280.9-16L167.1-16c-13.8 0-26 8.8-30.4 21.9zM416 144L32 144 53.1 467.1C54.7 492.4 75.7 512 101 512L347 512c25.3 0 46.3-19.6 47.9-44.9L416 144z"]},eV={prefix:"fas",iconName:"chevron-up",icon:[448,512,[],"f077","M201.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L224 173.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},cw={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8-79.3 23.6-137.1 97.1-137.1 184.1 0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256 512 397.4 397.4 512 256 512S0 397.4 0 256c0-116 77.1-213.9 182.9-245.4 16.9-5 34.8 4.6 39.8 21.5z"]},tV={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 144a56 56 0 1 1 0-112 56 56 0 1 1 0 112zm0 224c30.9 0 56 25.1 56 56s-25.1 56-56 56-56-25.1-56-56 25.1-56 56-56zm56-112c0 30.9-25.1 56-56 56s-56-25.1-56-56 25.1-56 56-56 56 25.1 56 56z"]},nV=tV,rV={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M0 64C0 28.7 28.7 0 64 0L213.5 0c17 0 33.3 6.7 45.3 18.7L365.3 125.3c12 12 18.7 28.3 18.7 45.3L384 448c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm208-5.5l0 93.5c0 13.3 10.7 24 24 24L325.5 176 208 58.5zM209 263c-9.4-9.4-24.6-9.4-33.9 0l-64 64c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l23-23 0 86.1c0 13.3 10.7 24 24 24s24-10.7 24-24l0-86.1 23 23c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-64-64z"]},iV=rV,aV={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L368 46.1 465.9 144 490.3 119.6c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L432 177.9 334.1 80 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},fw=aV,Ig={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M311.1 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L243.2 256 73.9 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},iR={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M342.6-22.6c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l41.4-41.4 0 195.9c-18.8-10.9-40.7-17.1-64-17.1l-114.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 320 224 320c35.3 0 64 28.7 64 64 0 70.7 57.3 128 128 128l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-35.3 0-64-28.7-64-64l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-96z"]},oV={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M150.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L96 141.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7 41.4 41.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-96-96zM320 480l32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-32 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32zm0-128l224 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L320 32c-17.7 0-32 14.3-32 32s14.3 32 32 32z"]},sV=oV,lV={prefix:"fas",iconName:"sun",icon:[576,512,[9728],"f185","M178.2-10.1c7.4-3.1 15.8-2.2 22.5 2.2l87.8 58.2 87.8-58.2c6.7-4.4 15.1-5.2 22.5-2.2S411.4-.5 413 7.3l20.9 103.2 103.2 20.9c7.8 1.6 14.4 7 17.4 14.3s2.2 15.8-2.2 22.5l-58.2 87.8 58.2 87.8c4.4 6.7 5.2 15.1 2.2 22.5s-9.6 12.8-17.4 14.3L433.8 401.4 413 504.7c-1.6 7.8-7 14.4-14.3 17.4s-15.8 2.2-22.5-2.2l-87.8-58.2-87.8 58.2c-6.7 4.4-15.1 5.2-22.5 2.2s-12.8-9.6-14.3-17.4L143 401.4 39.7 380.5c-7.8-1.6-14.4-7-17.4-14.3s-2.2-15.8 2.2-22.5L82.7 256 24.5 168.2c-4.4-6.7-5.2-15.1-2.2-22.5s9.6-12.8 17.4-14.3L143 110.6 163.9 7.3c1.6-7.8 7-14.4 14.3-17.4zM207.6 256a80.4 80.4 0 1 1 160.8 0 80.4 80.4 0 1 1 -160.8 0zm208.8 0a128.4 128.4 0 1 0 -256.8 0 128.4 128.4 0 1 0 256.8 0z"]},uV={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M36.4 353.2c4.1-14.6 11.8-27.9 22.6-38.7l181.2-181.2 33.9-33.9c16.6 16.6 51.3 51.3 104 104l33.9 33.9-33.9 33.9-181.2 181.2c-10.7 10.7-24.1 18.5-38.7 22.6L30.4 510.6c-8.3 2.3-17.3 0-23.4-6.2S-1.4 489.3 .9 481L36.4 353.2zm55.6-3.7c-4.4 4.7-7.6 10.4-9.3 16.6l-24.1 86.9 86.9-24.1c6.4-1.8 12.2-5.1 17-9.7L91.9 349.5zm354-146.1c-16.6-16.6-51.3-51.3-104-104L308 65.5C334.5 39 349.4 24.1 352.9 20.6 366.4 7 384.8-.6 404-.6S441.6 7 455.1 20.6l35.7 35.7C504.4 69.9 512 88.3 512 107.4s-7.6 37.6-21.2 51.1c-3.5 3.5-18.4 18.4-44.9 44.9z"]},aR=uV,cV={prefix:"fas",iconName:"link",icon:[576,512,[128279,"chain"],"f0c1","M419.5 96c-16.6 0-32.7 4.5-46.8 12.7-15.8-16-34.2-29.4-54.5-39.5 28.2-24 64.1-37.2 101.3-37.2 86.4 0 156.5 70 156.5 156.5 0 41.5-16.5 81.3-45.8 110.6l-71.1 71.1c-29.3 29.3-69.1 45.8-110.6 45.8-86.4 0-156.5-70-156.5-156.5 0-1.5 0-3 .1-4.5 .5-17.7 15.2-31.6 32.9-31.1s31.6 15.2 31.1 32.9c0 .9 0 1.8 0 2.6 0 51.1 41.4 92.5 92.5 92.5 24.5 0 48-9.7 65.4-27.1l71.1-71.1c17.3-17.3 27.1-40.9 27.1-65.4 0-51.1-41.4-92.5-92.5-92.5zM275.2 173.3c-1.9-.8-3.8-1.9-5.5-3.1-12.6-6.5-27-10.2-42.1-10.2-24.5 0-48 9.7-65.4 27.1L91.1 258.2c-17.3 17.3-27.1 40.9-27.1 65.4 0 51.1 41.4 92.5 92.5 92.5 16.5 0 32.6-4.4 46.7-12.6 15.8 16 34.2 29.4 54.6 39.5-28.2 23.9-64 37.2-101.3 37.2-86.4 0-156.5-70-156.5-156.5 0-41.5 16.5-81.3 45.8-110.6l71.1-71.1c29.3-29.3 69.1-45.8 110.6-45.8 86.6 0 156.5 70.6 156.5 156.9 0 1.3 0 2.6 0 3.9-.4 17.7-15.1 31.6-32.8 31.2s-31.6-15.1-31.2-32.8c0-.8 0-1.5 0-2.3 0-33.7-18-63.3-44.8-79.6z"]},Yv={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7 262.6 153.4c-12.5-12.5-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l73.4-73.4 57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},fV={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2S34.1 320.2 41 327l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S177.7 512 168 512z"]},dV={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 17.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 117.3 160 488c0 17.7 14.3 32 32 32s32-14.3 32-32l0-370.7 105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},hV={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M136.7 5.9C141.1-7.2 153.3-16 167.1-16l113.9 0c13.8 0 26 8.8 30.4 21.9L320 32 416 32c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 8.7-26.1zM32 144l384 0 0 304c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-304zm88 64c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24zm104 0c-13.3 0-24 10.7-24 24l0 192c0 13.3 10.7 24 24 24s24-10.7 24-24l0-192c0-13.3-10.7-24-24-24z"]},Ru={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M434.8 70.1c14.3 10.4 17.5 30.4 7.1 44.7l-256 352c-5.5 7.6-14 12.3-23.4 13.1s-18.5-2.7-25.1-9.3l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l101.5 101.5 234-321.7c10.4-14.3 30.4-17.5 44.7-7.1z"]},mV={prefix:"fas",iconName:"house",icon:[512,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-9.6 9-12.8 22.9-8 35.1S18.8 272 32 272l16 0 0 176c0 35.3 28.7 64 64 64l288 0c35.3 0 64-28.7 64-64l0-176 16 0c13.2 0 25-8.1 29.8-20.3s1.6-26.2-8-35.1l-224-208zM240 320l32 0c26.5 0 48 21.5 48 48l0 96-128 0 0-96c0-26.5 21.5-48 48-48z"]},pV=mV,GA={prefix:"fas",iconName:"server",icon:[448,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm216 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},YA={prefix:"fas",iconName:"calendar-xmark",icon:[448,512,["calendar-times"],"f273","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-32c0-17.7 14.3-32 32-32zM291.9 220.1c-9.4-9.4-24.6-9.4-33.9 0l-33.9 33.9-33.9-33.9c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l33.9 33.9-33.9 33.9c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l33.9-33.9 33.9 33.9c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-33.9-33.9 33.9-33.9c9.4-9.4 9.4-24.6 0-33.9z"]},Wv={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},dw=Wv,gV=Wv,oR={prefix:"fas",iconName:"tags",icon:[576,512,[],"f02c","M401.2 39.1L549.4 189.4c27.7 28.1 27.7 73.1 0 101.2L393 448.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L515.3 256.8c9.2-9.3 9.2-24.4 0-33.7L367 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM32.1 229.5L32.1 96c0-35.3 28.7-64 64-64l133.5 0c17 0 33.3 6.7 45.3 18.7l144 144c25 25 25 65.5 0 90.5L285.4 418.7c-25 25-65.5 25-90.5 0l-144-144c-12-12-18.7-28.3-18.7-45.3zm144-85.5a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},vV={prefix:"fas",iconName:"moon",icon:[512,512,[127769,9214],"f186","M256 0C114.6 0 0 114.6 0 256S114.6 512 256 512c68.8 0 131.3-27.2 177.3-71.4 7.3-7 9.4-17.9 5.3-27.1s-13.7-14.9-23.8-14.1c-4.9 .4-9.8 .6-14.8 .6-101.6 0-184-82.4-184-184 0-72.1 41.5-134.6 102.1-164.8 9.1-4.5 14.3-14.3 13.1-24.4S322.6 8.5 312.7 6.3C294.4 2.2 275.4 0 256 0z"]},hw={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},yV={prefix:"fas",iconName:"chevron-down",icon:[448,512,[],"f078","M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},bV={prefix:"fas",iconName:"plug",icon:[448,512,[128268],"f1e6","M128-32c17.7 0 32 14.3 32 32l0 96 128 0 0-96c0-17.7 14.3-32 32-32s32 14.3 32 32l0 96 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l0 64c0 95.1-69.2 174.1-160 189.3l0 66.7c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-66.7C101.2 398.1 32 319.1 32 224l0-64c-17.7 0-32-14.3-32-32S14.3 96 32 96l64 0 0-96c0-17.7 14.3-32 32-32z"]},mw={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M512.4 240l-176 0c-17.7 0-32-14.3-32-32l0-176c0-17.7 14.4-32.2 31.9-29.9 107 14.2 191.8 99 206 206 2.3 17.5-12.2 31.9-29.9 31.9zM222.6 37.2c18.1-3.8 33.8 11 33.8 29.5l0 197.3c0 5.6 2 11 5.5 15.3L394 438.7c11.7 14.1 9.2 35.4-6.9 44.1-34.1 18.6-73.2 29.2-114.7 29.2-132.5 0-240-107.5-240-240 0-115.5 81.5-211.9 190.2-234.8zM477.8 288l64 0c18.5 0 33.3 15.7 29.5 33.8-10.2 48.4-35 91.4-69.6 124.2-12.3 11.7-31.6 9.2-42.4-3.9L374.9 340.4c-17.3-20.9-2.4-52.4 24.6-52.4l78.2 0z"]},_V={prefix:"fas",iconName:"file-csv",icon:[576,512,[],"f6dd","M96 0C60.7 0 32 28.7 32 64l0 384c0 35.3 28.7 64 64 64l80 0 0-112c0-35.3 28.7-64 64-64l176 0 0-165.5c0-17-6.7-33.3-18.7-45.3L290.7 18.7C278.7 6.7 262.5 0 245.5 0L96 0zM357.5 176L264 176c-13.3 0-24-10.7-24-24L240 58.5 357.5 176zM264 380c-24.3 0-44 19.7-44 44l0 80c0 24.3 19.7 44 44 44l16 0c24.3 0 44-19.7 44-44l0-8c0-11-9-20-20-20s-20 9-20 20l0 8c0 2.2-1.8 4-4 4l-16 0c-2.2 0-4-1.8-4-4l0-80c0-2.2 1.8-4 4-4l16 0c2.2 0 4 1.8 4 4l0 8c0 11 9 20 20 20s20-9 20-20l0-8c0-24.3-19.7-44-44-44l-16 0zm136 0c-28.7 0-52 23.3-52 52s23.3 52 52 52c6.6 0 12 5.4 12 12s-5.4 12-12 12l-32 0c-11 0-20 9-20 20s9 20 20 20l32 0c28.7 0 52-23.3 52-52s-23.3-52-52-52c-6.6 0-12-5.4-12-12s5.4-12 12-12l24 0c11 0 20-9 20-20s-9-20-20-20l-24 0zm96 0c-11 0-20 9-20 20l0 31.6c0 35.5 10.5 70.3 30.2 99.8l5.1 7.7c3.7 5.6 10 8.9 16.6 8.9s12.9-3.3 16.6-8.9l5.1-7.7c19.7-29.6 30.2-64.3 30.2-99.8l0-31.6c0-11-9-20-20-20s-20 9-20 20l0 31.6c0 19.6-4.1 38.9-12 56.7-7.9-17.8-12-37.1-12-56.7l0-31.6c0-11-9-20-20-20z"]},WA={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},xV={prefix:"fas",iconName:"grip-vertical",icon:[320,512,["grid-vertical"],"f58e","M128 40c0-22.1-17.9-40-40-40L40 0C17.9 0 0 17.9 0 40L0 88c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zm0 192c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM0 424l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 40c0-22.1-17.9-40-40-40L232 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48zM192 232l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40zM320 424c0-22.1-17.9-40-40-40l-48 0c-22.1 0-40 17.9-40 40l0 48c0 22.1 17.9 40 40 40l48 0c22.1 0 40-17.9 40-40l0-48z"]},wV={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 0c14.7 0 28.2 8.1 35.2 21l216 400c6.7 12.4 6.4 27.4-.8 39.5S486.1 480 472 480L40 480c-14.1 0-27.2-7.4-34.4-19.5s-7.5-27.1-.8-39.5l216-400c7-12.9 20.5-21 35.2-21zm0 352a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.5 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},SV=wV,CV={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M140.3 135.2c12.6-10.3 31.1-9.5 42.8 2.2l128 128c9.2 9.2 11.9 22.9 6.9 34.9S301.4 320 288.5 320l-256 0c-12.9 0-24.6-7.8-29.6-19.8S.7 274.5 9.9 265.4l128-128 2.4-2.2z"]},EV={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M351.9 280l-190.9 0c2.9 64.5 17.2 123.9 37.5 167.4 11.4 24.5 23.7 41.8 35.1 52.4 11.2 10.5 18.9 12.2 22.9 12.2s11.7-1.7 22.9-12.2c11.4-10.6 23.7-28 35.1-52.4 20.3-43.5 34.6-102.9 37.5-167.4zM160.9 232l190.9 0C349 167.5 334.7 108.1 314.4 64.6 303 40.2 290.7 22.8 279.3 12.2 268.1 1.7 260.4 0 256.4 0s-11.7 1.7-22.9 12.2c-11.4 10.6-23.7 28-35.1 52.4-20.3 43.5-34.6 102.9-37.5 167.4zm-48 0C116.4 146.4 138.5 66.9 170.8 14.7 78.7 47.3 10.9 131.2 1.5 232l111.4 0zM1.5 280c9.4 100.8 77.2 184.7 169.3 217.3-32.3-52.2-54.4-131.7-57.9-217.3L1.5 280zm398.4 0c-3.5 85.6-25.6 165.1-57.9 217.3 92.1-32.7 159.9-116.5 169.3-217.3l-111.4 0zm111.4-48C501.9 131.2 434.1 47.3 342 14.7 374.3 66.9 396.4 146.4 399.9 232l111.4 0z"]},AV={prefix:"fas",iconName:"arrow-left",icon:[512,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 288 480 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-370.7 0 105.4-105.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},TV={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439.5 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2S450.2 240 440.5 240l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87zM72.5 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87-39-39c-6.9-6.9-8.9-17.2-5.2-26.2S62.8 272 72.5 272z"]},sR={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M352 0c0-17.7-14.3-32-32-32S288-17.7 288 0l0 64-96 0c-53 0-96 43-96 96l0 224c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-224c0-53-43-96-96-96l-96 0 0-64zM160 368c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zm120 0c0-13.3 10.7-24 24-24l32 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-32 0c-13.3 0-24-10.7-24-24zM224 176a48 48 0 1 1 0 96 48 48 0 1 1 0-96zm144 48a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM64 224c0-17.7-14.3-32-32-32S0 206.3 0 224l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96zm544-32c-17.7 0-32 14.3-32 32l0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96c0-17.7-14.3-32-32-32z"]},Gh={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},OV={prefix:"fas",iconName:"link-slash",icon:[576,512,["chain-broken","chain-slash","unlink"],"f127","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-122-122c4.2-3.4 8.3-7.1 12.1-10.9l71.1-71.1c29.3-29.3 45.8-69.1 45.8-110.6 0-86.4-70-156.5-156.5-156.5-37.3 0-73.1 13.3-101.3 37.2 20.3 10.1 38.7 23.5 54.5 39.5 14.1-8.3 30.2-12.7 46.8-12.7 51.1 0 92.5 41.4 92.5 92.5 0 24.5-9.7 48-27.1 65.4l-71.1 71.1c-3.9 3.9-8.1 7.4-12.6 10.5l-47.5-47.5c16.5-.9 29.7-14.4 30.2-31.1 0-1.3 0-2.6 0-3.9 0-86.3-69.9-156.9-156.5-156.9-19.2 0-37.9 3.5-55.5 10.2L41-24.9zM225.9 160c.6 0 1.1 0 1.7 0 15.1 0 29.5 3.7 42.1 10.2 1.8 1.2 3.6 2.3 5.5 3.1 26.8 16.3 44.8 45.9 44.8 79.6 0 .4 0 .8 0 1.2L225.9 160zM346.2 416L192 261.8c1.2 84.6 69.6 152.9 154.1 154.1zM139.7 209.5l-45.3-45.3-48.6 48.6c-29.3 29.3-45.8 69.1-45.8 110.6 0 86.4 70 156.5 156.5 156.5 37.2 0 73.1-13.3 101.3-37.2-20.3-10.1-38.8-23.5-54.6-39.5-14 8.2-30.1 12.6-46.7 12.6-51.1 0-92.5-41.4-92.5-92.5 0-24.5 9.7-48 27.1-65.4l48.6-48.6z"]},jV={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M246.6 374.6l-96 96c-12.5 12.5-32.8 12.5-45.3 0l-96-96c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L96 370.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 306.7 41.4-41.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3zM320 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-32 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l160 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-160 0zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L320 96z"]},MV=jV,lR={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M140.3 376.8c12.6 10.2 31.1 9.5 42.8-2.2l128-128c9.2-9.2 11.9-22.9 6.9-34.9S301.4 192 288.5 192l-256 0c-12.9 0-24.6 7.8-29.6 19.8S.7 237.5 9.9 246.6l128 128 2.4 2.2z"]},PV={prefix:"fas",iconName:"eye-slash",icon:[576,512,[],"f070","M41-24.9c-9.4-9.4-24.6-9.4-33.9 0S-2.3-.3 7 9.1l528 528c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-96.4-96.4c2.7-2.4 5.4-4.8 8-7.2 46.8-43.5 78.1-95.4 93-131.1 3.3-7.9 3.3-16.7 0-24.6-14.9-35.7-46.2-87.7-93-131.1-47.1-43.7-111.8-80.6-192.6-80.6-56.8 0-105.6 18.2-146 44.2L41-24.9zM204.5 138.7c23.5-16.8 52.4-26.7 83.5-26.7 79.5 0 144 64.5 144 144 0 31.1-9.9 59.9-26.7 83.5l-34.7-34.7c12.7-21.4 17-47.7 10.1-73.7-13.7-51.2-66.4-81.6-117.6-67.9-8.6 2.3-16.7 5.7-24 10l-34.7-34.7zM325.3 395.1c-11.9 3.2-24.4 4.9-37.3 4.9-79.5 0-144-64.5-144-144 0-12.9 1.7-25.4 4.9-37.3L69.4 139.2c-32.6 36.8-55 75.8-66.9 104.5-3.3 7.9-3.3 16.7 0 24.6 14.9 35.7 46.2 87.7 93 131.1 47.1 43.7 111.8 80.6 192.6 80.6 37.3 0 71.2-7.9 101.5-20.6l-64.2-64.2z"]},RV={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M256 64c-56.8 0-107.9 24.7-143.1 64l47.1 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 192c-17.7 0-32-14.3-32-32L0 32C0 14.3 14.3 0 32 0S64 14.3 64 32l0 54.7C110.9 33.6 179.5 0 256 0 397.4 0 512 114.6 512 256S397.4 512 256 512c-87 0-163.9-43.4-210.1-109.7-10.1-14.5-6.6-34.4 7.9-44.6s34.4-6.6 44.6 7.9c34.8 49.8 92.4 82.3 157.6 82.3 106 0 192-86 192-192S362 64 256 64z"]},NV=RV,LV={prefix:"fas",iconName:"tag",icon:[512,512,[127991],"f02b","M32.5 96l0 149.5c0 17 6.7 33.3 18.7 45.3l192 192c25 25 65.5 25 90.5 0L483.2 333.3c25-25 25-65.5 0-90.5l-192-192C279.2 38.7 263 32 246 32L96.5 32c-35.3 0-64 28.7-64 64zm112 16a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},DV={prefix:"fas",iconName:"desktop",icon:[512,512,[128421,61704,"desktop-alt"],"f390","M64 32C28.7 32 0 60.7 0 96L0 352c0 35.3 28.7 64 64 64l144 0-16 48-72 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l272 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-72 0-16-48 144 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 32zM96 96l320 0c17.7 0 32 14.3 32 32l0 160c0 17.7-14.3 32-32 32L96 320c-17.7 0-32-14.3-32-32l0-160c0-17.7 14.3-32 32-32z"]},kV={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},IV={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},UV={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},zV=UV,BV={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M64 160l64 0 0-64-64 0 0 64zM0 80C0 53.5 21.5 32 48 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48L0 80zM64 416l64 0 0-64-64 0 0 64zM0 336c0-26.5 21.5-48 48-48l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96zM320 96l0 64 64 0 0-64-64 0zM304 32l96 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-96 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zM288 352a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm0 64c17.7 0 32 14.3 32 32s-14.3 32-32 32-32-14.3-32-32 14.3-32 32-32zm96 32c0-17.7 14.3-32 32-32s32 14.3 32 32-14.3 32-32 32-32-14.3-32-32zm32-96a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm-32 32a32 32 0 1 1 -64 0 32 32 0 1 1 64 0z"]},FV={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM168 232l176 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-176 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},uR=FV,$V={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM224 160a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm-8 64l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},Kv=$V;/*!
* Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2025 Fonticons, Inc.
*/function xx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function VV(e){if(Array.isArray(e))return e}function HV(e){if(Array.isArray(e))return xx(e)}function qV(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GV(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,cR(r.key),r)}}function YV(e,t,n){return t&&GV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Sg(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=pw(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(d){throw d},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return s=d.done,d},e:function(d){u=!0,o=d},f:function(){try{s||n.return==null||n.return()}finally{if(u)throw o}}}}function xt(e,t,n){return(t=cR(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WV(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function KV(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,o,s,u=[],d=!0,f=!1;try{if(o=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(r=o.call(n)).done)&&(u.push(r.value),u.length!==t);d=!0);}catch(m){f=!0,i=m}finally{try{if(!d&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(f)throw i}}return u}}function ZV(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function KA(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 We(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KA(Object(n),!0).forEach(function(r){xt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zv(e,t){return VV(e)||KV(e,t)||pw(e,t)||ZV()}function Aa(e){return HV(e)||WV(e)||pw(e)||XV()}function QV(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cR(e){var t=QV(e,"string");return typeof t=="symbol"?t:t+""}function Ug(e){"@babel/helpers - typeof";return Ug=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},Ug(e)}function pw(e,t){if(e){if(typeof e=="string")return xx(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?xx(e,t):void 0}}var ZA=function(){},gw={},fR={},dR=null,hR={mark:ZA,measure:ZA};try{typeof window<"u"&&(gw=window),typeof document<"u"&&(fR=document),typeof MutationObserver<"u"&&(dR=MutationObserver),typeof performance<"u"&&(hR=performance)}catch{}var JV=gw.navigator||{},XA=JV.userAgent,QA=XA===void 0?"":XA,cl=gw,ln=fR,JA=dR,qp=hR;cl.document;var rs=!!ln.documentElement&&!!ln.head&&typeof ln.addEventListener=="function"&&typeof ln.createElement=="function",mR=~QA.indexOf("MSIE")||~QA.indexOf("Trident/"),ib,eH=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,tH=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,pR={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},nH={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},gR=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],xr="classic",Yh="duotone",vR="sharp",yR="sharp-duotone",bR="chisel",_R="etch",xR="jelly",wR="jelly-duo",SR="jelly-fill",CR="notdog",ER="notdog-duo",AR="slab",TR="slab-press",OR="thumbprint",jR="utility",MR="utility-duo",PR="utility-fill",RR="whiteboard",rH="Classic",iH="Duotone",aH="Sharp",oH="Sharp Duotone",sH="Chisel",lH="Etch",uH="Jelly",cH="Jelly Duo",fH="Jelly Fill",dH="Notdog",hH="Notdog Duo",mH="Slab",pH="Slab Press",gH="Thumbprint",vH="Utility",yH="Utility Duo",bH="Utility Fill",_H="Whiteboard",NR=[xr,Yh,vR,yR,bR,_R,xR,wR,SR,CR,ER,AR,TR,OR,jR,MR,PR,RR];ib={},xt(xt(xt(xt(xt(xt(xt(xt(xt(xt(ib,xr,rH),Yh,iH),vR,aH),yR,oH),bR,sH),_R,lH),xR,uH),wR,cH),SR,fH),CR,dH),xt(xt(xt(xt(xt(xt(xt(xt(ib,ER,hH),AR,mH),TR,pH),OR,gH),jR,vH),MR,yH),PR,bH),RR,_H);var xH={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},wH={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},SH=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),CH={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},LR=["fak","fa-kit","fakd","fa-kit-duotone"],eT={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},EH=["kit"],AH="kit",TH="kit-duotone",OH="Kit",jH="Kit Duotone";xt(xt({},AH,OH),TH,jH);var MH={kit:{"fa-kit":"fak"}},PH={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},RH={kit:{fak:"fa-kit"}},tT={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},ab,Gp={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},NH=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],LH="classic",DH="duotone",kH="sharp",IH="sharp-duotone",UH="chisel",zH="etch",BH="jelly",FH="jelly-duo",$H="jelly-fill",VH="notdog",HH="notdog-duo",qH="slab",GH="slab-press",YH="thumbprint",WH="utility",KH="utility-duo",ZH="utility-fill",XH="whiteboard",QH="Classic",JH="Duotone",eq="Sharp",tq="Sharp Duotone",nq="Chisel",rq="Etch",iq="Jelly",aq="Jelly Duo",oq="Jelly Fill",sq="Notdog",lq="Notdog Duo",uq="Slab",cq="Slab Press",fq="Thumbprint",dq="Utility",hq="Utility Duo",mq="Utility Fill",pq="Whiteboard";ab={},xt(xt(xt(xt(xt(xt(xt(xt(xt(xt(ab,LH,QH),DH,JH),kH,eq),IH,tq),UH,nq),zH,rq),BH,iq),FH,aq),$H,oq),VH,sq),xt(xt(xt(xt(xt(xt(xt(xt(ab,HH,lq),qH,uq),GH,cq),YH,fq),WH,dq),KH,hq),ZH,mq),XH,pq);var gq="kit",vq="kit-duotone",yq="Kit",bq="Kit Duotone";xt(xt({},gq,yq),vq,bq);var _q={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},xq={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},wx={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},wq=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],DR=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(NH,wq),Sq=["solid","regular","light","thin","duotone","brands","semibold"],kR=[1,2,3,4,5,6,7,8,9,10],Cq=kR.concat([11,12,13,14,15,16,17,18,19,20]),Eq=["aw","fw","pull-left","pull-right"],Aq=[].concat(Aa(Object.keys(xq)),Sq,Eq,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",Gp.GROUP,Gp.SWAP_OPACITY,Gp.PRIMARY,Gp.SECONDARY]).concat(kR.map(function(e){return"".concat(e,"x")})).concat(Cq.map(function(e){return"w-".concat(e)})),Tq={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},Wo="___FONT_AWESOME___",Sx=16,IR="fa",UR="svg-inline--fa",Nu="data-fa-i2svg",Cx="data-fa-pseudo-element",Oq="data-fa-pseudo-element-pending",vw="data-prefix",yw="data-icon",nT="fontawesome-i2svg",jq="async",Mq=["HTML","HEAD","STYLE","SCRIPT"],zR=["::before","::after",":before",":after"],BR=function(){try{return!0}catch{return!1}}();function Wh(e){return new Proxy(e,{get:function(n,r){return r in n?n[r]:n[xr]}})}var FR=We({},pR);FR[xr]=We(We(We(We({},{"fa-duotone":"duotone"}),pR[xr]),eT.kit),eT["kit-duotone"]);var Pq=Wh(FR),Ex=We({},CH);Ex[xr]=We(We(We(We({},{duotone:"fad"}),Ex[xr]),tT.kit),tT["kit-duotone"]);var rT=Wh(Ex),Ax=We({},wx);Ax[xr]=We(We({},Ax[xr]),RH.kit);var bw=Wh(Ax),Tx=We({},_q);Tx[xr]=We(We({},Tx[xr]),MH.kit);Wh(Tx);var Rq=eH,$R="fa-layers-text",Nq=tH,Lq=We({},xH);Wh(Lq);var Dq=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ob=nH,kq=[].concat(Aa(EH),Aa(Aq)),mh=cl.FontAwesomeConfig||{};function Iq(e){var t=ln.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Uq(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(ln&&typeof ln.querySelector=="function"){var zq=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];zq.forEach(function(e){var t=Zv(e,2),n=t[0],r=t[1],i=Uq(Iq(n));i!=null&&(mh[r]=i)})}var VR={styleDefault:"solid",familyDefault:xr,cssPrefix:IR,replacementClass:UR,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};mh.familyPrefix&&(mh.cssPrefix=mh.familyPrefix);var nf=We(We({},VR),mh);nf.autoReplaceSvg||(nf.observeMutations=!1);var lt={};Object.keys(VR).forEach(function(e){Object.defineProperty(lt,e,{enumerable:!0,set:function(n){nf[e]=n,ph.forEach(function(r){return r(lt)})},get:function(){return nf[e]}})});Object.defineProperty(lt,"familyPrefix",{enumerable:!0,set:function(t){nf.cssPrefix=t,ph.forEach(function(n){return n(lt)})},get:function(){return nf.cssPrefix}});cl.FontAwesomeConfig=lt;var ph=[];function Bq(e){return ph.push(e),function(){ph.splice(ph.indexOf(e),1)}}var Ic=Sx,eo={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Fq(e){if(!(!e||!rs)){var t=ln.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=ln.head.childNodes,r=null,i=n.length-1;i>-1;i--){var o=n[i],s=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(r=o)}return ln.head.insertBefore(t,r),e}}var $q="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function iT(){for(var e=12,t="";e-- >0;)t+=$q[Math.random()*62|0];return t}function wf(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function _w(e){return e.classList?wf(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function HR(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Vq(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(HR(e[n]),'" ')},"").trim()}function Xv(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function xw(e){return e.size!==eo.size||e.x!==eo.x||e.y!==eo.y||e.rotate!==eo.rotate||e.flipX||e.flipY}function Hq(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),s="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),u="rotate(".concat(t.rotate," 0 0)"),d={transform:"".concat(o," ").concat(s," ").concat(u)},f={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:d,path:f}}function qq(e){var t=e.transform,n=e.width,r=n===void 0?Sx:n,i=e.height,o=i===void 0?Sx:i,s="";return mR?s+="translate(".concat(t.x/Ic-r/2,"em, ").concat(t.y/Ic-o/2,"em) "):s+="translate(calc(-50% + ".concat(t.x/Ic,"em), calc(-50% + ").concat(t.y/Ic,"em)) "),s+="scale(".concat(t.size/Ic*(t.flipX?-1:1),", ").concat(t.size/Ic*(t.flipY?-1:1),") "),s+="rotate(".concat(t.rotate,"deg) "),s}var Gq=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
--fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
--fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
--fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
--fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
--fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
--fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
--fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
--fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
--fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
--fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
--fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
--fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
--fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
--fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
--fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
--fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";
--fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";
--fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";
}
.svg-inline--fa {
box-sizing: content-box;
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
width: var(--fa-width, 1.25em);
}
.svg-inline--fa.fa-2xs {
vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
vertical-align: -0.0714285714em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left,
.svg-inline--fa .fa-pull-start {
float: inline-start;
margin-inline-end: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-pull-right,
.svg-inline--fa .fa-pull-end {
float: inline-end;
margin-inline-start: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: var(--fa-width, 1.25em);
}
.fa-layers .svg-inline--fa {
inset: 0;
margin: auto;
position: absolute;
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
transform-origin: center center;
}
.fa-layers-counter {
background-color: var(--fa-counter-background-color, #ff253a);
border-radius: var(--fa-counter-border-radius, 1em);
box-sizing: border-box;
color: var(--fa-inverse, #fff);
line-height: var(--fa-counter-line-height, 1);
max-width: var(--fa-counter-max-width, 5em);
min-width: var(--fa-counter-min-width, 1.5em);
overflow: hidden;
padding: var(--fa-counter-padding, 0.25em 0.5em);
right: var(--fa-right, 0);
text-overflow: ellipsis;
top: var(--fa-top, 0);
transform: scale(var(--fa-counter-scale, 0.25));
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top left;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-2xs {
font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-xs {
font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-sm {
font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-lg {
font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-xl {
font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-2xl {
font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}
.fa-width-auto {
--fa-width: auto;
}
.fa-fw,
.fa-width-fixed {
--fa-width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-inline-start: var(--fa-li-margin, 2.5em);
padding-inline-start: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
/* Heads Up: Bordered Icons will not be supported in the future!
- This feature will be deprecated in the next major release of Font Awesome (v8)!
- You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
*/
/* Notes:
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
* --@{v.$css-prefix}-border-padding =
** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
*/
.fa-border {
border-color: var(--fa-border-color, #eee);
border-radius: var(--fa-border-radius, 0.1em);
border-style: var(--fa-border-style, solid);
border-width: var(--fa-border-width, 0.0625em);
box-sizing: var(--fa-border-box-sizing, content-box);
padding: var(--fa-border-padding, 0.1875em 0.25em);
}
.fa-pull-left,
.fa-pull-start {
float: inline-start;
margin-inline-end: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right,
.fa-pull-end {
float: inline-end;
margin-inline-start: var(--fa-pull-margin, 0.3em);
}
.fa-beat {
animation-name: fa-beat;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
animation-name: fa-bounce;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
animation-name: fa-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-beat-fade {
animation-name: fa-beat-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-flip {
animation-name: fa-flip;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
animation-name: fa-shake;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin {
animation-name: fa-spin;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 2s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
animation-name: fa-spin;
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, steps(8));
}
@media (prefers-reduced-motion: reduce) {
.fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
animation: none !important;
transition: none !important;
}
}
@keyframes fa-beat {
0%, 90% {
transform: scale(1);
}
45% {
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@keyframes fa-bounce {
0% {
transform: scale(1, 1) translateY(0);
}
10% {
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
}
50% {
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
transform: scale(1, 1) translateY(0);
}
100% {
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@keyframes fa-flip {
50% {
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@keyframes fa-shake {
0% {
transform: rotate(-15deg);
}
4% {
transform: rotate(15deg);
}
8%, 24% {
transform: rotate(-18deg);
}
12%, 28% {
transform: rotate(18deg);
}
16% {
transform: rotate(-22deg);
}
20% {
transform: rotate(22deg);
}
32% {
transform: rotate(-12deg);
}
36% {
transform: rotate(12deg);
}
40%, 100% {
transform: rotate(0deg);
}
}
@keyframes fa-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.fa-rotate-90 {
transform: rotate(90deg);
}
.fa-rotate-180 {
transform: rotate(180deg);
}
.fa-rotate-270 {
transform: rotate(270deg);
}
.fa-flip-horizontal {
transform: scale(-1, 1);
}
.fa-flip-vertical {
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
transform: scale(-1, -1);
}
.fa-rotate-by {
transform: rotate(var(--fa-rotate-angle, 0));
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}
.svg-inline--fa.fa-inverse {
fill: var(--fa-inverse, #fff);
}
.fa-stack {
display: inline-block;
height: 2em;
line-height: 2em;
position: relative;
vertical-align: middle;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.svg-inline--fa.fa-stack-1x {
--fa-width: 1.25em;
height: 1em;
width: var(--fa-width);
}
.svg-inline--fa.fa-stack-2x {
--fa-width: 2.5em;
height: 2em;
width: var(--fa-width);
}
.fa-stack-1x,
.fa-stack-2x {
inset: 0;
margin: auto;
position: absolute;
z-index: var(--fa-stack-z-index, auto);
}`;function qR(){var e=IR,t=UR,n=lt.cssPrefix,r=lt.replacementClass,i=Gq;if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),s=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(s,"--".concat(n,"-")).replace(u,".".concat(r))}return i}var aT=!1;function sb(){lt.autoAddCss&&!aT&&(Fq(qR()),aT=!0)}var Yq={mixout:function(){return{dom:{css:qR,insertCss:sb}}},hooks:function(){return{beforeDOMElementCreation:function(){sb()},beforeI2svg:function(){sb()}}}},Ko=cl||{};Ko[Wo]||(Ko[Wo]={});Ko[Wo].styles||(Ko[Wo].styles={});Ko[Wo].hooks||(Ko[Wo].hooks={});Ko[Wo].shims||(Ko[Wo].shims=[]);var Sa=Ko[Wo],GR=[],YR=function(){ln.removeEventListener("DOMContentLoaded",YR),zg=1,GR.map(function(t){return t()})},zg=!1;rs&&(zg=(ln.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ln.readyState),zg||ln.addEventListener("DOMContentLoaded",YR));function Wq(e){rs&&(zg?setTimeout(e,0):GR.push(e))}function Kh(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,o=i===void 0?[]:i;return typeof e=="string"?HR(e):"<".concat(t," ").concat(Vq(r),">").concat(o.map(Kh).join(""),"</").concat(t,">")}function oT(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var lb=function(t,n,r,i){var o=Object.keys(t),s=o.length,u=n,d,f,m;for(r===void 0?(d=1,m=t[o[0]]):(d=0,m=r);d<s;d++)f=o[d],m=u(m,t[f],f,t);return m};function WR(e){return Aa(e).length!==1?null:e.codePointAt(0).toString(16)}function sT(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function Ox(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,o=sT(t);typeof Sa.hooks.addPack=="function"&&!i?Sa.hooks.addPack(e,sT(t)):Sa.styles[e]=We(We({},Sa.styles[e]||{}),o),e==="fas"&&Ox("fa",t)}var Sh=Sa.styles,Kq=Sa.shims,KR=Object.keys(bw),Zq=KR.reduce(function(e,t){return e[t]=Object.keys(bw[t]),e},{}),ww=null,ZR={},XR={},QR={},JR={},eN={};function Xq(e){return~kq.indexOf(e)}function Qq(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Xq(i)?i:null}var tN=function(){var t=function(o){return lb(Sh,function(s,u,d){return s[d]=lb(u,o,{}),s},{})};ZR=t(function(i,o,s){if(o[3]&&(i[o[3]]=s),o[2]){var u=o[2].filter(function(d){return typeof d=="number"});u.forEach(function(d){i[d.toString(16)]=s})}return i}),XR=t(function(i,o,s){if(i[s]=s,o[2]){var u=o[2].filter(function(d){return typeof d=="string"});u.forEach(function(d){i[d]=s})}return i}),eN=t(function(i,o,s){var u=o[2];return i[s]=s,u.forEach(function(d){i[d]=s}),i});var n="far"in Sh||lt.autoFetchSvg,r=lb(Kq,function(i,o){var s=o[0],u=o[1],d=o[2];return u==="far"&&!n&&(u="fas"),typeof s=="string"&&(i.names[s]={prefix:u,iconName:d}),typeof s=="number"&&(i.unicodes[s.toString(16)]={prefix:u,iconName:d}),i},{names:{},unicodes:{}});QR=r.names,JR=r.unicodes,ww=Qv(lt.styleDefault,{family:lt.familyDefault})};Bq(function(e){ww=Qv(e.styleDefault,{family:lt.familyDefault})});tN();function Sw(e,t){return(ZR[e]||{})[t]}function Jq(e,t){return(XR[e]||{})[t]}function _u(e,t){return(eN[e]||{})[t]}function nN(e){return QR[e]||{prefix:null,iconName:null}}function eG(e){var t=JR[e],n=Sw("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function fl(){return ww}var rN=function(){return{prefix:null,iconName:null,rest:[]}};function tG(e){var t=xr,n=KR.reduce(function(r,i){return r[i]="".concat(lt.cssPrefix,"-").concat(i),r},{});return NR.forEach(function(r){(e.includes(n[r])||e.some(function(i){return Zq[r].includes(i)}))&&(t=r)}),t}function Qv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?xr:n,i=Pq[r][e];if(r===Yh&&!e)return"fad";var o=rT[r][e]||rT[r][i],s=e in Sa.styles?e:null,u=o||s||null;return u}function nG(e){var t=[],n=null;return e.forEach(function(r){var i=Qq(lt.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function lT(e){return e.sort().filter(function(t,n,r){return r.indexOf(t)===n})}var uT=DR.concat(LR);function Jv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,r=n===void 0?!1:n,i=null,o=lT(e.filter(function(_){return uT.includes(_)})),s=lT(e.filter(function(_){return!uT.includes(_)})),u=o.filter(function(_){return i=_,!gR.includes(_)}),d=Zv(u,1),f=d[0],m=f===void 0?null:f,p=tG(o),b=We(We({},nG(s)),{},{prefix:Qv(m,{family:p})});return We(We(We({},b),oG({values:e,family:p,styles:Sh,config:lt,canonical:b,givenPrefix:i})),rG(r,i,b))}function rG(e,t,n){var r=n.prefix,i=n.iconName;if(e||!r||!i)return{prefix:r,iconName:i};var o=t==="fa"?nN(i):{},s=_u(r,i);return i=o.iconName||s||i,r=o.prefix||r,r==="far"&&!Sh.far&&Sh.fas&&!lt.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}var iG=NR.filter(function(e){return e!==xr||e!==Yh}),aG=Object.keys(wx).filter(function(e){return e!==xr}).map(function(e){return Object.keys(wx[e])}).flat();function oG(e){var t=e.values,n=e.family,r=e.canonical,i=e.givenPrefix,o=i===void 0?"":i,s=e.styles,u=s===void 0?{}:s,d=e.config,f=d===void 0?{}:d,m=n===Yh,p=t.includes("fa-duotone")||t.includes("fad"),b=f.familyDefault==="duotone",_=r.prefix==="fad"||r.prefix==="fa-duotone";if(!m&&(p||b||_)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&iG.includes(n)){var w=Object.keys(u).find(function(C){return aG.includes(C)});if(w||f.autoFetchSvg){var x=SH.get(n).defaultShortPrefixId;r.prefix=x,r.iconName=_u(r.prefix,r.iconName)||r.iconName}}return(r.prefix==="fa"||o==="fa")&&(r.prefix=fl()||"fas"),r}var sG=function(){function e(){qV(this,e),this.definitions={}}return YV(e,[{key:"add",value:function(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];var s=i.reduce(this._pullDefinitions,{});Object.keys(s).forEach(function(u){n.definitions[u]=We(We({},n.definitions[u]||{}),s[u]),Ox(u,s[u]);var d=bw[xr][u];d&&Ox(d,s[u]),tN()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,r){var i=r.prefix&&r.iconName&&r.icon?{0:r}:r;return Object.keys(i).map(function(o){var s=i[o],u=s.prefix,d=s.iconName,f=s.icon,m=f[2];n[u]||(n[u]={}),m.length>0&&m.forEach(function(p){typeof p=="string"&&(n[u][p]=f)}),n[u][d]=f}),n}}])}(),cT=[],Hc={},Wc={},lG=Object.keys(Wc);function uG(e,t){var n=t.mixoutsTo;return cT=e,Hc={},Object.keys(Wc).forEach(function(r){lG.indexOf(r)===-1&&delete Wc[r]}),cT.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(s){typeof i[s]=="function"&&(n[s]=i[s]),Ug(i[s])==="object"&&Object.keys(i[s]).forEach(function(u){n[s]||(n[s]={}),n[s][u]=i[s][u]})}),r.hooks){var o=r.hooks();Object.keys(o).forEach(function(s){Hc[s]||(Hc[s]=[]),Hc[s].push(o[s])})}r.provides&&r.provides(Wc)}),n}function jx(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];var o=Hc[e]||[];return o.forEach(function(s){t=s.apply(null,[t].concat(r))}),t}function Lu(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=Hc[e]||[];i.forEach(function(o){o.apply(null,n)})}function dl(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Wc[e]?Wc[e].apply(null,t):void 0}function Mx(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||fl();if(t)return t=_u(n,t)||t,oT(iN.definitions,n,t)||oT(Sa.styles,n,t)}var iN=new sG,cG=function(){lt.autoReplaceSvg=!1,lt.observeMutations=!1,Lu("noAuto")},fG={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return rs?(Lu("beforeI2svg",t),dl("pseudoElements2svg",t),dl("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;lt.autoReplaceSvg===!1&&(lt.autoReplaceSvg=!0),lt.observeMutations=!0,Wq(function(){hG({autoReplaceSvgRoot:n}),Lu("watch",t)})}},dG={icon:function(t){if(t===null)return null;if(Ug(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:_u(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],r=Qv(t[0]);return{prefix:r,iconName:_u(r,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(lt.cssPrefix,"-"))>-1||t.match(Rq))){var i=Jv(t.split(" "),{skipLookups:!0});return{prefix:i.prefix||fl(),iconName:_u(i.prefix,i.iconName)||i.iconName}}if(typeof t=="string"){var o=fl();return{prefix:o,iconName:_u(o,t)||t}}}},Di={noAuto:cG,config:lt,dom:fG,parse:dG,library:iN,findIconDefinition:Mx,toHtml:Kh},hG=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,r=n===void 0?ln:n;(Object.keys(Sa.styles).length>0||lt.autoFetchSvg)&&rs&&lt.autoReplaceSvg&&Di.dom.i2svg({node:r})};function ey(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(r){return Kh(r)})}}),Object.defineProperty(e,"node",{get:function(){if(rs){var r=ln.createElement("div");return r.innerHTML=e.html,r.children}}}),e}function mG(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,s=e.transform;if(xw(s)&&n.found&&!r.found){var u=n.width,d=n.height,f={x:u/d/2,y:.5};i.style=Xv(We(We({},o),{},{"transform-origin":"".concat(f.x+s.x/16,"em ").concat(f.y+s.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function pG(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol,s=o===!0?"".concat(t,"-").concat(lt.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:We(We({},i),{},{id:s}),children:r}]}]}function gG(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function Cw(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,s=e.transform,u=e.symbol,d=e.maskId,f=e.extra,m=e.watchable,p=m===void 0?!1:m,b=r.found?r:n,_=b.width,w=b.height,x=[lt.replacementClass,o?"".concat(lt.cssPrefix,"-").concat(o):""].filter(function(U){return f.classes.indexOf(U)===-1}).filter(function(U){return U!==""||!!U}).concat(f.classes).join(" "),C={children:[],attributes:We(We({},f.attributes),{},{"data-prefix":i,"data-icon":o,class:x,role:f.attributes.role||"img",viewBox:"0 0 ".concat(_," ").concat(w)})};!gG(f.attributes)&&!f.attributes["aria-hidden"]&&(C.attributes["aria-hidden"]="true"),p&&(C.attributes[Nu]="");var E=We(We({},C),{},{prefix:i,iconName:o,main:n,mask:r,maskId:d,transform:s,symbol:u,styles:We({},f.styles)}),j=r.found&&n.found?dl("generateAbstractMask",E)||{children:[],attributes:{}}:dl("generateAbstractIcon",E)||{children:[],attributes:{}},O=j.children,N=j.attributes;return E.children=O,E.attributes=N,u?pG(E):mG(E)}function fT(e){var t=e.content,n=e.width,r=e.height,i=e.transform,o=e.extra,s=e.watchable,u=s===void 0?!1:s,d=We(We({},o.attributes),{},{class:o.classes.join(" ")});u&&(d[Nu]="");var f=We({},o.styles);xw(i)&&(f.transform=qq({transform:i,width:n,height:r}),f["-webkit-transform"]=f.transform);var m=Xv(f);m.length>0&&(d.style=m);var p=[];return p.push({tag:"span",attributes:d,children:[t]}),p}function vG(e){var t=e.content,n=e.extra,r=We(We({},n.attributes),{},{class:n.classes.join(" ")}),i=Xv(n.styles);i.length>0&&(r.style=i);var o=[];return o.push({tag:"span",attributes:r,children:[t]}),o}var ub=Sa.styles;function Px(e){var t=e[0],n=e[1],r=e.slice(4),i=Zv(r,1),o=i[0],s=null;return Array.isArray(o)?s={tag:"g",attributes:{class:"".concat(lt.cssPrefix,"-").concat(ob.GROUP)},children:[{tag:"path",attributes:{class:"".concat(lt.cssPrefix,"-").concat(ob.SECONDARY),fill:"currentColor",d:o[0]}},{tag:"path",attributes:{class:"".concat(lt.cssPrefix,"-").concat(ob.PRIMARY),fill:"currentColor",d:o[1]}}]}:s={tag:"path",attributes:{fill:"currentColor",d:o}},{found:!0,width:t,height:n,icon:s}}var yG={found:!1,width:512,height:512};function bG(e,t){!BR&&!lt.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Rx(e,t){var n=t;return t==="fa"&&lt.styleDefault!==null&&(t=fl()),new Promise(function(r,i){if(n==="fa"){var o=nN(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&ub[t]&&ub[t][e]){var s=ub[t][e];return r(Px(s))}bG(e,t),r(We(We({},yG),{},{icon:lt.showMissingIcons&&e?dl("missingIconAbstract")||{}:{}}))})}var dT=function(){},Nx=lt.measurePerformance&&qp&&qp.mark&&qp.measure?qp:{mark:dT,measure:dT},ah='FA "7.1.0"',_G=function(t){return Nx.mark("".concat(ah," ").concat(t," begins")),function(){return aN(t)}},aN=function(t){Nx.mark("".concat(ah," ").concat(t," ends")),Nx.measure("".concat(ah," ").concat(t),"".concat(ah," ").concat(t," begins"),"".concat(ah," ").concat(t," ends"))},Ew={begin:_G,end:aN},Cg=function(){};function hT(e){var t=e.getAttribute?e.getAttribute(Nu):null;return typeof t=="string"}function xG(e){var t=e.getAttribute?e.getAttribute(vw):null,n=e.getAttribute?e.getAttribute(yw):null;return t&&n}function wG(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(lt.replacementClass)}function SG(){if(lt.autoReplaceSvg===!0)return Eg.replace;var e=Eg[lt.autoReplaceSvg];return e||Eg.replace}function CG(e){return ln.createElementNS("http://www.w3.org/2000/svg",e)}function EG(e){return ln.createElement(e)}function oN(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?CG:EG:n;if(typeof e=="string")return ln.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(s){i.setAttribute(s,e.attributes[s])});var o=e.children||[];return o.forEach(function(s){i.appendChild(oN(s,{ceFn:r}))}),i}function AG(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var Eg={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(i){n.parentNode.insertBefore(oN(i),n)}),n.getAttribute(Nu)===null&&lt.keepOriginalSource){var r=ln.createComment(AG(n));n.parentNode.replaceChild(r,n)}else n.remove()},nest:function(t){var n=t[0],r=t[1];if(~_w(n).indexOf(lt.replacementClass))return Eg.replace(t);var i=new RegExp("".concat(lt.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){var o=r[0].attributes.class.split(" ").reduce(function(u,d){return d===lt.replacementClass||d.match(i)?u.toSvg.push(d):u.toNode.push(d),u},{toNode:[],toSvg:[]});r[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",o.toNode.join(" "))}var s=r.map(function(u){return Kh(u)}).join(`
`);n.setAttribute(Nu,""),n.innerHTML=s}};function mT(e){e()}function sN(e,t){var n=typeof t=="function"?t:Cg;if(e.length===0)n();else{var r=mT;lt.mutateApproach===jq&&(r=cl.requestAnimationFrame||mT),r(function(){var i=SG(),o=Ew.begin("mutate");e.map(i),o(),n()})}}var Aw=!1;function lN(){Aw=!0}function Lx(){Aw=!1}var Bg=null;function pT(e){if(JA&&lt.observeMutations){var t=e.treeCallback,n=t===void 0?Cg:t,r=e.nodeCallback,i=r===void 0?Cg:r,o=e.pseudoElementsCallback,s=o===void 0?Cg:o,u=e.observeMutationsRoot,d=u===void 0?ln:u;Bg=new JA(function(f){if(!Aw){var m=fl();wf(f).forEach(function(p){if(p.type==="childList"&&p.addedNodes.length>0&&!hT(p.addedNodes[0])&&(lt.searchPseudoElements&&s(p.target),n(p.target)),p.type==="attributes"&&p.target.parentNode&&lt.searchPseudoElements&&s([p.target],!0),p.type==="attributes"&&hT(p.target)&&~Dq.indexOf(p.attributeName))if(p.attributeName==="class"&&xG(p.target)){var b=Jv(_w(p.target)),_=b.prefix,w=b.iconName;p.target.setAttribute(vw,_||m),w&&p.target.setAttribute(yw,w)}else wG(p.target)&&i(p.target)})}}),rs&&Bg.observe(d,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function TG(){Bg&&Bg.disconnect()}function OG(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var o=i.split(":"),s=o[0],u=o.slice(1);return s&&u.length>0&&(r[s]=u.join(":").trim()),r},{})),n}function jG(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Jv(_w(e));return i.prefix||(i.prefix=fl()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Jq(i.prefix,e.innerText)||Sw(i.prefix,WR(e.innerText))),!i.iconName&&lt.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function MG(e){var t=wf(e.attributes).reduce(function(n,r){return n.name!=="class"&&n.name!=="style"&&(n[r.name]=r.value),n},{});return t}function PG(){return{iconName:null,prefix:null,transform:eo,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function gT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=jG(e),r=n.iconName,i=n.prefix,o=n.rest,s=MG(e),u=jx("parseNodeAttributes",{},e),d=t.styleParser?OG(e):[];return We({iconName:r,prefix:i,transform:eo,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:d,attributes:s}},u)}var RG=Sa.styles;function uN(e){var t=lt.autoReplaceSvg==="nest"?gT(e,{styleParser:!1}):gT(e);return~t.extra.classes.indexOf($R)?dl("generateLayersText",e,t):dl("generateSvgReplacementMutation",e,t)}function NG(){return[].concat(Aa(LR),Aa(DR))}function vT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!rs)return Promise.resolve();var n=ln.documentElement.classList,r=function(p){return n.add("".concat(nT,"-").concat(p))},i=function(p){return n.remove("".concat(nT,"-").concat(p))},o=lt.autoFetchSvg?NG():gR.concat(Object.keys(RG));o.includes("fa")||o.push("fa");var s=[".".concat($R,":not([").concat(Nu,"])")].concat(o.map(function(m){return".".concat(m,":not([").concat(Nu,"])")})).join(", ");if(s.length===0)return Promise.resolve();var u=[];try{u=wf(e.querySelectorAll(s))}catch{}if(u.length>0)r("pending"),i("complete");else return Promise.resolve();var d=Ew.begin("onTree"),f=u.reduce(function(m,p){try{var b=uN(p);b&&m.push(b)}catch(_){BR||_.name==="MissingIcon"&&console.error(_)}return m},[]);return new Promise(function(m,p){Promise.all(f).then(function(b){sN(b,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),d(),m()})}).catch(function(b){d(),p(b)})})}function LG(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;uN(e).then(function(n){n&&sN([n],t)})}function DG(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Mx(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Mx(i||{})),e(r,We(We({},n),{},{mask:i}))}}var kG=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.transform,i=r===void 0?eo:r,o=n.symbol,s=o===void 0?!1:o,u=n.mask,d=u===void 0?null:u,f=n.maskId,m=f===void 0?null:f,p=n.classes,b=p===void 0?[]:p,_=n.attributes,w=_===void 0?{}:_,x=n.styles,C=x===void 0?{}:x;if(t){var E=t.prefix,j=t.iconName,O=t.icon;return ey(We({type:"icon"},t),function(){return Lu("beforeDOMElementCreation",{iconDefinition:t,params:n}),Cw({icons:{main:Px(O),mask:d?Px(d.icon):{found:!1,width:null,height:null,icon:{}}},prefix:E,iconName:j,transform:We(We({},eo),i),symbol:s,maskId:m,extra:{attributes:w,styles:C,classes:b}})})}},IG={mixout:function(){return{icon:DG(kG)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=vT,n.nodeCallback=LG,n}}},provides:function(t){t.i2svg=function(n){var r=n.node,i=r===void 0?ln:r,o=n.callback,s=o===void 0?function(){}:o;return vT(i,s)},t.generateSvgReplacementMutation=function(n,r){var i=r.iconName,o=r.prefix,s=r.transform,u=r.symbol,d=r.mask,f=r.maskId,m=r.extra;return new Promise(function(p,b){Promise.all([Rx(i,o),d.iconName?Rx(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(_){var w=Zv(_,2),x=w[0],C=w[1];p([n,Cw({icons:{main:x,mask:C},prefix:o,iconName:i,transform:s,symbol:u,maskId:f,extra:m,watchable:!0})])}).catch(b)})},t.generateAbstractIcon=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.transform,u=n.styles,d=Xv(u);d.length>0&&(i.style=d);var f;return xw(s)&&(f=dl("generateAbstractTransformGrouping",{main:o,transform:s,containerWidth:o.width,iconWidth:o.width})),r.push(f||o.icon),{children:r,attributes:i}}}},UG={mixout:function(){return{layer:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.classes,o=i===void 0?[]:i;return ey({type:"layer"},function(){Lu("beforeDOMElementCreation",{assembler:n,params:r});var s=[];return n(function(u){Array.isArray(u)?u.map(function(d){s=s.concat(d.abstract)}):s=s.concat(u.abstract)}),[{tag:"span",attributes:{class:["".concat(lt.cssPrefix,"-layers")].concat(Aa(o)).join(" ")},children:s}]})}}}},zG={mixout:function(){return{counter:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};r.title;var i=r.classes,o=i===void 0?[]:i,s=r.attributes,u=s===void 0?{}:s,d=r.styles,f=d===void 0?{}:d;return ey({type:"counter",content:n},function(){return Lu("beforeDOMElementCreation",{content:n,params:r}),vG({content:n.toString(),extra:{attributes:u,styles:f,classes:["".concat(lt.cssPrefix,"-layers-counter")].concat(Aa(o))}})})}}}},BG={mixout:function(){return{text:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.transform,o=i===void 0?eo:i,s=r.classes,u=s===void 0?[]:s,d=r.attributes,f=d===void 0?{}:d,m=r.styles,p=m===void 0?{}:m;return ey({type:"text",content:n},function(){return Lu("beforeDOMElementCreation",{content:n,params:r}),fT({content:n,transform:We(We({},eo),o),extra:{attributes:f,styles:p,classes:["".concat(lt.cssPrefix,"-layers-text")].concat(Aa(u))}})})}}},provides:function(t){t.generateLayersText=function(n,r){var i=r.transform,o=r.extra,s=null,u=null;if(mR){var d=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();s=f.width/d,u=f.height/d}return Promise.resolve([n,fT({content:n.innerHTML,width:s,height:u,transform:i,extra:o,watchable:!0})])}}},cN=new RegExp('"',"ug"),yT=[1105920,1112319],bT=We(We(We(We({},{FontAwesome:{normal:"fas",400:"fas"}}),wH),Tq),PH),Dx=Object.keys(bT).reduce(function(e,t){return e[t.toLowerCase()]=bT[t],e},{}),FG=Object.keys(Dx).reduce(function(e,t){var n=Dx[t];return e[t]=n[900]||Aa(Object.entries(n))[0][1],e},{});function $G(e){var t=e.replace(cN,"");return WR(Aa(t)[0]||"")}function VG(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),r=n.replace(cN,""),i=r.codePointAt(0),o=i>=yT[0]&&i<=yT[1],s=r.length===2?r[0]===r[1]:!1;return o||s||t}function HG(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(Dx[n]||{})[i]||FG[n]}function _T(e,t){var n="".concat(Oq).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var o=wf(e.children),s=o.filter(function($){return $.getAttribute(Cx)===t})[0],u=cl.getComputedStyle(e,t),d=u.getPropertyValue("font-family"),f=d.match(Nq),m=u.getPropertyValue("font-weight"),p=u.getPropertyValue("content");if(s&&!f)return e.removeChild(s),r();if(f&&p!=="none"&&p!==""){var b=u.getPropertyValue("content"),_=HG(d,m),w=$G(b),x=f[0].startsWith("FontAwesome"),C=VG(u),E=Sw(_,w),j=E;if(x){var O=eG(w);O.iconName&&O.prefix&&(E=O.iconName,_=O.prefix)}if(E&&!C&&(!s||s.getAttribute(vw)!==_||s.getAttribute(yw)!==j)){e.setAttribute(n,j),s&&e.removeChild(s);var N=PG(),U=N.extra;U.attributes[Cx]=t,Rx(E,_).then(function($){var K=Cw(We(We({},N),{},{icons:{main:$,mask:rN()},prefix:_,iconName:j,extra:U,watchable:!0})),X=ln.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(X,e.firstChild):e.appendChild(X),X.outerHTML=K.map(function(oe){return Kh(oe)}).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function qG(e){return Promise.all([_T(e,"::before"),_T(e,"::after")])}function GG(e){return e.parentNode!==document.head&&!~Mq.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Cx)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var YG=function(t){return!!t&&zR.some(function(n){return t.includes(n)})},WG=function(t){if(!t)return[];var n=new Set,r=t.split(/,(?![^()]*\))/).map(function(d){return d.trim()});r=r.flatMap(function(d){return d.includes("(")?d:d.split(",").map(function(f){return f.trim()})});var i=Sg(r),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;if(YG(s)){var u=zR.reduce(function(d,f){return d.replace(f,"")},s);u!==""&&u!=="*"&&n.add(u)}}}catch(d){i.e(d)}finally{i.f()}return n};function xT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(rs){var n;if(t)n=e;else if(lt.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var r=new Set,i=Sg(document.styleSheets),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;try{var u=Sg(s.cssRules),d;try{for(u.s();!(d=u.n()).done;){var f=d.value,m=WG(f.selectorText),p=Sg(m),b;try{for(p.s();!(b=p.n()).done;){var _=b.value;r.add(_)}}catch(x){p.e(x)}finally{p.f()}}}catch(x){u.e(x)}finally{u.f()}}catch(x){lt.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(s.href," (").concat(x.message,`)
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(x){i.e(x)}finally{i.f()}if(!r.size)return;var w=Array.from(r).join(", ");try{n=e.querySelectorAll(w)}catch{}}return new Promise(function(x,C){var E=wf(n).filter(GG).map(qG),j=Ew.begin("searchPseudoElements");lN(),Promise.all(E).then(function(){j(),Lx(),x()}).catch(function(){j(),Lx(),C()})})}}var KG={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=xT,n}}},provides:function(t){t.pseudoElements2svg=function(n){var r=n.node,i=r===void 0?ln:r;lt.searchPseudoElements&&xT(i)}}},wT=!1,ZG={mixout:function(){return{dom:{unwatch:function(){lN(),wT=!0}}}},hooks:function(){return{bootstrap:function(){pT(jx("mutationObserverCallbacks",{}))},noAuto:function(){TG()},watch:function(n){var r=n.observeMutationsRoot;wT?Lx():pT(jx("mutationObserverCallbacks",{observeMutationsRoot:r}))}}}},ST=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(r,i){var o=i.toLowerCase().split("-"),s=o[0],u=o.slice(1).join("-");if(s&&u==="h")return r.flipX=!0,r;if(s&&u==="v")return r.flipY=!0,r;if(u=parseFloat(u),isNaN(u))return r;switch(s){case"grow":r.size=r.size+u;break;case"shrink":r.size=r.size-u;break;case"left":r.x=r.x-u;break;case"right":r.x=r.x+u;break;case"up":r.y=r.y-u;break;case"down":r.y=r.y+u;break;case"rotate":r.rotate=r.rotate+u;break}return r},n)},XG={mixout:function(){return{parse:{transform:function(n){return ST(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-transform");return i&&(n.transform=ST(i)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var r=n.main,i=n.transform,o=n.containerWidth,s=n.iconWidth,u={transform:"translate(".concat(o/2," 256)")},d="translate(".concat(i.x*32,", ").concat(i.y*32,") "),f="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),m="rotate(".concat(i.rotate," 0 0)"),p={transform:"".concat(d," ").concat(f," ").concat(m)},b={transform:"translate(".concat(s/2*-1," -256)")},_={outer:u,inner:p,path:b};return{tag:"g",attributes:We({},_.outer),children:[{tag:"g",attributes:We({},_.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:We(We({},r.icon.attributes),_.path)}]}]}}}},cb={x:0,y:0,width:"100%",height:"100%"};function CT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function QG(e){return e.tag==="g"?e.children:[e]}var JG={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-mask"),o=i?Jv(i.split(" ").map(function(s){return s.trim()})):rN();return o.prefix||(o.prefix=fl()),n.mask=o,n.maskId=r.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var r=n.children,i=n.attributes,o=n.main,s=n.mask,u=n.maskId,d=n.transform,f=o.width,m=o.icon,p=s.width,b=s.icon,_=Hq({transform:d,containerWidth:p,iconWidth:f}),w={tag:"rect",attributes:We(We({},cb),{},{fill:"white"})},x=m.children?{children:m.children.map(CT)}:{},C={tag:"g",attributes:We({},_.inner),children:[CT(We({tag:m.tag,attributes:We(We({},m.attributes),_.path)},x))]},E={tag:"g",attributes:We({},_.outer),children:[C]},j="mask-".concat(u||iT()),O="clip-".concat(u||iT()),N={tag:"mask",attributes:We(We({},cb),{},{id:j,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[w,E]},U={tag:"defs",children:[{tag:"clipPath",attributes:{id:O},children:QG(b)},N]};return r.push(U,{tag:"rect",attributes:We({fill:"currentColor","clip-path":"url(#".concat(O,")"),mask:"url(#".concat(j,")")},cb)}),{children:r,attributes:i}}}},eY={provides:function(t){var n=!1;cl.matchMedia&&(n=cl.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var r=[],i={fill:"currentColor"},o={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};r.push({tag:"path",attributes:We(We({},i),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var s=We(We({},o),{},{attributeName:"opacity"}),u={tag:"circle",attributes:We(We({},i),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||u.children.push({tag:"animate",attributes:We(We({},o),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:We(We({},s),{},{values:"1;0;1;1;0;1;"})}),r.push(u),r.push({tag:"path",attributes:We(We({},i),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:We(We({},s),{},{values:"1;0;0;0;0;1;"})}]}),n||r.push({tag:"path",attributes:We(We({},i),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:We(We({},s),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:r}}}},tY={hooks:function(){return{parseNodeAttributes:function(n,r){var i=r.getAttribute("data-fa-symbol"),o=i===null?!1:i===""?!0:i;return n.symbol=o,n}}}},nY=[Yq,IG,UG,zG,BG,KG,ZG,XG,JG,eY,tY];uG(nY,{mixoutsTo:Di});Di.noAuto;var Ch=Di.config;Di.library;Di.dom;var fN=Di.parse;Di.findIconDefinition;Di.toHtml;var rY=Di.icon;Di.layer;Di.text;Di.counter;function iY(e){return e=e-0,e===e}function dN(e){return iY(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}function aY(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Uc=new Map,oY=1e3;function sY(e){if(Uc.has(e))return Uc.get(e);const t={};let n=0;const r=e.length;for(;n<r;){const i=e.indexOf(";",n),o=i===-1?r:i,s=e.slice(n,o).trim();if(s){const u=s.indexOf(":");if(u>0){const d=s.slice(0,u).trim(),f=s.slice(u+1).trim();if(d&&f){const m=dN(d);t[m.startsWith("webkit")?aY(m):m]=f}}}n=o+1}if(Uc.size===oY){const i=Uc.keys().next().value;i&&Uc.delete(i)}return Uc.set(e,t),t}function hN(e,t,n={}){if(typeof t=="string")return t;const r=(t.children||[]).map(f=>hN(e,f)),i=t.attributes||{},o={};for(const[f,m]of Object.entries(i))switch(!0){case f==="class":{o.className=m;break}case f==="style":{o.style=sY(String(m));break}case f.startsWith("aria-"):case f.startsWith("data-"):{o[f.toLowerCase()]=m;break}default:o[dN(f)]=m}const{style:s,"aria-label":u,...d}=n;return s&&(o.style=o.style?{...o.style,...s}:s),u&&(o["aria-label"]=u,o["aria-hidden"]="false"),e(t.tag,{...d,...o},...r)}var lY=hN.bind(null,tf.createElement),ET=(e,t)=>{const n=A.useId();return e||(t?n:void 0)},uY=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},cY="searchPseudoElementsFullScan"in Ch?"7.0.0":"6.0.0",fY=Number.parseInt(cY)>=7,gh="fa",Uo={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},dY={left:"fa-pull-left",right:"fa-pull-right"},hY={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},mY={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},zo={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function pY(e){const t=Ch.cssPrefix||Ch.familyPrefix||gh;return t===gh?e:e.replace(new RegExp(`(?<=^|\\s)${gh}-`,"g"),`${t}-`)}function gY(e){const{beat:t,fade:n,beatFade:r,bounce:i,shake:o,spin:s,spinPulse:u,spinReverse:d,pulse:f,fixedWidth:m,inverse:p,border:b,flip:_,size:w,rotation:x,pull:C,swapOpacity:E,rotateBy:j,widthAuto:O,className:N}=e,U=[];return N&&U.push(...N.split(" ")),t&&U.push(Uo.beat),n&&U.push(Uo.fade),r&&U.push(Uo.beatFade),i&&U.push(Uo.bounce),o&&U.push(Uo.shake),s&&U.push(Uo.spin),d&&U.push(Uo.spinReverse),u&&U.push(Uo.spinPulse),f&&U.push(Uo.pulse),m&&U.push(zo.fixedWidth),p&&U.push(zo.inverse),b&&U.push(zo.border),_===!0&&U.push(zo.flip),(_==="horizontal"||_==="both")&&U.push(zo.flipHorizontal),(_==="vertical"||_==="both")&&U.push(zo.flipVertical),w!=null&&U.push(mY[w]),x!=null&&x!==0&&U.push(hY[x]),C!=null&&U.push(dY[C]),E&&U.push(zo.swapOpacity),fY?(j&&U.push(zo.rotateBy),O&&U.push(zo.widthAuto),(Ch.cssPrefix||Ch.familyPrefix||gh)===gh?U:U.map(pY)):U}var vY=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function AT(e){if(e)return vY(e)?e:fN.icon(e)}function yY(e){return Object.keys(e)}var TT=new uY("FontAwesomeIcon"),mN={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},bY=new Set(Object.keys(mN)),Ye=tf.forwardRef((e,t)=>{const n={...mN,...e},{icon:r,mask:i,symbol:o,title:s,titleId:u,maskId:d,transform:f}=n,m=ET(d,!!i),p=ET(u,!!s),b=AT(r);if(!b)return TT.error("Icon lookup is undefined",r),null;const _=gY(n),w=typeof f=="string"?fN.transform(f):f,x=AT(i),C=rY(b,{..._.length>0&&{classes:_},...w&&{transform:w},...x&&{mask:x},symbol:o,title:s,titleId:p,maskId:m});if(!C)return TT.error("Could not find icon",b),null;const{abstract:E}=C,j={ref:t};for(const O of yY(n))bY.has(O)||(j[O]=n[O]);return lY(E[0],j)});Ye.displayName="FontAwesomeIcon";function ty(){return typeof window<"u"}function Sf(e){return pN(e)?(e.nodeName||"").toLowerCase():"#document"}function Ei(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function is(e){var t;return(t=(pN(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function pN(e){return ty()?e instanceof Node||e instanceof Ei(e).Node:!1}function _r(e){return ty()?e instanceof Element||e instanceof Ei(e).Element:!1}function Oi(e){return ty()?e instanceof HTMLElement||e instanceof Ei(e).HTMLElement:!1}function kx(e){return!ty()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ei(e).ShadowRoot}const _Y=new Set(["inline","contents"]);function Zh(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ta(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!_Y.has(i)}const xY=new Set(["table","td","th"]);function wY(e){return xY.has(Sf(e))}const SY=[":popover-open",":modal"];function ny(e){return SY.some(t=>{try{return e.matches(t)}catch{return!1}})}const CY=["transform","translate","scale","rotate","perspective"],EY=["transform","translate","scale","rotate","perspective","filter"],AY=["paint","layout","strict","content"];function Tw(e){const t=Ow(),n=_r(e)?Ta(e):e;return CY.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)||EY.some(r=>(n.willChange||"").includes(r))||AY.some(r=>(n.contain||"").includes(r))}function TY(e){let t=hl(e);for(;Oi(t)&&!rf(t);){if(Tw(t))return t;if(ny(t))return null;t=hl(t)}return null}function Ow(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const OY=new Set(["html","body","#document"]);function rf(e){return OY.has(Sf(e))}function Ta(e){return Ei(e).getComputedStyle(e)}function ry(e){return _r(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function hl(e){if(Sf(e)==="html")return e;const t=e.assignedSlot||e.parentNode||kx(e)&&e.host||is(e);return kx(t)?t.host:t}function gN(e){const t=hl(e);return rf(t)?e.ownerDocument?e.ownerDocument.body:e.body:Oi(t)&&Zh(t)?t:gN(t)}function vN(e,t,n){var r;t===void 0&&(t=[]);const i=gN(e),o=i===((r=e.ownerDocument)==null?void 0:r.body),s=Ei(i);return o?(Ix(s),t.concat(s,s.visualViewport||[],Zh(i)?i:[],[])):t.concat(i,vN(i,[]))}function Ix(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const jY=["top","right","bottom","left"],OT=["start","end"],jT=jY.reduce((e,t)=>e.concat(t,t+"-"+OT[0],t+"-"+OT[1]),[]),Eh=Math.min,Kc=Math.max,Fg=Math.round,no=e=>({x:e,y:e}),MY={left:"right",right:"left",bottom:"top",top:"bottom"},PY={start:"end",end:"start"};function RY(e,t,n){return Kc(e,Eh(t,n))}function Xh(e,t){return typeof e=="function"?e(t):e}function ml(e){return e.split("-")[0]}function ro(e){return e.split("-")[1]}function NY(e){return e==="x"?"y":"x"}function jw(e){return e==="y"?"height":"width"}const LY=new Set(["top","bottom"]);function xu(e){return LY.has(ml(e))?"y":"x"}function Mw(e){return NY(xu(e))}function yN(e,t,n){n===void 0&&(n=!1);const r=ro(e),i=Mw(e),o=jw(i);let s=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Vg(s)),[s,Vg(s)]}function DY(e){const t=Vg(e);return[$g(e),t,$g(t)]}function $g(e){return e.replace(/start|end/g,t=>PY[t])}const MT=["left","right"],PT=["right","left"],kY=["top","bottom"],IY=["bottom","top"];function UY(e,t,n){switch(e){case"top":case"bottom":return n?t?PT:MT:t?MT:PT;case"left":case"right":return t?kY:IY;default:return[]}}function zY(e,t,n,r){const i=ro(e);let o=UY(ml(e),n==="start",r);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map($g)))),o}function Vg(e){return e.replace(/left|right|bottom|top/g,t=>MY[t])}function BY(e){return{top:0,right:0,bottom:0,left:0,...e}}function bN(e){return typeof e!="number"?BY(e):{top:e,right:e,bottom:e,left:e}}function Hg(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}}const FY="input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])";function $Y(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&kx(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Yp(e){return e?.ownerDocument||document}function VY(e){return Oi(e)&&e.matches(FY)}function Ah(e,t){const n=["mouse","pen"];return t||n.push("",void 0),n.includes(e)}var HY=typeof document<"u",qY=function(){},pl=HY?A.useLayoutEffect:qY;const GY={...G2};function il(e){const t=A.useRef(e);return pl(()=>{t.current=e}),t}const YY=GY.useInsertionEffect,WY=YY||(e=>e());function oh(e){const t=A.useRef(()=>{});return WY(()=>{t.current=e}),A.useCallback(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t.current==null?void 0:t.current(...r)},[])}function RT(e,t,n){let{reference:r,floating:i}=e;const o=xu(t),s=Mw(t),u=jw(s),d=ml(t),f=o==="y",m=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,b=r[u]/2-i[u]/2;let _;switch(d){case"top":_={x:m,y:r.y-i.height};break;case"bottom":_={x:m,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:p};break;case"left":_={x:r.x-i.width,y:p};break;default:_={x:r.x,y:r.y}}switch(ro(t)){case"start":_[s]-=b*(n&&f?-1:1);break;case"end":_[s]+=b*(n&&f?-1:1);break}return _}const KY=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,u=o.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(t));let f=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:m,y:p}=RT(f,r,d),b=r,_={},w=0;for(let x=0;x<u.length;x++){const{name:C,fn:E}=u[x],{x:j,y:O,data:N,reset:U}=await E({x:m,y:p,initialPlacement:r,placement:b,strategy:i,middlewareData:_,rects:f,platform:s,elements:{reference:e,floating:t}});m=j??m,p=O??p,_={..._,[C]:{..._[C],...N}},U&&w<=50&&(w++,typeof U=="object"&&(U.placement&&(b=U.placement),U.rects&&(f=U.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):U.rects),{x:m,y:p}=RT(f,b,d)),x=-1)}return{x:m,y:p,placement:b,strategy:i,middlewareData:_}};async function _N(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:o,rects:s,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:b=!1,padding:_=0}=Xh(t,e),w=bN(_),C=u[b?p==="floating"?"reference":"floating":p],E=Hg(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(C)))==null||n?C:C.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(u.floating)),boundary:f,rootBoundary:m,strategy:d})),j=p==="floating"?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u.floating)),N=await(o.isElement==null?void 0:o.isElement(O))?await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1}:{x:1,y:1},U=Hg(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:j,offsetParent:O,strategy:d}):j);return{top:(E.top-U.top+w.top)/N.y,bottom:(U.bottom-E.bottom+w.bottom)/N.y,left:(E.left-U.left+w.left)/N.x,right:(U.right-E.right+w.right)/N.x}}const ZY=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:u,middlewareData:d}=t,{element:f,padding:m=0}=Xh(e,t)||{};if(f==null)return{};const p=bN(m),b={x:n,y:r},_=Mw(i),w=jw(_),x=await s.getDimensions(f),C=_==="y",E=C?"top":"left",j=C?"bottom":"right",O=C?"clientHeight":"clientWidth",N=o.reference[w]+o.reference[_]-b[_]-o.floating[w],U=b[_]-o.reference[_],$=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f));let K=$?$[O]:0;(!K||!await(s.isElement==null?void 0:s.isElement($)))&&(K=u.floating[O]||o.floating[w]);const X=N/2-U/2,oe=K/2-x[w]/2-1,ee=Eh(p[E],oe),J=Eh(p[j],oe),ne=ee,he=K-x[w]-J,Q=K/2-x[w]/2+X,se=RY(ne,Q,he),Z=!d.arrow&&ro(i)!=null&&Q!==se&&o.reference[w]/2-(Q<ne?ee:J)-x[w]/2<0,I=Z?Q<ne?Q-ne:Q-he:0;return{[_]:b[_]+I,data:{[_]:se,centerOffset:Q-se-I,...Z&&{alignmentOffset:I}},reset:Z}}});function XY(e,t,n){return(e?[...n.filter(i=>ro(i)===e),...n.filter(i=>ro(i)!==e)]:n.filter(i=>ml(i)===i)).filter(i=>e?ro(i)===e||(t?$g(i)!==i:!1):!0)}const QY=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:o,middlewareData:s,placement:u,platform:d,elements:f}=t,{crossAxis:m=!1,alignment:p,allowedPlacements:b=jT,autoAlignment:_=!0,...w}=Xh(e,t),x=p!==void 0||b===jT?XY(p||null,_,b):b,C=await _N(t,w),E=((n=s.autoPlacement)==null?void 0:n.index)||0,j=x[E];if(j==null)return{};const O=yN(j,o,await(d.isRTL==null?void 0:d.isRTL(f.floating)));if(u!==j)return{reset:{placement:x[0]}};const N=[C[ml(j)],C[O[0]],C[O[1]]],U=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:j,overflows:N}],$=x[E+1];if($)return{data:{index:E+1,overflows:U},reset:{placement:$}};const K=U.map(ee=>{const J=ro(ee.placement);return[ee.placement,J&&m?ee.overflows.slice(0,2).reduce((ne,he)=>ne+he,0):ee.overflows[0],ee.overflows]}).sort((ee,J)=>ee[1]-J[1]),oe=((i=K.filter(ee=>ee[2].slice(0,ro(ee[0])?2:3).every(J=>J<=0))[0])==null?void 0:i[0])||K[0][0];return oe!==u?{data:{index:E+1,overflows:U},reset:{placement:oe}}:{}}}},JY=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:p=!0,fallbackPlacements:b,fallbackStrategy:_="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:x=!0,...C}=Xh(e,t);if((n=o.arrow)!=null&&n.alignmentOffset)return{};const E=ml(i),j=xu(u),O=ml(u)===u,N=await(d.isRTL==null?void 0:d.isRTL(f.floating)),U=b||(O||!x?[Vg(u)]:DY(u)),$=w!=="none";!b&&$&&U.push(...zY(u,x,w,N));const K=[u,...U],X=await _N(t,C),oe=[];let ee=((r=o.flip)==null?void 0:r.overflows)||[];if(m&&oe.push(X[E]),p){const Q=yN(i,s,N);oe.push(X[Q[0]],X[Q[1]])}if(ee=[...ee,{placement:i,overflows:oe}],!oe.every(Q=>Q<=0)){var J,ne;const Q=(((J=o.flip)==null?void 0:J.index)||0)+1,se=K[Q];if(se&&(!(p==="alignment"?j!==xu(se):!1)||ee.every(k=>xu(k.placement)===j?k.overflows[0]>0:!0)))return{data:{index:Q,overflows:ee},reset:{placement:se}};let Z=(ne=ee.filter(I=>I.overflows[0]<=0).sort((I,k)=>I.overflows[1]-k.overflows[1])[0])==null?void 0:ne.placement;if(!Z)switch(_){case"bestFit":{var he;const I=(he=ee.filter(k=>{if($){const z=xu(k.placement);return z===j||z==="y"}return!0}).map(k=>[k.placement,k.overflows.filter(z=>z>0).reduce((z,F)=>z+F,0)]).sort((k,z)=>k[1]-z[1])[0])==null?void 0:he[0];I&&(Z=I);break}case"initialPlacement":Z=u;break}if(i!==Z)return{reset:{placement:Z}}}return{}}}},eW=new Set(["left","top"]);async function tW(e,t){const{placement:n,platform:r,elements:i}=e,o=await(r.isRTL==null?void 0:r.isRTL(i.floating)),s=ml(n),u=ro(n),d=xu(n)==="y",f=eW.has(s)?-1:1,m=o&&d?-1:1,p=Xh(t,e);let{mainAxis:b,crossAxis:_,alignmentAxis:w}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return u&&typeof w=="number"&&(_=u==="end"?w*-1:w),d?{x:_*m,y:b*f}:{x:b*f,y:_*m}}const nW=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:i,y:o,placement:s,middlewareData:u}=t,d=await tW(t,e);return s===((n=u.offset)==null?void 0:n.placement)&&(r=u.arrow)!=null&&r.alignmentOffset?{}:{x:i+d.x,y:o+d.y,data:{...d,placement:s}}}}};function xN(e){const t=Ta(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=Oi(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,u=Fg(n)!==o||Fg(r)!==s;return u&&(n=o,r=s),{width:n,height:r,$:u}}function wN(e){return _r(e)?e:e.contextElement}function Zc(e){const t=wN(e);if(!Oi(t))return no(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=xN(t);let s=(o?Fg(n.width):n.width)/r,u=(o?Fg(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!u||!Number.isFinite(u))&&(u=1),{x:s,y:u}}const rW=no(0);function SN(e){const t=Ei(e);return!Ow()||!t.visualViewport?rW:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function iW(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ei(e)?!1:t}function Th(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),o=wN(e);let s=no(1);t&&(r?_r(r)&&(s=Zc(r)):s=Zc(e));const u=iW(o,n,r)?SN(o):no(0);let d=(i.left+u.x)/s.x,f=(i.top+u.y)/s.y,m=i.width/s.x,p=i.height/s.y;if(o){const b=Ei(o),_=r&&_r(r)?Ei(r):r;let w=b,x=Ix(w);for(;x&&r&&_!==w;){const C=Zc(x),E=x.getBoundingClientRect(),j=Ta(x),O=E.left+(x.clientLeft+parseFloat(j.paddingLeft))*C.x,N=E.top+(x.clientTop+parseFloat(j.paddingTop))*C.y;d*=C.x,f*=C.y,m*=C.x,p*=C.y,d+=O,f+=N,w=Ei(x),x=Ix(w)}}return Hg({width:m,height:p,x:d,y:f})}function iy(e,t){const n=ry(e).scrollLeft;return t?t.left+n:Th(is(e)).left+n}function CN(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-iy(e,n),i=n.top+t.scrollTop;return{x:r,y:i}}function aW(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o=i==="fixed",s=is(r),u=t?ny(t.floating):!1;if(r===s||u&&o)return n;let d={scrollLeft:0,scrollTop:0},f=no(1);const m=no(0),p=Oi(r);if((p||!p&&!o)&&((Sf(r)!=="body"||Zh(s))&&(d=ry(r)),Oi(r))){const _=Th(r);f=Zc(r),m.x=_.x+r.clientLeft,m.y=_.y+r.clientTop}const b=s&&!p&&!o?CN(s,d):no(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+b.x,y:n.y*f.y-d.scrollTop*f.y+m.y+b.y}}function oW(e){return Array.from(e.getClientRects())}function sW(e){const t=is(e),n=ry(e),r=e.ownerDocument.body,i=Kc(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=Kc(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+iy(e);const u=-n.scrollTop;return Ta(r).direction==="rtl"&&(s+=Kc(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:u}}const NT=25;function lW(e,t){const n=Ei(e),r=is(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,u=0,d=0;if(i){o=i.width,s=i.height;const m=Ow();(!m||m&&t==="fixed")&&(u=i.offsetLeft,d=i.offsetTop)}const f=iy(r);if(f<=0){const m=r.ownerDocument,p=m.body,b=getComputedStyle(p),_=m.compatMode==="CSS1Compat"&&parseFloat(b.marginLeft)+parseFloat(b.marginRight)||0,w=Math.abs(r.clientWidth-p.clientWidth-_);w<=NT&&(o-=w)}else f<=NT&&(o+=f);return{width:o,height:s,x:u,y:d}}const uW=new Set(["absolute","fixed"]);function cW(e,t){const n=Th(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=Oi(e)?Zc(e):no(1),s=e.clientWidth*o.x,u=e.clientHeight*o.y,d=i*o.x,f=r*o.y;return{width:s,height:u,x:d,y:f}}function LT(e,t,n){let r;if(t==="viewport")r=lW(e,n);else if(t==="document")r=sW(is(e));else if(_r(t))r=cW(t,n);else{const i=SN(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return Hg(r)}function EN(e,t){const n=hl(e);return n===t||!_r(n)||rf(n)?!1:Ta(n).position==="fixed"||EN(n,t)}function fW(e,t){const n=t.get(e);if(n)return n;let r=vN(e,[]).filter(u=>_r(u)&&Sf(u)!=="body"),i=null;const o=Ta(e).position==="fixed";let s=o?hl(e):e;for(;_r(s)&&!rf(s);){const u=Ta(s),d=Tw(s);!d&&u.position==="fixed"&&(i=null),(o?!d&&!i:!d&&u.position==="static"&&!!i&&uW.has(i.position)||Zh(s)&&!d&&EN(e,s))?r=r.filter(m=>m!==s):i=u,s=hl(s)}return t.set(e,r),r}function dW(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const s=[...n==="clippingAncestors"?ny(t)?[]:fW(t,this._c):[].concat(n),r],u=s[0],d=s.reduce((f,m)=>{const p=LT(t,m,i);return f.top=Kc(p.top,f.top),f.right=Eh(p.right,f.right),f.bottom=Eh(p.bottom,f.bottom),f.left=Kc(p.left,f.left),f},LT(t,u,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function hW(e){const{width:t,height:n}=xN(e);return{width:t,height:n}}function mW(e,t,n){const r=Oi(t),i=is(t),o=n==="fixed",s=Th(e,!0,o,t);let u={scrollLeft:0,scrollTop:0};const d=no(0);function f(){d.x=iy(i)}if(r||!r&&!o)if((Sf(t)!=="body"||Zh(i))&&(u=ry(t)),r){const _=Th(t,!0,o,t);d.x=_.x+t.clientLeft,d.y=_.y+t.clientTop}else i&&f();o&&!r&&i&&f();const m=i&&!r&&!o?CN(i,u):no(0),p=s.left+u.scrollLeft-d.x-m.x,b=s.top+u.scrollTop-d.y-m.y;return{x:p,y:b,width:s.width,height:s.height}}function fb(e){return Ta(e).position==="static"}function DT(e,t){if(!Oi(e)||Ta(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return is(e)===n&&(n=n.ownerDocument.body),n}function AN(e,t){const n=Ei(e);if(ny(e))return n;if(!Oi(e)){let i=hl(e);for(;i&&!rf(i);){if(_r(i)&&!fb(i))return i;i=hl(i)}return n}let r=DT(e,t);for(;r&&wY(r)&&fb(r);)r=DT(r,t);return r&&rf(r)&&fb(r)&&!Tw(r)?n:r||TY(e)||n}const pW=async function(e){const t=this.getOffsetParent||AN,n=this.getDimensions,r=await n(e.floating);return{reference:mW(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function gW(e){return Ta(e).direction==="rtl"}const vW={convertOffsetParentRelativeRectToViewportRelativeRect:aW,getDocumentElement:is,getClippingRect:dW,getOffsetParent:AN,getElementRects:pW,getClientRects:oW,getDimensions:hW,getScale:Zc,isElement:_r,isRTL:gW},yW=nW,bW=QY,_W=JY,kT=ZY,xW=(e,t,n)=>{const r=new Map,i={platform:vW,...n},o={...i.platform,_c:r};return KY(e,t,{...i,platform:o})};var wW=typeof document<"u",SW=function(){},Ag=wW?A.useLayoutEffect:SW;function qg(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(!qg(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 o=i[r];if(!(o==="_owner"&&e.$$typeof)&&!qg(e[o],t[o]))return!1}return!0}return e!==e&&t!==t}function TN(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function IT(e,t){const n=TN(e);return Math.round(t*n)/n}function db(e){const t=A.useRef(e);return Ag(()=>{t.current=e}),t}function CW(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:o,floating:s}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[m,p]=A.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[b,_]=A.useState(r);qg(b,r)||_(r);const[w,x]=A.useState(null),[C,E]=A.useState(null),j=A.useCallback(k=>{k!==$.current&&($.current=k,x(k))},[]),O=A.useCallback(k=>{k!==K.current&&(K.current=k,E(k))},[]),N=o||w,U=s||C,$=A.useRef(null),K=A.useRef(null),X=A.useRef(m),oe=d!=null,ee=db(d),J=db(i),ne=db(f),he=A.useCallback(()=>{if(!$.current||!K.current)return;const k={placement:t,strategy:n,middleware:b};J.current&&(k.platform=J.current),xW($.current,K.current,k).then(z=>{const F={...z,isPositioned:ne.current!==!1};Q.current&&!qg(X.current,F)&&(X.current=F,qh.flushSync(()=>{p(F)}))})},[b,t,n,J,ne]);Ag(()=>{f===!1&&X.current.isPositioned&&(X.current.isPositioned=!1,p(k=>({...k,isPositioned:!1})))},[f]);const Q=A.useRef(!1);Ag(()=>(Q.current=!0,()=>{Q.current=!1}),[]),Ag(()=>{if(N&&($.current=N),U&&(K.current=U),N&&U){if(ee.current)return ee.current(N,U,he);he()}},[N,U,he,ee,oe]);const se=A.useMemo(()=>({reference:$,floating:K,setReference:j,setFloating:O}),[j,O]),Z=A.useMemo(()=>({reference:N,floating:U}),[N,U]),I=A.useMemo(()=>{const k={position:n,left:0,top:0};if(!Z.floating)return k;const z=IT(Z.floating,m.x),F=IT(Z.floating,m.y);return u?{...k,transform:"translate("+z+"px, "+F+"px)",...TN(Z.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:z,top:F}},[n,u,Z.floating,m.x,m.y]);return A.useMemo(()=>({...m,update:he,refs:se,elements:Z,floatingStyles:I}),[m,he,se,Z,I])}const EW=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?kT({element:r.current,padding:i}).fn(n):{}:r?kT({element:r,padding:i}).fn(n):{}}}},AW=(e,t)=>({...yW(e),options:[e,t]}),TW=(e,t)=>({..._W(e),options:[e,t]}),OW=(e,t)=>({...bW(e),options:[e,t]}),jW=(e,t)=>({...EW(e),options:[e,t]}),MW="data-floating-ui-focusable",UT="active",zT="selected",PW={...G2};let BT=!1,RW=0;const FT=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+RW++;function NW(){const[e,t]=A.useState(()=>BT?FT():void 0);return pl(()=>{e==null&&t(FT())},[]),A.useEffect(()=>{BT=!0},[]),e}const LW=PW.useId,DW=LW||NW;function kW(){const e=new Map;return{emit(t,n){var r;(r=e.get(t))==null||r.forEach(i=>i(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var r;(r=e.get(t))==null||r.delete(n)}}}const IW=A.createContext(null),UW=A.createContext(null),ON=()=>{var e;return((e=A.useContext(IW))==null?void 0:e.id)||null},jN=()=>A.useContext(UW);function zW(e){return"data-floating-ui-"+e}function va(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const $T=zW("safe-polygon");function hb(e,t,n){if(n&&!Ah(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r?.[t]}return e?.[t]}function mb(e){return typeof e=="function"?e():e}function BW(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:o,elements:s}=e,{enabled:u=!0,delay:d=0,handleClose:f=null,mouseOnly:m=!1,restMs:p=0,move:b=!0}=t,_=jN(),w=ON(),x=il(f),C=il(d),E=il(n),j=il(p),O=A.useRef(),N=A.useRef(-1),U=A.useRef(),$=A.useRef(-1),K=A.useRef(!0),X=A.useRef(!1),oe=A.useRef(()=>{}),ee=A.useRef(!1),J=oh(()=>{var I;const k=(I=i.current.openEvent)==null?void 0:I.type;return k?.includes("mouse")&&k!=="mousedown"});A.useEffect(()=>{if(!u)return;function I(k){let{open:z}=k;z||(va(N),va($),K.current=!0,ee.current=!1)}return o.on("openchange",I),()=>{o.off("openchange",I)}},[u,o]),A.useEffect(()=>{if(!u||!x.current||!n)return;function I(z){J()&&r(!1,z,"hover")}const k=Yp(s.floating).documentElement;return k.addEventListener("mouseleave",I),()=>{k.removeEventListener("mouseleave",I)}},[s.floating,n,r,u,x,J]);const ne=A.useCallback(function(I,k,z){k===void 0&&(k=!0),z===void 0&&(z="hover");const F=hb(C.current,"close",O.current);F&&!U.current?(va(N),N.current=window.setTimeout(()=>r(!1,I,z),F)):k&&(va(N),r(!1,I,z))},[C,r]),he=oh(()=>{oe.current(),U.current=void 0}),Q=oh(()=>{if(X.current){const I=Yp(s.floating).body;I.style.pointerEvents="",I.removeAttribute($T),X.current=!1}}),se=oh(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);A.useEffect(()=>{if(!u)return;function I(G){if(va(N),K.current=!1,m&&!Ah(O.current)||mb(j.current)>0&&!hb(C.current,"open"))return;const Y=hb(C.current,"open",O.current);Y?N.current=window.setTimeout(()=>{E.current||r(!0,G,"hover")},Y):n||r(!0,G,"hover")}function k(G){if(se()){Q();return}oe.current();const Y=Yp(s.floating);if(va($),ee.current=!1,x.current&&i.current.floatingContext){n||va(N),U.current=x.current({...i.current.floatingContext,tree:_,x:G.clientX,y:G.clientY,onClose(){Q(),he(),se()||ne(G,!0,"safe-polygon")}});const ue=U.current;Y.addEventListener("mousemove",ue),oe.current=()=>{Y.removeEventListener("mousemove",ue)};return}(O.current==="touch"?!$Y(s.floating,G.relatedTarget):!0)&&ne(G)}function z(G){se()||i.current.floatingContext&&(x.current==null||x.current({...i.current.floatingContext,tree:_,x:G.clientX,y:G.clientY,onClose(){Q(),he(),se()||ne(G)}})(G))}function F(){va(N)}function P(G){se()||ne(G,!1)}if(_r(s.domReference)){const G=s.domReference,Y=s.floating;return n&&G.addEventListener("mouseleave",z),b&&G.addEventListener("mousemove",I,{once:!0}),G.addEventListener("mouseenter",I),G.addEventListener("mouseleave",k),Y&&(Y.addEventListener("mouseleave",z),Y.addEventListener("mouseenter",F),Y.addEventListener("mouseleave",P)),()=>{n&&G.removeEventListener("mouseleave",z),b&&G.removeEventListener("mousemove",I),G.removeEventListener("mouseenter",I),G.removeEventListener("mouseleave",k),Y&&(Y.removeEventListener("mouseleave",z),Y.removeEventListener("mouseenter",F),Y.removeEventListener("mouseleave",P))}}},[s,u,e,m,b,ne,he,Q,r,n,E,_,C,x,i,se,j]),pl(()=>{var I;if(u&&n&&(I=x.current)!=null&&(I=I.__options)!=null&&I.blockPointerEvents&&J()){X.current=!0;const z=s.floating;if(_r(s.domReference)&&z){var k;const F=Yp(s.floating).body;F.setAttribute($T,"");const P=s.domReference,G=_==null||(k=_.nodesRef.current.find(Y=>Y.id===w))==null||(k=k.context)==null?void 0:k.elements.floating;return G&&(G.style.pointerEvents=""),F.style.pointerEvents="none",P.style.pointerEvents="auto",z.style.pointerEvents="auto",()=>{F.style.pointerEvents="",P.style.pointerEvents="",z.style.pointerEvents=""}}}},[u,n,w,s,_,x,J]),pl(()=>{n||(O.current=void 0,ee.current=!1,he(),Q())},[n,he,Q]),A.useEffect(()=>()=>{he(),va(N),va($),Q()},[u,s.domReference,he,Q]);const Z=A.useMemo(()=>{function I(k){O.current=k.pointerType}return{onPointerDown:I,onPointerEnter:I,onMouseMove(k){const{nativeEvent:z}=k;function F(){!K.current&&!E.current&&r(!0,z,"hover")}m&&!Ah(O.current)||n||mb(j.current)===0||ee.current&&k.movementX**2+k.movementY**2<2||(va($),O.current==="touch"?F():(ee.current=!0,$.current=window.setTimeout(F,mb(j.current))))}}},[m,r,n,E,j]);return A.useMemo(()=>u?{reference:Z}:{},[u,Z])}function VT(e){return Oi(e.target)&&e.target.tagName==="BUTTON"}function FW(e){return Oi(e.target)&&e.target.tagName==="A"}function HT(e){return VY(e)}function $W(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,elements:{domReference:o}}=e,{enabled:s=!0,event:u="click",toggle:d=!0,ignoreMouse:f=!1,keyboardHandlers:m=!0,stickIfOpen:p=!0}=t,b=A.useRef(),_=A.useRef(!1),w=A.useMemo(()=>({onPointerDown(x){b.current=x.pointerType},onMouseDown(x){const C=b.current;x.button===0&&u!=="click"&&(Ah(C,!0)&&f||(n&&d&&(!(i.current.openEvent&&p)||i.current.openEvent.type==="mousedown")?r(!1,x.nativeEvent,"click"):(x.preventDefault(),r(!0,x.nativeEvent,"click"))))},onClick(x){const C=b.current;if(u==="mousedown"&&b.current){b.current=void 0;return}Ah(C,!0)&&f||(n&&d&&(!(i.current.openEvent&&p)||i.current.openEvent.type==="click")?r(!1,x.nativeEvent,"click"):r(!0,x.nativeEvent,"click"))},onKeyDown(x){b.current=void 0,!(x.defaultPrevented||!m||VT(x))&&(x.key===" "&&!HT(o)&&(x.preventDefault(),_.current=!0),!FW(x)&&x.key==="Enter"&&r(!(n&&d),x.nativeEvent,"click"))},onKeyUp(x){x.defaultPrevented||!m||VT(x)||HT(o)||x.key===" "&&_.current&&(_.current=!1,r(!(n&&d),x.nativeEvent,"click"))}}),[i,o,u,f,m,r,n,p,d]);return A.useMemo(()=>s?{reference:w}:{},[s,w])}function VW(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=DW(),o=A.useRef({}),[s]=A.useState(()=>kW()),u=ON()!=null,[d,f]=A.useState(r.reference),m=oh((_,w,x)=>{o.current.openEvent=_?w:void 0,s.emit("openchange",{open:_,event:w,reason:x,nested:u}),n?.(_,w,x)}),p=A.useMemo(()=>({setPositionReference:f}),[]),b=A.useMemo(()=>({reference:d||r.reference||null,floating:r.floating||null,domReference:r.reference}),[d,r.reference,r.floating]);return A.useMemo(()=>({dataRef:o,open:t,onOpenChange:m,elements:b,events:s,floatingId:i,refs:p}),[t,m,b,s,i,p])}function MN(e){e===void 0&&(e={});const{nodeId:t}=e,n=VW({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[o,s]=A.useState(null),[u,d]=A.useState(null),m=i?.domReference||o,p=A.useRef(null),b=jN();pl(()=>{m&&(p.current=m)},[m]);const _=CW({...e,elements:{...i,...u&&{reference:u}}}),w=A.useCallback(O=>{const N=_r(O)?{getBoundingClientRect:()=>O.getBoundingClientRect(),getClientRects:()=>O.getClientRects(),contextElement:O}:O;d(N),_.refs.setReference(N)},[_.refs]),x=A.useCallback(O=>{(_r(O)||O===null)&&(p.current=O,s(O)),(_r(_.refs.reference.current)||_.refs.reference.current===null||O!==null&&!_r(O))&&_.refs.setReference(O)},[_.refs]),C=A.useMemo(()=>({..._.refs,setReference:x,setPositionReference:w,domReference:p}),[_.refs,x,w]),E=A.useMemo(()=>({..._.elements,domReference:m}),[_.elements,m]),j=A.useMemo(()=>({..._,...r,refs:C,elements:E,nodeId:t}),[_,C,E,t,r]);return pl(()=>{r.dataRef.current.floatingContext=j;const O=b?.nodesRef.current.find(N=>N.id===t);O&&(O.context=j)}),A.useMemo(()=>({..._,context:j,refs:C,elements:E}),[_,C,E,j])}function pb(e,t,n){const r=new Map,i=n==="item";let o=e;if(i&&e){const{[UT]:s,[zT]:u,...d}=e;o=d}return{...n==="floating"&&{tabIndex:-1,[MW]:""},...o,...t.map(s=>{const u=s?s[n]:null;return typeof u=="function"?e?u(e):null:u}).concat(e).reduce((s,u)=>(u&&Object.entries(u).forEach(d=>{let[f,m]=d;if(!(i&&[UT,zT].includes(f)))if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof m=="function"){var p;(p=r.get(f))==null||p.push(m),s[f]=function(){for(var b,_=arguments.length,w=new Array(_),x=0;x<_;x++)w[x]=arguments[x];return(b=r.get(f))==null?void 0:b.map(C=>C(...w)).find(C=>C!==void 0)}}}else s[f]=m}),s),{})}}function PN(e){e===void 0&&(e=[]);const t=e.map(u=>u?.reference),n=e.map(u=>u?.floating),r=e.map(u=>u?.item),i=A.useCallback(u=>pb(u,e,"reference"),t),o=A.useCallback(u=>pb(u,e,"floating"),n),s=A.useCallback(u=>pb(u,e,"item"),r);return A.useMemo(()=>({getReferenceProps:i,getFloatingProps:o,getItemProps:s}),[i,o,s])}const qT=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function zc(e,t){return typeof e=="function"?e(t):e}function HW(e,t){const[n,r]=A.useState(e);return e&&!n&&r(!0),A.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function qW(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,s=(typeof i=="number"?i:i.close)||0,[u,d]=A.useState("unmounted"),f=HW(n,s);return!f&&u==="close"&&d("unmounted"),pl(()=>{if(r){if(n){d("initial");const m=requestAnimationFrame(()=>{qh.flushSync(()=>{d("open")})});return()=>{cancelAnimationFrame(m)}}d("close")}},[n,r]),{isMounted:f,status:u}}function GW(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:o,duration:s=250}=t,u=e.placement,d=u.split("-")[0],f=A.useMemo(()=>({side:d,placement:u}),[d,u]),m=typeof s=="number",p=(m?s:s.open)||0,b=(m?s:s.close)||0,[_,w]=A.useState(()=>({...zc(o,f),...zc(n,f)})),{isMounted:x,status:C}=qW(e,{duration:s}),E=il(n),j=il(r),O=il(i),N=il(o);return pl(()=>{const U=zc(E.current,f),$=zc(O.current,f),K=zc(N.current,f),X=zc(j.current,f)||Object.keys(U).reduce((oe,ee)=>(oe[ee]="",oe),{});if(C==="initial"&&w(oe=>({transitionProperty:oe.transitionProperty,...K,...U})),C==="open"&&w({transitionProperty:Object.keys(X).map(qT).join(","),transitionDuration:p+"ms",...K,...X}),C==="close"){const oe=$||U;w({transitionProperty:Object.keys(oe).map(qT).join(","),transitionDuration:b+"ms",...K,...oe})}},[b,O,E,j,N,p,C,f]),{isMounted:x,styles:_}}/*!
* Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2025 Fonticons, Inc.
*/var RN={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M288 464L64 464c-8.8 0-16-7.2-16-16l0-224c0-8.8 7.2-16 16-16l48 0 0-48-48 0c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-48-48 0 0 48c0 8.8-7.2 16-16 16zM224 304c-8.8 0-16-7.2-16-16l0-224c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 224c0 8.8-7.2 16-16 16l-224 0zm-64-16c0 35.3 28.7 64 64 64l224 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L224 0c-35.3 0-64 28.7-64 64l0 224z"]},YW={prefix:"far",iconName:"image",icon:[448,512,[],"f03e","M64 80c-8.8 0-16 7.2-16 16l0 320c0 8.8 7.2 16 16 16l320 0c8.8 0 16-7.2 16-16l0-320c0-8.8-7.2-16-16-16L64 80zM0 96C0 60.7 28.7 32 64 32l320 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zm128 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64zm136 72c8.5 0 16.4 4.5 20.7 11.8l80 136c4.4 7.4 4.4 16.6 .1 24.1S352.6 384 344 384l-240 0c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l17.2 24.6 46.5-79c4.3-7.3 12.2-11.8 20.7-11.8z"]},WW={prefix:"far",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M464 256a208 208 0 1 0 -416 0 208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0 256 256 0 1 1 -512 0z"]},KW={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256a208 208 0 1 1 -416 0 208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zm387.3 11.3c6.2-6.2 6.2-16.4 0-22.6l-104-104c-4.6-4.6-11.5-5.9-17.4-3.5S256 145.5 256 152l0 72-104 0c-13.3 0-24 10.7-24 24l0 16c0 13.3 10.7 24 24 24l104 0 0 72c0 6.5 3.9 12.3 9.9 14.8s12.9 1.1 17.4-3.5l104-104z"]},ZW=KW;const XW=({children:e,summary:t,summaryClasses:n,...r})=>{const i=A.useRef(null),[o,s]=A.useState(!1);return A.useEffect(()=>{const u=i.current,d=()=>s(!!u?.open);return u?.addEventListener("toggle",d),()=>u?.removeEventListener("toggle",d)},[]),y.jsxs("details",{ref:i,...r,children:[y.jsx("summary",{className:Pe("focus-ring px-1 -mx-1 rounded-sm",n),children:t}),o&&y.jsx("div",{className:"mt-3 flex flex-col gap-y-3",children:e})]})},QW=A.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:Pe("px-4 py-3 rounded-t-md","bg-lm-primary dark:bg-dm-primary border-b border-lm-border dark:border-dm-border",e),...t,ref:n})),JW=A.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:Pe("p-4 bg-lm-primary dark:bg-dm-primary first:rounded-t-md","first:rounded-t-md last:rounded-b-md",e),...t,ref:n})),eK=A.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:Pe("px-4 py-3 rounded-b-md","bg-lm-primary dark:bg-dm-primary border-t border-lm-border dark:border-dm-border",e),...t,ref:n})),tK=A.forwardRef(({className:e,...t},n)=>y.jsx("div",{className:Pe("group/card rounded-md shadow-md","border border-lm-border dark:border-dm-border bg-lm-primary dark:bg-dm-primary",e),...t,ref:n})),un=Object.assign(tK,{Body:JW,Header:QW,Footer:eK}),Pt=A.forwardRef(({bodyClassName:e,children:t,...n},r)=>{const{title:i,titleSize:o="md",...s}="title"in n?n:{...n,title:void 0,titleSize:void 0};return y.jsxs(un,{...s,ref:r,children:[i&&y.jsxs(un.Header,{children:[o==="lg"&&y.jsx("h4",{children:i}),o==="md"&&y.jsx("h5",{children:i}),o==="sm"&&y.jsx("h6",{children:i})]}),y.jsx(un.Body,{className:e,children:t})]})});function nK({id:e,items:t,onSelectItem:n,onActiveItemChange:r,renderItem:i,className:o,noItemsMessage:s="No items",anchor:u,"aria-label":d="Items",...f}){const[m,p]=A.useState(0),b=A.useCallback(_=>{if(p(_),r){const[w,x]=[...t.entries()][_];r(w,x)}},[t,r]);return A.useEffect(()=>{const _=u?.current;if(!_)return;const w=x=>{["Enter","ArrowUp","ArrowDown"].includes(x.key)&&x.preventDefault(),x.key==="ArrowDown"?b(Math.min(m+1,t.size-1)):x.key==="ArrowUp"?b(Math.max(m-1,0)):x.key==="Enter"&&n([...t.values()][m])};return _.addEventListener("keydown",w),()=>_.removeEventListener("keydown",w)},[m,u,b,t,n]),y.jsxs(un,{id:e,className:Pe("py-1 flex flex-col",o),role:"listbox","aria-orientation":"vertical","aria-label":d,...f,children:[t.size===0&&y.jsx("i",{role:"option","aria-disabled":!0,"aria-selected":!1,"data-testid":"no-items",className:"px-2 py-1",children:s}),[...t.entries()].map(([_,w],x)=>y.jsx("button",{id:`${e}_${_}`,type:"button",role:"option","aria-selected":x===m,className:Pe("px-2 py-1 text-left truncate",{"bg-lm-secondary dark:bg-dm-secondary":x===m}),tabIndex:-1,onClick:()=>n(w),onMouseOver:()=>b(x),children:i(w)},_))]})}const Qh=A.createContext(void 0),Cf=A.createContext({responsive:!0,size:"md"}),rK=({children:e,className:t})=>{const{responsive:n}=A.useContext(Cf);return y.jsx(Qh.Provider,{value:{section:"head"},children:y.jsx("thead",{className:Pe({"hidden lg:table-header-group":n},t),children:e})})},iK=({children:e,className:t})=>{const{responsive:n}=A.useContext(Cf);return y.jsx(Qh.Provider,{value:{section:"body"},children:y.jsx("tbody",{className:Pe({"lg:table-row-group flex flex-col gap-y-3":n},t),children:e})})},aK=({children:e,className:t})=>{const{responsive:n}=A.useContext(Cf);return y.jsx(Qh.Provider,{value:{section:"footer"},children:y.jsx("tfoot",{className:Pe({"lg:table-row-group flex flex-col gap-y-3 mt-4":n},t),children:e})})},oK=({children:e,className:t,...n})=>{const r=A.useContext(Qh)?.section==="body",{responsive:i}=A.useContext(Cf);return y.jsx("tr",{className:Pe("group",{"lg:table-row flex flex-col":i,"lg:border-0 border-y-2 border-lm-border dark:border-dm-border":i,"hover:bg-lm-primary dark:hover:bg-dm-primary":r,"group-[&]/card:hover:bg-lm-secondary dark:group-[&]/card:hover:bg-dm-secondary":r},t),...n,children:e})},sK=({children:e,className:t,columnName:n,type:r,...i})=>{const o=A.useContext(Qh),s=r??(o?.section!=="body"?"th":"td"),{responsive:u,size:d}=A.useContext(Cf);return y.jsx(s,{"data-column":u?n:void 0,className:Pe("border-lm-border dark:border-dm-border",{"p-1":d==="sm","p-2":d==="md","p-3":d==="lg","border-b-1":!u,"block lg:table-cell not-last:border-b-1 lg:border-b-1":u,"text-left":s==="th","before:lg:hidden before:content-[attr(data-column)] before:font-bold before:mr-1":u&&s==="td"},t),...i,children:e})},lK=({header:e,footer:t,children:n,responsive:r=!0,size:i="md",...o})=>y.jsx(Cf.Provider,{value:{responsive:r,size:i},children:y.jsxs("table",{className:"w-full",...o,children:[y.jsx(rK,{children:e}),y.jsx(iK,{children:n}),t&&y.jsx(aK,{children:t})]})}),Ke=Object.assign(lK,{Row:oK,Cell:sK}),Rt=A.forwardRef(({className:e,disabled:t,variant:n="primary",size:r="md",inline:i=!1,solid:o=!1,type:s="button",...u},d)=>{const f="to"in u&&typeof u.to=="string",m=f?Rr:"button",p=f?void 0:s;return y.jsx(m,{ref:d,className:Pe({"inline-flex":i,flex:!i},"gap-2 items-center justify-center","border rounded-md no-underline","transition-colors",{"focus-ring":n==="primary","focus-ring-secondary":n==="secondary","focus-ring-danger":n==="danger"},{"px-1.5 py-1 text-sm":r==="sm","px-3 py-1.5":r==="md","px-4 py-2 text-lg":r==="lg"},{"border-lm-brand dark:border-dm-brand":n==="primary","text-lm-brand dark:text-dm-brand":n==="primary"&&!o,"border-zinc-500":n==="secondary","text-zinc-500":n==="secondary"&&!o,"border-danger":n==="danger","text-danger":n==="danger"&&!o},o&&{"text-white":!0,"bg-lm-brand dark:bg-dm-brand":n==="primary","highlight:bg-lm-brand-dark dark:highlight:bg-dm-brand-dark":n==="primary","highlight:border-lm-brand-dark dark:highlight:border-dm-brand-dark":n==="primary","bg-zinc-500":n==="secondary","highlight:bg-zinc-600 highlight:border-zinc-600":n==="secondary","bg-danger":n==="danger","highlight:bg-danger-dark highlight:border-danger-dark":n==="danger"},!t&&{"highlight:text-white":!o,"highlight:bg-lm-brand dark:highlight:bg-dm-brand":n==="primary","highlight:bg-zinc-500":n==="secondary","highlight:bg-danger":n==="danger"},{"cursor-pointer":!t,"pointer-events-none opacity-65":t},e),disabled:f?void 0:t,"aria-disabled":f?t:void 0,type:p,...u})}),NN=A.forwardRef(({className:e,onChange:t,...n},r)=>{const i=A.useCallback(o=>t?.(o.target.checked,o),[t]);return y.jsx("input",{ref:r,type:"checkbox",className:Pe("appearance-none focus-ring cursor-[inherit]","border-1 border-lm-input-border dark:border-dm-input-border","bg-lm-primary dark:bg-dm-primary checked:bg-lm-brand dark:checked:bg-dm-brand bg-no-repeat","group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input",e),onChange:i,...n})}),Pw=A.forwardRef(({className:e,...t},n)=>y.jsx(NN,{ref:n,className:Pe("rounded-sm w-4 h-4 checked:bg-(image:--tick) bg-center",e),...t})),Du=A.forwardRef(({onClick:e,className:t,label:n="Close",size:r="lg",solid:i},o)=>y.jsx("button",{ref:o,type:"button",onClick:e,className:Pe("rounded-md focus-ring cursor-pointer",{"opacity-50 highlight:opacity-80 transition-opacity":!i},t),"aria-label":n,children:y.jsx(Ye,{icon:dw,size:r==="lg"?"xl":r==="md"?"lg":void 0})})),ai=A.forwardRef(({borderless:e=!1,size:t="md",feedback:n,variant:r="default",className:i,disabled:o,...s},u)=>y.jsx("input",{ref:u,className:Pe("outline-none",r==="default"&&["w-full",{"focus-ring":!n,"focus-ring-danger":n==="error","px-2 py-1 text-sm":t==="sm","px-3 py-1.5":t==="md","px-4 py-2 text-xl":t==="lg","rounded-md border":!e,"border-lm-input-border dark:border-dm-input-border":!e&&!n,"border-danger":!e&&n==="error","bg-lm-disabled-input dark:bg-dm-disabled-input":o,"bg-lm-primary dark:bg-dm-primary":!o,"group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!o}],i),disabled:o,...s})),Ma=({required:e,children:t,className:n,...r})=>y.jsxs("label",{className:Pe("cursor-pointer",n),...r,children:[t,e&&y.jsx("span",{className:"text-danger ml-1","data-testid":"required-indicator",children:"*"})]}),Rw=({children:e,helpText:t,error:n,"data-testid":r})=>y.jsxs("div",{className:"flex flex-col gap-1","data-testid":r,children:[e,t&&y.jsx("small",{"data-testid":r?`${r}-help-text`:"help-text",className:"text-gray-500 dark:text-gray-400",children:t}),n&&y.jsx("span",{"data-testid":r?`${r}-error`:"error",className:"text-danger",children:n})]}),li=A.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:o,"data-testid":s,...u},d)=>{const f=A.useId();return y.jsxs(Rw,{error:i,helpText:o,"data-testid":s,children:[y.jsx(Ma,{htmlFor:f,required:n,children:e}),y.jsx(ai,{ref:d,id:f,className:t,required:n||r,feedback:i?"error":void 0,...u})]})}),uK=A.forwardRef(({containerClassName:e,className:t,size:n,...r},i)=>{const{flag:o,toggle:s,setToFalse:u}=wn(),d=A.useRef(null),f=A.useCallback(({relatedTarget:m})=>{d.current?.contains(m)||u()},[d,u]);return y.jsxs("div",{className:Pe("group relative",e),ref:d,onBlurCapture:f,children:[y.jsx(ai,{ref:i,type:o?"text":"password",className:Pe({"pr-10":n!=="sm","pr-8":n==="sm"},t),size:n,"data-testid":"input",...r}),y.jsx("button",{type:"button",onClick:s,title:o?"Hide password":"Show password","aria-label":o?"Hide password":"Show password",className:Pe("absolute top-[50%] translate-y-[-50%] px-1 cursor-pointer","text-placeholder hover:text-lm-text hover:dark:text-dm-text transition-colors",{"right-1.5":n!=="sm","scale-85 right-1":n==="sm"}),tabIndex:-1,children:y.jsx(Ye,{icon:o?PV:Q$})})]})}),cK=A.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:o,"data-testid":s,...u},d)=>{const f=A.useId();return y.jsxs(Rw,{error:i,helpText:o,"data-testid":s,children:[y.jsx(Ma,{htmlFor:f,required:n,children:e}),y.jsx(uK,{ref:d,id:f,className:t,required:n||r,feedback:i?"error":void 0,...u})]})}),fK=A.forwardRef(({className:e,size:t="md",feedback:n,disabled:r,...i},o)=>y.jsx("select",{ref:o,className:Pe("w-full rounded-md border appearance-none pr-9","bg-(image:--chevron-down) bg-no-repeat bg-position-[right_0.75rem_center] bg-size-[16px_12px]",{"focus-ring":!n,"focus-ring-danger":n==="error","border-lm-input-border dark:border-dm-input-border":!n,"border-danger":n==="error","pl-2 py-1 text-sm":t==="sm","pl-3 py-1.5":t==="md","pl-4 py-2 text-xl":t==="lg","bg-lm-disabled-input dark:bg-dm-disabled-input":r,"bg-lm-primary dark:bg-dm-primary group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!r},e),disabled:r,...i})),Nw=A.forwardRef(({selectClassName:e,label:t,error:n,helpText:r,required:i,hiddenRequired:o,"data-testid":s,...u},d)=>{const f=A.useId();return y.jsxs(Rw,{error:n,helpText:r,"data-testid":s,children:[y.jsx(Ma,{htmlFor:f,required:i,children:t}),y.jsx(fK,{ref:d,id:f,className:e,required:i||o,feedback:n?"error":void 0,...u})]})}),Ef=A.forwardRef(({onChange:e,containerClassName:t,inputClassName:n,size:r="lg",loading:i=!1,variant:o="default",immediate:s=!1,...u},d)=>{const{setTimeout:f,clearCurrentTimeout:m}=kN(500),p=A.useCallback(b=>{!b||s?(m(),e(b)):f(()=>e(b))},[m,s,e,f]);return y.jsxs("div",{className:Pe("group relative focus-within:z-10",t),children:[o==="default"&&y.jsx(Ye,{icon:i?cw:K$,spin:i,className:Pe("absolute top-[50%] translate-y-[-50%] transition-colors","text-placeholder group-focus-within:text-lm-text dark:group-focus-within:text-dm-text",{"left-3":r!=="sm","scale-85 left-2":r==="sm"})}),y.jsx(ai,{ref:d,variant:o,type:"search",className:Pe(o==="default"&&{"pl-9":r!=="sm","pl-7":r==="sm"},n),placeholder:"Search...",onChange:b=>p(b.target.value),size:r,...u})]})});function dK({searchResults:e,onSearch:t,onSelectSearchResult:n,renderSearchResult:r,size:i="md",listboxSpan:o="full",onFocus:s,containerClassName:u,listboxClassName:d,...f},m){const p=A.useId(),[b,_]=A.useState(),w=A.useRef(null);A.useImperativeHandle(m,()=>w.current);const x=A.useMemo(()=>e?b??[...e.keys()][0]:void 0,[b,e]),C=A.useCallback(E=>{n(E),t(""),w.current.value=""},[t,n,w]);return y.jsxs("div",{className:Pe("relative",u),onBlur:E=>{E.currentTarget.contains(E.relatedTarget)||t("")},children:[y.jsx(Ef,{onChange:t,size:i,ref:w,role:"combobox","aria-autocomplete":"list","aria-expanded":!!e,"aria-controls":p,"aria-activedescendant":x?`${p}_${x}`:void 0,autoComplete:"off",autoCorrect:"off",onFocus:E=>{s?.(E),t(E.target.value)},...f}),e&&y.jsx(nK,{id:p,items:e,anchor:w,onSelectItem:C,onActiveItemChange:_,renderItem:r,className:Pe("absolute top-full mt-1 z-10",{"min-w-60":o==="auto","w-full":o==="full"},d),"aria-label":"Matching items",noItemsMessage:"No results found matching search"})]})}const hK=A.forwardRef(dK),mK=({name:e,color:t})=>y.jsxs("div",{className:"inline-flex items-center gap-2",children:[y.jsx("div",{"aria-hidden":!0,className:"w-4 h-4 rounded-full",style:{backgroundColor:t}}),e]}),pK=({tag:e,color:t,size:n,onRemove:r})=>y.jsxs("li",{className:Pe("inline-flex items-center gap-1 font-bold [&]:rounded-md",{"px-1 text-sm":n==="sm","py-0.25 px-1.5":n==="md","py-0.5 px-1.5":n==="lg"}),style:{backgroundColor:t,color:Lw(t)?"#000":"#fff"},onClick:i=>i.stopPropagation(),children:[e,y.jsx(Du,{label:`Remove ${e}`,solid:!0,size:"sm",onClick:()=>r(e)})]}),gK=/\s+/g,GT="#99a1af",YT=e=>e.trim().toLowerCase().replace(gK,"-"),vK=({tags:e,selectedTags:t=[],onTagsChange:n,getColorForTag:r,searchMode:i="startsWith",immutable:o=!1,size:s="md",disabled:u,containerClassName:d,...f})=>{const[m,p]=A.useState(),b=A.useCallback(C=>{const E=C.toLowerCase().trim();if(!E){p(void 0);return}const j=e.filter(O=>{if(t.includes(O))return!1;const N=O.toLowerCase();return i==="startsWith"?N.startsWith(E):N.includes(E)}).slice(0,5);o||j.push(`Add "${E.split(",").map(YT).join(",")}" tag`),p(new Map(j.map(O=>[O,O])))},[o,i,t,e]),_=A.useCallback(C=>{const E=(C.match(/Add\s+"([^"]+)"\s+tag/)?.[1]??C).split(",").map(YT);n?.([...new Set([...t,...E])])},[n,t]),w=A.useCallback(C=>n?.(t.filter(E=>E!==C)),[n,t]),x=A.useRef(null);return y.jsxs("div",{className:Pe("rounded-md flex flex-wrap gap-1","border border-lm-input-border dark:border-dm-input-border","cursor-text focus-within:focus-within-ring",{"p-0.5":s==="sm","p-1.25":s==="md","p-2":s==="lg","bg-lm-disabled-input dark:bg-dm-disabled-input":u,"bg-lm-primary dark:bg-dm-primary":!u,"group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":!u},d),onClick:C=>{C.target!==x.current&&x.current?.focus()},children:[y.jsx("ul",{className:"m-0 p-0 flex flex-wrap gap-1",children:t.map((C,E)=>{const j=r?.(C)??GT;return y.jsx(pK,{tag:C,color:j,onRemove:w,size:s},`${C}${E}`)})}),y.jsx(hK,{variant:"unstyled",listboxSpan:"auto",containerClassName:"flex items-center",listboxClassName:"whitespace-nowrap",inputClassName:Pe("no-clear-button",{"px-1 text-sm":s==="sm","px-2 h-[26px]":s==="md","px-3 text-xl":s==="lg"}),searchResults:m,onSearch:b,onSelectSearchResult:_,renderSearchResult:C=>C.match(/Add\s+"([^"]+)"\s+tag/)?C:y.jsx(mK,{name:C,color:r?.(C)??GT}),onKeyDown:C=>{C.key==="Backspace"&&!m&&w(t[t.length-1])},size:s,disabled:u,ref:x,immediate:!0,...f})]})},yK=A.forwardRef(({className:e,...t},n)=>y.jsx(NN,{ref:n,className:Pe("rounded-full w-8 h-4","bg-(image:--circle-grey-dark) dark:bg-(image:--circle-grey-light) checked:bg-(image:--circle-white)","focus-visible:not-checked:bg-(image:--circle-blue-light)","checked:bg-right transition-[background-position]",e),...t}));function bK(e,{elementsSelector:t,focusFirstItem:n=!1,vertical:r=!0,horizontal:i=!0}){const o=A.useMemo(()=>{const d=[];return r&&d.push("ArrowDown"),i&&d.push("ArrowRight"),d},[i,r]),s=A.useMemo(()=>{const d=[];return r&&d.push("ArrowUp"),i&&d.push("ArrowLeft"),d},[i,r]),u=A.useMemo(()=>[...o,...s],[o,s]);A.useEffect(()=>{const d=e.current;if(!d)return()=>{};const f=new AbortController,m=()=>[...d.querySelectorAll(t)],p=m(),b=Math.max(p.findIndex(_=>_.dataset.selected==="true"),0);return p.forEach((_,w)=>{_.tabIndex=w===b?0:-1,n&&w===b&&_.focus()}),d.addEventListener("keydown",_=>{if(!u.includes(_.key))return;_.preventDefault();const w=m(),x=w.findIndex(E=>E.tabIndex===0),C=o.includes(_.key)?w[x+1]??w[0]:w[x-1]??w[w.length-1];w.forEach(E=>{E.tabIndex=-1}),C.tabIndex=0,C.focus()},{signal:f.signal}),()=>f.abort()},[u,e,t,n,o])}const _K=()=>{const e=uo();return A.useCallback(()=>e(-1),[e])},xK=128;function Lw(e){const[t,n,r]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return Math.round(Math.sqrt(.299*t**2+.587*n**2+.114*r**2))>=xK}const LN=({text:e,className:t,size:n="lg",initialCopied:r=!1,navigator_:i=globalThis.navigator,...o})=>{const[s,u]=ay({initialValue:r}),d=A.useCallback(()=>i.clipboard.writeText(e).then(u),[i.clipboard,e,u]);return y.jsx("button",{type:"button",className:Pe("focus-ring rounded-sm cursor-pointer",{"text-md":n==="sm","text-lg":n==="md","text-xl":n==="lg"},t),"aria-label":`Copy ${e} to clipboard`,title:"Copy to clipboard",onClick:d,...o,children:y.jsx(Ye,{icon:s?Ru:RN})})},DN=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const o=i.slice(0,-2);n[o]??=[],n[o].push(r)}else n[i]=r}),n},Dw=e=>{const t=new URLSearchParams;for(const[n,r]of Object.entries(e))r!==void 0&&(Array.isArray(r)?r.forEach(i=>t.append(`${n}[]`,`${i}`)):t.append(n,`${r}`));return t.toString()},Af=()=>{const{search:e}=Cr();return A.useMemo(()=>DN(e),[e])};function kN(e,t=globalThis.setTimeout,n=globalThis.clearTimeout){const r=A.useRef(null),i=A.useCallback(()=>{r.current&&n(r.current)},[n]),o=A.useCallback((s,u)=>{i(),r.current=t(()=>{s(),r.current=null},u??e)},[i,e,t]);return A.useEffect(()=>i,[i]),A.useMemo(()=>({setTimeout:o,clearCurrentTimeout:i}),[i,o])}const wK=2e3,ay=({initialValue:e=!1,delay:t=wK}={},n=globalThis.setTimeout,r=globalThis.clearTimeout)=>{const{setTimeout:i}=kN(t,n,r),[o,s]=A.useState(e),u=A.useRef(e),d=A.useCallback(()=>{s(!u.current),i(()=>s(u.current))},[i]);return[o,d]};function wn(e=!1){const[t,n]=A.useState(e),r=A.useCallback(()=>n(s=>!s),[]),i=A.useCallback(()=>n(!0),[]),o=A.useCallback(()=>n(!1),[]);return{flag:t,toggle:r,setToTrue:i,setToFalse:o}}const IN=A.createContext({}),SK=({className:e,selected:t,disabled:n,onClick:r,...i})=>{const o="to"in i&&typeof i.to=="string",s=o?Rr:"button",{onItemClick:u}=A.useContext(IN);return y.jsx(s,{role:"menuitem","data-selected":t,className:Pe("flex items-center gap-2","w-full px-3 py-1.5 focus-ring","no-underline text-inherit",{"cursor-pointer":!n,"pointer-events-none opacity-50":n,"bg-lm-secondary dark:bg-dm-secondary":t&&!n,"highlight:bg-lm-secondary dark:highlight:bg-dm-secondary highlight:z-1 relative":!t&&!n},e),tabIndex:-1,disabled:o?void 0:n,"aria-disabled":o?n:void 0,type:o?void 0:"button",onClick:d=>{r?.(d),u?.()},...i})},CK=()=>y.jsx("div",{role:"separator","aria-hidden":!0,className:"border-b border-lm-border dark:border-dm-border my-2"}),EK=({children:e})=>y.jsx("div",{role:"heading","aria-level":6,"aria-hidden":!0,className:Pe("flex items-center w-full px-3 py-1.5","text-gray-500 text-sm font-semibold"),onClick:t=>t.stopPropagation(),children:e}),AK=({className:e,...t})=>y.jsx("div",{className:Pe("px-3 py-1.5",e),...t}),TK=({children:e,className:t,focusableElementsSelector:n='[role="menuitem"]:not([disabled]):not([aria-disabled])',focusFirstItem:r=!1,onItemClick:i,...o})=>{const s=A.useRef(null);return bK(s,{elementsSelector:n,focusFirstItem:r}),y.jsx(un,{ref:s,role:"menu",className:Pe("py-2 whitespace-nowrap",t),...o,children:y.jsx(IN.Provider,{value:{onItemClick:i},children:e})})},sh=Object.assign(TK,{Item:SK,Separator:CK,Title:EK,Misc:AK}),OK=({children:e,menuAlignment:t="left",buttonVariant:n="button",buttonContent:r,buttonClassName:i,buttonSize:o="md",buttonDisabled:s=!1,containerClassName:u,menuClassName:d,caretless:f,buttonLabel:m,menuOffset:p=3})=>{const[b,_]=A.useState(!1),w=A.useCallback(()=>_(!1),[]),x=A.useRef(null),{refs:C,floatingStyles:E,context:j}=MN({open:b,onOpenChange:_,placement:t==="right"?"bottom-end":"bottom-start",middleware:[TW(),AW(p)],elements:{reference:x.current}}),O=$W(j),{getReferenceProps:N,getFloatingProps:U}=PN([O]),$=A.useId(),K=A.useRef(null);return A.useEffect(()=>{const X=K.current;if(!X||!b)return()=>{};const oe=new AbortController;return document.body.addEventListener("click",ee=>{ee.composedPath().includes(X)||w()},{signal:oe.signal}),()=>oe.abort()},[w,b]),y.jsxs("div",{ref:K,className:Pe("relative inline-block",u),onKeyDown:X=>{X.key==="Escape"&&w()},onBlur:X=>{X.relatedTarget&&!K.current.contains(X.relatedTarget)&&w()},children:[y.jsxs("button",{ref:x,...N(),type:"button","aria-haspopup":!0,"aria-expanded":b,"aria-controls":$,"aria-label":m,disabled:s,className:Pe("flex items-center rounded-md focus-ring",{"justify-between":!f,"cursor-pointer":!s,"pointer-events-none opacity-50":s,"border border-lm-border dark:border-dm-border":n==="button","bg-lm-primary dark:bg-dm-primary":n==="button","group-[&]/card:bg-lm-input group-[&]/card:dark:bg-dm-input":n==="button","text-lm-brand dark:text-dm-brand":n==="link","highlight:text-lm-brand-dark dark:highlight:text-dm-brand-dark highlight:underline":n==="link","px-1.5 py-1 text-sm":n!=="text"&&o==="sm","px-3 py-1.5":n!=="text"&&o==="md","px-4 py-2 text-lg":n!=="text"&&o==="lg","gap-x-1.5":o==="sm","gap-x-2":o!=="sm"},i),onKeyDown:X=>{X.key==="ArrowDown"&&(X.preventDefault(),_(!0))},children:[r,!f&&y.jsx(Ye,{icon:lR,size:"xs",widthAuto:!0})]}),b&&y.jsx("div",{ref:C.setFloating,style:E,className:"min-w-full z-500",...U(),children:y.jsx(sh,{className:d,id:$,focusableElementsSelector:'[role="menuitem"]:not([disabled]):not([aria-disabled]),input:not([disabled]),select:not([disabled])',focusFirstItem:!0,onItemClick:w,children:e})})]})},Qe=Object.assign(OK,{Item:sh.Item,Separator:sh.Separator,Title:sh.Title,Misc:sh.Misc}),oy=A.forwardRef(({className:e,disabled:t,size:n="md",type:r="button",...i},o)=>y.jsx("button",{className:Pe("inline-flex rounded-md focus-ring","text-lm-brand dark:text-dm-brand","highlight:text-lm-brand-dark dark:highlight:text-dm-brand-dark highlight:underline",{"px-1.5 py-1 text-sm":n==="sm","px-3 py-1.5":n==="md","px-4 py-2 text-lg":n==="lg","cursor-pointer":!t,"pointer-events-none opacity-65":t},e),disabled:t,type:r,...i,ref:o})),jK=({className:e,active:t,...n})=>y.jsx("li",{role:"menuitem",className:"w-full flex","data-active":t,children:y.jsx(Rr,{className:Pe("px-2 py-3","max-md:w-full max-md:px-3 max-md:py-2","text-white no-underline highlight:opacity-100 transition-opacity",{"opacity-60":!t,"opacity-100":t},e),...n})}),MK=({containerClassName:e,buttonClassName:t,menuClassName:n,active:r,...i})=>y.jsx("li",{role:"menuitem","aria-haspopup":!0,className:"w-full flex","data-active":r,children:y.jsx(Qe,{containerClassName:Pe("max-md:w-full",e),buttonVariant:"text",buttonClassName:Pe("px-2 py-3","max-md:w-full max-md:px-3 max-md:py-2","text-white highlight:opacity-100 transition-opacity",{"opacity-60":!r,"opacity-100":r},t),menuAlignment:"right",menuOffset:-3,menuClassName:Pe("mx-2",n),...i})}),PK=({className:e,brand:t,children:n})=>{const{flag:r,toggle:i,setToFalse:o}=wn(),s=A.useId(),u=A.useId(),{pathname:d}=Cr();return A.useEffect(()=>o(),[d,o]),y.jsxs("nav",{className:Pe("w-full relative","bg-lm-main dark:bg-dm-main","flex max-md:flex-col items-center justify-between",e),children:[y.jsxs("div",{className:"w-full relative",children:[y.jsx("h4",{className:Pe("text-white px-4 py-3","max-md:w-full max-md:flex max-md:flex-col items-center"),children:t}),y.jsx(Rt,{id:u,variant:"secondary",className:Pe("absolute right-0 top-[50%] translate-y-[-50%]","md:hidden mx-2 [&]:px-2","opacity-60 highlight:opacity-100 transition-opacity","[&]:text-white [&]:border-white [&]:highlight:bg-transparent"),onClick:i,"aria-label":`${r?"Hide":"Show"} menu`,"aria-controls":s,children:y.jsx(Ye,{icon:r?eV:yV})})]}),y.jsx("ul",{id:s,"aria-labelledby":u,role:"menu",className:Pe("m-0 p-0","max-md:w-full md:mr-2 max-md:absolute max-md:top-full z-2000","flex max-md:flex-col items-center","bg-lm-main dark:bg-dm-main",{"max-md:hidden":!r}),children:n})]})},Ux=Object.assign(PK,{MenuItem:jK,Dropdown:MK}),UN=A.createContext(null),RK=({className:e,to:t,...n})=>{const r=A.useContext(UN);return y.jsx(iw,{role:"menuitem",to:t,className:({isActive:i})=>Pe("px-4 pt-2 pb-[calc(0.5rem-3px)] border-b-3","highlight:text-lm-brand dark:highlight:text-dm-brand","font-bold text-center no-underline transition-colors","rounded-none outline-none focus-visible:inset-ring-2","focus-visible:inset-ring-lm-brand/50 dark:focus-visible:inset-ring-dm-brand/50",{"text-lm-brand dark:text-dm-brand":i,"border-b-lm-brand dark:border-b-dm-brand active":i,"border-b-transparent text-gray-500":!i,"flex-grow":r?.fill},e),...n})},NK=({children:e,className:t,fill:n})=>y.jsx(UN.Provider,{value:{fill:n},children:y.jsx(un,{role:"menubar",className:Pe("flex overflow-hidden",t),children:e})}),tl=Object.assign(NK,{Pill:RK}),LK=new Intl.NumberFormat("en-US"),Pn=e=>LK.format(Number(e)),WT=10,DK=e=>Math.ceil(e/WT)*WT,Bc=2,Gg="...",kK=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),IK=(e,t)=>{const n=kK(Math.max(Bc,e-Bc),Math.min(t-1,e+Bc)+1);return e-Bc>Bc&&n.unshift(Gg),e+Bc<t-1&&n.push(Gg),n.unshift(1),n.push(t),n},vh=e=>e===Gg,UK=e=>vh(e)?e:Pn(e),zK=(e,t)=>vh(e)?`${e}_${t}`:`${e}`,zN=["border border-r-0 last:border-r border-lm-border dark:border-dm-border","rounded-none first:rounded-l last:rounded-r"],BN=(e=!1)=>Pe(zN,"px-3 py-2 cursor-pointer no-underline","focus-ring focus-visible:z-1",!e&&["text-lm-brand dark:text-dm-brand","bg-lm-primary dark:bg-dm-primary","highlight:bg-lm-secondary dark:highlight:bg-dm-secondary"],e&&"bg-lm-main dark:bg-dm-main text-white"),zx=({children:e})=>y.jsx("span",{"aria-hidden":!0,className:Pe(zN,"px-3 py-2 text-gray-400"),children:e}),FN=()=>y.jsx(zx,{children:Gg});function BK({children:e,active:t,isEllipsis:n,href:r,...i}){const o=A.useMemo(()=>BN(t),[t]);return n?y.jsx(FN,{}):y.jsx(Rr,{className:o,to:r,...i,"data-active":t,children:e})}function FK({children:e,active:t,isEllipsis:n,...r}){const i=A.useMemo(()=>BN(t),[t]);return n?y.jsx(FN,{}):y.jsx("button",{type:"button",className:i,...r,"data-active":t,children:e})}const sy=({currentPage:e,pagesCount:t,...n})=>{const r="urlForPage"in n,i=r?BK:FK,o=A.useCallback(s=>r?{href:vh(s)?void 0:n.urlForPage(s)}:{onClick:()=>!vh(s)&&n.onPageChange(s)},[r,n]);return t<2?null:y.jsxs("div",{className:"select-none flex","data-testid":"paginator",children:[e===1?y.jsx(zx,{children:y.jsx(Ye,{size:"xs",icon:WA})}):y.jsx(i,{...o(Math.max(1,e-1)),"aria-label":"Previous",children:y.jsx(Ye,{size:"xs",icon:WA})}),IK(e,t).map((s,u)=>y.jsx(i,{active:s===e,isEllipsis:vh(s),...o(s),children:UK(s)},zK(s,u))),e===t?y.jsx(zx,{children:y.jsx(Ye,{size:"xs",icon:Ig})}):y.jsx(i,{...o(Math.min(t,e+1)),"aria-label":"Next",children:y.jsx(Ye,{size:"xs",icon:Ig})})]})},$K=({buttonLabel:e="Options",buttonSize:t="md",...n})=>y.jsx(Qe,{buttonContent:y.jsx(Ye,{icon:nV,widthAuto:!0,className:Pe({"px-1":t==="sm"})}),caretless:!0,buttonLabel:e,buttonSize:t,...n}),rn=Object.assign($K,{Item:Qe.Item,Separator:Qe.Separator,Title:Qe.Title,Misc:Qe.Misc}),VK=({open:e,children:t,className:n,onClose:r,...i})=>{const o=A.useRef(null);return A.useEffect(()=>{const s=document.body,u=s.style.overflow,d=s.style.paddingRight;if(e){const f=window.outerWidth-s.clientWidth,m=s.scrollHeight>s.clientHeight;s.style.overflow="hidden",m&&(s.style.paddingRight=`${f}px`),o.current?.showModal()}else o.current?.close();return()=>{s.style.overflow=u,s.style.paddingRight=d}},[e]),qh.createPortal(y.jsx("dialog",{ref:o,className:Pe("bg-transparent backdrop:bg-black/50",n),onCancel:s=>{s.preventDefault(),r()},...i,children:e&&t}),document.body)},co=({open:e,onClose:t,variant:n="default",title:r,children:i,className:o,...s})=>{const{size:u="md",confirmText:d="Confirm",cancelText:f="Cancel",confirmDisabled:m,onConfirm:p,onClosed:b,..._}="onConfirm"in s?s:{...s},[w,x]=A.useState(e),C=A.useRef(null),E=A.useRef("cancel"),j=A.useCallback(O=>{O.preventDefault(),O.stopPropagation(),E.current="confirm",p?.()},[p]);return A.useEffect(()=>{if(e){E.current="cancel",x(!0);return}const O=C.current;if(O){delete C.current.dataset.open;let N=!1;const U=$=>{N||$.target!==O||(N=!0,x(!1),b?.(E.current))};return O.addEventListener("transitionend",U),()=>{O.removeEventListener("transitionend",U)}}},[b,e]),A.useEffect(()=>{const O=C.current;w&&O&&(O.dataset.open="")},[w]),y.jsx(VK,{open:w,onClose:t,className:Pe({"flex w-screen h-screen max-w-screen max-h-screen":w,"overflow-hidden":n==="cover"},o),..._,children:y.jsx("form",{"data-testid":"transition-container",ref:C,className:Pe("w-full m-auto p-4 sm:p-6","-translate-y-4 data-open:translate-y-0 opacity-0 data-open:opacity-100","transition-[opacity_,_translate] duration-300",n!=="cover"&&{"sm:w-sm":u==="sm","md:w-lg":u==="md","md:w-4xl":u==="lg","md:w-6xl":u==="xl"},{"h-full":n==="cover"}),onSubmit:j,children:y.jsx(un,{className:Pe("w-full",{"h-full relative overflow-auto":n==="cover"}),children:n==="cover"?y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:Pe("px-4 py-3 absolute top-0 left-0 right-0 z-3000","flex items-center justify-between","text-white bg-linear-to-b from-black/70 to-black/10","[text-shadow:_0_2px_4px_rgb(0_0_0/_0.8)]"),children:[y.jsx("h5",{children:r}),y.jsx(Du,{onClick:t,label:"Close dialog"})]}),i]}):y.jsxs(y.Fragment,{children:[y.jsxs(un.Header,{className:Pe("sticky top-0","flex items-center justify-between gap-x-2"),children:[y.jsx("h5",{className:Pe({"text-danger":n==="danger"}),children:r}),y.jsx(Du,{onClick:t,label:"Close dialog"})]}),y.jsx(un.Body,{children:i}),p&&y.jsxs(un.Footer,{"data-testid":"footer",className:Pe("flex justify-end items-center gap-x-2","[&]:px-3 sticky bottom-0"),children:[y.jsx(oy,{onClick:t,children:f}),y.jsx(Rt,{solid:!0,variant:n==="danger"?"danger":"primary",disabled:m,type:"submit",children:d})]})]})})})})},Zo=({className:e,children:t,loading:n=!1,variant:r="default"})=>y.jsx(Pt,{className:Pe({"[&]:border-danger":r==="error"},e),children:y.jsxs("h3",{className:Pe("text-center",{"text-gray-500 dark:text-gray-400":r==="default","text-danger":r==="error"}),children:[n&&y.jsxs(y.Fragment,{children:[y.jsx(Ye,{icon:cw,spin:!0}),y.jsx("span",{className:"ml-2",children:t??"Loading..."})]}),!n&&t]})}),zr=({variant:e,className:t,size:n="md",children:r})=>y.jsx("div",{className:Pe("rounded-md text-center",{"p-2":n==="sm","p-4":n==="md","p-6":n==="lg","[&]:text-white":e!=="warning","bg-lm-brand dark:bg-dm-brand":e==="success","bg-danger":e==="error","bg-warning text-black":e==="warning"},t),children:r}),fo=({placement:e="auto"}={})=>{const t=A.useRef(null),n=(()=>{const x=[];return e==="auto"&&x.push(OW()),x.push(jW({element:t})),x})(),[r,i]=A.useState(!1),{refs:o,floatingStyles:s,context:u,middlewareData:d}=MN({placement:e==="auto"?void 0:e,open:r,onOpenChange:i,middleware:n}),f=BW(u,{delay:{open:300},move:!0}),{getFloatingProps:m,getReferenceProps:p}=PN([f]),{isMounted:b,styles:_}=GW(u,{duration:200}),w=A.useMemo(()=>{const x=u.placement.split("-")[0];return{top:"bottom",right:"left",bottom:"top",left:"right"}[x]??""},[u.placement]);return{anchor:{...p(),ref:o.setReference},tooltip:{...m(),refSetter:o.setFloating,isMounted:b,styles:{...s,..._},arrowPos:d.arrow,arrowRef:t,arrowSide:w}}},ho=({children:e,isMounted:t,styles:n,refSetter:r,arrowRef:i,arrowPos:o,arrowSide:s,...u})=>t&&y.jsx("div",{role:"tooltip","aria-live":"polite",className:Pe("z-500 max-w-64",{"pt-2.5":s==="top","pb-2.5":s==="bottom","pr-2.5":s==="right","pl-2.5":s==="left"}),ref:r,style:n,...u,children:y.jsxs("div",{className:"relative px-1.5 py-1 rounded bg-black/90 text-white text-center",children:[y.jsx("span",{className:"sr-only",children:"Tooltip: "}),e,y.jsx("div",{ref:i,className:Pe("absolute","border-l-6 border-r-6 border-b-6 border-l-transparent border-r-transparent border-b-black/90",{"rotate-180":s==="bottom","rotate-90 mr-[-3px]":s==="right","rotate-270 ml-[-3px]":s==="left"}),style:{left:o?.x,top:o?.y,[s]:`${-(i.current?.offsetWidth??0)/2}px`},"data-testid":"arrow"})]})});function $N(e){if(e.currentField!==e.newField)return"ASC";const t={ASC:"DESC",DESC:void 0};return e.currentOrderDir?t[e.currentOrderDir]:"ASC"}function kw(e){const t=$N(e);return{field:t?e.newField:void 0,dir:t}}const VN=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const o=n==="ASC"?1:-1,s=n==="ASC"?-1:1;return r[t]>i[t]?o:s}),HK=e=>e.dir?`${e.field}-${e.dir}`:void 0,qK=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function Jh({items:e,order:t,onChange:n,prefixed:r=!0,buttonVariant:i="button",...o}){const s=A.useCallback(d=>{const f=kw({currentOrderDir:t.dir,currentField:t.field,newField:d});n(f)},[n,t.dir,t.field]),u=i==="button";return y.jsxs(Qe,{buttonContent:y.jsxs(y.Fragment,{children:[!u&&"Order by",u&&!t.field&&y.jsx("i",{children:"Order by..."}),u&&t.field&&y.jsxs(y.Fragment,{children:[r&&"Order by: ",e[t.field]," - ",t.dir??"DESC"]})]}),buttonVariant:i,...o,children:[Object.entries(e).map(([d,f])=>y.jsxs(Qe.Item,{selected:t.field===d,onClick:()=>s(d),className:"flex items-center justify-between gap-2",children:[f,t.field===d&&y.jsx(Ye,{icon:t.dir==="ASC"?sV:MV})]},d)),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{disabled:!t.field,onClick:()=>n({}),children:y.jsx("i",{children:"Clear selection"})})]})}const GK="#4696e5",YK="rgba(70, 150, 229, 0.4)",WK="#2078CF",KK="rgba(32, 120, 207, 0.4)",Oh=()=>as()?GK:WK,ZK=()=>as()?YK:KK,Bx="#f77f28",XK="rgba(247, 127, 40, 0.4)",QK="white",JK="#161b22",eZ=e=>document.querySelector("html")?.setAttribute("data-theme",e),as=()=>document.querySelector("html")?.getAttribute("data-theme")==="dark",Iw=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light",tZ=({isOpen:e,onClose:t,forceUpdate:n})=>{const{flag:r,setToTrue:i}=wn(),o=A.useCallback(()=>{i(),n()},[n,i]);return e?y.jsxs(un,{role:"alert",className:Pe("w-[700px] max-w-[calc(100%-30px)]","fixed top-[35px] left-[50%] translate-x-[-50%] z-[1040]"),children:[y.jsxs(un.Header,{className:"flex items-center justify-between",children:[y.jsx("h5",{children:"This app has just been updated!"}),y.jsx(Du,{onClick:t})]}),y.jsxs(un.Body,{className:"flex gap-4 items-center justify-between max-md:flex-col",children:["Restart it to enjoy the new features.",y.jsxs(Rt,{disabled:r,variant:"secondary",solid:!0,onClick:o,children:[!r&&y.jsxs(y.Fragment,{children:["Restart now ",y.jsx(Ye,{icon:B$})]}),r&&y.jsx(y.Fragment,{children:"Restarting..."})]})]})]}):null},HN=({children:e,title:t})=>y.jsx("div",{className:"pt-4",children:y.jsxs(Pt,{className:"p-4 w-full lg:w-[65%] m-auto",children:[y.jsx("h2",{children:t}),e]})}),qN=({to:e="/",children:t="Home"})=>y.jsxs(HN,{title:"Oops! We could not find requested route.",children:[y.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),y.jsx("br",{}),y.jsx(Rt,{inline:!0,to:e,size:"lg",children:t})]});function Pa(e){return A.useMemo(()=>e,[e])}function Ra(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const nZ=async()=>{(await navigator.serviceWorker?.getRegistrations()??[]).forEach(({waiting:t})=>{t?.addEventListener("statechange",n=>{n.target?.state==="activated"&&window.location.reload()}),t?.postMessage({type:"SKIP_WAITING"})})},GN=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{const{MainHeader:o,Home:s,ShlinkWebComponentContainer:u,CreateServer:d,EditServer:f,Settings:m,ManageServers:p,ShlinkVersionsContainer:b}=Pa(GN),_=Cr(),w=A.useRef(t),x=_.pathname==="/";return A.useEffect(()=>{Object.keys(w.current).length===0&&e()},[e]),A.useEffect(()=>{eZ(n.ui?.theme??Iw())},[n.ui?.theme]),y.jsxs("div",{className:"h-full",children:[y.jsxs(y.Fragment,{children:[y.jsx(o,{}),y.jsxs("div",{className:"h-full pt-(--header-height)",children:[y.jsx("div",{"data-testid":"shlink-wrapper",className:Pe("min-h-full pb-[calc(var(--footer-height)+var(--footer-margin))] -mb-[calc(var(--footer-height)+var(--footer-margin))]",{"flex items-center pt-4":x}),children:y.jsxs(Hv,{children:[y.jsx(pt,{index:!0,element:y.jsx(s,{})}),y.jsx(pt,{path:"/settings",children:["","*"].map(C=>y.jsx(pt,{path:C,element:y.jsx(m,{})},C))}),y.jsx(pt,{path:"/manage-servers",element:y.jsx(p,{})}),y.jsx(pt,{path:"/server/create",element:y.jsx(d,{})}),y.jsx(pt,{path:"/server/:serverId/edit",element:y.jsx(f,{})}),y.jsx(pt,{path:"/server/:serverId",children:["","*"].map(C=>y.jsx(pt,{path:C,element:y.jsx(u,{})},C))}),y.jsx(pt,{path:"*",element:y.jsx(qN,{})})]})}),y.jsx("div",{className:"h-(--footer-height) mt-(--footer-margin) md:px-4",children:y.jsx(b,{})})]})]}),y.jsx(tZ,{isOpen:r,onClose:i,forceUpdate:nZ})]})},rZ=Ra(GN,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function yr(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var iZ=typeof Symbol=="function"&&Symbol.observable||"@@observable",KT=iZ,gb=()=>Math.random().toString(36).substring(7).split("").join("."),aZ={INIT:`@@redux/INIT${gb()}`,REPLACE:`@@redux/REPLACE${gb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${gb()}`},Yg=aZ;function Uw(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function YN(e,t,n){if(typeof e!="function")throw new Error(yr(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(yr(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(yr(1));return n(YN)(e,t)}let r=e,i=t,o=new Map,s=o,u=0,d=!1;function f(){s===o&&(s=new Map,o.forEach((C,E)=>{s.set(E,C)}))}function m(){if(d)throw new Error(yr(3));return i}function p(C){if(typeof C!="function")throw new Error(yr(4));if(d)throw new Error(yr(5));let E=!0;f();const j=u++;return s.set(j,C),function(){if(E){if(d)throw new Error(yr(6));E=!1,f(),s.delete(j),o=null}}}function b(C){if(!Uw(C))throw new Error(yr(7));if(typeof C.type>"u")throw new Error(yr(8));if(typeof C.type!="string")throw new Error(yr(17));if(d)throw new Error(yr(9));try{d=!0,i=r(i,C)}finally{d=!1}return(o=s).forEach(j=>{j()}),C}function _(C){if(typeof C!="function")throw new Error(yr(10));r=C,b({type:Yg.REPLACE})}function w(){const C=p;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(yr(11));function j(){const N=E;N.next&&N.next(m())}return j(),{unsubscribe:C(j)}},[KT](){return this}}}return b({type:Yg.INIT}),{dispatch:b,subscribe:p,getState:m,replaceReducer:_,[KT]:w}}function oZ(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Yg.INIT})>"u")throw new Error(yr(12));if(typeof n(void 0,{type:Yg.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(yr(13))})}function ly(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const s=t[o];typeof e[s]=="function"&&(n[s]=e[s])}const r=Object.keys(n);let i;try{oZ(n)}catch(o){i=o}return function(s={},u){if(i)throw i;let d=!1;const f={};for(let m=0;m<r.length;m++){const p=r[m],b=n[p],_=s[p],w=b(_,u);if(typeof w>"u")throw u&&u.type,new Error(yr(14));f[p]=w,d=d||w!==_}return d=d||r.length!==Object.keys(s).length,d?f:s}}function Wg(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function sZ(...e){return t=>(n,r)=>{const i=t(n,r);let o=()=>{throw new Error(yr(15))};const s={getState:i.getState,dispatch:(d,...f)=>o(d,...f)},u=e.map(d=>d(s));return o=Wg(...u)(i.dispatch),{...i,dispatch:o}}}function WN(e){return Uw(e)&&"type"in e&&typeof e.type=="string"}var KN=Symbol.for("immer-nothing"),ZT=Symbol.for("immer-draftable"),ji=Symbol.for("immer-state");function xa(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var af=Object.getPrototypeOf;function ku(e){return!!e&&!!e[ji]}function Xo(e){return e?ZN(e)||Array.isArray(e)||!!e[ZT]||!!e.constructor?.[ZT]||cy(e)||fy(e):!1}var lZ=Object.prototype.constructor.toString();function ZN(e){if(!e||typeof e!="object")return!1;const t=af(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===lZ}function Kg(e,t){uy(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function uy(e){const t=e[ji];return t?t.type_:Array.isArray(e)?1:cy(e)?2:fy(e)?3:0}function Fx(e,t){return uy(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function XN(e,t,n){const r=uy(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function uZ(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function cy(e){return e instanceof Map}function fy(e){return e instanceof Set}function pu(e){return e.copy_||e.base_}function $x(e,t){if(cy(e))return new Map(e);if(fy(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=ZN(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[ji];let i=Reflect.ownKeys(r);for(let o=0;o<i.length;o++){const s=i[o],u=r[s];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(r[s]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[s]})}return Object.create(af(e),r)}else{const r=af(e);if(r!==null&&n)return{...e};const i=Object.create(r);return Object.assign(i,e)}}function zw(e,t=!1){return dy(e)||ku(e)||!Xo(e)||(uy(e)>1&&(e.set=e.add=e.clear=e.delete=cZ),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>zw(r,!0))),e}function cZ(){xa(2)}function dy(e){return Object.isFrozen(e)}var fZ={};function Iu(e){const t=fZ[e];return t||xa(0,e),t}var jh;function QN(){return jh}function dZ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function XT(e,t){t&&(Iu("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Vx(e){Hx(e),e.drafts_.forEach(hZ),e.drafts_=null}function Hx(e){e===jh&&(jh=e.parent_)}function QT(e){return jh=dZ(jh,e)}function hZ(e){const t=e[ji];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function JT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[ji].modified_&&(Vx(t),xa(4)),Xo(e)&&(e=Zg(t,e),t.parent_||Xg(t,e)),t.patches_&&Iu("Patches").generateReplacementPatches_(n[ji].base_,e,t.patches_,t.inversePatches_)):e=Zg(t,n,[]),Vx(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==KN?e:void 0}function Zg(e,t,n){if(dy(t))return t;const r=t[ji];if(!r)return Kg(t,(i,o)=>eO(e,r,t,i,o,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Xg(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let o=i,s=!1;r.type_===3&&(o=new Set(i),i.clear(),s=!0),Kg(o,(u,d)=>eO(e,r,i,u,d,n,s)),Xg(e,i,!1),n&&e.patches_&&Iu("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function eO(e,t,n,r,i,o,s){if(ku(i)){const u=o&&t&&t.type_!==3&&!Fx(t.assigned_,r)?o.concat(r):void 0,d=Zg(e,i,u);if(XN(n,r,d),ku(d))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(Xo(i)&&!dy(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Zg(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Xg(e,i)}}function Xg(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&zw(t,n)}function mZ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:QN(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,o=Bw;n&&(i=[r],o=Mh);const{revoke:s,proxy:u}=Proxy.revocable(i,o);return r.draft_=u,r.revoke_=s,u}var Bw={get(e,t){if(t===ji)return e;const n=pu(e);if(!Fx(n,t))return pZ(e,n,t);const r=n[t];return e.finalized_||!Xo(r)?r:r===vb(e.base_,t)?(yb(e),e.copy_[t]=Gx(r,e)):r},has(e,t){return t in pu(e)},ownKeys(e){return Reflect.ownKeys(pu(e))},set(e,t,n){const r=JN(pu(e),t);if(r?.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=vb(pu(e),t),o=i?.[ji];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(uZ(n,i)&&(n!==void 0||Fx(e.base_,t)))return!0;yb(e),qx(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return vb(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,yb(e),qx(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=pu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){xa(11)},getPrototypeOf(e){return af(e.base_)},setPrototypeOf(){xa(12)}},Mh={};Kg(Bw,(e,t)=>{Mh[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Mh.deleteProperty=function(e,t){return Mh.set.call(this,e,t,void 0)};Mh.set=function(e,t,n){return Bw.set.call(this,e[0],t,n,e[0])};function vb(e,t){const n=e[ji];return(n?pu(n):e)[t]}function pZ(e,t,n){const r=JN(t,n);return r?"value"in r?r.value:r.get?.call(e.draft_):void 0}function JN(e,t){if(!(t in e))return;let n=af(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=af(n)}}function qx(e){e.modified_||(e.modified_=!0,e.parent_&&qx(e.parent_))}function yb(e){e.copy_||(e.copy_=$x(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var gZ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const o=n;n=t;const s=this;return function(d=o,...f){return s.produce(d,m=>n.call(this,m,...f))}}typeof n!="function"&&xa(6),r!==void 0&&typeof r!="function"&&xa(7);let i;if(Xo(t)){const o=QT(this),s=Gx(t,void 0);let u=!0;try{i=n(s),u=!1}finally{u?Vx(o):Hx(o)}return XT(o,r),JT(i,o)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===KN&&(i=void 0),this.autoFreeze_&&zw(i,!0),r){const o=[],s=[];Iu("Patches").generateReplacementPatches_(t,i,o,s),r(o,s)}return i}else xa(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...u)=>this.produceWithPatches(s,d=>t(d,...u));let r,i;return[this.produce(t,n,(s,u)=>{r=s,i=u}),r,i]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){Xo(e)||xa(8),ku(e)&&(e=qo(e));const t=QT(this),n=Gx(e,void 0);return n[ji].isManual_=!0,Hx(t),n}finishDraft(e,t){const n=e&&e[ji];(!n||!n.isManual_)&&xa(9);const{scope_:r}=n;return XT(r,t),JT(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const i=t[n];if(i.path.length===0&&i.op==="replace"){e=i.value;break}}n>-1&&(t=t.slice(n+1));const r=Iu("Patches").applyPatches_;return ku(e)?r(e,t):this.produce(e,i=>r(i,t))}};function Gx(e,t){const n=cy(e)?Iu("MapSet").proxyMap_(e,t):fy(e)?Iu("MapSet").proxySet_(e,t):mZ(e,t);return(t?t.scope_:QN()).drafts_.push(n),n}function qo(e){return ku(e)||xa(10,e),eL(e)}function eL(e){if(!Xo(e)||dy(e))return e;const t=e[ji];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=$x(e,t.scope_.immer_.useStrictShallowCopy_)}else n=$x(e,!0);return Kg(n,(r,i)=>{XN(n,r,eL(i))}),t&&(t.finalized_=!1),n}var Mi=new gZ,tL=Mi.produce;Mi.produceWithPatches.bind(Mi);Mi.setAutoFreeze.bind(Mi);Mi.setUseStrictShallowCopy.bind(Mi);Mi.applyPatches.bind(Mi);Mi.createDraft.bind(Mi);Mi.finishDraft.bind(Mi);function vZ(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function yZ(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function bZ(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var tO=e=>Array.isArray(e)?e:[e];function _Z(e){const t=Array.isArray(e[0])?e[0]:e;return bZ(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function xZ(e,t){const n=[],{length:r}=e;for(let i=0;i<r;i++)n.push(e[i].apply(null,t));return n}var wZ=class{constructor(e){this.value=e}deref(){return this.value}},SZ=typeof WeakRef<"u"?WeakRef:wZ,CZ=0,nO=1;function Wp(){return{s:CZ,v:void 0,o:null,p:null}}function nL(e,t={}){let n=Wp();const{resultEqualityCheck:r}=t;let i,o=0;function s(){let u=n;const{length:d}=arguments;for(let p=0,b=d;p<b;p++){const _=arguments[p];if(typeof _=="function"||typeof _=="object"&&_!==null){let w=u.o;w===null&&(u.o=w=new WeakMap);const x=w.get(_);x===void 0?(u=Wp(),w.set(_,u)):u=x}else{let w=u.p;w===null&&(u.p=w=new Map);const x=w.get(_);x===void 0?(u=Wp(),w.set(_,u)):u=x}}const f=u;let m;if(u.s===nO)m=u.v;else if(m=e.apply(null,arguments),o++,r){const p=i?.deref?.()??i;p!=null&&r(p,m)&&(m=p,o!==0&&o--),i=typeof m=="object"&&m!==null||typeof m=="function"?new SZ(m):m}return f.s=nO,f.v=m,m}return s.clearCache=()=>{n=Wp(),s.resetResultsCount()},s.resultsCount=()=>o,s.resetResultsCount=()=>{o=0},s}function EZ(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let o=0,s=0,u,d={},f=i.pop();typeof f=="object"&&(d=f,f=i.pop()),vZ(f,`createSelector expects an output function after the inputs, but received: [${typeof f}]`);const m={...n,...d},{memoize:p,memoizeOptions:b=[],argsMemoize:_=nL,argsMemoizeOptions:w=[]}=m,x=tO(b),C=tO(w),E=_Z(i),j=p(function(){return o++,f.apply(null,arguments)},...x),O=_(function(){s++;const U=xZ(E,arguments);return u=j.apply(null,U),u},...C);return Object.assign(O,{resultFunc:f,memoizedResultFunc:j,dependencies:E,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>u,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:_})};return Object.assign(r,{withTypes:()=>r}),r}var je=EZ(nL),AZ=Object.assign((e,t=je)=>{yZ(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(o=>e[o]);return t(r,(...o)=>o.reduce((s,u,d)=>(s[n[d]]=u,s),{}))},{withTypes:()=>AZ});function rL(e){return({dispatch:n,getState:r})=>i=>o=>typeof o=="function"?o(n,r,e):i(o)}var TZ=rL(),OZ=rL,jZ=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Wg:Wg.apply(null,arguments)},MZ=e=>e&&typeof e.match=="function";function fn(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Ai(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>WN(r)&&r.type===e,n}var iL=class lh extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,lh.prototype)}static get[Symbol.species](){return lh}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new lh(...t[0].concat(this)):new lh(...t.concat(this))}};function rO(e){return Xo(e)?tL(e,()=>{}):e}function Kp(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function PZ(e){return typeof e=="boolean"}var RZ=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:o=!0}=t??{};let s=new iL;return n&&(PZ(n)?s.push(TZ):s.push(OZ(n.extraArgument))),s},NZ="RTK_autoBatch",iO=e=>t=>{setTimeout(t,e)},LZ=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,o=!1,s=!1;const u=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:iO(10):e.type==="callback"?e.queueNotification:iO(e.timeout),f=()=>{s=!1,o&&(o=!1,u.forEach(m=>m()))};return Object.assign({},r,{subscribe(m){const p=()=>i&&m(),b=r.subscribe(p);return u.add(m),()=>{b(),u.delete(m)}},dispatch(m){try{return i=!m?.meta?.[NZ],o=!i,o&&(s||(s=!0,d(f))),r.dispatch(m)}finally{i=!0}}})},DZ=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new iL(e);return r&&i.push(LZ(typeof r=="object"?r:void 0)),i};function Fw(e){const t=RZ(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:u=void 0}=e||{};let d;if(typeof n=="function")d=n;else if(Uw(n))d=ly(n);else throw new Error(Ai(1));let f;typeof r=="function"?f=r(t):f=t();let m=Wg;i&&(m=jZ({trace:!1,...typeof i=="object"&&i}));const p=sZ(...f),b=DZ(p);let _=typeof u=="function"?u(b):b();const w=m(..._);return YN(d,s,w)}function aL(e){const t={},n=[];let r;const i={addCase(o,s){const u=typeof o=="string"?o:o.type;if(!u)throw new Error(Ai(28));if(u in t)throw new Error(Ai(29));return t[u]=s,i},addAsyncThunk(o,s){return s.pending&&(t[o.pending.type]=s.pending),s.rejected&&(t[o.rejected.type]=s.rejected),s.fulfilled&&(t[o.fulfilled.type]=s.fulfilled),s.settled&&n.push({matcher:o.settled,reducer:s.settled}),i},addMatcher(o,s){return n.push({matcher:o,reducer:s}),i},addDefaultCase(o){return r=o,i}};return e(i),[t,n,r]}function kZ(e){return typeof e=="function"}function IZ(e,t){let[n,r,i]=aL(t),o;if(kZ(e))o=()=>rO(e());else{const u=rO(e);o=()=>u}function s(u=o(),d){let f=[n[d.type],...r.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return f.filter(m=>!!m).length===0&&(f=[i]),f.reduce((m,p)=>{if(p)if(ku(m)){const _=p(m,d);return _===void 0?m:_}else{if(Xo(m))return tL(m,b=>p(b,d));{const b=p(m,d);if(b===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return m},u)}return s.getInitialState=o,s}var UZ=(e,t)=>MZ(e)?e.match(t):e(t);function zZ(...e){return t=>e.some(n=>UZ(n,t))}var BZ="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",oL=(e=21)=>{let t="",n=e;for(;n--;)t+=BZ[Math.random()*64|0];return t},FZ=["name","message","stack","code"],bb=class{constructor(e,t){this.payload=e,this.meta=t}_type},aO=class{constructor(e,t){this.payload=e,this.meta=t}_type},$Z=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of FZ)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},oO="External signal was aborted",sL=(()=>{function e(t,n,r){const i=fn(t+"/fulfilled",(d,f,m,p)=>({payload:d,meta:{...p||{},arg:m,requestId:f,requestStatus:"fulfilled"}})),o=fn(t+"/pending",(d,f,m)=>({payload:void 0,meta:{...m||{},arg:f,requestId:d,requestStatus:"pending"}})),s=fn(t+"/rejected",(d,f,m,p,b)=>({payload:p,error:(r&&r.serializeError||$Z)(d||"Rejected"),meta:{...b||{},arg:m,requestId:f,rejectedWithValue:!!p,requestStatus:"rejected",aborted:d?.name==="AbortError",condition:d?.name==="ConditionError"}}));function u(d,{signal:f}={}){return(m,p,b)=>{const _=r?.idGenerator?r.idGenerator(d):oL(),w=new AbortController;let x,C;function E(O){C=O,w.abort()}f&&(f.aborted?E(oO):f.addEventListener("abort",()=>E(oO),{once:!0}));const j=async function(){let O;try{let U=r?.condition?.(d,{getState:p,extra:b});if(HZ(U)&&(U=await U),U===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const $=new Promise((K,X)=>{x=()=>{X({name:"AbortError",message:C||"Aborted"})},w.signal.addEventListener("abort",x)});m(o(_,d,r?.getPendingMeta?.({requestId:_,arg:d},{getState:p,extra:b}))),O=await Promise.race([$,Promise.resolve(n(d,{dispatch:m,getState:p,extra:b,requestId:_,signal:w.signal,abort:E,rejectWithValue:(K,X)=>new bb(K,X),fulfillWithValue:(K,X)=>new aO(K,X)})).then(K=>{if(K instanceof bb)throw K;return K instanceof aO?i(K.payload,_,d,K.meta):i(K,_,d)})])}catch(U){O=U instanceof bb?s(null,_,d,U.payload,U.meta):s(U,_,d)}finally{x&&w.signal.removeEventListener("abort",x)}return r&&!r.dispatchConditionRejection&&s.match(O)&&O.meta.condition||m(O),O}();return Object.assign(j,{abort:E,requestId:_,arg:d,unwrap(){return j.then(VZ)}})}}return Object.assign(u,{pending:o,rejected:s,fulfilled:i,settled:zZ(s,i),typePrefix:t})}return e.withTypes=()=>e,e})();function VZ(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function HZ(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var qZ=Symbol.for("rtk-slice-createasyncthunk");function GZ(e,t){return`${e}/${t}`}function YZ({creators:e}={}){const t=e?.asyncThunk?.[qZ];return function(r){const{name:i,reducerPath:o=i}=r;if(!i)throw new Error(Ai(11));const s=(typeof r.reducers=="function"?r.reducers(KZ()):r.reducers)||{},u=Object.keys(s),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(O,N){const U=typeof O=="string"?O:O.type;if(!U)throw new Error(Ai(12));if(U in d.sliceCaseReducersByType)throw new Error(Ai(13));return d.sliceCaseReducersByType[U]=N,f},addMatcher(O,N){return d.sliceMatchers.push({matcher:O,reducer:N}),f},exposeAction(O,N){return d.actionCreators[O]=N,f},exposeCaseReducer(O,N){return d.sliceCaseReducersByName[O]=N,f}};u.forEach(O=>{const N=s[O],U={reducerName:O,type:GZ(i,O),createNotation:typeof r.reducers=="function"};XZ(N)?JZ(U,N,f,t):ZZ(U,N,f)});function m(){const[O={},N=[],U=void 0]=typeof r.extraReducers=="function"?aL(r.extraReducers):[r.extraReducers],$={...O,...d.sliceCaseReducersByType};return IZ(r.initialState,K=>{for(let X in $)K.addCase(X,$[X]);for(let X of d.sliceMatchers)K.addMatcher(X.matcher,X.reducer);for(let X of N)K.addMatcher(X.matcher,X.reducer);U&&K.addDefaultCase(U)})}const p=O=>O,b=new Map,_=new WeakMap;let w;function x(O,N){return w||(w=m()),w(O,N)}function C(){return w||(w=m()),w.getInitialState()}function E(O,N=!1){function U(K){let X=K[O];return typeof X>"u"&&N&&(X=Kp(_,U,C)),X}function $(K=p){const X=Kp(b,N,()=>new WeakMap);return Kp(X,K,()=>{const oe={};for(const[ee,J]of Object.entries(r.selectors??{}))oe[ee]=WZ(J,K,()=>Kp(_,K,C),N);return oe})}return{reducerPath:O,getSelectors:$,get selectors(){return $(U)},selectSlice:U}}const j={name:i,reducer:x,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:C,...E(o),injectInto(O,{reducerPath:N,...U}={}){const $=N??o;return O.inject({reducerPath:$,reducer:x},U),{...j,...E($,!0)}}};return j}}function WZ(e,t,n,r){function i(o,...s){let u=t(o);return typeof u>"u"&&r&&(u=n()),e(u,...s)}return i.unwrapped=e,i}var Nt=YZ();function KZ(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function ZZ({type:e,reducerName:t,createNotation:n},r,i){let o,s;if("reducer"in r){if(n&&!QZ(r))throw new Error(Ai(17));o=r.reducer,s=r.prepare}else o=r;i.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,s?fn(e,s):fn(e))}function XZ(e){return e._reducerDefinitionType==="asyncThunk"}function QZ(e){return e._reducerDefinitionType==="reducerWithPrepare"}function JZ({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Ai(18));const{payloadCreator:o,fulfilled:s,pending:u,rejected:d,settled:f,options:m}=n,p=i(e,o,m);r.exposeAction(t,p),s&&r.addCase(p.fulfilled,s),u&&r.addCase(p.pending,u),d&&r.addCase(p.rejected,d),f&&r.addMatcher(p.settled,f),r.exposeCaseReducer(t,{fulfilled:s||Zp,pending:u||Zp,rejected:d||Zp,settled:f||Zp})}function Zp(){}var eX="task",lL="listener",uL="completed",$w="cancelled",tX=`task-${$w}`,nX=`task-${uL}`,Yx=`${lL}-${$w}`,rX=`${lL}-${uL}`,hy=class{constructor(e){this.code=e,this.message=`${eX} ${$w} (reason: ${e})`}name="TaskAbortError";message},Vw=(e,t)=>{if(typeof e!="function")throw new TypeError(Ai(32))},Qg=()=>{},cL=(e,t=Qg)=>(e.catch(t),e),fL=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Tu=(e,t)=>{const n=e.signal;n.aborted||("reason"in n||Object.defineProperty(n,"reason",{enumerable:!0,value:t,configurable:!0,writable:!0}),e.abort(t))},Ou=e=>{if(e.aborted){const{reason:t}=e;throw new hy(t)}};function dL(e,t){let n=Qg;return new Promise((r,i)=>{const o=()=>i(new hy(e.reason));if(e.aborted){o();return}n=fL(e,o),t.finally(()=>n()).then(r,i)}).finally(()=>{n=Qg})}var iX=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof hy?"cancelled":"rejected",error:n}}finally{t?.()}},Jg=e=>t=>cL(dL(e,t).then(n=>(Ou(e),n))),hL=e=>{const t=Jg(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:Xc}=Object,sO={},my="listenerMiddleware",aX=(e,t)=>{const n=r=>fL(e,()=>Tu(r,e.reason));return(r,i)=>{Vw(r);const o=new AbortController;n(o);const s=iX(async()=>{Ou(e),Ou(o.signal);const u=await r({pause:Jg(o.signal),delay:hL(o.signal),signal:o.signal});return Ou(o.signal),u},()=>Tu(o,nX));return i?.autoJoin&&t.push(s.catch(Qg)),{result:Jg(e)(s),cancel(){Tu(o,tX)}}}},oX=(e,t)=>{const n=async(r,i)=>{Ou(t);let o=()=>{};const u=[new Promise((d,f)=>{let m=e({predicate:r,effect:(p,b)=>{b.unsubscribe(),d([p,b.getState(),b.getOriginalState()])}});o=()=>{m(),f()}})];i!=null&&u.push(new Promise(d=>setTimeout(d,i,null)));try{const d=await dL(t,Promise.race(u));return Ou(t),d}finally{o()}};return(r,i)=>cL(n(r,i))},mL=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:o}=e;if(t)i=fn(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Ai(21));return Vw(o),{predicate:i,type:t,effect:o}},pL=Xc(e=>{const{type:t,predicate:n,effect:r}=mL(e);return{id:oL(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Ai(22))}}},{withTypes:()=>pL}),lO=(e,t)=>{const{type:n,effect:r,predicate:i}=mL(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===i)&&o.effect===r)},Wx=e=>{e.pending.forEach(t=>{Tu(t,Yx)})},sX=e=>()=>{e.forEach(Wx),e.clear()},uO=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},gL=Xc(fn(`${my}/add`),{withTypes:()=>gL}),lX=fn(`${my}/removeAll`),vL=Xc(fn(`${my}/remove`),{withTypes:()=>vL}),uX=(...e)=>{console.error(`${my}/error`,...e)},em=(e={})=>{const t=new Map,{extra:n,onError:r=uX}=e;Vw(r);const i=m=>(m.unsubscribe=()=>t.delete(m.id),t.set(m.id,m),p=>{m.unsubscribe(),p?.cancelActive&&Wx(m)}),o=m=>{const p=lO(t,m)??pL(m);return i(p)};Xc(o,{withTypes:()=>o});const s=m=>{const p=lO(t,m);return p&&(p.unsubscribe(),m.cancelActive&&Wx(p)),!!p};Xc(s,{withTypes:()=>s});const u=async(m,p,b,_)=>{const w=new AbortController,x=oX(o,w.signal),C=[];try{m.pending.add(w),await Promise.resolve(m.effect(p,Xc({},b,{getOriginalState:_,condition:(E,j)=>x(E,j).then(Boolean),take:x,delay:hL(w.signal),pause:Jg(w.signal),extra:n,signal:w.signal,fork:aX(w.signal,C),unsubscribe:m.unsubscribe,subscribe:()=>{t.set(m.id,m)},cancelActiveListeners:()=>{m.pending.forEach((E,j,O)=>{E!==w&&(Tu(E,Yx),O.delete(E))})},cancel:()=>{Tu(w,Yx),m.pending.delete(w)},throwIfCancelled:()=>{Ou(w.signal)}})))}catch(E){E instanceof hy||uO(r,E,{raisedBy:"effect"})}finally{await Promise.all(C),Tu(w,rX),m.pending.delete(w)}},d=sX(t);return{middleware:m=>p=>b=>{if(!WN(b))return p(b);if(gL.match(b))return o(b.payload);if(lX.match(b)){d();return}if(vL.match(b))return s(b.payload);let _=m.getState();const w=()=>{if(_===sO)throw new Error(Ai(23));return _};let x;try{if(x=p(b),t.size>0){const C=m.getState(),E=Array.from(t.values());for(const j of E){let O=!1;try{O=j.predicate(b,C,_)}catch(N){O=!1,uO(r,N,{raisedBy:"predicate"})}O&&u(j,b,m,w)}}}finally{_=sO}return x},startListening:o,stopListening:s,clearListeners:d}};function Ai(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const{actions:cX,reducer:fX}=Nt({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:dX,resetAppUpdate:hX}=cX,mX=fX,pX=(e,t)=>{e.factory("App",rZ),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>dX),e.serviceFactory("resetAppUpdate",()=>hX)},cO={"Content-Type":"application/json"},fO=e=>e?.body?e?{...e,headers:{...e.headers??{},...cO}}:{headers:cO}:e;let gX=class{#t;constructor(t=globalThis.fetch.bind(globalThis)){this.#t=t}async jsonRequest(t,n){const r=await this.#t(t,fO(n)),i=await r.json();if(!r.ok)throw i;return i}async emptyRequest(t,n){const r=await this.#t(t,fO(n));if(!r.ok)throw await r.json()}};function ev(e){return t=>{const{resetSelectedServer:n}=t;return A.useEffect(()=>{n()},[n]),y.jsx(e,{...t})}}let vX=class extends A.Component{constructor(t){super(t),this.state={hasError:!1}}static getDerivedStateFromError(){return{hasError:!0}}componentDidCatch(t){const{console:n=globalThis.console}=this.props;n.error(t)}render(){const{hasError:t}=this.state,{location:n=globalThis.location}=this.props;if(t)return y.jsxs(HN,{title:"Oops! This is awkward :S",children:[y.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),y.jsx("br",{}),y.jsx(Rt,{size:"lg",onClick:()=>n.reload(),children:"Take me back"})]});const{children:r}=this.props;return r}};const Ti=({href:e,children:t,rel:n,...r})=>y.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),yX=({id:e,name:t})=>y.jsxs(Rr,{to:`/server/${e}`,className:Pe("servers-list__server-item","flex items-center justify-between gap-x-2 px-4 py-3","rounded-none hover:bg-lm-secondary hover:dark:bg-dm-secondary","border-b last:border-0 border-lm-border dark:border-dm-border"),children:[y.jsx("span",{className:"truncate",children:t}),y.jsx(Ye,{icon:Ig})]}),yL=({servers:e,borderless:t})=>y.jsx(y.Fragment,{children:e.length>0&&y.jsx("div",{"data-testid":"list",className:Pe("w-full border-lm-border dark:border-dm-border","md:max-h-56 md:overflow-y-auto -mb-1 scroll-thin",{"border-y":!t}),children:e.map(({id:n,name:r})=>y.jsx(yX,{id:n,name:r},n))})}),bL=({color:e=Oh(),className:t})=>y.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:y.jsxs("g",{fill:e,children:[y.jsx("path",{d:" M 23.71 85.08 C 17.22 49.81 49.44 14.86 85.08 18.12 C 118.83 19.21 145.72 53.33 139.45 86.37 C 155.64 102.30 171.32 118.83 187.87 134.36 C 198.32 111.73 208.84 89.12 219.57 66.62 C 226.05 53.84 243.47 48.74 255.73 56.27 C 263.76 62.10 270.34 69.69 277.25 76.75 C 286.28 86.61 285.72 102.89 276.31 112.31 C 223.38 165.37 170.38 218.37 117.35 271.34 C 107.72 280.99 91.01 281.25 81.11 271.86 C 74.39 264.94 66.82 258.69 61.24 250.77 C 53.72 238.52 58.85 221.07 71.64 214.62 C 94.11 203.87 116.72 193.38 139.33 182.91 C 123.81 166.36 107.30 150.68 91.37 134.49 C 60.20 140.28 27.37 116.78 23.71 85.08 Z"}),y.jsx("path",{d:" M 205.21 201.23 C 225.32 181.36 260.88 181.11 281.14 200.86 C 299.25 218.75 317.37 236.65 335.10 254.93 C 356.73 278.01 352.01 318.70 326.03 336.56 C 320.07 330.47 313.73 324.65 308.12 318.28 C 323.86 309.39 328.76 286.18 316.63 272.39 C 301.73 256.95 286.30 242.03 271.24 226.75 C 264.49 219.65 256.80 212.00 246.37 211.52 C 224.65 208.64 205.52 233.36 214.49 253.58 C 221.09 266.81 234.22 275.12 243.62 286.24 C 240.43 295.96 238.09 306.13 238.29 316.46 C 225.55 304.29 213.16 291.73 200.89 279.09 C 180.97 257.57 183.10 220.45 205.21 201.23 Z"}),y.jsx("path",{d:" M 273.90 352.07 C 252.28 328.99 256.98 288.31 282.96 270.46 C 288.93 276.54 295.26 282.36 300.88 288.72 C 285.14 297.62 280.23 320.82 292.38 334.61 C 307.27 350.05 322.70 364.96 337.75 380.25 C 344.51 387.35 352.20 395.00 362.64 395.48 C 384.35 398.37 403.49 373.64 394.51 353.42 C 387.92 340.18 374.78 331.88 365.38 320.76 C 368.56 311.04 370.91 300.86 370.71 290.54 C 383.45 302.70 395.84 315.27 408.11 327.91 C 428.03 349.43 425.90 386.55 403.78 405.77 C 383.68 425.64 348.13 425.89 327.86 406.14 C 309.75 388.25 291.60 370.37 273.90 352.07 Z"}),y.jsx("path",{d:" M 422.11 403.83 C 431.96 394.07 441.60 384.06 451.66 374.51 C 460.90 383.74 471.89 392.70 474.89 406.11 C 480.16 429.97 484.08 454.13 488.76 478.12 C 490.00 483.41 484.47 488.29 479.35 486.63 C 454.66 481.52 429.55 478.12 405.14 471.84 C 393.17 467.97 385.20 457.75 376.55 449.27 C 386.39 439.49 396.13 429.60 406.06 419.91 C 416.37 433.45 435.74 414.00 422.11 403.83 Z"})]})}),bX=({servers:e})=>{const t=uo(),n=Object.values(e),r=n.length>0;return A.useEffect(()=>{const i=n.find(({autoConnect:o})=>o);i&&t(`/server/${i.id}`)},[n,t]),y.jsx("div",{className:"px-3 w-full",children:y.jsx(un,{className:"mx-auto max-w-[720px] overflow-hidden",children:y.jsxs("div",{className:"flex flex-col md:flex-row",children:[y.jsx("div",{className:"p-6 hidden md:flex items-center w-[40%]",children:y.jsx("div",{className:"w-full",children:y.jsx(bL,{})})}),y.jsxs("div",{className:"md:border-l border-lm-border dark:border-dm-border flex-grow",children:[y.jsx("h1",{className:Pe("p-4 text-center border-lm-border dark:border-dm-border",{"border-b":!r}),children:"Welcome!"}),r?y.jsx(yL,{servers:n}):y.jsxs("div",{className:"p-6 text-center flex flex-col gap-12 text-xl",children:[y.jsx("p",{children:"This application will help you manage your Shlink servers."}),y.jsx("p",{children:y.jsxs(Rt,{to:"/server/create",size:"lg",inline:!0,children:[y.jsx(Ye,{icon:Gh,widthAuto:!0})," Add a server"]})}),y.jsx("p",{children:y.jsx(Ti,{href:"https://shlink.io/documentation",children:y.jsxs("small",{children:[y.jsx("span",{className:"mr-2",children:"Learn more about Shlink"}),y.jsx(Ye,{icon:G$})]})})})]})]})]})})})},_L=()=>{const{ServersDropdown:e}=Pa(_L),{pathname:t}=Cr(),n="/settings";return y.jsxs(Ux,{className:"[&]:fixed top-0 z-900",brand:y.jsxs(Rr,{to:"/",className:"[&]:text-white no-underline flex items-center gap-2",children:[y.jsx(bL,{className:"w-7",color:"white"})," ",y.jsx("small",{className:"font-normal",children:"Shlink"})]}),children:[y.jsxs(Ux.MenuItem,{to:n,active:t.startsWith(n),className:"flex items-center gap-1.5",children:[y.jsx(Ye,{icon:F$})," Settings"]}),y.jsx(e,{})]})},_X=Ra(_L,["ServersDropdown"]),xX=({children:e})=>{const t=Cr();return A.useEffect(()=>{scrollTo(0,0)},[t]),y.jsx(y.Fragment,{children:e})},xL=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),wL=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),_b=e=>Object.prototype.toString.call(e)==="[object Object]",SL=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const o=t(...r);return n[i]=o,o}},Tf=(e,t)=>{const n={...e};return!_b(e)||!_b(t)||Object.keys(t).forEach(r=>{_b(t[r])?n[r]=r in e&&e[r]!==void 0?Tf(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},CL=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),wX=(e,t)=>[...e].sort((n,r)=>{const i=t(n),o=t(r);return i===o?0:i<o?-1:1}),Qc=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},dO=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]])),SX=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,hO=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(SX);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},mO=e=>e==="*"||e==="x"||e==="X",pO=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},CX=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],EX=(e,t)=>{if(mO(e)||mO(t))return 0;const[n,r]=CX(pO(e),pO(t));return n>r?1:n<r?-1:0},gO=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=EX(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},AX=(e,t)=>{const n=hO(e),r=hO(t),i=n.pop(),o=r.pop(),s=gO(n,r);return s!==0?s:i&&o?gO(i.split("."),o.split(".")):i||o?i?-1:1:0},Kx=(e,t,n)=>{TX(n);const r=AX(e,t);return EL[n].includes(r)},EL={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},vO=Object.keys(EL),TX=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(vO.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${vO.join("|")}`)},AL=SL(e=>e,e=>{try{return Kx(e,e,"=")}catch{return!1}}),TL=e=>AL(e)?`v${e}`:e,OL=(e,t="latest")=>AL(e)?e:t,OX="%_VERSION_%",jX=e=>TL(OL(e)),yO=({project:e,version:t})=>y.jsx(Ti,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"text-gray-500",children:y.jsx("b",{children:t})}),MX=({selectedServer:e,clientVersion:t=OX})=>{const n=jX(t);return y.jsxs("small",{className:"text-gray-500",children:[uw(e)&&y.jsxs(y.Fragment,{children:["Server: ",y.jsx(yO,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",y.jsx(yO,{project:"shlink-web-client",version:n})]})},PX=({selectedServer:e})=>y.jsx("div",{className:Pe("text-center",{"md:ml-(--aside-menu-width)":uw(e)}),children:y.jsx(MX,{selectedServer:e})}),Hw={INVALID_ARGUMENT:"https://shlink.io/api/error/invalid-data",INVALID_SHORT_URL_DELETION:"https://shlink.io/api/error/invalid-short-url-deletion",DOMAIN_NOT_FOUND:"https://shlink.io/api/error/domain-not-found",FORBIDDEN_OPERATION:"https://shlink.io/api/error/forbidden-tag-operation",INVALID_SLUG:"https://shlink.io/api/error/non-unique-slug",INVALID_SHORTCODE:"https://shlink.io/api/error/short-url-not-found",TAG_CONFLICT:"https://shlink.io/api/error/tag-conflict",TAG_NOT_FOUND:"https://shlink.io/api/error/tag-not-found",MERCURE_NOT_CONFIGURED:"https://shlink.io/api/error/mercure-not-configured",INVALID_AUTHORIZATION:"https://shlink.io/api/error/missing-authentication",INVALID_API_KEY:"https://shlink.io/api/error/invalid-api-key",NOT_FOUND:"https://shlink.io/api/error/not-found",INVALID_URL:"https://shlink.io/api/error/invalid-url"};Object.freeze(Hw);const qw=(e,t,n=1)=>CL(n,e+1).map(t),RX=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,bu=e=>e!=null&&!RX(e),xb=e=>e||null,Zx=e=>e?"true":"false",wb=e=>e===void 0?void 0:Zx(e),NX=e=>{if(e.length<2)return e[0]??"";const[t,...n]=e.reverse();return`${n.reverse().join(", ")} and ${t}`},bO="[&]:p-0 [&]:md:w-1/4 [&]:rounded-none",LX=({onChange:e,className:t})=>{const n=Un("qrCodes",Of),{color:r,bgColor:i}=n;return y.jsxs(Pt,{title:"Colors",className:t,bodyClassName:"flex flex-col gap-4",children:[y.jsx(li,{label:"Default color:",helpText:y.jsxs(y.Fragment,{children:["QR codes will initially use ",y.jsx("b",{"data-testid":"color",children:r})," color."]}),type:"color",value:r,onChange:o=>e({...n,color:o.target.value}),inputClassName:bO}),y.jsx(li,{label:"Default background color:",helpText:y.jsxs(y.Fragment,{children:["QR codes will initially use ",y.jsx("b",{"data-testid":"bg-color",children:i})," background color."]}),type:"color",value:i,onChange:o=>e({...n,bgColor:o.target.value}),inputClassName:bO})]})},jL=({errorCorrection:e,onChange:t})=>y.jsxs(Qe,{buttonContent:e?`Error correction (${e})`:y.jsx("i",{children:"Default error correction"}),buttonClassName:"w-full",children:[y.jsxs(Qe.Item,{selected:e==="L",onClick:()=>t("L"),children:[y.jsx("b",{children:"L"}),"ow"]}),y.jsxs(Qe.Item,{selected:e==="M",onClick:()=>t("M"),children:[y.jsx("b",{children:"M"}),"edium"]}),y.jsxs(Qe.Item,{selected:e==="Q",onClick:()=>t("Q"),children:[y.jsx("b",{children:"Q"}),"uartile"]}),y.jsxs(Qe.Item,{selected:e==="H",onClick:()=>t("H"),children:[y.jsx("b",{children:"H"}),"igh"]})]}),DX=["png","svg","webp","jpeg"],ML=({format:e,onChange:t})=>y.jsx(Qe,{buttonContent:`Format (${e})`,buttonClassName:"w-full",children:DX.map(n=>y.jsx(Qe.Item,{selected:e===n,onClick:()=>t(n),children:n},n))}),Uu=({className:e,size:t,...n})=>y.jsx("span",{className:Pe("text-gray-500 dark:text-gray-400",{"text-sm":t==="sm","text-lg":t==="lg"},e),...n}),kX=({onChange:e})=>{const t=Un("qrCodes",Of),{format:n,errorCorrection:r}=t;return y.jsxs(Pt,{title:"Format",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx(ML,{format:n,onChange:i=>e({...t,format:i})}),y.jsxs(Uu,{size:"sm",children:["When downloading a QR code, it will use ",y.jsx("b",{"data-testid":"format",children:n})," format by default."]})]}),y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsx(jL,{errorCorrection:r,onChange:i=>e({...t,errorCorrection:i})}),y.jsxs(Uu,{size:"sm",children:["QR codes will initially have a ",y.jsx("b",{"data-testid":"error-correction",children:r})," error correction."]})]})]})},IX=({onChange:e,className:t})=>{const n=Un("qrCodes",Of),{size:r,margin:i}=n;return y.jsxs(Pt,{title:"Size",className:t,bodyClassName:"flex flex-col gap-4",children:[y.jsx(li,{label:"Default dimensions:",helpText:y.jsxs(y.Fragment,{children:["QR codes will be initially generated with ",y.jsxs("b",{"data-testid":"size",children:[r,"x",r,"px"]}),"."]}),type:"range",value:r,step:10,min:50,max:1e3,onChange:o=>e({...n,size:Number(o.target.value)}),inputClassName:"[&]:p-0"}),y.jsx(li,{label:"Default margin:",helpText:y.jsxs(y.Fragment,{children:["QR codes will be initially generated with a ",y.jsxs("b",{"data-testid":"margin",children:[i,"px"]})," margin."]}),type:"range",value:i,step:1,min:0,max:100,onChange:o=>e({...n,margin:Number(o.target.value)}),inputClassName:"[&]:p-0"})]})},Qo=({children:e,helpText:t,"data-testid":n,...r})=>y.jsxs("div",{"data-testid":n,children:[y.jsxs(Ma,{className:"flex items-center gap-x-2",children:[y.jsx(yK,{...r}),e]}),t&&y.jsx(Uu,{size:"sm","data-testid":n?`${n}-help-text`:"help-text",className:"pl-10",children:t})]}),UX=({toggleRealTimeUpdates:e,onIntervalChange:t})=>{const{enabled:n,interval:r}=Un("realTimeUpdates",{enabled:!0});return y.jsxs(Pt,{title:"Real-time updates",className:"h-full",bodyClassName:"flex flex-col gap-y-4",children:[y.jsx(Qo,{checked:n,onChange:e,helpText:y.jsxs(y.Fragment,{children:["Real-time updates are currently being ",y.jsx("b",{children:n?"processed":"ignored"}),"."]}),children:"Enable or disable real-time updates."}),y.jsxs("div",{children:[y.jsx(li,{label:y.jsx("span",{className:Pe({"dark:text-gray-400":!n}),children:"Real-time updates frequency (in minutes):"}),type:"number",min:0,placeholder:"Immediate",disabled:!n,value:`${r??""}`,onChange:({target:i})=>t(Number(i.value))}),n&&y.jsx(Uu,{size:"sm",children:r?y.jsxs("span",{children:["Updates will be reflected in the UI every ",y.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},Sb=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",zX=e=>e==="includes"?y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"including"})," provided input."]}):y.jsxs(y.Fragment,{children:["The list of suggested tags will contain those ",y.jsx("b",{children:"starting with"})," provided input."]}),BX=({onChange:e})=>{const t=Un("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return y.jsxs(Pt,{title:"Short URLs form",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsxs(Qo,{"data-testid":"validate-url",checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),helpText:y.jsxs(y.Fragment,{children:["The initial state of the ",y.jsx("b",{children:"Validate URL"})," checkbox will be ",y.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]}),children:["Request validation on long URLs when creating new short URLs."," ",y.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]})]}),y.jsx(Qo,{"data-testid":"forward-query",checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),helpText:y.jsxs(y.Fragment,{children:["The initial state of the ",y.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",y.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]}),children:"Make all new short URLs forward their query params to the long URL."}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx(Ma,{className:"mb-1.5",children:"Tag suggestions search mode:"}),y.jsxs(Qe,{buttonContent:Sb(t.tagFilteringMode),buttonClassName:"w-full",children:[y.jsx(Qe.Item,{selected:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:Sb("startsWith")}),y.jsx(Qe.Item,{selected:t.tagFilteringMode==="includes",onClick:n("includes"),children:Sb("includes")})]}),y.jsx(Uu,{size:"sm",className:"mt-0.5",children:zX(t.tagFilteringMode)})]})]})},FX={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},$X=({onChange:e,defaultOrdering:t})=>{const n=Un("shortUrlsList"),r=n?.confirmDeletions??!0;return y.jsxs(Pt,{title:"Short URLs list",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsx(Qo,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),helpText:y.jsxs(y.Fragment,{children:["When deleting a short URL, confirmation ",y.jsx("b",{children:r?"will":"won't"})," be required."]}),children:"Request confirmation before deleting a short URL."}),y.jsxs("div",{className:"flex flex-col gap-1.5",children:[y.jsx(Ma,{children:"Default ordering for short URLs list:"}),y.jsx(Jh,{buttonClassName:"w-full",items:FX,order:n?.defaultOrdering??t,onChange:i=>e({defaultOrdering:!i.dir&&!i.field?void 0:i})})]})]})},VX={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},HX=({onChange:e})=>{const t=Un("tags",{});return y.jsx(Pt,{title:"Tags",className:"card",children:y.jsxs("div",{className:"flex flex-col gap-1.5",children:[y.jsx(Ma,{children:"Default ordering for tags list:"}),y.jsx(Jh,{buttonClassName:"w-full",items:VX,order:t.defaultOrdering??{},onChange:n=>e({...t,defaultOrdering:!n.field&&!n.dir?void 0:n})})]})})},qX=({onChange:e,_matchMedia:t})=>{const n=Un("ui"),r=A.useMemo(()=>n?.theme??Iw(t),[n?.theme,t]);return y.jsxs(Pt,{title:"User interface",bodyClassName:"flex justify-between items-center",children:[y.jsx(Qo,{checked:r==="dark",onChange:i=>e({...n,theme:i?"dark":"light"}),children:"Use dark theme."}),y.jsx(Ye,{icon:r==="dark"?vV:lV})]})},_O={potentialBot:"Potential bot",date:"Date",country:"Country",region:"Region",city:"City",browser:"Browser",os:"OS",userAgent:"User agent",referer:"Referrer",visitedUrl:"Visited URL"},Tg={browser:["userAgent"],os:["userAgent"],userAgent:["browser","os"]};Object.freeze(Tg);const GX=({onChange:e})=>{const t=Un("visitsList"),n=A.useMemo(()=>Tf(py,t?.columns??{}),[t?.columns]),r=A.useCallback((i,o)=>{const s={...n,[i]:o};o&&Tg[i]?.forEach(u=>{s[u]=!1}),e({columns:s})},[n,e]);return y.jsxs(Pt,{title:"Visits list",children:[y.jsx("p",{className:"mb-2",children:"Columns to show in visits table:"}),y.jsx("ul",{className:"flex flex-col gap-y-1",children:Object.entries(_O).map(([i,o])=>y.jsx("li",{children:y.jsx(Qo,{checked:n[i],onChange:s=>r(i,s),children:y.jsxs("span",{className:"inline-flex gap-2",children:[o,Tg[i]&&y.jsxs(Uu,{children:["(excludes ",NX(Tg[i].map(s=>_O[s])),")"]})]})})},i))})]})},PL={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},YX=(e,t)=>!e||e==="all"?t:PL[e],WX=({onChange:e,active:t,allText:n})=>y.jsxs(Qe,{buttonContent:YX(t,n),buttonClassName:"w-full",children:[y.jsx(Qe.Item,{selected:t==="all",onClick:()=>e("all"),children:n}),y.jsx(Qe.Separator,{}),Object.entries(PL).map(([r,i])=>y.jsx(Qe.Item,{selected:t===r,onClick:()=>e(r),children:i},r))]}),xO=e=>e?.defaultInterval??"last30Days",KX=({onChange:e})=>{const t=Un("visits"),n=A.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??xO(t),...i}),[e,t]);return y.jsxs(Pt,{title:"Visits",className:"card",bodyClassName:"flex flex-col gap-4",children:[y.jsx(Qo,{"data-testid":"exclude-bots",checked:!!t?.excludeBots,onChange:r=>n({excludeBots:r}),helpText:y.jsxs(y.Fragment,{children:["The visits coming from potential bots will be ",y.jsx("b",{children:t?.excludeBots?"excluded":"included"}),"."]}),children:"Exclude bots wherever possible (this options effect might depend on Shlink servers version)."}),y.jsx(Qo,{"data-testid":"compare-visits",checked:!!t?.loadPrevInterval,onChange:r=>n({loadPrevInterval:r}),helpText:y.jsxs(y.Fragment,{children:["When loading visits, previous period ",y.jsx("b",{children:t?.loadPrevInterval?"will":"won't"})," be loaded by default."]}),children:"Compare visits with previous period."}),y.jsxs("div",{className:"flex flex-col",children:[y.jsx(Ma,{className:"mb-1.5",children:"Default interval to load on visits sections:"}),y.jsx(WX,{allText:"All visits",active:xO(t),onChange:r=>n({defaultInterval:r})})]})]})},Gd=({children:e,className:t})=>y.jsx("div",{className:Pe("flex flex-col gap-4",t),children:e}),ZX=({settings:e,onUpdateSettings:t,defaultShortUrlsListOrdering:n})=>{const r=A.useCallback(d=>t?.(Tf(e,d)),[e,t]),i=A.useCallback(d=>r({realTimeUpdates:{enabled:d}}),[r]),o=A.useCallback(d=>r({realTimeUpdates:{interval:d}}),[r]),s=A.useCallback((d,f)=>r({[d]:f}),[r]),u=A.useCallback(d=>s("qrCodes",d),[s]);return y.jsxs(LL,{value:e,children:[y.jsxs(tl,{className:"mb-4 sticky top-(--header-height) z-2",children:[y.jsx(tl.Pill,{to:"../general",children:"General"}),y.jsx(tl.Pill,{to:"../short-urls",children:"Short URLs"}),y.jsx(tl.Pill,{to:"../visits",children:"Visits"}),y.jsx(tl.Pill,{to:"../tags",children:"Tags"}),y.jsx(tl.Pill,{to:"../qr-codes",children:"QR codes"})]}),y.jsxs(Hv,{children:[y.jsx(pt,{path:"general",element:y.jsxs(Gd,{children:[y.jsx(qX,{onChange:d=>s("ui",d)}),y.jsx(UX,{toggleRealTimeUpdates:i,onIntervalChange:o})]})}),y.jsx(pt,{path:"short-urls",element:y.jsxs(Gd,{children:[y.jsx(BX,{onChange:d=>s("shortUrlCreation",d)}),y.jsx($X,{defaultOrdering:n,onChange:d=>s("shortUrlsList",d)})]})}),y.jsx(pt,{path:"visits",element:y.jsxs(Gd,{children:[y.jsx(KX,{onChange:d=>s("visits",d)}),y.jsx(GX,{onChange:d=>s("visitsList",d)})]})}),y.jsx(pt,{path:"tags",element:y.jsx(Gd,{children:y.jsx(HX,{onChange:d=>s("tags",d)})})}),y.jsx(pt,{path:"qr-codes",element:y.jsxs(Gd,{children:[y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[y.jsx(IX,{onChange:u,className:"w-full"}),y.jsx(LX,{onChange:u,className:"w-full"})]}),y.jsx(kX,{onChange:u})]})}),y.jsx(pt,{path:"*",element:y.jsx(tw,{replace:!0,to:"../general"})})]})]})},Of={size:300,margin:0,color:"#000000",bgColor:"#ffffff",errorCorrection:"L",format:"png"};Object.freeze(Of);const py={potentialBot:!0,date:!0,country:!0,region:!1,city:!0,browser:!0,os:!0,userAgent:!1,referer:!0,visitedUrl:!0};Object.freeze(py);const RL={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},visitsList:{columns:py},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}},qrCodes:Of},NL=A.createContext(RL),{Provider:LL}=NL,Gw=()=>A.useContext(NL)??RL;function Un(e,t){return Gw()[e]??t}var uh={exports:{}};/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/var XX=uh.exports,wO;function QX(){return wO||(wO=1,function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,o=n.XMLHttpRequest,s=n.XDomainRequest,u=n.ActiveXObject,d=n.EventSource,f=n.document,m=n.Promise,p=n.fetch,b=n.Response,_=n.TextDecoder,w=n.TextEncoder,x=n.AbortController;if(typeof window<"u"&&typeof f<"u"&&!("readyState"in f)&&f.body==null&&(f.readyState="loading",window.addEventListener("load",function(de){f.readyState="complete"},!1)),o==null&&u!=null&&(o=function(){return new u("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(de){function we(){}return we.prototype=de,new we}),Date.now||(Date.now=function(){return new Date().getTime()}),x==null){var C=p;p=function(de,we){var Ae=we.signal;return C(de,{headers:we.headers,credentials:we.credentials,cache:we.cache}).then(function(Le){var Ve=Le.body.getReader();return Ae._reader=Ve,Ae._aborted&&Ae._reader.cancel(),{status:Le.status,statusText:Le.statusText,headers:Le.headers,body:{getReader:function(){return Ve}}}})},x=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function E(){this.bitsNeeded=0,this.codePoint=0}E.prototype.decode=function(de){function we(De,Re,Me){if(Me===1)return De>=128>>Re&&De<<Re<=2047;if(Me===2)return De>=2048>>Re&&De<<Re<=55295||De>=57344>>Re&&De<<Re<=65535;if(Me===3)return De>=65536>>Re&&De<<Re<=1114111;throw new Error}function Ae(De,Re){if(De===6*1)return Re>>6>15?3:Re>31?2:1;if(De===6*2)return Re>15?3:2;if(De===6*3)return 3;throw new Error}for(var Le=65533,Ve="",Fe=this.bitsNeeded,He=this.codePoint,be=0;be<de.length;be+=1){var _e=de[be];Fe!==0&&(_e<128||_e>191||!we(He<<6|_e&63,Fe-6,Ae(Fe,He)))&&(Fe=0,He=Le,Ve+=String.fromCharCode(He)),Fe===0?(_e>=0&&_e<=127?(Fe=0,He=_e):_e>=192&&_e<=223?(Fe=6*1,He=_e&31):_e>=224&&_e<=239?(Fe=6*2,He=_e&15):_e>=240&&_e<=247?(Fe=6*3,He=_e&7):(Fe=0,He=Le),Fe!==0&&!we(He,Fe,Ae(Fe,He))&&(Fe=0,He=Le)):(Fe-=6,He=He<<6|_e&63),Fe===0&&(He<=65535?Ve+=String.fromCharCode(He):(Ve+=String.fromCharCode(55296+(He-65535-1>>10)),Ve+=String.fromCharCode(56320+(He-65535-1&1023))))}return this.bitsNeeded=Fe,this.codePoint=He,Ve};var j=function(){try{return new _().decode(new w().encode("test"),{stream:!0})==="test"}catch(de){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+de)}return!1};(_==null||w==null||!j())&&(_=E);var O=function(){};function N(de){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=O,this.onload=O,this.onerror=O,this.onreadystatechange=O,this._contentType="",this._xhr=de,this._sendTimeout=0,this._abort=O}N.prototype.open=function(de,we){this._abort(!0);var Ae=this,Le=this._xhr,Ve=1,Fe=0;this._abort=function(Me){Ae._sendTimeout!==0&&(i(Ae._sendTimeout),Ae._sendTimeout=0),(Ve===1||Ve===2||Ve===3)&&(Ve=4,Le.onload=O,Le.onerror=O,Le.onabort=O,Le.onprogress=O,Le.onreadystatechange=O,Le.abort(),Fe!==0&&(i(Fe),Fe=0),Me||(Ae.readyState=4,Ae.onabort(null),Ae.onreadystatechange())),Ve=0};var He=function(){if(Ve===1){var Me=0,$e="",Ge=void 0;if("contentType"in Le)Me=200,$e="OK",Ge=Le.contentType;else try{Me=Le.status,$e=Le.statusText,Ge=Le.getResponseHeader("Content-Type")}catch{Me=0,$e="",Ge=void 0}Me!==0&&(Ve=2,Ae.readyState=2,Ae.status=Me,Ae.statusText=$e,Ae._contentType=Ge,Ae.onreadystatechange())}},be=function(){if(He(),Ve===2||Ve===3){Ve=3;var Me="";try{Me=Le.responseText}catch{}Ae.readyState=3,Ae.responseText=Me,Ae.onprogress()}},_e=function(Me,$e){if(($e==null||$e.preventDefault==null)&&($e={preventDefault:O}),be(),Ve===1||Ve===2||Ve===3){if(Ve=4,Fe!==0&&(i(Fe),Fe=0),Ae.readyState=4,Me==="load")Ae.onload($e);else if(Me==="error")Ae.onerror($e);else if(Me==="abort")Ae.onabort($e);else throw new TypeError;Ae.onreadystatechange()}},De=function(Me){Le!=null&&(Le.readyState===4?(!("onload"in Le)||!("onerror"in Le)||!("onabort"in Le))&&_e(Le.responseText===""?"error":"load",Me):Le.readyState===3?"onprogress"in Le||be():Le.readyState===2&&He())},Re=function(){Fe=r(function(){Re()},500),Le.readyState===3&&be()};"onload"in Le&&(Le.onload=function(Me){_e("load",Me)}),"onerror"in Le&&(Le.onerror=function(Me){_e("error",Me)}),"onabort"in Le&&(Le.onabort=function(Me){_e("abort",Me)}),"onprogress"in Le&&(Le.onprogress=be),"onreadystatechange"in Le&&(Le.onreadystatechange=function(Me){De(Me)}),("contentType"in Le||!("ontimeout"in o.prototype))&&(we+=(we.indexOf("?")===-1?"?":"&")+"padding=true"),Le.open(de,we,!0),"readyState"in Le&&(Fe=r(function(){Re()},0))},N.prototype.abort=function(){this._abort(!1)},N.prototype.getResponseHeader=function(de){return this._contentType},N.prototype.setRequestHeader=function(de,we){var Ae=this._xhr;"setRequestHeader"in Ae&&Ae.setRequestHeader(de,we)},N.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},N.prototype.send=function(){if((!("ontimeout"in o.prototype)||!("sendAsBinary"in o.prototype)&&!("mozAnon"in o.prototype))&&f!=null&&f.readyState!=null&&f.readyState!=="complete"){var de=this;de._sendTimeout=r(function(){de._sendTimeout=0,de.send()},4);return}var we=this._xhr;"withCredentials"in we&&(we.withCredentials=this.withCredentials);try{we.send(void 0)}catch(Ae){throw Ae}};function U(de){return de.replace(/[A-Z]/g,function(we){return String.fromCharCode(we.charCodeAt(0)+32)})}function $(de){for(var we=Object.create(null),Ae=de.split(`\r
`),Le=0;Le<Ae.length;Le+=1){var Ve=Ae[Le],Fe=Ve.split(": "),He=Fe.shift(),be=Fe.join(": ");we[U(He)]=be}this._map=we}$.prototype.get=function(de){return this._map[U(de)]},o!=null&&o.HEADERS_RECEIVED==null&&(o.HEADERS_RECEIVED=2);function K(){}K.prototype.open=function(de,we,Ae,Le,Ve,Fe,He){de.open("GET",Ve);var be=0;de.onprogress=function(){var De=de.responseText,Re=De.slice(be);be+=Re.length,Ae(Re)},de.onerror=function(De){De.preventDefault(),Le(new Error("NetworkError"))},de.onload=function(){Le(null)},de.onabort=function(){Le(null)},de.onreadystatechange=function(){if(de.readyState===o.HEADERS_RECEIVED){var De=de.status,Re=de.statusText,Me=de.getResponseHeader("Content-Type"),$e=de.getAllResponseHeaders();we(De,Re,Me,new $($e))}},de.withCredentials=Fe;for(var _e in He)Object.prototype.hasOwnProperty.call(He,_e)&&de.setRequestHeader(_e,He[_e]);return de.send(),de};function X(de){this._headers=de}X.prototype.get=function(de){return this._headers.get(de)};function oe(){}oe.prototype.open=function(de,we,Ae,Le,Ve,Fe,He){var be=null,_e=new x,De=_e.signal,Re=new _;return p(Ve,{headers:He,credentials:Fe?"include":"same-origin",signal:De,cache:"no-store"}).then(function(Me){return be=Me.body.getReader(),we(Me.status,Me.statusText,Me.headers.get("Content-Type"),new X(Me.headers)),new m(function($e,Ge){var Ze=function(){be.read().then(function(ut){if(ut.done)$e(void 0);else{var it=Re.decode(ut.value,{stream:!0});Ae(it),Ze()}}).catch(function(ut){Ge(ut)})};Ze()})}).catch(function(Me){if(Me.name!=="AbortError")return Me}).then(function(Me){Le(Me)}),{abort:function(){be?.cancel(),_e.abort()}}};function ee(){this._listeners=Object.create(null)}function J(de){r(function(){throw de},0)}ee.prototype.dispatchEvent=function(de){de.target=this;var we=this._listeners[de.type];if(we!=null)for(var Ae=we.length,Le=0;Le<Ae;Le+=1){var Ve=we[Le];try{typeof Ve.handleEvent=="function"?Ve.handleEvent(de):Ve.call(this,de)}catch(Fe){J(Fe)}}},ee.prototype.addEventListener=function(de,we){de=String(de);var Ae=this._listeners,Le=Ae[de];Le==null&&(Le=[],Ae[de]=Le);for(var Ve=!1,Fe=0;Fe<Le.length;Fe+=1)Le[Fe]===we&&(Ve=!0);Ve||Le.push(we)},ee.prototype.removeEventListener=function(de,we){de=String(de);var Ae=this._listeners,Le=Ae[de];if(Le!=null){for(var Ve=[],Fe=0;Fe<Le.length;Fe+=1)Le[Fe]!==we&&Ve.push(Le[Fe]);Ve.length===0?delete Ae[de]:Ae[de]=Ve}};function ne(de){this.type=de,this.target=void 0}function he(de,we){ne.call(this,de),this.data=we.data,this.lastEventId=we.lastEventId}he.prototype=Object.create(ne.prototype);function Q(de,we){ne.call(this,de),this.status=we.status,this.statusText=we.statusText,this.headers=we.headers}Q.prototype=Object.create(ne.prototype);function se(de,we){ne.call(this,de),this.error=we.error}se.prototype=Object.create(ne.prototype);var Z=-1,I=0,k=1,z=2,F=-1,P=0,G=1,Y=2,te=3,ue=/^text\/event\-stream(;.*)?$/i,fe=1e3,ge=18e6,D=function(de,we){var Ae=de==null?we:parseInt(de,10);return Ae!==Ae&&(Ae=we),B(Ae)},B=function(de){return Math.min(Math.max(de,fe),ge)},W=function(de,we,Ae){try{typeof we=="function"&&we.call(de,Ae)}catch(Le){J(Le)}};function le(de,we){ee.call(this),we=we||{},this.onopen=void 0,this.onmessage=void 0,this.onerror=void 0,this.url=void 0,this.readyState=void 0,this.withCredentials=void 0,this.headers=void 0,this._close=void 0,ce(this,de,we)}function H(){return o!=null&&"withCredentials"in o.prototype||s==null?new o:new s}var ae=p!=null&&b!=null&&"body"in b.prototype;function ce(de,we,Ae){we=String(we);var Le=!!Ae.withCredentials,Ve=Ae.lastEventIdQueryParameterName||"lastEventId",Fe=B(1e3),He=D(Ae.heartbeatTimeout,45e3),be="",_e=Fe,De=!1,Re=0,Me=Ae.headers||{},$e=Ae.Transport,Ge=ae&&$e==null?void 0:new N($e!=null?new $e:H()),Ze=$e!=null&&typeof $e!="string"?new $e:Ge==null?new oe:new K,ut=void 0,it=0,dt=Z,gt="",Dt="",yt="",Ui="",Wn=P,Rl=0,Nr=0,mo=function(Sn,hn,Kn,bn){if(dt===I)if(Sn===200&&Kn!=null&&ue.test(Kn)){dt=k,De=Date.now(),_e=Fe,de.readyState=k;var Zn=new Q("open",{status:Sn,statusText:hn,headers:bn});de.dispatchEvent(Zn),W(de,de.onopen,Zn)}else{var Cn="";Sn!==200?(hn&&(hn=hn.replace(/\s+/g," ")),Cn="EventSource's response has a status "+Sn+" "+hn+" that is not 200. Aborting the connection."):Cn="EventSource's response has a Content-Type specifying an unsupported type: "+(Kn==null?"-":Kn.replace(/\s+/g," "))+". Aborting the connection.",ka();var Zn=new Q("error",{status:Sn,statusText:hn,headers:bn});de.dispatchEvent(Zn),W(de,de.onerror,Zn),console.error(Cn)}},po=function(Sn){if(dt===k){for(var hn=-1,Kn=0;Kn<Sn.length;Kn+=1){var bn=Sn.charCodeAt(Kn);(bn===10||bn===13)&&(hn=Kn)}var Zn=(hn!==-1?Ui:"")+Sn.slice(0,hn+1);Ui=(hn===-1?Ui:"")+Sn.slice(hn+1),Sn!==""&&(De=Date.now(),Re+=Sn.length);for(var Cn=0;Cn<Zn.length;Cn+=1){var bn=Zn.charCodeAt(Cn);if(Wn===F&&bn===10)Wn=P;else if(Wn===F&&(Wn=P),bn===13||bn===10){if(Wn!==P){Wn===G&&(Nr=Cn+1);var Hr=Zn.slice(Rl,Nr-1),qr=Zn.slice(Nr+(Nr<Cn&&Zn.charCodeAt(Nr)===32?1:0),Cn);Hr==="data"?(gt+=`
`,gt+=qr):Hr==="id"?Dt=qr:Hr==="event"?yt=qr:Hr==="retry"?(Fe=D(qr,Fe),_e=Fe):Hr==="heartbeatTimeout"&&(He=D(qr,He),it!==0&&(i(it),it=r(function(){ui()},He)))}if(Wn===P){if(gt!==""){be=Dt,yt===""&&(yt="message");var Dn=new he(yt,{data:gt.slice(1),lastEventId:Dt});if(de.dispatchEvent(Dn),yt==="open"?W(de,de.onopen,Dn):yt==="message"?W(de,de.onmessage,Dn):yt==="error"&&W(de,de.onerror,Dn),dt===z)return}gt="",yt=""}Wn=bn===13?F:P}else Wn===P&&(Rl=Cn,Wn=G),Wn===G?bn===58&&(Nr=Cn+1,Wn=Y):Wn===Y&&(Wn=te)}}},zi=function(Sn){if(dt===k||dt===I){dt=Z,it!==0&&(i(it),it=0),it=r(function(){ui()},_e),_e=B(Math.min(Fe*16,_e*2)),de.readyState=I;var hn=new se("error",{error:Sn});de.dispatchEvent(hn),W(de,de.onerror,hn),Sn!=null&&console.error(Sn)}},ka=function(){dt=z,ut!=null&&(ut.abort(),ut=void 0),it!==0&&(i(it),it=0),de.readyState=z},ui=function(){if(it=0,dt!==Z){if(!De&&ut!=null)zi(new Error("No activity within "+He+" milliseconds. "+(dt===I?"No response received.":Re+" chars received.")+" Reconnecting.")),ut!=null&&(ut.abort(),ut=void 0);else{var Sn=Math.max((De||Date.now())+He-Date.now(),1);De=!1,it=r(function(){ui()},Sn)}return}De=!1,Re=0,it=r(function(){ui()},He),dt=I,gt="",yt="",Dt=be,Ui="",Rl=0,Nr=0,Wn=P;var hn=we;if(we.slice(0,5)!=="data:"&&we.slice(0,5)!=="blob:"&&be!==""){var Kn=we.indexOf("?");hn=Kn===-1?we:we.slice(0,Kn+1)+we.slice(Kn+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(qr,Dn){return Dn===Ve?"":qr}),hn+=(we.indexOf("?")===-1?"?":"&")+Ve+"="+encodeURIComponent(be)}var bn=de.withCredentials,Zn={};Zn.Accept="text/event-stream";var Cn=de.headers;if(Cn!=null)for(var Hr in Cn)Object.prototype.hasOwnProperty.call(Cn,Hr)&&(Zn[Hr]=Cn[Hr]);try{ut=Ze.open(Ge,mo,po,zi,hn,bn,Zn)}catch(qr){throw ka(),qr}};de.url=we,de.readyState=I,de.withCredentials=Le,de.headers=Me,de._close=ka,ui()}le.prototype=Object.create(ee.prototype),le.prototype.CONNECTING=I,le.prototype.OPEN=k,le.prototype.CLOSED=z,le.prototype.close=function(){this._close()},le.CONNECTING=I,le.OPEN=k,le.CLOSED=z,le.prototype.withCredentials=void 0;var ve=d;o!=null&&(d==null||!("withCredentials"in d.prototype))&&(ve=le),function(de){{var we=de(t);we!==void 0&&(e.exports=we)}}(function(de){de.EventSourcePolyfill=le,de.NativeEventSource=d,de.EventSource=ve})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:XX:globalThis)}(uh,uh.exports)),uh.exports}var JX=QX();const Yw=6048e5,eQ=864e5,DL=6e4,Ww=36e5,Xp=43200,SO=1440,CO=Symbol.for("constructDateFrom");function wr(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&CO in e?e[CO](t):e instanceof Date?new e.constructor(t):new Date(t)}function Tt(e,t){return wr(t||e,e)}function Kw(e,t,n){const r=Tt(e,n?.in);return isNaN(t)?wr(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function tQ(e,t,n){const r=Tt(e,n?.in);if(isNaN(t))return wr(e,NaN);if(!t)return r;const i=r.getDate(),o=wr(e,r.getTime());o.setMonth(r.getMonth()+t+1,0);const s=o.getDate();return i>=s?o:(r.setFullYear(o.getFullYear(),o.getMonth(),i),r)}function nQ(e,t,n){const{years:r=0,months:i=0,weeks:o=0,days:s=0,hours:u=0,minutes:d=0,seconds:f=0}=t,m=Tt(e,n?.in),p=i||r?tQ(m,i+r*12):m,b=s||o?Kw(p,s+o*7):p,_=d+u*60,x=(f+_*60)*1e3;return wr(e,+b+x)}let rQ={};function tm(){return rQ}function zu(e,t){const n=tm(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=Tt(e,t?.in),o=i.getDay(),s=(o<r?7:0)+o-r;return i.setDate(i.getDate()-s),i.setHours(0,0,0,0),i}function Ph(e,t){return zu(e,{...t,weekStartsOn:1})}function kL(e,t){const n=Tt(e,t?.in),r=n.getFullYear(),i=wr(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const o=Ph(i),s=wr(n,0);s.setFullYear(r,0,4),s.setHours(0,0,0,0);const u=Ph(s);return n.getTime()>=o.getTime()?r+1:n.getTime()>=u.getTime()?r:r-1}function of(e){const t=Tt(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 qu(e,...t){const n=wr.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function Bu(e,t){const n=Tt(e,t?.in);return n.setHours(0,0,0,0),n}function gy(e,t,n){const[r,i]=qu(n?.in,e,t),o=Bu(r),s=Bu(i),u=+o-of(o),d=+s-of(s);return Math.round((u-d)/eQ)}function iQ(e,t){const n=kL(e,t),r=wr(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Ph(r)}function IL(e,t){let n,r=t?.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=wr.bind(null,i));const o=Tt(i,r);(!n||n<o||isNaN(+o))&&(n=o)}),wr(r,n||NaN)}function aQ(e,t){let n,r=t?.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=wr.bind(null,i));const o=Tt(i,r);(!n||n>o||isNaN(+o))&&(n=o)}),wr(r,n||NaN)}function Og(e,t){const n=+Tt(e)-+Tt(t);return n<0?-1:n>0?1:n}function oQ(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function sQ(e){return!(!oQ(e)&&typeof e!="number"||isNaN(+Tt(e)))}function tv(e,t,n){const[r,i]=qu(n?.in,e,t),o=r.getFullYear()-i.getFullYear(),s=r.getMonth()-i.getMonth();return o*12+s}function lQ(e,t,n){const[r,i]=qu(n?.in,e,t),o=zu(r,n),s=zu(i,n),u=+o-of(o),d=+s-of(s);return Math.round((u-d)/Yw)}function UL(e,t,n){const[r,i]=qu(n?.in,e,t),o=EO(r,i),s=Math.abs(gy(r,i));r.setDate(r.getDate()-o*s);const u=+(EO(r,i)===-o),d=o*(s-u);return d===0?0:d}function EO(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function zL(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function uQ(e,t,n){const[r,i]=qu(n?.in,e,t),o=(+r-+i)/Ww;return zL(n?.roundingMethod)(o)}function cQ(e,t){return+Tt(e)-+Tt(t)}function sf(e,t){const n=Tt(e,t?.in);return n.setHours(23,59,59,999),n}function fQ(e,t){const n=Tt(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function dQ(e,t){const n=Tt(e,t?.in);return+sf(n,t)==+fQ(n,t)}function hQ(e,t,n){const[r,i,o]=qu(n?.in,e,e,t),s=Og(i,o),u=Math.abs(tv(i,o));if(u<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-s*u);let d=Og(i,o)===-s;dQ(r)&&u===1&&Og(r,o)===1&&(d=!1);const f=s*(u-+d);return f===0?0:f}function mQ(e,t,n){const r=cQ(e,t)/1e3;return zL(n?.roundingMethod)(r)}function pQ(e,t){const n=Tt(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function gQ(e,t){const n=t?.weekStartsOn,r=Tt(e,t?.in),i=r.getDay(),o=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+o),r.setHours(23,59,59,999),r}function vQ(e,t){return gQ(e,{...t,weekStartsOn:1})}const yQ={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"}},bQ=(e,t,n)=>{let r;const i=yQ[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function Cb(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const _Q={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},xQ={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},wQ={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},SQ={date:Cb({formats:_Q,defaultWidth:"full"}),time:Cb({formats:xQ,defaultWidth:"full"}),dateTime:Cb({formats:wQ,defaultWidth:"full"})},CQ={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},EQ=(e,t,n,r)=>CQ[e];function Yd(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const s=e.defaultFormattingWidth||e.defaultWidth,u=n?.width?String(n.width):s;i=e.formattingValues[u]||e.formattingValues[s]}else{const s=e.defaultWidth,u=n?.width?String(n.width):e.defaultWidth;i=e.values[u]||e.values[s]}const o=e.argumentCallback?e.argumentCallback(t):t;return i[o]}}const AQ={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},TQ={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},OQ={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"]},jQ={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"]},MQ={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"}},PQ={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"}},RQ=(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"},NQ={ordinalNumber:RQ,era:Yd({values:AQ,defaultWidth:"wide"}),quarter:Yd({values:TQ,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Yd({values:OQ,defaultWidth:"wide"}),day:Yd({values:jQ,defaultWidth:"wide"}),dayPeriod:Yd({values:MQ,defaultWidth:"wide",formattingValues:PQ,defaultFormattingWidth:"wide"})};function Wd(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],o=t.match(i);if(!o)return null;const s=o[0],u=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],d=Array.isArray(u)?DQ(u,p=>p.test(s)):LQ(u,p=>p.test(s));let f;f=e.valueCallback?e.valueCallback(d):d,f=n.valueCallback?n.valueCallback(f):f;const m=t.slice(s.length);return{value:f,rest:m}}}function LQ(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function DQ(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function kQ(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],o=t.match(e.parsePattern);if(!o)return null;let s=e.valueCallback?e.valueCallback(o[0]):o[0];s=n.valueCallback?n.valueCallback(s):s;const u=t.slice(i.length);return{value:s,rest:u}}}const IQ=/^(\d+)(th|st|nd|rd)?/i,UQ=/\d+/i,zQ={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},BQ={any:[/^b/i,/^(a|c)/i]},FQ={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},$Q={any:[/1/i,/2/i,/3/i,/4/i]},VQ={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},HQ={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]},qQ={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},GQ={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]},YQ={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},WQ={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}},KQ={ordinalNumber:kQ({matchPattern:IQ,parsePattern:UQ,valueCallback:e=>parseInt(e,10)}),era:Wd({matchPatterns:zQ,defaultMatchWidth:"wide",parsePatterns:BQ,defaultParseWidth:"any"}),quarter:Wd({matchPatterns:FQ,defaultMatchWidth:"wide",parsePatterns:$Q,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Wd({matchPatterns:VQ,defaultMatchWidth:"wide",parsePatterns:HQ,defaultParseWidth:"any"}),day:Wd({matchPatterns:qQ,defaultMatchWidth:"wide",parsePatterns:GQ,defaultParseWidth:"any"}),dayPeriod:Wd({matchPatterns:YQ,defaultMatchWidth:"any",parsePatterns:WQ,defaultParseWidth:"any"})},BL={code:"en-US",formatDistance:bQ,formatLong:SQ,formatRelative:EQ,localize:NQ,match:KQ,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ZQ(e,t){const n=Tt(e,t?.in);return gy(n,pQ(n))+1}function XQ(e,t){const n=Tt(e,t?.in),r=+Ph(n)-+iQ(n);return Math.round(r/Yw)+1}function FL(e,t){const n=Tt(e,t?.in),r=n.getFullYear(),i=tm(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,s=wr(t?.in||e,0);s.setFullYear(r+1,0,o),s.setHours(0,0,0,0);const u=zu(s,t),d=wr(t?.in||e,0);d.setFullYear(r,0,o),d.setHours(0,0,0,0);const f=zu(d,t);return+n>=+u?r+1:+n>=+f?r:r-1}function QQ(e,t){const n=tm(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=FL(e,t),o=wr(t?.in||e,0);return o.setFullYear(i,0,r),o.setHours(0,0,0,0),zu(o,t)}function JQ(e,t){const n=Tt(e,t?.in),r=+zu(n,t)-+QQ(n,t);return Math.round(r/Yw)+1}function At(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const Zs={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return At(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):At(n+1,2)},d(e,t){return At(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 At(e.getHours()%12||12,t.length)},H(e,t){return At(e.getHours(),t.length)},m(e,t){return At(e.getMinutes(),t.length)},s(e,t){return At(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return At(i,t.length)}},Fc={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},AO={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 Zs.y(e,t)},Y:function(e,t,n,r){const i=FL(e,r),o=i>0?i:1-i;if(t==="YY"){const s=o%100;return At(s,2)}return t==="Yo"?n.ordinalNumber(o,{unit:"year"}):At(o,t.length)},R:function(e,t){const n=kL(e);return At(n,t.length)},u:function(e,t){const n=e.getFullYear();return At(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 At(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 At(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 Zs.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 At(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=JQ(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):At(i,t.length)},I:function(e,t,n){const r=XQ(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):At(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):Zs.d(e,t)},D:function(e,t,n){const r=ZQ(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):At(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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return At(o,2);case"eo":return n.ordinalNumber(o,{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(),o=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return At(o,t.length);case"co":return n.ordinalNumber(o,{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 At(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=Fc.noon:r===0?i=Fc.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=Fc.evening:r>=12?i=Fc.afternoon:r>=4?i=Fc.morning:i=Fc.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 Zs.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):Zs.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):At(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):At(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):Zs.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):Zs.s(e,t)},S:function(e,t){return Zs.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return OO(r);case"XXXX":case"XX":return gu(r);case"XXXXX":case"XXX":default:return gu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return OO(r);case"xxxx":case"xx":return gu(r);case"xxxxx":case"xxx":default:return gu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+TO(r,":");case"OOOO":default:return"GMT"+gu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+TO(r,":");case"zzzz":default:return"GMT"+gu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return At(r,t.length)},T:function(e,t,n){return At(+e,t.length)}};function TO(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),o=r%60;return o===0?n+String(i):n+String(i)+t+At(o,2)}function OO(e,t){return e%60===0?(e>0?"-":"+")+At(Math.abs(e)/60,2):gu(e,t)}function gu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=At(Math.trunc(r/60),2),o=At(r%60,2);return n+i+t+o}const jO=(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"})}},$L=(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"})}},eJ=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return jO(e,t);let o;switch(r){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",jO(r,t)).replace("{{time}}",$L(i,t))},tJ={p:$L,P:eJ},nJ=/^D+$/,rJ=/^Y+$/,iJ=["D","DD","YY","YYYY"];function aJ(e){return nJ.test(e)}function oJ(e){return rJ.test(e)}function sJ(e,t,n){const r=lJ(e,t,n);if(console.warn(r),iJ.includes(e))throw new RangeError(r)}function lJ(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 uJ=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,cJ=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,fJ=/^'([^]*?)'?$/,dJ=/''/g,hJ=/[a-zA-Z]/;function nv(e,t,n){const r=tm(),i=r.locale??BL,o=r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,s=r.weekStartsOn??r.locale?.options?.weekStartsOn??0,u=Tt(e,n?.in);if(!sQ(u))throw new RangeError("Invalid time value");let d=t.match(cJ).map(m=>{const p=m[0];if(p==="p"||p==="P"){const b=tJ[p];return b(m,i.formatLong)}return m}).join("").match(uJ).map(m=>{if(m==="''")return{isToken:!1,value:"'"};const p=m[0];if(p==="'")return{isToken:!1,value:mJ(m)};if(AO[p])return{isToken:!0,value:m};if(p.match(hJ))throw new RangeError("Format string contains an unescaped latin alphabet character `"+p+"`");return{isToken:!1,value:m}});i.localize.preprocessor&&(d=i.localize.preprocessor(u,d));const f={firstWeekContainsDate:o,weekStartsOn:s,locale:i};return d.map(m=>{if(!m.isToken)return m.value;const p=m.value;(oJ(p)||aJ(p))&&sJ(p,t,String(e));const b=AO[p[0]];return b(u,p,i.localize,f)}).join("")}function mJ(e){const t=e.match(fJ);return t?t[1].replace(dJ,"'"):e}function pJ(e,t,n){const r=tm(),i=n?.locale??r.locale??BL,o=2520,s=Og(e,t);if(isNaN(s))throw new RangeError("Invalid time value");const u=Object.assign({},n,{addSuffix:n?.addSuffix,comparison:s}),[d,f]=qu(n?.in,...s>0?[t,e]:[e,t]),m=mQ(f,d),p=(of(f)-of(d))/1e3,b=Math.round((m-p)/60);let _;if(b<2)return b===0?i.formatDistance("lessThanXMinutes",1,u):i.formatDistance("xMinutes",b,u);if(b<45)return i.formatDistance("xMinutes",b,u);if(b<90)return i.formatDistance("aboutXHours",1,u);if(b<SO){const w=Math.round(b/60);return i.formatDistance("aboutXHours",w,u)}else{if(b<o)return i.formatDistance("xDays",1,u);if(b<Xp){const w=Math.round(b/SO);return i.formatDistance("xDays",w,u)}else if(b<Xp*2)return _=Math.round(b/Xp),i.formatDistance("aboutXMonths",_,u)}if(_=hQ(f,d),_<12){const w=Math.round(b/Xp);return i.formatDistance("xMonths",w,u)}else{const w=_%12,x=Math.trunc(_/12);return w<3?i.formatDistance("aboutXYears",x,u):w<9?i.formatDistance("overXYears",x,u):i.formatDistance("almostXYears",x+1,u)}}function gJ(e,t){const n=Tt(e,t?.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const o="-",s=":";{const u=At(n.getDate(),2),d=At(n.getMonth()+1,2);r=`${At(n.getFullYear(),4)}${o}${d}${o}${u}`}{const u=n.getTimezoneOffset();if(u!==0){const _=Math.abs(u),w=At(Math.trunc(_/60),2),x=At(_%60,2);i=`${u<0?"+":"-"}${w}:${x}`}else i="Z";const d=At(n.getHours(),2),f=At(n.getMinutes(),2),m=At(n.getSeconds(),2),p=r===""?"":"T",b=[d,f,m].join(s);r=`${r}${p}${b}${i}`}return r}function vJ(e){return Math.trunc(+Tt(e)/1e3)}function yJ(e,t){return+Tt(e)>+Tt(t)}function rv(e,t){return+Tt(e)<+Tt(t)}function Xx(e,t){return+Tt(e)==+Tt(t)}function bJ(e,t,n){const r=+Tt(e,n?.in),[i,o]=[+Tt(t.start,n?.in),+Tt(t.end,n?.in)].sort((s,u)=>s-u);return r>=i&&r<=o}function iv(e,t,n){return Kw(e,-t,n)}function gl(e,t){const n=()=>wr(t?.in,NaN),i=SJ(e);let o;if(i.date){const f=CJ(i.date,2);o=EJ(f.restDateString,f.year)}if(!o||isNaN(+o))return n();const s=+o;let u=0,d;if(i.time&&(u=AJ(i.time),isNaN(u)))return n();if(i.timezone){if(d=TJ(i.timezone),isNaN(d))return n()}else{const f=new Date(s+u),m=Tt(0,t?.in);return m.setFullYear(f.getUTCFullYear(),f.getUTCMonth(),f.getUTCDate()),m.setHours(f.getUTCHours(),f.getUTCMinutes(),f.getUTCSeconds(),f.getUTCMilliseconds()),m}return Tt(s+u+d,t?.in)}const Qp={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},_J=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,xJ=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,wJ=/^([+-])(\d{2})(?::?(\d{2}))?$/;function SJ(e){const t={},n=e.split(Qp.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Qp.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Qp.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Qp.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function CJ(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,o=r[2]?parseInt(r[2]):null;return{year:o===null?i:o*100,restDateString:e.slice((r[1]||r[2]).length)}}function EJ(e,t){if(t===null)return new Date(NaN);const n=e.match(_J);if(!n)return new Date(NaN);const r=!!n[4],i=Kd(n[1]),o=Kd(n[2])-1,s=Kd(n[3]),u=Kd(n[4]),d=Kd(n[5])-1;if(r)return RJ(t,u,d)?OJ(t,u,d):new Date(NaN);{const f=new Date(0);return!MJ(t,o,s)||!PJ(t,i)?new Date(NaN):(f.setUTCFullYear(t,o,Math.max(i,s)),f)}}function Kd(e){return e?parseInt(e):1}function AJ(e){const t=e.match(xJ);if(!t)return NaN;const n=Eb(t[1]),r=Eb(t[2]),i=Eb(t[3]);return NJ(n,r,i)?n*Ww+r*DL+i*1e3:NaN}function Eb(e){return e&&parseFloat(e.replace(",","."))||0}function TJ(e){if(e==="Z")return 0;const t=e.match(wJ);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return LJ(r,i)?n*(r*Ww+i*DL):NaN}function OJ(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,o=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}const jJ=[31,null,31,30,31,30,31,31,30,31,30,31];function VL(e){return e%400===0||e%4===0&&e%100!==0}function MJ(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(jJ[t]||(VL(e)?29:28))}function PJ(e,t){return t>=1&&t<=(VL(e)?366:365)}function RJ(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function NJ(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function LJ(e,t){return t>=0&&t<=59}var jg={exports:{}},DJ=jg.exports,MO;function kJ(){return MO||(MO=1,function(e,t){(function(n,r){e.exports=r()})(DJ,()=>(()=>{var n={873:(s,u)=>{var d,f,m=function(){var p=function(Q,se){var Z=Q,I=E[se],k=null,z=0,F=null,P=[],G={},Y=function(H,ae){k=function(ce){for(var ve=new Array(ce),de=0;de<ce;de+=1){ve[de]=new Array(ce);for(var we=0;we<ce;we+=1)ve[de][we]=null}return ve}(z=4*Z+17),te(0,0),te(z-7,0),te(0,z-7),fe(),ue(),D(H,ae),Z>=7&&ge(H),F==null&&(F=W(Z,I,P)),B(F,ae)},te=function(H,ae){for(var ce=-1;ce<=7;ce+=1)if(!(H+ce<=-1||z<=H+ce))for(var ve=-1;ve<=7;ve+=1)ae+ve<=-1||z<=ae+ve||(k[H+ce][ae+ve]=0<=ce&&ce<=6&&(ve==0||ve==6)||0<=ve&&ve<=6&&(ce==0||ce==6)||2<=ce&&ce<=4&&2<=ve&&ve<=4)},ue=function(){for(var H=8;H<z-8;H+=1)k[H][6]==null&&(k[H][6]=H%2==0);for(var ae=8;ae<z-8;ae+=1)k[6][ae]==null&&(k[6][ae]=ae%2==0)},fe=function(){for(var H=j.getPatternPosition(Z),ae=0;ae<H.length;ae+=1)for(var ce=0;ce<H.length;ce+=1){var ve=H[ae],de=H[ce];if(k[ve][de]==null)for(var we=-2;we<=2;we+=1)for(var Ae=-2;Ae<=2;Ae+=1)k[ve+we][de+Ae]=we==-2||we==2||Ae==-2||Ae==2||we==0&&Ae==0}},ge=function(H){for(var ae=j.getBCHTypeNumber(Z),ce=0;ce<18;ce+=1){var ve=!H&&(ae>>ce&1)==1;k[Math.floor(ce/3)][ce%3+z-8-3]=ve}for(ce=0;ce<18;ce+=1)ve=!H&&(ae>>ce&1)==1,k[ce%3+z-8-3][Math.floor(ce/3)]=ve},D=function(H,ae){for(var ce=I<<3|ae,ve=j.getBCHTypeInfo(ce),de=0;de<15;de+=1){var we=!H&&(ve>>de&1)==1;de<6?k[de][8]=we:de<8?k[de+1][8]=we:k[z-15+de][8]=we}for(de=0;de<15;de+=1)we=!H&&(ve>>de&1)==1,de<8?k[8][z-de-1]=we:de<9?k[8][15-de-1+1]=we:k[8][15-de-1]=we;k[z-8][8]=!H},B=function(H,ae){for(var ce=-1,ve=z-1,de=7,we=0,Ae=j.getMaskFunction(ae),Le=z-1;Le>0;Le-=2)for(Le==6&&(Le-=1);;){for(var Ve=0;Ve<2;Ve+=1)if(k[ve][Le-Ve]==null){var Fe=!1;we<H.length&&(Fe=(H[we]>>>de&1)==1),Ae(ve,Le-Ve)&&(Fe=!Fe),k[ve][Le-Ve]=Fe,(de-=1)==-1&&(we+=1,de=7)}if((ve+=ce)<0||z<=ve){ve-=ce,ce=-ce;break}}},W=function(H,ae,ce){for(var ve=U.getRSBlocks(H,ae),de=$(),we=0;we<ce.length;we+=1){var Ae=ce[we];de.put(Ae.getMode(),4),de.put(Ae.getLength(),j.getLengthInBits(Ae.getMode(),H)),Ae.write(de)}var Le=0;for(we=0;we<ve.length;we+=1)Le+=ve[we].dataCount;if(de.getLengthInBits()>8*Le)throw"code length overflow. ("+de.getLengthInBits()+">"+8*Le+")";for(de.getLengthInBits()+4<=8*Le&&de.put(0,4);de.getLengthInBits()%8!=0;)de.putBit(!1);for(;!(de.getLengthInBits()>=8*Le||(de.put(236,8),de.getLengthInBits()>=8*Le));)de.put(17,8);return function(Ve,Fe){for(var He=0,be=0,_e=0,De=new Array(Fe.length),Re=new Array(Fe.length),Me=0;Me<Fe.length;Me+=1){var $e=Fe[Me].dataCount,Ge=Fe[Me].totalCount-$e;be=Math.max(be,$e),_e=Math.max(_e,Ge),De[Me]=new Array($e);for(var Ze=0;Ze<De[Me].length;Ze+=1)De[Me][Ze]=255&Ve.getBuffer()[Ze+He];He+=$e;var ut=j.getErrorCorrectPolynomial(Ge),it=N(De[Me],ut.getLength()-1).mod(ut);for(Re[Me]=new Array(ut.getLength()-1),Ze=0;Ze<Re[Me].length;Ze+=1){var dt=Ze+it.getLength()-Re[Me].length;Re[Me][Ze]=dt>=0?it.getAt(dt):0}}var gt=0;for(Ze=0;Ze<Fe.length;Ze+=1)gt+=Fe[Ze].totalCount;var Dt=new Array(gt),yt=0;for(Ze=0;Ze<be;Ze+=1)for(Me=0;Me<Fe.length;Me+=1)Ze<De[Me].length&&(Dt[yt]=De[Me][Ze],yt+=1);for(Ze=0;Ze<_e;Ze+=1)for(Me=0;Me<Fe.length;Me+=1)Ze<Re[Me].length&&(Dt[yt]=Re[Me][Ze],yt+=1);return Dt}(de,ve)};G.addData=function(H,ae){var ce=null;switch(ae=ae||"Byte"){case"Numeric":ce=K(H);break;case"Alphanumeric":ce=X(H);break;case"Byte":ce=oe(H);break;case"Kanji":ce=ee(H);break;default:throw"mode:"+ae}P.push(ce),F=null},G.isDark=function(H,ae){if(H<0||z<=H||ae<0||z<=ae)throw H+","+ae;return k[H][ae]},G.getModuleCount=function(){return z},G.make=function(){if(Z<1){for(var H=1;H<40;H++){for(var ae=U.getRSBlocks(H,I),ce=$(),ve=0;ve<P.length;ve++){var de=P[ve];ce.put(de.getMode(),4),ce.put(de.getLength(),j.getLengthInBits(de.getMode(),H)),de.write(ce)}var we=0;for(ve=0;ve<ae.length;ve++)we+=ae[ve].dataCount;if(ce.getLengthInBits()<=8*we)break}Z=H}Y(!1,function(){for(var Ae=0,Le=0,Ve=0;Ve<8;Ve+=1){Y(!0,Ve);var Fe=j.getLostPoint(G);(Ve==0||Ae>Fe)&&(Ae=Fe,Le=Ve)}return Le}())},G.createTableTag=function(H,ae){H=H||2;var ce="";ce+='<table style="',ce+=" border-width: 0px; border-style: none;",ce+=" border-collapse: collapse;",ce+=" padding: 0px; margin: "+(ae=ae===void 0?4*H:ae)+"px;",ce+='">',ce+="<tbody>";for(var ve=0;ve<G.getModuleCount();ve+=1){ce+="<tr>";for(var de=0;de<G.getModuleCount();de+=1)ce+='<td style="',ce+=" border-width: 0px; border-style: none;",ce+=" border-collapse: collapse;",ce+=" padding: 0px; margin: 0px;",ce+=" width: "+H+"px;",ce+=" height: "+H+"px;",ce+=" background-color: ",ce+=G.isDark(ve,de)?"#000000":"#ffffff",ce+=";",ce+='"/>';ce+="</tr>"}return(ce+="</tbody>")+"</table>"},G.createSvgTag=function(H,ae,ce,ve){var de={};typeof arguments[0]=="object"&&(H=(de=arguments[0]).cellSize,ae=de.margin,ce=de.alt,ve=de.title),H=H||2,ae=ae===void 0?4*H:ae,(ce=typeof ce=="string"?{text:ce}:ce||{}).text=ce.text||null,ce.id=ce.text?ce.id||"qrcode-description":null,(ve=typeof ve=="string"?{text:ve}:ve||{}).text=ve.text||null,ve.id=ve.text?ve.id||"qrcode-title":null;var we,Ae,Le,Ve,Fe=G.getModuleCount()*H+2*ae,He="";for(Ve="l"+H+",0 0,"+H+" -"+H+",0 0,-"+H+"z ",He+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',He+=de.scalable?"":' width="'+Fe+'px" height="'+Fe+'px"',He+=' viewBox="0 0 '+Fe+" "+Fe+'" ',He+=' preserveAspectRatio="xMinYMin meet"',He+=ve.text||ce.text?' role="img" aria-labelledby="'+le([ve.id,ce.id].join(" ").trim())+'"':"",He+=">",He+=ve.text?'<title id="'+le(ve.id)+'">'+le(ve.text)+"</title>":"",He+=ce.text?'<description id="'+le(ce.id)+'">'+le(ce.text)+"</description>":"",He+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',He+='<path d="',Ae=0;Ae<G.getModuleCount();Ae+=1)for(Le=Ae*H+ae,we=0;we<G.getModuleCount();we+=1)G.isDark(Ae,we)&&(He+="M"+(we*H+ae)+","+Le+Ve);return(He+='" stroke="transparent" fill="black"/>')+"</svg>"},G.createDataURL=function(H,ae){H=H||2,ae=ae===void 0?4*H:ae;var ce=G.getModuleCount()*H+2*ae,ve=ae,de=ce-ae;return he(ce,ce,function(we,Ae){if(ve<=we&&we<de&&ve<=Ae&&Ae<de){var Le=Math.floor((we-ve)/H),Ve=Math.floor((Ae-ve)/H);return G.isDark(Ve,Le)?0:1}return 1})},G.createImgTag=function(H,ae,ce){H=H||2,ae=ae===void 0?4*H:ae;var ve=G.getModuleCount()*H+2*ae,de="";return de+="<img",de+=' src="',de+=G.createDataURL(H,ae),de+='"',de+=' width="',de+=ve,de+='"',de+=' height="',de+=ve,de+='"',ce&&(de+=' alt="',de+=le(ce),de+='"'),de+"/>"};var le=function(H){for(var ae="",ce=0;ce<H.length;ce+=1){var ve=H.charAt(ce);switch(ve){case"<":ae+="&lt;";break;case">":ae+="&gt;";break;case"&":ae+="&amp;";break;case'"':ae+="&quot;";break;default:ae+=ve}}return ae};return G.createASCII=function(H,ae){if((H=H||1)<2)return function(De){De=De===void 0?2:De;var Re,Me,$e,Ge,Ze,ut=1*G.getModuleCount()+2*De,it=De,dt=ut-De,gt={"██":"█","█ ":"▀"," █":"▄"," ":" "},Dt={"██":"▀","█ ":"▀"," █":" "," ":" "},yt="";for(Re=0;Re<ut;Re+=2){for($e=Math.floor((Re-it)/1),Ge=Math.floor((Re+1-it)/1),Me=0;Me<ut;Me+=1)Ze="█",it<=Me&&Me<dt&&it<=Re&&Re<dt&&G.isDark($e,Math.floor((Me-it)/1))&&(Ze=" "),it<=Me&&Me<dt&&it<=Re+1&&Re+1<dt&&G.isDark(Ge,Math.floor((Me-it)/1))?Ze+=" ":Ze+="█",yt+=De<1&&Re+1>=dt?Dt[Ze]:gt[Ze];yt+=`
`}return ut%2&&De>0?yt.substring(0,yt.length-ut-1)+Array(ut+1).join("▀"):yt.substring(0,yt.length-1)}(ae);H-=1,ae=ae===void 0?2*H:ae;var ce,ve,de,we,Ae=G.getModuleCount()*H+2*ae,Le=ae,Ve=Ae-ae,Fe=Array(H+1).join("██"),He=Array(H+1).join(" "),be="",_e="";for(ce=0;ce<Ae;ce+=1){for(de=Math.floor((ce-Le)/H),_e="",ve=0;ve<Ae;ve+=1)we=1,Le<=ve&&ve<Ve&&Le<=ce&&ce<Ve&&G.isDark(de,Math.floor((ve-Le)/H))&&(we=0),_e+=we?Fe:He;for(de=0;de<H;de+=1)be+=_e+`
`}return be.substring(0,be.length-1)},G.renderTo2dContext=function(H,ae){ae=ae||2;for(var ce=G.getModuleCount(),ve=0;ve<ce;ve++)for(var de=0;de<ce;de++)H.fillStyle=G.isDark(ve,de)?"black":"white",H.fillRect(ve*ae,de*ae,ae,ae)},G};p.stringToBytes=(p.stringToBytesFuncs={default:function(Q){for(var se=[],Z=0;Z<Q.length;Z+=1){var I=Q.charCodeAt(Z);se.push(255&I)}return se}}).default,p.createStringToBytes=function(Q,se){var Z=function(){for(var k=ne(Q),z=function(){var ue=k.read();if(ue==-1)throw"eof";return ue},F=0,P={};;){var G=k.read();if(G==-1)break;var Y=z(),te=z()<<8|z();P[String.fromCharCode(G<<8|Y)]=te,F+=1}if(F!=se)throw F+" != "+se;return P}(),I=63;return function(k){for(var z=[],F=0;F<k.length;F+=1){var P=k.charCodeAt(F);if(P<128)z.push(P);else{var G=Z[k.charAt(F)];typeof G=="number"?(255&G)==G?z.push(G):(z.push(G>>>8),z.push(255&G)):z.push(I)}}return z}};var b,_,w,x,C,E={L:1,M:0,Q:3,H:2},j=(b=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],_=1335,w=7973,C=function(Q){for(var se=0;Q!=0;)se+=1,Q>>>=1;return se},(x={}).getBCHTypeInfo=function(Q){for(var se=Q<<10;C(se)-C(_)>=0;)se^=_<<C(se)-C(_);return 21522^(Q<<10|se)},x.getBCHTypeNumber=function(Q){for(var se=Q<<12;C(se)-C(w)>=0;)se^=w<<C(se)-C(w);return Q<<12|se},x.getPatternPosition=function(Q){return b[Q-1]},x.getMaskFunction=function(Q){switch(Q){case 0:return function(se,Z){return(se+Z)%2==0};case 1:return function(se,Z){return se%2==0};case 2:return function(se,Z){return Z%3==0};case 3:return function(se,Z){return(se+Z)%3==0};case 4:return function(se,Z){return(Math.floor(se/2)+Math.floor(Z/3))%2==0};case 5:return function(se,Z){return se*Z%2+se*Z%3==0};case 6:return function(se,Z){return(se*Z%2+se*Z%3)%2==0};case 7:return function(se,Z){return(se*Z%3+(se+Z)%2)%2==0};default:throw"bad maskPattern:"+Q}},x.getErrorCorrectPolynomial=function(Q){for(var se=N([1],0),Z=0;Z<Q;Z+=1)se=se.multiply(N([1,O.gexp(Z)],0));return se},x.getLengthInBits=function(Q,se){if(1<=se&&se<10)switch(Q){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+Q}else if(se<27)switch(Q){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+Q}else{if(!(se<41))throw"type:"+se;switch(Q){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+Q}}},x.getLostPoint=function(Q){for(var se=Q.getModuleCount(),Z=0,I=0;I<se;I+=1)for(var k=0;k<se;k+=1){for(var z=0,F=Q.isDark(I,k),P=-1;P<=1;P+=1)if(!(I+P<0||se<=I+P))for(var G=-1;G<=1;G+=1)k+G<0||se<=k+G||P==0&&G==0||F==Q.isDark(I+P,k+G)&&(z+=1);z>5&&(Z+=3+z-5)}for(I=0;I<se-1;I+=1)for(k=0;k<se-1;k+=1){var Y=0;Q.isDark(I,k)&&(Y+=1),Q.isDark(I+1,k)&&(Y+=1),Q.isDark(I,k+1)&&(Y+=1),Q.isDark(I+1,k+1)&&(Y+=1),Y!=0&&Y!=4||(Z+=3)}for(I=0;I<se;I+=1)for(k=0;k<se-6;k+=1)Q.isDark(I,k)&&!Q.isDark(I,k+1)&&Q.isDark(I,k+2)&&Q.isDark(I,k+3)&&Q.isDark(I,k+4)&&!Q.isDark(I,k+5)&&Q.isDark(I,k+6)&&(Z+=40);for(k=0;k<se;k+=1)for(I=0;I<se-6;I+=1)Q.isDark(I,k)&&!Q.isDark(I+1,k)&&Q.isDark(I+2,k)&&Q.isDark(I+3,k)&&Q.isDark(I+4,k)&&!Q.isDark(I+5,k)&&Q.isDark(I+6,k)&&(Z+=40);var te=0;for(k=0;k<se;k+=1)for(I=0;I<se;I+=1)Q.isDark(I,k)&&(te+=1);return Z+Math.abs(100*te/se/se-50)/5*10},x),O=function(){for(var Q=new Array(256),se=new Array(256),Z=0;Z<8;Z+=1)Q[Z]=1<<Z;for(Z=8;Z<256;Z+=1)Q[Z]=Q[Z-4]^Q[Z-5]^Q[Z-6]^Q[Z-8];for(Z=0;Z<255;Z+=1)se[Q[Z]]=Z;return{glog:function(I){if(I<1)throw"glog("+I+")";return se[I]},gexp:function(I){for(;I<0;)I+=255;for(;I>=256;)I-=255;return Q[I]}}}();function N(Q,se){if(Q.length===void 0)throw Q.length+"/"+se;var Z=function(){for(var k=0;k<Q.length&&Q[k]==0;)k+=1;for(var z=new Array(Q.length-k+se),F=0;F<Q.length-k;F+=1)z[F]=Q[F+k];return z}(),I={getAt:function(k){return Z[k]},getLength:function(){return Z.length},multiply:function(k){for(var z=new Array(I.getLength()+k.getLength()-1),F=0;F<I.getLength();F+=1)for(var P=0;P<k.getLength();P+=1)z[F+P]^=O.gexp(O.glog(I.getAt(F))+O.glog(k.getAt(P)));return N(z,0)},mod:function(k){if(I.getLength()-k.getLength()<0)return I;for(var z=O.glog(I.getAt(0))-O.glog(k.getAt(0)),F=new Array(I.getLength()),P=0;P<I.getLength();P+=1)F[P]=I.getAt(P);for(P=0;P<k.getLength();P+=1)F[P]^=O.gexp(O.glog(k.getAt(P))+z);return N(F,0).mod(k)}};return I}var U=function(){var Q=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],se=function(I,k){var z={};return z.totalCount=I,z.dataCount=k,z},Z={getRSBlocks:function(I,k){var z=function(ge,D){switch(D){case E.L:return Q[4*(ge-1)+0];case E.M:return Q[4*(ge-1)+1];case E.Q:return Q[4*(ge-1)+2];case E.H:return Q[4*(ge-1)+3];default:return}}(I,k);if(z===void 0)throw"bad rs block @ typeNumber:"+I+"/errorCorrectionLevel:"+k;for(var F=z.length/3,P=[],G=0;G<F;G+=1)for(var Y=z[3*G+0],te=z[3*G+1],ue=z[3*G+2],fe=0;fe<Y;fe+=1)P.push(se(te,ue));return P}};return Z}(),$=function(){var Q=[],se=0,Z={getBuffer:function(){return Q},getAt:function(I){var k=Math.floor(I/8);return(Q[k]>>>7-I%8&1)==1},put:function(I,k){for(var z=0;z<k;z+=1)Z.putBit((I>>>k-z-1&1)==1)},getLengthInBits:function(){return se},putBit:function(I){var k=Math.floor(se/8);Q.length<=k&&Q.push(0),I&&(Q[k]|=128>>>se%8),se+=1}};return Z},K=function(Q){var se=Q,Z={getMode:function(){return 1},getLength:function(z){return se.length},write:function(z){for(var F=se,P=0;P+2<F.length;)z.put(I(F.substring(P,P+3)),10),P+=3;P<F.length&&(F.length-P==1?z.put(I(F.substring(P,P+1)),4):F.length-P==2&&z.put(I(F.substring(P,P+2)),7))}},I=function(z){for(var F=0,P=0;P<z.length;P+=1)F=10*F+k(z.charAt(P));return F},k=function(z){if("0"<=z&&z<="9")return z.charCodeAt(0)-48;throw"illegal char :"+z};return Z},X=function(Q){var se=Q,Z={getMode:function(){return 2},getLength:function(k){return se.length},write:function(k){for(var z=se,F=0;F+1<z.length;)k.put(45*I(z.charAt(F))+I(z.charAt(F+1)),11),F+=2;F<z.length&&k.put(I(z.charAt(F)),6)}},I=function(k){if("0"<=k&&k<="9")return k.charCodeAt(0)-48;if("A"<=k&&k<="Z")return k.charCodeAt(0)-65+10;switch(k){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+k}};return Z},oe=function(Q){var se=p.stringToBytes(Q);return{getMode:function(){return 4},getLength:function(Z){return se.length},write:function(Z){for(var I=0;I<se.length;I+=1)Z.put(se[I],8)}}},ee=function(Q){var se=p.stringToBytesFuncs.SJIS;if(!se)throw"sjis not supported.";(function(){var k=se("友");if(k.length!=2||(k[0]<<8|k[1])!=38726)throw"sjis not supported."})();var Z=se(Q),I={getMode:function(){return 8},getLength:function(k){return~~(Z.length/2)},write:function(k){for(var z=Z,F=0;F+1<z.length;){var P=(255&z[F])<<8|255&z[F+1];if(33088<=P&&P<=40956)P-=33088;else{if(!(57408<=P&&P<=60351))throw"illegal char at "+(F+1)+"/"+P;P-=49472}P=192*(P>>>8&255)+(255&P),k.put(P,13),F+=2}if(F<z.length)throw"illegal char at "+(F+1)}};return I},J=function(){var Q=[],se={writeByte:function(Z){Q.push(255&Z)},writeShort:function(Z){se.writeByte(Z),se.writeByte(Z>>>8)},writeBytes:function(Z,I,k){I=I||0,k=k||Z.length;for(var z=0;z<k;z+=1)se.writeByte(Z[z+I])},writeString:function(Z){for(var I=0;I<Z.length;I+=1)se.writeByte(Z.charCodeAt(I))},toByteArray:function(){return Q},toString:function(){var Z="";Z+="[";for(var I=0;I<Q.length;I+=1)I>0&&(Z+=","),Z+=Q[I];return Z+"]"}};return se},ne=function(Q){var se=Q,Z=0,I=0,k=0,z={read:function(){for(;k<8;){if(Z>=se.length){if(k==0)return-1;throw"unexpected end of file./"+k}var P=se.charAt(Z);if(Z+=1,P=="=")return k=0,-1;P.match(/^\s$/)||(I=I<<6|F(P.charCodeAt(0)),k+=6)}var G=I>>>k-8&255;return k-=8,G}},F=function(P){if(65<=P&&P<=90)return P-65;if(97<=P&&P<=122)return P-97+26;if(48<=P&&P<=57)return P-48+52;if(P==43)return 62;if(P==47)return 63;throw"c:"+P};return z},he=function(Q,se,Z){for(var I=function(te,ue){var fe=te,ge=ue,D=new Array(te*ue),B={setPixel:function(H,ae,ce){D[ae*fe+H]=ce},write:function(H){H.writeString("GIF87a"),H.writeShort(fe),H.writeShort(ge),H.writeByte(128),H.writeByte(0),H.writeByte(0),H.writeByte(0),H.writeByte(0),H.writeByte(0),H.writeByte(255),H.writeByte(255),H.writeByte(255),H.writeString(","),H.writeShort(0),H.writeShort(0),H.writeShort(fe),H.writeShort(ge),H.writeByte(0);var ae=W(2);H.writeByte(2);for(var ce=0;ae.length-ce>255;)H.writeByte(255),H.writeBytes(ae,ce,255),ce+=255;H.writeByte(ae.length-ce),H.writeBytes(ae,ce,ae.length-ce),H.writeByte(0),H.writeString(";")}},W=function(H){for(var ae=1<<H,ce=1+(1<<H),ve=H+1,de=le(),we=0;we<ae;we+=1)de.add(String.fromCharCode(we));de.add(String.fromCharCode(ae)),de.add(String.fromCharCode(ce));var Ae,Le,Ve,Fe=J(),He=(Ae=Fe,Le=0,Ve=0,{write:function(Re,Me){if(Re>>>Me)throw"length over";for(;Le+Me>=8;)Ae.writeByte(255&(Re<<Le|Ve)),Me-=8-Le,Re>>>=8-Le,Ve=0,Le=0;Ve|=Re<<Le,Le+=Me},flush:function(){Le>0&&Ae.writeByte(Ve)}});He.write(ae,ve);var be=0,_e=String.fromCharCode(D[be]);for(be+=1;be<D.length;){var De=String.fromCharCode(D[be]);be+=1,de.contains(_e+De)?_e+=De:(He.write(de.indexOf(_e),ve),de.size()<4095&&(de.size()==1<<ve&&(ve+=1),de.add(_e+De)),_e=De)}return He.write(de.indexOf(_e),ve),He.write(ce,ve),He.flush(),Fe.toByteArray()},le=function(){var H={},ae=0,ce={add:function(ve){if(ce.contains(ve))throw"dup key:"+ve;H[ve]=ae,ae+=1},size:function(){return ae},indexOf:function(ve){return H[ve]},contains:function(ve){return H[ve]!==void 0}};return ce};return B}(Q,se),k=0;k<se;k+=1)for(var z=0;z<Q;z+=1)I.setPixel(z,k,Z(z,k));var F=J();I.write(F);for(var P=function(){var te=0,ue=0,fe=0,ge="",D={},B=function(le){ge+=String.fromCharCode(W(63&le))},W=function(le){if(!(le<0)){if(le<26)return 65+le;if(le<52)return le-26+97;if(le<62)return le-52+48;if(le==62)return 43;if(le==63)return 47}throw"n:"+le};return D.writeByte=function(le){for(te=te<<8|255&le,ue+=8,fe+=1;ue>=6;)B(te>>>ue-6),ue-=6},D.flush=function(){if(ue>0&&(B(te<<6-ue),te=0,ue=0),fe%3!=0)for(var le=3-fe%3,H=0;H<le;H+=1)ge+="="},D.toString=function(){return ge},D}(),G=F.toByteArray(),Y=0;Y<G.length;Y+=1)P.writeByte(G[Y]);return P.flush(),"data:image/gif;base64,"+P};return p}();m.stringToBytesFuncs["UTF-8"]=function(p){return function(b){for(var _=[],w=0;w<b.length;w++){var x=b.charCodeAt(w);x<128?_.push(x):x<2048?_.push(192|x>>6,128|63&x):x<55296||x>=57344?_.push(224|x>>12,128|x>>6&63,128|63&x):(w++,x=65536+((1023&x)<<10|1023&b.charCodeAt(w)),_.push(240|x>>18,128|x>>12&63,128|x>>6&63,128|63&x))}return _}(p)},(f=typeof(d=function(){return m})=="function"?d.apply(u,[]):d)===void 0||(s.exports=f)}},r={};function i(s){var u=r[s];if(u!==void 0)return u.exports;var d=r[s]={exports:{}};return n[s](d,d.exports,i),d.exports}i.n=s=>{var u=s&&s.__esModule?()=>s.default:()=>s;return i.d(u,{a:u}),u},i.d=(s,u)=>{for(var d in u)i.o(u,d)&&!i.o(s,d)&&Object.defineProperty(s,d,{enumerable:!0,get:u[d]})},i.o=(s,u)=>Object.prototype.hasOwnProperty.call(s,u);var o={};return(()=>{i.d(o,{default:()=>se});const s=Z=>!!Z&&typeof Z=="object"&&!Array.isArray(Z);function u(Z,...I){if(!I.length)return Z;const k=I.shift();return k!==void 0&&s(Z)&&s(k)?(Z=Object.assign({},Z),Object.keys(k).forEach(z=>{const F=Z[z],P=k[z];Array.isArray(F)&&Array.isArray(P)?Z[z]=P:s(F)&&s(P)?Z[z]=u(Object.assign({},F),P):Z[z]=P}),u(Z,...I)):Z}function d(Z,I){const k=document.createElement("a");k.download=I,k.href=Z,document.body.appendChild(k),k.click(),document.body.removeChild(k)}const f={L:.07,M:.15,Q:.25,H:.3};class m{constructor({svg:I,type:k,window:z}){this._svg=I,this._type=k,this._window=z}draw(I,k,z,F){let P;switch(this._type){case"dots":P=this._drawDot;break;case"classy":P=this._drawClassy;break;case"classy-rounded":P=this._drawClassyRounded;break;case"rounded":P=this._drawRounded;break;case"extra-rounded":P=this._drawExtraRounded;break;default:P=this._drawSquare}P.call(this,{x:I,y:k,size:z,getNeighbor:F})}_rotateFigure({x:I,y:k,size:z,rotation:F=0,draw:P}){var G;const Y=I+z/2,te=k+z/2;P(),(G=this._element)===null||G===void 0||G.setAttribute("transform",`rotate(${180*F/Math.PI},${Y},${te})`)}_basicDot(I){const{size:k,x:z,y:F}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(z+k/2)),this._element.setAttribute("cy",String(F+k/2)),this._element.setAttribute("r",String(k/2))}}))}_basicSquare(I){const{size:k,x:z,y:F}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(z)),this._element.setAttribute("y",String(F)),this._element.setAttribute("width",String(k)),this._element.setAttribute("height",String(k))}}))}_basicSideRounded(I){const{size:k,x:z,y:F}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${z} ${F}v ${k}h `+k/2+`a ${k/2} ${k/2}, 0, 0, 0, 0 ${-k}`)}}))}_basicCornerRounded(I){const{size:k,x:z,y:F}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${z} ${F}v ${k}h ${k}v `+-k/2+`a ${k/2} ${k/2}, 0, 0, 0, ${-k/2} ${-k/2}`)}}))}_basicCornerExtraRounded(I){const{size:k,x:z,y:F}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${z} ${F}v ${k}h ${k}a ${k} ${k}, 0, 0, 0, ${-k} ${-k}`)}}))}_basicCornersRounded(I){const{size:k,x:z,y:F}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${z} ${F}v `+k/2+`a ${k/2} ${k/2}, 0, 0, 0, ${k/2} ${k/2}h `+k/2+"v "+-k/2+`a ${k/2} ${k/2}, 0, 0, 0, ${-k/2} ${-k/2}`)}}))}_drawDot({x:I,y:k,size:z}){this._basicDot({x:I,y:k,size:z,rotation:0})}_drawSquare({x:I,y:k,size:z}){this._basicSquare({x:I,y:k,size:z,rotation:0})}_drawRounded({x:I,y:k,size:z,getNeighbor:F}){const P=F?+F(-1,0):0,G=F?+F(1,0):0,Y=F?+F(0,-1):0,te=F?+F(0,1):0,ue=P+G+Y+te;if(ue!==0)if(ue>2||P&&G||Y&&te)this._basicSquare({x:I,y:k,size:z,rotation:0});else{if(ue===2){let fe=0;return P&&Y?fe=Math.PI/2:Y&&G?fe=Math.PI:G&&te&&(fe=-Math.PI/2),void this._basicCornerRounded({x:I,y:k,size:z,rotation:fe})}if(ue===1){let fe=0;return Y?fe=Math.PI/2:G?fe=Math.PI:te&&(fe=-Math.PI/2),void this._basicSideRounded({x:I,y:k,size:z,rotation:fe})}}else this._basicDot({x:I,y:k,size:z,rotation:0})}_drawExtraRounded({x:I,y:k,size:z,getNeighbor:F}){const P=F?+F(-1,0):0,G=F?+F(1,0):0,Y=F?+F(0,-1):0,te=F?+F(0,1):0,ue=P+G+Y+te;if(ue!==0)if(ue>2||P&&G||Y&&te)this._basicSquare({x:I,y:k,size:z,rotation:0});else{if(ue===2){let fe=0;return P&&Y?fe=Math.PI/2:Y&&G?fe=Math.PI:G&&te&&(fe=-Math.PI/2),void this._basicCornerExtraRounded({x:I,y:k,size:z,rotation:fe})}if(ue===1){let fe=0;return Y?fe=Math.PI/2:G?fe=Math.PI:te&&(fe=-Math.PI/2),void this._basicSideRounded({x:I,y:k,size:z,rotation:fe})}}else this._basicDot({x:I,y:k,size:z,rotation:0})}_drawClassy({x:I,y:k,size:z,getNeighbor:F}){const P=F?+F(-1,0):0,G=F?+F(1,0):0,Y=F?+F(0,-1):0,te=F?+F(0,1):0;P+G+Y+te!==0?P||Y?G||te?this._basicSquare({x:I,y:k,size:z,rotation:0}):this._basicCornerRounded({x:I,y:k,size:z,rotation:Math.PI/2}):this._basicCornerRounded({x:I,y:k,size:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:I,y:k,size:z,rotation:Math.PI/2})}_drawClassyRounded({x:I,y:k,size:z,getNeighbor:F}){const P=F?+F(-1,0):0,G=F?+F(1,0):0,Y=F?+F(0,-1):0,te=F?+F(0,1):0;P+G+Y+te!==0?P||Y?G||te?this._basicSquare({x:I,y:k,size:z,rotation:0}):this._basicCornerExtraRounded({x:I,y:k,size:z,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:I,y:k,size:z,rotation:-Math.PI/2}):this._basicCornersRounded({x:I,y:k,size:z,rotation:Math.PI/2})}}const p={dot:"dot",square:"square",extraRounded:"extra-rounded"},b=Object.values(p);class _{constructor({svg:I,type:k,window:z}){this._svg=I,this._type=k,this._window=z}draw(I,k,z,F){let P;switch(this._type){case p.square:P=this._drawSquare;break;case p.extraRounded:P=this._drawExtraRounded;break;default:P=this._drawDot}P.call(this,{x:I,y:k,size:z,rotation:F})}_rotateFigure({x:I,y:k,size:z,rotation:F=0,draw:P}){var G;const Y=I+z/2,te=k+z/2;P(),(G=this._element)===null||G===void 0||G.setAttribute("transform",`rotate(${180*F/Math.PI},${Y},${te})`)}_basicDot(I){const{size:k,x:z,y:F}=I,P=k/7;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${z+k/2} ${F}a ${k/2} ${k/2} 0 1 0 0.1 0zm 0 ${P}a ${k/2-P} ${k/2-P} 0 1 1 -0.1 0Z`)}}))}_basicSquare(I){const{size:k,x:z,y:F}=I,P=k/7;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${z} ${F}v ${k}h ${k}v `+-k+`zM ${z+P} ${F+P}h `+(k-2*P)+"v "+(k-2*P)+"h "+(2*P-k)+"z")}}))}_basicExtraRounded(I){const{size:k,x:z,y:F}=I,P=k/7;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d",`M ${z} ${F+2.5*P}v `+2*P+`a ${2.5*P} ${2.5*P}, 0, 0, 0, ${2.5*P} ${2.5*P}h `+2*P+`a ${2.5*P} ${2.5*P}, 0, 0, 0, ${2.5*P} ${2.5*-P}v `+-2*P+`a ${2.5*P} ${2.5*P}, 0, 0, 0, ${2.5*-P} ${2.5*-P}h `+-2*P+`a ${2.5*P} ${2.5*P}, 0, 0, 0, ${2.5*-P} ${2.5*P}M ${z+2.5*P} ${F+P}h `+2*P+`a ${1.5*P} ${1.5*P}, 0, 0, 1, ${1.5*P} ${1.5*P}v `+2*P+`a ${1.5*P} ${1.5*P}, 0, 0, 1, ${1.5*-P} ${1.5*P}h `+-2*P+`a ${1.5*P} ${1.5*P}, 0, 0, 1, ${1.5*-P} ${1.5*-P}v `+-2*P+`a ${1.5*P} ${1.5*P}, 0, 0, 1, ${1.5*P} ${1.5*-P}`)}}))}_drawDot({x:I,y:k,size:z,rotation:F}){this._basicDot({x:I,y:k,size:z,rotation:F})}_drawSquare({x:I,y:k,size:z,rotation:F}){this._basicSquare({x:I,y:k,size:z,rotation:F})}_drawExtraRounded({x:I,y:k,size:z,rotation:F}){this._basicExtraRounded({x:I,y:k,size:z,rotation:F})}}const w={dot:"dot",square:"square"},x=Object.values(w);class C{constructor({svg:I,type:k,window:z}){this._svg=I,this._type=k,this._window=z}draw(I,k,z,F){let P;P=this._type===w.square?this._drawSquare:this._drawDot,P.call(this,{x:I,y:k,size:z,rotation:F})}_rotateFigure({x:I,y:k,size:z,rotation:F=0,draw:P}){var G;const Y=I+z/2,te=k+z/2;P(),(G=this._element)===null||G===void 0||G.setAttribute("transform",`rotate(${180*F/Math.PI},${Y},${te})`)}_basicDot(I){const{size:k,x:z,y:F}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(z+k/2)),this._element.setAttribute("cy",String(F+k/2)),this._element.setAttribute("r",String(k/2))}}))}_basicSquare(I){const{size:k,x:z,y:F}=I;this._rotateFigure(Object.assign(Object.assign({},I),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(z)),this._element.setAttribute("y",String(F)),this._element.setAttribute("width",String(k)),this._element.setAttribute("height",String(k))}}))}_drawDot({x:I,y:k,size:z,rotation:F}){this._basicDot({x:I,y:k,size:z,rotation:F})}_drawSquare({x:I,y:k,size:z,rotation:F}){this._basicSquare({x:I,y:k,size:z,rotation:F})}}const E="circle",j=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],O=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class N{constructor(I,k){this._roundSize=z=>this._options.dotsOptions.roundSize?Math.floor(z):z,this._window=k,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(I.width)),this._element.setAttribute("height",String(I.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),I.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${I.width} ${I.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=I.image,this._instanceId=N.instanceCount++,this._options=I}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(I){const k=I.getModuleCount(),z=Math.min(this._options.width,this._options.height)-2*this._options.margin,F=this._options.shape===E?z/Math.sqrt(2):z,P=this._roundSize(F/k);let G={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=I,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Y,qrOptions:te}=this._options,ue=Y.imageSize*f[te.errorCorrectionLevel],fe=Math.floor(ue*k*k);G=function({originalHeight:ge,originalWidth:D,maxHiddenDots:B,maxHiddenAxisDots:W,dotSize:le}){const H={x:0,y:0},ae={x:0,y:0};if(ge<=0||D<=0||B<=0||le<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const ce=ge/D;return H.x=Math.floor(Math.sqrt(B/ce)),H.x<=0&&(H.x=1),W&&W<H.x&&(H.x=W),H.x%2==0&&H.x--,ae.x=H.x*le,H.y=1+2*Math.ceil((H.x*ce-1)/2),ae.y=Math.round(ae.x*ce),(H.y*H.x>B||W&&W<H.y)&&(W&&W<H.y?(H.y=W,H.y%2==0&&H.x--):H.y-=2,ae.y=H.y*le,H.x=1+2*Math.ceil((H.y/ce-1)/2),ae.x=Math.round(ae.y/ce)),{height:ae.y,width:ae.x,hideYDots:H.y,hideXDots:H.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:k-14,dotSize:P})}this.drawBackground(),this.drawDots((Y,te)=>{var ue,fe,ge,D,B,W;return!(this._options.imageOptions.hideBackgroundDots&&Y>=(k-G.hideYDots)/2&&Y<(k+G.hideYDots)/2&&te>=(k-G.hideXDots)/2&&te<(k+G.hideXDots)/2||!((ue=j[Y])===null||ue===void 0)&&ue[te]||!((fe=j[Y-k+7])===null||fe===void 0)&&fe[te]||!((ge=j[Y])===null||ge===void 0)&&ge[te-k+7]||!((D=O[Y])===null||D===void 0)&&D[te]||!((B=O[Y-k+7])===null||B===void 0)&&B[te]||!((W=O[Y])===null||W===void 0)&&W[te-k+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:G.width,height:G.height,count:k,dotSize:P})}drawBackground(){var I,k,z;const F=this._element,P=this._options;if(F){const G=(I=P.backgroundOptions)===null||I===void 0?void 0:I.gradient,Y=(k=P.backgroundOptions)===null||k===void 0?void 0:k.color;let te=P.height,ue=P.width;if(G||Y){const fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id",`clip-path-background-color-${this._instanceId}`),this._defs.appendChild(this._backgroundClipPath),!((z=P.backgroundOptions)===null||z===void 0)&&z.round&&(te=ue=Math.min(P.width,P.height),fe.setAttribute("rx",String(te/2*P.backgroundOptions.round))),fe.setAttribute("x",String(this._roundSize((P.width-ue)/2))),fe.setAttribute("y",String(this._roundSize((P.height-te)/2))),fe.setAttribute("width",String(ue)),fe.setAttribute("height",String(te)),this._backgroundClipPath.appendChild(fe),this._createColor({options:G,color:Y,additionalRotation:0,x:0,y:0,height:P.height,width:P.width,name:`background-color-${this._instanceId}`})}}}drawDots(I){var k,z;if(!this._qr)throw"QR code is not defined";const F=this._options,P=this._qr.getModuleCount();if(P>F.width||P>F.height)throw"The canvas is too small.";const G=Math.min(F.width,F.height)-2*F.margin,Y=F.shape===E?G/Math.sqrt(2):G,te=this._roundSize(Y/P),ue=this._roundSize((F.width-P*te)/2),fe=this._roundSize((F.height-P*te)/2),ge=new m({svg:this._element,type:F.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id",`clip-path-dot-color-${this._instanceId}`),this._defs.appendChild(this._dotsClipPath),this._createColor({options:(k=F.dotsOptions)===null||k===void 0?void 0:k.gradient,color:F.dotsOptions.color,additionalRotation:0,x:0,y:0,height:F.height,width:F.width,name:`dot-color-${this._instanceId}`});for(let D=0;D<P;D++)for(let B=0;B<P;B++)I&&!I(D,B)||!((z=this._qr)===null||z===void 0)&&z.isDark(D,B)&&(ge.draw(ue+B*te,fe+D*te,te,(W,le)=>!(B+W<0||D+le<0||B+W>=P||D+le>=P)&&!(I&&!I(D+le,B+W))&&!!this._qr&&this._qr.isDark(D+le,B+W)),ge._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ge._element));if(F.shape===E){const D=this._roundSize((G/te-P)/2),B=P+2*D,W=ue-D*te,le=fe-D*te,H=[],ae=this._roundSize(B/2);for(let ce=0;ce<B;ce++){H[ce]=[];for(let ve=0;ve<B;ve++)ce>=D-1&&ce<=B-D&&ve>=D-1&&ve<=B-D||Math.sqrt((ce-ae)*(ce-ae)+(ve-ae)*(ve-ae))>ae?H[ce][ve]=0:H[ce][ve]=this._qr.isDark(ve-2*D<0?ve:ve>=P?ve-2*D:ve-D,ce-2*D<0?ce:ce>=P?ce-2*D:ce-D)?1:0}for(let ce=0;ce<B;ce++)for(let ve=0;ve<B;ve++)H[ce][ve]&&(ge.draw(W+ve*te,le+ce*te,te,(de,we)=>{var Ae;return!!(!((Ae=H[ce+we])===null||Ae===void 0)&&Ae[ve+de])}),ge._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(ge._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const I=this._element,k=this._options;if(!I)throw"Element code is not defined";const z=this._qr.getModuleCount(),F=Math.min(k.width,k.height)-2*k.margin,P=k.shape===E?F/Math.sqrt(2):F,G=this._roundSize(P/z),Y=7*G,te=3*G,ue=this._roundSize((k.width-z*G)/2),fe=this._roundSize((k.height-z*G)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([ge,D,B])=>{var W,le,H,ae,ce,ve,de,we,Ae,Le,Ve,Fe,He,be;const _e=ue+ge*G*(z-7),De=fe+D*G*(z-7);let Re=this._dotsClipPath,Me=this._dotsClipPath;if((!((W=k.cornersSquareOptions)===null||W===void 0)&&W.gradient||!((le=k.cornersSquareOptions)===null||le===void 0)&&le.color)&&(Re=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Re.setAttribute("id",`clip-path-corners-square-color-${ge}-${D}-${this._instanceId}`),this._defs.appendChild(Re),this._cornersSquareClipPath=this._cornersDotClipPath=Me=Re,this._createColor({options:(H=k.cornersSquareOptions)===null||H===void 0?void 0:H.gradient,color:(ae=k.cornersSquareOptions)===null||ae===void 0?void 0:ae.color,additionalRotation:B,x:_e,y:De,height:Y,width:Y,name:`corners-square-color-${ge}-${D}-${this._instanceId}`})),((ce=k.cornersSquareOptions)===null||ce===void 0?void 0:ce.type)&&b.includes(k.cornersSquareOptions.type)){const $e=new _({svg:this._element,type:k.cornersSquareOptions.type,window:this._window});$e.draw(_e,De,Y,B),$e._element&&Re&&Re.appendChild($e._element)}else{const $e=new m({svg:this._element,type:((ve=k.cornersSquareOptions)===null||ve===void 0?void 0:ve.type)||k.dotsOptions.type,window:this._window});for(let Ge=0;Ge<j.length;Ge++)for(let Ze=0;Ze<j[Ge].length;Ze++)!((de=j[Ge])===null||de===void 0)&&de[Ze]&&($e.draw(_e+Ze*G,De+Ge*G,G,(ut,it)=>{var dt;return!!(!((dt=j[Ge+it])===null||dt===void 0)&&dt[Ze+ut])}),$e._element&&Re&&Re.appendChild($e._element))}if((!((we=k.cornersDotOptions)===null||we===void 0)&&we.gradient||!((Ae=k.cornersDotOptions)===null||Ae===void 0)&&Ae.color)&&(Me=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Me.setAttribute("id",`clip-path-corners-dot-color-${ge}-${D}-${this._instanceId}`),this._defs.appendChild(Me),this._cornersDotClipPath=Me,this._createColor({options:(Le=k.cornersDotOptions)===null||Le===void 0?void 0:Le.gradient,color:(Ve=k.cornersDotOptions)===null||Ve===void 0?void 0:Ve.color,additionalRotation:B,x:_e+2*G,y:De+2*G,height:te,width:te,name:`corners-dot-color-${ge}-${D}-${this._instanceId}`})),((Fe=k.cornersDotOptions)===null||Fe===void 0?void 0:Fe.type)&&x.includes(k.cornersDotOptions.type)){const $e=new C({svg:this._element,type:k.cornersDotOptions.type,window:this._window});$e.draw(_e+2*G,De+2*G,te,B),$e._element&&Me&&Me.appendChild($e._element)}else{const $e=new m({svg:this._element,type:((He=k.cornersDotOptions)===null||He===void 0?void 0:He.type)||k.dotsOptions.type,window:this._window});for(let Ge=0;Ge<O.length;Ge++)for(let Ze=0;Ze<O[Ge].length;Ze++)!((be=O[Ge])===null||be===void 0)&&be[Ze]&&($e.draw(_e+Ze*G,De+Ge*G,G,(ut,it)=>{var dt;return!!(!((dt=O[Ge+it])===null||dt===void 0)&&dt[Ze+ut])}),$e._element&&Me&&Me.appendChild($e._element))}})}loadImage(){return new Promise((I,k)=>{var z;const F=this._options;if(!F.image)return k("Image is not defined");if(!((z=F.nodeCanvas)===null||z===void 0)&&z.loadImage)F.nodeCanvas.loadImage(F.image).then(P=>{var G,Y;if(this._image=P,this._options.imageOptions.saveAsBlob){const te=(G=F.nodeCanvas)===null||G===void 0?void 0:G.createCanvas(this._image.width,this._image.height);(Y=te?.getContext("2d"))===null||Y===void 0||Y.drawImage(P,0,0),this._imageUri=te?.toDataURL()}I()}).catch(k);else{const P=new this._window.Image;typeof F.imageOptions.crossOrigin=="string"&&(P.crossOrigin=F.imageOptions.crossOrigin),this._image=P,P.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(G,Y){return new Promise(te=>{const ue=new Y.XMLHttpRequest;ue.onload=function(){const fe=new Y.FileReader;fe.onloadend=function(){te(fe.result)},fe.readAsDataURL(ue.response)},ue.open("GET",G),ue.responseType="blob",ue.send()})}(F.image||"",this._window)),I()},P.src=F.image}})}async drawImage({width:I,height:k,count:z,dotSize:F}){const P=this._options,G=this._roundSize((P.width-z*F)/2),Y=this._roundSize((P.height-z*F)/2),te=G+this._roundSize(P.imageOptions.margin+(z*F-I)/2),ue=Y+this._roundSize(P.imageOptions.margin+(z*F-k)/2),fe=I-2*P.imageOptions.margin,ge=k-2*P.imageOptions.margin,D=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");D.setAttribute("href",this._imageUri||""),D.setAttribute("xlink:href",this._imageUri||""),D.setAttribute("x",String(te)),D.setAttribute("y",String(ue)),D.setAttribute("width",`${fe}px`),D.setAttribute("height",`${ge}px`),this._element.appendChild(D)}_createColor({options:I,color:k,additionalRotation:z,x:F,y:P,height:G,width:Y,name:te}){const ue=Y>G?Y:G,fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(fe.setAttribute("x",String(F)),fe.setAttribute("y",String(P)),fe.setAttribute("height",String(G)),fe.setAttribute("width",String(Y)),fe.setAttribute("clip-path",`url('#clip-path-${te}')`),I){let ge;if(I.type==="radial")ge=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),ge.setAttribute("id",te),ge.setAttribute("gradientUnits","userSpaceOnUse"),ge.setAttribute("fx",String(F+Y/2)),ge.setAttribute("fy",String(P+G/2)),ge.setAttribute("cx",String(F+Y/2)),ge.setAttribute("cy",String(P+G/2)),ge.setAttribute("r",String(ue/2));else{const D=((I.rotation||0)+z)%(2*Math.PI),B=(D+2*Math.PI)%(2*Math.PI);let W=F+Y/2,le=P+G/2,H=F+Y/2,ae=P+G/2;B>=0&&B<=.25*Math.PI||B>1.75*Math.PI&&B<=2*Math.PI?(W-=Y/2,le-=G/2*Math.tan(D),H+=Y/2,ae+=G/2*Math.tan(D)):B>.25*Math.PI&&B<=.75*Math.PI?(le-=G/2,W-=Y/2/Math.tan(D),ae+=G/2,H+=Y/2/Math.tan(D)):B>.75*Math.PI&&B<=1.25*Math.PI?(W+=Y/2,le+=G/2*Math.tan(D),H-=Y/2,ae-=G/2*Math.tan(D)):B>1.25*Math.PI&&B<=1.75*Math.PI&&(le+=G/2,W+=Y/2/Math.tan(D),ae-=G/2,H-=Y/2/Math.tan(D)),ge=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),ge.setAttribute("id",te),ge.setAttribute("gradientUnits","userSpaceOnUse"),ge.setAttribute("x1",String(Math.round(W))),ge.setAttribute("y1",String(Math.round(le))),ge.setAttribute("x2",String(Math.round(H))),ge.setAttribute("y2",String(Math.round(ae)))}I.colorStops.forEach(({offset:D,color:B})=>{const W=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");W.setAttribute("offset",100*D+"%"),W.setAttribute("stop-color",B),ge.appendChild(W)}),fe.setAttribute("fill",`url('#${te}')`),this._defs.appendChild(ge)}else k&&fe.setAttribute("fill",k);this._element.appendChild(fe)}}N.instanceCount=0;const U=N,$="canvas",K={};for(let Z=0;Z<=40;Z++)K[Z]=Z;const X={type:$,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:K[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function oe(Z){const I=Object.assign({},Z);if(!I.colorStops||!I.colorStops.length)throw"Field 'colorStops' is required in gradient";return I.rotation?I.rotation=Number(I.rotation):I.rotation=0,I.colorStops=I.colorStops.map(k=>Object.assign(Object.assign({},k),{offset:Number(k.offset)})),I}function ee(Z){const I=Object.assign({},Z);return I.width=Number(I.width),I.height=Number(I.height),I.margin=Number(I.margin),I.imageOptions=Object.assign(Object.assign({},I.imageOptions),{hideBackgroundDots:!!I.imageOptions.hideBackgroundDots,imageSize:Number(I.imageOptions.imageSize),margin:Number(I.imageOptions.margin)}),I.margin>Math.min(I.width,I.height)&&(I.margin=Math.min(I.width,I.height)),I.dotsOptions=Object.assign({},I.dotsOptions),I.dotsOptions.gradient&&(I.dotsOptions.gradient=oe(I.dotsOptions.gradient)),I.cornersSquareOptions&&(I.cornersSquareOptions=Object.assign({},I.cornersSquareOptions),I.cornersSquareOptions.gradient&&(I.cornersSquareOptions.gradient=oe(I.cornersSquareOptions.gradient))),I.cornersDotOptions&&(I.cornersDotOptions=Object.assign({},I.cornersDotOptions),I.cornersDotOptions.gradient&&(I.cornersDotOptions.gradient=oe(I.cornersDotOptions.gradient))),I.backgroundOptions&&(I.backgroundOptions=Object.assign({},I.backgroundOptions),I.backgroundOptions.gradient&&(I.backgroundOptions.gradient=oe(I.backgroundOptions.gradient))),I}var J=i(873),ne=i.n(J);function he(Z){if(!Z)throw new Error("Extension must be defined");Z[0]==="."&&(Z=Z.substring(1));const I={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[Z.toLowerCase()];if(!I)throw new Error(`Extension "${Z}" is not supported`);return I}class Q{constructor(I){I?.jsdom?this._window=new I.jsdom("",{resources:"usable"}).window:this._window=window,this._options=I?ee(u(X,I)):X,this.update()}static _clearContainer(I){I&&(I.innerHTML="")}_setupSvg(){if(!this._qr)return;const I=new U(this._options,this._window);this._svg=I.getElement(),this._svgDrawingPromise=I.drawQR(this._qr).then(()=>{var k;this._svg&&((k=this._extension)===null||k===void 0||k.call(this,I.getElement(),this._options))})}_setupCanvas(){var I,k;this._qr&&(!((I=this._options.nodeCanvas)===null||I===void 0)&&I.createCanvas?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=(k=this._svgDrawingPromise)===null||k===void 0?void 0:k.then(()=>{var z;if(!this._svg)return;const F=this._svg,P=new this._window.XMLSerializer().serializeToString(F),G=btoa(P),Y=`data:${he("svg")};base64,${G}`;if(!((z=this._options.nodeCanvas)===null||z===void 0)&&z.loadImage)return this._options.nodeCanvas.loadImage(Y).then(te=>{var ue,fe;te.width=this._options.width,te.height=this._options.height,(fe=(ue=this._nodeCanvas)===null||ue===void 0?void 0:ue.getContext("2d"))===null||fe===void 0||fe.drawImage(te,0,0)});{const te=new this._window.Image;return new Promise(ue=>{te.onload=()=>{var fe,ge;(ge=(fe=this._domCanvas)===null||fe===void 0?void 0:fe.getContext("2d"))===null||ge===void 0||ge.drawImage(te,0,0),ue()},te.src=Y})}}))}async _getElement(I="png"){if(!this._qr)throw"QR code is empty";return I.toLowerCase()==="svg"?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(I){Q._clearContainer(this._container),this._options=I?ee(u(this._options,I)):this._options,this._options.data&&(this._qr=ne()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(k){switch(!0){case/^[0-9]*$/.test(k):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(k):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===$?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(I){if(I){if(typeof I.appendChild!="function")throw"Container should be a single DOM node";this._options.type===$?this._domCanvas&&I.appendChild(this._domCanvas):this._svg&&I.appendChild(this._svg),this._container=I}}applyExtension(I){if(!I)throw"Extension function should be defined.";this._extension=I,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(I="png"){if(!this._qr)throw"QR code is empty";const k=await this._getElement(I),z=he(I);if(!k)return null;if(I.toLowerCase()==="svg"){const F=`<?xml version="1.0" standalone="no"?>\r
${new this._window.XMLSerializer().serializeToString(k)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(F):new Blob([F],{type:z})}return new Promise(F=>{const P=k;if("toBuffer"in P)if(z==="image/png")F(P.toBuffer(z));else if(z==="image/jpeg")F(P.toBuffer(z));else{if(z!=="application/pdf")throw Error("Unsupported extension");F(P.toBuffer(z))}else"toBlob"in P&&P.toBlob(F,z,1)})}async download(I){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let k="png",z="qr";typeof I=="string"?(k=I,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof I=="object"&&I!==null&&(I.name&&(z=I.name),I.extension&&(k=I.extension));const F=await this._getElement(k);if(F)if(k.toLowerCase()==="svg"){let P=new XMLSerializer().serializeToString(F);P=`<?xml version="1.0" standalone="no"?>\r
`+P,d(`data:${he(k)};charset=utf-8,${encodeURIComponent(P)}`,`${z}.svg`)}else d(F.toDataURL(he(k)),`${z}.${k}`)}}const se=Q})(),o.default})())}(jg)),jg.exports}var IJ=kJ();const UJ=Li(IJ);/*!
* Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2025 Fonticons, Inc.
*/var zJ={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M319.1 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7-55.8 .9-115.1 44.5-115.1 133.2 0 26.2 4.8 53.3 14.4 81.2 12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-30.7-61.7-90-61.7-91.9zM262.5 104.5c27.3-32.4 24.8-61.9 24-72.5-24.1 1.4-52 16.4-67.9 34.9-17.5 19.8-27.8 44.3-25.6 71.9 26.1 2 49.9-11.4 69.5-34.3z"]},BJ={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.5 253.9a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm-265.1 0a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm273.7-96.5l47.9-83c.8-1.1 1.3-2.4 1.5-3.8s.2-2.7-.1-4.1-.9-2.6-1.7-3.7-1.8-2-3-2.7-2.5-1.1-3.9-1.3-2.7 0-4 .4-2.5 1.1-3.6 1.9-1.9 2-2.5 3.2l-48.5 84.1c-38.8-17.4-80.8-26.4-123.3-26.4s-84.5 9-123.3 26.4L116.2 64.4c-.6-1.2-1.5-2.3-2.5-3.2s-2.3-1.5-3.6-1.9-2.7-.5-4-.4-2.7 .6-3.9 1.3-2.2 1.6-3 2.7-1.4 2.4-1.7 3.7-.3 2.7-.1 4.1 .8 2.6 1.5 3.8l47.9 83C64.5 202.2 8.2 285.5 0 384l576 0c-8.2-98.5-64.5-181.8-146.9-226.6z"]};const FJ="Left",$J="Right",VJ="Up",HJ="Down",qc={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},Qx={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},PO="mousemove",RO="mouseup",qJ="touchend",GJ="touchmove",YJ="touchstart";function WJ(e,t,n,r){return e>t?n>0?$J:FJ:r>0?HJ:VJ}function NO(e,t){if(t===0)return e;const n=Math.PI/180*t,r=e[0]*Math.cos(n)+e[1]*Math.sin(n),i=e[1]*Math.cos(n)-e[0]*Math.sin(n);return[r,i]}function KJ(e,t){const n=m=>{const p="touches"in m;p&&m.touches.length>1||e((b,_)=>{_.trackMouse&&!p&&(document.addEventListener(PO,r),document.addEventListener(RO,s));const{clientX:w,clientY:x}=p?m.touches[0]:m,C=NO([w,x],_.rotationAngle);return _.onTouchStartOrOnMouseDown&&_.onTouchStartOrOnMouseDown({event:m}),Object.assign(Object.assign(Object.assign({},b),Qx),{initial:C.slice(),xy:C,start:m.timeStamp||0})})},r=m=>{e((p,b)=>{const _="touches"in m;if(_&&m.touches.length>1)return p;if(m.timeStamp-p.start>b.swipeDuration)return p.swiping?Object.assign(Object.assign({},p),{swiping:!1}):p;const{clientX:w,clientY:x}=_?m.touches[0]:m,[C,E]=NO([w,x],b.rotationAngle),j=C-p.xy[0],O=E-p.xy[1],N=Math.abs(j),U=Math.abs(O),$=(m.timeStamp||0)-p.start,K=Math.sqrt(N*N+U*U)/($||1),X=[j/($||1),O/($||1)],oe=WJ(N,U,j,O),ee=typeof b.delta=="number"?b.delta:b.delta[oe.toLowerCase()]||qc.delta;if(N<ee&&U<ee&&!p.swiping)return p;const J={absX:N,absY:U,deltaX:j,deltaY:O,dir:oe,event:m,first:p.first,initial:p.initial,velocity:K,vxvy:X};J.first&&b.onSwipeStart&&b.onSwipeStart(J),b.onSwiping&&b.onSwiping(J);let ne=!1;return(b.onSwiping||b.onSwiped||b[`onSwiped${oe}`])&&(ne=!0),ne&&b.preventScrollOnSwipe&&b.trackTouch&&m.cancelable&&m.preventDefault(),Object.assign(Object.assign({},p),{first:!1,eventData:J,swiping:!0})})},i=m=>{e((p,b)=>{let _;if(p.swiping&&p.eventData){if(m.timeStamp-p.start<b.swipeDuration){_=Object.assign(Object.assign({},p.eventData),{event:m}),b.onSwiped&&b.onSwiped(_);const w=b[`onSwiped${_.dir}`];w&&w(_)}}else b.onTap&&b.onTap({event:m});return b.onTouchEndOrOnMouseUp&&b.onTouchEndOrOnMouseUp({event:m}),Object.assign(Object.assign(Object.assign({},p),Qx),{eventData:_})})},o=()=>{document.removeEventListener(PO,r),document.removeEventListener(RO,s)},s=m=>{o(),i(m)},u=(m,p)=>{let b=()=>{};if(m&&m.addEventListener){const _=Object.assign(Object.assign({},qc.touchEventOptions),p.touchEventOptions),w=[[YJ,n,_],[GJ,r,Object.assign(Object.assign({},_),p.preventScrollOnSwipe?{passive:!1}:{})],[qJ,i,_]];w.forEach(([x,C,E])=>m.addEventListener(x,C,E)),b=()=>w.forEach(([x,C])=>m.removeEventListener(x,C))}return b},f={ref:m=>{m!==null&&e((p,b)=>{if(p.el===m)return p;const _={};return p.el&&p.el!==m&&p.cleanUpTouch&&(p.cleanUpTouch(),_.cleanUpTouch=void 0),b.trackTouch&&m&&(_.cleanUpTouch=u(m,b)),Object.assign(Object.assign(Object.assign({},p),{el:m}),_)})}};return t.trackMouse&&(f.onMouseDown=n),[f,u]}function ZJ(e,t,n,r){return!t.trackTouch||!e.el?(e.cleanUpTouch&&e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:void 0})):e.cleanUpTouch?t.preventScrollOnSwipe!==n.preventScrollOnSwipe||t.touchEventOptions.passive!==n.touchEventOptions.passive?(e.cleanUpTouch(),Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})):e:Object.assign(Object.assign({},e),{cleanUpTouch:r(e.el,t)})}function XJ(e){const{trackMouse:t}=e,n=A.useRef(Object.assign({},Qx)),r=A.useRef(Object.assign({},qc)),i=A.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},qc),e);let o;for(o in qc)r.current[o]===void 0&&(r.current[o]=qc[o]);const[s,u]=A.useMemo(()=>KJ(d=>n.current=d(n.current,r.current),{trackMouse:t}),[t]);return n.current=ZJ(n.current,r.current,i.current,u),s}function Ab(e){return e==null?"":`${e}`}function QJ(e={}){const{separator:t,decimals:n}=e;return t?n?r=>r.toFixed(n).replace(".",t):r=>`${r}`.replace(".",t):n?r=>r.toFixed(n):r=>`${r}`}function Zw(e={}){const t=typeof e.quote=="string"?e.quote:'"',n=typeof e.escapedQuote=="string"?e.escapedQuote:`${t}${t}`;if(!t||t===n)return i=>i;const r=new RegExp(t,"g");return i=>(i.includes(t)&&(i=i.replace(r,n)),`${t}${i}${t}`)}function JJ(e={stringFormatter:Zw()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function eee(e={stringFormatter:Zw()}){return t=>{if(t===null)return"";let n=JSON.stringify(t);return n===void 0?"":(n[0]==='"'&&(n=n.replace(/^"(.+)"$/,"$1")),e.stringFormatter(n))}}const tee=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function nee(e){var t,n,r;const i=[];let o;for(;o=tee.exec(e);)i.push((r=(t=o[3])!==null&&t!==void 0?t:(n=o[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:o[0]);return i}function LO(e,t,n){if(t in e){const o=e[t];return o===void 0?n:o}const r=Array.isArray(t)?t:nee(t);let i=e;for(const o of r)if(i=i?.[o],i===void 0)return n;return i}function HL(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function Jx(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var DO;(function(e){e.header="header",e.undefined="undefined",e.boolean="boolean",e.number="number",e.bigint="bigint",e.string="string",e.symbol="symbol",e.function="function",e.object="object"})(DO||(DO={}));class ree{constructor(t){this.opts=this.preprocessOpts(t)}preprocessOpts(t){const n=Object.assign({},t);n.fields&&(n.fields=this.preprocessFieldsInfo(n.fields,n.defaultValue)),n.transforms=n.transforms||[];const r=n.formatters&&n.formatters.string||Zw(),i=eee({stringFormatter:r}),o={header:r,undefined:Ab,boolean:Ab,number:QJ(),bigint:Ab,string:r,symbol:JJ({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},o),n.formatters),n.delimiter=n.delimiter||",",n.eol=n.eol||`
`,n.header=n.header!==!1,n.includeEmptyRows=n.includeEmptyRows||!1,n.withBOM=n.withBOM||!1,n}preprocessFieldsInfo(t,n){return t.map(r=>{if(typeof r=="string")return{label:r,value:i=>LO(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const o=r.value;return{label:r.label||r.value,value:s=>LO(s,o,i)}}if(typeof r.value=="function"){const o=r.label||r.value.name||"",s={label:o,default:i},u=r.value;return{label:o,value(d){const f=u(d,s);return f===void 0?i:f}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return Jx(this.opts.fields.map(t=>this.opts.formatters.header(t.label)),this.opts.delimiter)}preprocessRow(t){return this.opts.transforms.reduce((n,r)=>n.map(i=>r(i)).reduce(HL,[]),[t])}processRow(t){if(!t)return;const n=this.opts.fields.map(r=>this.processCell(t,r));if(!(!this.opts.includeEmptyRows&&n.every(r=>r==="")))return Jx(n,this.opts.delimiter)}processCell(t,n){return this.processValue(n.value(t))}processValue(t){const n=this.opts.formatters[typeof t];return n(t)}}class qL extends ree{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((s,u)=>(Object.keys(u).forEach(d=>{s.includes(d)||s.push(d)}),s),[]),this.opts.defaultValue);const r=this.opts.header?this.getHeader():"",i=this.processData(n);return(this.opts.withBOM?"\uFEFF":"")+r+(r&&i?this.opts.eol:"")+i}preprocessData(t){const n=Array.isArray(t)?t:[t];if(!this.opts.fields){if(t==null||n.length===0)throw new Error('Data should not be empty or the "fields" option should be included');if(typeof n[0]!="object")throw new Error('Data items should be objects or the "fields" option should be included')}return this.opts.transforms.length===0?n:n.map(r=>this.preprocessRow(r)).reduce(HL,[])}processData(t){return Jx(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var cr;(function(e){e[e.BACKSPACE=8]="BACKSPACE",e[e.FORM_FEED=12]="FORM_FEED",e[e.NEWLINE=10]="NEWLINE",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.TAB=9]="TAB",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.NUMBER_SIGN=35]="NUMBER_SIGN",e[e.DOLLAR_SIGN=36]="DOLLAR_SIGN",e[e.PERCENT_SIGN=37]="PERCENT_SIGN",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.LEFT_PARENTHESIS=40]="LEFT_PARENTHESIS",e[e.RIGHT_PARENTHESIS=41]="RIGHT_PARENTHESIS",e[e.ASTERISK=42]="ASTERISK",e[e.PLUS_SIGN=43]="PLUS_SIGN",e[e.COMMA=44]="COMMA",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.FULL_STOP=46]="FULL_STOP",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_ZERO=48]="DIGIT_ZERO",e[e.DIGIT_ONE=49]="DIGIT_ONE",e[e.DIGIT_TWO=50]="DIGIT_TWO",e[e.DIGIT_THREE=51]="DIGIT_THREE",e[e.DIGIT_FOUR=52]="DIGIT_FOUR",e[e.DIGIT_FIVE=53]="DIGIT_FIVE",e[e.DIGIT_SIX=54]="DIGIT_SIX",e[e.DIGIT_SEVEN=55]="DIGIT_SEVEN",e[e.DIGIT_EIGHT=56]="DIGIT_EIGHT",e[e.DIGIT_NINE=57]="DIGIT_NINE",e[e.COLON=58]="COLON",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.COMMERCIAL_AT=64]="COMMERCIAL_AT",e[e.LATIN_CAPITAL_LETTER_A=65]="LATIN_CAPITAL_LETTER_A",e[e.LATIN_CAPITAL_LETTER_B=66]="LATIN_CAPITAL_LETTER_B",e[e.LATIN_CAPITAL_LETTER_C=67]="LATIN_CAPITAL_LETTER_C",e[e.LATIN_CAPITAL_LETTER_D=68]="LATIN_CAPITAL_LETTER_D",e[e.LATIN_CAPITAL_LETTER_E=69]="LATIN_CAPITAL_LETTER_E",e[e.LATIN_CAPITAL_LETTER_F=70]="LATIN_CAPITAL_LETTER_F",e[e.LATIN_CAPITAL_LETTER_G=71]="LATIN_CAPITAL_LETTER_G",e[e.LATIN_CAPITAL_LETTER_H=72]="LATIN_CAPITAL_LETTER_H",e[e.LATIN_CAPITAL_LETTER_I=73]="LATIN_CAPITAL_LETTER_I",e[e.LATIN_CAPITAL_LETTER_J=74]="LATIN_CAPITAL_LETTER_J",e[e.LATIN_CAPITAL_LETTER_K=75]="LATIN_CAPITAL_LETTER_K",e[e.LATIN_CAPITAL_LETTER_L=76]="LATIN_CAPITAL_LETTER_L",e[e.LATIN_CAPITAL_LETTER_M=77]="LATIN_CAPITAL_LETTER_M",e[e.LATIN_CAPITAL_LETTER_N=78]="LATIN_CAPITAL_LETTER_N",e[e.LATIN_CAPITAL_LETTER_O=79]="LATIN_CAPITAL_LETTER_O",e[e.LATIN_CAPITAL_LETTER_P=80]="LATIN_CAPITAL_LETTER_P",e[e.LATIN_CAPITAL_LETTER_Q=81]="LATIN_CAPITAL_LETTER_Q",e[e.LATIN_CAPITAL_LETTER_R=82]="LATIN_CAPITAL_LETTER_R",e[e.LATIN_CAPITAL_LETTER_S=83]="LATIN_CAPITAL_LETTER_S",e[e.LATIN_CAPITAL_LETTER_T=84]="LATIN_CAPITAL_LETTER_T",e[e.LATIN_CAPITAL_LETTER_U=85]="LATIN_CAPITAL_LETTER_U",e[e.LATIN_CAPITAL_LETTER_V=86]="LATIN_CAPITAL_LETTER_V",e[e.LATIN_CAPITAL_LETTER_W=87]="LATIN_CAPITAL_LETTER_W",e[e.LATIN_CAPITAL_LETTER_X=88]="LATIN_CAPITAL_LETTER_X",e[e.LATIN_CAPITAL_LETTER_Y=89]="LATIN_CAPITAL_LETTER_Y",e[e.LATIN_CAPITAL_LETTER_Z=90]="LATIN_CAPITAL_LETTER_Z",e[e.LEFT_SQUARE_BRACKET=91]="LEFT_SQUARE_BRACKET",e[e.REVERSE_SOLIDUS=92]="REVERSE_SOLIDUS",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.CIRCUMFLEX_ACCENT=94]="CIRCUMFLEX_ACCENT",e[e.LOW_LINE=95]="LOW_LINE",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_LETTER_A=97]="LATIN_SMALL_LETTER_A",e[e.LATIN_SMALL_LETTER_B=98]="LATIN_SMALL_LETTER_B",e[e.LATIN_SMALL_LETTER_C=99]="LATIN_SMALL_LETTER_C",e[e.LATIN_SMALL_LETTER_D=100]="LATIN_SMALL_LETTER_D",e[e.LATIN_SMALL_LETTER_E=101]="LATIN_SMALL_LETTER_E",e[e.LATIN_SMALL_LETTER_F=102]="LATIN_SMALL_LETTER_F",e[e.LATIN_SMALL_LETTER_G=103]="LATIN_SMALL_LETTER_G",e[e.LATIN_SMALL_LETTER_H=104]="LATIN_SMALL_LETTER_H",e[e.LATIN_SMALL_LETTER_I=105]="LATIN_SMALL_LETTER_I",e[e.LATIN_SMALL_LETTER_J=106]="LATIN_SMALL_LETTER_J",e[e.LATIN_SMALL_LETTER_K=107]="LATIN_SMALL_LETTER_K",e[e.LATIN_SMALL_LETTER_L=108]="LATIN_SMALL_LETTER_L",e[e.LATIN_SMALL_LETTER_M=109]="LATIN_SMALL_LETTER_M",e[e.LATIN_SMALL_LETTER_N=110]="LATIN_SMALL_LETTER_N",e[e.LATIN_SMALL_LETTER_O=111]="LATIN_SMALL_LETTER_O",e[e.LATIN_SMALL_LETTER_P=112]="LATIN_SMALL_LETTER_P",e[e.LATIN_SMALL_LETTER_Q=113]="LATIN_SMALL_LETTER_Q",e[e.LATIN_SMALL_LETTER_R=114]="LATIN_SMALL_LETTER_R",e[e.LATIN_SMALL_LETTER_S=115]="LATIN_SMALL_LETTER_S",e[e.LATIN_SMALL_LETTER_T=116]="LATIN_SMALL_LETTER_T",e[e.LATIN_SMALL_LETTER_U=117]="LATIN_SMALL_LETTER_U",e[e.LATIN_SMALL_LETTER_V=118]="LATIN_SMALL_LETTER_V",e[e.LATIN_SMALL_LETTER_W=119]="LATIN_SMALL_LETTER_W",e[e.LATIN_SMALL_LETTER_X=120]="LATIN_SMALL_LETTER_X",e[e.LATIN_SMALL_LETTER_Y=121]="LATIN_SMALL_LETTER_Y",e[e.LATIN_SMALL_LETTER_Z=122]="LATIN_SMALL_LETTER_Z",e[e.LEFT_CURLY_BRACKET=123]="LEFT_CURLY_BRACKET",e[e.VERTICAL_LINE=124]="VERTICAL_LINE",e[e.RIGHT_CURLY_BRACKET=125]="RIGHT_CURLY_BRACKET",e[e.TILDE=126]="TILDE"})(cr||(cr={}));cr.QUOTATION_MARK+"",cr.QUOTATION_MARK,cr.REVERSE_SOLIDUS+"",cr.REVERSE_SOLIDUS,cr.SOLIDUS+"",cr.SOLIDUS,cr.LATIN_SMALL_LETTER_B+"",cr.BACKSPACE,cr.LATIN_SMALL_LETTER_F+"",cr.FORM_FEED,cr.LATIN_SMALL_LETTER_N+"",cr.NEWLINE,cr.LATIN_SMALL_LETTER_R+"",cr.CARRIAGE_RETURN,cr.LATIN_SMALL_LETTER_T+"",cr.TAB;var kO;(function(e){e[e.LEFT_BRACE=0]="LEFT_BRACE",e[e.RIGHT_BRACE=1]="RIGHT_BRACE",e[e.LEFT_BRACKET=2]="LEFT_BRACKET",e[e.RIGHT_BRACKET=3]="RIGHT_BRACKET",e[e.COLON=4]="COLON",e[e.COMMA=5]="COMMA",e[e.TRUE=6]="TRUE",e[e.FALSE=7]="FALSE",e[e.NULL=8]="NULL",e[e.STRING=9]="STRING",e[e.NUMBER=10]="NUMBER",e[e.SEPARATOR=11]="SEPARATOR"})(kO||(kO={}));var IO;(function(e){e[e.START=0]="START",e[e.ENDED=1]="ENDED",e[e.ERROR=2]="ERROR",e[e.TRUE1=3]="TRUE1",e[e.TRUE2=4]="TRUE2",e[e.TRUE3=5]="TRUE3",e[e.FALSE1=6]="FALSE1",e[e.FALSE2=7]="FALSE2",e[e.FALSE3=8]="FALSE3",e[e.FALSE4=9]="FALSE4",e[e.NULL1=10]="NULL1",e[e.NULL2=11]="NULL2",e[e.NULL3=12]="NULL3",e[e.STRING_DEFAULT=13]="STRING_DEFAULT",e[e.STRING_AFTER_BACKSLASH=14]="STRING_AFTER_BACKSLASH",e[e.STRING_UNICODE_DIGIT_1=15]="STRING_UNICODE_DIGIT_1",e[e.STRING_UNICODE_DIGIT_2=16]="STRING_UNICODE_DIGIT_2",e[e.STRING_UNICODE_DIGIT_3=17]="STRING_UNICODE_DIGIT_3",e[e.STRING_UNICODE_DIGIT_4=18]="STRING_UNICODE_DIGIT_4",e[e.STRING_INCOMPLETE_CHAR=19]="STRING_INCOMPLETE_CHAR",e[e.NUMBER_AFTER_INITIAL_MINUS=20]="NUMBER_AFTER_INITIAL_MINUS",e[e.NUMBER_AFTER_INITIAL_ZERO=21]="NUMBER_AFTER_INITIAL_ZERO",e[e.NUMBER_AFTER_INITIAL_NON_ZERO=22]="NUMBER_AFTER_INITIAL_NON_ZERO",e[e.NUMBER_AFTER_FULL_STOP=23]="NUMBER_AFTER_FULL_STOP",e[e.NUMBER_AFTER_DECIMAL=24]="NUMBER_AFTER_DECIMAL",e[e.NUMBER_AFTER_E=25]="NUMBER_AFTER_E",e[e.NUMBER_AFTER_E_AND_SIGN=26]="NUMBER_AFTER_E_AND_SIGN",e[e.NUMBER_AFTER_E_AND_DIGIT=27]="NUMBER_AFTER_E_AND_DIGIT",e[e.SEPARATOR=28]="SEPARATOR",e[e.BOM_OR_START=29]="BOM_OR_START",e[e.BOM=30]="BOM"})(IO||(IO={}));var UO;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(UO||(UO={}));var zO;(function(e){e[e.VALUE=0]="VALUE",e[e.KEY=1]="KEY",e[e.COLON=2]="COLON",e[e.COMMA=3]="COMMA",e[e.ENDED=4]="ENDED",e[e.ERROR=5]="ERROR",e[e.SEPARATOR=6]="SEPARATOR"})(zO||(zO={}));var Tb={},Ob={},BO;function iee(){return BO||(BO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t}(Ob)),Ob}var jb={},FO;function GL(){return FO||(FO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t}(jb)),jb}var Mb={},$O;function YL(){return $O||($O=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="string"||typeof n=="symbol"?n:Object.is(n?.valueOf?.(),-0)?"-0":String(n)}e.toKey=t}(Mb)),Mb}var Pb={},VO;function Xw(){return VO||(VO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){const r=[],i=n.length;if(i===0)return r;let o=0,s="",u="",d=!1;for(n.charCodeAt(0)===46&&(r.push(""),o++);o<i;){const f=n[o];u?f==="\\"&&o+1<i?(o++,s+=n[o]):f===u?u="":s+=f:d?f==='"'||f==="'"?u=f:f==="]"?(d=!1,r.push(s),s=""):s+=f:f==="["?(d=!0,s&&(r.push(s),s="")):f==="."?s&&(r.push(s),s=""):s+=f,o++}return s&&r.push(s),r}e.toPath=t}(Pb)),Pb}var HO;function Qw(){return HO||(HO=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iee(),n=GL(),r=YL(),i=Xw();function o(u,d,f){if(u==null)return f;switch(typeof d){case"string":{if(t.isUnsafeProperty(d))return f;const m=u[d];return m===void 0?n.isDeepKey(d)?o(u,i.toPath(d),f):f:m}case"number":case"symbol":{typeof d=="number"&&(d=r.toKey(d));const m=u[d];return m===void 0?f:m}default:{if(Array.isArray(d))return s(u,d,f);if(Object.is(d?.valueOf(),-0)?d="-0":d=String(d),t.isUnsafeProperty(d))return f;const m=u[d];return m===void 0?f:m}}}function s(u,d,f){if(d.length===0)return f;let m=u;for(let p=0;p<d.length;p++){if(m==null||t.isUnsafeProperty(d[p]))return f;m=m[d[p]]}return m===void 0?f:m}e.get=o}(Tb)),Tb}var Rb,qO;function aee(){return qO||(qO=1,Rb=Qw().get),Rb}var oee=aee();const vl=Li(oee);var Nb={exports:{}},Vt={};/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var GO;function see(){if(GO)return Vt;GO=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,o=e?Symbol.for("react.profiler"):60114,s=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,d=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,b=e?Symbol.for("react.suspense_list"):60120,_=e?Symbol.for("react.memo"):60115,w=e?Symbol.for("react.lazy"):60116,x=e?Symbol.for("react.block"):60121,C=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,j=e?Symbol.for("react.scope"):60119;function O(U){if(typeof U=="object"&&U!==null){var $=U.$$typeof;switch($){case t:switch(U=U.type,U){case d:case f:case r:case o:case i:case p:return U;default:switch(U=U&&U.$$typeof,U){case u:case m:case w:case _:case s:return U;default:return $}}case n:return $}}}function N(U){return O(U)===f}return Vt.AsyncMode=d,Vt.ConcurrentMode=f,Vt.ContextConsumer=u,Vt.ContextProvider=s,Vt.Element=t,Vt.ForwardRef=m,Vt.Fragment=r,Vt.Lazy=w,Vt.Memo=_,Vt.Portal=n,Vt.Profiler=o,Vt.StrictMode=i,Vt.Suspense=p,Vt.isAsyncMode=function(U){return N(U)||O(U)===d},Vt.isConcurrentMode=N,Vt.isContextConsumer=function(U){return O(U)===u},Vt.isContextProvider=function(U){return O(U)===s},Vt.isElement=function(U){return typeof U=="object"&&U!==null&&U.$$typeof===t},Vt.isForwardRef=function(U){return O(U)===m},Vt.isFragment=function(U){return O(U)===r},Vt.isLazy=function(U){return O(U)===w},Vt.isMemo=function(U){return O(U)===_},Vt.isPortal=function(U){return O(U)===n},Vt.isProfiler=function(U){return O(U)===o},Vt.isStrictMode=function(U){return O(U)===i},Vt.isSuspense=function(U){return O(U)===p},Vt.isValidElementType=function(U){return typeof U=="string"||typeof U=="function"||U===r||U===f||U===o||U===i||U===p||U===b||typeof U=="object"&&U!==null&&(U.$$typeof===w||U.$$typeof===_||U.$$typeof===s||U.$$typeof===u||U.$$typeof===m||U.$$typeof===C||U.$$typeof===E||U.$$typeof===j||U.$$typeof===x)},Vt.typeOf=O,Vt}var YO;function lee(){return YO||(YO=1,Nb.exports=see()),Nb.exports}var uee=lee(),dr=e=>e===0?0:e>0?1:-1,Pi=e=>typeof e=="number"&&e!=+e,wu=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Je=e=>(typeof e=="number"||e instanceof Number)&&!Pi(e),oi=e=>Je(e)||typeof e=="string",cee=0,Rh=e=>{var t=++cee;return"".concat(e||"").concat(t)},Br=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(!Je(t)&&typeof t!="string")return r;var o;if(wu(t)){if(n==null)return r;var s=t.indexOf("%");o=n*parseFloat(t.slice(0,s))/100}else o=+t;return Pi(o)&&(o=r),i&&n!=null&&o>n&&(o=n),o},WL=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[e[r]])n[e[r]]=!0;else return!0;return!1},WO=(e,t)=>Je(e)&&Je(t)?n=>e+n*(t-e):()=>t;function ba(e,t,n){return Je(e)&&Je(t)?e+n*(t-e):t}function KL(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):vl(r,t))===n)}var dn=e=>e===null||typeof e>"u",nm=e=>dn(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1)),fee=["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"];function Jw(e){if(typeof e!="string")return!1;var t=fee;return t.includes(e)}var dee=["viewBox","children"],KO=["points","pathLength"],Lb={svg:dee,polygon:KO,polyline:KO},eS=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(A.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(i=>{Jw(i)&&(r[i]=o=>n[i](n,o))}),r},hee=(e,t,n)=>r=>(e(t,n,r),null),vy=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(i=>{var o=e[i];Jw(i)&&typeof o=="function"&&(r||(r={}),r[i]=hee(o,t,n))}),r},mee=["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"];function ZL(e){if(typeof e!="string")return!1;var t=mee;return t.includes(e)}function os(e){var t=Object.entries(e).filter(n=>{var[r]=n;return ZL(r)});return Object.fromEntries(t)}var ZO=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",XO=null,Db=null,XL=e=>{if(e===XO&&Array.isArray(Db))return Db;var t=[];return A.Children.forEach(e,n=>{dn(n)||(uee.isFragment(n)?t=t.concat(XL(n.props.children)):t.push(n))}),Db=t,XO=e,t};function rm(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(i=>ZO(i)):r=[ZO(t)],XL(e).forEach(i=>{var o=vl(i,"type.displayName")||vl(i,"type.name");r.indexOf(o)!==-1&&n.push(i)}),n}var QL=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,pee=(e,t,n,r)=>{var i;if(typeof t=="symbol"||typeof t=="number")return!0;var o=(i=r&&Lb?.[r])!==null&&i!==void 0?i:[],s=t.startsWith("data-"),u=typeof e!="function"&&(!!r&&o.includes(t)||ZL(t)),d=!!n&&Jw(t);return s||u||d},cn=(e,t,n)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var r=e;if(A.isValidElement(e)&&(r=e.props),typeof r!="object"&&typeof r!="function")return null;var i={};return Object.keys(r).forEach(o=>{var s;pee((s=r)===null||s===void 0?void 0:s[o],o,t,n)&&(i[o]=r[o])}),i},gee=["children","width","height","viewBox","className","style","title","desc"];function e2(){return e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e2.apply(null,arguments)}function vee(e,t){if(e==null)return{};var n,r,i=yee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function yee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var JL=A.forwardRef((e,t)=>{var{children:n,width:r,height:i,viewBox:o,className:s,style:u,title:d,desc:f}=e,m=vee(e,gee),p=o||{width:r,height:i,x:0,y:0},b=Pe("recharts-surface",s);return A.createElement("svg",e2({},cn(m,!0,"svg"),{className:b,width:r,height:i,style:u,viewBox:"".concat(p.x," ").concat(p.y," ").concat(p.width," ").concat(p.height),ref:t}),A.createElement("title",null,d),A.createElement("desc",null,f),n)}),bee=["children","className"];function t2(){return t2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t2.apply(null,arguments)}function _ee(e,t){if(e==null)return{};var n,r,i=xee(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function xee(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Sr=A.forwardRef((e,t)=>{var{children:n,className:r}=e,i=_ee(e,bee),o=Pe("recharts-layer",r);return A.createElement("g",t2({className:o},cn(i,!0),{ref:t}),n)}),wee=A.createContext(null);function nn(e){return function(){return e}}const eD=Math.cos,av=Math.sin,Na=Math.sqrt,ov=Math.PI,yy=2*ov,n2=Math.PI,r2=2*n2,vu=1e-6,See=r2-vu;function tD(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Cee(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return tD;const n=10**t;return function(r){this._+=r[0];for(let i=1,o=r.length;i<o;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class Eee{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?tD:Cee(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,o,s){this._append`C${+t},${+n},${+r},${+i},${this._x1=+o},${this._y1=+s}`}arcTo(t,n,r,i,o){if(t=+t,n=+n,r=+r,i=+i,o=+o,o<0)throw new Error(`negative radius: ${o}`);let s=this._x1,u=this._y1,d=r-t,f=i-n,m=s-t,p=u-n,b=m*m+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(b>vu)if(!(Math.abs(p*d-f*m)>vu)||!o)this._append`L${this._x1=t},${this._y1=n}`;else{let _=r-s,w=i-u,x=d*d+f*f,C=_*_+w*w,E=Math.sqrt(x),j=Math.sqrt(b),O=o*Math.tan((n2-Math.acos((x+b-C)/(2*E*j)))/2),N=O/j,U=O/E;Math.abs(N-1)>vu&&this._append`L${t+N*m},${n+N*p}`,this._append`A${o},${o},0,0,${+(p*_>m*w)},${this._x1=t+U*d},${this._y1=n+U*f}`}}arc(t,n,r,i,o,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let u=r*Math.cos(i),d=r*Math.sin(i),f=t+u,m=n+d,p=1^s,b=s?i-o:o-i;this._x1===null?this._append`M${f},${m}`:(Math.abs(this._x1-f)>vu||Math.abs(this._y1-m)>vu)&&this._append`L${f},${m}`,r&&(b<0&&(b=b%r2+r2),b>See?this._append`A${r},${r},0,1,${p},${t-u},${n-d}A${r},${r},0,1,${p},${this._x1=f},${this._y1=m}`:b>vu&&this._append`A${r},${r},0,${+(b>=n2)},${p},${this._x1=t+r*Math.cos(o)},${this._y1=n+r*Math.sin(o)}`)}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 tS(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 Eee(t)}function nS(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function nD(e){this._context=e}nD.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 by(e){return new nD(e)}function rD(e){return e[0]}function iD(e){return e[1]}function aD(e,t){var n=nn(!0),r=null,i=by,o=null,s=tS(u);e=typeof e=="function"?e:e===void 0?rD:nn(e),t=typeof t=="function"?t:t===void 0?iD:nn(t);function u(d){var f,m=(d=nS(d)).length,p,b=!1,_;for(r==null&&(o=i(_=s())),f=0;f<=m;++f)!(f<m&&n(p=d[f],f,d))===b&&((b=!b)?o.lineStart():o.lineEnd()),b&&o.point(+e(p,f,d),+t(p,f,d));if(_)return o=null,_+""||null}return u.x=function(d){return arguments.length?(e=typeof d=="function"?d:nn(+d),u):e},u.y=function(d){return arguments.length?(t=typeof d=="function"?d:nn(+d),u):t},u.defined=function(d){return arguments.length?(n=typeof d=="function"?d:nn(!!d),u):n},u.curve=function(d){return arguments.length?(i=d,r!=null&&(o=i(r)),u):i},u.context=function(d){return arguments.length?(d==null?r=o=null:o=i(r=d),u):r},u}function Jp(e,t,n){var r=null,i=nn(!0),o=null,s=by,u=null,d=tS(f);e=typeof e=="function"?e:e===void 0?rD:nn(+e),t=typeof t=="function"?t:nn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?iD:nn(+n);function f(p){var b,_,w,x=(p=nS(p)).length,C,E=!1,j,O=new Array(x),N=new Array(x);for(o==null&&(u=s(j=d())),b=0;b<=x;++b){if(!(b<x&&i(C=p[b],b,p))===E)if(E=!E)_=b,u.areaStart(),u.lineStart();else{for(u.lineEnd(),u.lineStart(),w=b-1;w>=_;--w)u.point(O[w],N[w]);u.lineEnd(),u.areaEnd()}E&&(O[b]=+e(C,b,p),N[b]=+t(C,b,p),u.point(r?+r(C,b,p):O[b],n?+n(C,b,p):N[b]))}if(j)return u=null,j+""||null}function m(){return aD().defined(i).curve(s).context(o)}return f.x=function(p){return arguments.length?(e=typeof p=="function"?p:nn(+p),r=null,f):e},f.x0=function(p){return arguments.length?(e=typeof p=="function"?p:nn(+p),f):e},f.x1=function(p){return arguments.length?(r=p==null?null:typeof p=="function"?p:nn(+p),f):r},f.y=function(p){return arguments.length?(t=typeof p=="function"?p:nn(+p),n=null,f):t},f.y0=function(p){return arguments.length?(t=typeof p=="function"?p:nn(+p),f):t},f.y1=function(p){return arguments.length?(n=p==null?null:typeof p=="function"?p:nn(+p),f):n},f.lineX0=f.lineY0=function(){return m().x(e).y(t)},f.lineY1=function(){return m().x(e).y(n)},f.lineX1=function(){return m().x(r).y(t)},f.defined=function(p){return arguments.length?(i=typeof p=="function"?p:nn(!!p),f):i},f.curve=function(p){return arguments.length?(s=p,o!=null&&(u=s(o)),f):s},f.context=function(p){return arguments.length?(p==null?o=u=null:u=s(o=p),f):o},f}class oD{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 Aee(e){return new oD(e,!0)}function Tee(e){return new oD(e,!1)}const rS={draw(e,t){const n=Na(t/ov);e.moveTo(n,0),e.arc(0,0,n,0,yy)}},Oee={draw(e,t){const n=Na(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()}},sD=Na(1/3),jee=sD*2,Mee={draw(e,t){const n=Na(t/jee),r=n*sD;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},Pee={draw(e,t){const n=Na(t),r=-n/2;e.rect(r,r,n,n)}},Ree=.8908130915292852,lD=av(ov/10)/av(7*ov/10),Nee=av(yy/10)*lD,Lee=-eD(yy/10)*lD,Dee={draw(e,t){const n=Na(t*Ree),r=Nee*n,i=Lee*n;e.moveTo(0,-n),e.lineTo(r,i);for(let o=1;o<5;++o){const s=yy*o/5,u=eD(s),d=av(s);e.lineTo(d*n,-u*n),e.lineTo(u*r-d*i,d*r+u*i)}e.closePath()}},kb=Na(3),kee={draw(e,t){const n=-Na(t/(kb*3));e.moveTo(0,n*2),e.lineTo(-kb*n,-n),e.lineTo(kb*n,-n),e.closePath()}},Xi=-.5,Qi=Na(3)/2,i2=1/Na(12),Iee=(i2/2+1)*3,Uee={draw(e,t){const n=Na(t/Iee),r=n/2,i=n*i2,o=r,s=n*i2+n,u=-o,d=s;e.moveTo(r,i),e.lineTo(o,s),e.lineTo(u,d),e.lineTo(Xi*r-Qi*i,Qi*r+Xi*i),e.lineTo(Xi*o-Qi*s,Qi*o+Xi*s),e.lineTo(Xi*u-Qi*d,Qi*u+Xi*d),e.lineTo(Xi*r+Qi*i,Xi*i-Qi*r),e.lineTo(Xi*o+Qi*s,Xi*s-Qi*o),e.lineTo(Xi*u+Qi*d,Xi*d-Qi*u),e.closePath()}};function zee(e,t){let n=null,r=tS(i);e=typeof e=="function"?e:nn(e||rS),t=typeof t=="function"?t:nn(t===void 0?64:+t);function i(){let o;if(n||(n=o=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),o)return n=null,o+""||null}return i.type=function(o){return arguments.length?(e=typeof o=="function"?o:nn(o),i):e},i.size=function(o){return arguments.length?(t=typeof o=="function"?o:nn(+o),i):t},i.context=function(o){return arguments.length?(n=o??null,i):n},i}function sv(){}function lv(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 uD(e){this._context=e}uD.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:lv(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:lv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Bee(e){return new uD(e)}function cD(e){this._context=e}cD.prototype={areaStart:sv,areaEnd:sv,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:lv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Fee(e){return new cD(e)}function fD(e){this._context=e}fD.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:lv(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function $ee(e){return new fD(e)}function dD(e){this._context=e}dD.prototype={areaStart:sv,areaEnd:sv,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 Vee(e){return new dD(e)}function QO(e){return e<0?-1:1}function JO(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),s=(n-e._y1)/(i||r<0&&-0),u=(o*i+s*r)/(r+i);return(QO(o)+QO(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(u))||0}function ej(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Ib(e,t,n){var r=e._x0,i=e._y0,o=e._x1,s=e._y1,u=(o-r)/3;e._context.bezierCurveTo(r+u,i+u*t,o-u,s-u*n,o,s)}function uv(e){this._context=e}uv.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:Ib(this,this._t0,ej(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,Ib(this,ej(this,n=JO(this,e,t)),n);break;default:Ib(this,this._t0,n=JO(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function hD(e){this._context=new mD(e)}(hD.prototype=Object.create(uv.prototype)).point=function(e,t){uv.prototype.point.call(this,t,e)};function mD(e){this._context=e}mD.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,o){this._context.bezierCurveTo(t,e,r,n,o,i)}};function Hee(e){return new uv(e)}function qee(e){return new hD(e)}function pD(e){this._context=e}pD.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=tj(e),i=tj(t),o=0,s=1;s<n;++o,++s)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function tj(e){var t,n=e.length-1,r,i=new Array(n),o=new Array(n),s=new Array(n);for(i[0]=0,o[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,s[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,s[t]-=r*s[t-1];for(i[n-1]=s[n-1]/o[n-1],t=n-2;t>=0;--t)i[t]=(s[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Gee(e){return new pD(e)}function _y(e,t){this._context=e,this._t=t}_y.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 Yee(e){return new _y(e,.5)}function Wee(e){return new _y(e,0)}function Kee(e){return new _y(e,1)}function lf(e,t){if((s=e.length)>1)for(var n=1,r,i,o=e[t[0]],s,u=o.length;n<s;++n)for(i=o,o=e[t[n]],r=0;r<u;++r)o[r][1]+=o[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function a2(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function Zee(e,t){return e[t]}function Xee(e){const t=[];return t.key=e,t}function Qee(){var e=nn([]),t=a2,n=lf,r=Zee;function i(o){var s=Array.from(e.apply(this,arguments),Xee),u,d=s.length,f=-1,m;for(const p of o)for(u=0,++f;u<d;++u)(s[u][f]=[0,+r(p,s[u].key,f,o)]).data=p;for(u=0,m=nS(t(s));u<d;++u)s[m[u]].index=u;return n(s,m),s}return i.keys=function(o){return arguments.length?(e=typeof o=="function"?o:nn(Array.from(o)),i):e},i.value=function(o){return arguments.length?(r=typeof o=="function"?o:nn(+o),i):r},i.order=function(o){return arguments.length?(t=o==null?a2:typeof o=="function"?o:nn(Array.from(o)),i):t},i.offset=function(o){return arguments.length?(n=o??lf,i):n},i}function Jee(e,t){if((r=e.length)>0){for(var n,r,i=0,o=e[0].length,s;i<o;++i){for(s=n=0;n<r;++n)s+=e[n][i][1]||0;if(s)for(n=0;n<r;++n)e[n][i][1]/=s}lf(e,t)}}function ete(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,o=r.length;n<o;++n){for(var s=0,u=0;s<i;++s)u+=e[s][n][1]||0;r[n][1]+=r[n][0]=-u/2}lf(e,t)}}function tte(e,t){if(!(!((s=e.length)>0)||!((o=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,o,s;r<o;++r){for(var u=0,d=0,f=0;u<s;++u){for(var m=e[t[u]],p=m[r][1]||0,b=m[r-1][1]||0,_=(p-b)/2,w=0;w<u;++w){var x=e[t[w]],C=x[r][1]||0,E=x[r-1][1]||0;_+=C-E}d+=p,f+=_*p}i[r-1][1]+=i[r-1][0]=n,d&&(n-=f/d)}i[r-1][1]+=i[r-1][0]=n,lf(e,t)}}var nte=["type","size","sizeType"];function o2(){return o2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o2.apply(null,arguments)}function nj(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 rj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nj(Object(n),!0).forEach(function(r){rte(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rte(e,t,n){return(t=ite(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ite(e){var t=ate(e,"string");return typeof t=="symbol"?t:t+""}function ate(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ote(e,t){if(e==null)return{};var n,r,i=ste(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ste(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var gD={symbolCircle:rS,symbolCross:Oee,symbolDiamond:Mee,symbolSquare:Pee,symbolStar:Dee,symbolTriangle:kee,symbolWye:Uee},lte=Math.PI/180,ute=e=>{var t="symbol".concat(nm(e));return gD[t]||rS},cte=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*lte;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},fte=(e,t)=>{gD["symbol".concat(nm(e))]=t},vD=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,i=ote(e,nte),o=rj(rj({},i),{},{type:t,size:n,sizeType:r}),s=()=>{var p=ute(t),b=zee().type(p).size(cte(n,r,t));return b()},{className:u,cx:d,cy:f}=o,m=cn(o,!0);return d===+d&&f===+f&&n===+n?A.createElement("path",o2({},m,{className:Pe("recharts-symbols",u),transform:"translate(".concat(d,", ").concat(f,")"),d:s()})):null};vD.registerSymbol=fte;var Ub={},zb={},ij;function dte(){return ij||(ij=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const i=new Map;for(let o=0;o<n.length;o++){const s=n[o],u=r(s);i.has(u)||i.set(u,s)}return Array.from(i.values())}e.uniqBy=t}(zb)),zb}var Bb={},aj;function yD(){return aj||(aj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t}(Bb)),Bb}var Fb={},$b={},Vb={},oj;function hte(){return oj||(oj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t}(Vb)),Vb}var sj;function iS(){return sj||(sj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hte();function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n}($b)),$b}var Hb={},lj;function mte(){return lj||(lj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t}(Hb)),Hb}var uj;function pte(){return uj||(uj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iS(),n=mte();function r(i){return n.isObjectLike(i)&&t.isArrayLike(i)}e.isArrayLikeObject=r}(Fb)),Fb}var qb={},Gb={},cj;function gte(){return cj||(cj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Qw();function n(r){return function(i){return t.get(i,r)}}e.property=n}(Gb)),Gb}var Yb={},Wb={},Kb={},Zb={},fj;function bD(){return fj||(fj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t}(Zb)),Zb}var Xb={},dj;function _D(){return dj||(dj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t}(Xb)),Xb}var Qb={},hj;function aS(){return hj||(hj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t}(Qb)),Qb}var mj;function vte(){return mj||(mj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oS(),n=bD(),r=_D(),i=aS();function o(p,b,_){return typeof _!="function"?t.isMatch(p,b):s(p,b,function w(x,C,E,j,O,N){const U=_(x,C,E,j,O,N);return U!==void 0?!!U:s(x,C,w,N)},new Map)}function s(p,b,_,w){if(b===p)return!0;switch(typeof b){case"object":return u(p,b,_,w);case"function":return Object.keys(b).length>0?s(p,{...b},_,w):i.eq(p,b);default:return n.isObject(p)?typeof b=="string"?b==="":!0:i.eq(p,b)}}function u(p,b,_,w){if(b==null)return!0;if(Array.isArray(b))return f(p,b,_,w);if(b instanceof Map)return d(p,b,_,w);if(b instanceof Set)return m(p,b,_,w);const x=Object.keys(b);if(p==null)return x.length===0;if(x.length===0)return!0;if(w&&w.has(b))return w.get(b)===p;w&&w.set(b,p);try{for(let C=0;C<x.length;C++){const E=x[C];if(!r.isPrimitive(p)&&!(E in p)||b[E]===void 0&&p[E]!==void 0||b[E]===null&&p[E]!==null||!_(p[E],b[E],E,p,b,w))return!1}return!0}finally{w&&w.delete(b)}}function d(p,b,_,w){if(b.size===0)return!0;if(!(p instanceof Map))return!1;for(const[x,C]of b.entries()){const E=p.get(x);if(_(E,C,x,p,b,w)===!1)return!1}return!0}function f(p,b,_,w){if(b.length===0)return!0;if(!Array.isArray(p))return!1;const x=new Set;for(let C=0;C<b.length;C++){const E=b[C];let j=!1;for(let O=0;O<p.length;O++){if(x.has(O))continue;const N=p[O];let U=!1;if(_(N,E,C,p,b,w)&&(U=!0),U){x.add(O),j=!0;break}}if(!j)return!1}return!0}function m(p,b,_,w){return b.size===0?!0:p instanceof Set?f([...p],[...b],_,w):!1}e.isMatchWith=o,e.isSetMatch=m}(Kb)),Kb}var pj;function oS(){return pj||(pj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vte();function n(r,i){return t.isMatchWith(r,i,()=>{})}e.isMatch=n}(Wb)),Wb}var Jb={},e_={},t_={},gj;function xD(){return gj||(gj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t}(t_)),t_}var n_={},vj;function sS(){return vj||(vj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t}(n_)),n_}var r_={},yj;function lS(){return yj||(yj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",i="[object Boolean]",o="[object Arguments]",s="[object Symbol]",u="[object Date]",d="[object Map]",f="[object Set]",m="[object Array]",p="[object Function]",b="[object ArrayBuffer]",_="[object Object]",w="[object Error]",x="[object DataView]",C="[object Uint8Array]",E="[object Uint8ClampedArray]",j="[object Uint16Array]",O="[object Uint32Array]",N="[object BigUint64Array]",U="[object Int8Array]",$="[object Int16Array]",K="[object Int32Array]",X="[object BigInt64Array]",oe="[object Float32Array]",ee="[object Float64Array]";e.argumentsTag=o,e.arrayBufferTag=b,e.arrayTag=m,e.bigInt64ArrayTag=X,e.bigUint64ArrayTag=N,e.booleanTag=i,e.dataViewTag=x,e.dateTag=u,e.errorTag=w,e.float32ArrayTag=oe,e.float64ArrayTag=ee,e.functionTag=p,e.int16ArrayTag=$,e.int32ArrayTag=K,e.int8ArrayTag=U,e.mapTag=d,e.numberTag=r,e.objectTag=_,e.regexpTag=t,e.setTag=f,e.stringTag=n,e.symbolTag=s,e.uint16ArrayTag=j,e.uint32ArrayTag=O,e.uint8ArrayTag=C,e.uint8ClampedArrayTag=E}(r_)),r_}var i_={},bj;function yte(){return bj||(bj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t}(i_)),i_}var _j;function wD(){return _j||(_j=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xD(),n=sS(),r=lS(),i=_D(),o=yte();function s(m,p){return u(m,void 0,m,new Map,p)}function u(m,p,b,_=new Map,w=void 0){const x=w?.(m,p,b,_);if(x!=null)return x;if(i.isPrimitive(m))return m;if(_.has(m))return _.get(m);if(Array.isArray(m)){const C=new Array(m.length);_.set(m,C);for(let E=0;E<m.length;E++)C[E]=u(m[E],E,b,_,w);return Object.hasOwn(m,"index")&&(C.index=m.index),Object.hasOwn(m,"input")&&(C.input=m.input),C}if(m instanceof Date)return new Date(m.getTime());if(m instanceof RegExp){const C=new RegExp(m.source,m.flags);return C.lastIndex=m.lastIndex,C}if(m instanceof Map){const C=new Map;_.set(m,C);for(const[E,j]of m)C.set(E,u(j,E,b,_,w));return C}if(m instanceof Set){const C=new Set;_.set(m,C);for(const E of m)C.add(u(E,void 0,b,_,w));return C}if(typeof Buffer<"u"&&Buffer.isBuffer(m))return m.subarray();if(o.isTypedArray(m)){const C=new(Object.getPrototypeOf(m)).constructor(m.length);_.set(m,C);for(let E=0;E<m.length;E++)C[E]=u(m[E],E,b,_,w);return C}if(m instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&m instanceof SharedArrayBuffer)return m.slice(0);if(m instanceof DataView){const C=new DataView(m.buffer.slice(0),m.byteOffset,m.byteLength);return _.set(m,C),d(C,m,b,_,w),C}if(typeof File<"u"&&m instanceof File){const C=new File([m],m.name,{type:m.type});return _.set(m,C),d(C,m,b,_,w),C}if(m instanceof Blob){const C=new Blob([m],{type:m.type});return _.set(m,C),d(C,m,b,_,w),C}if(m instanceof Error){const C=new m.constructor;return _.set(m,C),C.message=m.message,C.name=m.name,C.stack=m.stack,C.cause=m.cause,d(C,m,b,_,w),C}if(typeof m=="object"&&f(m)){const C=Object.create(Object.getPrototypeOf(m));return _.set(m,C),d(C,m,b,_,w),C}return m}function d(m,p,b=m,_,w){const x=[...Object.keys(p),...t.getSymbols(p)];for(let C=0;C<x.length;C++){const E=x[C],j=Object.getOwnPropertyDescriptor(m,E);(j==null||j.writable)&&(m[E]=u(p[E],E,b,_,w))}}function f(m){switch(n.getTag(m)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=s,e.cloneDeepWithImpl=u,e.copyProperties=d}(e_)),e_}var xj;function bte(){return xj||(xj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wD();function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n}(Jb)),Jb}var wj;function _te(){return wj||(wj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oS(),n=bte();function r(i){return i=n.cloneDeep(i),o=>t.isMatch(o,i)}e.matches=r}(Yb)),Yb}var a_={},o_={},s_={},Sj;function xte(){return Sj||(Sj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=wD(),n=lS();function r(i,o){return t.cloneDeepWith(i,(s,u,d,f)=>{const m=o?.(s,u,d,f);if(m!=null)return m;if(typeof i=="object")switch(Object.prototype.toString.call(i)){case n.numberTag:case n.stringTag:case n.booleanTag:{const p=new i.constructor(i?.valueOf());return t.copyProperties(p,i),p}case n.argumentsTag:{const p={};return t.copyProperties(p,i),p.length=i.length,p[Symbol.iterator]=i[Symbol.iterator],p}default:return}})}e.cloneDeepWith=r}(s_)),s_}var Cj;function wte(){return Cj||(Cj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=xte();function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n}(o_)),o_}var l_={},u_={},Ej;function SD(){return Ej||(Ej=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,i=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<i;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n}(u_)),u_}var c_={},Aj;function Ste(){return Aj||(Aj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=sS();function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n}(c_)),c_}var Tj;function Cte(){return Tj||(Tj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GL(),n=SD(),r=Ste(),i=Xw();function o(s,u){let d;if(Array.isArray(u)?d=u:typeof u=="string"&&t.isDeepKey(u)&&s?.[u]==null?d=i.toPath(u):d=[u],d.length===0)return!1;let f=s;for(let m=0;m<d.length;m++){const p=d[m];if((f==null||!Object.hasOwn(f,p))&&!((Array.isArray(f)||r.isArguments(f))&&n.isIndex(p)&&p<f.length))return!1;f=f[p]}return!0}e.has=o}(l_)),l_}var Oj;function Ete(){return Oj||(Oj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oS(),n=YL(),r=wte(),i=Qw(),o=Cte();function s(u,d){switch(typeof u){case"object":{Object.is(u?.valueOf(),-0)&&(u="-0");break}case"number":{u=n.toKey(u);break}}return d=r.cloneDeep(d),function(f){const m=i.get(f,u);return m===void 0?o.has(f,u):d===void 0?m===void 0:t.isMatch(m,d)}}e.matchesProperty=s}(a_)),a_}var jj;function Ate(){return jj||(jj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yD(),n=gte(),r=_te(),i=Ete();function o(s){if(s==null)return t.identity;switch(typeof s){case"function":return s;case"object":return Array.isArray(s)&&s.length===2?i.matchesProperty(s[0],s[1]):r.matches(s);case"string":case"symbol":case"number":return n.property(s)}}e.iteratee=o}(qb)),qb}var Mj;function Tte(){return Mj||(Mj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=dte(),n=yD(),r=pte(),i=Ate();function o(s,u=n.identity){return r.isArrayLikeObject(s)?t.uniqBy(Array.from(s),i.iteratee(u)):[]}e.uniqBy=o}(Ub)),Ub}var f_,Pj;function Ote(){return Pj||(Pj=1,f_=Tte().uniqBy),f_}var jte=Ote();const Rj=Li(jte);function Mte(e,t,n){return t===!0?Rj(e,n):typeof t=="function"?Rj(e,t):e}var d_={exports:{}},h_={},m_={exports:{}},p_={};/**
* @license React
* use-sync-external-store-shim.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Nj;function Pte(){if(Nj)return p_;Nj=1;var e=yf();function t(p,b){return p===b&&(p!==0||1/p===1/b)||p!==p&&b!==b}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,i=e.useEffect,o=e.useLayoutEffect,s=e.useDebugValue;function u(p,b){var _=b(),w=r({inst:{value:_,getSnapshot:b}}),x=w[0].inst,C=w[1];return o(function(){x.value=_,x.getSnapshot=b,d(x)&&C({inst:x})},[p,_,b]),i(function(){return d(x)&&C({inst:x}),p(function(){d(x)&&C({inst:x})})},[p]),s(_),_}function d(p){var b=p.getSnapshot;p=p.value;try{var _=b();return!n(p,_)}catch{return!0}}function f(p,b){return b()}var m=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?f:u;return p_.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:m,p_}var Lj;function Rte(){return Lj||(Lj=1,m_.exports=Pte()),m_.exports}/**
* @license React
* use-sync-external-store-shim/with-selector.production.js
*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var Dj;function Nte(){if(Dj)return h_;Dj=1;var e=yf(),t=Rte();function n(f,m){return f===m&&(f!==0||1/f===1/m)||f!==f&&m!==m}var r=typeof Object.is=="function"?Object.is:n,i=t.useSyncExternalStore,o=e.useRef,s=e.useEffect,u=e.useMemo,d=e.useDebugValue;return h_.useSyncExternalStoreWithSelector=function(f,m,p,b,_){var w=o(null);if(w.current===null){var x={hasValue:!1,value:null};w.current=x}else x=w.current;w=u(function(){function E($){if(!j){if(j=!0,O=$,$=b($),_!==void 0&&x.hasValue){var K=x.value;if(_(K,$))return N=K}return N=$}if(K=N,r(O,$))return K;var X=b($);return _!==void 0&&_(K,X)?(O=$,K):(O=$,N=X)}var j=!1,O,N,U=p===void 0?null:p;return[function(){return E(m())},U===null?void 0:function(){return E(U())}]},[m,p,b,_]);var C=i(f,w[0],w[1]);return s(function(){x.hasValue=!0,x.value=C},[C]),d(C),C},h_}var kj;function Lte(){return kj||(kj=1,d_.exports=Nte()),d_.exports}var Dte=Lte(),uS=A.createContext(null),kte=e=>e,Rn=()=>{var e=A.useContext(uS);return e?e.store.dispatch:kte},Mg=()=>{},Ite=()=>Mg,Ute=(e,t)=>e===t;function rt(e){var t=A.useContext(uS);return Dte.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Ite,t?t.store.getState:Mg,t?t.store.getState:Mg,t?e:Mg,Ute)}var g_={},v_={},y_={},Ij;function zte(){return Ij||(Ij=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,i,o)=>{if(r!==i){const s=t(r),u=t(i);if(s===u&&s===0){if(r<i)return o==="desc"?1:-1;if(r>i)return o==="desc"?-1:1}return o==="desc"?u-s:s-u}return 0};e.compareValues=n}(y_)),y_}var b_={},__={},Uj;function CD(){return Uj||(Uj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t}(__)),__}var zj;function Bte(){return zj||(zj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CD(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(o,s){return Array.isArray(o)?!1:typeof o=="number"||typeof o=="boolean"||o==null||t.isSymbol(o)?!0:typeof o=="string"&&(r.test(o)||!n.test(o))||s!=null&&Object.hasOwn(s,o)}e.isKey=i}(b_)),b_}var Bj;function Fte(){return Bj||(Bj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=zte(),n=Bte(),r=Xw();function i(o,s,u,d){if(o==null)return[];u=d?void 0:u,Array.isArray(o)||(o=Object.values(o)),Array.isArray(s)||(s=s==null?[null]:[s]),s.length===0&&(s=[null]),Array.isArray(u)||(u=u==null?[]:[u]),u=u.map(_=>String(_));const f=(_,w)=>{let x=_;for(let C=0;C<w.length&&x!=null;++C)x=x[w[C]];return x},m=(_,w)=>w==null||_==null?w:typeof _=="object"&&"key"in _?Object.hasOwn(w,_.key)?w[_.key]:f(w,_.path):typeof _=="function"?_(w):Array.isArray(_)?f(w,_):typeof w=="object"?w[_]:w,p=s.map(_=>(Array.isArray(_)&&_.length===1&&(_=_[0]),_==null||typeof _=="function"||Array.isArray(_)||n.isKey(_)?_:{key:_,path:r.toPath(_)}));return o.map(_=>({original:_,criteria:p.map(w=>m(w,_))})).slice().sort((_,w)=>{for(let x=0;x<p.length;x++){const C=t.compareValues(_.criteria[x],w.criteria[x],u[x]);if(C!==0)return C}return 0}).map(_=>_.original)}e.orderBy=i}(v_)),v_}var x_={},Fj;function $te(){return Fj||(Fj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const i=[],o=Math.floor(r),s=(u,d)=>{for(let f=0;f<u.length;f++){const m=u[f];Array.isArray(m)&&d<o?s(m,d+1):i.push(m)}};return s(n,0),i}e.flatten=t}(x_)),x_}var w_={},$j;function ED(){return $j||($j=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=SD(),n=iS(),r=bD(),i=aS();function o(s,u,d){return r.isObject(d)&&(typeof u=="number"&&n.isArrayLike(d)&&t.isIndex(u)&&u<d.length||typeof u=="string"&&u in d)?i.eq(d[u],s):!1}e.isIterateeCall=o}(w_)),w_}var Vj;function Vte(){return Vj||(Vj=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Fte(),n=$te(),r=ED();function i(o,...s){const u=s.length;return u>1&&r.isIterateeCall(o,s[0],s[1])?s=[]:u>2&&r.isIterateeCall(s[0],s[1],s[2])&&(s=[s[0]]),t.orderBy(o,n.flatten(s),["asc"])}e.sortBy=i}(g_)),g_}var S_,Hj;function Hte(){return Hj||(Hj=1,S_=Vte().sortBy),S_}var qte=Hte();const xy=Li(qte);var AD=e=>e.legend.settings,Gte=e=>e.legend.size,Yte=e=>e.legend.payload;je([Yte,AD],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?xy(r,n):r});var eg=1;function Wte(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=A.useState({height:0,left:0,top:0,width:0}),r=A.useCallback(i=>{if(i!=null){var o=i.getBoundingClientRect(),s={height:o.height,left:o.left,top:o.top,width:o.width};(Math.abs(s.height-t.height)>eg||Math.abs(s.left-t.left)>eg||Math.abs(s.top-t.top)>eg||Math.abs(s.width-t.width)>eg)&&n({height:s.height,left:s.left,top:s.top,width:s.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}var Kte={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},TD=Nt({name:"chartLayout",initialState:Kte,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){e.margin.top=t.payload.top,e.margin.right=t.payload.right,e.margin.bottom=t.payload.bottom,e.margin.left=t.payload.left},setScale(e,t){e.scale=t.payload}}}),{setMargin:Zte,setLayout:Xte,setChartSize:Qte,setScale:Jte}=TD.actions,ene=TD.reducer;function qj(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 Gj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qj(Object(n),!0).forEach(function(r){tne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tne(e,t,n){return(t=nne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nne(e){var t=rne(e,"string");return typeof t=="symbol"?t:t+""}function rne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var cv=Math.PI/180,ine=e=>e*180/Math.PI,Gn=(e,t,n,r)=>({x:e+Math.cos(-cv*r)*n,y:t+Math.sin(-cv*r)*n}),OD=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},ane=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return Math.sqrt((n-i)**2+(r-o)**2)},one=(e,t)=>{var{x:n,y:r}=e,{cx:i,cy:o}=t,s=ane({x:n,y:r},{x:i,y:o});if(s<=0)return{radius:s,angle:0};var u=(n-i)/s,d=Math.acos(u);return r>o&&(d=2*Math.PI-d),{radius:s,angle:ine(d),angleInRadian:d}},sne=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),i=Math.floor(n/360),o=Math.min(r,i);return{startAngle:t-o*360,endAngle:n-o*360}},lne=(e,t)=>{var{startAngle:n,endAngle:r}=t,i=Math.floor(n/360),o=Math.floor(r/360),s=Math.min(i,o);return e+s*360},une=(e,t)=>{var{x:n,y:r}=e,{radius:i,angle:o}=one({x:n,y:r},t),{innerRadius:s,outerRadius:u}=t;if(i<s||i>u||i===0)return null;var{startAngle:d,endAngle:f}=sne(t),m=o,p;if(d<=f){for(;m>f;)m-=360;for(;m<d;)m+=360;p=m>=d&&m<=f}else{for(;m>d;)m-=360;for(;m<f;)m+=360;p=m>=f&&m<=d}return p?Gj(Gj({},t),{},{radius:i,angle:lne(m,t)}):null};function jD(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Yj(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 ea(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Yj(Object(n),!0).forEach(function(r){cne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cne(e,t,n){return(t=fne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fne(e){var t=dne(e,"string");return typeof t=="symbol"?t:t+""}function dne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function en(e,t,n){return dn(e)||dn(t)?n:oi(t)?vl(e,t,n):typeof t=="function"?t(e):n}var hne=(e,t,n,r,i)=>{var o,s=-1,u=(o=t?.length)!==null&&o!==void 0?o:0;if(u<=1||e==null)return 0;if(r==="angleAxis"&&i!=null&&Math.abs(Math.abs(i[1]-i[0])-360)<=1e-6)for(var d=0;d<u;d++){var f=d>0?n[d-1].coordinate:n[u-1].coordinate,m=n[d].coordinate,p=d>=u-1?n[0].coordinate:n[d+1].coordinate,b=void 0;if(dr(m-f)!==dr(p-m)){var _=[];if(dr(p-m)===dr(i[1]-i[0])){b=p;var w=m+i[1]-i[0];_[0]=Math.min(w,(w+f)/2),_[1]=Math.max(w,(w+f)/2)}else{b=f;var x=p+i[1]-i[0];_[0]=Math.min(m,(x+m)/2),_[1]=Math.max(m,(x+m)/2)}var C=[Math.min(m,(b+m)/2),Math.max(m,(b+m)/2)];if(e>C[0]&&e<=C[1]||e>=_[0]&&e<=_[1]){({index:s}=n[d]);break}}else{var E=Math.min(f,p),j=Math.max(f,p);if(e>(E+m)/2&&e<=(j+m)/2){({index:s}=n[d]);break}}}else if(t){for(var O=0;O<u;O++)if(O===0&&e<=(t[O].coordinate+t[O+1].coordinate)/2||O>0&&O<u-1&&e>(t[O].coordinate+t[O-1].coordinate)/2&&e<=(t[O].coordinate+t[O+1].coordinate)/2||O===u-1&&e>(t[O].coordinate+t[O-1].coordinate)/2){({index:s}=t[O]);break}}return s},mne=(e,t,n)=>{if(t&&n){var{width:r,height:i}=n,{align:o,verticalAlign:s,layout:u}=t;if((u==="vertical"||u==="horizontal"&&s==="middle")&&o!=="center"&&Je(e[o]))return ea(ea({},e),{},{[o]:e[o]+(r||0)});if((u==="horizontal"||u==="vertical"&&o==="center")&&s!=="middle"&&Je(e[s]))return ea(ea({},e),{},{[s]:e[s]+(i||0)})}return e},El=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",MD=(e,t,n,r)=>{if(r)return e.map(u=>u.coordinate);var i,o,s=e.map(u=>(u.coordinate===t&&(i=!0),u.coordinate===n&&(o=!0),u.coordinate));return i||s.push(t),o||s.push(n),s},PD=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:i,range:o,scale:s,realScaleType:u,isCategorical:d,categoricalDomain:f,tickCount:m,ticks:p,niceTicks:b,axisType:_}=e;if(!s)return null;var w=u==="scaleBand"&&s.bandwidth?s.bandwidth()/2:2,x=i==="category"&&s.bandwidth?s.bandwidth()/w:0;if(x=_==="angleAxis"&&o&&o.length>=2?dr(o[0]-o[1])*2*x:x,p||b){var C=(p||b||[]).map((E,j)=>{var O=r?r.indexOf(E):E;return{coordinate:s(O)+x,value:E,offset:x,index:j}});return C.filter(E=>!Pi(E.coordinate))}return d&&f?f.map((E,j)=>({coordinate:s(E)+x,value:E,index:j,offset:x})):s.ticks&&m!=null?s.ticks(m).map((E,j)=>({coordinate:s(E)+x,value:E,offset:x,index:j})):s.domain().map((E,j)=>({coordinate:s(E)+x,value:r?r[E]:E,index:j,offset:x}))},Wj=1e-4,pne=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),i=Math.min(r[0],r[1])-Wj,o=Math.max(r[0],r[1])+Wj,s=e(t[0]),u=e(t[n-1]);(s<i||s>o||u<i||u>o)&&e.domain([t[0],t[n-1]])}},gne=(e,t)=>{if(!t||t.length!==2||!Je(t[0])||!Je(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),i=[e[0],e[1]];return(!Je(e[0])||e[0]<n)&&(i[0]=n),(!Je(e[1])||e[1]>r)&&(i[1]=r),i[0]>r&&(i[0]=r),i[1]<n&&(i[1]=n),i},vne=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0,s=0;s<t;++s){var u=Pi(e[s][n][1])?e[s][n][0]:e[s][n][1];u>=0?(e[s][n][0]=i,e[s][n][1]=i+u,i=e[s][n][1]):(e[s][n][0]=o,e[s][n][1]=o+u,o=e[s][n][1])}},yne=e=>{var t=e.length;if(!(t<=0))for(var n=0,r=e[0].length;n<r;++n)for(var i=0,o=0;o<t;++o){var s=Pi(e[o][n][1])?e[o][n][0]:e[o][n][1];s>=0?(e[o][n][0]=i,e[o][n][1]=i+s,i=e[o][n][1]):(e[o][n][0]=0,e[o][n][1]=0)}},bne={sign:vne,expand:Jee,none:lf,silhouette:ete,wiggle:tte,positive:yne},_ne=(e,t,n)=>{var r=bne[n],i=Qee().keys(t).value((o,s)=>+en(o,s,0)).order(a2).offset(r);return i(e)};function xne(e){return e==null?void 0:String(e)}function Kj(e){var{axis:t,ticks:n,bandSize:r,entry:i,index:o,dataKey:s}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!dn(i[t.dataKey])){var u=KL(n,"value",i[t.dataKey]);if(u)return u.coordinate+r/2}return n[o]?n[o].coordinate+r/2:null}var d=en(i,dn(s)?t.dataKey:s);return dn(d)?null:t.scale(d)}var Zj=e=>{var{axis:t,ticks:n,offset:r,bandSize:i,entry:o,index:s}=e;if(t.type==="category")return n[s]?n[s].coordinate+r:null;var u=en(o,t.dataKey,t.scale.domain()[s]);return dn(u)?null:t.scale(u)-i/2+r},wne=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]);return r<=0&&i>=0?0:i<0?i:r}return n[0]},Sne=e=>{var t=e.flat(2).filter(Je);return[Math.min(...t),Math.max(...t)]},Cne=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Ene=(e,t,n)=>{if(e!=null)return Cne(Object.keys(e).reduce((r,i)=>{var o=e[i],{stackedData:s}=o,u=s.reduce((d,f)=>{var m=jD(f,t,n),p=Sne(m);return[Math.min(d[0],p[0]),Math.max(d[1],p[1])]},[1/0,-1/0]);return[Math.min(u[0],r[0]),Math.max(u[1],r[1])]},[1/0,-1/0]))},Xj=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Qj=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Nh=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var i=xy(t,m=>m.coordinate),o=1/0,s=1,u=i.length;s<u;s++){var d=i[s],f=i[s-1];o=Math.min((d.coordinate||0)-(f.coordinate||0),o)}return o===1/0?0:o}return n?void 0:0};function Jj(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:i,name:o}=e;return ea(ea({},t),{},{dataKey:n,payload:r,value:i,name:o})}function jf(e,t){if(e)return String(e);if(typeof t=="string")return t}function Ane(e,t,n,r,i){if(n==="horizontal"||n==="vertical"){var o=e>=i.left&&e<=i.left+i.width&&t>=i.top&&t<=i.top+i.height;return o?{x:e,y:t}:null}return r?une({x:e,y:t},r):null}var Tne=(e,t,n,r)=>{var i=t.find(f=>f&&f.index===n);if(i){if(e==="horizontal")return{x:i.coordinate,y:r.y};if(e==="vertical")return{x:r.x,y:i.coordinate};if(e==="centric"){var o=i.coordinate,{radius:s}=r;return ea(ea(ea({},r),Gn(r.cx,r.cy,s,o)),{},{angle:o,radius:s})}var u=i.coordinate,{angle:d}=r;return ea(ea(ea({},r),Gn(r.cx,r.cy,u,d)),{},{angle:d,radius:u})}return{x:0,y:0}},One=(e,t)=>t==="horizontal"?e.x:t==="vertical"?e.y:t==="centric"?e.angle:e.radius,ss=e=>e.layout.width,ls=e=>e.layout.height,jne=e=>e.layout.scale,RD=e=>e.layout.margin,cS=je(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),fS=je(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),ND="data-recharts-item-index",LD="data-recharts-item-data-key",wy=60;function e5(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 Xs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e5(Object(n),!0).forEach(function(r){Mne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mne(e,t,n){return(t=Pne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pne(e){var t=Rne(e,"string");return typeof t=="symbol"?t:t+""}function Rne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Nne=e=>e.brush.height,nr=je([ss,ls,RD,Nne,cS,fS,AD,Gte],(e,t,n,r,i,o,s,u)=>{var d=o.reduce((w,x)=>{var{orientation:C}=x;if(!x.mirror&&!x.hide){var E=typeof x.width=="number"?x.width:wy;return Xs(Xs({},w),{},{[C]:w[C]+E})}return w},{left:n.left||0,right:n.right||0}),f=i.reduce((w,x)=>{var{orientation:C}=x;return!x.mirror&&!x.hide?Xs(Xs({},w),{},{[C]:vl(w,"".concat(C))+x.height}):w},{top:n.top||0,bottom:n.bottom||0}),m=Xs(Xs({},f),d),p=m.bottom;m.bottom+=r,m=mne(m,s,u);var b=e-m.left-m.right,_=t-m.top-m.bottom;return Xs(Xs({brushBottom:p},m),{},{width:Math.max(b,0),height:Math.max(_,0)})}),Lne=je(nr,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),DD=je(ss,ls,(e,t)=>({x:0,y:0,width:e,height:t})),Dne=A.createContext(null),Vr=()=>A.useContext(Dne)!=null,Sy=e=>e.brush,Cy=je([Sy,nr,RD],(e,t,n)=>({height:e.height,x:Je(e.x)?e.x:t.left,y:Je(e.y)?e.y:t.top+t.height+t.brushBottom-(n?.bottom||0),width:Je(e.width)?e.width:t.width})),dS=()=>{var e,t=Vr(),n=rt(Lne),r=rt(Cy),i=(e=rt(Sy))===null||e===void 0?void 0:e.padding;return!t||!r||!i?n:{width:r.width-i.left-i.right,height:r.height-i.top-i.bottom,x:i.left,y:i.top}},kne={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},kD=()=>{var e;return(e=rt(nr))!==null&&e!==void 0?e:kne},ID=()=>rt(ss),UD=()=>rt(ls),Lt=e=>e.layout.layoutType,Ey=()=>rt(Lt),Ine={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},zD=Nt({name:"legend",initialState:Ine,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload(e,t){e.payload.push(t.payload)},removeLegendPayload(e,t){var n=qo(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)}}}),{setLegendSize:J_e,setLegendSettings:exe,addLegendPayload:BD,removeLegendPayload:FD}=zD.actions,Une=zD.reducer;function s2(){return s2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s2.apply(null,arguments)}function t5(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 C_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t5(Object(n),!0).forEach(function(r){zne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zne(e,t,n){return(t=Bne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bne(e){var t=Fne(e,"string");return typeof t=="symbol"?t:t+""}function Fne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $ne(e){return Array.isArray(e)&&oi(e[0])&&oi(e[1])?e.join(" ~ "):e}var Vne=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:i={},payload:o,formatter:s,itemSorter:u,wrapperClassName:d,labelClassName:f,label:m,labelFormatter:p,accessibilityLayer:b=!1}=e,_=()=>{if(o&&o.length){var U={padding:0,margin:0},$=(u?xy(o,u):o).map((K,X)=>{if(K.type==="none")return null;var oe=K.formatter||s||$ne,{value:ee,name:J}=K,ne=ee,he=J;if(oe){var Q=oe(ee,J,K,X,o);if(Array.isArray(Q))[ne,he]=Q;else if(Q!=null)ne=Q;else return null}var se=C_({display:"block",paddingTop:4,paddingBottom:4,color:K.color||"#000"},r);return A.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(X),style:se},oi(he)?A.createElement("span",{className:"recharts-tooltip-item-name"},he):null,oi(he)?A.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,A.createElement("span",{className:"recharts-tooltip-item-value"},ne),A.createElement("span",{className:"recharts-tooltip-item-unit"},K.unit||""))});return A.createElement("ul",{className:"recharts-tooltip-item-list",style:U},$)}return null},w=C_({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),x=C_({margin:0},i),C=!dn(m),E=C?m:"",j=Pe("recharts-default-tooltip",d),O=Pe("recharts-tooltip-label",f);C&&p&&o!==void 0&&o!==null&&(E=p(m,o));var N=b?{role:"status","aria-live":"assertive"}:{};return A.createElement("div",s2({className:j,style:w},N),A.createElement("p",{className:O,style:x},A.isValidElement(E)?E:"".concat(E)),_())},Zd="recharts-tooltip-wrapper",Hne={visibility:"hidden"};function qne(e){var{coordinate:t,translateX:n,translateY:r}=e;return Pe(Zd,{["".concat(Zd,"-right")]:Je(n)&&t&&Je(t.x)&&n>=t.x,["".concat(Zd,"-left")]:Je(n)&&t&&Je(t.x)&&n<t.x,["".concat(Zd,"-bottom")]:Je(r)&&t&&Je(t.y)&&r>=t.y,["".concat(Zd,"-top")]:Je(r)&&t&&Je(t.y)&&r<t.y})}function n5(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:i,position:o,reverseDirection:s,tooltipDimension:u,viewBox:d,viewBoxDimension:f}=e;if(o&&Je(o[r]))return o[r];var m=n[r]-u-(i>0?i:0),p=n[r]+i;if(t[r])return s[r]?m:p;var b=d[r];if(b==null)return 0;if(s[r]){var _=m,w=b;return _<w?Math.max(p,b):Math.max(m,b)}if(f==null)return 0;var x=p+u,C=b+f;return x>C?Math.max(m,b):Math.max(p,b)}function Gne(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Yne(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:i,reverseDirection:o,tooltipBox:s,useTranslate3d:u,viewBox:d}=e,f,m,p;return s.height>0&&s.width>0&&n?(m=n5({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.width,viewBox:d,viewBoxDimension:d.width}),p=n5({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:o,tooltipDimension:s.height,viewBox:d,viewBoxDimension:d.height}),f=Gne({translateX:m,translateY:p,useTranslate3d:u})):f=Hne,{cssProperties:f,cssClasses:qne({translateX:m,translateY:p,coordinate:n})}}function r5(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 tg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r5(Object(n),!0).forEach(function(r){l2(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function l2(e,t,n){return(t=Wne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wne(e){var t=Kne(e,"string");return typeof t=="symbol"?t:t+""}function Kne(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Zne extends A.PureComponent{constructor(){super(...arguments),l2(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),l2(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,i,o;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(i=(o=this.props.coordinate)===null||o===void 0?void 0:o.y)!==null&&i!==void 0?i:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:i,children:o,coordinate:s,hasPayload:u,isAnimationActive:d,offset:f,position:m,reverseDirection:p,useTranslate3d:b,viewBox:_,wrapperStyle:w,lastBoundingBox:x,innerRef:C,hasPortalFromProps:E}=this.props,{cssClasses:j,cssProperties:O}=Yne({allowEscapeViewBox:n,coordinate:s,offsetTopLeft:f,position:m,reverseDirection:p,tooltipBox:{height:x.height,width:x.width},useTranslate3d:b,viewBox:_}),N=E?{}:tg(tg({transition:d&&t?"transform ".concat(r,"ms ").concat(i):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&u?"visible":"hidden",position:"absolute",top:0,left:0}),U=tg(tg({},N),{},{visibility:!this.state.dismissed&&t&&u?"visible":"hidden"},w);return A.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:j,style:U,ref:C},o)}}var Xne=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Gu={isSsr:Xne()},$D=()=>rt(e=>e.rootProps.accessibilityLayer);function Ri(e){return Number.isFinite(e)}function uf(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function u2(){return u2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u2.apply(null,arguments)}function i5(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 a5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?i5(Object(n),!0).forEach(function(r){Qne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Qne(e,t,n){return(t=Jne(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jne(e){var t=ere(e,"string");return typeof t=="symbol"?t:t+""}function ere(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o5={curveBasisClosed:Fee,curveBasisOpen:$ee,curveBasis:Bee,curveBumpX:Aee,curveBumpY:Tee,curveLinearClosed:Vee,curveLinear:by,curveMonotoneX:Hee,curveMonotoneY:qee,curveNatural:Gee,curveStep:Yee,curveStepAfter:Kee,curveStepBefore:Wee},ng=e=>Ri(e.x)&&Ri(e.y),Xd=e=>e.x,Qd=e=>e.y,tre=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(nm(e));return(n==="curveMonotone"||n==="curveBump")&&t?o5["".concat(n).concat(t==="vertical"?"Y":"X")]:o5[n]||by},nre=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:i,connectNulls:o=!1}=e,s=tre(t,i),u=o?n.filter(ng):n,d;if(Array.isArray(r)){var f=o?r.filter(p=>ng(p)):r,m=u.map((p,b)=>a5(a5({},p),{},{base:f[b]}));return i==="vertical"?d=Jp().y(Qd).x1(Xd).x0(p=>p.base.x):d=Jp().x(Xd).y1(Qd).y0(p=>p.base.y),d.defined(ng).curve(s),d(m)}return i==="vertical"&&Je(r)?d=Jp().y(Qd).x1(Xd).x0(r):Je(r)?d=Jp().x(Xd).y1(Qd).y0(r):d=aD().x(Xd).y(Qd),d.defined(ng).curve(s),d(u)},hS=e=>{var{className:t,points:n,path:r,pathRef:i}=e;if((!n||!n.length)&&!r)return null;var o=n&&n.length?nre(e):r;return A.createElement("path",u2({},os(e),eS(e),{className:Pe("recharts-curve",t),d:o===null?void 0:o,ref:i}))},rre=["x","y","top","left","width","height","className"];function c2(){return c2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},c2.apply(null,arguments)}function s5(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 ire(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s5(Object(n),!0).forEach(function(r){are(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function are(e,t,n){return(t=ore(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ore(e){var t=sre(e,"string");return typeof t=="symbol"?t:t+""}function sre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function lre(e,t){if(e==null)return{};var n,r,i=ure(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ure(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var cre=(e,t,n,r,i,o)=>"M".concat(e,",").concat(i,"v").concat(r,"M").concat(o,",").concat(t,"h").concat(n),fre=e=>{var{x:t=0,y:n=0,top:r=0,left:i=0,width:o=0,height:s=0,className:u}=e,d=lre(e,rre),f=ire({x:t,y:n,top:r,left:i,width:o,height:s},d);return!Je(t)||!Je(n)||!Je(o)||!Je(s)||!Je(r)||!Je(i)?null:A.createElement("path",c2({},cn(f,!0),{className:Pe("recharts-cross",u),d:cre(t,n,o,s,r,i)}))};function dre(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 l5(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 hre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l5(Object(n),!0).forEach(function(r){mre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mre(e,t,n){return(t=pre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pre(e){var t=gre(e,"string");return typeof t=="symbol"?t:t+""}function gre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ki(e,t){var n=hre({},e),r=t,i=Object.keys(t),o=i.reduce((s,u)=>(s[u]===void 0&&r[u]!==void 0&&(s[u]=r[u]),s),n);return o}var E_={},A_={},T_={},u5;function vre(){return u5||(u5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(!n||typeof n!="object")return!1;const r=Object.getPrototypeOf(n);return r===null||r===Object.prototype||Object.getPrototypeOf(r)===null?Object.prototype.toString.call(n)==="[object Object]":!1}e.isPlainObject=t}(T_)),T_}var c5;function yre(){return c5||(c5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=vre(),n=xD(),r=sS(),i=lS(),o=aS();function s(f,m,p){return u(f,m,void 0,void 0,void 0,void 0,p)}function u(f,m,p,b,_,w,x){const C=x(f,m,p,b,_,w);if(C!==void 0)return C;if(typeof f==typeof m)switch(typeof f){case"bigint":case"string":case"boolean":case"symbol":case"undefined":return f===m;case"number":return f===m||Object.is(f,m);case"function":return f===m;case"object":return d(f,m,w,x)}return d(f,m,w,x)}function d(f,m,p,b){if(Object.is(f,m))return!0;let _=r.getTag(f),w=r.getTag(m);if(_===i.argumentsTag&&(_=i.objectTag),w===i.argumentsTag&&(w=i.objectTag),_!==w)return!1;switch(_){case i.stringTag:return f.toString()===m.toString();case i.numberTag:{const E=f.valueOf(),j=m.valueOf();return o.eq(E,j)}case i.booleanTag:case i.dateTag:case i.symbolTag:return Object.is(f.valueOf(),m.valueOf());case i.regexpTag:return f.source===m.source&&f.flags===m.flags;case i.functionTag:return f===m}p=p??new Map;const x=p.get(f),C=p.get(m);if(x!=null&&C!=null)return x===m;p.set(f,m),p.set(m,f);try{switch(_){case i.mapTag:{if(f.size!==m.size)return!1;for(const[E,j]of f.entries())if(!m.has(E)||!u(j,m.get(E),E,f,m,p,b))return!1;return!0}case i.setTag:{if(f.size!==m.size)return!1;const E=Array.from(f.values()),j=Array.from(m.values());for(let O=0;O<E.length;O++){const N=E[O],U=j.findIndex($=>u(N,$,void 0,f,m,p,b));if(U===-1)return!1;j.splice(U,1)}return!0}case i.arrayTag:case i.uint8ArrayTag:case i.uint8ClampedArrayTag:case i.uint16ArrayTag:case i.uint32ArrayTag:case i.bigUint64ArrayTag:case i.int8ArrayTag:case i.int16ArrayTag:case i.int32ArrayTag:case i.bigInt64ArrayTag:case i.float32ArrayTag:case i.float64ArrayTag:{if(typeof Buffer<"u"&&Buffer.isBuffer(f)!==Buffer.isBuffer(m)||f.length!==m.length)return!1;for(let E=0;E<f.length;E++)if(!u(f[E],m[E],E,f,m,p,b))return!1;return!0}case i.arrayBufferTag:return f.byteLength!==m.byteLength?!1:d(new Uint8Array(f),new Uint8Array(m),p,b);case i.dataViewTag:return f.byteLength!==m.byteLength||f.byteOffset!==m.byteOffset?!1:d(new Uint8Array(f),new Uint8Array(m),p,b);case i.errorTag:return f.name===m.name&&f.message===m.message;case i.objectTag:{if(!(d(f.constructor,m.constructor,p,b)||t.isPlainObject(f)&&t.isPlainObject(m)))return!1;const j=[...Object.keys(f),...n.getSymbols(f)],O=[...Object.keys(m),...n.getSymbols(m)];if(j.length!==O.length)return!1;for(let N=0;N<j.length;N++){const U=j[N],$=f[U];if(!Object.hasOwn(m,U))return!1;const K=m[U];if(!u($,K,U,f,m,p,b))return!1}return!0}default:return!1}}finally{p.delete(f),p.delete(m)}}e.isEqualWith=s}(A_)),A_}var O_={},f5;function bre(){return f5||(f5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(){}e.noop=t}(O_)),O_}var d5;function _re(){return d5||(d5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yre(),n=bre();function r(i,o){return t.isEqualWith(i,o,n.noop)}e.isEqual=r}(E_)),E_}var j_,h5;function xre(){return h5||(h5=1,j_=_re().isEqual),j_}var wre=xre();const Sre=Li(wre);var fv=1e-4,VD=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],HD=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),m5=(e,t)=>n=>{var r=VD(e,t);return HD(r,n)},Cre=(e,t)=>n=>{var r=VD(e,t),i=[...r.map((o,s)=>o*s).slice(1),0];return HD(i,n)},p5=function(){for(var t,n,r,i,o=arguments.length,s=new Array(o),u=0;u<o;u++)s[u]=arguments[u];if(s.length===1)switch(s[0]){case"linear":[t,r,n,i]=[0,0,1,1];break;case"ease":[t,r,n,i]=[.25,.1,.25,1];break;case"ease-in":[t,r,n,i]=[.42,0,1,1];break;case"ease-out":[t,r,n,i]=[.42,0,.58,1];break;case"ease-in-out":[t,r,n,i]=[0,0,.58,1];break;default:{var d=s[0].split("(");d[0]==="cubic-bezier"&&d[1].split(")")[0].split(",").length===4&&([t,r,n,i]=d[1].split(")")[0].split(",").map(w=>parseFloat(w)))}}else s.length===4&&([t,r,n,i]=s);var f=m5(t,n),m=m5(r,i),p=Cre(t,n),b=w=>w>1?1:w<0?0:w,_=w=>{for(var x=w>1?1:w,C=x,E=0;E<8;++E){var j=f(C)-x,O=p(C);if(Math.abs(j-x)<fv||O<fv)return m(C);C=b(C-j/O)}return m(C)};return _.isStepper=!1,_},Ere=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:i=17}=t,o=(s,u,d)=>{var f=-(s-u)*n,m=d*r,p=d+(f-m)*i/1e3,b=d*i/1e3+s;return Math.abs(b-u)<fv&&Math.abs(p)<fv?[u,0]:[b,p]};return o.isStepper=!0,o.dt=i,o},qD=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return p5(e);case"spring":return Ere();default:if(e.split("(")[0]==="cubic-bezier")return p5(e)}return typeof e=="function"?e:null};function g5(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 v5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?g5(Object(n),!0).forEach(function(r){Are(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Are(e,t,n){return(t=Tre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tre(e){var t=Ore(e,"string");return typeof t=="symbol"?t:t+""}function Ore(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jre=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),Mre=(e,t,n)=>e.map(r=>"".concat(jre(r)," ").concat(t,"ms ").concat(n)).join(","),Pre=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(i=>r.includes(i))),Lh=(e,t)=>Object.keys(t).reduce((n,r)=>v5(v5({},n),{},{[r]:e(r,t[r])}),{});function y5(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 br(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y5(Object(n),!0).forEach(function(r){Rre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rre(e,t,n){return(t=Nre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Nre(e){var t=Lre(e,"string");return typeof t=="symbol"?t:t+""}function Lre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var dv=(e,t,n)=>e+(t-e)*n,f2=e=>{var{from:t,to:n}=e;return t!==n},GD=(e,t,n)=>{var r=Lh((i,o)=>{if(f2(o)){var[s,u]=e(o.from,o.to,o.velocity);return br(br({},o),{},{from:s,velocity:u})}return o},t);return n<1?Lh((i,o)=>f2(o)?br(br({},o),{},{velocity:dv(o.velocity,r[i].velocity,n),from:dv(o.from,r[i].from,n)}):o,t):GD(e,r,n-1)};function Dre(e,t,n,r,i,o){var s,u=r.reduce((b,_)=>br(br({},b),{},{[_]:{from:e[_],velocity:0,to:t[_]}}),{}),d=()=>Lh((b,_)=>_.from,u),f=()=>!Object.values(u).filter(f2).length,m=null,p=b=>{s||(s=b);var _=b-s,w=_/n.dt;u=GD(n,u,w),i(br(br(br({},e),t),d())),s=b,f()||(m=o.setTimeout(p))};return()=>(m=o.setTimeout(p),()=>{m()})}function kre(e,t,n,r,i,o,s){var u=null,d=i.reduce((p,b)=>br(br({},p),{},{[b]:[e[b],t[b]]}),{}),f,m=p=>{f||(f=p);var b=(p-f)/r,_=Lh((x,C)=>dv(...C,n(b)),d);if(o(br(br(br({},e),t),_)),b<1)u=s.setTimeout(m);else{var w=Lh((x,C)=>dv(...C,n(1)),d);o(br(br(br({},e),t),w))}};return()=>(u=s.setTimeout(m),()=>{u()})}const YD=(e,t,n,r,i,o)=>{var s=Pre(e,t);return n.isStepper===!0?Dre(e,t,n,s,i,o):kre(e,t,n,r,s,i,o)};function Ire(e){var t,n=()=>null,r=!1,i=null,o=s=>{if(!r){if(Array.isArray(s)){if(!s.length)return;var u=s,[d,...f]=u;if(typeof d=="number"){i=e.setTimeout(o.bind(null,f),d);return}o(d),i=e.setTimeout(o.bind(null,f));return}typeof s=="string"&&(t=s,n(t)),typeof s=="object"&&(t=s,n(t)),typeof s=="function"&&s()}};return{stop:()=>{r=!0},start:s=>{r=!1,i&&(i(),i=null),o(s)},subscribe:s=>(n=s,()=>{n=()=>null}),getTimeoutController:()=>e}}class Ure{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),i=null,o=s=>{s-r>=n?t(s):typeof requestAnimationFrame=="function"&&(i=requestAnimationFrame(o))};return i=requestAnimationFrame(o),()=>{cancelAnimationFrame(i)}}}function zre(){return Ire(new Ure)}var Bre=A.createContext(zre);function WD(e,t){var n=A.useContext(Bre);return A.useMemo(()=>t??n(e),[e,t,n])}var Fre=["children","begin","duration","attributeName","easing","isActive","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart","animationManager"];function d2(){return d2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d2.apply(null,arguments)}function $re(e,t){if(e==null)return{};var n,r,i=Vre(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vre(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function b5(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 Qs(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?b5(Object(n),!0).forEach(function(r){Su(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Su(e,t,n){return(t=Hre(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hre(e){var t=qre(e,"string");return typeof t=="symbol"?t:t+""}function qre(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class mS extends A.PureComponent{constructor(t,n){super(t,n),Su(this,"mounted",!1),Su(this,"manager",void 0),Su(this,"stopJSAnimation",null),Su(this,"unSubscribe",null);var{isActive:r,attributeName:i,from:o,to:s,children:u,duration:d,animationManager:f}=this.props;if(this.manager=f,this.handleStyleChange=this.handleStyleChange.bind(this),this.changeStyle=this.changeStyle.bind(this),!r||d<=0){this.state={style:{}},typeof u=="function"&&(this.state={style:s});return}if(o){if(typeof u=="function"){this.state={style:o};return}this.state={style:i?{[i]:o}:o}}else this.state={style:{}}}componentDidMount(){var{isActive:t,canBegin:n}=this.props;this.mounted=!0,!(!t||!n)&&this.runAnimation(this.props)}componentDidUpdate(t){var{isActive:n,canBegin:r,attributeName:i,shouldReAnimate:o,to:s,from:u}=this.props,{style:d}=this.state;if(r){if(!n){var f={style:i?{[i]:s}:s};this.state&&d&&(i&&d[i]!==s||!i&&d!==s)&&this.setState(f);return}if(!(Sre(t.to,s)&&t.canBegin&&t.isActive)){var m=!t.canBegin||!t.isActive;this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var p=m||o?u:t.to;if(this.state&&d){var b={style:i?{[i]:p}:p};(i&&d[i]!==p||!i&&d!==p)&&this.setState(b)}this.runAnimation(Qs(Qs({},this.props),{},{from:p,begin:0}))}}}componentWillUnmount(){this.mounted=!1;var{onAnimationEnd:t}=this.props;this.unSubscribe&&this.unSubscribe(),this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation(),t&&t()}handleStyleChange(t){this.changeStyle(t)}changeStyle(t){this.mounted&&this.setState({style:t})}runJSAnimation(t){var{from:n,to:r,duration:i,easing:o,begin:s,onAnimationEnd:u,onAnimationStart:d}=t,f=YD(n,r,qD(o),i,this.changeStyle,this.manager.getTimeoutController()),m=()=>{this.stopJSAnimation=f()};this.manager.start([d,s,m,i,u])}runAnimation(t){var{begin:n,duration:r,attributeName:i,to:o,easing:s,onAnimationStart:u,onAnimationEnd:d,children:f}=t;if(this.unSubscribe=this.manager.subscribe(this.handleStyleChange),typeof s=="function"||typeof f=="function"||s==="spring"){this.runJSAnimation(t);return}var m=i?{[i]:o}:o,p=Mre(Object.keys(m),r,s);this.manager.start([u,n,Qs(Qs({},m),{},{transition:p}),r,d])}render(){var t=this.props,{children:n,begin:r,duration:i,attributeName:o,easing:s,isActive:u,from:d,to:f,canBegin:m,onAnimationEnd:p,shouldReAnimate:b,onAnimationReStart:_,animationManager:w}=t,x=$re(t,Fre),C=A.Children.count(n),E=this.state.style;if(typeof n=="function")return n(E);if(!u||C===0||i<=0)return n;var j=O=>{var{style:N={},className:U}=O.props,$=A.cloneElement(O,Qs(Qs({},x),{},{style:Qs(Qs({},N),E),className:U}));return $};return C===1?j(A.Children.only(n)):A.createElement("div",null,A.Children.map(n,O=>j(O)))}}Su(mS,"displayName","Animate");Su(mS,"defaultProps",{begin:0,duration:1e3,attributeName:"",easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}});function hv(e){var t,n=WD((t=e.attributeName)!==null&&t!==void 0?t:Object.keys(e.to).join(","),e.animationManager);return A.createElement(mS,d2({},e,{animationManager:n}))}function mv(){return mv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mv.apply(null,arguments)}var _5=(e,t,n,r,i)=>{var o=Math.min(Math.abs(n)/2,Math.abs(r)/2),s=r>=0?1:-1,u=n>=0?1:-1,d=r>=0&&n>=0||r<0&&n<0?1:0,f;if(o>0&&i instanceof Array){for(var m=[0,0,0,0],p=0,b=4;p<b;p++)m[p]=i[p]>o?o:i[p];f="M".concat(e,",").concat(t+s*m[0]),m[0]>0&&(f+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(d,",").concat(e+u*m[0],",").concat(t)),f+="L ".concat(e+n-u*m[1],",").concat(t),m[1]>0&&(f+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(d,`,
`).concat(e+n,",").concat(t+s*m[1])),f+="L ".concat(e+n,",").concat(t+r-s*m[2]),m[2]>0&&(f+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(d,`,
`).concat(e+n-u*m[2],",").concat(t+r)),f+="L ".concat(e+u*m[3],",").concat(t+r),m[3]>0&&(f+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(d,`,
`).concat(e,",").concat(t+r-s*m[3])),f+="Z"}else if(o>0&&i===+i&&i>0){var _=Math.min(o,i);f="M ".concat(e,",").concat(t+s*_,`
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e+u*_,",").concat(t,`
L `).concat(e+n-u*_,",").concat(t,`
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e+n,",").concat(t+s*_,`
L `).concat(e+n,",").concat(t+r-s*_,`
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e+n-u*_,",").concat(t+r,`
L `).concat(e+u*_,",").concat(t+r,`
A `).concat(_,",").concat(_,",0,0,").concat(d,",").concat(e,",").concat(t+r-s*_," Z")}else f="M ".concat(e,",").concat(t," h ").concat(n," v ").concat(r," h ").concat(-n," Z");return f},Gre={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},pS=e=>{var t=ki(e,Gre),n=A.useRef(null),[r,i]=A.useState(-1);A.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var E=n.current.getTotalLength();E&&i(E)}catch{}},[]);var{x:o,y:s,width:u,height:d,radius:f,className:m}=t,{animationEasing:p,animationDuration:b,animationBegin:_,isAnimationActive:w,isUpdateAnimationActive:x}=t;if(o!==+o||s!==+s||u!==+u||d!==+d||u===0||d===0)return null;var C=Pe("recharts-rectangle",m);return x?A.createElement(hv,{canBegin:r>0,from:{width:u,height:d,x:o,y:s},to:{width:u,height:d,x:o,y:s},duration:b,animationEasing:p,isActive:x},E=>{var{width:j,height:O,x:N,y:U}=E;return A.createElement(hv,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:b,isActive:w,easing:p},A.createElement("path",mv({},cn(t,!0),{className:C,d:_5(N,U,j,O,f),ref:n})))}):A.createElement("path",mv({},cn(t,!0),{className:C,d:_5(o,s,u,d,f)}))};function KD(e){var{cx:t,cy:n,radius:r,startAngle:i,endAngle:o}=e,s=Gn(t,n,r,i),u=Gn(t,n,r,o);return{points:[s,u],cx:t,cy:n,radius:r,startAngle:i,endAngle:o}}function h2(){return h2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h2.apply(null,arguments)}var Yre=(e,t)=>{var n=dr(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},rg=e=>{var{cx:t,cy:n,radius:r,angle:i,sign:o,isExternal:s,cornerRadius:u,cornerIsExternal:d}=e,f=u*(s?1:-1)+r,m=Math.asin(u/f)/cv,p=d?i:i+o*m,b=Gn(t,n,f,p),_=Gn(t,n,r,p),w=d?i-o*m:i,x=Gn(t,n,f*Math.cos(m*cv),w);return{center:b,circleTangency:_,lineTangency:x,theta:m}},ZD=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:o,endAngle:s}=e,u=Yre(o,s),d=o+u,f=Gn(t,n,i,o),m=Gn(t,n,i,d),p="M ".concat(f.x,",").concat(f.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(u)>180),",").concat(+(o>d),`,
`).concat(m.x,",").concat(m.y,`
`);if(r>0){var b=Gn(t,n,r,o),_=Gn(t,n,r,d);p+="L ".concat(_.x,",").concat(_.y,`
A `).concat(r,",").concat(r,`,0,
`).concat(+(Math.abs(u)>180),",").concat(+(o<=d),`,
`).concat(b.x,",").concat(b.y," Z")}else p+="L ".concat(t,",").concat(n," Z");return p},Wre=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:i,cornerRadius:o,forceCornerRadius:s,cornerIsExternal:u,startAngle:d,endAngle:f}=e,m=dr(f-d),{circleTangency:p,lineTangency:b,theta:_}=rg({cx:t,cy:n,radius:i,angle:d,sign:m,cornerRadius:o,cornerIsExternal:u}),{circleTangency:w,lineTangency:x,theta:C}=rg({cx:t,cy:n,radius:i,angle:f,sign:-m,cornerRadius:o,cornerIsExternal:u}),E=u?Math.abs(d-f):Math.abs(d-f)-_-C;if(E<0)return s?"M ".concat(b.x,",").concat(b.y,`
a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0
a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0
`):ZD({cx:t,cy:n,innerRadius:r,outerRadius:i,startAngle:d,endAngle:f});var j="M ".concat(b.x,",").concat(b.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(p.x,",").concat(p.y,`
A`).concat(i,",").concat(i,",0,").concat(+(E>180),",").concat(+(m<0),",").concat(w.x,",").concat(w.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(x.x,",").concat(x.y,`
`);if(r>0){var{circleTangency:O,lineTangency:N,theta:U}=rg({cx:t,cy:n,radius:r,angle:d,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),{circleTangency:$,lineTangency:K,theta:X}=rg({cx:t,cy:n,radius:r,angle:f,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:u}),oe=u?Math.abs(d-f):Math.abs(d-f)-U-X;if(oe<0&&o===0)return"".concat(j,"L").concat(t,",").concat(n,"Z");j+="L".concat(K.x,",").concat(K.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat($.x,",").concat($.y,`
A`).concat(r,",").concat(r,",0,").concat(+(oe>180),",").concat(+(m>0),",").concat(O.x,",").concat(O.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(N.x,",").concat(N.y,"Z")}else j+="L".concat(t,",").concat(n,"Z");return j},Kre={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},XD=e=>{var t=ki(e,Kre),{cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:s,forceCornerRadius:u,cornerIsExternal:d,startAngle:f,endAngle:m,className:p}=t;if(o<i||f===m)return null;var b=Pe("recharts-sector",p),_=o-i,w=Br(s,_,0,!0),x;return w>0&&Math.abs(f-m)<360?x=Wre({cx:n,cy:r,innerRadius:i,outerRadius:o,cornerRadius:Math.min(w,_/2),forceCornerRadius:u,cornerIsExternal:d,startAngle:f,endAngle:m}):x=ZD({cx:n,cy:r,innerRadius:i,outerRadius:o,startAngle:f,endAngle:m}),A.createElement("path",h2({},cn(t,!0),{className:b,d:x}))};function Zre(e,t,n){var r,i,o,s;if(e==="horizontal")r=t.x,o=r,i=n.top,s=n.top+n.height;else if(e==="vertical")i=t.y,s=i,r=n.left,o=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var{cx:u,cy:d,innerRadius:f,outerRadius:m,angle:p}=t,b=Gn(u,d,f,p),_=Gn(u,d,m,p);r=b.x,i=b.y,o=_.x,s=_.y}else return KD(t);return[{x:r,y:i},{x:o,y:s}]}var M_={},P_={},R_={},x5;function Xre(){return x5||(x5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=CD();function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n}(R_)),R_}var w5;function Qre(){return w5||(w5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=Xre();function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n}(P_)),P_}var S5;function Jre(){return S5||(S5=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=ED(),n=Qre();function r(i,o,s){s&&typeof s!="number"&&t.isIterateeCall(i,o,s)&&(o=s=void 0),i=n.toFinite(i),o===void 0?(o=i,i=0):o=n.toFinite(o),s=s===void 0?i<o?1:-1:n.toFinite(s);const u=Math.max(Math.ceil((o-i)/(s||1)),0),d=new Array(u);for(let f=0;f<u;f++)d[f]=i,i+=s;return d}e.range=r}(M_)),M_}var N_,C5;function eie(){return C5||(C5=1,N_=Jre().range),N_}var tie=eie();const QD=Li(tie);function ol(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function nie(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function gS(e){let t,n,r;e.length!==2?(t=ol,n=(u,d)=>ol(e(u),d),r=(u,d)=>e(u)-d):(t=e===ol||e===nie?e:rie,n=e,r=e);function i(u,d,f=0,m=u.length){if(f<m){if(t(d,d)!==0)return m;do{const p=f+m>>>1;n(u[p],d)<0?f=p+1:m=p}while(f<m)}return f}function o(u,d,f=0,m=u.length){if(f<m){if(t(d,d)!==0)return m;do{const p=f+m>>>1;n(u[p],d)<=0?f=p+1:m=p}while(f<m)}return f}function s(u,d,f=0,m=u.length){const p=i(u,d,f,m-1);return p>f&&r(u[p-1],d)>-r(u[p],d)?p-1:p}return{left:i,center:s,right:o}}function rie(){return 0}function JD(e){return e===null?NaN:+e}function*iie(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const aie=gS(ol),im=aie.right;gS(JD).center;class E5 extends Map{constructor(t,n=lie){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(A5(this,t))}has(t){return super.has(A5(this,t))}set(t,n){return super.set(oie(this,t),n)}delete(t){return super.delete(sie(this,t))}}function A5({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function oie({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function sie({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function lie(e){return e!==null&&typeof e=="object"?e.valueOf():e}function uie(e=ol){if(e===ol)return ek;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 ek(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const cie=Math.sqrt(50),fie=Math.sqrt(10),die=Math.sqrt(2);function pv(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),o=r/Math.pow(10,i),s=o>=cie?10:o>=fie?5:o>=die?2:1;let u,d,f;return i<0?(f=Math.pow(10,-i)/s,u=Math.round(e*f),d=Math.round(t*f),u/f<e&&++u,d/f>t&&--d,f=-f):(f=Math.pow(10,i)*s,u=Math.round(e/f),d=Math.round(t/f),u*f<e&&++u,d*f>t&&--d),d<u&&.5<=n&&n<2?pv(e,t,n*2):[u,d,f]}function m2(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,o,s]=r?pv(t,e,n):pv(e,t,n);if(!(o>=i))return[];const u=o-i+1,d=new Array(u);if(r)if(s<0)for(let f=0;f<u;++f)d[f]=(o-f)/-s;else for(let f=0;f<u;++f)d[f]=(o-f)*s;else if(s<0)for(let f=0;f<u;++f)d[f]=(i+f)/-s;else for(let f=0;f<u;++f)d[f]=(i+f)*s;return d}function p2(e,t,n){return t=+t,e=+e,n=+n,pv(e,t,n)[2]}function g2(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?p2(t,e,n):p2(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function T5(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function O5(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function tk(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?ek:uie(i);r>n;){if(r-n>600){const d=r-n+1,f=t-n+1,m=Math.log(d),p=.5*Math.exp(2*m/3),b=.5*Math.sqrt(m*p*(d-p)/d)*(f-d/2<0?-1:1),_=Math.max(n,Math.floor(t-f*p/d+b)),w=Math.min(r,Math.floor(t+(d-f)*p/d+b));tk(e,t,_,w,i)}const o=e[t];let s=n,u=r;for(Jd(e,n,t),i(e[r],o)>0&&Jd(e,n,r);s<u;){for(Jd(e,s,u),++s,--u;i(e[s],o)<0;)++s;for(;i(e[u],o)>0;)--u}i(e[n],o)===0?Jd(e,n,u):(++u,Jd(e,u,r)),u<=t&&(n=u+1),t<=u&&(r=u-1)}return e}function Jd(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function hie(e,t,n){if(e=Float64Array.from(iie(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return O5(e);if(t>=1)return T5(e);var r,i=(r-1)*t,o=Math.floor(i),s=T5(tk(e,o).subarray(0,o+1)),u=O5(e.subarray(o+1));return s+(u-s)*(i-o)}}function mie(e,t,n=JD){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,o=Math.floor(i),s=+n(e[o],o,e),u=+n(e[o+1],o+1,e);return s+(u-s)*(i-o)}}function pie(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,o=new Array(i);++r<i;)o[r]=e+r*n;return o}function oa(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function us(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 v2=Symbol("implicit");function vS(){var e=new E5,t=[],n=[],r=v2;function i(o){let s=e.get(o);if(s===void 0){if(r!==v2)return r;e.set(o,s=t.push(o)-1)}return n[s%n.length]}return i.domain=function(o){if(!arguments.length)return t.slice();t=[],e=new E5;for(const s of o)e.has(s)||e.set(s,t.push(s)-1);return i},i.range=function(o){return arguments.length?(n=Array.from(o),i):n.slice()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return vS(t,n).unknown(r)},oa.apply(i,arguments),i}function yS(){var e=vS().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,o,s,u=!1,d=0,f=0,m=.5;delete e.unknown;function p(){var b=t().length,_=i<r,w=_?i:r,x=_?r:i;o=(x-w)/Math.max(1,b-d+f*2),u&&(o=Math.floor(o)),w+=(x-w-o*(b-d))*m,s=o*(1-d),u&&(w=Math.round(w),s=Math.round(s));var C=pie(b).map(function(E){return w+o*E});return n(_?C.reverse():C)}return e.domain=function(b){return arguments.length?(t(b),p()):t()},e.range=function(b){return arguments.length?([r,i]=b,r=+r,i=+i,p()):[r,i]},e.rangeRound=function(b){return[r,i]=b,r=+r,i=+i,u=!0,p()},e.bandwidth=function(){return s},e.step=function(){return o},e.round=function(b){return arguments.length?(u=!!b,p()):u},e.padding=function(b){return arguments.length?(d=Math.min(1,f=+b),p()):d},e.paddingInner=function(b){return arguments.length?(d=Math.min(1,b),p()):d},e.paddingOuter=function(b){return arguments.length?(f=+b,p()):f},e.align=function(b){return arguments.length?(m=Math.max(0,Math.min(1,b)),p()):m},e.copy=function(){return yS(t(),[r,i]).round(u).paddingInner(d).paddingOuter(f).align(m)},oa.apply(p(),arguments)}function nk(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return nk(t())},e}function gie(){return nk(yS.apply(null,arguments).paddingInner(1))}function bS(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function rk(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function am(){}var Dh=.7,gv=1/Dh,Jc="\\s*([+-]?\\d+)\\s*",kh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",io="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",vie=/^#([0-9a-f]{3,8})$/,yie=new RegExp(`^rgb\\(${Jc},${Jc},${Jc}\\)$`),bie=new RegExp(`^rgb\\(${io},${io},${io}\\)$`),_ie=new RegExp(`^rgba\\(${Jc},${Jc},${Jc},${kh}\\)$`),xie=new RegExp(`^rgba\\(${io},${io},${io},${kh}\\)$`),wie=new RegExp(`^hsl\\(${kh},${io},${io}\\)$`),Sie=new RegExp(`^hsla\\(${kh},${io},${io},${kh}\\)$`),j5={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};bS(am,Ih,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:M5,formatHex:M5,formatHex8:Cie,formatHsl:Eie,formatRgb:P5,toString:P5});function M5(){return this.rgb().formatHex()}function Cie(){return this.rgb().formatHex8()}function Eie(){return ik(this).formatHsl()}function P5(){return this.rgb().formatRgb()}function Ih(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=vie.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?R5(t):n===3?new si(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?ig(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?ig(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=yie.exec(e))?new si(t[1],t[2],t[3],1):(t=bie.exec(e))?new si(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=_ie.exec(e))?ig(t[1],t[2],t[3],t[4]):(t=xie.exec(e))?ig(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=wie.exec(e))?D5(t[1],t[2]/100,t[3]/100,1):(t=Sie.exec(e))?D5(t[1],t[2]/100,t[3]/100,t[4]):j5.hasOwnProperty(e)?R5(j5[e]):e==="transparent"?new si(NaN,NaN,NaN,0):null}function R5(e){return new si(e>>16&255,e>>8&255,e&255,1)}function ig(e,t,n,r){return r<=0&&(e=t=n=NaN),new si(e,t,n,r)}function Aie(e){return e instanceof am||(e=Ih(e)),e?(e=e.rgb(),new si(e.r,e.g,e.b,e.opacity)):new si}function y2(e,t,n,r){return arguments.length===1?Aie(e):new si(e,t,n,r??1)}function si(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}bS(si,y2,rk(am,{brighter(e){return e=e==null?gv:Math.pow(gv,e),new si(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Dh:Math.pow(Dh,e),new si(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new si(ju(this.r),ju(this.g),ju(this.b),vv(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:N5,formatHex:N5,formatHex8:Tie,formatRgb:L5,toString:L5}));function N5(){return`#${Cu(this.r)}${Cu(this.g)}${Cu(this.b)}`}function Tie(){return`#${Cu(this.r)}${Cu(this.g)}${Cu(this.b)}${Cu((isNaN(this.opacity)?1:this.opacity)*255)}`}function L5(){const e=vv(this.opacity);return`${e===1?"rgb(":"rgba("}${ju(this.r)}, ${ju(this.g)}, ${ju(this.b)}${e===1?")":`, ${e})`}`}function vv(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ju(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Cu(e){return e=ju(e),(e<16?"0":"")+e.toString(16)}function D5(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new wa(e,t,n,r)}function ik(e){if(e instanceof wa)return new wa(e.h,e.s,e.l,e.opacity);if(e instanceof am||(e=Ih(e)),!e)return new wa;if(e instanceof wa)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,u=o-i,d=(o+i)/2;return u?(t===o?s=(n-r)/u+(n<r)*6:n===o?s=(r-t)/u+2:s=(t-n)/u+4,u/=d<.5?o+i:2-o-i,s*=60):u=d>0&&d<1?0:s,new wa(s,u,d,e.opacity)}function Oie(e,t,n,r){return arguments.length===1?ik(e):new wa(e,t,n,r??1)}function wa(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}bS(wa,Oie,rk(am,{brighter(e){return e=e==null?gv:Math.pow(gv,e),new wa(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Dh:Math.pow(Dh,e),new wa(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 si(L_(e>=240?e-240:e+120,i,r),L_(e,i,r),L_(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new wa(k5(this.h),ag(this.s),ag(this.l),vv(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=vv(this.opacity);return`${e===1?"hsl(":"hsla("}${k5(this.h)}, ${ag(this.s)*100}%, ${ag(this.l)*100}%${e===1?")":`, ${e})`}`}}));function k5(e){return e=(e||0)%360,e<0?e+360:e}function ag(e){return Math.max(0,Math.min(1,e||0))}function L_(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 _S=e=>()=>e;function jie(e,t){return function(n){return e+n*t}}function Mie(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 Pie(e){return(e=+e)==1?ak:function(t,n){return n-t?Mie(t,n,e):_S(isNaN(t)?n:t)}}function ak(e,t){var n=t-e;return n?jie(e,n):_S(isNaN(e)?t:e)}const I5=function e(t){var n=Pie(t);function r(i,o){var s=n((i=y2(i)).r,(o=y2(o)).r),u=n(i.g,o.g),d=n(i.b,o.b),f=ak(i.opacity,o.opacity);return function(m){return i.r=s(m),i.g=u(m),i.b=d(m),i.opacity=f(m),i+""}}return r.gamma=e,r}(1);function Rie(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(o){for(i=0;i<n;++i)r[i]=e[i]*(1-o)+t[i]*o;return r}}function Nie(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Lie(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),o=new Array(n),s;for(s=0;s<r;++s)i[s]=Mf(e[s],t[s]);for(;s<n;++s)o[s]=t[s];return function(u){for(s=0;s<r;++s)o[s]=i[s](u);return o}}function Die(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function yv(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function kie(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]=Mf(e[i],t[i]):r[i]=t[i];return function(o){for(i in n)r[i]=n[i](o);return r}}var b2=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,D_=new RegExp(b2.source,"g");function Iie(e){return function(){return e}}function Uie(e){return function(t){return e(t)+""}}function zie(e,t){var n=b2.lastIndex=D_.lastIndex=0,r,i,o,s=-1,u=[],d=[];for(e=e+"",t=t+"";(r=b2.exec(e))&&(i=D_.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),u[s]?u[s]+=o:u[++s]=o),(r=r[0])===(i=i[0])?u[s]?u[s]+=i:u[++s]=i:(u[++s]=null,d.push({i:s,x:yv(r,i)})),n=D_.lastIndex;return n<t.length&&(o=t.slice(n),u[s]?u[s]+=o:u[++s]=o),u.length<2?d[0]?Uie(d[0].x):Iie(t):(t=d.length,function(f){for(var m=0,p;m<t;++m)u[(p=d[m]).i]=p.x(f);return u.join("")})}function Mf(e,t){var n=typeof t,r;return t==null||n==="boolean"?_S(t):(n==="number"?yv:n==="string"?(r=Ih(t))?(t=r,I5):zie:t instanceof Ih?I5:t instanceof Date?Die:Nie(t)?Rie:Array.isArray(t)?Lie:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?kie:yv)(e,t)}function xS(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Bie(e,t){t===void 0&&(t=e,e=Mf);for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(s){var u=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return o[u](s-u)}}function Fie(e){return function(){return e}}function bv(e){return+e}var U5=[0,1];function Ur(e){return e}function _2(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:Fie(isNaN(t)?NaN:.5)}function $ie(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function Vie(e,t,n){var r=e[0],i=e[1],o=t[0],s=t[1];return i<r?(r=_2(i,r),o=n(s,o)):(r=_2(r,i),o=n(o,s)),function(u){return o(r(u))}}function Hie(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),o=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)i[s]=_2(e[s],e[s+1]),o[s]=n(t[s],t[s+1]);return function(u){var d=im(e,u,1,r)-1;return o[d](i[d](u))}}function om(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Ay(){var e=U5,t=U5,n=Mf,r,i,o,s=Ur,u,d,f;function m(){var b=Math.min(e.length,t.length);return s!==Ur&&(s=$ie(e[0],e[b-1])),u=b>2?Hie:Vie,d=f=null,p}function p(b){return b==null||isNaN(b=+b)?o:(d||(d=u(e.map(r),t,n)))(r(s(b)))}return p.invert=function(b){return s(i((f||(f=u(t,e.map(r),yv)))(b)))},p.domain=function(b){return arguments.length?(e=Array.from(b,bv),m()):e.slice()},p.range=function(b){return arguments.length?(t=Array.from(b),m()):t.slice()},p.rangeRound=function(b){return t=Array.from(b),n=xS,m()},p.clamp=function(b){return arguments.length?(s=b?!0:Ur,m()):s!==Ur},p.interpolate=function(b){return arguments.length?(n=b,m()):n},p.unknown=function(b){return arguments.length?(o=b,p):o},function(b,_){return r=b,i=_,m()}}function wS(){return Ay()(Ur,Ur)}function qie(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function _v(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 cf(e){return e=_v(Math.abs(e)),e?e[1]:NaN}function Gie(e,t){return function(n,r){for(var i=n.length,o=[],s=0,u=e[0],d=0;i>0&&u>0&&(d+u+1>r&&(u=Math.max(1,r-d)),o.push(n.substring(i-=u,i+u)),!((d+=u+1)>r));)u=e[s=(s+1)%e.length];return o.reverse().join(t)}}function Yie(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var Wie=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Uh(e){if(!(t=Wie.exec(e)))throw new Error("invalid format: "+e);var t;return new SS({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]})}Uh.prototype=SS.prototype;function SS(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+""}SS.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 Kie(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 ok;function Zie(e,t){var n=_v(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(ok=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,s=r.length;return o===s?r:o>s?r+new Array(o-s+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+_v(e,Math.max(0,t+o-1))[0]}function z5(e,t){var n=_v(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 B5={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:qie,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)=>z5(e*100,t),r:z5,s:Zie,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function F5(e){return e}var $5=Array.prototype.map,V5=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Xie(e){var t=e.grouping===void 0||e.thousands===void 0?F5:Gie($5.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+"",o=e.numerals===void 0?F5:Yie($5.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",u=e.minus===void 0?"":e.minus+"",d=e.nan===void 0?"NaN":e.nan+"";function f(p){p=Uh(p);var b=p.fill,_=p.align,w=p.sign,x=p.symbol,C=p.zero,E=p.width,j=p.comma,O=p.precision,N=p.trim,U=p.type;U==="n"?(j=!0,U="g"):B5[U]||(O===void 0&&(O=12),N=!0,U="g"),(C||b==="0"&&_==="=")&&(C=!0,b="0",_="=");var $=x==="$"?n:x==="#"&&/[boxX]/.test(U)?"0"+U.toLowerCase():"",K=x==="$"?r:/[%p]/.test(U)?s:"",X=B5[U],oe=/[defgprs%]/.test(U);O=O===void 0?6:/[gprs]/.test(U)?Math.max(1,Math.min(21,O)):Math.max(0,Math.min(20,O));function ee(J){var ne=$,he=K,Q,se,Z;if(U==="c")he=X(J)+he,J="";else{J=+J;var I=J<0||1/J<0;if(J=isNaN(J)?d:X(Math.abs(J),O),N&&(J=Kie(J)),I&&+J==0&&w!=="+"&&(I=!1),ne=(I?w==="("?w:u:w==="-"||w==="("?"":w)+ne,he=(U==="s"?V5[8+ok/3]:"")+he+(I&&w==="("?")":""),oe){for(Q=-1,se=J.length;++Q<se;)if(Z=J.charCodeAt(Q),48>Z||Z>57){he=(Z===46?i+J.slice(Q+1):J.slice(Q))+he,J=J.slice(0,Q);break}}}j&&!C&&(J=t(J,1/0));var k=ne.length+J.length+he.length,z=k<E?new Array(E-k+1).join(b):"";switch(j&&C&&(J=t(z+J,z.length?E-he.length:1/0),z=""),_){case"<":J=ne+J+he+z;break;case"=":J=ne+z+J+he;break;case"^":J=z.slice(0,k=z.length>>1)+ne+J+he+z.slice(k);break;default:J=z+ne+J+he;break}return o(J)}return ee.toString=function(){return p+""},ee}function m(p,b){var _=f((p=Uh(p),p.type="f",p)),w=Math.max(-8,Math.min(8,Math.floor(cf(b)/3)))*3,x=Math.pow(10,-w),C=V5[8+w/3];return function(E){return _(x*E)+C}}return{format:f,formatPrefix:m}}var og,CS,sk;Qie({thousands:",",grouping:[3],currency:["$",""]});function Qie(e){return og=Xie(e),CS=og.format,sk=og.formatPrefix,og}function Jie(e){return Math.max(0,-cf(Math.abs(e)))}function eae(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(cf(t)/3)))*3-cf(Math.abs(e)))}function tae(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,cf(t)-cf(e))+1}function lk(e,t,n,r){var i=g2(e,t,n),o;switch(r=Uh(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(o=eae(i,s))&&(r.precision=o),sk(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(o=tae(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=o-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(o=Jie(i))&&(r.precision=o-(r.type==="%")*2);break}}return CS(r)}function Al(e){var t=e.domain;return e.ticks=function(n){var r=t();return m2(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return lk(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,o=r.length-1,s=r[i],u=r[o],d,f,m=10;for(u<s&&(f=s,s=u,u=f,f=i,i=o,o=f);m-- >0;){if(f=p2(s,u,n),f===d)return r[i]=s,r[o]=u,t(r);if(f>0)s=Math.floor(s/f)*f,u=Math.ceil(u/f)*f;else if(f<0)s=Math.ceil(s*f)/f,u=Math.floor(u*f)/f;else break;d=f}return e},e}function uk(){var e=wS();return e.copy=function(){return om(e,uk())},oa.apply(e,arguments),Al(e)}function ck(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,bv),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return ck(e).unknown(t)},e=arguments.length?Array.from(e,bv):[0,1],Al(n)}function fk(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],o=e[r],s;return o<i&&(s=n,n=r,r=s,s=i,i=o,o=s),e[n]=t.floor(i),e[r]=t.ceil(o),e}function H5(e){return Math.log(e)}function q5(e){return Math.exp(e)}function nae(e){return-Math.log(-e)}function rae(e){return-Math.exp(-e)}function iae(e){return isFinite(e)?+("1e"+e):e<0?0:e}function aae(e){return e===10?iae:e===Math.E?Math.exp:t=>Math.pow(e,t)}function oae(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 G5(e){return(t,n)=>-e(-t,n)}function ES(e){const t=e(H5,q5),n=t.domain;let r=10,i,o;function s(){return i=oae(r),o=aae(r),n()[0]<0?(i=G5(i),o=G5(o),e(nae,rae)):e(H5,q5),t}return t.base=function(u){return arguments.length?(r=+u,s()):r},t.domain=function(u){return arguments.length?(n(u),s()):n()},t.ticks=u=>{const d=n();let f=d[0],m=d[d.length-1];const p=m<f;p&&([f,m]=[m,f]);let b=i(f),_=i(m),w,x;const C=u==null?10:+u;let E=[];if(!(r%1)&&_-b<C){if(b=Math.floor(b),_=Math.ceil(_),f>0){for(;b<=_;++b)for(w=1;w<r;++w)if(x=b<0?w/o(-b):w*o(b),!(x<f)){if(x>m)break;E.push(x)}}else for(;b<=_;++b)for(w=r-1;w>=1;--w)if(x=b>0?w/o(-b):w*o(b),!(x<f)){if(x>m)break;E.push(x)}E.length*2<C&&(E=m2(f,m,C))}else E=m2(b,_,Math.min(_-b,C)).map(o);return p?E.reverse():E},t.tickFormat=(u,d)=>{if(u==null&&(u=10),d==null&&(d=r===10?"s":","),typeof d!="function"&&(!(r%1)&&(d=Uh(d)).precision==null&&(d.trim=!0),d=CS(d)),u===1/0)return d;const f=Math.max(1,r*u/t.ticks().length);return m=>{let p=m/o(Math.round(i(m)));return p*r<r-.5&&(p*=r),p<=f?d(m):""}},t.nice=()=>n(fk(n(),{floor:u=>o(Math.floor(i(u))),ceil:u=>o(Math.ceil(i(u)))})),t}function dk(){const e=ES(Ay()).domain([1,10]);return e.copy=()=>om(e,dk()).base(e.base()),oa.apply(e,arguments),e}function Y5(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function W5(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function AS(e){var t=1,n=e(Y5(t),W5(t));return n.constant=function(r){return arguments.length?e(Y5(t=+r),W5(t)):t},Al(n)}function hk(){var e=AS(Ay());return e.copy=function(){return om(e,hk()).constant(e.constant())},oa.apply(e,arguments)}function K5(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function sae(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function lae(e){return e<0?-e*e:e*e}function TS(e){var t=e(Ur,Ur),n=1;function r(){return n===1?e(Ur,Ur):n===.5?e(sae,lae):e(K5(n),K5(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},Al(t)}function OS(){var e=TS(Ay());return e.copy=function(){return om(e,OS()).exponent(e.exponent())},oa.apply(e,arguments),e}function uae(){return OS.apply(null,arguments).exponent(.5)}function Z5(e){return Math.sign(e)*e*e}function cae(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function mk(){var e=wS(),t=[0,1],n=!1,r;function i(o){var s=cae(e(o));return isNaN(s)?r:n?Math.round(s):s}return i.invert=function(o){return e.invert(Z5(o))},i.domain=function(o){return arguments.length?(e.domain(o),i):e.domain()},i.range=function(o){return arguments.length?(e.range((t=Array.from(o,bv)).map(Z5)),i):t.slice()},i.rangeRound=function(o){return i.range(o).round(!0)},i.round=function(o){return arguments.length?(n=!!o,i):n},i.clamp=function(o){return arguments.length?(e.clamp(o),i):e.clamp()},i.unknown=function(o){return arguments.length?(r=o,i):r},i.copy=function(){return mk(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},oa.apply(i,arguments),Al(i)}function pk(){var e=[],t=[],n=[],r;function i(){var s=0,u=Math.max(1,t.length);for(n=new Array(u-1);++s<u;)n[s-1]=mie(e,s/u);return o}function o(s){return s==null||isNaN(s=+s)?r:t[im(n,s)]}return o.invertExtent=function(s){var u=t.indexOf(s);return u<0?[NaN,NaN]:[u>0?n[u-1]:e[0],u<n.length?n[u]:e[e.length-1]]},o.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let u of s)u!=null&&!isNaN(u=+u)&&e.push(u);return e.sort(ol),i()},o.range=function(s){return arguments.length?(t=Array.from(s),i()):t.slice()},o.unknown=function(s){return arguments.length?(r=s,o):r},o.quantiles=function(){return n.slice()},o.copy=function(){return pk().domain(e).range(t).unknown(r)},oa.apply(o,arguments)}function gk(){var e=0,t=1,n=1,r=[.5],i=[0,1],o;function s(d){return d!=null&&d<=d?i[im(r,d,0,n)]:o}function u(){var d=-1;for(r=new Array(n);++d<n;)r[d]=((d+1)*t-(d-n)*e)/(n+1);return s}return s.domain=function(d){return arguments.length?([e,t]=d,e=+e,t=+t,u()):[e,t]},s.range=function(d){return arguments.length?(n=(i=Array.from(d)).length-1,u()):i.slice()},s.invertExtent=function(d){var f=i.indexOf(d);return f<0?[NaN,NaN]:f<1?[e,r[0]]:f>=n?[r[n-1],t]:[r[f-1],r[f]]},s.unknown=function(d){return arguments.length&&(o=d),s},s.thresholds=function(){return r.slice()},s.copy=function(){return gk().domain([e,t]).range(i).unknown(o)},oa.apply(Al(s),arguments)}function vk(){var e=[.5],t=[0,1],n,r=1;function i(o){return o!=null&&o<=o?t[im(e,o,0,r)]:n}return i.domain=function(o){return arguments.length?(e=Array.from(o),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(o){return arguments.length?(t=Array.from(o),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(o){var s=t.indexOf(o);return[e[s-1],e[s]]},i.unknown=function(o){return arguments.length?(n=o,i):n},i.copy=function(){return vk().domain(e).range(t).unknown(n)},oa.apply(i,arguments)}const k_=new Date,I_=new Date;function rr(e,t,n,r){function i(o){return e(o=arguments.length===0?new Date:new Date(+o)),o}return i.floor=o=>(e(o=new Date(+o)),o),i.ceil=o=>(e(o=new Date(o-1)),t(o,1),e(o),o),i.round=o=>{const s=i(o),u=i.ceil(o);return o-s<u-o?s:u},i.offset=(o,s)=>(t(o=new Date(+o),s==null?1:Math.floor(s)),o),i.range=(o,s,u)=>{const d=[];if(o=i.ceil(o),u=u==null?1:Math.floor(u),!(o<s)||!(u>0))return d;let f;do d.push(f=new Date(+o)),t(o,u),e(o);while(f<o&&o<s);return d},i.filter=o=>rr(s=>{if(s>=s)for(;e(s),!o(s);)s.setTime(s-1)},(s,u)=>{if(s>=s)if(u<0)for(;++u<=0;)for(;t(s,-1),!o(s););else for(;--u>=0;)for(;t(s,1),!o(s););}),n&&(i.count=(o,s)=>(k_.setTime(+o),I_.setTime(+s),e(k_),e(I_),Math.floor(n(k_,I_))),i.every=o=>(o=Math.floor(o),!isFinite(o)||!(o>0)?null:o>1?i.filter(r?s=>r(s)%o===0:s=>i.count(0,s)%o===0):i)),i}const xv=rr(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);xv.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?rr(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):xv);xv.range;const $o=1e3,na=$o*60,Vo=na*60,Jo=Vo*24,jS=Jo*7,X5=Jo*30,U_=Jo*365,Eu=rr(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*$o)},(e,t)=>(t-e)/$o,e=>e.getUTCSeconds());Eu.range;const MS=rr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$o)},(e,t)=>{e.setTime(+e+t*na)},(e,t)=>(t-e)/na,e=>e.getMinutes());MS.range;const PS=rr(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*na)},(e,t)=>(t-e)/na,e=>e.getUTCMinutes());PS.range;const RS=rr(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*$o-e.getMinutes()*na)},(e,t)=>{e.setTime(+e+t*Vo)},(e,t)=>(t-e)/Vo,e=>e.getHours());RS.range;const NS=rr(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Vo)},(e,t)=>(t-e)/Vo,e=>e.getUTCHours());NS.range;const sm=rr(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*na)/Jo,e=>e.getDate()-1);sm.range;const Ty=rr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Jo,e=>e.getUTCDate()-1);Ty.range;const yk=rr(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Jo,e=>Math.floor(e/Jo));yk.range;function Yu(e){return rr(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())*na)/jS)}const Oy=Yu(0),wv=Yu(1),fae=Yu(2),dae=Yu(3),ff=Yu(4),hae=Yu(5),mae=Yu(6);Oy.range;wv.range;fae.range;dae.range;ff.range;hae.range;mae.range;function Wu(e){return rr(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)/jS)}const jy=Wu(0),Sv=Wu(1),pae=Wu(2),gae=Wu(3),df=Wu(4),vae=Wu(5),yae=Wu(6);jy.range;Sv.range;pae.range;gae.range;df.range;vae.range;yae.range;const LS=rr(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());LS.range;const DS=rr(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());DS.range;const es=rr(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());es.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:rr(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)});es.range;const ts=rr(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());ts.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:rr(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)});ts.range;function bk(e,t,n,r,i,o){const s=[[Eu,1,$o],[Eu,5,5*$o],[Eu,15,15*$o],[Eu,30,30*$o],[o,1,na],[o,5,5*na],[o,15,15*na],[o,30,30*na],[i,1,Vo],[i,3,3*Vo],[i,6,6*Vo],[i,12,12*Vo],[r,1,Jo],[r,2,2*Jo],[n,1,jS],[t,1,X5],[t,3,3*X5],[e,1,U_]];function u(f,m,p){const b=m<f;b&&([f,m]=[m,f]);const _=p&&typeof p.range=="function"?p:d(f,m,p),w=_?_.range(f,+m+1):[];return b?w.reverse():w}function d(f,m,p){const b=Math.abs(m-f)/p,_=gS(([,,C])=>C).right(s,b);if(_===s.length)return e.every(g2(f/U_,m/U_,p));if(_===0)return xv.every(Math.max(g2(f,m,p),1));const[w,x]=s[b/s[_-1][2]<s[_][2]/b?_-1:_];return w.every(x)}return[u,d]}const[bae,_ae]=bk(ts,DS,jy,yk,NS,PS),[xae,wae]=bk(es,LS,Oy,sm,RS,MS);function z_(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 B_(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 eh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Sae(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,s=e.shortDays,u=e.months,d=e.shortMonths,f=th(i),m=nh(i),p=th(o),b=nh(o),_=th(s),w=nh(s),x=th(u),C=nh(u),E=th(d),j=nh(d),O={a:I,A:k,b:z,B:F,c:null,d:rM,e:rM,f:Gae,g:noe,G:ioe,H:Vae,I:Hae,j:qae,L:_k,m:Yae,M:Wae,p:P,q:G,Q:oM,s:sM,S:Kae,u:Zae,U:Xae,V:Qae,w:Jae,W:eoe,x:null,X:null,y:toe,Y:roe,Z:aoe,"%":aM},N={a:Y,A:te,b:ue,B:fe,c:null,d:iM,e:iM,f:uoe,g:boe,G:xoe,H:ooe,I:soe,j:loe,L:wk,m:coe,M:foe,p:ge,q:D,Q:oM,s:sM,S:doe,u:hoe,U:moe,V:poe,w:goe,W:voe,x:null,X:null,y:yoe,Y:_oe,Z:woe,"%":aM},U={a:ee,A:J,b:ne,B:he,c:Q,d:tM,e:tM,f:zae,g:eM,G:J5,H:nM,I:nM,j:Dae,L:Uae,m:Lae,M:kae,p:oe,q:Nae,Q:Fae,s:$ae,S:Iae,u:Oae,U:jae,V:Mae,w:Tae,W:Pae,x:se,X:Z,y:eM,Y:J5,Z:Rae,"%":Bae};O.x=$(n,O),O.X=$(r,O),O.c=$(t,O),N.x=$(n,N),N.X=$(r,N),N.c=$(t,N);function $(B,W){return function(le){var H=[],ae=-1,ce=0,ve=B.length,de,we,Ae;for(le instanceof Date||(le=new Date(+le));++ae<ve;)B.charCodeAt(ae)===37&&(H.push(B.slice(ce,ae)),(we=Q5[de=B.charAt(++ae)])!=null?de=B.charAt(++ae):we=de==="e"?" ":"0",(Ae=W[de])&&(de=Ae(le,we)),H.push(de),ce=ae+1);return H.push(B.slice(ce,ae)),H.join("")}}function K(B,W){return function(le){var H=eh(1900,void 0,1),ae=X(H,B,le+="",0),ce,ve;if(ae!=le.length)return null;if("Q"in H)return new Date(H.Q);if("s"in H)return new Date(H.s*1e3+("L"in H?H.L:0));if(W&&!("Z"in H)&&(H.Z=0),"p"in H&&(H.H=H.H%12+H.p*12),H.m===void 0&&(H.m="q"in H?H.q:0),"V"in H){if(H.V<1||H.V>53)return null;"w"in H||(H.w=1),"Z"in H?(ce=B_(eh(H.y,0,1)),ve=ce.getUTCDay(),ce=ve>4||ve===0?Sv.ceil(ce):Sv(ce),ce=Ty.offset(ce,(H.V-1)*7),H.y=ce.getUTCFullYear(),H.m=ce.getUTCMonth(),H.d=ce.getUTCDate()+(H.w+6)%7):(ce=z_(eh(H.y,0,1)),ve=ce.getDay(),ce=ve>4||ve===0?wv.ceil(ce):wv(ce),ce=sm.offset(ce,(H.V-1)*7),H.y=ce.getFullYear(),H.m=ce.getMonth(),H.d=ce.getDate()+(H.w+6)%7)}else("W"in H||"U"in H)&&("w"in H||(H.w="u"in H?H.u%7:"W"in H?1:0),ve="Z"in H?B_(eh(H.y,0,1)).getUTCDay():z_(eh(H.y,0,1)).getDay(),H.m=0,H.d="W"in H?(H.w+6)%7+H.W*7-(ve+5)%7:H.w+H.U*7-(ve+6)%7);return"Z"in H?(H.H+=H.Z/100|0,H.M+=H.Z%100,B_(H)):z_(H)}}function X(B,W,le,H){for(var ae=0,ce=W.length,ve=le.length,de,we;ae<ce;){if(H>=ve)return-1;if(de=W.charCodeAt(ae++),de===37){if(de=W.charAt(ae++),we=U[de in Q5?W.charAt(ae++):de],!we||(H=we(B,le,H))<0)return-1}else if(de!=le.charCodeAt(H++))return-1}return H}function oe(B,W,le){var H=f.exec(W.slice(le));return H?(B.p=m.get(H[0].toLowerCase()),le+H[0].length):-1}function ee(B,W,le){var H=_.exec(W.slice(le));return H?(B.w=w.get(H[0].toLowerCase()),le+H[0].length):-1}function J(B,W,le){var H=p.exec(W.slice(le));return H?(B.w=b.get(H[0].toLowerCase()),le+H[0].length):-1}function ne(B,W,le){var H=E.exec(W.slice(le));return H?(B.m=j.get(H[0].toLowerCase()),le+H[0].length):-1}function he(B,W,le){var H=x.exec(W.slice(le));return H?(B.m=C.get(H[0].toLowerCase()),le+H[0].length):-1}function Q(B,W,le){return X(B,t,W,le)}function se(B,W,le){return X(B,n,W,le)}function Z(B,W,le){return X(B,r,W,le)}function I(B){return s[B.getDay()]}function k(B){return o[B.getDay()]}function z(B){return d[B.getMonth()]}function F(B){return u[B.getMonth()]}function P(B){return i[+(B.getHours()>=12)]}function G(B){return 1+~~(B.getMonth()/3)}function Y(B){return s[B.getUTCDay()]}function te(B){return o[B.getUTCDay()]}function ue(B){return d[B.getUTCMonth()]}function fe(B){return u[B.getUTCMonth()]}function ge(B){return i[+(B.getUTCHours()>=12)]}function D(B){return 1+~~(B.getUTCMonth()/3)}return{format:function(B){var W=$(B+="",O);return W.toString=function(){return B},W},parse:function(B){var W=K(B+="",!1);return W.toString=function(){return B},W},utcFormat:function(B){var W=$(B+="",N);return W.toString=function(){return B},W},utcParse:function(B){var W=K(B+="",!0);return W.toString=function(){return B},W}}}var Q5={"-":"",_:" ",0:"0"},hr=/^\s*\d+/,Cae=/^%/,Eae=/[\\^$*+?|[\]().{}]/g;function Bt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function Aae(e){return e.replace(Eae,"\\$&")}function th(e){return new RegExp("^(?:"+e.map(Aae).join("|")+")","i")}function nh(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Tae(e,t,n){var r=hr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Oae(e,t,n){var r=hr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function jae(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Mae(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Pae(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function J5(e,t,n){var r=hr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function eM(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Rae(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 Nae(e,t,n){var r=hr.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Lae(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function tM(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Dae(e,t,n){var r=hr.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function nM(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function kae(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Iae(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Uae(e,t,n){var r=hr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function zae(e,t,n){var r=hr.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Bae(e,t,n){var r=Cae.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Fae(e,t,n){var r=hr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function $ae(e,t,n){var r=hr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function rM(e,t){return Bt(e.getDate(),t,2)}function Vae(e,t){return Bt(e.getHours(),t,2)}function Hae(e,t){return Bt(e.getHours()%12||12,t,2)}function qae(e,t){return Bt(1+sm.count(es(e),e),t,3)}function _k(e,t){return Bt(e.getMilliseconds(),t,3)}function Gae(e,t){return _k(e,t)+"000"}function Yae(e,t){return Bt(e.getMonth()+1,t,2)}function Wae(e,t){return Bt(e.getMinutes(),t,2)}function Kae(e,t){return Bt(e.getSeconds(),t,2)}function Zae(e){var t=e.getDay();return t===0?7:t}function Xae(e,t){return Bt(Oy.count(es(e)-1,e),t,2)}function xk(e){var t=e.getDay();return t>=4||t===0?ff(e):ff.ceil(e)}function Qae(e,t){return e=xk(e),Bt(ff.count(es(e),e)+(es(e).getDay()===4),t,2)}function Jae(e){return e.getDay()}function eoe(e,t){return Bt(wv.count(es(e)-1,e),t,2)}function toe(e,t){return Bt(e.getFullYear()%100,t,2)}function noe(e,t){return e=xk(e),Bt(e.getFullYear()%100,t,2)}function roe(e,t){return Bt(e.getFullYear()%1e4,t,4)}function ioe(e,t){var n=e.getDay();return e=n>=4||n===0?ff(e):ff.ceil(e),Bt(e.getFullYear()%1e4,t,4)}function aoe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Bt(t/60|0,"0",2)+Bt(t%60,"0",2)}function iM(e,t){return Bt(e.getUTCDate(),t,2)}function ooe(e,t){return Bt(e.getUTCHours(),t,2)}function soe(e,t){return Bt(e.getUTCHours()%12||12,t,2)}function loe(e,t){return Bt(1+Ty.count(ts(e),e),t,3)}function wk(e,t){return Bt(e.getUTCMilliseconds(),t,3)}function uoe(e,t){return wk(e,t)+"000"}function coe(e,t){return Bt(e.getUTCMonth()+1,t,2)}function foe(e,t){return Bt(e.getUTCMinutes(),t,2)}function doe(e,t){return Bt(e.getUTCSeconds(),t,2)}function hoe(e){var t=e.getUTCDay();return t===0?7:t}function moe(e,t){return Bt(jy.count(ts(e)-1,e),t,2)}function Sk(e){var t=e.getUTCDay();return t>=4||t===0?df(e):df.ceil(e)}function poe(e,t){return e=Sk(e),Bt(df.count(ts(e),e)+(ts(e).getUTCDay()===4),t,2)}function goe(e){return e.getUTCDay()}function voe(e,t){return Bt(Sv.count(ts(e)-1,e),t,2)}function yoe(e,t){return Bt(e.getUTCFullYear()%100,t,2)}function boe(e,t){return e=Sk(e),Bt(e.getUTCFullYear()%100,t,2)}function _oe(e,t){return Bt(e.getUTCFullYear()%1e4,t,4)}function xoe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?df(e):df.ceil(e),Bt(e.getUTCFullYear()%1e4,t,4)}function woe(){return"+0000"}function aM(){return"%"}function oM(e){return+e}function sM(e){return Math.floor(+e/1e3)}var $c,Ck,Ek;Soe({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 Soe(e){return $c=Sae(e),Ck=$c.format,$c.parse,Ek=$c.utcFormat,$c.utcParse,$c}function Coe(e){return new Date(e)}function Eoe(e){return e instanceof Date?+e:+new Date(+e)}function kS(e,t,n,r,i,o,s,u,d,f){var m=wS(),p=m.invert,b=m.domain,_=f(".%L"),w=f(":%S"),x=f("%I:%M"),C=f("%I %p"),E=f("%a %d"),j=f("%b %d"),O=f("%B"),N=f("%Y");function U($){return(d($)<$?_:u($)<$?w:s($)<$?x:o($)<$?C:r($)<$?i($)<$?E:j:n($)<$?O:N)($)}return m.invert=function($){return new Date(p($))},m.domain=function($){return arguments.length?b(Array.from($,Eoe)):b().map(Coe)},m.ticks=function($){var K=b();return e(K[0],K[K.length-1],$??10)},m.tickFormat=function($,K){return K==null?U:f(K)},m.nice=function($){var K=b();return(!$||typeof $.range!="function")&&($=t(K[0],K[K.length-1],$??10)),$?b(fk(K,$)):m},m.copy=function(){return om(m,kS(e,t,n,r,i,o,s,u,d,f))},m}function Aoe(){return oa.apply(kS(xae,wae,es,LS,Oy,sm,RS,MS,Eu,Ck).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Toe(){return oa.apply(kS(bae,_ae,ts,DS,jy,Ty,NS,PS,Eu,Ek).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function My(){var e=0,t=1,n,r,i,o,s=Ur,u=!1,d;function f(p){return p==null||isNaN(p=+p)?d:s(i===0?.5:(p=(o(p)-n)*i,u?Math.max(0,Math.min(1,p)):p))}f.domain=function(p){return arguments.length?([e,t]=p,n=o(e=+e),r=o(t=+t),i=n===r?0:1/(r-n),f):[e,t]},f.clamp=function(p){return arguments.length?(u=!!p,f):u},f.interpolator=function(p){return arguments.length?(s=p,f):s};function m(p){return function(b){var _,w;return arguments.length?([_,w]=b,s=p(_,w),f):[s(0),s(1)]}}return f.range=m(Mf),f.rangeRound=m(xS),f.unknown=function(p){return arguments.length?(d=p,f):d},function(p){return o=p,n=p(e),r=p(t),i=n===r?0:1/(r-n),f}}function Tl(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function Ak(){var e=Al(My()(Ur));return e.copy=function(){return Tl(e,Ak())},us.apply(e,arguments)}function Tk(){var e=ES(My()).domain([1,10]);return e.copy=function(){return Tl(e,Tk()).base(e.base())},us.apply(e,arguments)}function Ok(){var e=AS(My());return e.copy=function(){return Tl(e,Ok()).constant(e.constant())},us.apply(e,arguments)}function IS(){var e=TS(My());return e.copy=function(){return Tl(e,IS()).exponent(e.exponent())},us.apply(e,arguments)}function Ooe(){return IS.apply(null,arguments).exponent(.5)}function jk(){var e=[],t=Ur;function n(r){if(r!=null&&!isNaN(r=+r))return t((im(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(ol),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,o)=>hie(e,o/r))},n.copy=function(){return jk(t).domain(e)},us.apply(n,arguments)}function Py(){var e=0,t=.5,n=1,r=1,i,o,s,u,d,f=Ur,m,p=!1,b;function _(x){return isNaN(x=+x)?b:(x=.5+((x=+m(x))-o)*(r*x<r*o?u:d),f(p?Math.max(0,Math.min(1,x)):x))}_.domain=function(x){return arguments.length?([e,t,n]=x,i=m(e=+e),o=m(t=+t),s=m(n=+n),u=i===o?0:.5/(o-i),d=o===s?0:.5/(s-o),r=o<i?-1:1,_):[e,t,n]},_.clamp=function(x){return arguments.length?(p=!!x,_):p},_.interpolator=function(x){return arguments.length?(f=x,_):f};function w(x){return function(C){var E,j,O;return arguments.length?([E,j,O]=C,f=Bie(x,[E,j,O]),_):[f(0),f(.5),f(1)]}}return _.range=w(Mf),_.rangeRound=w(xS),_.unknown=function(x){return arguments.length?(b=x,_):b},function(x){return m=x,i=x(e),o=x(t),s=x(n),u=i===o?0:.5/(o-i),d=o===s?0:.5/(s-o),r=o<i?-1:1,_}}function Mk(){var e=Al(Py()(Ur));return e.copy=function(){return Tl(e,Mk())},us.apply(e,arguments)}function Pk(){var e=ES(Py()).domain([.1,1,10]);return e.copy=function(){return Tl(e,Pk()).base(e.base())},us.apply(e,arguments)}function Rk(){var e=AS(Py());return e.copy=function(){return Tl(e,Rk()).constant(e.constant())},us.apply(e,arguments)}function US(){var e=TS(Py());return e.copy=function(){return Tl(e,US()).exponent(e.exponent())},us.apply(e,arguments)}function joe(){return US.apply(null,arguments).exponent(.5)}const ch=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:yS,scaleDiverging:Mk,scaleDivergingLog:Pk,scaleDivergingPow:US,scaleDivergingSqrt:joe,scaleDivergingSymlog:Rk,scaleIdentity:ck,scaleImplicit:v2,scaleLinear:uk,scaleLog:dk,scaleOrdinal:vS,scalePoint:gie,scalePow:OS,scaleQuantile:pk,scaleQuantize:gk,scaleRadial:mk,scaleSequential:Ak,scaleSequentialLog:Tk,scaleSequentialPow:IS,scaleSequentialQuantile:jk,scaleSequentialSqrt:Ooe,scaleSequentialSymlog:Ok,scaleSqrt:uae,scaleSymlog:hk,scaleThreshold:vk,scaleTime:Aoe,scaleUtc:Toe,tickFormat:lk},Symbol.toStringTag,{value:"Module"}));var Ol=e=>e.chartData,zS=je([Ol],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Ry=(e,t,n,r)=>r?zS(e):Ol(e);function hf(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Ri(t)&&Ri(n))return!0}return!1}function lM(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function Moe(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,i,o;if(Ri(n))i=n;else if(typeof n=="function")return;if(Ri(r))o=r;else if(typeof r=="function")return;var s=[i,o];if(hf(s))return s}}function Poe(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(hf(r))return lM(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[i,o]=e,s,u;if(i==="auto")t!=null&&(s=Math.min(...t));else if(Je(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t?.[0]))}catch{}else if(typeof i=="string"&&Xj.test(i)){var d=Xj.exec(i);if(d==null||t==null)s=void 0;else{var f=+d[1];s=t[0]-f}}else s=t?.[0];if(o==="auto")t!=null&&(u=Math.max(...t));else if(Je(o))u=o;else if(typeof o=="function")try{t!=null&&(u=o(t?.[1]))}catch{}else if(typeof o=="string"&&Qj.test(o)){var m=Qj.exec(o);if(m==null||t==null)u=void 0;else{var p=+m[1];u=t[1]+p}}else u=t?.[1];var b=[s,u];if(hf(b))return t==null?b:lM(b,t,n)}}}var Pf=1e9,Roe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},FS,gn=!0,ia="[DecimalError] ",Mu=ia+"Invalid argument: ",BS=ia+"Exponent out of range: ",Rf=Math.floor,yu=Math.pow,Noe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Si,fr=1e7,sn=7,Nk=9007199254740991,Cv=Rf(Nk/sn),et={};et.absoluteValue=et.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};et.comparedTo=et.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(r=o.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1};et.decimalPlaces=et.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*sn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};et.dividedBy=et.div=function(e){return Go(this,new this.constructor(e))};et.dividedToIntegerBy=et.idiv=function(e){var t=this,n=t.constructor;return tn(Go(t,new n(e),0,1),n.precision)};et.equals=et.eq=function(e){return!this.cmp(e)};et.exponent=function(){return Yn(this)};et.greaterThan=et.gt=function(e){return this.cmp(e)>0};et.greaterThanOrEqualTo=et.gte=function(e){return this.cmp(e)>=0};et.isInteger=et.isint=function(){return this.e>this.d.length-2};et.isNegative=et.isneg=function(){return this.s<0};et.isPositive=et.ispos=function(){return this.s>0};et.isZero=function(){return this.s===0};et.lessThan=et.lt=function(e){return this.cmp(e)<0};et.lessThanOrEqualTo=et.lte=function(e){return this.cmp(e)<1};et.logarithm=et.log=function(e){var t,n=this,r=n.constructor,i=r.precision,o=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Si))throw Error(ia+"NaN");if(n.s<1)throw Error(ia+(n.s?"NaN":"-Infinity"));return n.eq(Si)?new r(0):(gn=!1,t=Go(zh(n,o),zh(e,o),o),gn=!0,tn(t,i))};et.minus=et.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?kk(t,e):Lk(t,(e.s=-e.s,e))};et.modulo=et.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ia+"NaN");return n.s?(gn=!1,t=Go(n,e,0,1).times(e),gn=!0,n.minus(t)):tn(new r(n),i)};et.naturalExponential=et.exp=function(){return Dk(this)};et.naturalLogarithm=et.ln=function(){return zh(this)};et.negated=et.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};et.plus=et.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Lk(t,e):kk(t,(e.s=-e.s,e))};et.precision=et.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Mu+e);if(t=Yn(i)+1,r=i.d.length-1,n=r*sn+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};et.squareRoot=et.sqrt=function(){var e,t,n,r,i,o,s,u=this,d=u.constructor;if(u.s<1){if(!u.s)return new d(0);throw Error(ia+"NaN")}for(e=Yn(u),gn=!1,i=Math.sqrt(+u),i==0||i==1/0?(t=to(u.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=Rf((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 d(t)):r=new d(i.toString()),n=d.precision,i=s=n+3;;)if(o=r,r=o.plus(Go(u,o,s+2)).times(.5),to(o.d).slice(0,s)===(t=to(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),i==s&&t=="4999"){if(tn(o,n+1,0),o.times(o).eq(u)){r=o;break}}else if(t!="9999")break;s+=4}return gn=!0,tn(r,n)};et.times=et.mul=function(e){var t,n,r,i,o,s,u,d,f,m=this,p=m.constructor,b=m.d,_=(e=new p(e)).d;if(!m.s||!e.s)return new p(0);for(e.s*=m.s,n=m.e+e.e,d=b.length,f=_.length,d<f&&(o=b,b=_,_=o,s=d,d=f,f=s),o=[],s=d+f,r=s;r--;)o.push(0);for(r=f;--r>=0;){for(t=0,i=d+r;i>r;)u=o[i]+_[r]*b[i-r-1]+t,o[i--]=u%fr|0,t=u/fr|0;o[i]=(o[i]+t)%fr|0}for(;!o[--s];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,gn?tn(e,p.precision):e};et.toDecimalPlaces=et.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(oo(e,0,Pf),t===void 0?t=r.rounding:oo(t,0,8),tn(n,e+Yn(n)+1,t))};et.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=Fu(r,!0):(oo(e,0,Pf),t===void 0?t=i.rounding:oo(t,0,8),r=tn(new i(r),e+1,t),n=Fu(r,!0,e+1)),n};et.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?Fu(i):(oo(e,0,Pf),t===void 0?t=o.rounding:oo(t,0,8),r=tn(new o(i),e+Yn(i)+1,t),n=Fu(r.abs(),!1,e+Yn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};et.toInteger=et.toint=function(){var e=this,t=e.constructor;return tn(new t(e),Yn(e)+1,t.rounding)};et.toNumber=function(){return+this};et.toPower=et.pow=function(e){var t,n,r,i,o,s,u=this,d=u.constructor,f=12,m=+(e=new d(e));if(!e.s)return new d(Si);if(u=new d(u),!u.s){if(e.s<1)throw Error(ia+"Infinity");return u}if(u.eq(Si))return u;if(r=d.precision,e.eq(Si))return tn(u,r);if(t=e.e,n=e.d.length-1,s=t>=n,o=u.s,s){if((n=m<0?-m:m)<=Nk){for(i=new d(Si),t=Math.ceil(r/sn+4),gn=!1;n%2&&(i=i.times(u),cM(i.d,t)),n=Rf(n/2),n!==0;)u=u.times(u),cM(u.d,t);return gn=!0,e.s<0?new d(Si).div(i):tn(i,r)}}else if(o<0)throw Error(ia+"NaN");return o=o<0&&e.d[Math.max(t,n)]&1?-1:1,u.s=1,gn=!1,i=e.times(zh(u,r+f)),gn=!0,i=Dk(i),i.s=o,i};et.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return e===void 0?(n=Yn(i),r=Fu(i,n<=o.toExpNeg||n>=o.toExpPos)):(oo(e,1,Pf),t===void 0?t=o.rounding:oo(t,0,8),i=tn(new o(i),e,t),n=Yn(i),r=Fu(i,e<=n||n<=o.toExpNeg,e)),r};et.toSignificantDigits=et.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(oo(e,1,Pf),t===void 0?t=r.rounding:oo(t,0,8)),tn(new r(n),e,t)};et.toString=et.valueOf=et.val=et.toJSON=et[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Yn(e),n=e.constructor;return Fu(e,t<=n.toExpNeg||t>=n.toExpPos)};function Lk(e,t){var n,r,i,o,s,u,d,f,m=e.constructor,p=m.precision;if(!e.s||!t.s)return t.s||(t=new m(e)),gn?tn(t,p):t;if(d=e.d,f=t.d,s=e.e,i=t.e,d=d.slice(),o=s-i,o){for(o<0?(r=d,o=-o,u=f.length):(r=f,i=s,u=d.length),s=Math.ceil(p/sn),u=s>u?s+1:u+1,o>u&&(o=u,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for(u=d.length,o=f.length,u-o<0&&(o=u,r=f,f=d,d=r),n=0;o;)n=(d[--o]=d[o]+f[o]+n)/fr|0,d[o]%=fr;for(n&&(d.unshift(n),++i),u=d.length;d[--u]==0;)d.pop();return t.d=d,t.e=i,gn?tn(t,p):t}function oo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Mu+e)}function to(e){var t,n,r,i=e.length-1,o="",s=e[0];if(i>0){for(o+=s,t=1;t<i;t++)r=e[t]+"",n=sn-r.length,n&&(o+=nl(n)),o+=r;s=e[t],r=s+"",n=sn-r.length,n&&(o+=nl(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return o+s}var Go=function(){function e(r,i){var o,s=0,u=r.length;for(r=r.slice();u--;)o=r[u]*i+s,r[u]=o%fr|0,s=o/fr|0;return s&&r.unshift(s),r}function t(r,i,o,s){var u,d;if(o!=s)d=o>s?1:-1;else for(u=d=0;u<o;u++)if(r[u]!=i[u]){d=r[u]>i[u]?1:-1;break}return d}function n(r,i,o){for(var s=0;o--;)r[o]-=s,s=r[o]<i[o]?1:0,r[o]=s*fr+r[o]-i[o];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,o,s){var u,d,f,m,p,b,_,w,x,C,E,j,O,N,U,$,K,X,oe=r.constructor,ee=r.s==i.s?1:-1,J=r.d,ne=i.d;if(!r.s)return new oe(r);if(!i.s)throw Error(ia+"Division by zero");for(d=r.e-i.e,K=ne.length,U=J.length,_=new oe(ee),w=_.d=[],f=0;ne[f]==(J[f]||0);)++f;if(ne[f]>(J[f]||0)&&--d,o==null?j=o=oe.precision:s?j=o+(Yn(r)-Yn(i))+1:j=o,j<0)return new oe(0);if(j=j/sn+2|0,f=0,K==1)for(m=0,ne=ne[0],j++;(f<U||m)&&j--;f++)O=m*fr+(J[f]||0),w[f]=O/ne|0,m=O%ne|0;else{for(m=fr/(ne[0]+1)|0,m>1&&(ne=e(ne,m),J=e(J,m),K=ne.length,U=J.length),N=K,x=J.slice(0,K),C=x.length;C<K;)x[C++]=0;X=ne.slice(),X.unshift(0),$=ne[0],ne[1]>=fr/2&&++$;do m=0,u=t(ne,x,K,C),u<0?(E=x[0],K!=C&&(E=E*fr+(x[1]||0)),m=E/$|0,m>1?(m>=fr&&(m=fr-1),p=e(ne,m),b=p.length,C=x.length,u=t(p,x,b,C),u==1&&(m--,n(p,K<b?X:ne,b))):(m==0&&(u=m=1),p=ne.slice()),b=p.length,b<C&&p.unshift(0),n(x,p,C),u==-1&&(C=x.length,u=t(ne,x,K,C),u<1&&(m++,n(x,K<C?X:ne,C))),C=x.length):u===0&&(m++,x=[0]),w[f++]=m,u&&x[0]?x[C++]=J[N]||0:(x=[J[N]],C=1);while((N++<U||x[0]!==void 0)&&j--)}return w[0]||w.shift(),_.e=d,tn(_,s?o+Yn(_)+1:o)}}();function Dk(e,t){var n,r,i,o,s,u,d=0,f=0,m=e.constructor,p=m.precision;if(Yn(e)>16)throw Error(BS+Yn(e));if(!e.s)return new m(Si);for(gn=!1,u=p,s=new m(.03125);e.abs().gte(.1);)e=e.times(s),f+=5;for(r=Math.log(yu(2,f))/Math.LN10*2+5|0,u+=r,n=i=o=new m(Si),m.precision=u;;){if(i=tn(i.times(e),u),n=n.times(++d),s=o.plus(Go(i,n,u)),to(s.d).slice(0,u)===to(o.d).slice(0,u)){for(;f--;)o=tn(o.times(o),u);return m.precision=p,t==null?(gn=!0,tn(o,p)):o}o=s}}function Yn(e){for(var t=e.e*sn,n=e.d[0];n>=10;n/=10)t++;return t}function F_(e,t,n){if(t>e.LN10.sd())throw gn=!0,n&&(e.precision=n),Error(ia+"LN10 precision limit exceeded");return tn(new e(e.LN10),t)}function nl(e){for(var t="";e--;)t+="0";return t}function zh(e,t){var n,r,i,o,s,u,d,f,m,p=1,b=10,_=e,w=_.d,x=_.constructor,C=x.precision;if(_.s<1)throw Error(ia+(_.s?"NaN":"-Infinity"));if(_.eq(Si))return new x(0);if(t==null?(gn=!1,f=C):f=t,_.eq(10))return t==null&&(gn=!0),F_(x,f);if(f+=b,x.precision=f,n=to(w),r=n.charAt(0),o=Yn(_),Math.abs(o)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)_=_.times(e),n=to(_.d),r=n.charAt(0),p++;o=Yn(_),r>1?(_=new x("0."+n),o++):_=new x(r+"."+n.slice(1))}else return d=F_(x,f+2,C).times(o+""),_=zh(new x(r+"."+n.slice(1)),f-b).plus(d),x.precision=C,t==null?(gn=!0,tn(_,C)):_;for(u=s=_=Go(_.minus(Si),_.plus(Si),f),m=tn(_.times(_),f),i=3;;){if(s=tn(s.times(m),f),d=u.plus(Go(s,new x(i),f)),to(d.d).slice(0,f)===to(u.d).slice(0,f))return u=u.times(2),o!==0&&(u=u.plus(F_(x,f+2,C).times(o+""))),u=Go(u,new x(p),f),x.precision=C,t==null?(gn=!0,tn(u,C)):u;u=d,i+=2}}function uM(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=Rf(n/sn),e.d=[],r=(n+1)%sn,n<0&&(r+=sn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=sn;r<i;)e.d.push(+t.slice(r,r+=sn));t=t.slice(r),r=sn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),gn&&(e.e>Cv||e.e<-Cv))throw Error(BS+n)}else e.s=0,e.e=0,e.d=[0];return e}function tn(e,t,n){var r,i,o,s,u,d,f,m,p=e.d;for(s=1,o=p[0];o>=10;o/=10)s++;if(r=t-s,r<0)r+=sn,i=t,f=p[m=0];else{if(m=Math.ceil((r+1)/sn),o=p.length,m>=o)return e;for(f=o=p[m],s=1;o>=10;o/=10)s++;r%=sn,i=r-sn+s}if(n!==void 0&&(o=yu(10,s-i-1),u=f/o%10|0,d=t<0||p[m+1]!==void 0||f%o,d=n<4?(u||d)&&(n==0||n==(e.s<0?3:2)):u>5||u==5&&(n==4||d||n==6&&(r>0?i>0?f/yu(10,s-i):0:p[m-1])%10&1||n==(e.s<0?8:7))),t<1||!p[0])return d?(o=Yn(e),p.length=1,t=t-o-1,p[0]=yu(10,(sn-t%sn)%sn),e.e=Rf(-t/sn)||0):(p.length=1,p[0]=e.e=e.s=0),e;if(r==0?(p.length=m,o=1,m--):(p.length=m+1,o=yu(10,sn-r),p[m]=i>0?(f/yu(10,s-i)%yu(10,i)|0)*o:0),d)for(;;)if(m==0){(p[0]+=o)==fr&&(p[0]=1,++e.e);break}else{if(p[m]+=o,p[m]!=fr)break;p[m--]=0,o=1}for(r=p.length;p[--r]===0;)p.pop();if(gn&&(e.e>Cv||e.e<-Cv))throw Error(BS+Yn(e));return e}function kk(e,t){var n,r,i,o,s,u,d,f,m,p,b=e.constructor,_=b.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new b(e),gn?tn(t,_):t;if(d=e.d,p=t.d,r=t.e,f=e.e,d=d.slice(),s=f-r,s){for(m=s<0,m?(n=d,s=-s,u=p.length):(n=p,r=f,u=d.length),i=Math.max(Math.ceil(_/sn),u)+2,s>i&&(s=i,n.length=1),n.reverse(),i=s;i--;)n.push(0);n.reverse()}else{for(i=d.length,u=p.length,m=i<u,m&&(u=i),i=0;i<u;i++)if(d[i]!=p[i]){m=d[i]<p[i];break}s=0}for(m&&(n=d,d=p,p=n,t.s=-t.s),u=d.length,i=p.length-u;i>0;--i)d[u++]=0;for(i=p.length;i>s;){if(d[--i]<p[i]){for(o=i;o&&d[--o]===0;)d[o]=fr-1;--d[o],d[i]+=fr}d[i]-=p[i]}for(;d[--u]===0;)d.pop();for(;d[0]===0;d.shift())--r;return d[0]?(t.d=d,t.e=r,gn?tn(t,_):t):new b(0)}function Fu(e,t,n){var r,i=Yn(e),o=to(e.d),s=o.length;return t?(n&&(r=n-s)>0?o=o.charAt(0)+"."+o.slice(1)+nl(r):s>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+nl(-i-1)+o,n&&(r=n-s)>0&&(o+=nl(r))):i>=s?(o+=nl(i+1-s),n&&(r=n-i-1)>0&&(o=o+"."+nl(r))):((r=i+1)<s&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-s)>0&&(i+1===s&&(o+="."),o+=nl(r))),e.s<0?"-"+o:o}function cM(e,t){if(e.length>t)return e.length=t,!0}function Ik(e){var t,n,r;function i(o){var s=this;if(!(s instanceof i))return new i(o);if(s.constructor=i,o instanceof i){s.s=o.s,s.e=o.e,s.d=(o=o.d)?o.slice():o;return}if(typeof o=="number"){if(o*0!==0)throw Error(Mu+o);if(o>0)s.s=1;else if(o<0)o=-o,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(o===~~o&&o<1e7){s.e=0,s.d=[o];return}return uM(s,o.toString())}else if(typeof o!="string")throw Error(Mu+o);if(o.charCodeAt(0)===45?(o=o.slice(1),s.s=-1):s.s=1,Noe.test(o))uM(s,o);else throw Error(Mu+o)}if(i.prototype=et,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=Ik,i.config=i.set=Loe,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 Loe(e){if(!e||typeof e!="object")throw Error(ia+"Object expected");var t,n,r,i=["precision",1,Pf,"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(Rf(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(Mu+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Mu+n+": "+r);return this}var FS=Ik(Roe);Si=new FS(1);const Gt=FS;var Doe=e=>e,Uk={},zk=e=>e===Uk,fM=e=>function t(){return arguments.length===0||arguments.length===1&&zk(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Bk=(e,t)=>e===1?t:fM(function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=r.filter(s=>s!==Uk).length;return o>=e?t(...r):Bk(e-o,fM(function(){for(var s=arguments.length,u=new Array(s),d=0;d<s;d++)u[d]=arguments[d];var f=r.map(m=>zk(m)?u.shift():m);return t(...f,...u)}))}),Ny=e=>Bk(e.length,e),x2=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},koe=Ny((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),Ioe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Doe;var i=n.reverse(),o=i[0],s=i.slice(1);return function(){return s.reduce((u,d)=>d(u),o(...arguments))}},w2=e=>Array.isArray(e)?e.reverse():e.split("").reverse().join(""),Fk=e=>{var t=null,n=null;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return t&&i.every((s,u)=>{var d;return s===((d=t)===null||d===void 0?void 0:d[u])})||(t=i,n=e(...i)),n}};function $k(e){var t;return e===0?t=1:t=Math.floor(new Gt(e).abs().log(10).toNumber())+1,t}function Vk(e,t,n){for(var r=new Gt(e),i=0,o=[];r.lt(t)&&i<1e5;)o.push(r.toNumber()),r=r.add(n),i++;return o}Ny((e,t,n)=>{var r=+e,i=+t;return r+n*(i-r)});Ny((e,t,n)=>{var r=t-+e;return r=r||1/0,(n-e)/r});Ny((e,t,n)=>{var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});var Hk=e=>{var[t,n]=e,[r,i]=[t,n];return t>n&&([r,i]=[n,t]),[r,i]},qk=(e,t,n)=>{if(e.lte(0))return new Gt(0);var r=$k(e.toNumber()),i=new Gt(10).pow(r),o=e.div(i),s=r!==1?.05:.1,u=new Gt(Math.ceil(o.div(s).toNumber())).add(n).mul(s),d=u.mul(i);return t?new Gt(d.toNumber()):new Gt(Math.ceil(d.toNumber()))},Uoe=(e,t,n)=>{var r=new Gt(1),i=new Gt(e);if(!i.isint()&&n){var o=Math.abs(e);o<1?(r=new Gt(10).pow($k(e)-1),i=new Gt(Math.floor(i.div(r).toNumber())).mul(r)):o>1&&(i=new Gt(Math.floor(e)))}else e===0?i=new Gt(Math.floor((t-1)/2)):n||(i=new Gt(Math.floor(e)));var s=Math.floor((t-1)/2),u=Ioe(koe(d=>i.add(new Gt(d-s).mul(r)).toNumber()),x2);return u(0,t)},Gk=function(t,n,r,i){var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Gt(0),tickMin:new Gt(0),tickMax:new Gt(0)};var s=qk(new Gt(n).sub(t).div(r-1),i,o),u;t<=0&&n>=0?u=new Gt(0):(u=new Gt(t).add(n).div(2),u=u.sub(new Gt(u).mod(s)));var d=Math.ceil(u.sub(t).div(s).toNumber()),f=Math.ceil(new Gt(n).sub(u).div(s).toNumber()),m=d+f+1;return m>r?Gk(t,n,r,i,o+1):(m<r&&(f=n>0?f+(r-m):f,d=n>0?d:d+(r-m)),{step:s,tickMin:u.sub(new Gt(d).mul(s)),tickMax:u.add(new Gt(f).mul(s))})};function zoe(e){var[t,n]=e,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),[s,u]=Hk([t,n]);if(s===-1/0||u===1/0){var d=u===1/0?[s,...x2(0,r-1).map(()=>1/0)]:[...x2(0,r-1).map(()=>-1/0),u];return t>n?w2(d):d}if(s===u)return Uoe(s,r,i);var{step:f,tickMin:m,tickMax:p}=Gk(s,u,o,i,0),b=Vk(m,p.add(new Gt(.1).mul(f)),f);return t>n?w2(b):b}function Boe(e,t){var[n,r]=e,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[o,s]=Hk([n,r]);if(o===-1/0||s===1/0)return[n,r];if(o===s)return[o];var u=Math.max(t,2),d=qk(new Gt(s).sub(o).div(u-1),i,0),f=[...Vk(new Gt(o),new Gt(s),d),s];return i===!1&&(f=f.map(m=>Math.round(m))),n>r?w2(f):f}var Foe=Fk(zoe),$oe=Fk(Boe),Yk=e=>e.rootProps.maxBarSize,Voe=e=>e.rootProps.barGap,Wk=e=>e.rootProps.barCategoryGap,Hoe=e=>e.rootProps.barSize,lm=e=>e.rootProps.stackOffset,$S=e=>e.options.chartName,VS=e=>e.rootProps.syncId,Kk=e=>e.rootProps.syncMethod,HS=e=>e.options.eventEmitter,Bo={allowDuplicatedCategory:!0,angleAxisId:0,reversed:!1,scale:"auto",tick:!0,type:"category"},wi={allowDataOverflow:!1,allowDuplicatedCategory:!0,radiusAxisId:0,scale:"auto",tick:!0,tickCount:5,type:"number"},Ly=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},qoe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Bo.angleAxisId,includeHidden:!1,name:void 0,reversed:Bo.reversed,scale:Bo.scale,tick:Bo.tick,tickCount:void 0,ticks:void 0,type:Bo.type,unit:void 0},Goe={allowDataOverflow:wi.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:wi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:wi.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:wi.scale,tick:wi.tick,tickCount:wi.tickCount,ticks:void 0,type:wi.type,unit:void 0},Yoe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Bo.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Bo.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Bo.scale,tick:Bo.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},Woe={allowDataOverflow:wi.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:wi.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:wi.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:wi.scale,tick:wi.tick,tickCount:wi.tickCount,ticks:void 0,type:"category",unit:void 0},qS=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?Yoe:qoe,GS=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?Woe:Goe,Dy=e=>e.polarOptions,YS=je([ss,ls,nr],OD),Zk=je([Dy,YS],(e,t)=>{if(e!=null)return Br(e.innerRadius,t,0)}),Xk=je([Dy,YS],(e,t)=>{if(e!=null)return Br(e.outerRadius,t,t*.8)}),Koe=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Qk=je([Dy],Koe);je([qS,Qk],Ly);var Jk=je([YS,Zk,Xk],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]});je([GS,Jk],Ly);var e8=je([Lt,Dy,Zk,Xk,ss,ls],(e,t,n,r,i,o)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:s,cy:u,startAngle:d,endAngle:f}=t;return{cx:Br(s,i,i/2),cy:Br(u,o,o/2),innerRadius:n,outerRadius:r,startAngle:d,endAngle:f,clockWise:!1}}}),yn=(e,t)=>t,um=(e,t,n)=>n;function WS(e){return e?.id}var ir=e=>{var t=Lt(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},Nf=e=>e.tooltip.settings.axisId,ar=e=>{var t=ir(e),n=Nf(e);return cm(e,t,n)};function t8(e,t,n){var{chartData:r=[]}=t,i=n?.dataKey,o=new Map;return e.forEach(s=>{var u,d=(u=s.data)!==null&&u!==void 0?u:r;if(!(d==null||d.length===0)){var f=WS(s);d.forEach((m,p)=>{var b=i==null?p:String(en(m,i,null)),_=en(m,s.dataKey,0),w;o.has(b)?w=o.get(b):w={},Object.assign(w,{[f]:_}),o.set(b,w)})}}),Array.from(o.values())}function ky(e){return e.stackId!=null&&e.dataKey!=null}function dM(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 Ev(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dM(Object(n),!0).forEach(function(r){Zoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zoe(e,t,n){return(t=Xoe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xoe(e){var t=Qoe(e,"string");return typeof t=="symbol"?t:t+""}function Qoe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var S2=[0,"auto"],_i={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},cs=(e,t)=>{var n=e.cartesianAxis.xAxis[t];return n??_i},xi={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:S2,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:wy},jl=(e,t)=>{var n=e.cartesianAxis.yAxis[t];return n??xi},Joe={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},KS=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??Joe},zn=(e,t,n)=>{switch(t){case"xAxis":return cs(e,n);case"yAxis":return jl(e,n);case"zAxis":return KS(e,n);case"angleAxis":return qS(e,n);case"radiusAxis":return GS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},ese=(e,t,n)=>{switch(t){case"xAxis":return cs(e,n);case"yAxis":return jl(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},cm=(e,t,n)=>{switch(t){case"xAxis":return cs(e,n);case"yAxis":return jl(e,n);case"angleAxis":return qS(e,n);case"radiusAxis":return GS(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},n8=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function ZS(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var Iy=e=>e.graphicalItems.cartesianItems,tse=je([yn,um],ZS),XS=(e,t,n)=>e.filter(n).filter(r=>t?.includeHidden===!0?!0:!r.hide),fm=je([Iy,zn,tse],XS),r8=je([fm],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(ky)),i8=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),a8=je([fm],i8),QS=e=>e.map(t=>t.data).filter(Boolean).flat(1),nse=je([fm],QS),JS=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:i}=t;return e.length>0?e:n.slice(r,i+1)},eC=je([nse,Ry],JS),tC=(e,t,n)=>t?.dataKey!=null?e.map(r=>({value:en(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(i=>({value:en(i,r)}))):e.map(r=>({value:r})),Uy=je([eC,zn,fm],tC);function o8(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function Ku(e){return e.filter(t=>oi(t)||t instanceof Date).map(Number).filter(t=>Pi(t)===!1)}function rse(e,t,n){return!n||typeof t!="number"||Pi(t)?[]:n.length?Ku(n.flatMap(r=>{var i=en(e,r.dataKey),o,s;if(Array.isArray(i)?[o,s]=i:o=s=i,!(!Ri(o)||!Ri(s)))return[t-o,t+s]})):[]}var ise=je([r8,Ry,ar],t8),s8=(e,t,n)=>{var r={},i=t.reduce((o,s)=>(s.stackId==null||(o[s.stackId]==null&&(o[s.stackId]=[]),o[s.stackId].push(s)),o),r);return Object.fromEntries(Object.entries(i).map(o=>{var[s,u]=o,d=u.map(WS);return[s,{stackedData:_ne(e,d,n),graphicalItems:u}]}))},C2=je([ise,r8,lm],s8),l8=(e,t,n)=>{var{dataStartIndex:r,dataEndIndex:i}=t;if(n!=="zAxis"){var o=Ene(e,r,i);if(!(o!=null&&o[0]===0&&o[1]===0))return o}},ase=je([C2,Ol,yn],l8),u8=(e,t,n,r,i)=>n.length>0?e.flatMap(o=>n.flatMap(s=>{var u,d,f=(u=r[s.id])===null||u===void 0?void 0:u.filter(p=>o8(i,p)),m=en(o,(d=t.dataKey)!==null&&d!==void 0?d:s.dataKey);return{value:m,errorDomain:rse(o,m,f)}})).filter(Boolean):t?.dataKey!=null?e.map(o=>({value:en(o,t.dataKey),errorDomain:[]})):e.map(o=>({value:o,errorDomain:[]})),zy=e=>e.errorBars,c8=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>o8(n,r));je([a8,zy,yn],c8);var ose=je([eC,zn,a8,zy,yn],u8);function sse(e){var{value:t}=e;if(oi(t)||t instanceof Date)return t}var hM=e=>{var t=e.flatMap(r=>[r.value,r.errorDomain]).flat(1),n=Ku(t);if(n.length!==0)return[Math.min(...n),Math.max(...n)]},lse=(e,t,n)=>{var r=e.map(sse).filter(i=>i!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&WL(r))?QD(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},nC=e=>{var t;if(e==null||!("domain"in e))return S2;if(e.domain!=null)return e.domain;if(e.ticks!=null){if(e.type==="number"){var n=Ku(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e?.domain)!==null&&t!==void 0?t:S2},Av=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.filter(Boolean);if(i.length!==0){var o=i.flat(),s=Math.min(...o),u=Math.max(...o);return[s,u]}},f8=e=>e.referenceElements.dots,Lf=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),use=je([f8,yn,um],Lf),d8=e=>e.referenceElements.areas,cse=je([d8,yn,um],Lf),h8=e=>e.referenceElements.lines,fse=je([h8,yn,um],Lf),m8=(e,t)=>{var n=Ku(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},dse=je(use,yn,m8),p8=(e,t)=>{var n=Ku(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},hse=je([cse,yn],p8),g8=(e,t)=>{var n=Ku(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]},mse=je(fse,yn,g8),pse=je(dse,mse,hse,(e,t,n)=>Av(e,n,t)),v8=je([zn],nC),rC=(e,t,n,r,i,o,s)=>{var u=Moe(t,e.allowDataOverflow);if(u!=null)return u;var d=o==="vertical"&&s==="xAxis"||o==="horizontal"&&s==="yAxis",f=d?Av(n,i,hM(r)):Av(i,hM(r));return Poe(t,f,e.allowDataOverflow)},gse=je([zn,v8,ase,ose,pse,Lt,yn],rC),vse=[0,1],iC=(e,t,n,r,i,o,s)=>{if(!((e==null||n==null||n.length===0)&&s===void 0)){var{dataKey:u,type:d}=e,f=El(t,o);return f&&u==null?QD(0,n.length):d==="category"?lse(r,e,f):i==="expand"?vse:s}},aC=je([zn,Lt,eC,Uy,lm,yn,gse],iC),y8=(e,t,n,r,i)=>{if(e!=null){var{scale:o,type:s}=e;if(o==="auto")return t==="radial"&&i==="radiusAxis"?"band":t==="radial"&&i==="angleAxis"?"linear":s==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":s==="category"?"band":"linear";if(typeof o=="string"){var u="scale".concat(nm(o));return u in ch?u:"point"}}},Df=je([zn,Lt,n8,$S,yn],y8);function yse(e){if(e!=null){if(e in ch)return ch[e]();var t="scale".concat(nm(e));if(t in ch)return ch[t]()}}function oC(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var i=yse(t);if(i!=null){var o=i.domain(n).range(r);return pne(o),o}}}var sC=(e,t,n)=>{var r=nC(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&hf(e))return Foe(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&hf(e))return $oe(e,t.tickCount,t.allowDecimals)}},lC=je([aC,cm,Df],sC),uC=(e,t,n,r)=>{if(r!=="angleAxis"&&e?.type==="number"&&hf(t)&&Array.isArray(n)&&n.length>0){var i=t[0],o=n[0],s=t[1],u=n[n.length-1];return[Math.min(i,o),Math.max(s,u)]}return t},bse=je([zn,aC,lC,yn],uC),_se=je(Uy,zn,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Ku(e.map(u=>u.value))).sort((u,d)=>u-d);if(r.length<2)return 1/0;var i=r[r.length-1]-r[0];if(i===0)return 1/0;for(var o=0;o<r.length-1;o++){var s=r[o+1]-r[o];n=Math.min(n,s)}return n/i}}),b8=je(_se,Lt,Wk,nr,(e,t,n,r)=>r,(e,t,n,r,i)=>{if(!Ri(e))return 0;var o=t==="vertical"?r.height:r.width;if(i==="gap")return e*o/2;if(i==="no-gap"){var s=Br(n,e*o),u=e*o/2;return u-s-(u-s)/o*s}return 0}),xse=(e,t)=>{var n=cs(e,t);return n==null||typeof n.padding!="string"?0:b8(e,"xAxis",t,n.padding)},wse=(e,t)=>{var n=jl(e,t);return n==null||typeof n.padding!="string"?0:b8(e,"yAxis",t,n.padding)},Sse=je(cs,xse,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:i}=e;return typeof i=="string"?{left:t,right:t}:{left:((n=i.left)!==null&&n!==void 0?n:0)+t,right:((r=i.right)!==null&&r!==void 0?r:0)+t}}),Cse=je(jl,wse,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:i}=e;return typeof i=="string"?{top:t,bottom:t}:{top:((n=i.top)!==null&&n!==void 0?n:0)+t,bottom:((r=i.bottom)!==null&&r!==void 0?r:0)+t}}),Ese=je([nr,Sse,Cy,Sy,(e,t,n)=>n],(e,t,n,r,i)=>{var{padding:o}=r;return i?[o.left,n.width-o.right]:[e.left+t.left,e.left+e.width-t.right]}),Ase=je([nr,Lt,Cse,Cy,Sy,(e,t,n)=>n],(e,t,n,r,i,o)=>{var{padding:s}=i;return o?[r.height-s.bottom,s.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),dm=(e,t,n,r)=>{var i;switch(t){case"xAxis":return Ese(e,n,r);case"yAxis":return Ase(e,n,r);case"zAxis":return(i=KS(e,n))===null||i===void 0?void 0:i.range;case"angleAxis":return Qk(e);case"radiusAxis":return Jk(e,n);default:return}},_8=je([zn,dm],Ly),yl=je([zn,Df,bse,_8],oC);je([fm,zy,yn],c8);function x8(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var By=(e,t)=>t,Fy=(e,t,n)=>n,Tse=je(cS,By,Fy,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(x8)),Ose=je(fS,By,Fy,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(x8)),w8=(e,t)=>({width:e.width,height:t.height}),jse=(e,t)=>{var n=typeof t.width=="number"?t.width:wy;return{width:n,height:e.height}},S8=je(nr,cs,w8),Mse=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},Pse=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},Rse=je(ls,nr,Tse,By,Fy,(e,t,n,r,i)=>{var o={},s;return n.forEach(u=>{var d=w8(t,u);s==null&&(s=Mse(t,r,e));var f=r==="top"&&!i||r==="bottom"&&i;o[u.id]=s-Number(f)*d.height,s+=(f?-1:1)*d.height}),o}),Nse=je(ss,nr,Ose,By,Fy,(e,t,n,r,i)=>{var o={},s;return n.forEach(u=>{var d=jse(t,u);s==null&&(s=Pse(t,r,e));var f=r==="left"&&!i||r==="right"&&i;o[u.id]=s-Number(f)*d.width,s+=(f?-1:1)*d.width}),o}),Lse=(e,t)=>{var n=nr(e),r=cs(e,t);if(r!=null){var i=Rse(e,r.orientation,r.mirror),o=i[t];return o==null?{x:n.left,y:0}:{x:n.left,y:o}}},Dse=(e,t)=>{var n=nr(e),r=jl(e,t);if(r!=null){var i=Nse(e,r.orientation,r.mirror),o=i[t];return o==null?{x:0,y:n.top}:{x:o,y:n.top}}},C8=je(nr,jl,(e,t)=>{var n=typeof t.width=="number"?t.width:wy;return{width:n,height:e.height}}),mM=(e,t,n)=>{switch(t){case"xAxis":return S8(e,n).width;case"yAxis":return C8(e,n).height;default:return}},E8=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:i,type:o,dataKey:s}=n,u=El(e,r),d=t.map(f=>f.value);if(s&&u&&o==="category"&&i&&WL(d))return d}},cC=je([Lt,Uy,zn,yn],E8),A8=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:i,scale:o}=n,s=El(e,r);if(s&&(i==="number"||o!=="auto"))return t.map(u=>u.value)}},fC=je([Lt,Uy,cm,yn],A8),pM=je([Lt,ese,Df,yl,cC,fC,dm,lC,yn],(e,t,n,r,i,o,s,u,d)=>{if(t==null)return null;var f=El(e,d);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:d,categoricalDomain:o,duplicateDomain:i,isCategorical:f,niceTicks:u,range:s,realScaleType:n,scale:r}}),kse=(e,t,n,r,i,o,s,u,d)=>{if(!(t==null||r==null)){var f=El(e,d),{type:m,ticks:p,tickCount:b}=t,_=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,w=m==="category"&&r.bandwidth?r.bandwidth()/_:0;w=d==="angleAxis"&&o!=null&&o.length>=2?dr(o[0]-o[1])*2*w:w;var x=p||i;if(x){var C=x.map((E,j)=>{var O=s?s.indexOf(E):E;return{index:j,coordinate:r(O)+w,value:E,offset:w}});return C.filter(E=>!Pi(E.coordinate))}return f&&u?u.map((E,j)=>({coordinate:r(E)+w,value:E,index:j,offset:w})):r.ticks?r.ticks(b).map(E=>({coordinate:r(E)+w,value:E,offset:w})):r.domain().map((E,j)=>({coordinate:r(E)+w,value:s?s[E]:E,index:j,offset:w}))}},T8=je([Lt,cm,Df,yl,lC,dm,cC,fC,yn],kse),Ise=(e,t,n,r,i,o,s)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var u=El(e,s),{tickCount:d}=t,f=0;return f=s==="angleAxis"&&r?.length>=2?dr(r[0]-r[1])*2*f:f,u&&o?o.map((m,p)=>({coordinate:n(m)+f,value:m,index:p,offset:f})):n.ticks?n.ticks(d).map(m=>({coordinate:n(m)+f,value:m,offset:f})):n.domain().map((m,p)=>({coordinate:n(m)+f,value:i?i[m]:m,index:p,offset:f}))}},bl=je([Lt,cm,yl,dm,cC,fC,yn],Ise),_l=je(zn,yl,(e,t)=>{if(!(e==null||t==null))return Ev(Ev({},e),{},{scale:t})}),Use=je([zn,Df,aC,_8],oC);je((e,t,n)=>KS(e,n),Use,(e,t)=>{if(!(e==null||t==null))return Ev(Ev({},e),{},{scale:t})});var zse=je([Lt,cS,fS],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),O8=e=>e.options.defaultTooltipEventType,j8=e=>e.options.validateTooltipEventTypes;function M8(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function dC(e,t){var n=O8(e),r=j8(e);return M8(t,n,r)}function Bse(e){return rt(t=>dC(t,e))}var P8=(e,t)=>{var n,r=Number(t);if(!(Pi(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},Fse=e=>e.tooltip.settings,rl={active:!1,index:null,dataKey:void 0,coordinate:void 0},$se={itemInteraction:{click:rl,hover:rl},axisInteraction:{click:rl,hover:rl},keyboardInteraction:rl,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},R8=Nt({name:"tooltip",initialState:$se,reducers:{addTooltipEntrySettings(e,t){e.tooltipItemPayloads.push(t.payload)},removeTooltipEntrySettings(e,t){var n=qo(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate,e.keyboardInteraction.dataKey=t.payload.activeDataKey}}}),{addTooltipEntrySettings:Vse,removeTooltipEntrySettings:Hse,setTooltipSettingsState:qse,setActiveMouseOverItemIndex:N8,mouseLeaveItem:Gse,mouseLeaveChart:L8,setActiveClickItemIndex:Yse,setMouseOverAxisIndex:D8,setMouseClickAxisIndex:Wse,setSyncInteraction:E2,setKeyboardInteraction:A2}=R8.actions,Kse=R8.reducer;function gM(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 sg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gM(Object(n),!0).forEach(function(r){Zse(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zse(e,t,n){return(t=Xse(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xse(e){var t=Qse(e,"string");return typeof t=="symbol"?t:t+""}function Qse(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jse(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function ele(e){return e.index!=null}var k8=(e,t,n,r)=>{if(t==null)return rl;var i=Jse(e,t,n);if(i==null)return rl;if(i.active)return i;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var o=e.settings.active===!0;if(ele(i)){if(o)return sg(sg({},i),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r};return sg(sg({},rl),{},{coordinate:i.coordinate})},hC=(e,t)=>{var n=e?.index;if(n==null)return null;var r=Number(n);if(!Ri(r))return n;var i=0,o=1/0;return t.length>0&&(o=t.length-1),String(Math.max(i,Math.min(r,o)))},I8=(e,t,n,r,i,o,s,u)=>{if(!(o==null||u==null)){var d=s[0],f=d==null?void 0:u(d.positions,o);if(f!=null)return f;var m=i?.[Number(o)];if(m)switch(n){case"horizontal":return{x:m.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:m.coordinate}}}},U8=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var i;return n==="hover"?i=e.itemInteraction.hover.dataKey:i=e.itemInteraction.click.dataKey,i==null&&r!=null?[e.tooltipItemPayloads[0]]:e.tooltipItemPayloads.filter(o=>{var s;return((s=o.settings)===null||s===void 0?void 0:s.dataKey)===i})},hm=e=>e.options.tooltipPayloadSearcher,kf=e=>e.tooltip;function vM(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?vM(Object(n),!0).forEach(function(r){tle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tle(e,t,n){return(t=nle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nle(e){var t=rle(e,"string");return typeof t=="symbol"?t:t+""}function rle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ile(e,t){return e??t}var z8=(e,t,n,r,i,o,s)=>{if(!(t==null||o==null)){var{chartData:u,computedData:d,dataStartIndex:f,dataEndIndex:m}=n,p=[];return e.reduce((b,_)=>{var w,{dataDefinedOnItem:x,settings:C}=_,E=ile(x,u),j=Array.isArray(E)?jD(E,f,m):E,O=(w=C?.dataKey)!==null&&w!==void 0?w:r?.dataKey,N=C?.nameKey,U;if(r!=null&&r.dataKey&&Array.isArray(j)&&!Array.isArray(j[0])&&s==="axis"?U=KL(j,r.dataKey,i):U=o(j,t,d,N),Array.isArray(U))U.forEach(K=>{var X=yM(yM({},C),{},{name:K.name,unit:K.unit,color:void 0,fill:void 0});b.push(Jj({tooltipEntrySettings:X,dataKey:K.dataKey,payload:K.payload,value:en(K.payload,K.dataKey),name:K.name}))});else{var $;b.push(Jj({tooltipEntrySettings:C,dataKey:O,payload:U,value:en(U,O),name:($=en(U,N))!==null&&$!==void 0?$:C?.name}))}return b},p)}},mC=je([ar,Lt,n8,$S,ir],y8),ale=je([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),ole=je([ir,Nf],ZS),mm=je([ale,ar,ole],XS),sle=je([mm],e=>e.filter(ky)),lle=je([mm],QS),If=je([lle,Ol],JS),ule=je([sle,Ol,ar],t8),pC=je([If,ar,mm],tC),cle=je([ar],nC),fle=je([mm],e=>e.filter(ky)),dle=je([ule,fle,lm],s8),hle=je([dle,Ol,ir],l8),mle=je([mm],i8),ple=je([If,ar,mle,zy,ir],u8),gle=je([f8,ir,Nf],Lf),vle=je([gle,ir],m8),yle=je([d8,ir,Nf],Lf),ble=je([yle,ir],p8),_le=je([h8,ir,Nf],Lf),xle=je([_le,ir],g8),wle=je([vle,xle,ble],Av),Sle=je([ar,cle,hle,ple,wle,Lt,ir],rC),B8=je([ar,Lt,If,pC,lm,ir,Sle],iC),Cle=je([B8,ar,mC],sC),Ele=je([ar,B8,Cle,ir],uC),F8=e=>{var t=ir(e),n=Nf(e),r=!1;return dm(e,t,n,r)},$8=je([ar,F8],Ly),V8=je([ar,mC,Ele,$8],oC),Ale=je([Lt,pC,ar,ir],E8),Tle=je([Lt,pC,ar,ir],A8),Ole=(e,t,n,r,i,o,s,u)=>{if(t){var{type:d}=t,f=El(e,u);if(r){var m=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,p=d==="category"&&r.bandwidth?r.bandwidth()/m:0;return p=u==="angleAxis"&&i!=null&&i?.length>=2?dr(i[0]-i[1])*2*p:p,f&&s?s.map((b,_)=>({coordinate:r(b)+p,value:b,index:_,offset:p})):r.domain().map((b,_)=>({coordinate:r(b)+p,value:o?o[b]:b,index:_,offset:p}))}}},fs=je([Lt,ar,mC,V8,F8,Ale,Tle,ir],Ole),gC=je([O8,j8,Fse],(e,t,n)=>M8(n.shared,e,t)),H8=e=>e.tooltip.settings.trigger,vC=e=>e.tooltip.settings.defaultIndex,$y=je([kf,gC,H8,vC],k8),xl=je([$y,If],hC),q8=je([fs,xl],P8),G8=je([$y],e=>{if(e)return e.dataKey}),Y8=je([kf,gC,H8,vC],U8),jle=je([ss,ls,Lt,nr,fs,vC,Y8,hm],I8),Mle=je([$y,jle],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),Ple=je([$y],e=>e.active),Rle=je([Y8,xl,Ol,ar,q8,hm,gC],z8),Nle=je([Rle],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function bM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function _M(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bM(Object(n),!0).forEach(function(r){Lle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lle(e,t,n){return(t=Dle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dle(e){var t=kle(e,"string");return typeof t=="symbol"?t:t+""}function kle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ile=()=>rt(ar),Ule=()=>{var e=Ile(),t=rt(fs),n=rt(V8);return Nh(_M(_M({},e),{},{scale:n}),t)},zle=()=>rt($S),yC=(e,t)=>t,W8=(e,t,n)=>n,bC=(e,t,n,r)=>r,Ble=je(fs,e=>xy(e,t=>t.coordinate)),_C=je([kf,yC,W8,bC],k8),K8=je([_C,If],hC),Fle=(e,t,n)=>{if(t!=null){var r=kf(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},Z8=je([kf,yC,W8,bC],U8),Tv=je([ss,ls,Lt,nr,fs,bC,Z8,hm],I8),$le=je([_C,Tv],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),X8=je(fs,K8,P8),Vle=je([Z8,K8,Ol,ar,X8,hm,yC],z8),Hle=je([_C],e=>({isActive:e.active,activeIndex:e.index})),qle=(e,t,n,r,i,o,s,u)=>{if(!(!e||!t||!r||!i||!o)){var d=Ane(e.chartX,e.chartY,t,n,u);if(d){var f=One(d,t),m=hne(f,s,o,r,i),p=Tne(t,o,m,d);return{activeIndex:String(m),activeCoordinate:p}}}};function T2(){return T2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T2.apply(null,arguments)}function xM(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 lg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xM(Object(n),!0).forEach(function(r){Gle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gle(e,t,n){return(t=Yle(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yle(e){var t=Wle(e,"string");return typeof t=="symbol"?t:t+""}function Wle(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Kle(e){var{coordinate:t,payload:n,index:r,offset:i,tooltipAxisBandSize:o,layout:s,cursor:u,tooltipEventType:d,chartName:f}=e,m=t,p=n,b=r;if(!u||!m||f!=="ScatterChart"&&d!=="axis")return null;var _,w;if(f==="ScatterChart")_=m,w=fre;else if(f==="BarChart")_=dre(s,m,i,o),w=pS;else if(s==="radial"){var{cx:x,cy:C,radius:E,startAngle:j,endAngle:O}=KD(m);_={cx:x,cy:C,startAngle:j,endAngle:O,innerRadius:E,outerRadius:E},w=XD}else _={points:Zre(s,m,i)},w=hS;var N=typeof u=="object"&&"className"in u?u.className:void 0,U=lg(lg(lg(lg({stroke:"#ccc",pointerEvents:"none"},i),_),cn(u,!1)),{},{payload:p,payloadIndex:b,className:Pe("recharts-tooltip-cursor",N)});return A.isValidElement(u)?A.cloneElement(u,U):A.createElement(w,U)}function Zle(e){var t=Ule(),n=kD(),r=Ey(),i=zle();return A.createElement(Kle,T2({},e,{coordinate:e.coordinate,index:e.index,payload:e.payload,offset:n,layout:r,tooltipAxisBandSize:t,chartName:i}))}var Q8=A.createContext(null),Xle=()=>A.useContext(Q8),$_={exports:{}},wM;function Qle(){return wM||(wM=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(d,f,m){this.fn=d,this.context=f,this.once=m||!1}function o(d,f,m,p,b){if(typeof m!="function")throw new TypeError("The listener must be a function");var _=new i(m,p||d,b),w=n?n+f:f;return d._events[w]?d._events[w].fn?d._events[w]=[d._events[w],_]:d._events[w].push(_):(d._events[w]=_,d._eventsCount++),d}function s(d,f){--d._eventsCount===0?d._events=new r:delete d._events[f]}function u(){this._events=new r,this._eventsCount=0}u.prototype.eventNames=function(){var f=[],m,p;if(this._eventsCount===0)return f;for(p in m=this._events)t.call(m,p)&&f.push(n?p.slice(1):p);return Object.getOwnPropertySymbols?f.concat(Object.getOwnPropertySymbols(m)):f},u.prototype.listeners=function(f){var m=n?n+f:f,p=this._events[m];if(!p)return[];if(p.fn)return[p.fn];for(var b=0,_=p.length,w=new Array(_);b<_;b++)w[b]=p[b].fn;return w},u.prototype.listenerCount=function(f){var m=n?n+f:f,p=this._events[m];return p?p.fn?1:p.length:0},u.prototype.emit=function(f,m,p,b,_,w){var x=n?n+f:f;if(!this._events[x])return!1;var C=this._events[x],E=arguments.length,j,O;if(C.fn){switch(C.once&&this.removeListener(f,C.fn,void 0,!0),E){case 1:return C.fn.call(C.context),!0;case 2:return C.fn.call(C.context,m),!0;case 3:return C.fn.call(C.context,m,p),!0;case 4:return C.fn.call(C.context,m,p,b),!0;case 5:return C.fn.call(C.context,m,p,b,_),!0;case 6:return C.fn.call(C.context,m,p,b,_,w),!0}for(O=1,j=new Array(E-1);O<E;O++)j[O-1]=arguments[O];C.fn.apply(C.context,j)}else{var N=C.length,U;for(O=0;O<N;O++)switch(C[O].once&&this.removeListener(f,C[O].fn,void 0,!0),E){case 1:C[O].fn.call(C[O].context);break;case 2:C[O].fn.call(C[O].context,m);break;case 3:C[O].fn.call(C[O].context,m,p);break;case 4:C[O].fn.call(C[O].context,m,p,b);break;default:if(!j)for(U=1,j=new Array(E-1);U<E;U++)j[U-1]=arguments[U];C[O].fn.apply(C[O].context,j)}}return!0},u.prototype.on=function(f,m,p){return o(this,f,m,p,!1)},u.prototype.once=function(f,m,p){return o(this,f,m,p,!0)},u.prototype.removeListener=function(f,m,p,b){var _=n?n+f:f;if(!this._events[_])return this;if(!m)return s(this,_),this;var w=this._events[_];if(w.fn)w.fn===m&&(!b||w.once)&&(!p||w.context===p)&&s(this,_);else{for(var x=0,C=[],E=w.length;x<E;x++)(w[x].fn!==m||b&&!w[x].once||p&&w[x].context!==p)&&C.push(w[x]);C.length?this._events[_]=C.length===1?C[0]:C:s(this,_)}return this},u.prototype.removeAllListeners=function(f){var m;return f?(m=n?n+f:f,this._events[m]&&s(this,m)):(this._events=new r,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=n,u.EventEmitter=u,e.exports=u}($_)),$_.exports}var Jle=Qle();const eue=Li(Jle);var Bh=new eue,O2="recharts.syncEvent.tooltip",SM="recharts.syncEvent.brush";function xC(e,t){if(t){var n=Number.parseInt(t,10);if(!Pi(n))return e?.[n]}}var tue={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},J8=Nt({name:"options",initialState:tue,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),nue=J8.reducer,{createEventEmitter:rue}=J8.actions;function iue(e){return e.tooltip.syncInteraction}var aue={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},e7=Nt({name:"chartData",initialState:aue,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:CM,setDataStartEndIndexes:oue,setComputedData:txe}=e7.actions,sue=e7.reducer,t7=()=>{};function lue(){var e=rt(VS),t=rt(HS),n=Rn(),r=rt(Kk),i=rt(fs),o=Ey(),s=dS(),u=rt(d=>d.rootProps.className);A.useEffect(()=>{if(e==null)return t7;var d=(f,m,p)=>{if(t!==p&&e===f){if(r==="index"){n(m);return}if(i!=null){var b;if(typeof r=="function"){var _={activeTooltipIndex:m.payload.index==null?void 0:Number(m.payload.index),isTooltipActive:m.payload.active,activeIndex:m.payload.index==null?void 0:Number(m.payload.index),activeLabel:m.payload.label,activeDataKey:m.payload.dataKey,activeCoordinate:m.payload.coordinate},w=r(i,_);b=i[w]}else r==="value"&&(b=i.find($=>String($.value)===m.payload.label));var{coordinate:x}=m.payload;if(b==null||m.payload.active===!1||x==null||s==null){n(E2({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0}));return}var{x:C,y:E}=x,j=Math.min(C,s.x+s.width),O=Math.min(E,s.y+s.height),N={x:o==="horizontal"?b.coordinate:j,y:o==="horizontal"?O:b.coordinate},U=E2({active:m.payload.active,coordinate:N,dataKey:m.payload.dataKey,index:String(b.index),label:m.payload.label});n(U)}}};return Bh.on(O2,d),()=>{Bh.off(O2,d)}},[u,n,t,e,r,i,o,s])}function uue(){var e=rt(VS),t=rt(HS),n=Rn();A.useEffect(()=>{if(e==null)return t7;var r=(i,o,s)=>{t!==s&&e===i&&n(oue(o))};return Bh.on(SM,r),()=>{Bh.off(SM,r)}},[n,t,e])}function cue(){var e=Rn();A.useEffect(()=>{e(rue())},[e]),lue(),uue()}function fue(e,t,n,r,i,o){var s=rt(b=>Fle(b,e,t)),u=rt(HS),d=rt(VS),f=rt(Kk),m=rt(iue),p=m?.active;A.useEffect(()=>{if(!p&&d!=null&&u!=null){var b=E2({active:o,coordinate:n,dataKey:s,index:i,label:typeof r=="number"?String(r):r});Bh.emit(O2,d,b,u)}},[p,n,s,i,r,u,d,f,o])}function EM(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 AM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EM(Object(n),!0).forEach(function(r){due(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function due(e,t,n){return(t=hue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hue(e){var t=mue(e,"string");return typeof t=="symbol"?t:t+""}function mue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pue(e){return e.dataKey}function gue(e,t){return A.isValidElement(e)?A.cloneElement(e,t):typeof e=="function"?A.createElement(e,t):A.createElement(Vne,t)}var TM=[],vue={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,isAnimationActive:!Gu.isSsr,itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function wC(e){var t=ki(e,vue),{active:n,allowEscapeViewBox:r,animationDuration:i,animationEasing:o,content:s,filterNull:u,isAnimationActive:d,offset:f,payloadUniqBy:m,position:p,reverseDirection:b,useTranslate3d:_,wrapperStyle:w,cursor:x,shared:C,trigger:E,defaultIndex:j,portal:O,axisId:N}=t,U=Rn(),$=typeof j=="number"?String(j):j;A.useEffect(()=>{U(qse({shared:C,trigger:E,axisId:N,active:n,defaultIndex:$}))},[U,C,E,N,n,$]);var K=dS(),X=$D(),oe=Bse(C),{activeIndex:ee,isActive:J}=rt(ue=>Hle(ue,oe,E,$)),ne=rt(ue=>Vle(ue,oe,E,$)),he=rt(ue=>X8(ue,oe,E,$)),Q=rt(ue=>$le(ue,oe,E,$)),se=ne,Z=Xle(),I=n??J,[k,z]=Wte([se,I]),F=oe==="axis"?he:void 0;fue(oe,E,Q,F,ee,I);var P=O??Z;if(P==null)return null;var G=se??TM;I||(G=TM),u&&G.length&&(G=Mte(se.filter(ue=>ue.value!=null&&(ue.hide!==!0||t.includeHidden)),m,pue));var Y=G.length>0,te=A.createElement(Zne,{allowEscapeViewBox:r,animationDuration:i,animationEasing:o,isAnimationActive:d,active:I,coordinate:Q,hasPayload:Y,offset:f,position:p,reverseDirection:b,useTranslate3d:_,viewBox:K,wrapperStyle:w,lastBoundingBox:k,innerRef:z,hasPortalFromProps:!!O},gue(s,AM(AM({},t),{},{payload:G,label:F,active:I,coordinate:Q,accessibilityLayer:X})));return A.createElement(A.Fragment,null,qh.createPortal(te,P),I&&A.createElement(Zle,{cursor:x,tooltipEventType:oe,coordinate:Q,payload:se,index:ee}))}var V_={},H_={},q_={},OM;function yue(){return OM||(OM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:i,edges:o}={}){let s,u=null;const d=o!=null&&o.includes("leading"),f=o==null||o.includes("trailing"),m=()=>{u!==null&&(n.apply(s,u),s=void 0,u=null)},p=()=>{f&&m(),x()};let b=null;const _=()=>{b!=null&&clearTimeout(b),b=setTimeout(()=>{b=null,p()},r)},w=()=>{b!==null&&(clearTimeout(b),b=null)},x=()=>{w(),s=void 0,u=null},C=()=>{m()},E=function(...j){if(i?.aborted)return;s=this,u=j;const O=b==null;_(),d&&O&&m()};return E.schedule=_,E.cancel=x,E.flush=C,i?.addEventListener("abort",x,{once:!0}),E}e.debounce=t}(q_)),q_}var jM;function bue(){return jM||(jM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=yue();function n(r,i=0,o={}){typeof o!="object"&&(o={});const{leading:s=!1,trailing:u=!0,maxWait:d}=o,f=Array(2);s&&(f[0]="leading"),u&&(f[1]="trailing");let m,p=null;const b=t.debounce(function(...x){m=r.apply(this,x),p=null},i,{edges:f}),_=function(...x){return d!=null&&(p===null&&(p=Date.now()),Date.now()-p>=d)?(m=r.apply(this,x),p=Date.now(),b.cancel(),b.schedule(),m):(b.apply(this,x),m)},w=()=>(b.flush(),m);return _.cancel=b.cancel,_.flush=w,_}e.debounce=n}(H_)),H_}var MM;function _ue(){return MM||(MM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=bue();function n(r,i=0,o={}){const{leading:s=!0,trailing:u=!0}=o;return t.debounce(r,i,{leading:s,maxWait:i,trailing:u})}e.throttle=n}(V_)),V_}var G_,PM;function xue(){return PM||(PM=1,G_=_ue().throttle),G_}var wue=xue();const Sue=Li(wue);var yh=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),o=2;o<r;o++)i[o-2]=arguments[o]};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 Y_(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){Cue(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 Cue(e,t,n){return(t=Eue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eue(e){var t=Aue(e,"string");return typeof t=="symbol"?t:t+""}function Aue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Tue=A.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:i="100%",height:o="100%",minWidth:s=0,minHeight:u,maxHeight:d,children:f,debounce:m=0,id:p,className:b,onResize:_,style:w={}}=e,x=A.useRef(null),C=A.useRef();C.current=_,A.useImperativeHandle(t,()=>x.current);var[E,j]=A.useState({containerWidth:r.width,containerHeight:r.height}),O=A.useCallback((U,$)=>{j(K=>{var X=Math.round(U),oe=Math.round($);return K.containerWidth===X&&K.containerHeight===oe?K:{containerWidth:X,containerHeight:oe}})},[]);A.useEffect(()=>{var U=oe=>{var ee,{width:J,height:ne}=oe[0].contentRect;O(J,ne),(ee=C.current)===null||ee===void 0||ee.call(C,J,ne)};m>0&&(U=Sue(U,m,{trailing:!0,leading:!1}));var $=new ResizeObserver(U),{width:K,height:X}=x.current.getBoundingClientRect();return O(K,X),$.observe(x.current),()=>{$.disconnect()}},[O,m]);var N=A.useMemo(()=>{var{containerWidth:U,containerHeight:$}=E;if(U<0||$<0)return null;yh(wu(i)||wu(o),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,i,o),yh(!n||n>0,"The aspect(%s) must be greater than zero.",n);var K=wu(i)?U:i,X=wu(o)?$:o;return n&&n>0&&(K?X=K/n:X&&(K=X*n),d&&X>d&&(X=d)),yh(K>0||X>0,`The width(%s) and height(%s) of chart should be greater than 0,
please check the style of container, or the props width(%s) and height(%s),
or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
height and width.`,K,X,i,o,s,u,n),A.Children.map(f,oe=>A.cloneElement(oe,{width:K,height:X,style:Y_({width:K,height:X},oe.props.style)}))},[n,f,o,d,u,s,E,i]);return A.createElement("div",{id:p?"".concat(p):void 0,className:Pe("recharts-responsive-container",b),style:Y_(Y_({},w),{},{width:i,height:o,minWidth:s,minHeight:u,maxHeight:d}),ref:x},A.createElement("div",{style:{width:0,height:0,overflow:"visible"}},N))}),sl=e=>null;sl.displayName="Cell";function Oue(e,t,n){return(t=jue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jue(e){var t=Mue(e,"string");return typeof t=="symbol"?t:t+""}function Mue(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Pue{constructor(t){Oue(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function NM(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 Rue(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NM(Object(n),!0).forEach(function(r){Nue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nue(e,t,n){return(t=Lue(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lue(e){var t=Due(e,"string");return typeof t=="symbol"?t:t+""}function Due(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kue={cacheSize:2e3,enableCache:!0},n7=Rue({},kue),LM=new Pue(n7.cacheSize),Iue={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},DM="recharts_measurement_span";function Uue(e,t){var n=t.fontSize||"",r=t.fontFamily||"",i=t.fontWeight||"",o=t.fontStyle||"",s=t.letterSpacing||"",u=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(i,"|").concat(o,"|").concat(s,"|").concat(u)}var kM=(e,t)=>{try{var n=document.getElementById(DM);n||(n=document.createElement("span"),n.setAttribute("id",DM),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,Iue,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},bh=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Gu.isSsr)return{width:0,height:0};if(!n7.enableCache)return kM(t,n);var r=Uue(t,n),i=LM.get(r);if(i)return i;var o=kM(t,n);return LM.set(r,o),o},IM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,UM=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,zue=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Bue=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,r7={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Fue=Object.keys(r7),Gc="NaN";function $ue(e,t){return e*r7[t]}class ri{static parse(t){var n,[,r,i]=(n=Bue.exec(t))!==null&&n!==void 0?n:[];return new ri(parseFloat(r),i??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Pi(t)&&(this.unit=""),n!==""&&!zue.test(n)&&(this.num=NaN,this.unit=""),Fue.includes(n)&&(this.num=$ue(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new ri(NaN,""):new ri(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ri(NaN,""):new ri(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ri(NaN,""):new ri(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ri(NaN,""):new ri(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Pi(this.num)}}function i7(e){if(e.includes(Gc))return Gc;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,i,o]=(n=IM.exec(t))!==null&&n!==void 0?n:[],s=ri.parse(r??""),u=ri.parse(o??""),d=i==="*"?s.multiply(u):s.divide(u);if(d.isNaN())return Gc;t=t.replace(IM,d.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var f,[,m,p,b]=(f=UM.exec(t))!==null&&f!==void 0?f:[],_=ri.parse(m??""),w=ri.parse(b??""),x=p==="+"?_.add(w):_.subtract(w);if(x.isNaN())return Gc;t=t.replace(UM,x.toString())}return t}var zM=/\(([^()]*)\)/;function Vue(e){for(var t=e,n;(n=zM.exec(t))!=null;){var[,r]=n;t=t.replace(zM,i7(r))}return t}function Hue(e){var t=e.replace(/\s+/g,"");return t=Vue(t),t=i7(t),t}function que(e){try{return Hue(e)}catch{return Gc}}function W_(e){var t=que(e.slice(5,-1));return t===Gc?"":t}var Gue=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],Yue=["dx","dy","angle","className","breakAll"];function j2(){return j2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j2.apply(null,arguments)}function BM(e,t){if(e==null)return{};var n,r,i=Wue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Wue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var a7=/[ \f\n\r\t\v\u2028\u2029]+/,o7=e=>{var{children:t,breakAll:n,style:r}=e;try{var i=[];dn(t)||(n?i=t.toString().split(""):i=t.toString().split(a7));var o=i.map(u=>({word:u,width:bh(u,r).width})),s=n?0:bh(" ",r).width;return{wordsWithComputedWidth:o,spaceWidth:s}}catch{return null}},Kue=(e,t,n,r,i)=>{var{maxLines:o,children:s,style:u,breakAll:d}=e,f=Je(o),m=s,p=function(){var J=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return J.reduce((ne,he)=>{var{word:Q,width:se}=he,Z=ne[ne.length-1];if(Z&&(r==null||i||Z.width+se+n<Number(r)))Z.words.push(Q),Z.width+=se+n;else{var I={words:[Q],width:se};ne.push(I)}return ne},[])},b=p(t),_=ee=>ee.reduce((J,ne)=>J.width>ne.width?J:ne);if(!f||i)return b;var w=b.length>o||_(b).width>Number(r);if(!w)return b;for(var x="…",C=ee=>{var J=m.slice(0,ee),ne=o7({breakAll:d,style:u,children:J+x}).wordsWithComputedWidth,he=p(ne),Q=he.length>o||_(he).width>Number(r);return[Q,he]},E=0,j=m.length-1,O=0,N;E<=j&&O<=m.length-1;){var U=Math.floor((E+j)/2),$=U-1,[K,X]=C($),[oe]=C(U);if(!K&&!oe&&(E=U+1),K&&oe&&(j=U-1),!K&&oe){N=X;break}O++}return N||b},FM=e=>{var t=dn(e)?[]:e.toString().split(a7);return[{words:t}]},Zue=e=>{var{width:t,scaleToFit:n,children:r,style:i,breakAll:o,maxLines:s}=e;if((t||n)&&!Gu.isSsr){var u,d,f=o7({breakAll:o,children:r,style:i});if(f){var{wordsWithComputedWidth:m,spaceWidth:p}=f;u=m,d=p}else return FM(r);return Kue({breakAll:o,children:r,maxLines:s,style:i},u,d,t,n)}return FM(r)},$M="#808080",Vy=A.forwardRef((e,t)=>{var{x:n=0,y:r=0,lineHeight:i="1em",capHeight:o="0.71em",scaleToFit:s=!1,textAnchor:u="start",verticalAnchor:d="end",fill:f=$M}=e,m=BM(e,Gue),p=A.useMemo(()=>Zue({breakAll:m.breakAll,children:m.children,maxLines:m.maxLines,scaleToFit:s,style:m.style,width:m.width}),[m.breakAll,m.children,m.maxLines,s,m.style,m.width]),{dx:b,dy:_,angle:w,className:x,breakAll:C}=m,E=BM(m,Yue);if(!oi(n)||!oi(r))return null;var j=n+(Je(b)?b:0),O=r+(Je(_)?_:0),N;switch(d){case"start":N=W_("calc(".concat(o,")"));break;case"middle":N=W_("calc(".concat((p.length-1)/2," * -").concat(i," + (").concat(o," / 2))"));break;default:N=W_("calc(".concat(p.length-1," * -").concat(i,")"));break}var U=[];if(s){var $=p[0].width,{width:K}=m;U.push("scale(".concat(Je(K)?K/$:1,")"))}return w&&U.push("rotate(".concat(w,", ").concat(j,", ").concat(O,")")),U.length&&(E.transform=U.join(" ")),A.createElement("text",j2({},cn(E,!0),{ref:t,x:j,y:O,className:Pe("recharts-text",x),textAnchor:u,fill:f.includes("url")?$M:f}),p.map((X,oe)=>{var ee=X.words.join(C?"":" ");return A.createElement("tspan",{x:j,dy:oe===0?N:i,key:"".concat(ee,"-").concat(oe)},ee)}))});Vy.displayName="Text";var Xue=["offset"],Que=["labelRef"];function VM(e,t){if(e==null)return{};var n,r,i=Jue(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Jue(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function HM(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 jn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HM(Object(n),!0).forEach(function(r){ece(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ece(e,t,n){return(t=tce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tce(e){var t=nce(e,"string");return typeof t=="symbol"?t:t+""}function nce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fo(){return Fo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fo.apply(null,arguments)}var rce=e=>{var{value:t,formatter:n}=e,r=dn(e.children)?t:e.children;return typeof n=="function"?n(r):r},SC=e=>e!=null&&typeof e=="function",ice=(e,t)=>{var n=dr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},ace=(e,t,n,r)=>{var{position:i,offset:o,className:s}=e,{cx:u,cy:d,innerRadius:f,outerRadius:m,startAngle:p,endAngle:b,clockWise:_}=r,w=(f+m)/2,x=ice(p,b),C=x>=0?1:-1,E,j;i==="insideStart"?(E=p+C*o,j=_):i==="insideEnd"?(E=b-C*o,j=!_):i==="end"&&(E=b+C*o,j=_),j=x<=0?j:!j;var O=Gn(u,d,w,E),N=Gn(u,d,w,E+(j?1:-1)*359),U="M".concat(O.x,",").concat(O.y,`
A`).concat(w,",").concat(w,",0,1,").concat(j?0:1,`,
`).concat(N.x,",").concat(N.y),$=dn(e.id)?Rh("recharts-radial-line-"):e.id;return A.createElement("text",Fo({},n,{dominantBaseline:"central",className:Pe("recharts-radial-bar-label",s)}),A.createElement("defs",null,A.createElement("path",{id:$,d:U})),A.createElement("textPath",{xlinkHref:"#".concat($)},t))},oce=(e,t,n)=>{var{cx:r,cy:i,innerRadius:o,outerRadius:s,startAngle:u,endAngle:d}=e,f=(u+d)/2;if(n==="outside"){var{x:m,y:p}=Gn(r,i,s+t,f);return{x:m,y:p,textAnchor:m>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:i,textAnchor:"middle",verticalAnchor:"end"};var b=(o+s)/2,{x:_,y:w}=Gn(r,i,b,f);return{x:_,y:w,textAnchor:"middle",verticalAnchor:"middle"}},sce=(e,t)=>{var{parentViewBox:n,offset:r,position:i}=e,{x:o,y:s,width:u,height:d}=t,f=d>=0?1:-1,m=f*r,p=f>0?"end":"start",b=f>0?"start":"end",_=u>=0?1:-1,w=_*r,x=_>0?"end":"start",C=_>0?"start":"end";if(i==="top"){var E={x:o+u/2,y:s-f*r,textAnchor:"middle",verticalAnchor:p};return jn(jn({},E),n?{height:Math.max(s-n.y,0),width:u}:{})}if(i==="bottom"){var j={x:o+u/2,y:s+d+m,textAnchor:"middle",verticalAnchor:b};return jn(jn({},j),n?{height:Math.max(n.y+n.height-(s+d),0),width:u}:{})}if(i==="left"){var O={x:o-w,y:s+d/2,textAnchor:x,verticalAnchor:"middle"};return jn(jn({},O),n?{width:Math.max(O.x-n.x,0),height:d}:{})}if(i==="right"){var N={x:o+u+w,y:s+d/2,textAnchor:C,verticalAnchor:"middle"};return jn(jn({},N),n?{width:Math.max(n.x+n.width-N.x,0),height:d}:{})}var U=n?{width:u,height:d}:{};return i==="insideLeft"?jn({x:o+w,y:s+d/2,textAnchor:C,verticalAnchor:"middle"},U):i==="insideRight"?jn({x:o+u-w,y:s+d/2,textAnchor:x,verticalAnchor:"middle"},U):i==="insideTop"?jn({x:o+u/2,y:s+m,textAnchor:"middle",verticalAnchor:b},U):i==="insideBottom"?jn({x:o+u/2,y:s+d-m,textAnchor:"middle",verticalAnchor:p},U):i==="insideTopLeft"?jn({x:o+w,y:s+m,textAnchor:C,verticalAnchor:b},U):i==="insideTopRight"?jn({x:o+u-w,y:s+m,textAnchor:x,verticalAnchor:b},U):i==="insideBottomLeft"?jn({x:o+w,y:s+d-m,textAnchor:C,verticalAnchor:p},U):i==="insideBottomRight"?jn({x:o+u-w,y:s+d-m,textAnchor:x,verticalAnchor:p},U):i&&typeof i=="object"&&(Je(i.x)||wu(i.x))&&(Je(i.y)||wu(i.y))?jn({x:o+Br(i.x,u),y:s+Br(i.y,d),textAnchor:"end",verticalAnchor:"end"},U):jn({x:o+u/2,y:s+d/2,textAnchor:"middle",verticalAnchor:"middle"},U)},lce=e=>"cx"in e&&Je(e.cx);function ii(e){var{offset:t=5}=e,n=VM(e,Xue),r=jn({offset:t},n),{viewBox:i,position:o,value:s,children:u,content:d,className:f="",textBreakAll:m,labelRef:p}=r,b=rt(e8),_=dS(),w=o==="center"?_:b??_,x=i||w;if(!x||dn(s)&&dn(u)&&!A.isValidElement(d)&&typeof d!="function")return null;var C=jn(jn({},r),{},{viewBox:x});if(A.isValidElement(d)){var{labelRef:E}=C,j=VM(C,Que);return A.cloneElement(d,j)}var O;if(typeof d=="function"){if(O=A.createElement(d,C),A.isValidElement(O))return O}else O=rce(r);var N=lce(x),U=cn(r,!0);if(N&&(o==="insideStart"||o==="insideEnd"||o==="end"))return ace(r,O,U,x);var $=N?oce(x,r.offset,r.position):sce(r,x);return A.createElement(Vy,Fo({ref:p,className:Pe("recharts-label",f)},U,$,{breakAll:m}),O)}ii.displayName="Label";var s7=e=>{var{cx:t,cy:n,angle:r,startAngle:i,endAngle:o,r:s,radius:u,innerRadius:d,outerRadius:f,x:m,y:p,top:b,left:_,width:w,height:x,clockWise:C,labelViewBox:E}=e;if(E)return E;if(Je(w)&&Je(x)){if(Je(m)&&Je(p))return{x:m,y:p,width:w,height:x};if(Je(b)&&Je(_))return{x:b,y:_,width:w,height:x}}if(Je(m)&&Je(p))return{x:m,y:p,width:0,height:0};if(Je(t)&&Je(n))return{cx:t,cy:n,startAngle:i||r||0,endAngle:o||r||0,innerRadius:d||0,outerRadius:f||u||s||0,clockWise:C};if(e.viewBox)return e.viewBox},uce=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?A.createElement(ii,Fo({key:"label-implicit"},r)):oi(e)?A.createElement(ii,Fo({key:"label-implicit",value:e},r)):A.isValidElement(e)?e.type===ii?A.cloneElement(e,jn({key:"label-implicit"},r)):A.createElement(ii,Fo({key:"label-implicit",content:e},r)):SC(e)?A.createElement(ii,Fo({key:"label-implicit",content:e},r)):e&&typeof e=="object"?A.createElement(ii,Fo({},e,{key:"label-implicit"},r)):null},cce=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{children:i,labelRef:o}=t,s=s7(t),u=rm(i,ii).map((f,m)=>A.cloneElement(f,{viewBox:n||s,key:"label-".concat(m)}));if(!r)return u;var d=uce(t.label,n||s,o);return[d,...u]};ii.parseViewBox=s7;ii.renderCallByParent=cce;var K_={},Z_={},qM;function fce(){return qM||(qM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t}(Z_)),Z_}var X_={},GM;function dce(){return GM||(GM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t}(X_)),X_}var YM;function hce(){return YM||(YM=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fce(),n=dce(),r=iS();function i(o){if(r.isArrayLike(o))return t.last(n.toArray(o))}e.last=i}(K_)),K_}var Q_,WM;function mce(){return WM||(WM=1,Q_=hce().last),Q_}var pce=mce();const gce=Li(pce);var vce=["valueAccessor"],yce=["data","dataKey","clockWise","id","textBreakAll"];function Ov(){return Ov=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ov.apply(null,arguments)}function KM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ZM(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KM(Object(n),!0).forEach(function(r){bce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bce(e,t,n){return(t=_ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ce(e){var t=xce(e,"string");return typeof t=="symbol"?t:t+""}function xce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function XM(e,t){if(e==null)return{};var n,r,i=wce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function wce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Sce=e=>Array.isArray(e.value)?gce(e.value):e.value;function ll(e){var{valueAccessor:t=Sce}=e,n=XM(e,vce),{data:r,dataKey:i,clockWise:o,id:s,textBreakAll:u}=n,d=XM(n,yce);return!r||!r.length?null:A.createElement(Sr,{className:"recharts-label-list"},r.map((f,m)=>{var p=dn(i)?t(f,m):en(f&&f.payload,i),b=dn(s)?{}:{id:"".concat(s,"-").concat(m)};return A.createElement(ii,Ov({},cn(f,!0),d,b,{parentViewBox:f.parentViewBox,value:p,textBreakAll:u,viewBox:ii.parseViewBox(dn(o)?f:ZM(ZM({},f),{},{clockWise:o})),key:"label-".concat(m),index:m}))}))}ll.displayName="LabelList";function Cce(e,t){return e?e===!0?A.createElement(ll,{key:"labelList-implicit",data:t}):A.isValidElement(e)||SC(e)?A.createElement(ll,{key:"labelList-implicit",data:t,content:e}):typeof e=="object"?A.createElement(ll,Ov({data:t},e,{key:"labelList-implicit"})):null:null}function Ece(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var{children:r}=e,i=rm(r,ll).map((s,u)=>A.cloneElement(s,{data:t,key:"labelList-".concat(u)}));if(!n)return i;var o=Cce(e.label,t);return[o,...i]}ll.renderCallByParent=Ece;function M2(){return M2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},M2.apply(null,arguments)}var l7=e=>{var{cx:t,cy:n,r,className:i}=e,o=Pe("recharts-dot",i);return t===+t&&n===+n&&r===+r?A.createElement("circle",M2({},os(e),eS(e),{className:o,cx:t,cy:n,r})):null},u7=e=>e.graphicalItems.polarItems,Ace=je([yn,um],ZS),CC=je([u7,zn,Ace],XS),Tce=je([CC],QS),EC=je([Tce,zS],JS),Oce=je([EC,zn,CC],tC),jce=je([EC,zn,CC],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(i=>{var o,s=en(r,(o=t.dataKey)!==null&&o!==void 0?o:i.dataKey);return{value:s,errorDomain:[]}})).filter(Boolean):t?.dataKey!=null?e.map(r=>({value:en(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]}))),QM=()=>{},Mce=je([zn,v8,QM,jce,QM,Lt,yn],rC),c7=je([zn,Lt,EC,Oce,lm,yn,Mce],iC),Pce=je([c7,zn,Df],sC);je([zn,c7,Pce,yn],uC);var Rce={radiusAxis:{},angleAxis:{}},f7=Nt({name:"polarAxis",initialState:Rce,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:nxe,removeRadiusAxis:rxe,addAngleAxis:ixe,removeAngleAxis:axe}=f7.actions,Nce=f7.reducer;function JM(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?JM(Object(n),!0).forEach(function(r){Lce(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lce(e,t,n){return(t=Dce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dce(e){var t=kce(e,"string");return typeof t=="symbol"?t:t+""}function kce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ice=(e,t)=>t,AC=je([u7,Ice],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),Uce=[],TC=(e,t,n)=>n?.length===0?Uce:n,d7=je([zS,AC,TC],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var i;if(t?.data!=null&&t.data.length>0?i=t.data:i=r,(!i||!i.length)&&n!=null&&(i=n.map(o=>eP(eP({},t.presentationProps),o.props))),i!=null)return i}}),zce=je([d7,AC,TC],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,i)=>{var o,s=en(r,t.nameKey,t.name),u;return n!=null&&(o=n[i])!==null&&o!==void 0&&(o=o.props)!==null&&o!==void 0&&o.fill?u=n[i].props.fill:typeof r=="object"&&r!=null&&"fill"in r?u=r.fill:u=t.fill,{value:jf(s,t.dataKey),color:u,payload:r,type:t.legendType}})}),Bce=je([d7,AC,TC,nr],(e,t,n,r)=>{if(!(t==null||e==null))return Nfe({offset:r,pieSettings:t,displayedData:e,cells:n})}),J_={},tP;function Fce(){return tP||(tP=1,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const i=n[Symbol.toStringTag];return i==null||!Object.getOwnPropertyDescriptor(n,Symbol.toStringTag)?.writable?!1:n.toString()===`[object ${i}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t}(J_)),J_}var ex,nP;function $ce(){return nP||(nP=1,ex=Fce().isPlainObject),ex}var Vce=$ce();const Hce=Li(Vce);function jv(){return jv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jv.apply(null,arguments)}var rP=(e,t,n,r,i)=>{var o=n-r,s;return s="M ".concat(e,",").concat(t),s+="L ".concat(e+n,",").concat(t),s+="L ".concat(e+n-o/2,",").concat(t+i),s+="L ".concat(e+n-o/2-r,",").concat(t+i),s+="L ".concat(e,",").concat(t," Z"),s},qce={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},Gce=e=>{var t=ki(e,qce),n=A.useRef(),[r,i]=A.useState(-1);A.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var C=n.current.getTotalLength();C&&i(C)}catch{}},[]);var{x:o,y:s,upperWidth:u,lowerWidth:d,height:f,className:m}=t,{animationEasing:p,animationDuration:b,animationBegin:_,isUpdateAnimationActive:w}=t;if(o!==+o||s!==+s||u!==+u||d!==+d||f!==+f||u===0&&d===0||f===0)return null;var x=Pe("recharts-trapezoid",m);return w?A.createElement(hv,{canBegin:r>0,from:{upperWidth:0,lowerWidth:0,height:f,x:o,y:s},to:{upperWidth:u,lowerWidth:d,height:f,x:o,y:s},duration:b,animationEasing:p,isActive:w},C=>{var{upperWidth:E,lowerWidth:j,height:O,x:N,y:U}=C;return A.createElement(hv,{canBegin:r>0,from:"0px ".concat(r===-1?1:r,"px"),to:"".concat(r,"px 0px"),attributeName:"strokeDasharray",begin:_,duration:b,easing:p},A.createElement("path",jv({},cn(t,!0),{className:x,d:rP(N,U,E,j,O),ref:n})))}):A.createElement("g",null,A.createElement("path",jv({},cn(t,!0),{className:x,d:rP(o,s,u,d,f)})))},Yce=["option","shapeType","propTransformer","activeClassName","isActive"];function Wce(e,t){if(e==null)return{};var n,r,i=Kce(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Kce(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}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 Mv(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){Zce(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 Zce(e,t,n){return(t=Xce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xce(e){var t=Qce(e,"string");return typeof t=="symbol"?t:t+""}function Qce(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jce(e,t){return Mv(Mv({},t),e)}function efe(e,t){return e==="symbols"}function aP(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return A.createElement(pS,n);case"trapezoid":return A.createElement(Gce,n);case"sector":return A.createElement(XD,n);case"symbols":if(efe(t))return A.createElement(vD,n);break;default:return null}}function tfe(e){return A.isValidElement(e)?e.props:e}function h7(e){var{option:t,shapeType:n,propTransformer:r=Jce,activeClassName:i="recharts-active-shape",isActive:o}=e,s=Wce(e,Yce),u;if(A.isValidElement(t))u=A.cloneElement(t,Mv(Mv({},s),tfe(t)));else if(typeof t=="function")u=t(s);else if(Hce(t)&&typeof t!="boolean"){var d=r(t,s);u=A.createElement(aP,{shapeType:n,elementProps:d})}else{var f=s;u=A.createElement(aP,{shapeType:n,elementProps:f})}return o?A.createElement(Sr,{className:i},u):u}var OC=(e,t)=>{var n=Rn();return(r,i)=>o=>{e?.(r,i,o),n(N8({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}},jC=e=>{var t=Rn();return(n,r)=>i=>{e?.(n,r,i),t(Gse())}},MC=(e,t)=>{var n=Rn();return(r,i)=>o=>{e?.(r,i,o),n(Yse({activeIndex:String(i),activeDataKey:t,activeCoordinate:r.tooltipPosition}))}};function PC(e){var{fn:t,args:n}=e,r=Rn(),i=Vr();return A.useEffect(()=>{if(!i){var o=t(n);return r(Vse(o)),()=>{r(Hse(o))}}},[t,n,r,i]),null}var m7=()=>{};function p7(e){var{legendPayload:t}=e,n=Rn(),r=Vr();return A.useEffect(()=>r?m7:(n(BD(t)),()=>{n(FD(t))}),[n,r,t]),null}function nfe(e){var{legendPayload:t}=e,n=Rn(),r=rt(Lt);return A.useEffect(()=>r!=="centric"&&r!=="radial"?m7:(n(BD(t)),()=>{n(FD(t))}),[n,r,t]),null}function RC(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=A.useRef(Rh(t)),r=A.useRef(e);return r.current!==e&&(n.current=Rh(t),r.current=e),n.current}var tx,rfe=()=>{var[e]=A.useState(()=>Rh("uid-"));return e},ife=(tx=G2.useId)!==null&&tx!==void 0?tx:rfe;function afe(e,t){var n=ife();return t||(e?"".concat(e,"-").concat(n):n)}var ofe=A.createContext(void 0),NC=e=>{var{id:t,type:n,children:r}=e,i=afe("recharts-".concat(n),t);return A.createElement(ofe.Provider,{value:i},r(i))},sfe={cartesianItems:[],polarItems:[]},g7=Nt({name:"graphicalItems",initialState:sfe,reducers:{addCartesianGraphicalItem(e,t){e.cartesianItems.push(t.payload)},replaceCartesianGraphicalItem(e,t){var{prev:n,next:r}=t.payload,i=qo(e).cartesianItems.indexOf(n);i>-1&&(e.cartesianItems[i]=r)},removeCartesianGraphicalItem(e,t){var n=qo(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},addPolarGraphicalItem(e,t){e.polarItems.push(t.payload)},removePolarGraphicalItem(e,t){var n=qo(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)}}}),{addCartesianGraphicalItem:lfe,replaceCartesianGraphicalItem:ufe,removeCartesianGraphicalItem:cfe,addPolarGraphicalItem:ffe,removePolarGraphicalItem:dfe}=g7.actions,hfe=g7.reducer;function v7(e){var t=Rn(),n=A.useRef(null);return A.useEffect(()=>{n.current===null?t(lfe(e)):n.current!==e&&t(ufe({prev:n.current,next:e})),n.current=e},[t,e]),A.useEffect(()=>()=>{n.current&&(t(cfe(n.current)),n.current=null)},[t]),null}function mfe(e){var t=Rn();return A.useEffect(()=>(t(ffe(e)),()=>{t(dfe(e))}),[t,e]),null}function pfe(){}var gfe={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},oP={t:0},nx={t:1};function LC(e){var t=ki(e,gfe),{isActive:n,canBegin:r,duration:i,easing:o,begin:s,onAnimationEnd:u,onAnimationStart:d,children:f}=t,m=WD("JavascriptAnimate",t.animationManager),[p,b]=A.useState(n?oP:nx),_=A.useRef(null);return A.useEffect(()=>{n||b(nx)},[n]),A.useEffect(()=>{if(!n||!r)return pfe;var w=YD(oP,nx,qD(o),i,b,m.getTimeoutController()),x=()=>{_.current=w()};return m.start([d,s,x,i,u]),()=>{m.stop(),_.current&&_.current(),u()}},[n,r,i,o,s,d,u,m]),f(p.t)}var vfe=["onMouseEnter","onClick","onMouseLeave"],yfe=["id"],bfe=["id"];function DC(e,t){if(e==null)return{};var n,r,i=_fe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _fe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function sP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sP(Object(n),!0).forEach(function(r){xfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xfe(e,t,n){return(t=wfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wfe(e){var t=Sfe(e,"string");return typeof t=="symbol"?t:t+""}function Sfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ns(){return ns=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ns.apply(null,arguments)}function Cfe(e){var t=A.useMemo(()=>rm(e.children,sl),[e.children]),n=rt(r=>zce(r,e.id,t));return n==null?null:A.createElement(nfe,{legendPayload:n})}function Efe(e){var{dataKey:t,nameKey:n,sectors:r,stroke:i,strokeWidth:o,fill:s,name:u,hide:d,tooltipType:f}=e;return{dataDefinedOnItem:r?.map(m=>m.tooltipPayload),positions:r?.map(m=>m.tooltipPosition),settings:{stroke:i,strokeWidth:o,fill:s,dataKey:t,nameKey:n,name:jf(u,t),hide:d,type:f,color:s,unit:""}}}var Afe=(e,t)=>e>t?"start":e<t?"end":"middle",Tfe=(e,t,n)=>typeof t=="function"?t(e):Br(t,n,n*.8),Ofe=(e,t,n)=>{var{top:r,left:i,width:o,height:s}=t,u=OD(o,s),d=i+Br(e.cx,o,o/2),f=r+Br(e.cy,s,s/2),m=Br(e.innerRadius,u,0),p=Tfe(n,e.outerRadius,u),b=e.maxRadius||Math.sqrt(o*o+s*s)/2;return{cx:d,cy:f,innerRadius:m,outerRadius:p,maxRadius:b}},jfe=(e,t)=>{var n=dr(t-e),r=Math.min(Math.abs(t-e),360);return n*r},Mfe=(e,t)=>{if(A.isValidElement(e))return A.cloneElement(e,t);if(typeof e=="function")return e(t);var n=Pe("recharts-pie-label-line",typeof e!="boolean"?e.className:"");return A.createElement(hS,ns({},t,{type:"linear",className:n}))},Pfe=(e,t,n)=>{if(A.isValidElement(e))return A.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),A.isValidElement(r)))return r;var i=Pe("recharts-pie-label-text",typeof e!="boolean"&&typeof e!="function"?e.className:"");return A.createElement(Vy,ns({},t,{alignmentBaseline:"middle",className:i}),r)};function Rfe(e){var{sectors:t,props:n,showLabels:r}=e,{label:i,labelLine:o,dataKey:s}=n;if(!r||!i||!t)return null;var u=os(n),d=cn(i,!1),f=cn(o,!1),m=typeof i=="object"&&"offsetRadius"in i&&i.offsetRadius||20,p=t.map((b,_)=>{var w=(b.startAngle+b.endAngle)/2,x=Gn(b.cx,b.cy,b.outerRadius+m,w),C=Mn(Mn(Mn(Mn({},u),b),{},{stroke:"none"},d),{},{index:_,textAnchor:Afe(x.x,b.cx)},x),E=Mn(Mn(Mn(Mn({},u),b),{},{fill:"none",stroke:b.fill},f),{},{index:_,points:[Gn(b.cx,b.cy,b.outerRadius,w),x],key:"line"});return A.createElement(Sr,{key:"label-".concat(b.startAngle,"-").concat(b.endAngle,"-").concat(b.midAngle,"-").concat(_)},o&&Mfe(o,E),Pfe(i,C,en(b,s)))});return A.createElement(Sr,{className:"recharts-pie-labels"},p)}function y7(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:i,showLabels:o}=e,s=rt(xl),{onMouseEnter:u,onClick:d,onMouseLeave:f}=i,m=DC(i,vfe),p=OC(u,i.dataKey),b=jC(f),_=MC(d,i.dataKey);return t==null?null:A.createElement(A.Fragment,null,t.map((w,x)=>{if(w?.startAngle===0&&w?.endAngle===0&&t.length!==1)return null;var C=n&&String(x)===s,E=s?r:null,j=C?n:E,O=Mn(Mn({},w),{},{stroke:w.stroke,tabIndex:-1,[ND]:x,[LD]:i.dataKey});return A.createElement(Sr,ns({tabIndex:-1,className:"recharts-pie-sector"},vy(m,w,x),{onMouseEnter:p(w,x),onMouseLeave:b(w,x),onClick:_(w,x),key:"sector-".concat(w?.startAngle,"-").concat(w?.endAngle,"-").concat(w.midAngle,"-").concat(x)}),A.createElement(h7,ns({option:j,isActive:C,shapeType:"sector"},O)))}),A.createElement(Rfe,{sectors:t,props:i,showLabels:o}))}function Nfe(e){var t,{pieSettings:n,displayedData:r,cells:i,offset:o}=e,{cornerRadius:s,startAngle:u,endAngle:d,dataKey:f,nameKey:m,tooltipType:p}=n,b=Math.abs(n.minAngle),_=jfe(u,d),w=Math.abs(_),x=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,C=r.filter($=>en($,f,0)!==0).length,E=(w>=360?C:C-1)*x,j=w-C*b-E,O=r.reduce(($,K)=>{var X=en(K,f,0);return $+(Je(X)?X:0)},0),N;if(O>0){var U;N=r.map(($,K)=>{var X=en($,f,0),oe=en($,m,K),ee=Ofe(n,o,$),J=(Je(X)?X:0)/O,ne,he=Mn(Mn({},$),i&&i[K]&&i[K].props);K?ne=U.endAngle+dr(_)*x*(X!==0?1:0):ne=u;var Q=ne+dr(_)*((X!==0?b:0)+J*j),se=(ne+Q)/2,Z=(ee.innerRadius+ee.outerRadius)/2,I=[{name:oe,value:X,payload:he,dataKey:f,type:p}],k=Gn(ee.cx,ee.cy,Z,se);return U=Mn(Mn(Mn(Mn({},n.presentationProps),{},{percent:J,cornerRadius:s,name:oe,tooltipPayload:I,midAngle:se,middleRadius:Z,tooltipPosition:k},he),ee),{},{value:en($,f),startAngle:ne,endAngle:Q,payload:he,paddingAngle:dr(_)*x}),U})}return N}function Lfe(e){var{props:t,previousSectorsRef:n}=e,{sectors:r,isAnimationActive:i,animationBegin:o,animationDuration:s,animationEasing:u,activeShape:d,inactiveShape:f,onAnimationStart:m,onAnimationEnd:p}=t,b=RC(t,"recharts-pie-"),_=n.current,[w,x]=A.useState(!0),C=A.useCallback(()=>{typeof p=="function"&&p(),x(!1)},[p]),E=A.useCallback(()=>{typeof m=="function"&&m(),x(!0)},[m]);return A.createElement(LC,{begin:o,duration:s,isActive:i,easing:u,onAnimationStart:E,onAnimationEnd:C,key:b},j=>{var O=[],N=r&&r[0],U=N.startAngle;return r.forEach(($,K)=>{var X=_&&_[K],oe=K>0?vl($,"paddingAngle",0):0;if(X){var ee=WO(X.endAngle-X.startAngle,$.endAngle-$.startAngle),J=Mn(Mn({},$),{},{startAngle:U+oe,endAngle:U+ee(j)+oe});O.push(J),U=J.endAngle}else{var{endAngle:ne,startAngle:he}=$,Q=WO(0,ne-he),se=Q(j),Z=Mn(Mn({},$),{},{startAngle:U+oe,endAngle:U+se+oe});O.push(Z),U=Z.endAngle}}),n.current=O,A.createElement(Sr,null,A.createElement(y7,{sectors:O,activeShape:d,inactiveShape:f,allOtherPieProps:t,showLabels:!w}))})}function Dfe(e){var{sectors:t,isAnimationActive:n,activeShape:r,inactiveShape:i}=e,o=A.useRef(null),s=o.current;return n&&t&&t.length&&(!s||s!==t)?A.createElement(Lfe,{props:e,previousSectorsRef:o}):A.createElement(y7,{sectors:t,activeShape:r,inactiveShape:i,allOtherPieProps:e,showLabels:!0})}function kfe(e){var{hide:t,className:n,rootTabIndex:r}=e,i=Pe("recharts-pie",n);return t?null:A.createElement(Sr,{tabIndex:r,className:i},A.createElement(Dfe,e))}var Ife={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:!Gu.isSsr,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff"};function Ufe(e){var{id:t}=e,n=DC(e,yfe),r=A.useMemo(()=>rm(e.children,sl),[e.children]),i=rt(o=>Bce(o,t,r));return A.createElement(A.Fragment,null,A.createElement(PC,{fn:Efe,args:Mn(Mn({},e),{},{sectors:i})}),A.createElement(kfe,ns({},n,{sectors:i})))}function P2(e){var t=ki(e,Ife),{id:n}=t,r=DC(t,bfe),i=os(r);return A.createElement(NC,{id:n,type:"pie"},o=>A.createElement(A.Fragment,null,A.createElement(mfe,{type:"pie",id:o,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:i}),A.createElement(Cfe,ns({},r,{id:o})),A.createElement(Ufe,ns({},r,{id:o})),r.children))}P2.displayName="Pie";var zfe=je([nr],e=>{if(e)return{top:e.top,bottom:e.bottom,left:e.left,right:e.right}}),Bfe=je([zfe,ss,ls],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),kC=()=>rt(Bfe),Ffe=()=>rt(Nle);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){$fe(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 $fe(e,t,n){return(t=Vfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vfe(e){var t=Hfe(e,"string");return typeof t=="symbol"?t:t+""}function Hfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qfe=e=>{var{point:t,childIndex:n,mainColor:r,activeDot:i,dataKey:o}=e;if(i===!1||t.x==null||t.y==null)return null;var s=uP(uP({index:n,dataKey:o,cx:t.x,cy:t.y,r:4,fill:r??"none",strokeWidth:2,stroke:"#fff",payload:t.payload,value:t.value},cn(i,!1)),eS(i)),u;return A.isValidElement(i)?u=A.cloneElement(i,s):typeof i=="function"?u=i(s):u=A.createElement(l7,s),A.createElement(Sr,{className:"recharts-active-dot"},u)};function Gfe(e){var{points:t,mainColor:n,activeDot:r,itemDataKey:i}=e,o=rt(xl),s=Ffe();if(t==null||s==null)return null;var u=t.find(d=>s.includes(d.payload));return dn(u)?null:qfe({point:u,childIndex:Number(o),mainColor:n,dataKey:i,activeDot:r})}var Yfe="Invariant failed";function Wfe(e,t){throw new Error(Yfe)}var Kfe=["x","y"];function R2(){return R2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},R2.apply(null,arguments)}function cP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function rh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cP(Object(n),!0).forEach(function(r){Zfe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Zfe(e,t,n){return(t=Xfe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xfe(e){var t=Qfe(e,"string");return typeof t=="symbol"?t:t+""}function Qfe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jfe(e,t){if(e==null)return{};var n,r,i=ede(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ede(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function tde(e,t){var{x:n,y:r}=e,i=Jfe(e,Kfe),o="".concat(n),s=parseInt(o,10),u="".concat(r),d=parseInt(u,10),f="".concat(t.height||i.height),m=parseInt(f,10),p="".concat(t.width||i.width),b=parseInt(p,10);return rh(rh(rh(rh(rh({},t),i),s?{x:s}:{}),d?{y:d}:{}),{},{height:m,width:b,name:t.name,radius:t.radius})}function b7(e){return A.createElement(h7,R2({shapeType:"rectangle",propTransformer:tde,activeClassName:"recharts-active-bar"},e))}var nde=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,i)=>{if(Je(t))return t;var o=Je(r)||dn(r);return o?t(r,i):(o||Wfe(),n)}},rde={},_7=Nt({name:"errorBars",initialState:rde,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(i=>i.dataKey!==r.dataKey||i.direction!==r.direction))}}}),{addErrorBar:oxe,removeErrorBar:sxe}=_7.actions,ide=_7.reducer,ade=["children"];function ode(e,t){if(e==null)return{};var n,r,i=sde(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var lde={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},ude=A.createContext(lde);function x7(e){var{children:t}=e,n=ode(e,ade);return A.createElement(ude.Provider,{value:n},t)}function IC(e,t){var n,r,i=rt(f=>cs(f,e)),o=rt(f=>jl(f,t)),s=(n=i?.allowDataOverflow)!==null&&n!==void 0?n:_i.allowDataOverflow,u=(r=o?.allowDataOverflow)!==null&&r!==void 0?r:xi.allowDataOverflow,d=s||u;return{needClip:d,needClipX:s,needClipY:u}}function w7(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,i=kC(),{needClipX:o,needClipY:s,needClip:u}=IC(t,n);if(!u)return null;var{x:d,y:f,width:m,height:p}=i;return A.createElement("clipPath",{id:"clipPath-".concat(r)},A.createElement("rect",{x:o?d:d-m/2,y:s?f:f-p/2,width:o?m:m*2,height:s?p:p*2}))}var cde=["onMouseEnter","onMouseLeave","onClick"],fde=["value","background","tooltipPosition"],dde=["id"],hde=["onMouseEnter","onClick","onMouseLeave"];function mf(){return mf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mf.apply(null,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 jr(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){mde(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 mde(e,t,n){return(t=pde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pde(e){var t=gde(e,"string");return typeof t=="symbol"?t:t+""}function gde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Pv(e,t){if(e==null)return{};var n,r,i=vde(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function vde(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var yde=e=>{var{dataKey:t,name:n,fill:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:jf(n,t),payload:e}]};function bde(e){var{dataKey:t,stroke:n,strokeWidth:r,fill:i,name:o,hide:s,unit:u}=e;return{dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:i,dataKey:t,nameKey:void 0,name:jf(o,t),hide:s,type:e.tooltipType,color:e.fill,unit:u}}}function _de(e){var t=rt(xl),{data:n,dataKey:r,background:i,allOtherBarProps:o}=e,{onMouseEnter:s,onMouseLeave:u,onClick:d}=o,f=Pv(o,cde),m=OC(s,r),p=jC(u),b=MC(d,r);if(!i||n==null)return null;var _=cn(i,!1);return A.createElement(A.Fragment,null,n.map((w,x)=>{var{value:C,background:E,tooltipPosition:j}=w,O=Pv(w,fde);if(!E)return null;var N=m(w,x),U=p(w,x),$=b(w,x),K=jr(jr(jr(jr(jr({option:i,isActive:String(x)===t},O),{},{fill:"#eee"},E),_),vy(f,w,x)),{},{onMouseEnter:N,onMouseLeave:U,onClick:$,dataKey:r,index:x,className:"recharts-bar-background-rectangle"});return A.createElement(b7,mf({key:"background-bar-".concat(x)},K))}))}function S7(e){var{data:t,props:n,showLabels:r}=e,i=os(n),{id:o}=i,s=Pv(i,dde),{shape:u,dataKey:d,activeBar:f}=n,m=rt(xl),p=rt(G8),{onMouseEnter:b,onClick:_,onMouseLeave:w}=n,x=Pv(n,hde),C=OC(b,d),E=jC(w),j=MC(_,d);return t?A.createElement(A.Fragment,null,t.map((O,N)=>{var U=f&&String(N)===m&&(p==null||d===p),$=U?f:u,K=jr(jr(jr({},s),O),{},{isActive:U,option:$,index:N,dataKey:d});return A.createElement(Sr,mf({className:"recharts-bar-rectangle"},vy(x,O,N),{onMouseEnter:C(O,N),onMouseLeave:E(O,N),onClick:j(O,N),key:"rectangle-".concat(O?.x,"-").concat(O?.y,"-").concat(O?.value,"-").concat(N)}),A.createElement(b7,K))}),r&&ll.renderCallByParent(n,t)):null}function xde(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:i,isAnimationActive:o,animationBegin:s,animationDuration:u,animationEasing:d,onAnimationEnd:f,onAnimationStart:m}=t,p=n.current,b=RC(t,"recharts-bar-"),[_,w]=A.useState(!1),x=A.useCallback(()=>{typeof f=="function"&&f(),w(!1)},[f]),C=A.useCallback(()=>{typeof m=="function"&&m(),w(!0)},[m]);return A.createElement(LC,{begin:s,duration:u,isActive:o,easing:d,onAnimationEnd:x,onAnimationStart:C,key:b},E=>{var j=E===1?r:r?.map((O,N)=>{var U=p&&p[N];if(U)return jr(jr({},O),{},{x:ba(U.x,O.x,E),y:ba(U.y,O.y,E),width:ba(U.width,O.width,E),height:ba(U.height,O.height,E)});if(i==="horizontal"){var $=ba(0,O.height,E);return jr(jr({},O),{},{y:O.y+O.height-$,height:$})}var K=ba(0,O.width,E);return jr(jr({},O),{},{width:K})});return E>0&&(n.current=j??null),j==null?null:A.createElement(Sr,null,A.createElement(S7,{props:t,data:j,showLabels:!_}))})}function wde(e){var{data:t,isAnimationActive:n}=e,r=A.useRef(null);return n&&t&&t.length&&(r.current==null||r.current!==t)?A.createElement(xde,{previousRectanglesRef:r,props:e}):A.createElement(S7,{props:e,data:t,showLabels:!0})}var C7=0,Sde=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:en(e,t)}};class Cde extends A.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:i,xAxisId:o,yAxisId:s,needClip:u,background:d,id:f}=this.props;if(t)return null;var m=Pe("recharts-bar",i),p=f;return A.createElement(Sr,{className:m,id:f},u&&A.createElement("defs",null,A.createElement(w7,{clipPathId:p,xAxisId:o,yAxisId:s})),A.createElement(Sr,{className:"recharts-bar-rectangles",clipPath:u?"url(#clipPath-".concat(p,")"):void 0},A.createElement(_de,{data:n,dataKey:r,background:d,allOtherBarProps:this.props}),A.createElement(wde,this.props)),this.props.children)}}var Ede={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",hide:!1,isAnimationActive:!Gu.isSsr,legendType:"rect",minPointSize:C7,xAxisId:0,yAxisId:0};function Ade(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:s,animationBegin:u,animationDuration:d,animationEasing:f,isAnimationActive:m}=e,{needClip:p}=IC(t,n),b=Ey(),_=Vr(),w=rm(e.children,sl),x=rt(j=>Jde(j,t,n,_,e.id,w));if(b!=="vertical"&&b!=="horizontal")return null;var C,E=x?.[0];return E==null||E.height==null||E.width==null?C=0:C=b==="vertical"?E.height/2:E.width/2,A.createElement(x7,{xAxisId:t,yAxisId:n,data:x,dataPointFormatter:Sde,errorBarOffset:C},A.createElement(Cde,mf({},e,{layout:b,needClip:p,data:x,xAxisId:t,yAxisId:n,hide:r,legendType:i,minPointSize:o,activeBar:s,animationBegin:u,animationDuration:d,animationEasing:f,isAnimationActive:m})))}function Tde(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:i,bandSize:o,xAxis:s,yAxis:u,xAxisTicks:d,yAxisTicks:f,stackedData:m,displayedData:p,offset:b,cells:_}=e,w=t==="horizontal"?u:s,x=m?w.scale.domain():null,C=wne({numericAxis:w});return p.map((E,j)=>{var O,N,U,$,K,X;m?O=gne(m[j],x):(O=en(E,n),Array.isArray(O)||(O=[C,O]));var oe=nde(r,C7)(O[1],j);if(t==="horizontal"){var ee,[J,ne]=[u.scale(O[0]),u.scale(O[1])];N=Zj({axis:s,ticks:d,bandSize:o,offset:i.offset,entry:E,index:j}),U=(ee=ne??J)!==null&&ee!==void 0?ee:void 0,$=i.size;var he=J-ne;if(K=Pi(he)?0:he,X={x:N,y:b.top,width:$,height:b.height},Math.abs(oe)>0&&Math.abs(K)<Math.abs(oe)){var Q=dr(K||oe)*(Math.abs(oe)-Math.abs(K));U-=Q,K+=Q}}else{var[se,Z]=[s.scale(O[0]),s.scale(O[1])];if(N=se,U=Zj({axis:u,ticks:f,bandSize:o,offset:i.offset,entry:E,index:j}),$=Z-se,K=i.size,X={x:b.left,y:U,width:b.width,height:K},Math.abs(oe)>0&&Math.abs($)<Math.abs(oe)){var I=dr($||oe)*(Math.abs(oe)-Math.abs($));$+=I}}if(N==null||U==null||$==null||K==null)return null;var k=jr(jr({},E),{},{x:N,y:U,width:$,height:K,value:m?O:O[1],payload:E,background:X,tooltipPosition:{x:N+$/2,y:U+K/2}},_&&_[j]&&_[j].props);return k}).filter(Boolean)}function Pg(e){var t=ki(e,Ede),n=Vr();return A.createElement(NC,{id:t.id,type:"bar"},r=>A.createElement(A.Fragment,null,A.createElement(p7,{legendPayload:yde(t)}),A.createElement(PC,{fn:bde,args:t}),A.createElement(v7,{type:"bar",id:r,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:xne(t.stackId),hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:n}),A.createElement(Ade,mf({},t,{id:r}))))}Pg.displayName="Bar";function dP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function ug(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dP(Object(n),!0).forEach(function(r){Ode(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ode(e,t,n){return(t=jde(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jde(e){var t=Mde(e,"string");return typeof t=="symbol"?t:t+""}function Mde(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Pde=(e,t)=>t,Rde=(e,t,n)=>n,Nde=(e,t,n,r)=>r,Lde=(e,t,n,r,i)=>i,pm=je([Iy,Lde],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),Dde=je([pm],e=>e?.maxBarSize),kde=(e,t,n,r,i,o)=>o,hP=(e,t,n)=>{var r=n??e;if(!dn(r))return Br(r,t,0)},Ide=je([Lt,Iy,Pde,Rde,Nde],(e,t,n,r,i)=>t.filter(o=>e==="horizontal"?o.xAxisId===n:o.yAxisId===r).filter(o=>o.isPanorama===i).filter(o=>o.hide===!1).filter(o=>o.type==="bar")),Ude=(e,t,n,r)=>{var i=Lt(e);return i==="horizontal"?C2(e,"yAxis",n,r):C2(e,"xAxis",t,r)},zde=(e,t,n)=>{var r=Lt(e);return r==="horizontal"?mM(e,"xAxis",t):mM(e,"yAxis",n)},Bde=(e,t,n)=>{var r={},i=e.filter(ky),o=e.filter(f=>f.stackId==null),s=i.reduce((f,m)=>(f[m.stackId]||(f[m.stackId]=[]),f[m.stackId].push(m),f),r),u=Object.entries(s).map(f=>{var[m,p]=f,b=p.map(w=>w.dataKey),_=hP(t,n,p[0].barSize);return{stackId:m,dataKeys:b,barSize:_}}),d=o.map(f=>{var m=[f.dataKey].filter(b=>b!=null),p=hP(t,n,f.barSize);return{stackId:void 0,dataKeys:m,barSize:p}});return[...u,...d]},Fde=je([Ide,Hoe,zde],Bde),$de=(e,t,n,r,i)=>{var o,s,u=pm(e,t,n,r,i);if(u!=null){var d=Lt(e),f=Yk(e),{maxBarSize:m}=u,p=dn(m)?f:m,b,_;return d==="horizontal"?(b=_l(e,"xAxis",t,r),_=bl(e,"xAxis",t,r)):(b=_l(e,"yAxis",n,r),_=bl(e,"yAxis",n,r)),(o=(s=Nh(b,_,!0))!==null&&s!==void 0?s:p)!==null&&o!==void 0?o:0}},E7=(e,t,n,r)=>{var i=Lt(e),o,s;return i==="horizontal"?(o=_l(e,"xAxis",t,r),s=bl(e,"xAxis",t,r)):(o=_l(e,"yAxis",n,r),s=bl(e,"yAxis",n,r)),Nh(o,s)};function Vde(e,t,n,r,i){var o=r.length;if(!(o<1)){var s=Br(e,n,0,!0),u,d=[];if(Ri(r[0].barSize)){var f=!1,m=n/o,p=r.reduce((E,j)=>E+(j.barSize||0),0);p+=(o-1)*s,p>=n&&(p-=(o-1)*s,s=0),p>=n&&m>0&&(f=!0,m*=.9,p=o*m);var b=(n-p)/2>>0,_={offset:b-s,size:0};u=r.reduce((E,j)=>{var O,N={stackId:j.stackId,dataKeys:j.dataKeys,position:{offset:_.offset+_.size+s,size:f?m:(O=j.barSize)!==null&&O!==void 0?O:0}},U=[...E,N];return _=U[U.length-1].position,U},d)}else{var w=Br(t,n,0,!0);n-2*w-(o-1)*s<=0&&(s=0);var x=(n-2*w-(o-1)*s)/o;x>1&&(x>>=0);var C=Ri(i)?Math.min(x,i):x;u=r.reduce((E,j,O)=>[...E,{stackId:j.stackId,dataKeys:j.dataKeys,position:{offset:w+(x+s)*O+(x-C)/2,size:C}}],d)}return u}}var Hde=(e,t,n,r,i,o,s)=>{var u=dn(s)?t:s,d=Vde(n,r,i!==o?i:o,e,u);return i!==o&&d!=null&&(d=d.map(f=>ug(ug({},f),{},{position:ug(ug({},f.position),{},{offset:f.position.offset-i/2})}))),d},qde=je([Fde,Yk,Voe,Wk,$de,E7,Dde],Hde),Gde=(e,t,n,r)=>_l(e,"xAxis",t,r),Yde=(e,t,n,r)=>_l(e,"yAxis",n,r),Wde=(e,t,n,r)=>bl(e,"xAxis",t,r),Kde=(e,t,n,r)=>bl(e,"yAxis",n,r),Zde=je([qde,pm],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),Xde=(e,t)=>{var n=WS(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var i=e[r];if(i){var{stackedData:o}=i;if(o)return o.find(s=>s.key===n)}}}},Qde=je([Ude,pm],Xde),Jde=je([nr,Gde,Yde,Wde,Kde,Zde,Lt,Ry,E7,Qde,pm,kde],(e,t,n,r,i,o,s,u,d,f,m,p)=>{var{chartData:b,dataStartIndex:_,dataEndIndex:w}=u;if(!(m==null||o==null||s!=="horizontal"&&s!=="vertical"||t==null||n==null||r==null||i==null||d==null)){var{data:x}=m,C;if(x!=null&&x.length>0?C=x:C=b?.slice(_,w+1),C!=null)return Tde({layout:s,barSettings:m,pos:o,bandSize:d,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,stackedData:f,displayedData:C,offset:e,cells:p})}}),A7=e=>{var{chartData:t}=e,n=Rn(),r=Vr();return A.useEffect(()=>r?()=>{}:(n(CM(t)),()=>{n(CM(void 0))}),[t,n,r]),null},mP={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},T7=Nt({name:"brush",initialState:mP,reducers:{setBrushSettings(e,t){return t.payload==null?mP:t.payload}}}),{setBrushSettings:lxe}=T7.actions,ehe=T7.reducer;function pP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pP(Object(n),!0).forEach(function(r){O7(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O7(e,t,n){return(t=the(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function the(e){var t=nhe(e,"string");return typeof t=="symbol"?t:t+""}function nhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var rhe=(e,t)=>{var{x:n,y:r}=e,{x:i,y:o}=t;return{x:Math.min(n,i),y:Math.min(r,o),width:Math.abs(i-n),height:Math.abs(o-r)}};class Hy{static create(t){return new Hy(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var i=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+i}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(t)+o}default:return this.scale(t)}if(n){var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+s}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],i=n[n.length-1];return r<=i?t>=r&&t<=i:t>=i&&t<=r}}O7(Hy,"EPS",1e-4);var ihe=e=>{var t=Object.keys(e).reduce((n,r)=>cg(cg({},n),{},{[r]:Hy.create(e[r])}),{});return cg(cg({},t),{},{apply(n){var{bandAware:r,position:i}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Object.fromEntries(Object.entries(n).map(o=>{var[s,u]=o;return[s,t[s].apply(u,{bandAware:r,position:i})]}))},isInRange(n){return Object.keys(n).every(r=>t[r].isInRange(n[r]))}})};function ahe(e){return(e%180+180)%180}var ohe=function(t){var{width:n,height:r}=t,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=ahe(i),s=o*Math.PI/180,u=Math.atan(r/n),d=s>u&&s<Math.PI-u?r/Math.sin(s):n/Math.cos(s);return Math.abs(d)},she={dots:[],areas:[],lines:[]},j7=Nt({name:"referenceElements",initialState:she,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=qo(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=qo(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=qo(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:uxe,removeDot:cxe,addArea:lhe,removeArea:uhe,addLine:fxe,removeLine:dxe}=j7.actions,che=j7.reducer,M7=A.createContext(void 0),fhe=e=>{var{children:t}=e,[n]=A.useState("".concat(Rh("recharts"),"-clip")),r=kC();if(r==null)return null;var{x:i,y:o,width:s,height:u}=r;return A.createElement(M7.Provider,{value:n},A.createElement("defs",null,A.createElement("clipPath",{id:n},A.createElement("rect",{x:i,y:o,height:u,width:s}))),t)},dhe=()=>A.useContext(M7);function gP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function vP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gP(Object(n),!0).forEach(function(r){UC(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function UC(e,t,n){return(t=hhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hhe(e){var t=mhe(e,"string");return typeof t=="symbol"?t:t+""}function mhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function N2(){return N2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N2.apply(null,arguments)}var phe=(e,t,n,r,i,o,s)=>{var{x1:u,x2:d,y1:f,y2:m}=s;if(i==null||o==null)return null;var p=ihe({x:i,y:o}),b={x:e?p.x.apply(u,{position:"start"}):p.x.rangeMin,y:n?p.y.apply(f,{position:"start"}):p.y.rangeMin},_={x:t?p.x.apply(d,{position:"end"}):p.x.rangeMax,y:r?p.y.apply(m,{position:"end"}):p.y.rangeMax};return s.ifOverflow==="discard"&&(!p.isInRange(b)||!p.isInRange(_))?null:rhe(b,_)},ghe=(e,t)=>{var n;return A.isValidElement(e)?n=A.cloneElement(e,t):typeof e=="function"?n=e(t):n=A.createElement(pS,N2({},t,{className:"recharts-reference-area-rect"})),n};function vhe(e){var t=Rn();return A.useEffect(()=>(t(lhe(e)),()=>{t(uhe(e))})),null}function yhe(e){var{x1:t,x2:n,y1:r,y2:i,className:o,shape:s,xAxisId:u,yAxisId:d}=e,f=dhe(),m=Vr(),p=rt(N=>yl(N,"xAxis",u,m)),b=rt(N=>yl(N,"yAxis",d,m));if(p==null||!b==null)return null;var _=oi(t),w=oi(n),x=oi(r),C=oi(i);if(!_&&!w&&!x&&!C&&!s)return null;var E=phe(_,w,x,C,p,b,e);if(!E&&!s)return null;var j=e.ifOverflow==="hidden",O=j?"url(#".concat(f,")"):void 0;return A.createElement(Sr,{className:Pe("recharts-reference-area",o)},ghe(s,vP(vP({clipPath:O},cn(e,!0)),E)),ii.renderCallByParent(e,E))}function bhe(e){return A.createElement(A.Fragment,null,A.createElement(vhe,{yAxisId:e.yAxisId,xAxisId:e.xAxisId,ifOverflow:e.ifOverflow,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2}),A.createElement(yhe,e))}class zC extends A.Component{render(){return A.createElement(bhe,this.props)}}UC(zC,"displayName","ReferenceArea");UC(zC,"defaultProps",{ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});function rx(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 P7(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 _he(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return ohe(r,n)}function xhe(e,t,n){var r=n==="width",{x:i,y:o,width:s,height:u}=e;return t===1?{start:r?i:o,end:r?i+s:o+u}:{start:r?i+s:o+u,end:r?i:o}}function Rv(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var o=n();return e*(t-e*o/2-r)>=0&&e*(t+e*o/2-i)<=0}function whe(e,t){return P7(e,t+1)}function She(e,t,n,r,i){for(var o=(r||[]).slice(),{start:s,end:u}=t,d=0,f=1,m=s,p=function(){var w=r?.[d];if(w===void 0)return{v:P7(r,f)};var x=d,C,E=()=>(C===void 0&&(C=n(w,x)),C),j=w.coordinate,O=d===0||Rv(e,j,E,m,u);O||(d=0,m=s,f+=1),O&&(m=j+e*(E()/2+i),d+=f)},b;f<=o.length;)if(b=p(),b)return b.v;return[]}function yP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Or(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yP(Object(n),!0).forEach(function(r){Che(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Che(e,t,n){return(t=Ehe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ehe(e){var t=Ahe(e,"string");return typeof t=="symbol"?t:t+""}function Ahe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function The(e,t,n,r,i){for(var o=(r||[]).slice(),s=o.length,{start:u}=t,{end:d}=t,f=function(b){var _=o[b],w,x=()=>(w===void 0&&(w=n(_,b)),w);if(b===s-1){var C=e*(_.coordinate+e*x()/2-d);o[b]=_=Or(Or({},_),{},{tickCoord:C>0?_.coordinate-C*e:_.coordinate})}else o[b]=_=Or(Or({},_),{},{tickCoord:_.coordinate});var E=Rv(e,_.tickCoord,x,u,d);E&&(d=_.tickCoord-e*(x()/2+i),o[b]=Or(Or({},_),{},{isShow:!0}))},m=s-1;m>=0;m--)f(m);return o}function Ohe(e,t,n,r,i,o){var s=(r||[]).slice(),u=s.length,{start:d,end:f}=t;if(o){var m=r[u-1],p=n(m,u-1),b=e*(m.coordinate+e*p/2-f);s[u-1]=m=Or(Or({},m),{},{tickCoord:b>0?m.coordinate-b*e:m.coordinate});var _=Rv(e,m.tickCoord,()=>p,d,f);_&&(f=m.tickCoord-e*(p/2+i),s[u-1]=Or(Or({},m),{},{isShow:!0}))}for(var w=o?u-1:u,x=function(j){var O=s[j],N,U=()=>(N===void 0&&(N=n(O,j)),N);if(j===0){var $=e*(O.coordinate-e*U()/2-d);s[j]=O=Or(Or({},O),{},{tickCoord:$<0?O.coordinate-$*e:O.coordinate})}else s[j]=O=Or(Or({},O),{},{tickCoord:O.coordinate});var K=Rv(e,O.tickCoord,U,d,f);K&&(d=O.tickCoord+e*(U()/2+i),s[j]=Or(Or({},O),{},{isShow:!0}))},C=0;C<w;C++)x(C);return s}function BC(e,t,n){var{tick:r,ticks:i,viewBox:o,minTickGap:s,orientation:u,interval:d,tickFormatter:f,unit:m,angle:p}=e;if(!i||!i.length||!r)return[];if(Je(d)||Gu.isSsr){var b;return(b=whe(i,Je(d)?d:0))!==null&&b!==void 0?b:[]}var _=[],w=u==="top"||u==="bottom"?"width":"height",x=m&&w==="width"?bh(m,{fontSize:t,letterSpacing:n}):{width:0,height:0},C=(O,N)=>{var U=typeof f=="function"?f(O.value,N):O.value;return w==="width"?_he(bh(U,{fontSize:t,letterSpacing:n}),x,p):bh(U,{fontSize:t,letterSpacing:n})[w]},E=i.length>=2?dr(i[1].coordinate-i[0].coordinate):1,j=xhe(o,E,w);return d==="equidistantPreserveStart"?She(E,j,C,i,s):(d==="preserveStart"||d==="preserveStartEnd"?_=Ohe(E,j,C,i,s,d==="preserveStartEnd"):_=The(E,j,C,i,s),_.filter(O=>O.isShow))}var jhe=["viewBox"],Mhe=["viewBox"];function Yc(){return Yc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Yc.apply(null,arguments)}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 er(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){FC(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 _P(e,t){if(e==null)return{};var n,r,i=Phe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Phe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function FC(e,t,n){return(t=Rhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rhe(e){var t=Nhe(e,"string");return typeof t=="symbol"?t:t+""}function Nhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Ml extends A.Component{constructor(t){super(t),this.tickRefs=A.createRef(),this.tickRefs.current=[],this.state={fontSize:"",letterSpacing:""}}shouldComponentUpdate(t,n){var{viewBox:r}=t,i=_P(t,jhe),o=this.props,{viewBox:s}=o,u=_P(o,Mhe);return!rx(r,s)||!rx(i,u)||!rx(n,this.state)}getTickLineCoord(t){var{x:n,y:r,width:i,height:o,orientation:s,tickSize:u,mirror:d,tickMargin:f}=this.props,m,p,b,_,w,x,C=d?-1:1,E=t.tickSize||u,j=Je(t.tickCoord)?t.tickCoord:t.coordinate;switch(s){case"top":m=p=t.coordinate,_=r+ +!d*o,b=_-C*E,x=b-C*f,w=j;break;case"left":b=_=t.coordinate,p=n+ +!d*i,m=p-C*E,w=m-C*f,x=j;break;case"right":b=_=t.coordinate,p=n+ +d*i,m=p+C*E,w=m+C*f,x=j;break;default:m=p=t.coordinate,_=r+ +d*o,b=_+C*E,x=b+C*f,w=j;break}return{line:{x1:m,y1:b,x2:p,y2:_},tick:{x:w,y:x}}}getTickTextAnchor(){var{orientation:t,mirror:n}=this.props,r;switch(t){case"left":r=n?"start":"end";break;case"right":r=n?"end":"start";break;default:r="middle";break}return r}getTickVerticalAnchor(){var{orientation:t,mirror:n}=this.props;switch(t){case"left":case"right":return"middle";case"top":return n?"start":"end";default:return n?"end":"start"}}renderAxisLine(){var{x:t,y:n,width:r,height:i,orientation:o,mirror:s,axisLine:u}=this.props,d=er(er(er({},cn(this.props,!1)),cn(u,!1)),{},{fill:"none"});if(o==="top"||o==="bottom"){var f=+(o==="top"&&!s||o==="bottom"&&s);d=er(er({},d),{},{x1:t,y1:n+f*i,x2:t+r,y2:n+f*i})}else{var m=+(o==="left"&&!s||o==="right"&&s);d=er(er({},d),{},{x1:t+m*r,y1:n,x2:t+m*r,y2:n+i})}return A.createElement("line",Yc({},d,{className:Pe("recharts-cartesian-axis-line",vl(u,"className"))}))}static renderTickItem(t,n,r){var i,o=Pe(n.className,"recharts-cartesian-axis-tick-value");if(A.isValidElement(t))i=A.cloneElement(t,er(er({},n),{},{className:o}));else if(typeof t=="function")i=t(er(er({},n),{},{className:o}));else{var s="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(s=Pe(s,t.className)),i=A.createElement(Vy,Yc({},n,{className:s}),r)}return i}renderTicks(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],{tickLine:i,stroke:o,tick:s,tickFormatter:u,unit:d,padding:f}=this.props,m=BC(er(er({},this.props),{},{ticks:r}),t,n),p=this.getTickTextAnchor(),b=this.getTickVerticalAnchor(),_=os(this.props),w=cn(s,!1),x=er(er({},_),{},{fill:"none"},cn(i,!1)),C=m.map((E,j)=>{var{line:O,tick:N}=this.getTickLineCoord(E),U=er(er(er(er({textAnchor:p,verticalAnchor:b},_),{},{stroke:"none",fill:o},w),N),{},{index:j,payload:E,visibleTicksCount:m.length,tickFormatter:u,padding:f});return A.createElement(Sr,Yc({className:"recharts-cartesian-axis-tick",key:"tick-".concat(E.value,"-").concat(E.coordinate,"-").concat(E.tickCoord)},vy(this.props,E,j)),i&&A.createElement("line",Yc({},x,O,{className:Pe("recharts-cartesian-axis-tick-line",vl(i,"className"))})),s&&Ml.renderTickItem(s,U,"".concat(typeof u=="function"?u(E.value,j):E.value).concat(d||"")))});return C.length>0?A.createElement("g",{className:"recharts-cartesian-axis-ticks"},C):null}render(){var{axisLine:t,width:n,height:r,className:i,hide:o}=this.props;if(o)return null;var{ticks:s}=this.props;return n!=null&&n<=0||r!=null&&r<=0?null:A.createElement(Sr,{className:Pe("recharts-cartesian-axis",i),ref:u=>{if(u){var d=u.getElementsByClassName("recharts-cartesian-axis-tick-value");this.tickRefs.current=Array.from(d);var f=d[0];if(f){var m=window.getComputedStyle(f).fontSize,p=window.getComputedStyle(f).letterSpacing;(m!==this.state.fontSize||p!==this.state.letterSpacing)&&this.setState({fontSize:window.getComputedStyle(f).fontSize,letterSpacing:window.getComputedStyle(f).letterSpacing})}}}},t&&this.renderAxisLine(),this.renderTicks(this.state.fontSize,this.state.letterSpacing,s),ii.renderCallByParent(this.props))}}FC(Ml,"displayName","CartesianAxis");FC(Ml,"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 Lhe=["x1","y1","x2","y2","key"],Dhe=["offset"],khe=["xAxisId","yAxisId"],Ihe=["xAxisId","yAxisId"];function xP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xP(Object(n),!0).forEach(function(r){Uhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Uhe(e,t,n){return(t=zhe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zhe(e){var t=Bhe(e,"string");return typeof t=="symbol"?t:t+""}function Bhe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Au(){return Au=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Au.apply(null,arguments)}function Nv(e,t){if(e==null)return{};var n,r,i=Fhe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Fhe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var $he=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:i,width:o,height:s,ry:u}=e;return A.createElement("rect",{x:r,y:i,ry:u,width:o,height:s,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function R7(e,t){var n;if(A.isValidElement(e))n=A.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var{x1:r,y1:i,x2:o,y2:s,key:u}=t,d=Nv(t,Lhe),f=os(d),{offset:m}=f,p=Nv(f,Dhe);n=A.createElement("line",Au({},p,{x1:r,y1:i,x2:o,y2:s,fill:"none",key:u}))}return n}function Vhe(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:s}=e,u=Nv(e,khe),d=i.map((f,m)=>{var p=Mr(Mr({},u),{},{x1:t,y1:f,x2:t+n,y2:f,key:"line-".concat(m),index:m});return R7(r,p)});return A.createElement("g",{className:"recharts-cartesian-grid-horizontal"},d)}function Hhe(e){var{y:t,height:n,vertical:r=!0,verticalPoints:i}=e;if(!r||!i||!i.length)return null;var{xAxisId:o,yAxisId:s}=e,u=Nv(e,Ihe),d=i.map((f,m)=>{var p=Mr(Mr({},u),{},{x1:f,y1:t,x2:f,y2:t+n,key:"line-".concat(m),index:m});return R7(r,p)});return A.createElement("g",{className:"recharts-cartesian-grid-vertical"},d)}function qhe(e){var{horizontalFill:t,fillOpacity:n,x:r,y:i,width:o,height:s,horizontalPoints:u,horizontal:d=!0}=e;if(!d||!t||!t.length)return null;var f=u.map(p=>Math.round(p+i-i)).sort((p,b)=>p-b);i!==f[0]&&f.unshift(0);var m=f.map((p,b)=>{var _=!f[b+1],w=_?i+s-p:f[b+1]-p;if(w<=0)return null;var x=b%t.length;return A.createElement("rect",{key:"react-".concat(b),y:p,x:r,height:w,width:o,stroke:"none",fill:t[x],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function Ghe(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:i,y:o,width:s,height:u,verticalPoints:d}=e;if(!t||!n||!n.length)return null;var f=d.map(p=>Math.round(p+i-i)).sort((p,b)=>p-b);i!==f[0]&&f.unshift(0);var m=f.map((p,b)=>{var _=!f[b+1],w=_?i+s-p:f[b+1]-p;if(w<=0)return null;var x=b%n.length;return A.createElement("rect",{key:"react-".concat(b),x:p,y:o,width:w,height:u,stroke:"none",fill:n[x],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return A.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var Yhe=(e,t)=>{var{xAxis:n,width:r,height:i,offset:o}=e;return MD(BC(Mr(Mr(Mr({},Ml.defaultProps),n),{},{ticks:PD(n),viewBox:{x:0,y:0,width:r,height:i}})),o.left,o.left+o.width,t)},Whe=(e,t)=>{var{yAxis:n,width:r,height:i,offset:o}=e;return MD(BC(Mr(Mr(Mr({},Ml.defaultProps),n),{},{ticks:PD(n),viewBox:{x:0,y:0,width:r,height:i}})),o.top,o.top+o.height,t)},Khe={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0};function $C(e){var t=ID(),n=UD(),r=kD(),i=Mr(Mr({},ki(e,Khe)),{},{x:Je(e.x)?e.x:r.left,y:Je(e.y)?e.y:r.top,width:Je(e.width)?e.width:r.width,height:Je(e.height)?e.height:r.height}),{xAxisId:o,yAxisId:s,x:u,y:d,width:f,height:m,syncWithTicks:p,horizontalValues:b,verticalValues:_}=i,w=Vr(),x=rt(oe=>pM(oe,"xAxis",o,w)),C=rt(oe=>pM(oe,"yAxis",s,w));if(!Je(f)||f<=0||!Je(m)||m<=0||!Je(u)||u!==+u||!Je(d)||d!==+d)return null;var E=i.verticalCoordinatesGenerator||Yhe,j=i.horizontalCoordinatesGenerator||Whe,{horizontalPoints:O,verticalPoints:N}=i;if((!O||!O.length)&&typeof j=="function"){var U=b&&b.length,$=j({yAxis:C?Mr(Mr({},C),{},{ticks:U?b:C.ticks}):void 0,width:t,height:n,offset:r},U?!0:p);yh(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof $,"]")),Array.isArray($)&&(O=$)}if((!N||!N.length)&&typeof E=="function"){var K=_&&_.length,X=E({xAxis:x?Mr(Mr({},x),{},{ticks:K?_:x.ticks}):void 0,width:t,height:n,offset:r},K?!0:p);yh(Array.isArray(X),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof X,"]")),Array.isArray(X)&&(N=X)}return A.createElement("g",{className:"recharts-cartesian-grid"},A.createElement($he,{fill:i.fill,fillOpacity:i.fillOpacity,x:i.x,y:i.y,width:i.width,height:i.height,ry:i.ry}),A.createElement(qhe,Au({},i,{horizontalPoints:O})),A.createElement(Ghe,Au({},i,{verticalPoints:N})),A.createElement(Vhe,Au({},i,{offset:r,horizontalPoints:O,xAxis:x,yAxis:C})),A.createElement(Hhe,Au({},i,{offset:r,verticalPoints:N,xAxis:x,yAxis:C})))}$C.displayName="CartesianGrid";var N7=(e,t,n,r)=>_l(e,"xAxis",t,r),L7=(e,t,n,r)=>bl(e,"xAxis",t,r),D7=(e,t,n,r)=>_l(e,"yAxis",n,r),k7=(e,t,n,r)=>bl(e,"yAxis",n,r),Zhe=je([Lt,N7,D7,L7,k7],(e,t,n,r,i)=>El(e,"xAxis")?Nh(t,r,!1):Nh(n,i,!1)),Xhe=(e,t,n,r,i)=>i;function Qhe(e){return e.type==="line"}var Jhe=je([Iy,Xhe],(e,t)=>e.filter(Qhe).find(n=>n.id===t)),eme=je([Lt,N7,D7,L7,k7,Jhe,Zhe,Ry],(e,t,n,r,i,o,s,u)=>{var{chartData:d,dataStartIndex:f,dataEndIndex:m}=u;if(!(o==null||t==null||n==null||r==null||i==null||r.length===0||i.length===0||s==null)){var{dataKey:p,data:b}=o,_;if(b!=null&&b.length>0?_=b:_=d?.slice(f,m+1),_!=null)return xme({layout:e,xAxis:t,yAxis:n,xAxisTicks:r,yAxisTicks:i,dataKey:p,bandSize:s,displayedData:_})}}),tme=["id"],nme=["type","layout","connectNulls","needClip"],rme=["activeDot","animateNewValues","animationBegin","animationDuration","animationEasing","connectNulls","dot","hide","isAnimationActive","label","legendType","xAxisId","yAxisId","id"];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 _a(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){ime(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 ime(e,t,n){return(t=ame(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ame(e){var t=ome(e,"string");return typeof t=="symbol"?t:t+""}function ome(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function VC(e,t){if(e==null)return{};var n,r,i=sme(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function sme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function $u(){return $u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$u.apply(null,arguments)}var lme=e=>{var{dataKey:t,name:n,stroke:r,legendType:i,hide:o}=e;return[{inactive:o,dataKey:t,type:i,color:r,value:jf(n,t),payload:e}]};function ume(e){var{dataKey:t,data:n,stroke:r,strokeWidth:i,fill:o,name:s,hide:u,unit:d}=e;return{dataDefinedOnItem:n,positions:void 0,settings:{stroke:r,strokeWidth:i,fill:o,dataKey:t,nameKey:void 0,name:jf(s,t),hide:u,type:e.tooltipType,color:e.stroke,unit:d}}}var I7=(e,t)=>"".concat(t,"px ").concat(e-t,"px");function cme(e,t){for(var n=e.length%2!==0?[...e,0]:e,r=[],i=0;i<t;++i)r=[...r,...n];return r}var fme=(e,t,n)=>{var r=n.reduce((p,b)=>p+b);if(!r)return I7(t,e);for(var i=Math.floor(e/r),o=e%r,s=t-e,u=[],d=0,f=0;d<n.length;f+=n[d],++d)if(f+n[d]>o){u=[...n.slice(0,d),o-f];break}var m=u.length%2===0?[0,s]:[s];return[...cme(n,i),...u,...m].map(p=>"".concat(p,"px")).join(", ")};function dme(e,t){var n;if(A.isValidElement(e))n=A.cloneElement(e,t);else if(typeof e=="function")n=e(t);else{var r=Pe("recharts-line-dot",typeof e!="boolean"?e.className:"");n=A.createElement(l7,$u({},t,{className:r}))}return n}function hme(e,t){return e==null?!1:t?!0:e.length===1}function mme(e){var{clipPathId:t,points:n,props:r}=e,{dot:i,dataKey:o,needClip:s}=r;if(!hme(n,i))return null;var{id:u}=r,d=VC(r,tme),f=QL(i),m=os(d),p=cn(i,!0),b=n.map((w,x)=>{var C=_a(_a(_a({key:"dot-".concat(x),r:3},m),p),{},{index:x,cx:w.x,cy:w.y,dataKey:o,value:w.value,payload:w.payload,points:n});return dme(i,C)}),_={clipPath:s?"url(#clipPath-".concat(f?"":"dots-").concat(t,")"):void 0};return A.createElement(Sr,$u({className:"recharts-line-dots",key:"dots"},_),b)}function L2(e){var{clipPathId:t,pathRef:n,points:r,strokeDasharray:i,props:o,showLabels:s}=e,{type:u,layout:d,connectNulls:f,needClip:m}=o,p=VC(o,nme),b=_a(_a({},cn(p,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:m?"url(#clipPath-".concat(t,")"):void 0,points:r,type:u,layout:d,connectNulls:f,strokeDasharray:i??o.strokeDasharray});return A.createElement(A.Fragment,null,r?.length>1&&A.createElement(hS,$u({},b,{pathRef:n})),A.createElement(mme,{points:r,clipPathId:t,props:o}),s&&ll.renderCallByParent(o,r))}function pme(e){try{return e&&e.getTotalLength&&e.getTotalLength()||0}catch{return 0}}function gme(e){var{clipPathId:t,props:n,pathRef:r,previousPointsRef:i,longestAnimatedLengthRef:o}=e,{points:s,strokeDasharray:u,isAnimationActive:d,animationBegin:f,animationDuration:m,animationEasing:p,animateNewValues:b,width:_,height:w,onAnimationEnd:x,onAnimationStart:C}=n,E=i.current,j=RC(n,"recharts-line-"),[O,N]=A.useState(!1),U=A.useCallback(()=>{typeof x=="function"&&x(),N(!1)},[x]),$=A.useCallback(()=>{typeof C=="function"&&C(),N(!0)},[C]),K=pme(r.current),X=o.current;return A.createElement(LC,{begin:f,duration:m,isActive:d,easing:p,onAnimationEnd:U,onAnimationStart:$,key:j},oe=>{var ee=ba(X,K+X,oe),J=Math.min(ee,K),ne;if(u){var he="".concat(u).split(/[,\s]+/gim).map(Z=>parseFloat(Z));ne=fme(J,K,he)}else ne=I7(K,J);if(E){var Q=E.length/s.length,se=oe===1?s:s.map((Z,I)=>{var k=Math.floor(I*Q);if(E[k]){var z=E[k];return _a(_a({},Z),{},{x:ba(z.x,Z.x,oe),y:ba(z.y,Z.y,oe)})}return b?_a(_a({},Z),{},{x:ba(_*2,Z.x,oe),y:ba(w/2,Z.y,oe)}):_a(_a({},Z),{},{x:Z.x,y:Z.y})});return i.current=se,A.createElement(L2,{props:n,points:se,clipPathId:t,pathRef:r,showLabels:!O,strokeDasharray:ne})}return oe>0&&K>0&&(i.current=s,o.current=J),A.createElement(L2,{props:n,points:s,clipPathId:t,pathRef:r,showLabels:!O,strokeDasharray:ne})})}function vme(e){var{clipPathId:t,props:n}=e,{points:r,isAnimationActive:i}=n,o=A.useRef(null),s=A.useRef(0),u=A.useRef(null),d=o.current;return i&&r&&r.length&&d!==r?A.createElement(gme,{props:n,clipPathId:t,previousPointsRef:o,longestAnimatedLengthRef:s,pathRef:u}):A.createElement(L2,{props:n,points:r,clipPathId:t,pathRef:u,showLabels:!0})}var yme=(e,t)=>({x:e.x,y:e.y,value:e.value,errorVal:en(e.payload,t)});class bme extends A.Component{render(){var t,{hide:n,dot:r,points:i,className:o,xAxisId:s,yAxisId:u,top:d,left:f,width:m,height:p,id:b,needClip:_}=this.props;if(n)return null;var w=Pe("recharts-line",o),x=b,{r:C=3,strokeWidth:E=2}=(t=cn(r,!1))!==null&&t!==void 0?t:{r:3,strokeWidth:2},j=QL(r),O=C*2+E;return A.createElement(A.Fragment,null,A.createElement(Sr,{className:w},_&&A.createElement("defs",null,A.createElement(w7,{clipPathId:x,xAxisId:s,yAxisId:u}),!j&&A.createElement("clipPath",{id:"clipPath-dots-".concat(x)},A.createElement("rect",{x:f-O/2,y:d-O/2,width:m+O,height:p+O}))),A.createElement(vme,{props:this.props,clipPathId:x}),A.createElement(x7,{xAxisId:s,yAxisId:u,data:i,dataPointFormatter:yme,errorBarOffset:0},this.props.children)),A.createElement(Gfe,{activeDot:this.props.activeDot,points:i,mainColor:this.props.stroke,itemDataKey:this.props.dataKey}))}}var U7={activeDot:!0,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",connectNulls:!1,dot:!0,fill:"#fff",hide:!1,isAnimationActive:!Gu.isSsr,label:!1,legendType:"line",stroke:"#3182bd",strokeWidth:1,xAxisId:0,yAxisId:0};function _me(e){var t=ki(e,U7),{activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:s,connectNulls:u,dot:d,hide:f,isAnimationActive:m,label:p,legendType:b,xAxisId:_,yAxisId:w,id:x}=t,C=VC(t,rme),{needClip:E}=IC(_,w),j=kC(),O=Ey(),N=Vr(),U=rt(ee=>eme(ee,_,w,N,x));if(O!=="horizontal"&&O!=="vertical"||U==null||j==null)return null;var{height:$,width:K,x:X,y:oe}=j;return A.createElement(bme,$u({},C,{id:x,connectNulls:u,dot:d,activeDot:n,animateNewValues:r,animationBegin:i,animationDuration:o,animationEasing:s,isAnimationActive:m,hide:f,label:p,legendType:b,xAxisId:_,yAxisId:w,points:U,layout:O,height:$,width:K,left:X,top:oe,needClip:E}))}function xme(e){var{layout:t,xAxis:n,yAxis:r,xAxisTicks:i,yAxisTicks:o,dataKey:s,bandSize:u,displayedData:d}=e;return d.map((f,m)=>{var p=en(f,s);if(t==="horizontal"){var b=Kj({axis:n,ticks:i,bandSize:u,entry:f,index:m}),_=dn(p)?null:r.scale(p);return{x:b,y:_,value:p,payload:f}}var w=dn(p)?null:n.scale(p),x=Kj({axis:r,ticks:o,bandSize:u,entry:f,index:m});return w==null||x==null?null:{x:w,y:x,value:p,payload:f}}).filter(Boolean)}function z7(e){var t=ki(e,U7),n=Vr();return A.createElement(NC,{id:t.id,type:"line"},r=>A.createElement(A.Fragment,null,A.createElement(p7,{legendPayload:lme(t)}),A.createElement(PC,{fn:ume,args:t}),A.createElement(v7,{type:"line",id:r,data:t.data,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,hide:t.hide,isPanorama:n}),A.createElement(_me,$u({},t,{id:r}))))}z7.displayName="Line";function SP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function CP(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?SP(Object(n),!0).forEach(function(r){wme(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wme(e,t,n){return(t=Sme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sme(e){var t=Cme(e,"string");return typeof t=="symbol"?t:t+""}function Cme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Eme={xAxis:{},yAxis:{},zAxis:{}},B7=Nt({name:"cartesianAxis",initialState:Eme,reducers:{addXAxis(e,t){e.xAxis[t.payload.id]=t.payload},removeXAxis(e,t){delete e.xAxis[t.payload.id]},addYAxis(e,t){e.yAxis[t.payload.id]=t.payload},removeYAxis(e,t){delete e.yAxis[t.payload.id]},addZAxis(e,t){e.zAxis[t.payload.id]=t.payload},removeZAxis(e,t){delete e.zAxis[t.payload.id]},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload;e.yAxis[n]&&(e.yAxis[n]=CP(CP({},e.yAxis[n]),{},{width:r}))}}}),{addXAxis:Ame,removeXAxis:Tme,addYAxis:Ome,removeYAxis:jme,addZAxis:hxe,removeZAxis:mxe,updateYAxisWidth:Mme}=B7.actions,Pme=B7.reducer,Rme=["children"],Nme=["dangerouslySetInnerHTML","ticks"];function F7(e,t,n){return(t=Lme(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lme(e){var t=Dme(e,"string");return typeof t=="symbol"?t:t+""}function Dme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function D2(){return D2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D2.apply(null,arguments)}function $7(e,t){if(e==null)return{};var n,r,i=kme(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Ime(e){var t=Rn(),n=A.useMemo(()=>{var{children:o}=e,s=$7(e,Rme);return s},[e]),r=rt(o=>cs(o,n.id)),i=n===r;return A.useEffect(()=>(t(Ame(n)),()=>{t(Tme(n))}),[n,t]),i?e.children:null}var Ume=e=>{var{xAxisId:t,className:n}=e,r=rt(DD),i=Vr(),o="xAxis",s=rt(_=>yl(_,o,t,i)),u=rt(_=>T8(_,o,t,i)),d=rt(_=>S8(_,t)),f=rt(_=>Lse(_,t));if(d==null||f==null)return null;var{dangerouslySetInnerHTML:m,ticks:p}=e,b=$7(e,Nme);return A.createElement(Ml,D2({},b,{scale:s,x:f.x,y:f.y,width:d.width,height:d.height,className:Pe("recharts-".concat(o," ").concat(o),n),viewBox:r,ticks:u}))},zme=e=>{var t,n,r,i,o;return A.createElement(Ime,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.xAxisId,scale:e.scale,type:e.type,padding:e.padding,allowDataOverflow:e.allowDataOverflow,domain:e.domain,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,height:e.height,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(o=e.tick)!==null&&o!==void 0?o:!0,tickFormatter:e.tickFormatter},A.createElement(Ume,e))};class qy extends A.Component{render(){return A.createElement(zme,this.props)}}F7(qy,"displayName","XAxis");F7(qy,"defaultProps",{allowDataOverflow:_i.allowDataOverflow,allowDecimals:_i.allowDecimals,allowDuplicatedCategory:_i.allowDuplicatedCategory,height:_i.height,hide:!1,mirror:_i.mirror,orientation:_i.orientation,padding:_i.padding,reversed:_i.reversed,scale:_i.scale,tickCount:_i.tickCount,type:_i.type,xAxisId:0});var Bme=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:i=0,tickMargin:o=0}=e,s=0;if(t){t.forEach(m=>{if(m){var p=m.getBoundingClientRect();p.width>s&&(s=p.width)}});var u=n?n.getBoundingClientRect().width:0,d=i+o,f=s+d+u+(n?r:0);return Math.round(f)}return 0},Fme=["dangerouslySetInnerHTML","ticks"];function V7(e,t,n){return(t=$me(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $me(e){var t=Vme(e,"string");return typeof t=="symbol"?t:t+""}function Vme(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function k2(){return k2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},k2.apply(null,arguments)}function Hme(e,t){if(e==null)return{};var n,r,i=qme(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function qme(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Gme(e){var t=Rn();return A.useEffect(()=>(t(Ome(e)),()=>{t(jme(e))}),[e,t]),null}var Yme=e=>{var t,{yAxisId:n,className:r,width:i,label:o}=e,s=A.useRef(null),u=A.useRef(null),d=rt(DD),f=Vr(),m=Rn(),p="yAxis",b=rt(O=>yl(O,p,n,f)),_=rt(O=>C8(O,n)),w=rt(O=>Dse(O,n)),x=rt(O=>T8(O,p,n,f));if(A.useLayoutEffect(()=>{var O;if(!(i!=="auto"||!_||SC(o)||A.isValidElement(o))){var N=s.current,U=N==null||(O=N.tickRefs)===null||O===void 0?void 0:O.current,{tickSize:$,tickMargin:K}=N.props,X=Bme({ticks:U,label:u.current,labelGapWithTick:5,tickSize:$,tickMargin:K});Math.round(_.width)!==Math.round(X)&&m(Mme({id:n,width:X}))}},[s,s==null||(t=s.current)===null||t===void 0||(t=t.tickRefs)===null||t===void 0?void 0:t.current,_?.width,_,m,o,n,i]),_==null||w==null)return null;var{dangerouslySetInnerHTML:C,ticks:E}=e,j=Hme(e,Fme);return A.createElement(Ml,k2({},j,{ref:s,labelRef:u,scale:b,x:w.x,y:w.y,width:_.width,height:_.height,className:Pe("recharts-".concat(p," ").concat(p),r),viewBox:d,ticks:x}))},Wme=e=>{var t,n,r,i,o;return A.createElement(A.Fragment,null,A.createElement(Gme,{interval:(t=e.interval)!==null&&t!==void 0?t:"preserveEnd",id:e.yAxisId,scale:e.scale,type:e.type,domain:e.domain,allowDataOverflow:e.allowDataOverflow,dataKey:e.dataKey,allowDuplicatedCategory:e.allowDuplicatedCategory,allowDecimals:e.allowDecimals,tickCount:e.tickCount,padding:e.padding,includeHidden:(n=e.includeHidden)!==null&&n!==void 0?n:!1,reversed:e.reversed,ticks:e.ticks,width:e.width,orientation:e.orientation,mirror:e.mirror,hide:e.hide,unit:e.unit,name:e.name,angle:(r=e.angle)!==null&&r!==void 0?r:0,minTickGap:(i=e.minTickGap)!==null&&i!==void 0?i:5,tick:(o=e.tick)!==null&&o!==void 0?o:!0,tickFormatter:e.tickFormatter}),A.createElement(Yme,e))},Kme={allowDataOverflow:xi.allowDataOverflow,allowDecimals:xi.allowDecimals,allowDuplicatedCategory:xi.allowDuplicatedCategory,hide:!1,mirror:xi.mirror,orientation:xi.orientation,padding:xi.padding,reversed:xi.reversed,scale:xi.scale,tickCount:xi.tickCount,type:xi.type,width:xi.width,yAxisId:0};class Gy extends A.Component{render(){return A.createElement(Wme,this.props)}}V7(Gy,"displayName","YAxis");V7(Gy,"defaultProps",Kme);var Zme=(e,t)=>t,HC=je([Zme,Lt,e8,ir,$8,fs,Ble,nr],qle),qC=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},H7=fn("mouseClick"),q7=em();q7.startListening({actionCreator:H7,effect:(e,t)=>{var n=e.payload,r=HC(t.getState(),qC(n));r?.activeIndex!=null&&t.dispatch(Wse({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var I2=fn("mouseMove"),G7=em();G7.startListening({actionCreator:I2,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=dC(r,r.tooltip.settings.shared),o=HC(r,qC(n));i==="axis"&&(o?.activeIndex!=null?t.dispatch(D8({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate})):t.dispatch(L8()))}});function Xme(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":t}var EP={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index"},Y7=Nt({name:"rootProps",initialState:EP,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:EP.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className}}}),Qme=Y7.reducer,{updateOptions:Jme}=Y7.actions,W7=Nt({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:epe}=W7.actions,tpe=W7.reducer,K7=fn("keyDown"),Z7=fn("focus"),GC=em();GC.startListening({actionCreator:K7,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip,o=e.payload;if(!(o!=="ArrowRight"&&o!=="ArrowLeft"&&o!=="Enter")){var s=Number(hC(i,If(n))),u=fs(n);if(o==="Enter"){var d=Tv(n,"axis","hover",String(i.index));t.dispatch(A2({active:!i.active,activeIndex:i.index,activeDataKey:i.dataKey,activeCoordinate:d}));return}var f=zse(n),m=f==="left-to-right"?1:-1,p=o==="ArrowRight"?1:-1,b=s+p*m;if(!(u==null||b>=u.length||b<0)){var _=Tv(n,"axis","hover",String(b));t.dispatch(A2({active:!0,activeIndex:b.toString(),activeDataKey:void 0,activeCoordinate:_}))}}}}});GC.startListening({actionCreator:Z7,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:i}=n.tooltip;if(!i.active&&i.index==null){var o="0",s=Tv(n,"axis","hover",String(o));t.dispatch(A2({activeDataKey:void 0,active:!0,activeIndex:o,activeCoordinate:s}))}}}});var Ji=fn("externalEvent"),X7=em();X7.startListening({actionCreator:Ji,effect:(e,t)=>{if(e.payload.handler!=null){var n=t.getState(),r={activeCoordinate:Mle(n),activeDataKey:G8(n),activeIndex:xl(n),activeLabel:q8(n),activeTooltipIndex:xl(n),isTooltipActive:Ple(n)};e.payload.handler(r,e.payload.reactEvent)}}});var npe=je([kf],e=>e.tooltipItemPayloads),rpe=je([npe,hm,(e,t,n)=>t,(e,t,n)=>n],(e,t,n,r)=>{var i=e.find(u=>u.settings.dataKey===r);if(i!=null){var{positions:o}=i;if(o!=null){var s=t(o,n);return s}}}),Q7=fn("touchMove"),J7=em();J7.startListening({actionCreator:Q7,effect:(e,t)=>{var n=e.payload,r=t.getState(),i=dC(r,r.tooltip.settings.shared);if(i==="axis"){var o=HC(r,qC({clientX:n.touches[0].clientX,clientY:n.touches[0].clientY,currentTarget:n.currentTarget}));o?.activeIndex!=null&&t.dispatch(D8({activeIndex:o.activeIndex,activeDataKey:void 0,activeCoordinate:o.activeCoordinate}))}else if(i==="item"){var s,u=n.touches[0],d=document.elementFromPoint(u.clientX,u.clientY);if(!d||!d.getAttribute)return;var f=d.getAttribute(ND),m=(s=d.getAttribute(LD))!==null&&s!==void 0?s:void 0,p=rpe(t.getState(),f,m);t.dispatch(N8({activeDataKey:m,activeIndex:f,activeCoordinate:p}))}}});var ipe=ly({brush:ehe,cartesianAxis:Pme,chartData:sue,errorBars:ide,graphicalItems:hfe,layout:ene,legend:Une,options:nue,polarAxis:Nce,polarOptions:tpe,referenceElements:che,rootProps:Qme,tooltip:Kse}),ape=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return Fw({reducer:ipe,preloadedState:t,middleware:r=>r({serializableCheck:!1}).concat([q7.middleware,G7.middleware,GC.middleware,X7.middleware,J7.middleware]),devTools:{serialize:{replacer:Xme},name:"recharts-".concat(n)}})};function eI(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,i=Vr(),o=A.useRef(null);if(i)return n;o.current==null&&(o.current=ape(t,r));var s=uS;return A.createElement(K2,{context:s,store:o.current},n)}function tI(e){var{layout:t,width:n,height:r,margin:i}=e,o=Rn(),s=Vr();return A.useEffect(()=>{s||(o(Xte(t)),o(Qte({width:n,height:r})),o(Zte(i)))},[o,s,t,n,r,i]),null}function nI(e){var t=Rn();return A.useEffect(()=>{t(Jme(e))},[t,e]),null}var ope=["children"];function spe(e,t){if(e==null)return{};var n,r,i=lpe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function lpe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Lv(){return Lv=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lv.apply(null,arguments)}var upe={width:"100%",height:"100%"},cpe=A.forwardRef((e,t)=>{var n=ID(),r=UD(),i=$D();if(!uf(n)||!uf(r))return null;var{children:o,otherAttributes:s,title:u,desc:d}=e,f,m;return typeof s.tabIndex=="number"?f=s.tabIndex:f=i?0:void 0,typeof s.role=="string"?m=s.role:m=i?"application":void 0,A.createElement(JL,Lv({},s,{title:u,desc:d,role:m,tabIndex:f,width:n,height:r,style:upe,ref:t}),o)}),fpe=e=>{var{children:t}=e,n=rt(Cy);if(!n)return null;var{width:r,height:i,y:o,x:s}=n;return A.createElement(JL,{width:r,height:i,x:s,y:o},t)},AP=A.forwardRef((e,t)=>{var{children:n}=e,r=spe(e,ope),i=Vr();return i?A.createElement(fpe,null,n):A.createElement(cpe,Lv({ref:t},r),n)});function dpe(){var e=Rn(),[t,n]=A.useState(null),r=rt(jne);return A.useEffect(()=>{if(t!=null){var i=t.getBoundingClientRect(),o=i.width/t.offsetWidth;Ri(o)&&o!==r&&e(Jte(o))}},[t,e,r]),n}function TP(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function hpe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TP(Object(n),!0).forEach(function(r){mpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TP(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mpe(e,t,n){return(t=ppe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ppe(e){var t=gpe(e,"string");return typeof t=="symbol"?t:t+""}function gpe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var vpe=A.forwardRef((e,t)=>{var{children:n,className:r,height:i,onClick:o,onContextMenu:s,onDoubleClick:u,onMouseDown:d,onMouseEnter:f,onMouseLeave:m,onMouseMove:p,onMouseUp:b,onTouchEnd:_,onTouchMove:w,onTouchStart:x,style:C,width:E}=e,j=Rn(),[O,N]=A.useState(null),[U,$]=A.useState(null);cue();var K=dpe(),X=A.useCallback(G=>{K(G),typeof t=="function"&&t(G),N(G),$(G)},[K,t,N,$]),oe=A.useCallback(G=>{j(H7(G)),j(Ji({handler:o,reactEvent:G}))},[j,o]),ee=A.useCallback(G=>{j(I2(G)),j(Ji({handler:f,reactEvent:G}))},[j,f]),J=A.useCallback(G=>{j(L8()),j(Ji({handler:m,reactEvent:G}))},[j,m]),ne=A.useCallback(G=>{j(I2(G)),j(Ji({handler:p,reactEvent:G}))},[j,p]),he=A.useCallback(()=>{j(Z7())},[j]),Q=A.useCallback(G=>{j(K7(G.key))},[j]),se=A.useCallback(G=>{j(Ji({handler:s,reactEvent:G}))},[j,s]),Z=A.useCallback(G=>{j(Ji({handler:u,reactEvent:G}))},[j,u]),I=A.useCallback(G=>{j(Ji({handler:d,reactEvent:G}))},[j,d]),k=A.useCallback(G=>{j(Ji({handler:b,reactEvent:G}))},[j,b]),z=A.useCallback(G=>{j(Ji({handler:x,reactEvent:G}))},[j,x]),F=A.useCallback(G=>{j(Q7(G)),j(Ji({handler:w,reactEvent:G}))},[j,w]),P=A.useCallback(G=>{j(Ji({handler:_,reactEvent:G}))},[j,_]);return A.createElement(Q8.Provider,{value:O},A.createElement(wee.Provider,{value:U},A.createElement("div",{className:Pe("recharts-wrapper",r),style:hpe({position:"relative",cursor:"default",width:E,height:i},C),onClick:oe,onContextMenu:se,onDoubleClick:Z,onFocus:he,onKeyDown:Q,onMouseDown:I,onMouseEnter:ee,onMouseLeave:J,onMouseMove:ne,onMouseUp:k,onTouchEnd:P,onTouchMove:F,onTouchStart:z,ref:X},n)))}),ype=["children","className","width","height","style","compact","title","desc"];function bpe(e,t){if(e==null)return{};var n,r,i=_pe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function _pe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var rI=A.forwardRef((e,t)=>{var{children:n,className:r,width:i,height:o,style:s,compact:u,title:d,desc:f}=e,m=bpe(e,ype),p=os(m);return u?A.createElement(AP,{otherAttributes:p,title:d,desc:f},n):A.createElement(vpe,{className:r,style:s,width:i,height:o,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},A.createElement(AP,{otherAttributes:p,title:d,desc:f,ref:t},A.createElement(fhe,null,n)))}),xpe=["width","height"];function U2(){return U2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U2.apply(null,arguments)}function wpe(e,t){if(e==null)return{};var n,r,i=Spe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Spe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Cpe={top:5,right:5,bottom:5,left:5},Epe={accessibilityLayer:!0,layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Cpe,reverseStackOrder:!1,syncMethod:"index"},iI=A.forwardRef(function(t,n){var r,i=ki(t.categoricalChartProps,Epe),{width:o,height:s}=i,u=wpe(i,xpe);if(!uf(o)||!uf(s))return null;var{chartName:d,defaultTooltipEventType:f,validateTooltipEventTypes:m,tooltipPayloadSearcher:p,categoricalChartProps:b}=t,_={chartName:d,defaultTooltipEventType:f,validateTooltipEventTypes:m,tooltipPayloadSearcher:p,eventEmitter:void 0};return A.createElement(eI,{preloadedState:{options:_},reduxStoreName:(r=b.id)!==null&&r!==void 0?r:d},A.createElement(A7,{chartData:b.data}),A.createElement(tI,{width:o,height:s,layout:i.layout,margin:i.margin}),A.createElement(nI,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(rI,U2({},u,{width:o,height:s,ref:n})))}),Ape=["axis"],Tpe=A.forwardRef((e,t)=>A.createElement(iI,{chartName:"LineChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Ape,tooltipPayloadSearcher:xC,categoricalChartProps:e,ref:t}));function Ope(e){var t=Rn();return A.useEffect(()=>{t(epe(e))},[t,e]),null}var jpe=["width","height","layout"];function z2(){return z2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z2.apply(null,arguments)}function Mpe(e,t){if(e==null)return{};var n,r,i=Ppe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Ppe(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Rpe={top:5,right:5,bottom:5,left:5},Npe={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:Rpe,reverseStackOrder:!1,syncMethod:"index",layout:"radial"},Lpe=A.forwardRef(function(t,n){var r,i=ki(t.categoricalChartProps,Npe),{width:o,height:s,layout:u}=i,d=Mpe(i,jpe);if(!uf(o)||!uf(s))return null;var{chartName:f,defaultTooltipEventType:m,validateTooltipEventTypes:p,tooltipPayloadSearcher:b}=t,_={chartName:f,defaultTooltipEventType:m,validateTooltipEventTypes:p,tooltipPayloadSearcher:b,eventEmitter:void 0};return A.createElement(eI,{preloadedState:{options:_},reduxStoreName:(r=i.id)!==null&&r!==void 0?r:f},A.createElement(A7,{chartData:i.data}),A.createElement(tI,{width:o,height:s,layout:u,margin:i.margin}),A.createElement(nI,{accessibilityLayer:i.accessibilityLayer,barCategoryGap:i.barCategoryGap,maxBarSize:i.maxBarSize,stackOffset:i.stackOffset,barGap:i.barGap,barSize:i.barSize,syncId:i.syncId,syncMethod:i.syncMethod,className:i.className}),A.createElement(Ope,{cx:i.cx,cy:i.cy,startAngle:i.startAngle,endAngle:i.endAngle,innerRadius:i.innerRadius,outerRadius:i.outerRadius}),A.createElement(rI,z2({width:o,height:s},d,{ref:n})))}),Dpe=["item"],kpe={layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},Ipe=A.forwardRef((e,t)=>{var n=ki(e,kpe);return A.createElement(Lpe,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:Dpe,tooltipPayloadSearcher:xC,categoricalChartProps:n,ref:t})}),Upe=["axis"],zpe=A.forwardRef((e,t)=>A.createElement(iI,{chartName:"ComposedChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:Upe,tooltipPayloadSearcher:xC,categoricalChartProps:e,ref:t}));function aI(e,t){const n=A.useRef(t);A.useEffect(function(){t!==n.current&&e.attributionControl!=null&&(n.current!=null&&e.attributionControl.removeAttribution(n.current),t!=null&&e.attributionControl.addAttribution(t)),n.current=t},[e,t])}const Bpe=1;function Fpe(e){return Object.freeze({__version:Bpe,map:e})}function $pe(e,t){return Object.freeze({...e,...t})}const YC=A.createContext(null);function oI(){const e=A.use(YC);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function Vpe(e){function t(n,r){const{instance:i,context:o}=e(n).current;A.useImperativeHandle(r,()=>i);const{children:s}=n;return s==null?null:tf.createElement(YC,{value:o},s)}return A.forwardRef(t)}function Hpe(e){function t(n,r){const[i,o]=A.useState(!1),{instance:s}=e(n,o).current;A.useImperativeHandle(r,()=>s),A.useEffect(function(){i&&s.update()},[s,i,n.children]);const u=s._contentNode;return u?qh.createPortal(n.children,u):null}return A.forwardRef(t)}function qpe(e){function t(n,r){const{instance:i}=e(n).current;return A.useImperativeHandle(r,()=>i),null}return A.forwardRef(t)}function sI(e,t){const n=A.useRef(void 0);A.useEffect(function(){return t!=null&&e.instance.on(t),n.current=t,function(){n.current!=null&&e.instance.off(n.current),n.current=null}},[e,t])}function WC(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function Gpe(e,t){return function(r,i){const o=oI(),s=e(WC(r,o),o);return aI(o.map,r.attribution),sI(s.current,r.eventHandlers),t(s.current,o,r,i),s}}var fh={exports:{}};/* @preserve
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
*/var Ype=fh.exports,OP;function Wpe(){return OP||(OP=1,function(e,t){(function(n,r){r(t)})(Ype,function(n){var r="1.9.4";function i(c){var g,S,R,V;for(S=1,R=arguments.length;S<R;S++){V=arguments[S];for(g in V)c[g]=V[g]}return c}var o=Object.create||function(){function c(){}return function(g){return c.prototype=g,new c}}();function s(c,g){var S=Array.prototype.slice;if(c.bind)return c.bind.apply(c,S.call(arguments,1));var R=S.call(arguments,2);return function(){return c.apply(g,R.length?R.concat(S.call(arguments)):arguments)}}var u=0;function d(c){return"_leaflet_id"in c||(c._leaflet_id=++u),c._leaflet_id}function f(c,g,S){var R,V,re,me;return me=function(){R=!1,V&&(re.apply(S,V),V=!1)},re=function(){R?V=arguments:(c.apply(S,arguments),setTimeout(me,g),R=!0)},re}function m(c,g,S){var R=g[1],V=g[0],re=R-V;return c===R&&S?c:((c-V)%re+re)%re+V}function p(){return!1}function b(c,g){if(g===!1)return c;var S=Math.pow(10,g===void 0?6:g);return Math.round(c*S)/S}function _(c){return c.trim?c.trim():c.replace(/^\s+|\s+$/g,"")}function w(c){return _(c).split(/\s+/)}function x(c,g){Object.prototype.hasOwnProperty.call(c,"options")||(c.options=c.options?o(c.options):{});for(var S in g)c.options[S]=g[S];return c.options}function C(c,g,S){var R=[];for(var V in c)R.push(encodeURIComponent(S?V.toUpperCase():V)+"="+encodeURIComponent(c[V]));return(!g||g.indexOf("?")===-1?"?":"&")+R.join("&")}var E=/\{ *([\w_ -]+) *\}/g;function j(c,g){return c.replace(E,function(S,R){var V=g[R];if(V===void 0)throw new Error("No value provided for variable "+S);return typeof V=="function"&&(V=V(g)),V})}var O=Array.isArray||function(c){return Object.prototype.toString.call(c)==="[object Array]"};function N(c,g){for(var S=0;S<c.length;S++)if(c[S]===g)return S;return-1}var U="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function $(c){return window["webkit"+c]||window["moz"+c]||window["ms"+c]}var K=0;function X(c){var g=+new Date,S=Math.max(0,16-(g-K));return K=g+S,window.setTimeout(c,S)}var oe=window.requestAnimationFrame||$("RequestAnimationFrame")||X,ee=window.cancelAnimationFrame||$("CancelAnimationFrame")||$("CancelRequestAnimationFrame")||function(c){window.clearTimeout(c)};function J(c,g,S){if(S&&oe===X)c.call(g);else return oe.call(window,s(c,g))}function ne(c){c&&ee.call(window,c)}var he={__proto__:null,extend:i,create:o,bind:s,get lastId(){return u},stamp:d,throttle:f,wrapNum:m,falseFn:p,formatNum:b,trim:_,splitWords:w,setOptions:x,getParamString:C,template:j,isArray:O,indexOf:N,emptyImageUrl:U,requestFn:oe,cancelFn:ee,requestAnimFrame:J,cancelAnimFrame:ne};function Q(){}Q.extend=function(c){var g=function(){x(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},S=g.__super__=this.prototype,R=o(S);R.constructor=g,g.prototype=R;for(var V in this)Object.prototype.hasOwnProperty.call(this,V)&&V!=="prototype"&&V!=="__super__"&&(g[V]=this[V]);return c.statics&&i(g,c.statics),c.includes&&(se(c.includes),i.apply(null,[R].concat(c.includes))),i(R,c),delete R.statics,delete R.includes,R.options&&(R.options=S.options?o(S.options):{},i(R.options,c.options)),R._initHooks=[],R.callInitHooks=function(){if(!this._initHooksCalled){S.callInitHooks&&S.callInitHooks.call(this),this._initHooksCalled=!0;for(var re=0,me=R._initHooks.length;re<me;re++)R._initHooks[re].call(this)}},g},Q.include=function(c){var g=this.prototype.options;return i(this.prototype,c),c.options&&(this.prototype.options=g,this.mergeOptions(c.options)),this},Q.mergeOptions=function(c){return i(this.prototype.options,c),this},Q.addInitHook=function(c){var g=Array.prototype.slice.call(arguments,1),S=typeof c=="function"?c:function(){this[c].apply(this,g)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(S),this};function se(c){if(!(typeof L>"u"||!L||!L.Mixin)){c=O(c)?c:[c];for(var g=0;g<c.length;g++)c[g]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var Z={on:function(c,g,S){if(typeof c=="object")for(var R in c)this._on(R,c[R],g);else{c=w(c);for(var V=0,re=c.length;V<re;V++)this._on(c[V],g,S)}return this},off:function(c,g,S){if(!arguments.length)delete this._events;else if(typeof c=="object")for(var R in c)this._off(R,c[R],g);else{c=w(c);for(var V=arguments.length===1,re=0,me=c.length;re<me;re++)V?this._off(c[re]):this._off(c[re],g,S)}return this},_on:function(c,g,S,R){if(typeof g!="function"){console.warn("wrong listener type: "+typeof g);return}if(this._listens(c,g,S)===!1){S===this&&(S=void 0);var V={fn:g,ctx:S};R&&(V.once=!0),this._events=this._events||{},this._events[c]=this._events[c]||[],this._events[c].push(V)}},_off:function(c,g,S){var R,V,re;if(this._events&&(R=this._events[c],!!R)){if(arguments.length===1){if(this._firingCount)for(V=0,re=R.length;V<re;V++)R[V].fn=p;delete this._events[c];return}if(typeof g!="function"){console.warn("wrong listener type: "+typeof g);return}var me=this._listens(c,g,S);if(me!==!1){var Se=R[me];this._firingCount&&(Se.fn=p,this._events[c]=R=R.slice()),R.splice(me,1)}}},fire:function(c,g,S){if(!this.listens(c,S))return this;var R=i({},g,{type:c,target:this,sourceTarget:g&&g.sourceTarget||this});if(this._events){var V=this._events[c];if(V){this._firingCount=this._firingCount+1||1;for(var re=0,me=V.length;re<me;re++){var Se=V[re],Te=Se.fn;Se.once&&this.off(c,Te,Se.ctx),Te.call(Se.ctx||this,R)}this._firingCount--}}return S&&this._propagateEvent(R),this},listens:function(c,g,S,R){typeof c!="string"&&console.warn('"string" type argument expected');var V=g;typeof g!="function"&&(R=!!g,V=void 0,S=void 0);var re=this._events&&this._events[c];if(re&&re.length&&this._listens(c,V,S)!==!1)return!0;if(R){for(var me in this._eventParents)if(this._eventParents[me].listens(c,g,S,R))return!0}return!1},_listens:function(c,g,S){if(!this._events)return!1;var R=this._events[c]||[];if(!g)return!!R.length;S===this&&(S=void 0);for(var V=0,re=R.length;V<re;V++)if(R[V].fn===g&&R[V].ctx===S)return V;return!1},once:function(c,g,S){if(typeof c=="object")for(var R in c)this._on(R,c[R],g,!0);else{c=w(c);for(var V=0,re=c.length;V<re;V++)this._on(c[V],g,S,!0)}return this},addEventParent:function(c){return this._eventParents=this._eventParents||{},this._eventParents[d(c)]=c,this},removeEventParent:function(c){return this._eventParents&&delete this._eventParents[d(c)],this},_propagateEvent:function(c){for(var g in this._eventParents)this._eventParents[g].fire(c.type,i({layer:c.target,propagatedFrom:c.target},c),!0)}};Z.addEventListener=Z.on,Z.removeEventListener=Z.clearAllEventListeners=Z.off,Z.addOneTimeEventListener=Z.once,Z.fireEvent=Z.fire,Z.hasEventListeners=Z.listens;var I=Q.extend(Z);function k(c,g,S){this.x=S?Math.round(c):c,this.y=S?Math.round(g):g}var z=Math.trunc||function(c){return c>0?Math.floor(c):Math.ceil(c)};k.prototype={clone:function(){return new k(this.x,this.y)},add:function(c){return this.clone()._add(F(c))},_add:function(c){return this.x+=c.x,this.y+=c.y,this},subtract:function(c){return this.clone()._subtract(F(c))},_subtract:function(c){return this.x-=c.x,this.y-=c.y,this},divideBy:function(c){return this.clone()._divideBy(c)},_divideBy:function(c){return this.x/=c,this.y/=c,this},multiplyBy:function(c){return this.clone()._multiplyBy(c)},_multiplyBy:function(c){return this.x*=c,this.y*=c,this},scaleBy:function(c){return new k(this.x*c.x,this.y*c.y)},unscaleBy:function(c){return new k(this.x/c.x,this.y/c.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=z(this.x),this.y=z(this.y),this},distanceTo:function(c){c=F(c);var g=c.x-this.x,S=c.y-this.y;return Math.sqrt(g*g+S*S)},equals:function(c){return c=F(c),c.x===this.x&&c.y===this.y},contains:function(c){return c=F(c),Math.abs(c.x)<=Math.abs(this.x)&&Math.abs(c.y)<=Math.abs(this.y)},toString:function(){return"Point("+b(this.x)+", "+b(this.y)+")"}};function F(c,g,S){return c instanceof k?c:O(c)?new k(c[0],c[1]):c==null?c:typeof c=="object"&&"x"in c&&"y"in c?new k(c.x,c.y):new k(c,g,S)}function P(c,g){if(c)for(var S=g?[c,g]:c,R=0,V=S.length;R<V;R++)this.extend(S[R])}P.prototype={extend:function(c){var g,S;if(!c)return this;if(c instanceof k||typeof c[0]=="number"||"x"in c)g=S=F(c);else if(c=G(c),g=c.min,S=c.max,!g||!S)return this;return!this.min&&!this.max?(this.min=g.clone(),this.max=S.clone()):(this.min.x=Math.min(g.x,this.min.x),this.max.x=Math.max(S.x,this.max.x),this.min.y=Math.min(g.y,this.min.y),this.max.y=Math.max(S.y,this.max.y)),this},getCenter:function(c){return F((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,c)},getBottomLeft:function(){return F(this.min.x,this.max.y)},getTopRight:function(){return F(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(c){var g,S;return typeof c[0]=="number"||c instanceof k?c=F(c):c=G(c),c instanceof P?(g=c.min,S=c.max):g=S=c,g.x>=this.min.x&&S.x<=this.max.x&&g.y>=this.min.y&&S.y<=this.max.y},intersects:function(c){c=G(c);var g=this.min,S=this.max,R=c.min,V=c.max,re=V.x>=g.x&&R.x<=S.x,me=V.y>=g.y&&R.y<=S.y;return re&&me},overlaps:function(c){c=G(c);var g=this.min,S=this.max,R=c.min,V=c.max,re=V.x>g.x&&R.x<S.x,me=V.y>g.y&&R.y<S.y;return re&&me},isValid:function(){return!!(this.min&&this.max)},pad:function(c){var g=this.min,S=this.max,R=Math.abs(g.x-S.x)*c,V=Math.abs(g.y-S.y)*c;return G(F(g.x-R,g.y-V),F(S.x+R,S.y+V))},equals:function(c){return c?(c=G(c),this.min.equals(c.getTopLeft())&&this.max.equals(c.getBottomRight())):!1}};function G(c,g){return!c||c instanceof P?c:new P(c,g)}function Y(c,g){if(c)for(var S=g?[c,g]:c,R=0,V=S.length;R<V;R++)this.extend(S[R])}Y.prototype={extend:function(c){var g=this._southWest,S=this._northEast,R,V;if(c instanceof ue)R=c,V=c;else if(c instanceof Y){if(R=c._southWest,V=c._northEast,!R||!V)return this}else return c?this.extend(fe(c)||te(c)):this;return!g&&!S?(this._southWest=new ue(R.lat,R.lng),this._northEast=new ue(V.lat,V.lng)):(g.lat=Math.min(R.lat,g.lat),g.lng=Math.min(R.lng,g.lng),S.lat=Math.max(V.lat,S.lat),S.lng=Math.max(V.lng,S.lng)),this},pad:function(c){var g=this._southWest,S=this._northEast,R=Math.abs(g.lat-S.lat)*c,V=Math.abs(g.lng-S.lng)*c;return new Y(new ue(g.lat-R,g.lng-V),new ue(S.lat+R,S.lng+V))},getCenter:function(){return new ue((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new ue(this.getNorth(),this.getWest())},getSouthEast:function(){return new ue(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(c){typeof c[0]=="number"||c instanceof ue||"lat"in c?c=fe(c):c=te(c);var g=this._southWest,S=this._northEast,R,V;return c instanceof Y?(R=c.getSouthWest(),V=c.getNorthEast()):R=V=c,R.lat>=g.lat&&V.lat<=S.lat&&R.lng>=g.lng&&V.lng<=S.lng},intersects:function(c){c=te(c);var g=this._southWest,S=this._northEast,R=c.getSouthWest(),V=c.getNorthEast(),re=V.lat>=g.lat&&R.lat<=S.lat,me=V.lng>=g.lng&&R.lng<=S.lng;return re&&me},overlaps:function(c){c=te(c);var g=this._southWest,S=this._northEast,R=c.getSouthWest(),V=c.getNorthEast(),re=V.lat>g.lat&&R.lat<S.lat,me=V.lng>g.lng&&R.lng<S.lng;return re&&me},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(c,g){return c?(c=te(c),this._southWest.equals(c.getSouthWest(),g)&&this._northEast.equals(c.getNorthEast(),g)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function te(c,g){return c instanceof Y?c:new Y(c,g)}function ue(c,g,S){if(isNaN(c)||isNaN(g))throw new Error("Invalid LatLng object: ("+c+", "+g+")");this.lat=+c,this.lng=+g,S!==void 0&&(this.alt=+S)}ue.prototype={equals:function(c,g){if(!c)return!1;c=fe(c);var S=Math.max(Math.abs(this.lat-c.lat),Math.abs(this.lng-c.lng));return S<=(g===void 0?1e-9:g)},toString:function(c){return"LatLng("+b(this.lat,c)+", "+b(this.lng,c)+")"},distanceTo:function(c){return D.distance(this,fe(c))},wrap:function(){return D.wrapLatLng(this)},toBounds:function(c){var g=180*c/40075017,S=g/Math.cos(Math.PI/180*this.lat);return te([this.lat-g,this.lng-S],[this.lat+g,this.lng+S])},clone:function(){return new ue(this.lat,this.lng,this.alt)}};function fe(c,g,S){return c instanceof ue?c:O(c)&&typeof c[0]!="object"?c.length===3?new ue(c[0],c[1],c[2]):c.length===2?new ue(c[0],c[1]):null:c==null?c:typeof c=="object"&&"lat"in c?new ue(c.lat,"lng"in c?c.lng:c.lon,c.alt):g===void 0?null:new ue(c,g,S)}var ge={latLngToPoint:function(c,g){var S=this.projection.project(c),R=this.scale(g);return this.transformation._transform(S,R)},pointToLatLng:function(c,g){var S=this.scale(g),R=this.transformation.untransform(c,S);return this.projection.unproject(R)},project:function(c){return this.projection.project(c)},unproject:function(c){return this.projection.unproject(c)},scale:function(c){return 256*Math.pow(2,c)},zoom:function(c){return Math.log(c/256)/Math.LN2},getProjectedBounds:function(c){if(this.infinite)return null;var g=this.projection.bounds,S=this.scale(c),R=this.transformation.transform(g.min,S),V=this.transformation.transform(g.max,S);return new P(R,V)},infinite:!1,wrapLatLng:function(c){var g=this.wrapLng?m(c.lng,this.wrapLng,!0):c.lng,S=this.wrapLat?m(c.lat,this.wrapLat,!0):c.lat,R=c.alt;return new ue(S,g,R)},wrapLatLngBounds:function(c){var g=c.getCenter(),S=this.wrapLatLng(g),R=g.lat-S.lat,V=g.lng-S.lng;if(R===0&&V===0)return c;var re=c.getSouthWest(),me=c.getNorthEast(),Se=new ue(re.lat-R,re.lng-V),Te=new ue(me.lat-R,me.lng-V);return new Y(Se,Te)}},D=i({},ge,{wrapLng:[-180,180],R:6371e3,distance:function(c,g){var S=Math.PI/180,R=c.lat*S,V=g.lat*S,re=Math.sin((g.lat-c.lat)*S/2),me=Math.sin((g.lng-c.lng)*S/2),Se=re*re+Math.cos(R)*Math.cos(V)*me*me,Te=2*Math.atan2(Math.sqrt(Se),Math.sqrt(1-Se));return this.R*Te}}),B=6378137,W={R:B,MAX_LATITUDE:85.0511287798,project:function(c){var g=Math.PI/180,S=this.MAX_LATITUDE,R=Math.max(Math.min(S,c.lat),-S),V=Math.sin(R*g);return new k(this.R*c.lng*g,this.R*Math.log((1+V)/(1-V))/2)},unproject:function(c){var g=180/Math.PI;return new ue((2*Math.atan(Math.exp(c.y/this.R))-Math.PI/2)*g,c.x*g/this.R)},bounds:function(){var c=B*Math.PI;return new P([-c,-c],[c,c])}()};function le(c,g,S,R){if(O(c)){this._a=c[0],this._b=c[1],this._c=c[2],this._d=c[3];return}this._a=c,this._b=g,this._c=S,this._d=R}le.prototype={transform:function(c,g){return this._transform(c.clone(),g)},_transform:function(c,g){return g=g||1,c.x=g*(this._a*c.x+this._b),c.y=g*(this._c*c.y+this._d),c},untransform:function(c,g){return g=g||1,new k((c.x/g-this._b)/this._a,(c.y/g-this._d)/this._c)}};function H(c,g,S,R){return new le(c,g,S,R)}var ae=i({},D,{code:"EPSG:3857",projection:W,transformation:function(){var c=.5/(Math.PI*W.R);return H(c,.5,-c,.5)}()}),ce=i({},ae,{code:"EPSG:900913"});function ve(c){return document.createElementNS("http://www.w3.org/2000/svg",c)}function de(c,g){var S="",R,V,re,me,Se,Te;for(R=0,re=c.length;R<re;R++){for(Se=c[R],V=0,me=Se.length;V<me;V++)Te=Se[V],S+=(V?"L":"M")+Te.x+" "+Te.y;S+=g?at.svg?"z":"x":""}return S||"M0 0"}var we=document.documentElement.style,Ae="ActiveXObject"in window,Le=Ae&&!document.addEventListener,Ve="msLaunchUri"in navigator&&!("documentMode"in document),Fe=Dn("webkit"),He=Dn("android"),be=Dn("android 2")||Dn("android 3"),_e=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),De=He&&Dn("Google")&&_e<537&&!("AudioNode"in window),Re=!!window.opera,Me=!Ve&&Dn("chrome"),$e=Dn("gecko")&&!Fe&&!Re&&!Ae,Ge=!Me&&Dn("safari"),Ze=Dn("phantom"),ut="OTransition"in we,it=navigator.platform.indexOf("Win")===0,dt=Ae&&"transition"in we,gt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!be,Dt="MozPerspective"in we,yt=!window.L_DISABLE_3D&&(dt||gt||Dt)&&!ut&&!Ze,Ui=typeof orientation<"u"||Dn("mobile"),Wn=Ui&&Fe,Rl=Ui&&gt,Nr=!window.PointerEvent&&window.MSPointerEvent,mo=!!(window.PointerEvent||Nr),po="ontouchstart"in window||!!window.TouchEvent,zi=!window.L_NO_TOUCH&&(po||mo),ka=Ui&&Re,ui=Ui&&$e,Sn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,hn=function(){var c=!1;try{var g=Object.defineProperty({},"passive",{get:function(){c=!0}});window.addEventListener("testPassiveEventSupport",p,g),window.removeEventListener("testPassiveEventSupport",p,g)}catch{}return c}(),Kn=function(){return!!document.createElement("canvas").getContext}(),bn=!!(document.createElementNS&&ve("svg").createSVGRect),Zn=!!bn&&function(){var c=document.createElement("div");return c.innerHTML="<svg/>",(c.firstChild&&c.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Cn=!bn&&function(){try{var c=document.createElement("div");c.innerHTML='<v:shape adj="1"/>';var g=c.firstChild;return g.style.behavior="url(#default#VML)",g&&typeof g.adj=="object"}catch{return!1}}(),Hr=navigator.platform.indexOf("Mac")===0,qr=navigator.platform.indexOf("Linux")===0;function Dn(c){return navigator.userAgent.toLowerCase().indexOf(c)>=0}var at={ie:Ae,ielt9:Le,edge:Ve,webkit:Fe,android:He,android23:be,androidStock:De,opera:Re,chrome:Me,gecko:$e,safari:Ge,phantom:Ze,opera12:ut,win:it,ie3d:dt,webkit3d:gt,gecko3d:Dt,any3d:yt,mobile:Ui,mobileWebkit:Wn,mobileWebkit3d:Rl,msPointer:Nr,pointer:mo,touch:zi,touchNative:po,mobileOpera:ka,mobileGecko:ui,retina:Sn,passiveEvents:hn,canvas:Kn,svg:bn,vml:Cn,inlineSvg:Zn,mac:Hr,linux:qr},$f=at.msPointer?"MSPointerDown":"pointerdown",Vf=at.msPointer?"MSPointerMove":"pointermove",sa=at.msPointer?"MSPointerUp":"pointerup",Bn=at.msPointer?"MSPointerCancel":"pointercancel",or={touchstart:$f,touchmove:Vf,touchend:sa,touchcancel:Bn},go={touchstart:ms,touchmove:Ua,touchend:Ua,touchcancel:Ua},Ia={},Sm=!1;function n0(c,g,S){return g==="touchstart"&&hs(),go[g]?(S=go[g].bind(this,S),c.addEventListener(or[g],S,!1),S):(console.warn("wrong event specified:",g),p)}function Cm(c,g,S){if(!or[g]){console.warn("wrong event specified:",g);return}c.removeEventListener(or[g],S,!1)}function Nl(c){Ia[c.pointerId]=c}function Hf(c){Ia[c.pointerId]&&(Ia[c.pointerId]=c)}function vo(c){delete Ia[c.pointerId]}function hs(){Sm||(document.addEventListener($f,Nl,!0),document.addEventListener(Vf,Hf,!0),document.addEventListener(sa,vo,!0),document.addEventListener(Bn,vo,!0),Sm=!0)}function Ua(c,g){if(g.pointerType!==(g.MSPOINTER_TYPE_MOUSE||"mouse")){g.touches=[];for(var S in Ia)g.touches.push(Ia[S]);g.changedTouches=[g],c(g)}}function ms(c,g){g.MSPOINTER_TYPE_TOUCH&&g.pointerType===g.MSPOINTER_TYPE_TOUCH&&En(g),Ua(c,g)}function Fn(c){var g={},S,R;for(R in c)S=c[R],g[R]=S&&S.bind?S.bind(c):S;return c=g,g.type="dblclick",g.detail=2,g.isTrusted=!1,g._simulated=!0,g}var Em=200;function Am(c,g){c.addEventListener("dblclick",g);var S=0,R;function V(re){if(re.detail!==1){R=re.detail;return}if(!(re.pointerType==="mouse"||re.sourceCapabilities&&!re.sourceCapabilities.firesTouchEvents)){var me=Bl(re);if(!(me.some(function(Te){return Te instanceof HTMLLabelElement&&Te.attributes.for})&&!me.some(function(Te){return Te instanceof HTMLInputElement||Te instanceof HTMLSelectElement}))){var Se=Date.now();Se-S<=Em?(R++,R===2&&g(Fn(re))):R=1,S=Se}}}return c.addEventListener("click",V),{dblclick:g,simDblclick:V}}function yo(c,g){c.removeEventListener("dblclick",g.dblclick),c.removeEventListener("click",g.simDblclick)}var za=kl(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ll=kl(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),qf=Ll==="webkitTransition"||Ll==="OTransition"?Ll+"End":"transitionend";function Gf(c){return typeof c=="string"?document.getElementById(c):c}function Dl(c,g){var S=c.style[g]||c.currentStyle&&c.currentStyle[g];if((!S||S==="auto")&&document.defaultView){var R=document.defaultView.getComputedStyle(c,null);S=R?R[g]:null}return S==="auto"?null:S}function wt(c,g,S){var R=document.createElement(c);return R.className=g||"",S&&S.appendChild(R),R}function Yt(c){var g=c.parentNode;g&&g.removeChild(c)}function Gr(c){for(;c.firstChild;)c.removeChild(c.firstChild)}function Xn(c){var g=c.parentNode;g&&g.lastChild!==c&&g.appendChild(c)}function bo(c){var g=c.parentNode;g&&g.firstChild!==c&&g.insertBefore(c,g.firstChild)}function Yf(c,g){if(c.classList!==void 0)return c.classList.contains(g);var S=Xu(c);return S.length>0&&new RegExp("(^|\\s)"+g+"(\\s|$)").test(S)}function ht(c,g){if(c.classList!==void 0)for(var S=w(g),R=0,V=S.length;R<V;R++)c.classList.add(S[R]);else if(!Yf(c,g)){var re=Xu(c);ps(c,(re?re+" ":"")+g)}}function mn(c,g){c.classList!==void 0?c.classList.remove(g):ps(c,_((" "+Xu(c)+" ").replace(" "+g+" "," ")))}function ps(c,g){c.className.baseVal===void 0?c.className=g:c.className.baseVal=g}function Xu(c){return c.correspondingElement&&(c=c.correspondingElement),c.className.baseVal===void 0?c.className:c.className.baseVal}function an(c,g){"opacity"in c.style?c.style.opacity=g:"filter"in c.style&&Wf(c,g)}function Wf(c,g){var S=!1,R="DXImageTransform.Microsoft.Alpha";try{S=c.filters.item(R)}catch{if(g===1)return}g=Math.round(g*100),S?(S.Enabled=g!==100,S.Opacity=g):c.style.filter+=" progid:"+R+"(opacity="+g+")"}function kl(c){for(var g=document.documentElement.style,S=0;S<c.length;S++)if(c[S]in g)return c[S];return!1}function la(c,g,S){var R=g||new k(0,0);c.style[za]=(at.ie3d?"translate("+R.x+"px,"+R.y+"px)":"translate3d("+R.x+"px,"+R.y+"px,0)")+(S?" scale("+S+")":"")}function Qt(c,g){c._leaflet_pos=g,at.any3d?la(c,g):(c.style.left=g.x+"px",c.style.top=g.y+"px")}function Ba(c){return c._leaflet_pos||new k(0,0)}var gs,Bi,Kf;if("onselectstart"in document)gs=function(){ft(window,"selectstart",En)},Bi=function(){$t(window,"selectstart",En)};else{var vs=kl(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);gs=function(){if(vs){var c=document.documentElement.style;Kf=c[vs],c[vs]="none"}},Bi=function(){vs&&(document.documentElement.style[vs]=Kf,Kf=void 0)}}function Qu(){ft(window,"dragstart",En)}function Il(){$t(window,"dragstart",En)}var Ju,Zf;function ys(c){for(;c.tabIndex===-1;)c=c.parentNode;c.style&&(Yr(),Ju=c,Zf=c.style.outlineStyle,c.style.outlineStyle="none",ft(window,"keydown",Yr))}function Yr(){Ju&&(Ju.style.outlineStyle=Zf,Ju=void 0,Zf=void 0,$t(window,"keydown",Yr))}function ec(c){do c=c.parentNode;while((!c.offsetWidth||!c.offsetHeight)&&c!==document.body);return c}function Ul(c){var g=c.getBoundingClientRect();return{x:g.width/c.offsetWidth||1,y:g.height/c.offsetHeight||1,boundingClientRect:g}}var bs={__proto__:null,TRANSFORM:za,TRANSITION:Ll,TRANSITION_END:qf,get:Gf,getStyle:Dl,create:wt,remove:Yt,empty:Gr,toFront:Xn,toBack:bo,hasClass:Yf,addClass:ht,removeClass:mn,setClass:ps,getClass:Xu,setOpacity:an,testProp:kl,setTransform:la,setPosition:Qt,getPosition:Ba,get disableTextSelection(){return gs},get enableTextSelection(){return Bi},disableImageDrag:Qu,enableImageDrag:Il,preventOutline:ys,restoreOutline:Yr,getSizedParentNode:ec,getScale:Ul};function ft(c,g,S,R){if(g&&typeof g=="object")for(var V in g)fi(c,V,g[V],S);else{g=w(g);for(var re=0,me=g.length;re<me;re++)fi(c,g[re],S,R)}return this}var ci="_leaflet_events";function $t(c,g,S,R){if(arguments.length===1)Xf(c),delete c[ci];else if(g&&typeof g=="object")for(var V in g)zl(c,V,g[V],S);else if(g=w(g),arguments.length===2)Xf(c,function(Se){return N(g,Se)!==-1});else for(var re=0,me=g.length;re<me;re++)zl(c,g[re],S,R);return this}function Xf(c,g){for(var S in c[ci]){var R=S.split(/\d/)[0];(!g||g(R))&&zl(c,R,null,null,S)}}var _o={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function fi(c,g,S,R){var V=g+d(S)+(R?"_"+d(R):"");if(c[ci]&&c[ci][V])return this;var re=function(Se){return S.call(R||c,Se||window.event)},me=re;!at.touchNative&&at.pointer&&g.indexOf("touch")===0?re=n0(c,g,re):at.touch&&g==="dblclick"?re=Am(c,re):"addEventListener"in c?g==="touchstart"||g==="touchmove"||g==="wheel"||g==="mousewheel"?c.addEventListener(_o[g]||g,re,at.passiveEvents?{passive:!1}:!1):g==="mouseenter"||g==="mouseleave"?(re=function(Se){Se=Se||window.event,ua(c,Se)&&me(Se)},c.addEventListener(_o[g],re,!1)):c.addEventListener(g,me,!1):c.attachEvent("on"+g,re),c[ci]=c[ci]||{},c[ci][V]=re}function zl(c,g,S,R,V){V=V||g+d(S)+(R?"_"+d(R):"");var re=c[ci]&&c[ci][V];if(!re)return this;!at.touchNative&&at.pointer&&g.indexOf("touch")===0?Cm(c,g,re):at.touch&&g==="dblclick"?yo(c,re):"removeEventListener"in c?c.removeEventListener(_o[g]||g,re,!1):c.detachEvent("on"+g,re),c[ci][V]=null}function di(c){return c.stopPropagation?c.stopPropagation():c.originalEvent?c.originalEvent._stopped=!0:c.cancelBubble=!0,this}function Fi(c){return fi(c,"wheel",di),this}function xo(c){return ft(c,"mousedown touchstart dblclick contextmenu",di),c._leaflet_disable_click=!0,this}function En(c){return c.preventDefault?c.preventDefault():c.returnValue=!1,this}function Fa(c){return En(c),di(c),this}function Bl(c){if(c.composedPath)return c.composedPath();for(var g=[],S=c.target;S;)g.push(S),S=S.parentNode;return g}function Fl(c,g){if(!g)return new k(c.clientX,c.clientY);var S=Ul(g),R=S.boundingClientRect;return new k((c.clientX-R.left)/S.x-g.clientLeft,(c.clientY-R.top)/S.y-g.clientTop)}var Tm=at.linux&&at.chrome?window.devicePixelRatio:at.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function mr(c){return at.edge?c.wheelDeltaY/2:c.deltaY&&c.deltaMode===0?-c.deltaY/Tm:c.deltaY&&c.deltaMode===1?-c.deltaY*20:c.deltaY&&c.deltaMode===2?-c.deltaY*60:c.deltaX||c.deltaZ?0:c.wheelDelta?(c.wheelDeltaY||c.wheelDelta)/2:c.detail&&Math.abs(c.detail)<32765?-c.detail*20:c.detail?c.detail/-32765*60:0}function ua(c,g){var S=g.relatedTarget;if(!S)return!0;try{for(;S&&S!==c;)S=S.parentNode}catch{return!1}return S!==c}var tc={__proto__:null,on:ft,off:$t,stopPropagation:di,disableScrollPropagation:Fi,disableClickPropagation:xo,preventDefault:En,stop:Fa,getPropagationPath:Bl,getMousePosition:Fl,getWheelDelta:mr,isExternalTarget:ua,addListener:ft,removeListener:$t},_s=I.extend({run:function(c,g,S,R){this.stop(),this._el=c,this._inProgress=!0,this._duration=S||.25,this._easeOutPower=1/Math.max(R||.5,.2),this._startPos=Ba(c),this._offset=g.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=J(this._animate,this),this._step()},_step:function(c){var g=+new Date-this._startTime,S=this._duration*1e3;g<S?this._runFrame(this._easeOut(g/S),c):(this._runFrame(1),this._complete())},_runFrame:function(c,g){var S=this._startPos.add(this._offset.multiplyBy(c));g&&S._round(),Qt(this._el,S),this.fire("step")},_complete:function(){ne(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(c){return 1-Math.pow(1-c,this._easeOutPower)}}),Ot=I.extend({options:{crs:ae,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(c,g){g=x(this,g),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(c),this._initLayout(),this._onResize=s(this._onResize,this),this._initEvents(),g.maxBounds&&this.setMaxBounds(g.maxBounds),g.zoom!==void 0&&(this._zoom=this._limitZoom(g.zoom)),g.center&&g.zoom!==void 0&&this.setView(fe(g.center),g.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ll&&at.any3d&&!at.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),ft(this._proxy,qf,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(c,g,S){if(g=g===void 0?this._zoom:this._limitZoom(g),c=this._limitCenter(fe(c),g,this.options.maxBounds),S=S||{},this._stop(),this._loaded&&!S.reset&&S!==!0){S.animate!==void 0&&(S.zoom=i({animate:S.animate},S.zoom),S.pan=i({animate:S.animate,duration:S.duration},S.pan));var R=this._zoom!==g?this._tryAnimatedZoom&&this._tryAnimatedZoom(c,g,S.zoom):this._tryAnimatedPan(c,S.pan);if(R)return clearTimeout(this._sizeTimer),this}return this._resetView(c,g,S.pan&&S.pan.noMoveStart),this},setZoom:function(c,g){return this._loaded?this.setView(this.getCenter(),c,{zoom:g}):(this._zoom=c,this)},zoomIn:function(c,g){return c=c||(at.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+c,g)},zoomOut:function(c,g){return c=c||(at.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-c,g)},setZoomAround:function(c,g,S){var R=this.getZoomScale(g),V=this.getSize().divideBy(2),re=c instanceof k?c:this.latLngToContainerPoint(c),me=re.subtract(V).multiplyBy(1-1/R),Se=this.containerPointToLatLng(V.add(me));return this.setView(Se,g,{zoom:S})},_getBoundsCenterZoom:function(c,g){g=g||{},c=c.getBounds?c.getBounds():te(c);var S=F(g.paddingTopLeft||g.padding||[0,0]),R=F(g.paddingBottomRight||g.padding||[0,0]),V=this.getBoundsZoom(c,!1,S.add(R));if(V=typeof g.maxZoom=="number"?Math.min(g.maxZoom,V):V,V===1/0)return{center:c.getCenter(),zoom:V};var re=R.subtract(S).divideBy(2),me=this.project(c.getSouthWest(),V),Se=this.project(c.getNorthEast(),V),Te=this.unproject(me.add(Se).divideBy(2).add(re),V);return{center:Te,zoom:V}},fitBounds:function(c,g){if(c=te(c),!c.isValid())throw new Error("Bounds are not valid.");var S=this._getBoundsCenterZoom(c,g);return this.setView(S.center,S.zoom,g)},fitWorld:function(c){return this.fitBounds([[-90,-180],[90,180]],c)},panTo:function(c,g){return this.setView(c,this._zoom,{pan:g})},panBy:function(c,g){if(c=F(c).round(),g=g||{},!c.x&&!c.y)return this.fire("moveend");if(g.animate!==!0&&!this.getSize().contains(c))return this._resetView(this.unproject(this.project(this.getCenter()).add(c)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new _s,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),g.noMoveStart||this.fire("movestart"),g.animate!==!1){ht(this._mapPane,"leaflet-pan-anim");var S=this._getMapPanePos().subtract(c).round();this._panAnim.run(this._mapPane,S,g.duration||.25,g.easeLinearity)}else this._rawPanBy(c),this.fire("move").fire("moveend");return this},flyTo:function(c,g,S){if(S=S||{},S.animate===!1||!at.any3d)return this.setView(c,g,S);this._stop();var R=this.project(this.getCenter()),V=this.project(c),re=this.getSize(),me=this._zoom;c=fe(c),g=g===void 0?me:g;var Se=Math.max(re.x,re.y),Te=Se*this.getZoomScale(me,g),Ue=V.distanceTo(R)||1,Xe=1.42,ot=Xe*Xe;function bt(_n){var ha=_n?-1:1,Eo=_n?Te:Se,dd=Te*Te-Se*Se+ha*ot*ot*Ue*Ue,ru=2*Eo*ot*Ue,iu=dd/ru,Za=Math.sqrt(iu*iu+1)-iu,ma=Za<1e-9?-18:Math.log(Za);return ma}function Qn(_n){return(Math.exp(_n)-Math.exp(-_n))/2}function An(_n){return(Math.exp(_n)+Math.exp(-_n))/2}function Dr(_n){return Qn(_n)/An(_n)}var kt=bt(0);function It(_n){return Se*(An(kt)/An(kt+Xe*_n))}function St(_n){return Se*(An(kt)*Dr(kt+Xe*_n)-Qn(kt))/ot}function Wa(_n){return 1-Math.pow(1-_n,1.5)}var Xr=Date.now(),pc=(bt(1)-kt)/Xe,Ka=S.duration?1e3*S.duration:1e3*pc*.8;function fd(){var _n=(Date.now()-Xr)/Ka,ha=Wa(_n)*pc;_n<=1?(this._flyToFrame=J(fd,this),this._move(this.unproject(R.add(V.subtract(R).multiplyBy(St(ha)/Ue)),me),this.getScaleZoom(Se/It(ha),me),{flyTo:!0})):this._move(c,g)._moveEnd(!0)}return this._moveStart(!0,S.noMoveStart),fd.call(this),this},flyToBounds:function(c,g){var S=this._getBoundsCenterZoom(c,g);return this.flyTo(S.center,S.zoom,g)},setMaxBounds:function(c){return c=te(c),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),c.isValid()?(this.options.maxBounds=c,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(c){var g=this.options.minZoom;return this.options.minZoom=c,this._loaded&&g!==c&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(c):this},setMaxZoom:function(c){var g=this.options.maxZoom;return this.options.maxZoom=c,this._loaded&&g!==c&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(c):this},panInsideBounds:function(c,g){this._enforcingBounds=!0;var S=this.getCenter(),R=this._limitCenter(S,this._zoom,te(c));return S.equals(R)||this.panTo(R,g),this._enforcingBounds=!1,this},panInside:function(c,g){g=g||{};var S=F(g.paddingTopLeft||g.padding||[0,0]),R=F(g.paddingBottomRight||g.padding||[0,0]),V=this.project(this.getCenter()),re=this.project(c),me=this.getPixelBounds(),Se=G([me.min.add(S),me.max.subtract(R)]),Te=Se.getSize();if(!Se.contains(re)){this._enforcingBounds=!0;var Ue=re.subtract(Se.getCenter()),Xe=Se.extend(re).getSize().subtract(Te);V.x+=Ue.x<0?-Xe.x:Xe.x,V.y+=Ue.y<0?-Xe.y:Xe.y,this.panTo(this.unproject(V),g),this._enforcingBounds=!1}return this},invalidateSize:function(c){if(!this._loaded)return this;c=i({animate:!1,pan:!0},c===!0?{animate:!0}:c);var g=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var S=this.getSize(),R=g.divideBy(2).round(),V=S.divideBy(2).round(),re=R.subtract(V);return!re.x&&!re.y?this:(c.animate&&c.pan?this.panBy(re):(c.pan&&this._rawPanBy(re),this.fire("move"),c.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(s(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:g,newSize:S}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(c){if(c=this._locateOptions=i({timeout:1e4,watch:!1},c),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var g=s(this._handleGeolocationResponse,this),S=s(this._handleGeolocationError,this);return c.watch?this._locationWatchId=navigator.geolocation.watchPosition(g,S,c):navigator.geolocation.getCurrentPosition(g,S,c),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(c){if(this._container._leaflet_id){var g=c.code,S=c.message||(g===1?"permission denied":g===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:g,message:"Geolocation error: "+S+"."})}},_handleGeolocationResponse:function(c){if(this._container._leaflet_id){var g=c.coords.latitude,S=c.coords.longitude,R=new ue(g,S),V=R.toBounds(c.coords.accuracy*2),re=this._locateOptions;if(re.setView){var me=this.getBoundsZoom(V);this.setView(R,re.maxZoom?Math.min(me,re.maxZoom):me)}var Se={latlng:R,bounds:V,timestamp:c.timestamp};for(var Te in c.coords)typeof c.coords[Te]=="number"&&(Se[Te]=c.coords[Te]);this.fire("locationfound",Se)}},addHandler:function(c,g){if(!g)return this;var S=this[c]=new g(this);return this._handlers.push(S),this.options[c]&&S.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch{this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Yt(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(ne(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var c;for(c in this._layers)this._layers[c].remove();for(c in this._panes)Yt(this._panes[c]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(c,g){var S="leaflet-pane"+(c?" leaflet-"+c.replace("Pane","")+"-pane":""),R=wt("div",S,g||this._mapPane);return c&&(this._panes[c]=R),R},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var c=this.getPixelBounds(),g=this.unproject(c.getBottomLeft()),S=this.unproject(c.getTopRight());return new Y(g,S)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(c,g,S){c=te(c),S=F(S||[0,0]);var R=this.getZoom()||0,V=this.getMinZoom(),re=this.getMaxZoom(),me=c.getNorthWest(),Se=c.getSouthEast(),Te=this.getSize().subtract(S),Ue=G(this.project(Se,R),this.project(me,R)).getSize(),Xe=at.any3d?this.options.zoomSnap:1,ot=Te.x/Ue.x,bt=Te.y/Ue.y,Qn=g?Math.max(ot,bt):Math.min(ot,bt);return R=this.getScaleZoom(Qn,R),Xe&&(R=Math.round(R/(Xe/100))*(Xe/100),R=g?Math.ceil(R/Xe)*Xe:Math.floor(R/Xe)*Xe),Math.max(V,Math.min(re,R))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new k(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(c,g){var S=this._getTopLeftPoint(c,g);return new P(S,S.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(c){return this.options.crs.getProjectedBounds(c===void 0?this.getZoom():c)},getPane:function(c){return typeof c=="string"?this._panes[c]:c},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(c,g){var S=this.options.crs;return g=g===void 0?this._zoom:g,S.scale(c)/S.scale(g)},getScaleZoom:function(c,g){var S=this.options.crs;g=g===void 0?this._zoom:g;var R=S.zoom(c*S.scale(g));return isNaN(R)?1/0:R},project:function(c,g){return g=g===void 0?this._zoom:g,this.options.crs.latLngToPoint(fe(c),g)},unproject:function(c,g){return g=g===void 0?this._zoom:g,this.options.crs.pointToLatLng(F(c),g)},layerPointToLatLng:function(c){var g=F(c).add(this.getPixelOrigin());return this.unproject(g)},latLngToLayerPoint:function(c){var g=this.project(fe(c))._round();return g._subtract(this.getPixelOrigin())},wrapLatLng:function(c){return this.options.crs.wrapLatLng(fe(c))},wrapLatLngBounds:function(c){return this.options.crs.wrapLatLngBounds(te(c))},distance:function(c,g){return this.options.crs.distance(fe(c),fe(g))},containerPointToLayerPoint:function(c){return F(c).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(c){return F(c).add(this._getMapPanePos())},containerPointToLatLng:function(c){var g=this.containerPointToLayerPoint(F(c));return this.layerPointToLatLng(g)},latLngToContainerPoint:function(c){return this.layerPointToContainerPoint(this.latLngToLayerPoint(fe(c)))},mouseEventToContainerPoint:function(c){return Fl(c,this._container)},mouseEventToLayerPoint:function(c){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(c))},mouseEventToLatLng:function(c){return this.layerPointToLatLng(this.mouseEventToLayerPoint(c))},_initContainer:function(c){var g=this._container=Gf(c);if(g){if(g._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");ft(g,"scroll",this._onScroll,this),this._containerId=d(g)},_initLayout:function(){var c=this._container;this._fadeAnimated=this.options.fadeAnimation&&at.any3d,ht(c,"leaflet-container"+(at.touch?" leaflet-touch":"")+(at.retina?" leaflet-retina":"")+(at.ielt9?" leaflet-oldie":"")+(at.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var g=Dl(c,"position");g!=="absolute"&&g!=="relative"&&g!=="fixed"&&g!=="sticky"&&(c.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var c=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Qt(this._mapPane,new k(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(ht(c.markerPane,"leaflet-zoom-hide"),ht(c.shadowPane,"leaflet-zoom-hide"))},_resetView:function(c,g,S){Qt(this._mapPane,new k(0,0));var R=!this._loaded;this._loaded=!0,g=this._limitZoom(g),this.fire("viewprereset");var V=this._zoom!==g;this._moveStart(V,S)._move(c,g)._moveEnd(V),this.fire("viewreset"),R&&this.fire("load")},_moveStart:function(c,g){return c&&this.fire("zoomstart"),g||this.fire("movestart"),this},_move:function(c,g,S,R){g===void 0&&(g=this._zoom);var V=this._zoom!==g;return this._zoom=g,this._lastCenter=c,this._pixelOrigin=this._getNewPixelOrigin(c),R?S&&S.pinch&&this.fire("zoom",S):((V||S&&S.pinch)&&this.fire("zoom",S),this.fire("move",S)),this},_moveEnd:function(c){return c&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return ne(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(c){Qt(this._mapPane,this._getMapPanePos().subtract(c))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(c){this._targets={},this._targets[d(this._container)]=this;var g=c?$t:ft;g(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&g(window,"resize",this._onResize,this),at.any3d&&this.options.transform3DLimit&&(c?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){ne(this._resizeRequest),this._resizeRequest=J(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var c=this._getMapPanePos();Math.max(Math.abs(c.x),Math.abs(c.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(c,g){for(var S=[],R,V=g==="mouseout"||g==="mouseover",re=c.target||c.srcElement,me=!1;re;){if(R=this._targets[d(re)],R&&(g==="click"||g==="preclick")&&this._draggableMoved(R)){me=!0;break}if(R&&R.listens(g,!0)&&(V&&!ua(re,c)||(S.push(R),V))||re===this._container)break;re=re.parentNode}return!S.length&&!me&&!V&&this.listens(g,!0)&&(S=[this]),S},_isClickDisabled:function(c){for(;c&&c!==this._container;){if(c._leaflet_disable_click)return!0;c=c.parentNode}},_handleDOMEvent:function(c){var g=c.target||c.srcElement;if(!(!this._loaded||g._leaflet_disable_events||c.type==="click"&&this._isClickDisabled(g))){var S=c.type;S==="mousedown"&&ys(g),this._fireDOMEvent(c,S)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(c,g,S){if(c.type==="click"){var R=i({},c);R.type="preclick",this._fireDOMEvent(R,R.type,S)}var V=this._findEventTargets(c,g);if(S){for(var re=[],me=0;me<S.length;me++)S[me].listens(g,!0)&&re.push(S[me]);V=re.concat(V)}if(V.length){g==="contextmenu"&&En(c);var Se=V[0],Te={originalEvent:c};if(c.type!=="keypress"&&c.type!=="keydown"&&c.type!=="keyup"){var Ue=Se.getLatLng&&(!Se._radius||Se._radius<=10);Te.containerPoint=Ue?this.latLngToContainerPoint(Se.getLatLng()):this.mouseEventToContainerPoint(c),Te.layerPoint=this.containerPointToLayerPoint(Te.containerPoint),Te.latlng=Ue?Se.getLatLng():this.layerPointToLatLng(Te.layerPoint)}for(me=0;me<V.length;me++)if(V[me].fire(g,Te,!0),Te.originalEvent._stopped||V[me].options.bubblingMouseEvents===!1&&N(this._mouseEvents,g)!==-1)return}},_draggableMoved:function(c){return c=c.dragging&&c.dragging.enabled()?c:this,c.dragging&&c.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var c=0,g=this._handlers.length;c<g;c++)this._handlers[c].disable()},whenReady:function(c,g){return this._loaded?c.call(g||this,{target:this}):this.on("load",c,g),this},_getMapPanePos:function(){return Ba(this._mapPane)||new k(0,0)},_moved:function(){var c=this._getMapPanePos();return c&&!c.equals([0,0])},_getTopLeftPoint:function(c,g){var S=c&&g!==void 0?this._getNewPixelOrigin(c,g):this.getPixelOrigin();return S.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(c,g){var S=this.getSize()._divideBy(2);return this.project(c,g)._subtract(S)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(c,g,S){var R=this._getNewPixelOrigin(S,g);return this.project(c,g)._subtract(R)},_latLngBoundsToNewLayerBounds:function(c,g,S){var R=this._getNewPixelOrigin(S,g);return G([this.project(c.getSouthWest(),g)._subtract(R),this.project(c.getNorthWest(),g)._subtract(R),this.project(c.getSouthEast(),g)._subtract(R),this.project(c.getNorthEast(),g)._subtract(R)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(c){return this.latLngToLayerPoint(c).subtract(this._getCenterLayerPoint())},_limitCenter:function(c,g,S){if(!S)return c;var R=this.project(c,g),V=this.getSize().divideBy(2),re=new P(R.subtract(V),R.add(V)),me=this._getBoundsOffset(re,S,g);return Math.abs(me.x)<=1&&Math.abs(me.y)<=1?c:this.unproject(R.add(me),g)},_limitOffset:function(c,g){if(!g)return c;var S=this.getPixelBounds(),R=new P(S.min.add(c),S.max.add(c));return c.add(this._getBoundsOffset(R,g))},_getBoundsOffset:function(c,g,S){var R=G(this.project(g.getNorthEast(),S),this.project(g.getSouthWest(),S)),V=R.min.subtract(c.min),re=R.max.subtract(c.max),me=this._rebound(V.x,-re.x),Se=this._rebound(V.y,-re.y);return new k(me,Se)},_rebound:function(c,g){return c+g>0?Math.round(c-g)/2:Math.max(0,Math.ceil(c))-Math.max(0,Math.floor(g))},_limitZoom:function(c){var g=this.getMinZoom(),S=this.getMaxZoom(),R=at.any3d?this.options.zoomSnap:1;return R&&(c=Math.round(c/R)*R),Math.max(g,Math.min(S,c))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){mn(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(c,g){var S=this._getCenterOffset(c)._trunc();return(g&&g.animate)!==!0&&!this.getSize().contains(S)?!1:(this.panBy(S,g),!0)},_createAnimProxy:function(){var c=this._proxy=wt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(c),this.on("zoomanim",function(g){var S=za,R=this._proxy.style[S];la(this._proxy,this.project(g.center,g.zoom),this.getZoomScale(g.zoom,1)),R===this._proxy.style[S]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Yt(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var c=this.getCenter(),g=this.getZoom();la(this._proxy,this.project(c,g),this.getZoomScale(g,1))},_catchTransitionEnd:function(c){this._animatingZoom&&c.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(c,g,S){if(this._animatingZoom)return!0;if(S=S||{},!this._zoomAnimated||S.animate===!1||this._nothingToAnimate()||Math.abs(g-this._zoom)>this.options.zoomAnimationThreshold)return!1;var R=this.getZoomScale(g),V=this._getCenterOffset(c)._divideBy(1-1/R);return S.animate!==!0&&!this.getSize().contains(V)?!1:(J(function(){this._moveStart(!0,S.noMoveStart||!1)._animateZoom(c,g,!0)},this),!0)},_animateZoom:function(c,g,S,R){this._mapPane&&(S&&(this._animatingZoom=!0,this._animateToCenter=c,this._animateToZoom=g,ht(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:c,zoom:g,noUpdate:R}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(s(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&mn(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function Qf(c,g){return new Ot(c,g)}var Lr=Q.extend({options:{position:"topright"},initialize:function(c){x(this,c)},getPosition:function(){return this.options.position},setPosition:function(c){var g=this._map;return g&&g.removeControl(this),this.options.position=c,g&&g.addControl(this),this},getContainer:function(){return this._container},addTo:function(c){this.remove(),this._map=c;var g=this._container=this.onAdd(c),S=this.getPosition(),R=c._controlCorners[S];return ht(g,"leaflet-control"),S.indexOf("bottom")!==-1?R.insertBefore(g,R.firstChild):R.appendChild(g),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Yt(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(c){this._map&&c&&c.screenX>0&&c.screenY>0&&this._map.getContainer().focus()}}),ca=function(c){return new Lr(c)};Ot.include({addControl:function(c){return c.addTo(this),this},removeControl:function(c){return c.remove(),this},_initControlPos:function(){var c=this._controlCorners={},g="leaflet-",S=this._controlContainer=wt("div",g+"control-container",this._container);function R(V,re){var me=g+V+" "+g+re;c[V+re]=wt("div",me,S)}R("top","left"),R("top","right"),R("bottom","left"),R("bottom","right")},_clearControlPos:function(){for(var c in this._controlCorners)Yt(this._controlCorners[c]);Yt(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var $l=Lr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(c,g,S,R){return S<R?-1:R<S?1:0}},initialize:function(c,g,S){x(this,S),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var R in c)this._addLayer(c[R],R);for(R in g)this._addLayer(g[R],R,!0)},onAdd:function(c){this._initLayout(),this._update(),this._map=c,c.on("zoomend",this._checkDisabledLayers,this);for(var g=0;g<this._layers.length;g++)this._layers[g].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(c){return Lr.prototype.addTo.call(this,c),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var c=0;c<this._layers.length;c++)this._layers[c].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(c,g){return this._addLayer(c,g),this._map?this._update():this},addOverlay:function(c,g){return this._addLayer(c,g,!0),this._map?this._update():this},removeLayer:function(c){c.off("add remove",this._onLayerChange,this);var g=this._getLayer(d(c));return g&&this._layers.splice(this._layers.indexOf(g),1),this._map?this._update():this},expand:function(){ht(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var c=this._map.getSize().y-(this._container.offsetTop+50);return c<this._section.clientHeight?(ht(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=c+"px"):mn(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return mn(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var c="leaflet-control-layers",g=this._container=wt("div",c),S=this.options.collapsed;g.setAttribute("aria-haspopup",!0),xo(g),Fi(g);var R=this._section=wt("section",c+"-list");S&&(this._map.on("click",this.collapse,this),ft(g,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var V=this._layersLink=wt("a",c+"-toggle",g);V.href="#",V.title="Layers",V.setAttribute("role","button"),ft(V,{keydown:function(re){re.keyCode===13&&this._expandSafely()},click:function(re){En(re),this._expandSafely()}},this),S||this.expand(),this._baseLayersList=wt("div",c+"-base",R),this._separator=wt("div",c+"-separator",R),this._overlaysList=wt("div",c+"-overlays",R),g.appendChild(R)},_getLayer:function(c){for(var g=0;g<this._layers.length;g++)if(this._layers[g]&&d(this._layers[g].layer)===c)return this._layers[g]},_addLayer:function(c,g,S){this._map&&c.on("add remove",this._onLayerChange,this),this._layers.push({layer:c,name:g,overlay:S}),this.options.sortLayers&&this._layers.sort(s(function(R,V){return this.options.sortFunction(R.layer,V.layer,R.name,V.name)},this)),this.options.autoZIndex&&c.setZIndex&&(this._lastZIndex++,c.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;Gr(this._baseLayersList),Gr(this._overlaysList),this._layerControlInputs=[];var c,g,S,R,V=0;for(S=0;S<this._layers.length;S++)R=this._layers[S],this._addItem(R),g=g||R.overlay,c=c||!R.overlay,V+=R.overlay?0:1;return this.options.hideSingleBase&&(c=c&&V>1,this._baseLayersList.style.display=c?"":"none"),this._separator.style.display=g&&c?"":"none",this},_onLayerChange:function(c){this._handlingClick||this._update();var g=this._getLayer(d(c.target)),S=g.overlay?c.type==="add"?"overlayadd":"overlayremove":c.type==="add"?"baselayerchange":null;S&&this._map.fire(S,g)},_createRadioElement:function(c,g){var S='<input type="radio" class="leaflet-control-layers-selector" name="'+c+'"'+(g?' checked="checked"':"")+"/>",R=document.createElement("div");return R.innerHTML=S,R.firstChild},_addItem:function(c){var g=document.createElement("label"),S=this._map.hasLayer(c.layer),R;c.overlay?(R=document.createElement("input"),R.type="checkbox",R.className="leaflet-control-layers-selector",R.defaultChecked=S):R=this._createRadioElement("leaflet-base-layers_"+d(this),S),this._layerControlInputs.push(R),R.layerId=d(c.layer),ft(R,"click",this._onInputClick,this);var V=document.createElement("span");V.innerHTML=" "+c.name;var re=document.createElement("span");g.appendChild(re),re.appendChild(R),re.appendChild(V);var me=c.overlay?this._overlaysList:this._baseLayersList;return me.appendChild(g),this._checkDisabledLayers(),g},_onInputClick:function(){if(!this._preventClick){var c=this._layerControlInputs,g,S,R=[],V=[];this._handlingClick=!0;for(var re=c.length-1;re>=0;re--)g=c[re],S=this._getLayer(g.layerId).layer,g.checked?R.push(S):g.checked||V.push(S);for(re=0;re<V.length;re++)this._map.hasLayer(V[re])&&this._map.removeLayer(V[re]);for(re=0;re<R.length;re++)this._map.hasLayer(R[re])||this._map.addLayer(R[re]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var c=this._layerControlInputs,g,S,R=this._map.getZoom(),V=c.length-1;V>=0;V--)g=c[V],S=this._getLayer(g.layerId).layer,g.disabled=S.options.minZoom!==void 0&&R<S.options.minZoom||S.options.maxZoom!==void 0&&R>S.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var c=this._section;this._preventClick=!0,ft(c,"click",En),this.expand();var g=this;setTimeout(function(){$t(c,"click",En),g._preventClick=!1})}}),Om=function(c,g,S){return new $l(c,g,S)},Jf=Lr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(c){var g="leaflet-control-zoom",S=wt("div",g+" leaflet-bar"),R=this.options;return this._zoomInButton=this._createButton(R.zoomInText,R.zoomInTitle,g+"-in",S,this._zoomIn),this._zoomOutButton=this._createButton(R.zoomOutText,R.zoomOutTitle,g+"-out",S,this._zoomOut),this._updateDisabled(),c.on("zoomend zoomlevelschange",this._updateDisabled,this),S},onRemove:function(c){c.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(c){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(c.shiftKey?3:1))},_zoomOut:function(c){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(c.shiftKey?3:1))},_createButton:function(c,g,S,R,V){var re=wt("a",S,R);return re.innerHTML=c,re.href="#",re.title=g,re.setAttribute("role","button"),re.setAttribute("aria-label",g),xo(re),ft(re,"click",Fa),ft(re,"click",V,this),ft(re,"click",this._refocusOnMap,this),re},_updateDisabled:function(){var c=this._map,g="leaflet-disabled";mn(this._zoomInButton,g),mn(this._zoomOutButton,g),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||c._zoom===c.getMinZoom())&&(ht(this._zoomOutButton,g),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||c._zoom===c.getMaxZoom())&&(ht(this._zoomInButton,g),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ot.mergeOptions({zoomControl:!0}),Ot.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new Jf,this.addControl(this.zoomControl))});var r0=function(c){return new Jf(c)},jm=Lr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(c){var g="leaflet-control-scale",S=wt("div",g),R=this.options;return this._addScales(R,g+"-line",S),c.on(R.updateWhenIdle?"moveend":"move",this._update,this),c.whenReady(this._update,this),S},onRemove:function(c){c.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(c,g,S){c.metric&&(this._mScale=wt("div",g,S)),c.imperial&&(this._iScale=wt("div",g,S))},_update:function(){var c=this._map,g=c.getSize().y/2,S=c.distance(c.containerPointToLatLng([0,g]),c.containerPointToLatLng([this.options.maxWidth,g]));this._updateScales(S)},_updateScales:function(c){this.options.metric&&c&&this._updateMetric(c),this.options.imperial&&c&&this._updateImperial(c)},_updateMetric:function(c){var g=this._getRoundNum(c),S=g<1e3?g+" m":g/1e3+" km";this._updateScale(this._mScale,S,g/c)},_updateImperial:function(c){var g=c*3.2808399,S,R,V;g>5280?(S=g/5280,R=this._getRoundNum(S),this._updateScale(this._iScale,R+" mi",R/S)):(V=this._getRoundNum(g),this._updateScale(this._iScale,V+" ft",V/g))},_updateScale:function(c,g,S){c.style.width=Math.round(this.options.maxWidth*S)+"px",c.innerHTML=g},_getRoundNum:function(c){var g=Math.pow(10,(Math.floor(c)+"").length-1),S=c/g;return S=S>=10?10:S>=5?5:S>=3?3:S>=2?2:1,g*S}}),ed=function(c){return new jm(c)},i0='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',td=Lr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(at.inlineSvg?i0+" ":"")+"Leaflet</a>"},initialize:function(c){x(this,c),this._attributions={}},onAdd:function(c){c.attributionControl=this,this._container=wt("div","leaflet-control-attribution"),xo(this._container);for(var g in c._layers)c._layers[g].getAttribution&&this.addAttribution(c._layers[g].getAttribution());return this._update(),c.on("layeradd",this._addAttribution,this),this._container},onRemove:function(c){c.off("layeradd",this._addAttribution,this)},_addAttribution:function(c){c.layer.getAttribution&&(this.addAttribution(c.layer.getAttribution()),c.layer.once("remove",function(){this.removeAttribution(c.layer.getAttribution())},this))},setPrefix:function(c){return this.options.prefix=c,this._update(),this},addAttribution:function(c){return c?(this._attributions[c]||(this._attributions[c]=0),this._attributions[c]++,this._update(),this):this},removeAttribution:function(c){return c?(this._attributions[c]&&(this._attributions[c]--,this._update()),this):this},_update:function(){if(this._map){var c=[];for(var g in this._attributions)this._attributions[g]&&c.push(g);var S=[];this.options.prefix&&S.push(this.options.prefix),c.length&&S.push(c.join(", ")),this._container.innerHTML=S.join(' <span aria-hidden="true">|</span> ')}}});Ot.mergeOptions({attributionControl:!0}),Ot.addInitHook(function(){this.options.attributionControl&&new td().addTo(this)});var a0=function(c){return new td(c)};Lr.Layers=$l,Lr.Zoom=Jf,Lr.Scale=jm,Lr.Attribution=td,ca.layers=Om,ca.zoom=r0,ca.scale=ed,ca.attribution=a0;var $i=Q.extend({initialize:function(c){this._map=c},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});$i.addTo=function(c,g){return c.addHandler(g,this),this};var o0={Events:Z},nd=at.touch?"touchstart mousedown":"mousedown",$a=I.extend({options:{clickTolerance:3},initialize:function(c,g,S,R){x(this,R),this._element=c,this._dragStartTarget=g||c,this._preventOutline=S},enable:function(){this._enabled||(ft(this._dragStartTarget,nd,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&($a._dragging===this&&this.finishDrag(!0),$t(this._dragStartTarget,nd,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(c){if(this._enabled&&(this._moved=!1,!Yf(this._element,"leaflet-zoom-anim"))){if(c.touches&&c.touches.length!==1){$a._dragging===this&&this.finishDrag();return}if(!($a._dragging||c.shiftKey||c.which!==1&&c.button!==1&&!c.touches)&&($a._dragging=this,this._preventOutline&&ys(this._element),Qu(),gs(),!this._moving)){this.fire("down");var g=c.touches?c.touches[0]:c,S=ec(this._element);this._startPoint=new k(g.clientX,g.clientY),this._startPos=Ba(this._element),this._parentScale=Ul(S);var R=c.type==="mousedown";ft(document,R?"mousemove":"touchmove",this._onMove,this),ft(document,R?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(c){if(this._enabled){if(c.touches&&c.touches.length>1){this._moved=!0;return}var g=c.touches&&c.touches.length===1?c.touches[0]:c,S=new k(g.clientX,g.clientY)._subtract(this._startPoint);!S.x&&!S.y||Math.abs(S.x)+Math.abs(S.y)<this.options.clickTolerance||(S.x/=this._parentScale.x,S.y/=this._parentScale.y,En(c),this._moved||(this.fire("dragstart"),this._moved=!0,ht(document.body,"leaflet-dragging"),this._lastTarget=c.target||c.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),ht(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(S),this._moving=!0,this._lastEvent=c,this._updatePosition())}},_updatePosition:function(){var c={originalEvent:this._lastEvent};this.fire("predrag",c),Qt(this._element,this._newPos),this.fire("drag",c)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(c){mn(document.body,"leaflet-dragging"),this._lastTarget&&(mn(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),$t(document,"mousemove touchmove",this._onMove,this),$t(document,"mouseup touchend touchcancel",this._onUp,this),Il(),Bi();var g=this._moved&&this._moving;this._moving=!1,$a._dragging=!1,g&&this.fire("dragend",{noInertia:c,distance:this._newPos.distanceTo(this._startPos)})}});function Mm(c,g,S){var R,V=[1,4,2,8],re,me,Se,Te,Ue,Xe,ot,bt;for(re=0,Xe=c.length;re<Xe;re++)c[re]._code=wo(c[re],g);for(Se=0;Se<4;Se++){for(ot=V[Se],R=[],re=0,Xe=c.length,me=Xe-1;re<Xe;me=re++)Te=c[re],Ue=c[me],Te._code&ot?Ue._code&ot||(bt=nc(Ue,Te,ot,g,S),bt._code=wo(bt,g),R.push(bt)):(Ue._code&ot&&(bt=nc(Ue,Te,ot,g,S),bt._code=wo(bt,g),R.push(bt)),R.push(Te));c=R}return c}function Pm(c,g){var S,R,V,re,me,Se,Te,Ue,Xe;if(!c||c.length===0)throw new Error("latlngs not passed");Wr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var ot=fe([0,0]),bt=te(c),Qn=bt.getNorthWest().distanceTo(bt.getSouthWest())*bt.getNorthEast().distanceTo(bt.getNorthWest());Qn<1700&&(ot=rd(c));var An=c.length,Dr=[];for(S=0;S<An;S++){var kt=fe(c[S]);Dr.push(g.project(fe([kt.lat-ot.lat,kt.lng-ot.lng])))}for(Se=Te=Ue=0,S=0,R=An-1;S<An;R=S++)V=Dr[S],re=Dr[R],me=V.y*re.x-re.y*V.x,Te+=(V.x+re.x)*me,Ue+=(V.y+re.y)*me,Se+=me*3;Se===0?Xe=Dr[0]:Xe=[Te/Se,Ue/Se];var It=g.unproject(F(Xe));return fe([It.lat+ot.lat,It.lng+ot.lng])}function rd(c){for(var g=0,S=0,R=0,V=0;V<c.length;V++){var re=fe(c[V]);g+=re.lat,S+=re.lng,R++}return fe([g/R,S/R])}var id={__proto__:null,clipPolygon:Mm,polygonCenter:Pm,centroid:rd};function Rm(c,g){if(!g||!c.length)return c.slice();var S=g*g;return c=l0(c,S),c=Lm(c,S),c}function Nm(c,g,S){return Math.sqrt(Vl(c,g,S,!0))}function s0(c,g,S){return Vl(c,g,S)}function Lm(c,g){var S=c.length,R=typeof Uint8Array<"u"?Uint8Array:Array,V=new R(S);V[0]=V[S-1]=1,ad(c,V,g,0,S-1);var re,me=[];for(re=0;re<S;re++)V[re]&&me.push(c[re]);return me}function ad(c,g,S,R,V){var re=0,me,Se,Te;for(Se=R+1;Se<=V-1;Se++)Te=Vl(c[Se],c[R],c[V],!0),Te>re&&(me=Se,re=Te);re>S&&(g[me]=1,ad(c,g,S,R,me),ad(c,g,S,me,V))}function l0(c,g){for(var S=[c[0]],R=1,V=0,re=c.length;R<re;R++)u0(c[R],c[V])>g&&(S.push(c[R]),V=R);return V<re-1&&S.push(c[re-1]),S}var Dm;function km(c,g,S,R,V){var re=R?Dm:wo(c,S),me=wo(g,S),Se,Te,Ue;for(Dm=me;;){if(!(re|me))return[c,g];if(re&me)return!1;Se=re||me,Te=nc(c,g,Se,S,V),Ue=wo(Te,S),Se===re?(c=Te,re=Ue):(g=Te,me=Ue)}}function nc(c,g,S,R,V){var re=g.x-c.x,me=g.y-c.y,Se=R.min,Te=R.max,Ue,Xe;return S&8?(Ue=c.x+re*(Te.y-c.y)/me,Xe=Te.y):S&4?(Ue=c.x+re*(Se.y-c.y)/me,Xe=Se.y):S&2?(Ue=Te.x,Xe=c.y+me*(Te.x-c.x)/re):S&1&&(Ue=Se.x,Xe=c.y+me*(Se.x-c.x)/re),new k(Ue,Xe,V)}function wo(c,g){var S=0;return c.x<g.min.x?S|=1:c.x>g.max.x&&(S|=2),c.y<g.min.y?S|=4:c.y>g.max.y&&(S|=8),S}function u0(c,g){var S=g.x-c.x,R=g.y-c.y;return S*S+R*R}function Vl(c,g,S,R){var V=g.x,re=g.y,me=S.x-V,Se=S.y-re,Te=me*me+Se*Se,Ue;return Te>0&&(Ue=((c.x-V)*me+(c.y-re)*Se)/Te,Ue>1?(V=S.x,re=S.y):Ue>0&&(V+=me*Ue,re+=Se*Ue)),me=c.x-V,Se=c.y-re,R?me*me+Se*Se:new k(V,re)}function Wr(c){return!O(c[0])||typeof c[0][0]!="object"&&typeof c[0][0]<"u"}function rc(c){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Wr(c)}function xs(c,g){var S,R,V,re,me,Se,Te,Ue;if(!c||c.length===0)throw new Error("latlngs not passed");Wr(c)||(console.warn("latlngs are not flat! Only the first ring will be used"),c=c[0]);var Xe=fe([0,0]),ot=te(c),bt=ot.getNorthWest().distanceTo(ot.getSouthWest())*ot.getNorthEast().distanceTo(ot.getNorthWest());bt<1700&&(Xe=rd(c));var Qn=c.length,An=[];for(S=0;S<Qn;S++){var Dr=fe(c[S]);An.push(g.project(fe([Dr.lat-Xe.lat,Dr.lng-Xe.lng])))}for(S=0,R=0;S<Qn-1;S++)R+=An[S].distanceTo(An[S+1])/2;if(R===0)Ue=An[0];else for(S=0,re=0;S<Qn-1;S++)if(me=An[S],Se=An[S+1],V=me.distanceTo(Se),re+=V,re>R){Te=(re-R)/V,Ue=[Se.x-Te*(Se.x-me.x),Se.y-Te*(Se.y-me.y)];break}var kt=g.unproject(F(Ue));return fe([kt.lat+Xe.lat,kt.lng+Xe.lng])}var c0={__proto__:null,simplify:Rm,pointToSegmentDistance:Nm,closestPointOnSegment:s0,clipSegment:km,_getEdgeIntersection:nc,_getBitCode:wo,_sqClosestPointOnSegment:Vl,isFlat:Wr,_flat:rc,polylineCenter:xs},ic={project:function(c){return new k(c.lng,c.lat)},unproject:function(c){return new ue(c.y,c.x)},bounds:new P([-180,-90],[180,90])},ac={R:6378137,R_MINOR:6356752314245179e-9,bounds:new P([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(c){var g=Math.PI/180,S=this.R,R=c.lat*g,V=this.R_MINOR/S,re=Math.sqrt(1-V*V),me=re*Math.sin(R),Se=Math.tan(Math.PI/4-R/2)/Math.pow((1-me)/(1+me),re/2);return R=-S*Math.log(Math.max(Se,1e-10)),new k(c.lng*g*S,R)},unproject:function(c){for(var g=180/Math.PI,S=this.R,R=this.R_MINOR/S,V=Math.sqrt(1-R*R),re=Math.exp(-c.y/S),me=Math.PI/2-2*Math.atan(re),Se=0,Te=.1,Ue;Se<15&&Math.abs(Te)>1e-7;Se++)Ue=V*Math.sin(me),Ue=Math.pow((1-Ue)/(1+Ue),V/2),Te=Math.PI/2-2*Math.atan(re*Ue)-me,me+=Te;return new ue(me*g,c.x*g/S)}},Im={__proto__:null,LonLat:ic,Mercator:ac,SphericalMercator:W},Um=i({},D,{code:"EPSG:3395",projection:ac,transformation:function(){var c=.5/(Math.PI*ac.R);return H(c,.5,-c,.5)}()}),od=i({},D,{code:"EPSG:4326",projection:ic,transformation:H(1/180,1,-1/180,.5)}),ws=i({},ge,{projection:ic,transformation:H(1,0,-1,0),scale:function(c){return Math.pow(2,c)},zoom:function(c){return Math.log(c)/Math.LN2},distance:function(c,g){var S=g.lng-c.lng,R=g.lat-c.lat;return Math.sqrt(S*S+R*R)},infinite:!0});ge.Earth=D,ge.EPSG3395=Um,ge.EPSG3857=ae,ge.EPSG900913=ce,ge.EPSG4326=od,ge.Simple=ws;var hi=I.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(c){return c.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(c){return c&&c.removeLayer(this),this},getPane:function(c){return this._map.getPane(c?this.options[c]||c:this.options.pane)},addInteractiveTarget:function(c){return this._map._targets[d(c)]=this,this},removeInteractiveTarget:function(c){return delete this._map._targets[d(c)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(c){var g=c.target;if(g.hasLayer(this)){if(this._map=g,this._zoomAnimated=g._zoomAnimated,this.getEvents){var S=this.getEvents();g.on(S,this),this.once("remove",function(){g.off(S,this)},this)}this.onAdd(g),this.fire("add"),g.fire("layeradd",{layer:this})}}});Ot.include({addLayer:function(c){if(!c._layerAdd)throw new Error("The provided object is not a Layer.");var g=d(c);return this._layers[g]?this:(this._layers[g]=c,c._mapToAdd=this,c.beforeAdd&&c.beforeAdd(this),this.whenReady(c._layerAdd,c),this)},removeLayer:function(c){var g=d(c);return this._layers[g]?(this._loaded&&c.onRemove(this),delete this._layers[g],this._loaded&&(this.fire("layerremove",{layer:c}),c.fire("remove")),c._map=c._mapToAdd=null,this):this},hasLayer:function(c){return d(c)in this._layers},eachLayer:function(c,g){for(var S in this._layers)c.call(g,this._layers[S]);return this},_addLayers:function(c){c=c?O(c)?c:[c]:[];for(var g=0,S=c.length;g<S;g++)this.addLayer(c[g])},_addZoomLimit:function(c){(!isNaN(c.options.maxZoom)||!isNaN(c.options.minZoom))&&(this._zoomBoundLayers[d(c)]=c,this._updateZoomLevels())},_removeZoomLimit:function(c){var g=d(c);this._zoomBoundLayers[g]&&(delete this._zoomBoundLayers[g],this._updateZoomLevels())},_updateZoomLevels:function(){var c=1/0,g=-1/0,S=this._getZoomSpan();for(var R in this._zoomBoundLayers){var V=this._zoomBoundLayers[R].options;c=V.minZoom===void 0?c:Math.min(c,V.minZoom),g=V.maxZoom===void 0?g:Math.max(g,V.maxZoom)}this._layersMaxZoom=g===-1/0?void 0:g,this._layersMinZoom=c===1/0?void 0:c,S!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var Ss=hi.extend({initialize:function(c,g){x(this,g),this._layers={};var S,R;if(c)for(S=0,R=c.length;S<R;S++)this.addLayer(c[S])},addLayer:function(c){var g=this.getLayerId(c);return this._layers[g]=c,this._map&&this._map.addLayer(c),this},removeLayer:function(c){var g=c in this._layers?c:this.getLayerId(c);return this._map&&this._layers[g]&&this._map.removeLayer(this._layers[g]),delete this._layers[g],this},hasLayer:function(c){var g=typeof c=="number"?c:this.getLayerId(c);return g in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(c){var g=Array.prototype.slice.call(arguments,1),S,R;for(S in this._layers)R=this._layers[S],R[c]&&R[c].apply(R,g);return this},onAdd:function(c){this.eachLayer(c.addLayer,c)},onRemove:function(c){this.eachLayer(c.removeLayer,c)},eachLayer:function(c,g){for(var S in this._layers)c.call(g,this._layers[S]);return this},getLayer:function(c){return this._layers[c]},getLayers:function(){var c=[];return this.eachLayer(c.push,c),c},setZIndex:function(c){return this.invoke("setZIndex",c)},getLayerId:function(c){return d(c)}}),f0=function(c,g){return new Ss(c,g)},Vi=Ss.extend({addLayer:function(c){return this.hasLayer(c)?this:(c.addEventParent(this),Ss.prototype.addLayer.call(this,c),this.fire("layeradd",{layer:c}))},removeLayer:function(c){return this.hasLayer(c)?(c in this._layers&&(c=this._layers[c]),c.removeEventParent(this),Ss.prototype.removeLayer.call(this,c),this.fire("layerremove",{layer:c})):this},setStyle:function(c){return this.invoke("setStyle",c)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var c=new Y;for(var g in this._layers){var S=this._layers[g];c.extend(S.getBounds?S.getBounds():S.getLatLng())}return c}}),zm=function(c,g){return new Vi(c,g)},Hi=Q.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(c){x(this,c)},createIcon:function(c){return this._createIcon("icon",c)},createShadow:function(c){return this._createIcon("shadow",c)},_createIcon:function(c,g){var S=this._getIconUrl(c);if(!S){if(c==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var R=this._createImg(S,g&&g.tagName==="IMG"?g:null);return this._setIconStyles(R,c),(this.options.crossOrigin||this.options.crossOrigin==="")&&(R.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),R},_setIconStyles:function(c,g){var S=this.options,R=S[g+"Size"];typeof R=="number"&&(R=[R,R]);var V=F(R),re=F(g==="shadow"&&S.shadowAnchor||S.iconAnchor||V&&V.divideBy(2,!0));c.className="leaflet-marker-"+g+" "+(S.className||""),re&&(c.style.marginLeft=-re.x+"px",c.style.marginTop=-re.y+"px"),V&&(c.style.width=V.x+"px",c.style.height=V.y+"px")},_createImg:function(c,g){return g=g||document.createElement("img"),g.src=c,g},_getIconUrl:function(c){return at.retina&&this.options[c+"RetinaUrl"]||this.options[c+"Url"]}});function Hl(c){return new Hi(c)}var ql=Hi.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(c){return typeof ql.imagePath!="string"&&(ql.imagePath=this._detectIconPath()),(this.options.imagePath||ql.imagePath)+Hi.prototype._getIconUrl.call(this,c)},_stripUrl:function(c){var g=function(S,R,V){var re=R.exec(S);return re&&re[V]};return c=g(c,/^url\((['"])?(.+)\1\)$/,2),c&&g(c,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var c=wt("div","leaflet-default-icon-path",document.body),g=Dl(c,"background-image")||Dl(c,"backgroundImage");if(document.body.removeChild(c),g=this._stripUrl(g),g)return g;var S=document.querySelector('link[href$="leaflet.css"]');return S?S.href.substring(0,S.href.length-11-1):""}}),Gl=$i.extend({initialize:function(c){this._marker=c},addHooks:function(){var c=this._marker._icon;this._draggable||(this._draggable=new $a(c,c,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),ht(c,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&mn(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(c){var g=this._marker,S=g._map,R=this._marker.options.autoPanSpeed,V=this._marker.options.autoPanPadding,re=Ba(g._icon),me=S.getPixelBounds(),Se=S.getPixelOrigin(),Te=G(me.min._subtract(Se).add(V),me.max._subtract(Se).subtract(V));if(!Te.contains(re)){var Ue=F((Math.max(Te.max.x,re.x)-Te.max.x)/(me.max.x-Te.max.x)-(Math.min(Te.min.x,re.x)-Te.min.x)/(me.min.x-Te.min.x),(Math.max(Te.max.y,re.y)-Te.max.y)/(me.max.y-Te.max.y)-(Math.min(Te.min.y,re.y)-Te.min.y)/(me.min.y-Te.min.y)).multiplyBy(R);S.panBy(Ue,{animate:!1}),this._draggable._newPos._add(Ue),this._draggable._startPos._add(Ue),Qt(g._icon,this._draggable._newPos),this._onDrag(c),this._panRequest=J(this._adjustPan.bind(this,c))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(c){this._marker.options.autoPan&&(ne(this._panRequest),this._panRequest=J(this._adjustPan.bind(this,c)))},_onDrag:function(c){var g=this._marker,S=g._shadow,R=Ba(g._icon),V=g._map.layerPointToLatLng(R);S&&Qt(S,R),g._latlng=V,c.latlng=V,c.oldLatLng=this._oldLatLng,g.fire("move",c).fire("drag",c)},_onDragEnd:function(c){ne(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",c)}}),Yl=hi.extend({options:{icon:new ql,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(c,g){x(this,g),this._latlng=fe(c)},onAdd:function(c){this._zoomAnimated=this._zoomAnimated&&c.options.markerZoomAnimation,this._zoomAnimated&&c.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(c){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&c.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(c){var g=this._latlng;return this._latlng=fe(c),this.update(),this.fire("move",{oldLatLng:g,latlng:this._latlng})},setZIndexOffset:function(c){return this.options.zIndexOffset=c,this.update()},getIcon:function(){return this.options.icon},setIcon:function(c){return this.options.icon=c,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var c=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(c)}return this},_initIcon:function(){var c=this.options,g="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),S=c.icon.createIcon(this._icon),R=!1;S!==this._icon&&(this._icon&&this._removeIcon(),R=!0,c.title&&(S.title=c.title),S.tagName==="IMG"&&(S.alt=c.alt||"")),ht(S,g),c.keyboard&&(S.tabIndex="0",S.setAttribute("role","button")),this._icon=S,c.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&ft(S,"focus",this._panOnFocus,this);var V=c.icon.createShadow(this._shadow),re=!1;V!==this._shadow&&(this._removeShadow(),re=!0),V&&(ht(V,g),V.alt=""),this._shadow=V,c.opacity<1&&this._updateOpacity(),R&&this.getPane().appendChild(this._icon),this._initInteraction(),V&&re&&this.getPane(c.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&$t(this._icon,"focus",this._panOnFocus,this),Yt(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Yt(this._shadow),this._shadow=null},_setPos:function(c){this._icon&&Qt(this._icon,c),this._shadow&&Qt(this._shadow,c),this._zIndex=c.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(c){this._icon&&(this._icon.style.zIndex=this._zIndex+c)},_animateZoom:function(c){var g=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center).round();this._setPos(g)},_initInteraction:function(){if(this.options.interactive&&(ht(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Gl)){var c=this.options.draggable;this.dragging&&(c=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Gl(this),c&&this.dragging.enable()}},setOpacity:function(c){return this.options.opacity=c,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var c=this.options.opacity;this._icon&&an(this._icon,c),this._shadow&&an(this._shadow,c)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var c=this._map;if(c){var g=this.options.icon.options,S=g.iconSize?F(g.iconSize):F(0,0),R=g.iconAnchor?F(g.iconAnchor):F(0,0);c.panInside(this._latlng,{paddingTopLeft:R,paddingBottomRight:S.subtract(R)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Bm(c,g){return new Yl(c,g)}var qi=hi.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(c){this._renderer=c.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(c){return x(this,c),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&c&&Object.prototype.hasOwnProperty.call(c,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),Cs=qi.extend({options:{fill:!0,radius:10},initialize:function(c,g){x(this,g),this._latlng=fe(c),this._radius=this.options.radius},setLatLng:function(c){var g=this._latlng;return this._latlng=fe(c),this.redraw(),this.fire("move",{oldLatLng:g,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(c){return this.options.radius=this._radius=c,this.redraw()},getRadius:function(){return this._radius},setStyle:function(c){var g=c&&c.radius||this._radius;return qi.prototype.setStyle.call(this,c),this.setRadius(g),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var c=this._radius,g=this._radiusY||c,S=this._clickTolerance(),R=[c+S,g+S];this._pxBounds=new P(this._point.subtract(R),this._point.add(R))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(c){return c.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function Fm(c,g){return new Cs(c,g)}var oc=Cs.extend({initialize:function(c,g,S){if(typeof g=="number"&&(g=i({},S,{radius:g})),x(this,g),this._latlng=fe(c),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(c){return this._mRadius=c,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var c=[this._radius,this._radiusY||this._radius];return new Y(this._map.layerPointToLatLng(this._point.subtract(c)),this._map.layerPointToLatLng(this._point.add(c)))},setStyle:qi.prototype.setStyle,_project:function(){var c=this._latlng.lng,g=this._latlng.lat,S=this._map,R=S.options.crs;if(R.distance===D.distance){var V=Math.PI/180,re=this._mRadius/D.R/V,me=S.project([g+re,c]),Se=S.project([g-re,c]),Te=me.add(Se).divideBy(2),Ue=S.unproject(Te).lat,Xe=Math.acos((Math.cos(re*V)-Math.sin(g*V)*Math.sin(Ue*V))/(Math.cos(g*V)*Math.cos(Ue*V)))/V;(isNaN(Xe)||Xe===0)&&(Xe=re/Math.cos(Math.PI/180*g)),this._point=Te.subtract(S.getPixelOrigin()),this._radius=isNaN(Xe)?0:Te.x-S.project([Ue,c-Xe]).x,this._radiusY=Te.y-me.y}else{var ot=R.unproject(R.project(this._latlng).subtract([this._mRadius,0]));this._point=S.latLngToLayerPoint(this._latlng),this._radius=this._point.x-S.latLngToLayerPoint(ot).x}this._updateBounds()}});function $m(c,g,S){return new oc(c,g,S)}var fa=qi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(c,g){x(this,g),this._setLatLngs(c)},getLatLngs:function(){return this._latlngs},setLatLngs:function(c){return this._setLatLngs(c),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(c){for(var g=1/0,S=null,R=Vl,V,re,me=0,Se=this._parts.length;me<Se;me++)for(var Te=this._parts[me],Ue=1,Xe=Te.length;Ue<Xe;Ue++){V=Te[Ue-1],re=Te[Ue];var ot=R(c,V,re,!0);ot<g&&(g=ot,S=R(c,V,re))}return S&&(S.distance=Math.sqrt(g)),S},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return xs(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(c,g){return g=g||this._defaultShape(),c=fe(c),g.push(c),this._bounds.extend(c),this.redraw()},_setLatLngs:function(c){this._bounds=new Y,this._latlngs=this._convertLatLngs(c)},_defaultShape:function(){return Wr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(c){for(var g=[],S=Wr(c),R=0,V=c.length;R<V;R++)S?(g[R]=fe(c[R]),this._bounds.extend(g[R])):g[R]=this._convertLatLngs(c[R]);return g},_project:function(){var c=new P;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,c),this._bounds.isValid()&&c.isValid()&&(this._rawPxBounds=c,this._updateBounds())},_updateBounds:function(){var c=this._clickTolerance(),g=new k(c,c);this._rawPxBounds&&(this._pxBounds=new P([this._rawPxBounds.min.subtract(g),this._rawPxBounds.max.add(g)]))},_projectLatlngs:function(c,g,S){var R=c[0]instanceof ue,V=c.length,re,me;if(R){for(me=[],re=0;re<V;re++)me[re]=this._map.latLngToLayerPoint(c[re]),S.extend(me[re]);g.push(me)}else for(re=0;re<V;re++)this._projectLatlngs(c[re],g,S)},_clipPoints:function(){var c=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}var g=this._parts,S,R,V,re,me,Se,Te;for(S=0,V=0,re=this._rings.length;S<re;S++)for(Te=this._rings[S],R=0,me=Te.length;R<me-1;R++)Se=km(Te[R],Te[R+1],c,R,!0),Se&&(g[V]=g[V]||[],g[V].push(Se[0]),(Se[1]!==Te[R+1]||R===me-2)&&(g[V].push(Se[1]),V++))}},_simplifyPoints:function(){for(var c=this._parts,g=this.options.smoothFactor,S=0,R=c.length;S<R;S++)c[S]=Rm(c[S],g)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(c,g){var S,R,V,re,me,Se,Te=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(S=0,re=this._parts.length;S<re;S++)for(Se=this._parts[S],R=0,me=Se.length,V=me-1;R<me;V=R++)if(!(!g&&R===0)&&Nm(c,Se[V],Se[R])<=Te)return!0;return!1}});function d0(c,g){return new fa(c,g)}fa._flat=rc;var Es=fa.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Pm(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(c){var g=fa.prototype._convertLatLngs.call(this,c),S=g.length;return S>=2&&g[0]instanceof ue&&g[0].equals(g[S-1])&&g.pop(),g},_setLatLngs:function(c){fa.prototype._setLatLngs.call(this,c),Wr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Wr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var c=this._renderer._bounds,g=this.options.weight,S=new k(g,g);if(c=new P(c.min.subtract(S),c.max.add(S)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(c))){if(this.options.noClip){this._parts=this._rings;return}for(var R=0,V=this._rings.length,re;R<V;R++)re=Mm(this._rings[R],c,!0),re.length&&this._parts.push(re)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(c){var g=!1,S,R,V,re,me,Se,Te,Ue;if(!this._pxBounds||!this._pxBounds.contains(c))return!1;for(re=0,Te=this._parts.length;re<Te;re++)for(S=this._parts[re],me=0,Ue=S.length,Se=Ue-1;me<Ue;Se=me++)R=S[me],V=S[Se],R.y>c.y!=V.y>c.y&&c.x<(V.x-R.x)*(c.y-R.y)/(V.y-R.y)+R.x&&(g=!g);return g||fa.prototype._containsPoint.call(this,c,!0)}});function h0(c,g){return new Es(c,g)}var da=Vi.extend({initialize:function(c,g){x(this,g),this._layers={},c&&this.addData(c)},addData:function(c){var g=O(c)?c:c.features,S,R,V;if(g){for(S=0,R=g.length;S<R;S++)V=g[S],(V.geometries||V.geometry||V.features||V.coordinates)&&this.addData(V);return this}var re=this.options;if(re.filter&&!re.filter(c))return this;var me=sr(c,re);return me?(me.feature=uc(c),me.defaultOptions=me.options,this.resetStyle(me),re.onEachFeature&&re.onEachFeature(c,me),this.addLayer(me)):this},resetStyle:function(c){return c===void 0?this.eachLayer(this.resetStyle,this):(c.options=i({},c.defaultOptions),this._setLayerStyle(c,this.options.style),this)},setStyle:function(c){return this.eachLayer(function(g){this._setLayerStyle(g,c)},this)},_setLayerStyle:function(c,g){c.setStyle&&(typeof g=="function"&&(g=g(c.feature)),c.setStyle(g))}});function sr(c,g){var S=c.type==="Feature"?c.geometry:c,R=S?S.coordinates:null,V=[],re=g&&g.pointToLayer,me=g&&g.coordsToLatLng||sc,Se,Te,Ue,Xe;if(!R&&!S)return null;switch(S.type){case"Point":return Se=me(R),As(re,c,Se,g);case"MultiPoint":for(Ue=0,Xe=R.length;Ue<Xe;Ue++)Se=me(R[Ue]),V.push(As(re,c,Se,g));return new Vi(V);case"LineString":case"MultiLineString":return Te=Wl(R,S.type==="LineString"?0:1,me),new fa(Te,g);case"Polygon":case"MultiPolygon":return Te=Wl(R,S.type==="Polygon"?1:2,me),new Es(Te,g);case"GeometryCollection":for(Ue=0,Xe=S.geometries.length;Ue<Xe;Ue++){var ot=sr({geometry:S.geometries[Ue],type:"Feature",properties:c.properties},g);ot&&V.push(ot)}return new Vi(V);case"FeatureCollection":for(Ue=0,Xe=S.features.length;Ue<Xe;Ue++){var bt=sr(S.features[Ue],g);bt&&V.push(bt)}return new Vi(V);default:throw new Error("Invalid GeoJSON object.")}}function As(c,g,S,R){return c?c(g,S):new Yl(S,R&&R.markersInheritOptions&&R)}function sc(c){return new ue(c[1],c[0],c[2])}function Wl(c,g,S){for(var R=[],V=0,re=c.length,me;V<re;V++)me=g?Wl(c[V],g-1,S):(S||sc)(c[V]),R.push(me);return R}function lc(c,g){return c=fe(c),c.alt!==void 0?[b(c.lng,g),b(c.lat,g),b(c.alt,g)]:[b(c.lng,g),b(c.lat,g)]}function Kl(c,g,S,R){for(var V=[],re=0,me=c.length;re<me;re++)V.push(g?Kl(c[re],Wr(c[re])?0:g-1,S,R):lc(c[re],R));return!g&&S&&V.length>0&&V.push(V[0].slice()),V}function Va(c,g){return c.feature?i({},c.feature,{geometry:g}):uc(g)}function uc(c){return c.type==="Feature"||c.type==="FeatureCollection"?c:{type:"Feature",properties:{},geometry:c}}var Ha={toGeoJSON:function(c){return Va(this,{type:"Point",coordinates:lc(this.getLatLng(),c)})}};Yl.include(Ha),oc.include(Ha),Cs.include(Ha),fa.include({toGeoJSON:function(c){var g=!Wr(this._latlngs),S=Kl(this._latlngs,g?1:0,!1,c);return Va(this,{type:(g?"Multi":"")+"LineString",coordinates:S})}}),Es.include({toGeoJSON:function(c){var g=!Wr(this._latlngs),S=g&&!Wr(this._latlngs[0]),R=Kl(this._latlngs,S?2:g?1:0,!0,c);return g||(R=[R]),Va(this,{type:(S?"Multi":"")+"Polygon",coordinates:R})}}),Ss.include({toMultiPoint:function(c){var g=[];return this.eachLayer(function(S){g.push(S.toGeoJSON(c).geometry.coordinates)}),Va(this,{type:"MultiPoint",coordinates:g})},toGeoJSON:function(c){var g=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(g==="MultiPoint")return this.toMultiPoint(c);var S=g==="GeometryCollection",R=[];return this.eachLayer(function(V){if(V.toGeoJSON){var re=V.toGeoJSON(c);if(S)R.push(re.geometry);else{var me=uc(re);me.type==="FeatureCollection"?R.push.apply(R,me.features):R.push(me)}}}),S?Va(this,{geometries:R,type:"GeometryCollection"}):{type:"FeatureCollection",features:R}}});function cc(c,g){return new da(c,g)}var Zl=cc,Ts=hi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(c,g,S){this._url=c,this._bounds=te(g),x(this,S)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(ht(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Yt(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(c){return this.options.opacity=c,this._image&&this._updateOpacity(),this},setStyle:function(c){return c.opacity&&this.setOpacity(c.opacity),this},bringToFront:function(){return this._map&&Xn(this._image),this},bringToBack:function(){return this._map&&bo(this._image),this},setUrl:function(c){return this._url=c,this._image&&(this._image.src=c),this},setBounds:function(c){return this._bounds=te(c),this._map&&this._reset(),this},getEvents:function(){var c={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var c=this._url.tagName==="IMG",g=this._image=c?this._url:wt("img");if(ht(g,"leaflet-image-layer"),this._zoomAnimated&&ht(g,"leaflet-zoom-animated"),this.options.className&&ht(g,this.options.className),g.onselectstart=p,g.onmousemove=p,g.onload=s(this.fire,this,"load"),g.onerror=s(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(g.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),c){this._url=g.src;return}g.src=this._url,g.alt=this.options.alt},_animateZoom:function(c){var g=this._map.getZoomScale(c.zoom),S=this._map._latLngBoundsToNewLayerBounds(this._bounds,c.zoom,c.center).min;la(this._image,S,g)},_reset:function(){var c=this._image,g=new P(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),S=g.getSize();Qt(c,g.min),c.style.width=S.x+"px",c.style.height=S.y+"px"},_updateOpacity:function(){an(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var c=this.options.errorOverlayUrl;c&&this._url!==c&&(this._url=c,this._image.src=c)},getCenter:function(){return this._bounds.getCenter()}}),Vm=function(c,g,S){return new Ts(c,g,S)},qa=Ts.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var c=this._url.tagName==="VIDEO",g=this._image=c?this._url:wt("video");if(ht(g,"leaflet-image-layer"),this._zoomAnimated&&ht(g,"leaflet-zoom-animated"),this.options.className&&ht(g,this.options.className),g.onselectstart=p,g.onmousemove=p,g.onloadeddata=s(this.fire,this,"load"),c){for(var S=g.getElementsByTagName("source"),R=[],V=0;V<S.length;V++)R.push(S[V].src);this._url=S.length>0?R:[g.src];return}O(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(g.style,"objectFit")&&(g.style.objectFit="fill"),g.autoplay=!!this.options.autoplay,g.loop=!!this.options.loop,g.muted=!!this.options.muted,g.playsInline=!!this.options.playsInline;for(var re=0;re<this._url.length;re++){var me=wt("source");me.src=this._url[re],g.appendChild(me)}}});function Os(c,g,S){return new qa(c,g,S)}var fc=Ts.extend({_initImage:function(){var c=this._image=this._url;ht(c,"leaflet-image-layer"),this._zoomAnimated&&ht(c,"leaflet-zoom-animated"),this.options.className&&ht(c,this.options.className),c.onselectstart=p,c.onmousemove=p}});function Hm(c,g,S){return new fc(c,g,S)}var lr=hi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(c,g){c&&(c instanceof ue||O(c))?(this._latlng=fe(c),x(this,g)):(x(this,c),this._source=g),this.options.content&&(this._content=this.options.content)},openOn:function(c){return c=arguments.length?c:this._source._map,c.hasLayer(this)||c.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(c){return this._map?this.close():(arguments.length?this._source=c:c=this._source,this._prepareOpen(),this.openOn(c._map)),this},onAdd:function(c){this._zoomAnimated=c._zoomAnimated,this._container||this._initLayout(),c._fadeAnimated&&an(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),c._fadeAnimated&&an(this._container,1),this.bringToFront(),this.options.interactive&&(ht(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(c){c._fadeAnimated?(an(this._container,0),this._removeTimeout=setTimeout(s(Yt,void 0,this._container),200)):Yt(this._container),this.options.interactive&&(mn(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(c){return this._latlng=fe(c),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(c){return this._content=c,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var c={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Xn(this._container),this},bringToBack:function(){return this._map&&bo(this._container),this},_prepareOpen:function(c){var g=this._source;if(!g._map)return!1;if(g instanceof Vi){g=null;var S=this._source._layers;for(var R in S)if(S[R]._map){g=S[R];break}if(!g)return!1;this._source=g}if(!c)if(g.getCenter)c=g.getCenter();else if(g.getLatLng)c=g.getLatLng();else if(g.getBounds)c=g.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(c),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var c=this._contentNode,g=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof g=="string")c.innerHTML=g;else{for(;c.hasChildNodes();)c.removeChild(c.firstChild);c.appendChild(g)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var c=this._map.latLngToLayerPoint(this._latlng),g=F(this.options.offset),S=this._getAnchor();this._zoomAnimated?Qt(this._container,c.add(S)):g=g.add(c).add(S);var R=this._containerBottom=-g.y,V=this._containerLeft=-Math.round(this._containerWidth/2)+g.x;this._container.style.bottom=R+"px",this._container.style.left=V+"px"}},_getAnchor:function(){return[0,0]}});Ot.include({_initOverlay:function(c,g,S,R){var V=g;return V instanceof c||(V=new c(R).setContent(g)),S&&V.setLatLng(S),V}}),hi.include({_initOverlay:function(c,g,S,R){var V=S;return V instanceof c?(x(V,R),V._source=this):(V=g&&!R?g:new c(R,this),V.setContent(S)),V}});var Xl=lr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(c){return c=arguments.length?c:this._source._map,!c.hasLayer(this)&&c._popup&&c._popup.options.autoClose&&c.removeLayer(c._popup),c._popup=this,lr.prototype.openOn.call(this,c)},onAdd:function(c){lr.prototype.onAdd.call(this,c),c.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof qi||this._source.on("preclick",di))},onRemove:function(c){lr.prototype.onRemove.call(this,c),c.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof qi||this._source.off("preclick",di))},getEvents:function(){var c=lr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(c.preclick=this.close),this.options.keepInView&&(c.moveend=this._adjustPan),c},_initLayout:function(){var c="leaflet-popup",g=this._container=wt("div",c+" "+(this.options.className||"")+" leaflet-zoom-animated"),S=this._wrapper=wt("div",c+"-content-wrapper",g);if(this._contentNode=wt("div",c+"-content",S),xo(g),Fi(this._contentNode),ft(g,"contextmenu",di),this._tipContainer=wt("div",c+"-tip-container",g),this._tip=wt("div",c+"-tip",this._tipContainer),this.options.closeButton){var R=this._closeButton=wt("a",c+"-close-button",g);R.setAttribute("role","button"),R.setAttribute("aria-label","Close popup"),R.href="#close",R.innerHTML='<span aria-hidden="true">&#215;</span>',ft(R,"click",function(V){En(V),this.close()},this)}},_updateLayout:function(){var c=this._contentNode,g=c.style;g.width="",g.whiteSpace="nowrap";var S=c.offsetWidth;S=Math.min(S,this.options.maxWidth),S=Math.max(S,this.options.minWidth),g.width=S+1+"px",g.whiteSpace="",g.height="";var R=c.offsetHeight,V=this.options.maxHeight,re="leaflet-popup-scrolled";V&&R>V?(g.height=V+"px",ht(c,re)):mn(c,re),this._containerWidth=this._container.offsetWidth},_animateZoom:function(c){var g=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center),S=this._getAnchor();Qt(this._container,g.add(S))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var c=this._map,g=parseInt(Dl(this._container,"marginBottom"),10)||0,S=this._container.offsetHeight+g,R=this._containerWidth,V=new k(this._containerLeft,-S-this._containerBottom);V._add(Ba(this._container));var re=c.layerPointToContainerPoint(V),me=F(this.options.autoPanPadding),Se=F(this.options.autoPanPaddingTopLeft||me),Te=F(this.options.autoPanPaddingBottomRight||me),Ue=c.getSize(),Xe=0,ot=0;re.x+R+Te.x>Ue.x&&(Xe=re.x+R-Ue.x+Te.x),re.x-Xe-Se.x<0&&(Xe=re.x-Se.x),re.y+S+Te.y>Ue.y&&(ot=re.y+S-Ue.y+Te.y),re.y-ot-Se.y<0&&(ot=re.y-Se.y),(Xe||ot)&&(this.options.keepInView&&(this._autopanning=!0),c.fire("autopanstart").panBy([Xe,ot]))}},_getAnchor:function(){return F(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),qm=function(c,g){return new Xl(c,g)};Ot.mergeOptions({closePopupOnClick:!0}),Ot.include({openPopup:function(c,g,S){return this._initOverlay(Xl,c,g,S).openOn(this),this},closePopup:function(c){return c=arguments.length?c:this._popup,c&&c.close(),this}}),hi.include({bindPopup:function(c,g){return this._popup=this._initOverlay(Xl,this._popup,c,g),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(c){return this._popup&&(this instanceof Vi||(this._popup._source=this),this._popup._prepareOpen(c||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(c){return this._popup&&this._popup.setContent(c),this},getPopup:function(){return this._popup},_openPopup:function(c){if(!(!this._popup||!this._map)){Fa(c);var g=c.layer||c.target;if(this._popup._source===g&&!(g instanceof qi)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(c.latlng);return}this._popup._source=g,this.openPopup(c.latlng)}},_movePopup:function(c){this._popup.setLatLng(c.latlng)},_onKeyPress:function(c){c.originalEvent.keyCode===13&&this._openPopup(c)}});var Ql=lr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(c){lr.prototype.onAdd.call(this,c),this.setOpacity(this.options.opacity),c.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(c){lr.prototype.onRemove.call(this,c),c.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var c=lr.prototype.getEvents.call(this);return this.options.permanent||(c.preclick=this.close),c},_initLayout:function(){var c="leaflet-tooltip",g=c+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=wt("div",g),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+d(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(c){var g,S,R=this._map,V=this._container,re=R.latLngToContainerPoint(R.getCenter()),me=R.layerPointToContainerPoint(c),Se=this.options.direction,Te=V.offsetWidth,Ue=V.offsetHeight,Xe=F(this.options.offset),ot=this._getAnchor();Se==="top"?(g=Te/2,S=Ue):Se==="bottom"?(g=Te/2,S=0):Se==="center"?(g=Te/2,S=Ue/2):Se==="right"?(g=0,S=Ue/2):Se==="left"?(g=Te,S=Ue/2):me.x<re.x?(Se="right",g=0,S=Ue/2):(Se="left",g=Te+(Xe.x+ot.x)*2,S=Ue/2),c=c.subtract(F(g,S,!0)).add(Xe).add(ot),mn(V,"leaflet-tooltip-right"),mn(V,"leaflet-tooltip-left"),mn(V,"leaflet-tooltip-top"),mn(V,"leaflet-tooltip-bottom"),ht(V,"leaflet-tooltip-"+Se),Qt(V,c)},_updatePosition:function(){var c=this._map.latLngToLayerPoint(this._latlng);this._setPosition(c)},setOpacity:function(c){this.options.opacity=c,this._container&&an(this._container,c)},_animateZoom:function(c){var g=this._map._latLngToNewLayerPoint(this._latlng,c.zoom,c.center);this._setPosition(g)},_getAnchor:function(){return F(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),m0=function(c,g){return new Ql(c,g)};Ot.include({openTooltip:function(c,g,S){return this._initOverlay(Ql,c,g,S).openOn(this),this},closeTooltip:function(c){return c.close(),this}}),hi.include({bindTooltip:function(c,g){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Ql,this._tooltip,c,g),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(c){if(!(!c&&this._tooltipHandlersAdded)){var g=c?"off":"on",S={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?S.add=this._openTooltip:(S.mouseover=this._openTooltip,S.mouseout=this.closeTooltip,S.click=this._openTooltip,this._map?this._addFocusListeners():S.add=this._addFocusListeners),this._tooltip.options.sticky&&(S.mousemove=this._moveTooltip),this[g](S),this._tooltipHandlersAdded=!c}},openTooltip:function(c){return this._tooltip&&(this instanceof Vi||(this._tooltip._source=this),this._tooltip._prepareOpen(c)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(c){return this._tooltip&&this._tooltip.setContent(c),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(c){var g=typeof c.getElement=="function"&&c.getElement();g&&(ft(g,"focus",function(){this._tooltip._source=c,this.openTooltip()},this),ft(g,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(c){var g=typeof c.getElement=="function"&&c.getElement();g&&g.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(c){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var g=this;this._map.once("moveend",function(){g._openOnceFlag=!1,g._openTooltip(c)});return}this._tooltip._source=c.layer||c.target,this.openTooltip(this._tooltip.options.sticky?c.latlng:void 0)}},_moveTooltip:function(c){var g=c.latlng,S,R;this._tooltip.options.sticky&&c.originalEvent&&(S=this._map.mouseEventToContainerPoint(c.originalEvent),R=this._map.containerPointToLayerPoint(S),g=this._map.layerPointToLatLng(R)),this._tooltip.setLatLng(g)}});var Gm=Hi.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(c){var g=c&&c.tagName==="DIV"?c:document.createElement("div"),S=this.options;if(S.html instanceof Element?(Gr(g),g.appendChild(S.html)):g.innerHTML=S.html!==!1?S.html:"",S.bgPos){var R=F(S.bgPos);g.style.backgroundPosition=-R.x+"px "+-R.y+"px"}return this._setIconStyles(g,"icon"),g},createShadow:function(){return null}});function p0(c){return new Gm(c)}Hi.Default=ql;var js=hi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:at.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(c){x(this,c)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(c){c._addZoomLimit(this)},onRemove:function(c){this._removeAllTiles(),Yt(this._container),c._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Xn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(bo(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(c){return this.options.opacity=c,this._updateOpacity(),this},setZIndex:function(c){return this.options.zIndex=c,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var c=this._clampZoom(this._map.getZoom());c!==this._tileZoom&&(this._tileZoom=c,this._updateLevels()),this._update()}return this},getEvents:function(){var c={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=f(this._onMoveEnd,this.options.updateInterval,this)),c.move=this._onMove),this._zoomAnimated&&(c.zoomanim=this._animateZoom),c},createTile:function(){return document.createElement("div")},getTileSize:function(){var c=this.options.tileSize;return c instanceof k?c:new k(c,c)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(c){for(var g=this.getPane().children,S=-c(-1/0,1/0),R=0,V=g.length,re;R<V;R++)re=g[R].style.zIndex,g[R]!==this._container&&re&&(S=c(S,+re));isFinite(S)&&(this.options.zIndex=S+c(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!at.ielt9){an(this._container,this.options.opacity);var c=+new Date,g=!1,S=!1;for(var R in this._tiles){var V=this._tiles[R];if(!(!V.current||!V.loaded)){var re=Math.min(1,(c-V.loaded)/200);an(V.el,re),re<1?g=!0:(V.active?S=!0:this._onOpaqueTile(V),V.active=!0)}}S&&!this._noPrune&&this._pruneTiles(),g&&(ne(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this))}},_onOpaqueTile:p,_initContainer:function(){this._container||(this._container=wt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var c=this._tileZoom,g=this.options.maxZoom;if(c!==void 0){for(var S in this._levels)S=Number(S),this._levels[S].el.children.length||S===c?(this._levels[S].el.style.zIndex=g-Math.abs(c-S),this._onUpdateLevel(S)):(Yt(this._levels[S].el),this._removeTilesAtZoom(S),this._onRemoveLevel(S),delete this._levels[S]);var R=this._levels[c],V=this._map;return R||(R=this._levels[c]={},R.el=wt("div","leaflet-tile-container leaflet-zoom-animated",this._container),R.el.style.zIndex=g,R.origin=V.project(V.unproject(V.getPixelOrigin()),c).round(),R.zoom=c,this._setZoomTransform(R,V.getCenter(),V.getZoom()),p(R.el.offsetWidth),this._onCreateLevel(R)),this._level=R,R}},_onUpdateLevel:p,_onRemoveLevel:p,_onCreateLevel:p,_pruneTiles:function(){if(this._map){var c,g,S=this._map.getZoom();if(S>this.options.maxZoom||S<this.options.minZoom){this._removeAllTiles();return}for(c in this._tiles)g=this._tiles[c],g.retain=g.current;for(c in this._tiles)if(g=this._tiles[c],g.current&&!g.active){var R=g.coords;this._retainParent(R.x,R.y,R.z,R.z-5)||this._retainChildren(R.x,R.y,R.z,R.z+2)}for(c in this._tiles)this._tiles[c].retain||this._removeTile(c)}},_removeTilesAtZoom:function(c){for(var g in this._tiles)this._tiles[g].coords.z===c&&this._removeTile(g)},_removeAllTiles:function(){for(var c in this._tiles)this._removeTile(c)},_invalidateAll:function(){for(var c in this._levels)Yt(this._levels[c].el),this._onRemoveLevel(Number(c)),delete this._levels[c];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(c,g,S,R){var V=Math.floor(c/2),re=Math.floor(g/2),me=S-1,Se=new k(+V,+re);Se.z=+me;var Te=this._tileCoordsToKey(Se),Ue=this._tiles[Te];return Ue&&Ue.active?(Ue.retain=!0,!0):(Ue&&Ue.loaded&&(Ue.retain=!0),me>R?this._retainParent(V,re,me,R):!1)},_retainChildren:function(c,g,S,R){for(var V=2*c;V<2*c+2;V++)for(var re=2*g;re<2*g+2;re++){var me=new k(V,re);me.z=S+1;var Se=this._tileCoordsToKey(me),Te=this._tiles[Se];if(Te&&Te.active){Te.retain=!0;continue}else Te&&Te.loaded&&(Te.retain=!0);S+1<R&&this._retainChildren(V,re,S+1,R)}},_resetView:function(c){var g=c&&(c.pinch||c.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),g,g)},_animateZoom:function(c){this._setView(c.center,c.zoom,!0,c.noUpdate)},_clampZoom:function(c){var g=this.options;return g.minNativeZoom!==void 0&&c<g.minNativeZoom?g.minNativeZoom:g.maxNativeZoom!==void 0&&g.maxNativeZoom<c?g.maxNativeZoom:c},_setView:function(c,g,S,R){var V=Math.round(g);this.options.maxZoom!==void 0&&V>this.options.maxZoom||this.options.minZoom!==void 0&&V<this.options.minZoom?V=void 0:V=this._clampZoom(V);var re=this.options.updateWhenZooming&&V!==this._tileZoom;(!R||re)&&(this._tileZoom=V,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),V!==void 0&&this._update(c),S||this._pruneTiles(),this._noPrune=!!S),this._setZoomTransforms(c,g)},_setZoomTransforms:function(c,g){for(var S in this._levels)this._setZoomTransform(this._levels[S],c,g)},_setZoomTransform:function(c,g,S){var R=this._map.getZoomScale(S,c.zoom),V=c.origin.multiplyBy(R).subtract(this._map._getNewPixelOrigin(g,S)).round();at.any3d?la(c.el,V,R):Qt(c.el,V)},_resetGrid:function(){var c=this._map,g=c.options.crs,S=this._tileSize=this.getTileSize(),R=this._tileZoom,V=this._map.getPixelWorldBounds(this._tileZoom);V&&(this._globalTileRange=this._pxBoundsToTileRange(V)),this._wrapX=g.wrapLng&&!this.options.noWrap&&[Math.floor(c.project([0,g.wrapLng[0]],R).x/S.x),Math.ceil(c.project([0,g.wrapLng[1]],R).x/S.y)],this._wrapY=g.wrapLat&&!this.options.noWrap&&[Math.floor(c.project([g.wrapLat[0],0],R).y/S.x),Math.ceil(c.project([g.wrapLat[1],0],R).y/S.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(c){var g=this._map,S=g._animatingZoom?Math.max(g._animateToZoom,g.getZoom()):g.getZoom(),R=g.getZoomScale(S,this._tileZoom),V=g.project(c,this._tileZoom).floor(),re=g.getSize().divideBy(R*2);return new P(V.subtract(re),V.add(re))},_update:function(c){var g=this._map;if(g){var S=this._clampZoom(g.getZoom());if(c===void 0&&(c=g.getCenter()),this._tileZoom!==void 0){var R=this._getTiledPixelBounds(c),V=this._pxBoundsToTileRange(R),re=V.getCenter(),me=[],Se=this.options.keepBuffer,Te=new P(V.getBottomLeft().subtract([Se,-Se]),V.getTopRight().add([Se,-Se]));if(!(isFinite(V.min.x)&&isFinite(V.min.y)&&isFinite(V.max.x)&&isFinite(V.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var Ue in this._tiles){var Xe=this._tiles[Ue].coords;(Xe.z!==this._tileZoom||!Te.contains(new k(Xe.x,Xe.y)))&&(this._tiles[Ue].current=!1)}if(Math.abs(S-this._tileZoom)>1){this._setView(c,S);return}for(var ot=V.min.y;ot<=V.max.y;ot++)for(var bt=V.min.x;bt<=V.max.x;bt++){var Qn=new k(bt,ot);if(Qn.z=this._tileZoom,!!this._isValidTile(Qn)){var An=this._tiles[this._tileCoordsToKey(Qn)];An?An.current=!0:me.push(Qn)}}if(me.sort(function(kt,It){return kt.distanceTo(re)-It.distanceTo(re)}),me.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Dr=document.createDocumentFragment();for(bt=0;bt<me.length;bt++)this._addTile(me[bt],Dr);this._level.el.appendChild(Dr)}}}},_isValidTile:function(c){var g=this._map.options.crs;if(!g.infinite){var S=this._globalTileRange;if(!g.wrapLng&&(c.x<S.min.x||c.x>S.max.x)||!g.wrapLat&&(c.y<S.min.y||c.y>S.max.y))return!1}if(!this.options.bounds)return!0;var R=this._tileCoordsToBounds(c);return te(this.options.bounds).overlaps(R)},_keyToBounds:function(c){return this._tileCoordsToBounds(this._keyToTileCoords(c))},_tileCoordsToNwSe:function(c){var g=this._map,S=this.getTileSize(),R=c.scaleBy(S),V=R.add(S),re=g.unproject(R,c.z),me=g.unproject(V,c.z);return[re,me]},_tileCoordsToBounds:function(c){var g=this._tileCoordsToNwSe(c),S=new Y(g[0],g[1]);return this.options.noWrap||(S=this._map.wrapLatLngBounds(S)),S},_tileCoordsToKey:function(c){return c.x+":"+c.y+":"+c.z},_keyToTileCoords:function(c){var g=c.split(":"),S=new k(+g[0],+g[1]);return S.z=+g[2],S},_removeTile:function(c){var g=this._tiles[c];g&&(Yt(g.el),delete this._tiles[c],this.fire("tileunload",{tile:g.el,coords:this._keyToTileCoords(c)}))},_initTile:function(c){ht(c,"leaflet-tile");var g=this.getTileSize();c.style.width=g.x+"px",c.style.height=g.y+"px",c.onselectstart=p,c.onmousemove=p,at.ielt9&&this.options.opacity<1&&an(c,this.options.opacity)},_addTile:function(c,g){var S=this._getTilePos(c),R=this._tileCoordsToKey(c),V=this.createTile(this._wrapCoords(c),s(this._tileReady,this,c));this._initTile(V),this.createTile.length<2&&J(s(this._tileReady,this,c,null,V)),Qt(V,S),this._tiles[R]={el:V,coords:c,current:!0},g.appendChild(V),this.fire("tileloadstart",{tile:V,coords:c})},_tileReady:function(c,g,S){g&&this.fire("tileerror",{error:g,tile:S,coords:c});var R=this._tileCoordsToKey(c);S=this._tiles[R],S&&(S.loaded=+new Date,this._map._fadeAnimated?(an(S.el,0),ne(this._fadeFrame),this._fadeFrame=J(this._updateOpacity,this)):(S.active=!0,this._pruneTiles()),g||(ht(S.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:S.el,coords:c})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),at.ielt9||!this._map._fadeAnimated?J(this._pruneTiles,this):setTimeout(s(this._pruneTiles,this),250)))},_getTilePos:function(c){return c.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(c){var g=new k(this._wrapX?m(c.x,this._wrapX):c.x,this._wrapY?m(c.y,this._wrapY):c.y);return g.z=c.z,g},_pxBoundsToTileRange:function(c){var g=this.getTileSize();return new P(c.min.unscaleBy(g).floor(),c.max.unscaleBy(g).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var c in this._tiles)if(!this._tiles[c].loaded)return!1;return!0}});function Ym(c){return new js(c)}var Ga=js.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(c,g){this._url=c,g=x(this,g),g.detectRetina&&at.retina&&g.maxZoom>0?(g.tileSize=Math.floor(g.tileSize/2),g.zoomReverse?(g.zoomOffset--,g.minZoom=Math.min(g.maxZoom,g.minZoom+1)):(g.zoomOffset++,g.maxZoom=Math.max(g.minZoom,g.maxZoom-1)),g.minZoom=Math.max(0,g.minZoom)):g.zoomReverse?g.minZoom=Math.min(g.maxZoom,g.minZoom):g.maxZoom=Math.max(g.minZoom,g.maxZoom),typeof g.subdomains=="string"&&(g.subdomains=g.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(c,g){return this._url===c&&g===void 0&&(g=!0),this._url=c,g||this.redraw(),this},createTile:function(c,g){var S=document.createElement("img");return ft(S,"load",s(this._tileOnLoad,this,g,S)),ft(S,"error",s(this._tileOnError,this,g,S)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(S.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(S.referrerPolicy=this.options.referrerPolicy),S.alt="",S.src=this.getTileUrl(c),S},getTileUrl:function(c){var g={r:at.retina?"@2x":"",s:this._getSubdomain(c),x:c.x,y:c.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var S=this._globalTileRange.max.y-c.y;this.options.tms&&(g.y=S),g["-y"]=S}return j(this._url,i(g,this.options))},_tileOnLoad:function(c,g){at.ielt9?setTimeout(s(c,this,null,g),0):c(null,g)},_tileOnError:function(c,g,S){var R=this.options.errorTileUrl;R&&g.getAttribute("src")!==R&&(g.src=R),c(S,g)},_onTileRemove:function(c){c.tile.onload=null},_getZoomForUrl:function(){var c=this._tileZoom,g=this.options.maxZoom,S=this.options.zoomReverse,R=this.options.zoomOffset;return S&&(c=g-c),c+R},_getSubdomain:function(c){var g=Math.abs(c.x+c.y)%this.options.subdomains.length;return this.options.subdomains[g]},_abortLoading:function(){var c,g;for(c in this._tiles)if(this._tiles[c].coords.z!==this._tileZoom&&(g=this._tiles[c].el,g.onload=p,g.onerror=p,!g.complete)){g.src=U;var S=this._tiles[c].coords;Yt(g),delete this._tiles[c],this.fire("tileabort",{tile:g,coords:S})}},_removeTile:function(c){var g=this._tiles[c];if(g)return g.el.setAttribute("src",U),js.prototype._removeTile.call(this,c)},_tileReady:function(c,g,S){if(!(!this._map||S&&S.getAttribute("src")===U))return js.prototype._tileReady.call(this,c,g,S)}});function Kr(c,g){return new Ga(c,g)}var Jl=Ga.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(c,g){this._url=c;var S=i({},this.defaultWmsParams);for(var R in g)R in this.options||(S[R]=g[R]);g=x(this,g);var V=g.detectRetina&&at.retina?2:1,re=this.getTileSize();S.width=re.x*V,S.height=re.y*V,this.wmsParams=S},onAdd:function(c){this._crs=this.options.crs||c.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var g=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[g]=this._crs.code,Ga.prototype.onAdd.call(this,c)},getTileUrl:function(c){var g=this._tileCoordsToNwSe(c),S=this._crs,R=G(S.project(g[0]),S.project(g[1])),V=R.min,re=R.max,me=(this._wmsVersion>=1.3&&this._crs===od?[V.y,V.x,re.y,re.x]:[V.x,V.y,re.x,re.y]).join(","),Se=Ga.prototype.getTileUrl.call(this,c);return Se+C(this.wmsParams,Se,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+me},setParams:function(c,g){return i(this.wmsParams,c),g||this.redraw(),this}});function Zr(c,g){return new Jl(c,g)}Ga.WMS=Jl,Kr.wms=Zr;var Er=hi.extend({options:{padding:.1},initialize:function(c){x(this,c),d(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),ht(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var c={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(c.zoomanim=this._onAnimZoom),c},_onAnimZoom:function(c){this._updateTransform(c.center,c.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(c,g){var S=this._map.getZoomScale(g,this._zoom),R=this._map.getSize().multiplyBy(.5+this.options.padding),V=this._map.project(this._center,g),re=R.multiplyBy(-S).add(V).subtract(this._map._getNewPixelOrigin(c,g));at.any3d?la(this._container,re,S):Qt(this._container,re)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var c in this._layers)this._layers[c]._reset()},_onZoomEnd:function(){for(var c in this._layers)this._layers[c]._project()},_updatePaths:function(){for(var c in this._layers)this._layers[c]._update()},_update:function(){var c=this.options.padding,g=this._map.getSize(),S=this._map.containerPointToLayerPoint(g.multiplyBy(-c)).round();this._bounds=new P(S,S.add(g.multiplyBy(1+c*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),dc=Er.extend({options:{tolerance:0},getEvents:function(){var c=Er.prototype.getEvents.call(this);return c.viewprereset=this._onViewPreReset,c},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Er.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var c=this._container=document.createElement("canvas");ft(c,"mousemove",this._onMouseMove,this),ft(c,"click dblclick mousedown mouseup contextmenu",this._onClick,this),ft(c,"mouseout",this._handleMouseOut,this),c._leaflet_disable_events=!0,this._ctx=c.getContext("2d")},_destroyContainer:function(){ne(this._redrawRequest),delete this._ctx,Yt(this._container),$t(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var c;this._redrawBounds=null;for(var g in this._layers)c=this._layers[g],c._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Er.prototype._update.call(this);var c=this._bounds,g=this._container,S=c.getSize(),R=at.retina?2:1;Qt(g,c.min),g.width=R*S.x,g.height=R*S.y,g.style.width=S.x+"px",g.style.height=S.y+"px",at.retina&&this._ctx.scale(2,2),this._ctx.translate(-c.min.x,-c.min.y),this.fire("update")}},_reset:function(){Er.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(c){this._updateDashArray(c),this._layers[d(c)]=c;var g=c._order={layer:c,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=g),this._drawLast=g,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(c){this._requestRedraw(c)},_removePath:function(c){var g=c._order,S=g.next,R=g.prev;S?S.prev=R:this._drawLast=R,R?R.next=S:this._drawFirst=S,delete c._order,delete this._layers[d(c)],this._requestRedraw(c)},_updatePath:function(c){this._extendRedrawBounds(c),c._project(),c._update(),this._requestRedraw(c)},_updateStyle:function(c){this._updateDashArray(c),this._requestRedraw(c)},_updateDashArray:function(c){if(typeof c.options.dashArray=="string"){var g=c.options.dashArray.split(/[, ]+/),S=[],R,V;for(V=0;V<g.length;V++){if(R=Number(g[V]),isNaN(R))return;S.push(R)}c.options._dashArray=S}else c.options._dashArray=c.options.dashArray},_requestRedraw:function(c){this._map&&(this._extendRedrawBounds(c),this._redrawRequest=this._redrawRequest||J(this._redraw,this))},_extendRedrawBounds:function(c){if(c._pxBounds){var g=(c.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new P,this._redrawBounds.extend(c._pxBounds.min.subtract([g,g])),this._redrawBounds.extend(c._pxBounds.max.add([g,g]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var c=this._redrawBounds;if(c){var g=c.getSize();this._ctx.clearRect(c.min.x,c.min.y,g.x,g.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var c,g=this._redrawBounds;if(this._ctx.save(),g){var S=g.getSize();this._ctx.beginPath(),this._ctx.rect(g.min.x,g.min.y,S.x,S.y),this._ctx.clip()}this._drawing=!0;for(var R=this._drawFirst;R;R=R.next)c=R.layer,(!g||c._pxBounds&&c._pxBounds.intersects(g))&&c._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(c,g){if(this._drawing){var S,R,V,re,me=c._parts,Se=me.length,Te=this._ctx;if(Se){for(Te.beginPath(),S=0;S<Se;S++){for(R=0,V=me[S].length;R<V;R++)re=me[S][R],Te[R?"lineTo":"moveTo"](re.x,re.y);g&&Te.closePath()}this._fillStroke(Te,c)}}},_updateCircle:function(c){if(!(!this._drawing||c._empty())){var g=c._point,S=this._ctx,R=Math.max(Math.round(c._radius),1),V=(Math.max(Math.round(c._radiusY),1)||R)/R;V!==1&&(S.save(),S.scale(1,V)),S.beginPath(),S.arc(g.x,g.y/V,R,0,Math.PI*2,!1),V!==1&&S.restore(),this._fillStroke(S,c)}},_fillStroke:function(c,g){var S=g.options;S.fill&&(c.globalAlpha=S.fillOpacity,c.fillStyle=S.fillColor||S.color,c.fill(S.fillRule||"evenodd")),S.stroke&&S.weight!==0&&(c.setLineDash&&c.setLineDash(g.options&&g.options._dashArray||[]),c.globalAlpha=S.opacity,c.lineWidth=S.weight,c.strokeStyle=S.color,c.lineCap=S.lineCap,c.lineJoin=S.lineJoin,c.stroke())},_onClick:function(c){for(var g=this._map.mouseEventToLayerPoint(c),S,R,V=this._drawFirst;V;V=V.next)S=V.layer,S.options.interactive&&S._containsPoint(g)&&(!(c.type==="click"||c.type==="preclick")||!this._map._draggableMoved(S))&&(R=S);this._fireEvent(R?[R]:!1,c)},_onMouseMove:function(c){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var g=this._map.mouseEventToLayerPoint(c);this._handleMouseHover(c,g)}},_handleMouseOut:function(c){var g=this._hoveredLayer;g&&(mn(this._container,"leaflet-interactive"),this._fireEvent([g],c,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(c,g){if(!this._mouseHoverThrottled){for(var S,R,V=this._drawFirst;V;V=V.next)S=V.layer,S.options.interactive&&S._containsPoint(g)&&(R=S);R!==this._hoveredLayer&&(this._handleMouseOut(c),R&&(ht(this._container,"leaflet-interactive"),this._fireEvent([R],c,"mouseover"),this._hoveredLayer=R)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,c),this._mouseHoverThrottled=!0,setTimeout(s(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(c,g,S){this._map._fireDOMEvent(g,S||g.type,c)},_bringToFront:function(c){var g=c._order;if(g){var S=g.next,R=g.prev;if(S)S.prev=R;else return;R?R.next=S:S&&(this._drawFirst=S),g.prev=this._drawLast,this._drawLast.next=g,g.next=null,this._drawLast=g,this._requestRedraw(c)}},_bringToBack:function(c){var g=c._order;if(g){var S=g.next,R=g.prev;if(R)R.next=S;else return;S?S.prev=R:R&&(this._drawLast=R),g.prev=null,g.next=this._drawFirst,this._drawFirst.prev=g,this._drawFirst=g,this._requestRedraw(c)}}});function eu(c){return at.canvas?new dc(c):null}var Ya=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(c){return document.createElement("<lvml:"+c+' class="lvml">')}}catch{}return function(c){return document.createElement("<"+c+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),sd={_initContainer:function(){this._container=wt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Er.prototype._update.call(this),this.fire("update"))},_initPath:function(c){var g=c._container=Ya("shape");ht(g,"leaflet-vml-shape "+(this.options.className||"")),g.coordsize="1 1",c._path=Ya("path"),g.appendChild(c._path),this._updateStyle(c),this._layers[d(c)]=c},_addPath:function(c){var g=c._container;this._container.appendChild(g),c.options.interactive&&c.addInteractiveTarget(g)},_removePath:function(c){var g=c._container;Yt(g),c.removeInteractiveTarget(g),delete this._layers[d(c)]},_updateStyle:function(c){var g=c._stroke,S=c._fill,R=c.options,V=c._container;V.stroked=!!R.stroke,V.filled=!!R.fill,R.stroke?(g||(g=c._stroke=Ya("stroke")),V.appendChild(g),g.weight=R.weight+"px",g.color=R.color,g.opacity=R.opacity,R.dashArray?g.dashStyle=O(R.dashArray)?R.dashArray.join(" "):R.dashArray.replace(/( *, *)/g," "):g.dashStyle="",g.endcap=R.lineCap.replace("butt","flat"),g.joinstyle=R.lineJoin):g&&(V.removeChild(g),c._stroke=null),R.fill?(S||(S=c._fill=Ya("fill")),V.appendChild(S),S.color=R.fillColor||R.color,S.opacity=R.fillOpacity):S&&(V.removeChild(S),c._fill=null)},_updateCircle:function(c){var g=c._point.round(),S=Math.round(c._radius),R=Math.round(c._radiusY||S);this._setPath(c,c._empty()?"M0 0":"AL "+g.x+","+g.y+" "+S+","+R+" 0,"+65535*360)},_setPath:function(c,g){c._path.v=g},_bringToFront:function(c){Xn(c._container)},_bringToBack:function(c){bo(c._container)}},Gi=at.vml?Ya:ve,Ms=Er.extend({_initContainer:function(){this._container=Gi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Gi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Yt(this._container),$t(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){Er.prototype._update.call(this);var c=this._bounds,g=c.getSize(),S=this._container;(!this._svgSize||!this._svgSize.equals(g))&&(this._svgSize=g,S.setAttribute("width",g.x),S.setAttribute("height",g.y)),Qt(S,c.min),S.setAttribute("viewBox",[c.min.x,c.min.y,g.x,g.y].join(" ")),this.fire("update")}},_initPath:function(c){var g=c._path=Gi("path");c.options.className&&ht(g,c.options.className),c.options.interactive&&ht(g,"leaflet-interactive"),this._updateStyle(c),this._layers[d(c)]=c},_addPath:function(c){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(c._path),c.addInteractiveTarget(c._path)},_removePath:function(c){Yt(c._path),c.removeInteractiveTarget(c._path),delete this._layers[d(c)]},_updatePath:function(c){c._project(),c._update()},_updateStyle:function(c){var g=c._path,S=c.options;g&&(S.stroke?(g.setAttribute("stroke",S.color),g.setAttribute("stroke-opacity",S.opacity),g.setAttribute("stroke-width",S.weight),g.setAttribute("stroke-linecap",S.lineCap),g.setAttribute("stroke-linejoin",S.lineJoin),S.dashArray?g.setAttribute("stroke-dasharray",S.dashArray):g.removeAttribute("stroke-dasharray"),S.dashOffset?g.setAttribute("stroke-dashoffset",S.dashOffset):g.removeAttribute("stroke-dashoffset")):g.setAttribute("stroke","none"),S.fill?(g.setAttribute("fill",S.fillColor||S.color),g.setAttribute("fill-opacity",S.fillOpacity),g.setAttribute("fill-rule",S.fillRule||"evenodd")):g.setAttribute("fill","none"))},_updatePoly:function(c,g){this._setPath(c,de(c._parts,g))},_updateCircle:function(c){var g=c._point,S=Math.max(Math.round(c._radius),1),R=Math.max(Math.round(c._radiusY),1)||S,V="a"+S+","+R+" 0 1,0 ",re=c._empty()?"M0 0":"M"+(g.x-S)+","+g.y+V+S*2+",0 "+V+-S*2+",0 ";this._setPath(c,re)},_setPath:function(c,g){c._path.setAttribute("d",g)},_bringToFront:function(c){Xn(c._path)},_bringToBack:function(c){bo(c._path)}});at.vml&&Ms.include(sd);function tu(c){return at.svg||at.vml?new Ms(c):null}Ot.include({getRenderer:function(c){var g=c.options.renderer||this._getPaneRenderer(c.options.pane)||this.options.renderer||this._renderer;return g||(g=this._renderer=this._createRenderer()),this.hasLayer(g)||this.addLayer(g),g},_getPaneRenderer:function(c){if(c==="overlayPane"||c===void 0)return!1;var g=this._paneRenderers[c];return g===void 0&&(g=this._createRenderer({pane:c}),this._paneRenderers[c]=g),g},_createRenderer:function(c){return this.options.preferCanvas&&eu(c)||tu(c)}});var So=Es.extend({initialize:function(c,g){Es.prototype.initialize.call(this,this._boundsToLatLngs(c),g)},setBounds:function(c){return this.setLatLngs(this._boundsToLatLngs(c))},_boundsToLatLngs:function(c){return c=te(c),[c.getSouthWest(),c.getNorthWest(),c.getNorthEast(),c.getSouthEast()]}});function g0(c,g){return new So(c,g)}Ms.create=Gi,Ms.pointsToPath=de,da.geometryToLayer=sr,da.coordsToLatLng=sc,da.coordsToLatLngs=Wl,da.latLngToCoords=lc,da.latLngsToCoords=Kl,da.getFeature=Va,da.asFeature=uc,Ot.mergeOptions({boxZoom:!0});var Ar=$i.extend({initialize:function(c){this._map=c,this._container=c._container,this._pane=c._panes.overlayPane,this._resetStateTimeout=0,c.on("unload",this._destroy,this)},addHooks:function(){ft(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){$t(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Yt(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(c){if(!c.shiftKey||c.which!==1&&c.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),gs(),Qu(),this._startPoint=this._map.mouseEventToContainerPoint(c),ft(document,{contextmenu:Fa,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(c){this._moved||(this._moved=!0,this._box=wt("div","leaflet-zoom-box",this._container),ht(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(c);var g=new P(this._point,this._startPoint),S=g.getSize();Qt(this._box,g.min),this._box.style.width=S.x+"px",this._box.style.height=S.y+"px"},_finish:function(){this._moved&&(Yt(this._box),mn(this._container,"leaflet-crosshair")),Bi(),Il(),$t(document,{contextmenu:Fa,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(c){if(!(c.which!==1&&c.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(s(this._resetState,this),0);var g=new Y(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(g).fire("boxzoomend",{boxZoomBounds:g})}},_onKeyDown:function(c){c.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ot.addInitHook("addHandler","boxZoom",Ar),Ot.mergeOptions({doubleClickZoom:!0});var hc=$i.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(c){var g=this._map,S=g.getZoom(),R=g.options.zoomDelta,V=c.originalEvent.shiftKey?S-R:S+R;g.options.doubleClickZoom==="center"?g.setZoom(V):g.setZoomAround(c.containerPoint,V)}});Ot.addInitHook("addHandler","doubleClickZoom",hc),Ot.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Yi=$i.extend({addHooks:function(){if(!this._draggable){var c=this._map;this._draggable=new $a(c._mapPane,c._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),c.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),c.on("zoomend",this._onZoomEnd,this),c.whenReady(this._onZoomEnd,this))}ht(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){mn(this._map._container,"leaflet-grab"),mn(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var c=this._map;if(c._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var g=te(this._map.options.maxBounds);this._offsetLimit=G(this._map.latLngToContainerPoint(g.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(g.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;c.fire("movestart").fire("dragstart"),c.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(c){if(this._map.options.inertia){var g=this._lastTime=+new Date,S=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(S),this._times.push(g),this._prunePositions(g)}this._map.fire("move",c).fire("drag",c)},_prunePositions:function(c){for(;this._positions.length>1&&c-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var c=this._map.getSize().divideBy(2),g=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=g.subtract(c).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(c,g){return c-(c-g)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var c=this._draggable._newPos.subtract(this._draggable._startPos),g=this._offsetLimit;c.x<g.min.x&&(c.x=this._viscousLimit(c.x,g.min.x)),c.y<g.min.y&&(c.y=this._viscousLimit(c.y,g.min.y)),c.x>g.max.x&&(c.x=this._viscousLimit(c.x,g.max.x)),c.y>g.max.y&&(c.y=this._viscousLimit(c.y,g.max.y)),this._draggable._newPos=this._draggable._startPos.add(c)}},_onPreDragWrap:function(){var c=this._worldWidth,g=Math.round(c/2),S=this._initialWorldOffset,R=this._draggable._newPos.x,V=(R-g+S)%c+g-S,re=(R+g+S)%c-g-S,me=Math.abs(V+S)<Math.abs(re+S)?V:re;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=me},_onDragEnd:function(c){var g=this._map,S=g.options,R=!S.inertia||c.noInertia||this._times.length<2;if(g.fire("dragend",c),R)g.fire("moveend");else{this._prunePositions(+new Date);var V=this._lastPos.subtract(this._positions[0]),re=(this._lastTime-this._times[0])/1e3,me=S.easeLinearity,Se=V.multiplyBy(me/re),Te=Se.distanceTo([0,0]),Ue=Math.min(S.inertiaMaxSpeed,Te),Xe=Se.multiplyBy(Ue/Te),ot=Ue/(S.inertiaDeceleration*me),bt=Xe.multiplyBy(-ot/2).round();!bt.x&&!bt.y?g.fire("moveend"):(bt=g._limitOffset(bt,g.options.maxBounds),J(function(){g.panBy(bt,{duration:ot,easeLinearity:me,noMoveStart:!0,animate:!0})}))}}});Ot.addInitHook("addHandler","dragging",Yi),Ot.mergeOptions({keyboard:!0,keyboardPanDelta:80});var ld=$i.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(c){this._map=c,this._setPanDelta(c.options.keyboardPanDelta),this._setZoomDelta(c.options.zoomDelta)},addHooks:function(){var c=this._map._container;c.tabIndex<=0&&(c.tabIndex="0"),ft(c,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),$t(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var c=document.body,g=document.documentElement,S=c.scrollTop||g.scrollTop,R=c.scrollLeft||g.scrollLeft;this._map._container.focus(),window.scrollTo(R,S)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(c){var g=this._panKeys={},S=this.keyCodes,R,V;for(R=0,V=S.left.length;R<V;R++)g[S.left[R]]=[-1*c,0];for(R=0,V=S.right.length;R<V;R++)g[S.right[R]]=[c,0];for(R=0,V=S.down.length;R<V;R++)g[S.down[R]]=[0,c];for(R=0,V=S.up.length;R<V;R++)g[S.up[R]]=[0,-1*c]},_setZoomDelta:function(c){var g=this._zoomKeys={},S=this.keyCodes,R,V;for(R=0,V=S.zoomIn.length;R<V;R++)g[S.zoomIn[R]]=c;for(R=0,V=S.zoomOut.length;R<V;R++)g[S.zoomOut[R]]=-c},_addHooks:function(){ft(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){$t(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(c){if(!(c.altKey||c.ctrlKey||c.metaKey)){var g=c.keyCode,S=this._map,R;if(g in this._panKeys){if(!S._panAnim||!S._panAnim._inProgress)if(R=this._panKeys[g],c.shiftKey&&(R=F(R).multiplyBy(3)),S.options.maxBounds&&(R=S._limitOffset(F(R),S.options.maxBounds)),S.options.worldCopyJump){var V=S.wrapLatLng(S.unproject(S.project(S.getCenter()).add(R)));S.panTo(V)}else S.panBy(R)}else if(g in this._zoomKeys)S.setZoom(S.getZoom()+(c.shiftKey?3:1)*this._zoomKeys[g]);else if(g===27&&S._popup&&S._popup.options.closeOnEscapeKey)S.closePopup();else return;Fa(c)}}});Ot.addInitHook("addHandler","keyboard",ld),Ot.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var nu=$i.extend({addHooks:function(){ft(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){$t(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(c){var g=mr(c),S=this._map.options.wheelDebounceTime;this._delta+=g,this._lastMousePos=this._map.mouseEventToContainerPoint(c),this._startTime||(this._startTime=+new Date);var R=Math.max(S-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(s(this._performZoom,this),R),Fa(c)},_performZoom:function(){var c=this._map,g=c.getZoom(),S=this._map.options.zoomSnap||0;c._stop();var R=this._delta/(this._map.options.wheelPxPerZoomLevel*4),V=4*Math.log(2/(1+Math.exp(-Math.abs(R))))/Math.LN2,re=S?Math.ceil(V/S)*S:V,me=c._limitZoom(g+(this._delta>0?re:-re))-g;this._delta=0,this._startTime=null,me&&(c.options.scrollWheelZoom==="center"?c.setZoom(g+me):c.setZoomAround(this._lastMousePos,g+me))}});Ot.addInitHook("addHandler","scrollWheelZoom",nu);var Co=600;Ot.mergeOptions({tapHold:at.touchNative&&at.safari&&at.mobile,tapTolerance:15});var mc=$i.extend({addHooks:function(){ft(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){$t(this._map._container,"touchstart",this._onDown,this)},_onDown:function(c){if(clearTimeout(this._holdTimeout),c.touches.length===1){var g=c.touches[0];this._startPos=this._newPos=new k(g.clientX,g.clientY),this._holdTimeout=setTimeout(s(function(){this._cancel(),this._isTapValid()&&(ft(document,"touchend",En),ft(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",g))},this),Co),ft(document,"touchend touchcancel contextmenu",this._cancel,this),ft(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function c(){$t(document,"touchend",En),$t(document,"touchend touchcancel",c)},_cancel:function(){clearTimeout(this._holdTimeout),$t(document,"touchend touchcancel contextmenu",this._cancel,this),$t(document,"touchmove",this._onMove,this)},_onMove:function(c){var g=c.touches[0];this._newPos=new k(g.clientX,g.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(c,g){var S=new MouseEvent(c,{bubbles:!0,cancelable:!0,view:window,screenX:g.screenX,screenY:g.screenY,clientX:g.clientX,clientY:g.clientY});S._simulated=!0,g.target.dispatchEvent(S)}});Ot.addInitHook("addHandler","tapHold",mc),Ot.mergeOptions({touchZoom:at.touch,bounceAtZoomLimits:!0});var ud=$i.extend({addHooks:function(){ht(this._map._container,"leaflet-touch-zoom"),ft(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){mn(this._map._container,"leaflet-touch-zoom"),$t(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(c){var g=this._map;if(!(!c.touches||c.touches.length!==2||g._animatingZoom||this._zooming)){var S=g.mouseEventToContainerPoint(c.touches[0]),R=g.mouseEventToContainerPoint(c.touches[1]);this._centerPoint=g.getSize()._divideBy(2),this._startLatLng=g.containerPointToLatLng(this._centerPoint),g.options.touchZoom!=="center"&&(this._pinchStartLatLng=g.containerPointToLatLng(S.add(R)._divideBy(2))),this._startDist=S.distanceTo(R),this._startZoom=g.getZoom(),this._moved=!1,this._zooming=!0,g._stop(),ft(document,"touchmove",this._onTouchMove,this),ft(document,"touchend touchcancel",this._onTouchEnd,this),En(c)}},_onTouchMove:function(c){if(!(!c.touches||c.touches.length!==2||!this._zooming)){var g=this._map,S=g.mouseEventToContainerPoint(c.touches[0]),R=g.mouseEventToContainerPoint(c.touches[1]),V=S.distanceTo(R)/this._startDist;if(this._zoom=g.getScaleZoom(V,this._startZoom),!g.options.bounceAtZoomLimits&&(this._zoom<g.getMinZoom()&&V<1||this._zoom>g.getMaxZoom()&&V>1)&&(this._zoom=g._limitZoom(this._zoom)),g.options.touchZoom==="center"){if(this._center=this._startLatLng,V===1)return}else{var re=S._add(R)._divideBy(2)._subtract(this._centerPoint);if(V===1&&re.x===0&&re.y===0)return;this._center=g.unproject(g.project(this._pinchStartLatLng,this._zoom).subtract(re),this._zoom)}this._moved||(g._moveStart(!0,!1),this._moved=!0),ne(this._animRequest);var me=s(g._move,g,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=J(me,this,!0),En(c)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,ne(this._animRequest),$t(document,"touchmove",this._onTouchMove,this),$t(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ot.addInitHook("addHandler","touchZoom",ud),Ot.BoxZoom=Ar,Ot.DoubleClickZoom=hc,Ot.Drag=Yi,Ot.Keyboard=ld,Ot.ScrollWheelZoom=nu,Ot.TapHold=mc,Ot.TouchZoom=ud,n.Bounds=P,n.Browser=at,n.CRS=ge,n.Canvas=dc,n.Circle=oc,n.CircleMarker=Cs,n.Class=Q,n.Control=Lr,n.DivIcon=Gm,n.DivOverlay=lr,n.DomEvent=tc,n.DomUtil=bs,n.Draggable=$a,n.Evented=I,n.FeatureGroup=Vi,n.GeoJSON=da,n.GridLayer=js,n.Handler=$i,n.Icon=Hi,n.ImageOverlay=Ts,n.LatLng=ue,n.LatLngBounds=Y,n.Layer=hi,n.LayerGroup=Ss,n.LineUtil=c0,n.Map=Ot,n.Marker=Yl,n.Mixin=o0,n.Path=qi,n.Point=k,n.PolyUtil=id,n.Polygon=Es,n.Polyline=fa,n.Popup=Xl,n.PosAnimation=_s,n.Projection=Im,n.Rectangle=So,n.Renderer=Er,n.SVG=Ms,n.SVGOverlay=fc,n.TileLayer=Ga,n.Tooltip=Ql,n.Transformation=le,n.Util=he,n.VideoOverlay=qa,n.bind=s,n.bounds=G,n.canvas=eu,n.circle=$m,n.circleMarker=Fm,n.control=ca,n.divIcon=p0,n.extend=i,n.featureGroup=zm,n.geoJSON=cc,n.geoJson=Zl,n.gridLayer=Ym,n.icon=Hl,n.imageOverlay=Vm,n.latLng=fe,n.latLngBounds=te,n.layerGroup=f0,n.map=Qf,n.marker=Bm,n.point=F,n.polygon=h0,n.polyline=d0,n.popup=qm,n.rectangle=g0,n.setOptions=x,n.stamp=d,n.svg=tu,n.svgOverlay=Hm,n.tileLayer=Kr,n.tooltip=m0,n.transformation=H,n.version=r,n.videoOverlay=Os;var cd=window.L;n.noConflict=function(){return window.L=cd,this},window.L=n})}(fh,fh.exports)),fh.exports}var gm=Wpe();const jP=Li(gm);function KC(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function ZC(e,t){return t==null?function(r,i){const o=A.useRef(void 0);return o.current||(o.current=e(r,i)),o}:function(r,i){const o=A.useRef(void 0);o.current||(o.current=e(r,i));const s=A.useRef(r),{instance:u}=o.current;return A.useEffect(function(){s.current!==r&&(t(u,r,s.current),s.current=r)},[u,r,t]),o}}function Kpe(e,t){A.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){t.layerContainer?.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function lI(e){return function(n){const r=oI(),i=e(WC(n,r),r);return aI(r.map,n.attribution),sI(i.current,n.eventHandlers),Kpe(i.current,r),i}}function Zpe(e,t){const n=ZC(e,t),r=lI(n);return Vpe(r)}function Xpe(e,t){const n=ZC(e),r=Gpe(n,t);return Hpe(r)}function Qpe(e,t){const n=ZC(e,t),r=lI(n);return qpe(r)}function Jpe(e,t,n){const{opacity:r,zIndex:i}=t;r!=null&&r!==n.opacity&&e.setOpacity(r),i!=null&&i!==n.zIndex&&e.setZIndex(i)}function ege({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:o,placeholder:s,style:u,whenReady:d,zoom:f,...m},p){const[b]=A.useState({className:i,id:o,style:u}),[_,w]=A.useState(null),x=A.useRef(void 0);A.useImperativeHandle(p,()=>_?.map??null,[_]);const C=A.useCallback(j=>{if(j!==null&&!x.current){const O=new gm.Map(j,m);x.current=O,n!=null&&f!=null?O.setView(n,f):e!=null&&O.fitBounds(e,t),d!=null&&O.whenReady(d),w(Fpe(O))}},[]);A.useEffect(()=>()=>{_?.map.remove()},[_]);const E=_?tf.createElement(YC,{value:_},r):s??null;return tf.createElement("div",{...b,ref:C},E)}const tge=A.forwardRef(ege),nge=Zpe(function({position:t,...n},r){const i=new gm.Marker(t,n);return KC(i,$pe(r,{overlayContainer:i}))},function(t,n,r){n.position!==r.position&&t.setLatLng(n.position),n.icon!=null&&n.icon!==r.icon&&t.setIcon(n.icon),n.zIndexOffset!=null&&n.zIndexOffset!==r.zIndexOffset&&t.setZIndexOffset(n.zIndexOffset),n.opacity!=null&&n.opacity!==r.opacity&&t.setOpacity(n.opacity),t.dragging!=null&&n.draggable!==r.draggable&&(n.draggable===!0?t.dragging.enable():t.dragging.disable())}),rge=Xpe(function(t,n){const r=new gm.Popup(t,n.overlayContainer);return KC(r,n)},function(t,n,{position:r},i){A.useEffect(function(){const{instance:s}=t;function u(f){f.popup===s&&(s.update(),i(!0))}function d(f){f.popup===s&&i(!1)}return n.map.on({popupopen:u,popupclose:d}),n.overlayContainer==null?(r!=null&&s.setLatLng(r),s.openOn(n.map)):n.overlayContainer.bindPopup(s),function(){n.map.off({popupopen:u,popupclose:d}),n.overlayContainer?.unbindPopup(),n.map.removeLayer(s)}},[t,n,i,r])}),ige=Qpe(function({url:t,...n},r){const i=new gm.TileLayer(t,WC(n,r));return KC(i,r)},function(t,n,r){Jpe(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),age={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast","Pale Moon":"pale_moon",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},uI={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",pale_moon:"Pale Moon",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},xn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv",bot:"bot"},Ir={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},Js={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class Be{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const i=Be.getVersionPrecision(t),o=Be.getVersionPrecision(n);let s=Math.max(i,o),u=0;const d=Be.map([t,n],f=>{const m=s-Be.getVersionPrecision(f),p=f+new Array(m+1).join(".0");return Be.map(p.split("."),b=>new Array(20-b.length).join("0")+b).reverse()});for(r&&(u=s-Math.min(i,o)),s-=1;s>=u;){if(d[0][s]>d[1][s])return 1;if(d[0][s]===d[1][s]){if(s===u)return 0;s-=1}else if(d[0][s]<d[1][s])return-1}}static map(t,n){const r=[];let i;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(i=0;i<t.length;i+=1)r.push(n(t[i]));return r}static find(t,n){let r,i;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,i=t.length;r<i;r+=1){const o=t[r];if(n(o,r))return o}}static assign(t,...n){const r=t;let i,o;if(Object.assign)return Object.assign(t,...n);for(i=0,o=n.length;i<o;i+=1){const s=n[i];typeof s=="object"&&s!==null&&Object.keys(s).forEach(d=>{r[d]=s[d]})}return t}static getBrowserAlias(t){return age[t]}static getBrowserTypeByAlias(t){return uI[t]||""}}const Xt=/version\/(\d+(\.?_?\d+)+)/i,oge=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=Be.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=Be.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/PaleMoon/i],describe(e){const t={name:"Pale Moon"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:PaleMoon)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=Be.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=Be.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=Be.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=Be.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=Be.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=Be.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=Be.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=Be.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=Be.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=Be.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=Be.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=Be.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=Be.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=Be.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=Be.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=Be.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=Be.getFirstMatch(Xt,e)||Be.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=Be.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=Be.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=Be.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=Be.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=Be.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=Be.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=Be.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=Be.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=Be.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=Be.getFirstMatch(Xt,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:Be.getFirstMatch(i,e),version:Be.getSecondMatch(i,e)}}}],sge=[{test:[/Roku\/DVP/],describe(e){const t=Be.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:Ir.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=Be.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:Ir.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=Be.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=Be.getWindowsVersionName(t);return{name:Ir.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:Ir.iOS},n=Be.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=Be.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=Be.getMacOSVersionName(t),r={name:Ir.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=Be.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:Ir.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=Be.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=Be.getAndroidVersionName(t),r={name:Ir.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=Be.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:Ir.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=Be.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||Be.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||Be.getFirstMatch(/\bbb(\d+)/i,e);return{name:Ir.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=Be.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:Ir.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=Be.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:Ir.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:Ir.Linux}}},{test:[/CrOS/],describe(){return{name:Ir.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=Be.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:Ir.PlayStation4,version:t}}}],lge=[{test:[/googlebot/i],describe(){return{type:xn.bot,vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=Be.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:xn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:xn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:xn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:xn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:xn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:xn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:xn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=Be.getFirstMatch(/(ipod|iphone)/i,e);return{type:xn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:xn.mobile,vendor:"Nexus"}}},{test:[/Nokia/i],describe(e){const t=Be.getFirstMatch(/Nokia\s+([0-9]+(\.[0-9]+)?)/i,e),n={type:xn.mobile,vendor:"Nokia"};return t&&(n.model=t),n}},{test:[/[^-]mobi/i],describe(){return{type:xn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:xn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:xn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:xn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:xn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:xn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:xn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:xn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:xn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:xn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:xn.tv}}}],uge=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Js.Blink};const n=Be.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Js.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Js.Trident},n=Be.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Js.Presto},n=Be.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:Js.Gecko},n=Be.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Js.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Js.WebKit},n=Be.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class MP{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=Be.find(oge,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=Be.find(sge,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=Be.find(lge,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=Be.find(uge,n=>{if(typeof n.test=="function")return n.test(this);if(Array.isArray(n.test))return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return Be.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let o=0;if(Object.keys(t).forEach(u=>{const d=t[u];typeof d=="string"?(i[u]=d,o+=1):typeof d=="object"&&(n[u]=d,r+=1)}),r>0){const u=Object.keys(n),d=Be.find(u,m=>this.isOS(m));if(d){const m=this.satisfies(n[d]);if(m!==void 0)return m}const f=Be.find(u,m=>this.isPlatform(m));if(f){const m=this.satisfies(n[f]);if(m!==void 0)return m}}if(o>0){const u=Object.keys(i),d=Be.find(u,f=>this.isBrowser(f,!0));if(d!==void 0)return this.compareVersion(i[d])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const o=Be.getBrowserTypeByAlias(i);return n&&o&&(i=o.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const o=this.getBrowserVersion();if(typeof o=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(i=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(i=!0,r=t.substr(1)),n.indexOf(Be.compareVersions(o,r,i))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
* Bowser - a browser detector
* https://github.com/lancedikson/bowser
* MIT License | (c) Dustin Diaz 2012-2015
* MIT License | (c) Denis Demchenko 2015-2019
*/class cge{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new MP(t,n)}static parse(t){return new MP(t).getResult()}static get BROWSER_MAP(){return uI}static get ENGINE_MAP(){return Js}static get OS_MAP(){return Ir}static get PLATFORMS_MAP(){return xn}}const fge=e=>e?.type===Hw.INVALID_ARGUMENT,dge=e=>e?.type===Hw.INVALID_SHORT_URL_DELETION,hge=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Ii=e=>hge(e)?e:void 0,XC=e=>"error"in e,so=({errorData:e,fallbackMessage:t})=>y.jsxs(y.Fragment,{children:[e?.detail??t,fge(e)&&y.jsxs("p",{children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),cI=A.createContext(""),mge=cI.Provider,ds=()=>A.useContext(cI),fI=A.createContext(void 0),{Provider:QC}=fI,Yy=()=>A.useContext(fI),pge=5,JC=()=>{const[e,t]=A.useState([]),n=A.useMemo(()=>e.length>=pge,[e.length]),r=A.useCallback(u=>!n&&t(d=>[...d,u]),[n]),i=A.useCallback(u=>!n&&e.every(d=>d.name!==u),[e,n]),o=A.useCallback(u=>t(d=>d.filter(f=>f!==u)),[]),s=A.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:o,clearItemsToCompare:s,canAddItemWithName:i}},e3=({className:e,type:t})=>{const n=ds(),r=Yy(),i=A.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(d=>d.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:o,clearItemsToCompare:s,removeItemToCompare:u}=r;return y.jsx("div",{className:Pe("sticky top-(--header-height) z-10",e),children:y.jsxs(Pt,{bodyClassName:"flex flex-col lg:flex-row gap-4 items-center",children:[y.jsx("ul",{className:"flex flex-wrap gap-1 grow items-center",children:o.map((d,f)=>y.jsxs("li",{className:Pe("flex items-center gap-1 text-sm font-bold text-white py-0.5 px-1.5 rounded",{"bg-gray-500":!d.style?.backgroundColor}),style:d.style,children:[d.name,y.jsx(Du,{label:`Remove ${d.name}`,className:"text-xs",onClick:()=>u(d)})]},`${d.name}_${f}`))}),y.jsxs("div",{className:"flex gap-2 max-lg:w-full",children:[y.jsxs(Rt,{className:"grow whitespace-nowrap",disabled:o.length<2,to:o.length>1?`${n}/${t}/compare-visits?${t}=${i}`:void 0,children:[y.jsx(Ye,{icon:Yv}),"Compare (",o.length,"/5)",y.jsx(Ye,{icon:Ig})]}),y.jsx(Rt,{"aria-label":"Close compare",variant:"secondary",onClick:s,children:y.jsx(Ye,{icon:dw})})]})]})})},gge=(e,{maxVersion:t,minVersion:n})=>{const r=!n||Kx(e,n,">=");return(!t||Kx(e,t,"<="))&&r},dI={shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},deviceLongUrls:{maxVersion:"3.*.*"},urlValidation:{maxVersion:"3.*.*"},shortUrlRedirectRules:{minVersion:"4.0.0"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"},advancedQueryRedirectConditions:{minVersion:"4.5.0"},desktopDeviceTypes:{minVersion:"4.5.0"}};Object.freeze(dI);const Ja=(e,t)=>gge(t==="latest"?"999.99.99":t,dI[e]),hI=e=>({deviceLongUrls:Ja("deviceLongUrls",e),shortUrlVisitsDeletion:Ja("shortUrlVisitsDeletion",e),orphanVisitsDeletion:Ja("orphanVisitsDeletion",e),shortUrlRedirectRules:Ja("shortUrlRedirectRules",e),urlValidation:Ja("urlValidation",e),ipRedirectCondition:Ja("ipRedirectCondition",e),geolocationRedirectCondition:Ja("geolocationRedirectCondition",e),filterShortUrlsByDomain:Ja("filterShortUrlsByDomain",e),advancedQueryRedirectConditions:Ja("advancedQueryRedirectConditions",e),desktopDeviceTypes:Ja("advancedQueryRedirectConditions",e)}),mI=A.createContext(hI("0.0.0")),vge=mI.Provider,yge=e=>A.useMemo(()=>hI(e),[e]),ra=e=>A.useContext(mI)[e],pf="DEFAULT",ix=({children:e,onChange:t,infoTitle:n,...r})=>y.jsx(li,{...r,onChange:i=>t(i.target.value),label:y.jsxs(y.Fragment,{children:[y.jsx(Ye,{className:"mr-1.5",icon:Kv,title:n}),e]}),type:"url",placeholder:"No redirect"}),bge=({isOpen:e,onClose:t,domain:n,editDomainRedirects:r})=>{const[i,o]=A.useState(n.redirects?.baseUrlRedirect??""),[s,u]=A.useState(n.redirects?.regular404Redirect??""),[d,f]=A.useState(n.redirects?.invalidShortUrlRedirect??""),[m,p]=A.useState(!1),b=A.useCallback(async()=>{p(!0);try{await r({domain:n.domain,redirects:{baseUrlRedirect:xb(i),regular404Redirect:xb(s),invalidShortUrlRedirect:xb(d)}}),t()}finally{p(!1)}},[r,n.domain,i,s,d,t]);return y.jsx(co,{title:`Edit redirects for ${n.domain}`,open:e,onClose:t,onConfirm:b,confirmText:m?"Saving...":"Save",confirmDisabled:m,children:y.jsxs("div",{className:"flex flex-col gap-y-3",children:[y.jsx(ix,{value:i,onChange:o,infoTitle:`Visitors accessing the base url, as in https://${n.domain}/, will be redirected to this URL.`,children:"Base URL"}),y.jsx(ix,{value:s,onChange:u,infoTitle:`Visitors accessing a url not matching a short URL pattern, as in https://${n.domain}/???/[...], will be redirected to this URL.`,children:"Regular 404"}),y.jsx(ix,{value:d,onChange:f,infoTitle:"Visitors accessing a url matching a short URL pattern, but not matching an existing short code, will be redirected to this URL.",children:"Invalid short URL"})]})})},_ge=({domain:e,editDomainRedirects:t})=>{const{flag:n,setToTrue:r,setToFalse:i}=wn(),o=ds(),s=Yy(),u=ra("filterShortUrlsByDomain");return y.jsxs(y.Fragment,{children:[y.jsxs(rn,{menuAlignment:"right",children:[y.jsxs(rn.Item,{className:"gap-1.5",to:`${o}/domain/${e.domain}${e.isDefault?`_${pf}`:""}/visits`,children:[y.jsx(Ye,{icon:mw})," Visit stats"]}),y.jsxs(rn.Item,{className:"gap-1.5",disabled:!s||!s.canAddItemWithName(e.domain),onClick:()=>s?.addItemToCompare({name:e.domain,query:e.domain}),children:[y.jsx(Ye,{icon:Yv})," Compare visits"]}),u&&y.jsxs(rn.Item,{className:"gap-1.5",to:`${o}/list-short-urls/1?domain=${e.isDefault?pf:e.domain}`,children:[y.jsx(Ye,{icon:hw})," Short URLs"]}),y.jsx(rn.Separator,{}),y.jsxs(rn.Item,{onClick:r,className:"gap-1.5",children:[y.jsx(Ye,{icon:fw})," Edit redirects"]})]}),y.jsx(bge,{domain:e,isOpen:n,onClose:i,editDomainRedirects:t})]})},xge=({status:e})=>{const{anchor:t,tooltip:n}=fo();return e==="validating"?y.jsx(Ye,{icon:cw,spin:!0}):y.jsxs("span",{...t,children:[y.jsx(Ye,{icon:e==="valid"?Ru:gV,className:Pe({"text-danger":e!=="valid"})}),y.jsx(ho,{...n,children:e==="valid"?y.jsxs(y.Fragment,{children:["Congratulations!",y.jsx("br",{}),"This domain is properly configured."]}):y.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",y.jsx("br",{}),"Check the ",y.jsx(Ti,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},ax=({fallback:e})=>y.jsxs("span",{className:"text-gray-500 dark:text-gray-400",children:[!e&&y.jsx("small",{children:"No redirect"}),e&&y.jsxs(y.Fragment,{children:[e," ",y.jsx("small",{children:"(as fallback)"})]})]}),wge=()=>{const{anchor:e,tooltip:t}=fo();return y.jsxs(y.Fragment,{children:[y.jsx(Ye,{...e,icon:zV,className:"text-lm-brand dark:text-dm-brand","data-testid":"default-domain-icon"}),y.jsx(ho,{...t,children:"Default domain foo"})]})},Sge=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:o,redirects:s,status:u}=e;return A.useEffect(()=>{n(e.domain)},[n,e.domain]),y.jsxs(Ke.Row,{className:"relative",children:[y.jsx(Ke.Cell,{columnName:"Is default domain:",children:o&&y.jsx(wge,{})}),y.jsx(Ke.Cell,{columnName:"Domain:",children:y.jsx("b",{children:i})}),y.jsx(Ke.Cell,{columnName:"Base path redirect:",children:s?.baseUrlRedirect??y.jsx(ax,{fallback:r?.baseUrlRedirect})}),y.jsx(Ke.Cell,{columnName:"Regular 404 redirect:",children:s?.regular404Redirect??y.jsx(ax,{fallback:r?.regular404Redirect})}),y.jsx(Ke.Cell,{columnName:"Invalid short URL redirect:",children:s?.invalidShortUrlRedirect??y.jsx(ax,{fallback:r?.invalidShortUrlRedirect})}),y.jsx(Ke.Cell,{className:"lg:text-center max-lg:border-none",columnName:"Status:",children:y.jsx(xge,{status:u})}),y.jsx(Ke.Cell,{className:"text-right max-lg:absolute max-lg:top-1 max-lg:right-1 max-lg:p-0",children:y.jsx(_ge,{domain:e,editDomainRedirects:t})})]})},PP=[{value:"Is default domain",isHidden:!0},{value:"Domain",isHidden:!1},{value:"Base path redirect",isHidden:!1},{value:"Regular 404 redirect",isHidden:!1},{value:"Invalid short URL redirect",isHidden:!1},{value:"Domain status",isHidden:!0},{value:"Options",isHidden:!0}],Cge=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{const{filteredDomains:i,defaultRedirects:o,loading:s,error:u,errorData:d}=e,f=o??i.find(({isDefault:p})=>p)?.redirects,m=JC();return s?y.jsx(Zo,{loading:!0}):y.jsx(QC,{value:m,children:y.jsxs("div",{className:"flex flex-col gap-y-4",children:[y.jsx(Ef,{onChange:t}),y.jsx(e3,{type:"domains"}),u&&y.jsx(zr,{variant:"error",children:y.jsx(so,{errorData:d,fallbackMessage:"Error loading domains :("})}),!u&&y.jsx(Pt,{className:"card",children:y.jsxs(Ke,{header:y.jsx(Ke.Row,{children:PP.map((p,b)=>y.jsx(Ke.Cell,{children:y.jsx("span",{className:p.isHidden?"sr-only":void 0,children:p.value})},b))}),children:[i.length<1&&y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:PP.length,className:"text-center",children:"No results found"})}),i.map(p=>y.jsx(Sge,{domain:p,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:f},p.domain))]})})]})})},tr=(e,t)=>sL(e,t,{serializeError:n=>n}),Ege="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",Age=e=>tr(Ege,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),fg="shlink/domainsList",dg={domains:[],filteredDomains:[],loading:!1,error:!1},RP=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},NP=(e,t)=>n=>n.domain!==e?n:{...n,status:t},Tge=(e,t,n)=>{const r=tr(`${fg}/listDomains`,async()=>{const{data:u,defaultRedirects:d}=await e().listDomains();return{domains:u.map(f=>({...f,status:"validating"})),defaultRedirects:d}}),i=tr(`${fg}/checkDomainHealth`,async u=>{try{const{status:d}=await e().health({domain:u});return{domain:u,status:d==="pass"?"valid":"invalid"}}catch{return{domain:u,status:"invalid"}}}),o=fn(`${fg}/filterDomains`),{reducer:s}=Nt({name:fg,initialState:dg,reducers:{},extraReducers:u=>{u.addCase(r.pending,()=>({...dg,loading:!0})),u.addCase(r.rejected,(d,{error:f})=>({...dg,error:!0,errorData:Ii(f)})),u.addCase(r.fulfilled,(d,{payload:f})=>({...dg,...f,filteredDomains:f.domains})),u.addCase(i.fulfilled,({domains:d,filteredDomains:f,...m},{payload:p})=>({...m,domains:d.map(NP(p.domain,p.status)),filteredDomains:f.map(NP(p.domain,p.status))})),u.addCase(o,(d,{payload:f})=>({...d,filteredDomains:d.domains.filter(({domain:m})=>m.toLowerCase().match(f.toLowerCase()))})),u.addCase(t.fulfilled,(d,{payload:f})=>({...d,domains:d.domains.map(RP(f)),filteredDomains:d.filteredDomains.map(RP(f))})),u.addCase(n.fulfilled,(d,{payload:f})=>{f.domain===null||d.domains.some(m=>m.domain===f.domain)||d.domains.push({domain:f.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:s,listDomains:r,checkDomainHealth:i,filterDomains:o}},Oge=(e,t)=>{e.serviceFactory("ManageDomains",()=>Cge),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",Tge,"apiClientFactory","editDomainRedirects","createShortUrl"),e.serviceFactory("domainsListReducer",n=>n.reducer,"domainsListReducerCreator"),e.serviceFactory("listDomains",n=>n.listDomains,"domainsListReducerCreator"),e.serviceFactory("filterDomains",n=>n.filterDomains,"domainsListReducerCreator"),e.serviceFactory("editDomainRedirects",Age,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},LP="shlink/mercure",jge={loading:!0,error:!1},Mge=e=>{const t=tr(`${LP}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Nt({name:LP,initialState:jge,reducers:{},extraReducers:r=>{r.addCase(t.pending,i=>({...i,loading:!0,error:!1})),r.addCase(t.rejected,i=>({...i,loading:!1,error:!0})),r.addCase(t.fulfilled,(i,{payload:o})=>({...o,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},Pge=e=>{e.serviceFactory("mercureInfoReducerCreator",Mge,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function Nn(e){return A.useMemo(()=>e,[e])}function Ln(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const o=n[i];e[i]=o}),e)}const Rge=(e,t,n,r)=>{const{mercureHubUrl:i,token:o,loading:s,error:u}=e;if(s||u||!i)return;const d=({data:p})=>n(JSON.parse(p)),f=({status:p})=>p===401&&r(),m=t.map(p=>{const b=new URL(i);b.searchParams.append("topic",p);const _=new JX.EventSourcePolyfill(b,{headers:{Authorization:`Bearer ${o}`}});return _.onmessage=d,_.onerror=f,_});return()=>m.forEach(p=>p.close())};function La(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:o,mercureInfo:s}=r,u=xf();return A.useEffect(()=>{const{interval:d}=s,f=_=>d?n.add(_):i([_]),m=t(u),p=Rge(s,m,f,o);if(!d)return p;const b=setInterval(()=>{i([...n]),n.clear()},d*1e3*60);return()=>{clearInterval(b),p?.()}},[i,o,s,u]),y.jsx(e,{...r})}}class aa{static visits="https://shlink.io/new-visit";static orphanVisits="https://shlink.io/new-orphan-visit";static shortUrlVisits=t=>`https://shlink.io/new-visit/${t}`}const Uf=fn("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),_h=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,Nge=(e,t)=>!e.domain&&t===pf?!0:e.domain===t,Lge=(e,t)=>{const n=t?.validateUrls??!1;return e?{longUrl:e.longUrl,tags:e.tags,title:e.title??void 0,domain:e.domain??void 0,validSince:e.meta.validSince??void 0,validUntil:e.meta.validUntil??void 0,maxVisits:e.meta.maxVisits??void 0,crawlable:e.crawlable,forwardQuery:e.forwardQuery,deviceLongUrls:e.deviceLongUrls&&{android:e.deviceLongUrls.android??void 0,ios:e.deviceLongUrls.ios??void 0,desktop:e.deviceLongUrls.desktop??void 0},validateUrl:n}:{longUrl:"",validateUrl:n}},pI=e=>e.replaceAll("/","__"),t3=e=>e.replaceAll("__","/"),n3=({domain:e,shortCode:t})=>`${e??pf}__${pI(t)}`,gI=e=>{const[t,n]=e.split(/__(.+)/);if(!n)throw new Error(`It was not possible to parse domain and short code from "${e}"`);return{domain:t===pf?null:t,shortCode:t3(n)}},r3="shlink/shortUrlDeletion",DP={shortCode:"",loading:!1,deleted:!1,error:!1},Dge=e=>tr(`${r3}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl({shortCode:t,domain:n}),{shortCode:t,domain:n})),vI=fn(`${r3}/shortUrlDeleted`),kge=e=>{const{actions:t,reducer:n}=Nt({name:r3,initialState:DP,reducers:{resetDeleteShortUrl:()=>DP},extraReducers:i=>{i.addCase(e.pending,o=>({...o,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(o,{error:s})=>({...o,errorData:Ii(s),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(o,{payload:s})=>({...o,shortCode:s.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},yI="shlink/shortUrlsList",bI=5,Ige={loading:!0,error:!1},Uge=e=>tr(`${yI}/listShortUrls`,t=>e().listShortUrls(t??{})),zge=(e,t,n)=>Nt({name:yI,initialState:Ige,reducers:{},extraReducers:r=>{r.addCase(e.pending,i=>({...i,loading:!0,error:!1})),r.addCase(e.rejected,()=>({loading:!1,error:!0})),r.addCase(e.fulfilled,(i,{payload:o})=>({loading:!1,error:!1,shortUrls:o})),r.addCase(n.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=[o,...i.shortUrls.data.slice(0,bI-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(s=>{const{shortCode:u,domain:d}=o;return _h(s,u,d)?o:s}))}),r.addCase(vI,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(s=>!_h(s,o.shortCode,o.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(Uf,(i,{payload:o})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(s=>o.createdVisits.findLast(({shortUrl:u})=>u&&_h(s,u.shortCode,u.domain))?.shortUrl??s))})}}),B2=({children:e,title:t,link:n,tooltip:r})=>{const{anchor:i,tooltip:o}=fo({placement:"bottom"});return y.jsxs(y.Fragment,{children:[y.jsx(Rr,{to:n,className:"no-underline text-inherit",...i,children:y.jsxs(Pt,{className:Pe("text-center border-t-3 border-t-lm-main dark:border-t-dm-main relative"),children:[y.jsx(Ye,{icon:ZW,size:"3x",className:"absolute right-[5px] bottom-[5px] opacity-10 -rotate-45"}),y.jsx("div",{role:"heading","aria-level":5,className:"text-xl uppercase text-placeholder font-bold mb-2",children:t}),y.jsx("div",{className:"text-4xl font-semibold",children:e})]})}),r&&y.jsx(ho,{...o,children:r})]})},kP=({loading:e,excludeBots:t,visitsSummary:n,...r})=>y.jsx(B2,{tooltip:n.bots!==void 0?y.jsxs(y.Fragment,{children:[t?"Plus":"Including"," ",y.jsx("b",{"data-testid":"tooltip-amount",children:Pn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Pn(t&&n.nonBots!==void 0?n.nonBots:n.total)}),IP=({children:e,titleLinkText:t,titleLink:n,title:r})=>y.jsxs(un,{className:"card",children:[y.jsxs(un.Header,{className:"flex justify-between items-center",children:[y.jsx("span",{className:"sm:hidden",children:r}),y.jsx("h5",{className:"hidden sm:inline",children:r}),y.jsxs(Rr,{to:n,children:[t," »"]})]}),y.jsx(un.Body,{children:e})]}),_I=La(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:o,CreateShortUrl:s}=Nn(_I),{loading:u,shortUrls:d}=e,{loading:f}=n,{loading:m,nonOrphanVisits:p,orphanVisits:b}=i,_=ds(),w=uo(),x=Un("visits");return A.useEffect(()=>{t({itemsPerPage:bI,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-4 gap-4",children:[y.jsx(kP,{title:"Visits",link:`${_}/non-orphan-visits`,excludeBots:x?.excludeBots??!1,loading:m,visitsSummary:p}),y.jsx(kP,{title:"Orphan visits",link:`${_}/orphan-visits`,excludeBots:x?.excludeBots??!1,loading:m,visitsSummary:b}),y.jsx(B2,{title:"Short URLs",link:`${_}/list-short-urls/1`,children:u?"Loading...":Pn(d?.pagination.totalItems??0)}),y.jsx(B2,{title:"Tags",link:`${_}/manage-tags`,children:f?"Loading...":Pn(n.tags.length)})]}),y.jsx(IP,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${_}/create-short-url`,children:y.jsx(s,{basicMode:!0})}),y.jsx(IP,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${_}/list-short-urls/1`,children:y.jsx(o,{shortUrlsList:e,onTagClick:C=>w(`${_}/list-short-urls/1?tags=${encodeURIComponent(C)}`)})})]})},()=>[aa.visits,aa.orphanVisits]),Bge=Ln(_I,["ShortUrlsTable","CreateShortUrl"]);function Fge(e,t){e.factory("Overview",Bge),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const xI="shlink/setShortUrlRedirectRules",UP={saving:!1,saved:!1,error:!1},$ge=e=>tr(`${xI}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules({shortCode:r,domain:i},n)}),Vge=e=>{const{reducer:t,actions:n}=Nt({name:xI,initialState:UP,reducers:{resetSetRules:()=>UP},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:Ii(s)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},wI="shlink/getShortUrlRedirectRules",Hge={loading:!0,error:!1},qge=e=>tr(`${wI}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules({shortCode:t,domain:n})),Gge=e=>Nt({name:wI,initialState:Hge,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({loading:!0,error:!1})),t.addCase(e.rejected,()=>({loading:!1,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({loading:!1,error:!1,...r}))}});function Fr(e){e.preventDefault()}function Pl(e){e.stopPropagation()}function SI(){const e=new Map;return[function(t,n){e.get(t)&&e.get(t).forEach(r=>{r(n)})},function(t,n){const r=e.get(t)??[];r.push(n),e.set(t,r)}]}var[CI,EI]=SI();function Yge(e,t){return e.source===t.source&&e.flags.split("").sort().join("")===t.flags.split("").sort().join("")}function Fh(e,t,n=!0,r=["__key"]){if(e===t)return!0;if(typeof t=="object"&&typeof e=="object"&&e!==null&&t!==null){if(e instanceof Map||e instanceof Set)return!1;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return Yge(e,t);if(e===null||t===null)return!1;const i=e,o=t;if(Object.keys(i).length!==Object.keys(o).length)return!1;for(const s of r)if((s in i||s in o)&&i[s]!==o[s])return!1;for(const s in i)if(!(s in o)||i[s]!==o[s]&&!n||n&&!Fh(i[s],o[s],n,r))return!1;return!0}return!1}function AI(e){return e.split(" ").filter(t=>t)}function zf(e){return{x:e.clientX,y:e.clientY}}Array();var i3=typeof window<"u",Pr=new WeakMap,lo=new WeakMap;function TI(){if(!i3)return!1;if("userAgentData"in navigator)return navigator.userAgentData.mobile===!0;const e=navigator.userAgent,t=/android|iphone|ipod/i.test(e),n=/iPad/.test(e)||e.includes("Macintosh")&&navigator.maxTouchPoints>1;return t||n}var Wge={affectedNodes:[],coordinates:{x:0,y:0},currentTargetValue:void 0,on:EI,emit:CI,originalZIndex:void 0,pointerSelection:!1,preventEnter:!1,rootUserSelect:void 0,nodePointerdown:void 0,longPress:!1,scrolling:!1,longPressTimeout:void 0,remapJustFinished:!1,selectedNodes:[],selectedParent:void 0,preventSynthDrag:!1,pointerDown:void 0,lastScrollContainerX:null,lastScrollContainerY:null,rootScrollWidth:void 0,rootScrollHeight:void 0,dragItemRect:void 0,windowScrollX:void 0,windowScrollY:void 0,lastScrollDirectionX:void 0,lastScrollDirectionY:void 0,scrollDebounceTimeout:void 0,frameIdX:void 0,frameIdY:void 0},qe=Wge,wl=!1,zP,ox;function Kge(){qe.scrollDebounceTimeout&&clearTimeout(qe.scrollDebounceTimeout),qe.longPressTimeout&&clearTimeout(qe.longPressTimeout),qe.frameIdX!==void 0&&cancelAnimationFrame(qe.frameIdX),qe.frameIdY!==void 0&&cancelAnimationFrame(qe.frameIdY),qe={affectedNodes:[],coordinates:{x:0,y:0},on:EI,emit:CI,currentTargetValue:void 0,originalZIndex:void 0,pointerId:void 0,preventEnter:!1,remapJustFinished:!1,selectedNodes:[],nodePointerdown:void 0,rootUserSelect:void 0,preventSynthDrag:!1,scrolling:!1,selectedParent:void 0,pointerSelection:!1,synthScrollDirection:void 0,draggedNodeDisplay:void 0,synthDragScrolling:!1,longPress:!1,pointerDown:void 0,longPressTimeout:void 0,lastScrollContainerX:null,lastScrollContainerY:null,rootScrollWidth:void 0,rootScrollHeight:void 0,dragItemRect:void 0,windowScrollX:void 0,windowScrollY:void 0,lastScrollDirectionX:void 0,lastScrollDirectionY:void 0,scrollDebounceTimeout:void 0,frameIdX:void 0,frameIdY:void 0}}function OI(e){return Object.assign(qe,e),e.initialParent.data.emit("dragStarted",qe),wl=!1,qe.emit("dragStarted",qe),qe}function Zge(){qe.activeState&&Vu(qe.activeState.parent,void 0,qe),qe.selectedState&&Pu(qe.selectedState.nodes,qe.selectedState.parent,qe),qe.selectedState=qe.activeState=void 0}function Xge(){if(qe.pointerDown&&(qe.pointerDown.node.el.draggable=!0),qe.pointerDown=void 0,!Ni(qe))return;const e=qe.currentParent.data.config;Ni(qe)&&e.handleEnd(qe)}function Qge(e){e.key==="Escape"&&(qe.selectedState&&Pu(qe.selectedState.nodes,qe.selectedState.parent,qe),qe.activeState&&Vu(qe.activeState.parent,void 0,qe),qe.selectedState=qe.activeState=void 0)}function Jge(e){if(!$r(qe))return;wl=!0;const t=qe.initialParent.data.config.handleEnd;t(qe)}function eve(e){if(!$r(qe))return;Fr(e);const{x:t,y:n}=zf(e);$r(qe)&&Zy({x:t,y:n},e,qe)}function tve(e){if(!qe.pointerDown||!qe.pointerDown.validated)return;const t=qe.pointerDown.parent.data.config;if(!(e.pointerType==="mouse"&&!TI()))if(Ni(qe))Ni(qe)&&BP(e,qe);else{if(Fr(e),t.longPress&&!qe.longPress){clearTimeout(qe.longPressTimeout),qe.longPress=!1;return}const n=t.draggedNodes(qe.pointerDown);t.dragstartClasses(qe.pointerDown.node,n,t,!0);const r=qe.pointerDown.node.el.getBoundingClientRect(),i=Mve(qe.pointerDown.node,qe.pointerDown.parent,e,qe,n,r);BP(e,i,!0)}}function nve({parent:e,getValues:t,setValues:n,config:r={}}){if(!i3)return;zP||(zP=Dv(document,{dragover:eve,pointerdown:Zge,pointerup:Xge,keydown:Qge,drop:Jge,pointermove:tve,pointercancel:bi(r.handlePointercancel),touchmove:u=>{$r(qe)&&u.cancelable&&Fr(u)},contextmenu:u=>{Ni(qe)&&Fr(u)}})),MI(e);const[i,o]=SI(),s={getValues:t,setValues:n,config:{dragDropEffect:r.dragDropEffect??"move",dragEffectAllowed:r.dragEffectAllowed??"move",draggedNodes:pve,dragstartClasses:bve,handleNodeKeydown:xve,handleDragstart:vve,handleNodeDragover:Rve,handleParentDragover:Nve,handleNodeDrop:Sve,handleNodeFocus:Cve,handleNodeBlur:Eve,handlePointercancel:Tve,handleEnd:Ove,handleDragend:Ave,handleParentFocus:ive,handleNodePointerup:jve,handleNodePointerover:wve,handleParentPointerover:Lve,handleParentScroll:gve,handleNodePointerdown:yve,handleNodeDragenter:kve,handleNodeDragleave:Ive,handleParentDrop:ove,multiDrag:r.multiDrag??!1,nativeDrag:r.nativeDrag??!0,performSort:rve,performTransfer:ave,root:r.root??document,setupNode:lve,setupNodeRemap:PI,reapplyDragClasses:uve,tearDownNode:fve,tearDownNodeRemap:cve,remapFinished:hve,threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{},privateClasses:[],on:o,emit:i};new MutationObserver(dve).observe(e,{childList:!0}),Pr.set(e,s),r.plugins?.forEach(u=>{u(e)?.tearDown?.()}),r.plugins?.forEach(u=>{u(e)?.tearDown?.()}),r.plugins?.forEach(u=>{u(e)?.setup?.()}),sve(e,s),Wy(e,!0)}function jI(e,t,n,r,i,o){const{x:s,y:u}=zf(n),d=e.el.getBoundingClientRect();return{affectedNodes:[],ascendingDirection:!1,clonedDraggedEls:[],coordinates:{x:s,y:u},draggedNode:{el:e.el,data:e.data},draggedNodes:r,incomingDirection:void 0,initialIndex:e.data.index,initialParent:{el:t.el,data:t.data},currentParent:{el:t.el,data:t.data},longPress:t.data.config.longPress??!1,longPressTimeout:void 0,currentTargetValue:e.data.value,scrollEls:[],startLeft:i||s-(d?.left??0),startTop:o||u-(d?.top??0),targetIndex:e.data.index,transferred:!1}}function rve({parent:e,draggedNodes:t,targetNodes:n}){Wy(e.el);const r=t.map(d=>d.data.value),i=gf(e.el,e.data),o=t[0].data.index,s=[...e.data.enabledNodes],u=[...i.filter(d=>!r.some(f=>Fh(d,f)))];u.splice(n[0].data.index,0,...r),"draggedNode"in qe&&(qe.currentTargetValue=n[0].data.value),F2(e.el,e.data,[...u]),e.data.config.onSort&&e.data.config.onSort({parent:{el:e.el,data:e.data},previousValues:[...i],previousNodes:[...s],nodes:[...e.data.enabledNodes],values:[...u],draggedNodes:t,previousPosition:o,position:n[0].data.index,targetNodes:n,state:qe})}function Vu(e,t,n){if(!t){n.activeState=void 0;return}n.activeState={node:t,parent:e}}function Pu(e,t,n){const r=t.data.config.selectedClass;if(!n.selectedState)return;const i=Array.from(e);ul(e.map(o=>o.el),r);for(const o of i){o.el.setAttribute("aria-selected","false");const s=n.selectedState.nodes.findIndex(u=>u.el===o.el);s!==-1&&n.selectedState.nodes.splice(s,1)}}function hg(e,t,n,r,i=!1){r.pointerSelection=i;for(const o of t)o.el.setAttribute("aria-selected","true"),ef([o.el],e.data.config.selectedClass,!0);r.selectedState={nodes:t,parent:e},Vu(e,n,r)}function ive(e,t){const n=e.targetData.parent.data.enabledNodes[0];n&&(t.selectedState&&t.selectedState.parent.el!==e.targetData.parent.el?Vu(e.targetData.parent,n,t):t.selectedState||Vu(e.targetData.parent,n,t))}function ave({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,initialIndex:i,targetNodes:o,state:s}){Wy(n.el);const u=r.map(b=>b.data.value),d=[...gf(e.el,e.data).filter(b=>!u.some(_=>Fh(b,_)))],f=gf(t.el,t.data),m=n.el===t.el&&t.data.config.sortable===!1;let p;o.length?(m?p=i:t.data.config.sortable===!1?p=t.data.enabledNodes.length:p=o[0].data.index,f.splice(p,0,...u)):(p=m?i:t.data.enabledNodes.length,f.splice(p,0,...u)),F2(e.el,e.data,d),F2(t.el,t.data,f),t.data.config.onTransfer&&t.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:p,state:s,targetNodes:o}),e.data.config.onTransfer&&e.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:p,state:s,targetNodes:o||[]})}function gf(e,t){return[...t.getValues(e)]}function F2(e,t,n){t.setValues(n,e)}function ove(e,t){Pl(e.e),wl=!0;const n=t.initialParent.data.config.handleEnd;n(t)}function MI(e){const t=Pr.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function $r(e){return"draggedNode"in e&&!!e.draggedNode}function Ni(e){return"synthDragging"in e&&!!e.synthDragging}function sve(e,t){t.abortControllers.mainParent=Dv(e,{dragover:mg(t.config.handleParentDragover),handleParentPointerover:t.config.handleParentPointerover,scroll:mg(t.config.handleParentScroll),drop:mg(t.config.handleParentDrop),hasNestedParent:n=>{const r=Pr.get(n.target);r&&(r.nestedParent=n.detail.parent)},focus:mg(t.config.handleParentFocus)}),t.config.externalDragHandle&&t.config.externalDragHandle.el&&t.config.externalDragHandle.callback&&(t.abortControllers.externalDragHandle=Dv(t.config.externalDragHandle.el,{pointerdown:n=>{if(!t.config.externalDragHandle||!t.config.externalDragHandle.callback)return;const r=t.config.externalDragHandle.callback();if(!Xy(r)){console.warn("No draggable item found from external drag handle callback");return}const i=lo.get(r);if(!i)return;const o=r.parentNode;if(!(o instanceof HTMLElement))return;const s=Pr.get(o);s&&(qe.pointerDown={parent:{el:o,data:s},node:{el:r,data:i},validated:!0},r.draggable=!0)}}))}function lve(e){const t=e.parent.data.config;e.node.data.abortControllers.mainNode=Dv(e.node.el,{keydown:bi(t.handleNodeKeydown),dragstart:bi(t.handleDragstart),dragover:bi(t.handleNodeDragover),dragenter:bi(t.handleNodeDragenter),dragleave:bi(t.handleNodeDragleave),dragend:bi(t.handleDragend),drop:bi(t.handleNodeDrop),focus:bi(t.handleNodeFocus),blur:bi(t.handleNodeBlur),pointerup:bi(t.handleNodePointerup),pointercancel:bi(t.handlePointercancel),pointerdown:bi(t.handleNodePointerdown),handleNodePointerover:t.handleNodePointerover,touchmove:n=>{$r(qe)&&n.cancelable&&Fr(n)},contextmenu:n=>{Ni(qe)&&Fr(n)}}),e.node.el.draggable=!0,t.reapplyDragClasses(e.node.el,e.parent.data),e.parent.data.config.plugins?.forEach(n=>{n(e.parent.el)?.setupNode?.(e)})}function PI(e){lo.set(e.node.el,e.node.data),e.parent.data.config.plugins?.forEach(t=>{t(e.parent.el)?.setupNodeRemap?.(e)})}function uve(e,t){if(!$r(qe))return;const n=Ni(qe)?t.config.synthDropZoneClass:t.config.dropZoneClass;qe.draggedNode.el===e&&ef([e],n,!0)}function cve(e){e.parent.data.config.plugins?.forEach(t=>{t(e.parent.el)?.tearDownNodeRemap?.(e)})}function fve(e){e.parent.data.config.plugins?.forEach(t=>{t(e.parent.el)?.tearDownNode?.(e)}),e.node.el.draggable=!1,e.node.data?.abortControllers?.mainNode&&e.node.data?.abortControllers?.mainNode.abort()}function dve(e){if(e.length===1&&e[0].addedNodes.length===1&&!(e[0].addedNodes[0]instanceof HTMLElement))return;const t=e[0].target;!(t instanceof HTMLElement)||!Pr.get(t)||Wy(t)}function Wy(e,t){const n=Pr.get(e);if(!n)return;n.privateClasses=Array.from(e.classList);const r=[],i=n.config;for(let u=0;u<e.children.length;u++){const d=e.children[u];if(!Xy(d)||d.id==="dnd-dragged-node-clone")continue;const f=lo.get(d);(t||!f)&&i.tearDownNode({parent:{el:e,data:n},node:{el:d,data:f}}),!i.disabled&&(!i.draggable||i.draggable&&i.draggable(d))&&r.push(d)}if(r.length!==n.getValues(e).length&&!i.disabled){console.warn("The number of draggable items defined in the parent element does not match the number of values. This may cause unexpected behavior.");return}const o=n.getValues(e),s=[];for(let u=0;u<r.length;u++){const d=r[u],f=lo.get(d);if(i.draggableValue&&!i.draggableValue(o[u]))continue;const m=Object.assign(f??{privateClasses:[],abortControllers:{}},{value:o[u],index:u});if(!$r(qe)&&qe.activeState&&Fh(qe.activeState.node.data.value,m.value)&&Vu({data:n,el:e},{el:d,data:m},qe),$r(qe)&&Fh(qe.draggedNode.data.value,m.value)){qe.draggedNode.data=m,qe.draggedNode.el=d;const p=qe.draggedNodes.find(b=>b.data.value===m.value);p&&(p.el=d)}s.push({el:d,data:m}),(t||!f)&&i.setupNode({parent:{el:e,data:n},node:{el:d,data:m}}),PI({parent:{el:e,data:n},node:{el:d,data:m}})}Pr.set(e,{...n,enabledNodes:s}),i.remapFinished(n),n.config.plugins?.forEach(u=>{u(e)?.remapFinished?.()})}function hve(){qe.remapJustFinished=!0,"draggedNode"in qe&&(qe.affectedNodes=[])}function mve(e){return!!e.targetData.parent.data.config.nativeDrag}function pve(e){if(e.parent.data.config.multiDrag){if(qe.selectedState)return[e.node,...qe.selectedState?.nodes.filter(t=>t.el!==e.node.el)]}else return[e.node];return[]}function gve(e){$r(qe)&&(qe.emit("scrollStarted",qe),!Ni(qe)&&(qe.preventEnter=!0,ox&&clearTimeout(ox),ox=setTimeout(()=>{qe.preventEnter=!1,qe.emit("scrollEnded",qe)},100)))}function vve(e,t){const n=e.targetData.parent.data.config;if(!n.nativeDrag||!mve(e)||!RI({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:n})){Fr(e.e);return}let r=n.draggedNodes({parent:e.targetData.parent,node:e.targetData.node});r.length===0&&(r=[e.targetData.node]),n.dragstartClasses(e.targetData.node,r,n);const i=_ve(e,r);if(n.onDragstart){const o={parent:e.targetData.parent,values:gf(e.targetData.parent.el,e.targetData.parent.data),draggedNode:i.draggedNode,draggedNodes:i.draggedNodes,position:i.initialIndex,state:i};n.onDragstart(o)}}function yve(e,t){if(Pl(e.e),t.pointerDown={parent:e.targetData.parent,node:e.targetData.node,validated:!1},!RI({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:e.targetData.parent.data.config}))return;t.pointerDown.validated=!0,Pve(e,t,e.targetData.node);const n=e.targetData.parent.data;let r=[e.targetData.node];const i=e.e.ctrlKey||e.e.metaKey,o=e.e.shiftKey,s=e.targetData.node;if(i&&n.config.multiDrag){t.selectedState?t.selectedState.nodes.findIndex(u=>u.el===s.el)===-1?r=[...t.selectedState.nodes,s]:r=t.selectedState.nodes.filter(u=>u.el!==s.el):r=[s],hg(e.targetData.parent,r,e.targetData.node,t,!0);return}if(o&&n.config.multiDrag){const u=e.targetData.parent.data.enabledNodes;if(t.selectedState&&t.activeState)if(t.selectedState.parent.el!==e.targetData.parent.el){Pu(t.selectedState.nodes,t.selectedState.parent,t),t.selectedState=void 0;for(let d=0;d<=s.data.index;d++)r.push(u[d])}else{const[d,f]=t.activeState.node.data.index<e.targetData.node.data.index?[t.activeState.node.data.index,e.targetData.node.data.index]:[e.targetData.node.data.index,t.activeState.node.data.index];r=u.slice(d,f+1)}else for(let d=0;d<=s.data.index;d++)r.push(u[d]);hg(e.targetData.parent,r,e.targetData.node,t,!0);return}t.selectedState?.nodes?.length?t.selectedState.nodes.findIndex(u=>u.el===e.targetData.node.el)===-1&&(t.selectedState.parent.el!==e.targetData.parent.el?Pu(t.selectedState.nodes,e.targetData.parent,t):n.config.multiDrag&&TI()?r.push(...t.selectedState.nodes):Pu(t.selectedState.nodes,e.targetData.parent,t),hg(e.targetData.parent,r,e.targetData.node,t,!0)):hg(e.targetData.parent,[e.targetData.node],e.targetData.node,t,!0)}function bve(e,t,n,r=!1){ef(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),setTimeout(()=>{ul(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),ef(t.map(i=>i.el),r?n.synthDragPlaceholderClass:n.dragPlaceholderClass),ef(t.map(i=>i.el),r?n.synthDropZoneClass:n.dropZoneClass),ul(t.map(i=>i.el),n.selectedClass)})}function _ve(e,t){Pl(e.e);const n=OI(jI(e.targetData.node,e.targetData.parent,e.e,t));if(e.e.dataTransfer){const r=e.targetData.parent.data.config;e.e.dataTransfer.dropEffect=r.dragDropEffect,e.e.dataTransfer.effectAllowed=r.dragEffectAllowed;let i;if(e.e.dataTransfer.setData("text/plain",""),r.dragImage)i=r.dragImage(e,t);else{if(!r.multiDrag||t.length===1)return e.targetData.node.el.style.zIndex="9999",e.targetData.node.el.style.boxSizing="border-box",e.e.dataTransfer.setDragImage(e.targetData.node.el,e.e.offsetX,e.e.offsetY),n.originalZIndex=e.targetData.node.el.style.zIndex,n;{const o=document.createElement("div");o.setAttribute("id","dnd-dragged-node-clone"),o.setAttribute("popover","manual");for(const u of t){const d=u.el.cloneNode(!0);d.id=u.el.id+"-clone",d.style.pointerEvents="none",o.appendChild(d)}const{width:s}=t[0].el.getBoundingClientRect();Object.assign(o.style,{display:"flex",flexDirection:"column",width:`${s}px`,position:"absolute",pointerEvents:"none",zIndex:"9999",left:"-9999px",boxSizing:"border-box",background:"transparent",overflow:"hidden"}),e.targetData.parent.el.appendChild(o),o.showPopover(),o.getBoundingClientRect(),i=o,e.e.dataTransfer.setDragImage(i,e.e.offsetX,e.e.offsetY)}}setTimeout(()=>{i?.remove()})}return n}function RI({x:e,y:t,node:n,config:r}){if(r.externalDragHandle)return!1;if(!r.dragHandle)return!0;const i=n.el.querySelectorAll(r.dragHandle);if(!i)return!1;const o=r.root.elementFromPoint(e,t);if(!o)return!1;for(const s of Array.from(i))if(o===s||s.contains(o))return!0;return!1}function xve(e){}function wve(e){e.detail.targetData.parent.el===e.detail.state.currentParent.el?LI(e.detail,e.detail.state):Ky(e.detail,e.detail.state)}function Sve(e,t){const n=e.targetData.parent.data.config;n.nativeDrag&&(Pl(e.e),wl=!0,n.handleEnd(t))}function Cve(e){e.e.target!==e.e.currentTarget&&qe.pointerDown&&(qe.pointerDown.node.el.draggable=!1)}function Eve(e){e.e.target!==e.e.currentTarget&&qe.pointerDown&&(qe.pointerDown.node.el.draggable=!0)}function Ave(e,t){const n=e.targetData.parent.data.config;if(n.nativeDrag){if(Fr(e.e),Pl(e.e),wl){wl=!1;return}n.handleEnd(t)}}function Tve(e,t){if(!Ni(t))return;if(Fr(e.e),wl){wl=!1;return}const n=Pr.get(t.initialParent.el)?.config;n?.onDragend&&n.onDragend({parent:t.currentParent,values:gf(t.currentParent.el,t.currentParent.data),draggedNode:t.draggedNode,draggedNodes:t.draggedNodes,state:t}),n?.handleEnd(t)}function Ove(e){e.draggedNode&&(e.draggedNode.el.draggable=!0);const t=e.draggedNodes.map(m=>m.el),n=e.initialParent.data,r=Ni(e),i=Pr.get(e.initialParent.el)?.config,o=r?i?.synthDropZoneClass:i?.dropZoneClass,s=n?.config?.longPressClass,u=r?n?.config?.synthDragPlaceholderClass:n?.config?.dragPlaceholderClass,d=e.originalZIndex;Ni(e)&&(e.clonedDraggedNode&&e.clonedDraggedNode.remove(),e.longPressTimeout&&clearTimeout(e.longPressTimeout)),$2(e),e.lastScrollDirectionX=void 0,e.lastScrollDirectionY=void 0,e.preventEnter=!1,e.scrollDebounceTimeout&&(clearTimeout(e.scrollDebounceTimeout),e.scrollDebounceTimeout=void 0),d!==void 0&&e.draggedNode&&(e.draggedNode.el.style.zIndex=d),requestAnimationFrame(()=>{ul(t,o),ul(t,s),ul(t,u)}),Pu(e.draggedNodes,e.currentParent,e),Vu(e.currentParent,void 0,e);const f={...e};i?.onDragend?.({parent:f.currentParent,values:gf(f.currentParent.el,f.currentParent.data),draggedNode:f.draggedNode,draggedNodes:f.draggedNodes,state:f}),e.emit("dragEnded",f),Kge()}function jve(e,t){Pl(e.e),!t.pointerSelection&&t.selectedState&&Pu(t.selectedState.nodes,e.targetData.parent,t);const n=e.targetData.parent.data.config;t.pointerSelection=!1,"longPressTimeout"in t&&t.longPressTimeout&&clearTimeout(t.longPressTimeout),t.longPress=!1,ul(e.targetData.parent.data.enabledNodes.map(r=>r.el),n.longPressClass),$r(t)&&n.handleEnd(t)}function Mve(e,t,n,r,i,o){const s=t.data.config;let u,d;const f=["display","flexDirection","alignItems","justifyContent","padding","paddingTop","margin","marginTop","marginBottom","marginLeft","marginRight","paddingBottom","paddingLeft","paddingRight","border","borderRadius","background","backgroundColor","boxShadow","font","color","lineHeight","gap","width","height","boxSizing","overflow"],m=(_,w)=>{const x=window.getComputedStyle(_);f.forEach(C=>{w.style[C]=x[C]})},p=(_,w={})=>{Object.assign(_.style,{position:"absolute",zIndex:"9999",pointerEvents:"none",willChange:"transform",boxSizing:"border-box",opacity:"0",overflow:"hidden",width:`${o.width}px`,height:`${o.height}px`,...w})};if(s.synthDragImage)d=s.synthDragImage(e,t,n,i),u=d.dragImage,u.setAttribute("popover","manual"),p(u);else if(!s.multiDrag||i.length===1)u=e.el.cloneNode(!0),m(e.el,u),u.setAttribute("popover","manual"),p(u);else{const _=document.createElement("div");_.setAttribute("popover","manual"),i.forEach(w=>{const x=w.el.cloneNode(!0);m(w.el,x),x.style.pointerEvents="none",x.style.margin="0",_.append(x)}),_.style.display="flex",_.style.flexDirection="column",_.style.padding="0",_.style.margin="0",_.style.position="absolute",_.style.zIndex="9999",_.style.pointerEvents="none",u=_}u.id="dnd-dragged-node-clone",t.el.appendChild(u),u.showPopover();const b={clonedDraggedEls:[],clonedDraggedNode:u,synthDragScrolling:!1,synthDragging:!0,rootScrollWidth:document.scrollingElement?.scrollWidth,rootScrollHeight:document.scrollingElement?.scrollHeight};return OI({...jI(e,t,n,i,d?.offsetX,d?.offsetY),...b})}function Pve(e,t,n){const r=e.targetData.parent.data.config;t.longPressTimeout=setTimeout(()=>{t&&(t.longPress=!0,r.longPressClass&&e.e.cancelable&&ef([n.el],r.longPressClass),Fr(e.e))},r.longPressDuration||1e3)}function $2(e,t=!0,n=!0){t&&(e.frameIdX!==void 0&&(cancelAnimationFrame(e.frameIdX),e.frameIdX=void 0),e.lastScrollDirectionX=void 0),n&&(e.frameIdY!==void 0&&(cancelAnimationFrame(e.frameIdY),e.frameIdY=void 0),e.lastScrollDirectionY=void 0),!e.frameIdX&&!e.frameIdY&&(e.preventEnter=!1)}function NI(e,t=!1){const{x:n,y:r}=e.coordinates,i=e.startLeft??0,o=e.startTop??0,s=window.scrollX??0,u=window.scrollY??0,d=n-i+s,f=r-o+u;e.clonedDraggedNode.style.transform=`translate3d(${d}px, ${f}px, 0px)`,t&&(e.clonedDraggedNode.style.opacity="1",ul(e.draggedNodes.map(m=>m.el),e.initialParent.data.config?.longPressClass))}function BP(e,t,n=!1){const r=zf(e);t.coordinates.x=r.x,t.coordinates.y=r.y,NI(t,n),t.scrollDebounceTimeout&&(clearTimeout(t.scrollDebounceTimeout),t.scrollDebounceTimeout=void 0),t.scrollDebounceTimeout=setTimeout(()=>{Ni(t)&&Zy(t.coordinates,e,t)},16);const i=Fve(r);if(!i){document.dispatchEvent(new CustomEvent("handleRootPointerover",{detail:{e,state:t}}));return}const o={e,targetData:i,state:t};"node"in i?i.node.el.dispatchEvent(new CustomEvent("handleNodePointerover",{detail:o})):i.parent.el.dispatchEvent(new CustomEvent("handleParentPointerover",{detail:o}))}function Rve(e,t){if(!e.targetData.parent.data.config.nativeDrag)return;const{x:n,y:r}=zf(e.e);t.coordinates.y=r,t.coordinates.x=n,Fr(e.e),Pl(e.e),$r(t)&&Zy({x:n,y:r},e.e,t),e.targetData.parent.el===t.currentParent?.el?LI(e,t):Ky(e,t)}function Nve(e,t){if(!e.targetData.parent.data.config.nativeDrag)return;Fr(e.e),Pl(e.e);const{x:n,y:r}=zf(e.e);$r(t)&&Zy({x:n,y:r},e.e,t),Ky(e,t)}function Lve(e){e.detail.targetData.parent.el!==e.detail.state.currentParent.el&&Ky(e.detail,e.detail.state)}function Dve({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,state:i}){if(t.el===e.el)return!1;const o=t.data.config;if(r[0].el.contains(t.el)||o.dropZone===!1)return!1;const s=n.data.config;return o.accepts?o.accepts(t,n,e,i):!(!o.group||o.group!==s.group)}function kve(e,t){Fr(e.e)}function Ive(e,t){Fr(e.e)}function Uve(e,t,n,r){if(t.affectedNodes.map(m=>m.data.value).includes(e.targetData.node.data.value))return!1;if(t.remapJustFinished)return t.remapJustFinished=!1,(e.targetData.node.data.value===t.currentTargetValue||t.draggedNodes.map(m=>m.el).includes(e.targetData.node.el))&&(t.currentTargetValue=e.targetData.node.data.value),!1;if(t.preventEnter)return!1;if(t.draggedNodes.map(m=>m.el).includes(e.targetData.node.el))return t.currentTargetValue=void 0,!1;if(e.targetData.node.data.value===t.currentTargetValue||e.targetData.parent.el!==t.currentParent?.el||e.targetData.parent.data.config.sortable===!1||e.targetData.node.el.contains(t.draggedNodes[0].el))return!1;const i=e.targetData.node.el.getBoundingClientRect(),o=t.draggedNode.el.getBoundingClientRect(),s=i.y-o.y,u=i.x-o.x;let d;Math.abs(s)>Math.abs(u)?d=s>0?"above":"below":d=u>0?"left":"right";const f=t.currentParent.data.config.threshold;switch(d){case"left":if(n>i.x+i.width*f.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<i.x+i.width*(1-f.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>i.y+i.height*f.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<i.y+i.height*(1-f.vertical))return t.incomingDirection="below",!0;break}return!1}function LI(e,t){const{x:n,y:r}=zf(e.e);if(!Uve(e,t,n,r))return;const i=t.draggedNode.data.index>e.targetData.node.data.index?[e.targetData.node.data.index,t.draggedNode.data.index]:[t.draggedNode.data.index,e.targetData.node.data.index];t.targetIndex=e.targetData.node.data.index,t.affectedNodes=e.targetData.parent.data.enabledNodes.filter(o=>i[0]<=o.data.index&&o.data.index<=i[1]&&o.el!==t.draggedNode.el),e.targetData.parent.data.config.performSort({parent:e.targetData.parent,draggedNodes:t.draggedNodes,targetNodes:[e.targetData.node]})}function bi(e){function t(n){const r=lo.get(n);if(!r)return;const i=Pr.get(n.parentNode);if(i)return{node:{el:n,data:r},parent:{el:n.parentNode,data:i}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r},qe)}}function Ky(e,t){Fr(e.e),Dve({currentParent:t.currentParent,targetParent:e.targetData.parent,initialParent:t.initialParent,draggedNodes:t.draggedNodes,state:t})&&(e.targetData.parent.data.config.performTransfer({currentParent:t.currentParent,targetParent:e.targetData.parent,initialParent:t.initialParent,draggedNodes:t.draggedNodes,initialIndex:t.initialIndex,state:t,targetNodes:"node"in e.targetData?[e.targetData.node]:[]}),t.currentParent=e.targetData.parent,t.transferred=!0)}function mg(e){function t(n){const r=Pr.get(n);if(r)return{parent:{el:n,data:r}}}return n=>{const r=t(n.currentTarget);if(r)return e({e:n,targetData:r},qe)}}function ef(e,t,n=!1){function r(i,o){lo.set(i,o)}for(const i of e){const o=lo.get(i),s=zve(i,t,o,n);s&&r(i,s)}}function zve(e,t,n,r=!1){if(!t)return;const i=AI(t);if(!i.length)return;if(!n){e.classList.add(...i);return}const o=[];for(const s of i)e.classList.contains(s)?e.classList.contains(s)&&r===!1&&o.push(s):e.classList.add(s);return n.privateClasses=o,n}function ul(e,t){if(!t)return;const n=AI(t);if(n.length)for(const r of e){if(!Xy(r)){r.classList.remove(...n);continue}const i=lo.get(r)||Pr.get(r);if(i)for(const o of n)i.privateClasses.includes(o)||r.classList.remove(o)}}function FP(e,t,n,r,i){const o=i.axis==="x",s=e===document.scrollingElement,u=o?"scrollLeft":"scrollTop",d=o?"clientWidth":"clientHeight",f=o?"offsetWidth":"offsetHeight",m=o?"scrollWidth":"scrollHeight",p=o?t.clientX:t.clientY,b=o?r.left:r.top,_=o?n.overflowX:n.overflowY;if(s){const w=e[u],x=e[d],C=w>0,E=w+x<(o?i.state.rootScrollWidth||0:e[m]);return o?{left:C&&p<x*.075,right:E&&p>x*(1-.075)}:{up:C&&p<x*.075,down:E&&p>x*(1-.075)}}if((_==="auto"||_==="scroll")&&e!==document.body&&e!==document.documentElement){const w=e[m],x=e[f],C=e[u],E=C>0,j=C<w-x;return o?{left:E&&p<b+x*.075,right:j&&p>b+x*(1-.075)}:{up:E&&p<b+x*.075,down:j&&p>b+x*(1-.075)}}return o?{left:!1,right:!1}:{up:!1,down:!1}}function Bve(e,t,n,r){if(!$r(n)||!n.draggedNode)return;n.preventEnter=!0;const i=r.axis==="x",o=r.direction==="positive"?1:-1,s=20,u=i?"lastScrollDirectionX":"lastScrollDirectionY",d=i?"frameIdX":"frameIdY";n[d]!==void 0&&(cancelAnimationFrame(n[d]),n[d]=void 0),n[u]=r.direction;const f=()=>{if(!$r(n)||!n.draggedNode){n[d]!==void 0&&(cancelAnimationFrame(n[d]),n[d]=void 0);return}const m=i?"scrollLeft":"scrollTop",p=i?"clientWidth":"clientHeight",b=i?"scrollWidth":"scrollHeight",_=e[m],w=e[p],x=e[b];if(!(o>0?_+w<x:_>0)){n[d]=void 0,n[u]=void 0;return}e[m]+=s*o,Ni(n)&&NI(n),n[d]=requestAnimationFrame(f)};n[d]=requestAnimationFrame(f)}function $P(e,t,n){const r=e.getBoundingClientRect();return t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom}function Zy(e,t,n){if(!$r(n)||!n.draggedNode)return;$2(n);const{x:r,y:i}=e;let o=!1;const s=(d,f,m)=>{Bve(m,t,n,{axis:d,direction:f}),o=!0},u=d=>{const f=window.getComputedStyle(d),m=d.getBoundingClientRect(),p=FP(d,t,f,m,{axis:"x",state:n}),b=FP(d,t,f,m,{axis:"y"});(p.left||p.right)&&(n.lastScrollContainerX=d,s("x",p.right?"positive":"negative",d)),(b.up||b.down)&&(n.lastScrollContainerY=d,s("y",b.down?"positive":"negative",d))};if(n.lastScrollContainerX&&$P(n.lastScrollContainerX,r,i)&&u(n.lastScrollContainerX),!o&&n.lastScrollContainerY&&$P(n.lastScrollContainerY,r,i)&&u(n.lastScrollContainerY),!o){let d=document.elementFromPoint(r,i);for(;d&&!(o&&n.lastScrollContainerX&&n.lastScrollContainerY);)d instanceof HTMLElement&&u(d),d=d.parentElement}if(!o){const d=document.scrollingElement;d instanceof HTMLElement&&u(d)}o||$2(n)}function Fve(e){let t=document.elementFromPoint(e.x,e.y);if(!Xy(t))return;let n,r=!0;for(;t&&r;){if(lo.has(t)||Pr.has(t)){r=!1,n=Pr.has(t);break}t=t.parentNode}if(n){const i=Pr.get(t);return i?{parent:{el:t,data:i}}:void 0}else{const i=lo.get(t);if(!i)return;const o=Pr.get(t.parentNode);return o?{node:{el:t,data:i},parent:{el:t.parentNode,data:o}}:void 0}}function Xy(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function Dv(e,t){const n=new AbortController;for(const r in t){const i=t[r];e.addEventListener(r,i,{signal:n.signal,passive:!1,capture:r==="focus"||r==="blur"})}return n}function $ve(e){if(e instanceof HTMLElement)return e;if("current"in e&&e.current instanceof HTMLElement)return e.current;console.warn("Invalid parent element",e)}function Vve(e,t){const n=$ve(e);n&&t(n)}var kv=new WeakMap;function Hve(e){const t=kv.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function qve(e,t){const n=kv.get(t);n&&n[1](e),kv.set(t,[e,n[1]])}function Gve(e,t){return n=>{kv.set(n,t),nve({parent:n,getValues:Hve,setValues:qve,config:e})}}function VP(e){i3&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;Vve(n,Gve(i,r))}))}function Yve(e,t={}){const n=A.useRef(null),[r,i]=A.useState(e);function o(s={}){VP({parent:n,state:[r,i],...s})}return A.useEffect(()=>{VP({parent:n,state:[r,i],...t})},[r]),A.useEffect(()=>()=>{n.current&&MI(n.current)},[]),[n,r,i,o]}const Qy=()=>{const e=uo(),t=ds(),n=Af(),r=A.useMemo(()=>{const{orderBy:o,tags:s,excludeBots:u,excludeMaxVisitsReached:d,excludePastValidUntil:f,...m}=n,p=o?qK(o):void 0,b=s?.split(",")??[];return{...m,orderBy:p,tags:b,excludeBots:u!==void 0?u==="true":void 0,excludeMaxVisitsReached:d!==void 0?d==="true":void 0,excludePastValidUntil:f!==void 0?f==="true":void 0}},[n]),i=A.useCallback(o=>{const s={...r,...o},{orderBy:u,tags:d,excludeBots:f,excludeMaxVisitsReached:m,excludePastValidUntil:p,...b}=s,_={...b,orderBy:u&&HK(u),tags:d.length>0?d.join(","):void 0,excludeBots:wb(f),excludeMaxVisitsReached:wb(m),excludePastValidUntil:wb(p)},w=Dw(_),x=w?`?${w}`:"";e(`${t}/list-short-urls/1${x}`)},[r,e,t]);return[r,i]},a3=()=>{const{domain:e}=Af(),{shortCode:t=""}=xf();return A.useMemo(()=>({shortCode:t3(t),domain:e}),[e,t])},Jy=()=>{const e=_K();return y.jsx(oy,{size:"lg",className:"[&]:p-1 mr-4",onClick:e,"aria-label":"Go back",children:y.jsx(Ye,{icon:AV})})},Wve={AF:"Afghanistan",AL:"Albania",DZ:"Algeria",AS:"American Samoa",AD:"Andorra",AO:"Angola",AI:"Anguilla",AQ:"Antarctica",AG:"Antigua and Barbuda",AR:"Argentina",AM:"Armenia",AW:"Aruba",AU:"Australia",AT:"Austria",AZ:"Azerbaijan",BS:"Bahamas",BH:"Bahrain",BD:"Bangladesh",BB:"Barbados",BY:"Belarus",BE:"Belgium",BZ:"Belize",BJ:"Benin",BM:"Bermuda",BT:"Bhutan",BO:"Bolivia",BA:"Bosnia and Herzegovina",BW:"Botswana",BR:"Brazil",IO:"British Indian Ocean Territory",VG:"British Virgin Islands",BN:"Brunei",BG:"Bulgaria",BF:"Burkina Faso",BI:"Burundi",KH:"Cambodia",CM:"Cameroon",CA:"Canada",CV:"Cape Verde",KY:"Cayman Islands",CF:"Central African Republic",TD:"Chad",CL:"Chile",CN:"China",CX:"Christmas Island",CC:"Cocos Islands",CO:"Colombia",KM:"Comoros",CK:"Cook Islands",CR:"Costa Rica",HR:"Croatia",CU:"Cuba",CW:"Curacao",CY:"Cyprus",CZ:"Czech Republic",CD:"Democratic Republic of the Congo",DK:"Denmark",DJ:"Djibouti",DM:"Dominica",DO:"Dominican Republic",TL:"East Timor",EC:"Ecuador",EG:"Egypt",SV:"El Salvador",GQ:"Equatorial Guinea",ER:"Eritrea",EE:"Estonia",ET:"Ethiopia",FK:"Falkland Islands",FO:"Faroe Islands",FJ:"Fiji",FI:"Finland",FR:"France",PF:"French Polynesia",GA:"Gabon",GM:"Gambia",GE:"Georgia",DE:"Germany",GH:"Ghana",GI:"Gibraltar",GR:"Greece",GL:"Greenland",GD:"Grenada",GU:"Guam",GT:"Guatemala",GG:"Guernsey",GN:"Guinea",GW:"Guinea-Bissau",GY:"Guyana",HT:"Haiti",HN:"Honduras",HK:"Hong Kong",HU:"Hungary",IS:"Iceland",IN:"India",ID:"Indonesia",IR:"Iran",IQ:"Iraq",IE:"Ireland",IM:"Isle of Man",IL:"Israel",IT:"Italy",CI:"Ivory Coast",JM:"Jamaica",JP:"Japan",JE:"Jersey",JO:"Jordan",KZ:"Kazakhstan",KE:"Kenya",KI:"Kiribati",XK:"Kosovo",KW:"Kuwait",KG:"Kyrgyzstan",LA:"Laos",LV:"Latvia",LB:"Lebanon",LS:"Lesotho",LR:"Liberia",LY:"Libya",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",MO:"Macao",MK:"Macedonia",MG:"Madagascar",MW:"Malawi",MY:"Malaysia",MV:"Maldives",ML:"Mali",MT:"Malta",MH:"Marshall Islands",MR:"Mauritania",MU:"Mauritius",YT:"Mayotte",MX:"Mexico",FM:"Micronesia",MD:"Moldova",MC:"Monaco",MN:"Mongolia",ME:"Montenegro",MS:"Montserrat",MA:"Morocco",MZ:"Mozambique",MM:"Myanmar",NA:"Namibia",NR:"Nauru",NP:"Nepal",NL:"Netherlands",AN:"Netherlands Antilles",NC:"New Caledonia",NZ:"New Zealand",NI:"Nicaragua",NE:"Niger",NG:"Nigeria",NU:"Niue",KP:"North Korea",MP:"Northern Mariana Islands",NO:"Norway",OM:"Oman",PK:"Pakistan",PW:"Palau",PS:"Palestine",PA:"Panama",PG:"Papua New Guinea",PY:"Paraguay",PE:"Peru",PH:"Philippines",PN:"Pitcairn",PL:"Poland",PT:"Portugal",PR:"Puerto Rico",QA:"Qatar",CG:"Republic of the Congo",RE:"Reunion",RO:"Romania",RU:"Russia",RW:"Rwanda",BL:"Saint Barthelemy",SH:"Saint Helena",KN:"Saint Kitts and Nevis",LC:"Saint Lucia",MF:"Saint Martin",PM:"Saint Pierre and Miquelon",VC:"Saint Vincent and the Grenadines",WS:"Samoa",SM:"San Marino",ST:"Sao Tome and Principe",SA:"Saudi Arabia",SN:"Senegal",RS:"Serbia",SC:"Seychelles",SL:"Sierra Leone",SG:"Singapore",SX:"Sint Maarten",SK:"Slovakia",SI:"Slovenia",SB:"Solomon Islands",SO:"Somalia",ZA:"South Africa",KR:"South Korea",SS:"South Sudan",ES:"Spain",LK:"Sri Lanka",SD:"Sudan",SR:"Suriname",SJ:"Svalbard and Jan Mayen",SZ:"Swaziland",SE:"Sweden",CH:"Switzerland",SY:"Syria",TW:"Taiwan",TJ:"Tajikistan",TZ:"Tanzania",TH:"Thailand",TG:"Togo",TK:"Tokelau",TO:"Tonga",TT:"Trinidad and Tobago",TN:"Tunisia",TR:"Turkey",TM:"Turkmenistan",TC:"Turks and Caicos Islands",TV:"Tuvalu",VI:"U.S. Virgin Islands",UG:"Uganda",UA:"Ukraine",AE:"United Arab Emirates",GB:"United Kingdom",US:"United States",UY:"Uruguay",UZ:"Uzbekistan",VU:"Vanuatu",VA:"Vatican",VE:"Venezuela",VN:"Vietnam",WF:"Wallis and Futuna",EH:"Western Sahara",YE:"Yemen",ZM:"Zambia",ZW:"Zimbabwe"},Kve=({deviceType:e,onDeviceTypeChange:t})=>{const n=ra("desktopDeviceTypes"),r=A.useMemo(()=>{const i={android:"Android",ios:"iOS"};return n&&(i.mobile="Any mobile device",i.windows="Windows",i.macos="MacOS",i.linux="Linux",i.chromeos="ChromeOS"),i.desktop="Any desktop device",i},[n]);return y.jsxs(Nw,{label:"Device type:",value:e??void 0,onChange:i=>t(i.target.value),hiddenRequired:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select type -"}),Object.entries(r).map(([i,o])=>y.jsx("option",{value:i,children:o},i))]})},o3=({value:e,onValueChange:t,label:n,placeholder:r})=>y.jsx(li,{label:`${n}:`,value:e??"",onChange:i=>t(i.target.value),placeholder:r,hiddenRequired:!0}),Zve=({language:e,onLanguageChange:t})=>y.jsx(o3,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),sx=({name:e,value:t,onNameChange:n,onValueChange:r})=>y.jsxs(y.Fragment,{children:[y.jsx(li,{label:"Param name:",value:e??"",onChange:i=>n(i.target.value),placeholder:"hello",hiddenRequired:!0}),typeof t=="string"&&y.jsx(li,{label:"Param value:",value:t,onChange:i=>r(i.target.value),placeholder:"world",hiddenRequired:!0})]}),Xve=({ipAddress:e,onIpAddressChange:t})=>y.jsx(o3,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),Qve=({countryCode:e,onCountryCodeChange:t})=>y.jsxs(Nw,{label:"Country:",value:e??void 0,onChange:n=>t(n.target.value),hiddenRequired:!0,children:[!e&&y.jsx("option",{value:"",children:"- Select country -"}),Object.entries(Wve).map(([n,r])=>y.jsx("option",{value:n,children:r},n))]}),Jve=({cityName:e,onCityNameChange:t})=>y.jsx(o3,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),eye=({condition:e,onConditionChange:t,onDelete:n})=>{const r=A.useCallback(m=>t({type:m,matchValue:null,matchKey:null}),[t]),i=A.useCallback(m=>t({...e,matchValue:m}),[e,t]),o=A.useCallback(m=>t({...e,matchKey:m}),[e,t]),s=ra("ipRedirectCondition"),u=ra("geolocationRedirectCondition"),d=ra("advancedQueryRedirectConditions"),f=A.useMemo(()=>{const m={device:"Device type",language:"Language","query-param":"Query param"};return d&&(m["any-value-query-param"]="Any value query param",m["valueless-query-param"]="Valueless query param"),s&&(m["ip-address"]="IP address"),u&&(m["geolocation-country-code"]="Country (geolocation)",m["geolocation-city-name"]="City name (geolocation)"),m},[d,u,s]);return y.jsxs("div",{className:Pe("flex flex-col gap-2","border border-lm-border dark:border-dm-border","rounded-md relative p-4 h-full"),children:[y.jsxs("div",{children:[y.jsx(Rt,{variant:"secondary","aria-label":"Remove condition",onClick:n,className:Pe("absolute -top-3.5 -right-3.5 [&]:px-2","[&]:rounded-full bg-lm-primary dark:bg-dm-primary"),children:y.jsx(Ye,{icon:Wv,widthAuto:!0})}),y.jsx(Nw,{label:"Type:",value:e.type,onChange:m=>r(m.target.value),hiddenRequired:!0,children:Object.entries(f).map(([m,p])=>y.jsx("option",{value:m,children:p},m))})]}),e.type==="device"&&y.jsx(Kve,{deviceType:e.matchValue,onDeviceTypeChange:i}),e.type==="language"&&y.jsx(Zve,{language:e.matchValue,onLanguageChange:i}),e.type==="query-param"&&y.jsx(sx,{name:e.matchKey,value:e.matchValue??"",onNameChange:o,onValueChange:i}),e.type==="any-value-query-param"&&y.jsx(sx,{name:e.matchKey,onNameChange:o,onValueChange:i}),e.type==="valueless-query-param"&&y.jsx(sx,{name:e.matchKey,onNameChange:o,onValueChange:i}),e.type==="ip-address"&&y.jsx(Xve,{ipAddress:e.matchValue,onIpAddressChange:i}),e.type==="geolocation-country-code"&&y.jsx(Qve,{countryCode:e.matchValue,onCountryCodeChange:i}),e.type==="geolocation-city-name"&&y.jsx(Jve,{cityName:e.matchValue,onCityNameChange:i})]})},DI=({isOpen:e,onClose:t,onSave:n,initialData:r})=>{const[i,o]=A.useState(r??{longUrl:"",conditions:[]}),s=A.useCallback(()=>{i&&n(i),t()},[n,i,t]),u=A.useCallback(()=>o(({longUrl:b,conditions:_})=>({longUrl:b,conditions:[..._,{type:"device",matchValue:null,matchKey:null}]})),[]),d=A.useCallback((b,_)=>o(({longUrl:w,conditions:x})=>{const C=[...x];return C[b]=_,{longUrl:w,conditions:C}}),[]),f=A.useCallback(b=>o(({longUrl:_,conditions:w})=>{const x=[...w];return x.splice(b,1),{longUrl:_,conditions:x}}),[]),m=A.useRef(null),p=A.useCallback(()=>o(r??{longUrl:"",conditions:[]}),[r]);return A.useEffect(()=>{const b=new MutationObserver(()=>{m.current&&e&&(m.current.focus(),b.disconnect())});return b.observe(document.body,{childList:!0,subtree:!0}),()=>b.disconnect()},[e]),y.jsxs(co,{size:"xl",title:"Redirect rule",open:e,onClose:t,onClosed:p,onConfirm:s,confirmDisabled:i.conditions.length===0,confirmText:"Confirm",children:[y.jsx(li,{label:"Long URL:",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:b=>o(_=>({..._,longUrl:b.target.value})),hiddenRequired:!0,ref:m}),y.jsx("hr",{}),y.jsxs("div",{className:"flex justify-between",children:[y.jsx("b",{children:"Conditions:"}),y.jsx(Rt,{className:"[&]:px-1.5",variant:"secondary","aria-label":"Add condition",onClick:u,children:y.jsx(Ye,{icon:Gh})})]}),i.conditions.length===0&&y.jsx("div",{className:"text-center",children:y.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&y.jsx("div",{className:"pr-3 mt-6 grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:i.conditions.map((b,_)=>y.jsx(eye,{condition:b,onConditionChange:w=>d(_,w),onDelete:()=>f(_)},`${_}_${b.type}`))})]})},tye=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:o,onUpdate:s})=>{const{flag:u,setToTrue:d,setToFalse:f}=wn();return y.jsxs(Pt,{children:[y.jsxs("div",{className:"flex align-center gap-4",children:[y.jsx("div",{className:"flex flex-col my-auto hidden md:block cursor-grab drag-n-drop-handler",children:y.jsx(Ye,{icon:xV})}),y.jsxs("div",{className:"flex flex-col my-auto",children:[y.jsx(Rt,{variant:"secondary","aria-label":`Move rule with priority ${e} up`,disabled:e===1,onClick:i,className:"[&]:px-2 rounded-b-none mb-[-1px]",children:y.jsx(Ye,{icon:dV})}),y.jsx(Rt,{variant:"secondary","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:o,className:"[&]:px-2 rounded-t-none",children:y.jsx(Ye,{icon:kV})})]}),y.jsxs("div",{className:"grow",children:[y.jsxs("div",{className:"mb-2",children:[y.jsx("b",{children:"Long URL:"})," ",y.jsx(Ti,{href:n.longUrl,"data-testid":"rule-long-url"})]}),y.jsxs("div",{className:"flex flex-col lg:flex-row gap-2",children:[y.jsx("b",{children:"Conditions:"}),n.conditions.map((m,p)=>y.jsxs("div",{className:"rounded-sm bg-gray-600 px-1 text-white",children:[m.type==="device"&&y.jsxs(y.Fragment,{children:["Device is ",m.matchValue]}),m.type==="language"&&y.jsxs(y.Fragment,{children:[m.matchValue," language is accepted"]}),m.type==="query-param"&&y.jsxs(y.Fragment,{children:["Query string contains ",m.matchKey,"=",m.matchValue]}),m.type==="ip-address"&&y.jsxs(y.Fragment,{children:["IP address matches ",m.matchValue]}),m.type==="geolocation-country-code"&&y.jsxs(y.Fragment,{children:["Country code is ",m.matchValue]}),m.type==="geolocation-city-name"&&y.jsxs(y.Fragment,{children:["City name is ",m.matchValue]})]},`${m.type}_${p}`))]})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-1 my-auto",children:[y.jsx(Rt,{className:"[&]:px-1.5",variant:"secondary","aria-label":`Edit rule with priority ${e}`,onClick:d,children:y.jsx(Ye,{icon:aR})}),y.jsx(Rt,{className:"[&]:px-2",variant:"danger","aria-label":`Delete rule with priority ${e}`,onClick:r,children:y.jsx(Ye,{icon:hV})})]})]}),y.jsx(DI,{onSave:s,isOpen:u,onClose:f,initialData:n})]})},nye=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:o,resetSetRules:s})=>{const u=a3(),{shortUrls:d}=r,f=u&&d?.get(u),[m,p,b]=Yve([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"opacity-25"}),{saving:_,saved:w,errorData:x}=o,{flag:C,setToFalse:E,setToTrue:j}=wn(),O=A.useCallback(ee=>b((J=[])=>[...J,ee]),[b]),N=A.useCallback(ee=>b((J=[])=>{const ne=[...J];return ne.splice(ee,1),ne}),[b]),U=A.useCallback((ee,J)=>b((ne=[])=>{const he=[...ne];return he[ee]=J,he}),[b]),$=A.useCallback((ee,J)=>b((ne=[])=>{if(!ne[J])return ne;const he=[...ne],Q=he[J];return he[J]=he[ee],he[ee]=Q,he}),[b]),K=A.useCallback(ee=>$(ee,ee-1),[$]),X=A.useCallback(ee=>$(ee,ee+1),[$]),oe=A.useCallback(ee=>{ee.preventDefault(),p&&i({shortUrl:u,data:{redirectRules:p}})},[u,p,i]);return A.useEffect(()=>(t(u),n([u]),s),[t,n,u,s]),A.useEffect(()=>{e.redirectRules&&b(e.redirectRules)},[b,e.redirectRules]),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx("header",{children:y.jsxs(Pt,{children:[y.jsxs("h2",{className:"sm:flex justify-between items-center",children:[y.jsx(Jy,{}),y.jsxs("div",{className:"text-center grow",children:[r.loading&&y.jsx(y.Fragment,{children:"Loading..."}),!r.loading&&y.jsxs("small",{children:["Redirect rules for ",y.jsx(Ti,{href:f?.shortUrl??""})]})]})]}),y.jsx("hr",{}),y.jsxs("div",{children:[y.jsx("p",{children:"Configure dynamic conditions that will be checked at runtime."}),y.jsxs("p",{children:["If no conditions match, visitors will be redirected to: ",y.jsx(Ti,{href:e.defaultLongUrl??""})]})]})]})}),y.jsx("div",{children:y.jsxs(Rt,{onClick:j,children:[y.jsx(Ye,{icon:Gh})," Add rule"]})}),y.jsxs("form",{onSubmit:oe,children:[e.loading&&y.jsx(Zo,{loading:!0}),p.length===0&&!e.loading&&y.jsx(Pt,{className:"text-center",children:y.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),y.jsx("div",{className:"flex flex-col gap-2",ref:m,children:p.map((ee,J)=>y.jsx(tye,{redirectRule:ee,priority:J+1,isLast:J===p.length-1,onDelete:()=>N(J),onMoveUp:()=>K(J),onMoveDown:()=>X(J),onUpdate:ne=>U(J,ne)},`${ee.longUrl}_${J}`))}),y.jsx("div",{className:"text-center mt-4",children:y.jsx(Rt,{type:"submit",inline:!0,className:"max-md:w-full",disabled:_,"data-testid":"save-button",children:_?"Saving...":"Save rules"})})]}),x&&y.jsx(zr,{variant:"error",children:y.jsx(so,{errorData:x,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),w&&y.jsx(zr,{variant:"success",children:"Redirect rules properly saved."}),y.jsx(DI,{isOpen:C,onClose:E,onSave:O})]})},rye=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>nye),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",qge,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",$ge,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",Gge,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",Vge,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},iye=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{error:r,saved:i}=e;if(A.useEffect(()=>{t()},[t]),r)return y.jsxs(zr,{variant:"error",className:"mt-4 relative",children:[n&&y.jsx("div",{className:"absolute right-1.5 top-1.5","data-testid":"error-close-button",children:y.jsx(Du,{onClick:t})}),y.jsx(so,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!i)return null;const{shortUrl:o}=e.result;return y.jsxs(zr,{variant:"success",className:"mt-4 relative",children:[n&&y.jsx("div",{className:"absolute right-1.5 top-1.5","data-testid":"success-close-button",children:y.jsx(Du,{onClick:t})}),y.jsxs("div",{className:"flex items-center justify-center gap-1",children:[y.jsxs("span",{children:[y.jsx("b",{children:"Great!"})," The short URL is ",y.jsx("b",{children:o})]}),y.jsx(LN,{text:o})]})]})},aye=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:e?.validateUrls??!1,forwardQuery:e?.forwardQuery??!0}),kI=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i}=Nn(kI),o=Un("shortUrlCreation"),s=A.useMemo(()=>aye(o),[o]);return y.jsxs(y.Fragment,{children:[y.jsx(i,{initialState:s,saving:t.saving,basicMode:r,onSave:async u=>(n(),e(u))}),y.jsx(iye,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},oye=Ln(kI,["ShortUrlForm"]),II=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Nn(II),o=a3(),{loading:s,error:u,errorData:d,shortUrls:f}=e,m=o&&f?.get(o),{saving:p,saved:b,error:_,errorData:w}=n,x=Un("shortUrlCreation"),C=A.useMemo(()=>Lge(m,x),[m,x]);return A.useEffect(()=>{o&&t([o])},[t,o]),s?y.jsx(Zo,{loading:!0}):u?y.jsx(zr,{variant:"error",children:y.jsx(so,{errorData:d,fallbackMessage:"An error occurred while loading short URL detail :("})}):y.jsxs("div",{className:"flex flex-col gap-y-4",children:[y.jsx("header",{children:y.jsx(Pt,{children:y.jsxs("h2",{className:"sm:flex items-center",children:[y.jsx(Jy,{}),y.jsx("div",{className:"text-center grow",children:y.jsxs("small",{children:["Edit ",y.jsx(Ti,{href:m?.shortUrl??""})]})})]})})}),y.jsx(i,{initialState:C,saving:p,onSave:async E=>{m&&r({...m,data:E})}}),b&&_&&y.jsx(zr,{variant:"error",children:y.jsx(so,{errorData:w,fallbackMessage:"An error occurred while updating short URL :("})}),b&&!_&&y.jsx(zr,{variant:"success",children:"Short URL properly edited."})]})},sye=Ln(II,["ShortUrlForm"]),lx="delete",lye=({shortUrl:e,onClose:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:o,shortUrlDeleted:s})=>{const[u,d]=A.useState("");A.useEffect(()=>i,[i]);const{loading:f,error:m,deleted:p,errorData:b}=r,_=A.useCallback(()=>{i(),t()},[i,t]),w=A.useCallback(()=>o(e).then(x=>!XC(x)&&t()),[o,e,t]);return y.jsx(co,{open:n,title:"Delete short URL",variant:"danger",confirmText:f?"Deleting...":"Delete",confirmDisabled:u!==lx||f,onConfirm:w,onClose:_,onClosed:()=>p&&s(e),children:y.jsxs("div",{className:"flex flex-col gap-y-2",children:[y.jsxs("p",{children:[y.jsx("b",{className:"text-danger",children:"Caution!"})," You are about to delete a short URL."]}),y.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),y.jsx(li,{label:y.jsxs(y.Fragment,{children:["Type ",y.jsx("b",{children:lx})," to confirm deletion."]}),type:"text",placeholder:lx,value:u,onChange:x=>d(x.target.value),onKeyDown:x=>x.key==="Enter"&&w()}),m&&y.jsx(zr,{variant:dge(b)?"warning":"error",size:"sm",className:"mt-2",children:y.jsx(so,{errorData:b,fallbackMessage:"Something went wrong while deleting the URL :("})})]})})},UI=({amount:e=0,loading:t=!1,...n})=>y.jsxs(Rt,{...n,disabled:t,solid:!as(),children:[y.jsx(Ye,{icon:_V})," ",t?"Exporting...":y.jsxs(y.Fragment,{children:["Export (",Pn(e),")"]})]}),HP=20,zI=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Nn(zI),[{tags:r,search:i,startDate:o,endDate:s,orderBy:u,tagsMode:d}]=Qy(),{flag:f,setToTrue:m,setToFalse:p}=wn(),b=A.useCallback(async()=>{const _=e/HP,w=async(C=1)=>{const{data:E}=await t().listShortUrls({page:`${C}`,tags:r,searchTerm:i,startDate:o,endDate:s,orderBy:u,tagsMode:d,itemsPerPage:HP});return C>=_?E:E.concat(await w(C+1))};m();const x=await w();n.exportShortUrls(x.map(C=>{const{hostname:E,pathname:j}=new URL(C.shortUrl),O=j.substring(1);return{createdAt:C.dateCreated,domain:E,shortCode:O,shortUrl:C.shortUrl,longUrl:C.longUrl,title:C.title??"",tags:C.tags.join("|"),visits:C?.visitsSummary?.total??C.visitsCount??0}})),p()},[e,t,s,u,n,i,o,m,p,r,d]);return y.jsx(UI,{loading:f,className:"max-lg:w-full",amount:e,onClick:b})},uye=Ln(zI,["apiClientFactory","ReportExporter"]),cye="yyyy-MM-dd",BI="yyyy-MM-dd HH:mm",Sl=()=>new Date,s3=e=>typeof e!="string",l3=(e,t)=>!e||!s3(e)?e:t?nv(e,t):gJ(e),Cl=e=>l3(e,void 0),al=e=>l3(e,cye),$h=e=>l3(e,BI),Ci=e=>s3(e)?e:gl(e),vm=(e,t,n)=>{const r=Ci(e),i=t&&Ci(t),o=n&&Ci(n);if(i&&o)try{return bJ(r,{start:i,end:o})}catch{return!1}return i?Xx(r,i)||yJ(r,i):o?Xx(r,o)||rv(r,o):!0},mu=(e,t)=>Xx(e,t)||rv(e,t),Iv=({date:e,format:t=BI,relative:n=!1})=>{const r=s3(e)?e:gl(e);return y.jsx("time",{dateTime:`${vJ(r)}000`,children:n?`${pJ(Sl(),r)} ago`:nv(r,t)})},FI=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${pI(t)}/${r}${i}`},$I=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const o=ds();return!n||!e?y.jsx("span",{...i,children:r}):y.jsx(Rr,{to:FI(o,e,t),...i,children:r})},fye=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:o,validUntil:s}=t,u=r?.total??n??0;return i&&u>=i?{icon:OV,className:"text-danger",description:`This short URL cannot be currently visited because it has reached the maximum amount of ${i} visit${i>1?"s":""}`}:s&&rv(Ci(s),Sl())?{icon:YA,className:"text-danger",description:`This short URL cannot be visited since ${$h(Ci(s))}`}:o&&rv(Sl(),Ci(o))?{icon:YA,className:"text-warning",description:`This short URL will start working on ${$h(Ci(o))}`}:{icon:Ru,className:"text-lm-brand dark:text-dm-brand",description:"This short URL can be visited normally"}},dye=({shortUrl:e})=>{const{icon:t,className:n,description:r}=A.useMemo(()=>fye(e),[e]);return y.jsx("span",{className:"cursor-help",title:r,children:y.jsx(Ye,{icon:t,className:n})})},VI=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const{anchor:i,tooltip:o}=fo(),{maxVisits:s,validSince:u,validUntil:d}=t?.meta??{},f=!!s||!!u||!!d,m=y.jsx($I,{shortUrl:t,suffix:"visits",asLink:r,children:y.jsx("strong",{className:Pe("inline-block transition-all duration-300",{"scale-150":n}),children:Pn(e)})});return f?y.jsxs(y.Fragment,{children:[y.jsxs("span",{className:"whitespace-nowrap",children:[m,y.jsxs("small",{className:"cursor-help",...i,children:[s&&y.jsxs(y.Fragment,{children:[" / ",Pn(s)]}),y.jsx("sup",{className:"ml-1",children:y.jsx(Ye,{icon:Kv})})]})]}),y.jsx(ho,{...o,children:y.jsxs("ul",{className:"flex flex-col gap-y-2",children:[s&&y.jsxs("li",{children:["This short URL will not accept more than ",y.jsx("b",{children:Pn(s)})," visit",s===1?"":"s","."]}),u&&y.jsxs("li",{children:["This short URL will not accept visits before ",y.jsx("b",{className:"whitespace-nowrap",children:$h(Ci(u))}),"."]}),d&&y.jsxs("li",{children:["This short URL will not accept visits after ",y.jsx("b",{className:"whitespace-nowrap",children:$h(Ci(d))}),"."]})]})})]}):m},vf=({className:e,...t})=>y.jsx("button",{type:"button",className:Pe("rounded-sm focus-ring cursor-pointer",e),...t}),hye=e=>!!e.onClose,mye=e=>!!e.onClick,u3=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,o=mye(e),s=hye(e),u=o?vf:"span",d=A.useMemo(()=>i.stylesForKey(t),[t,i]);return y.jsxs(u,{className:Pe("inline-flex items-center gap-1","font-bold [&]:rounded-md",{"text-sm px-1.5 py-0.5":!s,"py-1 px-2":s,"cursor-pointer":o},r),style:d,onClick:o?e.onClick:void 0,"data-testid":"tag",children:[n??t,s&&y.jsx(vf,{"aria-label":`Remove ${t}`,className:"p-0 text-lg leading-5.5",onClick:e.onClose,children:y.jsx(Ye,{icon:dw,size:"sm"})})]})},pye=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?y.jsx("i",{className:"whitespace-nowrap",children:y.jsx("small",{children:"No tags"})}):y.jsx("div",{className:"inline-flex flex-wrap gap-1 items-center",children:e.map(r=>y.jsx(u3,{text:r,colorGenerator:n,onClick:()=>t?.(r)},r))}),HI=({shortUrl:e,onTagClick:t})=>{const{ShortUrlsRowMenu:n,ColorGenerator:r,useTimeoutToggle:i}=Nn(HI),[o,s]=i({initialValue:!1,delay:500}),u=A.useRef(!0),[{excludeBots:d}]=Qy(),f=Un("visits"),m=d??f?.excludeBots;return A.useEffect(()=>{u.current||s(),u.current=!1},[e.visitsSummary?.total,e.visitsSummary?.nonBots,e.visitsCount,s]),y.jsxs(Ke.Row,{className:"relative",children:[y.jsx(Ke.Cell,{className:"whitespace-nowrap",columnName:"Created at:",children:y.jsx(Iv,{date:e.dateCreated})}),y.jsx(Ke.Cell,{columnName:"Short URL:",children:y.jsxs("span",{className:"lg:whitespace-nowrap inline-flex items-center gap-x-2",children:[y.jsx(Ti,{href:e.shortUrl,className:"max-md:break-all lg:truncate max-w-72"}),y.jsx(LN,{text:e.shortUrl})]})}),y.jsx(Ke.Cell,{className:"break-all",columnName:`${e.title?"Title":"Long URL"}:`,children:y.jsx(Ti,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&y.jsx(Ke.Cell,{className:"break-all [&]:lg:hidden",columnName:"Long URL:",children:y.jsx(Ti,{href:e.longUrl})}),y.jsx(Ke.Cell,{columnName:"Tags:",children:y.jsx(pye,{tags:e.tags,colorGenerator:r,onTagClick:t})}),y.jsx(Ke.Cell,{className:"lg:text-right",columnName:"Visits:",children:y.jsx(VI,{visitsCount:(m?e.visitsSummary?.nonBots:e.visitsSummary?.total)??e.visitsCount??0,shortUrl:e,active:o,asLink:!0})}),y.jsx(Ke.Cell,{columnName:"Status:",className:"max-lg:border-none",children:y.jsxs("div",{className:"inline-flex gap-2",children:[y.jsx(dye,{shortUrl:e}),e.hasRedirectRules&&y.jsx($I,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:y.jsx(Ye,{icon:iR})})]})}),y.jsx(Ke.Cell,{className:"text-right max-lg:absolute max-lg:top-1 max-lg:right-1 max-lg:p-0",children:y.jsx(n,{shortUrl:e})})]})},gye=Ln(HI,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),qI=A.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>y.jsxs("div",{className:Pe("relative rounded w-12",r),style:{backgroundColor:t,borderColor:t},children:[y.jsx(ai,{className:"w-full h-full cursor-pointer relative z-1 opacity-0",type:"color",value:t,onChange:o=>n(o.target.value),ref:i,name:e,"aria-label":e.replace("-"," ")}),y.jsx(Ye,{icon:X$,className:"absolute top-1/2 left-1/2 -translate-1/2",style:{color:Lw(t.substring(1))?"#000":"#fff"}})]})),qP=({color:e,onChange:t,name:n})=>{const r=A.useRef(null);return y.jsxs("div",{className:"flex",children:[y.jsx(qI,{name:`${n}-picker`,color:e,onChange:t,className:"rounded-r-none",ref:r}),y.jsx(ai,{readOnly:!0,value:e,onClick:()=>r.current?.click(),"aria-label":n,"data-testid":"text-input",className:"grow rounded-l-none"})]})};function vye(e){switch(e){case"L":return 1;case"M":return .5;default:return .3}}const yye=A.forwardRef(({data:e,color:t="#000000",bgColor:n="#ffffff",margin:r=0,errorCorrection:i="L",size:o=300,drawType:s="canvas",logo:u},d)=>{const f=A.useRef(null),m=A.useRef(new UJ),p=A.useCallback((_,w)=>m.current.download({name:_,extension:w}),[]),b=A.useCallback(_=>new Promise((w,x)=>{const C=m.current.getRawData(_),E=new FileReader;E.onload=()=>{const{result:j}=E;j&&w(j.toString())},E.onerror=x,C.then(j=>{j instanceof Blob?E.readAsDataURL(j):x(new Error("QR code image blob not available"))})}),[]);return A.useImperativeHandle(d,()=>({download:p,getDataUri:b}),[p,b]),A.useEffect(()=>{const _=f.current;m.current.append(_)},[]),A.useEffect(()=>{m.current.update({type:s,data:e,width:o+r,height:o+r,margin:r,dotsOptions:{color:t},backgroundOptions:{color:n},qrOptions:{errorCorrectionLevel:i},imageOptions:{margin:5,imageSize:vye(i)},image:u})},[n,t,e,s,i,u,r,o]),y.jsxs(y.Fragment,{children:[y.jsx("style",{dangerouslySetInnerHTML:{__html:"#qr-code-canvas-container canvas { max-width: 100% }"}}),y.jsx("div",{ref:f,id:"qr-code-canvas-container"})]})}),bye=async({text:e,onCopy:t},n=navigator)=>{const r=typeof e=="string"?e:await e;return n.clipboard?.writeText(r).then(()=>t?.({text:r,copied:!0})).catch(()=>t?.({text:r,copied:!1}))},GP=({name:e,value:t,step:n,min:r,max:i,onChange:o})=>{const s=A.useId();return y.jsxs("div",{className:"flex flex-col gap-1",children:[y.jsxs("label",{htmlFor:s,className:"capitalize",children:[e,": ",t,"px"]}),y.jsx("input",{id:s,type:"range",value:t,step:n,min:r,max:i,onChange:u=>o(Number(u.target.value))})]})},_ye=({shortUrl:{shortUrl:e,shortCode:t},onClose:n,isOpen:r,qrDrawType:i})=>{const o=Un("qrCodes",Of),[{size:s,margin:u,color:d,bgColor:f,errorCorrection:m,format:p},b]=A.useState(o),_=A.useCallback(X=>b(oe=>({...oe,...X})),[]),w=A.useRef(null),[x,C]=A.useState(),E=A.useCallback(X=>{const oe=X.target.files?.[0];oe&&C({url:URL.createObjectURL(new Blob([oe],{type:oe.type})),name:oe.name})},[]),j=A.useRef(null),O=A.useCallback(()=>j.current?.download(`${t}-qr-code`,p),[p,t]),[N,U]=ay({}),$=A.useCallback(()=>{const X=j.current?.getDataUri(p)??"";return bye({text:X,onCopy:U})},[p,U]),K=A.useCallback(()=>{b(o),C(void 0)},[o]);return y.jsx(co,{size:"lg",open:r,onClose:n,title:y.jsxs(y.Fragment,{children:["QR code for ",y.jsx(Ti,{href:e})]}),onClosed:K,children:y.jsxs("div",{className:"flex flex-col-reverse lg:flex-row gap-4",children:[y.jsx("div",{className:"grow flex items-center justify-around",children:y.jsxs("div",{className:"flex flex-col gap-1 items-center","data-testid":"qr-code-container",children:[y.jsx(yye,{ref:j,data:e,size:s,margin:u,errorCorrection:m,color:d,bgColor:f,logo:x?.url,drawType:i}),y.jsxs("div",{className:"italic",children:["Preview (",s+u,"x",s+u,")"]})]})}),y.jsxs("div",{className:"flex flex-col gap-2 lg:w-64",children:[y.jsx(GP,{name:"size",value:s,onChange:X=>_({size:X}),step:10,min:50,max:1e3}),y.jsx(GP,{name:"margin",value:u,onChange:X=>_({margin:X}),step:1,min:0,max:100}),y.jsx(jL,{errorCorrection:m,onChange:X=>_({errorCorrection:X})}),y.jsx(qP,{name:"color",color:d,onChange:X=>_({color:X})}),y.jsx(qP,{name:"background",color:f,onChange:X=>_({bgColor:X})}),!x&&y.jsxs(y.Fragment,{children:[y.jsxs(Rt,{variant:"secondary",onClick:()=>w.current?.click(),children:[y.jsx(Ye,{icon:YW}),"Select logo"]}),y.jsx("input",{ref:w,type:"file",accept:"image/*","aria-hidden":!0,tabIndex:-1,className:"hidden",onChange:E,"data-testid":"logo-input"})]}),x&&y.jsxs(Rt,{variant:"secondary",onClick:()=>C(void 0),children:[y.jsx(Ye,{icon:Wv}),y.jsxs("div",{className:"truncate",children:["Clear logo (",x.name,")"]})]}),y.jsx("div",{className:"my-auto",children:y.jsx("hr",{className:"my-2"})}),y.jsxs("div",{className:"flex flex-col gap-2",children:[y.jsx(ML,{format:p,onChange:X=>_({format:X})}),y.jsxs("div",{className:"flex items-center gap-2",children:[y.jsx(Rt,{onClick:$,"aria-label":"Copy data URI",title:"Copy data URI",className:"h-full",children:y.jsx(Ye,{icon:N?Ru:RN})}),y.jsxs(Rt,{solid:!0,onClick:O,className:"grow",children:["Download ",y.jsx(Ye,{icon:rR})]})]})]})]})]})})},GI=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r}=Nn(GI),{flag:i,setToTrue:o,setToFalse:s}=wn(),{flag:u,setToTrue:d,setToFalse:f}=wn(),m=Yy(),p=ra("shortUrlRedirectRules"),{confirmDeletions:b=!0}=Un("shortUrlsList",{}),_=A.useCallback(async()=>{const C=await t(e);XC(C)||n(e)},[t,e,n]),w=ds(),x=A.useCallback(C=>FI(w,e,C),[w,e]);return y.jsxs(y.Fragment,{children:[y.jsxs(rn,{menuAlignment:"right",children:[y.jsxs(rn.Item,{to:x("visits"),className:"gap-1.5",children:[y.jsx(Ye,{icon:mw})," Visit stats"]}),m&&y.jsxs(y.Fragment,{children:[y.jsxs(rn.Item,{className:"gap-1.5",disabled:!m.canAddItemWithName(e.shortUrl),onClick:()=>m.addItemToCompare({name:e.shortUrl,query:n3(e)}),children:[y.jsx(Ye,{icon:Yv})," Compare visits"]}),y.jsx(rn.Separator,{})]}),y.jsxs(rn.Item,{to:x("edit"),className:"gap-1.5",children:[y.jsx(Ye,{icon:fw})," Edit short URL"]}),p&&y.jsxs(rn.Item,{to:x("redirect-rules"),className:"gap-1.5",children:[y.jsx(Ye,{icon:iR})," Manage redirect rules"]}),y.jsxs(rn.Item,{onClick:o,className:"gap-1.5",children:[y.jsx(Ye,{icon:BV})," QR code"]}),y.jsx(rn.Separator,{}),y.jsxs(rn.Item,{className:"[&]:text-danger gap-1.5",onClick:b?d:_,children:[y.jsx(Ye,{icon:uR})," Delete short URL"]})]}),y.jsx(_ye,{shortUrl:e,isOpen:i,onClose:s}),y.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:u,onClose:f})]})},xye=Ln(GI,["DeleteShortUrlModal"]),YI="shlink/shortUrlCreation",YP={saving:!1,saved:!1,error:!1},wye=e=>tr(`${YI}/createShortUrl`,t=>e().createShortUrl(t)),Sye=e=>{const{reducer:t,actions:n}=Nt({name:YI,initialState:YP,reducers:{resetCreateShortUrl:()=>YP},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(o,{error:s})=>({saving:!1,saved:!1,error:!0,errorData:Ii(s)})),i.addCase(e.fulfilled,(o,{payload:s})=>({result:s,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},WI="shlink/shortUrlEdition",Cye={saving:!1,saved:!1,error:!1},Eye=e=>tr(`${WI}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl({shortCode:t,domain:n},r)),Aye=e=>Nt({name:WI,initialState:Cye,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,saving:!0,error:!1,saved:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,saving:!1,error:!0,saved:!1,errorData:Ii(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),WP="shlink/shortUrlsDetails",KP={loading:!1,error:!1},Tye=e=>{const t=tr(`${WP}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:o}=i(),s=await Promise.all(r.map(async u=>{const{shortCode:d,domain:f}=u,m=o?.shortUrls?.data.find(p=>_h(p,d,f));return[u,m??await e().getShortUrl({shortCode:d,domain:f})]}));return new Map(s)}),{reducer:n}=Nt({name:WP,initialState:KP,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({loading:!1,error:!0,errorData:Ii(o)})),r.addCase(t.fulfilled,(i,{payload:o})=>({...KP,shortUrls:o}))}});return{reducer:n,getShortUrlsDetails:t}},Oye=({domains:e,value:t,onChange:n})=>{const{flag:r,setToTrue:i,setToFalse:o}=wn(),s=!t,u=A.useCallback(()=>{n(""),o()},[n,o]),d=A.useCallback(()=>{n(""),i()},[n,i]);return r?y.jsxs("div",{className:"flex",children:[y.jsx(ai,{value:t??"",placeholder:"Domain",onChange:f=>n(f.target.value),className:"flex-grow rounded-r-none [&]:border-r-0"}),y.jsx(Rt,{variant:"secondary",type:"button",className:"rounded-l-none","aria-label":"Back to domains list",title:"Existing domains",onClick:u,children:y.jsx(Ye,{icon:NV})})]}):y.jsxs(Qe,{buttonContent:s?"Domain":`Domain: ${t}`,buttonClassName:Pe("w-full",{"text-placeholder":s}),children:[e.map(({domain:f,isDefault:m})=>y.jsxs(Qe.Item,{selected:(t===f||m)&&s,onClick:()=>n(f),className:"flex justify-between items-center",children:[f,m&&y.jsx(Uu,{children:"default"})]},f)),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{onClick:d,children:y.jsx("i",{children:"New domain"})})]})},ux=({icon:e,className:t,...n})=>{const r=A.useRef(null);return y.jsxs("div",{className:"relative",children:[y.jsx(ai,{className:Pe("pr-11",t),ref:r,...n}),y.jsx(Ye,{icon:e,className:"absolute right-3 top-1/2 -translate-y-1/2 cursor-pointer",onClick:()=>r.current?.focus()})]})},jye=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...o})=>{const s=A.useCallback(({target:d})=>{if(!d.value){r?.(null);return}r?.(Ci(d.value))},[r]),u=A.useMemo(()=>i?$h:al,[i]);return y.jsx(ai,{...o,type:i?"datetime-local":"date",value:u(n)??"",max:u(t)??void 0,min:u(e)??void 0,onChange:s})},Uv=({label:e,id:t,...n})=>{const r=A.useId();return y.jsxs(y.Fragment,{children:[y.jsxs("label",{htmlFor:t??r,className:"mb-1",children:[e,":"]}),y.jsx(jye,{id:t??r,...n})]})},Mye=({className:e,placement:t,children:n})=>{const{anchor:r,tooltip:i}=fo({placement:t});return y.jsxs(y.Fragment,{children:[y.jsx("span",{className:e,...r,"data-placement":t,"data-testid":"tooltip-anchor",children:y.jsx(Ye,{icon:Kv})}),y.jsx(ho,{...i,children:n})]})},cx=({children:e,infoTooltip:t,checked:n,onChange:r})=>y.jsxs("div",{className:"flex items-center gap-x-2",children:[y.jsxs(Ma,{className:"inline-flex items-center gap-x-1.5",children:[y.jsx(Pw,{checked:n,onChange:r}),e]}),y.jsx(Mye,{placement:"right",children:t})]}),Pye=e=>y.jsx(co,{...e,title:"Info",size:"lg",children:y.jsxs("div",{className:"flex flex-col gap-y-2",children:[y.jsxs("p",{children:["When the ",y.jsx("b",{children:y.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),y.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),y.jsxs("ul",{className:"list-disc pl-5",children:[y.jsx("li",{children:"When only the long URL is provided: The most recent match will be returned, or a new short URL will be created if none is found."}),y.jsxs("li",{children:["When long URL and custom slug and/or domain are provided: Same as in previous case, but it will try to match the short URL using both the long URL and the slug, the long URL and the domain, or the three of them.",y.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),y.jsx("li",{children:"When other params are provided: Same as in previous cases, but it will try to match existing short URLs with all provided data. If any of them does not match, a new short URL will be created"})]})]})}),Rye=()=>{const{flag:e,setToFalse:t,setToTrue:n}=wn();return y.jsxs(y.Fragment,{children:[y.jsx(vf,{title:"What does this mean?",onClick:n,children:y.jsx(Ye,{icon:Kv})}),y.jsx(Pye,{open:e,onClose:t})]})},pg=e=>typeof e=="string"?gl(e):e,Nye=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,KI=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:o})=>{const{TagsSelector:s}=Nn(KI),[u,d]=A.useState(r),f=Nye(u),m=ra("deviceLongUrls"),p=ra("urlValidation"),b=p||f,_=A.useCallback(()=>d(r),[r]),w=A.useCallback((O,N)=>bu(O)?O:bu(N)?null:void 0,[]),x=A.useCallback((O,N)=>d(({deviceLongUrls:U={},...$})=>({...$,deviceLongUrls:{...U,[O]:w(N,r.deviceLongUrls?.[O])}})),[r.deviceLongUrls,w]),C=A.useCallback(O=>d(N=>({...N,tags:O})),[]),E=A.useCallback(async O=>(O.preventDefault(),n(u).then(N=>f&&!XC(N)&&_()).catch(()=>{})),[f,n,_,u]),j=A.useMemo(()=>y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx(ai,{size:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:u.longUrl,onChange:O=>d(N=>({...N,longUrl:O.target.value}))}),y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[e&&f&&y.jsx("div",{className:"w-full lg:w-1/2",children:y.jsx(ai,{size:"lg",placeholder:"Custom slug",value:u.customSlug??"",onChange:O=>d(N=>({...N,customSlug:O.target.value}))})}),y.jsx("div",{className:Pe("w-full",{"lg:w-1/2":e}),children:y.jsx(s,{tags:i.tags,selectedTags:u.tags??[],onChange:C})})]})]}),[s,e,C,f,u,i.tags]);return y.jsxs("form",{name:"shortUrlForm",onSubmit:E,className:"flex flex-col gap-4",children:[e&&j,!e&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{children:[y.jsx("div",{className:Pe({"sm:w-1/2":m,"w-full":!m}),children:y.jsx(Pt,{title:"Main options",className:"card",children:j})}),m&&y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(Pt,{title:"Device-specific long URLs",bodyClassName:"flex flex-col gap-y-4",className:"card",children:[y.jsx(ux,{type:"url",icon:BJ,placeholder:"Android-specific redirection",value:u.deviceLongUrls?.android??"",onChange:({target:O})=>x("android",O.value)}),y.jsx(ux,{type:"url",icon:zJ,placeholder:"iOS-specific redirection",value:u.deviceLongUrls?.ios??"",onChange:({target:O})=>x("ios",O.value)}),y.jsx(ux,{type:"url",icon:DV,placeholder:"Desktop-specific redirection",value:u.deviceLongUrls?.desktop??"",onChange:({target:O})=>x("desktop",O.value)})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(Pt,{title:"Customize the short URL",bodyClassName:"flex flex-col gap-4",className:"card h-full",children:[y.jsx(ai,{placeholder:"Title",value:u.title??"",onChange:({target:O})=>d(N=>({...N,title:w(O.value,r.title)}))}),f&&y.jsxs(y.Fragment,{children:[y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[y.jsx("div",{className:"lg:w-1/2",children:y.jsx(ai,{placeholder:"Custom slug",value:u.customSlug??"",onChange:O=>d(N=>({...N,customSlug:O.target.value})),disabled:bu(u.shortCodeLength)})}),y.jsx("div",{className:"lg:w-1/2",children:y.jsx(ai,{type:"number",placeholder:"Short code length",value:u.shortCodeLength??"",onChange:O=>d(N=>({...N,shortCodeLength:O.target.value})),min:4,disabled:bu(u.customSlug)})})]}),y.jsx(Oye,{value:u.domain,onChange:O=>d(N=>({...N,domain:O})),domains:o.domains})]})]})}),y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(Pt,{title:"Limit access to the short URL",className:"card h-full",bodyClassName:"flex flex-col gap-y-4",children:[y.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[y.jsx("div",{className:"lg:w-1/2",children:y.jsx(Uv,{label:"Enabled since",withTime:!0,maxDate:u.validUntil?pg(u.validUntil):void 0,value:u.validSince?pg(u.validSince):null,onChange:O=>d(N=>({...N,validSince:Cl(O)}))})}),y.jsx("div",{className:"lg:w-1/2",children:y.jsx(Uv,{label:"Enabled until",withTime:!0,minDate:u.validSince?pg(u.validSince):void 0,value:u.validUntil?pg(u.validUntil):null,onChange:O=>d(N=>({...N,validUntil:Cl(O)}))})})]}),y.jsx(li,{label:"Maximum visits allowed:",type:"number",min:1,placeholder:"25...",value:u.maxVisits??"",onChange:O=>d(N=>({...N,maxVisits:bu(O.target.value)?Number(O.target.value):null}))})]})})]}),y.jsxs("div",{className:"flex flex-col sm:flex-row gap-4",children:[b&&y.jsx("div",{className:"w-full sm:w-1/2",children:y.jsxs(Pt,{title:"Extra checks",className:"h-full",children:[p&&y.jsx(cx,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:u.validateUrl,onChange:O=>d(N=>({...N,validateUrl:O})),children:"Validate URL"}),f&&y.jsxs("p",{className:"inline-flex items-center gap-x-2",children:[y.jsxs(Ma,{className:"inline-flex items-center gap-x-1.5",children:[y.jsx(Pw,{checked:u.findIfExists,onChange:O=>d(N=>({...N,findIfExists:O}))}),"Use existing URL if found"]}),y.jsx(Rye,{})]})]})}),y.jsx("div",{className:Pe("w-full",{"sm:w-1/2":b}),children:y.jsxs(Pt,{title:"Configure behavior",children:[y.jsx(cx,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:u.crawlable,onChange:O=>d(N=>({...N,crawlable:O})),children:"Make it crawlable"}),y.jsx(cx,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:u.forwardQuery,onChange:O=>d(N=>({...N,forwardQuery:O})),children:"Forward query params on redirect"})]})})]})]}),y.jsx("div",{className:"text-center",children:y.jsx(Rt,{type:"submit",inline:!0,solid:!0,disabled:t||!u.longUrl,className:"max-md:w-full",children:t?"Saving...":"Save"})})]})},Lye=Ln(KI,["TagsSelector"]),Dye=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>y.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-y-3 gap-x-4",children:[y.jsx("div",{className:"flex flex-col",children:y.jsx(Uv,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),y.jsx("div",{className:"flex flex-col",children:y.jsx(Uv,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:o=>i(o&&sf(o))})})]}),e0="all",ZI={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[e0]:void 0},XI=Object.keys(ZI),kye=e=>!e||!e.startDate&&!e.endDate,zv=e=>typeof e=="string"&&XI.includes(e),Iye=XI.filter(e=>e!==e0),ZP=e=>e?Ci(e):null,QI=(e,t)=>({startDate:ZP(e),endDate:ZP(t)}),Uye=e=>{if(!(!e||kye(e)))return e.startDate&&!e.endDate?`Since ${al(e.startDate)}`:!e.startDate&&e.endDate?`Until ${al(e.endDate)}`:`${al(e.startDate)} - ${al(e.endDate)}`},XP=e=>{if(!(!e||e===e0))return zv(e)?ZI[e]:Uye(e)},ta=e=>Bu(iv(Sl(),e)),Vc=e=>({startDate:e,endDate:sf(Sl())}),JI=e=>[[()=>e==="today",()=>Vc(Bu(Sl()))],[()=>e==="yesterday",()=>({startDate:ta(1),endDate:sf(iv(Sl(),1))})],[()=>e==="last7Days",()=>Vc(ta(7))],[()=>e==="last30Days",()=>Vc(ta(30))],[()=>e==="last90Days",()=>Vc(ta(90))],[()=>e==="last180Days",()=>Vc(ta(180))],[()=>e==="last365Days",()=>Vc(ta(365))]].find(([t])=>t())?.[1]()??{},zye=e=>{const t=Ci(e);return[[()=>mu(Bu(Sl()),t),"today"],[()=>mu(ta(1),t),"yesterday"],[()=>mu(ta(7),t),"last7Days"],[()=>mu(ta(30),t),"last30Days"],[()=>mu(ta(90),t),"last90Days"],[()=>mu(ta(180),t),"last180Days"],[()=>mu(ta(365),t),"last365Days"]].find(([n])=>n())?.[1]??e0},e9=e=>zv(e)?JI(e):e,t9=e=>!!(e&&e.startDate),Bye=({startDate:e,endDate:t})=>{const n=UL(sf(t??new Date),Bu(e))+1,r=iv(Bu(e),n),i=iv(sf(e),1);return{startDate:r,endDate:i}},Fye=e=>{if(t9(e))return UL(e.endDate??new Date,e.startDate)},c3=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=A.useMemo(()=>XP(t)??n,[t,n]),[o,s]=A.useMemo(()=>zv(t)?[void 0,t]:[t,void 0],[t]),u=A.useCallback(d=>{zv(d)?e(JI(d),d):e(d)},[e]);return y.jsxs(Qe,{buttonDisabled:r,buttonContent:i,containerClassName:"[&]:block",buttonClassName:"w-full",children:[y.jsx(Qe.Item,{selected:s==="all",onClick:()=>u("all"),children:n}),y.jsx(Qe.Separator,{}),Iye.map(d=>y.jsx(Qe.Item,{selected:s===d,onClick:()=>u(d),children:XP(d)},d)),y.jsx(Qe.Separator,{}),y.jsx(Qe.Misc,{children:y.jsx(Dye,{...o,onStartDateChange:d=>u({...o,startDate:d}),onEndDateChange:d=>u({...o,endDate:d})})})]})},$ye={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Vye=({onChange:e,selected:t={},domains:n})=>{const r=ra("filterShortUrlsByDomain"),{excludeBots:i=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:s=!1,domain:u}=t,d=A.useCallback(m=>e({...t,...m}),[e,t]),f=A.useCallback(m=>d({[m]:!t?.[m]}),[d,t]);return y.jsxs(Qe,{buttonContent:"Filters",buttonClassName:"w-full",menuAlignment:"right",children:[y.jsx(Qe.Title,{children:"Visits:"}),y.jsx(Qe.Item,{selected:i,onClick:()=>f("excludeBots"),children:"Ignore visits from bots"}),y.jsx(Qe.Separator,{}),y.jsx(Qe.Title,{children:"Short URLs:"}),y.jsx(Qe.Item,{selected:o,onClick:()=>f("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),y.jsx(Qe.Item,{selected:s,onClick:()=>f("excludePastValidUntil"),children:"Exclude enabled in the past"}),r&&y.jsxs(y.Fragment,{children:[y.jsx(Qe.Separator,{}),y.jsxs(Qe.Title,{children:["Domain: ",!n&&y.jsx("i",{children:"loading..."})]}),n?.map(m=>{const p=m.isDefault?pf:m.domain,b=u===p;return y.jsx(Qe.Item,{selected:b,onClick:()=>d({domain:b?void 0:p}),children:m.domain},m.domain)})]}),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{disabled:t.excludeBots===void 0&&t.excludeMaxVisitsReached===void 0&&t.excludePastValidUntil===void 0&&t.domain===void 0,onClick:()=>e({excludeBots:void 0,excludeMaxVisitsReached:void 0,excludePastValidUntil:void 0,domain:void 0}),className:"italic",children:"Reset to defaults"})]})},n9=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:o})=>{const{ExportShortUrlsBtn:s,TagsSelector:u}=Nn(n9),[{search:d,tags:f,startDate:m,endDate:p,excludeBots:b,excludeMaxVisitsReached:_,excludePastValidUntil:w,domain:x,tagsMode:C="any"},E]=Qy(),j=Un("visits"),[O,N]=A.useState(),U=A.useCallback(({startDate:J,endDate:ne},he)=>{E({startDate:Cl(J)??void 0,endDate:Cl(ne)??void 0}),N(he)},[E]),$=A.useCallback(J=>E({search:J||void 0}),[E]),K=A.useCallback(J=>E({tags:J}),[E]),X=A.useCallback(()=>E({tagsMode:C==="any"?"all":"any"}),[C,E]),{anchor:oe,tooltip:ee}=fo({placement:"left"});return y.jsxs("div",{className:Pe("flex flex-col gap-y-4",e),children:[y.jsx(Ef,{defaultValue:d,onChange:$}),y.jsxs("div",{className:"flex w-full",children:[y.jsx("div",{className:"flex-grow",children:y.jsx(u,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:f,onChange:K,containerClassName:Pe(f.length>1&&"[&]:rounded-r-none")})}),f.length>1&&y.jsxs(y.Fragment,{children:[y.jsx(Rt,{variant:"secondary",onClick:X,"aria-label":"Change tags mode",className:"[&]:border-l-none [&]:rounded-l-none",...oe,children:y.jsx(Ye,{className:"text-2xl",icon:C==="all"?oR:LV})}),y.jsx(ho,{...ee,children:C==="all"?y.jsxs(y.Fragment,{children:["With ",y.jsx("b",{children:"all"})," the tags"]}):y.jsxs(y.Fragment,{children:["With ",y.jsx("b",{children:"any"})," of the tags"]})})]})]}),y.jsxs("div",{className:"flex flex-col lg:flex-row-reverse gap-y-4",children:[y.jsxs("div",{className:"lg:w-2/3 xl:w-1/2 inline-flex flex-col md:flex-row gap-4",children:[y.jsx("div",{className:"grow",children:y.jsx(c3,{defaultText:"All short URLs",dateRangeOrInterval:O??QI(m,p),onDatesChange:U})}),y.jsx(Vye,{selected:{excludeBots:b??j?.excludeBots,excludeMaxVisitsReached:_,excludePastValidUntil:w,domain:x},onChange:E,domains:o.loading?void 0:o.domains})]}),y.jsxs("div",{className:"lg:w-1/3 xl:w-1/2 inline-flex gap-3",children:[y.jsx("div",{className:"max-lg:w-1/2 lg:hidden",children:y.jsx(Jh,{containerClassName:"[&]:block",buttonClassName:"w-full",prefixed:!1,items:$ye,order:n,onChange:({field:J,dir:ne})=>r(J,ne)})}),y.jsx("div",{className:"max-lg:w-1/2",children:y.jsx(s,{amount:t})})]})]})]})},Hye=Ln(n9,["ExportShortUrlsBtn","TagsSelector"]);function xh({currentOrder:e,field:t,className:n="ml-1"}){return!e.dir||e.field!==t?null:y.jsx(Ye,{icon:e.dir==="ASC"?CV:lR,className:n})}const qye=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=ds(),o=A.useCallback(s=>`${i}/list-short-urls/${s}${t}`,[t,i]);return r<=1?y.jsx("div",{"data-testid":"empty-gap",className:"pb-4"}):y.jsx("div",{"data-testid":"short-urls-paginator",className:Pe("sticky bottom-0 py-4 -mx-0.5","flex justify-around","bg-lm-primary dark:bg-dm-primary","border-t border-lm-border dark:border-dm-border"),children:y.jsx(sy,{urlForPage:o,currentPage:n,pagesCount:r})})},Gye={field:"dateCreated",dir:"DESC"},r9=La(({listShortUrls:e,shortUrlsList:t})=>{const{ShortUrlsTable:n,ShortUrlsFilteringBar:r}=Nn(r9),{page:i}=xf(),o=Cr(),[{tags:s,search:u,startDate:d,endDate:f,orderBy:m,tagsMode:p,excludeBots:b,excludePastValidUntil:_,excludeMaxVisitsReached:w,domain:x},C]=Qy(),E=Gw(),[j,O]=A.useState(m??E.shortUrlsList?.defaultOrdering??Gye),{pagination:N}=t?.shortUrls??{},U=A.useMemo(()=>b??E.visits?.excludeBots,[b,E.visits?.excludeBots]),$=A.useCallback((ne,he)=>{C({orderBy:{field:ne,dir:he}}),O({field:ne,dir:he})},[C]),K=ne=>()=>$(ne,$N({currentOrderDir:j.dir,currentField:j.field,newField:ne})),X=ne=>y.jsx(xh,{currentOrder:j,field:ne}),oe=A.useCallback(ne=>C({tags:[...new Set([...s,ne])]}),[s,C]),ee=A.useCallback(({field:ne,dir:he})=>U&&ne==="visits"?{field:"nonBotVisits",dir:he}:{field:ne,dir:he},[U]),J=JC();return A.useEffect(()=>{e({page:i,searchTerm:u,tags:s,startDate:d,endDate:f,orderBy:ee(j),tagsMode:p,excludePastValidUntil:_,excludeMaxVisitsReached:w,domain:x})},[e,ee,i,u,s,d,f,j,p,_,w,x]),y.jsxs(QC,{value:J,children:[y.jsx(r,{shortUrlsAmount:t.shortUrls?.pagination.totalItems,order:j,handleOrderBy:$,className:"mb-4"}),y.jsx(e3,{type:"short-urls",className:"mb-4"}),y.jsxs(Pt,{bodyClassName:Pe({"pb-0":!t.loading}),children:[y.jsx(n,{shortUrlsList:t,orderByColumn:K,renderOrderIcon:X,onTagClick:oe}),!t.loading&&y.jsx(qye,{paginator:N,currentQueryString:o.search})]})]})},()=>[aa.visits]),Yye=Ln(r9,["ShortUrlsTable","ShortUrlsFilteringBar"]),fx=({children:e,danger:t})=>y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:6,className:Pe("text-center",{"text-danger font-bold":t}),children:e})}),Wye=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:o}=e;return r?y.jsx(fx,{danger:!0,children:"Something went wrong while loading short URLs :("}):i?y.jsx(fx,{children:"Loading..."}):!o||o.data.length===0?y.jsx(fx,{children:"No results found"}):o?.data.map(s=>y.jsx(n,{shortUrl:s,onTagClick:t},s.shortUrl))},i9=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r})=>{const{ShortUrlsRow:i}=Nn(i9),o=Pe({"cursor-pointer":!!e});return y.jsx(Ke,{className:"mb-[-1px] w-full",header:y.jsxs(Ke.Row,{children:[y.jsxs(Ke.Cell,{className:o,onClick:e?.("dateCreated"),children:["Created at ",t?.("dateCreated")]}),y.jsxs(Ke.Cell,{className:o,onClick:e?.("shortCode"),children:["Short URL ",t?.("shortCode")]}),y.jsxs(Ke.Cell,{children:[y.jsxs(vf,{className:Pe("p-0",o),onClick:e?.("title"),children:["Title ",t?.("title")]}),"  /  ",y.jsxs(vf,{className:Pe("p-0",o),onClick:e?.("longUrl"),children:[y.jsx("span",{className:"whitespace-nowrap",children:"Long URL"})," ",t?.("longUrl")]})]}),y.jsx(Ke.Cell,{children:"Tags"}),y.jsx(Ke.Cell,{className:o,onClick:e?.("visits"),children:y.jsxs("span",{className:"whitespace-nowrap",children:["Visits ",t?.("visits")]})}),y.jsx(Ke.Cell,{colSpan:2,"aria-hidden":!0})]}),children:y.jsx(Wye,{ShortUrlsRow:i,shortUrlsList:n,onTagClick:r})})},Kye=Ln(i9,["ShortUrlsRow"]),Zye=(e,t)=>{e.factory("ShortUrlsList",Yye),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",Kye),e.factory("ShortUrlsRow",gye),e.factory("ShortUrlsRowMenu",xye),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",Lye),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",oye),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",sye),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>lye),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("ExportShortUrlsBtn",uye),e.factory("ShortUrlsFilteringBar",Hye),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",zge,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",Sye,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",Aye,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",kge,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",Tye,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",Uge,"apiClientFactory"),e.serviceFactory("createShortUrl",wye,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",Dge,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>vI),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",Eye,"apiClientFactory")},Xye=({tag:e,onClose:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:o})=>{const{deleting:s,error:u,deleted:d,errorData:f}=i;return y.jsxs(co,{title:"Delete tag",variant:"danger",open:n,onClose:t,onClosed:()=>d&&o(e),onConfirm:async()=>{await r(e),t()},confirmText:s?"Deleting tag...":"Delete tag",confirmDisabled:s,children:["Are you sure you want to delete tag ",y.jsx("b",{children:e}),"?",u&&y.jsx(zr,{variant:"error",size:"sm",className:"mt-2",children:y.jsx(so,{errorData:f,fallbackMessage:"Something went wrong while deleting the tag :("})})]})},a9=({tag:e,editTag:t,onClose:n,tagEdited:r,isOpen:i,tagEdit:o})=>{const{ColorGenerator:s}=Nn(a9),[u,d]=A.useState(e),[f,m]=A.useState(s.getColorForKey(e)),{editing:p,error:b,edited:_,errorData:w}=o,x=A.useCallback(async()=>{await t({oldName:e,newName:u,color:f}),n()},[f,t,u,n,e]),C=A.useCallback(()=>_&&r({oldName:e,newName:u,color:f}),[f,_,u,e,r]);return y.jsxs(co,{title:"Edit tag",open:i,onClose:n,onClosed:C,onConfirm:x,confirmText:p?"Saving...":"Save",confirmDisabled:p,children:[y.jsxs("div",{className:"flex",children:[y.jsx(qI,{color:f,onChange:m,className:"rounded-r-none",name:"tag-color"}),y.jsx(ai,{className:"grow [&]:rounded-l-none",value:u,placeholder:"Tag",required:!0,onChange:({target:E})=>d(E.value)})]}),b&&y.jsx(zr,{variant:"error",size:"sm",className:"mt-2",children:y.jsx(so,{errorData:w,fallbackMessage:"Something went wrong while editing the tag :("})})]})},Qye=Ln(a9,["ColorGenerator"]),o9=({onChange:e,placeholder:t,...n})=>{const{ColorGenerator:r}=Nn(o9),i=Un("shortUrlCreation")?.tagFilteringMode??"startsWith";return y.jsx(vK,{...n,onTagsChange:e,getColorForTag:o=>r.getColorForKey(o),size:"lg",placeholder:t??"Add tags to the URL",searchMode:i})},Jye=Ln(o9,["ColorGenerator"]),V2="shlink/tagDelete",e0e={deleting:!1,deleted:!1,error:!1},s9=fn(`${V2}/tagDeleted`),t0e=e=>{const t=tr(`${V2}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Nt({name:V2,initialState:e0e,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:o})=>({deleting:!1,deleted:!1,error:!0,errorData:Ii(o)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},f3="shlink/tagEdit",n0e={editing:!1,edited:!1,error:!1},l9=fn(`${f3}/tagEdited`),r0e=(e,t)=>tr(`${f3}/editTag`,async({oldName:n,newName:r,color:i})=>(await e().editTag({oldName:n,newName:r}),t.setColorForKey(r,i),{oldName:n,newName:r,color:i})),i0e=e=>Nt({name:f3,initialState:n0e,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({editing:!0,edited:!1,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({editing:!1,edited:!1,error:!0,errorData:Ii(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:o}=r;return{oldName:i,newName:o,editing:!1,edited:!0,error:!1}})}}),d3="shlink/tagsList",dx={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},QP=(e,t)=>n=>n===e?t:n,JP=(e,t)=>e.filter(n=>n!==t),a0e=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:o,nonBots:s}=i,u=n[r];return{...n,[r]:{...u,visitsSummary:u.visitsSummary&&{total:u.visitsSummary.total+o+s,bots:u.visitsSummary.bots+o,nonBots:u.visitsSummary.nonBots+s},visitsCount:(u.visitsCount??0)+o+s}}},{...t}),o0e=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n?.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),s0e=e=>tr(`${d3}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...o})=>(r[i]=o,r),{});return{tags:Object.keys(n),stats:n}}),u9=fn(`${d3}/filterTags`),l0e=(e,t)=>Nt({name:d3,initialState:dx,reducers:{},extraReducers:n=>{n.addCase(u9,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(o=>o.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...dx,error:!0,errorData:Ii(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...dx,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(s9,({tags:r,filteredTags:i,...o},{payload:s})=>({...o,tags:JP(r,s),filteredTags:JP(i,s)})),n.addCase(l9,({tags:r,filteredTags:i,stats:o,...s},{payload:u})=>({...s,stats:{...o,[u.newName]:o[u.oldName]},tags:r.map(QP(u.oldName,u.newName)).sort(),filteredTags:i.map(QP(u.oldName,u.newName)).sort()})),n.addCase(Uf,(r,{payload:i})=>({...r,stats:a0e(o0e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:o})=>({...i,tags:r.concat(o.tags.filter(s=>!r.includes(s)))}))}}),u0e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},c9=La(({filterTags:e,tagsList:t})=>{const{TagsTable:n}=Nn(c9),r=Gw(),[i,o]=A.useState(r.tags?.defaultOrdering??{}),s=A.useMemo(()=>{const d=t.filteredTags.map(f=>{const m=t.stats[f],p=(r.visits?.excludeBots?m?.visitsSummary?.nonBots:m?.visitsSummary?.total)??m?.visitsCount??0;return{tag:f,visits:p,shortUrls:m?.shortUrlsCount??0}});return VN(d,i)},[i,r.visits?.excludeBots,t.filteredTags,t.stats]),u=JC();return t.loading?y.jsx(Zo,{loading:!0}):t.error?y.jsx(zr,{variant:"error",children:y.jsx(so,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):y.jsx(QC,{value:u,children:y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsx(Ef,{onChange:e}),y.jsx("div",{className:"flex flex-col lg:flex-row lg:justify-end",children:y.jsx("div",{className:"lg:w-1/2",children:y.jsx(Jh,{containerClassName:"[&]:block",buttonClassName:"w-full",items:u0e,order:i,onChange:o})})}),y.jsx(e3,{type:"tags"}),y.jsx(n,{sortedTags:s,currentOrder:i,orderByColumn:d=>()=>o(kw({currentField:i.field,currentOrderDir:i.dir,newField:d}))})]})})},()=>[aa.visits]),c0e=Ln(c9,["TagsTable"]),f0e=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:o})=>o?.contains("visits-table"))||document.querySelector(".modal")||r()};return XJ({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},d0e=(e,t)=>{const[n,r]=A.useState(t),i=A.useCallback(o=>{const{location:s,history:u}=window,d=DN(s.search);d[e]=o,u.pushState(null,"",`${s.pathname}?${Dw(d)}`),r(o)},[e]);return[n,i]},h3=e=>{const t=Af();return A.useMemo(()=>t[e]?.split(",").filter(Boolean)??[],[e,t])},h0e=(e,t)=>{const n=A.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=A.useState(n());return A.useEffect(()=>{const o=()=>i(n());return window.addEventListener("resize",o),()=>window.removeEventListener("resize",o)},[n]),r},m0e=(e,t,n)=>{A.useEffect(()=>{if(!n)return()=>{};const r=new AbortController;return document.addEventListener("keydown",i=>i.key===e&&t(),{signal:r.signal}),()=>r.abort()},[n,t,e])},p0e=20,f9=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Nn(f9),i=A.useRef(!0),{page:o=1}=Af(),[s,u]=d0e("page",Number(o)),d=A.useCallback(_=>{u(_),scrollTo(0,0)},[u]),f=Qc(e,p0e),m=f.length>1,p=f[s-1]??[];A.useEffect(()=>{i.current||d(1),i.current=!1},[d,e]);const b="cursor-pointer top-(--header-height) sticky-cell";return y.jsxs(Pt,{bodyClassName:m?"pb-1":"",children:[y.jsxs(Ke,{header:y.jsxs(Ke.Row,{children:[y.jsxs(Ke.Cell,{onClick:t("tag"),className:b,children:["Tag ",y.jsx(xh,{currentOrder:n,field:"tag"})]}),y.jsxs(Ke.Cell,{onClick:t("shortUrls"),className:`lg:text-right ${b}`,children:["Short URLs ",y.jsx(xh,{currentOrder:n,field:"shortUrls"})]}),y.jsxs(Ke.Cell,{onClick:t("visits"),className:`lg:text-right ${b}`,children:["Visits ",y.jsx(xh,{currentOrder:n,field:"visits"})]}),y.jsx(Ke.Cell,{className:b,children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[p.length===0&&y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:4,className:"text-center",children:"No tags found"})}),p.map(_=>y.jsx(r,{tag:_},_.tag))]}),m&&y.jsx("div",{className:Pe("sticky bottom-0 py-4 -mx-0.5","flex justify-around","bg-lm-primary dark:bg-dm-primary","border-t border-lm-border dark:border-dm-border"),"data-testid":"tags-paginator",children:y.jsx(sy,{pagesCount:f.length,currentPage:s,onPageChange:d})})]},s)},g0e=Ln(f9,["TagsTableRow"]),m3=({color:e,testId:t})=>y.jsx("div",{"data-testid":t,style:{backgroundColor:e},className:Pe("inline-block w-[20px] h-[20px] rounded-full","align-[-4px] mr-1.5")}),v0e=({tag:e,colorGenerator:t})=>y.jsx(m3,{color:t.getColorForKey(e)}),d9=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Nn(d9),{flag:i,setToFalse:o,setToTrue:s}=wn(),{flag:u,setToFalse:d,setToTrue:f}=wn(),m=ds(),p=Yy();return y.jsxs(Ke.Row,{className:"max-lg:relative",children:[y.jsxs(Ke.Cell,{columnName:"Tag",children:[y.jsx(v0e,{tag:e.tag,colorGenerator:r})," ",e.tag]}),y.jsx(Ke.Cell,{className:"lg:text-right",columnName:"Short URLs",children:y.jsx(Rr,{to:`${m}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Pn(e.shortUrls)})}),y.jsx(Ke.Cell,{className:"lg:text-right",columnName:"Visits",children:y.jsx(Rr,{to:`${m}/tag/${e.tag}/visits`,children:Pn(e.visits)})}),y.jsx(Ke.Cell,{className:"lg:text-right max-lg:absolute max-lg:top-1.25 max-lg:right-0 max-lg:p-0",children:y.jsxs(rn,{menuAlignment:"right",children:[y.jsxs(rn.Item,{onClick:f,className:"gap-1.5",children:[y.jsx(Ye,{icon:aR})," Edit"]}),y.jsxs(rn.Item,{className:"gap-1.5",disabled:!p||!p.canAddItemWithName(e.tag),onClick:()=>p?.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[y.jsx(Ye,{icon:Yv})," Compare visits"]}),y.jsx(rn.Separator,{}),y.jsxs(rn.Item,{className:"[&]:text-danger gap-1.5",onClick:s,children:[y.jsx(Ye,{icon:J$})," Delete tag"]})]})}),y.jsx(n,{tag:e.tag,onClose:d,isOpen:u}),y.jsx(t,{tag:e.tag,onClose:o,isOpen:i})]})},y0e=Ln(d9,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),b0e=(e,t)=>{e.factory("TagsSelector",Jye),e.serviceFactory("DeleteTagConfirmModal",()=>Xye),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",Qye),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",y0e),e.factory("TagsTable",g0e),e.factory("TagsList",c0e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",i0e,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",t0e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",l0e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",s0e,"apiClientFactory"),e.serviceFactory("filterTags",()=>u9),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>s9),e.serviceFactory("editTag",r0e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>l9)},_0e=new qL,x0e=e=>_0e.parse(e),w0e=6,e6="0123456789ABCDEF";function S0e(){return`#${qw(w0e,()=>e6[Math.floor(Math.random()*e6.length)]).join("")}`}const t6=e=>e.toLowerCase().trim();class C0e{constructor(t){this.storage=t,this.colors=this.storage?.getTagColors()??{},this.lights={}}colors;lights;getColorForKey(t){const n=t6(t);return this.colors[n]||this.setColorForKey(n,S0e())}setColorForKey(t,n){const r=t6(t);return this.colors[r]=n,this.storage?.storeTagColors(this.colors),n}stylesForKey(t){const n=this.getColorForKey(t);return{backgroundColor:n,color:this.isLightColor(n)?"#222":"#fff"}}isLightColor(t){const n=t.substring(1);return this.lights[n]===void 0&&(this.lights[n]=Lw(n)),this.lights[n]}}const h9=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},E0e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);h9(e,i,n)};class A0e{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(o=>o.blob()),i=URL.createObjectURL(r);h9(this.window,i,n)}}class T0e{constructor(t,n){this.window=t,this.jsonToCsv=n}exportVisits=(t,n)=>{n.length&&this.exportCsv(t,n)};exportShortUrls=t=>{t.length&&this.exportCsv("short_urls.csv",t)};exportCsv=(t,n)=>{const r=this.jsonToCsv(n);E0e(this.window,r,t)}}function O0e(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",A0e,"fetch","window"),e.service("ColorGenerator",C0e,"TagColorsStorage"),e.constant("jsonToCsv",x0e),e.service("ReportExporter",T0e,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>ay)}const ym=({visits:e,shortUrl:t,children:n,title:r})=>y.jsx("header",{children:y.jsxs(Pt,{children:[y.jsxs("h2",{className:"flex justify-between items-center",children:[y.jsx(Jy,{}),y.jsx("span",{className:"text-center hidden sm:block",children:y.jsx("small",{children:r})}),y.jsxs("span",{className:Pe("px-3 py-1.5 rounded-md ml-3","font-bold text-white text-2xl","bg-lm-main dark:bg-dm-main"),"data-testid":"badge",children:["Visits:"," ",y.jsx(VI,{visitsCount:e.length,shortUrl:t})]})]}),y.jsx("h3",{className:"text-center block sm:hidden mt-3",children:y.jsx("small",{children:r})}),n&&y.jsx("div",{className:"md:mt-3",children:n})]})}),p3=({children:e,className:t})=>y.jsx("div",{className:Pe("flex justify-between items-center",t),children:e}),m9=({title:e,footer:t,children:n})=>y.jsxs(un,{role:"document",children:[y.jsx(un.Header,{children:e}),y.jsx(un.Body,{children:n}),t&&y.jsx(un.Footer,{className:"sticky bottom-0",children:t})]}),p9=A.createContext(null),{Provider:pxe}=p9,g3=e=>{const t=A.useContext(p9)??void 0,n=A.useMemo(()=>t?{}:{width:"100%",height:e},[e,t]);return{ChartWrapper:t?A.Fragment:Tue,dimensions:t,wrapperDimensions:n}},g9={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},j0e={marginBottom:"5px",fontWeight:"bold"},v9={contentStyle:g9,labelStyle:j0e,itemStyle:{padding:0}},n6=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],y9=e=>n6[e%n6.length],Bv=()=>as()?"#46e587":"#1DAA58",M0e=()=>as()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",P0e=({chartData:e,showNumbers:t})=>y.jsx("ul",{className:"space-y-1",children:e.map(({name:n,color:r,value:i},o)=>y.jsxs("li",{className:"flex items-center",children:[y.jsx(m3,{color:r,testId:`color-bullet-${o}`}),y.jsxs("small",{className:"truncate grow","data-testid":`name-${o}`,children:[n,t&&y.jsxs("b",{children:[" (",Pn(i),")"]})]})]},n))}),r6=e=>A.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:y9(r)})),[e]),R0e=({stats:e,prevStats:t,showNumbersInLegend:n})=>{const r=r6(e),i=r6(t),o=i.length>0,s=as()?JK:QK,{ChartWrapper:u,dimensions:d,wrapperDimensions:f}=g3(300);return y.jsxs("div",{className:"flex flex-col md:flex-row md:items-center gap-y-4",children:[y.jsx("div",{className:"md:flex-7",children:y.jsx("div",{style:f,children:y.jsx(u,{children:y.jsxs(Ipe,{...d,children:[y.jsx(wC,{formatter:Pn,contentStyle:g9,itemStyle:{color:"white"}}),y.jsx(P2,{data:r,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:o?"65%":"50%",animationBegin:0,children:r.map((m,p)=>y.jsx(sl,{fill:m.color,stroke:s},`${m.name}-${p}`))}),o&&y.jsx(P2,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:s,fill:Bv()})]})})})}),y.jsx("div",{className:"md:flex-5",children:y.jsx(P0e,{chartData:r,showNumbers:n})})]})},i6=({title:e,...t})=>{const{flag:n,toggle:r}=wn();return y.jsx(m9,{title:y.jsxs(p3,{children:[e,y.jsx(Qo,{checked:n,onChange:r,children:"Show numbers"})]}),children:y.jsx(R0e,{...t,showNumbersInLegend:n})})},N0e=A.forwardRef(({visitsGroups:e},t)=>{const n=A.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:y.jsx("ul",{className:"mt-2 flex flex-wrap justify-center gap-4",ref:t,children:n.map(([r,i],o)=>y.jsxs("li",{className:"inline",children:[y.jsx(m3,{color:b9(i)}),y.jsxs("strong",{children:[r," (",Pn(i.length),")"]})]},`${r}${o}`))})}),L0e={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},D0e={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},k0e={hourly:uQ,daily:gy,weekly:lQ,monthly:tv},v3={hourly:e=>nv(e,"yyyy-MM-dd HH:00"),daily:e=>al(e),weekly(e){const t=al(Ph(e)),n=al(vQ(e));return`${t} - ${n}`},monthly:e=>nv(e,"yyyy-MM")},I0e=e=>{const t=Object.values(e).filter(o=>o.length>0);if(t.length===0)return"monthly";const n=new Date,r=t.map(o=>gl(o[o.length-1].date)),i=IL(r);return[[()=>gy(n,i)<=2,"hourly"],[()=>tv(n,i)<=1,"daily"],[()=>tv(n,i)<=6,"weekly"]].find(([o])=>o())?.[1]??"monthly"},U0e=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=xL(t[r],i=>v3[e](gl(i.date))),n),{}),z0e=(e,t)=>t.reduce((n,r)=>{const i=v3[e](gl(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),B0e=(e,t)=>{const n=Object.values(t).filter(m=>m.length>0).map(m=>[...m].reverse());if(n.length===0)return[];const r=k0e[e],i=v3[e],o=D0e[e],s=n.flat(),u=gl(s[0].date),d=gl(s[s.length-1].date),f=r(d,u)||1;return[{formattedDate:i(u),date:u},...qw(f,m=>{const p=nQ(u,o(m));return{formattedDate:i(p),date:p}})]},b9=e=>{if(e.color)return e.color;const t={main:Oh(),highlighted:Bx,previous:Bv()};return e.type?t[e.type]:Oh()},a6=(e,t)=>A.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),F0e=(e,t,n)=>{const r=a6(e,"main"),i=a6(e,"highlighted"),o=A.useMemo(()=>n?z0e(t,r):{},[n,t,r]),s=A.useCallback((u,{payload:d})=>{const f=o[d.formattedDate]??[];n?.(f===i?[]:f)},[o,i,n]);return n&&{cursor:"pointer",onClick:s}},_9=({visitsGroups:e,setSelectedVisits:t,matchMedia:n,onDateRangeChange:r})=>{const[i,o]=A.useState(I0e(e)),s=h0e(767,n??window.matchMedia),u=A.useMemo(()=>{const J=U0e(i,e),ne=Object.keys(J);return B0e(i,e).map(({formattedDate:he,date:Q})=>({date:Q,formattedDate:he,...ne.reduce((se,Z)=>(se[Z]=J[Z][he]??0,se),{})}))},[i,e]),d=F0e(e,i,t),{flag:f,toggle:m,setToFalse:p}=wn(),b=A.useId(),_=A.useRef(null),[w,x]=A.useState(s?300:400);A.useLayoutEffect(()=>{if(!f)return x(s?300:400),()=>{};const J=new ResizeObserver(()=>{const ne=window.innerHeight,{height:he}=_.current.getBoundingClientRect();x(ne-he-98)});return J.observe(_.current),()=>J.disconnect()},[f,s,_]),m0e("Escape",p,f);const{ChartWrapper:C,dimensions:E,wrapperDimensions:j}=g3(w),[O,N]=A.useState(),[U,$]=A.useState(),K=A.useCallback(()=>{N(void 0),$(void 0)},[]),X=A.useCallback((J,ne)=>{const he=J.activeIndex&&u[J.activeIndex];ne.button===0&&he&&N(he)},[u]),oe=A.useCallback(J=>{const ne=J.activeIndex&&u[J.activeIndex];O&&ne&&$(ne)},[u,O]),ee=A.useCallback(()=>{if(!O||!U){K();return}const J=[O.date,U.date],ne=aQ(J),he=IL(J);K(),r({startDate:ne,endDate:he})},[r,K,U,O]);return y.jsxs(un,{className:Pe({"fixed top-0 bottom-0 left-0 right-0 z-1030":f}),"data-testid":"line-chart-card",children:[y.jsxs(un.Header,{role:"heading","aria-level":4,className:"flex justify-between items-center",children:["Visits over time",y.jsxs("div",{className:"flex content-center gap-1",children:[y.jsx(oy,{"aria-label":f?"Collapse":"Expand","aria-expanded":f,"aria-controls":b,size:"sm",onClick:m,children:y.jsx(Ye,{icon:f?TV:fV})}),y.jsx(Qe,{buttonContent:"Group by",buttonSize:"sm",buttonVariant:"link",buttonClassName:"[&]:p-0",menuAlignment:"right",menuClassName:"w-40",children:Object.entries(L0e).map(([J,ne])=>y.jsx(Qe.Item,{selected:i===J,onClick:()=>o(J),children:ne},J))})]})]}),y.jsxs(un.Body,{id:b,children:[y.jsx(C,{...j,children:y.jsxs(Tpe,{className:"select-none",data:u,...E,onMouseDown:X,onMouseMove:oe,onMouseUp:ee,children:[y.jsx(qy,{dataKey:"formattedDate"}),y.jsx(Gy,{tickFormatter:Pn,yAxisId:"1"}),y.jsx(wC,{formatter:Pn,...v9}),y.jsx($C,{strokeOpacity:as()?.1:.9}),Object.entries(e).map(([J,ne])=>ne.length>0&&y.jsx(z7,{yAxisId:"1",dataKey:J,type:"monotone",stroke:b9(ne),strokeWidth:2,activeDot:ne.type==="previous"?void 0:d,strokeDasharray:ne.type==="previous"?"8 3":void 0},J)),O&&U&&y.jsx(zC,{yAxisId:"1",x1:O.formattedDate,x2:U.formattedDate})]})}),y.jsx(N0e,{visitsGroups:e,ref:_})]})]})},$0e=({ranges:e,value:t,setValue:n})=>y.jsxs(Qe,{buttonContent:"Paginate",buttonVariant:"link",buttonClassName:"[&]:p-0",buttonSize:"sm",menuAlignment:"right",children:[e.map(r=>y.jsxs(Qe.Item,{selected:r===t,onClick:()=>n(r),children:[y.jsx("b",{children:r})," items per page"]},r)),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{disabled:t===1/0,onClick:()=>n(1/0),children:y.jsx("i",{children:"Clear pagination"})})]}),o6=e=>typeof e!="string"||e.startsWith("hidden_"),V0e=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:o})=>{const s=A.useMemo(()=>Object.entries(e).map(([p,b])=>{const _=n?.[p]??0,w=t?.[p]??0,x=o6(p);return{name:p,amount:Math.max(b,w),nonHighlightedAmount:x?null:b-_,highlightedAmount:x?null:_,prevAmount:x?null:w}}),[e,t,n]),u=A.useMemo(()=>{const p=s.reduce((b,{name:_})=>b>_.length?b:_.length,0);return Math.min(150,p*7)},[s]),{ChartWrapper:d,dimensions:f,wrapperDimensions:m}=g3(Math.max(300,s.length*(t?44:22)));return y.jsx(d,{...m,children:y.jsxs(zpe,{layout:"vertical",data:s,barCategoryGap:3,...f,children:[y.jsx(qy,{type:"number",dataKey:"amount",tickFormatter:Pn,domain:i?[0,i]:void 0}),y.jsx(Gy,{type:"category",dataKey:"name",width:u,interval:0,style:{fontSize:".8rem"},tickFormatter:p=>o6(p)?"":p}),y.jsx($C,{strokeOpacity:as()?.05:.9}),y.jsx(wC,{filterNull:!0,...v9,formatter:(p,b)=>[Pn(p),b==="highlightedAmount"?r:b==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),y.jsx(Pg,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:Oh(),onClick:({name:p})=>p&&o?.(p),children:s.map(p=>y.jsx(sl,{fill:ZK(),stroke:Oh(),strokeWidth:2},p.name))}),n&&y.jsx(Pg,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:Bx,onClick:({name:p})=>p&&o?.(p),children:s.map(p=>y.jsx(sl,{fill:XK,stroke:Bx,strokeWidth:2},p.name))}),t&&y.jsx(Pg,{dataKey:"prevAmount",fill:Bv(),children:s.map(p=>y.jsx(sl,{fill:M0e(),stroke:Bv(),strokeWidth:2},p.name))})]})})},H0e=e=>typeof e=="string"?e.toLowerCase():e,q0e=([e])=>e,G0e=([,e])=>e,gg=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:o,withPagination:s=!0,...u})=>{const[d,f]=A.useState({}),[m,p]=A.useState(1),[b,_]=A.useState(50),w=A.useCallback((X,oe)=>{const ee=Object.entries(X),J=d.field?wX(ee,([ne,he])=>H0e(d.field===Object.keys(oe)[0]?ne:he)):ee;return!d.dir||d.dir==="ASC"?J:[...J].reverse()},[d.dir,d.field]),x=A.useCallback(X=>{const oe=X[m-1];if(m<X.length)return oe;const ee=X[0].length;return[...oe,...qw(ee-oe.length,J=>[`hidden_${J}`,0])]},[m]),C=A.useCallback(X=>y.jsx(sy,{currentPage:m,pagesCount:X,onPageChange:p}),[m]),E=A.useCallback((X,oe,ee,J)=>{const ne=w(X,oe),he=ne.map(q0e),Q=ee&&Object.entries({...dO(he,he.map(()=>0)),...ee}),se=J&&Object.entries({...dO(he,he.map(()=>0)),...J});if(ne.length<=b)return{currentPageStats:Object.fromEntries(ne),currentPageHighlightedStats:Q&&Object.fromEntries(Q),currentPagePrevStats:se&&Object.fromEntries(se)};const Z=Qc(ne,b),I=Q&&Qc(Q,b),k=se&&Qc(se,b);return{currentPageStats:Object.fromEntries(x(Z)),currentPageHighlightedStats:I&&Object.fromEntries(x(I)),currentPagePrevStats:k&&Object.fromEntries(x(k)),pagination:C(Z.length),max:DK(Math.max(...ne.map(G0e)))}},[x,w,b,C]),{currentPageStats:j,currentPagePrevStats:O,currentPageHighlightedStats:N,pagination:U,max:$}=A.useMemo(()=>E(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[E,n,t,i,e]),K=A.useMemo(()=>Object.keys(j),[j]);return y.jsx(m9,{title:y.jsxs(p3,{children:[r,y.jsxs("div",{className:"flex items-center gap-3",children:[o?.(U?K:void 0),s&&Object.keys(e).length>50&&y.jsx($0e,{ranges:[50,100,200,500],value:b,setValue:X=>{_(X),p(1)}}),y.jsx(Jh,{buttonVariant:"link",menuAlignment:"right",buttonSize:"sm",buttonClassName:"[&]:p-0",items:i,order:d,onChange:X=>{f(X),p(1)}})]})]}),footer:U&&y.jsx("div",{className:"flex justify-around items-center","data-testid":"chart-paginator",children:U}),children:y.jsx(V0e,{stats:j,prevStats:O,highlightedStats:N,max:$,...u})})},y3=e=>e.type!==void 0,Y0e=e=>e.type!==void 0,W0e=e=>{const t=wL(e,n=>y3(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},x9=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:o,visit:s})=>o&&_h(o,t,n)&&vm(s.date,i,r)),w9=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i&&Nge(i,t)&&vm(o.date,r,n)),S9=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:o})=>i?.tags.includes(t)&&vm(o.date,r,n)),vg=(e,t)=>xL(e,n=>n[t]),K0e=e=>{const t=(e?.startDate&&Cl(e?.startDate))??void 0,n=(e?.endDate&&Cl(e?.endDate))??void 0;return{startDate:t,endDate:n}},H2=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=K0e(t),i=e?.excludeBots||void 0;return{startDate:n,endDate:r,excludeBots:i}},Z0e=e=>t9(e.dateRange),X0e=({dateRange:e,...t})=>({...t,dateRange:Bye(e)}),s6=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&Cl(t[e])||""},C9=()=>{const e=uo(),t=Af(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:o,loadPrevInterval:s,...u}=t,d=A.useMemo(()=>({dateRange:n!=null||r!=null?QI(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:o!==void 0?o==="true":void 0},loadPrevInterval:s!==void 0?s==="true":void 0}),[r,o,s,i,n]),f=A.useCallback(m=>{const{dateRange:p,visitsFilter:b={},loadPrevInterval:_}=Tf(d,m),{excludeBots:w,orphanVisitsType:x}=b,C={...u,startDate:s6("startDate",p),endDate:s6("endDate",p),excludeBots:w===void 0?void 0:Zx(w),orphanVisitsType:x,loadPrevInterval:_===void 0?void 0:Zx(_)},E=Dw(C),j=E?`?${E}`:"";e(j,{replace:!0,relative:"route"})},[d,e,u]);return[d,f]},Q0e=()=>y.jsx(ige,{attribution:'&copy <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),J0e=e=>{if(e.length===0)return{};if(e.length>1)return{bounds:e.map(({latLong:n})=>n)};const[{latLong:t}]=e;return{zoom:10,center:t}},E9=({toggle:e,isOpen:t,title:n,locations:r=[]})=>y.jsx(co,{open:t,onClose:e,title:n,variant:"cover",children:y.jsxs(tge,{...J0e(r),className:"h-full w-full",children:[y.jsx(Q0e,{}),r.map(({cityName:i,latLong:o,count:s},u)=>y.jsx(nge,{position:o,children:y.jsxs(rge,{children:[y.jsx("b",{children:s})," visit",s>1?"s":""," from ",y.jsx("b",{children:i})]})},u))]})}),e1e=({modalTitle:e,activeCities:t,locations:n=[]})=>{const{flag:r,setToTrue:i,setToFalse:o}=wn(),[s,u]=A.useState([]),d=A.useCallback(f=>{u(f?n.filter(f):n),i()},[n,i]);return y.jsxs(y.Fragment,{children:[!t&&y.jsx(oy,{onClick:()=>d(),"aria-label":"Show in map",title:"Show in map",className:"[&]:p-0",children:y.jsx(Ye,{icon:_x})}),t&&y.jsxs(Qe,{buttonContent:y.jsx(Ye,{icon:_x,title:"Show in map"}),buttonLabel:"Show in map",buttonVariant:"link",buttonClassName:"[&]:p-0",menuAlignment:"right",caretless:!0,children:[y.jsx(Qe.Item,{onClick:()=>d(),children:"Show all locations"}),y.jsx(Qe.Item,{onClick:()=>d(({cityName:f})=>t.includes(f)),children:"Show locations in current page"})]}),y.jsx(E9,{toggle:o,isOpen:r,title:e,locations:s})]})},A9=({onChange:e,selected:t={},isOrphanVisits:n=!1,withPrevInterval:r=!1,disabled:i})=>{const{orphanVisitsType:o,excludeBots:s=!1,loadPrevInterval:u=!1}=t,d=p=>({selected:o===p,onClick:()=>e({...t,orphanVisitsType:p===o?void 0:p})}),f=A.useCallback(()=>e({...t,excludeBots:!s}),[s,e,t]),m=A.useCallback(()=>e({...t,loadPrevInterval:!u}),[u,e,t]);return y.jsxs(Qe,{buttonDisabled:i,buttonContent:"More",buttonClassName:"w-full",menuAlignment:"right",children:[r&&y.jsxs(y.Fragment,{children:[y.jsx(Qe.Item,{selected:u,onClick:m,children:"Compare with previous period"}),y.jsx(Qe.Separator,{})]}),y.jsx(Qe.Title,{children:"Bots:"}),y.jsx(Qe.Item,{selected:s,onClick:f,children:"Exclude potential bots"}),n&&y.jsxs(y.Fragment,{children:[y.jsx(Qe.Separator,{}),y.jsx(Qe.Title,{children:"Orphan visits type:"}),y.jsx(Qe.Item,{...d("base_url"),children:"Base URL"}),y.jsx(Qe.Item,{...d("invalid_short_url"),children:"Invalid short URL"}),y.jsx(Qe.Item,{...d("regular_404"),children:"Regular 404"})]}),y.jsx(Qe.Separator,{}),y.jsx(Qe.Item,{disabled:t.excludeBots===void 0&&t.loadPrevInterval===void 0&&t.orphanVisitsType===void 0,onClick:()=>e({excludeBots:void 0,loadPrevInterval:void 0,orphanVisitsType:void 0}),children:y.jsx("i",{children:"Reset to defaults"})})]})},t1e=({className:e,value:t,...n})=>{const r=Math.min(100,Math.max(0,t));return y.jsx("div",{className:Pe("flex h-4 bg-gray-100 overflow-hidden rounded-md",e),...n,children:y.jsx("div",{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r,className:"bg-lm-brand dark:bg-dm-brand transition-[width]",style:{width:`${r}%`}})})},T9=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return y.jsxs(y.Fragment,{children:[t&&r===null&&y.jsx(Zo,{loading:!0}),t&&r!==null&&y.jsxs(Zo,{loading:!0,children:["This is going to take a while... :S",y.jsx(t1e,{value:r,className:"mt-4"})]}),n&&y.jsx(zr,{variant:"error",children:y.jsx(so,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},Rg=({children:e,showFallback:t})=>y.jsxs(y.Fragment,{children:[t&&y.jsx(Zo,{children:"There are no visits matching current filter"}),!t&&y.jsx(y.Fragment,{children:e})]}),n1e=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,{flag:r,setToTrue:i}=wn();return y.jsx(Pt,{title:y.jsx("span",{className:"text-danger font-bold text-base",children:"Danger zone"}),children:y.jsxs(p3,{children:[y.jsxs("dl",{className:"m-0 mr-3",children:[y.jsx("dt",{children:"Delete visits."}),y.jsxs("dd",{className:"m-0",children:["This will delete ",y.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&y.jsx(Rt,{variant:"danger",solid:!0,className:"whitespace-nowrap",onClick:i,children:"Delete visits"}),r&&y.jsxs(Rt,{solid:!0,variant:"danger",disabled:n,className:"whitespace-nowrap",onClick:t,autoFocus:!0,children:[!n&&y.jsx(y.Fragment,{children:"Click again to confirm"}),n&&y.jsx(y.Fragment,{children:"Deleting..."})]})]})})},yg="Others",r1e=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],i1e=e=>{if(!bu(e))return{browser:yg,os:yg};const{browser:{name:t},os:{name:n}}=cge.parse(e);return{os:n??yg,browser:t&&r1e.includes(t)?t:yg}},a1e=e=>bu(e)?e.split("/")[e.includes("://")?2:0]?.split(":")[0]??"":"Direct",O9=(e,t)=>e[t]!==void 0,l6=e=>typeof e=="number"?e:e?parseFloat(e):0,o1e=(e,{os:t})=>{e[t]=(e[t]||0)+1},s1e=(e,{browser:t})=>{e[t]=(e[t]||0)+1},l1e=(e,{referer:t})=>{e[t]=(e[t]||0)+1},j9=e=>(t,n)=>{const r=O9(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},u1e=j9("country"),c1e=j9("city"),f1e=(e,t)=>{if(!O9(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,o=e[n]||{cityName:n,count:0,latLong:[l6(r),l6(i)]};o.count+=1,e[n]=o},d1e=(e,t)=>{if(!Y0e(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},q2=e=>e.reduce((t,n)=>(o1e(t.os,n),s1e(t.browsers,n),l1e(t.referrers,n),u1e(t.countries,n),c1e(t.cities,n),f1e(t.citiesForMap,n),d1e(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),Fv=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:o,potentialBot:s}=t;return{date:r,potentialBot:s,userAgent:n,...i1e(n),referer:a1e(i),country:o?.countryName||"Unknown",region:o?.regionName||"Unknown",city:o?.cityName||"Unknown",latitude:o?.latitude,longitude:o?.longitude,visitedUrl:t.visitedUrl,type:y3(t)?t.type:void 0}}),h1e=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:Fv,processStatsFromVisits:q2},Symbol.toStringTag,{value:"Module"})),dh=20,m1e=({browser:e,os:t,referer:n,country:r,city:i,userAgent:o,...s},u,d)=>{const f=d?o:`${r} ${i}`;return`${e} ${t} ${n} ${f} ${s.visitedUrl}`.toLowerCase().includes(u.toLowerCase())},p1e=(e,t,n)=>t.filter(r=>m1e(r,e,n)),g1e=(e,t)=>VN(t,e),v1e=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?p1e(t,e,r):[...e],o=g1e(n,i),s=o.length;return{visitsGroups:Qc(o,dh),total:s}},ya="cursor-pointer md:sticky-cell-separated md:top-[calc(var(--header-height)+41px)]",y1e=()=>{const{anchor:e,tooltip:t}=fo({placement:"right"});return y.jsxs(y.Fragment,{children:[y.jsx(Ye,{icon:sR,...e}),y.jsx(ho,{...t,children:"Potentially a visit from a bot or crawler"})]})},b1e=({visits:e,selectedVisits:t=[],setSelectedVisits:n})=>{const[r,i]=A.useState(),o=A.useCallback(N=>{i(N),b(1),n([])},[n]),[s,u]=A.useState({}),d=Un("visitsList"),f=A.useMemo(()=>Tf(py,d?.columns??{}),[d?.columns]),m=A.useMemo(()=>v1e({visits:e,searchTerm:r,order:s,searchInRawUserAgent:f.userAgent}),[e,r,s,f.userAgent]),[p,b]=A.useState(1),_=p*dh,w=_-dh,x=A.useMemo(()=>f.visitedUrl?m.visitsGroups.length===0||!!m.visitsGroups[p-1]?.[0]?.visitedUrl:!1,[f.visitedUrl,p,m.visitsGroups]),C=6+Number(x)+(f.userAgent?1:2),E=m.total>0,j=N=>u(kw({currentField:s.field,currentOrderDir:s.dir,newField:N})),O=N=>y.jsx(xh,{currentOrder:s,field:N,className:"float-right mt-[5px] ml-[5px]"});return y.jsx(Pt,{bodyClassName:"[&]:p-0 [&]:pb-1",title:"Visits list",children:y.jsxs(Ke,{responsive:!1,size:"sm",className:"w-full relative overflow-y-hidden bg-lm-primary dark:bg-dm-primary",header:y.jsxs(y.Fragment,{children:[y.jsxs(Ke.Row,{children:[y.jsxs(Ke.Cell,{className:Pe(ya,"[&]:text-center"),onClick:()=>n(t.length<m.total?m.visitsGroups.flat():[]),children:[y.jsx("span",{className:"sr-only",children:"Is selected"}),y.jsx(Ye,{icon:Ru,className:Pe({"text-lm-brand dark:text-dm-brand":t.length>0})})]}),f.potentialBot&&y.jsxs(Ke.Cell,{className:Pe(ya,"[&]:text-center"),onClick:()=>j("potentialBot"),children:[y.jsx("span",{className:"sr-only",children:"Is bot"}),y.jsx(Ye,{icon:sR}),O("potentialBot")]}),f.date&&y.jsxs(Ke.Cell,{className:ya,onClick:()=>j("date"),children:["Date",O("date")]}),f.country&&y.jsxs(Ke.Cell,{className:ya,onClick:()=>j("country"),children:["Country",O("country")]}),f.region&&y.jsxs(Ke.Cell,{className:ya,onClick:()=>j("region"),children:["Region",O("region")]}),f.city&&y.jsxs(Ke.Cell,{className:ya,onClick:()=>j("city"),children:["City",O("city")]}),f.userAgent&&y.jsxs(Ke.Cell,{className:ya,onClick:()=>j("userAgent"),children:["User agent",O("userAgent")]}),f.browser&&y.jsxs(Ke.Cell,{className:ya,onClick:()=>j("browser"),children:["Browser",O("browser")]}),f.browser&&y.jsxs(Ke.Cell,{className:ya,onClick:()=>j("os"),children:["OS",O("os")]}),f.referer&&y.jsxs(Ke.Cell,{className:ya,onClick:()=>j("referer"),children:["Referrer",O("referer")]}),x&&y.jsxs(Ke.Cell,{className:ya,onClick:()=>j("visitedUrl"),children:["Visited URL",O("visitedUrl")]})]}),y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:C,className:"[&]:p-0",children:y.jsx(Ef,{size:"md",borderless:!0,onChange:o})})})]}),footer:m.total>dh?y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{type:"td",colSpan:C,className:"md:sticky-cell-separated bottom-0",children:y.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-center gap-4 p-1",children:[y.jsx(sy,{pagesCount:Math.ceil(m.total/dh),currentPage:p,onPageChange:b}),y.jsxs("div",{children:["Visits ",y.jsx("b",{children:Pn(w+1)})," to"," ",y.jsx("b",{children:Pn(Math.min(_,m.total))})," of"," ",y.jsx("b",{children:Pn(m.total)})]})]})})}):void 0,children:[!E&&y.jsx(Ke.Row,{children:y.jsx(Ke.Cell,{colSpan:C,className:"text-center",children:"There are no visits matching current filter"})}),m.visitsGroups[p-1]?.map((N,U)=>{const $=t.includes(N);return y.jsxs(Ke.Row,{className:Pe("cursor-pointer",$&&["bg-lm-table-highlight hover:[&]:bg-lm-table-highlight","dark:bg-dm-table-highlight dark:hover:[&]:bg-dm-table-highlight"]),onClick:()=>n($?t.filter(K=>K!==N):[...t,N]),children:[y.jsx(Ke.Cell,{className:"text-center",children:$&&y.jsx(Ye,{icon:Ru,className:"text-lm-brand dark:text-dm-brand"})}),f.potentialBot&&y.jsx(Ke.Cell,{className:"text-center",children:N.potentialBot&&y.jsx(y1e,{})}),f.date&&y.jsx(Ke.Cell,{children:y.jsx(Iv,{date:N.date})}),f.country&&y.jsx(Ke.Cell,{children:N.country}),f.region&&y.jsx(Ke.Cell,{children:N.region}),f.city&&y.jsx(Ke.Cell,{children:N.city}),f.userAgent&&y.jsx(Ke.Cell,{children:N.userAgent}),f.browser&&y.jsx(Ke.Cell,{children:N.browser}),f.os&&y.jsx(Ke.Cell,{children:N.os}),f.referer&&y.jsx(Ke.Cell,{children:N.referer}),x&&y.jsx(Ke.Cell,{children:N.visitedUrl??""})]},U)})]})})},el={byTime:{title:"By time",subPath:"by-time",icon:H$},byContext:{title:"By context",subPath:"by-context",icon:mw},byLocation:{title:"By location",subPath:"by-location",icon:_x},list:{title:"List",subPath:"list",icon:hw},options:{title:"Options",subPath:"options",icon:nR,shouldRender:({deletion:e})=>!!e}};Object.freeze(el);const hx=({display:e})=>e&&y.jsx("div",{className:"mx-auto w-3/4",children:y.jsx(Pt,{children:y.jsxs("div",{className:"flex gap-2",children:[y.jsx(Ye,{icon:SV,className:"mt-1"}),y.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})}),bm=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:o,exportCsv:s,isOrphanVisits:u=!1}=e,{visits:d,prevVisits:f,loading:m,errorData:p,fallbackInterval:b}=n,[{dateRange:_,visitsFilter:w,loadPrevInterval:x},C]=C9(),E=Un("visits"),[j,O]=A.useState(),N=A.useCallback(({startDate:W,endDate:le},H)=>{C({dateRange:{startDate:W??void 0,endDate:le??void 0}}),O(H)},[C]),[U,$]=A.useState(b??E?.defaultInterval??"last30Days"),[K,X]=A.useState([]),[oe,ee]=A.useState(),J=A.useRef(!0),{search:ne}=Cr(),he=A.useCallback(W=>W?`../${W}${ne}`:ne,[ne]),Q=A.useMemo(()=>Fv(d),[d]),se=A.useMemo(()=>f&&Fv(f),[f]),{os:Z,browsers:I,referrers:k,countries:z,cities:F,citiesForMap:P,visitedUrls:G}=A.useMemo(()=>q2(Q),[Q]),Y=A.useMemo(()=>q2(se??[]),[se]),te=A.useMemo(()=>Object.fromEntries([["Visits",Object.assign(Q,{type:"main"})],se&&["Previous period",Object.assign(se,{type:"previous"})],K.length>0&&[oe??"Selected",Object.assign(K,{type:"highlighted"})]].filter(Boolean)),[oe,K,se,Q]),ue=A.useMemo(()=>({...w,excludeBots:w.excludeBots??E?.excludeBots,loadPrevInterval:x??E?.loadPrevInterval}),[x,w,E?.excludeBots,E?.loadPrevInterval]),fe=A.useMemo(()=>Object.values(P),[P]),ge=A.useRef(void 0),D=A.useCallback(W=>{ge.current=void 0,X(W)},[]),B=A.useCallback((W,le)=>{const H=`${W}_${le}`;ge.current===H?(X([]),ee(void 0),ge.current=void 0):(X(Q.filter(ae=>ae[W]===le)),ee(le),ge.current=H)},[Q]);return A.useEffect(()=>i,[i]),A.useEffect(()=>{const W=_??e9(U),{loadPrevInterval:le,...H}=ue,ae={doIntervalFallback:J.current,loadPrevInterval:le};r({dateRange:W,filter:H},ae),D([]),J.current=!1},[U,_,r,ue,D]),A.useEffect(()=>{b&&U===(E?.defaultInterval??"last30Days")&&$(b)},[U,b,E?.defaultInterval]),y.jsxs("div",{className:"flex flex-col gap-y-4",children:[t,y.jsxs("section",{className:"flex flex-col lg:flex-row-reverse gap-4",children:[y.jsxs("div",{className:"lg:flex-3 flex flex-col md:flex-row gap-x-2 gap-y-4",children:[y.jsx("div",{className:"grow",children:y.jsx(c3,{disabled:m,dateRangeOrInterval:j??_??U,defaultText:"All visits",onDatesChange:N})}),y.jsx(A9,{disabled:m,isOrphanVisits:u,withPrevInterval:!0,selected:ue,onChange:({loadPrevInterval:W,...le})=>C({visitsFilter:le,loadPrevInterval:W})})]}),y.jsx("div",{className:"lg:flex-2 xl:flex-3 flex gap-2",children:d.length>0&&y.jsxs(y.Fragment,{children:[y.jsx(UI,{className:"max-lg:w-full",amount:Q.length,onClick:()=>s(Q)}),y.jsxs(Rt,{variant:"secondary",solid:K.length>0&&!as(),disabled:K.length===0,className:"max-lg:w-full",onClick:()=>D([]),children:["Clear selection ",K.length>0&&y.jsxs(y.Fragment,{children:["(",Pn(K.length),")"]})]})]})})]}),y.jsxs("section",{className:"flex flex-col gap-4",children:[y.jsx(T9,{info:n}),!m&&!p&&y.jsxs(y.Fragment,{children:[y.jsx(tl,{fill:!0,className:"sticky top-(--header-height) z-2",children:Object.values(el).map(({title:W,icon:le,subPath:H,shouldRender:ae},ce)=>!ae||ae(e)?y.jsxs(tl.Pill,{to:he(H),replace:!0,children:[y.jsx(Ye,{icon:le}),y.jsx("span",{className:"ml-2 max-lg:sr-only",children:W})]},ce):void 0).filter(Boolean)}),y.jsxs(Hv,{children:[y.jsx(pt,{path:el.byTime.subPath,element:y.jsxs(Rg,{showFallback:d.length===0,children:[y.jsx("div",{"data-testid":"line-chart-container",children:y.jsx(_9,{visitsGroups:te,setSelectedVisits:D,onDateRangeChange:N})}),y.jsx(hx,{display:!!ue.loadPrevInterval&&!f})]})}),y.jsx(pt,{path:el.byContext.subPath,element:y.jsxs(Rg,{showFallback:d.length===0,children:[y.jsxs("div",{className:Pe("grid grid-cols-1 gap-4",{"lg:grid-cols-2":u,"xl:grid-cols-3":!u}),children:[y.jsx(i6,{title:"Operating systems",stats:Z,prevStats:Y.os}),y.jsx(i6,{title:"Browsers",stats:I,prevStats:Y.browsers}),y.jsx(gg,{title:"Referrers",withPagination:!1,stats:k,prevStats:Y.referrers,highlightedStats:vg(K,"referer"),highlightedLabel:oe,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:W=>B("referer",W)}),u&&y.jsx(gg,{title:"Visited URLs",stats:G,prevStats:Y.visitedUrls,highlightedStats:vg(K,"visitedUrl"),highlightedLabel:oe,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:W=>B("visitedUrl",W)})]}),y.jsx(hx,{display:!!ue.loadPrevInterval&&!f})]})}),y.jsx(pt,{path:el.byLocation.subPath,element:y.jsxs(Rg,{showFallback:d.length===0,children:[y.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-4",children:[y.jsx(gg,{title:"Countries",stats:z,prevStats:Y.countries,highlightedStats:vg(K,"country"),highlightedLabel:oe,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:W=>B("country",W)}),y.jsx(gg,{title:"Cities",stats:F,prevStats:Y.cities,highlightedStats:vg(K,"city"),highlightedLabel:oe,extraHeaderContent:W=>fe.length>0&&y.jsx(e1e,{modalTitle:"Cities",locations:fe,activeCities:W}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:W=>B("city",W)})]}),y.jsx(hx,{display:!!ue.loadPrevInterval&&!f})]})}),y.jsx(pt,{path:el.list.subPath,element:y.jsx(b1e,{visits:Q,selectedVisits:K,setSelectedVisits:D})}),o&&y.jsx(pt,{path:el.options.subPath,element:y.jsx(n1e,{...o})}),y.jsx(pt,{path:"*",element:y.jsx(tw,{replace:!0,to:he(el.byTime.subPath)})})]})]})]})]})},M9=La(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Nn(M9),{domain:i=""}=xf(),[o,s=o]=i.split("_"),u=A.useCallback((f,m)=>e({domain:s,options:m,params:f}),[s,e]),d=A.useCallback(f=>r.exportVisits(`domain_${o}_visits.csv`,f),[o,r]);return y.jsx(bm,{getVisits:u,cancelGetVisits:n,visitsInfo:t,exportCsv:d,children:y.jsx(ym,{visits:t.visits,title:`"${o}" visits`})})},()=>[aa.visits]),_1e=Ln(M9,["ReportExporter"]),P9=La(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Nn(P9),i=A.useCallback(s=>r.exportVisits("non_orphan_visits.csv",s),[r]),o=A.useCallback((s,u)=>e({options:u,params:s}),[e]);return y.jsx(bm,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:y.jsx(ym,{title:"Non-orphan visits",visits:t.visits})})},()=>[aa.visits]),x1e=Ln(P9,["ReportExporter"]),R9=La(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const o=ra("orphanVisitsDeletion"),{ReportExporter:s}=Nn(R9),u=A.useCallback(m=>s.exportVisits("orphan_visits.csv",m),[s]),d=A.useCallback((m,p)=>e({options:p,params:m,orphanVisitsType:m.filter?.orphanVisitsType}),[e]),f=A.useMemo(()=>o?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,o]);return y.jsx(bm,{getVisits:d,cancelGetVisits:n,visitsInfo:t,exportCsv:u,deletion:f,isOrphanVisits:!0,children:y.jsx(ym,{title:"Orphan visits",visits:t.visits})})},()=>[aa.orphanVisits]),w1e=Ln(R9,["ReportExporter"]),u6=5e3,S1e=2,C1e=4,E1e=({currentPage:e,pagesCount:t})=>e>=t,A1e=(e,t)=>t*100/e,N9=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(s,u)=>Promise.all(u.map(async d=>e({...s,page:d,itemsPerPage:u6}).then(({data:f})=>f))).then(d=>d.flat()),o=async(s,u,d=0)=>{if(t())return[];const f=await i(s,u[d]);return n(A1e(u.length,d+1)),d<u.length-1?f.concat(await o(s,u,d+1)):f};return async s=>{const{pagination:u,data:d}=await e({...s,page:1,itemsPerPage:u6});if(E1e(u))return d;const f=CL(S1e,u.pagesCount+1),m=Qc(f,r);return u.pagesCount-1>r&&n(0),d.concat(await o(s,m))}},_m=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),xm=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=fn(`${e}/progressChanged`),i=fn(`${e}/fallbackToInterval`),o=tr(e,async(s,{getState:u,dispatch:d})=>{const{params:f,options:m}=s,{visitsLoader:p,lastVisitLoader:b}=t(s),_=Fye(f.dateRange),w=H2(f),x=m.loadPrevInterval&&Z0e(f)?H2(X0e(f)):void 0,C=C1e/(x?2:1),E=x?{main:0,prev:0}:{main:0},j=(K,X)=>{E[K]=X;const oe=Object.values(E),ee=oe.reduce((J,ne)=>J+ne,0);d(r(ee/oe.length))},O=N9({visitsLoader:p,shouldCancel:()=>n(u),progressChanged:K=>j("main",K),batchSize:C}),[N,U,$]=await Promise.all([O(w),b(f.filter?.excludeBots),x?O(x).then(K=>K.map(X=>{if(_===void 0)return X;const{date:oe,...ee}=X,J=Kw(Ci(oe),_);return{...ee,date:Cl(J)}})):Promise.resolve(void 0)]);return!N.length&&U&&d(i(zye(U.date))),{...s,visits:N,prevVisits:$}});return Object.assign(o,{progressChanged:r,fallbackToInterval:i})},wm=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:o,rejected:s,fulfilled:u,progressChanged:d,fallbackToInterval:f}=t,{reducer:m,actions:p}=Nt({name:e,initialState:n,reducers:{cancelGetVisits:_=>({..._,cancelLoad:!0})},extraReducers:_=>{_.addCase(o,()=>({...n,loading:!0})),_.addCase(s,(w,{error:x})=>({...n,errorData:Ii(x)??null})),_.addCase(u,(w,{payload:x})=>({...w,...x,loading:!1,progress:null,errorData:null})),_.addCase(d,(w,{payload:x})=>({...w,progress:x})),_.addCase(f,(w,{payload:x})=>({...w,fallbackInterval:x})),_.addCase(Uf,(w,{payload:x})=>{const{visits:C}=w,E=r(w,x.createdVisits).map(({visit:j})=>j);return E.length?{...w,visits:[...E,...C]}:w}),i?.(_)}}),{cancelGetVisits:b}=p;return{reducer:m,cancelGetVisits:b}},L9="shlink/domainVisits",T1e={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},O1e=e=>xm({typePrefix:`${L9}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=u=>r.getDomainVisits(t,u),s=_m(i,u=>r.getDomainVisits(t,u));return{visitsLoader:o,lastVisitLoader:s}},shouldCancel:t=>t().domainVisits.cancelLoad}),j1e=e=>wm({name:L9,initialState:T1e,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>w9(r,t,n?.dateRange)}),D9="shlink/orphanVisits",M1e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},P1e=e=>xm({typePrefix:`${D9}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async s=>n.getNonOrphanVisits(s),o=_m(r,s=>n.getNonOrphanVisits(s));return{visitsLoader:i,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),R1e=e=>wm({name:D9,initialState:M1e,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=t?.dateRange??{};return n.filter(({visit:o})=>vm(o.date,r,i))}}),k9="shlink/orphanVisits",N1e={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},L1e=(e,t)=>!t||t===e.type,D1e=({data:e,...t},n)=>{const r=e.filter(i=>y3(i)&&L1e(i,n));return{...t,data:r}},k1e=e=>xm({typePrefix:`${k9}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=async u=>r.getOrphanVisits({...u,type:t}).then(d=>D1e(d,t)),s=_m(i,u=>r.getOrphanVisits(u));return{visitsLoader:o,lastVisitLoader:s}},shouldCancel:t=>t().orphanVisits.cancelLoad}),I1e=(e,t)=>wm({name:k9,initialState:N1e,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:o}=n?.dateRange??{};return r.filter(({visit:s,shortUrl:u})=>!u&&vm(s.date,i,o))}}),I9="shlink/orphanVisitsDeletion",c6={deletedVisits:0,deleting:!1,error:!1},U1e=e=>tr(`${I9}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),z1e=e=>Nt({name:I9,initialState:c6,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Ii(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...c6,deletedVisits:i}})}}),U9="shlink/shortUrlVisits",B1e={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},F1e=e=>xm({typePrefix:`${U9}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:o=!1}=r,s=d=>i.getShortUrlVisits({shortCode:t,domain:n},d),u=_m(o,d=>i.getShortUrlVisits({shortCode:t,domain:n},d));return{visitsLoader:s,lastVisitLoader:u}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),$1e=(e,t)=>wm({name:U9,initialState:B1e,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,(r,{payload:i})=>r.shortCode===i.shortCode&&r.domain===i.domain?{...r,visits:[]}:r)},filterCreatedVisits:({shortCode:n,domain:r,params:i},o)=>x9(o,{shortCode:n,domain:r},i?.dateRange)}),z9="shlink/shortUrlVisitsDeletion",f6={shortCode:"",deletedVisits:0,deleting:!1,error:!1},V1e=e=>tr(`${z9}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits({shortCode:t,domain:n}),shortCode:t,domain:n})),H1e=e=>Nt({name:z9,initialState:f6,reducers:{},extraReducers:t=>{t.addCase(e.pending,n=>({...n,deleting:!0,error:!1})),t.addCase(e.rejected,(n,{error:r})=>({...n,deleting:!1,error:!0,errorData:Ii(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:o,deletedVisits:s}=r;return{...f6,shortCode:i,domain:o,deletedVisits:s}})}}),B9="shlink/tagVisits",q1e={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},G1e=e=>xm({typePrefix:`${B9}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,o=u=>r.getTagVisits(t,u),s=_m(i,async u=>r.getTagVisits(t,u));return{visitsLoader:o,lastVisitLoader:s}},shouldCancel:t=>t().tagVisits.cancelLoad}),Y1e=e=>wm({name:B9,initialState:q1e,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>S9(r,t,n?.dateRange)}),F9="shlink/visitsOverview",bg={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},d6=e=>e.filter(({visit:t})=>t.potentialBot).length,W1e=e=>tr(`${F9}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n=0,orphanVisits:r,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:t?.total??n,nonBots:t?.nonBots,bots:t?.bots},orphanVisits:{total:r?.total??i,nonBots:r?.nonBots,bots:r?.bots}}))),K1e=e=>Nt({name:F9,initialState:bg,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...bg,loading:!0})),t.addCase(e.rejected,()=>({...bg,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...bg,...r})),t.addCase(Uf,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:o})=>{const{nonOrphanVisits:s,orphanVisits:u}=W0e(o.createdVisits),d=s.length,f=d6(s),m=d-f,p=u.length,b=d6(u),_=p-b;return{...i,nonOrphanVisits:{total:n.total+d,bots:n.bots&&n.bots+f,nonBots:n.nonBots&&n.nonBots+m},orphanVisits:{total:r.total+p,bots:r.bots&&r.bots+b,nonBots:r.nonBots&&r.nonBots+_}}})}}),Z1e=({shortUrl:e})=>{const{anchor:t,tooltip:n}=fo({placement:"bottom"});return e?y.jsxs("span",{children:[y.jsx("b",{className:"cursor-default",...t,children:y.jsx(Iv,{date:e.dateCreated,relative:!0})}),y.jsx(ho,{...n,children:y.jsx(Iv,{date:e.dateCreated})})]}):y.jsx("small",{children:"Loading..."})},X1e=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=e?.shortUrl??"",o=e?.longUrl??"",s=e?.title;return y.jsxs(ym,{title:y.jsxs(y.Fragment,{children:["Visits for ",y.jsx(Ti,{href:i})]}),visits:r,shortUrl:e,children:[y.jsx("hr",{}),y.jsxs("div",{children:["Created: ",y.jsx(Z1e,{shortUrl:e})]}),y.jsxs("div",{"data-testid":"long-url-container",children:[`${s?"Title":"Long URL"}: `,t&&y.jsx("small",{children:"Loading..."}),!t&&y.jsx(Ti,{href:o,children:s??o})]})]})},$9=La(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:o,cancelGetShortUrlVisits:s})=>{const u=ra("shortUrlVisitsDeletion"),{ReportExporter:d}=Nn($9),f=a3(),m=A.useMemo(()=>n.shortUrls?.get(f),[f,n.shortUrls]),p=A.useCallback((w,x)=>r({...f,options:x,params:w}),[r,f]),b=A.useCallback(w=>d.exportVisits(`short-url_${m?.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,w),[d,m?.shortUrl]),_=A.useMemo(()=>u?{deleteVisits:()=>o(f),visitsDeletion:t}:void 0,[o,f,t,u]);return A.useEffect(()=>{i([f])},[f,i]),y.jsx(bm,{getVisits:p,cancelGetVisits:s,visitsInfo:e,exportCsv:b,deletion:_,children:y.jsx(X1e,{shortUrl:m,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[aa.shortUrlVisits(t3(e.shortCode))]:[]),Q1e=Ln($9,["ReportExporter"]),J1e=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return y.jsx(ym,{title:y.jsxs("span",{className:"flex items-center justify-center",children:[y.jsx("span",{className:"mr-2",children:"Visits for"}),y.jsx(u3,{text:r,colorGenerator:t})]}),visits:n})},V9=La(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Nn(V9),{tag:o=""}=xf(),s=A.useCallback((d,f)=>e({tag:o,params:d,options:f}),[e,o]),u=A.useCallback(d=>i.exportVisits(`tag_${o}_visits.csv`,d),[i,o]);return y.jsx(bm,{getVisits:s,cancelGetVisits:n,visitsInfo:t,exportCsv:u,children:y.jsx(J1e,{tagVisits:t,colorGenerator:r})})},()=>[aa.visits]),ebe=Ln(V9,["ColorGenerator","ReportExporter"]),b3=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:o,visitsGroups:s}=r,u=Un("visits"),d=A.useMemo(()=>Object.keys(s).reduce((j,O,N)=>(j[O]=Object.assign(Fv(s[O]),{color:t?.[O]??y9(N)}),j),{}),[t,s]),f=A.useMemo(()=>Object.values(s).every(j=>j.length===0),[s]),[{dateRange:m,visitsFilter:p},b]=C9(),[_,w]=A.useState(),x=A.useCallback(({startDate:j,endDate:O},N)=>{b({dateRange:{startDate:j??void 0,endDate:O??void 0}}),w(N)},[b]),[C]=A.useState(()=>m??u?.defaultInterval??"last30Days"),E=A.useMemo(()=>({...p,excludeBots:p.excludeBots??u?.excludeBots}),[p,u?.excludeBots]);return A.useEffect(()=>{const j=m??e9(C);return n({params:{dateRange:j,filter:E}}),i},[i,m,n,C,E]),y.jsxs("div",{className:"flex flex-col gap-4",children:[y.jsxs(Pt,{bodyClassName:"flex items-center",children:[y.jsx(Jy,{}),y.jsx("h3",{className:"grow text-center",children:e})]}),y.jsxs("div",{className:"flex flex-col lg:flex-row-reverse gap-4",children:[y.jsxs("div",{className:"lg:flex-3 flex flex-col md:flex-row gap-x-2 gap-y-4",children:[y.jsx("div",{className:"grow",children:y.jsx(c3,{disabled:o,defaultText:"All visits",dateRangeOrInterval:_??m??C,onDatesChange:x})}),y.jsx(A9,{disabled:o,selected:E,onChange:({orphanVisitsType:j,excludeBots:O})=>b({visitsFilter:{orphanVisitsType:j,excludeBots:O}})})]}),y.jsx("div",{className:"hidden lg:block lg:flex-2 xl:flex-3"})]}),y.jsx(T9,{info:r}),!o&&y.jsx(Rg,{showFallback:f,children:y.jsx(_9,{visitsGroups:d,onDateRangeChange:x})})]})},tbe=La(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=h3("domains"),i=A.useCallback(o=>e({...o,domains:r}),[r,e]);return y.jsx(b3,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[aa.visits]),nbe=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),o=Object.fromEntries(r.map(d=>[d,0])),s=(d,f)=>{o[d]=f;const m=Object.values(o),p=m.reduce((b,_)=>b+_,0);n(p/m.length)},u=Object.entries(e).map(([d,f])=>[d,N9({visitsLoader:f,batchSize:i,shouldCancel:t,progressChanged:m=>s(d,m)})]);return async d=>{const f=await Promise.all(u.map(async([m,p])=>{const b=await p(d);return[m,b]}));return Object.fromEntries(f)}},_3=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=fn(`${e}/progressChanged`),i=tr(e,async(o,{getState:s,dispatch:u})=>{const d=t(o),f=await nbe({visitsLoaders:d,shouldCancel:()=>n(s),progressChanged:m=>u(r(m))})(H2(o.params));return{...o,visitsGroups:f}});return Object.assign(i,{progressChanged:r})},x3=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:o,fulfilled:s,progressChanged:u}=t,{reducer:d,actions:f}=Nt({name:e,initialState:n,reducers:{cancelGetVisits:p=>({...p,cancelLoad:!0})},extraReducers:p=>{p.addCase(i,()=>({...n,loading:!0})),p.addCase(o,(b,{error:_})=>({...n,errorData:Ii(_)??null})),p.addCase(s,(b,{payload:_})=>({...b,..._,loading:!1,progress:null,errorData:null})),p.addCase(u,(b,{payload:_})=>({...b,progress:_})),p.addCase(Uf,(b,{payload:_})=>{const{visitsGroups:w,...x}=b,C=Object.keys(w).map(j=>{const O=r({...x,groupKey:j},_.createdVisits).map(({visit:N})=>N);return[j,[...O,...w[j]]]}),E=Object.fromEntries(C);return{...x,visitsGroups:E}})}}),{cancelGetVisits:m}=f;return{reducer:d,cancelGetVisits:m}},H9="shlink/domainVisitsComparison",rbe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},ibe=e=>_3({typePrefix:`${H9}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getDomainVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),abe=e=>x3({name:H9,initialState:rbe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>w9(r,t,n?.dateRange)}),q9="shlink/shortUrlVisitsComparison",obe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},sbe=e=>_3({typePrefix:`${q9}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[n3(i),o=>n.getShortUrlVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),lbe=e=>x3({name:q9,initialState:obe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>x9(r,gI(t),n?.dateRange)}),G9="shlink/tagVisitsComparison",ube={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},cbe=e=>_3({typePrefix:`${G9}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,o=>n.getTagVisits(i,o)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),fbe=e=>x3({name:G9,initialState:ube,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>S9(r,t,n?.dateRange)}),dbe=La(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const o=h3("short-urls"),s=A.useMemo(()=>o.map(gI),[o]),u=A.useCallback(m=>e({...m,shortUrls:s}),[e,s]),d=A.useMemo(()=>[...r.shortUrls?.values()??[]],[r.shortUrls]),f=A.useMemo(()=>{const{visitsGroups:m,loading:p,...b}=t,_=d.reduce((w,x)=>(w[x.shortUrl]=m[n3(x)]??[],w),{});return{...b,visitsGroups:_,loading:p||r.loading}},[t,r.loading,d]);return A.useEffect(()=>{s.length>0&&i(s)},[i,s]),y.jsx(b3,{title:y.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${d.length} short URLs`}),getVisitsForComparison:u,visitsComparisonInfo:f,cancelGetVisitsComparison:n})},()=>[aa.visits]),Y9=La(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=Nn(Y9),i=h3("tags"),o=A.useCallback(d=>e({...d,tags:i}),[e,i]),{visitsGroups:s}=t,u=A.useMemo(()=>Object.keys(s).reduce((d,f)=>(d[f]=r.getColorForKey(f),d),{}),[r,s]);return y.jsx(b3,{title:y.jsxs(y.Fragment,{children:["Comparing ",i.map(d=>y.jsx(u3,{colorGenerator:r,text:d},d))]}),getVisitsForComparison:o,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:u})},()=>[aa.visits]),hbe=Ln(Y9,["ColorGenerator"]),mbe=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>E9),e.factory("ShortUrlVisits",Q1e),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",ebe),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",hbe),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>tbe),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>dbe),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",_1e),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",w1e),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",x1e),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>h1e),e.serviceFactory("getShortUrlVisits",F1e,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",sbe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",V1e,"apiClientFactory"),e.serviceFactory("getTagVisits",G1e,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",cbe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",O1e,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",ibe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",k1e,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",U1e,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",P1e,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>Uf),e.serviceFactory("loadVisitsOverview",W1e,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",K1e,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",j1e,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",R1e,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",I1e,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",z1e,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",$1e,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",H1e,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",Y1e,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",fbe,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",abe,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",lbe,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},ih=({children:e,to:t,active:n,...r})=>y.jsx(iw,{...r,className:({isActive:i})=>Pe("flex items-center gap-2","no-underline rounded-none px-5 py-2.5",{"text-white bg-lm-main dark:bg-dm-main":i||n,"highlight:bg-lm-secondary highlight:dark:bg-dm-secondary":!i&&!n}),to:t,children:e}),pbe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Cr(),r=i=>`${e}${i}`;return y.jsx("aside",{className:Pe("w-(--aside-menu-width) bg-lm-primary dark:bg-dm-primary","pt-[15px] md:pt-[30px] pb-[10px]","fixed! bottom-0 top-(--header-height) z-890 transition-[left] duration-300","shadow-aside-menu-mobile md:shadow-aside-menu",{"left-0":t,"max-md:left-[calc(-1*(var(--aside-menu-width)+35px))]":!t}),children:y.jsxs("nav",{className:"flex flex-col h-full",children:[y.jsxs(ih,{to:r("/overview"),children:[y.jsx(Ye,{icon:pV}),"Overview"]}),y.jsxs(ih,{to:r("/list-short-urls/1"),active:n.match("/list-short-urls")!==null,children:[y.jsx(Ye,{icon:hw}),"List short URLs"]}),y.jsxs(ih,{to:r("/create-short-url"),children:[y.jsx(Ye,{icon:cV,flip:"horizontal"}),"Create short URL"]}),y.jsxs(ih,{to:r("/manage-tags"),children:[y.jsx(Ye,{icon:oR}),"Manage tags"]}),y.jsxs(ih,{to:r("/manage-domains"),children:[y.jsx(Ye,{icon:EV}),"Manage domains"]})]})})},W9=A.createContext(void 0),w3=()=>A.useContext(W9),K9=({children:e})=>{const t=w3(),{flag:n,toggle:r,setToTrue:i,setToFalse:o}=wn(),s=t??{sidebarVisible:n,toggleSidebar:r,showSidebar:i,hideSidebar:o};return y.jsx(W9.Provider,{value:s,children:e})},Z9=({className:e,...t})=>{const n=w3();if(!n)throw new Error("ShlinkSidebarToggleButton has to be used inside a ShlinkSidebarVisibilityProvider");const{sidebarVisible:r,toggleSidebar:i}=n;return y.jsx(vf,{"aria-label":"Toggle sidebar",className:Pe("md:hidden transition-colors",{"text-white/50":!r,"text-white":r},e),onClick:i,...t,children:y.jsx(Ye,{icon:IV,size:"xl"})})},X9=({createNotFound:e,autoToggleButton:t})=>{const{TagsList:n,ShortUrlsList:r,CreateShortUrl:i,ShortUrlVisits:o,TagVisits:s,DomainVisits:u,OrphanVisits:d,NonOrphanVisits:f,Overview:m,EditShortUrl:p,ManageDomains:b,TagVisitsComparison:_,DomainVisitsComparison:w,ShortUrlVisitsComparison:x,ShortUrlRedirectRules:C}=Nn(X9),E=Cr(),j=ds(),{sidebarVisible:O,showSidebar:N,hideSidebar:U}=w3();A.useEffect(()=>U(),[E,U]);const $=f0e(N,U),K=ra("shortUrlRedirectRules");return y.jsxs(y.Fragment,{children:[t&&y.jsx(Z9,{className:"fixed top-4 left-3 z-1035"}),y.jsx("div",{...$,className:"h-full",children:y.jsxs("div",{className:"h-full",children:[y.jsx(pbe,{routePrefix:j,showOnMobile:O}),y.jsx("div",{className:"min-h-full pt-[20px] md:pt-[30px] md:pl-(--aside-menu-width)",onPointerDown:U,children:y.jsx("div",{className:"container mx-auto px-3",children:y.jsxs(Hv,{children:[y.jsx(pt,{index:!0,element:y.jsx(tw,{replace:!0,to:"overview"})}),y.jsx(pt,{path:"/overview",element:y.jsx(m,{})}),y.jsx(pt,{path:"/list-short-urls/:page",element:y.jsx(r,{})}),y.jsx(pt,{path:"/create-short-url",element:y.jsx(i,{})}),y.jsx(pt,{path:"/short-code/:shortCode/visits",children:["","*"].map(X=>y.jsx(pt,{path:X,element:y.jsx(o,{})},X))}),y.jsx(pt,{path:"/short-code/:shortCode/edit",element:y.jsx(p,{})}),K&&y.jsx(pt,{path:"/short-code/:shortCode/redirect-rules",element:y.jsx(C,{})}),y.jsx(pt,{path:"/short-urls/compare-visits",element:y.jsx(x,{})}),y.jsx(pt,{path:"/tag/:tag/visits",children:["","*"].map(X=>y.jsx(pt,{path:X,element:y.jsx(s,{})},X))}),y.jsx(pt,{path:"/tags/compare-visits",element:y.jsx(_,{})}),y.jsx(pt,{path:"/domain/:domain/visits",children:["","*"].map(X=>y.jsx(pt,{path:X,element:y.jsx(u,{})},X))}),y.jsx(pt,{path:"/orphan-visits",children:["","*"].map(X=>y.jsx(pt,{path:X,element:y.jsx(d,{})},X))}),y.jsx(pt,{path:"/non-orphan-visits",children:["","*"].map(X=>y.jsx(pt,{path:X,element:y.jsx(f,{})},X))}),y.jsx(pt,{path:"/manage-tags",element:y.jsx(n,{})}),y.jsx(pt,{path:"/manage-domains",element:y.jsx(b,{})}),y.jsx(pt,{path:"/domains/compare-visits",element:y.jsx(w,{})}),e&&y.jsx(pt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},gbe=Ln(X9,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),vbe=e=>Fw({devTools:!1,reducer:ly({mercureInfo:e.mercureInfoReducer,shortUrlsList:e.shortUrlsListReducer,shortUrlCreation:e.shortUrlCreationReducer,shortUrlDeletion:e.shortUrlDeletionReducer,shortUrlEdition:e.shortUrlEditionReducer,shortUrlsDetails:e.shortUrlsDetailsReducer,shortUrlVisits:e.shortUrlVisitsReducer,shortUrlVisitsDeletion:e.shortUrlVisitsDeletionReducer,shortUrlVisitsComparison:e.shortUrlVisitsComparisonReducer,tagVisits:e.tagVisitsReducer,tagVisitsComparison:e.tagVisitsComparisonReducer,domainVisits:e.domainVisitsReducer,domainVisitsComparison:e.domainVisitsComparisonReducer,orphanVisits:e.orphanVisitsReducer,orphanVisitsDeletion:e.orphanVisitsDeletionReducer,nonOrphanVisits:e.nonOrphanVisitsReducer,tagsList:e.tagsListReducer,tagDelete:e.tagDeleteReducer,tagEdit:e.tagEditReducer,domainsList:e.domainsListReducer,visitsOverview:e.visitsOverviewReducer,shortUrlRedirectRules:e.shortUrlRedirectRulesReducer,shortUrlRedirectRulesSaving:e.setShortUrlRedirectRulesReducer}),middleware:t=>t({immutableCheck:!1,serializableCheck:!1})}),ybe=e=>{e.factory("Main",gbe),e.factory("store",vbe)},Da=new J6,{container:bbe}=Da,_be=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),xbe=(e,t)=>(...n)=>e[t](...n),wbe=(e,t)=>({...e,[t]:xbe(bbe,t)}),Bf=(e,t=[])=>T6(e?_be(e):null,t.reduce(wbe,{}));ybe(Da);Zye(Da,Bf);b0e(Da,Bf);mbe(Da,Bf);Pge(Da);Oge(Da,Bf);Fge(Da,Bf);O0e(Da);rye(Da,Bf);let h6;const Sbe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:o,tagColorsStorage:s,autoSidebarToggle:u=!0})=>{const d=yge(t),f=A.useRef(void 0),[m,p]=A.useState(),b=Hu(),_=A.useMemo(()=>b?A.Fragment:B6,[b]);return A.useEffect(()=>{h6=n,e.value("apiClientFactory",()=>h6),s&&e.value("TagColorsStorage",s);const{Main:w,store:x,loadMercureInfo:C,listTags:E,listDomains:j}=e.container;f.current=y.jsx(w,{createNotFound:o,autoToggleButton:u}),p(x),x.dispatch(C(r)),x.dispatch(E()),x.dispatch(j())},[n,u,o,r,s]),m?y.jsx(K2,{store:m,children:y.jsx(LL,{value:r??{},children:y.jsx(vge,{value:d,children:y.jsx(K9,{children:y.jsx(mge,{value:i,children:y.jsx(_,{children:f.current})})})})})}):y.jsx(y.Fragment,{})},Cbe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=",Ebe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAABSCAMAAAAhFXfZAAAC91BMVEVMaXEzeak2f7I4g7g3g7cua5gzeKg8hJo3grY4g7c3grU0gLI2frE0daAubJc2gbQwd6QzeKk2gLMtd5sxdKIua5g1frA2f7IydaM0e6w2fq41fK01eqo3grgubJgta5cxdKI1f7AydaQydaMxc6EubJgvbJkwcZ4ubZkwcJwubZgubJcydqUydKIxapgubJctbJcubZcubJcvbJYubJcvbZkubJctbJctbZcubJg2f7AubJcrbZcubJcubJcua5g3grY0fq8ubJcubJdEkdEwhsw6i88vhswuhcsuhMtBjMgthMsrg8srgss6is8qgcs8i9A9iMYtg8spgcoogMo7hcMngMonf8olfso4gr8kfck5iM8jfMk4iM8he8k1fro7itAgesk2hs8eecgzfLcofssdeMg0hc4cd8g2hcsxeLQbdsgZdcgxeLImfcszhM0vda4xgckzhM4xg84wf8Yxgs4udKsvfcQucqhUndROmdM1fK0wcZ8vb5w0eqpQm9MzeKhXoNVcpdYydKNWn9VZotVKltJFjsIwcJ1Rms9OlslLmtH///8+kc9epdYzd6dbo9VHkMM2f7FHmNBClM8ydqVcpNY9hro3gLM9hLczealQmcw3fa46f7A8gLMxc6I3eagyc6FIldJMl9JSnNRSntNNl9JPnNJFi75UnM9ZodVKksg8kM45jc09e6ZHltFBk883gbRBh7pDk9EwcaBzn784g7dKkcY2i81Om9M7j85Llc81is09g7Q4grY/j9A0eqxKmdFFltBEjcXf6fFImdBCiLxJl9FGlNFBi78yiMxVndEvbpo6js74+vx+psPP3+o/ks5HkcpGmNCjwdZCkNDM3ehYoNJEls+lxNkxh8xHks0+jdC1zd5Lg6r+/v/H2ufz9/o3jM3t8/edvdM/k89Th61OiLBSjbZklbaTt9BfptdjmL1AicBHj8hGk9FAgK1dkLNTjLRekrdClc/k7fM0icy0y9tgp9c4jc2NtM9Dlc8zicxeXZn3AAAAQ3RSTlMAHDdTb4yPA+LtnEQmC4L2EmHqB7XA0d0sr478x4/Yd5i1zOfyPkf1sLVq4Nh3FvjxopQ2/STNuFzUwFIwxKaejILpIBEV9wAABhVJREFUeF6s1NdyFEcYBeBeoQIhRAkLlRDGrhIgY3BJL8CVeKzuyXFzzjkn5ZxzzuScg3PO8cKzu70JkO0LfxdTU//pM9vTu7Xgf6KqOVTb9X7toRrVEfBf1HTVjZccrT/2by1VV928Yty9ZbVuucdz90frG8DBjl9pVApbOstvmMuvVgaNXSfAAd6pGxpy6yxf5ph43pS/4f3uoaGm2rdu72S9xzOvMymkZFq/ptDrk90mhW7e4zl7HLzhxGWPR20xmSxJ/VqldG5m9XhaVOA1DadsNh3Pu5L2N6QtPO/32JpqQBVVk20oy/Pi2s23WEvyfHbe1thadVQttvm7Llf65gGmXK67XtupyoM7HQhmXdLS8oGWJNeOJ3C5fG5XCEJnkez3/oFdsvgJ4l2ANZwhrJKk/7OSXa+3Vw2WJMlKnGkobouYk6T0TyX30klOUnTD9HJ5qpckL3EW/w4XF3Xd0FGywXUrstrclVsqz5Pd/sXFYyDnPdrLcQODmGOK47IZb4CmibmMn+MYRzFZ5jg33ZL/EJrWcszHmANy3ARBK/IXtciJy8VsitPSdE3uuHxzougojcUdr8/32atnz/ev3f/K5wtpxUTpcaI45zusVDpYtZi+jg0oU9b3x74h7+n9ABvYEZeKaVq0sh0AtLKsFtqNBdeT0MrSzwwlq9+x6xAO4tgOtSzbCjrNQQiNvQUbUEubvzBUeGw26yDCsRHCoLkTHDa7IdOLIThs/gHvChszh2CimE8peRs47cxANI0lYNB5y1DljpOF0IhzBDPOZnDOqYYbeGKECbPzWnXludPphw5c2YBq5zlwXphIbO4VDCZ0gnPfUO1TwZoYwAs2ExPCedAu9DAjfQUjzITQb3jNj0KG2Sgt6BHaQUdYzWz+XmBktOHwanXjaSTcwwziBcuMOtwBmqPrTOxFQR/DRKKPqyur0aiW6cULYsx6tBm0jXpR/AUWR6HRq9WVW6MRhIq5jLyjbaCTDCijyYJNpCajdyobP/eTw0iexBAKkJ3gA5KcQb2zBXsIBckn+xVv8jkZSaEFHE+jFEleAEfayRU0MouNoBmB/L50Ai/HSLIHxcrpCvnhSQAuakKp2C/YbCylJjXRVy/z3+Kv/RrNcCo+WUzlVEhzKffnTQnxeN9fWF88fiNCUdSTsaufaChKWInHeysygfpIqagoakW+vV20J8uyl6TyNKEZWV4oRSPyCkWpgOLSbkCObT8o2r6tlG58HQquf6O0v50tB7JM7F4EORd2dx/K0w/KHsVkLPaoYrwgP/y7krr3SSMA4zj+OBgmjYkxcdIJQyQRKgg2viX9Hddi9UBb29LrKR7CVVEEEXWojUkXNyfTNDE14W9gbHJNuhjDettN3ZvbOvdOqCD3Jp/9l+/wJE+9PkYGjx/fqkys3S2rMozM/o2106rfMUINo6hVqz+eu/hd1c4xTg0TAfy5kV+4UG6+IthHTU9woWmxuKNbTfuCSfovBCxq7EtHqvYL4Sm6F8GVxsSXHMQ07TOi1DKtZxjWaaIyi4CXWjxPccUw8WVbMYY5wxC1mzEyXMJWkllpRloi+Kkoq69sxBTlElF6aAxYUbjXNlhlDZilDnM4U5SlN5biRsRHnbx3mbeWjEh4mEyiuJDl5XcWVmX5GvNkFgLWZM5qwsop4/AWfLhU1cR7k1VVvcYCWRkOI6Xy5gmnphCYIkvzuNYzHzosq2oNk2RtSs8khfUOfHIDgR6ysYBaMpl4uEgk2U/oJTs9AaTSwma7dT69geAE2ZpEjUsn2ieJNHeKfrI3EcAGJ2ZaNgVuC8EBctCLc57P5u5led6IOBkIYkuQMrmmjChs4VkfOerHqSBkPzZlhe06RslZ3zMjk2sscqKwY0RcjKK+LWbzd7KiHhkncs/siFJ+V5eXxD34B8nVuJEpGJNmxN2gH3vSvp7J70tF+D1Ej8qUJD1TkErAND2GZwTFg/LubvmgiBG3SOvdlsqFQrkEzJCL1rstlnVFROixZoDDSuXQFHESwVGlcuQcMb/b42NgjLowh5MTDFE3vNB5qStRIErdCQEh6pLPR92anSUb/wAIhldAaDMpGgAAAABJRU5ErkJggg==",Abe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",Tbe=()=>{delete jP.Icon.Default.prototype._getIconUrl,jP.Icon.Default.mergeOptions({iconRetinaUrl:Ebe,iconUrl:Cbe,shadowUrl:Abe})};Tbe();const Obe=Sbe(Da),Ff=({children:e,className:t})=>y.jsx("div",{className:Pe("container mx-auto p-5 pt-8 max-md:p-3 max-md:py-4",t),children:e});function Q9(e){const t=n=>{const{ServerError:r}=Pa(t),i=xf(),{selectServer:o,selectedServer:s}=n;return A.useEffect(()=>{i.serverId&&o(i.serverId)},[i.serverId,o]),s?M$(s)?y.jsx(r,{}):y.jsx(e,{...n}):y.jsx(Ff,{children:y.jsx(Zo,{loading:!0})})};return t}const J9=Q9(A.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ServerError:i}=Pa(J9);if(!uw(e))return y.jsx(i,{});const o=`/server/${e.id}`;return y.jsxs(K9,{children:[y.jsx(Z9,{className:"fixed top-3.5 left-3 z-901"}),y.jsx(Obe,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:o,tagColorsStorage:r,createNotFound:s=>y.jsx(qN,{to:`${o}${s}`,children:"List short URLs"}),autoSidebarToggle:!1})]})})),jbe=Ra(J9,["buildShlinkApiClient","TagColorsStorage","ServerError"]),Mbe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",gX,"fetch"),e.serviceFactory("ScrollToTop",()=>xX),e.factory("MainHeader",_X),e.serviceFactory("Home",()=>bX),e.decorator("Home",ev),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.factory("ShlinkWebComponentContainer",jbe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>PX),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>vX)},eU=()=>{const e=uo();return A.useCallback(()=>e(-1),[e])};function Pbe(e){let t=e.url;try{const{host:n,pathname:r}=new URL(t);t=n;const i=r.substring(1);i.length>0&&(t=`${t} ${i}`)}catch{}return`${e.name} ${t}`.toLowerCase().replace(/[^a-zA-Z0-9-_.~]/g,"-")}function Rbe(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const Nbe=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function Lbe(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=wL(t,o=>Nbe(n,o)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function $v(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const o=Pbe(i);let s=o,u=1;for(;n.has(s);)s=`${o}-${u}`,u++;r.push({...i,id:s}),n.add(s)}),r}const tU=({open:e,duplicatedServers:t,onClose:n,onConfirm:r})=>{const i=t.length>1;return y.jsxs(co,{size:"lg",title:`Duplicated server${i?"s":""}`,open:e,onClose:n,onConfirm:r,confirmText:`Save duplicate${i?"s":""}`,cancelText:i?"Ignore duplicates":"Discard",children:[y.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),y.jsx("ul",{className:"list-disc mt-4",children:t.map(({url:o,apiKey:s},u)=>i?y.jsxs("li",{children:[y.jsx("b",{children:o})," - ",y.jsx("b",{children:s})]},u):y.jsxs(A.Fragment,{children:[y.jsxs("li",{children:["URL: ",y.jsx("b",{children:o})]}),y.jsxs("li",{children:["API key: ",y.jsx("b",{children:s})]})]},u))}),y.jsxs("span",{children:[i?"Do you want to save duplicated servers":"Do you want to save this server","?"]})]})},Dbe=e=>A.useCallback(t=>{t.preventDefault(),e(t)},[e]),nU=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,o]=A.useState(t?.name??""),[s,u]=A.useState(t?.url??""),[d,f]=A.useState(t?.apiKey??""),{flag:m,toggle:p}=wn(t?.forwardCredentials??!1),b=Dbe(()=>e({name:i,url:s,apiKey:d,forwardCredentials:m}));return y.jsxs("form",{name:"serverForm",onSubmit:b,children:[y.jsxs(Pt,{className:"mb-4",bodyClassName:"flex flex-col gap-y-3",title:r,children:[y.jsx(li,{label:"Name",value:i,onChange:_=>o(_.target.value),required:!0}),y.jsx(li,{label:"URL",type:"url",value:s,onChange:_=>u(_.target.value),required:!0}),y.jsx(cK,{label:"API key",value:d,onChange:_=>f(_.target.value),required:!0}),y.jsx(XW,{summary:"Advanced options",children:y.jsxs("div",{className:"flex flex-col gap-0.5",children:[y.jsxs(Ma,{className:"flex items-center gap-x-1.5 cursor-pointer",children:[y.jsx(Pw,{onChange:p,checked:m}),"Forward credentials to this server on every request."]}),y.jsxs("small",{className:"pl-5.5 text-gray-600 dark:text-gray-400 mt-0.5",children:['"',"Credentials",'"'," here means cookies, TLS client certificates, or authentication headers containing a username and password."]}),y.jsxs("small",{className:"pl-5.5 text-gray-600 dark:text-gray-400",children:[y.jsx("b",{children:"Important!"})," If you are not sure what this means, leave it unchecked. Enabling this option will make all requests fail for Shlink older than v4.5.0, as it requires the server to set a more strict value for ",y.jsx("code",{className:"whitespace-nowrap",children:"Access-Control-Allow-Origin"})," than ",y.jsx("code",{children:"*"}),"."]})]})})]}),y.jsx("div",{className:"flex items-center justify-end gap-x-2",children:n})]})},m6=4e3,p6=({variant:e})=>y.jsx("div",{className:"mt-4",children:y.jsxs(zr,{variant:e,children:[e==="success"&&"Servers properly imported. You can now select one from the list :)",e==="error"&&"The servers could not be imported. Make sure the format is correct."]})}),rU=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=Pa(rU),i=uo(),o=eU(),s=!!Object.keys(e).length,[u,d]=r({delay:m6}),[f,m]=r({delay:m6}),{flag:p,toggle:b}=wn(),[_,w]=A.useState(),x=A.useCallback(E=>{const[j]=$v(e,[E]);t([j]),i(`/server/${j.id}`)},[t,i,e]),C=A.useCallback(E=>{w(E),Object.values(e).some(({url:O,apiKey:N})=>E.url===O&&E.apiKey===N)?b():x(E)},[x,e,b]);return y.jsxs(Ff,{children:[y.jsxs(nU,{title:"Add new server",onSubmit:C,children:[!s&&y.jsx(n,{tooltipPlacement:"top",onImport:d,onError:m}),s&&y.jsx(Rt,{variant:"secondary",onClick:o,children:"Cancel"}),y.jsx(Rt,{type:"submit",children:"Create server"})]}),u&&y.jsx(p6,{variant:"success"}),f&&y.jsx(p6,{variant:"error"}),y.jsx(tU,{open:p,duplicatedServers:_?[_]:[],onClose:o,onConfirm:()=>_&&x(_)})]})},kbe=Ra(rU,["ImportServersBtn","useTimeoutToggle"]),iU=({server:e,children:t})=>{const{DeleteServerModal:n}=Pa(iU),{flag:r,setToTrue:i,setToFalse:o}=wn(),s=uo(),u=A.useCallback(d=>{o(),d&&s("/")},[o,s]);return y.jsxs(y.Fragment,{children:[y.jsx("button",{type:"button",className:"text-danger hover:underline",onClick:i,children:t}),y.jsx(n,{server:e,open:r,onClose:u})]})},Ibe=Ra(iU,["DeleteServerModal"]),Ube=({server:e,onClose:t,open:n,deleteServer:r})=>{const i=A.useCallback(o=>{o==="confirm"&&r(e)},[r,e]);return y.jsx(co,{open:n,title:"Remove server",variant:"danger",onClose:()=>t(!1),onConfirm:()=>t(!0),onClosed:i,confirmText:"Delete",children:y.jsxs("div",{className:"flex flex-col gap-y-4",children:[y.jsxs("p",{children:["Are you sure you want to remove ",y.jsx("b",{children:e?e.name:""}),"?"]}),y.jsx("p",{children:y.jsx("i",{children:"No data will be deleted, only the access to this server will be removed from this device. You can create it again at any moment."})})]})})},zbe=Q9(({editServer:e,selectedServer:t,selectServer:n})=>{const r=eU(),{reconnect:i}=Af();if(!hh(t))return null;const o=s=>{e(t.id,s),i==="true"&&n(t.id),r()};return y.jsx(Ff,{children:y.jsxs(nU,{title:y.jsxs(y.Fragment,{children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:o,children:[y.jsx(Rt,{variant:"secondary",onClick:r,children:"Cancel"}),y.jsx(Rt,{type:"submit",children:"Save"})]})})}),Bbe=Ra(zbe,["ServerError"]),aU=({createServers:e,servers:t,children:n,onImport:r,onError:i=()=>{},tooltipPlacement:o="bottom",className:s=""})=>{const{ServersImporter:u}=Pa(aU),d=A.useRef(null),{anchor:f,tooltip:m}=fo({placement:o}),[p,b]=A.useState([]),{flag:_,setToTrue:w,setToFalse:x}=wn(),C=A.useRef(!1),E=A.useCallback(async({target:N})=>u.importServersFromFile(N.files?.[0]).then(U=>{const{duplicatedServers:$,newServers:K}=Lbe(t,U);C.current=K.length>0,e($v(t,K)),$.length>0?(b($),w()):r?.()}).then(()=>{N.value=null}).catch(i),[e,i,r,t,u,w]),j=A.useCallback(()=>{e($v(t,p)),x(),r?.()},[e,p,x,r,t]),O=A.useCallback(()=>{x(),C.current&&r?.()},[x,r]);return y.jsxs(y.Fragment,{children:[y.jsxs(Rt,{variant:"secondary",className:s,onClick:()=>d.current?.click(),...f,children:[y.jsx(Ye,{icon:iV,widthAuto:!0})," ",n??"Import from file"]}),y.jsxs(ho,{...m,children:["You can create servers by importing a CSV file with ",y.jsx("b",{children:"name"}),", ",y.jsx("b",{children:"apiKey"})," and ",y.jsx("b",{children:"url"})," columns."]}),y.jsx("input",{type:"file",accept:".csv",className:"hidden","aria-hidden":!0,tabIndex:-1,ref:d,onChange:E,"data-testid":"csv-file-input"}),y.jsx(tU,{open:_,duplicatedServers:p,onClose:O,onConfirm:j})]})},Fbe=Ra(aU,["ServersImporter"]),oU=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=Pa(oU);return y.jsx(Ff,{children:y.jsxs("div",{className:"flex flex-col items-center gap-y-4 md:gap-y-8",children:[y.jsxs(Zo,{className:"w-full lg:w-[80%]",variant:"error",children:[!hh(t)&&"Could not find this Shlink server.",hh(t)&&y.jsxs(y.Fragment,{children:[y.jsx("p",{children:"Oops! Could not connect to this Shlink server."}),"Make sure you have internet connection, and the server is properly configured and on-line."]})]}),y.jsxs("p",{className:"text-xl",children:["These are the Shlink servers currently configured. Choose one of them or ",y.jsx(Rr,{to:"/server/create",children:"add a new one"}),"."]}),y.jsx(un,{className:"w-full max-w-100 overflow-hidden",children:y.jsx(yL,{borderless:!0,servers:Object.values(e)})}),hh(t)&&y.jsxs("p",{className:"text-xl",children:["Alternatively, if you think you may have misconfigured this server, you can ",y.jsx(n,{server:t,children:"remove it"})," or ",y.jsx(Rr,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})]})})},$be=Ra(oU,["DeleteServerButton"]),Vbe=4e3,sU=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=Pa(sU),[o,s]=A.useState(""),u=A.useMemo(()=>Object.values(e),[e]),d=A.useMemo(()=>u.filter(({name:b,url:_})=>`${b} ${_}`.toLowerCase().match(o.toLowerCase())),[u,o]),f=u.some(({autoConnect:b})=>!!b),[m,p]=r({delay:Vbe});return y.jsxs(Ff,{className:"flex flex-col gap-y-4",children:[y.jsx(Ef,{onChange:s}),y.jsxs("div",{className:"flex flex-col md:flex-row gap-2",children:[y.jsxs("div",{className:"flex gap-2",children:[y.jsx(n,{className:"flex-grow",onError:p,children:"Import servers"}),d.length>0&&y.jsxs(Rt,{variant:"secondary",className:"flex-grow",onClick:async()=>t.exportServers(),children:[y.jsx(Ye,{icon:rR,widthAuto:!0})," Export servers"]})]}),y.jsxs(Rt,{className:"md:ml-auto",to:"/server/create",children:[y.jsx(Ye,{icon:Gh,widthAuto:!0})," Add a server"]})]}),y.jsx(Pt,{className:"card",children:y.jsxs(Ke,{header:y.jsxs(Ke.Row,{children:[f&&y.jsx(Ke.Cell,{className:"w-[35px]",children:y.jsx("span",{className:"sr-only",children:"Auto-connect"})}),y.jsx(Ke.Cell,{children:"Name"}),y.jsx(Ke.Cell,{children:"Base URL"}),y.jsx(Ke.Cell,{children:y.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[!d.length&&y.jsx(Ke.Row,{className:"text-center",children:y.jsx(Ke.Cell,{colSpan:4,children:"No servers found."})}),d.map(b=>y.jsx(i,{server:b,hasAutoConnect:f},b.id))]})}),m&&y.jsx("div",{children:y.jsx(zr,{variant:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},Hbe=Ra(sU,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),lU=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=Pa(lU),{anchor:r,tooltip:i}=fo();return y.jsxs(Ke.Row,{className:"relative",children:[t&&y.jsx(Ke.Cell,{columnName:"Auto-connect",children:e.autoConnect&&y.jsxs(y.Fragment,{children:[y.jsx(Ye,{icon:Ru,className:"text-lm-brand dark:text-dm-brand",...r}),y.jsx(ho,{...i,children:"Auto-connect to this server"})]})}),y.jsx(Ke.Cell,{className:"font-bold",columnName:"Name",children:y.jsx(Rr,{to:`/server/${e.id}`,children:e.name})}),y.jsx(Ke.Cell,{columnName:"Base URL",className:"max-lg:border-b-0",children:e.url}),y.jsx(Ke.Cell,{className:"text-right max-lg:absolute right-0 -top-1 mx-lg:pt-0",children:y.jsx(n,{server:e})})]})},qbe=Ra(lU,["ManageServersRowDropdown"]),uU=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=Pa(uU),{flag:r,setToTrue:i,setToFalse:o}=wn(),s=`/server/${e.id}`,{autoConnect:u}=e,d=u?Z$:WW;return y.jsxs(y.Fragment,{children:[y.jsxs(rn,{menuAlignment:"right",children:[y.jsxs(rn.Item,{to:s,className:"gap-1.5",children:[y.jsx(Ye,{icon:bV})," Connect"]}),y.jsxs(rn.Item,{to:`${s}/edit`,className:"gap-1.5",children:[y.jsx(Ye,{icon:fw})," Edit server"]}),y.jsxs(rn.Item,{onClick:()=>t(e,!u),className:"gap-1.5",children:[y.jsx(Ye,{icon:d})," ",u?"Do not a":"A","uto-connect"]}),y.jsx(rn.Separator,{}),y.jsxs(rn.Item,{className:"[&]:text-danger gap-1.5",onClick:i,children:[y.jsx(Ye,{icon:uR})," Remove server"]})]}),y.jsx(n,{server:e,open:r,onClose:o})]})},Gbe=Ra(uU,["DeleteServerModal"]),cU=(e,t)=>sL(e,t,{serializeError:n=>n}),Ybe={},{actions:Wbe,reducer:Kbe}=Nt({name:"shlink/servers",initialState:Ybe,reducers:{editServer:{prepare:(e,t)=>({payload:{serverId:e,serverData:t}}),reducer:(e,{payload:t})=>{const{serverId:n,serverData:r}=t;return e[n]?{...e,[n]:{...e[n],...r}}:e}},deleteServer:(e,{payload:t})=>(delete e[t.id],e),setAutoConnect:{prepare:({id:e},t)=>({payload:{serverId:e,autoConnect:t}}),reducer:(e,{payload:t})=>{const{serverId:n,autoConnect:r}=t;return e[n]?r?Object.fromEntries(Object.entries(e).map(([i,o])=>[i,{...o,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:Rbe(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:Zbe,deleteServer:Xbe,setAutoConnect:Qbe,createServers:fU}=Wbe,Jbe=Kbe,e_e=e=>$v({},Array.isArray(e)?e.filter(eR):[]),t_e=e=>cU("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${Dg.homepage}/servers.json`),i=e_e(r);n(fU(i))}),S3="shlink/selectedServer",n_e="1.0.0",r_e="999.999.999",i_e="latest",a_e=e=>OL(e===i_e?r_e:e,n_e),o_e=SL(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:a_e(n),printableVersion:TL(n)}))),g6=null,C3=fn(`${S3}/resetSelectedServer`),s_e=e=>cU(`${S3}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(C3());const{servers:i}=r(),o=i[t];if(!o)return{serverNotFound:!0};try{const s=e(o),{version:u,printableVersion:d}=await o_e(o,()=>s.health());return{...o,version:u,printableVersion:d}}catch{return{...o,serverNotReachable:!0}}}),l_e=e=>Nt({name:S3,initialState:g6,reducers:{},extraReducers:t=>{t.addCase(C3,()=>g6),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),u_e=({servers:e,selectedServer:t})=>{const n=Object.values(e);return y.jsx(Ux.Dropdown,{buttonContent:y.jsxs("span",{className:"flex items-center gap-1.5",children:[y.jsx(Ye,{icon:GA})," Servers"]}),children:n.length===0?y.jsxs(Qe.Item,{to:"/server/create",children:[y.jsx(Ye,{icon:Gh})," Add a server"]}):y.jsxs(y.Fragment,{children:[n.map(({name:r,id:i})=>y.jsx(Qe.Item,{to:`/server/${i}`,selected:P$(t)===i,children:r},i)),y.jsx(Qe.Separator,{}),y.jsxs(Qe.Item,{to:"/manage-servers",children:[y.jsx(Ye,{icon:GA})," Manage servers"]})]})})},c_e=({document:e},t,n)=>{const r=e.createElement("a");r.setAttribute("href",t),r.setAttribute("download",n),r.style.visibility="hidden",e.body.appendChild(r),r.click(),e.body.removeChild(r)},f_e=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);c_e(e,i,n)},d_e="shlink-servers.csv";class h_e{#t;#r;#n;constructor(t,n,r){this.#t=t,this.#r=n,this.#n=r}exportServers=async()=>{const t=Object.values(this.#t.get("servers")??{}).map(R$);try{const n=this.#n(t);f_e(this.#r,n,d_e)}catch(n){console.error(n)}}}const m_e=e=>{if(!Array.isArray(e))throw new Error("Provided file does not have the right format.");return e.map(L$)};class p_e{#t;constructor(t){this.#t=t}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await this.#t(n);return m_e(r)}}const g_e=(e,t)=>{e.factory("ManageServers",Hbe),e.decorator("ManageServers",ev),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",qbe),e.factory("ManageServersRowDropdown",Gbe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",kbe),e.decorator("CreateServer",ev),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",Bbe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>u_e),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>Ube),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",Ibe),e.factory("ImportServersBtn",Fbe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",$be),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",p_e,"csvToJson"),e.service("ServersExporter",h_e,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",s_e,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>fU),e.serviceFactory("deleteServer",()=>Xbe),e.serviceFactory("editServer",()=>Zbe),e.serviceFactory("setAutoConnect",()=>Qbe),e.serviceFactory("fetchServers",t_e,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>C3),e.serviceFactory("selectedServerReducerCreator",l_e,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},dU={field:"dateCreated",dir:"DESC"},v_e={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:Iw()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:dU}},{reducer:y_e,actions:b_e}=Nt({name:"shlink/settings",initialState:v_e,reducers:{setSettings:(e,{payload:t})=>Tf(e,t)}}),{setSettings:__e}=b_e,x_e=y_e,w_e=({settings:e,setSettings:t})=>y.jsx(Ff,{children:y.jsx(ZX,{settings:e,onUpdateSettings:t,defaultShortUrlsListOrdering:dU})}),S_e=(e,t)=>{e.serviceFactory("Settings",()=>w_e),e.decorator("Settings",ev),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>__e)};var mx,v6;function C_e(){return v6||(v6=1,mx=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,o){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:o})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(o,s,(function(u){return r[u]}).bind(null,s));return o},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=32)}([function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){var r=n(6),i=Object.keys||function(w){var x=[];for(var C in w)x.push(C);return x};e.exports=p;var o=n(5);o.inherits=n(2);var s=n(23),u=n(14);o.inherits(p,s);for(var d=i(u.prototype),f=0;f<d.length;f++){var m=d[f];p.prototype[m]||(p.prototype[m]=u.prototype[m])}function p(w){if(!(this instanceof p))return new p(w);s.call(this,w),u.call(this,w),w&&w.readable===!1&&(this.readable=!1),w&&w.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,w&&w.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",b)}function b(){this.allowHalfOpen||this._writableState.ended||r.nextTick(_,this)}function _(w){w.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(w){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=w,this._writableState.destroyed=w)}}),p.prototype._destroy=function(w,x){this.push(null),this.end(),r.nextTick(x,w)}},function(e,t){typeof Object.create=="function"?e.exports=function(n,r){n.super_=r,n.prototype=Object.create(r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(n,r){n.super_=r;var i=function(){};i.prototype=r.prototype,n.prototype=new i,n.prototype.constructor=n}},function(e,t,n){(function(r){/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
* @license MIT
*/var i=n(38),o=n(39),s=n(40);function u(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function d(D,B){if(u()<B)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(D=new Uint8Array(B)).__proto__=f.prototype:(D===null&&(D=new f(B)),D.length=B),D}function f(D,B,W){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(D,B,W);if(typeof D=="number"){if(typeof B=="string")throw new Error("If encoding is specified then the first argument must be a string");return b(this,D)}return m(this,D,B,W)}function m(D,B,W,le){if(typeof B=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&B instanceof ArrayBuffer?function(H,ae,ce,ve){if(ae.byteLength,ce<0||ae.byteLength<ce)throw new RangeError("'offset' is out of bounds");if(ae.byteLength<ce+(ve||0))throw new RangeError("'length' is out of bounds");return ae=ce===void 0&&ve===void 0?new Uint8Array(ae):ve===void 0?new Uint8Array(ae,ce):new Uint8Array(ae,ce,ve),f.TYPED_ARRAY_SUPPORT?(H=ae).__proto__=f.prototype:H=_(H,ae),H}(D,B,W,le):typeof B=="string"?function(H,ae,ce){if(typeof ce=="string"&&ce!==""||(ce="utf8"),!f.isEncoding(ce))throw new TypeError('"encoding" must be a valid string encoding');var ve=0|x(ae,ce),de=(H=d(H,ve)).write(ae,ce);return de!==ve&&(H=H.slice(0,de)),H}(D,B,W):function(H,ae){if(f.isBuffer(ae)){var ce=0|w(ae.length);return(H=d(H,ce)).length===0||ae.copy(H,0,0,ce),H}if(ae){if(typeof ArrayBuffer<"u"&&ae.buffer instanceof ArrayBuffer||"length"in ae)return typeof ae.length!="number"||function(ve){return ve!=ve}(ae.length)?d(H,0):_(H,ae);if(ae.type==="Buffer"&&s(ae.data))return _(H,ae.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(D,B)}function p(D){if(typeof D!="number")throw new TypeError('"size" argument must be a number');if(D<0)throw new RangeError('"size" argument must not be negative')}function b(D,B){if(p(B),D=d(D,B<0?0:0|w(B)),!f.TYPED_ARRAY_SUPPORT)for(var W=0;W<B;++W)D[W]=0;return D}function _(D,B){var W=B.length<0?0:0|w(B.length);D=d(D,W);for(var le=0;le<W;le+=1)D[le]=255&B[le];return D}function w(D){if(D>=u())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u().toString(16)+" bytes");return 0|D}function x(D,B){if(f.isBuffer(D))return D.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(D)||D instanceof ArrayBuffer))return D.byteLength;typeof D!="string"&&(D=""+D);var W=D.length;if(W===0)return 0;for(var le=!1;;)switch(B){case"ascii":case"latin1":case"binary":return W;case"utf8":case"utf-8":case void 0:return ue(D).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*W;case"hex":return W>>>1;case"base64":return fe(D).length;default:if(le)return ue(D).length;B=(""+B).toLowerCase(),le=!0}}function C(D,B,W){var le=D[B];D[B]=D[W],D[W]=le}function E(D,B,W,le,H){if(D.length===0)return-1;if(typeof W=="string"?(le=W,W=0):W>2147483647?W=2147483647:W<-2147483648&&(W=-2147483648),W=+W,isNaN(W)&&(W=H?0:D.length-1),W<0&&(W=D.length+W),W>=D.length){if(H)return-1;W=D.length-1}else if(W<0){if(!H)return-1;W=0}if(typeof B=="string"&&(B=f.from(B,le)),f.isBuffer(B))return B.length===0?-1:j(D,B,W,le,H);if(typeof B=="number")return B&=255,f.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?H?Uint8Array.prototype.indexOf.call(D,B,W):Uint8Array.prototype.lastIndexOf.call(D,B,W):j(D,[B],W,le,H);throw new TypeError("val must be string, number or Buffer")}function j(D,B,W,le,H){var ae,ce=1,ve=D.length,de=B.length;if(le!==void 0&&((le=String(le).toLowerCase())==="ucs2"||le==="ucs-2"||le==="utf16le"||le==="utf-16le")){if(D.length<2||B.length<2)return-1;ce=2,ve/=2,de/=2,W/=2}function we(Fe,He){return ce===1?Fe[He]:Fe.readUInt16BE(He*ce)}if(H){var Ae=-1;for(ae=W;ae<ve;ae++)if(we(D,ae)===we(B,Ae===-1?0:ae-Ae)){if(Ae===-1&&(Ae=ae),ae-Ae+1===de)return Ae*ce}else Ae!==-1&&(ae-=ae-Ae),Ae=-1}else for(W+de>ve&&(W=ve-de),ae=W;ae>=0;ae--){for(var Le=!0,Ve=0;Ve<de;Ve++)if(we(D,ae+Ve)!==we(B,Ve)){Le=!1;break}if(Le)return ae}return-1}function O(D,B,W,le){W=Number(W)||0;var H=D.length-W;le?(le=Number(le))>H&&(le=H):le=H;var ae=B.length;if(ae%2!=0)throw new TypeError("Invalid hex string");le>ae/2&&(le=ae/2);for(var ce=0;ce<le;++ce){var ve=parseInt(B.substr(2*ce,2),16);if(isNaN(ve))return ce;D[W+ce]=ve}return ce}function N(D,B,W,le){return ge(ue(B,D.length-W),D,W,le)}function U(D,B,W,le){return ge(function(H){for(var ae=[],ce=0;ce<H.length;++ce)ae.push(255&H.charCodeAt(ce));return ae}(B),D,W,le)}function $(D,B,W,le){return U(D,B,W,le)}function K(D,B,W,le){return ge(fe(B),D,W,le)}function X(D,B,W,le){return ge(function(H,ae){for(var ce,ve,de,we=[],Ae=0;Ae<H.length&&!((ae-=2)<0);++Ae)ve=(ce=H.charCodeAt(Ae))>>8,de=ce%256,we.push(de),we.push(ve);return we}(B,D.length-W),D,W,le)}function oe(D,B,W){return B===0&&W===D.length?i.fromByteArray(D):i.fromByteArray(D.slice(B,W))}function ee(D,B,W){W=Math.min(D.length,W);for(var le=[],H=B;H<W;){var ae,ce,ve,de,we=D[H],Ae=null,Le=we>239?4:we>223?3:we>191?2:1;if(H+Le<=W)switch(Le){case 1:we<128&&(Ae=we);break;case 2:(192&(ae=D[H+1]))==128&&(de=(31&we)<<6|63&ae)>127&&(Ae=de);break;case 3:ae=D[H+1],ce=D[H+2],(192&ae)==128&&(192&ce)==128&&(de=(15&we)<<12|(63&ae)<<6|63&ce)>2047&&(de<55296||de>57343)&&(Ae=de);break;case 4:ae=D[H+1],ce=D[H+2],ve=D[H+3],(192&ae)==128&&(192&ce)==128&&(192&ve)==128&&(de=(15&we)<<18|(63&ae)<<12|(63&ce)<<6|63&ve)>65535&&de<1114112&&(Ae=de)}Ae===null?(Ae=65533,Le=1):Ae>65535&&(Ae-=65536,le.push(Ae>>>10&1023|55296),Ae=56320|1023&Ae),le.push(Ae),H+=Le}return function(Ve){var Fe=Ve.length;if(Fe<=J)return String.fromCharCode.apply(String,Ve);for(var He="",be=0;be<Fe;)He+=String.fromCharCode.apply(String,Ve.slice(be,be+=J));return He}(le)}t.Buffer=f,t.SlowBuffer=function(D){return+D!=D&&(D=0),f.alloc(+D)},t.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var D=new Uint8Array(1);return D.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},D.foo()===42&&typeof D.subarray=="function"&&D.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=u(),f.poolSize=8192,f._augment=function(D){return D.__proto__=f.prototype,D},f.from=function(D,B,W){return m(null,D,B,W)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(D,B,W){return function(le,H,ae,ce){return p(H),H<=0?d(le,H):ae!==void 0?typeof ce=="string"?d(le,H).fill(ae,ce):d(le,H).fill(ae):d(le,H)}(null,D,B,W)},f.allocUnsafe=function(D){return b(null,D)},f.allocUnsafeSlow=function(D){return b(null,D)},f.isBuffer=function(D){return!(D==null||!D._isBuffer)},f.compare=function(D,B){if(!f.isBuffer(D)||!f.isBuffer(B))throw new TypeError("Arguments must be Buffers");if(D===B)return 0;for(var W=D.length,le=B.length,H=0,ae=Math.min(W,le);H<ae;++H)if(D[H]!==B[H]){W=D[H],le=B[H];break}return W<le?-1:le<W?1:0},f.isEncoding=function(D){switch(String(D).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(D,B){if(!s(D))throw new TypeError('"list" argument must be an Array of Buffers');if(D.length===0)return f.alloc(0);var W;if(B===void 0)for(B=0,W=0;W<D.length;++W)B+=D[W].length;var le=f.allocUnsafe(B),H=0;for(W=0;W<D.length;++W){var ae=D[W];if(!f.isBuffer(ae))throw new TypeError('"list" argument must be an Array of Buffers');ae.copy(le,H),H+=ae.length}return le},f.byteLength=x,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var D=this.length;if(D%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var B=0;B<D;B+=2)C(this,B,B+1);return this},f.prototype.swap32=function(){var D=this.length;if(D%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var B=0;B<D;B+=4)C(this,B,B+3),C(this,B+1,B+2);return this},f.prototype.swap64=function(){var D=this.length;if(D%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var B=0;B<D;B+=8)C(this,B,B+7),C(this,B+1,B+6),C(this,B+2,B+5),C(this,B+3,B+4);return this},f.prototype.toString=function(){var D=0|this.length;return D===0?"":arguments.length===0?ee(this,0,D):(function(B,W,le){var H=!1;if((W===void 0||W<0)&&(W=0),W>this.length||((le===void 0||le>this.length)&&(le=this.length),le<=0)||(le>>>=0)<=(W>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return Q(this,W,le);case"utf8":case"utf-8":return ee(this,W,le);case"ascii":return ne(this,W,le);case"latin1":case"binary":return he(this,W,le);case"base64":return oe(this,W,le);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,W,le);default:if(H)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),H=!0}}).apply(this,arguments)},f.prototype.equals=function(D){if(!f.isBuffer(D))throw new TypeError("Argument must be a Buffer");return this===D||f.compare(this,D)===0},f.prototype.inspect=function(){var D="",B=t.INSPECT_MAX_BYTES;return this.length>0&&(D=this.toString("hex",0,B).match(/.{2}/g).join(" "),this.length>B&&(D+=" ... ")),"<Buffer "+D+">"},f.prototype.compare=function(D,B,W,le,H){if(!f.isBuffer(D))throw new TypeError("Argument must be a Buffer");if(B===void 0&&(B=0),W===void 0&&(W=D?D.length:0),le===void 0&&(le=0),H===void 0&&(H=this.length),B<0||W>D.length||le<0||H>this.length)throw new RangeError("out of range index");if(le>=H&&B>=W)return 0;if(le>=H)return-1;if(B>=W)return 1;if(B>>>=0,W>>>=0,le>>>=0,H>>>=0,this===D)return 0;for(var ae=H-le,ce=W-B,ve=Math.min(ae,ce),de=this.slice(le,H),we=D.slice(B,W),Ae=0;Ae<ve;++Ae)if(de[Ae]!==we[Ae]){ae=de[Ae],ce=we[Ae];break}return ae<ce?-1:ce<ae?1:0},f.prototype.includes=function(D,B,W){return this.indexOf(D,B,W)!==-1},f.prototype.indexOf=function(D,B,W){return E(this,D,B,W,!0)},f.prototype.lastIndexOf=function(D,B,W){return E(this,D,B,W,!1)},f.prototype.write=function(D,B,W,le){if(B===void 0)le="utf8",W=this.length,B=0;else if(W===void 0&&typeof B=="string")le=B,W=this.length,B=0;else{if(!isFinite(B))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");B|=0,isFinite(W)?(W|=0,le===void 0&&(le="utf8")):(le=W,W=void 0)}var H=this.length-B;if((W===void 0||W>H)&&(W=H),D.length>0&&(W<0||B<0)||B>this.length)throw new RangeError("Attempt to write outside buffer bounds");le||(le="utf8");for(var ae=!1;;)switch(le){case"hex":return O(this,D,B,W);case"utf8":case"utf-8":return N(this,D,B,W);case"ascii":return U(this,D,B,W);case"latin1":case"binary":return $(this,D,B,W);case"base64":return K(this,D,B,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,D,B,W);default:if(ae)throw new TypeError("Unknown encoding: "+le);le=(""+le).toLowerCase(),ae=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;function ne(D,B,W){var le="";W=Math.min(D.length,W);for(var H=B;H<W;++H)le+=String.fromCharCode(127&D[H]);return le}function he(D,B,W){var le="";W=Math.min(D.length,W);for(var H=B;H<W;++H)le+=String.fromCharCode(D[H]);return le}function Q(D,B,W){var le=D.length;(!B||B<0)&&(B=0),(!W||W<0||W>le)&&(W=le);for(var H="",ae=B;ae<W;++ae)H+=te(D[ae]);return H}function se(D,B,W){for(var le=D.slice(B,W),H="",ae=0;ae<le.length;ae+=2)H+=String.fromCharCode(le[ae]+256*le[ae+1]);return H}function Z(D,B,W){if(D%1!=0||D<0)throw new RangeError("offset is not uint");if(D+B>W)throw new RangeError("Trying to access beyond buffer length")}function I(D,B,W,le,H,ae){if(!f.isBuffer(D))throw new TypeError('"buffer" argument must be a Buffer instance');if(B>H||B<ae)throw new RangeError('"value" argument is out of bounds');if(W+le>D.length)throw new RangeError("Index out of range")}function k(D,B,W,le){B<0&&(B=65535+B+1);for(var H=0,ae=Math.min(D.length-W,2);H<ae;++H)D[W+H]=(B&255<<8*(le?H:1-H))>>>8*(le?H:1-H)}function z(D,B,W,le){B<0&&(B=4294967295+B+1);for(var H=0,ae=Math.min(D.length-W,4);H<ae;++H)D[W+H]=B>>>8*(le?H:3-H)&255}function F(D,B,W,le,H,ae){if(W+le>D.length)throw new RangeError("Index out of range");if(W<0)throw new RangeError("Index out of range")}function P(D,B,W,le,H){return H||F(D,0,W,4),o.write(D,B,W,le,23,4),W+4}function G(D,B,W,le,H){return H||F(D,0,W,8),o.write(D,B,W,le,52,8),W+8}f.prototype.slice=function(D,B){var W,le=this.length;if(D=~~D,B=B===void 0?le:~~B,D<0?(D+=le)<0&&(D=0):D>le&&(D=le),B<0?(B+=le)<0&&(B=0):B>le&&(B=le),B<D&&(B=D),f.TYPED_ARRAY_SUPPORT)(W=this.subarray(D,B)).__proto__=f.prototype;else{var H=B-D;W=new f(H,void 0);for(var ae=0;ae<H;++ae)W[ae]=this[ae+D]}return W},f.prototype.readUIntLE=function(D,B,W){D|=0,B|=0,W||Z(D,B,this.length);for(var le=this[D],H=1,ae=0;++ae<B&&(H*=256);)le+=this[D+ae]*H;return le},f.prototype.readUIntBE=function(D,B,W){D|=0,B|=0,W||Z(D,B,this.length);for(var le=this[D+--B],H=1;B>0&&(H*=256);)le+=this[D+--B]*H;return le},f.prototype.readUInt8=function(D,B){return B||Z(D,1,this.length),this[D]},f.prototype.readUInt16LE=function(D,B){return B||Z(D,2,this.length),this[D]|this[D+1]<<8},f.prototype.readUInt16BE=function(D,B){return B||Z(D,2,this.length),this[D]<<8|this[D+1]},f.prototype.readUInt32LE=function(D,B){return B||Z(D,4,this.length),(this[D]|this[D+1]<<8|this[D+2]<<16)+16777216*this[D+3]},f.prototype.readUInt32BE=function(D,B){return B||Z(D,4,this.length),16777216*this[D]+(this[D+1]<<16|this[D+2]<<8|this[D+3])},f.prototype.readIntLE=function(D,B,W){D|=0,B|=0,W||Z(D,B,this.length);for(var le=this[D],H=1,ae=0;++ae<B&&(H*=256);)le+=this[D+ae]*H;return le>=(H*=128)&&(le-=Math.pow(2,8*B)),le},f.prototype.readIntBE=function(D,B,W){D|=0,B|=0,W||Z(D,B,this.length);for(var le=B,H=1,ae=this[D+--le];le>0&&(H*=256);)ae+=this[D+--le]*H;return ae>=(H*=128)&&(ae-=Math.pow(2,8*B)),ae},f.prototype.readInt8=function(D,B){return B||Z(D,1,this.length),128&this[D]?-1*(255-this[D]+1):this[D]},f.prototype.readInt16LE=function(D,B){B||Z(D,2,this.length);var W=this[D]|this[D+1]<<8;return 32768&W?4294901760|W:W},f.prototype.readInt16BE=function(D,B){B||Z(D,2,this.length);var W=this[D+1]|this[D]<<8;return 32768&W?4294901760|W:W},f.prototype.readInt32LE=function(D,B){return B||Z(D,4,this.length),this[D]|this[D+1]<<8|this[D+2]<<16|this[D+3]<<24},f.prototype.readInt32BE=function(D,B){return B||Z(D,4,this.length),this[D]<<24|this[D+1]<<16|this[D+2]<<8|this[D+3]},f.prototype.readFloatLE=function(D,B){return B||Z(D,4,this.length),o.read(this,D,!0,23,4)},f.prototype.readFloatBE=function(D,B){return B||Z(D,4,this.length),o.read(this,D,!1,23,4)},f.prototype.readDoubleLE=function(D,B){return B||Z(D,8,this.length),o.read(this,D,!0,52,8)},f.prototype.readDoubleBE=function(D,B){return B||Z(D,8,this.length),o.read(this,D,!1,52,8)},f.prototype.writeUIntLE=function(D,B,W,le){D=+D,B|=0,W|=0,le||I(this,D,B,W,Math.pow(2,8*W)-1,0);var H=1,ae=0;for(this[B]=255&D;++ae<W&&(H*=256);)this[B+ae]=D/H&255;return B+W},f.prototype.writeUIntBE=function(D,B,W,le){D=+D,B|=0,W|=0,le||I(this,D,B,W,Math.pow(2,8*W)-1,0);var H=W-1,ae=1;for(this[B+H]=255&D;--H>=0&&(ae*=256);)this[B+H]=D/ae&255;return B+W},f.prototype.writeUInt8=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,1,255,0),f.TYPED_ARRAY_SUPPORT||(D=Math.floor(D)),this[B]=255&D,B+1},f.prototype.writeUInt16LE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[B]=255&D,this[B+1]=D>>>8):k(this,D,B,!0),B+2},f.prototype.writeUInt16BE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[B]=D>>>8,this[B+1]=255&D):k(this,D,B,!1),B+2},f.prototype.writeUInt32LE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[B+3]=D>>>24,this[B+2]=D>>>16,this[B+1]=D>>>8,this[B]=255&D):z(this,D,B,!0),B+4},f.prototype.writeUInt32BE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[B]=D>>>24,this[B+1]=D>>>16,this[B+2]=D>>>8,this[B+3]=255&D):z(this,D,B,!1),B+4},f.prototype.writeIntLE=function(D,B,W,le){if(D=+D,B|=0,!le){var H=Math.pow(2,8*W-1);I(this,D,B,W,H-1,-H)}var ae=0,ce=1,ve=0;for(this[B]=255&D;++ae<W&&(ce*=256);)D<0&&ve===0&&this[B+ae-1]!==0&&(ve=1),this[B+ae]=(D/ce>>0)-ve&255;return B+W},f.prototype.writeIntBE=function(D,B,W,le){if(D=+D,B|=0,!le){var H=Math.pow(2,8*W-1);I(this,D,B,W,H-1,-H)}var ae=W-1,ce=1,ve=0;for(this[B+ae]=255&D;--ae>=0&&(ce*=256);)D<0&&ve===0&&this[B+ae+1]!==0&&(ve=1),this[B+ae]=(D/ce>>0)-ve&255;return B+W},f.prototype.writeInt8=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,1,127,-128),f.TYPED_ARRAY_SUPPORT||(D=Math.floor(D)),D<0&&(D=255+D+1),this[B]=255&D,B+1},f.prototype.writeInt16LE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[B]=255&D,this[B+1]=D>>>8):k(this,D,B,!0),B+2},f.prototype.writeInt16BE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[B]=D>>>8,this[B+1]=255&D):k(this,D,B,!1),B+2},f.prototype.writeInt32LE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[B]=255&D,this[B+1]=D>>>8,this[B+2]=D>>>16,this[B+3]=D>>>24):z(this,D,B,!0),B+4},f.prototype.writeInt32BE=function(D,B,W){return D=+D,B|=0,W||I(this,D,B,4,2147483647,-2147483648),D<0&&(D=4294967295+D+1),f.TYPED_ARRAY_SUPPORT?(this[B]=D>>>24,this[B+1]=D>>>16,this[B+2]=D>>>8,this[B+3]=255&D):z(this,D,B,!1),B+4},f.prototype.writeFloatLE=function(D,B,W){return P(this,D,B,!0,W)},f.prototype.writeFloatBE=function(D,B,W){return P(this,D,B,!1,W)},f.prototype.writeDoubleLE=function(D,B,W){return G(this,D,B,!0,W)},f.prototype.writeDoubleBE=function(D,B,W){return G(this,D,B,!1,W)},f.prototype.copy=function(D,B,W,le){if(W||(W=0),le||le===0||(le=this.length),B>=D.length&&(B=D.length),B||(B=0),le>0&&le<W&&(le=W),le===W||D.length===0||this.length===0)return 0;if(B<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("sourceStart out of bounds");if(le<0)throw new RangeError("sourceEnd out of bounds");le>this.length&&(le=this.length),D.length-B<le-W&&(le=D.length-B+W);var H,ae=le-W;if(this===D&&W<B&&B<le)for(H=ae-1;H>=0;--H)D[H+B]=this[H+W];else if(ae<1e3||!f.TYPED_ARRAY_SUPPORT)for(H=0;H<ae;++H)D[H+B]=this[H+W];else Uint8Array.prototype.set.call(D,this.subarray(W,W+ae),B);return ae},f.prototype.fill=function(D,B,W,le){if(typeof D=="string"){if(typeof B=="string"?(le=B,B=0,W=this.length):typeof W=="string"&&(le=W,W=this.length),D.length===1){var H=D.charCodeAt(0);H<256&&(D=H)}if(le!==void 0&&typeof le!="string")throw new TypeError("encoding must be a string");if(typeof le=="string"&&!f.isEncoding(le))throw new TypeError("Unknown encoding: "+le)}else typeof D=="number"&&(D&=255);if(B<0||this.length<B||this.length<W)throw new RangeError("Out of range index");if(W<=B)return this;var ae;if(B>>>=0,W=W===void 0?this.length:W>>>0,D||(D=0),typeof D=="number")for(ae=B;ae<W;++ae)this[ae]=D;else{var ce=f.isBuffer(D)?D:ue(new f(D,le).toString()),ve=ce.length;for(ae=0;ae<W-B;++ae)this[ae+B]=ce[ae%ve]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function te(D){return D<16?"0"+D.toString(16):D.toString(16)}function ue(D,B){var W;B=B||1/0;for(var le=D.length,H=null,ae=[],ce=0;ce<le;++ce){if((W=D.charCodeAt(ce))>55295&&W<57344){if(!H){if(W>56319){(B-=3)>-1&&ae.push(239,191,189);continue}if(ce+1===le){(B-=3)>-1&&ae.push(239,191,189);continue}H=W;continue}if(W<56320){(B-=3)>-1&&ae.push(239,191,189),H=W;continue}W=65536+(H-55296<<10|W-56320)}else H&&(B-=3)>-1&&ae.push(239,191,189);if(H=null,W<128){if((B-=1)<0)break;ae.push(W)}else if(W<2048){if((B-=2)<0)break;ae.push(W>>6|192,63&W|128)}else if(W<65536){if((B-=3)<0)break;ae.push(W>>12|224,W>>6&63|128,63&W|128)}else{if(!(W<1114112))throw new Error("Invalid code point");if((B-=4)<0)break;ae.push(W>>18|240,W>>12&63|128,W>>6&63|128,63&W|128)}}return ae}function fe(D){return i.toByteArray(function(B){if((B=function(W){return W.trim?W.trim():W.replace(/^\s+|\s+$/g,"")}(B).replace(Y,"")).length<2)return"";for(;B.length%4!=0;)B+="=";return B}(D))}function ge(D,B,W,le){for(var H=0;H<le&&!(H+W>=B.length||H>=D.length);++H)B[H+W]=D[H];return H}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(C){if(n===setTimeout)return setTimeout(C,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(C,0);try{return n(C,0)}catch{try{return n.call(null,C,0)}catch{return n.call(this,C,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:o}catch{n=o}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var d,f=[],m=!1,p=-1;function b(){m&&d&&(m=!1,d.length?f=d.concat(f):p=-1,f.length&&_())}function _(){if(!m){var C=u(b);m=!0;for(var E=f.length;E;){for(d=f,f=[];++p<E;)d&&d[p].run();p=-1,E=f.length}d=null,m=!1,function(j){if(r===clearTimeout)return clearTimeout(j);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(j);try{r(j)}catch{try{return r.call(null,j)}catch{return r.call(this,j)}}}(C)}}function w(C,E){this.fun=C,this.array=E}function x(){}i.nextTick=function(C){var E=new Array(arguments.length-1);if(arguments.length>1)for(var j=1;j<arguments.length;j++)E[j-1]=arguments[j];f.push(new w(C,E)),f.length!==1||m||u(_)},w.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=x,i.addListener=x,i.once=x,i.off=x,i.removeListener=x,i.removeAllListeners=x,i.emit=x,i.prependListener=x,i.prependOnceListener=x,i.listeners=function(C){return[]},i.binding=function(C){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(C){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(o){return Object.prototype.toString.call(o)}t.isArray=function(o){return Array.isArray?Array.isArray(o):i(o)==="[object Array]"},t.isBoolean=function(o){return typeof o=="boolean"},t.isNull=function(o){return o===null},t.isNullOrUndefined=function(o){return o==null},t.isNumber=function(o){return typeof o=="number"},t.isString=function(o){return typeof o=="string"},t.isSymbol=function(o){return typeof o=="symbol"},t.isUndefined=function(o){return o===void 0},t.isRegExp=function(o){return i(o)==="[object RegExp]"},t.isObject=function(o){return typeof o=="object"&&o!==null},t.isDate=function(o){return i(o)==="[object Date]"},t.isError=function(o){return i(o)==="[object Error]"||o instanceof Error},t.isFunction=function(o){return typeof o=="function"},t.isPrimitive=function(o){return o===null||typeof o=="boolean"||typeof o=="number"||typeof o=="string"||typeof o=="symbol"||o===void 0},t.isBuffer=r.isBuffer}).call(this,n(3).Buffer)},function(e,t,n){(function(r){!r.version||r.version.indexOf("v0.")===0||r.version.indexOf("v1.")===0&&r.version.indexOf("v1.8.")!==0?e.exports={nextTick:function(i,o,s,u){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var d,f,m=arguments.length;switch(m){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,o)});case 3:return r.nextTick(function(){i.call(null,o,s)});case 4:return r.nextTick(function(){i.call(null,o,s,u)});default:for(d=new Array(m-1),f=0;f<d.length;)d[f++]=arguments[f];return r.nextTick(function(){i.apply(null,d)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function o(u,d){for(var f in u)d[f]=u[f]}function s(u,d,f){return i(u,d,f)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=s),o(i,s),s.from=function(u,d,f){if(typeof u=="number")throw new TypeError("Argument must not be a number");return i(u,d,f)},s.alloc=function(u,d,f){if(typeof u!="number")throw new TypeError("Argument must be a number");var m=i(u);return d!==void 0?typeof f=="string"?m.fill(d,f):m.fill(d):m.fill(0),m},s.allocUnsafe=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return i(u)},s.allocUnsafeSlow=function(u){if(typeof u!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(u)}},function(e,t,n){var r=n(17)(Object,"create");e.exports=r},function(e,t,n){var r=n(31);e.exports=function(i,o){for(var s=i.length;s--;)if(r(i[s][0],o))return s;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,o){var s=i.__data__;return r(o)?s[typeof o=="string"?"string":"hash"]:s.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,o=Function.prototype.apply;function s(u,d){this._id=u,this._clearFn=d}t.setTimeout=function(){return new s(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new s(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(u){u&&u.close()},s.prototype.unref=s.prototype.ref=function(){},s.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(u,d){clearTimeout(u._idleTimeoutId),u._idleTimeout=d},t.unenroll=function(u){clearTimeout(u._idleTimeoutId),u._idleTimeout=-1},t._unrefActive=t.active=function(u){clearTimeout(u._idleTimeoutId);var d=u._idleTimeout;d>=0&&(u._idleTimeoutId=setTimeout(function(){u._onTimeout&&u._onTimeout()},d))},n(35),t.setImmediate=typeof self<"u"&&self.setImmediate||r!==void 0&&r.setImmediate||this&&this.setImmediate,t.clearImmediate=typeof self<"u"&&self.clearImmediate||r!==void 0&&r.clearImmediate||this&&this.clearImmediate}).call(this,n(0))},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(s){return typeof s=="function"}function i(s){return typeof s=="object"&&s!==null}function o(s){return s===void 0}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(s){if(!function(u){return typeof u=="number"}(s)||s<0||isNaN(s))throw TypeError("n must be a positive number");return this._maxListeners=s,this},n.prototype.emit=function(s){var u,d,f,m,p,b;if(this._events||(this._events={}),s==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((u=arguments[1])instanceof Error)throw u;var _=new Error('Uncaught, unspecified "error" event. ('+u+")");throw _.context=u,_}if(o(d=this._events[s]))return!1;if(r(d))switch(arguments.length){case 1:d.call(this);break;case 2:d.call(this,arguments[1]);break;case 3:d.call(this,arguments[1],arguments[2]);break;default:m=Array.prototype.slice.call(arguments,1),d.apply(this,m)}else if(i(d))for(m=Array.prototype.slice.call(arguments,1),f=(b=d.slice()).length,p=0;p<f;p++)b[p].apply(this,m);return!0},n.prototype.addListener=function(s,u){var d;if(!r(u))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",s,r(u.listener)?u.listener:u),this._events[s]?i(this._events[s])?this._events[s].push(u):this._events[s]=[this._events[s],u]:this._events[s]=u,i(this._events[s])&&!this._events[s].warned&&(d=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&d>0&&this._events[s].length>d&&(this._events[s].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[s].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(s,u){if(!r(u))throw TypeError("listener must be a function");var d=!1;function f(){this.removeListener(s,f),d||(d=!0,u.apply(this,arguments))}return f.listener=u,this.on(s,f),this},n.prototype.removeListener=function(s,u){var d,f,m,p;if(!r(u))throw TypeError("listener must be a function");if(!this._events||!this._events[s])return this;if(m=(d=this._events[s]).length,f=-1,d===u||r(d.listener)&&d.listener===u)delete this._events[s],this._events.removeListener&&this.emit("removeListener",s,u);else if(i(d)){for(p=m;p-- >0;)if(d[p]===u||d[p].listener&&d[p].listener===u){f=p;break}if(f<0)return this;d.length===1?(d.length=0,delete this._events[s]):d.splice(f,1),this._events.removeListener&&this.emit("removeListener",s,u)}return this},n.prototype.removeAllListeners=function(s){var u,d;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[s]&&delete this._events[s],this;if(arguments.length===0){for(u in this._events)u!=="removeListener"&&this.removeAllListeners(u);return this.removeAllListeners("removeListener"),this._events={},this}if(r(d=this._events[s]))this.removeListener(s,d);else if(d)for(;d.length;)this.removeListener(s,d[d.length-1]);return delete this._events[s],this},n.prototype.listeners=function(s){return this._events&&this._events[s]?r(this._events[s])?[this._events[s]]:this._events[s].slice():[]},n.prototype.listenerCount=function(s){if(this._events){var u=this._events[s];if(r(u))return 1;if(u)return u.length}return 0},n.listenerCount=function(s,u){return s.listenerCount(u)}},function(e,t,n){(t=e.exports=n(23)).Stream=t,t.Readable=t,t.Writable=n(14),t.Duplex=n(1),t.Transform=n(27),t.PassThrough=n(45)},function(e,t,n){(function(r,i,o){var s=n(6);function u(ee){var J=this;this.next=null,this.entry=null,this.finish=function(){(function(ne,he,Q){var se=ne.entry;for(ne.entry=null;se;){var Z=se.callback;he.pendingcb--,Z(void 0),se=se.next}he.corkedRequestsFree?he.corkedRequestsFree.next=ne:he.corkedRequestsFree=ne})(J,ee)}}e.exports=O;var d,f=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:s.nextTick;O.WritableState=j;var m=n(5);m.inherits=n(2);var p,b={deprecate:n(44)},_=n(24),w=n(7).Buffer,x=o.Uint8Array||function(){},C=n(25);function E(){}function j(ee,J){d=d||n(1),ee=ee||{};var ne=J instanceof d;this.objectMode=!!ee.objectMode,ne&&(this.objectMode=this.objectMode||!!ee.writableObjectMode);var he=ee.highWaterMark,Q=ee.writableHighWaterMark,se=this.objectMode?16:16384;this.highWaterMark=he||he===0?he:ne&&(Q||Q===0)?Q:se,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=ee.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=ee.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(I){(function(k,z){var F=k._writableState,P=F.sync,G=F.writecb;if(function(te){te.writing=!1,te.writecb=null,te.length-=te.writelen,te.writelen=0}(F),z)(function(te,ue,fe,ge,D){--ue.pendingcb,fe?(s.nextTick(D,ge),s.nextTick(oe,te,ue),te._writableState.errorEmitted=!0,te.emit("error",ge)):(D(ge),te._writableState.errorEmitted=!0,te.emit("error",ge),oe(te,ue))})(k,F,P,z,G);else{var Y=K(F);Y||F.corked||F.bufferProcessing||!F.bufferedRequest||$(k,F),P?f(U,k,F,Y,G):U(k,F,Y,G)}})(J,I)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new u(this)}function O(ee){if(d=d||n(1),!(p.call(O,this)||this instanceof d))return new O(ee);this._writableState=new j(ee,this),this.writable=!0,ee&&(typeof ee.write=="function"&&(this._write=ee.write),typeof ee.writev=="function"&&(this._writev=ee.writev),typeof ee.destroy=="function"&&(this._destroy=ee.destroy),typeof ee.final=="function"&&(this._final=ee.final)),_.call(this)}function N(ee,J,ne,he,Q,se,Z){J.writelen=he,J.writecb=Z,J.writing=!0,J.sync=!0,ne?ee._writev(Q,J.onwrite):ee._write(Q,se,J.onwrite),J.sync=!1}function U(ee,J,ne,he){ne||function(Q,se){se.length===0&&se.needDrain&&(se.needDrain=!1,Q.emit("drain"))}(ee,J),J.pendingcb--,he(),oe(ee,J)}function $(ee,J){J.bufferProcessing=!0;var ne=J.bufferedRequest;if(ee._writev&&ne&&ne.next){var he=J.bufferedRequestCount,Q=new Array(he),se=J.corkedRequestsFree;se.entry=ne;for(var Z=0,I=!0;ne;)Q[Z]=ne,ne.isBuf||(I=!1),ne=ne.next,Z+=1;Q.allBuffers=I,N(ee,J,!0,J.length,Q,"",se.finish),J.pendingcb++,J.lastBufferedRequest=null,se.next?(J.corkedRequestsFree=se.next,se.next=null):J.corkedRequestsFree=new u(J),J.bufferedRequestCount=0}else{for(;ne;){var k=ne.chunk,z=ne.encoding,F=ne.callback;if(N(ee,J,!1,J.objectMode?1:k.length,k,z,F),ne=ne.next,J.bufferedRequestCount--,J.writing)break}ne===null&&(J.lastBufferedRequest=null)}J.bufferedRequest=ne,J.bufferProcessing=!1}function K(ee){return ee.ending&&ee.length===0&&ee.bufferedRequest===null&&!ee.finished&&!ee.writing}function X(ee,J){ee._final(function(ne){J.pendingcb--,ne&&ee.emit("error",ne),J.prefinished=!0,ee.emit("prefinish"),oe(ee,J)})}function oe(ee,J){var ne=K(J);return ne&&(function(he,Q){Q.prefinished||Q.finalCalled||(typeof he._final=="function"?(Q.pendingcb++,Q.finalCalled=!0,s.nextTick(X,he,Q)):(Q.prefinished=!0,he.emit("prefinish")))}(ee,J),J.pendingcb===0&&(J.finished=!0,ee.emit("finish"))),ne}m.inherits(O,_),j.prototype.getBuffer=function(){for(var ee=this.bufferedRequest,J=[];ee;)J.push(ee),ee=ee.next;return J},function(){try{Object.defineProperty(j.prototype,"buffer",{get:b.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(ee){return!!p.call(this,ee)||this===O&&ee&&ee._writableState instanceof j}})):p=function(ee){return ee instanceof this},O.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},O.prototype.write=function(ee,J,ne){var he=this._writableState,Q=!1,se=!he.objectMode&&function(Z){return w.isBuffer(Z)||Z instanceof x}(ee);return se&&!w.isBuffer(ee)&&(ee=function(Z){return w.from(Z)}(ee)),typeof J=="function"&&(ne=J,J=null),se?J="buffer":J||(J=he.defaultEncoding),typeof ne!="function"&&(ne=E),he.ended?function(Z,I){var k=new Error("write after end");Z.emit("error",k),s.nextTick(I,k)}(this,ne):(se||function(Z,I,k,z){var F=!0,P=!1;return k===null?P=new TypeError("May not write null values to stream"):typeof k=="string"||k===void 0||I.objectMode||(P=new TypeError("Invalid non-string/buffer chunk")),P&&(Z.emit("error",P),s.nextTick(z,P),F=!1),F}(this,he,ee,ne))&&(he.pendingcb++,Q=function(Z,I,k,z,F,P){if(!k){var G=function(fe,ge,D){return fe.objectMode||fe.decodeStrings===!1||typeof ge!="string"||(ge=w.from(ge,D)),ge}(I,z,F);z!==G&&(k=!0,F="buffer",z=G)}var Y=I.objectMode?1:z.length;I.length+=Y;var te=I.length<I.highWaterMark;if(te||(I.needDrain=!0),I.writing||I.corked){var ue=I.lastBufferedRequest;I.lastBufferedRequest={chunk:z,encoding:F,isBuf:k,callback:P,next:null},ue?ue.next=I.lastBufferedRequest:I.bufferedRequest=I.lastBufferedRequest,I.bufferedRequestCount+=1}else N(Z,I,!1,Y,z,F,P);return te}(this,he,se,ee,J,ne)),Q},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var ee=this._writableState;ee.corked&&(ee.corked--,ee.writing||ee.corked||ee.finished||ee.bufferProcessing||!ee.bufferedRequest||$(this,ee))},O.prototype.setDefaultEncoding=function(ee){if(typeof ee=="string"&&(ee=ee.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ee+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+ee);return this._writableState.defaultEncoding=ee,this},Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(ee,J,ne){ne(new Error("_write() is not implemented"))},O.prototype._writev=null,O.prototype.end=function(ee,J,ne){var he=this._writableState;typeof ee=="function"?(ne=ee,ee=null,J=null):typeof J=="function"&&(ne=J,J=null),ee!=null&&this.write(ee,J),he.corked&&(he.corked=1,this.uncork()),he.ending||he.finished||function(Q,se,Z){se.ending=!0,oe(Q,se),Z&&(se.finished?s.nextTick(Z):Q.once("finish",Z)),se.ended=!0,Q.writable=!1}(this,he,ne)},Object.defineProperty(O.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ee){this._writableState&&(this._writableState.destroyed=ee)}}),O.prototype.destroy=C.destroy,O.prototype._undestroy=C.undestroy,O.prototype._destroy=function(ee,J){this.end(),J(ee)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,o){e.exports=function s(u,d,f){function m(_,w){if(!d[_]){if(!u[_]){var x=typeof _dereq_=="function"&&_dereq_;if(!w&&x)return x(_,!0);if(p)return p(_,!0);var C=new Error("Cannot find module '"+_+"'");throw C.code="MODULE_NOT_FOUND",C}var E=d[_]={exports:{}};u[_][0].call(E.exports,function(j){return m(u[_][1][j]||j)},E,E.exports,s,u,d,f)}return d[_].exports}for(var p=typeof _dereq_=="function"&&_dereq_,b=0;b<f.length;b++)m(f[b]);return m}({1:[function(s,u,d){u.exports=function(f){var m=f._SomePromiseArray;function p(b){var _=new m(b),w=_.promise();return _.setHowMany(1),_.setUnwrap(),_.init(),w}f.any=function(b){return p(b)},f.prototype.any=function(){return p(this)}}},{}],2:[function(s,u,d){var f;try{throw new Error}catch(E){f=E}var m=s("./schedule"),p=s("./queue"),b=s("./util");function _(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new p(16),this._normalQueue=new p(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var E=this;this.drainQueues=function(){E._drainQueues()},this._schedule=m}function w(E,j,O){this._lateQueue.push(E,j,O),this._queueTick()}function x(E,j,O){this._normalQueue.push(E,j,O),this._queueTick()}function C(E){this._normalQueue._pushOne(E),this._queueTick()}_.prototype.setScheduler=function(E){var j=this._schedule;return this._schedule=E,this._customScheduler=!0,j},_.prototype.hasCustomScheduler=function(){return this._customScheduler},_.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},_.prototype.disableTrampolineIfNecessary=function(){b.hasDevTools&&(this._trampolineEnabled=!1)},_.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},_.prototype.fatalError=function(E,j){j?(r.stderr.write("Fatal "+(E instanceof Error?E.stack:E)+`
`),r.exit(2)):this.throwLater(E)},_.prototype.throwLater=function(E,j){if(arguments.length===1&&(j=E,E=function(){throw j}),typeof setTimeout<"u")setTimeout(function(){E(j)},0);else try{this._schedule(function(){E(j)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}},b.hasDevTools?(_.prototype.invokeLater=function(E,j,O){this._trampolineEnabled?w.call(this,E,j,O):this._schedule(function(){setTimeout(function(){E.call(j,O)},100)})},_.prototype.invoke=function(E,j,O){this._trampolineEnabled?x.call(this,E,j,O):this._schedule(function(){E.call(j,O)})},_.prototype.settlePromises=function(E){this._trampolineEnabled?C.call(this,E):this._schedule(function(){E._settlePromises()})}):(_.prototype.invokeLater=w,_.prototype.invoke=x,_.prototype.settlePromises=C),_.prototype._drainQueue=function(E){for(;E.length()>0;){var j=E.shift();if(typeof j=="function"){var O=E.shift(),N=E.shift();j.call(O,N)}else j._settlePromises()}},_.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},_.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},_.prototype._reset=function(){this._isTickUsed=!1},u.exports=_,u.exports.firstLineError=f},{"./queue":26,"./schedule":29,"./util":36}],3:[function(s,u,d){u.exports=function(f,m,p,b){var _=!1,w=function(j,O){this._reject(O)},x=function(j,O){O.promiseRejectionQueued=!0,O.bindingPromise._then(w,w,null,this,j)},C=function(j,O){(50397184&this._bitField)==0&&this._resolveCallback(O.target)},E=function(j,O){O.promiseRejectionQueued||this._reject(j)};f.prototype.bind=function(j){_||(_=!0,f.prototype._propagateFrom=b.propagateFromFunction(),f.prototype._boundValue=b.boundValueFunction());var O=p(j),N=new f(m);N._propagateFrom(this,1);var U=this._target();if(N._setBoundTo(O),O instanceof f){var $={promiseRejectionQueued:!1,promise:N,target:U,bindingPromise:O};U._then(m,x,void 0,N,$),O._then(C,E,void 0,N,$),N._setOnCancel(O)}else N._resolveCallback(U);return N},f.prototype._setBoundTo=function(j){j!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=j):this._bitField=-2097153&this._bitField},f.prototype._isBound=function(){return(2097152&this._bitField)==2097152},f.bind=function(j,O){return f.resolve(O).bind(j)}}},{}],4:[function(s,u,d){var f;typeof Promise<"u"&&(f=Promise);var m=s("./promise")();m.noConflict=function(){try{Promise===m&&(Promise=f)}catch{}return m},u.exports=m},{"./promise":22}],5:[function(s,u,d){var f=Object.create;if(f){var m=f(null),p=f(null);m[" size"]=p[" size"]=0}u.exports=function(b){var _=s("./util"),w=_.canEvaluate;function x(j){return function(O,N){var U;if(O!=null&&(U=O[N]),typeof U!="function"){var $="Object "+_.classString(O)+" has no method '"+_.toString(N)+"'";throw new b.TypeError($)}return U}(j,this.pop()).apply(j,this)}function C(j){return j[this]}function E(j){var O=+this;return O<0&&(O=Math.max(0,O+j.length)),j[O]}_.isIdentifier,b.prototype.call=function(j){var O=[].slice.call(arguments,1);return O.push(j),this._then(x,void 0,void 0,O,void 0)},b.prototype.get=function(j){var O;if(typeof j=="number")O=E;else if(w){var N=(void 0)(j);O=N!==null?N:C}else O=C;return this._then(O,void 0,void 0,j,void 0)}}},{"./util":36}],6:[function(s,u,d){u.exports=function(f,m,p,b){var _=s("./util"),w=_.tryCatch,x=_.errorObj,C=f._async;f.prototype.break=f.prototype.cancel=function(){if(!b.cancellation())return this._warn("cancellation is disabled");for(var E=this,j=E;E._isCancellable();){if(!E._cancelBy(j)){j._isFollowing()?j._followee().cancel():j._cancelBranched();break}var O=E._cancellationParent;if(O==null||!O._isCancellable()){E._isFollowing()?E._followee().cancel():E._cancelBranched();break}E._isFollowing()&&E._followee().cancel(),E._setWillBeCancelled(),j=E,E=O}},f.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},f.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},f.prototype._cancelBy=function(E){return E===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},f.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},f.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),C.invoke(this._cancelPromises,this,void 0))},f.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},f.prototype._unsetOnCancel=function(){this._onCancelField=void 0},f.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},f.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},f.prototype._doInvokeOnCancel=function(E,j){if(_.isArray(E))for(var O=0;O<E.length;++O)this._doInvokeOnCancel(E[O],j);else if(E!==void 0)if(typeof E=="function"){if(!j){var N=w(E).call(this._boundValue());N===x&&(this._attachExtraTrace(N.e),C.throwLater(N.e))}}else E._resultCancelled(this)},f.prototype._invokeOnCancel=function(){var E=this._onCancel();this._unsetOnCancel(),C.invoke(this._doInvokeOnCancel,this,E)},f.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},f.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(s,u,d){u.exports=function(f){var m=s("./util"),p=s("./es5").keys,b=m.tryCatch,_=m.errorObj;return function(w,x,C){return function(E){var j=C._boundValue();e:for(var O=0;O<w.length;++O){var N=w[O];if(N===Error||N!=null&&N.prototype instanceof Error){if(E instanceof N)return b(x).call(j,E)}else if(typeof N=="function"){var U=b(N).call(j,E);if(U===_)return U;if(U)return b(x).call(j,E)}else if(m.isObject(E)){for(var $=p(N),K=0;K<$.length;++K){var X=$[K];if(N[X]!=E[X])continue e}return b(x).call(j,E)}}return f}}}},{"./es5":13,"./util":36}],8:[function(s,u,d){u.exports=function(f){var m=!1,p=[];function b(){this._trace=new b.CapturedTrace(_())}function _(){var w=p.length-1;if(w>=0)return p[w]}return f.prototype._promiseCreated=function(){},f.prototype._pushContext=function(){},f.prototype._popContext=function(){return null},f._peekContext=f.prototype._peekContext=function(){},b.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,p.push(this._trace))},b.prototype._popContext=function(){if(this._trace!==void 0){var w=p.pop(),x=w._promiseCreated;return w._promiseCreated=null,x}return null},b.CapturedTrace=null,b.create=function(){if(m)return new b},b.deactivateLongStackTraces=function(){},b.activateLongStackTraces=function(){var w=f.prototype._pushContext,x=f.prototype._popContext,C=f._peekContext,E=f.prototype._peekContext,j=f.prototype._promiseCreated;b.deactivateLongStackTraces=function(){f.prototype._pushContext=w,f.prototype._popContext=x,f._peekContext=C,f.prototype._peekContext=E,f.prototype._promiseCreated=j,m=!1},m=!0,f.prototype._pushContext=b.prototype._pushContext,f.prototype._popContext=b.prototype._popContext,f._peekContext=f.prototype._peekContext=_,f.prototype._promiseCreated=function(){var O=this._peekContext();O&&O._promiseCreated==null&&(O._promiseCreated=this)}},b}},{}],9:[function(s,u,d){u.exports=function(f,m){var p,b,_,w=f._getDomain,x=f._async,C=s("./errors").Warning,E=s("./util"),j=E.canAttachTrace,O=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,N=/\((?:timers\.js):\d+:\d+\)/,U=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,$=null,K=null,X=!1,oe=E.env("BLUEBIRD_DEBUG")!=0,ee=!(E.env("BLUEBIRD_WARNINGS")==0||!oe&&!E.env("BLUEBIRD_WARNINGS")),J=!(E.env("BLUEBIRD_LONG_STACK_TRACES")==0||!oe&&!E.env("BLUEBIRD_LONG_STACK_TRACES")),ne=E.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(ee||!!E.env("BLUEBIRD_W_FORGOTTEN_RETURN"));f.prototype.suppressUnhandledRejections=function(){var be=this._target();be._bitField=-1048577&be._bitField|524288},f.prototype._ensurePossibleRejectionHandled=function(){if((524288&this._bitField)==0){this._setRejectionIsUnhandled();var be=this;setTimeout(function(){be._notifyUnhandledRejection()},1)}},f.prototype._notifyUnhandledRejectionIsHandled=function(){ce("rejectionHandled",p,void 0,this)},f.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},f.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},f.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var be=this._settledValue();this._setUnhandledRejectionIsNotified(),ce("unhandledRejection",b,be,this)}},f.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},f.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},f.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},f.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},f.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},f.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},f.prototype._warn=function(be,_e,De){return W(be,_e,De||this)},f.onPossiblyUnhandledRejection=function(be){var _e=w();b=typeof be=="function"?_e===null?be:E.domainBind(_e,be):void 0},f.onUnhandledRejectionHandled=function(be){var _e=w();p=typeof be=="function"?_e===null?be:E.domainBind(_e,be):void 0};var he=function(){};f.longStackTraces=function(){if(x.haveItemsQueued()&&!He.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!He.longStackTraces&&de()){var be=f.prototype._captureStackTrace,_e=f.prototype._attachExtraTrace;He.longStackTraces=!0,he=function(){if(x.haveItemsQueued()&&!He.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);f.prototype._captureStackTrace=be,f.prototype._attachExtraTrace=_e,m.deactivateLongStackTraces(),x.enableTrampoline(),He.longStackTraces=!1},f.prototype._captureStackTrace=D,f.prototype._attachExtraTrace=B,m.activateLongStackTraces(),x.disableTrampolineIfNecessary()}},f.hasLongStackTraces=function(){return He.longStackTraces&&de()};var Q=function(){try{if(typeof CustomEvent=="function"){var be=new CustomEvent("CustomEvent");return E.global.dispatchEvent(be),function(_e,De){var Re=new CustomEvent(_e.toLowerCase(),{detail:De,cancelable:!0});return!E.global.dispatchEvent(Re)}}return typeof Event=="function"?(be=new Event("CustomEvent"),E.global.dispatchEvent(be),function(_e,De){var Re=new Event(_e.toLowerCase(),{cancelable:!0});return Re.detail=De,!E.global.dispatchEvent(Re)}):((be=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),E.global.dispatchEvent(be),function(_e,De){var Re=document.createEvent("CustomEvent");return Re.initCustomEvent(_e.toLowerCase(),!1,!0,De),!E.global.dispatchEvent(Re)})}catch{}return function(){return!1}}(),se=E.isNode?function(){return r.emit.apply(r,arguments)}:E.global?function(be){var _e="on"+be.toLowerCase(),De=E.global[_e];return!!De&&(De.apply(E.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function Z(be,_e){return{promise:_e}}var I={promiseCreated:Z,promiseFulfilled:Z,promiseRejected:Z,promiseResolved:Z,promiseCancelled:Z,promiseChained:function(be,_e,De){return{promise:_e,child:De}},warning:function(be,_e){return{warning:_e}},unhandledRejection:function(be,_e,De){return{reason:_e,promise:De}},rejectionHandled:Z},k=function(be){var _e=!1;try{_e=se.apply(null,arguments)}catch(Re){x.throwLater(Re),_e=!0}var De=!1;try{De=Q(be,I[be].apply(null,arguments))}catch(Re){x.throwLater(Re),De=!0}return De||_e};function z(){return!1}function F(be,_e,De){var Re=this;try{be(_e,De,function(Me){if(typeof Me!="function")throw new TypeError("onCancel must be a function, got: "+E.toString(Me));Re._attachCancellationCallback(Me)})}catch(Me){return Me}}function P(be){if(!this._isCancellable())return this;var _e=this._onCancel();_e!==void 0?E.isArray(_e)?_e.push(be):this._setOnCancel([_e,be]):this._setOnCancel(be)}function G(){return this._onCancelField}function Y(be){this._onCancelField=be}function te(){this._cancellationParent=void 0,this._onCancelField=void 0}function ue(be,_e){if((1&_e)!=0){this._cancellationParent=be;var De=be._branchesRemainingToCancel;De===void 0&&(De=0),be._branchesRemainingToCancel=De+1}(2&_e)!=0&&be._isBound()&&this._setBoundTo(be._boundTo)}f.config=function(be){if("longStackTraces"in(be=Object(be))&&(be.longStackTraces?f.longStackTraces():!be.longStackTraces&&f.hasLongStackTraces()&&he()),"warnings"in be){var _e=be.warnings;He.warnings=!!_e,ne=He.warnings,E.isObject(_e)&&"wForgottenReturn"in _e&&(ne=!!_e.wForgottenReturn)}if("cancellation"in be&&be.cancellation&&!He.cancellation){if(x.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");f.prototype._clearCancellationData=te,f.prototype._propagateFrom=ue,f.prototype._onCancel=G,f.prototype._setOnCancel=Y,f.prototype._attachCancellationCallback=P,f.prototype._execute=F,fe=ue,He.cancellation=!0}return"monitoring"in be&&(be.monitoring&&!He.monitoring?(He.monitoring=!0,f.prototype._fireEvent=k):!be.monitoring&&He.monitoring&&(He.monitoring=!1,f.prototype._fireEvent=z)),f},f.prototype._fireEvent=z,f.prototype._execute=function(be,_e,De){try{be(_e,De)}catch(Re){return Re}},f.prototype._onCancel=function(){},f.prototype._setOnCancel=function(be){},f.prototype._attachCancellationCallback=function(be){},f.prototype._captureStackTrace=function(){},f.prototype._attachExtraTrace=function(){},f.prototype._clearCancellationData=function(){},f.prototype._propagateFrom=function(be,_e){};var fe=function(be,_e){(2&_e)!=0&&be._isBound()&&this._setBoundTo(be._boundTo)};function ge(){var be=this._boundTo;return be!==void 0&&be instanceof f?be.isFulfilled()?be.value():void 0:be}function D(){this._trace=new Ve(this._peekContext())}function B(be,_e){if(j(be)){var De=this._trace;if(De!==void 0&&_e&&(De=De._parent),De!==void 0)De.attachExtraTrace(be);else if(!be.__stackCleaned__){var Re=H(be);E.notEnumerableProp(be,"stack",Re.message+`
`+Re.stack.join(`
`)),E.notEnumerableProp(be,"__stackCleaned__",!0)}}}function W(be,_e,De){if(He.warnings){var Re,Me=new C(be);if(_e)De._attachExtraTrace(Me);else if(He.longStackTraces&&(Re=f._peekContext()))Re.attachExtraTrace(Me);else{var $e=H(Me);Me.stack=$e.message+`
`+$e.stack.join(`
`)}k("warning",Me)||ae(Me,"",!0)}}function le(be){for(var _e=[],De=0;De<be.length;++De){var Re=be[De],Me=Re===" (No stack trace)"||$.test(Re),$e=Me&&we(Re);Me&&!$e&&(X&&Re.charAt(0)!==" "&&(Re=" "+Re),_e.push(Re))}return _e}function H(be){var _e=be.stack,De=be.toString();return _e=typeof _e=="string"&&_e.length>0?function(Re){for(var Me=Re.stack.replace(/\s+$/g,"").split(`
`),$e=0;$e<Me.length;++$e){var Ge=Me[$e];if(Ge===" (No stack trace)"||$.test(Ge))break}return $e>0&&Re.name!="SyntaxError"&&(Me=Me.slice($e)),Me}(be):[" (No stack trace)"],{message:De,stack:be.name=="SyntaxError"?_e:le(_e)}}function ae(be,_e,De){if(typeof console<"u"){var Re;if(E.isObject(be)){var Me=be.stack;Re=_e+K(Me,be)}else Re=_e+String(be);typeof _=="function"?_(Re,De):typeof console.log!="function"&&typeof console.log!="object"||console.log(Re)}}function ce(be,_e,De,Re){var Me=!1;try{typeof _e=="function"&&(Me=!0,be==="rejectionHandled"?_e(Re):_e(De,Re))}catch($e){x.throwLater($e)}be==="unhandledRejection"?k(be,De,Re)||Me||ae(De,"Unhandled rejection "):k(be,Re)}function ve(be){var _e;if(typeof be=="function")_e="[function "+(be.name||"anonymous")+"]";else{if(_e=be&&typeof be.toString=="function"?be.toString():E.toString(be),/\[object [a-zA-Z0-9$_]+\]/.test(_e))try{_e=JSON.stringify(be)}catch{}_e.length===0&&(_e="(empty array)")}return"(<"+function(De){return De.length<41?De:De.substr(0,38)+"..."}(_e)+">, no stack trace)"}function de(){return typeof Fe=="function"}var we=function(){return!1},Ae=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function Le(be){var _e=be.match(Ae);if(_e)return{fileName:_e[1],line:parseInt(_e[2],10)}}function Ve(be){this._parent=be,this._promisesCreated=0;var _e=this._length=1+(be===void 0?0:be._length);Fe(this,Ve),_e>32&&this.uncycle()}E.inherits(Ve,Error),m.CapturedTrace=Ve,Ve.prototype.uncycle=function(){var be=this._length;if(!(be<2)){for(var _e=[],De={},Re=0,Me=this;Me!==void 0;++Re)_e.push(Me),Me=Me._parent;for(Re=(be=this._length=Re)-1;Re>=0;--Re){var $e=_e[Re].stack;De[$e]===void 0&&(De[$e]=Re)}for(Re=0;Re<be;++Re){var Ge=De[_e[Re].stack];if(Ge!==void 0&&Ge!==Re){Ge>0&&(_e[Ge-1]._parent=void 0,_e[Ge-1]._length=1),_e[Re]._parent=void 0,_e[Re]._length=1;var Ze=Re>0?_e[Re-1]:this;Ge<be-1?(Ze._parent=_e[Ge+1],Ze._parent.uncycle(),Ze._length=Ze._parent._length+1):(Ze._parent=void 0,Ze._length=1);for(var ut=Ze._length+1,it=Re-2;it>=0;--it)_e[it]._length=ut,ut++;return}}}},Ve.prototype.attachExtraTrace=function(be){if(!be.__stackCleaned__){this.uncycle();for(var _e=H(be),De=_e.message,Re=[_e.stack],Me=this;Me!==void 0;)Re.push(le(Me.stack.split(`
`))),Me=Me._parent;(function($e){for(var Ge=$e[0],Ze=1;Ze<$e.length;++Ze){for(var ut=$e[Ze],it=Ge.length-1,dt=Ge[it],gt=-1,Dt=ut.length-1;Dt>=0;--Dt)if(ut[Dt]===dt){gt=Dt;break}for(Dt=gt;Dt>=0;--Dt){var yt=ut[Dt];if(Ge[it]!==yt)break;Ge.pop(),it--}Ge=ut}})(Re),function($e){for(var Ge=0;Ge<$e.length;++Ge)($e[Ge].length===0||Ge+1<$e.length&&$e[Ge][0]===$e[Ge+1][0])&&($e.splice(Ge,1),Ge--)}(Re),E.notEnumerableProp(be,"stack",function($e,Ge){for(var Ze=0;Ze<Ge.length-1;++Ze)Ge[Ze].push("From previous event:"),Ge[Ze]=Ge[Ze].join(`
`);return Ze<Ge.length&&(Ge[Ze]=Ge[Ze].join(`
`)),$e+`
`+Ge.join(`
`)}(De,Re)),E.notEnumerableProp(be,"__stackCleaned__",!0)}};var Fe=function(){var be=/^\s*at\s*/,_e=function($e,Ge){return typeof $e=="string"?$e:Ge.name!==void 0&&Ge.message!==void 0?Ge.toString():ve(Ge)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,$=be,K=_e;var De=Error.captureStackTrace;return we=function($e){return O.test($e)},function($e,Ge){Error.stackTraceLimit+=6,De($e,Ge),Error.stackTraceLimit-=6}}var Re,Me=new Error;if(typeof Me.stack=="string"&&Me.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return $=/@/,K=_e,X=!0,function($e){$e.stack=new Error().stack};try{throw new Error}catch($e){Re="stack"in $e}return"stack"in Me||!Re||typeof Error.stackTraceLimit!="number"?(K=function($e,Ge){return typeof $e=="string"?$e:typeof Ge!="object"&&typeof Ge!="function"||Ge.name===void 0||Ge.message===void 0?ve(Ge):Ge.toString()},null):($=be,K=_e,function($e){Error.stackTraceLimit+=6;try{throw new Error}catch(Ge){$e.stack=Ge.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(_=function(be){console.warn(be)},E.isNode&&r.stderr.isTTY?_=function(be,_e){var De=_e?"\x1B[33m":"\x1B[31m";console.warn(De+be+`\x1B[0m
`)}:E.isNode||typeof new Error().stack!="string"||(_=function(be,_e){console.warn("%c"+be,_e?"color: darkorange":"color: red")}));var He={warnings:ee,longStackTraces:!1,cancellation:!1,monitoring:!1};return J&&f.longStackTraces(),{longStackTraces:function(){return He.longStackTraces},warnings:function(){return He.warnings},cancellation:function(){return He.cancellation},monitoring:function(){return He.monitoring},propagateFromFunction:function(){return fe},boundValueFunction:function(){return ge},checkForgottenReturns:function(be,_e,De,Re,Me){if(be===void 0&&_e!==null&&ne){if(Me!==void 0&&Me._returnedNonUndefined()||(65535&Re._bitField)==0)return;De&&(De+=" ");var $e="",Ge="";if(_e._trace){for(var Ze=_e._trace.stack.split(`
`),ut=le(Ze),it=ut.length-1;it>=0;--it){var dt=ut[it];if(!N.test(dt)){var gt=dt.match(U);gt&&($e="at "+gt[1]+":"+gt[2]+":"+gt[3]+" ");break}}if(ut.length>0){var Dt=ut[0];for(it=0;it<Ze.length;++it)if(Ze[it]===Dt){it>0&&(Ge=`
`+Ze[it-1]);break}}}var yt="a promise was created in a "+De+"handler "+$e+"but was not returned from it, see http://goo.gl/rRqMUw"+Ge;Re._warn(yt,!0,_e)}},setBounds:function(be,_e){if(de()){for(var De,Re,Me=be.stack.split(`
`),$e=_e.stack.split(`
`),Ge=-1,Ze=-1,ut=0;ut<Me.length;++ut)if(it=Le(Me[ut])){De=it.fileName,Ge=it.line;break}for(ut=0;ut<$e.length;++ut){var it;if(it=Le($e[ut])){Re=it.fileName,Ze=it.line;break}}Ge<0||Ze<0||!De||!Re||De!==Re||Ge>=Ze||(we=function(dt){if(O.test(dt))return!0;var gt=Le(dt);return!!(gt&&gt.fileName===De&&Ge<=gt.line&&gt.line<=Ze)})}},warn:W,deprecated:function(be,_e){var De=be+" is deprecated and will be removed in a future version.";return _e&&(De+=" Use "+_e+" instead."),W(De)},CapturedTrace:Ve,fireDomEvent:Q,fireGlobalEvent:se}}},{"./errors":12,"./util":36}],10:[function(s,u,d){u.exports=function(f){function m(){return this.value}function p(){throw this.reason}f.prototype.return=f.prototype.thenReturn=function(b){return b instanceof f&&b.suppressUnhandledRejections(),this._then(m,void 0,void 0,{value:b},void 0)},f.prototype.throw=f.prototype.thenThrow=function(b){return this._then(p,void 0,void 0,{reason:b},void 0)},f.prototype.catchThrow=function(b){if(arguments.length<=1)return this._then(void 0,p,void 0,{reason:b},void 0);var _=arguments[1];return this.caught(b,function(){throw _})},f.prototype.catchReturn=function(b){if(arguments.length<=1)return b instanceof f&&b.suppressUnhandledRejections(),this._then(void 0,m,void 0,{value:b},void 0);var _=arguments[1];return _ instanceof f&&_.suppressUnhandledRejections(),this.caught(b,function(){return _})}}},{}],11:[function(s,u,d){u.exports=function(f,m){var p=f.reduce,b=f.all;function _(){return b(this)}f.prototype.each=function(w){return p(this,w,m,0)._then(_,void 0,void 0,this,void 0)},f.prototype.mapSeries=function(w){return p(this,w,m,m)},f.each=function(w,x){return p(w,x,m,0)._then(_,void 0,void 0,w,void 0)},f.mapSeries=function(w,x){return p(w,x,m,m)}}},{}],12:[function(s,u,d){var f,m,p=s("./es5"),b=p.freeze,_=s("./util"),w=_.inherits,x=_.notEnumerableProp;function C(ee,J){function ne(he){if(!(this instanceof ne))return new ne(he);x(this,"message",typeof he=="string"?he:J),x(this,"name",ee),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return w(ne,Error),ne}var E=C("Warning","warning"),j=C("CancellationError","cancellation error"),O=C("TimeoutError","timeout error"),N=C("AggregateError","aggregate error");try{f=TypeError,m=RangeError}catch{f=C("TypeError","type error"),m=C("RangeError","range error")}for(var U="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),$=0;$<U.length;++$)typeof Array.prototype[U[$]]=="function"&&(N.prototype[U[$]]=Array.prototype[U[$]]);p.defineProperty(N.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),N.prototype.isOperational=!0;var K=0;function X(ee){if(!(this instanceof X))return new X(ee);x(this,"name","OperationalError"),x(this,"message",ee),this.cause=ee,this.isOperational=!0,ee instanceof Error?(x(this,"message",ee.message),x(this,"stack",ee.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}N.prototype.toString=function(){var ee=Array(4*K+1).join(" "),J=`
`+ee+`AggregateError of:
`;K++,ee=Array(4*K+1).join(" ");for(var ne=0;ne<this.length;++ne){for(var he=this[ne]===this?"[Circular AggregateError]":this[ne]+"",Q=he.split(`
`),se=0;se<Q.length;++se)Q[se]=ee+Q[se];J+=(he=Q.join(`
`))+`
`}return K--,J},w(X,Error);var oe=Error.__BluebirdErrorTypes__;oe||(oe=b({CancellationError:j,TimeoutError:O,OperationalError:X,RejectionError:X,AggregateError:N}),p.defineProperty(Error,"__BluebirdErrorTypes__",{value:oe,writable:!1,enumerable:!1,configurable:!1})),u.exports={Error,TypeError:f,RangeError:m,CancellationError:oe.CancellationError,OperationalError:oe.OperationalError,TimeoutError:oe.TimeoutError,AggregateError:oe.AggregateError,Warning:E}},{"./es5":13,"./util":36}],13:[function(s,u,d){var f=function(){return this===void 0}();if(f)u.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:f,propertyIsWritable:function(w,x){var C=Object.getOwnPropertyDescriptor(w,x);return!(C&&!C.writable&&!C.set)}};else{var m={}.hasOwnProperty,p={}.toString,b={}.constructor.prototype,_=function(w){var x=[];for(var C in w)m.call(w,C)&&x.push(C);return x};u.exports={isArray:function(w){try{return p.call(w)==="[object Array]"}catch{return!1}},keys:_,names:_,defineProperty:function(w,x,C){return w[x]=C.value,w},getDescriptor:function(w,x){return{value:w[x]}},freeze:function(w){return w},getPrototypeOf:function(w){try{return Object(w).constructor.prototype}catch{return b}},isES5:f,propertyIsWritable:function(){return!0}}}},{}],14:[function(s,u,d){u.exports=function(f,m){var p=f.map;f.prototype.filter=function(b,_){return p(this,b,_,m)},f.filter=function(b,_,w){return p(b,_,w,m)}}},{}],15:[function(s,u,d){u.exports=function(f,m,p){var b=s("./util"),_=f.CancellationError,w=b.errorObj,x=s("./catch_filter")(p);function C($,K,X){this.promise=$,this.type=K,this.handler=X,this.called=!1,this.cancelPromise=null}function E($){this.finallyHandler=$}function j($,K){return $.cancelPromise!=null&&(arguments.length>1?$.cancelPromise._reject(K):$.cancelPromise._cancel(),$.cancelPromise=null,!0)}function O(){return U.call(this,this.promise._target()._settledValue())}function N($){if(!j(this,$))return w.e=$,w}function U($){var K=this.promise,X=this.handler;if(!this.called){this.called=!0;var oe=this.isFinallyHandler()?X.call(K._boundValue()):X.call(K._boundValue(),$);if(oe===p)return oe;if(oe!==void 0){K._setReturnedNonUndefined();var ee=m(oe,K);if(ee instanceof f){if(this.cancelPromise!=null){if(ee._isCancelled()){var J=new _("late cancellation observer");return K._attachExtraTrace(J),w.e=J,w}ee.isPending()&&ee._attachCancellationCallback(new E(this))}return ee._then(O,N,void 0,this,void 0)}}}return K.isRejected()?(j(this),w.e=$,w):(j(this),$)}return C.prototype.isFinallyHandler=function(){return this.type===0},E.prototype._resultCancelled=function(){j(this.finallyHandler)},f.prototype._passThrough=function($,K,X,oe){return typeof $!="function"?this.then():this._then(X,oe,void 0,new C(this,K,$),void 0)},f.prototype.lastly=f.prototype.finally=function($){return this._passThrough($,0,U,U)},f.prototype.tap=function($){return this._passThrough($,1,U)},f.prototype.tapCatch=function($){var K=arguments.length;if(K===1)return this._passThrough($,1,void 0,U);var X,oe=new Array(K-1),ee=0;for(X=0;X<K-1;++X){var J=arguments[X];if(!b.isObject(J))return f.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+b.classString(J)));oe[ee++]=J}oe.length=ee;var ne=arguments[X];return this._passThrough(x(oe,ne,this),1,void 0,U)},C}},{"./catch_filter":7,"./util":36}],16:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=s("./errors").TypeError,C=s("./util"),E=C.errorObj,j=C.tryCatch,O=[];function N(U,$,K,X){if(w.cancellation()){var oe=new f(p),ee=this._finallyPromise=new f(p);this._promise=oe.lastly(function(){return ee}),oe._captureStackTrace(),oe._setOnCancel(this)}else(this._promise=new f(p))._captureStackTrace();this._stack=X,this._generatorFunction=U,this._receiver=$,this._generator=void 0,this._yieldHandlers=typeof K=="function"?[K].concat(O):O,this._yieldedPromise=null,this._cancellationPhase=!1}C.inherits(N,_),N.prototype._isResolved=function(){return this._promise===null},N.prototype._cleanup=function(){this._promise=this._generator=null,w.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},N.prototype._promiseCancelled=function(){if(!this._isResolved()){var U;if(this._generator.return!==void 0)this._promise._pushContext(),U=j(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var $=new f.CancellationError("generator .return() sentinel");f.coroutine.returnSentinel=$,this._promise._attachExtraTrace($),this._promise._pushContext(),U=j(this._generator.throw).call(this._generator,$),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(U)}},N.prototype._promiseFulfilled=function(U){this._yieldedPromise=null,this._promise._pushContext();var $=j(this._generator.next).call(this._generator,U);this._promise._popContext(),this._continue($)},N.prototype._promiseRejected=function(U){this._yieldedPromise=null,this._promise._attachExtraTrace(U),this._promise._pushContext();var $=j(this._generator.throw).call(this._generator,U);this._promise._popContext(),this._continue($)},N.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof f){var U=this._yieldedPromise;this._yieldedPromise=null,U.cancel()}},N.prototype.promise=function(){return this._promise},N.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},N.prototype._continue=function(U){var $=this._promise;if(U===E)return this._cleanup(),this._cancellationPhase?$.cancel():$._rejectCallback(U.e,!1);var K=U.value;if(U.done===!0)return this._cleanup(),this._cancellationPhase?$.cancel():$._resolveCallback(K);var X=b(K,this._promise);if(X instanceof f||(X=function(ee,J,ne){for(var he=0;he<J.length;++he){ne._pushContext();var Q=j(J[he])(ee);if(ne._popContext(),Q===E){ne._pushContext();var se=f.reject(E.e);return ne._popContext(),se}var Z=b(Q,ne);if(Z instanceof f)return Z}return null}(X,this._yieldHandlers,this._promise))!==null){var oe=(X=X._target())._bitField;(50397184&oe)==0?(this._yieldedPromise=X,X._proxy(this,null)):(33554432&oe)!=0?f._async.invoke(this._promiseFulfilled,this,X._value()):(16777216&oe)!=0?f._async.invoke(this._promiseRejected,this,X._reason()):this._promiseCancelled()}else this._promiseRejected(new x(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",String(K))+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)))},f.coroutine=function(U,$){if(typeof U!="function")throw new x(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var K=Object($).yieldHandler,X=N,oe=new Error().stack;return function(){var ee=U.apply(this,arguments),J=new X(void 0,void 0,K,oe),ne=J.promise();return J._generator=ee,J._promiseFulfilled(void 0),ne}},f.coroutine.addYieldHandler=function(U){if(typeof U!="function")throw new x("expecting a function but got "+C.classString(U));O.push(U)},f.spawn=function(U){if(w.deprecated("Promise.spawn()","Promise.coroutine()"),typeof U!="function")return m(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var $=new N(U,this),K=$.promise();return $._run(f.spawn),K}}},{"./errors":12,"./util":36}],17:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=s("./util");x.canEvaluate,x.tryCatch,x.errorObj,f.join=function(){var C,E=arguments.length-1;E>0&&typeof arguments[E]=="function"&&(C=arguments[E]);var j=[].slice.call(arguments);C&&j.pop();var O=new m(j).promise();return C!==void 0?O.spread(C):O}}},{"./util":36}],18:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=f._getDomain,C=s("./util"),E=C.tryCatch,j=C.errorObj,O=f._async;function N($,K,X,oe){this.constructor$($),this._promise._captureStackTrace();var ee=x();this._callback=ee===null?K:C.domainBind(ee,K),this._preservedValues=oe===_?new Array(this.length()):null,this._limit=X,this._inFlight=0,this._queue=[],O.invoke(this._asyncInit,this,void 0)}function U($,K,X,oe){if(typeof K!="function")return p("expecting a function but got "+C.classString(K));var ee=0;if(X!==void 0){if(typeof X!="object"||X===null)return f.reject(new TypeError("options argument must be an object but it is "+C.classString(X)));if(typeof X.concurrency!="number")return f.reject(new TypeError("'concurrency' must be a number but it is "+C.classString(X.concurrency)));ee=X.concurrency}return new N($,K,ee=typeof ee=="number"&&isFinite(ee)&&ee>=1?ee:0,oe).promise()}C.inherits(N,m),N.prototype._asyncInit=function(){this._init$(void 0,-2)},N.prototype._init=function(){},N.prototype._promiseFulfilled=function($,K){var X=this._values,oe=this.length(),ee=this._preservedValues,J=this._limit;if(K<0){if(X[K=-1*K-1]=$,J>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(J>=1&&this._inFlight>=J)return X[K]=$,this._queue.push(K),!1;ee!==null&&(ee[K]=$);var ne=this._promise,he=this._callback,Q=ne._boundValue();ne._pushContext();var se=E(he).call(Q,$,K,oe),Z=ne._popContext();if(w.checkForgottenReturns(se,Z,ee!==null?"Promise.filter":"Promise.map",ne),se===j)return this._reject(se.e),!0;var I=b(se,this._promise);if(I instanceof f){var k=(I=I._target())._bitField;if((50397184&k)==0)return J>=1&&this._inFlight++,X[K]=I,I._proxy(this,-1*(K+1)),!1;if((33554432&k)==0)return(16777216&k)!=0?(this._reject(I._reason()),!0):(this._cancel(),!0);se=I._value()}X[K]=se}return++this._totalResolved>=oe&&(ee!==null?this._filter(X,ee):this._resolve(X),!0)},N.prototype._drainQueue=function(){for(var $=this._queue,K=this._limit,X=this._values;$.length>0&&this._inFlight<K;){if(this._isResolved())return;var oe=$.pop();this._promiseFulfilled(X[oe],oe)}},N.prototype._filter=function($,K){for(var X=K.length,oe=new Array(X),ee=0,J=0;J<X;++J)$[J]&&(oe[ee++]=K[J]);oe.length=ee,this._resolve(oe)},N.prototype.preservedValues=function(){return this._preservedValues},f.prototype.map=function($,K){return U(this,$,K,null)},f.map=function($,K,X,oe){return U($,K,X,oe)}}},{"./util":36}],19:[function(s,u,d){u.exports=function(f,m,p,b,_){var w=s("./util"),x=w.tryCatch;f.method=function(C){if(typeof C!="function")throw new f.TypeError("expecting a function but got "+w.classString(C));return function(){var E=new f(m);E._captureStackTrace(),E._pushContext();var j=x(C).apply(this,arguments),O=E._popContext();return _.checkForgottenReturns(j,O,"Promise.method",E),E._resolveFromSyncValue(j),E}},f.attempt=f.try=function(C){if(typeof C!="function")return b("expecting a function but got "+w.classString(C));var E,j=new f(m);if(j._captureStackTrace(),j._pushContext(),arguments.length>1){_.deprecated("calling Promise.try with more than 1 argument");var O=arguments[1],N=arguments[2];E=w.isArray(O)?x(C).apply(N,O):x(C).call(N,O)}else E=x(C)();var U=j._popContext();return _.checkForgottenReturns(E,U,"Promise.try",j),j._resolveFromSyncValue(E),j},f.prototype._resolveFromSyncValue=function(C){C===w.errorObj?this._rejectCallback(C.e,!1):this._resolveCallback(C,!0)}}},{"./util":36}],20:[function(s,u,d){var f=s("./util"),m=f.maybeWrapAsError,p=s("./errors").OperationalError,b=s("./es5"),_=/^(?:name|message|stack|cause)$/;function w(x){var C;if(function(N){return N instanceof Error&&b.getPrototypeOf(N)===Error.prototype}(x)){(C=new p(x)).name=x.name,C.message=x.message,C.stack=x.stack;for(var E=b.keys(x),j=0;j<E.length;++j){var O=E[j];_.test(O)||(C[O]=x[O])}return C}return f.markAsOriginatingFromRejection(x),x}u.exports=function(x,C){return function(E,j){if(x!==null){if(E){var O=w(m(E));x._attachExtraTrace(O),x._reject(O)}else if(C){var N=[].slice.call(arguments,1);x._fulfill(N)}else x._fulfill(j);x=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(s,u,d){u.exports=function(f){var m=s("./util"),p=f._async,b=m.tryCatch,_=m.errorObj;function w(E,j){if(!m.isArray(E))return x.call(this,E,j);var O=b(j).apply(this._boundValue(),[null].concat(E));O===_&&p.throwLater(O.e)}function x(E,j){var O=this._boundValue(),N=E===void 0?b(j).call(O,null):b(j).call(O,null,E);N===_&&p.throwLater(N.e)}function C(E,j){if(!E){var O=new Error(E+"");O.cause=E,E=O}var N=b(j).call(this._boundValue(),E);N===_&&p.throwLater(N.e)}f.prototype.asCallback=f.prototype.nodeify=function(E,j){if(typeof E=="function"){var O=x;j!==void 0&&Object(j).spread&&(O=w),this._then(O,C,void 0,this,E)}return this}}},{"./util":36}],22:[function(s,u,d){u.exports=function(){var f=function(){return new N(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},m=function(){return new z.PromiseInspection(this._target())},p=function(Y){return z.reject(new N(Y))};function b(){}var _,w={},x=s("./util");_=x.isNode?function(){var Y=r.domain;return Y===void 0&&(Y=null),Y}:function(){return null},x.notEnumerableProp(z,"_getDomain",_);var C=s("./es5"),E=s("./async"),j=new E;C.defineProperty(z,"_async",{value:j});var O=s("./errors"),N=z.TypeError=O.TypeError;z.RangeError=O.RangeError;var U=z.CancellationError=O.CancellationError;z.TimeoutError=O.TimeoutError,z.OperationalError=O.OperationalError,z.RejectionError=O.OperationalError,z.AggregateError=O.AggregateError;var $=function(){},K={},X={},oe=s("./thenables")(z,$),ee=s("./promise_array")(z,$,oe,p,b),J=s("./context")(z),ne=J.create,he=s("./debuggability")(z,J),Q=(he.CapturedTrace,s("./finally")(z,oe,X)),se=s("./catch_filter")(X),Z=s("./nodeback"),I=x.errorObj,k=x.tryCatch;function z(Y){Y!==$&&function(te,ue){if(te==null||te.constructor!==z)throw new N(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`);if(typeof ue!="function")throw new N("expecting a function but got "+x.classString(ue))}(this,Y),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(Y),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function F(Y){this.promise._resolveCallback(Y)}function P(Y){this.promise._rejectCallback(Y,!1)}function G(Y){var te=new z($);te._fulfillmentHandler0=Y,te._rejectionHandler0=Y,te._promise0=Y,te._receiver0=Y}return z.prototype.toString=function(){return"[object Promise]"},z.prototype.caught=z.prototype.catch=function(Y){var te=arguments.length;if(te>1){var ue,fe=new Array(te-1),ge=0;for(ue=0;ue<te-1;++ue){var D=arguments[ue];if(!x.isObject(D))return p("Catch statement predicate: expecting an object but got "+x.classString(D));fe[ge++]=D}return fe.length=ge,Y=arguments[ue],this.then(void 0,se(fe,Y,this))}return this.then(void 0,Y)},z.prototype.reflect=function(){return this._then(m,m,void 0,this,void 0)},z.prototype.then=function(Y,te){if(he.warnings()&&arguments.length>0&&typeof Y!="function"&&typeof te!="function"){var ue=".then() only accepts functions but was passed: "+x.classString(Y);arguments.length>1&&(ue+=", "+x.classString(te)),this._warn(ue)}return this._then(Y,te,void 0,void 0,void 0)},z.prototype.done=function(Y,te){this._then(Y,te,void 0,void 0,void 0)._setIsFinal()},z.prototype.spread=function(Y){return typeof Y!="function"?p("expecting a function but got "+x.classString(Y)):this.all()._then(Y,void 0,void 0,K,void 0)},z.prototype.toJSON=function(){var Y={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(Y.fulfillmentValue=this.value(),Y.isFulfilled=!0):this.isRejected()&&(Y.rejectionReason=this.reason(),Y.isRejected=!0),Y},z.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new ee(this).promise()},z.prototype.error=function(Y){return this.caught(x.originatesFromRejection,Y)},z.getNewLibraryCopy=u.exports,z.is=function(Y){return Y instanceof z},z.fromNode=z.fromCallback=function(Y){var te=new z($);te._captureStackTrace();var ue=arguments.length>1&&!!Object(arguments[1]).multiArgs,fe=k(Y)(Z(te,ue));return fe===I&&te._rejectCallback(fe.e,!0),te._isFateSealed()||te._setAsyncGuaranteed(),te},z.all=function(Y){return new ee(Y).promise()},z.cast=function(Y){var te=oe(Y);return te instanceof z||((te=new z($))._captureStackTrace(),te._setFulfilled(),te._rejectionHandler0=Y),te},z.resolve=z.fulfilled=z.cast,z.reject=z.rejected=function(Y){var te=new z($);return te._captureStackTrace(),te._rejectCallback(Y,!0),te},z.setScheduler=function(Y){if(typeof Y!="function")throw new N("expecting a function but got "+x.classString(Y));return j.setScheduler(Y)},z.prototype._then=function(Y,te,ue,fe,ge){var D=ge!==void 0,B=D?ge:new z($),W=this._target(),le=W._bitField;D||(B._propagateFrom(this,3),B._captureStackTrace(),fe===void 0&&(2097152&this._bitField)!=0&&(fe=(50397184&le)!=0?this._boundValue():W===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,B));var H=_();if((50397184&le)!=0){var ae,ce,ve=W._settlePromiseCtx;(33554432&le)!=0?(ce=W._rejectionHandler0,ae=Y):(16777216&le)!=0?(ce=W._fulfillmentHandler0,ae=te,W._unsetRejectionIsUnhandled()):(ve=W._settlePromiseLateCancellationObserver,ce=new U("late cancellation observer"),W._attachExtraTrace(ce),ae=te),j.invoke(ve,W,{handler:H===null?ae:typeof ae=="function"&&x.domainBind(H,ae),promise:B,receiver:fe,value:ce})}else W._addCallbacks(Y,te,B,fe,H);return B},z.prototype._length=function(){return 65535&this._bitField},z.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},z.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},z.prototype._setLength=function(Y){this._bitField=-65536&this._bitField|65535&Y},z.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},z.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},z.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},z.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},z.prototype._isFinal=function(){return(4194304&this._bitField)>0},z.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},z.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},z.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},z.prototype._setAsyncGuaranteed=function(){j.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},z.prototype._receiverAt=function(Y){var te=Y===0?this._receiver0:this[4*Y-4+3];if(te!==w)return te===void 0&&this._isBound()?this._boundValue():te},z.prototype._promiseAt=function(Y){return this[4*Y-4+2]},z.prototype._fulfillmentHandlerAt=function(Y){return this[4*Y-4+0]},z.prototype._rejectionHandlerAt=function(Y){return this[4*Y-4+1]},z.prototype._boundValue=function(){},z.prototype._migrateCallback0=function(Y){Y._bitField;var te=Y._fulfillmentHandler0,ue=Y._rejectionHandler0,fe=Y._promise0,ge=Y._receiverAt(0);ge===void 0&&(ge=w),this._addCallbacks(te,ue,fe,ge,null)},z.prototype._migrateCallbackAt=function(Y,te){var ue=Y._fulfillmentHandlerAt(te),fe=Y._rejectionHandlerAt(te),ge=Y._promiseAt(te),D=Y._receiverAt(te);D===void 0&&(D=w),this._addCallbacks(ue,fe,ge,D,null)},z.prototype._addCallbacks=function(Y,te,ue,fe,ge){var D=this._length();if(D>=65531&&(D=0,this._setLength(0)),D===0)this._promise0=ue,this._receiver0=fe,typeof Y=="function"&&(this._fulfillmentHandler0=ge===null?Y:x.domainBind(ge,Y)),typeof te=="function"&&(this._rejectionHandler0=ge===null?te:x.domainBind(ge,te));else{var B=4*D-4;this[B+2]=ue,this[B+3]=fe,typeof Y=="function"&&(this[B+0]=ge===null?Y:x.domainBind(ge,Y)),typeof te=="function"&&(this[B+1]=ge===null?te:x.domainBind(ge,te))}return this._setLength(D+1),D},z.prototype._proxy=function(Y,te){this._addCallbacks(void 0,void 0,te,Y,null)},z.prototype._resolveCallback=function(Y,te){if((117506048&this._bitField)==0){if(Y===this)return this._rejectCallback(f(),!1);var ue=oe(Y,this);if(!(ue instanceof z))return this._fulfill(Y);te&&this._propagateFrom(ue,2);var fe=ue._target();if(fe!==this){var ge=fe._bitField;if((50397184&ge)==0){var D=this._length();D>0&&fe._migrateCallback0(this);for(var B=1;B<D;++B)fe._migrateCallbackAt(this,B);this._setFollowing(),this._setLength(0),this._setFollowee(fe)}else if((33554432&ge)!=0)this._fulfill(fe._value());else if((16777216&ge)!=0)this._reject(fe._reason());else{var W=new U("late cancellation observer");fe._attachExtraTrace(W),this._reject(W)}}else this._reject(f())}},z.prototype._rejectCallback=function(Y,te,ue){var fe=x.ensureErrorObject(Y),ge=fe===Y;if(!ge&&!ue&&he.warnings()){var D="a promise was rejected with a non-error: "+x.classString(Y);this._warn(D,!0)}this._attachExtraTrace(fe,!!te&&ge),this._reject(Y)},z.prototype._resolveFromExecutor=function(Y){if(Y!==$){var te=this;this._captureStackTrace(),this._pushContext();var ue=!0,fe=this._execute(Y,function(ge){te._resolveCallback(ge)},function(ge){te._rejectCallback(ge,ue)});ue=!1,this._popContext(),fe!==void 0&&te._rejectCallback(fe,!0)}},z.prototype._settlePromiseFromHandler=function(Y,te,ue,fe){var ge=fe._bitField;if((65536&ge)==0){var D;fe._pushContext(),te===K?ue&&typeof ue.length=="number"?D=k(Y).apply(this._boundValue(),ue):(D=I).e=new N("cannot .spread() a non-array: "+x.classString(ue)):D=k(Y).call(te,ue);var B=fe._popContext();(65536&(ge=fe._bitField))==0&&(D===X?fe._reject(ue):D===I?fe._rejectCallback(D.e,!1):(he.checkForgottenReturns(D,B,"",fe,this),fe._resolveCallback(D)))}},z.prototype._target=function(){for(var Y=this;Y._isFollowing();)Y=Y._followee();return Y},z.prototype._followee=function(){return this._rejectionHandler0},z.prototype._setFollowee=function(Y){this._rejectionHandler0=Y},z.prototype._settlePromise=function(Y,te,ue,fe){var ge=Y instanceof z,D=this._bitField,B=(134217728&D)!=0;(65536&D)!=0?(ge&&Y._invokeInternalOnCancel(),ue instanceof Q&&ue.isFinallyHandler()?(ue.cancelPromise=Y,k(te).call(ue,fe)===I&&Y._reject(I.e)):te===m?Y._fulfill(m.call(ue)):ue instanceof b?ue._promiseCancelled(Y):ge||Y instanceof ee?Y._cancel():ue.cancel()):typeof te=="function"?ge?(B&&Y._setAsyncGuaranteed(),this._settlePromiseFromHandler(te,ue,fe,Y)):te.call(ue,fe,Y):ue instanceof b?ue._isResolved()||((33554432&D)!=0?ue._promiseFulfilled(fe,Y):ue._promiseRejected(fe,Y)):ge&&(B&&Y._setAsyncGuaranteed(),(33554432&D)!=0?Y._fulfill(fe):Y._reject(fe))},z.prototype._settlePromiseLateCancellationObserver=function(Y){var te=Y.handler,ue=Y.promise,fe=Y.receiver,ge=Y.value;typeof te=="function"?ue instanceof z?this._settlePromiseFromHandler(te,fe,ge,ue):te.call(fe,ge,ue):ue instanceof z&&ue._reject(ge)},z.prototype._settlePromiseCtx=function(Y){this._settlePromise(Y.promise,Y.handler,Y.receiver,Y.value)},z.prototype._settlePromise0=function(Y,te,ue){var fe=this._promise0,ge=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(fe,Y,ge,te)},z.prototype._clearCallbackDataAtIndex=function(Y){var te=4*Y-4;this[te+2]=this[te+3]=this[te+0]=this[te+1]=void 0},z.prototype._fulfill=function(Y){var te=this._bitField;if(!((117506048&te)>>>16)){if(Y===this){var ue=f();return this._attachExtraTrace(ue),this._reject(ue)}this._setFulfilled(),this._rejectionHandler0=Y,(65535&te)>0&&((134217728&te)!=0?this._settlePromises():j.settlePromises(this))}},z.prototype._reject=function(Y){var te=this._bitField;if(!((117506048&te)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=Y,this._isFinal())return j.fatalError(Y,x.isNode);(65535&te)>0?j.settlePromises(this):this._ensurePossibleRejectionHandled()}},z.prototype._fulfillPromises=function(Y,te){for(var ue=1;ue<Y;ue++){var fe=this._fulfillmentHandlerAt(ue),ge=this._promiseAt(ue),D=this._receiverAt(ue);this._clearCallbackDataAtIndex(ue),this._settlePromise(ge,fe,D,te)}},z.prototype._rejectPromises=function(Y,te){for(var ue=1;ue<Y;ue++){var fe=this._rejectionHandlerAt(ue),ge=this._promiseAt(ue),D=this._receiverAt(ue);this._clearCallbackDataAtIndex(ue),this._settlePromise(ge,fe,D,te)}},z.prototype._settlePromises=function(){var Y=this._bitField,te=65535&Y;if(te>0){if((16842752&Y)!=0){var ue=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,ue,Y),this._rejectPromises(te,ue)}else{var fe=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,fe,Y),this._fulfillPromises(te,fe)}this._setLength(0)}this._clearCancellationData()},z.prototype._settledValue=function(){var Y=this._bitField;return(33554432&Y)!=0?this._rejectionHandler0:(16777216&Y)!=0?this._fulfillmentHandler0:void 0},z.defer=z.pending=function(){return he.deprecated("Promise.defer","new Promise"),{promise:new z($),resolve:F,reject:P}},x.notEnumerableProp(z,"_makeSelfResolutionError",f),s("./method")(z,$,oe,p,he),s("./bind")(z,$,oe,he),s("./cancel")(z,ee,p,he),s("./direct_resolve")(z),s("./synchronous_inspection")(z),s("./join")(z,ee,oe,$,j,_),z.Promise=z,z.version="3.5.1",s("./map.js")(z,ee,p,oe,$,he),s("./call_get.js")(z),s("./using.js")(z,p,oe,ne,$,he),s("./timers.js")(z,$,he),s("./generators.js")(z,p,$,oe,b,he),s("./nodeify.js")(z),s("./promisify.js")(z,$),s("./props.js")(z,ee,oe,p),s("./race.js")(z,$,oe,p),s("./reduce.js")(z,ee,p,oe,$,he),s("./settle.js")(z,ee,he),s("./some.js")(z,ee,p),s("./filter.js")(z,$),s("./each.js")(z,$),s("./any.js")(z),x.toFastProperties(z),x.toFastProperties(z.prototype),G({a:1}),G({b:2}),G({c:3}),G(1),G(function(){}),G(void 0),G(!1),G(new z($)),he.setBounds(E.firstLineError,x.lastLineError),z}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(s,u,d){u.exports=function(f,m,p,b,_){var w=s("./util");function x(C){var E=this._promise=new f(m);C instanceof f&&E._propagateFrom(C,3),E._setOnCancel(this),this._values=C,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return w.isArray,w.inherits(x,_),x.prototype.length=function(){return this._length},x.prototype.promise=function(){return this._promise},x.prototype._init=function C(E,j){var O=p(this._values,this._promise);if(O instanceof f){var N=(O=O._target())._bitField;if(this._values=O,(50397184&N)==0)return this._promise._setAsyncGuaranteed(),O._then(C,this._reject,void 0,this,j);if((33554432&N)==0)return(16777216&N)!=0?this._reject(O._reason()):this._cancel();O=O._value()}if((O=w.asArray(O))!==null)O.length!==0?this._iterate(O):j===-5?this._resolveEmptyArray():this._resolve(function($){switch(j){case-2:return[];case-3:return{};case-6:return new Map}}());else{var U=b("expecting an array or an iterable object but got "+w.classString(O)).reason();this._promise._rejectCallback(U,!1)}},x.prototype._iterate=function(C){var E=this.getActualLength(C.length);this._length=E,this._values=this.shouldCopyValues()?new Array(E):this._values;for(var j=this._promise,O=!1,N=null,U=0;U<E;++U){var $=p(C[U],j);N=$ instanceof f?($=$._target())._bitField:null,O?N!==null&&$.suppressUnhandledRejections():N!==null?(50397184&N)==0?($._proxy(this,U),this._values[U]=$):O=(33554432&N)!=0?this._promiseFulfilled($._value(),U):(16777216&N)!=0?this._promiseRejected($._reason(),U):this._promiseCancelled(U):O=this._promiseFulfilled($,U)}O||j._setAsyncGuaranteed()},x.prototype._isResolved=function(){return this._values===null},x.prototype._resolve=function(C){this._values=null,this._promise._fulfill(C)},x.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},x.prototype._reject=function(C){this._values=null,this._promise._rejectCallback(C,!1)},x.prototype._promiseFulfilled=function(C,E){return this._values[E]=C,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},x.prototype._promiseCancelled=function(){return this._cancel(),!0},x.prototype._promiseRejected=function(C){return this._totalResolved++,this._reject(C),!0},x.prototype._resultCancelled=function(){if(!this._isResolved()){var C=this._values;if(this._cancel(),C instanceof f)C.cancel();else for(var E=0;E<C.length;++E)C[E]instanceof f&&C[E].cancel()}},x.prototype.shouldCopyValues=function(){return!0},x.prototype.getActualLength=function(C){return C},x}},{"./util":36}],24:[function(s,u,d){u.exports=function(f,m){var p={},b=s("./util"),_=s("./nodeback"),w=b.withAppended,x=b.maybeWrapAsError,C=b.canEvaluate,E=s("./errors").TypeError,j={__isPromisified__:!0},O=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),N=function(ne){return b.isIdentifier(ne)&&ne.charAt(0)!=="_"&&ne!=="constructor"};function U(ne){return!O.test(ne)}function $(ne){try{return ne.__isPromisified__===!0}catch{return!1}}function K(ne,he,Q){var se=b.getDataPropertyOrDefault(ne,he+Q,j);return!!se&&$(se)}function X(ne,he,Q,se){for(var Z=b.inheritedDataKeys(ne),I=[],k=0;k<Z.length;++k){var z=Z[k],F=ne[z],P=se===N||N(z);typeof F!="function"||$(F)||K(ne,z,he)||!se(z,F,ne,P)||I.push(z,F)}return function(G,Y,te){for(var ue=0;ue<G.length;ue+=2){var fe=G[ue];if(te.test(fe)){for(var ge=fe.replace(te,""),D=0;D<G.length;D+=2)if(G[D]===ge)throw new E(`Cannot promisify an API that has normal methods with '%s'-suffix
See http://goo.gl/MqrFmX
`.replace("%s",Y))}}}(I,he,Q),I}var oe=function(ne){return ne.replace(/([$])/,"\\$")},ee=C?void 0:function(ne,he,Q,se,Z,I){var k=function(){return this}(),z=ne;function F(){var P=he;he===p&&(P=this);var G=new f(m);G._captureStackTrace();var Y=typeof z=="string"&&this!==k?this[z]:ne,te=_(G,I);try{Y.apply(P,w(arguments,te))}catch(ue){G._rejectCallback(x(ue),!0,!0)}return G._isFateSealed()||G._setAsyncGuaranteed(),G}return typeof z=="string"&&(ne=se),b.notEnumerableProp(F,"__isPromisified__",!0),F};function J(ne,he,Q,se,Z){for(var I=new RegExp(oe(he)+"$"),k=X(ne,he,I,Q),z=0,F=k.length;z<F;z+=2){var P=k[z],G=k[z+1],Y=P+he;if(se===ee)ne[Y]=ee(P,p,P,G,he,Z);else{var te=se(G,function(){return ee(P,p,P,G,he,Z)});b.notEnumerableProp(te,"__isPromisified__",!0),ne[Y]=te}}return b.toFastProperties(ne),ne}f.promisify=function(ne,he){if(typeof ne!="function")throw new E("expecting a function but got "+b.classString(ne));if($(ne))return ne;var Q=(he=Object(he)).context===void 0?p:he.context,se=!!he.multiArgs,Z=function(I,k,z){return ee(I,k,void 0,I,null,se)}(ne,Q);return b.copyDescriptors(ne,Z,U),Z},f.promisifyAll=function(ne,he){if(typeof ne!="function"&&typeof ne!="object")throw new E(`the target of promisifyAll must be an object or a function
See http://goo.gl/MqrFmX
`);var Q=!!(he=Object(he)).multiArgs,se=he.suffix;typeof se!="string"&&(se="Async");var Z=he.filter;typeof Z!="function"&&(Z=N);var I=he.promisifier;if(typeof I!="function"&&(I=ee),!b.isIdentifier(se))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);for(var k=b.inheritedDataKeys(ne),z=0;z<k.length;++z){var F=ne[k[z]];k[z]!=="constructor"&&b.isClass(F)&&(J(F.prototype,se,Z,I,Q),J(F,se,Z,I,Q))}return J(ne,se,Z,I,Q)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(s,u,d){u.exports=function(f,m,p,b){var _,w=s("./util"),x=w.isObject,C=s("./es5");typeof Map=="function"&&(_=Map);var E=function(){var N=0,U=0;function $(K,X){this[N]=K,this[N+U]=X,N++}return function(K){U=K.size,N=0;var X=new Array(2*K.size);return K.forEach($,X),X}}();function j(N){var U,$=!1;if(_!==void 0&&N instanceof _)U=E(N),$=!0;else{var K=C.keys(N),X=K.length;U=new Array(2*X);for(var oe=0;oe<X;++oe){var ee=K[oe];U[oe]=N[ee],U[oe+X]=ee}}this.constructor$(U),this._isMap=$,this._init$(void 0,$?-6:-3)}function O(N){var U,$=p(N);return x($)?(U=$ instanceof f?$._then(f.props,void 0,void 0,void 0,void 0):new j($).promise(),$ instanceof f&&U._propagateFrom($,2),U):b(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`)}w.inherits(j,m),j.prototype._init=function(){},j.prototype._promiseFulfilled=function(N,U){if(this._values[U]=N,++this._totalResolved>=this._length){var $;if(this._isMap)$=function(ee){for(var J=new _,ne=ee.length/2|0,he=0;he<ne;++he){var Q=ee[ne+he],se=ee[he];J.set(Q,se)}return J}(this._values);else{$={};for(var K=this.length(),X=0,oe=this.length();X<oe;++X)$[this._values[X+K]]=this._values[X]}return this._resolve($),!0}return!1},j.prototype.shouldCopyValues=function(){return!1},j.prototype.getActualLength=function(N){return N>>1},f.prototype.props=function(){return O(this)},f.props=function(N){return O(N)}}},{"./es5":13,"./util":36}],26:[function(s,u,d){function f(m){this._capacity=m,this._length=0,this._front=0}f.prototype._willBeOverCapacity=function(m){return this._capacity<m},f.prototype._pushOne=function(m){var p=this.length();this._checkCapacity(p+1),this[this._front+p&this._capacity-1]=m,this._length=p+1},f.prototype.push=function(m,p,b){var _=this.length()+3;if(this._willBeOverCapacity(_))return this._pushOne(m),this._pushOne(p),void this._pushOne(b);var w=this._front+_-3;this._checkCapacity(_);var x=this._capacity-1;this[w+0&x]=m,this[w+1&x]=p,this[w+2&x]=b,this._length=_},f.prototype.shift=function(){var m=this._front,p=this[m];return this[m]=void 0,this._front=m+1&this._capacity-1,this._length--,p},f.prototype.length=function(){return this._length},f.prototype._checkCapacity=function(m){this._capacity<m&&this._resizeTo(this._capacity<<1)},f.prototype._resizeTo=function(m){var p=this._capacity;this._capacity=m,function(b,_,w,x,C){for(var E=0;E<C;++E)w[E+x]=b[E+0],b[E+0]=void 0}(this,0,this,p,this._front+this._length&p-1)},u.exports=f},{}],27:[function(s,u,d){u.exports=function(f,m,p,b){var _=s("./util"),w=function(C){return C.then(function(E){return x(E,C)})};function x(C,E){var j=p(C);if(j instanceof f)return w(j);if((C=_.asArray(C))===null)return b("expecting an array or an iterable object but got "+_.classString(C));var O=new f(m);E!==void 0&&O._propagateFrom(E,3);for(var N=O._fulfill,U=O._reject,$=0,K=C.length;$<K;++$){var X=C[$];(X!==void 0||$ in C)&&f.cast(X)._then(N,U,void 0,O,null)}return O}f.race=function(C){return x(C,void 0)},f.prototype.race=function(){return x(this,void 0)}}},{"./util":36}],28:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=f._getDomain,C=s("./util"),E=C.tryCatch;function j(K,X,oe,ee){this.constructor$(K);var J=x();this._fn=J===null?X:C.domainBind(J,X),oe!==void 0&&(oe=f.resolve(oe))._attachCancellationCallback(this),this._initialValue=oe,this._currentCancellable=null,this._eachValues=ee===_?Array(this._length):ee===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function O(K,X){this.isFulfilled()?X._resolve(K):X._reject(K)}function N(K,X,oe,ee){return typeof X!="function"?p("expecting a function but got "+C.classString(X)):new j(K,X,oe,ee).promise()}function U(K){this.accum=K,this.array._gotAccum(K);var X=b(this.value,this.array._promise);return X instanceof f?(this.array._currentCancellable=X,X._then($,void 0,void 0,this,void 0)):$.call(this,X)}function $(K){var X,oe=this.array,ee=oe._promise,J=E(oe._fn);ee._pushContext(),(X=oe._eachValues!==void 0?J.call(ee._boundValue(),K,this.index,this.length):J.call(ee._boundValue(),this.accum,K,this.index,this.length))instanceof f&&(oe._currentCancellable=X);var ne=ee._popContext();return w.checkForgottenReturns(X,ne,oe._eachValues!==void 0?"Promise.each":"Promise.reduce",ee),X}C.inherits(j,m),j.prototype._gotAccum=function(K){this._eachValues!==void 0&&this._eachValues!==null&&K!==_&&this._eachValues.push(K)},j.prototype._eachComplete=function(K){return this._eachValues!==null&&this._eachValues.push(K),this._eachValues},j.prototype._init=function(){},j.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},j.prototype.shouldCopyValues=function(){return!1},j.prototype._resolve=function(K){this._promise._resolveCallback(K),this._values=null},j.prototype._resultCancelled=function(K){if(K===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof f&&this._currentCancellable.cancel(),this._initialValue instanceof f&&this._initialValue.cancel())},j.prototype._iterate=function(K){var X,oe;this._values=K;var ee=K.length;if(this._initialValue!==void 0?(X=this._initialValue,oe=0):(X=f.resolve(K[0]),oe=1),this._currentCancellable=X,!X.isRejected())for(;oe<ee;++oe){var J={accum:null,value:K[oe],index:oe,length:ee,array:this};X=X._then(U,void 0,void 0,J,void 0)}this._eachValues!==void 0&&(X=X._then(this._eachComplete,void 0,void 0,this,void 0)),X._then(O,O,void 0,X,this)},f.prototype.reduce=function(K,X){return N(this,K,X,null)},f.reduce=function(K,X,oe,ee){return N(K,X,oe,ee)}}},{"./util":36}],29:[function(s,u,d){var f,m=s("./util"),p=m.getNativePromise();if(m.isNode&&typeof MutationObserver>"u"){var b=i.setImmediate,_=r.nextTick;f=m.isRecentNode?function(x){b.call(i,x)}:function(x){_.call(r,x)}}else if(typeof p=="function"&&typeof p.resolve=="function"){var w=p.resolve();f=function(x){w.then(x)}}else f=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?o!==void 0?function(x){o(x)}:typeof setTimeout<"u"?function(x){setTimeout(x,0)}:function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}:function(){var x=document.createElement("div"),C={attributes:!0},E=!1,j=document.createElement("div");return new MutationObserver(function(){x.classList.toggle("foo"),E=!1}).observe(j,C),function(O){var N=new MutationObserver(function(){N.disconnect(),O()});N.observe(x,C),E||(E=!0,j.classList.toggle("foo"))}}();u.exports=f},{"./util":36}],30:[function(s,u,d){u.exports=function(f,m,p){var b=f.PromiseInspection;function _(w){this.constructor$(w)}s("./util").inherits(_,m),_.prototype._promiseResolved=function(w,x){return this._values[w]=x,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseFulfilled=function(w,x){var C=new b;return C._bitField=33554432,C._settledValueField=w,this._promiseResolved(x,C)},_.prototype._promiseRejected=function(w,x){var C=new b;return C._bitField=16777216,C._settledValueField=w,this._promiseResolved(x,C)},f.settle=function(w){return p.deprecated(".settle()",".reflect()"),new _(w).promise()},f.prototype.settle=function(){return f.settle(this)}}},{"./util":36}],31:[function(s,u,d){u.exports=function(f,m,p){var b=s("./util"),_=s("./errors").RangeError,w=s("./errors").AggregateError,x=b.isArray,C={};function E(O){this.constructor$(O),this._howMany=0,this._unwrap=!1,this._initialized=!1}function j(O,N){if((0|N)!==N||N<0)return p(`expecting a positive integer
See http://goo.gl/MqrFmX
`);var U=new E(O),$=U.promise();return U.setHowMany(N),U.init(),$}b.inherits(E,m),E.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var O=x(this._values);!this._isResolved()&&O&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},E.prototype.init=function(){this._initialized=!0,this._init()},E.prototype.setUnwrap=function(){this._unwrap=!0},E.prototype.howMany=function(){return this._howMany},E.prototype.setHowMany=function(O){this._howMany=O},E.prototype._promiseFulfilled=function(O){return this._addFulfilled(O),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},E.prototype._promiseRejected=function(O){return this._addRejected(O),this._checkOutcome()},E.prototype._promiseCancelled=function(){return this._values instanceof f||this._values==null?this._cancel():(this._addRejected(C),this._checkOutcome())},E.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var O=new w,N=this.length();N<this._values.length;++N)this._values[N]!==C&&O.push(this._values[N]);return O.length>0?this._reject(O):this._cancel(),!0}return!1},E.prototype._fulfilled=function(){return this._totalResolved},E.prototype._rejected=function(){return this._values.length-this.length()},E.prototype._addRejected=function(O){this._values.push(O)},E.prototype._addFulfilled=function(O){this._values[this._totalResolved++]=O},E.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},E.prototype._getRangeError=function(O){var N="Input array must contain at least "+this._howMany+" items but contains only "+O+" items";return new _(N)},E.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},f.some=function(O,N){return j(O,N)},f.prototype.some=function(O){return j(this,O)},f._SomePromiseArray=E}},{"./errors":12,"./util":36}],32:[function(s,u,d){u.exports=function(f){function m(E){E!==void 0?(E=E._target(),this._bitField=E._bitField,this._settledValueField=E._isFateSealed()?E._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}m.prototype._settledValue=function(){return this._settledValueField};var p=m.prototype.value=function(){if(!this.isFulfilled())throw new TypeError(`cannot get fulfillment value of a non-fulfilled promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},b=m.prototype.error=m.prototype.reason=function(){if(!this.isRejected())throw new TypeError(`cannot get rejection reason of a non-rejected promise
See http://goo.gl/MqrFmX
`);return this._settledValue()},_=m.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},w=m.prototype.isRejected=function(){return(16777216&this._bitField)!=0},x=m.prototype.isPending=function(){return(50397184&this._bitField)==0},C=m.prototype.isResolved=function(){return(50331648&this._bitField)!=0};m.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},f.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},f.prototype._isCancelled=function(){return this._target().__isCancelled()},f.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},f.prototype.isPending=function(){return x.call(this._target())},f.prototype.isRejected=function(){return w.call(this._target())},f.prototype.isFulfilled=function(){return _.call(this._target())},f.prototype.isResolved=function(){return C.call(this._target())},f.prototype.value=function(){return p.call(this._target())},f.prototype.reason=function(){var E=this._target();return E._unsetRejectionIsUnhandled(),b.call(E)},f.prototype._value=function(){return this._settledValue()},f.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},f.PromiseInspection=m}},{}],33:[function(s,u,d){u.exports=function(f,m){var p=s("./util"),b=p.errorObj,_=p.isObject,w={}.hasOwnProperty;return function(x,C){if(_(x)){if(x instanceof f)return x;var E=function(O){try{return function(N){return N.then}(O)}catch(N){return b.e=N,b}}(x);if(E===b){C&&C._pushContext();var j=f.reject(E.e);return C&&C._popContext(),j}if(typeof E=="function")return function(O){try{return w.call(O,"_promise0")}catch{return!1}}(x)?(j=new f(m),x._then(j._fulfill,j._reject,void 0,j,null),j):function(O,N,U){var $=new f(m),K=$;U&&U._pushContext(),$._captureStackTrace(),U&&U._popContext();var X=!0,oe=p.tryCatch(N).call(O,function(ee){$&&($._resolveCallback(ee),$=null)},function(ee){$&&($._rejectCallback(ee,X,!0),$=null)});return X=!1,$&&oe===b&&($._rejectCallback(oe.e,!0,!0),$=null),K}(x,E,C)}return x}}},{"./util":36}],34:[function(s,u,d){u.exports=function(f,m,p){var b=s("./util"),_=f.TimeoutError;function w(O){this.handle=O}w.prototype._resultCancelled=function(){clearTimeout(this.handle)};var x=function(O){return C(+this).thenReturn(O)},C=f.delay=function(O,N){var U,$;return N!==void 0?(U=f.resolve(N)._then(x,null,null,O,void 0),p.cancellation()&&N instanceof f&&U._setOnCancel(N)):(U=new f(m),$=setTimeout(function(){U._fulfill()},+O),p.cancellation()&&U._setOnCancel(new w($)),U._captureStackTrace()),U._setAsyncGuaranteed(),U};function E(O){return clearTimeout(this.handle),O}function j(O){throw clearTimeout(this.handle),O}f.prototype.delay=function(O){return C(O,this)},f.prototype.timeout=function(O,N){var U,$;O=+O;var K=new w(setTimeout(function(){U.isPending()&&function(X,oe,ee){var J;J=typeof oe!="string"?oe instanceof Error?oe:new _("operation timed out"):new _(oe),b.markAsOriginatingFromRejection(J),X._attachExtraTrace(J),X._reject(J),ee?.cancel()}(U,N,$)},O));return p.cancellation()?($=this.then(),(U=$._then(E,j,void 0,K,void 0))._setOnCancel(K)):U=this._then(E,j,void 0,K,void 0),U}}},{"./util":36}],35:[function(s,u,d){u.exports=function(f,m,p,b,_,w){var x=s("./util"),C=s("./errors").TypeError,E=s("./util").inherits,j=x.errorObj,O=x.tryCatch,N={};function U(J){setTimeout(function(){throw J},0)}function $(J,ne){var he=0,Q=J.length,se=new f(_);return function Z(){if(he>=Q)return se._fulfill();var I=function(k){var z=p(k);return z!==k&&typeof k._isDisposable=="function"&&typeof k._getDisposer=="function"&&k._isDisposable()&&z._setDisposable(k._getDisposer()),z}(J[he++]);if(I instanceof f&&I._isDisposable()){try{I=p(I._getDisposer().tryDispose(ne),J.promise)}catch(k){return U(k)}if(I instanceof f)return I._then(Z,U,null,null,null)}Z()}(),se}function K(J,ne,he){this._data=J,this._promise=ne,this._context=he}function X(J,ne,he){this.constructor$(J,ne,he)}function oe(J){return K.isDisposer(J)?(this.resources[this.index]._setDisposable(J),J.promise()):J}function ee(J){this.length=J,this.promise=null,this[J-1]=null}K.prototype.data=function(){return this._data},K.prototype.promise=function(){return this._promise},K.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():N},K.prototype.tryDispose=function(J){var ne=this.resource(),he=this._context;he!==void 0&&he._pushContext();var Q=ne!==N?this.doDispose(ne,J):null;return he!==void 0&&he._popContext(),this._promise._unsetDisposable(),this._data=null,Q},K.isDisposer=function(J){return J!=null&&typeof J.resource=="function"&&typeof J.tryDispose=="function"},E(X,K),X.prototype.doDispose=function(J,ne){return this.data().call(J,J,ne)},ee.prototype._resultCancelled=function(){for(var J=this.length,ne=0;ne<J;++ne){var he=this[ne];he instanceof f&&he.cancel()}},f.using=function(){var J=arguments.length;if(J<2)return m("you must pass at least 2 arguments to Promise.using");var ne,he=arguments[J-1];if(typeof he!="function")return m("expecting a function but got "+x.classString(he));var Q=!0;J===2&&Array.isArray(arguments[0])?(J=(ne=arguments[0]).length,Q=!1):(ne=arguments,J--);for(var se=new ee(J),Z=0;Z<J;++Z){var I=ne[Z];if(K.isDisposer(I)){var k=I;(I=I.promise())._setDisposable(k)}else{var z=p(I);z instanceof f&&(I=z._then(oe,null,null,{resources:se,index:Z},void 0))}se[Z]=I}var F=new Array(se.length);for(Z=0;Z<F.length;++Z)F[Z]=f.resolve(se[Z]).reflect();var P=f.all(F).then(function(Y){for(var te=0;te<Y.length;++te){var ue=Y[te];if(ue.isRejected())return j.e=ue.error(),j;if(!ue.isFulfilled())return void P.cancel();Y[te]=ue.value()}G._pushContext(),he=O(he);var fe=Q?he.apply(void 0,Y):he(Y),ge=G._popContext();return w.checkForgottenReturns(fe,ge,"Promise.using",G),fe}),G=P.lastly(function(){var Y=new f.PromiseInspection(P);return $(se,Y)});return se.promise=G,G._setOnCancel(se),G},f.prototype._setDisposable=function(J){this._bitField=131072|this._bitField,this._disposer=J},f.prototype._isDisposable=function(){return(131072&this._bitField)>0},f.prototype._getDisposer=function(){return this._disposer},f.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},f.prototype.disposer=function(J){if(typeof J=="function")return new X(J,this,b());throw new C}}},{"./errors":12,"./util":36}],36:[function(s,u,d){var f,m=s("./es5"),p=typeof navigator>"u",b={e:{}},_=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function w(){try{var Q=f;return f=null,Q.apply(this,arguments)}catch(se){return b.e=se,b}}function x(Q){return Q==null||Q===!0||Q===!1||typeof Q=="string"||typeof Q=="number"}function C(Q,se,Z){if(x(Q))return Q;var I={value:Z,configurable:!0,enumerable:!1,writable:!0};return m.defineProperty(Q,se,I),Q}var E=function(){var Q=[Array.prototype,Object.prototype,Function.prototype],se=function(k){for(var z=0;z<Q.length;++z)if(Q[z]===k)return!0;return!1};if(m.isES5){var Z=Object.getOwnPropertyNames;return function(k){for(var z=[],F=Object.create(null);k!=null&&!se(k);){var P;try{P=Z(k)}catch{return z}for(var G=0;G<P.length;++G){var Y=P[G];if(!F[Y]){F[Y]=!0;var te=Object.getOwnPropertyDescriptor(k,Y);te!=null&&te.get==null&&te.set==null&&z.push(Y)}}k=m.getPrototypeOf(k)}return z}}var I={}.hasOwnProperty;return function(k){if(se(k))return[];var z=[];e:for(var F in k)if(I.call(k,F))z.push(F);else{for(var P=0;P<Q.length;++P)if(I.call(Q[P],F))continue e;z.push(F)}return z}}(),j=/this\s*\.\s*\S+\s*=/,O=/^[a-z$_][a-z$_0-9]*$/i;function N(Q){try{return Q+""}catch{return"[no string representation]"}}function U(Q){return Q instanceof Error||Q!==null&&typeof Q=="object"&&typeof Q.message=="string"&&typeof Q.name=="string"}function $(Q){return U(Q)&&m.propertyIsWritable(Q,"stack")}var K="stack"in new Error?function(Q){return $(Q)?Q:new Error(N(Q))}:function(Q){if($(Q))return Q;try{throw new Error(N(Q))}catch(se){return se}};function X(Q){return{}.toString.call(Q)}var oe=function(Q){return m.isArray(Q)?Q:null};if(typeof Symbol<"u"&&Symbol.iterator){var ee=typeof Array.from=="function"?function(Q){return Array.from(Q)}:function(Q){for(var se,Z=[],I=Q[Symbol.iterator]();!(se=I.next()).done;)Z.push(se.value);return Z};oe=function(Q){return m.isArray(Q)?Q:Q!=null&&typeof Q[Symbol.iterator]=="function"?ee(Q):null}}var J=r!==void 0&&X(r).toLowerCase()==="[object process]",ne=r!==void 0&&r.env!==void 0,he={isClass:function(Q){try{if(typeof Q=="function"){var se=m.names(Q.prototype),Z=m.isES5&&se.length>1,I=se.length>0&&!(se.length===1&&se[0]==="constructor"),k=j.test(Q+"")&&m.names(Q).length>0;if(Z||I||k)return!0}return!1}catch{return!1}},isIdentifier:function(Q){return O.test(Q)},inheritedDataKeys:E,getDataPropertyOrDefault:function(Q,se,Z){if(!m.isES5)return{}.hasOwnProperty.call(Q,se)?Q[se]:void 0;var I=Object.getOwnPropertyDescriptor(Q,se);return I!=null?I.get==null&&I.set==null?I.value:Z:void 0},thrower:function(Q){throw Q},isArray:m.isArray,asArray:oe,notEnumerableProp:C,isPrimitive:x,isObject:function(Q){return typeof Q=="function"||typeof Q=="object"&&Q!==null},isError:U,canEvaluate:p,errorObj:b,tryCatch:function(Q){return f=Q,w},inherits:function(Q,se){var Z={}.hasOwnProperty;function I(){for(var k in this.constructor=Q,this.constructor$=se,se.prototype)Z.call(se.prototype,k)&&k.charAt(k.length-1)!=="$"&&(this[k+"$"]=se.prototype[k])}return I.prototype=se.prototype,Q.prototype=new I,Q.prototype},withAppended:function(Q,se){var Z,I=Q.length,k=new Array(I+1);for(Z=0;Z<I;++Z)k[Z]=Q[Z];return k[Z]=se,k},maybeWrapAsError:function(Q){return x(Q)?new Error(N(Q)):Q},toFastProperties:function(Q){return Q},filledRange:function(Q,se,Z){for(var I=new Array(Q),k=0;k<Q;++k)I[k]=se+k+Z;return I},toString:N,canAttachTrace:$,ensureErrorObject:K,originatesFromRejection:function(Q){return Q!=null&&(Q instanceof Error.__BluebirdErrorTypes__.OperationalError||Q.isOperational===!0)},markAsOriginatingFromRejection:function(Q){try{C(Q,"isOperational",!0)}catch{}},classString:X,copyDescriptors:function(Q,se,Z){for(var I=m.names(Q),k=0;k<I.length;++k){var z=I[k];if(Z(z))try{m.defineProperty(se,z,m.getDescriptor(Q,z))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:J,hasEnvVariables:ne,env:function(Q){return ne?r.env[Q]:void 0},global:_,getNativePromise:function(){if(typeof Promise=="function")try{var Q=new Promise(function(){});if({}.toString.call(Q)==="[object Promise]")return Promise}catch{}},domainBind:function(Q,se){return Q.bind(se)}};he.isRecentNode=he.isNode&&function(){var Q=r.versions.node.split(".").map(Number);return Q[0]===0&&Q[1]>10||Q[0]>0}(),he.isNode&&he.toFastProperties(r);try{throw new Error}catch(Q){he.lastLineError=Q}u.exports=he},{"./es5":13}]},{},[4])(4),typeof window<"u"&&window!==null?window.P=window.Promise:typeof self<"u"&&self!==null&&(self.P=self.Promise)}).call(this,n(4),n(0),n(11).setImmediate)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r,i){if(!i.eol&&r){for(var o=0,s=r.length;o<s;o++)if(r[o]==="\r"){if(r[o+1]===`
`){i.eol=`\r
`;break}if(r[o+1]){i.eol="\r";break}}else if(r[o]===`
`){i.eol=`
`;break}}return i.eol||`
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(o,s){var u=i(o,s);return r(u)?u:void 0}},function(e,t,n){var r=n(19).Symbol;e.exports=r},function(e,t,n){var r=n(67),i=typeof self=="object"&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t){e.exports=function(n){var r=typeof n;return n!=null&&(r=="object"||r=="function")}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(30),i=n(76);e.exports=function(o){return typeof o=="symbol"||i(o)&&r(o)=="[object Symbol]"}},function(e,t,n){(function(r,i){var o=n(6);e.exports=N;var s,u=n(37);N.ReadableState=O,n(12).EventEmitter;var d=function(F,P){return F.listeners(P).length},f=n(24),m=n(7).Buffer,p=r.Uint8Array||function(){},b=n(5);b.inherits=n(2);var _=n(41),w=void 0;w=_&&_.debuglog?_.debuglog("stream"):function(){};var x,C=n(42),E=n(25);b.inherits(N,f);var j=["error","close","destroy","pause","resume"];function O(F,P){s=s||n(1),F=F||{};var G=P instanceof s;this.objectMode=!!F.objectMode,G&&(this.objectMode=this.objectMode||!!F.readableObjectMode);var Y=F.highWaterMark,te=F.readableHighWaterMark,ue=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:G&&(te||te===0)?te:ue,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new C,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(x||(x=n(26).StringDecoder),this.decoder=new x(F.encoding),this.encoding=F.encoding)}function N(F){if(s=s||n(1),!(this instanceof N))return new N(F);this._readableState=new O(F,this),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),f.call(this)}function U(F,P,G,Y,te){var ue,fe=F._readableState;return P===null?(fe.reading=!1,function(ge,D){if(!D.ended){if(D.decoder){var B=D.decoder.end();B&&B.length&&(D.buffer.push(B),D.length+=D.objectMode?1:B.length)}D.ended=!0,oe(ge)}}(F,fe)):(te||(ue=function(ge,D){var B;return function(W){return m.isBuffer(W)||W instanceof p}(D)||typeof D=="string"||D===void 0||ge.objectMode||(B=new TypeError("Invalid non-string/buffer chunk")),B}(fe,P)),ue?F.emit("error",ue):fe.objectMode||P&&P.length>0?(typeof P=="string"||fe.objectMode||Object.getPrototypeOf(P)===m.prototype||(P=function(ge){return m.from(ge)}(P)),Y?fe.endEmitted?F.emit("error",new Error("stream.unshift() after end event")):$(F,fe,P,!0):fe.ended?F.emit("error",new Error("stream.push() after EOF")):(fe.reading=!1,fe.decoder&&!G?(P=fe.decoder.write(P),fe.objectMode||P.length!==0?$(F,fe,P,!1):J(F,fe)):$(F,fe,P,!1))):Y||(fe.reading=!1)),function(ge){return!ge.ended&&(ge.needReadable||ge.length<ge.highWaterMark||ge.length===0)}(fe)}function $(F,P,G,Y){P.flowing&&P.length===0&&!P.sync?(F.emit("data",G),F.read(0)):(P.length+=P.objectMode?1:G.length,Y?P.buffer.unshift(G):P.buffer.push(G),P.needReadable&&oe(F)),J(F,P)}Object.defineProperty(N.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(F){this._readableState&&(this._readableState.destroyed=F)}}),N.prototype.destroy=E.destroy,N.prototype._undestroy=E.undestroy,N.prototype._destroy=function(F,P){this.push(null),P(F)},N.prototype.push=function(F,P){var G,Y=this._readableState;return Y.objectMode?G=!0:typeof F=="string"&&((P=P||Y.defaultEncoding)!==Y.encoding&&(F=m.from(F,P),P=""),G=!0),U(this,F,P,!1,G)},N.prototype.unshift=function(F){return U(this,F,null,!0,!1)},N.prototype.isPaused=function(){return this._readableState.flowing===!1},N.prototype.setEncoding=function(F){return x||(x=n(26).StringDecoder),this._readableState.decoder=new x(F),this._readableState.encoding=F,this};var K=8388608;function X(F,P){return F<=0||P.length===0&&P.ended?0:P.objectMode?1:F!=F?P.flowing&&P.length?P.buffer.head.data.length:P.length:(F>P.highWaterMark&&(P.highWaterMark=function(G){return G>=K?G=K:(G--,G|=G>>>1,G|=G>>>2,G|=G>>>4,G|=G>>>8,G|=G>>>16,G++),G}(F)),F<=P.length?F:P.ended?P.length:(P.needReadable=!0,0))}function oe(F){var P=F._readableState;P.needReadable=!1,P.emittedReadable||(w("emitReadable",P.flowing),P.emittedReadable=!0,P.sync?o.nextTick(ee,F):ee(F))}function ee(F){w("emit readable"),F.emit("readable"),se(F)}function J(F,P){P.readingMore||(P.readingMore=!0,o.nextTick(ne,F,P))}function ne(F,P){for(var G=P.length;!P.reading&&!P.flowing&&!P.ended&&P.length<P.highWaterMark&&(w("maybeReadMore read 0"),F.read(0),G!==P.length);)G=P.length;P.readingMore=!1}function he(F){w("readable nexttick read 0"),F.read(0)}function Q(F,P){P.reading||(w("resume read 0"),F.read(0)),P.resumeScheduled=!1,P.awaitDrain=0,F.emit("resume"),se(F),P.flowing&&!P.reading&&F.read(0)}function se(F){var P=F._readableState;for(w("flow",P.flowing);P.flowing&&F.read()!==null;);}function Z(F,P){return P.length===0?null:(P.objectMode?G=P.buffer.shift():!F||F>=P.length?(G=P.decoder?P.buffer.join(""):P.buffer.length===1?P.buffer.head.data:P.buffer.concat(P.length),P.buffer.clear()):G=function(Y,te,ue){var fe;return Y<te.head.data.length?(fe=te.head.data.slice(0,Y),te.head.data=te.head.data.slice(Y)):fe=Y===te.head.data.length?te.shift():ue?function(ge,D){var B=D.head,W=1,le=B.data;for(ge-=le.length;B=B.next;){var H=B.data,ae=ge>H.length?H.length:ge;if(ae===H.length?le+=H:le+=H.slice(0,ge),(ge-=ae)==0){ae===H.length?(++W,B.next?D.head=B.next:D.head=D.tail=null):(D.head=B,B.data=H.slice(ae));break}++W}return D.length-=W,le}(Y,te):function(ge,D){var B=m.allocUnsafe(ge),W=D.head,le=1;for(W.data.copy(B),ge-=W.data.length;W=W.next;){var H=W.data,ae=ge>H.length?H.length:ge;if(H.copy(B,B.length-ge,0,ae),(ge-=ae)==0){ae===H.length?(++le,W.next?D.head=W.next:D.head=D.tail=null):(D.head=W,W.data=H.slice(ae));break}++le}return D.length-=le,B}(Y,te),fe}(F,P.buffer,P.decoder),G);var G}function I(F){var P=F._readableState;if(P.length>0)throw new Error('"endReadable()" called on non-empty stream');P.endEmitted||(P.ended=!0,o.nextTick(k,P,F))}function k(F,P){F.endEmitted||F.length!==0||(F.endEmitted=!0,P.readable=!1,P.emit("end"))}function z(F,P){for(var G=0,Y=F.length;G<Y;G++)if(F[G]===P)return G;return-1}N.prototype.read=function(F){w("read",F),F=parseInt(F,10);var P=this._readableState,G=F;if(F!==0&&(P.emittedReadable=!1),F===0&&P.needReadable&&(P.length>=P.highWaterMark||P.ended))return w("read: emitReadable",P.length,P.ended),P.length===0&&P.ended?I(this):oe(this),null;if((F=X(F,P))===0&&P.ended)return P.length===0&&I(this),null;var Y,te=P.needReadable;return w("need readable",te),(P.length===0||P.length-F<P.highWaterMark)&&w("length less than watermark",te=!0),P.ended||P.reading?w("reading or ended",te=!1):te&&(w("do read"),P.reading=!0,P.sync=!0,P.length===0&&(P.needReadable=!0),this._read(P.highWaterMark),P.sync=!1,P.reading||(F=X(G,P))),(Y=F>0?Z(F,P):null)===null?(P.needReadable=!0,F=0):P.length-=F,P.length===0&&(P.ended||(P.needReadable=!0),G!==F&&P.ended&&I(this)),Y!==null&&this.emit("data",Y),Y},N.prototype._read=function(F){this.emit("error",new Error("_read() is not implemented"))},N.prototype.pipe=function(F,P){var G=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=F;break;case 1:Y.pipes=[Y.pipes,F];break;default:Y.pipes.push(F)}Y.pipesCount+=1,w("pipe count=%d opts=%j",Y.pipesCount,P);var te=P&&P.end===!1||F===i.stdout||F===i.stderr?ae:ue;function ue(){w("onend"),F.end()}Y.endEmitted?o.nextTick(te):G.once("end",te),F.on("unpipe",function ce(ve,de){w("onunpipe"),ve===G&&de&&de.hasUnpiped===!1&&(de.hasUnpiped=!0,w("cleanup"),F.removeListener("close",le),F.removeListener("finish",H),F.removeListener("drain",fe),F.removeListener("error",W),F.removeListener("unpipe",ce),G.removeListener("end",ue),G.removeListener("end",ae),G.removeListener("data",B),ge=!0,!Y.awaitDrain||F._writableState&&!F._writableState.needDrain||fe())});var fe=function(ce){return function(){var ve=ce._readableState;w("pipeOnDrain",ve.awaitDrain),ve.awaitDrain&&ve.awaitDrain--,ve.awaitDrain===0&&d(ce,"data")&&(ve.flowing=!0,se(ce))}}(G);F.on("drain",fe);var ge=!1,D=!1;function B(ce){w("ondata"),D=!1,F.write(ce)!==!1||D||((Y.pipesCount===1&&Y.pipes===F||Y.pipesCount>1&&z(Y.pipes,F)!==-1)&&!ge&&(w("false write response, pause",G._readableState.awaitDrain),G._readableState.awaitDrain++,D=!0),G.pause())}function W(ce){w("onerror",ce),ae(),F.removeListener("error",W),d(F,"error")===0&&F.emit("error",ce)}function le(){F.removeListener("finish",H),ae()}function H(){w("onfinish"),F.removeListener("close",le),ae()}function ae(){w("unpipe"),G.unpipe(F)}return G.on("data",B),function(ce,ve,de){if(typeof ce.prependListener=="function")return ce.prependListener(ve,de);ce._events&&ce._events[ve]?u(ce._events[ve])?ce._events[ve].unshift(de):ce._events[ve]=[de,ce._events[ve]]:ce.on(ve,de)}(F,"error",W),F.once("close",le),F.once("finish",H),F.emit("pipe",G),Y.flowing||(w("pipe resume"),G.resume()),F},N.prototype.unpipe=function(F){var P=this._readableState,G={hasUnpiped:!1};if(P.pipesCount===0)return this;if(P.pipesCount===1)return F&&F!==P.pipes?this:(F||(F=P.pipes),P.pipes=null,P.pipesCount=0,P.flowing=!1,F&&F.emit("unpipe",this,G),this);if(!F){var Y=P.pipes,te=P.pipesCount;P.pipes=null,P.pipesCount=0,P.flowing=!1;for(var ue=0;ue<te;ue++)Y[ue].emit("unpipe",this,G);return this}var fe=z(P.pipes,F);return fe===-1?this:(P.pipes.splice(fe,1),P.pipesCount-=1,P.pipesCount===1&&(P.pipes=P.pipes[0]),F.emit("unpipe",this,G),this)},N.prototype.on=function(F,P){var G=f.prototype.on.call(this,F,P);if(F==="data")this._readableState.flowing!==!1&&this.resume();else if(F==="readable"){var Y=this._readableState;Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,Y.reading?Y.length&&oe(this):o.nextTick(he,this))}return G},N.prototype.addListener=N.prototype.on,N.prototype.resume=function(){var F=this._readableState;return F.flowing||(w("resume"),F.flowing=!0,function(P,G){G.resumeScheduled||(G.resumeScheduled=!0,o.nextTick(Q,P,G))}(this,F)),this},N.prototype.pause=function(){return w("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(w("pause"),this._readableState.flowing=!1,this.emit("pause")),this},N.prototype.wrap=function(F){var P=this,G=this._readableState,Y=!1;for(var te in F.on("end",function(){if(w("wrapped end"),G.decoder&&!G.ended){var fe=G.decoder.end();fe&&fe.length&&P.push(fe)}P.push(null)}),F.on("data",function(fe){w("wrapped data"),G.decoder&&(fe=G.decoder.write(fe)),(!G.objectMode||fe!=null)&&(G.objectMode||fe&&fe.length)&&(P.push(fe)||(Y=!0,F.pause()))}),F)this[te]===void 0&&typeof F[te]=="function"&&(this[te]=function(fe){return function(){return F[fe].apply(F,arguments)}}(te));for(var ue=0;ue<j.length;ue++)F.on(j[ue],this.emit.bind(this,j[ue]));return this._read=function(fe){w("wrapped _read",fe),Y&&(Y=!1,F.resume())},this},Object.defineProperty(N.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),N._fromList=Z}).call(this,n(0),n(4))},function(e,t,n){e.exports=n(12).EventEmitter},function(e,t,n){var r=n(6);function i(o,s){o.emit("error",s)}e.exports={destroy:function(o,s){var u=this,d=this._readableState&&this._readableState.destroyed,f=this._writableState&&this._writableState.destroyed;return d||f?(s?s(o):!o||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,o),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(m){!s&&m?(r.nextTick(i,u,m),u._writableState&&(u._writableState.errorEmitted=!0)):s&&s(m)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}}},function(e,t,n){var r=n(7).Buffer,i=r.isEncoding||function(w){switch((w=""+w)&&w.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(w){var x;switch(this.encoding=function(C){var E=function(j){if(!j)return"utf8";for(var O;;)switch(j){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return j;default:if(O)return;j=(""+j).toLowerCase(),O=!0}}(C);if(typeof E!="string"&&(r.isEncoding===i||!i(C)))throw new Error("Unknown encoding: "+C);return E||C}(w),this.encoding){case"utf16le":this.text=d,this.end=f,x=4;break;case"utf8":this.fillLast=u,x=4;break;case"base64":this.text=m,this.end=p,x=3;break;default:return this.write=b,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(x)}function s(w){return w<=127?0:w>>5==6?2:w>>4==14?3:w>>3==30?4:w>>6==2?-1:-2}function u(w){var x=this.lastTotal-this.lastNeed,C=function(E,j,O){if((192&j[0])!=128)return E.lastNeed=0,"<22>";if(E.lastNeed>1&&j.length>1){if((192&j[1])!=128)return E.lastNeed=1,"<22>";if(E.lastNeed>2&&j.length>2&&(192&j[2])!=128)return E.lastNeed=2,"<22>"}}(this,w);return C!==void 0?C:this.lastNeed<=w.length?(w.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(w.copy(this.lastChar,x,0,w.length),void(this.lastNeed-=w.length))}function d(w,x){if((w.length-x)%2==0){var C=w.toString("utf16le",x);if(C){var E=C.charCodeAt(C.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1],C.slice(0,-1)}return C}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=w[w.length-1],w.toString("utf16le",x,w.length-1)}function f(w){var x=w&&w.length?this.write(w):"";if(this.lastNeed){var C=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,C)}return x}function m(w,x){var C=(w.length-x)%3;return C===0?w.toString("base64",x):(this.lastNeed=3-C,this.lastTotal=3,C===1?this.lastChar[0]=w[w.length-1]:(this.lastChar[0]=w[w.length-2],this.lastChar[1]=w[w.length-1]),w.toString("base64",x,w.length-C))}function p(w){var x=w&&w.length?this.write(w):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function b(w){return w.toString(this.encoding)}function _(w){return w&&w.length?this.write(w):""}t.StringDecoder=o,o.prototype.write=function(w){if(w.length===0)return"";var x,C;if(this.lastNeed){if((x=this.fillLast(w))===void 0)return"";C=this.lastNeed,this.lastNeed=0}else C=0;return C<w.length?x?x+this.text(w,C):this.text(w,C):x||""},o.prototype.end=function(w){var x=w&&w.length?this.write(w):"";return this.lastNeed?x+"<22>":x},o.prototype.text=function(w,x){var C=function(j,O,N){var U=O.length-1;if(U<N)return 0;var $=s(O[U]);return $>=0?($>0&&(j.lastNeed=$-1),$):--U<N||$===-2?0:($=s(O[U]))>=0?($>0&&(j.lastNeed=$-2),$):--U<N||$===-2?0:($=s(O[U]))>=0?($>0&&($===2?$=0:j.lastNeed=$-3),$):0}(this,w,x);if(!this.lastNeed)return w.toString("utf8",x);this.lastTotal=C;var E=w.length-(C-this.lastNeed);return w.copy(this.lastChar,0,E),w.toString("utf8",x,E)},o.prototype.fillLast=function(w){if(this.lastNeed<=w.length)return w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);w.copy(this.lastChar,this.lastTotal-this.lastNeed,0,w.length),this.lastNeed-=w.length}},function(e,t,n){e.exports=o;var r=n(1),i=n(5);function o(d){if(!(this instanceof o))return new o(d);r.call(this,d),this._transformState={afterTransform:(function(f,m){var p=this._transformState;p.transforming=!1;var b=p.writecb;if(!b)return this.emit("error",new Error("write callback called multiple times"));p.writechunk=null,p.writecb=null,m!=null&&this.push(m),b(f);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}).bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",s)}function s(){var d=this;typeof this._flush=="function"?this._flush(function(f,m){u(d,f,m)}):u(this,null,null)}function u(d,f,m){if(f)return d.emit("error",f);if(m!=null&&d.push(m),d._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(d._transformState.transforming)throw new Error("Calling transform done when still transforming");return d.push(null)}i.inherits=n(2),i.inherits(o,r),o.prototype.push=function(d,f){return this._transformState.needTransform=!1,r.prototype.push.call(this,d,f)},o.prototype._transform=function(d,f,m){throw new Error("_transform() is not implemented")},o.prototype._write=function(d,f,m){var p=this._transformState;if(p.writecb=m,p.writechunk=d,p.writeencoding=f,!p.transforming){var b=this._readableState;(p.needTransform||b.needReadable||b.length<b.highWaterMark)&&this._read(b.highWaterMark)}},o.prototype._read=function(d){var f=this._transformState;f.writechunk!==null&&f.writecb&&!f.transforming?(f.transforming=!0,this._transform(f.writechunk,f.writeencoding,f.afterTransform)):f.needTransform=!0},o.prototype._destroy=function(d,f){var m=this;r.prototype._destroy.call(this,d,function(p){f(p),m.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var o=r.byteLength(i),s=r.allocUnsafe?r.allocUnsafe(o):new r(o);return s.write(i),s},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,o){for(var s=[],u=0;u<i.length;u++)o.indexOf(u)>-1&&s.push(i[u]);return s},t.trimLeft=String.prototype.trimLeft?function(i){return i.trimLeft()}:function(i){return i.replace(/^\s+/,"")},t.trimRight=String.prototype.trimRight?function(i){return i.trimRight()}:function(i){return i.replace(/\s+$/,"")}}).call(this,n(3).Buffer)},function(e,t,n){var r=this&&this.__extends||function(){var o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(s,u){s.__proto__=u}||function(s,u){for(var d in u)u.hasOwnProperty(d)&&(s[d]=u[d])};return function(s,u){function d(){this.constructor=s}o(s,u),s.prototype=u===null?Object.create(u):(d.prototype=u.prototype,new d)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(o){function s(u,d,f){var m=o.call(this,"Error: "+u+". JSON Line number: "+d+(f?" near: "+f:""))||this;return m.err=u,m.line=d,m.extra=f,m.name="CSV Parse Error",m}return r(s,o),s.column_mismatched=function(u,d){return new s("column_mismatched",u,d)},s.unclosed_quote=function(u,d){return new s("unclosed_quote",u,d)},s.fromJSON=function(u){return new s(u.err,u.line,u.extra)},s.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},s}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),o=n(69),s=r?r.toStringTag:void 0;e.exports=function(u){return u==null?u===void 0?"[object Undefined]":"[object Null]":s&&s in Object(u)?i(u):o(u)}},function(e,t){e.exports=function(n,r){return n===r||n!=n&&r!=r}},function(e,t,n){e.exports=n(33)},function(e,t,n){var r=n(34),i=function(o,s){return new r.Converter(o,s)};i.csv=i,i.Converter=r.Converter,e.exports=i},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var _=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,x){w.__proto__=x}||function(w,x){for(var C in x)x.hasOwnProperty(C)&&(w[C]=x[C])};return function(w,x){function C(){this.constructor=w}_(w,x),w.prototype=x===null?Object.create(x):(C.prototype=x.prototype,new C)}}(),o=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(36),u=n(50),d=n(51),f=o(n(15)),m=n(52),p=n(105),b=function(_){function w(x,C){C===void 0&&(C={});var E=_.call(this,C)||this;return E.options=C,E.params=u.mergeParams(x),E.runtime=d.initParseRuntime(E),E.result=new p.Result(E),E.processor=new m.ProcessorLocal(E),E.once("error",function(j){r(function(){E.result.processError(j),E.emit("done",j)})}),E.once("done",function(){E.processor.destroy()}),E}return i(w,_),w.prototype.preRawData=function(x){return this.runtime.preRawDataHook=x,this},w.prototype.preFileLine=function(x){return this.runtime.preFileLineHook=x,this},w.prototype.subscribe=function(x,C,E){return this.parseRuntime.subscribe={onNext:x,onError:C,onCompleted:E},this},w.prototype.fromFile=function(x,C){var E=this,j=n(!function(){var O=new Error("Cannot find module 'fs'");throw O.code="MODULE_NOT_FOUND",O}());return j.exists(x,function(O){O?j.createReadStream(x,C).pipe(E):E.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},w.prototype.fromStream=function(x){return x.pipe(this),this},w.prototype.fromString=function(x){x.toString();var C=new s.Readable,E=0;return C._read=function(j){if(E>=x.length)this.push(null);else{var O=x.substr(E,j);this.push(O),E+=j}},this.fromStream(C)},w.prototype.then=function(x,C){var E=this;return new f.default(function(j,O){E.parseRuntime.then={onfulfilled:function(N){j(x?x(N):N)},onrejected:function(N){C?j(C(N)):O(N)}}})},Object.defineProperty(w.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),w.prototype._transform=function(x,C,E){var j=this;this.processor.process(x).then(function(O){if(O.length>0)return j.runtime.started=!0,j.result.processResult(O)}).then(function(){j.emit("drained"),E()},function(O){j.runtime.hasError=!0,j.runtime.error=O,j.emit("error",O),E()})},w.prototype._flush=function(x){var C=this;this.processor.flush().then(function(E){if(E.length>0)return C.result.processResult(E)}).then(function(){C.processEnd(x)},function(E){C.emit("error",E),x()})},w.prototype.processEnd=function(x){this.result.endProcess(),this.emit("done"),x()},Object.defineProperty(w.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),w}(s.Transform);t.Converter=b}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(o,s){if(!o.setImmediate){var u,d=1,f={},m=!1,p=o.document,b=Object.getPrototypeOf&&Object.getPrototypeOf(o);b=b&&b.setTimeout?b:o,{}.toString.call(o.process)==="[object process]"?u=function(x){i.nextTick(function(){w(x)})}:function(){if(o.postMessage&&!o.importScripts){var x=!0,C=o.onmessage;return o.onmessage=function(){x=!1},o.postMessage("","*"),o.onmessage=C,x}}()?function(){var x="setImmediate$"+Math.random()+"$",C=function(E){E.source===o&&typeof E.data=="string"&&E.data.indexOf(x)===0&&w(+E.data.slice(x.length))};o.addEventListener?o.addEventListener("message",C,!1):o.attachEvent("onmessage",C),u=function(E){o.postMessage(x+E,"*")}}():o.MessageChannel?function(){var x=new MessageChannel;x.port1.onmessage=function(C){w(C.data)},u=function(C){x.port2.postMessage(C)}}():p&&"onreadystatechange"in p.createElement("script")?function(){var x=p.documentElement;u=function(C){var E=p.createElement("script");E.onreadystatechange=function(){w(C),E.onreadystatechange=null,x.removeChild(E),E=null},x.appendChild(E)}}():u=function(x){setTimeout(w,0,x)},b.setImmediate=function(x){typeof x!="function"&&(x=new Function(""+x));for(var C=new Array(arguments.length-1),E=0;E<C.length;E++)C[E]=arguments[E+1];var j={callback:x,args:C};return f[d]=j,u(d),d++},b.clearImmediate=_}function _(x){delete f[x]}function w(x){if(m)setTimeout(w,0,x);else{var C=f[x];if(C){m=!0;try{(function(E){var j=E.callback,O=E.args;switch(O.length){case 0:j();break;case 1:j(O[0]);break;case 2:j(O[0],O[1]);break;case 3:j(O[0],O[1],O[2]);break;default:j.apply(s,O)}})(C)}finally{_(x),m=!1}}}}})(typeof self>"u"?r===void 0?this:r:self)}).call(this,n(0),n(4))},function(e,t,n){e.exports=i;var r=n(12).EventEmitter;function i(){r.call(this)}n(2)(i,r),i.Readable=n(13),i.Writable=n(46),i.Duplex=n(47),i.Transform=n(48),i.PassThrough=n(49),i.Stream=i,i.prototype.pipe=function(o,s){var u=this;function d(x){o.writable&&o.write(x)===!1&&u.pause&&u.pause()}function f(){u.readable&&u.resume&&u.resume()}u.on("data",d),o.on("drain",f),o._isStdio||s&&s.end===!1||(u.on("end",p),u.on("close",b));var m=!1;function p(){m||(m=!0,o.end())}function b(){m||(m=!0,typeof o.destroy=="function"&&o.destroy())}function _(x){if(w(),r.listenerCount(this,"error")===0)throw x}function w(){u.removeListener("data",d),o.removeListener("drain",f),u.removeListener("end",p),u.removeListener("close",b),u.removeListener("error",_),o.removeListener("error",_),u.removeListener("end",w),u.removeListener("close",w),o.removeListener("close",w)}return u.on("error",_),o.on("error",_),u.on("end",w),u.on("close",w),o.on("close",w),o.emit("pipe",u),o}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t,n){t.byteLength=function(b){var _=f(b),w=_[0],x=_[1];return 3*(w+x)/4-x},t.toByteArray=function(b){for(var _,w=f(b),x=w[0],C=w[1],E=new o(3*(x+C)/4-C),j=0,O=C>0?x-4:x,N=0;N<O;N+=4)_=i[b.charCodeAt(N)]<<18|i[b.charCodeAt(N+1)]<<12|i[b.charCodeAt(N+2)]<<6|i[b.charCodeAt(N+3)],E[j++]=_>>16&255,E[j++]=_>>8&255,E[j++]=255&_;return C===2&&(_=i[b.charCodeAt(N)]<<2|i[b.charCodeAt(N+1)]>>4,E[j++]=255&_),C===1&&(_=i[b.charCodeAt(N)]<<10|i[b.charCodeAt(N+1)]<<4|i[b.charCodeAt(N+2)]>>2,E[j++]=_>>8&255,E[j++]=255&_),E},t.fromByteArray=function(b){for(var _,w=b.length,x=w%3,C=[],E=0,j=w-x;E<j;E+=16383)C.push(p(b,E,E+16383>j?j:E+16383));return x===1?(_=b[w-1],C.push(r[_>>2]+r[_<<4&63]+"==")):x===2&&(_=(b[w-2]<<8)+b[w-1],C.push(r[_>>10]+r[_>>4&63]+r[_<<2&63]+"=")),C.join("")};for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,d=s.length;u<d;++u)r[u]=s[u],i[s.charCodeAt(u)]=u;function f(b){var _=b.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=b.indexOf("=");return w===-1&&(w=_),[w,w===_?0:4-w%4]}function m(b){return r[b>>18&63]+r[b>>12&63]+r[b>>6&63]+r[63&b]}function p(b,_,w){for(var x,C=[],E=_;E<w;E+=3)x=(b[E]<<16&16711680)+(b[E+1]<<8&65280)+(255&b[E+2]),C.push(m(x));return C.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,o,s){var u,d,f=8*s-o-1,m=(1<<f)-1,p=m>>1,b=-7,_=i?s-1:0,w=i?-1:1,x=n[r+_];for(_+=w,u=x&(1<<-b)-1,x>>=-b,b+=f;b>0;u=256*u+n[r+_],_+=w,b-=8);for(d=u&(1<<-b)-1,u>>=-b,b+=o;b>0;d=256*d+n[r+_],_+=w,b-=8);if(u===0)u=1-p;else{if(u===m)return d?NaN:1/0*(x?-1:1);d+=Math.pow(2,o),u-=p}return(x?-1:1)*d*Math.pow(2,u-o)},t.write=function(n,r,i,o,s,u){var d,f,m,p=8*u-s-1,b=(1<<p)-1,_=b>>1,w=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,x=o?0:u-1,C=o?1:-1,E=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(f=isNaN(r)?1:0,d=b):(d=Math.floor(Math.log(r)/Math.LN2),r*(m=Math.pow(2,-d))<1&&(d--,m*=2),(r+=d+_>=1?w/m:w*Math.pow(2,1-_))*m>=2&&(d++,m/=2),d+_>=b?(f=0,d=b):d+_>=1?(f=(r*m-1)*Math.pow(2,s),d+=_):(f=r*Math.pow(2,_-1)*Math.pow(2,s),d=0));s>=8;n[i+x]=255&f,x+=C,f/=256,s-=8);for(d=d<<s|f,p+=s;p>0;n[i+x]=255&d,x+=C,d/=256,p-=8);n[i+x-C]|=128*E}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(r){return n.call(r)=="[object Array]"}},function(e,t){},function(e,t,n){var r=n(7).Buffer,i=n(43);function o(s,u,d){s.copy(u,d)}e.exports=function(){function s(){(function(u,d){if(!(u instanceof d))throw new TypeError("Cannot call a class as a function")})(this,s),this.head=null,this.tail=null,this.length=0}return s.prototype.push=function(u){var d={data:u,next:null};this.length>0?this.tail.next=d:this.head=d,this.tail=d,++this.length},s.prototype.unshift=function(u){var d={data:u,next:this.head};this.length===0&&(this.tail=d),this.head=d,++this.length},s.prototype.shift=function(){if(this.length!==0){var u=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,u}},s.prototype.clear=function(){this.head=this.tail=null,this.length=0},s.prototype.join=function(u){if(this.length===0)return"";for(var d=this.head,f=""+d.data;d=d.next;)f+=u+d.data;return f},s.prototype.concat=function(u){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var d=r.allocUnsafe(u>>>0),f=this.head,m=0;f;)o(f.data,d,m),m+=f.data.length,f=f.next;return d},s}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var s=i.inspect({length:this.length});return this.constructor.name+" "+s})},function(e,t){},function(e,t,n){(function(r){function i(o){try{if(!r.localStorage)return!1}catch{return!1}var s=r.localStorage[o];return s!=null&&String(s).toLowerCase()==="true"}e.exports=function(o,s){if(i("noDeprecation"))return o;var u=!1;return function(){if(!u){if(i("throwDeprecation"))throw new Error(s);i("traceDeprecation")?console.trace(s):console.warn(s),u=!0}return o.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=o;var r=n(27),i=n(5);function o(s){if(!(this instanceof o))return new o(s);r.call(this,s)}i.inherits=n(2),i.inherits(o,r),o.prototype._transform=function(s,u,d){d(null,s)}},function(e,t,n){e.exports=n(14)},function(e,t,n){e.exports=n(1)},function(e,t,n){e.exports=n(13).Transform},function(e,t,n){e.exports=n(13).PassThrough},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.mergeParams=function(r){var i={delimiter:",",ignoreColumns:void 0,includeColumns:void 0,quote:'"',trim:!0,checkType:!1,ignoreEmpty:!1,noheader:!1,headers:void 0,flatKeys:!1,maxRowLength:0,checkColumn:!1,escape:'"',colParser:{},eol:void 0,alwaysSplitAtEOL:!1,output:"json",nullObject:!1,downstreamFormat:"line",needEmitAll:!0};for(var o in r||(r={}),r)r.hasOwnProperty(o)&&(Array.isArray(r[o])?i[o]=[].concat(r[o]):i[o]=r[o]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,o={needProcessIgnoreColumn:!1,needProcessIncludeColumn:!1,selectedColumns:void 0,ended:!1,hasError:!1,error:void 0,delimiter:r.parseParam.delimiter,eol:r.parseParam.eol,columnConv:[],headerType:[],headerTitle:[],headerFlag:[],headers:void 0,started:!1,parsedLineNumber:0,columnValueSetter:[]};return i.ignoreColumns&&(o.needProcessIgnoreColumn=!0),i.includeColumns&&(o.needProcessIncludeColumn=!0),o}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var C=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,j){E.__proto__=j}||function(E,j){for(var O in j)j.hasOwnProperty(O)&&(E[O]=j[O])};return function(E,j){function O(){this.constructor=E}C(E,j),E.prototype=j===null?Object.create(j):(O.prototype=j.prototype,new O)}}(),o=this&&this.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(t,"__esModule",{value:!0});var s=n(53),u=o(n(15)),d=n(54),f=o(n(16)),m=n(57),p=n(28),b=n(58),_=o(n(59)),w=o(n(29)),x=function(C){function E(){var j=C!==null&&C.apply(this,arguments)||this;return j.rowSplit=new b.RowSplit(j.converter),j.eolEmitted=!1,j._needEmitEol=void 0,j.headEmitted=!1,j._needEmitHead=void 0,j}return i(E,C),E.prototype.flush=function(){var j=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var O=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(O,!0).then(function(N){return j.runtime.csvLineBuffer&&j.runtime.csvLineBuffer.length>0?u.default.reject(w.default.unclosed_quote(j.runtime.parsedLineNumber,j.runtime.csvLineBuffer.toString())):u.default.resolve(N)})}return u.default.resolve([])},E.prototype.destroy=function(){return u.default.resolve()},Object.defineProperty(E.prototype,"needEmitEol",{get:function(){return this._needEmitEol===void 0&&(this._needEmitEol=this.converter.listeners("eol").length>0),this._needEmitEol},enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),E.prototype.process=function(j,O){var N,U=this;return O===void 0&&(O=!1),N=O?j.toString():d.prepareData(j,this.converter.parseRuntime),u.default.resolve().then(function(){return U.runtime.preRawDataHook?U.runtime.preRawDataHook(N):N}).then(function($){return $&&$.length>0?U.processCSV($,O):u.default.resolve([])})},E.prototype.processCSV=function(j,O){var N=this,U=this.params,$=this.runtime;$.eol||f.default(j,$),this.needEmitEol&&!this.eolEmitted&&$.eol&&(this.converter.emit("eol",$.eol),this.eolEmitted=!0),U.ignoreEmpty&&!$.started&&(j=p.trimLeft(j));var K=m.stringToLines(j,$);return O?(K.lines.push(K.partial),K.partial=""):this.prependLeftBuf(p.bufFromString(K.partial)),K.lines.length>0?($.preFileLineHook?this.runPreLineHook(K.lines):u.default.resolve(K.lines)).then(function(X){return $.started||N.runtime.headers?N.processCSVBody(X):N.processDataWithHead(X)}):u.default.resolve([])},E.prototype.processDataWithHead=function(j){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var O="",N=[];j.length;){var U=O+j.shift(),$=this.rowSplit.parse(U);if($.closed){N=$.cells,O="";break}O=U+f.default(U,this.runtime)}if(this.prependLeftBuf(p.bufFromString(O)),N.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=N}return(this.runtime.needProcessIgnoreColumn||this.runtime.needProcessIncludeColumn)&&this.filterHeader(),this.needEmitHead&&!this.headEmitted&&(this.converter.emit("header",this.runtime.headers),this.headEmitted=!0),this.processCSVBody(j)},E.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var j=this.runtime.headers,O=0;O<j.length;O++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(j[O])){if(!this.params.includeColumns||!this.params.includeColumns.test(j[O]))continue;this.runtime.selectedColumns.push(O)}else this.runtime.selectedColumns.push(O);else this.params.includeColumns?this.params.includeColumns.test(j[O])&&this.runtime.selectedColumns.push(O):this.runtime.selectedColumns.push(O);this.runtime.headers=p.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},E.prototype.processCSVBody=function(j){if(this.params.output==="line")return j;var O=this.rowSplit.parseMultiLines(j);return this.prependLeftBuf(p.bufFromString(O.partial)),this.params.output==="csv"?O.rowsCells:_.default(O.rowsCells,this.converter)},E.prototype.prependLeftBuf=function(j){j&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([j,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=j)},E.prototype.runPreLineHook=function(j){var O=this;return new u.default(function(N,U){(function $(K,X,oe,ee){if(oe>=K.length)ee();else if(X.preFileLineHook){var J=K[oe],ne=X.preFileLineHook(J,X.parsedLineNumber+oe);if(oe++,ne&&ne.then)ne.then(function(he){K[oe-1]=he,$(K,X,oe,ee)});else{for(K[oe-1]=ne;oe<K.length;)K[oe]=X.preFileLineHook(K[oe],X.parsedLineNumber+oe),oe++;ee()}}else ee()})(j,O.runtime,0,function($){$?U($):N(j)})})},E}(s.Processor);t.ProcessorLocal=x}).call(this,n(3).Buffer)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var r=function(i){this.converter=i,this.params=i.parseParam,this.runtime=i.parseRuntime};t.Processor=r},function(e,t,n){(function(r){var i=this&&this.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(t,"__esModule",{value:!0});var o=i(n(55));t.prepareData=function(s,u){var d=function(m,p){return p.csvLineBuffer&&p.csvLineBuffer.length>0?r.concat([p.csvLineBuffer,m]):m}(s,u);u.csvLineBuffer=void 0;var f=function(m,p){var b=m.length-1;if((128&m[b])!=0){for(;(192&m[b])==128;)b--;b--}return b!=m.length-1?(p.csvLineBuffer=m.slice(b+1),m.slice(0,b+1)):m}(d,u).toString("utf8");return u.started===!1?o.default(f):f}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(o){return typeof o=="string"&&o.charCodeAt(0)===65279?o.slice(1):r.isBuffer(o)&&i(o)&&o[0]===239&&o[1]===187&&o[2]===191?o.slice(3):o}}).call(this,n(3).Buffer)},function(e,t){e.exports=function(n){for(var r=0;r<n.length;)if(n[r]==9||n[r]==10||n[r]==13||32<=n[r]&&n[r]<=126)r+=1;else if(194<=n[r]&&n[r]<=223&&128<=n[r+1]&&n[r+1]<=191)r+=2;else if(n[r]==224&&160<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||(225<=n[r]&&n[r]<=236||n[r]==238||n[r]==239)&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191||n[r]==237&&128<=n[r+1]&&n[r+1]<=159&&128<=n[r+2]&&n[r+2]<=191)r+=3;else{if(!(n[r]==240&&144<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||241<=n[r]&&n[r]<=243&&128<=n[r+1]&&n[r+1]<=191&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191||n[r]==244&&128<=n[r+1]&&n[r+1]<=143&&128<=n[r+2]&&n[r+2]<=191&&128<=n[r+3]&&n[r+3]<=191))return!1;r+=4}return!0}},function(e,t,n){var r=this&&this.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(o,s){var u=i.default(o,s),d=o.split(u);return{lines:d,partial:d.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),o=n(28),s=[",","|"," ",";",":"],u=function(){function d(f){this.conv=f,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=f.parseParam.quote,this.trim=f.parseParam.trim,this.escape=f.parseParam.escape}return Object.defineProperty(d.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),d.prototype.parse=function(f){if(f.length===0||this.conv.parseParam.ignoreEmpty&&f.trim().length===0)return{cells:[],closed:!0};var m=this.quote,p=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(f)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var b=this.conv.parseRuntime.delimiter,_=f.split(b);if(m==="off"){if(p)for(var w=0;w<_.length;w++)_[w]=_[w].trim();return{cells:_,closed:!0}}return this.toCSVRow(_,p,m,b)},d.prototype.toCSVRow=function(f,m,p,b){for(var _=[],w=!1,x="",C=0,E=f.length;C<E;C++){var j=f[C];!w&&m&&(j=o.trimLeft(j));var O=j.length;if(w)this.isQuoteClose(j)?(w=!1,x+=b+(j=j.substr(0,O-1)),x=this.escapeQuote(x),m&&(x=o.trimRight(x)),_.push(x),x=""):x+=b+j;else{if(O===2&&j===this.quote+this.quote){_.push("");continue}if(this.isQuoteOpen(j)){if(j=j.substr(1),this.isQuoteClose(j)){j=j.substring(0,j.lastIndexOf(p)),j=this.escapeQuote(j),_.push(j);continue}if(j.indexOf(p)!==-1){for(var N=0,U="",$=0,K=j;$<K.length;$++){var X=K[$];X===p&&U!==this.escape?(N++,U=""):U=X}if(N%2==1){m&&(j=o.trimRight(j)),_.push(p+j);continue}w=!0,x+=j;continue}w=!0,x+=j;continue}m&&(j=o.trimRight(j)),_.push(j)}}return{cells:_,closed:!w}},d.prototype.getDelimiter=function(f){var m;if(this.conv.parseParam.delimiter==="auto")m=s;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;m=this.conv.parseParam.delimiter}var p=0,b=",";return m.forEach(function(_){var w=f.split(_).length;w>p&&(b=_,p=w)}),b},d.prototype.isQuoteOpen=function(f){var m=this.quote,p=this.escape;return f[0]===m&&(f[1]!==m||f[1]===p&&(f[2]===m||f.length===2))},d.prototype.isQuoteClose=function(f){var m=this.quote,p=this.escape;this.conv.parseParam.trim&&(f=o.trimRight(f));for(var b=0,_=f.length-1;f[_]===m||f[_]===p;)_--,b++;return b%2!=0},d.prototype.escapeQuote=function(f){var m="es|"+this.quote+"|"+this.escape;this.cachedRegExp[m]===void 0&&(this.cachedRegExp[m]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var p=this.cachedRegExp[m];return f.replace(p,this.quote)},d.prototype.parseMultiLines=function(f){for(var m=[],p="";f.length;){var b=p+f.shift(),_=this.parse(b);_.cells.length===0&&this.conv.parseParam.ignoreEmpty||(_.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?m.push(o.filterArray(_.cells,this.conv.parseRuntime.selectedColumns)):m.push(_.cells),p=""):p=b+(i.default(b,this.conv.parseRuntime)||`
`))}return{rowsCells:m,partial:p}},d}();t.RowSplit=u},function(e,t,n){var r=this&&this.__importDefault||function(E){return E&&E.__esModule?E:{default:E}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(29)),o=r(n(60)),s=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function u(E,j,O){if(j.parseParam.checkColumn&&j.parseRuntime.headers&&E.length!==j.parseRuntime.headers.length)throw i.default.column_mismatched(j.parseRuntime.parsedLineNumber+O);return function(N,U,$){for(var K=!1,X={},oe=0,ee=N.length;oe<ee;oe++){var J=N[oe];if(!$.parseParam.ignoreEmpty||J!==""){K=!0;var ne=U[oe];ne&&ne!==""||(ne=U[oe]="field"+(oe+1));var he=f(ne,oe,$);if(he){var Q=he(J,ne,X,N,oe);Q!==void 0&&m(X,ne,Q,$,oe)}else $.parseParam.checkType&&(J=_(J,ne,oe,$)(J)),J!==void 0&&m(X,ne,J,$,oe)}}return K?X:null}(E,j.parseRuntime.headers||[],j)||null}t.default=function(E,j){for(var O=[],N=0,U=E.length;N<U;N++){var $=u(E[N],j,N);$&&O.push($)}return O};var d={string:x,number:w,omit:function(){}};function f(E,j,O){if(O.parseRuntime.columnConv[j]!==void 0)return O.parseRuntime.columnConv[j];var N=O.parseParam.colParser[E];if(N===void 0)return O.parseRuntime.columnConv[j]=null;if(typeof N=="object"&&(N=N.cellParser||"string"),typeof N=="string"){N=N.trim().toLowerCase();var U=d[N];return O.parseRuntime.columnConv[j]=U||null}return O.parseRuntime.columnConv[j]=typeof N=="function"?N:null}function m(E,j,O,N,U){if(!N.parseRuntime.columnValueSetter[U])if(N.parseParam.flatKeys)N.parseRuntime.columnValueSetter[U]=p;else if(j.indexOf(".")>-1){for(var $=j.split("."),K=!0;$.length>0;)if($.shift().length===0){K=!1;break}!K||N.parseParam.colParser[j]&&N.parseParam.colParser[j].flat?N.parseRuntime.columnValueSetter[U]=p:N.parseRuntime.columnValueSetter[U]=b}else N.parseRuntime.columnValueSetter[U]=p;N.parseParam.nullObject===!0&&O==="null"&&(O=null),N.parseRuntime.columnValueSetter[U](E,j,O)}function p(E,j,O){E[j]=O}function b(E,j,O){o.default(E,j,O)}function _(E,j,O,N){return N.parseRuntime.headerType[O]?N.parseRuntime.headerType[O]:j.indexOf("number#!")>-1?N.parseRuntime.headerType[O]=w:j.indexOf("string#!")>-1?N.parseRuntime.headerType[O]=x:N.parseParam.checkType?N.parseRuntime.headerType[O]=C:N.parseRuntime.headerType[O]=x}function w(E){var j=parseFloat(E);return isNaN(j)?E:j}function x(E){return E.toString()}function C(E){var j=E.trim();return j===""?x(E):s.test(j)?w(E):j.length===5&&j.toLowerCase()==="false"||j.length===4&&j.toLowerCase()==="true"?function(O){var N=O.trim();return N.length!==5||N.toLowerCase()!=="false"}(E):j[0]==="{"&&j[j.length-1]==="}"||j[0]==="["&&j[j.length-1]==="]"?function(O){try{return JSON.parse(O)}catch{return O}}(E):x(E)}},function(e,t,n){var r=n(61);e.exports=function(i,o,s){return i==null?i:r(i,o,s)}},function(e,t,n){var r=n(62),i=n(74),o=n(103),s=n(20),u=n(104);e.exports=function(d,f,m,p){if(!s(d))return d;for(var b=-1,_=(f=i(f,d)).length,w=_-1,x=d;x!=null&&++b<_;){var C=u(f[b]),E=m;if(b!=w){var j=x[C];(E=p?p(j,C,x):void 0)===void 0&&(E=s(j)?j:o(f[b+1])?[]:{})}r(x,C,E),x=x[C]}return d}},function(e,t,n){var r=n(63),i=n(31),o=Object.prototype.hasOwnProperty;e.exports=function(s,u,d){var f=s[u];o.call(s,u)&&i(f,d)&&(d!==void 0||u in s)||r(s,u,d)}},function(e,t,n){var r=n(64);e.exports=function(i,o,s){o=="__proto__"&&r?r(i,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):i[o]=s}},function(e,t,n){var r=n(17),i=function(){try{var o=r(Object,"defineProperty");return o({},"",{}),o}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),o=n(20),s=n(72),u=/^\[object .+?Constructor\]$/,d=Function.prototype,f=Object.prototype,m=d.toString,p=f.hasOwnProperty,b=RegExp("^"+m.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(_){return!(!o(_)||i(_))&&(r(_)?b:u).test(s(_))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(o){if(!i(o))return!1;var s=r(o);return s=="[object Function]"||s=="[object GeneratorFunction]"||s=="[object AsyncFunction]"||s=="[object Proxy]"}},function(e,t,n){(function(r){var i=typeof r=="object"&&r&&r.Object===Object&&r;e.exports=i}).call(this,n(0))},function(e,t,n){var r=n(18),i=Object.prototype,o=i.hasOwnProperty,s=i.toString,u=r?r.toStringTag:void 0;e.exports=function(d){var f=o.call(d,u),m=d[u];try{d[u]=void 0;var p=!0}catch{}var b=s.call(d);return p&&(f?d[u]=m:delete d[u]),b}},function(e,t){var n=Object.prototype.toString;e.exports=function(r){return n.call(r)}},function(e,t,n){var r=n(71),i=function(){var o=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}();e.exports=function(o){return!!i&&i in o}},function(e,t,n){var r=n(19)["__core-js_shared__"];e.exports=r},function(e,t){var n=Function.prototype.toString;e.exports=function(r){if(r!=null){try{return n.call(r)}catch{}try{return r+""}catch{}}return""}},function(e,t){e.exports=function(n,r){return n?.[r]}},function(e,t,n){var r=n(21),i=n(75),o=n(77),s=n(100);e.exports=function(u,d){return r(u)?u:i(u,d)?[u]:o(s(u))}},function(e,t,n){var r=n(21),i=n(22),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;e.exports=function(u,d){if(r(u))return!1;var f=typeof u;return!(f!="number"&&f!="symbol"&&f!="boolean"&&u!=null&&!i(u))||s.test(u)||!o.test(u)||d!=null&&u in Object(d)}},function(e,t){e.exports=function(n){return n!=null&&typeof n=="object"}},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(78)(function(s){var u=[];return s.charCodeAt(0)===46&&u.push(""),s.replace(r,function(d,f,m,p){u.push(m?p.replace(i,"$1"):f||d)}),u});e.exports=o},function(e,t,n){var r=n(79);e.exports=function(i){var o=r(i,function(u){return s.size===500&&s.clear(),u}),s=o.cache;return o}},function(e,t,n){var r=n(80),i="Expected a function";function o(s,u){if(typeof s!="function"||u!=null&&typeof u!="function")throw new TypeError(i);var d=function(){var f=arguments,m=u?u.apply(this,f):f[0],p=d.cache;if(p.has(m))return p.get(m);var b=s.apply(this,f);return d.cache=p.set(m,b)||p,b};return d.cache=new(o.Cache||r),d}o.Cache=r,e.exports=o},function(e,t,n){var r=n(81),i=n(95),o=n(97),s=n(98),u=n(99);function d(f){var m=-1,p=f==null?0:f.length;for(this.clear();++m<p;){var b=f[m];this.set(b[0],b[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=o,d.prototype.has=s,d.prototype.set=u,e.exports=d},function(e,t,n){var r=n(82),i=n(88),o=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),o=n(85),s=n(86),u=n(87);function d(f){var m=-1,p=f==null?0:f.length;for(this.clear();++m<p;){var b=f[m];this.set(b[0],b[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=o,d.prototype.has=s,d.prototype.set=u,e.exports=d},function(e,t,n){var r=n(8);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t){e.exports=function(n){var r=this.has(n)&&delete this.__data__[n];return this.size-=r?1:0,r}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var s=this.__data__;if(r){var u=s[o];return u==="__lodash_hash_undefined__"?void 0:u}return i.call(s,o)?s[o]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(o){var s=this.__data__;return r?s[o]!==void 0:i.call(s,o)}},function(e,t,n){var r=n(8);e.exports=function(i,o){var s=this.__data__;return this.size+=this.has(i)?0:1,s[i]=r&&o===void 0?"__lodash_hash_undefined__":o,this}},function(e,t,n){var r=n(89),i=n(90),o=n(91),s=n(92),u=n(93);function d(f){var m=-1,p=f==null?0:f.length;for(this.clear();++m<p;){var b=f[m];this.set(b[0],b[1])}}d.prototype.clear=r,d.prototype.delete=i,d.prototype.get=o,d.prototype.has=s,d.prototype.set=u,e.exports=d},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(9),i=Array.prototype.splice;e.exports=function(o){var s=this.__data__,u=r(s,o);return!(u<0||(u==s.length-1?s.pop():i.call(s,u,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var o=this.__data__,s=r(o,i);return s<0?void 0:o[s][1]}},function(e,t,n){var r=n(9);e.exports=function(i){return r(this.__data__,i)>-1}},function(e,t,n){var r=n(9);e.exports=function(i,o){var s=this.__data__,u=r(s,i);return u<0?(++this.size,s.push([i,o])):s[u][1]=o,this}},function(e,t,n){var r=n(17)(n(19),"Map");e.exports=r},function(e,t,n){var r=n(10);e.exports=function(i){var o=r(this,i).delete(i);return this.size-=o?1:0,o}},function(e,t){e.exports=function(n){var r=typeof n;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?n!=="__proto__":n===null}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).get(i)}},function(e,t,n){var r=n(10);e.exports=function(i){return r(this,i).has(i)}},function(e,t,n){var r=n(10);e.exports=function(i,o){var s=r(this,i),u=s.size;return s.set(i,o),this.size+=s.size==u?0:1,this}},function(e,t,n){var r=n(101);e.exports=function(i){return i==null?"":r(i)}},function(e,t,n){var r=n(18),i=n(102),o=n(21),s=n(22),u=r?r.prototype:void 0,d=u?u.toString:void 0;e.exports=function f(m){if(typeof m=="string")return m;if(o(m))return i(m,f)+"";if(s(m))return d?d.call(m):"";var p=m+"";return p=="0"&&1/m==-1/0?"-0":p}},function(e,t){e.exports=function(n,r){for(var i=-1,o=n==null?0:n.length,s=Array(o);++i<o;)s[i]=r(n[i],i,n);return s}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var o=typeof r;return!!(i=i??9007199254740991)&&(o=="number"||o!="symbol"&&n.test(r))&&r>-1&&r%1==0&&r<i}},function(e,t,n){var r=n(22);e.exports=function(i){if(typeof i=="string"||r(i))return i;var o=i+"";return o=="0"&&1/i==-1/0?"-0":o}},function(e,t,n){var r=this&&this.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),o=n(106),s=function(){function d(f){this.converter=f,this.finalResult=[]}return Object.defineProperty(d.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"needPushDownstream",{get:function(){return this._needPushDownstream===void 0&&(this._needPushDownstream=this.converter.listeners("data").length>0||this.converter.listeners("readable").length>0),this._needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),d.prototype.processResult=function(f){var m=this,p=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&p===0&&u(this.converter,"["+o.EOL),new i.default(function(b,_){m.needEmitLine?function w(x,C,E,j,O){if(E>=x.length)O();else if(C.parseRuntime.subscribe&&C.parseRuntime.subscribe.onNext){var N=C.parseRuntime.subscribe.onNext,U=x[E],$=N(U,C.parseRuntime.parsedLineNumber+E);if(E++,$&&$.then)$.then(function(){(function(X,oe,ee,J,ne,he,Q){ne&&u(ee,Q),w(X,ee,J,ne,he)})(x,0,C,E,j,O,U)},O);else{for(j&&u(C,U);E<x.length;){var K=x[E];N(K,C.parseRuntime.parsedLineNumber+E),E++,j&&u(C,K)}O()}}else{if(j)for(;E<x.length;)K=x[E++],u(C,K);O()}}(f,m.converter,0,m.needPushDownstream,function(w){w?_(w):(m.appendFinalResult(f),b())}):(m.appendFinalResult(f),b())})},d.prototype.appendFinalResult=function(f){this.needEmitAll&&(this.finalResult=this.finalResult.concat(f)),this.converter.parseRuntime.parsedLineNumber+=f.length},d.prototype.processError=function(f){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(f),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(f)},d.prototype.endProcess=function(){this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onfulfilled&&(this.needEmitAll?this.converter.parseRuntime.then.onfulfilled(this.finalResult):this.converter.parseRuntime.then.onfulfilled([])),this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onCompleted&&this.converter.parseRuntime.subscribe.onCompleted(),this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&u(this.converter,"]"+o.EOL)},d}();function u(d,f){if(typeof f!="object"||d.options.objectMode)d.push(f);else{var m=JSON.stringify(f);d.push(m+(d.parseParam.downstreamFormat==="array"?","+o.EOL:o.EOL),"utf8")}}t.Result=s},function(e,t){t.endianness=function(){return"LE"},t.hostname=function(){return typeof location<"u"?location.hostname:""},t.loadavg=function(){return[]},t.uptime=function(){return 0},t.freemem=function(){return Number.MAX_VALUE},t.totalmem=function(){return Number.MAX_VALUE},t.cpus=function(){return[]},t.type=function(){return"Browser"},t.release=function(){return typeof navigator<"u"?navigator.appVersion:""},t.networkInterfaces=t.getNetworkInterfaces=function(){return{}},t.arch=function(){return"javascript"},t.platform=function(){return"browser"},t.tmpdir=t.tmpDir=function(){return"/tmp"},t.EOL=`
`,t.homedir=function(){return"/"}}])),mx}var E_e=C_e();const A_e=Li(E_e),T_e=e=>new Promise(t=>{A_e().fromString(e).then(t)}),O_e=new qL,j_e=e=>O_e.parse(e),M_e="shlink",y6=e=>`${M_e}.${e}`;class P_e{constructor(t){this.localStorage=t}get=t=>{const n=this.localStorage.getItem(y6(t));return n?JSON.parse(n):void 0};set=(t,n)=>this.localStorage.setItem(y6(t),JSON.stringify(n))}class R_e{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const N_e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",P_e,"localStorage"),e.service("TagColorsStorage",R_e,"Storage"),e.constant("csvToJson",T_e),e.constant("jsonToCsv",j_e),e.serviceFactory("useTimeoutToggle",()=>ay)},Zu=new J6,{container:E3}=Zu,L_e=(e,t)=>(...n)=>e[t](...n),D_e=(e,t)=>({...e,[t]:L_e(E3,t)}),k_e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),t0=(e,t=[])=>T6(e?k_e(e):null,t.reduce(D_e,{}));pX(Zu,t0);Mbe(Zu,t0);U$(Zu);g_e(Zu,t0);N_e(Zu);S_e(Zu,t0);var px={},_g={exports:{}},b6;function I_e(){return b6||(b6=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isPlainObject=t.clone=t.recursive=t.merge=t.main=void 0,e.exports=t=n,t.default=n;function n(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return r.apply(void 0,f)}t.main=n,n.clone=o,n.isPlainObject=s,n.recursive=i;function r(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return d(f[0]===!0,!1,f)}t.merge=r;function i(){for(var f=[],m=0;m<arguments.length;m++)f[m]=arguments[m];return d(f[0]===!0,!0,f)}t.recursive=i;function o(f){if(Array.isArray(f)){for(var m=[],p=0;p<f.length;++p)m.push(o(f[p]));return m}else if(s(f)){var m={};for(var p in f)m[p]=o(f[p]);return m}else return f}t.clone=o;function s(f){return f&&typeof f=="object"&&!Array.isArray(f)}t.isPlainObject=s;function u(f,m){if(!s(f))return m;for(var p in m)p==="__proto__"||p==="constructor"||p==="prototype"||(f[p]=s(f[p])&&s(m[p])?u(f[p],m[p]):m[p]);return f}function d(f,m,p){var b;(f||!s(b=p.shift()))&&(b={});for(var _=0;_<p.length;++_){var w=p[_];if(s(w)){for(var x in w)if(!(x==="__proto__"||x==="constructor"||x==="prototype")){var C=f?o(w[x]):w[x];b[x]=m?u(b[x],C):C}}}return b}}(_g,_g.exports)),_g.exports}var _6;function U_e(){return _6||(_6=1,function(e){var t=n(I_e());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=he,e.combineLoads=ne,e.load=J,e.save=ee;function n(z){return z&&z.__esModule?z:{default:z}}function r(z,F){return d(z)||u(z,F)||o(z,F)||i()}function i(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(z,F){if(z){if(typeof z=="string")return s(z,F);var P=Object.prototype.toString.call(z).slice(8,-1);return P==="Object"&&z.constructor&&(P=z.constructor.name),P==="Map"||P==="Set"?Array.from(z):P==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(P)?s(z,F):void 0}}function s(z,F){(F==null||F>z.length)&&(F=z.length);for(var P=0,G=Array(F);P<F;P++)G[P]=z[P];return G}function u(z,F){var P=z==null?null:typeof Symbol<"u"&&z[Symbol.iterator]||z["@@iterator"];if(P!=null){var G,Y,te=[],ue=!0,fe=!1;try{for(P=P.call(z);!(ue=(G=P.next()).done)&&(te.push(G.value),!(F&&te.length===F));ue=!0);}catch(ge){fe=!0,Y=ge}finally{try{ue||P.return==null||P.return()}finally{if(fe)throw Y}}return te}}function d(z){if(Array.isArray(z))return z}function f(z){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},f(z)}function m(z,F,P){return F in z?Object.defineProperty(z,F,{value:P,enumerable:!0,configurable:!0,writable:!0}):z[F]=P,z}var p="[Redux-LocalStorage-Simple]",b="redux_localstorage_simple",_="_",w=[],x=[],C=0,E=!1,j=!1,O=new Map;function N(z){console.warn(p,z)}function U(){}var $=function(z){return z?U:N};function K(z,F){return F===void 0?null:z.length===1?F[z[0]]:K(z.slice(1),F[z[0]])}function X(z){function F(G,Y){return G.length===0?Y:F(G.slice(1),m({},G[0],Y))}var P=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return F(z.split(".").reverse(),P)}function oe(z){this.warnFn=z||N}Object.defineProperty(oe.prototype,"length",{get:function(){try{return localStorage.length}catch(z){this.warnFn(z)}return 0},configurable:!0,enumerable:!0}),oe.prototype.key=function(z){try{return localStorage.key(z)}catch(F){this.warnFn(F)}return null},oe.prototype.setItem=function(z,F){try{localStorage.setItem(z,JSON.stringify(F))}catch(P){this.warnFn(P)}},oe.prototype.getItem=function(z){try{return JSON.parse(localStorage.getItem(z))}catch(F){this.warnFn(F)}return null},oe.prototype.removeItem=function(z){try{localStorage.removeItem(z)}catch(F){this.warnFn(F)}};function ee(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},F=z.states,P=F===void 0?w:F,G=z.ignoreStates,Y=G===void 0?x:G,te=z.namespace,ue=te===void 0?b:te,fe=z.namespaceSeparator,ge=fe===void 0?_:fe,D=z.debounce,B=D===void 0?C:D,W=z.disableWarnings,le=W===void 0?j:W;return function(H){return function(ae){return function(ce){function ve(Fe,He){return 1<Fe.split(".").length?K(Fe.split("."),He):K([Fe],He)}function de(){P.length===0?Ve.setItem(ue,we):P.forEach(function(Fe){var He=ue+ge+Fe,be=ve(Fe,we);be?Ve.setItem(He,be):Ve.removeItem(He)})}var we,Ae=$(le),Le=ae(ce);Q(P)||(console.error(p,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),P=w),Q(Y)||(console.error(p,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),Y=x),0<Y.length&&(Y=Y.filter(function(Fe){return se(Fe)?Fe:void console.error(p,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),se(ue)||(console.error(p,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ue=b),se(ge)||(console.error(p,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),ge=_),Z(B)||(console.error(p,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),B=C),we=0<Y.length?k(Y,H.getState()):H.getState();var Ve=new oe(Ae);return B?(O.get(P+ue)&&clearTimeout(O.get(P+ue)),O.set(P+ue,setTimeout(function(){de()},B))):de(),Le}}}}function J(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},F=z.states,P=F===void 0?w:F,G=z.immutablejs,Y=G===void 0?E:G,te=z.namespace,ue=te===void 0?b:te,fe=z.namespaceSeparator,ge=fe===void 0?_:fe,D=z.preloadedState,B=D===void 0?{}:D,W=z.disableWarnings,le=W===void 0?j:W,H=$(le);Q(P)||(console.error(p,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),P=w),se(ue)||(console.error(p,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ue=b),se(ge)||(console.error(p,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),ge=_),Y===!0&&H("Support for Immutable.js data structures has been deprecated as of version 2.0.0. Please use version 1.4.0 if you require this functionality.");var ae=new oe(H),ce=B;if(P.length===0){var ve=ae.getItem(ue);ve&&(ce=ve)}else P.forEach(function(de){var we=ue+ge+de,Ae=ae.getItem(we);Ae?ce=t.default.recursive(ce,X(de,Ae)):H("Invalid load '"+we+"' provided. Check your 'states' in 'load()'. If this is your first time running this app you may see this message. To disable it in future use the 'disableWarnings' flag, see documentation.")});return ce}function ne(){for(var z={},F=arguments.length,P=Array(F),G=0;G<F;G++)P[G]=arguments[G];return P.forEach(function(Y){for(var te in I(Y)||(console.error(p,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),Y={}),Y)z[te]=Y[te]}),z}function he(){var z=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},F=z.namespace,P=F===void 0?b:F,G=z.disableWarnings,Y=G===void 0?j:G,te=$(Y);se(P)||(console.error(p,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),P=b);for(var ue,fe=new oe(te),ge=fe.length,D=0;D<ge;D++)ue=fe.key(D),ue&&ue.slice(0,P.length)===P&&fe.removeItem(ue)}function Q(z){return Object.prototype.toString.call(z)==="[object Array]"}function se(z){return typeof z=="string"}function Z(z){return typeof z=="number"&&isFinite(z)&&Math.floor(z)===z}function I(z){return z!==null&&f(z)==="object"}function k(z,F){var P=Object.entries(F).reduce(function(G,Y){var te=r(Y,2),ue=te[0];return te[1],z.indexOf(ue)===-1&&(G[ue]=F[ue]),G},{});return P}}(px)),px}var hU=U_e();const z_e=e=>ly({appUpdated:mX,servers:Jbe,selectedServer:e.selectedServerReducer,settings:x_e}),B_e=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),mU={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},F_e=B_e(hU.load(mU)),$_e=e=>Fw({devTools:!1,reducer:z_e(e),preloadedState:F_e,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(hU.save(mU))}),V_e=!!(window.location.hostname==="localhost"||window.location.hostname==="[::1]"||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));function H_e(e){if("serviceWorker"in navigator){if(new URL(Dg.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${Dg.homepage}/service-worker.js`;V_e?(q_e(n,e),navigator.serviceWorker.ready.then(()=>{console.log("This web app is being served cache-first by a service worker. To learn more, visit https://cra.link/PWA")})):pU(n,e)})}}function pU(e,t){navigator.serviceWorker.register(e).then(n=>{n.onupdatefound=()=>{const r=n.installing;r!=null&&(r.onstatechange=()=>{r.state==="installed"&&(navigator.serviceWorker.controller?(console.log("New content is available and will be used when all tabs for this page are closed. See https://cra.link/PWA."),t&&t.onUpdate&&t.onUpdate(n)):(console.log("Content is cached for offline use."),t&&t.onSuccess&&t.onSuccess(n)))})}}).catch(n=>{console.error("Error during service worker registration:",n)})}function q_e(e,t){fetch(e,{headers:{"Service-Worker":"script"}}).then(n=>{const r=n.headers.get("content-type");n.status===404||r!=null&&r.indexOf("javascript")===-1?navigator.serviceWorker.ready.then(i=>{i.unregister().then(()=>{window.location.reload()})}):pU(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const gU=$_e(E3),{App:G_e,ScrollToTop:Y_e,ErrorHandler:W_e,appUpdateAvailable:K_e}=E3;$z.createRoot(document.getElementById("root")).render(y.jsx(K2,{store:gU,children:y.jsx(B6,{basename:Dg.homepage,children:y.jsx(W_e,{children:y.jsx(Y_e,{children:y.jsx(G_e,{})})})})}));H_e({onUpdate(){gU.dispatch(K_e())}});