Files
shlink-web-client/feature/tooltips/assets/index-aqNeCcDX.js

822 lines
1.6 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.
var FK=Object.defineProperty;var dN=e=>{throw TypeError(e)};var qK=(e,t,n)=>t in e?FK(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var bf=(e,t,n)=>qK(e,typeof t!="symbol"?t+"":t,n),hN=(e,t,n)=>t.has(e)||dN("Cannot "+n);var fp=(e,t,n)=>(hN(e,t,"read from private field"),n?n.call(e):t.get(e)),dp=(e,t,n)=>t.has(e)?dN("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),hp=(e,t,n,r)=>(hN(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);function VK(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 a=Object.getOwnPropertyDescriptor(r,i);a&&Object.defineProperty(e,i,a.get?a:{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 a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var fy=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Nt(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var gx={exports:{}},pp={};/**
* @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 pN;function HK(){if(pN)return pp;pN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,i,a){var o=null;if(a!==void 0&&(o=""+a),i.key!==void 0&&(o=""+i.key),"key"in i){a={};for(var l in i)l!=="key"&&(a[l]=i[l])}else a=i;return i=a.ref,{$$typeof:e,type:r,key:o,ref:i!==void 0?i:null,props:a}}return pp.Fragment=t,pp.jsx=n,pp.jsxs=n,pp}var mN;function WK(){return mN||(mN=1,gx.exports=HK()),gx.exports}var g=WK(),yx={exports:{}},mp={},bx={exports:{}},wx={};/**
* @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 vN;function GK(){return vN||(vN=1,function(e){function t(W,B){var U=W.length;W.push(B);e:for(;0<U;){var F=U-1>>>1,M=W[F];if(0<i(M,B))W[F]=B,W[U]=M,U=F;else break e}}function n(W){return W.length===0?null:W[0]}function r(W){if(W.length===0)return null;var B=W[0],U=W.pop();if(U!==B){W[0]=U;e:for(var F=0,M=W.length,I=M>>>1;F<I;){var J=2*(F+1)-1,Y=W[J],ae=J+1,de=W[ae];if(0>i(Y,U))ae<M&&0>i(de,Y)?(W[F]=de,W[ae]=U,F=ae):(W[F]=Y,W[J]=U,F=J);else if(ae<M&&0>i(de,U))W[F]=de,W[ae]=U,F=ae;else break e}}return B}function i(W,B){var U=W.sortIndex-B.sortIndex;return U!==0?U:W.id-B.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var f=[],u=[],h=1,m=null,v=3,_=!1,x=!1,w=!1,S=!1,O=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,T=typeof setImmediate<"u"?setImmediate:null;function j(W){for(var B=n(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=W)r(u),B.sortIndex=B.expirationTime,t(f,B);else break;B=n(u)}}function P(W){if(w=!1,j(W),!x)if(n(f)!==null)x=!0,R||(R=!0,te());else{var B=n(u);B!==null&&ee(P,B.startTime-W)}}var R=!1,$=-1,q=5,K=-1;function H(){return S?!0:!(e.unstable_now()-K<q)}function G(){if(S=!1,R){var W=e.unstable_now();K=W;var B=!0;try{e:{x=!1,w&&(w=!1,C($),$=-1),_=!0;var U=v;try{t:{for(j(W),m=n(f);m!==null&&!(m.expirationTime>W&&H());){var F=m.callback;if(typeof F=="function"){m.callback=null,v=m.priorityLevel;var M=F(m.expirationTime<=W);if(W=e.unstable_now(),typeof M=="function"){m.callback=M,j(W),B=!0;break t}m===n(f)&&r(f),j(W)}else r(f);m=n(f)}if(m!==null)B=!0;else{var I=n(u);I!==null&&ee(P,I.startTime-W),B=!1}}break e}finally{m=null,v=U,_=!1}B=void 0}}finally{B?te():R=!1}}}var te;if(typeof T=="function")te=function(){T(G)};else if(typeof MessageChannel<"u"){var ie=new MessageChannel,X=ie.port2;ie.port1.onmessage=G,te=function(){X.postMessage(null)}}else te=function(){O(G,0)};function ee(W,B){$=O(function(){W(e.unstable_now())},B)}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(W){W.callback=null},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_next=function(W){switch(v){case 1:case 2:case 3:var B=3;break;default:B=v}var U=v;v=B;try{return W()}finally{v=U}},e.unstable_requestPaint=function(){S=!0},e.unstable_runWithPriority=function(W,B){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var U=v;v=W;try{return B()}finally{v=U}},e.unstable_scheduleCallback=function(W,B,U){var F=e.unstable_now();switch(typeof U=="object"&&U!==null?(U=U.delay,U=typeof U=="number"&&0<U?F+U:F):U=F,W){case 1:var M=-1;break;case 2:M=250;break;case 5:M=1073741823;break;case 4:M=1e4;break;default:M=5e3}return M=U+M,W={id:h++,callback:B,priorityLevel:W,startTime:U,expirationTime:M,sortIndex:-1},U>F?(W.sortIndex=U,t(u,W),n(f)===null&&W===n(u)&&(w?(C($),$=-1):w=!0,ee(P,U-F))):(W.sortIndex=M,t(f,W),x||_||(x=!0,R||(R=!0,te()))),W},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(W){var B=v;return function(){var U=v;v=B;try{return W.apply(this,arguments)}finally{v=U}}}}(wx)),wx}var gN;function YK(){return gN||(gN=1,bx.exports=GK()),bx.exports}var _x={exports:{}},Ot={};/**
* @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 yN;function KK(){if(yN)return Ot;yN=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"),a=Symbol.for("react.consumer"),o=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),m=Symbol.iterator;function v(M){return M===null||typeof M!="object"?null:(M=m&&M[m]||M["@@iterator"],typeof M=="function"?M:null)}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},x=Object.assign,w={};function S(M,I,J){this.props=M,this.context=I,this.refs=w,this.updater=J||_}S.prototype.isReactComponent={},S.prototype.setState=function(M,I){if(typeof M!="object"&&typeof M!="function"&&M!=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,M,I,"setState")},S.prototype.forceUpdate=function(M){this.updater.enqueueForceUpdate(this,M,"forceUpdate")};function O(){}O.prototype=S.prototype;function C(M,I,J){this.props=M,this.context=I,this.refs=w,this.updater=J||_}var T=C.prototype=new O;T.constructor=C,x(T,S.prototype),T.isPureReactComponent=!0;var j=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},R=Object.prototype.hasOwnProperty;function $(M,I,J,Y,ae,de){return J=de.ref,{$$typeof:e,type:M,key:I,ref:J!==void 0?J:null,props:de}}function q(M,I){return $(M.type,I,void 0,void 0,void 0,M.props)}function K(M){return typeof M=="object"&&M!==null&&M.$$typeof===e}function H(M){var I={"=":"=0",":":"=2"};return"$"+M.replace(/[=:]/g,function(J){return I[J]})}var G=/\/+/g;function te(M,I){return typeof M=="object"&&M!==null&&M.key!=null?H(""+M.key):I.toString(36)}function ie(){}function X(M){switch(M.status){case"fulfilled":return M.value;case"rejected":throw M.reason;default:switch(typeof M.status=="string"?M.then(ie,ie):(M.status="pending",M.then(function(I){M.status==="pending"&&(M.status="fulfilled",M.value=I)},function(I){M.status==="pending"&&(M.status="rejected",M.reason=I)})),M.status){case"fulfilled":return M.value;case"rejected":throw M.reason}}throw M}function ee(M,I,J,Y,ae){var de=typeof M;(de==="undefined"||de==="boolean")&&(M=null);var fe=!1;if(M===null)fe=!0;else switch(de){case"bigint":case"string":case"number":fe=!0;break;case"object":switch(M.$$typeof){case e:case t:fe=!0;break;case h:return fe=M._init,ee(fe(M._payload),I,J,Y,ae)}}if(fe)return ae=ae(M),fe=Y===""?"."+te(M,0):Y,j(ae)?(J="",fe!=null&&(J=fe.replace(G,"$&/")+"/"),ee(ae,I,J,"",function(V){return V})):ae!=null&&(K(ae)&&(ae=q(ae,J+(ae.key==null||M&&M.key===ae.key?"":(""+ae.key).replace(G,"$&/")+"/")+fe)),I.push(ae)),1;fe=0;var be=Y===""?".":Y+":";if(j(M))for(var z=0;z<M.length;z++)Y=M[z],de=be+te(Y,z),fe+=ee(Y,I,J,de,ae);else if(z=v(M),typeof z=="function")for(M=z.call(M),z=0;!(Y=M.next()).done;)Y=Y.value,de=be+te(Y,z++),fe+=ee(Y,I,J,de,ae);else if(de==="object"){if(typeof M.then=="function")return ee(X(M),I,J,Y,ae);throw I=String(M),Error("Objects are not valid as a React child (found: "+(I==="[object Object]"?"object with keys {"+Object.keys(M).join(", ")+"}":I)+"). If you meant to render a collection of children, use an array instead.")}return fe}function W(M,I,J){if(M==null)return M;var Y=[],ae=0;return ee(M,Y,"","",function(de){return I.call(J,de,ae++)}),Y}function B(M){if(M._status===-1){var I=M._result;I=I(),I.then(function(J){(M._status===0||M._status===-1)&&(M._status=1,M._result=J)},function(J){(M._status===0||M._status===-1)&&(M._status=2,M._result=J)}),M._status===-1&&(M._status=0,M._result=I)}if(M._status===1)return M._result.default;throw M._result}var U=typeof reportError=="function"?reportError:function(M){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var I=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof M=="object"&&M!==null&&typeof M.message=="string"?String(M.message):String(M),error:M});if(!window.dispatchEvent(I))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",M);return}console.error(M)};function F(){}return Ot.Children={map:W,forEach:function(M,I,J){W(M,function(){I.apply(this,arguments)},J)},count:function(M){var I=0;return W(M,function(){I++}),I},toArray:function(M){return W(M,function(I){return I})||[]},only:function(M){if(!K(M))throw Error("React.Children.only expected to receive a single React element child.");return M}},Ot.Component=S,Ot.Fragment=n,Ot.Profiler=i,Ot.PureComponent=C,Ot.StrictMode=r,Ot.Suspense=f,Ot.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,Ot.__COMPILER_RUNTIME={__proto__:null,c:function(M){return P.H.useMemoCache(M)}},Ot.cache=function(M){return function(){return M.apply(null,arguments)}},Ot.cloneElement=function(M,I,J){if(M==null)throw Error("The argument must be a React element, but you passed "+M+".");var Y=x({},M.props),ae=M.key,de=void 0;if(I!=null)for(fe in I.ref!==void 0&&(de=void 0),I.key!==void 0&&(ae=""+I.key),I)!R.call(I,fe)||fe==="key"||fe==="__self"||fe==="__source"||fe==="ref"&&I.ref===void 0||(Y[fe]=I[fe]);var fe=arguments.length-2;if(fe===1)Y.children=J;else if(1<fe){for(var be=Array(fe),z=0;z<fe;z++)be[z]=arguments[z+2];Y.children=be}return $(M.type,ae,void 0,void 0,de,Y)},Ot.createContext=function(M){return M={$$typeof:o,_currentValue:M,_currentValue2:M,_threadCount:0,Provider:null,Consumer:null},M.Provider=M,M.Consumer={$$typeof:a,_context:M},M},Ot.createElement=function(M,I,J){var Y,ae={},de=null;if(I!=null)for(Y in I.key!==void 0&&(de=""+I.key),I)R.call(I,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(ae[Y]=I[Y]);var fe=arguments.length-2;if(fe===1)ae.children=J;else if(1<fe){for(var be=Array(fe),z=0;z<fe;z++)be[z]=arguments[z+2];ae.children=be}if(M&&M.defaultProps)for(Y in fe=M.defaultProps,fe)ae[Y]===void 0&&(ae[Y]=fe[Y]);return $(M,de,void 0,void 0,null,ae)},Ot.createRef=function(){return{current:null}},Ot.forwardRef=function(M){return{$$typeof:l,render:M}},Ot.isValidElement=K,Ot.lazy=function(M){return{$$typeof:h,_payload:{_status:-1,_result:M},_init:B}},Ot.memo=function(M,I){return{$$typeof:u,type:M,compare:I===void 0?null:I}},Ot.startTransition=function(M){var I=P.T,J={};P.T=J;try{var Y=M(),ae=P.S;ae!==null&&ae(J,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(F,U)}catch(de){U(de)}finally{P.T=I}},Ot.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},Ot.use=function(M){return P.H.use(M)},Ot.useActionState=function(M,I,J){return P.H.useActionState(M,I,J)},Ot.useCallback=function(M,I){return P.H.useCallback(M,I)},Ot.useContext=function(M){return P.H.useContext(M)},Ot.useDebugValue=function(){},Ot.useDeferredValue=function(M,I){return P.H.useDeferredValue(M,I)},Ot.useEffect=function(M,I,J){var Y=P.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(M,I)},Ot.useId=function(){return P.H.useId()},Ot.useImperativeHandle=function(M,I,J){return P.H.useImperativeHandle(M,I,J)},Ot.useInsertionEffect=function(M,I){return P.H.useInsertionEffect(M,I)},Ot.useLayoutEffect=function(M,I){return P.H.useLayoutEffect(M,I)},Ot.useMemo=function(M,I){return P.H.useMemo(M,I)},Ot.useOptimistic=function(M,I){return P.H.useOptimistic(M,I)},Ot.useReducer=function(M,I,J){return P.H.useReducer(M,I,J)},Ot.useRef=function(M){return P.H.useRef(M)},Ot.useState=function(M){return P.H.useState(M)},Ot.useSyncExternalStore=function(M,I,J){return P.H.useSyncExternalStore(M,I,J)},Ot.useTransition=function(){return P.H.useTransition()},Ot.version="19.1.0",Ot}var bN;function n1(){return bN||(bN=1,_x.exports=KK()),_x.exports}var xx={exports:{}},jr={};/**
* @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 wN;function ZK(){if(wN)return jr;wN=1;var e=n1();function t(f){var u="https://react.dev/errors/"+f;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var h=2;h<arguments.length;h++)u+="&args[]="+encodeURIComponent(arguments[h])}return"Minified React error #"+f+"; visit "+u+" 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 a(f,u,h){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:i,key:m==null?null:""+m,children:f,containerInfo:u,implementation:h}}var o=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(f,u){if(f==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return jr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,jr.createPortal=function(f,u){var h=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(t(299));return a(f,u,null,h)},jr.flushSync=function(f){var u=o.T,h=r.p;try{if(o.T=null,r.p=2,f)return f()}finally{o.T=u,r.p=h,r.d.f()}},jr.preconnect=function(f,u){typeof f=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,r.d.C(f,u))},jr.prefetchDNS=function(f){typeof f=="string"&&r.d.D(f)},jr.preinit=function(f,u){if(typeof f=="string"&&u&&typeof u.as=="string"){var h=u.as,m=l(h,u.crossOrigin),v=typeof u.integrity=="string"?u.integrity:void 0,_=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;h==="style"?r.d.S(f,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:m,integrity:v,fetchPriority:_}):h==="script"&&r.d.X(f,{crossOrigin:m,integrity:v,fetchPriority:_,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},jr.preinitModule=function(f,u){if(typeof f=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var h=l(u.as,u.crossOrigin);r.d.M(f,{crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&r.d.M(f)},jr.preload=function(f,u){if(typeof f=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var h=u.as,m=l(h,u.crossOrigin);r.d.L(f,h,{crossOrigin:m,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},jr.preloadModule=function(f,u){if(typeof f=="string")if(u){var h=l(u.as,u.crossOrigin);r.d.m(f,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:h,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else r.d.m(f)},jr.requestFormReset=function(f){r.d.r(f)},jr.unstable_batchedUpdates=function(f,u){return f(u)},jr.useFormState=function(f,u,h){return o.H.useFormState(f,u,h)},jr.useFormStatus=function(){return o.H.useHostTransitionStatus()},jr.version="19.1.0",jr}var _N;function X9(){if(_N)return xx.exports;_N=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(),xx.exports=ZK(),xx.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 xN;function XK(){if(xN)return mp;xN=1;var e=YK(),t=n1(),n=X9();function r(s){var c="https://react.dev/errors/"+s;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function a(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function o(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function l(s){if(a(s)!==s)throw Error(r(188))}function f(s){var c=s.alternate;if(!c){if(c=a(s),c===null)throw Error(r(188));return c!==s?null:s}for(var p=s,b=c;;){var A=p.return;if(A===null)break;var N=A.alternate;if(N===null){if(b=A.return,b!==null){p=b;continue}break}if(A.child===N.child){for(N=A.child;N;){if(N===p)return l(A),s;if(N===b)return l(A),c;N=N.sibling}throw Error(r(188))}if(p.return!==b.return)p=A,b=N;else{for(var re=!1,ue=A.child;ue;){if(ue===p){re=!0,p=A,b=N;break}if(ue===b){re=!0,b=A,p=N;break}ue=ue.sibling}if(!re){for(ue=N.child;ue;){if(ue===p){re=!0,p=N,b=A;break}if(ue===b){re=!0,b=N,p=A;break}ue=ue.sibling}if(!re)throw Error(r(189))}}if(p.alternate!==b)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:c}function u(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=u(s),c!==null)return c;s=s.sibling}return null}var h=Object.assign,m=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),_=Symbol.for("react.portal"),x=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),S=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),T=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),R=Symbol.for("react.suspense_list"),$=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),K=Symbol.for("react.activity"),H=Symbol.for("react.memo_cache_sentinel"),G=Symbol.iterator;function te(s){return s===null||typeof s!="object"?null:(s=G&&s[G]||s["@@iterator"],typeof s=="function"?s:null)}var ie=Symbol.for("react.client.reference");function X(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===ie?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case x:return"Fragment";case S:return"Profiler";case w:return"StrictMode";case P:return"Suspense";case R:return"SuspenseList";case K:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case _:return"Portal";case T:return(s.displayName||"Context")+".Provider";case C:return(s._context.displayName||"Context")+".Consumer";case j:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case $:return c=s.displayName||null,c!==null?c:X(s.type)||"Memo";case q:c=s._payload,s=s._init;try{return X(s(c))}catch{}}return null}var ee=Array.isArray,W=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,U={pending:!1,data:null,method:null,action:null},F=[],M=-1;function I(s){return{current:s}}function J(s){0>M||(s.current=F[M],F[M]=null,M--)}function Y(s,c){M++,F[M]=s.current,s.current=c}var ae=I(null),de=I(null),fe=I(null),be=I(null);function z(s,c){switch(Y(fe,c),Y(de,s),Y(ae,null),c.nodeType){case 9:case 11:s=(s=c.documentElement)&&(s=s.namespaceURI)?UM(s):0;break;default:if(s=c.tagName,c=c.namespaceURI)c=UM(c),s=zM(c,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}J(ae),Y(ae,s)}function V(){J(ae),J(de),J(fe)}function ne(s){s.memoizedState!==null&&Y(be,s);var c=ae.current,p=zM(c,s.type);c!==p&&(Y(de,s),Y(ae,p))}function ce(s){de.current===s&&(J(ae),J(de)),be.current===s&&(J(be),op._currentValue=U)}var Q=Object.prototype.hasOwnProperty,le=e.unstable_scheduleCallback,pe=e.unstable_cancelCallback,ye=e.unstable_shouldYield,me=e.unstable_requestPaint,xe=e.unstable_now,Ae=e.unstable_getCurrentPriorityLevel,De=e.unstable_ImmediatePriority,ze=e.unstable_UserBlockingPriority,$e=e.unstable_NormalPriority,Fe=e.unstable_LowPriority,we=e.unstable_IdlePriority,Se=e.log,ke=e.unstable_setDisableYieldValue,Ne=null,Pe=null;function qe(s){if(typeof Se=="function"&&ke(s),Pe&&typeof Pe.setStrictMode=="function")try{Pe.setStrictMode(Ne,s)}catch{}}var Ge=Math.clz32?Math.clz32:st,Qe=Math.log,ft=Math.LN2;function st(s){return s>>>=0,s===0?32:31-(Qe(s)/ft|0)|0}var wt=256,kt=4194304;function It(s){var c=s&42;if(c!==0)return c;switch(s&-s){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:case 262144:case 524288:case 1048576:case 2097152:return s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function $t(s,c,p){var b=s.pendingLanes;if(b===0)return 0;var A=0,N=s.suspendedLanes,re=s.pingedLanes;s=s.warmLanes;var ue=b&134217727;return ue!==0?(b=ue&~N,b!==0?A=It(b):(re&=ue,re!==0?A=It(re):p||(p=ue&~s,p!==0&&(A=It(p))))):(ue=b&~N,ue!==0?A=It(ue):re!==0?A=It(re):p||(p=b&~s,p!==0&&(A=It(p)))),A===0?0:c!==0&&c!==A&&(c&N)===0&&(N=A&-A,p=c&-c,N>=p||N===32&&(p&4194048)!==0)?c:A}function Cr(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function Wn(s,c){switch(s){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 Es(){var s=wt;return wt<<=1,(wt&4194048)===0&&(wt=256),s}function li(){var s=kt;return kt<<=1,(kt&62914560)===0&&(kt=4194304),s}function Ts(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function za(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Pc(s,c,p,b,A,N){var re=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var ue=s.entanglements,ge=s.expirationTimes,je=s.hiddenUpdates;for(p=re&~p;0<p;){var Be=31-Ge(p),Ve=1<<Be;ue[Be]=0,ge[Be]=-1;var Re=je[Be];if(Re!==null)for(je[Be]=null,Be=0;Be<Re.length;Be++){var Me=Re[Be];Me!==null&&(Me.lane&=-536870913)}p&=~Ve}b!==0&&As(s,b,0),N!==0&&A===0&&s.tag!==0&&(s.suspendedLanes|=N&~(re&~c))}function As(s,c,p){s.pendingLanes|=c,s.suspendedLanes&=~c;var b=31-Ge(c);s.entangledLanes|=c,s.entanglements[b]=s.entanglements[b]|1073741824|p&4194090}function Fa(s,c){var p=s.entangledLanes|=c;for(s=s.entanglements;p;){var b=31-Ge(p),A=1<<b;A&c|s[b]&c&&(s[b]|=c),p&=~A}}function yn(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function hn(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function tr(){var s=B.p;return s!==0?s:(s=window.event,s===void 0?32:oN(s.type))}function Gn(s,c){var p=B.p;try{return B.p=s,c()}finally{B.p=p}}var nn=Math.random().toString(36).slice(2),Mt="__reactFiber$"+nn,rn="__reactProps$"+nn,nr="__reactContainer$"+nn,Ln="__reactEvents$"+nn,lt="__reactListeners$"+nn,Hv="__reactHandles$"+nn,ph="__reactResources$"+nn,js="__reactMarker$"+nn;function Rc(s){delete s[Mt],delete s[rn],delete s[Ln],delete s[lt],delete s[Hv]}function qa(s){var c=s[Mt];if(c)return c;for(var p=s.parentNode;p;){if(c=p[nr]||p[Mt]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(s=HM(s);s!==null;){if(p=s[Mt])return p;s=HM(s)}return c}s=p,p=s.parentNode}return null}function Oo(s){if(s=s[Mt]||s[nr]){var c=s.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return s}return null}function Ui(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s.stateNode;throw Error(r(33))}function Co(s){var c=s[ph];return c||(c=s[ph]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function zn(s){s[js]=!0}var Wv=new Set,Gv={};function Eo(s,c){To(s,c),To(s+"Capture",c)}function To(s,c){for(Gv[s]=c,s=0;s<c.length;s++)Wv.add(c[s])}var Tw=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]*$"),ou={},Yv={};function Aw(s){return Q.call(Yv,s)?!0:Q.call(ou,s)?!1:Tw.test(s)?Yv[s]=!0:(ou[s]=!0,!1)}function Mc(s,c,p){if(Aw(c))if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":s.removeAttribute(c);return;case"boolean":var b=c.toLowerCase().slice(0,5);if(b!=="data-"&&b!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+p)}}function Nc(s,c,p){if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttribute(c,""+p)}}function ha(s,c,p,b){if(b===null)s.removeAttribute(p);else{switch(typeof b){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(p);return}s.setAttributeNS(c,p,""+b)}}var su,Ps;function Ao(s){if(su===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);su=c&&c[1]||"",Ps=-1<p.stack.indexOf(`
at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
`+su+s+Ps}var Lc=!1;function jo(s,c){if(!s||Lc)return"";Lc=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var b={DetermineComponentFrameRoot:function(){try{if(c){var Ve=function(){throw Error()};if(Object.defineProperty(Ve.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Ve,[])}catch(Me){var Re=Me}Reflect.construct(s,[],Ve)}else{try{Ve.call()}catch(Me){Re=Me}s.call(Ve.prototype)}}else{try{throw Error()}catch(Me){Re=Me}(Ve=s())&&typeof Ve.catch=="function"&&Ve.catch(function(){})}}catch(Me){if(Me&&Re&&typeof Me.stack=="string")return[Me.stack,Re.stack]}return[null,null]}};b.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var A=Object.getOwnPropertyDescriptor(b.DetermineComponentFrameRoot,"name");A&&A.configurable&&Object.defineProperty(b.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var N=b.DetermineComponentFrameRoot(),re=N[0],ue=N[1];if(re&&ue){var ge=re.split(`
`),je=ue.split(`
`);for(A=b=0;b<ge.length&&!ge[b].includes("DetermineComponentFrameRoot");)b++;for(;A<je.length&&!je[A].includes("DetermineComponentFrameRoot");)A++;if(b===ge.length||A===je.length)for(b=ge.length-1,A=je.length-1;1<=b&&0<=A&&ge[b]!==je[A];)A--;for(;1<=b&&0<=A;b--,A--)if(ge[b]!==je[A]){if(b!==1||A!==1)do if(b--,A--,0>A||ge[b]!==je[A]){var Be=`
`+ge[b].replace(" at new "," at ");return s.displayName&&Be.includes("<anonymous>")&&(Be=Be.replace("<anonymous>",s.displayName)),Be}while(1<=b&&0<=A);break}}}finally{Lc=!1,Error.prepareStackTrace=p}return(p=s?s.displayName||s.name:"")?Ao(p):""}function Lt(s){switch(s.tag){case 26:case 27:case 5:return Ao(s.type);case 16:return Ao("Lazy");case 13:return Ao("Suspense");case 19:return Ao("SuspenseList");case 0:case 15:return jo(s.type,!1);case 11:return jo(s.type.render,!1);case 1:return jo(s.type,!0);case 31:return Ao("Activity");default:return""}}function an(s){try{var c="";do c+=Lt(s),s=s.return;while(s);return c}catch(p){return`
Error generating stack: `+p.message+`
`+p.stack}}function pr(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function Po(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Rs(s){var c=Po(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),b=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var A=p.get,N=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return A.call(this)},set:function(re){b=""+re,N.call(this,re)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return b},setValue:function(re){b=""+re},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Ms(s){s._valueTracker||(s._valueTracker=Rs(s))}function _t(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),b="";return s&&(b=Po(s)?s.checked?"true":"false":s.value),s=b,s!==p?(c.setValue(s),!0):!1}function on(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var mh=/[\n"\\]/g;function mr(s){return s.replace(mh,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Er(s,c,p,b,A,N,re,ue){s.name="",re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"?s.type=re:s.removeAttribute("type"),c!=null?re==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+pr(c)):s.value!==""+pr(c)&&(s.value=""+pr(c)):re!=="submit"&&re!=="reset"||s.removeAttribute("value"),c!=null?Ns(s,re,pr(c)):p!=null?Ns(s,re,pr(p)):b!=null&&s.removeAttribute("value"),A==null&&N!=null&&(s.defaultChecked=!!N),A!=null&&(s.checked=A&&typeof A!="function"&&typeof A!="symbol"),ue!=null&&typeof ue!="function"&&typeof ue!="symbol"&&typeof ue!="boolean"?s.name=""+pr(ue):s.removeAttribute("name")}function Kv(s,c,p,b,A,N,re,ue){if(N!=null&&typeof N!="function"&&typeof N!="symbol"&&typeof N!="boolean"&&(s.type=N),c!=null||p!=null){if(!(N!=="submit"&&N!=="reset"||c!=null))return;p=p!=null?""+pr(p):"",c=c!=null?""+pr(c):p,ue||c===s.value||(s.value=c),s.defaultValue=c}b=b??A,b=typeof b!="function"&&typeof b!="symbol"&&!!b,s.checked=ue?s.checked:!!b,s.defaultChecked=!!b,re!=null&&typeof re!="function"&&typeof re!="symbol"&&typeof re!="boolean"&&(s.name=re)}function Ns(s,c,p){c==="number"&&on(s.ownerDocument)===s||s.defaultValue===""+p||(s.defaultValue=""+p)}function Qr(s,c,p,b){if(s=s.options,c){c={};for(var A=0;A<p.length;A++)c["$"+p[A]]=!0;for(p=0;p<s.length;p++)A=c.hasOwnProperty("$"+s[p].value),s[p].selected!==A&&(s[p].selected=A),A&&b&&(s[p].defaultSelected=!0)}else{for(p=""+pr(p),c=null,A=0;A<s.length;A++){if(s[A].value===p){s[A].selected=!0,b&&(s[A].defaultSelected=!0);return}c!==null||s[A].disabled||(c=s[A])}c!==null&&(c.selected=!0)}}function Sn(s,c,p){if(c!=null&&(c=""+pr(c),c!==s.value&&(s.value=c),p==null)){s.defaultValue!==c&&(s.defaultValue=c);return}s.defaultValue=p!=null?""+pr(p):""}function Va(s,c,p,b){if(c==null){if(b!=null){if(p!=null)throw Error(r(92));if(ee(b)){if(1<b.length)throw Error(r(93));b=b[0]}p=b}p==null&&(p=""),c=p}p=pr(c),s.defaultValue=p,b=s.textContent,b===p&&b!==""&&b!==null&&(s.value=b)}function zi(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var lu=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 Dc(s,c,p){var b=c.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?b?s.setProperty(c,""):c==="float"?s.cssFloat="":s[c]="":b?s.setProperty(c,p):typeof p!="number"||p===0||lu.has(c)?c==="float"?s.cssFloat=p:s[c]=(""+p).trim():s[c]=p+"px"}function Ls(s,c,p){if(c!=null&&typeof c!="object")throw Error(r(62));if(s=s.style,p!=null){for(var b in p)!p.hasOwnProperty(b)||c!=null&&c.hasOwnProperty(b)||(b.indexOf("--")===0?s.setProperty(b,""):b==="float"?s.cssFloat="":s[b]="");for(var A in c)b=c[A],c.hasOwnProperty(A)&&p[A]!==b&&Dc(s,A,b)}else for(var N in c)c.hasOwnProperty(N)&&Dc(s,N,c[N])}function uu(s){if(s.indexOf("-")===-1)return!1;switch(s){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 vh=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"]]),kc=/^[\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 Ds(s){return kc.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var cu=null;function ks(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Ro=null,Ha=null;function Zv(s){var c=Oo(s);if(c&&(s=c.stateNode)){var p=s[rn]||null;e:switch(s=c.stateNode,c.type){case"input":if(Er(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),c=p.name,p.type==="radio"&&c!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+mr(""+c)+'"][type="radio"]'),c=0;c<p.length;c++){var b=p[c];if(b!==s&&b.form===s.form){var A=b[rn]||null;if(!A)throw Error(r(90));Er(b,A.value,A.defaultValue,A.defaultValue,A.checked,A.defaultChecked,A.type,A.name)}}for(c=0;c<p.length;c++)b=p[c],b.form===s.form&&_t(b)}break e;case"textarea":Sn(s,p.value,p.defaultValue);break e;case"select":c=p.value,c!=null&&Qr(s,!!p.multiple,c,!1)}}}var bt=!1;function ui(s,c,p){if(bt)return s(c,p);bt=!0;try{var b=s(c);return b}finally{if(bt=!1,(Ro!==null||Ha!==null)&&(Vg(),Ro&&(c=Ro,s=Ha,Ha=Ro=null,Zv(c),s)))for(c=0;c<s.length;c++)Zv(s[c])}}function Bt(s,c){var p=s.stateNode;if(p===null)return null;var b=p[rn]||null;if(b===null)return null;p=b[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(b=!b.disabled)||(s=s.type,b=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!b;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(r(231,c,typeof p));return p}var Fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fu=!1;if(Fi)try{var Mo={};Object.defineProperty(Mo,"passive",{get:function(){fu=!0}}),window.addEventListener("test",Mo,Mo),window.removeEventListener("test",Mo,Mo)}catch{fu=!1}var qi=null,pa=null,Is=null;function $s(){if(Is)return Is;var s,c=pa,p=c.length,b,A="value"in qi?qi.value:qi.textContent,N=A.length;for(s=0;s<p&&c[s]===A[s];s++);var re=p-s;for(b=1;b<=re&&c[p-b]===A[N-b];b++);return Is=A.slice(s,1<b?1-b:void 0)}function Tn(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function Vi(){return!0}function gh(){return!1}function vr(s){function c(p,b,A,N,re){this._reactName=p,this._targetInst=A,this.type=b,this.nativeEvent=N,this.target=re,this.currentTarget=null;for(var ue in s)s.hasOwnProperty(ue)&&(p=s[ue],this[ue]=p?p(N):N[ue]);return this.isDefaultPrevented=(N.defaultPrevented!=null?N.defaultPrevented:N.returnValue===!1)?Vi:gh,this.isPropagationStopped=gh,this}return h(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=Vi)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=Vi)},persist:function(){},isPersistent:Vi}),c}var No={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},du=vr(No),Lo=h({},No,{view:0,detail:0}),jw=vr(Lo),Ic,Et,hu,Tr=h({},Lo,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$c,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==hu&&(hu&&s.type==="mousemove"?(Ic=s.screenX-hu.screenX,Et=s.screenY-hu.screenY):Et=Ic=0,hu=s),Ic)},movementY:function(s){return"movementY"in s?s.movementY:Et}}),Bs=vr(Tr),Xv=h({},Tr,{dataTransfer:0}),Pw=vr(Xv),yh=h({},Lo,{relatedTarget:0}),bh=vr(yh),Qv=h({},No,{animationName:0,elapsedTime:0,pseudoElement:0}),Rw=vr(Qv),Mw=h({},No,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),wh=vr(Mw),Nw=h({},No,{data:0}),ci=vr(Nw),Lw={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Jv={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"},Wa={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function eg(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=Wa[s])?!!c[s]:!1}function $c(){return eg}var _h=h({},Lo,{key:function(s){if(s.key){var c=Lw[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=Tn(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?Jv[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$c,charCode:function(s){return s.type==="keypress"?Tn(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?Tn(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),Dw=vr(_h),tg=h({},Tr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),xh=vr(tg),kw=h({},Lo,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$c}),Iw=vr(kw),Sh=h({},No,{propertyName:0,elapsedTime:0,pseudoElement:0}),$w=vr(Sh),ng=h({},Tr,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),rg=vr(ng),Bc=h({},No,{newState:0,oldState:0}),Do=vr(Bc),Bw=[9,13,27,32],ko=Fi&&"CompositionEvent"in window,rr=null;Fi&&"documentMode"in document&&(rr=document.documentMode);var ig=Fi&&"TextEvent"in window&&!rr,Oh=Fi&&(!ko||rr&&8<rr&&11>=rr),ag=" ",Uc=!1;function zc(s,c){switch(s){case"keyup":return Bw.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function og(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Us=!1;function sg(s,c){switch(s){case"compositionend":return og(c);case"keypress":return c.which!==32?null:(Uc=!0,ag);case"textInput":return s=c.data,s===ag&&Uc?null:s;default:return null}}function Uw(s,c){if(Us)return s==="compositionend"||!ko&&zc(s,c)?(s=$s(),Is=pa=qi=null,Us=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Oh&&c.locale!=="ko"?null:c.data;default:return null}}var fi={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 Io(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!fi[s.type]:c==="textarea"}function lg(s,c,p,b){Ro?Ha?Ha.push(b):Ha=[b]:Ro=b,c=Zg(c,"onChange"),0<c.length&&(p=new du("onChange","change",null,p,b),s.push({event:p,listeners:c}))}var kr=null,pu=null;function zs(s){DM(s,0)}function Fc(s){var c=Ui(s);if(_t(c))return s}function Fs(s,c){if(s==="change")return c}var Ch=!1;if(Fi){var qs;if(Fi){var Eh="oninput"in document;if(!Eh){var ma=document.createElement("div");ma.setAttribute("oninput","return;"),Eh=typeof ma.oninput=="function"}qs=Eh}else qs=!1;Ch=qs&&(!document.documentMode||9<document.documentMode)}function mu(){kr&&(kr.detachEvent("onpropertychange",ug),pu=kr=null)}function ug(s){if(s.propertyName==="value"&&Fc(pu)){var c=[];lg(c,pu,s,ks(s)),ui(zs,c)}}function Th(s,c,p){s==="focusin"?(mu(),kr=c,pu=p,kr.attachEvent("onpropertychange",ug)):s==="focusout"&&mu()}function zw(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return Fc(pu)}function va(s,c){if(s==="click")return Fc(c)}function Fw(s,c){if(s==="input"||s==="change")return Fc(c)}function Vs(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var Ir=typeof Object.is=="function"?Object.is:Vs;function $r(s,c){if(Ir(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var p=Object.keys(s),b=Object.keys(c);if(p.length!==b.length)return!1;for(b=0;b<p.length;b++){var A=p[b];if(!Q.call(c,A)||!Ir(s[A],c[A]))return!1}return!0}function vu(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Ah(s,c){var p=vu(s);s=0;for(var b;p;){if(p.nodeType===3){if(b=s+p.textContent.length,s<=c&&b>=c)return{node:p,offset:c-s};s=b}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=vu(p)}}function qc(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?qc(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function gu(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=on(s.document);c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=on(s.document)}return c}function yu(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}var Vc=Fi&&"documentMode"in document&&11>=document.documentMode,di=null,Hs=null,$o=null,Hc=!1;function cg(s,c,p){var b=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Hc||di==null||di!==on(b)||(b=di,"selectionStart"in b&&yu(b)?b={start:b.selectionStart,end:b.selectionEnd}:(b=(b.ownerDocument&&b.ownerDocument.defaultView||window).getSelection(),b={anchorNode:b.anchorNode,anchorOffset:b.anchorOffset,focusNode:b.focusNode,focusOffset:b.focusOffset}),$o&&$r($o,b)||($o=b,b=Zg(Hs,"onSelect"),0<b.length&&(c=new du("onSelect","select",null,c,p),s.push({event:c,listeners:b}),c.target=di)))}function Hi(s,c){var p={};return p[s.toLowerCase()]=c.toLowerCase(),p["Webkit"+s]="webkit"+c,p["Moz"+s]="moz"+c,p}var Ws={animationend:Hi("Animation","AnimationEnd"),animationiteration:Hi("Animation","AnimationIteration"),animationstart:Hi("Animation","AnimationStart"),transitionrun:Hi("Transition","TransitionRun"),transitionstart:Hi("Transition","TransitionStart"),transitioncancel:Hi("Transition","TransitionCancel"),transitionend:Hi("Transition","TransitionEnd")},Wc={},fg={};Fi&&(fg=document.createElement("div").style,"AnimationEvent"in window||(delete Ws.animationend.animation,delete Ws.animationiteration.animation,delete Ws.animationstart.animation),"TransitionEvent"in window||delete Ws.transitionend.transition);function Ga(s){if(Wc[s])return Wc[s];if(!Ws[s])return s;var c=Ws[s],p;for(p in c)if(c.hasOwnProperty(p)&&p in fg)return Wc[s]=c[p];return s}var dg=Ga("animationend"),hi=Ga("animationiteration"),bu=Ga("animationstart"),qw=Ga("transitionrun"),Gc=Ga("transitionstart"),Vw=Ga("transitioncancel"),jh=Ga("transitionend"),hg=new Map,Bo="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(" ");Bo.push("scrollEnd");function pi(s,c){hg.set(s,c),Eo(c,[s])}var Uo=new WeakMap;function Br(s,c){if(typeof s=="object"&&s!==null){var p=Uo.get(s);return p!==void 0?p:(c={value:s,source:c,stack:an(c)},Uo.set(s,c),c)}return{value:s,source:c,stack:an(c)}}var Ur=[],Gs=0,mi=0;function wu(){for(var s=Gs,c=mi=Gs=0;c<s;){var p=Ur[c];Ur[c++]=null;var b=Ur[c];Ur[c++]=null;var A=Ur[c];Ur[c++]=null;var N=Ur[c];if(Ur[c++]=null,b!==null&&A!==null){var re=b.pending;re===null?A.next=A:(A.next=re.next,re.next=A),b.pending=A}N!==0&&xu(p,A,N)}}function _u(s,c,p,b){Ur[Gs++]=s,Ur[Gs++]=c,Ur[Gs++]=p,Ur[Gs++]=b,mi|=b,s.lanes|=b,s=s.alternate,s!==null&&(s.lanes|=b)}function zo(s,c,p,b){return _u(s,c,p,b),Ya(s)}function Ys(s,c){return _u(s,null,null,c),Ya(s)}function xu(s,c,p){s.lanes|=p;var b=s.alternate;b!==null&&(b.lanes|=p);for(var A=!1,N=s.return;N!==null;)N.childLanes|=p,b=N.alternate,b!==null&&(b.childLanes|=p),N.tag===22&&(s=N.stateNode,s===null||s._visibility&1||(A=!0)),s=N,N=N.return;return s.tag===3?(N=s.stateNode,A&&c!==null&&(A=31-Ge(p),s=N.hiddenUpdates,b=s[A],b===null?s[A]=[c]:b.push(c),c.lane=p|536870912),N):null}function Ya(s){if(50<Qh)throw Qh=0,z_=null,Error(r(185));for(var c=s.return;c!==null;)s=c,c=s.return;return s.tag===3?s.stateNode:null}var Fo={};function pg(s,c,p,b){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=b,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zr(s,c,p,b){return new pg(s,c,p,b)}function Yc(s){return s=s.prototype,!(!s||!s.isReactComponent)}function Wi(s,c){var p=s.alternate;return p===null?(p=zr(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&65011712,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p.refCleanup=s.refCleanup,p}function Ph(s,c){s.flags&=65011714;var p=s.alternate;return p===null?(s.childLanes=0,s.lanes=c,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=p.childLanes,s.lanes=p.lanes,s.child=p.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=p.memoizedProps,s.memoizedState=p.memoizedState,s.updateQueue=p.updateQueue,s.type=p.type,c=p.dependencies,s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),s}function Su(s,c,p,b,A,N){var re=0;if(b=s,typeof s=="function")Yc(s)&&(re=1);else if(typeof s=="string")re=jK(s,p,ae.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case K:return s=zr(31,p,c,A),s.elementType=K,s.lanes=N,s;case x:return Ka(p.children,A,N,c);case w:re=8,A|=24;break;case S:return s=zr(12,p,c,A|2),s.elementType=S,s.lanes=N,s;case P:return s=zr(13,p,c,A),s.elementType=P,s.lanes=N,s;case R:return s=zr(19,p,c,A),s.elementType=R,s.lanes=N,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case O:case T:re=10;break e;case C:re=9;break e;case j:re=11;break e;case $:re=14;break e;case q:re=16,b=null;break e}re=29,p=Error(r(130,s===null?"null":typeof s,"")),b=null}return c=zr(re,p,c,A),c.elementType=s,c.type=b,c.lanes=N,c}function Ka(s,c,p,b){return s=zr(7,s,b,c),s.lanes=p,s}function Rh(s,c,p){return s=zr(6,s,null,c),s.lanes=p,s}function Kc(s,c,p){return c=zr(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}var qo=[],Ks=0,d=null,y=0,E=[],k=0,Z=null,oe=1,ve="";function Ee(s,c){qo[Ks++]=y,qo[Ks++]=d,d=s,y=c}function Le(s,c,p){E[k++]=oe,E[k++]=ve,E[k++]=Z,Z=s;var b=oe;s=ve;var A=32-Ge(b)-1;b&=~(1<<A),p+=1;var N=32-Ge(c)+A;if(30<N){var re=A-A%5;N=(b&(1<<re)-1).toString(32),b>>=re,A-=re,oe=1<<32-Ge(c)+A|p<<A|b,ve=N+s}else oe=1<<N|p<<A|b,ve=s}function He(s){s.return!==null&&(Ee(s,1),Le(s,1,0))}function et(s){for(;s===d;)d=qo[--Ks],qo[Ks]=null,y=qo[--Ks],qo[Ks]=null;for(;s===Z;)Z=E[--k],E[k]=null,ve=E[--k],E[k]=null,oe=E[--k],E[k]=null}var rt=null,at=null,yt=!1,sn=null,On=!1,ir=Error(r(519));function Jr(s){var c=Error(r(418,""));throw Xs(Br(c,s)),ir}function mg(s){var c=s.stateNode,p=s.type,b=s.memoizedProps;switch(c[Mt]=s,c[rn]=b,p){case"dialog":jt("cancel",c),jt("close",c);break;case"iframe":case"object":case"embed":jt("load",c);break;case"video":case"audio":for(p=0;p<ep.length;p++)jt(ep[p],c);break;case"source":jt("error",c);break;case"img":case"image":case"link":jt("error",c),jt("load",c);break;case"details":jt("toggle",c);break;case"input":jt("invalid",c),Kv(c,b.value,b.defaultValue,b.checked,b.defaultChecked,b.type,b.name,!0),Ms(c);break;case"select":jt("invalid",c);break;case"textarea":jt("invalid",c),Va(c,b.value,b.defaultValue,b.children),Ms(c)}p=b.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||c.textContent===""+p||b.suppressHydrationWarning===!0||BM(c.textContent,p)?(b.popover!=null&&(jt("beforetoggle",c),jt("toggle",c)),b.onScroll!=null&&jt("scroll",c),b.onScrollEnd!=null&&jt("scrollend",c),b.onClick!=null&&(c.onclick=Xg),c=!0):c=!1,c||Jr(s)}function vg(s){for(rt=s.return;rt;)switch(rt.tag){case 5:case 13:On=!1;return;case 27:case 3:On=!0;return;default:rt=rt.return}}function Ou(s){if(s!==rt)return!1;if(!yt)return vg(s),yt=!0,!1;var c=s.tag,p;if((p=c!==3&&c!==27)&&((p=c===5)&&(p=s.type,p=!(p!=="form"&&p!=="button")||rx(s.type,s.memoizedProps)),p=!p),p&&at&&Jr(s),vg(s),c===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8)if(p=s.data,p==="/$"){if(c===0){at=wa(s.nextSibling);break e}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++;s=s.nextSibling}at=null}}else c===27?(c=at,dl(s.type)?(s=sx,sx=null,at=s):at=c):at=rt?wa(s.stateNode.nextSibling):null;return!0}function Zs(){at=rt=null,yt=!1}function gg(){var s=sn;return s!==null&&(ni===null?ni=s:ni.push.apply(ni,s),sn=null),s}function Xs(s){sn===null?sn=[s]:sn.push(s)}var bn=I(null),Gi=null,ga=null;function Za(s,c,p){Y(bn,c._currentValue),c._currentValue=p}function ya(s){s._currentValue=bn.current,J(bn)}function Cu(s,c,p){for(;s!==null;){var b=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,b!==null&&(b.childLanes|=c)):b!==null&&(b.childLanes&c)!==c&&(b.childLanes|=c),s===p)break;s=s.return}}function Zc(s,c,p,b){var A=s.child;for(A!==null&&(A.return=s);A!==null;){var N=A.dependencies;if(N!==null){var re=A.child;N=N.firstContext;e:for(;N!==null;){var ue=N;N=A;for(var ge=0;ge<c.length;ge++)if(ue.context===c[ge]){N.lanes|=p,ue=N.alternate,ue!==null&&(ue.lanes|=p),Cu(N.return,p,s),b||(re=null);break e}N=ue.next}}else if(A.tag===18){if(re=A.return,re===null)throw Error(r(341));re.lanes|=p,N=re.alternate,N!==null&&(N.lanes|=p),Cu(re,p,s),re=null}else re=A.child;if(re!==null)re.return=A;else for(re=A;re!==null;){if(re===s){re=null;break}if(A=re.sibling,A!==null){A.return=re.return,re=A;break}re=re.return}A=re}}function Eu(s,c,p,b){s=null;for(var A=c,N=!1;A!==null;){if(!N){if((A.flags&524288)!==0)N=!0;else if((A.flags&262144)!==0)break}if(A.tag===10){var re=A.alternate;if(re===null)throw Error(r(387));if(re=re.memoizedProps,re!==null){var ue=A.type;Ir(A.pendingProps.value,re.value)||(s!==null?s.push(ue):s=[ue])}}else if(A===be.current){if(re=A.alternate,re===null)throw Error(r(387));re.memoizedState.memoizedState!==A.memoizedState.memoizedState&&(s!==null?s.push(op):s=[op])}A=A.return}s!==null&&Zc(c,s,p,b),c.flags|=262144}function yg(s){for(s=s.firstContext;s!==null;){if(!Ir(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Tu(s){Gi=s,ga=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Ar(s){return C4(Gi,s)}function bg(s,c){return Gi===null&&Tu(s),C4(s,c)}function C4(s,c){var p=c._currentValue;if(c={context:c,memoizedValue:p,next:null},ga===null){if(s===null)throw Error(r(308));ga=c,s.dependencies={lanes:0,firstContext:c},s.flags|=524288}else ga=ga.next=c;return p}var AY=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:!1,addEventListener:function(p,b){s.push(b)}};this.abort=function(){c.aborted=!0,s.forEach(function(p){return p()})}},jY=e.unstable_scheduleCallback,PY=e.unstable_NormalPriority,Yn={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hw(){return{controller:new AY,data:new Map,refCount:0}}function Mh(s){s.refCount--,s.refCount===0&&jY(PY,function(){s.controller.abort()})}var Nh=null,Ww=0,Xc=0,Qc=null;function RY(s,c){if(Nh===null){var p=Nh=[];Ww=0,Xc=Y_(),Qc={status:"pending",value:void 0,then:function(b){p.push(b)}}}return Ww++,c.then(E4,E4),c}function E4(){if(--Ww===0&&Nh!==null){Qc!==null&&(Qc.status="fulfilled");var s=Nh;Nh=null,Xc=0,Qc=null;for(var c=0;c<s.length;c++)(0,s[c])()}}function MY(s,c){var p=[],b={status:"pending",value:null,reason:null,then:function(A){p.push(A)}};return s.then(function(){b.status="fulfilled",b.value=c;for(var A=0;A<p.length;A++)(0,p[A])(c)},function(A){for(b.status="rejected",b.reason=A,A=0;A<p.length;A++)(0,p[A])(void 0)}),b}var T4=W.S;W.S=function(s,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&RY(s,c),T4!==null&&T4(s,c)};var Au=I(null);function Gw(){var s=Au.current;return s!==null?s:ln.pooledCache}function wg(s,c){c===null?Y(Au,Au.current):Y(Au,c.pool)}function A4(){var s=Gw();return s===null?null:{parent:Yn._currentValue,pool:s}}var Lh=Error(r(460)),j4=Error(r(474)),_g=Error(r(542)),Yw={then:function(){}};function P4(s){return s=s.status,s==="fulfilled"||s==="rejected"}function xg(){}function R4(s,c,p){switch(p=s[p],p===void 0?s.push(c):p!==c&&(c.then(xg,xg),c=p),c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,N4(s),s;default:if(typeof c.status=="string")c.then(xg,xg);else{if(s=ln,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=c,s.status="pending",s.then(function(b){if(c.status==="pending"){var A=c;A.status="fulfilled",A.value=b}},function(b){if(c.status==="pending"){var A=c;A.status="rejected",A.reason=b}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,N4(s),s}throw Dh=c,Lh}}var Dh=null;function M4(){if(Dh===null)throw Error(r(459));var s=Dh;return Dh=null,s}function N4(s){if(s===Lh||s===_g)throw Error(r(483))}var Qs=!1;function Kw(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zw(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Js(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function el(s,c,p){var b=s.updateQueue;if(b===null)return null;if(b=b.shared,(Vt&2)!==0){var A=b.pending;return A===null?c.next=c:(c.next=A.next,A.next=c),b.pending=c,c=Ya(s),xu(s,null,p),c}return _u(s,b,c,p),Ya(s)}function kh(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194048)!==0)){var b=c.lanes;b&=s.pendingLanes,p|=b,c.lanes=p,Fa(s,p)}}function Xw(s,c){var p=s.updateQueue,b=s.alternate;if(b!==null&&(b=b.updateQueue,p===b)){var A=null,N=null;if(p=p.firstBaseUpdate,p!==null){do{var re={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};N===null?A=N=re:N=N.next=re,p=p.next}while(p!==null);N===null?A=N=c:N=N.next=c}else A=N=c;p={baseState:b.baseState,firstBaseUpdate:A,lastBaseUpdate:N,shared:b.shared,callbacks:b.callbacks},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}var Qw=!1;function Ih(){if(Qw){var s=Qc;if(s!==null)throw s}}function $h(s,c,p,b){Qw=!1;var A=s.updateQueue;Qs=!1;var N=A.firstBaseUpdate,re=A.lastBaseUpdate,ue=A.shared.pending;if(ue!==null){A.shared.pending=null;var ge=ue,je=ge.next;ge.next=null,re===null?N=je:re.next=je,re=ge;var Be=s.alternate;Be!==null&&(Be=Be.updateQueue,ue=Be.lastBaseUpdate,ue!==re&&(ue===null?Be.firstBaseUpdate=je:ue.next=je,Be.lastBaseUpdate=ge))}if(N!==null){var Ve=A.baseState;re=0,Be=je=ge=null,ue=N;do{var Re=ue.lane&-536870913,Me=Re!==ue.lane;if(Me?(Dt&Re)===Re:(b&Re)===Re){Re!==0&&Re===Xc&&(Qw=!0),Be!==null&&(Be=Be.next={lane:0,tag:ue.tag,payload:ue.payload,callback:null,next:null});e:{var gt=s,dt=ue;Re=c;var Kt=p;switch(dt.tag){case 1:if(gt=dt.payload,typeof gt=="function"){Ve=gt.call(Kt,Ve,Re);break e}Ve=gt;break e;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=dt.payload,Re=typeof gt=="function"?gt.call(Kt,Ve,Re):gt,Re==null)break e;Ve=h({},Ve,Re);break e;case 2:Qs=!0}}Re=ue.callback,Re!==null&&(s.flags|=64,Me&&(s.flags|=8192),Me=A.callbacks,Me===null?A.callbacks=[Re]:Me.push(Re))}else Me={lane:Re,tag:ue.tag,payload:ue.payload,callback:ue.callback,next:null},Be===null?(je=Be=Me,ge=Ve):Be=Be.next=Me,re|=Re;if(ue=ue.next,ue===null){if(ue=A.shared.pending,ue===null)break;Me=ue,ue=Me.next,Me.next=null,A.lastBaseUpdate=Me,A.shared.pending=null}}while(!0);Be===null&&(ge=Ve),A.baseState=ge,A.firstBaseUpdate=je,A.lastBaseUpdate=Be,N===null&&(A.shared.lanes=0),ll|=re,s.lanes=re,s.memoizedState=Ve}}function L4(s,c){if(typeof s!="function")throw Error(r(191,s));s.call(c)}function D4(s,c){var p=s.callbacks;if(p!==null)for(s.callbacks=null,s=0;s<p.length;s++)L4(p[s],c)}var Jc=I(null),Sg=I(0);function k4(s,c){s=Zo,Y(Sg,s),Y(Jc,c),Zo=s|c.baseLanes}function Jw(){Y(Sg,Zo),Y(Jc,Jc.current)}function e_(){Zo=Sg.current,J(Jc),J(Sg)}var tl=0,Ct=null,Gt=null,Fn=null,Og=!1,ef=!1,ju=!1,Cg=0,Bh=0,tf=null,NY=0;function Dn(){throw Error(r(321))}function t_(s,c){if(c===null)return!1;for(var p=0;p<c.length&&p<s.length;p++)if(!Ir(s[p],c[p]))return!1;return!0}function n_(s,c,p,b,A,N){return tl=N,Ct=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,W.H=s===null||s.memoizedState===null?bR:wR,ju=!1,N=p(b,A),ju=!1,ef&&(N=$4(c,p,b,A)),I4(s),N}function I4(s){W.H=Rg;var c=Gt!==null&&Gt.next!==null;if(tl=0,Fn=Gt=Ct=null,Og=!1,Bh=0,tf=null,c)throw Error(r(300));s===null||ar||(s=s.dependencies,s!==null&&yg(s)&&(ar=!0))}function $4(s,c,p,b){Ct=s;var A=0;do{if(ef&&(tf=null),Bh=0,ef=!1,25<=A)throw Error(r(301));if(A+=1,Fn=Gt=null,s.updateQueue!=null){var N=s.updateQueue;N.lastEffect=null,N.events=null,N.stores=null,N.memoCache!=null&&(N.memoCache.index=0)}W.H=UY,N=c(p,b)}while(ef);return N}function LY(){var s=W.H,c=s.useState()[0];return c=typeof c.then=="function"?Uh(c):c,s=s.useState()[0],(Gt!==null?Gt.memoizedState:null)!==s&&(Ct.flags|=1024),c}function r_(){var s=Cg!==0;return Cg=0,s}function i_(s,c,p){c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~p}function a_(s){if(Og){for(s=s.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}Og=!1}tl=0,Fn=Gt=Ct=null,ef=!1,Bh=Cg=0,tf=null}function ei(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fn===null?Ct.memoizedState=Fn=s:Fn=Fn.next=s,Fn}function qn(){if(Gt===null){var s=Ct.alternate;s=s!==null?s.memoizedState:null}else s=Gt.next;var c=Fn===null?Ct.memoizedState:Fn.next;if(c!==null)Fn=c,Gt=s;else{if(s===null)throw Ct.alternate===null?Error(r(467)):Error(r(310));Gt=s,s={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},Fn===null?Ct.memoizedState=Fn=s:Fn=Fn.next=s}return Fn}function o_(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Uh(s){var c=Bh;return Bh+=1,tf===null&&(tf=[]),s=R4(tf,s,c),c=Ct,(Fn===null?c.memoizedState:Fn.next)===null&&(c=c.alternate,W.H=c===null||c.memoizedState===null?bR:wR),s}function Eg(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return Uh(s);if(s.$$typeof===T)return Ar(s)}throw Error(r(438,String(s)))}function s_(s){var c=null,p=Ct.updateQueue;if(p!==null&&(c=p.memoCache),c==null){var b=Ct.alternate;b!==null&&(b=b.updateQueue,b!==null&&(b=b.memoCache,b!=null&&(c={data:b.data.map(function(A){return A.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),p===null&&(p=o_(),Ct.updateQueue=p),p.memoCache=c,p=c.data[c.index],p===void 0)for(p=c.data[c.index]=Array(s),b=0;b<s;b++)p[b]=H;return c.index++,p}function Vo(s,c){return typeof c=="function"?c(s):c}function Tg(s){var c=qn();return l_(c,Gt,s)}function l_(s,c,p){var b=s.queue;if(b===null)throw Error(r(311));b.lastRenderedReducer=p;var A=s.baseQueue,N=b.pending;if(N!==null){if(A!==null){var re=A.next;A.next=N.next,N.next=re}c.baseQueue=A=N,b.pending=null}if(N=s.baseState,A===null)s.memoizedState=N;else{c=A.next;var ue=re=null,ge=null,je=c,Be=!1;do{var Ve=je.lane&-536870913;if(Ve!==je.lane?(Dt&Ve)===Ve:(tl&Ve)===Ve){var Re=je.revertLane;if(Re===0)ge!==null&&(ge=ge.next={lane:0,revertLane:0,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null}),Ve===Xc&&(Be=!0);else if((tl&Re)===Re){je=je.next,Re===Xc&&(Be=!0);continue}else Ve={lane:0,revertLane:je.revertLane,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null},ge===null?(ue=ge=Ve,re=N):ge=ge.next=Ve,Ct.lanes|=Re,ll|=Re;Ve=je.action,ju&&p(N,Ve),N=je.hasEagerState?je.eagerState:p(N,Ve)}else Re={lane:Ve,revertLane:je.revertLane,action:je.action,hasEagerState:je.hasEagerState,eagerState:je.eagerState,next:null},ge===null?(ue=ge=Re,re=N):ge=ge.next=Re,Ct.lanes|=Ve,ll|=Ve;je=je.next}while(je!==null&&je!==c);if(ge===null?re=N:ge.next=ue,!Ir(N,s.memoizedState)&&(ar=!0,Be&&(p=Qc,p!==null)))throw p;s.memoizedState=N,s.baseState=re,s.baseQueue=ge,b.lastRenderedState=N}return A===null&&(b.lanes=0),[s.memoizedState,b.dispatch]}function u_(s){var c=qn(),p=c.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=s;var b=p.dispatch,A=p.pending,N=c.memoizedState;if(A!==null){p.pending=null;var re=A=A.next;do N=s(N,re.action),re=re.next;while(re!==A);Ir(N,c.memoizedState)||(ar=!0),c.memoizedState=N,c.baseQueue===null&&(c.baseState=N),p.lastRenderedState=N}return[N,b]}function B4(s,c,p){var b=Ct,A=qn(),N=yt;if(N){if(p===void 0)throw Error(r(407));p=p()}else p=c();var re=!Ir((Gt||A).memoizedState,p);re&&(A.memoizedState=p,ar=!0),A=A.queue;var ue=F4.bind(null,b,A,s);if(zh(2048,8,ue,[s]),A.getSnapshot!==c||re||Fn!==null&&Fn.memoizedState.tag&1){if(b.flags|=2048,nf(9,Ag(),z4.bind(null,b,A,p,c),null),ln===null)throw Error(r(349));N||(tl&124)!==0||U4(b,c,p)}return p}function U4(s,c,p){s.flags|=16384,s={getSnapshot:c,value:p},c=Ct.updateQueue,c===null?(c=o_(),Ct.updateQueue=c,c.stores=[s]):(p=c.stores,p===null?c.stores=[s]:p.push(s))}function z4(s,c,p,b){c.value=p,c.getSnapshot=b,q4(c)&&V4(s)}function F4(s,c,p){return p(function(){q4(c)&&V4(s)})}function q4(s){var c=s.getSnapshot;s=s.value;try{var p=c();return!Ir(s,p)}catch{return!0}}function V4(s){var c=Ys(s,2);c!==null&&wi(c,s,2)}function c_(s){var c=ei();if(typeof s=="function"){var p=s;if(s=p(),ju){qe(!0);try{p()}finally{qe(!1)}}}return c.memoizedState=c.baseState=s,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:s},c}function H4(s,c,p,b){return s.baseState=p,l_(s,Gt,typeof b=="function"?b:Vo)}function DY(s,c,p,b,A){if(Pg(s))throw Error(r(485));if(s=c.action,s!==null){var N={payload:A,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(re){N.listeners.push(re)}};W.T!==null?p(!0):N.isTransition=!1,b(N),p=c.pending,p===null?(N.next=c.pending=N,W4(c,N)):(N.next=p.next,c.pending=p.next=N)}}function W4(s,c){var p=c.action,b=c.payload,A=s.state;if(c.isTransition){var N=W.T,re={};W.T=re;try{var ue=p(A,b),ge=W.S;ge!==null&&ge(re,ue),G4(s,c,ue)}catch(je){f_(s,c,je)}finally{W.T=N}}else try{N=p(A,b),G4(s,c,N)}catch(je){f_(s,c,je)}}function G4(s,c,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(b){Y4(s,c,b)},function(b){return f_(s,c,b)}):Y4(s,c,p)}function Y4(s,c,p){c.status="fulfilled",c.value=p,K4(c),s.state=p,c=s.pending,c!==null&&(p=c.next,p===c?s.pending=null:(p=p.next,c.next=p,W4(s,p)))}function f_(s,c,p){var b=s.pending;if(s.pending=null,b!==null){b=b.next;do c.status="rejected",c.reason=p,K4(c),c=c.next;while(c!==b)}s.action=null}function K4(s){s=s.listeners;for(var c=0;c<s.length;c++)(0,s[c])()}function Z4(s,c){return c}function X4(s,c){if(yt){var p=ln.formState;if(p!==null){e:{var b=Ct;if(yt){if(at){t:{for(var A=at,N=On;A.nodeType!==8;){if(!N){A=null;break t}if(A=wa(A.nextSibling),A===null){A=null;break t}}N=A.data,A=N==="F!"||N==="F"?A:null}if(A){at=wa(A.nextSibling),b=A.data==="F!";break e}}Jr(b)}b=!1}b&&(c=p[0])}}return p=ei(),p.memoizedState=p.baseState=c,b={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Z4,lastRenderedState:c},p.queue=b,p=vR.bind(null,Ct,b),b.dispatch=p,b=c_(!1),N=v_.bind(null,Ct,!1,b.queue),b=ei(),A={state:c,dispatch:null,action:s,pending:null},b.queue=A,p=DY.bind(null,Ct,A,N,p),A.dispatch=p,b.memoizedState=s,[c,p,!1]}function Q4(s){var c=qn();return J4(c,Gt,s)}function J4(s,c,p){if(c=l_(s,c,Z4)[0],s=Tg(Vo)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var b=Uh(c)}catch(re){throw re===Lh?_g:re}else b=c;c=qn();var A=c.queue,N=A.dispatch;return p!==c.memoizedState&&(Ct.flags|=2048,nf(9,Ag(),kY.bind(null,A,p),null)),[b,N,s]}function kY(s,c){s.action=c}function eR(s){var c=qn(),p=Gt;if(p!==null)return J4(c,p,s);qn(),c=c.memoizedState,p=qn();var b=p.queue.dispatch;return p.memoizedState=s,[c,b,!1]}function nf(s,c,p,b){return s={tag:s,create:p,deps:b,inst:c,next:null},c=Ct.updateQueue,c===null&&(c=o_(),Ct.updateQueue=c),p=c.lastEffect,p===null?c.lastEffect=s.next=s:(b=p.next,p.next=s,s.next=b,c.lastEffect=s),s}function Ag(){return{destroy:void 0,resource:void 0}}function tR(){return qn().memoizedState}function jg(s,c,p,b){var A=ei();b=b===void 0?null:b,Ct.flags|=s,A.memoizedState=nf(1|c,Ag(),p,b)}function zh(s,c,p,b){var A=qn();b=b===void 0?null:b;var N=A.memoizedState.inst;Gt!==null&&b!==null&&t_(b,Gt.memoizedState.deps)?A.memoizedState=nf(c,N,p,b):(Ct.flags|=s,A.memoizedState=nf(1|c,N,p,b))}function nR(s,c){jg(8390656,8,s,c)}function rR(s,c){zh(2048,8,s,c)}function iR(s,c){return zh(4,2,s,c)}function aR(s,c){return zh(4,4,s,c)}function oR(s,c){if(typeof c=="function"){s=s();var p=c(s);return function(){typeof p=="function"?p():c(null)}}if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function sR(s,c,p){p=p!=null?p.concat([s]):null,zh(4,4,oR.bind(null,c,s),p)}function d_(){}function lR(s,c){var p=qn();c=c===void 0?null:c;var b=p.memoizedState;return c!==null&&t_(c,b[1])?b[0]:(p.memoizedState=[s,c],s)}function uR(s,c){var p=qn();c=c===void 0?null:c;var b=p.memoizedState;if(c!==null&&t_(c,b[1]))return b[0];if(b=s(),ju){qe(!0);try{s()}finally{qe(!1)}}return p.memoizedState=[b,c],b}function h_(s,c,p){return p===void 0||(tl&1073741824)!==0?s.memoizedState=c:(s.memoizedState=p,s=dM(),Ct.lanes|=s,ll|=s,p)}function cR(s,c,p,b){return Ir(p,c)?p:Jc.current!==null?(s=h_(s,p,b),Ir(s,c)||(ar=!0),s):(tl&42)===0?(ar=!0,s.memoizedState=p):(s=dM(),Ct.lanes|=s,ll|=s,c)}function fR(s,c,p,b,A){var N=B.p;B.p=N!==0&&8>N?N:8;var re=W.T,ue={};W.T=ue,v_(s,!1,c,p);try{var ge=A(),je=W.S;if(je!==null&&je(ue,ge),ge!==null&&typeof ge=="object"&&typeof ge.then=="function"){var Be=MY(ge,b);Fh(s,c,Be,bi(s))}else Fh(s,c,b,bi(s))}catch(Ve){Fh(s,c,{then:function(){},status:"rejected",reason:Ve},bi())}finally{B.p=N,W.T=re}}function IY(){}function p_(s,c,p,b){if(s.tag!==5)throw Error(r(476));var A=dR(s).queue;fR(s,A,c,U,p===null?IY:function(){return hR(s),p(b)})}function dR(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:U,baseState:U,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:U},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Vo,lastRenderedState:p},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function hR(s){var c=dR(s).next.queue;Fh(s,c,{},bi())}function m_(){return Ar(op)}function pR(){return qn().memoizedState}function mR(){return qn().memoizedState}function $Y(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var p=bi();s=Js(p);var b=el(c,s,p);b!==null&&(wi(b,c,p),kh(b,c,p)),c={cache:Hw()},s.payload=c;return}c=c.return}}function BY(s,c,p){var b=bi();p={lane:b,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Pg(s)?gR(c,p):(p=zo(s,c,p,b),p!==null&&(wi(p,s,b),yR(p,c,b)))}function vR(s,c,p){var b=bi();Fh(s,c,p,b)}function Fh(s,c,p,b){var A={lane:b,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Pg(s))gR(c,A);else{var N=s.alternate;if(s.lanes===0&&(N===null||N.lanes===0)&&(N=c.lastRenderedReducer,N!==null))try{var re=c.lastRenderedState,ue=N(re,p);if(A.hasEagerState=!0,A.eagerState=ue,Ir(ue,re))return _u(s,c,A,0),ln===null&&wu(),!1}catch{}finally{}if(p=zo(s,c,A,b),p!==null)return wi(p,s,b),yR(p,c,b),!0}return!1}function v_(s,c,p,b){if(b={lane:2,revertLane:Y_(),action:b,hasEagerState:!1,eagerState:null,next:null},Pg(s)){if(c)throw Error(r(479))}else c=zo(s,p,b,2),c!==null&&wi(c,s,2)}function Pg(s){var c=s.alternate;return s===Ct||c!==null&&c===Ct}function gR(s,c){ef=Og=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function yR(s,c,p){if((p&4194048)!==0){var b=c.lanes;b&=s.pendingLanes,p|=b,c.lanes=p,Fa(s,p)}}var Rg={readContext:Ar,use:Eg,useCallback:Dn,useContext:Dn,useEffect:Dn,useImperativeHandle:Dn,useLayoutEffect:Dn,useInsertionEffect:Dn,useMemo:Dn,useReducer:Dn,useRef:Dn,useState:Dn,useDebugValue:Dn,useDeferredValue:Dn,useTransition:Dn,useSyncExternalStore:Dn,useId:Dn,useHostTransitionStatus:Dn,useFormState:Dn,useActionState:Dn,useOptimistic:Dn,useMemoCache:Dn,useCacheRefresh:Dn},bR={readContext:Ar,use:Eg,useCallback:function(s,c){return ei().memoizedState=[s,c===void 0?null:c],s},useContext:Ar,useEffect:nR,useImperativeHandle:function(s,c,p){p=p!=null?p.concat([s]):null,jg(4194308,4,oR.bind(null,c,s),p)},useLayoutEffect:function(s,c){return jg(4194308,4,s,c)},useInsertionEffect:function(s,c){jg(4,2,s,c)},useMemo:function(s,c){var p=ei();c=c===void 0?null:c;var b=s();if(ju){qe(!0);try{s()}finally{qe(!1)}}return p.memoizedState=[b,c],b},useReducer:function(s,c,p){var b=ei();if(p!==void 0){var A=p(c);if(ju){qe(!0);try{p(c)}finally{qe(!1)}}}else A=c;return b.memoizedState=b.baseState=A,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:A},b.queue=s,s=s.dispatch=BY.bind(null,Ct,s),[b.memoizedState,s]},useRef:function(s){var c=ei();return s={current:s},c.memoizedState=s},useState:function(s){s=c_(s);var c=s.queue,p=vR.bind(null,Ct,c);return c.dispatch=p,[s.memoizedState,p]},useDebugValue:d_,useDeferredValue:function(s,c){var p=ei();return h_(p,s,c)},useTransition:function(){var s=c_(!1);return s=fR.bind(null,Ct,s.queue,!0,!1),ei().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,p){var b=Ct,A=ei();if(yt){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),ln===null)throw Error(r(349));(Dt&124)!==0||U4(b,c,p)}A.memoizedState=p;var N={value:p,getSnapshot:c};return A.queue=N,nR(F4.bind(null,b,N,s),[s]),b.flags|=2048,nf(9,Ag(),z4.bind(null,b,N,p,c),null),p},useId:function(){var s=ei(),c=ln.identifierPrefix;if(yt){var p=ve,b=oe;p=(b&~(1<<32-Ge(b)-1)).toString(32)+p,c="«"+c+"R"+p,p=Cg++,0<p&&(c+="H"+p.toString(32)),c+="»"}else p=NY++,c="«"+c+"r"+p.toString(32)+"»";return s.memoizedState=c},useHostTransitionStatus:m_,useFormState:X4,useActionState:X4,useOptimistic:function(s){var c=ei();c.memoizedState=c.baseState=s;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=p,c=v_.bind(null,Ct,!0,p),p.dispatch=c,[s,c]},useMemoCache:s_,useCacheRefresh:function(){return ei().memoizedState=$Y.bind(null,Ct)}},wR={readContext:Ar,use:Eg,useCallback:lR,useContext:Ar,useEffect:rR,useImperativeHandle:sR,useInsertionEffect:iR,useLayoutEffect:aR,useMemo:uR,useReducer:Tg,useRef:tR,useState:function(){return Tg(Vo)},useDebugValue:d_,useDeferredValue:function(s,c){var p=qn();return cR(p,Gt.memoizedState,s,c)},useTransition:function(){var s=Tg(Vo)[0],c=qn().memoizedState;return[typeof s=="boolean"?s:Uh(s),c]},useSyncExternalStore:B4,useId:pR,useHostTransitionStatus:m_,useFormState:Q4,useActionState:Q4,useOptimistic:function(s,c){var p=qn();return H4(p,Gt,s,c)},useMemoCache:s_,useCacheRefresh:mR},UY={readContext:Ar,use:Eg,useCallback:lR,useContext:Ar,useEffect:rR,useImperativeHandle:sR,useInsertionEffect:iR,useLayoutEffect:aR,useMemo:uR,useReducer:u_,useRef:tR,useState:function(){return u_(Vo)},useDebugValue:d_,useDeferredValue:function(s,c){var p=qn();return Gt===null?h_(p,s,c):cR(p,Gt.memoizedState,s,c)},useTransition:function(){var s=u_(Vo)[0],c=qn().memoizedState;return[typeof s=="boolean"?s:Uh(s),c]},useSyncExternalStore:B4,useId:pR,useHostTransitionStatus:m_,useFormState:eR,useActionState:eR,useOptimistic:function(s,c){var p=qn();return Gt!==null?H4(p,Gt,s,c):(p.baseState=s,[s,p.queue.dispatch])},useMemoCache:s_,useCacheRefresh:mR},rf=null,qh=0;function Mg(s){var c=qh;return qh+=1,rf===null&&(rf=[]),R4(rf,s,c)}function Vh(s,c){c=c.props.ref,s.ref=c!==void 0?c:null}function Ng(s,c){throw c.$$typeof===m?Error(r(525)):(s=Object.prototype.toString.call(c),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s)))}function _R(s){var c=s._init;return c(s._payload)}function xR(s){function c(Oe,_e){if(s){var Te=Oe.deletions;Te===null?(Oe.deletions=[_e],Oe.flags|=16):Te.push(_e)}}function p(Oe,_e){if(!s)return null;for(;_e!==null;)c(Oe,_e),_e=_e.sibling;return null}function b(Oe){for(var _e=new Map;Oe!==null;)Oe.key!==null?_e.set(Oe.key,Oe):_e.set(Oe.index,Oe),Oe=Oe.sibling;return _e}function A(Oe,_e){return Oe=Wi(Oe,_e),Oe.index=0,Oe.sibling=null,Oe}function N(Oe,_e,Te){return Oe.index=Te,s?(Te=Oe.alternate,Te!==null?(Te=Te.index,Te<_e?(Oe.flags|=67108866,_e):Te):(Oe.flags|=67108866,_e)):(Oe.flags|=1048576,_e)}function re(Oe){return s&&Oe.alternate===null&&(Oe.flags|=67108866),Oe}function ue(Oe,_e,Te,Ue){return _e===null||_e.tag!==6?(_e=Rh(Te,Oe.mode,Ue),_e.return=Oe,_e):(_e=A(_e,Te),_e.return=Oe,_e)}function ge(Oe,_e,Te,Ue){var it=Te.type;return it===x?Be(Oe,_e,Te.props.children,Ue,Te.key):_e!==null&&(_e.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===q&&_R(it)===_e.type)?(_e=A(_e,Te.props),Vh(_e,Te),_e.return=Oe,_e):(_e=Su(Te.type,Te.key,Te.props,null,Oe.mode,Ue),Vh(_e,Te),_e.return=Oe,_e)}function je(Oe,_e,Te,Ue){return _e===null||_e.tag!==4||_e.stateNode.containerInfo!==Te.containerInfo||_e.stateNode.implementation!==Te.implementation?(_e=Kc(Te,Oe.mode,Ue),_e.return=Oe,_e):(_e=A(_e,Te.children||[]),_e.return=Oe,_e)}function Be(Oe,_e,Te,Ue,it){return _e===null||_e.tag!==7?(_e=Ka(Te,Oe.mode,Ue,it),_e.return=Oe,_e):(_e=A(_e,Te),_e.return=Oe,_e)}function Ve(Oe,_e,Te){if(typeof _e=="string"&&_e!==""||typeof _e=="number"||typeof _e=="bigint")return _e=Rh(""+_e,Oe.mode,Te),_e.return=Oe,_e;if(typeof _e=="object"&&_e!==null){switch(_e.$$typeof){case v:return Te=Su(_e.type,_e.key,_e.props,null,Oe.mode,Te),Vh(Te,_e),Te.return=Oe,Te;case _:return _e=Kc(_e,Oe.mode,Te),_e.return=Oe,_e;case q:var Ue=_e._init;return _e=Ue(_e._payload),Ve(Oe,_e,Te)}if(ee(_e)||te(_e))return _e=Ka(_e,Oe.mode,Te,null),_e.return=Oe,_e;if(typeof _e.then=="function")return Ve(Oe,Mg(_e),Te);if(_e.$$typeof===T)return Ve(Oe,bg(Oe,_e),Te);Ng(Oe,_e)}return null}function Re(Oe,_e,Te,Ue){var it=_e!==null?_e.key:null;if(typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint")return it!==null?null:ue(Oe,_e,""+Te,Ue);if(typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case v:return Te.key===it?ge(Oe,_e,Te,Ue):null;case _:return Te.key===it?je(Oe,_e,Te,Ue):null;case q:return it=Te._init,Te=it(Te._payload),Re(Oe,_e,Te,Ue)}if(ee(Te)||te(Te))return it!==null?null:Be(Oe,_e,Te,Ue,null);if(typeof Te.then=="function")return Re(Oe,_e,Mg(Te),Ue);if(Te.$$typeof===T)return Re(Oe,_e,bg(Oe,Te),Ue);Ng(Oe,Te)}return null}function Me(Oe,_e,Te,Ue,it){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number"||typeof Ue=="bigint")return Oe=Oe.get(Te)||null,ue(_e,Oe,""+Ue,it);if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case v:return Oe=Oe.get(Ue.key===null?Te:Ue.key)||null,ge(_e,Oe,Ue,it);case _:return Oe=Oe.get(Ue.key===null?Te:Ue.key)||null,je(_e,Oe,Ue,it);case q:var Tt=Ue._init;return Ue=Tt(Ue._payload),Me(Oe,_e,Te,Ue,it)}if(ee(Ue)||te(Ue))return Oe=Oe.get(Te)||null,Be(_e,Oe,Ue,it,null);if(typeof Ue.then=="function")return Me(Oe,_e,Te,Mg(Ue),it);if(Ue.$$typeof===T)return Me(Oe,_e,Te,bg(_e,Ue),it);Ng(_e,Ue)}return null}function gt(Oe,_e,Te,Ue){for(var it=null,Tt=null,ct=_e,mt=_e=0,sr=null;ct!==null&&mt<Te.length;mt++){ct.index>mt?(sr=ct,ct=null):sr=ct.sibling;var Ut=Re(Oe,ct,Te[mt],Ue);if(Ut===null){ct===null&&(ct=sr);break}s&&ct&&Ut.alternate===null&&c(Oe,ct),_e=N(Ut,_e,mt),Tt===null?it=Ut:Tt.sibling=Ut,Tt=Ut,ct=sr}if(mt===Te.length)return p(Oe,ct),yt&&Ee(Oe,mt),it;if(ct===null){for(;mt<Te.length;mt++)ct=Ve(Oe,Te[mt],Ue),ct!==null&&(_e=N(ct,_e,mt),Tt===null?it=ct:Tt.sibling=ct,Tt=ct);return yt&&Ee(Oe,mt),it}for(ct=b(ct);mt<Te.length;mt++)sr=Me(ct,Oe,mt,Te[mt],Ue),sr!==null&&(s&&sr.alternate!==null&&ct.delete(sr.key===null?mt:sr.key),_e=N(sr,_e,mt),Tt===null?it=sr:Tt.sibling=sr,Tt=sr);return s&&ct.forEach(function(gl){return c(Oe,gl)}),yt&&Ee(Oe,mt),it}function dt(Oe,_e,Te,Ue){if(Te==null)throw Error(r(151));for(var it=null,Tt=null,ct=_e,mt=_e=0,sr=null,Ut=Te.next();ct!==null&&!Ut.done;mt++,Ut=Te.next()){ct.index>mt?(sr=ct,ct=null):sr=ct.sibling;var gl=Re(Oe,ct,Ut.value,Ue);if(gl===null){ct===null&&(ct=sr);break}s&&ct&&gl.alternate===null&&c(Oe,ct),_e=N(gl,_e,mt),Tt===null?it=gl:Tt.sibling=gl,Tt=gl,ct=sr}if(Ut.done)return p(Oe,ct),yt&&Ee(Oe,mt),it;if(ct===null){for(;!Ut.done;mt++,Ut=Te.next())Ut=Ve(Oe,Ut.value,Ue),Ut!==null&&(_e=N(Ut,_e,mt),Tt===null?it=Ut:Tt.sibling=Ut,Tt=Ut);return yt&&Ee(Oe,mt),it}for(ct=b(ct);!Ut.done;mt++,Ut=Te.next())Ut=Me(ct,Oe,mt,Ut.value,Ue),Ut!==null&&(s&&Ut.alternate!==null&&ct.delete(Ut.key===null?mt:Ut.key),_e=N(Ut,_e,mt),Tt===null?it=Ut:Tt.sibling=Ut,Tt=Ut);return s&&ct.forEach(function(zK){return c(Oe,zK)}),yt&&Ee(Oe,mt),it}function Kt(Oe,_e,Te,Ue){if(typeof Te=="object"&&Te!==null&&Te.type===x&&Te.key===null&&(Te=Te.props.children),typeof Te=="object"&&Te!==null){switch(Te.$$typeof){case v:e:{for(var it=Te.key;_e!==null;){if(_e.key===it){if(it=Te.type,it===x){if(_e.tag===7){p(Oe,_e.sibling),Ue=A(_e,Te.props.children),Ue.return=Oe,Oe=Ue;break e}}else if(_e.elementType===it||typeof it=="object"&&it!==null&&it.$$typeof===q&&_R(it)===_e.type){p(Oe,_e.sibling),Ue=A(_e,Te.props),Vh(Ue,Te),Ue.return=Oe,Oe=Ue;break e}p(Oe,_e);break}else c(Oe,_e);_e=_e.sibling}Te.type===x?(Ue=Ka(Te.props.children,Oe.mode,Ue,Te.key),Ue.return=Oe,Oe=Ue):(Ue=Su(Te.type,Te.key,Te.props,null,Oe.mode,Ue),Vh(Ue,Te),Ue.return=Oe,Oe=Ue)}return re(Oe);case _:e:{for(it=Te.key;_e!==null;){if(_e.key===it)if(_e.tag===4&&_e.stateNode.containerInfo===Te.containerInfo&&_e.stateNode.implementation===Te.implementation){p(Oe,_e.sibling),Ue=A(_e,Te.children||[]),Ue.return=Oe,Oe=Ue;break e}else{p(Oe,_e);break}else c(Oe,_e);_e=_e.sibling}Ue=Kc(Te,Oe.mode,Ue),Ue.return=Oe,Oe=Ue}return re(Oe);case q:return it=Te._init,Te=it(Te._payload),Kt(Oe,_e,Te,Ue)}if(ee(Te))return gt(Oe,_e,Te,Ue);if(te(Te)){if(it=te(Te),typeof it!="function")throw Error(r(150));return Te=it.call(Te),dt(Oe,_e,Te,Ue)}if(typeof Te.then=="function")return Kt(Oe,_e,Mg(Te),Ue);if(Te.$$typeof===T)return Kt(Oe,_e,bg(Oe,Te),Ue);Ng(Oe,Te)}return typeof Te=="string"&&Te!==""||typeof Te=="number"||typeof Te=="bigint"?(Te=""+Te,_e!==null&&_e.tag===6?(p(Oe,_e.sibling),Ue=A(_e,Te),Ue.return=Oe,Oe=Ue):(p(Oe,_e),Ue=Rh(Te,Oe.mode,Ue),Ue.return=Oe,Oe=Ue),re(Oe)):p(Oe,_e)}return function(Oe,_e,Te,Ue){try{qh=0;var it=Kt(Oe,_e,Te,Ue);return rf=null,it}catch(ct){if(ct===Lh||ct===_g)throw ct;var Tt=zr(29,ct,null,Oe.mode);return Tt.lanes=Ue,Tt.return=Oe,Tt}finally{}}}var af=xR(!0),SR=xR(!1),Yi=I(null),Xa=null;function nl(s){var c=s.alternate;Y(Kn,Kn.current&1),Y(Yi,s),Xa===null&&(c===null||Jc.current!==null||c.memoizedState!==null)&&(Xa=s)}function OR(s){if(s.tag===22){if(Y(Kn,Kn.current),Y(Yi,s),Xa===null){var c=s.alternate;c!==null&&c.memoizedState!==null&&(Xa=s)}}else rl()}function rl(){Y(Kn,Kn.current),Y(Yi,Yi.current)}function Ho(s){J(Yi),Xa===s&&(Xa=null),J(Kn)}var Kn=I(0);function Lg(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||ox(p)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function g_(s,c,p,b){c=s.memoizedState,p=p(b,c),p=p==null?c:h({},c,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var y_={enqueueSetState:function(s,c,p){s=s._reactInternals;var b=bi(),A=Js(b);A.payload=c,p!=null&&(A.callback=p),c=el(s,A,b),c!==null&&(wi(c,s,b),kh(c,s,b))},enqueueReplaceState:function(s,c,p){s=s._reactInternals;var b=bi(),A=Js(b);A.tag=1,A.payload=c,p!=null&&(A.callback=p),c=el(s,A,b),c!==null&&(wi(c,s,b),kh(c,s,b))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var p=bi(),b=Js(p);b.tag=2,c!=null&&(b.callback=c),c=el(s,b,p),c!==null&&(wi(c,s,p),kh(c,s,p))}};function CR(s,c,p,b,A,N,re){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(b,N,re):c.prototype&&c.prototype.isPureReactComponent?!$r(p,b)||!$r(A,N):!0}function ER(s,c,p,b){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(p,b),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(p,b),c.state!==s&&y_.enqueueReplaceState(c,c.state,null)}function Pu(s,c){var p=c;if("ref"in c){p={};for(var b in c)b!=="ref"&&(p[b]=c[b])}if(s=s.defaultProps){p===c&&(p=h({},p));for(var A in s)p[A]===void 0&&(p[A]=s[A])}return p}var Dg=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function TR(s){Dg(s)}function AR(s){console.error(s)}function jR(s){Dg(s)}function kg(s,c){try{var p=s.onUncaughtError;p(c.value,{componentStack:c.stack})}catch(b){setTimeout(function(){throw b})}}function PR(s,c,p){try{var b=s.onCaughtError;b(p.value,{componentStack:p.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(A){setTimeout(function(){throw A})}}function b_(s,c,p){return p=Js(p),p.tag=3,p.payload={element:null},p.callback=function(){kg(s,c)},p}function RR(s){return s=Js(s),s.tag=3,s}function MR(s,c,p,b){var A=p.type.getDerivedStateFromError;if(typeof A=="function"){var N=b.value;s.payload=function(){return A(N)},s.callback=function(){PR(c,p,b)}}var re=p.stateNode;re!==null&&typeof re.componentDidCatch=="function"&&(s.callback=function(){PR(c,p,b),typeof A!="function"&&(ul===null?ul=new Set([this]):ul.add(this));var ue=b.stack;this.componentDidCatch(b.value,{componentStack:ue!==null?ue:""})})}function zY(s,c,p,b,A){if(p.flags|=32768,b!==null&&typeof b=="object"&&typeof b.then=="function"){if(c=p.alternate,c!==null&&Eu(c,p,A,!0),p=Yi.current,p!==null){switch(p.tag){case 13:return Xa===null?q_():p.alternate===null&&An===0&&(An=3),p.flags&=-257,p.flags|=65536,p.lanes=A,b===Yw?p.flags|=16384:(c=p.updateQueue,c===null?p.updateQueue=new Set([b]):c.add(b),H_(s,b,A)),!1;case 22:return p.flags|=65536,b===Yw?p.flags|=16384:(c=p.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([b])},p.updateQueue=c):(p=c.retryQueue,p===null?c.retryQueue=new Set([b]):p.add(b)),H_(s,b,A)),!1}throw Error(r(435,p.tag))}return H_(s,b,A),q_(),!1}if(yt)return c=Yi.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=A,b!==ir&&(s=Error(r(422),{cause:b}),Xs(Br(s,p)))):(b!==ir&&(c=Error(r(423),{cause:b}),Xs(Br(c,p))),s=s.current.alternate,s.flags|=65536,A&=-A,s.lanes|=A,b=Br(b,p),A=b_(s.stateNode,b,A),Xw(s,A),An!==4&&(An=2)),!1;var N=Error(r(520),{cause:b});if(N=Br(N,p),Xh===null?Xh=[N]:Xh.push(N),An!==4&&(An=2),c===null)return!0;b=Br(b,p),p=c;do{switch(p.tag){case 3:return p.flags|=65536,s=A&-A,p.lanes|=s,s=b_(p.stateNode,b,s),Xw(p,s),!1;case 1:if(c=p.type,N=p.stateNode,(p.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&(ul===null||!ul.has(N))))return p.flags|=65536,A&=-A,p.lanes|=A,A=RR(A),MR(A,s,p,b),Xw(p,A),!1}p=p.return}while(p!==null);return!1}var NR=Error(r(461)),ar=!1;function gr(s,c,p,b){c.child=s===null?SR(c,null,p,b):af(c,s.child,p,b)}function LR(s,c,p,b,A){p=p.render;var N=c.ref;if("ref"in b){var re={};for(var ue in b)ue!=="ref"&&(re[ue]=b[ue])}else re=b;return Tu(c),b=n_(s,c,p,re,N,A),ue=r_(),s!==null&&!ar?(i_(s,c,A),Wo(s,c,A)):(yt&&ue&&He(c),c.flags|=1,gr(s,c,b,A),c.child)}function DR(s,c,p,b,A){if(s===null){var N=p.type;return typeof N=="function"&&!Yc(N)&&N.defaultProps===void 0&&p.compare===null?(c.tag=15,c.type=N,kR(s,c,N,b,A)):(s=Su(p.type,null,b,c,c.mode,A),s.ref=c.ref,s.return=c,c.child=s)}if(N=s.child,!T_(s,A)){var re=N.memoizedProps;if(p=p.compare,p=p!==null?p:$r,p(re,b)&&s.ref===c.ref)return Wo(s,c,A)}return c.flags|=1,s=Wi(N,b),s.ref=c.ref,s.return=c,c.child=s}function kR(s,c,p,b,A){if(s!==null){var N=s.memoizedProps;if($r(N,b)&&s.ref===c.ref)if(ar=!1,c.pendingProps=b=N,T_(s,A))(s.flags&131072)!==0&&(ar=!0);else return c.lanes=s.lanes,Wo(s,c,A)}return w_(s,c,p,b,A)}function IR(s,c,p){var b=c.pendingProps,A=b.children,N=s!==null?s.memoizedState:null;if(b.mode==="hidden"){if((c.flags&128)!==0){if(b=N!==null?N.baseLanes|p:p,s!==null){for(A=c.child=s.child,N=0;A!==null;)N=N|A.lanes|A.childLanes,A=A.sibling;c.childLanes=N&~b}else c.childLanes=0,c.child=null;return $R(s,c,b,p)}if((p&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},s!==null&&wg(c,N!==null?N.cachePool:null),N!==null?k4(c,N):Jw(),OR(c);else return c.lanes=c.childLanes=536870912,$R(s,c,N!==null?N.baseLanes|p:p,p)}else N!==null?(wg(c,N.cachePool),k4(c,N),rl(),c.memoizedState=null):(s!==null&&wg(c,null),Jw(),rl());return gr(s,c,A,p),c.child}function $R(s,c,p,b){var A=Gw();return A=A===null?null:{parent:Yn._currentValue,pool:A},c.memoizedState={baseLanes:p,cachePool:A},s!==null&&wg(c,null),Jw(),OR(c),s!==null&&Eu(s,c,b,!0),null}function Ig(s,c){var p=c.ref;if(p===null)s!==null&&s.ref!==null&&(c.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(s===null||s.ref!==p)&&(c.flags|=4194816)}}function w_(s,c,p,b,A){return Tu(c),p=n_(s,c,p,b,void 0,A),b=r_(),s!==null&&!ar?(i_(s,c,A),Wo(s,c,A)):(yt&&b&&He(c),c.flags|=1,gr(s,c,p,A),c.child)}function BR(s,c,p,b,A,N){return Tu(c),c.updateQueue=null,p=$4(c,b,p,A),I4(s),b=r_(),s!==null&&!ar?(i_(s,c,N),Wo(s,c,N)):(yt&&b&&He(c),c.flags|=1,gr(s,c,p,N),c.child)}function UR(s,c,p,b,A){if(Tu(c),c.stateNode===null){var N=Fo,re=p.contextType;typeof re=="object"&&re!==null&&(N=Ar(re)),N=new p(b,N),c.memoizedState=N.state!==null&&N.state!==void 0?N.state:null,N.updater=y_,c.stateNode=N,N._reactInternals=c,N=c.stateNode,N.props=b,N.state=c.memoizedState,N.refs={},Kw(c),re=p.contextType,N.context=typeof re=="object"&&re!==null?Ar(re):Fo,N.state=c.memoizedState,re=p.getDerivedStateFromProps,typeof re=="function"&&(g_(c,p,re,b),N.state=c.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof N.getSnapshotBeforeUpdate=="function"||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(re=N.state,typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount(),re!==N.state&&y_.enqueueReplaceState(N,N.state,null),$h(c,b,N,A),Ih(),N.state=c.memoizedState),typeof N.componentDidMount=="function"&&(c.flags|=4194308),b=!0}else if(s===null){N=c.stateNode;var ue=c.memoizedProps,ge=Pu(p,ue);N.props=ge;var je=N.context,Be=p.contextType;re=Fo,typeof Be=="object"&&Be!==null&&(re=Ar(Be));var Ve=p.getDerivedStateFromProps;Be=typeof Ve=="function"||typeof N.getSnapshotBeforeUpdate=="function",ue=c.pendingProps!==ue,Be||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(ue||je!==re)&&ER(c,N,b,re),Qs=!1;var Re=c.memoizedState;N.state=Re,$h(c,b,N,A),Ih(),je=c.memoizedState,ue||Re!==je||Qs?(typeof Ve=="function"&&(g_(c,p,Ve,b),je=c.memoizedState),(ge=Qs||CR(c,p,ge,b,Re,je,re))?(Be||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(c.flags|=4194308)):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=b,c.memoizedState=je),N.props=b,N.state=je,N.context=re,b=ge):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),b=!1)}else{N=c.stateNode,Zw(s,c),re=c.memoizedProps,Be=Pu(p,re),N.props=Be,Ve=c.pendingProps,Re=N.context,je=p.contextType,ge=Fo,typeof je=="object"&&je!==null&&(ge=Ar(je)),ue=p.getDerivedStateFromProps,(je=typeof ue=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(re!==Ve||Re!==ge)&&ER(c,N,b,ge),Qs=!1,Re=c.memoizedState,N.state=Re,$h(c,b,N,A),Ih();var Me=c.memoizedState;re!==Ve||Re!==Me||Qs||s!==null&&s.dependencies!==null&&yg(s.dependencies)?(typeof ue=="function"&&(g_(c,p,ue,b),Me=c.memoizedState),(Be=Qs||CR(c,p,Be,b,Re,Me,ge)||s!==null&&s.dependencies!==null&&yg(s.dependencies))?(je||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(b,Me,ge),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(b,Me,ge)),typeof N.componentDidUpdate=="function"&&(c.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof N.componentDidUpdate!="function"||re===s.memoizedProps&&Re===s.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||re===s.memoizedProps&&Re===s.memoizedState||(c.flags|=1024),c.memoizedProps=b,c.memoizedState=Me),N.props=b,N.state=Me,N.context=ge,b=Be):(typeof N.componentDidUpdate!="function"||re===s.memoizedProps&&Re===s.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||re===s.memoizedProps&&Re===s.memoizedState||(c.flags|=1024),b=!1)}return N=b,Ig(s,c),b=(c.flags&128)!==0,N||b?(N=c.stateNode,p=b&&typeof p.getDerivedStateFromError!="function"?null:N.render(),c.flags|=1,s!==null&&b?(c.child=af(c,s.child,null,A),c.child=af(c,null,p,A)):gr(s,c,p,A),c.memoizedState=N.state,s=c.child):s=Wo(s,c,A),s}function zR(s,c,p,b){return Zs(),c.flags|=256,gr(s,c,p,b),c.child}var __={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function x_(s){return{baseLanes:s,cachePool:A4()}}function S_(s,c,p){return s=s!==null?s.childLanes&~p:0,c&&(s|=Ki),s}function FR(s,c,p){var b=c.pendingProps,A=!1,N=(c.flags&128)!==0,re;if((re=N)||(re=s!==null&&s.memoizedState===null?!1:(Kn.current&2)!==0),re&&(A=!0,c.flags&=-129),re=(c.flags&32)!==0,c.flags&=-33,s===null){if(yt){if(A?nl(c):rl(),yt){var ue=at,ge;if(ge=ue){e:{for(ge=ue,ue=On;ge.nodeType!==8;){if(!ue){ue=null;break e}if(ge=wa(ge.nextSibling),ge===null){ue=null;break e}}ue=ge}ue!==null?(c.memoizedState={dehydrated:ue,treeContext:Z!==null?{id:oe,overflow:ve}:null,retryLane:536870912,hydrationErrors:null},ge=zr(18,null,null,0),ge.stateNode=ue,ge.return=c,c.child=ge,rt=c,at=null,ge=!0):ge=!1}ge||Jr(c)}if(ue=c.memoizedState,ue!==null&&(ue=ue.dehydrated,ue!==null))return ox(ue)?c.lanes=32:c.lanes=536870912,null;Ho(c)}return ue=b.children,b=b.fallback,A?(rl(),A=c.mode,ue=$g({mode:"hidden",children:ue},A),b=Ka(b,A,p,null),ue.return=c,b.return=c,ue.sibling=b,c.child=ue,A=c.child,A.memoizedState=x_(p),A.childLanes=S_(s,re,p),c.memoizedState=__,b):(nl(c),O_(c,ue))}if(ge=s.memoizedState,ge!==null&&(ue=ge.dehydrated,ue!==null)){if(N)c.flags&256?(nl(c),c.flags&=-257,c=C_(s,c,p)):c.memoizedState!==null?(rl(),c.child=s.child,c.flags|=128,c=null):(rl(),A=b.fallback,ue=c.mode,b=$g({mode:"visible",children:b.children},ue),A=Ka(A,ue,p,null),A.flags|=2,b.return=c,A.return=c,b.sibling=A,c.child=b,af(c,s.child,null,p),b=c.child,b.memoizedState=x_(p),b.childLanes=S_(s,re,p),c.memoizedState=__,c=A);else if(nl(c),ox(ue)){if(re=ue.nextSibling&&ue.nextSibling.dataset,re)var je=re.dgst;re=je,b=Error(r(419)),b.stack="",b.digest=re,Xs({value:b,source:null,stack:null}),c=C_(s,c,p)}else if(ar||Eu(s,c,p,!1),re=(p&s.childLanes)!==0,ar||re){if(re=ln,re!==null&&(b=p&-p,b=(b&42)!==0?1:yn(b),b=(b&(re.suspendedLanes|p))!==0?0:b,b!==0&&b!==ge.retryLane))throw ge.retryLane=b,Ys(s,b),wi(re,s,b),NR;ue.data==="$?"||q_(),c=C_(s,c,p)}else ue.data==="$?"?(c.flags|=192,c.child=s.child,c=null):(s=ge.treeContext,at=wa(ue.nextSibling),rt=c,yt=!0,sn=null,On=!1,s!==null&&(E[k++]=oe,E[k++]=ve,E[k++]=Z,oe=s.id,ve=s.overflow,Z=c),c=O_(c,b.children),c.flags|=4096);return c}return A?(rl(),A=b.fallback,ue=c.mode,ge=s.child,je=ge.sibling,b=Wi(ge,{mode:"hidden",children:b.children}),b.subtreeFlags=ge.subtreeFlags&65011712,je!==null?A=Wi(je,A):(A=Ka(A,ue,p,null),A.flags|=2),A.return=c,b.return=c,b.sibling=A,c.child=b,b=A,A=c.child,ue=s.child.memoizedState,ue===null?ue=x_(p):(ge=ue.cachePool,ge!==null?(je=Yn._currentValue,ge=ge.parent!==je?{parent:je,pool:je}:ge):ge=A4(),ue={baseLanes:ue.baseLanes|p,cachePool:ge}),A.memoizedState=ue,A.childLanes=S_(s,re,p),c.memoizedState=__,b):(nl(c),p=s.child,s=p.sibling,p=Wi(p,{mode:"visible",children:b.children}),p.return=c,p.sibling=null,s!==null&&(re=c.deletions,re===null?(c.deletions=[s],c.flags|=16):re.push(s)),c.child=p,c.memoizedState=null,p)}function O_(s,c){return c=$g({mode:"visible",children:c},s.mode),c.return=s,s.child=c}function $g(s,c){return s=zr(22,s,null,c),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function C_(s,c,p){return af(c,s.child,null,p),s=O_(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function qR(s,c,p){s.lanes|=c;var b=s.alternate;b!==null&&(b.lanes|=c),Cu(s.return,c,p)}function E_(s,c,p,b,A){var N=s.memoizedState;N===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:b,tail:p,tailMode:A}:(N.isBackwards=c,N.rendering=null,N.renderingStartTime=0,N.last=b,N.tail=p,N.tailMode=A)}function VR(s,c,p){var b=c.pendingProps,A=b.revealOrder,N=b.tail;if(gr(s,c,b.children,p),b=Kn.current,(b&2)!==0)b=b&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&qR(s,p,c);else if(s.tag===19)qR(s,p,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}b&=1}switch(Y(Kn,b),A){case"forwards":for(p=c.child,A=null;p!==null;)s=p.alternate,s!==null&&Lg(s)===null&&(A=p),p=p.sibling;p=A,p===null?(A=c.child,c.child=null):(A=p.sibling,p.sibling=null),E_(c,!1,A,p,N);break;case"backwards":for(p=null,A=c.child,c.child=null;A!==null;){if(s=A.alternate,s!==null&&Lg(s)===null){c.child=A;break}s=A.sibling,A.sibling=p,p=A,A=s}E_(c,!0,p,null,N);break;case"together":E_(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Wo(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),ll|=c.lanes,(p&c.childLanes)===0)if(s!==null){if(Eu(s,c,p,!1),(p&c.childLanes)===0)return null}else return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,p=Wi(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=Wi(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function T_(s,c){return(s.lanes&c)!==0?!0:(s=s.dependencies,!!(s!==null&&yg(s)))}function FY(s,c,p){switch(c.tag){case 3:z(c,c.stateNode.containerInfo),Za(c,Yn,s.memoizedState.cache),Zs();break;case 27:case 5:ne(c);break;case 4:z(c,c.stateNode.containerInfo);break;case 10:Za(c,c.type,c.memoizedProps.value);break;case 13:var b=c.memoizedState;if(b!==null)return b.dehydrated!==null?(nl(c),c.flags|=128,null):(p&c.child.childLanes)!==0?FR(s,c,p):(nl(c),s=Wo(s,c,p),s!==null?s.sibling:null);nl(c);break;case 19:var A=(s.flags&128)!==0;if(b=(p&c.childLanes)!==0,b||(Eu(s,c,p,!1),b=(p&c.childLanes)!==0),A){if(b)return VR(s,c,p);c.flags|=128}if(A=c.memoizedState,A!==null&&(A.rendering=null,A.tail=null,A.lastEffect=null),Y(Kn,Kn.current),b)break;return null;case 22:case 23:return c.lanes=0,IR(s,c,p);case 24:Za(c,Yn,s.memoizedState.cache)}return Wo(s,c,p)}function HR(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps)ar=!0;else{if(!T_(s,p)&&(c.flags&128)===0)return ar=!1,FY(s,c,p);ar=(s.flags&131072)!==0}else ar=!1,yt&&(c.flags&1048576)!==0&&Le(c,y,c.index);switch(c.lanes=0,c.tag){case 16:e:{s=c.pendingProps;var b=c.elementType,A=b._init;if(b=A(b._payload),c.type=b,typeof b=="function")Yc(b)?(s=Pu(b,s),c.tag=1,c=UR(null,c,b,s,p)):(c.tag=0,c=w_(null,c,b,s,p));else{if(b!=null){if(A=b.$$typeof,A===j){c.tag=11,c=LR(null,c,b,s,p);break e}else if(A===$){c.tag=14,c=DR(null,c,b,s,p);break e}}throw c=X(b)||b,Error(r(306,c,""))}}return c;case 0:return w_(s,c,c.type,c.pendingProps,p);case 1:return b=c.type,A=Pu(b,c.pendingProps),UR(s,c,b,A,p);case 3:e:{if(z(c,c.stateNode.containerInfo),s===null)throw Error(r(387));b=c.pendingProps;var N=c.memoizedState;A=N.element,Zw(s,c),$h(c,b,null,p);var re=c.memoizedState;if(b=re.cache,Za(c,Yn,b),b!==N.cache&&Zc(c,[Yn],p,!0),Ih(),b=re.element,N.isDehydrated)if(N={element:b,isDehydrated:!1,cache:re.cache},c.updateQueue.baseState=N,c.memoizedState=N,c.flags&256){c=zR(s,c,b,p);break e}else if(b!==A){A=Br(Error(r(424)),c),Xs(A),c=zR(s,c,b,p);break e}else{switch(s=c.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(at=wa(s.firstChild),rt=c,yt=!0,sn=null,On=!0,p=SR(c,null,b,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(Zs(),b===A){c=Wo(s,c,p);break e}gr(s,c,b,p)}c=c.child}return c;case 26:return Ig(s,c),s===null?(p=KM(c.type,null,c.pendingProps,null))?c.memoizedState=p:yt||(p=c.type,s=c.pendingProps,b=Qg(fe.current).createElement(p),b[Mt]=c,b[rn]=s,br(b,p,s),zn(b),c.stateNode=b):c.memoizedState=KM(c.type,s.memoizedProps,c.pendingProps,s.memoizedState),null;case 27:return ne(c),s===null&&yt&&(b=c.stateNode=WM(c.type,c.pendingProps,fe.current),rt=c,On=!0,A=at,dl(c.type)?(sx=A,at=wa(b.firstChild)):at=A),gr(s,c,c.pendingProps.children,p),Ig(s,c),s===null&&(c.flags|=4194304),c.child;case 5:return s===null&&yt&&((A=b=at)&&(b=vK(b,c.type,c.pendingProps,On),b!==null?(c.stateNode=b,rt=c,at=wa(b.firstChild),On=!1,A=!0):A=!1),A||Jr(c)),ne(c),A=c.type,N=c.pendingProps,re=s!==null?s.memoizedProps:null,b=N.children,rx(A,N)?b=null:re!==null&&rx(A,re)&&(c.flags|=32),c.memoizedState!==null&&(A=n_(s,c,LY,null,null,p),op._currentValue=A),Ig(s,c),gr(s,c,b,p),c.child;case 6:return s===null&&yt&&((s=p=at)&&(p=gK(p,c.pendingProps,On),p!==null?(c.stateNode=p,rt=c,at=null,s=!0):s=!1),s||Jr(c)),null;case 13:return FR(s,c,p);case 4:return z(c,c.stateNode.containerInfo),b=c.pendingProps,s===null?c.child=af(c,null,b,p):gr(s,c,b,p),c.child;case 11:return LR(s,c,c.type,c.pendingProps,p);case 7:return gr(s,c,c.pendingProps,p),c.child;case 8:return gr(s,c,c.pendingProps.children,p),c.child;case 12:return gr(s,c,c.pendingProps.children,p),c.child;case 10:return b=c.pendingProps,Za(c,c.type,b.value),gr(s,c,b.children,p),c.child;case 9:return A=c.type._context,b=c.pendingProps.children,Tu(c),A=Ar(A),b=b(A),c.flags|=1,gr(s,c,b,p),c.child;case 14:return DR(s,c,c.type,c.pendingProps,p);case 15:return kR(s,c,c.type,c.pendingProps,p);case 19:return VR(s,c,p);case 31:return b=c.pendingProps,p=c.mode,b={mode:b.mode,children:b.children},s===null?(p=$g(b,p),p.ref=c.ref,c.child=p,p.return=c,c=p):(p=Wi(s.child,b),p.ref=c.ref,c.child=p,p.return=c,c=p),c;case 22:return IR(s,c,p);case 24:return Tu(c),b=Ar(Yn),s===null?(A=Gw(),A===null&&(A=ln,N=Hw(),A.pooledCache=N,N.refCount++,N!==null&&(A.pooledCacheLanes|=p),A=N),c.memoizedState={parent:b,cache:A},Kw(c),Za(c,Yn,A)):((s.lanes&p)!==0&&(Zw(s,c),$h(c,null,null,p),Ih()),A=s.memoizedState,N=c.memoizedState,A.parent!==b?(A={parent:b,cache:b},c.memoizedState=A,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=A),Za(c,Yn,b)):(b=N.cache,Za(c,Yn,b),b!==A.cache&&Zc(c,[Yn],p,!0))),gr(s,c,c.pendingProps.children,p),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function Go(s){s.flags|=4}function WR(s,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!eN(c)){if(c=Yi.current,c!==null&&((Dt&4194048)===Dt?Xa!==null:(Dt&62914560)!==Dt&&(Dt&536870912)===0||c!==Xa))throw Dh=Yw,j4;s.flags|=8192}}function Bg(s,c){c!==null&&(s.flags|=4),s.flags&16384&&(c=s.tag!==22?li():536870912,s.lanes|=c,uf|=c)}function Hh(s,c){if(!yt)switch(s.tailMode){case"hidden":c=s.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var b=null;p!==null;)p.alternate!==null&&(b=p),p=p.sibling;b===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:b.sibling=null}}function Cn(s){var c=s.alternate!==null&&s.alternate.child===s.child,p=0,b=0;if(c)for(var A=s.child;A!==null;)p|=A.lanes|A.childLanes,b|=A.subtreeFlags&65011712,b|=A.flags&65011712,A.return=s,A=A.sibling;else for(A=s.child;A!==null;)p|=A.lanes|A.childLanes,b|=A.subtreeFlags,b|=A.flags,A.return=s,A=A.sibling;return s.subtreeFlags|=b,s.childLanes=p,c}function qY(s,c,p){var b=c.pendingProps;switch(et(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Cn(c),null;case 1:return Cn(c),null;case 3:return p=c.stateNode,b=null,s!==null&&(b=s.memoizedState.cache),c.memoizedState.cache!==b&&(c.flags|=2048),ya(Yn),V(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(s===null||s.child===null)&&(Ou(c)?Go(c):s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,gg())),Cn(c),null;case 26:return p=c.memoizedState,s===null?(Go(c),p!==null?(Cn(c),WR(c,p)):(Cn(c),c.flags&=-16777217)):p?p!==s.memoizedState?(Go(c),Cn(c),WR(c,p)):(Cn(c),c.flags&=-16777217):(s.memoizedProps!==b&&Go(c),Cn(c),c.flags&=-16777217),null;case 27:ce(c),p=fe.current;var A=c.type;if(s!==null&&c.stateNode!=null)s.memoizedProps!==b&&Go(c);else{if(!b){if(c.stateNode===null)throw Error(r(166));return Cn(c),null}s=ae.current,Ou(c)?mg(c):(s=WM(A,b,p),c.stateNode=s,Go(c))}return Cn(c),null;case 5:if(ce(c),p=c.type,s!==null&&c.stateNode!=null)s.memoizedProps!==b&&Go(c);else{if(!b){if(c.stateNode===null)throw Error(r(166));return Cn(c),null}if(s=ae.current,Ou(c))mg(c);else{switch(A=Qg(fe.current),s){case 1:s=A.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:s=A.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":s=A.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":s=A.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":s=A.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof b.is=="string"?A.createElement("select",{is:b.is}):A.createElement("select"),b.multiple?s.multiple=!0:b.size&&(s.size=b.size);break;default:s=typeof b.is=="string"?A.createElement(p,{is:b.is}):A.createElement(p)}}s[Mt]=c,s[rn]=b;e:for(A=c.child;A!==null;){if(A.tag===5||A.tag===6)s.appendChild(A.stateNode);else if(A.tag!==4&&A.tag!==27&&A.child!==null){A.child.return=A,A=A.child;continue}if(A===c)break e;for(;A.sibling===null;){if(A.return===null||A.return===c)break e;A=A.return}A.sibling.return=A.return,A=A.sibling}c.stateNode=s;e:switch(br(s,p,b),p){case"button":case"input":case"select":case"textarea":s=!!b.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Go(c)}}return Cn(c),c.flags&=-16777217,null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==b&&Go(c);else{if(typeof b!="string"&&c.stateNode===null)throw Error(r(166));if(s=fe.current,Ou(c)){if(s=c.stateNode,p=c.memoizedProps,b=null,A=rt,A!==null)switch(A.tag){case 27:case 5:b=A.memoizedProps}s[Mt]=c,s=!!(s.nodeValue===p||b!==null&&b.suppressHydrationWarning===!0||BM(s.nodeValue,p)),s||Jr(c)}else s=Qg(s).createTextNode(b),s[Mt]=c,c.stateNode=s}return Cn(c),null;case 13:if(b=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(A=Ou(c),b!==null&&b.dehydrated!==null){if(s===null){if(!A)throw Error(r(318));if(A=c.memoizedState,A=A!==null?A.dehydrated:null,!A)throw Error(r(317));A[Mt]=c}else Zs(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;Cn(c),A=!1}else A=gg(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=A),A=!0;if(!A)return c.flags&256?(Ho(c),c):(Ho(c),null)}if(Ho(c),(c.flags&128)!==0)return c.lanes=p,c;if(p=b!==null,s=s!==null&&s.memoizedState!==null,p){b=c.child,A=null,b.alternate!==null&&b.alternate.memoizedState!==null&&b.alternate.memoizedState.cachePool!==null&&(A=b.alternate.memoizedState.cachePool.pool);var N=null;b.memoizedState!==null&&b.memoizedState.cachePool!==null&&(N=b.memoizedState.cachePool.pool),N!==A&&(b.flags|=2048)}return p!==s&&p&&(c.child.flags|=8192),Bg(c,c.updateQueue),Cn(c),null;case 4:return V(),s===null&&Q_(c.stateNode.containerInfo),Cn(c),null;case 10:return ya(c.type),Cn(c),null;case 19:if(J(Kn),A=c.memoizedState,A===null)return Cn(c),null;if(b=(c.flags&128)!==0,N=A.rendering,N===null)if(b)Hh(A,!1);else{if(An!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(N=Lg(s),N!==null){for(c.flags|=128,Hh(A,!1),s=N.updateQueue,c.updateQueue=s,Bg(c,s),c.subtreeFlags=0,s=p,p=c.child;p!==null;)Ph(p,s),p=p.sibling;return Y(Kn,Kn.current&1|2),c.child}s=s.sibling}A.tail!==null&&xe()>Fg&&(c.flags|=128,b=!0,Hh(A,!1),c.lanes=4194304)}else{if(!b)if(s=Lg(N),s!==null){if(c.flags|=128,b=!0,s=s.updateQueue,c.updateQueue=s,Bg(c,s),Hh(A,!0),A.tail===null&&A.tailMode==="hidden"&&!N.alternate&&!yt)return Cn(c),null}else 2*xe()-A.renderingStartTime>Fg&&p!==536870912&&(c.flags|=128,b=!0,Hh(A,!1),c.lanes=4194304);A.isBackwards?(N.sibling=c.child,c.child=N):(s=A.last,s!==null?s.sibling=N:c.child=N,A.last=N)}return A.tail!==null?(c=A.tail,A.rendering=c,A.tail=c.sibling,A.renderingStartTime=xe(),c.sibling=null,s=Kn.current,Y(Kn,b?s&1|2:s&1),c):(Cn(c),null);case 22:case 23:return Ho(c),e_(),b=c.memoizedState!==null,s!==null?s.memoizedState!==null!==b&&(c.flags|=8192):b&&(c.flags|=8192),b?(p&536870912)!==0&&(c.flags&128)===0&&(Cn(c),c.subtreeFlags&6&&(c.flags|=8192)):Cn(c),p=c.updateQueue,p!==null&&Bg(c,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),b=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(b=c.memoizedState.cachePool.pool),b!==p&&(c.flags|=2048),s!==null&&J(Au),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),ya(Yn),Cn(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function VY(s,c){switch(et(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return ya(Yn),V(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return ce(c),null;case 13:if(Ho(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));Zs()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return J(Kn),null;case 4:return V(),null;case 10:return ya(c.type),null;case 22:case 23:return Ho(c),e_(),s!==null&&J(Au),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return ya(Yn),null;case 25:return null;default:return null}}function GR(s,c){switch(et(c),c.tag){case 3:ya(Yn),V();break;case 26:case 27:case 5:ce(c);break;case 4:V();break;case 13:Ho(c);break;case 19:J(Kn);break;case 10:ya(c.type);break;case 22:case 23:Ho(c),e_(),s!==null&&J(Au);break;case 24:ya(Yn)}}function Wh(s,c){try{var p=c.updateQueue,b=p!==null?p.lastEffect:null;if(b!==null){var A=b.next;p=A;do{if((p.tag&s)===s){b=void 0;var N=p.create,re=p.inst;b=N(),re.destroy=b}p=p.next}while(p!==A)}}catch(ue){Jt(c,c.return,ue)}}function il(s,c,p){try{var b=c.updateQueue,A=b!==null?b.lastEffect:null;if(A!==null){var N=A.next;b=N;do{if((b.tag&s)===s){var re=b.inst,ue=re.destroy;if(ue!==void 0){re.destroy=void 0,A=c;var ge=p,je=ue;try{je()}catch(Be){Jt(A,ge,Be)}}}b=b.next}while(b!==N)}}catch(Be){Jt(c,c.return,Be)}}function YR(s){var c=s.updateQueue;if(c!==null){var p=s.stateNode;try{D4(c,p)}catch(b){Jt(s,s.return,b)}}}function KR(s,c,p){p.props=Pu(s.type,s.memoizedProps),p.state=s.memoizedState;try{p.componentWillUnmount()}catch(b){Jt(s,c,b)}}function Gh(s,c){try{var p=s.ref;if(p!==null){switch(s.tag){case 26:case 27:case 5:var b=s.stateNode;break;case 30:b=s.stateNode;break;default:b=s.stateNode}typeof p=="function"?s.refCleanup=p(b):p.current=b}}catch(A){Jt(s,c,A)}}function Qa(s,c){var p=s.ref,b=s.refCleanup;if(p!==null)if(typeof b=="function")try{b()}catch(A){Jt(s,c,A)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(A){Jt(s,c,A)}else p.current=null}function ZR(s){var c=s.type,p=s.memoizedProps,b=s.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":p.autoFocus&&b.focus();break e;case"img":p.src?b.src=p.src:p.srcSet&&(b.srcset=p.srcSet)}}catch(A){Jt(s,s.return,A)}}function A_(s,c,p){try{var b=s.stateNode;fK(b,s.type,p,c),b[rn]=c}catch(A){Jt(s,s.return,A)}}function XR(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&dl(s.type)||s.tag===4}function j_(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||XR(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&dl(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function P_(s,c,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,c?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(s,c):(c=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,c.appendChild(s),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Xg));else if(b!==4&&(b===27&&dl(s.type)&&(p=s.stateNode,c=null),s=s.child,s!==null))for(P_(s,c,p),s=s.sibling;s!==null;)P_(s,c,p),s=s.sibling}function Ug(s,c,p){var b=s.tag;if(b===5||b===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(b!==4&&(b===27&&dl(s.type)&&(p=s.stateNode),s=s.child,s!==null))for(Ug(s,c,p),s=s.sibling;s!==null;)Ug(s,c,p),s=s.sibling}function QR(s){var c=s.stateNode,p=s.memoizedProps;try{for(var b=s.type,A=c.attributes;A.length;)c.removeAttributeNode(A[0]);br(c,b,p),c[Mt]=s,c[rn]=p}catch(N){Jt(s,s.return,N)}}var Yo=!1,kn=!1,R_=!1,JR=typeof WeakSet=="function"?WeakSet:Set,or=null;function HY(s,c){if(s=s.containerInfo,tx=iy,s=gu(s),yu(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var b=p.getSelection&&p.getSelection();if(b&&b.rangeCount!==0){p=b.anchorNode;var A=b.anchorOffset,N=b.focusNode;b=b.focusOffset;try{p.nodeType,N.nodeType}catch{p=null;break e}var re=0,ue=-1,ge=-1,je=0,Be=0,Ve=s,Re=null;t:for(;;){for(var Me;Ve!==p||A!==0&&Ve.nodeType!==3||(ue=re+A),Ve!==N||b!==0&&Ve.nodeType!==3||(ge=re+b),Ve.nodeType===3&&(re+=Ve.nodeValue.length),(Me=Ve.firstChild)!==null;)Re=Ve,Ve=Me;for(;;){if(Ve===s)break t;if(Re===p&&++je===A&&(ue=re),Re===N&&++Be===b&&(ge=re),(Me=Ve.nextSibling)!==null)break;Ve=Re,Re=Ve.parentNode}Ve=Me}p=ue===-1||ge===-1?null:{start:ue,end:ge}}else p=null}p=p||{start:0,end:0}}else p=null;for(nx={focusedElem:s,selectionRange:p},iy=!1,or=c;or!==null;)if(c=or,s=c.child,(c.subtreeFlags&1024)!==0&&s!==null)s.return=c,or=s;else for(;or!==null;){switch(c=or,N=c.alternate,s=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&N!==null){s=void 0,p=c,A=N.memoizedProps,N=N.memoizedState,b=p.stateNode;try{var gt=Pu(p.type,A,p.elementType===p.type);s=b.getSnapshotBeforeUpdate(gt,N),b.__reactInternalSnapshotBeforeUpdate=s}catch(dt){Jt(p,p.return,dt)}}break;case 3:if((s&1024)!==0){if(s=c.stateNode.containerInfo,p=s.nodeType,p===9)ax(s);else if(p===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":ax(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=c.sibling,s!==null){s.return=c.return,or=s;break}or=c.return}}function eM(s,c,p){var b=p.flags;switch(p.tag){case 0:case 11:case 15:al(s,p),b&4&&Wh(5,p);break;case 1:if(al(s,p),b&4)if(s=p.stateNode,c===null)try{s.componentDidMount()}catch(re){Jt(p,p.return,re)}else{var A=Pu(p.type,c.memoizedProps);c=c.memoizedState;try{s.componentDidUpdate(A,c,s.__reactInternalSnapshotBeforeUpdate)}catch(re){Jt(p,p.return,re)}}b&64&&YR(p),b&512&&Gh(p,p.return);break;case 3:if(al(s,p),b&64&&(s=p.updateQueue,s!==null)){if(c=null,p.child!==null)switch(p.child.tag){case 27:case 5:c=p.child.stateNode;break;case 1:c=p.child.stateNode}try{D4(s,c)}catch(re){Jt(p,p.return,re)}}break;case 27:c===null&&b&4&&QR(p);case 26:case 5:al(s,p),c===null&&b&4&&ZR(p),b&512&&Gh(p,p.return);break;case 12:al(s,p);break;case 13:al(s,p),b&4&&rM(s,p),b&64&&(s=p.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(p=eK.bind(null,p),yK(s,p))));break;case 22:if(b=p.memoizedState!==null||Yo,!b){c=c!==null&&c.memoizedState!==null||kn,A=Yo;var N=kn;Yo=b,(kn=c)&&!N?ol(s,p,(p.subtreeFlags&8772)!==0):al(s,p),Yo=A,kn=N}break;case 30:break;default:al(s,p)}}function tM(s){var c=s.alternate;c!==null&&(s.alternate=null,tM(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&Rc(c)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var wn=null,ti=!1;function Ko(s,c,p){for(p=p.child;p!==null;)nM(s,c,p),p=p.sibling}function nM(s,c,p){if(Pe&&typeof Pe.onCommitFiberUnmount=="function")try{Pe.onCommitFiberUnmount(Ne,p)}catch{}switch(p.tag){case 26:kn||Qa(p,c),Ko(s,c,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:kn||Qa(p,c);var b=wn,A=ti;dl(p.type)&&(wn=p.stateNode,ti=!1),Ko(s,c,p),np(p.stateNode),wn=b,ti=A;break;case 5:kn||Qa(p,c);case 6:if(b=wn,A=ti,wn=null,Ko(s,c,p),wn=b,ti=A,wn!==null)if(ti)try{(wn.nodeType===9?wn.body:wn.nodeName==="HTML"?wn.ownerDocument.body:wn).removeChild(p.stateNode)}catch(N){Jt(p,c,N)}else try{wn.removeChild(p.stateNode)}catch(N){Jt(p,c,N)}break;case 18:wn!==null&&(ti?(s=wn,VM(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,p.stateNode),cp(s)):VM(wn,p.stateNode));break;case 4:b=wn,A=ti,wn=p.stateNode.containerInfo,ti=!0,Ko(s,c,p),wn=b,ti=A;break;case 0:case 11:case 14:case 15:kn||il(2,p,c),kn||il(4,p,c),Ko(s,c,p);break;case 1:kn||(Qa(p,c),b=p.stateNode,typeof b.componentWillUnmount=="function"&&KR(p,c,b)),Ko(s,c,p);break;case 21:Ko(s,c,p);break;case 22:kn=(b=kn)||p.memoizedState!==null,Ko(s,c,p),kn=b;break;default:Ko(s,c,p)}}function rM(s,c){if(c.memoizedState===null&&(s=c.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{cp(s)}catch(p){Jt(c,c.return,p)}}function WY(s){switch(s.tag){case 13:case 19:var c=s.stateNode;return c===null&&(c=s.stateNode=new JR),c;case 22:return s=s.stateNode,c=s._retryCache,c===null&&(c=s._retryCache=new JR),c;default:throw Error(r(435,s.tag))}}function M_(s,c){var p=WY(s);c.forEach(function(b){var A=tK.bind(null,s,b);p.has(b)||(p.add(b),b.then(A,A))})}function vi(s,c){var p=c.deletions;if(p!==null)for(var b=0;b<p.length;b++){var A=p[b],N=s,re=c,ue=re;e:for(;ue!==null;){switch(ue.tag){case 27:if(dl(ue.type)){wn=ue.stateNode,ti=!1;break e}break;case 5:wn=ue.stateNode,ti=!1;break e;case 3:case 4:wn=ue.stateNode.containerInfo,ti=!0;break e}ue=ue.return}if(wn===null)throw Error(r(160));nM(N,re,A),wn=null,ti=!1,N=A.alternate,N!==null&&(N.return=null),A.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)iM(c,s),c=c.sibling}var ba=null;function iM(s,c){var p=s.alternate,b=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:vi(c,s),gi(s),b&4&&(il(3,s,s.return),Wh(3,s),il(5,s,s.return));break;case 1:vi(c,s),gi(s),b&512&&(kn||p===null||Qa(p,p.return)),b&64&&Yo&&(s=s.updateQueue,s!==null&&(b=s.callbacks,b!==null&&(p=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=p===null?b:p.concat(b))));break;case 26:var A=ba;if(vi(c,s),gi(s),b&512&&(kn||p===null||Qa(p,p.return)),b&4){var N=p!==null?p.memoizedState:null;if(b=s.memoizedState,p===null)if(b===null)if(s.stateNode===null){e:{b=s.type,p=s.memoizedProps,A=A.ownerDocument||A;t:switch(b){case"title":N=A.getElementsByTagName("title")[0],(!N||N[js]||N[Mt]||N.namespaceURI==="http://www.w3.org/2000/svg"||N.hasAttribute("itemprop"))&&(N=A.createElement(b),A.head.insertBefore(N,A.querySelector("head > title"))),br(N,b,p),N[Mt]=s,zn(N),b=N;break e;case"link":var re=QM("link","href",A).get(b+(p.href||""));if(re){for(var ue=0;ue<re.length;ue++)if(N=re[ue],N.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&N.getAttribute("rel")===(p.rel==null?null:p.rel)&&N.getAttribute("title")===(p.title==null?null:p.title)&&N.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){re.splice(ue,1);break t}}N=A.createElement(b),br(N,b,p),A.head.appendChild(N);break;case"meta":if(re=QM("meta","content",A).get(b+(p.content||""))){for(ue=0;ue<re.length;ue++)if(N=re[ue],N.getAttribute("content")===(p.content==null?null:""+p.content)&&N.getAttribute("name")===(p.name==null?null:p.name)&&N.getAttribute("property")===(p.property==null?null:p.property)&&N.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&N.getAttribute("charset")===(p.charSet==null?null:p.charSet)){re.splice(ue,1);break t}}N=A.createElement(b),br(N,b,p),A.head.appendChild(N);break;default:throw Error(r(468,b))}N[Mt]=s,zn(N),b=N}s.stateNode=b}else JM(A,s.type,s.stateNode);else s.stateNode=XM(A,b,s.memoizedProps);else N!==b?(N===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):N.count--,b===null?JM(A,s.type,s.stateNode):XM(A,b,s.memoizedProps)):b===null&&s.stateNode!==null&&A_(s,s.memoizedProps,p.memoizedProps)}break;case 27:vi(c,s),gi(s),b&512&&(kn||p===null||Qa(p,p.return)),p!==null&&b&4&&A_(s,s.memoizedProps,p.memoizedProps);break;case 5:if(vi(c,s),gi(s),b&512&&(kn||p===null||Qa(p,p.return)),s.flags&32){A=s.stateNode;try{zi(A,"")}catch(Me){Jt(s,s.return,Me)}}b&4&&s.stateNode!=null&&(A=s.memoizedProps,A_(s,A,p!==null?p.memoizedProps:A)),b&1024&&(R_=!0);break;case 6:if(vi(c,s),gi(s),b&4){if(s.stateNode===null)throw Error(r(162));b=s.memoizedProps,p=s.stateNode;try{p.nodeValue=b}catch(Me){Jt(s,s.return,Me)}}break;case 3:if(ty=null,A=ba,ba=Jg(c.containerInfo),vi(c,s),ba=A,gi(s),b&4&&p!==null&&p.memoizedState.isDehydrated)try{cp(c.containerInfo)}catch(Me){Jt(s,s.return,Me)}R_&&(R_=!1,aM(s));break;case 4:b=ba,ba=Jg(s.stateNode.containerInfo),vi(c,s),gi(s),ba=b;break;case 12:vi(c,s),gi(s);break;case 13:vi(c,s),gi(s),s.child.flags&8192&&s.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&($_=xe()),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,M_(s,b)));break;case 22:A=s.memoizedState!==null;var ge=p!==null&&p.memoizedState!==null,je=Yo,Be=kn;if(Yo=je||A,kn=Be||ge,vi(c,s),kn=Be,Yo=je,gi(s),b&8192)e:for(c=s.stateNode,c._visibility=A?c._visibility&-2:c._visibility|1,A&&(p===null||ge||Yo||kn||Ru(s)),p=null,c=s;;){if(c.tag===5||c.tag===26){if(p===null){ge=p=c;try{if(N=ge.stateNode,A)re=N.style,typeof re.setProperty=="function"?re.setProperty("display","none","important"):re.display="none";else{ue=ge.stateNode;var Ve=ge.memoizedProps.style,Re=Ve!=null&&Ve.hasOwnProperty("display")?Ve.display:null;ue.style.display=Re==null||typeof Re=="boolean"?"":(""+Re).trim()}}catch(Me){Jt(ge,ge.return,Me)}}}else if(c.tag===6){if(p===null){ge=c;try{ge.stateNode.nodeValue=A?"":ge.memoizedProps}catch(Me){Jt(ge,ge.return,Me)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===s)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break e;for(;c.sibling===null;){if(c.return===null||c.return===s)break e;p===c&&(p=null),c=c.return}p===c&&(p=null),c.sibling.return=c.return,c=c.sibling}b&4&&(b=s.updateQueue,b!==null&&(p=b.retryQueue,p!==null&&(b.retryQueue=null,M_(s,p))));break;case 19:vi(c,s),gi(s),b&4&&(b=s.updateQueue,b!==null&&(s.updateQueue=null,M_(s,b)));break;case 30:break;case 21:break;default:vi(c,s),gi(s)}}function gi(s){var c=s.flags;if(c&2){try{for(var p,b=s.return;b!==null;){if(XR(b)){p=b;break}b=b.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var A=p.stateNode,N=j_(s);Ug(s,N,A);break;case 5:var re=p.stateNode;p.flags&32&&(zi(re,""),p.flags&=-33);var ue=j_(s);Ug(s,ue,re);break;case 3:case 4:var ge=p.stateNode.containerInfo,je=j_(s);P_(s,je,ge);break;default:throw Error(r(161))}}catch(Be){Jt(s,s.return,Be)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function aM(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var c=s;aM(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),s=s.sibling}}function al(s,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)eM(s,c.alternate,c),c=c.sibling}function Ru(s){for(s=s.child;s!==null;){var c=s;switch(c.tag){case 0:case 11:case 14:case 15:il(4,c,c.return),Ru(c);break;case 1:Qa(c,c.return);var p=c.stateNode;typeof p.componentWillUnmount=="function"&&KR(c,c.return,p),Ru(c);break;case 27:np(c.stateNode);case 26:case 5:Qa(c,c.return),Ru(c);break;case 22:c.memoizedState===null&&Ru(c);break;case 30:Ru(c);break;default:Ru(c)}s=s.sibling}}function ol(s,c,p){for(p=p&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var b=c.alternate,A=s,N=c,re=N.flags;switch(N.tag){case 0:case 11:case 15:ol(A,N,p),Wh(4,N);break;case 1:if(ol(A,N,p),b=N,A=b.stateNode,typeof A.componentDidMount=="function")try{A.componentDidMount()}catch(je){Jt(b,b.return,je)}if(b=N,A=b.updateQueue,A!==null){var ue=b.stateNode;try{var ge=A.shared.hiddenCallbacks;if(ge!==null)for(A.shared.hiddenCallbacks=null,A=0;A<ge.length;A++)L4(ge[A],ue)}catch(je){Jt(b,b.return,je)}}p&&re&64&&YR(N),Gh(N,N.return);break;case 27:QR(N);case 26:case 5:ol(A,N,p),p&&b===null&&re&4&&ZR(N),Gh(N,N.return);break;case 12:ol(A,N,p);break;case 13:ol(A,N,p),p&&re&4&&rM(A,N);break;case 22:N.memoizedState===null&&ol(A,N,p),Gh(N,N.return);break;case 30:break;default:ol(A,N,p)}c=c.sibling}}function N_(s,c){var p=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),s=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(s=c.memoizedState.cachePool.pool),s!==p&&(s!=null&&s.refCount++,p!=null&&Mh(p))}function L_(s,c){s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&Mh(s))}function Ja(s,c,p,b){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)oM(s,c,p,b),c=c.sibling}function oM(s,c,p,b){var A=c.flags;switch(c.tag){case 0:case 11:case 15:Ja(s,c,p,b),A&2048&&Wh(9,c);break;case 1:Ja(s,c,p,b);break;case 3:Ja(s,c,p,b),A&2048&&(s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&Mh(s)));break;case 12:if(A&2048){Ja(s,c,p,b),s=c.stateNode;try{var N=c.memoizedProps,re=N.id,ue=N.onPostCommit;typeof ue=="function"&&ue(re,c.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(ge){Jt(c,c.return,ge)}}else Ja(s,c,p,b);break;case 13:Ja(s,c,p,b);break;case 23:break;case 22:N=c.stateNode,re=c.alternate,c.memoizedState!==null?N._visibility&2?Ja(s,c,p,b):Yh(s,c):N._visibility&2?Ja(s,c,p,b):(N._visibility|=2,of(s,c,p,b,(c.subtreeFlags&10256)!==0)),A&2048&&N_(re,c);break;case 24:Ja(s,c,p,b),A&2048&&L_(c.alternate,c);break;default:Ja(s,c,p,b)}}function of(s,c,p,b,A){for(A=A&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var N=s,re=c,ue=p,ge=b,je=re.flags;switch(re.tag){case 0:case 11:case 15:of(N,re,ue,ge,A),Wh(8,re);break;case 23:break;case 22:var Be=re.stateNode;re.memoizedState!==null?Be._visibility&2?of(N,re,ue,ge,A):Yh(N,re):(Be._visibility|=2,of(N,re,ue,ge,A)),A&&je&2048&&N_(re.alternate,re);break;case 24:of(N,re,ue,ge,A),A&&je&2048&&L_(re.alternate,re);break;default:of(N,re,ue,ge,A)}c=c.sibling}}function Yh(s,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var p=s,b=c,A=b.flags;switch(b.tag){case 22:Yh(p,b),A&2048&&N_(b.alternate,b);break;case 24:Yh(p,b),A&2048&&L_(b.alternate,b);break;default:Yh(p,b)}c=c.sibling}}var Kh=8192;function sf(s){if(s.subtreeFlags&Kh)for(s=s.child;s!==null;)sM(s),s=s.sibling}function sM(s){switch(s.tag){case 26:sf(s),s.flags&Kh&&s.memoizedState!==null&&RK(ba,s.memoizedState,s.memoizedProps);break;case 5:sf(s);break;case 3:case 4:var c=ba;ba=Jg(s.stateNode.containerInfo),sf(s),ba=c;break;case 22:s.memoizedState===null&&(c=s.alternate,c!==null&&c.memoizedState!==null?(c=Kh,Kh=16777216,sf(s),Kh=c):sf(s));break;default:sf(s)}}function lM(s){var c=s.alternate;if(c!==null&&(s=c.child,s!==null)){c.child=null;do c=s.sibling,s.sibling=null,s=c;while(s!==null)}}function Zh(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var p=0;p<c.length;p++){var b=c[p];or=b,cM(b,s)}lM(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)uM(s),s=s.sibling}function uM(s){switch(s.tag){case 0:case 11:case 15:Zh(s),s.flags&2048&&il(9,s,s.return);break;case 3:Zh(s);break;case 12:Zh(s);break;case 22:var c=s.stateNode;s.memoizedState!==null&&c._visibility&2&&(s.return===null||s.return.tag!==13)?(c._visibility&=-3,zg(s)):Zh(s);break;default:Zh(s)}}function zg(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var p=0;p<c.length;p++){var b=c[p];or=b,cM(b,s)}lM(s)}for(s=s.child;s!==null;){switch(c=s,c.tag){case 0:case 11:case 15:il(8,c,c.return),zg(c);break;case 22:p=c.stateNode,p._visibility&2&&(p._visibility&=-3,zg(c));break;default:zg(c)}s=s.sibling}}function cM(s,c){for(;or!==null;){var p=or;switch(p.tag){case 0:case 11:case 15:il(8,p,c);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var b=p.memoizedState.cachePool.pool;b!=null&&b.refCount++}break;case 24:Mh(p.memoizedState.cache)}if(b=p.child,b!==null)b.return=p,or=b;else e:for(p=s;or!==null;){b=or;var A=b.sibling,N=b.return;if(tM(b),b===p){or=null;break e}if(A!==null){A.return=N,or=A;break e}or=N}}}var GY={getCacheForType:function(s){var c=Ar(Yn),p=c.data.get(s);return p===void 0&&(p=s(),c.data.set(s,p)),p}},YY=typeof WeakMap=="function"?WeakMap:Map,Vt=0,ln=null,At=null,Dt=0,Ht=0,yi=null,sl=!1,lf=!1,D_=!1,Zo=0,An=0,ll=0,Mu=0,k_=0,Ki=0,uf=0,Xh=null,ni=null,I_=!1,$_=0,Fg=1/0,qg=null,ul=null,yr=0,cl=null,cf=null,ff=0,B_=0,U_=null,fM=null,Qh=0,z_=null;function bi(){if((Vt&2)!==0&&Dt!==0)return Dt&-Dt;if(W.T!==null){var s=Xc;return s!==0?s:Y_()}return tr()}function dM(){Ki===0&&(Ki=(Dt&536870912)===0||yt?Es():536870912);var s=Yi.current;return s!==null&&(s.flags|=32),Ki}function wi(s,c,p){(s===ln&&(Ht===2||Ht===9)||s.cancelPendingCommit!==null)&&(df(s,0),fl(s,Dt,Ki,!1)),za(s,p),((Vt&2)===0||s!==ln)&&(s===ln&&((Vt&2)===0&&(Mu|=p),An===4&&fl(s,Dt,Ki,!1)),eo(s))}function hM(s,c,p){if((Vt&6)!==0)throw Error(r(327));var b=!p&&(c&124)===0&&(c&s.expiredLanes)===0||Cr(s,c),A=b?XY(s,c):V_(s,c,!0),N=b;do{if(A===0){lf&&!b&&fl(s,c,0,!1);break}else{if(p=s.current.alternate,N&&!KY(p)){A=V_(s,c,!1),N=!1;continue}if(A===2){if(N=c,s.errorRecoveryDisabledLanes&N)var re=0;else re=s.pendingLanes&-536870913,re=re!==0?re:re&536870912?536870912:0;if(re!==0){c=re;e:{var ue=s;A=Xh;var ge=ue.current.memoizedState.isDehydrated;if(ge&&(df(ue,re).flags|=256),re=V_(ue,re,!1),re!==2){if(D_&&!ge){ue.errorRecoveryDisabledLanes|=N,Mu|=N,A=4;break e}N=ni,ni=A,N!==null&&(ni===null?ni=N:ni.push.apply(ni,N))}A=re}if(N=!1,A!==2)continue}}if(A===1){df(s,0),fl(s,c,0,!0);break}e:{switch(b=s,N=A,N){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:fl(b,c,Ki,!sl);break e;case 2:ni=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(A=$_+300-xe(),10<A)){if(fl(b,c,Ki,!sl),$t(b,0,!0)!==0)break e;b.timeoutHandle=FM(pM.bind(null,b,p,ni,qg,I_,c,Ki,Mu,uf,sl,N,2,-0,0),A);break e}pM(b,p,ni,qg,I_,c,Ki,Mu,uf,sl,N,0,-0,0)}}break}while(!0);eo(s)}function pM(s,c,p,b,A,N,re,ue,ge,je,Be,Ve,Re,Me){if(s.timeoutHandle=-1,Ve=c.subtreeFlags,(Ve&8192||(Ve&16785408)===16785408)&&(ap={stylesheets:null,count:0,unsuspend:PK},sM(c),Ve=MK(),Ve!==null)){s.cancelPendingCommit=Ve(_M.bind(null,s,c,N,p,b,A,re,ue,ge,Be,1,Re,Me)),fl(s,N,re,!je);return}_M(s,c,N,p,b,A,re,ue,ge)}function KY(s){for(var c=s;;){var p=c.tag;if((p===0||p===11||p===15)&&c.flags&16384&&(p=c.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var b=0;b<p.length;b++){var A=p[b],N=A.getSnapshot;A=A.value;try{if(!Ir(N(),A))return!1}catch{return!1}}if(p=c.child,c.subtreeFlags&16384&&p!==null)p.return=c,c=p;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function fl(s,c,p,b){c&=~k_,c&=~Mu,s.suspendedLanes|=c,s.pingedLanes&=~c,b&&(s.warmLanes|=c),b=s.expirationTimes;for(var A=c;0<A;){var N=31-Ge(A),re=1<<N;b[N]=-1,A&=~re}p!==0&&As(s,p,c)}function Vg(){return(Vt&6)===0?(Jh(0),!1):!0}function F_(){if(At!==null){if(Ht===0)var s=At.return;else s=At,ga=Gi=null,a_(s),rf=null,qh=0,s=At;for(;s!==null;)GR(s.alternate,s),s=s.return;At=null}}function df(s,c){var p=s.timeoutHandle;p!==-1&&(s.timeoutHandle=-1,hK(p)),p=s.cancelPendingCommit,p!==null&&(s.cancelPendingCommit=null,p()),F_(),ln=s,At=p=Wi(s.current,null),Dt=c,Ht=0,yi=null,sl=!1,lf=Cr(s,c),D_=!1,uf=Ki=k_=Mu=ll=An=0,ni=Xh=null,I_=!1,(c&8)!==0&&(c|=c&32);var b=s.entangledLanes;if(b!==0)for(s=s.entanglements,b&=c;0<b;){var A=31-Ge(b),N=1<<A;c|=s[A],b&=~N}return Zo=c,wu(),p}function mM(s,c){Ct=null,W.H=Rg,c===Lh||c===_g?(c=M4(),Ht=3):c===j4?(c=M4(),Ht=4):Ht=c===NR?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,yi=c,At===null&&(An=1,kg(s,Br(c,s.current)))}function vM(){var s=W.H;return W.H=Rg,s===null?Rg:s}function gM(){var s=W.A;return W.A=GY,s}function q_(){An=4,sl||(Dt&4194048)!==Dt&&Yi.current!==null||(lf=!0),(ll&134217727)===0&&(Mu&134217727)===0||ln===null||fl(ln,Dt,Ki,!1)}function V_(s,c,p){var b=Vt;Vt|=2;var A=vM(),N=gM();(ln!==s||Dt!==c)&&(qg=null,df(s,c)),c=!1;var re=An;e:do try{if(Ht!==0&&At!==null){var ue=At,ge=yi;switch(Ht){case 8:F_(),re=6;break e;case 3:case 2:case 9:case 6:Yi.current===null&&(c=!0);var je=Ht;if(Ht=0,yi=null,hf(s,ue,ge,je),p&&lf){re=0;break e}break;default:je=Ht,Ht=0,yi=null,hf(s,ue,ge,je)}}ZY(),re=An;break}catch(Be){mM(s,Be)}while(!0);return c&&s.shellSuspendCounter++,ga=Gi=null,Vt=b,W.H=A,W.A=N,At===null&&(ln=null,Dt=0,wu()),re}function ZY(){for(;At!==null;)yM(At)}function XY(s,c){var p=Vt;Vt|=2;var b=vM(),A=gM();ln!==s||Dt!==c?(qg=null,Fg=xe()+500,df(s,c)):lf=Cr(s,c);e:do try{if(Ht!==0&&At!==null){c=At;var N=yi;t:switch(Ht){case 1:Ht=0,yi=null,hf(s,c,N,1);break;case 2:case 9:if(P4(N)){Ht=0,yi=null,bM(c);break}c=function(){Ht!==2&&Ht!==9||ln!==s||(Ht=7),eo(s)},N.then(c,c);break e;case 3:Ht=7;break e;case 4:Ht=5;break e;case 7:P4(N)?(Ht=0,yi=null,bM(c)):(Ht=0,yi=null,hf(s,c,N,7));break;case 5:var re=null;switch(At.tag){case 26:re=At.memoizedState;case 5:case 27:var ue=At;if(!re||eN(re)){Ht=0,yi=null;var ge=ue.sibling;if(ge!==null)At=ge;else{var je=ue.return;je!==null?(At=je,Hg(je)):At=null}break t}}Ht=0,yi=null,hf(s,c,N,5);break;case 6:Ht=0,yi=null,hf(s,c,N,6);break;case 8:F_(),An=6;break e;default:throw Error(r(462))}}QY();break}catch(Be){mM(s,Be)}while(!0);return ga=Gi=null,W.H=b,W.A=A,Vt=p,At!==null?0:(ln=null,Dt=0,wu(),An)}function QY(){for(;At!==null&&!ye();)yM(At)}function yM(s){var c=HR(s.alternate,s,Zo);s.memoizedProps=s.pendingProps,c===null?Hg(s):At=c}function bM(s){var c=s,p=c.alternate;switch(c.tag){case 15:case 0:c=BR(p,c,c.pendingProps,c.type,void 0,Dt);break;case 11:c=BR(p,c,c.pendingProps,c.type.render,c.ref,Dt);break;case 5:a_(c);default:GR(p,c),c=At=Ph(c,Zo),c=HR(p,c,Zo)}s.memoizedProps=s.pendingProps,c===null?Hg(s):At=c}function hf(s,c,p,b){ga=Gi=null,a_(c),rf=null,qh=0;var A=c.return;try{if(zY(s,A,c,p,Dt)){An=1,kg(s,Br(p,s.current)),At=null;return}}catch(N){if(A!==null)throw At=A,N;An=1,kg(s,Br(p,s.current)),At=null;return}c.flags&32768?(yt||b===1?s=!0:lf||(Dt&536870912)!==0?s=!1:(sl=s=!0,(b===2||b===9||b===3||b===6)&&(b=Yi.current,b!==null&&b.tag===13&&(b.flags|=16384))),wM(c,s)):Hg(c)}function Hg(s){var c=s;do{if((c.flags&32768)!==0){wM(c,sl);return}s=c.return;var p=qY(c.alternate,c,Zo);if(p!==null){At=p;return}if(c=c.sibling,c!==null){At=c;return}At=c=s}while(c!==null);An===0&&(An=5)}function wM(s,c){do{var p=VY(s.alternate,s);if(p!==null){p.flags&=32767,At=p;return}if(p=s.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!c&&(s=s.sibling,s!==null)){At=s;return}At=s=p}while(s!==null);An=6,At=null}function _M(s,c,p,b,A,N,re,ue,ge){s.cancelPendingCommit=null;do Wg();while(yr!==0);if((Vt&6)!==0)throw Error(r(327));if(c!==null){if(c===s.current)throw Error(r(177));if(N=c.lanes|c.childLanes,N|=mi,Pc(s,p,N,re,ue,ge),s===ln&&(At=ln=null,Dt=0),cf=c,cl=s,ff=p,B_=N,U_=A,fM=b,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,nK($e,function(){return EM(),null})):(s.callbackNode=null,s.callbackPriority=0),b=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||b){b=W.T,W.T=null,A=B.p,B.p=2,re=Vt,Vt|=4;try{HY(s,c,p)}finally{Vt=re,B.p=A,W.T=b}}yr=1,xM(),SM(),OM()}}function xM(){if(yr===1){yr=0;var s=cl,c=cf,p=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||p){p=W.T,W.T=null;var b=B.p;B.p=2;var A=Vt;Vt|=4;try{iM(c,s);var N=nx,re=gu(s.containerInfo),ue=N.focusedElem,ge=N.selectionRange;if(re!==ue&&ue&&ue.ownerDocument&&qc(ue.ownerDocument.documentElement,ue)){if(ge!==null&&yu(ue)){var je=ge.start,Be=ge.end;if(Be===void 0&&(Be=je),"selectionStart"in ue)ue.selectionStart=je,ue.selectionEnd=Math.min(Be,ue.value.length);else{var Ve=ue.ownerDocument||document,Re=Ve&&Ve.defaultView||window;if(Re.getSelection){var Me=Re.getSelection(),gt=ue.textContent.length,dt=Math.min(ge.start,gt),Kt=ge.end===void 0?dt:Math.min(ge.end,gt);!Me.extend&&dt>Kt&&(re=Kt,Kt=dt,dt=re);var Oe=Ah(ue,dt),_e=Ah(ue,Kt);if(Oe&&_e&&(Me.rangeCount!==1||Me.anchorNode!==Oe.node||Me.anchorOffset!==Oe.offset||Me.focusNode!==_e.node||Me.focusOffset!==_e.offset)){var Te=Ve.createRange();Te.setStart(Oe.node,Oe.offset),Me.removeAllRanges(),dt>Kt?(Me.addRange(Te),Me.extend(_e.node,_e.offset)):(Te.setEnd(_e.node,_e.offset),Me.addRange(Te))}}}}for(Ve=[],Me=ue;Me=Me.parentNode;)Me.nodeType===1&&Ve.push({element:Me,left:Me.scrollLeft,top:Me.scrollTop});for(typeof ue.focus=="function"&&ue.focus(),ue=0;ue<Ve.length;ue++){var Ue=Ve[ue];Ue.element.scrollLeft=Ue.left,Ue.element.scrollTop=Ue.top}}iy=!!tx,nx=tx=null}finally{Vt=A,B.p=b,W.T=p}}s.current=c,yr=2}}function SM(){if(yr===2){yr=0;var s=cl,c=cf,p=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||p){p=W.T,W.T=null;var b=B.p;B.p=2;var A=Vt;Vt|=4;try{eM(s,c.alternate,c)}finally{Vt=A,B.p=b,W.T=p}}yr=3}}function OM(){if(yr===4||yr===3){yr=0,me();var s=cl,c=cf,p=ff,b=fM;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?yr=5:(yr=0,cf=cl=null,CM(s,s.pendingLanes));var A=s.pendingLanes;if(A===0&&(ul=null),hn(p),c=c.stateNode,Pe&&typeof Pe.onCommitFiberRoot=="function")try{Pe.onCommitFiberRoot(Ne,c,void 0,(c.current.flags&128)===128)}catch{}if(b!==null){c=W.T,A=B.p,B.p=2,W.T=null;try{for(var N=s.onRecoverableError,re=0;re<b.length;re++){var ue=b[re];N(ue.value,{componentStack:ue.stack})}}finally{W.T=c,B.p=A}}(ff&3)!==0&&Wg(),eo(s),A=s.pendingLanes,(p&4194090)!==0&&(A&42)!==0?s===z_?Qh++:(Qh=0,z_=s):Qh=0,Jh(0)}}function CM(s,c){(s.pooledCacheLanes&=c)===0&&(c=s.pooledCache,c!=null&&(s.pooledCache=null,Mh(c)))}function Wg(s){return xM(),SM(),OM(),EM()}function EM(){if(yr!==5)return!1;var s=cl,c=B_;B_=0;var p=hn(ff),b=W.T,A=B.p;try{B.p=32>p?32:p,W.T=null,p=U_,U_=null;var N=cl,re=ff;if(yr=0,cf=cl=null,ff=0,(Vt&6)!==0)throw Error(r(331));var ue=Vt;if(Vt|=4,uM(N.current),oM(N,N.current,re,p),Vt=ue,Jh(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot=="function")try{Pe.onPostCommitFiberRoot(Ne,N)}catch{}return!0}finally{B.p=A,W.T=b,CM(s,c)}}function TM(s,c,p){c=Br(p,c),c=b_(s.stateNode,c,2),s=el(s,c,2),s!==null&&(za(s,2),eo(s))}function Jt(s,c,p){if(s.tag===3)TM(s,s,p);else for(;c!==null;){if(c.tag===3){TM(c,s,p);break}else if(c.tag===1){var b=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&(ul===null||!ul.has(b))){s=Br(p,s),p=RR(2),b=el(c,p,2),b!==null&&(MR(p,b,c,s),za(b,2),eo(b));break}}c=c.return}}function H_(s,c,p){var b=s.pingCache;if(b===null){b=s.pingCache=new YY;var A=new Set;b.set(c,A)}else A=b.get(c),A===void 0&&(A=new Set,b.set(c,A));A.has(p)||(D_=!0,A.add(p),s=JY.bind(null,s,c,p),c.then(s,s))}function JY(s,c,p){var b=s.pingCache;b!==null&&b.delete(c),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,ln===s&&(Dt&p)===p&&(An===4||An===3&&(Dt&62914560)===Dt&&300>xe()-$_?(Vt&2)===0&&df(s,0):k_|=p,uf===Dt&&(uf=0)),eo(s)}function AM(s,c){c===0&&(c=li()),s=Ys(s,c),s!==null&&(za(s,c),eo(s))}function eK(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),AM(s,p)}function tK(s,c){var p=0;switch(s.tag){case 13:var b=s.stateNode,A=s.memoizedState;A!==null&&(p=A.retryLane);break;case 19:b=s.stateNode;break;case 22:b=s.stateNode._retryCache;break;default:throw Error(r(314))}b!==null&&b.delete(c),AM(s,p)}function nK(s,c){return le(s,c)}var Gg=null,pf=null,W_=!1,Yg=!1,G_=!1,Nu=0;function eo(s){s!==pf&&s.next===null&&(pf===null?Gg=pf=s:pf=pf.next=s),Yg=!0,W_||(W_=!0,iK())}function Jh(s,c){if(!G_&&Yg){G_=!0;do for(var p=!1,b=Gg;b!==null;){if(s!==0){var A=b.pendingLanes;if(A===0)var N=0;else{var re=b.suspendedLanes,ue=b.pingedLanes;N=(1<<31-Ge(42|s)+1)-1,N&=A&~(re&~ue),N=N&201326741?N&201326741|1:N?N|2:0}N!==0&&(p=!0,MM(b,N))}else N=Dt,N=$t(b,b===ln?N:0,b.cancelPendingCommit!==null||b.timeoutHandle!==-1),(N&3)===0||Cr(b,N)||(p=!0,MM(b,N));b=b.next}while(p);G_=!1}}function rK(){jM()}function jM(){Yg=W_=!1;var s=0;Nu!==0&&(dK()&&(s=Nu),Nu=0);for(var c=xe(),p=null,b=Gg;b!==null;){var A=b.next,N=PM(b,c);N===0?(b.next=null,p===null?Gg=A:p.next=A,A===null&&(pf=p)):(p=b,(s!==0||(N&3)!==0)&&(Yg=!0)),b=A}Jh(s)}function PM(s,c){for(var p=s.suspendedLanes,b=s.pingedLanes,A=s.expirationTimes,N=s.pendingLanes&-62914561;0<N;){var re=31-Ge(N),ue=1<<re,ge=A[re];ge===-1?((ue&p)===0||(ue&b)!==0)&&(A[re]=Wn(ue,c)):ge<=c&&(s.expiredLanes|=ue),N&=~ue}if(c=ln,p=Dt,p=$t(s,s===c?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),b=s.callbackNode,p===0||s===c&&(Ht===2||Ht===9)||s.cancelPendingCommit!==null)return b!==null&&b!==null&&pe(b),s.callbackNode=null,s.callbackPriority=0;if((p&3)===0||Cr(s,p)){if(c=p&-p,c===s.callbackPriority)return c;switch(b!==null&&pe(b),hn(p)){case 2:case 8:p=ze;break;case 32:p=$e;break;case 268435456:p=we;break;default:p=$e}return b=RM.bind(null,s),p=le(p,b),s.callbackPriority=c,s.callbackNode=p,c}return b!==null&&b!==null&&pe(b),s.callbackPriority=2,s.callbackNode=null,2}function RM(s,c){if(yr!==0&&yr!==5)return s.callbackNode=null,s.callbackPriority=0,null;var p=s.callbackNode;if(Wg()&&s.callbackNode!==p)return null;var b=Dt;return b=$t(s,s===ln?b:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),b===0?null:(hM(s,b,c),PM(s,xe()),s.callbackNode!=null&&s.callbackNode===p?RM.bind(null,s):null)}function MM(s,c){if(Wg())return null;hM(s,c,!0)}function iK(){pK(function(){(Vt&6)!==0?le(De,rK):jM()})}function Y_(){return Nu===0&&(Nu=Es()),Nu}function NM(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:Ds(""+s)}function LM(s,c){var p=c.ownerDocument.createElement("input");return p.name=c.name,p.value=c.value,s.id&&p.setAttribute("form",s.id),c.parentNode.insertBefore(p,c),s=new FormData(s),p.parentNode.removeChild(p),s}function aK(s,c,p,b,A){if(c==="submit"&&p&&p.stateNode===A){var N=NM((A[rn]||null).action),re=b.submitter;re&&(c=(c=re[rn]||null)?NM(c.formAction):re.getAttribute("formAction"),c!==null&&(N=c,re=null));var ue=new du("action","action",null,b,A);s.push({event:ue,listeners:[{instance:null,listener:function(){if(b.defaultPrevented){if(Nu!==0){var ge=re?LM(A,re):new FormData(A);p_(p,{pending:!0,data:ge,method:A.method,action:N},null,ge)}}else typeof N=="function"&&(ue.preventDefault(),ge=re?LM(A,re):new FormData(A),p_(p,{pending:!0,data:ge,method:A.method,action:N},N,ge))},currentTarget:A}]})}}for(var K_=0;K_<Bo.length;K_++){var Z_=Bo[K_],oK=Z_.toLowerCase(),sK=Z_[0].toUpperCase()+Z_.slice(1);pi(oK,"on"+sK)}pi(dg,"onAnimationEnd"),pi(hi,"onAnimationIteration"),pi(bu,"onAnimationStart"),pi("dblclick","onDoubleClick"),pi("focusin","onFocus"),pi("focusout","onBlur"),pi(qw,"onTransitionRun"),pi(Gc,"onTransitionStart"),pi(Vw,"onTransitionCancel"),pi(jh,"onTransitionEnd"),To("onMouseEnter",["mouseout","mouseover"]),To("onMouseLeave",["mouseout","mouseover"]),To("onPointerEnter",["pointerout","pointerover"]),To("onPointerLeave",["pointerout","pointerover"]),Eo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Eo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Eo("onBeforeInput",["compositionend","keypress","textInput","paste"]),Eo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Eo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Eo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ep="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(" "),lK=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(ep));function DM(s,c){c=(c&4)!==0;for(var p=0;p<s.length;p++){var b=s[p],A=b.event;b=b.listeners;e:{var N=void 0;if(c)for(var re=b.length-1;0<=re;re--){var ue=b[re],ge=ue.instance,je=ue.currentTarget;if(ue=ue.listener,ge!==N&&A.isPropagationStopped())break e;N=ue,A.currentTarget=je;try{N(A)}catch(Be){Dg(Be)}A.currentTarget=null,N=ge}else for(re=0;re<b.length;re++){if(ue=b[re],ge=ue.instance,je=ue.currentTarget,ue=ue.listener,ge!==N&&A.isPropagationStopped())break e;N=ue,A.currentTarget=je;try{N(A)}catch(Be){Dg(Be)}A.currentTarget=null,N=ge}}}}function jt(s,c){var p=c[Ln];p===void 0&&(p=c[Ln]=new Set);var b=s+"__bubble";p.has(b)||(kM(c,s,2,!1),p.add(b))}function X_(s,c,p){var b=0;c&&(b|=4),kM(p,s,b,c)}var Kg="_reactListening"+Math.random().toString(36).slice(2);function Q_(s){if(!s[Kg]){s[Kg]=!0,Wv.forEach(function(p){p!=="selectionchange"&&(lK.has(p)||X_(p,!1,s),X_(p,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[Kg]||(c[Kg]=!0,X_("selectionchange",!1,c))}}function kM(s,c,p,b){switch(oN(c)){case 2:var A=DK;break;case 8:A=kK;break;default:A=dx}p=A.bind(null,c,p,s),A=void 0,!fu||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(A=!0),b?A!==void 0?s.addEventListener(c,p,{capture:!0,passive:A}):s.addEventListener(c,p,!0):A!==void 0?s.addEventListener(c,p,{passive:A}):s.addEventListener(c,p,!1)}function J_(s,c,p,b,A){var N=b;if((c&1)===0&&(c&2)===0&&b!==null)e:for(;;){if(b===null)return;var re=b.tag;if(re===3||re===4){var ue=b.stateNode.containerInfo;if(ue===A)break;if(re===4)for(re=b.return;re!==null;){var ge=re.tag;if((ge===3||ge===4)&&re.stateNode.containerInfo===A)return;re=re.return}for(;ue!==null;){if(re=qa(ue),re===null)return;if(ge=re.tag,ge===5||ge===6||ge===26||ge===27){b=N=re;continue e}ue=ue.parentNode}}b=b.return}ui(function(){var je=N,Be=ks(p),Ve=[];e:{var Re=hg.get(s);if(Re!==void 0){var Me=du,gt=s;switch(s){case"keypress":if(Tn(p)===0)break e;case"keydown":case"keyup":Me=Dw;break;case"focusin":gt="focus",Me=bh;break;case"focusout":gt="blur",Me=bh;break;case"beforeblur":case"afterblur":Me=bh;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Me=Bs;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Me=Pw;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Me=Iw;break;case dg:case hi:case bu:Me=Rw;break;case jh:Me=$w;break;case"scroll":case"scrollend":Me=jw;break;case"wheel":Me=rg;break;case"copy":case"cut":case"paste":Me=wh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Me=xh;break;case"toggle":case"beforetoggle":Me=Do}var dt=(c&4)!==0,Kt=!dt&&(s==="scroll"||s==="scrollend"),Oe=dt?Re!==null?Re+"Capture":null:Re;dt=[];for(var _e=je,Te;_e!==null;){var Ue=_e;if(Te=Ue.stateNode,Ue=Ue.tag,Ue!==5&&Ue!==26&&Ue!==27||Te===null||Oe===null||(Ue=Bt(_e,Oe),Ue!=null&&dt.push(tp(_e,Ue,Te))),Kt)break;_e=_e.return}0<dt.length&&(Re=new Me(Re,gt,null,p,Be),Ve.push({event:Re,listeners:dt}))}}if((c&7)===0){e:{if(Re=s==="mouseover"||s==="pointerover",Me=s==="mouseout"||s==="pointerout",Re&&p!==cu&&(gt=p.relatedTarget||p.fromElement)&&(qa(gt)||gt[nr]))break e;if((Me||Re)&&(Re=Be.window===Be?Be:(Re=Be.ownerDocument)?Re.defaultView||Re.parentWindow:window,Me?(gt=p.relatedTarget||p.toElement,Me=je,gt=gt?qa(gt):null,gt!==null&&(Kt=a(gt),dt=gt.tag,gt!==Kt||dt!==5&&dt!==27&&dt!==6)&&(gt=null)):(Me=null,gt=je),Me!==gt)){if(dt=Bs,Ue="onMouseLeave",Oe="onMouseEnter",_e="mouse",(s==="pointerout"||s==="pointerover")&&(dt=xh,Ue="onPointerLeave",Oe="onPointerEnter",_e="pointer"),Kt=Me==null?Re:Ui(Me),Te=gt==null?Re:Ui(gt),Re=new dt(Ue,_e+"leave",Me,p,Be),Re.target=Kt,Re.relatedTarget=Te,Ue=null,qa(Be)===je&&(dt=new dt(Oe,_e+"enter",gt,p,Be),dt.target=Te,dt.relatedTarget=Kt,Ue=dt),Kt=Ue,Me&&gt)t:{for(dt=Me,Oe=gt,_e=0,Te=dt;Te;Te=mf(Te))_e++;for(Te=0,Ue=Oe;Ue;Ue=mf(Ue))Te++;for(;0<_e-Te;)dt=mf(dt),_e--;for(;0<Te-_e;)Oe=mf(Oe),Te--;for(;_e--;){if(dt===Oe||Oe!==null&&dt===Oe.alternate)break t;dt=mf(dt),Oe=mf(Oe)}dt=null}else dt=null;Me!==null&&IM(Ve,Re,Me,dt,!1),gt!==null&&Kt!==null&&IM(Ve,Kt,gt,dt,!0)}}e:{if(Re=je?Ui(je):window,Me=Re.nodeName&&Re.nodeName.toLowerCase(),Me==="select"||Me==="input"&&Re.type==="file")var it=Fs;else if(Io(Re))if(Ch)it=Fw;else{it=zw;var Tt=Th}else Me=Re.nodeName,!Me||Me.toLowerCase()!=="input"||Re.type!=="checkbox"&&Re.type!=="radio"?je&&uu(je.elementType)&&(it=Fs):it=va;if(it&&(it=it(s,je))){lg(Ve,it,p,Be);break e}Tt&&Tt(s,Re,je),s==="focusout"&&je&&Re.type==="number"&&je.memoizedProps.value!=null&&Ns(Re,"number",Re.value)}switch(Tt=je?Ui(je):window,s){case"focusin":(Io(Tt)||Tt.contentEditable==="true")&&(di=Tt,Hs=je,$o=null);break;case"focusout":$o=Hs=di=null;break;case"mousedown":Hc=!0;break;case"contextmenu":case"mouseup":case"dragend":Hc=!1,cg(Ve,p,Be);break;case"selectionchange":if(Vc)break;case"keydown":case"keyup":cg(Ve,p,Be)}var ct;if(ko)e:{switch(s){case"compositionstart":var mt="onCompositionStart";break e;case"compositionend":mt="onCompositionEnd";break e;case"compositionupdate":mt="onCompositionUpdate";break e}mt=void 0}else Us?zc(s,p)&&(mt="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(mt="onCompositionStart");mt&&(Oh&&p.locale!=="ko"&&(Us||mt!=="onCompositionStart"?mt==="onCompositionEnd"&&Us&&(ct=$s()):(qi=Be,pa="value"in qi?qi.value:qi.textContent,Us=!0)),Tt=Zg(je,mt),0<Tt.length&&(mt=new ci(mt,s,null,p,Be),Ve.push({event:mt,listeners:Tt}),ct?mt.data=ct:(ct=og(p),ct!==null&&(mt.data=ct)))),(ct=ig?sg(s,p):Uw(s,p))&&(mt=Zg(je,"onBeforeInput"),0<mt.length&&(Tt=new ci("onBeforeInput","beforeinput",null,p,Be),Ve.push({event:Tt,listeners:mt}),Tt.data=ct)),aK(Ve,s,je,p,Be)}DM(Ve,c)})}function tp(s,c,p){return{instance:s,listener:c,currentTarget:p}}function Zg(s,c){for(var p=c+"Capture",b=[];s!==null;){var A=s,N=A.stateNode;if(A=A.tag,A!==5&&A!==26&&A!==27||N===null||(A=Bt(s,p),A!=null&&b.unshift(tp(s,A,N)),A=Bt(s,c),A!=null&&b.push(tp(s,A,N))),s.tag===3)return b;s=s.return}return[]}function mf(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function IM(s,c,p,b,A){for(var N=c._reactName,re=[];p!==null&&p!==b;){var ue=p,ge=ue.alternate,je=ue.stateNode;if(ue=ue.tag,ge!==null&&ge===b)break;ue!==5&&ue!==26&&ue!==27||je===null||(ge=je,A?(je=Bt(p,N),je!=null&&re.unshift(tp(p,je,ge))):A||(je=Bt(p,N),je!=null&&re.push(tp(p,je,ge)))),p=p.return}re.length!==0&&s.push({event:c,listeners:re})}var uK=/\r\n?/g,cK=/\u0000|\uFFFD/g;function $M(s){return(typeof s=="string"?s:""+s).replace(uK,`
`).replace(cK,"")}function BM(s,c){return c=$M(c),$M(s)===c}function Xg(){}function Yt(s,c,p,b,A,N){switch(p){case"children":typeof b=="string"?c==="body"||c==="textarea"&&b===""||zi(s,b):(typeof b=="number"||typeof b=="bigint")&&c!=="body"&&zi(s,""+b);break;case"className":Nc(s,"class",b);break;case"tabIndex":Nc(s,"tabindex",b);break;case"dir":case"role":case"viewBox":case"width":case"height":Nc(s,p,b);break;case"style":Ls(s,b,N);break;case"data":if(c!=="object"){Nc(s,"data",b);break}case"src":case"href":if(b===""&&(c!=="a"||p!=="href")){s.removeAttribute(p);break}if(b==null||typeof b=="function"||typeof b=="symbol"||typeof b=="boolean"){s.removeAttribute(p);break}b=Ds(""+b),s.setAttribute(p,b);break;case"action":case"formAction":if(typeof b=="function"){s.setAttribute(p,"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 N=="function"&&(p==="formAction"?(c!=="input"&&Yt(s,c,"name",A.name,A,null),Yt(s,c,"formEncType",A.formEncType,A,null),Yt(s,c,"formMethod",A.formMethod,A,null),Yt(s,c,"formTarget",A.formTarget,A,null)):(Yt(s,c,"encType",A.encType,A,null),Yt(s,c,"method",A.method,A,null),Yt(s,c,"target",A.target,A,null)));if(b==null||typeof b=="symbol"||typeof b=="boolean"){s.removeAttribute(p);break}b=Ds(""+b),s.setAttribute(p,b);break;case"onClick":b!=null&&(s.onclick=Xg);break;case"onScroll":b!=null&&jt("scroll",s);break;case"onScrollEnd":b!=null&&jt("scrollend",s);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(p=b.__html,p!=null){if(A.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"multiple":s.multiple=b&&typeof b!="function"&&typeof b!="symbol";break;case"muted":s.muted=b&&typeof b!="function"&&typeof b!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(b==null||typeof b=="function"||typeof b=="boolean"||typeof b=="symbol"){s.removeAttribute("xlink:href");break}p=Ds(""+b),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":b!=null&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(p,""+b):s.removeAttribute(p);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":b&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(p,""):s.removeAttribute(p);break;case"capture":case"download":b===!0?s.setAttribute(p,""):b!==!1&&b!=null&&typeof b!="function"&&typeof b!="symbol"?s.setAttribute(p,b):s.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":b!=null&&typeof b!="function"&&typeof b!="symbol"&&!isNaN(b)&&1<=b?s.setAttribute(p,b):s.removeAttribute(p);break;case"rowSpan":case"start":b==null||typeof b=="function"||typeof b=="symbol"||isNaN(b)?s.removeAttribute(p):s.setAttribute(p,b);break;case"popover":jt("beforetoggle",s),jt("toggle",s),Mc(s,"popover",b);break;case"xlinkActuate":ha(s,"http://www.w3.org/1999/xlink","xlink:actuate",b);break;case"xlinkArcrole":ha(s,"http://www.w3.org/1999/xlink","xlink:arcrole",b);break;case"xlinkRole":ha(s,"http://www.w3.org/1999/xlink","xlink:role",b);break;case"xlinkShow":ha(s,"http://www.w3.org/1999/xlink","xlink:show",b);break;case"xlinkTitle":ha(s,"http://www.w3.org/1999/xlink","xlink:title",b);break;case"xlinkType":ha(s,"http://www.w3.org/1999/xlink","xlink:type",b);break;case"xmlBase":ha(s,"http://www.w3.org/XML/1998/namespace","xml:base",b);break;case"xmlLang":ha(s,"http://www.w3.org/XML/1998/namespace","xml:lang",b);break;case"xmlSpace":ha(s,"http://www.w3.org/XML/1998/namespace","xml:space",b);break;case"is":Mc(s,"is",b);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=vh.get(p)||p,Mc(s,p,b))}}function ex(s,c,p,b,A,N){switch(p){case"style":Ls(s,b,N);break;case"dangerouslySetInnerHTML":if(b!=null){if(typeof b!="object"||!("__html"in b))throw Error(r(61));if(p=b.__html,p!=null){if(A.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"children":typeof b=="string"?zi(s,b):(typeof b=="number"||typeof b=="bigint")&&zi(s,""+b);break;case"onScroll":b!=null&&jt("scroll",s);break;case"onScrollEnd":b!=null&&jt("scrollend",s);break;case"onClick":b!=null&&(s.onclick=Xg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Gv.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(A=p.endsWith("Capture"),c=p.slice(2,A?p.length-7:void 0),N=s[rn]||null,N=N!=null?N[p]:null,typeof N=="function"&&s.removeEventListener(c,N,A),typeof b=="function")){typeof N!="function"&&N!==null&&(p in s?s[p]=null:s.hasAttribute(p)&&s.removeAttribute(p)),s.addEventListener(c,b,A);break e}p in s?s[p]=b:b===!0?s.setAttribute(p,""):Mc(s,p,b)}}}function br(s,c,p){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":jt("error",s),jt("load",s);var b=!1,A=!1,N;for(N in p)if(p.hasOwnProperty(N)){var re=p[N];if(re!=null)switch(N){case"src":b=!0;break;case"srcSet":A=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:Yt(s,c,N,re,p,null)}}A&&Yt(s,c,"srcSet",p.srcSet,p,null),b&&Yt(s,c,"src",p.src,p,null);return;case"input":jt("invalid",s);var ue=N=re=A=null,ge=null,je=null;for(b in p)if(p.hasOwnProperty(b)){var Be=p[b];if(Be!=null)switch(b){case"name":A=Be;break;case"type":re=Be;break;case"checked":ge=Be;break;case"defaultChecked":je=Be;break;case"value":N=Be;break;case"defaultValue":ue=Be;break;case"children":case"dangerouslySetInnerHTML":if(Be!=null)throw Error(r(137,c));break;default:Yt(s,c,b,Be,p,null)}}Kv(s,N,ue,ge,je,re,A,!1),Ms(s);return;case"select":jt("invalid",s),b=re=N=null;for(A in p)if(p.hasOwnProperty(A)&&(ue=p[A],ue!=null))switch(A){case"value":N=ue;break;case"defaultValue":re=ue;break;case"multiple":b=ue;default:Yt(s,c,A,ue,p,null)}c=N,p=re,s.multiple=!!b,c!=null?Qr(s,!!b,c,!1):p!=null&&Qr(s,!!b,p,!0);return;case"textarea":jt("invalid",s),N=A=b=null;for(re in p)if(p.hasOwnProperty(re)&&(ue=p[re],ue!=null))switch(re){case"value":b=ue;break;case"defaultValue":A=ue;break;case"children":N=ue;break;case"dangerouslySetInnerHTML":if(ue!=null)throw Error(r(91));break;default:Yt(s,c,re,ue,p,null)}Va(s,b,A,N),Ms(s);return;case"option":for(ge in p)if(p.hasOwnProperty(ge)&&(b=p[ge],b!=null))switch(ge){case"selected":s.selected=b&&typeof b!="function"&&typeof b!="symbol";break;default:Yt(s,c,ge,b,p,null)}return;case"dialog":jt("beforetoggle",s),jt("toggle",s),jt("cancel",s),jt("close",s);break;case"iframe":case"object":jt("load",s);break;case"video":case"audio":for(b=0;b<ep.length;b++)jt(ep[b],s);break;case"image":jt("error",s),jt("load",s);break;case"details":jt("toggle",s);break;case"embed":case"source":case"link":jt("error",s),jt("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(je in p)if(p.hasOwnProperty(je)&&(b=p[je],b!=null))switch(je){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:Yt(s,c,je,b,p,null)}return;default:if(uu(c)){for(Be in p)p.hasOwnProperty(Be)&&(b=p[Be],b!==void 0&&ex(s,c,Be,b,p,void 0));return}}for(ue in p)p.hasOwnProperty(ue)&&(b=p[ue],b!=null&&Yt(s,c,ue,b,p,null))}function fK(s,c,p,b){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var A=null,N=null,re=null,ue=null,ge=null,je=null,Be=null;for(Me in p){var Ve=p[Me];if(p.hasOwnProperty(Me)&&Ve!=null)switch(Me){case"checked":break;case"value":break;case"defaultValue":ge=Ve;default:b.hasOwnProperty(Me)||Yt(s,c,Me,null,b,Ve)}}for(var Re in b){var Me=b[Re];if(Ve=p[Re],b.hasOwnProperty(Re)&&(Me!=null||Ve!=null))switch(Re){case"type":N=Me;break;case"name":A=Me;break;case"checked":je=Me;break;case"defaultChecked":Be=Me;break;case"value":re=Me;break;case"defaultValue":ue=Me;break;case"children":case"dangerouslySetInnerHTML":if(Me!=null)throw Error(r(137,c));break;default:Me!==Ve&&Yt(s,c,Re,Me,b,Ve)}}Er(s,re,ue,ge,je,Be,N,A);return;case"select":Me=re=ue=Re=null;for(N in p)if(ge=p[N],p.hasOwnProperty(N)&&ge!=null)switch(N){case"value":break;case"multiple":Me=ge;default:b.hasOwnProperty(N)||Yt(s,c,N,null,b,ge)}for(A in b)if(N=b[A],ge=p[A],b.hasOwnProperty(A)&&(N!=null||ge!=null))switch(A){case"value":Re=N;break;case"defaultValue":ue=N;break;case"multiple":re=N;default:N!==ge&&Yt(s,c,A,N,b,ge)}c=ue,p=re,b=Me,Re!=null?Qr(s,!!p,Re,!1):!!b!=!!p&&(c!=null?Qr(s,!!p,c,!0):Qr(s,!!p,p?[]:"",!1));return;case"textarea":Me=Re=null;for(ue in p)if(A=p[ue],p.hasOwnProperty(ue)&&A!=null&&!b.hasOwnProperty(ue))switch(ue){case"value":break;case"children":break;default:Yt(s,c,ue,null,b,A)}for(re in b)if(A=b[re],N=p[re],b.hasOwnProperty(re)&&(A!=null||N!=null))switch(re){case"value":Re=A;break;case"defaultValue":Me=A;break;case"children":break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:A!==N&&Yt(s,c,re,A,b,N)}Sn(s,Re,Me);return;case"option":for(var gt in p)if(Re=p[gt],p.hasOwnProperty(gt)&&Re!=null&&!b.hasOwnProperty(gt))switch(gt){case"selected":s.selected=!1;break;default:Yt(s,c,gt,null,b,Re)}for(ge in b)if(Re=b[ge],Me=p[ge],b.hasOwnProperty(ge)&&Re!==Me&&(Re!=null||Me!=null))switch(ge){case"selected":s.selected=Re&&typeof Re!="function"&&typeof Re!="symbol";break;default:Yt(s,c,ge,Re,b,Me)}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 dt in p)Re=p[dt],p.hasOwnProperty(dt)&&Re!=null&&!b.hasOwnProperty(dt)&&Yt(s,c,dt,null,b,Re);for(je in b)if(Re=b[je],Me=p[je],b.hasOwnProperty(je)&&Re!==Me&&(Re!=null||Me!=null))switch(je){case"children":case"dangerouslySetInnerHTML":if(Re!=null)throw Error(r(137,c));break;default:Yt(s,c,je,Re,b,Me)}return;default:if(uu(c)){for(var Kt in p)Re=p[Kt],p.hasOwnProperty(Kt)&&Re!==void 0&&!b.hasOwnProperty(Kt)&&ex(s,c,Kt,void 0,b,Re);for(Be in b)Re=b[Be],Me=p[Be],!b.hasOwnProperty(Be)||Re===Me||Re===void 0&&Me===void 0||ex(s,c,Be,Re,b,Me);return}}for(var Oe in p)Re=p[Oe],p.hasOwnProperty(Oe)&&Re!=null&&!b.hasOwnProperty(Oe)&&Yt(s,c,Oe,null,b,Re);for(Ve in b)Re=b[Ve],Me=p[Ve],!b.hasOwnProperty(Ve)||Re===Me||Re==null&&Me==null||Yt(s,c,Ve,Re,b,Me)}var tx=null,nx=null;function Qg(s){return s.nodeType===9?s:s.ownerDocument}function UM(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function zM(s,c){if(s===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&c==="foreignObject"?0:s}function rx(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var ix=null;function dK(){var s=window.event;return s&&s.type==="popstate"?s===ix?!1:(ix=s,!0):(ix=null,!1)}var FM=typeof setTimeout=="function"?setTimeout:void 0,hK=typeof clearTimeout=="function"?clearTimeout:void 0,qM=typeof Promise=="function"?Promise:void 0,pK=typeof queueMicrotask=="function"?queueMicrotask:typeof qM<"u"?function(s){return qM.resolve(null).then(s).catch(mK)}:FM;function mK(s){setTimeout(function(){throw s})}function dl(s){return s==="head"}function VM(s,c){var p=c,b=0,A=0;do{var N=p.nextSibling;if(s.removeChild(p),N&&N.nodeType===8)if(p=N.data,p==="/$"){if(0<b&&8>b){p=b;var re=s.ownerDocument;if(p&1&&np(re.documentElement),p&2&&np(re.body),p&4)for(p=re.head,np(p),re=p.firstChild;re;){var ue=re.nextSibling,ge=re.nodeName;re[js]||ge==="SCRIPT"||ge==="STYLE"||ge==="LINK"&&re.rel.toLowerCase()==="stylesheet"||p.removeChild(re),re=ue}}if(A===0){s.removeChild(N),cp(c);return}A--}else p==="$"||p==="$?"||p==="$!"?A++:b=p.charCodeAt(0)-48;else b=0;p=N}while(p);cp(c)}function ax(s){var c=s.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var p=c;switch(c=c.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":ax(p),Rc(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}s.removeChild(p)}}function vK(s,c,p,b){for(;s.nodeType===1;){var A=p;if(s.nodeName.toLowerCase()!==c.toLowerCase()){if(!b&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(b){if(!s[js])switch(c){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(N=s.getAttribute("rel"),N==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(N!==A.rel||s.getAttribute("href")!==(A.href==null||A.href===""?null:A.href)||s.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin)||s.getAttribute("title")!==(A.title==null?null:A.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(N=s.getAttribute("src"),(N!==(A.src==null?null:A.src)||s.getAttribute("type")!==(A.type==null?null:A.type)||s.getAttribute("crossorigin")!==(A.crossOrigin==null?null:A.crossOrigin))&&N&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(c==="input"&&s.type==="hidden"){var N=A.name==null?null:""+A.name;if(A.type==="hidden"&&s.getAttribute("name")===N)return s}else return s;if(s=wa(s.nextSibling),s===null)break}return null}function gK(s,c,p){if(c==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!p||(s=wa(s.nextSibling),s===null))return null;return s}function ox(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function yK(s,c){var p=s.ownerDocument;if(s.data!=="$?"||p.readyState==="complete")c();else{var b=function(){c(),p.removeEventListener("DOMContentLoaded",b)};p.addEventListener("DOMContentLoaded",b),s._reactRetry=b}}function wa(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return s}var sx=null;function HM(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(c===0)return s;c--}else p==="/$"&&c++}s=s.previousSibling}return null}function WM(s,c,p){switch(c=Qg(p),s){case"html":if(s=c.documentElement,!s)throw Error(r(452));return s;case"head":if(s=c.head,!s)throw Error(r(453));return s;case"body":if(s=c.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function np(s){for(var c=s.attributes;c.length;)s.removeAttributeNode(c[0]);Rc(s)}var Zi=new Map,GM=new Set;function Jg(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var Xo=B.d;B.d={f:bK,r:wK,D:_K,C:xK,L:SK,m:OK,X:EK,S:CK,M:TK};function bK(){var s=Xo.f(),c=Vg();return s||c}function wK(s){var c=Oo(s);c!==null&&c.tag===5&&c.type==="form"?hR(c):Xo.r(s)}var vf=typeof document>"u"?null:document;function YM(s,c,p){var b=vf;if(b&&typeof c=="string"&&c){var A=mr(c);A='link[rel="'+s+'"][href="'+A+'"]',typeof p=="string"&&(A+='[crossorigin="'+p+'"]'),GM.has(A)||(GM.add(A),s={rel:s,crossOrigin:p,href:c},b.querySelector(A)===null&&(c=b.createElement("link"),br(c,"link",s),zn(c),b.head.appendChild(c)))}}function _K(s){Xo.D(s),YM("dns-prefetch",s,null)}function xK(s,c){Xo.C(s,c),YM("preconnect",s,c)}function SK(s,c,p){Xo.L(s,c,p);var b=vf;if(b&&s&&c){var A='link[rel="preload"][as="'+mr(c)+'"]';c==="image"&&p&&p.imageSrcSet?(A+='[imagesrcset="'+mr(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(A+='[imagesizes="'+mr(p.imageSizes)+'"]')):A+='[href="'+mr(s)+'"]';var N=A;switch(c){case"style":N=gf(s);break;case"script":N=yf(s)}Zi.has(N)||(s=h({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:s,as:c},p),Zi.set(N,s),b.querySelector(A)!==null||c==="style"&&b.querySelector(rp(N))||c==="script"&&b.querySelector(ip(N))||(c=b.createElement("link"),br(c,"link",s),zn(c),b.head.appendChild(c)))}}function OK(s,c){Xo.m(s,c);var p=vf;if(p&&s){var b=c&&typeof c.as=="string"?c.as:"script",A='link[rel="modulepreload"][as="'+mr(b)+'"][href="'+mr(s)+'"]',N=A;switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":N=yf(s)}if(!Zi.has(N)&&(s=h({rel:"modulepreload",href:s},c),Zi.set(N,s),p.querySelector(A)===null)){switch(b){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(ip(N)))return}b=p.createElement("link"),br(b,"link",s),zn(b),p.head.appendChild(b)}}}function CK(s,c,p){Xo.S(s,c,p);var b=vf;if(b&&s){var A=Co(b).hoistableStyles,N=gf(s);c=c||"default";var re=A.get(N);if(!re){var ue={loading:0,preload:null};if(re=b.querySelector(rp(N)))ue.loading=5;else{s=h({rel:"stylesheet",href:s,"data-precedence":c},p),(p=Zi.get(N))&&lx(s,p);var ge=re=b.createElement("link");zn(ge),br(ge,"link",s),ge._p=new Promise(function(je,Be){ge.onload=je,ge.onerror=Be}),ge.addEventListener("load",function(){ue.loading|=1}),ge.addEventListener("error",function(){ue.loading|=2}),ue.loading|=4,ey(re,c,b)}re={type:"stylesheet",instance:re,count:1,state:ue},A.set(N,re)}}}function EK(s,c){Xo.X(s,c);var p=vf;if(p&&s){var b=Co(p).hoistableScripts,A=yf(s),N=b.get(A);N||(N=p.querySelector(ip(A)),N||(s=h({src:s,async:!0},c),(c=Zi.get(A))&&ux(s,c),N=p.createElement("script"),zn(N),br(N,"link",s),p.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},b.set(A,N))}}function TK(s,c){Xo.M(s,c);var p=vf;if(p&&s){var b=Co(p).hoistableScripts,A=yf(s),N=b.get(A);N||(N=p.querySelector(ip(A)),N||(s=h({src:s,async:!0,type:"module"},c),(c=Zi.get(A))&&ux(s,c),N=p.createElement("script"),zn(N),br(N,"link",s),p.head.appendChild(N)),N={type:"script",instance:N,count:1,state:null},b.set(A,N))}}function KM(s,c,p,b){var A=(A=fe.current)?Jg(A):null;if(!A)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=gf(p.href),p=Co(A).hoistableStyles,b=p.get(c),b||(b={type:"style",instance:null,count:0,state:null},p.set(c,b)),b):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){s=gf(p.href);var N=Co(A).hoistableStyles,re=N.get(s);if(re||(A=A.ownerDocument||A,re={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},N.set(s,re),(N=A.querySelector(rp(s)))&&!N._p&&(re.instance=N,re.state.loading=5),Zi.has(s)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},Zi.set(s,p),N||AK(A,s,p,re.state))),c&&b===null)throw Error(r(528,""));return re}if(c&&b!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=yf(p),p=Co(A).hoistableScripts,b=p.get(c),b||(b={type:"script",instance:null,count:0,state:null},p.set(c,b)),b):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function gf(s){return'href="'+mr(s)+'"'}function rp(s){return'link[rel="stylesheet"]['+s+"]"}function ZM(s){return h({},s,{"data-precedence":s.precedence,precedence:null})}function AK(s,c,p,b){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?b.loading=1:(c=s.createElement("link"),b.preload=c,c.addEventListener("load",function(){return b.loading|=1}),c.addEventListener("error",function(){return b.loading|=2}),br(c,"link",p),zn(c),s.head.appendChild(c))}function yf(s){return'[src="'+mr(s)+'"]'}function ip(s){return"script[async]"+s}function XM(s,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var b=s.querySelector('style[data-href~="'+mr(p.href)+'"]');if(b)return c.instance=b,zn(b),b;var A=h({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return b=(s.ownerDocument||s).createElement("style"),zn(b),br(b,"style",A),ey(b,p.precedence,s),c.instance=b;case"stylesheet":A=gf(p.href);var N=s.querySelector(rp(A));if(N)return c.state.loading|=4,c.instance=N,zn(N),N;b=ZM(p),(A=Zi.get(A))&&lx(b,A),N=(s.ownerDocument||s).createElement("link"),zn(N);var re=N;return re._p=new Promise(function(ue,ge){re.onload=ue,re.onerror=ge}),br(N,"link",b),c.state.loading|=4,ey(N,p.precedence,s),c.instance=N;case"script":return N=yf(p.src),(A=s.querySelector(ip(N)))?(c.instance=A,zn(A),A):(b=p,(A=Zi.get(N))&&(b=h({},p),ux(b,A)),s=s.ownerDocument||s,A=s.createElement("script"),zn(A),br(A,"link",b),s.head.appendChild(A),c.instance=A);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(b=c.instance,c.state.loading|=4,ey(b,p.precedence,s));return c.instance}function ey(s,c,p){for(var b=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),A=b.length?b[b.length-1]:null,N=A,re=0;re<b.length;re++){var ue=b[re];if(ue.dataset.precedence===c)N=ue;else if(N!==A)break}N?N.parentNode.insertBefore(s,N.nextSibling):(c=p.nodeType===9?p.head:p,c.insertBefore(s,c.firstChild))}function lx(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.title==null&&(s.title=c.title)}function ux(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.integrity==null&&(s.integrity=c.integrity)}var ty=null;function QM(s,c,p){if(ty===null){var b=new Map,A=ty=new Map;A.set(p,b)}else A=ty,b=A.get(p),b||(b=new Map,A.set(p,b));if(b.has(s))return b;for(b.set(s,null),p=p.getElementsByTagName(s),A=0;A<p.length;A++){var N=p[A];if(!(N[js]||N[Mt]||s==="link"&&N.getAttribute("rel")==="stylesheet")&&N.namespaceURI!=="http://www.w3.org/2000/svg"){var re=N.getAttribute(c)||"";re=s+re;var ue=b.get(re);ue?ue.push(N):b.set(re,[N])}}return b}function JM(s,c,p){s=s.ownerDocument||s,s.head.insertBefore(p,c==="title"?s.querySelector("head > title"):null)}function jK(s,c,p){if(p===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function eN(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var ap=null;function PK(){}function RK(s,c,p){if(ap===null)throw Error(r(475));var b=ap;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var A=gf(p.href),N=s.querySelector(rp(A));if(N){s=N._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(b.count++,b=ny.bind(b),s.then(b,b)),c.state.loading|=4,c.instance=N,zn(N);return}N=s.ownerDocument||s,p=ZM(p),(A=Zi.get(A))&&lx(p,A),N=N.createElement("link"),zn(N);var re=N;re._p=new Promise(function(ue,ge){re.onload=ue,re.onerror=ge}),br(N,"link",p),c.instance=N}b.stylesheets===null&&(b.stylesheets=new Map),b.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(b.count++,c=ny.bind(b),s.addEventListener("load",c),s.addEventListener("error",c))}}function MK(){if(ap===null)throw Error(r(475));var s=ap;return s.stylesheets&&s.count===0&&cx(s,s.stylesheets),0<s.count?function(c){var p=setTimeout(function(){if(s.stylesheets&&cx(s,s.stylesheets),s.unsuspend){var b=s.unsuspend;s.unsuspend=null,b()}},6e4);return s.unsuspend=c,function(){s.unsuspend=null,clearTimeout(p)}}:null}function ny(){if(this.count--,this.count===0){if(this.stylesheets)cx(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var ry=null;function cx(s,c){s.stylesheets=null,s.unsuspend!==null&&(s.count++,ry=new Map,c.forEach(NK,s),ry=null,ny.call(s))}function NK(s,c){if(!(c.state.loading&4)){var p=ry.get(s);if(p)var b=p.get(null);else{p=new Map,ry.set(s,p);for(var A=s.querySelectorAll("link[data-precedence],style[data-precedence]"),N=0;N<A.length;N++){var re=A[N];(re.nodeName==="LINK"||re.getAttribute("media")!=="not all")&&(p.set(re.dataset.precedence,re),b=re)}b&&p.set(null,b)}A=c.instance,re=A.getAttribute("data-precedence"),N=p.get(re)||b,N===b&&p.set(null,A),p.set(re,A),this.count++,b=ny.bind(this),A.addEventListener("load",b),A.addEventListener("error",b),N?N.parentNode.insertBefore(A,N.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(A,s.firstChild)),c.state.loading|=4}}var op={$$typeof:T,Provider:null,Consumer:null,_currentValue:U,_currentValue2:U,_threadCount:0};function LK(s,c,p,b,A,N,re,ue){this.tag=1,this.containerInfo=s,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=Ts(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ts(0),this.hiddenUpdates=Ts(null),this.identifierPrefix=b,this.onUncaughtError=A,this.onCaughtError=N,this.onRecoverableError=re,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ue,this.incompleteTransitions=new Map}function tN(s,c,p,b,A,N,re,ue,ge,je,Be,Ve){return s=new LK(s,c,p,re,ue,ge,je,Ve),c=1,N===!0&&(c|=24),N=zr(3,null,null,c),s.current=N,N.stateNode=s,c=Hw(),c.refCount++,s.pooledCache=c,c.refCount++,N.memoizedState={element:b,isDehydrated:p,cache:c},Kw(N),s}function nN(s){return s?(s=Fo,s):Fo}function rN(s,c,p,b,A,N){A=nN(A),b.context===null?b.context=A:b.pendingContext=A,b=Js(c),b.payload={element:p},N=N===void 0?null:N,N!==null&&(b.callback=N),p=el(s,b,c),p!==null&&(wi(p,s,c),kh(p,s,c))}function iN(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<c?p:c}}function fx(s,c){iN(s,c),(s=s.alternate)&&iN(s,c)}function aN(s){if(s.tag===13){var c=Ys(s,67108864);c!==null&&wi(c,s,67108864),fx(s,67108864)}}var iy=!0;function DK(s,c,p,b){var A=W.T;W.T=null;var N=B.p;try{B.p=2,dx(s,c,p,b)}finally{B.p=N,W.T=A}}function kK(s,c,p,b){var A=W.T;W.T=null;var N=B.p;try{B.p=8,dx(s,c,p,b)}finally{B.p=N,W.T=A}}function dx(s,c,p,b){if(iy){var A=hx(b);if(A===null)J_(s,c,b,ay,p),sN(s,b);else if($K(A,s,c,p,b))b.stopPropagation();else if(sN(s,b),c&4&&-1<IK.indexOf(s)){for(;A!==null;){var N=Oo(A);if(N!==null)switch(N.tag){case 3:if(N=N.stateNode,N.current.memoizedState.isDehydrated){var re=It(N.pendingLanes);if(re!==0){var ue=N;for(ue.pendingLanes|=2,ue.entangledLanes|=2;re;){var ge=1<<31-Ge(re);ue.entanglements[1]|=ge,re&=~ge}eo(N),(Vt&6)===0&&(Fg=xe()+500,Jh(0))}}break;case 13:ue=Ys(N,2),ue!==null&&wi(ue,N,2),Vg(),fx(N,2)}if(N=hx(b),N===null&&J_(s,c,b,ay,p),N===A)break;A=N}A!==null&&b.stopPropagation()}else J_(s,c,b,null,p)}}function hx(s){return s=ks(s),px(s)}var ay=null;function px(s){if(ay=null,s=qa(s),s!==null){var c=a(s);if(c===null)s=null;else{var p=c.tag;if(p===13){if(s=o(c),s!==null)return s;s=null}else if(p===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null)}}return ay=s,null}function oN(s){switch(s){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(Ae()){case De:return 2;case ze:return 8;case $e:case Fe:return 32;case we:return 268435456;default:return 32}default:return 32}}var mx=!1,hl=null,pl=null,ml=null,sp=new Map,lp=new Map,vl=[],IK="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 sN(s,c){switch(s){case"focusin":case"focusout":hl=null;break;case"dragenter":case"dragleave":pl=null;break;case"mouseover":case"mouseout":ml=null;break;case"pointerover":case"pointerout":sp.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":lp.delete(c.pointerId)}}function up(s,c,p,b,A,N){return s===null||s.nativeEvent!==N?(s={blockedOn:c,domEventName:p,eventSystemFlags:b,nativeEvent:N,targetContainers:[A]},c!==null&&(c=Oo(c),c!==null&&aN(c)),s):(s.eventSystemFlags|=b,c=s.targetContainers,A!==null&&c.indexOf(A)===-1&&c.push(A),s)}function $K(s,c,p,b,A){switch(c){case"focusin":return hl=up(hl,s,c,p,b,A),!0;case"dragenter":return pl=up(pl,s,c,p,b,A),!0;case"mouseover":return ml=up(ml,s,c,p,b,A),!0;case"pointerover":var N=A.pointerId;return sp.set(N,up(sp.get(N)||null,s,c,p,b,A)),!0;case"gotpointercapture":return N=A.pointerId,lp.set(N,up(lp.get(N)||null,s,c,p,b,A)),!0}return!1}function lN(s){var c=qa(s.target);if(c!==null){var p=a(c);if(p!==null){if(c=p.tag,c===13){if(c=o(p),c!==null){s.blockedOn=c,Gn(s.priority,function(){if(p.tag===13){var b=bi();b=yn(b);var A=Ys(p,b);A!==null&&wi(A,p,b),fx(p,b)}});return}}else if(c===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function oy(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var p=hx(s.nativeEvent);if(p===null){p=s.nativeEvent;var b=new p.constructor(p.type,p);cu=b,p.target.dispatchEvent(b),cu=null}else return c=Oo(p),c!==null&&aN(c),s.blockedOn=p,!1;c.shift()}return!0}function uN(s,c,p){oy(s)&&p.delete(c)}function BK(){mx=!1,hl!==null&&oy(hl)&&(hl=null),pl!==null&&oy(pl)&&(pl=null),ml!==null&&oy(ml)&&(ml=null),sp.forEach(uN),lp.forEach(uN)}function sy(s,c){s.blockedOn===c&&(s.blockedOn=null,mx||(mx=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,BK)))}var ly=null;function cN(s){ly!==s&&(ly=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){ly===s&&(ly=null);for(var c=0;c<s.length;c+=3){var p=s[c],b=s[c+1],A=s[c+2];if(typeof b!="function"){if(px(b||p)===null)continue;break}var N=Oo(p);N!==null&&(s.splice(c,3),c-=3,p_(N,{pending:!0,data:A,method:p.method,action:b},b,A))}}))}function cp(s){function c(ge){return sy(ge,s)}hl!==null&&sy(hl,s),pl!==null&&sy(pl,s),ml!==null&&sy(ml,s),sp.forEach(c),lp.forEach(c);for(var p=0;p<vl.length;p++){var b=vl[p];b.blockedOn===s&&(b.blockedOn=null)}for(;0<vl.length&&(p=vl[0],p.blockedOn===null);)lN(p),p.blockedOn===null&&vl.shift();if(p=(s.ownerDocument||s).$$reactFormReplay,p!=null)for(b=0;b<p.length;b+=3){var A=p[b],N=p[b+1],re=A[rn]||null;if(typeof N=="function")re||cN(p);else if(re){var ue=null;if(N&&N.hasAttribute("formAction")){if(A=N,re=N[rn]||null)ue=re.formAction;else if(px(A)!==null)continue}else ue=re.action;typeof ue=="function"?p[b+1]=ue:(p.splice(b,3),b-=3),cN(p)}}}function vx(s){this._internalRoot=s}uy.prototype.render=vx.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(r(409));var p=c.current,b=bi();rN(p,b,s,c,null,null)},uy.prototype.unmount=vx.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;rN(s.current,2,null,s,null,null),Vg(),c[nr]=null}};function uy(s){this._internalRoot=s}uy.prototype.unstable_scheduleHydration=function(s){if(s){var c=tr();s={blockedOn:null,target:s,priority:c};for(var p=0;p<vl.length&&c!==0&&c<vl[p].priority;p++);vl.splice(p,0,s),p===0&&lN(s)}};var fN=t.version;if(fN!=="19.1.0")throw Error(r(527,fN,"19.1.0"));B.findDOMNode=function(s){var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=f(c),s=s!==null?u(s):null,s=s===null?null:s.stateNode,s};var UK={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var cy=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!cy.isDisabled&&cy.supportsFiber)try{Ne=cy.inject(UK),Pe=cy}catch{}}return mp.createRoot=function(s,c){if(!i(s))throw Error(r(299));var p=!1,b="",A=TR,N=AR,re=jR,ue=null;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(b=c.identifierPrefix),c.onUncaughtError!==void 0&&(A=c.onUncaughtError),c.onCaughtError!==void 0&&(N=c.onCaughtError),c.onRecoverableError!==void 0&&(re=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(ue=c.unstable_transitionCallbacks)),c=tN(s,1,!1,null,null,p,b,A,N,re,ue,null),s[nr]=c.current,Q_(s),new vx(c)},mp.hydrateRoot=function(s,c,p){if(!i(s))throw Error(r(299));var b=!1,A="",N=TR,re=AR,ue=jR,ge=null,je=null;return p!=null&&(p.unstable_strictMode===!0&&(b=!0),p.identifierPrefix!==void 0&&(A=p.identifierPrefix),p.onUncaughtError!==void 0&&(N=p.onUncaughtError),p.onCaughtError!==void 0&&(re=p.onCaughtError),p.onRecoverableError!==void 0&&(ue=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(ge=p.unstable_transitionCallbacks),p.formState!==void 0&&(je=p.formState)),c=tN(s,1,!0,c,p??null,b,A,N,re,ue,ge,je),c.context=nN(null),p=c.current,b=bi(),b=yn(b),A=Js(b),A.callback=null,el(p,A,b),p=b,c.current.lanes=p,za(c,p),eo(c),s[nr]=c.current,Q_(s),new uy(c)},mp.version="19.1.0",mp}var SN;function QK(){if(SN)return yx.exports;SN=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(),yx.exports=XK(),yx.exports}var JK=QK(),D=n1();const se=Nt(D),Q9=VK({__proto__:null,default:se},[D]);var Sx={exports:{}},Ox={};/**
* @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 ON;function eZ(){if(ON)return Ox;ON=1;var e=n1();function t(f,u){return f===u&&(f!==0||1/f===1/u)||f!==f&&u!==u}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,i=e.useRef,a=e.useEffect,o=e.useMemo,l=e.useDebugValue;return Ox.useSyncExternalStoreWithSelector=function(f,u,h,m,v){var _=i(null);if(_.current===null){var x={hasValue:!1,value:null};_.current=x}else x=_.current;_=o(function(){function S(P){if(!O){if(O=!0,C=P,P=m(P),v!==void 0&&x.hasValue){var R=x.value;if(v(R,P))return T=R}return T=P}if(R=T,n(C,P))return R;var $=m(P);return v!==void 0&&v(R,$)?(C=P,R):(C=P,T=$)}var O=!1,C,T,j=h===void 0?null:h;return[function(){return S(u())},j===null?void 0:function(){return S(j())}]},[u,h,m,v]);var w=r(f,_[0],_[1]);return a(function(){x.hasValue=!0,x.value=w},[w]),l(w),w},Ox}var CN;function tZ(){return CN||(CN=1,Sx.exports=eZ()),Sx.exports}tZ();var nZ=D.version.startsWith("19"),rZ=Symbol.for(nZ?"react.transitional.element":"react.element"),iZ=Symbol.for("react.portal"),aZ=Symbol.for("react.fragment"),oZ=Symbol.for("react.strict_mode"),sZ=Symbol.for("react.profiler"),lZ=Symbol.for("react.consumer"),uZ=Symbol.for("react.context"),J9=Symbol.for("react.forward_ref"),cZ=Symbol.for("react.suspense"),fZ=Symbol.for("react.suspense_list"),jj=Symbol.for("react.memo"),dZ=Symbol.for("react.lazy"),hZ=J9,pZ=jj;function mZ(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case rZ:switch(e=e.type,e){case aZ:case sZ:case oZ:case cZ:case fZ:return e;default:switch(e=e&&e.$$typeof,e){case uZ:case J9:case dZ:case jj:return e;case lZ:return e;default:return t}}case iZ:return t}}}function vZ(e){return mZ(e)===jj}function gZ(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let l=!1,f,u,h,m,v;function _(C,T){return f=C,u=T,h=e(f,u),m=t(r,u),v=n(h,m,u),l=!0,v}function x(){return h=e(f,u),t.dependsOnOwnProps&&(m=t(r,u)),v=n(h,m,u),v}function w(){return e.dependsOnOwnProps&&(h=e(f,u)),t.dependsOnOwnProps&&(m=t(r,u)),v=n(h,m,u),v}function S(){const C=e(f,u),T=!o(C,h);return h=C,T&&(v=n(h,m,u)),v}function O(C,T){const j=!a(T,u),P=!i(C,f,T,u);return f=C,u=T,j&&P?x():j?w():P?S():v}return function(T,j){return l?O(T,j):_(T,j)}}function yZ(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){const a=t(e,i),o=n(e,i),l=r(e,i);return gZ(a,o,l,e,i)}function bZ(e,t){const n={};for(const r in e){const i=e[r];typeof i=="function"&&(n[r]=(...a)=>t(i(...a)))}return n}function vE(e){return function(n){const r=e(n);function i(){return r}return i.dependsOnOwnProps=!1,i}}function EN(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function eB(e,t){return function(r,{displayName:i}){const a=function(l,f){return a.dependsOnOwnProps?a.mapToProps(l,f):a.mapToProps(l,void 0)};return a.dependsOnOwnProps=!0,a.mapToProps=function(l,f){a.mapToProps=e,a.dependsOnOwnProps=EN(e);let u=a(l,f);return typeof u=="function"&&(a.mapToProps=u,a.dependsOnOwnProps=EN(u),u=a(l,f)),u},a}}function Pj(e,t){return(n,r)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function wZ(e){return e&&typeof e=="object"?vE(t=>bZ(e,t)):e?typeof e=="function"?eB(e):Pj(e,"mapDispatchToProps"):vE(t=>({dispatch:t}))}function _Z(e){return e?typeof e=="function"?eB(e):Pj(e,"mapStateToProps"):vE(()=>({}))}function xZ(e,t,n){return{...n,...e,...t}}function SZ(e){return function(n,{displayName:r,areMergedPropsEqual:i}){let a=!1,o;return function(f,u,h){const m=e(f,u,h);return a?i(m,o)||(o=m):(a=!0,o=m),o}}}function OZ(e){return e?typeof e=="function"?SZ(e):Pj(e,"mergeProps"):()=>xZ}function CZ(e){e()}function EZ(){let e=null,t=null;return{clear(){e=null,t=null},notify(){CZ(()=>{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 TN={notify(){},get:()=>[]};function tB(e,t){let n,r=TN,i=0,a=!1;function o(w){h();const S=r.subscribe(w);let O=!1;return()=>{O||(O=!0,S(),m())}}function l(){r.notify()}function f(){x.onStateChange&&x.onStateChange()}function u(){return a}function h(){i++,n||(n=t?t.addNestedSub(f):e.subscribe(f),r=EZ())}function m(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=TN)}function v(){a||(a=!0,h())}function _(){a&&(a=!1,m())}const x={addNestedSub:o,notifyNestedSubs:l,handleChangeWrapper:f,isSubscribed:u,trySubscribe:v,tryUnsubscribe:_,getListeners:()=>r};return x}var TZ=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",AZ=TZ(),jZ=()=>typeof navigator<"u"&&navigator.product==="ReactNative",PZ=jZ(),RZ=()=>AZ||PZ?D.useLayoutEffect:D.useEffect,a0=RZ();function AN(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Cx(e,t){if(AN(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])||!AN(e[n[i]],t[n[i]]))return!1;return!0}var MZ={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},NZ={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},LZ={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nB={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},DZ={[hZ]:LZ,[pZ]:nB};function jN(e){return vZ(e)?nB:DZ[e.$$typeof]||MZ}var kZ=Object.defineProperty,IZ=Object.getOwnPropertyNames,PN=Object.getOwnPropertySymbols,$Z=Object.getOwnPropertyDescriptor,BZ=Object.getPrototypeOf,RN=Object.prototype;function gE(e,t){if(typeof t!="string"){if(RN){const a=BZ(t);a&&a!==RN&&gE(e,a)}let n=IZ(t);PN&&(n=n.concat(PN(t)));const r=jN(e),i=jN(t);for(let a=0;a<n.length;++a){const o=n[a];if(!NZ[o]&&!(i&&i[o])&&!(r&&r[o])){const l=$Z(t,o);try{kZ(e,o,l)}catch{}}}}return e}var Ex=Symbol.for("react-redux-context"),Tx=typeof globalThis<"u"?globalThis:{};function UZ(){if(!D.createContext)return{};const e=Tx[Ex]??(Tx[Ex]=new Map);let t=e.get(D.createContext);return t||(t=D.createContext(null),e.set(D.createContext,t)),t}var rB=UZ(),zZ=[null,null];function FZ(e,t,n){a0(()=>e(...t),n)}function qZ(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function VZ(e,t,n,r,i,a,o,l,f,u,h){if(!e)return()=>{};let m=!1,v=null;const _=()=>{if(m||!l.current)return;const w=t.getState();let S,O;try{S=r(w,i.current)}catch(C){O=C,v=C}O||(v=null),S===a.current?o.current||u():(a.current=S,f.current=S,o.current=!0,h())};return n.onStateChange=_,n.trySubscribe(),_(),()=>{if(m=!0,n.tryUnsubscribe(),n.onStateChange=null,v)throw v}}function HZ(e,t){return e===t}function WZ(e,t,n,{pure:r,areStatesEqual:i=HZ,areOwnPropsEqual:a=Cx,areStatePropsEqual:o=Cx,areMergedPropsEqual:l=Cx,forwardRef:f=!1,context:u=rB}={}){const h=u,m=_Z(e),v=wZ(t),_=OZ(n),x=!!e;return S=>{const O=S.displayName||S.name||"Component",C=`Connect(${O})`,T={shouldHandleStateChanges:x,displayName:C,wrappedComponentName:O,WrappedComponent:S,initMapStateToProps:m,initMapDispatchToProps:v,initMergeProps:_,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:l};function j($){const[q,K,H]=D.useMemo(()=>{const{reactReduxForwardedRef:Q,...le}=$;return[$.context,Q,le]},[$]),G=D.useMemo(()=>{let Q=h;return q!=null&&q.Consumer,Q},[q,h]),te=D.useContext(G),ie=!!$.store&&!!$.store.getState&&!!$.store.dispatch,X=!!te&&!!te.store,ee=ie?$.store:te.store,W=X?te.getServerState:ee.getState,B=D.useMemo(()=>yZ(ee.dispatch,T),[ee]),[U,F]=D.useMemo(()=>{if(!x)return zZ;const Q=tB(ee,ie?void 0:te.subscription),le=Q.notifyNestedSubs.bind(Q);return[Q,le]},[ee,ie,te]),M=D.useMemo(()=>ie?te:{...te,subscription:U},[ie,te,U]),I=D.useRef(void 0),J=D.useRef(H),Y=D.useRef(void 0),ae=D.useRef(!1),de=D.useRef(!1),fe=D.useRef(void 0);a0(()=>(de.current=!0,()=>{de.current=!1}),[]);const be=D.useMemo(()=>()=>Y.current&&H===J.current?Y.current:B(ee.getState(),H),[ee,H]),z=D.useMemo(()=>le=>U?VZ(x,ee,U,B,J,I,ae,de,Y,F,le):()=>{},[U]);FZ(qZ,[J,I,ae,H,Y,F]);let V;try{V=D.useSyncExternalStore(z,be,W?()=>B(W(),H):be)}catch(Q){throw fe.current&&(Q.message+=`
The error may be correlated with this previous error:
${fe.current.stack}
`),Q}a0(()=>{fe.current=void 0,Y.current=void 0,I.current=V});const ne=D.useMemo(()=>D.createElement(S,{...V,ref:K}),[K,S,V]);return D.useMemo(()=>x?D.createElement(G.Provider,{value:M},ne):ne,[G,ne,M])}const R=D.memo(j);if(R.WrappedComponent=S,R.displayName=j.displayName=C,f){const q=D.forwardRef(function(H,G){return D.createElement(R,{...H,reactReduxForwardedRef:G})});return q.displayName=C,q.WrappedComponent=S,gE(q,S)}return gE(R,S)}}var iB=WZ;function GZ(e){const{children:t,context:n,serverState:r,store:i}=e,a=D.useMemo(()=>{const f=tB(i);return{store:i,subscription:f,getServerState:r?()=>r:void 0}},[i,r]),o=D.useMemo(()=>i.getState(),[i]);a0(()=>{const{subscription:f}=a;return f.onStateChange=f.notifyNestedSubs,f.trySubscribe(),o!==i.getState()&&f.notifyNestedSubs(),()=>{f.tryUnsubscribe(),f.onStateChange=void 0}},[a,o]);const l=n||rB;return D.createElement(l.Provider,{value:a},t)}var aB=GZ,vp={},MN;function YZ(){if(MN)return vp;MN=1,Object.defineProperty(vp,"__esModule",{value:!0}),vp.parse=o,vp.serialize=u;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,i=Object.prototype.toString,a=(()=>{const v=function(){};return v.prototype=Object.create(null),v})();function o(v,_){const x=new a,w=v.length;if(w<2)return x;const S=(_==null?void 0:_.decode)||h;let O=0;do{const C=v.indexOf("=",O);if(C===-1)break;const T=v.indexOf(";",O),j=T===-1?w:T;if(C>j){O=v.lastIndexOf(";",C-1)+1;continue}const P=l(v,O,C),R=f(v,C,P),$=v.slice(P,R);if(x[$]===void 0){let q=l(v,C+1,j),K=f(v,j,q);const H=S(v.slice(q,K));x[$]=H}O=j+1}while(O<w);return x}function l(v,_,x){do{const w=v.charCodeAt(_);if(w!==32&&w!==9)return _}while(++_<x);return x}function f(v,_,x){for(;_>x;){const w=v.charCodeAt(--_);if(w!==32&&w!==9)return _+1}return x}function u(v,_,x){const w=(x==null?void 0:x.encode)||encodeURIComponent;if(!e.test(v))throw new TypeError(`argument name is invalid: ${v}`);const S=w(_);if(!t.test(S))throw new TypeError(`argument val is invalid: ${_}`);let O=v+"="+S;if(!x)return O;if(x.maxAge!==void 0){if(!Number.isInteger(x.maxAge))throw new TypeError(`option maxAge is invalid: ${x.maxAge}`);O+="; Max-Age="+x.maxAge}if(x.domain){if(!n.test(x.domain))throw new TypeError(`option domain is invalid: ${x.domain}`);O+="; Domain="+x.domain}if(x.path){if(!r.test(x.path))throw new TypeError(`option path is invalid: ${x.path}`);O+="; Path="+x.path}if(x.expires){if(!m(x.expires)||!Number.isFinite(x.expires.valueOf()))throw new TypeError(`option expires is invalid: ${x.expires}`);O+="; Expires="+x.expires.toUTCString()}if(x.httpOnly&&(O+="; HttpOnly"),x.secure&&(O+="; Secure"),x.partitioned&&(O+="; Partitioned"),x.priority)switch(typeof x.priority=="string"?x.priority.toLowerCase():void 0){case"low":O+="; Priority=Low";break;case"medium":O+="; Priority=Medium";break;case"high":O+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${x.priority}`)}if(x.sameSite)switch(typeof x.sameSite=="string"?x.sameSite.toLowerCase():x.sameSite){case!0:case"strict":O+="; SameSite=Strict";break;case"lax":O+="; SameSite=Lax";break;case"none":O+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${x.sameSite}`)}return O}function h(v){if(v.indexOf("%")===-1)return v;try{return decodeURIComponent(v)}catch{return v}}function m(v){return i.call(v)==="[object Date]"}return vp}YZ();var NN="popstate";function KZ(e={}){function t(r,i){let{pathname:a,search:o,hash:l}=r.location;return yE("",{pathname:a,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function n(r,i){return typeof i=="string"?i:cm(i)}return XZ(t,n,null,e)}function xn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Pa(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function ZZ(){return Math.random().toString(36).substring(2,10)}function LN(e,t){return{usr:e.state,key:e.key,idx:t}}function yE(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?qd(t):t,state:n,key:t&&t.key||r||ZZ()}}function cm({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 qd(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 XZ(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,l="POP",f=null,u=h();u==null&&(u=0,o.replaceState({...o.state,idx:u},""));function h(){return(o.state||{idx:null}).idx}function m(){l="POP";let S=h(),O=S==null?null:S-u;u=S,f&&f({action:l,location:w.location,delta:O})}function v(S,O){l="PUSH";let C=yE(w.location,S,O);u=h()+1;let T=LN(C,u),j=w.createHref(C);try{o.pushState(T,"",j)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;i.location.assign(j)}a&&f&&f({action:l,location:w.location,delta:1})}function _(S,O){l="REPLACE";let C=yE(w.location,S,O);u=h();let T=LN(C,u),j=w.createHref(C);o.replaceState(T,"",j),a&&f&&f({action:l,location:w.location,delta:0})}function x(S){return QZ(S)}let w={get action(){return l},get location(){return e(i,o)},listen(S){if(f)throw new Error("A history only accepts one active listener");return i.addEventListener(NN,m),f=S,()=>{i.removeEventListener(NN,m),f=null}},createHref(S){return t(i,S)},createURL:x,encodeLocation(S){let O=x(S);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:_,go(S){return o.go(S)}};return w}function QZ(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),xn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:cm(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function oB(e,t,n="/"){return JZ(e,t,n,!1)}function JZ(e,t,n,r){let i=typeof t=="string"?qd(t):t,a=ls(i.pathname||"/",n);if(a==null)return null;let o=sB(e);eX(o);let l=null;for(let f=0;l==null&&f<o.length;++f){let u=fX(a);l=uX(o[f],u,r)}return l}function sB(e,t=[],n=[],r=""){let i=(a,o,l)=>{let f={relativePath:l===void 0?a.path||"":l,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};f.relativePath.startsWith("/")&&(xn(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length));let u=rs([r,f.relativePath]),h=n.concat(f);a.children&&a.children.length>0&&(xn(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),sB(a.children,t,h,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:sX(u,a.index),routesMeta:h})};return e.forEach((a,o)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,o);else for(let f of lB(a.path))i(a,o,f)}),t}function lB(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=lB(r.join("/")),l=[];return l.push(...o.map(f=>f===""?a:[a,f].join("/"))),i&&l.push(...o),l.map(f=>e.startsWith("/")&&f===""?"/":f)}function eX(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lX(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var tX=/^:[\w-]+$/,nX=3,rX=2,iX=1,aX=10,oX=-2,DN=e=>e==="*";function sX(e,t){let n=e.split("/"),r=n.length;return n.some(DN)&&(r+=oX),t&&(r+=rX),n.filter(i=>!DN(i)).reduce((i,a)=>i+(tX.test(a)?nX:a===""?iX:aX),r)}function lX(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 uX(e,t,n=!1){let{routesMeta:r}=e,i={},a="/",o=[];for(let l=0;l<r.length;++l){let f=r[l],u=l===r.length-1,h=a==="/"?t:t.slice(a.length)||"/",m=o0({path:f.relativePath,caseSensitive:f.caseSensitive,end:u},h),v=f.route;if(!m&&u&&n&&!r[r.length-1].route.index&&(m=o0({path:f.relativePath,caseSensitive:f.caseSensitive,end:!1},h)),!m)return null;Object.assign(i,m.params),o.push({params:i,pathname:rs([a,m.pathname]),pathnameBase:mX(rs([a,m.pathnameBase])),route:v}),m.pathnameBase!=="/"&&(a=rs([a,m.pathnameBase]))}return o}function o0(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=cX(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,"$1"),l=i.slice(1);return{params:r.reduce((u,{paramName:h,isOptional:m},v)=>{if(h==="*"){let x=l[v]||"";o=a.slice(0,a.length-x.length).replace(/(.)\/+$/,"$1")}const _=l[v];return m&&!_?u[h]=void 0:u[h]=(_||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:o,pattern:e}}function cX(e,t=!1,n=!0){Pa(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,(o,l,f)=>(r.push({paramName:l,isOptional:f!=null}),f?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function fX(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Pa(!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 ls(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 dX(e,t="/"){let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?qd(e):e;return{pathname:n?n.startsWith("/")?n:hX(n,t):t,search:vX(r),hash:gX(i)}}function hX(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 Ax(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 pX(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function Rj(e){let t=pX(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Mj(e,t,n,r=!1){let i;typeof e=="string"?i=qd(e):(i={...e},xn(!i.pathname||!i.pathname.includes("?"),Ax("?","pathname","search",i)),xn(!i.pathname||!i.pathname.includes("#"),Ax("#","pathname","hash",i)),xn(!i.search||!i.search.includes("#"),Ax("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,l;if(o==null)l=n;else{let m=t.length-1;if(!r&&o.startsWith("..")){let v=o.split("/");for(;v[0]==="..";)v.shift(),m-=1;i.pathname=v.join("/")}l=m>=0?t[m]:"/"}let f=dX(i,l),u=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&n.endsWith("/");return!f.pathname.endsWith("/")&&(u||h)&&(f.pathname+="/"),f}var rs=e=>e.join("/").replace(/\/\/+/g,"/"),mX=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),vX=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gX=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function yX(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var uB=["POST","PUT","PATCH","DELETE"];new Set(uB);var bX=["GET",...uB];new Set(bX);var Vd=D.createContext(null);Vd.displayName="DataRouter";var r1=D.createContext(null);r1.displayName="DataRouterState";var cB=D.createContext({isTransitioning:!1});cB.displayName="ViewTransition";var wX=D.createContext(new Map);wX.displayName="Fetchers";var _X=D.createContext(null);_X.displayName="Await";var Na=D.createContext(null);Na.displayName="Navigation";var mv=D.createContext(null);mv.displayName="Location";var La=D.createContext({outlet:null,matches:[],isDataRoute:!1});La.displayName="Route";var Nj=D.createContext(null);Nj.displayName="RouteError";function xX(e,{relative:t}={}){xn(wc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=D.useContext(Na),{hash:i,pathname:a,search:o}=vv(e,{relative:t}),l=a;return n!=="/"&&(l=a==="/"?n:rs([n,a])),r.createHref({pathname:l,search:o,hash:i})}function wc(){return D.useContext(mv)!=null}function Lr(){return xn(wc(),"useLocation() may be used only in the context of a <Router> component."),D.useContext(mv).location}var fB="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function dB(e){D.useContext(Na).static||D.useLayoutEffect(e)}function wo(){let{isDataRoute:e}=D.useContext(La);return e?DX():SX()}function SX(){xn(wc(),"useNavigate() may be used only in the context of a <Router> component.");let e=D.useContext(Vd),{basename:t,navigator:n}=D.useContext(Na),{matches:r}=D.useContext(La),{pathname:i}=Lr(),a=JSON.stringify(Rj(r)),o=D.useRef(!1);return dB(()=>{o.current=!0}),D.useCallback((f,u={})=>{if(Pa(o.current,fB),!o.current)return;if(typeof f=="number"){n.go(f);return}let h=Mj(f,JSON.parse(a),i,u.relative==="path");e==null&&t!=="/"&&(h.pathname=h.pathname==="/"?t:rs([t,h.pathname])),(u.replace?n.replace:n.push)(h,u.state,u)},[t,n,a,i,e])}D.createContext(null);function Hd(){let{matches:e}=D.useContext(La),t=e[e.length-1];return t?t.params:{}}function vv(e,{relative:t}={}){let{matches:n}=D.useContext(La),{pathname:r}=Lr(),i=JSON.stringify(Rj(n));return D.useMemo(()=>Mj(e,JSON.parse(i),r,t==="path"),[e,i,r,t])}function OX(e,t){return hB(e,t)}function hB(e,t,n,r){var O;xn(wc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=D.useContext(Na),{matches:a}=D.useContext(La),o=a[a.length-1],l=o?o.params:{},f=o?o.pathname:"/",u=o?o.pathnameBase:"/",h=o&&o.route;{let C=h&&h.path||"";pB(f,!h||C.endsWith("*")||C.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${f}" (under <Route path="${C}">) 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="${C}"> to <Route path="${C==="/"?"*":`${C}/*`}">.`)}let m=Lr(),v;if(t){let C=typeof t=="string"?qd(t):t;xn(u==="/"||((O=C.pathname)==null?void 0:O.startsWith(u)),`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 "${u}" but pathname "${C.pathname}" was given in the \`location\` prop.`),v=C}else v=m;let _=v.pathname||"/",x=_;if(u!=="/"){let C=u.replace(/^\//,"").split("/");x="/"+_.replace(/^\//,"").split("/").slice(C.length).join("/")}let w=oB(e,{pathname:x});Pa(h||w!=null,`No routes matched location "${v.pathname}${v.search}${v.hash}" `),Pa(w==null||w[w.length-1].route.element!==void 0||w[w.length-1].route.Component!==void 0||w[w.length-1].route.lazy!==void 0,`Matched leaf route at location "${v.pathname}${v.search}${v.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 S=jX(w&&w.map(C=>Object.assign({},C,{params:Object.assign({},l,C.params),pathname:rs([u,i.encodeLocation?i.encodeLocation(C.pathname).pathname:C.pathname]),pathnameBase:C.pathnameBase==="/"?u:rs([u,i.encodeLocation?i.encodeLocation(C.pathnameBase).pathname:C.pathnameBase])})),a,n,r);return t&&S?D.createElement(mv.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...v},navigationType:"POP"}},S):S}function CX(){let e=LX(),t=yX(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},a={padding:"2px 4px",backgroundColor:r},o=null;return console.error("Error handled by React Router default ErrorBoundary:",e),o=D.createElement(D.Fragment,null,D.createElement("p",null,"💿 Hey developer 👋"),D.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",D.createElement("code",{style:a},"ErrorBoundary")," or"," ",D.createElement("code",{style:a},"errorElement")," prop on your route.")),D.createElement(D.Fragment,null,D.createElement("h2",null,"Unexpected Application Error!"),D.createElement("h3",{style:{fontStyle:"italic"}},t),n?D.createElement("pre",{style:i},n):null,o)}var EX=D.createElement(CX,null),TX=class extends D.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){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?D.createElement(La.Provider,{value:this.props.routeContext},D.createElement(Nj.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function AX({routeContext:e,match:t,children:n}){let r=D.useContext(Vd);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),D.createElement(La.Provider,{value:e},n)}function jX(e,t=[],n=null,r=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 i=e,a=n==null?void 0:n.errors;if(a!=null){let f=i.findIndex(u=>u.route.id&&(a==null?void 0:a[u.route.id])!==void 0);xn(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,f+1))}let o=!1,l=-1;if(n)for(let f=0;f<i.length;f++){let u=i[f];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(l=f),u.route.id){let{loaderData:h,errors:m}=n,v=u.route.loader&&!h.hasOwnProperty(u.route.id)&&(!m||m[u.route.id]===void 0);if(u.route.lazy||v){o=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}return i.reduceRight((f,u,h)=>{let m,v=!1,_=null,x=null;n&&(m=a&&u.route.id?a[u.route.id]:void 0,_=u.route.errorElement||EX,o&&(l<0&&h===0?(pB("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,x=null):l===h&&(v=!0,x=u.route.hydrateFallbackElement||null)));let w=t.concat(i.slice(0,h+1)),S=()=>{let O;return m?O=_:v?O=x:u.route.Component?O=D.createElement(u.route.Component,null):u.route.element?O=u.route.element:O=f,D.createElement(AX,{match:u,routeContext:{outlet:f,matches:w,isDataRoute:n!=null},children:O})};return n&&(u.route.ErrorBoundary||u.route.errorElement||h===0)?D.createElement(TX,{location:n.location,revalidation:n.revalidation,component:_,error:m,children:S(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):S()},null)}function Lj(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function PX(e){let t=D.useContext(Vd);return xn(t,Lj(e)),t}function RX(e){let t=D.useContext(r1);return xn(t,Lj(e)),t}function MX(e){let t=D.useContext(La);return xn(t,Lj(e)),t}function Dj(e){let t=MX(e),n=t.matches[t.matches.length-1];return xn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function NX(){return Dj("useRouteId")}function LX(){var r;let e=D.useContext(Nj),t=RX("useRouteError"),n=Dj("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function DX(){let{router:e}=PX("useNavigate"),t=Dj("useNavigate"),n=D.useRef(!1);return dB(()=>{n.current=!0}),D.useCallback(async(i,a={})=>{Pa(n.current,fB),n.current&&(typeof i=="number"?e.navigate(i):await e.navigate(i,{fromRouteId:t,...a}))},[e,t])}var kN={};function pB(e,t,n){!t&&!kN[e]&&(kN[e]=!0,Pa(!1,n))}D.memo(kX);function kX({routes:e,future:t,state:n}){return hB(e,void 0,n,t)}function kj({to:e,replace:t,state:n,relative:r}){xn(wc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:i}=D.useContext(Na);Pa(!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:a}=D.useContext(La),{pathname:o}=Lr(),l=wo(),f=Mj(e,Rj(a),o,r==="path"),u=JSON.stringify(f);return D.useEffect(()=>{l(JSON.parse(u),{replace:t,state:n,relative:r})},[l,u,r,t,n]),null}function xt(e){xn(!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 IX({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:i,static:a=!1}){xn(!wc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=D.useMemo(()=>({basename:o,navigator:i,static:a,future:{}}),[o,i,a]);typeof n=="string"&&(n=qd(n));let{pathname:f="/",search:u="",hash:h="",state:m=null,key:v="default"}=n,_=D.useMemo(()=>{let x=ls(f,o);return x==null?null:{location:{pathname:x,search:u,hash:h,state:m,key:v},navigationType:r}},[o,f,u,h,m,v,r]);return Pa(_!=null,`<Router basename="${o}"> is not able to match the URL "${f}${u}${h}" because it does not start with the basename, so the <Router> won't render anything.`),_==null?null:D.createElement(Na.Provider,{value:l},D.createElement(mv.Provider,{children:t,value:_}))}function i1({children:e,location:t}){return OX(bE(e),t)}function bE(e,t=[]){let n=[];return D.Children.forEach(e,(r,i)=>{if(!D.isValidElement(r))return;let a=[...t,i];if(r.type===D.Fragment){n.push.apply(n,bE(r.props.children,a));return}xn(r.type===xt,`[${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>`),xn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,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&&(o.children=bE(r.props.children,a)),n.push(o)}),n}var Gy="get",Yy="application/x-www-form-urlencoded";function a1(e){return e!=null&&typeof e.tagName=="string"}function $X(e){return a1(e)&&e.tagName.toLowerCase()==="button"}function BX(e){return a1(e)&&e.tagName.toLowerCase()==="form"}function UX(e){return a1(e)&&e.tagName.toLowerCase()==="input"}function zX(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function FX(e,t){return e.button===0&&(!t||t==="_self")&&!zX(e)}var dy=null;function qX(){if(dy===null)try{new FormData(document.createElement("form"),0),dy=!1}catch{dy=!0}return dy}var VX=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function jx(e){return e!=null&&!VX.has(e)?(Pa(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Yy}"`),null):e}function HX(e,t){let n,r,i,a,o;if(BX(e)){let l=e.getAttribute("action");r=l?ls(l,t):null,n=e.getAttribute("method")||Gy,i=jx(e.getAttribute("enctype"))||Yy,a=new FormData(e)}else if($X(e)||UX(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let f=e.getAttribute("formaction")||l.getAttribute("action");if(r=f?ls(f,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||Gy,i=jx(e.getAttribute("formenctype"))||jx(l.getAttribute("enctype"))||Yy,a=new FormData(l,e),!qX()){let{name:u,type:h,value:m}=e;if(h==="image"){let v=u?`${u}.`:"";a.append(`${v}x`,"0"),a.append(`${v}y`,"0")}else u&&a.append(u,m)}}else{if(a1(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Gy,r=null,i=Yy,o=e}return a&&i==="text/plain"&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}function Ij(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function WX(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 GX(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 YX(e,t,n){let r=await Promise.all(e.map(async i=>{let a=t.routes[i.route.id];if(a){let o=await WX(a,n);return o.links?o.links():[]}return[]}));return QX(r.flat(1).filter(GX).filter(i=>i.rel==="stylesheet"||i.rel==="preload").map(i=>i.rel==="stylesheet"?{...i,rel:"prefetch",as:"style"}:{...i,rel:"prefetch"}))}function IN(e,t,n,r,i,a){let o=(f,u)=>n[u]?f.route.id!==n[u].route.id:!0,l=(f,u)=>{var h;return n[u].pathname!==f.pathname||((h=n[u].route.path)==null?void 0:h.endsWith("*"))&&n[u].params["*"]!==f.params["*"]};return a==="assets"?t.filter((f,u)=>o(f,u)||l(f,u)):a==="data"?t.filter((f,u)=>{var m;let h=r.routes[f.route.id];if(!h||!h.hasLoader)return!1;if(o(f,u)||l(f,u))return!0;if(f.route.shouldRevalidate){let v=f.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:f.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function KX(e,t,{includeHydrateFallback:n}={}){return ZX(e.map(r=>{let i=t.routes[r.route.id];if(!i)return[];let a=[i.module];return i.clientActionModule&&(a=a.concat(i.clientActionModule)),i.clientLoaderModule&&(a=a.concat(i.clientLoaderModule)),n&&i.hydrateFallbackModule&&(a=a.concat(i.hydrateFallbackModule)),i.imports&&(a=a.concat(i.imports)),a}).flat(1))}function ZX(e){return[...new Set(e)]}function XX(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function QX(e,t){let n=new Set;return new Set(t),e.reduce((r,i)=>{let a=JSON.stringify(XX(i));return n.has(a)||(n.add(a),r.push({key:a,link:i})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var JX=new Set([100,101,204,205]);function eQ(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&ls(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function mB(){let e=D.useContext(Vd);return Ij(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function tQ(){let e=D.useContext(r1);return Ij(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var $j=D.createContext(void 0);$j.displayName="FrameworkContext";function vB(){let e=D.useContext($j);return Ij(e,"You must render this element inside a <HydratedRouter> element"),e}function nQ(e,t){let n=D.useContext($j),[r,i]=D.useState(!1),[a,o]=D.useState(!1),{onFocus:l,onBlur:f,onMouseEnter:u,onMouseLeave:h,onTouchStart:m}=t,v=D.useRef(null);D.useEffect(()=>{if(e==="render"&&o(!0),e==="viewport"){let w=O=>{O.forEach(C=>{o(C.isIntersecting)})},S=new IntersectionObserver(w,{threshold:.5});return v.current&&S.observe(v.current),()=>{S.disconnect()}}},[e]),D.useEffect(()=>{if(r){let w=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(w)}}},[r]);let _=()=>{i(!0)},x=()=>{i(!1),o(!1)};return n?e!=="intent"?[a,v,{}]:[a,v,{onFocus:gp(l,_),onBlur:gp(f,x),onMouseEnter:gp(u,_),onMouseLeave:gp(h,x),onTouchStart:gp(m,_)}]:[!1,v,{}]}function gp(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function rQ({page:e,...t}){let{router:n}=mB(),r=D.useMemo(()=>oB(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?D.createElement(aQ,{page:e,matches:r,...t}):null}function iQ(e){let{manifest:t,routeModules:n}=vB(),[r,i]=D.useState([]);return D.useEffect(()=>{let a=!1;return YX(e,t,n).then(o=>{a||i(o)}),()=>{a=!0}},[e,t,n]),r}function aQ({page:e,matches:t,...n}){let r=Lr(),{manifest:i,routeModules:a}=vB(),{basename:o}=mB(),{loaderData:l,matches:f}=tQ(),u=D.useMemo(()=>IN(e,t,f,i,r,"data"),[e,t,f,i,r]),h=D.useMemo(()=>IN(e,t,f,i,r,"assets"),[e,t,f,i,r]),m=D.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let x=new Set,w=!1;if(t.forEach(O=>{var T;let C=i.routes[O.route.id];!C||!C.hasLoader||(!u.some(j=>j.route.id===O.route.id)&&O.route.id in l&&((T=a[O.route.id])!=null&&T.shouldRevalidate)||C.hasClientLoader?w=!0:x.add(O.route.id))}),x.size===0)return[];let S=eQ(e,o);return w&&x.size>0&&S.searchParams.set("_routes",t.filter(O=>x.has(O.route.id)).map(O=>O.route.id).join(",")),[S.pathname+S.search]},[o,l,r,i,u,t,e,a]),v=D.useMemo(()=>KX(h,i),[h,i]),_=iQ(h);return D.createElement(D.Fragment,null,m.map(x=>D.createElement("link",{key:x,rel:"prefetch",as:"fetch",href:x,...n})),v.map(x=>D.createElement("link",{key:x,rel:"modulepreload",href:x,...n})),_.map(({key:x,link:w})=>D.createElement("link",{key:x,...w})))}function oQ(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var gB=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{gB&&(window.__reactRouterVersion="7.6.2")}catch{}function yB({basename:e,children:t,window:n}){let r=D.useRef();r.current==null&&(r.current=KZ({window:n,v5Compat:!0}));let i=r.current,[a,o]=D.useState({action:i.action,location:i.location}),l=D.useCallback(f=>{D.startTransition(()=>o(f))},[o]);return D.useLayoutEffect(()=>i.listen(l),[i,l]),D.createElement(IX,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i})}var bB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,gn=D.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:i,reloadDocument:a,replace:o,state:l,target:f,to:u,preventScrollReset:h,viewTransition:m,...v},_){let{basename:x}=D.useContext(Na),w=typeof u=="string"&&bB.test(u),S,O=!1;if(typeof u=="string"&&w&&(S=u,gB))try{let K=new URL(window.location.href),H=u.startsWith("//")?new URL(K.protocol+u):new URL(u),G=ls(H.pathname,x);H.origin===K.origin&&G!=null?u=G+H.search+H.hash:O=!0}catch{Pa(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=xX(u,{relative:i}),[T,j,P]=nQ(r,v),R=uQ(u,{replace:o,state:l,target:f,preventScrollReset:h,relative:i,viewTransition:m});function $(K){t&&t(K),K.defaultPrevented||R(K)}let q=D.createElement("a",{...v,...P,href:S||C,onClick:O||a?t:$,ref:oQ(_,j),target:f,"data-discover":!w&&n==="render"?"true":void 0});return T&&!w?D.createElement(D.Fragment,null,q,D.createElement(rQ,{page:C})):q});gn.displayName="Link";var o1=D.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:i=!1,style:a,to:o,viewTransition:l,children:f,...u},h){let m=vv(o,{relative:u.relative}),v=Lr(),_=D.useContext(r1),{navigator:x,basename:w}=D.useContext(Na),S=_!=null&&pQ(m)&&l===!0,O=x.encodeLocation?x.encodeLocation(m).pathname:m.pathname,C=v.pathname,T=_&&_.navigation&&_.navigation.location?_.navigation.location.pathname:null;n||(C=C.toLowerCase(),T=T?T.toLowerCase():null,O=O.toLowerCase()),T&&w&&(T=ls(T,w)||T);const j=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let P=C===O||!i&&C.startsWith(O)&&C.charAt(j)==="/",R=T!=null&&(T===O||!i&&T.startsWith(O)&&T.charAt(O.length)==="/"),$={isActive:P,isPending:R,isTransitioning:S},q=P?t:void 0,K;typeof r=="function"?K=r($):K=[r,P?"active":null,R?"pending":null,S?"transitioning":null].filter(Boolean).join(" ");let H=typeof a=="function"?a($):a;return D.createElement(gn,{...u,"aria-current":q,className:K,ref:h,style:H,to:o,viewTransition:l},typeof f=="function"?f($):f)});o1.displayName="NavLink";var sQ=D.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=Gy,action:l,onSubmit:f,relative:u,preventScrollReset:h,viewTransition:m,...v},_)=>{let x=dQ(),w=hQ(l,{relative:u}),S=o.toLowerCase()==="get"?"get":"post",O=typeof l=="string"&&bB.test(l),C=T=>{if(f&&f(T),T.defaultPrevented)return;T.preventDefault();let j=T.nativeEvent.submitter,P=(j==null?void 0:j.getAttribute("formmethod"))||o;x(j||T.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:i,state:a,relative:u,preventScrollReset:h,viewTransition:m})};return D.createElement("form",{ref:_,method:S,action:w,onSubmit:r?f:C,...v,"data-discover":!O&&e==="render"?"true":void 0})});sQ.displayName="Form";function lQ(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function wB(e){let t=D.useContext(Vd);return xn(t,lQ(e)),t}function uQ(e,{target:t,replace:n,state:r,preventScrollReset:i,relative:a,viewTransition:o}={}){let l=wo(),f=Lr(),u=vv(e,{relative:a});return D.useCallback(h=>{if(FX(h,t)){h.preventDefault();let m=n!==void 0?n:cm(f)===cm(u);l(e,{replace:m,state:r,preventScrollReset:i,relative:a,viewTransition:o})}},[f,l,u,n,r,t,e,i,a,o])}var cQ=0,fQ=()=>`__${String(++cQ)}__`;function dQ(){let{router:e}=wB("useSubmit"),{basename:t}=D.useContext(Na),n=NX();return D.useCallback(async(r,i={})=>{let{action:a,method:o,encType:l,formData:f,body:u}=HX(r,t);if(i.navigate===!1){let h=i.fetcherKey||fQ();await e.fetch(h,n,i.action||a,{preventScrollReset:i.preventScrollReset,formData:f,body:u,formMethod:i.method||o,formEncType:i.encType||l,flushSync:i.flushSync})}else await e.navigate(i.action||a,{preventScrollReset:i.preventScrollReset,formData:f,body:u,formMethod:i.method||o,formEncType:i.encType||l,replace:i.replace,state:i.state,fromRouteId:n,flushSync:i.flushSync,viewTransition:i.viewTransition})},[e,t,n])}function hQ(e,{relative:t}={}){let{basename:n}=D.useContext(Na),r=D.useContext(La);xn(r,"useFormAction must be used inside a RouteContext");let[i]=r.matches.slice(-1),a={...vv(e||".",{relative:t})},o=Lr();if(e==null){a.search=o.search;let l=new URLSearchParams(a.search),f=l.getAll("index");if(f.some(h=>h==="")){l.delete("index"),f.filter(m=>m).forEach(m=>l.append("index",m));let h=l.toString();a.search=h?`?${h}`:""}}return(!e||e===".")&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(a.pathname=a.pathname==="/"?n:rs([n,a.pathname])),cm(a)}function pQ(e,t={}){let n=D.useContext(cB);xn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=wB("useViewTransitionState"),i=vv(e,{relative:t.relative});if(!n.isTransitioning)return!1;let a=ls(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=ls(n.nextLocation.pathname,r)||n.nextLocation.pathname;return o0(i.pathname,o)!=null||o0(i.pathname,a)!=null}[...JX];const mQ="/shlink-web-client/feature/tooltips",s0={homepage:mQ};var Ra,fo=".",_B="function",xB="string",SB="__global__",Bj="Provider",vQ=0,Uj=Array.prototype.slice,gQ=function(t,n){var r=t[n];if(r===void 0&&Ra.config.strict)throw new Error("Bottle was unable to resolve a service. `"+n+"` is undefined.");return r},s1=function(t){var n;return this.nested[t]||(n=Ra.pop(),this.nested[t]=n,this.factory(t,function(){return n.container})),this.nested[t]},OB=function(t){return t.split(fo).reduce(gQ,this)},yQ=function(t,n,r,i){var a={configurable:!0,enumerable:!0};return t.length?a.get=function(){var l=0,f=function(h){if(h)throw h;t[l]&&t[l++](r,f)};return f(),r}:(a.value=r,a.writable=!0),Object.defineProperty(i,n,a),i[n]},bQ=function(t,n){var r,i;return typeof t===_B&&(n=t,t=SB),r=t.split(fo),i=r.shift(),r.length?s1.call(this,i).middleware(r.join(fo),n):(this.middlewares[i]||(this.middlewares[i]=[]),this.middlewares[i].push(n)),this},wQ=function(t,n){return n(t)},$N=function(t,n){return(t[n]||[]).concat(t.__global__||[])},_Q=function(t,n){var r,i,a,o,l;return this.id,a=this.container,o=this.decorators,l=this.middlewares,r=t+Bj,i=Object.create(null),i[r]={configurable:!0,enumerable:!0,get:function(){var u=new n;return delete a[r],a[r]=u,u}},i[t]={configurable:!0,enumerable:!0,get:function(){var u=a[r],h;return u&&(h=$N(o,t).reduce(wQ,u.$get(a)),delete a[r],delete a[t]),h===void 0?h:yQ($N(l,t),t,h,a)}},Object.defineProperties(a,i),this},CB=function(t,n){var r,i;return r=t.split(fo),this.providerMap[t]&&r.length===1&&!this.container[t+Bj]?console.error(t+" provider already instantiated."):(this.originalProviders[t]=n,this.providerMap[t]=!0,i=r.shift(),r.length?(s1.call(this,i).provider(r.join(fo),n),this):_Q.call(this,i,n))},zj=function(t,n){return CB.call(this,t,function(){this.$get=n})},EB=function(t,n,r){var i=arguments.length>3?Uj.call(arguments,3):[],a=this;return zj.call(this,t,function(){var l=n,f=i.map(OB,a.container);return r?new(n.bind.apply(n,[null].concat(f))):l.apply(null,f)})},xQ=function(t,n){return EB.apply(this,[t,n,!0].concat(Uj.call(arguments,2)))},SQ=function(t,n){return EB.apply(this,[t,n,!1].concat(Uj.call(arguments,2)))},TB=function(t,n){Object.defineProperty(this,t,{configurable:!0,enumerable:!0,value:n,writable:!0})},AB=function(t,n){var r=t[n];return r||(r={},TB.call(t,n,r)),r},OQ=function(t,n){var r;return r=t.split(fo),t=r.pop(),TB.call(r.reduce(AB,this.container),t,n),this},CQ=function(t,n){Object.defineProperty(this,t,{configurable:!1,enumerable:!0,value:n,writable:!1})},EQ=function(t,n){var r=t.split(fo);return t=r.pop(),CQ.call(r.reduce(AB,this.container),t,n),this},jB=function(t,n){var r,i;return typeof t===_B&&(n=t,t=SB),r=t.split(fo),i=r.shift(),r.length?s1.call(this,i).decorator(r.join(fo),n):(this.decorators[i]||(this.decorators[i]=[]),this.decorators[i].push(n)),this},TQ=function(t){return this.deferred.push(t),this},AQ=function(t){return(t||[]).map(OB,this.container)},jQ=function(t,n){return zj.call(this,t,function(i){return{instance:n.bind(n,i)}})},PQ=function(t){return!/^\$(?:decorator|register|list)$|Provider$/.test(t)},Fj=function(t){return Object.keys(t||this.container||{}).filter(PQ)},l0={},RQ=function(t){var n;return typeof t===xB?(n=l0[t],n||(l0[t]=n=new Ra,n.constant("BOTTLE_NAME",t)),n):new Ra},MQ=function(t){typeof t===xB?delete l0[t]:l0={}},PB=function(t){var n=t.$value===void 0?t:t.$value;return this[t.$type||"service"].apply(this,[t.$name,n].concat(t.$inject||[]))},BN=function(t){delete this.providerMap[t],delete this.container[t],delete this.container[t+Bj]},NQ=function(t){var n=this.originalProviders,r=Array.isArray(t);Object.keys(this.originalProviders).forEach(function(a){if(!(r&&t.indexOf(a)===-1)){var o=a.split(fo);o.length>1&&o.forEach(BN,s1.call(this,o[0])),BN.call(this,a),this.provider(a,n[a])}},this)},LQ=function(t){return this.deferred.forEach(function(r){r(t)}),this};Ra=function e(t){if(!(this instanceof e))return e.pop(t);this.id=vQ++,this.decorators={},this.middlewares={},this.nested={},this.providerMap={},this.originalProviders={},this.deferred=[],this.container={$decorator:jB.bind(this),$register:PB.bind(this),$list:Fj.bind(this)}};Ra.prototype={constant:EQ,decorator:jB,defer:TQ,digest:AQ,factory:zj,instanceFactory:jQ,list:Fj,middleware:bQ,provider:CB,resetProviders:NQ,register:PB,resolve:LQ,service:xQ,serviceFactory:SQ,value:OQ};Ra.pop=RQ;Ra.clear=MQ;Ra.list=Fj;Ra.config={strict:!1};const RB=Ra;var MB=e=>{throw TypeError(e)},qj=(e,t,n)=>t.has(e)||MB("Cannot "+n),Lu=(e,t,n)=>(qj(e,t,"read from private field"),n?n.call(e):t.get(e)),yp=(e,t,n)=>t.has(e)?MB("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),hy=(e,t,n,r)=>(qj(e,t,"write to private field"),t.set(e,n),n),un=(e,t,n)=>(qj(e,t,"access private method"),n);const DQ=(e,t)=>`${e}/rest/v${t}`,kQ=e=>e.dir?`${e.field}-${e.dir}`:void 0,IQ=({orderBy:e={},excludeMaxVisitsReached:t,excludePastValidUntil:n,...r})=>({...r,excludeMaxVisitsReached:t===!0?"true":void 0,excludePastValidUntil:n===!0?"true":void 0,orderBy:kQ(e)}),$Q=(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("/"),a=i.length?`/${i.join("/")}`:"";return`${n}://${t}${a}`},BQ=(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()};var u0,Hp,Nf,c0,Zt,Pf,wr,Ky,Px;class UQ{constructor(t,n,r={}){yp(this,Zt),yp(this,u0),yp(this,Hp),yp(this,Nf),yp(this,c0),hy(this,Hp,t),hy(this,Nf,n),hy(this,c0,r),hy(this,u0,3)}async listShortUrls({signal:t,...n}={}){return un(this,Zt,wr).call(this,{url:"/short-urls",query:IQ(n),signal:t}).then(({shortUrls:r})=>r)}async createShortUrl({signal:t,...n}){const r=Object.entries(n).reduce((i,[a,o])=>(o&&(i[a]=o),i),{});return un(this,Zt,wr).call(this,{url:"/short-urls",method:"POST",body:r,signal:t})}async getShortUrl({shortCode:t,domain:n},{signal:r}={}){return un(this,Zt,wr).call(this,{url:`/short-urls/${t}`,query:{domain:n},signal:r})}async deleteShortUrl({shortCode:t,domain:n},{signal:r}={}){return un(this,Zt,Ky).call(this,{url:`/short-urls/${t}`,method:"DELETE",query:{domain:n},signal:r})}async updateShortUrl({shortCode:t,domain:n},{signal:r,...i}){return un(this,Zt,wr).call(this,{url:`/short-urls/${t}`,method:"PATCH",query:{domain:n},body:i,signal:r})}async getShortUrlRedirectRules({shortCode:t,domain:n},{signal:r}={}){return un(this,Zt,wr).call(this,{url:`/short-urls/${t}/redirect-rules`,method:"GET",query:{domain:n},signal:r})}async setShortUrlRedirectRules({shortCode:t,domain:n},{signal:r,...i}){return un(this,Zt,wr).call(this,{url:`/short-urls/${t}/redirect-rules`,method:"POST",query:{domain:n},body:i,signal:r})}async getVisitsOverview({signal:t}={}){return un(this,Zt,wr).call(this,{url:"/visits",signal:t}).then(({visits:n})=>n)}async getShortUrlVisits({shortCode:t,domain:n},{signal:r,...i}={}){return un(this,Zt,Pf).call(this,{url:`/short-urls/${t}/visits`,query:{...i,domain:n},signal:r})}async getTagVisits(t,{signal:n,...r}={}){return un(this,Zt,Pf).call(this,{url:`/tags/${t}/visits`,query:r,signal:n})}async getDomainVisits(t,{signal:n,...r}={}){return un(this,Zt,Pf).call(this,{url:`/domains/${t}/visits`,query:r,signal:n})}async getOrphanVisits({signal:t,...n}={}){return un(this,Zt,Pf).call(this,{url:"/visits/orphan",query:n,signal:t})}async getNonOrphanVisits({signal:t,...n}={}){return un(this,Zt,Pf).call(this,{url:"/visits/non-orphan",query:n,signal:t})}async deleteShortUrlVisits({shortCode:t,domain:n},{signal:r}={}){const i=n?{domain:n}:void 0;return un(this,Zt,wr).call(this,{method:"DELETE",url:`/short-urls/${t}/visits`,query:i,signal:r})}async deleteOrphanVisits({signal:t}={}){return un(this,Zt,wr).call(this,{method:"DELETE",url:"/visits/orphan",signal:t})}async listTags({signal:t}={}){return un(this,Zt,wr).call(this,{url:"/tags",signal:t}).then(({tags:n})=>n)}async tagsStats({signal:t}={}){return un(this,Zt,wr).call(this,{url:"/tags/stats",signal:t}).then(({tags:n})=>n)}async deleteTags(t,{signal:n}={}){return un(this,Zt,Ky).call(this,{url:"/tags",method:"DELETE",query:{tags:t},signal:n}).then(()=>({tags:t}))}async editTag({oldName:t,newName:n},{signal:r}={}){return un(this,Zt,Ky).call(this,{url:"/tags",method:"PUT",body:{oldName:t,newName:n},signal:r}).then(()=>({oldName:t,newName:n}))}async listDomains({signal:t}={}){return un(this,Zt,wr).call(this,{url:"/domains",signal:t}).then(({domains:n})=>n)}async editDomainRedirects(t,{signal:n}={}){return un(this,Zt,wr).call(this,{url:"/domains/redirects",method:"PATCH",body:t,signal:n})}async health({domain:t,signal:n}={}){return un(this,Zt,wr).call(this,{url:"/health",domain:t,signal:n})}async mercureInfo({signal:t}={}){return un(this,Zt,wr).call(this,{url:"/mercure-info",signal:t})}}u0=new WeakMap,Hp=new WeakMap,Nf=new WeakMap,c0=new WeakMap,Zt=new WeakSet,Pf=async function(e){return un(this,Zt,wr).call(this,e).then(({visits:t})=>t)},wr=async function(e){return Lu(this,Hp).jsonRequest(...un(this,Zt,Px).call(this,e))},Ky=async function(e){return Lu(this,Hp).emptyRequest(...un(this,Zt,Px).call(this,e))},Px=function({url:e,method:t="GET",query:n,body:r,domain:i,signal:a}){const o=BQ(n??{}),l=o?`?${o}`:"",f=i?$Q(Lu(this,Nf).baseUrl,i):Lu(this,Nf).baseUrl;return[`${DQ(f,Lu(this,u0))}${e}${l}`,{method:t,body:r&&JSON.stringify(r),headers:{"X-Api-Key":Lu(this,Nf).apiKey},credentials:Lu(this,c0).requestCredentials,signal:a}]};const NB=e=>!!(e!=null&&e.url)&&!!(e!=null&&e.apiKey),Wp=e=>!!(e!=null&&e.id),Vj=e=>!!(e!=null&&e.version),zQ=e=>!!(e!=null&&e.serverNotFound),FQ=e=>Wp(e)?e.id:"",qQ=({name:e,url:t,apiKey:n,forwardCredentials:r})=>({name:e,url:t,apiKey:n,forwardCredentials:r?"true":"false"}),VQ=e=>typeof e.url=="string"&&typeof e.apiKey=="string"&&typeof e.name=="string",HQ=e=>{const{forwardCredentials:t,...n}=e;if(!VQ(n))throw new Error('Server is missing required "url", "apiKey" and/or "name" properties');return{...n,forwardCredentials:t==="true"}},UN=new Map,WQ=e=>typeof e=="function",GQ=e=>{const{selectedServer:t}=e();if(!NB(t))throw new Error("There's no selected server or it is not found");return t},YQ=e=>t=>{const{url:n,apiKey:r,forwardCredentials:i}=WQ(t)?GQ(t):t,a=`${r}_${n}_${i?"forward":"no-forward"}`,o=UN.get(a);if(o)return o;const l=new UQ(e,{apiKey:r,baseUrl:n},{requestCredentials:i?"include":void 0});return UN.set(a,l),l},KQ=e=>{e.serviceFactory("buildShlinkApiClient",YQ,"HttpClient")};/*!
* Font Awesome Free 6.7.2 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 2024 Fonticons, Inc.
*/const ZQ={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.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 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},XQ={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 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.2s-12.5 14.8-22.2 14.8l-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 39L439 7zM72 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-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},QQ={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 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 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 400l0 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"]},JQ=QQ,eJ={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},LB=eJ,tJ={prefix:"fas",iconName:"file-csv",icon:[512,512,[],"f6dd","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM200 352l16 0c22.1 0 40 17.9 40 40l0 8c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-8c0-4.4-3.6-8-8-8l-16 0c-4.4 0-8 3.6-8 8l0 80c0 4.4 3.6 8 8 8l16 0c4.4 0 8-3.6 8-8l0-8c0-8.8 7.2-16 16-16s16 7.2 16 16l0 8c0 22.1-17.9 40-40 40l-16 0c-22.1 0-40-17.9-40-40l0-80c0-22.1 17.9-40 40-40zm133.1 0l34.9 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-34.9 0c-7.2 0-13.1 5.9-13.1 13.1c0 5.2 3 9.9 7.8 12l37.4 16.6c16.3 7.2 26.8 23.4 26.8 41.2c0 24.9-20.2 45.1-45.1 45.1L304 512c-8.8 0-16-7.2-16-16s7.2-16 16-16l42.9 0c7.2 0 13.1-5.9 13.1-13.1c0-5.2-3-9.9-7.8-12l-37.4-16.6c-16.3-7.2-26.8-23.4-26.8-41.2c0-24.9 20.2-45.1 45.1-45.1zm98.9 0c8.8 0 16 7.2 16 16l0 31.6c0 23 5.5 45.6 16 66c10.5-20.3 16-42.9 16-66l0-31.6c0-8.8 7.2-16 16-16s16 7.2 16 16l0 31.6c0 34.7-10.3 68.7-29.6 97.6l-5.1 7.7c-3 4.5-8 7.1-13.3 7.1s-10.3-2.7-13.3-7.1l-5.1-7.7c-19.3-28.9-29.6-62.9-29.6-97.6l0-31.6c0-8.8 7.2-16 16-16z"]},nJ={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},DB=nJ,gv={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},rJ={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"]},Hj={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"]},iJ={prefix:"fas",iconName:"circle-dot",icon:[512,512,[128280,"dot-circle"],"f192","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-352a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]},aJ=iJ,oJ={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 0L362.3 51.7l97.9 97.9 30.1-30.1c21.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.5L437.7 172.3 339.7 74.3 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"]},Wj=oJ,kB={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},sJ={prefix:"fas",iconName:"plug",icon:[384,512,[128268],"f1e6","M96 0C78.3 0 64 14.3 64 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM288 0c-17.7 0-32 14.3-32 32l0 96 64 0 0-96c0-17.7-14.3-32-32-32zM32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l0 32c0 77.4 55 142 128 156.8l0 67.2c0 17.7 14.3 32 32 32s32-14.3 32-32l0-67.2C297 398 352 333.4 352 256l0-32c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160z"]},lJ={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},uJ={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},zN={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 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 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 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"]},cJ={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},fJ=cJ,dJ={prefix:"fas",iconName:"map-location-dot",icon:[576,512,["map-marked-alt"],"f5a0","M408 120c0 54.6-73.1 151.9-105.2 192c-7.7 9.6-22 9.6-29.6 0C241.1 271.9 168 174.6 168 120C168 53.7 221.7 0 288 0s120 53.7 120 120zm8 80.4c3.5-6.9 6.7-13.8 9.6-20.6c.5-1.2 1-2.5 1.5-3.7l116-46.4C558.9 123.4 576 135 576 152l0 270.8c0 9.8-6 18.6-15.1 22.3L416 503l0-302.6zM137.6 138.3c2.4 14.1 7.2 28.3 12.8 41.5c2.9 6.8 6.1 13.7 9.6 20.6l0 251.4L32.9 502.7C17.1 509 0 497.4 0 480.4L0 209.6c0-9.8 6-18.6 15.1-22.3l122.6-49zM327.8 332c13.9-17.4 35.7-45.7 56.2-77l0 249.3L192 449.4 192 255c20.5 31.3 42.3 59.6 56.2 77c20.5 25.6 59.1 25.6 79.6 0zM288 152a40 40 0 1 0 0-80 40 40 0 1 0 0 80z"]},wE=dJ,hJ={prefix:"fas",iconName:"caret-up",icon:[320,512,[],"f0d8","M182.6 137.4c-12.5-12.5-32.8-12.5-45.3 0l-128 128c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l256 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-128-128z"]},pJ={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 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"]},mJ={prefix:"fas",iconName:"arrow-down-wide-short",icon:[576,512,["sort-amount-asc","sort-amount-down"],"f160","M151.6 469.6C145.5 476.2 137 480 128 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L96 365.7 96 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 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"]},vJ=mJ,Gj={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240l0-223.4c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16L304 240zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4L256 288 412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288l238.4 0z"]},l1={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.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]},IB={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},$B={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},FN={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 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM305 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47z"]},gJ={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 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-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]},yJ={prefix:"fas",iconName:"arrow-left",icon:[448,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.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]},bJ={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},wJ=bJ,_J={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},xJ={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 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-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},u1=xJ,SJ={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]},OJ=SJ,CJ={prefix:"fas",iconName:"grip-vertical",icon:[320,512,[],"f58e","M40 352l48 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-40l0-48c0-22.1 17.9-40 40-40zm192 0l48 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-40l0-48c0-22.1 17.9-40 40-40zM40 320c-22.1 0-40-17.9-40-40l0-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 0zM232 192l48 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-40l0-48c0-22.1 17.9-40 40-40zM40 160c-22.1 0-40-17.9-40-40L0 72C0 49.9 17.9 32 40 32l48 0c22.1 0 40 17.9 40 40l0 48c0 22.1-17.9 40-40 40l-48 0zM232 32l48 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-40l0-48c0-22.1 17.9-40 40-40z"]},EJ={prefix:"fas",iconName:"caret-down",icon:[320,512,[],"f0d7","M137.4 374.6c12.5 12.5 32.8 12.5 45.3 0l128-128c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8L32 192c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l128 128z"]},TJ={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},AJ=TJ,jJ={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},PJ=jJ,RJ={prefix:"fas",iconName:"arrow-up-wide-short",icon:[576,512,["sort-amount-up"],"f161","M151.6 42.4C145.5 35.8 137 32 128 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L96 146.3 96 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-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"]},MJ=RJ,NJ={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},BB=NJ,LJ={prefix:"fas",iconName:"sun",icon:[512,512,[9728],"f185","M361.5 1.2c5 2.1 8.6 6.6 9.6 11.9L391 121l107.9 19.8c5.3 1 9.8 4.6 11.9 9.6s1.5 10.7-1.6 15.2L446.9 256l62.3 90.3c3.1 4.5 3.7 10.2 1.6 15.2s-6.6 8.6-11.9 9.6L391 391 371.1 498.9c-1 5.3-4.6 9.8-9.6 11.9s-10.7 1.5-15.2-1.6L256 446.9l-90.3 62.3c-4.5 3.1-10.2 3.7-15.2 1.6s-8.6-6.6-9.6-11.9L121 391 13.1 371.1c-5.3-1-9.8-4.6-11.9-9.6s-1.5-10.7 1.6-15.2L65.1 256 2.8 165.7c-3.1-4.5-3.7-10.2-1.6-15.2s6.6-8.6 11.9-9.6L121 121 140.9 13.1c1-5.3 4.6-9.8 9.6-11.9s10.7-1.5 15.2 1.6L256 65.1 346.3 2.8c4.5-3.1 10.2-3.7 15.2-1.6zM160 256a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zm224 0a128 128 0 1 0 -256 0 128 128 0 1 0 256 0z"]},DJ={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.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 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},kJ={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},IJ={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 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},UB=IJ,$J={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.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 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},BJ={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.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 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},yv={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},c1={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},f1=c1,UJ=c1,qN={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"]},f0={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 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.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},zJ={prefix:"fas",iconName:"rotate",icon:[512,512,[128260,"sync-alt"],"f2f1","M142.9 142.9c-17.5 17.5-30.1 38-37.8 59.8c-5.9 16.7-24.2 25.4-40.8 19.5s-25.4-24.2-19.5-40.8C55.6 150.7 73.2 122 97.6 97.6c87.2-87.2 228.3-87.5 315.8-1L455 55c6.9-6.9 17.2-8.9 26.2-5.2s14.8 12.5 14.8 22.2l0 128c0 13.3-10.7 24-24 24l-8.4 0c0 0 0 0 0 0L344 224c-9.7 0-18.5-5.8-22.2-14.8s-1.7-19.3 5.2-26.2l41.1-41.1c-62.6-61.5-163.1-61.2-225.3 1zM16 312c0-13.3 10.7-24 24-24l7.6 0 .7 0L168 288c9.7 0 18.5 5.8 22.2 14.8s1.7 19.3-5.2 26.2l-41.1 41.1c62.6 61.5 163.1 61.2 225.3-1c17.5-17.5 30.1-38 37.8-59.8c5.9-16.7 24.2-25.4 40.8-19.5s25.4 24.2 19.5 40.8c-10.8 30.6-28.4 59.3-52.9 83.8c-87.2 87.2-228.3 87.5-315.8 1L57 457c-6.9 6.9-17.2 8.9-26.2 5.2S16 449.7 16 440l0-119.6 0-.7 0-7.6z"]},FJ=zJ,VN={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},zB={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},qJ=zB,VJ={prefix:"fas",iconName:"qrcode",icon:[448,512,[],"f029","M0 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 96l0 64 64 0 0-64L64 96zM0 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-96zm64 16l0 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-48zm80 64l-64 0 0 64 64 0 0-64zM256 304c0-8.8 7.2-16 16-16l64 0c8.8 0 16 7.2 16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s7.2-16 16-16s16 7.2 16 16l0 96c0 8.8-7.2 16-16 16l-64 0c-8.8 0-16-7.2-16-16s-7.2-16-16-16s-16 7.2-16 16l0 64c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-160zM368 480a16 16 0 1 1 0-32 16 16 0 1 1 0 32zm64 0a16 16 0 1 1 0-32 16 16 0 1 1 0 32z"]},HJ={prefix:"fas",iconName:"moon",icon:[384,512,[127769,9214],"f186","M223.5 32C100 32 0 132.3 0 256S100 480 223.5 480c60.6 0 115.5-24.2 155.8-63.4c5-4.9 6.3-12.5 3.1-18.7s-10.1-9.7-17-8.5c-9.8 1.7-19.8 2.6-30.1 2.6c-96.9 0-175.5-78.8-175.5-176c0-65.8 36-123.1 89.3-153.3c6.1-3.5 9.2-10.5 7.7-17.3s-7.3-11.9-14.3-12.5c-6.3-.5-12.6-.8-19-.8z"]},WJ={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-87L327 41c-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.2s19.3-1.7 26.2 5.2l39 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.2s-12.5 14.8-22.2 14.8z"]},GJ={prefix:"fas",iconName:"link-slash",icon:[640,512,["chain-broken","chain-slash","unlink"],"f127","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L489.3 358.2l90.5-90.5c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114l-96 96-31.9-25C430.9 239.6 420.1 175.1 377 132c-52.2-52.3-134.5-56.2-191.3-11.7L38.8 5.1zM239 162c30.1-14.9 67.7-9.9 92.8 15.3c20 20 27.5 48.3 21.7 74.5L239 162zM406.6 416.4L220.9 270c-2.1 39.8 12.2 80.1 42.2 110c38.9 38.9 94.4 51 143.6 36.3zm-290-228.5L60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5l61.8-61.8-50.6-39.9z"]},YJ={prefix:"fas",iconName:"desktop",icon:[576,512,[128421,61704,"desktop-alt"],"f390","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l176 0-10.7 32L160 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l256 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-69.3 0L336 416l176 0c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0zM512 64l0 224L64 288 64 64l448 0z"]},ac={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},FB={prefix:"fas",iconName:"arrows-split-up-and-left",icon:[512,512,[],"e4bc","M246.6 150.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l96-96c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L352 109.3 352 384c0 35.3 28.7 64 64 64l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-70.7 0-128-57.3-128-128c0-35.3-28.7-64-64-64l-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 256 224 256c23.3 0 45.2 6.2 64 17.1l0-163.9-41.4 41.4z"]},KJ={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},ZJ=KJ;/*!
* Font Awesome Free 6.7.2 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 2024 Fonticons, Inc.
*/function XJ(e,t,n){return(t=JJ(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Ze(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?HN(Object(n),!0).forEach(function(r){XJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):HN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QJ(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 JJ(e){var t=QJ(e,"string");return typeof t=="symbol"?t:t+""}const WN=()=>{};let Yj={},qB={},VB=null,HB={mark:WN,measure:WN};try{typeof window<"u"&&(Yj=window),typeof document<"u"&&(qB=document),typeof MutationObserver<"u"&&(VB=MutationObserver),typeof performance<"u"&&(HB=performance)}catch{}const{userAgent:GN=""}=Yj.navigator||{},Bl=Yj,vn=qB,YN=VB,py=HB;Bl.document;const gs=!!vn.documentElement&&!!vn.head&&typeof vn.addEventListener=="function"&&typeof vn.createElement=="function",WB=~GN.indexOf("MSIE")||~GN.indexOf("Trident/");var eee=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,tee=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,GB={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"}},nee={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},YB=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],Nr="classic",d1="duotone",ree="sharp",iee="sharp-duotone",KB=[Nr,d1,ree,iee],aee={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"}},oee={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},see=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),lee={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},uee=["fak","fa-kit","fakd","fa-kit-duotone"],KN={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},cee=["kit"],fee={kit:{"fa-kit":"fak"}},dee=["fak","fakd"],hee={kit:{fak:"fa-kit"}},ZN={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},my={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pee=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],mee=["fak","fa-kit","fakd","fa-kit-duotone"],vee={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},gee={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"}},yee={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},_E={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"}},bee=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],xE=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...pee,...bee],wee=["solid","regular","light","thin","duotone","brands"],ZB=[1,2,3,4,5,6,7,8,9,10],_ee=ZB.concat([11,12,13,14,15,16,17,18,19,20]),xee=[...Object.keys(yee),...wee,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",my.GROUP,my.SWAP_OPACITY,my.PRIMARY,my.SECONDARY].concat(ZB.map(e=>"".concat(e,"x"))).concat(_ee.map(e=>"w-".concat(e))),See={"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"}};const us="___FONT_AWESOME___",SE=16,XB="fa",QB="svg-inline--fa",oc="data-fa-i2svg",OE="data-fa-pseudo-element",Oee="data-fa-pseudo-element-pending",Kj="data-prefix",Zj="data-icon",XN="fontawesome-i2svg",Cee="async",Eee=["HTML","HEAD","STYLE","SCRIPT"],JB=(()=>{try{return!0}catch{return!1}})();function bv(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[Nr]}})}const eU=Ze({},GB);eU[Nr]=Ze(Ze(Ze(Ze({},{"fa-duotone":"duotone"}),GB[Nr]),KN.kit),KN["kit-duotone"]);const Tee=bv(eU),CE=Ze({},lee);CE[Nr]=Ze(Ze(Ze(Ze({},{duotone:"fad"}),CE[Nr]),ZN.kit),ZN["kit-duotone"]);const QN=bv(CE),EE=Ze({},_E);EE[Nr]=Ze(Ze({},EE[Nr]),hee.kit);const Xj=bv(EE),TE=Ze({},gee);TE[Nr]=Ze(Ze({},TE[Nr]),fee.kit);bv(TE);const Aee=eee,tU="fa-layers-text",jee=tee,Pee=Ze({},aee);bv(Pee);const Ree=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Rx=nee,Mee=[...cee,...xee],Gp=Bl.FontAwesomeConfig||{};function Nee(e){var t=vn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function Lee(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}vn&&typeof vn.querySelector=="function"&&[["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-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,r]=t;const i=Lee(Nee(n));i!=null&&(Gp[r]=i)});const nU={styleDefault:"solid",familyDefault:Nr,cssPrefix:XB,replacementClass:QB,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Gp.familyPrefix&&(Gp.cssPrefix=Gp.familyPrefix);const Jf=Ze(Ze({},nU),Gp);Jf.autoReplaceSvg||(Jf.observeMutations=!1);const ut={};Object.keys(nU).forEach(e=>{Object.defineProperty(ut,e,{enumerable:!0,set:function(t){Jf[e]=t,Yp.forEach(n=>n(ut))},get:function(){return Jf[e]}})});Object.defineProperty(ut,"familyPrefix",{enumerable:!0,set:function(e){Jf.cssPrefix=e,Yp.forEach(t=>t(ut))},get:function(){return Jf.cssPrefix}});Bl.FontAwesomeConfig=ut;const Yp=[];function Dee(e){return Yp.push(e),()=>{Yp.splice(Yp.indexOf(e),1)}}const yl=SE,ro={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function kee(e){if(!e||!gs)return;const t=vn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=vn.head.childNodes;let r=null;for(let i=n.length-1;i>-1;i--){const a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}return vn.head.insertBefore(t,r),e}const Iee="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function fm(){let e=12,t="";for(;e-- >0;)t+=Iee[Math.random()*62|0];return t}function Wd(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Qj(e){return e.classList?Wd(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function rU(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function $ee(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(rU(e[n]),'" '),"").trim()}function h1(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function Jj(e){return e.size!==ro.size||e.x!==ro.x||e.y!==ro.y||e.rotate!==ro.rotate||e.flipX||e.flipY}function Bee(e){let{transform:t,containerWidth:n,iconWidth:r}=e;const i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),l="rotate(".concat(t.rotate," 0 0)"),f={transform:"".concat(a," ").concat(o," ").concat(l)},u={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:f,path:u}}function Uee(e){let{transform:t,width:n=SE,height:r=SE,startCentered:i=!1}=e,a="";return i&&WB?a+="translate(".concat(t.x/yl-n/2,"em, ").concat(t.y/yl-r/2,"em) "):i?a+="translate(calc(-50% + ".concat(t.x/yl,"em), calc(-50% + ").concat(t.y/yl,"em)) "):a+="translate(".concat(t.x/yl,"em, ").concat(t.y/yl,"em) "),a+="scale(".concat(t.size/yl*(t.flipX?-1:1),", ").concat(t.size/yl*(t.flipY?-1:1),") "),a+="rotate(".concat(t.rotate,"deg) "),a}var zee=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
}
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
overflow: visible;
box-sizing: content-box;
}
.svg-inline--fa {
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.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.0714285705em;
}
.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 {
margin-right: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
top: 0.25em;
}
.svg-inline--fa.fa-fw {
width: var(--fa-fw-width, 1.25em);
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.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: 1em;
}
.fa-layers svg.svg-inline--fa {
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: 0.625em;
line-height: 0.1em;
vertical-align: 0.225em;
}
.fa-xs {
font-size: 0.75em;
line-height: 0.0833333337em;
vertical-align: 0.125em;
}
.fa-sm {
font-size: 0.875em;
line-height: 0.0714285718em;
vertical-align: 0.0535714295em;
}
.fa-lg {
font-size: 1.25em;
line-height: 0.05em;
vertical-align: -0.075em;
}
.fa-xl {
font-size: 1.5em;
line-height: 0.0416666682em;
vertical-align: -0.125em;
}
.fa-2xl {
font-size: 2em;
line-height: 0.03125em;
vertical-align: -0.1875em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: var(--fa-li-margin, 2.5em);
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: calc(-1 * var(--fa-li-width, 2em));
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
.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.08em);
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}
.fa-pull-left {
float: left;
margin-right: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right {
float: right;
margin-left: 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-delay: -1ms;
animation-duration: 1ms;
animation-iteration-count: 1;
transition-delay: 0s;
transition-duration: 0s;
}
}
@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));
}
.fa-stack {
display: inline-block;
vertical-align: middle;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
z-index: var(--fa-stack-z-index, auto);
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.sr-only,
.fa-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 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;
}`;function iU(){const e=XB,t=QB,n=ut.cssPrefix,r=ut.replacementClass;let i=zee;if(n!==e||r!==t){const a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),l=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(l,".".concat(r))}return i}let JN=!1;function Mx(){ut.autoAddCss&&!JN&&(kee(iU()),JN=!0)}var Fee={mixout(){return{dom:{css:iU,insertCss:Mx}}},hooks(){return{beforeDOMElementCreation(){Mx()},beforeI2svg(){Mx()}}}};const cs=Bl||{};cs[us]||(cs[us]={});cs[us].styles||(cs[us].styles={});cs[us].hooks||(cs[us].hooks={});cs[us].shims||(cs[us].shims=[]);var io=cs[us];const aU=[],oU=function(){vn.removeEventListener("DOMContentLoaded",oU),d0=1,aU.map(e=>e())};let d0=!1;gs&&(d0=(vn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(vn.readyState),d0||vn.addEventListener("DOMContentLoaded",oU));function qee(e){gs&&(d0?setTimeout(e,0):aU.push(e))}function wv(e){const{tag:t,attributes:n={},children:r=[]}=e;return typeof e=="string"?rU(e):"<".concat(t," ").concat($ee(n),">").concat(r.map(wv).join(""),"</").concat(t,">")}function e6(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Nx=function(t,n,r,i){var a=Object.keys(t),o=a.length,l=n,f,u,h;for(r===void 0?(f=1,h=t[a[0]]):(f=0,h=r);f<o;f++)u=a[f],h=l(h,t[u],u,t);return h};function Vee(e){const t=[];let n=0;const r=e.length;for(;n<r;){const i=e.charCodeAt(n++);if(i>=55296&&i<=56319&&n<r){const a=e.charCodeAt(n++);(a&64512)==56320?t.push(((i&1023)<<10)+(a&1023)+65536):(t.push(i),n--)}else t.push(i)}return t}function AE(e){const t=Vee(e);return t.length===1?t[0].toString(16):null}function Hee(e,t){const n=e.length;let r=e.charCodeAt(t),i;return r>=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function t6(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return!!r.icon?t[r.iconName]=r.icon:t[n]=r,t},{})}function jE(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:r=!1}=n,i=t6(t);typeof io.hooks.addPack=="function"&&!r?io.hooks.addPack(e,t6(t)):io.styles[e]=Ze(Ze({},io.styles[e]||{}),i),e==="fas"&&jE("fa",t)}const{styles:dm,shims:Wee}=io,sU=Object.keys(Xj),Gee=sU.reduce((e,t)=>(e[t]=Object.keys(Xj[t]),e),{});let e3=null,lU={},uU={},cU={},fU={},dU={};function Yee(e){return~Mee.indexOf(e)}function Kee(e,t){const n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!Yee(i)?i:null}const hU=()=>{const e=r=>Nx(dm,(i,a,o)=>(i[o]=Nx(a,r,{}),i),{});lU=e((r,i,a)=>(i[3]&&(r[i[3]]=a),i[2]&&i[2].filter(l=>typeof l=="number").forEach(l=>{r[l.toString(16)]=a}),r)),uU=e((r,i,a)=>(r[a]=a,i[2]&&i[2].filter(l=>typeof l=="string").forEach(l=>{r[l]=a}),r)),dU=e((r,i,a)=>{const o=i[2];return r[a]=a,o.forEach(l=>{r[l]=a}),r});const t="far"in dm||ut.autoFetchSvg,n=Nx(Wee,(r,i)=>{const a=i[0];let o=i[1];const l=i[2];return o==="far"&&!t&&(o="fas"),typeof a=="string"&&(r.names[a]={prefix:o,iconName:l}),typeof a=="number"&&(r.unicodes[a.toString(16)]={prefix:o,iconName:l}),r},{names:{},unicodes:{}});cU=n.names,fU=n.unicodes,e3=p1(ut.styleDefault,{family:ut.familyDefault})};Dee(e=>{e3=p1(e.styleDefault,{family:ut.familyDefault})});hU();function t3(e,t){return(lU[e]||{})[t]}function Zee(e,t){return(uU[e]||{})[t]}function Ku(e,t){return(dU[e]||{})[t]}function pU(e){return cU[e]||{prefix:null,iconName:null}}function Xee(e){const t=fU[e],n=t3("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Ul(){return e3}const mU=()=>({prefix:null,iconName:null,rest:[]});function Qee(e){let t=Nr;const n=sU.reduce((r,i)=>(r[i]="".concat(ut.cssPrefix,"-").concat(i),r),{});return KB.forEach(r=>{(e.includes(n[r])||e.some(i=>Gee[r].includes(i)))&&(t=r)}),t}function p1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=Nr}=t,r=Tee[n][e];if(n===d1&&!e)return"fad";const i=QN[n][e]||QN[n][r],a=e in io.styles?e:null;return i||a||null}function Jee(e){let t=[],n=null;return e.forEach(r=>{const i=Kee(ut.cssPrefix,r);i?n=i:r&&t.push(r)}),{iconName:n,rest:t}}function n6(e){return e.sort().filter((t,n,r)=>r.indexOf(t)===n)}function m1(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let r=null;const i=xE.concat(mee),a=n6(e.filter(m=>i.includes(m))),o=n6(e.filter(m=>!xE.includes(m))),l=a.filter(m=>(r=m,!YB.includes(m))),[f=null]=l,u=Qee(a),h=Ze(Ze({},Jee(o)),{},{prefix:p1(f,{family:u})});return Ze(Ze(Ze({},h),rte({values:e,family:u,styles:dm,config:ut,canonical:h,givenPrefix:r})),ete(n,r,h))}function ete(e,t,n){let{prefix:r,iconName:i}=n;if(e||!r||!i)return{prefix:r,iconName:i};const a=t==="fa"?pU(i):{},o=Ku(r,i);return i=a.iconName||o||i,r=a.prefix||r,r==="far"&&!dm.far&&dm.fas&&!ut.autoFetchSvg&&(r="fas"),{prefix:r,iconName:i}}const tte=KB.filter(e=>e!==Nr||e!==d1),nte=Object.keys(_E).filter(e=>e!==Nr).map(e=>Object.keys(_E[e])).flat();function rte(e){const{values:t,family:n,canonical:r,givenPrefix:i="",styles:a={},config:o={}}=e,l=n===d1,f=t.includes("fa-duotone")||t.includes("fad"),u=o.familyDefault==="duotone",h=r.prefix==="fad"||r.prefix==="fa-duotone";if(!l&&(f||u||h)&&(r.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(r.prefix="fab"),!r.prefix&&tte.includes(n)&&(Object.keys(a).find(v=>nte.includes(v))||o.autoFetchSvg)){const v=see.get(n).defaultShortPrefixId;r.prefix=v,r.iconName=Ku(r.prefix,r.iconName)||r.iconName}return(r.prefix==="fa"||i==="fa")&&(r.prefix=Ul()||"fas"),r}class ite{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];const i=n.reduce(this._pullDefinitions,{});Object.keys(i).forEach(a=>{this.definitions[a]=Ze(Ze({},this.definitions[a]||{}),i[a]),jE(a,i[a]);const o=Xj[Nr][a];o&&jE(o,i[a]),hU()})}reset(){this.definitions={}}_pullDefinitions(t,n){const r=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(r).map(i=>{const{prefix:a,iconName:o,icon:l}=r[i],f=l[2];t[a]||(t[a]={}),f.length>0&&f.forEach(u=>{typeof u=="string"&&(t[a][u]=l)}),t[a][o]=l}),t}}let r6=[],Lf={};const Vf={},ate=Object.keys(Vf);function ote(e,t){let{mixoutsTo:n}=t;return r6=e,Lf={},Object.keys(Vf).forEach(r=>{ate.indexOf(r)===-1&&delete Vf[r]}),r6.forEach(r=>{const i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(a=>{typeof i[a]=="function"&&(n[a]=i[a]),typeof i[a]=="object"&&Object.keys(i[a]).forEach(o=>{n[a]||(n[a]={}),n[a][o]=i[a][o]})}),r.hooks){const a=r.hooks();Object.keys(a).forEach(o=>{Lf[o]||(Lf[o]=[]),Lf[o].push(a[o])})}r.provides&&r.provides(Vf)}),n}function PE(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];return(Lf[e]||[]).forEach(o=>{t=o.apply(null,[t,...r])}),t}function sc(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];(Lf[e]||[]).forEach(a=>{a.apply(null,n)})}function zl(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Vf[e]?Vf[e].apply(null,t):void 0}function RE(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Ul();if(t)return t=Ku(n,t)||t,e6(vU.definitions,n,t)||e6(io.styles,n,t)}const vU=new ite,ste=()=>{ut.autoReplaceSvg=!1,ut.observeMutations=!1,sc("noAuto")},lte={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return gs?(sc("beforeI2svg",e),zl("pseudoElements2svg",e),zl("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;ut.autoReplaceSvg===!1&&(ut.autoReplaceSvg=!0),ut.observeMutations=!0,qee(()=>{cte({autoReplaceSvgRoot:t}),sc("watch",e)})}},ute={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Ku(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=p1(e[0]);return{prefix:n,iconName:Ku(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(ut.cssPrefix,"-"))>-1||e.match(Aee))){const t=m1(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Ul(),iconName:Ku(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Ul();return{prefix:t,iconName:Ku(t,e)||e}}}},$i={noAuto:ste,config:ut,dom:lte,parse:ute,library:vU,findIconDefinition:RE,toHtml:wv},cte=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=vn}=e;(Object.keys(io.styles).length>0||ut.autoFetchSvg)&&gs&&ut.autoReplaceSvg&&$i.dom.i2svg({node:t})};function v1(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>wv(n))}}),Object.defineProperty(e,"node",{get:function(){if(!gs)return;const n=vn.createElement("div");return n.innerHTML=e.html,n.children}}),e}function fte(e){let{children:t,main:n,mask:r,attributes:i,styles:a,transform:o}=e;if(Jj(o)&&n.found&&!r.found){const{width:l,height:f}=n,u={x:l/f/2,y:.5};i.style=h1(Ze(Ze({},a),{},{"transform-origin":"".concat(u.x+o.x/16,"em ").concat(u.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function dte(e){let{prefix:t,iconName:n,children:r,attributes:i,symbol:a}=e;const o=a===!0?"".concat(t,"-").concat(ut.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ze(Ze({},i),{},{id:o}),children:r}]}]}function n3(e){const{icons:{main:t,mask:n},prefix:r,iconName:i,transform:a,symbol:o,title:l,maskId:f,titleId:u,extra:h,watchable:m=!1}=e,{width:v,height:_}=n.found?n:t,x=dee.includes(r),w=[ut.replacementClass,i?"".concat(ut.cssPrefix,"-").concat(i):""].filter(P=>h.classes.indexOf(P)===-1).filter(P=>P!==""||!!P).concat(h.classes).join(" ");let S={children:[],attributes:Ze(Ze({},h.attributes),{},{"data-prefix":r,"data-icon":i,class:w,role:h.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(_)})};const O=x&&!~h.classes.indexOf("fa-fw")?{width:"".concat(v/_*16*.0625,"em")}:{};m&&(S.attributes[oc]=""),l&&(S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(u||fm())},children:[l]}),delete S.attributes.title);const C=Ze(Ze({},S),{},{prefix:r,iconName:i,main:t,mask:n,maskId:f,transform:a,symbol:o,styles:Ze(Ze({},O),h.styles)}),{children:T,attributes:j}=n.found&&t.found?zl("generateAbstractMask",C)||{children:[],attributes:{}}:zl("generateAbstractIcon",C)||{children:[],attributes:{}};return C.children=T,C.attributes=j,o?dte(C):fte(C)}function i6(e){const{content:t,width:n,height:r,transform:i,title:a,extra:o,watchable:l=!1}=e,f=Ze(Ze(Ze({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});l&&(f[oc]="");const u=Ze({},o.styles);Jj(i)&&(u.transform=Uee({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);const h=h1(u);h.length>0&&(f.style=h);const m=[];return m.push({tag:"span",attributes:f,children:[t]}),a&&m.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),m}function hte(e){const{content:t,title:n,extra:r}=e,i=Ze(Ze(Ze({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=h1(r.styles);a.length>0&&(i.style=a);const o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}const{styles:Lx}=io;function ME(e){const t=e[0],n=e[1],[r]=e.slice(4);let i=null;return Array.isArray(r)?i={tag:"g",attributes:{class:"".concat(ut.cssPrefix,"-").concat(Rx.GROUP)},children:[{tag:"path",attributes:{class:"".concat(ut.cssPrefix,"-").concat(Rx.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(ut.cssPrefix,"-").concat(Rx.PRIMARY),fill:"currentColor",d:r[1]}}]}:i={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:t,height:n,icon:i}}const pte={found:!1,width:512,height:512};function mte(e,t){!JB&&!ut.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function NE(e,t){let n=t;return t==="fa"&&ut.styleDefault!==null&&(t=Ul()),new Promise((r,i)=>{if(n==="fa"){const a=pU(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&Lx[t]&&Lx[t][e]){const a=Lx[t][e];return r(ME(a))}mte(e,t),r(Ze(Ze({},pte),{},{icon:ut.showMissingIcons&&e?zl("missingIconAbstract")||{}:{}}))})}const a6=()=>{},LE=ut.measurePerformance&&py&&py.mark&&py.measure?py:{mark:a6,measure:a6},Np='FA "6.7.2"',vte=e=>(LE.mark("".concat(Np," ").concat(e," begins")),()=>gU(e)),gU=e=>{LE.mark("".concat(Np," ").concat(e," ends")),LE.measure("".concat(Np," ").concat(e),"".concat(Np," ").concat(e," begins"),"".concat(Np," ").concat(e," ends"))};var r3={begin:vte,end:gU};const Zy=()=>{};function o6(e){return typeof(e.getAttribute?e.getAttribute(oc):null)=="string"}function gte(e){const t=e.getAttribute?e.getAttribute(Kj):null,n=e.getAttribute?e.getAttribute(Zj):null;return t&&n}function yte(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(ut.replacementClass)}function bte(){return ut.autoReplaceSvg===!0?Xy.replace:Xy[ut.autoReplaceSvg]||Xy.replace}function wte(e){return vn.createElementNS("http://www.w3.org/2000/svg",e)}function _te(e){return vn.createElement(e)}function yU(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?wte:_te}=t;if(typeof e=="string")return vn.createTextNode(e);const r=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(a){r.setAttribute(a,e.attributes[a])}),(e.children||[]).forEach(function(a){r.appendChild(yU(a,{ceFn:n}))}),r}function xte(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Xy={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(yU(n),t)}),t.getAttribute(oc)===null&&ut.keepOriginalSource){let n=vn.createComment(xte(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~Qj(t).indexOf(ut.replacementClass))return Xy.replace(e);const r=new RegExp("".concat(ut.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const a=n[0].attributes.class.split(" ").reduce((o,l)=>(l===ut.replacementClass||l.match(r)?o.toSvg.push(l):o.toNode.push(l),o),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),a.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}const i=n.map(a=>wv(a)).join(`
`);t.setAttribute(oc,""),t.innerHTML=i}};function s6(e){e()}function bU(e,t){const n=typeof t=="function"?t:Zy;if(e.length===0)n();else{let r=s6;ut.mutateApproach===Cee&&(r=Bl.requestAnimationFrame||s6),r(()=>{const i=bte(),a=r3.begin("mutate");e.map(i),a(),n()})}}let i3=!1;function wU(){i3=!0}function DE(){i3=!1}let h0=null;function l6(e){if(!YN||!ut.observeMutations)return;const{treeCallback:t=Zy,nodeCallback:n=Zy,pseudoElementsCallback:r=Zy,observeMutationsRoot:i=vn}=e;h0=new YN(a=>{if(i3)return;const o=Ul();Wd(a).forEach(l=>{if(l.type==="childList"&&l.addedNodes.length>0&&!o6(l.addedNodes[0])&&(ut.searchPseudoElements&&r(l.target),t(l.target)),l.type==="attributes"&&l.target.parentNode&&ut.searchPseudoElements&&r(l.target.parentNode),l.type==="attributes"&&o6(l.target)&&~Ree.indexOf(l.attributeName))if(l.attributeName==="class"&&gte(l.target)){const{prefix:f,iconName:u}=m1(Qj(l.target));l.target.setAttribute(Kj,f||o),u&&l.target.setAttribute(Zj,u)}else yte(l.target)&&n(l.target)})}),gs&&h0.observe(i,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function Ste(){h0&&h0.disconnect()}function Ote(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((r,i)=>{const a=i.split(":"),o=a[0],l=a.slice(1);return o&&l.length>0&&(r[o]=l.join(":").trim()),r},{})),n}function Cte(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"";let i=m1(Qj(e));return i.prefix||(i.prefix=Ul()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=Zee(i.prefix,e.innerText)||t3(i.prefix,AE(e.innerText))),!i.iconName&&ut.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function Ete(e){const t=Wd(e.attributes).reduce((i,a)=>(i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i),{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return ut.autoA11y&&(n?t["aria-labelledby"]="".concat(ut.replacementClass,"-title-").concat(r||fm()):(t["aria-hidden"]="true",t.focusable="false")),t}function Tte(){return{iconName:null,title:null,titleId:null,prefix:null,transform:ro,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function u6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:r,rest:i}=Cte(e),a=Ete(e),o=PE("parseNodeAttributes",{},e);let l=t.styleParser?Ote(e):[];return Ze({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:r,transform:ro,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:l,attributes:a}},o)}const{styles:Ate}=io;function _U(e){const t=ut.autoReplaceSvg==="nest"?u6(e,{styleParser:!1}):u6(e);return~t.extra.classes.indexOf(tU)?zl("generateLayersText",e,t):zl("generateSvgReplacementMutation",e,t)}function jte(){return[...uee,...xE]}function c6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!gs)return Promise.resolve();const n=vn.documentElement.classList,r=h=>n.add("".concat(XN,"-").concat(h)),i=h=>n.remove("".concat(XN,"-").concat(h)),a=ut.autoFetchSvg?jte():YB.concat(Object.keys(Ate));a.includes("fa")||a.push("fa");const o=[".".concat(tU,":not([").concat(oc,"])")].concat(a.map(h=>".".concat(h,":not([").concat(oc,"])"))).join(", ");if(o.length===0)return Promise.resolve();let l=[];try{l=Wd(e.querySelectorAll(o))}catch{}if(l.length>0)r("pending"),i("complete");else return Promise.resolve();const f=r3.begin("onTree"),u=l.reduce((h,m)=>{try{const v=_U(m);v&&h.push(v)}catch(v){JB||v.name==="MissingIcon"&&console.error(v)}return h},[]);return new Promise((h,m)=>{Promise.all(u).then(v=>{bU(v,()=>{r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),f(),h()})}).catch(v=>{f(),m(v)})})}function Pte(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;_U(e).then(n=>{n&&bU([n],t)})}function Rte(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=(t||{}).icon?t:RE(t||{});let{mask:i}=n;return i&&(i=(i||{}).icon?i:RE(i||{})),e(r,Ze(Ze({},n),{},{mask:i}))}}const Mte=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=ro,symbol:r=!1,mask:i=null,maskId:a=null,title:o=null,titleId:l=null,classes:f=[],attributes:u={},styles:h={}}=t;if(!e)return;const{prefix:m,iconName:v,icon:_}=e;return v1(Ze({type:"icon"},e),()=>(sc("beforeDOMElementCreation",{iconDefinition:e,params:t}),ut.autoA11y&&(o?u["aria-labelledby"]="".concat(ut.replacementClass,"-title-").concat(l||fm()):(u["aria-hidden"]="true",u.focusable="false")),n3({icons:{main:ME(_),mask:i?ME(i.icon):{found:!1,width:null,height:null,icon:{}}},prefix:m,iconName:v,transform:Ze(Ze({},ro),n),symbol:r,title:o,maskId:a,titleId:l,extra:{attributes:u,styles:h,classes:f}})))};var Nte={mixout(){return{icon:Rte(Mte)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=c6,e.nodeCallback=Pte,e}}},provides(e){e.i2svg=function(t){const{node:n=vn,callback:r=()=>{}}=t;return c6(n,r)},e.generateSvgReplacementMutation=function(t,n){const{iconName:r,title:i,titleId:a,prefix:o,transform:l,symbol:f,mask:u,maskId:h,extra:m}=n;return new Promise((v,_)=>{Promise.all([NE(r,o),u.iconName?NE(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(x=>{let[w,S]=x;v([t,n3({icons:{main:w,mask:S},prefix:o,iconName:r,transform:l,symbol:f,maskId:h,title:i,titleId:a,extra:m,watchable:!0})])}).catch(_)})},e.generateAbstractIcon=function(t){let{children:n,attributes:r,main:i,transform:a,styles:o}=t;const l=h1(o);l.length>0&&(r.style=l);let f;return Jj(a)&&(f=zl("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(f||i.icon),{children:n,attributes:r}}}},Lte={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return v1({type:"layer"},()=>{sc("beforeDOMElementCreation",{assembler:e,params:t});let r=[];return e(i=>{Array.isArray(i)?i.map(a=>{r=r.concat(a.abstract)}):r=r.concat(i.abstract)}),[{tag:"span",attributes:{class:["".concat(ut.cssPrefix,"-layers"),...n].join(" ")},children:r}]})}}}},Dte={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:r=[],attributes:i={},styles:a={}}=t;return v1({type:"counter",content:e},()=>(sc("beforeDOMElementCreation",{content:e,params:t}),hte({content:e.toString(),title:n,extra:{attributes:i,styles:a,classes:["".concat(ut.cssPrefix,"-layers-counter"),...r]}})))}}}},kte={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=ro,title:r=null,classes:i=[],attributes:a={},styles:o={}}=t;return v1({type:"text",content:e},()=>(sc("beforeDOMElementCreation",{content:e,params:t}),i6({content:e,transform:Ze(Ze({},ro),n),title:r,extra:{attributes:a,styles:o,classes:["".concat(ut.cssPrefix,"-layers-text"),...i]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:r,transform:i,extra:a}=n;let o=null,l=null;if(WB){const f=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();o=u.width/f,l=u.height/f}return ut.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,i6({content:t.innerHTML,width:o,height:l,transform:i,title:r,extra:a,watchable:!0})])}}};const Ite=new RegExp('"',"ug"),f6=[1105920,1112319],d6=Ze(Ze(Ze(Ze({},{FontAwesome:{normal:"fas",400:"fas"}}),oee),See),vee),kE=Object.keys(d6).reduce((e,t)=>(e[t.toLowerCase()]=d6[t],e),{}),$te=Object.keys(kE).reduce((e,t)=>{const n=kE[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function Bte(e){const t=e.replace(Ite,""),n=Hee(t,0),r=n>=f6[0]&&n<=f6[1],i=t.length===2?t[0]===t[1]:!1;return{value:AE(i?t[0]:t),isSecondary:r||i}}function Ute(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),r=parseInt(t),i=isNaN(r)?"normal":r;return(kE[n]||{})[i]||$te[n]}function h6(e,t){const n="".concat(Oee).concat(t.replace(":","-"));return new Promise((r,i)=>{if(e.getAttribute(n)!==null)return r();const o=Wd(e.children).filter(v=>v.getAttribute(OE)===t)[0],l=Bl.getComputedStyle(e,t),f=l.getPropertyValue("font-family"),u=f.match(jee),h=l.getPropertyValue("font-weight"),m=l.getPropertyValue("content");if(o&&!u)return e.removeChild(o),r();if(u&&m!=="none"&&m!==""){const v=l.getPropertyValue("content");let _=Ute(f,h);const{value:x,isSecondary:w}=Bte(v),S=u[0].startsWith("FontAwesome");let O=t3(_,x),C=O;if(S){const T=Xee(x);T.iconName&&T.prefix&&(O=T.iconName,_=T.prefix)}if(O&&!w&&(!o||o.getAttribute(Kj)!==_||o.getAttribute(Zj)!==C)){e.setAttribute(n,C),o&&e.removeChild(o);const T=Tte(),{extra:j}=T;j.attributes[OE]=t,NE(O,_).then(P=>{const R=n3(Ze(Ze({},T),{},{icons:{main:P,mask:mU()},prefix:_,iconName:C,extra:j,watchable:!0})),$=vn.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore($,e.firstChild):e.appendChild($),$.outerHTML=R.map(q=>wv(q)).join(`
`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function zte(e){return Promise.all([h6(e,"::before"),h6(e,"::after")])}function Fte(e){return e.parentNode!==document.head&&!~Eee.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(OE)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function p6(e){if(gs)return new Promise((t,n)=>{const r=Wd(e.querySelectorAll("*")).filter(Fte).map(zte),i=r3.begin("searchPseudoElements");wU(),Promise.all(r).then(()=>{i(),DE(),t()}).catch(()=>{i(),DE(),n()})})}var qte={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=p6,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=vn}=t;ut.searchPseudoElements&&p6(n)}}};let m6=!1;var Vte={mixout(){return{dom:{unwatch(){wU(),m6=!0}}}},hooks(){return{bootstrap(){l6(PE("mutationObserverCallbacks",{}))},noAuto(){Ste()},watch(e){const{observeMutationsRoot:t}=e;m6?DE():l6(PE("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const v6=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,r)=>{const i=r.toLowerCase().split("-"),a=i[0];let o=i.slice(1).join("-");if(a&&o==="h")return n.flipX=!0,n;if(a&&o==="v")return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(a){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o;break}return n},t)};var Hte={mixout(){return{parse:{transform:e=>v6(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=v6(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:r,containerWidth:i,iconWidth:a}=t;const o={transform:"translate(".concat(i/2," 256)")},l="translate(".concat(r.x*32,", ").concat(r.y*32,") "),f="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),h={transform:"".concat(l," ").concat(f," ").concat(u)},m={transform:"translate(".concat(a/2*-1," -256)")},v={outer:o,inner:h,path:m};return{tag:"g",attributes:Ze({},v.outer),children:[{tag:"g",attributes:Ze({},v.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Ze(Ze({},n.icon.attributes),v.path)}]}]}}}};const Dx={x:0,y:0,width:"100%",height:"100%"};function g6(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Wte(e){return e.tag==="g"?e.children:[e]}var Gte={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),r=n?m1(n.split(" ").map(i=>i.trim())):mU();return r.prefix||(r.prefix=Ul()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:r,main:i,mask:a,maskId:o,transform:l}=t;const{width:f,icon:u}=i,{width:h,icon:m}=a,v=Bee({transform:l,containerWidth:h,iconWidth:f}),_={tag:"rect",attributes:Ze(Ze({},Dx),{},{fill:"white"})},x=u.children?{children:u.children.map(g6)}:{},w={tag:"g",attributes:Ze({},v.inner),children:[g6(Ze({tag:u.tag,attributes:Ze(Ze({},u.attributes),v.path)},x))]},S={tag:"g",attributes:Ze({},v.outer),children:[w]},O="mask-".concat(o||fm()),C="clip-".concat(o||fm()),T={tag:"mask",attributes:Ze(Ze({},Dx),{},{id:O,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[_,S]},j={tag:"defs",children:[{tag:"clipPath",attributes:{id:C},children:Wte(m)},T]};return n.push(j,{tag:"rect",attributes:Ze({fill:"currentColor","clip-path":"url(#".concat(C,")"),mask:"url(#".concat(O,")")},Dx)}),{children:n,attributes:r}}}},Yte={provides(e){let t=!1;Bl.matchMedia&&(t=Bl.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Ze(Ze({},r),{},{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"})});const a=Ze(Ze({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:Ze(Ze({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:Ze(Ze({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ze(Ze({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:Ze(Ze({},r),{},{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:t?[]:[{tag:"animate",attributes:Ze(Ze({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:Ze(Ze({},r),{},{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:Ze(Ze({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},Kte={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},Zte=[Fee,Nte,Lte,Dte,kte,qte,Vte,Hte,Gte,Yte,Kte];ote(Zte,{mixoutsTo:$i});$i.noAuto;$i.config;$i.library;$i.dom;const IE=$i.parse;$i.findIconDefinition;$i.toHtml;const Xte=$i.icon;$i.layer;$i.text;$i.counter;var kx={exports:{}},Ix,y6;function Qte(){if(y6)return Ix;y6=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ix=e,Ix}var $x,b6;function Jte(){if(b6)return $x;b6=1;var e=Qte();function t(){}function n(){}return n.resetWarningCache=t,$x=function(){function r(o,l,f,u,h,m){if(m!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function i(){return r}var a={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:i,element:r,elementType:r,instanceOf:i,node:r,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:n,resetWarningCache:t};return a.PropTypes=a,a},$x}var w6;function ene(){return w6||(w6=1,kx.exports=Jte()()),kx.exports}var tne=ene();const he=Nt(tne);function _6(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 no(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_6(Object(n),!0).forEach(function(r){Df(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p0(e){"@babel/helpers - typeof";return p0=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},p0(e)}function Df(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function rne(e,t){if(e==null)return{};var n=nne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $E(e){return ine(e)||ane(e)||one(e)||sne()}function ine(e){if(Array.isArray(e))return BE(e)}function ane(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function one(e,t){if(e){if(typeof e=="string")return BE(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return BE(e,t)}}function BE(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function sne(){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 lne(e){var t,n=e.beat,r=e.fade,i=e.beatFade,a=e.bounce,o=e.shake,l=e.flash,f=e.spin,u=e.spinPulse,h=e.spinReverse,m=e.pulse,v=e.fixedWidth,_=e.inverse,x=e.border,w=e.listItem,S=e.flip,O=e.size,C=e.rotation,T=e.pull,j=(t={"fa-beat":n,"fa-fade":r,"fa-beat-fade":i,"fa-bounce":a,"fa-shake":o,"fa-flash":l,"fa-spin":f,"fa-spin-reverse":h,"fa-spin-pulse":u,"fa-pulse":m,"fa-fw":v,"fa-inverse":_,"fa-border":x,"fa-li":w,"fa-flip":S===!0,"fa-flip-horizontal":S==="horizontal"||S==="both","fa-flip-vertical":S==="vertical"||S==="both"},Df(t,"fa-".concat(O),typeof O<"u"&&O!==null),Df(t,"fa-rotate-".concat(C),typeof C<"u"&&C!==null&&C!==0),Df(t,"fa-pull-".concat(T),typeof T<"u"&&T!==null),Df(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(j).map(function(P){return j[P]?P:null}).filter(function(P){return P})}function une(e){return e=e-0,e===e}function xU(e){return une(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,function(t,n){return n?n.toUpperCase():""}),e.substr(0,1).toLowerCase()+e.substr(1))}var cne=["style"];function fne(e){return e.charAt(0).toUpperCase()+e.slice(1)}function dne(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var r=n.indexOf(":"),i=xU(n.slice(0,r)),a=n.slice(r+1).trim();return i.startsWith("webkit")?t[fne(i)]=a:t[i]=a,t},{})}function SU(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(f){return SU(e,f)}),i=Object.keys(t.attributes||{}).reduce(function(f,u){var h=t.attributes[u];switch(u){case"class":f.attrs.className=h,delete t.attributes.class;break;case"style":f.attrs.style=dne(h);break;default:u.indexOf("aria-")===0||u.indexOf("data-")===0?f.attrs[u.toLowerCase()]=h:f.attrs[xU(u)]=h}return f},{attrs:{}}),a=n.style,o=a===void 0?{}:a,l=rne(n,cne);return i.attrs.style=no(no({},i.attrs.style),o),e.apply(void 0,[t.tag,no(no({},i.attrs),l)].concat($E(r)))}var OU=!1;try{OU=!0}catch{}function hne(){if(!OU&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function x6(e){if(e&&p0(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(IE.icon)return IE.icon(e);if(e===null)return null;if(e&&p0(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function Bx(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Df({},e,t):{}}var S6={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},Ke=se.forwardRef(function(e,t){var n=no(no({},S6),e),r=n.icon,i=n.mask,a=n.symbol,o=n.className,l=n.title,f=n.titleId,u=n.maskId,h=x6(r),m=Bx("classes",[].concat($E(lne(n)),$E((o||"").split(" ")))),v=Bx("transform",typeof n.transform=="string"?IE.transform(n.transform):n.transform),_=Bx("mask",x6(i)),x=Xte(h,no(no(no(no({},m),v),_),{},{symbol:a,title:l,titleId:f,maskId:u}));if(!x)return hne("Could not find icon",h),null;var w=x.abstract,S={ref:t};return Object.keys(n).forEach(function(O){S6.hasOwnProperty(O)||(S[O]=n[O])}),pne(w[0],S)});Ke.displayName="FontAwesomeIcon";Ke.propTypes={beat:he.bool,border:he.bool,beatFade:he.bool,bounce:he.bool,className:he.string,fade:he.bool,flash:he.bool,mask:he.oneOfType([he.object,he.array,he.string]),maskId:he.string,fixedWidth:he.bool,inverse:he.bool,flip:he.oneOf([!0,!1,"horizontal","vertical","both"]),icon:he.oneOfType([he.object,he.array,he.string]),listItem:he.bool,pull:he.oneOf(["right","left"]),pulse:he.bool,rotation:he.oneOf([0,90,180,270]),shake:he.bool,size:he.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:he.bool,spinPulse:he.bool,spinReverse:he.bool,symbol:he.oneOfType([he.bool,he.string]),title:he.string,titleId:he.string,transform:he.oneOfType([he.string,he.object]),swapOpacity:he.bool};var pne=SU.bind(null,se.createElement);function CU(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=CU(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ce(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=CU(e))&&(r&&(r+=" "),r+=t);return r}var Ux={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var O6;function mne(){return O6||(O6=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],i=0;i<arguments.length;i++){var a=arguments[i];if(a){var o=typeof a;if(o==="string"||o==="number")r.push(a);else if(Array.isArray(a)){if(a.length){var l=n.apply(null,a);l&&r.push(l)}}else if(o==="object"){if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]")){r.push(a.toString());continue}for(var f in a)t.call(a,f)&&a[f]&&r.push(f)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(Ux)),Ux.exports}var vne=mne();const $n=Nt(vne);function C6(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 gne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C6(Object(n),!0).forEach(function(r){yne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function yne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ed(e){"@babel/helpers - typeof";return ed=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},ed(e)}var bne;function Bn(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:bne;return t?e.split(" ").map(function(n){return t[n]||n}).join(" "):e}function _c(e,t){var n={};return Object.keys(e).forEach(function(r){t.indexOf(r)===-1&&(n[r]=e[r])}),n}function EU(e,t){for(var n=Array.isArray(t)?t:[t],r=n.length,i,a={};r>0;)r-=1,i=n[r],a[i]=e[i];return a}var E6={};function UE(e){E6[e]||(typeof console<"u"&&console.error(e),E6[e]=!0)}function wne(e,t){return function(r,i,a){r[i]!==null&&typeof r[i]<"u"&&UE('"'.concat(i,'" property of "').concat(a,`" has been deprecated.
`).concat(t));for(var o=arguments.length,l=new Array(o>3?o-3:0),f=3;f<o;f++)l[f-3]=arguments[f];return e.apply(void 0,[r,i,a].concat(l))}}var _ne=(typeof window>"u"?"undefined":ed(window))==="object"&&window.Element||function(){};function a3(e,t,n){if(!(e[t]instanceof _ne))return new Error("Invalid prop `"+t+"` supplied to `"+n+"`. Expected prop to be an instance of Element. Validation failed.")}var hm=he.oneOfType([he.string,he.func,a3,he.shape({current:he.any})]),Dr=he.oneOfType([he.func,he.string,he.shape({$$typeof:he.symbol,render:he.func}),he.arrayOf(he.oneOfType([he.func,he.string,he.shape({$$typeof:he.symbol,render:he.func})]))]),TU={Fade:150,Collapse:350},m0=["in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","onEnter","onEntering","onEntered","onExit","onExiting","onExited"],vy={ENTERING:"entering",ENTERED:"entered",EXITING:"exiting",EXITED:"exited"},Xt={esc:27,space:32,enter:13,tab:9,up:38,down:40,home:36,end:35,n:78,p:80},xne=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],AU=!!(typeof window<"u"&&window.document&&window.document.createElement);function Sne(e){return e&&ed(e)==="object"?"current"in e:!1}function One(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}function Cne(e){var t=ed(e);return e!=null&&(t==="object"||t==="function")}function Ene(e){if(!Cne(e))return!1;var t=One(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object Proxy]"}function Tne(e){if(Sne(e))return e.current;if(Ene(e))return e();if(typeof e=="string"&&AU){var t=document.querySelectorAll(e);if(t.length||(t=document.querySelectorAll("#".concat(e))),!t.length)throw new Error("The target '".concat(e,"' could not be identified in the dom, tip: check spelling"));return t}return e}function T6(e){return e===null?!1:Array.isArray(e)||AU&&typeof e.length=="number"}function v0(e,t){var n=Tne(e);return t?T6(n)?n:n===null?[]:[n]:T6(n)?n[0]:n}function o3(e,t){if(!e||!t)return t;var n=gne({},t);return Object.keys(e).forEach(function(r){n[r]===void 0&&(n[r]=e[r]),Object.keys(e[r]||{}).length>0&&ed(e[r])==="object"&&o3(e[r],n)}),n}var Ane=["expand","className","cssModule","light","dark","fixed","sticky","color","container","tag","children"];function zE(){return zE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zE.apply(this,arguments)}function zx(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jne(e,t){if(e==null)return{};var n=Pne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Rne={children:he.node,className:he.string,color:he.string,container:he.oneOfType([he.bool,he.string]),cssModule:he.object,dark:he.bool,expand:he.oneOfType([he.bool,he.string]),fixed:he.string,light:he.bool,role:he.string,sticky:he.string,tag:Dr},Mne=function(t){return t===!1?!1:t===!0||t==="xs"?"navbar-expand":"navbar-expand-".concat(t)};function jU(e){var t,n=e.expand,r=n===void 0?!1:n,i=e.className,a=e.cssModule,o=e.light,l=e.dark,f=e.fixed,u=e.sticky,h=e.color,m=e.container,v=m===void 0?"fluid":m,_=e.tag,x=_===void 0?"nav":_,w=e.children,S=jne(e,Ane),O=Bn($n(i,"navbar",Mne(r),(t={"navbar-light":o,"navbar-dark":l},zx(t,"bg-".concat(h),h),zx(t,"fixed-".concat(f),f),zx(t,"sticky-".concat(u),u),t)),a),C=v&&v===!0?"container":"container-".concat(v);return se.createElement(x,zE({},S,{className:O}),v?se.createElement("div",{className:C},w):w)}jU.propTypes=Rne;var Nne=["className","cssModule","tag"];function FE(){return FE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FE.apply(this,arguments)}function Lne(e,t){if(e==null)return{};var n=Dne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Dne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kne={className:he.string,cssModule:he.object,tag:Dr};function PU(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"a":r,a=Lne(e,Nne),o=Bn($n(t,"navbar-brand"),n);return se.createElement(i,FE({},a,{className:o}))}PU.propTypes=kne;var Ine=["className","cssModule","children","tag"];function qE(){return qE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qE.apply(this,arguments)}function A6(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 $ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A6(Object(n),!0).forEach(function(r){Bne(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bne(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Une(e,t){if(e==null)return{};var n=zne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fne={className:he.string,cssModule:he.object,tag:Dr,type:he.string,children:he.node};function RU(e){var t=e.className,n=e.cssModule,r=e.children,i=e.tag,a=i===void 0?"button":i,o=Une(e,Ine),l=Bn($n(t,"navbar-toggler"),n);return se.createElement(a,qE({"aria-label":"Toggle navigation"},$ne({type:"button"},o),{className:l}),r||se.createElement("span",{className:Bn("navbar-toggler-icon",n)}))}RU.propTypes=Fne;var qne=["className","cssModule","tabs","pills","vertical","horizontal","justified","fill","navbar","card","tag"];function VE(){return VE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VE.apply(this,arguments)}function Vne(e,t){if(e==null)return{};var n=Hne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Wne={card:he.bool,className:he.string,cssModule:he.object,fill:he.bool,horizontal:he.oneOf(["center","end"]),justified:he.bool,navbar:he.bool,pills:he.bool,tabs:he.bool,tag:Dr,vertical:he.oneOfType([he.bool,he.string])},Gne=function(t){return t===!1?!1:t===!0||t==="xs"?"flex-column":"flex-".concat(t,"-column")};function MU(e){var t=e.className,n=e.cssModule,r=e.tabs,i=e.pills,a=e.vertical,o=a===void 0?!1:a,l=e.horizontal,f=e.justified,u=e.fill,h=e.navbar,m=e.card,v=e.tag,_=v===void 0?"ul":v,x=Vne(e,qne),w=Bn($n(t,h?"navbar-nav":"nav",l?"justify-content-".concat(l):!1,Gne(o),{"nav-tabs":r,"card-header-tabs":m&&r,"nav-pills":i,"card-header-pills":m&&i,"nav-justified":f,"nav-fill":u}),n);return se.createElement(_,VE({},x,{className:w}))}MU.propTypes=Wne;var Yne=["className","cssModule","active","tag"];function HE(){return HE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HE.apply(this,arguments)}function Kne(e,t){if(e==null)return{};var n=Zne(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Xne={active:he.bool,className:he.string,cssModule:he.object,tag:Dr};function NU(e){var t=e.className,n=e.cssModule,r=e.active,i=e.tag,a=i===void 0?"li":i,o=Kne(e,Yne),l=Bn($n(t,"nav-item",r?"active":!1),n);return se.createElement(a,HE({},o,{className:l}))}NU.propTypes=Xne;function WE(e){"@babel/helpers - typeof";return WE=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},WE(e)}var Qne=["className","cssModule","active","tag","innerRef"];function GE(){return GE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GE.apply(this,arguments)}function Jne(e,t){if(e==null)return{};var n=ere(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ere(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function tre(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nre(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function rre(e,t,n){return t&&nre(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ire(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&YE(e,t)}function YE(e,t){return YE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},YE(e,t)}function are(e){var t=sre();return function(){var r=g0(e),i;if(t){var a=g0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return ore(this,i)}}function ore(e,t){if(t&&(WE(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return LU(e)}function LU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sre(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function g0(e){return g0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},g0(e)}var lre={active:he.bool,className:he.string,cssModule:he.object,disabled:he.bool,href:he.any,innerRef:he.oneOfType([he.object,he.func,he.string]),onClick:he.func,tag:Dr},DU=function(e){ire(n,e);var t=are(n);function n(r){var i;return tre(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(LU(i)),i}return rre(n,[{key:"onClick",value:function(i){if(this.props.disabled){i.preventDefault();return}this.props.href==="#"&&i.preventDefault(),this.props.onClick&&this.props.onClick(i)}},{key:"render",value:function(){var i=this.props,a=i.className,o=i.cssModule,l=i.active,f=i.tag,u=f===void 0?"a":f,h=i.innerRef,m=Jne(i,Qne),v=Bn($n(a,"nav-link",{disabled:m.disabled,active:l}),o);return se.createElement(u,GE({},m,{ref:h,onClick:this.onClick,className:v}))}}]),n}(se.Component);DU.propTypes=lre;var ure=["className","cssModule","variant","innerRef"];function KE(){return KE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KE.apply(this,arguments)}function j6(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 cre(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j6(Object(n),!0).forEach(function(r){fre(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fre(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dre(e,t){if(e==null)return{};var n=hre(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var pre={active:he.bool,"aria-label":he.string,onClick:he.func,variant:he.oneOf(["white"]),className:he.string,cssModule:he.object,innerRef:he.oneOfType([he.object,he.string,he.func])};function kU(e){var t=e.className;e.cssModule;var n=e.variant,r=e.innerRef,i=dre(e,ure),a=Bn($n(t,"btn-close",n&&"btn-close-".concat(n)));return se.createElement("button",KE({ref:r,type:"button",className:a},cre({"aria-label":"close"},i)))}kU.propTypes=pre;var mre=["active","aria-label","block","className","close","cssModule","color","outline","size","tag","innerRef"];function ZE(){return ZE=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZE.apply(this,arguments)}function vre(e,t){if(e==null)return{};var n=gre(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gre(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var yre={active:he.bool,"aria-label":he.string,block:he.bool,children:he.node,className:he.string,cssModule:he.object,close:he.bool,color:he.string,disabled:he.bool,innerRef:he.oneOfType([he.object,he.func,he.string]),onClick:he.func,outline:he.bool,size:he.string,tag:Dr};function IU(e){var t=D.useCallback(function(C){if(e.disabled){C.preventDefault();return}if(e.onClick)return e.onClick(C)},[e.onClick,e.disabled]),n=e.active,r=e["aria-label"],i=e.block,a=e.className,o=e.close,l=e.cssModule,f=e.color,u=f===void 0?"secondary":f,h=e.outline,m=e.size,v=e.tag,_=v===void 0?"button":v,x=e.innerRef,w=vre(e,mre);if(o)return se.createElement(kU,w);var S="btn".concat(h?"-outline":"","-").concat(u),O=Bn($n(a,"btn",S,m?"btn-".concat(m):!1,i?"d-block w-100":!1,{active:n,disabled:e.disabled}),l);return w.href&&_==="button"&&(_="a"),se.createElement(_,ZE({type:_==="button"&&w.onClick?"button":void 0},w,{className:O,ref:x,onClick:t,"aria-label":r}))}IU.propTypes=yre;var $U=D.createContext(),BU=D.createContext();function P6(e){var t=e.children,n=D.useState(null),r=n[0],i=n[1],a=D.useRef(!1);D.useEffect(function(){return function(){a.current=!0}},[]);var o=D.useCallback(function(l){a.current||i(l)},[]);return D.createElement($U.Provider,{value:r},D.createElement(BU.Provider,{value:o},t))}var UU=function(t){return Array.isArray(t)?t[0]:t},zU=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return t.apply(void 0,r)}},XE=function(t,n){if(typeof t=="function")return zU(t,n);t!=null&&(t.current=n)},R6=function(t){return t.reduce(function(n,r){var i=r[0],a=r[1];return n[i]=a,n},{})},M6=typeof window<"u"&&window.document&&window.document.createElement?D.useLayoutEffect:D.useEffect,xc=X9();const kf=Nt(xc);var ii="top",oa="bottom",sa="right",ai="left",s3="auto",_v=[ii,oa,sa,ai],td="start",pm="end",bre="clippingParents",FU="viewport",bp="popper",wre="reference",N6=_v.reduce(function(e,t){return e.concat([t+"-"+td,t+"-"+pm])},[]),qU=[].concat(_v,[s3]).reduce(function(e,t){return e.concat([t,t+"-"+td,t+"-"+pm])},[]),_re="beforeRead",xre="read",Sre="afterRead",Ore="beforeMain",Cre="main",Ere="afterMain",Tre="beforeWrite",Are="write",jre="afterWrite",Pre=[_re,xre,Sre,Ore,Cre,Ere,Tre,Are,jre];function ho(e){return e?(e.nodeName||"").toLowerCase():null}function Li(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function lc(e){var t=Li(e).Element;return e instanceof t||e instanceof Element}function ia(e){var t=Li(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function l3(e){if(typeof ShadowRoot>"u")return!1;var t=Li(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Rre(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!ia(a)||!ho(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(o){var l=i[o];l===!1?a.removeAttribute(o):a.setAttribute(o,l===!0?"":l)}))})}function Mre(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=o.reduce(function(f,u){return f[u]="",f},{});!ia(i)||!ho(i)||(Object.assign(i.style,l),Object.keys(a).forEach(function(f){i.removeAttribute(f)}))})}}const Nre={name:"applyStyles",enabled:!0,phase:"write",fn:Rre,effect:Mre,requires:["computeStyles"]};function so(e){return e.split("-")[0]}var tc=Math.max,y0=Math.min,nd=Math.round;function QE(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function VU(){return!/^((?!chrome|android).)*safari/i.test(QE())}function rd(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&ia(e)&&(i=e.offsetWidth>0&&nd(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&nd(r.height)/e.offsetHeight||1);var o=lc(e)?Li(e):window,l=o.visualViewport,f=!VU()&&n,u=(r.left+(f&&l?l.offsetLeft:0))/i,h=(r.top+(f&&l?l.offsetTop:0))/a,m=r.width/i,v=r.height/a;return{width:m,height:v,top:h,right:u+m,bottom:h+v,left:u,x:u,y:h}}function u3(e){var t=rd(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function HU(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&l3(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function fs(e){return Li(e).getComputedStyle(e)}function Lre(e){return["table","td","th"].indexOf(ho(e))>=0}function Zl(e){return((lc(e)?e.ownerDocument:e.document)||window.document).documentElement}function g1(e){return ho(e)==="html"?e:e.assignedSlot||e.parentNode||(l3(e)?e.host:null)||Zl(e)}function L6(e){return!ia(e)||fs(e).position==="fixed"?null:e.offsetParent}function Dre(e){var t=/firefox/i.test(QE()),n=/Trident/i.test(QE());if(n&&ia(e)){var r=fs(e);if(r.position==="fixed")return null}var i=g1(e);for(l3(i)&&(i=i.host);ia(i)&&["html","body"].indexOf(ho(i))<0;){var a=fs(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function xv(e){for(var t=Li(e),n=L6(e);n&&Lre(n)&&fs(n).position==="static";)n=L6(n);return n&&(ho(n)==="html"||ho(n)==="body"&&fs(n).position==="static")?t:n||Dre(e)||t}function c3(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Kp(e,t,n){return tc(e,y0(t,n))}function kre(e,t,n){var r=Kp(e,t,n);return r>n?n:r}function WU(){return{top:0,right:0,bottom:0,left:0}}function GU(e){return Object.assign({},WU(),e)}function YU(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var Ire=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,GU(typeof t!="number"?t:YU(t,_v))};function $re(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,l=so(n.placement),f=c3(l),u=[ai,sa].indexOf(l)>=0,h=u?"height":"width";if(!(!a||!o)){var m=Ire(i.padding,n),v=u3(a),_=f==="y"?ii:ai,x=f==="y"?oa:sa,w=n.rects.reference[h]+n.rects.reference[f]-o[f]-n.rects.popper[h],S=o[f]-n.rects.reference[f],O=xv(a),C=O?f==="y"?O.clientHeight||0:O.clientWidth||0:0,T=w/2-S/2,j=m[_],P=C-v[h]-m[x],R=C/2-v[h]/2+T,$=Kp(j,R,P),q=f;n.modifiersData[r]=(t={},t[q]=$,t.centerOffset=$-R,t)}}function Bre(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||HU(t.elements.popper,i)&&(t.elements.arrow=i))}const Ure={name:"arrow",enabled:!0,phase:"main",fn:$re,effect:Bre,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function id(e){return e.split("-")[1]}var zre={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fre(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:nd(n*i)/i||0,y:nd(r*i)/i||0}}function D6(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,l=e.position,f=e.gpuAcceleration,u=e.adaptive,h=e.roundOffsets,m=e.isFixed,v=o.x,_=v===void 0?0:v,x=o.y,w=x===void 0?0:x,S=typeof h=="function"?h({x:_,y:w}):{x:_,y:w};_=S.x,w=S.y;var O=o.hasOwnProperty("x"),C=o.hasOwnProperty("y"),T=ai,j=ii,P=window;if(u){var R=xv(n),$="clientHeight",q="clientWidth";if(R===Li(n)&&(R=Zl(n),fs(R).position!=="static"&&l==="absolute"&&($="scrollHeight",q="scrollWidth")),R=R,i===ii||(i===ai||i===sa)&&a===pm){j=oa;var K=m&&R===P&&P.visualViewport?P.visualViewport.height:R[$];w-=K-r.height,w*=f?1:-1}if(i===ai||(i===ii||i===oa)&&a===pm){T=sa;var H=m&&R===P&&P.visualViewport?P.visualViewport.width:R[q];_-=H-r.width,_*=f?1:-1}}var G=Object.assign({position:l},u&&zre),te=h===!0?Fre({x:_,y:w},Li(n)):{x:_,y:w};if(_=te.x,w=te.y,f){var ie;return Object.assign({},G,(ie={},ie[j]=C?"0":"",ie[T]=O?"0":"",ie.transform=(P.devicePixelRatio||1)<=1?"translate("+_+"px, "+w+"px)":"translate3d("+_+"px, "+w+"px, 0)",ie))}return Object.assign({},G,(t={},t[j]=C?w+"px":"",t[T]=O?_+"px":"",t.transform="",t))}function qre(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,o=a===void 0?!0:a,l=n.roundOffsets,f=l===void 0?!0:l,u={placement:so(t.placement),variation:id(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D6(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D6(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const Vre={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:qre,data:{}};var gy={passive:!0};function Hre(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,o=r.resize,l=o===void 0?!0:o,f=Li(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(h){h.addEventListener("scroll",n.update,gy)}),l&&f.addEventListener("resize",n.update,gy),function(){a&&u.forEach(function(h){h.removeEventListener("scroll",n.update,gy)}),l&&f.removeEventListener("resize",n.update,gy)}}const Wre={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Hre,data:{}};var Gre={left:"right",right:"left",bottom:"top",top:"bottom"};function Qy(e){return e.replace(/left|right|bottom|top/g,function(t){return Gre[t]})}var Yre={start:"end",end:"start"};function k6(e){return e.replace(/start|end/g,function(t){return Yre[t]})}function f3(e){var t=Li(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function d3(e){return rd(Zl(e)).left+f3(e).scrollLeft}function Kre(e,t){var n=Li(e),r=Zl(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,l=0,f=0;if(i){a=i.width,o=i.height;var u=VU();(u||!u&&t==="fixed")&&(l=i.offsetLeft,f=i.offsetTop)}return{width:a,height:o,x:l+d3(e),y:f}}function Zre(e){var t,n=Zl(e),r=f3(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=tc(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=tc(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),l=-r.scrollLeft+d3(e),f=-r.scrollTop;return fs(i||n).direction==="rtl"&&(l+=tc(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:o,x:l,y:f}}function h3(e){var t=fs(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function KU(e){return["html","body","#document"].indexOf(ho(e))>=0?e.ownerDocument.body:ia(e)&&h3(e)?e:KU(g1(e))}function Zp(e,t){var n;t===void 0&&(t=[]);var r=KU(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Li(r),o=i?[a].concat(a.visualViewport||[],h3(r)?r:[]):r,l=t.concat(o);return i?l:l.concat(Zp(g1(o)))}function JE(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Xre(e,t){var n=rd(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function I6(e,t,n){return t===FU?JE(Kre(e,n)):lc(t)?Xre(t,n):JE(Zre(Zl(e)))}function Qre(e){var t=Zp(g1(e)),n=["absolute","fixed"].indexOf(fs(e).position)>=0,r=n&&ia(e)?xv(e):e;return lc(r)?t.filter(function(i){return lc(i)&&HU(i,r)&&ho(i)!=="body"}):[]}function Jre(e,t,n,r){var i=t==="clippingParents"?Qre(e):[].concat(t),a=[].concat(i,[n]),o=a[0],l=a.reduce(function(f,u){var h=I6(e,u,r);return f.top=tc(h.top,f.top),f.right=y0(h.right,f.right),f.bottom=y0(h.bottom,f.bottom),f.left=tc(h.left,f.left),f},I6(e,o,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function ZU(e){var t=e.reference,n=e.element,r=e.placement,i=r?so(r):null,a=r?id(r):null,o=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,f;switch(i){case ii:f={x:o,y:t.y-n.height};break;case oa:f={x:o,y:t.y+t.height};break;case sa:f={x:t.x+t.width,y:l};break;case ai:f={x:t.x-n.width,y:l};break;default:f={x:t.x,y:t.y}}var u=i?c3(i):null;if(u!=null){var h=u==="y"?"height":"width";switch(a){case td:f[u]=f[u]-(t[h]/2-n[h]/2);break;case pm:f[u]=f[u]+(t[h]/2-n[h]/2);break}}return f}function mm(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,l=n.boundary,f=l===void 0?bre:l,u=n.rootBoundary,h=u===void 0?FU:u,m=n.elementContext,v=m===void 0?bp:m,_=n.altBoundary,x=_===void 0?!1:_,w=n.padding,S=w===void 0?0:w,O=GU(typeof S!="number"?S:YU(S,_v)),C=v===bp?wre:bp,T=e.rects.popper,j=e.elements[x?C:v],P=Jre(lc(j)?j:j.contextElement||Zl(e.elements.popper),f,h,o),R=rd(e.elements.reference),$=ZU({reference:R,element:T,placement:i}),q=JE(Object.assign({},T,$)),K=v===bp?q:R,H={top:P.top-K.top+O.top,bottom:K.bottom-P.bottom+O.bottom,left:P.left-K.left+O.left,right:K.right-P.right+O.right},G=e.modifiersData.offset;if(v===bp&&G){var te=G[i];Object.keys(H).forEach(function(ie){var X=[sa,oa].indexOf(ie)>=0?1:-1,ee=[ii,oa].indexOf(ie)>=0?"y":"x";H[ie]+=te[ee]*X})}return H}function eie(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,l=n.flipVariations,f=n.allowedAutoPlacements,u=f===void 0?qU:f,h=id(r),m=h?l?N6:N6.filter(function(x){return id(x)===h}):_v,v=m.filter(function(x){return u.indexOf(x)>=0});v.length===0&&(v=m);var _=v.reduce(function(x,w){return x[w]=mm(e,{placement:w,boundary:i,rootBoundary:a,padding:o})[so(w)],x},{});return Object.keys(_).sort(function(x,w){return _[x]-_[w]})}function tie(e){if(so(e)===s3)return[];var t=Qy(e);return[k6(e),t,k6(t)]}function nie(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!0:o,f=n.fallbackPlacements,u=n.padding,h=n.boundary,m=n.rootBoundary,v=n.altBoundary,_=n.flipVariations,x=_===void 0?!0:_,w=n.allowedAutoPlacements,S=t.options.placement,O=so(S),C=O===S,T=f||(C||!x?[Qy(S)]:tie(S)),j=[S].concat(T).reduce(function(ae,de){return ae.concat(so(de)===s3?eie(t,{placement:de,boundary:h,rootBoundary:m,padding:u,flipVariations:x,allowedAutoPlacements:w}):de)},[]),P=t.rects.reference,R=t.rects.popper,$=new Map,q=!0,K=j[0],H=0;H<j.length;H++){var G=j[H],te=so(G),ie=id(G)===td,X=[ii,oa].indexOf(te)>=0,ee=X?"width":"height",W=mm(t,{placement:G,boundary:h,rootBoundary:m,altBoundary:v,padding:u}),B=X?ie?sa:ai:ie?oa:ii;P[ee]>R[ee]&&(B=Qy(B));var U=Qy(B),F=[];if(a&&F.push(W[te]<=0),l&&F.push(W[B]<=0,W[U]<=0),F.every(function(ae){return ae})){K=G,q=!1;break}$.set(G,F)}if(q)for(var M=x?3:1,I=function(de){var fe=j.find(function(be){var z=$.get(be);if(z)return z.slice(0,de).every(function(V){return V})});if(fe)return K=fe,"break"},J=M;J>0;J--){var Y=I(J);if(Y==="break")break}t.placement!==K&&(t.modifiersData[r]._skip=!0,t.placement=K,t.reset=!0)}}const rie={name:"flip",enabled:!0,phase:"main",fn:nie,requiresIfExists:["offset"],data:{_skip:!1}};function $6(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function B6(e){return[ii,sa,oa,ai].some(function(t){return e[t]>=0})}function iie(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=mm(t,{elementContext:"reference"}),l=mm(t,{altBoundary:!0}),f=$6(o,r),u=$6(l,i,a),h=B6(f),m=B6(u);t.modifiersData[n]={referenceClippingOffsets:f,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":m})}const aie={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:iie};function oie(e,t,n){var r=so(e),i=[ai,ii].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,o=a[0],l=a[1];return o=o||0,l=(l||0)*i,[ai,sa].indexOf(r)>=0?{x:l,y:o}:{x:o,y:l}}function sie(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=qU.reduce(function(h,m){return h[m]=oie(m,t.rects,a),h},{}),l=o[t.placement],f=l.x,u=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const lie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:sie};function uie(e){var t=e.state,n=e.name;t.modifiersData[n]=ZU({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const cie={name:"popperOffsets",enabled:!0,phase:"read",fn:uie,data:{}};function fie(e){return e==="x"?"y":"x"}function die(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,o=n.altAxis,l=o===void 0?!1:o,f=n.boundary,u=n.rootBoundary,h=n.altBoundary,m=n.padding,v=n.tether,_=v===void 0?!0:v,x=n.tetherOffset,w=x===void 0?0:x,S=mm(t,{boundary:f,rootBoundary:u,padding:m,altBoundary:h}),O=so(t.placement),C=id(t.placement),T=!C,j=c3(O),P=fie(j),R=t.modifiersData.popperOffsets,$=t.rects.reference,q=t.rects.popper,K=typeof w=="function"?w(Object.assign({},t.rects,{placement:t.placement})):w,H=typeof K=="number"?{mainAxis:K,altAxis:K}:Object.assign({mainAxis:0,altAxis:0},K),G=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,te={x:0,y:0};if(R){if(a){var ie,X=j==="y"?ii:ai,ee=j==="y"?oa:sa,W=j==="y"?"height":"width",B=R[j],U=B+S[X],F=B-S[ee],M=_?-q[W]/2:0,I=C===td?$[W]:q[W],J=C===td?-q[W]:-$[W],Y=t.elements.arrow,ae=_&&Y?u3(Y):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:WU(),fe=de[X],be=de[ee],z=Kp(0,$[W],ae[W]),V=T?$[W]/2-M-z-fe-H.mainAxis:I-z-fe-H.mainAxis,ne=T?-$[W]/2+M+z+be+H.mainAxis:J+z+be+H.mainAxis,ce=t.elements.arrow&&xv(t.elements.arrow),Q=ce?j==="y"?ce.clientTop||0:ce.clientLeft||0:0,le=(ie=G==null?void 0:G[j])!=null?ie:0,pe=B+V-le-Q,ye=B+ne-le,me=Kp(_?y0(U,pe):U,B,_?tc(F,ye):F);R[j]=me,te[j]=me-B}if(l){var xe,Ae=j==="x"?ii:ai,De=j==="x"?oa:sa,ze=R[P],$e=P==="y"?"height":"width",Fe=ze+S[Ae],we=ze-S[De],Se=[ii,ai].indexOf(O)!==-1,ke=(xe=G==null?void 0:G[P])!=null?xe:0,Ne=Se?Fe:ze-$[$e]-q[$e]-ke+H.altAxis,Pe=Se?ze+$[$e]+q[$e]-ke-H.altAxis:we,qe=_&&Se?kre(Ne,ze,Pe):Kp(_?Ne:Fe,ze,_?Pe:we);R[P]=qe,te[P]=qe-ze}t.modifiersData[r]=te}}const hie={name:"preventOverflow",enabled:!0,phase:"main",fn:die,requiresIfExists:["offset"]};function pie(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function mie(e){return e===Li(e)||!ia(e)?f3(e):pie(e)}function vie(e){var t=e.getBoundingClientRect(),n=nd(t.width)/e.offsetWidth||1,r=nd(t.height)/e.offsetHeight||1;return n!==1||r!==1}function gie(e,t,n){n===void 0&&(n=!1);var r=ia(t),i=ia(t)&&vie(t),a=Zl(t),o=rd(e,i,n),l={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(r||!r&&!n)&&((ho(t)!=="body"||h3(a))&&(l=mie(t)),ia(t)?(f=rd(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=d3(a))),{x:o.left+l.scrollLeft-f.x,y:o.top+l.scrollTop-f.y,width:o.width,height:o.height}}function yie(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var o=[].concat(a.requires||[],a.requiresIfExists||[]);o.forEach(function(l){if(!n.has(l)){var f=t.get(l);f&&i(f)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function bie(e){var t=yie(e);return Pre.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function wie(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function _ie(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var U6={placement:"bottom",modifiers:[],strategy:"absolute"};function z6(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function xie(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?U6:i;return function(l,f,u){u===void 0&&(u=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},U6,a),modifiersData:{},elements:{reference:l,popper:f},attributes:{},styles:{}},m=[],v=!1,_={state:h,setOptions:function(O){var C=typeof O=="function"?O(h.options):O;w(),h.options=Object.assign({},a,h.options,C),h.scrollParents={reference:lc(l)?Zp(l):l.contextElement?Zp(l.contextElement):[],popper:Zp(f)};var T=bie(_ie([].concat(r,h.options.modifiers)));return h.orderedModifiers=T.filter(function(j){return j.enabled}),x(),_.update()},forceUpdate:function(){if(!v){var O=h.elements,C=O.reference,T=O.popper;if(z6(C,T)){h.rects={reference:gie(C,xv(T),h.options.strategy==="fixed"),popper:u3(T)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(H){return h.modifiersData[H.name]=Object.assign({},H.data)});for(var j=0;j<h.orderedModifiers.length;j++){if(h.reset===!0){h.reset=!1,j=-1;continue}var P=h.orderedModifiers[j],R=P.fn,$=P.options,q=$===void 0?{}:$,K=P.name;typeof R=="function"&&(h=R({state:h,options:q,name:K,instance:_})||h)}}}},update:wie(function(){return new Promise(function(S){_.forceUpdate(),S(h)})}),destroy:function(){w(),v=!0}};if(!z6(l,f))return _;_.setOptions(u).then(function(S){!v&&u.onFirstUpdate&&u.onFirstUpdate(S)});function x(){h.orderedModifiers.forEach(function(S){var O=S.name,C=S.options,T=C===void 0?{}:C,j=S.effect;if(typeof j=="function"){var P=j({state:h,name:O,instance:_,options:T}),R=function(){};m.push(P||R)}})}function w(){m.forEach(function(S){return S()}),m=[]}return _}}var Sie=[Wre,cie,Vre,Nre,lie,rie,hie,Ure,aie],Oie=xie({defaultModifiers:Sie}),Fx,F6;function Cie(){if(F6)return Fx;F6=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(a,o){if(a===o)return!0;if(a&&o&&typeof a=="object"&&typeof o=="object"){if(a.constructor!==o.constructor)return!1;var l,f,u;if(Array.isArray(a)){if(l=a.length,l!=o.length)return!1;for(f=l;f--!==0;)if(!i(a[f],o[f]))return!1;return!0}var h;if(t&&a instanceof Map&&o instanceof Map){if(a.size!==o.size)return!1;for(h=a.entries();!(f=h.next()).done;)if(!o.has(f.value[0]))return!1;for(h=a.entries();!(f=h.next()).done;)if(!i(f.value[1],o.get(f.value[0])))return!1;return!0}if(n&&a instanceof Set&&o instanceof Set){if(a.size!==o.size)return!1;for(h=a.entries();!(f=h.next()).done;)if(!o.has(f.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(o)){if(l=a.length,l!=o.length)return!1;for(f=l;f--!==0;)if(a[f]!==o[f])return!1;return!0}if(a.constructor===RegExp)return a.source===o.source&&a.flags===o.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof o.valueOf=="function")return a.valueOf()===o.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof o.toString=="function")return a.toString()===o.toString();if(u=Object.keys(a),l=u.length,l!==Object.keys(o).length)return!1;for(f=l;f--!==0;)if(!Object.prototype.hasOwnProperty.call(o,u[f]))return!1;if(e&&a instanceof Element)return!1;for(f=l;f--!==0;)if(!((u[f]==="_owner"||u[f]==="__v"||u[f]==="__o")&&a.$$typeof)&&!i(a[u[f]],o[u[f]]))return!1;return!0}return a!==a&&o!==o}return Fx=function(o,l){try{return i(o,l)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Fx}var Eie=Cie();const Tie=Nt(Eie);var Aie=[],jie=function(t,n,r){r===void 0&&(r={});var i=D.useRef(null),a={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||Aie},o=D.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=o[0],f=o[1],u=D.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(_){var x=_.state,w=Object.keys(x.elements);xc.flushSync(function(){f({styles:R6(w.map(function(S){return[S,x.styles[S]||{}]})),attributes:R6(w.map(function(S){return[S,x.attributes[S]]}))})})},requires:["computeStyles"]}},[]),h=D.useMemo(function(){var v={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[u,{name:"applyStyles",enabled:!1}])};return Tie(i.current,v)?i.current||v:(i.current=v,v)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,u]),m=D.useRef();return M6(function(){m.current&&m.current.setOptions(h)},[h]),M6(function(){if(!(t==null||n==null)){var v=r.createPopper||Oie,_=v(t,n,h);return m.current=_,function(){_.destroy(),m.current=null}}},[t,n,r.createPopper]),{state:m.current?m.current.state:null,styles:l.styles,attributes:l.attributes,update:m.current?m.current.update:null,forceUpdate:m.current?m.current.forceUpdate:null}},Pie=function(){},Rie=function(){return Promise.resolve(null)},Mie=[];function XU(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,i=r===void 0?"absolute":r,a=e.modifiers,o=a===void 0?Mie:a,l=e.referenceElement,f=e.onFirstUpdate,u=e.innerRef,h=e.children,m=D.useContext($U),v=D.useState(null),_=v[0],x=v[1],w=D.useState(null),S=w[0],O=w[1];D.useEffect(function(){XE(u,_)},[u,_]);var C=D.useMemo(function(){return{placement:n,strategy:i,onFirstUpdate:f,modifiers:[].concat(o,[{name:"arrow",enabled:S!=null,options:{element:S}}])}},[n,i,f,o,S]),T=jie(l||m,_,C),j=T.state,P=T.styles,R=T.forceUpdate,$=T.update,q=D.useMemo(function(){return{ref:x,style:P.popper,placement:j?j.placement:n,hasPopperEscaped:j&&j.modifiersData.hide?j.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:j&&j.modifiersData.hide?j.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:P.arrow,ref:O},forceUpdate:R||Pie,update:$||Rie}},[x,O,n,j,P,$,R]);return UU(h)(q)}var qx,q6;function Nie(){if(q6)return qx;q6=1;var e=function(){};return qx=e,qx}var Lie=Nie();const Die=Nt(Lie);function kie(e){var t=e.children,n=e.innerRef,r=D.useContext(BU),i=D.useCallback(function(a){XE(n,a),zU(r,a)},[n,r]);return D.useEffect(function(){return function(){return XE(n,null)}},[]),D.useEffect(function(){Die(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),UU(t)({ref:i})}var vm=se.createContext({}),QU=se.createContext({});function eT(e){"@babel/helpers - typeof";return eT=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},eT(e)}var Iie=["className","cssModule","direction","isOpen","group","size","nav","setActiveFromChild","active","tag","menuRole"];function tT(){return tT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tT.apply(this,arguments)}function bl(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $ie(e,t){if(e==null)return{};var n=Bie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Bie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Uie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zie(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fie(e,t,n){return t&&zie(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function qie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&nT(e,t)}function nT(e,t){return nT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},nT(e,t)}function Vie(e){var t=Wie();return function(){var r=b0(e),i;if(t){var a=b0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Hie(this,i)}}function Hie(e,t){if(t&&(eT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xl(e)}function xl(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Wie(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function b0(e){return b0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},b0(e)}var Gie={a11y:he.bool,disabled:he.bool,direction:he.oneOf(["up","down","start","end","left","right"]),group:he.bool,isOpen:he.bool,nav:he.bool,active:he.bool,size:he.string,tag:Dr,toggle:he.func,children:he.node,className:he.string,cssModule:he.object,dropup:he.bool,inNavbar:he.bool,setActiveFromChild:he.bool,menuRole:he.oneOf(["listbox","menu"])},Yie={a11y:!0,isOpen:!1,direction:"down",nav:!1,active:!1,inNavbar:!1,setActiveFromChild:!1},Kie=[Xt.space,Xt.enter,Xt.up,Xt.down,Xt.end,Xt.home],Da=function(e){qie(n,e);var t=Vie(n);function n(r){var i;return Uie(this,n),i=t.call(this,r),i.addEvents=i.addEvents.bind(xl(i)),i.handleDocumentClick=i.handleDocumentClick.bind(xl(i)),i.handleKeyDown=i.handleKeyDown.bind(xl(i)),i.removeEvents=i.removeEvents.bind(xl(i)),i.toggle=i.toggle.bind(xl(i)),i.handleMenuRef=i.handleMenuRef.bind(xl(i)),i.handleToggleRef=i.handleToggleRef.bind(xl(i)),i.containerRef=se.createRef(),i.menuRef=se.createRef(),i.toggleRef=se.createRef(),i}return Fie(n,[{key:"componentDidMount",value:function(){this.handleProps()}},{key:"componentDidUpdate",value:function(i){this.props.isOpen!==i.isOpen&&this.handleProps()}},{key:"componentWillUnmount",value:function(){this.removeEvents()}},{key:"handleMenuRef",value:function(i){this.menuRef.current=i}},{key:"handleToggleRef",value:function(i){this.toggleRef.current=i}},{key:"handleDocumentClick",value:function(i){if(!(i&&(i.which===3||i.type==="keyup"&&i.which!==Xt.tab))){var a=this.getContainer(),o=this.getMenu(),l=this.getToggle();if(l){var f=l.contains(i.target),u=o&&o.contains(i.target)&&o!==i.target,h=!1;a&&(h=a.classList.contains("input-group")&&a.classList.contains("dropdown")&&i.target.tagName==="INPUT"),!((f&&!h||u)&&(i.type!=="keyup"||i.which===Xt.tab))&&this.toggle(i)}}}},{key:"handleKeyDown",value:function(i){var a=this,o=i.target.getAttribute("role")==="menuitem"||i.target.getAttribute("role")==="option",l=this.getMenuCtrl()===i.target,f=Xt.tab===i.which;if(!(/input|textarea/i.test(i.target.tagName)||f&&!this.props.a11y||f&&!(o||l))&&((Kie.indexOf(i.which)!==-1||i.which>=48&&i.which<=90)&&i.preventDefault(),!this.props.disabled)){if(l)if([Xt.space,Xt.enter,Xt.up,Xt.down].indexOf(i.which)>-1)this.props.isOpen||this.toggle(i),setTimeout(function(){var C;return(C=a.getMenuItems()[0])===null||C===void 0?void 0:C.focus()});else if(this.props.isOpen&&f){var u;i.preventDefault(),(u=this.getMenuItems()[0])===null||u===void 0||u.focus()}else this.props.isOpen&&i.which===Xt.esc&&this.toggle(i);if(this.props.isOpen&&o){if([Xt.tab,Xt.esc].indexOf(i.which)>-1)this.toggle(i),this.getMenuCtrl().focus();else if([Xt.space,Xt.enter].indexOf(i.which)>-1)i.target.click(),this.getMenuCtrl().focus();else if([Xt.down,Xt.up].indexOf(i.which)>-1||[Xt.n,Xt.p].indexOf(i.which)>-1&&i.ctrlKey){var h=this.getMenuItems(),m=h.indexOf(i.target);Xt.up===i.which||Xt.p===i.which&&i.ctrlKey?m=m!==0?m-1:h.length-1:(Xt.down===i.which||Xt.n===i.which&&i.ctrlKey)&&(m=m===h.length-1?0:m+1),h[m].focus()}else if(Xt.end===i.which){var v=this.getMenuItems();v[v.length-1].focus()}else if(Xt.home===i.which){var _=this.getMenuItems();_[0].focus()}else if(i.which>=48&&i.which<=90)for(var x=this.getMenuItems(),w=String.fromCharCode(i.which).toLowerCase(),S=0;S<x.length;S+=1){var O=x[S].textContent&&x[S].textContent[0].toLowerCase();if(O===w){x[S].focus();break}}}}}},{key:"handleProps",value:function(){this.props.isOpen?this.addEvents():this.removeEvents()}},{key:"getContextValue",value:function(){return{toggle:this.toggle,isOpen:this.props.isOpen,direction:this.props.direction==="down"&&this.props.dropup?"up":this.props.direction,inNavbar:this.props.inNavbar,disabled:this.props.disabled,onMenuRef:this.handleMenuRef,onToggleRef:this.handleToggleRef,menuRole:this.props.menuRole}}},{key:"getContainer",value:function(){return this.containerRef.current}},{key:"getMenu",value:function(){return this.menuRef.current}},{key:"getToggle",value:function(){return this.toggleRef.current}},{key:"getMenuCtrl",value:function(){return this._$menuCtrl?this._$menuCtrl:(this._$menuCtrl=this.getToggle(),this._$menuCtrl)}},{key:"getItemType",value:function(){return this.props.menuRole==="listbox"?"option":"menuitem"}},{key:"getMenuItems",value:function(){var i=this.getMenu()||this.getContainer();return[].slice.call(i.querySelectorAll('[role="'.concat(this.getItemType(),'"]')))}},{key:"addEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(a){return document.addEventListener(a,i.handleDocumentClick,!0)})}},{key:"removeEvents",value:function(){var i=this;["click","touchstart","keyup"].forEach(function(a){return document.removeEventListener(a,i.handleDocumentClick,!0)})}},{key:"toggle",value:function(i){return this.props.disabled?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i,a=this,o=_c(this.props,["toggle","disabled","inNavbar","a11y"]),l=o.className,f=o.cssModule,u=o.direction,h=o.isOpen,m=o.group,v=o.size,_=o.nav,x=o.setActiveFromChild,w=o.active,S=o.tag;o.menuRole;var O=$ie(o,Iie),C=S||(_?"li":"div"),T=!1;x&&se.Children.map(this.props.children[1].props.children,function(P){P&&P.props.active&&(T=!0)});var j=Bn($n(l,_&&w?"active":!1,x&&T?"active":!1,(i={"btn-group":m},bl(i,"btn-group-".concat(v),!!v),bl(i,"dropdown",!m),bl(i,"dropup",u==="up"),bl(i,"dropstart",u==="start"||u==="left"),bl(i,"dropend",u==="end"||u==="right"),bl(i,"show",h),bl(i,"nav-item",_),i)),f);return this.context.insideInputGroup?se.createElement(vm.Provider,{value:this.getContextValue()},se.createElement(P6,null,se.Children.map(this.props.children,function(P){return se.cloneElement(P,{onKeyDown:a.handleKeyDown})}))):se.createElement(vm.Provider,{value:this.getContextValue()},se.createElement(P6,null,se.createElement(C,tT({},O,bl({},typeof C=="string"?"ref":"innerRef",this.containerRef),{onKeyDown:this.handleKeyDown,className:j}))))}}]),n}(se.Component);Da.propTypes=Gie;Da.defaultProps=Yie;Da.contextType=QU;function rT(e){"@babel/helpers - typeof";return rT=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},rT(e)}var Zie=["className","cssModule","divider","tag","header","active","text"];function iT(){return iT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},iT.apply(this,arguments)}function Xie(e,t){if(e==null)return{};var n=Qie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qie(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Jie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function tae(e,t,n){return t&&eae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&aT(e,t)}function aT(e,t){return aT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},aT(e,t)}function rae(e){var t=aae();return function(){var r=w0(e),i;if(t){var a=w0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return iae(this,i)}}function iae(e,t){if(t&&(rT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oT(e)}function oT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function w0(e){return w0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},w0(e)}var oae={children:he.node,active:he.bool,disabled:he.bool,divider:he.bool,tag:Dr,header:he.bool,onClick:he.func,className:he.string,cssModule:he.object,toggle:he.bool,text:he.bool},Je=function(e){nae(n,e);var t=rae(n);function n(r){var i;return Jie(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(oT(i)),i.getTabIndex=i.getTabIndex.bind(oT(i)),i}return tae(n,[{key:"onClick",value:function(i){var a,o=this.props,l=o.disabled,f=o.header,u=o.divider,h=o.text;if(l||f||u||h){i.preventDefault();return}this.props.onClick&&this.props.onClick(i),(!((a=this.props.toggle)!==null&&a!==void 0)||a)&&this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"option":"menuitem"}},{key:"getTabIndex",value:function(){var i=this.props,a=i.disabled,o=i.header,l=i.divider,f=i.text;return a||o||l||f?"-1":"0"}},{key:"render",value:function(){var i=this.getTabIndex(),a=i>-1?this.getRole():void 0,o=_c(this.props,["toggle"]),l=o.className,f=o.cssModule,u=o.divider,h=o.tag,m=h===void 0?"button":h,v=o.header,_=o.active,x=o.text,w=Xie(o,Zie),S=Bn($n(l,{disabled:w.disabled,"dropdown-item":!u&&!v&&!x,active:_,"dropdown-header":v,"dropdown-divider":u,"dropdown-item-text":x}),f);return m==="button"&&(v?m="h6":u?m="div":w.href?m="a":x&&(m="span")),se.createElement(m,iT({type:m==="button"&&(w.onClick||this.props.toggle)?"button":void 0},w,{tabIndex:i,role:a,className:S,onClick:this.onClick}))}}]),n}(se.Component);Je.propTypes=oae;Je.contextType=vm;function sT(e){"@babel/helpers - typeof";return sT=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},sT(e)}var sae=["className","cssModule","dark","end","right","tag","flip","modifiers","persist","strategy","container","updateOnSelect"];function _0(){return _0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_0.apply(this,arguments)}function V6(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 Vx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V6(Object(n),!0).forEach(function(r){lae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function lae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uae(e){return hae(e)||dae(e)||fae(e)||cae()}function cae(){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 fae(e,t){if(e){if(typeof e=="string")return lT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lT(e,t)}}function dae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hae(e){if(Array.isArray(e))return lT(e)}function lT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pae(e,t){if(e==null)return{};var n=mae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function vae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function yae(e,t,n){return t&&gae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function bae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uT(e,t)}function uT(e,t){return uT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uT(e,t)}function wae(e){var t=Sae();return function(){var r=x0(e),i;if(t){var a=x0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return _ae(this,i)}}function _ae(e,t){if(t&&(sT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xae(e)}function xae(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Sae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function x0(e){return x0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},x0(e)}var Oae={tag:Dr,children:he.node.isRequired,dark:he.bool,end:he.bool,flip:he.bool,modifiers:he.array,className:he.string,cssModule:he.object,style:he.object,persist:he.bool,strategy:he.string,container:hm,updateOnSelect:he.bool,right:wne(he.bool,'Please use "end" instead.')},Cae={up:"top",left:"left",right:"right",start:"left",end:"right",down:"bottom"},Xl=function(e){bae(n,e);var t=wae(n);function n(){return vae(this,n),t.apply(this,arguments)}return yae(n,[{key:"getRole",value:function(){return this.context.menuRole==="listbox"?"listbox":"menu"}},{key:"render",value:function(){var i=this,a=this.props,o=a.className,l=a.cssModule,f=a.dark,u=a.end,h=a.right,m=a.tag,v=m===void 0?"div":m,_=a.flip,x=_===void 0?!0:_,w=a.modifiers,S=w===void 0?[]:w,O=a.persist,C=a.strategy,T=a.container,j=a.updateOnSelect,P=pae(a,sae),R=Bn($n(o,"dropdown-menu",{"dropdown-menu-dark":f,"dropdown-menu-end":u||h,show:this.context.isOpen}),l),$=v;if(O||this.context.isOpen&&!this.context.inNavbar){var q=Cae[this.context.direction]||"bottom",K=u||h?"end":"start",H="".concat(q,"-").concat(K),G=[].concat(uae(S),[{name:"flip",enabled:!!x}]),te={};O&&(te.display="block",te.visibility=this.context.isOpen?"visible":"hidden");var ie=se.createElement(XU,{placement:H,modifiers:G,strategy:C},function(ee){var W=ee.ref,B=ee.style,U=ee.placement,F=ee.update,M=Vx(Vx(Vx({},i.props.style),te),B),I=function(Y){W(Y);var ae=i.context.onMenuRef;ae&&ae(Y)};return se.createElement($,_0({tabIndex:"-1",role:i.getRole(),ref:I},P,{style:M,"aria-hidden":!i.context.isOpen,className:R,"data-popper-placement":U,onClick:function(){return j&&F()}}))});return T?kf.createPortal(ie,v0(T)):ie}var X=this.context.onMenuRef;return se.createElement($,_0({tabIndex:"-1",role:this.getRole()},P,{ref:X,"aria-hidden":!this.context.isOpen,className:R,"data-popper-placement":P.placement,"data-bs-popper":"static"}))}}]),n}(se.Component);Xl.propTypes=Oae;Xl.contextType=vm;function cT(e){"@babel/helpers - typeof";return cT=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},cT(e)}var Eae=["className","color","cssModule","caret","split","nav","tag","innerRef"];function fT(){return fT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fT.apply(this,arguments)}function Tae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Aae(e,t){if(e==null)return{};var n=jae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Pae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Mae(e,t,n){return t&&Rae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Nae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dT(e,t)}function dT(e,t){return dT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dT(e,t)}function Lae(e){var t=kae();return function(){var r=S0(e),i;if(t){var a=S0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Dae(this,i)}}function Dae(e,t){if(t&&(cT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return JU(e)}function JU(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function kae(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function S0(e){return S0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S0(e)}var Iae={caret:he.bool,color:he.string,children:he.node,className:he.string,cssModule:he.object,disabled:he.bool,onClick:he.func,"aria-haspopup":he.bool,split:he.bool,tag:Dr,nav:he.bool,innerRef:he.oneOfType([he.object,he.string,he.func])},$ae={color:"secondary","aria-haspopup":!0},ys=function(e){Nae(n,e);var t=Lae(n);function n(r){var i;return Pae(this,n),i=t.call(this,r),i.onClick=i.onClick.bind(JU(i)),i}return Mae(n,[{key:"onClick",value:function(i){if(this.props.disabled||this.context.disabled){i.preventDefault();return}this.props.nav&&!this.props.tag&&i.preventDefault(),this.props.onClick&&this.props.onClick(i),this.context.toggle(i)}},{key:"getRole",value:function(){return this.context.menuRole||this.props["aria-haspopup"]}},{key:"render",value:function(){var i=this,a=this.props,o=a.className,l=a.color,f=a.cssModule,u=a.caret,h=a.split,m=a.nav,v=a.tag,_=a.innerRef,x=Aae(a,Eae),w=x["aria-label"]||"Toggle Dropdown",S=Bn($n(o,{"dropdown-toggle":u||h,"dropdown-toggle-split":h,"nav-link":m}),f),O=typeof x.children<"u"?x.children:se.createElement("span",{className:"visually-hidden"},w),C;m&&!v?(C="a",x.href="#"):v?C=v:(C=IU,x.color=l,x.cssModule=f);var T=function(P){var R=P.ref,$=function(K){R(K);var H=i.context.onToggleRef;H&&H(K)};return se.createElement(C,fT({},x,Tae({},typeof C=="string"?"ref":"innerRef",$),{className:S,onClick:i.onClick,"aria-expanded":i.context.isOpen,"aria-haspopup":i.getRole(),children:O}))};return this.context.inNavbar?se.createElement(se.Fragment,null,T({ref:this.context.onToggleRef})):se.createElement(kie,{innerRef:_},T)}}]),n}(se.Component);ys.propTypes=Iae;ys.defaultProps=$ae;ys.contextType=vm;function Bae(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 hT(e,t){return hT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},hT(e,t)}function Uae(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hT(e,t)}const H6={disabled:!1},ez=se.createContext(null);var zae=function(t){return t.scrollTop},Lp="unmounted",Bu="exited",Uu="entering",Rf="entered",pT="exiting",oi=function(e){Uae(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var o=i,l=o&&!o.isMounting?r.enter:r.appear,f;return a.appearStatus=null,r.in?l?(f=Bu,a.appearStatus=Uu):f=Rf:r.unmountOnExit||r.mountOnEnter?f=Lp:f=Bu,a.state={status:f},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var o=i.in;return o&&a.status===Lp?{status:Bu}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==Uu&&o!==Rf&&(a=Uu):(o===Uu||o===Rf)&&(a=pT)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,o,l;return a=o=l=i,i!=null&&typeof i!="number"&&(a=i.exit,o=i.enter,l=i.appear!==void 0?i.appear:o),{exit:a,enter:o,appear:l}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Uu){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:kf.findDOMNode(this);o&&zae(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Bu&&this.setState({status:Lp})},n.performEnter=function(i){var a=this,o=this.props.enter,l=this.context?this.context.isMounting:i,f=this.props.nodeRef?[l]:[kf.findDOMNode(this),l],u=f[0],h=f[1],m=this.getTimeouts(),v=l?m.appear:m.enter;if(!i&&!o||H6.disabled){this.safeSetState({status:Rf},function(){a.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:Uu},function(){a.props.onEntering(u,h),a.onTransitionEnd(v,function(){a.safeSetState({status:Rf},function(){a.props.onEntered(u,h)})})})},n.performExit=function(){var i=this,a=this.props.exit,o=this.getTimeouts(),l=this.props.nodeRef?void 0:kf.findDOMNode(this);if(!a||H6.disabled){this.safeSetState({status:Bu},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:pT},function(){i.props.onExiting(l),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:Bu},function(){i.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,o=!0;return this.nextCallback=function(l){o&&(o=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var o=this.props.nodeRef?this.props.nodeRef.current:kf.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!o||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=f[0],h=f[1];this.props.addEndListener(u,h)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===Lp)return null;var a=this.props,o=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=Bae(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return se.createElement(ez.Provider,{value:null},typeof o=="function"?o(i,l):se.cloneElement(se.Children.only(o),l))},t}(se.Component);oi.contextType=ez;oi.propTypes={};function wf(){}oi.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wf,onEntering:wf,onEntered:wf,onExit:wf,onExiting:wf,onExited:wf};oi.UNMOUNTED=Lp;oi.EXITED=Bu;oi.ENTERING=Uu;oi.ENTERED=Rf;oi.EXITING=pT;var Fae=["tag","baseClass","baseClassActive","className","cssModule","children","innerRef"];function O0(){return O0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},O0.apply(this,arguments)}function qae(e,t){if(e==null)return{};var n=Vae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function W6(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 gm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?W6(Object(n),!0).forEach(function(r){Hae(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hae(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wae=gm(gm({},oi.propTypes),{},{children:he.oneOfType([he.arrayOf(he.node),he.node]),tag:Dr,baseClass:he.string,baseClassActive:he.string,className:he.string,cssModule:he.object,innerRef:he.oneOfType([he.object,he.string,he.func])}),G6=gm(gm({},oi.defaultProps),{},{timeout:TU.Fade,appear:!0,enter:!0,exit:!0,in:!0});function ym(e){var t=D.useRef(null),n=o3(G6,e),r=n.tag,i=r===void 0?"div":r,a=n.baseClass,o=a===void 0?"fade":a,l=n.baseClassActive,f=l===void 0?"show":l,u=n.className,h=n.cssModule,m=n.children,v=n.innerRef,_=v===void 0?t:v,x=qae(n,Fae),w=EU(gm({defaultProps:G6},x),m0),S=_c(x,m0);return se.createElement(oi,O0({nodeRef:_},w),function(O){var C=O==="entered",T=Bn($n(u,o,C&&f),h);return se.createElement(i,O0({className:T},S,{ref:_}),m)})}ym.propTypes=Wae;function mT(e){"@babel/helpers - typeof";return mT=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},mT(e)}var Gae=["tag","horizontal","isOpen","className","navbar","cssModule","children","innerRef"],_f;function C0(){return C0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C0.apply(this,arguments)}function Yae(e,t){if(e==null)return{};var n=Kae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Kae(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Zae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qae(e,t,n){return t&&Xae(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Jae(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&vT(e,t)}function vT(e,t){return vT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},vT(e,t)}function eoe(e){var t=noe();return function(){var r=E0(e),i;if(t){var a=E0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return toe(this,i)}}function toe(e,t){if(t&&(mT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tz(e)}function tz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function noe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function E0(e){return E0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},E0(e)}function Y6(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 ad(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y6(Object(n),!0).forEach(function(r){If(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function If(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var roe=ad(ad({},oi.propTypes),{},{horizontal:he.bool,isOpen:he.bool,children:he.oneOfType([he.arrayOf(he.node),he.node]),tag:Dr,className:he.node,navbar:he.bool,cssModule:he.object,innerRef:he.shape({current:he.object})}),ioe=ad(ad({},oi.defaultProps),{},{horizontal:!1,isOpen:!1,appear:!1,enter:!0,exit:!0,tag:"div",timeout:TU.Collapse}),aoe=(_f={},If(_f,vy.ENTERING,"collapsing"),If(_f,vy.ENTERED,"collapse show"),If(_f,vy.EXITING,"collapsing"),If(_f,vy.EXITED,"collapse"),_f);function ooe(e){return aoe[e]||"collapse"}var p3=function(e){Jae(n,e);var t=eoe(n);function n(r){var i;return Zae(this,n),i=t.call(this,r),i.state={dimension:null},i.nodeRef=r.innerRef||se.createRef(),["onEntering","onEntered","onExit","onExiting","onExited"].forEach(function(a){i[a]=i[a].bind(tz(i))}),i}return Qae(n,[{key:"onEntering",value:function(i,a){var o=this.getNode();this.setState({dimension:this.getDimension(o)}),this.props.onEntering(o,a)}},{key:"onEntered",value:function(i,a){var o=this.getNode();this.setState({dimension:null}),this.props.onEntered(o,a)}},{key:"onExit",value:function(){var i=this.getNode();this.setState({dimension:this.getDimension(i)}),this.props.onExit(i)}},{key:"onExiting",value:function(){var i=this.getNode();this.getDimension(i),this.setState({dimension:0}),this.props.onExiting(i)}},{key:"onExited",value:function(){var i=this.getNode();this.setState({dimension:null}),this.props.onExited(i)}},{key:"getNode",value:function(){return this.nodeRef.current}},{key:"getDimension",value:function(i){return this.props.horizontal?i.scrollWidth:i.scrollHeight}},{key:"render",value:function(){var i=this,a=this.props,o=a.tag,l=a.horizontal,f=a.isOpen,u=a.className,h=a.navbar,m=a.cssModule,v=a.children;a.innerRef;var _=Yae(a,Gae),x=this.state.dimension,w=EU(_,m0),S=_c(_,m0);return se.createElement(oi,C0({},w,{in:f,nodeRef:this.nodeRef,onEntering:this.onEntering,onEntered:this.onEntered,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}),function(O){var C=ooe(O),T=Bn($n(u,l&&"collapse-horizontal",C,h&&"navbar-collapse"),m),j=x===null?null:If({},l?"width":"height",x);return se.createElement(o,C0({},S,{style:ad(ad({},S.style),j),className:T,ref:i.nodeRef}),v)})}}]),n}(D.Component);p3.propTypes=roe;p3.defaultProps=ioe;function gT(e){"@babel/helpers - typeof";return gT=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},gT(e)}var soe=["cssModule","children","isOpen","flip","target","offset","fallbackPlacements","placementPrefix","arrowClassName","hideArrow","popperClassName","tag","container","modifiers","strategy","boundariesElement","onClosed","fade","transition","placement"];function yT(){return yT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yT.apply(this,arguments)}function K6(e){return foe(e)||coe(e)||uoe(e)||loe()}function loe(){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 uoe(e,t){if(e){if(typeof e=="string")return bT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return bT(e,t)}}function coe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function foe(e){if(Array.isArray(e))return bT(e)}function bT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function doe(e,t){if(e==null)return{};var n=hoe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function poe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Z6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function moe(e,t,n){return t&&Z6(e.prototype,t),n&&Z6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function voe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&wT(e,t)}function wT(e,t){return wT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wT(e,t)}function goe(e){var t=boe();return function(){var r=T0(e),i;if(t){var a=T0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return yoe(this,i)}}function yoe(e,t){if(t&&(gT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Dp(e)}function Dp(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function boe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function T0(e){return T0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},T0(e)}function X6(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 Jy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X6(Object(n),!0).forEach(function(r){woe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function woe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _oe(){}var xoe={children:he.oneOfType([he.node,he.func]).isRequired,popperClassName:he.string,placement:he.string,placementPrefix:he.string,arrowClassName:he.string,hideArrow:he.bool,tag:Dr,isOpen:he.bool,cssModule:he.object,offset:he.arrayOf(he.number),fallbackPlacements:he.array,flip:he.bool,container:hm,target:hm.isRequired,modifiers:he.array,strategy:he.string,boundariesElement:he.oneOfType([he.string,a3]),onClosed:he.func,fade:he.bool,transition:he.shape(ym.propTypes)},Soe={boundariesElement:"scrollParent",placement:"auto",hideArrow:!1,isOpen:!1,offset:[0,0],flip:!0,container:"body",modifiers:[],onClosed:_oe,fade:!0,transition:Jy({},ym.defaultProps)},m3=function(e){voe(n,e);var t=goe(n);function n(r){var i;return poe(this,n),i=t.call(this,r),i.setTargetNode=i.setTargetNode.bind(Dp(i)),i.getTargetNode=i.getTargetNode.bind(Dp(i)),i.getRef=i.getRef.bind(Dp(i)),i.onClosed=i.onClosed.bind(Dp(i)),i.state={isOpen:r.isOpen},i}return moe(n,[{key:"componentDidUpdate",value:function(){this._element&&this._element.childNodes&&this._element.childNodes[0]&&this._element.childNodes[0].focus&&this._element.childNodes[0].focus()}},{key:"onClosed",value:function(){this.props.onClosed(),this.setState({isOpen:!1})}},{key:"getTargetNode",value:function(){return this.targetNode}},{key:"getContainerNode",value:function(){return v0(this.props.container)}},{key:"getRef",value:function(i){this._element=i}},{key:"setTargetNode",value:function(i){this.targetNode=typeof i=="string"?v0(i):i}},{key:"renderChildren",value:function(){var i=this.props,a=i.cssModule,o=i.children,l=i.isOpen,f=i.flip;i.target;var u=i.offset,h=i.fallbackPlacements,m=i.placementPrefix,v=i.arrowClassName,_=i.hideArrow,x=i.popperClassName,w=i.tag;i.container;var S=i.modifiers,O=i.strategy,C=i.boundariesElement;i.onClosed;var T=i.fade,j=i.transition,P=i.placement,R=doe(i,soe),$=Bn($n("arrow",v),a),q=Bn($n(x,m?"".concat(m,"-auto"):""),this.props.cssModule),K=S.map(function(ie){return ie.name}),H=[{name:"offset",options:{offset:u}},{name:"flip",enabled:f,options:{fallbackPlacements:h}},{name:"preventOverflow",options:{boundary:C}}].filter(function(ie){return!K.includes(ie.name)}),G=[].concat(K6(H),K6(S)),te=Jy(Jy(Jy({},ym.defaultProps),j),{},{baseClass:T?j.baseClass:"",timeout:T?j.timeout:0});return se.createElement(ym,yT({},te,R,{in:l,onExited:this.onClosed,tag:w}),se.createElement(XU,{referenceElement:this.targetNode,modifiers:G,placement:P,strategy:O},function(ie){var X=ie.ref,ee=ie.style,W=ie.placement,B=ie.isReferenceHidden,U=ie.arrowProps,F=ie.update;return se.createElement("div",{ref:X,style:ee,className:q,"data-popper-placement":W,"data-popper-reference-hidden":B?"true":void 0},typeof o=="function"?o({update:F}):o,!_&&se.createElement("span",{ref:U.ref,className:$,style:U.style}))}))}},{key:"render",value:function(){return this.setTargetNode(this.props.target),this.state.isOpen?this.props.container==="inline"?this.renderChildren():kf.createPortal(se.createElement("div",{ref:this.getRef},this.renderChildren()),this.getContainerNode()):null}}],[{key:"getDerivedStateFromProps",value:function(i,a){return i.isOpen&&!a.isOpen?{isOpen:i.isOpen}:null}}]),n}(se.Component);m3.propTypes=xoe;m3.defaultProps=Soe;function _T(){return _T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_T.apply(this,arguments)}function bm(e){"@babel/helpers - typeof";return bm=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},bm(e)}function Ooe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q6(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Coe(e,t,n){return t&&Q6(e.prototype,t),n&&Q6(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Eoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xT(e,t)}function xT(e,t){return xT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},xT(e,t)}function Toe(e){var t=joe();return function(){var r=A0(e),i;if(t){var a=A0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Aoe(this,i)}}function Aoe(e,t){if(t&&(bm(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _i(e)}function _i(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function joe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function A0(e){return A0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},A0(e)}var v3={children:he.oneOfType([he.node,he.func]),placement:he.oneOf(xne),target:hm.isRequired,container:hm,isOpen:he.bool,disabled:he.bool,hideArrow:he.bool,boundariesElement:he.oneOfType([he.string,a3]),className:he.string,innerClassName:he.string,arrowClassName:he.string,popperClassName:he.string,cssModule:he.object,toggle:he.func,autohide:he.bool,placementPrefix:he.string,delay:he.oneOfType([he.shape({show:he.number,hide:he.number}),he.number]),modifiers:he.array,strategy:he.string,offset:he.arrayOf(he.number),innerRef:he.oneOfType([he.func,he.string,he.object]),trigger:he.string,fade:he.bool,flip:he.bool},nz={show:0,hide:50},Poe={isOpen:!1,hideArrow:!1,autohide:!1,delay:nz,toggle:function(){},trigger:"click",fade:!0};function rz(e,t){return t&&(e===t||t.contains(e))}function J6(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return t&&t.length&&t.filter(function(n){return rz(e,n)})[0]}var g3=function(e){Eoe(n,e);var t=Toe(n);function n(r){var i;return Ooe(this,n),i=t.call(this,r),i._targets=[],i.currentTargetElement=null,i.addTargetEvents=i.addTargetEvents.bind(_i(i)),i.handleDocumentClick=i.handleDocumentClick.bind(_i(i)),i.removeTargetEvents=i.removeTargetEvents.bind(_i(i)),i.toggle=i.toggle.bind(_i(i)),i.showWithDelay=i.showWithDelay.bind(_i(i)),i.hideWithDelay=i.hideWithDelay.bind(_i(i)),i.onMouseOverTooltipContent=i.onMouseOverTooltipContent.bind(_i(i)),i.onMouseLeaveTooltipContent=i.onMouseLeaveTooltipContent.bind(_i(i)),i.show=i.show.bind(_i(i)),i.hide=i.hide.bind(_i(i)),i.onEscKeyDown=i.onEscKeyDown.bind(_i(i)),i.getRef=i.getRef.bind(_i(i)),i.state={isOpen:r.isOpen},i._isMounted=!1,i}return Coe(n,[{key:"componentDidMount",value:function(){this._isMounted=!0,this.updateTarget()}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.removeTargetEvents(),this._targets=null,this.clearShowTimeout(),this.clearHideTimeout()}},{key:"handleDocumentClick",value:function(i){var a=this.props.trigger.split(" ");a.indexOf("legacy")>-1&&(this.props.isOpen||J6(i.target,this._targets))?(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen&&!rz(i.target,this._popover)?this.hideWithDelay(i):this.props.isOpen||this.showWithDelay(i)):a.indexOf("click")>-1&&J6(i.target,this._targets)&&(this._hideTimeout&&this.clearHideTimeout(),this.props.isOpen?this.hideWithDelay(i):this.showWithDelay(i))}},{key:"onMouseOverTooltipContent",value:function(){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._hideTimeout&&this.clearHideTimeout(),this.state.isOpen&&!this.props.isOpen&&this.toggle())}},{key:"onMouseLeaveTooltipContent",value:function(i){this.props.trigger.indexOf("hover")>-1&&!this.props.autohide&&(this._showTimeout&&this.clearShowTimeout(),i.persist(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide")))}},{key:"onEscKeyDown",value:function(i){i.key==="Escape"&&this.hide(i)}},{key:"getRef",value:function(i){var a=this.props.innerRef;a&&(typeof a=="function"?a(i):bm(a)==="object"&&(a.current=i)),this._popover=i}},{key:"getDelay",value:function(i){var a=this.props.delay;return bm(a)==="object"?isNaN(a[i])?nz[i]:a[i]:a}},{key:"getCurrentTarget",value:function(i){if(!i)return null;var a=this._targets.indexOf(i);return a>=0?this._targets[a]:this.getCurrentTarget(i.parentElement)}},{key:"show",value:function(i){if(!this.props.isOpen){if(this.clearShowTimeout(),this.currentTargetElement=i?i.currentTarget||this.getCurrentTarget(i.target):null,i&&i.composedPath&&typeof i.composedPath=="function"){var a=i.composedPath();this.currentTargetElement=a&&a[0]||this.currentTargetElement}this.toggle(i)}}},{key:"showWithDelay",value:function(i){this._hideTimeout&&this.clearHideTimeout(),this._showTimeout=setTimeout(this.show.bind(this,i),this.getDelay("show"))}},{key:"hide",value:function(i){this.props.isOpen&&(this.clearHideTimeout(),this.currentTargetElement=null,this.toggle(i))}},{key:"hideWithDelay",value:function(i){this._showTimeout&&this.clearShowTimeout(),this._hideTimeout=setTimeout(this.hide.bind(this,i),this.getDelay("hide"))}},{key:"clearShowTimeout",value:function(){clearTimeout(this._showTimeout),this._showTimeout=void 0}},{key:"clearHideTimeout",value:function(){clearTimeout(this._hideTimeout),this._hideTimeout=void 0}},{key:"addEventOnTargets",value:function(i,a,o){this._targets.forEach(function(l){l.addEventListener(i,a,o)})}},{key:"removeEventOnTargets",value:function(i,a,o){this._targets.forEach(function(l){l.removeEventListener(i,a,o)})}},{key:"addTargetEvents",value:function(){if(this.props.trigger){var i=this.props.trigger.split(" ");i.indexOf("manual")===-1&&((i.indexOf("click")>-1||i.indexOf("legacy")>-1)&&document.addEventListener("click",this.handleDocumentClick,!0),this._targets&&this._targets.length&&(i.indexOf("hover")>-1&&(this.addEventOnTargets("mouseover",this.showWithDelay,!0),this.addEventOnTargets("mouseout",this.hideWithDelay,!0)),i.indexOf("focus")>-1&&(this.addEventOnTargets("focusin",this.show,!0),this.addEventOnTargets("focusout",this.hide,!0)),this.addEventOnTargets("keydown",this.onEscKeyDown,!0)))}}},{key:"removeTargetEvents",value:function(){this._targets&&(this.removeEventOnTargets("mouseover",this.showWithDelay,!0),this.removeEventOnTargets("mouseout",this.hideWithDelay,!0),this.removeEventOnTargets("keydown",this.onEscKeyDown,!0),this.removeEventOnTargets("focusin",this.show,!0),this.removeEventOnTargets("focusout",this.hide,!0)),document.removeEventListener("click",this.handleDocumentClick,!0)}},{key:"updateTarget",value:function(){var i=v0(this.props.target,!0);i!==this._targets&&(this.removeTargetEvents(),this._targets=i?Array.from(i):[],this.currentTargetElement=this.currentTargetElement||this._targets[0],this.addTargetEvents())}},{key:"toggle",value:function(i){return this.props.disabled||!this._isMounted?i&&i.preventDefault():this.props.toggle(i)}},{key:"render",value:function(){var i=this;this.props.isOpen&&this.updateTarget();var a=this.currentTargetElement||this._targets[0];if(!a)return null;var o=this.props,l=o.className,f=o.cssModule,u=o.innerClassName,h=o.isOpen,m=o.hideArrow,v=o.boundariesElement,_=o.placement,x=o.placementPrefix,w=o.arrowClassName,S=o.popperClassName,O=o.container,C=o.modifiers,T=o.strategy,j=o.offset,P=o.fade,R=o.flip,$=o.children,q=_c(this.props,Object.keys(v3)),K=Bn(S,f),H=Bn(u,f);return se.createElement(m3,{className:l,target:a,isOpen:h,hideArrow:m,boundariesElement:v,placement:_,placementPrefix:x,arrowClassName:w,popperClassName:K,container:O,modifiers:C,strategy:T,offset:j,cssModule:f,fade:P,flip:R},function(G){var te=G.update;return se.createElement("div",_T({},q,{ref:i.getRef,className:H,role:"tooltip",onMouseOver:i.onMouseOverTooltipContent,onMouseLeave:i.onMouseLeaveTooltipContent,onKeyDown:i.onEscKeyDown}),typeof $=="function"?$({update:te}):$)})}}],[{key:"getDerivedStateFromProps",value:function(i,a){return i.isOpen&&!a.isOpen?{isOpen:i.isOpen}:null}}]),n}(se.Component);g3.propTypes=v3;g3.defaultProps=Poe;function ST(){return ST=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ST.apply(this,arguments)}var Roe={placement:"top",autohide:!0,placementPrefix:"bs-tooltip",trigger:"hover focus"};function y3(e){var t=$n("tooltip-arrow",e.arrowClassName),n=$n("tooltip","show",e.popperClassName),r=$n("tooltip-inner",e.innerClassName),i=o3(Roe,e);return se.createElement(g3,ST({},i,{arrowClassName:t,popperClassName:n,innerClassName:r}))}y3.propTypes=v3;function OT(e){"@babel/helpers - typeof";return OT=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},OT(e)}var Moe=["className","cssModule","type","bsSize","valid","invalid","tag","addon","plaintext","innerRef"];function CT(){return CT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},CT.apply(this,arguments)}function Noe(e,t){if(e==null)return{};var n=Loe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Loe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Doe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function koe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ioe(e,t,n){return t&&koe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function $oe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ET(e,t)}function ET(e,t){return ET=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ET(e,t)}function Boe(e){var t=zoe();return function(){var r=j0(e),i;if(t){var a=j0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return Uoe(this,i)}}function Uoe(e,t){if(t&&(OT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return TT(e)}function TT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zoe(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function j0(e){return j0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},j0(e)}var Foe={children:he.node,type:he.string,size:he.oneOfType([he.number,he.string]),bsSize:he.string,valid:he.bool,invalid:he.bool,tag:Dr,innerRef:he.oneOfType([he.object,he.func,he.string]),plaintext:he.bool,addon:he.bool,className:he.string,cssModule:he.object},iz=function(e){$oe(n,e);var t=Boe(n);function n(r){var i;return Doe(this,n),i=t.call(this,r),i.getRef=i.getRef.bind(TT(i)),i.focus=i.focus.bind(TT(i)),i}return Ioe(n,[{key:"getRef",value:function(i){this.props.innerRef&&this.props.innerRef(i),this.ref=i}},{key:"focus",value:function(){this.ref&&this.ref.focus()}},{key:"render",value:function(){var i=this.props,a=i.className,o=i.cssModule,l=i.type,f=l===void 0?"text":l,u=i.bsSize,h=i.valid,m=i.invalid,v=i.tag,_=i.addon,x=i.plaintext,w=i.innerRef,S=Noe(i,Moe),O=["switch","radio","checkbox"].indexOf(f)>-1,C=/\D/g,T=f==="textarea",j=f==="select",P=f==="range",R=v||(j||T?f:"input"),$="form-control";x?($="".concat($,"-plaintext"),R=v||"input"):P?$="form-range":j?$="form-select":O&&(_?$=null:$="form-check-input"),S.size&&C.test(S.size)&&(UE(`Please use the prop "bsSize" instead of the "size" to bootstrap's input sizing.`),u=S.size,delete S.size);var q=Bn($n(a,m&&"is-invalid",h&&"is-valid",u?j?"form-select-".concat(u):"form-control-".concat(u):!1,$),o);return(R==="input"||v&&typeof v=="function")&&(S.type=f==="switch"?"checkbox":f),S.children&&!(x||f==="select"||typeof R!="string"||R==="select")&&(UE('Input with a type of "'.concat(f,'" cannot have children. Please use "value"/"defaultValue" instead.')),delete S.children),se.createElement(R,CT({},S,{ref:w,className:q,"aria-invalid":m}))}}]),n}(se.Component);iz.propTypes=Foe;var qoe=["className","cssModule","tag","type","size"];function P0(){return P0=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},P0.apply(this,arguments)}function Voe(e,t){if(e==null)return{};var n=Hoe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Hoe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Woe={className:he.string,cssModule:he.object,size:he.string,tag:Dr,type:he.string};function az(e){var t=e.className,n=e.cssModule,r=e.tag,i=r===void 0?"div":r;e.type;var a=e.size,o=Voe(e,qoe),l=Bn($n(t,"input-group",a?"input-group-".concat(a):null),n);return e.type==="dropdown"?se.createElement(Da,P0({},o,{className:l})):se.createElement(QU.Provider,{value:{insideInputGroup:!0}},se.createElement(i,P0({},o,{className:l})))}az.propTypes=Woe;function AT(e){"@babel/helpers - typeof";return AT=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},AT(e)}function eL(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 Goe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eL(Object(n),!0).forEach(function(r){Yoe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yoe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jT(){return jT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jT.apply(this,arguments)}function Koe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zoe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xoe(e,t,n){return t&&Zoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Qoe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PT(e,t)}function PT(e,t){return PT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},PT(e,t)}function Joe(e){var t=tse();return function(){var r=R0(e),i;if(t){var a=R0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return ese(this,i)}}function ese(e,t){if(t&&(AT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return oz(e)}function oz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tse(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function R0(e){return R0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},R0(e)}var nse=["defaultOpen"],sz=function(e){Qoe(n,e);var t=Joe(n);function n(r){var i;return Koe(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(oz(i)),i}return Xoe(n,[{key:"toggle",value:function(i){var a=this;this.setState(function(o){return{isOpen:!o.isOpen}},function(){a.props.onToggle&&a.props.onToggle(i,a.state.isOpen)})}},{key:"render",value:function(){return se.createElement(Da,jT({isOpen:this.state.isOpen,toggle:this.toggle},_c(this.props,nse)))}}]),n}(D.Component);sz.propTypes=Goe({defaultOpen:he.bool,onToggle:he.func},Da.propTypes);function RT(e){"@babel/helpers - typeof";return RT=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},RT(e)}function tL(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 rse(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tL(Object(n),!0).forEach(function(r){ise(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ise(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MT(){return MT=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MT.apply(this,arguments)}function ase(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ose(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sse(e,t,n){return t&&ose(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lse(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&NT(e,t)}function NT(e,t){return NT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},NT(e,t)}function use(e){var t=fse();return function(){var r=M0(e),i;if(t){var a=M0(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return cse(this,i)}}function cse(e,t){if(t&&(RT(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lz(e)}function lz(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fse(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function M0(e){return M0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},M0(e)}var dse=["defaultOpen"],bs=function(e){lse(n,e);var t=use(n);function n(r){var i;return ase(this,n),i=t.call(this,r),i.state={isOpen:r.defaultOpen||!1},i.toggle=i.toggle.bind(lz(i)),i}return sse(n,[{key:"toggle",value:function(){this.setState(function(i){return{isOpen:!i.isOpen}})}},{key:"render",value:function(){return se.createElement(y3,MT({isOpen:this.state.isOpen,toggle:this.toggle},_c(this.props,dse)))}}]),n}(D.Component);bs.propTypes=rse({defaultOpen:he.bool},y3.propTypes);function uz(e,t=globalThis.setTimeout,n=globalThis.clearTimeout){const r=D.useRef(null),i=D.useCallback(()=>{r.current&&n(r.current)},[n]),a=D.useCallback((o,l)=>{i(),r.current=t(()=>{o(),r.current=null},l??e)},[i,e,t]);return D.useEffect(()=>i,[i]),D.useMemo(()=>({setTimeout:a,clearCurrentTimeout:i}),[i,a])}const hse=2e3,b3=(e={},t,n=globalThis.setTimeout,r=globalThis.clearTimeout)=>{const{initialValue:i=!1,delay:a=hse}=typeof e=="boolean"?{initialValue:e,delay:t}:e,{setTimeout:o}=uz(a,n,r),[l,f]=D.useState(i),u=D.useRef(i),h=D.useCallback(()=>{f(!u.current),o(()=>f(u.current))},[o]);return[l,h]};function Wt(e=!1,t=!1){const[n,r]=D.useState(e),i=D.useCallback(()=>r(l=>!l),[]),a=D.useCallback(()=>r(!0),[]),o=D.useCallback(()=>r(!1),[]);return t?{flag:n,toggle:i,setToTrue:a,setToFalse:o}:[n,i,a,o]}const pse=()=>{const e=wo();return D.useCallback(()=>e(-1),[e])},cz=e=>{const t=new URLSearchParams(e),n={};return t.forEach((r,i)=>{if(i.endsWith("[]")){const a=i.slice(0,-2);n[a]??(n[a]=[]),n[a].push(r)}else n[i]=r}),n},w3=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()},Gd=()=>{const{search:e}=Lr();return D.useMemo(()=>cz(e),[e])},ws=({text:e,disabled:t=!1,className:n,children:r,dropdownClassName:i,noCaret:a,end:o=!1,minWidth:l,inline:f,size:u,...h})=>{const[m,v]=Wt(),_=Ce("dropdown-btn__toggle",n,{"btn-block":!f,"dropdown-btn__toggle--with-caret":!a}),x={minWidth:l&&`${l}px`};return g.jsxs(Da,{isOpen:m,toggle:v,disabled:t,className:i,children:[g.jsx(ys,{size:u,caret:!a,className:_,color:"primary",...h,children:e}),g.jsx(Xl,{className:"w-100",end:o,style:x,children:m&&r})]})},y1=({children:e,minWidth:t,label:n="Options"})=>g.jsx(ws,{text:g.jsx(Ke,{className:"px-1",icon:AJ}),"aria-label":n,size:"sm",minWidth:t,end:!0,noCaret:!0,inline:!0,children:e});function Sv(e,t,n){return typeof e=="object"?Sv(e.currentField,e.newField,e.currentOrderDir):e!==t?"ASC":n?{ASC:"DESC",DESC:void 0}[n]:"ASC"}const fz=(e,{field:t,dir:n})=>!t||!n?e:e.sort((r,i)=>{const a=n==="ASC"?1:-1,o=n==="ASC"?-1:1;return r[t]>i[t]?a:o}),mse=e=>e.dir?`${e.field}-${e.dir}`:void 0,vse=e=>{const[t,n]=e.split("-");return{field:t,dir:n}};function Ov({items:e,order:t,onChange:n,isButton:r=!0,right:i=!1,prefixed:a=!0}){const[o,l]=Wt(),f=u=>()=>{const h=Sv(u,t.field,t.dir);n(h?u:void 0,h)};return g.jsxs(Da,{isOpen:o,toggle:l,children:[g.jsxs(ys,{caret:!0,color:r?"primary":"link",className:Ce({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":r,"btn-sm p-0":!r}),children:[!r&&g.jsx(g.Fragment,{children:"Order by"}),r&&!t.field&&g.jsx("i",{children:"Order by..."}),r&&t.field&&g.jsxs(g.Fragment,{children:[a&&"Order by: ",e[t.field]," - ",g.jsx("small",{children:t.dir??"DESC"})]})]}),g.jsx(Xl,{end:i,className:"w-100",style:r?void 0:{minWidth:"11rem"},children:o&&g.jsxs(g.Fragment,{children:[Object.entries(e).map(([u,h])=>g.jsxs(Je,{active:t.field===u,onClick:f(u),className:"d-flex justify-content-between align-items-center",tabIndex:-1,children:[h,t.field===u&&g.jsx(Ke,{icon:t.dir==="ASC"?MJ:vJ})]},u)),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsx(Je,{disabled:!t.field,onClick:()=>n(),tabIndex:-1,children:g.jsx("i",{children:"Clear selection"})})]})})]})}const wm="#4696e5",gse="rgba(70, 150, 229, 0.4)",LT="#f77f28",yse="rgba(247, 127, 40, 0.4)",bse="white",wse="#161b22",_se=e=>{var t;return(t=document.querySelector("html"))==null?void 0:t.setAttribute("data-theme",e)},Cv=()=>{var e;return((e=document.querySelector("html"))==null?void 0:e.getAttribute("data-theme"))==="dark"},_3=(e=window.matchMedia.bind(window))=>e("(prefers-color-scheme: dark)").matches?"dark":"light";function b1(){return typeof window<"u"}function Yd(e){return dz(e)?(e.nodeName||"").toLowerCase():"#document"}function Ri(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function _s(e){var t;return(t=(dz(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function dz(e){return b1()?e instanceof Node||e instanceof Ri(e).Node:!1}function Sr(e){return b1()?e instanceof Element||e instanceof Ri(e).Element:!1}function po(e){return b1()?e instanceof HTMLElement||e instanceof Ri(e).HTMLElement:!1}function DT(e){return!b1()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ri(e).ShadowRoot}function Ev(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=Ma(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(i)}function xse(e){return["table","td","th"].includes(Yd(e))}function w1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function x3(e){const t=S3(),n=Sr(e)?Ma(e):e;return["transform","translate","scale","rotate","perspective"].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)||["transform","translate","scale","rotate","perspective","filter"].some(r=>(n.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(n.contain||"").includes(r))}function Sse(e){let t=Fl(e);for(;po(t)&&!od(t);){if(x3(t))return t;if(w1(t))return null;t=Fl(t)}return null}function S3(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function od(e){return["html","body","#document"].includes(Yd(e))}function Ma(e){return Ri(e).getComputedStyle(e)}function _1(e){return Sr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Fl(e){if(Yd(e)==="html")return e;const t=e.assignedSlot||e.parentNode||DT(e)&&e.host||_s(e);return DT(t)?t.host:t}function hz(e){const t=Fl(e);return od(t)?e.ownerDocument?e.ownerDocument.body:e.body:po(t)&&Ev(t)?t:hz(t)}function pz(e,t,n){var r;t===void 0&&(t=[]);const i=hz(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=Ri(i);return a?(kT(o),t.concat(o,o.visualViewport||[],Ev(i)?i:[],[])):t.concat(i,pz(i,[]))}function kT(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const Ose=["top","right","bottom","left"],nL=["start","end"],rL=Ose.reduce((e,t)=>e.concat(t,t+"-"+nL[0],t+"-"+nL[1]),[]),_m=Math.min,Hf=Math.max,N0=Math.round,lo=e=>({x:e,y:e}),Cse={left:"right",right:"left",bottom:"top",top:"bottom"},Ese={start:"end",end:"start"};function Tse(e,t,n){return Hf(e,_m(t,n))}function O3(e,t){return typeof e=="function"?e(t):e}function x1(e){return e.split("-")[0]}function Nl(e){return e.split("-")[1]}function Ase(e){return e==="x"?"y":"x"}function C3(e){return e==="y"?"height":"width"}function mz(e){return["top","bottom"].includes(x1(e))?"y":"x"}function E3(e){return Ase(mz(e))}function jse(e,t,n){n===void 0&&(n=!1);const r=Nl(e),i=E3(e),a=C3(i);let o=i==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[a]>t.floating[a]&&(o=iL(o)),[o,iL(o)]}function Pse(e){return e.replace(/start|end/g,t=>Ese[t])}function iL(e){return e.replace(/left|right|bottom|top/g,t=>Cse[t])}function Rse(e){return{top:0,right:0,bottom:0,left:0,...e}}function vz(e){return typeof e!="number"?Rse(e):{top:e,right:e,bottom:e,left:e}}function L0(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function Mse(e,t){if(!e||!t)return!1;const n=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(n&&DT(n)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function yy(e){return(e==null?void 0:e.ownerDocument)||document}function IT(e,t){const n=["mouse","pen"];return n.push("",void 0),n.includes(e)}var Nse=typeof document<"u",Lse=function(){},ql=Nse?D.useLayoutEffect:Lse;const Dse={...Q9};function Al(e){const t=D.useRef(e);return ql(()=>{t.current=e}),t}const kse=Dse.useInsertionEffect,Ise=kse||(e=>e());function kp(e){const t=D.useRef(()=>{});return Ise(()=>{t.current=e}),D.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 aL(e,t,n){let{reference:r,floating:i}=e;const a=mz(t),o=E3(t),l=C3(o),f=x1(t),u=a==="y",h=r.x+r.width/2-i.width/2,m=r.y+r.height/2-i.height/2,v=r[l]/2-i[l]/2;let _;switch(f){case"top":_={x:h,y:r.y-i.height};break;case"bottom":_={x:h,y:r.y+r.height};break;case"right":_={x:r.x+r.width,y:m};break;case"left":_={x:r.x-i.width,y:m};break;default:_={x:r.x,y:r.y}}switch(Nl(t)){case"start":_[o]-=v*(n&&u?-1:1);break;case"end":_[o]+=v*(n&&u?-1:1);break}return _}const $se=async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:a=[],platform:o}=n,l=a.filter(Boolean),f=await(o.isRTL==null?void 0:o.isRTL(t));let u=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:m}=aL(u,r,f),v=r,_={},x=0;for(let w=0;w<l.length;w++){const{name:S,fn:O}=l[w],{x:C,y:T,data:j,reset:P}=await O({x:h,y:m,initialPlacement:r,placement:v,strategy:i,middlewareData:_,rects:u,platform:o,elements:{reference:e,floating:t}});h=C??h,m=T??m,_={..._,[S]:{..._[S],...j}},P&&x<=50&&(x++,typeof P=="object"&&(P.placement&&(v=P.placement),P.rects&&(u=P.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):P.rects),{x:h,y:m}=aL(u,v,f)),w=-1)}return{x:h,y:m,placement:v,strategy:i,middlewareData:_}};async function Bse(e,t){var n;t===void 0&&(t={});const{x:r,y:i,platform:a,rects:o,elements:l,strategy:f}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:m="floating",altBoundary:v=!1,padding:_=0}=O3(t,e),x=vz(_),S=l[v?m==="floating"?"reference":"floating":m],O=L0(await a.getClippingRect({element:(n=await(a.isElement==null?void 0:a.isElement(S)))==null||n?S:S.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(l.floating)),boundary:u,rootBoundary:h,strategy:f})),C=m==="floating"?{x:r,y:i,width:o.floating.width,height:o.floating.height}:o.reference,T=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l.floating)),j=await(a.isElement==null?void 0:a.isElement(T))?await(a.getScale==null?void 0:a.getScale(T))||{x:1,y:1}:{x:1,y:1},P=L0(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:C,offsetParent:T,strategy:f}):C);return{top:(O.top-P.top+x.top)/j.y,bottom:(P.bottom-O.bottom+x.bottom)/j.y,left:(O.left-P.left+x.left)/j.x,right:(P.right-O.right+x.right)/j.x}}const Use=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:a,platform:o,elements:l,middlewareData:f}=t,{element:u,padding:h=0}=O3(e,t)||{};if(u==null)return{};const m=vz(h),v={x:n,y:r},_=E3(i),x=C3(_),w=await o.getDimensions(u),S=_==="y",O=S?"top":"left",C=S?"bottom":"right",T=S?"clientHeight":"clientWidth",j=a.reference[x]+a.reference[_]-v[_]-a.floating[x],P=v[_]-a.reference[_],R=await(o.getOffsetParent==null?void 0:o.getOffsetParent(u));let $=R?R[T]:0;(!$||!await(o.isElement==null?void 0:o.isElement(R)))&&($=l.floating[T]||a.floating[x]);const q=j/2-P/2,K=$/2-w[x]/2-1,H=_m(m[O],K),G=_m(m[C],K),te=H,ie=$-w[x]-G,X=$/2-w[x]/2+q,ee=Tse(te,X,ie),W=!f.arrow&&Nl(i)!=null&&X!==ee&&a.reference[x]/2-(X<te?H:G)-w[x]/2<0,B=W?X<te?X-te:X-ie:0;return{[_]:v[_]+B,data:{[_]:ee,centerOffset:X-ee-B,...W&&{alignmentOffset:B}},reset:W}}});function zse(e,t,n){return(e?[...n.filter(i=>Nl(i)===e),...n.filter(i=>Nl(i)!==e)]:n.filter(i=>x1(i)===i)).filter(i=>e?Nl(i)===e||(t?Pse(i)!==i:!1):!0)}const Fse=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,i;const{rects:a,middlewareData:o,placement:l,platform:f,elements:u}=t,{crossAxis:h=!1,alignment:m,allowedPlacements:v=rL,autoAlignment:_=!0,...x}=O3(e,t),w=m!==void 0||v===rL?zse(m||null,_,v):v,S=await Bse(t,x),O=((n=o.autoPlacement)==null?void 0:n.index)||0,C=w[O];if(C==null)return{};const T=jse(C,a,await(f.isRTL==null?void 0:f.isRTL(u.floating)));if(l!==C)return{reset:{placement:w[0]}};const j=[S[x1(C)],S[T[0]],S[T[1]]],P=[...((r=o.autoPlacement)==null?void 0:r.overflows)||[],{placement:C,overflows:j}],R=w[O+1];if(R)return{data:{index:O+1,overflows:P},reset:{placement:R}};const $=P.map(H=>{const G=Nl(H.placement);return[H.placement,G&&h?H.overflows.slice(0,2).reduce((te,ie)=>te+ie,0):H.overflows[0],H.overflows]}).sort((H,G)=>H[1]-G[1]),K=((i=$.filter(H=>H[2].slice(0,Nl(H[0])?2:3).every(G=>G<=0))[0])==null?void 0:i[0])||$[0][0];return K!==l?{data:{index:O+1,overflows:P},reset:{placement:K}}:{}}}};function gz(e){const t=Ma(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=po(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,l=N0(n)!==a||N0(r)!==o;return l&&(n=a,r=o),{width:n,height:r,$:l}}function yz(e){return Sr(e)?e:e.contextElement}function Wf(e){const t=yz(e);if(!po(t))return lo(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:a}=gz(t);let o=(a?N0(n.width):n.width)/r,l=(a?N0(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!l||!Number.isFinite(l))&&(l=1),{x:o,y:l}}const qse=lo(0);function bz(e){const t=Ri(e);return!S3()||!t.visualViewport?qse:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vse(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ri(e)?!1:t}function xm(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const i=e.getBoundingClientRect(),a=yz(e);let o=lo(1);t&&(r?Sr(r)&&(o=Wf(r)):o=Wf(e));const l=Vse(a,n,r)?bz(a):lo(0);let f=(i.left+l.x)/o.x,u=(i.top+l.y)/o.y,h=i.width/o.x,m=i.height/o.y;if(a){const v=Ri(a),_=r&&Sr(r)?Ri(r):r;let x=v,w=kT(x);for(;w&&r&&_!==x;){const S=Wf(w),O=w.getBoundingClientRect(),C=Ma(w),T=O.left+(w.clientLeft+parseFloat(C.paddingLeft))*S.x,j=O.top+(w.clientTop+parseFloat(C.paddingTop))*S.y;f*=S.x,u*=S.y,h*=S.x,m*=S.y,f+=T,u+=j,x=Ri(w),w=kT(x)}}return L0({width:h,height:m,x:f,y:u})}function T3(e,t){const n=_1(e).scrollLeft;return t?t.left+n:xm(_s(e)).left+n}function wz(e,t,n){n===void 0&&(n=!1);const r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-(n?0:T3(e,r)),a=r.top+t.scrollTop;return{x:i,y:a}}function Hse(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const a=i==="fixed",o=_s(r),l=t?w1(t.floating):!1;if(r===o||l&&a)return n;let f={scrollLeft:0,scrollTop:0},u=lo(1);const h=lo(0),m=po(r);if((m||!m&&!a)&&((Yd(r)!=="body"||Ev(o))&&(f=_1(r)),po(r))){const _=xm(r);u=Wf(r),h.x=_.x+r.clientLeft,h.y=_.y+r.clientTop}const v=o&&!m&&!a?wz(o,f,!0):lo(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-f.scrollLeft*u.x+h.x+v.x,y:n.y*u.y-f.scrollTop*u.y+h.y+v.y}}function Wse(e){return Array.from(e.getClientRects())}function Gse(e){const t=_s(e),n=_1(e),r=e.ownerDocument.body,i=Hf(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Hf(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let o=-n.scrollLeft+T3(e);const l=-n.scrollTop;return Ma(r).direction==="rtl"&&(o+=Hf(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:l}}function Yse(e,t){const n=Ri(e),r=_s(e),i=n.visualViewport;let a=r.clientWidth,o=r.clientHeight,l=0,f=0;if(i){a=i.width,o=i.height;const u=S3();(!u||u&&t==="fixed")&&(l=i.offsetLeft,f=i.offsetTop)}return{width:a,height:o,x:l,y:f}}function Kse(e,t){const n=xm(e,!0,t==="fixed"),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=po(e)?Wf(e):lo(1),o=e.clientWidth*a.x,l=e.clientHeight*a.y,f=i*a.x,u=r*a.y;return{width:o,height:l,x:f,y:u}}function oL(e,t,n){let r;if(t==="viewport")r=Yse(e,n);else if(t==="document")r=Gse(_s(e));else if(Sr(t))r=Kse(t,n);else{const i=bz(e);r={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return L0(r)}function _z(e,t){const n=Fl(e);return n===t||!Sr(n)||od(n)?!1:Ma(n).position==="fixed"||_z(n,t)}function Zse(e,t){const n=t.get(e);if(n)return n;let r=pz(e,[]).filter(l=>Sr(l)&&Yd(l)!=="body"),i=null;const a=Ma(e).position==="fixed";let o=a?Fl(e):e;for(;Sr(o)&&!od(o);){const l=Ma(o),f=x3(o);!f&&l.position==="fixed"&&(i=null),(a?!f&&!i:!f&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Ev(o)&&!f&&_z(e,o))?r=r.filter(h=>h!==o):i=l,o=Fl(o)}return t.set(e,r),r}function Xse(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[...n==="clippingAncestors"?w1(t)?[]:Zse(t,this._c):[].concat(n),r],l=o[0],f=o.reduce((u,h)=>{const m=oL(t,h,i);return u.top=Hf(m.top,u.top),u.right=_m(m.right,u.right),u.bottom=_m(m.bottom,u.bottom),u.left=Hf(m.left,u.left),u},oL(t,l,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function Qse(e){const{width:t,height:n}=gz(e);return{width:t,height:n}}function Jse(e,t,n){const r=po(t),i=_s(t),a=n==="fixed",o=xm(e,!0,a,t);let l={scrollLeft:0,scrollTop:0};const f=lo(0);function u(){f.x=T3(i)}if(r||!r&&!a)if((Yd(t)!=="body"||Ev(i))&&(l=_1(t)),r){const _=xm(t,!0,a,t);f.x=_.x+t.clientLeft,f.y=_.y+t.clientTop}else i&&u();a&&!r&&i&&u();const h=i&&!r&&!a?wz(i,l):lo(0),m=o.left+l.scrollLeft-f.x-h.x,v=o.top+l.scrollTop-f.y-h.y;return{x:m,y:v,width:o.width,height:o.height}}function Hx(e){return Ma(e).position==="static"}function sL(e,t){if(!po(e)||Ma(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return _s(e)===n&&(n=n.ownerDocument.body),n}function xz(e,t){const n=Ri(e);if(w1(e))return n;if(!po(e)){let i=Fl(e);for(;i&&!od(i);){if(Sr(i)&&!Hx(i))return i;i=Fl(i)}return n}let r=sL(e,t);for(;r&&xse(r)&&Hx(r);)r=sL(r,t);return r&&od(r)&&Hx(r)&&!x3(r)?n:r||Sse(e)||n}const ele=async function(e){const t=this.getOffsetParent||xz,n=this.getDimensions,r=await n(e.floating);return{reference:Jse(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function tle(e){return Ma(e).direction==="rtl"}const nle={convertOffsetParentRelativeRectToViewportRelativeRect:Hse,getDocumentElement:_s,getClippingRect:Xse,getOffsetParent:xz,getElementRects:ele,getClientRects:Wse,getDimensions:Qse,getScale:Wf,isElement:Sr,isRTL:tle},rle=Fse,lL=Use,ile=(e,t,n)=>{const r=new Map,i={platform:nle,...n},a={...i.platform,_c:r};return $se(e,t,{...i,platform:a})};var ale=typeof document<"u",ole=function(){},e0=ale?D.useLayoutEffect:ole;function D0(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(!D0(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 a=i[r];if(!(a==="_owner"&&e.$$typeof)&&!D0(e[a],t[a]))return!1}return!0}return e!==e&&t!==t}function Sz(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uL(e,t){const n=Sz(e);return Math.round(t*n)/n}function Wx(e){const t=D.useRef(e);return e0(()=>{t.current=e}),t}function sle(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:l=!0,whileElementsMounted:f,open:u}=e,[h,m]=D.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[v,_]=D.useState(r);D0(v,r)||_(r);const[x,w]=D.useState(null),[S,O]=D.useState(null),C=D.useCallback(U=>{U!==R.current&&(R.current=U,w(U))},[]),T=D.useCallback(U=>{U!==$.current&&($.current=U,O(U))},[]),j=a||x,P=o||S,R=D.useRef(null),$=D.useRef(null),q=D.useRef(h),K=f!=null,H=Wx(f),G=Wx(i),te=Wx(u),ie=D.useCallback(()=>{if(!R.current||!$.current)return;const U={placement:t,strategy:n,middleware:v};G.current&&(U.platform=G.current),ile(R.current,$.current,U).then(F=>{const M={...F,isPositioned:te.current!==!1};X.current&&!D0(q.current,M)&&(q.current=M,xc.flushSync(()=>{m(M)}))})},[v,t,n,G,te]);e0(()=>{u===!1&&q.current.isPositioned&&(q.current.isPositioned=!1,m(U=>({...U,isPositioned:!1})))},[u]);const X=D.useRef(!1);e0(()=>(X.current=!0,()=>{X.current=!1}),[]),e0(()=>{if(j&&(R.current=j),P&&($.current=P),j&&P){if(H.current)return H.current(j,P,ie);ie()}},[j,P,ie,H,K]);const ee=D.useMemo(()=>({reference:R,floating:$,setReference:C,setFloating:T}),[C,T]),W=D.useMemo(()=>({reference:j,floating:P}),[j,P]),B=D.useMemo(()=>{const U={position:n,left:0,top:0};if(!W.floating)return U;const F=uL(W.floating,h.x),M=uL(W.floating,h.y);return l?{...U,transform:"translate("+F+"px, "+M+"px)",...Sz(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:F,top:M}},[n,l,W.floating,h.x,h.y]);return D.useMemo(()=>({...h,update:ie,refs:ee,elements:W,floatingStyles:B}),[h,ie,ee,W,B])}const lle=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?lL({element:r.current,padding:i}).fn(n):{}:r?lL({element:r,padding:i}).fn(n):{}}}},ule=(e,t)=>({...rle(e),options:[e,t]}),cle=(e,t)=>({...lle(e),options:[e,t]}),fle="data-floating-ui-focusable",cL="active",fL="selected",dle={...Q9};let dL=!1,hle=0;const hL=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+hle++;function ple(){const[e,t]=D.useState(()=>dL?hL():void 0);return ql(()=>{e==null&&t(hL())},[]),D.useEffect(()=>{dL=!0},[]),e}const mle=dle.useId,vle=mle||ple;function gle(){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 yle=D.createContext(null),ble=D.createContext(null),Oz=()=>{var e;return((e=D.useContext(yle))==null?void 0:e.id)||null},Cz=()=>D.useContext(ble);function wle(e){return"data-floating-ui-"+e}function _a(e){e.current!==-1&&(clearTimeout(e.current),e.current=-1)}const pL=wle("safe-polygon");function Gx(e,t,n){if(n&&!IT(n))return 0;if(typeof e=="number")return e;if(typeof e=="function"){const r=e();return typeof r=="number"?r:r==null?void 0:r[t]}return e==null?void 0:e[t]}function Yx(e){return typeof e=="function"?e():e}function _le(e,t){t===void 0&&(t={});const{open:n,onOpenChange:r,dataRef:i,events:a,elements:o}=e,{enabled:l=!0,delay:f=0,handleClose:u=null,mouseOnly:h=!1,restMs:m=0,move:v=!0}=t,_=Cz(),x=Oz(),w=Al(u),S=Al(f),O=Al(n),C=Al(m),T=D.useRef(),j=D.useRef(-1),P=D.useRef(),R=D.useRef(-1),$=D.useRef(!0),q=D.useRef(!1),K=D.useRef(()=>{}),H=D.useRef(!1),G=kp(()=>{var B;const U=(B=i.current.openEvent)==null?void 0:B.type;return(U==null?void 0:U.includes("mouse"))&&U!=="mousedown"});D.useEffect(()=>{if(!l)return;function B(U){let{open:F}=U;F||(_a(j),_a(R),$.current=!0,H.current=!1)}return a.on("openchange",B),()=>{a.off("openchange",B)}},[l,a]),D.useEffect(()=>{if(!l||!w.current||!n)return;function B(F){G()&&r(!1,F,"hover")}const U=yy(o.floating).documentElement;return U.addEventListener("mouseleave",B),()=>{U.removeEventListener("mouseleave",B)}},[o.floating,n,r,l,w,G]);const te=D.useCallback(function(B,U,F){U===void 0&&(U=!0),F===void 0&&(F="hover");const M=Gx(S.current,"close",T.current);M&&!P.current?(_a(j),j.current=window.setTimeout(()=>r(!1,B,F),M)):U&&(_a(j),r(!1,B,F))},[S,r]),ie=kp(()=>{K.current(),P.current=void 0}),X=kp(()=>{if(q.current){const B=yy(o.floating).body;B.style.pointerEvents="",B.removeAttribute(pL),q.current=!1}}),ee=kp(()=>i.current.openEvent?["click","mousedown"].includes(i.current.openEvent.type):!1);D.useEffect(()=>{if(!l)return;function B(J){if(_a(j),$.current=!1,h&&!IT(T.current)||Yx(C.current)>0&&!Gx(S.current,"open"))return;const Y=Gx(S.current,"open",T.current);Y?j.current=window.setTimeout(()=>{O.current||r(!0,J,"hover")},Y):n||r(!0,J,"hover")}function U(J){if(ee()){X();return}K.current();const Y=yy(o.floating);if(_a(R),H.current=!1,w.current&&i.current.floatingContext){n||_a(j),P.current=w.current({...i.current.floatingContext,tree:_,x:J.clientX,y:J.clientY,onClose(){X(),ie(),ee()||te(J,!0,"safe-polygon")}});const de=P.current;Y.addEventListener("mousemove",de),K.current=()=>{Y.removeEventListener("mousemove",de)};return}(T.current==="touch"?!Mse(o.floating,J.relatedTarget):!0)&&te(J)}function F(J){ee()||i.current.floatingContext&&(w.current==null||w.current({...i.current.floatingContext,tree:_,x:J.clientX,y:J.clientY,onClose(){X(),ie(),ee()||te(J)}})(J))}function M(){_a(j)}function I(J){ee()||te(J,!1)}if(Sr(o.domReference)){const J=o.domReference,Y=o.floating;return n&&J.addEventListener("mouseleave",F),v&&J.addEventListener("mousemove",B,{once:!0}),J.addEventListener("mouseenter",B),J.addEventListener("mouseleave",U),Y&&(Y.addEventListener("mouseleave",F),Y.addEventListener("mouseenter",M),Y.addEventListener("mouseleave",I)),()=>{n&&J.removeEventListener("mouseleave",F),v&&J.removeEventListener("mousemove",B),J.removeEventListener("mouseenter",B),J.removeEventListener("mouseleave",U),Y&&(Y.removeEventListener("mouseleave",F),Y.removeEventListener("mouseenter",M),Y.removeEventListener("mouseleave",I))}}},[o,l,e,h,v,te,ie,X,r,n,O,_,S,w,i,ee,C]),ql(()=>{var B;if(l&&n&&(B=w.current)!=null&&(B=B.__options)!=null&&B.blockPointerEvents&&G()){q.current=!0;const F=o.floating;if(Sr(o.domReference)&&F){var U;const M=yy(o.floating).body;M.setAttribute(pL,"");const I=o.domReference,J=_==null||(U=_.nodesRef.current.find(Y=>Y.id===x))==null||(U=U.context)==null?void 0:U.elements.floating;return J&&(J.style.pointerEvents=""),M.style.pointerEvents="none",I.style.pointerEvents="auto",F.style.pointerEvents="auto",()=>{M.style.pointerEvents="",I.style.pointerEvents="",F.style.pointerEvents=""}}}},[l,n,x,o,_,w,G]),ql(()=>{n||(T.current=void 0,H.current=!1,ie(),X())},[n,ie,X]),D.useEffect(()=>()=>{ie(),_a(j),_a(R),X()},[l,o.domReference,ie,X]);const W=D.useMemo(()=>{function B(U){T.current=U.pointerType}return{onPointerDown:B,onPointerEnter:B,onMouseMove(U){const{nativeEvent:F}=U;function M(){!$.current&&!O.current&&r(!0,F,"hover")}h&&!IT(T.current)||n||Yx(C.current)===0||H.current&&U.movementX**2+U.movementY**2<2||(_a(R),T.current==="touch"?M():(H.current=!0,R.current=window.setTimeout(M,Yx(C.current))))}}},[h,r,n,O,C]);return D.useMemo(()=>l?{reference:W}:{},[l,W])}function xle(e){const{open:t=!1,onOpenChange:n,elements:r}=e,i=vle(),a=D.useRef({}),[o]=D.useState(()=>gle()),l=Oz()!=null,[f,u]=D.useState(r.reference),h=kp((_,x,w)=>{a.current.openEvent=_?x:void 0,o.emit("openchange",{open:_,event:x,reason:w,nested:l}),n==null||n(_,x,w)}),m=D.useMemo(()=>({setPositionReference:u}),[]),v=D.useMemo(()=>({reference:f||r.reference||null,floating:r.floating||null,domReference:r.reference}),[f,r.reference,r.floating]);return D.useMemo(()=>({dataRef:a,open:t,onOpenChange:h,elements:v,events:o,floatingId:i,refs:m}),[t,h,v,o,i,m])}function Sle(e){e===void 0&&(e={});const{nodeId:t}=e,n=xle({...e,elements:{reference:null,floating:null,...e.elements}}),r=e.rootContext||n,i=r.elements,[a,o]=D.useState(null),[l,f]=D.useState(null),h=(i==null?void 0:i.domReference)||a,m=D.useRef(null),v=Cz();ql(()=>{h&&(m.current=h)},[h]);const _=sle({...e,elements:{...i,...l&&{reference:l}}}),x=D.useCallback(T=>{const j=Sr(T)?{getBoundingClientRect:()=>T.getBoundingClientRect(),getClientRects:()=>T.getClientRects(),contextElement:T}:T;f(j),_.refs.setReference(j)},[_.refs]),w=D.useCallback(T=>{(Sr(T)||T===null)&&(m.current=T,o(T)),(Sr(_.refs.reference.current)||_.refs.reference.current===null||T!==null&&!Sr(T))&&_.refs.setReference(T)},[_.refs]),S=D.useMemo(()=>({..._.refs,setReference:w,setPositionReference:x,domReference:m}),[_.refs,w,x]),O=D.useMemo(()=>({..._.elements,domReference:h}),[_.elements,h]),C=D.useMemo(()=>({..._,...r,refs:S,elements:O,nodeId:t}),[_,S,O,t,r]);return ql(()=>{r.dataRef.current.floatingContext=C;const T=v==null?void 0:v.nodesRef.current.find(j=>j.id===t);T&&(T.context=C)}),D.useMemo(()=>({..._,context:C,refs:S,elements:O}),[_,S,O,C])}function Kx(e,t,n){const r=new Map,i=n==="item";let a=e;if(i&&e){const{[cL]:o,[fL]:l,...f}=e;a=f}return{...n==="floating"&&{tabIndex:-1,[fle]:""},...a,...t.map(o=>{const l=o?o[n]:null;return typeof l=="function"?e?l(e):null:l}).concat(e).reduce((o,l)=>(l&&Object.entries(l).forEach(f=>{let[u,h]=f;if(!(i&&[cL,fL].includes(u)))if(u.indexOf("on")===0){if(r.has(u)||r.set(u,[]),typeof h=="function"){var m;(m=r.get(u))==null||m.push(h),o[u]=function(){for(var v,_=arguments.length,x=new Array(_),w=0;w<_;w++)x[w]=arguments[w];return(v=r.get(u))==null?void 0:v.map(S=>S(...x)).find(S=>S!==void 0)}}}else o[u]=h}),o),{})}}function Ole(e){e===void 0&&(e=[]);const t=e.map(l=>l==null?void 0:l.reference),n=e.map(l=>l==null?void 0:l.floating),r=e.map(l=>l==null?void 0:l.item),i=D.useCallback(l=>Kx(l,e,"reference"),t),a=D.useCallback(l=>Kx(l,e,"floating"),n),o=D.useCallback(l=>Kx(l,e,"item"),r);return D.useMemo(()=>({getReferenceProps:i,getFloatingProps:a,getItemProps:o}),[i,a,o])}const mL=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,n)=>(n?"-":"")+t.toLowerCase());function xf(e,t){return typeof e=="function"?e(t):e}function Cle(e,t){const[n,r]=D.useState(e);return e&&!n&&r(!0),D.useEffect(()=>{if(!e&&n){const i=setTimeout(()=>r(!1),t);return()=>clearTimeout(i)}},[e,n,t]),n}function Ele(e,t){t===void 0&&(t={});const{open:n,elements:{floating:r}}=e,{duration:i=250}=t,o=(typeof i=="number"?i:i.close)||0,[l,f]=D.useState("unmounted"),u=Cle(n,o);return!u&&l==="close"&&f("unmounted"),ql(()=>{if(r){if(n){f("initial");const h=requestAnimationFrame(()=>{xc.flushSync(()=>{f("open")})});return()=>{cancelAnimationFrame(h)}}f("close")}},[n,r]),{isMounted:u,status:l}}function Tle(e,t){t===void 0&&(t={});const{initial:n={opacity:0},open:r,close:i,common:a,duration:o=250}=t,l=e.placement,f=l.split("-")[0],u=D.useMemo(()=>({side:f,placement:l}),[f,l]),h=typeof o=="number",m=(h?o:o.open)||0,v=(h?o:o.close)||0,[_,x]=D.useState(()=>({...xf(a,u),...xf(n,u)})),{isMounted:w,status:S}=Ele(e,{duration:o}),O=Al(n),C=Al(r),T=Al(i),j=Al(a);return ql(()=>{const P=xf(O.current,u),R=xf(T.current,u),$=xf(j.current,u),q=xf(C.current,u)||Object.keys(P).reduce((K,H)=>(K[H]="",K),{});if(S==="initial"&&x(K=>({transitionProperty:K.transitionProperty,...$,...P})),S==="open"&&x({transitionProperty:Object.keys(q).map(mL).join(","),transitionDuration:m+"ms",...$,...q}),S==="close"){const K=R||P;x({transitionProperty:Object.keys(K).map(mL).join(","),transitionDuration:v+"ms",...$,...K})}},[v,T,O,C,j,m,S,u]),{isMounted:w,styles:_}}/*!
* Font Awesome Free 6.7.2 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 2024 Fonticons, Inc.
*/const Ale={prefix:"far",iconName:"image",icon:[512,512,[],"f03e","M448 80c8.8 0 16 7.2 16 16l0 319.8-5-6.5-136-176c-4.5-5.9-11.6-9.3-19-9.3s-14.4 3.4-19 9.3L202 340.7l-30.5-42.7C167 291.7 159.8 288 152 288s-15 3.7-19.5 10.1l-80 112L48 416.3l0-.3L48 96c0-8.8 7.2-16 16-16l384 0zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},jle={prefix:"far",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM294.6 151.2c-4.2-4.6-10.1-7.2-16.4-7.2C266 144 256 154 256 166.3l0 41.7-96 0c-17.7 0-32 14.3-32 32l0 32c0 17.7 14.3 32 32 32l96 0 0 41.7c0 12.3 10 22.3 22.3 22.3c6.2 0 12.1-2.6 16.4-7.2l84-91c3.5-3.8 5.4-8.7 5.4-13.9s-1.9-10.1-5.4-13.9l-84-91z"]},Ple=jle,Rle={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 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},Ez={prefix:"far",iconName:"clone",icon:[512,512,[],"f24d","M64 464l224 0c8.8 0 16-7.2 16-16l0-64 48 0 0 64c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64l64 0 0 48-64 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zM224 304l224 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16L224 48c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16zm-64-16l0-224c0-35.3 28.7-64 64-64L448 0c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64l-224 0c-35.3 0-64-28.7-64-64z"]},Mle=({children:e,summary:t,summaryClasses:n,...r})=>{const i=D.useRef(null),[a,o]=D.useState(!1);return D.useEffect(()=>{const l=i.current,f=()=>o(!!(l!=null&&l.open));return l==null||l.addEventListener("toggle",f),()=>l==null?void 0:l.removeEventListener("toggle",f)},[]),g.jsxs("details",{ref:i,...r,children:[g.jsx("summary",{className:Ce("tw:focus-ring tw:px-1 tw:-mx-1 tw:rounded-sm",n),children:t}),a&&g.jsx("div",{className:"tw:mt-3 tw:flex tw:flex-col tw:gap-y-3",children:e})]})},Nle=D.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:Ce("tw:px-4 tw:py-3 tw:rounded-t-md","tw:bg-lm-primary tw:dark:bg-dm-primary tw:border-b tw:border-lm-border tw:dark:border-dm-border",e),...t,ref:n})),Lle=D.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:Ce("tw:p-4 tw:bg-lm-primary tw:dark:bg-dm-primary tw:first:rounded-t-md","tw:first:rounded-t-md tw:last:rounded-b-md",e),...t,ref:n})),Dle=D.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:Ce("tw:px-4 tw:py-3 tw:rounded-b-md","tw:bg-lm-primary tw:dark:bg-dm-primary tw:border-t tw:border-lm-border tw:dark:border-dm-border",e),...t,ref:n})),kle=D.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:Ce("tw:group/card tw:rounded-md tw:shadow-md","tw:border tw:border-lm-border tw:dark:border-dm-border tw:bg-lm-primary tw:dark:bg-dm-primary",e),...t,ref:n})),ji=Object.assign(kle,{Body:Lle,Header:Nle,Footer:Dle}),S1=D.forwardRef(({bodyClassName:e,children:t,...n},r)=>{const{title:i,titleSize:a="md",...o}="title"in n?n:{...n,title:void 0,titleSize:void 0};return g.jsxs(ji,{...o,ref:r,children:[i&&g.jsxs(ji.Header,{children:[a==="lg"&&g.jsx("h4",{children:i}),a==="md"&&g.jsx("h5",{children:i}),a==="sm"&&g.jsx("h6",{children:i})]}),g.jsx(ji.Body,{className:e,children:t})]})}),Tv=D.createContext(void 0),Kd=D.createContext({responsive:!0,size:"md"}),Ile=({children:e,className:t})=>{const{responsive:n}=D.useContext(Kd);return g.jsx(Tv.Provider,{value:{section:"head"},children:g.jsx("thead",{className:Ce({"tw:hidden tw:lg:table-header-group":n},t),children:e})})},$le=({children:e,className:t})=>{const{responsive:n}=D.useContext(Kd);return g.jsx(Tv.Provider,{value:{section:"body"},children:g.jsx("tbody",{className:Ce({"tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3":n},t),children:e})})},Ble=({children:e,className:t})=>{const{responsive:n}=D.useContext(Kd);return g.jsx(Tv.Provider,{value:{section:"footer"},children:g.jsx("tfoot",{className:Ce({"tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3 tw:mt-4":n},t),children:e})})},Ule=({children:e,className:t,...n})=>{const r=D.useContext(Tv),i=(r==null?void 0:r.section)==="body",{responsive:a}=D.useContext(Kd);return g.jsx("tr",{className:Ce("tw:group",{"tw:lg:table-row tw:flex tw:flex-col":a,"tw:lg:border-0 tw:border-y-2 tw:border-lm-border tw:dark:border-dm-border":a,"tw:hover:bg-lm-primary tw:dark:hover:bg-dm-primary":i,"tw:group-[&]/card:hover:bg-lm-secondary tw:dark:group-[&]/card:hover:bg-dm-secondary":i},t),...n,children:e})},zle=({children:e,className:t,columnName:n,type:r,...i})=>{const a=D.useContext(Tv),o=r??((a==null?void 0:a.section)!=="body"?"th":"td"),{responsive:l,size:f}=D.useContext(Kd);return g.jsx(o,{"data-column":l?n:void 0,className:Ce("tw:border-lm-border tw:dark:border-dm-border",{"tw:p-1":f==="sm","tw:p-2":f==="md","tw:p-3":f==="lg","tw:border-b-1":!l,"tw:block tw:lg:table-cell tw:not-last:border-b-1 tw:lg:border-b-1":l,"tw:before:lg:hidden tw:before:content-[attr(data-column)] tw:before:font-bold tw:before:mr-1":l&&o==="td"},t),...i,children:e})},Fle=({header:e,footer:t,children:n,responsive:r=!0,size:i="md",...a})=>g.jsx(Kd.Provider,{value:{responsive:r,size:i},children:g.jsxs("table",{className:"tw:w-full",...a,children:[g.jsx(Ile,{children:e}),g.jsx($le,{children:n}),t&&g.jsx(Ble,{children:t})]})}),Ci=Object.assign(Fle,{Row:Ule,Cell:zle}),la=D.forwardRef(({children:e,className:t,disabled:n,variant:r="primary",size:i="md",inline:a=!1,solid:o=!1,type:l="button",...f},u)=>{const h="to"in f?gn:"button",m=h===gn?void 0:l;return g.jsx(h,{ref:u,className:Ce({"tw:inline-flex":a,"tw:flex":!a},"tw:gap-2 tw:items-center tw:justify-center","tw:border tw:rounded-md tw:no-underline","tw:transition-colors",{"tw:focus-ring":r==="primary","tw:focus-ring-secondary":r==="secondary","tw:focus-ring-danger":r==="danger"},{"tw:px-1.5 tw:py-1 tw:text-sm":i==="sm","tw:px-3 tw:py-1.5":i==="md","tw:px-4 tw:py-2 tw:text-lg":i==="lg"},{"tw:border-lm-brand tw:dark:border-dm-brand":r==="primary","tw:text-lm-brand tw:dark:text-dm-brand":r==="primary"&&!o,"tw:border-zinc-500":r==="secondary","tw:text-zinc-500":r==="secondary"&&!o,"tw:border-danger":r==="danger","tw:text-danger":r==="danger"&&!o},o&&{"tw:text-white":!0,"tw:bg-lm-brand tw:dark:bg-dm-brand":r==="primary","tw:highlight:bg-lm-brand-dark tw:dark:highlight:bg-dm-brand-dark":r==="primary","tw:highlight:border-lm-brand-dark tw:dark:highlight:border-dm-brand-dark":r==="primary","tw:bg-zinc-500":r==="secondary","tw:highlight:bg-zinc-600 tw:highlight:border-zinc-600":r==="secondary","tw:bg-danger":r==="danger","tw:highlight:bg-danger-dark tw:highlight:border-danger-dark":r==="danger"},!n&&{"tw:highlight:text-white":!o,"tw:highlight:bg-lm-brand tw:dark:highlight:bg-dm-brand":r==="primary","tw:highlight:bg-zinc-500":r==="secondary","tw:highlight:bg-danger":r==="danger"},{"tw:pointer-events-none tw:opacity-65":n},t),disabled:n,type:m,...f,children:e})}),Tz=D.forwardRef(({className:e,onChange:t,...n},r)=>{const i=D.useCallback(a=>t==null?void 0:t(a.target.checked,a),[t]);return g.jsx("input",{ref:r,type:"checkbox",className:Ce("tw:appearance-none tw:focus-ring tw:cursor-[inherit]","tw:border-1 tw:border-lm-input-border tw:dark:border-dm-input-border","tw:bg-lm-primary tw:dark:bg-dm-primary tw:checked:bg-lm-brand tw:dark:checked:bg-dm-brand tw:bg-no-repeat","tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input",e),onChange:i,...n})}),qle=D.forwardRef(({className:e,...t},n)=>g.jsx(Tz,{ref:n,className:Ce("tw:rounded-sm tw:w-4 tw:h-4 tw:checked:bg-(image:--tick) tw:bg-center",e),...t})),$T=D.forwardRef(({onClick:e,className:t,label:n="Close"},r)=>g.jsx("button",{ref:r,type:"button",onClick:e,className:Ce("tw:opacity-50 tw:highlight:opacity-80 tw:transition-opacity","tw:rounded-md tw:focus-ring",t),"aria-label":n,children:g.jsx(Ke,{icon:f1,size:"xl"})})),A3=D.forwardRef(({borderless:e=!1,size:t="md",feedback:n,className:r,disabled:i,readOnly:a,...o},l)=>{const f=!i&&!a;return g.jsx("input",{ref:l,className:Ce("tw:w-full",{"tw:focus-ring":!n,"tw:focus-ring-danger":n==="error"},{"tw:px-2 tw:py-1 tw:text-sm":t==="sm","tw:px-3 tw:py-1.5":t==="md","tw:px-4 tw:py-2 tw:text-xl":t==="lg"},{"tw:rounded-md tw:border":!e,"tw:border-lm-input-border tw:dark:border-dm-input-border":!e&&!n,"tw:border-danger":!e&&n==="error","tw:bg-lm-disabled-input tw:dark:bg-dm-disabled-input":!f,"tw:bg-lm-primary tw:dark:bg-dm-primary":f,"tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input":f},r),disabled:i,readOnly:a,...o})}),O1=({required:e,children:t,className:n,...r})=>g.jsxs("label",{className:Ce("tw:cursor-pointer",n),...r,children:[t,e&&g.jsx("span",{className:"tw:text-danger tw:ml-1","data-testid":"required-indicator",children:"*"})]}),j3=({children:e,helpText:t,error:n,"data-testid":r})=>g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-1","data-testid":r,children:[e,t&&g.jsx("small",{"data-testid":r?`${r}-help-text`:"help-text",className:"tw:text-gray-500 tw:dark:text-gray-400",children:t}),n&&g.jsx("span",{"data-testid":r?`${r}-error`:"error",className:"tw:text-danger",children:n})]}),vL=D.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:a,"data-testid":o,...l},f)=>{const u=D.useId();return g.jsxs(j3,{error:i,helpText:a,"data-testid":o,children:[g.jsx(O1,{htmlFor:u,required:n,children:e}),g.jsx(A3,{ref:f,id:u,className:t,required:n||r,feedback:i?"error":void 0,...l})]})}),Vle=D.forwardRef(({containerClassName:e,className:t,size:n,...r},i)=>{const[a,o,,l]=Wt(!1),f=D.useRef(null),u=D.useCallback(({relatedTarget:h})=>{var m;(m=f.current)!=null&&m.contains(h)||l()},[f,l]);return g.jsxs("div",{className:Ce("tw:group tw:relative",e),ref:f,onBlurCapture:u,children:[g.jsx(A3,{ref:i,type:a?"text":"password",className:Ce({"tw:pr-10":n!=="sm","tw:pr-8":n==="sm"},t),size:n,"data-testid":"input",...r}),g.jsx("button",{type:"button",onClick:o,title:a?"Hide password":"Show password","aria-label":a?"Hide password":"Show password",className:Ce("tw:absolute tw:top-[50%] tw:translate-y-[-50%] tw:px-1","tw:text-placeholder tw:hover:text-lm-text tw:hover:dark:text-dm-text tw:transition-colors",{"tw:right-1.5":n!=="sm","tw:scale-85 tw:right-1":n==="sm"}),tabIndex:-1,children:g.jsx(Ke,{fixedWidth:!0,icon:a?kB:$B})})]})}),Hle=D.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:a,"data-testid":o,...l},f)=>{const u=D.useId();return g.jsxs(j3,{error:i,helpText:a,"data-testid":o,children:[g.jsx(O1,{htmlFor:u,required:n,children:e}),g.jsx(Vle,{ref:f,id:u,className:t,required:n||r,feedback:i?"error":void 0,...l})]})}),Wle=D.forwardRef(({className:e,size:t="md",feedback:n,style:r={},disabled:i,...a},o)=>g.jsx("select",{ref:o,className:Ce("tw:w-full tw:appearance-none tw:pr-9","tw:bg-(image:--chevron-down) tw:bg-no-repeat",{"tw:focus-ring":!n,"tw:focus-ring-danger":n==="error"},"tw:rounded-md tw:border",{"tw:border-lm-input-border tw:dark:border-dm-input-border":!n,"tw:border-danger":n==="error"},{"tw:pl-2 tw:py-1 tw:text-sm":t==="sm","tw:pl-3 tw:py-1.5":t==="md","tw:pl-4 tw:py-2 tw:text-xl":t==="lg","tw:bg-lm-disabled-input tw:dark:bg-dm-disabled-input":i,"tw:bg-lm-primary tw:dark:bg-dm-primary tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input":!i},e),style:{...r,background:"right 0.75rem center / 16px 12px"},disabled:i,...a}));D.forwardRef(({selectClassName:e,label:t,error:n,helpText:r,required:i,hiddenRequired:a,"data-testid":o,...l},f)=>{const u=D.useId();return g.jsxs(j3,{error:n,helpText:r,"data-testid":o,children:[g.jsx(O1,{htmlFor:u,required:i,children:t}),g.jsx(Wle,{ref:f,id:u,className:e,required:i||a,feedback:n?"error":void 0,...l})]})});const Gle=D.forwardRef(({onChange:e,containerClassName:t,inputClassName:n,size:r="lg",loading:i=!1,...a},o)=>{const{setTimeout:l,clearCurrentTimeout:f}=uz(500),u=D.useCallback(h=>{h?l(()=>e(h)):(f(),e(h))},[f,e,l]);return g.jsxs("div",{className:Ce("tw:group tw:relative tw:focus-within:z-10",t),children:[g.jsx(Ke,{icon:i?gv:UB,spin:i,className:Ce("tw:absolute tw:top-[50%] tw:translate-y-[-50%] tw:transition-colors","tw:text-placeholder tw:group-focus-within:text-lm-text tw:dark:group-focus-within:text-dm-text",{"tw:left-3":r!=="sm","tw:scale-85 tw:left-2":r==="sm"})}),g.jsx(A3,{ref:o,type:"search",className:Ce({"tw:pl-9":r!=="sm","tw:pl-7":r==="sm"},n),placeholder:"Search...",onChange:h=>u(h.target.value),size:r,...a})]})});D.forwardRef(({className:e,...t},n)=>g.jsx(Tz,{ref:n,className:Ce("tw:rounded-full tw:w-8 tw:h-4","tw:bg-(image:--circle-grey-dark) tw:dark:bg-(image:--circle-grey-light) tw:checked:bg-(image:--circle-white)","tw:focus-visible:not-checked:bg-(image:--circle-light-blue)","tw:checked:bg-right tw:transition-[background-position]",e),...t}));const Yle=D.forwardRef(({className:e,disabled:t,size:n="md",type:r="button",...i},a)=>g.jsx("button",{className:Ce("tw:inline-flex tw:rounded-md tw:focus-ring","tw:text-lm-brand tw:dark:text-dm-brand","tw:highlight:text-lm-brand-dark tw:dark:highlight:text-dm-brand-dark tw:highlight:underline",{"tw:px-1.5 tw:py-1 tw:text-sm":n==="sm","tw:px-3 tw:py-1.5":n==="md","tw:px-4 tw:py-2 tw:text-lg":n==="lg","tw:pointer-events-none tw:opacity-65":t},e),disabled:t,type:r,...i,ref:a})),Az=D.createContext(null),Kle=({className:e,to:t,...n})=>{const r=D.useContext(Az);return g.jsx(o1,{role:"menuitem",to:t,className:({isActive:i})=>Ce("tw:px-4 tw:pt-2 tw:pb-[calc(0.5rem-3px)] tw:border-b-3","tw:highlight:text-lm-brand tw:dark:highlight:text-dm-brand","tw:font-bold tw:text-center tw:no-underline tw:transition-colors","tw:rounded-none tw:outline-none tw:focus-visible:inset-ring-2","tw:focus-visible:inset-ring-lm-brand/50 tw:dark:focus-visible:inset-ring-dm-brand/50",{"tw:text-lm-brand tw:dark:text-dm-brand":i,"tw:border-b-lm-brand tw:dark:border-b-dm-brand active":i,"tw:border-b-transparent tw:text-gray-500":!i,"tw:flex-grow":r==null?void 0:r.fill},e),...n})},Zle=({children:e,className:t,fill:n})=>g.jsx(Az.Provider,{value:{fill:n},children:g.jsx(ji,{role:"menubar",className:Ce("tw:flex tw:overflow-hidden",t),children:e})});Object.assign(Zle,{Pill:Kle});const Xle=({open:e,children:t,className:n,onClose:r,...i})=>{const a=D.useRef(null);return D.useEffect(()=>{var o,l;const f=document.body,u=f.style.overflow,h=f.style.paddingRight;if(e){const m=window.outerWidth-f.clientWidth,v=f.scrollHeight>f.clientHeight;f.style.overflow="hidden",v&&(f.style.paddingRight=`${m}px`),(o=a.current)==null||o.showModal()}else(l=a.current)==null||l.close();return()=>{f.style.overflow=u,f.style.paddingRight=h}},[e]),xc.createPortal(g.jsx("dialog",{ref:a,className:Ce("tw:bg-transparent tw:backdrop:bg-black/50",n),onCancel:o=>{o.preventDefault(),r()},...i,children:e&&t}),document.body)},jz=({open:e,onClose:t,variant:n="default",title:r,children:i,className:a,...o})=>{const{size:l="md",confirmText:f="Confirm",cancelText:u="Cancel",confirmDisabled:h,onConfirm:m,onClosed:v,..._}="onConfirm"in o?o:{...o},[x,w]=D.useState(e),S=D.useRef(null),O=D.useRef("cancel"),C=D.useCallback(T=>{T.preventDefault(),T.stopPropagation(),O.current="confirm",m==null||m()},[m]);return D.useEffect(()=>{if(e){O.current="cancel",w(!0);return}const T=S.current;if(T){delete S.current.dataset.open;let j=!1;const P=R=>{j||R.target!==T||(j=!0,w(!1),v==null||v(O.current))};return T.addEventListener("transitionend",P),()=>{T.removeEventListener("transitionend",P)}}},[v,e]),D.useEffect(()=>{const T=S.current;x&&T&&(T.dataset.open="")},[x]),g.jsx(Xle,{open:x,onClose:t,className:Ce({"tw:flex tw:w-screen tw:h-screen tw:max-w-screen tw:max-h-screen":x,"tw:overflow-hidden":n==="cover"},a),..._,children:g.jsx("form",{"data-testid":"transition-container",ref:S,className:Ce("tw:w-full tw:m-auto tw:p-4 tw:sm:p-6","tw:-translate-y-4 tw:data-open:translate-y-0 tw:opacity-0 tw:data-open:opacity-100","tw:transition-[opacity_,_translate] tw:duration-300",n!=="cover"&&{"tw:sm:w-sm":l==="sm","tw:md:w-lg":l==="md","tw:md:w-4xl":l==="lg","tw:md:w-6xl":l==="xl"},{"tw:h-full":n==="cover"}),onSubmit:C,children:g.jsx(ji,{className:Ce("tw:w-full",{"tw:h-full tw:relative tw:overflow-auto":n==="cover"}),children:n==="cover"?g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:Ce("tw:px-4 tw:py-3 tw:absolute tw:top-0 tw:left-0 tw:right-0 tw:z-3000","tw:flex tw:items-center tw:justify-between","tw:text-white tw:bg-linear-to-b tw:from-black/70 tw:to-black/10","tw:[text-shadow:_0_2px_4px_rgb(0_0_0/_0.8)]"),children:[g.jsx("h5",{children:r}),g.jsx($T,{onClick:t,label:"Close dialog"})]}),i]}):g.jsxs(g.Fragment,{children:[g.jsxs(ji.Header,{className:Ce("tw:sticky tw:top-0","tw:flex tw:items-center tw:justify-between tw:gap-x-2"),children:[g.jsx("h5",{className:Ce({"tw:text-danger":n==="danger"}),children:r}),g.jsx($T,{onClick:t,label:"Close dialog"})]}),g.jsx(ji.Body,{children:i}),m&&g.jsxs(ji.Footer,{"data-testid":"footer",className:Ce("tw:flex tw:justify-end tw:items-center tw:gap-x-2","tw:[&]:px-3 tw:sticky tw:bottom-0"),children:[g.jsx(Yle,{onClick:t,children:u}),g.jsx(la,{solid:!0,variant:n==="danger"?"danger":"primary",disabled:h,type:"submit",children:f})]})]})})})})},Pz=({className:e,children:t,loading:n=!1,variant:r="default"})=>g.jsx(S1,{className:Ce({"tw:[&]:border-danger":r==="error"},e),children:g.jsxs("h3",{className:Ce("tw:text-center",{"tw:text-gray-500 tw:dark:text-gray-400":r==="default","tw:text-danger":r==="error"}),children:[n&&g.jsxs(g.Fragment,{children:[g.jsx(Ke,{icon:gv,spin:!0}),g.jsx("span",{className:"tw:ml-2",children:t??"Loading..."})]}),!n&&t]})}),Rz=({variant:e,className:t,size:n="md",children:r})=>g.jsx("div",{className:Ce("tw:rounded-md tw:text-center",{"tw:p-2":n==="sm","tw:p-4":n==="md","tw:p-6":n==="lg","tw:[&]:text-white":e!=="warning","tw:bg-lm-brand tw:dark:bg-dm-brand":e==="success","tw:bg-danger":e==="error","tw:bg-warning tw:text-black":e==="warning"},t),children:r}),Mz=({placement:e="auto"}={})=>{const t=D.useRef(null),n=(()=>{const w=[];return e==="auto"&&w.push(ule()),w.push(cle({element:t})),w})(),[r,i]=D.useState(!1),{refs:a,floatingStyles:o,context:l,middlewareData:f}=Sle({placement:e==="auto"?void 0:e,open:r,onOpenChange:i,middleware:n}),u=_le(l,{delay:{open:300},move:!0}),{getFloatingProps:h,getReferenceProps:m}=Ole([u]),{isMounted:v,styles:_}=Tle(l,{duration:200}),x=D.useMemo(()=>{const w=l.placement.split("-")[0];return{top:"bottom",right:"left",bottom:"top",left:"right"}[w]??""},[l.placement]);return{anchor:{...m(),ref:a.setReference},tooltip:{...h(),refSetter:a.setFloating,isMounted:v,styles:{...o,..._},arrowPos:f.arrow,arrowRef:t,arrowSide:x}}},Nz=({children:e,isMounted:t,styles:n,refSetter:r,arrowRef:i,arrowPos:a,arrowSide:o,...l})=>{var f;return t&&g.jsx("div",{role:"tooltip","aria-live":"polite",className:Ce("tw:z-1000 tw:max-w-64",{"tw:pt-2.5":o==="top","tw:pb-2.5":o==="bottom","tw:pr-2.5":o==="right","tw:pl-2.5":o==="left"}),ref:r,style:n,...l,children:g.jsxs("div",{className:"tw:relative tw:px-1.5 tw:py-1 tw:rounded tw:bg-black/90 tw:text-white tw:text-center",children:[g.jsx("span",{className:"tw:sr-only",children:"Tooltip: "}),e,g.jsx("div",{ref:i,className:Ce("tw:absolute","tw:border-l-6 tw:border-r-6 tw:border-b-6 tw:border-l-transparent tw:border-r-transparent tw:border-b-black/90",{"tw:rotate-180":o==="bottom","tw:rotate-90 tw:mr-[-3px]":o==="right","tw:rotate-270 tw:ml-[-3px]":o==="left"}),style:{left:a==null?void 0:a.x,top:a==null?void 0:a.y,[o]:`${-(((f=i.current)==null?void 0:f.offsetWidth)??0)/2}px`},"data-testid":"arrow"})]})})},Qle=({isOpen:e,onClose:t,forceUpdate:n})=>{const[r,,i]=Wt(),a=D.useCallback(()=>{i(),n()},[n,i]);return e?g.jsxs(ji,{role:"alert",className:Ce("tw:w-[700px] tw:max-w-[calc(100%-30px)]","tw:fixed tw:top-[35px] tw:left-[50%] tw:translate-x-[-50%] tw:z-[1040]"),children:[g.jsxs(ji.Header,{className:"tw:flex tw:items-center tw:justify-between",children:[g.jsx("h5",{children:"This app has just been updated!"}),g.jsx($T,{onClick:t})]}),g.jsxs(ji.Body,{className:"tw:flex tw:gap-4 tw:items-center tw:justify-between tw:max-md:flex-col",children:["Restart it to enjoy the new features.",g.jsxs(la,{disabled:r,variant:"secondary",solid:!0,onClick:a,children:[!r&&g.jsxs(g.Fragment,{children:["Restart now ",g.jsx(Ke,{icon:FJ})]}),r&&g.jsx(g.Fragment,{children:"Restarting..."})]})]})]}):null},Lz=({children:e,title:t})=>g.jsx("div",{className:"tw:pt-4",children:g.jsxs(S1,{className:"tw:p-4 tw:w-full tw:lg:w-[65%] tw:m-auto",children:[g.jsx("h2",{children:t}),e]})}),Dz=({to:e="/",children:t="Home"})=>g.jsxs(Lz,{title:"Oops! We could not find requested route.",children:[g.jsx("p",{children:"Use your browser's back button to navigate to the page you have previously come from, or just press this button."}),g.jsx("br",{}),g.jsx(la,{inline:!0,to:e,size:"lg",children:t})]});function ka(e){return D.useMemo(()=>e,[e])}function Ia(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const Jle=async()=>{var t;(await((t=navigator.serviceWorker)==null?void 0:t.getRegistrations())??[]).forEach(({waiting:n})=>{n==null||n.addEventListener("statechange",r=>{var i;((i=r.target)==null?void 0:i.state)==="activated"&&window.location.reload()}),n==null||n.postMessage({type:"SKIP_WAITING"})})},kz=({fetchServers:e,servers:t,settings:n,appUpdated:r,resetAppUpdate:i})=>{var S;const{MainHeader:a,Home:o,ShlinkWebComponentContainer:l,CreateServer:f,EditServer:u,Settings:h,ManageServers:m,ShlinkVersionsContainer:v}=ka(kz),_=Lr(),x=D.useRef(t),w=_.pathname==="/";return D.useEffect(()=>{Object.keys(x.current).length===0&&e()},[e]),D.useEffect(()=>{var O;_se(((O=n.ui)==null?void 0:O.theme)??_3())},[(S=n.ui)==null?void 0:S.theme]),g.jsxs("div",{className:"tw:px-3 tw:h-full",children:[g.jsx(a,{}),g.jsxs("div",{className:"tw:h-full tw:pt-(--header-height)",children:[g.jsx("div",{"data-testid":"shlink-wrapper",className:Ce("tw:min-h-full tw:pb-[calc(var(--footer-height)+var(--footer-margin))] tw:-mb-[calc(var(--footer-height)+var(--footer-margin))]",{"tw:flex tw:items-center tw:pt-4":w}),children:g.jsxs(i1,{children:[g.jsx(xt,{index:!0,element:g.jsx(o,{})}),g.jsx(xt,{path:"/settings",children:["","*"].map(O=>g.jsx(xt,{path:O,element:g.jsx(h,{})},O))}),g.jsx(xt,{path:"/manage-servers",element:g.jsx(m,{})}),g.jsx(xt,{path:"/server/create",element:g.jsx(f,{})}),g.jsx(xt,{path:"/server/:serverId/edit",element:g.jsx(u,{})}),g.jsx(xt,{path:"/server/:serverId",children:["","*"].map(O=>g.jsx(xt,{path:O,element:g.jsx(l,{})},O))}),g.jsx(xt,{path:"*",element:g.jsx(Dz,{})})]})}),g.jsx("div",{className:"tw:h-(--footer-height) tw:mt-(--footer-margin) tw:md:px-4",children:g.jsx(v,{})})]}),g.jsx(Qle,{isOpen:r,onClose:i,forceUpdate:Jle})]})},eue=Ia(kz,["MainHeader","Home","ShlinkWebComponentContainer","CreateServer","EditServer","Settings","ManageServers","ShlinkVersionsContainer"]);function _r(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 tue=typeof Symbol=="function"&&Symbol.observable||"@@observable",gL=tue,Zx=()=>Math.random().toString(36).substring(7).split("").join("."),nue={INIT:`@@redux/INIT${Zx()}`,REPLACE:`@@redux/REPLACE${Zx()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Zx()}`},k0=nue;function P3(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 Iz(e,t,n){if(typeof e!="function")throw new Error(_r(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(_r(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(_r(1));return n(Iz)(e,t)}let r=e,i=t,a=new Map,o=a,l=0,f=!1;function u(){o===a&&(o=new Map,a.forEach((S,O)=>{o.set(O,S)}))}function h(){if(f)throw new Error(_r(3));return i}function m(S){if(typeof S!="function")throw new Error(_r(4));if(f)throw new Error(_r(5));let O=!0;u();const C=l++;return o.set(C,S),function(){if(O){if(f)throw new Error(_r(6));O=!1,u(),o.delete(C),a=null}}}function v(S){if(!P3(S))throw new Error(_r(7));if(typeof S.type>"u")throw new Error(_r(8));if(typeof S.type!="string")throw new Error(_r(17));if(f)throw new Error(_r(9));try{f=!0,i=r(i,S)}finally{f=!1}return(a=o).forEach(C=>{C()}),S}function _(S){if(typeof S!="function")throw new Error(_r(10));r=S,v({type:k0.REPLACE})}function x(){const S=m;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(_r(11));function C(){const j=O;j.next&&j.next(h())}return C(),{unsubscribe:S(C)}},[gL](){return this}}}return v({type:k0.INIT}),{dispatch:v,subscribe:m,getState:h,replaceReducer:_,[gL]:x}}function rue(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:k0.INIT})>"u")throw new Error(_r(12));if(typeof n(void 0,{type:k0.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(_r(13))})}function R3(e){const t=Object.keys(e),n={};for(let a=0;a<t.length;a++){const o=t[a];typeof e[o]=="function"&&(n[o]=e[o])}const r=Object.keys(n);let i;try{rue(n)}catch(a){i=a}return function(o={},l){if(i)throw i;let f=!1;const u={};for(let h=0;h<r.length;h++){const m=r[h],v=n[m],_=o[m],x=v(_,l);if(typeof x>"u")throw l&&l.type,new Error(_r(14));u[m]=x,f=f||x!==_}return f=f||r.length!==Object.keys(o).length,f?u:o}}function I0(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function iue(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(_r(15))};const o={getState:i.getState,dispatch:(f,...u)=>a(f,...u)},l=e.map(f=>f(o));return a=I0(...l)(i.dispatch),{...i,dispatch:a}}}function aue(e){return P3(e)&&"type"in e&&typeof e.type=="string"}var $z=Symbol.for("immer-nothing"),yL=Symbol.for("immer-draftable"),Di=Symbol.for("immer-state");function Ea(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var sd=Object.getPrototypeOf;function uc(e){return!!e&&!!e[Di]}function ds(e){var t;return e?Bz(e)||Array.isArray(e)||!!e[yL]||!!((t=e.constructor)!=null&&t[yL])||E1(e)||T1(e):!1}var oue=Object.prototype.constructor.toString();function Bz(e){if(!e||typeof e!="object")return!1;const t=sd(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)===oue}function Sm(e,t){C1(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function C1(e){const t=e[Di];return t?t.type_:Array.isArray(e)?1:E1(e)?2:T1(e)?3:0}function BT(e,t){return C1(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Uz(e,t,n){const r=C1(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function sue(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function E1(e){return e instanceof Map}function T1(e){return e instanceof Set}function zu(e){return e.copy_||e.base_}function UT(e,t){if(E1(e))return new Map(e);if(T1(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Bz(e))return sd(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[Di];let r=Reflect.ownKeys(n);for(let i=0;i<r.length;i++){const a=r[i],o=n[a];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(n[a]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[a]})}return Object.create(sd(e),n)}function M3(e,t=!1){return A1(e)||uc(e)||!ds(e)||(C1(e)>1&&(e.set=e.add=e.clear=e.delete=lue),Object.freeze(e),t&&Sm(e,(n,r)=>M3(r,!0))),e}function lue(){Ea(2)}function A1(e){return Object.isFrozen(e)}var uue={};function cc(e){const t=uue[e];return t||Ea(0,e),t}var Om;function zz(){return Om}function cue(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function bL(e,t){t&&(cc("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function zT(e){FT(e),e.drafts_.forEach(fue),e.drafts_=null}function FT(e){e===Om&&(Om=e.parent_)}function wL(e){return Om=cue(Om,e)}function fue(e){const t=e[Di];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function _L(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Di].modified_&&(zT(t),Ea(4)),ds(e)&&(e=$0(t,e),t.parent_||B0(t,e)),t.patches_&&cc("Patches").generateReplacementPatches_(n[Di].base_,e,t.patches_,t.inversePatches_)):e=$0(t,n,[]),zT(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==$z?e:void 0}function $0(e,t,n){if(A1(t))return t;const r=t[Di];if(!r)return Sm(t,(i,a)=>xL(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return B0(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,o=!1;r.type_===3&&(a=new Set(i),i.clear(),o=!0),Sm(a,(l,f)=>xL(e,r,i,l,f,n,o)),B0(e,i,!1),n&&e.patches_&&cc("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function xL(e,t,n,r,i,a,o){if(uc(i)){const l=a&&t&&t.type_!==3&&!BT(t.assigned_,r)?a.concat(r):void 0,f=$0(e,i,l);if(Uz(n,r,f),uc(f))e.canAutoFreeze_=!1;else return}else o&&n.add(i);if(ds(i)&&!A1(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$0(e,i),(!t||!t.scope_.parent_)&&B0(e,i)}}function B0(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&M3(t,n)}function due(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:zz(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=N3;n&&(i=[r],a=Cm);const{revoke:o,proxy:l}=Proxy.revocable(i,a);return r.draft_=l,r.revoke_=o,l}var N3={get(e,t){if(t===Di)return e;const n=zu(e);if(!BT(n,t))return hue(e,n,t);const r=n[t];return e.finalized_||!ds(r)?r:r===Xx(e.base_,t)?(Qx(e),e.copy_[t]=VT(r,e)):r},has(e,t){return t in zu(e)},ownKeys(e){return Reflect.ownKeys(zu(e))},set(e,t,n){const r=Fz(zu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=Xx(zu(e),t),a=i==null?void 0:i[Di];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(sue(n,i)&&(n!==void 0||BT(e.base_,t)))return!0;Qx(e),qT(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 Xx(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Qx(e),qT(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=zu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Ea(11)},getPrototypeOf(e){return sd(e.base_)},setPrototypeOf(){Ea(12)}},Cm={};Sm(N3,(e,t)=>{Cm[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Cm.deleteProperty=function(e,t){return Cm.set.call(this,e,t,void 0)};Cm.set=function(e,t,n){return N3.set.call(this,e[0],t,n,e[0])};function Xx(e,t){const n=e[Di];return(n?zu(n):e)[t]}function hue(e,t,n){var i;const r=Fz(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Fz(e,t){if(!(t in e))return;let n=sd(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=sd(n)}}function qT(e){e.modified_||(e.modified_=!0,e.parent_&&qT(e.parent_))}function Qx(e){e.copy_||(e.copy_=UT(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var pue=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const o=this;return function(f=a,...u){return o.produce(f,h=>n.call(this,h,...u))}}typeof n!="function"&&Ea(6),r!==void 0&&typeof r!="function"&&Ea(7);let i;if(ds(t)){const a=wL(this),o=VT(t,void 0);let l=!0;try{i=n(o),l=!1}finally{l?zT(a):FT(a)}return bL(a,r),_L(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===$z&&(i=void 0),this.autoFreeze_&&M3(i,!0),r){const a=[],o=[];cc("Patches").generateReplacementPatches_(t,i,a,o),r(a,o)}return i}else Ea(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(o,...l)=>this.produceWithPatches(o,f=>t(f,...l));let r,i;return[this.produce(t,n,(o,l)=>{r=o,i=l}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){ds(e)||Ea(8),uc(e)&&(e=mue(e));const t=wL(this),n=VT(e,void 0);return n[Di].isManual_=!0,FT(t),n}finishDraft(e,t){const n=e&&e[Di];(!n||!n.isManual_)&&Ea(9);const{scope_:r}=n;return bL(r,t),_L(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=cc("Patches").applyPatches_;return uc(e)?r(e,t):this.produce(e,i=>r(i,t))}};function VT(e,t){const n=E1(e)?cc("MapSet").proxyMap_(e,t):T1(e)?cc("MapSet").proxySet_(e,t):due(e,t);return(t?t.scope_:zz()).drafts_.push(n),n}function mue(e){return uc(e)||Ea(10,e),qz(e)}function qz(e){if(!ds(e)||A1(e))return e;const t=e[Di];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=UT(e,t.scope_.immer_.useStrictShallowCopy_)}else n=UT(e,!0);return Sm(n,(r,i)=>{Uz(n,r,qz(i))}),t&&(t.finalized_=!1),n}var ki=new pue,Vz=ki.produce;ki.produceWithPatches.bind(ki);ki.setAutoFreeze.bind(ki);ki.setUseStrictShallowCopy.bind(ki);ki.applyPatches.bind(ki);ki.createDraft.bind(ki);ki.finishDraft.bind(ki);function Hz(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var vue=Hz(),gue=Hz,yue=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?I0:I0.apply(null,arguments)},bue=e=>e&&typeof e.match=="function";function Gr(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(is(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=>aue(r)&&r.type===e,n}var Wz=class Ip extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,Ip.prototype)}static get[Symbol.species](){return Ip}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new Ip(...t[0].concat(this)):new Ip(...t.concat(this))}};function SL(e){return ds(e)?Vz(e,()=>{}):e}function by(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function wue(e){return typeof e=="boolean"}var _ue=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let o=new Wz;return n&&(wue(n)?o.push(vue):o.push(gue(n.extraArgument))),o},xue="RTK_autoBatch",OL=e=>t=>{setTimeout(t,e)},Sue=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,o=!1;const l=new Set,f=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:OL(10):e.type==="callback"?e.queueNotification:OL(e.timeout),u=()=>{o=!1,a&&(a=!1,l.forEach(h=>h()))};return Object.assign({},r,{subscribe(h){const m=()=>i&&h(),v=r.subscribe(m);return l.add(h),()=>{v(),l.delete(h)}},dispatch(h){var m;try{return i=!((m=h==null?void 0:h.meta)!=null&&m[xue]),a=!i,a&&(o||(o=!0,f(u))),r.dispatch(h)}finally{i=!0}}})},Oue=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Wz(e);return r&&i.push(Sue(typeof r=="object"?r:void 0)),i};function Gz(e){const t=_ue(),{reducer:n=void 0,middleware:r,devTools:i=!0,duplicateMiddlewareCheck:a=!0,preloadedState:o=void 0,enhancers:l=void 0}=e||{};let f;if(typeof n=="function")f=n;else if(P3(n))f=R3(n);else throw new Error(is(1));let u;typeof r=="function"?u=r(t):u=t();let h=I0;i&&(h=yue({trace:!1,...typeof i=="object"&&i}));const m=iue(...u),v=Oue(m);let _=typeof l=="function"?l(v):v();const x=h(..._);return Iz(f,o,x)}function Yz(e){const t={},n=[];let r;const i={addCase(a,o){const l=typeof a=="string"?a:a.type;if(!l)throw new Error(is(28));if(l in t)throw new Error(is(29));return t[l]=o,i},addMatcher(a,o){return n.push({matcher:a,reducer:o}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function Cue(e){return typeof e=="function"}function Eue(e,t){let[n,r,i]=Yz(t),a;if(Cue(e))a=()=>SL(e());else{const l=SL(e);a=()=>l}function o(l=a(),f){let u=[n[f.type],...r.filter(({matcher:h})=>h(f)).map(({reducer:h})=>h)];return u.filter(h=>!!h).length===0&&(u=[i]),u.reduce((h,m)=>{if(m)if(uc(h)){const _=m(h,f);return _===void 0?h:_}else{if(ds(h))return Vz(h,v=>m(v,f));{const v=m(h,f);if(v===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return v}}return h},l)}return o.getInitialState=a,o}var Tue=(e,t)=>bue(e)?e.match(t):e(t);function Aue(...e){return t=>e.some(n=>Tue(n,t))}var jue="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pue=(e=21)=>{let t="",n=e;for(;n--;)t+=jue[Math.random()*64|0];return t},Rue=["name","message","stack","code"],Jx=class{constructor(e,t){bf(this,"_type");this.payload=e,this.meta=t}},CL=class{constructor(e,t){bf(this,"_type");this.payload=e,this.meta=t}},Mue=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of Rue)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},EL="External signal was aborted",Kz=(()=>{function e(t,n,r){const i=Gr(t+"/fulfilled",(f,u,h,m)=>({payload:f,meta:{...m||{},arg:h,requestId:u,requestStatus:"fulfilled"}})),a=Gr(t+"/pending",(f,u,h)=>({payload:void 0,meta:{...h||{},arg:u,requestId:f,requestStatus:"pending"}})),o=Gr(t+"/rejected",(f,u,h,m,v)=>({payload:m,error:(r&&r.serializeError||Mue)(f||"Rejected"),meta:{...v||{},arg:h,requestId:u,rejectedWithValue:!!m,requestStatus:"rejected",aborted:(f==null?void 0:f.name)==="AbortError",condition:(f==null?void 0:f.name)==="ConditionError"}}));function l(f,{signal:u}={}){return(h,m,v)=>{const _=r!=null&&r.idGenerator?r.idGenerator(f):Pue(),x=new AbortController;let w,S;function O(T){S=T,x.abort()}u&&(u.aborted?O(EL):u.addEventListener("abort",()=>O(EL),{once:!0}));const C=async function(){var P,R;let T;try{let $=(P=r==null?void 0:r.condition)==null?void 0:P.call(r,f,{getState:m,extra:v});if(Lue($)&&($=await $),$===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const q=new Promise((K,H)=>{w=()=>{H({name:"AbortError",message:S||"Aborted"})},x.signal.addEventListener("abort",w)});h(a(_,f,(R=r==null?void 0:r.getPendingMeta)==null?void 0:R.call(r,{requestId:_,arg:f},{getState:m,extra:v}))),T=await Promise.race([q,Promise.resolve(n(f,{dispatch:h,getState:m,extra:v,requestId:_,signal:x.signal,abort:O,rejectWithValue:(K,H)=>new Jx(K,H),fulfillWithValue:(K,H)=>new CL(K,H)})).then(K=>{if(K instanceof Jx)throw K;return K instanceof CL?i(K.payload,_,f,K.meta):i(K,_,f)})])}catch($){T=$ instanceof Jx?o(null,_,f,$.payload,$.meta):o($,_,f)}finally{w&&x.signal.removeEventListener("abort",w)}return r&&!r.dispatchConditionRejection&&o.match(T)&&T.meta.condition||h(T),T}();return Object.assign(C,{abort:O,requestId:_,arg:f,unwrap(){return C.then(Nue)}})}}return Object.assign(l,{pending:a,rejected:o,fulfilled:i,settled:Aue(o,i),typePrefix:t})}return e.withTypes=()=>e,e})();function Nue(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Lue(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Due=Symbol.for("rtk-slice-createasyncthunk");function kue(e,t){return`${e}/${t}`}function Iue({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[Due];return function(i){const{name:a,reducerPath:o=a}=i;if(!a)throw new Error(is(11));const l=(typeof i.reducers=="function"?i.reducers(Bue()):i.reducers)||{},f=Object.keys(l),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},h={addCase(j,P){const R=typeof j=="string"?j:j.type;if(!R)throw new Error(is(12));if(R in u.sliceCaseReducersByType)throw new Error(is(13));return u.sliceCaseReducersByType[R]=P,h},addMatcher(j,P){return u.sliceMatchers.push({matcher:j,reducer:P}),h},exposeAction(j,P){return u.actionCreators[j]=P,h},exposeCaseReducer(j,P){return u.sliceCaseReducersByName[j]=P,h}};f.forEach(j=>{const P=l[j],R={reducerName:j,type:kue(a,j),createNotation:typeof i.reducers=="function"};zue(P)?que(R,P,h,t):Uue(R,P,h)});function m(){const[j={},P=[],R=void 0]=typeof i.extraReducers=="function"?Yz(i.extraReducers):[i.extraReducers],$={...j,...u.sliceCaseReducersByType};return Eue(i.initialState,q=>{for(let K in $)q.addCase(K,$[K]);for(let K of u.sliceMatchers)q.addMatcher(K.matcher,K.reducer);for(let K of P)q.addMatcher(K.matcher,K.reducer);R&&q.addDefaultCase(R)})}const v=j=>j,_=new Map,x=new WeakMap;let w;function S(j,P){return w||(w=m()),w(j,P)}function O(){return w||(w=m()),w.getInitialState()}function C(j,P=!1){function R(q){let K=q[j];return typeof K>"u"&&P&&(K=by(x,R,O)),K}function $(q=v){const K=by(_,P,()=>new WeakMap);return by(K,q,()=>{const H={};for(const[G,te]of Object.entries(i.selectors??{}))H[G]=$ue(te,q,()=>by(x,q,O),P);return H})}return{reducerPath:j,getSelectors:$,get selectors(){return $(R)},selectSlice:R}}const T={name:a,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:O,...C(o),injectInto(j,{reducerPath:P,...R}={}){const $=P??o;return j.inject({reducerPath:$,reducer:S},R),{...T,...C($,!0)}}};return T}}function $ue(e,t,n,r){function i(a,...o){let l=t(a);return typeof l>"u"&&r&&(l=n()),e(l,...o)}return i.unwrapped=e,i}var Un=Iue();function Bue(){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 Uue({type:e,reducerName:t,createNotation:n},r,i){let a,o;if("reducer"in r){if(n&&!Fue(r))throw new Error(is(17));a=r.reducer,o=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,o?Gr(e,o):Gr(e))}function zue(e){return e._reducerDefinitionType==="asyncThunk"}function Fue(e){return e._reducerDefinitionType==="reducerWithPrepare"}function que({type:e,reducerName:t},n,r,i){if(!i)throw new Error(is(18));const{payloadCreator:a,fulfilled:o,pending:l,rejected:f,settled:u,options:h}=n,m=i(e,a,h);r.exposeAction(t,m),o&&r.addCase(m.fulfilled,o),l&&r.addCase(m.pending,l),f&&r.addCase(m.rejected,f),u&&r.addMatcher(m.settled,u),r.exposeCaseReducer(t,{fulfilled:o||wy,pending:l||wy,rejected:f||wy,settled:u||wy})}function wy(){}function is(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:Vue,reducer:Hue}=Un({name:"shlink/appUpdates",initialState:!1,reducers:{appUpdateAvailable:()=>!0,resetAppUpdate:()=>!1}}),{appUpdateAvailable:Wue,resetAppUpdate:Gue}=Vue,Yue=Hue,Kue=(e,t)=>{e.factory("App",eue),e.decorator("App",t(["servers","settings","appUpdated"],["fetchServers","resetAppUpdate"])),e.serviceFactory("appUpdateAvailable",()=>Wue),e.serviceFactory("resetAppUpdate",()=>Gue)};var Zz=e=>{throw TypeError(e)},Xz=(e,t,n)=>t.has(e)||Zz("Cannot "+n),TL=(e,t,n)=>(Xz(e,t,"read from private field"),n?n.call(e):t.get(e)),Zue=(e,t,n)=>t.has(e)?Zz("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Xue=(e,t,n,r)=>(Xz(e,t,"write to private field"),t.set(e,n),n);const AL={"Content-Type":"application/json"},jL=e=>e!=null&&e.body?e?{...e,headers:{...e.headers??{},...AL}}:{headers:AL}:e;var $p;let Que=class{constructor(t=globalThis.fetch.bind(globalThis)){Zue(this,$p),Xue(this,$p,t)}async jsonRequest(t,n){const r=await TL(this,$p).call(this,t,jL(n)),i=await r.json();if(!r.ok)throw i;return i}async emptyRequest(t,n){const r=await TL(this,$p).call(this,t,jL(n));if(!r.ok)throw await r.json()}};$p=new WeakMap;const Qz=(e,t)=>e.reduce((n,r)=>{const i=t(r);return n[i]=(n[i]||0)+1,n},{}),Jz=(e,t)=>e.reduce((n,r)=>{const i=t(r);return(n[i]=n[i]||[]).push(r),n},{}),e2=e=>Object.prototype.toString.call(e)==="[object Object]",eF=(e,t)=>{const n={};return(...r)=>{const i=e(...r);if(n[i])return n[i];const a=t(...r);return n[i]=a,a}},j1=(e,t)=>{const n={...e};return!e2(e)||!e2(t)||Object.keys(t).forEach(r=>{e2(t[r])?n[r]=r in e&&e[r]!==void 0?j1(e[r],t[r]):{...t[r]}:n[r]=t[r]}),n},tF=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),Jue=(e,t)=>[...e].sort((n,r)=>{const i=t(n),a=t(r);return i===a?0:i<a?-1:1}),Gf=(e,t)=>{const n=[];for(let r=0;r<e.length;r+=t)n.push(e.slice(r,r+t));return n},PL=(e,t)=>Object.fromEntries(e.map((n,r)=>[n,t[r]]));function nF(e,t=globalThis.setTimeout,n=globalThis.clearTimeout){const r=D.useRef(null),i=D.useCallback(()=>{r.current&&n(r.current)},[n]),a=D.useCallback((o,l)=>{i(),r.current=t(()=>{o(),r.current=null},l??e)},[i,e,t]);return D.useEffect(()=>i,[i]),D.useMemo(()=>({setTimeout:a,clearCurrentTimeout:i}),[i,a])}const ece=2e3,tce=(e={},t,n=globalThis.setTimeout,r=globalThis.clearTimeout)=>{const{initialValue:i=!1,delay:a=ece}=typeof e=="boolean"?{initialValue:e,delay:t}:e,{setTimeout:o}=nF(a,n,r),[l,f]=D.useState(i),u=D.useRef(i),h=D.useCallback(()=>{f(!u.current),o(()=>f(u.current))},[o]);return[l,h]};function nce(e=!1,t=!1){const[n,r]=D.useState(e),i=D.useCallback(()=>r(l=>!l),[]),a=D.useCallback(()=>r(!0),[]),o=D.useCallback(()=>r(!1),[]);return t?{flag:n,toggle:i,setToTrue:a,setToFalse:o}:[n,i,a,o]}const rce=D.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:Ce("tw:px-4 tw:py-3 tw:rounded-t-md","tw:bg-lm-primary tw:dark:bg-dm-primary tw:border-b tw:border-lm-border tw:dark:border-dm-border",e),...t,ref:n})),ice=D.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:Ce("tw:p-4 tw:bg-lm-primary tw:dark:bg-dm-primary tw:first:rounded-t-md","tw:first:rounded-t-md tw:last:rounded-b-md",e),...t,ref:n})),ace=D.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:Ce("tw:px-4 tw:py-3 tw:rounded-b-md","tw:bg-lm-primary tw:dark:bg-dm-primary tw:border-t tw:border-lm-border tw:dark:border-dm-border",e),...t,ref:n})),oce=D.forwardRef(({className:e,...t},n)=>g.jsx("div",{className:Ce("tw:group/card tw:rounded-md tw:shadow-md","tw:border tw:border-lm-border tw:dark:border-dm-border tw:bg-lm-primary tw:dark:bg-dm-primary",e),...t,ref:n})),fr=Object.assign(oce,{Body:ice,Header:rce,Footer:ace}),qt=D.forwardRef(({bodyClassName:e,children:t,...n},r)=>{const{title:i,titleSize:a="md",...o}="title"in n?n:{...n,title:void 0,titleSize:void 0};return g.jsxs(fr,{...o,ref:r,children:[i&&g.jsxs(fr.Header,{children:[a==="lg"&&g.jsx("h4",{children:i}),a==="md"&&g.jsx("h5",{children:i}),a==="sm"&&g.jsx("h6",{children:i})]}),g.jsx(fr.Body,{className:e,children:t})]})}),Av=D.createContext(void 0),Zd=D.createContext({responsive:!0,size:"md"}),sce=({children:e,className:t})=>{const{responsive:n}=D.useContext(Zd);return g.jsx(Av.Provider,{value:{section:"head"},children:g.jsx("thead",{className:Ce({"tw:hidden tw:lg:table-header-group":n},t),children:e})})},lce=({children:e,className:t})=>{const{responsive:n}=D.useContext(Zd);return g.jsx(Av.Provider,{value:{section:"body"},children:g.jsx("tbody",{className:Ce({"tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3":n},t),children:e})})},uce=({children:e,className:t})=>{const{responsive:n}=D.useContext(Zd);return g.jsx(Av.Provider,{value:{section:"footer"},children:g.jsx("tfoot",{className:Ce({"tw:lg:table-row-group tw:flex tw:flex-col tw:gap-y-3 tw:mt-4":n},t),children:e})})},cce=({children:e,className:t,...n})=>{const r=D.useContext(Av),i=(r==null?void 0:r.section)==="body",{responsive:a}=D.useContext(Zd);return g.jsx("tr",{className:Ce("tw:group",{"tw:lg:table-row tw:flex tw:flex-col":a,"tw:lg:border-0 tw:border-y-2 tw:border-lm-border tw:dark:border-dm-border":a,"tw:hover:bg-lm-primary tw:dark:hover:bg-dm-primary":i,"tw:group-[&]/card:hover:bg-lm-secondary tw:dark:group-[&]/card:hover:bg-dm-secondary":i},t),...n,children:e})},fce=({children:e,className:t,columnName:n,type:r,...i})=>{const a=D.useContext(Av),o=r??((a==null?void 0:a.section)!=="body"?"th":"td"),{responsive:l,size:f}=D.useContext(Zd);return g.jsx(o,{"data-column":l?n:void 0,className:Ce("tw:border-lm-border tw:dark:border-dm-border",{"tw:p-1":f==="sm","tw:p-2":f==="md","tw:p-3":f==="lg","tw:border-b-1":!l,"tw:block tw:lg:table-cell tw:not-last:border-b-1 tw:lg:border-b-1":l,"tw:before:lg:hidden tw:before:content-[attr(data-column)] tw:before:font-bold tw:before:mr-1":l&&o==="td"},t),...i,children:e})},dce=({header:e,footer:t,children:n,responsive:r=!0,size:i="md",...a})=>g.jsx(Zd.Provider,{value:{responsive:r,size:i},children:g.jsxs("table",{className:"tw:w-full",...a,children:[g.jsx(sce,{children:e}),g.jsx(lce,{children:n}),t&&g.jsx(uce,{children:t})]})}),tt=Object.assign(dce,{Row:cce,Cell:fce}),Pn=({children:e,className:t,disabled:n,variant:r="primary",size:i="md",inline:a=!1,solid:o=!1,type:l="button",...f})=>{const u="to"in f?gn:"button",h=u===gn?void 0:l;return g.jsx(u,{className:Ce({"tw:inline-flex":a,"tw:flex":!a},"tw:gap-2 tw:items-center tw:justify-center","tw:border tw:rounded-md tw:no-underline","tw:transition-colors",{"tw:focus-ring":r==="primary","tw:focus-ring-secondary":r==="secondary","tw:focus-ring-danger":r==="danger"},{"tw:px-1.5 tw:py-1 tw:text-sm":i==="sm","tw:px-3 tw:py-1.5":i==="md","tw:px-4 tw:py-2 tw:text-lg":i==="lg"},{"tw:border-lm-brand tw:dark:border-dm-brand":r==="primary","tw:text-lm-brand tw:dark:text-dm-brand":r==="primary"&&!o,"tw:border-zinc-500":r==="secondary","tw:text-zinc-500":r==="secondary"&&!o,"tw:border-danger":r==="danger","tw:text-danger":r==="danger"&&!o},o&&{"tw:text-white":!0,"tw:bg-lm-brand tw:dark:bg-dm-brand":r==="primary","tw:highlight:bg-lm-brand-dark tw:dark:highlight:bg-dm-brand-dark":r==="primary","tw:highlight:border-lm-brand-dark tw:dark:highlight:border-dm-brand-dark":r==="primary","tw:bg-zinc-500":r==="secondary","tw:highlight:bg-zinc-600 tw:highlight:border-zinc-600":r==="secondary","tw:bg-danger":r==="danger","tw:highlight:bg-danger-dark tw:highlight:border-danger-dark":r==="danger"},!n&&{"tw:highlight:text-white":!o,"tw:highlight:bg-lm-brand tw:dark:highlight:bg-dm-brand":r==="primary","tw:highlight:bg-zinc-500":r==="secondary","tw:highlight:bg-danger":r==="danger"},{"tw:pointer-events-none tw:opacity-65":n},t),disabled:n,type:h,...f,children:e})},rF=D.forwardRef(({className:e,onChange:t,...n},r)=>{const i=D.useCallback(a=>t==null?void 0:t(a.target.checked,a),[t]);return g.jsx("input",{ref:r,type:"checkbox",className:Ce("tw:appearance-none tw:focus-ring tw:cursor-[inherit]","tw:border-1 tw:border-lm-input-border tw:dark:border-dm-input-border","tw:bg-lm-primary tw:dark:bg-dm-primary tw:checked:bg-lm-brand tw:dark:checked:bg-dm-brand tw:bg-no-repeat","tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input",e),onChange:i,...n})}),iF=D.forwardRef(({className:e,...t},n)=>g.jsx(rF,{ref:n,className:Ce("tw:rounded-sm tw:w-4 tw:h-4 tw:checked:bg-(image:--tick) tw:bg-center",e),...t})),Em=({onClick:e,className:t,label:n="Close"})=>g.jsx("button",{type:"button",onClick:e,className:Ce("tw:opacity-50 tw:highlight:opacity-80 tw:transition-opacity","tw:rounded-md tw:focus-ring",t),"aria-label":n,children:g.jsx(Ke,{icon:f1,size:"xl"})}),Ti=D.forwardRef(({borderless:e=!1,size:t="md",feedback:n,className:r,disabled:i,readOnly:a,...o},l)=>{const f=!i&&!a;return g.jsx("input",{ref:l,className:Ce("tw:w-full",{"tw:focus-ring":!n,"tw:focus-ring-danger":n==="error"},{"tw:px-2 tw:py-1 tw:text-sm":t==="sm","tw:px-3 tw:py-1.5":t==="md","tw:px-4 tw:py-2 tw:text-xl":t==="lg"},{"tw:rounded-md tw:border":!e,"tw:border-lm-input-border tw:dark:border-dm-input-border":!e&&!n,"tw:border-danger":!e&&n==="error","tw:bg-lm-disabled-input tw:dark:bg-dm-disabled-input":!f,"tw:bg-lm-primary tw:dark:bg-dm-primary":f,"tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input":f},r),disabled:i,readOnly:a,...o})}),_o=({required:e,children:t,className:n,...r})=>g.jsxs("label",{className:Ce("tw:cursor-pointer",n),...r,children:[t,e&&g.jsx("span",{className:"tw:text-danger tw:ml-1","data-testid":"required-indicator",children:"*"})]}),L3=({children:e,helpText:t,error:n,"data-testid":r})=>g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-1","data-testid":r,children:[e,t&&g.jsx("small",{"data-testid":r?`${r}-help-text`:"help-text",className:"tw:text-gray-500 tw:dark:text-gray-400",children:t}),n&&g.jsx("span",{"data-testid":r?`${r}-error`:"error",className:"tw:text-danger",children:n})]}),ua=D.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:a,"data-testid":o,...l},f)=>{const u=D.useId();return g.jsxs(L3,{error:i,helpText:a,"data-testid":o,children:[g.jsx(_o,{htmlFor:u,required:n,children:e}),g.jsx(Ti,{ref:f,id:u,className:t,required:n||r,feedback:i?"error":void 0,...l})]})}),hce=D.forwardRef(({containerClassName:e,className:t,size:n,...r},i)=>{const[a,o,,l]=nce(!1),f=D.useRef(null),u=D.useCallback(({relatedTarget:h})=>{var m;(m=f.current)!=null&&m.contains(h)||l()},[f,l]);return g.jsxs("div",{className:Ce("tw:group tw:relative",e),ref:f,onBlurCapture:u,children:[g.jsx(Ti,{ref:i,type:a?"text":"password",className:Ce({"tw:pr-10":n!=="sm","tw:pr-8":n==="sm"},t),size:n,"data-testid":"input",...r}),g.jsx("button",{type:"button",onClick:o,title:a?"Hide password":"Show password","aria-label":a?"Hide password":"Show password",className:Ce("tw:absolute tw:top-[50%] tw:translate-y-[-50%] tw:px-1","tw:text-placeholder tw:hover:text-lm-text tw:hover:dark:text-dm-text tw:transition-colors",{"tw:right-1.5":n!=="sm","tw:scale-85 tw:right-1":n==="sm"}),tabIndex:-1,children:g.jsx(Ke,{fixedWidth:!0,icon:a?kB:$B})})]})});D.forwardRef(({label:e,inputClassName:t,required:n,hiddenRequired:r,error:i,helpText:a,"data-testid":o,...l},f)=>{const u=D.useId();return g.jsxs(L3,{error:i,helpText:a,"data-testid":o,children:[g.jsx(_o,{htmlFor:u,required:n,children:e}),g.jsx(hce,{ref:f,id:u,className:t,required:n||r,feedback:i?"error":void 0,...l})]})});const pce=D.forwardRef(({className:e,size:t="md",feedback:n,style:r={},disabled:i,...a},o)=>g.jsx("select",{ref:o,className:Ce("tw:w-full tw:appearance-none tw:pr-9","tw:bg-(image:--chevron-down) tw:bg-no-repeat",{"tw:focus-ring":!n,"tw:focus-ring-danger":n==="error"},"tw:rounded-md tw:border",{"tw:border-lm-input-border tw:dark:border-dm-input-border":!n,"tw:border-danger":n==="error"},{"tw:pl-2 tw:py-1 tw:text-sm":t==="sm","tw:pl-3 tw:py-1.5":t==="md","tw:pl-4 tw:py-2 tw:text-xl":t==="lg","tw:bg-lm-disabled-input tw:dark:bg-dm-disabled-input":i,"tw:bg-lm-primary tw:dark:bg-dm-primary tw:group-[&]/card:bg-lm-input tw:group-[&]/card:dark:bg-dm-input":!i},e),style:{...r,background:"right 0.75rem center / 16px 12px"},disabled:i,...a})),D3=D.forwardRef(({selectClassName:e,label:t,error:n,helpText:r,required:i,hiddenRequired:a,"data-testid":o,...l},f)=>{const u=D.useId();return g.jsxs(L3,{error:n,helpText:r,"data-testid":o,children:[g.jsx(_o,{htmlFor:u,required:i,children:t}),g.jsx(pce,{ref:f,id:u,className:e,required:i||a,feedback:n?"error":void 0,...l})]})}),P1=D.forwardRef(({onChange:e,containerClassName:t,inputClassName:n,size:r="lg",loading:i=!1,...a},o)=>{const{setTimeout:l,clearCurrentTimeout:f}=nF(500),u=D.useCallback(h=>{h?l(()=>e(h)):(f(),e(h))},[f,e,l]);return g.jsxs("div",{className:Ce("tw:group tw:relative tw:focus-within:z-10",t),children:[g.jsx(Ke,{icon:i?gv:UB,spin:i,className:Ce("tw:absolute tw:top-[50%] tw:translate-y-[-50%] tw:transition-colors","tw:text-placeholder tw:group-focus-within:text-lm-text tw:dark:group-focus-within:text-dm-text",{"tw:left-3":r!=="sm","tw:scale-85 tw:left-2":r==="sm"})}),g.jsx(Ti,{ref:o,type:"search",className:Ce({"tw:pl-9":r!=="sm","tw:pl-7":r==="sm"},n),placeholder:"Search...",onChange:h=>u(h.target.value),size:r,...a})]})}),mce=D.forwardRef(({className:e,...t},n)=>g.jsx(rF,{ref:n,className:Ce("tw:rounded-full tw:w-8 tw:h-4","tw:bg-(image:--circle-grey-dark) tw:dark:bg-(image:--circle-grey-light) tw:checked:bg-(image:--circle-white)","tw:focus-visible:not-checked:bg-(image:--circle-light-blue)","tw:checked:bg-right tw:transition-[background-position]",e),...t})),R1=({className:e,disabled:t,size:n="md",type:r="button",...i})=>g.jsx("button",{className:Ce("tw:inline-flex tw:rounded-md tw:focus-ring","tw:text-lm-brand tw:dark:text-dm-brand","tw:highlight:text-lm-brand-dark tw:dark:highlight:text-dm-brand-dark tw:highlight:underline",{"tw:px-1.5 tw:py-1 tw:text-sm":n==="sm","tw:px-3 tw:py-1.5":n==="md","tw:px-4 tw:py-2 tw:text-lg":n==="lg","tw:pointer-events-none tw:opacity-65":t},e),disabled:t,type:r,...i}),aF=D.createContext(null),vce=({className:e,to:t,...n})=>{const r=D.useContext(aF);return g.jsx(o1,{role:"menuitem",to:t,className:({isActive:i})=>Ce("tw:px-4 tw:pt-2 tw:pb-[calc(0.5rem-3px)] tw:border-b-3","tw:highlight:text-lm-brand tw:dark:highlight:text-dm-brand","tw:font-bold tw:text-center tw:no-underline tw:transition-colors","tw:rounded-none tw:outline-none tw:focus-visible:inset-ring-2","tw:focus-visible:inset-ring-lm-brand/50 tw:dark:focus-visible:inset-ring-dm-brand/50",{"tw:text-lm-brand tw:dark:text-dm-brand":i,"tw:border-b-lm-brand tw:dark:border-b-dm-brand active":i,"tw:border-b-transparent tw:text-gray-500":!i,"tw:flex-grow":r==null?void 0:r.fill},e),...n})},gce=({children:e,className:t,fill:n})=>g.jsx(aF.Provider,{value:{fill:n},children:g.jsx(fr,{role:"menubar",className:Ce("tw:flex tw:overflow-hidden",t),children:e})}),Wu=Object.assign(gce,{Pill:vce}),yce=new Intl.NumberFormat("en-US"),Rn=e=>yce.format(Number(e)),RL=10,bce=e=>Math.ceil(e/RL)*RL,Sf=2,U0="...",wce=(e,t)=>Array.from({length:t-e},(n,r)=>e+r),_ce=(e,t)=>{const n=wce(Math.max(Sf,e-Sf),Math.min(t-1,e+Sf)+1);return e-Sf>Sf&&n.unshift(U0),e+Sf<t-1&&n.push(U0),n.unshift(1),n.push(t),n},Xp=e=>e===U0,xce=e=>Xp(e)?e:Rn(e),Sce=(e,t)=>Xp(e)?`${e}_${t}`:`${e}`,oF=["tw:border tw:border-r-0 tw:last:border-r tw:border-lm-border tw:dark:border-dm-border","tw:rounded-none tw:first:rounded-l tw:last:rounded-r"],sF=(e=!1)=>Ce(oF,"tw:px-3 py-2 tw:cursor-pointer tw:no-underline","tw:focus-ring tw:focus-visible:z-1",!e&&["tw:text-lm-brand tw:dark:text-dm-brand","tw:bg-lm-primary tw:dark:bg-dm-primary","tw:highlight:bg-lm-secondary tw:dark:highlight:bg-dm-secondary"],e&&"tw:bg-lm-main tw:dark:bg-dm-main tw:text-white"),HT=({children:e})=>g.jsx("span",{"aria-hidden":!0,className:Ce(oF,"tw:px-3 py-2 tw:text-gray-400"),children:e}),lF=()=>g.jsx(HT,{children:U0});function Oce({children:e,active:t,isEllipsis:n,href:r,...i}){const a=D.useMemo(()=>sF(t),[t]);return n?g.jsx(lF,{}):g.jsx(gn,{className:a,to:r,...i,children:e})}function Cce({children:e,active:t,isEllipsis:n,...r}){const i=D.useMemo(()=>sF(t),[t]);return n?g.jsx(lF,{}):g.jsx("button",{type:"button",className:i,...r,children:e})}const M1=({currentPage:e,pagesCount:t,...n})=>{const r="urlForPage"in n,i=r?Oce:Cce,a=D.useCallback(o=>r?{href:Xp(o)?void 0:n.urlForPage(o)}:{onClick:()=>!Xp(o)&&n.onPageChange(o)},[r,n]);return t<2?null:g.jsxs("div",{className:"tw:select-none tw:flex","data-testid":"paginator",children:[e===1?g.jsx(HT,{children:g.jsx(Ke,{size:"xs",icon:qN})}):g.jsx(i,{...a(Math.max(1,e-1)),"aria-label":"Previous",children:g.jsx(Ke,{size:"xs",icon:qN})}),_ce(e,t).map((o,l)=>g.jsx(i,{active:o===e,isEllipsis:Xp(o),...a(o),children:xce(o)},Sce(o,l))),e===t?g.jsx(HT,{children:g.jsx(Ke,{size:"xs",icon:f0})}):g.jsx(i,{...a(Math.min(t,e+1)),"aria-label":"Next",children:g.jsx(Ke,{size:"xs",icon:f0})})]})},Ece=({open:e,children:t,className:n,onClose:r,...i})=>{const a=D.useRef(null);return D.useEffect(()=>{var o,l;const f=document.body,u=f.style.overflow,h=f.style.paddingRight;if(e){const m=window.outerWidth-f.clientWidth,v=f.scrollHeight>f.clientHeight;f.style.overflow="hidden",v&&(f.style.paddingRight=`${m}px`),(o=a.current)==null||o.showModal()}else(l=a.current)==null||l.close();return()=>{f.style.overflow=u,f.style.paddingRight=h}},[e]),xc.createPortal(g.jsx("dialog",{ref:a,className:Ce("tw:bg-transparent tw:backdrop:bg-black/50",n),onCancel:o=>{o.preventDefault(),r()},...i,children:e&&t}),document.body)},Ql=({open:e,onClose:t,variant:n="default",title:r,children:i,className:a,...o})=>{const{size:l="md",confirmText:f="Confirm",cancelText:u="Cancel",confirmDisabled:h,onConfirm:m,onClosed:v,..._}="onConfirm"in o?o:{...o},[x,w]=D.useState(e),S=D.useRef(null),O=D.useRef("cancel"),C=D.useCallback(T=>{T.preventDefault(),T.stopPropagation(),O.current="confirm",m==null||m()},[m]);return D.useEffect(()=>{if(e){O.current="cancel",w(!0);return}const T=S.current;if(T){delete S.current.dataset.open;let j=!1;const P=R=>{j||R.target!==T||(j=!0,w(!1),v==null||v(O.current))};return T.addEventListener("transitionend",P),()=>{T.removeEventListener("transitionend",P)}}},[v,e]),D.useEffect(()=>{const T=S.current;x&&T&&(T.dataset.open="")},[x]),g.jsx(Ece,{open:x,onClose:t,className:Ce({"tw:flex tw:w-screen tw:h-screen tw:max-w-screen tw:max-h-screen":x,"tw:overflow-hidden":n==="cover"},a),..._,children:g.jsx("form",{"data-testid":"transition-container",ref:S,className:Ce("tw:w-full tw:m-auto tw:p-4 tw:sm:p-6","tw:-translate-y-4 tw:data-open:translate-y-0 tw:opacity-0 tw:data-open:opacity-100","tw:transition-[opacity_,_translate] tw:duration-300",n!=="cover"&&{"tw:sm:w-sm":l==="sm","tw:md:w-lg":l==="md","tw:md:w-4xl":l==="lg","tw:md:w-6xl":l==="xl"},{"tw:h-full":n==="cover"}),onSubmit:C,children:g.jsx(fr,{className:Ce("tw:w-full",{"tw:h-full tw:relative tw:overflow-auto":n==="cover"}),children:n==="cover"?g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:Ce("tw:px-4 tw:py-3 tw:absolute tw:top-0 tw:left-0 tw:right-0 tw:z-3000","tw:flex tw:items-center tw:justify-between","tw:text-white tw:bg-linear-to-b tw:from-black/70 tw:to-black/10","tw:[text-shadow:_0_2px_4px_rgb(0_0_0/_0.8)]"),children:[g.jsx("h5",{children:r}),g.jsx(Em,{onClick:t,label:"Close dialog"})]}),i]}):g.jsxs(g.Fragment,{children:[g.jsxs(fr.Header,{className:Ce("tw:sticky tw:top-0","tw:flex tw:items-center tw:justify-between tw:gap-x-2"),children:[g.jsx("h5",{className:Ce({"tw:text-danger":n==="danger"}),children:r}),g.jsx(Em,{onClick:t,label:"Close dialog"})]}),g.jsx(fr.Body,{children:i}),m&&g.jsxs(fr.Footer,{"data-testid":"footer",className:Ce("tw:flex tw:justify-end tw:items-center tw:gap-x-2","tw:[&]:px-3 tw:sticky tw:bottom-0"),children:[g.jsx(R1,{onClick:t,children:u}),g.jsx(Pn,{solid:!0,variant:n==="danger"?"danger":"primary",disabled:h,type:"submit",children:f})]})]})})})})},fc=({className:e,children:t,loading:n=!1,variant:r="default"})=>g.jsx(qt,{className:Ce({"tw:[&]:border-danger":r==="error"},e),children:g.jsxs("h3",{className:Ce("tw:text-center",{"tw:text-gray-500 tw:dark:text-gray-400":r==="default","tw:text-danger":r==="error"}),children:[n&&g.jsxs(g.Fragment,{children:[g.jsx(Ke,{icon:gv,spin:!0}),g.jsx("span",{className:"tw:ml-2",children:t??"Loading..."})]}),!n&&t]})}),Mi=({variant:e,className:t,size:n="md",children:r})=>g.jsx("div",{className:Ce("tw:rounded-md tw:text-center",{"tw:p-2":n==="sm","tw:p-4":n==="md","tw:p-6":n==="lg","tw:[&]:text-white":e!=="warning","tw:bg-lm-brand tw:dark:bg-dm-brand":e==="success","tw:bg-danger":e==="error","tw:bg-warning tw:text-black":e==="warning"},t),children:r}),uF=({text:e,className:t,size:n="lg",initialCopied:r=!1,navigator_:i=globalThis.navigator,...a})=>{const[o,l]=tce(r),f=D.useCallback(()=>i.clipboard.writeText(e).then(l),[i.clipboard,e,l]);return g.jsx("button",{type:"button",className:Ce("tw:focus-ring tw:rounded-sm",{"tw:text-md":n==="sm","tw:text-lg":n==="md","tw:text-xl":n==="lg"},t),"aria-label":`Copy ${e} to clipboard`,title:"Copy to clipboard",onClick:f,...a,children:g.jsx(Ke,{icon:o?ac:Ez,fixedWidth:!0})})},ML="tw:[&]:p-0 tw:[&]:md:w-1/4 tw:[&]:rounded-none",Tce=({onChange:e,className:t})=>{const n=Jn("qrCodes",Xd),{color:r,bgColor:i}=n;return g.jsxs(qt,{title:"Colors",className:t,bodyClassName:"tw:flex tw:flex-col tw:gap-4",children:[g.jsx(ua,{label:"Default color:",helpText:g.jsxs(g.Fragment,{children:["QR codes will initially use ",g.jsx("b",{"data-testid":"color",children:r})," color."]}),type:"color",value:r,onChange:a=>e({...n,color:a.target.value}),inputClassName:ML}),g.jsx(ua,{label:"Default background color:",helpText:g.jsxs(g.Fragment,{children:["QR codes will initially use ",g.jsx("b",{"data-testid":"bg-color",children:i})," background color."]}),type:"color",value:i,onChange:a=>e({...n,bgColor:a.target.value}),inputClassName:ML})]})},cF=({errorCorrection:e,onChange:t})=>g.jsxs(ws,{text:e?`Error correction (${e})`:g.jsx("i",{children:"Default error correction"}),dropdownClassName:"tw:w-full",children:[g.jsxs(Je,{active:e==="L",onClick:()=>t("L"),children:[g.jsx("b",{children:"L"}),"ow"]}),g.jsxs(Je,{active:e==="M",onClick:()=>t("M"),children:[g.jsx("b",{children:"M"}),"edium"]}),g.jsxs(Je,{active:e==="Q",onClick:()=>t("Q"),children:[g.jsx("b",{children:"Q"}),"uartile"]}),g.jsxs(Je,{active:e==="H",onClick:()=>t("H"),children:[g.jsx("b",{children:"H"}),"igh"]})]}),Ace=["png","svg","webp","jpeg"],fF=({format:e,onChange:t})=>g.jsx(ws,{text:`Format (${e})`,dropdownClassName:"tw:w-full",children:Ace.map(n=>g.jsx(Je,{active:e===n,onClick:()=>t(n),children:n},n))}),ld=({className:e,size:t,...n})=>g.jsx("span",{className:Ce("tw:text-gray-500 tw:dark:text-gray-400",{"tw:text-sm":t==="sm","tw:text-lg":t==="lg"},e),...n}),jce=({onChange:e})=>{const t=Jn("qrCodes",Xd),{format:n,errorCorrection:r}=t;return g.jsxs(qt,{title:"Format",className:"card",bodyClassName:"tw:flex tw:flex-col tw:gap-4",children:[g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-1",children:[g.jsx(fF,{format:n,onChange:i=>e({...t,format:i})}),g.jsxs(ld,{size:"sm",children:["When downloading a QR code, it will use ",g.jsx("b",{"data-testid":"format",children:n})," format by default."]})]}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-1",children:[g.jsx(cF,{errorCorrection:r,onChange:i=>e({...t,errorCorrection:i})}),g.jsxs(ld,{size:"sm",children:["QR codes will initially have a ",g.jsx("b",{"data-testid":"error-correction",children:r})," error correction."]})]})]})},Pce=({onChange:e,className:t})=>{const n=Jn("qrCodes",Xd),{size:r,margin:i}=n;return g.jsxs(qt,{title:"Size",className:t,bodyClassName:"tw:flex tw:flex-col tw:gap-4",children:[g.jsx(ua,{label:"Default dimensions:",helpText:g.jsxs(g.Fragment,{children:["QR codes will be initially generated with ",g.jsxs("b",{"data-testid":"size",children:[r,"x",r,"px"]}),"."]}),type:"range",value:r,step:10,min:50,max:1e3,onChange:a=>e({...n,size:Number(a.target.value)}),inputClassName:"tw:[&]:p-0"}),g.jsx(ua,{label:"Default margin:",helpText:g.jsxs(g.Fragment,{children:["QR codes will be initially generated with a ",g.jsxs("b",{"data-testid":"margin",children:[i,"px"]})," margin."]}),type:"range",value:i,step:1,min:0,max:100,onChange:a=>e({...n,margin:Number(a.target.value)}),inputClassName:"tw:[&]:p-0"})]})},hs=({children:e,helpText:t,"data-testid":n,...r})=>g.jsxs("div",{"data-testid":n,children:[g.jsxs(_o,{className:"tw:flex tw:items-center tw:gap-x-2",children:[g.jsx(mce,{...r}),e]}),t&&g.jsx(ld,{size:"sm","data-testid":n?`${n}-help-text`:"help-text",className:"tw:pl-10",children:t})]}),Rce=({toggleRealTimeUpdates:e,onIntervalChange:t})=>{const{enabled:n,interval:r}=Jn("realTimeUpdates",{enabled:!0});return g.jsxs(qt,{title:"Real-time updates",className:"tw:h-full",bodyClassName:"tw:flex tw:flex-col tw:gap-y-4",children:[g.jsx(hs,{checked:n,onChange:e,helpText:g.jsxs(g.Fragment,{children:["Real-time updates are currently being ",g.jsx("b",{children:n?"processed":"ignored"}),"."]}),children:"Enable or disable real-time updates."}),g.jsxs("div",{children:[g.jsx(ua,{label:g.jsx("span",{className:Ce({"tw: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&&g.jsx(ld,{size:"sm",children:r?g.jsxs("span",{children:["Updates will be reflected in the UI every ",g.jsx("b",{children:r})," minute",r>1&&"s","."]}):"Updates will be reflected in the UI as soon as they happen."})]})]})},t2=e=>e==="includes"?"Suggest tags including input":"Suggest tags starting with input",Mce=e=>e==="includes"?g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"including"})," provided input."]}):g.jsxs(g.Fragment,{children:["The list of suggested tags will contain those ",g.jsx("b",{children:"starting with"})," provided input."]}),Nce=({onChange:e})=>{const t=Jn("shortUrlCreation",{validateUrls:!1}),n=r=>()=>e({...t??{validateUrls:!1},tagFilteringMode:r});return g.jsxs(qt,{title:"Short URLs form",className:"card",bodyClassName:"tw:flex tw:flex-col tw:gap-4",children:[g.jsxs(hs,{"data-testid":"validate-url",checked:t.validateUrls??!1,onChange:r=>e({...t,validateUrls:r}),helpText:g.jsxs(g.Fragment,{children:["The initial state of the ",g.jsx("b",{children:"Validate URL"})," checkbox will be ",g.jsx("b",{children:t.validateUrls?"checked":"unchecked"}),"."]}),children:["Request validation on long URLs when creating new short URLs."," ",g.jsxs("b",{children:["This option is ignored by Shlink ",">=","4.0.0"]})]}),g.jsx(hs,{"data-testid":"forward-query",checked:t.forwardQuery??!0,onChange:r=>e({...t,forwardQuery:r}),helpText:g.jsxs(g.Fragment,{children:["The initial state of the ",g.jsx("b",{children:"Forward query params on redirect"})," checkbox will be ",g.jsx("b",{children:t.forwardQuery??!0?"checked":"unchecked"}),"."]}),children:"Make all new short URLs forward their query params to the long URL."}),g.jsxs("div",{children:[g.jsx(_o,{className:"tw:mb-1.5",children:"Tag suggestions search mode:"}),g.jsxs(ws,{text:t2(t.tagFilteringMode),children:[g.jsx(Je,{active:!t.tagFilteringMode||t.tagFilteringMode==="startsWith",onClick:n("startsWith"),children:t2("startsWith")}),g.jsx(Je,{active:t.tagFilteringMode==="includes",onClick:n("includes"),children:t2("includes")})]}),g.jsx(ld,{size:"sm",children:Mce(t.tagFilteringMode)})]})]})},Lce={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},Dce=({onChange:e,defaultOrdering:t})=>{const n=Jn("shortUrlsList"),r=(n==null?void 0:n.confirmDeletions)??!0;return g.jsxs(qt,{title:"Short URLs list",className:"card",bodyClassName:"tw:flex tw:flex-col tw:gap-4",children:[g.jsx(hs,{checked:r,onChange:i=>e({...n,confirmDeletions:i}),helpText:g.jsxs(g.Fragment,{children:["When deleting a short URL, confirmation ",g.jsx("b",{children:r?"will":"won't"})," be required."]}),children:"Request confirmation before deleting a short URL."}),g.jsxs("div",{children:[g.jsx(_o,{className:"tw:mb-1.5",children:"Default ordering for short URLs list:"}),g.jsx(Ov,{items:Lce,order:(n==null?void 0:n.defaultOrdering)??t,onChange:(i,a)=>e({defaultOrdering:{field:i,dir:a}})})]})]})},kce={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},Ice=({onChange:e})=>{const t=Jn("tags",{});return g.jsxs(qt,{title:"Tags",className:"card",children:[g.jsx(_o,{className:"tw:mb-1.5",children:"Default ordering for tags list:"}),g.jsx(Ov,{items:kce,order:t.defaultOrdering??{},onChange:(n,r)=>e({...t,defaultOrdering:{field:n,dir:r}})})]})},$ce=({onChange:e,_matchMedia:t})=>{const n=Jn("ui"),r=D.useMemo(()=>(n==null?void 0:n.theme)??_3(t),[n==null?void 0:n.theme,t]);return g.jsxs(qt,{title:"User interface",bodyClassName:"tw:flex tw:justify-between tw:items-center",children:[g.jsx(hs,{checked:r==="dark",onChange:i=>e({...n,theme:i?"dark":"light"}),children:"Use dark theme."}),g.jsx(Ke,{icon:r==="dark"?HJ:LJ})]})},dF={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days"},Bce=(e,t)=>!e||e==="all"?t:dF[e],Uce=({onChange:e,active:t,allText:n})=>g.jsxs(ws,{text:Bce(t,n),children:[g.jsx(Je,{active:t==="all",onClick:()=>e("all"),children:n}),g.jsx(Je,{divider:!0}),Object.entries(dF).map(([r,i])=>g.jsx(Je,{active:t===r,onClick:()=>e(r),children:i},r))]}),NL=e=>(e==null?void 0:e.defaultInterval)??"last30Days",zce=({onChange:e})=>{const t=Jn("visits"),n=D.useCallback(({defaultInterval:r,...i})=>e({defaultInterval:r??NL(t),...i}),[e,t]);return g.jsxs(qt,{title:"Visits",className:"card",bodyClassName:"tw:flex tw:flex-col tw:gap-4",children:[g.jsx(hs,{"data-testid":"exclude-bots",checked:!!(t!=null&&t.excludeBots),onChange:r=>n({excludeBots:r}),helpText:g.jsxs(g.Fragment,{children:["The visits coming from potential bots will be ",g.jsx("b",{children:t!=null&&t.excludeBots?"excluded":"included"}),"."]}),children:"Exclude bots wherever possible (this options effect might depend on Shlink servers version)."}),g.jsx(hs,{"data-testid":"compare-visits",checked:!!(t!=null&&t.loadPrevInterval),onChange:r=>n({loadPrevInterval:r}),helpText:g.jsxs(g.Fragment,{children:["When loading visits, previous period ",g.jsx("b",{children:t!=null&&t.loadPrevInterval?"will":"won't"})," be loaded by default."]}),children:"Compare visits with previous period."}),g.jsxs("div",{children:[g.jsx(_o,{className:"tw:mb-1.5",children:"Default interval to load on visits sections:"}),g.jsx(Uce,{allText:"All visits",active:NL(t),onChange:r=>n({defaultInterval:r})})]})]})},_y=({children:e,className:t})=>g.jsx("div",{className:Ce("tw:flex tw:flex-col tw:gap-4",t),children:e}),Fce=({settings:e,updateSettings:t,onUpdateSettings:n=t,defaultShortUrlsListOrdering:r})=>{const i=D.useCallback(u=>n==null?void 0:n(j1(e,u)),[e,n]),a=D.useCallback(u=>i({realTimeUpdates:{enabled:u}}),[i]),o=D.useCallback(u=>i({realTimeUpdates:{interval:u}}),[i]),l=D.useCallback((u,h)=>i({[u]:h}),[i]),f=D.useCallback(u=>l("qrCodes",u),[l]);return g.jsxs(mF,{value:e,children:[g.jsxs(Wu,{className:"tw:mb-4 tw:sticky tw:top-(--header-height) tw:z-2",children:[g.jsx(Wu.Pill,{to:"../general",children:"General"}),g.jsx(Wu.Pill,{to:"../short-urls",children:"Short URLs"}),g.jsx(Wu.Pill,{to:"../qr-codes",children:"QR codes"}),g.jsx(Wu.Pill,{to:"../other-items",children:"Other items"})]}),g.jsxs(i1,{children:[g.jsx(xt,{path:"general",element:g.jsxs(_y,{children:[g.jsx($ce,{onChange:u=>l("ui",u)}),g.jsx(Rce,{toggleRealTimeUpdates:a,onIntervalChange:o})]})}),g.jsx(xt,{path:"short-urls",element:g.jsxs(_y,{children:[g.jsx(Nce,{onChange:u=>l("shortUrlCreation",u)}),g.jsx(Dce,{defaultOrdering:r,onChange:u=>l("shortUrlsList",u)})]})}),g.jsx(xt,{path:"other-items",element:g.jsxs(_y,{children:[g.jsx(Ice,{onChange:u=>l("tags",u)}),g.jsx(zce,{onChange:u=>l("visits",u)})]})}),g.jsx(xt,{path:"qr-codes",element:g.jsxs(_y,{children:[g.jsxs("div",{className:"tw:flex tw:flex-col tw:lg:flex-row tw:gap-4",children:[g.jsx(Pce,{onChange:f,className:"tw:w-full"}),g.jsx(Tce,{onChange:f,className:"tw:w-full"})]}),g.jsx(jce,{onChange:f})]})}),g.jsx(xt,{path:"*",element:g.jsx(kj,{replace:!0,to:"../general"})})]})]})},Xd={size:300,margin:0,color:"#000000",bgColor:"#ffffff",errorCorrection:"L",format:"png"};Object.freeze(Xd);const hF={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:{field:"dateCreated",dir:"DESC"}},qrCodes:Xd},pF=D.createContext(hF),{Provider:mF}=pF,k3=()=>D.useContext(pF)??hF;function Jn(e,t){return k3()[e]??t}const I3={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(I3);const qce=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,LL=e=>{if(typeof e!="string")throw new TypeError("Invalid argument expected string");const t=e.match(qce);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},DL=e=>e==="*"||e==="x"||e==="X",kL=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},Vce=(e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t],Hce=(e,t)=>{if(DL(e)||DL(t))return 0;const[n,r]=Vce(kL(e),kL(t));return n>r?1:n<r?-1:0},IL=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){const r=Hce(e[n]||"0",t[n]||"0");if(r!==0)return r}return 0},Wce=(e,t)=>{const n=LL(e),r=LL(t),i=n.pop(),a=r.pop(),o=IL(n,r);return o!==0?o:i&&a?IL(i.split("."),a.split(".")):i||a?i?-1:1:0},WT=(e,t,n)=>{Gce(n);const r=Wce(e,t);return vF[n].includes(r)},vF={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},$L=Object.keys(vF),Gce=e=>{if(typeof e!="string")throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);if($L.indexOf(e)===-1)throw new Error(`Invalid operator, expected one of ${$L.join("|")}`)},aa=({href:e,children:t,rel:n,...r})=>g.jsx("a",{target:"_blank",rel:`noopener noreferrer${n?` ${n}`:""}`,href:e,...r,children:t??e}),Yce="Left",Kce="Right",Zce="Up",Xce="Down",$f={delta:10,preventScrollOnSwipe:!1,rotationAngle:0,trackMouse:!1,trackTouch:!0,swipeDuration:1/0,touchEventOptions:{passive:!0}},GT={first:!0,initial:[0,0],start:0,swiping:!1,xy:[0,0]},BL="mousemove",UL="mouseup",Qce="touchend",Jce="touchmove",efe="touchstart";function tfe(e,t,n,r){return e>t?n>0?Kce:Yce:r>0?Xce:Zce}function zL(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 nfe(e,t){const n=h=>{const m="touches"in h;m&&h.touches.length>1||e((v,_)=>{_.trackMouse&&!m&&(document.addEventListener(BL,r),document.addEventListener(UL,o));const{clientX:x,clientY:w}=m?h.touches[0]:h,S=zL([x,w],_.rotationAngle);return _.onTouchStartOrOnMouseDown&&_.onTouchStartOrOnMouseDown({event:h}),Object.assign(Object.assign(Object.assign({},v),GT),{initial:S.slice(),xy:S,start:h.timeStamp||0})})},r=h=>{e((m,v)=>{const _="touches"in h;if(_&&h.touches.length>1)return m;if(h.timeStamp-m.start>v.swipeDuration)return m.swiping?Object.assign(Object.assign({},m),{swiping:!1}):m;const{clientX:x,clientY:w}=_?h.touches[0]:h,[S,O]=zL([x,w],v.rotationAngle),C=S-m.xy[0],T=O-m.xy[1],j=Math.abs(C),P=Math.abs(T),R=(h.timeStamp||0)-m.start,$=Math.sqrt(j*j+P*P)/(R||1),q=[C/(R||1),T/(R||1)],K=tfe(j,P,C,T),H=typeof v.delta=="number"?v.delta:v.delta[K.toLowerCase()]||$f.delta;if(j<H&&P<H&&!m.swiping)return m;const G={absX:j,absY:P,deltaX:C,deltaY:T,dir:K,event:h,first:m.first,initial:m.initial,velocity:$,vxvy:q};G.first&&v.onSwipeStart&&v.onSwipeStart(G),v.onSwiping&&v.onSwiping(G);let te=!1;return(v.onSwiping||v.onSwiped||v[`onSwiped${K}`])&&(te=!0),te&&v.preventScrollOnSwipe&&v.trackTouch&&h.cancelable&&h.preventDefault(),Object.assign(Object.assign({},m),{first:!1,eventData:G,swiping:!0})})},i=h=>{e((m,v)=>{let _;if(m.swiping&&m.eventData){if(h.timeStamp-m.start<v.swipeDuration){_=Object.assign(Object.assign({},m.eventData),{event:h}),v.onSwiped&&v.onSwiped(_);const x=v[`onSwiped${_.dir}`];x&&x(_)}}else v.onTap&&v.onTap({event:h});return v.onTouchEndOrOnMouseUp&&v.onTouchEndOrOnMouseUp({event:h}),Object.assign(Object.assign(Object.assign({},m),GT),{eventData:_})})},a=()=>{document.removeEventListener(BL,r),document.removeEventListener(UL,o)},o=h=>{a(),i(h)},l=(h,m)=>{let v=()=>{};if(h&&h.addEventListener){const _=Object.assign(Object.assign({},$f.touchEventOptions),m.touchEventOptions),x=[[efe,n,_],[Jce,r,Object.assign(Object.assign({},_),m.preventScrollOnSwipe?{passive:!1}:{})],[Qce,i,_]];x.forEach(([w,S,O])=>h.addEventListener(w,S,O)),v=()=>x.forEach(([w,S])=>h.removeEventListener(w,S))}return v},u={ref:h=>{h!==null&&e((m,v)=>{if(m.el===h)return m;const _={};return m.el&&m.el!==h&&m.cleanUpTouch&&(m.cleanUpTouch(),_.cleanUpTouch=void 0),v.trackTouch&&h&&(_.cleanUpTouch=l(h,v)),Object.assign(Object.assign(Object.assign({},m),{el:h}),_)})}};return t.trackMouse&&(u.onMouseDown=n),[u,l]}function rfe(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 ife(e){const{trackMouse:t}=e,n=D.useRef(Object.assign({},GT)),r=D.useRef(Object.assign({},$f)),i=D.useRef(Object.assign({},r.current));i.current=Object.assign({},r.current),r.current=Object.assign(Object.assign({},$f),e);let a;for(a in $f)r.current[a]===void 0&&(r.current[a]=$f[a]);const[o,l]=D.useMemo(()=>nfe(f=>n.current=f(n.current,r.current),{trackMouse:t}),[t]);return n.current=rfe(n.current,r.current,i.current,l),o}var Bp={exports:{}};/** @license
* eventsource.js
* Available under MIT License (MIT)
* https://github.com/Yaffle/EventSource/
*/var afe=Bp.exports,FL;function ofe(){return FL||(FL=1,function(e,t){(function(n){var r=n.setTimeout,i=n.clearTimeout,a=n.XMLHttpRequest,o=n.XDomainRequest,l=n.ActiveXObject,f=n.EventSource,u=n.document,h=n.Promise,m=n.fetch,v=n.Response,_=n.TextDecoder,x=n.TextEncoder,w=n.AbortController;if(typeof window<"u"&&typeof u<"u"&&!("readyState"in u)&&u.body==null&&(u.readyState="loading",window.addEventListener("load",function(me){u.readyState="complete"},!1)),a==null&&l!=null&&(a=function(){return new l("Microsoft.XMLHTTP")}),Object.create==null&&(Object.create=function(me){function xe(){}return xe.prototype=me,new xe}),Date.now||(Date.now=function(){return new Date().getTime()}),w==null){var S=m;m=function(me,xe){var Ae=xe.signal;return S(me,{headers:xe.headers,credentials:xe.credentials,cache:xe.cache}).then(function(De){var ze=De.body.getReader();return Ae._reader=ze,Ae._aborted&&Ae._reader.cancel(),{status:De.status,statusText:De.statusText,headers:De.headers,body:{getReader:function(){return ze}}}})},w=function(){this.signal={_reader:null,_aborted:!1},this.abort=function(){this.signal._reader!=null&&this.signal._reader.cancel(),this.signal._aborted=!0}}}function O(){this.bitsNeeded=0,this.codePoint=0}O.prototype.decode=function(me){function xe(ke,Ne,Pe){if(Pe===1)return ke>=128>>Ne&&ke<<Ne<=2047;if(Pe===2)return ke>=2048>>Ne&&ke<<Ne<=55295||ke>=57344>>Ne&&ke<<Ne<=65535;if(Pe===3)return ke>=65536>>Ne&&ke<<Ne<=1114111;throw new Error}function Ae(ke,Ne){if(ke===6*1)return Ne>>6>15?3:Ne>31?2:1;if(ke===6*2)return Ne>15?3:2;if(ke===6*3)return 3;throw new Error}for(var De=65533,ze="",$e=this.bitsNeeded,Fe=this.codePoint,we=0;we<me.length;we+=1){var Se=me[we];$e!==0&&(Se<128||Se>191||!xe(Fe<<6|Se&63,$e-6,Ae($e,Fe)))&&($e=0,Fe=De,ze+=String.fromCharCode(Fe)),$e===0?(Se>=0&&Se<=127?($e=0,Fe=Se):Se>=192&&Se<=223?($e=6*1,Fe=Se&31):Se>=224&&Se<=239?($e=6*2,Fe=Se&15):Se>=240&&Se<=247?($e=6*3,Fe=Se&7):($e=0,Fe=De),$e!==0&&!xe(Fe,$e,Ae($e,Fe))&&($e=0,Fe=De)):($e-=6,Fe=Fe<<6|Se&63),$e===0&&(Fe<=65535?ze+=String.fromCharCode(Fe):(ze+=String.fromCharCode(55296+(Fe-65535-1>>10)),ze+=String.fromCharCode(56320+(Fe-65535-1&1023))))}return this.bitsNeeded=$e,this.codePoint=Fe,ze};var C=function(){try{return new _().decode(new x().encode("test"),{stream:!0})==="test"}catch(me){console.debug("TextDecoder does not support streaming option. Using polyfill instead: "+me)}return!1};(_==null||x==null||!C())&&(_=O);var T=function(){};function j(me){this.withCredentials=!1,this.readyState=0,this.status=0,this.statusText="",this.responseText="",this.onprogress=T,this.onload=T,this.onerror=T,this.onreadystatechange=T,this._contentType="",this._xhr=me,this._sendTimeout=0,this._abort=T}j.prototype.open=function(me,xe){this._abort(!0);var Ae=this,De=this._xhr,ze=1,$e=0;this._abort=function(Pe){Ae._sendTimeout!==0&&(i(Ae._sendTimeout),Ae._sendTimeout=0),(ze===1||ze===2||ze===3)&&(ze=4,De.onload=T,De.onerror=T,De.onabort=T,De.onprogress=T,De.onreadystatechange=T,De.abort(),$e!==0&&(i($e),$e=0),Pe||(Ae.readyState=4,Ae.onabort(null),Ae.onreadystatechange())),ze=0};var Fe=function(){if(ze===1){var Pe=0,qe="",Ge=void 0;if("contentType"in De)Pe=200,qe="OK",Ge=De.contentType;else try{Pe=De.status,qe=De.statusText,Ge=De.getResponseHeader("Content-Type")}catch{Pe=0,qe="",Ge=void 0}Pe!==0&&(ze=2,Ae.readyState=2,Ae.status=Pe,Ae.statusText=qe,Ae._contentType=Ge,Ae.onreadystatechange())}},we=function(){if(Fe(),ze===2||ze===3){ze=3;var Pe="";try{Pe=De.responseText}catch{}Ae.readyState=3,Ae.responseText=Pe,Ae.onprogress()}},Se=function(Pe,qe){if((qe==null||qe.preventDefault==null)&&(qe={preventDefault:T}),we(),ze===1||ze===2||ze===3){if(ze=4,$e!==0&&(i($e),$e=0),Ae.readyState=4,Pe==="load")Ae.onload(qe);else if(Pe==="error")Ae.onerror(qe);else if(Pe==="abort")Ae.onabort(qe);else throw new TypeError;Ae.onreadystatechange()}},ke=function(Pe){De!=null&&(De.readyState===4?(!("onload"in De)||!("onerror"in De)||!("onabort"in De))&&Se(De.responseText===""?"error":"load",Pe):De.readyState===3?"onprogress"in De||we():De.readyState===2&&Fe())},Ne=function(){$e=r(function(){Ne()},500),De.readyState===3&&we()};"onload"in De&&(De.onload=function(Pe){Se("load",Pe)}),"onerror"in De&&(De.onerror=function(Pe){Se("error",Pe)}),"onabort"in De&&(De.onabort=function(Pe){Se("abort",Pe)}),"onprogress"in De&&(De.onprogress=we),"onreadystatechange"in De&&(De.onreadystatechange=function(Pe){ke(Pe)}),("contentType"in De||!("ontimeout"in a.prototype))&&(xe+=(xe.indexOf("?")===-1?"?":"&")+"padding=true"),De.open(me,xe,!0),"readyState"in De&&($e=r(function(){Ne()},0))},j.prototype.abort=function(){this._abort(!1)},j.prototype.getResponseHeader=function(me){return this._contentType},j.prototype.setRequestHeader=function(me,xe){var Ae=this._xhr;"setRequestHeader"in Ae&&Ae.setRequestHeader(me,xe)},j.prototype.getAllResponseHeaders=function(){return this._xhr.getAllResponseHeaders!=null&&this._xhr.getAllResponseHeaders()||""},j.prototype.send=function(){if((!("ontimeout"in a.prototype)||!("sendAsBinary"in a.prototype)&&!("mozAnon"in a.prototype))&&u!=null&&u.readyState!=null&&u.readyState!=="complete"){var me=this;me._sendTimeout=r(function(){me._sendTimeout=0,me.send()},4);return}var xe=this._xhr;"withCredentials"in xe&&(xe.withCredentials=this.withCredentials);try{xe.send(void 0)}catch(Ae){throw Ae}};function P(me){return me.replace(/[A-Z]/g,function(xe){return String.fromCharCode(xe.charCodeAt(0)+32)})}function R(me){for(var xe=Object.create(null),Ae=me.split(`\r
`),De=0;De<Ae.length;De+=1){var ze=Ae[De],$e=ze.split(": "),Fe=$e.shift(),we=$e.join(": ");xe[P(Fe)]=we}this._map=xe}R.prototype.get=function(me){return this._map[P(me)]},a!=null&&a.HEADERS_RECEIVED==null&&(a.HEADERS_RECEIVED=2);function $(){}$.prototype.open=function(me,xe,Ae,De,ze,$e,Fe){me.open("GET",ze);var we=0;me.onprogress=function(){var ke=me.responseText,Ne=ke.slice(we);we+=Ne.length,Ae(Ne)},me.onerror=function(ke){ke.preventDefault(),De(new Error("NetworkError"))},me.onload=function(){De(null)},me.onabort=function(){De(null)},me.onreadystatechange=function(){if(me.readyState===a.HEADERS_RECEIVED){var ke=me.status,Ne=me.statusText,Pe=me.getResponseHeader("Content-Type"),qe=me.getAllResponseHeaders();xe(ke,Ne,Pe,new R(qe))}},me.withCredentials=$e;for(var Se in Fe)Object.prototype.hasOwnProperty.call(Fe,Se)&&me.setRequestHeader(Se,Fe[Se]);return me.send(),me};function q(me){this._headers=me}q.prototype.get=function(me){return this._headers.get(me)};function K(){}K.prototype.open=function(me,xe,Ae,De,ze,$e,Fe){var we=null,Se=new w,ke=Se.signal,Ne=new _;return m(ze,{headers:Fe,credentials:$e?"include":"same-origin",signal:ke,cache:"no-store"}).then(function(Pe){return we=Pe.body.getReader(),xe(Pe.status,Pe.statusText,Pe.headers.get("Content-Type"),new q(Pe.headers)),new h(function(qe,Ge){var Qe=function(){we.read().then(function(ft){if(ft.done)qe(void 0);else{var st=Ne.decode(ft.value,{stream:!0});Ae(st),Qe()}}).catch(function(ft){Ge(ft)})};Qe()})}).catch(function(Pe){if(Pe.name!=="AbortError")return Pe}).then(function(Pe){De(Pe)}),{abort:function(){we!=null&&we.cancel(),Se.abort()}}};function H(){this._listeners=Object.create(null)}function G(me){r(function(){throw me},0)}H.prototype.dispatchEvent=function(me){me.target=this;var xe=this._listeners[me.type];if(xe!=null)for(var Ae=xe.length,De=0;De<Ae;De+=1){var ze=xe[De];try{typeof ze.handleEvent=="function"?ze.handleEvent(me):ze.call(this,me)}catch($e){G($e)}}},H.prototype.addEventListener=function(me,xe){me=String(me);var Ae=this._listeners,De=Ae[me];De==null&&(De=[],Ae[me]=De);for(var ze=!1,$e=0;$e<De.length;$e+=1)De[$e]===xe&&(ze=!0);ze||De.push(xe)},H.prototype.removeEventListener=function(me,xe){me=String(me);var Ae=this._listeners,De=Ae[me];if(De!=null){for(var ze=[],$e=0;$e<De.length;$e+=1)De[$e]!==xe&&ze.push(De[$e]);ze.length===0?delete Ae[me]:Ae[me]=ze}};function te(me){this.type=me,this.target=void 0}function ie(me,xe){te.call(this,me),this.data=xe.data,this.lastEventId=xe.lastEventId}ie.prototype=Object.create(te.prototype);function X(me,xe){te.call(this,me),this.status=xe.status,this.statusText=xe.statusText,this.headers=xe.headers}X.prototype=Object.create(te.prototype);function ee(me,xe){te.call(this,me),this.error=xe.error}ee.prototype=Object.create(te.prototype);var W=-1,B=0,U=1,F=2,M=-1,I=0,J=1,Y=2,ae=3,de=/^text\/event\-stream(;.*)?$/i,fe=1e3,be=18e6,z=function(me,xe){var Ae=me==null?xe:parseInt(me,10);return Ae!==Ae&&(Ae=xe),V(Ae)},V=function(me){return Math.min(Math.max(me,fe),be)},ne=function(me,xe,Ae){try{typeof xe=="function"&&xe.call(me,Ae)}catch(De){G(De)}};function ce(me,xe){H.call(this),xe=xe||{},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,pe(this,me,xe)}function Q(){return a!=null&&"withCredentials"in a.prototype||o==null?new a:new o}var le=m!=null&&v!=null&&"body"in v.prototype;function pe(me,xe,Ae){xe=String(xe);var De=!!Ae.withCredentials,ze=Ae.lastEventIdQueryParameterName||"lastEventId",$e=V(1e3),Fe=z(Ae.heartbeatTimeout,45e3),we="",Se=$e,ke=!1,Ne=0,Pe=Ae.headers||{},qe=Ae.Transport,Ge=le&&qe==null?void 0:new j(qe!=null?new qe:Q()),Qe=qe!=null&&typeof qe!="string"?new qe:Ge==null?new K:new $,ft=void 0,st=0,wt=W,kt="",It="",$t="",Cr="",Wn=I,Es=0,li=0,Ts=function(yn,hn,tr,Gn){if(wt===B)if(yn===200&&tr!=null&&de.test(tr)){wt=U,ke=Date.now(),Se=$e,me.readyState=U;var nn=new X("open",{status:yn,statusText:hn,headers:Gn});me.dispatchEvent(nn),ne(me,me.onopen,nn)}else{var Mt="";yn!==200?(hn&&(hn=hn.replace(/\s+/g," ")),Mt="EventSource's response has a status "+yn+" "+hn+" that is not 200. Aborting the connection."):Mt="EventSource's response has a Content-Type specifying an unsupported type: "+(tr==null?"-":tr.replace(/\s+/g," "))+". Aborting the connection.",As();var nn=new X("error",{status:yn,statusText:hn,headers:Gn});me.dispatchEvent(nn),ne(me,me.onerror,nn),console.error(Mt)}},za=function(yn){if(wt===U){for(var hn=-1,tr=0;tr<yn.length;tr+=1){var Gn=yn.charCodeAt(tr);(Gn===10||Gn===13)&&(hn=tr)}var nn=(hn!==-1?Cr:"")+yn.slice(0,hn+1);Cr=(hn===-1?Cr:"")+yn.slice(hn+1),yn!==""&&(ke=Date.now(),Ne+=yn.length);for(var Mt=0;Mt<nn.length;Mt+=1){var Gn=nn.charCodeAt(Mt);if(Wn===M&&Gn===10)Wn=I;else if(Wn===M&&(Wn=I),Gn===13||Gn===10){if(Wn!==I){Wn===J&&(li=Mt+1);var rn=nn.slice(Es,li-1),nr=nn.slice(li+(li<Mt&&nn.charCodeAt(li)===32?1:0),Mt);rn==="data"?(kt+=`
`,kt+=nr):rn==="id"?It=nr:rn==="event"?$t=nr:rn==="retry"?($e=z(nr,$e),Se=$e):rn==="heartbeatTimeout"&&(Fe=z(nr,Fe),st!==0&&(i(st),st=r(function(){Fa()},Fe)))}if(Wn===I){if(kt!==""){we=It,$t===""&&($t="message");var Ln=new ie($t,{data:kt.slice(1),lastEventId:It});if(me.dispatchEvent(Ln),$t==="open"?ne(me,me.onopen,Ln):$t==="message"?ne(me,me.onmessage,Ln):$t==="error"&&ne(me,me.onerror,Ln),wt===F)return}kt="",$t=""}Wn=Gn===13?M:I}else Wn===I&&(Es=Mt,Wn=J),Wn===J?Gn===58&&(li=Mt+1,Wn=Y):Wn===Y&&(Wn=ae)}}},Pc=function(yn){if(wt===U||wt===B){wt=W,st!==0&&(i(st),st=0),st=r(function(){Fa()},Se),Se=V(Math.min($e*16,Se*2)),me.readyState=B;var hn=new ee("error",{error:yn});me.dispatchEvent(hn),ne(me,me.onerror,hn),yn!=null&&console.error(yn)}},As=function(){wt=F,ft!=null&&(ft.abort(),ft=void 0),st!==0&&(i(st),st=0),me.readyState=F},Fa=function(){if(st=0,wt!==W){if(!ke&&ft!=null)Pc(new Error("No activity within "+Fe+" milliseconds. "+(wt===B?"No response received.":Ne+" chars received.")+" Reconnecting.")),ft!=null&&(ft.abort(),ft=void 0);else{var yn=Math.max((ke||Date.now())+Fe-Date.now(),1);ke=!1,st=r(function(){Fa()},yn)}return}ke=!1,Ne=0,st=r(function(){Fa()},Fe),wt=B,kt="",$t="",It=we,Cr="",Es=0,li=0,Wn=I;var hn=xe;if(xe.slice(0,5)!=="data:"&&xe.slice(0,5)!=="blob:"&&we!==""){var tr=xe.indexOf("?");hn=tr===-1?xe:xe.slice(0,tr+1)+xe.slice(tr+1).replace(/(?:^|&)([^=&]*)(?:=[^&]*)?/g,function(nr,Ln){return Ln===ze?"":nr}),hn+=(xe.indexOf("?")===-1?"?":"&")+ze+"="+encodeURIComponent(we)}var Gn=me.withCredentials,nn={};nn.Accept="text/event-stream";var Mt=me.headers;if(Mt!=null)for(var rn in Mt)Object.prototype.hasOwnProperty.call(Mt,rn)&&(nn[rn]=Mt[rn]);try{ft=Qe.open(Ge,Ts,za,Pc,hn,Gn,nn)}catch(nr){throw As(),nr}};me.url=xe,me.readyState=B,me.withCredentials=De,me.headers=Pe,me._close=As,Fa()}ce.prototype=Object.create(H.prototype),ce.prototype.CONNECTING=B,ce.prototype.OPEN=U,ce.prototype.CLOSED=F,ce.prototype.close=function(){this._close()},ce.CONNECTING=B,ce.OPEN=U,ce.CLOSED=F,ce.prototype.withCredentials=void 0;var ye=f;a!=null&&(f==null||!("withCredentials"in f.prototype))&&(ye=ce),function(me){{var xe=me(t);xe!==void 0&&(e.exports=xe)}}(function(me){me.EventSourcePolyfill=ce,me.NativeEventSource=f,me.EventSource=ye})})(typeof globalThis>"u"?typeof window<"u"?window:typeof self<"u"?self:afe:globalThis)}(Bp,Bp.exports)),Bp.exports}var sfe=ofe();const $3=6048e5,lfe=864e5,gF=6e4,B3=36e5,xy=43200,qL=1440,VL=Symbol.for("constructDateFrom");function Or(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&VL in e?e[VL](t):e instanceof Date?new e.constructor(t):new Date(t)}function Rt(e,t){return Or(t||e,e)}function U3(e,t,n){const r=Rt(e,n==null?void 0:n.in);return isNaN(t)?Or(e,NaN):(t&&r.setDate(r.getDate()+t),r)}function ufe(e,t,n){const r=Rt(e,n==null?void 0:n.in);if(isNaN(t))return Or(e,NaN);if(!t)return r;const i=r.getDate(),a=Or(e,r.getTime());a.setMonth(r.getMonth()+t+1,0);const o=a.getDate();return i>=o?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function cfe(e,t,n){const{years:r=0,months:i=0,weeks:a=0,days:o=0,hours:l=0,minutes:f=0,seconds:u=0}=t,h=Rt(e,n==null?void 0:n.in),m=i||r?ufe(h,i+r*12):h,v=o||a?U3(m,o+a*7):m,_=f+l*60,w=(u+_*60)*1e3;return Or(e,+v+w)}let ffe={};function jv(){return ffe}function dc(e,t){var l,f,u,h;const n=jv(),r=(t==null?void 0:t.weekStartsOn)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.weekStartsOn)??n.weekStartsOn??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.weekStartsOn)??0,i=Rt(e,t==null?void 0:t.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function Tm(e,t){return dc(e,{...t,weekStartsOn:1})}function yF(e,t){const n=Rt(e,t==null?void 0:t.in),r=n.getFullYear(),i=Or(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);const a=Tm(i),o=Or(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);const l=Tm(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function ud(e){const t=Rt(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 Sc(e,...t){const n=Or.bind(null,e||t.find(r=>typeof r=="object"));return t.map(n)}function hc(e,t){const n=Rt(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function N1(e,t,n){const[r,i]=Sc(n==null?void 0:n.in,e,t),a=hc(r),o=hc(i),l=+a-ud(a),f=+o-ud(o);return Math.round((l-f)/lfe)}function dfe(e,t){const n=yF(e,t),r=Or(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Tm(r)}function bF(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Or.bind(null,i));const a=Rt(i,r);(!n||n<a||isNaN(+a))&&(n=a)}),Or(r,n||NaN)}function hfe(e,t){let n,r=t==null?void 0:t.in;return e.forEach(i=>{!r&&typeof i=="object"&&(r=Or.bind(null,i));const a=Rt(i,r);(!n||n>a||isNaN(+a))&&(n=a)}),Or(r,n||NaN)}function t0(e,t){const n=+Rt(e)-+Rt(t);return n<0?-1:n>0?1:n}function pfe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function mfe(e){return!(!pfe(e)&&typeof e!="number"||isNaN(+Rt(e)))}function z0(e,t,n){const[r,i]=Sc(n==null?void 0:n.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function vfe(e,t,n){const[r,i]=Sc(n==null?void 0:n.in,e,t),a=dc(r,n),o=dc(i,n),l=+a-ud(a),f=+o-ud(o);return Math.round((l-f)/$3)}function wF(e,t,n){const[r,i]=Sc(n==null?void 0:n.in,e,t),a=HL(r,i),o=Math.abs(N1(r,i));r.setDate(r.getDate()-a*o);const l=+(HL(r,i)===-a),f=a*(o-l);return f===0?0:f}function HL(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 _F(e){return t=>{const r=(e?Math[e]:Math.trunc)(t);return r===0?0:r}}function gfe(e,t,n){const[r,i]=Sc(n==null?void 0:n.in,e,t),a=(+r-+i)/B3;return _F(n==null?void 0:n.roundingMethod)(a)}function yfe(e,t){return+Rt(e)-+Rt(t)}function cd(e,t){const n=Rt(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function bfe(e,t){const n=Rt(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function wfe(e,t){const n=Rt(e,t==null?void 0:t.in);return+cd(n,t)==+bfe(n,t)}function _fe(e,t,n){const[r,i,a]=Sc(n==null?void 0:n.in,e,e,t),o=t0(i,a),l=Math.abs(z0(i,a));if(l<1)return 0;i.getMonth()===1&&i.getDate()>27&&i.setDate(30),i.setMonth(i.getMonth()-o*l);let f=t0(i,a)===-o;wfe(r)&&l===1&&t0(r,a)===1&&(f=!1);const u=o*(l-+f);return u===0?0:u}function xfe(e,t,n){const r=yfe(e,t)/1e3;return _F(n==null?void 0:n.roundingMethod)(r)}function Sfe(e,t){const n=Rt(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Ofe(e,t){const n=t==null?void 0:t.weekStartsOn,r=Rt(e,t==null?void 0:t.in),i=r.getDay(),a=(i<n?-7:0)+6-(i-n);return r.setDate(r.getDate()+a),r.setHours(23,59,59,999),r}function Cfe(e,t){return Ofe(e,{...t,weekStartsOn:1})}const Efe={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"}},Tfe=(e,t,n)=>{let r;const i=Efe[e];return typeof i=="string"?r=i:t===1?r=i.one:r=i.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function n2(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Afe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},jfe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Pfe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Rfe={date:n2({formats:Afe,defaultWidth:"full"}),time:n2({formats:jfe,defaultWidth:"full"}),dateTime:n2({formats:Pfe,defaultWidth:"full"})},Mfe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Nfe=(e,t,n,r)=>Mfe[e];function wp(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let i;if(r==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;i=e.values[l]||e.values[o]}const a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}const Lfe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Dfe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},kfe={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"]},Ife={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"]},$fe={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"}},Bfe={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"}},Ufe=(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"},zfe={ordinalNumber:Ufe,era:wp({values:Lfe,defaultWidth:"wide"}),quarter:wp({values:Dfe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:wp({values:kfe,defaultWidth:"wide"}),day:wp({values:Ife,defaultWidth:"wide"}),dayPeriod:wp({values:$fe,defaultWidth:"wide",formattingValues:Bfe,defaultFormattingWidth:"wide"})};function _p(e){return(t,n={})=>{const r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;const o=a[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],f=Array.isArray(l)?qfe(l,m=>m.test(o)):Ffe(l,m=>m.test(o));let u;u=e.valueCallback?e.valueCallback(f):f,u=n.valueCallback?n.valueCallback(u):u;const h=t.slice(o.length);return{value:u,rest:h}}}function Ffe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function qfe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function Vfe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;const l=t.slice(i.length);return{value:o,rest:l}}}const Hfe=/^(\d+)(th|st|nd|rd)?/i,Wfe=/\d+/i,Gfe={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},Yfe={any:[/^b/i,/^(a|c)/i]},Kfe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Zfe={any:[/1/i,/2/i,/3/i,/4/i]},Xfe={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},Qfe={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]},Jfe={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},ede={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]},tde={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},nde={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}},rde={ordinalNumber:Vfe({matchPattern:Hfe,parsePattern:Wfe,valueCallback:e=>parseInt(e,10)}),era:_p({matchPatterns:Gfe,defaultMatchWidth:"wide",parsePatterns:Yfe,defaultParseWidth:"any"}),quarter:_p({matchPatterns:Kfe,defaultMatchWidth:"wide",parsePatterns:Zfe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:_p({matchPatterns:Xfe,defaultMatchWidth:"wide",parsePatterns:Qfe,defaultParseWidth:"any"}),day:_p({matchPatterns:Jfe,defaultMatchWidth:"wide",parsePatterns:ede,defaultParseWidth:"any"}),dayPeriod:_p({matchPatterns:tde,defaultMatchWidth:"any",parsePatterns:nde,defaultParseWidth:"any"})},xF={code:"en-US",formatDistance:Tfe,formatLong:Rfe,formatRelative:Nfe,localize:zfe,match:rde,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ide(e,t){const n=Rt(e,t==null?void 0:t.in);return N1(n,Sfe(n))+1}function ade(e,t){const n=Rt(e,t==null?void 0:t.in),r=+Tm(n)-+dfe(n);return Math.round(r/$3)+1}function SF(e,t){var h,m,v,_;const n=Rt(e,t==null?void 0:t.in),r=n.getFullYear(),i=jv(),a=(t==null?void 0:t.firstWeekContainsDate)??((m=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??i.firstWeekContainsDate??((_=(v=i.locale)==null?void 0:v.options)==null?void 0:_.firstWeekContainsDate)??1,o=Or((t==null?void 0:t.in)||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);const l=dc(o,t),f=Or((t==null?void 0:t.in)||e,0);f.setFullYear(r,0,a),f.setHours(0,0,0,0);const u=dc(f,t);return+n>=+l?r+1:+n>=+u?r:r-1}function ode(e,t){var l,f,u,h;const n=jv(),r=(t==null?void 0:t.firstWeekContainsDate)??((f=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:f.firstWeekContainsDate)??n.firstWeekContainsDate??((h=(u=n.locale)==null?void 0:u.options)==null?void 0:h.firstWeekContainsDate)??1,i=SF(e,t),a=Or((t==null?void 0:t.in)||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),dc(a,t)}function sde(e,t){const n=Rt(e,t==null?void 0:t.in),r=+dc(n,t)-+ode(n,t);return Math.round(r/$3)+1}function Pt(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const wl={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Pt(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Pt(n+1,2)},d(e,t){return Pt(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 Pt(e.getHours()%12||12,t.length)},H(e,t){return Pt(e.getHours(),t.length)},m(e,t){return Pt(e.getMinutes(),t.length)},s(e,t){return Pt(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),i=Math.trunc(r*Math.pow(10,n-3));return Pt(i,t.length)}},Of={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},WL={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 wl.y(e,t)},Y:function(e,t,n,r){const i=SF(e,r),a=i>0?i:1-i;if(t==="YY"){const o=a%100;return Pt(o,2)}return t==="Yo"?n.ordinalNumber(a,{unit:"year"}):Pt(a,t.length)},R:function(e,t){const n=yF(e);return Pt(n,t.length)},u:function(e,t){const n=e.getFullYear();return Pt(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 Pt(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 Pt(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 wl.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 Pt(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=sde(e,r);return t==="wo"?n.ordinalNumber(i,{unit:"week"}):Pt(i,t.length)},I:function(e,t,n){const r=ade(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Pt(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):wl.d(e,t)},D:function(e,t,n){const r=ide(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Pt(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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(a);case"ee":return Pt(a,2);case"eo":return n.ordinalNumber(a,{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(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(a);case"cc":return Pt(a,t.length);case"co":return n.ordinalNumber(a,{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 Pt(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=Of.noon:r===0?i=Of.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=Of.evening:r>=12?i=Of.afternoon:r>=4?i=Of.morning:i=Of.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 wl.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):wl.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Pt(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):wl.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):wl.s(e,t)},S:function(e,t){return wl.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return YL(r);case"XXXX":case"XX":return Fu(r);case"XXXXX":case"XXX":default:return Fu(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return YL(r);case"xxxx":case"xx":return Fu(r);case"xxxxx":case"xxx":default:return Fu(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+GL(r,":");case"OOOO":default:return"GMT"+Fu(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+GL(r,":");case"zzzz":default:return"GMT"+Fu(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Pt(r,t.length)},T:function(e,t,n){return Pt(+e,t.length)}};function GL(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Pt(a,2)}function YL(e,t){return e%60===0?(e>0?"-":"+")+Pt(Math.abs(e)/60,2):Fu(e,t)}function Fu(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),i=Pt(Math.trunc(r/60),2),a=Pt(r%60,2);return n+i+t+a}const KL=(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"})}},OF=(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"})}},lde=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return KL(e,t);let a;switch(r){case"P":a=t.dateTime({width:"short"});break;case"PP":a=t.dateTime({width:"medium"});break;case"PPP":a=t.dateTime({width:"long"});break;case"PPPP":default:a=t.dateTime({width:"full"});break}return a.replace("{{date}}",KL(r,t)).replace("{{time}}",OF(i,t))},ude={p:OF,P:lde},cde=/^D+$/,fde=/^Y+$/,dde=["D","DD","YY","YYYY"];function hde(e){return cde.test(e)}function pde(e){return fde.test(e)}function mde(e,t,n){const r=vde(e,t,n);if(console.warn(r),dde.includes(e))throw new RangeError(r)}function vde(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 gde=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,yde=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,bde=/^'([^]*?)'?$/,wde=/''/g,_de=/[a-zA-Z]/;function F0(e,t,n){var h,m,v,_;const r=jv(),i=r.locale??xF,a=r.firstWeekContainsDate??((m=(h=r.locale)==null?void 0:h.options)==null?void 0:m.firstWeekContainsDate)??1,o=r.weekStartsOn??((_=(v=r.locale)==null?void 0:v.options)==null?void 0:_.weekStartsOn)??0,l=Rt(e,n==null?void 0:n.in);if(!mfe(l))throw new RangeError("Invalid time value");let f=t.match(yde).map(x=>{const w=x[0];if(w==="p"||w==="P"){const S=ude[w];return S(x,i.formatLong)}return x}).join("").match(gde).map(x=>{if(x==="''")return{isToken:!1,value:"'"};const w=x[0];if(w==="'")return{isToken:!1,value:xde(x)};if(WL[w])return{isToken:!0,value:x};if(w.match(_de))throw new RangeError("Format string contains an unescaped latin alphabet character `"+w+"`");return{isToken:!1,value:x}});i.localize.preprocessor&&(f=i.localize.preprocessor(l,f));const u={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return f.map(x=>{if(!x.isToken)return x.value;const w=x.value;(pde(w)||hde(w))&&mde(w,t,String(e));const S=WL[w[0]];return S(l,w,i.localize,u)}).join("")}function xde(e){const t=e.match(bde);return t?t[1].replace(wde,"'"):e}function Sde(e,t,n){const r=jv(),i=(n==null?void 0:n.locale)??r.locale??xF,a=2520,o=t0(e,t);if(isNaN(o))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:o}),[f,u]=Sc(n==null?void 0:n.in,...o>0?[t,e]:[e,t]),h=xfe(u,f),m=(ud(u)-ud(f))/1e3,v=Math.round((h-m)/60);let _;if(v<2)return v===0?i.formatDistance("lessThanXMinutes",1,l):i.formatDistance("xMinutes",v,l);if(v<45)return i.formatDistance("xMinutes",v,l);if(v<90)return i.formatDistance("aboutXHours",1,l);if(v<qL){const x=Math.round(v/60);return i.formatDistance("aboutXHours",x,l)}else{if(v<a)return i.formatDistance("xDays",1,l);if(v<xy){const x=Math.round(v/qL);return i.formatDistance("xDays",x,l)}else if(v<xy*2)return _=Math.round(v/xy),i.formatDistance("aboutXMonths",_,l)}if(_=_fe(u,f),_<12){const x=Math.round(v/xy);return i.formatDistance("xMonths",x,l)}else{const x=_%12,w=Math.trunc(_/12);return x<3?i.formatDistance("aboutXYears",w,l):x<9?i.formatDistance("overXYears",w,l):i.formatDistance("almostXYears",w+1,l)}}function Ode(e,t){const n=Rt(e,t==null?void 0:t.in);if(isNaN(+n))throw new RangeError("Invalid time value");let r="",i="";const a="-",o=":";{const l=Pt(n.getDate(),2),f=Pt(n.getMonth()+1,2);r=`${Pt(n.getFullYear(),4)}${a}${f}${a}${l}`}{const l=n.getTimezoneOffset();if(l!==0){const _=Math.abs(l),x=Pt(Math.trunc(_/60),2),w=Pt(_%60,2);i=`${l<0?"+":"-"}${x}:${w}`}else i="Z";const f=Pt(n.getHours(),2),u=Pt(n.getMinutes(),2),h=Pt(n.getSeconds(),2),m=r===""?"":"T",v=[f,u,h].join(o);r=`${r}${m}${v}${i}`}return r}function Cde(e){return Math.trunc(+Rt(e)/1e3)}function Ede(e,t){return+Rt(e)>+Rt(t)}function q0(e,t){return+Rt(e)<+Rt(t)}function YT(e,t){return+Rt(e)==+Rt(t)}function Tde(e,t,n){const r=+Rt(e,n==null?void 0:n.in),[i,a]=[+Rt(t.start,n==null?void 0:n.in),+Rt(t.end,n==null?void 0:n.in)].sort((o,l)=>o-l);return r>=i&&r<=a}function V0(e,t,n){return U3(e,-t,n)}function Vl(e,t){const n=()=>Or(t==null?void 0:t.in,NaN),i=Rde(e);let a;if(i.date){const u=Mde(i.date,2);a=Nde(u.restDateString,u.year)}if(!a||isNaN(+a))return n();const o=+a;let l=0,f;if(i.time&&(l=Lde(i.time),isNaN(l)))return n();if(i.timezone){if(f=Dde(i.timezone),isNaN(f))return n()}else{const u=new Date(o+l),h=Rt(0,t==null?void 0:t.in);return h.setFullYear(u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()),h.setHours(u.getUTCHours(),u.getUTCMinutes(),u.getUTCSeconds(),u.getUTCMilliseconds()),h}return Rt(o+l+f,t==null?void 0:t.in)}const Sy={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},Ade=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,jde=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Pde=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Rde(e){const t={},n=e.split(Sy.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],Sy.timeZoneDelimiter.test(t.date)&&(t.date=e.split(Sy.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=Sy.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Mde(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,a=r[2]?parseInt(r[2]):null;return{year:a===null?i:a*100,restDateString:e.slice((r[1]||r[2]).length)}}function Nde(e,t){if(t===null)return new Date(NaN);const n=e.match(Ade);if(!n)return new Date(NaN);const r=!!n[4],i=xp(n[1]),a=xp(n[2])-1,o=xp(n[3]),l=xp(n[4]),f=xp(n[5])-1;if(r)return Ude(t,l,f)?kde(t,l,f):new Date(NaN);{const u=new Date(0);return!$de(t,a,o)||!Bde(t,i)?new Date(NaN):(u.setUTCFullYear(t,a,Math.max(i,o)),u)}}function xp(e){return e?parseInt(e):1}function Lde(e){const t=e.match(jde);if(!t)return NaN;const n=r2(t[1]),r=r2(t[2]),i=r2(t[3]);return zde(n,r,i)?n*B3+r*gF+i*1e3:NaN}function r2(e){return e&&parseFloat(e.replace(",","."))||0}function Dde(e){if(e==="Z")return 0;const t=e.match(Pde);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Fde(r,i)?n*(r*B3+i*gF):NaN}function kde(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,a=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}const Ide=[31,null,31,30,31,30,31,31,30,31,30,31];function CF(e){return e%400===0||e%4===0&&e%100!==0}function $de(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Ide[t]||(CF(e)?29:28))}function Bde(e,t){return t>=1&&t<=(CF(e)?366:365)}function Ude(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function zde(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Fde(e,t){return t>=0&&t<=59}var n0={exports:{}},qde=n0.exports,ZL;function Vde(){return ZL||(ZL=1,function(e,t){(function(n,r){e.exports=r()})(qde,()=>(()=>{var n={873:(o,l)=>{var f,u,h=function(){var m=function(X,ee){var W=X,B=O[ee],U=null,F=0,M=null,I=[],J={},Y=function(Q,le){U=function(pe){for(var ye=new Array(pe),me=0;me<pe;me+=1){ye[me]=new Array(pe);for(var xe=0;xe<pe;xe+=1)ye[me][xe]=null}return ye}(F=4*W+17),ae(0,0),ae(F-7,0),ae(0,F-7),fe(),de(),z(Q,le),W>=7&&be(Q),M==null&&(M=ne(W,B,I)),V(M,le)},ae=function(Q,le){for(var pe=-1;pe<=7;pe+=1)if(!(Q+pe<=-1||F<=Q+pe))for(var ye=-1;ye<=7;ye+=1)le+ye<=-1||F<=le+ye||(U[Q+pe][le+ye]=0<=pe&&pe<=6&&(ye==0||ye==6)||0<=ye&&ye<=6&&(pe==0||pe==6)||2<=pe&&pe<=4&&2<=ye&&ye<=4)},de=function(){for(var Q=8;Q<F-8;Q+=1)U[Q][6]==null&&(U[Q][6]=Q%2==0);for(var le=8;le<F-8;le+=1)U[6][le]==null&&(U[6][le]=le%2==0)},fe=function(){for(var Q=C.getPatternPosition(W),le=0;le<Q.length;le+=1)for(var pe=0;pe<Q.length;pe+=1){var ye=Q[le],me=Q[pe];if(U[ye][me]==null)for(var xe=-2;xe<=2;xe+=1)for(var Ae=-2;Ae<=2;Ae+=1)U[ye+xe][me+Ae]=xe==-2||xe==2||Ae==-2||Ae==2||xe==0&&Ae==0}},be=function(Q){for(var le=C.getBCHTypeNumber(W),pe=0;pe<18;pe+=1){var ye=!Q&&(le>>pe&1)==1;U[Math.floor(pe/3)][pe%3+F-8-3]=ye}for(pe=0;pe<18;pe+=1)ye=!Q&&(le>>pe&1)==1,U[pe%3+F-8-3][Math.floor(pe/3)]=ye},z=function(Q,le){for(var pe=B<<3|le,ye=C.getBCHTypeInfo(pe),me=0;me<15;me+=1){var xe=!Q&&(ye>>me&1)==1;me<6?U[me][8]=xe:me<8?U[me+1][8]=xe:U[F-15+me][8]=xe}for(me=0;me<15;me+=1)xe=!Q&&(ye>>me&1)==1,me<8?U[8][F-me-1]=xe:me<9?U[8][15-me-1+1]=xe:U[8][15-me-1]=xe;U[F-8][8]=!Q},V=function(Q,le){for(var pe=-1,ye=F-1,me=7,xe=0,Ae=C.getMaskFunction(le),De=F-1;De>0;De-=2)for(De==6&&(De-=1);;){for(var ze=0;ze<2;ze+=1)if(U[ye][De-ze]==null){var $e=!1;xe<Q.length&&($e=(Q[xe]>>>me&1)==1),Ae(ye,De-ze)&&($e=!$e),U[ye][De-ze]=$e,(me-=1)==-1&&(xe+=1,me=7)}if((ye+=pe)<0||F<=ye){ye-=pe,pe=-pe;break}}},ne=function(Q,le,pe){for(var ye=P.getRSBlocks(Q,le),me=R(),xe=0;xe<pe.length;xe+=1){var Ae=pe[xe];me.put(Ae.getMode(),4),me.put(Ae.getLength(),C.getLengthInBits(Ae.getMode(),Q)),Ae.write(me)}var De=0;for(xe=0;xe<ye.length;xe+=1)De+=ye[xe].dataCount;if(me.getLengthInBits()>8*De)throw"code length overflow. ("+me.getLengthInBits()+">"+8*De+")";for(me.getLengthInBits()+4<=8*De&&me.put(0,4);me.getLengthInBits()%8!=0;)me.putBit(!1);for(;!(me.getLengthInBits()>=8*De||(me.put(236,8),me.getLengthInBits()>=8*De));)me.put(17,8);return function(ze,$e){for(var Fe=0,we=0,Se=0,ke=new Array($e.length),Ne=new Array($e.length),Pe=0;Pe<$e.length;Pe+=1){var qe=$e[Pe].dataCount,Ge=$e[Pe].totalCount-qe;we=Math.max(we,qe),Se=Math.max(Se,Ge),ke[Pe]=new Array(qe);for(var Qe=0;Qe<ke[Pe].length;Qe+=1)ke[Pe][Qe]=255&ze.getBuffer()[Qe+Fe];Fe+=qe;var ft=C.getErrorCorrectPolynomial(Ge),st=j(ke[Pe],ft.getLength()-1).mod(ft);for(Ne[Pe]=new Array(ft.getLength()-1),Qe=0;Qe<Ne[Pe].length;Qe+=1){var wt=Qe+st.getLength()-Ne[Pe].length;Ne[Pe][Qe]=wt>=0?st.getAt(wt):0}}var kt=0;for(Qe=0;Qe<$e.length;Qe+=1)kt+=$e[Qe].totalCount;var It=new Array(kt),$t=0;for(Qe=0;Qe<we;Qe+=1)for(Pe=0;Pe<$e.length;Pe+=1)Qe<ke[Pe].length&&(It[$t]=ke[Pe][Qe],$t+=1);for(Qe=0;Qe<Se;Qe+=1)for(Pe=0;Pe<$e.length;Pe+=1)Qe<Ne[Pe].length&&(It[$t]=Ne[Pe][Qe],$t+=1);return It}(me,ye)};J.addData=function(Q,le){var pe=null;switch(le=le||"Byte"){case"Numeric":pe=$(Q);break;case"Alphanumeric":pe=q(Q);break;case"Byte":pe=K(Q);break;case"Kanji":pe=H(Q);break;default:throw"mode:"+le}I.push(pe),M=null},J.isDark=function(Q,le){if(Q<0||F<=Q||le<0||F<=le)throw Q+","+le;return U[Q][le]},J.getModuleCount=function(){return F},J.make=function(){if(W<1){for(var Q=1;Q<40;Q++){for(var le=P.getRSBlocks(Q,B),pe=R(),ye=0;ye<I.length;ye++){var me=I[ye];pe.put(me.getMode(),4),pe.put(me.getLength(),C.getLengthInBits(me.getMode(),Q)),me.write(pe)}var xe=0;for(ye=0;ye<le.length;ye++)xe+=le[ye].dataCount;if(pe.getLengthInBits()<=8*xe)break}W=Q}Y(!1,function(){for(var Ae=0,De=0,ze=0;ze<8;ze+=1){Y(!0,ze);var $e=C.getLostPoint(J);(ze==0||Ae>$e)&&(Ae=$e,De=ze)}return De}())},J.createTableTag=function(Q,le){Q=Q||2;var pe="";pe+='<table style="',pe+=" border-width: 0px; border-style: none;",pe+=" border-collapse: collapse;",pe+=" padding: 0px; margin: "+(le=le===void 0?4*Q:le)+"px;",pe+='">',pe+="<tbody>";for(var ye=0;ye<J.getModuleCount();ye+=1){pe+="<tr>";for(var me=0;me<J.getModuleCount();me+=1)pe+='<td style="',pe+=" border-width: 0px; border-style: none;",pe+=" border-collapse: collapse;",pe+=" padding: 0px; margin: 0px;",pe+=" width: "+Q+"px;",pe+=" height: "+Q+"px;",pe+=" background-color: ",pe+=J.isDark(ye,me)?"#000000":"#ffffff",pe+=";",pe+='"/>';pe+="</tr>"}return(pe+="</tbody>")+"</table>"},J.createSvgTag=function(Q,le,pe,ye){var me={};typeof arguments[0]=="object"&&(Q=(me=arguments[0]).cellSize,le=me.margin,pe=me.alt,ye=me.title),Q=Q||2,le=le===void 0?4*Q:le,(pe=typeof pe=="string"?{text:pe}:pe||{}).text=pe.text||null,pe.id=pe.text?pe.id||"qrcode-description":null,(ye=typeof ye=="string"?{text:ye}:ye||{}).text=ye.text||null,ye.id=ye.text?ye.id||"qrcode-title":null;var xe,Ae,De,ze,$e=J.getModuleCount()*Q+2*le,Fe="";for(ze="l"+Q+",0 0,"+Q+" -"+Q+",0 0,-"+Q+"z ",Fe+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',Fe+=me.scalable?"":' width="'+$e+'px" height="'+$e+'px"',Fe+=' viewBox="0 0 '+$e+" "+$e+'" ',Fe+=' preserveAspectRatio="xMinYMin meet"',Fe+=ye.text||pe.text?' role="img" aria-labelledby="'+ce([ye.id,pe.id].join(" ").trim())+'"':"",Fe+=">",Fe+=ye.text?'<title id="'+ce(ye.id)+'">'+ce(ye.text)+"</title>":"",Fe+=pe.text?'<description id="'+ce(pe.id)+'">'+ce(pe.text)+"</description>":"",Fe+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',Fe+='<path d="',Ae=0;Ae<J.getModuleCount();Ae+=1)for(De=Ae*Q+le,xe=0;xe<J.getModuleCount();xe+=1)J.isDark(Ae,xe)&&(Fe+="M"+(xe*Q+le)+","+De+ze);return(Fe+='" stroke="transparent" fill="black"/>')+"</svg>"},J.createDataURL=function(Q,le){Q=Q||2,le=le===void 0?4*Q:le;var pe=J.getModuleCount()*Q+2*le,ye=le,me=pe-le;return ie(pe,pe,function(xe,Ae){if(ye<=xe&&xe<me&&ye<=Ae&&Ae<me){var De=Math.floor((xe-ye)/Q),ze=Math.floor((Ae-ye)/Q);return J.isDark(ze,De)?0:1}return 1})},J.createImgTag=function(Q,le,pe){Q=Q||2,le=le===void 0?4*Q:le;var ye=J.getModuleCount()*Q+2*le,me="";return me+="<img",me+=' src="',me+=J.createDataURL(Q,le),me+='"',me+=' width="',me+=ye,me+='"',me+=' height="',me+=ye,me+='"',pe&&(me+=' alt="',me+=ce(pe),me+='"'),me+"/>"};var ce=function(Q){for(var le="",pe=0;pe<Q.length;pe+=1){var ye=Q.charAt(pe);switch(ye){case"<":le+="&lt;";break;case">":le+="&gt;";break;case"&":le+="&amp;";break;case'"':le+="&quot;";break;default:le+=ye}}return le};return J.createASCII=function(Q,le){if((Q=Q||1)<2)return function(ke){ke=ke===void 0?2:ke;var Ne,Pe,qe,Ge,Qe,ft=1*J.getModuleCount()+2*ke,st=ke,wt=ft-ke,kt={"██":"█","█ ":"▀"," █":"▄"," ":" "},It={"██":"▀","█ ":"▀"," █":" "," ":" "},$t="";for(Ne=0;Ne<ft;Ne+=2){for(qe=Math.floor((Ne-st)/1),Ge=Math.floor((Ne+1-st)/1),Pe=0;Pe<ft;Pe+=1)Qe="█",st<=Pe&&Pe<wt&&st<=Ne&&Ne<wt&&J.isDark(qe,Math.floor((Pe-st)/1))&&(Qe=" "),st<=Pe&&Pe<wt&&st<=Ne+1&&Ne+1<wt&&J.isDark(Ge,Math.floor((Pe-st)/1))?Qe+=" ":Qe+="█",$t+=ke<1&&Ne+1>=wt?It[Qe]:kt[Qe];$t+=`
`}return ft%2&&ke>0?$t.substring(0,$t.length-ft-1)+Array(ft+1).join("▀"):$t.substring(0,$t.length-1)}(le);Q-=1,le=le===void 0?2*Q:le;var pe,ye,me,xe,Ae=J.getModuleCount()*Q+2*le,De=le,ze=Ae-le,$e=Array(Q+1).join("██"),Fe=Array(Q+1).join(" "),we="",Se="";for(pe=0;pe<Ae;pe+=1){for(me=Math.floor((pe-De)/Q),Se="",ye=0;ye<Ae;ye+=1)xe=1,De<=ye&&ye<ze&&De<=pe&&pe<ze&&J.isDark(me,Math.floor((ye-De)/Q))&&(xe=0),Se+=xe?$e:Fe;for(me=0;me<Q;me+=1)we+=Se+`
`}return we.substring(0,we.length-1)},J.renderTo2dContext=function(Q,le){le=le||2;for(var pe=J.getModuleCount(),ye=0;ye<pe;ye++)for(var me=0;me<pe;me++)Q.fillStyle=J.isDark(ye,me)?"black":"white",Q.fillRect(ye*le,me*le,le,le)},J};m.stringToBytes=(m.stringToBytesFuncs={default:function(X){for(var ee=[],W=0;W<X.length;W+=1){var B=X.charCodeAt(W);ee.push(255&B)}return ee}}).default,m.createStringToBytes=function(X,ee){var W=function(){for(var U=te(X),F=function(){var de=U.read();if(de==-1)throw"eof";return de},M=0,I={};;){var J=U.read();if(J==-1)break;var Y=F(),ae=F()<<8|F();I[String.fromCharCode(J<<8|Y)]=ae,M+=1}if(M!=ee)throw M+" != "+ee;return I}(),B=63;return function(U){for(var F=[],M=0;M<U.length;M+=1){var I=U.charCodeAt(M);if(I<128)F.push(I);else{var J=W[U.charAt(M)];typeof J=="number"?(255&J)==J?F.push(J):(F.push(J>>>8),F.push(255&J)):F.push(B)}}return F}};var v,_,x,w,S,O={L:1,M:0,Q:3,H:2},C=(v=[[],[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,x=7973,S=function(X){for(var ee=0;X!=0;)ee+=1,X>>>=1;return ee},(w={}).getBCHTypeInfo=function(X){for(var ee=X<<10;S(ee)-S(_)>=0;)ee^=_<<S(ee)-S(_);return 21522^(X<<10|ee)},w.getBCHTypeNumber=function(X){for(var ee=X<<12;S(ee)-S(x)>=0;)ee^=x<<S(ee)-S(x);return X<<12|ee},w.getPatternPosition=function(X){return v[X-1]},w.getMaskFunction=function(X){switch(X){case 0:return function(ee,W){return(ee+W)%2==0};case 1:return function(ee,W){return ee%2==0};case 2:return function(ee,W){return W%3==0};case 3:return function(ee,W){return(ee+W)%3==0};case 4:return function(ee,W){return(Math.floor(ee/2)+Math.floor(W/3))%2==0};case 5:return function(ee,W){return ee*W%2+ee*W%3==0};case 6:return function(ee,W){return(ee*W%2+ee*W%3)%2==0};case 7:return function(ee,W){return(ee*W%3+(ee+W)%2)%2==0};default:throw"bad maskPattern:"+X}},w.getErrorCorrectPolynomial=function(X){for(var ee=j([1],0),W=0;W<X;W+=1)ee=ee.multiply(j([1,T.gexp(W)],0));return ee},w.getLengthInBits=function(X,ee){if(1<=ee&&ee<10)switch(X){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+X}else if(ee<27)switch(X){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+X}else{if(!(ee<41))throw"type:"+ee;switch(X){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+X}}},w.getLostPoint=function(X){for(var ee=X.getModuleCount(),W=0,B=0;B<ee;B+=1)for(var U=0;U<ee;U+=1){for(var F=0,M=X.isDark(B,U),I=-1;I<=1;I+=1)if(!(B+I<0||ee<=B+I))for(var J=-1;J<=1;J+=1)U+J<0||ee<=U+J||I==0&&J==0||M==X.isDark(B+I,U+J)&&(F+=1);F>5&&(W+=3+F-5)}for(B=0;B<ee-1;B+=1)for(U=0;U<ee-1;U+=1){var Y=0;X.isDark(B,U)&&(Y+=1),X.isDark(B+1,U)&&(Y+=1),X.isDark(B,U+1)&&(Y+=1),X.isDark(B+1,U+1)&&(Y+=1),Y!=0&&Y!=4||(W+=3)}for(B=0;B<ee;B+=1)for(U=0;U<ee-6;U+=1)X.isDark(B,U)&&!X.isDark(B,U+1)&&X.isDark(B,U+2)&&X.isDark(B,U+3)&&X.isDark(B,U+4)&&!X.isDark(B,U+5)&&X.isDark(B,U+6)&&(W+=40);for(U=0;U<ee;U+=1)for(B=0;B<ee-6;B+=1)X.isDark(B,U)&&!X.isDark(B+1,U)&&X.isDark(B+2,U)&&X.isDark(B+3,U)&&X.isDark(B+4,U)&&!X.isDark(B+5,U)&&X.isDark(B+6,U)&&(W+=40);var ae=0;for(U=0;U<ee;U+=1)for(B=0;B<ee;B+=1)X.isDark(B,U)&&(ae+=1);return W+Math.abs(100*ae/ee/ee-50)/5*10},w),T=function(){for(var X=new Array(256),ee=new Array(256),W=0;W<8;W+=1)X[W]=1<<W;for(W=8;W<256;W+=1)X[W]=X[W-4]^X[W-5]^X[W-6]^X[W-8];for(W=0;W<255;W+=1)ee[X[W]]=W;return{glog:function(B){if(B<1)throw"glog("+B+")";return ee[B]},gexp:function(B){for(;B<0;)B+=255;for(;B>=256;)B-=255;return X[B]}}}();function j(X,ee){if(X.length===void 0)throw X.length+"/"+ee;var W=function(){for(var U=0;U<X.length&&X[U]==0;)U+=1;for(var F=new Array(X.length-U+ee),M=0;M<X.length-U;M+=1)F[M]=X[M+U];return F}(),B={getAt:function(U){return W[U]},getLength:function(){return W.length},multiply:function(U){for(var F=new Array(B.getLength()+U.getLength()-1),M=0;M<B.getLength();M+=1)for(var I=0;I<U.getLength();I+=1)F[M+I]^=T.gexp(T.glog(B.getAt(M))+T.glog(U.getAt(I)));return j(F,0)},mod:function(U){if(B.getLength()-U.getLength()<0)return B;for(var F=T.glog(B.getAt(0))-T.glog(U.getAt(0)),M=new Array(B.getLength()),I=0;I<B.getLength();I+=1)M[I]=B.getAt(I);for(I=0;I<U.getLength();I+=1)M[I]^=T.gexp(T.glog(U.getAt(I))+F);return j(M,0).mod(U)}};return B}var P=function(){var X=[[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]],ee=function(B,U){var F={};return F.totalCount=B,F.dataCount=U,F},W={getRSBlocks:function(B,U){var F=function(be,z){switch(z){case O.L:return X[4*(be-1)+0];case O.M:return X[4*(be-1)+1];case O.Q:return X[4*(be-1)+2];case O.H:return X[4*(be-1)+3];default:return}}(B,U);if(F===void 0)throw"bad rs block @ typeNumber:"+B+"/errorCorrectionLevel:"+U;for(var M=F.length/3,I=[],J=0;J<M;J+=1)for(var Y=F[3*J+0],ae=F[3*J+1],de=F[3*J+2],fe=0;fe<Y;fe+=1)I.push(ee(ae,de));return I}};return W}(),R=function(){var X=[],ee=0,W={getBuffer:function(){return X},getAt:function(B){var U=Math.floor(B/8);return(X[U]>>>7-B%8&1)==1},put:function(B,U){for(var F=0;F<U;F+=1)W.putBit((B>>>U-F-1&1)==1)},getLengthInBits:function(){return ee},putBit:function(B){var U=Math.floor(ee/8);X.length<=U&&X.push(0),B&&(X[U]|=128>>>ee%8),ee+=1}};return W},$=function(X){var ee=X,W={getMode:function(){return 1},getLength:function(F){return ee.length},write:function(F){for(var M=ee,I=0;I+2<M.length;)F.put(B(M.substring(I,I+3)),10),I+=3;I<M.length&&(M.length-I==1?F.put(B(M.substring(I,I+1)),4):M.length-I==2&&F.put(B(M.substring(I,I+2)),7))}},B=function(F){for(var M=0,I=0;I<F.length;I+=1)M=10*M+U(F.charAt(I));return M},U=function(F){if("0"<=F&&F<="9")return F.charCodeAt(0)-48;throw"illegal char :"+F};return W},q=function(X){var ee=X,W={getMode:function(){return 2},getLength:function(U){return ee.length},write:function(U){for(var F=ee,M=0;M+1<F.length;)U.put(45*B(F.charAt(M))+B(F.charAt(M+1)),11),M+=2;M<F.length&&U.put(B(F.charAt(M)),6)}},B=function(U){if("0"<=U&&U<="9")return U.charCodeAt(0)-48;if("A"<=U&&U<="Z")return U.charCodeAt(0)-65+10;switch(U){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 :"+U}};return W},K=function(X){var ee=m.stringToBytes(X);return{getMode:function(){return 4},getLength:function(W){return ee.length},write:function(W){for(var B=0;B<ee.length;B+=1)W.put(ee[B],8)}}},H=function(X){var ee=m.stringToBytesFuncs.SJIS;if(!ee)throw"sjis not supported.";(function(){var U=ee("友");if(U.length!=2||(U[0]<<8|U[1])!=38726)throw"sjis not supported."})();var W=ee(X),B={getMode:function(){return 8},getLength:function(U){return~~(W.length/2)},write:function(U){for(var F=W,M=0;M+1<F.length;){var I=(255&F[M])<<8|255&F[M+1];if(33088<=I&&I<=40956)I-=33088;else{if(!(57408<=I&&I<=60351))throw"illegal char at "+(M+1)+"/"+I;I-=49472}I=192*(I>>>8&255)+(255&I),U.put(I,13),M+=2}if(M<F.length)throw"illegal char at "+(M+1)}};return B},G=function(){var X=[],ee={writeByte:function(W){X.push(255&W)},writeShort:function(W){ee.writeByte(W),ee.writeByte(W>>>8)},writeBytes:function(W,B,U){B=B||0,U=U||W.length;for(var F=0;F<U;F+=1)ee.writeByte(W[F+B])},writeString:function(W){for(var B=0;B<W.length;B+=1)ee.writeByte(W.charCodeAt(B))},toByteArray:function(){return X},toString:function(){var W="";W+="[";for(var B=0;B<X.length;B+=1)B>0&&(W+=","),W+=X[B];return W+"]"}};return ee},te=function(X){var ee=X,W=0,B=0,U=0,F={read:function(){for(;U<8;){if(W>=ee.length){if(U==0)return-1;throw"unexpected end of file./"+U}var I=ee.charAt(W);if(W+=1,I=="=")return U=0,-1;I.match(/^\s$/)||(B=B<<6|M(I.charCodeAt(0)),U+=6)}var J=B>>>U-8&255;return U-=8,J}},M=function(I){if(65<=I&&I<=90)return I-65;if(97<=I&&I<=122)return I-97+26;if(48<=I&&I<=57)return I-48+52;if(I==43)return 62;if(I==47)return 63;throw"c:"+I};return F},ie=function(X,ee,W){for(var B=function(ae,de){var fe=ae,be=de,z=new Array(ae*de),V={setPixel:function(Q,le,pe){z[le*fe+Q]=pe},write:function(Q){Q.writeString("GIF87a"),Q.writeShort(fe),Q.writeShort(be),Q.writeByte(128),Q.writeByte(0),Q.writeByte(0),Q.writeByte(0),Q.writeByte(0),Q.writeByte(0),Q.writeByte(255),Q.writeByte(255),Q.writeByte(255),Q.writeString(","),Q.writeShort(0),Q.writeShort(0),Q.writeShort(fe),Q.writeShort(be),Q.writeByte(0);var le=ne(2);Q.writeByte(2);for(var pe=0;le.length-pe>255;)Q.writeByte(255),Q.writeBytes(le,pe,255),pe+=255;Q.writeByte(le.length-pe),Q.writeBytes(le,pe,le.length-pe),Q.writeByte(0),Q.writeString(";")}},ne=function(Q){for(var le=1<<Q,pe=1+(1<<Q),ye=Q+1,me=ce(),xe=0;xe<le;xe+=1)me.add(String.fromCharCode(xe));me.add(String.fromCharCode(le)),me.add(String.fromCharCode(pe));var Ae,De,ze,$e=G(),Fe=(Ae=$e,De=0,ze=0,{write:function(Ne,Pe){if(Ne>>>Pe)throw"length over";for(;De+Pe>=8;)Ae.writeByte(255&(Ne<<De|ze)),Pe-=8-De,Ne>>>=8-De,ze=0,De=0;ze|=Ne<<De,De+=Pe},flush:function(){De>0&&Ae.writeByte(ze)}});Fe.write(le,ye);var we=0,Se=String.fromCharCode(z[we]);for(we+=1;we<z.length;){var ke=String.fromCharCode(z[we]);we+=1,me.contains(Se+ke)?Se+=ke:(Fe.write(me.indexOf(Se),ye),me.size()<4095&&(me.size()==1<<ye&&(ye+=1),me.add(Se+ke)),Se=ke)}return Fe.write(me.indexOf(Se),ye),Fe.write(pe,ye),Fe.flush(),$e.toByteArray()},ce=function(){var Q={},le=0,pe={add:function(ye){if(pe.contains(ye))throw"dup key:"+ye;Q[ye]=le,le+=1},size:function(){return le},indexOf:function(ye){return Q[ye]},contains:function(ye){return Q[ye]!==void 0}};return pe};return V}(X,ee),U=0;U<ee;U+=1)for(var F=0;F<X;F+=1)B.setPixel(F,U,W(F,U));var M=G();B.write(M);for(var I=function(){var ae=0,de=0,fe=0,be="",z={},V=function(ce){be+=String.fromCharCode(ne(63&ce))},ne=function(ce){if(!(ce<0)){if(ce<26)return 65+ce;if(ce<52)return ce-26+97;if(ce<62)return ce-52+48;if(ce==62)return 43;if(ce==63)return 47}throw"n:"+ce};return z.writeByte=function(ce){for(ae=ae<<8|255&ce,de+=8,fe+=1;de>=6;)V(ae>>>de-6),de-=6},z.flush=function(){if(de>0&&(V(ae<<6-de),ae=0,de=0),fe%3!=0)for(var ce=3-fe%3,Q=0;Q<ce;Q+=1)be+="="},z.toString=function(){return be},z}(),J=M.toByteArray(),Y=0;Y<J.length;Y+=1)I.writeByte(J[Y]);return I.flush(),"data:image/gif;base64,"+I};return m}();h.stringToBytesFuncs["UTF-8"]=function(m){return function(v){for(var _=[],x=0;x<v.length;x++){var w=v.charCodeAt(x);w<128?_.push(w):w<2048?_.push(192|w>>6,128|63&w):w<55296||w>=57344?_.push(224|w>>12,128|w>>6&63,128|63&w):(x++,w=65536+((1023&w)<<10|1023&v.charCodeAt(x)),_.push(240|w>>18,128|w>>12&63,128|w>>6&63,128|63&w))}return _}(m)},(u=typeof(f=function(){return h})=="function"?f.apply(l,[]):f)===void 0||(o.exports=u)}},r={};function i(o){var l=r[o];if(l!==void 0)return l.exports;var f=r[o]={exports:{}};return n[o](f,f.exports,i),f.exports}i.n=o=>{var l=o&&o.__esModule?()=>o.default:()=>o;return i.d(l,{a:l}),l},i.d=(o,l)=>{for(var f in l)i.o(l,f)&&!i.o(o,f)&&Object.defineProperty(o,f,{enumerable:!0,get:l[f]})},i.o=(o,l)=>Object.prototype.hasOwnProperty.call(o,l);var a={};return(()=>{i.d(a,{default:()=>ee});const o=W=>!!W&&typeof W=="object"&&!Array.isArray(W);function l(W,...B){if(!B.length)return W;const U=B.shift();return U!==void 0&&o(W)&&o(U)?(W=Object.assign({},W),Object.keys(U).forEach(F=>{const M=W[F],I=U[F];Array.isArray(M)&&Array.isArray(I)?W[F]=I:o(M)&&o(I)?W[F]=l(Object.assign({},M),I):W[F]=I}),l(W,...B)):W}function f(W,B){const U=document.createElement("a");U.download=B,U.href=W,document.body.appendChild(U),U.click(),document.body.removeChild(U)}const u={L:.07,M:.15,Q:.25,H:.3};class h{constructor({svg:B,type:U,window:F}){this._svg=B,this._type=U,this._window=F}draw(B,U,F,M){let I;switch(this._type){case"dots":I=this._drawDot;break;case"classy":I=this._drawClassy;break;case"classy-rounded":I=this._drawClassyRounded;break;case"rounded":I=this._drawRounded;break;case"extra-rounded":I=this._drawExtraRounded;break;default:I=this._drawSquare}I.call(this,{x:B,y:U,size:F,getNeighbor:M})}_rotateFigure({x:B,y:U,size:F,rotation:M=0,draw:I}){var J;const Y=B+F/2,ae=U+F/2;I(),(J=this._element)===null||J===void 0||J.setAttribute("transform",`rotate(${180*M/Math.PI},${Y},${ae})`)}_basicDot(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(F+U/2)),this._element.setAttribute("cy",String(M+U/2)),this._element.setAttribute("r",String(U/2))}}))}_basicSquare(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(F)),this._element.setAttribute("y",String(M)),this._element.setAttribute("width",String(U)),this._element.setAttribute("height",String(U))}}))}_basicSideRounded(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v ${U}h `+U/2+`a ${U/2} ${U/2}, 0, 0, 0, 0 ${-U}`)}}))}_basicCornerRounded(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v ${U}h ${U}v `+-U/2+`a ${U/2} ${U/2}, 0, 0, 0, ${-U/2} ${-U/2}`)}}))}_basicCornerExtraRounded(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v ${U}h ${U}a ${U} ${U}, 0, 0, 0, ${-U} ${-U}`)}}))}_basicCornersRounded(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d",`M ${F} ${M}v `+U/2+`a ${U/2} ${U/2}, 0, 0, 0, ${U/2} ${U/2}h `+U/2+"v "+-U/2+`a ${U/2} ${U/2}, 0, 0, 0, ${-U/2} ${-U/2}`)}}))}_drawDot({x:B,y:U,size:F}){this._basicDot({x:B,y:U,size:F,rotation:0})}_drawSquare({x:B,y:U,size:F}){this._basicSquare({x:B,y:U,size:F,rotation:0})}_drawRounded({x:B,y:U,size:F,getNeighbor:M}){const I=M?+M(-1,0):0,J=M?+M(1,0):0,Y=M?+M(0,-1):0,ae=M?+M(0,1):0,de=I+J+Y+ae;if(de!==0)if(de>2||I&&J||Y&&ae)this._basicSquare({x:B,y:U,size:F,rotation:0});else{if(de===2){let fe=0;return I&&Y?fe=Math.PI/2:Y&&J?fe=Math.PI:J&&ae&&(fe=-Math.PI/2),void this._basicCornerRounded({x:B,y:U,size:F,rotation:fe})}if(de===1){let fe=0;return Y?fe=Math.PI/2:J?fe=Math.PI:ae&&(fe=-Math.PI/2),void this._basicSideRounded({x:B,y:U,size:F,rotation:fe})}}else this._basicDot({x:B,y:U,size:F,rotation:0})}_drawExtraRounded({x:B,y:U,size:F,getNeighbor:M}){const I=M?+M(-1,0):0,J=M?+M(1,0):0,Y=M?+M(0,-1):0,ae=M?+M(0,1):0,de=I+J+Y+ae;if(de!==0)if(de>2||I&&J||Y&&ae)this._basicSquare({x:B,y:U,size:F,rotation:0});else{if(de===2){let fe=0;return I&&Y?fe=Math.PI/2:Y&&J?fe=Math.PI:J&&ae&&(fe=-Math.PI/2),void this._basicCornerExtraRounded({x:B,y:U,size:F,rotation:fe})}if(de===1){let fe=0;return Y?fe=Math.PI/2:J?fe=Math.PI:ae&&(fe=-Math.PI/2),void this._basicSideRounded({x:B,y:U,size:F,rotation:fe})}}else this._basicDot({x:B,y:U,size:F,rotation:0})}_drawClassy({x:B,y:U,size:F,getNeighbor:M}){const I=M?+M(-1,0):0,J=M?+M(1,0):0,Y=M?+M(0,-1):0,ae=M?+M(0,1):0;I+J+Y+ae!==0?I||Y?J||ae?this._basicSquare({x:B,y:U,size:F,rotation:0}):this._basicCornerRounded({x:B,y:U,size:F,rotation:Math.PI/2}):this._basicCornerRounded({x:B,y:U,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:B,y:U,size:F,rotation:Math.PI/2})}_drawClassyRounded({x:B,y:U,size:F,getNeighbor:M}){const I=M?+M(-1,0):0,J=M?+M(1,0):0,Y=M?+M(0,-1):0,ae=M?+M(0,1):0;I+J+Y+ae!==0?I||Y?J||ae?this._basicSquare({x:B,y:U,size:F,rotation:0}):this._basicCornerExtraRounded({x:B,y:U,size:F,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:B,y:U,size:F,rotation:-Math.PI/2}):this._basicCornersRounded({x:B,y:U,size:F,rotation:Math.PI/2})}}const m={dot:"dot",square:"square",extraRounded:"extra-rounded"},v=Object.values(m);class _{constructor({svg:B,type:U,window:F}){this._svg=B,this._type=U,this._window=F}draw(B,U,F,M){let I;switch(this._type){case m.square:I=this._drawSquare;break;case m.extraRounded:I=this._drawExtraRounded;break;default:I=this._drawDot}I.call(this,{x:B,y:U,size:F,rotation:M})}_rotateFigure({x:B,y:U,size:F,rotation:M=0,draw:I}){var J;const Y=B+F/2,ae=U+F/2;I(),(J=this._element)===null||J===void 0||J.setAttribute("transform",`rotate(${180*M/Math.PI},${Y},${ae})`)}_basicDot(B){const{size:U,x:F,y:M}=B,I=U/7;this._rotateFigure(Object.assign(Object.assign({},B),{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 ${F+U/2} ${M}a ${U/2} ${U/2} 0 1 0 0.1 0zm 0 ${I}a ${U/2-I} ${U/2-I} 0 1 1 -0.1 0Z`)}}))}_basicSquare(B){const{size:U,x:F,y:M}=B,I=U/7;this._rotateFigure(Object.assign(Object.assign({},B),{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 ${F} ${M}v ${U}h ${U}v `+-U+`zM ${F+I} ${M+I}h `+(U-2*I)+"v "+(U-2*I)+"h "+(2*I-U)+"z")}}))}_basicExtraRounded(B){const{size:U,x:F,y:M}=B,I=U/7;this._rotateFigure(Object.assign(Object.assign({},B),{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 ${F} ${M+2.5*I}v `+2*I+`a ${2.5*I} ${2.5*I}, 0, 0, 0, ${2.5*I} ${2.5*I}h `+2*I+`a ${2.5*I} ${2.5*I}, 0, 0, 0, ${2.5*I} ${2.5*-I}v `+-2*I+`a ${2.5*I} ${2.5*I}, 0, 0, 0, ${2.5*-I} ${2.5*-I}h `+-2*I+`a ${2.5*I} ${2.5*I}, 0, 0, 0, ${2.5*-I} ${2.5*I}M ${F+2.5*I} ${M+I}h `+2*I+`a ${1.5*I} ${1.5*I}, 0, 0, 1, ${1.5*I} ${1.5*I}v `+2*I+`a ${1.5*I} ${1.5*I}, 0, 0, 1, ${1.5*-I} ${1.5*I}h `+-2*I+`a ${1.5*I} ${1.5*I}, 0, 0, 1, ${1.5*-I} ${1.5*-I}v `+-2*I+`a ${1.5*I} ${1.5*I}, 0, 0, 1, ${1.5*I} ${1.5*-I}`)}}))}_drawDot({x:B,y:U,size:F,rotation:M}){this._basicDot({x:B,y:U,size:F,rotation:M})}_drawSquare({x:B,y:U,size:F,rotation:M}){this._basicSquare({x:B,y:U,size:F,rotation:M})}_drawExtraRounded({x:B,y:U,size:F,rotation:M}){this._basicExtraRounded({x:B,y:U,size:F,rotation:M})}}const x={dot:"dot",square:"square"},w=Object.values(x);class S{constructor({svg:B,type:U,window:F}){this._svg=B,this._type=U,this._window=F}draw(B,U,F,M){let I;I=this._type===x.square?this._drawSquare:this._drawDot,I.call(this,{x:B,y:U,size:F,rotation:M})}_rotateFigure({x:B,y:U,size:F,rotation:M=0,draw:I}){var J;const Y=B+F/2,ae=U+F/2;I(),(J=this._element)===null||J===void 0||J.setAttribute("transform",`rotate(${180*M/Math.PI},${Y},${ae})`)}_basicDot(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(F+U/2)),this._element.setAttribute("cy",String(M+U/2)),this._element.setAttribute("r",String(U/2))}}))}_basicSquare(B){const{size:U,x:F,y:M}=B;this._rotateFigure(Object.assign(Object.assign({},B),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(F)),this._element.setAttribute("y",String(M)),this._element.setAttribute("width",String(U)),this._element.setAttribute("height",String(U))}}))}_drawDot({x:B,y:U,size:F,rotation:M}){this._basicDot({x:B,y:U,size:F,rotation:M})}_drawSquare({x:B,y:U,size:F,rotation:M}){this._basicSquare({x:B,y:U,size:F,rotation:M})}}const O="circle",C=[[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]],T=[[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 j{constructor(B,U){this._roundSize=F=>this._options.dotsOptions.roundSize?Math.floor(F):F,this._window=U,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(B.width)),this._element.setAttribute("height",String(B.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),B.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox",`0 0 ${B.width} ${B.height}`),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=B.image,this._instanceId=j.instanceCount++,this._options=B}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(B){const U=B.getModuleCount(),F=Math.min(this._options.width,this._options.height)-2*this._options.margin,M=this._options.shape===O?F/Math.sqrt(2):F,I=this._roundSize(M/U);let J={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=B,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:Y,qrOptions:ae}=this._options,de=Y.imageSize*u[ae.errorCorrectionLevel],fe=Math.floor(de*U*U);J=function({originalHeight:be,originalWidth:z,maxHiddenDots:V,maxHiddenAxisDots:ne,dotSize:ce}){const Q={x:0,y:0},le={x:0,y:0};if(be<=0||z<=0||V<=0||ce<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const pe=be/z;return Q.x=Math.floor(Math.sqrt(V/pe)),Q.x<=0&&(Q.x=1),ne&&ne<Q.x&&(Q.x=ne),Q.x%2==0&&Q.x--,le.x=Q.x*ce,Q.y=1+2*Math.ceil((Q.x*pe-1)/2),le.y=Math.round(le.x*pe),(Q.y*Q.x>V||ne&&ne<Q.y)&&(ne&&ne<Q.y?(Q.y=ne,Q.y%2==0&&Q.x--):Q.y-=2,le.y=Q.y*ce,Q.x=1+2*Math.ceil((Q.y/pe-1)/2),le.x=Math.round(le.y/pe)),{height:le.y,width:le.x,hideYDots:Q.y,hideXDots:Q.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:fe,maxHiddenAxisDots:U-14,dotSize:I})}this.drawBackground(),this.drawDots((Y,ae)=>{var de,fe,be,z,V,ne;return!(this._options.imageOptions.hideBackgroundDots&&Y>=(U-J.hideYDots)/2&&Y<(U+J.hideYDots)/2&&ae>=(U-J.hideXDots)/2&&ae<(U+J.hideXDots)/2||!((de=C[Y])===null||de===void 0)&&de[ae]||!((fe=C[Y-U+7])===null||fe===void 0)&&fe[ae]||!((be=C[Y])===null||be===void 0)&&be[ae-U+7]||!((z=T[Y])===null||z===void 0)&&z[ae]||!((V=T[Y-U+7])===null||V===void 0)&&V[ae]||!((ne=T[Y])===null||ne===void 0)&&ne[ae-U+7])}),this.drawCorners(),this._options.image&&await this.drawImage({width:J.width,height:J.height,count:U,dotSize:I})}drawBackground(){var B,U,F;const M=this._element,I=this._options;if(M){const J=(B=I.backgroundOptions)===null||B===void 0?void 0:B.gradient,Y=(U=I.backgroundOptions)===null||U===void 0?void 0:U.color;let ae=I.height,de=I.width;if(J||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),!((F=I.backgroundOptions)===null||F===void 0)&&F.round&&(ae=de=Math.min(I.width,I.height),fe.setAttribute("rx",String(ae/2*I.backgroundOptions.round))),fe.setAttribute("x",String(this._roundSize((I.width-de)/2))),fe.setAttribute("y",String(this._roundSize((I.height-ae)/2))),fe.setAttribute("width",String(de)),fe.setAttribute("height",String(ae)),this._backgroundClipPath.appendChild(fe),this._createColor({options:J,color:Y,additionalRotation:0,x:0,y:0,height:I.height,width:I.width,name:`background-color-${this._instanceId}`})}}}drawDots(B){var U,F;if(!this._qr)throw"QR code is not defined";const M=this._options,I=this._qr.getModuleCount();if(I>M.width||I>M.height)throw"The canvas is too small.";const J=Math.min(M.width,M.height)-2*M.margin,Y=M.shape===O?J/Math.sqrt(2):J,ae=this._roundSize(Y/I),de=this._roundSize((M.width-I*ae)/2),fe=this._roundSize((M.height-I*ae)/2),be=new h({svg:this._element,type:M.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:(U=M.dotsOptions)===null||U===void 0?void 0:U.gradient,color:M.dotsOptions.color,additionalRotation:0,x:0,y:0,height:M.height,width:M.width,name:`dot-color-${this._instanceId}`});for(let z=0;z<I;z++)for(let V=0;V<I;V++)B&&!B(z,V)||!((F=this._qr)===null||F===void 0)&&F.isDark(z,V)&&(be.draw(de+V*ae,fe+z*ae,ae,(ne,ce)=>!(V+ne<0||z+ce<0||V+ne>=I||z+ce>=I)&&!(B&&!B(z+ce,V+ne))&&!!this._qr&&this._qr.isDark(z+ce,V+ne)),be._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(be._element));if(M.shape===O){const z=this._roundSize((J/ae-I)/2),V=I+2*z,ne=de-z*ae,ce=fe-z*ae,Q=[],le=this._roundSize(V/2);for(let pe=0;pe<V;pe++){Q[pe]=[];for(let ye=0;ye<V;ye++)pe>=z-1&&pe<=V-z&&ye>=z-1&&ye<=V-z||Math.sqrt((pe-le)*(pe-le)+(ye-le)*(ye-le))>le?Q[pe][ye]=0:Q[pe][ye]=this._qr.isDark(ye-2*z<0?ye:ye>=I?ye-2*z:ye-z,pe-2*z<0?pe:pe>=I?pe-2*z:pe-z)?1:0}for(let pe=0;pe<V;pe++)for(let ye=0;ye<V;ye++)Q[pe][ye]&&(be.draw(ne+ye*ae,ce+pe*ae,ae,(me,xe)=>{var Ae;return!!(!((Ae=Q[pe+xe])===null||Ae===void 0)&&Ae[ye+me])}),be._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(be._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const B=this._element,U=this._options;if(!B)throw"Element code is not defined";const F=this._qr.getModuleCount(),M=Math.min(U.width,U.height)-2*U.margin,I=U.shape===O?M/Math.sqrt(2):M,J=this._roundSize(I/F),Y=7*J,ae=3*J,de=this._roundSize((U.width-F*J)/2),fe=this._roundSize((U.height-F*J)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(([be,z,V])=>{var ne,ce,Q,le,pe,ye,me,xe,Ae,De,ze,$e,Fe,we;const Se=de+be*J*(F-7),ke=fe+z*J*(F-7);let Ne=this._dotsClipPath,Pe=this._dotsClipPath;if((!((ne=U.cornersSquareOptions)===null||ne===void 0)&&ne.gradient||!((ce=U.cornersSquareOptions)===null||ce===void 0)&&ce.color)&&(Ne=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Ne.setAttribute("id",`clip-path-corners-square-color-${be}-${z}-${this._instanceId}`),this._defs.appendChild(Ne),this._cornersSquareClipPath=this._cornersDotClipPath=Pe=Ne,this._createColor({options:(Q=U.cornersSquareOptions)===null||Q===void 0?void 0:Q.gradient,color:(le=U.cornersSquareOptions)===null||le===void 0?void 0:le.color,additionalRotation:V,x:Se,y:ke,height:Y,width:Y,name:`corners-square-color-${be}-${z}-${this._instanceId}`})),((pe=U.cornersSquareOptions)===null||pe===void 0?void 0:pe.type)&&v.includes(U.cornersSquareOptions.type)){const qe=new _({svg:this._element,type:U.cornersSquareOptions.type,window:this._window});qe.draw(Se,ke,Y,V),qe._element&&Ne&&Ne.appendChild(qe._element)}else{const qe=new h({svg:this._element,type:((ye=U.cornersSquareOptions)===null||ye===void 0?void 0:ye.type)||U.dotsOptions.type,window:this._window});for(let Ge=0;Ge<C.length;Ge++)for(let Qe=0;Qe<C[Ge].length;Qe++)!((me=C[Ge])===null||me===void 0)&&me[Qe]&&(qe.draw(Se+Qe*J,ke+Ge*J,J,(ft,st)=>{var wt;return!!(!((wt=C[Ge+st])===null||wt===void 0)&&wt[Qe+ft])}),qe._element&&Ne&&Ne.appendChild(qe._element))}if((!((xe=U.cornersDotOptions)===null||xe===void 0)&&xe.gradient||!((Ae=U.cornersDotOptions)===null||Ae===void 0)&&Ae.color)&&(Pe=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),Pe.setAttribute("id",`clip-path-corners-dot-color-${be}-${z}-${this._instanceId}`),this._defs.appendChild(Pe),this._cornersDotClipPath=Pe,this._createColor({options:(De=U.cornersDotOptions)===null||De===void 0?void 0:De.gradient,color:(ze=U.cornersDotOptions)===null||ze===void 0?void 0:ze.color,additionalRotation:V,x:Se+2*J,y:ke+2*J,height:ae,width:ae,name:`corners-dot-color-${be}-${z}-${this._instanceId}`})),(($e=U.cornersDotOptions)===null||$e===void 0?void 0:$e.type)&&w.includes(U.cornersDotOptions.type)){const qe=new S({svg:this._element,type:U.cornersDotOptions.type,window:this._window});qe.draw(Se+2*J,ke+2*J,ae,V),qe._element&&Pe&&Pe.appendChild(qe._element)}else{const qe=new h({svg:this._element,type:((Fe=U.cornersDotOptions)===null||Fe===void 0?void 0:Fe.type)||U.dotsOptions.type,window:this._window});for(let Ge=0;Ge<T.length;Ge++)for(let Qe=0;Qe<T[Ge].length;Qe++)!((we=T[Ge])===null||we===void 0)&&we[Qe]&&(qe.draw(Se+Qe*J,ke+Ge*J,J,(ft,st)=>{var wt;return!!(!((wt=T[Ge+st])===null||wt===void 0)&&wt[Qe+ft])}),qe._element&&Pe&&Pe.appendChild(qe._element))}})}loadImage(){return new Promise((B,U)=>{var F;const M=this._options;if(!M.image)return U("Image is not defined");if(!((F=M.nodeCanvas)===null||F===void 0)&&F.loadImage)M.nodeCanvas.loadImage(M.image).then(I=>{var J,Y;if(this._image=I,this._options.imageOptions.saveAsBlob){const ae=(J=M.nodeCanvas)===null||J===void 0?void 0:J.createCanvas(this._image.width,this._image.height);(Y=ae==null?void 0:ae.getContext("2d"))===null||Y===void 0||Y.drawImage(I,0,0),this._imageUri=ae==null?void 0:ae.toDataURL()}B()}).catch(U);else{const I=new this._window.Image;typeof M.imageOptions.crossOrigin=="string"&&(I.crossOrigin=M.imageOptions.crossOrigin),this._image=I,I.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(J,Y){return new Promise(ae=>{const de=new Y.XMLHttpRequest;de.onload=function(){const fe=new Y.FileReader;fe.onloadend=function(){ae(fe.result)},fe.readAsDataURL(de.response)},de.open("GET",J),de.responseType="blob",de.send()})}(M.image||"",this._window)),B()},I.src=M.image}})}async drawImage({width:B,height:U,count:F,dotSize:M}){const I=this._options,J=this._roundSize((I.width-F*M)/2),Y=this._roundSize((I.height-F*M)/2),ae=J+this._roundSize(I.imageOptions.margin+(F*M-B)/2),de=Y+this._roundSize(I.imageOptions.margin+(F*M-U)/2),fe=B-2*I.imageOptions.margin,be=U-2*I.imageOptions.margin,z=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");z.setAttribute("href",this._imageUri||""),z.setAttribute("xlink:href",this._imageUri||""),z.setAttribute("x",String(ae)),z.setAttribute("y",String(de)),z.setAttribute("width",`${fe}px`),z.setAttribute("height",`${be}px`),this._element.appendChild(z)}_createColor({options:B,color:U,additionalRotation:F,x:M,y:I,height:J,width:Y,name:ae}){const de=Y>J?Y:J,fe=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(fe.setAttribute("x",String(M)),fe.setAttribute("y",String(I)),fe.setAttribute("height",String(J)),fe.setAttribute("width",String(Y)),fe.setAttribute("clip-path",`url('#clip-path-${ae}')`),B){let be;if(B.type==="radial")be=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),be.setAttribute("id",ae),be.setAttribute("gradientUnits","userSpaceOnUse"),be.setAttribute("fx",String(M+Y/2)),be.setAttribute("fy",String(I+J/2)),be.setAttribute("cx",String(M+Y/2)),be.setAttribute("cy",String(I+J/2)),be.setAttribute("r",String(de/2));else{const z=((B.rotation||0)+F)%(2*Math.PI),V=(z+2*Math.PI)%(2*Math.PI);let ne=M+Y/2,ce=I+J/2,Q=M+Y/2,le=I+J/2;V>=0&&V<=.25*Math.PI||V>1.75*Math.PI&&V<=2*Math.PI?(ne-=Y/2,ce-=J/2*Math.tan(z),Q+=Y/2,le+=J/2*Math.tan(z)):V>.25*Math.PI&&V<=.75*Math.PI?(ce-=J/2,ne-=Y/2/Math.tan(z),le+=J/2,Q+=Y/2/Math.tan(z)):V>.75*Math.PI&&V<=1.25*Math.PI?(ne+=Y/2,ce+=J/2*Math.tan(z),Q-=Y/2,le-=J/2*Math.tan(z)):V>1.25*Math.PI&&V<=1.75*Math.PI&&(ce+=J/2,ne+=Y/2/Math.tan(z),le-=J/2,Q-=Y/2/Math.tan(z)),be=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),be.setAttribute("id",ae),be.setAttribute("gradientUnits","userSpaceOnUse"),be.setAttribute("x1",String(Math.round(ne))),be.setAttribute("y1",String(Math.round(ce))),be.setAttribute("x2",String(Math.round(Q))),be.setAttribute("y2",String(Math.round(le)))}B.colorStops.forEach(({offset:z,color:V})=>{const ne=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");ne.setAttribute("offset",100*z+"%"),ne.setAttribute("stop-color",V),be.appendChild(ne)}),fe.setAttribute("fill",`url('#${ae}')`),this._defs.appendChild(be)}else U&&fe.setAttribute("fill",U);this._element.appendChild(fe)}}j.instanceCount=0;const P=j,R="canvas",$={};for(let W=0;W<=40;W++)$[W]=W;const q={type:R,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:$[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 K(W){const B=Object.assign({},W);if(!B.colorStops||!B.colorStops.length)throw"Field 'colorStops' is required in gradient";return B.rotation?B.rotation=Number(B.rotation):B.rotation=0,B.colorStops=B.colorStops.map(U=>Object.assign(Object.assign({},U),{offset:Number(U.offset)})),B}function H(W){const B=Object.assign({},W);return B.width=Number(B.width),B.height=Number(B.height),B.margin=Number(B.margin),B.imageOptions=Object.assign(Object.assign({},B.imageOptions),{hideBackgroundDots:!!B.imageOptions.hideBackgroundDots,imageSize:Number(B.imageOptions.imageSize),margin:Number(B.imageOptions.margin)}),B.margin>Math.min(B.width,B.height)&&(B.margin=Math.min(B.width,B.height)),B.dotsOptions=Object.assign({},B.dotsOptions),B.dotsOptions.gradient&&(B.dotsOptions.gradient=K(B.dotsOptions.gradient)),B.cornersSquareOptions&&(B.cornersSquareOptions=Object.assign({},B.cornersSquareOptions),B.cornersSquareOptions.gradient&&(B.cornersSquareOptions.gradient=K(B.cornersSquareOptions.gradient))),B.cornersDotOptions&&(B.cornersDotOptions=Object.assign({},B.cornersDotOptions),B.cornersDotOptions.gradient&&(B.cornersDotOptions.gradient=K(B.cornersDotOptions.gradient))),B.backgroundOptions&&(B.backgroundOptions=Object.assign({},B.backgroundOptions),B.backgroundOptions.gradient&&(B.backgroundOptions.gradient=K(B.backgroundOptions.gradient))),B}var G=i(873),te=i.n(G);function ie(W){if(!W)throw new Error("Extension must be defined");W[0]==="."&&(W=W.substring(1));const B={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"}[W.toLowerCase()];if(!B)throw new Error(`Extension "${W}" is not supported`);return B}class X{constructor(B){B!=null&&B.jsdom?this._window=new B.jsdom("",{resources:"usable"}).window:this._window=window,this._options=B?H(l(q,B)):q,this.update()}static _clearContainer(B){B&&(B.innerHTML="")}_setupSvg(){if(!this._qr)return;const B=new P(this._options,this._window);this._svg=B.getElement(),this._svgDrawingPromise=B.drawQR(this._qr).then(()=>{var U;this._svg&&((U=this._extension)===null||U===void 0||U.call(this,B.getElement(),this._options))})}_setupCanvas(){var B,U;this._qr&&(!((B=this._options.nodeCanvas)===null||B===void 0)&&B.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=(U=this._svgDrawingPromise)===null||U===void 0?void 0:U.then(()=>{var F;if(!this._svg)return;const M=this._svg,I=new this._window.XMLSerializer().serializeToString(M),J=btoa(I),Y=`data:${ie("svg")};base64,${J}`;if(!((F=this._options.nodeCanvas)===null||F===void 0)&&F.loadImage)return this._options.nodeCanvas.loadImage(Y).then(ae=>{var de,fe;ae.width=this._options.width,ae.height=this._options.height,(fe=(de=this._nodeCanvas)===null||de===void 0?void 0:de.getContext("2d"))===null||fe===void 0||fe.drawImage(ae,0,0)});{const ae=new this._window.Image;return new Promise(de=>{ae.onload=()=>{var fe,be;(be=(fe=this._domCanvas)===null||fe===void 0?void 0:fe.getContext("2d"))===null||be===void 0||be.drawImage(ae,0,0),de()},ae.src=Y})}}))}async _getElement(B="png"){if(!this._qr)throw"QR code is empty";return B.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(B){X._clearContainer(this._container),this._options=B?H(l(this._options,B)):this._options,this._options.data&&(this._qr=te()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(U){switch(!0){case/^[0-9]*$/.test(U):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(U):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===R?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(B){if(B){if(typeof B.appendChild!="function")throw"Container should be a single DOM node";this._options.type===R?this._domCanvas&&B.appendChild(this._domCanvas):this._svg&&B.appendChild(this._svg),this._container=B}}applyExtension(B){if(!B)throw"Extension function should be defined.";this._extension=B,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(B="png"){if(!this._qr)throw"QR code is empty";const U=await this._getElement(B),F=ie(B);if(!U)return null;if(B.toLowerCase()==="svg"){const M=`<?xml version="1.0" standalone="no"?>\r
${new this._window.XMLSerializer().serializeToString(U)}`;return typeof Blob>"u"||this._options.jsdom?Buffer.from(M):new Blob([M],{type:F})}return new Promise(M=>{const I=U;if("toBuffer"in I)if(F==="image/png")M(I.toBuffer(F));else if(F==="image/jpeg")M(I.toBuffer(F));else{if(F!=="application/pdf")throw Error("Unsupported extension");M(I.toBuffer(F))}else"toBlob"in I&&I.toBlob(M,F,1)})}async download(B){if(!this._qr)throw"QR code is empty";if(typeof Blob>"u")throw"Cannot download in Node.js, call getRawData instead.";let U="png",F="qr";typeof B=="string"?(U=B,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):typeof B=="object"&&B!==null&&(B.name&&(F=B.name),B.extension&&(U=B.extension));const M=await this._getElement(U);if(M)if(U.toLowerCase()==="svg"){let I=new XMLSerializer().serializeToString(M);I=`<?xml version="1.0" standalone="no"?>\r
`+I,f(`data:${ie(U)};charset=utf-8,${encodeURIComponent(I)}`,`${F}.svg`)}else f(M.toDataURL(ie(U)),`${F}.${U}`)}}const ee=X})(),a.default})())}(n0)),n0.exports}var Hde=Vde();const Wde=Nt(Hde);/*!
* Font Awesome Free 6.7.2 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 2024 Fonticons, Inc.
*/const Gde={prefix:"fab",iconName:"apple",icon:[384,512,[],"f179","M318.7 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.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.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.9zm-56.6-164.2c27.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"]},Yde={prefix:"fab",iconName:"android",icon:[576,512,[],"f17b","M420.55,301.93a24,24,0,1,1,24-24,24,24,0,0,1-24,24m-265.1,0a24,24,0,1,1,24-24,24,24,0,0,1-24,24m273.7-144.48,47.94-83a10,10,0,1,0-17.27-10h0l-48.54,84.07a301.25,301.25,0,0,0-246.56,0L116.18,64.45a10,10,0,1,0-17.27,10h0l47.94,83C64.53,202.22,8.24,285.55,0,384H576c-8.24-98.45-64.54-181.78-146.85-226.55"]},qu={Enter:"Enter",Escape:"Escape",Backspace:"Backspace",UpArrow:"ArrowUp",DownArrow:"ArrowDown",PageDown:"PageDown",PageUp:"PageUp"},z3=Symbol("Create new tag"),EF=Symbol("No options"),Mf=()=>{},dr=se.createContext(void 0);function XL(e,t){return e===t?[]:e.filter(n=>!t.includes(n))}function Kde(e){return e.selectionStart===0&&e.selectionEnd===0}function Zde(e){const t=e.value.length;return e.selectionStart===t&&e.selectionEnd===t}function L1(e){return`${e}-label`}function Xde(e){return`${e}-combobox`}function Qde(e){return`${e}-input`}function TF(e){return`${e}-listbox`}function AF(e,t){return`${e}-option-${ahe(t)}`}function Jde(e,t){if((e==null?void 0:e.value)===z3&&e.disabled===!1)return{value:t,label:t}}function ehe(e){const t=Jde(e.activeOption,e.value)||e.activeOption||uhe(e.value,e.options);return t&&!t.disabled?t:void 0}function the(e,t,n){const r=t-1;return e>r?n:e<n?r:e}const nhe=/%value%/;function H0(e,t){return e.replace(nhe,t)}function rhe(e,t){const n=PF(t),r=e.match(n);if(r){const i=r[0],a=r.index+i.length;return[e.slice(0,r.index),e.slice(r.index,a),e.slice(a)]}}const ihe=/\s+/g;function KT(e){return`${String(e.value)}-${e.label}`}function ahe(e){return KT(e).replace(ihe,"_")}function ZT(e,t){return t.findIndex(({value:n})=>n===e.value)}const ohe=/[-\\^$*+?.()|[\]{}]/g;function jF(e){return e.replace(ohe,"\\$&")}function PF(e){return new RegExp(jF(e),"i")}function she(e){return new RegExp(`^${jF(e)}$`,"i")}function lhe(e,t){if(e){const n=PF(e);return t.filter(r=>n.test(r.label))}else return[].concat(t)}function uhe(e,t){const n=she(e);return t.find(r=>n.test(r.label))||null}const che={autoComplete:"off",autoCorrect:"off","data-form-type":"other",spellCheck:!1};function fhe({allowBackspace:e,ariaDescribedBy:t,ariaErrorMessage:n,delimiterKeys:r}){const{id:i,comboBoxRef:a,inputRef:o,isDisabled:l,isInvalid:f,managerRef:u}=D.useContext(dr),h=D.useMemo(()=>{const x=H=>{const G=H.currentTarget.value;u.current.updateInputValue(G),document.activeElement===o.current&&u.current.listBoxExpand(G)},w=()=>{u.current.listBoxExpand()},S=H=>{var G;((G=a.current)==null?void 0:G.contains(H.relatedTarget))===!1&&u.current.listBoxCollapse()},O=()=>{u.current.listBoxExpand()},C=H=>{const{activeIndex:G,isExpanded:te}=u.current.state;te?(H.preventDefault(),u.current.updateActiveIndex(G+1)):(Zde(H.currentTarget)||H.altKey)&&(H.preventDefault(),u.current.listBoxExpand())},T=H=>{const{activeIndex:G,isExpanded:te}=u.current.state;te?(H.preventDefault(),u.current.updateActiveIndex(G-1)):Kde(H.currentTarget)&&(H.preventDefault(),u.current.listBoxExpand())},j=H=>{const{isExpanded:G,options:te}=u.current.state;G&&(H.preventDefault(),u.current.updateActiveIndex(te.length-1))},P=H=>{u.current.state.isExpanded&&(H.preventDefault(),u.current.updateActiveIndex(0))},R=()=>{u.current.state.isExpanded?u.current.listBoxCollapse():u.current.updateInputValue("")},$=()=>{if(e){const{value:H,selected:G}=u.current.state,te=G[G.length-1];H===""&&te&&u.current.selectTag(te)}},q=H=>{u.current.state.isExpanded&&(H.preventDefault(),u.current.selectTag())};return{onBlur:S,onChange:x,onClick:O,onFocus:w,onKeyDown:H=>{if(H.key===qu.UpArrow)return T(H);if(H.key===qu.DownArrow)return C(H);if(H.key===qu.PageUp)return P(H);if(H.key===qu.PageDown)return j(H);if(H.key===qu.Escape)return R();if(H.key===qu.Backspace)return $();if(r.includes(H.key))return q(H)}}},[e,a,r,o,u]),{activeOption:m,isExpanded:v,value:_}=u.current.state;return{...che,"aria-autocomplete":"list","aria-activedescendant":m?AF(i,m):void 0,"aria-controls":TF(i),"aria-describedby":t||void 0,"aria-disabled":l,"aria-errormessage":f&&n||void 0,"aria-invalid":f,"aria-labelledby":L1(i),"aria-expanded":v,id:Qde(i),onBlur:l?Mf:h.onBlur,onChange:l?Mf:h.onChange,onClick:l?Mf:h.onClick,onFocus:l?Mf:h.onFocus,onKeyDown:l?Mf:h.onKeyDown,ref:o,role:"combobox",type:"text",value:_}}const dhe={position:"absolute",width:0,height:0,visibility:"hidden",overflow:"scroll",whiteSpace:"pre"},hhe=["font-family","font-size","font-style","font-weight","letter-spacing","text-transform"];function phe({allowResize:e=!0,text:t}){const n=D.useRef(null),{inputRef:r}=D.useContext(dr),[i,a]=D.useState(null);return D.useLayoutEffect(()=>{if(e&&r.current&&n.current&&window.getComputedStyle){const o=window.getComputedStyle(r.current);hhe.forEach(l=>{const f=o.getPropertyValue(l);n.current.style.setProperty(l,f)})}},[e,r,n]),D.useLayoutEffect(()=>{var o;if(e){const l=Math.ceil(((o=n.current)==null?void 0:o.scrollWidth)??0)+2;i!==l&&a(l)}},[e,t,i]),{width:i,sizerProps:{ref:n,style:dhe}}}function mhe(){const{id:e,inputRef:t,listBoxRef:n,managerRef:r}=D.useContext(dr),i=r.current.state.activeIndex===-1,a=D.useCallback(o=>{var l;o.target!==t.current&&((l=t.current)==null||l.focus({preventScroll:!0}))},[t]);return D.useEffect(()=>{var o;i&&((o=n.current)==null||o.scrollTo({top:0}))},[n,i]),{"aria-labelledby":L1(e),id:TF(e),onFocus:a,ref:n,role:"listbox",tabIndex:-1}}function vhe({activateFirstOption:e,allowNew:t,collapseOnSelect:n,newOptionPosition:r,newOptionText:i,noOptionsText:a,onAdd:o,onDelete:l,onCollapse:f,onExpand:u,onInput:h,onShouldCollapse:m,onShouldExpand:v,onValidate:_,selected:x,suggestions:w,suggestionsTransform:S}){const O=D.useRef(),[C,T]=D.useState(null),[j,P]=D.useState(!1),[R,$]=D.useState(""),q=D.useMemo(()=>{const ee=S(R,w);return R&&(t&&ee[r==="first"?"unshift":"push"]({disabled:_?!_(R):!1,label:i,value:z3}),ee.length===0&&ee.push({disabled:!0,label:a,value:EF})),ee},[t,r,i,a,_,w,S,R]),K=C?ZT(C,q):-1,H=e?Math.max(K,0):K,G=q[H],te={activeIndex:H,activeOption:G,isExpanded:j,options:q,selected:x,value:R},ie={tagsAdded:O.current?XL(x,O.current.state.selected):[],tagsDeleted:O.current?XL(O.current.state.selected,x):[]},X={listBoxCollapse(ee){j&&(!m||m(ee??te.value))&&(P(!1),T(null),f==null||f())},listBoxExpand(ee){j||(!v||v(ee??te.value))&&(P(!0),T(q[H]),u==null||u())},updateActiveIndex(ee){const W=the(ee,q.length,e?0:-1);T(q[W])},updateInputValue(ee){R!==ee&&($(ee),h==null||h(ee))},selectTag(ee){if(ee??(ee=ehe(te)),ee){const W=ZT(ee,te.selected);W>-1?l(W):o(ee),n&&this.listBoxCollapse(),this.updateInputValue("")}}};return O.current={...X,flags:ie,state:te},O}function ghe(e){const{id:t,inputRef:n,listBoxRef:r,managerRef:i}=D.useContext(dr),a=D.useRef(null),o=i.current.state.options[e],l=e===i.current.state.activeIndex,f=o.disabled??!1,u=ZT(o,i.current.state.selected)>-1,h=D.useCallback(()=>{var v;i.current.selectTag(),(v=n.current)==null||v.focus()},[n,i]),m=D.useCallback(()=>{e!==i.current.state.activeIndex&&i.current.updateActiveIndex(e)},[e,i]);return whe(a,r,l),{option:{...o,active:l,disabled:f,index:e,selected:u},optionProps:{"aria-disabled":f,"aria-posinset":e+1,"aria-selected":f?void 0:u,"aria-setsize":i.current.state.options.length,id:AF(t,o),onClick:h,onMouseDown:m,ref:a,role:"option",tabIndex:-1}}}function yhe({inputRef:e,managerRef:t}){return D.useRef({input:{blur(){var r;(r=e.current)==null||r.blur()},focus(){var r;(r=e.current)==null||r.focus()},get value(){return t.current.state.value},set value(r){typeof r!="string"&&(r=String(r)),t.current.updateInputValue(r)}},listBox:{collapse(){t.current.listBoxCollapse()},expand(){t.current.listBoxExpand()},get activeOption(){return t.current.state.activeOption},get isExpanded(){return t.current.state.isExpanded}},select(r){t.current.selectTag(r)}}).current}function bhe({onBlur:e,onFocus:t}){const[n,r]=D.useState(!1),{id:i,inputRef:a,rootRef:o}=D.useContext(dr),l=D.useMemo(()=>({"aria-describedby":L1(i),id:i,onFocus(){r(!0),t==null||t()},onBlur(){var f;(f=o.current)!=null&&f.contains(document.activeElement)||(r(!1),e==null||e())},onClick(){var f;document.activeElement===o.current&&((f=a.current)==null||f.focus())},ref:o,tabIndex:-1}),[a,i,e,t,o]);return{isActive:n,rootProps:l}}function whe(e,t,n){D.useEffect(()=>{var r,i,a,o;if(n){const l=(r=e.current)==null?void 0:r.offsetHeight,f=(i=e.current)==null?void 0:i.offsetTop,u=(a=t.current)==null?void 0:a.offsetHeight,h=(o=t.current)==null?void 0:o.scrollTop;f<h&&t.current.scrollTo(0,f),f+l>h+u&&t.current.scrollTo(0,f+l-u)}},[n,t,e])}function _he(e,t){const{isDisabled:n,managerRef:r}=D.useContext(dr),i=r.current.state.selected[e],a=D.useCallback(()=>r.current.selectTag(i),[r,i]);return{tag:i,tagProps:{"aria-disabled":n,title:H0(t,i.label),onClick:n?Mf:a}}}function xhe({label:e}){var t;const{rootRef:n,managerRef:r}=D.useContext(dr),i=D.useRef(),a=r.current.flags.tagsDeleted[0],o=(t=i.current)==null?void 0:t.contains(document.activeElement);return D.useLayoutEffect(()=>{var l,f;if(a){const u=(l=i.current)==null?void 0:l.contains(document.activeElement);o&&!u&&((f=n.current)==null||f.focus({preventScroll:!0}))}},[o,i,n,a]),{ref:i,"aria-label":e}}const She={position:"absolute",width:1,height:1,left:-9999,overflow:"hidden",clip:"rect(0 0 0 0)"};function Ohe({ariaAddedText:e,ariaDeletedText:t}){const{managerRef:n}=D.useContext(dr),r=D.useRef([]);return n.current.flags.tagsAdded.forEach(i=>{r.current.push(H0(e,i.label))}),n.current.flags.tagsDeleted.forEach(i=>{r.current.push(H0(t,i.label))}),se.createElement("div",{"aria-live":"polite","aria-relevant":"additions",role:"status",style:She},r.current.join(`
`))}function Che({children:e}){const{classNames:t,comboBoxRef:n,id:r}=D.useContext(dr);return se.createElement("div",{className:t.comboBox,id:Xde(r),ref:n},e)}const Ehe=({classNames:e,text:t})=>se.createElement("mark",{className:e.highlight},t);function The({option:e,query:t,render:n=Ehe}){const{classNames:r}=D.useContext(dr);if(e.value===z3||e.value===EF)return se.createElement(se.Fragment,null,H0(e.label,t));if(t){const i=rhe(e.label,t);if(i){const a=n({text:i[1],classNames:r});return se.createElement(se.Fragment,null,i[0],a,i[2])}}return se.createElement(se.Fragment,null,e.label)}const Ahe=se.memo(The),jhe=({classNames:e,inputWidth:t,...n})=>se.createElement("input",{className:e.input,style:{width:t},...n});function Phe({allowBackspace:e=!0,allowResize:t=!0,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i,placeholderText:a,render:o=jhe}){const{classNames:l}=D.useContext(dr),{value:f,...u}=fhe({allowBackspace:e,ariaDescribedBy:n,ariaErrorMessage:r,delimiterKeys:i}),h=f.length<a.length?a:f,{width:m,sizerProps:v}=phe({allowResize:t,text:h});return se.createElement(se.Fragment,null,o({classNames:l,inputWidth:m,placeholder:a,value:f,...u}),t?se.createElement("div",{...v},h):null)}const Rhe=({children:e,classNames:t,id:n})=>se.createElement("div",{className:t.label,id:n},e);function Mhe({children:e,render:t=Rhe}){const{classNames:n,id:r}=D.useContext(dr);return t({children:e,classNames:n,id:L1(r)})}const Nhe=({children:e,classNames:t,...n})=>se.createElement("div",{className:t.listBox,...n},e);function Lhe({children:e,render:t=Nhe}){const{classNames:n,managerRef:r}=D.useContext(dr),i=mhe();return!r.current.state.isExpanded||se.Children.count(e)===0?null:t({children:e,classNames:n,...i})}const Dhe=({children:e,classNames:t,option:n,...r})=>{const i=[t.option];return n.active&&i.push(t.optionIsActive),se.createElement("div",{className:i.join(" "),...r},e)};function khe({children:e,index:t,render:n=Dhe}){const{classNames:r}=D.useContext(dr),{option:i,optionProps:a}=ghe(t);return n({classNames:r,children:e,option:i,...a})}const Ihe=({children:e,classNames:t,isActive:n,isDisabled:r,isInvalid:i,...a})=>{const o=[t.root];return n&&o.push(t.rootIsActive),r&&o.push(t.rootIsDisabled),i&&o.push(t.rootIsInvalid),se.createElement("div",{className:o.join(" "),...a},e)};function $he({children:e,onBlur:t,onFocus:n,render:r=Ihe}){const{classNames:i,isDisabled:a,isInvalid:o}=D.useContext(dr),{isActive:l,rootProps:f}=bhe({onBlur:t,onFocus:n});return r({children:e,classNames:i,isActive:l,isDisabled:a,isInvalid:o,...f})}const Bhe=({classNames:e,tag:t,...n})=>se.createElement("button",{type:"button",className:e.tag,...n},se.createElement("span",{className:e.tagName},t.label));function Uhe({render:e=Bhe,index:t,title:n}){const{classNames:r}=D.useContext(dr),{tag:i,tagProps:a}=_he(t,n);return e({classNames:r,tag:i,...a})}const zhe=({children:e,classNames:t,...n})=>se.createElement("ul",{className:t.tagList,...n,role:"list"},se.Children.map(e,r=>{if(se.isValidElement(r))return se.createElement("li",{className:t.tagListItem,key:r.key,role:"listitem"},r)}));function Fhe({children:e,label:t,render:n=zhe}){const{classNames:r}=D.useContext(dr),i=xhe({label:t});return n({classNames:r,children:e,...i})}const qhe={root:"react-tags",rootIsActive:"is-active",rootIsDisabled:"is-disabled",rootIsInvalid:"is-invalid",label:"react-tags__label",tagList:"react-tags__list",tagListItem:"react-tags__list-item",tag:"react-tags__tag",tagName:"react-tags__tag-name",comboBox:"react-tags__combobox",input:"react-tags__combobox-input",listBox:"react-tags__listbox",option:"react-tags__listbox-option",optionIsActive:"is-active",highlight:"react-tags__listbox-option-highlight"},Vhe=[qu.Enter];function Hhe({activateFirstOption:e=!1,allowBackspace:t=!0,allowNew:n=!1,allowResize:r=!0,ariaAddedText:i="Added tag %value%",ariaDescribedBy:a,ariaErrorMessage:o,ariaDeletedText:l="Removed tag %value%",classNames:f=qhe,collapseOnSelect:u=!1,deleteButtonText:h="Remove %value% from the list",delimiterKeys:m=Vhe,id:v="react-tags",isDisabled:_=!1,isInvalid:x=!1,labelText:w="Select tags",newOptionPosition:S="last",newOptionText:O="Add %value%",noOptionsText:C="No options found for %value%",onAdd:T,onBlur:j,onCollapse:P,onDelete:R,onExpand:$,onFocus:q,onInput:K,onShouldCollapse:H,onShouldExpand:G,onValidate:te,placeholderText:ie="Add a tag",renderHighlight:X,renderInput:ee,renderLabel:W,renderListBox:B,renderOption:U,renderRoot:F,renderTag:M,renderTagList:I,selected:J=[],suggestions:Y=[],suggestionsTransform:ae=lhe,tagListLabelText:de="Selected tags"},fe){const be=D.useRef(null),z=D.useRef(null),V=D.useRef(null),ne=D.useRef(null),ce=vhe({activateFirstOption:e,allowNew:n,collapseOnSelect:u,newOptionPosition:S,newOptionText:O,noOptionsText:C,onAdd:T,onDelete:R,onCollapse:P,onExpand:$,onInput:K,onShouldCollapse:H,onShouldExpand:G,onValidate:te,selected:J,suggestions:Y,suggestionsTransform:ae}),Q=yhe({inputRef:z,managerRef:ce});return fe&&(typeof fe=="function"?fe(Q):fe.current=Q),se.createElement(dr.Provider,{value:{classNames:f,comboBoxRef:be,id:v,inputRef:z,isDisabled:_,isInvalid:x,listBoxRef:V,managerRef:ce,rootRef:ne}},se.createElement($he,{onBlur:j,onFocus:q,render:F},se.createElement(Mhe,{render:W},w),se.createElement(Fhe,{render:I,label:de},ce.current.state.selected.map((le,pe)=>se.createElement(Uhe,{key:KT(le),index:pe,render:M,title:h}))),se.createElement(Che,null,se.createElement(Phe,{allowBackspace:t,allowResize:r,ariaDescribedBy:a,ariaErrorMessage:o,delimiterKeys:m,placeholderText:ie,render:ee}),se.createElement(Lhe,{render:B},ce.current.state.options.map((le,pe)=>se.createElement(khe,{key:KT(le),index:pe,render:U},se.createElement(Ahe,{option:le,query:ce.current.state.value,render:X}))))),se.createElement(Ohe,{ariaAddedText:i,ariaDeletedText:l})))}const Whe=se.forwardRef(Hhe);function i2(e){return e==null?"":`${e}`}function Ghe(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 F3(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 Yhe(e={stringFormatter:F3()}){return t=>e.stringFormatter(t.toString().slice(7,-1))}function Khe(e={stringFormatter:F3()}){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 Zhe=RegExp(`[^.[\\]]+|\\[(?:([^"'][^[]*)|(["'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))`,"g");function Xhe(e){var t,n,r;const i=[];let a;for(;a=Zhe.exec(e);)i.push((r=(t=a[3])!==null&&t!==void 0?t:(n=a[1])===null||n===void 0?void 0:n.trim())!==null&&r!==void 0?r:a[0]);return i}function QL(e,t,n){if(t in e){const a=e[t];return a===void 0?n:a}const r=Array.isArray(t)?t:Xhe(t);let i=e;for(const a of r)if(i=i==null?void 0:i[a],i===void 0)return n;return i}function RF(e,t){try{return Array.isArray(t)?e.push(...t):e.push(t),e}catch{return e.concat(t)}}function XT(e,t){let n=!0;return e.reduce((r,i)=>(i==null&&(i=""),n?(n=!1,`${i}`):`${r}${t}${i}`),"")}var JL;(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"})(JL||(JL={}));class Qhe{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||F3(),i=Khe({stringFormatter:r}),a={header:r,undefined:i2,boolean:i2,number:Ghe(),bigint:i2,string:r,symbol:Yhe({stringFormatter:r}),function:i,object:i};return n.formatters=Object.assign(Object.assign({},a),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=>QL(i,r,n)};if(typeof r=="object"){const i="default"in r?r.default:n;if(typeof r.value=="string"){const a=r.value;return{label:r.label||r.value,value:o=>QL(o,a,i)}}if(typeof r.value=="function"){const a=r.label||r.value.name||"",o={label:a,default:i},l=r.value;return{label:a,value(f){const u=l(f,o);return u===void 0?i:u}}}}throw new Error("Invalid field info option. "+JSON.stringify(r))})}getHeader(){return XT(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(RF,[]),[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 XT(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 MF extends Qhe{constructor(t){super(t)}parse(t){const n=this.preprocessData(t);this.opts.fields=this.opts.fields||this.preprocessFieldsInfo(n.reduce((o,l)=>(Object.keys(l).forEach(f=>{o.includes(f)||o.push(f)}),o),[]),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(RF,[])}processData(t){return XT(t.map(n=>this.processRow(n)).filter(n=>n),this.opts.eol)}}var lr;(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"})(lr||(lr={}));lr.QUOTATION_MARK+"",lr.QUOTATION_MARK,lr.REVERSE_SOLIDUS+"",lr.REVERSE_SOLIDUS,lr.SOLIDUS+"",lr.SOLIDUS,lr.LATIN_SMALL_LETTER_B+"",lr.BACKSPACE,lr.LATIN_SMALL_LETTER_F+"",lr.FORM_FEED,lr.LATIN_SMALL_LETTER_N+"",lr.NEWLINE,lr.LATIN_SMALL_LETTER_R+"",lr.CARRIAGE_RETURN,lr.LATIN_SMALL_LETTER_T+"",lr.TAB;var eD;(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"})(eD||(eD={}));var tD;(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"})(tD||(tD={}));var nD;(function(e){e[e.OBJECT=0]="OBJECT",e[e.ARRAY=1]="ARRAY"})(nD||(nD={}));var rD;(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"})(rD||(rD={}));var a2,iD;function si(){if(iD)return a2;iD=1;var e=Array.isArray;return a2=e,a2}var o2,aD;function NF(){if(aD)return o2;aD=1;var e=typeof fy=="object"&&fy&&fy.Object===Object&&fy;return o2=e,o2}var s2,oD;function xo(){if(oD)return s2;oD=1;var e=NF(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return s2=n,s2}var l2,sD;function Pv(){if(sD)return l2;sD=1;var e=xo(),t=e.Symbol;return l2=t,l2}var u2,lD;function Jhe(){if(lD)return u2;lD=1;var e=Pv(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;function a(o){var l=n.call(o,i),f=o[i];try{o[i]=void 0;var u=!0}catch{}var h=r.call(o);return u&&(l?o[i]=f:delete o[i]),h}return u2=a,u2}var c2,uD;function epe(){if(uD)return c2;uD=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return c2=n,c2}var f2,cD;function xs(){if(cD)return f2;cD=1;var e=Pv(),t=Jhe(),n=epe(),r="[object Null]",i="[object Undefined]",a=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?i:r:a&&a in Object(l)?t(l):n(l)}return f2=o,f2}var d2,fD;function Ss(){if(fD)return d2;fD=1;function e(t){return t!=null&&typeof t=="object"}return d2=e,d2}var h2,dD;function Qd(){if(dD)return h2;dD=1;var e=xs(),t=Ss(),n="[object Symbol]";function r(i){return typeof i=="symbol"||t(i)&&e(i)==n}return h2=r,h2}var p2,hD;function q3(){if(hD)return p2;hD=1;var e=si(),t=Qd(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function i(a,o){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||t(a)?!0:r.test(a)||!n.test(a)||o!=null&&a in Object(o)}return p2=i,p2}var m2,pD;function Jl(){if(pD)return m2;pD=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return m2=e,m2}var v2,mD;function V3(){if(mD)return v2;mD=1;var e=xs(),t=Jl(),n="[object AsyncFunction]",r="[object Function]",i="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!t(l))return!1;var f=e(l);return f==r||f==i||f==n||f==a}return v2=o,v2}var g2,vD;function tpe(){if(vD)return g2;vD=1;var e=xo(),t=e["__core-js_shared__"];return g2=t,g2}var y2,gD;function npe(){if(gD)return y2;gD=1;var e=tpe(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return y2=n,y2}var b2,yD;function LF(){if(yD)return b2;yD=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch{}try{return r+""}catch{}}return""}return b2=n,b2}var w2,bD;function rpe(){if(bD)return w2;bD=1;var e=V3(),t=npe(),n=Jl(),r=LF(),i=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,f=o.toString,u=l.hasOwnProperty,h=RegExp("^"+f.call(u).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function m(v){if(!n(v)||t(v))return!1;var _=e(v)?h:a;return _.test(r(v))}return w2=m,w2}var _2,wD;function ipe(){if(wD)return _2;wD=1;function e(t,n){return t==null?void 0:t[n]}return _2=e,_2}var x2,_D;function Oc(){if(_D)return x2;_D=1;var e=rpe(),t=ipe();function n(r,i){var a=t(r,i);return e(a)?a:void 0}return x2=n,x2}var S2,xD;function D1(){if(xD)return S2;xD=1;var e=Oc(),t=e(Object,"create");return S2=t,S2}var O2,SD;function ape(){if(SD)return O2;SD=1;var e=D1();function t(){this.__data__=e?e(null):{},this.size=0}return O2=t,O2}var C2,OD;function ope(){if(OD)return C2;OD=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return C2=e,C2}var E2,CD;function spe(){if(CD)return E2;CD=1;var e=D1(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function i(a){var o=this.__data__;if(e){var l=o[a];return l===t?void 0:l}return r.call(o,a)?o[a]:void 0}return E2=i,E2}var T2,ED;function lpe(){if(ED)return T2;ED=1;var e=D1(),t=Object.prototype,n=t.hasOwnProperty;function r(i){var a=this.__data__;return e?a[i]!==void 0:n.call(a,i)}return T2=r,T2}var A2,TD;function upe(){if(TD)return A2;TD=1;var e=D1(),t="__lodash_hash_undefined__";function n(r,i){var a=this.__data__;return this.size+=this.has(r)?0:1,a[r]=e&&i===void 0?t:i,this}return A2=n,A2}var j2,AD;function cpe(){if(AD)return j2;AD=1;var e=ape(),t=ope(),n=spe(),r=lpe(),i=upe();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var u=o[l];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,j2=a,j2}var P2,jD;function fpe(){if(jD)return P2;jD=1;function e(){this.__data__=[],this.size=0}return P2=e,P2}var R2,PD;function H3(){if(PD)return R2;PD=1;function e(t,n){return t===n||t!==t&&n!==n}return R2=e,R2}var M2,RD;function k1(){if(RD)return M2;RD=1;var e=H3();function t(n,r){for(var i=n.length;i--;)if(e(n[i][0],r))return i;return-1}return M2=t,M2}var N2,MD;function dpe(){if(MD)return N2;MD=1;var e=k1(),t=Array.prototype,n=t.splice;function r(i){var a=this.__data__,o=e(a,i);if(o<0)return!1;var l=a.length-1;return o==l?a.pop():n.call(a,o,1),--this.size,!0}return N2=r,N2}var L2,ND;function hpe(){if(ND)return L2;ND=1;var e=k1();function t(n){var r=this.__data__,i=e(r,n);return i<0?void 0:r[i][1]}return L2=t,L2}var D2,LD;function ppe(){if(LD)return D2;LD=1;var e=k1();function t(n){return e(this.__data__,n)>-1}return D2=t,D2}var k2,DD;function mpe(){if(DD)return k2;DD=1;var e=k1();function t(n,r){var i=this.__data__,a=e(i,n);return a<0?(++this.size,i.push([n,r])):i[a][1]=r,this}return k2=t,k2}var I2,kD;function I1(){if(kD)return I2;kD=1;var e=fpe(),t=dpe(),n=hpe(),r=ppe(),i=mpe();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var u=o[l];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,I2=a,I2}var $2,ID;function W3(){if(ID)return $2;ID=1;var e=Oc(),t=xo(),n=e(t,"Map");return $2=n,$2}var B2,$D;function vpe(){if($D)return B2;$D=1;var e=cpe(),t=I1(),n=W3();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return B2=r,B2}var U2,BD;function gpe(){if(BD)return U2;BD=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return U2=e,U2}var z2,UD;function $1(){if(UD)return z2;UD=1;var e=gpe();function t(n,r){var i=n.__data__;return e(r)?i[typeof r=="string"?"string":"hash"]:i.map}return z2=t,z2}var F2,zD;function ype(){if(zD)return F2;zD=1;var e=$1();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return F2=t,F2}var q2,FD;function bpe(){if(FD)return q2;FD=1;var e=$1();function t(n){return e(this,n).get(n)}return q2=t,q2}var V2,qD;function wpe(){if(qD)return V2;qD=1;var e=$1();function t(n){return e(this,n).has(n)}return V2=t,V2}var H2,VD;function _pe(){if(VD)return H2;VD=1;var e=$1();function t(n,r){var i=e(this,n),a=i.size;return i.set(n,r),this.size+=i.size==a?0:1,this}return H2=t,H2}var W2,HD;function G3(){if(HD)return W2;HD=1;var e=vpe(),t=ype(),n=bpe(),r=wpe(),i=_pe();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l<f;){var u=o[l];this.set(u[0],u[1])}}return a.prototype.clear=e,a.prototype.delete=t,a.prototype.get=n,a.prototype.has=r,a.prototype.set=i,W2=a,W2}var G2,WD;function DF(){if(WD)return G2;WD=1;var e=G3(),t="Expected a function";function n(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new TypeError(t);var a=function(){var o=arguments,l=i?i.apply(this,o):o[0],f=a.cache;if(f.has(l))return f.get(l);var u=r.apply(this,o);return a.cache=f.set(l,u)||f,u};return a.cache=new(n.Cache||e),a}return n.Cache=e,G2=n,G2}var Y2,GD;function xpe(){if(GD)return Y2;GD=1;var e=DF(),t=500;function n(r){var i=e(r,function(o){return a.size===t&&a.clear(),o}),a=i.cache;return i}return Y2=n,Y2}var K2,YD;function Spe(){if(YD)return K2;YD=1;var e=xpe(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(i){var a=[];return i.charCodeAt(0)===46&&a.push(""),i.replace(t,function(o,l,f,u){a.push(f?u.replace(n,"$1"):l||o)}),a});return K2=r,K2}var Z2,KD;function Y3(){if(KD)return Z2;KD=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=Array(i);++r<i;)a[r]=n(t[r],r,t);return a}return Z2=e,Z2}var X2,ZD;function Ope(){if(ZD)return X2;ZD=1;var e=Pv(),t=Y3(),n=si(),r=Qd(),i=e?e.prototype:void 0,a=i?i.toString:void 0;function o(l){if(typeof l=="string")return l;if(n(l))return t(l,o)+"";if(r(l))return a?a.call(l):"";var f=l+"";return f=="0"&&1/l==-1/0?"-0":f}return X2=o,X2}var Q2,XD;function kF(){if(XD)return Q2;XD=1;var e=Ope();function t(n){return n==null?"":e(n)}return Q2=t,Q2}var J2,QD;function IF(){if(QD)return J2;QD=1;var e=si(),t=q3(),n=Spe(),r=kF();function i(a,o){return e(a)?a:t(a,o)?[a]:n(r(a))}return J2=i,J2}var eS,JD;function B1(){if(JD)return eS;JD=1;var e=Qd();function t(n){if(typeof n=="string"||e(n))return n;var r=n+"";return r=="0"&&1/n==-1/0?"-0":r}return eS=t,eS}var tS,e5;function K3(){if(e5)return tS;e5=1;var e=IF(),t=B1();function n(r,i){i=e(i,r);for(var a=0,o=i.length;r!=null&&a<o;)r=r[t(i[a++])];return a&&a==o?r:void 0}return tS=n,tS}var nS,t5;function $F(){if(t5)return nS;t5=1;var e=K3();function t(n,r,i){var a=n==null?void 0:e(n,r);return a===void 0?i:a}return nS=t,nS}var Cpe=$F();const Ni=Nt(Cpe);var rS,n5;function Epe(){if(n5)return rS;n5=1;function e(t){return t==null}return rS=e,rS}var Tpe=Epe();const pt=Nt(Tpe);var iS,r5;function Ape(){if(r5)return iS;r5=1;var e=xs(),t=si(),n=Ss(),r="[object String]";function i(a){return typeof a=="string"||!t(a)&&n(a)&&e(a)==r}return iS=i,iS}var jpe=Ape();const pc=Nt(jpe);var Ppe=V3();const ht=Nt(Ppe);var Rpe=Jl();const Jd=Nt(Rpe);var aS={exports:{}},Ft={};/**
* @license React
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var i5;function Mpe(){if(i5)return Ft;i5=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),o=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),x;x=Symbol.for("react.module.reference");function w(S){if(typeof S=="object"&&S!==null){var O=S.$$typeof;switch(O){case e:switch(S=S.type,S){case n:case i:case r:case u:case h:return S;default:switch(S=S&&S.$$typeof,S){case l:case o:case f:case v:case m:case a:return S;default:return O}}case t:return O}}}return Ft.ContextConsumer=o,Ft.ContextProvider=a,Ft.Element=e,Ft.ForwardRef=f,Ft.Fragment=n,Ft.Lazy=v,Ft.Memo=m,Ft.Portal=t,Ft.Profiler=i,Ft.StrictMode=r,Ft.Suspense=u,Ft.SuspenseList=h,Ft.isAsyncMode=function(){return!1},Ft.isConcurrentMode=function(){return!1},Ft.isContextConsumer=function(S){return w(S)===o},Ft.isContextProvider=function(S){return w(S)===a},Ft.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Ft.isForwardRef=function(S){return w(S)===f},Ft.isFragment=function(S){return w(S)===n},Ft.isLazy=function(S){return w(S)===v},Ft.isMemo=function(S){return w(S)===m},Ft.isPortal=function(S){return w(S)===t},Ft.isProfiler=function(S){return w(S)===i},Ft.isStrictMode=function(S){return w(S)===r},Ft.isSuspense=function(S){return w(S)===u},Ft.isSuspenseList=function(S){return w(S)===h},Ft.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===i||S===r||S===u||S===h||S===_||typeof S=="object"&&S!==null&&(S.$$typeof===v||S.$$typeof===m||S.$$typeof===a||S.$$typeof===o||S.$$typeof===f||S.$$typeof===x||S.getModuleId!==void 0)},Ft.typeOf=w,Ft}var a5;function Npe(){return a5||(a5=1,aS.exports=Mpe()),aS.exports}var Lpe=Npe(),oS,o5;function BF(){if(o5)return oS;o5=1;var e=xs(),t=Ss(),n="[object Number]";function r(i){return typeof i=="number"||t(i)&&e(i)==n}return oS=r,oS}var sS,s5;function Dpe(){if(s5)return sS;s5=1;var e=BF();function t(n){return e(n)&&n!=+n}return sS=t,sS}var kpe=Dpe();const eh=Nt(kpe);var Ipe=BF();const $pe=Nt(Ipe);var Vr=function(t){return t===0?0:t>0?1:-1},Zu=function(t){return pc(t)&&t.indexOf("%")===t.length-1},Xe=function(t){return $pe(t)&&!eh(t)},Xn=function(t){return Xe(t)||pc(t)},Bpe=0,eu=function(t){var n=++Bpe;return"".concat(t||"").concat(n)},Hr=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(!Xe(t)&&!pc(t))return r;var a;if(Zu(t)){var o=t.indexOf("%");a=n*parseFloat(t.slice(0,o))/100}else a=+t;return eh(a)&&(a=r),i&&a>n&&(a=n),a},Tl=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},Upe=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},i=0;i<n;i++)if(!r[t[i]])r[t[i]]=!0;else return!0;return!1},En=function(t,n){return Xe(t)&&Xe(n)?function(r){return t+r*(n-t)}:function(){return n}};function W0(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Ni(r,t))===n})}var zpe=function(t){if(!t||!t.length)return null;for(var n=t.length,r=0,i=0,a=0,o=0,l=1/0,f=-1/0,u=0,h=0,m=0;m<n;m++)u=t[m].cx||0,h=t[m].cy||0,r+=u,i+=h,a+=u*h,o+=u*u,l=Math.min(l,u),f=Math.max(f,u);var v=n*o!==r*r?(n*a-r*i)/(n*o-r*r):0;return{xmin:l,xmax:f,a:v,b:(i-v*r)/n}},Fpe=function(t,n){return Xe(t)&&Xe(n)?t-n:pc(t)&&pc(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function Yf(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 QT(e){"@babel/helpers - typeof";return QT=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},QT(e)}var qpe=["viewBox","children"],Vpe=["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"],l5=["points","pathLength"],lS={svg:qpe,polygon:l5,polyline:l5},Z3=["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"],G0=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(D.isValidElement(t)&&(r=t.props),!Jd(r))return null;var i={};return Object.keys(r).forEach(function(a){Z3.includes(a)&&(i[a]=n||function(o){return r[a](r,o)})}),i},Hpe=function(t,n,r){return function(i){return t(n,r,i),null}},Hl=function(t,n,r){if(!Jd(t)||QT(t)!=="object")return null;var i=null;return Object.keys(t).forEach(function(a){var o=t[a];Z3.includes(a)&&typeof o=="function"&&(i||(i={}),i[a]=Hpe(o,n,r))}),i},Wpe=["children"],Gpe=["children"];function u5(e,t){if(e==null)return{};var n=Ype(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Ype(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function JT(e){"@babel/helpers - typeof";return JT=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},JT(e)}var c5={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},as=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},f5=null,uS=null,X3=function e(t){if(t===f5&&Array.isArray(uS))return uS;var n=[];return D.Children.forEach(t,function(r){pt(r)||(Lpe.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),uS=n,f5=t,n};function Yr(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(i){return as(i)}):r=[as(t)],X3(e).forEach(function(i){var a=Ni(i,"type.displayName")||Ni(i,"type.name");r.indexOf(a)!==-1&&n.push(i)}),n}function Ei(e,t){var n=Yr(e,t);return n&&n[0]}var d5=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,i=n.height;return!(!Xe(r)||r<=0||!Xe(i)||i<=0)},Kpe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Zpe=function(t){return t&&t.type&&pc(t.type)&&Kpe.indexOf(t.type)>=0},UF=function(t){return t&&JT(t)==="object"&&"clipDot"in t},Xpe=function(t,n,r,i){var a,o=(a=lS==null?void 0:lS[i])!==null&&a!==void 0?a:[];return n.startsWith("data-")||!ht(t)&&(i&&o.includes(n)||Vpe.includes(n))||r&&Z3.includes(n)},ot=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var i=t;if(D.isValidElement(t)&&(i=t.props),!Jd(i))return null;var a={};return Object.keys(i).forEach(function(o){var l;Xpe((l=i)===null||l===void 0?void 0:l[o],o,n,r)&&(a[o]=i[o])}),a},eA=function e(t,n){if(t===n)return!0;var r=D.Children.count(t);if(r!==D.Children.count(n))return!1;if(r===0)return!0;if(r===1)return h5(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var i=0;i<r;i++){var a=t[i],o=n[i];if(Array.isArray(a)||Array.isArray(o)){if(!e(a,o))return!1}else if(!h5(a,o))return!1}return!0},h5=function(t,n){if(pt(t)&&pt(n))return!0;if(!pt(t)&&!pt(n)){var r=t.props||{},i=r.children,a=u5(r,Wpe),o=n.props||{},l=o.children,f=u5(o,Gpe);return i&&l?Yf(a,f)&&eA(i,l):!i&&!l?Yf(a,f):!1}return!1},p5=function(t,n){var r=[],i={};return X3(t).forEach(function(a,o){if(Zpe(a))r.push(a);else if(a){var l=as(a.type),f=n[l]||{},u=f.handler,h=f.once;if(u&&(!h||!i[l])){var m=u(a,l,o);r.push(m),i[l]=!0}}}),r},Qpe=function(t){var n=t&&t.type;return n&&c5[n]?c5[n]:null},Jpe=function(t,n){return X3(n).indexOf(t)},eme=["children","width","height","viewBox","className","style","title","desc"];function tA(){return tA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tA.apply(this,arguments)}function tme(e,t){if(e==null)return{};var n=nme(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function nA(e){var t=e.children,n=e.width,r=e.height,i=e.viewBox,a=e.className,o=e.style,l=e.title,f=e.desc,u=tme(e,eme),h=i||{width:n,height:r,x:0,y:0},m=Ce("recharts-surface",a);return se.createElement("svg",tA({},ot(u,!0,"svg"),{className:m,width:n,height:r,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),se.createElement("title",null,l),se.createElement("desc",null,f),t)}var rme=["children","className"];function rA(){return rA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rA.apply(this,arguments)}function ime(e,t){if(e==null)return{};var n=ame(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ame(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var St=se.forwardRef(function(e,t){var n=e.children,r=e.className,i=ime(e,rme),a=Ce("recharts-layer",r);return se.createElement("g",rA({className:a},ot(i,!0),{ref:t}),n)}),Aa=function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a]},cS,m5;function ome(){if(m5)return cS;m5=1;function e(t,n,r){var i=-1,a=t.length;n<0&&(n=-n>a?0:a+n),r=r>a?a:r,r<0&&(r+=a),a=n>r?0:r-n>>>0,n>>>=0;for(var o=Array(a);++i<a;)o[i]=t[i+n];return o}return cS=e,cS}var fS,v5;function sme(){if(v5)return fS;v5=1;var e=ome();function t(n,r,i){var a=n.length;return i=i===void 0?a:i,!r&&i>=a?n:e(n,r,i)}return fS=t,fS}var dS,g5;function zF(){if(g5)return dS;g5=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+i+a+"]");function f(u){return l.test(u)}return dS=f,dS}var hS,y5;function lme(){if(y5)return hS;y5=1;function e(t){return t.split("")}return hS=e,hS}var pS,b5;function ume(){if(b5)return pS;b5=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",n="\\ufe20-\\ufe2f",r="\\u20d0-\\u20ff",i=t+n+r,a="\\ufe0e\\ufe0f",o="["+e+"]",l="["+i+"]",f="\\ud83c[\\udffb-\\udfff]",u="(?:"+l+"|"+f+")",h="[^"+e+"]",m="(?:\\ud83c[\\udde6-\\uddff]){2}",v="[\\ud800-\\udbff][\\udc00-\\udfff]",_="\\u200d",x=u+"?",w="["+a+"]?",S="(?:"+_+"(?:"+[h,m,v].join("|")+")"+w+x+")*",O=w+x+S,C="(?:"+[h+l+"?",l,m,v,o].join("|")+")",T=RegExp(f+"(?="+f+")|"+C+O,"g");function j(P){return P.match(T)||[]}return pS=j,pS}var mS,w5;function cme(){if(w5)return mS;w5=1;var e=lme(),t=zF(),n=ume();function r(i){return t(i)?n(i):e(i)}return mS=r,mS}var vS,_5;function fme(){if(_5)return vS;_5=1;var e=sme(),t=zF(),n=cme(),r=kF();function i(a){return function(o){o=r(o);var l=t(o)?n(o):void 0,f=l?l[0]:o.charAt(0),u=l?e(l,1).join(""):o.slice(1);return f[a]()+u}}return vS=i,vS}var gS,x5;function dme(){if(x5)return gS;x5=1;var e=fme(),t=e("toUpperCase");return gS=t,gS}var hme=dme();const U1=Nt(hme);function fn(e){return function(){return e}}const FF=Math.cos,Y0=Math.sin,$a=Math.sqrt,K0=Math.PI,z1=2*K0,iA=Math.PI,aA=2*iA,Vu=1e-6,pme=aA-Vu;function qF(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function mme(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return qF;const n=10**t;return function(r){this._+=r[0];for(let i=1,a=r.length;i<a;++i)this._+=Math.round(arguments[i]*n)/n+r[i]}}class vme{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?qF:mme(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,a,o){this._append`C${+t},${+n},${+r},${+i},${this._x1=+a},${this._y1=+o}`}arcTo(t,n,r,i,a){if(t=+t,n=+n,r=+r,i=+i,a=+a,a<0)throw new Error(`negative radius: ${a}`);let o=this._x1,l=this._y1,f=r-t,u=i-n,h=o-t,m=l-n,v=h*h+m*m;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(v>Vu)if(!(Math.abs(m*f-u*h)>Vu)||!a)this._append`L${this._x1=t},${this._y1=n}`;else{let _=r-o,x=i-l,w=f*f+u*u,S=_*_+x*x,O=Math.sqrt(w),C=Math.sqrt(v),T=a*Math.tan((iA-Math.acos((w+v-S)/(2*O*C)))/2),j=T/C,P=T/O;Math.abs(j-1)>Vu&&this._append`L${t+j*h},${n+j*m}`,this._append`A${a},${a},0,0,${+(m*_>h*x)},${this._x1=t+P*f},${this._y1=n+P*u}`}}arc(t,n,r,i,a,o){if(t=+t,n=+n,r=+r,o=!!o,r<0)throw new Error(`negative radius: ${r}`);let l=r*Math.cos(i),f=r*Math.sin(i),u=t+l,h=n+f,m=1^o,v=o?i-a:a-i;this._x1===null?this._append`M${u},${h}`:(Math.abs(this._x1-u)>Vu||Math.abs(this._y1-h)>Vu)&&this._append`L${u},${h}`,r&&(v<0&&(v=v%aA+aA),v>pme?this._append`A${r},${r},0,1,${m},${t-l},${n-f}A${r},${r},0,1,${m},${this._x1=u},${this._y1=h}`:v>Vu&&this._append`A${r},${r},0,${+(v>=iA)},${m},${this._x1=t+r*Math.cos(a)},${this._y1=n+r*Math.sin(a)}`)}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 Q3(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 vme(t)}function J3(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function VF(e){this._context=e}VF.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 F1(e){return new VF(e)}function HF(e){return e[0]}function WF(e){return e[1]}function GF(e,t){var n=fn(!0),r=null,i=F1,a=null,o=Q3(l);e=typeof e=="function"?e:e===void 0?HF:fn(e),t=typeof t=="function"?t:t===void 0?WF:fn(t);function l(f){var u,h=(f=J3(f)).length,m,v=!1,_;for(r==null&&(a=i(_=o())),u=0;u<=h;++u)!(u<h&&n(m=f[u],u,f))===v&&((v=!v)?a.lineStart():a.lineEnd()),v&&a.point(+e(m,u,f),+t(m,u,f));if(_)return a=null,_+""||null}return l.x=function(f){return arguments.length?(e=typeof f=="function"?f:fn(+f),l):e},l.y=function(f){return arguments.length?(t=typeof f=="function"?f:fn(+f),l):t},l.defined=function(f){return arguments.length?(n=typeof f=="function"?f:fn(!!f),l):n},l.curve=function(f){return arguments.length?(i=f,r!=null&&(a=i(r)),l):i},l.context=function(f){return arguments.length?(f==null?r=a=null:a=i(r=f),l):r},l}function Oy(e,t,n){var r=null,i=fn(!0),a=null,o=F1,l=null,f=Q3(u);e=typeof e=="function"?e:e===void 0?HF:fn(+e),t=typeof t=="function"?t:fn(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?WF:fn(+n);function u(m){var v,_,x,w=(m=J3(m)).length,S,O=!1,C,T=new Array(w),j=new Array(w);for(a==null&&(l=o(C=f())),v=0;v<=w;++v){if(!(v<w&&i(S=m[v],v,m))===O)if(O=!O)_=v,l.areaStart(),l.lineStart();else{for(l.lineEnd(),l.lineStart(),x=v-1;x>=_;--x)l.point(T[x],j[x]);l.lineEnd(),l.areaEnd()}O&&(T[v]=+e(S,v,m),j[v]=+t(S,v,m),l.point(r?+r(S,v,m):T[v],n?+n(S,v,m):j[v]))}if(C)return l=null,C+""||null}function h(){return GF().defined(i).curve(o).context(a)}return u.x=function(m){return arguments.length?(e=typeof m=="function"?m:fn(+m),r=null,u):e},u.x0=function(m){return arguments.length?(e=typeof m=="function"?m:fn(+m),u):e},u.x1=function(m){return arguments.length?(r=m==null?null:typeof m=="function"?m:fn(+m),u):r},u.y=function(m){return arguments.length?(t=typeof m=="function"?m:fn(+m),n=null,u):t},u.y0=function(m){return arguments.length?(t=typeof m=="function"?m:fn(+m),u):t},u.y1=function(m){return arguments.length?(n=m==null?null:typeof m=="function"?m:fn(+m),u):n},u.lineX0=u.lineY0=function(){return h().x(e).y(t)},u.lineY1=function(){return h().x(e).y(n)},u.lineX1=function(){return h().x(r).y(t)},u.defined=function(m){return arguments.length?(i=typeof m=="function"?m:fn(!!m),u):i},u.curve=function(m){return arguments.length?(o=m,a!=null&&(l=o(a)),u):o},u.context=function(m){return arguments.length?(m==null?a=l=null:l=o(a=m),u):a},u}class YF{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 gme(e){return new YF(e,!0)}function yme(e){return new YF(e,!1)}const eP={draw(e,t){const n=$a(t/K0);e.moveTo(n,0),e.arc(0,0,n,0,z1)}},bme={draw(e,t){const n=$a(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()}},KF=$a(1/3),wme=KF*2,_me={draw(e,t){const n=$a(t/wme),r=n*KF;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},xme={draw(e,t){const n=$a(t),r=-n/2;e.rect(r,r,n,n)}},Sme=.8908130915292852,ZF=Y0(K0/10)/Y0(7*K0/10),Ome=Y0(z1/10)*ZF,Cme=-FF(z1/10)*ZF,Eme={draw(e,t){const n=$a(t*Sme),r=Ome*n,i=Cme*n;e.moveTo(0,-n),e.lineTo(r,i);for(let a=1;a<5;++a){const o=z1*a/5,l=FF(o),f=Y0(o);e.lineTo(f*n,-l*n),e.lineTo(l*r-f*i,f*r+l*i)}e.closePath()}},yS=$a(3),Tme={draw(e,t){const n=-$a(t/(yS*3));e.moveTo(0,n*2),e.lineTo(-yS*n,-n),e.lineTo(yS*n,-n),e.closePath()}},Xi=-.5,Qi=$a(3)/2,oA=1/$a(12),Ame=(oA/2+1)*3,jme={draw(e,t){const n=$a(t/Ame),r=n/2,i=n*oA,a=r,o=n*oA+n,l=-a,f=o;e.moveTo(r,i),e.lineTo(a,o),e.lineTo(l,f),e.lineTo(Xi*r-Qi*i,Qi*r+Xi*i),e.lineTo(Xi*a-Qi*o,Qi*a+Xi*o),e.lineTo(Xi*l-Qi*f,Qi*l+Xi*f),e.lineTo(Xi*r+Qi*i,Xi*i-Qi*r),e.lineTo(Xi*a+Qi*o,Xi*o-Qi*a),e.lineTo(Xi*l+Qi*f,Xi*f-Qi*l),e.closePath()}};function Pme(e,t){let n=null,r=Q3(i);e=typeof e=="function"?e:fn(e||eP),t=typeof t=="function"?t:fn(t===void 0?64:+t);function i(){let a;if(n||(n=a=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),a)return n=null,a+""||null}return i.type=function(a){return arguments.length?(e=typeof a=="function"?a:fn(a),i):e},i.size=function(a){return arguments.length?(t=typeof a=="function"?a:fn(+a),i):t},i.context=function(a){return arguments.length?(n=a??null,i):n},i}function Z0(){}function X0(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 XF(e){this._context=e}XF.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:X0(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:X0(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Rme(e){return new XF(e)}function QF(e){this._context=e}QF.prototype={areaStart:Z0,areaEnd:Z0,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:X0(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Mme(e){return new QF(e)}function JF(e){this._context=e}JF.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:X0(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function Nme(e){return new JF(e)}function eq(e){this._context=e}eq.prototype={areaStart:Z0,areaEnd:Z0,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 Lme(e){return new eq(e)}function S5(e){return e<0?-1:1}function O5(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),l=(a*i+o*r)/(r+i);return(S5(a)+S5(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function C5(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function bS(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,l=(a-r)/3;e._context.bezierCurveTo(r+l,i+l*t,a-l,o-l*n,a,o)}function Q0(e){this._context=e}Q0.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:bS(this,this._t0,C5(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,bS(this,C5(this,n=O5(this,e,t)),n);break;default:bS(this,this._t0,n=O5(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function tq(e){this._context=new nq(e)}(tq.prototype=Object.create(Q0.prototype)).point=function(e,t){Q0.prototype.point.call(this,t,e)};function nq(e){this._context=e}nq.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,a){this._context.bezierCurveTo(t,e,r,n,a,i)}};function Dme(e){return new Q0(e)}function kme(e){return new tq(e)}function rq(e){this._context=e}rq.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=E5(e),i=E5(t),a=0,o=1;o<n;++a,++o)this._context.bezierCurveTo(r[0][a],i[0][a],r[1][a],i[1][a],e[o],t[o]);(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 E5(e){var t,n=e.length-1,r,i=new Array(n),a=new Array(n),o=new Array(n);for(i[0]=0,a[0]=2,o[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,a[t]=4,o[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,a[n-1]=7,o[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/a[t-1],a[t]-=r,o[t]-=r*o[t-1];for(i[n-1]=o[n-1]/a[n-1],t=n-2;t>=0;--t)i[t]=(o[t]-i[t+1])/a[t];for(a[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)a[t]=2*e[t+1]-i[t+1];return[i,a]}function Ime(e){return new rq(e)}function q1(e,t){this._context=e,this._t=t}q1.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 $me(e){return new q1(e,.5)}function Bme(e){return new q1(e,0)}function Ume(e){return new q1(e,1)}function fd(e,t){if((o=e.length)>1)for(var n=1,r,i,a=e[t[0]],o,l=a.length;n<o;++n)for(i=a,a=e[t[n]],r=0;r<l;++r)a[r][1]+=a[r][0]=isNaN(i[r][1])?i[r][0]:i[r][1]}function sA(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function zme(e,t){return e[t]}function Fme(e){const t=[];return t.key=e,t}function qme(){var e=fn([]),t=sA,n=fd,r=zme;function i(a){var o=Array.from(e.apply(this,arguments),Fme),l,f=o.length,u=-1,h;for(const m of a)for(l=0,++u;l<f;++l)(o[l][u]=[0,+r(m,o[l].key,u,a)]).data=m;for(l=0,h=J3(t(o));l<f;++l)o[h[l]].index=l;return n(o,h),o}return i.keys=function(a){return arguments.length?(e=typeof a=="function"?a:fn(Array.from(a)),i):e},i.value=function(a){return arguments.length?(r=typeof a=="function"?a:fn(+a),i):r},i.order=function(a){return arguments.length?(t=a==null?sA:typeof a=="function"?a:fn(Array.from(a)),i):t},i.offset=function(a){return arguments.length?(n=a??fd,i):n},i}function Vme(e,t){if((r=e.length)>0){for(var n,r,i=0,a=e[0].length,o;i<a;++i){for(o=n=0;n<r;++n)o+=e[n][i][1]||0;if(o)for(n=0;n<r;++n)e[n][i][1]/=o}fd(e,t)}}function Hme(e,t){if((i=e.length)>0){for(var n=0,r=e[t[0]],i,a=r.length;n<a;++n){for(var o=0,l=0;o<i;++o)l+=e[o][n][1]||0;r[n][1]+=r[n][0]=-l/2}fd(e,t)}}function Wme(e,t){if(!(!((o=e.length)>0)||!((a=(i=e[t[0]]).length)>0))){for(var n=0,r=1,i,a,o;r<a;++r){for(var l=0,f=0,u=0;l<o;++l){for(var h=e[t[l]],m=h[r][1]||0,v=h[r-1][1]||0,_=(m-v)/2,x=0;x<l;++x){var w=e[t[x]],S=w[r][1]||0,O=w[r-1][1]||0;_+=S-O}f+=m,u+=_*m}i[r-1][1]+=i[r-1][0]=n,f&&(n-=u/f)}i[r-1][1]+=i[r-1][0]=n,fd(e,t)}}function Am(e){"@babel/helpers - typeof";return Am=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},Am(e)}var Gme=["type","size","sizeType"];function lA(){return lA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lA.apply(this,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 A5(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){Yme(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 Yme(e,t,n){return t=Kme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kme(e){var t=Zme(e,"string");return Am(t)=="symbol"?t:t+""}function Zme(e,t){if(Am(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Am(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xme(e,t){if(e==null)return{};var n=Qme(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qme(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var iq={symbolCircle:eP,symbolCross:bme,symbolDiamond:_me,symbolSquare:xme,symbolStar:Eme,symbolTriangle:Tme,symbolWye:jme},Jme=Math.PI/180,eve=function(t){var n="symbol".concat(U1(t));return iq[n]||eP},tve=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var i=18*Jme;return 1.25*t*t*(Math.tan(i)-Math.tan(i*2)*Math.pow(Math.tan(i),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},nve=function(t,n){iq["symbol".concat(U1(t))]=n},V1=function(t){var n=t.type,r=n===void 0?"circle":n,i=t.size,a=i===void 0?64:i,o=t.sizeType,l=o===void 0?"area":o,f=Xme(t,Gme),u=A5(A5({},f),{},{type:r,size:a,sizeType:l}),h=function(){var S=eve(r),O=Pme().type(S).size(tve(a,l,r));return O()},m=u.className,v=u.cx,_=u.cy,x=ot(u,!0);return v===+v&&_===+_&&a===+a?se.createElement("path",lA({},x,{className:Ce("recharts-symbols",m),transform:"translate(".concat(v,", ").concat(_,")"),d:h()})):null};V1.registerSymbol=nve;function dd(e){"@babel/helpers - typeof";return dd=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},dd(e)}function uA(){return uA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uA.apply(this,arguments)}function j5(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 rve(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j5(Object(n),!0).forEach(function(r){jm(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ive(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ave(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,oq(r.key),r)}}function ove(e,t,n){return t&&ave(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function sve(e,t,n){return t=J0(t),lve(e,aq()?Reflect.construct(t,n||[],J0(e).constructor):t.apply(e,n))}function lve(e,t){if(t&&(dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return uve(e)}function uve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aq=function(){return!!e})()}function J0(e){return J0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},J0(e)}function cve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cA(e,t)}function cA(e,t){return cA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cA(e,t)}function jm(e,t,n){return t=oq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oq(e){var t=fve(e,"string");return dd(t)=="symbol"?t:t+""}function fve(e,t){if(dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xa=32,tP=function(e){function t(){return ive(this,t),sve(this,t,arguments)}return cve(t,e),ove(t,[{key:"renderIcon",value:function(r){var i=this.props.inactiveColor,a=xa/2,o=xa/6,l=xa/3,f=r.inactive?i:r.color;if(r.type==="plainline")return se.createElement("line",{strokeWidth:4,fill:"none",stroke:f,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:a,x2:xa,y2:a,className:"recharts-legend-icon"});if(r.type==="line")return se.createElement("path",{strokeWidth:4,fill:"none",stroke:f,d:"M0,".concat(a,"h").concat(l,`
A`).concat(o,",").concat(o,",0,1,1,").concat(2*l,",").concat(a,`
H`).concat(xa,"M").concat(2*l,",").concat(a,`
A`).concat(o,",").concat(o,",0,1,1,").concat(l,",").concat(a),className:"recharts-legend-icon"});if(r.type==="rect")return se.createElement("path",{stroke:"none",fill:f,d:"M0,".concat(xa/8,"h").concat(xa,"v").concat(xa*3/4,"h").concat(-32,"z"),className:"recharts-legend-icon"});if(se.isValidElement(r.legendIcon)){var u=rve({},r);return delete u.legendIcon,se.cloneElement(r.legendIcon,u)}return se.createElement(V1,{fill:f,cx:a,cy:a,size:xa,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,i=this.props,a=i.payload,o=i.iconSize,l=i.layout,f=i.formatter,u=i.inactiveColor,h={x:0,y:0,width:xa,height:xa},m={display:l==="horizontal"?"inline-block":"block",marginRight:10},v={display:"inline-block",verticalAlign:"middle",marginRight:4};return a.map(function(_,x){var w=_.formatter||f,S=Ce(jm(jm({"recharts-legend-item":!0},"legend-item-".concat(x),!0),"inactive",_.inactive));if(_.type==="none")return null;var O=ht(_.value)?null:_.value;Aa(!ht(_.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var C=_.inactive?u:_.color;return se.createElement("li",uA({className:S,style:m,key:"legend-item-".concat(x)},Hl(r.props,_,x)),se.createElement(nA,{width:o,height:o,viewBox:h,style:v},r.renderIcon(_)),se.createElement("span",{className:"recharts-legend-item-text",style:{color:C}},w?w(O,_,x):O))})}},{key:"render",value:function(){var r=this.props,i=r.payload,a=r.layout,o=r.align;if(!i||!i.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return se.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])}(D.PureComponent);jm(tP,"displayName","Legend");jm(tP,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var wS,P5;function dve(){if(P5)return wS;P5=1;var e=I1();function t(){this.__data__=new e,this.size=0}return wS=t,wS}var _S,R5;function hve(){if(R5)return _S;R5=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return _S=e,_S}var xS,M5;function pve(){if(M5)return xS;M5=1;function e(t){return this.__data__.get(t)}return xS=e,xS}var SS,N5;function mve(){if(N5)return SS;N5=1;function e(t){return this.__data__.has(t)}return SS=e,SS}var OS,L5;function vve(){if(L5)return OS;L5=1;var e=I1(),t=W3(),n=G3(),r=200;function i(a,o){var l=this.__data__;if(l instanceof e){var f=l.__data__;if(!t||f.length<r-1)return f.push([a,o]),this.size=++l.size,this;l=this.__data__=new n(f)}return l.set(a,o),this.size=l.size,this}return OS=i,OS}var CS,D5;function sq(){if(D5)return CS;D5=1;var e=I1(),t=dve(),n=hve(),r=pve(),i=mve(),a=vve();function o(l){var f=this.__data__=new e(l);this.size=f.size}return o.prototype.clear=t,o.prototype.delete=n,o.prototype.get=r,o.prototype.has=i,o.prototype.set=a,CS=o,CS}var ES,k5;function gve(){if(k5)return ES;k5=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return ES=t,ES}var TS,I5;function yve(){if(I5)return TS;I5=1;function e(t){return this.__data__.has(t)}return TS=e,TS}var AS,$5;function lq(){if($5)return AS;$5=1;var e=G3(),t=gve(),n=yve();function r(i){var a=-1,o=i==null?0:i.length;for(this.__data__=new e;++a<o;)this.add(i[a])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,AS=r,AS}var jS,B5;function uq(){if(B5)return jS;B5=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(n(t[r],r,t))return!0;return!1}return jS=e,jS}var PS,U5;function cq(){if(U5)return PS;U5=1;function e(t,n){return t.has(n)}return PS=e,PS}var RS,z5;function fq(){if(z5)return RS;z5=1;var e=lq(),t=uq(),n=cq(),r=1,i=2;function a(o,l,f,u,h,m){var v=f&r,_=o.length,x=l.length;if(_!=x&&!(v&&x>_))return!1;var w=m.get(o),S=m.get(l);if(w&&S)return w==l&&S==o;var O=-1,C=!0,T=f&i?new e:void 0;for(m.set(o,l),m.set(l,o);++O<_;){var j=o[O],P=l[O];if(u)var R=v?u(P,j,O,l,o,m):u(j,P,O,o,l,m);if(R!==void 0){if(R)continue;C=!1;break}if(T){if(!t(l,function($,q){if(!n(T,q)&&(j===$||h(j,$,f,u,m)))return T.push(q)})){C=!1;break}}else if(!(j===P||h(j,P,f,u,m))){C=!1;break}}return m.delete(o),m.delete(l),C}return RS=a,RS}var MS,F5;function bve(){if(F5)return MS;F5=1;var e=xo(),t=e.Uint8Array;return MS=t,MS}var NS,q5;function wve(){if(q5)return NS;q5=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i,a){r[++n]=[a,i]}),r}return NS=e,NS}var LS,V5;function nP(){if(V5)return LS;V5=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(i){r[++n]=i}),r}return LS=e,LS}var DS,H5;function _ve(){if(H5)return DS;H5=1;var e=Pv(),t=bve(),n=H3(),r=fq(),i=wve(),a=nP(),o=1,l=2,f="[object Boolean]",u="[object Date]",h="[object Error]",m="[object Map]",v="[object Number]",_="[object RegExp]",x="[object Set]",w="[object String]",S="[object Symbol]",O="[object ArrayBuffer]",C="[object DataView]",T=e?e.prototype:void 0,j=T?T.valueOf:void 0;function P(R,$,q,K,H,G,te){switch(q){case C:if(R.byteLength!=$.byteLength||R.byteOffset!=$.byteOffset)return!1;R=R.buffer,$=$.buffer;case O:return!(R.byteLength!=$.byteLength||!G(new t(R),new t($)));case f:case u:case v:return n(+R,+$);case h:return R.name==$.name&&R.message==$.message;case _:case w:return R==$+"";case m:var ie=i;case x:var X=K&o;if(ie||(ie=a),R.size!=$.size&&!X)return!1;var ee=te.get(R);if(ee)return ee==$;K|=l,te.set(R,$);var W=r(ie(R),ie($),K,H,G,te);return te.delete(R),W;case S:if(j)return j.call(R)==j.call($)}return!1}return DS=P,DS}var kS,W5;function dq(){if(W5)return kS;W5=1;function e(t,n){for(var r=-1,i=n.length,a=t.length;++r<i;)t[a+r]=n[r];return t}return kS=e,kS}var IS,G5;function xve(){if(G5)return IS;G5=1;var e=dq(),t=si();function n(r,i,a){var o=i(r);return t(r)?o:e(o,a(r))}return IS=n,IS}var $S,Y5;function Sve(){if(Y5)return $S;Y5=1;function e(t,n){for(var r=-1,i=t==null?0:t.length,a=0,o=[];++r<i;){var l=t[r];n(l,r,t)&&(o[a++]=l)}return o}return $S=e,$S}var BS,K5;function Ove(){if(K5)return BS;K5=1;function e(){return[]}return BS=e,BS}var US,Z5;function Cve(){if(Z5)return US;Z5=1;var e=Sve(),t=Ove(),n=Object.prototype,r=n.propertyIsEnumerable,i=Object.getOwnPropertySymbols,a=i?function(o){return o==null?[]:(o=Object(o),e(i(o),function(l){return r.call(o,l)}))}:t;return US=a,US}var zS,X5;function Eve(){if(X5)return zS;X5=1;function e(t,n){for(var r=-1,i=Array(t);++r<t;)i[r]=n(r);return i}return zS=e,zS}var FS,Q5;function Tve(){if(Q5)return FS;Q5=1;var e=xs(),t=Ss(),n="[object Arguments]";function r(i){return t(i)&&e(i)==n}return FS=r,FS}var qS,J5;function rP(){if(J5)return qS;J5=1;var e=Tve(),t=Ss(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,a=e(function(){return arguments}())?e:function(o){return t(o)&&r.call(o,"callee")&&!i.call(o,"callee")};return qS=a,qS}var Up={exports:{}},VS,ek;function Ave(){if(ek)return VS;ek=1;function e(){return!1}return VS=e,VS}Up.exports;var tk;function hq(){return tk||(tk=1,function(e,t){var n=xo(),r=Ave(),i=t&&!t.nodeType&&t,a=i&&!0&&e&&!e.nodeType&&e,o=a&&a.exports===i,l=o?n.Buffer:void 0,f=l?l.isBuffer:void 0,u=f||r;e.exports=u}(Up,Up.exports)),Up.exports}var HS,nk;function iP(){if(nk)return HS;nk=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,i){var a=typeof r;return i=i??e,!!i&&(a=="number"||a!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<i}return HS=n,HS}var WS,rk;function aP(){if(rk)return WS;rk=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return WS=t,WS}var GS,ik;function jve(){if(ik)return GS;ik=1;var e=xs(),t=aP(),n=Ss(),r="[object Arguments]",i="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",f="[object Function]",u="[object Map]",h="[object Number]",m="[object Object]",v="[object RegExp]",_="[object Set]",x="[object String]",w="[object WeakMap]",S="[object ArrayBuffer]",O="[object DataView]",C="[object Float32Array]",T="[object Float64Array]",j="[object Int8Array]",P="[object Int16Array]",R="[object Int32Array]",$="[object Uint8Array]",q="[object Uint8ClampedArray]",K="[object Uint16Array]",H="[object Uint32Array]",G={};G[C]=G[T]=G[j]=G[P]=G[R]=G[$]=G[q]=G[K]=G[H]=!0,G[r]=G[i]=G[S]=G[a]=G[O]=G[o]=G[l]=G[f]=G[u]=G[h]=G[m]=G[v]=G[_]=G[x]=G[w]=!1;function te(ie){return n(ie)&&t(ie.length)&&!!G[e(ie)]}return GS=te,GS}var YS,ak;function pq(){if(ak)return YS;ak=1;function e(t){return function(n){return t(n)}}return YS=e,YS}var zp={exports:{}};zp.exports;var ok;function Pve(){return ok||(ok=1,function(e,t){var n=NF(),r=t&&!t.nodeType&&t,i=r&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===r,o=a&&n.process,l=function(){try{var f=i&&i.require&&i.require("util").types;return f||o&&o.binding&&o.binding("util")}catch{}}();e.exports=l}(zp,zp.exports)),zp.exports}var KS,sk;function mq(){if(sk)return KS;sk=1;var e=jve(),t=pq(),n=Pve(),r=n&&n.isTypedArray,i=r?t(r):e;return KS=i,KS}var ZS,lk;function Rve(){if(lk)return ZS;lk=1;var e=Eve(),t=rP(),n=si(),r=hq(),i=iP(),a=mq(),o=Object.prototype,l=o.hasOwnProperty;function f(u,h){var m=n(u),v=!m&&t(u),_=!m&&!v&&r(u),x=!m&&!v&&!_&&a(u),w=m||v||_||x,S=w?e(u.length,String):[],O=S.length;for(var C in u)(h||l.call(u,C))&&!(w&&(C=="length"||_&&(C=="offset"||C=="parent")||x&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||i(C,O)))&&S.push(C);return S}return ZS=f,ZS}var XS,uk;function Mve(){if(uk)return XS;uk=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,i=typeof r=="function"&&r.prototype||e;return n===i}return XS=t,XS}var QS,ck;function vq(){if(ck)return QS;ck=1;function e(t,n){return function(r){return t(n(r))}}return QS=e,QS}var JS,fk;function Nve(){if(fk)return JS;fk=1;var e=vq(),t=e(Object.keys,Object);return JS=t,JS}var eO,dk;function Lve(){if(dk)return eO;dk=1;var e=Mve(),t=Nve(),n=Object.prototype,r=n.hasOwnProperty;function i(a){if(!e(a))return t(a);var o=[];for(var l in Object(a))r.call(a,l)&&l!="constructor"&&o.push(l);return o}return eO=i,eO}var tO,hk;function Rv(){if(hk)return tO;hk=1;var e=V3(),t=aP();function n(r){return r!=null&&t(r.length)&&!e(r)}return tO=n,tO}var nO,pk;function H1(){if(pk)return nO;pk=1;var e=Rve(),t=Lve(),n=Rv();function r(i){return n(i)?e(i):t(i)}return nO=r,nO}var rO,mk;function Dve(){if(mk)return rO;mk=1;var e=xve(),t=Cve(),n=H1();function r(i){return e(i,n,t)}return rO=r,rO}var iO,vk;function kve(){if(vk)return iO;vk=1;var e=Dve(),t=1,n=Object.prototype,r=n.hasOwnProperty;function i(a,o,l,f,u,h){var m=l&t,v=e(a),_=v.length,x=e(o),w=x.length;if(_!=w&&!m)return!1;for(var S=_;S--;){var O=v[S];if(!(m?O in o:r.call(o,O)))return!1}var C=h.get(a),T=h.get(o);if(C&&T)return C==o&&T==a;var j=!0;h.set(a,o),h.set(o,a);for(var P=m;++S<_;){O=v[S];var R=a[O],$=o[O];if(f)var q=m?f($,R,O,o,a,h):f(R,$,O,a,o,h);if(!(q===void 0?R===$||u(R,$,l,f,h):q)){j=!1;break}P||(P=O=="constructor")}if(j&&!P){var K=a.constructor,H=o.constructor;K!=H&&"constructor"in a&&"constructor"in o&&!(typeof K=="function"&&K instanceof K&&typeof H=="function"&&H instanceof H)&&(j=!1)}return h.delete(a),h.delete(o),j}return iO=i,iO}var aO,gk;function Ive(){if(gk)return aO;gk=1;var e=Oc(),t=xo(),n=e(t,"DataView");return aO=n,aO}var oO,yk;function $ve(){if(yk)return oO;yk=1;var e=Oc(),t=xo(),n=e(t,"Promise");return oO=n,oO}var sO,bk;function gq(){if(bk)return sO;bk=1;var e=Oc(),t=xo(),n=e(t,"Set");return sO=n,sO}var lO,wk;function Bve(){if(wk)return lO;wk=1;var e=Oc(),t=xo(),n=e(t,"WeakMap");return lO=n,lO}var uO,_k;function Uve(){if(_k)return uO;_k=1;var e=Ive(),t=W3(),n=$ve(),r=gq(),i=Bve(),a=xs(),o=LF(),l="[object Map]",f="[object Object]",u="[object Promise]",h="[object Set]",m="[object WeakMap]",v="[object DataView]",_=o(e),x=o(t),w=o(n),S=o(r),O=o(i),C=a;return(e&&C(new e(new ArrayBuffer(1)))!=v||t&&C(new t)!=l||n&&C(n.resolve())!=u||r&&C(new r)!=h||i&&C(new i)!=m)&&(C=function(T){var j=a(T),P=j==f?T.constructor:void 0,R=P?o(P):"";if(R)switch(R){case _:return v;case x:return l;case w:return u;case S:return h;case O:return m}return j}),uO=C,uO}var cO,xk;function zve(){if(xk)return cO;xk=1;var e=sq(),t=fq(),n=_ve(),r=kve(),i=Uve(),a=si(),o=hq(),l=mq(),f=1,u="[object Arguments]",h="[object Array]",m="[object Object]",v=Object.prototype,_=v.hasOwnProperty;function x(w,S,O,C,T,j){var P=a(w),R=a(S),$=P?h:i(w),q=R?h:i(S);$=$==u?m:$,q=q==u?m:q;var K=$==m,H=q==m,G=$==q;if(G&&o(w)){if(!o(S))return!1;P=!0,K=!1}if(G&&!K)return j||(j=new e),P||l(w)?t(w,S,O,C,T,j):n(w,S,$,O,C,T,j);if(!(O&f)){var te=K&&_.call(w,"__wrapped__"),ie=H&&_.call(S,"__wrapped__");if(te||ie){var X=te?w.value():w,ee=ie?S.value():S;return j||(j=new e),T(X,ee,O,C,j)}}return G?(j||(j=new e),r(w,S,O,C,T,j)):!1}return cO=x,cO}var fO,Sk;function oP(){if(Sk)return fO;Sk=1;var e=zve(),t=Ss();function n(r,i,a,o,l){return r===i?!0:r==null||i==null||!t(r)&&!t(i)?r!==r&&i!==i:e(r,i,a,o,n,l)}return fO=n,fO}var dO,Ok;function Fve(){if(Ok)return dO;Ok=1;var e=sq(),t=oP(),n=1,r=2;function i(a,o,l,f){var u=l.length,h=u,m=!f;if(a==null)return!h;for(a=Object(a);u--;){var v=l[u];if(m&&v[2]?v[1]!==a[v[0]]:!(v[0]in a))return!1}for(;++u<h;){v=l[u];var _=v[0],x=a[_],w=v[1];if(m&&v[2]){if(x===void 0&&!(_ in a))return!1}else{var S=new e;if(f)var O=f(x,w,_,a,o,S);if(!(O===void 0?t(w,x,n|r,f,S):O))return!1}}return!0}return dO=i,dO}var hO,Ck;function yq(){if(Ck)return hO;Ck=1;var e=Jl();function t(n){return n===n&&!e(n)}return hO=t,hO}var pO,Ek;function qve(){if(Ek)return pO;Ek=1;var e=yq(),t=H1();function n(r){for(var i=t(r),a=i.length;a--;){var o=i[a],l=r[o];i[a]=[o,l,e(l)]}return i}return pO=n,pO}var mO,Tk;function bq(){if(Tk)return mO;Tk=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return mO=e,mO}var vO,Ak;function Vve(){if(Ak)return vO;Ak=1;var e=Fve(),t=qve(),n=bq();function r(i){var a=t(i);return a.length==1&&a[0][2]?n(a[0][0],a[0][1]):function(o){return o===i||e(o,i,a)}}return vO=r,vO}var gO,jk;function Hve(){if(jk)return gO;jk=1;function e(t,n){return t!=null&&n in Object(t)}return gO=e,gO}var yO,Pk;function Wve(){if(Pk)return yO;Pk=1;var e=IF(),t=rP(),n=si(),r=iP(),i=aP(),a=B1();function o(l,f,u){f=e(f,l);for(var h=-1,m=f.length,v=!1;++h<m;){var _=a(f[h]);if(!(v=l!=null&&u(l,_)))break;l=l[_]}return v||++h!=m?v:(m=l==null?0:l.length,!!m&&i(m)&&r(_,m)&&(n(l)||t(l)))}return yO=o,yO}var bO,Rk;function Gve(){if(Rk)return bO;Rk=1;var e=Hve(),t=Wve();function n(r,i){return r!=null&&t(r,i,e)}return bO=n,bO}var wO,Mk;function Yve(){if(Mk)return wO;Mk=1;var e=oP(),t=$F(),n=Gve(),r=q3(),i=yq(),a=bq(),o=B1(),l=1,f=2;function u(h,m){return r(h)&&i(m)?a(o(h),m):function(v){var _=t(v,h);return _===void 0&&_===m?n(v,h):e(m,_,l|f)}}return wO=u,wO}var _O,Nk;function th(){if(Nk)return _O;Nk=1;function e(t){return t}return _O=e,_O}var xO,Lk;function Kve(){if(Lk)return xO;Lk=1;function e(t){return function(n){return n==null?void 0:n[t]}}return xO=e,xO}var SO,Dk;function Zve(){if(Dk)return SO;Dk=1;var e=K3();function t(n){return function(r){return e(r,n)}}return SO=t,SO}var OO,kk;function Xve(){if(kk)return OO;kk=1;var e=Kve(),t=Zve(),n=q3(),r=B1();function i(a){return n(a)?e(r(a)):t(a)}return OO=i,OO}var CO,Ik;function So(){if(Ik)return CO;Ik=1;var e=Vve(),t=Yve(),n=th(),r=si(),i=Xve();function a(o){return typeof o=="function"?o:o==null?n:typeof o=="object"?r(o)?t(o[0],o[1]):e(o):i(o)}return CO=a,CO}var EO,$k;function wq(){if($k)return EO;$k=1;function e(t,n,r,i){for(var a=t.length,o=r+(i?1:-1);i?o--:++o<a;)if(n(t[o],o,t))return o;return-1}return EO=e,EO}var TO,Bk;function Qve(){if(Bk)return TO;Bk=1;function e(t){return t!==t}return TO=e,TO}var AO,Uk;function Jve(){if(Uk)return AO;Uk=1;function e(t,n,r){for(var i=r-1,a=t.length;++i<a;)if(t[i]===n)return i;return-1}return AO=e,AO}var jO,zk;function ege(){if(zk)return jO;zk=1;var e=wq(),t=Qve(),n=Jve();function r(i,a,o){return a===a?n(i,a,o):e(i,t,o)}return jO=r,jO}var PO,Fk;function tge(){if(Fk)return PO;Fk=1;var e=ege();function t(n,r){var i=n==null?0:n.length;return!!i&&e(n,r,0)>-1}return PO=t,PO}var RO,qk;function nge(){if(qk)return RO;qk=1;function e(t,n,r){for(var i=-1,a=t==null?0:t.length;++i<a;)if(r(n,t[i]))return!0;return!1}return RO=e,RO}var MO,Vk;function rge(){if(Vk)return MO;Vk=1;function e(){}return MO=e,MO}var NO,Hk;function ige(){if(Hk)return NO;Hk=1;var e=gq(),t=rge(),n=nP(),r=1/0,i=e&&1/n(new e([,-0]))[1]==r?function(a){return new e(a)}:t;return NO=i,NO}var LO,Wk;function age(){if(Wk)return LO;Wk=1;var e=lq(),t=tge(),n=nge(),r=cq(),i=ige(),a=nP(),o=200;function l(f,u,h){var m=-1,v=t,_=f.length,x=!0,w=[],S=w;if(h)x=!1,v=n;else if(_>=o){var O=u?null:i(f);if(O)return a(O);x=!1,v=r,S=new e}else S=u?[]:w;e:for(;++m<_;){var C=f[m],T=u?u(C):C;if(C=h||C!==0?C:0,x&&T===T){for(var j=S.length;j--;)if(S[j]===T)continue e;u&&S.push(T),w.push(C)}else v(S,T,h)||(S!==w&&S.push(T),w.push(C))}return w}return LO=l,LO}var DO,Gk;function oge(){if(Gk)return DO;Gk=1;var e=So(),t=age();function n(r,i){return r&&r.length?t(r,e(i,2)):[]}return DO=n,DO}var sge=oge();const Yk=Nt(sge);function _q(e,t,n){return t===!0?Yk(e,n):ht(t)?Yk(e,t):e}function hd(e){"@babel/helpers - typeof";return hd=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},hd(e)}var lge=["ref"];function Kk(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 Qo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Kk(Object(n),!0).forEach(function(r){W1(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zk(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,Sq(r.key),r)}}function cge(e,t,n){return t&&Zk(e.prototype,t),n&&Zk(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fge(e,t,n){return t=eb(t),dge(e,xq()?Reflect.construct(t,n||[],eb(e).constructor):t.apply(e,n))}function dge(e,t){if(t&&(hd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hge(e)}function hge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xq=function(){return!!e})()}function eb(e){return eb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},eb(e)}function pge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fA(e,t)}function fA(e,t){return fA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fA(e,t)}function W1(e,t,n){return t=Sq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sq(e){var t=mge(e,"string");return hd(t)=="symbol"?t:t+""}function mge(e,t){if(hd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vge(e,t){if(e==null)return{};var n=gge(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function yge(e){return e.value}function bge(e,t){if(se.isValidElement(e))return se.cloneElement(e,t);if(typeof e=="function")return se.createElement(e,t);t.ref;var n=vge(t,lge);return se.createElement(tP,n)}var Xk=1,Kf=function(e){function t(){var n;uge(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=fge(this,t,[].concat(i)),W1(n,"lastBoundingBox",{width:-1,height:-1}),n}return pge(t,e),cge(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,i=this.getBBox();i?(Math.abs(i.width-this.lastBoundingBox.width)>Xk||Math.abs(i.height-this.lastBoundingBox.height)>Xk)&&(this.lastBoundingBox.width=i.width,this.lastBoundingBox.height=i.height,r&&r(i)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Qo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var i=this.props,a=i.layout,o=i.align,l=i.verticalAlign,f=i.margin,u=i.chartWidth,h=i.chartHeight,m,v;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(o==="center"&&a==="vertical"){var _=this.getBBoxSnapshot();m={left:((u||0)-_.width)/2}}else m=o==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(l==="middle"){var x=this.getBBoxSnapshot();v={top:((h||0)-x.height)/2}}else v=l==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Qo(Qo({},m),v)}},{key:"render",value:function(){var r=this,i=this.props,a=i.content,o=i.width,l=i.height,f=i.wrapperStyle,u=i.payloadUniqBy,h=i.payload,m=Qo(Qo({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(f)),f);return se.createElement("div",{className:"recharts-legend-wrapper",style:m,ref:function(_){r.wrapperNode=_}},bge(a,Qo(Qo({},this.props),{},{payload:_q(h,u,yge)})))}}],[{key:"getWithHeight",value:function(r,i){var a=Qo(Qo({},this.defaultProps),r.props),o=a.layout;return o==="vertical"&&Xe(r.props.height)?{height:r.props.height}:o==="horizontal"?{width:r.props.width||i}:null}}])}(D.PureComponent);W1(Kf,"displayName","Legend");W1(Kf,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var kO,Qk;function wge(){if(Qk)return kO;Qk=1;var e=Pv(),t=rP(),n=si(),r=e?e.isConcatSpreadable:void 0;function i(a){return n(a)||t(a)||!!(r&&a&&a[r])}return kO=i,kO}var IO,Jk;function Oq(){if(Jk)return IO;Jk=1;var e=dq(),t=wge();function n(r,i,a,o,l){var f=-1,u=r.length;for(a||(a=t),l||(l=[]);++f<u;){var h=r[f];i>0&&a(h)?i>1?n(h,i-1,a,o,l):e(l,h):o||(l[l.length]=h)}return l}return IO=n,IO}var $O,e8;function _ge(){if(e8)return $O;e8=1;function e(t){return function(n,r,i){for(var a=-1,o=Object(n),l=i(n),f=l.length;f--;){var u=l[t?f:++a];if(r(o[u],u,o)===!1)break}return n}}return $O=e,$O}var BO,t8;function xge(){if(t8)return BO;t8=1;var e=_ge(),t=e();return BO=t,BO}var UO,n8;function Cq(){if(n8)return UO;n8=1;var e=xge(),t=H1();function n(r,i){return r&&e(r,i,t)}return UO=n,UO}var zO,r8;function Sge(){if(r8)return zO;r8=1;var e=Rv();function t(n,r){return function(i,a){if(i==null)return i;if(!e(i))return n(i,a);for(var o=i.length,l=r?o:-1,f=Object(i);(r?l--:++l<o)&&a(f[l],l,f)!==!1;);return i}}return zO=t,zO}var FO,i8;function sP(){if(i8)return FO;i8=1;var e=Cq(),t=Sge(),n=t(e);return FO=n,FO}var qO,a8;function Eq(){if(a8)return qO;a8=1;var e=sP(),t=Rv();function n(r,i){var a=-1,o=t(r)?Array(r.length):[];return e(r,function(l,f,u){o[++a]=i(l,f,u)}),o}return qO=n,qO}var VO,o8;function Oge(){if(o8)return VO;o8=1;function e(t,n){var r=t.length;for(t.sort(n);r--;)t[r]=t[r].value;return t}return VO=e,VO}var HO,s8;function Cge(){if(s8)return HO;s8=1;var e=Qd();function t(n,r){if(n!==r){var i=n!==void 0,a=n===null,o=n===n,l=e(n),f=r!==void 0,u=r===null,h=r===r,m=e(r);if(!u&&!m&&!l&&n>r||l&&f&&h&&!u&&!m||a&&f&&h||!i&&h||!o)return 1;if(!a&&!l&&!m&&n<r||m&&i&&o&&!a&&!l||u&&i&&o||!f&&o||!h)return-1}return 0}return HO=t,HO}var WO,l8;function Ege(){if(l8)return WO;l8=1;var e=Cge();function t(n,r,i){for(var a=-1,o=n.criteria,l=r.criteria,f=o.length,u=i.length;++a<f;){var h=e(o[a],l[a]);if(h){if(a>=u)return h;var m=i[a];return h*(m=="desc"?-1:1)}}return n.index-r.index}return WO=t,WO}var GO,u8;function Tge(){if(u8)return GO;u8=1;var e=Y3(),t=K3(),n=So(),r=Eq(),i=Oge(),a=pq(),o=Ege(),l=th(),f=si();function u(h,m,v){m.length?m=e(m,function(w){return f(w)?function(S){return t(S,w.length===1?w[0]:w)}:w}):m=[l];var _=-1;m=e(m,a(n));var x=r(h,function(w,S,O){var C=e(m,function(T){return T(w)});return{criteria:C,index:++_,value:w}});return i(x,function(w,S){return o(w,S,v)})}return GO=u,GO}var YO,c8;function Age(){if(c8)return YO;c8=1;function e(t,n,r){switch(r.length){case 0:return t.call(n);case 1:return t.call(n,r[0]);case 2:return t.call(n,r[0],r[1]);case 3:return t.call(n,r[0],r[1],r[2])}return t.apply(n,r)}return YO=e,YO}var KO,f8;function jge(){if(f8)return KO;f8=1;var e=Age(),t=Math.max;function n(r,i,a){return i=t(i===void 0?r.length-1:i,0),function(){for(var o=arguments,l=-1,f=t(o.length-i,0),u=Array(f);++l<f;)u[l]=o[i+l];l=-1;for(var h=Array(i+1);++l<i;)h[l]=o[l];return h[i]=a(u),e(r,this,h)}}return KO=n,KO}var ZO,d8;function Pge(){if(d8)return ZO;d8=1;function e(t){return function(){return t}}return ZO=e,ZO}var XO,h8;function Tq(){if(h8)return XO;h8=1;var e=Oc(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return XO=t,XO}var QO,p8;function Rge(){if(p8)return QO;p8=1;var e=Pge(),t=Tq(),n=th(),r=t?function(i,a){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(a),writable:!0})}:n;return QO=r,QO}var JO,m8;function Mge(){if(m8)return JO;m8=1;var e=800,t=16,n=Date.now;function r(i){var a=0,o=0;return function(){var l=n(),f=t-(l-o);if(o=l,f>0){if(++a>=e)return arguments[0]}else a=0;return i.apply(void 0,arguments)}}return JO=r,JO}var eC,v8;function Nge(){if(v8)return eC;v8=1;var e=Rge(),t=Mge(),n=t(e);return eC=n,eC}var tC,g8;function Lge(){if(g8)return tC;g8=1;var e=th(),t=jge(),n=Nge();function r(i,a){return n(t(i,a,e),i+"")}return tC=r,tC}var nC,y8;function G1(){if(y8)return nC;y8=1;var e=H3(),t=Rv(),n=iP(),r=Jl();function i(a,o,l){if(!r(l))return!1;var f=typeof o;return(f=="number"?t(l)&&n(o,l.length):f=="string"&&o in l)?e(l[o],a):!1}return nC=i,nC}var rC,b8;function Dge(){if(b8)return rC;b8=1;var e=Oq(),t=Tge(),n=Lge(),r=G1(),i=n(function(a,o){if(a==null)return[];var l=o.length;return l>1&&r(a,o[0],o[1])?o=[]:l>2&&r(o[0],o[1],o[2])&&(o=[o[0]]),t(a,e(o,1),[])});return rC=i,rC}var kge=Dge();const lP=Nt(kge);function Pm(e){"@babel/helpers - typeof";return Pm=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},Pm(e)}function dA(){return dA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dA.apply(this,arguments)}function Ige(e,t){return zge(e)||Uge(e,t)||Bge(e,t)||$ge()}function $ge(){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 Bge(e,t){if(e){if(typeof e=="string")return w8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w8(e,t)}}function w8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uge(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function zge(e){if(Array.isArray(e))return e}function _8(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 iC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_8(Object(n),!0).forEach(function(r){Fge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fge(e,t,n){return t=qge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qge(e){var t=Vge(e,"string");return Pm(t)=="symbol"?t:t+""}function Vge(e,t){if(Pm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Hge(e){return Array.isArray(e)&&Xn(e[0])&&Xn(e[1])?e.join(" ~ "):e}var Wge=function(t){var n=t.separator,r=n===void 0?" : ":n,i=t.contentStyle,a=i===void 0?{}:i,o=t.itemStyle,l=o===void 0?{}:o,f=t.labelStyle,u=f===void 0?{}:f,h=t.payload,m=t.formatter,v=t.itemSorter,_=t.wrapperClassName,x=t.labelClassName,w=t.label,S=t.labelFormatter,O=t.accessibilityLayer,C=O===void 0?!1:O,T=function(){if(h&&h.length){var te={padding:0,margin:0},ie=(v?lP(h,v):h).map(function(X,ee){if(X.type==="none")return null;var W=iC({display:"block",paddingTop:4,paddingBottom:4,color:X.color||"#000"},l),B=X.formatter||m||Hge,U=X.value,F=X.name,M=U,I=F;if(B&&M!=null&&I!=null){var J=B(U,F,X,ee,h);if(Array.isArray(J)){var Y=Ige(J,2);M=Y[0],I=Y[1]}else M=J}return se.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(ee),style:W},Xn(I)?se.createElement("span",{className:"recharts-tooltip-item-name"},I):null,Xn(I)?se.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,se.createElement("span",{className:"recharts-tooltip-item-value"},M),se.createElement("span",{className:"recharts-tooltip-item-unit"},X.unit||""))});return se.createElement("ul",{className:"recharts-tooltip-item-list",style:te},ie)}return null},j=iC({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},a),P=iC({margin:0},u),R=!pt(w),$=R?w:"",q=Ce("recharts-default-tooltip",_),K=Ce("recharts-tooltip-label",x);R&&S&&h!==void 0&&h!==null&&($=S(w,h));var H=C?{role:"status","aria-live":"assertive"}:{};return se.createElement("div",dA({className:q,style:j},H),se.createElement("p",{className:K,style:P},se.isValidElement($)?$:"".concat($)),T())};function Rm(e){"@babel/helpers - typeof";return Rm=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},Rm(e)}function Cy(e,t,n){return t=Gge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Gge(e){var t=Yge(e,"string");return Rm(t)=="symbol"?t:t+""}function Yge(e,t){if(Rm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Sp="recharts-tooltip-wrapper",Kge={visibility:"hidden"};function Zge(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return Ce(Sp,Cy(Cy(Cy(Cy({},"".concat(Sp,"-right"),Xe(n)&&t&&Xe(t.x)&&n>=t.x),"".concat(Sp,"-left"),Xe(n)&&t&&Xe(t.x)&&n<t.x),"".concat(Sp,"-bottom"),Xe(r)&&t&&Xe(t.y)&&r>=t.y),"".concat(Sp,"-top"),Xe(r)&&t&&Xe(t.y)&&r<t.y))}function x8(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,i=e.offsetTopLeft,a=e.position,o=e.reverseDirection,l=e.tooltipDimension,f=e.viewBox,u=e.viewBoxDimension;if(a&&Xe(a[r]))return a[r];var h=n[r]-l-i,m=n[r]+i;if(t[r])return o[r]?h:m;if(o[r]){var v=h,_=f[r];return v<_?Math.max(m,f[r]):Math.max(h,f[r])}var x=m+l,w=f[r]+u;return x>w?Math.max(h,f[r]):Math.max(m,f[r])}function Xge(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Qge(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,i=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,f=e.viewBox,u,h,m;return o.height>0&&o.width>0&&n?(h=x8({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.width,viewBox:f,viewBoxDimension:f.width}),m=x8({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:i,reverseDirection:a,tooltipDimension:o.height,viewBox:f,viewBoxDimension:f.height}),u=Xge({translateX:h,translateY:m,useTranslate3d:l})):u=Kge,{cssProperties:u,cssClasses:Zge({translateX:h,translateY:m,coordinate:n})}}function pd(e){"@babel/helpers - typeof";return pd=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},pd(e)}function S8(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 O8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?S8(Object(n),!0).forEach(function(r){pA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Jge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eye(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,jq(r.key),r)}}function tye(e,t,n){return t&&eye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nye(e,t,n){return t=tb(t),rye(e,Aq()?Reflect.construct(t,n||[],tb(e).constructor):t.apply(e,n))}function rye(e,t){if(t&&(pd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return iye(e)}function iye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Aq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Aq=function(){return!!e})()}function tb(e){return tb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},tb(e)}function aye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hA(e,t)}function hA(e,t){return hA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hA(e,t)}function pA(e,t,n){return t=jq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jq(e){var t=oye(e,"string");return pd(t)=="symbol"?t:t+""}function oye(e,t){if(pd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(pd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var C8=1,sye=function(e){function t(){var n;Jge(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=nye(this,t,[].concat(i)),pA(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),pA(n,"handleKeyDown",function(o){if(o.key==="Escape"){var l,f,u,h;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(l=(f=n.props.coordinate)===null||f===void 0?void 0:f.x)!==null&&l!==void 0?l:0,y:(u=(h=n.props.coordinate)===null||h===void 0?void 0:h.y)!==null&&u!==void 0?u:0}})}}),n}return aye(t,e),tye(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>C8||Math.abs(r.height-this.state.lastBoundingBox.height)>C8)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,i;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,f=i.animationEasing,u=i.children,h=i.coordinate,m=i.hasPayload,v=i.isAnimationActive,_=i.offset,x=i.position,w=i.reverseDirection,S=i.useTranslate3d,O=i.viewBox,C=i.wrapperStyle,T=Qge({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:_,position:x,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:S,viewBox:O}),j=T.cssClasses,P=T.cssProperties,R=O8(O8({transition:v&&a?"transform ".concat(l,"ms ").concat(f):void 0},P),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&m?"visible":"hidden",position:"absolute",top:0,left:0},C);return se.createElement("div",{tabIndex:-1,className:j,style:R,ref:function(q){r.wrapperNode=q}},u)}}])}(D.PureComponent),lye=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Os={isSsr:lye()};function md(e){"@babel/helpers - typeof";return md=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},md(e)}function E8(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 T8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?E8(Object(n),!0).forEach(function(r){uP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cye(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,Rq(r.key),r)}}function fye(e,t,n){return t&&cye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dye(e,t,n){return t=nb(t),hye(e,Pq()?Reflect.construct(t,n||[],nb(e).constructor):t.apply(e,n))}function hye(e,t){if(t&&(md(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pye(e)}function pye(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Pq(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Pq=function(){return!!e})()}function nb(e){return nb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},nb(e)}function mye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mA(e,t)}function mA(e,t){return mA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mA(e,t)}function uP(e,t,n){return t=Rq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Rq(e){var t=vye(e,"string");return md(t)=="symbol"?t:t+""}function vye(e,t){if(md(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(md(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function gye(e){return e.dataKey}function yye(e,t){return se.isValidElement(e)?se.cloneElement(e,t):typeof e=="function"?se.createElement(e,t):se.createElement(Wge,t)}var ea=function(e){function t(){return uye(this,t),dye(this,t,arguments)}return mye(t,e),fye(t,[{key:"render",value:function(){var r=this,i=this.props,a=i.active,o=i.allowEscapeViewBox,l=i.animationDuration,f=i.animationEasing,u=i.content,h=i.coordinate,m=i.filterNull,v=i.isAnimationActive,_=i.offset,x=i.payload,w=i.payloadUniqBy,S=i.position,O=i.reverseDirection,C=i.useTranslate3d,T=i.viewBox,j=i.wrapperStyle,P=x??[];m&&P.length&&(P=_q(x.filter(function($){return $.value!=null&&($.hide!==!0||r.props.includeHidden)}),w,gye));var R=P.length>0;return se.createElement(sye,{allowEscapeViewBox:o,animationDuration:l,animationEasing:f,isAnimationActive:v,active:a,coordinate:h,hasPayload:R,offset:_,position:S,reverseDirection:O,useTranslate3d:C,viewBox:T,wrapperStyle:j},yye(u,T8(T8({},this.props),{},{payload:P})))}}])}(D.PureComponent);uP(ea,"displayName","Tooltip");uP(ea,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Os.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var aC,A8;function bye(){if(A8)return aC;A8=1;var e=xo(),t=function(){return e.Date.now()};return aC=t,aC}var oC,j8;function wye(){if(j8)return oC;j8=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return oC=t,oC}var sC,P8;function _ye(){if(P8)return sC;P8=1;var e=wye(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return sC=n,sC}var lC,R8;function Mq(){if(R8)return lC;R8=1;var e=_ye(),t=Jl(),n=Qd(),r=NaN,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function f(u){if(typeof u=="number")return u;if(n(u))return r;if(t(u)){var h=typeof u.valueOf=="function"?u.valueOf():u;u=t(h)?h+"":h}if(typeof u!="string")return u===0?u:+u;u=e(u);var m=a.test(u);return m||o.test(u)?l(u.slice(2),m?2:8):i.test(u)?r:+u}return lC=f,lC}var uC,M8;function xye(){if(M8)return uC;M8=1;var e=Jl(),t=bye(),n=Mq(),r="Expected a function",i=Math.max,a=Math.min;function o(l,f,u){var h,m,v,_,x,w,S=0,O=!1,C=!1,T=!0;if(typeof l!="function")throw new TypeError(r);f=n(f)||0,e(u)&&(O=!!u.leading,C="maxWait"in u,v=C?i(n(u.maxWait)||0,f):v,T="trailing"in u?!!u.trailing:T);function j(ie){var X=h,ee=m;return h=m=void 0,S=ie,_=l.apply(ee,X),_}function P(ie){return S=ie,x=setTimeout(q,f),O?j(ie):_}function R(ie){var X=ie-w,ee=ie-S,W=f-X;return C?a(W,v-ee):W}function $(ie){var X=ie-w,ee=ie-S;return w===void 0||X>=f||X<0||C&&ee>=v}function q(){var ie=t();if($(ie))return K(ie);x=setTimeout(q,R(ie))}function K(ie){return x=void 0,T&&h?j(ie):(h=m=void 0,_)}function H(){x!==void 0&&clearTimeout(x),S=0,h=w=m=x=void 0}function G(){return x===void 0?_:K(t())}function te(){var ie=t(),X=$(ie);if(h=arguments,m=this,w=ie,X){if(x===void 0)return P(w);if(C)return clearTimeout(x),x=setTimeout(q,f),j(w)}return x===void 0&&(x=setTimeout(q,f)),_}return te.cancel=H,te.flush=G,te}return uC=o,uC}var cC,N8;function Sye(){if(N8)return cC;N8=1;var e=xye(),t=Jl(),n="Expected a function";function r(i,a,o){var l=!0,f=!0;if(typeof i!="function")throw new TypeError(n);return t(o)&&(l="leading"in o?!!o.leading:l,f="trailing"in o?!!o.trailing:f),e(i,a,{leading:l,maxWait:a,trailing:f})}return cC=r,cC}var Oye=Sye();const Nq=Nt(Oye);function Mm(e){"@babel/helpers - typeof";return Mm=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},Mm(e)}function L8(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 Ey(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L8(Object(n),!0).forEach(function(r){Cye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cye(e,t,n){return t=Eye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Eye(e){var t=Tye(e,"string");return Mm(t)=="symbol"?t:t+""}function Tye(e,t){if(Mm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Mm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Aye(e,t){return Mye(e)||Rye(e,t)||Pye(e,t)||jye()}function jye(){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 Pye(e,t){if(e){if(typeof e=="string")return D8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return D8(e,t)}}function D8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Rye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function Mye(e){if(Array.isArray(e))return e}var Nye=D.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,i=r===void 0?{width:-1,height:-1}:r,a=e.width,o=a===void 0?"100%":a,l=e.height,f=l===void 0?"100%":l,u=e.minWidth,h=u===void 0?0:u,m=e.minHeight,v=e.maxHeight,_=e.children,x=e.debounce,w=x===void 0?0:x,S=e.id,O=e.className,C=e.onResize,T=e.style,j=T===void 0?{}:T,P=D.useRef(null),R=D.useRef();R.current=C,D.useImperativeHandle(t,function(){return Object.defineProperty(P.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),P.current},configurable:!0})});var $=D.useState({containerWidth:i.width,containerHeight:i.height}),q=Aye($,2),K=q[0],H=q[1],G=D.useCallback(function(ie,X){H(function(ee){var W=Math.round(ie),B=Math.round(X);return ee.containerWidth===W&&ee.containerHeight===B?ee:{containerWidth:W,containerHeight:B}})},[]);D.useEffect(function(){var ie=function(F){var M,I=F[0].contentRect,J=I.width,Y=I.height;G(J,Y),(M=R.current)===null||M===void 0||M.call(R,J,Y)};w>0&&(ie=Nq(ie,w,{trailing:!0,leading:!1}));var X=new ResizeObserver(ie),ee=P.current.getBoundingClientRect(),W=ee.width,B=ee.height;return G(W,B),X.observe(P.current),function(){X.disconnect()}},[G,w]);var te=D.useMemo(function(){var ie=K.containerWidth,X=K.containerHeight;if(ie<0||X<0)return null;Aa(Zu(o)||Zu(f),`The width(%s) and height(%s) are both fixed numbers,
maybe you don't need to use a ResponsiveContainer.`,o,f),Aa(!n||n>0,"The aspect(%s) must be greater than zero.",n);var ee=Zu(o)?ie:o,W=Zu(f)?X:f;n&&n>0&&(ee?W=ee/n:W&&(ee=W*n),v&&W>v&&(W=v)),Aa(ee>0||W>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.`,ee,W,o,f,h,m,n);var B=!Array.isArray(_)&&as(_.type).endsWith("Chart");return se.Children.map(_,function(U){return se.isValidElement(U)?D.cloneElement(U,Ey({width:ee,height:W},B?{style:Ey({height:"100%",width:"100%",maxHeight:W,maxWidth:ee},U.props.style)}:{})):U})},[n,_,f,v,m,h,K,o]);return se.createElement("div",{id:S?"".concat(S):void 0,className:Ce("recharts-responsive-container",O),style:Ey(Ey({},j),{},{width:o,height:f,minWidth:h,minHeight:m,maxHeight:v}),ref:P},te)}),Ll=function(t){return null};Ll.displayName="Cell";function Nm(e){"@babel/helpers - typeof";return Nm=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},Nm(e)}function k8(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 vA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k8(Object(n),!0).forEach(function(r){Lye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lye(e,t,n){return t=Dye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Dye(e){var t=kye(e,"string");return Nm(t)=="symbol"?t:t+""}function kye(e,t){if(Nm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cf={widthCache:{},cacheCount:0},Iye=2e3,$ye={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},I8="recharts_measurement_span";function Bye(e){var t=vA({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Qp=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Os.isSsr)return{width:0,height:0};var r=Bye(n),i=JSON.stringify({text:t,copyStyle:r});if(Cf.widthCache[i])return Cf.widthCache[i];try{var a=document.getElementById(I8);a||(a=document.createElement("span"),a.setAttribute("id",I8),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=vA(vA({},$ye),r);Object.assign(a.style,o),a.textContent="".concat(t);var l=a.getBoundingClientRect(),f={width:l.width,height:l.height};return Cf.widthCache[i]=f,++Cf.cacheCount>Iye&&(Cf.cacheCount=0,Cf.widthCache={}),f}catch{return{width:0,height:0}}},Uye=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Lm(e){"@babel/helpers - typeof";return Lm=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},Lm(e)}function rb(e,t){return Vye(e)||qye(e,t)||Fye(e,t)||zye()}function zye(){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 Fye(e,t){if(e){if(typeof e=="string")return $8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $8(e,t)}}function $8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function qye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function Vye(e){if(Array.isArray(e))return e}function Hye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B8(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,Gye(r.key),r)}}function Wye(e,t,n){return t&&B8(e.prototype,t),n&&B8(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gye(e){var t=Yye(e,"string");return Lm(t)=="symbol"?t:t+""}function Yye(e,t){if(Lm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var U8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,z8=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,Kye=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,Zye=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,Lq={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},Xye=Object.keys(Lq),Bf="NaN";function Qye(e,t){return e*Lq[t]}var Ty=function(){function e(t,n){Hye(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!Kye.test(n)&&(this.num=NaN,this.unit=""),Xye.includes(n)&&(this.num=Qye(t,n),this.unit="px")}return Wye(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,i=(r=Zye.exec(n))!==null&&r!==void 0?r:[],a=rb(i,3),o=a[1],l=a[2];return new e(parseFloat(o),l??"")}}])}();function Dq(e){if(e.includes(Bf))return Bf;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=U8.exec(t))!==null&&n!==void 0?n:[],i=rb(r,4),a=i[1],o=i[2],l=i[3],f=Ty.parse(a??""),u=Ty.parse(l??""),h=o==="*"?f.multiply(u):f.divide(u);if(h.isNaN())return Bf;t=t.replace(U8,h.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var m,v=(m=z8.exec(t))!==null&&m!==void 0?m:[],_=rb(v,4),x=_[1],w=_[2],S=_[3],O=Ty.parse(x??""),C=Ty.parse(S??""),T=w==="+"?O.add(C):O.subtract(C);if(T.isNaN())return Bf;t=t.replace(z8,T.toString())}return t}var F8=/\(([^()]*)\)/;function Jye(e){for(var t=e;t.includes("(");){var n=F8.exec(t),r=rb(n,2),i=r[1];t=t.replace(F8,Dq(i))}return t}function e0e(e){var t=e.replace(/\s+/g,"");return t=Jye(t),t=Dq(t),t}function t0e(e){try{return e0e(e)}catch{return Bf}}function fC(e){var t=t0e(e.slice(5,-1));return t===Bf?"":t}var n0e=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],r0e=["dx","dy","angle","className","breakAll"];function gA(){return gA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gA.apply(this,arguments)}function q8(e,t){if(e==null)return{};var n=i0e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function i0e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function V8(e,t){return l0e(e)||s0e(e,t)||o0e(e,t)||a0e()}function a0e(){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 o0e(e,t){if(e){if(typeof e=="string")return H8(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return H8(e,t)}}function H8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;f=!1}else for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function l0e(e){if(Array.isArray(e))return e}var kq=/[ \f\n\r\t\v\u2028\u2029]+/,Iq=function(t){var n=t.children,r=t.breakAll,i=t.style;try{var a=[];pt(n)||(r?a=n.toString().split(""):a=n.toString().split(kq));var o=a.map(function(f){return{word:f,width:Qp(f,i).width}}),l=r?0:Qp(" ",i).width;return{wordsWithComputedWidth:o,spaceWidth:l}}catch{return null}},u0e=function(t,n,r,i,a){var o=t.maxLines,l=t.children,f=t.style,u=t.breakAll,h=Xe(o),m=l,v=function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return ee.reduce(function(W,B){var U=B.word,F=B.width,M=W[W.length-1];if(M&&(i==null||a||M.width+F+r<Number(i)))M.words.push(U),M.width+=F+r;else{var I={words:[U],width:F};W.push(I)}return W},[])},_=v(n),x=function(ee){return ee.reduce(function(W,B){return W.width>B.width?W:B})};if(!h)return _;for(var w="…",S=function(ee){var W=m.slice(0,ee),B=Iq({breakAll:u,style:f,children:W+w}).wordsWithComputedWidth,U=v(B),F=U.length>o||x(U).width>Number(i);return[F,U]},O=0,C=m.length-1,T=0,j;O<=C&&T<=m.length-1;){var P=Math.floor((O+C)/2),R=P-1,$=S(R),q=V8($,2),K=q[0],H=q[1],G=S(P),te=V8(G,1),ie=te[0];if(!K&&!ie&&(O=P+1),K&&ie&&(C=P-1),!K&&ie){j=H;break}T++}return j||_},W8=function(t){var n=pt(t)?[]:t.toString().split(kq);return[{words:n}]},c0e=function(t){var n=t.width,r=t.scaleToFit,i=t.children,a=t.style,o=t.breakAll,l=t.maxLines;if((n||r)&&!Os.isSsr){var f,u,h=Iq({breakAll:o,children:i,style:a});if(h){var m=h.wordsWithComputedWidth,v=h.spaceWidth;f=m,u=v}else return W8(i);return u0e({breakAll:o,children:i,maxLines:l,style:a},f,u,n,r)}return W8(i)},G8="#808080",mc=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.lineHeight,l=o===void 0?"1em":o,f=t.capHeight,u=f===void 0?"0.71em":f,h=t.scaleToFit,m=h===void 0?!1:h,v=t.textAnchor,_=v===void 0?"start":v,x=t.verticalAnchor,w=x===void 0?"end":x,S=t.fill,O=S===void 0?G8:S,C=q8(t,n0e),T=D.useMemo(function(){return c0e({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:m,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,m,C.style,C.width]),j=C.dx,P=C.dy,R=C.angle,$=C.className,q=C.breakAll,K=q8(C,r0e);if(!Xn(r)||!Xn(a))return null;var H=r+(Xe(j)?j:0),G=a+(Xe(P)?P:0),te;switch(w){case"start":te=fC("calc(".concat(u,")"));break;case"middle":te=fC("calc(".concat((T.length-1)/2," * -").concat(l," + (").concat(u," / 2))"));break;default:te=fC("calc(".concat(T.length-1," * -").concat(l,")"));break}var ie=[];if(m){var X=T[0].width,ee=C.width;ie.push("scale(".concat((Xe(ee)?ee/X:1)/X,")"))}return R&&ie.push("rotate(".concat(R,", ").concat(H,", ").concat(G,")")),ie.length&&(K.transform=ie.join(" ")),se.createElement("text",gA({},ot(K,!0),{x:H,y:G,className:Ce("recharts-text",$),textAnchor:_,fill:O.includes("url")?G8:O}),T.map(function(W,B){var U=W.words.join(q?"":" ");return se.createElement("tspan",{x:H,dy:B===0?te:l,key:"".concat(U,"-").concat(B)},U)}))};function Dl(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function f0e(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function cP(e){let t,n,r;e.length!==2?(t=Dl,n=(l,f)=>Dl(e(l),f),r=(l,f)=>e(l)-f):(t=e===Dl||e===f0e?e:d0e,n=e,r=e);function i(l,f,u=0,h=l.length){if(u<h){if(t(f,f)!==0)return h;do{const m=u+h>>>1;n(l[m],f)<0?u=m+1:h=m}while(u<h)}return u}function a(l,f,u=0,h=l.length){if(u<h){if(t(f,f)!==0)return h;do{const m=u+h>>>1;n(l[m],f)<=0?u=m+1:h=m}while(u<h)}return u}function o(l,f,u=0,h=l.length){const m=i(l,f,u,h-1);return m>u&&r(l[m-1],f)>-r(l[m],f)?m-1:m}return{left:i,center:o,right:a}}function d0e(){return 0}function $q(e){return e===null?NaN:+e}function*h0e(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const p0e=cP(Dl),Mv=p0e.right;cP($q).center;class Y8 extends Map{constructor(t,n=g0e){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(K8(this,t))}has(t){return super.has(K8(this,t))}set(t,n){return super.set(m0e(this,t),n)}delete(t){return super.delete(v0e(this,t))}}function K8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function m0e({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function v0e({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function g0e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function y0e(e=Dl){if(e===Dl)return Bq;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 Bq(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const b0e=Math.sqrt(50),w0e=Math.sqrt(10),_0e=Math.sqrt(2);function ib(e,t,n){const r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/Math.pow(10,i),o=a>=b0e?10:a>=w0e?5:a>=_0e?2:1;let l,f,u;return i<0?(u=Math.pow(10,-i)/o,l=Math.round(e*u),f=Math.round(t*u),l/u<e&&++l,f/u>t&&--f,u=-u):(u=Math.pow(10,i)*o,l=Math.round(e/u),f=Math.round(t/u),l*u<e&&++l,f*u>t&&--f),f<l&&.5<=n&&n<2?ib(e,t,n*2):[l,f,u]}function yA(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[i,a,o]=r?ib(t,e,n):ib(e,t,n);if(!(a>=i))return[];const l=a-i+1,f=new Array(l);if(r)if(o<0)for(let u=0;u<l;++u)f[u]=(a-u)/-o;else for(let u=0;u<l;++u)f[u]=(a-u)*o;else if(o<0)for(let u=0;u<l;++u)f[u]=(i+u)/-o;else for(let u=0;u<l;++u)f[u]=(i+u)*o;return f}function bA(e,t,n){return t=+t,e=+e,n=+n,ib(e,t,n)[2]}function wA(e,t,n){t=+t,e=+e,n=+n;const r=t<e,i=r?bA(t,e,n):bA(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Z8(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function X8(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function Uq(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?Bq:y0e(i);r>n;){if(r-n>600){const f=r-n+1,u=t-n+1,h=Math.log(f),m=.5*Math.exp(2*h/3),v=.5*Math.sqrt(h*m*(f-m)/f)*(u-f/2<0?-1:1),_=Math.max(n,Math.floor(t-u*m/f+v)),x=Math.min(r,Math.floor(t+(f-u)*m/f+v));Uq(e,t,_,x,i)}const a=e[t];let o=n,l=r;for(Op(e,n,t),i(e[r],a)>0&&Op(e,n,r);o<l;){for(Op(e,o,l),++o,--l;i(e[o],a)<0;)++o;for(;i(e[l],a)>0;)--l}i(e[n],a)===0?Op(e,n,l):(++l,Op(e,l,r)),l<=t&&(n=l+1),t<=l&&(r=l-1)}return e}function Op(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function x0e(e,t,n){if(e=Float64Array.from(h0e(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return X8(e);if(t>=1)return Z8(e);var r,i=(r-1)*t,a=Math.floor(i),o=Z8(Uq(e,a).subarray(0,a+1)),l=X8(e.subarray(a+1));return o+(l-o)*(i-a)}}function S0e(e,t,n=$q){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,a=Math.floor(i),o=+n(e[a],a,e),l=+n(e[a+1],a+1,e);return o+(l-o)*(i-a)}}function O0e(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,a=new Array(i);++r<i;)a[r]=e+r*n;return a}function da(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function Cs(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 _A=Symbol("implicit");function fP(){var e=new Y8,t=[],n=[],r=_A;function i(a){let o=e.get(a);if(o===void 0){if(r!==_A)return r;e.set(a,o=t.push(a)-1)}return n[o%n.length]}return i.domain=function(a){if(!arguments.length)return t.slice();t=[],e=new Y8;for(const o of a)e.has(o)||e.set(o,t.push(o)-1);return i},i.range=function(a){return arguments.length?(n=Array.from(a),i):n.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return fP(t,n).unknown(r)},da.apply(i,arguments),i}function Dm(){var e=fP().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,l=!1,f=0,u=0,h=.5;delete e.unknown;function m(){var v=t().length,_=i<r,x=_?i:r,w=_?r:i;a=(w-x)/Math.max(1,v-f+u*2),l&&(a=Math.floor(a)),x+=(w-x-a*(v-f))*h,o=a*(1-f),l&&(x=Math.round(x),o=Math.round(o));var S=O0e(v).map(function(O){return x+a*O});return n(_?S.reverse():S)}return e.domain=function(v){return arguments.length?(t(v),m()):t()},e.range=function(v){return arguments.length?([r,i]=v,r=+r,i=+i,m()):[r,i]},e.rangeRound=function(v){return[r,i]=v,r=+r,i=+i,l=!0,m()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(v){return arguments.length?(l=!!v,m()):l},e.padding=function(v){return arguments.length?(f=Math.min(1,u=+v),m()):f},e.paddingInner=function(v){return arguments.length?(f=Math.min(1,v),m()):f},e.paddingOuter=function(v){return arguments.length?(u=+v,m()):u},e.align=function(v){return arguments.length?(h=Math.max(0,Math.min(1,v)),m()):h},e.copy=function(){return Dm(t(),[r,i]).round(l).paddingInner(f).paddingOuter(u).align(h)},da.apply(m(),arguments)}function zq(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return zq(t())},e}function Jp(){return zq(Dm.apply(null,arguments).paddingInner(1))}function dP(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Fq(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Nv(){}var km=.7,ab=1/km,Zf="\\s*([+-]?\\d+)\\s*",Im="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",uo="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",C0e=/^#([0-9a-f]{3,8})$/,E0e=new RegExp(`^rgb\\(${Zf},${Zf},${Zf}\\)$`),T0e=new RegExp(`^rgb\\(${uo},${uo},${uo}\\)$`),A0e=new RegExp(`^rgba\\(${Zf},${Zf},${Zf},${Im}\\)$`),j0e=new RegExp(`^rgba\\(${uo},${uo},${uo},${Im}\\)$`),P0e=new RegExp(`^hsl\\(${Im},${uo},${uo}\\)$`),R0e=new RegExp(`^hsla\\(${Im},${uo},${uo},${Im}\\)$`),Q8={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};dP(Nv,$m,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:J8,formatHex:J8,formatHex8:M0e,formatHsl:N0e,formatRgb:eI,toString:eI});function J8(){return this.rgb().formatHex()}function M0e(){return this.rgb().formatHex8()}function N0e(){return qq(this).formatHsl()}function eI(){return this.rgb().formatRgb()}function $m(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=C0e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?tI(t):n===3?new ri(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Ay(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Ay(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=E0e.exec(e))?new ri(t[1],t[2],t[3],1):(t=T0e.exec(e))?new ri(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=A0e.exec(e))?Ay(t[1],t[2],t[3],t[4]):(t=j0e.exec(e))?Ay(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=P0e.exec(e))?iI(t[1],t[2]/100,t[3]/100,1):(t=R0e.exec(e))?iI(t[1],t[2]/100,t[3]/100,t[4]):Q8.hasOwnProperty(e)?tI(Q8[e]):e==="transparent"?new ri(NaN,NaN,NaN,0):null}function tI(e){return new ri(e>>16&255,e>>8&255,e&255,1)}function Ay(e,t,n,r){return r<=0&&(e=t=n=NaN),new ri(e,t,n,r)}function L0e(e){return e instanceof Nv||(e=$m(e)),e?(e=e.rgb(),new ri(e.r,e.g,e.b,e.opacity)):new ri}function xA(e,t,n,r){return arguments.length===1?L0e(e):new ri(e,t,n,r??1)}function ri(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}dP(ri,xA,Fq(Nv,{brighter(e){return e=e==null?ab:Math.pow(ab,e),new ri(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?km:Math.pow(km,e),new ri(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ri(nc(this.r),nc(this.g),nc(this.b),ob(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:nI,formatHex:nI,formatHex8:D0e,formatRgb:rI,toString:rI}));function nI(){return`#${Xu(this.r)}${Xu(this.g)}${Xu(this.b)}`}function D0e(){return`#${Xu(this.r)}${Xu(this.g)}${Xu(this.b)}${Xu((isNaN(this.opacity)?1:this.opacity)*255)}`}function rI(){const e=ob(this.opacity);return`${e===1?"rgb(":"rgba("}${nc(this.r)}, ${nc(this.g)}, ${nc(this.b)}${e===1?")":`, ${e})`}`}function ob(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nc(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Xu(e){return e=nc(e),(e<16?"0":"")+e.toString(16)}function iI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Ta(e,t,n,r)}function qq(e){if(e instanceof Ta)return new Ta(e.h,e.s,e.l,e.opacity);if(e instanceof Nv||(e=$m(e)),!e)return new Ta;if(e instanceof Ta)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,l=a-i,f=(a+i)/2;return l?(t===a?o=(n-r)/l+(n<r)*6:n===a?o=(r-t)/l+2:o=(t-n)/l+4,l/=f<.5?a+i:2-a-i,o*=60):l=f>0&&f<1?0:o,new Ta(o,l,f,e.opacity)}function k0e(e,t,n,r){return arguments.length===1?qq(e):new Ta(e,t,n,r??1)}function Ta(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}dP(Ta,k0e,Fq(Nv,{brighter(e){return e=e==null?ab:Math.pow(ab,e),new Ta(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?km:Math.pow(km,e),new Ta(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 ri(dC(e>=240?e-240:e+120,i,r),dC(e,i,r),dC(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new Ta(aI(this.h),jy(this.s),jy(this.l),ob(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=ob(this.opacity);return`${e===1?"hsl(":"hsla("}${aI(this.h)}, ${jy(this.s)*100}%, ${jy(this.l)*100}%${e===1?")":`, ${e})`}`}}));function aI(e){return e=(e||0)%360,e<0?e+360:e}function jy(e){return Math.max(0,Math.min(1,e||0))}function dC(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 hP=e=>()=>e;function I0e(e,t){return function(n){return e+n*t}}function $0e(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 B0e(e){return(e=+e)==1?Vq:function(t,n){return n-t?$0e(t,n,e):hP(isNaN(t)?n:t)}}function Vq(e,t){var n=t-e;return n?I0e(e,n):hP(isNaN(e)?t:e)}const oI=function e(t){var n=B0e(t);function r(i,a){var o=n((i=xA(i)).r,(a=xA(a)).r),l=n(i.g,a.g),f=n(i.b,a.b),u=Vq(i.opacity,a.opacity);return function(h){return i.r=o(h),i.g=l(h),i.b=f(h),i.opacity=u(h),i+""}}return r.gamma=e,r}(1);function U0e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function z0e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function F0e(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=new Array(r),a=new Array(n),o;for(o=0;o<r;++o)i[o]=nh(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(l){for(o=0;o<r;++o)a[o]=i[o](l);return a}}function q0e(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function sb(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function V0e(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]=nh(e[i],t[i]):r[i]=t[i];return function(a){for(i in n)r[i]=n[i](a);return r}}var SA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,hC=new RegExp(SA.source,"g");function H0e(e){return function(){return e}}function W0e(e){return function(t){return e(t)+""}}function G0e(e,t){var n=SA.lastIndex=hC.lastIndex=0,r,i,a,o=-1,l=[],f=[];for(e=e+"",t=t+"";(r=SA.exec(e))&&(i=hC.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),l[o]?l[o]+=a:l[++o]=a),(r=r[0])===(i=i[0])?l[o]?l[o]+=i:l[++o]=i:(l[++o]=null,f.push({i:o,x:sb(r,i)})),n=hC.lastIndex;return n<t.length&&(a=t.slice(n),l[o]?l[o]+=a:l[++o]=a),l.length<2?f[0]?W0e(f[0].x):H0e(t):(t=f.length,function(u){for(var h=0,m;h<t;++h)l[(m=f[h]).i]=m.x(u);return l.join("")})}function nh(e,t){var n=typeof t,r;return t==null||n==="boolean"?hP(t):(n==="number"?sb:n==="string"?(r=$m(t))?(t=r,oI):G0e:t instanceof $m?oI:t instanceof Date?q0e:z0e(t)?U0e:Array.isArray(t)?F0e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?V0e:sb)(e,t)}function pP(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function Y0e(e,t){t===void 0&&(t=e,e=nh);for(var n=0,r=t.length-1,i=t[0],a=new Array(r<0?0:r);n<r;)a[n]=e(i,i=t[++n]);return function(o){var l=Math.max(0,Math.min(r-1,Math.floor(o*=r)));return a[l](o-l)}}function K0e(e){return function(){return e}}function lb(e){return+e}var sI=[0,1];function Wr(e){return e}function OA(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:K0e(isNaN(t)?NaN:.5)}function Z0e(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function X0e(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=OA(i,r),a=n(o,a)):(r=OA(r,i),a=n(a,o)),function(l){return a(r(l))}}function Q0e(e,t,n){var r=Math.min(e.length,t.length)-1,i=new Array(r),a=new Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=OA(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(l){var f=Mv(e,l,1,r)-1;return a[f](i[f](l))}}function Lv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Y1(){var e=sI,t=sI,n=nh,r,i,a,o=Wr,l,f,u;function h(){var v=Math.min(e.length,t.length);return o!==Wr&&(o=Z0e(e[0],e[v-1])),l=v>2?Q0e:X0e,f=u=null,m}function m(v){return v==null||isNaN(v=+v)?a:(f||(f=l(e.map(r),t,n)))(r(o(v)))}return m.invert=function(v){return o(i((u||(u=l(t,e.map(r),sb)))(v)))},m.domain=function(v){return arguments.length?(e=Array.from(v,lb),h()):e.slice()},m.range=function(v){return arguments.length?(t=Array.from(v),h()):t.slice()},m.rangeRound=function(v){return t=Array.from(v),n=pP,h()},m.clamp=function(v){return arguments.length?(o=v?!0:Wr,h()):o!==Wr},m.interpolate=function(v){return arguments.length?(n=v,h()):n},m.unknown=function(v){return arguments.length?(a=v,m):a},function(v,_){return r=v,i=_,h()}}function mP(){return Y1()(Wr,Wr)}function J0e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function ub(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 vd(e){return e=ub(Math.abs(e)),e?e[1]:NaN}function ebe(e,t){return function(n,r){for(var i=n.length,a=[],o=0,l=e[0],f=0;i>0&&l>0&&(f+l+1>r&&(l=Math.max(1,r-f)),a.push(n.substring(i-=l,i+l)),!((f+=l+1)>r));)l=e[o=(o+1)%e.length];return a.reverse().join(t)}}function tbe(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var nbe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Bm(e){if(!(t=nbe.exec(e)))throw new Error("invalid format: "+e);var t;return new vP({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]})}Bm.prototype=vP.prototype;function vP(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+""}vP.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 rbe(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 Hq;function ibe(e,t){var n=ub(e,t);if(!n)return e+"";var r=n[0],i=n[1],a=i-(Hq=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+new Array(a-o+1).join("0"):a>0?r.slice(0,a)+"."+r.slice(a):"0."+new Array(1-a).join("0")+ub(e,Math.max(0,t+a-1))[0]}function lI(e,t){var n=ub(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 uI={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:J0e,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)=>lI(e*100,t),r:lI,s:ibe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function cI(e){return e}var fI=Array.prototype.map,dI=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function abe(e){var t=e.grouping===void 0||e.thousands===void 0?cI:ebe(fI.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+"",a=e.numerals===void 0?cI:tbe(fI.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function u(m){m=Bm(m);var v=m.fill,_=m.align,x=m.sign,w=m.symbol,S=m.zero,O=m.width,C=m.comma,T=m.precision,j=m.trim,P=m.type;P==="n"?(C=!0,P="g"):uI[P]||(T===void 0&&(T=12),j=!0,P="g"),(S||v==="0"&&_==="=")&&(S=!0,v="0",_="=");var R=w==="$"?n:w==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",$=w==="$"?r:/[%p]/.test(P)?o:"",q=uI[P],K=/[defgprs%]/.test(P);T=T===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,T)):Math.max(0,Math.min(20,T));function H(G){var te=R,ie=$,X,ee,W;if(P==="c")ie=q(G)+ie,G="";else{G=+G;var B=G<0||1/G<0;if(G=isNaN(G)?f:q(Math.abs(G),T),j&&(G=rbe(G)),B&&+G==0&&x!=="+"&&(B=!1),te=(B?x==="("?x:l:x==="-"||x==="("?"":x)+te,ie=(P==="s"?dI[8+Hq/3]:"")+ie+(B&&x==="("?")":""),K){for(X=-1,ee=G.length;++X<ee;)if(W=G.charCodeAt(X),48>W||W>57){ie=(W===46?i+G.slice(X+1):G.slice(X))+ie,G=G.slice(0,X);break}}}C&&!S&&(G=t(G,1/0));var U=te.length+G.length+ie.length,F=U<O?new Array(O-U+1).join(v):"";switch(C&&S&&(G=t(F+G,F.length?O-ie.length:1/0),F=""),_){case"<":G=te+G+ie+F;break;case"=":G=te+F+G+ie;break;case"^":G=F.slice(0,U=F.length>>1)+te+G+ie+F.slice(U);break;default:G=F+te+G+ie;break}return a(G)}return H.toString=function(){return m+""},H}function h(m,v){var _=u((m=Bm(m),m.type="f",m)),x=Math.max(-8,Math.min(8,Math.floor(vd(v)/3)))*3,w=Math.pow(10,-x),S=dI[8+x/3];return function(O){return _(w*O)+S}}return{format:u,formatPrefix:h}}var Py,gP,Wq;obe({thousands:",",grouping:[3],currency:["$",""]});function obe(e){return Py=abe(e),gP=Py.format,Wq=Py.formatPrefix,Py}function sbe(e){return Math.max(0,-vd(Math.abs(e)))}function lbe(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(vd(t)/3)))*3-vd(Math.abs(e)))}function ube(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,vd(t)-vd(e))+1}function Gq(e,t,n,r){var i=wA(e,t,n),a;switch(r=Bm(r??",f"),r.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=lbe(i,o))&&(r.precision=a),Wq(r,o)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(a=ube(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(a=sbe(i))&&(r.precision=a-(r.type==="%")*2);break}}return gP(r)}function tu(e){var t=e.domain;return e.ticks=function(n){var r=t();return yA(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var i=t();return Gq(i[0],i[i.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),i=0,a=r.length-1,o=r[i],l=r[a],f,u,h=10;for(l<o&&(u=o,o=l,l=u,u=i,i=a,a=u);h-- >0;){if(u=bA(o,l,n),u===f)return r[i]=o,r[a]=l,t(r);if(u>0)o=Math.floor(o/u)*u,l=Math.ceil(l/u)*u;else if(u<0)o=Math.ceil(o*u)/u,l=Math.floor(l*u)/u;else break;f=u}return e},e}function cb(){var e=mP();return e.copy=function(){return Lv(e,cb())},da.apply(e,arguments),tu(e)}function Yq(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,lb),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return Yq(e).unknown(t)},e=arguments.length?Array.from(e,lb):[0,1],tu(n)}function Kq(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function hI(e){return Math.log(e)}function pI(e){return Math.exp(e)}function cbe(e){return-Math.log(-e)}function fbe(e){return-Math.exp(-e)}function dbe(e){return isFinite(e)?+("1e"+e):e<0?0:e}function hbe(e){return e===10?dbe:e===Math.E?Math.exp:t=>Math.pow(e,t)}function pbe(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 mI(e){return(t,n)=>-e(-t,n)}function yP(e){const t=e(hI,pI),n=t.domain;let r=10,i,a;function o(){return i=pbe(r),a=hbe(r),n()[0]<0?(i=mI(i),a=mI(a),e(cbe,fbe)):e(hI,pI),t}return t.base=function(l){return arguments.length?(r=+l,o()):r},t.domain=function(l){return arguments.length?(n(l),o()):n()},t.ticks=l=>{const f=n();let u=f[0],h=f[f.length-1];const m=h<u;m&&([u,h]=[h,u]);let v=i(u),_=i(h),x,w;const S=l==null?10:+l;let O=[];if(!(r%1)&&_-v<S){if(v=Math.floor(v),_=Math.ceil(_),u>0){for(;v<=_;++v)for(x=1;x<r;++x)if(w=v<0?x/a(-v):x*a(v),!(w<u)){if(w>h)break;O.push(w)}}else for(;v<=_;++v)for(x=r-1;x>=1;--x)if(w=v>0?x/a(-v):x*a(v),!(w<u)){if(w>h)break;O.push(w)}O.length*2<S&&(O=yA(u,h,S))}else O=yA(v,_,Math.min(_-v,S)).map(a);return m?O.reverse():O},t.tickFormat=(l,f)=>{if(l==null&&(l=10),f==null&&(f=r===10?"s":","),typeof f!="function"&&(!(r%1)&&(f=Bm(f)).precision==null&&(f.trim=!0),f=gP(f)),l===1/0)return f;const u=Math.max(1,r*l/t.ticks().length);return h=>{let m=h/a(Math.round(i(h)));return m*r<r-.5&&(m*=r),m<=u?f(h):""}},t.nice=()=>n(Kq(n(),{floor:l=>a(Math.floor(i(l))),ceil:l=>a(Math.ceil(i(l)))})),t}function Zq(){const e=yP(Y1()).domain([1,10]);return e.copy=()=>Lv(e,Zq()).base(e.base()),da.apply(e,arguments),e}function vI(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function gI(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function bP(e){var t=1,n=e(vI(t),gI(t));return n.constant=function(r){return arguments.length?e(vI(t=+r),gI(t)):t},tu(n)}function Xq(){var e=bP(Y1());return e.copy=function(){return Lv(e,Xq()).constant(e.constant())},da.apply(e,arguments)}function yI(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function mbe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function vbe(e){return e<0?-e*e:e*e}function wP(e){var t=e(Wr,Wr),n=1;function r(){return n===1?e(Wr,Wr):n===.5?e(mbe,vbe):e(yI(n),yI(1/n))}return t.exponent=function(i){return arguments.length?(n=+i,r()):n},tu(t)}function _P(){var e=wP(Y1());return e.copy=function(){return Lv(e,_P()).exponent(e.exponent())},da.apply(e,arguments),e}function gbe(){return _P.apply(null,arguments).exponent(.5)}function bI(e){return Math.sign(e)*e*e}function ybe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function Qq(){var e=mP(),t=[0,1],n=!1,r;function i(a){var o=ybe(e(a));return isNaN(o)?r:n?Math.round(o):o}return i.invert=function(a){return e.invert(bI(a))},i.domain=function(a){return arguments.length?(e.domain(a),i):e.domain()},i.range=function(a){return arguments.length?(e.range((t=Array.from(a,lb)).map(bI)),i):t.slice()},i.rangeRound=function(a){return i.range(a).round(!0)},i.round=function(a){return arguments.length?(n=!!a,i):n},i.clamp=function(a){return arguments.length?(e.clamp(a),i):e.clamp()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.copy=function(){return Qq(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},da.apply(i,arguments),tu(i)}function Jq(){var e=[],t=[],n=[],r;function i(){var o=0,l=Math.max(1,t.length);for(n=new Array(l-1);++o<l;)n[o-1]=S0e(e,o/l);return a}function a(o){return o==null||isNaN(o=+o)?r:t[Mv(n,o)]}return a.invertExtent=function(o){var l=t.indexOf(o);return l<0?[NaN,NaN]:[l>0?n[l-1]:e[0],l<n.length?n[l]:e[e.length-1]]},a.domain=function(o){if(!arguments.length)return e.slice();e=[];for(let l of o)l!=null&&!isNaN(l=+l)&&e.push(l);return e.sort(Dl),i()},a.range=function(o){return arguments.length?(t=Array.from(o),i()):t.slice()},a.unknown=function(o){return arguments.length?(r=o,a):r},a.quantiles=function(){return n.slice()},a.copy=function(){return Jq().domain(e).range(t).unknown(r)},da.apply(a,arguments)}function eV(){var e=0,t=1,n=1,r=[.5],i=[0,1],a;function o(f){return f!=null&&f<=f?i[Mv(r,f,0,n)]:a}function l(){var f=-1;for(r=new Array(n);++f<n;)r[f]=((f+1)*t-(f-n)*e)/(n+1);return o}return o.domain=function(f){return arguments.length?([e,t]=f,e=+e,t=+t,l()):[e,t]},o.range=function(f){return arguments.length?(n=(i=Array.from(f)).length-1,l()):i.slice()},o.invertExtent=function(f){var u=i.indexOf(f);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},o.unknown=function(f){return arguments.length&&(a=f),o},o.thresholds=function(){return r.slice()},o.copy=function(){return eV().domain([e,t]).range(i).unknown(a)},da.apply(tu(o),arguments)}function tV(){var e=[.5],t=[0,1],n,r=1;function i(a){return a!=null&&a<=a?t[Mv(e,a,0,r)]:n}return i.domain=function(a){return arguments.length?(e=Array.from(a),r=Math.min(e.length,t.length-1),i):e.slice()},i.range=function(a){return arguments.length?(t=Array.from(a),r=Math.min(e.length,t.length-1),i):t.slice()},i.invertExtent=function(a){var o=t.indexOf(a);return[e[o-1],e[o]]},i.unknown=function(a){return arguments.length?(n=a,i):n},i.copy=function(){return tV().domain(e).range(t).unknown(n)},da.apply(i,arguments)}const pC=new Date,mC=new Date;function er(e,t,n,r){function i(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return i.floor=a=>(e(a=new Date(+a)),a),i.ceil=a=>(e(a=new Date(a-1)),t(a,1),e(a),a),i.round=a=>{const o=i(a),l=i.ceil(a);return a-o<l-a?o:l},i.offset=(a,o)=>(t(a=new Date(+a),o==null?1:Math.floor(o)),a),i.range=(a,o,l)=>{const f=[];if(a=i.ceil(a),l=l==null?1:Math.floor(l),!(a<o)||!(l>0))return f;let u;do f.push(u=new Date(+a)),t(a,l),e(a);while(u<a&&a<o);return f},i.filter=a=>er(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;t(o,-1),!a(o););else for(;--l>=0;)for(;t(o,1),!a(o););}),n&&(i.count=(a,o)=>(pC.setTime(+a),mC.setTime(+o),e(pC),e(mC),Math.floor(n(pC,mC))),i.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?i.filter(r?o=>r(o)%a===0:o=>i.count(0,o)%a===0):i)),i}const fb=er(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);fb.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?er(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):fb);fb.range;const es=1e3,ra=es*60,ts=ra*60,ps=ts*24,xP=ps*7,wI=ps*30,vC=ps*365,Qu=er(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*es)},(e,t)=>(t-e)/es,e=>e.getUTCSeconds());Qu.range;const SP=er(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*es)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getMinutes());SP.range;const OP=er(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*ra)},(e,t)=>(t-e)/ra,e=>e.getUTCMinutes());OP.range;const CP=er(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*es-e.getMinutes()*ra)},(e,t)=>{e.setTime(+e+t*ts)},(e,t)=>(t-e)/ts,e=>e.getHours());CP.range;const EP=er(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*ts)},(e,t)=>(t-e)/ts,e=>e.getUTCHours());EP.range;const Dv=er(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*ra)/ps,e=>e.getDate()-1);Dv.range;const K1=er(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ps,e=>e.getUTCDate()-1);K1.range;const nV=er(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/ps,e=>Math.floor(e/ps));nV.range;function Cc(e){return er(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())*ra)/xP)}const Z1=Cc(0),db=Cc(1),bbe=Cc(2),wbe=Cc(3),gd=Cc(4),_be=Cc(5),xbe=Cc(6);Z1.range;db.range;bbe.range;wbe.range;gd.range;_be.range;xbe.range;function Ec(e){return er(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)/xP)}const X1=Ec(0),hb=Ec(1),Sbe=Ec(2),Obe=Ec(3),yd=Ec(4),Cbe=Ec(5),Ebe=Ec(6);X1.range;hb.range;Sbe.range;Obe.range;yd.range;Cbe.range;Ebe.range;const TP=er(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());TP.range;const AP=er(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());AP.range;const ms=er(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());ms.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:er(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)});ms.range;const vs=er(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());vs.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:er(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)});vs.range;function rV(e,t,n,r,i,a){const o=[[Qu,1,es],[Qu,5,5*es],[Qu,15,15*es],[Qu,30,30*es],[a,1,ra],[a,5,5*ra],[a,15,15*ra],[a,30,30*ra],[i,1,ts],[i,3,3*ts],[i,6,6*ts],[i,12,12*ts],[r,1,ps],[r,2,2*ps],[n,1,xP],[t,1,wI],[t,3,3*wI],[e,1,vC]];function l(u,h,m){const v=h<u;v&&([u,h]=[h,u]);const _=m&&typeof m.range=="function"?m:f(u,h,m),x=_?_.range(u,+h+1):[];return v?x.reverse():x}function f(u,h,m){const v=Math.abs(h-u)/m,_=cP(([,,S])=>S).right(o,v);if(_===o.length)return e.every(wA(u/vC,h/vC,m));if(_===0)return fb.every(Math.max(wA(u,h,m),1));const[x,w]=o[v/o[_-1][2]<o[_][2]/v?_-1:_];return x.every(w)}return[l,f]}const[Tbe,Abe]=rV(vs,AP,X1,nV,EP,OP),[jbe,Pbe]=rV(ms,TP,Z1,Dv,CP,SP);function gC(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 yC(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 Cp(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Rbe(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,l=e.months,f=e.shortMonths,u=Ep(i),h=Tp(i),m=Ep(a),v=Tp(a),_=Ep(o),x=Tp(o),w=Ep(l),S=Tp(l),O=Ep(f),C=Tp(f),T={a:B,A:U,b:F,B:M,c:null,d:EI,e:EI,f:e1e,g:c1e,G:d1e,H:Xbe,I:Qbe,j:Jbe,L:iV,m:t1e,M:n1e,p:I,q:J,Q:jI,s:PI,S:r1e,u:i1e,U:a1e,V:o1e,w:s1e,W:l1e,x:null,X:null,y:u1e,Y:f1e,Z:h1e,"%":AI},j={a:Y,A:ae,b:de,B:fe,c:null,d:TI,e:TI,f:g1e,g:T1e,G:j1e,H:p1e,I:m1e,j:v1e,L:oV,m:y1e,M:b1e,p:be,q:z,Q:jI,s:PI,S:w1e,u:_1e,U:x1e,V:S1e,w:O1e,W:C1e,x:null,X:null,y:E1e,Y:A1e,Z:P1e,"%":AI},P={a:H,A:G,b:te,B:ie,c:X,d:OI,e:OI,f:Gbe,g:SI,G:xI,H:CI,I:CI,j:qbe,L:Wbe,m:Fbe,M:Vbe,p:K,q:zbe,Q:Kbe,s:Zbe,S:Hbe,u:kbe,U:Ibe,V:$be,w:Dbe,W:Bbe,x:ee,X:W,y:SI,Y:xI,Z:Ube,"%":Ybe};T.x=R(n,T),T.X=R(r,T),T.c=R(t,T),j.x=R(n,j),j.X=R(r,j),j.c=R(t,j);function R(V,ne){return function(ce){var Q=[],le=-1,pe=0,ye=V.length,me,xe,Ae;for(ce instanceof Date||(ce=new Date(+ce));++le<ye;)V.charCodeAt(le)===37&&(Q.push(V.slice(pe,le)),(xe=_I[me=V.charAt(++le)])!=null?me=V.charAt(++le):xe=me==="e"?" ":"0",(Ae=ne[me])&&(me=Ae(ce,xe)),Q.push(me),pe=le+1);return Q.push(V.slice(pe,le)),Q.join("")}}function $(V,ne){return function(ce){var Q=Cp(1900,void 0,1),le=q(Q,V,ce+="",0),pe,ye;if(le!=ce.length)return null;if("Q"in Q)return new Date(Q.Q);if("s"in Q)return new Date(Q.s*1e3+("L"in Q?Q.L:0));if(ne&&!("Z"in Q)&&(Q.Z=0),"p"in Q&&(Q.H=Q.H%12+Q.p*12),Q.m===void 0&&(Q.m="q"in Q?Q.q:0),"V"in Q){if(Q.V<1||Q.V>53)return null;"w"in Q||(Q.w=1),"Z"in Q?(pe=yC(Cp(Q.y,0,1)),ye=pe.getUTCDay(),pe=ye>4||ye===0?hb.ceil(pe):hb(pe),pe=K1.offset(pe,(Q.V-1)*7),Q.y=pe.getUTCFullYear(),Q.m=pe.getUTCMonth(),Q.d=pe.getUTCDate()+(Q.w+6)%7):(pe=gC(Cp(Q.y,0,1)),ye=pe.getDay(),pe=ye>4||ye===0?db.ceil(pe):db(pe),pe=Dv.offset(pe,(Q.V-1)*7),Q.y=pe.getFullYear(),Q.m=pe.getMonth(),Q.d=pe.getDate()+(Q.w+6)%7)}else("W"in Q||"U"in Q)&&("w"in Q||(Q.w="u"in Q?Q.u%7:"W"in Q?1:0),ye="Z"in Q?yC(Cp(Q.y,0,1)).getUTCDay():gC(Cp(Q.y,0,1)).getDay(),Q.m=0,Q.d="W"in Q?(Q.w+6)%7+Q.W*7-(ye+5)%7:Q.w+Q.U*7-(ye+6)%7);return"Z"in Q?(Q.H+=Q.Z/100|0,Q.M+=Q.Z%100,yC(Q)):gC(Q)}}function q(V,ne,ce,Q){for(var le=0,pe=ne.length,ye=ce.length,me,xe;le<pe;){if(Q>=ye)return-1;if(me=ne.charCodeAt(le++),me===37){if(me=ne.charAt(le++),xe=P[me in _I?ne.charAt(le++):me],!xe||(Q=xe(V,ce,Q))<0)return-1}else if(me!=ce.charCodeAt(Q++))return-1}return Q}function K(V,ne,ce){var Q=u.exec(ne.slice(ce));return Q?(V.p=h.get(Q[0].toLowerCase()),ce+Q[0].length):-1}function H(V,ne,ce){var Q=_.exec(ne.slice(ce));return Q?(V.w=x.get(Q[0].toLowerCase()),ce+Q[0].length):-1}function G(V,ne,ce){var Q=m.exec(ne.slice(ce));return Q?(V.w=v.get(Q[0].toLowerCase()),ce+Q[0].length):-1}function te(V,ne,ce){var Q=O.exec(ne.slice(ce));return Q?(V.m=C.get(Q[0].toLowerCase()),ce+Q[0].length):-1}function ie(V,ne,ce){var Q=w.exec(ne.slice(ce));return Q?(V.m=S.get(Q[0].toLowerCase()),ce+Q[0].length):-1}function X(V,ne,ce){return q(V,t,ne,ce)}function ee(V,ne,ce){return q(V,n,ne,ce)}function W(V,ne,ce){return q(V,r,ne,ce)}function B(V){return o[V.getDay()]}function U(V){return a[V.getDay()]}function F(V){return f[V.getMonth()]}function M(V){return l[V.getMonth()]}function I(V){return i[+(V.getHours()>=12)]}function J(V){return 1+~~(V.getMonth()/3)}function Y(V){return o[V.getUTCDay()]}function ae(V){return a[V.getUTCDay()]}function de(V){return f[V.getUTCMonth()]}function fe(V){return l[V.getUTCMonth()]}function be(V){return i[+(V.getUTCHours()>=12)]}function z(V){return 1+~~(V.getUTCMonth()/3)}return{format:function(V){var ne=R(V+="",T);return ne.toString=function(){return V},ne},parse:function(V){var ne=$(V+="",!1);return ne.toString=function(){return V},ne},utcFormat:function(V){var ne=R(V+="",j);return ne.toString=function(){return V},ne},utcParse:function(V){var ne=$(V+="",!0);return ne.toString=function(){return V},ne}}}var _I={"-":"",_:" ",0:"0"},hr=/^\s*\d+/,Mbe=/^%/,Nbe=/[\\^$*+?|[\]().{}]/g;function zt(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",a=i.length;return r+(a<n?new Array(n-a+1).join(t)+i:i)}function Lbe(e){return e.replace(Nbe,"\\$&")}function Ep(e){return new RegExp("^(?:"+e.map(Lbe).join("|")+")","i")}function Tp(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Dbe(e,t,n){var r=hr.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function kbe(e,t,n){var r=hr.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Ibe(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function $be(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Bbe(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function xI(e,t,n){var r=hr.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function SI(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 Ube(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 zbe(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 Fbe(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 OI(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function qbe(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 CI(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Vbe(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Hbe(e,t,n){var r=hr.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Wbe(e,t,n){var r=hr.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Gbe(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 Ybe(e,t,n){var r=Mbe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Kbe(e,t,n){var r=hr.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function Zbe(e,t,n){var r=hr.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function EI(e,t){return zt(e.getDate(),t,2)}function Xbe(e,t){return zt(e.getHours(),t,2)}function Qbe(e,t){return zt(e.getHours()%12||12,t,2)}function Jbe(e,t){return zt(1+Dv.count(ms(e),e),t,3)}function iV(e,t){return zt(e.getMilliseconds(),t,3)}function e1e(e,t){return iV(e,t)+"000"}function t1e(e,t){return zt(e.getMonth()+1,t,2)}function n1e(e,t){return zt(e.getMinutes(),t,2)}function r1e(e,t){return zt(e.getSeconds(),t,2)}function i1e(e){var t=e.getDay();return t===0?7:t}function a1e(e,t){return zt(Z1.count(ms(e)-1,e),t,2)}function aV(e){var t=e.getDay();return t>=4||t===0?gd(e):gd.ceil(e)}function o1e(e,t){return e=aV(e),zt(gd.count(ms(e),e)+(ms(e).getDay()===4),t,2)}function s1e(e){return e.getDay()}function l1e(e,t){return zt(db.count(ms(e)-1,e),t,2)}function u1e(e,t){return zt(e.getFullYear()%100,t,2)}function c1e(e,t){return e=aV(e),zt(e.getFullYear()%100,t,2)}function f1e(e,t){return zt(e.getFullYear()%1e4,t,4)}function d1e(e,t){var n=e.getDay();return e=n>=4||n===0?gd(e):gd.ceil(e),zt(e.getFullYear()%1e4,t,4)}function h1e(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+zt(t/60|0,"0",2)+zt(t%60,"0",2)}function TI(e,t){return zt(e.getUTCDate(),t,2)}function p1e(e,t){return zt(e.getUTCHours(),t,2)}function m1e(e,t){return zt(e.getUTCHours()%12||12,t,2)}function v1e(e,t){return zt(1+K1.count(vs(e),e),t,3)}function oV(e,t){return zt(e.getUTCMilliseconds(),t,3)}function g1e(e,t){return oV(e,t)+"000"}function y1e(e,t){return zt(e.getUTCMonth()+1,t,2)}function b1e(e,t){return zt(e.getUTCMinutes(),t,2)}function w1e(e,t){return zt(e.getUTCSeconds(),t,2)}function _1e(e){var t=e.getUTCDay();return t===0?7:t}function x1e(e,t){return zt(X1.count(vs(e)-1,e),t,2)}function sV(e){var t=e.getUTCDay();return t>=4||t===0?yd(e):yd.ceil(e)}function S1e(e,t){return e=sV(e),zt(yd.count(vs(e),e)+(vs(e).getUTCDay()===4),t,2)}function O1e(e){return e.getUTCDay()}function C1e(e,t){return zt(hb.count(vs(e)-1,e),t,2)}function E1e(e,t){return zt(e.getUTCFullYear()%100,t,2)}function T1e(e,t){return e=sV(e),zt(e.getUTCFullYear()%100,t,2)}function A1e(e,t){return zt(e.getUTCFullYear()%1e4,t,4)}function j1e(e,t){var n=e.getUTCDay();return e=n>=4||n===0?yd(e):yd.ceil(e),zt(e.getUTCFullYear()%1e4,t,4)}function P1e(){return"+0000"}function AI(){return"%"}function jI(e){return+e}function PI(e){return Math.floor(+e/1e3)}var Ef,lV,uV;R1e({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 R1e(e){return Ef=Rbe(e),lV=Ef.format,Ef.parse,uV=Ef.utcFormat,Ef.utcParse,Ef}function M1e(e){return new Date(e)}function N1e(e){return e instanceof Date?+e:+new Date(+e)}function jP(e,t,n,r,i,a,o,l,f,u){var h=mP(),m=h.invert,v=h.domain,_=u(".%L"),x=u(":%S"),w=u("%I:%M"),S=u("%I %p"),O=u("%a %d"),C=u("%b %d"),T=u("%B"),j=u("%Y");function P(R){return(f(R)<R?_:l(R)<R?x:o(R)<R?w:a(R)<R?S:r(R)<R?i(R)<R?O:C:n(R)<R?T:j)(R)}return h.invert=function(R){return new Date(m(R))},h.domain=function(R){return arguments.length?v(Array.from(R,N1e)):v().map(M1e)},h.ticks=function(R){var $=v();return e($[0],$[$.length-1],R??10)},h.tickFormat=function(R,$){return $==null?P:u($)},h.nice=function(R){var $=v();return(!R||typeof R.range!="function")&&(R=t($[0],$[$.length-1],R??10)),R?v(Kq($,R)):h},h.copy=function(){return Lv(h,jP(e,t,n,r,i,a,o,l,f,u))},h}function L1e(){return da.apply(jP(jbe,Pbe,ms,TP,Z1,Dv,CP,SP,Qu,lV).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function D1e(){return da.apply(jP(Tbe,Abe,vs,AP,X1,K1,EP,OP,Qu,uV).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Q1(){var e=0,t=1,n,r,i,a,o=Wr,l=!1,f;function u(m){return m==null||isNaN(m=+m)?f:o(i===0?.5:(m=(a(m)-n)*i,l?Math.max(0,Math.min(1,m)):m))}u.domain=function(m){return arguments.length?([e,t]=m,n=a(e=+e),r=a(t=+t),i=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(m){return arguments.length?(l=!!m,u):l},u.interpolator=function(m){return arguments.length?(o=m,u):o};function h(m){return function(v){var _,x;return arguments.length?([_,x]=v,o=m(_,x),u):[o(0),o(1)]}}return u.range=h(nh),u.rangeRound=h(pP),u.unknown=function(m){return arguments.length?(f=m,u):f},function(m){return a=m,n=m(e),r=m(t),i=n===r?0:1/(r-n),u}}function nu(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function cV(){var e=tu(Q1()(Wr));return e.copy=function(){return nu(e,cV())},Cs.apply(e,arguments)}function fV(){var e=yP(Q1()).domain([1,10]);return e.copy=function(){return nu(e,fV()).base(e.base())},Cs.apply(e,arguments)}function dV(){var e=bP(Q1());return e.copy=function(){return nu(e,dV()).constant(e.constant())},Cs.apply(e,arguments)}function PP(){var e=wP(Q1());return e.copy=function(){return nu(e,PP()).exponent(e.exponent())},Cs.apply(e,arguments)}function k1e(){return PP.apply(null,arguments).exponent(.5)}function hV(){var e=[],t=Wr;function n(r){if(r!=null&&!isNaN(r=+r))return t((Mv(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(Dl),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,a)=>x0e(e,a/r))},n.copy=function(){return hV(t).domain(e)},Cs.apply(n,arguments)}function J1(){var e=0,t=.5,n=1,r=1,i,a,o,l,f,u=Wr,h,m=!1,v;function _(w){return isNaN(w=+w)?v:(w=.5+((w=+h(w))-a)*(r*w<r*a?l:f),u(m?Math.max(0,Math.min(1,w)):w))}_.domain=function(w){return arguments.length?([e,t,n]=w,i=h(e=+e),a=h(t=+t),o=h(n=+n),l=i===a?0:.5/(a-i),f=a===o?0:.5/(o-a),r=a<i?-1:1,_):[e,t,n]},_.clamp=function(w){return arguments.length?(m=!!w,_):m},_.interpolator=function(w){return arguments.length?(u=w,_):u};function x(w){return function(S){var O,C,T;return arguments.length?([O,C,T]=S,u=Y0e(w,[O,C,T]),_):[u(0),u(.5),u(1)]}}return _.range=x(nh),_.rangeRound=x(pP),_.unknown=function(w){return arguments.length?(v=w,_):v},function(w){return h=w,i=w(e),a=w(t),o=w(n),l=i===a?0:.5/(a-i),f=a===o?0:.5/(o-a),r=a<i?-1:1,_}}function pV(){var e=tu(J1()(Wr));return e.copy=function(){return nu(e,pV())},Cs.apply(e,arguments)}function mV(){var e=yP(J1()).domain([.1,1,10]);return e.copy=function(){return nu(e,mV()).base(e.base())},Cs.apply(e,arguments)}function vV(){var e=bP(J1());return e.copy=function(){return nu(e,vV()).constant(e.constant())},Cs.apply(e,arguments)}function RP(){var e=wP(J1());return e.copy=function(){return nu(e,RP()).exponent(e.exponent())},Cs.apply(e,arguments)}function I1e(){return RP.apply(null,arguments).exponent(.5)}const RI=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Dm,scaleDiverging:pV,scaleDivergingLog:mV,scaleDivergingPow:RP,scaleDivergingSqrt:I1e,scaleDivergingSymlog:vV,scaleIdentity:Yq,scaleImplicit:_A,scaleLinear:cb,scaleLog:Zq,scaleOrdinal:fP,scalePoint:Jp,scalePow:_P,scaleQuantile:Jq,scaleQuantize:eV,scaleRadial:Qq,scaleSequential:cV,scaleSequentialLog:fV,scaleSequentialPow:PP,scaleSequentialQuantile:hV,scaleSequentialSqrt:k1e,scaleSequentialSymlog:dV,scaleSqrt:gbe,scaleSymlog:Xq,scaleThreshold:tV,scaleTime:L1e,scaleUtc:D1e,tickFormat:Gq},Symbol.toStringTag,{value:"Module"}));var bC,MI;function ew(){if(MI)return bC;MI=1;var e=Qd();function t(n,r,i){for(var a=-1,o=n.length;++a<o;){var l=n[a],f=r(l);if(f!=null&&(u===void 0?f===f&&!e(f):i(f,u)))var u=f,h=l}return h}return bC=t,bC}var wC,NI;function gV(){if(NI)return wC;NI=1;function e(t,n){return t>n}return wC=e,wC}var _C,LI;function $1e(){if(LI)return _C;LI=1;var e=ew(),t=gV(),n=th();function r(i){return i&&i.length?e(i,n,t):void 0}return _C=r,_C}var B1e=$1e();const jl=Nt(B1e);var xC,DI;function yV(){if(DI)return xC;DI=1;function e(t,n){return t<n}return xC=e,xC}var SC,kI;function U1e(){if(kI)return SC;kI=1;var e=ew(),t=yV(),n=th();function r(i){return i&&i.length?e(i,n,t):void 0}return SC=r,SC}var z1e=U1e();const tw=Nt(z1e);var OC,II;function F1e(){if(II)return OC;II=1;var e=Y3(),t=So(),n=Eq(),r=si();function i(a,o){var l=r(a)?e:n;return l(a,t(o,3))}return OC=i,OC}var CC,$I;function q1e(){if($I)return CC;$I=1;var e=Oq(),t=F1e();function n(r,i){return e(t(r,i),1)}return CC=n,CC}var V1e=q1e();const H1e=Nt(V1e);var EC,BI;function W1e(){if(BI)return EC;BI=1;var e=oP();function t(n,r){return e(n,r)}return EC=t,EC}var G1e=W1e();const Wl=Nt(G1e);var rh=1e9,Y1e={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},NP,_n=!0,ca="[DecimalError] ",rc=ca+"Invalid argument: ",MP=ca+"Exponent out of range: ",ih=Math.floor,Hu=Math.pow,K1e=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Ai,ur=1e7,pn=7,bV=9007199254740991,pb=ih(bV/pn),nt={};nt.absoluteValue=nt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};nt.comparedTo=nt.cmp=function(e){var t,n,r,i,a=this;if(e=new a.constructor(e),a.s!==e.s)return a.s||-e.s;if(a.e!==e.e)return a.e>e.e^a.s<0?1:-1;for(r=a.d.length,i=e.d.length,t=0,n=r<i?r:i;t<n;++t)if(a.d[t]!==e.d[t])return a.d[t]>e.d[t]^a.s<0?1:-1;return r===i?0:r>i^a.s<0?1:-1};nt.decimalPlaces=nt.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*pn;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};nt.dividedBy=nt.div=function(e){return os(this,new this.constructor(e))};nt.dividedToIntegerBy=nt.idiv=function(e){var t=this,n=t.constructor;return tn(os(t,new n(e),0,1),n.precision)};nt.equals=nt.eq=function(e){return!this.cmp(e)};nt.exponent=function(){return Hn(this)};nt.greaterThan=nt.gt=function(e){return this.cmp(e)>0};nt.greaterThanOrEqualTo=nt.gte=function(e){return this.cmp(e)>=0};nt.isInteger=nt.isint=function(){return this.e>this.d.length-2};nt.isNegative=nt.isneg=function(){return this.s<0};nt.isPositive=nt.ispos=function(){return this.s>0};nt.isZero=function(){return this.s===0};nt.lessThan=nt.lt=function(e){return this.cmp(e)<0};nt.lessThanOrEqualTo=nt.lte=function(e){return this.cmp(e)<1};nt.logarithm=nt.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Ai))throw Error(ca+"NaN");if(n.s<1)throw Error(ca+(n.s?"NaN":"-Infinity"));return n.eq(Ai)?new r(0):(_n=!1,t=os(Um(n,a),Um(e,a),a),_n=!0,tn(t,i))};nt.minus=nt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?xV(t,e):wV(t,(e.s=-e.s,e))};nt.modulo=nt.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(e=new r(e),!e.s)throw Error(ca+"NaN");return n.s?(_n=!1,t=os(n,e,0,1).times(e),_n=!0,n.minus(t)):tn(new r(n),i)};nt.naturalExponential=nt.exp=function(){return _V(this)};nt.naturalLogarithm=nt.ln=function(){return Um(this)};nt.negated=nt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};nt.plus=nt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?wV(t,e):xV(t,(e.s=-e.s,e))};nt.precision=nt.sd=function(e){var t,n,r,i=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(rc+e);if(t=Hn(i)+1,r=i.d.length-1,n=r*pn+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};nt.squareRoot=nt.sqrt=function(){var e,t,n,r,i,a,o,l=this,f=l.constructor;if(l.s<1){if(!l.s)return new f(0);throw Error(ca+"NaN")}for(e=Hn(l),_n=!1,i=Math.sqrt(+l),i==0||i==1/0?(t=ao(l.d),(t.length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=ih((e+1)/2)-(e<0||e%2),i==1/0?t="5e"+e:(t=i.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new f(t)):r=new f(i.toString()),n=f.precision,i=o=n+3;;)if(a=r,r=a.plus(os(l,a,o+2)).times(.5),ao(a.d).slice(0,o)===(t=ao(r.d)).slice(0,o)){if(t=t.slice(o-3,o+1),i==o&&t=="4999"){if(tn(a,n+1,0),a.times(a).eq(l)){r=a;break}}else if(t!="9999")break;o+=4}return _n=!0,tn(r,n)};nt.times=nt.mul=function(e){var t,n,r,i,a,o,l,f,u,h=this,m=h.constructor,v=h.d,_=(e=new m(e)).d;if(!h.s||!e.s)return new m(0);for(e.s*=h.s,n=h.e+e.e,f=v.length,u=_.length,f<u&&(a=v,v=_,_=a,o=f,f=u,u=o),a=[],o=f+u,r=o;r--;)a.push(0);for(r=u;--r>=0;){for(t=0,i=f+r;i>r;)l=a[i]+_[r]*v[i-r-1]+t,a[i--]=l%ur|0,t=l/ur|0;a[i]=(a[i]+t)%ur|0}for(;!a[--o];)a.pop();return t?++n:a.shift(),e.d=a,e.e=n,_n?tn(e,m.precision):e};nt.toDecimalPlaces=nt.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(mo(e,0,rh),t===void 0?t=r.rounding:mo(t,0,8),tn(n,e+Hn(n)+1,t))};nt.toExponential=function(e,t){var n,r=this,i=r.constructor;return e===void 0?n=vc(r,!0):(mo(e,0,rh),t===void 0?t=i.rounding:mo(t,0,8),r=tn(new i(r),e+1,t),n=vc(r,!0,e+1)),n};nt.toFixed=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?vc(i):(mo(e,0,rh),t===void 0?t=a.rounding:mo(t,0,8),r=tn(new a(i),e+Hn(i)+1,t),n=vc(r.abs(),!1,e+Hn(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)};nt.toInteger=nt.toint=function(){var e=this,t=e.constructor;return tn(new t(e),Hn(e)+1,t.rounding)};nt.toNumber=function(){return+this};nt.toPower=nt.pow=function(e){var t,n,r,i,a,o,l=this,f=l.constructor,u=12,h=+(e=new f(e));if(!e.s)return new f(Ai);if(l=new f(l),!l.s){if(e.s<1)throw Error(ca+"Infinity");return l}if(l.eq(Ai))return l;if(r=f.precision,e.eq(Ai))return tn(l,r);if(t=e.e,n=e.d.length-1,o=t>=n,a=l.s,o){if((n=h<0?-h:h)<=bV){for(i=new f(Ai),t=Math.ceil(r/pn+4),_n=!1;n%2&&(i=i.times(l),zI(i.d,t)),n=ih(n/2),n!==0;)l=l.times(l),zI(l.d,t);return _n=!0,e.s<0?new f(Ai).div(i):tn(i,r)}}else if(a<0)throw Error(ca+"NaN");return a=a<0&&e.d[Math.max(t,n)]&1?-1:1,l.s=1,_n=!1,i=e.times(Um(l,r+u)),_n=!0,i=_V(i),i.s=a,i};nt.toPrecision=function(e,t){var n,r,i=this,a=i.constructor;return e===void 0?(n=Hn(i),r=vc(i,n<=a.toExpNeg||n>=a.toExpPos)):(mo(e,1,rh),t===void 0?t=a.rounding:mo(t,0,8),i=tn(new a(i),e,t),n=Hn(i),r=vc(i,e<=n||n<=a.toExpNeg,e)),r};nt.toSignificantDigits=nt.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(mo(e,1,rh),t===void 0?t=r.rounding:mo(t,0,8)),tn(new r(n),e,t)};nt.toString=nt.valueOf=nt.val=nt.toJSON=nt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Hn(e),n=e.constructor;return vc(e,t<=n.toExpNeg||t>=n.toExpPos)};function wV(e,t){var n,r,i,a,o,l,f,u,h=e.constructor,m=h.precision;if(!e.s||!t.s)return t.s||(t=new h(e)),_n?tn(t,m):t;if(f=e.d,u=t.d,o=e.e,i=t.e,f=f.slice(),a=o-i,a){for(a<0?(r=f,a=-a,l=u.length):(r=u,i=o,l=f.length),o=Math.ceil(m/pn),l=o>l?o+1:l+1,a>l&&(a=l,r.length=1),r.reverse();a--;)r.push(0);r.reverse()}for(l=f.length,a=u.length,l-a<0&&(a=l,r=u,u=f,f=r),n=0;a;)n=(f[--a]=f[a]+u[a]+n)/ur|0,f[a]%=ur;for(n&&(f.unshift(n),++i),l=f.length;f[--l]==0;)f.pop();return t.d=f,t.e=i,_n?tn(t,m):t}function mo(e,t,n){if(e!==~~e||e<t||e>n)throw Error(rc+e)}function ao(e){var t,n,r,i=e.length-1,a="",o=e[0];if(i>0){for(a+=o,t=1;t<i;t++)r=e[t]+"",n=pn-r.length,n&&(a+=El(n)),a+=r;o=e[t],r=o+"",n=pn-r.length,n&&(a+=El(n))}else if(o===0)return"0";for(;o%10===0;)o/=10;return a+o}var os=function(){function e(r,i){var a,o=0,l=r.length;for(r=r.slice();l--;)a=r[l]*i+o,r[l]=a%ur|0,o=a/ur|0;return o&&r.unshift(o),r}function t(r,i,a,o){var l,f;if(a!=o)f=a>o?1:-1;else for(l=f=0;l<a;l++)if(r[l]!=i[l]){f=r[l]>i[l]?1:-1;break}return f}function n(r,i,a){for(var o=0;a--;)r[a]-=o,o=r[a]<i[a]?1:0,r[a]=o*ur+r[a]-i[a];for(;!r[0]&&r.length>1;)r.shift()}return function(r,i,a,o){var l,f,u,h,m,v,_,x,w,S,O,C,T,j,P,R,$,q,K=r.constructor,H=r.s==i.s?1:-1,G=r.d,te=i.d;if(!r.s)return new K(r);if(!i.s)throw Error(ca+"Division by zero");for(f=r.e-i.e,$=te.length,P=G.length,_=new K(H),x=_.d=[],u=0;te[u]==(G[u]||0);)++u;if(te[u]>(G[u]||0)&&--f,a==null?C=a=K.precision:o?C=a+(Hn(r)-Hn(i))+1:C=a,C<0)return new K(0);if(C=C/pn+2|0,u=0,$==1)for(h=0,te=te[0],C++;(u<P||h)&&C--;u++)T=h*ur+(G[u]||0),x[u]=T/te|0,h=T%te|0;else{for(h=ur/(te[0]+1)|0,h>1&&(te=e(te,h),G=e(G,h),$=te.length,P=G.length),j=$,w=G.slice(0,$),S=w.length;S<$;)w[S++]=0;q=te.slice(),q.unshift(0),R=te[0],te[1]>=ur/2&&++R;do h=0,l=t(te,w,$,S),l<0?(O=w[0],$!=S&&(O=O*ur+(w[1]||0)),h=O/R|0,h>1?(h>=ur&&(h=ur-1),m=e(te,h),v=m.length,S=w.length,l=t(m,w,v,S),l==1&&(h--,n(m,$<v?q:te,v))):(h==0&&(l=h=1),m=te.slice()),v=m.length,v<S&&m.unshift(0),n(w,m,S),l==-1&&(S=w.length,l=t(te,w,$,S),l<1&&(h++,n(w,$<S?q:te,S))),S=w.length):l===0&&(h++,w=[0]),x[u++]=h,l&&w[0]?w[S++]=G[j]||0:(w=[G[j]],S=1);while((j++<P||w[0]!==void 0)&&C--)}return x[0]||x.shift(),_.e=f,tn(_,o?a+Hn(_)+1:a)}}();function _V(e,t){var n,r,i,a,o,l,f=0,u=0,h=e.constructor,m=h.precision;if(Hn(e)>16)throw Error(MP+Hn(e));if(!e.s)return new h(Ai);for(_n=!1,l=m,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),u+=5;for(r=Math.log(Hu(2,u))/Math.LN10*2+5|0,l+=r,n=i=a=new h(Ai),h.precision=l;;){if(i=tn(i.times(e),l),n=n.times(++f),o=a.plus(os(i,n,l)),ao(o.d).slice(0,l)===ao(a.d).slice(0,l)){for(;u--;)a=tn(a.times(a),l);return h.precision=m,t==null?(_n=!0,tn(a,m)):a}a=o}}function Hn(e){for(var t=e.e*pn,n=e.d[0];n>=10;n/=10)t++;return t}function TC(e,t,n){if(t>e.LN10.sd())throw _n=!0,n&&(e.precision=n),Error(ca+"LN10 precision limit exceeded");return tn(new e(e.LN10),t)}function El(e){for(var t="";e--;)t+="0";return t}function Um(e,t){var n,r,i,a,o,l,f,u,h,m=1,v=10,_=e,x=_.d,w=_.constructor,S=w.precision;if(_.s<1)throw Error(ca+(_.s?"NaN":"-Infinity"));if(_.eq(Ai))return new w(0);if(t==null?(_n=!1,u=S):u=t,_.eq(10))return t==null&&(_n=!0),TC(w,u);if(u+=v,w.precision=u,n=ao(x),r=n.charAt(0),a=Hn(_),Math.abs(a)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)_=_.times(e),n=ao(_.d),r=n.charAt(0),m++;a=Hn(_),r>1?(_=new w("0."+n),a++):_=new w(r+"."+n.slice(1))}else return f=TC(w,u+2,S).times(a+""),_=Um(new w(r+"."+n.slice(1)),u-v).plus(f),w.precision=S,t==null?(_n=!0,tn(_,S)):_;for(l=o=_=os(_.minus(Ai),_.plus(Ai),u),h=tn(_.times(_),u),i=3;;){if(o=tn(o.times(h),u),f=l.plus(os(o,new w(i),u)),ao(f.d).slice(0,u)===ao(l.d).slice(0,u))return l=l.times(2),a!==0&&(l=l.plus(TC(w,u+2,S).times(a+""))),l=os(l,new w(m),u),w.precision=S,t==null?(_n=!0,tn(l,S)):l;l=f,i+=2}}function UI(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=ih(n/pn),e.d=[],r=(n+1)%pn,n<0&&(r+=pn),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=pn;r<i;)e.d.push(+t.slice(r,r+=pn));t=t.slice(r),r=pn-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),_n&&(e.e>pb||e.e<-pb))throw Error(MP+n)}else e.s=0,e.e=0,e.d=[0];return e}function tn(e,t,n){var r,i,a,o,l,f,u,h,m=e.d;for(o=1,a=m[0];a>=10;a/=10)o++;if(r=t-o,r<0)r+=pn,i=t,u=m[h=0];else{if(h=Math.ceil((r+1)/pn),a=m.length,h>=a)return e;for(u=a=m[h],o=1;a>=10;a/=10)o++;r%=pn,i=r-pn+o}if(n!==void 0&&(a=Hu(10,o-i-1),l=u/a%10|0,f=t<0||m[h+1]!==void 0||u%a,f=n<4?(l||f)&&(n==0||n==(e.s<0?3:2)):l>5||l==5&&(n==4||f||n==6&&(r>0?i>0?u/Hu(10,o-i):0:m[h-1])%10&1||n==(e.s<0?8:7))),t<1||!m[0])return f?(a=Hn(e),m.length=1,t=t-a-1,m[0]=Hu(10,(pn-t%pn)%pn),e.e=ih(-t/pn)||0):(m.length=1,m[0]=e.e=e.s=0),e;if(r==0?(m.length=h,a=1,h--):(m.length=h+1,a=Hu(10,pn-r),m[h]=i>0?(u/Hu(10,o-i)%Hu(10,i)|0)*a:0),f)for(;;)if(h==0){(m[0]+=a)==ur&&(m[0]=1,++e.e);break}else{if(m[h]+=a,m[h]!=ur)break;m[h--]=0,a=1}for(r=m.length;m[--r]===0;)m.pop();if(_n&&(e.e>pb||e.e<-pb))throw Error(MP+Hn(e));return e}function xV(e,t){var n,r,i,a,o,l,f,u,h,m,v=e.constructor,_=v.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new v(e),_n?tn(t,_):t;if(f=e.d,m=t.d,r=t.e,u=e.e,f=f.slice(),o=u-r,o){for(h=o<0,h?(n=f,o=-o,l=m.length):(n=m,r=u,l=f.length),i=Math.max(Math.ceil(_/pn),l)+2,o>i&&(o=i,n.length=1),n.reverse(),i=o;i--;)n.push(0);n.reverse()}else{for(i=f.length,l=m.length,h=i<l,h&&(l=i),i=0;i<l;i++)if(f[i]!=m[i]){h=f[i]<m[i];break}o=0}for(h&&(n=f,f=m,m=n,t.s=-t.s),l=f.length,i=m.length-l;i>0;--i)f[l++]=0;for(i=m.length;i>o;){if(f[--i]<m[i]){for(a=i;a&&f[--a]===0;)f[a]=ur-1;--f[a],f[i]+=ur}f[i]-=m[i]}for(;f[--l]===0;)f.pop();for(;f[0]===0;f.shift())--r;return f[0]?(t.d=f,t.e=r,_n?tn(t,_):t):new v(0)}function vc(e,t,n){var r,i=Hn(e),a=ao(e.d),o=a.length;return t?(n&&(r=n-o)>0?a=a.charAt(0)+"."+a.slice(1)+El(r):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(i<0?"e":"e+")+i):i<0?(a="0."+El(-i-1)+a,n&&(r=n-o)>0&&(a+=El(r))):i>=o?(a+=El(i+1-o),n&&(r=n-i-1)>0&&(a=a+"."+El(r))):((r=i+1)<o&&(a=a.slice(0,r)+"."+a.slice(r)),n&&(r=n-o)>0&&(i+1===o&&(a+="."),a+=El(r))),e.s<0?"-"+a:a}function zI(e,t){if(e.length>t)return e.length=t,!0}function SV(e){var t,n,r;function i(a){var o=this;if(!(o instanceof i))return new i(a);if(o.constructor=i,a instanceof i){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(rc+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return UI(o,a.toString())}else if(typeof a!="string")throw Error(rc+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,K1e.test(a))UI(o,a);else throw Error(rc+a)}if(i.prototype=nt,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=SV,i.config=i.set=Z1e,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 Z1e(e){if(!e||typeof e!="object")throw Error(ca+"Object expected");var t,n,r,i=["precision",1,rh,"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(ih(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(rc+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(rc+n+": "+r);return this}var NP=SV(Y1e);Ai=new NP(1);const Qt=NP;function X1e(e){return twe(e)||ewe(e)||J1e(e)||Q1e()}function Q1e(){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 J1e(e,t){if(e){if(typeof e=="string")return CA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CA(e,t)}}function ewe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function twe(e){if(Array.isArray(e))return CA(e)}function CA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var nwe=function(t){return t},OV={},CV=function(t){return t===OV},FI=function(t){return function n(){return arguments.length===0||arguments.length===1&&CV(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},rwe=function e(t,n){return t===1?n:FI(function(){for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];var o=i.filter(function(l){return l!==OV}).length;return o>=t?n.apply(void 0,i):e(t-o,FI(function(){for(var l=arguments.length,f=new Array(l),u=0;u<l;u++)f[u]=arguments[u];var h=i.map(function(m){return CV(m)?f.shift():m});return n.apply(void 0,X1e(h).concat(f))}))})},nw=function(t){return rwe(t.length,t)},EA=function(t,n){for(var r=[],i=t;i<n;++i)r[i-t]=i;return r},iwe=nw(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),awe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return nwe;var i=n.reverse(),a=i[0],o=i.slice(1);return function(){return o.reduce(function(l,f){return f(l)},a.apply(void 0,arguments))}},TA=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},EV=function(t){var n=null,r=null;return function(){for(var i=arguments.length,a=new Array(i),o=0;o<i;o++)a[o]=arguments[o];return n&&a.every(function(l,f){return l===n[f]})||(n=a,r=t.apply(void 0,a)),r}};function owe(e){var t;return e===0?t=1:t=Math.floor(new Qt(e).abs().log(10).toNumber())+1,t}function swe(e,t,n){for(var r=new Qt(e),i=0,a=[];r.lt(t)&&i<1e5;)a.push(r.toNumber()),r=r.add(n),i++;return a}var lwe=nw(function(e,t,n){var r=+e,i=+t;return r+n*(i-r)}),uwe=nw(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),cwe=nw(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const rw={rangeStep:swe,getDigitCount:owe,interpolateNumber:lwe,uninterpolateNumber:uwe,uninterpolateTruncation:cwe};function AA(e){return hwe(e)||dwe(e)||TV(e)||fwe()}function fwe(){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 dwe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function hwe(e){if(Array.isArray(e))return jA(e)}function zm(e,t){return vwe(e)||mwe(e,t)||TV(e,t)||pwe()}function pwe(){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 TV(e,t){if(e){if(typeof e=="string")return jA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jA(e,t)}}function jA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mwe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(r=(l=o.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(f){i=!0,a=f}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}function vwe(e){if(Array.isArray(e))return e}function AV(e){var t=zm(e,2),n=t[0],r=t[1],i=n,a=r;return n>r&&(i=r,a=n),[i,a]}function jV(e,t,n){if(e.lte(0))return new Qt(0);var r=rw.getDigitCount(e.toNumber()),i=new Qt(10).pow(r),a=e.div(i),o=r!==1?.05:.1,l=new Qt(Math.ceil(a.div(o).toNumber())).add(n).mul(o),f=l.mul(i);return t?f:new Qt(Math.ceil(f))}function gwe(e,t,n){var r=1,i=new Qt(e);if(!i.isint()&&n){var a=Math.abs(e);a<1?(r=new Qt(10).pow(rw.getDigitCount(e)-1),i=new Qt(Math.floor(i.div(r).toNumber())).mul(r)):a>1&&(i=new Qt(Math.floor(e)))}else e===0?i=new Qt(Math.floor((t-1)/2)):n||(i=new Qt(Math.floor(e)));var o=Math.floor((t-1)/2),l=awe(iwe(function(f){return i.add(new Qt(f-o).mul(r)).toNumber()}),EA);return l(0,t)}function PV(e,t,n,r){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new Qt(0),tickMin:new Qt(0),tickMax:new Qt(0)};var a=jV(new Qt(t).sub(e).div(n-1),r,i),o;e<=0&&t>=0?o=new Qt(0):(o=new Qt(e).add(t).div(2),o=o.sub(new Qt(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),f=Math.ceil(new Qt(t).sub(o).div(a).toNumber()),u=l+f+1;return u>n?PV(e,t,n,r,i+1):(u<n&&(f=t>0?f+(n-u):f,l=t>0?l:l+(n-u)),{step:a,tickMin:o.sub(new Qt(l).mul(a)),tickMax:o.add(new Qt(f).mul(a))})}function ywe(e){var t=zm(e,2),n=t[0],r=t[1],i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(i,2),l=AV([n,r]),f=zm(l,2),u=f[0],h=f[1];if(u===-1/0||h===1/0){var m=h===1/0?[u].concat(AA(EA(0,i-1).map(function(){return 1/0}))):[].concat(AA(EA(0,i-1).map(function(){return-1/0})),[h]);return n>r?TA(m):m}if(u===h)return gwe(u,i,a);var v=PV(u,h,o,a),_=v.step,x=v.tickMin,w=v.tickMax,S=rw.rangeStep(x,w.add(new Qt(.1).mul(_)),_);return n>r?TA(S):S}function bwe(e,t){var n=zm(e,2),r=n[0],i=n[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=AV([r,i]),l=zm(o,2),f=l[0],u=l[1];if(f===-1/0||u===1/0)return[r,i];if(f===u)return[f];var h=Math.max(t,2),m=jV(new Qt(u).sub(f).div(h-1),a,0),v=[].concat(AA(rw.rangeStep(new Qt(f),new Qt(u).sub(new Qt(.99).mul(m)),m)),[u]);return r>i?TA(v):v}var wwe=EV(ywe),_we=EV(bwe),xwe="Invariant failed";function gc(e,t){throw new Error(xwe)}var Swe=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function bd(e){"@babel/helpers - typeof";return bd=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},bd(e)}function mb(){return mb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mb.apply(this,arguments)}function Owe(e,t){return Awe(e)||Twe(e,t)||Ewe(e,t)||Cwe()}function Cwe(){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 Ewe(e,t){if(e){if(typeof e=="string")return qI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qI(e,t)}}function qI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Twe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function Awe(e){if(Array.isArray(e))return e}function jwe(e,t){if(e==null)return{};var n=Pwe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Rwe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Mwe(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,NV(r.key),r)}}function Nwe(e,t,n){return t&&Mwe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lwe(e,t,n){return t=vb(t),Dwe(e,RV()?Reflect.construct(t,n||[],vb(e).constructor):t.apply(e,n))}function Dwe(e,t){if(t&&(bd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kwe(e)}function kwe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function RV(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(RV=function(){return!!e})()}function vb(e){return vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},vb(e)}function Iwe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&PA(e,t)}function PA(e,t){return PA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},PA(e,t)}function MV(e,t,n){return t=NV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NV(e){var t=$we(e,"string");return bd(t)=="symbol"?t:t+""}function $we(e,t){if(bd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(bd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ah=function(e){function t(){return Rwe(this,t),Lwe(this,t,arguments)}return Iwe(t,e),Nwe(t,[{key:"render",value:function(){var r=this.props,i=r.offset,a=r.layout,o=r.width,l=r.dataKey,f=r.data,u=r.dataPointFormatter,h=r.xAxis,m=r.yAxis,v=jwe(r,Swe),_=ot(v,!1);this.props.direction==="x"&&h.type!=="number"&&gc();var x=f.map(function(w){var S=u(w,l),O=S.x,C=S.y,T=S.value,j=S.errorVal;if(!j)return null;var P=[],R,$;if(Array.isArray(j)){var q=Owe(j,2);R=q[0],$=q[1]}else R=$=j;if(a==="vertical"){var K=h.scale,H=C+i,G=H+o,te=H-o,ie=K(T-R),X=K(T+$);P.push({x1:X,y1:G,x2:X,y2:te}),P.push({x1:ie,y1:H,x2:X,y2:H}),P.push({x1:ie,y1:G,x2:ie,y2:te})}else if(a==="horizontal"){var ee=m.scale,W=O+i,B=W-o,U=W+o,F=ee(T-R),M=ee(T+$);P.push({x1:B,y1:M,x2:U,y2:M}),P.push({x1:W,y1:F,x2:W,y2:M}),P.push({x1:B,y1:F,x2:U,y2:F})}return se.createElement(St,mb({className:"recharts-errorBar",key:"bar-".concat(P.map(function(I){return"".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))},_),P.map(function(I){return se.createElement("line",mb({},I,{key:"line-".concat(I.x1,"-").concat(I.x2,"-").concat(I.y1,"-").concat(I.y2)}))}))});return se.createElement(St,{className:"recharts-errorBars"},x)}}])}(se.Component);MV(ah,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});MV(ah,"displayName","ErrorBar");function Fm(e){"@babel/helpers - typeof";return Fm=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},Fm(e)}function VI(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 Du(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VI(Object(n),!0).forEach(function(r){Bwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Bwe(e,t,n){return t=Uwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uwe(e){var t=zwe(e,"string");return Fm(t)=="symbol"?t:t+""}function zwe(e,t){if(Fm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var LV=function(t){var n=t.children,r=t.formattedGraphicalItems,i=t.legendWidth,a=t.legendContent,o=Ei(n,Kf);if(!o)return null;var l=Kf.defaultProps,f=l!==void 0?Du(Du({},l),o.props):{},u;return o.props&&o.props.payload?u=o.props&&o.props.payload:a==="children"?u=(r||[]).reduce(function(h,m){var v=m.item,_=m.props,x=_.sectors||_.data||[];return h.concat(x.map(function(w){return{type:o.props.iconType||v.props.legendType,value:w.name,color:w.fill,payload:w}}))},[]):u=(r||[]).map(function(h){var m=h.item,v=m.type.defaultProps,_=v!==void 0?Du(Du({},v),m.props):{},x=_.dataKey,w=_.name,S=_.legendType,O=_.hide;return{inactive:O,dataKey:x,type:f.iconType||S||"square",color:LP(m),value:w||x,payload:_}}),Du(Du(Du({},f),Kf.getWithHeight(o,i)),{},{payload:u,item:o})};function qm(e){"@babel/helpers - typeof";return qm=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},qm(e)}function HI(e){return Hwe(e)||Vwe(e)||qwe(e)||Fwe()}function Fwe(){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 qwe(e,t){if(e){if(typeof e=="string")return RA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RA(e,t)}}function Vwe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Hwe(e){if(Array.isArray(e))return RA(e)}function RA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function WI(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?WI(Object(n),!0).forEach(function(r){Xf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):WI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xf(e,t,n){return t=Wwe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wwe(e){var t=Gwe(e,"string");return qm(t)=="symbol"?t:t+""}function Gwe(e,t){if(qm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mn(e,t,n){return pt(e)||pt(t)?n:Xn(t)?Ni(e,t,n):ht(t)?t(e):n}function em(e,t,n,r){var i=H1e(e,function(l){return mn(l,t)});if(n==="number"){var a=i.filter(function(l){return Xe(l)||parseFloat(l)});return a.length?[tw(a),jl(a)]:[1/0,-1/0]}var o=r?i.filter(function(l){return!pt(l)}):i;return o.map(function(l){return Xn(l)||l instanceof Date?l:""})}var Ywe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var f=a.range,u=0;u<l;u++){var h=u>0?i[u-1].coordinate:i[l-1].coordinate,m=i[u].coordinate,v=u>=l-1?i[0].coordinate:i[u+1].coordinate,_=void 0;if(Vr(m-h)!==Vr(v-m)){var x=[];if(Vr(v-m)===Vr(f[1]-f[0])){_=v;var w=m+f[1]-f[0];x[0]=Math.min(w,(w+h)/2),x[1]=Math.max(w,(w+h)/2)}else{_=h;var S=v+f[1]-f[0];x[0]=Math.min(m,(S+m)/2),x[1]=Math.max(m,(S+m)/2)}var O=[Math.min(m,(_+m)/2),Math.max(m,(_+m)/2)];if(t>O[0]&&t<=O[1]||t>=x[0]&&t<=x[1]){o=i[u].index;break}}else{var C=Math.min(h,v),T=Math.max(h,v);if(t>(C+m)/2&&t<=(T+m)/2){o=i[u].index;break}}}else for(var j=0;j<l;j++)if(j===0&&t<=(r[j].coordinate+r[j+1].coordinate)/2||j>0&&j<l-1&&t>(r[j].coordinate+r[j-1].coordinate)/2&&t<=(r[j].coordinate+r[j+1].coordinate)/2||j===l-1&&t>(r[j].coordinate+r[j-1].coordinate)/2){o=r[j].index;break}return o},LP=function(t){var n,r=t,i=r.type.displayName,a=(n=t.type)!==null&&n!==void 0&&n.defaultProps?jn(jn({},t.type.defaultProps),t.props):t.props,o=a.stroke,l=a.fill,f;switch(i){case"Line":f=o;break;case"Area":case"Radar":f=o&&o!=="none"?o:l;break;default:f=l;break}return f},Kwe=function(t){var n=t.barSize,r=t.totalSize,i=t.stackGroups,a=i===void 0?{}:i;if(!a)return{};for(var o={},l=Object.keys(a),f=0,u=l.length;f<u;f++)for(var h=a[l[f]].stackGroups,m=Object.keys(h),v=0,_=m.length;v<_;v++){var x=h[m[v]],w=x.items,S=x.cateAxisId,O=w.filter(function($){return as($.type).indexOf("Bar")>=0});if(O&&O.length){var C=O[0].type.defaultProps,T=C!==void 0?jn(jn({},C),O[0].props):O[0].props,j=T.barSize,P=T[S];o[P]||(o[P]=[]);var R=pt(j)?n:j;o[P].push({item:O[0],stackList:O.slice(1),barSize:pt(R)?void 0:Hr(R,r,0)})}}return o},Zwe=function(t){var n=t.barGap,r=t.barCategoryGap,i=t.bandSize,a=t.sizeList,o=a===void 0?[]:a,l=t.maxBarSize,f=o.length;if(f<1)return null;var u=Hr(n,i,0,!0),h,m=[];if(o[0].barSize===+o[0].barSize){var v=!1,_=i/f,x=o.reduce(function(j,P){return j+P.barSize||0},0);x+=(f-1)*u,x>=i&&(x-=(f-1)*u,u=0),x>=i&&_>0&&(v=!0,_*=.9,x=f*_);var w=(i-x)/2>>0,S={offset:w-u,size:0};h=o.reduce(function(j,P){var R={item:P.item,position:{offset:S.offset+S.size+u,size:v?_:P.barSize}},$=[].concat(HI(j),[R]);return S=$[$.length-1].position,P.stackList&&P.stackList.length&&P.stackList.forEach(function(q){$.push({item:q,position:S})}),$},m)}else{var O=Hr(r,i,0,!0);i-2*O-(f-1)*u<=0&&(u=0);var C=(i-2*O-(f-1)*u)/f;C>1&&(C>>=0);var T=l===+l?Math.min(C,l):C;h=o.reduce(function(j,P,R){var $=[].concat(HI(j),[{item:P.item,position:{offset:O+(C+u)*R+(C-T)/2,size:T}}]);return P.stackList&&P.stackList.length&&P.stackList.forEach(function(q){$.push({item:q,position:$[$.length-1].position})}),$},m)}return h},Xwe=function(t,n,r,i){var a=r.children,o=r.width,l=r.margin,f=o-(l.left||0)-(l.right||0),u=LV({children:a,legendWidth:f});if(u){var h=i||{},m=h.width,v=h.height,_=u.align,x=u.verticalAlign,w=u.layout;if((w==="vertical"||w==="horizontal"&&x==="middle")&&_!=="center"&&Xe(t[_]))return jn(jn({},t),{},Xf({},_,t[_]+(m||0)));if((w==="horizontal"||w==="vertical"&&_==="center")&&x!=="middle"&&Xe(t[x]))return jn(jn({},t),{},Xf({},x,t[x]+(v||0)))}return t},Qwe=function(t,n,r){return pt(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},DV=function(t,n,r,i,a){var o=n.props.children,l=Yr(o,ah).filter(function(u){return Qwe(i,a,u.props.direction)});if(l&&l.length){var f=l.map(function(u){return u.props.dataKey});return t.reduce(function(u,h){var m=mn(h,r);if(pt(m))return u;var v=Array.isArray(m)?[tw(m),jl(m)]:[m,m],_=f.reduce(function(x,w){var S=mn(h,w,0),O=v[0]-Math.abs(Array.isArray(S)?S[0]:S),C=v[1]+Math.abs(Array.isArray(S)?S[1]:S);return[Math.min(O,x[0]),Math.max(C,x[1])]},[1/0,-1/0]);return[Math.min(_[0],u[0]),Math.max(_[1],u[1])]},[1/0,-1/0])}return null},Jwe=function(t,n,r,i,a){var o=n.map(function(l){return DV(t,l,r,a,i)}).filter(function(l){return!pt(l)});return o&&o.length?o.reduce(function(l,f){return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]):null},kV=function(t,n,r,i,a){var o=n.map(function(f){var u=f.props.dataKey;return r==="number"&&u&&DV(t,f,u,i)||em(t,u,r,a)});if(r==="number")return o.reduce(function(f,u){return[Math.min(f[0],u[0]),Math.max(f[1],u[1])]},[1/0,-1/0]);var l={};return o.reduce(function(f,u){for(var h=0,m=u.length;h<m;h++)l[u[h]]||(l[u[h]]=!0,f.push(u[h]));return f},[])},IV=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},$V=function(t,n,r,i){if(i)return t.map(function(f){return f.coordinate});var a,o,l=t.map(function(f){return f.coordinate===n&&(a=!0),f.coordinate===r&&(o=!0),f.coordinate});return a||l.push(n),o||l.push(r),l},ns=function(t,n,r){if(!t)return null;var i=t.scale,a=t.duplicateDomain,o=t.type,l=t.range,f=t.realScaleType==="scaleBand"?i.bandwidth()/2:2,u=(n||r)&&o==="category"&&i.bandwidth?i.bandwidth()/f:0;if(u=t.axisType==="angleAxis"&&(l==null?void 0:l.length)>=2?Vr(l[0]-l[1])*2*u:u,n&&(t.ticks||t.niceTicks)){var h=(t.ticks||t.niceTicks).map(function(m){var v=a?a.indexOf(m):m;return{coordinate:i(v)+u,value:m,offset:u}});return h.filter(function(m){return!eh(m.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(m,v){return{coordinate:i(m)+u,value:m,index:v,offset:u}}):i.ticks&&!r?i.ticks(t.tickCount).map(function(m){return{coordinate:i(m)+u,value:m,offset:u}}):i.domain().map(function(m,v){return{coordinate:i(m)+u,value:a?a[m]:m,index:v,offset:u}})},AC=new WeakMap,Ry=function(t,n){if(typeof n!="function")return t;AC.has(t)||AC.set(t,new WeakMap);var r=AC.get(t);if(r.has(n))return r.get(n);var i=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,i),i},BV=function(t,n,r){var i=t.scale,a=t.type,o=t.layout,l=t.axisType;if(i==="auto")return o==="radial"&&l==="radiusAxis"?{scale:Dm(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:cb(),realScaleType:"linear"}:a==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:Jp(),realScaleType:"point"}:a==="category"?{scale:Dm(),realScaleType:"band"}:{scale:cb(),realScaleType:"linear"};if(pc(i)){var f="scale".concat(U1(i));return{scale:(RI[f]||Jp)(),realScaleType:RI[f]?f:"point"}}return ht(i)?{scale:i}:{scale:Jp(),realScaleType:"point"}},GI=1e-4,UV=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,i=t.range(),a=Math.min(i[0],i[1])-GI,o=Math.max(i[0],i[1])+GI,l=t(n[0]),f=t(n[r-1]);(l<a||l>o||f<a||f>o)&&t.domain([n[0],n[r-1]])}},e_e=function(t,n){if(!t)return null;for(var r=0,i=t.length;r<i;r++)if(t[r].item===n)return t[r].position;return null},t_e=function(t,n){if(!n||n.length!==2||!Xe(n[0])||!Xe(n[1]))return t;var r=Math.min(n[0],n[1]),i=Math.max(n[0],n[1]),a=[t[0],t[1]];return(!Xe(t[0])||t[0]<r)&&(a[0]=r),(!Xe(t[1])||t[1]>i)&&(a[1]=i),a[0]>i&&(a[0]=i),a[1]<r&&(a[1]=r),a},n_e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0,l=0;l<n;++l){var f=eh(t[l][r][1])?t[l][r][0]:t[l][r][1];f>=0?(t[l][r][0]=a,t[l][r][1]=a+f,a=t[l][r][1]):(t[l][r][0]=o,t[l][r][1]=o+f,o=t[l][r][1])}},r_e=function(t){var n=t.length;if(!(n<=0))for(var r=0,i=t[0].length;r<i;++r)for(var a=0,o=0;o<n;++o){var l=eh(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=a,t[o][r][1]=a+l,a=t[o][r][1]):(t[o][r][0]=0,t[o][r][1]=0)}},i_e={sign:n_e,expand:Vme,none:fd,silhouette:Hme,wiggle:Wme,positive:r_e},a_e=function(t,n,r){var i=n.map(function(l){return l.props.dataKey}),a=i_e[r],o=qme().keys(i).value(function(l,f){return+mn(l,f,0)}).order(sA).offset(a);return o(t)},o_e=function(t,n,r,i,a,o){if(!t)return null;var l=o?n.reverse():n,f={},u=l.reduce(function(m,v){var _,x=(_=v.type)!==null&&_!==void 0&&_.defaultProps?jn(jn({},v.type.defaultProps),v.props):v.props,w=x.stackId,S=x.hide;if(S)return m;var O=x[r],C=m[O]||{hasStack:!1,stackGroups:{}};if(Xn(w)){var T=C.stackGroups[w]||{numericAxisId:r,cateAxisId:i,items:[]};T.items.push(v),C.hasStack=!0,C.stackGroups[w]=T}else C.stackGroups[eu("_stackId_")]={numericAxisId:r,cateAxisId:i,items:[v]};return jn(jn({},m),{},Xf({},O,C))},f),h={};return Object.keys(u).reduce(function(m,v){var _=u[v];if(_.hasStack){var x={};_.stackGroups=Object.keys(_.stackGroups).reduce(function(w,S){var O=_.stackGroups[S];return jn(jn({},w),{},Xf({},S,{numericAxisId:r,cateAxisId:i,items:O.items,stackedData:a_e(t,O.items,a)}))},x)}return jn(jn({},m),{},Xf({},v,_))},h)},zV=function(t,n){var r=n.realScaleType,i=n.type,a=n.tickCount,o=n.originalDomain,l=n.allowDecimals,f=r||n.scale;if(f!=="auto"&&f!=="linear")return null;if(a&&i==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var u=t.domain();if(!u.length)return null;var h=wwe(u,a,l);return t.domain([tw(h),jl(h)]),{niceTicks:h}}if(a&&i==="number"){var m=t.domain(),v=_we(m,a,l);return{niceTicks:v}}return null};function wd(e){var t=e.axis,n=e.ticks,r=e.bandSize,i=e.entry,a=e.index,o=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!pt(i[t.dataKey])){var l=W0(n,"value",i[t.dataKey]);if(l)return l.coordinate+r/2}return n[a]?n[a].coordinate+r/2:null}var f=mn(i,pt(o)?t.dataKey:o);return pt(f)?null:t.scale(f)}var YI=function(t){var n=t.axis,r=t.ticks,i=t.offset,a=t.bandSize,o=t.entry,l=t.index;if(n.type==="category")return r[l]?r[l].coordinate+i:null;var f=mn(o,n.dataKey,n.domain[l]);return pt(f)?null:n.scale(f)-a/2+i},s_e=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var i=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);return i<=0&&a>=0?0:a<0?a:i}return r[0]},l_e=function(t,n){var r,i=(r=t.type)!==null&&r!==void 0&&r.defaultProps?jn(jn({},t.type.defaultProps),t.props):t.props,a=i.stackId;if(Xn(a)){var o=n[a];if(o){var l=o.items.indexOf(t);return l>=0?o.stackedData[l]:null}}return null},u_e=function(t){return t.reduce(function(n,r){return[tw(r.concat([n[0]]).filter(Xe)),jl(r.concat([n[1]]).filter(Xe))]},[1/0,-1/0])},FV=function(t,n,r){return Object.keys(t).reduce(function(i,a){var o=t[a],l=o.stackedData,f=l.reduce(function(u,h){var m=u_e(h.slice(n,r+1));return[Math.min(u[0],m[0]),Math.max(u[1],m[1])]},[1/0,-1/0]);return[Math.min(f[0],i[0]),Math.max(f[1],i[1])]},[1/0,-1/0]).map(function(i){return i===1/0||i===-1/0?0:i})},KI=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,ZI=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,MA=function(t,n,r){if(ht(t))return t(n,r);if(!Array.isArray(t))return n;var i=[];if(Xe(t[0]))i[0]=r?t[0]:Math.min(t[0],n[0]);else if(KI.test(t[0])){var a=+KI.exec(t[0])[1];i[0]=n[0]-a}else ht(t[0])?i[0]=t[0](n[0]):i[0]=n[0];if(Xe(t[1]))i[1]=r?t[1]:Math.max(t[1],n[1]);else if(ZI.test(t[1])){var o=+ZI.exec(t[1])[1];i[1]=n[1]+o}else ht(t[1])?i[1]=t[1](n[1]):i[1]=n[1];return i},gb=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var i=t.scale.bandwidth();if(!r||i>0)return i}if(t&&n&&n.length>=2){for(var a=lP(n,function(m){return m.coordinate}),o=1/0,l=1,f=a.length;l<f;l++){var u=a[l],h=a[l-1];o=Math.min((u.coordinate||0)-(h.coordinate||0),o)}return o===1/0?0:o}return r?void 0:0},XI=function(t,n,r){return!t||!t.length||Wl(t,Ni(r,"type.defaultProps.domain"))?n:t},qV=function(t,n){var r=t.type.defaultProps?jn(jn({},t.type.defaultProps),t.props):t.props,i=r.dataKey,a=r.name,o=r.unit,l=r.formatter,f=r.tooltipType,u=r.chartType,h=r.hide;return jn(jn({},ot(t,!1)),{},{dataKey:i,unit:o,formatter:l,name:a||i,color:LP(t),value:mn(n,i),type:f,payload:n,chartType:u,hide:h})};function Vm(e){"@babel/helpers - typeof";return Vm=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},Vm(e)}function QI(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 Jo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QI(Object(n),!0).forEach(function(r){VV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QI(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function VV(e,t,n){return t=c_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c_e(e){var t=f_e(e,"string");return Vm(t)=="symbol"?t:t+""}function f_e(e,t){if(Vm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function d_e(e,t){return v_e(e)||m_e(e,t)||p_e(e,t)||h_e()}function h_e(){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 p_e(e,t){if(e){if(typeof e=="string")return JI(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return JI(e,t)}}function JI(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function v_e(e){if(Array.isArray(e))return e}var yb=Math.PI/180,g_e=function(t){return t*180/Math.PI},dn=function(t,n,r,i){return{x:t+Math.cos(-yb*i)*r,y:n+Math.sin(-yb*i)*r}},HV=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},y_e=function(t,n,r,i,a){var o=t.width,l=t.height,f=t.startAngle,u=t.endAngle,h=Hr(t.cx,o,o/2),m=Hr(t.cy,l,l/2),v=HV(o,l,r),_=Hr(t.innerRadius,v,0),x=Hr(t.outerRadius,v,v*.8),w=Object.keys(n);return w.reduce(function(S,O){var C=n[O],T=C.domain,j=C.reversed,P;if(pt(C.range))i==="angleAxis"?P=[f,u]:i==="radiusAxis"&&(P=[_,x]),j&&(P=[P[1],P[0]]);else{P=C.range;var R=P,$=d_e(R,2);f=$[0],u=$[1]}var q=BV(C,a),K=q.realScaleType,H=q.scale;H.domain(T).range(P),UV(H);var G=zV(H,Jo(Jo({},C),{},{realScaleType:K})),te=Jo(Jo(Jo({},C),G),{},{range:P,radius:x,realScaleType:K,scale:H,cx:h,cy:m,innerRadius:_,outerRadius:x,startAngle:f,endAngle:u});return Jo(Jo({},S),{},VV({},O,te))},{})},b_e=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return Math.sqrt(Math.pow(r-a,2)+Math.pow(i-o,2))},w_e=function(t,n){var r=t.x,i=t.y,a=n.cx,o=n.cy,l=b_e({x:r,y:i},{x:a,y:o});if(l<=0)return{radius:l};var f=(r-a)/l,u=Math.acos(f);return i>o&&(u=2*Math.PI-u),{radius:l,angle:g_e(u),angleInRadian:u}},__e=function(t){var n=t.startAngle,r=t.endAngle,i=Math.floor(n/360),a=Math.floor(r/360),o=Math.min(i,a);return{startAngle:n-o*360,endAngle:r-o*360}},x_e=function(t,n){var r=n.startAngle,i=n.endAngle,a=Math.floor(r/360),o=Math.floor(i/360),l=Math.min(a,o);return t+l*360},e7=function(t,n){var r=t.x,i=t.y,a=w_e({x:r,y:i},n),o=a.radius,l=a.angle,f=n.innerRadius,u=n.outerRadius;if(o<f||o>u)return!1;if(o===0)return!0;var h=__e(n),m=h.startAngle,v=h.endAngle,_=l,x;if(m<=v){for(;_>v;)_-=360;for(;_<m;)_+=360;x=_>=m&&_<=v}else{for(;_>m;)_-=360;for(;_<v;)_+=360;x=_>=v&&_<=m}return x?Jo(Jo({},n),{},{radius:o,angle:x_e(_,n)}):null},WV=function(t){return!D.isValidElement(t)&&!ht(t)&&typeof t!="boolean"?t.className:""};function Hm(e){"@babel/helpers - typeof";return Hm=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},Hm(e)}var S_e=["offset"];function O_e(e){return A_e(e)||T_e(e)||E_e(e)||C_e()}function C_e(){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 E_e(e,t){if(e){if(typeof e=="string")return NA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return NA(e,t)}}function T_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A_e(e){if(Array.isArray(e))return NA(e)}function NA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j_e(e,t){if(e==null)return{};var n=P_e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function P_e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function t7(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 Zn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t7(Object(n),!0).forEach(function(r){R_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function R_e(e,t,n){return t=M_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function M_e(e){var t=N_e(e,"string");return Hm(t)=="symbol"?t:t+""}function N_e(e,t){if(Hm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Wm(){return Wm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Wm.apply(this,arguments)}var L_e=function(t){var n=t.value,r=t.formatter,i=pt(t.children)?n:t.children;return ht(r)?r(i):i},D_e=function(t,n){var r=Vr(n-t),i=Math.min(Math.abs(n-t),360);return r*i},k_e=function(t,n,r){var i=t.position,a=t.viewBox,o=t.offset,l=t.className,f=a,u=f.cx,h=f.cy,m=f.innerRadius,v=f.outerRadius,_=f.startAngle,x=f.endAngle,w=f.clockWise,S=(m+v)/2,O=D_e(_,x),C=O>=0?1:-1,T,j;i==="insideStart"?(T=_+C*o,j=w):i==="insideEnd"?(T=x-C*o,j=!w):i==="end"&&(T=x+C*o,j=w),j=O<=0?j:!j;var P=dn(u,h,S,T),R=dn(u,h,S,T+(j?1:-1)*359),$="M".concat(P.x,",").concat(P.y,`
A`).concat(S,",").concat(S,",0,1,").concat(j?0:1,`,
`).concat(R.x,",").concat(R.y),q=pt(t.id)?eu("recharts-radial-line-"):t.id;return se.createElement("text",Wm({},r,{dominantBaseline:"central",className:Ce("recharts-radial-bar-label",l)}),se.createElement("defs",null,se.createElement("path",{id:q,d:$})),se.createElement("textPath",{xlinkHref:"#".concat(q)},n))},I_e=function(t){var n=t.viewBox,r=t.offset,i=t.position,a=n,o=a.cx,l=a.cy,f=a.innerRadius,u=a.outerRadius,h=a.startAngle,m=a.endAngle,v=(h+m)/2;if(i==="outside"){var _=dn(o,l,u+r,v),x=_.x,w=_.y;return{x,y:w,textAnchor:x>=o?"start":"end",verticalAnchor:"middle"}}if(i==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(i==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(i==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var S=(f+u)/2,O=dn(o,l,S,v),C=O.x,T=O.y;return{x:C,y:T,textAnchor:"middle",verticalAnchor:"middle"}},$_e=function(t){var n=t.viewBox,r=t.parentViewBox,i=t.offset,a=t.position,o=n,l=o.x,f=o.y,u=o.width,h=o.height,m=h>=0?1:-1,v=m*i,_=m>0?"end":"start",x=m>0?"start":"end",w=u>=0?1:-1,S=w*i,O=w>0?"end":"start",C=w>0?"start":"end";if(a==="top"){var T={x:l+u/2,y:f-m*i,textAnchor:"middle",verticalAnchor:_};return Zn(Zn({},T),r?{height:Math.max(f-r.y,0),width:u}:{})}if(a==="bottom"){var j={x:l+u/2,y:f+h+v,textAnchor:"middle",verticalAnchor:x};return Zn(Zn({},j),r?{height:Math.max(r.y+r.height-(f+h),0),width:u}:{})}if(a==="left"){var P={x:l-S,y:f+h/2,textAnchor:O,verticalAnchor:"middle"};return Zn(Zn({},P),r?{width:Math.max(P.x-r.x,0),height:h}:{})}if(a==="right"){var R={x:l+u+S,y:f+h/2,textAnchor:C,verticalAnchor:"middle"};return Zn(Zn({},R),r?{width:Math.max(r.x+r.width-R.x,0),height:h}:{})}var $=r?{width:u,height:h}:{};return a==="insideLeft"?Zn({x:l+S,y:f+h/2,textAnchor:C,verticalAnchor:"middle"},$):a==="insideRight"?Zn({x:l+u-S,y:f+h/2,textAnchor:O,verticalAnchor:"middle"},$):a==="insideTop"?Zn({x:l+u/2,y:f+v,textAnchor:"middle",verticalAnchor:x},$):a==="insideBottom"?Zn({x:l+u/2,y:f+h-v,textAnchor:"middle",verticalAnchor:_},$):a==="insideTopLeft"?Zn({x:l+S,y:f+v,textAnchor:C,verticalAnchor:x},$):a==="insideTopRight"?Zn({x:l+u-S,y:f+v,textAnchor:O,verticalAnchor:x},$):a==="insideBottomLeft"?Zn({x:l+S,y:f+h-v,textAnchor:C,verticalAnchor:_},$):a==="insideBottomRight"?Zn({x:l+u-S,y:f+h-v,textAnchor:O,verticalAnchor:_},$):Jd(a)&&(Xe(a.x)||Zu(a.x))&&(Xe(a.y)||Zu(a.y))?Zn({x:l+Hr(a.x,u),y:f+Hr(a.y,h),textAnchor:"end",verticalAnchor:"end"},$):Zn({x:l+u/2,y:f+h/2,textAnchor:"middle",verticalAnchor:"middle"},$)},B_e=function(t){return"cx"in t&&Xe(t.cx)};function cr(e){var t=e.offset,n=t===void 0?5:t,r=j_e(e,S_e),i=Zn({offset:n},r),a=i.viewBox,o=i.position,l=i.value,f=i.children,u=i.content,h=i.className,m=h===void 0?"":h,v=i.textBreakAll;if(!a||pt(l)&&pt(f)&&!D.isValidElement(u)&&!ht(u))return null;if(D.isValidElement(u))return D.cloneElement(u,i);var _;if(ht(u)){if(_=D.createElement(u,i),D.isValidElement(_))return _}else _=L_e(i);var x=B_e(a),w=ot(i,!0);if(x&&(o==="insideStart"||o==="insideEnd"||o==="end"))return k_e(i,_,w);var S=x?I_e(i):$_e(i);return se.createElement(mc,Wm({className:Ce("recharts-label",m)},w,S,{breakAll:v}),_)}cr.displayName="Label";var GV=function(t){var n=t.cx,r=t.cy,i=t.angle,a=t.startAngle,o=t.endAngle,l=t.r,f=t.radius,u=t.innerRadius,h=t.outerRadius,m=t.x,v=t.y,_=t.top,x=t.left,w=t.width,S=t.height,O=t.clockWise,C=t.labelViewBox;if(C)return C;if(Xe(w)&&Xe(S)){if(Xe(m)&&Xe(v))return{x:m,y:v,width:w,height:S};if(Xe(_)&&Xe(x))return{x:_,y:x,width:w,height:S}}return Xe(m)&&Xe(v)?{x:m,y:v,width:0,height:0}:Xe(n)&&Xe(r)?{cx:n,cy:r,startAngle:a||i||0,endAngle:o||i||0,innerRadius:u||0,outerRadius:h||f||l||0,clockWise:O}:t.viewBox?t.viewBox:{}},U_e=function(t,n){return t?t===!0?se.createElement(cr,{key:"label-implicit",viewBox:n}):Xn(t)?se.createElement(cr,{key:"label-implicit",viewBox:n,value:t}):D.isValidElement(t)?t.type===cr?D.cloneElement(t,{key:"label-implicit",viewBox:n}):se.createElement(cr,{key:"label-implicit",content:t,viewBox:n}):ht(t)?se.createElement(cr,{key:"label-implicit",content:t,viewBox:n}):Jd(t)?se.createElement(cr,Wm({viewBox:n},t,{key:"label-implicit"})):null:null},z_e=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var i=t.children,a=GV(t),o=Yr(i,cr).map(function(f,u){return D.cloneElement(f,{viewBox:n||a,key:"label-".concat(u)})});if(!r)return o;var l=U_e(t.label,n||a);return[l].concat(O_e(o))};cr.parseViewBox=GV;cr.renderCallByParent=z_e;var jC,n7;function F_e(){if(n7)return jC;n7=1;function e(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}return jC=e,jC}var q_e=F_e();const V_e=Nt(q_e);function Gm(e){"@babel/helpers - typeof";return Gm=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},Gm(e)}var H_e=["valueAccessor"],W_e=["data","dataKey","clockWise","id","textBreakAll"];function G_e(e){return X_e(e)||Z_e(e)||K_e(e)||Y_e()}function Y_e(){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 K_e(e,t){if(e){if(typeof e=="string")return LA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LA(e,t)}}function Z_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X_e(e){if(Array.isArray(e))return LA(e)}function LA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function bb(){return bb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bb.apply(this,arguments)}function r7(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 i7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r7(Object(n),!0).forEach(function(r){Q_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Q_e(e,t,n){return t=J_e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J_e(e){var t=exe(e,"string");return Gm(t)=="symbol"?t:t+""}function exe(e,t){if(Gm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a7(e,t){if(e==null)return{};var n=txe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function txe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var nxe=function(t){return Array.isArray(t.value)?V_e(t.value):t.value};function ja(e){var t=e.valueAccessor,n=t===void 0?nxe:t,r=a7(e,H_e),i=r.data,a=r.dataKey,o=r.clockWise,l=r.id,f=r.textBreakAll,u=a7(r,W_e);return!i||!i.length?null:se.createElement(St,{className:"recharts-label-list"},i.map(function(h,m){var v=pt(a)?n(h,m):mn(h&&h.payload,a),_=pt(l)?{}:{id:"".concat(l,"-").concat(m)};return se.createElement(cr,bb({},ot(h,!0),u,_,{parentViewBox:h.parentViewBox,value:v,textBreakAll:f,viewBox:cr.parseViewBox(pt(o)?h:i7(i7({},h),{},{clockWise:o})),key:"label-".concat(m),index:m}))}))}ja.displayName="LabelList";function rxe(e,t){return e?e===!0?se.createElement(ja,{key:"labelList-implicit",data:t}):se.isValidElement(e)||ht(e)?se.createElement(ja,{key:"labelList-implicit",data:t,content:e}):Jd(e)?se.createElement(ja,bb({data:t},e,{key:"labelList-implicit"})):null:null}function ixe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,i=Yr(r,ja).map(function(o,l){return D.cloneElement(o,{data:t,key:"labelList-".concat(l)})});if(!n)return i;var a=rxe(e.label,t);return[a].concat(G_e(i))}ja.renderCallByParent=ixe;function Ym(e){"@babel/helpers - typeof";return Ym=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},Ym(e)}function DA(){return DA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DA.apply(this,arguments)}function o7(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 s7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o7(Object(n),!0).forEach(function(r){axe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function axe(e,t,n){return t=oxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oxe(e){var t=sxe(e,"string");return Ym(t)=="symbol"?t:t+""}function sxe(e,t){if(Ym(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ym(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lxe=function(t,n){var r=Vr(n-t),i=Math.min(Math.abs(n-t),359.999);return r*i},My=function(t){var n=t.cx,r=t.cy,i=t.radius,a=t.angle,o=t.sign,l=t.isExternal,f=t.cornerRadius,u=t.cornerIsExternal,h=f*(l?1:-1)+i,m=Math.asin(f/h)/yb,v=u?a:a+o*m,_=dn(n,r,h,v),x=dn(n,r,i,v),w=u?a-o*m:a,S=dn(n,r,h*Math.cos(m*yb),w);return{center:_,circleTangency:x,lineTangency:S,theta:m}},YV=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.startAngle,l=t.endAngle,f=lxe(o,l),u=o+f,h=dn(n,r,a,o),m=dn(n,r,a,u),v="M ".concat(h.x,",").concat(h.y,`
A `).concat(a,",").concat(a,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(o>u),`,
`).concat(m.x,",").concat(m.y,`
`);if(i>0){var _=dn(n,r,i,o),x=dn(n,r,i,u);v+="L ".concat(x.x,",").concat(x.y,`
A `).concat(i,",").concat(i,`,0,
`).concat(+(Math.abs(f)>180),",").concat(+(o<=u),`,
`).concat(_.x,",").concat(_.y," Z")}else v+="L ".concat(n,",").concat(r," Z");return v},uxe=function(t){var n=t.cx,r=t.cy,i=t.innerRadius,a=t.outerRadius,o=t.cornerRadius,l=t.forceCornerRadius,f=t.cornerIsExternal,u=t.startAngle,h=t.endAngle,m=Vr(h-u),v=My({cx:n,cy:r,radius:a,angle:u,sign:m,cornerRadius:o,cornerIsExternal:f}),_=v.circleTangency,x=v.lineTangency,w=v.theta,S=My({cx:n,cy:r,radius:a,angle:h,sign:-m,cornerRadius:o,cornerIsExternal:f}),O=S.circleTangency,C=S.lineTangency,T=S.theta,j=f?Math.abs(u-h):Math.abs(u-h)-w-T;if(j<0)return l?"M ".concat(x.x,",").concat(x.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
`):YV({cx:n,cy:r,innerRadius:i,outerRadius:a,startAngle:u,endAngle:h});var P="M ".concat(x.x,",").concat(x.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(_.x,",").concat(_.y,`
A`).concat(a,",").concat(a,",0,").concat(+(j>180),",").concat(+(m<0),",").concat(O.x,",").concat(O.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(C.x,",").concat(C.y,`
`);if(i>0){var R=My({cx:n,cy:r,radius:i,angle:u,sign:m,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),$=R.circleTangency,q=R.lineTangency,K=R.theta,H=My({cx:n,cy:r,radius:i,angle:h,sign:-m,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),G=H.circleTangency,te=H.lineTangency,ie=H.theta,X=f?Math.abs(u-h):Math.abs(u-h)-K-ie;if(X<0&&o===0)return"".concat(P,"L").concat(n,",").concat(r,"Z");P+="L".concat(te.x,",").concat(te.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(G.x,",").concat(G.y,`
A`).concat(i,",").concat(i,",0,").concat(+(X>180),",").concat(+(m>0),",").concat($.x,",").concat($.y,`
A`).concat(o,",").concat(o,",0,0,").concat(+(m<0),",").concat(q.x,",").concat(q.y,"Z")}else P+="L".concat(n,",").concat(r,"Z");return P},cxe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},KV=function(t){var n=s7(s7({},cxe),t),r=n.cx,i=n.cy,a=n.innerRadius,o=n.outerRadius,l=n.cornerRadius,f=n.forceCornerRadius,u=n.cornerIsExternal,h=n.startAngle,m=n.endAngle,v=n.className;if(o<a||h===m)return null;var _=Ce("recharts-sector",v),x=o-a,w=Hr(l,x,0,!0),S;return w>0&&Math.abs(h-m)<360?S=uxe({cx:r,cy:i,innerRadius:a,outerRadius:o,cornerRadius:Math.min(w,x/2),forceCornerRadius:f,cornerIsExternal:u,startAngle:h,endAngle:m}):S=YV({cx:r,cy:i,innerRadius:a,outerRadius:o,startAngle:h,endAngle:m}),se.createElement("path",DA({},ot(n,!0),{className:_,d:S,role:"img"}))};function Km(e){"@babel/helpers - typeof";return Km=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},Km(e)}function kA(){return kA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kA.apply(this,arguments)}function l7(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 u7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?l7(Object(n),!0).forEach(function(r){fxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fxe(e,t,n){return t=dxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dxe(e){var t=hxe(e,"string");return Km(t)=="symbol"?t:t+""}function hxe(e,t){if(Km(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Km(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var c7={curveBasisClosed:Mme,curveBasisOpen:Nme,curveBasis:Rme,curveBumpX:gme,curveBumpY:yme,curveLinearClosed:Lme,curveLinear:F1,curveMonotoneX:Dme,curveMonotoneY:kme,curveNatural:Ime,curveStep:$me,curveStepAfter:Ume,curveStepBefore:Bme},Ny=function(t){return t.x===+t.x&&t.y===+t.y},Ap=function(t){return t.x},jp=function(t){return t.y},pxe=function(t,n){if(ht(t))return t;var r="curve".concat(U1(t));return(r==="curveMonotone"||r==="curveBump")&&n?c7["".concat(r).concat(n==="vertical"?"Y":"X")]:c7[r]||F1},mxe=function(t){var n=t.type,r=n===void 0?"linear":n,i=t.points,a=i===void 0?[]:i,o=t.baseLine,l=t.layout,f=t.connectNulls,u=f===void 0?!1:f,h=pxe(r,l),m=u?a.filter(function(w){return Ny(w)}):a,v;if(Array.isArray(o)){var _=u?o.filter(function(w){return Ny(w)}):o,x=m.map(function(w,S){return u7(u7({},w),{},{base:_[S]})});return l==="vertical"?v=Oy().y(jp).x1(Ap).x0(function(w){return w.base.x}):v=Oy().x(Ap).y1(jp).y0(function(w){return w.base.y}),v.defined(Ny).curve(h),v(x)}return l==="vertical"&&Xe(o)?v=Oy().y(jp).x1(Ap).x0(o):Xe(o)?v=Oy().x(Ap).y1(jp).y0(o):v=GF().x(Ap).y(jp),v.defined(Ny).curve(h),v(m)},kl=function(t){var n=t.className,r=t.points,i=t.path,a=t.pathRef;if((!r||!r.length)&&!i)return null;var o=r&&r.length?mxe(t):i;return se.createElement("path",kA({},ot(t,!1),G0(t),{className:Ce("recharts-curve",n),d:o,ref:a}))},vxe=Object.getOwnPropertyNames,gxe=Object.getOwnPropertySymbols,yxe=Object.prototype.hasOwnProperty;function f7(e,t){return function(r,i,a){return e(r,i,a)&&t(r,i,a)}}function Ly(e){return function(n,r,i){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,i);var a=i.cache,o=a.get(n),l=a.get(r);if(o&&l)return o===r&&l===n;a.set(n,r),a.set(r,n);var f=e(n,r,i);return a.delete(n),a.delete(r),f}}function d7(e){return vxe(e).concat(gxe(e))}var bxe=Object.hasOwn||function(e,t){return yxe.call(e,t)};function Tc(e,t){return e===t||!e&&!t&&e!==e&&t!==t}var wxe="__v",_xe="__o",xxe="_owner",h7=Object.getOwnPropertyDescriptor,p7=Object.keys;function Sxe(e,t,n){var r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function Oxe(e,t){return Tc(e.getTime(),t.getTime())}function Cxe(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function Exe(e,t){return e===t}function m7(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.entries(),o,l,f=0;(o=a.next())&&!o.done;){for(var u=t.entries(),h=!1,m=0;(l=u.next())&&!l.done;){if(i[m]){m++;continue}var v=o.value,_=l.value;if(n.equals(v[0],_[0],f,m,e,t,n)&&n.equals(v[1],_[1],v[0],_[0],e,t,n)){h=i[m]=!0;break}m++}if(!h)return!1;f++}return!0}var Txe=Tc;function Axe(e,t,n){var r=p7(e),i=r.length;if(p7(t).length!==i)return!1;for(;i-- >0;)if(!ZV(e,t,n,r[i]))return!1;return!0}function Pp(e,t,n){var r=d7(e),i=r.length;if(d7(t).length!==i)return!1;for(var a,o,l;i-- >0;)if(a=r[i],!ZV(e,t,n,a)||(o=h7(e,a),l=h7(t,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function jxe(e,t){return Tc(e.valueOf(),t.valueOf())}function Pxe(e,t){return e.source===t.source&&e.flags===t.flags}function v7(e,t,n){var r=e.size;if(r!==t.size)return!1;if(!r)return!0;for(var i=new Array(r),a=e.values(),o,l;(o=a.next())&&!o.done;){for(var f=t.values(),u=!1,h=0;(l=f.next())&&!l.done;){if(!i[h]&&n.equals(o.value,l.value,o.value,l.value,e,t,n)){u=i[h]=!0;break}h++}if(!u)return!1}return!0}function Rxe(e,t){var n=e.length;if(t.length!==n)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function Mxe(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function ZV(e,t,n,r){return(r===xxe||r===_xe||r===wxe)&&(e.$$typeof||t.$$typeof)?!0:bxe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}var Nxe="[object Arguments]",Lxe="[object Boolean]",Dxe="[object Date]",kxe="[object Error]",Ixe="[object Map]",$xe="[object Number]",Bxe="[object Object]",Uxe="[object RegExp]",zxe="[object Set]",Fxe="[object String]",qxe="[object URL]",Vxe=Array.isArray,g7=typeof ArrayBuffer=="function"&&ArrayBuffer.isView?ArrayBuffer.isView:null,y7=Object.assign,Hxe=Object.prototype.toString.call.bind(Object.prototype.toString);function Wxe(e){var t=e.areArraysEqual,n=e.areDatesEqual,r=e.areErrorsEqual,i=e.areFunctionsEqual,a=e.areMapsEqual,o=e.areNumbersEqual,l=e.areObjectsEqual,f=e.arePrimitiveWrappersEqual,u=e.areRegExpsEqual,h=e.areSetsEqual,m=e.areTypedArraysEqual,v=e.areUrlsEqual;return function(x,w,S){if(x===w)return!0;if(x==null||w==null)return!1;var O=typeof x;if(O!==typeof w)return!1;if(O!=="object")return O==="number"?o(x,w,S):O==="function"?i(x,w,S):!1;var C=x.constructor;if(C!==w.constructor)return!1;if(C===Object)return l(x,w,S);if(Vxe(x))return t(x,w,S);if(g7!=null&&g7(x))return m(x,w,S);if(C===Date)return n(x,w,S);if(C===RegExp)return u(x,w,S);if(C===Map)return a(x,w,S);if(C===Set)return h(x,w,S);var T=Hxe(x);return T===Dxe?n(x,w,S):T===Uxe?u(x,w,S):T===Ixe?a(x,w,S):T===zxe?h(x,w,S):T===Bxe?typeof x.then!="function"&&typeof w.then!="function"&&l(x,w,S):T===qxe?v(x,w,S):T===kxe?r(x,w,S):T===Nxe?l(x,w,S):T===Lxe||T===$xe||T===Fxe?f(x,w,S):!1}}function Gxe(e){var t=e.circular,n=e.createCustomConfig,r=e.strict,i={areArraysEqual:r?Pp:Sxe,areDatesEqual:Oxe,areErrorsEqual:Cxe,areFunctionsEqual:Exe,areMapsEqual:r?f7(m7,Pp):m7,areNumbersEqual:Txe,areObjectsEqual:r?Pp:Axe,arePrimitiveWrappersEqual:jxe,areRegExpsEqual:Pxe,areSetsEqual:r?f7(v7,Pp):v7,areTypedArraysEqual:r?Pp:Rxe,areUrlsEqual:Mxe};if(n&&(i=y7({},i,n(i))),t){var a=Ly(i.areArraysEqual),o=Ly(i.areMapsEqual),l=Ly(i.areObjectsEqual),f=Ly(i.areSetsEqual);i=y7({},i,{areArraysEqual:a,areMapsEqual:o,areObjectsEqual:l,areSetsEqual:f})}return i}function Yxe(e){return function(t,n,r,i,a,o,l){return e(t,n,l)}}function Kxe(e){var t=e.circular,n=e.comparator,r=e.createState,i=e.equals,a=e.strict;if(r)return function(f,u){var h=r(),m=h.cache,v=m===void 0?t?new WeakMap:void 0:m,_=h.meta;return n(f,u,{cache:v,equals:i,meta:_,strict:a})};if(t)return function(f,u){return n(f,u,{cache:new WeakMap,equals:i,meta:void 0,strict:a})};var o={cache:void 0,equals:i,meta:void 0,strict:a};return function(f,u){return n(f,u,o)}}var Zxe=ru();ru({strict:!0});ru({circular:!0});ru({circular:!0,strict:!0});ru({createInternalComparator:function(){return Tc}});ru({strict:!0,createInternalComparator:function(){return Tc}});ru({circular:!0,createInternalComparator:function(){return Tc}});ru({circular:!0,createInternalComparator:function(){return Tc},strict:!0});function ru(e){e===void 0&&(e={});var t=e.circular,n=t===void 0?!1:t,r=e.createInternalComparator,i=e.createState,a=e.strict,o=a===void 0?!1:a,l=Gxe(e),f=Wxe(l),u=r?r(f):Yxe(f);return Kxe({circular:n,comparator:f,createState:i,equals:u,strict:o})}function Xxe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function b7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function i(a){n<0&&(n=a),a-n>t?(e(a),n=-1):Xxe(i)};requestAnimationFrame(r)}function IA(e){"@babel/helpers - typeof";return IA=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},IA(e)}function Qxe(e){return n2e(e)||t2e(e)||e2e(e)||Jxe()}function Jxe(){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 e2e(e,t){if(e){if(typeof e=="string")return w7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w7(e,t)}}function w7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function t2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function n2e(e){if(Array.isArray(e))return e}function r2e(){var e={},t=function(){return null},n=!1,r=function i(a){if(!n){if(Array.isArray(a)){if(!a.length)return;var o=a,l=Qxe(o),f=l[0],u=l.slice(1);if(typeof f=="number"){b7(i.bind(null,u),f);return}i(f),b7(i.bind(null,u));return}IA(a)==="object"&&(e=a,t(e)),typeof a=="function"&&a()}};return{stop:function(){n=!0},start:function(a){n=!1,r(a)},subscribe:function(a){return t=a,function(){t=function(){return null}}}}}function Zm(e){"@babel/helpers - typeof";return Zm=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},Zm(e)}function _7(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 x7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_7(Object(n),!0).forEach(function(r){XV(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XV(e,t,n){return t=i2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i2e(e){var t=a2e(e,"string");return Zm(t)==="symbol"?t:String(t)}function a2e(e,t){if(Zm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var o2e=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,i){return r.filter(function(a){return i.includes(a)})})},s2e=function(t){return t},l2e=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},tm=function(t,n){return Object.keys(n).reduce(function(r,i){return x7(x7({},r),{},XV({},i,t(i,n[i])))},{})},S7=function(t,n,r){return t.map(function(i){return"".concat(l2e(i)," ").concat(n,"ms ").concat(r)}).join(",")};function u2e(e,t){return d2e(e)||f2e(e,t)||QV(e,t)||c2e()}function c2e(){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 f2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function d2e(e){if(Array.isArray(e))return e}function h2e(e){return v2e(e)||m2e(e)||QV(e)||p2e()}function p2e(){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 QV(e,t){if(e){if(typeof e=="string")return $A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $A(e,t)}}function m2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function v2e(e){if(Array.isArray(e))return $A(e)}function $A(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var wb=1e-4,JV=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},eH=function(t,n){return t.map(function(r,i){return r*Math.pow(n,i)}).reduce(function(r,i){return r+i})},O7=function(t,n){return function(r){var i=JV(t,n);return eH(i,r)}},g2e=function(t,n){return function(r){var i=JV(t,n),a=[].concat(h2e(i.map(function(o,l){return o*l}).slice(1)),[0]);return eH(a,r)}},C7=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0],a=n[1],o=n[2],l=n[3];if(n.length===1)switch(n[0]){case"linear":i=0,a=0,o=1,l=1;break;case"ease":i=.25,a=.1,o=.25,l=1;break;case"ease-in":i=.42,a=0,o=1,l=1;break;case"ease-out":i=.42,a=0,o=.58,l=1;break;case"ease-in-out":i=0,a=0,o=.58,l=1;break;default:{var f=n[0].split("(");if(f[0]==="cubic-bezier"&&f[1].split(")")[0].split(",").length===4){var u=f[1].split(")")[0].split(",").map(function(S){return parseFloat(S)}),h=u2e(u,4);i=h[0],a=h[1],o=h[2],l=h[3]}}}var m=O7(i,o),v=O7(a,l),_=g2e(i,o),x=function(O){return O>1?1:O<0?0:O},w=function(O){for(var C=O>1?1:O,T=C,j=0;j<8;++j){var P=m(T)-C,R=_(T);if(Math.abs(P-C)<wb||R<wb)return v(T);T=x(T-P/R)}return v(T)};return w.isStepper=!1,w},y2e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,i=t.damping,a=i===void 0?8:i,o=t.dt,l=o===void 0?17:o,f=function(h,m,v){var _=-(h-m)*r,x=v*a,w=v+(_-x)*l/1e3,S=v*l/1e3+h;return Math.abs(S-m)<wb&&Math.abs(w)<wb?[m,0]:[S,w]};return f.isStepper=!0,f.dt=l,f},b2e=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(typeof i=="string")switch(i){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return C7(i);case"spring":return y2e();default:if(i.split("(")[0]==="cubic-bezier")return C7(i)}return typeof i=="function"?i:null};function Xm(e){"@babel/helpers - typeof";return Xm=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},Xm(e)}function E7(e){return x2e(e)||_2e(e)||tH(e)||w2e()}function w2e(){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 _2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function x2e(e){if(Array.isArray(e))return UA(e)}function T7(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 xr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T7(Object(n),!0).forEach(function(r){BA(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BA(e,t,n){return t=S2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S2e(e){var t=O2e(e,"string");return Xm(t)==="symbol"?t:String(t)}function O2e(e,t){if(Xm(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Xm(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function C2e(e,t){return A2e(e)||T2e(e,t)||tH(e,t)||E2e()}function E2e(){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 tH(e,t){if(e){if(typeof e=="string")return UA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return UA(e,t)}}function UA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function T2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function A2e(e){if(Array.isArray(e))return e}var _b=function(t,n,r){return t+(n-t)*r},zA=function(t){var n=t.from,r=t.to;return n!==r},j2e=function e(t,n,r){var i=tm(function(a,o){if(zA(o)){var l=t(o.from,o.to,o.velocity),f=C2e(l,2),u=f[0],h=f[1];return xr(xr({},o),{},{from:u,velocity:h})}return o},n);return r<1?tm(function(a,o){return zA(o)?xr(xr({},o),{},{velocity:_b(o.velocity,i[a].velocity,r),from:_b(o.from,i[a].from,r)}):o},n):e(t,i,r-1)};const P2e=function(e,t,n,r,i){var a=o2e(e,t),o=a.reduce(function(S,O){return xr(xr({},S),{},BA({},O,[e[O],t[O]]))},{}),l=a.reduce(function(S,O){return xr(xr({},S),{},BA({},O,{from:e[O],velocity:0,to:t[O]}))},{}),f=-1,u,h,m=function(){return null},v=function(){return tm(function(O,C){return C.from},l)},_=function(){return!Object.values(l).filter(zA).length},x=function(O){u||(u=O);var C=O-u,T=C/n.dt;l=j2e(n,l,T),i(xr(xr(xr({},e),t),v())),u=O,_()||(f=requestAnimationFrame(m))},w=function(O){h||(h=O);var C=(O-h)/r,T=tm(function(P,R){return _b.apply(void 0,E7(R).concat([n(C)]))},o);if(i(xr(xr(xr({},e),t),T)),C<1)f=requestAnimationFrame(m);else{var j=tm(function(P,R){return _b.apply(void 0,E7(R).concat([n(1)]))},o);i(xr(xr(xr({},e),t),j))}};return m=n.isStepper?x:w,function(){return requestAnimationFrame(m),function(){cancelAnimationFrame(f)}}};function _d(e){"@babel/helpers - typeof";return _d=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},_d(e)}var R2e=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function M2e(e,t){if(e==null)return{};var n=N2e(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function N2e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function PC(e){return I2e(e)||k2e(e)||D2e(e)||L2e()}function L2e(){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 D2e(e,t){if(e){if(typeof e=="string")return FA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FA(e,t)}}function k2e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function I2e(e){if(Array.isArray(e))return FA(e)}function FA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function A7(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 Sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A7(Object(n),!0).forEach(function(r){Fp(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Fp(e,t,n){return t=nH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $2e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B2e(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,nH(r.key),r)}}function U2e(e,t,n){return t&&B2e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nH(e){var t=z2e(e,"string");return _d(t)==="symbol"?t:String(t)}function z2e(e,t){if(_d(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_d(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function F2e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&qA(e,t)}function qA(e,t){return qA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},qA(e,t)}function q2e(e){var t=V2e();return function(){var r=xb(e),i;if(t){var a=xb(this).constructor;i=Reflect.construct(r,arguments,a)}else i=r.apply(this,arguments);return VA(this,i)}}function VA(e,t){if(t&&(_d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return HA(e)}function HA(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function V2e(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xb(e){return xb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},xb(e)}var fa=function(e){F2e(n,e);var t=q2e(n);function n(r,i){var a;$2e(this,n),a=t.call(this,r,i);var o=a.props,l=o.isActive,f=o.attributeName,u=o.from,h=o.to,m=o.steps,v=o.children,_=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(HA(a)),a.changeStyle=a.changeStyle.bind(HA(a)),!l||_<=0)return a.state={style:{}},typeof v=="function"&&(a.state={style:h}),VA(a);if(m&&m.length)a.state={style:m[0].style};else if(u){if(typeof v=="function")return a.state={style:u},VA(a);a.state={style:f?Fp({},f,u):u}}else a.state={style:{}};return a}return U2e(n,[{key:"componentDidMount",value:function(){var i=this.props,a=i.isActive,o=i.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(i){var a=this.props,o=a.isActive,l=a.canBegin,f=a.attributeName,u=a.shouldReAnimate,h=a.to,m=a.from,v=this.state.style;if(l){if(!o){var _={style:f?Fp({},f,h):h};this.state&&v&&(f&&v[f]!==h||!f&&v!==h)&&this.setState(_);return}if(!(Zxe(i.to,h)&&i.canBegin&&i.isActive)){var x=!i.canBegin||!i.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=x||u?m:i.to;if(this.state&&v){var S={style:f?Fp({},f,w):w};(f&&v[f]!==w||!f&&v!==w)&&this.setState(S)}this.runAnimation(Sa(Sa({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var i=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),i&&i()}},{key:"handleStyleChange",value:function(i){this.changeStyle(i)}},{key:"changeStyle",value:function(i){this.mounted&&this.setState({style:i})}},{key:"runJSAnimation",value:function(i){var a=this,o=i.from,l=i.to,f=i.duration,u=i.easing,h=i.begin,m=i.onAnimationEnd,v=i.onAnimationStart,_=P2e(o,l,b2e(u),f,this.changeStyle),x=function(){a.stopJSAnimation=_()};this.manager.start([v,h,x,f,m])}},{key:"runStepAnimation",value:function(i){var a=this,o=i.steps,l=i.begin,f=i.onAnimationStart,u=o[0],h=u.style,m=u.duration,v=m===void 0?0:m,_=function(w,S,O){if(O===0)return w;var C=S.duration,T=S.easing,j=T===void 0?"ease":T,P=S.style,R=S.properties,$=S.onAnimationEnd,q=O>0?o[O-1]:S,K=R||Object.keys(P);if(typeof j=="function"||j==="spring")return[].concat(PC(w),[a.runJSAnimation.bind(a,{from:q.style,to:P,duration:C,easing:j}),C]);var H=S7(K,C,j),G=Sa(Sa(Sa({},q.style),P),{},{transition:H});return[].concat(PC(w),[G,C,$]).filter(s2e)};return this.manager.start([f].concat(PC(o.reduce(_,[h,Math.max(v,l)])),[i.onAnimationEnd]))}},{key:"runAnimation",value:function(i){this.manager||(this.manager=r2e());var a=i.begin,o=i.duration,l=i.attributeName,f=i.to,u=i.easing,h=i.onAnimationStart,m=i.onAnimationEnd,v=i.steps,_=i.children,x=this.manager;if(this.unSubscribe=x.subscribe(this.handleStyleChange),typeof u=="function"||typeof _=="function"||u==="spring"){this.runJSAnimation(i);return}if(v.length>1){this.runStepAnimation(i);return}var w=l?Fp({},l,f):f,S=S7(Object.keys(w),o,u);x.start([h,a,Sa(Sa({},w),{},{transition:S}),o,m])}},{key:"render",value:function(){var i=this.props,a=i.children;i.begin;var o=i.duration;i.attributeName,i.easing;var l=i.isActive;i.steps,i.from,i.to,i.canBegin,i.onAnimationEnd,i.shouldReAnimate,i.onAnimationReStart;var f=M2e(i,R2e),u=D.Children.count(a),h=this.state.style;if(typeof a=="function")return a(h);if(!l||u===0||o<=0)return a;var m=function(_){var x=_.props,w=x.style,S=w===void 0?{}:w,O=x.className,C=D.cloneElement(_,Sa(Sa({},f),{},{style:Sa(Sa({},S),h),className:O}));return C};return u===1?m(D.Children.only(a)):se.createElement("div",null,D.Children.map(a,function(v){return m(v)}))}}]),n}(D.PureComponent);fa.displayName="Animate";fa.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};fa.propTypes={from:he.oneOfType([he.object,he.string]),to:he.oneOfType([he.object,he.string]),attributeName:he.string,duration:he.number,begin:he.number,easing:he.oneOfType([he.string,he.func]),steps:he.arrayOf(he.shape({duration:he.number.isRequired,style:he.object.isRequired,easing:he.oneOfType([he.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),he.func]),properties:he.arrayOf("string"),onAnimationEnd:he.func})),children:he.oneOfType([he.node,he.func]),isActive:he.bool,canBegin:he.bool,onAnimationEnd:he.func,shouldReAnimate:he.bool,onAnimationStart:he.func,onAnimationReStart:he.func};function Qm(e){"@babel/helpers - typeof";return Qm=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},Qm(e)}function Sb(){return Sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sb.apply(this,arguments)}function H2e(e,t){return K2e(e)||Y2e(e,t)||G2e(e,t)||W2e()}function W2e(){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 G2e(e,t){if(e){if(typeof e=="string")return j7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j7(e,t)}}function j7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Y2e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function K2e(e){if(Array.isArray(e))return e}function P7(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 R7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P7(Object(n),!0).forEach(function(r){Z2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Z2e(e,t,n){return t=X2e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function X2e(e){var t=Q2e(e,"string");return Qm(t)=="symbol"?t:t+""}function Q2e(e,t){if(Qm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var M7=function(t,n,r,i,a){var o=Math.min(Math.abs(r)/2,Math.abs(i)/2),l=i>=0?1:-1,f=r>=0?1:-1,u=i>=0&&r>=0||i<0&&r<0?1:0,h;if(o>0&&a instanceof Array){for(var m=[0,0,0,0],v=0,_=4;v<_;v++)m[v]=a[v]>o?o:a[v];h="M".concat(t,",").concat(n+l*m[0]),m[0]>0&&(h+="A ".concat(m[0],",").concat(m[0],",0,0,").concat(u,",").concat(t+f*m[0],",").concat(n)),h+="L ".concat(t+r-f*m[1],",").concat(n),m[1]>0&&(h+="A ".concat(m[1],",").concat(m[1],",0,0,").concat(u,`,
`).concat(t+r,",").concat(n+l*m[1])),h+="L ".concat(t+r,",").concat(n+i-l*m[2]),m[2]>0&&(h+="A ".concat(m[2],",").concat(m[2],",0,0,").concat(u,`,
`).concat(t+r-f*m[2],",").concat(n+i)),h+="L ".concat(t+f*m[3],",").concat(n+i),m[3]>0&&(h+="A ".concat(m[3],",").concat(m[3],",0,0,").concat(u,`,
`).concat(t,",").concat(n+i-l*m[3])),h+="Z"}else if(o>0&&a===+a&&a>0){var x=Math.min(o,a);h="M ".concat(t,",").concat(n+l*x,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+f*x,",").concat(n,`
L `).concat(t+r-f*x,",").concat(n,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+r,",").concat(n+l*x,`
L `).concat(t+r,",").concat(n+i-l*x,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t+r-f*x,",").concat(n+i,`
L `).concat(t+f*x,",").concat(n+i,`
A `).concat(x,",").concat(x,",0,0,").concat(u,",").concat(t,",").concat(n+i-l*x," Z")}else h="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(i," h ").concat(-r," Z");return h},J2e=function(t,n){if(!t||!n)return!1;var r=t.x,i=t.y,a=n.x,o=n.y,l=n.width,f=n.height;if(Math.abs(l)>0&&Math.abs(f)>0){var u=Math.min(a,a+l),h=Math.max(a,a+l),m=Math.min(o,o+f),v=Math.max(o,o+f);return r>=u&&r<=h&&i>=m&&i<=v}return!1},eSe={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},DP=function(t){var n=R7(R7({},eSe),t),r=D.useRef(),i=D.useState(-1),a=H2e(i,2),o=a[0],l=a[1];D.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var j=r.current.getTotalLength();j&&l(j)}catch{}},[]);var f=n.x,u=n.y,h=n.width,m=n.height,v=n.radius,_=n.className,x=n.animationEasing,w=n.animationDuration,S=n.animationBegin,O=n.isAnimationActive,C=n.isUpdateAnimationActive;if(f!==+f||u!==+u||h!==+h||m!==+m||h===0||m===0)return null;var T=Ce("recharts-rectangle",_);return C?se.createElement(fa,{canBegin:o>0,from:{width:h,height:m,x:f,y:u},to:{width:h,height:m,x:f,y:u},duration:w,animationEasing:x,isActive:C},function(j){var P=j.width,R=j.height,$=j.x,q=j.y;return se.createElement(fa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,isActive:O,easing:x},se.createElement("path",Sb({},ot(n,!0),{className:T,d:M7($,q,P,R,v),ref:r})))}):se.createElement("path",Sb({},ot(n,!0),{className:T,d:M7(f,u,h,m,v)}))},tSe=["points","className","baseLinePoints","connectNulls"];function Uf(){return Uf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Uf.apply(this,arguments)}function nSe(e,t){if(e==null)return{};var n=rSe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function N7(e){return sSe(e)||oSe(e)||aSe(e)||iSe()}function iSe(){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 aSe(e,t){if(e){if(typeof e=="string")return WA(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return WA(e,t)}}function oSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function sSe(e){if(Array.isArray(e))return WA(e)}function WA(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var L7=function(t){return t&&t.x===+t.x&&t.y===+t.y},lSe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){L7(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),L7(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},nm=function(t,n){var r=lSe(t);n&&(r=[r.reduce(function(a,o){return[].concat(N7(a),N7(o))},[])]);var i=r.map(function(a){return a.reduce(function(o,l,f){return"".concat(o).concat(f===0?"M":"L").concat(l.x,",").concat(l.y)},"")}).join("");return r.length===1?"".concat(i,"Z"):i},uSe=function(t,n,r){var i=nm(t,r);return"".concat(i.slice(-1)==="Z"?i.slice(0,-1):i,"L").concat(nm(n.reverse(),r).slice(1))},cSe=function(t){var n=t.points,r=t.className,i=t.baseLinePoints,a=t.connectNulls,o=nSe(t,tSe);if(!n||!n.length)return null;var l=Ce("recharts-polygon",r);if(i&&i.length){var f=o.stroke&&o.stroke!=="none",u=uSe(n,i,a);return se.createElement("g",{className:l},se.createElement("path",Uf({},ot(o,!0),{fill:u.slice(-1)==="Z"?o.fill:"none",stroke:"none",d:u})),f?se.createElement("path",Uf({},ot(o,!0),{fill:"none",d:nm(n,a)})):null,f?se.createElement("path",Uf({},ot(o,!0),{fill:"none",d:nm(i,a)})):null)}var h=nm(n,a);return se.createElement("path",Uf({},ot(o,!0),{fill:h.slice(-1)==="Z"?o.fill:"none",className:l,d:h}))};function GA(){return GA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GA.apply(this,arguments)}var kv=function(t){var n=t.cx,r=t.cy,i=t.r,a=t.className,o=Ce("recharts-dot",a);return n===+n&&r===+r&&i===+i?se.createElement("circle",GA({},ot(t,!1),G0(t),{className:o,cx:n,cy:r,r:i})):null};function Jm(e){"@babel/helpers - typeof";return Jm=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},Jm(e)}var fSe=["x","y","top","left","width","height","className"];function YA(){return YA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YA.apply(this,arguments)}function D7(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 dSe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D7(Object(n),!0).forEach(function(r){hSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hSe(e,t,n){return t=pSe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pSe(e){var t=mSe(e,"string");return Jm(t)=="symbol"?t:t+""}function mSe(e,t){if(Jm(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jm(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function vSe(e,t){if(e==null)return{};var n=gSe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gSe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var ySe=function(t,n,r,i,a,o){return"M".concat(t,",").concat(a,"v").concat(i,"M").concat(o,",").concat(n,"h").concat(r)},bSe=function(t){var n=t.x,r=n===void 0?0:n,i=t.y,a=i===void 0?0:i,o=t.top,l=o===void 0?0:o,f=t.left,u=f===void 0?0:f,h=t.width,m=h===void 0?0:h,v=t.height,_=v===void 0?0:v,x=t.className,w=vSe(t,fSe),S=dSe({x:r,y:a,top:l,left:u,width:m,height:_},w);return!Xe(r)||!Xe(a)||!Xe(m)||!Xe(_)||!Xe(l)||!Xe(u)?null:se.createElement("path",YA({},ot(S,!0),{className:Ce("recharts-cross",x),d:ySe(r,a,m,_,l,u)}))},RC,k7;function wSe(){if(k7)return RC;k7=1;var e=ew(),t=gV(),n=So();function r(i,a){return i&&i.length?e(i,n(a,2),t):void 0}return RC=r,RC}var _Se=wSe();const xSe=Nt(_Se);var MC,I7;function SSe(){if(I7)return MC;I7=1;var e=ew(),t=So(),n=yV();function r(i,a){return i&&i.length?e(i,t(a,2),n):void 0}return MC=r,MC}var OSe=SSe();const CSe=Nt(OSe);var ESe=["cx","cy","angle","ticks","axisLine"],TSe=["ticks","tick","angle","tickFormatter","stroke"];function xd(e){"@babel/helpers - typeof";return xd=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},xd(e)}function rm(){return rm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rm.apply(this,arguments)}function $7(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 ku(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$7(Object(n),!0).forEach(function(r){iw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function B7(e,t){if(e==null)return{};var n=ASe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ASe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function jSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function U7(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,iH(r.key),r)}}function PSe(e,t,n){return t&&U7(e.prototype,t),n&&U7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function RSe(e,t,n){return t=Ob(t),MSe(e,rH()?Reflect.construct(t,n||[],Ob(e).constructor):t.apply(e,n))}function MSe(e,t){if(t&&(xd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return NSe(e)}function NSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rH=function(){return!!e})()}function Ob(e){return Ob=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ob(e)}function LSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&KA(e,t)}function KA(e,t){return KA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},KA(e,t)}function iw(e,t,n){return t=iH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iH(e){var t=DSe(e,"string");return xd(t)=="symbol"?t:t+""}function DSe(e,t){if(xd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(xd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var aw=function(e){function t(){return jSe(this,t),RSe(this,t,arguments)}return LSe(t,e),PSe(t,[{key:"getTickValueCoord",value:function(r){var i=r.coordinate,a=this.props,o=a.angle,l=a.cx,f=a.cy;return dn(l,f,i,o)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,i;switch(r){case"left":i="end";break;case"right":i="start";break;default:i="middle";break}return i}},{key:"getViewBox",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,f=xSe(l,function(h){return h.coordinate||0}),u=CSe(l,function(h){return h.coordinate||0});return{cx:i,cy:a,startAngle:o,endAngle:o,innerRadius:u.coordinate||0,outerRadius:f.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.angle,l=r.ticks,f=r.axisLine,u=B7(r,ESe),h=l.reduce(function(x,w){return[Math.min(x[0],w.coordinate),Math.max(x[1],w.coordinate)]},[1/0,-1/0]),m=dn(i,a,h[0],o),v=dn(i,a,h[1],o),_=ku(ku(ku({},ot(u,!1)),{},{fill:"none"},ot(f,!1)),{},{x1:m.x,y1:m.y,x2:v.x,y2:v.y});return se.createElement("line",rm({className:"recharts-polar-radius-axis-line"},_))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.angle,f=i.tickFormatter,u=i.stroke,h=B7(i,TSe),m=this.getTickTextAnchor(),v=ot(h,!1),_=ot(o,!1),x=a.map(function(w,S){var O=r.getTickValueCoord(w),C=ku(ku(ku(ku({textAnchor:m,transform:"rotate(".concat(90-l,", ").concat(O.x,", ").concat(O.y,")")},v),{},{stroke:"none",fill:u},_),{},{index:S},O),{},{payload:w});return se.createElement(St,rm({className:Ce("recharts-polar-radius-axis-tick",WV(o)),key:"tick-".concat(w.coordinate)},Hl(r.props,w,S)),t.renderTickItem(o,C,f?f(w.value,S):w.value))});return se.createElement(St,{className:"recharts-polar-radius-axis-ticks"},x)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.axisLine,o=r.tick;return!i||!i.length?null:se.createElement(St,{className:Ce("recharts-polar-radius-axis",this.props.className)},a&&this.renderAxisLine(),o&&this.renderTicks(),cr.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return se.isValidElement(r)?o=se.cloneElement(r,i):ht(r)?o=r(i):o=se.createElement(mc,rm({},i,{className:"recharts-polar-radius-axis-tick-value"}),a),o}}])}(D.PureComponent);iw(aw,"displayName","PolarRadiusAxis");iw(aw,"axisType","radiusAxis");iw(aw,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function Sd(e){"@babel/helpers - typeof";return Sd=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},Sd(e)}function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gu.apply(this,arguments)}function z7(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 Iu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z7(Object(n),!0).forEach(function(r){ow(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kSe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F7(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,oH(r.key),r)}}function ISe(e,t,n){return t&&F7(e.prototype,t),n&&F7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Se(e,t,n){return t=Cb(t),BSe(e,aH()?Reflect.construct(t,n||[],Cb(e).constructor):t.apply(e,n))}function BSe(e,t){if(t&&(Sd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return USe(e)}function USe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function aH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(aH=function(){return!!e})()}function Cb(e){return Cb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Cb(e)}function zSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ZA(e,t)}function ZA(e,t){return ZA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ZA(e,t)}function ow(e,t,n){return t=oH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oH(e){var t=FSe(e,"string");return Sd(t)=="symbol"?t:t+""}function FSe(e,t){if(Sd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qSe=Math.PI/180,VSe=1e-5,sw=function(e){function t(){return kSe(this,t),$Se(this,t,arguments)}return zSe(t,e),ISe(t,[{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.cx,o=i.cy,l=i.radius,f=i.orientation,u=i.tickSize,h=u||8,m=dn(a,o,l,r.coordinate),v=dn(a,o,l+(f==="inner"?-1:1)*h,r.coordinate);return{x1:m.x,y1:m.y,x2:v.x,y2:v.y}}},{key:"getTickTextAnchor",value:function(r){var i=this.props.orientation,a=Math.cos(-r.coordinate*qSe),o;return a>VSe?o=i==="outer"?"start":"end":a<-1e-5?o=i==="outer"?"end":"start":o="middle",o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.cx,a=r.cy,o=r.radius,l=r.axisLine,f=r.axisLineType,u=Iu(Iu({},ot(this.props,!1)),{},{fill:"none"},ot(l,!1));if(f==="circle")return se.createElement(kv,Gu({className:"recharts-polar-angle-axis-line"},u,{cx:i,cy:a,r:o}));var h=this.props.ticks,m=h.map(function(v){return dn(i,a,o,v.coordinate)});return se.createElement(cSe,Gu({className:"recharts-polar-angle-axis-line"},u,{points:m}))}},{key:"renderTicks",value:function(){var r=this,i=this.props,a=i.ticks,o=i.tick,l=i.tickLine,f=i.tickFormatter,u=i.stroke,h=ot(this.props,!1),m=ot(o,!1),v=Iu(Iu({},h),{},{fill:"none"},ot(l,!1)),_=a.map(function(x,w){var S=r.getTickLineCoord(x),O=r.getTickTextAnchor(x),C=Iu(Iu(Iu({textAnchor:O},h),{},{stroke:"none",fill:u},m),{},{index:w,payload:x,x:S.x2,y:S.y2});return se.createElement(St,Gu({className:Ce("recharts-polar-angle-axis-tick",WV(o)),key:"tick-".concat(x.coordinate)},Hl(r.props,x,w)),l&&se.createElement("line",Gu({className:"recharts-polar-angle-axis-tick-line"},v,S)),o&&t.renderTickItem(o,C,f?f(x.value,w):x.value))});return se.createElement(St,{className:"recharts-polar-angle-axis-ticks"},_)}},{key:"render",value:function(){var r=this.props,i=r.ticks,a=r.radius,o=r.axisLine;return a<=0||!i||!i.length?null:se.createElement(St,{className:Ce("recharts-polar-angle-axis",this.props.className)},o&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,i,a){var o;return se.isValidElement(r)?o=se.cloneElement(r,i):ht(r)?o=r(i):o=se.createElement(mc,Gu({},i,{className:"recharts-polar-angle-axis-tick-value"}),a),o}}])}(D.PureComponent);ow(sw,"displayName","PolarAngleAxis");ow(sw,"axisType","angleAxis");ow(sw,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var NC,q7;function HSe(){if(q7)return NC;q7=1;var e=vq(),t=e(Object.getPrototypeOf,Object);return NC=t,NC}var LC,V7;function WSe(){if(V7)return LC;V7=1;var e=xs(),t=HSe(),n=Ss(),r="[object Object]",i=Function.prototype,a=Object.prototype,o=i.toString,l=a.hasOwnProperty,f=o.call(Object);function u(h){if(!n(h)||e(h)!=r)return!1;var m=t(h);if(m===null)return!0;var v=l.call(m,"constructor")&&m.constructor;return typeof v=="function"&&v instanceof v&&o.call(v)==f}return LC=u,LC}var GSe=WSe();const YSe=Nt(GSe);var DC,H7;function KSe(){if(H7)return DC;H7=1;var e=xs(),t=Ss(),n="[object Boolean]";function r(i){return i===!0||i===!1||t(i)&&e(i)==n}return DC=r,DC}var ZSe=KSe();const XSe=Nt(ZSe);function ev(e){"@babel/helpers - typeof";return ev=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},ev(e)}function Eb(){return Eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Eb.apply(this,arguments)}function QSe(e,t){return nOe(e)||tOe(e,t)||eOe(e,t)||JSe()}function JSe(){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 eOe(e,t){if(e){if(typeof e=="string")return W7(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return W7(e,t)}}function W7(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tOe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function nOe(e){if(Array.isArray(e))return e}function G7(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 Y7(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G7(Object(n),!0).forEach(function(r){rOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rOe(e,t,n){return t=iOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iOe(e){var t=aOe(e,"string");return ev(t)=="symbol"?t:t+""}function aOe(e,t){if(ev(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ev(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var K7=function(t,n,r,i,a){var o=r-i,l;return l="M ".concat(t,",").concat(n),l+="L ".concat(t+r,",").concat(n),l+="L ".concat(t+r-o/2,",").concat(n+a),l+="L ".concat(t+r-o/2-i,",").concat(n+a),l+="L ".concat(t,",").concat(n," Z"),l},oOe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sOe=function(t){var n=Y7(Y7({},oOe),t),r=D.useRef(),i=D.useState(-1),a=QSe(i,2),o=a[0],l=a[1];D.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var T=r.current.getTotalLength();T&&l(T)}catch{}},[]);var f=n.x,u=n.y,h=n.upperWidth,m=n.lowerWidth,v=n.height,_=n.className,x=n.animationEasing,w=n.animationDuration,S=n.animationBegin,O=n.isUpdateAnimationActive;if(f!==+f||u!==+u||h!==+h||m!==+m||v!==+v||h===0&&m===0||v===0)return null;var C=Ce("recharts-trapezoid",_);return O?se.createElement(fa,{canBegin:o>0,from:{upperWidth:0,lowerWidth:0,height:v,x:f,y:u},to:{upperWidth:h,lowerWidth:m,height:v,x:f,y:u},duration:w,animationEasing:x,isActive:O},function(T){var j=T.upperWidth,P=T.lowerWidth,R=T.height,$=T.x,q=T.y;return se.createElement(fa,{canBegin:o>0,from:"0px ".concat(o===-1?1:o,"px"),to:"".concat(o,"px 0px"),attributeName:"strokeDasharray",begin:S,duration:w,easing:x},se.createElement("path",Eb({},ot(n,!0),{className:C,d:K7($,q,j,P,R),ref:r})))}):se.createElement("g",null,se.createElement("path",Eb({},ot(n,!0),{className:C,d:K7(f,u,h,m,v)})))},lOe=["option","shapeType","propTransformer","activeClassName","isActive"];function tv(e){"@babel/helpers - typeof";return tv=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},tv(e)}function uOe(e,t){if(e==null)return{};var n=cOe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cOe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Z7(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 Tb(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z7(Object(n),!0).forEach(function(r){fOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fOe(e,t,n){return t=dOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dOe(e){var t=hOe(e,"string");return tv(t)=="symbol"?t:t+""}function hOe(e,t){if(tv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pOe(e,t){return Tb(Tb({},t),e)}function mOe(e,t){return e==="symbols"}function X7(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return se.createElement(DP,n);case"trapezoid":return se.createElement(sOe,n);case"sector":return se.createElement(KV,n);case"symbols":if(mOe(t))return se.createElement(V1,n);break;default:return null}}function vOe(e){return D.isValidElement(e)?e.props:e}function Ab(e){var t=e.option,n=e.shapeType,r=e.propTransformer,i=r===void 0?pOe:r,a=e.activeClassName,o=a===void 0?"recharts-active-shape":a,l=e.isActive,f=uOe(e,lOe),u;if(D.isValidElement(t))u=D.cloneElement(t,Tb(Tb({},f),vOe(t)));else if(ht(t))u=t(f);else if(YSe(t)&&!XSe(t)){var h=i(t,f);u=se.createElement(X7,{shapeType:n,elementProps:h})}else{var m=f;u=se.createElement(X7,{shapeType:n,elementProps:m})}return l?se.createElement(St,{className:o},u):u}function lw(e,t){return t!=null&&"trapezoids"in e.props}function uw(e,t){return t!=null&&"sectors"in e.props}function nv(e,t){return t!=null&&"points"in e.props}function gOe(e,t){var n,r,i=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,a=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return i&&a}function yOe(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function bOe(e,t){var n=e.x===t.x,r=e.y===t.y,i=e.z===t.z;return n&&r&&i}function wOe(e,t){var n;return lw(e,t)?n=gOe:uw(e,t)?n=yOe:nv(e,t)&&(n=bOe),n}function _Oe(e,t){var n;return lw(e,t)?n="trapezoids":uw(e,t)?n="sectors":nv(e,t)&&(n="points"),n}function xOe(e,t){if(lw(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(uw(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return nv(e,t)?t.payload:{}}function SOe(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,i=_Oe(n,t),a=xOe(n,t),o=r.filter(function(f,u){var h=Wl(a,f),m=n.props[i].filter(function(x){var w=wOe(n,t);return w(x,t)}),v=n.props[i].indexOf(m[m.length-1]),_=u===v;return h&&_}),l=r.indexOf(o[o.length-1]);return l}var r0;function Od(e){"@babel/helpers - typeof";return Od=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},Od(e)}function zf(){return zf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zf.apply(this,arguments)}function Q7(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 cn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Q7(Object(n),!0).forEach(function(r){na(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q7(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J7(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,lH(r.key),r)}}function COe(e,t,n){return t&&J7(e.prototype,t),n&&J7(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function EOe(e,t,n){return t=jb(t),TOe(e,sH()?Reflect.construct(t,n||[],jb(e).constructor):t.apply(e,n))}function TOe(e,t){if(t&&(Od(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return AOe(e)}function AOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(sH=function(){return!!e})()}function jb(e){return jb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},jb(e)}function jOe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&XA(e,t)}function XA(e,t){return XA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},XA(e,t)}function na(e,t,n){return t=lH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function lH(e){var t=POe(e,"string");return Od(t)=="symbol"?t:t+""}function POe(e,t){if(Od(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Od(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var vo=function(e){function t(n){var r;return OOe(this,t),r=EOe(this,t,[n]),na(r,"pieRef",null),na(r,"sectorRefs",[]),na(r,"id",eu("recharts-pie-")),na(r,"handleAnimationEnd",function(){var i=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),ht(i)&&i()}),na(r,"handleAnimationStart",function(){var i=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),ht(i)&&i()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return jOe(t,e),COe(t,[{key:"isActiveIndex",value:function(r){var i=this.props.activeIndex;return Array.isArray(i)?i.indexOf(r)!==-1:r===i}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var i=this.props.isAnimationActive;if(i&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.label,l=a.labelLine,f=a.dataKey,u=a.valueKey,h=ot(this.props,!1),m=ot(o,!1),v=ot(l,!1),_=o&&o.offsetRadius||20,x=r.map(function(w,S){var O=(w.startAngle+w.endAngle)/2,C=dn(w.cx,w.cy,w.outerRadius+_,O),T=cn(cn(cn(cn({},h),w),{},{stroke:"none"},m),{},{index:S,textAnchor:t.getTextAnchor(C.x,w.cx)},C),j=cn(cn(cn(cn({},h),w),{},{fill:"none",stroke:w.fill},v),{},{index:S,points:[dn(w.cx,w.cy,w.outerRadius,O),C]}),P=f;return pt(f)&&pt(u)?P="value":pt(f)&&(P=u),se.createElement(St,{key:"label-".concat(w.startAngle,"-").concat(w.endAngle,"-").concat(w.midAngle,"-").concat(S)},l&&t.renderLabelLineItem(l,j,"line"),t.renderLabelItem(o,T,mn(w,P)))});return se.createElement(St,{className:"recharts-pie-labels"},x)}},{key:"renderSectorsStatically",value:function(r){var i=this,a=this.props,o=a.activeShape,l=a.blendStroke,f=a.inactiveShape;return r.map(function(u,h){if((u==null?void 0:u.startAngle)===0&&(u==null?void 0:u.endAngle)===0&&r.length!==1)return null;var m=i.isActiveIndex(h),v=f&&i.hasActiveIndex()?f:null,_=m?o:v,x=cn(cn({},u),{},{stroke:l?u.fill:u.stroke,tabIndex:-1});return se.createElement(St,zf({ref:function(S){S&&!i.sectorRefs.includes(S)&&i.sectorRefs.push(S)},tabIndex:-1,className:"recharts-pie-sector"},Hl(i.props,u,h),{key:"sector-".concat(u==null?void 0:u.startAngle,"-").concat(u==null?void 0:u.endAngle,"-").concat(u.midAngle,"-").concat(h)}),se.createElement(Ab,zf({option:_,isActive:m,shapeType:"sector"},x)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,i=this.props,a=i.sectors,o=i.isAnimationActive,l=i.animationBegin,f=i.animationDuration,u=i.animationEasing,h=i.animationId,m=this.state,v=m.prevSectors,_=m.prevIsAnimationActive;return se.createElement(fa,{begin:l,duration:f,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(h,"-").concat(_),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(x){var w=x.t,S=[],O=a&&a[0],C=O.startAngle;return a.forEach(function(T,j){var P=v&&v[j],R=j>0?Ni(T,"paddingAngle",0):0;if(P){var $=En(P.endAngle-P.startAngle,T.endAngle-T.startAngle),q=cn(cn({},T),{},{startAngle:C+R,endAngle:C+$(w)+R});S.push(q),C=q.endAngle}else{var K=T.endAngle,H=T.startAngle,G=En(0,K-H),te=G(w),ie=cn(cn({},T),{},{startAngle:C+R,endAngle:C+te+R});S.push(ie),C=ie.endAngle}}),se.createElement(St,null,r.renderSectorsStatically(S))})}},{key:"attachKeyboardHandlers",value:function(r){var i=this;r.onkeydown=function(a){if(!a.altKey)switch(a.key){case"ArrowLeft":{var o=++i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[o].focus(),i.setState({sectorToFocus:o});break}case"ArrowRight":{var l=--i.state.sectorToFocus<0?i.sectorRefs.length-1:i.state.sectorToFocus%i.sectorRefs.length;i.sectorRefs[l].focus(),i.setState({sectorToFocus:l});break}case"Escape":{i.sectorRefs[i.state.sectorToFocus].blur(),i.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,i=r.sectors,a=r.isAnimationActive,o=this.state.prevSectors;return a&&i&&i.length&&(!o||!Wl(o,i))?this.renderSectorsWithAnimation():this.renderSectorsStatically(i)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,i=this.props,a=i.hide,o=i.sectors,l=i.className,f=i.label,u=i.cx,h=i.cy,m=i.innerRadius,v=i.outerRadius,_=i.isAnimationActive,x=this.state.isAnimationFinished;if(a||!o||!o.length||!Xe(u)||!Xe(h)||!Xe(m)||!Xe(v))return null;var w=Ce("recharts-pie",l);return se.createElement(St,{tabIndex:this.props.rootTabIndex,className:w,ref:function(O){r.pieRef=O}},this.renderSectors(),f&&this.renderLabels(o),cr.renderCallByParent(this.props,null,!1),(!_||x)&&ja.renderCallByParent(this.props,o,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return i.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:i.curSectors,isAnimationFinished:!0}:r.sectors!==i.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,i){return r>i?"start":r<i?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,i,a){if(se.isValidElement(r))return se.cloneElement(r,i);if(ht(r))return r(i);var o=Ce("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return se.createElement(kl,zf({},i,{key:a,type:"linear",className:o}))}},{key:"renderLabelItem",value:function(r,i,a){if(se.isValidElement(r))return se.cloneElement(r,i);var o=a;if(ht(r)&&(o=r(i),se.isValidElement(o)))return o;var l=Ce("recharts-pie-label-text",typeof r!="boolean"&&!ht(r)?r.className:"");return se.createElement(mc,zf({},i,{alignmentBaseline:"middle",className:l}),o)}}])}(D.PureComponent);r0=vo;na(vo,"displayName","Pie");na(vo,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Os.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});na(vo,"parseDeltaAngle",function(e,t){var n=Vr(t-e),r=Math.min(Math.abs(t-e),360);return n*r});na(vo,"getRealPieData",function(e){var t=e.data,n=e.children,r=ot(e,!1),i=Yr(n,Ll);return t&&t.length?t.map(function(a,o){return cn(cn(cn({payload:a},r),a),i&&i[o]&&i[o].props)}):i&&i.length?i.map(function(a){return cn(cn({},r),a.props)}):[]});na(vo,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,i=t.width,a=t.height,o=HV(i,a),l=r+Hr(e.cx,i,i/2),f=n+Hr(e.cy,a,a/2),u=Hr(e.innerRadius,o,0),h=Hr(e.outerRadius,o,o*.8),m=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:f,innerRadius:u,outerRadius:h,maxRadius:m}});na(vo,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?cn(cn({},t.type.defaultProps),t.props):t.props,i=r0.getRealPieData(r);if(!i||!i.length)return null;var a=r.cornerRadius,o=r.startAngle,l=r.endAngle,f=r.paddingAngle,u=r.dataKey,h=r.nameKey,m=r.valueKey,v=r.tooltipType,_=Math.abs(r.minAngle),x=r0.parseCoordinateOfPie(r,n),w=r0.parseDeltaAngle(o,l),S=Math.abs(w),O=u;pt(u)&&pt(m)?(Aa(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),O="value"):pt(u)&&(Aa(!1,`Use "dataKey" to specify the value of pie,
the props "valueKey" will be deprecated in 1.1.0`),O=m);var C=i.filter(function(q){return mn(q,O,0)!==0}).length,T=(S>=360?C:C-1)*f,j=S-C*_-T,P=i.reduce(function(q,K){var H=mn(K,O,0);return q+(Xe(H)?H:0)},0),R;if(P>0){var $;R=i.map(function(q,K){var H=mn(q,O,0),G=mn(q,h,K),te=(Xe(H)?H:0)/P,ie;K?ie=$.endAngle+Vr(w)*f*(H!==0?1:0):ie=o;var X=ie+Vr(w)*((H!==0?_:0)+te*j),ee=(ie+X)/2,W=(x.innerRadius+x.outerRadius)/2,B=[{name:G,value:H,payload:q,dataKey:O,type:v}],U=dn(x.cx,x.cy,W,ee);return $=cn(cn(cn({percent:te,cornerRadius:a,name:G,tooltipPayload:B,midAngle:ee,middleRadius:W,tooltipPosition:U},q),x),{},{value:mn(q,O),startAngle:ie,endAngle:X,payload:q,paddingAngle:Vr(w)*f}),$})}return cn(cn({},x),{},{sectors:R,data:i})});var kC,e$;function ROe(){if(e$)return kC;e$=1;var e=Math.ceil,t=Math.max;function n(r,i,a,o){for(var l=-1,f=t(e((i-r)/(a||1)),0),u=Array(f);f--;)u[o?f:++l]=r,r+=a;return u}return kC=n,kC}var IC,t$;function uH(){if(t$)return IC;t$=1;var e=Mq(),t=1/0,n=17976931348623157e292;function r(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-1/0){var a=i<0?-1:1;return a*n}return i===i?i:0}return IC=r,IC}var $C,n$;function MOe(){if(n$)return $C;n$=1;var e=ROe(),t=G1(),n=uH();function r(i){return function(a,o,l){return l&&typeof l!="number"&&t(a,o,l)&&(o=l=void 0),a=n(a),o===void 0?(o=a,a=0):o=n(o),l=l===void 0?a<o?1:-1:n(l),e(a,o,l,i)}}return $C=r,$C}var BC,r$;function NOe(){if(r$)return BC;r$=1;var e=MOe(),t=e();return BC=t,BC}var LOe=NOe();const Pb=Nt(LOe);function rv(e){"@babel/helpers - typeof";return rv=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},rv(e)}function i$(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?i$(Object(n),!0).forEach(function(r){cH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cH(e,t,n){return t=DOe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function DOe(e){var t=kOe(e,"string");return rv(t)=="symbol"?t:t+""}function kOe(e,t){if(rv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(rv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var IOe=["Webkit","Moz","O","ms"],$Oe=function(t,n){var r=t.replace(/(\w)/,function(a){return a.toUpperCase()}),i=IOe.reduce(function(a,o){return a$(a$({},a),{},cH({},o+r,n))},{});return i[t]=n,i};function Cd(e){"@babel/helpers - typeof";return Cd=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},Cd(e)}function Rb(){return Rb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Rb.apply(this,arguments)}function o$(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 UC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o$(Object(n),!0).forEach(function(r){Oi(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BOe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s$(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,dH(r.key),r)}}function UOe(e,t,n){return t&&s$(e.prototype,t),n&&s$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function zOe(e,t,n){return t=Mb(t),FOe(e,fH()?Reflect.construct(t,n||[],Mb(e).constructor):t.apply(e,n))}function FOe(e,t){if(t&&(Cd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return qOe(e)}function qOe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fH=function(){return!!e})()}function Mb(e){return Mb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Mb(e)}function VOe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&QA(e,t)}function QA(e,t){return QA=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},QA(e,t)}function Oi(e,t,n){return t=dH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dH(e){var t=HOe(e,"string");return Cd(t)=="symbol"?t:t+""}function HOe(e,t){if(Cd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Cd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var WOe=function(t){var n=t.data,r=t.startIndex,i=t.endIndex,a=t.x,o=t.width,l=t.travellerWidth;if(!n||!n.length)return{};var f=n.length,u=Jp().domain(Pb(0,f)).range([a,a+o-l]),h=u.domain().map(function(m){return u(m)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:u(r),endX:u(i),scale:u,scaleValues:h}},l$=function(t){return t.changedTouches&&!!t.changedTouches.length},Ed=function(e){function t(n){var r;return BOe(this,t),r=zOe(this,t,[n]),Oi(r,"handleDrag",function(i){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(i):r.state.isSlideMoving&&r.handleSlideDrag(i)}),Oi(r,"handleTouchMove",function(i){i.changedTouches!=null&&i.changedTouches.length>0&&r.handleDrag(i.changedTouches[0])}),Oi(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var i=r.props,a=i.endIndex,o=i.onDragEnd,l=i.startIndex;o==null||o({endIndex:a,startIndex:l})}),r.detachDragEndListener()}),Oi(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Oi(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Oi(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Oi(r,"handleSlideDragStart",function(i){var a=l$(i)?i.changedTouches[0]:i;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:a.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return VOe(t,e),UOe(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var i=r.startX,a=r.endX,o=this.state.scaleValues,l=this.props,f=l.gap,u=l.data,h=u.length-1,m=Math.min(i,a),v=Math.max(i,a),_=t.getIndexInRange(o,m),x=t.getIndexInRange(o,v);return{startIndex:_-_%f,endIndex:x===h?h:x-x%f}}},{key:"getTextOfTick",value:function(r){var i=this.props,a=i.data,o=i.tickFormatter,l=i.dataKey,f=mn(a[r],l,r);return ht(o)?o(f,r):f}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var i=this.state,a=i.slideMoveStartX,o=i.startX,l=i.endX,f=this.props,u=f.x,h=f.width,m=f.travellerWidth,v=f.startIndex,_=f.endIndex,x=f.onChange,w=r.pageX-a;w>0?w=Math.min(w,u+h-m-l,u+h-m-o):w<0&&(w=Math.max(w,u-o,u-l));var S=this.getIndex({startX:o+w,endX:l+w});(S.startIndex!==v||S.endIndex!==_)&&x&&x(S),this.setState({startX:o+w,endX:l+w,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,i){var a=l$(i)?i.changedTouches[0]:i;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:a.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var i=this.state,a=i.brushMoveStartX,o=i.movingTravellerId,l=i.endX,f=i.startX,u=this.state[o],h=this.props,m=h.x,v=h.width,_=h.travellerWidth,x=h.onChange,w=h.gap,S=h.data,O={startX:this.state.startX,endX:this.state.endX},C=r.pageX-a;C>0?C=Math.min(C,m+v-_-u):C<0&&(C=Math.max(C,m-u)),O[o]=u+C;var T=this.getIndex(O),j=T.startIndex,P=T.endIndex,R=function(){var q=S.length-1;return o==="startX"&&(l>f?j%w===0:P%w===0)||l<f&&P===q||o==="endX"&&(l>f?P%w===0:j%w===0)||l>f&&P===q};this.setState(Oi(Oi({},o,u+C),"brushMoveStartX",r.pageX),function(){x&&R()&&x(T)})}},{key:"handleTravellerMoveKeyboard",value:function(r,i){var a=this,o=this.state,l=o.scaleValues,f=o.startX,u=o.endX,h=this.state[i],m=l.indexOf(h);if(m!==-1){var v=m+r;if(!(v===-1||v>=l.length)){var _=l[v];i==="startX"&&_>=u||i==="endX"&&_<=f||this.setState(Oi({},i,_),function(){a.props.onChange(a.getIndex({startX:a.state.startX,endX:a.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,f=r.fill,u=r.stroke;return se.createElement("rect",{stroke:u,fill:f,x:i,y:a,width:o,height:l})}},{key:"renderPanorama",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,f=r.data,u=r.children,h=r.padding,m=D.Children.only(u);return m?se.cloneElement(m,{x:i,y:a,width:o,height:l,margin:h,compact:!0,data:f}):null}},{key:"renderTravellerLayer",value:function(r,i){var a,o,l=this,f=this.props,u=f.y,h=f.travellerWidth,m=f.height,v=f.traveller,_=f.ariaLabel,x=f.data,w=f.startIndex,S=f.endIndex,O=Math.max(r,this.props.x),C=UC(UC({},ot(this.props,!1)),{},{x:O,y:u,width:h,height:m}),T=_||"Min value: ".concat((a=x[w])===null||a===void 0?void 0:a.name,", Max value: ").concat((o=x[S])===null||o===void 0?void 0:o.name);return se.createElement(St,{tabIndex:0,role:"slider","aria-label":T,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[i],onTouchStart:this.travellerDragStartHandlers[i],onKeyDown:function(P){["ArrowLeft","ArrowRight"].includes(P.key)&&(P.preventDefault(),P.stopPropagation(),l.handleTravellerMoveKeyboard(P.key==="ArrowRight"?1:-1,i))},onFocus:function(){l.setState({isTravellerFocused:!0})},onBlur:function(){l.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(v,C))}},{key:"renderSlide",value:function(r,i){var a=this.props,o=a.y,l=a.height,f=a.stroke,u=a.travellerWidth,h=Math.min(r,i)+u,m=Math.max(Math.abs(i-r)-u,0);return se.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:f,fillOpacity:.2,x:h,y:o,width:m,height:l})}},{key:"renderText",value:function(){var r=this.props,i=r.startIndex,a=r.endIndex,o=r.y,l=r.height,f=r.travellerWidth,u=r.stroke,h=this.state,m=h.startX,v=h.endX,_=5,x={pointerEvents:"none",fill:u};return se.createElement(St,{className:"recharts-brush-texts"},se.createElement(mc,Rb({textAnchor:"end",verticalAnchor:"middle",x:Math.min(m,v)-_,y:o+l/2},x),this.getTextOfTick(i)),se.createElement(mc,Rb({textAnchor:"start",verticalAnchor:"middle",x:Math.max(m,v)+f+_,y:o+l/2},x),this.getTextOfTick(a)))}},{key:"render",value:function(){var r=this.props,i=r.data,a=r.className,o=r.children,l=r.x,f=r.y,u=r.width,h=r.height,m=r.alwaysShowText,v=this.state,_=v.startX,x=v.endX,w=v.isTextActive,S=v.isSlideMoving,O=v.isTravellerMoving,C=v.isTravellerFocused;if(!i||!i.length||!Xe(l)||!Xe(f)||!Xe(u)||!Xe(h)||u<=0||h<=0)return null;var T=Ce("recharts-brush",a),j=se.Children.count(o)===1,P=$Oe("userSelect","none");return se.createElement(St,{className:T,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:P},this.renderBackground(),j&&this.renderPanorama(),this.renderSlide(_,x),this.renderTravellerLayer(_,"startX"),this.renderTravellerLayer(x,"endX"),(w||S||O||C||m)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var i=r.x,a=r.y,o=r.width,l=r.height,f=r.stroke,u=Math.floor(a+l/2)-1;return se.createElement(se.Fragment,null,se.createElement("rect",{x:i,y:a,width:o,height:l,fill:f,stroke:"none"}),se.createElement("line",{x1:i+1,y1:u,x2:i+o-1,y2:u,fill:"none",stroke:"#fff"}),se.createElement("line",{x1:i+1,y1:u+2,x2:i+o-1,y2:u+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,i){var a;return se.isValidElement(r)?a=se.cloneElement(r,i):ht(r)?a=r(i):a=t.renderDefaultTraveller(i),a}},{key:"getDerivedStateFromProps",value:function(r,i){var a=r.data,o=r.width,l=r.x,f=r.travellerWidth,u=r.updateId,h=r.startIndex,m=r.endIndex;if(a!==i.prevData||u!==i.prevUpdateId)return UC({prevData:a,prevTravellerWidth:f,prevUpdateId:u,prevX:l,prevWidth:o},a&&a.length?WOe({data:a,width:o,x:l,travellerWidth:f,startIndex:h,endIndex:m}):{scale:null,scaleValues:null});if(i.scale&&(o!==i.prevWidth||l!==i.prevX||f!==i.prevTravellerWidth)){i.scale.range([l,l+o-f]);var v=i.scale.domain().map(function(_){return i.scale(_)});return{prevData:a,prevTravellerWidth:f,prevUpdateId:u,prevX:l,prevWidth:o,startX:i.scale(r.startIndex),endX:i.scale(r.endIndex),scaleValues:v}}return null}},{key:"getIndexInRange",value:function(r,i){for(var a=r.length,o=0,l=a-1;l-o>1;){var f=Math.floor((o+l)/2);r[f]>i?l=f:o=f}return i>=r[l]?l:o}}])}(D.PureComponent);Oi(Ed,"displayName","Brush");Oi(Ed,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var zC,u$;function GOe(){if(u$)return zC;u$=1;var e=sP();function t(n,r){var i;return e(n,function(a,o,l){return i=r(a,o,l),!i}),!!i}return zC=t,zC}var FC,c$;function YOe(){if(c$)return FC;c$=1;var e=uq(),t=So(),n=GOe(),r=si(),i=G1();function a(o,l,f){var u=r(o)?e:n;return f&&i(o,l,f)&&(l=void 0),u(o,t(l,3))}return FC=a,FC}var KOe=YOe();const ZOe=Nt(KOe);var co=function(t,n){var r=t.alwaysShow,i=t.ifOverflow;return r&&(i="extendDomain"),i===n},qC,f$;function XOe(){if(f$)return qC;f$=1;var e=Tq();function t(n,r,i){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:i,writable:!0}):n[r]=i}return qC=t,qC}var VC,d$;function QOe(){if(d$)return VC;d$=1;var e=XOe(),t=Cq(),n=So();function r(i,a){var o={};return a=n(a,3),t(i,function(l,f,u){e(o,f,a(l,f,u))}),o}return VC=r,VC}var JOe=QOe();const eCe=Nt(JOe);var HC,h$;function tCe(){if(h$)return HC;h$=1;function e(t,n){for(var r=-1,i=t==null?0:t.length;++r<i;)if(!n(t[r],r,t))return!1;return!0}return HC=e,HC}var WC,p$;function nCe(){if(p$)return WC;p$=1;var e=sP();function t(n,r){var i=!0;return e(n,function(a,o,l){return i=!!r(a,o,l),i}),i}return WC=t,WC}var GC,m$;function rCe(){if(m$)return GC;m$=1;var e=tCe(),t=nCe(),n=So(),r=si(),i=G1();function a(o,l,f){var u=r(o)?e:t;return f&&i(o,l,f)&&(l=void 0),u(o,n(l,3))}return GC=a,GC}var iCe=rCe();const hH=Nt(iCe);var aCe=["x","y"];function iv(e){"@babel/helpers - typeof";return iv=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},iv(e)}function JA(){return JA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JA.apply(this,arguments)}function v$(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 Rp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?v$(Object(n),!0).forEach(function(r){oCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function oCe(e,t,n){return t=sCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sCe(e){var t=lCe(e,"string");return iv(t)=="symbol"?t:t+""}function lCe(e,t){if(iv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(iv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uCe(e,t){if(e==null)return{};var n=cCe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cCe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function fCe(e,t){var n=e.x,r=e.y,i=uCe(e,aCe),a="".concat(n),o=parseInt(a,10),l="".concat(r),f=parseInt(l,10),u="".concat(t.height||i.height),h=parseInt(u,10),m="".concat(t.width||i.width),v=parseInt(m,10);return Rp(Rp(Rp(Rp(Rp({},t),i),o?{x:o}:{}),f?{y:f}:{}),{},{height:h,width:v,name:t.name,radius:t.radius})}function g$(e){return se.createElement(Ab,JA({shapeType:"rectangle",propTransformer:fCe,activeClassName:"recharts-active-bar"},e))}var dCe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,i){if(typeof t=="number")return t;var a=typeof r=="number";return a?t(r,i):(a||gc(),n)}},hCe=["value","background"],pH;function Td(e){"@babel/helpers - typeof";return Td=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},Td(e)}function pCe(e,t){if(e==null)return{};var n=mCe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mCe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Nb(){return Nb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Nb.apply(this,arguments)}function y$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y$(Object(n),!0).forEach(function(r){Pl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b$(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,vH(r.key),r)}}function gCe(e,t,n){return t&&b$(e.prototype,t),n&&b$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function yCe(e,t,n){return t=Lb(t),bCe(e,mH()?Reflect.construct(t,n||[],Lb(e).constructor):t.apply(e,n))}function bCe(e,t){if(t&&(Td(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return wCe(e)}function wCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(mH=function(){return!!e})()}function Lb(e){return Lb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lb(e)}function _Ce(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ej(e,t)}function ej(e,t){return ej=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ej(e,t)}function Pl(e,t,n){return t=vH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vH(e){var t=xCe(e,"string");return Td(t)=="symbol"?t:t+""}function xCe(e,t){if(Td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ss=function(e){function t(){var n;vCe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=yCe(this,t,[].concat(i)),Pl(n,"state",{isAnimationFinished:!1}),Pl(n,"id",eu("recharts-bar-")),Pl(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),o&&o()}),Pl(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),o&&o()}),n}return _Ce(t,e),gCe(t,[{key:"renderRectanglesStatically",value:function(r){var i=this,a=this.props,o=a.shape,l=a.dataKey,f=a.activeIndex,u=a.activeBar,h=ot(this.props,!1);return r&&r.map(function(m,v){var _=v===f,x=_?u:o,w=Vn(Vn(Vn({},h),m),{},{isActive:_,option:x,index:v,dataKey:l,onAnimationStart:i.handleAnimationStart,onAnimationEnd:i.handleAnimationEnd});return se.createElement(St,Nb({className:"recharts-bar-rectangle"},Hl(i.props,m,v),{key:"rectangle-".concat(m==null?void 0:m.x,"-").concat(m==null?void 0:m.y,"-").concat(m==null?void 0:m.value,"-").concat(v)}),se.createElement(g$,w))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,i=this.props,a=i.data,o=i.layout,l=i.isAnimationActive,f=i.animationBegin,u=i.animationDuration,h=i.animationEasing,m=i.animationId,v=this.state.prevData;return se.createElement(fa,{begin:f,duration:u,isActive:l,easing:h,from:{t:0},to:{t:1},key:"bar-".concat(m),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(_){var x=_.t,w=a.map(function(S,O){var C=v&&v[O];if(C){var T=En(C.x,S.x),j=En(C.y,S.y),P=En(C.width,S.width),R=En(C.height,S.height);return Vn(Vn({},S),{},{x:T(x),y:j(x),width:P(x),height:R(x)})}if(o==="horizontal"){var $=En(0,S.height),q=$(x);return Vn(Vn({},S),{},{y:S.y+S.height-q,height:q})}var K=En(0,S.width),H=K(x);return Vn(Vn({},S),{},{width:H})});return se.createElement(St,null,r.renderRectanglesStatically(w))})}},{key:"renderRectangles",value:function(){var r=this.props,i=r.data,a=r.isAnimationActive,o=this.state.prevData;return a&&i&&i.length&&(!o||!Wl(o,i))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(i)}},{key:"renderBackground",value:function(){var r=this,i=this.props,a=i.data,o=i.dataKey,l=i.activeIndex,f=ot(this.props.background,!1);return a.map(function(u,h){u.value;var m=u.background,v=pCe(u,hCe);if(!m)return null;var _=Vn(Vn(Vn(Vn(Vn({},v),{},{fill:"#eee"},m),f),Hl(r.props,u,h)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:o,index:h,className:"recharts-bar-background-rectangle"});return se.createElement(g$,Nb({key:"background-bar-".concat(h),option:r.props.background,isActive:h===l},_))})}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.data,l=a.xAxis,f=a.yAxis,u=a.layout,h=a.children,m=Yr(h,ah);if(!m)return null;var v=u==="vertical"?o[0].height/2:o[0].width/2,_=function(S,O){var C=Array.isArray(S.value)?S.value[1]:S.value;return{x:S.x,y:S.y,value:C,errorVal:mn(S,O)}},x={clipPath:r?"url(#clipPath-".concat(i,")"):null};return se.createElement(St,x,m.map(function(w){return se.cloneElement(w,{key:"error-bar-".concat(i,"-").concat(w.props.dataKey),data:o,xAxis:l,yAxis:f,layout:u,offset:v,dataPointFormatter:_})}))}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.data,o=r.className,l=r.xAxis,f=r.yAxis,u=r.left,h=r.top,m=r.width,v=r.height,_=r.isAnimationActive,x=r.background,w=r.id;if(i||!a||!a.length)return null;var S=this.state.isAnimationFinished,O=Ce("recharts-bar",o),C=l&&l.allowDataOverflow,T=f&&f.allowDataOverflow,j=C||T,P=pt(w)?this.id:w;return se.createElement(St,{className:O},C||T?se.createElement("defs",null,se.createElement("clipPath",{id:"clipPath-".concat(P)},se.createElement("rect",{x:C?u:u-m/2,y:T?h:h-v/2,width:C?m:m*2,height:T?v:v*2}))):null,se.createElement(St,{className:"recharts-bar-rectangles",clipPath:j?"url(#clipPath-".concat(P,")"):null},x?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(j,P),(!_||S)&&ja.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:i.curData}:r.data!==i.curData?{curData:r.data}:null}}])}(D.PureComponent);pH=ss;Pl(ss,"displayName","Bar");Pl(ss,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Os.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Pl(ss,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,i=e.bandSize,a=e.xAxis,o=e.yAxis,l=e.xAxisTicks,f=e.yAxisTicks,u=e.stackedData,h=e.dataStartIndex,m=e.displayedData,v=e.offset,_=e_e(r,n);if(!_)return null;var x=t.layout,w=n.type.defaultProps,S=w!==void 0?Vn(Vn({},w),n.props):n.props,O=S.dataKey,C=S.children,T=S.minPointSize,j=x==="horizontal"?o:a,P=u?j.scale.domain():null,R=s_e({numericAxis:j}),$=Yr(C,Ll),q=m.map(function(K,H){var G,te,ie,X,ee,W;u?G=t_e(u[h+H],P):(G=mn(K,O),Array.isArray(G)||(G=[R,G]));var B=dCe(T,pH.defaultProps.minPointSize)(G[1],H);if(x==="horizontal"){var U,F=[o.scale(G[0]),o.scale(G[1])],M=F[0],I=F[1];te=YI({axis:a,ticks:l,bandSize:i,offset:_.offset,entry:K,index:H}),ie=(U=I??M)!==null&&U!==void 0?U:void 0,X=_.size;var J=M-I;if(ee=Number.isNaN(J)?0:J,W={x:te,y:o.y,width:X,height:o.height},Math.abs(B)>0&&Math.abs(ee)<Math.abs(B)){var Y=Vr(ee||B)*(Math.abs(B)-Math.abs(ee));ie-=Y,ee+=Y}}else{var ae=[a.scale(G[0]),a.scale(G[1])],de=ae[0],fe=ae[1];if(te=de,ie=YI({axis:o,ticks:f,bandSize:i,offset:_.offset,entry:K,index:H}),X=fe-de,ee=_.size,W={x:a.x,y:ie,width:a.width,height:ee},Math.abs(B)>0&&Math.abs(X)<Math.abs(B)){var be=Vr(X||B)*(Math.abs(B)-Math.abs(X));X+=be}}return Vn(Vn(Vn({},K),{},{x:te,y:ie,width:X,height:ee,value:u?G:G[1],payload:K,background:W},$&&$[H]&&$[H].props),{},{tooltipPayload:[qV(n,K)],tooltipPosition:{x:te+X/2,y:ie+ee/2}})});return Vn({data:q,layout:x},v)});function av(e){"@babel/helpers - typeof";return av=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},av(e)}function SCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w$(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,gH(r.key),r)}}function OCe(e,t,n){return t&&w$(e.prototype,t),n&&w$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _$(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 Oa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_$(Object(n),!0).forEach(function(r){cw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cw(e,t,n){return t=gH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gH(e){var t=CCe(e,"string");return av(t)=="symbol"?t:t+""}function CCe(e,t){if(av(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(av(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var yH=function(t,n,r,i,a){var o=t.width,l=t.height,f=t.layout,u=t.children,h=Object.keys(n),m={left:r.left,leftMirror:r.left,right:o-r.right,rightMirror:o-r.right,top:r.top,topMirror:r.top,bottom:l-r.bottom,bottomMirror:l-r.bottom},v=!!Ei(u,ss);return h.reduce(function(_,x){var w=n[x],S=w.orientation,O=w.domain,C=w.padding,T=C===void 0?{}:C,j=w.mirror,P=w.reversed,R="".concat(S).concat(j?"Mirror":""),$,q,K,H,G;if(w.type==="number"&&(w.padding==="gap"||w.padding==="no-gap")){var te=O[1]-O[0],ie=1/0,X=w.categoricalDomain.sort(Fpe);if(X.forEach(function(ae,de){de>0&&(ie=Math.min((ae||0)-(X[de-1]||0),ie))}),Number.isFinite(ie)){var ee=ie/te,W=w.layout==="vertical"?r.height:r.width;if(w.padding==="gap"&&($=ee*W/2),w.padding==="no-gap"){var B=Hr(t.barCategoryGap,ee*W),U=ee*W/2;$=U-B-(U-B)/W*B}}}i==="xAxis"?q=[r.left+(T.left||0)+($||0),r.left+r.width-(T.right||0)-($||0)]:i==="yAxis"?q=f==="horizontal"?[r.top+r.height-(T.bottom||0),r.top+(T.top||0)]:[r.top+(T.top||0)+($||0),r.top+r.height-(T.bottom||0)-($||0)]:q=w.range,P&&(q=[q[1],q[0]]);var F=BV(w,a,v),M=F.scale,I=F.realScaleType;M.domain(O).range(q),UV(M);var J=zV(M,Oa(Oa({},w),{},{realScaleType:I}));i==="xAxis"?(G=S==="top"&&!j||S==="bottom"&&j,K=r.left,H=m[R]-G*w.height):i==="yAxis"&&(G=S==="left"&&!j||S==="right"&&j,K=m[R]-G*w.width,H=r.top);var Y=Oa(Oa(Oa({},w),J),{},{realScaleType:I,x:K,y:H,scale:M,width:i==="xAxis"?r.width:w.width,height:i==="yAxis"?r.height:w.height});return Y.bandSize=gb(Y,J),!w.hide&&i==="xAxis"?m[R]+=(G?-1:1)*Y.height:w.hide||(m[R]+=(G?-1:1)*Y.width),Oa(Oa({},_),{},cw({},x,Y))},{})},bH=function(t,n){var r=t.x,i=t.y,a=n.x,o=n.y;return{x:Math.min(r,a),y:Math.min(i,o),width:Math.abs(a-r),height:Math.abs(o-i)}},ECe=function(t){var n=t.x1,r=t.y1,i=t.x2,a=t.y2;return bH({x:n,y:r},{x:i,y:a})},wH=function(){function e(t){SCe(this,e),this.scale=t}return OCe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.bandAware,a=r.position;if(n!==void 0){if(a)switch(a){case"start":return this.scale(n);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+o}case"end":{var l=this.bandwidth?this.bandwidth():0;return this.scale(n)+l}default:return this.scale(n)}if(i){var f=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+f}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),i=r[0],a=r[r.length-1];return i<=a?n>=i&&n<=a:n>=a&&n<=i}}],[{key:"create",value:function(n){return new e(n)}}])}();cw(wH,"EPS",1e-4);var kP=function(t){var n=Object.keys(t).reduce(function(r,i){return Oa(Oa({},r),{},cw({},i,wH.create(t[i])))},{});return Oa(Oa({},n),{},{apply:function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.bandAware,l=a.position;return eCe(i,function(f,u){return n[u].apply(f,{bandAware:o,position:l})})},isInRange:function(i){return hH(i,function(a,o){return n[o].isInRange(a)})}})};function TCe(e){return(e%180+180)%180}var ACe=function(t){var n=t.width,r=t.height,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,a=TCe(i),o=a*Math.PI/180,l=Math.atan(r/n),f=o>l&&o<Math.PI-l?r/Math.sin(o):n/Math.cos(o);return Math.abs(f)},YC,x$;function jCe(){if(x$)return YC;x$=1;var e=So(),t=Rv(),n=H1();function r(i){return function(a,o,l){var f=Object(a);if(!t(a)){var u=e(o,3);a=n(a),o=function(m){return u(f[m],m,f)}}var h=i(a,o,l);return h>-1?f[u?a[h]:h]:void 0}}return YC=r,YC}var KC,S$;function PCe(){if(S$)return KC;S$=1;var e=uH();function t(n){var r=e(n),i=r%1;return r===r?i?r-i:r:0}return KC=t,KC}var ZC,O$;function RCe(){if(O$)return ZC;O$=1;var e=wq(),t=So(),n=PCe(),r=Math.max;function i(a,o,l){var f=a==null?0:a.length;if(!f)return-1;var u=l==null?0:n(l);return u<0&&(u=r(f+u,0)),e(a,t(o,3),u)}return ZC=i,ZC}var XC,C$;function MCe(){if(C$)return XC;C$=1;var e=jCe(),t=RCe(),n=e(t);return XC=n,XC}var NCe=MCe();const LCe=Nt(NCe);var DCe=DF();const kCe=Nt(DCe);var ICe=kCe(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),IP=D.createContext(void 0),$P=D.createContext(void 0),_H=D.createContext(void 0),xH=D.createContext({}),SH=D.createContext(void 0),OH=D.createContext(0),CH=D.createContext(0),E$=function(t){var n=t.state,r=n.xAxisMap,i=n.yAxisMap,a=n.offset,o=t.clipPathId,l=t.children,f=t.width,u=t.height,h=ICe(a);return se.createElement(IP.Provider,{value:r},se.createElement($P.Provider,{value:i},se.createElement(xH.Provider,{value:a},se.createElement(_H.Provider,{value:h},se.createElement(SH.Provider,{value:o},se.createElement(OH.Provider,{value:u},se.createElement(CH.Provider,{value:f},l)))))))},$Ce=function(){return D.useContext(SH)},EH=function(t){var n=D.useContext(IP);n==null&&gc();var r=n[t];return r==null&&gc(),r},BCe=function(){var t=D.useContext(IP);return Tl(t)},UCe=function(){var t=D.useContext($P),n=LCe(t,function(r){return hH(r.domain,Number.isFinite)});return n||Tl(t)},TH=function(t){var n=D.useContext($P);n==null&&gc();var r=n[t];return r==null&&gc(),r},zCe=function(){var t=D.useContext(_H);return t},FCe=function(){return D.useContext(xH)},BP=function(){return D.useContext(CH)},UP=function(){return D.useContext(OH)};function Ad(e){"@babel/helpers - typeof";return Ad=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},Ad(e)}function qCe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function VCe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,jH(r.key),r)}}function HCe(e,t,n){return t&&VCe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function WCe(e,t,n){return t=Db(t),GCe(e,AH()?Reflect.construct(t,n||[],Db(e).constructor):t.apply(e,n))}function GCe(e,t){if(t&&(Ad(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return YCe(e)}function YCe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function AH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(AH=function(){return!!e})()}function Db(e){return Db=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Db(e)}function KCe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&tj(e,t)}function tj(e,t){return tj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tj(e,t)}function T$(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?T$(Object(n),!0).forEach(function(r){zP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function zP(e,t,n){return t=jH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jH(e){var t=ZCe(e,"string");return Ad(t)=="symbol"?t:t+""}function ZCe(e,t){if(Ad(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ad(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function XCe(e,t){return tEe(e)||eEe(e,t)||JCe(e,t)||QCe()}function QCe(){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 JCe(e,t){if(e){if(typeof e=="string")return j$(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j$(e,t)}}function j$(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function eEe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function tEe(e){if(Array.isArray(e))return e}function nj(){return nj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nj.apply(this,arguments)}var nEe=function(t,n){var r;return se.isValidElement(t)?r=se.cloneElement(t,n):ht(t)?r=t(n):r=se.createElement("line",nj({},n,{className:"recharts-reference-line-line"})),r},rEe=function(t,n,r,i,a,o,l,f,u){var h=a.x,m=a.y,v=a.width,_=a.height;if(r){var x=u.y,w=t.y.apply(x,{position:o});if(co(u,"discard")&&!t.y.isInRange(w))return null;var S=[{x:h+v,y:w},{x:h,y:w}];return f==="left"?S.reverse():S}if(n){var O=u.x,C=t.x.apply(O,{position:o});if(co(u,"discard")&&!t.x.isInRange(C))return null;var T=[{x:C,y:m+_},{x:C,y:m}];return l==="top"?T.reverse():T}if(i){var j=u.segment,P=j.map(function(R){return t.apply(R,{position:o})});return co(u,"discard")&&ZOe(P,function(R){return!t.isInRange(R)})?null:P}return null};function iEe(e){var t=e.x,n=e.y,r=e.segment,i=e.xAxisId,a=e.yAxisId,o=e.shape,l=e.className,f=e.alwaysShow,u=$Ce(),h=EH(i),m=TH(a),v=zCe();if(!u||!v)return null;Aa(f===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var _=kP({x:h.scale,y:m.scale}),x=Xn(t),w=Xn(n),S=r&&r.length===2,O=rEe(_,x,w,S,v,e.position,h.orientation,m.orientation,e);if(!O)return null;var C=XCe(O,2),T=C[0],j=T.x,P=T.y,R=C[1],$=R.x,q=R.y,K=co(e,"hidden")?"url(#".concat(u,")"):void 0,H=A$(A$({clipPath:K},ot(e,!0)),{},{x1:j,y1:P,x2:$,y2:q});return se.createElement(St,{className:Ce("recharts-reference-line",l)},nEe(o,H),cr.renderCallByParent(e,ECe({x1:j,y1:P,x2:$,y2:q})))}var FP=function(e){function t(){return qCe(this,t),WCe(this,t,arguments)}return KCe(t,e),HCe(t,[{key:"render",value:function(){return se.createElement(iEe,this.props)}}])}(se.Component);zP(FP,"displayName","ReferenceLine");zP(FP,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function rj(){return rj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rj.apply(this,arguments)}function jd(e){"@babel/helpers - typeof";return jd=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},jd(e)}function P$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function R$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P$(Object(n),!0).forEach(function(r){fw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function oEe(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,RH(r.key),r)}}function sEe(e,t,n){return t&&oEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function lEe(e,t,n){return t=kb(t),uEe(e,PH()?Reflect.construct(t,n||[],kb(e).constructor):t.apply(e,n))}function uEe(e,t){if(t&&(jd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return cEe(e)}function cEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PH=function(){return!!e})()}function kb(e){return kb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},kb(e)}function fEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ij(e,t)}function ij(e,t){return ij=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},ij(e,t)}function fw(e,t,n){return t=RH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RH(e){var t=dEe(e,"string");return jd(t)=="symbol"?t:t+""}function dEe(e,t){if(jd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var hEe=function(t){var n=t.x,r=t.y,i=t.xAxis,a=t.yAxis,o=kP({x:i.scale,y:a.scale}),l=o.apply({x:n,y:r},{bandAware:!0});return co(t,"discard")&&!o.isInRange(l)?null:l},dw=function(e){function t(){return aEe(this,t),lEe(this,t,arguments)}return fEe(t,e),sEe(t,[{key:"render",value:function(){var r=this.props,i=r.x,a=r.y,o=r.r,l=r.alwaysShow,f=r.clipPathId,u=Xn(i),h=Xn(a);if(Aa(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!u||!h)return null;var m=hEe(this.props);if(!m)return null;var v=m.x,_=m.y,x=this.props,w=x.shape,S=x.className,O=co(this.props,"hidden")?"url(#".concat(f,")"):void 0,C=R$(R$({clipPath:O},ot(this.props,!0)),{},{cx:v,cy:_});return se.createElement(St,{className:Ce("recharts-reference-dot",S)},t.renderDot(w,C),cr.renderCallByParent(this.props,{x:v-o,y:_-o,width:2*o,height:2*o}))}}])}(se.Component);fw(dw,"displayName","ReferenceDot");fw(dw,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});fw(dw,"renderDot",function(e,t){var n;return se.isValidElement(e)?n=se.cloneElement(e,t):ht(e)?n=e(t):n=se.createElement(kv,rj({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function aj(){return aj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aj.apply(this,arguments)}function Pd(e){"@babel/helpers - typeof";return Pd=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},Pd(e)}function M$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function N$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M$(Object(n),!0).forEach(function(r){hw(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function pEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mEe(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,NH(r.key),r)}}function vEe(e,t,n){return t&&mEe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function gEe(e,t,n){return t=Ib(t),yEe(e,MH()?Reflect.construct(t,n||[],Ib(e).constructor):t.apply(e,n))}function yEe(e,t){if(t&&(Pd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bEe(e)}function bEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function MH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(MH=function(){return!!e})()}function Ib(e){return Ib=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ib(e)}function wEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oj(e,t)}function oj(e,t){return oj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},oj(e,t)}function hw(e,t,n){return t=NH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NH(e){var t=_Ee(e,"string");return Pd(t)=="symbol"?t:t+""}function _Ee(e,t){if(Pd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Pd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var xEe=function(t,n,r,i,a){var o=a.x1,l=a.x2,f=a.y1,u=a.y2,h=a.xAxis,m=a.yAxis;if(!h||!m)return null;var v=kP({x:h.scale,y:m.scale}),_={x:t?v.x.apply(o,{position:"start"}):v.x.rangeMin,y:r?v.y.apply(f,{position:"start"}):v.y.rangeMin},x={x:n?v.x.apply(l,{position:"end"}):v.x.rangeMax,y:i?v.y.apply(u,{position:"end"}):v.y.rangeMax};return co(a,"discard")&&(!v.isInRange(_)||!v.isInRange(x))?null:bH(_,x)},Iv=function(e){function t(){return pEe(this,t),gEe(this,t,arguments)}return wEe(t,e),vEe(t,[{key:"render",value:function(){var r=this.props,i=r.x1,a=r.x2,o=r.y1,l=r.y2,f=r.className,u=r.alwaysShow,h=r.clipPathId;Aa(u===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var m=Xn(i),v=Xn(a),_=Xn(o),x=Xn(l),w=this.props.shape;if(!m&&!v&&!_&&!x&&!w)return null;var S=xEe(m,v,_,x,this.props);if(!S&&!w)return null;var O=co(this.props,"hidden")?"url(#".concat(h,")"):void 0;return se.createElement(St,{className:Ce("recharts-reference-area",f)},t.renderRect(w,N$(N$({clipPath:O},ot(this.props,!0)),S)),cr.renderCallByParent(this.props,S))}}])}(se.Component);hw(Iv,"displayName","ReferenceArea");hw(Iv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});hw(Iv,"renderRect",function(e,t){var n;return se.isValidElement(e)?n=se.cloneElement(e,t):ht(e)?n=e(t):n=se.createElement(DP,aj({},t,{className:"recharts-reference-area-rect"})),n});function LH(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 SEe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return ACe(r,n)}function OEe(e,t,n){var r=n==="width",i=e.x,a=e.y,o=e.width,l=e.height;return t===1?{start:r?i:a,end:r?i+o:a+l}:{start:r?i+o:a+l,end:r?i:a}}function $b(e,t,n,r,i){if(e*t<e*r||e*t>e*i)return!1;var a=n();return e*(t-e*a/2-r)>=0&&e*(t+e*a/2-i)<=0}function CEe(e,t){return LH(e,t+1)}function EEe(e,t,n,r,i){for(var a=(r||[]).slice(),o=t.start,l=t.end,f=0,u=1,h=o,m=function(){var x=r==null?void 0:r[f];if(x===void 0)return{v:LH(r,u)};var w=f,S,O=function(){return S===void 0&&(S=n(x,w)),S},C=x.coordinate,T=f===0||$b(e,C,O,h,l);T||(f=0,h=o,u+=1),T&&(h=C+e*(O()/2+i),f+=u)},v;u<=a.length;)if(v=m(),v)return v.v;return[]}function ov(e){"@babel/helpers - typeof";return ov=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},ov(e)}function L$(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 Pr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L$(Object(n),!0).forEach(function(r){TEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function TEe(e,t,n){return t=AEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AEe(e){var t=jEe(e,"string");return ov(t)=="symbol"?t:t+""}function jEe(e,t){if(ov(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ov(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function PEe(e,t,n,r,i){for(var a=(r||[]).slice(),o=a.length,l=t.start,f=t.end,u=function(v){var _=a[v],x,w=function(){return x===void 0&&(x=n(_,v)),x};if(v===o-1){var S=e*(_.coordinate+e*w()/2-f);a[v]=_=Pr(Pr({},_),{},{tickCoord:S>0?_.coordinate-S*e:_.coordinate})}else a[v]=_=Pr(Pr({},_),{},{tickCoord:_.coordinate});var O=$b(e,_.tickCoord,w,l,f);O&&(f=_.tickCoord-e*(w()/2+i),a[v]=Pr(Pr({},_),{},{isShow:!0}))},h=o-1;h>=0;h--)u(h);return a}function REe(e,t,n,r,i,a){var o=(r||[]).slice(),l=o.length,f=t.start,u=t.end;if(a){var h=r[l-1],m=n(h,l-1),v=e*(h.coordinate+e*m/2-u);o[l-1]=h=Pr(Pr({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate});var _=$b(e,h.tickCoord,function(){return m},f,u);_&&(u=h.tickCoord-e*(m/2+i),o[l-1]=Pr(Pr({},h),{},{isShow:!0}))}for(var x=a?l-1:l,w=function(C){var T=o[C],j,P=function(){return j===void 0&&(j=n(T,C)),j};if(C===0){var R=e*(T.coordinate-e*P()/2-f);o[C]=T=Pr(Pr({},T),{},{tickCoord:R<0?T.coordinate-R*e:T.coordinate})}else o[C]=T=Pr(Pr({},T),{},{tickCoord:T.coordinate});var $=$b(e,T.tickCoord,P,f,u);$&&(f=T.tickCoord+e*(P()/2+i),o[C]=Pr(Pr({},T),{},{isShow:!0}))},S=0;S<x;S++)w(S);return o}function qP(e,t,n){var r=e.tick,i=e.ticks,a=e.viewBox,o=e.minTickGap,l=e.orientation,f=e.interval,u=e.tickFormatter,h=e.unit,m=e.angle;if(!i||!i.length||!r)return[];if(Xe(f)||Os.isSsr)return CEe(i,typeof f=="number"&&Xe(f)?f:0);var v=[],_=l==="top"||l==="bottom"?"width":"height",x=h&&_==="width"?Qp(h,{fontSize:t,letterSpacing:n}):{width:0,height:0},w=function(T,j){var P=ht(u)?u(T.value,j):T.value;return _==="width"?SEe(Qp(P,{fontSize:t,letterSpacing:n}),x,m):Qp(P,{fontSize:t,letterSpacing:n})[_]},S=i.length>=2?Vr(i[1].coordinate-i[0].coordinate):1,O=OEe(a,S,_);return f==="equidistantPreserveStart"?EEe(S,O,w,i,o):(f==="preserveStart"||f==="preserveStartEnd"?v=REe(S,O,w,i,o,f==="preserveStartEnd"):v=PEe(S,O,w,i,o),v.filter(function(C){return C.isShow}))}var MEe=["viewBox"],NEe=["viewBox"],LEe=["ticks"];function Rd(e){"@babel/helpers - typeof";return Rd=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},Rd(e)}function Ff(){return Ff=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ff.apply(this,arguments)}function D$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D$(Object(n),!0).forEach(function(r){VP(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function QC(e,t){if(e==null)return{};var n=DEe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function DEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function kEe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k$(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kH(r.key),r)}}function IEe(e,t,n){return t&&k$(e.prototype,t),n&&k$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $Ee(e,t,n){return t=Bb(t),BEe(e,DH()?Reflect.construct(t,n||[],Bb(e).constructor):t.apply(e,n))}function BEe(e,t){if(t&&(Rd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return UEe(e)}function UEe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function DH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(DH=function(){return!!e})()}function Bb(e){return Bb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Bb(e)}function zEe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&sj(e,t)}function sj(e,t){return sj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},sj(e,t)}function VP(e,t,n){return t=kH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kH(e){var t=FEe(e,"string");return Rd(t)=="symbol"?t:t+""}function FEe(e,t){if(Rd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Rd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oh=function(e){function t(n){var r;return kEe(this,t),r=$Ee(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return zEe(t,e),IEe(t,[{key:"shouldComponentUpdate",value:function(r,i){var a=r.viewBox,o=QC(r,MEe),l=this.props,f=l.viewBox,u=QC(l,NEe);return!Yf(a,f)||!Yf(o,u)||!Yf(i,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var i=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];i&&this.setState({fontSize:window.getComputedStyle(i).fontSize,letterSpacing:window.getComputedStyle(i).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var i=this.props,a=i.x,o=i.y,l=i.width,f=i.height,u=i.orientation,h=i.tickSize,m=i.mirror,v=i.tickMargin,_,x,w,S,O,C,T=m?-1:1,j=r.tickSize||h,P=Xe(r.tickCoord)?r.tickCoord:r.coordinate;switch(u){case"top":_=x=r.coordinate,S=o+ +!m*f,w=S-T*j,C=w-T*v,O=P;break;case"left":w=S=r.coordinate,x=a+ +!m*l,_=x-T*j,O=_-T*v,C=P;break;case"right":w=S=r.coordinate,x=a+ +m*l,_=x+T*j,O=_+T*v,C=P;break;default:_=x=r.coordinate,S=o+ +m*f,w=S+T*j,C=w+T*v,O=P;break}return{line:{x1:_,y1:w,x2:x,y2:S},tick:{x:O,y:C}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o;switch(i){case"left":o=a?"start":"end";break;case"right":o=a?"end":"start";break;default:o="middle";break}return o}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,i=r.orientation,a=r.mirror,o="end";switch(i){case"left":case"right":o="middle";break;case"top":o=a?"start":"end";break;default:o=a?"end":"start";break}return o}},{key:"renderAxisLine",value:function(){var r=this.props,i=r.x,a=r.y,o=r.width,l=r.height,f=r.orientation,u=r.mirror,h=r.axisLine,m=Fr(Fr(Fr({},ot(this.props,!1)),ot(h,!1)),{},{fill:"none"});if(f==="top"||f==="bottom"){var v=+(f==="top"&&!u||f==="bottom"&&u);m=Fr(Fr({},m),{},{x1:i,y1:a+v*l,x2:i+o,y2:a+v*l})}else{var _=+(f==="left"&&!u||f==="right"&&u);m=Fr(Fr({},m),{},{x1:i+_*o,y1:a,x2:i+_*o,y2:a+l})}return se.createElement("line",Ff({},m,{className:Ce("recharts-cartesian-axis-line",Ni(h,"className"))}))}},{key:"renderTicks",value:function(r,i,a){var o=this,l=this.props,f=l.tickLine,u=l.stroke,h=l.tick,m=l.tickFormatter,v=l.unit,_=qP(Fr(Fr({},this.props),{},{ticks:r}),i,a),x=this.getTickTextAnchor(),w=this.getTickVerticalAnchor(),S=ot(this.props,!1),O=ot(h,!1),C=Fr(Fr({},S),{},{fill:"none"},ot(f,!1)),T=_.map(function(j,P){var R=o.getTickLineCoord(j),$=R.line,q=R.tick,K=Fr(Fr(Fr(Fr({textAnchor:x,verticalAnchor:w},S),{},{stroke:"none",fill:u},O),q),{},{index:P,payload:j,visibleTicksCount:_.length,tickFormatter:m});return se.createElement(St,Ff({className:"recharts-cartesian-axis-tick",key:"tick-".concat(j.value,"-").concat(j.coordinate,"-").concat(j.tickCoord)},Hl(o.props,j,P)),f&&se.createElement("line",Ff({},C,$,{className:Ce("recharts-cartesian-axis-tick-line",Ni(f,"className"))})),h&&t.renderTickItem(h,K,"".concat(ht(m)?m(j.value,P):j.value).concat(v||"")))});return se.createElement("g",{className:"recharts-cartesian-axis-ticks"},T)}},{key:"render",value:function(){var r=this,i=this.props,a=i.axisLine,o=i.width,l=i.height,f=i.ticksGenerator,u=i.className,h=i.hide;if(h)return null;var m=this.props,v=m.ticks,_=QC(m,LEe),x=v;return ht(f)&&(x=v&&v.length>0?f(this.props):f(_)),o<=0||l<=0||!x||!x.length?null:se.createElement(St,{className:Ce("recharts-cartesian-axis",u),ref:function(S){r.layerReference=S}},a&&this.renderAxisLine(),this.renderTicks(x,this.state.fontSize,this.state.letterSpacing),cr.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,i,a){var o;return se.isValidElement(r)?o=se.cloneElement(r,i):ht(r)?o=r(i):o=se.createElement(mc,Ff({},i,{className:"recharts-cartesian-axis-tick-value"}),a),o}}])}(D.Component);VP(oh,"displayName","CartesianAxis");VP(oh,"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 qEe=["x1","y1","x2","y2","key"],VEe=["offset"];function yc(e){"@babel/helpers - typeof";return yc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},yc(e)}function I$(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 Rr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?I$(Object(n),!0).forEach(function(r){HEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HEe(e,t,n){return t=WEe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WEe(e){var t=GEe(e,"string");return yc(t)=="symbol"?t:t+""}function GEe(e,t){if(yc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(yc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ju(){return Ju=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ju.apply(this,arguments)}function $$(e,t){if(e==null)return{};var n=YEe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function YEe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var KEe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,i=t.x,a=t.y,o=t.width,l=t.height,f=t.ry;return se.createElement("rect",{x:i,y:a,ry:f,width:o,height:l,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function IH(e,t){var n;if(se.isValidElement(e))n=se.cloneElement(e,t);else if(ht(e))n=e(t);else{var r=t.x1,i=t.y1,a=t.x2,o=t.y2,l=t.key,f=$$(t,qEe),u=ot(f,!1);u.offset;var h=$$(u,VEe);n=se.createElement("line",Ju({},h,{x1:r,y1:i,x2:a,y2:o,fill:"none",key:l}))}return n}function ZEe(e){var t=e.x,n=e.width,r=e.horizontal,i=r===void 0?!0:r,a=e.horizontalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,f){var u=Rr(Rr({},e),{},{x1:t,y1:l,x2:t+n,y2:l,key:"line-".concat(f),index:f});return IH(i,u)});return se.createElement("g",{className:"recharts-cartesian-grid-horizontal"},o)}function XEe(e){var t=e.y,n=e.height,r=e.vertical,i=r===void 0?!0:r,a=e.verticalPoints;if(!i||!a||!a.length)return null;var o=a.map(function(l,f){var u=Rr(Rr({},e),{},{x1:l,y1:t,x2:l,y2:t+n,key:"line-".concat(f),index:f});return IH(i,u)});return se.createElement("g",{className:"recharts-cartesian-grid-vertical"},o)}function QEe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,i=e.y,a=e.width,o=e.height,l=e.horizontalPoints,f=e.horizontal,u=f===void 0?!0:f;if(!u||!t||!t.length)return null;var h=l.map(function(v){return Math.round(v+i-i)}).sort(function(v,_){return v-_});i!==h[0]&&h.unshift(0);var m=h.map(function(v,_){var x=!h[_+1],w=x?i+o-v:h[_+1]-v;if(w<=0)return null;var S=_%t.length;return se.createElement("rect",{key:"react-".concat(_),y:v,x:r,height:w,width:a,stroke:"none",fill:t[S],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return se.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},m)}function JEe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,i=e.fillOpacity,a=e.x,o=e.y,l=e.width,f=e.height,u=e.verticalPoints;if(!n||!r||!r.length)return null;var h=u.map(function(v){return Math.round(v+a-a)}).sort(function(v,_){return v-_});a!==h[0]&&h.unshift(0);var m=h.map(function(v,_){var x=!h[_+1],w=x?a+l-v:h[_+1]-v;if(w<=0)return null;var S=_%r.length;return se.createElement("rect",{key:"react-".concat(_),x:v,y:o,width:w,height:f,stroke:"none",fill:r[S],fillOpacity:i,className:"recharts-cartesian-grid-bg"})});return se.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},m)}var eTe=function(t,n){var r=t.xAxis,i=t.width,a=t.height,o=t.offset;return $V(qP(Rr(Rr(Rr({},oh.defaultProps),r),{},{ticks:ns(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.left,o.left+o.width,n)},tTe=function(t,n){var r=t.yAxis,i=t.width,a=t.height,o=t.offset;return $V(qP(Rr(Rr(Rr({},oh.defaultProps),r),{},{ticks:ns(r,!0),viewBox:{x:0,y:0,width:i,height:a}})),o.top,o.top+o.height,n)},Tf={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function HP(e){var t,n,r,i,a,o,l=BP(),f=UP(),u=FCe(),h=Rr(Rr({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:Tf.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:Tf.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:Tf.horizontal,horizontalFill:(i=e.horizontalFill)!==null&&i!==void 0?i:Tf.horizontalFill,vertical:(a=e.vertical)!==null&&a!==void 0?a:Tf.vertical,verticalFill:(o=e.verticalFill)!==null&&o!==void 0?o:Tf.verticalFill,x:Xe(e.x)?e.x:u.left,y:Xe(e.y)?e.y:u.top,width:Xe(e.width)?e.width:u.width,height:Xe(e.height)?e.height:u.height}),m=h.x,v=h.y,_=h.width,x=h.height,w=h.syncWithTicks,S=h.horizontalValues,O=h.verticalValues,C=BCe(),T=UCe();if(!Xe(_)||_<=0||!Xe(x)||x<=0||!Xe(m)||m!==+m||!Xe(v)||v!==+v)return null;var j=h.verticalCoordinatesGenerator||eTe,P=h.horizontalCoordinatesGenerator||tTe,R=h.horizontalPoints,$=h.verticalPoints;if((!R||!R.length)&&ht(P)){var q=S&&S.length,K=P({yAxis:T?Rr(Rr({},T),{},{ticks:q?S:T.ticks}):void 0,width:l,height:f,offset:u},q?!0:w);Aa(Array.isArray(K),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(yc(K),"]")),Array.isArray(K)&&(R=K)}if((!$||!$.length)&&ht(j)){var H=O&&O.length,G=j({xAxis:C?Rr(Rr({},C),{},{ticks:H?O:C.ticks}):void 0,width:l,height:f,offset:u},H?!0:w);Aa(Array.isArray(G),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(yc(G),"]")),Array.isArray(G)&&($=G)}return se.createElement("g",{className:"recharts-cartesian-grid"},se.createElement(KEe,{fill:h.fill,fillOpacity:h.fillOpacity,x:h.x,y:h.y,width:h.width,height:h.height,ry:h.ry}),se.createElement(ZEe,Ju({},h,{offset:u,horizontalPoints:R,xAxis:C,yAxis:T})),se.createElement(XEe,Ju({},h,{offset:u,verticalPoints:$,xAxis:C,yAxis:T})),se.createElement(QEe,Ju({},h,{horizontalPoints:R})),se.createElement(JEe,Ju({},h,{verticalPoints:$})))}HP.displayName="CartesianGrid";var nTe=["type","layout","connectNulls","ref"],rTe=["key"];function Md(e){"@babel/helpers - typeof";return Md=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},Md(e)}function B$(e,t){if(e==null)return{};var n=iTe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iTe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function im(){return im=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},im.apply(this,arguments)}function U$(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 xi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U$(Object(n),!0).forEach(function(r){Ca(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Af(e){return lTe(e)||sTe(e)||oTe(e)||aTe()}function aTe(){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 oTe(e,t){if(e){if(typeof e=="string")return lj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lj(e,t)}}function sTe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lTe(e){if(Array.isArray(e))return lj(e)}function lj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z$(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,BH(r.key),r)}}function cTe(e,t,n){return t&&z$(e.prototype,t),n&&z$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function fTe(e,t,n){return t=Ub(t),dTe(e,$H()?Reflect.construct(t,n||[],Ub(e).constructor):t.apply(e,n))}function dTe(e,t){if(t&&(Md(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hTe(e)}function hTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $H(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($H=function(){return!!e})()}function Ub(e){return Ub=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ub(e)}function pTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&uj(e,t)}function uj(e,t){return uj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},uj(e,t)}function Ca(e,t,n){return t=BH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BH(e){var t=mTe(e,"string");return Md(t)=="symbol"?t:t+""}function mTe(e,t){if(Md(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Md(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var sh=function(e){function t(){var n;uTe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=fTe(this,t,[].concat(i)),Ca(n,"state",{isAnimationFinished:!0,totalLength:0}),Ca(n,"generateSimpleStrokeDasharray",function(o,l){return"".concat(l,"px ").concat(o-l,"px")}),Ca(n,"getStrokeDasharray",function(o,l,f){var u=f.reduce(function(O,C){return O+C});if(!u)return n.generateSimpleStrokeDasharray(l,o);for(var h=Math.floor(o/u),m=o%u,v=l-o,_=[],x=0,w=0;x<f.length;w+=f[x],++x)if(w+f[x]>m){_=[].concat(Af(f.slice(0,x)),[m-w]);break}var S=_.length%2===0?[0,v]:[v];return[].concat(Af(t.repeat(f,h)),Af(_),S).map(function(O){return"".concat(O,"px")}).join(", ")}),Ca(n,"id",eu("recharts-line-")),Ca(n,"pathRef",function(o){n.mainCurve=o}),Ca(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Ca(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return pTe(t,e),cTe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,i){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var a=this.props,o=a.points,l=a.xAxis,f=a.yAxis,u=a.layout,h=a.children,m=Yr(h,ah);if(!m)return null;var v=function(w,S){return{x:w.x,y:w.y,value:w.value,errorVal:mn(w.payload,S)}},_={clipPath:r?"url(#clipPath-".concat(i,")"):null};return se.createElement(St,_,m.map(function(x){return se.cloneElement(x,{key:"bar-".concat(x.props.dataKey),data:o,xAxis:l,yAxis:f,layout:u,dataPointFormatter:v})}))}},{key:"renderDots",value:function(r,i,a){var o=this.props.isAnimationActive;if(o&&!this.state.isAnimationFinished)return null;var l=this.props,f=l.dot,u=l.points,h=l.dataKey,m=ot(this.props,!1),v=ot(f,!0),_=u.map(function(w,S){var O=xi(xi(xi({key:"dot-".concat(S),r:3},m),v),{},{index:S,cx:w.x,cy:w.y,value:w.value,dataKey:h,payload:w.payload,points:u});return t.renderDotItem(f,O)}),x={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return se.createElement(St,im({className:"recharts-line-dots",key:"dots"},x),_)}},{key:"renderCurveStatically",value:function(r,i,a,o){var l=this.props,f=l.type,u=l.layout,h=l.connectNulls;l.ref;var m=B$(l,nTe),v=xi(xi(xi({},ot(m,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:i?"url(#clipPath-".concat(a,")"):null,points:r},o),{},{type:f,layout:u,connectNulls:h});return se.createElement(kl,im({},v,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,i){var a=this,o=this.props,l=o.points,f=o.strokeDasharray,u=o.isAnimationActive,h=o.animationBegin,m=o.animationDuration,v=o.animationEasing,_=o.animationId,x=o.animateNewValues,w=o.width,S=o.height,O=this.state,C=O.prevPoints,T=O.totalLength;return se.createElement(fa,{begin:h,duration:m,isActive:u,easing:v,from:{t:0},to:{t:1},key:"line-".concat(_),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(j){var P=j.t;if(C){var R=C.length/l.length,$=l.map(function(te,ie){var X=Math.floor(ie*R);if(C[X]){var ee=C[X],W=En(ee.x,te.x),B=En(ee.y,te.y);return xi(xi({},te),{},{x:W(P),y:B(P)})}if(x){var U=En(w*2,te.x),F=En(S/2,te.y);return xi(xi({},te),{},{x:U(P),y:F(P)})}return xi(xi({},te),{},{x:te.x,y:te.y})});return a.renderCurveStatically($,r,i)}var q=En(0,T),K=q(P),H;if(f){var G="".concat(f).split(/[,\s]+/gim).map(function(te){return parseFloat(te)});H=a.getStrokeDasharray(K,T,G)}else H=a.generateSimpleStrokeDasharray(T,K);return a.renderCurveStatically(l,r,i,{strokeDasharray:H})})}},{key:"renderCurve",value:function(r,i){var a=this.props,o=a.points,l=a.isAnimationActive,f=this.state,u=f.prevPoints,h=f.totalLength;return l&&o&&o.length&&(!u&&h>0||!Wl(u,o))?this.renderCurveWithAnimation(r,i):this.renderCurveStatically(o,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,o=i.dot,l=i.points,f=i.className,u=i.xAxis,h=i.yAxis,m=i.top,v=i.left,_=i.width,x=i.height,w=i.isAnimationActive,S=i.id;if(a||!l||!l.length)return null;var O=this.state.isAnimationFinished,C=l.length===1,T=Ce("recharts-line",f),j=u&&u.allowDataOverflow,P=h&&h.allowDataOverflow,R=j||P,$=pt(S)?this.id:S,q=(r=ot(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},K=q.r,H=K===void 0?3:K,G=q.strokeWidth,te=G===void 0?2:G,ie=UF(o)?o:{},X=ie.clipDot,ee=X===void 0?!0:X,W=H*2+te;return se.createElement(St,{className:T},j||P?se.createElement("defs",null,se.createElement("clipPath",{id:"clipPath-".concat($)},se.createElement("rect",{x:j?v:v-_/2,y:P?m:m-x/2,width:j?_:_*2,height:P?x:x*2})),!ee&&se.createElement("clipPath",{id:"clipPath-dots-".concat($)},se.createElement("rect",{x:v-W/2,y:m-W/2,width:_+W,height:x+W}))):null,!C&&this.renderCurve(R,$),this.renderErrorBar(R,$),(C||o)&&this.renderDots(R,ee,$),(!w||O)&&ja.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,i){for(var a=r.length%2!==0?[].concat(Af(r),[0]):r,o=[],l=0;l<i;++l)o=[].concat(Af(o),Af(a));return o}},{key:"renderDotItem",value:function(r,i){var a;if(se.isValidElement(r))a=se.cloneElement(r,i);else if(ht(r))a=r(i);else{var o=i.key,l=B$(i,rTe),f=Ce("recharts-line-dot",typeof r!="boolean"?r.className:"");a=se.createElement(kv,im({key:o},l,{className:f}))}return a}}])}(D.PureComponent);Ca(sh,"displayName","Line");Ca(sh,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Os.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Ca(sh,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,i=e.xAxisTicks,a=e.yAxisTicks,o=e.dataKey,l=e.bandSize,f=e.displayedData,u=e.offset,h=t.layout,m=f.map(function(v,_){var x=mn(v,o);return h==="horizontal"?{x:wd({axis:n,ticks:i,bandSize:l,entry:v,index:_}),y:pt(x)?null:r.scale(x),value:x,payload:v}:{x:pt(x)?null:n.scale(x),y:wd({axis:r,ticks:a,bandSize:l,entry:v,index:_}),value:x,payload:v}});return xi({points:m,layout:h},u)});var vTe=["layout","type","stroke","connectNulls","isRange","ref"],gTe=["key"],UH;function Nd(e){"@babel/helpers - typeof";return Nd=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},Nd(e)}function zH(e,t){if(e==null)return{};var n=yTe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function yTe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ec(){return ec=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ec.apply(this,arguments)}function F$(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 Sl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F$(Object(n),!0).forEach(function(r){oo(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function bTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function q$(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,qH(r.key),r)}}function wTe(e,t,n){return t&&q$(e.prototype,t),n&&q$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function _Te(e,t,n){return t=zb(t),xTe(e,FH()?Reflect.construct(t,n||[],zb(e).constructor):t.apply(e,n))}function xTe(e,t){if(t&&(Nd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return STe(e)}function STe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function FH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(FH=function(){return!!e})()}function zb(e){return zb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},zb(e)}function OTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&cj(e,t)}function cj(e,t){return cj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},cj(e,t)}function oo(e,t,n){return t=qH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qH(e){var t=CTe(e,"string");return Nd(t)=="symbol"?t:t+""}function CTe(e,t){if(Nd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Nd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Ac=function(e){function t(){var n;bTe(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=_Te(this,t,[].concat(i)),oo(n,"state",{isAnimationFinished:!0}),oo(n,"id",eu("recharts-area-")),oo(n,"handleAnimationEnd",function(){var o=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),ht(o)&&o()}),oo(n,"handleAnimationStart",function(){var o=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),ht(o)&&o()}),n}return OTe(t,e),wTe(t,[{key:"renderDots",value:function(r,i,a){var o=this.props.isAnimationActive,l=this.state.isAnimationFinished;if(o&&!l)return null;var f=this.props,u=f.dot,h=f.points,m=f.dataKey,v=ot(this.props,!1),_=ot(u,!0),x=h.map(function(S,O){var C=Sl(Sl(Sl({key:"dot-".concat(O),r:3},v),_),{},{index:O,cx:S.x,cy:S.y,dataKey:m,value:S.value,payload:S.payload,points:h});return t.renderDotItem(u,C)}),w={clipPath:r?"url(#clipPath-".concat(i?"":"dots-").concat(a,")"):null};return se.createElement(St,ec({className:"recharts-area-dots"},w),x)}},{key:"renderHorizontalRect",value:function(r){var i=this.props,a=i.baseLine,o=i.points,l=i.strokeWidth,f=o[0].x,u=o[o.length-1].x,h=r*Math.abs(f-u),m=jl(o.map(function(v){return v.y||0}));return Xe(a)&&typeof a=="number"?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(jl(a.map(function(v){return v.y||0})),m)),Xe(m)?se.createElement("rect",{x:f<u?f:f-h,y:0,width:h,height:Math.floor(m+(l?parseInt("".concat(l),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var i=this.props,a=i.baseLine,o=i.points,l=i.strokeWidth,f=o[0].y,u=o[o.length-1].y,h=r*Math.abs(f-u),m=jl(o.map(function(v){return v.x||0}));return Xe(a)&&typeof a=="number"?m=Math.max(a,m):a&&Array.isArray(a)&&a.length&&(m=Math.max(jl(a.map(function(v){return v.x||0})),m)),Xe(m)?se.createElement("rect",{x:0,y:f<u?f:f-h,width:m+(l?parseInt("".concat(l),10):1),height:Math.floor(h)}):null}},{key:"renderClipRect",value:function(r){var i=this.props.layout;return i==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,i,a,o){var l=this.props,f=l.layout,u=l.type,h=l.stroke,m=l.connectNulls,v=l.isRange;l.ref;var _=zH(l,vTe);return se.createElement(St,{clipPath:a?"url(#clipPath-".concat(o,")"):null},se.createElement(kl,ec({},ot(_,!0),{points:r,connectNulls:m,type:u,baseLine:i,layout:f,stroke:"none",className:"recharts-area-area"})),h!=="none"&&se.createElement(kl,ec({},ot(this.props,!1),{className:"recharts-area-curve",layout:f,type:u,connectNulls:m,fill:"none",points:r})),h!=="none"&&v&&se.createElement(kl,ec({},ot(this.props,!1),{className:"recharts-area-curve",layout:f,type:u,connectNulls:m,fill:"none",points:i})))}},{key:"renderAreaWithAnimation",value:function(r,i){var a=this,o=this.props,l=o.points,f=o.baseLine,u=o.isAnimationActive,h=o.animationBegin,m=o.animationDuration,v=o.animationEasing,_=o.animationId,x=this.state,w=x.prevPoints,S=x.prevBaseLine;return se.createElement(fa,{begin:h,duration:m,isActive:u,easing:v,from:{t:0},to:{t:1},key:"area-".concat(_),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(O){var C=O.t;if(w){var T=w.length/l.length,j=l.map(function(q,K){var H=Math.floor(K*T);if(w[H]){var G=w[H],te=En(G.x,q.x),ie=En(G.y,q.y);return Sl(Sl({},q),{},{x:te(C),y:ie(C)})}return q}),P;if(Xe(f)&&typeof f=="number"){var R=En(S,f);P=R(C)}else if(pt(f)||eh(f)){var $=En(S,0);P=$(C)}else P=f.map(function(q,K){var H=Math.floor(K*T);if(S[H]){var G=S[H],te=En(G.x,q.x),ie=En(G.y,q.y);return Sl(Sl({},q),{},{x:te(C),y:ie(C)})}return q});return a.renderAreaStatically(j,P,r,i)}return se.createElement(St,null,se.createElement("defs",null,se.createElement("clipPath",{id:"animationClipPath-".concat(i)},a.renderClipRect(C))),se.createElement(St,{clipPath:"url(#animationClipPath-".concat(i,")")},a.renderAreaStatically(l,f,r,i)))})}},{key:"renderArea",value:function(r,i){var a=this.props,o=a.points,l=a.baseLine,f=a.isAnimationActive,u=this.state,h=u.prevPoints,m=u.prevBaseLine,v=u.totalLength;return f&&o&&o.length&&(!h&&v>0||!Wl(h,o)||!Wl(m,l))?this.renderAreaWithAnimation(r,i):this.renderAreaStatically(o,l,r,i)}},{key:"render",value:function(){var r,i=this.props,a=i.hide,o=i.dot,l=i.points,f=i.className,u=i.top,h=i.left,m=i.xAxis,v=i.yAxis,_=i.width,x=i.height,w=i.isAnimationActive,S=i.id;if(a||!l||!l.length)return null;var O=this.state.isAnimationFinished,C=l.length===1,T=Ce("recharts-area",f),j=m&&m.allowDataOverflow,P=v&&v.allowDataOverflow,R=j||P,$=pt(S)?this.id:S,q=(r=ot(o,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},K=q.r,H=K===void 0?3:K,G=q.strokeWidth,te=G===void 0?2:G,ie=UF(o)?o:{},X=ie.clipDot,ee=X===void 0?!0:X,W=H*2+te;return se.createElement(St,{className:T},j||P?se.createElement("defs",null,se.createElement("clipPath",{id:"clipPath-".concat($)},se.createElement("rect",{x:j?h:h-_/2,y:P?u:u-x/2,width:j?_:_*2,height:P?x:x*2})),!ee&&se.createElement("clipPath",{id:"clipPath-dots-".concat($)},se.createElement("rect",{x:h-W/2,y:u-W/2,width:_+W,height:x+W}))):null,C?null:this.renderArea(R,$),(o||C)&&this.renderDots(R,ee,$),(!w||O)&&ja.renderCallByParent(this.props,l))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:i.curPoints,prevBaseLine:i.curBaseLine}:r.points!==i.curPoints||r.baseLine!==i.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(D.PureComponent);UH=Ac;oo(Ac,"displayName","Area");oo(Ac,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Os.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});oo(Ac,"getBaseValue",function(e,t,n,r){var i=e.layout,a=e.baseValue,o=t.props.baseValue,l=o??a;if(Xe(l)&&typeof l=="number")return l;var f=i==="horizontal"?r:n,u=f.scale.domain();if(f.type==="number"){var h=Math.max(u[0],u[1]),m=Math.min(u[0],u[1]);return l==="dataMin"?m:l==="dataMax"||h<0?h:Math.max(Math.min(u[0],u[1]),0)}return l==="dataMin"?u[0]:l==="dataMax"?u[1]:u[0]});oo(Ac,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,i=e.yAxis,a=e.xAxisTicks,o=e.yAxisTicks,l=e.bandSize,f=e.dataKey,u=e.stackedData,h=e.dataStartIndex,m=e.displayedData,v=e.offset,_=t.layout,x=u&&u.length,w=UH.getBaseValue(t,n,r,i),S=_==="horizontal",O=!1,C=m.map(function(j,P){var R;x?R=u[h+P]:(R=mn(j,f),Array.isArray(R)?O=!0:R=[w,R]);var $=R[1]==null||x&&mn(j,f)==null;return S?{x:wd({axis:r,ticks:a,bandSize:l,entry:j,index:P}),y:$?null:i.scale(R[1]),value:R,payload:j}:{x:$?null:r.scale(R[1]),y:wd({axis:i,ticks:o,bandSize:l,entry:j,index:P}),value:R,payload:j}}),T;return x||O?T=C.map(function(j){var P=Array.isArray(j.value)?j.value[0]:null;return S?{x:j.x,y:P!=null&&j.y!=null?i.scale(P):null}:{x:P!=null?r.scale(P):null,y:j.y}}):T=S?i.scale(w):r.scale(w),Sl({points:C,baseLine:T,layout:_,isRange:O},v)});oo(Ac,"renderDotItem",function(e,t){var n;if(se.isValidElement(e))n=se.cloneElement(e,t);else if(ht(e))n=e(t);else{var r=Ce("recharts-area-dot",typeof e!="boolean"?e.className:""),i=t.key,a=zH(t,gTe);n=se.createElement(kv,ec({},a,{key:i,className:r}))}return n});function Ld(e){"@babel/helpers - typeof";return Ld=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},Ld(e)}function ETe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function TTe(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,WH(r.key),r)}}function ATe(e,t,n){return t&&TTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function jTe(e,t,n){return t=Fb(t),PTe(e,VH()?Reflect.construct(t,n||[],Fb(e).constructor):t.apply(e,n))}function PTe(e,t){if(t&&(Ld(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return RTe(e)}function RTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function VH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(VH=function(){return!!e})()}function Fb(e){return Fb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fb(e)}function MTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&fj(e,t)}function fj(e,t){return fj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},fj(e,t)}function HH(e,t,n){return t=WH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function WH(e){var t=NTe(e,"string");return Ld(t)=="symbol"?t:t+""}function NTe(e,t){if(Ld(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ld(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var pw=function(e){function t(){return ETe(this,t),jTe(this,t,arguments)}return MTe(t,e),ATe(t,[{key:"render",value:function(){return null}}])}(se.Component);HH(pw,"displayName","ZAxis");HH(pw,"defaultProps",{zAxisId:0,range:[64,64],scale:"auto",type:"number"});var LTe=["option","isActive"];function am(){return am=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},am.apply(this,arguments)}function DTe(e,t){if(e==null)return{};var n=kTe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kTe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ITe(e){var t=e.option,n=e.isActive,r=DTe(e,LTe);return typeof t=="string"?se.createElement(Ab,am({option:se.createElement(V1,am({type:t},r)),isActive:n,shapeType:"symbols"},r)):se.createElement(Ab,am({option:t,isActive:n,shapeType:"symbols"},r))}function Dd(e){"@babel/helpers - typeof";return Dd=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},Dd(e)}function om(){return om=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},om.apply(this,arguments)}function V$(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 Ji(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V$(Object(n),!0).forEach(function(r){Rl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function $Te(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H$(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,YH(r.key),r)}}function BTe(e,t,n){return t&&H$(e.prototype,t),n&&H$(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function UTe(e,t,n){return t=qb(t),zTe(e,GH()?Reflect.construct(t,n||[],qb(e).constructor):t.apply(e,n))}function zTe(e,t){if(t&&(Dd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return FTe(e)}function FTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GH=function(){return!!e})()}function qb(e){return qb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},qb(e)}function qTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&dj(e,t)}function dj(e,t){return dj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},dj(e,t)}function Rl(e,t,n){return t=YH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YH(e){var t=VTe(e,"string");return Dd(t)=="symbol"?t:t+""}function VTe(e,t){if(Dd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Dd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var mw=function(e){function t(){var n;$Te(this,t);for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return n=UTe(this,t,[].concat(i)),Rl(n,"state",{isAnimationFinished:!1}),Rl(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0})}),Rl(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1})}),Rl(n,"id",eu("recharts-scatter-")),n}return qTe(t,e),BTe(t,[{key:"renderSymbolsStatically",value:function(r){var i=this,a=this.props,o=a.shape,l=a.activeShape,f=a.activeIndex,u=ot(this.props,!1);return r.map(function(h,m){var v=f===m,_=v?l:o,x=Ji(Ji({},u),h);return se.createElement(St,om({className:"recharts-scatter-symbol",key:"symbol-".concat(h==null?void 0:h.cx,"-").concat(h==null?void 0:h.cy,"-").concat(h==null?void 0:h.size,"-").concat(m)},Hl(i.props,h,m),{role:"img"}),se.createElement(ITe,om({option:_,isActive:v,key:"symbol-".concat(m)},x)))})}},{key:"renderSymbolsWithAnimation",value:function(){var r=this,i=this.props,a=i.points,o=i.isAnimationActive,l=i.animationBegin,f=i.animationDuration,u=i.animationEasing,h=i.animationId,m=this.state.prevPoints;return se.createElement(fa,{begin:l,duration:f,isActive:o,easing:u,from:{t:0},to:{t:1},key:"pie-".concat(h),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(v){var _=v.t,x=a.map(function(w,S){var O=m&&m[S];if(O){var C=En(O.cx,w.cx),T=En(O.cy,w.cy),j=En(O.size,w.size);return Ji(Ji({},w),{},{cx:C(_),cy:T(_),size:j(_)})}var P=En(0,w.size);return Ji(Ji({},w),{},{size:P(_)})});return se.createElement(St,null,r.renderSymbolsStatically(x))})}},{key:"renderSymbols",value:function(){var r=this.props,i=r.points,a=r.isAnimationActive,o=this.state.prevPoints;return a&&i&&i.length&&(!o||!Wl(o,i))?this.renderSymbolsWithAnimation():this.renderSymbolsStatically(i)}},{key:"renderErrorBar",value:function(){var r=this.props.isAnimationActive;if(r&&!this.state.isAnimationFinished)return null;var i=this.props,a=i.points,o=i.xAxis,l=i.yAxis,f=i.children,u=Yr(f,ah);return u?u.map(function(h,m){var v=h.props,_=v.direction,x=v.dataKey;return se.cloneElement(h,{key:"".concat(_,"-").concat(x,"-").concat(a[m]),data:a,xAxis:o,yAxis:l,layout:_==="x"?"vertical":"horizontal",dataPointFormatter:function(S,O){return{x:S.cx,y:S.cy,value:_==="x"?+S.node.x:+S.node.y,errorVal:mn(S,O)}}})}):null}},{key:"renderLine",value:function(){var r=this.props,i=r.points,a=r.line,o=r.lineType,l=r.lineJointType,f=ot(this.props,!1),u=ot(a,!1),h,m;if(o==="joint")h=i.map(function(T){return{x:T.cx,y:T.cy}});else if(o==="fitting"){var v=zpe(i),_=v.xmin,x=v.xmax,w=v.a,S=v.b,O=function(j){return w*j+S};h=[{x:_,y:O(_)},{x,y:O(x)}]}var C=Ji(Ji(Ji({},f),{},{fill:"none",stroke:f&&f.fill},u),{},{points:h});return se.isValidElement(a)?m=se.cloneElement(a,C):ht(a)?m=a(C):m=se.createElement(kl,om({},C,{type:l})),se.createElement(St,{className:"recharts-scatter-line",key:"recharts-scatter-line"},m)}},{key:"render",value:function(){var r=this.props,i=r.hide,a=r.points,o=r.line,l=r.className,f=r.xAxis,u=r.yAxis,h=r.left,m=r.top,v=r.width,_=r.height,x=r.id,w=r.isAnimationActive;if(i||!a||!a.length)return null;var S=this.state.isAnimationFinished,O=Ce("recharts-scatter",l),C=f&&f.allowDataOverflow,T=u&&u.allowDataOverflow,j=C||T,P=pt(x)?this.id:x;return se.createElement(St,{className:O,clipPath:j?"url(#clipPath-".concat(P,")"):null},C||T?se.createElement("defs",null,se.createElement("clipPath",{id:"clipPath-".concat(P)},se.createElement("rect",{x:C?h:h-v/2,y:T?m:m-_/2,width:C?v:v*2,height:T?_:_*2}))):null,o&&this.renderLine(),this.renderErrorBar(),se.createElement(St,{key:"recharts-scatter-symbols"},this.renderSymbols()),(!w||S)&&ja.renderCallByParent(this.props,a))}}],[{key:"getDerivedStateFromProps",value:function(r,i){return r.animationId!==i.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:i.curPoints}:r.points!==i.curPoints?{curPoints:r.points}:null}}])}(D.PureComponent);Rl(mw,"displayName","Scatter");Rl(mw,"defaultProps",{xAxisId:0,yAxisId:0,zAxisId:0,legendType:"circle",lineType:"joint",lineJointType:"linear",data:[],shape:"circle",hide:!1,isAnimationActive:!Os.isSsr,animationBegin:0,animationDuration:400,animationEasing:"linear"});Rl(mw,"getComposedData",function(e){var t=e.xAxis,n=e.yAxis,r=e.zAxis,i=e.item,a=e.displayedData,o=e.xAxisTicks,l=e.yAxisTicks,f=e.offset,u=i.props.tooltipType,h=Yr(i.props.children,Ll),m=pt(t.dataKey)?i.props.dataKey:t.dataKey,v=pt(n.dataKey)?i.props.dataKey:n.dataKey,_=r&&r.dataKey,x=r?r.range:pw.defaultProps.range,w=x&&x[0],S=t.scale.bandwidth?t.scale.bandwidth():0,O=n.scale.bandwidth?n.scale.bandwidth():0,C=a.map(function(T,j){var P=mn(T,m),R=mn(T,v),$=!pt(_)&&mn(T,_)||"-",q=[{name:pt(t.dataKey)?i.props.name:t.name||t.dataKey,unit:t.unit||"",value:P,payload:T,dataKey:m,type:u},{name:pt(n.dataKey)?i.props.name:n.name||n.dataKey,unit:n.unit||"",value:R,payload:T,dataKey:v,type:u}];$!=="-"&&q.push({name:r.name||r.dataKey,unit:r.unit||"",value:$,payload:T,dataKey:_,type:u});var K=wd({axis:t,ticks:o,bandSize:S,entry:T,index:j,dataKey:m}),H=wd({axis:n,ticks:l,bandSize:O,entry:T,index:j,dataKey:v}),G=$!=="-"?r.scale($):w,te=Math.sqrt(Math.max(G,0)/Math.PI);return Ji(Ji({},T),{},{cx:K,cy:H,x:K-te,y:H-te,xAxis:t,yAxis:n,zAxis:r,width:2*te,height:2*te,size:G,node:{x:P,y:R,z:$},tooltipPayload:q,tooltipPosition:{x:K,y:H},payload:T},h&&h[j]&&h[j].props)});return Ji({points:C},f)});function kd(e){"@babel/helpers - typeof";return kd=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},kd(e)}function HTe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function WTe(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,XH(r.key),r)}}function GTe(e,t,n){return t&&WTe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function YTe(e,t,n){return t=Vb(t),KTe(e,KH()?Reflect.construct(t,n||[],Vb(e).constructor):t.apply(e,n))}function KTe(e,t){if(t&&(kd(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ZTe(e)}function ZTe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function KH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(KH=function(){return!!e})()}function Vb(e){return Vb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vb(e)}function XTe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hj(e,t)}function hj(e,t){return hj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},hj(e,t)}function ZH(e,t,n){return t=XH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XH(e){var t=QTe(e,"string");return kd(t)=="symbol"?t:t+""}function QTe(e,t){if(kd(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kd(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function pj(){return pj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pj.apply(this,arguments)}function JTe(e){var t=e.xAxisId,n=BP(),r=UP(),i=EH(t);return i==null?null:se.createElement(oh,pj({},i,{className:Ce("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(o){return ns(o,!0)}}))}var lh=function(e){function t(){return HTe(this,t),YTe(this,t,arguments)}return XTe(t,e),GTe(t,[{key:"render",value:function(){return se.createElement(JTe,this.props)}}])}(se.Component);ZH(lh,"displayName","XAxis");ZH(lh,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function Id(e){"@babel/helpers - typeof";return Id=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},Id(e)}function eAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tAe(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,eW(r.key),r)}}function nAe(e,t,n){return t&&tAe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function rAe(e,t,n){return t=Hb(t),iAe(e,QH()?Reflect.construct(t,n||[],Hb(e).constructor):t.apply(e,n))}function iAe(e,t){if(t&&(Id(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aAe(e)}function aAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function QH(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(QH=function(){return!!e})()}function Hb(e){return Hb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Hb(e)}function oAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mj(e,t)}function mj(e,t){return mj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},mj(e,t)}function JH(e,t,n){return t=eW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eW(e){var t=sAe(e,"string");return Id(t)=="symbol"?t:t+""}function sAe(e,t){if(Id(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Id(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function vj(){return vj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vj.apply(this,arguments)}var lAe=function(t){var n=t.yAxisId,r=BP(),i=UP(),a=TH(n);return a==null?null:se.createElement(oh,vj({},a,{className:Ce("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:r,height:i},ticksGenerator:function(l){return ns(l,!0)}}))},uh=function(e){function t(){return eAe(this,t),rAe(this,t,arguments)}return oAe(t,e),nAe(t,[{key:"render",value:function(){return se.createElement(lAe,this.props)}}])}(se.Component);JH(uh,"displayName","YAxis");JH(uh,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function W$(e){return dAe(e)||fAe(e)||cAe(e)||uAe()}function uAe(){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 cAe(e,t){if(e){if(typeof e=="string")return gj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gj(e,t)}}function fAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function dAe(e){if(Array.isArray(e))return gj(e)}function gj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var yj=function(t,n,r,i,a){var o=Yr(t,FP),l=Yr(t,dw),f=[].concat(W$(o),W$(l)),u=Yr(t,Iv),h="".concat(i,"Id"),m=i[0],v=n;if(f.length&&(v=f.reduce(function(w,S){if(S.props[h]===r&&co(S.props,"extendDomain")&&Xe(S.props[m])){var O=S.props[m];return[Math.min(w[0],O),Math.max(w[1],O)]}return w},v)),u.length){var _="".concat(m,"1"),x="".concat(m,"2");v=u.reduce(function(w,S){if(S.props[h]===r&&co(S.props,"extendDomain")&&Xe(S.props[_])&&Xe(S.props[x])){var O=S.props[_],C=S.props[x];return[Math.min(w[0],O,C),Math.max(w[1],O,C)]}return w},v)}return a&&a.length&&(v=a.reduce(function(w,S){return Xe(S)?[Math.min(w[0],S),Math.max(w[1],S)]:w},v)),v},JC={exports:{}},G$;function hAe(){return G$||(G$=1,function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(f,u,h){this.fn=f,this.context=u,this.once=h||!1}function a(f,u,h,m,v){if(typeof h!="function")throw new TypeError("The listener must be a function");var _=new i(h,m||f,v),x=n?n+u:u;return f._events[x]?f._events[x].fn?f._events[x]=[f._events[x],_]:f._events[x].push(_):(f._events[x]=_,f._eventsCount++),f}function o(f,u){--f._eventsCount===0?f._events=new r:delete f._events[u]}function l(){this._events=new r,this._eventsCount=0}l.prototype.eventNames=function(){var u=[],h,m;if(this._eventsCount===0)return u;for(m in h=this._events)t.call(h,m)&&u.push(n?m.slice(1):m);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(h)):u},l.prototype.listeners=function(u){var h=n?n+u:u,m=this._events[h];if(!m)return[];if(m.fn)return[m.fn];for(var v=0,_=m.length,x=new Array(_);v<_;v++)x[v]=m[v].fn;return x},l.prototype.listenerCount=function(u){var h=n?n+u:u,m=this._events[h];return m?m.fn?1:m.length:0},l.prototype.emit=function(u,h,m,v,_,x){var w=n?n+u:u;if(!this._events[w])return!1;var S=this._events[w],O=arguments.length,C,T;if(S.fn){switch(S.once&&this.removeListener(u,S.fn,void 0,!0),O){case 1:return S.fn.call(S.context),!0;case 2:return S.fn.call(S.context,h),!0;case 3:return S.fn.call(S.context,h,m),!0;case 4:return S.fn.call(S.context,h,m,v),!0;case 5:return S.fn.call(S.context,h,m,v,_),!0;case 6:return S.fn.call(S.context,h,m,v,_,x),!0}for(T=1,C=new Array(O-1);T<O;T++)C[T-1]=arguments[T];S.fn.apply(S.context,C)}else{var j=S.length,P;for(T=0;T<j;T++)switch(S[T].once&&this.removeListener(u,S[T].fn,void 0,!0),O){case 1:S[T].fn.call(S[T].context);break;case 2:S[T].fn.call(S[T].context,h);break;case 3:S[T].fn.call(S[T].context,h,m);break;case 4:S[T].fn.call(S[T].context,h,m,v);break;default:if(!C)for(P=1,C=new Array(O-1);P<O;P++)C[P-1]=arguments[P];S[T].fn.apply(S[T].context,C)}}return!0},l.prototype.on=function(u,h,m){return a(this,u,h,m,!1)},l.prototype.once=function(u,h,m){return a(this,u,h,m,!0)},l.prototype.removeListener=function(u,h,m,v){var _=n?n+u:u;if(!this._events[_])return this;if(!h)return o(this,_),this;var x=this._events[_];if(x.fn)x.fn===h&&(!v||x.once)&&(!m||x.context===m)&&o(this,_);else{for(var w=0,S=[],O=x.length;w<O;w++)(x[w].fn!==h||v&&!x[w].once||m&&x[w].context!==m)&&S.push(x[w]);S.length?this._events[_]=S.length===1?S[0]:S:o(this,_)}return this},l.prototype.removeAllListeners=function(u){var h;return u?(h=n?n+u:u,this._events[h]&&o(this,h)):(this._events=new r,this._eventsCount=0),this},l.prototype.off=l.prototype.removeListener,l.prototype.addListener=l.prototype.on,l.prefixed=n,l.EventEmitter=l,e.exports=l}(JC)),JC.exports}var pAe=hAe();const mAe=Nt(pAe);var eE=new mAe,tE="recharts.syncMouseEvents";function sv(e){"@babel/helpers - typeof";return sv=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},sv(e)}function vAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function gAe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tW(r.key),r)}}function yAe(e,t,n){return t&&gAe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nE(e,t,n){return t=tW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function tW(e){var t=bAe(e,"string");return sv(t)=="symbol"?t:t+""}function bAe(e,t){if(sv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var wAe=function(){function e(){vAe(this,e),nE(this,"activeIndex",0),nE(this,"coordinateList",[]),nE(this,"layout","horizontal")}return yAe(e,[{key:"setDetails",value:function(n){var r,i=n.coordinateList,a=i===void 0?null:i,o=n.container,l=o===void 0?null:o,f=n.layout,u=f===void 0?null:f,h=n.offset,m=h===void 0?null:h,v=n.mouseHandlerCallback,_=v===void 0?null:v;this.coordinateList=(r=a??this.coordinateList)!==null&&r!==void 0?r:[],this.container=l??this.container,this.layout=u??this.layout,this.offset=m??this.offset,this.mouseHandlerCallback=_??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var i=this.container.getBoundingClientRect(),a=i.x,o=i.y,l=i.height,f=this.coordinateList[this.activeIndex].coordinate,u=((n=window)===null||n===void 0?void 0:n.scrollX)||0,h=((r=window)===null||r===void 0?void 0:r.scrollY)||0,m=a+f+u,v=o+this.offset.top+l/2+h;this.mouseHandlerCallback({pageX:m,pageY:v})}}}])}();function _Ae(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],i=e==null?void 0:e[1];if(r&&i&&Xe(r)&&Xe(i))return!0}return!1}function xAe(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 nW(e){var t=e.cx,n=e.cy,r=e.radius,i=e.startAngle,a=e.endAngle,o=dn(t,n,r,i),l=dn(t,n,r,a);return{points:[o,l],cx:t,cy:n,radius:r,startAngle:i,endAngle:a}}function SAe(e,t,n){var r,i,a,o;if(e==="horizontal")r=t.x,a=r,i=n.top,o=n.top+n.height;else if(e==="vertical")i=t.y,o=i,r=n.left,a=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var l=t.cx,f=t.cy,u=t.innerRadius,h=t.outerRadius,m=t.angle,v=dn(l,f,u,m),_=dn(l,f,h,m);r=v.x,i=v.y,a=_.x,o=_.y}else return nW(t);return[{x:r,y:i},{x:a,y:o}]}function lv(e){"@babel/helpers - typeof";return lv=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},lv(e)}function Y$(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 Dy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y$(Object(n),!0).forEach(function(r){OAe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function OAe(e,t,n){return t=CAe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CAe(e){var t=EAe(e,"string");return lv(t)=="symbol"?t:t+""}function EAe(e,t){if(lv(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lv(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function TAe(e){var t,n,r=e.element,i=e.tooltipEventType,a=e.isActive,o=e.activeCoordinate,l=e.activePayload,f=e.offset,u=e.activeTooltipIndex,h=e.tooltipAxisBandSize,m=e.layout,v=e.chartName,_=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!_||!a||!o||v!=="ScatterChart"&&i!=="axis")return null;var x,w=kl;if(v==="ScatterChart")x=o,w=bSe;else if(v==="BarChart")x=xAe(m,o,f,h),w=DP;else if(m==="radial"){var S=nW(o),O=S.cx,C=S.cy,T=S.radius,j=S.startAngle,P=S.endAngle;x={cx:O,cy:C,startAngle:j,endAngle:P,innerRadius:T,outerRadius:T},w=KV}else x={points:SAe(m,o,f)},w=kl;var R=Dy(Dy(Dy(Dy({stroke:"#ccc",pointerEvents:"none"},f),x),ot(_,!1)),{},{payload:l,payloadIndex:u,className:Ce("recharts-tooltip-cursor",_.className)});return D.isValidElement(_)?D.cloneElement(_,R):D.createElement(w,R)}var AAe=["item"],jAe=["children","className","width","height","style","compact","title","desc"];function $d(e){"@babel/helpers - typeof";return $d=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},$d(e)}function qf(){return qf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qf.apply(this,arguments)}function K$(e,t){return MAe(e)||RAe(e,t)||iW(e,t)||PAe()}function PAe(){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 RAe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,i,a,o,l=[],f=!0,u=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(f=(r=a.call(n)).done)&&(l.push(r.value),l.length!==t);f=!0);}catch(h){u=!0,i=h}finally{try{if(!f&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return l}}function MAe(e){if(Array.isArray(e))return e}function Z$(e,t){if(e==null)return{};var n=NAe(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NAe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function LAe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function DAe(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,aW(r.key),r)}}function kAe(e,t,n){return t&&DAe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function IAe(e,t,n){return t=Wb(t),$Ae(e,rW()?Reflect.construct(t,n||[],Wb(e).constructor):t.apply(e,n))}function $Ae(e,t){if(t&&($d(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return BAe(e)}function BAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rW(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rW=function(){return!!e})()}function Wb(e){return Wb=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wb(e)}function UAe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bj(e,t)}function bj(e,t){return bj=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},bj(e,t)}function Bd(e){return qAe(e)||FAe(e)||iW(e)||zAe()}function zAe(){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 iW(e,t){if(e){if(typeof e=="string")return wj(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wj(e,t)}}function FAe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qAe(e){if(Array.isArray(e))return wj(e)}function wj(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function X$(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 Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X$(Object(n),!0).forEach(function(r){vt(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X$(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function vt(e,t,n){return t=aW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aW(e){var t=VAe(e,"string");return $d(t)=="symbol"?t:t+""}function VAe(e,t){if($d(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($d(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var HAe={xAxis:["bottom","top"],yAxis:["left","right"]},WAe={width:"100%",height:"100%"},oW={x:0,y:0};function ky(e){return e}var GAe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},YAe=function(t,n,r,i){var a=n.find(function(h){return h&&h.index===r});if(a){if(t==="horizontal")return{x:a.coordinate,y:i.y};if(t==="vertical")return{x:i.x,y:a.coordinate};if(t==="centric"){var o=a.coordinate,l=i.radius;return Ie(Ie(Ie({},i),dn(i.cx,i.cy,l,o)),{},{angle:o,radius:l})}var f=a.coordinate,u=i.angle;return Ie(Ie(Ie({},i),dn(i.cx,i.cy,f,u)),{},{angle:u,radius:f})}return oW},vw=function(t,n){var r=n.graphicalItems,i=n.dataStartIndex,a=n.dataEndIndex,o=(r??[]).reduce(function(l,f){var u=f.props.data;return u&&u.length?[].concat(Bd(l),Bd(u)):l},[]);return o.length>0?o:t&&t.length&&Xe(i)&&Xe(a)?t.slice(i,a+1):[]};function sW(e){return e==="number"?[0,"auto"]:void 0}var _j=function(t,n,r,i){var a=t.graphicalItems,o=t.tooltipAxis,l=vw(n,t);return r<0||!a||!a.length||r>=l.length?null:a.reduce(function(f,u){var h,m=(h=u.props.data)!==null&&h!==void 0?h:n;m&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(m=m.slice(t.dataStartIndex,t.dataEndIndex+1));var v;if(o.dataKey&&!o.allowDuplicatedCategory){var _=m===void 0?l:m;v=W0(_,o.dataKey,i)}else v=m&&m[r]||l[r];return v?[].concat(Bd(f),[qV(u,v)]):f},[])},Q$=function(t,n,r,i){var a=i||{x:t.chartX,y:t.chartY},o=GAe(a,r),l=t.orderedTooltipTicks,f=t.tooltipAxis,u=t.tooltipTicks,h=Ywe(o,l,u,f);if(h>=0&&u){var m=u[h]&&u[h].value,v=_j(t,n,h,m),_=YAe(r,l,h,a);return{activeTooltipIndex:h,activeLabel:m,activePayload:v,activeCoordinate:_}}return null},KAe=function(t,n){var r=n.axes,i=n.graphicalItems,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,f=n.dataStartIndex,u=n.dataEndIndex,h=t.layout,m=t.children,v=t.stackOffset,_=IV(h,a);return r.reduce(function(x,w){var S,O=w.type.defaultProps!==void 0?Ie(Ie({},w.type.defaultProps),w.props):w.props,C=O.type,T=O.dataKey,j=O.allowDataOverflow,P=O.allowDuplicatedCategory,R=O.scale,$=O.ticks,q=O.includeHidden,K=O[o];if(x[K])return x;var H=vw(t.data,{graphicalItems:i.filter(function(J){var Y,ae=o in J.props?J.props[o]:(Y=J.type.defaultProps)===null||Y===void 0?void 0:Y[o];return ae===K}),dataStartIndex:f,dataEndIndex:u}),G=H.length,te,ie,X;_Ae(O.domain,j,C)&&(te=MA(O.domain,null,j),_&&(C==="number"||R!=="auto")&&(X=em(H,T,"category")));var ee=sW(C);if(!te||te.length===0){var W,B=(W=O.domain)!==null&&W!==void 0?W:ee;if(T){if(te=em(H,T,C),C==="category"&&_){var U=Upe(te);P&&U?(ie=te,te=Pb(0,G)):P||(te=XI(B,te,w).reduce(function(J,Y){return J.indexOf(Y)>=0?J:[].concat(Bd(J),[Y])},[]))}else if(C==="category")P?te=te.filter(function(J){return J!==""&&!pt(J)}):te=XI(B,te,w).reduce(function(J,Y){return J.indexOf(Y)>=0||Y===""||pt(Y)?J:[].concat(Bd(J),[Y])},[]);else if(C==="number"){var F=Jwe(H,i.filter(function(J){var Y,ae,de=o in J.props?J.props[o]:(Y=J.type.defaultProps)===null||Y===void 0?void 0:Y[o],fe="hide"in J.props?J.props.hide:(ae=J.type.defaultProps)===null||ae===void 0?void 0:ae.hide;return de===K&&(q||!fe)}),T,a,h);F&&(te=F)}_&&(C==="number"||R!=="auto")&&(X=em(H,T,"category"))}else _?te=Pb(0,G):l&&l[K]&&l[K].hasStack&&C==="number"?te=v==="expand"?[0,1]:FV(l[K].stackGroups,f,u):te=kV(H,i.filter(function(J){var Y=o in J.props?J.props[o]:J.type.defaultProps[o],ae="hide"in J.props?J.props.hide:J.type.defaultProps.hide;return Y===K&&(q||!ae)}),C,h,!0);if(C==="number")te=yj(m,te,K,a,$),B&&(te=MA(B,te,j));else if(C==="category"&&B){var M=B,I=te.every(function(J){return M.indexOf(J)>=0});I&&(te=M)}}return Ie(Ie({},x),{},vt({},K,Ie(Ie({},O),{},{axisType:a,domain:te,categoricalDomain:X,duplicateDomain:ie,originalDomain:(S=O.domain)!==null&&S!==void 0?S:ee,isCategorical:_,layout:h})))},{})},ZAe=function(t,n){var r=n.graphicalItems,i=n.Axis,a=n.axisType,o=n.axisIdKey,l=n.stackGroups,f=n.dataStartIndex,u=n.dataEndIndex,h=t.layout,m=t.children,v=vw(t.data,{graphicalItems:r,dataStartIndex:f,dataEndIndex:u}),_=v.length,x=IV(h,a),w=-1;return r.reduce(function(S,O){var C=O.type.defaultProps!==void 0?Ie(Ie({},O.type.defaultProps),O.props):O.props,T=C[o],j=sW("number");if(!S[T]){w++;var P;return x?P=Pb(0,_):l&&l[T]&&l[T].hasStack?(P=FV(l[T].stackGroups,f,u),P=yj(m,P,T,a)):(P=MA(j,kV(v,r.filter(function(R){var $,q,K=o in R.props?R.props[o]:($=R.type.defaultProps)===null||$===void 0?void 0:$[o],H="hide"in R.props?R.props.hide:(q=R.type.defaultProps)===null||q===void 0?void 0:q.hide;return K===T&&!H}),"number",h),i.defaultProps.allowDataOverflow),P=yj(m,P,T,a)),Ie(Ie({},S),{},vt({},T,Ie(Ie({axisType:a},i.defaultProps),{},{hide:!0,orientation:Ni(HAe,"".concat(a,".").concat(w%2),null),domain:P,originalDomain:j,isCategorical:x,layout:h})))}return S},{})},XAe=function(t,n){var r=n.axisType,i=r===void 0?"xAxis":r,a=n.AxisComp,o=n.graphicalItems,l=n.stackGroups,f=n.dataStartIndex,u=n.dataEndIndex,h=t.children,m="".concat(i,"Id"),v=Yr(h,a),_={};return v&&v.length?_=KAe(t,{axes:v,graphicalItems:o,axisType:i,axisIdKey:m,stackGroups:l,dataStartIndex:f,dataEndIndex:u}):o&&o.length&&(_=ZAe(t,{Axis:a,graphicalItems:o,axisType:i,axisIdKey:m,stackGroups:l,dataStartIndex:f,dataEndIndex:u})),_},QAe=function(t){var n=Tl(t),r=ns(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:lP(r,function(i){return i.coordinate}),tooltipAxis:n,tooltipAxisBandSize:gb(n,r)}},J$=function(t){var n=t.children,r=t.defaultShowTooltip,i=Ei(n,Ed),a=0,o=0;return t.data&&t.data.length!==0&&(o=t.data.length-1),i&&i.props&&(i.props.startIndex>=0&&(a=i.props.startIndex),i.props.endIndex>=0&&(o=i.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:a,dataEndIndex:o,activeTooltipIndex:-1,isTooltipActive:!!r}},JAe=function(t){return!t||!t.length?!1:t.some(function(n){var r=as(n&&n.type);return r&&r.indexOf("Bar")>=0})},e9=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},eje=function(t,n){var r=t.props,i=t.graphicalItems,a=t.xAxisMap,o=a===void 0?{}:a,l=t.yAxisMap,f=l===void 0?{}:l,u=r.width,h=r.height,m=r.children,v=r.margin||{},_=Ei(m,Ed),x=Ei(m,Kf),w=Object.keys(f).reduce(function(P,R){var $=f[R],q=$.orientation;return!$.mirror&&!$.hide?Ie(Ie({},P),{},vt({},q,P[q]+$.width)):P},{left:v.left||0,right:v.right||0}),S=Object.keys(o).reduce(function(P,R){var $=o[R],q=$.orientation;return!$.mirror&&!$.hide?Ie(Ie({},P),{},vt({},q,Ni(P,"".concat(q))+$.height)):P},{top:v.top||0,bottom:v.bottom||0}),O=Ie(Ie({},S),w),C=O.bottom;_&&(O.bottom+=_.props.height||Ed.defaultProps.height),x&&n&&(O=Xwe(O,i,r,n));var T=u-O.left-O.right,j=h-O.top-O.bottom;return Ie(Ie({brushBottom:C},O),{},{width:Math.max(T,0),height:Math.max(j,0)})},tje=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},WP=function(t){var n=t.chartName,r=t.GraphicalChild,i=t.defaultTooltipEventType,a=i===void 0?"axis":i,o=t.validateTooltipEventTypes,l=o===void 0?["axis"]:o,f=t.axisComponents,u=t.legendContent,h=t.formatAxisMap,m=t.defaultProps,v=function(O,C){var T=C.graphicalItems,j=C.stackGroups,P=C.offset,R=C.updateId,$=C.dataStartIndex,q=C.dataEndIndex,K=O.barSize,H=O.layout,G=O.barGap,te=O.barCategoryGap,ie=O.maxBarSize,X=e9(H),ee=X.numericAxisName,W=X.cateAxisName,B=JAe(T),U=[];return T.forEach(function(F,M){var I=vw(O.data,{graphicalItems:[F],dataStartIndex:$,dataEndIndex:q}),J=F.type.defaultProps!==void 0?Ie(Ie({},F.type.defaultProps),F.props):F.props,Y=J.dataKey,ae=J.maxBarSize,de=J["".concat(ee,"Id")],fe=J["".concat(W,"Id")],be={},z=f.reduce(function($e,Fe){var we=C["".concat(Fe.axisType,"Map")],Se=J["".concat(Fe.axisType,"Id")];we&&we[Se]||Fe.axisType==="zAxis"||gc();var ke=we[Se];return Ie(Ie({},$e),{},vt(vt({},Fe.axisType,ke),"".concat(Fe.axisType,"Ticks"),ns(ke)))},be),V=z[W],ne=z["".concat(W,"Ticks")],ce=j&&j[de]&&j[de].hasStack&&l_e(F,j[de].stackGroups),Q=as(F.type).indexOf("Bar")>=0,le=gb(V,ne),pe=[],ye=B&&Kwe({barSize:K,stackGroups:j,totalSize:tje(z,W)});if(Q){var me,xe,Ae=pt(ae)?ie:ae,De=(me=(xe=gb(V,ne,!0))!==null&&xe!==void 0?xe:Ae)!==null&&me!==void 0?me:0;pe=Zwe({barGap:G,barCategoryGap:te,bandSize:De!==le?De:le,sizeList:ye[fe],maxBarSize:Ae}),De!==le&&(pe=pe.map(function($e){return Ie(Ie({},$e),{},{position:Ie(Ie({},$e.position),{},{offset:$e.position.offset-De/2})})}))}var ze=F&&F.type&&F.type.getComposedData;ze&&U.push({props:Ie(Ie({},ze(Ie(Ie({},z),{},{displayedData:I,props:O,dataKey:Y,item:F,bandSize:le,barPosition:pe,offset:P,stackedData:ce,layout:H,dataStartIndex:$,dataEndIndex:q}))),{},vt(vt(vt({key:F.key||"item-".concat(M)},ee,z[ee]),W,z[W]),"animationId",R)),childIndex:Jpe(F,O.children),item:F})}),U},_=function(O,C){var T=O.props,j=O.dataStartIndex,P=O.dataEndIndex,R=O.updateId;if(!d5({props:T}))return null;var $=T.children,q=T.layout,K=T.stackOffset,H=T.data,G=T.reverseStackOrder,te=e9(q),ie=te.numericAxisName,X=te.cateAxisName,ee=Yr($,r),W=o_e(H,ee,"".concat(ie,"Id"),"".concat(X,"Id"),K,G),B=f.reduce(function(J,Y){var ae="".concat(Y.axisType,"Map");return Ie(Ie({},J),{},vt({},ae,XAe(T,Ie(Ie({},Y),{},{graphicalItems:ee,stackGroups:Y.axisType===ie&&W,dataStartIndex:j,dataEndIndex:P}))))},{}),U=eje(Ie(Ie({},B),{},{props:T,graphicalItems:ee}),C==null?void 0:C.legendBBox);Object.keys(B).forEach(function(J){B[J]=h(T,B[J],U,J.replace("Map",""),n)});var F=B["".concat(X,"Map")],M=QAe(F),I=v(T,Ie(Ie({},B),{},{dataStartIndex:j,dataEndIndex:P,updateId:R,graphicalItems:ee,stackGroups:W,offset:U}));return Ie(Ie({formattedGraphicalItems:I,graphicalItems:ee,offset:U,stackGroups:W},M),B)},x=function(S){function O(C){var T,j,P;return LAe(this,O),P=IAe(this,O,[C]),vt(P,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),vt(P,"accessibilityManager",new wAe),vt(P,"handleLegendBBoxUpdate",function(R){if(R){var $=P.state,q=$.dataStartIndex,K=$.dataEndIndex,H=$.updateId;P.setState(Ie({legendBBox:R},_({props:P.props,dataStartIndex:q,dataEndIndex:K,updateId:H},Ie(Ie({},P.state),{},{legendBBox:R}))))}}),vt(P,"handleReceiveSyncEvent",function(R,$,q){if(P.props.syncId===R){if(q===P.eventEmitterSymbol&&typeof P.props.syncMethod!="function")return;P.applySyncEvent($)}}),vt(P,"handleBrushChange",function(R){var $=R.startIndex,q=R.endIndex;if($!==P.state.dataStartIndex||q!==P.state.dataEndIndex){var K=P.state.updateId;P.setState(function(){return Ie({dataStartIndex:$,dataEndIndex:q},_({props:P.props,dataStartIndex:$,dataEndIndex:q,updateId:K},P.state))}),P.triggerSyncEvent({dataStartIndex:$,dataEndIndex:q})}}),vt(P,"handleMouseEnter",function(R){var $=P.getMouseInfo(R);if($){var q=Ie(Ie({},$),{},{isTooltipActive:!0});P.setState(q),P.triggerSyncEvent(q);var K=P.props.onMouseEnter;ht(K)&&K(q,R)}}),vt(P,"triggeredAfterMouseMove",function(R){var $=P.getMouseInfo(R),q=$?Ie(Ie({},$),{},{isTooltipActive:!0}):{isTooltipActive:!1};P.setState(q),P.triggerSyncEvent(q);var K=P.props.onMouseMove;ht(K)&&K(q,R)}),vt(P,"handleItemMouseEnter",function(R){P.setState(function(){return{isTooltipActive:!0,activeItem:R,activePayload:R.tooltipPayload,activeCoordinate:R.tooltipPosition||{x:R.cx,y:R.cy}}})}),vt(P,"handleItemMouseLeave",function(){P.setState(function(){return{isTooltipActive:!1}})}),vt(P,"handleMouseMove",function(R){R.persist(),P.throttleTriggeredAfterMouseMove(R)}),vt(P,"handleMouseLeave",function(R){P.throttleTriggeredAfterMouseMove.cancel();var $={isTooltipActive:!1};P.setState($),P.triggerSyncEvent($);var q=P.props.onMouseLeave;ht(q)&&q($,R)}),vt(P,"handleOuterEvent",function(R){var $=Qpe(R),q=Ni(P.props,"".concat($));if($&&ht(q)){var K,H;/.*touch.*/i.test($)?H=P.getMouseInfo(R.changedTouches[0]):H=P.getMouseInfo(R),q((K=H)!==null&&K!==void 0?K:{},R)}}),vt(P,"handleClick",function(R){var $=P.getMouseInfo(R);if($){var q=Ie(Ie({},$),{},{isTooltipActive:!0});P.setState(q),P.triggerSyncEvent(q);var K=P.props.onClick;ht(K)&&K(q,R)}}),vt(P,"handleMouseDown",function(R){var $=P.props.onMouseDown;if(ht($)){var q=P.getMouseInfo(R);$(q,R)}}),vt(P,"handleMouseUp",function(R){var $=P.props.onMouseUp;if(ht($)){var q=P.getMouseInfo(R);$(q,R)}}),vt(P,"handleTouchMove",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&P.throttleTriggeredAfterMouseMove(R.changedTouches[0])}),vt(P,"handleTouchStart",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&P.handleMouseDown(R.changedTouches[0])}),vt(P,"handleTouchEnd",function(R){R.changedTouches!=null&&R.changedTouches.length>0&&P.handleMouseUp(R.changedTouches[0])}),vt(P,"handleDoubleClick",function(R){var $=P.props.onDoubleClick;if(ht($)){var q=P.getMouseInfo(R);$(q,R)}}),vt(P,"handleContextMenu",function(R){var $=P.props.onContextMenu;if(ht($)){var q=P.getMouseInfo(R);$(q,R)}}),vt(P,"triggerSyncEvent",function(R){P.props.syncId!==void 0&&eE.emit(tE,P.props.syncId,R,P.eventEmitterSymbol)}),vt(P,"applySyncEvent",function(R){var $=P.props,q=$.layout,K=$.syncMethod,H=P.state.updateId,G=R.dataStartIndex,te=R.dataEndIndex;if(R.dataStartIndex!==void 0||R.dataEndIndex!==void 0)P.setState(Ie({dataStartIndex:G,dataEndIndex:te},_({props:P.props,dataStartIndex:G,dataEndIndex:te,updateId:H},P.state)));else if(R.activeTooltipIndex!==void 0){var ie=R.chartX,X=R.chartY,ee=R.activeTooltipIndex,W=P.state,B=W.offset,U=W.tooltipTicks;if(!B)return;if(typeof K=="function")ee=K(U,R);else if(K==="value"){ee=-1;for(var F=0;F<U.length;F++)if(U[F].value===R.activeLabel){ee=F;break}}var M=Ie(Ie({},B),{},{x:B.left,y:B.top}),I=Math.min(ie,M.x+M.width),J=Math.min(X,M.y+M.height),Y=U[ee]&&U[ee].value,ae=_j(P.state,P.props.data,ee),de=U[ee]?{x:q==="horizontal"?U[ee].coordinate:I,y:q==="horizontal"?J:U[ee].coordinate}:oW;P.setState(Ie(Ie({},R),{},{activeLabel:Y,activeCoordinate:de,activePayload:ae,activeTooltipIndex:ee}))}else P.setState(R)}),vt(P,"renderCursor",function(R){var $,q=P.state,K=q.isTooltipActive,H=q.activeCoordinate,G=q.activePayload,te=q.offset,ie=q.activeTooltipIndex,X=q.tooltipAxisBandSize,ee=P.getTooltipEventType(),W=($=R.props.active)!==null&&$!==void 0?$:K,B=P.props.layout,U=R.key||"_recharts-cursor";return se.createElement(TAe,{key:U,activeCoordinate:H,activePayload:G,activeTooltipIndex:ie,chartName:n,element:R,isActive:W,layout:B,offset:te,tooltipAxisBandSize:X,tooltipEventType:ee})}),vt(P,"renderPolarAxis",function(R,$,q){var K=Ni(R,"type.axisType"),H=Ni(P.state,"".concat(K,"Map")),G=R.type.defaultProps,te=G!==void 0?Ie(Ie({},G),R.props):R.props,ie=H&&H[te["".concat(K,"Id")]];return D.cloneElement(R,Ie(Ie({},ie),{},{className:Ce(K,ie.className),key:R.key||"".concat($,"-").concat(q),ticks:ns(ie,!0)}))}),vt(P,"renderPolarGrid",function(R){var $=R.props,q=$.radialLines,K=$.polarAngles,H=$.polarRadius,G=P.state,te=G.radiusAxisMap,ie=G.angleAxisMap,X=Tl(te),ee=Tl(ie),W=ee.cx,B=ee.cy,U=ee.innerRadius,F=ee.outerRadius;return D.cloneElement(R,{polarAngles:Array.isArray(K)?K:ns(ee,!0).map(function(M){return M.coordinate}),polarRadius:Array.isArray(H)?H:ns(X,!0).map(function(M){return M.coordinate}),cx:W,cy:B,innerRadius:U,outerRadius:F,key:R.key||"polar-grid",radialLines:q})}),vt(P,"renderLegend",function(){var R=P.state.formattedGraphicalItems,$=P.props,q=$.children,K=$.width,H=$.height,G=P.props.margin||{},te=K-(G.left||0)-(G.right||0),ie=LV({children:q,formattedGraphicalItems:R,legendWidth:te,legendContent:u});if(!ie)return null;var X=ie.item,ee=Z$(ie,AAe);return D.cloneElement(X,Ie(Ie({},ee),{},{chartWidth:K,chartHeight:H,margin:G,onBBoxUpdate:P.handleLegendBBoxUpdate}))}),vt(P,"renderTooltip",function(){var R,$=P.props,q=$.children,K=$.accessibilityLayer,H=Ei(q,ea);if(!H)return null;var G=P.state,te=G.isTooltipActive,ie=G.activeCoordinate,X=G.activePayload,ee=G.activeLabel,W=G.offset,B=(R=H.props.active)!==null&&R!==void 0?R:te;return D.cloneElement(H,{viewBox:Ie(Ie({},W),{},{x:W.left,y:W.top}),active:B,label:ee,payload:B?X:[],coordinate:ie,accessibilityLayer:K})}),vt(P,"renderBrush",function(R){var $=P.props,q=$.margin,K=$.data,H=P.state,G=H.offset,te=H.dataStartIndex,ie=H.dataEndIndex,X=H.updateId;return D.cloneElement(R,{key:R.key||"_recharts-brush",onChange:Ry(P.handleBrushChange,R.props.onChange),data:K,x:Xe(R.props.x)?R.props.x:G.left,y:Xe(R.props.y)?R.props.y:G.top+G.height+G.brushBottom-(q.bottom||0),width:Xe(R.props.width)?R.props.width:G.width,startIndex:te,endIndex:ie,updateId:"brush-".concat(X)})}),vt(P,"renderReferenceElement",function(R,$,q){if(!R)return null;var K=P,H=K.clipPathId,G=P.state,te=G.xAxisMap,ie=G.yAxisMap,X=G.offset,ee=R.type.defaultProps||{},W=R.props,B=W.xAxisId,U=B===void 0?ee.xAxisId:B,F=W.yAxisId,M=F===void 0?ee.yAxisId:F;return D.cloneElement(R,{key:R.key||"".concat($,"-").concat(q),xAxis:te[U],yAxis:ie[M],viewBox:{x:X.left,y:X.top,width:X.width,height:X.height},clipPathId:H})}),vt(P,"renderActivePoints",function(R){var $=R.item,q=R.activePoint,K=R.basePoint,H=R.childIndex,G=R.isRange,te=[],ie=$.props.key,X=$.item.type.defaultProps!==void 0?Ie(Ie({},$.item.type.defaultProps),$.item.props):$.item.props,ee=X.activeDot,W=X.dataKey,B=Ie(Ie({index:H,dataKey:W,cx:q.x,cy:q.y,r:4,fill:LP($.item),strokeWidth:2,stroke:"#fff",payload:q.payload,value:q.value},ot(ee,!1)),G0(ee));return te.push(O.renderActiveDot(ee,B,"".concat(ie,"-activePoint-").concat(H))),K?te.push(O.renderActiveDot(ee,Ie(Ie({},B),{},{cx:K.x,cy:K.y}),"".concat(ie,"-basePoint-").concat(H))):G&&te.push(null),te}),vt(P,"renderGraphicChild",function(R,$,q){var K=P.filterFormatItem(R,$,q);if(!K)return null;var H=P.getTooltipEventType(),G=P.state,te=G.isTooltipActive,ie=G.tooltipAxis,X=G.activeTooltipIndex,ee=G.activeLabel,W=P.props.children,B=Ei(W,ea),U=K.props,F=U.points,M=U.isRange,I=U.baseLine,J=K.item.type.defaultProps!==void 0?Ie(Ie({},K.item.type.defaultProps),K.item.props):K.item.props,Y=J.activeDot,ae=J.hide,de=J.activeBar,fe=J.activeShape,be=!!(!ae&&te&&B&&(Y||de||fe)),z={};H!=="axis"&&B&&B.props.trigger==="click"?z={onClick:Ry(P.handleItemMouseEnter,R.props.onClick)}:H!=="axis"&&(z={onMouseLeave:Ry(P.handleItemMouseLeave,R.props.onMouseLeave),onMouseEnter:Ry(P.handleItemMouseEnter,R.props.onMouseEnter)});var V=D.cloneElement(R,Ie(Ie({},K.props),z));function ne(Fe){return typeof ie.dataKey=="function"?ie.dataKey(Fe.payload):null}if(be)if(X>=0){var ce,Q;if(ie.dataKey&&!ie.allowDuplicatedCategory){var le=typeof ie.dataKey=="function"?ne:"payload.".concat(ie.dataKey.toString());ce=W0(F,le,ee),Q=M&&I&&W0(I,le,ee)}else ce=F==null?void 0:F[X],Q=M&&I&&I[X];if(fe||de){var pe=R.props.activeIndex!==void 0?R.props.activeIndex:X;return[D.cloneElement(R,Ie(Ie(Ie({},K.props),z),{},{activeIndex:pe})),null,null]}if(!pt(ce))return[V].concat(Bd(P.renderActivePoints({item:K,activePoint:ce,basePoint:Q,childIndex:X,isRange:M})))}else{var ye,me=(ye=P.getItemByXY(P.state.activeCoordinate))!==null&&ye!==void 0?ye:{graphicalItem:V},xe=me.graphicalItem,Ae=xe.item,De=Ae===void 0?R:Ae,ze=xe.childIndex,$e=Ie(Ie(Ie({},K.props),z),{},{activeIndex:ze});return[D.cloneElement(De,$e),null,null]}return M?[V,null,null]:[V,null]}),vt(P,"renderCustomized",function(R,$,q){return D.cloneElement(R,Ie(Ie({key:"recharts-customized-".concat(q)},P.props),P.state))}),vt(P,"renderMap",{CartesianGrid:{handler:ky,once:!0},ReferenceArea:{handler:P.renderReferenceElement},ReferenceLine:{handler:ky},ReferenceDot:{handler:P.renderReferenceElement},XAxis:{handler:ky},YAxis:{handler:ky},Brush:{handler:P.renderBrush,once:!0},Bar:{handler:P.renderGraphicChild},Line:{handler:P.renderGraphicChild},Area:{handler:P.renderGraphicChild},Radar:{handler:P.renderGraphicChild},RadialBar:{handler:P.renderGraphicChild},Scatter:{handler:P.renderGraphicChild},Pie:{handler:P.renderGraphicChild},Funnel:{handler:P.renderGraphicChild},Tooltip:{handler:P.renderCursor,once:!0},PolarGrid:{handler:P.renderPolarGrid,once:!0},PolarAngleAxis:{handler:P.renderPolarAxis},PolarRadiusAxis:{handler:P.renderPolarAxis},Customized:{handler:P.renderCustomized}}),P.clipPathId="".concat((T=C.id)!==null&&T!==void 0?T:eu("recharts"),"-clip"),P.throttleTriggeredAfterMouseMove=Nq(P.triggeredAfterMouseMove,(j=C.throttleDelay)!==null&&j!==void 0?j:1e3/60),P.state={},P}return UAe(O,S),kAe(O,[{key:"componentDidMount",value:function(){var T,j;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(T=this.props.margin.left)!==null&&T!==void 0?T:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var T=this.props,j=T.children,P=T.data,R=T.height,$=T.layout,q=Ei(j,ea);if(q){var K=q.props.defaultIndex;if(!(typeof K!="number"||K<0||K>this.state.tooltipTicks.length-1)){var H=this.state.tooltipTicks[K]&&this.state.tooltipTicks[K].value,G=_j(this.state,P,K,H),te=this.state.tooltipTicks[K].coordinate,ie=(this.state.offset.top+R)/2,X=$==="horizontal",ee=X?{x:te,y:ie}:{y:te,x:ie},W=this.state.formattedGraphicalItems.find(function(U){var F=U.item;return F.type.name==="Scatter"});W&&(ee=Ie(Ie({},ee),W.props.points[K].tooltipPosition),G=W.props.points[K].tooltipPayload);var B={activeTooltipIndex:K,isTooltipActive:!0,activeLabel:H,activePayload:G,activeCoordinate:ee};this.setState(B),this.renderCursor(q),this.accessibilityManager.setIndex(K)}}}},{key:"getSnapshotBeforeUpdate",value:function(T,j){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==j.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==T.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==T.margin){var P,R;this.accessibilityManager.setDetails({offset:{left:(P=this.props.margin.left)!==null&&P!==void 0?P:0,top:(R=this.props.margin.top)!==null&&R!==void 0?R:0}})}return null}},{key:"componentDidUpdate",value:function(T){eA([Ei(T.children,ea)],[Ei(this.props.children,ea)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var T=Ei(this.props.children,ea);if(T&&typeof T.props.shared=="boolean"){var j=T.props.shared?"axis":"item";return l.indexOf(j)>=0?j:a}return a}},{key:"getMouseInfo",value:function(T){if(!this.container)return null;var j=this.container,P=j.getBoundingClientRect(),R=Uye(P),$={chartX:Math.round(T.pageX-R.left),chartY:Math.round(T.pageY-R.top)},q=P.width/j.offsetWidth||1,K=this.inRange($.chartX,$.chartY,q);if(!K)return null;var H=this.state,G=H.xAxisMap,te=H.yAxisMap,ie=this.getTooltipEventType(),X=Q$(this.state,this.props.data,this.props.layout,K);if(ie!=="axis"&&G&&te){var ee=Tl(G).scale,W=Tl(te).scale,B=ee&&ee.invert?ee.invert($.chartX):null,U=W&&W.invert?W.invert($.chartY):null;return Ie(Ie({},$),{},{xValue:B,yValue:U},X)}return X?Ie(Ie({},$),X):null}},{key:"inRange",value:function(T,j){var P=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,R=this.props.layout,$=T/P,q=j/P;if(R==="horizontal"||R==="vertical"){var K=this.state.offset,H=$>=K.left&&$<=K.left+K.width&&q>=K.top&&q<=K.top+K.height;return H?{x:$,y:q}:null}var G=this.state,te=G.angleAxisMap,ie=G.radiusAxisMap;if(te&&ie){var X=Tl(te);return e7({x:$,y:q},X)}return null}},{key:"parseEventsOfWrapper",value:function(){var T=this.props.children,j=this.getTooltipEventType(),P=Ei(T,ea),R={};P&&j==="axis"&&(P.props.trigger==="click"?R={onClick:this.handleClick}:R={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var $=G0(this.props,this.handleOuterEvent);return Ie(Ie({},$),R)}},{key:"addListener",value:function(){eE.on(tE,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){eE.removeListener(tE,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(T,j,P){for(var R=this.state.formattedGraphicalItems,$=0,q=R.length;$<q;$++){var K=R[$];if(K.item===T||K.props.key===T.key||j===as(K.item.type)&&P===K.childIndex)return K}return null}},{key:"renderClipPath",value:function(){var T=this.clipPathId,j=this.state.offset,P=j.left,R=j.top,$=j.height,q=j.width;return se.createElement("defs",null,se.createElement("clipPath",{id:T},se.createElement("rect",{x:P,y:R,height:$,width:q})))}},{key:"getXScales",value:function(){var T=this.state.xAxisMap;return T?Object.entries(T).reduce(function(j,P){var R=K$(P,2),$=R[0],q=R[1];return Ie(Ie({},j),{},vt({},$,q.scale))},{}):null}},{key:"getYScales",value:function(){var T=this.state.yAxisMap;return T?Object.entries(T).reduce(function(j,P){var R=K$(P,2),$=R[0],q=R[1];return Ie(Ie({},j),{},vt({},$,q.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(T){var j;return(j=this.state.xAxisMap)===null||j===void 0||(j=j[T])===null||j===void 0?void 0:j.scale}},{key:"getYScaleByAxisId",value:function(T){var j;return(j=this.state.yAxisMap)===null||j===void 0||(j=j[T])===null||j===void 0?void 0:j.scale}},{key:"getItemByXY",value:function(T){var j=this.state,P=j.formattedGraphicalItems,R=j.activeItem;if(P&&P.length)for(var $=0,q=P.length;$<q;$++){var K=P[$],H=K.props,G=K.item,te=G.type.defaultProps!==void 0?Ie(Ie({},G.type.defaultProps),G.props):G.props,ie=as(G.type);if(ie==="Bar"){var X=(H.data||[]).find(function(U){return J2e(T,U)});if(X)return{graphicalItem:K,payload:X}}else if(ie==="RadialBar"){var ee=(H.data||[]).find(function(U){return e7(T,U)});if(ee)return{graphicalItem:K,payload:ee}}else if(lw(K,R)||uw(K,R)||nv(K,R)){var W=SOe({graphicalItem:K,activeTooltipItem:R,itemData:te.data}),B=te.activeIndex===void 0?W:te.activeIndex;return{graphicalItem:Ie(Ie({},K),{},{childIndex:B}),payload:nv(K,R)?te.data[W]:K.props.data[W]}}}return null}},{key:"render",value:function(){var T=this;if(!d5(this))return null;var j=this.props,P=j.children,R=j.className,$=j.width,q=j.height,K=j.style,H=j.compact,G=j.title,te=j.desc,ie=Z$(j,jAe),X=ot(ie,!1);if(H)return se.createElement(E$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},se.createElement(nA,qf({},X,{width:$,height:q,title:G,desc:te}),this.renderClipPath(),p5(P,this.renderMap)));if(this.props.accessibilityLayer){var ee,W;X.tabIndex=(ee=this.props.tabIndex)!==null&&ee!==void 0?ee:0,X.role=(W=this.props.role)!==null&&W!==void 0?W:"application",X.onKeyDown=function(U){T.accessibilityManager.keyboardEvent(U)},X.onFocus=function(){T.accessibilityManager.focus()}}var B=this.parseEventsOfWrapper();return se.createElement(E$,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},se.createElement("div",qf({className:Ce("recharts-wrapper",R),style:Ie({position:"relative",cursor:"default",width:$,height:q},K)},B,{ref:function(F){T.container=F}}),se.createElement(nA,qf({},X,{width:$,height:q,title:G,desc:te,style:WAe}),this.renderClipPath(),p5(P,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(D.Component);vt(x,"displayName",n),vt(x,"defaultProps",Ie({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},m)),vt(x,"getDerivedStateFromProps",function(S,O){var C=S.dataKey,T=S.data,j=S.children,P=S.width,R=S.height,$=S.layout,q=S.stackOffset,K=S.margin,H=O.dataStartIndex,G=O.dataEndIndex;if(O.updateId===void 0){var te=J$(S);return Ie(Ie(Ie({},te),{},{updateId:0},_(Ie(Ie({props:S},te),{},{updateId:0}),O)),{},{prevDataKey:C,prevData:T,prevWidth:P,prevHeight:R,prevLayout:$,prevStackOffset:q,prevMargin:K,prevChildren:j})}if(C!==O.prevDataKey||T!==O.prevData||P!==O.prevWidth||R!==O.prevHeight||$!==O.prevLayout||q!==O.prevStackOffset||!Yf(K,O.prevMargin)){var ie=J$(S),X={chartX:O.chartX,chartY:O.chartY,isTooltipActive:O.isTooltipActive},ee=Ie(Ie({},Q$(O,T,$)),{},{updateId:O.updateId+1}),W=Ie(Ie(Ie({},ie),X),ee);return Ie(Ie(Ie({},W),_(Ie({props:S},W),O)),{},{prevDataKey:C,prevData:T,prevWidth:P,prevHeight:R,prevLayout:$,prevStackOffset:q,prevMargin:K,prevChildren:j})}if(!eA(j,O.prevChildren)){var B,U,F,M,I=Ei(j,Ed),J=I&&(B=(U=I.props)===null||U===void 0?void 0:U.startIndex)!==null&&B!==void 0?B:H,Y=I&&(F=(M=I.props)===null||M===void 0?void 0:M.endIndex)!==null&&F!==void 0?F:G,ae=J!==H||Y!==G,de=!pt(T),fe=de&&!ae?O.updateId:O.updateId+1;return Ie(Ie({updateId:fe},_(Ie(Ie({props:S},O),{},{updateId:fe,dataStartIndex:J,dataEndIndex:Y}),O)),{},{prevChildren:j,dataStartIndex:J,dataEndIndex:Y})}return null}),vt(x,"renderActiveDot",function(S,O,C){var T;return D.isValidElement(S)?T=D.cloneElement(S,O):ht(S)?T=S(O):T=se.createElement(kv,O),se.createElement(St,{className:"recharts-active-dot",key:C},T)});var w=D.forwardRef(function(O,C){return se.createElement(x,qf({},O,{ref:C}))});return w.displayName=x.displayName,w},nje=WP({chartName:"LineChart",GraphicalChild:sh,axisComponents:[{axisType:"xAxis",AxisComp:lh},{axisType:"yAxis",AxisComp:uh}],formatAxisMap:yH}),rje=WP({chartName:"PieChart",GraphicalChild:vo,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:sw},{axisType:"radiusAxis",AxisComp:aw}],formatAxisMap:y_e,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),ije=WP({chartName:"ComposedChart",GraphicalChild:[sh,Ac,ss,mw],axisComponents:[{axisType:"xAxis",AxisComp:lh},{axisType:"yAxis",AxisComp:uh},{axisType:"zAxis",AxisComp:pw}],formatAxisMap:yH});function lW(e,t){const n=D.useRef(t);D.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 aje=1;function oje(e){return Object.freeze({__version:aje,map:e})}function sje(e,t){return Object.freeze({...e,...t})}const GP=D.createContext(null);function uW(){const e=D.use(GP);if(e==null)throw new Error("No context provided: useLeafletContext() can only be used in a descendant of <MapContainer>");return e}function lje(e){function t(n,r){const{instance:i,context:a}=e(n).current;D.useImperativeHandle(r,()=>i);const{children:o}=n;return o==null?null:se.createElement(GP,{value:a},o)}return D.forwardRef(t)}function uje(e){function t(n,r){const[i,a]=D.useState(!1),{instance:o}=e(n,a).current;D.useImperativeHandle(r,()=>o),D.useEffect(function(){i&&o.update()},[o,i,n.children]);const l=o._contentNode;return l?xc.createPortal(n.children,l):null}return D.forwardRef(t)}function cje(e){function t(n,r){const{instance:i}=e(n).current;return D.useImperativeHandle(r,()=>i),null}return D.forwardRef(t)}function cW(e,t){const n=D.useRef(void 0);D.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 YP(e,t){const n=e.pane??t.pane;return n?{...e,pane:n}:e}function fje(e,t){return function(r,i){const a=uW(),o=e(YP(r,a),a);return lW(a.map,r.attribution),cW(o.current,r.eventHandlers),t(o.current,a,r,i),o}}var qp={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 dje=qp.exports,t9;function hje(){return t9||(t9=1,function(e,t){(function(n,r){r(t)})(dje,function(n){var r="1.9.4";function i(d){var y,E,k,Z;for(E=1,k=arguments.length;E<k;E++){Z=arguments[E];for(y in Z)d[y]=Z[y]}return d}var a=Object.create||function(){function d(){}return function(y){return d.prototype=y,new d}}();function o(d,y){var E=Array.prototype.slice;if(d.bind)return d.bind.apply(d,E.call(arguments,1));var k=E.call(arguments,2);return function(){return d.apply(y,k.length?k.concat(E.call(arguments)):arguments)}}var l=0;function f(d){return"_leaflet_id"in d||(d._leaflet_id=++l),d._leaflet_id}function u(d,y,E){var k,Z,oe,ve;return ve=function(){k=!1,Z&&(oe.apply(E,Z),Z=!1)},oe=function(){k?Z=arguments:(d.apply(E,arguments),setTimeout(ve,y),k=!0)},oe}function h(d,y,E){var k=y[1],Z=y[0],oe=k-Z;return d===k&&E?d:((d-Z)%oe+oe)%oe+Z}function m(){return!1}function v(d,y){if(y===!1)return d;var E=Math.pow(10,y===void 0?6:y);return Math.round(d*E)/E}function _(d){return d.trim?d.trim():d.replace(/^\s+|\s+$/g,"")}function x(d){return _(d).split(/\s+/)}function w(d,y){Object.prototype.hasOwnProperty.call(d,"options")||(d.options=d.options?a(d.options):{});for(var E in y)d.options[E]=y[E];return d.options}function S(d,y,E){var k=[];for(var Z in d)k.push(encodeURIComponent(E?Z.toUpperCase():Z)+"="+encodeURIComponent(d[Z]));return(!y||y.indexOf("?")===-1?"?":"&")+k.join("&")}var O=/\{ *([\w_ -]+) *\}/g;function C(d,y){return d.replace(O,function(E,k){var Z=y[k];if(Z===void 0)throw new Error("No value provided for variable "+E);return typeof Z=="function"&&(Z=Z(y)),Z})}var T=Array.isArray||function(d){return Object.prototype.toString.call(d)==="[object Array]"};function j(d,y){for(var E=0;E<d.length;E++)if(d[E]===y)return E;return-1}var P="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function R(d){return window["webkit"+d]||window["moz"+d]||window["ms"+d]}var $=0;function q(d){var y=+new Date,E=Math.max(0,16-(y-$));return $=y+E,window.setTimeout(d,E)}var K=window.requestAnimationFrame||R("RequestAnimationFrame")||q,H=window.cancelAnimationFrame||R("CancelAnimationFrame")||R("CancelRequestAnimationFrame")||function(d){window.clearTimeout(d)};function G(d,y,E){if(E&&K===q)d.call(y);else return K.call(window,o(d,y))}function te(d){d&&H.call(window,d)}var ie={__proto__:null,extend:i,create:a,bind:o,get lastId(){return l},stamp:f,throttle:u,wrapNum:h,falseFn:m,formatNum:v,trim:_,splitWords:x,setOptions:w,getParamString:S,template:C,isArray:T,indexOf:j,emptyImageUrl:P,requestFn:K,cancelFn:H,requestAnimFrame:G,cancelAnimFrame:te};function X(){}X.extend=function(d){var y=function(){w(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},E=y.__super__=this.prototype,k=a(E);k.constructor=y,y.prototype=k;for(var Z in this)Object.prototype.hasOwnProperty.call(this,Z)&&Z!=="prototype"&&Z!=="__super__"&&(y[Z]=this[Z]);return d.statics&&i(y,d.statics),d.includes&&(ee(d.includes),i.apply(null,[k].concat(d.includes))),i(k,d),delete k.statics,delete k.includes,k.options&&(k.options=E.options?a(E.options):{},i(k.options,d.options)),k._initHooks=[],k.callInitHooks=function(){if(!this._initHooksCalled){E.callInitHooks&&E.callInitHooks.call(this),this._initHooksCalled=!0;for(var oe=0,ve=k._initHooks.length;oe<ve;oe++)k._initHooks[oe].call(this)}},y},X.include=function(d){var y=this.prototype.options;return i(this.prototype,d),d.options&&(this.prototype.options=y,this.mergeOptions(d.options)),this},X.mergeOptions=function(d){return i(this.prototype.options,d),this},X.addInitHook=function(d){var y=Array.prototype.slice.call(arguments,1),E=typeof d=="function"?d:function(){this[d].apply(this,y)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(E),this};function ee(d){if(!(typeof L>"u"||!L||!L.Mixin)){d=T(d)?d:[d];for(var y=0;y<d.length;y++)d[y]===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 W={on:function(d,y,E){if(typeof d=="object")for(var k in d)this._on(k,d[k],y);else{d=x(d);for(var Z=0,oe=d.length;Z<oe;Z++)this._on(d[Z],y,E)}return this},off:function(d,y,E){if(!arguments.length)delete this._events;else if(typeof d=="object")for(var k in d)this._off(k,d[k],y);else{d=x(d);for(var Z=arguments.length===1,oe=0,ve=d.length;oe<ve;oe++)Z?this._off(d[oe]):this._off(d[oe],y,E)}return this},_on:function(d,y,E,k){if(typeof y!="function"){console.warn("wrong listener type: "+typeof y);return}if(this._listens(d,y,E)===!1){E===this&&(E=void 0);var Z={fn:y,ctx:E};k&&(Z.once=!0),this._events=this._events||{},this._events[d]=this._events[d]||[],this._events[d].push(Z)}},_off:function(d,y,E){var k,Z,oe;if(this._events&&(k=this._events[d],!!k)){if(arguments.length===1){if(this._firingCount)for(Z=0,oe=k.length;Z<oe;Z++)k[Z].fn=m;delete this._events[d];return}if(typeof y!="function"){console.warn("wrong listener type: "+typeof y);return}var ve=this._listens(d,y,E);if(ve!==!1){var Ee=k[ve];this._firingCount&&(Ee.fn=m,this._events[d]=k=k.slice()),k.splice(ve,1)}}},fire:function(d,y,E){if(!this.listens(d,E))return this;var k=i({},y,{type:d,target:this,sourceTarget:y&&y.sourceTarget||this});if(this._events){var Z=this._events[d];if(Z){this._firingCount=this._firingCount+1||1;for(var oe=0,ve=Z.length;oe<ve;oe++){var Ee=Z[oe],Le=Ee.fn;Ee.once&&this.off(d,Le,Ee.ctx),Le.call(Ee.ctx||this,k)}this._firingCount--}}return E&&this._propagateEvent(k),this},listens:function(d,y,E,k){typeof d!="string"&&console.warn('"string" type argument expected');var Z=y;typeof y!="function"&&(k=!!y,Z=void 0,E=void 0);var oe=this._events&&this._events[d];if(oe&&oe.length&&this._listens(d,Z,E)!==!1)return!0;if(k){for(var ve in this._eventParents)if(this._eventParents[ve].listens(d,y,E,k))return!0}return!1},_listens:function(d,y,E){if(!this._events)return!1;var k=this._events[d]||[];if(!y)return!!k.length;E===this&&(E=void 0);for(var Z=0,oe=k.length;Z<oe;Z++)if(k[Z].fn===y&&k[Z].ctx===E)return Z;return!1},once:function(d,y,E){if(typeof d=="object")for(var k in d)this._on(k,d[k],y,!0);else{d=x(d);for(var Z=0,oe=d.length;Z<oe;Z++)this._on(d[Z],y,E,!0)}return this},addEventParent:function(d){return this._eventParents=this._eventParents||{},this._eventParents[f(d)]=d,this},removeEventParent:function(d){return this._eventParents&&delete this._eventParents[f(d)],this},_propagateEvent:function(d){for(var y in this._eventParents)this._eventParents[y].fire(d.type,i({layer:d.target,propagatedFrom:d.target},d),!0)}};W.addEventListener=W.on,W.removeEventListener=W.clearAllEventListeners=W.off,W.addOneTimeEventListener=W.once,W.fireEvent=W.fire,W.hasEventListeners=W.listens;var B=X.extend(W);function U(d,y,E){this.x=E?Math.round(d):d,this.y=E?Math.round(y):y}var F=Math.trunc||function(d){return d>0?Math.floor(d):Math.ceil(d)};U.prototype={clone:function(){return new U(this.x,this.y)},add:function(d){return this.clone()._add(M(d))},_add:function(d){return this.x+=d.x,this.y+=d.y,this},subtract:function(d){return this.clone()._subtract(M(d))},_subtract:function(d){return this.x-=d.x,this.y-=d.y,this},divideBy:function(d){return this.clone()._divideBy(d)},_divideBy:function(d){return this.x/=d,this.y/=d,this},multiplyBy:function(d){return this.clone()._multiplyBy(d)},_multiplyBy:function(d){return this.x*=d,this.y*=d,this},scaleBy:function(d){return new U(this.x*d.x,this.y*d.y)},unscaleBy:function(d){return new U(this.x/d.x,this.y/d.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=F(this.x),this.y=F(this.y),this},distanceTo:function(d){d=M(d);var y=d.x-this.x,E=d.y-this.y;return Math.sqrt(y*y+E*E)},equals:function(d){return d=M(d),d.x===this.x&&d.y===this.y},contains:function(d){return d=M(d),Math.abs(d.x)<=Math.abs(this.x)&&Math.abs(d.y)<=Math.abs(this.y)},toString:function(){return"Point("+v(this.x)+", "+v(this.y)+")"}};function M(d,y,E){return d instanceof U?d:T(d)?new U(d[0],d[1]):d==null?d:typeof d=="object"&&"x"in d&&"y"in d?new U(d.x,d.y):new U(d,y,E)}function I(d,y){if(d)for(var E=y?[d,y]:d,k=0,Z=E.length;k<Z;k++)this.extend(E[k])}I.prototype={extend:function(d){var y,E;if(!d)return this;if(d instanceof U||typeof d[0]=="number"||"x"in d)y=E=M(d);else if(d=J(d),y=d.min,E=d.max,!y||!E)return this;return!this.min&&!this.max?(this.min=y.clone(),this.max=E.clone()):(this.min.x=Math.min(y.x,this.min.x),this.max.x=Math.max(E.x,this.max.x),this.min.y=Math.min(y.y,this.min.y),this.max.y=Math.max(E.y,this.max.y)),this},getCenter:function(d){return M((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,d)},getBottomLeft:function(){return M(this.min.x,this.max.y)},getTopRight:function(){return M(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(d){var y,E;return typeof d[0]=="number"||d instanceof U?d=M(d):d=J(d),d instanceof I?(y=d.min,E=d.max):y=E=d,y.x>=this.min.x&&E.x<=this.max.x&&y.y>=this.min.y&&E.y<=this.max.y},intersects:function(d){d=J(d);var y=this.min,E=this.max,k=d.min,Z=d.max,oe=Z.x>=y.x&&k.x<=E.x,ve=Z.y>=y.y&&k.y<=E.y;return oe&&ve},overlaps:function(d){d=J(d);var y=this.min,E=this.max,k=d.min,Z=d.max,oe=Z.x>y.x&&k.x<E.x,ve=Z.y>y.y&&k.y<E.y;return oe&&ve},isValid:function(){return!!(this.min&&this.max)},pad:function(d){var y=this.min,E=this.max,k=Math.abs(y.x-E.x)*d,Z=Math.abs(y.y-E.y)*d;return J(M(y.x-k,y.y-Z),M(E.x+k,E.y+Z))},equals:function(d){return d?(d=J(d),this.min.equals(d.getTopLeft())&&this.max.equals(d.getBottomRight())):!1}};function J(d,y){return!d||d instanceof I?d:new I(d,y)}function Y(d,y){if(d)for(var E=y?[d,y]:d,k=0,Z=E.length;k<Z;k++)this.extend(E[k])}Y.prototype={extend:function(d){var y=this._southWest,E=this._northEast,k,Z;if(d instanceof de)k=d,Z=d;else if(d instanceof Y){if(k=d._southWest,Z=d._northEast,!k||!Z)return this}else return d?this.extend(fe(d)||ae(d)):this;return!y&&!E?(this._southWest=new de(k.lat,k.lng),this._northEast=new de(Z.lat,Z.lng)):(y.lat=Math.min(k.lat,y.lat),y.lng=Math.min(k.lng,y.lng),E.lat=Math.max(Z.lat,E.lat),E.lng=Math.max(Z.lng,E.lng)),this},pad:function(d){var y=this._southWest,E=this._northEast,k=Math.abs(y.lat-E.lat)*d,Z=Math.abs(y.lng-E.lng)*d;return new Y(new de(y.lat-k,y.lng-Z),new de(E.lat+k,E.lng+Z))},getCenter:function(){return new de((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 de(this.getNorth(),this.getWest())},getSouthEast:function(){return new de(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(d){typeof d[0]=="number"||d instanceof de||"lat"in d?d=fe(d):d=ae(d);var y=this._southWest,E=this._northEast,k,Z;return d instanceof Y?(k=d.getSouthWest(),Z=d.getNorthEast()):k=Z=d,k.lat>=y.lat&&Z.lat<=E.lat&&k.lng>=y.lng&&Z.lng<=E.lng},intersects:function(d){d=ae(d);var y=this._southWest,E=this._northEast,k=d.getSouthWest(),Z=d.getNorthEast(),oe=Z.lat>=y.lat&&k.lat<=E.lat,ve=Z.lng>=y.lng&&k.lng<=E.lng;return oe&&ve},overlaps:function(d){d=ae(d);var y=this._southWest,E=this._northEast,k=d.getSouthWest(),Z=d.getNorthEast(),oe=Z.lat>y.lat&&k.lat<E.lat,ve=Z.lng>y.lng&&k.lng<E.lng;return oe&&ve},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(d,y){return d?(d=ae(d),this._southWest.equals(d.getSouthWest(),y)&&this._northEast.equals(d.getNorthEast(),y)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function ae(d,y){return d instanceof Y?d:new Y(d,y)}function de(d,y,E){if(isNaN(d)||isNaN(y))throw new Error("Invalid LatLng object: ("+d+", "+y+")");this.lat=+d,this.lng=+y,E!==void 0&&(this.alt=+E)}de.prototype={equals:function(d,y){if(!d)return!1;d=fe(d);var E=Math.max(Math.abs(this.lat-d.lat),Math.abs(this.lng-d.lng));return E<=(y===void 0?1e-9:y)},toString:function(d){return"LatLng("+v(this.lat,d)+", "+v(this.lng,d)+")"},distanceTo:function(d){return z.distance(this,fe(d))},wrap:function(){return z.wrapLatLng(this)},toBounds:function(d){var y=180*d/40075017,E=y/Math.cos(Math.PI/180*this.lat);return ae([this.lat-y,this.lng-E],[this.lat+y,this.lng+E])},clone:function(){return new de(this.lat,this.lng,this.alt)}};function fe(d,y,E){return d instanceof de?d:T(d)&&typeof d[0]!="object"?d.length===3?new de(d[0],d[1],d[2]):d.length===2?new de(d[0],d[1]):null:d==null?d:typeof d=="object"&&"lat"in d?new de(d.lat,"lng"in d?d.lng:d.lon,d.alt):y===void 0?null:new de(d,y,E)}var be={latLngToPoint:function(d,y){var E=this.projection.project(d),k=this.scale(y);return this.transformation._transform(E,k)},pointToLatLng:function(d,y){var E=this.scale(y),k=this.transformation.untransform(d,E);return this.projection.unproject(k)},project:function(d){return this.projection.project(d)},unproject:function(d){return this.projection.unproject(d)},scale:function(d){return 256*Math.pow(2,d)},zoom:function(d){return Math.log(d/256)/Math.LN2},getProjectedBounds:function(d){if(this.infinite)return null;var y=this.projection.bounds,E=this.scale(d),k=this.transformation.transform(y.min,E),Z=this.transformation.transform(y.max,E);return new I(k,Z)},infinite:!1,wrapLatLng:function(d){var y=this.wrapLng?h(d.lng,this.wrapLng,!0):d.lng,E=this.wrapLat?h(d.lat,this.wrapLat,!0):d.lat,k=d.alt;return new de(E,y,k)},wrapLatLngBounds:function(d){var y=d.getCenter(),E=this.wrapLatLng(y),k=y.lat-E.lat,Z=y.lng-E.lng;if(k===0&&Z===0)return d;var oe=d.getSouthWest(),ve=d.getNorthEast(),Ee=new de(oe.lat-k,oe.lng-Z),Le=new de(ve.lat-k,ve.lng-Z);return new Y(Ee,Le)}},z=i({},be,{wrapLng:[-180,180],R:6371e3,distance:function(d,y){var E=Math.PI/180,k=d.lat*E,Z=y.lat*E,oe=Math.sin((y.lat-d.lat)*E/2),ve=Math.sin((y.lng-d.lng)*E/2),Ee=oe*oe+Math.cos(k)*Math.cos(Z)*ve*ve,Le=2*Math.atan2(Math.sqrt(Ee),Math.sqrt(1-Ee));return this.R*Le}}),V=6378137,ne={R:V,MAX_LATITUDE:85.0511287798,project:function(d){var y=Math.PI/180,E=this.MAX_LATITUDE,k=Math.max(Math.min(E,d.lat),-E),Z=Math.sin(k*y);return new U(this.R*d.lng*y,this.R*Math.log((1+Z)/(1-Z))/2)},unproject:function(d){var y=180/Math.PI;return new de((2*Math.atan(Math.exp(d.y/this.R))-Math.PI/2)*y,d.x*y/this.R)},bounds:function(){var d=V*Math.PI;return new I([-d,-d],[d,d])}()};function ce(d,y,E,k){if(T(d)){this._a=d[0],this._b=d[1],this._c=d[2],this._d=d[3];return}this._a=d,this._b=y,this._c=E,this._d=k}ce.prototype={transform:function(d,y){return this._transform(d.clone(),y)},_transform:function(d,y){return y=y||1,d.x=y*(this._a*d.x+this._b),d.y=y*(this._c*d.y+this._d),d},untransform:function(d,y){return y=y||1,new U((d.x/y-this._b)/this._a,(d.y/y-this._d)/this._c)}};function Q(d,y,E,k){return new ce(d,y,E,k)}var le=i({},z,{code:"EPSG:3857",projection:ne,transformation:function(){var d=.5/(Math.PI*ne.R);return Q(d,.5,-d,.5)}()}),pe=i({},le,{code:"EPSG:900913"});function ye(d){return document.createElementNS("http://www.w3.org/2000/svg",d)}function me(d,y){var E="",k,Z,oe,ve,Ee,Le;for(k=0,oe=d.length;k<oe;k++){for(Ee=d[k],Z=0,ve=Ee.length;Z<ve;Z++)Le=Ee[Z],E+=(Z?"L":"M")+Le.x+" "+Le.y;E+=y?lt.svg?"z":"x":""}return E||"M0 0"}var xe=document.documentElement.style,Ae="ActiveXObject"in window,De=Ae&&!document.addEventListener,ze="msLaunchUri"in navigator&&!("documentMode"in document),$e=Ln("webkit"),Fe=Ln("android"),we=Ln("android 2")||Ln("android 3"),Se=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),ke=Fe&&Ln("Google")&&Se<537&&!("AudioNode"in window),Ne=!!window.opera,Pe=!ze&&Ln("chrome"),qe=Ln("gecko")&&!$e&&!Ne&&!Ae,Ge=!Pe&&Ln("safari"),Qe=Ln("phantom"),ft="OTransition"in xe,st=navigator.platform.indexOf("Win")===0,wt=Ae&&"transition"in xe,kt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!we,It="MozPerspective"in xe,$t=!window.L_DISABLE_3D&&(wt||kt||It)&&!ft&&!Qe,Cr=typeof orientation<"u"||Ln("mobile"),Wn=Cr&&$e,Es=Cr&&kt,li=!window.PointerEvent&&window.MSPointerEvent,Ts=!!(window.PointerEvent||li),za="ontouchstart"in window||!!window.TouchEvent,Pc=!window.L_NO_TOUCH&&(za||Ts),As=Cr&&Ne,Fa=Cr&&qe,yn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,hn=function(){var d=!1;try{var y=Object.defineProperty({},"passive",{get:function(){d=!0}});window.addEventListener("testPassiveEventSupport",m,y),window.removeEventListener("testPassiveEventSupport",m,y)}catch{}return d}(),tr=function(){return!!document.createElement("canvas").getContext}(),Gn=!!(document.createElementNS&&ye("svg").createSVGRect),nn=!!Gn&&function(){var d=document.createElement("div");return d.innerHTML="<svg/>",(d.firstChild&&d.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Mt=!Gn&&function(){try{var d=document.createElement("div");d.innerHTML='<v:shape adj="1"/>';var y=d.firstChild;return y.style.behavior="url(#default#VML)",y&&typeof y.adj=="object"}catch{return!1}}(),rn=navigator.platform.indexOf("Mac")===0,nr=navigator.platform.indexOf("Linux")===0;function Ln(d){return navigator.userAgent.toLowerCase().indexOf(d)>=0}var lt={ie:Ae,ielt9:De,edge:ze,webkit:$e,android:Fe,android23:we,androidStock:ke,opera:Ne,chrome:Pe,gecko:qe,safari:Ge,phantom:Qe,opera12:ft,win:st,ie3d:wt,webkit3d:kt,gecko3d:It,any3d:$t,mobile:Cr,mobileWebkit:Wn,mobileWebkit3d:Es,msPointer:li,pointer:Ts,touch:Pc,touchNative:za,mobileOpera:As,mobileGecko:Fa,retina:yn,passiveEvents:hn,canvas:tr,svg:Gn,vml:Mt,inlineSvg:nn,mac:rn,linux:nr},Hv=lt.msPointer?"MSPointerDown":"pointerdown",ph=lt.msPointer?"MSPointerMove":"pointermove",js=lt.msPointer?"MSPointerUp":"pointerup",Rc=lt.msPointer?"MSPointerCancel":"pointercancel",qa={touchstart:Hv,touchmove:ph,touchend:js,touchcancel:Rc},Oo={touchstart:Yv,touchmove:ou,touchend:ou,touchcancel:ou},Ui={},Co=!1;function zn(d,y,E){return y==="touchstart"&&Tw(),Oo[y]?(E=Oo[y].bind(this,E),d.addEventListener(qa[y],E,!1),E):(console.warn("wrong event specified:",y),m)}function Wv(d,y,E){if(!qa[y]){console.warn("wrong event specified:",y);return}d.removeEventListener(qa[y],E,!1)}function Gv(d){Ui[d.pointerId]=d}function Eo(d){Ui[d.pointerId]&&(Ui[d.pointerId]=d)}function To(d){delete Ui[d.pointerId]}function Tw(){Co||(document.addEventListener(Hv,Gv,!0),document.addEventListener(ph,Eo,!0),document.addEventListener(js,To,!0),document.addEventListener(Rc,To,!0),Co=!0)}function ou(d,y){if(y.pointerType!==(y.MSPOINTER_TYPE_MOUSE||"mouse")){y.touches=[];for(var E in Ui)y.touches.push(Ui[E]);y.changedTouches=[y],d(y)}}function Yv(d,y){y.MSPOINTER_TYPE_TOUCH&&y.pointerType===y.MSPOINTER_TYPE_TOUCH&&Tn(y),ou(d,y)}function Aw(d){var y={},E,k;for(k in d)E=d[k],y[k]=E&&E.bind?E.bind(d):E;return d=y,y.type="dblclick",y.detail=2,y.isTrusted=!1,y._simulated=!0,y}var Mc=200;function Nc(d,y){d.addEventListener("dblclick",y);var E=0,k;function Z(oe){if(oe.detail!==1){k=oe.detail;return}if(!(oe.pointerType==="mouse"||oe.sourceCapabilities&&!oe.sourceCapabilities.firesTouchEvents)){var ve=gh(oe);if(!(ve.some(function(Le){return Le instanceof HTMLLabelElement&&Le.attributes.for})&&!ve.some(function(Le){return Le instanceof HTMLInputElement||Le instanceof HTMLSelectElement}))){var Ee=Date.now();Ee-E<=Mc?(k++,k===2&&y(Aw(oe))):k=1,E=Ee}}}return d.addEventListener("click",Z),{dblclick:y,simDblclick:Z}}function ha(d,y){d.removeEventListener("dblclick",y.dblclick),d.removeEventListener("click",y.simDblclick)}var su=Ns(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Ps=Ns(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Ao=Ps==="webkitTransition"||Ps==="OTransition"?Ps+"End":"transitionend";function Lc(d){return typeof d=="string"?document.getElementById(d):d}function jo(d,y){var E=d.style[y]||d.currentStyle&&d.currentStyle[y];if((!E||E==="auto")&&document.defaultView){var k=document.defaultView.getComputedStyle(d,null);E=k?k[y]:null}return E==="auto"?null:E}function Lt(d,y,E){var k=document.createElement(d);return k.className=y||"",E&&E.appendChild(k),k}function an(d){var y=d.parentNode;y&&y.removeChild(d)}function pr(d){for(;d.firstChild;)d.removeChild(d.firstChild)}function Po(d){var y=d.parentNode;y&&y.lastChild!==d&&y.appendChild(d)}function Rs(d){var y=d.parentNode;y&&y.firstChild!==d&&y.insertBefore(d,y.firstChild)}function Ms(d,y){if(d.classList!==void 0)return d.classList.contains(y);var E=mr(d);return E.length>0&&new RegExp("(^|\\s)"+y+"(\\s|$)").test(E)}function _t(d,y){if(d.classList!==void 0)for(var E=x(y),k=0,Z=E.length;k<Z;k++)d.classList.add(E[k]);else if(!Ms(d,y)){var oe=mr(d);mh(d,(oe?oe+" ":"")+y)}}function on(d,y){d.classList!==void 0?d.classList.remove(y):mh(d,_((" "+mr(d)+" ").replace(" "+y+" "," ")))}function mh(d,y){d.className.baseVal===void 0?d.className=y:d.className.baseVal=y}function mr(d){return d.correspondingElement&&(d=d.correspondingElement),d.className.baseVal===void 0?d.className:d.className.baseVal}function Er(d,y){"opacity"in d.style?d.style.opacity=y:"filter"in d.style&&Kv(d,y)}function Kv(d,y){var E=!1,k="DXImageTransform.Microsoft.Alpha";try{E=d.filters.item(k)}catch{if(y===1)return}y=Math.round(y*100),E?(E.Enabled=y!==100,E.Opacity=y):d.style.filter+=" progid:"+k+"(opacity="+y+")"}function Ns(d){for(var y=document.documentElement.style,E=0;E<d.length;E++)if(d[E]in y)return d[E];return!1}function Qr(d,y,E){var k=y||new U(0,0);d.style[su]=(lt.ie3d?"translate("+k.x+"px,"+k.y+"px)":"translate3d("+k.x+"px,"+k.y+"px,0)")+(E?" scale("+E+")":"")}function Sn(d,y){d._leaflet_pos=y,lt.any3d?Qr(d,y):(d.style.left=y.x+"px",d.style.top=y.y+"px")}function Va(d){return d._leaflet_pos||new U(0,0)}var zi,lu,Dc;if("onselectstart"in document)zi=function(){bt(window,"selectstart",Tn)},lu=function(){Bt(window,"selectstart",Tn)};else{var Ls=Ns(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);zi=function(){if(Ls){var d=document.documentElement.style;Dc=d[Ls],d[Ls]="none"}},lu=function(){Ls&&(document.documentElement.style[Ls]=Dc,Dc=void 0)}}function uu(){bt(window,"dragstart",Tn)}function vh(){Bt(window,"dragstart",Tn)}var kc,Ds;function cu(d){for(;d.tabIndex===-1;)d=d.parentNode;d.style&&(ks(),kc=d,Ds=d.style.outlineStyle,d.style.outlineStyle="none",bt(window,"keydown",ks))}function ks(){kc&&(kc.style.outlineStyle=Ds,kc=void 0,Ds=void 0,Bt(window,"keydown",ks))}function Ro(d){do d=d.parentNode;while((!d.offsetWidth||!d.offsetHeight)&&d!==document.body);return d}function Ha(d){var y=d.getBoundingClientRect();return{x:y.width/d.offsetWidth||1,y:y.height/d.offsetHeight||1,boundingClientRect:y}}var Zv={__proto__:null,TRANSFORM:su,TRANSITION:Ps,TRANSITION_END:Ao,get:Lc,getStyle:jo,create:Lt,remove:an,empty:pr,toFront:Po,toBack:Rs,hasClass:Ms,addClass:_t,removeClass:on,setClass:mh,getClass:mr,setOpacity:Er,testProp:Ns,setTransform:Qr,setPosition:Sn,getPosition:Va,get disableTextSelection(){return zi},get enableTextSelection(){return lu},disableImageDrag:uu,enableImageDrag:vh,preventOutline:cu,restoreOutline:ks,getSizedParentNode:Ro,getScale:Ha};function bt(d,y,E,k){if(y&&typeof y=="object")for(var Z in y)Mo(d,Z,y[Z],E);else{y=x(y);for(var oe=0,ve=y.length;oe<ve;oe++)Mo(d,y[oe],E,k)}return this}var ui="_leaflet_events";function Bt(d,y,E,k){if(arguments.length===1)Fi(d),delete d[ui];else if(y&&typeof y=="object")for(var Z in y)qi(d,Z,y[Z],E);else if(y=x(y),arguments.length===2)Fi(d,function(Ee){return j(y,Ee)!==-1});else for(var oe=0,ve=y.length;oe<ve;oe++)qi(d,y[oe],E,k);return this}function Fi(d,y){for(var E in d[ui]){var k=E.split(/\d/)[0];(!y||y(k))&&qi(d,k,null,null,E)}}var fu={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Mo(d,y,E,k){var Z=y+f(E)+(k?"_"+f(k):"");if(d[ui]&&d[ui][Z])return this;var oe=function(Ee){return E.call(k||d,Ee||window.event)},ve=oe;!lt.touchNative&&lt.pointer&&y.indexOf("touch")===0?oe=zn(d,y,oe):lt.touch&&y==="dblclick"?oe=Nc(d,oe):"addEventListener"in d?y==="touchstart"||y==="touchmove"||y==="wheel"||y==="mousewheel"?d.addEventListener(fu[y]||y,oe,lt.passiveEvents?{passive:!1}:!1):y==="mouseenter"||y==="mouseleave"?(oe=function(Ee){Ee=Ee||window.event,Lo(d,Ee)&&ve(Ee)},d.addEventListener(fu[y],oe,!1)):d.addEventListener(y,ve,!1):d.attachEvent("on"+y,oe),d[ui]=d[ui]||{},d[ui][Z]=oe}function qi(d,y,E,k,Z){Z=Z||y+f(E)+(k?"_"+f(k):"");var oe=d[ui]&&d[ui][Z];if(!oe)return this;!lt.touchNative&&lt.pointer&&y.indexOf("touch")===0?Wv(d,y,oe):lt.touch&&y==="dblclick"?ha(d,oe):"removeEventListener"in d?d.removeEventListener(fu[y]||y,oe,!1):d.detachEvent("on"+y,oe),d[ui][Z]=null}function pa(d){return d.stopPropagation?d.stopPropagation():d.originalEvent?d.originalEvent._stopped=!0:d.cancelBubble=!0,this}function Is(d){return Mo(d,"wheel",pa),this}function $s(d){return bt(d,"mousedown touchstart dblclick contextmenu",pa),d._leaflet_disable_click=!0,this}function Tn(d){return d.preventDefault?d.preventDefault():d.returnValue=!1,this}function Vi(d){return Tn(d),pa(d),this}function gh(d){if(d.composedPath)return d.composedPath();for(var y=[],E=d.target;E;)y.push(E),E=E.parentNode;return y}function vr(d,y){if(!y)return new U(d.clientX,d.clientY);var E=Ha(y),k=E.boundingClientRect;return new U((d.clientX-k.left)/E.x-y.clientLeft,(d.clientY-k.top)/E.y-y.clientTop)}var No=lt.linux&&lt.chrome?window.devicePixelRatio:lt.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function du(d){return lt.edge?d.wheelDeltaY/2:d.deltaY&&d.deltaMode===0?-d.deltaY/No:d.deltaY&&d.deltaMode===1?-d.deltaY*20:d.deltaY&&d.deltaMode===2?-d.deltaY*60:d.deltaX||d.deltaZ?0:d.wheelDelta?(d.wheelDeltaY||d.wheelDelta)/2:d.detail&&Math.abs(d.detail)<32765?-d.detail*20:d.detail?d.detail/-32765*60:0}function Lo(d,y){var E=y.relatedTarget;if(!E)return!0;try{for(;E&&E!==d;)E=E.parentNode}catch{return!1}return E!==d}var jw={__proto__:null,on:bt,off:Bt,stopPropagation:pa,disableScrollPropagation:Is,disableClickPropagation:$s,preventDefault:Tn,stop:Vi,getPropagationPath:gh,getMousePosition:vr,getWheelDelta:du,isExternalTarget:Lo,addListener:bt,removeListener:Bt},Ic=B.extend({run:function(d,y,E,k){this.stop(),this._el=d,this._inProgress=!0,this._duration=E||.25,this._easeOutPower=1/Math.max(k||.5,.2),this._startPos=Va(d),this._offset=y.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=G(this._animate,this),this._step()},_step:function(d){var y=+new Date-this._startTime,E=this._duration*1e3;y<E?this._runFrame(this._easeOut(y/E),d):(this._runFrame(1),this._complete())},_runFrame:function(d,y){var E=this._startPos.add(this._offset.multiplyBy(d));y&&E._round(),Sn(this._el,E),this.fire("step")},_complete:function(){te(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(d){return 1-Math.pow(1-d,this._easeOutPower)}}),Et=B.extend({options:{crs:le,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(d,y){y=w(this,y),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(d),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),y.maxBounds&&this.setMaxBounds(y.maxBounds),y.zoom!==void 0&&(this._zoom=this._limitZoom(y.zoom)),y.center&&y.zoom!==void 0&&this.setView(fe(y.center),y.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Ps&&lt.any3d&&!lt.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),bt(this._proxy,Ao,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(d,y,E){if(y=y===void 0?this._zoom:this._limitZoom(y),d=this._limitCenter(fe(d),y,this.options.maxBounds),E=E||{},this._stop(),this._loaded&&!E.reset&&E!==!0){E.animate!==void 0&&(E.zoom=i({animate:E.animate},E.zoom),E.pan=i({animate:E.animate,duration:E.duration},E.pan));var k=this._zoom!==y?this._tryAnimatedZoom&&this._tryAnimatedZoom(d,y,E.zoom):this._tryAnimatedPan(d,E.pan);if(k)return clearTimeout(this._sizeTimer),this}return this._resetView(d,y,E.pan&&E.pan.noMoveStart),this},setZoom:function(d,y){return this._loaded?this.setView(this.getCenter(),d,{zoom:y}):(this._zoom=d,this)},zoomIn:function(d,y){return d=d||(lt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+d,y)},zoomOut:function(d,y){return d=d||(lt.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-d,y)},setZoomAround:function(d,y,E){var k=this.getZoomScale(y),Z=this.getSize().divideBy(2),oe=d instanceof U?d:this.latLngToContainerPoint(d),ve=oe.subtract(Z).multiplyBy(1-1/k),Ee=this.containerPointToLatLng(Z.add(ve));return this.setView(Ee,y,{zoom:E})},_getBoundsCenterZoom:function(d,y){y=y||{},d=d.getBounds?d.getBounds():ae(d);var E=M(y.paddingTopLeft||y.padding||[0,0]),k=M(y.paddingBottomRight||y.padding||[0,0]),Z=this.getBoundsZoom(d,!1,E.add(k));if(Z=typeof y.maxZoom=="number"?Math.min(y.maxZoom,Z):Z,Z===1/0)return{center:d.getCenter(),zoom:Z};var oe=k.subtract(E).divideBy(2),ve=this.project(d.getSouthWest(),Z),Ee=this.project(d.getNorthEast(),Z),Le=this.unproject(ve.add(Ee).divideBy(2).add(oe),Z);return{center:Le,zoom:Z}},fitBounds:function(d,y){if(d=ae(d),!d.isValid())throw new Error("Bounds are not valid.");var E=this._getBoundsCenterZoom(d,y);return this.setView(E.center,E.zoom,y)},fitWorld:function(d){return this.fitBounds([[-90,-180],[90,180]],d)},panTo:function(d,y){return this.setView(d,this._zoom,{pan:y})},panBy:function(d,y){if(d=M(d).round(),y=y||{},!d.x&&!d.y)return this.fire("moveend");if(y.animate!==!0&&!this.getSize().contains(d))return this._resetView(this.unproject(this.project(this.getCenter()).add(d)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new Ic,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),y.noMoveStart||this.fire("movestart"),y.animate!==!1){_t(this._mapPane,"leaflet-pan-anim");var E=this._getMapPanePos().subtract(d).round();this._panAnim.run(this._mapPane,E,y.duration||.25,y.easeLinearity)}else this._rawPanBy(d),this.fire("move").fire("moveend");return this},flyTo:function(d,y,E){if(E=E||{},E.animate===!1||!lt.any3d)return this.setView(d,y,E);this._stop();var k=this.project(this.getCenter()),Z=this.project(d),oe=this.getSize(),ve=this._zoom;d=fe(d),y=y===void 0?ve:y;var Ee=Math.max(oe.x,oe.y),Le=Ee*this.getZoomScale(ve,y),He=Z.distanceTo(k)||1,et=1.42,rt=et*et;function at(bn){var Gi=bn?-1:1,ga=bn?Le:Ee,Za=Le*Le-Ee*Ee+Gi*rt*rt*He*He,ya=2*ga*rt*He,Cu=Za/ya,Zc=Math.sqrt(Cu*Cu+1)-Cu,Eu=Zc<1e-9?-18:Math.log(Zc);return Eu}function yt(bn){return(Math.exp(bn)-Math.exp(-bn))/2}function sn(bn){return(Math.exp(bn)+Math.exp(-bn))/2}function On(bn){return yt(bn)/sn(bn)}var ir=at(0);function Jr(bn){return Ee*(sn(ir)/sn(ir+et*bn))}function mg(bn){return Ee*(sn(ir)*On(ir+et*bn)-yt(ir))/rt}function vg(bn){return 1-Math.pow(1-bn,1.5)}var Ou=Date.now(),Zs=(at(1)-ir)/et,gg=E.duration?1e3*E.duration:1e3*Zs*.8;function Xs(){var bn=(Date.now()-Ou)/gg,Gi=vg(bn)*Zs;bn<=1?(this._flyToFrame=G(Xs,this),this._move(this.unproject(k.add(Z.subtract(k).multiplyBy(mg(Gi)/He)),ve),this.getScaleZoom(Ee/Jr(Gi),ve),{flyTo:!0})):this._move(d,y)._moveEnd(!0)}return this._moveStart(!0,E.noMoveStart),Xs.call(this),this},flyToBounds:function(d,y){var E=this._getBoundsCenterZoom(d,y);return this.flyTo(E.center,E.zoom,y)},setMaxBounds:function(d){return d=ae(d),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),d.isValid()?(this.options.maxBounds=d,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(d){var y=this.options.minZoom;return this.options.minZoom=d,this._loaded&&y!==d&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(d):this},setMaxZoom:function(d){var y=this.options.maxZoom;return this.options.maxZoom=d,this._loaded&&y!==d&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(d):this},panInsideBounds:function(d,y){this._enforcingBounds=!0;var E=this.getCenter(),k=this._limitCenter(E,this._zoom,ae(d));return E.equals(k)||this.panTo(k,y),this._enforcingBounds=!1,this},panInside:function(d,y){y=y||{};var E=M(y.paddingTopLeft||y.padding||[0,0]),k=M(y.paddingBottomRight||y.padding||[0,0]),Z=this.project(this.getCenter()),oe=this.project(d),ve=this.getPixelBounds(),Ee=J([ve.min.add(E),ve.max.subtract(k)]),Le=Ee.getSize();if(!Ee.contains(oe)){this._enforcingBounds=!0;var He=oe.subtract(Ee.getCenter()),et=Ee.extend(oe).getSize().subtract(Le);Z.x+=He.x<0?-et.x:et.x,Z.y+=He.y<0?-et.y:et.y,this.panTo(this.unproject(Z),y),this._enforcingBounds=!1}return this},invalidateSize:function(d){if(!this._loaded)return this;d=i({animate:!1,pan:!0},d===!0?{animate:!0}:d);var y=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var E=this.getSize(),k=y.divideBy(2).round(),Z=E.divideBy(2).round(),oe=k.subtract(Z);return!oe.x&&!oe.y?this:(d.animate&&d.pan?this.panBy(oe):(d.pan&&this._rawPanBy(oe),this.fire("move"),d.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:y,newSize:E}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(d){if(d=this._locateOptions=i({timeout:1e4,watch:!1},d),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var y=o(this._handleGeolocationResponse,this),E=o(this._handleGeolocationError,this);return d.watch?this._locationWatchId=navigator.geolocation.watchPosition(y,E,d):navigator.geolocation.getCurrentPosition(y,E,d),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(d){if(this._container._leaflet_id){var y=d.code,E=d.message||(y===1?"permission denied":y===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:y,message:"Geolocation error: "+E+"."})}},_handleGeolocationResponse:function(d){if(this._container._leaflet_id){var y=d.coords.latitude,E=d.coords.longitude,k=new de(y,E),Z=k.toBounds(d.coords.accuracy*2),oe=this._locateOptions;if(oe.setView){var ve=this.getBoundsZoom(Z);this.setView(k,oe.maxZoom?Math.min(ve,oe.maxZoom):ve)}var Ee={latlng:k,bounds:Z,timestamp:d.timestamp};for(var Le in d.coords)typeof d.coords[Le]=="number"&&(Ee[Le]=d.coords[Le]);this.fire("locationfound",Ee)}},addHandler:function(d,y){if(!y)return this;var E=this[d]=new y(this);return this._handlers.push(E),this.options[d]&&E.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(),an(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(te(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var d;for(d in this._layers)this._layers[d].remove();for(d in this._panes)an(this._panes[d]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(d,y){var E="leaflet-pane"+(d?" leaflet-"+d.replace("Pane","")+"-pane":""),k=Lt("div",E,y||this._mapPane);return d&&(this._panes[d]=k),k},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var d=this.getPixelBounds(),y=this.unproject(d.getBottomLeft()),E=this.unproject(d.getTopRight());return new Y(y,E)},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(d,y,E){d=ae(d),E=M(E||[0,0]);var k=this.getZoom()||0,Z=this.getMinZoom(),oe=this.getMaxZoom(),ve=d.getNorthWest(),Ee=d.getSouthEast(),Le=this.getSize().subtract(E),He=J(this.project(Ee,k),this.project(ve,k)).getSize(),et=lt.any3d?this.options.zoomSnap:1,rt=Le.x/He.x,at=Le.y/He.y,yt=y?Math.max(rt,at):Math.min(rt,at);return k=this.getScaleZoom(yt,k),et&&(k=Math.round(k/(et/100))*(et/100),k=y?Math.ceil(k/et)*et:Math.floor(k/et)*et),Math.max(Z,Math.min(oe,k))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new U(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(d,y){var E=this._getTopLeftPoint(d,y);return new I(E,E.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(d){return this.options.crs.getProjectedBounds(d===void 0?this.getZoom():d)},getPane:function(d){return typeof d=="string"?this._panes[d]:d},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(d,y){var E=this.options.crs;return y=y===void 0?this._zoom:y,E.scale(d)/E.scale(y)},getScaleZoom:function(d,y){var E=this.options.crs;y=y===void 0?this._zoom:y;var k=E.zoom(d*E.scale(y));return isNaN(k)?1/0:k},project:function(d,y){return y=y===void 0?this._zoom:y,this.options.crs.latLngToPoint(fe(d),y)},unproject:function(d,y){return y=y===void 0?this._zoom:y,this.options.crs.pointToLatLng(M(d),y)},layerPointToLatLng:function(d){var y=M(d).add(this.getPixelOrigin());return this.unproject(y)},latLngToLayerPoint:function(d){var y=this.project(fe(d))._round();return y._subtract(this.getPixelOrigin())},wrapLatLng:function(d){return this.options.crs.wrapLatLng(fe(d))},wrapLatLngBounds:function(d){return this.options.crs.wrapLatLngBounds(ae(d))},distance:function(d,y){return this.options.crs.distance(fe(d),fe(y))},containerPointToLayerPoint:function(d){return M(d).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(d){return M(d).add(this._getMapPanePos())},containerPointToLatLng:function(d){var y=this.containerPointToLayerPoint(M(d));return this.layerPointToLatLng(y)},latLngToContainerPoint:function(d){return this.layerPointToContainerPoint(this.latLngToLayerPoint(fe(d)))},mouseEventToContainerPoint:function(d){return vr(d,this._container)},mouseEventToLayerPoint:function(d){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(d))},mouseEventToLatLng:function(d){return this.layerPointToLatLng(this.mouseEventToLayerPoint(d))},_initContainer:function(d){var y=this._container=Lc(d);if(y){if(y._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");bt(y,"scroll",this._onScroll,this),this._containerId=f(y)},_initLayout:function(){var d=this._container;this._fadeAnimated=this.options.fadeAnimation&&lt.any3d,_t(d,"leaflet-container"+(lt.touch?" leaflet-touch":"")+(lt.retina?" leaflet-retina":"")+(lt.ielt9?" leaflet-oldie":"")+(lt.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var y=jo(d,"position");y!=="absolute"&&y!=="relative"&&y!=="fixed"&&y!=="sticky"&&(d.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var d=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Sn(this._mapPane,new U(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(_t(d.markerPane,"leaflet-zoom-hide"),_t(d.shadowPane,"leaflet-zoom-hide"))},_resetView:function(d,y,E){Sn(this._mapPane,new U(0,0));var k=!this._loaded;this._loaded=!0,y=this._limitZoom(y),this.fire("viewprereset");var Z=this._zoom!==y;this._moveStart(Z,E)._move(d,y)._moveEnd(Z),this.fire("viewreset"),k&&this.fire("load")},_moveStart:function(d,y){return d&&this.fire("zoomstart"),y||this.fire("movestart"),this},_move:function(d,y,E,k){y===void 0&&(y=this._zoom);var Z=this._zoom!==y;return this._zoom=y,this._lastCenter=d,this._pixelOrigin=this._getNewPixelOrigin(d),k?E&&E.pinch&&this.fire("zoom",E):((Z||E&&E.pinch)&&this.fire("zoom",E),this.fire("move",E)),this},_moveEnd:function(d){return d&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return te(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(d){Sn(this._mapPane,this._getMapPanePos().subtract(d))},_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(d){this._targets={},this._targets[f(this._container)]=this;var y=d?Bt:bt;y(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&y(window,"resize",this._onResize,this),lt.any3d&&this.options.transform3DLimit&&(d?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){te(this._resizeRequest),this._resizeRequest=G(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var d=this._getMapPanePos();Math.max(Math.abs(d.x),Math.abs(d.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(d,y){for(var E=[],k,Z=y==="mouseout"||y==="mouseover",oe=d.target||d.srcElement,ve=!1;oe;){if(k=this._targets[f(oe)],k&&(y==="click"||y==="preclick")&&this._draggableMoved(k)){ve=!0;break}if(k&&k.listens(y,!0)&&(Z&&!Lo(oe,d)||(E.push(k),Z))||oe===this._container)break;oe=oe.parentNode}return!E.length&&!ve&&!Z&&this.listens(y,!0)&&(E=[this]),E},_isClickDisabled:function(d){for(;d&&d!==this._container;){if(d._leaflet_disable_click)return!0;d=d.parentNode}},_handleDOMEvent:function(d){var y=d.target||d.srcElement;if(!(!this._loaded||y._leaflet_disable_events||d.type==="click"&&this._isClickDisabled(y))){var E=d.type;E==="mousedown"&&cu(y),this._fireDOMEvent(d,E)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(d,y,E){if(d.type==="click"){var k=i({},d);k.type="preclick",this._fireDOMEvent(k,k.type,E)}var Z=this._findEventTargets(d,y);if(E){for(var oe=[],ve=0;ve<E.length;ve++)E[ve].listens(y,!0)&&oe.push(E[ve]);Z=oe.concat(Z)}if(Z.length){y==="contextmenu"&&Tn(d);var Ee=Z[0],Le={originalEvent:d};if(d.type!=="keypress"&&d.type!=="keydown"&&d.type!=="keyup"){var He=Ee.getLatLng&&(!Ee._radius||Ee._radius<=10);Le.containerPoint=He?this.latLngToContainerPoint(Ee.getLatLng()):this.mouseEventToContainerPoint(d),Le.layerPoint=this.containerPointToLayerPoint(Le.containerPoint),Le.latlng=He?Ee.getLatLng():this.layerPointToLatLng(Le.layerPoint)}for(ve=0;ve<Z.length;ve++)if(Z[ve].fire(y,Le,!0),Le.originalEvent._stopped||Z[ve].options.bubblingMouseEvents===!1&&j(this._mouseEvents,y)!==-1)return}},_draggableMoved:function(d){return d=d.dragging&&d.dragging.enabled()?d:this,d.dragging&&d.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var d=0,y=this._handlers.length;d<y;d++)this._handlers[d].disable()},whenReady:function(d,y){return this._loaded?d.call(y||this,{target:this}):this.on("load",d,y),this},_getMapPanePos:function(){return Va(this._mapPane)||new U(0,0)},_moved:function(){var d=this._getMapPanePos();return d&&!d.equals([0,0])},_getTopLeftPoint:function(d,y){var E=d&&y!==void 0?this._getNewPixelOrigin(d,y):this.getPixelOrigin();return E.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(d,y){var E=this.getSize()._divideBy(2);return this.project(d,y)._subtract(E)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(d,y,E){var k=this._getNewPixelOrigin(E,y);return this.project(d,y)._subtract(k)},_latLngBoundsToNewLayerBounds:function(d,y,E){var k=this._getNewPixelOrigin(E,y);return J([this.project(d.getSouthWest(),y)._subtract(k),this.project(d.getNorthWest(),y)._subtract(k),this.project(d.getSouthEast(),y)._subtract(k),this.project(d.getNorthEast(),y)._subtract(k)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(d){return this.latLngToLayerPoint(d).subtract(this._getCenterLayerPoint())},_limitCenter:function(d,y,E){if(!E)return d;var k=this.project(d,y),Z=this.getSize().divideBy(2),oe=new I(k.subtract(Z),k.add(Z)),ve=this._getBoundsOffset(oe,E,y);return Math.abs(ve.x)<=1&&Math.abs(ve.y)<=1?d:this.unproject(k.add(ve),y)},_limitOffset:function(d,y){if(!y)return d;var E=this.getPixelBounds(),k=new I(E.min.add(d),E.max.add(d));return d.add(this._getBoundsOffset(k,y))},_getBoundsOffset:function(d,y,E){var k=J(this.project(y.getNorthEast(),E),this.project(y.getSouthWest(),E)),Z=k.min.subtract(d.min),oe=k.max.subtract(d.max),ve=this._rebound(Z.x,-oe.x),Ee=this._rebound(Z.y,-oe.y);return new U(ve,Ee)},_rebound:function(d,y){return d+y>0?Math.round(d-y)/2:Math.max(0,Math.ceil(d))-Math.max(0,Math.floor(y))},_limitZoom:function(d){var y=this.getMinZoom(),E=this.getMaxZoom(),k=lt.any3d?this.options.zoomSnap:1;return k&&(d=Math.round(d/k)*k),Math.max(y,Math.min(E,d))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){on(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(d,y){var E=this._getCenterOffset(d)._trunc();return(y&&y.animate)!==!0&&!this.getSize().contains(E)?!1:(this.panBy(E,y),!0)},_createAnimProxy:function(){var d=this._proxy=Lt("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(d),this.on("zoomanim",function(y){var E=su,k=this._proxy.style[E];Qr(this._proxy,this.project(y.center,y.zoom),this.getZoomScale(y.zoom,1)),k===this._proxy.style[E]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){an(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var d=this.getCenter(),y=this.getZoom();Qr(this._proxy,this.project(d,y),this.getZoomScale(y,1))},_catchTransitionEnd:function(d){this._animatingZoom&&d.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(d,y,E){if(this._animatingZoom)return!0;if(E=E||{},!this._zoomAnimated||E.animate===!1||this._nothingToAnimate()||Math.abs(y-this._zoom)>this.options.zoomAnimationThreshold)return!1;var k=this.getZoomScale(y),Z=this._getCenterOffset(d)._divideBy(1-1/k);return E.animate!==!0&&!this.getSize().contains(Z)?!1:(G(function(){this._moveStart(!0,E.noMoveStart||!1)._animateZoom(d,y,!0)},this),!0)},_animateZoom:function(d,y,E,k){this._mapPane&&(E&&(this._animatingZoom=!0,this._animateToCenter=d,this._animateToZoom=y,_t(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:d,zoom:y,noUpdate:k}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&on(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 hu(d,y){return new Et(d,y)}var Tr=X.extend({options:{position:"topright"},initialize:function(d){w(this,d)},getPosition:function(){return this.options.position},setPosition:function(d){var y=this._map;return y&&y.removeControl(this),this.options.position=d,y&&y.addControl(this),this},getContainer:function(){return this._container},addTo:function(d){this.remove(),this._map=d;var y=this._container=this.onAdd(d),E=this.getPosition(),k=d._controlCorners[E];return _t(y,"leaflet-control"),E.indexOf("bottom")!==-1?k.insertBefore(y,k.firstChild):k.appendChild(y),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(an(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(d){this._map&&d&&d.screenX>0&&d.screenY>0&&this._map.getContainer().focus()}}),Bs=function(d){return new Tr(d)};Et.include({addControl:function(d){return d.addTo(this),this},removeControl:function(d){return d.remove(),this},_initControlPos:function(){var d=this._controlCorners={},y="leaflet-",E=this._controlContainer=Lt("div",y+"control-container",this._container);function k(Z,oe){var ve=y+Z+" "+y+oe;d[Z+oe]=Lt("div",ve,E)}k("top","left"),k("top","right"),k("bottom","left"),k("bottom","right")},_clearControlPos:function(){for(var d in this._controlCorners)an(this._controlCorners[d]);an(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var Xv=Tr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(d,y,E,k){return E<k?-1:k<E?1:0}},initialize:function(d,y,E){w(this,E),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var k in d)this._addLayer(d[k],k);for(k in y)this._addLayer(y[k],k,!0)},onAdd:function(d){this._initLayout(),this._update(),this._map=d,d.on("zoomend",this._checkDisabledLayers,this);for(var y=0;y<this._layers.length;y++)this._layers[y].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(d){return Tr.prototype.addTo.call(this,d),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var d=0;d<this._layers.length;d++)this._layers[d].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(d,y){return this._addLayer(d,y),this._map?this._update():this},addOverlay:function(d,y){return this._addLayer(d,y,!0),this._map?this._update():this},removeLayer:function(d){d.off("add remove",this._onLayerChange,this);var y=this._getLayer(f(d));return y&&this._layers.splice(this._layers.indexOf(y),1),this._map?this._update():this},expand:function(){_t(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var d=this._map.getSize().y-(this._container.offsetTop+50);return d<this._section.clientHeight?(_t(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=d+"px"):on(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return on(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var d="leaflet-control-layers",y=this._container=Lt("div",d),E=this.options.collapsed;y.setAttribute("aria-haspopup",!0),$s(y),Is(y);var k=this._section=Lt("section",d+"-list");E&&(this._map.on("click",this.collapse,this),bt(y,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var Z=this._layersLink=Lt("a",d+"-toggle",y);Z.href="#",Z.title="Layers",Z.setAttribute("role","button"),bt(Z,{keydown:function(oe){oe.keyCode===13&&this._expandSafely()},click:function(oe){Tn(oe),this._expandSafely()}},this),E||this.expand(),this._baseLayersList=Lt("div",d+"-base",k),this._separator=Lt("div",d+"-separator",k),this._overlaysList=Lt("div",d+"-overlays",k),y.appendChild(k)},_getLayer:function(d){for(var y=0;y<this._layers.length;y++)if(this._layers[y]&&f(this._layers[y].layer)===d)return this._layers[y]},_addLayer:function(d,y,E){this._map&&d.on("add remove",this._onLayerChange,this),this._layers.push({layer:d,name:y,overlay:E}),this.options.sortLayers&&this._layers.sort(o(function(k,Z){return this.options.sortFunction(k.layer,Z.layer,k.name,Z.name)},this)),this.options.autoZIndex&&d.setZIndex&&(this._lastZIndex++,d.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;pr(this._baseLayersList),pr(this._overlaysList),this._layerControlInputs=[];var d,y,E,k,Z=0;for(E=0;E<this._layers.length;E++)k=this._layers[E],this._addItem(k),y=y||k.overlay,d=d||!k.overlay,Z+=k.overlay?0:1;return this.options.hideSingleBase&&(d=d&&Z>1,this._baseLayersList.style.display=d?"":"none"),this._separator.style.display=y&&d?"":"none",this},_onLayerChange:function(d){this._handlingClick||this._update();var y=this._getLayer(f(d.target)),E=y.overlay?d.type==="add"?"overlayadd":"overlayremove":d.type==="add"?"baselayerchange":null;E&&this._map.fire(E,y)},_createRadioElement:function(d,y){var E='<input type="radio" class="leaflet-control-layers-selector" name="'+d+'"'+(y?' checked="checked"':"")+"/>",k=document.createElement("div");return k.innerHTML=E,k.firstChild},_addItem:function(d){var y=document.createElement("label"),E=this._map.hasLayer(d.layer),k;d.overlay?(k=document.createElement("input"),k.type="checkbox",k.className="leaflet-control-layers-selector",k.defaultChecked=E):k=this._createRadioElement("leaflet-base-layers_"+f(this),E),this._layerControlInputs.push(k),k.layerId=f(d.layer),bt(k,"click",this._onInputClick,this);var Z=document.createElement("span");Z.innerHTML=" "+d.name;var oe=document.createElement("span");y.appendChild(oe),oe.appendChild(k),oe.appendChild(Z);var ve=d.overlay?this._overlaysList:this._baseLayersList;return ve.appendChild(y),this._checkDisabledLayers(),y},_onInputClick:function(){if(!this._preventClick){var d=this._layerControlInputs,y,E,k=[],Z=[];this._handlingClick=!0;for(var oe=d.length-1;oe>=0;oe--)y=d[oe],E=this._getLayer(y.layerId).layer,y.checked?k.push(E):y.checked||Z.push(E);for(oe=0;oe<Z.length;oe++)this._map.hasLayer(Z[oe])&&this._map.removeLayer(Z[oe]);for(oe=0;oe<k.length;oe++)this._map.hasLayer(k[oe])||this._map.addLayer(k[oe]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var d=this._layerControlInputs,y,E,k=this._map.getZoom(),Z=d.length-1;Z>=0;Z--)y=d[Z],E=this._getLayer(y.layerId).layer,y.disabled=E.options.minZoom!==void 0&&k<E.options.minZoom||E.options.maxZoom!==void 0&&k>E.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var d=this._section;this._preventClick=!0,bt(d,"click",Tn),this.expand();var y=this;setTimeout(function(){Bt(d,"click",Tn),y._preventClick=!1})}}),Pw=function(d,y,E){return new Xv(d,y,E)},yh=Tr.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(d){var y="leaflet-control-zoom",E=Lt("div",y+" leaflet-bar"),k=this.options;return this._zoomInButton=this._createButton(k.zoomInText,k.zoomInTitle,y+"-in",E,this._zoomIn),this._zoomOutButton=this._createButton(k.zoomOutText,k.zoomOutTitle,y+"-out",E,this._zoomOut),this._updateDisabled(),d.on("zoomend zoomlevelschange",this._updateDisabled,this),E},onRemove:function(d){d.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(d){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(d.shiftKey?3:1))},_zoomOut:function(d){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(d.shiftKey?3:1))},_createButton:function(d,y,E,k,Z){var oe=Lt("a",E,k);return oe.innerHTML=d,oe.href="#",oe.title=y,oe.setAttribute("role","button"),oe.setAttribute("aria-label",y),$s(oe),bt(oe,"click",Vi),bt(oe,"click",Z,this),bt(oe,"click",this._refocusOnMap,this),oe},_updateDisabled:function(){var d=this._map,y="leaflet-disabled";on(this._zoomInButton,y),on(this._zoomOutButton,y),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||d._zoom===d.getMinZoom())&&(_t(this._zoomOutButton,y),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||d._zoom===d.getMaxZoom())&&(_t(this._zoomInButton,y),this._zoomInButton.setAttribute("aria-disabled","true"))}});Et.mergeOptions({zoomControl:!0}),Et.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new yh,this.addControl(this.zoomControl))});var bh=function(d){return new yh(d)},Qv=Tr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(d){var y="leaflet-control-scale",E=Lt("div",y),k=this.options;return this._addScales(k,y+"-line",E),d.on(k.updateWhenIdle?"moveend":"move",this._update,this),d.whenReady(this._update,this),E},onRemove:function(d){d.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(d,y,E){d.metric&&(this._mScale=Lt("div",y,E)),d.imperial&&(this._iScale=Lt("div",y,E))},_update:function(){var d=this._map,y=d.getSize().y/2,E=d.distance(d.containerPointToLatLng([0,y]),d.containerPointToLatLng([this.options.maxWidth,y]));this._updateScales(E)},_updateScales:function(d){this.options.metric&&d&&this._updateMetric(d),this.options.imperial&&d&&this._updateImperial(d)},_updateMetric:function(d){var y=this._getRoundNum(d),E=y<1e3?y+" m":y/1e3+" km";this._updateScale(this._mScale,E,y/d)},_updateImperial:function(d){var y=d*3.2808399,E,k,Z;y>5280?(E=y/5280,k=this._getRoundNum(E),this._updateScale(this._iScale,k+" mi",k/E)):(Z=this._getRoundNum(y),this._updateScale(this._iScale,Z+" ft",Z/y))},_updateScale:function(d,y,E){d.style.width=Math.round(this.options.maxWidth*E)+"px",d.innerHTML=y},_getRoundNum:function(d){var y=Math.pow(10,(Math.floor(d)+"").length-1),E=d/y;return E=E>=10?10:E>=5?5:E>=3?3:E>=2?2:1,y*E}}),Rw=function(d){return new Qv(d)},Mw='<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>',wh=Tr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(lt.inlineSvg?Mw+" ":"")+"Leaflet</a>"},initialize:function(d){w(this,d),this._attributions={}},onAdd:function(d){d.attributionControl=this,this._container=Lt("div","leaflet-control-attribution"),$s(this._container);for(var y in d._layers)d._layers[y].getAttribution&&this.addAttribution(d._layers[y].getAttribution());return this._update(),d.on("layeradd",this._addAttribution,this),this._container},onRemove:function(d){d.off("layeradd",this._addAttribution,this)},_addAttribution:function(d){d.layer.getAttribution&&(this.addAttribution(d.layer.getAttribution()),d.layer.once("remove",function(){this.removeAttribution(d.layer.getAttribution())},this))},setPrefix:function(d){return this.options.prefix=d,this._update(),this},addAttribution:function(d){return d?(this._attributions[d]||(this._attributions[d]=0),this._attributions[d]++,this._update(),this):this},removeAttribution:function(d){return d?(this._attributions[d]&&(this._attributions[d]--,this._update()),this):this},_update:function(){if(this._map){var d=[];for(var y in this._attributions)this._attributions[y]&&d.push(y);var E=[];this.options.prefix&&E.push(this.options.prefix),d.length&&E.push(d.join(", ")),this._container.innerHTML=E.join(' <span aria-hidden="true">|</span> ')}}});Et.mergeOptions({attributionControl:!0}),Et.addInitHook(function(){this.options.attributionControl&&new wh().addTo(this)});var Nw=function(d){return new wh(d)};Tr.Layers=Xv,Tr.Zoom=yh,Tr.Scale=Qv,Tr.Attribution=wh,Bs.layers=Pw,Bs.zoom=bh,Bs.scale=Rw,Bs.attribution=Nw;var ci=X.extend({initialize:function(d){this._map=d},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}});ci.addTo=function(d,y){return d.addHandler(y,this),this};var Lw={Events:W},Jv=lt.touch?"touchstart mousedown":"mousedown",Wa=B.extend({options:{clickTolerance:3},initialize:function(d,y,E,k){w(this,k),this._element=d,this._dragStartTarget=y||d,this._preventOutline=E},enable:function(){this._enabled||(bt(this._dragStartTarget,Jv,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(Wa._dragging===this&&this.finishDrag(!0),Bt(this._dragStartTarget,Jv,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(d){if(this._enabled&&(this._moved=!1,!Ms(this._element,"leaflet-zoom-anim"))){if(d.touches&&d.touches.length!==1){Wa._dragging===this&&this.finishDrag();return}if(!(Wa._dragging||d.shiftKey||d.which!==1&&d.button!==1&&!d.touches)&&(Wa._dragging=this,this._preventOutline&&cu(this._element),uu(),zi(),!this._moving)){this.fire("down");var y=d.touches?d.touches[0]:d,E=Ro(this._element);this._startPoint=new U(y.clientX,y.clientY),this._startPos=Va(this._element),this._parentScale=Ha(E);var k=d.type==="mousedown";bt(document,k?"mousemove":"touchmove",this._onMove,this),bt(document,k?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(d){if(this._enabled){if(d.touches&&d.touches.length>1){this._moved=!0;return}var y=d.touches&&d.touches.length===1?d.touches[0]:d,E=new U(y.clientX,y.clientY)._subtract(this._startPoint);!E.x&&!E.y||Math.abs(E.x)+Math.abs(E.y)<this.options.clickTolerance||(E.x/=this._parentScale.x,E.y/=this._parentScale.y,Tn(d),this._moved||(this.fire("dragstart"),this._moved=!0,_t(document.body,"leaflet-dragging"),this._lastTarget=d.target||d.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),_t(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(E),this._moving=!0,this._lastEvent=d,this._updatePosition())}},_updatePosition:function(){var d={originalEvent:this._lastEvent};this.fire("predrag",d),Sn(this._element,this._newPos),this.fire("drag",d)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(d){on(document.body,"leaflet-dragging"),this._lastTarget&&(on(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Bt(document,"mousemove touchmove",this._onMove,this),Bt(document,"mouseup touchend touchcancel",this._onUp,this),vh(),lu();var y=this._moved&&this._moving;this._moving=!1,Wa._dragging=!1,y&&this.fire("dragend",{noInertia:d,distance:this._newPos.distanceTo(this._startPos)})}});function eg(d,y,E){var k,Z=[1,4,2,8],oe,ve,Ee,Le,He,et,rt,at;for(oe=0,et=d.length;oe<et;oe++)d[oe]._code=Do(d[oe],y);for(Ee=0;Ee<4;Ee++){for(rt=Z[Ee],k=[],oe=0,et=d.length,ve=et-1;oe<et;ve=oe++)Le=d[oe],He=d[ve],Le._code&rt?He._code&rt||(at=Bc(He,Le,rt,y,E),at._code=Do(at,y),k.push(at)):(He._code&rt&&(at=Bc(He,Le,rt,y,E),at._code=Do(at,y),k.push(at)),k.push(Le));d=k}return d}function $c(d,y){var E,k,Z,oe,ve,Ee,Le,He,et;if(!d||d.length===0)throw new Error("latlngs not passed");rr(d)||(console.warn("latlngs are not flat! Only the first ring will be used"),d=d[0]);var rt=fe([0,0]),at=ae(d),yt=at.getNorthWest().distanceTo(at.getSouthWest())*at.getNorthEast().distanceTo(at.getNorthWest());yt<1700&&(rt=_h(d));var sn=d.length,On=[];for(E=0;E<sn;E++){var ir=fe(d[E]);On.push(y.project(fe([ir.lat-rt.lat,ir.lng-rt.lng])))}for(Ee=Le=He=0,E=0,k=sn-1;E<sn;k=E++)Z=On[E],oe=On[k],ve=Z.y*oe.x-oe.y*Z.x,Le+=(Z.x+oe.x)*ve,He+=(Z.y+oe.y)*ve,Ee+=ve*3;Ee===0?et=On[0]:et=[Le/Ee,He/Ee];var Jr=y.unproject(M(et));return fe([Jr.lat+rt.lat,Jr.lng+rt.lng])}function _h(d){for(var y=0,E=0,k=0,Z=0;Z<d.length;Z++){var oe=fe(d[Z]);y+=oe.lat,E+=oe.lng,k++}return fe([y/k,E/k])}var Dw={__proto__:null,clipPolygon:eg,polygonCenter:$c,centroid:_h};function tg(d,y){if(!y||!d.length)return d.slice();var E=y*y;return d=$w(d,E),d=Iw(d,E),d}function xh(d,y,E){return Math.sqrt(ko(d,y,E,!0))}function kw(d,y,E){return ko(d,y,E)}function Iw(d,y){var E=d.length,k=typeof Uint8Array<"u"?Uint8Array:Array,Z=new k(E);Z[0]=Z[E-1]=1,Sh(d,Z,y,0,E-1);var oe,ve=[];for(oe=0;oe<E;oe++)Z[oe]&&ve.push(d[oe]);return ve}function Sh(d,y,E,k,Z){var oe=0,ve,Ee,Le;for(Ee=k+1;Ee<=Z-1;Ee++)Le=ko(d[Ee],d[k],d[Z],!0),Le>oe&&(ve=Ee,oe=Le);oe>E&&(y[ve]=1,Sh(d,y,E,k,ve),Sh(d,y,E,ve,Z))}function $w(d,y){for(var E=[d[0]],k=1,Z=0,oe=d.length;k<oe;k++)Bw(d[k],d[Z])>y&&(E.push(d[k]),Z=k);return Z<oe-1&&E.push(d[oe-1]),E}var ng;function rg(d,y,E,k,Z){var oe=k?ng:Do(d,E),ve=Do(y,E),Ee,Le,He;for(ng=ve;;){if(!(oe|ve))return[d,y];if(oe&ve)return!1;Ee=oe||ve,Le=Bc(d,y,Ee,E,Z),He=Do(Le,E),Ee===oe?(d=Le,oe=He):(y=Le,ve=He)}}function Bc(d,y,E,k,Z){var oe=y.x-d.x,ve=y.y-d.y,Ee=k.min,Le=k.max,He,et;return E&8?(He=d.x+oe*(Le.y-d.y)/ve,et=Le.y):E&4?(He=d.x+oe*(Ee.y-d.y)/ve,et=Ee.y):E&2?(He=Le.x,et=d.y+ve*(Le.x-d.x)/oe):E&1&&(He=Ee.x,et=d.y+ve*(Ee.x-d.x)/oe),new U(He,et,Z)}function Do(d,y){var E=0;return d.x<y.min.x?E|=1:d.x>y.max.x&&(E|=2),d.y<y.min.y?E|=4:d.y>y.max.y&&(E|=8),E}function Bw(d,y){var E=y.x-d.x,k=y.y-d.y;return E*E+k*k}function ko(d,y,E,k){var Z=y.x,oe=y.y,ve=E.x-Z,Ee=E.y-oe,Le=ve*ve+Ee*Ee,He;return Le>0&&(He=((d.x-Z)*ve+(d.y-oe)*Ee)/Le,He>1?(Z=E.x,oe=E.y):He>0&&(Z+=ve*He,oe+=Ee*He)),ve=d.x-Z,Ee=d.y-oe,k?ve*ve+Ee*Ee:new U(Z,oe)}function rr(d){return!T(d[0])||typeof d[0][0]!="object"&&typeof d[0][0]<"u"}function ig(d){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),rr(d)}function Oh(d,y){var E,k,Z,oe,ve,Ee,Le,He;if(!d||d.length===0)throw new Error("latlngs not passed");rr(d)||(console.warn("latlngs are not flat! Only the first ring will be used"),d=d[0]);var et=fe([0,0]),rt=ae(d),at=rt.getNorthWest().distanceTo(rt.getSouthWest())*rt.getNorthEast().distanceTo(rt.getNorthWest());at<1700&&(et=_h(d));var yt=d.length,sn=[];for(E=0;E<yt;E++){var On=fe(d[E]);sn.push(y.project(fe([On.lat-et.lat,On.lng-et.lng])))}for(E=0,k=0;E<yt-1;E++)k+=sn[E].distanceTo(sn[E+1])/2;if(k===0)He=sn[0];else for(E=0,oe=0;E<yt-1;E++)if(ve=sn[E],Ee=sn[E+1],Z=ve.distanceTo(Ee),oe+=Z,oe>k){Le=(oe-k)/Z,He=[Ee.x-Le*(Ee.x-ve.x),Ee.y-Le*(Ee.y-ve.y)];break}var ir=y.unproject(M(He));return fe([ir.lat+et.lat,ir.lng+et.lng])}var ag={__proto__:null,simplify:tg,pointToSegmentDistance:xh,closestPointOnSegment:kw,clipSegment:rg,_getEdgeIntersection:Bc,_getBitCode:Do,_sqClosestPointOnSegment:ko,isFlat:rr,_flat:ig,polylineCenter:Oh},Uc={project:function(d){return new U(d.lng,d.lat)},unproject:function(d){return new de(d.y,d.x)},bounds:new I([-180,-90],[180,90])},zc={R:6378137,R_MINOR:6356752314245179e-9,bounds:new I([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(d){var y=Math.PI/180,E=this.R,k=d.lat*y,Z=this.R_MINOR/E,oe=Math.sqrt(1-Z*Z),ve=oe*Math.sin(k),Ee=Math.tan(Math.PI/4-k/2)/Math.pow((1-ve)/(1+ve),oe/2);return k=-E*Math.log(Math.max(Ee,1e-10)),new U(d.lng*y*E,k)},unproject:function(d){for(var y=180/Math.PI,E=this.R,k=this.R_MINOR/E,Z=Math.sqrt(1-k*k),oe=Math.exp(-d.y/E),ve=Math.PI/2-2*Math.atan(oe),Ee=0,Le=.1,He;Ee<15&&Math.abs(Le)>1e-7;Ee++)He=Z*Math.sin(ve),He=Math.pow((1-He)/(1+He),Z/2),Le=Math.PI/2-2*Math.atan(oe*He)-ve,ve+=Le;return new de(ve*y,d.x*y/E)}},og={__proto__:null,LonLat:Uc,Mercator:zc,SphericalMercator:ne},Us=i({},z,{code:"EPSG:3395",projection:zc,transformation:function(){var d=.5/(Math.PI*zc.R);return Q(d,.5,-d,.5)}()}),sg=i({},z,{code:"EPSG:4326",projection:Uc,transformation:Q(1/180,1,-1/180,.5)}),Uw=i({},be,{projection:Uc,transformation:Q(1,0,-1,0),scale:function(d){return Math.pow(2,d)},zoom:function(d){return Math.log(d)/Math.LN2},distance:function(d,y){var E=y.lng-d.lng,k=y.lat-d.lat;return Math.sqrt(E*E+k*k)},infinite:!0});be.Earth=z,be.EPSG3395=Us,be.EPSG3857=le,be.EPSG900913=pe,be.EPSG4326=sg,be.Simple=Uw;var fi=B.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(d){return d.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(d){return d&&d.removeLayer(this),this},getPane:function(d){return this._map.getPane(d?this.options[d]||d:this.options.pane)},addInteractiveTarget:function(d){return this._map._targets[f(d)]=this,this},removeInteractiveTarget:function(d){return delete this._map._targets[f(d)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(d){var y=d.target;if(y.hasLayer(this)){if(this._map=y,this._zoomAnimated=y._zoomAnimated,this.getEvents){var E=this.getEvents();y.on(E,this),this.once("remove",function(){y.off(E,this)},this)}this.onAdd(y),this.fire("add"),y.fire("layeradd",{layer:this})}}});Et.include({addLayer:function(d){if(!d._layerAdd)throw new Error("The provided object is not a Layer.");var y=f(d);return this._layers[y]?this:(this._layers[y]=d,d._mapToAdd=this,d.beforeAdd&&d.beforeAdd(this),this.whenReady(d._layerAdd,d),this)},removeLayer:function(d){var y=f(d);return this._layers[y]?(this._loaded&&d.onRemove(this),delete this._layers[y],this._loaded&&(this.fire("layerremove",{layer:d}),d.fire("remove")),d._map=d._mapToAdd=null,this):this},hasLayer:function(d){return f(d)in this._layers},eachLayer:function(d,y){for(var E in this._layers)d.call(y,this._layers[E]);return this},_addLayers:function(d){d=d?T(d)?d:[d]:[];for(var y=0,E=d.length;y<E;y++)this.addLayer(d[y])},_addZoomLimit:function(d){(!isNaN(d.options.maxZoom)||!isNaN(d.options.minZoom))&&(this._zoomBoundLayers[f(d)]=d,this._updateZoomLevels())},_removeZoomLimit:function(d){var y=f(d);this._zoomBoundLayers[y]&&(delete this._zoomBoundLayers[y],this._updateZoomLevels())},_updateZoomLevels:function(){var d=1/0,y=-1/0,E=this._getZoomSpan();for(var k in this._zoomBoundLayers){var Z=this._zoomBoundLayers[k].options;d=Z.minZoom===void 0?d:Math.min(d,Z.minZoom),y=Z.maxZoom===void 0?y:Math.max(y,Z.maxZoom)}this._layersMaxZoom=y===-1/0?void 0:y,this._layersMinZoom=d===1/0?void 0:d,E!==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 Io=fi.extend({initialize:function(d,y){w(this,y),this._layers={};var E,k;if(d)for(E=0,k=d.length;E<k;E++)this.addLayer(d[E])},addLayer:function(d){var y=this.getLayerId(d);return this._layers[y]=d,this._map&&this._map.addLayer(d),this},removeLayer:function(d){var y=d in this._layers?d:this.getLayerId(d);return this._map&&this._layers[y]&&this._map.removeLayer(this._layers[y]),delete this._layers[y],this},hasLayer:function(d){var y=typeof d=="number"?d:this.getLayerId(d);return y in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(d){var y=Array.prototype.slice.call(arguments,1),E,k;for(E in this._layers)k=this._layers[E],k[d]&&k[d].apply(k,y);return this},onAdd:function(d){this.eachLayer(d.addLayer,d)},onRemove:function(d){this.eachLayer(d.removeLayer,d)},eachLayer:function(d,y){for(var E in this._layers)d.call(y,this._layers[E]);return this},getLayer:function(d){return this._layers[d]},getLayers:function(){var d=[];return this.eachLayer(d.push,d),d},setZIndex:function(d){return this.invoke("setZIndex",d)},getLayerId:function(d){return f(d)}}),lg=function(d,y){return new Io(d,y)},kr=Io.extend({addLayer:function(d){return this.hasLayer(d)?this:(d.addEventParent(this),Io.prototype.addLayer.call(this,d),this.fire("layeradd",{layer:d}))},removeLayer:function(d){return this.hasLayer(d)?(d in this._layers&&(d=this._layers[d]),d.removeEventParent(this),Io.prototype.removeLayer.call(this,d),this.fire("layerremove",{layer:d})):this},setStyle:function(d){return this.invoke("setStyle",d)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var d=new Y;for(var y in this._layers){var E=this._layers[y];d.extend(E.getBounds?E.getBounds():E.getLatLng())}return d}}),pu=function(d,y){return new kr(d,y)},zs=X.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(d){w(this,d)},createIcon:function(d){return this._createIcon("icon",d)},createShadow:function(d){return this._createIcon("shadow",d)},_createIcon:function(d,y){var E=this._getIconUrl(d);if(!E){if(d==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var k=this._createImg(E,y&&y.tagName==="IMG"?y:null);return this._setIconStyles(k,d),(this.options.crossOrigin||this.options.crossOrigin==="")&&(k.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),k},_setIconStyles:function(d,y){var E=this.options,k=E[y+"Size"];typeof k=="number"&&(k=[k,k]);var Z=M(k),oe=M(y==="shadow"&&E.shadowAnchor||E.iconAnchor||Z&&Z.divideBy(2,!0));d.className="leaflet-marker-"+y+" "+(E.className||""),oe&&(d.style.marginLeft=-oe.x+"px",d.style.marginTop=-oe.y+"px"),Z&&(d.style.width=Z.x+"px",d.style.height=Z.y+"px")},_createImg:function(d,y){return y=y||document.createElement("img"),y.src=d,y},_getIconUrl:function(d){return lt.retina&&this.options[d+"RetinaUrl"]||this.options[d+"Url"]}});function Fc(d){return new zs(d)}var Fs=zs.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(d){return typeof Fs.imagePath!="string"&&(Fs.imagePath=this._detectIconPath()),(this.options.imagePath||Fs.imagePath)+zs.prototype._getIconUrl.call(this,d)},_stripUrl:function(d){var y=function(E,k,Z){var oe=k.exec(E);return oe&&oe[Z]};return d=y(d,/^url\((['"])?(.+)\1\)$/,2),d&&y(d,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var d=Lt("div","leaflet-default-icon-path",document.body),y=jo(d,"background-image")||jo(d,"backgroundImage");if(document.body.removeChild(d),y=this._stripUrl(y),y)return y;var E=document.querySelector('link[href$="leaflet.css"]');return E?E.href.substring(0,E.href.length-11-1):""}}),Ch=ci.extend({initialize:function(d){this._marker=d},addHooks:function(){var d=this._marker._icon;this._draggable||(this._draggable=new Wa(d,d,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),_t(d,"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&&on(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(d){var y=this._marker,E=y._map,k=this._marker.options.autoPanSpeed,Z=this._marker.options.autoPanPadding,oe=Va(y._icon),ve=E.getPixelBounds(),Ee=E.getPixelOrigin(),Le=J(ve.min._subtract(Ee).add(Z),ve.max._subtract(Ee).subtract(Z));if(!Le.contains(oe)){var He=M((Math.max(Le.max.x,oe.x)-Le.max.x)/(ve.max.x-Le.max.x)-(Math.min(Le.min.x,oe.x)-Le.min.x)/(ve.min.x-Le.min.x),(Math.max(Le.max.y,oe.y)-Le.max.y)/(ve.max.y-Le.max.y)-(Math.min(Le.min.y,oe.y)-Le.min.y)/(ve.min.y-Le.min.y)).multiplyBy(k);E.panBy(He,{animate:!1}),this._draggable._newPos._add(He),this._draggable._startPos._add(He),Sn(y._icon,this._draggable._newPos),this._onDrag(d),this._panRequest=G(this._adjustPan.bind(this,d))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(d){this._marker.options.autoPan&&(te(this._panRequest),this._panRequest=G(this._adjustPan.bind(this,d)))},_onDrag:function(d){var y=this._marker,E=y._shadow,k=Va(y._icon),Z=y._map.layerPointToLatLng(k);E&&Sn(E,k),y._latlng=Z,d.latlng=Z,d.oldLatLng=this._oldLatLng,y.fire("move",d).fire("drag",d)},_onDragEnd:function(d){te(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",d)}}),qs=fi.extend({options:{icon:new Fs,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(d,y){w(this,y),this._latlng=fe(d)},onAdd:function(d){this._zoomAnimated=this._zoomAnimated&&d.options.markerZoomAnimation,this._zoomAnimated&&d.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(d){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&d.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(d){var y=this._latlng;return this._latlng=fe(d),this.update(),this.fire("move",{oldLatLng:y,latlng:this._latlng})},setZIndexOffset:function(d){return this.options.zIndexOffset=d,this.update()},getIcon:function(){return this.options.icon},setIcon:function(d){return this.options.icon=d,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 d=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(d)}return this},_initIcon:function(){var d=this.options,y="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),E=d.icon.createIcon(this._icon),k=!1;E!==this._icon&&(this._icon&&this._removeIcon(),k=!0,d.title&&(E.title=d.title),E.tagName==="IMG"&&(E.alt=d.alt||"")),_t(E,y),d.keyboard&&(E.tabIndex="0",E.setAttribute("role","button")),this._icon=E,d.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&bt(E,"focus",this._panOnFocus,this);var Z=d.icon.createShadow(this._shadow),oe=!1;Z!==this._shadow&&(this._removeShadow(),oe=!0),Z&&(_t(Z,y),Z.alt=""),this._shadow=Z,d.opacity<1&&this._updateOpacity(),k&&this.getPane().appendChild(this._icon),this._initInteraction(),Z&&oe&&this.getPane(d.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Bt(this._icon,"focus",this._panOnFocus,this),an(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&an(this._shadow),this._shadow=null},_setPos:function(d){this._icon&&Sn(this._icon,d),this._shadow&&Sn(this._shadow,d),this._zIndex=d.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(d){this._icon&&(this._icon.style.zIndex=this._zIndex+d)},_animateZoom:function(d){var y=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center).round();this._setPos(y)},_initInteraction:function(){if(this.options.interactive&&(_t(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),Ch)){var d=this.options.draggable;this.dragging&&(d=this.dragging.enabled(),this.dragging.disable()),this.dragging=new Ch(this),d&&this.dragging.enable()}},setOpacity:function(d){return this.options.opacity=d,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var d=this.options.opacity;this._icon&&Er(this._icon,d),this._shadow&&Er(this._shadow,d)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var d=this._map;if(d){var y=this.options.icon.options,E=y.iconSize?M(y.iconSize):M(0,0),k=y.iconAnchor?M(y.iconAnchor):M(0,0);d.panInside(this._latlng,{paddingTopLeft:k,paddingBottomRight:E.subtract(k)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function Eh(d,y){return new qs(d,y)}var ma=fi.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(d){this._renderer=d.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(d){return w(this,d),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&d&&Object.prototype.hasOwnProperty.call(d,"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)}}),mu=ma.extend({options:{fill:!0,radius:10},initialize:function(d,y){w(this,y),this._latlng=fe(d),this._radius=this.options.radius},setLatLng:function(d){var y=this._latlng;return this._latlng=fe(d),this.redraw(),this.fire("move",{oldLatLng:y,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(d){return this.options.radius=this._radius=d,this.redraw()},getRadius:function(){return this._radius},setStyle:function(d){var y=d&&d.radius||this._radius;return ma.prototype.setStyle.call(this,d),this.setRadius(y),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var d=this._radius,y=this._radiusY||d,E=this._clickTolerance(),k=[d+E,y+E];this._pxBounds=new I(this._point.subtract(k),this._point.add(k))},_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(d){return d.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ug(d,y){return new mu(d,y)}var Th=mu.extend({initialize:function(d,y,E){if(typeof y=="number"&&(y=i({},E,{radius:y})),w(this,y),this._latlng=fe(d),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(d){return this._mRadius=d,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var d=[this._radius,this._radiusY||this._radius];return new Y(this._map.layerPointToLatLng(this._point.subtract(d)),this._map.layerPointToLatLng(this._point.add(d)))},setStyle:ma.prototype.setStyle,_project:function(){var d=this._latlng.lng,y=this._latlng.lat,E=this._map,k=E.options.crs;if(k.distance===z.distance){var Z=Math.PI/180,oe=this._mRadius/z.R/Z,ve=E.project([y+oe,d]),Ee=E.project([y-oe,d]),Le=ve.add(Ee).divideBy(2),He=E.unproject(Le).lat,et=Math.acos((Math.cos(oe*Z)-Math.sin(y*Z)*Math.sin(He*Z))/(Math.cos(y*Z)*Math.cos(He*Z)))/Z;(isNaN(et)||et===0)&&(et=oe/Math.cos(Math.PI/180*y)),this._point=Le.subtract(E.getPixelOrigin()),this._radius=isNaN(et)?0:Le.x-E.project([He,d-et]).x,this._radiusY=Le.y-ve.y}else{var rt=k.unproject(k.project(this._latlng).subtract([this._mRadius,0]));this._point=E.latLngToLayerPoint(this._latlng),this._radius=this._point.x-E.latLngToLayerPoint(rt).x}this._updateBounds()}});function zw(d,y,E){return new Th(d,y,E)}var va=ma.extend({options:{smoothFactor:1,noClip:!1},initialize:function(d,y){w(this,y),this._setLatLngs(d)},getLatLngs:function(){return this._latlngs},setLatLngs:function(d){return this._setLatLngs(d),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(d){for(var y=1/0,E=null,k=ko,Z,oe,ve=0,Ee=this._parts.length;ve<Ee;ve++)for(var Le=this._parts[ve],He=1,et=Le.length;He<et;He++){Z=Le[He-1],oe=Le[He];var rt=k(d,Z,oe,!0);rt<y&&(y=rt,E=k(d,Z,oe))}return E&&(E.distance=Math.sqrt(y)),E},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Oh(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(d,y){return y=y||this._defaultShape(),d=fe(d),y.push(d),this._bounds.extend(d),this.redraw()},_setLatLngs:function(d){this._bounds=new Y,this._latlngs=this._convertLatLngs(d)},_defaultShape:function(){return rr(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(d){for(var y=[],E=rr(d),k=0,Z=d.length;k<Z;k++)E?(y[k]=fe(d[k]),this._bounds.extend(y[k])):y[k]=this._convertLatLngs(d[k]);return y},_project:function(){var d=new I;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,d),this._bounds.isValid()&&d.isValid()&&(this._rawPxBounds=d,this._updateBounds())},_updateBounds:function(){var d=this._clickTolerance(),y=new U(d,d);this._rawPxBounds&&(this._pxBounds=new I([this._rawPxBounds.min.subtract(y),this._rawPxBounds.max.add(y)]))},_projectLatlngs:function(d,y,E){var k=d[0]instanceof de,Z=d.length,oe,ve;if(k){for(ve=[],oe=0;oe<Z;oe++)ve[oe]=this._map.latLngToLayerPoint(d[oe]),E.extend(ve[oe]);y.push(ve)}else for(oe=0;oe<Z;oe++)this._projectLatlngs(d[oe],y,E)},_clipPoints:function(){var d=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}var y=this._parts,E,k,Z,oe,ve,Ee,Le;for(E=0,Z=0,oe=this._rings.length;E<oe;E++)for(Le=this._rings[E],k=0,ve=Le.length;k<ve-1;k++)Ee=rg(Le[k],Le[k+1],d,k,!0),Ee&&(y[Z]=y[Z]||[],y[Z].push(Ee[0]),(Ee[1]!==Le[k+1]||k===ve-2)&&(y[Z].push(Ee[1]),Z++))}},_simplifyPoints:function(){for(var d=this._parts,y=this.options.smoothFactor,E=0,k=d.length;E<k;E++)d[E]=tg(d[E],y)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(d,y){var E,k,Z,oe,ve,Ee,Le=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(E=0,oe=this._parts.length;E<oe;E++)for(Ee=this._parts[E],k=0,ve=Ee.length,Z=ve-1;k<ve;Z=k++)if(!(!y&&k===0)&&xh(d,Ee[Z],Ee[k])<=Le)return!0;return!1}});function Fw(d,y){return new va(d,y)}va._flat=ig;var Vs=va.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 $c(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(d){var y=va.prototype._convertLatLngs.call(this,d),E=y.length;return E>=2&&y[0]instanceof de&&y[0].equals(y[E-1])&&y.pop(),y},_setLatLngs:function(d){va.prototype._setLatLngs.call(this,d),rr(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return rr(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var d=this._renderer._bounds,y=this.options.weight,E=new U(y,y);if(d=new I(d.min.subtract(E),d.max.add(E)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(d))){if(this.options.noClip){this._parts=this._rings;return}for(var k=0,Z=this._rings.length,oe;k<Z;k++)oe=eg(this._rings[k],d,!0),oe.length&&this._parts.push(oe)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(d){var y=!1,E,k,Z,oe,ve,Ee,Le,He;if(!this._pxBounds||!this._pxBounds.contains(d))return!1;for(oe=0,Le=this._parts.length;oe<Le;oe++)for(E=this._parts[oe],ve=0,He=E.length,Ee=He-1;ve<He;Ee=ve++)k=E[ve],Z=E[Ee],k.y>d.y!=Z.y>d.y&&d.x<(Z.x-k.x)*(d.y-k.y)/(Z.y-k.y)+k.x&&(y=!y);return y||va.prototype._containsPoint.call(this,d,!0)}});function Ir(d,y){return new Vs(d,y)}var $r=kr.extend({initialize:function(d,y){w(this,y),this._layers={},d&&this.addData(d)},addData:function(d){var y=T(d)?d:d.features,E,k,Z;if(y){for(E=0,k=y.length;E<k;E++)Z=y[E],(Z.geometries||Z.geometry||Z.features||Z.coordinates)&&this.addData(Z);return this}var oe=this.options;if(oe.filter&&!oe.filter(d))return this;var ve=vu(d,oe);return ve?(ve.feature=Hs(d),ve.defaultOptions=ve.options,this.resetStyle(ve),oe.onEachFeature&&oe.onEachFeature(d,ve),this.addLayer(ve)):this},resetStyle:function(d){return d===void 0?this.eachLayer(this.resetStyle,this):(d.options=i({},d.defaultOptions),this._setLayerStyle(d,this.options.style),this)},setStyle:function(d){return this.eachLayer(function(y){this._setLayerStyle(y,d)},this)},_setLayerStyle:function(d,y){d.setStyle&&(typeof y=="function"&&(y=y(d.feature)),d.setStyle(y))}});function vu(d,y){var E=d.type==="Feature"?d.geometry:d,k=E?E.coordinates:null,Z=[],oe=y&&y.pointToLayer,ve=y&&y.coordsToLatLng||qc,Ee,Le,He,et;if(!k&&!E)return null;switch(E.type){case"Point":return Ee=ve(k),Ah(oe,d,Ee,y);case"MultiPoint":for(He=0,et=k.length;He<et;He++)Ee=ve(k[He]),Z.push(Ah(oe,d,Ee,y));return new kr(Z);case"LineString":case"MultiLineString":return Le=gu(k,E.type==="LineString"?0:1,ve),new va(Le,y);case"Polygon":case"MultiPolygon":return Le=gu(k,E.type==="Polygon"?1:2,ve),new Vs(Le,y);case"GeometryCollection":for(He=0,et=E.geometries.length;He<et;He++){var rt=vu({geometry:E.geometries[He],type:"Feature",properties:d.properties},y);rt&&Z.push(rt)}return new kr(Z);case"FeatureCollection":for(He=0,et=E.features.length;He<et;He++){var at=vu(E.features[He],y);at&&Z.push(at)}return new kr(Z);default:throw new Error("Invalid GeoJSON object.")}}function Ah(d,y,E,k){return d?d(y,E):new qs(E,k&&k.markersInheritOptions&&k)}function qc(d){return new de(d[1],d[0],d[2])}function gu(d,y,E){for(var k=[],Z=0,oe=d.length,ve;Z<oe;Z++)ve=y?gu(d[Z],y-1,E):(E||qc)(d[Z]),k.push(ve);return k}function yu(d,y){return d=fe(d),d.alt!==void 0?[v(d.lng,y),v(d.lat,y),v(d.alt,y)]:[v(d.lng,y),v(d.lat,y)]}function Vc(d,y,E,k){for(var Z=[],oe=0,ve=d.length;oe<ve;oe++)Z.push(y?Vc(d[oe],rr(d[oe])?0:y-1,E,k):yu(d[oe],k));return!y&&E&&Z.length>0&&Z.push(Z[0].slice()),Z}function di(d,y){return d.feature?i({},d.feature,{geometry:y}):Hs(y)}function Hs(d){return d.type==="Feature"||d.type==="FeatureCollection"?d:{type:"Feature",properties:{},geometry:d}}var $o={toGeoJSON:function(d){return di(this,{type:"Point",coordinates:yu(this.getLatLng(),d)})}};qs.include($o),Th.include($o),mu.include($o),va.include({toGeoJSON:function(d){var y=!rr(this._latlngs),E=Vc(this._latlngs,y?1:0,!1,d);return di(this,{type:(y?"Multi":"")+"LineString",coordinates:E})}}),Vs.include({toGeoJSON:function(d){var y=!rr(this._latlngs),E=y&&!rr(this._latlngs[0]),k=Vc(this._latlngs,E?2:y?1:0,!0,d);return y||(k=[k]),di(this,{type:(E?"Multi":"")+"Polygon",coordinates:k})}}),Io.include({toMultiPoint:function(d){var y=[];return this.eachLayer(function(E){y.push(E.toGeoJSON(d).geometry.coordinates)}),di(this,{type:"MultiPoint",coordinates:y})},toGeoJSON:function(d){var y=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(y==="MultiPoint")return this.toMultiPoint(d);var E=y==="GeometryCollection",k=[];return this.eachLayer(function(Z){if(Z.toGeoJSON){var oe=Z.toGeoJSON(d);if(E)k.push(oe.geometry);else{var ve=Hs(oe);ve.type==="FeatureCollection"?k.push.apply(k,ve.features):k.push(ve)}}}),E?di(this,{geometries:k,type:"GeometryCollection"}):{type:"FeatureCollection",features:k}}});function Hc(d,y){return new $r(d,y)}var cg=Hc,Hi=fi.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(d,y,E){this._url=d,this._bounds=ae(y),w(this,E)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(_t(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){an(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(d){return this.options.opacity=d,this._image&&this._updateOpacity(),this},setStyle:function(d){return d.opacity&&this.setOpacity(d.opacity),this},bringToFront:function(){return this._map&&Po(this._image),this},bringToBack:function(){return this._map&&Rs(this._image),this},setUrl:function(d){return this._url=d,this._image&&(this._image.src=d),this},setBounds:function(d){return this._bounds=ae(d),this._map&&this._reset(),this},getEvents:function(){var d={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var d=this._url.tagName==="IMG",y=this._image=d?this._url:Lt("img");if(_t(y,"leaflet-image-layer"),this._zoomAnimated&&_t(y,"leaflet-zoom-animated"),this.options.className&&_t(y,this.options.className),y.onselectstart=m,y.onmousemove=m,y.onload=o(this.fire,this,"load"),y.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(y.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),d){this._url=y.src;return}y.src=this._url,y.alt=this.options.alt},_animateZoom:function(d){var y=this._map.getZoomScale(d.zoom),E=this._map._latLngBoundsToNewLayerBounds(this._bounds,d.zoom,d.center).min;Qr(this._image,E,y)},_reset:function(){var d=this._image,y=new I(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),E=y.getSize();Sn(d,y.min),d.style.width=E.x+"px",d.style.height=E.y+"px"},_updateOpacity:function(){Er(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 d=this.options.errorOverlayUrl;d&&this._url!==d&&(this._url=d,this._image.src=d)},getCenter:function(){return this._bounds.getCenter()}}),Ws=function(d,y,E){return new Hi(d,y,E)},Wc=Hi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var d=this._url.tagName==="VIDEO",y=this._image=d?this._url:Lt("video");if(_t(y,"leaflet-image-layer"),this._zoomAnimated&&_t(y,"leaflet-zoom-animated"),this.options.className&&_t(y,this.options.className),y.onselectstart=m,y.onmousemove=m,y.onloadeddata=o(this.fire,this,"load"),d){for(var E=y.getElementsByTagName("source"),k=[],Z=0;Z<E.length;Z++)k.push(E[Z].src);this._url=E.length>0?k:[y.src];return}T(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(y.style,"objectFit")&&(y.style.objectFit="fill"),y.autoplay=!!this.options.autoplay,y.loop=!!this.options.loop,y.muted=!!this.options.muted,y.playsInline=!!this.options.playsInline;for(var oe=0;oe<this._url.length;oe++){var ve=Lt("source");ve.src=this._url[oe],y.appendChild(ve)}}});function fg(d,y,E){return new Wc(d,y,E)}var Ga=Hi.extend({_initImage:function(){var d=this._image=this._url;_t(d,"leaflet-image-layer"),this._zoomAnimated&&_t(d,"leaflet-zoom-animated"),this.options.className&&_t(d,this.options.className),d.onselectstart=m,d.onmousemove=m}});function dg(d,y,E){return new Ga(d,y,E)}var hi=fi.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(d,y){d&&(d instanceof de||T(d))?(this._latlng=fe(d),w(this,y)):(w(this,d),this._source=y),this.options.content&&(this._content=this.options.content)},openOn:function(d){return d=arguments.length?d:this._source._map,d.hasLayer(this)||d.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(d){return this._map?this.close():(arguments.length?this._source=d:d=this._source,this._prepareOpen(),this.openOn(d._map)),this},onAdd:function(d){this._zoomAnimated=d._zoomAnimated,this._container||this._initLayout(),d._fadeAnimated&&Er(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),d._fadeAnimated&&Er(this._container,1),this.bringToFront(),this.options.interactive&&(_t(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(d){d._fadeAnimated?(Er(this._container,0),this._removeTimeout=setTimeout(o(an,void 0,this._container),200)):an(this._container),this.options.interactive&&(on(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(d){return this._latlng=fe(d),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(d){return this._content=d,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 d={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Po(this._container),this},bringToBack:function(){return this._map&&Rs(this._container),this},_prepareOpen:function(d){var y=this._source;if(!y._map)return!1;if(y instanceof kr){y=null;var E=this._source._layers;for(var k in E)if(E[k]._map){y=E[k];break}if(!y)return!1;this._source=y}if(!d)if(y.getCenter)d=y.getCenter();else if(y.getLatLng)d=y.getLatLng();else if(y.getBounds)d=y.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(d),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var d=this._contentNode,y=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof y=="string")d.innerHTML=y;else{for(;d.hasChildNodes();)d.removeChild(d.firstChild);d.appendChild(y)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var d=this._map.latLngToLayerPoint(this._latlng),y=M(this.options.offset),E=this._getAnchor();this._zoomAnimated?Sn(this._container,d.add(E)):y=y.add(d).add(E);var k=this._containerBottom=-y.y,Z=this._containerLeft=-Math.round(this._containerWidth/2)+y.x;this._container.style.bottom=k+"px",this._container.style.left=Z+"px"}},_getAnchor:function(){return[0,0]}});Et.include({_initOverlay:function(d,y,E,k){var Z=y;return Z instanceof d||(Z=new d(k).setContent(y)),E&&Z.setLatLng(E),Z}}),fi.include({_initOverlay:function(d,y,E,k){var Z=E;return Z instanceof d?(w(Z,k),Z._source=this):(Z=y&&!k?y:new d(k,this),Z.setContent(E)),Z}});var bu=hi.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(d){return d=arguments.length?d:this._source._map,!d.hasLayer(this)&&d._popup&&d._popup.options.autoClose&&d.removeLayer(d._popup),d._popup=this,hi.prototype.openOn.call(this,d)},onAdd:function(d){hi.prototype.onAdd.call(this,d),d.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ma||this._source.on("preclick",pa))},onRemove:function(d){hi.prototype.onRemove.call(this,d),d.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ma||this._source.off("preclick",pa))},getEvents:function(){var d=hi.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(d.preclick=this.close),this.options.keepInView&&(d.moveend=this._adjustPan),d},_initLayout:function(){var d="leaflet-popup",y=this._container=Lt("div",d+" "+(this.options.className||"")+" leaflet-zoom-animated"),E=this._wrapper=Lt("div",d+"-content-wrapper",y);if(this._contentNode=Lt("div",d+"-content",E),$s(y),Is(this._contentNode),bt(y,"contextmenu",pa),this._tipContainer=Lt("div",d+"-tip-container",y),this._tip=Lt("div",d+"-tip",this._tipContainer),this.options.closeButton){var k=this._closeButton=Lt("a",d+"-close-button",y);k.setAttribute("role","button"),k.setAttribute("aria-label","Close popup"),k.href="#close",k.innerHTML='<span aria-hidden="true">&#215;</span>',bt(k,"click",function(Z){Tn(Z),this.close()},this)}},_updateLayout:function(){var d=this._contentNode,y=d.style;y.width="",y.whiteSpace="nowrap";var E=d.offsetWidth;E=Math.min(E,this.options.maxWidth),E=Math.max(E,this.options.minWidth),y.width=E+1+"px",y.whiteSpace="",y.height="";var k=d.offsetHeight,Z=this.options.maxHeight,oe="leaflet-popup-scrolled";Z&&k>Z?(y.height=Z+"px",_t(d,oe)):on(d,oe),this._containerWidth=this._container.offsetWidth},_animateZoom:function(d){var y=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center),E=this._getAnchor();Sn(this._container,y.add(E))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var d=this._map,y=parseInt(jo(this._container,"marginBottom"),10)||0,E=this._container.offsetHeight+y,k=this._containerWidth,Z=new U(this._containerLeft,-E-this._containerBottom);Z._add(Va(this._container));var oe=d.layerPointToContainerPoint(Z),ve=M(this.options.autoPanPadding),Ee=M(this.options.autoPanPaddingTopLeft||ve),Le=M(this.options.autoPanPaddingBottomRight||ve),He=d.getSize(),et=0,rt=0;oe.x+k+Le.x>He.x&&(et=oe.x+k-He.x+Le.x),oe.x-et-Ee.x<0&&(et=oe.x-Ee.x),oe.y+E+Le.y>He.y&&(rt=oe.y+E-He.y+Le.y),oe.y-rt-Ee.y<0&&(rt=oe.y-Ee.y),(et||rt)&&(this.options.keepInView&&(this._autopanning=!0),d.fire("autopanstart").panBy([et,rt]))}},_getAnchor:function(){return M(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),qw=function(d,y){return new bu(d,y)};Et.mergeOptions({closePopupOnClick:!0}),Et.include({openPopup:function(d,y,E){return this._initOverlay(bu,d,y,E).openOn(this),this},closePopup:function(d){return d=arguments.length?d:this._popup,d&&d.close(),this}}),fi.include({bindPopup:function(d,y){return this._popup=this._initOverlay(bu,this._popup,d,y),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(d){return this._popup&&(this instanceof kr||(this._popup._source=this),this._popup._prepareOpen(d||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(d){return this._popup&&this._popup.setContent(d),this},getPopup:function(){return this._popup},_openPopup:function(d){if(!(!this._popup||!this._map)){Vi(d);var y=d.layer||d.target;if(this._popup._source===y&&!(y instanceof ma)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(d.latlng);return}this._popup._source=y,this.openPopup(d.latlng)}},_movePopup:function(d){this._popup.setLatLng(d.latlng)},_onKeyPress:function(d){d.originalEvent.keyCode===13&&this._openPopup(d)}});var Gc=hi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(d){hi.prototype.onAdd.call(this,d),this.setOpacity(this.options.opacity),d.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(d){hi.prototype.onRemove.call(this,d),d.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var d=hi.prototype.getEvents.call(this);return this.options.permanent||(d.preclick=this.close),d},_initLayout:function(){var d="leaflet-tooltip",y=d+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=Lt("div",y),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+f(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(d){var y,E,k=this._map,Z=this._container,oe=k.latLngToContainerPoint(k.getCenter()),ve=k.layerPointToContainerPoint(d),Ee=this.options.direction,Le=Z.offsetWidth,He=Z.offsetHeight,et=M(this.options.offset),rt=this._getAnchor();Ee==="top"?(y=Le/2,E=He):Ee==="bottom"?(y=Le/2,E=0):Ee==="center"?(y=Le/2,E=He/2):Ee==="right"?(y=0,E=He/2):Ee==="left"?(y=Le,E=He/2):ve.x<oe.x?(Ee="right",y=0,E=He/2):(Ee="left",y=Le+(et.x+rt.x)*2,E=He/2),d=d.subtract(M(y,E,!0)).add(et).add(rt),on(Z,"leaflet-tooltip-right"),on(Z,"leaflet-tooltip-left"),on(Z,"leaflet-tooltip-top"),on(Z,"leaflet-tooltip-bottom"),_t(Z,"leaflet-tooltip-"+Ee),Sn(Z,d)},_updatePosition:function(){var d=this._map.latLngToLayerPoint(this._latlng);this._setPosition(d)},setOpacity:function(d){this.options.opacity=d,this._container&&Er(this._container,d)},_animateZoom:function(d){var y=this._map._latLngToNewLayerPoint(this._latlng,d.zoom,d.center);this._setPosition(y)},_getAnchor:function(){return M(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Vw=function(d,y){return new Gc(d,y)};Et.include({openTooltip:function(d,y,E){return this._initOverlay(Gc,d,y,E).openOn(this),this},closeTooltip:function(d){return d.close(),this}}),fi.include({bindTooltip:function(d,y){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Gc,this._tooltip,d,y),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(d){if(!(!d&&this._tooltipHandlersAdded)){var y=d?"off":"on",E={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?E.add=this._openTooltip:(E.mouseover=this._openTooltip,E.mouseout=this.closeTooltip,E.click=this._openTooltip,this._map?this._addFocusListeners():E.add=this._addFocusListeners),this._tooltip.options.sticky&&(E.mousemove=this._moveTooltip),this[y](E),this._tooltipHandlersAdded=!d}},openTooltip:function(d){return this._tooltip&&(this instanceof kr||(this._tooltip._source=this),this._tooltip._prepareOpen(d)&&(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(d){return this._tooltip&&this._tooltip.setContent(d),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(d){var y=typeof d.getElement=="function"&&d.getElement();y&&(bt(y,"focus",function(){this._tooltip._source=d,this.openTooltip()},this),bt(y,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(d){var y=typeof d.getElement=="function"&&d.getElement();y&&y.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(d){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var y=this;this._map.once("moveend",function(){y._openOnceFlag=!1,y._openTooltip(d)});return}this._tooltip._source=d.layer||d.target,this.openTooltip(this._tooltip.options.sticky?d.latlng:void 0)}},_moveTooltip:function(d){var y=d.latlng,E,k;this._tooltip.options.sticky&&d.originalEvent&&(E=this._map.mouseEventToContainerPoint(d.originalEvent),k=this._map.containerPointToLayerPoint(E),y=this._map.layerPointToLatLng(k)),this._tooltip.setLatLng(y)}});var jh=zs.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(d){var y=d&&d.tagName==="DIV"?d:document.createElement("div"),E=this.options;if(E.html instanceof Element?(pr(y),y.appendChild(E.html)):y.innerHTML=E.html!==!1?E.html:"",E.bgPos){var k=M(E.bgPos);y.style.backgroundPosition=-k.x+"px "+-k.y+"px"}return this._setIconStyles(y,"icon"),y},createShadow:function(){return null}});function hg(d){return new jh(d)}zs.Default=Fs;var Bo=fi.extend({options:{tileSize:256,opacity:1,updateWhenIdle:lt.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(d){w(this,d)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(d){d._addZoomLimit(this)},onRemove:function(d){this._removeAllTiles(),an(this._container),d._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Po(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Rs(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(d){return this.options.opacity=d,this._updateOpacity(),this},setZIndex:function(d){return this.options.zIndex=d,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var d=this._clampZoom(this._map.getZoom());d!==this._tileZoom&&(this._tileZoom=d,this._updateLevels()),this._update()}return this},getEvents:function(){var d={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=u(this._onMoveEnd,this.options.updateInterval,this)),d.move=this._onMove),this._zoomAnimated&&(d.zoomanim=this._animateZoom),d},createTile:function(){return document.createElement("div")},getTileSize:function(){var d=this.options.tileSize;return d instanceof U?d:new U(d,d)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(d){for(var y=this.getPane().children,E=-d(-1/0,1/0),k=0,Z=y.length,oe;k<Z;k++)oe=y[k].style.zIndex,y[k]!==this._container&&oe&&(E=d(E,+oe));isFinite(E)&&(this.options.zIndex=E+d(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!lt.ielt9){Er(this._container,this.options.opacity);var d=+new Date,y=!1,E=!1;for(var k in this._tiles){var Z=this._tiles[k];if(!(!Z.current||!Z.loaded)){var oe=Math.min(1,(d-Z.loaded)/200);Er(Z.el,oe),oe<1?y=!0:(Z.active?E=!0:this._onOpaqueTile(Z),Z.active=!0)}}E&&!this._noPrune&&this._pruneTiles(),y&&(te(this._fadeFrame),this._fadeFrame=G(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=Lt("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var d=this._tileZoom,y=this.options.maxZoom;if(d!==void 0){for(var E in this._levels)E=Number(E),this._levels[E].el.children.length||E===d?(this._levels[E].el.style.zIndex=y-Math.abs(d-E),this._onUpdateLevel(E)):(an(this._levels[E].el),this._removeTilesAtZoom(E),this._onRemoveLevel(E),delete this._levels[E]);var k=this._levels[d],Z=this._map;return k||(k=this._levels[d]={},k.el=Lt("div","leaflet-tile-container leaflet-zoom-animated",this._container),k.el.style.zIndex=y,k.origin=Z.project(Z.unproject(Z.getPixelOrigin()),d).round(),k.zoom=d,this._setZoomTransform(k,Z.getCenter(),Z.getZoom()),m(k.el.offsetWidth),this._onCreateLevel(k)),this._level=k,k}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var d,y,E=this._map.getZoom();if(E>this.options.maxZoom||E<this.options.minZoom){this._removeAllTiles();return}for(d in this._tiles)y=this._tiles[d],y.retain=y.current;for(d in this._tiles)if(y=this._tiles[d],y.current&&!y.active){var k=y.coords;this._retainParent(k.x,k.y,k.z,k.z-5)||this._retainChildren(k.x,k.y,k.z,k.z+2)}for(d in this._tiles)this._tiles[d].retain||this._removeTile(d)}},_removeTilesAtZoom:function(d){for(var y in this._tiles)this._tiles[y].coords.z===d&&this._removeTile(y)},_removeAllTiles:function(){for(var d in this._tiles)this._removeTile(d)},_invalidateAll:function(){for(var d in this._levels)an(this._levels[d].el),this._onRemoveLevel(Number(d)),delete this._levels[d];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(d,y,E,k){var Z=Math.floor(d/2),oe=Math.floor(y/2),ve=E-1,Ee=new U(+Z,+oe);Ee.z=+ve;var Le=this._tileCoordsToKey(Ee),He=this._tiles[Le];return He&&He.active?(He.retain=!0,!0):(He&&He.loaded&&(He.retain=!0),ve>k?this._retainParent(Z,oe,ve,k):!1)},_retainChildren:function(d,y,E,k){for(var Z=2*d;Z<2*d+2;Z++)for(var oe=2*y;oe<2*y+2;oe++){var ve=new U(Z,oe);ve.z=E+1;var Ee=this._tileCoordsToKey(ve),Le=this._tiles[Ee];if(Le&&Le.active){Le.retain=!0;continue}else Le&&Le.loaded&&(Le.retain=!0);E+1<k&&this._retainChildren(Z,oe,E+1,k)}},_resetView:function(d){var y=d&&(d.pinch||d.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),y,y)},_animateZoom:function(d){this._setView(d.center,d.zoom,!0,d.noUpdate)},_clampZoom:function(d){var y=this.options;return y.minNativeZoom!==void 0&&d<y.minNativeZoom?y.minNativeZoom:y.maxNativeZoom!==void 0&&y.maxNativeZoom<d?y.maxNativeZoom:d},_setView:function(d,y,E,k){var Z=Math.round(y);this.options.maxZoom!==void 0&&Z>this.options.maxZoom||this.options.minZoom!==void 0&&Z<this.options.minZoom?Z=void 0:Z=this._clampZoom(Z);var oe=this.options.updateWhenZooming&&Z!==this._tileZoom;(!k||oe)&&(this._tileZoom=Z,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),Z!==void 0&&this._update(d),E||this._pruneTiles(),this._noPrune=!!E),this._setZoomTransforms(d,y)},_setZoomTransforms:function(d,y){for(var E in this._levels)this._setZoomTransform(this._levels[E],d,y)},_setZoomTransform:function(d,y,E){var k=this._map.getZoomScale(E,d.zoom),Z=d.origin.multiplyBy(k).subtract(this._map._getNewPixelOrigin(y,E)).round();lt.any3d?Qr(d.el,Z,k):Sn(d.el,Z)},_resetGrid:function(){var d=this._map,y=d.options.crs,E=this._tileSize=this.getTileSize(),k=this._tileZoom,Z=this._map.getPixelWorldBounds(this._tileZoom);Z&&(this._globalTileRange=this._pxBoundsToTileRange(Z)),this._wrapX=y.wrapLng&&!this.options.noWrap&&[Math.floor(d.project([0,y.wrapLng[0]],k).x/E.x),Math.ceil(d.project([0,y.wrapLng[1]],k).x/E.y)],this._wrapY=y.wrapLat&&!this.options.noWrap&&[Math.floor(d.project([y.wrapLat[0],0],k).y/E.x),Math.ceil(d.project([y.wrapLat[1],0],k).y/E.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(d){var y=this._map,E=y._animatingZoom?Math.max(y._animateToZoom,y.getZoom()):y.getZoom(),k=y.getZoomScale(E,this._tileZoom),Z=y.project(d,this._tileZoom).floor(),oe=y.getSize().divideBy(k*2);return new I(Z.subtract(oe),Z.add(oe))},_update:function(d){var y=this._map;if(y){var E=this._clampZoom(y.getZoom());if(d===void 0&&(d=y.getCenter()),this._tileZoom!==void 0){var k=this._getTiledPixelBounds(d),Z=this._pxBoundsToTileRange(k),oe=Z.getCenter(),ve=[],Ee=this.options.keepBuffer,Le=new I(Z.getBottomLeft().subtract([Ee,-Ee]),Z.getTopRight().add([Ee,-Ee]));if(!(isFinite(Z.min.x)&&isFinite(Z.min.y)&&isFinite(Z.max.x)&&isFinite(Z.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var He in this._tiles){var et=this._tiles[He].coords;(et.z!==this._tileZoom||!Le.contains(new U(et.x,et.y)))&&(this._tiles[He].current=!1)}if(Math.abs(E-this._tileZoom)>1){this._setView(d,E);return}for(var rt=Z.min.y;rt<=Z.max.y;rt++)for(var at=Z.min.x;at<=Z.max.x;at++){var yt=new U(at,rt);if(yt.z=this._tileZoom,!!this._isValidTile(yt)){var sn=this._tiles[this._tileCoordsToKey(yt)];sn?sn.current=!0:ve.push(yt)}}if(ve.sort(function(ir,Jr){return ir.distanceTo(oe)-Jr.distanceTo(oe)}),ve.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var On=document.createDocumentFragment();for(at=0;at<ve.length;at++)this._addTile(ve[at],On);this._level.el.appendChild(On)}}}},_isValidTile:function(d){var y=this._map.options.crs;if(!y.infinite){var E=this._globalTileRange;if(!y.wrapLng&&(d.x<E.min.x||d.x>E.max.x)||!y.wrapLat&&(d.y<E.min.y||d.y>E.max.y))return!1}if(!this.options.bounds)return!0;var k=this._tileCoordsToBounds(d);return ae(this.options.bounds).overlaps(k)},_keyToBounds:function(d){return this._tileCoordsToBounds(this._keyToTileCoords(d))},_tileCoordsToNwSe:function(d){var y=this._map,E=this.getTileSize(),k=d.scaleBy(E),Z=k.add(E),oe=y.unproject(k,d.z),ve=y.unproject(Z,d.z);return[oe,ve]},_tileCoordsToBounds:function(d){var y=this._tileCoordsToNwSe(d),E=new Y(y[0],y[1]);return this.options.noWrap||(E=this._map.wrapLatLngBounds(E)),E},_tileCoordsToKey:function(d){return d.x+":"+d.y+":"+d.z},_keyToTileCoords:function(d){var y=d.split(":"),E=new U(+y[0],+y[1]);return E.z=+y[2],E},_removeTile:function(d){var y=this._tiles[d];y&&(an(y.el),delete this._tiles[d],this.fire("tileunload",{tile:y.el,coords:this._keyToTileCoords(d)}))},_initTile:function(d){_t(d,"leaflet-tile");var y=this.getTileSize();d.style.width=y.x+"px",d.style.height=y.y+"px",d.onselectstart=m,d.onmousemove=m,lt.ielt9&&this.options.opacity<1&&Er(d,this.options.opacity)},_addTile:function(d,y){var E=this._getTilePos(d),k=this._tileCoordsToKey(d),Z=this.createTile(this._wrapCoords(d),o(this._tileReady,this,d));this._initTile(Z),this.createTile.length<2&&G(o(this._tileReady,this,d,null,Z)),Sn(Z,E),this._tiles[k]={el:Z,coords:d,current:!0},y.appendChild(Z),this.fire("tileloadstart",{tile:Z,coords:d})},_tileReady:function(d,y,E){y&&this.fire("tileerror",{error:y,tile:E,coords:d});var k=this._tileCoordsToKey(d);E=this._tiles[k],E&&(E.loaded=+new Date,this._map._fadeAnimated?(Er(E.el,0),te(this._fadeFrame),this._fadeFrame=G(this._updateOpacity,this)):(E.active=!0,this._pruneTiles()),y||(_t(E.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:E.el,coords:d})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),lt.ielt9||!this._map._fadeAnimated?G(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(d){return d.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(d){var y=new U(this._wrapX?h(d.x,this._wrapX):d.x,this._wrapY?h(d.y,this._wrapY):d.y);return y.z=d.z,y},_pxBoundsToTileRange:function(d){var y=this.getTileSize();return new I(d.min.unscaleBy(y).floor(),d.max.unscaleBy(y).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var d in this._tiles)if(!this._tiles[d].loaded)return!1;return!0}});function pi(d){return new Bo(d)}var Uo=Bo.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(d,y){this._url=d,y=w(this,y),y.detectRetina&&lt.retina&&y.maxZoom>0?(y.tileSize=Math.floor(y.tileSize/2),y.zoomReverse?(y.zoomOffset--,y.minZoom=Math.min(y.maxZoom,y.minZoom+1)):(y.zoomOffset++,y.maxZoom=Math.max(y.minZoom,y.maxZoom-1)),y.minZoom=Math.max(0,y.minZoom)):y.zoomReverse?y.minZoom=Math.min(y.maxZoom,y.minZoom):y.maxZoom=Math.max(y.minZoom,y.maxZoom),typeof y.subdomains=="string"&&(y.subdomains=y.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(d,y){return this._url===d&&y===void 0&&(y=!0),this._url=d,y||this.redraw(),this},createTile:function(d,y){var E=document.createElement("img");return bt(E,"load",o(this._tileOnLoad,this,y,E)),bt(E,"error",o(this._tileOnError,this,y,E)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(E.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(E.referrerPolicy=this.options.referrerPolicy),E.alt="",E.src=this.getTileUrl(d),E},getTileUrl:function(d){var y={r:lt.retina?"@2x":"",s:this._getSubdomain(d),x:d.x,y:d.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var E=this._globalTileRange.max.y-d.y;this.options.tms&&(y.y=E),y["-y"]=E}return C(this._url,i(y,this.options))},_tileOnLoad:function(d,y){lt.ielt9?setTimeout(o(d,this,null,y),0):d(null,y)},_tileOnError:function(d,y,E){var k=this.options.errorTileUrl;k&&y.getAttribute("src")!==k&&(y.src=k),d(E,y)},_onTileRemove:function(d){d.tile.onload=null},_getZoomForUrl:function(){var d=this._tileZoom,y=this.options.maxZoom,E=this.options.zoomReverse,k=this.options.zoomOffset;return E&&(d=y-d),d+k},_getSubdomain:function(d){var y=Math.abs(d.x+d.y)%this.options.subdomains.length;return this.options.subdomains[y]},_abortLoading:function(){var d,y;for(d in this._tiles)if(this._tiles[d].coords.z!==this._tileZoom&&(y=this._tiles[d].el,y.onload=m,y.onerror=m,!y.complete)){y.src=P;var E=this._tiles[d].coords;an(y),delete this._tiles[d],this.fire("tileabort",{tile:y,coords:E})}},_removeTile:function(d){var y=this._tiles[d];if(y)return y.el.setAttribute("src",P),Bo.prototype._removeTile.call(this,d)},_tileReady:function(d,y,E){if(!(!this._map||E&&E.getAttribute("src")===P))return Bo.prototype._tileReady.call(this,d,y,E)}});function Br(d,y){return new Uo(d,y)}var Ur=Uo.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(d,y){this._url=d;var E=i({},this.defaultWmsParams);for(var k in y)k in this.options||(E[k]=y[k]);y=w(this,y);var Z=y.detectRetina&&lt.retina?2:1,oe=this.getTileSize();E.width=oe.x*Z,E.height=oe.y*Z,this.wmsParams=E},onAdd:function(d){this._crs=this.options.crs||d.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var y=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[y]=this._crs.code,Uo.prototype.onAdd.call(this,d)},getTileUrl:function(d){var y=this._tileCoordsToNwSe(d),E=this._crs,k=J(E.project(y[0]),E.project(y[1])),Z=k.min,oe=k.max,ve=(this._wmsVersion>=1.3&&this._crs===sg?[Z.y,Z.x,oe.y,oe.x]:[Z.x,Z.y,oe.x,oe.y]).join(","),Ee=Uo.prototype.getTileUrl.call(this,d);return Ee+S(this.wmsParams,Ee,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+ve},setParams:function(d,y){return i(this.wmsParams,d),y||this.redraw(),this}});function Gs(d,y){return new Ur(d,y)}Uo.WMS=Ur,Br.wms=Gs;var mi=fi.extend({options:{padding:.1},initialize:function(d){w(this,d),f(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),_t(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 d={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(d.zoomanim=this._onAnimZoom),d},_onAnimZoom:function(d){this._updateTransform(d.center,d.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(d,y){var E=this._map.getZoomScale(y,this._zoom),k=this._map.getSize().multiplyBy(.5+this.options.padding),Z=this._map.project(this._center,y),oe=k.multiplyBy(-E).add(Z).subtract(this._map._getNewPixelOrigin(d,y));lt.any3d?Qr(this._container,oe,E):Sn(this._container,oe)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var d in this._layers)this._layers[d]._reset()},_onZoomEnd:function(){for(var d in this._layers)this._layers[d]._project()},_updatePaths:function(){for(var d in this._layers)this._layers[d]._update()},_update:function(){var d=this.options.padding,y=this._map.getSize(),E=this._map.containerPointToLayerPoint(y.multiplyBy(-d)).round();this._bounds=new I(E,E.add(y.multiplyBy(1+d*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),wu=mi.extend({options:{tolerance:0},getEvents:function(){var d=mi.prototype.getEvents.call(this);return d.viewprereset=this._onViewPreReset,d},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){mi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var d=this._container=document.createElement("canvas");bt(d,"mousemove",this._onMouseMove,this),bt(d,"click dblclick mousedown mouseup contextmenu",this._onClick,this),bt(d,"mouseout",this._handleMouseOut,this),d._leaflet_disable_events=!0,this._ctx=d.getContext("2d")},_destroyContainer:function(){te(this._redrawRequest),delete this._ctx,an(this._container),Bt(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var d;this._redrawBounds=null;for(var y in this._layers)d=this._layers[y],d._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){mi.prototype._update.call(this);var d=this._bounds,y=this._container,E=d.getSize(),k=lt.retina?2:1;Sn(y,d.min),y.width=k*E.x,y.height=k*E.y,y.style.width=E.x+"px",y.style.height=E.y+"px",lt.retina&&this._ctx.scale(2,2),this._ctx.translate(-d.min.x,-d.min.y),this.fire("update")}},_reset:function(){mi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(d){this._updateDashArray(d),this._layers[f(d)]=d;var y=d._order={layer:d,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=y),this._drawLast=y,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(d){this._requestRedraw(d)},_removePath:function(d){var y=d._order,E=y.next,k=y.prev;E?E.prev=k:this._drawLast=k,k?k.next=E:this._drawFirst=E,delete d._order,delete this._layers[f(d)],this._requestRedraw(d)},_updatePath:function(d){this._extendRedrawBounds(d),d._project(),d._update(),this._requestRedraw(d)},_updateStyle:function(d){this._updateDashArray(d),this._requestRedraw(d)},_updateDashArray:function(d){if(typeof d.options.dashArray=="string"){var y=d.options.dashArray.split(/[, ]+/),E=[],k,Z;for(Z=0;Z<y.length;Z++){if(k=Number(y[Z]),isNaN(k))return;E.push(k)}d.options._dashArray=E}else d.options._dashArray=d.options.dashArray},_requestRedraw:function(d){this._map&&(this._extendRedrawBounds(d),this._redrawRequest=this._redrawRequest||G(this._redraw,this))},_extendRedrawBounds:function(d){if(d._pxBounds){var y=(d.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new I,this._redrawBounds.extend(d._pxBounds.min.subtract([y,y])),this._redrawBounds.extend(d._pxBounds.max.add([y,y]))}},_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 d=this._redrawBounds;if(d){var y=d.getSize();this._ctx.clearRect(d.min.x,d.min.y,y.x,y.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 d,y=this._redrawBounds;if(this._ctx.save(),y){var E=y.getSize();this._ctx.beginPath(),this._ctx.rect(y.min.x,y.min.y,E.x,E.y),this._ctx.clip()}this._drawing=!0;for(var k=this._drawFirst;k;k=k.next)d=k.layer,(!y||d._pxBounds&&d._pxBounds.intersects(y))&&d._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(d,y){if(this._drawing){var E,k,Z,oe,ve=d._parts,Ee=ve.length,Le=this._ctx;if(Ee){for(Le.beginPath(),E=0;E<Ee;E++){for(k=0,Z=ve[E].length;k<Z;k++)oe=ve[E][k],Le[k?"lineTo":"moveTo"](oe.x,oe.y);y&&Le.closePath()}this._fillStroke(Le,d)}}},_updateCircle:function(d){if(!(!this._drawing||d._empty())){var y=d._point,E=this._ctx,k=Math.max(Math.round(d._radius),1),Z=(Math.max(Math.round(d._radiusY),1)||k)/k;Z!==1&&(E.save(),E.scale(1,Z)),E.beginPath(),E.arc(y.x,y.y/Z,k,0,Math.PI*2,!1),Z!==1&&E.restore(),this._fillStroke(E,d)}},_fillStroke:function(d,y){var E=y.options;E.fill&&(d.globalAlpha=E.fillOpacity,d.fillStyle=E.fillColor||E.color,d.fill(E.fillRule||"evenodd")),E.stroke&&E.weight!==0&&(d.setLineDash&&d.setLineDash(y.options&&y.options._dashArray||[]),d.globalAlpha=E.opacity,d.lineWidth=E.weight,d.strokeStyle=E.color,d.lineCap=E.lineCap,d.lineJoin=E.lineJoin,d.stroke())},_onClick:function(d){for(var y=this._map.mouseEventToLayerPoint(d),E,k,Z=this._drawFirst;Z;Z=Z.next)E=Z.layer,E.options.interactive&&E._containsPoint(y)&&(!(d.type==="click"||d.type==="preclick")||!this._map._draggableMoved(E))&&(k=E);this._fireEvent(k?[k]:!1,d)},_onMouseMove:function(d){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var y=this._map.mouseEventToLayerPoint(d);this._handleMouseHover(d,y)}},_handleMouseOut:function(d){var y=this._hoveredLayer;y&&(on(this._container,"leaflet-interactive"),this._fireEvent([y],d,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(d,y){if(!this._mouseHoverThrottled){for(var E,k,Z=this._drawFirst;Z;Z=Z.next)E=Z.layer,E.options.interactive&&E._containsPoint(y)&&(k=E);k!==this._hoveredLayer&&(this._handleMouseOut(d),k&&(_t(this._container,"leaflet-interactive"),this._fireEvent([k],d,"mouseover"),this._hoveredLayer=k)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,d),this._mouseHoverThrottled=!0,setTimeout(o(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(d,y,E){this._map._fireDOMEvent(y,E||y.type,d)},_bringToFront:function(d){var y=d._order;if(y){var E=y.next,k=y.prev;if(E)E.prev=k;else return;k?k.next=E:E&&(this._drawFirst=E),y.prev=this._drawLast,this._drawLast.next=y,y.next=null,this._drawLast=y,this._requestRedraw(d)}},_bringToBack:function(d){var y=d._order;if(y){var E=y.next,k=y.prev;if(k)k.next=E;else return;E?E.prev=k:k&&(this._drawLast=k),y.prev=null,y.next=this._drawFirst,this._drawFirst.prev=y,this._drawFirst=y,this._requestRedraw(d)}}});function _u(d){return lt.canvas?new wu(d):null}var zo=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(d){return document.createElement("<lvml:"+d+' class="lvml">')}}catch{}return function(d){return document.createElement("<"+d+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),Ys={_initContainer:function(){this._container=Lt("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(mi.prototype._update.call(this),this.fire("update"))},_initPath:function(d){var y=d._container=zo("shape");_t(y,"leaflet-vml-shape "+(this.options.className||"")),y.coordsize="1 1",d._path=zo("path"),y.appendChild(d._path),this._updateStyle(d),this._layers[f(d)]=d},_addPath:function(d){var y=d._container;this._container.appendChild(y),d.options.interactive&&d.addInteractiveTarget(y)},_removePath:function(d){var y=d._container;an(y),d.removeInteractiveTarget(y),delete this._layers[f(d)]},_updateStyle:function(d){var y=d._stroke,E=d._fill,k=d.options,Z=d._container;Z.stroked=!!k.stroke,Z.filled=!!k.fill,k.stroke?(y||(y=d._stroke=zo("stroke")),Z.appendChild(y),y.weight=k.weight+"px",y.color=k.color,y.opacity=k.opacity,k.dashArray?y.dashStyle=T(k.dashArray)?k.dashArray.join(" "):k.dashArray.replace(/( *, *)/g," "):y.dashStyle="",y.endcap=k.lineCap.replace("butt","flat"),y.joinstyle=k.lineJoin):y&&(Z.removeChild(y),d._stroke=null),k.fill?(E||(E=d._fill=zo("fill")),Z.appendChild(E),E.color=k.fillColor||k.color,E.opacity=k.fillOpacity):E&&(Z.removeChild(E),d._fill=null)},_updateCircle:function(d){var y=d._point.round(),E=Math.round(d._radius),k=Math.round(d._radiusY||E);this._setPath(d,d._empty()?"M0 0":"AL "+y.x+","+y.y+" "+E+","+k+" 0,"+65535*360)},_setPath:function(d,y){d._path.v=y},_bringToFront:function(d){Po(d._container)},_bringToBack:function(d){Rs(d._container)}},xu=lt.vml?zo:ye,Ya=mi.extend({_initContainer:function(){this._container=xu("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=xu("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){an(this._container),Bt(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){mi.prototype._update.call(this);var d=this._bounds,y=d.getSize(),E=this._container;(!this._svgSize||!this._svgSize.equals(y))&&(this._svgSize=y,E.setAttribute("width",y.x),E.setAttribute("height",y.y)),Sn(E,d.min),E.setAttribute("viewBox",[d.min.x,d.min.y,y.x,y.y].join(" ")),this.fire("update")}},_initPath:function(d){var y=d._path=xu("path");d.options.className&&_t(y,d.options.className),d.options.interactive&&_t(y,"leaflet-interactive"),this._updateStyle(d),this._layers[f(d)]=d},_addPath:function(d){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(d._path),d.addInteractiveTarget(d._path)},_removePath:function(d){an(d._path),d.removeInteractiveTarget(d._path),delete this._layers[f(d)]},_updatePath:function(d){d._project(),d._update()},_updateStyle:function(d){var y=d._path,E=d.options;y&&(E.stroke?(y.setAttribute("stroke",E.color),y.setAttribute("stroke-opacity",E.opacity),y.setAttribute("stroke-width",E.weight),y.setAttribute("stroke-linecap",E.lineCap),y.setAttribute("stroke-linejoin",E.lineJoin),E.dashArray?y.setAttribute("stroke-dasharray",E.dashArray):y.removeAttribute("stroke-dasharray"),E.dashOffset?y.setAttribute("stroke-dashoffset",E.dashOffset):y.removeAttribute("stroke-dashoffset")):y.setAttribute("stroke","none"),E.fill?(y.setAttribute("fill",E.fillColor||E.color),y.setAttribute("fill-opacity",E.fillOpacity),y.setAttribute("fill-rule",E.fillRule||"evenodd")):y.setAttribute("fill","none"))},_updatePoly:function(d,y){this._setPath(d,me(d._parts,y))},_updateCircle:function(d){var y=d._point,E=Math.max(Math.round(d._radius),1),k=Math.max(Math.round(d._radiusY),1)||E,Z="a"+E+","+k+" 0 1,0 ",oe=d._empty()?"M0 0":"M"+(y.x-E)+","+y.y+Z+E*2+",0 "+Z+-E*2+",0 ";this._setPath(d,oe)},_setPath:function(d,y){d._path.setAttribute("d",y)},_bringToFront:function(d){Po(d._path)},_bringToBack:function(d){Rs(d._path)}});lt.vml&&Ya.include(Ys);function Fo(d){return lt.svg||lt.vml?new Ya(d):null}Et.include({getRenderer:function(d){var y=d.options.renderer||this._getPaneRenderer(d.options.pane)||this.options.renderer||this._renderer;return y||(y=this._renderer=this._createRenderer()),this.hasLayer(y)||this.addLayer(y),y},_getPaneRenderer:function(d){if(d==="overlayPane"||d===void 0)return!1;var y=this._paneRenderers[d];return y===void 0&&(y=this._createRenderer({pane:d}),this._paneRenderers[d]=y),y},_createRenderer:function(d){return this.options.preferCanvas&&_u(d)||Fo(d)}});var pg=Vs.extend({initialize:function(d,y){Vs.prototype.initialize.call(this,this._boundsToLatLngs(d),y)},setBounds:function(d){return this.setLatLngs(this._boundsToLatLngs(d))},_boundsToLatLngs:function(d){return d=ae(d),[d.getSouthWest(),d.getNorthWest(),d.getNorthEast(),d.getSouthEast()]}});function zr(d,y){return new pg(d,y)}Ya.create=xu,Ya.pointsToPath=me,$r.geometryToLayer=vu,$r.coordsToLatLng=qc,$r.coordsToLatLngs=gu,$r.latLngToCoords=yu,$r.latLngsToCoords=Vc,$r.getFeature=di,$r.asFeature=Hs,Et.mergeOptions({boxZoom:!0});var Yc=ci.extend({initialize:function(d){this._map=d,this._container=d._container,this._pane=d._panes.overlayPane,this._resetStateTimeout=0,d.on("unload",this._destroy,this)},addHooks:function(){bt(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Bt(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){an(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(d){if(!d.shiftKey||d.which!==1&&d.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),zi(),uu(),this._startPoint=this._map.mouseEventToContainerPoint(d),bt(document,{contextmenu:Vi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(d){this._moved||(this._moved=!0,this._box=Lt("div","leaflet-zoom-box",this._container),_t(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(d);var y=new I(this._point,this._startPoint),E=y.getSize();Sn(this._box,y.min),this._box.style.width=E.x+"px",this._box.style.height=E.y+"px"},_finish:function(){this._moved&&(an(this._box),on(this._container,"leaflet-crosshair")),lu(),vh(),Bt(document,{contextmenu:Vi,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(d){if(!(d.which!==1&&d.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var y=new Y(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(y).fire("boxzoomend",{boxZoomBounds:y})}},_onKeyDown:function(d){d.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Et.addInitHook("addHandler","boxZoom",Yc),Et.mergeOptions({doubleClickZoom:!0});var Wi=ci.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(d){var y=this._map,E=y.getZoom(),k=y.options.zoomDelta,Z=d.originalEvent.shiftKey?E-k:E+k;y.options.doubleClickZoom==="center"?y.setZoom(Z):y.setZoomAround(d.containerPoint,Z)}});Et.addInitHook("addHandler","doubleClickZoom",Wi),Et.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Ph=ci.extend({addHooks:function(){if(!this._draggable){var d=this._map;this._draggable=new Wa(d._mapPane,d._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),d.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),d.on("zoomend",this._onZoomEnd,this),d.whenReady(this._onZoomEnd,this))}_t(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){on(this._map._container,"leaflet-grab"),on(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 d=this._map;if(d._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var y=ae(this._map.options.maxBounds);this._offsetLimit=J(this._map.latLngToContainerPoint(y.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(y.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;d.fire("movestart").fire("dragstart"),d.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(d){if(this._map.options.inertia){var y=this._lastTime=+new Date,E=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(E),this._times.push(y),this._prunePositions(y)}this._map.fire("move",d).fire("drag",d)},_prunePositions:function(d){for(;this._positions.length>1&&d-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var d=this._map.getSize().divideBy(2),y=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=y.subtract(d).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(d,y){return d-(d-y)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var d=this._draggable._newPos.subtract(this._draggable._startPos),y=this._offsetLimit;d.x<y.min.x&&(d.x=this._viscousLimit(d.x,y.min.x)),d.y<y.min.y&&(d.y=this._viscousLimit(d.y,y.min.y)),d.x>y.max.x&&(d.x=this._viscousLimit(d.x,y.max.x)),d.y>y.max.y&&(d.y=this._viscousLimit(d.y,y.max.y)),this._draggable._newPos=this._draggable._startPos.add(d)}},_onPreDragWrap:function(){var d=this._worldWidth,y=Math.round(d/2),E=this._initialWorldOffset,k=this._draggable._newPos.x,Z=(k-y+E)%d+y-E,oe=(k+y+E)%d-y-E,ve=Math.abs(Z+E)<Math.abs(oe+E)?Z:oe;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=ve},_onDragEnd:function(d){var y=this._map,E=y.options,k=!E.inertia||d.noInertia||this._times.length<2;if(y.fire("dragend",d),k)y.fire("moveend");else{this._prunePositions(+new Date);var Z=this._lastPos.subtract(this._positions[0]),oe=(this._lastTime-this._times[0])/1e3,ve=E.easeLinearity,Ee=Z.multiplyBy(ve/oe),Le=Ee.distanceTo([0,0]),He=Math.min(E.inertiaMaxSpeed,Le),et=Ee.multiplyBy(He/Le),rt=He/(E.inertiaDeceleration*ve),at=et.multiplyBy(-rt/2).round();!at.x&&!at.y?y.fire("moveend"):(at=y._limitOffset(at,y.options.maxBounds),G(function(){y.panBy(at,{duration:rt,easeLinearity:ve,noMoveStart:!0,animate:!0})}))}}});Et.addInitHook("addHandler","dragging",Ph),Et.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Su=ci.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(d){this._map=d,this._setPanDelta(d.options.keyboardPanDelta),this._setZoomDelta(d.options.zoomDelta)},addHooks:function(){var d=this._map._container;d.tabIndex<=0&&(d.tabIndex="0"),bt(d,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Bt(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 d=document.body,y=document.documentElement,E=d.scrollTop||y.scrollTop,k=d.scrollLeft||y.scrollLeft;this._map._container.focus(),window.scrollTo(k,E)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(d){var y=this._panKeys={},E=this.keyCodes,k,Z;for(k=0,Z=E.left.length;k<Z;k++)y[E.left[k]]=[-1*d,0];for(k=0,Z=E.right.length;k<Z;k++)y[E.right[k]]=[d,0];for(k=0,Z=E.down.length;k<Z;k++)y[E.down[k]]=[0,d];for(k=0,Z=E.up.length;k<Z;k++)y[E.up[k]]=[0,-1*d]},_setZoomDelta:function(d){var y=this._zoomKeys={},E=this.keyCodes,k,Z;for(k=0,Z=E.zoomIn.length;k<Z;k++)y[E.zoomIn[k]]=d;for(k=0,Z=E.zoomOut.length;k<Z;k++)y[E.zoomOut[k]]=-d},_addHooks:function(){bt(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Bt(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(d){if(!(d.altKey||d.ctrlKey||d.metaKey)){var y=d.keyCode,E=this._map,k;if(y in this._panKeys){if(!E._panAnim||!E._panAnim._inProgress)if(k=this._panKeys[y],d.shiftKey&&(k=M(k).multiplyBy(3)),E.options.maxBounds&&(k=E._limitOffset(M(k),E.options.maxBounds)),E.options.worldCopyJump){var Z=E.wrapLatLng(E.unproject(E.project(E.getCenter()).add(k)));E.panTo(Z)}else E.panBy(k)}else if(y in this._zoomKeys)E.setZoom(E.getZoom()+(d.shiftKey?3:1)*this._zoomKeys[y]);else if(y===27&&E._popup&&E._popup.options.closeOnEscapeKey)E.closePopup();else return;Vi(d)}}});Et.addInitHook("addHandler","keyboard",Su),Et.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Ka=ci.extend({addHooks:function(){bt(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Bt(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(d){var y=du(d),E=this._map.options.wheelDebounceTime;this._delta+=y,this._lastMousePos=this._map.mouseEventToContainerPoint(d),this._startTime||(this._startTime=+new Date);var k=Math.max(E-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),k),Vi(d)},_performZoom:function(){var d=this._map,y=d.getZoom(),E=this._map.options.zoomSnap||0;d._stop();var k=this._delta/(this._map.options.wheelPxPerZoomLevel*4),Z=4*Math.log(2/(1+Math.exp(-Math.abs(k))))/Math.LN2,oe=E?Math.ceil(Z/E)*E:Z,ve=d._limitZoom(y+(this._delta>0?oe:-oe))-y;this._delta=0,this._startTime=null,ve&&(d.options.scrollWheelZoom==="center"?d.setZoom(y+ve):d.setZoomAround(this._lastMousePos,y+ve))}});Et.addInitHook("addHandler","scrollWheelZoom",Ka);var Rh=600;Et.mergeOptions({tapHold:lt.touchNative&&lt.safari&&lt.mobile,tapTolerance:15});var Kc=ci.extend({addHooks:function(){bt(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Bt(this._map._container,"touchstart",this._onDown,this)},_onDown:function(d){if(clearTimeout(this._holdTimeout),d.touches.length===1){var y=d.touches[0];this._startPos=this._newPos=new U(y.clientX,y.clientY),this._holdTimeout=setTimeout(o(function(){this._cancel(),this._isTapValid()&&(bt(document,"touchend",Tn),bt(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",y))},this),Rh),bt(document,"touchend touchcancel contextmenu",this._cancel,this),bt(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function d(){Bt(document,"touchend",Tn),Bt(document,"touchend touchcancel",d)},_cancel:function(){clearTimeout(this._holdTimeout),Bt(document,"touchend touchcancel contextmenu",this._cancel,this),Bt(document,"touchmove",this._onMove,this)},_onMove:function(d){var y=d.touches[0];this._newPos=new U(y.clientX,y.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(d,y){var E=new MouseEvent(d,{bubbles:!0,cancelable:!0,view:window,screenX:y.screenX,screenY:y.screenY,clientX:y.clientX,clientY:y.clientY});E._simulated=!0,y.target.dispatchEvent(E)}});Et.addInitHook("addHandler","tapHold",Kc),Et.mergeOptions({touchZoom:lt.touch,bounceAtZoomLimits:!0});var qo=ci.extend({addHooks:function(){_t(this._map._container,"leaflet-touch-zoom"),bt(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){on(this._map._container,"leaflet-touch-zoom"),Bt(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(d){var y=this._map;if(!(!d.touches||d.touches.length!==2||y._animatingZoom||this._zooming)){var E=y.mouseEventToContainerPoint(d.touches[0]),k=y.mouseEventToContainerPoint(d.touches[1]);this._centerPoint=y.getSize()._divideBy(2),this._startLatLng=y.containerPointToLatLng(this._centerPoint),y.options.touchZoom!=="center"&&(this._pinchStartLatLng=y.containerPointToLatLng(E.add(k)._divideBy(2))),this._startDist=E.distanceTo(k),this._startZoom=y.getZoom(),this._moved=!1,this._zooming=!0,y._stop(),bt(document,"touchmove",this._onTouchMove,this),bt(document,"touchend touchcancel",this._onTouchEnd,this),Tn(d)}},_onTouchMove:function(d){if(!(!d.touches||d.touches.length!==2||!this._zooming)){var y=this._map,E=y.mouseEventToContainerPoint(d.touches[0]),k=y.mouseEventToContainerPoint(d.touches[1]),Z=E.distanceTo(k)/this._startDist;if(this._zoom=y.getScaleZoom(Z,this._startZoom),!y.options.bounceAtZoomLimits&&(this._zoom<y.getMinZoom()&&Z<1||this._zoom>y.getMaxZoom()&&Z>1)&&(this._zoom=y._limitZoom(this._zoom)),y.options.touchZoom==="center"){if(this._center=this._startLatLng,Z===1)return}else{var oe=E._add(k)._divideBy(2)._subtract(this._centerPoint);if(Z===1&&oe.x===0&&oe.y===0)return;this._center=y.unproject(y.project(this._pinchStartLatLng,this._zoom).subtract(oe),this._zoom)}this._moved||(y._moveStart(!0,!1),this._moved=!0),te(this._animRequest);var ve=o(y._move,y,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=G(ve,this,!0),Tn(d)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,te(this._animRequest),Bt(document,"touchmove",this._onTouchMove,this),Bt(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))}});Et.addInitHook("addHandler","touchZoom",qo),Et.BoxZoom=Yc,Et.DoubleClickZoom=Wi,Et.Drag=Ph,Et.Keyboard=Su,Et.ScrollWheelZoom=Ka,Et.TapHold=Kc,Et.TouchZoom=qo,n.Bounds=I,n.Browser=lt,n.CRS=be,n.Canvas=wu,n.Circle=Th,n.CircleMarker=mu,n.Class=X,n.Control=Tr,n.DivIcon=jh,n.DivOverlay=hi,n.DomEvent=jw,n.DomUtil=Zv,n.Draggable=Wa,n.Evented=B,n.FeatureGroup=kr,n.GeoJSON=$r,n.GridLayer=Bo,n.Handler=ci,n.Icon=zs,n.ImageOverlay=Hi,n.LatLng=de,n.LatLngBounds=Y,n.Layer=fi,n.LayerGroup=Io,n.LineUtil=ag,n.Map=Et,n.Marker=qs,n.Mixin=Lw,n.Path=ma,n.Point=U,n.PolyUtil=Dw,n.Polygon=Vs,n.Polyline=va,n.Popup=bu,n.PosAnimation=Ic,n.Projection=og,n.Rectangle=pg,n.Renderer=mi,n.SVG=Ya,n.SVGOverlay=Ga,n.TileLayer=Uo,n.Tooltip=Gc,n.Transformation=ce,n.Util=ie,n.VideoOverlay=Wc,n.bind=o,n.bounds=J,n.canvas=_u,n.circle=zw,n.circleMarker=ug,n.control=Bs,n.divIcon=hg,n.extend=i,n.featureGroup=pu,n.geoJSON=Hc,n.geoJson=cg,n.gridLayer=pi,n.icon=Fc,n.imageOverlay=Ws,n.latLng=fe,n.latLngBounds=ae,n.layerGroup=lg,n.map=hu,n.marker=Eh,n.point=M,n.polygon=Ir,n.polyline=Fw,n.popup=qw,n.rectangle=zr,n.setOptions=w,n.stamp=f,n.svg=Fo,n.svgOverlay=dg,n.tileLayer=Br,n.tooltip=Vw,n.transformation=Q,n.version=r,n.videoOverlay=fg;var Ks=window.L;n.noConflict=function(){return window.L=Ks,this},window.L=n})}(qp,qp.exports)),qp.exports}var $v=hje();const n9=Nt($v);function KP(e,t,n){return Object.freeze({instance:e,context:t,container:n})}function ZP(e,t){return t==null?function(r,i){const a=D.useRef(void 0);return a.current||(a.current=e(r,i)),a}:function(r,i){const a=D.useRef(void 0);a.current||(a.current=e(r,i));const o=D.useRef(r),{instance:l}=a.current;return D.useEffect(function(){o.current!==r&&(t(l,r,o.current),o.current=r)},[l,r,t]),a}}function pje(e,t){D.useEffect(function(){return(t.layerContainer??t.map).addLayer(e.instance),function(){var a;(a=t.layerContainer)==null||a.removeLayer(e.instance),t.map.removeLayer(e.instance)}},[t,e])}function fW(e){return function(n){const r=uW(),i=e(YP(n,r),r);return lW(r.map,n.attribution),cW(i.current,n.eventHandlers),pje(i.current,r),i}}function mje(e,t){const n=ZP(e,t),r=fW(n);return lje(r)}function vje(e,t){const n=ZP(e),r=fje(n,t);return uje(r)}function gje(e,t){const n=ZP(e,t),r=fW(n);return cje(r)}function yje(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 bje({bounds:e,boundsOptions:t,center:n,children:r,className:i,id:a,placeholder:o,style:l,whenReady:f,zoom:u,...h},m){const[v]=D.useState({className:i,id:a,style:l}),[_,x]=D.useState(null),w=D.useRef(void 0);D.useImperativeHandle(m,()=>(_==null?void 0:_.map)??null,[_]);const S=D.useCallback(C=>{if(C!==null&&!w.current){const T=new $v.Map(C,h);w.current=T,n!=null&&u!=null?T.setView(n,u):e!=null&&T.fitBounds(e,t),f!=null&&T.whenReady(f),x(oje(T))}},[]);D.useEffect(()=>()=>{_==null||_.map.remove()},[_]);const O=_?se.createElement(GP,{value:_},r):o??null;return se.createElement("div",{...v,ref:S},O)}const wje=D.forwardRef(bje),_je=mje(function({position:t,...n},r){const i=new $v.Marker(t,n);return KP(i,sje(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())}),xje=vje(function(t,n){const r=new $v.Popup(t,n.overlayContainer);return KP(r,n)},function(t,n,{position:r},i){D.useEffect(function(){const{instance:o}=t;function l(u){u.popup===o&&(o.update(),i(!0))}function f(u){u.popup===o&&i(!1)}return n.map.on({popupopen:l,popupclose:f}),n.overlayContainer==null?(r!=null&&o.setLatLng(r),o.openOn(n.map)):n.overlayContainer.bindPopup(o),function(){var h;n.map.off({popupopen:l,popupclose:f}),(h=n.overlayContainer)==null||h.unbindPopup(),n.map.removeLayer(o)}},[t,n,i,r])}),Sje=gje(function({url:t,...n},r){const i=new $v.TileLayer(t,YP(n,r));return KP(i,r)},function(t,n,r){yje(t,n,r);const{url:i}=n;i!=null&&i!==r.url&&t.setUrl(i)}),Oje={"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",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"},dW={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",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"},In={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},qr={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"},Ol={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class We{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=We.getVersionPrecision(t),a=We.getVersionPrecision(n);let o=Math.max(i,a),l=0;const f=We.map([t,n],u=>{const h=o-We.getVersionPrecision(u),m=u+new Array(h+1).join(".0");return We.map(m.split("."),v=>new Array(20-v.length).join("0")+v).reverse()});for(r&&(l=o-Math.min(i,a)),o-=1;o>=l;){if(f[0][o]>f[1][o])return 1;if(f[0][o]===f[1][o]){if(o===l)return 0;o-=1}else if(f[0][o]<f[1][o])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 a=t[r];if(n(a,r))return a}}static assign(t,...n){const r=t;let i,a;if(Object.assign)return Object.assign(t,...n);for(i=0,a=n.length;i<a;i+=1){const o=n[i];typeof o=="object"&&o!==null&&Object.keys(o).forEach(f=>{r[f]=o[f]})}return t}static getBrowserAlias(t){return Oje[t]}static getBrowserTypeByAlias(t){return dW[t]||""}}const en=/version\/(\d+(\.?_?\d+)+)/i,Cje=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=We.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=We.getFirstMatch(en,e)||We.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=We.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=We.getFirstMatch(en,e)||We.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=We.getFirstMatch(en,e)||We.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=We.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=We.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=We.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=We.getFirstMatch(en,e)||We.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=We.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=We.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=We.getFirstMatch(en,e)||We.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=We.getFirstMatch(en,e)||We.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=We.getFirstMatch(en,e)||We.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=We.getFirstMatch(en,e)||We.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=We.getFirstMatch(en,e)||We.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=We.getFirstMatch(en,e)||We.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=We.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(en,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=We.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=We.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=We.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=We.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=We.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=We.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=We.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=We.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=We.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=We.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=We.getFirstMatch(en,e)||We.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=We.getFirstMatch(en,e)||We.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=We.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=We.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=We.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=We.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=We.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=We.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=We.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=We.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=We.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=We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=We.getFirstMatch(en,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,i=e.search("\\(")!==-1?n:t;return{name:We.getFirstMatch(i,e),version:We.getSecondMatch(i,e)}}}],Eje=[{test:[/Roku\/DVP/],describe(e){const t=We.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:qr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=We.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:qr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=We.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=We.getWindowsVersionName(t);return{name:qr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:qr.iOS},n=We.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=We.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=We.getMacOSVersionName(t),r={name:qr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=We.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:qr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=We.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=We.getAndroidVersionName(t),r={name:qr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=We.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:qr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=We.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||We.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||We.getFirstMatch(/\bbb(\d+)/i,e);return{name:qr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=We.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:qr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=We.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:qr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:qr.Linux}}},{test:[/CrOS/],describe(){return{name:qr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=We.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:qr.PlayStation4,version:t}}}],Tje=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=We.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:In.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:In.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:In.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:In.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:In.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:In.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:In.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=We.getFirstMatch(/(ipod|iphone)/i,e);return{type:In.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:In.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:In.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:In.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:In.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:In.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:In.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:In.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:In.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:In.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:In.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:In.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:In.tv}}}],Aje=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:Ol.Blink};const n=We.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:Ol.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:Ol.Trident},n=We.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:Ol.Presto},n=We.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:Ol.Gecko},n=We.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:Ol.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:Ol.WebKit},n=We.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class r9{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=We.find(Cje,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)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=We.find(Eje,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)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=We.find(Tje,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)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=We.find(Aje,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)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 We.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const i={};let a=0;if(Object.keys(t).forEach(l=>{const f=t[l];typeof f=="string"?(i[l]=f,a+=1):typeof f=="object"&&(n[l]=f,r+=1)}),r>0){const l=Object.keys(n),f=We.find(l,h=>this.isOS(h));if(f){const h=this.satisfies(n[f]);if(h!==void 0)return h}const u=We.find(l,h=>this.isPlatform(h));if(u){const h=this.satisfies(n[u]);if(h!==void 0)return h}}if(a>0){const l=Object.keys(i),f=We.find(l,u=>this.isBrowser(u,!0));if(f!==void 0)return this.compareVersion(i[f])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let i=t.toLowerCase();const a=We.getBrowserTypeByAlias(i);return n&&a&&(i=a.toLowerCase()),i===r}compareVersion(t){let n=[0],r=t,i=!1;const a=this.getBrowserVersion();if(typeof a=="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(We.compareVersions(a,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 jje{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new r9(t,n)}static parse(t){return new r9(t).getResult()}static get BROWSER_MAP(){return dW}static get ENGINE_MAP(){return Ol}static get OS_MAP(){return qr}static get PLATFORMS_MAP(){return In}}var Pje=Object.defineProperty,Rje=(e,t,n)=>t in e?Pje(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Il=(e,t,n)=>Rje(e,typeof t!="symbol"?t+"":t,n);const Mje=e=>(e==null?void 0:e.type)===I3.INVALID_ARGUMENT,Nje=e=>(e==null?void 0:e.type)===I3.INVALID_SHORT_URL_DELETION,Lje=e=>!!e&&typeof e=="object"&&["type","detail","title","status"].every(t=>t in e),Bi=e=>Lje(e)?e:void 0,XP=e=>"error"in e,go=({errorData:e,fallbackMessage:t})=>g.jsxs(g.Fragment,{children:[(e==null?void 0:e.detail)??t,Mje(e)&&g.jsxs("p",{children:["Invalid elements: [",e.invalidElements.join(", "),"]"]})]}),hW=D.createContext(""),Dje=hW.Provider,iu=()=>D.useContext(hW),pW=D.createContext(void 0),{Provider:QP}=pW,gw=()=>D.useContext(pW),kje=5,JP=()=>{const[e,t]=D.useState([]),n=D.useMemo(()=>e.length>=kje,[e.length]),r=D.useCallback(l=>!n&&t(f=>[...f,l]),[n]),i=D.useCallback(l=>!n&&e.every(f=>f.name!==l),[e,n]),a=D.useCallback(l=>t(f=>f.filter(u=>u!==l)),[]),o=D.useCallback(()=>t([]),[]);return{itemsToCompare:e,addItemToCompare:r,removeItemToCompare:a,clearItemsToCompare:o,canAddItemWithName:i}},e4=({className:e,type:t})=>{const n=iu(),r=gw(),i=D.useMemo(()=>r?encodeURIComponent(r.itemsToCompare.map(f=>f.query).join(",")):"",[r]);if(!r||r.itemsToCompare.length===0)return null;const{itemsToCompare:a,clearItemsToCompare:o,removeItemToCompare:l}=r;return g.jsx("div",{className:Ce("tw:sticky tw:top-(--header-height) tw:z-10",e),children:g.jsxs(qt,{bodyClassName:"tw:flex tw:flex-col tw:lg:flex-row tw:gap-4 tw:items-center",children:[g.jsx("ul",{className:"tw:flex tw:flex-wrap tw:gap-1 tw:grow tw:items-center tw:p-0 tw:m-0",children:a.map((f,u)=>{var h;return g.jsxs("li",{className:Ce("tw:flex tw:items-center tw:gap-1 tw:text-sm tw:font-bold tw:text-white tw:py-0.5 tw:px-1.5 tw:rounded",{"tw:bg-gray-500":!((h=f.style)!=null&&h.backgroundColor)}),style:f.style,children:[f.name,g.jsx(Em,{label:`Remove ${f.name}`,className:"tw:text-xs",onClick:()=>l(f)})]},`${f.name}_${u}`)})}),g.jsxs("div",{className:"tw:flex tw:gap-2 tw:max-lg:w-full",children:[g.jsxs(Pn,{className:"tw:grow tw:whitespace-nowrap",disabled:a.length<2,to:a.length>1?`${n}/${t}/compare-visits?${t}=${i}`:void 0,children:[g.jsx(Ke,{icon:l1}),"Compare (",a.length,"/5)",g.jsx(Ke,{icon:f0})]}),g.jsx(Pn,{"aria-label":"Close compare",variant:"secondary",onClick:o,children:g.jsx(Ke,{icon:f1})})]})]})})},Ije=(e,{maxVersion:t,minVersion:n})=>{const r=!n||WT(e,n,">=");return(!t||WT(e,t,"<="))&&r},mW={shortUrlVisitsDeletion:{minVersion:"3.6.0"},orphanVisitsDeletion:{minVersion:"3.7.0"},deviceLongUrls:{maxVersion:"3.*.*"},shortUrlRedirectRules:{minVersion:"4.0.0"},urlValidation:{maxVersion:"3.*.*"},ipRedirectCondition:{minVersion:"4.2.0"},geolocationRedirectCondition:{minVersion:"4.3.0"},filterShortUrlsByDomain:{minVersion:"4.3.0"}};Object.freeze(mW);const _l=(e,t)=>Ije(t==="latest"?"999.99.99":t,mW[e]),vW=e=>({deviceLongUrls:_l("deviceLongUrls",e),shortUrlVisitsDeletion:_l("shortUrlVisitsDeletion",e),orphanVisitsDeletion:_l("orphanVisitsDeletion",e),shortUrlRedirectRules:_l("shortUrlRedirectRules",e),urlValidation:_l("urlValidation",e),ipRedirectCondition:_l("ipRedirectCondition",e),geolocationRedirectCondition:_l("geolocationRedirectCondition",e),filterShortUrlsByDomain:_l("filterShortUrlsByDomain",e)}),gW=D.createContext(vW("0.0.0")),$je=gW.Provider,Bje=e=>D.useMemo(()=>vW(e),[e]),yo=e=>D.useContext(gW)[e],Ud="DEFAULT",t4=(e,t,n=1)=>tF(n,e+1).map(t),Uje=e=>Array.isArray(e)&&e.length===0||typeof e=="string"&&e===""||typeof e=="object"&&Object.keys(e).length===0,Yu=e=>e!=null&&!Uje(e),rE=e=>e||null,xj=e=>e?"true":"false",iE=e=>e===void 0?void 0:xj(e),aE=({children:e,onChange:t,infoTitle:n,...r})=>g.jsx(ua,{...r,onChange:i=>t(i.target.value),label:g.jsxs(g.Fragment,{children:[g.jsx(Ke,{className:"tw:mr-1.5",icon:u1,title:n}),e]}),type:"url",placeholder:"No redirect"}),zje=({isOpen:e,onClose:t,domain:n,editDomainRedirects:r})=>{var i,a,o;const[l,f]=D.useState(((i=n.redirects)==null?void 0:i.baseUrlRedirect)??""),[u,h]=D.useState(((a=n.redirects)==null?void 0:a.regular404Redirect)??""),[m,v]=D.useState(((o=n.redirects)==null?void 0:o.invalidShortUrlRedirect)??""),[_,x]=D.useState(!1),w=D.useCallback(async()=>{x(!0);try{await r({domain:n.domain,redirects:{baseUrlRedirect:rE(l),regular404Redirect:rE(u),invalidShortUrlRedirect:rE(m)}}),t()}finally{x(!1)}},[r,n.domain,l,u,m,t]);return g.jsx(Ql,{title:`Edit redirects for ${n.domain}`,open:e,onClose:t,onConfirm:w,confirmText:_?"Saving...":"Save",confirmDisabled:_,children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-y-3",children:[g.jsx(aE,{value:l,onChange:f,infoTitle:`Visitors accessing the base url, as in https://${n.domain}/, will be redirected to this URL.`,children:"Base URL"}),g.jsx(aE,{value:u,onChange:h,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"}),g.jsx(aE,{value:m,onChange:v,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"})]})})},Fje=({domain:e,editDomainRedirects:t})=>{const{flag:n,setToTrue:r,setToFalse:i}=Wt(!1,!0),a=iu(),o=gw(),l=yo("filterShortUrlsByDomain");return g.jsxs(g.Fragment,{children:[g.jsxs(y1,{children:[g.jsxs(Je,{tag:gn,to:`${a}/domain/${e.domain}${e.isDefault?`_${Ud}`:""}/visits`,children:[g.jsx(Ke,{icon:Gj,fixedWidth:!0})," Visit stats"]}),g.jsxs(Je,{disabled:!o||!o.canAddItemWithName(e.domain),onClick:()=>o==null?void 0:o.addItemToCompare({name:e.domain,query:e.domain}),children:[g.jsx(Ke,{icon:l1,fixedWidth:!0})," Compare visits"]}),l&&g.jsxs(Je,{tag:gn,to:`${a}/list-short-urls/1?domain=${e.isDefault?Ud:e.domain}`,children:[g.jsx(Ke,{icon:Hj,fixedWidth:!0})," Short URLs"]}),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsxs(Je,{onClick:r,children:[g.jsx(Ke,{icon:Wj,fixedWidth:!0})," Edit redirects"]})]}),g.jsx(zje,{domain:e,isOpen:n,onClose:i,editDomainRedirects:t})]})},qje=(e,t)=>{const n=r=>i=>{i.event.composedPath().some(({classList:a})=>a==null?void 0:a.contains("visits-table"))||document.querySelector(".modal")||r()};return ife({delta:40,onSwipedLeft:n(t),onSwipedRight:n(e)})},Vje=(e,t)=>{const[n,r]=D.useState(t),i=D.useCallback(a=>{const{location:o,history:l}=window,f=cz(o.search);f[e]=a,l.pushState(null,"",`${o.pathname}?${w3(f)}`),r(a)},[e]);return[n,i]},n4=e=>{const t=Gd();return D.useMemo(()=>{var n;return((n=t[e])==null?void 0:n.split(",").filter(Boolean))??[]},[e,t])},yW=(e,t)=>{const n=D.useCallback(()=>t(`(max-width: ${e}px)`).matches,[t,e]),[r,i]=D.useState(n());return D.useEffect(()=>{const a=()=>i(n());return window.addEventListener("resize",a),()=>window.removeEventListener("resize",a)},[n]),r},Hje=(e,t,n)=>{D.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])},Wje=({status:e,matchMedia:t=window.matchMedia})=>{const n=D.useRef(null),r=yW(991,t);return e==="validating"?g.jsx(Ke,{fixedWidth:!0,icon:gv,spin:!0}):g.jsxs(g.Fragment,{children:[g.jsx("span",{ref:n,children:g.jsx(Ke,{fixedWidth:!0,icon:e==="valid"?ac:UJ,className:Ce({"tw:text-danger":e!=="valid"})})}),g.jsx(bs,{target:n,placement:r?"right":"left",autohide:e==="valid",children:e==="valid"?"Congratulations! This domain is properly configured.":g.jsxs("span",{children:["Oops! There is some missing configuration, and short URLs shared with this domain will not work.",g.jsx("br",{}),"Check the ",g.jsx(aa,{href:"https://slnk.to/multi-domain-docs",children:"documentation"})," in order to find out what is missing."]})})]})},oE=({fallback:e})=>g.jsxs("span",{className:"tw:text-gray-500 tw:dark:text-gray-400",children:[!e&&g.jsx("small",{children:"No redirect"}),e&&g.jsxs(g.Fragment,{children:[e," ",g.jsx("small",{children:"(as fallback)"})]})]}),Gje=()=>g.jsxs(g.Fragment,{children:[g.jsx(Ke,{fixedWidth:!0,icon:aJ,className:"tw:text-lm-brand tw:dark:text-dm-brand",id:"defaultDomainIcon"}),g.jsx(bs,{target:"defaultDomainIcon",placement:"right",children:"Default domain"})]}),Yje=({domain:e,editDomainRedirects:t,checkDomainHealth:n,defaultRedirects:r})=>{const{domain:i,isDefault:a,redirects:o,status:l}=e;return D.useEffect(()=>{n(e.domain)},[n,e.domain]),g.jsxs(tt.Row,{className:"tw:relative",children:[g.jsx(tt.Cell,{columnName:"Is default domain:",children:a&&g.jsx(Gje,{})}),g.jsx(tt.Cell,{columnName:"Domain:",children:g.jsx("b",{children:i})}),g.jsx(tt.Cell,{columnName:"Base path redirect:",children:(o==null?void 0:o.baseUrlRedirect)??g.jsx(oE,{fallback:r==null?void 0:r.baseUrlRedirect})}),g.jsx(tt.Cell,{columnName:"Regular 404 redirect:",children:(o==null?void 0:o.regular404Redirect)??g.jsx(oE,{fallback:r==null?void 0:r.regular404Redirect})}),g.jsx(tt.Cell,{columnName:"Invalid short URL redirect:",children:(o==null?void 0:o.invalidShortUrlRedirect)??g.jsx(oE,{fallback:r==null?void 0:r.invalidShortUrlRedirect})}),g.jsx(tt.Cell,{className:"tw:lg:text-center tw:max-lg:border-none",columnName:"Status:",children:g.jsx(Wje,{status:l})}),g.jsx(tt.Cell,{className:"tw:text-right tw:max-lg:absolute tw:max-lg:top-1 tw:max-lg:right-1 tw:max-lg:p-0",children:g.jsx(Fje,{domain:e,editDomainRedirects:t})})]})},i9=[{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}],Kje=({domainsList:e,filterDomains:t,editDomainRedirects:n,checkDomainHealth:r})=>{var i;const{filteredDomains:a,defaultRedirects:o,loading:l,error:f,errorData:u}=e,h=o??((i=a.find(({isDefault:v})=>v))==null?void 0:i.redirects),m=JP();return l?g.jsx(fc,{loading:!0}):g.jsx(QP,{value:m,children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-y-4",children:[g.jsx(P1,{onChange:t}),g.jsx(e4,{type:"domains"}),f&&g.jsx(Mi,{variant:"error",children:g.jsx(go,{errorData:u,fallbackMessage:"Error loading domains :("})}),!f&&g.jsx(qt,{className:"card",children:g.jsxs(tt,{header:g.jsx(tt.Row,{children:i9.map((v,_)=>g.jsx(tt.Cell,{children:g.jsx("span",{className:v.isHidden?"tw:sr-only":void 0,children:v.value})},_))}),children:[a.length<1&&g.jsx(tt.Row,{children:g.jsx(tt.Cell,{colSpan:i9.length,className:"tw:text-center",children:"No results found"})}),a.map(v=>g.jsx(Yje,{domain:v,editDomainRedirects:n,checkDomainHealth:r,defaultRedirects:h},v.domain))]})})]})})},Qn=(e,t)=>Kz(e,t,{serializeError:n=>n}),Zje="shlink/domainRedirects/EDIT_DOMAIN_REDIRECTS",Xje=e=>Qn(Zje,async({domain:t,redirects:n})=>{const r=await e().editDomainRedirects({domain:t,...n});return{domain:t,redirects:r}}),Iy="shlink/domainsList",$y={domains:[],filteredDomains:[],loading:!1,error:!1},a9=({domain:e,redirects:t})=>n=>n.domain!==e?n:{...n,redirects:t},o9=(e,t)=>n=>n.domain!==e?n:{...n,status:t},Qje=(e,t,n)=>{const r=Qn(`${Iy}/listDomains`,async()=>{const{data:l,defaultRedirects:f}=await e().listDomains();return{domains:l.map(u=>({...u,status:"validating"})),defaultRedirects:f}}),i=Qn(`${Iy}/checkDomainHealth`,async l=>{try{const{status:f}=await e().health({domain:l});return{domain:l,status:f==="pass"?"valid":"invalid"}}catch{return{domain:l,status:"invalid"}}}),a=Gr(`${Iy}/filterDomains`),{reducer:o}=Un({name:Iy,initialState:$y,reducers:{},extraReducers:l=>{l.addCase(r.pending,()=>({...$y,loading:!0})),l.addCase(r.rejected,(f,{error:u})=>({...$y,error:!0,errorData:Bi(u)})),l.addCase(r.fulfilled,(f,{payload:u})=>({...$y,...u,filteredDomains:u.domains})),l.addCase(i.fulfilled,({domains:f,filteredDomains:u,...h},{payload:m})=>({...h,domains:f.map(o9(m.domain,m.status)),filteredDomains:u.map(o9(m.domain,m.status))})),l.addCase(a,(f,{payload:u})=>({...f,filteredDomains:f.domains.filter(({domain:h})=>h.toLowerCase().match(u.toLowerCase()))})),l.addCase(t.fulfilled,(f,{payload:u})=>({...f,domains:f.domains.map(a9(u)),filteredDomains:f.filteredDomains.map(a9(u))})),l.addCase(n.fulfilled,(f,{payload:u})=>{u.domain===null||f.domains.some(h=>h.domain===u.domain)||f.domains.push({domain:u.domain,status:"validating",isDefault:!1,redirects:{baseUrlRedirect:null,regular404Redirect:null,invalidShortUrlRedirect:null}})})}});return{reducer:o,listDomains:r,checkDomainHealth:i,filterDomains:a}},Jje=(e,t)=>{e.serviceFactory("ManageDomains",()=>Kje),e.decorator("ManageDomains",t(["domainsList"],["filterDomains","editDomainRedirects","checkDomainHealth"])),e.serviceFactory("domainsListReducerCreator",Qje,"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",Xje,"apiClientFactory"),e.serviceFactory("checkDomainHealth",n=>n.checkDomainHealth,"domainsListReducerCreator")},s9="shlink/mercure",e3e={loading:!0,error:!1},t3e=e=>{const t=Qn(`${s9}/loadMercureInfo`,r=>{if(r&&r.realTimeUpdates&&!r.realTimeUpdates.enabled)throw new Error("Real time updates not enabled");return e().mercureInfo()}),{reducer:n}=Un({name:s9,initialState:e3e,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:a})=>({...a,loading:!1,error:!1}))}});return{loadMercureInfo:t,reducer:n}},n3e=e=>{e.serviceFactory("mercureInfoReducerCreator",t3e,"apiClientFactory"),e.serviceFactory("mercureInfoReducer",t=>t.reducer,"mercureInfoReducerCreator"),e.serviceFactory("loadMercureInfo",t=>t.loadMercureInfo,"mercureInfoReducerCreator")};function Mn(e){return D.useMemo(()=>e,[e])}function Nn(e,t){return(n,r=globalThis.console)=>(t.forEach(i=>{const a=n[i];e[i]=a}),e)}const r3e=(e,t,n,r)=>{const{mercureHubUrl:i,token:a,loading:o,error:l}=e;if(o||l||!i)return;const f=({data:m})=>n(JSON.parse(m)),u=({status:m})=>m===401&&r(),h=t.map(m=>{const v=new URL(i);v.searchParams.append("topic",m);const _=new sfe.EventSourcePolyfill(v,{headers:{Authorization:`Bearer ${a}`}});return _.onmessage=f,_.onerror=u,_});return()=>h.forEach(m=>m.close())};function Ba(e,t){const n=new Set;return r=>{const{createNewVisits:i,loadMercureInfo:a,mercureInfo:o}=r,l=Hd();return D.useEffect(()=>{const{interval:f}=o,u=_=>f?n.add(_):i([_]),h=t(l),m=r3e(o,h,u,a);if(!f)return m;const v=setInterval(()=>{i([...n]),n.clear()},f*1e3*60);return()=>{clearInterval(v),m==null||m()}},[i,a,o,l]),g.jsx(e,{...r})}}class Kr{}Il(Kr,"visits","https://shlink.io/new-visit"),Il(Kr,"orphanVisits","https://shlink.io/new-orphan-visit"),Il(Kr,"shortUrlVisits",e=>`https://shlink.io/new-visit/${e}`);const ch=Gr("shlink/visitCreation/createNewVisits",e=>({payload:{createdVisits:e}})),sm=(e,t,n)=>n==null?e.shortCode===t&&!e.domain:e.shortCode===t&&e.domain===n,i3e=(e,t)=>!e.domain&&t===Ud?!0:e.domain===t,a3e=(e,t)=>{const n=(t==null?void 0: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}},bW=e=>e.replaceAll("/","__"),r4=e=>e.replaceAll("__","/"),i4=({domain:e,shortCode:t})=>`${e??Ud}__${bW(t)}`,wW=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===Ud?null:t,shortCode:r4(n)}},a4="shlink/shortUrlDeletion",l9={shortCode:"",loading:!1,deleted:!1,error:!1},o3e=e=>Qn(`${a4}/deleteShortUrl`,async({shortCode:t,domain:n})=>(await e().deleteShortUrl({shortCode:t,domain:n}),{shortCode:t,domain:n})),_W=Gr(`${a4}/shortUrlDeleted`),s3e=e=>{const{actions:t,reducer:n}=Un({name:a4,initialState:l9,reducers:{resetDeleteShortUrl:()=>l9},extraReducers:i=>{i.addCase(e.pending,a=>({...a,loading:!0,error:!1,deleted:!1})),i.addCase(e.rejected,(a,{error:o})=>({...a,errorData:Bi(o),loading:!1,error:!0,deleted:!1})),i.addCase(e.fulfilled,(a,{payload:o})=>({...a,shortCode:o.shortCode,loading:!1,error:!1,deleted:!0}))}}),{resetDeleteShortUrl:r}=t;return{reducer:n,resetDeleteShortUrl:r}},xW="shlink/shortUrlsList",SW=5,l3e={loading:!0,error:!1},u3e=e=>Qn(`${xW}/listShortUrls`,t=>e().listShortUrls(t??{})),c3e=(e,t,n)=>Un({name:xW,initialState:l3e,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:a})=>({loading:!1,error:!1,shortUrls:a})),r.addCase(n.fulfilled,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=[a,...i.shortUrls.data.slice(0,SW-1)],i.shortUrls.pagination.totalItems+=1)}),r.addCase(t.fulfilled,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(o=>{const{shortCode:l,domain:f}=a;return sm(o,l,f)?a:o}))}),r.addCase(_W,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.filter(o=>!sm(o,a.shortCode,a.domain)),i.shortUrls.pagination.totalItems-=1)}),r.addCase(ch,(i,{payload:a})=>{i.shortUrls&&(i.shortUrls.data=i.shortUrls.data.map(o=>{var l;return((l=a.createdVisits.findLast(({shortUrl:f})=>f&&sm(o,f.shortCode,f.domain)))==null?void 0:l.shortUrl)??o}))})}}),Sj=({children:e,title:t,link:n,tooltip:r})=>{const i=D.useRef(null);return g.jsxs(g.Fragment,{children:[g.jsx(gn,{to:n,className:"tw:no-underline tw:text-inherit",ref:i,children:g.jsxs(qt,{className:Ce("tw:text-center tw:border-t-3 tw:border-t-lm-main tw:dark:border-t-dm-main tw:relative"),children:[g.jsx(Ke,{icon:Ple,size:"3x",className:"tw:absolute tw:right-[5px] tw:bottom-[5px] tw:opacity-10 tw:-rotate-45"}),g.jsx("div",{role:"heading","aria-level":5,className:"tw:text-xl tw:uppercase tw:text-placeholder tw:font-bold tw:mb-2",children:t}),g.jsx("div",{className:"tw:text-4xl tw:font-semibold",children:e})]})}),r&&g.jsx(bs,{target:i,placement:"bottom",children:r})]})},u9=({loading:e,excludeBots:t,visitsSummary:n,...r})=>g.jsx(Sj,{tooltip:n.bots!==void 0?g.jsxs(g.Fragment,{children:[t?"Plus":"Including"," ",g.jsx("b",{"data-testid":"tooltip-amount",children:Rn(n.bots)})," potential bot visits"]}):void 0,...r,children:e?"Loading...":Rn(t&&n.nonBots!==void 0?n.nonBots:n.total)}),c9=({children:e,titleLinkText:t,titleLink:n,title:r})=>g.jsxs(fr,{className:"card",children:[g.jsxs(fr.Header,{className:"tw:flex tw:justify-between tw:items-center",children:[g.jsx("span",{className:"tw:sm:hidden",children:r}),g.jsx("h5",{className:"tw:hidden tw:sm:inline",children:r}),g.jsxs(gn,{to:n,children:[t," »"]})]}),g.jsx(fr.Body,{children:e})]}),OW=Ba(({shortUrlsList:e,listShortUrls:t,tagsList:n,loadVisitsOverview:r,visitsOverview:i})=>{const{ShortUrlsTable:a,CreateShortUrl:o}=Mn(OW),{loading:l,shortUrls:f}=e,{loading:u}=n,{loading:h,nonOrphanVisits:m,orphanVisits:v}=i,_=iu(),x=wo(),w=Jn("visits");return D.useEffect(()=>{t({itemsPerPage:SW,orderBy:{field:"dateCreated",dir:"DESC"}}),r()},[t,r]),g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-4",children:[g.jsxs("div",{className:"tw:grid tw:grid-cols-1 tw:lg:grid-cols-2 tw:xl:grid-cols-4 tw:gap-4",children:[g.jsx(u9,{title:"Visits",link:`${_}/non-orphan-visits`,excludeBots:(w==null?void 0:w.excludeBots)??!1,loading:h,visitsSummary:m}),g.jsx(u9,{title:"Orphan visits",link:`${_}/orphan-visits`,excludeBots:(w==null?void 0:w.excludeBots)??!1,loading:h,visitsSummary:v}),g.jsx(Sj,{title:"Short URLs",link:`${_}/list-short-urls/1`,children:l?"Loading...":Rn((f==null?void 0:f.pagination.totalItems)??0)}),g.jsx(Sj,{title:"Tags",link:`${_}/manage-tags`,children:u?"Loading...":Rn(n.tags.length)})]}),g.jsx(c9,{title:"Create a short URL",titleLinkText:"Advanced options",titleLink:`${_}/create-short-url`,children:g.jsx(o,{basicMode:!0})}),g.jsx(c9,{title:"Recently created URLs",titleLinkText:"See all",titleLink:`${_}/list-short-urls/1`,children:g.jsx(a,{shortUrlsList:e,onTagClick:S=>x(`${_}/list-short-urls/1?tags=${encodeURIComponent(S)}`)})})]})},()=>[Kr.visits,Kr.orphanVisits]),f3e=Nn(OW,["ShortUrlsTable","CreateShortUrl"]);function d3e(e,t){e.factory("Overview",f3e),e.decorator("Overview",t(["shortUrlsList","tagsList","mercureInfo","visitsOverview"],["listShortUrls","createNewVisits","loadMercureInfo","loadVisitsOverview"]))}const CW="shlink/setShortUrlRedirectRules",f9={saving:!1,saved:!1,error:!1},h3e=e=>Qn(`${CW}/setShortUrlRedirectRules`,({shortUrl:t,data:n})=>{const{shortCode:r,domain:i}=t;return e().setShortUrlRedirectRules({shortCode:r,domain:i},n)}),p3e=e=>{const{reducer:t,actions:n}=Un({name:CW,initialState:f9,reducers:{resetSetRules:()=>f9},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:o})=>({saving:!1,saved:!1,error:!0,errorData:Bi(o)})),i.addCase(e.fulfilled,()=>({saving:!1,error:!1,saved:!0}))}}),{resetSetRules:r}=n;return{reducer:t,resetSetRules:r}},EW="shlink/getShortUrlRedirectRules",m3e={loading:!0,error:!1},v3e=e=>Qn(`${EW}/getShortUrlRedirectRules`,({shortCode:t,domain:n})=>e().getShortUrlRedirectRules({shortCode:t,domain:n})),g3e=e=>Un({name:EW,initialState:m3e,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 Zr(e){e.preventDefault()}function au(e){e.stopPropagation()}function TW(){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[AW,jW]=TW();function y3e(e,t){return e.source===t.source&&e.flags.split("").sort().join("")===t.flags.split("").sort().join("")}function uv(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 y3e(e,t);if(e===null||t===null)return!1;const i=e,a=t;if(Object.keys(i).length!==Object.keys(a).length)return!1;for(const o of r)if((o in i||o in a)&&i[o]!==a[o])return!1;for(const o in i)if(!(o in a)||i[o]!==a[o]&&!n||n&&!uv(i[o],a[o],n,r))return!1;return!0}return!1}function PW(e){return e.split(" ").filter(t=>t)}function fh(e){return{x:e.clientX,y:e.clientY}}Array();var o4=typeof window<"u",Mr=new WeakMap,bo=new WeakMap;function RW(){if(!o4)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 b3e={affectedNodes:[],coordinates:{x:0,y:0},currentTargetValue:void 0,on:jW,emit:AW,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},Ye=b3e,Gl=!1,d9,sE;function w3e(){Ye.scrollDebounceTimeout&&clearTimeout(Ye.scrollDebounceTimeout),Ye.longPressTimeout&&clearTimeout(Ye.longPressTimeout),Ye.frameIdX!==void 0&&cancelAnimationFrame(Ye.frameIdX),Ye.frameIdY!==void 0&&cancelAnimationFrame(Ye.frameIdY),Ye={affectedNodes:[],coordinates:{x:0,y:0},on:jW,emit:AW,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 MW(e){return Object.assign(Ye,e),e.initialParent.data.emit("dragStarted",Ye),Gl=!1,Ye.emit("dragStarted",Ye),Ye}function _3e(){Ye.activeState&&bc(Ye.activeState.parent,void 0,Ye),Ye.selectedState&&ic(Ye.selectedState.nodes,Ye.selectedState.parent,Ye),Ye.selectedState=Ye.activeState=void 0}function x3e(){if(Ye.pointerDown&&(Ye.pointerDown.node.el.draggable=!0),Ye.pointerDown=void 0,!Ii(Ye))return;const e=Ye.currentParent.data.config;Ii(Ye)&&e.handleEnd(Ye)}function S3e(e){e.key==="Escape"&&(Ye.selectedState&&ic(Ye.selectedState.nodes,Ye.selectedState.parent,Ye),Ye.activeState&&bc(Ye.activeState.parent,void 0,Ye),Ye.selectedState=Ye.activeState=void 0)}function O3e(e){if(!Xr(Ye))return;Gl=!0;const t=Ye.initialParent.data.config.handleEnd;t(Ye)}function C3e(e){if(!Xr(Ye))return;Zr(e);const{x:t,y:n}=fh(e);Xr(Ye)&&ww({x:t,y:n},e,Ye)}function E3e(e){if(!Ye.pointerDown||!Ye.pointerDown.validated)return;const t=Ye.pointerDown.parent.data.config;if(!(e.pointerType==="mouse"&&!RW()))if(Ii(Ye))Ii(Ye)&&h9(e,Ye);else{if(Zr(e),t.longPress&&!Ye.longPress){clearTimeout(Ye.longPressTimeout),Ye.longPress=!1;return}const n=t.draggedNodes(Ye.pointerDown);t.dragstartClasses(Ye.pointerDown.node,n,t,!0);const r=Ye.pointerDown.node.el.getBoundingClientRect(),i=tPe(Ye.pointerDown.node,Ye.pointerDown.parent,e,Ye,n,r);h9(e,i,!0)}}function T3e({parent:e,getValues:t,setValues:n,config:r={}}){var i,a,o;if(!o4)return;d9||(d9=Gb(document,{dragover:C3e,pointerdown:_3e,pointerup:x3e,keydown:S3e,drop:O3e,pointermove:E3e,pointercancel:Si(r.handlePointercancel),touchmove:h=>{Xr(Ye)&&h.cancelable&&Zr(h)},contextmenu:h=>{Ii(Ye)&&Zr(h)}})),LW(e);const[l,f]=TW(),u={getValues:t,setValues:n,config:{dragDropEffect:r.dragDropEffect??"move",dragEffectAllowed:r.dragEffectAllowed??"move",draggedNodes:U3e,dragstartClasses:V3e,handleNodeKeydown:W3e,handleDragstart:F3e,handleNodeDragover:rPe,handleParentDragover:iPe,handleNodeDrop:Y3e,handleNodeFocus:K3e,handleNodeBlur:Z3e,handlePointercancel:Q3e,handleEnd:J3e,handleDragend:X3e,handleParentFocus:j3e,handleNodePointerup:ePe,handleNodePointerover:G3e,handleParentPointerover:aPe,handleParentScroll:z3e,handleNodePointerdown:q3e,handleNodeDragenter:sPe,handleNodeDragleave:lPe,handleParentDrop:R3e,multiDrag:r.multiDrag??!1,nativeDrag:r.nativeDrag??!0,performSort:A3e,performTransfer:P3e,root:r.root??document,setupNode:N3e,setupNodeRemap:DW,reapplyDragClasses:L3e,tearDownNode:k3e,tearDownNodeRemap:D3e,remapFinished:$3e,threshold:{horizontal:0,vertical:0},...r},enabledNodes:[],abortControllers:{},privateClasses:[],on:f,emit:l};new MutationObserver(I3e).observe(e,{childList:!0}),Mr.set(e,u),(i=r.plugins)==null||i.forEach(h=>{var m,v;(v=(m=h(e))==null?void 0:m.tearDown)==null||v.call(m)}),(a=r.plugins)==null||a.forEach(h=>{var m,v;(v=(m=h(e))==null?void 0:m.tearDown)==null||v.call(m)}),(o=r.plugins)==null||o.forEach(h=>{var m,v;(v=(m=h(e))==null?void 0:m.setup)==null||v.call(m)}),M3e(e,u),yw(e,!0)}function NW(e,t,n,r,i,a){const{x:o,y:l}=fh(n),f=e.el.getBoundingClientRect();return{affectedNodes:[],ascendingDirection:!1,clonedDraggedEls:[],coordinates:{x:o,y:l},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||o-((f==null?void 0:f.left)??0),startTop:a||l-((f==null?void 0:f.top)??0),targetIndex:e.data.index,transferred:!1}}function A3e({parent:e,draggedNodes:t,targetNodes:n}){yw(e.el);const r=t.map(f=>f.data.value),i=zd(e.el,e.data),a=t[0].data.index,o=[...e.data.enabledNodes],l=[...i.filter(f=>!r.some(u=>uv(f,u)))];l.splice(n[0].data.index,0,...r),"draggedNode"in Ye&&(Ye.currentTargetValue=n[0].data.value),Oj(e.el,e.data,[...l]),e.data.config.onSort&&e.data.config.onSort({parent:{el:e.el,data:e.data},previousValues:[...i],previousNodes:[...o],nodes:[...e.data.enabledNodes],values:[...l],draggedNodes:t,previousPosition:a,position:n[0].data.index,targetNodes:n,state:Ye})}function bc(e,t,n){if(!t){n.activeState=void 0;return}n.activeState={node:t,parent:e}}function ic(e,t,n){const r=t.data.config.selectedClass;if(!n.selectedState)return;const i=Array.from(e);$l(e.map(a=>a.el),r);for(const a of i){a.el.setAttribute("aria-selected","false");const o=n.selectedState.nodes.findIndex(l=>l.el===a.el);o!==-1&&n.selectedState.nodes.splice(o,1)}}function By(e,t,n,r,i=!1){r.pointerSelection=i;for(const a of t)a.el.setAttribute("aria-selected","true"),Qf([a.el],e.data.config.selectedClass,!0);r.selectedState={nodes:t,parent:e},bc(e,n,r)}function j3e(e,t){const n=e.targetData.parent.data.enabledNodes[0];n&&(t.selectedState&&t.selectedState.parent.el!==e.targetData.parent.el?bc(e.targetData.parent,n,t):t.selectedState||bc(e.targetData.parent,n,t))}function P3e({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,initialIndex:i,targetNodes:a,state:o}){yw(n.el);const l=r.map(v=>v.data.value),f=[...zd(e.el,e.data).filter(v=>!l.some(_=>uv(v,_)))],u=zd(t.el,t.data),h=n.el===t.el&&t.data.config.sortable===!1;let m;a.length?(h?m=i:t.data.config.sortable===!1?m=t.data.enabledNodes.length:m=a[0].data.index,u.splice(m,0,...l)):(m=h?i:t.data.enabledNodes.length,u.splice(m,0,...l)),Oj(e.el,e.data,f),Oj(t.el,t.data,u),t.data.config.onTransfer&&t.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:m,state:o,targetNodes:a}),e.data.config.onTransfer&&e.data.config.onTransfer({sourceParent:e,targetParent:t,initialParent:n,draggedNodes:r,targetIndex:m,state:o,targetNodes:a||[]})}function zd(e,t){return[...t.getValues(e)]}function Oj(e,t,n){t.setValues(n,e)}function R3e(e,t){au(e.e),Gl=!0;const n=t.initialParent.data.config.handleEnd;n(t)}function LW(e){const t=Mr.get(e);t&&t.abortControllers.mainParent&&t.abortControllers.mainParent.abort()}function Xr(e){return"draggedNode"in e&&!!e.draggedNode}function Ii(e){return"synthDragging"in e&&!!e.synthDragging}function M3e(e,t){t.abortControllers.mainParent=Gb(e,{dragover:Uy(t.config.handleParentDragover),handleParentPointerover:t.config.handleParentPointerover,scroll:Uy(t.config.handleParentScroll),drop:Uy(t.config.handleParentDrop),hasNestedParent:n=>{const r=Mr.get(n.target);r&&(r.nestedParent=n.detail.parent)},focus:Uy(t.config.handleParentFocus)}),t.config.externalDragHandle&&t.config.externalDragHandle.el&&t.config.externalDragHandle.callback&&(t.abortControllers.externalDragHandle=Gb(t.config.externalDragHandle.el,{pointerdown:n=>{if(!t.config.externalDragHandle||!t.config.externalDragHandle.callback)return;const r=t.config.externalDragHandle.callback();if(!_w(r)){console.warn("No draggable item found from external drag handle callback");return}const i=bo.get(r);if(!i)return;const a=r.parentNode;if(!(a instanceof HTMLElement))return;const o=Mr.get(a);o&&(Ye.pointerDown={parent:{el:a,data:o},node:{el:r,data:i},validated:!0},r.draggable=!0)}}))}function N3e(e){var t;const n=e.parent.data.config;e.node.data.abortControllers.mainNode=Gb(e.node.el,{keydown:Si(n.handleNodeKeydown),dragstart:Si(n.handleDragstart),dragover:Si(n.handleNodeDragover),dragenter:Si(n.handleNodeDragenter),dragleave:Si(n.handleNodeDragleave),dragend:Si(n.handleDragend),drop:Si(n.handleNodeDrop),focus:Si(n.handleNodeFocus),blur:Si(n.handleNodeBlur),pointerup:Si(n.handleNodePointerup),pointercancel:Si(n.handlePointercancel),pointerdown:Si(n.handleNodePointerdown),handleNodePointerover:n.handleNodePointerover,touchmove:r=>{Xr(Ye)&&r.cancelable&&Zr(r)},contextmenu:r=>{Ii(Ye)&&Zr(r)}}),e.node.el.draggable=!0,n.reapplyDragClasses(e.node.el,e.parent.data),(t=e.parent.data.config.plugins)==null||t.forEach(r=>{var i,a;(a=(i=r(e.parent.el))==null?void 0:i.setupNode)==null||a.call(i,e)})}function DW(e){var t;bo.set(e.node.el,e.node.data),(t=e.parent.data.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent.el))==null?void 0:r.setupNodeRemap)==null||i.call(r,e)})}function L3e(e,t){if(!Xr(Ye))return;const n=Ii(Ye)?t.config.synthDropZoneClass:t.config.dropZoneClass;Ye.draggedNode.el===e&&Qf([e],n,!0)}function D3e(e){var t;(t=e.parent.data.config.plugins)==null||t.forEach(n=>{var r,i;(i=(r=n(e.parent.el))==null?void 0:r.tearDownNodeRemap)==null||i.call(r,e)})}function k3e(e){var t,n,r,i,a;(t=e.parent.data.config.plugins)==null||t.forEach(o=>{var l,f;(f=(l=o(e.parent.el))==null?void 0:l.tearDownNode)==null||f.call(l,e)}),e.node.el.draggable=!1,(r=(n=e.node.data)==null?void 0:n.abortControllers)!=null&&r.mainNode&&((a=(i=e.node.data)==null?void 0:i.abortControllers)==null||a.mainNode.abort())}function I3e(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)||!Mr.get(t)||yw(t)}function yw(e,t){var n;const r=Mr.get(e);if(!r)return;r.privateClasses=Array.from(e.classList);const i=[],a=r.config;for(let f=0;f<e.children.length;f++){const u=e.children[f];if(!_w(u)||u.id==="dnd-dragged-node-clone")continue;const h=bo.get(u);(t||!h)&&a.tearDownNode({parent:{el:e,data:r},node:{el:u,data:h}}),!a.disabled&&(!a.draggable||a.draggable&&a.draggable(u))&&i.push(u)}if(i.length!==r.getValues(e).length&&!a.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=r.getValues(e),l=[];for(let f=0;f<i.length;f++){const u=i[f],h=bo.get(u);if(a.draggableValue&&!a.draggableValue(o[f]))continue;const m=Object.assign(h??{privateClasses:[],abortControllers:{}},{value:o[f],index:f});if(!Xr(Ye)&&Ye.activeState&&uv(Ye.activeState.node.data.value,m.value)&&bc({data:r,el:e},{el:u,data:m},Ye),Xr(Ye)&&uv(Ye.draggedNode.data.value,m.value)){Ye.draggedNode.data=m,Ye.draggedNode.el=u;const v=Ye.draggedNodes.find(_=>_.data.value===m.value);v&&(v.el=u)}l.push({el:u,data:m}),(t||!h)&&a.setupNode({parent:{el:e,data:r},node:{el:u,data:m}}),DW({parent:{el:e,data:r},node:{el:u,data:m}})}Mr.set(e,{...r,enabledNodes:l}),a.remapFinished(r),(n=r.config.plugins)==null||n.forEach(f=>{var u,h;(h=(u=f(e))==null?void 0:u.remapFinished)==null||h.call(u)})}function $3e(){Ye.remapJustFinished=!0,"draggedNode"in Ye&&(Ye.affectedNodes=[])}function B3e(e){return!!e.targetData.parent.data.config.nativeDrag}function U3e(e){var t;if(e.parent.data.config.multiDrag){if(Ye.selectedState)return[e.node,...(t=Ye.selectedState)==null?void 0:t.nodes.filter(n=>n.el!==e.node.el)]}else return[e.node];return[]}function z3e(e){Xr(Ye)&&(Ye.emit("scrollStarted",Ye),!Ii(Ye)&&(Ye.preventEnter=!0,sE&&clearTimeout(sE),sE=setTimeout(()=>{Ye.preventEnter=!1,Ye.emit("scrollEnded",Ye)},100)))}function F3e(e,t){const n=e.targetData.parent.data.config;if(!n.nativeDrag||!B3e(e)||!kW({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:n})){Zr(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=H3e(e,r);if(n.onDragstart){const a={parent:e.targetData.parent,values:zd(e.targetData.parent.el,e.targetData.parent.data),draggedNode:i.draggedNode,draggedNodes:i.draggedNodes,position:i.initialIndex,state:i};n.onDragstart(a)}}function q3e(e,t){var n,r;if(au(e.e),t.pointerDown={parent:e.targetData.parent,node:e.targetData.node,validated:!1},!kW({x:e.e.clientX,y:e.e.clientY,node:e.targetData.node,config:e.targetData.parent.data.config}))return;t.pointerDown.validated=!0,nPe(e,t,e.targetData.node);const i=e.targetData.parent.data;let a=[e.targetData.node];const o=e.e.ctrlKey||e.e.metaKey,l=e.e.shiftKey,f=e.targetData.node;if(o&&i.config.multiDrag){t.selectedState?t.selectedState.nodes.findIndex(u=>u.el===f.el)===-1?a=[...t.selectedState.nodes,f]:a=t.selectedState.nodes.filter(u=>u.el!==f.el):a=[f],By(e.targetData.parent,a,e.targetData.node,t,!0);return}if(l&&i.config.multiDrag){const u=e.targetData.parent.data.enabledNodes;if(t.selectedState&&t.activeState)if(t.selectedState.parent.el!==e.targetData.parent.el){ic(t.selectedState.nodes,t.selectedState.parent,t),t.selectedState=void 0;for(let h=0;h<=f.data.index;h++)a.push(u[h])}else{const[h,m]=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];a=u.slice(h,m+1)}else for(let h=0;h<=f.data.index;h++)a.push(u[h]);By(e.targetData.parent,a,e.targetData.node,t,!0);return}(r=(n=t.selectedState)==null?void 0:n.nodes)!=null&&r.length?t.selectedState.nodes.findIndex(u=>u.el===e.targetData.node.el)===-1&&(t.selectedState.parent.el!==e.targetData.parent.el?ic(t.selectedState.nodes,e.targetData.parent,t):i.config.multiDrag&&RW()?a.push(...t.selectedState.nodes):ic(t.selectedState.nodes,e.targetData.parent,t),By(e.targetData.parent,a,e.targetData.node,t,!0)):By(e.targetData.parent,[e.targetData.node],e.targetData.node,t,!0)}function V3e(e,t,n,r=!1){Qf(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),setTimeout(()=>{$l(t.map(i=>i.el),r?n.synthDraggingClass:n.draggingClass),Qf(t.map(i=>i.el),r?n.synthDragPlaceholderClass:n.dragPlaceholderClass),Qf(t.map(i=>i.el),r?n.synthDropZoneClass:n.dropZoneClass),$l(t.map(i=>i.el),n.selectedClass)})}function H3e(e,t){au(e.e);const n=MW(NW(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 a=document.createElement("div");a.setAttribute("id","dnd-dragged-node-clone"),a.setAttribute("popover","manual");for(const l of t){const f=l.el.cloneNode(!0);f.id=l.el.id+"-clone",f.style.pointerEvents="none",a.appendChild(f)}const{width:o}=t[0].el.getBoundingClientRect();Object.assign(a.style,{display:"flex",flexDirection:"column",width:`${o}px`,position:"absolute",pointerEvents:"none",zIndex:"9999",left:"-9999px",boxSizing:"border-box",background:"transparent",overflow:"hidden"}),e.targetData.parent.el.appendChild(a),a.showPopover(),a.getBoundingClientRect(),i=a,e.e.dataTransfer.setDragImage(i,e.e.offsetX,e.e.offsetY)}}setTimeout(()=>{i==null||i.remove()})}return n}function kW({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 a=r.root.elementFromPoint(e,t);if(!a)return!1;for(const o of Array.from(i))if(a===o||o.contains(a))return!0;return!1}function W3e(e){}function G3e(e){e.detail.targetData.parent.el===e.detail.state.currentParent.el?$W(e.detail,e.detail.state):bw(e.detail,e.detail.state)}function Y3e(e,t){const n=e.targetData.parent.data.config;n.nativeDrag&&(au(e.e),Gl=!0,n.handleEnd(t))}function K3e(e){e.e.target!==e.e.currentTarget&&Ye.pointerDown&&(Ye.pointerDown.node.el.draggable=!1)}function Z3e(e){e.e.target!==e.e.currentTarget&&Ye.pointerDown&&(Ye.pointerDown.node.el.draggable=!0)}function X3e(e,t){const n=e.targetData.parent.data.config;if(n.nativeDrag){if(Zr(e.e),au(e.e),Gl){Gl=!1;return}n.handleEnd(t)}}function Q3e(e,t){var n;if(!Ii(t))return;if(Zr(e.e),Gl){Gl=!1;return}const r=(n=Mr.get(t.initialParent.el))==null?void 0:n.config;r!=null&&r.onDragend&&r.onDragend({parent:t.currentParent,values:zd(t.currentParent.el,t.currentParent.data),draggedNode:t.draggedNode,draggedNodes:t.draggedNodes,state:t}),r==null||r.handleEnd(t)}function J3e(e){var t,n,r,i,a;e.draggedNode&&(e.draggedNode.el.draggable=!0);const o=e.draggedNodes.map(w=>w.el),l=e.initialParent.data,f=Ii(e),u=(t=Mr.get(e.initialParent.el))==null?void 0:t.config,h=f?u==null?void 0:u.synthDropZoneClass:u==null?void 0:u.dropZoneClass,m=(n=l==null?void 0:l.config)==null?void 0:n.longPressClass,v=f?(r=l==null?void 0:l.config)==null?void 0:r.synthDragPlaceholderClass:(i=l==null?void 0:l.config)==null?void 0:i.dragPlaceholderClass,_=e.originalZIndex;Ii(e)&&(e.clonedDraggedNode&&e.clonedDraggedNode.remove(),e.longPressTimeout&&clearTimeout(e.longPressTimeout)),Cj(e),e.lastScrollDirectionX=void 0,e.lastScrollDirectionY=void 0,e.preventEnter=!1,e.scrollDebounceTimeout&&(clearTimeout(e.scrollDebounceTimeout),e.scrollDebounceTimeout=void 0),_!==void 0&&e.draggedNode&&(e.draggedNode.el.style.zIndex=_),requestAnimationFrame(()=>{$l(o,h),$l(o,m),$l(o,v)}),ic(e.draggedNodes,e.currentParent,e),bc(e.currentParent,void 0,e);const x={...e};(a=u==null?void 0:u.onDragend)==null||a.call(u,{parent:x.currentParent,values:zd(x.currentParent.el,x.currentParent.data),draggedNode:x.draggedNode,draggedNodes:x.draggedNodes,state:x}),e.emit("dragEnded",x),w3e()}function ePe(e,t){au(e.e),!t.pointerSelection&&t.selectedState&&ic(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,$l(e.targetData.parent.data.enabledNodes.map(r=>r.el),n.longPressClass),Xr(t)&&n.handleEnd(t)}function tPe(e,t,n,r,i,a){var o,l;const f=t.data.config;let u,h;const m=["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"],v=(w,S)=>{const O=window.getComputedStyle(w);m.forEach(C=>{S.style[C]=O[C]})},_=(w,S={})=>{Object.assign(w.style,{position:"absolute",zIndex:"9999",pointerEvents:"none",willChange:"transform",boxSizing:"border-box",opacity:"0",overflow:"hidden",width:`${a.width}px`,height:`${a.height}px`,...S})};if(f.synthDragImage)h=f.synthDragImage(e,t,n,i),u=h.dragImage,u.setAttribute("popover","manual"),_(u);else if(!f.multiDrag||i.length===1)u=e.el.cloneNode(!0),v(e.el,u),u.setAttribute("popover","manual"),_(u);else{const w=document.createElement("div");w.setAttribute("popover","manual"),i.forEach(S=>{const O=S.el.cloneNode(!0);v(S.el,O),O.style.pointerEvents="none",O.style.margin="0",w.append(O)}),w.style.display="flex",w.style.flexDirection="column",w.style.padding="0",w.style.margin="0",w.style.position="absolute",w.style.zIndex="9999",w.style.pointerEvents="none",u=w}u.id="dnd-dragged-node-clone",t.el.appendChild(u),u.showPopover();const x={clonedDraggedEls:[],clonedDraggedNode:u,synthDragScrolling:!1,synthDragging:!0,rootScrollWidth:(o=document.scrollingElement)==null?void 0:o.scrollWidth,rootScrollHeight:(l=document.scrollingElement)==null?void 0:l.scrollHeight};return MW({...NW(e,t,n,i,h==null?void 0:h.offsetX,h==null?void 0:h.offsetY),...x})}function nPe(e,t,n){const r=e.targetData.parent.data.config;t.longPressTimeout=setTimeout(()=>{t&&(t.longPress=!0,r.longPressClass&&e.e.cancelable&&Qf([n.el],r.longPressClass),Zr(e.e))},r.longPressDuration||1e3)}function Cj(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 IW(e,t=!1){var n;const{x:r,y:i}=e.coordinates,a=e.startLeft??0,o=e.startTop??0,l=window.scrollX??0,f=window.scrollY??0,u=r-a+l,h=i-o+f;e.clonedDraggedNode.style.transform=`translate3d(${u}px, ${h}px, 0px)`,t&&(e.clonedDraggedNode.style.opacity="1",$l(e.draggedNodes.map(m=>m.el),(n=e.initialParent.data.config)==null?void 0:n.longPressClass))}function h9(e,t,n=!1){const r=fh(e);t.coordinates.x=r.x,t.coordinates.y=r.y,IW(t,n),t.scrollDebounceTimeout&&(clearTimeout(t.scrollDebounceTimeout),t.scrollDebounceTimeout=void 0),t.scrollDebounceTimeout=setTimeout(()=>{Ii(t)&&ww(t.coordinates,e,t)},16);const i=dPe(r);if(!i){document.dispatchEvent(new CustomEvent("handleRootPointerover",{detail:{e,state:t}}));return}const a={e,targetData:i,state:t};"node"in i?i.node.el.dispatchEvent(new CustomEvent("handleNodePointerover",{detail:a})):i.parent.el.dispatchEvent(new CustomEvent("handleParentPointerover",{detail:a}))}function rPe(e,t){var n;if(!e.targetData.parent.data.config.nativeDrag)return;const{x:r,y:i}=fh(e.e);t.coordinates.y=i,t.coordinates.x=r,Zr(e.e),au(e.e),Xr(t)&&ww({x:r,y:i},e.e,t),e.targetData.parent.el===((n=t.currentParent)==null?void 0:n.el)?$W(e,t):bw(e,t)}function iPe(e,t){if(!e.targetData.parent.data.config.nativeDrag)return;Zr(e.e),au(e.e);const{x:n,y:r}=fh(e.e);Xr(t)&&ww({x:n,y:r},e.e,t),bw(e,t)}function aPe(e){e.detail.targetData.parent.el!==e.detail.state.currentParent.el&&bw(e.detail,e.detail.state)}function oPe({currentParent:e,targetParent:t,initialParent:n,draggedNodes:r,state:i}){if(t.el===e.el)return!1;const a=t.data.config;if(r[0].el.contains(t.el)||a.dropZone===!1)return!1;const o=n.data.config;return a.accepts?a.accepts(t,n,e,i):!(!a.group||a.group!==o.group)}function sPe(e,t){Zr(e.e)}function lPe(e,t){Zr(e.e)}function uPe(e,t,n,r){var i;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!==((i=t.currentParent)==null?void 0:i.el)||e.targetData.parent.data.config.sortable===!1||e.targetData.node.el.contains(t.draggedNodes[0].el))return!1;const a=e.targetData.node.el.getBoundingClientRect(),o=t.draggedNode.el.getBoundingClientRect(),l=a.y-o.y,f=a.x-o.x;let u;Math.abs(l)>Math.abs(f)?u=l>0?"above":"below":u=f>0?"left":"right";const h=t.currentParent.data.config.threshold;switch(u){case"left":if(n>a.x+a.width*h.horizontal)return t.incomingDirection="left",!0;break;case"right":if(n<a.x+a.width*(1-h.horizontal))return t.incomingDirection="right",!0;break;case"above":if(r>a.y+a.height*h.vertical)return t.incomingDirection="above",!0;break;case"below":if(r<a.y+a.height*(1-h.vertical))return t.incomingDirection="below",!0;break}return!1}function $W(e,t){const{x:n,y:r}=fh(e.e);if(!uPe(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(a=>i[0]<=a.data.index&&a.data.index<=i[1]&&a.el!==t.draggedNode.el),e.targetData.parent.data.config.performSort({parent:e.targetData.parent,draggedNodes:t.draggedNodes,targetNodes:[e.targetData.node]})}function Si(e){function t(n){const r=bo.get(n);if(!r)return;const i=Mr.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},Ye)}}function bw(e,t){Zr(e.e),oPe({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 Uy(e){function t(n){const r=Mr.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},Ye)}}function Qf(e,t,n=!1){function r(i,a){bo.set(i,a)}for(const i of e){const a=bo.get(i),o=cPe(i,t,a,n);o&&r(i,o)}}function cPe(e,t,n,r=!1){if(!t)return;const i=PW(t);if(!i.length)return;if(!n){e.classList.add(...i);return}const a=[];for(const o of i)e.classList.contains(o)?e.classList.contains(o)&&r===!1&&a.push(o):e.classList.add(o);return n.privateClasses=a,n}function $l(e,t){if(!t)return;const n=PW(t);if(n.length)for(const r of e){if(!_w(r)){r.classList.remove(...n);continue}const i=bo.get(r)||Mr.get(r);if(i)for(const a of n)i.privateClasses.includes(a)||r.classList.remove(a)}}function p9(e,t,n,r,i){const a=i.axis==="x",o=e===document.scrollingElement,l=a?"scrollLeft":"scrollTop",f=a?"clientWidth":"clientHeight",u=a?"offsetWidth":"offsetHeight",h=a?"scrollWidth":"scrollHeight",m=a?t.clientX:t.clientY,v=a?r.left:r.top,_=a?n.overflowX:n.overflowY;if(o){const x=e[l],w=e[f],S=x>0,O=x+w<(a?i.state.rootScrollWidth||0:e[h]);return a?{left:S&&m<w*.075,right:O&&m>w*(1-.075)}:{up:S&&m<w*.075,down:O&&m>w*(1-.075)}}if((_==="auto"||_==="scroll")&&e!==document.body&&e!==document.documentElement){const x=e[h],w=e[u],S=e[l],O=S>0,C=S<x-w;return a?{left:O&&m<v+w*.075,right:C&&m>v+w*(1-.075)}:{up:O&&m<v+w*.075,down:C&&m>v+w*(1-.075)}}return a?{left:!1,right:!1}:{up:!1,down:!1}}function fPe(e,t,n,r){if(!Xr(n)||!n.draggedNode)return;n.preventEnter=!0;const i=r.axis==="x",a=r.direction==="positive"?1:-1,o=20,l=i?"lastScrollDirectionX":"lastScrollDirectionY",f=i?"frameIdX":"frameIdY";n[f]!==void 0&&(cancelAnimationFrame(n[f]),n[f]=void 0),n[l]=r.direction;const u=()=>{if(!Xr(n)||!n.draggedNode){n[f]!==void 0&&(cancelAnimationFrame(n[f]),n[f]=void 0);return}const h=i?"scrollLeft":"scrollTop",m=i?"clientWidth":"clientHeight",v=i?"scrollWidth":"scrollHeight",_=e[h],x=e[m],w=e[v];if(!(a>0?_+x<w:_>0)){n[f]=void 0,n[l]=void 0;return}e[h]+=o*a,Ii(n)&&IW(n),n[f]=requestAnimationFrame(u)};n[f]=requestAnimationFrame(u)}function m9(e,t,n){const r=e.getBoundingClientRect();return t>=r.left&&t<=r.right&&n>=r.top&&n<=r.bottom}function ww(e,t,n){if(!Xr(n)||!n.draggedNode)return;Cj(n);const{x:r,y:i}=e;let a=!1;const o=(f,u,h)=>{fPe(h,t,n,{axis:f,direction:u}),a=!0},l=f=>{const u=window.getComputedStyle(f),h=f.getBoundingClientRect(),m=p9(f,t,u,h,{axis:"x",state:n}),v=p9(f,t,u,h,{axis:"y"});(m.left||m.right)&&(n.lastScrollContainerX=f,o("x",m.right?"positive":"negative",f)),(v.up||v.down)&&(n.lastScrollContainerY=f,o("y",v.down?"positive":"negative",f))};if(n.lastScrollContainerX&&m9(n.lastScrollContainerX,r,i)&&l(n.lastScrollContainerX),!a&&n.lastScrollContainerY&&m9(n.lastScrollContainerY,r,i)&&l(n.lastScrollContainerY),!a){let f=document.elementFromPoint(r,i);for(;f&&!(a&&n.lastScrollContainerX&&n.lastScrollContainerY);)f instanceof HTMLElement&&l(f),f=f.parentElement}if(!a){const f=document.scrollingElement;f instanceof HTMLElement&&l(f)}a||Cj(n)}function dPe(e){let t=document.elementFromPoint(e.x,e.y);if(!_w(t))return;let n,r=!0;for(;t&&r;){if(bo.has(t)||Mr.has(t)){r=!1,n=Mr.has(t);break}t=t.parentNode}if(n){const i=Mr.get(t);return i?{parent:{el:t,data:i}}:void 0}else{const i=bo.get(t);if(!i)return;const a=Mr.get(t.parentNode);return a?{node:{el:t,data:i},parent:{el:t.parentNode,data:a}}:void 0}}function _w(e){return e instanceof HTMLElement&&e.parentNode instanceof HTMLElement}function Gb(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 hPe(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 pPe(e,t){const n=hPe(e);n&&t(n)}var Yb=new WeakMap;function mPe(e){const t=Yb.get(e);return t?t[0]:(console.warn("No values found for parent element"),[])}function vPe(e,t){const n=Yb.get(t);n&&n[1](e),Yb.set(t,[e,n[1]])}function gPe(e,t){return n=>{Yb.set(n,t),T3e({parent:n,getValues:mPe,setValues:vPe,config:e})}}function v9(e){o4&&(Array.isArray(e)||(e=[e]),e.forEach(t=>{const{parent:n,state:r,...i}=t;pPe(n,gPe(i,r))}))}function yPe(e,t={}){const n=D.useRef(null),[r,i]=D.useState(e);function a(o={}){v9({parent:n,state:[r,i],...o})}return D.useEffect(()=>{v9({parent:n,state:[r,i],...t})},[r]),D.useEffect(()=>()=>{n.current&&LW(n.current)},[]),[n,r,i,a]}const xw=()=>{const e=wo(),t=iu(),n=Gd(),r=D.useMemo(()=>{const{orderBy:a,tags:o,excludeBots:l,excludeMaxVisitsReached:f,excludePastValidUntil:u,...h}=n,m=a?vse(a):void 0,v=(o==null?void 0:o.split(","))??[];return{...h,orderBy:m,tags:v,excludeBots:l!==void 0?l==="true":void 0,excludeMaxVisitsReached:f!==void 0?f==="true":void 0,excludePastValidUntil:u!==void 0?u==="true":void 0}},[n]),i=D.useCallback(a=>{const o={...r,...a},{orderBy:l,tags:f,excludeBots:u,excludeMaxVisitsReached:h,excludePastValidUntil:m,...v}=o,_={...v,orderBy:l&&mse(l),tags:f.length>0?f.join(","):void 0,excludeBots:iE(u),excludeMaxVisitsReached:iE(h),excludePastValidUntil:iE(m)},x=w3(_),w=x?`?${x}`:"";e(`${t}/list-short-urls/1${w}`)},[r,e,t]);return[r,i]},s4=()=>{const{domain:e}=Gd(),{shortCode:t=""}=Hd();return D.useMemo(()=>({shortCode:r4(t),domain:e}),[e,t])},Sw=()=>{const e=pse();return g.jsx(R1,{size:"lg",className:"tw:[&]:p-1 tw:mr-4",onClick:e,"aria-label":"Go back",children:g.jsx(Ke,{icon:yJ})})},bPe={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"},wPe={android:"Android",ios:"iOS",desktop:"Desktop"},_Pe=({deviceType:e,onDeviceTypeChange:t})=>g.jsxs(D3,{label:"Device type:",value:e,onChange:n=>t(n.target.value),hiddenRequired:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select type -"}),Object.entries(wPe).map(([n,r])=>g.jsx("option",{value:n,children:r},n))]}),l4=({value:e,onValueChange:t,label:n,placeholder:r})=>g.jsx(ua,{label:`${n}:`,value:e??"",onChange:i=>t(i.target.value),placeholder:r,hiddenRequired:!0}),xPe=({language:e,onLanguageChange:t})=>g.jsx(l4,{value:e,onValueChange:t,label:"Language",placeholder:"en-US / en"}),SPe=({name:e,value:t,onNameChange:n,onValueChange:r})=>g.jsxs(g.Fragment,{children:[g.jsx(ua,{label:"Param name:",value:e??"",onChange:i=>n(i.target.value),placeholder:"hello",hiddenRequired:!0}),g.jsx(ua,{label:"Param value:",value:t??"",onChange:i=>r(i.target.value),placeholder:"world",hiddenRequired:!0})]}),OPe=({ipAddress:e,onIpAddressChange:t})=>g.jsx(l4,{value:e,onValueChange:t,label:"IP address",placeholder:"192.168.1.10"}),CPe=({countryCode:e,onCountryCodeChange:t})=>g.jsxs(D3,{label:"Country:",value:e,onChange:n=>t(n.target.value),hiddenRequired:!0,children:[!e&&g.jsx("option",{value:"",children:"- Select country -"}),Object.entries(bPe).map(([n,r])=>g.jsx("option",{value:n,children:r},n))]}),EPe=({cityName:e,onCityNameChange:t})=>g.jsx(l4,{value:e,onValueChange:t,label:"City name",placeholder:"New York"}),TPe=({condition:e,onConditionChange:t,onDelete:n})=>{const r=D.useCallback(u=>t({type:u,matchValue:"",matchKey:null}),[t]),i=D.useCallback(u=>t({...e,matchValue:u}),[e,t]),a=D.useCallback(u=>t({...e,matchKey:u}),[e,t]),o=yo("ipRedirectCondition"),l=yo("geolocationRedirectCondition"),f=D.useMemo(()=>{const u={device:"Device type",language:"Language","query-param":"Query param"};return o&&(u["ip-address"]="IP address"),l&&(u["geolocation-country-code"]="Country (geolocation)",u["geolocation-city-name"]="City name (geolocation)"),u},[l,o]);return g.jsxs("div",{className:Ce("tw:flex tw:flex-col tw:gap-2","tw:border tw:border-lm-border tw:dark:border-dm-border","tw:rounded-md tw:relative tw:p-4 tw:h-full"),children:[g.jsxs("div",{children:[g.jsx(Pn,{variant:"secondary","aria-label":"Remove condition",onClick:n,className:Ce("tw:absolute tw:-top-3.5 tw:-right-3.5 tw:[&]:px-2","tw:[&]:rounded-full tw:bg-lm-primary tw:dark:bg-dm-primary"),children:g.jsx(Ke,{icon:c1})}),g.jsx(D3,{label:"Type:",value:e.type,onChange:u=>r(u.target.value),hiddenRequired:!0,children:Object.entries(f).map(([u,h])=>g.jsx("option",{value:u,children:h},u))})]}),e.type==="device"&&g.jsx(_Pe,{deviceType:e.matchValue,onDeviceTypeChange:i}),e.type==="language"&&g.jsx(xPe,{language:e.matchValue,onLanguageChange:i}),e.type==="query-param"&&g.jsx(SPe,{value:e.matchValue,name:e.matchKey??"",onNameChange:a,onValueChange:i}),e.type==="ip-address"&&g.jsx(OPe,{ipAddress:e.matchValue,onIpAddressChange:i}),e.type==="geolocation-country-code"&&g.jsx(CPe,{countryCode:e.matchValue,onCountryCodeChange:i}),e.type==="geolocation-city-name"&&g.jsx(EPe,{cityName:e.matchValue,onCityNameChange:i})]})},BW=({isOpen:e,onClose:t,onSave:n,initialData:r})=>{const[i,a]=D.useState(r??{longUrl:"",conditions:[]}),o=D.useCallback(()=>{i&&n(i),t()},[n,i,t]),l=D.useCallback(()=>a(({longUrl:v,conditions:_})=>({longUrl:v,conditions:[..._,{type:"device",matchValue:"",matchKey:null}]})),[]),f=D.useCallback((v,_)=>a(({longUrl:x,conditions:w})=>{const S=[...w];return S[v]=_,{longUrl:x,conditions:S}}),[]),u=D.useCallback(v=>a(({longUrl:_,conditions:x})=>{const w=[...x];return w.splice(v,1),{longUrl:_,conditions:w}}),[]),h=D.useRef(null),m=D.useCallback(()=>a(r??{longUrl:"",conditions:[]}),[r]);return D.useEffect(()=>{const v=new MutationObserver(()=>{h.current&&e&&(h.current.focus(),v.disconnect())});return v.observe(document.body,{childList:!0,subtree:!0}),()=>v.disconnect()},[e]),g.jsxs(Ql,{size:"xl",title:"Redirect rule",open:e,onClose:t,onClosed:m,onConfirm:o,confirmDisabled:i.conditions.length===0,confirmText:"Confirm",children:[g.jsx(ua,{label:"Long URL:",type:"url",placeholder:"https://www.example.com",value:i.longUrl,onChange:v=>a(_=>({..._,longUrl:v.target.value})),hiddenRequired:!0,ref:h}),g.jsx("hr",{}),g.jsxs("div",{className:"tw:flex tw:justify-between",children:[g.jsx("b",{children:"Conditions:"}),g.jsx(Pn,{className:"tw:[&]:px-1.5",variant:"secondary","aria-label":"Add condition",onClick:l,children:g.jsx(Ke,{icon:yv})})]}),i.conditions.length===0&&g.jsx("div",{className:"tw:text-center",children:g.jsx("i",{children:"Add conditions..."})}),i.conditions.length>0&&g.jsx("div",{className:"tw:pr-3 tw:mt-6 tw:grid tw:grid-cols-1 tw:md:grid-cols-2 tw:lg:grid-cols-3 tw:gap-6",children:i.conditions.map((v,_)=>g.jsx(TPe,{condition:v,onConditionChange:x=>f(_,x),onDelete:()=>u(_)},`${_}_${v.type}`))})]})},APe=({priority:e,isLast:t,redirectRule:n,onDelete:r,onMoveUp:i,onMoveDown:a,onUpdate:o})=>{const{flag:l,setToTrue:f,setToFalse:u}=Wt(!1,!0);return g.jsxs(qt,{children:[g.jsxs("div",{className:"tw:flex tw:align-center tw:gap-4",children:[g.jsx("div",{className:"tw:flex tw:flex-col tw:my-auto tw:hidden tw:md:block tw:cursor-grab drag-n-drop-handler",children:g.jsx(Ke,{icon:CJ})}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:my-auto",children:[g.jsx(Pn,{variant:"secondary","aria-label":`Move rule with priority ${e} up`,disabled:e===1,onClick:i,className:"tw:[&]:px-2 tw:rounded-b-none tw:mb-[-1px]",children:g.jsx(Ke,{icon:BJ})}),g.jsx(Pn,{variant:"secondary","aria-label":`Move rule with priority ${e} down`,disabled:t,onClick:a,className:"tw:[&]:px-2 tw:rounded-t-none",children:g.jsx(Ke,{icon:DJ})})]}),g.jsxs("div",{className:"tw:grow",children:[g.jsxs("div",{className:"tw:mb-2",children:[g.jsx("b",{children:"Long URL:"})," ",g.jsx(aa,{href:n.longUrl,"data-testid":"rule-long-url"})]}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:lg:flex-row tw:gap-2",children:[g.jsx("b",{children:"Conditions:"}),n.conditions.map((h,m)=>g.jsxs("div",{className:"tw:rounded-sm tw:bg-gray-600 tw:px-1 tw:text-white",children:[h.type==="device"&&g.jsxs(g.Fragment,{children:["Device is ",h.matchValue]}),h.type==="language"&&g.jsxs(g.Fragment,{children:[h.matchValue," language is accepted"]}),h.type==="query-param"&&g.jsxs(g.Fragment,{children:["Query string contains ",h.matchKey,"=",h.matchValue]}),h.type==="ip-address"&&g.jsxs(g.Fragment,{children:["IP address matches ",h.matchValue]}),h.type==="geolocation-country-code"&&g.jsxs(g.Fragment,{children:["Country code is ",h.matchValue]}),h.type==="geolocation-city-name"&&g.jsxs(g.Fragment,{children:["City name is ",h.matchValue]})]},`${h.type}_${m}`))]})]}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:sm:flex-row tw:gap-1 tw:my-auto",children:[g.jsx(Pn,{className:"tw:[&]:px-1.5",variant:"secondary","aria-label":`Edit rule with priority ${e}`,onClick:f,children:g.jsx(Ke,{icon:DB})}),g.jsx(Pn,{className:"tw:[&]:px-2",variant:"danger","aria-label":`Delete rule with priority ${e}`,onClick:r,children:g.jsx(Ke,{icon:ZQ})})]})]}),g.jsx(BW,{onSave:o,isOpen:l,onClose:u,initialData:n})]})},jPe=({shortUrlRedirectRules:e,getShortUrlRedirectRules:t,getShortUrlsDetails:n,shortUrlsDetails:r,setShortUrlRedirectRules:i,shortUrlRedirectRulesSaving:a,resetSetRules:o})=>{const l=s4(),{shortUrls:f}=r,u=l&&(f==null?void 0:f.get(l)),[h,m,v]=yPe([],{dragHandle:".drag-n-drop-handler",dropZoneClass:"tw:opacity-25"}),{saving:_,saved:x,errorData:w}=a,{flag:S,setToFalse:O,setToTrue:C}=Wt(!1,!0),T=D.useCallback(H=>v((G=[])=>[...G,H]),[v]),j=D.useCallback(H=>v((G=[])=>{const te=[...G];return te.splice(H,1),te}),[v]),P=D.useCallback((H,G)=>v((te=[])=>{const ie=[...te];return ie[H]=G,ie}),[v]),R=D.useCallback((H,G)=>v((te=[])=>{if(!te[G])return te;const ie=[...te],X=ie[G];return ie[G]=ie[H],ie[H]=X,ie}),[v]),$=D.useCallback(H=>R(H,H-1),[R]),q=D.useCallback(H=>R(H,H+1),[R]),K=D.useCallback(H=>{H.preventDefault(),m&&i({shortUrl:l,data:{redirectRules:m}})},[l,m,i]);return D.useEffect(()=>(t(l),n([l]),o),[t,n,l,o]),D.useEffect(()=>{e.redirectRules&&v(e.redirectRules)},[v,e.redirectRules]),g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-4",children:[g.jsx("header",{children:g.jsxs(qt,{children:[g.jsxs("h2",{className:"tw:sm:flex tw:justify-between tw:items-center",children:[g.jsx(Sw,{}),g.jsxs("div",{className:"tw:text-center tw:grow",children:[r.loading&&g.jsx(g.Fragment,{children:"Loading..."}),!r.loading&&g.jsxs("small",{children:["Redirect rules for ",g.jsx(aa,{href:(u==null?void 0:u.shortUrl)??""})]})]})]}),g.jsx("hr",{}),g.jsxs("div",{children:[g.jsx("p",{children:"Configure dynamic conditions that will be checked at runtime."}),g.jsxs("p",{children:["If no conditions match, visitors will be redirected to: ",g.jsx(aa,{href:e.defaultLongUrl??""})]})]})]})}),g.jsx("div",{children:g.jsxs(Pn,{onClick:C,children:[g.jsx(Ke,{icon:yv})," Add rule"]})}),g.jsxs("form",{onSubmit:K,children:[e.loading&&g.jsx(fc,{loading:!0}),m.length===0&&!e.loading&&g.jsx(qt,{className:"tw:text-center",children:g.jsx("i",{children:"This short URL has no dynamic redirect rules"})}),g.jsx("div",{className:"tw:flex tw:flex-col tw:gap-2",ref:h,children:m.map((H,G)=>g.jsx(APe,{redirectRule:H,priority:G+1,isLast:G===m.length-1,onDelete:()=>j(G),onMoveUp:()=>$(G),onMoveDown:()=>q(G),onUpdate:te=>P(G,te)},`${H.longUrl}_${G}`))}),g.jsx("div",{className:"tw:text-center tw:mt-4",children:g.jsx(Pn,{type:"submit",inline:!0,className:"tw:max-md:w-full",disabled:_,"data-testid":"save-button",children:_?"Saving...":"Save rules"})})]}),w&&g.jsx(Mi,{variant:"error",children:g.jsx(go,{errorData:w,fallbackMessage:"An error occurred while saving short URL redirect rules :("})}),x&&g.jsx(Mi,{variant:"success",children:"Redirect rules properly saved."}),g.jsx(BW,{isOpen:S,onClose:O,onSave:T})]})},PPe=(e,t)=>{e.serviceFactory("ShortUrlRedirectRules",()=>jPe),e.decorator("ShortUrlRedirectRules",t(["shortUrlRedirectRules","shortUrlsDetails","shortUrlRedirectRulesSaving"],["getShortUrlRedirectRules","getShortUrlsDetails","setShortUrlRedirectRules","resetSetRules"])),e.serviceFactory("getShortUrlRedirectRules",v3e,"apiClientFactory"),e.serviceFactory("setShortUrlRedirectRules",h3e,"apiClientFactory"),e.serviceFactory("resetSetRules",n=>n.resetSetRules,"setShortUrlRedirectRulesReducerCreator"),e.serviceFactory("shortUrlRedirectRulesReducerCreator",g3e,"getShortUrlRedirectRules"),e.serviceFactory("shortUrlRedirectRulesReducer",n=>n.reducer,"shortUrlRedirectRulesReducerCreator"),e.serviceFactory("setShortUrlRedirectRulesReducerCreator",p3e,"setShortUrlRedirectRules"),e.serviceFactory("setShortUrlRedirectRulesReducer",n=>n.reducer,"setShortUrlRedirectRulesReducerCreator")},RPe=({creation:e,resetCreateShortUrl:t,canBeClosed:n=!1})=>{const{error:r,saved:i}=e;if(D.useEffect(()=>{t()},[t]),r)return g.jsxs(Mi,{variant:"error",className:"tw:mt-4 tw:relative",children:[n&&g.jsx("div",{className:"tw:absolute tw:right-1.5 tw:top-1.5","data-testid":"error-close-button",children:g.jsx(Em,{onClick:t})}),g.jsx(go,{errorData:e.errorData,fallbackMessage:"An error occurred while creating the URL :("})]});if(!i)return null;const{shortUrl:a}=e.result;return g.jsxs(Mi,{variant:"success",className:"tw:mt-4 tw:relative",children:[n&&g.jsx("div",{className:"tw:absolute tw:right-1.5 tw:top-1.5","data-testid":"success-close-button",children:g.jsx(Em,{onClick:t})}),g.jsxs("div",{className:"tw:flex tw:items-center tw:justify-center tw:gap-1",children:[g.jsxs("span",{children:[g.jsx("b",{children:"Great!"})," The short URL is ",g.jsx("b",{children:a})]}),g.jsx(uF,{text:a})]})]})},MPe=e=>({longUrl:"",tags:[],customSlug:"",title:void 0,shortCodeLength:void 0,domain:"",validSince:void 0,validUntil:void 0,maxVisits:void 0,findIfExists:!1,validateUrl:(e==null?void 0:e.validateUrls)??!1,forwardQuery:(e==null?void 0:e.forwardQuery)??!0}),UW=({createShortUrl:e,shortUrlCreation:t,resetCreateShortUrl:n,basicMode:r=!1})=>{const{ShortUrlForm:i}=Mn(UW),a=Jn("shortUrlCreation"),o=D.useMemo(()=>MPe(a),[a]);return g.jsxs(g.Fragment,{children:[g.jsx(i,{initialState:o,saving:t.saving,basicMode:r,onSave:async l=>(n(),e(l))}),g.jsx(RPe,{creation:t,resetCreateShortUrl:n,canBeClosed:r})]})},NPe=Nn(UW,["ShortUrlForm"]),zW=({shortUrlsDetails:e,getShortUrlsDetails:t,shortUrlEdition:n,editShortUrl:r})=>{const{ShortUrlForm:i}=Mn(zW),a=s4(),{loading:o,error:l,errorData:f,shortUrls:u}=e,h=a&&(u==null?void 0:u.get(a)),{saving:m,saved:v,error:_,errorData:x}=n,w=Jn("shortUrlCreation"),S=D.useMemo(()=>a3e(h,w),[h,w]);return D.useEffect(()=>{a&&t([a])},[t,a]),o?g.jsx(fc,{loading:!0}):l?g.jsx(Mi,{variant:"error",children:g.jsx(go,{errorData:f,fallbackMessage:"An error occurred while loading short URL detail :("})}):g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-y-4",children:[g.jsx("header",{children:g.jsx(qt,{children:g.jsxs("h2",{className:"tw:sm:flex tw:items-center",children:[g.jsx(Sw,{}),g.jsx("div",{className:"tw:text-center tw:grow",children:g.jsxs("small",{children:["Edit ",g.jsx(aa,{href:(h==null?void 0:h.shortUrl)??""})]})})]})})}),g.jsx(i,{initialState:S,saving:m,onSave:async O=>{h&&r({...h,data:O})}}),v&&_&&g.jsx(Mi,{variant:"error",children:g.jsx(go,{errorData:x,fallbackMessage:"An error occurred while updating short URL :("})}),v&&!_&&g.jsx(Mi,{variant:"success",children:"Short URL properly edited."})]})},LPe=Nn(zW,["ShortUrlForm"]),lE="delete",DPe=({shortUrl:e,onClose:t,isOpen:n,shortUrlDeletion:r,resetDeleteShortUrl:i,deleteShortUrl:a,shortUrlDeleted:o})=>{const[l,f]=D.useState("");D.useEffect(()=>i,[i]);const{loading:u,error:h,deleted:m,errorData:v}=r,_=D.useCallback(()=>{i(),t()},[i,t]),x=D.useCallback(()=>a(e).then(w=>!XP(w)&&t()),[a,e,t]);return g.jsx(Ql,{open:n,title:"Delete short URL",variant:"danger",confirmText:u?"Deleting...":"Delete",confirmDisabled:l!==lE||u,onConfirm:x,onClose:_,onClosed:()=>m&&o(e),children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-y-2",children:[g.jsxs("p",{children:[g.jsx("b",{className:"tw:text-danger",children:"Caution!"})," You are about to delete a short URL."]}),g.jsx("p",{children:"This action cannot be undone. Once you have deleted it, all the visits stats will be lost."}),g.jsx(ua,{label:g.jsxs(g.Fragment,{children:["Type ",g.jsx("b",{children:lE})," to confirm deletion."]}),type:"text",placeholder:lE,value:l,onChange:w=>f(w.target.value),onKeyDown:w=>w.key==="Enter"&&x()}),h&&g.jsx(Mi,{variant:Nje(v)?"warning":"error",size:"sm",className:"tw:mt-2",children:g.jsx(go,{errorData:v,fallbackMessage:"Something went wrong while deleting the URL :("})})]})})},FW=({amount:e=0,loading:t=!1,...n})=>g.jsxs(Pn,{...n,disabled:t,children:[g.jsx(Ke,{icon:tJ})," ",t?"Exporting...":g.jsxs(g.Fragment,{children:["Export (",Rn(e),")"]})]}),g9=20,qW=({amount:e=0})=>{const{apiClientFactory:t,ReportExporter:n}=Mn(qW),[{tags:r,search:i,startDate:a,endDate:o,orderBy:l,tagsMode:f}]=xw(),[u,,h,m]=Wt(),v=D.useCallback(async()=>{const _=e/g9,x=async(S=1)=>{const{data:O}=await t().listShortUrls({page:`${S}`,tags:r,searchTerm:i,startDate:a,endDate:o,orderBy:l,tagsMode:f,itemsPerPage:g9});return S>=_?O:O.concat(await x(S+1))};h();const w=await x();n.exportShortUrls(w.map(S=>{var O;const{hostname:C,pathname:T}=new URL(S.shortUrl),j=T.substring(1);return{createdAt:S.dateCreated,domain:C,shortCode:j,shortUrl:S.shortUrl,longUrl:S.longUrl,title:S.title??"",tags:S.tags.join("|"),visits:((O=S==null?void 0:S.visitsSummary)==null?void 0:O.total)??S.visitsCount??0}})),m()},[e,t,o,l,n,i,a,h,m,r,f]);return g.jsx(FW,{loading:u,className:"tw:max-lg:w-full",amount:e,onClick:v})},kPe=Nn(qW,["apiClientFactory","ReportExporter"]),IPe="yyyy-MM-dd",VW="yyyy-MM-dd HH:mm",Yl=()=>new Date,u4=e=>typeof e!="string",c4=(e,t)=>!e||!u4(e)?e:t?F0(e,t):Ode(e),Kl=e=>c4(e,void 0),Ml=e=>c4(e,IPe),cv=e=>c4(e,VW),Pi=e=>u4(e)?e:Vl(e),Bv=(e,t,n)=>{const r=Pi(e),i=t&&Pi(t),a=n&&Pi(n);if(i&&a)try{return Tde(r,{start:i,end:a})}catch{return!1}return i?YT(r,i)||Ede(r,i):a?YT(r,a)||q0(r,a):!0},$u=(e,t)=>YT(e,t)||q0(e,t),Kb=({date:e,format:t=VW,relative:n=!1})=>{const r=u4(e)?e:Vl(e);return g.jsx("time",{dateTime:`${Cde(r)}000`,children:n?`${Sde(Yl(),r)} ago`:F0(r,t)})},$Pe=(e,{shortCode:t,domain:n},r)=>{const i=n?`?domain=${n}`:"";return`${e}/short-code/${bW(t)}/${r}${i}`},lm=({shortUrl:e,suffix:t,asLink:n,children:r,...i})=>{const a=iu();return!n||!e?g.jsx("span",{...i,children:r}):g.jsx(gn,{to:$Pe(a,e,t),...i,children:r})},BPe=e=>{const{meta:t,visitsCount:n,visitsSummary:r}=e,{maxVisits:i,validSince:a,validUntil:o}=t,l=(r==null?void 0:r.total)??n??0;return i&&l>=i?{icon:GJ,className:"tw:text-danger",description:`This short URL cannot be currently visited because it has reached the maximum amount of ${i} visit${i>1?"s":""}`}:o&&q0(Pi(o),Yl())?{icon:FN,className:"tw:text-danger",description:`This short URL cannot be visited since ${cv(Pi(o))}`}:a&&q0(Yl(),Pi(a))?{icon:FN,className:"tw:text-warning",description:`This short URL will start working on ${cv(Pi(a))}`}:{icon:ac,className:"tw:text-lm-brand tw:dark:text-dm-brand",description:"This short URL can be visited normally"}},UPe=({shortUrl:e})=>{const{icon:t,className:n,description:r}=D.useMemo(()=>BPe(e),[e]);return g.jsx("span",{className:"tw:cursor-help",title:r,children:g.jsx(Ke,{icon:t,className:n})})},HW=({visitsCount:e,shortUrl:t,active:n=!1,asLink:r=!1})=>{const i=D.useRef(null),{maxVisits:a,validSince:o,validUntil:l}=(t==null?void 0:t.meta)??{},f=!!a||!!o||!!l,u=g.jsx(lm,{shortUrl:t,suffix:"visits",asLink:r,children:g.jsx("strong",{className:Ce("tw:inline-block tw:transition-all tw:duration-300",{"tw:scale-150":n}),children:Rn(e)})});return f?g.jsxs(g.Fragment,{children:[g.jsxs("span",{className:"tw:whitespace-nowrap",children:[u,g.jsxs("small",{className:"tw:cursor-help",ref:i,children:[a&&g.jsxs(g.Fragment,{children:[" / ",Rn(a)]}),g.jsx("sup",{className:"tw:ml-1",children:g.jsx(Ke,{icon:u1})})]})]}),g.jsx(bs,{target:i,placement:"bottom",children:g.jsxs("ul",{className:"tw:p-0 tw:m-0 tw:flex tw:flex-col tw:gap-y-2",children:[a&&g.jsxs("li",{children:["This short URL will not accept more than ",g.jsx("b",{children:Rn(a)})," visit",a===1?"":"s","."]}),o&&g.jsxs("li",{children:["This short URL will not accept visits before ",g.jsx("b",{className:"tw:whitespace-nowrap",children:cv(Pi(o))}),"."]}),l&&g.jsxs("li",{children:["This short URL will not accept visits after ",g.jsx("b",{className:"tw:whitespace-nowrap",children:cv(Pi(l))}),"."]})]})})]}):u},Fd=({className:e,...t})=>g.jsx("button",{type:"button",className:Ce("tw:rounded-sm tw:focus-ring",e),...t}),zPe=e=>!!e.onClose,FPe=e=>!!e.onClick,Ow=e=>{const{text:t,children:n,className:r,colorGenerator:i}=e,a=FPe(e),o=zPe(e),l=a?Fd:"span",f=D.useMemo(()=>i.stylesForKey(t),[t,i]);return g.jsxs(l,{className:Ce("tw:inline-flex tw:items-center tw:gap-1","tw:font-bold tw:[&]:rounded-md",{"tw:text-sm tw:px-1.5 tw:py-0.5":!o,"tw:py-1 tw:px-2":o,"tw:cursor-pointer":a},r),style:f,onClick:a?e.onClick:void 0,"data-testid":"tag",children:[n??t,o&&g.jsx(Fd,{"aria-label":`Remove ${t}`,className:"tw:p-0 tw:text-lg tw:leading-5.5",onClick:e.onClose,children:g.jsx(Ke,{icon:f1,size:"sm"})})]})},qPe=({tags:e,onTagClick:t,colorGenerator:n})=>e.length===0?g.jsx("i",{className:"tw:whitespace-nowrap",children:g.jsx("small",{children:"No tags"})}):g.jsx("div",{className:"tw:inline-flex tw:flex-wrap tw:gap-1 tw:items-center",children:e.map(r=>g.jsx(Ow,{text:r,colorGenerator:n,onClick:()=>t==null?void 0:t(r)},r))}),WW=({shortUrl:e,onTagClick:t})=>{var n,r,i,a;const{ShortUrlsRowMenu:o,ColorGenerator:l,useTimeoutToggle:f}=Mn(WW),[u,h]=f(!1,500),m=D.useRef(!0),[{excludeBots:v}]=xw(),_=Jn("visits"),x=v??(_==null?void 0:_.excludeBots);return D.useEffect(()=>{m.current||h(),m.current=!1},[(n=e.visitsSummary)==null?void 0:n.total,(r=e.visitsSummary)==null?void 0:r.nonBots,e.visitsCount,h]),g.jsxs(tt.Row,{className:"tw:relative",children:[g.jsx(tt.Cell,{className:"tw:whitespace-nowrap",columnName:"Created at:",children:g.jsx(Kb,{date:e.dateCreated})}),g.jsx(tt.Cell,{columnName:"Short URL:",children:g.jsxs("span",{className:"tw:lg:whitespace-nowrap tw:inline-flex tw:items-center tw:gap-x-2",children:[g.jsx(aa,{href:e.shortUrl,className:"tw:max-md:break-all tw:lg:truncate tw:max-w-72"}),g.jsx(uF,{text:e.shortUrl})]})}),g.jsx(tt.Cell,{className:"tw:break-all",columnName:`${e.title?"Title":"Long URL"}:`,children:g.jsx(aa,{href:e.longUrl,children:e.title??e.longUrl})}),e.title&&g.jsx(tt.Cell,{className:"tw:break-all tw:[&]:lg:hidden",columnName:"Long URL:",children:g.jsx(aa,{href:e.longUrl})}),g.jsx(tt.Cell,{columnName:"Tags:",children:g.jsx(qPe,{tags:e.tags,colorGenerator:l,onTagClick:t})}),g.jsx(tt.Cell,{className:"tw:lg:text-right",columnName:"Visits:",children:g.jsx(HW,{visitsCount:(x?(i=e.visitsSummary)==null?void 0:i.nonBots:(a=e.visitsSummary)==null?void 0:a.total)??e.visitsCount??0,shortUrl:e,active:u,asLink:!0})}),g.jsx(tt.Cell,{columnName:"Status:",className:"tw:max-lg:border-none",children:g.jsxs("div",{className:"tw:inline-flex tw:gap-2",children:[g.jsx(UPe,{shortUrl:e}),e.hasRedirectRules&&g.jsx(lm,{asLink:!0,shortUrl:e,suffix:"redirect-rules",title:"This short URL has dynamic redirect rules",children:g.jsx(Ke,{icon:FB})})]})}),g.jsx(tt.Cell,{className:"tw:text-right tw:max-lg:absolute tw:max-lg:top-1 tw:max-lg:right-1 tw:max-lg:p-0",children:g.jsx(o,{shortUrl:e})})]})},VPe=Nn(WW,["ShortUrlsRowMenu","ColorGenerator","useTimeoutToggle"]),HPe=6,y9="0123456789ABCDEF",WPe=128;function GPe(){return`#${t4(HPe,()=>y9[Math.floor(Math.random()*y9.length)]).join("")}`}function YPe(e,t,n){return Math.round(Math.sqrt(.299*e**2+.587*t**2+.114*n**2))}function GW(e){const[t,n,r]=(e.match(/../g)??[]).map(i=>parseInt(i,16)||0);return YPe(t,n,r)>=WPe}const YW=D.forwardRef(({name:e,color:t,onChange:n,className:r},i)=>g.jsxs("div",{className:Ce("tw:relative tw:rounded tw:w-12",r),style:{backgroundColor:t,borderColor:t},children:[g.jsx(Ti,{className:"tw:w-full tw:h-full tw:cursor-pointer tw:relative tw:z-1 tw:opacity-0",type:"color",value:t,onChange:a=>n(a.target.value),ref:i,name:e,"aria-label":e.replace("-"," ")}),g.jsx(Ke,{icon:pJ,className:"tw:absolute tw:top-1/2 tw:left-1/2 tw:-translate-1/2",style:{color:GW(t.substring(1))?"#000":"#fff"}})]})),b9=({color:e,onChange:t,name:n})=>{const r=D.useRef(null);return g.jsxs("div",{className:"tw:flex",children:[g.jsx(YW,{name:`${n}-picker`,color:e,onChange:t,className:"tw:rounded-r-none",ref:r}),g.jsx(Ti,{readOnly:!0,value:e,onClick:()=>{var i;return(i=r.current)==null?void 0:i.click()},"aria-label":n,"data-testid":"text-input",className:"tw:grow tw:rounded-l-none"})]})};function KPe(e){switch(e){case"L":return 1;case"M":return .5;default:return .3}}const ZPe=D.forwardRef(({data:e,color:t="#000000",bgColor:n="#ffffff",margin:r=0,errorCorrection:i="L",size:a=300,drawType:o="canvas",logo:l},f)=>{const u=D.useRef(null),h=D.useRef(new Wde),m=D.useCallback((_,x)=>h.current.download({name:_,extension:x}),[]),v=D.useCallback(_=>new Promise((x,w)=>{const S=h.current.getRawData(_),O=new FileReader;O.onload=()=>{const{result:C}=O;C&&x(C.toString())},O.onerror=w,S.then(C=>{C instanceof Blob?O.readAsDataURL(C):w(new Error("QR code image blob not available"))})}),[]);return D.useImperativeHandle(f,()=>({download:m,getDataUri:v}),[m,v]),D.useEffect(()=>{const _=u.current;h.current.append(_)},[]),D.useEffect(()=>{h.current.update({type:o,data:e,width:a+r,height:a+r,margin:r,dotsOptions:{color:t},backgroundOptions:{color:n},qrOptions:{errorCorrectionLevel:i},imageOptions:{margin:5,imageSize:KPe(i)},image:l})},[n,t,e,o,i,l,r,a]),g.jsxs(g.Fragment,{children:[g.jsx("style",{dangerouslySetInnerHTML:{__html:"#qr-code-canvas-container canvas { max-width: 100% }"}}),g.jsx("div",{ref:u,id:"qr-code-canvas-container"})]})}),XPe=async({text:e,onCopy:t},n=navigator)=>{var r;const i=typeof e=="string"?e:await e;return(r=n.clipboard)==null?void 0:r.writeText(i).then(()=>t==null?void 0:t({text:i,copied:!0})).catch(()=>t==null?void 0:t({text:i,copied:!1}))},w9=({name:e,value:t,step:n,min:r,max:i,onChange:a})=>{const o=D.useId();return g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-1",children:[g.jsxs("label",{htmlFor:o,className:"tw:capitalize",children:[e,": ",t,"px"]}),g.jsx("input",{id:o,type:"range",value:t,step:n,min:r,max:i,onChange:l=>a(Number(l.target.value))})]})},QPe=({shortUrl:{shortUrl:e,shortCode:t},onClose:n,isOpen:r,qrDrawType:i})=>{const a=Jn("qrCodes",Xd),[{size:o,margin:l,color:f,bgColor:u,errorCorrection:h,format:m},v]=D.useState(a),_=D.useCallback(q=>v(K=>({...K,...q})),[]),x=D.useRef(null),[w,S]=D.useState(),O=D.useCallback(q=>{var K;const H=(K=q.target.files)==null?void 0:K[0];H&&S({url:URL.createObjectURL(new Blob([H],{type:H.type})),name:H.name})},[]),C=D.useRef(null),T=D.useCallback(()=>{var q;return(q=C.current)==null?void 0:q.download(`${t}-qr-code`,m)},[m,t]),[j,P]=b3(),R=D.useCallback(()=>{var q;const K=((q=C.current)==null?void 0:q.getDataUri(m))??"";return XPe({text:K,onCopy:P})},[m,P]),$=D.useCallback(()=>{v(a),S(void 0)},[a]);return g.jsx(Ql,{open:r,onClose:n,title:`QR code for ${e}`,size:"lg",onClosed:$,children:g.jsxs("div",{className:"tw:flex tw:flex-col-reverse tw:lg:flex-row tw:gap-4",children:[g.jsx("div",{className:"tw:grow tw:flex tw:items-center tw:justify-around",children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-1 tw:items-center","data-testid":"qr-code-container",children:[g.jsx(ZPe,{ref:C,data:e,size:o,margin:l,errorCorrection:h,color:f,bgColor:u,logo:w==null?void 0:w.url,drawType:i}),g.jsxs("div",{className:"tw:italic",children:["Preview (",o+l,"x",o+l,")"]})]})}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-2 tw:lg:w-64",children:[g.jsx(w9,{name:"size",value:o,onChange:q=>_({size:q}),step:10,min:50,max:1e3}),g.jsx(w9,{name:"margin",value:l,onChange:q=>_({margin:q}),step:1,min:0,max:100}),g.jsx(cF,{errorCorrection:h,onChange:q=>_({errorCorrection:q})}),g.jsx(b9,{name:"color",color:f,onChange:q=>_({color:q})}),g.jsx(b9,{name:"background",color:u,onChange:q=>_({bgColor:q})}),!w&&g.jsxs(g.Fragment,{children:[g.jsxs(Pn,{variant:"secondary",onClick:()=>{var q;return(q=x.current)==null?void 0:q.click()},children:[g.jsx(Ke,{icon:Ale}),"Select logo"]}),g.jsx("input",{ref:x,type:"file",accept:"image/*","aria-hidden":!0,tabIndex:-1,className:"tw:hidden",onChange:O,"data-testid":"logo-input"})]}),w&&g.jsxs(Pn,{variant:"secondary",onClick:()=>S(void 0),children:[g.jsx(Ke,{icon:c1}),g.jsxs("div",{className:"tw:truncate",children:["Clear logo (",w.name,")"]})]}),g.jsx("div",{className:"tw:my-auto",children:g.jsx("hr",{className:"tw:my-2"})}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-2",children:[g.jsx(fF,{format:m,onChange:q=>_({format:q})}),g.jsxs("div",{className:"tw:flex tw:items-center tw:gap-2",children:[g.jsx(Pn,{onClick:R,"aria-label":"Copy data URI",title:"Copy data URI",className:"tw:h-full",children:g.jsx(Ke,{icon:j?ac:Ez,fixedWidth:!0})}),g.jsxs(Pn,{solid:!0,onClick:T,className:"tw:grow",children:["Download ",g.jsx(Ke,{icon:BB})]})]})]})]})]})})},KW=({shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n})=>{const{DeleteShortUrlModal:r}=Mn(KW),[i,,a,o]=Wt(),[l,,f,u]=Wt(),h=gw(),m=yo("shortUrlRedirectRules"),{confirmDeletions:v=!0}=Jn("shortUrlsList",{}),_=D.useCallback(async()=>{const x=await t(e);XP(x)||n(e)},[t,e,n]);return g.jsxs(g.Fragment,{children:[g.jsxs(y1,{minWidth:m?220:190,children:[g.jsxs(Je,{tag:lm,shortUrl:e,suffix:"visits",asLink:!0,children:[g.jsx(Ke,{icon:Gj,fixedWidth:!0})," Visit stats"]}),h&&g.jsxs(g.Fragment,{children:[g.jsxs(Je,{disabled:!h.canAddItemWithName(e.shortUrl),onClick:()=>h.addItemToCompare({name:e.shortUrl,query:i4(e)}),children:[g.jsx(Ke,{icon:l1,fixedWidth:!0})," Compare visits"]}),g.jsx(Je,{divider:!0,tag:"hr"})]}),g.jsxs(Je,{tag:lm,shortUrl:e,suffix:"edit",asLink:!0,children:[g.jsx(Ke,{icon:Wj,fixedWidth:!0})," Edit short URL"]}),m&&g.jsxs(Je,{tag:lm,shortUrl:e,suffix:"redirect-rules",asLink:!0,children:[g.jsx(Ke,{icon:FB,fixedWidth:!0})," Manage redirect rules"]}),g.jsxs(Je,{onClick:a,children:[g.jsx(Ke,{icon:VJ,fixedWidth:!0})," QR code"]}),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsxs(Je,{className:"tw:text-danger",onClick:v?f:_,children:[g.jsx(Ke,{icon:LB,fixedWidth:!0})," Delete short URL"]})]}),g.jsx(QPe,{shortUrl:e,isOpen:i,onClose:o}),g.jsx(r,{shortUrl:e,deleteShortUrl:t,shortUrlDeleted:n,isOpen:l,onClose:u})]})},JPe=Nn(KW,["DeleteShortUrlModal"]),ZW="shlink/shortUrlCreation",_9={saving:!1,saved:!1,error:!1},e4e=e=>Qn(`${ZW}/createShortUrl`,t=>e().createShortUrl(t)),t4e=e=>{const{reducer:t,actions:n}=Un({name:ZW,initialState:_9,reducers:{resetCreateShortUrl:()=>_9},extraReducers:i=>{i.addCase(e.pending,()=>({saving:!0,saved:!1,error:!1})),i.addCase(e.rejected,(a,{error:o})=>({saving:!1,saved:!1,error:!0,errorData:Bi(o)})),i.addCase(e.fulfilled,(a,{payload:o})=>({result:o,saving:!1,saved:!0,error:!1}))}}),{resetCreateShortUrl:r}=n;return{reducer:t,resetCreateShortUrl:r}},XW="shlink/shortUrlEdition",n4e={saving:!1,saved:!1,error:!1},r4e=e=>Qn(`${XW}/editShortUrl`,({shortCode:t,domain:n,data:r})=>e().updateShortUrl({shortCode:t,domain:n},r)),i4e=e=>Un({name:XW,initialState:n4e,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:Bi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>({shortUrl:r,saving:!1,error:!1,saved:!0}))}}),x9="shlink/shortUrlsDetails",S9={loading:!1,error:!1},a4e=e=>{const t=Qn(`${x9}/getShortUrlsDetails`,async(r,{getState:i})=>{const{shortUrlsList:a}=i(),o=await Promise.all(r.map(async l=>{var f;const{shortCode:u,domain:h}=l,m=(f=a==null?void 0:a.shortUrls)==null?void 0:f.data.find(v=>sm(v,u,h));return[l,m??await e().getShortUrl({shortCode:u,domain:h})]}));return new Map(o)}),{reducer:n}=Un({name:x9,initialState:S9,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({loading:!0,error:!1})),r.addCase(t.rejected,(i,{error:a})=>({loading:!1,error:!0,errorData:Bi(a)})),r.addCase(t.fulfilled,(i,{payload:a})=>({...S9,shortUrls:a}))}});return{reducer:n,getShortUrlsDetails:t}},o4e=({domains:e,value:t,onChange:n})=>{const{flag:r,setToTrue:i,setToFalse:a}=Wt(!1,!0),o=!t,l=D.useCallback(()=>{n(""),a()},[n,a]),f=D.useCallback(()=>{n(""),i()},[n,i]);return r?g.jsxs("div",{className:"tw:flex",children:[g.jsx(Ti,{value:t??"",placeholder:"Domain",onChange:u=>n(u.target.value),className:"tw:flex-grow tw:rounded-r-none tw:[&]:border-r-0"}),g.jsx(Pn,{variant:"secondary",type:"button",className:"tw:rounded-l-none","aria-label":"Back to domains list",title:"Existing domains",onClick:l,children:g.jsx(Ke,{icon:OJ})})]}):g.jsxs(ws,{text:o?"Domain":`Domain: ${t}`,className:Ce({"tw:text-placeholder":o}),children:[e.map(({domain:u,isDefault:h})=>g.jsxs(Je,{active:(t===u||h)&&o,onClick:()=>n(u),className:"tw:flex tw:justify-between tw:items-center",children:[u,h&&g.jsx(ld,{children:"default"})]},u)),g.jsx(Je,{divider:!0}),g.jsx(Je,{onClick:f,children:g.jsx("i",{children:"New domain"})})]})},uE=({icon:e,className:t,...n})=>{const r=D.useRef(null);return g.jsxs("div",{className:"tw:relative",children:[g.jsx(Ti,{className:Ce("tw:pr-11",t),ref:r,...n}),g.jsx(Ke,{icon:e,fixedWidth:!0,className:"tw:absolute tw:right-3 tw:top-1/2 tw:-translate-y-1/2 tw:cursor-pointer",onClick:()=>{var i;return(i=r.current)==null?void 0:i.focus()}})]})},s4e=({minDate:e,maxDate:t,value:n,onChange:r,withTime:i=!1,...a})=>{const o=D.useCallback(({target:f})=>{if(!f.value){r==null||r(null);return}r==null||r(Pi(f.value))},[r]),l=D.useMemo(()=>i?cv:Ml,[i]);return g.jsx(iz,{...a,type:i?"datetime-local":"date",value:l(n)??"",max:l(t)??void 0,min:l(e)??void 0,onChange:o})},Zb=({label:e,id:t,...n})=>{const r=D.useId();return g.jsxs(g.Fragment,{children:[g.jsxs("label",{htmlFor:t??r,className:"tw:mb-1",children:[e,":"]}),g.jsx(s4e,{id:t??r,...n})]})},l4e=({className:e,placement:t,children:n})=>{const r=D.useRef(null);return g.jsxs(g.Fragment,{children:[g.jsx("span",{className:e,ref:r,children:g.jsx(Ke,{icon:u1})}),g.jsx(bs,{target:r,placement:t,children:n})]})},cE=({children:e,infoTooltip:t,checked:n,onChange:r})=>g.jsxs("div",{className:"tw:flex tw:items-center tw:gap-x-2",children:[g.jsxs(_o,{className:"tw:inline-flex tw:items-center tw:gap-x-1.5",children:[g.jsx(iF,{checked:n,onChange:r}),e]}),g.jsx(l4e,{placement:"right",children:t})]}),u4e=e=>g.jsx(Ql,{...e,title:"Info",size:"lg",children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-y-2",children:[g.jsxs("p",{children:["When the ",g.jsx("b",{children:g.jsx("i",{children:'"Use existing URL if found"'})})," checkbox is checked, the server will return an existing short URL if it matches provided params."]}),g.jsx("p",{children:"These are the checks performed by Shlink in order to determine if an existing short URL should be returned:"}),g.jsxs("ul",{className:"tw:list-disc tw:mb-0",children:[g.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."}),g.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.",g.jsx("br",{}),"If the slug is being used by another long URL, an error will be returned."]}),g.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"})]})]})}),c4e=()=>{const{flag:e,setToFalse:t,setToTrue:n}=Wt(!1,!0);return g.jsxs(g.Fragment,{children:[g.jsx(Fd,{title:"What does this mean?",onClick:n,children:g.jsx(Ke,{icon:u1})}),g.jsx(u4e,{open:e,onClose:t})]})},zy=e=>typeof e=="string"?Vl(e):e,f4e=e=>"shortCodeLength"in e&&"customSlug"in e&&"domain"in e,QW=({basicMode:e=!1,saving:t,onSave:n,initialState:r,tagsList:i,domainsList:a})=>{var o,l,f;const{TagsSelector:u}=Mn(QW),[h,m]=D.useState(r),v=f4e(h),_=yo("deviceLongUrls"),x=yo("urlValidation"),w=x||v,S=D.useCallback(()=>m(r),[r]),O=D.useCallback((R,$)=>Yu(R)?R:Yu($)?null:void 0,[]),C=D.useCallback((R,$)=>m(({deviceLongUrls:q={},...K})=>{var H;return{...K,deviceLongUrls:{...q,[R]:O($,(H=r.deviceLongUrls)==null?void 0:H[R])}}}),[r.deviceLongUrls,O]),T=D.useCallback(R=>m($=>({...$,tags:R})),[]),j=D.useCallback(async R=>(R.preventDefault(),n(h).then($=>v&&!XP($)&&S()).catch(()=>{})),[v,n,S,h]),P=D.useMemo(()=>g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-4",children:[g.jsx(Ti,{size:"lg",type:"url",placeholder:"URL to be shortened",required:!0,value:h.longUrl,onChange:R=>m($=>({...$,longUrl:R.target.value}))}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:lg:flex-row tw:gap-4",children:[e&&v&&g.jsx("div",{className:"tw:w-full tw:lg:w-1/2",children:g.jsx(Ti,{size:"lg",placeholder:"Custom slug",value:h.customSlug??"",onChange:R=>m($=>({...$,customSlug:R.target.value}))})}),g.jsx("div",{className:Ce("tw:w-full",{"tw:lg:w-1/2":e}),children:g.jsx(u,{tags:i.tags,selectedTags:h.tags??[],onChange:T})})]})]}),[u,e,T,v,h,i.tags]);return g.jsxs("form",{name:"shortUrlForm",onSubmit:j,className:"tw:flex tw:flex-col tw:gap-4",children:[e&&P,!e&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{children:[g.jsx("div",{className:Ce({"tw:sm:w-1/2":_,"tw:w-full":!_}),children:g.jsx(qt,{title:"Main options",className:"card",children:P})}),_&&g.jsx("div",{className:"tw:w-full tw:sm:w-1/2",children:g.jsxs(qt,{title:"Device-specific long URLs",bodyClassName:"tw:flex tw:flex-col tw:gap-y-4",className:"card",children:[g.jsx(uE,{type:"url",icon:Yde,placeholder:"Android-specific redirection",value:((o=h.deviceLongUrls)==null?void 0:o.android)??"",onChange:({target:R})=>C("android",R.value)}),g.jsx(uE,{type:"url",icon:Gde,placeholder:"iOS-specific redirection",value:((l=h.deviceLongUrls)==null?void 0:l.ios)??"",onChange:({target:R})=>C("ios",R.value)}),g.jsx(uE,{type:"url",icon:YJ,placeholder:"Desktop-specific redirection",value:((f=h.deviceLongUrls)==null?void 0:f.desktop)??"",onChange:({target:R})=>C("desktop",R.value)})]})})]}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:sm:flex-row tw:gap-4",children:[g.jsx("div",{className:"tw:w-full tw:sm:w-1/2",children:g.jsxs(qt,{title:"Customize the short URL",bodyClassName:"tw:flex tw:flex-col tw:gap-4",className:"card tw:h-full",children:[g.jsx(Ti,{placeholder:"Title",value:h.title??"",onChange:({target:R})=>m($=>({...$,title:O(R.value,r.title)}))}),v&&g.jsxs(g.Fragment,{children:[g.jsxs("div",{className:"tw:flex tw:flex-col tw:lg:flex-row tw:gap-4",children:[g.jsx("div",{className:"tw:lg:w-1/2",children:g.jsx(Ti,{placeholder:"Custom slug",value:h.customSlug??"",onChange:R=>m($=>({...$,customSlug:R.target.value})),disabled:Yu(h.shortCodeLength)})}),g.jsx("div",{className:"tw:lg:w-1/2",children:g.jsx(Ti,{type:"number",placeholder:"Short code length",value:h.shortCodeLength??"",onChange:R=>m($=>({...$,shortCodeLength:R.target.value})),min:4,disabled:Yu(h.customSlug)})})]}),g.jsx(o4e,{value:h.domain,onChange:R=>m($=>({...$,domain:R})),domains:a.domains})]})]})}),g.jsx("div",{className:"tw:w-full tw:sm:w-1/2",children:g.jsxs(qt,{title:"Limit access to the short URL",className:"card tw:h-full",bodyClassName:"tw:flex tw:flex-col tw:gap-y-4",children:[g.jsxs("div",{className:"tw:flex tw:flex-col tw:lg:flex-row tw:gap-4",children:[g.jsx("div",{className:"tw:lg:w-1/2",children:g.jsx(Zb,{label:"Enabled since",withTime:!0,maxDate:h.validUntil?zy(h.validUntil):void 0,value:h.validSince?zy(h.validSince):null,onChange:R=>m($=>({...$,validSince:Kl(R)}))})}),g.jsx("div",{className:"tw:lg:w-1/2",children:g.jsx(Zb,{label:"Enabled until",withTime:!0,minDate:h.validSince?zy(h.validSince):void 0,value:h.validUntil?zy(h.validUntil):null,onChange:R=>m($=>({...$,validUntil:Kl(R)}))})})]}),g.jsx(ua,{label:"Maximum visits allowed:",type:"number",min:1,placeholder:"25...",value:h.maxVisits??"",onChange:R=>m($=>({...$,maxVisits:Yu(R.target.value)?Number(R.target.value):null}))})]})})]}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:sm:flex-row tw:gap-4",children:[w&&g.jsx("div",{className:"tw:w-full tw:sm:w-1/2",children:g.jsxs(qt,{title:"Extra checks",className:"tw:h-full",children:[x&&g.jsx(cE,{infoTooltip:"If checked, Shlink will try to reach the long URL, failing in case it's not publicly accessible.",checked:h.validateUrl,onChange:R=>m($=>({...$,validateUrl:R})),children:"Validate URL"}),v&&g.jsxs("p",{className:"tw:inline-flex tw:items-center tw:gap-x-2",children:[g.jsxs(_o,{className:"tw:inline-flex tw:items-center tw:gap-x-1.5",children:[g.jsx(iF,{checked:h.findIfExists,onChange:R=>m($=>({...$,findIfExists:R}))}),"Use existing URL if found"]}),g.jsx(c4e,{})]})]})}),g.jsx("div",{className:Ce("tw:w-full",{"tw:sm:w-1/2":w}),children:g.jsxs(qt,{title:"Configure behavior",children:[g.jsx(cE,{infoTooltip:"This short URL will be included in the robots.txt for your Shlink instance, allowing web crawlers (like Google) to index it.",checked:h.crawlable,onChange:R=>m($=>({...$,crawlable:R})),children:"Make it crawlable"}),g.jsx(cE,{infoTooltip:"When this short URL is visited, any query params appended to it will be forwarded to the long URL.",checked:h.forwardQuery,onChange:R=>m($=>({...$,forwardQuery:R})),children:"Forward query params on redirect"})]})})]})]}),g.jsx("div",{className:"tw:text-center",children:g.jsx(Pn,{type:"submit",inline:!0,disabled:t||!h.longUrl,className:"tw:max-md:w-full",children:t?"Saving...":"Save"})})]})},d4e=Nn(QW,["TagsSelector"]),Cw="all",JW={today:"Today",yesterday:"Yesterday",last7Days:"Last 7 days",last30Days:"Last 30 days",last90Days:"Last 90 days",last180Days:"Last 180 days",last365Days:"Last 365 days",[Cw]:void 0},eG=Object.keys(JW),h4e=e=>!e||!e.startDate&&!e.endDate,Xb=e=>typeof e=="string"&&eG.includes(e),p4e=eG.filter(e=>e!==Cw),O9=e=>e?Pi(e):null,tG=(e,t)=>({startDate:O9(e),endDate:O9(t)}),m4e=e=>{if(!(!e||h4e(e)))return e.startDate&&!e.endDate?`Since ${Ml(e.startDate)}`:!e.startDate&&e.endDate?`Until ${Ml(e.endDate)}`:`${Ml(e.startDate)} - ${Ml(e.endDate)}`},nG=e=>{if(!(!e||e===Cw))return Xb(e)?JW[e]:m4e(e)},ta=e=>hc(V0(Yl(),e)),jf=e=>({startDate:e,endDate:cd(Yl())}),rG=e=>{var t;return((t=[[()=>e==="today",()=>jf(hc(Yl()))],[()=>e==="yesterday",()=>({startDate:ta(1),endDate:cd(V0(Yl(),1))})],[()=>e==="last7Days",()=>jf(ta(7))],[()=>e==="last30Days",()=>jf(ta(30))],[()=>e==="last90Days",()=>jf(ta(90))],[()=>e==="last180Days",()=>jf(ta(180))],[()=>e==="last365Days",()=>jf(ta(365))]].find(([n])=>n()))==null?void 0:t[1]())??{}},v4e=e=>{var t;const n=Pi(e);return((t=[[()=>$u(hc(Yl()),n),"today"],[()=>$u(ta(1),n),"yesterday"],[()=>$u(ta(7),n),"last7Days"],[()=>$u(ta(30),n),"last30Days"],[()=>$u(ta(90),n),"last90Days"],[()=>$u(ta(180),n),"last180Days"],[()=>$u(ta(365),n),"last365Days"]].find(([r])=>r()))==null?void 0:t[1])??Cw},iG=e=>Xb(e)?rG(e):e,aG=e=>!!(e&&e.startDate),g4e=({startDate:e,endDate:t})=>{const n=wF(cd(t??new Date),hc(e))+1,r=V0(hc(e),n),i=V0(cd(e),1);return{startDate:r,endDate:i}},y4e=e=>{if(aG(e))return wF(e.endDate??new Date,e.startDate)},b4e=({active:e,allText:t,onChange:n})=>g.jsxs(g.Fragment,{children:[g.jsx(Je,{active:e==="all",onClick:()=>n("all"),children:t}),g.jsx(Je,{divider:!0,tag:"hr"}),p4e.map(r=>g.jsx(Je,{active:e===r,onClick:()=>n(r),children:nG(r)},r))]}),w4e=({startDate:e,endDate:t,disabled:n=!1,onStartDateChange:r,onEndDateChange:i})=>g.jsxs("div",{className:"tw:grid tw:grid-cols-1 tw:md:grid-cols-2 tw:gap-y-3 tw:gap-x-4",children:[g.jsx("div",{children:g.jsx(Zb,{label:"Since",value:e,maxDate:t??void 0,disabled:n,onChange:r})}),g.jsx("div",{children:g.jsx(Zb,{label:"Until",value:t,minDate:e??void 0,disabled:n,onChange:a=>i(a&&cd(a))})})]}),f4=({onDatesChange:e,dateRangeOrInterval:t,defaultText:n,disabled:r})=>{const i=D.useMemo(()=>nG(t)??n,[t,n]),[a,o]=D.useMemo(()=>Xb(t)?[void 0,t]:[t,void 0],[t]),l=D.useCallback(f=>{Xb(f)?e(rG(f),f):e(f)},[e]);return g.jsxs(ws,{disabled:r,text:i,children:[g.jsx(b4e,{allText:n,active:o,onChange:l}),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsx("div",{className:"tw:px-4 tw:py-1",children:g.jsx(w4e,{...a,onStartDateChange:f=>l({...a,startDate:f}),onEndDateChange:f=>l({...a,endDate:f})})})]})},_4e={dateCreated:"Created at",shortCode:"Short URL",longUrl:"Long URL",title:"Title",visits:"Visits"},x4e=({onChange:e,selected:t={},className:n,domains:r})=>{const i=yo("filterShortUrlsByDomain"),{excludeBots:a=!1,excludeMaxVisitsReached:o=!1,excludePastValidUntil:l=!1,domain:f}=t,u=D.useCallback(m=>e({...t,...m}),[e,t]),h=D.useCallback(m=>u({[m]:!(t!=null&&t[m])}),[u,t]);return g.jsxs(ws,{text:"Filters",dropdownClassName:n,end:!0,minWidth:250,children:[g.jsx(Je,{header:!0,"aria-hidden":!0,children:"Visits:"}),g.jsx(Je,{active:a,onClick:()=>h("excludeBots"),children:"Ignore visits from bots"}),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsx(Je,{header:!0,"aria-hidden":!0,children:"Short URLs:"}),g.jsx(Je,{active:o,onClick:()=>h("excludeMaxVisitsReached"),children:"Exclude with visits reached"}),g.jsx(Je,{active:l,onClick:()=>h("excludePastValidUntil"),children:"Exclude enabled in the past"}),i&&g.jsxs(g.Fragment,{children:[g.jsx(Je,{divider:!0,tag:"hr"}),g.jsxs(Je,{header:!0,"aria-hidden":!0,children:["Domain: ",!r&&g.jsx("i",{children:"loading..."})]}),r==null?void 0:r.map(m=>{const v=m.isDefault?Ud:m.domain,_=f===v;return g.jsx(Je,{active:_,onClick:()=>u({domain:_?void 0:v}),children:m.domain},m.domain)})]}),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsx(Je,{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:"tw:italic",children:"Reset to defaults"})]})},oG=({className:e,shortUrlsAmount:t,order:n,handleOrderBy:r,tagsList:i,domainsList:a})=>{const{ExportShortUrlsBtn:o,TagsSelector:l}=Mn(oG),[{search:f,tags:u,startDate:h,endDate:m,excludeBots:v,excludeMaxVisitsReached:_,excludePastValidUntil:x,domain:w,tagsMode:S="any"},O]=xw(),C=Jn("visits"),[T,j]=D.useState(),P=D.useCallback(({startDate:K,endDate:H},G)=>{O({startDate:Kl(K)??void 0,endDate:Kl(H)??void 0}),j(G)},[O]),R=D.useCallback(K=>O({search:K||void 0}),[O]),$=D.useCallback(K=>O({tags:K}),[O]),q=D.useCallback(()=>O({tagsMode:S==="any"?"all":"any"}),[S,O]);return g.jsxs("div",{className:Ce("tw:flex tw:flex-col tw:gap-y-4",e),children:[g.jsx(P1,{defaultValue:f,onChange:R}),g.jsxs(az,{children:[g.jsx(l,{immutable:!0,placeholder:"With tags...",tags:i.tags,selectedTags:u,onChange:$}),u.length>1&&g.jsxs(g.Fragment,{children:[g.jsx(Pn,{variant:"secondary",onClick:q,id:"tagsModeBtn","aria-label":"Change tags mode",className:"tw:[&]:border-l-none tw:[&]:rounded-l-none",children:g.jsx(Ke,{className:"tw:text-2xl",icon:S==="all"?IB:_J})}),g.jsx(bs,{target:"tagsModeBtn",placement:"left",children:S==="all"?"With all the tags.":"With any of the tags."})]})]}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:lg:flex-row-reverse tw:gap-y-4",children:[g.jsxs("div",{className:"tw:lg:w-2/3 tw:xl:w-1/2 tw:inline-flex tw:flex-col tw:md:flex-row tw:gap-4",children:[g.jsx("div",{className:"tw:grow",children:g.jsx(f4,{defaultText:"All short URLs",dateRangeOrInterval:T??tG(h,m),onDatesChange:P})}),g.jsx(x4e,{selected:{excludeBots:v??(C==null?void 0:C.excludeBots),excludeMaxVisitsReached:_,excludePastValidUntil:x,domain:w},onChange:O,domains:a.loading?void 0:a.domains})]}),g.jsxs("div",{className:"tw:lg:w-1/3 tw:xl:w-1/2 tw:inline-flex tw:gap-3",children:[g.jsx("div",{className:"tw:max-lg:w-1/2 tw:lg:hidden",children:g.jsx(Ov,{prefixed:!1,items:_4e,order:n,onChange:r})}),g.jsx("div",{className:"tw:max-lg:w-1/2",children:g.jsx(o,{amount:t})})]})]})]})},S4e=Nn(oG,["ExportShortUrlsBtn","TagsSelector"]);function um({currentOrder:e,field:t,className:n="tw:ml-1"}){return!e.dir||e.field!==t?null:g.jsx(Ke,{icon:e.dir==="ASC"?hJ:EJ,className:n})}const O4e=({paginator:e,currentQueryString:t=""})=>{const{currentPage:n=0,pagesCount:r=0}=e??{},i=iu(),a=D.useCallback(o=>`${i}/list-short-urls/${o}${t}`,[t,i]);return r<=1?g.jsx("div",{"data-testid":"empty-gap",className:"tw:pb-4"}):g.jsx("div",{"data-testid":"short-urls-paginator",className:Ce("tw:sticky tw:bottom-0 tw:py-4 tw:-mx-0.5","tw:flex tw:justify-around","tw:bg-lm-primary tw:dark:bg-dm-primary","tw:border-t tw:border-lm-border tw:dark:border-dm-border"),children:g.jsx(M1,{urlForPage:a,currentPage:n,pagesCount:r})})},C4e={field:"dateCreated",dir:"DESC"},sG=Ba(({listShortUrls:e,shortUrlsList:t})=>{var n,r,i;const{ShortUrlsTable:a,ShortUrlsFilteringBar:o}=Mn(sG),{page:l}=Hd(),f=Lr(),[{tags:u,search:h,startDate:m,endDate:v,orderBy:_,tagsMode:x,excludeBots:w,excludePastValidUntil:S,excludeMaxVisitsReached:O,domain:C},T]=xw(),j=k3(),[P,R]=D.useState(_??((n=j.shortUrlsList)==null?void 0:n.defaultOrdering)??C4e),{pagination:$}=(t==null?void 0:t.shortUrls)??{},q=D.useMemo(()=>{var ee;return w??((ee=j.visits)==null?void 0:ee.excludeBots)},[w,(r=j.visits)==null?void 0:r.excludeBots]),K=D.useCallback((ee,W)=>{T({orderBy:{field:ee,dir:W}}),R({field:ee,dir:W})},[T]),H=ee=>()=>K(ee,Sv(ee,P.field,P.dir)),G=ee=>g.jsx(um,{currentOrder:P,field:ee}),te=D.useCallback(ee=>T({tags:[...new Set([...u,ee])]}),[u,T]),ie=D.useCallback(({field:ee,dir:W})=>q&&ee==="visits"?{field:"nonBotVisits",dir:W}:{field:ee,dir:W},[q]),X=JP();return D.useEffect(()=>{e({page:l,searchTerm:h,tags:u,startDate:m,endDate:v,orderBy:ie(P),tagsMode:x,excludePastValidUntil:S,excludeMaxVisitsReached:O,domain:C})},[e,ie,l,h,u,m,v,P,x,S,O,C]),g.jsxs(QP,{value:X,children:[g.jsx(o,{shortUrlsAmount:(i=t.shortUrls)==null?void 0:i.pagination.totalItems,order:P,handleOrderBy:K,className:"tw:mb-4"}),g.jsx(e4,{type:"short-urls",className:"tw:mb-4"}),g.jsxs(qt,{bodyClassName:Ce({"tw:pb-0":!t.loading}),children:[g.jsx(a,{shortUrlsList:t,orderByColumn:H,renderOrderIcon:G,onTagClick:te}),!t.loading&&g.jsx(O4e,{paginator:$,currentQueryString:f.search})]})]})},()=>[Kr.visits]),E4e=Nn(sG,["ShortUrlsTable","ShortUrlsFilteringBar"]),fE=({children:e,danger:t})=>g.jsx(tt.Row,{children:g.jsx(tt.Cell,{colSpan:6,className:Ce("tw:text-center",{"tw:text-danger tw:font-bold":t}),children:e})}),T4e=({shortUrlsList:e,onTagClick:t,ShortUrlsRow:n})=>{const{error:r,loading:i,shortUrls:a}=e;return r?g.jsx(fE,{danger:!0,children:"Something went wrong while loading short URLs :("}):i?g.jsx(fE,{children:"Loading..."}):!a||a.data.length===0?g.jsx(fE,{children:"No results found"}):a==null?void 0:a.data.map(o=>g.jsx(n,{shortUrl:o,onTagClick:t},o.shortUrl))},lG=({orderByColumn:e,renderOrderIcon:t,shortUrlsList:n,onTagClick:r})=>{const{ShortUrlsRow:i}=Mn(lG),a=Ce({"tw:cursor-pointer":!!e});return g.jsx(tt,{className:"tw:mb-[-1px] tw:w-full",header:g.jsxs(tt.Row,{children:[g.jsxs(tt.Cell,{className:a,onClick:e==null?void 0:e("dateCreated"),children:["Created at ",t==null?void 0:t("dateCreated")]}),g.jsxs(tt.Cell,{className:a,onClick:e==null?void 0:e("shortCode"),children:["Short URL ",t==null?void 0:t("shortCode")]}),g.jsxs(tt.Cell,{children:[g.jsxs(Fd,{className:Ce("tw:p-0",a),onClick:e==null?void 0:e("title"),children:["Title ",t==null?void 0:t("title")]}),"  /  ",g.jsxs(Fd,{className:Ce("tw:p-0",a),onClick:e==null?void 0:e("longUrl"),children:[g.jsx("span",{className:"tw:whitespace-nowrap",children:"Long URL"})," ",t==null?void 0:t("longUrl")]})]}),g.jsx(tt.Cell,{children:"Tags"}),g.jsx(tt.Cell,{className:a,onClick:e==null?void 0:e("visits"),children:g.jsxs("span",{className:"tw:whitespace-nowrap",children:["Visits ",t==null?void 0:t("visits")]})}),g.jsx(tt.Cell,{colSpan:2,"aria-hidden":!0})]}),children:g.jsx(T4e,{ShortUrlsRow:i,shortUrlsList:n,onTagClick:r})})},A4e=Nn(lG,["ShortUrlsRow"]),j4e=(e,t)=>{e.factory("ShortUrlsList",E4e),e.decorator("ShortUrlsList",t(["mercureInfo","shortUrlsList"],["listShortUrls","createNewVisits","loadMercureInfo"])),e.factory("ShortUrlsTable",A4e),e.factory("ShortUrlsRow",VPe),e.factory("ShortUrlsRowMenu",JPe),e.decorator("ShortUrlsRowMenu",t(null,["shortUrlDeleted","deleteShortUrl"])),e.factory("ShortUrlForm",d4e),e.decorator("ShortUrlForm",t(["tagsList","domainsList"])),e.factory("CreateShortUrl",NPe),e.decorator("CreateShortUrl",t(["shortUrlCreation"],["createShortUrl","resetCreateShortUrl"])),e.factory("EditShortUrl",LPe),e.decorator("EditShortUrl",t(["shortUrlsDetails","shortUrlEdition"],["getShortUrlsDetails","editShortUrl"])),e.serviceFactory("DeleteShortUrlModal",()=>DPe),e.decorator("DeleteShortUrlModal",t(["shortUrlDeletion"],["resetDeleteShortUrl"])),e.factory("ExportShortUrlsBtn",kPe),e.factory("ShortUrlsFilteringBar",S4e),e.decorator("ShortUrlsFilteringBar",t(["tagsList","domainsList"])),e.serviceFactory("shortUrlsListReducerCreator",c3e,"listShortUrls","editShortUrl","createShortUrl"),e.serviceFactory("shortUrlsListReducer",n=>n.reducer,"shortUrlsListReducerCreator"),e.serviceFactory("shortUrlCreationReducerCreator",t4e,"createShortUrl"),e.serviceFactory("shortUrlCreationReducer",n=>n.reducer,"shortUrlCreationReducerCreator"),e.serviceFactory("shortUrlEditionReducerCreator",i4e,"editShortUrl"),e.serviceFactory("shortUrlEditionReducer",n=>n.reducer,"shortUrlEditionReducerCreator"),e.serviceFactory("shortUrlDeletionReducerCreator",s3e,"deleteShortUrl"),e.serviceFactory("shortUrlDeletionReducer",n=>n.reducer,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlsDetailsReducerCreator",a4e,"apiClientFactory"),e.serviceFactory("shortUrlsDetailsReducer",n=>n.reducer,"shortUrlsDetailsReducerCreator"),e.serviceFactory("listShortUrls",u3e,"apiClientFactory"),e.serviceFactory("createShortUrl",e4e,"apiClientFactory"),e.serviceFactory("resetCreateShortUrl",n=>n.resetCreateShortUrl,"shortUrlCreationReducerCreator"),e.serviceFactory("deleteShortUrl",o3e,"apiClientFactory"),e.serviceFactory("resetDeleteShortUrl",n=>n.resetDeleteShortUrl,"shortUrlDeletionReducerCreator"),e.serviceFactory("shortUrlDeleted",()=>_W),e.serviceFactory("getShortUrlsDetails",n=>n.getShortUrlsDetails,"shortUrlsDetailsReducerCreator"),e.serviceFactory("editShortUrl",r4e,"apiClientFactory")},P4e=({tag:e,onClose:t,isOpen:n,deleteTag:r,tagDelete:i,tagDeleted:a})=>{const{deleting:o,error:l,deleted:f,errorData:u}=i;return g.jsxs(Ql,{title:"Delete tag",variant:"danger",open:n,onClose:t,onClosed:()=>f&&a(e),onConfirm:async()=>{await r(e),t()},confirmText:o?"Deleting tag...":"Delete tag",confirmDisabled:o,children:["Are you sure you want to delete tag ",g.jsx("b",{children:e}),"?",l&&g.jsx(Mi,{variant:"error",size:"sm",className:"tw:mt-2",children:g.jsx(go,{errorData:u,fallbackMessage:"Something went wrong while deleting the tag :("})})]})},uG=({tag:e,editTag:t,onClose:n,tagEdited:r,isOpen:i,tagEdit:a})=>{const{ColorGenerator:o}=Mn(uG),[l,f]=D.useState(e),[u,h]=D.useState(o.getColorForKey(e)),{editing:m,error:v,edited:_,errorData:x}=a,w=D.useCallback(async()=>{await t({oldName:e,newName:l,color:u}),n()},[u,t,l,n,e]),S=D.useCallback(()=>_&&r({oldName:e,newName:l,color:u}),[u,_,l,e,r]);return g.jsxs(Ql,{title:"Edit tag",open:i,onClose:n,onClosed:S,onConfirm:w,confirmText:m?"Saving...":"Save",confirmDisabled:m,children:[g.jsxs("div",{className:"tw:flex",children:[g.jsx(YW,{color:u,onChange:h,className:"tw:rounded-r-none",name:"tag-color"}),g.jsx(Ti,{className:"tw:grow tw:[&]:rounded-l-none",value:l,placeholder:"Tag",required:!0,onChange:({target:O})=>f(O.value)})]}),v&&g.jsx(Mi,{variant:"error",size:"sm",className:"tw:mt-2",children:g.jsx(go,{errorData:x,fallbackMessage:"Something went wrong while editing the tag :("})})]})},R4e=Nn(uG,["ColorGenerator"]),M4e=/\s+/g,cG=e=>e.trim().toLowerCase().replace(M4e,"-"),d4=({color:e,testId:t})=>g.jsx("div",{"data-testid":t,style:{backgroundColor:e},className:Ce("tw:inline-block tw:w-[20px] tw:h-[20px] tw:rounded-full","tw:align-[-4px] tw:mr-1.5")}),fG=({tag:e,colorGenerator:t})=>g.jsx(d4,{color:t.getColorForKey(e)});let C9=1;const dG="Tag not found",hG="Add tag",N4e=e=>e!==dG,L4e=e=>e===hG,E9=e=>(C9+=1,{label:e,value:`${e}${C9}`}),D4e=e=>({tag:t,onClick:n})=>g.jsx(Ow,{colorGenerator:e,text:t.label,className:"react-tags__tag",onClose:n}),k4e=(e,t)=>({option:n,classNames:r,...i})=>{var a;const o=N4e(n.label),l=L4e(n.label);return g.jsx("div",{className:Ce(r.option,{[r.optionIsActive]:o&&n.active,"react-tags__listbox-option--not-selectable":!o}),...i,children:o?g.jsxs(g.Fragment,{children:[!l&&g.jsx(fG,{tag:`${n.label}`,colorGenerator:e}),l?g.jsxs("i",{children:['Add "',cG(((a=t.current)==null?void 0:a.input.value)??""),'"']}):n.label]}):g.jsx("i",{children:n.label})})},pG=({selectedTags:e,onChange:t,placeholder:n,tags:r,immutable:i=!1})=>{const{ColorGenerator:a}=Mn(pG),o=Jn("shortUrlCreation"),l=(o==null?void 0:o.tagFilteringMode)??"startsWith",f=D.useRef(null);return g.jsx(Whe,{ref:f,selected:e.map(E9),suggestions:r.filter(u=>!e.includes(u)).map(E9),renderTag:D4e(a),renderOption:k4e(a,f),activateFirstOption:!0,allowNew:!i,newOptionText:hG,noOptionsText:dG,placeholderText:n??"Add tags to the URL",delimiterKeys:["Enter",","],suggestionsTransform:(u,h)=>{const m=u.toLowerCase().trim();return m.length<1?[]:[...h.filter(({label:v})=>l==="includes"?v.includes(m):v.startsWith(m))].slice(0,5)},onDelete:u=>{const h=[...e];h.splice(u,1),t(h)},onAdd:({label:u})=>t([...new Set([...e,...u.split(",").map(cG)])])})},I4e=Nn(pG,["ColorGenerator"]),Ej="shlink/tagDelete",$4e={deleting:!1,deleted:!1,error:!1},mG=Gr(`${Ej}/tagDeleted`),B4e=e=>{const t=Qn(`${Ej}/deleteTag`,async r=>{await e().deleteTags([r])}),{reducer:n}=Un({name:Ej,initialState:$4e,reducers:{},extraReducers:r=>{r.addCase(t.pending,()=>({deleting:!0,deleted:!1,error:!1})),r.addCase(t.rejected,(i,{error:a})=>({deleting:!1,deleted:!1,error:!0,errorData:Bi(a)})),r.addCase(t.fulfilled,()=>({deleting:!1,deleted:!0,error:!1}))}});return{reducer:n,deleteTag:t}},h4="shlink/tagEdit",U4e={editing:!1,edited:!1,error:!1},vG=Gr(`${h4}/tagEdited`),z4e=(e,t)=>Qn(`${h4}/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})),F4e=e=>Un({name:h4,initialState:U4e,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:Bi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{oldName:i,newName:a}=r;return{oldName:i,newName:a,editing:!1,edited:!0,error:!1}})}}),p4="shlink/tagsList",dE={tags:[],filteredTags:[],stats:{},loading:!1,error:!1},T9=(e,t)=>n=>n===e?t:n,A9=(e,t)=>e.filter(n=>n!==t),q4e=(e,t)=>e.reduce((n,[r,i])=>{if(!n[r])return n;const{bots:a,nonBots:o}=i,l=n[r];return{...n,[r]:{...l,visitsSummary:l.visitsSummary&&{total:l.visitsSummary.total+a+o,bots:l.visitsSummary.bots+a,nonBots:l.visitsSummary.nonBots+o},visitsCount:(l.visitsCount??0)+a+o}}},{...t}),V4e=e=>Object.entries(e.reduce((t,{shortUrl:n,visit:r})=>(n==null||n.tags.forEach(i=>{t[i]||(t[i]={bots:0,nonBots:0}),r.potentialBot?t[i].bots+=1:t[i].nonBots+=1}),t),{})),H4e=e=>Qn(`${p4}/listTags`,async()=>{const{data:t}=await e().tagsStats(),n=t.reduce((r,{tag:i,...a})=>(r[i]=a,r),{});return{tags:Object.keys(n),stats:n}}),gG=Gr(`${p4}/filterTags`),W4e=(e,t)=>Un({name:p4,initialState:dE,reducers:{},extraReducers:n=>{n.addCase(gG,(r,{payload:i})=>({...r,filteredTags:r.tags.filter(a=>a.toLowerCase().match(i.toLowerCase()))})),n.addCase(e.pending,r=>({...r,loading:!0,error:!1})),n.addCase(e.rejected,(r,{error:i})=>({...dE,error:!0,errorData:Bi(i)})),n.addCase(e.fulfilled,(r,{payload:i})=>({...dE,stats:i.stats,tags:i.tags,filteredTags:i.tags})),n.addCase(mG,({tags:r,filteredTags:i,...a},{payload:o})=>({...a,tags:A9(r,o),filteredTags:A9(i,o)})),n.addCase(vG,({tags:r,filteredTags:i,stats:a,...o},{payload:l})=>({...o,stats:{...a,[l.newName]:a[l.oldName]},tags:r.map(T9(l.oldName,l.newName)).sort(),filteredTags:i.map(T9(l.oldName,l.newName)).sort()})),n.addCase(ch,(r,{payload:i})=>({...r,stats:q4e(V4e(i.createdVisits),r.stats)})),n.addCase(t.fulfilled,({tags:r,...i},{payload:a})=>({...i,tags:r.concat(a.tags.filter(o=>!r.includes(o)))}))}}),G4e={tag:"Tag",shortUrls:"Short URLs",visits:"Visits"},yG=Ba(({filterTags:e,tagsList:t})=>{var n,r;const{TagsTable:i}=Mn(yG),a=k3(),[o,l]=D.useState(((n=a.tags)==null?void 0:n.defaultOrdering)??{}),f=D.useMemo(()=>{const h=t.filteredTags.map(m=>{var v,_,x;const w=t.stats[m],S=((v=a.visits)!=null&&v.excludeBots?(_=w==null?void 0:w.visitsSummary)==null?void 0:_.nonBots:(x=w==null?void 0:w.visitsSummary)==null?void 0:x.total)??(w==null?void 0:w.visitsCount)??0;return{tag:m,visits:S,shortUrls:(w==null?void 0:w.shortUrlsCount)??0}});return fz(h,o)},[o,(r=a.visits)==null?void 0:r.excludeBots,t.filteredTags,t.stats]),u=JP();return t.loading?g.jsx(fc,{loading:!0}):t.error?g.jsx(Mi,{variant:"error",children:g.jsx(go,{errorData:t.errorData,fallbackMessage:"Error loading tags :("})}):g.jsx(QP,{value:u,children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-4",children:[g.jsx(P1,{onChange:e}),g.jsx("div",{className:"tw:flex tw:flex-col tw:lg:flex-row tw:lg:justify-end",children:g.jsx("div",{className:"tw:lg:w-1/2",children:g.jsx(Ov,{items:G4e,order:o,onChange:(h,m)=>l({field:h,dir:m})})})}),g.jsx(e4,{type:"tags"}),g.jsx(i,{sortedTags:f,currentOrder:o,orderByColumn:h=>()=>{const m=Sv(h,o.field,o.dir);l({field:m?h:void 0,dir:m})}})]})})},()=>[Kr.visits]),Y4e=Nn(yG,["TagsTable"]),K4e=20,bG=({sortedTags:e,orderByColumn:t,currentOrder:n})=>{const{TagsTableRow:r}=Mn(bG),i=D.useRef(!0),{page:a=1}=Gd(),[o,l]=Vje("page",Number(a)),f=D.useCallback(_=>{l(_),scrollTo(0,0)},[l]),u=Gf(e,K4e),h=u.length>1,m=u[o-1]??[];D.useEffect(()=>{i.current||f(1),i.current=!1},[f,e]);const v="tw:cursor-pointer tw:top-(--header-height) tw:sticky-cell";return g.jsxs(qt,{bodyClassName:h?"tw:pb-1":"",children:[g.jsxs(tt,{header:g.jsxs(tt.Row,{children:[g.jsxs(tt.Cell,{onClick:t("tag"),className:v,children:["Tag ",g.jsx(um,{currentOrder:n,field:"tag"})]}),g.jsxs(tt.Cell,{onClick:t("shortUrls"),className:`tw:lg:text-right ${v}`,children:["Short URLs ",g.jsx(um,{currentOrder:n,field:"shortUrls"})]}),g.jsxs(tt.Cell,{onClick:t("visits"),className:`tw:lg:text-right ${v}`,children:["Visits ",g.jsx(um,{currentOrder:n,field:"visits"})]}),g.jsx(tt.Cell,{className:v,children:g.jsx("span",{className:"tw:sr-only",children:"Options"})})]}),children:[m.length===0&&g.jsx(tt.Row,{children:g.jsx(tt.Cell,{colSpan:4,className:"tw:text-center",children:"No tags found"})}),m.map(_=>g.jsx(r,{tag:_},_.tag))]}),h&&g.jsx("div",{className:Ce("tw:sticky tw:bottom-0 tw:py-4 tw:-mx-0.5","tw:flex tw:justify-around","tw:bg-lm-primary tw:dark:bg-dm-primary","tw:border-t tw:border-lm-border tw:dark:border-dm-border"),"data-testid":"tags-paginator",children:g.jsx(M1,{pagesCount:u.length,currentPage:o,onPageChange:f})})]},o)},Z4e=Nn(bG,["TagsTableRow"]),wG=({tag:e})=>{const{DeleteTagConfirmModal:t,EditTagModal:n,ColorGenerator:r}=Mn(wG),{flag:i,setToFalse:a,setToTrue:o}=Wt(!1,!0),{flag:l,setToFalse:f,setToTrue:u}=Wt(!1,!0),h=iu(),m=gw();return g.jsxs(tt.Row,{className:"tw:max-lg:relative",children:[g.jsxs(tt.Cell,{columnName:"Tag",children:[g.jsx(fG,{tag:e.tag,colorGenerator:r})," ",e.tag]}),g.jsx(tt.Cell,{className:"tw:lg:text-right",columnName:"Short URLs",children:g.jsx(gn,{to:`${h}/list-short-urls/1?tags=${encodeURIComponent(e.tag)}`,children:Rn(e.shortUrls)})}),g.jsx(tt.Cell,{className:"tw:lg:text-right",columnName:"Visits",children:g.jsx(gn,{to:`${h}/tag/${e.tag}/visits`,children:Rn(e.visits)})}),g.jsx(tt.Cell,{className:"tw:lg:text-right tw:max-lg:absolute tw:max-lg:top-[-19px] tw:max-lg:right-0 tw:max-lg:p-0",children:g.jsxs(y1,{children:[g.jsxs(Je,{onClick:u,children:[g.jsx(Ke,{icon:DB,fixedWidth:!0,className:"tw:mr-1"})," Edit"]}),g.jsxs(Je,{disabled:!m||!m.canAddItemWithName(e.tag),onClick:()=>m==null?void 0:m.addItemToCompare({name:e.tag,query:e.tag,style:r.stylesForKey(e.tag)}),children:[g.jsx(Ke,{icon:l1,fixedWidth:!0,className:"tw:mr-1"})," Compare visits"]}),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsxs(Je,{className:"tw:text-danger",onClick:o,children:[g.jsx(Ke,{icon:gJ,fixedWidth:!0,className:"tw:mr-1"})," Delete tag"]})]})}),g.jsx(n,{tag:e.tag,onClose:f,isOpen:l}),g.jsx(t,{tag:e.tag,onClose:a,isOpen:i})]})},X4e=Nn(wG,["DeleteTagConfirmModal","EditTagModal","ColorGenerator"]),Q4e=(e,t)=>{e.factory("TagsSelector",I4e),e.serviceFactory("DeleteTagConfirmModal",()=>P4e),e.decorator("DeleteTagConfirmModal",t(["tagDelete"],["deleteTag","tagDeleted"])),e.factory("EditTagModal",R4e),e.decorator("EditTagModal",t(["tagEdit"],["editTag","tagEdited"])),e.factory("TagsTableRow",X4e),e.factory("TagsTable",Z4e),e.factory("TagsList",Y4e),e.decorator("TagsList",t(["tagsList","mercureInfo"],["filterTags","createNewVisits","loadMercureInfo"])),e.serviceFactory("tagEditReducerCreator",F4e,"editTag"),e.serviceFactory("tagEditReducer",n=>n.reducer,"tagEditReducerCreator"),e.serviceFactory("tagDeleteReducerCreator",B4e,"apiClientFactory"),e.serviceFactory("tagDeleteReducer",n=>n.reducer,"tagDeleteReducerCreator"),e.serviceFactory("tagsListReducerCreator",W4e,"listTags","createShortUrl"),e.serviceFactory("tagsListReducer",n=>n.reducer,"tagsListReducerCreator"),e.serviceFactory("listTags",H4e,"apiClientFactory"),e.serviceFactory("filterTags",()=>gG),e.serviceFactory("deleteTag",n=>n.deleteTag,"tagDeleteReducerCreator"),e.serviceFactory("tagDeleted",()=>mG),e.serviceFactory("editTag",z4e,"apiClientFactory","ColorGenerator"),e.serviceFactory("tagEdited",()=>vG)},J4e=new MF,eRe=e=>J4e.parse(e),j9=e=>e.toLowerCase().trim();class tRe{constructor(t){Il(this,"colors"),Il(this,"lights");var n;this.storage=t,this.colors=((n=this.storage)==null?void 0:n.getTagColors())??{},this.lights={}}getColorForKey(t){const n=j9(t);return this.colors[n]||this.setColorForKey(n,GPe())}setColorForKey(t,n){var r;const i=j9(t);return this.colors[i]=n,(r=this.storage)==null||r.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]=GW(n)),this.lights[n]}}const _G=({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)},nRe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);_G(e,i,n)};class rRe{constructor(t,n){this.fetch=t,this.window=n}async saveImage(t,n){const r=await this.fetch(t).then(a=>a.blob()),i=URL.createObjectURL(r);_G(this.window,i,n)}}class iRe{constructor(t,n){Il(this,"exportVisits",(r,i)=>{i.length&&this.exportCsv(r,i)}),Il(this,"exportShortUrls",r=>{r.length&&this.exportCsv("short_urls.csv",r)}),Il(this,"exportCsv",(r,i)=>{const a=this.jsonToCsv(i);nRe(this.window,a,r)}),this.window=t,this.jsonToCsv=n}}function aRe(e){e.constant("window",window),e.constant("fetch",window.fetch.bind(window)),e.service("ImageDownloader",rRe,"fetch","window"),e.service("ColorGenerator",tRe,"TagColorsStorage"),e.constant("jsonToCsv",eRe),e.service("ReportExporter",iRe,"window","jsonToCsv"),e.serviceFactory("useTimeoutToggle",()=>b3)}const Uv=({visits:e,shortUrl:t,children:n,title:r})=>g.jsx("header",{children:g.jsxs(qt,{children:[g.jsxs("h2",{className:"tw:flex tw:justify-between tw:items-center",children:[g.jsx(Sw,{}),g.jsx("span",{className:"tw:text-center tw:hidden tw:sm:block",children:g.jsx("small",{children:r})}),g.jsxs("span",{className:Ce("tw:px-3 tw:py-1.5 tw:rounded-md tw:ml-3","tw:font-bold tw:text-white tw:text-2xl","tw:bg-lm-main tw:dark:bg-dm-main"),"data-testid":"badge",children:["Visits:"," ",g.jsx(HW,{visitsCount:e.length,shortUrl:t})]})]}),g.jsx("h3",{className:"tw:text-center tw:block tw:sm:hidden tw:mt-3",children:g.jsx("small",{children:r})}),n&&g.jsx("div",{className:"tw:md:mt-2",children:n})]})}),m4=({children:e,className:t})=>g.jsx("div",{className:Ce("tw:flex tw:justify-between tw:items-center",t),children:e}),xG=({title:e,footer:t,children:n})=>g.jsxs(fr,{role:"document",children:[g.jsx(fr.Header,{children:e}),g.jsx(fr.Body,{children:n}),t&&g.jsx(fr.Footer,{className:"tw:sticky tw:bottom-0",children:t})]}),SG=D.createContext(null),{Provider:k6e}=SG,v4=e=>{const t=D.useContext(SG)??void 0,n=D.useMemo(()=>t?{}:{width:"100%",height:e},[e,t]);return{ChartWrapper:t?D.Fragment:Nye,dimensions:t,wrapperDimensions:n}},OG={color:"white",background:"rgb(0 0 0 / .9)",border:"none",borderRadius:"5px"},oRe={marginBottom:"5px",fontWeight:"bold"},CG={contentStyle:OG,labelStyle:oRe,itemStyle:{padding:0}},P9=["#97BBCD","#F7464A","#46BFBD","#FDB45C","#949FB1","#57A773","#414066","#08B2E3","#B6C454","#DCDCDC","#463730"],EG=e=>P9[e%P9.length],Qb=()=>Cv()?"#46e587":"#1DAA58",sRe=()=>Cv()?"rgba(70, 229, 135, 0.4)":"rgba(29, 170, 88, 0.4)",lRe=({chartData:e,showNumbers:t})=>g.jsx("ul",{className:"tw:p-0 tw:m-0 tw:space-y-1",children:e.map(({name:n,color:r,value:i},a)=>g.jsxs("li",{className:"tw:flex tw:items-center",children:[g.jsx(d4,{color:r,testId:`color-bullet-${a}`}),g.jsxs("small",{className:"tw:truncate tw:grow","data-testid":`name-${a}`,children:[n,t&&g.jsxs("b",{children:[" (",Rn(i),")"]})]})]},n))}),R9=e=>D.useMemo(()=>Object.entries(e).map(([t,n],r)=>({name:t,value:n,color:EG(r)})),[e]),uRe=({stats:e,prevStats:t,showNumbersInLegend:n})=>{const r=R9(e),i=R9(t),a=i.length>0,o=Cv()?wse:bse,{ChartWrapper:l,dimensions:f,wrapperDimensions:u}=v4(300);return g.jsxs("div",{className:"tw:flex tw:flex-col tw:md:flex-row tw:md:items-center tw:gap-y-4",children:[g.jsx("div",{className:"tw:md:flex-7",children:g.jsx("div",{style:u,children:g.jsx(l,{children:g.jsxs(rje,{...f,children:[g.jsx(ea,{formatter:Rn,contentStyle:OG,itemStyle:{color:"white"}}),g.jsx(vo,{data:r,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"100%",innerRadius:a?"65%":"50%",animationBegin:0,children:r.map((h,m)=>g.jsx(Ll,{fill:h.color,stroke:o},`${h.name}-${m}`))}),a&&g.jsx(vo,{data:i,dataKey:"value",nameKey:"name",startAngle:360,endAngle:0,outerRadius:"55%",innerRadius:"20%",animationBegin:0,stroke:o,fill:Qb()})]})})})}),g.jsx("div",{className:"tw:md:flex-5",children:g.jsx(lRe,{chartData:r,showNumbers:n})})]})},M9=({title:e,...t})=>{const{flag:n,toggle:r}=Wt(!1,!0);return g.jsx(xG,{title:g.jsxs(m4,{children:[e,g.jsx(hs,{checked:n,onChange:r,children:"Show numbers"})]}),children:g.jsx(uRe,{...t,showNumbersInLegend:n})})},cRe=D.forwardRef(({visitsGroups:e},t)=>{const n=D.useMemo(()=>Object.entries(e),[e]);return n.length===0?null:g.jsx("ul",{className:"tw:mb-0 tw:mt-2 tw:flex tw:flex-wrap tw:justify-center tw:gap-4",ref:t,children:n.map(([r,i],a)=>g.jsxs("li",{className:"tw:inline",children:[g.jsx(d4,{color:TG(i)}),g.jsxs("strong",{children:[r," (",Rn(i.length),")"]})]},`${r}${a}`))})}),fRe={monthly:"Month",weekly:"Week",daily:"Day",hourly:"Hour"},dRe={hourly:e=>({hours:e}),daily:e=>({days:e}),weekly:e=>({weeks:e}),monthly:e=>({months:e})},hRe={hourly:gfe,daily:N1,weekly:vfe,monthly:z0},g4={hourly:e=>F0(e,"yyyy-MM-dd HH:00"),daily:e=>Ml(e),weekly(e){const t=Ml(Tm(e)),n=Ml(Cfe(e));return`${t} - ${n}`},monthly:e=>F0(e,"yyyy-MM")},pRe=e=>{var t;const n=Object.values(e).filter(o=>o.length>0);if(n.length===0)return"monthly";const r=new Date,i=n.map(o=>Vl(o[o.length-1].date)),a=bF(i);return((t=[[()=>N1(r,a)<=2,"hourly"],[()=>z0(r,a)<=1,"daily"],[()=>z0(r,a)<=6,"weekly"]].find(([o])=>o()))==null?void 0:t[1])??"monthly"},mRe=(e,t)=>Object.keys(t).reduce((n,r)=>(n[r]=Qz(t[r],i=>g4[e](Vl(i.date))),n),{}),vRe=(e,t)=>t.reduce((n,r)=>{const i=g4[e](Vl(r.date));return n[i]=n[i]??[],n[i].push(r),n},{}),gRe=(e,t)=>{const n=Object.values(t).filter(h=>h.length>0).map(h=>[...h].reverse());if(n.length===0)return[];const r=hRe[e],i=g4[e],a=dRe[e],o=n.flat(),l=Vl(o[0].date),f=Vl(o[o.length-1].date),u=r(f,l)||1;return[{formattedDate:i(l),date:l},...t4(u,h=>{const m=cfe(l,a(h));return{formattedDate:i(m),date:m}})]},TG=e=>{if(e.color)return e.color;const t={main:wm,highlighted:LT,previous:Qb()};return e.type?t[e.type]:wm},N9=(e,t)=>D.useMemo(()=>Object.values(e).find(n=>n.type===t)??[],[e,t]),yRe=(e,t,n)=>{const r=N9(e,"main"),i=N9(e,"highlighted"),a=D.useMemo(()=>n?vRe(t,r):{},[n,t,r]),o=D.useCallback((l,{payload:f})=>{const u=a[f.formattedDate]??[];n==null||n(u===i?[]:u)},[a,i,n]);return n&&{cursor:"pointer",onClick:o}},L9=e=>{var t,n;return(n=(t=e.activePayload)==null?void 0:t[0])==null?void 0:n.payload},AG=({visitsGroups:e,setSelectedVisits:t,matchMedia:n,onDateRangeChange:r})=>{const[i,a]=D.useState(pRe(e)),o=yW(767,n??window.matchMedia),l=D.useMemo(()=>{const ie=mRe(i,e),X=Object.keys(ie);return gRe(i,e).map(({formattedDate:ee,date:W})=>({date:W,formattedDate:ee,...X.reduce((B,U)=>(B[U]=ie[U][ee]??0,B),{})}))},[i,e]),f=yRe(e,i,t),{flag:u,toggle:h,setToFalse:m}=Wt(!1,!0),v=D.useId(),_=D.useRef(null),[x,w]=D.useState(o?300:400);D.useLayoutEffect(()=>{if(!u)return w(o?300:400),()=>{};const ie=new ResizeObserver(()=>{const X=window.innerHeight,{height:ee}=_.current.getBoundingClientRect();w(X-ee-98)});return ie.observe(_.current),()=>ie.disconnect()},[u,o,_]),Hje("Escape",m,u);const{ChartWrapper:S,dimensions:O,wrapperDimensions:C}=v4(x),[T,j]=D.useState(),[P,R]=D.useState(),$=D.useCallback(()=>{j(void 0),R(void 0)},[]),q=D.useCallback((ie,X)=>{const ee=L9(ie);X.button===0&&ee&&j(ee)},[]),K=D.useCallback(ie=>{const X=L9(ie);T&&X&&R(X)},[T]),H=D.useCallback(()=>{if(!T||!P)return;const ie=[T.date,P.date],X=hfe(ie),ee=bF(ie);$(),r({startDate:X,endDate:ee})},[r,$,P,T]),{flag:G,toggle:te}=Wt(!1,!0);return g.jsxs(fr,{className:Ce({"tw:fixed tw:top-0 tw:bottom-0 tw:left-0 tw:right-0 tw:z-1030":u}),"data-testid":"line-chart-card",children:[g.jsxs(fr.Header,{role:"heading","aria-level":4,className:"tw:flex tw:justify-between tw:items-center",children:["Visits over time",g.jsxs("div",{className:"tw:flex tw:content-center tw:gap-1",children:[g.jsx(R1,{"aria-label":u?"Collapse":"Expand","aria-expanded":u,"aria-controls":v,size:"sm",onClick:h,children:g.jsx(Ke,{icon:u?XQ:WJ})}),g.jsxs(Da,{isOpen:G,toggle:te,className:"tw:flex tw:items-center",children:[g.jsx(ys,{caret:!0,color:"link",className:"tw:text-sm tw:p-0",children:"Group by"}),g.jsx(Xl,{end:!0,children:G&&Object.entries(fRe).map(([ie,X])=>g.jsx(Je,{active:i===ie,onClick:()=>a(ie),children:X},ie))})]})]})]}),g.jsxs(fr.Body,{id:v,children:[g.jsx(S,{...C,children:g.jsxs(nje,{className:"tw:select-none",data:l,...O,onMouseDown:q,onMouseMove:K,onMouseUp:H,children:[g.jsx(lh,{dataKey:"formattedDate"}),g.jsx(uh,{tickFormatter:Rn,yAxisId:"1"}),g.jsx(ea,{formatter:Rn,...CG}),g.jsx(HP,{strokeOpacity:Cv()?.1:.9}),Object.entries(e).map(([ie,X])=>X.length>0&&g.jsx(sh,{yAxisId:"1",dataKey:ie,type:"monotone",stroke:TG(X),strokeWidth:2,activeDot:X.type==="previous"?void 0:f,strokeDasharray:X.type==="previous"?"8 3":void 0},ie)),T&&P&&g.jsx(Iv,{yAxisId:"1",x1:T.formattedDate,x2:P.formattedDate})]})}),g.jsx(cRe,{visitsGroups:e,ref:_})]})]})},bRe=({toggleClassName:e,ranges:t,value:n,setValue:r})=>{const[i,a]=Wt();return g.jsxs(Da,{isOpen:i,toggle:a,children:[g.jsx(ys,{caret:!0,color:"link",className:e,children:"Paginate"}),g.jsx(Xl,{end:!0,children:i&&g.jsxs(g.Fragment,{children:[t.map(o=>g.jsxs(Je,{active:o===n,onClick:()=>r(o),children:[g.jsx("b",{children:o})," items per page"]},o)),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsx(Je,{disabled:n===1/0,onClick:()=>r(1/0),children:g.jsx("i",{children:"Clear pagination"})})]})})]})},D9=e=>e.startsWith("hidden_"),wRe=({stats:e,prevStats:t,highlightedStats:n,highlightedLabel:r,max:i,onClick:a})=>{const o=D.useMemo(()=>Object.entries(e).map(([m,v])=>{const _=(n==null?void 0:n[m])??0,x=(t==null?void 0:t[m])??0,w=D9(m);return{name:m,amount:Math.max(v,x),nonHighlightedAmount:w?null:v-_,highlightedAmount:w?null:_,prevAmount:w?null:x}}),[e,t,n]),l=D.useMemo(()=>{const m=o.reduce((v,{name:_})=>v>_.length?v:_.length,0);return Math.min(150,m*7)},[o]),{ChartWrapper:f,dimensions:u,wrapperDimensions:h}=v4(Math.max(300,o.length*(t?44:22)));return g.jsx(f,{...h,children:g.jsxs(ije,{layout:"vertical",data:o,barCategoryGap:3,...u,children:[g.jsx(lh,{type:"number",dataKey:"amount",tickFormatter:Rn,domain:i?[0,i]:void 0}),g.jsx(uh,{type:"category",dataKey:"name",width:l,interval:0,style:{fontSize:".8rem"},tickFormatter:m=>D9(m)?"":m}),g.jsx(HP,{strokeOpacity:Cv()?.05:.9}),g.jsx(ea,{filterNull:!0,...CG,formatter:(m,v)=>[Rn(m),v==="highlightedAmount"?r:v==="prevAmount"?"Previous period":n?"Non-selected":"Visits"]}),g.jsx(ss,{dataKey:"nonHighlightedAmount",stackId:"main",cursor:"pointer",fill:wm,onClick:({name:m})=>a==null?void 0:a(m),children:o.map(m=>g.jsx(Ll,{fill:gse,stroke:wm,strokeWidth:2},m.name))}),n&&g.jsx(ss,{dataKey:"highlightedAmount",stackId:"main",cursor:"pointer",fill:LT,onClick:({name:m})=>a==null?void 0:a(m),children:o.map(m=>g.jsx(Ll,{fill:yse,stroke:LT,strokeWidth:2},m.name))}),t&&g.jsx(ss,{dataKey:"prevAmount",fill:Qb(),children:o.map(m=>g.jsx(Ll,{fill:sRe(),stroke:Qb(),strokeWidth:2},m.name))})]})})},_Re=e=>typeof e=="string"?e.toLowerCase():e,xRe=([e])=>e,SRe=([,e])=>e,Fy=({stats:e,prevStats:t,highlightedStats:n,title:r,sortingItems:i,extraHeaderContent:a,withPagination:o=!0,...l})=>{const[f,u]=D.useState({}),[h,m]=D.useState(1),[v,_]=D.useState(50),x=D.useCallback((q,K)=>{const H=Object.entries(q),G=f.field?Jue(H,([te,ie])=>_Re(f.field===Object.keys(K)[0]?te:ie)):H;return!f.dir||f.dir==="ASC"?G:[...G].reverse()},[f.dir,f.field]),w=D.useCallback(q=>{const K=q[h-1];if(h<q.length)return K;const H=q[0].length;return[...K,...t4(H-K.length,G=>[`hidden_${G}`,0])]},[h]),S=D.useCallback(q=>g.jsx(M1,{currentPage:h,pagesCount:q,onPageChange:m}),[h]),O=D.useCallback((q,K,H,G)=>{const te=x(q,K),ie=te.map(xRe),X=H&&Object.entries({...PL(ie,ie.map(()=>0)),...H}),ee=G&&Object.entries({...PL(ie,ie.map(()=>0)),...G});if(te.length<=v)return{currentPageStats:Object.fromEntries(te),currentPageHighlightedStats:X&&Object.fromEntries(X),currentPagePrevStats:ee&&Object.fromEntries(ee)};const W=Gf(te,v),B=X&&Gf(X,v),U=ee&&Gf(ee,v);return{currentPageStats:Object.fromEntries(w(W)),currentPageHighlightedStats:B&&Object.fromEntries(w(B)),currentPagePrevStats:U&&Object.fromEntries(w(U)),pagination:S(W.length),max:bce(Math.max(...te.map(SRe)))}},[w,x,v,S]),{currentPageStats:C,currentPagePrevStats:T,currentPageHighlightedStats:j,pagination:P,max:R}=D.useMemo(()=>O(e,i,n&&Object.keys(n).length>0?n:void 0,t&&Object.keys(t).length>0?t:void 0),[O,n,t,i,e]),$=D.useMemo(()=>Object.keys(C),[C]);return g.jsx(xG,{title:g.jsxs(m4,{children:[r,g.jsxs("div",{className:"tw:flex tw:items-center tw:gap-2",children:[a==null?void 0:a(P?$:void 0),o&&Object.keys(e).length>50&&g.jsx(bRe,{toggleClassName:"tw:text-sm tw:p-0",ranges:[50,100,200,500],value:v,setValue:q=>{_(q),m(1)}}),g.jsx(Ov,{isButton:!1,right:!0,items:i,order:f,onChange:(q,K)=>{u({field:q,dir:K}),m(1)}})]})]}),footer:P&&g.jsx("div",{className:"tw:flex tw:justify-around tw:items-center","data-testid":"chart-paginator",children:P}),children:g.jsx(wRe,{stats:C,prevStats:T,highlightedStats:j,max:R,...l})})},y4=e=>e.type!==void 0,ORe=e=>e.type!==void 0,CRe=e=>{const t=Jz(e,n=>y4(n.visit)?"orphanVisits":"nonOrphanVisits");return{orphanVisits:[],nonOrphanVisits:[],...t}},jG=(e,{shortCode:t,domain:n},{endDate:r,startDate:i}={})=>e.filter(({shortUrl:a,visit:o})=>a&&sm(a,t,n)&&Bv(o.date,i,r)),PG=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>i&&i3e(i,t)&&Bv(a.date,r,n)),RG=(e,t,{endDate:n,startDate:r}={})=>e.filter(({shortUrl:i,visit:a})=>(i==null?void 0:i.tags.includes(t))&&Bv(a.date,r,n)),qy=(e,t)=>Qz(e,n=>n[t]),ERe=e=>{const t=((e==null?void 0:e.startDate)&&Kl(e==null?void 0:e.startDate))??void 0,n=((e==null?void 0:e.endDate)&&Kl(e==null?void 0:e.endDate))??void 0;return{startDate:t,endDate:n}},Tj=({filter:e,dateRange:t})=>{const{startDate:n,endDate:r}=ERe(t),i=(e==null?void 0:e.excludeBots)||void 0;return{startDate:n,endDate:r,excludeBots:i}},TRe=e=>aG(e.dateRange),ARe=({dateRange:e,...t})=>({...t,dateRange:g4e(e)}),k9=(e,t)=>{if(!(!t||!(e in t)))return t[e]&&Kl(t[e])||""},MG=()=>{const e=wo(),t=Gd(),{startDate:n,endDate:r,orphanVisitsType:i,excludeBots:a,loadPrevInterval:o,...l}=t,f=D.useMemo(()=>({dateRange:n!=null||r!=null?tG(n,r):void 0,visitsFilter:{orphanVisitsType:i,excludeBots:a!==void 0?a==="true":void 0},loadPrevInterval:o!==void 0?o==="true":void 0}),[r,a,o,i,n]),u=D.useCallback(h=>{const{dateRange:m,visitsFilter:v={},loadPrevInterval:_}=j1(f,h),{excludeBots:x,orphanVisitsType:w}=v,S={...l,startDate:k9("startDate",m),endDate:k9("endDate",m),excludeBots:x===void 0?void 0:xj(x),orphanVisitsType:w,loadPrevInterval:_===void 0?void 0:xj(_)},O=w3(S),C=O?`?${O}`:"";e(C,{replace:!0,relative:"route"})},[f,e,l]);return[f,u]},jRe=()=>g.jsx(Sje,{attribution:'&copy <a href="https://osm.org/copyright">OpenStreetMap</a> contributors',url:"https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"}),PRe=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}},NG=({toggle:e,isOpen:t,title:n,locations:r=[]})=>g.jsx(Ql,{open:t,onClose:e,title:n,variant:"cover",children:g.jsxs(wje,{...PRe(r),className:"tw:h-full tw:w-full",children:[g.jsx(jRe,{}),r.map(({cityName:i,latLong:a,count:o},l)=>g.jsx(_je,{position:a,children:g.jsxs(xje,{children:[g.jsx("b",{children:o})," visit",o>1?"s":""," from ",g.jsx("b",{children:i})]})},l))]})}),RRe=({modalTitle:e,activeCities:t,locations:n=[]})=>{const{flag:r,setToTrue:i,setToFalse:a}=Wt(!1,!0),{flag:o,toggle:l}=Wt(!1,!0),[f,u]=D.useState([]),h=D.useCallback(m=>{u(m?n.filter(m):n),i()},[n,i]);return g.jsxs(g.Fragment,{children:[!t&&g.jsx(R1,{onClick:()=>h(),"aria-label":"Show in map",title:"Show in map",children:g.jsx(Ke,{icon:wE})}),t&&g.jsxs(Da,{isOpen:o,toggle:l,children:[g.jsx(ys,{color:"link",title:"Show in map",children:g.jsx(Ke,{icon:wE})}),g.jsx(Xl,{end:!0,children:o&&g.jsxs(g.Fragment,{children:[g.jsx(Je,{onClick:()=>h(),children:"Show all locations"}),g.jsx(Je,{onClick:()=>h(({cityName:m})=>t.includes(m)),children:"Show locations in current page"})]})})]}),g.jsx(NG,{toggle:a,isOpen:r,title:e,locations:f})]})},LG=({onChange:e,selected:t={},className:n,isOrphanVisits:r=!1,withPrevInterval:i=!1,disabled:a})=>{const{orphanVisitsType:o,excludeBots:l=!1,loadPrevInterval:f=!1}=t,u=v=>({active:o===v,onClick:()=>e({...t,orphanVisitsType:v===o?void 0:v})}),h=D.useCallback(()=>e({...t,excludeBots:!l}),[l,e,t]),m=D.useCallback(()=>e({...t,loadPrevInterval:!f}),[f,e,t]);return g.jsxs(ws,{disabled:a,text:"More",dropdownClassName:n,end:!0,minWidth:250,children:[i&&g.jsxs(g.Fragment,{children:[g.jsx(Je,{active:f,onClick:m,children:"Compare with previous period"}),g.jsx(Je,{divider:!0,tag:"hr"})]}),g.jsx(Je,{header:!0,"aria-hidden":!0,children:"Bots:"}),g.jsx(Je,{active:l,onClick:h,children:"Exclude potential bots"}),r&&g.jsxs(g.Fragment,{children:[g.jsx(Je,{divider:!0,tag:"hr"}),g.jsx(Je,{header:!0,"aria-hidden":!0,children:"Orphan visits type:"}),g.jsx(Je,{...u("base_url"),children:"Base URL"}),g.jsx(Je,{...u("invalid_short_url"),children:"Invalid short URL"}),g.jsx(Je,{...u("regular_404"),children:"Regular 404"})]}),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsx(Je,{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:g.jsx("i",{children:"Reset to defaults"})})]})},MRe=({className:e,value:t,...n})=>{const r=Math.min(100,Math.max(0,t));return g.jsx("div",{className:Ce("tw:flex tw:h-4 tw:bg-gray-100 tw:overflow-hidden tw:rounded-md",e),...n,children:g.jsx("div",{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":r,className:"tw:bg-lm-brand tw:dark:bg-dm-brand tw:transition-[width]",style:{width:`${r}%`}})})},DG=({info:e})=>{const{loading:t,errorData:n,progress:r}=e;return g.jsxs(g.Fragment,{children:[t&&r===null&&g.jsx(fc,{loading:!0}),t&&r!==null&&g.jsxs(fc,{loading:!0,children:["This is going to take a while... :S",g.jsx(MRe,{value:r,className:"tw:mt-4"})]}),n&&g.jsx(Mi,{variant:"error",children:g.jsx(go,{errorData:n,fallbackMessage:"An error occurred while loading visits :("})})]})},i0=({children:e,showFallback:t})=>g.jsxs(g.Fragment,{children:[t&&g.jsx(fc,{children:"There are no visits matching current filter"}),!t&&g.jsx(g.Fragment,{children:e})]}),NRe=({visitsDeletion:e,deleteVisits:t})=>{const{deleting:n}=e,{flag:r,setToTrue:i}=Wt(!1,!0);return g.jsx(qt,{title:g.jsx("span",{className:"tw:text-danger tw:font-bold tw:text-base",children:"Danger zone"}),children:g.jsxs(m4,{children:[g.jsxs("dl",{className:"tw:m-0 tw:mr-3",children:[g.jsx("dt",{children:"Delete visits."}),g.jsxs("dd",{className:"tw:m-0",children:["This will delete ",g.jsx("b",{children:"all"})," visits, not only the ones matching current filter."]})]}),!r&&g.jsx(Pn,{variant:"danger",solid:!0,className:"tw:whitespace-nowrap",onClick:i,children:"Delete visits"}),r&&g.jsxs(Pn,{solid:!0,variant:"danger",disabled:n,className:"tw:whitespace-nowrap",onClick:t,autoFocus:!0,children:[!n&&g.jsx(g.Fragment,{children:"Click again to confirm"}),n&&g.jsx(g.Fragment,{children:"Deleting..."})]})]})})},Vy="Others",LRe=["Android Browser","Chrome","Chromium","Firefox","Internet Explorer","Microsoft Edge","Opera","Safari","Samsung Internet for Android","Vivaldi","WeChat"],DRe=e=>{if(!Yu(e))return{browser:Vy,os:Vy};const{browser:{name:t},os:{name:n}}=jje.parse(e);return{os:n??Vy,browser:t&&LRe.includes(t)?t:Vy}},kRe=e=>{var t;return Yu(e)?((t=e.split("/")[e.includes("://")?2:0])==null?void 0:t.split(":")[0])??"":"Direct"},kG=(e,t)=>e[t]!==void 0,I9=e=>typeof e=="number"?e:e?parseFloat(e):0,IRe=(e,{os:t})=>{e[t]=(e[t]||0)+1},$Re=(e,{browser:t})=>{e[t]=(e[t]||0)+1},BRe=(e,{referer:t})=>{e[t]=(e[t]||0)+1},IG=e=>(t,n)=>{const r=kG(n,e)?n[e]:"Unknown";t[r]=(t[r]||0)+1},URe=IG("country"),zRe=IG("city"),FRe=(e,t)=>{if(!kG(t,"city")||t.city==="Unknown")return;const{city:n,latitude:r,longitude:i}=t,a=e[n]||{cityName:n,count:0,latLong:[I9(r),I9(i)]};a.count+=1,e[n]=a},qRe=(e,t)=>{if(!ORe(t))return;const{visitedUrl:n}=t;e[n]=(e[n]||0)+1},Aj=e=>e.reduce((t,n)=>(IRe(t.os,n),$Re(t.browsers,n),BRe(t.referrers,n),URe(t.countries,n),zRe(t.cities,n),FRe(t.citiesForMap,n),qRe(t.visitedUrls,n),t),{os:{},browsers:{},referrers:{},countries:{},cities:{},citiesForMap:{},visitedUrls:{}}),Jb=e=>e.map(t=>{const{userAgent:n,date:r,referer:i,visitLocation:a,potentialBot:o}=t;return{date:r,potentialBot:o,userAgent:n,...DRe(n),referer:kRe(i),country:(a==null?void 0:a.countryName)||"Unknown",city:(a==null?void 0:a.cityName)||"Unknown",latitude:a==null?void 0:a.latitude,longitude:a==null?void 0:a.longitude,visitedUrl:t.visitedUrl,type:y4(t)?t.type:void 0}}),VRe=Object.freeze(Object.defineProperty({__proto__:null,normalizeVisits:Jb,processStatsFromVisits:Aj},Symbol.toStringTag,{value:"Module"})),Vp=20,HRe=({browser:e,os:t,referer:n,country:r,city:i,userAgent:a,...o},l,f)=>{const u=f?a:`${r} ${i}`;return`${e} ${t} ${n} ${u} ${o.visitedUrl}`.toLowerCase().includes(l.toLowerCase())},WRe=(e,t,n)=>t.filter(r=>HRe(r,e,n)),GRe=(e,t)=>fz(t,e),YRe=({visits:e,searchTerm:t,order:n,searchInRawUserAgent:r})=>{const i=t?WRe(t,e,r):[...e],a=GRe(n,i),o=a.length;return{visitsGroups:Gf(a,Vp),total:o}},to="tw:cursor-pointer tw:md:sticky-cell-separated tw:md:top-[calc(var(--header-height)+41px)]",KRe=({visits:e,selectedVisits:t=[],setSelectedVisits:n})=>{var r;const[i,a]=D.useState(),o=D.useCallback(R=>{a(R),x(1),n([])},[n]),[l,f]=D.useState({}),{flag:u,toggle:h}=Wt(!1,!0),m=D.useCallback(()=>{h(),f({})},[h]),v=D.useMemo(()=>YRe({visits:e,searchTerm:i,order:l,searchInRawUserAgent:u}),[e,i,l,u]),[_,x]=D.useState(1),w=_*Vp,S=w-Vp,O=D.useMemo(()=>{var R,$;return!!(($=(R=v.visitsGroups[_-1])==null?void 0:R[0])!=null&&$.visitedUrl)},[_,v.visitsGroups]),C=6+Number(O)+(u?1:2),T=v.total>0,j=R=>f({field:R,dir:Sv(R,l.field,l.dir)}),P=R=>g.jsx(um,{currentOrder:l,field:R,className:"tw:float-right tw:mt-[5px] tw:ml-[5px]"});return g.jsx(qt,{bodyClassName:"tw:[&]:p-0 tw:[&]:pb-1",title:g.jsxs("span",{className:"tw:flex tw:justify-between tw:items-center tw:text-base",children:["Visits list",g.jsx(hs,{checked:u,onChange:m,children:"Show user agent"})]}),children:g.jsxs(tt,{responsive:!1,size:"sm",className:"tw:w-full tw:relative tw:overflow-y-hidden tw:bg-lm-primary tw:dark:bg-dm-primary",header:g.jsxs(g.Fragment,{children:[g.jsxs(tt.Row,{children:[g.jsxs(tt.Cell,{className:Ce(to,"tw:text-center"),onClick:()=>n(t.length<v.total?v.visitsGroups.flat():[]),children:[g.jsx("span",{className:"tw:sr-only",children:"Is selected"}),g.jsx(Ke,{icon:ac,className:Ce({"tw:text-lm-brand tw:dark:text-dm-brand":t.length>0})})]}),g.jsxs(tt.Cell,{className:Ce(to,"tw:text-center"),onClick:()=>j("potentialBot"),children:[g.jsx("span",{className:"tw:sr-only",children:"Is bot"}),g.jsx(Ke,{icon:VN}),P("potentialBot")]}),g.jsxs(tt.Cell,{className:to,onClick:()=>j("date"),children:["Date",P("date")]}),g.jsxs(tt.Cell,{className:to,onClick:()=>j("country"),children:["Country",P("country")]}),g.jsxs(tt.Cell,{className:to,onClick:()=>j("city"),children:["City",P("city")]}),u?g.jsxs(tt.Cell,{className:to,onClick:()=>j("userAgent"),children:["User agent",P("userAgent")]}):g.jsxs(g.Fragment,{children:[g.jsxs(tt.Cell,{className:to,onClick:()=>j("browser"),children:["Browser",P("browser")]}),g.jsxs(tt.Cell,{className:to,onClick:()=>j("os"),children:["OS",P("os")]})]}),g.jsxs(tt.Cell,{className:to,onClick:()=>j("referer"),children:["Referrer",P("referer")]}),O&&g.jsxs(tt.Cell,{className:to,onClick:()=>j("visitedUrl"),children:["Visited URL",P("visitedUrl")]})]}),g.jsx(tt.Row,{children:g.jsx(tt.Cell,{colSpan:C,className:"tw:[&]:p-0",children:g.jsx(P1,{size:"md",borderless:!0,onChange:o})})})]}),footer:v.total>Vp?g.jsx(tt.Row,{children:g.jsx(tt.Cell,{type:"td",colSpan:C,className:"tw:md:sticky-cell-separated tw:bottom-0",children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:md:flex-row tw:justify-between tw:items-center tw:gap-4 tw:p-1",children:[g.jsx(M1,{pagesCount:Math.ceil(v.total/Vp),currentPage:_,onPageChange:x}),g.jsxs("div",{children:["Visits ",g.jsx("b",{children:Rn(S+1)})," to"," ",g.jsx("b",{children:Rn(Math.min(w,v.total))})," of"," ",g.jsx("b",{children:Rn(v.total)})]})]})})}):void 0,children:[!T&&g.jsx(tt.Row,{children:g.jsx(tt.Cell,{colSpan:C,className:"tw:text-center",children:"There are no visits matching current filter"})}),(r=v.visitsGroups[_-1])==null?void 0:r.map((R,$)=>{const q=t.includes(R);return g.jsxs(tt.Row,{className:Ce("tw:cursor-pointer",q&&["tw:bg-lm-table-highlight tw:hover:[&]:bg-lm-table-highlight","tw:dark:bg-dm-table-highlight tw:dark:hover:[&]:bg-dm-table-highlight"]),onClick:()=>n(q?t.filter(K=>K!==R):[...t,R]),children:[g.jsx(tt.Cell,{className:"tw:text-center",children:q&&g.jsx(Ke,{icon:ac,className:"tw:text-lm-brand tw:dark:text-dm-brand"})}),g.jsx(tt.Cell,{className:"tw:text-center",children:R.potentialBot&&g.jsxs(g.Fragment,{children:[g.jsx(Ke,{icon:VN,id:`botIcon${$}`}),g.jsx(bs,{placement:"right",target:`botIcon${$}`,children:"Potentially a visit from a bot or crawler"})]})}),g.jsx(tt.Cell,{children:g.jsx(Kb,{date:R.date})}),g.jsx(tt.Cell,{children:R.country}),g.jsx(tt.Cell,{children:R.city}),u?g.jsx(tt.Cell,{children:R.userAgent}):g.jsxs(g.Fragment,{children:[g.jsx(tt.Cell,{children:R.browser}),g.jsx(tt.Cell,{children:R.os})]}),g.jsx(tt.Cell,{children:R.referer}),O&&g.jsx(tt.Cell,{children:R.visitedUrl??""})]},$)})]})})},Cl={byTime:{title:"By time",subPath:"by-time",icon:JQ},byContext:{title:"By context",subPath:"by-context",icon:Gj},byLocation:{title:"By location",subPath:"by-location",icon:wE},list:{title:"List",subPath:"list",icon:Hj},options:{title:"Options",subPath:"options",icon:zB,shouldRender:({deletion:e})=>!!e}};Object.freeze(Cl);const hE=({display:e})=>e&&g.jsx("div",{className:"tw:mx-auto tw:w-3/4",children:g.jsx(qt,{children:g.jsxs("div",{className:"tw:flex tw:gap-2",children:[g.jsx(Ke,{icon:ZJ,className:"tw:mt-1"}),g.jsx("i",{children:"Could not calculate previous period because selected one does not have a strictly defined start date."})]})})}),zv=e=>{const{children:t,visitsInfo:n,getVisits:r,cancelGetVisits:i,deletion:a,exportCsv:o,isOrphanVisits:l=!1}=e,{visits:f,prevVisits:u,loading:h,errorData:m,fallbackInterval:v}=n,[{dateRange:_,visitsFilter:x,loadPrevInterval:w},S]=MG(),O=Jn("visits"),[C,T]=D.useState(),j=D.useCallback(({startDate:ne,endDate:ce},Q)=>{S({dateRange:{startDate:ne??void 0,endDate:ce??void 0}}),T(Q)},[S]),[P,R]=D.useState(v??(O==null?void 0:O.defaultInterval)??"last30Days"),[$,q]=D.useState([]),[K,H]=D.useState(),G=D.useRef(!0),{search:te}=Lr(),ie=D.useCallback(ne=>ne?`../${ne}${te}`:te,[te]),X=D.useMemo(()=>Jb(f),[f]),ee=D.useMemo(()=>u&&Jb(u),[u]),{os:W,browsers:B,referrers:U,countries:F,cities:M,citiesForMap:I,visitedUrls:J}=D.useMemo(()=>Aj(X),[X]),Y=D.useMemo(()=>Aj(ee??[]),[ee]),ae=D.useMemo(()=>Object.fromEntries([["Visits",Object.assign(X,{type:"main"})],ee&&["Previous period",Object.assign(ee,{type:"previous"})],$.length>0&&[K??"Selected",Object.assign($,{type:"highlighted"})]].filter(Boolean)),[K,$,ee,X]),de=D.useMemo(()=>({...x,excludeBots:x.excludeBots??(O==null?void 0:O.excludeBots),loadPrevInterval:w??(O==null?void 0:O.loadPrevInterval)}),[w,x,O==null?void 0:O.excludeBots,O==null?void 0:O.loadPrevInterval]),fe=D.useMemo(()=>Object.values(I),[I]),be=D.useRef(void 0),z=D.useCallback(ne=>{be.current=void 0,q(ne)},[]),V=D.useCallback((ne,ce)=>{const Q=`${ne}_${ce}`;be.current===Q?(q([]),H(void 0),be.current=void 0):(q(X.filter(le=>le[ne]===ce)),H(ce),be.current=Q)},[X]);return D.useEffect(()=>i,[i]),D.useEffect(()=>{const ne=_??iG(P),{loadPrevInterval:ce,...Q}=de,le={doIntervalFallback:G.current,loadPrevInterval:ce};r({dateRange:ne,filter:Q},le),z([]),G.current=!1},[P,_,r,de,z]),D.useEffect(()=>{v&&P===((O==null?void 0:O.defaultInterval)??"last30Days")&&R(v)},[P,v,O==null?void 0:O.defaultInterval]),g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-y-4",children:[t,g.jsxs("section",{className:"tw:flex tw:flex-col tw:lg:flex-row-reverse tw:gap-4",children:[g.jsxs("div",{className:"tw:lg:flex-3 tw:flex tw:flex-col tw:md:flex-row tw:gap-x-2 tw:gap-y-4",children:[g.jsx("div",{className:"tw:grow",children:g.jsx(f4,{disabled:h,dateRangeOrInterval:C??_??P,defaultText:"All visits",onDatesChange:j})}),g.jsx(LG,{disabled:h,isOrphanVisits:l,withPrevInterval:!0,selected:de,onChange:({loadPrevInterval:ne,...ce})=>S({visitsFilter:ce,loadPrevInterval:ne})})]}),g.jsx("div",{className:"tw:lg:flex-2 tw:xl:flex-3 tw:flex tw:gap-2",children:f.length>0&&g.jsxs(g.Fragment,{children:[g.jsx(FW,{className:"tw:max-lg:w-full",amount:X.length,onClick:()=>o(X)}),g.jsxs(Pn,{variant:"secondary",disabled:$.length===0,className:"tw:max-lg:w-full",onClick:()=>z([]),children:["Clear selection ",$.length>0&&g.jsxs(g.Fragment,{children:["(",Rn($.length),")"]})]})]})})]}),g.jsxs("section",{className:"tw:flex tw:flex-col tw:gap-4",children:[g.jsx(DG,{info:n}),!h&&!m&&g.jsxs(g.Fragment,{children:[g.jsx(Wu,{fill:!0,className:"tw:sticky tw:top-(--header-height) tw:z-2",children:Object.values(Cl).map(({title:ne,icon:ce,subPath:Q,shouldRender:le},pe)=>!le||le(e)?g.jsxs(Wu.Pill,{to:ie(Q),replace:!0,children:[g.jsx(Ke,{icon:ce}),g.jsx("span",{className:"tw:ml-2 tw:max-lg:sr-only",children:ne})]},pe):void 0).filter(Boolean)}),g.jsxs(i1,{children:[g.jsx(xt,{path:Cl.byTime.subPath,element:g.jsxs(i0,{showFallback:f.length===0,children:[g.jsx("div",{"data-testid":"line-chart-container",children:g.jsx(AG,{visitsGroups:ae,setSelectedVisits:z,onDateRangeChange:j})}),g.jsx(hE,{display:!!de.loadPrevInterval&&!u})]})}),g.jsx(xt,{path:Cl.byContext.subPath,element:g.jsxs(i0,{showFallback:f.length===0,children:[g.jsxs("div",{className:Ce("tw:grid tw:grid-cols-1 tw:gap-4",{"tw:lg:grid-cols-2":l,"tw:xl:grid-cols-3":!l}),children:[g.jsx(M9,{title:"Operating systems",stats:W,prevStats:Y.os}),g.jsx(M9,{title:"Browsers",stats:B,prevStats:Y.browsers}),g.jsx(Fy,{title:"Referrers",withPagination:!1,stats:U,prevStats:Y.referrers,highlightedStats:qy($,"referer"),highlightedLabel:K,sortingItems:{name:"Referrer name",amount:"Visits amount"},onClick:ne=>V("referer",ne)}),l&&g.jsx(Fy,{title:"Visited URLs",stats:J,prevStats:Y.visitedUrls,highlightedStats:qy($,"visitedUrl"),highlightedLabel:K,sortingItems:{visitedUrl:"Visited URL",amount:"Visits amount"},onClick:ne=>V("visitedUrl",ne)})]}),g.jsx(hE,{display:!!de.loadPrevInterval&&!u})]})}),g.jsx(xt,{path:Cl.byLocation.subPath,element:g.jsxs(i0,{showFallback:f.length===0,children:[g.jsxs("div",{className:"tw:grid tw:grid-cols-1 tw:lg:grid-cols-2 tw:gap-4",children:[g.jsx(Fy,{title:"Countries",stats:F,prevStats:Y.countries,highlightedStats:qy($,"country"),highlightedLabel:K,sortingItems:{name:"Country name",amount:"Visits amount"},onClick:ne=>V("country",ne)}),g.jsx(Fy,{title:"Cities",stats:M,prevStats:Y.cities,highlightedStats:qy($,"city"),highlightedLabel:K,extraHeaderContent:ne=>fe.length>0&&g.jsx(RRe,{modalTitle:"Cities",locations:fe,activeCities:ne}),sortingItems:{name:"City name",amount:"Visits amount"},onClick:ne=>V("city",ne)})]}),g.jsx(hE,{display:!!de.loadPrevInterval&&!u})]})}),g.jsx(xt,{path:Cl.list.subPath,element:g.jsx(KRe,{visits:X,selectedVisits:$,setSelectedVisits:z})}),a&&g.jsx(xt,{path:Cl.options.subPath,element:g.jsx(NRe,{...a})}),g.jsx(xt,{path:"*",element:g.jsx(kj,{replace:!0,to:ie(Cl.byTime.subPath)})})]})]})]})]})},$G=Ba(({getDomainVisits:e,domainVisits:t,cancelGetDomainVisits:n})=>{const{ReportExporter:r}=Mn($G),{domain:i=""}=Hd(),[a,o=a]=i.split("_"),l=D.useCallback((u,h)=>e({domain:o,options:h,params:u}),[o,e]),f=D.useCallback(u=>r.exportVisits(`domain_${a}_visits.csv`,u),[a,r]);return g.jsx(zv,{getVisits:l,cancelGetVisits:n,visitsInfo:t,exportCsv:f,children:g.jsx(Uv,{visits:t.visits,title:`"${a}" visits`})})},()=>[Kr.visits]),ZRe=Nn($G,["ReportExporter"]),BG=Ba(({getNonOrphanVisits:e,nonOrphanVisits:t,cancelGetNonOrphanVisits:n})=>{const{ReportExporter:r}=Mn(BG),i=D.useCallback(o=>r.exportVisits("non_orphan_visits.csv",o),[r]),a=D.useCallback((o,l)=>e({options:l,params:o}),[e]);return g.jsx(zv,{getVisits:a,cancelGetVisits:n,visitsInfo:t,exportCsv:i,children:g.jsx(Uv,{title:"Non-orphan visits",visits:t.visits})})},()=>[Kr.visits]),XRe=Nn(BG,["ReportExporter"]),UG=Ba(({getOrphanVisits:e,orphanVisits:t,cancelGetOrphanVisits:n,deleteOrphanVisits:r,orphanVisitsDeletion:i})=>{const a=yo("orphanVisitsDeletion"),{ReportExporter:o}=Mn(UG),l=D.useCallback(h=>o.exportVisits("orphan_visits.csv",h),[o]),f=D.useCallback((h,m)=>{var v;return e({options:m,params:h,orphanVisitsType:(v=h.filter)==null?void 0:v.orphanVisitsType})},[e]),u=D.useMemo(()=>a?{deleteVisits:r,visitsDeletion:i}:void 0,[r,i,a]);return g.jsx(zv,{getVisits:f,cancelGetVisits:n,visitsInfo:t,exportCsv:l,deletion:u,isOrphanVisits:!0,children:g.jsx(Uv,{title:"Orphan visits",visits:t.visits})})},()=>[Kr.orphanVisits]),QRe=Nn(UG,["ReportExporter"]),$9=5e3,JRe=2,eMe=4,tMe=({currentPage:e,pagesCount:t})=>e>=t,nMe=(e,t)=>t*100/e,zG=({visitsLoader:e,shouldCancel:t,progressChanged:n,batchSize:r})=>{const i=async(o,l)=>Promise.all(l.map(async f=>e({...o,page:f,itemsPerPage:$9}).then(({data:u})=>u))).then(f=>f.flat()),a=async(o,l,f=0)=>{if(t())return[];const u=await i(o,l[f]);return n(nMe(l.length,f+1)),f<l.length-1?u.concat(await a(o,l,f+1)):u};return async o=>{const{pagination:l,data:f}=await e({...o,page:1,itemsPerPage:$9});if(tMe(l))return f;const u=tF(JRe,l.pagesCount+1),h=Gf(u,r);return l.pagesCount-1>r&&n(0),f.concat(await a(o,h))}},Fv=(e,t)=>async n=>e?t({page:1,itemsPerPage:1,excludeBots:n}).then(({data:r})=>r[0]):Promise.resolve(void 0),qv=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Gr(`${e}/progressChanged`),i=Gr(`${e}/fallbackToInterval`),a=Qn(e,async(o,{getState:l,dispatch:f})=>{var u;const{params:h,options:m}=o,{visitsLoader:v,lastVisitLoader:_}=t(o),x=y4e(h.dateRange),w=Tj(h),S=m.loadPrevInterval&&TRe(h)?Tj(ARe(h)):void 0,O=eMe/(S?2:1),C=S?{main:0,prev:0}:{main:0},T=(q,K)=>{C[q]=K;const H=Object.values(C),G=H.reduce((te,ie)=>te+ie,0);f(r(G/H.length))},j=zG({visitsLoader:v,shouldCancel:()=>n(l),progressChanged:q=>T("main",q),batchSize:O}),[P,R,$]=await Promise.all([j(w),_((u=h.filter)==null?void 0:u.excludeBots),S?j(S).then(q=>q.map(K=>{if(x===void 0)return K;const{date:H,...G}=K,te=U3(Pi(H),x);return{...G,date:Kl(te)}})):Promise.resolve(void 0)]);return!P.length&&R&&f(i(v4e(R.date))),{...o,visits:P,prevVisits:$}});return Object.assign(a,{progressChanged:r,fallbackToInterval:i})},Vv=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisits:r,extraReducers:i})=>{const{pending:a,rejected:o,fulfilled:l,progressChanged:f,fallbackToInterval:u}=t,{reducer:h,actions:m}=Un({name:e,initialState:n,reducers:{cancelGetVisits:_=>({..._,cancelLoad:!0})},extraReducers:_=>{_.addCase(a,()=>({...n,loading:!0})),_.addCase(o,(x,{error:w})=>({...n,errorData:Bi(w)??null})),_.addCase(l,(x,{payload:w})=>({...x,...w,loading:!1,progress:null,errorData:null})),_.addCase(f,(x,{payload:w})=>({...x,progress:w})),_.addCase(u,(x,{payload:w})=>({...x,fallbackInterval:w})),_.addCase(ch,(x,{payload:w})=>{const{visits:S}=x,O=r(x,w.createdVisits).map(({visit:C})=>C);return O.length?{...x,visits:[...O,...S]}:x}),i==null||i(_)}}),{cancelGetVisits:v}=m;return{reducer:h,cancelGetVisits:v}},FG="shlink/domainVisits",rMe={visits:[],domain:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},iMe=e=>qv({typePrefix:`${FG}/getDomainVisits`,createLoaders:({domain:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=l=>r.getDomainVisits(t,l),o=Fv(i,l=>r.getDomainVisits(t,l));return{visitsLoader:a,lastVisitLoader:o}},shouldCancel:t=>t().domainVisits.cancelLoad}),aMe=e=>Vv({name:FG,initialState:rMe,asyncThunkCreator:e,filterCreatedVisits:({domain:t,params:n},r)=>PG(r,t,n==null?void 0:n.dateRange)}),qG="shlink/orphanVisits",oMe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},sMe=e=>qv({typePrefix:`${qG}/getNonOrphanVisits`,createLoaders:({options:t})=>{const n=e(),{doIntervalFallback:r=!1}=t,i=async o=>n.getNonOrphanVisits(o),a=Fv(r,o=>n.getNonOrphanVisits(o));return{visitsLoader:i,lastVisitLoader:a}},shouldCancel:t=>t().orphanVisits.cancelLoad}),lMe=e=>Vv({name:qG,initialState:oMe,asyncThunkCreator:e,filterCreatedVisits:({params:t},n)=>{const{startDate:r,endDate:i}=(t==null?void 0:t.dateRange)??{};return n.filter(({visit:a})=>Bv(a.date,r,i))}}),VG="shlink/orphanVisits",uMe={visits:[],loading:!1,cancelLoad:!1,errorData:null,progress:null},cMe=(e,t)=>!t||t===e.type,fMe=({data:e,...t},n)=>{const r=e.filter(i=>y4(i)&&cMe(i,n));return{...t,data:r}},dMe=e=>qv({typePrefix:`${VG}/getOrphanVisits`,createLoaders:({orphanVisitsType:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=async l=>r.getOrphanVisits({...l,type:t}).then(f=>fMe(f,t)),o=Fv(i,l=>r.getOrphanVisits(l));return{visitsLoader:a,lastVisitLoader:o}},shouldCancel:t=>t().orphanVisits.cancelLoad}),hMe=(e,t)=>Vv({name:VG,initialState:uMe,asyncThunkCreator:e,extraReducers:n=>{n.addCase(t.fulfilled,r=>({...r,visits:[]}))},filterCreatedVisits:({params:n},r)=>{const{startDate:i,endDate:a}=(n==null?void 0:n.dateRange)??{};return r.filter(({visit:o,shortUrl:l})=>!l&&Bv(o.date,i,a))}}),HG="shlink/orphanVisitsDeletion",B9={deletedVisits:0,deleting:!1,error:!1},pMe=e=>Qn(`${HG}/deleteOrphanVisits`,()=>e().deleteOrphanVisits()),mMe=e=>Un({name:HG,initialState:B9,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:Bi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{deletedVisits:i}=r;return{...B9,deletedVisits:i}})}}),WG="shlink/shortUrlVisits",vMe={visits:[],shortCode:"",loading:!1,errorData:null,cancelLoad:!1,progress:null},gMe=e=>qv({typePrefix:`${WG}/getShortUrlVisits`,createLoaders:({shortCode:t,domain:n,options:r})=>{const i=e(),{doIntervalFallback:a=!1}=r,o=f=>i.getShortUrlVisits({shortCode:t,domain:n},f),l=Fv(a,f=>i.getShortUrlVisits({shortCode:t,domain:n},f));return{visitsLoader:o,lastVisitLoader:l}},shouldCancel:t=>t().shortUrlVisits.cancelLoad}),yMe=(e,t)=>Vv({name:WG,initialState:vMe,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},a)=>jG(a,{shortCode:n,domain:r},i==null?void 0:i.dateRange)}),GG="shlink/shortUrlVisitsDeletion",U9={shortCode:"",deletedVisits:0,deleting:!1,error:!1},bMe=e=>Qn(`${GG}/deleteShortUrlVisits`,async({shortCode:t,domain:n})=>({...await e().deleteShortUrlVisits({shortCode:t,domain:n}),shortCode:t,domain:n})),wMe=e=>Un({name:GG,initialState:U9,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:Bi(r)})),t.addCase(e.fulfilled,(n,{payload:r})=>{const{shortCode:i,domain:a,deletedVisits:o}=r;return{...U9,shortCode:i,domain:a,deletedVisits:o}})}}),YG="shlink/tagVisits",_Me={visits:[],tag:"",loading:!1,cancelLoad:!1,errorData:null,progress:null},xMe=e=>qv({typePrefix:`${YG}/getTagVisits`,createLoaders:({tag:t,options:n})=>{const r=e(),{doIntervalFallback:i=!1}=n,a=l=>r.getTagVisits(t,l),o=Fv(i,async l=>r.getTagVisits(t,l));return{visitsLoader:a,lastVisitLoader:o}},shouldCancel:t=>t().tagVisits.cancelLoad}),SMe=e=>Vv({name:YG,initialState:_Me,asyncThunkCreator:e,filterCreatedVisits:({tag:t,params:n},r)=>RG(r,t,n==null?void 0:n.dateRange)}),KG="shlink/visitsOverview",Hy={nonOrphanVisits:{total:0},orphanVisits:{total:0},loading:!1,error:!1},z9=e=>e.filter(({visit:t})=>t.potentialBot).length,OMe=e=>Qn(`${KG}/loadVisitsOverview`,()=>e().getVisitsOverview().then(({nonOrphanVisits:t,visitsCount:n=0,orphanVisits:r,orphanVisitsCount:i=0})=>({nonOrphanVisits:{total:(t==null?void 0:t.total)??n,nonBots:t==null?void 0:t.nonBots,bots:t==null?void 0:t.bots},orphanVisits:{total:(r==null?void 0:r.total)??i,nonBots:r==null?void 0:r.nonBots,bots:r==null?void 0:r.bots}}))),CMe=e=>Un({name:KG,initialState:Hy,reducers:{},extraReducers:t=>{t.addCase(e.pending,()=>({...Hy,loading:!0})),t.addCase(e.rejected,()=>({...Hy,error:!0})),t.addCase(e.fulfilled,(n,{payload:r})=>({...Hy,...r})),t.addCase(ch,({nonOrphanVisits:n,orphanVisits:r,...i},{payload:a})=>{const{nonOrphanVisits:o,orphanVisits:l}=CRe(a.createdVisits),f=o.length,u=z9(o),h=f-u,m=l.length,v=z9(l),_=m-v;return{...i,nonOrphanVisits:{total:n.total+f,bots:n.bots&&n.bots+u,nonBots:n.nonBots&&n.nonBots+h},orphanVisits:{total:r.total+m,bots:r.bots&&r.bots+v,nonBots:r.nonBots&&r.nonBots+_}}})}}),EMe=({shortUrl:e,loading:t,shortUrlVisits:n})=>{const{visits:r}=n,i=(e==null?void 0:e.shortUrl)??"",a=(e==null?void 0:e.longUrl)??"",o=e==null?void 0:e.title;return g.jsxs(Uv,{title:g.jsxs(g.Fragment,{children:["Visits for ",g.jsx(aa,{href:i})]}),visits:r,shortUrl:e,children:[g.jsx("hr",{}),g.jsxs("div",{children:["Created: ",e?g.jsxs("span",{children:[g.jsx("b",{id:"created",className:"tw:cursor-default",children:g.jsx(Kb,{date:e.dateCreated,relative:!0})}),g.jsx(bs,{placement:"bottom",target:"created",children:g.jsx(Kb,{date:e.dateCreated})})]}):g.jsx("small",{children:"Loading..."})]}),g.jsxs("div",{"data-testid":"long-url-container",children:[`${o?"Title":"Long URL"}: `,t&&g.jsx("small",{children:"Loading..."}),!t&&g.jsx(aa,{href:a,children:o??a})]})]})},ZG=Ba(({shortUrlVisits:e,shortUrlVisitsDeletion:t,shortUrlsDetails:n,getShortUrlVisits:r,getShortUrlsDetails:i,deleteShortUrlVisits:a,cancelGetShortUrlVisits:o})=>{const l=yo("shortUrlVisitsDeletion"),{ReportExporter:f}=Mn(ZG),u=s4(),h=D.useMemo(()=>{var x;return(x=n.shortUrls)==null?void 0:x.get(u)},[u,n.shortUrls]),m=D.useCallback((x,w)=>r({...u,options:w,params:x}),[r,u]),v=D.useCallback(x=>f.exportVisits(`short-url_${h==null?void 0:h.shortUrl.replace(/https?:\/\//g,"")}_visits.csv`,x),[f,h==null?void 0:h.shortUrl]),_=D.useMemo(()=>l?{deleteVisits:()=>a(u),visitsDeletion:t}:void 0,[a,u,t,l]);return D.useEffect(()=>{i([u])},[u,i]),g.jsx(zv,{getVisits:m,cancelGetVisits:o,visitsInfo:e,exportCsv:v,deletion:_,children:g.jsx(EMe,{shortUrl:h,loading:n.loading,shortUrlVisits:e})})},e=>e.shortCode?[Kr.shortUrlVisits(r4(e.shortCode))]:[]),TMe=Nn(ZG,["ReportExporter"]),AMe=({tagVisits:e,colorGenerator:t})=>{const{visits:n,tag:r}=e;return g.jsx(Uv,{title:g.jsxs("span",{className:"tw:flex tw:items-center tw:justify-center",children:[g.jsx("span",{className:"tw:mr-2",children:"Visits for"}),g.jsx(Ow,{text:r,colorGenerator:t})]}),visits:n})},XG=Ba(({getTagVisits:e,tagVisits:t,cancelGetTagVisits:n})=>{const{ColorGenerator:r,ReportExporter:i}=Mn(XG),{tag:a=""}=Hd(),o=D.useCallback((f,u)=>e({tag:a,params:f,options:u}),[e,a]),l=D.useCallback(f=>i.exportVisits(`tag_${a}_visits.csv`,f),[i,a]);return g.jsx(zv,{getVisits:o,cancelGetVisits:n,visitsInfo:t,exportCsv:l,children:g.jsx(AMe,{tagVisits:t,colorGenerator:r})})},()=>[Kr.visits]),jMe=Nn(XG,["ColorGenerator","ReportExporter"]),b4=({title:e,colors:t,getVisitsForComparison:n,visitsComparisonInfo:r,cancelGetVisitsComparison:i})=>{const{loading:a,visitsGroups:o}=r,l=Jn("visits"),f=D.useMemo(()=>Object.keys(o).reduce((C,T,j)=>(C[T]=Object.assign(Jb(o[T]),{color:(t==null?void 0:t[T])??EG(j)}),C),{}),[t,o]),u=D.useMemo(()=>Object.values(o).every(C=>C.length===0),[o]),[{dateRange:h,visitsFilter:m},v]=MG(),[_,x]=D.useState(),w=D.useCallback(({startDate:C,endDate:T},j)=>{v({dateRange:{startDate:C??void 0,endDate:T??void 0}}),x(j)},[v]),[S]=D.useState(()=>h??(l==null?void 0:l.defaultInterval)??"last30Days"),O=D.useMemo(()=>({...m,excludeBots:m.excludeBots??(l==null?void 0:l.excludeBots)}),[m,l==null?void 0:l.excludeBots]);return D.useEffect(()=>{const C=h??iG(S);return n({params:{dateRange:C,filter:O}}),i},[i,h,n,S,O]),g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-4",children:[g.jsxs(qt,{bodyClassName:"tw:flex tw:items-center",children:[g.jsx(Sw,{}),g.jsx("h3",{className:"tw:grow tw:text-center",children:e})]}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:lg:flex-row-reverse tw:gap-4",children:[g.jsxs("div",{className:"tw:lg:flex-3 tw:flex tw:flex-col tw:md:flex-row tw:gap-x-2 tw:gap-y-4",children:[g.jsx("div",{className:"tw:grow",children:g.jsx(f4,{disabled:a,defaultText:"All visits",dateRangeOrInterval:_??h??S,onDatesChange:w})}),g.jsx(LG,{disabled:a,selected:O,onChange:({orphanVisitsType:C,excludeBots:T})=>v({visitsFilter:{orphanVisitsType:C,excludeBots:T}})})]}),g.jsx("div",{className:"tw:hidden tw:lg:block tw:lg:flex-2 tw:xl:flex-3"})]}),g.jsx(DG,{info:r}),!a&&g.jsx(i0,{showFallback:u,children:g.jsx(AG,{visitsGroups:f,onDateRangeChange:w})})]})},PMe=Ba(({getDomainVisitsForComparison:e,domainVisitsComparison:t,cancelGetDomainVisitsComparison:n})=>{const r=n4("domains"),i=D.useCallback(a=>e({...a,domains:r}),[r,e]);return g.jsx(b4,{title:`Comparing "${r.join('", "')}"`,getVisitsForComparison:i,visitsComparisonInfo:t,cancelGetVisitsComparison:n})},()=>[Kr.visits]),RMe=({visitsLoaders:e,shouldCancel:t,progressChanged:n})=>{const r=Object.keys(e),i=Math.max(1,Math.round(4/r.length)),a=Object.fromEntries(r.map(f=>[f,0])),o=(f,u)=>{a[f]=u;const h=Object.values(a),m=h.reduce((v,_)=>v+_,0);n(m/h.length)},l=Object.entries(e).map(([f,u])=>[f,zG({visitsLoader:u,batchSize:i,shouldCancel:t,progressChanged:h=>o(f,h)})]);return async f=>{const u=await Promise.all(l.map(async([h,m])=>{const v=await m(f);return[h,v]}));return Object.fromEntries(u)}},w4=({typePrefix:e,createLoaders:t,shouldCancel:n})=>{const r=Gr(`${e}/progressChanged`),i=Qn(e,async(a,{getState:o,dispatch:l})=>{const f=t(a),u=await RMe({visitsLoaders:f,shouldCancel:()=>n(o),progressChanged:h=>l(r(h))})(Tj(a.params));return{...a,visitsGroups:u}});return Object.assign(i,{progressChanged:r})},_4=({name:e,asyncThunkCreator:t,initialState:n,filterCreatedVisitsForGroup:r})=>{const{pending:i,rejected:a,fulfilled:o,progressChanged:l}=t,{reducer:f,actions:u}=Un({name:e,initialState:n,reducers:{cancelGetVisits:m=>({...m,cancelLoad:!0})},extraReducers:m=>{m.addCase(i,()=>({...n,loading:!0})),m.addCase(a,(v,{error:_})=>({...n,errorData:Bi(_)??null})),m.addCase(o,(v,{payload:_})=>({...v,..._,loading:!1,progress:null,errorData:null})),m.addCase(l,(v,{payload:_})=>({...v,progress:_})),m.addCase(ch,(v,{payload:_})=>{const{visitsGroups:x,...w}=v,S=Object.keys(x).map(C=>{const T=r({...w,groupKey:C},_.createdVisits).map(({visit:j})=>j);return[C,[...T,...x[C]]]}),O=Object.fromEntries(S);return{...w,visitsGroups:O}})}}),{cancelGetVisits:h}=u;return{reducer:f,cancelGetVisits:h}},QG="shlink/domainVisitsComparison",MMe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},NMe=e=>w4({typePrefix:`${QG}/getDomainVisitsForComparison`,createLoaders:({domains:t})=>{const n=e(),r=t.map(i=>[i,a=>n.getDomainVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().domainVisitsComparison.cancelLoad}),LMe=e=>_4({name:QG,initialState:MMe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>PG(r,t,n==null?void 0:n.dateRange)}),JG="shlink/shortUrlVisitsComparison",DMe={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},kMe=e=>w4({typePrefix:`${JG}/getShortUrlVisitsForComparison`,createLoaders:({shortUrls:t})=>{const n=e(),r=t.map(i=>[i4(i),a=>n.getShortUrlVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().shortUrlVisitsComparison.cancelLoad}),IMe=e=>_4({name:JG,initialState:DMe,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>jG(r,wW(t),n==null?void 0:n.dateRange)}),eY="shlink/tagVisitsComparison",$Me={visitsGroups:{},loading:!1,cancelLoad:!1,errorData:null,progress:null},BMe=e=>w4({typePrefix:`${eY}/getTagVisitsForComparison`,createLoaders:({tags:t})=>{const n=e(),r=t.map(i=>[i,a=>n.getTagVisits(i,a)]);return Object.fromEntries(r)},shouldCancel:t=>t().tagVisitsComparison.cancelLoad}),UMe=e=>_4({name:eY,initialState:$Me,asyncThunkCreator:e,filterCreatedVisitsForGroup:({groupKey:t,params:n},r)=>RG(r,t,n==null?void 0:n.dateRange)}),zMe=Ba(({getShortUrlVisitsForComparison:e,shortUrlVisitsComparison:t,cancelGetShortUrlVisitsComparison:n,shortUrlsDetails:r,getShortUrlsDetails:i})=>{const a=n4("short-urls"),o=D.useMemo(()=>a.map(wW),[a]),l=D.useCallback(h=>e({...h,shortUrls:o}),[e,o]),f=D.useMemo(()=>{var h;return[...((h=r.shortUrls)==null?void 0:h.values())??[]]},[r.shortUrls]),u=D.useMemo(()=>{const{visitsGroups:h,loading:m,...v}=t,_=f.reduce((x,w)=>(x[w.shortUrl]=h[i4(w)]??[],x),{});return{...v,visitsGroups:_,loading:m||r.loading}},[t,r.loading,f]);return D.useEffect(()=>{o.length>0&&i(o)},[i,o]),g.jsx(b4,{title:g.jsx("span",{"data-testid":"title",children:r.loading?"Loading...":`Comparing ${f.length} short URLs`}),getVisitsForComparison:l,visitsComparisonInfo:u,cancelGetVisitsComparison:n})},()=>[Kr.visits]),tY=Ba(({getTagVisitsForComparison:e,tagVisitsComparison:t,cancelGetTagVisitsComparison:n})=>{const{ColorGenerator:r}=Mn(tY),i=n4("tags"),a=D.useCallback(f=>e({...f,tags:i}),[e,i]),{visitsGroups:o}=t,l=D.useMemo(()=>Object.keys(o).reduce((f,u)=>(f[u]=r.getColorForKey(u),f),{}),[r,o]);return g.jsx(b4,{title:g.jsxs(g.Fragment,{children:["Comparing ",i.map(f=>g.jsx(Ow,{colorGenerator:r,text:f},f))]}),getVisitsForComparison:a,visitsComparisonInfo:t,cancelGetVisitsComparison:n,colors:l})},()=>[Kr.visits]),FMe=Nn(tY,["ColorGenerator"]),qMe=(e,t)=>{const n=(r,i)=>t([...r,"mercureInfo"],[...i,"createNewVisits","loadMercureInfo"]);e.serviceFactory("MapModal",()=>NG),e.factory("ShortUrlVisits",TMe),e.decorator("ShortUrlVisits",t(["shortUrlVisits","shortUrlVisitsDeletion","shortUrlsDetails","mercureInfo"],["getShortUrlVisits","deleteShortUrlVisits","getShortUrlsDetails","cancelGetShortUrlVisits","createNewVisits","loadMercureInfo"])),e.factory("TagVisits",jMe),e.decorator("TagVisits",n(["tagVisits"],["getTagVisits","cancelGetTagVisits"])),e.factory("TagVisitsComparison",FMe),e.decorator("TagVisitsComparison",n(["tagVisitsComparison"],["getTagVisitsForComparison","cancelGetTagVisitsForComparison"])),e.serviceFactory("DomainVisitsComparison",()=>PMe),e.decorator("DomainVisitsComparison",n(["domainVisitsComparison"],["getDomainVisitsForComparison","cancelGetDomainVisitsForComparison"])),e.serviceFactory("ShortUrlVisitsComparison",()=>zMe),e.decorator("ShortUrlVisitsComparison",n(["shortUrlVisitsComparison","shortUrlsDetails"],["getShortUrlVisitsForComparison","cancelGetShortUrlVisitsForComparison","getShortUrlsDetails"])),e.factory("DomainVisits",ZRe),e.decorator("DomainVisits",n(["domainVisits"],["getDomainVisits","cancelGetDomainVisits"])),e.factory("OrphanVisits",QRe),e.decorator("OrphanVisits",n(["orphanVisits","orphanVisitsDeletion"],["getOrphanVisits","cancelGetOrphanVisits","deleteOrphanVisits"])),e.factory("NonOrphanVisits",XRe),e.decorator("NonOrphanVisits",n(["nonOrphanVisits"],["getNonOrphanVisits","cancelGetNonOrphanVisits"])),e.serviceFactory("VisitsParser",()=>VRe),e.serviceFactory("getShortUrlVisits",gMe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisits",r=>r.cancelGetVisits,"shortUrlVisitsReducerCreator"),e.serviceFactory("getShortUrlVisitsForComparison",kMe,"apiClientFactory"),e.serviceFactory("cancelGetShortUrlVisitsForComparison",r=>r.cancelGetVisits,"shortUrlVisitsComparisonReducerCreator"),e.serviceFactory("deleteShortUrlVisits",bMe,"apiClientFactory"),e.serviceFactory("getTagVisits",xMe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisits",r=>r.cancelGetVisits,"tagVisitsReducerCreator"),e.serviceFactory("getTagVisitsForComparison",BMe,"apiClientFactory"),e.serviceFactory("cancelGetTagVisitsForComparison",r=>r.cancelGetVisits,"tagVisitsComparisonReducerCreator"),e.serviceFactory("getDomainVisits",iMe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisits",r=>r.cancelGetVisits,"domainVisitsReducerCreator"),e.serviceFactory("getDomainVisitsForComparison",NMe,"apiClientFactory"),e.serviceFactory("cancelGetDomainVisitsForComparison",r=>r.cancelGetVisits,"domainVisitsComparisonReducerCreator"),e.serviceFactory("getOrphanVisits",dMe,"apiClientFactory"),e.serviceFactory("cancelGetOrphanVisits",r=>r.cancelGetVisits,"orphanVisitsReducerCreator"),e.serviceFactory("deleteOrphanVisits",pMe,"apiClientFactory"),e.serviceFactory("getNonOrphanVisits",sMe,"apiClientFactory"),e.serviceFactory("cancelGetNonOrphanVisits",r=>r.cancelGetVisits,"nonOrphanVisitsReducerCreator"),e.serviceFactory("createNewVisits",()=>ch),e.serviceFactory("loadVisitsOverview",OMe,"apiClientFactory"),e.serviceFactory("visitsOverviewReducerCreator",CMe,"loadVisitsOverview"),e.serviceFactory("visitsOverviewReducer",r=>r.reducer,"visitsOverviewReducerCreator"),e.serviceFactory("domainVisitsReducerCreator",aMe,"getDomainVisits"),e.serviceFactory("domainVisitsReducer",r=>r.reducer,"domainVisitsReducerCreator"),e.serviceFactory("nonOrphanVisitsReducerCreator",lMe,"getNonOrphanVisits"),e.serviceFactory("nonOrphanVisitsReducer",r=>r.reducer,"nonOrphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsReducerCreator",hMe,"getOrphanVisits","deleteOrphanVisits"),e.serviceFactory("orphanVisitsReducer",r=>r.reducer,"orphanVisitsReducerCreator"),e.serviceFactory("orphanVisitsDeletionReducerCreator",mMe,"deleteOrphanVisits"),e.serviceFactory("orphanVisitsDeletionReducer",r=>r.reducer,"orphanVisitsDeletionReducerCreator"),e.serviceFactory("shortUrlVisitsReducerCreator",yMe,"getShortUrlVisits","deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsReducer",r=>r.reducer,"shortUrlVisitsReducerCreator"),e.serviceFactory("shortUrlVisitsDeletionReducerCreator",wMe,"deleteShortUrlVisits"),e.serviceFactory("shortUrlVisitsDeletionReducer",r=>r.reducer,"shortUrlVisitsDeletionReducerCreator"),e.serviceFactory("tagVisitsReducerCreator",SMe,"getTagVisits"),e.serviceFactory("tagVisitsReducer",r=>r.reducer,"tagVisitsReducerCreator"),e.serviceFactory("tagVisitsComparisonReducerCreator",UMe,"getTagVisitsForComparison"),e.serviceFactory("tagVisitsComparisonReducer",r=>r.reducer,"tagVisitsComparisonReducerCreator"),e.serviceFactory("domainVisitsComparisonReducerCreator",LMe,"getDomainVisitsForComparison"),e.serviceFactory("domainVisitsComparisonReducer",r=>r.reducer,"domainVisitsComparisonReducerCreator"),e.serviceFactory("shortUrlVisitsComparisonReducerCreator",IMe,"getShortUrlVisitsForComparison"),e.serviceFactory("shortUrlVisitsComparisonReducer",r=>r.reducer,"shortUrlVisitsComparisonReducerCreator")},Mp=({children:e,to:t,active:n,...r})=>g.jsx(o1,{...r,className:({isActive:i})=>Ce("tw:flex tw:items-center tw:gap-2","tw:no-underline tw:rounded-none tw:px-5 tw:py-2.5",{"tw:text-white tw:bg-lm-main tw:dark:bg-dm-main":i||n,"tw:highlight:bg-lm-secondary tw:highlight:dark:bg-dm-secondary":!i&&!n}),to:t,children:e}),VMe=({routePrefix:e,showOnMobile:t=!1})=>{const{pathname:n}=Lr(),r=i=>`${e}${i}`;return g.jsx("aside",{className:Ce("tw:w-(--aside-menu-width) tw:bg-lm-primary tw:dark:bg-dm-primary","tw:pt-[15px] tw:md:pt-[30px] tw:pb-[10px]","tw:fixed! tw:bottom-0 tw:top-(--header-height) tw:z-1010 tw:transition-[left] tw:duration-300","tw:shadow-aside-menu-mobile tw:md:shadow-aside-menu",{"tw:left-0":t,"tw:max-md:left-[calc(-1*(var(--aside-menu-width)+35px))]":!t}),children:g.jsxs("nav",{className:"tw:flex tw:flex-col tw:h-full",children:[g.jsxs(Mp,{to:r("/overview"),children:[g.jsx(Ke,{fixedWidth:!0,icon:PJ}),"Overview"]}),g.jsxs(Mp,{to:r("/list-short-urls/1"),active:n.match("/list-short-urls")!==null,children:[g.jsx(Ke,{fixedWidth:!0,icon:Hj}),"List short URLs"]}),g.jsxs(Mp,{to:r("/create-short-url"),children:[g.jsx(Ke,{fixedWidth:!0,icon:kJ,flip:"horizontal"}),"Create short URL"]}),g.jsxs(Mp,{to:r("/manage-tags"),children:[g.jsx(Ke,{fixedWidth:!0,icon:IB}),"Manage tags"]}),g.jsxs(Mp,{to:r("/manage-domains"),children:[g.jsx(Ke,{fixedWidth:!0,icon:lJ}),"Manage domains"]})]})})},nY=({createNotFound:e})=>{const{TagsList:t,ShortUrlsList:n,CreateShortUrl:r,ShortUrlVisits:i,TagVisits:a,DomainVisits:o,OrphanVisits:l,NonOrphanVisits:f,Overview:u,EditShortUrl:h,ManageDomains:m,TagVisitsComparison:v,DomainVisitsComparison:_,ShortUrlVisitsComparison:x,ShortUrlRedirectRules:w}=Mn(nY),S=Lr(),O=iu(),{flag:C,toggle:T,setToTrue:j,setToFalse:P}=Wt(!1,!0);D.useEffect(()=>P(),[S,P]);const R=qje(j,P),$=yo("shortUrlRedirectRules");return g.jsxs(g.Fragment,{children:[g.jsx(Fd,{"aria-label":"Toggle sidebar",className:Ce("tw:inline-block tw:md:hidden tw:fixed tw:top-4 tw:z-1035 tw:transition-colors",{"tw:text-white/50":!C,"tw:text-white":C}),onClick:T,children:g.jsx(Ke,{icon:rJ,size:"xl"})}),g.jsx("div",{...R,className:"tw:h-full",children:g.jsxs("div",{className:"tw:h-full",children:[g.jsx(VMe,{routePrefix:O,showOnMobile:C}),g.jsx("div",{className:"tw:min-h-full tw:pt-[20px] tw:md:pt-[30px] tw:md:pl-(--aside-menu-width)",onPointerDown:P,children:g.jsx("div",{className:"container-xl",children:g.jsxs(i1,{children:[g.jsx(xt,{index:!0,element:g.jsx(kj,{replace:!0,to:"overview"})}),g.jsx(xt,{path:"/overview",element:g.jsx(u,{})}),g.jsx(xt,{path:"/list-short-urls/:page",element:g.jsx(n,{})}),g.jsx(xt,{path:"/create-short-url",element:g.jsx(r,{})}),g.jsx(xt,{path:"/short-code/:shortCode/visits",children:["","*"].map(q=>g.jsx(xt,{path:q,element:g.jsx(i,{})},q))}),g.jsx(xt,{path:"/short-code/:shortCode/edit",element:g.jsx(h,{})}),$&&g.jsx(xt,{path:"/short-code/:shortCode/redirect-rules",element:g.jsx(w,{})}),g.jsx(xt,{path:"/short-urls/compare-visits",element:g.jsx(x,{})}),g.jsx(xt,{path:"/tag/:tag/visits",children:["","*"].map(q=>g.jsx(xt,{path:q,element:g.jsx(a,{})},q))}),g.jsx(xt,{path:"/tags/compare-visits",element:g.jsx(v,{})}),g.jsx(xt,{path:"/domain/:domain/visits",children:["","*"].map(q=>g.jsx(xt,{path:q,element:g.jsx(o,{})},q))}),g.jsx(xt,{path:"/orphan-visits",children:["","*"].map(q=>g.jsx(xt,{path:q,element:g.jsx(l,{})},q))}),g.jsx(xt,{path:"/non-orphan-visits",children:["","*"].map(q=>g.jsx(xt,{path:q,element:g.jsx(f,{})},q))}),g.jsx(xt,{path:"/manage-tags",element:g.jsx(t,{})}),g.jsx(xt,{path:"/manage-domains",element:g.jsx(m,{})}),g.jsx(xt,{path:"/domains/compare-visits",element:g.jsx(_,{})}),e&&g.jsx(xt,{path:"*",element:e("/list-short-urls/1")})]})})})]})})]})},HMe=Nn(nY,["TagsList","ShortUrlsList","CreateShortUrl","ShortUrlVisits","TagVisits","DomainVisits","OrphanVisits","NonOrphanVisits","Overview","EditShortUrl","ManageDomains","TagVisitsComparison","DomainVisitsComparison","ShortUrlVisitsComparison","ShortUrlRedirectRules"]),WMe=e=>Gz({devTools:!1,reducer:R3({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})}),GMe=e=>{e.factory("Main",HMe),e.factory("store",WMe)},Ua=new RB,{container:YMe}=Ua,KMe=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),ZMe=(e,t)=>(...n)=>e[t](...n),XMe=(e,t)=>({...e,[t]:ZMe(YMe,t)}),dh=(e,t=[])=>iB(e?KMe(e):null,t.reduce(XMe,{}));GMe(Ua);j4e(Ua,dh);Q4e(Ua,dh);qMe(Ua,dh);n3e(Ua);Jje(Ua,dh);d3e(Ua,dh);aRe(Ua);PPe(Ua,dh);let F9;const QMe=e=>({serverVersion:t,apiClient:n,settings:r,routesPrefix:i="",createNotFound:a,tagColorsStorage:o})=>{const l=Bje(t),f=D.useRef(void 0),[u,h]=D.useState(),m=wc(),v=D.useMemo(()=>m?D.Fragment:yB,[m]);return D.useEffect(()=>{F9=n,e.value("apiClientFactory",()=>F9),o&&e.value("TagColorsStorage",o);const{container:_}=e,{Main:x,store:w,loadMercureInfo:S,listTags:O,listDomains:C}=_;f.current=g.jsx(x,{createNotFound:a}),h(w),w.dispatch(S(r)),w.dispatch(O()),w.dispatch(C())},[n,a,r,o]),u?g.jsx(aB,{store:u,children:g.jsx(mF,{value:r??{},children:g.jsx($je,{value:l,children:g.jsx(Dje,{value:i,children:g.jsx(v,{children:f.current})})})})}):g.jsx(g.Fragment,{})},JMe="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=",eNe="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==",tNe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAApCAQAAAACach9AAACMUlEQVR4Ae3ShY7jQBAE0Aoz/f9/HTMzhg1zrdKUrJbdx+Kd2nD8VNudfsL/Th///dyQN2TH6f3y/BGpC379rV+S+qqetBOxImNQXL8JCAr2V4iMQXHGNJxeCfZXhSRBcQMfvkOWUdtfzlLgAENmZDcmo2TVmt8OSM2eXxBp3DjHSMFutqS7SbmemzBiR+xpKCNUIRkdkkYxhAkyGoBvyQFEJEefwSmmvBfJuJ6aKqKWnAkvGZOaZXTUgFqYULWNSHUckZuR1HIIimUExutRxwzOLROIG4vKmCKQt364mIlhSyzAf1m9lHZHJZrlAOMMztRRiKimp/rpdJDc9Awry5xTZCte7FHtuS8wJgeYGrex28xNTd086Dik7vUMscQOa8y4DoGtCCSkAKlNwpgNtphjrC6MIHUkR6YWxxs6Sc5xqn222mmCRFzIt8lEdKx+ikCtg91qS2WpwVfBelJCiQJwvzixfI9cxZQWgiSJelKnwBElKYtDOb2MFbhmUigbReQBV0Cg4+qMXSxXSyGUn4UbF8l+7qdSGnTC0XLCmahIgUHLhLOhpVCtw4CzYXvLQWQbJNmxoCsOKAxSgBJno75avolkRw8iIAFcsdc02e9iyCd8tHwmeSSoKTowIgvscSGZUOA7PuCN5b2BX9mQM7S0wYhMNU74zgsPBj3HU7wguAfnxxjFQGBE6pwN+GjME9zHY7zGp8wVxMShYX9NXvEWD3HbwJf4giO4CFIQxXScH1/TM+04kkBiAAAAAElFTkSuQmCC",nNe=()=>{delete n9.Icon.Default.prototype._getIconUrl,n9.Icon.Default.mergeOptions({iconRetinaUrl:eNe,iconUrl:JMe,shadowUrl:tNe})};nNe();const rNe=QMe(Ua);function e1(e){return t=>{const{resetSelectedServer:n}=t;return D.useEffect(()=>{n()},[n]),g.jsx(e,{...t})}}let iNe=class extends D.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 g.jsxs(Lz,{title:"Oops! This is awkward :S",children:[g.jsx("p",{children:"It seems that something went wrong. Try refreshing the page or just click this button."}),g.jsx("br",{}),g.jsx(la,{size:"lg",onClick:()=>n.reload(),children:"Take me back"})]});const{children:r}=this.props;return r}};const aNe=({id:e,name:t})=>g.jsxs(gn,{to:`/server/${e}`,className:Ce("servers-list__server-item","tw:flex tw:items-center tw:justify-between tw:gap-x-2 tw:px-4 tw:py-3","tw:rounded-none tw:hover:bg-lm-secondary tw:hover:dark:bg-dm-secondary","tw:border-b tw:last:border-0 tw:border-lm-border tw:dark:border-dm-border"),children:[g.jsx("span",{className:"tw:truncate",children:t}),g.jsx(Ke,{icon:f0})]}),rY=({servers:e,borderless:t})=>g.jsx(g.Fragment,{children:e.length>0&&g.jsx("div",{"data-testid":"list",className:Ce("tw:w-full tw:border-lm-border tw:dark:border-dm-border","tw:md:max-h-56 tw:md:overflow-y-auto tw:-mb-1 tw:scroll-thin",{"tw:border-y":!t}),children:e.map(({id:n,name:r})=>g.jsx(aNe,{id:n,name:r},n))})}),iY=({color:e=wm,className:t})=>g.jsx("svg",{className:t,viewBox:"0 0 512 512",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:g.jsxs("g",{fill:e,children:[g.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"}),g.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"}),g.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"}),g.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"})]})}),oNe=({servers:e})=>{const t=wo(),n=Object.values(e),r=n.length>0;return D.useEffect(()=>{const i=n.find(({autoConnect:a})=>a);i&&t(`/server/${i.id}`)},[n,t]),g.jsx("div",{className:"tw:w-full",children:g.jsx(ji,{className:"tw:mx-auto tw:max-w-[720px] tw:overflow-hidden",children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:md:flex-row",children:[g.jsx("div",{className:"tw:p-6 tw:hidden tw:md:flex tw:items-center tw:w-[40%]",children:g.jsx("div",{className:"tw:w-full",children:g.jsx(iY,{})})}),g.jsxs("div",{className:"tw:md:border-l tw:border-lm-border tw:dark:border-dm-border tw:flex-grow",children:[g.jsx("h1",{className:Ce("tw:p-4 tw:text-center tw:border-lm-border tw:dark:border-dm-border",{"tw:border-b":!r}),children:"Welcome!"}),r?g.jsx(rY,{servers:n}):g.jsxs("div",{className:"tw:p-6 tw:text-center tw:flex tw:flex-col tw:gap-12 tw:text-xl",children:[g.jsx("p",{children:"This application will help you manage your Shlink servers."}),g.jsx("p",{children:g.jsxs(la,{to:"/server/create",size:"lg",inline:!0,children:[g.jsx(Ke,{icon:yv})," Add a server"]})}),g.jsx("p",{children:g.jsx(aa,{href:"https://shlink.io/documentation",children:g.jsxs("small",{children:[g.jsx("span",{className:"tw:mr-2",children:"Learn more about Shlink"}),g.jsx(Ke,{icon:wJ})]})})})]})]})]})})})},aY=()=>{const{ServersDropdown:e}=ka(aY),[t,n,,r]=Wt(),i=Lr(),{pathname:a}=i;D.useEffect(r,[i,r]);const o="/settings";return g.jsxs(jU,{color:"primary",dark:!0,fixed:"top",expand:"md",className:"tw:text-white tw:bg-lm-main tw:dark:bg-dm-main",children:[g.jsxs(PU,{tag:gn,to:"/",children:[g.jsx(iY,{className:"tw:inline tw:w-7 tw:mr-1",color:"white"})," Shlink"]}),g.jsx(RU,{onClick:n,children:g.jsx(Ke,{icon:$J,className:Ce("tw:transition-transform tw:duration-300",{"tw:rotate-180":t})})}),g.jsx(p3,{navbar:!0,isOpen:t,children:g.jsxs(MU,{navbar:!0,className:"tw:ml-auto",children:[g.jsx(NU,{children:g.jsxs(DU,{tag:gn,to:o,active:a.startsWith(o),children:[g.jsx(Ke,{icon:qJ}),"  Settings"]})}),g.jsx(e,{})]})})]})},sNe=Ia(aY,["ServersDropdown"]),lNe=({children:e})=>{const t=Lr();return D.useEffect(()=>{scrollTo(0,0)},[t]),g.jsx(g.Fragment,{children:e})},oY=eF(e=>e,e=>{try{return WT(e,e,"=")}catch{return!1}}),sY=e=>oY(e)?`v${e}`:e,lY=(e,t="latest")=>oY(e)?e:t,uNe="%_VERSION_%",cNe=e=>sY(lY(e)),q9=({project:e,version:t})=>g.jsx(aa,{href:`https://github.com/shlinkio/${e}/releases/${t}`,className:"tw:text-gray-500",children:g.jsx("b",{children:t})}),fNe=({selectedServer:e,clientVersion:t=uNe})=>{const n=cNe(t);return g.jsxs("small",{className:"tw:text-gray-500",children:[Vj(e)&&g.jsxs(g.Fragment,{children:["Server: ",g.jsx(q9,{project:"shlink",version:e.printableVersion})," - "]}),"Client: ",g.jsx(q9,{project:"shlink-web-client",version:n})]})},dNe=({selectedServer:e})=>g.jsx("div",{className:Ce("tw:text-center",{"tw:md:ml-(--aside-menu-width)":Vj(e)}),children:g.jsx(fNe,{selectedServer:e})}),hh=({children:e,className:t})=>g.jsx("div",{className:Ce("tw:container tw:mx-auto tw:p-5 tw:pt-8 tw:max-md:p-0 tw:max-md:py-4",t),children:e});function uY(e){const t=n=>{const{ServerError:r}=ka(t),i=Hd(),{selectServer:a,selectedServer:o}=n;return D.useEffect(()=>{i.serverId&&a(i.serverId)},[i.serverId,a]),o?zQ(o)?g.jsx(r,{}):g.jsx(e,{...n}):g.jsx(hh,{children:g.jsx(Pz,{loading:!0})})};return t}const cY=uY(D.memo(({selectedServer:e,settings:t})=>{const{buildShlinkApiClient:n,TagColorsStorage:r,ShlinkWebComponent:i,ServerError:a}=ka(cY);if(!Vj(e))return g.jsx(a,{});const o=`/server/${e.id}`;return g.jsx(i,{serverVersion:e.version,apiClient:n(e),settings:t,routesPrefix:o,tagColorsStorage:r,createNotFound:l=>g.jsx(Dz,{to:`${o}${l}`,children:"List short URLs"})})})),hNe=Ia(cY,["buildShlinkApiClient","TagColorsStorage","ShlinkWebComponent","ServerError"]),pNe=(e,t)=>{e.constant("window",window),e.constant("console",console),e.constant("fetch",window.fetch.bind(window)),e.service("HttpClient",Que,"fetch"),e.serviceFactory("ScrollToTop",()=>lNe),e.factory("MainHeader",sNe),e.serviceFactory("Home",()=>oNe),e.decorator("Home",e1),e.decorator("Home",t(["servers"],["resetSelectedServer"])),e.serviceFactory("ShlinkWebComponent",()=>rNe),e.factory("ShlinkWebComponentContainer",hNe),e.decorator("ShlinkWebComponentContainer",t(["selectedServer","settings"],["selectServer"])),e.serviceFactory("ShlinkVersionsContainer",()=>dNe),e.decorator("ShlinkVersionsContainer",t(["selectedServer"])),e.serviceFactory("ErrorHandler",()=>iNe)},fY=()=>{const e=wo();return D.useCallback(()=>e(-1),[e])};function mNe(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 vNe(e){const t={};return e.forEach(n=>{t[n.id]=n}),t}const gNe=(e,{url:t,apiKey:n})=>e.some(r=>r.url===t&&r.apiKey===n);function yNe(e,t){const n=Object.values(e),{duplicatedServers:r=[],newServers:i=[]}=Jz(t,a=>gNe(n,a)?"duplicatedServers":"newServers");return{duplicatedServers:r,newServers:i}}function t1(e,t){const n=new Set(Object.keys(e)),r=[];return t.forEach(i=>{const a=mNe(i);let o=a,l=1;for(;n.has(o);)o=`${a}-${l}`,l++;r.push({...i,id:o}),n.add(o)}),r}const dY=({open:e,duplicatedServers:t,onClose:n,onConfirm:r})=>{const i=t.length>1;return g.jsxs(jz,{size:"lg",title:`Duplicated server${i?"s":""}`,open:e,onClose:n,onConfirm:r,confirmText:`Save duplicate${i?"s":""}`,cancelText:i?"Ignore duplicates":"Discard",children:[g.jsx("p",{children:i?"The next servers already exist:":"There is already a server with:"}),g.jsx("ul",{className:"tw:list-disc tw:mt-4",children:t.map(({url:a,apiKey:o},l)=>i?g.jsxs("li",{children:[g.jsx("b",{children:a})," - ",g.jsx("b",{children:o})]},l):g.jsxs(D.Fragment,{children:[g.jsxs("li",{children:["URL: ",g.jsx("b",{children:a})]}),g.jsxs("li",{children:["API key: ",g.jsx("b",{children:o})]})]},l))}),g.jsxs("span",{children:[i?"Do you want to save duplicated servers":"Do you want to save this server","?"]})]})},bNe=e=>D.useCallback(t=>{t.preventDefault(),e(t)},[e]),hY=({onSubmit:e,initialValues:t,children:n,title:r})=>{const[i,a]=D.useState((t==null?void 0:t.name)??""),[o,l]=D.useState((t==null?void 0:t.url)??""),[f,u]=D.useState((t==null?void 0:t.apiKey)??""),{flag:h,toggle:m}=Wt((t==null?void 0:t.forwardCredentials)??!1,!0),v=bNe(()=>e({name:i,url:o,apiKey:f,forwardCredentials:h}));return g.jsxs("form",{name:"serverForm",onSubmit:v,children:[g.jsxs(S1,{className:"tw:mb-4",bodyClassName:"tw:flex tw:flex-col tw:gap-y-3",title:r,children:[g.jsx(vL,{label:"Name",value:i,onChange:_=>a(_.target.value),required:!0}),g.jsx(vL,{label:"URL",type:"url",value:o,onChange:_=>l(_.target.value),required:!0}),g.jsx(Hle,{label:"API key",value:f,onChange:_=>u(_.target.value),required:!0}),g.jsx(Mle,{summary:"Advanced options",children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-0.5",children:[g.jsxs(O1,{className:"tw:flex tw:items-center tw:gap-x-1.5 tw:cursor-pointer",children:[g.jsx(qle,{onChange:m,checked:h}),"Forward credentials to this server on every request."]}),g.jsxs("small",{className:"tw:pl-5.5 tw:text-gray-600 tw:dark:text-gray-400 tw:mt-0.5",children:['"',"Credentials",'"'," here means cookies, TLS client certificates, or authentication headers containing a username and password."]}),g.jsxs("small",{className:"tw:pl-5.5 tw:text-gray-600 tw:dark:text-gray-400",children:[g.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 ",g.jsx("code",{className:"tw:whitespace-nowrap",children:"Access-Control-Allow-Origin"})," than ",g.jsx("code",{children:"*"}),"."]})]})})]}),g.jsx("div",{className:"tw:flex tw:items-center tw:justify-end tw:gap-x-2",children:n})]})},V9=4e3,H9=({variant:e})=>g.jsx("div",{className:"tw:mt-4",children:g.jsxs(Rz,{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."]})}),pY=({servers:e,createServers:t})=>{const{ImportServersBtn:n,useTimeoutToggle:r}=ka(pY),i=wo(),a=fY(),o=!!Object.keys(e).length,[l,f]=r(!1,V9),[u,h]=r(!1,V9),[m,v]=Wt(),[_,x]=D.useState(),w=D.useCallback(O=>{const[C]=t1(e,[O]);t([C]),i(`/server/${C.id}`)},[t,i,e]),S=D.useCallback(O=>{x(O),Object.values(e).some(({url:T,apiKey:j})=>O.url===T&&O.apiKey===j)?v():w(O)},[w,e,v]);return g.jsxs(hh,{children:[g.jsxs(hY,{title:"Add new server",onSubmit:S,children:[!o&&g.jsx(n,{tooltipPlacement:"top",onImport:f,onError:h}),o&&g.jsx(la,{variant:"secondary",onClick:a,children:"Cancel"}),g.jsx(la,{type:"submit",children:"Create server"})]}),l&&g.jsx(H9,{variant:"success"}),u&&g.jsx(H9,{variant:"error"}),g.jsx(dY,{open:m,duplicatedServers:_?[_]:[],onClose:a,onConfirm:()=>_&&w(_)})]})},wNe=Ia(pY,["ImportServersBtn","useTimeoutToggle"]),mY=({server:e,children:t})=>{const{DeleteServerModal:n}=ka(mY),[r,,i,a]=Wt(),o=wo(),l=D.useCallback(f=>{a(),f&&o("/")},[a,o]);return g.jsxs(g.Fragment,{children:[g.jsx("button",{type:"button",className:"tw:text-danger tw:hover:underline",onClick:i,children:t}),g.jsx(n,{server:e,open:r,onClose:l})]})},_Ne=Ia(mY,["DeleteServerModal"]),xNe=({server:e,onClose:t,open:n,deleteServer:r})=>{const i=D.useCallback(a=>{a==="confirm"&&r(e)},[r,e]);return g.jsx(jz,{open:n,title:"Remove server",variant:"danger",onClose:()=>t(!1),onConfirm:()=>t(!0),onClosed:i,confirmText:"Delete",children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:gap-y-4",children:[g.jsxs("p",{children:["Are you sure you want to remove ",g.jsx("b",{children:e?e.name:""}),"?"]}),g.jsx("p",{children:g.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."})})]})})},SNe=uY(({editServer:e,selectedServer:t,selectServer:n})=>{const r=fY(),{reconnect:i}=Gd();if(!Wp(t))return null;const a=o=>{e(t.id,o),i==="true"&&n(t.id),r()};return g.jsx(hh,{children:g.jsxs(hY,{title:g.jsxs(g.Fragment,{children:['Edit "',t.name,'"']}),initialValues:t,onSubmit:a,children:[g.jsx(la,{variant:"secondary",onClick:r,children:"Cancel"}),g.jsx(la,{type:"submit",children:"Save"})]})})}),ONe=Ia(SNe,["ServerError"]),vY=({createServers:e,servers:t,children:n,onImport:r,onError:i=()=>{},tooltipPlacement:a="bottom",className:o=""})=>{const{ServersImporter:l}=ka(vY),f=D.useRef(null),{anchor:u,tooltip:h}=Mz({placement:a}),[m,v]=D.useState([]),{flag:_,setToTrue:x,setToFalse:w}=Wt(!1,!0),S=D.useRef(!1),O=D.useCallback(async({target:j})=>{var P;return l.importServersFromFile((P=j.files)==null?void 0:P[0]).then(R=>{const{duplicatedServers:$,newServers:q}=yNe(t,R);S.current=q.length>0,e(t1(t,q)),$.length>0?(v($),x()):r==null||r()}).then(()=>{j.value=null}).catch(i)},[e,i,r,t,l,x]),C=D.useCallback(()=>{e(t1(t,m)),w(),r==null||r()},[e,m,w,r,t]),T=D.useCallback(()=>{w(),S.current&&(r==null||r())},[w,r]);return g.jsxs(g.Fragment,{children:[g.jsxs(la,{variant:"secondary",className:o,onClick:()=>{var j;return(j=f.current)==null?void 0:j.click()},...u,children:[g.jsx(Ke,{icon:fJ,fixedWidth:!0})," ",n??"Import from file"]}),g.jsxs(Nz,{...h,children:["You can create servers by importing a CSV file with ",g.jsx("b",{children:"name"}),", ",g.jsx("b",{children:"apiKey"})," and ",g.jsx("b",{children:"url"})," columns."]}),g.jsx("input",{type:"file",accept:".csv",className:"tw:hidden","aria-hidden":!0,tabIndex:-1,ref:f,onChange:O,"data-testid":"csv-file-input"}),g.jsx(dY,{open:_,duplicatedServers:m,onClose:T,onConfirm:C})]})},CNe=Ia(vY,["ServersImporter"]),gY=({servers:e,selectedServer:t})=>{const{DeleteServerButton:n}=ka(gY);return g.jsx(hh,{children:g.jsxs("div",{className:"tw:flex tw:flex-col tw:items-center tw:gap-y-4 tw:md:gap-y-8",children:[g.jsxs(Pz,{className:"tw:w-full tw:lg:w-[80%]",variant:"error",children:[!Wp(t)&&"Could not find this Shlink server.",Wp(t)&&g.jsxs(g.Fragment,{children:[g.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."]})]}),g.jsxs("p",{className:"tw:text-xl",children:["These are the Shlink servers currently configured. Choose one of them or ",g.jsx(gn,{to:"/server/create",children:"add a new one"}),"."]}),g.jsx(ji,{className:"tw:w-full tw:max-w-100 tw:overflow-hidden",children:g.jsx(rY,{borderless:!0,servers:Object.values(e)})}),Wp(t)&&g.jsxs("p",{className:"tw:text-xl",children:["Alternatively, if you think you may have misconfigured this server, you can ",g.jsx(n,{server:t,children:"remove it"})," or ",g.jsx(gn,{to:`/server/${t.id}/edit?reconnect=true`,children:"edit it"}),"."]})]})})},ENe=Ia(gY,["DeleteServerButton"]),TNe=4e3,yY=({servers:e})=>{const{ServersExporter:t,ImportServersBtn:n,useTimeoutToggle:r,ManageServersRow:i}=ka(yY),[a,o]=D.useState(""),l=D.useMemo(()=>Object.values(e),[e]),f=D.useMemo(()=>l.filter(({name:v,url:_})=>`${v} ${_}`.toLowerCase().match(a.toLowerCase())),[l,a]),u=l.some(({autoConnect:v})=>!!v),[h,m]=r(!1,TNe);return g.jsxs(hh,{className:"tw:flex tw:flex-col tw:gap-y-4",children:[g.jsx(Gle,{onChange:o}),g.jsxs("div",{className:"tw:flex tw:flex-col tw:md:flex-row tw:gap-2",children:[g.jsxs("div",{className:"tw:flex tw:gap-2",children:[g.jsx(n,{className:"tw:flex-grow",onError:m,children:"Import servers"}),f.length>0&&g.jsxs(la,{variant:"secondary",className:"tw:flex-grow",onClick:async()=>t.exportServers(),children:[g.jsx(Ke,{icon:BB})," Export servers"]})]}),g.jsxs(la,{className:"tw:md:ml-auto",to:"/server/create",children:[g.jsx(Ke,{icon:yv})," Add a server"]})]}),g.jsx(S1,{className:"card",children:g.jsxs(Ci,{header:g.jsxs(Ci.Row,{children:[u&&g.jsx(Ci.Cell,{className:"tw:w-[35px]",children:g.jsx("span",{className:"tw:sr-only",children:"Auto-connect"})}),g.jsx(Ci.Cell,{children:"Name"}),g.jsx(Ci.Cell,{children:"Base URL"}),g.jsx(Ci.Cell,{children:g.jsx("span",{className:"sr-only",children:"Options"})})]}),children:[!f.length&&g.jsx(Ci.Row,{className:"tw:text-center",children:g.jsx(Ci.Cell,{colSpan:4,children:"No servers found."})}),f.map(v=>g.jsx(i,{server:v,hasAutoConnect:u},v.id))]})}),h&&g.jsx("div",{children:g.jsx(Rz,{variant:"error",children:"The servers could not be imported. Make sure the format is correct."})})]})},ANe=Ia(yY,["ServersExporter","ImportServersBtn","useTimeoutToggle","ManageServersRow"]),bY=({server:e,hasAutoConnect:t})=>{const{ManageServersRowDropdown:n}=ka(bY),{anchor:r,tooltip:i}=Mz();return g.jsxs(Ci.Row,{className:"tw:relative",children:[t&&g.jsx(Ci.Cell,{columnName:"Auto-connect",children:e.autoConnect&&g.jsxs(g.Fragment,{children:[g.jsx(Ke,{icon:ac,className:"tw:text-lm-brand tw:dark:text-dm-brand",...r}),g.jsx(Nz,{...i,children:"Auto-connect to this server"})]})}),g.jsx(Ci.Cell,{className:"tw:font-bold",columnName:"Name",children:g.jsx(gn,{to:`/server/${e.id}`,children:e.name})}),g.jsx(Ci.Cell,{columnName:"Base URL",className:"tw:max-lg:border-b-0",children:e.url}),g.jsx(Ci.Cell,{className:"tw:text-right tw:max-lg:absolute tw:right-0 tw:-top-1 tw:mx-lg:pt-0",children:g.jsx(n,{server:e})})]})},jNe=Ia(bY,["ManageServersRowDropdown"]),wY=({server:e,setAutoConnect:t})=>{const{DeleteServerModal:n}=ka(wY),[r,,i,a]=Wt(),o=`/server/${e.id}`,{autoConnect:l}=e,f=l?uJ:Rle;return g.jsxs(g.Fragment,{children:[g.jsxs(y1,{minWidth:l?210:170,children:[g.jsxs(Je,{tag:gn,to:o,children:[g.jsx(Ke,{icon:sJ,fixedWidth:!0})," Connect"]}),g.jsxs(Je,{tag:gn,to:`${o}/edit`,children:[g.jsx(Ke,{icon:Wj,fixedWidth:!0})," Edit server"]}),g.jsxs(Je,{onClick:()=>t(e,!l),children:[g.jsx(Ke,{icon:f,fixedWidth:!0})," ",l?"Do not a":"A","uto-connect"]}),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsxs(Je,{className:"tw:text-danger",onClick:i,children:[g.jsx(Ke,{icon:LB,fixedWidth:!0})," Remove server"]})]}),g.jsx(n,{server:e,open:r,onClose:a})]})},PNe=Ia(wY,["DeleteServerModal"]),_Y=(e,t)=>Kz(e,t,{serializeError:n=>n}),RNe={},{actions:MNe,reducer:NNe}=Un({name:"shlink/servers",initialState:RNe,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,a])=>[i,{...a,autoConnect:i===n}])):{...e,[n]:{...e[n],autoConnect:r}}:e}},createServers:{prepare:e=>({payload:vNe(e)}),reducer:(e,{payload:t})=>({...e,...t})}}}),{editServer:LNe,deleteServer:DNe,setAutoConnect:kNe,createServers:xY}=MNe,INe=NNe,$Ne=e=>t1({},Array.isArray(e)?e.filter(NB):[]),BNe=e=>_Y("shlink/remoteServers/fetchServers",async(t,{dispatch:n})=>{const r=await e.jsonRequest(`${s0.homepage}/servers.json`),i=$Ne(r);n(xY(i))}),x4="shlink/selectedServer",UNe="1.0.0",zNe="999.999.999",FNe="latest",qNe=e=>lY(e===FNe?zNe:e,UNe),VNe=eF(e=>`${e.id}_${e.url}_${e.apiKey}`,async(e,t)=>t().then(({version:n})=>({version:qNe(n),printableVersion:sY(n)}))),W9=null,S4=Gr(`${x4}/resetSelectedServer`),HNe=e=>_Y(`${x4}/selectServer`,async(t,{dispatch:n,getState:r})=>{n(S4());const{servers:i}=r(),a=i[t];if(!a)return{serverNotFound:!0};try{const o=e(a),{version:l,printableVersion:f}=await VNe(a,()=>o.health());return{...a,version:l,printableVersion:f}}catch{return{...a,serverNotReachable:!0}}}),WNe=e=>Un({name:x4,initialState:W9,reducers:{},extraReducers:t=>{t.addCase(S4,()=>W9),t.addCase(e.fulfilled,(n,{payload:r})=>r)}}),GNe=({servers:e,selectedServer:t})=>{const n=Object.values(e);return g.jsxs(sz,{nav:!0,inNavbar:!0,children:[g.jsxs(ys,{nav:!0,caret:!0,children:[g.jsx(Ke,{icon:zN})," ",g.jsx("span",{className:"tw:ml-1",children:"Servers"})]}),g.jsx(Xl,{end:!0,className:"tw:right-0",children:n.length===0?g.jsxs(Je,{tag:gn,to:"/server/create",children:[g.jsx(Ke,{icon:yv})," ",g.jsx("span",{className:"tw:ml-1",children:"Add a server"})]}):g.jsxs(g.Fragment,{children:[n.map(({name:r,id:i})=>g.jsx(Je,{tag:gn,to:`/server/${i}`,active:FQ(t)===i,children:r},i)),g.jsx(Je,{divider:!0,tag:"hr"}),g.jsxs(Je,{tag:gn,to:"/manage-servers",children:[g.jsx(Ke,{icon:zN})," ",g.jsx("span",{className:"tw:ml-1",children:"Manage servers"})]})]})})]})},YNe=({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)},KNe=(e,t,n)=>{const r=new Blob([t],{type:"text/csv;charset=utf-8;"}),i=URL.createObjectURL(r);YNe(e,i,n)},ZNe="shlink-servers.csv";var fv,dv,hv;class XNe{constructor(t,n,r){dp(this,fv);dp(this,dv);dp(this,hv);bf(this,"exportServers",async()=>{const t=Object.values(fp(this,fv).get("servers")??{}).map(qQ);try{const n=fp(this,hv).call(this,t);KNe(fp(this,dv),n,ZNe)}catch(n){console.error(n)}});hp(this,fv,t),hp(this,dv,n),hp(this,hv,r)}}fv=new WeakMap,dv=new WeakMap,hv=new WeakMap;const QNe=e=>{if(!Array.isArray(e))throw new Error("Provided file does not have the right format.");return e.map(HQ)};var pv;class JNe{constructor(t){dp(this,pv);hp(this,pv,t)}async importServersFromFile(t){if(!t)throw new Error("No file provided");const n=await t.text(),r=await fp(this,pv).call(this,n);return QNe(r)}}pv=new WeakMap;const e6e=(e,t)=>{e.factory("ManageServers",ANe),e.decorator("ManageServers",e1),e.decorator("ManageServers",t(["selectedServer","servers"],["resetSelectedServer"])),e.factory("ManageServersRow",jNe),e.factory("ManageServersRowDropdown",PNe),e.decorator("ManageServersRowDropdown",t(null,["setAutoConnect"])),e.factory("CreateServer",wNe),e.decorator("CreateServer",e1),e.decorator("CreateServer",t(["selectedServer","servers"],["createServers","resetSelectedServer"])),e.factory("EditServer",ONe),e.decorator("EditServer",t(["selectedServer"],["editServer","selectServer","resetSelectedServer"])),e.serviceFactory("ServersDropdown",()=>GNe),e.decorator("ServersDropdown",t(["servers","selectedServer"])),e.serviceFactory("DeleteServerModal",()=>xNe),e.decorator("DeleteServerModal",t(null,["deleteServer"])),e.factory("DeleteServerButton",_Ne),e.factory("ImportServersBtn",CNe),e.decorator("ImportServersBtn",t(["servers"],["createServers"])),e.factory("ServerError",ENe),e.decorator("ServerError",t(["servers","selectedServer"])),e.service("ServersImporter",JNe,"csvToJson"),e.service("ServersExporter",XNe,"Storage","window","jsonToCsv"),e.serviceFactory("selectServer",HNe,"buildShlinkApiClient","loadMercureInfo"),e.serviceFactory("createServers",()=>xY),e.serviceFactory("deleteServer",()=>DNe),e.serviceFactory("editServer",()=>LNe),e.serviceFactory("setAutoConnect",()=>kNe),e.serviceFactory("fetchServers",BNe,"HttpClient"),e.serviceFactory("resetSelectedServer",()=>S4),e.serviceFactory("selectedServerReducerCreator",WNe,"selectServer"),e.serviceFactory("selectedServerReducer",n=>n.reducer,"selectedServerReducerCreator")},SY={field:"dateCreated",dir:"DESC"},t6e={realTimeUpdates:{enabled:!0},shortUrlCreation:{validateUrls:!1},ui:{theme:_3()},visits:{defaultInterval:"last30Days"},shortUrlsList:{defaultOrdering:SY}},{reducer:n6e,actions:r6e}=Un({name:"shlink/settings",initialState:t6e,reducers:{setSettings:(e,{payload:t})=>j1(e,t)}}),{setSettings:i6e}=r6e,a6e=n6e,o6e=({settings:e,setSettings:t})=>g.jsx(hh,{children:g.jsx(Fce,{settings:e,updateSettings:t,defaultShortUrlsListOrdering:SY})}),s6e=(e,t)=>{e.serviceFactory("Settings",()=>o6e),e.decorator("Settings",e1),e.decorator("Settings",t(["settings"],["setSettings","resetSelectedServer"])),e.serviceFactory("setSettings",()=>i6e)};var pE,G9;function l6e(){return G9||(G9=1,pE=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,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},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 a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var o in r)n.d(a,o,(function(l){return r[l]}).bind(null,o));return a},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(x){var w=[];for(var S in x)w.push(S);return w};e.exports=m;var a=n(5);a.inherits=n(2);var o=n(23),l=n(14);a.inherits(m,o);for(var f=i(l.prototype),u=0;u<f.length;u++){var h=f[u];m.prototype[h]||(m.prototype[h]=l.prototype[h])}function m(x){if(!(this instanceof m))return new m(x);o.call(this,x),l.call(this,x),x&&x.readable===!1&&(this.readable=!1),x&&x.writable===!1&&(this.writable=!1),this.allowHalfOpen=!0,x&&x.allowHalfOpen===!1&&(this.allowHalfOpen=!1),this.once("end",v)}function v(){this.allowHalfOpen||this._writableState.ended||r.nextTick(_,this)}function _(x){x.end()}Object.defineProperty(m.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(m.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(x){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=x,this._writableState.destroyed=x)}}),m.prototype._destroy=function(x,w){this.push(null),this.end(),r.nextTick(w,x)}},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),a=n(39),o=n(40);function l(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function f(z,V){if(l()<V)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(z=new Uint8Array(V)).__proto__=u.prototype:(z===null&&(z=new u(V)),z.length=V),z}function u(z,V,ne){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(z,V,ne);if(typeof z=="number"){if(typeof V=="string")throw new Error("If encoding is specified then the first argument must be a string");return v(this,z)}return h(this,z,V,ne)}function h(z,V,ne,ce){if(typeof V=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&V instanceof ArrayBuffer?function(Q,le,pe,ye){if(le.byteLength,pe<0||le.byteLength<pe)throw new RangeError("'offset' is out of bounds");if(le.byteLength<pe+(ye||0))throw new RangeError("'length' is out of bounds");return le=pe===void 0&&ye===void 0?new Uint8Array(le):ye===void 0?new Uint8Array(le,pe):new Uint8Array(le,pe,ye),u.TYPED_ARRAY_SUPPORT?(Q=le).__proto__=u.prototype:Q=_(Q,le),Q}(z,V,ne,ce):typeof V=="string"?function(Q,le,pe){if(typeof pe=="string"&&pe!==""||(pe="utf8"),!u.isEncoding(pe))throw new TypeError('"encoding" must be a valid string encoding');var ye=0|w(le,pe),me=(Q=f(Q,ye)).write(le,pe);return me!==ye&&(Q=Q.slice(0,me)),Q}(z,V,ne):function(Q,le){if(u.isBuffer(le)){var pe=0|x(le.length);return(Q=f(Q,pe)).length===0||le.copy(Q,0,0,pe),Q}if(le){if(typeof ArrayBuffer<"u"&&le.buffer instanceof ArrayBuffer||"length"in le)return typeof le.length!="number"||function(ye){return ye!=ye}(le.length)?f(Q,0):_(Q,le);if(le.type==="Buffer"&&o(le.data))return _(Q,le.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(z,V)}function m(z){if(typeof z!="number")throw new TypeError('"size" argument must be a number');if(z<0)throw new RangeError('"size" argument must not be negative')}function v(z,V){if(m(V),z=f(z,V<0?0:0|x(V)),!u.TYPED_ARRAY_SUPPORT)for(var ne=0;ne<V;++ne)z[ne]=0;return z}function _(z,V){var ne=V.length<0?0:0|x(V.length);z=f(z,ne);for(var ce=0;ce<ne;ce+=1)z[ce]=255&V[ce];return z}function x(z){if(z>=l())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+l().toString(16)+" bytes");return 0|z}function w(z,V){if(u.isBuffer(z))return z.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(z)||z instanceof ArrayBuffer))return z.byteLength;typeof z!="string"&&(z=""+z);var ne=z.length;if(ne===0)return 0;for(var ce=!1;;)switch(V){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":case void 0:return de(z).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ne;case"hex":return ne>>>1;case"base64":return fe(z).length;default:if(ce)return de(z).length;V=(""+V).toLowerCase(),ce=!0}}function S(z,V,ne){var ce=z[V];z[V]=z[ne],z[ne]=ce}function O(z,V,ne,ce,Q){if(z.length===0)return-1;if(typeof ne=="string"?(ce=ne,ne=0):ne>2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ne=+ne,isNaN(ne)&&(ne=Q?0:z.length-1),ne<0&&(ne=z.length+ne),ne>=z.length){if(Q)return-1;ne=z.length-1}else if(ne<0){if(!Q)return-1;ne=0}if(typeof V=="string"&&(V=u.from(V,ce)),u.isBuffer(V))return V.length===0?-1:C(z,V,ne,ce,Q);if(typeof V=="number")return V&=255,u.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Q?Uint8Array.prototype.indexOf.call(z,V,ne):Uint8Array.prototype.lastIndexOf.call(z,V,ne):C(z,[V],ne,ce,Q);throw new TypeError("val must be string, number or Buffer")}function C(z,V,ne,ce,Q){var le,pe=1,ye=z.length,me=V.length;if(ce!==void 0&&((ce=String(ce).toLowerCase())==="ucs2"||ce==="ucs-2"||ce==="utf16le"||ce==="utf-16le")){if(z.length<2||V.length<2)return-1;pe=2,ye/=2,me/=2,ne/=2}function xe($e,Fe){return pe===1?$e[Fe]:$e.readUInt16BE(Fe*pe)}if(Q){var Ae=-1;for(le=ne;le<ye;le++)if(xe(z,le)===xe(V,Ae===-1?0:le-Ae)){if(Ae===-1&&(Ae=le),le-Ae+1===me)return Ae*pe}else Ae!==-1&&(le-=le-Ae),Ae=-1}else for(ne+me>ye&&(ne=ye-me),le=ne;le>=0;le--){for(var De=!0,ze=0;ze<me;ze++)if(xe(z,le+ze)!==xe(V,ze)){De=!1;break}if(De)return le}return-1}function T(z,V,ne,ce){ne=Number(ne)||0;var Q=z.length-ne;ce?(ce=Number(ce))>Q&&(ce=Q):ce=Q;var le=V.length;if(le%2!=0)throw new TypeError("Invalid hex string");ce>le/2&&(ce=le/2);for(var pe=0;pe<ce;++pe){var ye=parseInt(V.substr(2*pe,2),16);if(isNaN(ye))return pe;z[ne+pe]=ye}return pe}function j(z,V,ne,ce){return be(de(V,z.length-ne),z,ne,ce)}function P(z,V,ne,ce){return be(function(Q){for(var le=[],pe=0;pe<Q.length;++pe)le.push(255&Q.charCodeAt(pe));return le}(V),z,ne,ce)}function R(z,V,ne,ce){return P(z,V,ne,ce)}function $(z,V,ne,ce){return be(fe(V),z,ne,ce)}function q(z,V,ne,ce){return be(function(Q,le){for(var pe,ye,me,xe=[],Ae=0;Ae<Q.length&&!((le-=2)<0);++Ae)ye=(pe=Q.charCodeAt(Ae))>>8,me=pe%256,xe.push(me),xe.push(ye);return xe}(V,z.length-ne),z,ne,ce)}function K(z,V,ne){return V===0&&ne===z.length?i.fromByteArray(z):i.fromByteArray(z.slice(V,ne))}function H(z,V,ne){ne=Math.min(z.length,ne);for(var ce=[],Q=V;Q<ne;){var le,pe,ye,me,xe=z[Q],Ae=null,De=xe>239?4:xe>223?3:xe>191?2:1;if(Q+De<=ne)switch(De){case 1:xe<128&&(Ae=xe);break;case 2:(192&(le=z[Q+1]))==128&&(me=(31&xe)<<6|63&le)>127&&(Ae=me);break;case 3:le=z[Q+1],pe=z[Q+2],(192&le)==128&&(192&pe)==128&&(me=(15&xe)<<12|(63&le)<<6|63&pe)>2047&&(me<55296||me>57343)&&(Ae=me);break;case 4:le=z[Q+1],pe=z[Q+2],ye=z[Q+3],(192&le)==128&&(192&pe)==128&&(192&ye)==128&&(me=(15&xe)<<18|(63&le)<<12|(63&pe)<<6|63&ye)>65535&&me<1114112&&(Ae=me)}Ae===null?(Ae=65533,De=1):Ae>65535&&(Ae-=65536,ce.push(Ae>>>10&1023|55296),Ae=56320|1023&Ae),ce.push(Ae),Q+=De}return function(ze){var $e=ze.length;if($e<=G)return String.fromCharCode.apply(String,ze);for(var Fe="",we=0;we<$e;)Fe+=String.fromCharCode.apply(String,ze.slice(we,we+=G));return Fe}(ce)}t.Buffer=u,t.SlowBuffer=function(z){return+z!=z&&(z=0),u.alloc(+z)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=r.TYPED_ARRAY_SUPPORT!==void 0?r.TYPED_ARRAY_SUPPORT:function(){try{var z=new Uint8Array(1);return z.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},z.foo()===42&&typeof z.subarray=="function"&&z.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=l(),u.poolSize=8192,u._augment=function(z){return z.__proto__=u.prototype,z},u.from=function(z,V,ne){return h(null,z,V,ne)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(z,V,ne){return function(ce,Q,le,pe){return m(Q),Q<=0?f(ce,Q):le!==void 0?typeof pe=="string"?f(ce,Q).fill(le,pe):f(ce,Q).fill(le):f(ce,Q)}(null,z,V,ne)},u.allocUnsafe=function(z){return v(null,z)},u.allocUnsafeSlow=function(z){return v(null,z)},u.isBuffer=function(z){return!(z==null||!z._isBuffer)},u.compare=function(z,V){if(!u.isBuffer(z)||!u.isBuffer(V))throw new TypeError("Arguments must be Buffers");if(z===V)return 0;for(var ne=z.length,ce=V.length,Q=0,le=Math.min(ne,ce);Q<le;++Q)if(z[Q]!==V[Q]){ne=z[Q],ce=V[Q];break}return ne<ce?-1:ce<ne?1:0},u.isEncoding=function(z){switch(String(z).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}},u.concat=function(z,V){if(!o(z))throw new TypeError('"list" argument must be an Array of Buffers');if(z.length===0)return u.alloc(0);var ne;if(V===void 0)for(V=0,ne=0;ne<z.length;++ne)V+=z[ne].length;var ce=u.allocUnsafe(V),Q=0;for(ne=0;ne<z.length;++ne){var le=z[ne];if(!u.isBuffer(le))throw new TypeError('"list" argument must be an Array of Buffers');le.copy(ce,Q),Q+=le.length}return ce},u.byteLength=w,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var z=this.length;if(z%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var V=0;V<z;V+=2)S(this,V,V+1);return this},u.prototype.swap32=function(){var z=this.length;if(z%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var V=0;V<z;V+=4)S(this,V,V+3),S(this,V+1,V+2);return this},u.prototype.swap64=function(){var z=this.length;if(z%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var V=0;V<z;V+=8)S(this,V,V+7),S(this,V+1,V+6),S(this,V+2,V+5),S(this,V+3,V+4);return this},u.prototype.toString=function(){var z=0|this.length;return z===0?"":arguments.length===0?H(this,0,z):(function(V,ne,ce){var Q=!1;if((ne===void 0||ne<0)&&(ne=0),ne>this.length||((ce===void 0||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0)<=(ne>>>=0))return"";for(V||(V="utf8");;)switch(V){case"hex":return X(this,ne,ce);case"utf8":case"utf-8":return H(this,ne,ce);case"ascii":return te(this,ne,ce);case"latin1":case"binary":return ie(this,ne,ce);case"base64":return K(this,ne,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,ne,ce);default:if(Q)throw new TypeError("Unknown encoding: "+V);V=(V+"").toLowerCase(),Q=!0}}).apply(this,arguments)},u.prototype.equals=function(z){if(!u.isBuffer(z))throw new TypeError("Argument must be a Buffer");return this===z||u.compare(this,z)===0},u.prototype.inspect=function(){var z="",V=t.INSPECT_MAX_BYTES;return this.length>0&&(z=this.toString("hex",0,V).match(/.{2}/g).join(" "),this.length>V&&(z+=" ... ")),"<Buffer "+z+">"},u.prototype.compare=function(z,V,ne,ce,Q){if(!u.isBuffer(z))throw new TypeError("Argument must be a Buffer");if(V===void 0&&(V=0),ne===void 0&&(ne=z?z.length:0),ce===void 0&&(ce=0),Q===void 0&&(Q=this.length),V<0||ne>z.length||ce<0||Q>this.length)throw new RangeError("out of range index");if(ce>=Q&&V>=ne)return 0;if(ce>=Q)return-1;if(V>=ne)return 1;if(V>>>=0,ne>>>=0,ce>>>=0,Q>>>=0,this===z)return 0;for(var le=Q-ce,pe=ne-V,ye=Math.min(le,pe),me=this.slice(ce,Q),xe=z.slice(V,ne),Ae=0;Ae<ye;++Ae)if(me[Ae]!==xe[Ae]){le=me[Ae],pe=xe[Ae];break}return le<pe?-1:pe<le?1:0},u.prototype.includes=function(z,V,ne){return this.indexOf(z,V,ne)!==-1},u.prototype.indexOf=function(z,V,ne){return O(this,z,V,ne,!0)},u.prototype.lastIndexOf=function(z,V,ne){return O(this,z,V,ne,!1)},u.prototype.write=function(z,V,ne,ce){if(V===void 0)ce="utf8",ne=this.length,V=0;else if(ne===void 0&&typeof V=="string")ce=V,ne=this.length,V=0;else{if(!isFinite(V))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");V|=0,isFinite(ne)?(ne|=0,ce===void 0&&(ce="utf8")):(ce=ne,ne=void 0)}var Q=this.length-V;if((ne===void 0||ne>Q)&&(ne=Q),z.length>0&&(ne<0||V<0)||V>this.length)throw new RangeError("Attempt to write outside buffer bounds");ce||(ce="utf8");for(var le=!1;;)switch(ce){case"hex":return T(this,z,V,ne);case"utf8":case"utf-8":return j(this,z,V,ne);case"ascii":return P(this,z,V,ne);case"latin1":case"binary":return R(this,z,V,ne);case"base64":return $(this,z,V,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,z,V,ne);default:if(le)throw new TypeError("Unknown encoding: "+ce);ce=(""+ce).toLowerCase(),le=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var G=4096;function te(z,V,ne){var ce="";ne=Math.min(z.length,ne);for(var Q=V;Q<ne;++Q)ce+=String.fromCharCode(127&z[Q]);return ce}function ie(z,V,ne){var ce="";ne=Math.min(z.length,ne);for(var Q=V;Q<ne;++Q)ce+=String.fromCharCode(z[Q]);return ce}function X(z,V,ne){var ce=z.length;(!V||V<0)&&(V=0),(!ne||ne<0||ne>ce)&&(ne=ce);for(var Q="",le=V;le<ne;++le)Q+=ae(z[le]);return Q}function ee(z,V,ne){for(var ce=z.slice(V,ne),Q="",le=0;le<ce.length;le+=2)Q+=String.fromCharCode(ce[le]+256*ce[le+1]);return Q}function W(z,V,ne){if(z%1!=0||z<0)throw new RangeError("offset is not uint");if(z+V>ne)throw new RangeError("Trying to access beyond buffer length")}function B(z,V,ne,ce,Q,le){if(!u.isBuffer(z))throw new TypeError('"buffer" argument must be a Buffer instance');if(V>Q||V<le)throw new RangeError('"value" argument is out of bounds');if(ne+ce>z.length)throw new RangeError("Index out of range")}function U(z,V,ne,ce){V<0&&(V=65535+V+1);for(var Q=0,le=Math.min(z.length-ne,2);Q<le;++Q)z[ne+Q]=(V&255<<8*(ce?Q:1-Q))>>>8*(ce?Q:1-Q)}function F(z,V,ne,ce){V<0&&(V=4294967295+V+1);for(var Q=0,le=Math.min(z.length-ne,4);Q<le;++Q)z[ne+Q]=V>>>8*(ce?Q:3-Q)&255}function M(z,V,ne,ce,Q,le){if(ne+ce>z.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function I(z,V,ne,ce,Q){return Q||M(z,0,ne,4),a.write(z,V,ne,ce,23,4),ne+4}function J(z,V,ne,ce,Q){return Q||M(z,0,ne,8),a.write(z,V,ne,ce,52,8),ne+8}u.prototype.slice=function(z,V){var ne,ce=this.length;if(z=~~z,V=V===void 0?ce:~~V,z<0?(z+=ce)<0&&(z=0):z>ce&&(z=ce),V<0?(V+=ce)<0&&(V=0):V>ce&&(V=ce),V<z&&(V=z),u.TYPED_ARRAY_SUPPORT)(ne=this.subarray(z,V)).__proto__=u.prototype;else{var Q=V-z;ne=new u(Q,void 0);for(var le=0;le<Q;++le)ne[le]=this[le+z]}return ne},u.prototype.readUIntLE=function(z,V,ne){z|=0,V|=0,ne||W(z,V,this.length);for(var ce=this[z],Q=1,le=0;++le<V&&(Q*=256);)ce+=this[z+le]*Q;return ce},u.prototype.readUIntBE=function(z,V,ne){z|=0,V|=0,ne||W(z,V,this.length);for(var ce=this[z+--V],Q=1;V>0&&(Q*=256);)ce+=this[z+--V]*Q;return ce},u.prototype.readUInt8=function(z,V){return V||W(z,1,this.length),this[z]},u.prototype.readUInt16LE=function(z,V){return V||W(z,2,this.length),this[z]|this[z+1]<<8},u.prototype.readUInt16BE=function(z,V){return V||W(z,2,this.length),this[z]<<8|this[z+1]},u.prototype.readUInt32LE=function(z,V){return V||W(z,4,this.length),(this[z]|this[z+1]<<8|this[z+2]<<16)+16777216*this[z+3]},u.prototype.readUInt32BE=function(z,V){return V||W(z,4,this.length),16777216*this[z]+(this[z+1]<<16|this[z+2]<<8|this[z+3])},u.prototype.readIntLE=function(z,V,ne){z|=0,V|=0,ne||W(z,V,this.length);for(var ce=this[z],Q=1,le=0;++le<V&&(Q*=256);)ce+=this[z+le]*Q;return ce>=(Q*=128)&&(ce-=Math.pow(2,8*V)),ce},u.prototype.readIntBE=function(z,V,ne){z|=0,V|=0,ne||W(z,V,this.length);for(var ce=V,Q=1,le=this[z+--ce];ce>0&&(Q*=256);)le+=this[z+--ce]*Q;return le>=(Q*=128)&&(le-=Math.pow(2,8*V)),le},u.prototype.readInt8=function(z,V){return V||W(z,1,this.length),128&this[z]?-1*(255-this[z]+1):this[z]},u.prototype.readInt16LE=function(z,V){V||W(z,2,this.length);var ne=this[z]|this[z+1]<<8;return 32768&ne?4294901760|ne:ne},u.prototype.readInt16BE=function(z,V){V||W(z,2,this.length);var ne=this[z+1]|this[z]<<8;return 32768&ne?4294901760|ne:ne},u.prototype.readInt32LE=function(z,V){return V||W(z,4,this.length),this[z]|this[z+1]<<8|this[z+2]<<16|this[z+3]<<24},u.prototype.readInt32BE=function(z,V){return V||W(z,4,this.length),this[z]<<24|this[z+1]<<16|this[z+2]<<8|this[z+3]},u.prototype.readFloatLE=function(z,V){return V||W(z,4,this.length),a.read(this,z,!0,23,4)},u.prototype.readFloatBE=function(z,V){return V||W(z,4,this.length),a.read(this,z,!1,23,4)},u.prototype.readDoubleLE=function(z,V){return V||W(z,8,this.length),a.read(this,z,!0,52,8)},u.prototype.readDoubleBE=function(z,V){return V||W(z,8,this.length),a.read(this,z,!1,52,8)},u.prototype.writeUIntLE=function(z,V,ne,ce){z=+z,V|=0,ne|=0,ce||B(this,z,V,ne,Math.pow(2,8*ne)-1,0);var Q=1,le=0;for(this[V]=255&z;++le<ne&&(Q*=256);)this[V+le]=z/Q&255;return V+ne},u.prototype.writeUIntBE=function(z,V,ne,ce){z=+z,V|=0,ne|=0,ce||B(this,z,V,ne,Math.pow(2,8*ne)-1,0);var Q=ne-1,le=1;for(this[V+Q]=255&z;--Q>=0&&(le*=256);)this[V+Q]=z/le&255;return V+ne},u.prototype.writeUInt8=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,1,255,0),u.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),this[V]=255&z,V+1},u.prototype.writeUInt16LE=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[V]=255&z,this[V+1]=z>>>8):U(this,z,V,!0),V+2},u.prototype.writeUInt16BE=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[V]=z>>>8,this[V+1]=255&z):U(this,z,V,!1),V+2},u.prototype.writeUInt32LE=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[V+3]=z>>>24,this[V+2]=z>>>16,this[V+1]=z>>>8,this[V]=255&z):F(this,z,V,!0),V+4},u.prototype.writeUInt32BE=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[V]=z>>>24,this[V+1]=z>>>16,this[V+2]=z>>>8,this[V+3]=255&z):F(this,z,V,!1),V+4},u.prototype.writeIntLE=function(z,V,ne,ce){if(z=+z,V|=0,!ce){var Q=Math.pow(2,8*ne-1);B(this,z,V,ne,Q-1,-Q)}var le=0,pe=1,ye=0;for(this[V]=255&z;++le<ne&&(pe*=256);)z<0&&ye===0&&this[V+le-1]!==0&&(ye=1),this[V+le]=(z/pe>>0)-ye&255;return V+ne},u.prototype.writeIntBE=function(z,V,ne,ce){if(z=+z,V|=0,!ce){var Q=Math.pow(2,8*ne-1);B(this,z,V,ne,Q-1,-Q)}var le=ne-1,pe=1,ye=0;for(this[V+le]=255&z;--le>=0&&(pe*=256);)z<0&&ye===0&&this[V+le+1]!==0&&(ye=1),this[V+le]=(z/pe>>0)-ye&255;return V+ne},u.prototype.writeInt8=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,1,127,-128),u.TYPED_ARRAY_SUPPORT||(z=Math.floor(z)),z<0&&(z=255+z+1),this[V]=255&z,V+1},u.prototype.writeInt16LE=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[V]=255&z,this[V+1]=z>>>8):U(this,z,V,!0),V+2},u.prototype.writeInt16BE=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[V]=z>>>8,this[V+1]=255&z):U(this,z,V,!1),V+2},u.prototype.writeInt32LE=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[V]=255&z,this[V+1]=z>>>8,this[V+2]=z>>>16,this[V+3]=z>>>24):F(this,z,V,!0),V+4},u.prototype.writeInt32BE=function(z,V,ne){return z=+z,V|=0,ne||B(this,z,V,4,2147483647,-2147483648),z<0&&(z=4294967295+z+1),u.TYPED_ARRAY_SUPPORT?(this[V]=z>>>24,this[V+1]=z>>>16,this[V+2]=z>>>8,this[V+3]=255&z):F(this,z,V,!1),V+4},u.prototype.writeFloatLE=function(z,V,ne){return I(this,z,V,!0,ne)},u.prototype.writeFloatBE=function(z,V,ne){return I(this,z,V,!1,ne)},u.prototype.writeDoubleLE=function(z,V,ne){return J(this,z,V,!0,ne)},u.prototype.writeDoubleBE=function(z,V,ne){return J(this,z,V,!1,ne)},u.prototype.copy=function(z,V,ne,ce){if(ne||(ne=0),ce||ce===0||(ce=this.length),V>=z.length&&(V=z.length),V||(V=0),ce>0&&ce<ne&&(ce=ne),ce===ne||z.length===0||this.length===0)return 0;if(V<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("sourceStart out of bounds");if(ce<0)throw new RangeError("sourceEnd out of bounds");ce>this.length&&(ce=this.length),z.length-V<ce-ne&&(ce=z.length-V+ne);var Q,le=ce-ne;if(this===z&&ne<V&&V<ce)for(Q=le-1;Q>=0;--Q)z[Q+V]=this[Q+ne];else if(le<1e3||!u.TYPED_ARRAY_SUPPORT)for(Q=0;Q<le;++Q)z[Q+V]=this[Q+ne];else Uint8Array.prototype.set.call(z,this.subarray(ne,ne+le),V);return le},u.prototype.fill=function(z,V,ne,ce){if(typeof z=="string"){if(typeof V=="string"?(ce=V,V=0,ne=this.length):typeof ne=="string"&&(ce=ne,ne=this.length),z.length===1){var Q=z.charCodeAt(0);Q<256&&(z=Q)}if(ce!==void 0&&typeof ce!="string")throw new TypeError("encoding must be a string");if(typeof ce=="string"&&!u.isEncoding(ce))throw new TypeError("Unknown encoding: "+ce)}else typeof z=="number"&&(z&=255);if(V<0||this.length<V||this.length<ne)throw new RangeError("Out of range index");if(ne<=V)return this;var le;if(V>>>=0,ne=ne===void 0?this.length:ne>>>0,z||(z=0),typeof z=="number")for(le=V;le<ne;++le)this[le]=z;else{var pe=u.isBuffer(z)?z:de(new u(z,ce).toString()),ye=pe.length;for(le=0;le<ne-V;++le)this[le+V]=pe[le%ye]}return this};var Y=/[^+\/0-9A-Za-z-_]/g;function ae(z){return z<16?"0"+z.toString(16):z.toString(16)}function de(z,V){var ne;V=V||1/0;for(var ce=z.length,Q=null,le=[],pe=0;pe<ce;++pe){if((ne=z.charCodeAt(pe))>55295&&ne<57344){if(!Q){if(ne>56319){(V-=3)>-1&&le.push(239,191,189);continue}if(pe+1===ce){(V-=3)>-1&&le.push(239,191,189);continue}Q=ne;continue}if(ne<56320){(V-=3)>-1&&le.push(239,191,189),Q=ne;continue}ne=65536+(Q-55296<<10|ne-56320)}else Q&&(V-=3)>-1&&le.push(239,191,189);if(Q=null,ne<128){if((V-=1)<0)break;le.push(ne)}else if(ne<2048){if((V-=2)<0)break;le.push(ne>>6|192,63&ne|128)}else if(ne<65536){if((V-=3)<0)break;le.push(ne>>12|224,ne>>6&63|128,63&ne|128)}else{if(!(ne<1114112))throw new Error("Invalid code point");if((V-=4)<0)break;le.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,63&ne|128)}}return le}function fe(z){return i.toByteArray(function(V){if((V=function(ne){return ne.trim?ne.trim():ne.replace(/^\s+|\s+$/g,"")}(V).replace(Y,"")).length<2)return"";for(;V.length%4!=0;)V+="=";return V}(z))}function be(z,V,ne,ce){for(var Q=0;Q<ce&&!(Q+ne>=V.length||Q>=z.length);++Q)V[Q+ne]=z[Q];return Q}}).call(this,n(0))},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function l(S){if(n===setTimeout)return setTimeout(S,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(S,0);try{return n(S,0)}catch{try{return n.call(null,S,0)}catch{return n.call(this,S,0)}}}(function(){try{n=typeof setTimeout=="function"?setTimeout:a}catch{n=a}try{r=typeof clearTimeout=="function"?clearTimeout:o}catch{r=o}})();var f,u=[],h=!1,m=-1;function v(){h&&f&&(h=!1,f.length?u=f.concat(u):m=-1,u.length&&_())}function _(){if(!h){var S=l(v);h=!0;for(var O=u.length;O;){for(f=u,u=[];++m<O;)f&&f[m].run();m=-1,O=u.length}f=null,h=!1,function(C){if(r===clearTimeout)return clearTimeout(C);if((r===o||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(C);try{r(C)}catch{try{return r.call(null,C)}catch{return r.call(this,C)}}}(S)}}function x(S,O){this.fun=S,this.array=O}function w(){}i.nextTick=function(S){var O=new Array(arguments.length-1);if(arguments.length>1)for(var C=1;C<arguments.length;C++)O[C-1]=arguments[C];u.push(new x(S,O)),u.length!==1||h||l(_)},x.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=w,i.addListener=w,i.once=w,i.off=w,i.removeListener=w,i.removeAllListeners=w,i.emit=w,i.prependListener=w,i.prependOnceListener=w,i.listeners=function(S){return[]},i.binding=function(S){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(S){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){(function(r){function i(a){return Object.prototype.toString.call(a)}t.isArray=function(a){return Array.isArray?Array.isArray(a):i(a)==="[object Array]"},t.isBoolean=function(a){return typeof a=="boolean"},t.isNull=function(a){return a===null},t.isNullOrUndefined=function(a){return a==null},t.isNumber=function(a){return typeof a=="number"},t.isString=function(a){return typeof a=="string"},t.isSymbol=function(a){return typeof a=="symbol"},t.isUndefined=function(a){return a===void 0},t.isRegExp=function(a){return i(a)==="[object RegExp]"},t.isObject=function(a){return typeof a=="object"&&a!==null},t.isDate=function(a){return i(a)==="[object Date]"},t.isError=function(a){return i(a)==="[object Error]"||a instanceof Error},t.isFunction=function(a){return typeof a=="function"},t.isPrimitive=function(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||a===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,a,o,l){if(typeof i!="function")throw new TypeError('"callback" argument must be a function');var f,u,h=arguments.length;switch(h){case 0:case 1:return r.nextTick(i);case 2:return r.nextTick(function(){i.call(null,a)});case 3:return r.nextTick(function(){i.call(null,a,o)});case 4:return r.nextTick(function(){i.call(null,a,o,l)});default:for(f=new Array(h-1),u=0;u<f.length;)f[u++]=arguments[u];return r.nextTick(function(){i.apply(null,f)})}}}:e.exports=r}).call(this,n(4))},function(e,t,n){var r=n(3),i=r.Buffer;function a(l,f){for(var u in l)f[u]=l[u]}function o(l,f,u){return i(l,f,u)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),a(i,o),o.from=function(l,f,u){if(typeof l=="number")throw new TypeError("Argument must not be a number");return i(l,f,u)},o.alloc=function(l,f,u){if(typeof l!="number")throw new TypeError("Argument must be a number");var h=i(l);return f!==void 0?typeof u=="string"?h.fill(f,u):h.fill(f):h.fill(0),h},o.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return i(l)},o.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(l)}},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,a){for(var o=i.length;o--;)if(r(i[o][0],a))return o;return-1}},function(e,t,n){var r=n(96);e.exports=function(i,a){var o=i.__data__;return r(a)?o[typeof a=="string"?"string":"hash"]:o.map}},function(e,t,n){(function(r){var i=r!==void 0&&r||typeof self<"u"&&self||window,a=Function.prototype.apply;function o(l,f){this._id=l,this._clearFn=f}t.setTimeout=function(){return new o(a.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new o(a.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(l){l&&l.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(l,f){clearTimeout(l._idleTimeoutId),l._idleTimeout=f},t.unenroll=function(l){clearTimeout(l._idleTimeoutId),l._idleTimeout=-1},t._unrefActive=t.active=function(l){clearTimeout(l._idleTimeoutId);var f=l._idleTimeout;f>=0&&(l._idleTimeoutId=setTimeout(function(){l._onTimeout&&l._onTimeout()},f))},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(o){return typeof o=="function"}function i(o){return typeof o=="object"&&o!==null}function a(o){return o===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(o){if(!function(l){return typeof l=="number"}(o)||o<0||isNaN(o))throw TypeError("n must be a positive number");return this._maxListeners=o,this},n.prototype.emit=function(o){var l,f,u,h,m,v;if(this._events||(this._events={}),o==="error"&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((l=arguments[1])instanceof Error)throw l;var _=new Error('Uncaught, unspecified "error" event. ('+l+")");throw _.context=l,_}if(a(f=this._events[o]))return!1;if(r(f))switch(arguments.length){case 1:f.call(this);break;case 2:f.call(this,arguments[1]);break;case 3:f.call(this,arguments[1],arguments[2]);break;default:h=Array.prototype.slice.call(arguments,1),f.apply(this,h)}else if(i(f))for(h=Array.prototype.slice.call(arguments,1),u=(v=f.slice()).length,m=0;m<u;m++)v[m].apply(this,h);return!0},n.prototype.addListener=function(o,l){var f;if(!r(l))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",o,r(l.listener)?l.listener:l),this._events[o]?i(this._events[o])?this._events[o].push(l):this._events[o]=[this._events[o],l]:this._events[o]=l,i(this._events[o])&&!this._events[o].warned&&(f=a(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&f>0&&this._events[o].length>f&&(this._events[o].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[o].length),typeof console.trace=="function"&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(o,l){if(!r(l))throw TypeError("listener must be a function");var f=!1;function u(){this.removeListener(o,u),f||(f=!0,l.apply(this,arguments))}return u.listener=l,this.on(o,u),this},n.prototype.removeListener=function(o,l){var f,u,h,m;if(!r(l))throw TypeError("listener must be a function");if(!this._events||!this._events[o])return this;if(h=(f=this._events[o]).length,u=-1,f===l||r(f.listener)&&f.listener===l)delete this._events[o],this._events.removeListener&&this.emit("removeListener",o,l);else if(i(f)){for(m=h;m-- >0;)if(f[m]===l||f[m].listener&&f[m].listener===l){u=m;break}if(u<0)return this;f.length===1?(f.length=0,delete this._events[o]):f.splice(u,1),this._events.removeListener&&this.emit("removeListener",o,l)}return this},n.prototype.removeAllListeners=function(o){var l,f;if(!this._events)return this;if(!this._events.removeListener)return arguments.length===0?this._events={}:this._events[o]&&delete this._events[o],this;if(arguments.length===0){for(l in this._events)l!=="removeListener"&&this.removeAllListeners(l);return this.removeAllListeners("removeListener"),this._events={},this}if(r(f=this._events[o]))this.removeListener(o,f);else if(f)for(;f.length;)this.removeListener(o,f[f.length-1]);return delete this._events[o],this},n.prototype.listeners=function(o){return this._events&&this._events[o]?r(this._events[o])?[this._events[o]]:this._events[o].slice():[]},n.prototype.listenerCount=function(o){if(this._events){var l=this._events[o];if(r(l))return 1;if(l)return l.length}return 0},n.listenerCount=function(o,l){return o.listenerCount(l)}},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,a){var o=n(6);function l(H){var G=this;this.next=null,this.entry=null,this.finish=function(){(function(te,ie,X){var ee=te.entry;for(te.entry=null;ee;){var W=ee.callback;ie.pendingcb--,W(void 0),ee=ee.next}ie.corkedRequestsFree?ie.corkedRequestsFree.next=te:ie.corkedRequestsFree=te})(G,H)}}e.exports=T;var f,u=!r.browser&&["v0.10","v0.9."].indexOf(r.version.slice(0,5))>-1?i:o.nextTick;T.WritableState=C;var h=n(5);h.inherits=n(2);var m,v={deprecate:n(44)},_=n(24),x=n(7).Buffer,w=a.Uint8Array||function(){},S=n(25);function O(){}function C(H,G){f=f||n(1),H=H||{};var te=G instanceof f;this.objectMode=!!H.objectMode,te&&(this.objectMode=this.objectMode||!!H.writableObjectMode);var ie=H.highWaterMark,X=H.writableHighWaterMark,ee=this.objectMode?16:16384;this.highWaterMark=ie||ie===0?ie:te&&(X||X===0)?X:ee,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 W=H.decodeStrings===!1;this.decodeStrings=!W,this.defaultEncoding=H.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){(function(U,F){var M=U._writableState,I=M.sync,J=M.writecb;if(function(ae){ae.writing=!1,ae.writecb=null,ae.length-=ae.writelen,ae.writelen=0}(M),F)(function(ae,de,fe,be,z){--de.pendingcb,fe?(o.nextTick(z,be),o.nextTick(K,ae,de),ae._writableState.errorEmitted=!0,ae.emit("error",be)):(z(be),ae._writableState.errorEmitted=!0,ae.emit("error",be),K(ae,de))})(U,M,I,F,J);else{var Y=$(M);Y||M.corked||M.bufferProcessing||!M.bufferedRequest||R(U,M),I?u(P,U,M,Y,J):P(U,M,Y,J)}})(G,B)},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 l(this)}function T(H){if(f=f||n(1),!(m.call(T,this)||this instanceof f))return new T(H);this._writableState=new C(H,this),this.writable=!0,H&&(typeof H.write=="function"&&(this._write=H.write),typeof H.writev=="function"&&(this._writev=H.writev),typeof H.destroy=="function"&&(this._destroy=H.destroy),typeof H.final=="function"&&(this._final=H.final)),_.call(this)}function j(H,G,te,ie,X,ee,W){G.writelen=ie,G.writecb=W,G.writing=!0,G.sync=!0,te?H._writev(X,G.onwrite):H._write(X,ee,G.onwrite),G.sync=!1}function P(H,G,te,ie){te||function(X,ee){ee.length===0&&ee.needDrain&&(ee.needDrain=!1,X.emit("drain"))}(H,G),G.pendingcb--,ie(),K(H,G)}function R(H,G){G.bufferProcessing=!0;var te=G.bufferedRequest;if(H._writev&&te&&te.next){var ie=G.bufferedRequestCount,X=new Array(ie),ee=G.corkedRequestsFree;ee.entry=te;for(var W=0,B=!0;te;)X[W]=te,te.isBuf||(B=!1),te=te.next,W+=1;X.allBuffers=B,j(H,G,!0,G.length,X,"",ee.finish),G.pendingcb++,G.lastBufferedRequest=null,ee.next?(G.corkedRequestsFree=ee.next,ee.next=null):G.corkedRequestsFree=new l(G),G.bufferedRequestCount=0}else{for(;te;){var U=te.chunk,F=te.encoding,M=te.callback;if(j(H,G,!1,G.objectMode?1:U.length,U,F,M),te=te.next,G.bufferedRequestCount--,G.writing)break}te===null&&(G.lastBufferedRequest=null)}G.bufferedRequest=te,G.bufferProcessing=!1}function $(H){return H.ending&&H.length===0&&H.bufferedRequest===null&&!H.finished&&!H.writing}function q(H,G){H._final(function(te){G.pendingcb--,te&&H.emit("error",te),G.prefinished=!0,H.emit("prefinish"),K(H,G)})}function K(H,G){var te=$(G);return te&&(function(ie,X){X.prefinished||X.finalCalled||(typeof ie._final=="function"?(X.pendingcb++,X.finalCalled=!0,o.nextTick(q,ie,X)):(X.prefinished=!0,ie.emit("prefinish")))}(H,G),G.pendingcb===0&&(G.finished=!0,H.emit("finish"))),te}h.inherits(T,_),C.prototype.getBuffer=function(){for(var H=this.bufferedRequest,G=[];H;)G.push(H),H=H.next;return G},function(){try{Object.defineProperty(C.prototype,"buffer",{get:v.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"?(m=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(H){return!!m.call(this,H)||this===T&&H&&H._writableState instanceof C}})):m=function(H){return H instanceof this},T.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},T.prototype.write=function(H,G,te){var ie=this._writableState,X=!1,ee=!ie.objectMode&&function(W){return x.isBuffer(W)||W instanceof w}(H);return ee&&!x.isBuffer(H)&&(H=function(W){return x.from(W)}(H)),typeof G=="function"&&(te=G,G=null),ee?G="buffer":G||(G=ie.defaultEncoding),typeof te!="function"&&(te=O),ie.ended?function(W,B){var U=new Error("write after end");W.emit("error",U),o.nextTick(B,U)}(this,te):(ee||function(W,B,U,F){var M=!0,I=!1;return U===null?I=new TypeError("May not write null values to stream"):typeof U=="string"||U===void 0||B.objectMode||(I=new TypeError("Invalid non-string/buffer chunk")),I&&(W.emit("error",I),o.nextTick(F,I),M=!1),M}(this,ie,H,te))&&(ie.pendingcb++,X=function(W,B,U,F,M,I){if(!U){var J=function(fe,be,z){return fe.objectMode||fe.decodeStrings===!1||typeof be!="string"||(be=x.from(be,z)),be}(B,F,M);F!==J&&(U=!0,M="buffer",F=J)}var Y=B.objectMode?1:F.length;B.length+=Y;var ae=B.length<B.highWaterMark;if(ae||(B.needDrain=!0),B.writing||B.corked){var de=B.lastBufferedRequest;B.lastBufferedRequest={chunk:F,encoding:M,isBuf:U,callback:I,next:null},de?de.next=B.lastBufferedRequest:B.bufferedRequest=B.lastBufferedRequest,B.bufferedRequestCount+=1}else j(W,B,!1,Y,F,M,I);return ae}(this,ie,ee,H,G,te)),X},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var H=this._writableState;H.corked&&(H.corked--,H.writing||H.corked||H.finished||H.bufferProcessing||!H.bufferedRequest||R(this,H))},T.prototype.setDefaultEncoding=function(H){if(typeof H=="string"&&(H=H.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((H+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+H);return this._writableState.defaultEncoding=H,this},Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(H,G,te){te(new Error("_write() is not implemented"))},T.prototype._writev=null,T.prototype.end=function(H,G,te){var ie=this._writableState;typeof H=="function"?(te=H,H=null,G=null):typeof G=="function"&&(te=G,G=null),H!=null&&this.write(H,G),ie.corked&&(ie.corked=1,this.uncork()),ie.ending||ie.finished||function(X,ee,W){ee.ending=!0,K(X,ee),W&&(ee.finished?o.nextTick(W):X.once("finish",W)),ee.ended=!0,X.writable=!1}(this,ie,te)},Object.defineProperty(T.prototype,"destroyed",{get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(H){this._writableState&&(this._writableState.destroyed=H)}}),T.prototype.destroy=S.destroy,T.prototype._undestroy=S.undestroy,T.prototype._destroy=function(H,G){this.end(),G(H)}}).call(this,n(4),n(11).setImmediate,n(0))},function(e,t,n){(function(r,i,a){e.exports=function o(l,f,u){function h(_,x){if(!f[_]){if(!l[_]){var w=typeof _dereq_=="function"&&_dereq_;if(!x&&w)return w(_,!0);if(m)return m(_,!0);var S=new Error("Cannot find module '"+_+"'");throw S.code="MODULE_NOT_FOUND",S}var O=f[_]={exports:{}};l[_][0].call(O.exports,function(C){return h(l[_][1][C]||C)},O,O.exports,o,l,f,u)}return f[_].exports}for(var m=typeof _dereq_=="function"&&_dereq_,v=0;v<u.length;v++)h(u[v]);return h}({1:[function(o,l,f){l.exports=function(u){var h=u._SomePromiseArray;function m(v){var _=new h(v),x=_.promise();return _.setHowMany(1),_.setUnwrap(),_.init(),x}u.any=function(v){return m(v)},u.prototype.any=function(){return m(this)}}},{}],2:[function(o,l,f){var u;try{throw new Error}catch(O){u=O}var h=o("./schedule"),m=o("./queue"),v=o("./util");function _(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new m(16),this._normalQueue=new m(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var O=this;this.drainQueues=function(){O._drainQueues()},this._schedule=h}function x(O,C,T){this._lateQueue.push(O,C,T),this._queueTick()}function w(O,C,T){this._normalQueue.push(O,C,T),this._queueTick()}function S(O){this._normalQueue._pushOne(O),this._queueTick()}_.prototype.setScheduler=function(O){var C=this._schedule;return this._schedule=O,this._customScheduler=!0,C},_.prototype.hasCustomScheduler=function(){return this._customScheduler},_.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},_.prototype.disableTrampolineIfNecessary=function(){v.hasDevTools&&(this._trampolineEnabled=!1)},_.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},_.prototype.fatalError=function(O,C){C?(r.stderr.write("Fatal "+(O instanceof Error?O.stack:O)+`
`),r.exit(2)):this.throwLater(O)},_.prototype.throwLater=function(O,C){if(arguments.length===1&&(C=O,O=function(){throw C}),typeof setTimeout<"u")setTimeout(function(){O(C)},0);else try{this._schedule(function(){O(C)})}catch{throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}},v.hasDevTools?(_.prototype.invokeLater=function(O,C,T){this._trampolineEnabled?x.call(this,O,C,T):this._schedule(function(){setTimeout(function(){O.call(C,T)},100)})},_.prototype.invoke=function(O,C,T){this._trampolineEnabled?w.call(this,O,C,T):this._schedule(function(){O.call(C,T)})},_.prototype.settlePromises=function(O){this._trampolineEnabled?S.call(this,O):this._schedule(function(){O._settlePromises()})}):(_.prototype.invokeLater=x,_.prototype.invoke=w,_.prototype.settlePromises=S),_.prototype._drainQueue=function(O){for(;O.length()>0;){var C=O.shift();if(typeof C=="function"){var T=O.shift(),j=O.shift();C.call(T,j)}else C._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},l.exports=_,l.exports.firstLineError=u},{"./queue":26,"./schedule":29,"./util":36}],3:[function(o,l,f){l.exports=function(u,h,m,v){var _=!1,x=function(C,T){this._reject(T)},w=function(C,T){T.promiseRejectionQueued=!0,T.bindingPromise._then(x,x,null,this,C)},S=function(C,T){(50397184&this._bitField)==0&&this._resolveCallback(T.target)},O=function(C,T){T.promiseRejectionQueued||this._reject(C)};u.prototype.bind=function(C){_||(_=!0,u.prototype._propagateFrom=v.propagateFromFunction(),u.prototype._boundValue=v.boundValueFunction());var T=m(C),j=new u(h);j._propagateFrom(this,1);var P=this._target();if(j._setBoundTo(T),T instanceof u){var R={promiseRejectionQueued:!1,promise:j,target:P,bindingPromise:T};P._then(h,w,void 0,j,R),T._then(S,O,void 0,j,R),j._setOnCancel(T)}else j._resolveCallback(P);return j},u.prototype._setBoundTo=function(C){C!==void 0?(this._bitField=2097152|this._bitField,this._boundTo=C):this._bitField=-2097153&this._bitField},u.prototype._isBound=function(){return(2097152&this._bitField)==2097152},u.bind=function(C,T){return u.resolve(T).bind(C)}}},{}],4:[function(o,l,f){var u;typeof Promise<"u"&&(u=Promise);var h=o("./promise")();h.noConflict=function(){try{Promise===h&&(Promise=u)}catch{}return h},l.exports=h},{"./promise":22}],5:[function(o,l,f){var u=Object.create;if(u){var h=u(null),m=u(null);h[" size"]=m[" size"]=0}l.exports=function(v){var _=o("./util"),x=_.canEvaluate;function w(C){return function(T,j){var P;if(T!=null&&(P=T[j]),typeof P!="function"){var R="Object "+_.classString(T)+" has no method '"+_.toString(j)+"'";throw new v.TypeError(R)}return P}(C,this.pop()).apply(C,this)}function S(C){return C[this]}function O(C){var T=+this;return T<0&&(T=Math.max(0,T+C.length)),C[T]}_.isIdentifier,v.prototype.call=function(C){var T=[].slice.call(arguments,1);return T.push(C),this._then(w,void 0,void 0,T,void 0)},v.prototype.get=function(C){var T;if(typeof C=="number")T=O;else if(x){var j=(void 0)(C);T=j!==null?j:S}else T=S;return this._then(T,void 0,void 0,C,void 0)}}},{"./util":36}],6:[function(o,l,f){l.exports=function(u,h,m,v){var _=o("./util"),x=_.tryCatch,w=_.errorObj,S=u._async;u.prototype.break=u.prototype.cancel=function(){if(!v.cancellation())return this._warn("cancellation is disabled");for(var O=this,C=O;O._isCancellable();){if(!O._cancelBy(C)){C._isFollowing()?C._followee().cancel():C._cancelBranched();break}var T=O._cancellationParent;if(T==null||!T._isCancellable()){O._isFollowing()?O._followee().cancel():O._cancelBranched();break}O._isFollowing()&&O._followee().cancel(),O._setWillBeCancelled(),C=O,O=T}},u.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},u.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||this._branchesRemainingToCancel<=0},u.prototype._cancelBy=function(O){return O===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):(this._branchHasCancelled(),!!this._enoughBranchesHaveCancelled()&&(this._invokeOnCancel(),!0))},u.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},u.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),S.invoke(this._cancelPromises,this,void 0))},u.prototype._cancelPromises=function(){this._length()>0&&this._settlePromises()},u.prototype._unsetOnCancel=function(){this._onCancelField=void 0},u.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},u.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},u.prototype._doInvokeOnCancel=function(O,C){if(_.isArray(O))for(var T=0;T<O.length;++T)this._doInvokeOnCancel(O[T],C);else if(O!==void 0)if(typeof O=="function"){if(!C){var j=x(O).call(this._boundValue());j===w&&(this._attachExtraTrace(j.e),S.throwLater(j.e))}}else O._resultCancelled(this)},u.prototype._invokeOnCancel=function(){var O=this._onCancel();this._unsetOnCancel(),S.invoke(this._doInvokeOnCancel,this,O)},u.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},u.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(o,l,f){l.exports=function(u){var h=o("./util"),m=o("./es5").keys,v=h.tryCatch,_=h.errorObj;return function(x,w,S){return function(O){var C=S._boundValue();e:for(var T=0;T<x.length;++T){var j=x[T];if(j===Error||j!=null&&j.prototype instanceof Error){if(O instanceof j)return v(w).call(C,O)}else if(typeof j=="function"){var P=v(j).call(C,O);if(P===_)return P;if(P)return v(w).call(C,O)}else if(h.isObject(O)){for(var R=m(j),$=0;$<R.length;++$){var q=R[$];if(j[q]!=O[q])continue e}return v(w).call(C,O)}}return u}}}},{"./es5":13,"./util":36}],8:[function(o,l,f){l.exports=function(u){var h=!1,m=[];function v(){this._trace=new v.CapturedTrace(_())}function _(){var x=m.length-1;if(x>=0)return m[x]}return u.prototype._promiseCreated=function(){},u.prototype._pushContext=function(){},u.prototype._popContext=function(){return null},u._peekContext=u.prototype._peekContext=function(){},v.prototype._pushContext=function(){this._trace!==void 0&&(this._trace._promiseCreated=null,m.push(this._trace))},v.prototype._popContext=function(){if(this._trace!==void 0){var x=m.pop(),w=x._promiseCreated;return x._promiseCreated=null,w}return null},v.CapturedTrace=null,v.create=function(){if(h)return new v},v.deactivateLongStackTraces=function(){},v.activateLongStackTraces=function(){var x=u.prototype._pushContext,w=u.prototype._popContext,S=u._peekContext,O=u.prototype._peekContext,C=u.prototype._promiseCreated;v.deactivateLongStackTraces=function(){u.prototype._pushContext=x,u.prototype._popContext=w,u._peekContext=S,u.prototype._peekContext=O,u.prototype._promiseCreated=C,h=!1},h=!0,u.prototype._pushContext=v.prototype._pushContext,u.prototype._popContext=v.prototype._popContext,u._peekContext=u.prototype._peekContext=_,u.prototype._promiseCreated=function(){var T=this._peekContext();T&&T._promiseCreated==null&&(T._promiseCreated=this)}},v}},{}],9:[function(o,l,f){l.exports=function(u,h){var m,v,_,x=u._getDomain,w=u._async,S=o("./errors").Warning,O=o("./util"),C=O.canAttachTrace,T=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,j=/\((?:timers\.js):\d+:\d+\)/,P=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,R=null,$=null,q=!1,K=O.env("BLUEBIRD_DEBUG")!=0,H=!(O.env("BLUEBIRD_WARNINGS")==0||!K&&!O.env("BLUEBIRD_WARNINGS")),G=!(O.env("BLUEBIRD_LONG_STACK_TRACES")==0||!K&&!O.env("BLUEBIRD_LONG_STACK_TRACES")),te=O.env("BLUEBIRD_W_FORGOTTEN_RETURN")!=0&&(H||!!O.env("BLUEBIRD_W_FORGOTTEN_RETURN"));u.prototype.suppressUnhandledRejections=function(){var we=this._target();we._bitField=-1048577&we._bitField|524288},u.prototype._ensurePossibleRejectionHandled=function(){if((524288&this._bitField)==0){this._setRejectionIsUnhandled();var we=this;setTimeout(function(){we._notifyUnhandledRejection()},1)}},u.prototype._notifyUnhandledRejectionIsHandled=function(){pe("rejectionHandled",m,void 0,this)},u.prototype._setReturnedNonUndefined=function(){this._bitField=268435456|this._bitField},u.prototype._returnedNonUndefined=function(){return(268435456&this._bitField)!=0},u.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var we=this._settledValue();this._setUnhandledRejectionIsNotified(),pe("unhandledRejection",v,we,this)}},u.prototype._setUnhandledRejectionIsNotified=function(){this._bitField=262144|this._bitField},u.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField=-262145&this._bitField},u.prototype._isUnhandledRejectionNotified=function(){return(262144&this._bitField)>0},u.prototype._setRejectionIsUnhandled=function(){this._bitField=1048576|this._bitField},u.prototype._unsetRejectionIsUnhandled=function(){this._bitField=-1048577&this._bitField,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},u.prototype._isRejectionUnhandled=function(){return(1048576&this._bitField)>0},u.prototype._warn=function(we,Se,ke){return ne(we,Se,ke||this)},u.onPossiblyUnhandledRejection=function(we){var Se=x();v=typeof we=="function"?Se===null?we:O.domainBind(Se,we):void 0},u.onUnhandledRejectionHandled=function(we){var Se=x();m=typeof we=="function"?Se===null?we:O.domainBind(Se,we):void 0};var ie=function(){};u.longStackTraces=function(){if(w.haveItemsQueued()&&!Fe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);if(!Fe.longStackTraces&&me()){var we=u.prototype._captureStackTrace,Se=u.prototype._attachExtraTrace;Fe.longStackTraces=!0,ie=function(){if(w.haveItemsQueued()&&!Fe.longStackTraces)throw new Error(`cannot enable long stack traces after promises have been created
See http://goo.gl/MqrFmX
`);u.prototype._captureStackTrace=we,u.prototype._attachExtraTrace=Se,h.deactivateLongStackTraces(),w.enableTrampoline(),Fe.longStackTraces=!1},u.prototype._captureStackTrace=z,u.prototype._attachExtraTrace=V,h.activateLongStackTraces(),w.disableTrampolineIfNecessary()}},u.hasLongStackTraces=function(){return Fe.longStackTraces&&me()};var X=function(){try{if(typeof CustomEvent=="function"){var we=new CustomEvent("CustomEvent");return O.global.dispatchEvent(we),function(Se,ke){var Ne=new CustomEvent(Se.toLowerCase(),{detail:ke,cancelable:!0});return!O.global.dispatchEvent(Ne)}}return typeof Event=="function"?(we=new Event("CustomEvent"),O.global.dispatchEvent(we),function(Se,ke){var Ne=new Event(Se.toLowerCase(),{cancelable:!0});return Ne.detail=ke,!O.global.dispatchEvent(Ne)}):((we=document.createEvent("CustomEvent")).initCustomEvent("testingtheevent",!1,!0,{}),O.global.dispatchEvent(we),function(Se,ke){var Ne=document.createEvent("CustomEvent");return Ne.initCustomEvent(Se.toLowerCase(),!1,!0,ke),!O.global.dispatchEvent(Ne)})}catch{}return function(){return!1}}(),ee=O.isNode?function(){return r.emit.apply(r,arguments)}:O.global?function(we){var Se="on"+we.toLowerCase(),ke=O.global[Se];return!!ke&&(ke.apply(O.global,[].slice.call(arguments,1)),!0)}:function(){return!1};function W(we,Se){return{promise:Se}}var B={promiseCreated:W,promiseFulfilled:W,promiseRejected:W,promiseResolved:W,promiseCancelled:W,promiseChained:function(we,Se,ke){return{promise:Se,child:ke}},warning:function(we,Se){return{warning:Se}},unhandledRejection:function(we,Se,ke){return{reason:Se,promise:ke}},rejectionHandled:W},U=function(we){var Se=!1;try{Se=ee.apply(null,arguments)}catch(Ne){w.throwLater(Ne),Se=!0}var ke=!1;try{ke=X(we,B[we].apply(null,arguments))}catch(Ne){w.throwLater(Ne),ke=!0}return ke||Se};function F(){return!1}function M(we,Se,ke){var Ne=this;try{we(Se,ke,function(Pe){if(typeof Pe!="function")throw new TypeError("onCancel must be a function, got: "+O.toString(Pe));Ne._attachCancellationCallback(Pe)})}catch(Pe){return Pe}}function I(we){if(!this._isCancellable())return this;var Se=this._onCancel();Se!==void 0?O.isArray(Se)?Se.push(we):this._setOnCancel([Se,we]):this._setOnCancel(we)}function J(){return this._onCancelField}function Y(we){this._onCancelField=we}function ae(){this._cancellationParent=void 0,this._onCancelField=void 0}function de(we,Se){if((1&Se)!=0){this._cancellationParent=we;var ke=we._branchesRemainingToCancel;ke===void 0&&(ke=0),we._branchesRemainingToCancel=ke+1}(2&Se)!=0&&we._isBound()&&this._setBoundTo(we._boundTo)}u.config=function(we){if("longStackTraces"in(we=Object(we))&&(we.longStackTraces?u.longStackTraces():!we.longStackTraces&&u.hasLongStackTraces()&&ie()),"warnings"in we){var Se=we.warnings;Fe.warnings=!!Se,te=Fe.warnings,O.isObject(Se)&&"wForgottenReturn"in Se&&(te=!!Se.wForgottenReturn)}if("cancellation"in we&&we.cancellation&&!Fe.cancellation){if(w.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");u.prototype._clearCancellationData=ae,u.prototype._propagateFrom=de,u.prototype._onCancel=J,u.prototype._setOnCancel=Y,u.prototype._attachCancellationCallback=I,u.prototype._execute=M,fe=de,Fe.cancellation=!0}return"monitoring"in we&&(we.monitoring&&!Fe.monitoring?(Fe.monitoring=!0,u.prototype._fireEvent=U):!we.monitoring&&Fe.monitoring&&(Fe.monitoring=!1,u.prototype._fireEvent=F)),u},u.prototype._fireEvent=F,u.prototype._execute=function(we,Se,ke){try{we(Se,ke)}catch(Ne){return Ne}},u.prototype._onCancel=function(){},u.prototype._setOnCancel=function(we){},u.prototype._attachCancellationCallback=function(we){},u.prototype._captureStackTrace=function(){},u.prototype._attachExtraTrace=function(){},u.prototype._clearCancellationData=function(){},u.prototype._propagateFrom=function(we,Se){};var fe=function(we,Se){(2&Se)!=0&&we._isBound()&&this._setBoundTo(we._boundTo)};function be(){var we=this._boundTo;return we!==void 0&&we instanceof u?we.isFulfilled()?we.value():void 0:we}function z(){this._trace=new ze(this._peekContext())}function V(we,Se){if(C(we)){var ke=this._trace;if(ke!==void 0&&Se&&(ke=ke._parent),ke!==void 0)ke.attachExtraTrace(we);else if(!we.__stackCleaned__){var Ne=Q(we);O.notEnumerableProp(we,"stack",Ne.message+`
`+Ne.stack.join(`
`)),O.notEnumerableProp(we,"__stackCleaned__",!0)}}}function ne(we,Se,ke){if(Fe.warnings){var Ne,Pe=new S(we);if(Se)ke._attachExtraTrace(Pe);else if(Fe.longStackTraces&&(Ne=u._peekContext()))Ne.attachExtraTrace(Pe);else{var qe=Q(Pe);Pe.stack=qe.message+`
`+qe.stack.join(`
`)}U("warning",Pe)||le(Pe,"",!0)}}function ce(we){for(var Se=[],ke=0;ke<we.length;++ke){var Ne=we[ke],Pe=Ne===" (No stack trace)"||R.test(Ne),qe=Pe&&xe(Ne);Pe&&!qe&&(q&&Ne.charAt(0)!==" "&&(Ne=" "+Ne),Se.push(Ne))}return Se}function Q(we){var Se=we.stack,ke=we.toString();return Se=typeof Se=="string"&&Se.length>0?function(Ne){for(var Pe=Ne.stack.replace(/\s+$/g,"").split(`
`),qe=0;qe<Pe.length;++qe){var Ge=Pe[qe];if(Ge===" (No stack trace)"||R.test(Ge))break}return qe>0&&Ne.name!="SyntaxError"&&(Pe=Pe.slice(qe)),Pe}(we):[" (No stack trace)"],{message:ke,stack:we.name=="SyntaxError"?Se:ce(Se)}}function le(we,Se,ke){if(typeof console<"u"){var Ne;if(O.isObject(we)){var Pe=we.stack;Ne=Se+$(Pe,we)}else Ne=Se+String(we);typeof _=="function"?_(Ne,ke):typeof console.log!="function"&&typeof console.log!="object"||console.log(Ne)}}function pe(we,Se,ke,Ne){var Pe=!1;try{typeof Se=="function"&&(Pe=!0,we==="rejectionHandled"?Se(Ne):Se(ke,Ne))}catch(qe){w.throwLater(qe)}we==="unhandledRejection"?U(we,ke,Ne)||Pe||le(ke,"Unhandled rejection "):U(we,Ne)}function ye(we){var Se;if(typeof we=="function")Se="[function "+(we.name||"anonymous")+"]";else{if(Se=we&&typeof we.toString=="function"?we.toString():O.toString(we),/\[object [a-zA-Z0-9$_]+\]/.test(Se))try{Se=JSON.stringify(we)}catch{}Se.length===0&&(Se="(empty array)")}return"(<"+function(ke){return ke.length<41?ke:ke.substr(0,38)+"..."}(Se)+">, no stack trace)"}function me(){return typeof $e=="function"}var xe=function(){return!1},Ae=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;function De(we){var Se=we.match(Ae);if(Se)return{fileName:Se[1],line:parseInt(Se[2],10)}}function ze(we){this._parent=we,this._promisesCreated=0;var Se=this._length=1+(we===void 0?0:we._length);$e(this,ze),Se>32&&this.uncycle()}O.inherits(ze,Error),h.CapturedTrace=ze,ze.prototype.uncycle=function(){var we=this._length;if(!(we<2)){for(var Se=[],ke={},Ne=0,Pe=this;Pe!==void 0;++Ne)Se.push(Pe),Pe=Pe._parent;for(Ne=(we=this._length=Ne)-1;Ne>=0;--Ne){var qe=Se[Ne].stack;ke[qe]===void 0&&(ke[qe]=Ne)}for(Ne=0;Ne<we;++Ne){var Ge=ke[Se[Ne].stack];if(Ge!==void 0&&Ge!==Ne){Ge>0&&(Se[Ge-1]._parent=void 0,Se[Ge-1]._length=1),Se[Ne]._parent=void 0,Se[Ne]._length=1;var Qe=Ne>0?Se[Ne-1]:this;Ge<we-1?(Qe._parent=Se[Ge+1],Qe._parent.uncycle(),Qe._length=Qe._parent._length+1):(Qe._parent=void 0,Qe._length=1);for(var ft=Qe._length+1,st=Ne-2;st>=0;--st)Se[st]._length=ft,ft++;return}}}},ze.prototype.attachExtraTrace=function(we){if(!we.__stackCleaned__){this.uncycle();for(var Se=Q(we),ke=Se.message,Ne=[Se.stack],Pe=this;Pe!==void 0;)Ne.push(ce(Pe.stack.split(`
`))),Pe=Pe._parent;(function(qe){for(var Ge=qe[0],Qe=1;Qe<qe.length;++Qe){for(var ft=qe[Qe],st=Ge.length-1,wt=Ge[st],kt=-1,It=ft.length-1;It>=0;--It)if(ft[It]===wt){kt=It;break}for(It=kt;It>=0;--It){var $t=ft[It];if(Ge[st]!==$t)break;Ge.pop(),st--}Ge=ft}})(Ne),function(qe){for(var Ge=0;Ge<qe.length;++Ge)(qe[Ge].length===0||Ge+1<qe.length&&qe[Ge][0]===qe[Ge+1][0])&&(qe.splice(Ge,1),Ge--)}(Ne),O.notEnumerableProp(we,"stack",function(qe,Ge){for(var Qe=0;Qe<Ge.length-1;++Qe)Ge[Qe].push("From previous event:"),Ge[Qe]=Ge[Qe].join(`
`);return Qe<Ge.length&&(Ge[Qe]=Ge[Qe].join(`
`)),qe+`
`+Ge.join(`
`)}(ke,Ne)),O.notEnumerableProp(we,"__stackCleaned__",!0)}};var $e=function(){var we=/^\s*at\s*/,Se=function(qe,Ge){return typeof qe=="string"?qe:Ge.name!==void 0&&Ge.message!==void 0?Ge.toString():ye(Ge)};if(typeof Error.stackTraceLimit=="number"&&typeof Error.captureStackTrace=="function"){Error.stackTraceLimit+=6,R=we,$=Se;var ke=Error.captureStackTrace;return xe=function(qe){return T.test(qe)},function(qe,Ge){Error.stackTraceLimit+=6,ke(qe,Ge),Error.stackTraceLimit-=6}}var Ne,Pe=new Error;if(typeof Pe.stack=="string"&&Pe.stack.split(`
`)[0].indexOf("stackDetection@")>=0)return R=/@/,$=Se,q=!0,function(qe){qe.stack=new Error().stack};try{throw new Error}catch(qe){Ne="stack"in qe}return"stack"in Pe||!Ne||typeof Error.stackTraceLimit!="number"?($=function(qe,Ge){return typeof qe=="string"?qe:typeof Ge!="object"&&typeof Ge!="function"||Ge.name===void 0||Ge.message===void 0?ye(Ge):Ge.toString()},null):(R=we,$=Se,function(qe){Error.stackTraceLimit+=6;try{throw new Error}catch(Ge){qe.stack=Ge.stack}Error.stackTraceLimit-=6})}();typeof console<"u"&&console.warn!==void 0&&(_=function(we){console.warn(we)},O.isNode&&r.stderr.isTTY?_=function(we,Se){var ke=Se?"\x1B[33m":"\x1B[31m";console.warn(ke+we+`\x1B[0m
`)}:O.isNode||typeof new Error().stack!="string"||(_=function(we,Se){console.warn("%c"+we,Se?"color: darkorange":"color: red")}));var Fe={warnings:H,longStackTraces:!1,cancellation:!1,monitoring:!1};return G&&u.longStackTraces(),{longStackTraces:function(){return Fe.longStackTraces},warnings:function(){return Fe.warnings},cancellation:function(){return Fe.cancellation},monitoring:function(){return Fe.monitoring},propagateFromFunction:function(){return fe},boundValueFunction:function(){return be},checkForgottenReturns:function(we,Se,ke,Ne,Pe){if(we===void 0&&Se!==null&&te){if(Pe!==void 0&&Pe._returnedNonUndefined()||(65535&Ne._bitField)==0)return;ke&&(ke+=" ");var qe="",Ge="";if(Se._trace){for(var Qe=Se._trace.stack.split(`
`),ft=ce(Qe),st=ft.length-1;st>=0;--st){var wt=ft[st];if(!j.test(wt)){var kt=wt.match(P);kt&&(qe="at "+kt[1]+":"+kt[2]+":"+kt[3]+" ");break}}if(ft.length>0){var It=ft[0];for(st=0;st<Qe.length;++st)if(Qe[st]===It){st>0&&(Ge=`
`+Qe[st-1]);break}}}var $t="a promise was created in a "+ke+"handler "+qe+"but was not returned from it, see http://goo.gl/rRqMUw"+Ge;Ne._warn($t,!0,Se)}},setBounds:function(we,Se){if(me()){for(var ke,Ne,Pe=we.stack.split(`
`),qe=Se.stack.split(`
`),Ge=-1,Qe=-1,ft=0;ft<Pe.length;++ft)if(st=De(Pe[ft])){ke=st.fileName,Ge=st.line;break}for(ft=0;ft<qe.length;++ft){var st;if(st=De(qe[ft])){Ne=st.fileName,Qe=st.line;break}}Ge<0||Qe<0||!ke||!Ne||ke!==Ne||Ge>=Qe||(xe=function(wt){if(T.test(wt))return!0;var kt=De(wt);return!!(kt&&kt.fileName===ke&&Ge<=kt.line&&kt.line<=Qe)})}},warn:ne,deprecated:function(we,Se){var ke=we+" is deprecated and will be removed in a future version.";return Se&&(ke+=" Use "+Se+" instead."),ne(ke)},CapturedTrace:ze,fireDomEvent:X,fireGlobalEvent:ee}}},{"./errors":12,"./util":36}],10:[function(o,l,f){l.exports=function(u){function h(){return this.value}function m(){throw this.reason}u.prototype.return=u.prototype.thenReturn=function(v){return v instanceof u&&v.suppressUnhandledRejections(),this._then(h,void 0,void 0,{value:v},void 0)},u.prototype.throw=u.prototype.thenThrow=function(v){return this._then(m,void 0,void 0,{reason:v},void 0)},u.prototype.catchThrow=function(v){if(arguments.length<=1)return this._then(void 0,m,void 0,{reason:v},void 0);var _=arguments[1];return this.caught(v,function(){throw _})},u.prototype.catchReturn=function(v){if(arguments.length<=1)return v instanceof u&&v.suppressUnhandledRejections(),this._then(void 0,h,void 0,{value:v},void 0);var _=arguments[1];return _ instanceof u&&_.suppressUnhandledRejections(),this.caught(v,function(){return _})}}},{}],11:[function(o,l,f){l.exports=function(u,h){var m=u.reduce,v=u.all;function _(){return v(this)}u.prototype.each=function(x){return m(this,x,h,0)._then(_,void 0,void 0,this,void 0)},u.prototype.mapSeries=function(x){return m(this,x,h,h)},u.each=function(x,w){return m(x,w,h,0)._then(_,void 0,void 0,x,void 0)},u.mapSeries=function(x,w){return m(x,w,h,h)}}},{}],12:[function(o,l,f){var u,h,m=o("./es5"),v=m.freeze,_=o("./util"),x=_.inherits,w=_.notEnumerableProp;function S(H,G){function te(ie){if(!(this instanceof te))return new te(ie);w(this,"message",typeof ie=="string"?ie:G),w(this,"name",H),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)}return x(te,Error),te}var O=S("Warning","warning"),C=S("CancellationError","cancellation error"),T=S("TimeoutError","timeout error"),j=S("AggregateError","aggregate error");try{u=TypeError,h=RangeError}catch{u=S("TypeError","type error"),h=S("RangeError","range error")}for(var P="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),R=0;R<P.length;++R)typeof Array.prototype[P[R]]=="function"&&(j.prototype[P[R]]=Array.prototype[P[R]]);m.defineProperty(j.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),j.prototype.isOperational=!0;var $=0;function q(H){if(!(this instanceof q))return new q(H);w(this,"name","OperationalError"),w(this,"message",H),this.cause=H,this.isOperational=!0,H instanceof Error?(w(this,"message",H.message),w(this,"stack",H.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}j.prototype.toString=function(){var H=Array(4*$+1).join(" "),G=`
`+H+`AggregateError of:
`;$++,H=Array(4*$+1).join(" ");for(var te=0;te<this.length;++te){for(var ie=this[te]===this?"[Circular AggregateError]":this[te]+"",X=ie.split(`
`),ee=0;ee<X.length;++ee)X[ee]=H+X[ee];G+=(ie=X.join(`
`))+`
`}return $--,G},x(q,Error);var K=Error.__BluebirdErrorTypes__;K||(K=v({CancellationError:C,TimeoutError:T,OperationalError:q,RejectionError:q,AggregateError:j}),m.defineProperty(Error,"__BluebirdErrorTypes__",{value:K,writable:!1,enumerable:!1,configurable:!1})),l.exports={Error,TypeError:u,RangeError:h,CancellationError:K.CancellationError,OperationalError:K.OperationalError,TimeoutError:K.TimeoutError,AggregateError:K.AggregateError,Warning:O}},{"./es5":13,"./util":36}],13:[function(o,l,f){var u=function(){return this===void 0}();if(u)l.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:u,propertyIsWritable:function(x,w){var S=Object.getOwnPropertyDescriptor(x,w);return!(S&&!S.writable&&!S.set)}};else{var h={}.hasOwnProperty,m={}.toString,v={}.constructor.prototype,_=function(x){var w=[];for(var S in x)h.call(x,S)&&w.push(S);return w};l.exports={isArray:function(x){try{return m.call(x)==="[object Array]"}catch{return!1}},keys:_,names:_,defineProperty:function(x,w,S){return x[w]=S.value,x},getDescriptor:function(x,w){return{value:x[w]}},freeze:function(x){return x},getPrototypeOf:function(x){try{return Object(x).constructor.prototype}catch{return v}},isES5:u,propertyIsWritable:function(){return!0}}}},{}],14:[function(o,l,f){l.exports=function(u,h){var m=u.map;u.prototype.filter=function(v,_){return m(this,v,_,h)},u.filter=function(v,_,x){return m(v,_,x,h)}}},{}],15:[function(o,l,f){l.exports=function(u,h,m){var v=o("./util"),_=u.CancellationError,x=v.errorObj,w=o("./catch_filter")(m);function S(R,$,q){this.promise=R,this.type=$,this.handler=q,this.called=!1,this.cancelPromise=null}function O(R){this.finallyHandler=R}function C(R,$){return R.cancelPromise!=null&&(arguments.length>1?R.cancelPromise._reject($):R.cancelPromise._cancel(),R.cancelPromise=null,!0)}function T(){return P.call(this,this.promise._target()._settledValue())}function j(R){if(!C(this,R))return x.e=R,x}function P(R){var $=this.promise,q=this.handler;if(!this.called){this.called=!0;var K=this.isFinallyHandler()?q.call($._boundValue()):q.call($._boundValue(),R);if(K===m)return K;if(K!==void 0){$._setReturnedNonUndefined();var H=h(K,$);if(H instanceof u){if(this.cancelPromise!=null){if(H._isCancelled()){var G=new _("late cancellation observer");return $._attachExtraTrace(G),x.e=G,x}H.isPending()&&H._attachCancellationCallback(new O(this))}return H._then(T,j,void 0,this,void 0)}}}return $.isRejected()?(C(this),x.e=R,x):(C(this),R)}return S.prototype.isFinallyHandler=function(){return this.type===0},O.prototype._resultCancelled=function(){C(this.finallyHandler)},u.prototype._passThrough=function(R,$,q,K){return typeof R!="function"?this.then():this._then(q,K,void 0,new S(this,$,R),void 0)},u.prototype.lastly=u.prototype.finally=function(R){return this._passThrough(R,0,P,P)},u.prototype.tap=function(R){return this._passThrough(R,1,P)},u.prototype.tapCatch=function(R){var $=arguments.length;if($===1)return this._passThrough(R,1,void 0,P);var q,K=new Array($-1),H=0;for(q=0;q<$-1;++q){var G=arguments[q];if(!v.isObject(G))return u.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+v.classString(G)));K[H++]=G}K.length=H;var te=arguments[q];return this._passThrough(w(K,te,this),1,void 0,P)},S}},{"./catch_filter":7,"./util":36}],16:[function(o,l,f){l.exports=function(u,h,m,v,_,x){var w=o("./errors").TypeError,S=o("./util"),O=S.errorObj,C=S.tryCatch,T=[];function j(P,R,$,q){if(x.cancellation()){var K=new u(m),H=this._finallyPromise=new u(m);this._promise=K.lastly(function(){return H}),K._captureStackTrace(),K._setOnCancel(this)}else(this._promise=new u(m))._captureStackTrace();this._stack=q,this._generatorFunction=P,this._receiver=R,this._generator=void 0,this._yieldHandlers=typeof $=="function"?[$].concat(T):T,this._yieldedPromise=null,this._cancellationPhase=!1}S.inherits(j,_),j.prototype._isResolved=function(){return this._promise===null},j.prototype._cleanup=function(){this._promise=this._generator=null,x.cancellation()&&this._finallyPromise!==null&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},j.prototype._promiseCancelled=function(){if(!this._isResolved()){var P;if(this._generator.return!==void 0)this._promise._pushContext(),P=C(this._generator.return).call(this._generator,void 0),this._promise._popContext();else{var R=new u.CancellationError("generator .return() sentinel");u.coroutine.returnSentinel=R,this._promise._attachExtraTrace(R),this._promise._pushContext(),P=C(this._generator.throw).call(this._generator,R),this._promise._popContext()}this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(P)}},j.prototype._promiseFulfilled=function(P){this._yieldedPromise=null,this._promise._pushContext();var R=C(this._generator.next).call(this._generator,P);this._promise._popContext(),this._continue(R)},j.prototype._promiseRejected=function(P){this._yieldedPromise=null,this._promise._attachExtraTrace(P),this._promise._pushContext();var R=C(this._generator.throw).call(this._generator,P);this._promise._popContext(),this._continue(R)},j.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof u){var P=this._yieldedPromise;this._yieldedPromise=null,P.cancel()}},j.prototype.promise=function(){return this._promise},j.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},j.prototype._continue=function(P){var R=this._promise;if(P===O)return this._cleanup(),this._cancellationPhase?R.cancel():R._rejectCallback(P.e,!1);var $=P.value;if(P.done===!0)return this._cleanup(),this._cancellationPhase?R.cancel():R._resolveCallback($);var q=v($,this._promise);if(q instanceof u||(q=function(H,G,te){for(var ie=0;ie<G.length;++ie){te._pushContext();var X=C(G[ie])(H);if(te._popContext(),X===O){te._pushContext();var ee=u.reject(O.e);return te._popContext(),ee}var W=v(X,te);if(W instanceof u)return W}return null}(q,this._yieldHandlers,this._promise))!==null){var K=(q=q._target())._bitField;(50397184&K)==0?(this._yieldedPromise=q,q._proxy(this,null)):(33554432&K)!=0?u._async.invoke(this._promiseFulfilled,this,q._value()):(16777216&K)!=0?u._async.invoke(this._promiseRejected,this,q._reason()):this._promiseCancelled()}else this._promiseRejected(new w(`A value %s was yielded that could not be treated as a promise
See http://goo.gl/MqrFmX
`.replace("%s",String($))+`From coroutine:
`+this._stack.split(`
`).slice(1,-7).join(`
`)))},u.coroutine=function(P,R){if(typeof P!="function")throw new w(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var $=Object(R).yieldHandler,q=j,K=new Error().stack;return function(){var H=P.apply(this,arguments),G=new q(void 0,void 0,$,K),te=G.promise();return G._generator=H,G._promiseFulfilled(void 0),te}},u.coroutine.addYieldHandler=function(P){if(typeof P!="function")throw new w("expecting a function but got "+S.classString(P));T.push(P)},u.spawn=function(P){if(x.deprecated("Promise.spawn()","Promise.coroutine()"),typeof P!="function")return h(`generatorFunction must be a function
See http://goo.gl/MqrFmX
`);var R=new j(P,this),$=R.promise();return R._run(u.spawn),$}}},{"./errors":12,"./util":36}],17:[function(o,l,f){l.exports=function(u,h,m,v,_,x){var w=o("./util");w.canEvaluate,w.tryCatch,w.errorObj,u.join=function(){var S,O=arguments.length-1;O>0&&typeof arguments[O]=="function"&&(S=arguments[O]);var C=[].slice.call(arguments);S&&C.pop();var T=new h(C).promise();return S!==void 0?T.spread(S):T}}},{"./util":36}],18:[function(o,l,f){l.exports=function(u,h,m,v,_,x){var w=u._getDomain,S=o("./util"),O=S.tryCatch,C=S.errorObj,T=u._async;function j(R,$,q,K){this.constructor$(R),this._promise._captureStackTrace();var H=w();this._callback=H===null?$:S.domainBind(H,$),this._preservedValues=K===_?new Array(this.length()):null,this._limit=q,this._inFlight=0,this._queue=[],T.invoke(this._asyncInit,this,void 0)}function P(R,$,q,K){if(typeof $!="function")return m("expecting a function but got "+S.classString($));var H=0;if(q!==void 0){if(typeof q!="object"||q===null)return u.reject(new TypeError("options argument must be an object but it is "+S.classString(q)));if(typeof q.concurrency!="number")return u.reject(new TypeError("'concurrency' must be a number but it is "+S.classString(q.concurrency)));H=q.concurrency}return new j(R,$,H=typeof H=="number"&&isFinite(H)&&H>=1?H:0,K).promise()}S.inherits(j,h),j.prototype._asyncInit=function(){this._init$(void 0,-2)},j.prototype._init=function(){},j.prototype._promiseFulfilled=function(R,$){var q=this._values,K=this.length(),H=this._preservedValues,G=this._limit;if($<0){if(q[$=-1*$-1]=R,G>=1&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0}else{if(G>=1&&this._inFlight>=G)return q[$]=R,this._queue.push($),!1;H!==null&&(H[$]=R);var te=this._promise,ie=this._callback,X=te._boundValue();te._pushContext();var ee=O(ie).call(X,R,$,K),W=te._popContext();if(x.checkForgottenReturns(ee,W,H!==null?"Promise.filter":"Promise.map",te),ee===C)return this._reject(ee.e),!0;var B=v(ee,this._promise);if(B instanceof u){var U=(B=B._target())._bitField;if((50397184&U)==0)return G>=1&&this._inFlight++,q[$]=B,B._proxy(this,-1*($+1)),!1;if((33554432&U)==0)return(16777216&U)!=0?(this._reject(B._reason()),!0):(this._cancel(),!0);ee=B._value()}q[$]=ee}return++this._totalResolved>=K&&(H!==null?this._filter(q,H):this._resolve(q),!0)},j.prototype._drainQueue=function(){for(var R=this._queue,$=this._limit,q=this._values;R.length>0&&this._inFlight<$;){if(this._isResolved())return;var K=R.pop();this._promiseFulfilled(q[K],K)}},j.prototype._filter=function(R,$){for(var q=$.length,K=new Array(q),H=0,G=0;G<q;++G)R[G]&&(K[H++]=$[G]);K.length=H,this._resolve(K)},j.prototype.preservedValues=function(){return this._preservedValues},u.prototype.map=function(R,$){return P(this,R,$,null)},u.map=function(R,$,q,K){return P(R,$,q,K)}}},{"./util":36}],19:[function(o,l,f){l.exports=function(u,h,m,v,_){var x=o("./util"),w=x.tryCatch;u.method=function(S){if(typeof S!="function")throw new u.TypeError("expecting a function but got "+x.classString(S));return function(){var O=new u(h);O._captureStackTrace(),O._pushContext();var C=w(S).apply(this,arguments),T=O._popContext();return _.checkForgottenReturns(C,T,"Promise.method",O),O._resolveFromSyncValue(C),O}},u.attempt=u.try=function(S){if(typeof S!="function")return v("expecting a function but got "+x.classString(S));var O,C=new u(h);if(C._captureStackTrace(),C._pushContext(),arguments.length>1){_.deprecated("calling Promise.try with more than 1 argument");var T=arguments[1],j=arguments[2];O=x.isArray(T)?w(S).apply(j,T):w(S).call(j,T)}else O=w(S)();var P=C._popContext();return _.checkForgottenReturns(O,P,"Promise.try",C),C._resolveFromSyncValue(O),C},u.prototype._resolveFromSyncValue=function(S){S===x.errorObj?this._rejectCallback(S.e,!1):this._resolveCallback(S,!0)}}},{"./util":36}],20:[function(o,l,f){var u=o("./util"),h=u.maybeWrapAsError,m=o("./errors").OperationalError,v=o("./es5"),_=/^(?:name|message|stack|cause)$/;function x(w){var S;if(function(j){return j instanceof Error&&v.getPrototypeOf(j)===Error.prototype}(w)){(S=new m(w)).name=w.name,S.message=w.message,S.stack=w.stack;for(var O=v.keys(w),C=0;C<O.length;++C){var T=O[C];_.test(T)||(S[T]=w[T])}return S}return u.markAsOriginatingFromRejection(w),w}l.exports=function(w,S){return function(O,C){if(w!==null){if(O){var T=x(h(O));w._attachExtraTrace(T),w._reject(T)}else if(S){var j=[].slice.call(arguments,1);w._fulfill(j)}else w._fulfill(C);w=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(o,l,f){l.exports=function(u){var h=o("./util"),m=u._async,v=h.tryCatch,_=h.errorObj;function x(O,C){if(!h.isArray(O))return w.call(this,O,C);var T=v(C).apply(this._boundValue(),[null].concat(O));T===_&&m.throwLater(T.e)}function w(O,C){var T=this._boundValue(),j=O===void 0?v(C).call(T,null):v(C).call(T,null,O);j===_&&m.throwLater(j.e)}function S(O,C){if(!O){var T=new Error(O+"");T.cause=O,O=T}var j=v(C).call(this._boundValue(),O);j===_&&m.throwLater(j.e)}u.prototype.asCallback=u.prototype.nodeify=function(O,C){if(typeof O=="function"){var T=w;C!==void 0&&Object(C).spread&&(T=x),this._then(T,S,void 0,this,O)}return this}}},{"./util":36}],22:[function(o,l,f){l.exports=function(){var u=function(){return new j(`circular promise resolution chain
See http://goo.gl/MqrFmX
`)},h=function(){return new F.PromiseInspection(this._target())},m=function(Y){return F.reject(new j(Y))};function v(){}var _,x={},w=o("./util");_=w.isNode?function(){var Y=r.domain;return Y===void 0&&(Y=null),Y}:function(){return null},w.notEnumerableProp(F,"_getDomain",_);var S=o("./es5"),O=o("./async"),C=new O;S.defineProperty(F,"_async",{value:C});var T=o("./errors"),j=F.TypeError=T.TypeError;F.RangeError=T.RangeError;var P=F.CancellationError=T.CancellationError;F.TimeoutError=T.TimeoutError,F.OperationalError=T.OperationalError,F.RejectionError=T.OperationalError,F.AggregateError=T.AggregateError;var R=function(){},$={},q={},K=o("./thenables")(F,R),H=o("./promise_array")(F,R,K,m,v),G=o("./context")(F),te=G.create,ie=o("./debuggability")(F,G),X=(ie.CapturedTrace,o("./finally")(F,K,q)),ee=o("./catch_filter")(q),W=o("./nodeback"),B=w.errorObj,U=w.tryCatch;function F(Y){Y!==R&&function(ae,de){if(ae==null||ae.constructor!==F)throw new j(`the promise constructor cannot be invoked directly
See http://goo.gl/MqrFmX
`);if(typeof de!="function")throw new j("expecting a function but got "+w.classString(de))}(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 M(Y){this.promise._resolveCallback(Y)}function I(Y){this.promise._rejectCallback(Y,!1)}function J(Y){var ae=new F(R);ae._fulfillmentHandler0=Y,ae._rejectionHandler0=Y,ae._promise0=Y,ae._receiver0=Y}return F.prototype.toString=function(){return"[object Promise]"},F.prototype.caught=F.prototype.catch=function(Y){var ae=arguments.length;if(ae>1){var de,fe=new Array(ae-1),be=0;for(de=0;de<ae-1;++de){var z=arguments[de];if(!w.isObject(z))return m("Catch statement predicate: expecting an object but got "+w.classString(z));fe[be++]=z}return fe.length=be,Y=arguments[de],this.then(void 0,ee(fe,Y,this))}return this.then(void 0,Y)},F.prototype.reflect=function(){return this._then(h,h,void 0,this,void 0)},F.prototype.then=function(Y,ae){if(ie.warnings()&&arguments.length>0&&typeof Y!="function"&&typeof ae!="function"){var de=".then() only accepts functions but was passed: "+w.classString(Y);arguments.length>1&&(de+=", "+w.classString(ae)),this._warn(de)}return this._then(Y,ae,void 0,void 0,void 0)},F.prototype.done=function(Y,ae){this._then(Y,ae,void 0,void 0,void 0)._setIsFinal()},F.prototype.spread=function(Y){return typeof Y!="function"?m("expecting a function but got "+w.classString(Y)):this.all()._then(Y,void 0,void 0,$,void 0)},F.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},F.prototype.all=function(){return arguments.length>0&&this._warn(".all() was passed arguments but it does not take any"),new H(this).promise()},F.prototype.error=function(Y){return this.caught(w.originatesFromRejection,Y)},F.getNewLibraryCopy=l.exports,F.is=function(Y){return Y instanceof F},F.fromNode=F.fromCallback=function(Y){var ae=new F(R);ae._captureStackTrace();var de=arguments.length>1&&!!Object(arguments[1]).multiArgs,fe=U(Y)(W(ae,de));return fe===B&&ae._rejectCallback(fe.e,!0),ae._isFateSealed()||ae._setAsyncGuaranteed(),ae},F.all=function(Y){return new H(Y).promise()},F.cast=function(Y){var ae=K(Y);return ae instanceof F||((ae=new F(R))._captureStackTrace(),ae._setFulfilled(),ae._rejectionHandler0=Y),ae},F.resolve=F.fulfilled=F.cast,F.reject=F.rejected=function(Y){var ae=new F(R);return ae._captureStackTrace(),ae._rejectCallback(Y,!0),ae},F.setScheduler=function(Y){if(typeof Y!="function")throw new j("expecting a function but got "+w.classString(Y));return C.setScheduler(Y)},F.prototype._then=function(Y,ae,de,fe,be){var z=be!==void 0,V=z?be:new F(R),ne=this._target(),ce=ne._bitField;z||(V._propagateFrom(this,3),V._captureStackTrace(),fe===void 0&&(2097152&this._bitField)!=0&&(fe=(50397184&ce)!=0?this._boundValue():ne===this?void 0:this._boundTo),this._fireEvent("promiseChained",this,V));var Q=_();if((50397184&ce)!=0){var le,pe,ye=ne._settlePromiseCtx;(33554432&ce)!=0?(pe=ne._rejectionHandler0,le=Y):(16777216&ce)!=0?(pe=ne._fulfillmentHandler0,le=ae,ne._unsetRejectionIsUnhandled()):(ye=ne._settlePromiseLateCancellationObserver,pe=new P("late cancellation observer"),ne._attachExtraTrace(pe),le=ae),C.invoke(ye,ne,{handler:Q===null?le:typeof le=="function"&&w.domainBind(Q,le),promise:V,receiver:fe,value:pe})}else ne._addCallbacks(Y,ae,V,fe,Q);return V},F.prototype._length=function(){return 65535&this._bitField},F.prototype._isFateSealed=function(){return(117506048&this._bitField)!=0},F.prototype._isFollowing=function(){return(67108864&this._bitField)==67108864},F.prototype._setLength=function(Y){this._bitField=-65536&this._bitField|65535&Y},F.prototype._setFulfilled=function(){this._bitField=33554432|this._bitField,this._fireEvent("promiseFulfilled",this)},F.prototype._setRejected=function(){this._bitField=16777216|this._bitField,this._fireEvent("promiseRejected",this)},F.prototype._setFollowing=function(){this._bitField=67108864|this._bitField,this._fireEvent("promiseResolved",this)},F.prototype._setIsFinal=function(){this._bitField=4194304|this._bitField},F.prototype._isFinal=function(){return(4194304&this._bitField)>0},F.prototype._unsetCancelled=function(){this._bitField=-65537&this._bitField},F.prototype._setCancelled=function(){this._bitField=65536|this._bitField,this._fireEvent("promiseCancelled",this)},F.prototype._setWillBeCancelled=function(){this._bitField=8388608|this._bitField},F.prototype._setAsyncGuaranteed=function(){C.hasCustomScheduler()||(this._bitField=134217728|this._bitField)},F.prototype._receiverAt=function(Y){var ae=Y===0?this._receiver0:this[4*Y-4+3];if(ae!==x)return ae===void 0&&this._isBound()?this._boundValue():ae},F.prototype._promiseAt=function(Y){return this[4*Y-4+2]},F.prototype._fulfillmentHandlerAt=function(Y){return this[4*Y-4+0]},F.prototype._rejectionHandlerAt=function(Y){return this[4*Y-4+1]},F.prototype._boundValue=function(){},F.prototype._migrateCallback0=function(Y){Y._bitField;var ae=Y._fulfillmentHandler0,de=Y._rejectionHandler0,fe=Y._promise0,be=Y._receiverAt(0);be===void 0&&(be=x),this._addCallbacks(ae,de,fe,be,null)},F.prototype._migrateCallbackAt=function(Y,ae){var de=Y._fulfillmentHandlerAt(ae),fe=Y._rejectionHandlerAt(ae),be=Y._promiseAt(ae),z=Y._receiverAt(ae);z===void 0&&(z=x),this._addCallbacks(de,fe,be,z,null)},F.prototype._addCallbacks=function(Y,ae,de,fe,be){var z=this._length();if(z>=65531&&(z=0,this._setLength(0)),z===0)this._promise0=de,this._receiver0=fe,typeof Y=="function"&&(this._fulfillmentHandler0=be===null?Y:w.domainBind(be,Y)),typeof ae=="function"&&(this._rejectionHandler0=be===null?ae:w.domainBind(be,ae));else{var V=4*z-4;this[V+2]=de,this[V+3]=fe,typeof Y=="function"&&(this[V+0]=be===null?Y:w.domainBind(be,Y)),typeof ae=="function"&&(this[V+1]=be===null?ae:w.domainBind(be,ae))}return this._setLength(z+1),z},F.prototype._proxy=function(Y,ae){this._addCallbacks(void 0,void 0,ae,Y,null)},F.prototype._resolveCallback=function(Y,ae){if((117506048&this._bitField)==0){if(Y===this)return this._rejectCallback(u(),!1);var de=K(Y,this);if(!(de instanceof F))return this._fulfill(Y);ae&&this._propagateFrom(de,2);var fe=de._target();if(fe!==this){var be=fe._bitField;if((50397184&be)==0){var z=this._length();z>0&&fe._migrateCallback0(this);for(var V=1;V<z;++V)fe._migrateCallbackAt(this,V);this._setFollowing(),this._setLength(0),this._setFollowee(fe)}else if((33554432&be)!=0)this._fulfill(fe._value());else if((16777216&be)!=0)this._reject(fe._reason());else{var ne=new P("late cancellation observer");fe._attachExtraTrace(ne),this._reject(ne)}}else this._reject(u())}},F.prototype._rejectCallback=function(Y,ae,de){var fe=w.ensureErrorObject(Y),be=fe===Y;if(!be&&!de&&ie.warnings()){var z="a promise was rejected with a non-error: "+w.classString(Y);this._warn(z,!0)}this._attachExtraTrace(fe,!!ae&&be),this._reject(Y)},F.prototype._resolveFromExecutor=function(Y){if(Y!==R){var ae=this;this._captureStackTrace(),this._pushContext();var de=!0,fe=this._execute(Y,function(be){ae._resolveCallback(be)},function(be){ae._rejectCallback(be,de)});de=!1,this._popContext(),fe!==void 0&&ae._rejectCallback(fe,!0)}},F.prototype._settlePromiseFromHandler=function(Y,ae,de,fe){var be=fe._bitField;if((65536&be)==0){var z;fe._pushContext(),ae===$?de&&typeof de.length=="number"?z=U(Y).apply(this._boundValue(),de):(z=B).e=new j("cannot .spread() a non-array: "+w.classString(de)):z=U(Y).call(ae,de);var V=fe._popContext();(65536&(be=fe._bitField))==0&&(z===q?fe._reject(de):z===B?fe._rejectCallback(z.e,!1):(ie.checkForgottenReturns(z,V,"",fe,this),fe._resolveCallback(z)))}},F.prototype._target=function(){for(var Y=this;Y._isFollowing();)Y=Y._followee();return Y},F.prototype._followee=function(){return this._rejectionHandler0},F.prototype._setFollowee=function(Y){this._rejectionHandler0=Y},F.prototype._settlePromise=function(Y,ae,de,fe){var be=Y instanceof F,z=this._bitField,V=(134217728&z)!=0;(65536&z)!=0?(be&&Y._invokeInternalOnCancel(),de instanceof X&&de.isFinallyHandler()?(de.cancelPromise=Y,U(ae).call(de,fe)===B&&Y._reject(B.e)):ae===h?Y._fulfill(h.call(de)):de instanceof v?de._promiseCancelled(Y):be||Y instanceof H?Y._cancel():de.cancel()):typeof ae=="function"?be?(V&&Y._setAsyncGuaranteed(),this._settlePromiseFromHandler(ae,de,fe,Y)):ae.call(de,fe,Y):de instanceof v?de._isResolved()||((33554432&z)!=0?de._promiseFulfilled(fe,Y):de._promiseRejected(fe,Y)):be&&(V&&Y._setAsyncGuaranteed(),(33554432&z)!=0?Y._fulfill(fe):Y._reject(fe))},F.prototype._settlePromiseLateCancellationObserver=function(Y){var ae=Y.handler,de=Y.promise,fe=Y.receiver,be=Y.value;typeof ae=="function"?de instanceof F?this._settlePromiseFromHandler(ae,fe,be,de):ae.call(fe,be,de):de instanceof F&&de._reject(be)},F.prototype._settlePromiseCtx=function(Y){this._settlePromise(Y.promise,Y.handler,Y.receiver,Y.value)},F.prototype._settlePromise0=function(Y,ae,de){var fe=this._promise0,be=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(fe,Y,be,ae)},F.prototype._clearCallbackDataAtIndex=function(Y){var ae=4*Y-4;this[ae+2]=this[ae+3]=this[ae+0]=this[ae+1]=void 0},F.prototype._fulfill=function(Y){var ae=this._bitField;if(!((117506048&ae)>>>16)){if(Y===this){var de=u();return this._attachExtraTrace(de),this._reject(de)}this._setFulfilled(),this._rejectionHandler0=Y,(65535&ae)>0&&((134217728&ae)!=0?this._settlePromises():C.settlePromises(this))}},F.prototype._reject=function(Y){var ae=this._bitField;if(!((117506048&ae)>>>16)){if(this._setRejected(),this._fulfillmentHandler0=Y,this._isFinal())return C.fatalError(Y,w.isNode);(65535&ae)>0?C.settlePromises(this):this._ensurePossibleRejectionHandled()}},F.prototype._fulfillPromises=function(Y,ae){for(var de=1;de<Y;de++){var fe=this._fulfillmentHandlerAt(de),be=this._promiseAt(de),z=this._receiverAt(de);this._clearCallbackDataAtIndex(de),this._settlePromise(be,fe,z,ae)}},F.prototype._rejectPromises=function(Y,ae){for(var de=1;de<Y;de++){var fe=this._rejectionHandlerAt(de),be=this._promiseAt(de),z=this._receiverAt(de);this._clearCallbackDataAtIndex(de),this._settlePromise(be,fe,z,ae)}},F.prototype._settlePromises=function(){var Y=this._bitField,ae=65535&Y;if(ae>0){if((16842752&Y)!=0){var de=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,de,Y),this._rejectPromises(ae,de)}else{var fe=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,fe,Y),this._fulfillPromises(ae,fe)}this._setLength(0)}this._clearCancellationData()},F.prototype._settledValue=function(){var Y=this._bitField;return(33554432&Y)!=0?this._rejectionHandler0:(16777216&Y)!=0?this._fulfillmentHandler0:void 0},F.defer=F.pending=function(){return ie.deprecated("Promise.defer","new Promise"),{promise:new F(R),resolve:M,reject:I}},w.notEnumerableProp(F,"_makeSelfResolutionError",u),o("./method")(F,R,K,m,ie),o("./bind")(F,R,K,ie),o("./cancel")(F,H,m,ie),o("./direct_resolve")(F),o("./synchronous_inspection")(F),o("./join")(F,H,K,R,C,_),F.Promise=F,F.version="3.5.1",o("./map.js")(F,H,m,K,R,ie),o("./call_get.js")(F),o("./using.js")(F,m,K,te,R,ie),o("./timers.js")(F,R,ie),o("./generators.js")(F,m,R,K,v,ie),o("./nodeify.js")(F),o("./promisify.js")(F,R),o("./props.js")(F,H,K,m),o("./race.js")(F,R,K,m),o("./reduce.js")(F,H,m,K,R,ie),o("./settle.js")(F,H,ie),o("./some.js")(F,H,m),o("./filter.js")(F,R),o("./each.js")(F,R),o("./any.js")(F),w.toFastProperties(F),w.toFastProperties(F.prototype),J({a:1}),J({b:2}),J({c:3}),J(1),J(function(){}),J(void 0),J(!1),J(new F(R)),ie.setBounds(O.firstLineError,w.lastLineError),F}},{"./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(o,l,f){l.exports=function(u,h,m,v,_){var x=o("./util");function w(S){var O=this._promise=new u(h);S instanceof u&&O._propagateFrom(S,3),O._setOnCancel(this),this._values=S,this._length=0,this._totalResolved=0,this._init(void 0,-2)}return x.isArray,x.inherits(w,_),w.prototype.length=function(){return this._length},w.prototype.promise=function(){return this._promise},w.prototype._init=function S(O,C){var T=m(this._values,this._promise);if(T instanceof u){var j=(T=T._target())._bitField;if(this._values=T,(50397184&j)==0)return this._promise._setAsyncGuaranteed(),T._then(S,this._reject,void 0,this,C);if((33554432&j)==0)return(16777216&j)!=0?this._reject(T._reason()):this._cancel();T=T._value()}if((T=x.asArray(T))!==null)T.length!==0?this._iterate(T):C===-5?this._resolveEmptyArray():this._resolve(function(R){switch(C){case-2:return[];case-3:return{};case-6:return new Map}}());else{var P=v("expecting an array or an iterable object but got "+x.classString(T)).reason();this._promise._rejectCallback(P,!1)}},w.prototype._iterate=function(S){var O=this.getActualLength(S.length);this._length=O,this._values=this.shouldCopyValues()?new Array(O):this._values;for(var C=this._promise,T=!1,j=null,P=0;P<O;++P){var R=m(S[P],C);j=R instanceof u?(R=R._target())._bitField:null,T?j!==null&&R.suppressUnhandledRejections():j!==null?(50397184&j)==0?(R._proxy(this,P),this._values[P]=R):T=(33554432&j)!=0?this._promiseFulfilled(R._value(),P):(16777216&j)!=0?this._promiseRejected(R._reason(),P):this._promiseCancelled(P):T=this._promiseFulfilled(R,P)}T||C._setAsyncGuaranteed()},w.prototype._isResolved=function(){return this._values===null},w.prototype._resolve=function(S){this._values=null,this._promise._fulfill(S)},w.prototype._cancel=function(){!this._isResolved()&&this._promise._isCancellable()&&(this._values=null,this._promise._cancel())},w.prototype._reject=function(S){this._values=null,this._promise._rejectCallback(S,!1)},w.prototype._promiseFulfilled=function(S,O){return this._values[O]=S,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},w.prototype._promiseCancelled=function(){return this._cancel(),!0},w.prototype._promiseRejected=function(S){return this._totalResolved++,this._reject(S),!0},w.prototype._resultCancelled=function(){if(!this._isResolved()){var S=this._values;if(this._cancel(),S instanceof u)S.cancel();else for(var O=0;O<S.length;++O)S[O]instanceof u&&S[O].cancel()}},w.prototype.shouldCopyValues=function(){return!0},w.prototype.getActualLength=function(S){return S},w}},{"./util":36}],24:[function(o,l,f){l.exports=function(u,h){var m={},v=o("./util"),_=o("./nodeback"),x=v.withAppended,w=v.maybeWrapAsError,S=v.canEvaluate,O=o("./errors").TypeError,C={__isPromisified__:!0},T=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),j=function(te){return v.isIdentifier(te)&&te.charAt(0)!=="_"&&te!=="constructor"};function P(te){return!T.test(te)}function R(te){try{return te.__isPromisified__===!0}catch{return!1}}function $(te,ie,X){var ee=v.getDataPropertyOrDefault(te,ie+X,C);return!!ee&&R(ee)}function q(te,ie,X,ee){for(var W=v.inheritedDataKeys(te),B=[],U=0;U<W.length;++U){var F=W[U],M=te[F],I=ee===j||j(F);typeof M!="function"||R(M)||$(te,F,ie)||!ee(F,M,te,I)||B.push(F,M)}return function(J,Y,ae){for(var de=0;de<J.length;de+=2){var fe=J[de];if(ae.test(fe)){for(var be=fe.replace(ae,""),z=0;z<J.length;z+=2)if(J[z]===be)throw new O(`Cannot promisify an API that has normal methods with '%s'-suffix
See http://goo.gl/MqrFmX
`.replace("%s",Y))}}}(B,ie,X),B}var K=function(te){return te.replace(/([$])/,"\\$")},H=S?void 0:function(te,ie,X,ee,W,B){var U=function(){return this}(),F=te;function M(){var I=ie;ie===m&&(I=this);var J=new u(h);J._captureStackTrace();var Y=typeof F=="string"&&this!==U?this[F]:te,ae=_(J,B);try{Y.apply(I,x(arguments,ae))}catch(de){J._rejectCallback(w(de),!0,!0)}return J._isFateSealed()||J._setAsyncGuaranteed(),J}return typeof F=="string"&&(te=ee),v.notEnumerableProp(M,"__isPromisified__",!0),M};function G(te,ie,X,ee,W){for(var B=new RegExp(K(ie)+"$"),U=q(te,ie,B,X),F=0,M=U.length;F<M;F+=2){var I=U[F],J=U[F+1],Y=I+ie;if(ee===H)te[Y]=H(I,m,I,J,ie,W);else{var ae=ee(J,function(){return H(I,m,I,J,ie,W)});v.notEnumerableProp(ae,"__isPromisified__",!0),te[Y]=ae}}return v.toFastProperties(te),te}u.promisify=function(te,ie){if(typeof te!="function")throw new O("expecting a function but got "+v.classString(te));if(R(te))return te;var X=(ie=Object(ie)).context===void 0?m:ie.context,ee=!!ie.multiArgs,W=function(B,U,F){return H(B,U,void 0,B,null,ee)}(te,X);return v.copyDescriptors(te,W,P),W},u.promisifyAll=function(te,ie){if(typeof te!="function"&&typeof te!="object")throw new O(`the target of promisifyAll must be an object or a function
See http://goo.gl/MqrFmX
`);var X=!!(ie=Object(ie)).multiArgs,ee=ie.suffix;typeof ee!="string"&&(ee="Async");var W=ie.filter;typeof W!="function"&&(W=j);var B=ie.promisifier;if(typeof B!="function"&&(B=H),!v.isIdentifier(ee))throw new RangeError(`suffix must be a valid identifier
See http://goo.gl/MqrFmX
`);for(var U=v.inheritedDataKeys(te),F=0;F<U.length;++F){var M=te[U[F]];U[F]!=="constructor"&&v.isClass(M)&&(G(M.prototype,ee,W,B,X),G(M,ee,W,B,X))}return G(te,ee,W,B,X)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(o,l,f){l.exports=function(u,h,m,v){var _,x=o("./util"),w=x.isObject,S=o("./es5");typeof Map=="function"&&(_=Map);var O=function(){var j=0,P=0;function R($,q){this[j]=$,this[j+P]=q,j++}return function($){P=$.size,j=0;var q=new Array(2*$.size);return $.forEach(R,q),q}}();function C(j){var P,R=!1;if(_!==void 0&&j instanceof _)P=O(j),R=!0;else{var $=S.keys(j),q=$.length;P=new Array(2*q);for(var K=0;K<q;++K){var H=$[K];P[K]=j[H],P[K+q]=H}}this.constructor$(P),this._isMap=R,this._init$(void 0,R?-6:-3)}function T(j){var P,R=m(j);return w(R)?(P=R instanceof u?R._then(u.props,void 0,void 0,void 0,void 0):new C(R).promise(),R instanceof u&&P._propagateFrom(R,2),P):v(`cannot await properties of a non-object
See http://goo.gl/MqrFmX
`)}x.inherits(C,h),C.prototype._init=function(){},C.prototype._promiseFulfilled=function(j,P){if(this._values[P]=j,++this._totalResolved>=this._length){var R;if(this._isMap)R=function(H){for(var G=new _,te=H.length/2|0,ie=0;ie<te;++ie){var X=H[te+ie],ee=H[ie];G.set(X,ee)}return G}(this._values);else{R={};for(var $=this.length(),q=0,K=this.length();q<K;++q)R[this._values[q+$]]=this._values[q]}return this._resolve(R),!0}return!1},C.prototype.shouldCopyValues=function(){return!1},C.prototype.getActualLength=function(j){return j>>1},u.prototype.props=function(){return T(this)},u.props=function(j){return T(j)}}},{"./es5":13,"./util":36}],26:[function(o,l,f){function u(h){this._capacity=h,this._length=0,this._front=0}u.prototype._willBeOverCapacity=function(h){return this._capacity<h},u.prototype._pushOne=function(h){var m=this.length();this._checkCapacity(m+1),this[this._front+m&this._capacity-1]=h,this._length=m+1},u.prototype.push=function(h,m,v){var _=this.length()+3;if(this._willBeOverCapacity(_))return this._pushOne(h),this._pushOne(m),void this._pushOne(v);var x=this._front+_-3;this._checkCapacity(_);var w=this._capacity-1;this[x+0&w]=h,this[x+1&w]=m,this[x+2&w]=v,this._length=_},u.prototype.shift=function(){var h=this._front,m=this[h];return this[h]=void 0,this._front=h+1&this._capacity-1,this._length--,m},u.prototype.length=function(){return this._length},u.prototype._checkCapacity=function(h){this._capacity<h&&this._resizeTo(this._capacity<<1)},u.prototype._resizeTo=function(h){var m=this._capacity;this._capacity=h,function(v,_,x,w,S){for(var O=0;O<S;++O)x[O+w]=v[O+0],v[O+0]=void 0}(this,0,this,m,this._front+this._length&m-1)},l.exports=u},{}],27:[function(o,l,f){l.exports=function(u,h,m,v){var _=o("./util"),x=function(S){return S.then(function(O){return w(O,S)})};function w(S,O){var C=m(S);if(C instanceof u)return x(C);if((S=_.asArray(S))===null)return v("expecting an array or an iterable object but got "+_.classString(S));var T=new u(h);O!==void 0&&T._propagateFrom(O,3);for(var j=T._fulfill,P=T._reject,R=0,$=S.length;R<$;++R){var q=S[R];(q!==void 0||R in S)&&u.cast(q)._then(j,P,void 0,T,null)}return T}u.race=function(S){return w(S,void 0)},u.prototype.race=function(){return w(this,void 0)}}},{"./util":36}],28:[function(o,l,f){l.exports=function(u,h,m,v,_,x){var w=u._getDomain,S=o("./util"),O=S.tryCatch;function C($,q,K,H){this.constructor$($);var G=w();this._fn=G===null?q:S.domainBind(G,q),K!==void 0&&(K=u.resolve(K))._attachCancellationCallback(this),this._initialValue=K,this._currentCancellable=null,this._eachValues=H===_?Array(this._length):H===0?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function T($,q){this.isFulfilled()?q._resolve($):q._reject($)}function j($,q,K,H){return typeof q!="function"?m("expecting a function but got "+S.classString(q)):new C($,q,K,H).promise()}function P($){this.accum=$,this.array._gotAccum($);var q=v(this.value,this.array._promise);return q instanceof u?(this.array._currentCancellable=q,q._then(R,void 0,void 0,this,void 0)):R.call(this,q)}function R($){var q,K=this.array,H=K._promise,G=O(K._fn);H._pushContext(),(q=K._eachValues!==void 0?G.call(H._boundValue(),$,this.index,this.length):G.call(H._boundValue(),this.accum,$,this.index,this.length))instanceof u&&(K._currentCancellable=q);var te=H._popContext();return x.checkForgottenReturns(q,te,K._eachValues!==void 0?"Promise.each":"Promise.reduce",H),q}S.inherits(C,h),C.prototype._gotAccum=function($){this._eachValues!==void 0&&this._eachValues!==null&&$!==_&&this._eachValues.push($)},C.prototype._eachComplete=function($){return this._eachValues!==null&&this._eachValues.push($),this._eachValues},C.prototype._init=function(){},C.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues!==void 0?this._eachValues:this._initialValue)},C.prototype.shouldCopyValues=function(){return!1},C.prototype._resolve=function($){this._promise._resolveCallback($),this._values=null},C.prototype._resultCancelled=function($){if($===this._initialValue)return this._cancel();this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof u&&this._currentCancellable.cancel(),this._initialValue instanceof u&&this._initialValue.cancel())},C.prototype._iterate=function($){var q,K;this._values=$;var H=$.length;if(this._initialValue!==void 0?(q=this._initialValue,K=0):(q=u.resolve($[0]),K=1),this._currentCancellable=q,!q.isRejected())for(;K<H;++K){var G={accum:null,value:$[K],index:K,length:H,array:this};q=q._then(P,void 0,void 0,G,void 0)}this._eachValues!==void 0&&(q=q._then(this._eachComplete,void 0,void 0,this,void 0)),q._then(T,T,void 0,q,this)},u.prototype.reduce=function($,q){return j(this,$,q,null)},u.reduce=function($,q,K,H){return j($,q,K,H)}}},{"./util":36}],29:[function(o,l,f){var u,h=o("./util"),m=h.getNativePromise();if(h.isNode&&typeof MutationObserver>"u"){var v=i.setImmediate,_=r.nextTick;u=h.isRecentNode?function(w){v.call(i,w)}:function(w){_.call(r,w)}}else if(typeof m=="function"&&typeof m.resolve=="function"){var x=m.resolve();u=function(w){x.then(w)}}else u=typeof MutationObserver>"u"||typeof window<"u"&&window.navigator&&(window.navigator.standalone||window.cordova)?a!==void 0?function(w){a(w)}:typeof setTimeout<"u"?function(w){setTimeout(w,0)}:function(){throw new Error(`No async scheduler available
See http://goo.gl/MqrFmX
`)}:function(){var w=document.createElement("div"),S={attributes:!0},O=!1,C=document.createElement("div");return new MutationObserver(function(){w.classList.toggle("foo"),O=!1}).observe(C,S),function(T){var j=new MutationObserver(function(){j.disconnect(),T()});j.observe(w,S),O||(O=!0,C.classList.toggle("foo"))}}();l.exports=u},{"./util":36}],30:[function(o,l,f){l.exports=function(u,h,m){var v=u.PromiseInspection;function _(x){this.constructor$(x)}o("./util").inherits(_,h),_.prototype._promiseResolved=function(x,w){return this._values[x]=w,++this._totalResolved>=this._length&&(this._resolve(this._values),!0)},_.prototype._promiseFulfilled=function(x,w){var S=new v;return S._bitField=33554432,S._settledValueField=x,this._promiseResolved(w,S)},_.prototype._promiseRejected=function(x,w){var S=new v;return S._bitField=16777216,S._settledValueField=x,this._promiseResolved(w,S)},u.settle=function(x){return m.deprecated(".settle()",".reflect()"),new _(x).promise()},u.prototype.settle=function(){return u.settle(this)}}},{"./util":36}],31:[function(o,l,f){l.exports=function(u,h,m){var v=o("./util"),_=o("./errors").RangeError,x=o("./errors").AggregateError,w=v.isArray,S={};function O(T){this.constructor$(T),this._howMany=0,this._unwrap=!1,this._initialized=!1}function C(T,j){if((0|j)!==j||j<0)return m(`expecting a positive integer
See http://goo.gl/MqrFmX
`);var P=new O(T),R=P.promise();return P.setHowMany(j),P.init(),R}v.inherits(O,h),O.prototype._init=function(){if(this._initialized)if(this._howMany!==0){this._init$(void 0,-5);var T=w(this._values);!this._isResolved()&&T&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}else this._resolve([])},O.prototype.init=function(){this._initialized=!0,this._init()},O.prototype.setUnwrap=function(){this._unwrap=!0},O.prototype.howMany=function(){return this._howMany},O.prototype.setHowMany=function(T){this._howMany=T},O.prototype._promiseFulfilled=function(T){return this._addFulfilled(T),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),this.howMany()===1&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},O.prototype._promiseRejected=function(T){return this._addRejected(T),this._checkOutcome()},O.prototype._promiseCancelled=function(){return this._values instanceof u||this._values==null?this._cancel():(this._addRejected(S),this._checkOutcome())},O.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var T=new x,j=this.length();j<this._values.length;++j)this._values[j]!==S&&T.push(this._values[j]);return T.length>0?this._reject(T):this._cancel(),!0}return!1},O.prototype._fulfilled=function(){return this._totalResolved},O.prototype._rejected=function(){return this._values.length-this.length()},O.prototype._addRejected=function(T){this._values.push(T)},O.prototype._addFulfilled=function(T){this._values[this._totalResolved++]=T},O.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},O.prototype._getRangeError=function(T){var j="Input array must contain at least "+this._howMany+" items but contains only "+T+" items";return new _(j)},O.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},u.some=function(T,j){return C(T,j)},u.prototype.some=function(T){return C(this,T)},u._SomePromiseArray=O}},{"./errors":12,"./util":36}],32:[function(o,l,f){l.exports=function(u){function h(O){O!==void 0?(O=O._target(),this._bitField=O._bitField,this._settledValueField=O._isFateSealed()?O._settledValue():void 0):(this._bitField=0,this._settledValueField=void 0)}h.prototype._settledValue=function(){return this._settledValueField};var m=h.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()},v=h.prototype.error=h.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()},_=h.prototype.isFulfilled=function(){return(33554432&this._bitField)!=0},x=h.prototype.isRejected=function(){return(16777216&this._bitField)!=0},w=h.prototype.isPending=function(){return(50397184&this._bitField)==0},S=h.prototype.isResolved=function(){return(50331648&this._bitField)!=0};h.prototype.isCancelled=function(){return(8454144&this._bitField)!=0},u.prototype.__isCancelled=function(){return(65536&this._bitField)==65536},u.prototype._isCancelled=function(){return this._target().__isCancelled()},u.prototype.isCancelled=function(){return(8454144&this._target()._bitField)!=0},u.prototype.isPending=function(){return w.call(this._target())},u.prototype.isRejected=function(){return x.call(this._target())},u.prototype.isFulfilled=function(){return _.call(this._target())},u.prototype.isResolved=function(){return S.call(this._target())},u.prototype.value=function(){return m.call(this._target())},u.prototype.reason=function(){var O=this._target();return O._unsetRejectionIsUnhandled(),v.call(O)},u.prototype._value=function(){return this._settledValue()},u.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},u.PromiseInspection=h}},{}],33:[function(o,l,f){l.exports=function(u,h){var m=o("./util"),v=m.errorObj,_=m.isObject,x={}.hasOwnProperty;return function(w,S){if(_(w)){if(w instanceof u)return w;var O=function(T){try{return function(j){return j.then}(T)}catch(j){return v.e=j,v}}(w);if(O===v){S&&S._pushContext();var C=u.reject(O.e);return S&&S._popContext(),C}if(typeof O=="function")return function(T){try{return x.call(T,"_promise0")}catch{return!1}}(w)?(C=new u(h),w._then(C._fulfill,C._reject,void 0,C,null),C):function(T,j,P){var R=new u(h),$=R;P&&P._pushContext(),R._captureStackTrace(),P&&P._popContext();var q=!0,K=m.tryCatch(j).call(T,function(H){R&&(R._resolveCallback(H),R=null)},function(H){R&&(R._rejectCallback(H,q,!0),R=null)});return q=!1,R&&K===v&&(R._rejectCallback(K.e,!0,!0),R=null),$}(w,O,S)}return w}}},{"./util":36}],34:[function(o,l,f){l.exports=function(u,h,m){var v=o("./util"),_=u.TimeoutError;function x(T){this.handle=T}x.prototype._resultCancelled=function(){clearTimeout(this.handle)};var w=function(T){return S(+this).thenReturn(T)},S=u.delay=function(T,j){var P,R;return j!==void 0?(P=u.resolve(j)._then(w,null,null,T,void 0),m.cancellation()&&j instanceof u&&P._setOnCancel(j)):(P=new u(h),R=setTimeout(function(){P._fulfill()},+T),m.cancellation()&&P._setOnCancel(new x(R)),P._captureStackTrace()),P._setAsyncGuaranteed(),P};function O(T){return clearTimeout(this.handle),T}function C(T){throw clearTimeout(this.handle),T}u.prototype.delay=function(T){return S(T,this)},u.prototype.timeout=function(T,j){var P,R;T=+T;var $=new x(setTimeout(function(){P.isPending()&&function(q,K,H){var G;G=typeof K!="string"?K instanceof Error?K:new _("operation timed out"):new _(K),v.markAsOriginatingFromRejection(G),q._attachExtraTrace(G),q._reject(G),H!=null&&H.cancel()}(P,j,R)},T));return m.cancellation()?(R=this.then(),(P=R._then(O,C,void 0,$,void 0))._setOnCancel($)):P=this._then(O,C,void 0,$,void 0),P}}},{"./util":36}],35:[function(o,l,f){l.exports=function(u,h,m,v,_,x){var w=o("./util"),S=o("./errors").TypeError,O=o("./util").inherits,C=w.errorObj,T=w.tryCatch,j={};function P(G){setTimeout(function(){throw G},0)}function R(G,te){var ie=0,X=G.length,ee=new u(_);return function W(){if(ie>=X)return ee._fulfill();var B=function(U){var F=m(U);return F!==U&&typeof U._isDisposable=="function"&&typeof U._getDisposer=="function"&&U._isDisposable()&&F._setDisposable(U._getDisposer()),F}(G[ie++]);if(B instanceof u&&B._isDisposable()){try{B=m(B._getDisposer().tryDispose(te),G.promise)}catch(U){return P(U)}if(B instanceof u)return B._then(W,P,null,null,null)}W()}(),ee}function $(G,te,ie){this._data=G,this._promise=te,this._context=ie}function q(G,te,ie){this.constructor$(G,te,ie)}function K(G){return $.isDisposer(G)?(this.resources[this.index]._setDisposable(G),G.promise()):G}function H(G){this.length=G,this.promise=null,this[G-1]=null}$.prototype.data=function(){return this._data},$.prototype.promise=function(){return this._promise},$.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():j},$.prototype.tryDispose=function(G){var te=this.resource(),ie=this._context;ie!==void 0&&ie._pushContext();var X=te!==j?this.doDispose(te,G):null;return ie!==void 0&&ie._popContext(),this._promise._unsetDisposable(),this._data=null,X},$.isDisposer=function(G){return G!=null&&typeof G.resource=="function"&&typeof G.tryDispose=="function"},O(q,$),q.prototype.doDispose=function(G,te){return this.data().call(G,G,te)},H.prototype._resultCancelled=function(){for(var G=this.length,te=0;te<G;++te){var ie=this[te];ie instanceof u&&ie.cancel()}},u.using=function(){var G=arguments.length;if(G<2)return h("you must pass at least 2 arguments to Promise.using");var te,ie=arguments[G-1];if(typeof ie!="function")return h("expecting a function but got "+w.classString(ie));var X=!0;G===2&&Array.isArray(arguments[0])?(G=(te=arguments[0]).length,X=!1):(te=arguments,G--);for(var ee=new H(G),W=0;W<G;++W){var B=te[W];if($.isDisposer(B)){var U=B;(B=B.promise())._setDisposable(U)}else{var F=m(B);F instanceof u&&(B=F._then(K,null,null,{resources:ee,index:W},void 0))}ee[W]=B}var M=new Array(ee.length);for(W=0;W<M.length;++W)M[W]=u.resolve(ee[W]).reflect();var I=u.all(M).then(function(Y){for(var ae=0;ae<Y.length;++ae){var de=Y[ae];if(de.isRejected())return C.e=de.error(),C;if(!de.isFulfilled())return void I.cancel();Y[ae]=de.value()}J._pushContext(),ie=T(ie);var fe=X?ie.apply(void 0,Y):ie(Y),be=J._popContext();return x.checkForgottenReturns(fe,be,"Promise.using",J),fe}),J=I.lastly(function(){var Y=new u.PromiseInspection(I);return R(ee,Y)});return ee.promise=J,J._setOnCancel(ee),J},u.prototype._setDisposable=function(G){this._bitField=131072|this._bitField,this._disposer=G},u.prototype._isDisposable=function(){return(131072&this._bitField)>0},u.prototype._getDisposer=function(){return this._disposer},u.prototype._unsetDisposable=function(){this._bitField=-131073&this._bitField,this._disposer=void 0},u.prototype.disposer=function(G){if(typeof G=="function")return new q(G,this,v());throw new S}}},{"./errors":12,"./util":36}],36:[function(o,l,f){var u,h=o("./es5"),m=typeof navigator>"u",v={e:{}},_=typeof self<"u"?self:typeof window<"u"?window:i!==void 0?i:this!==void 0?this:null;function x(){try{var X=u;return u=null,X.apply(this,arguments)}catch(ee){return v.e=ee,v}}function w(X){return X==null||X===!0||X===!1||typeof X=="string"||typeof X=="number"}function S(X,ee,W){if(w(X))return X;var B={value:W,configurable:!0,enumerable:!1,writable:!0};return h.defineProperty(X,ee,B),X}var O=function(){var X=[Array.prototype,Object.prototype,Function.prototype],ee=function(U){for(var F=0;F<X.length;++F)if(X[F]===U)return!0;return!1};if(h.isES5){var W=Object.getOwnPropertyNames;return function(U){for(var F=[],M=Object.create(null);U!=null&&!ee(U);){var I;try{I=W(U)}catch{return F}for(var J=0;J<I.length;++J){var Y=I[J];if(!M[Y]){M[Y]=!0;var ae=Object.getOwnPropertyDescriptor(U,Y);ae!=null&&ae.get==null&&ae.set==null&&F.push(Y)}}U=h.getPrototypeOf(U)}return F}}var B={}.hasOwnProperty;return function(U){if(ee(U))return[];var F=[];e:for(var M in U)if(B.call(U,M))F.push(M);else{for(var I=0;I<X.length;++I)if(B.call(X[I],M))continue e;F.push(M)}return F}}(),C=/this\s*\.\s*\S+\s*=/,T=/^[a-z$_][a-z$_0-9]*$/i;function j(X){try{return X+""}catch{return"[no string representation]"}}function P(X){return X instanceof Error||X!==null&&typeof X=="object"&&typeof X.message=="string"&&typeof X.name=="string"}function R(X){return P(X)&&h.propertyIsWritable(X,"stack")}var $="stack"in new Error?function(X){return R(X)?X:new Error(j(X))}:function(X){if(R(X))return X;try{throw new Error(j(X))}catch(ee){return ee}};function q(X){return{}.toString.call(X)}var K=function(X){return h.isArray(X)?X:null};if(typeof Symbol<"u"&&Symbol.iterator){var H=typeof Array.from=="function"?function(X){return Array.from(X)}:function(X){for(var ee,W=[],B=X[Symbol.iterator]();!(ee=B.next()).done;)W.push(ee.value);return W};K=function(X){return h.isArray(X)?X:X!=null&&typeof X[Symbol.iterator]=="function"?H(X):null}}var G=r!==void 0&&q(r).toLowerCase()==="[object process]",te=r!==void 0&&r.env!==void 0,ie={isClass:function(X){try{if(typeof X=="function"){var ee=h.names(X.prototype),W=h.isES5&&ee.length>1,B=ee.length>0&&!(ee.length===1&&ee[0]==="constructor"),U=C.test(X+"")&&h.names(X).length>0;if(W||B||U)return!0}return!1}catch{return!1}},isIdentifier:function(X){return T.test(X)},inheritedDataKeys:O,getDataPropertyOrDefault:function(X,ee,W){if(!h.isES5)return{}.hasOwnProperty.call(X,ee)?X[ee]:void 0;var B=Object.getOwnPropertyDescriptor(X,ee);return B!=null?B.get==null&&B.set==null?B.value:W:void 0},thrower:function(X){throw X},isArray:h.isArray,asArray:K,notEnumerableProp:S,isPrimitive:w,isObject:function(X){return typeof X=="function"||typeof X=="object"&&X!==null},isError:P,canEvaluate:m,errorObj:v,tryCatch:function(X){return u=X,x},inherits:function(X,ee){var W={}.hasOwnProperty;function B(){for(var U in this.constructor=X,this.constructor$=ee,ee.prototype)W.call(ee.prototype,U)&&U.charAt(U.length-1)!=="$"&&(this[U+"$"]=ee.prototype[U])}return B.prototype=ee.prototype,X.prototype=new B,X.prototype},withAppended:function(X,ee){var W,B=X.length,U=new Array(B+1);for(W=0;W<B;++W)U[W]=X[W];return U[W]=ee,U},maybeWrapAsError:function(X){return w(X)?new Error(j(X)):X},toFastProperties:function(X){return X},filledRange:function(X,ee,W){for(var B=new Array(X),U=0;U<X;++U)B[U]=ee+U+W;return B},toString:j,canAttachTrace:R,ensureErrorObject:$,originatesFromRejection:function(X){return X!=null&&(X instanceof Error.__BluebirdErrorTypes__.OperationalError||X.isOperational===!0)},markAsOriginatingFromRejection:function(X){try{S(X,"isOperational",!0)}catch{}},classString:q,copyDescriptors:function(X,ee,W){for(var B=h.names(X),U=0;U<B.length;++U){var F=B[U];if(W(F))try{h.defineProperty(ee,F,h.getDescriptor(X,F))}catch{}}},hasDevTools:typeof chrome<"u"&&chrome&&typeof chrome.loadTimes=="function",isNode:G,hasEnvVariables:te,env:function(X){return te?r.env[X]:void 0},global:_,getNativePromise:function(){if(typeof Promise=="function")try{var X=new Promise(function(){});if({}.toString.call(X)==="[object Promise]")return Promise}catch{}},domainBind:function(X,ee){return X.bind(ee)}};ie.isRecentNode=ie.isNode&&function(){var X=r.versions.node.split(".").map(Number);return X[0]===0&&X[1]>10||X[0]>0}(),ie.isNode&&ie.toFastProperties(r);try{throw new Error}catch(X){ie.lastLineError=X}l.exports=ie},{"./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 a=0,o=r.length;a<o;a++)if(r[a]==="\r"){if(r[a+1]===`
`){i.eol=`\r
`;break}if(r[a+1]){i.eol="\r";break}}else if(r[a]===`
`){i.eol=`
`;break}}return i.eol||`
`}},function(e,t,n){var r=n(65),i=n(73);e.exports=function(a,o){var l=i(a,o);return r(l)?l: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,a=r||i||Function("return this")();e.exports=a},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(a){return typeof a=="symbol"||i(a)&&r(a)=="[object Symbol]"}},function(e,t,n){(function(r,i){var a=n(6);e.exports=j;var o,l=n(37);j.ReadableState=T,n(12).EventEmitter;var f=function(M,I){return M.listeners(I).length},u=n(24),h=n(7).Buffer,m=r.Uint8Array||function(){},v=n(5);v.inherits=n(2);var _=n(41),x=void 0;x=_&&_.debuglog?_.debuglog("stream"):function(){};var w,S=n(42),O=n(25);v.inherits(j,u);var C=["error","close","destroy","pause","resume"];function T(M,I){o=o||n(1),M=M||{};var J=I instanceof o;this.objectMode=!!M.objectMode,J&&(this.objectMode=this.objectMode||!!M.readableObjectMode);var Y=M.highWaterMark,ae=M.readableHighWaterMark,de=this.objectMode?16:16384;this.highWaterMark=Y||Y===0?Y:J&&(ae||ae===0)?ae:de,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new S,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=M.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,M.encoding&&(w||(w=n(26).StringDecoder),this.decoder=new w(M.encoding),this.encoding=M.encoding)}function j(M){if(o=o||n(1),!(this instanceof j))return new j(M);this._readableState=new T(M,this),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),u.call(this)}function P(M,I,J,Y,ae){var de,fe=M._readableState;return I===null?(fe.reading=!1,function(be,z){if(!z.ended){if(z.decoder){var V=z.decoder.end();V&&V.length&&(z.buffer.push(V),z.length+=z.objectMode?1:V.length)}z.ended=!0,K(be)}}(M,fe)):(ae||(de=function(be,z){var V;return function(ne){return h.isBuffer(ne)||ne instanceof m}(z)||typeof z=="string"||z===void 0||be.objectMode||(V=new TypeError("Invalid non-string/buffer chunk")),V}(fe,I)),de?M.emit("error",de):fe.objectMode||I&&I.length>0?(typeof I=="string"||fe.objectMode||Object.getPrototypeOf(I)===h.prototype||(I=function(be){return h.from(be)}(I)),Y?fe.endEmitted?M.emit("error",new Error("stream.unshift() after end event")):R(M,fe,I,!0):fe.ended?M.emit("error",new Error("stream.push() after EOF")):(fe.reading=!1,fe.decoder&&!J?(I=fe.decoder.write(I),fe.objectMode||I.length!==0?R(M,fe,I,!1):G(M,fe)):R(M,fe,I,!1))):Y||(fe.reading=!1)),function(be){return!be.ended&&(be.needReadable||be.length<be.highWaterMark||be.length===0)}(fe)}function R(M,I,J,Y){I.flowing&&I.length===0&&!I.sync?(M.emit("data",J),M.read(0)):(I.length+=I.objectMode?1:J.length,Y?I.buffer.unshift(J):I.buffer.push(J),I.needReadable&&K(M)),G(M,I)}Object.defineProperty(j.prototype,"destroyed",{get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(M){this._readableState&&(this._readableState.destroyed=M)}}),j.prototype.destroy=O.destroy,j.prototype._undestroy=O.undestroy,j.prototype._destroy=function(M,I){this.push(null),I(M)},j.prototype.push=function(M,I){var J,Y=this._readableState;return Y.objectMode?J=!0:typeof M=="string"&&((I=I||Y.defaultEncoding)!==Y.encoding&&(M=h.from(M,I),I=""),J=!0),P(this,M,I,!1,J)},j.prototype.unshift=function(M){return P(this,M,null,!0,!1)},j.prototype.isPaused=function(){return this._readableState.flowing===!1},j.prototype.setEncoding=function(M){return w||(w=n(26).StringDecoder),this._readableState.decoder=new w(M),this._readableState.encoding=M,this};var $=8388608;function q(M,I){return M<=0||I.length===0&&I.ended?0:I.objectMode?1:M!=M?I.flowing&&I.length?I.buffer.head.data.length:I.length:(M>I.highWaterMark&&(I.highWaterMark=function(J){return J>=$?J=$:(J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++),J}(M)),M<=I.length?M:I.ended?I.length:(I.needReadable=!0,0))}function K(M){var I=M._readableState;I.needReadable=!1,I.emittedReadable||(x("emitReadable",I.flowing),I.emittedReadable=!0,I.sync?a.nextTick(H,M):H(M))}function H(M){x("emit readable"),M.emit("readable"),ee(M)}function G(M,I){I.readingMore||(I.readingMore=!0,a.nextTick(te,M,I))}function te(M,I){for(var J=I.length;!I.reading&&!I.flowing&&!I.ended&&I.length<I.highWaterMark&&(x("maybeReadMore read 0"),M.read(0),J!==I.length);)J=I.length;I.readingMore=!1}function ie(M){x("readable nexttick read 0"),M.read(0)}function X(M,I){I.reading||(x("resume read 0"),M.read(0)),I.resumeScheduled=!1,I.awaitDrain=0,M.emit("resume"),ee(M),I.flowing&&!I.reading&&M.read(0)}function ee(M){var I=M._readableState;for(x("flow",I.flowing);I.flowing&&M.read()!==null;);}function W(M,I){return I.length===0?null:(I.objectMode?J=I.buffer.shift():!M||M>=I.length?(J=I.decoder?I.buffer.join(""):I.buffer.length===1?I.buffer.head.data:I.buffer.concat(I.length),I.buffer.clear()):J=function(Y,ae,de){var fe;return Y<ae.head.data.length?(fe=ae.head.data.slice(0,Y),ae.head.data=ae.head.data.slice(Y)):fe=Y===ae.head.data.length?ae.shift():de?function(be,z){var V=z.head,ne=1,ce=V.data;for(be-=ce.length;V=V.next;){var Q=V.data,le=be>Q.length?Q.length:be;if(le===Q.length?ce+=Q:ce+=Q.slice(0,be),(be-=le)==0){le===Q.length?(++ne,V.next?z.head=V.next:z.head=z.tail=null):(z.head=V,V.data=Q.slice(le));break}++ne}return z.length-=ne,ce}(Y,ae):function(be,z){var V=h.allocUnsafe(be),ne=z.head,ce=1;for(ne.data.copy(V),be-=ne.data.length;ne=ne.next;){var Q=ne.data,le=be>Q.length?Q.length:be;if(Q.copy(V,V.length-be,0,le),(be-=le)==0){le===Q.length?(++ce,ne.next?z.head=ne.next:z.head=z.tail=null):(z.head=ne,ne.data=Q.slice(le));break}++ce}return z.length-=ce,V}(Y,ae),fe}(M,I.buffer,I.decoder),J);var J}function B(M){var I=M._readableState;if(I.length>0)throw new Error('"endReadable()" called on non-empty stream');I.endEmitted||(I.ended=!0,a.nextTick(U,I,M))}function U(M,I){M.endEmitted||M.length!==0||(M.endEmitted=!0,I.readable=!1,I.emit("end"))}function F(M,I){for(var J=0,Y=M.length;J<Y;J++)if(M[J]===I)return J;return-1}j.prototype.read=function(M){x("read",M),M=parseInt(M,10);var I=this._readableState,J=M;if(M!==0&&(I.emittedReadable=!1),M===0&&I.needReadable&&(I.length>=I.highWaterMark||I.ended))return x("read: emitReadable",I.length,I.ended),I.length===0&&I.ended?B(this):K(this),null;if((M=q(M,I))===0&&I.ended)return I.length===0&&B(this),null;var Y,ae=I.needReadable;return x("need readable",ae),(I.length===0||I.length-M<I.highWaterMark)&&x("length less than watermark",ae=!0),I.ended||I.reading?x("reading or ended",ae=!1):ae&&(x("do read"),I.reading=!0,I.sync=!0,I.length===0&&(I.needReadable=!0),this._read(I.highWaterMark),I.sync=!1,I.reading||(M=q(J,I))),(Y=M>0?W(M,I):null)===null?(I.needReadable=!0,M=0):I.length-=M,I.length===0&&(I.ended||(I.needReadable=!0),J!==M&&I.ended&&B(this)),Y!==null&&this.emit("data",Y),Y},j.prototype._read=function(M){this.emit("error",new Error("_read() is not implemented"))},j.prototype.pipe=function(M,I){var J=this,Y=this._readableState;switch(Y.pipesCount){case 0:Y.pipes=M;break;case 1:Y.pipes=[Y.pipes,M];break;default:Y.pipes.push(M)}Y.pipesCount+=1,x("pipe count=%d opts=%j",Y.pipesCount,I);var ae=I&&I.end===!1||M===i.stdout||M===i.stderr?le:de;function de(){x("onend"),M.end()}Y.endEmitted?a.nextTick(ae):J.once("end",ae),M.on("unpipe",function pe(ye,me){x("onunpipe"),ye===J&&me&&me.hasUnpiped===!1&&(me.hasUnpiped=!0,x("cleanup"),M.removeListener("close",ce),M.removeListener("finish",Q),M.removeListener("drain",fe),M.removeListener("error",ne),M.removeListener("unpipe",pe),J.removeListener("end",de),J.removeListener("end",le),J.removeListener("data",V),be=!0,!Y.awaitDrain||M._writableState&&!M._writableState.needDrain||fe())});var fe=function(pe){return function(){var ye=pe._readableState;x("pipeOnDrain",ye.awaitDrain),ye.awaitDrain&&ye.awaitDrain--,ye.awaitDrain===0&&f(pe,"data")&&(ye.flowing=!0,ee(pe))}}(J);M.on("drain",fe);var be=!1,z=!1;function V(pe){x("ondata"),z=!1,M.write(pe)!==!1||z||((Y.pipesCount===1&&Y.pipes===M||Y.pipesCount>1&&F(Y.pipes,M)!==-1)&&!be&&(x("false write response, pause",J._readableState.awaitDrain),J._readableState.awaitDrain++,z=!0),J.pause())}function ne(pe){x("onerror",pe),le(),M.removeListener("error",ne),f(M,"error")===0&&M.emit("error",pe)}function ce(){M.removeListener("finish",Q),le()}function Q(){x("onfinish"),M.removeListener("close",ce),le()}function le(){x("unpipe"),J.unpipe(M)}return J.on("data",V),function(pe,ye,me){if(typeof pe.prependListener=="function")return pe.prependListener(ye,me);pe._events&&pe._events[ye]?l(pe._events[ye])?pe._events[ye].unshift(me):pe._events[ye]=[me,pe._events[ye]]:pe.on(ye,me)}(M,"error",ne),M.once("close",ce),M.once("finish",Q),M.emit("pipe",J),Y.flowing||(x("pipe resume"),J.resume()),M},j.prototype.unpipe=function(M){var I=this._readableState,J={hasUnpiped:!1};if(I.pipesCount===0)return this;if(I.pipesCount===1)return M&&M!==I.pipes?this:(M||(M=I.pipes),I.pipes=null,I.pipesCount=0,I.flowing=!1,M&&M.emit("unpipe",this,J),this);if(!M){var Y=I.pipes,ae=I.pipesCount;I.pipes=null,I.pipesCount=0,I.flowing=!1;for(var de=0;de<ae;de++)Y[de].emit("unpipe",this,J);return this}var fe=F(I.pipes,M);return fe===-1?this:(I.pipes.splice(fe,1),I.pipesCount-=1,I.pipesCount===1&&(I.pipes=I.pipes[0]),M.emit("unpipe",this,J),this)},j.prototype.on=function(M,I){var J=u.prototype.on.call(this,M,I);if(M==="data")this._readableState.flowing!==!1&&this.resume();else if(M==="readable"){var Y=this._readableState;Y.endEmitted||Y.readableListening||(Y.readableListening=Y.needReadable=!0,Y.emittedReadable=!1,Y.reading?Y.length&&K(this):a.nextTick(ie,this))}return J},j.prototype.addListener=j.prototype.on,j.prototype.resume=function(){var M=this._readableState;return M.flowing||(x("resume"),M.flowing=!0,function(I,J){J.resumeScheduled||(J.resumeScheduled=!0,a.nextTick(X,I,J))}(this,M)),this},j.prototype.pause=function(){return x("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(x("pause"),this._readableState.flowing=!1,this.emit("pause")),this},j.prototype.wrap=function(M){var I=this,J=this._readableState,Y=!1;for(var ae in M.on("end",function(){if(x("wrapped end"),J.decoder&&!J.ended){var fe=J.decoder.end();fe&&fe.length&&I.push(fe)}I.push(null)}),M.on("data",function(fe){x("wrapped data"),J.decoder&&(fe=J.decoder.write(fe)),(!J.objectMode||fe!=null)&&(J.objectMode||fe&&fe.length)&&(I.push(fe)||(Y=!0,M.pause()))}),M)this[ae]===void 0&&typeof M[ae]=="function"&&(this[ae]=function(fe){return function(){return M[fe].apply(M,arguments)}}(ae));for(var de=0;de<C.length;de++)M.on(C[de],this.emit.bind(this,C[de]));return this._read=function(fe){x("wrapped _read",fe),Y&&(Y=!1,M.resume())},this},Object.defineProperty(j.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),j._fromList=W}).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(a,o){a.emit("error",o)}e.exports={destroy:function(a,o){var l=this,f=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return f||u?(o?o(a):!a||this._writableState&&this._writableState.errorEmitted||r.nextTick(i,this,a),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(h){!o&&h?(r.nextTick(i,l,h),l._writableState&&(l._writableState.errorEmitted=!0)):o&&o(h)}),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(x){switch((x=""+x)&&x.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 a(x){var w;switch(this.encoding=function(S){var O=function(C){if(!C)return"utf8";for(var T;;)switch(C){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 C;default:if(T)return;C=(""+C).toLowerCase(),T=!0}}(S);if(typeof O!="string"&&(r.isEncoding===i||!i(S)))throw new Error("Unknown encoding: "+S);return O||S}(x),this.encoding){case"utf16le":this.text=f,this.end=u,w=4;break;case"utf8":this.fillLast=l,w=4;break;case"base64":this.text=h,this.end=m,w=3;break;default:return this.write=v,void(this.end=_)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(w)}function o(x){return x<=127?0:x>>5==6?2:x>>4==14?3:x>>3==30?4:x>>6==2?-1:-2}function l(x){var w=this.lastTotal-this.lastNeed,S=function(O,C,T){if((192&C[0])!=128)return O.lastNeed=0,"<22>";if(O.lastNeed>1&&C.length>1){if((192&C[1])!=128)return O.lastNeed=1,"<22>";if(O.lastNeed>2&&C.length>2&&(192&C[2])!=128)return O.lastNeed=2,"<22>"}}(this,x);return S!==void 0?S:this.lastNeed<=x.length?(x.copy(this.lastChar,w,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(x.copy(this.lastChar,w,0,x.length),void(this.lastNeed-=x.length))}function f(x,w){if((x.length-w)%2==0){var S=x.toString("utf16le",w);if(S){var O=S.charCodeAt(S.length-1);if(O>=55296&&O<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1],S.slice(0,-1)}return S}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=x[x.length-1],x.toString("utf16le",w,x.length-1)}function u(x){var w=x&&x.length?this.write(x):"";if(this.lastNeed){var S=this.lastTotal-this.lastNeed;return w+this.lastChar.toString("utf16le",0,S)}return w}function h(x,w){var S=(x.length-w)%3;return S===0?x.toString("base64",w):(this.lastNeed=3-S,this.lastTotal=3,S===1?this.lastChar[0]=x[x.length-1]:(this.lastChar[0]=x[x.length-2],this.lastChar[1]=x[x.length-1]),x.toString("base64",w,x.length-S))}function m(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+this.lastChar.toString("base64",0,3-this.lastNeed):w}function v(x){return x.toString(this.encoding)}function _(x){return x&&x.length?this.write(x):""}t.StringDecoder=a,a.prototype.write=function(x){if(x.length===0)return"";var w,S;if(this.lastNeed){if((w=this.fillLast(x))===void 0)return"";S=this.lastNeed,this.lastNeed=0}else S=0;return S<x.length?w?w+this.text(x,S):this.text(x,S):w||""},a.prototype.end=function(x){var w=x&&x.length?this.write(x):"";return this.lastNeed?w+"<22>":w},a.prototype.text=function(x,w){var S=function(C,T,j){var P=T.length-1;if(P<j)return 0;var R=o(T[P]);return R>=0?(R>0&&(C.lastNeed=R-1),R):--P<j||R===-2?0:(R=o(T[P]))>=0?(R>0&&(C.lastNeed=R-2),R):--P<j||R===-2?0:(R=o(T[P]))>=0?(R>0&&(R===2?R=0:C.lastNeed=R-3),R):0}(this,x,w);if(!this.lastNeed)return x.toString("utf8",w);this.lastTotal=S;var O=x.length-(S-this.lastNeed);return x.copy(this.lastChar,0,O),x.toString("utf8",w,O)},a.prototype.fillLast=function(x){if(this.lastNeed<=x.length)return x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);x.copy(this.lastChar,this.lastTotal-this.lastNeed,0,x.length),this.lastNeed-=x.length}},function(e,t,n){e.exports=a;var r=n(1),i=n(5);function a(f){if(!(this instanceof a))return new a(f);r.call(this,f),this._transformState={afterTransform:(function(u,h){var m=this._transformState;m.transforming=!1;var v=m.writecb;if(!v)return this.emit("error",new Error("write callback called multiple times"));m.writechunk=null,m.writecb=null,h!=null&&this.push(h),v(u);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,f&&(typeof f.transform=="function"&&(this._transform=f.transform),typeof f.flush=="function"&&(this._flush=f.flush)),this.on("prefinish",o)}function o(){var f=this;typeof this._flush=="function"?this._flush(function(u,h){l(f,u,h)}):l(this,null,null)}function l(f,u,h){if(u)return f.emit("error",u);if(h!=null&&f.push(h),f._writableState.length)throw new Error("Calling transform done when ws.length != 0");if(f._transformState.transforming)throw new Error("Calling transform done when still transforming");return f.push(null)}i.inherits=n(2),i.inherits(a,r),a.prototype.push=function(f,u){return this._transformState.needTransform=!1,r.prototype.push.call(this,f,u)},a.prototype._transform=function(f,u,h){throw new Error("_transform() is not implemented")},a.prototype._write=function(f,u,h){var m=this._transformState;if(m.writecb=h,m.writechunk=f,m.writeencoding=u,!m.transforming){var v=this._readableState;(m.needTransform||v.needReadable||v.length<v.highWaterMark)&&this._read(v.highWaterMark)}},a.prototype._read=function(f){var u=this._transformState;u.writechunk!==null&&u.writecb&&!u.transforming?(u.transforming=!0,this._transform(u.writechunk,u.writeencoding,u.afterTransform)):u.needTransform=!0},a.prototype._destroy=function(f,u){var h=this;r.prototype._destroy.call(this,f,function(m){u(m),h.emit("close")})}},function(e,t,n){(function(r){Object.defineProperty(t,"__esModule",{value:!0}),t.bufFromString=function(i){var a=r.byteLength(i),o=r.allocUnsafe?r.allocUnsafe(a):new r(a);return o.write(i),o},t.emptyBuffer=function(){return r.allocUnsafe?r.allocUnsafe(0):new r(0)},t.filterArray=function(i,a){for(var o=[],l=0;l<i.length;l++)a.indexOf(l)>-1&&o.push(i[l]);return o},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 a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,l){o.__proto__=l}||function(o,l){for(var f in l)l.hasOwnProperty(f)&&(o[f]=l[f])};return function(o,l){function f(){this.constructor=o}a(o,l),o.prototype=l===null?Object.create(l):(f.prototype=l.prototype,new f)}}();Object.defineProperty(t,"__esModule",{value:!0});var i=function(a){function o(l,f,u){var h=a.call(this,"Error: "+l+". JSON Line number: "+f+(u?" near: "+u:""))||this;return h.err=l,h.line=f,h.extra=u,h.name="CSV Parse Error",h}return r(o,a),o.column_mismatched=function(l,f){return new o("column_mismatched",l,f)},o.unclosed_quote=function(l,f){return new o("unclosed_quote",l,f)},o.fromJSON=function(l){return new o(l.err,l.line,l.extra)},o.prototype.toJSON=function(){return{err:this.err,line:this.line,extra:this.extra}},o}(Error);t.default=i},function(e,t,n){var r=n(18),i=n(68),a=n(69),o=r?r.toStringTag:void 0;e.exports=function(l){return l==null?l===void 0?"[object Undefined]":"[object Null]":o&&o in Object(l)?i(l):a(l)}},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(a,o){return new r.Converter(a,o)};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(x,w){x.__proto__=w}||function(x,w){for(var S in w)w.hasOwnProperty(S)&&(x[S]=w[S])};return function(x,w){function S(){this.constructor=x}_(x,w),x.prototype=w===null?Object.create(w):(S.prototype=w.prototype,new S)}}(),a=this&&this.__importDefault||function(_){return _&&_.__esModule?_:{default:_}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(36),l=n(50),f=n(51),u=a(n(15)),h=n(52),m=n(105),v=function(_){function x(w,S){S===void 0&&(S={});var O=_.call(this,S)||this;return O.options=S,O.params=l.mergeParams(w),O.runtime=f.initParseRuntime(O),O.result=new m.Result(O),O.processor=new h.ProcessorLocal(O),O.once("error",function(C){r(function(){O.result.processError(C),O.emit("done",C)})}),O.once("done",function(){O.processor.destroy()}),O}return i(x,_),x.prototype.preRawData=function(w){return this.runtime.preRawDataHook=w,this},x.prototype.preFileLine=function(w){return this.runtime.preFileLineHook=w,this},x.prototype.subscribe=function(w,S,O){return this.parseRuntime.subscribe={onNext:w,onError:S,onCompleted:O},this},x.prototype.fromFile=function(w,S){var O=this,C=n(!function(){var T=new Error("Cannot find module 'fs'");throw T.code="MODULE_NOT_FOUND",T}());return C.exists(w,function(T){T?C.createReadStream(w,S).pipe(O):O.emit("error",new Error("File does not exist. Check to make sure the file path to your csv is correct."))}),this},x.prototype.fromStream=function(w){return w.pipe(this),this},x.prototype.fromString=function(w){w.toString();var S=new o.Readable,O=0;return S._read=function(C){if(O>=w.length)this.push(null);else{var T=w.substr(O,C);this.push(T),O+=C}},this.fromStream(S)},x.prototype.then=function(w,S){var O=this;return new u.default(function(C,T){O.parseRuntime.then={onfulfilled:function(j){C(w?w(j):j)},onrejected:function(j){S?C(S(j)):T(j)}}})},Object.defineProperty(x.prototype,"parseParam",{get:function(){return this.params},enumerable:!0,configurable:!0}),Object.defineProperty(x.prototype,"parseRuntime",{get:function(){return this.runtime},enumerable:!0,configurable:!0}),x.prototype._transform=function(w,S,O){var C=this;this.processor.process(w).then(function(T){if(T.length>0)return C.runtime.started=!0,C.result.processResult(T)}).then(function(){C.emit("drained"),O()},function(T){C.runtime.hasError=!0,C.runtime.error=T,C.emit("error",T),O()})},x.prototype._flush=function(w){var S=this;this.processor.flush().then(function(O){if(O.length>0)return S.result.processResult(O)}).then(function(){S.processEnd(w)},function(O){S.emit("error",O),w()})},x.prototype.processEnd=function(w){this.result.endProcess(),this.emit("done"),w()},Object.defineProperty(x.prototype,"parsedLineNumber",{get:function(){return this.runtime.parsedLineNumber},enumerable:!0,configurable:!0}),x}(o.Transform);t.Converter=v}).call(this,n(11).setImmediate)},function(e,t,n){(function(r,i){(function(a,o){if(!a.setImmediate){var l,f=1,u={},h=!1,m=a.document,v=Object.getPrototypeOf&&Object.getPrototypeOf(a);v=v&&v.setTimeout?v:a,{}.toString.call(a.process)==="[object process]"?l=function(w){i.nextTick(function(){x(w)})}:function(){if(a.postMessage&&!a.importScripts){var w=!0,S=a.onmessage;return a.onmessage=function(){w=!1},a.postMessage("","*"),a.onmessage=S,w}}()?function(){var w="setImmediate$"+Math.random()+"$",S=function(O){O.source===a&&typeof O.data=="string"&&O.data.indexOf(w)===0&&x(+O.data.slice(w.length))};a.addEventListener?a.addEventListener("message",S,!1):a.attachEvent("onmessage",S),l=function(O){a.postMessage(w+O,"*")}}():a.MessageChannel?function(){var w=new MessageChannel;w.port1.onmessage=function(S){x(S.data)},l=function(S){w.port2.postMessage(S)}}():m&&"onreadystatechange"in m.createElement("script")?function(){var w=m.documentElement;l=function(S){var O=m.createElement("script");O.onreadystatechange=function(){x(S),O.onreadystatechange=null,w.removeChild(O),O=null},w.appendChild(O)}}():l=function(w){setTimeout(x,0,w)},v.setImmediate=function(w){typeof w!="function"&&(w=new Function(""+w));for(var S=new Array(arguments.length-1),O=0;O<S.length;O++)S[O]=arguments[O+1];var C={callback:w,args:S};return u[f]=C,l(f),f++},v.clearImmediate=_}function _(w){delete u[w]}function x(w){if(h)setTimeout(x,0,w);else{var S=u[w];if(S){h=!0;try{(function(O){var C=O.callback,T=O.args;switch(T.length){case 0:C();break;case 1:C(T[0]);break;case 2:C(T[0],T[1]);break;case 3:C(T[0],T[1],T[2]);break;default:C.apply(o,T)}})(S)}finally{_(w),h=!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(a,o){var l=this;function f(w){a.writable&&a.write(w)===!1&&l.pause&&l.pause()}function u(){l.readable&&l.resume&&l.resume()}l.on("data",f),a.on("drain",u),a._isStdio||o&&o.end===!1||(l.on("end",m),l.on("close",v));var h=!1;function m(){h||(h=!0,a.end())}function v(){h||(h=!0,typeof a.destroy=="function"&&a.destroy())}function _(w){if(x(),r.listenerCount(this,"error")===0)throw w}function x(){l.removeListener("data",f),a.removeListener("drain",u),l.removeListener("end",m),l.removeListener("close",v),l.removeListener("error",_),a.removeListener("error",_),l.removeListener("end",x),l.removeListener("close",x),a.removeListener("close",x)}return l.on("error",_),a.on("error",_),l.on("end",x),l.on("close",x),a.on("close",x),a.emit("pipe",l),a}},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(v){var _=u(v),x=_[0],w=_[1];return 3*(x+w)/4-w},t.toByteArray=function(v){for(var _,x=u(v),w=x[0],S=x[1],O=new a(3*(w+S)/4-S),C=0,T=S>0?w-4:w,j=0;j<T;j+=4)_=i[v.charCodeAt(j)]<<18|i[v.charCodeAt(j+1)]<<12|i[v.charCodeAt(j+2)]<<6|i[v.charCodeAt(j+3)],O[C++]=_>>16&255,O[C++]=_>>8&255,O[C++]=255&_;return S===2&&(_=i[v.charCodeAt(j)]<<2|i[v.charCodeAt(j+1)]>>4,O[C++]=255&_),S===1&&(_=i[v.charCodeAt(j)]<<10|i[v.charCodeAt(j+1)]<<4|i[v.charCodeAt(j+2)]>>2,O[C++]=_>>8&255,O[C++]=255&_),O},t.fromByteArray=function(v){for(var _,x=v.length,w=x%3,S=[],O=0,C=x-w;O<C;O+=16383)S.push(m(v,O,O+16383>C?C:O+16383));return w===1?(_=v[x-1],S.push(r[_>>2]+r[_<<4&63]+"==")):w===2&&(_=(v[x-2]<<8)+v[x-1],S.push(r[_>>10]+r[_>>4&63]+r[_<<2&63]+"=")),S.join("")};for(var r=[],i=[],a=typeof Uint8Array<"u"?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,f=o.length;l<f;++l)r[l]=o[l],i[o.charCodeAt(l)]=l;function u(v){var _=v.length;if(_%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=v.indexOf("=");return x===-1&&(x=_),[x,x===_?0:4-x%4]}function h(v){return r[v>>18&63]+r[v>>12&63]+r[v>>6&63]+r[63&v]}function m(v,_,x){for(var w,S=[],O=_;O<x;O+=3)w=(v[O]<<16&16711680)+(v[O+1]<<8&65280)+(255&v[O+2]),S.push(h(w));return S.join("")}i[45]=62,i[95]=63},function(e,t){t.read=function(n,r,i,a,o){var l,f,u=8*o-a-1,h=(1<<u)-1,m=h>>1,v=-7,_=i?o-1:0,x=i?-1:1,w=n[r+_];for(_+=x,l=w&(1<<-v)-1,w>>=-v,v+=u;v>0;l=256*l+n[r+_],_+=x,v-=8);for(f=l&(1<<-v)-1,l>>=-v,v+=a;v>0;f=256*f+n[r+_],_+=x,v-=8);if(l===0)l=1-m;else{if(l===h)return f?NaN:1/0*(w?-1:1);f+=Math.pow(2,a),l-=m}return(w?-1:1)*f*Math.pow(2,l-a)},t.write=function(n,r,i,a,o,l){var f,u,h,m=8*l-o-1,v=(1<<m)-1,_=v>>1,x=o===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=a?0:l-1,S=a?1:-1,O=r<0||r===0&&1/r<0?1:0;for(r=Math.abs(r),isNaN(r)||r===1/0?(u=isNaN(r)?1:0,f=v):(f=Math.floor(Math.log(r)/Math.LN2),r*(h=Math.pow(2,-f))<1&&(f--,h*=2),(r+=f+_>=1?x/h:x*Math.pow(2,1-_))*h>=2&&(f++,h/=2),f+_>=v?(u=0,f=v):f+_>=1?(u=(r*h-1)*Math.pow(2,o),f+=_):(u=r*Math.pow(2,_-1)*Math.pow(2,o),f=0));o>=8;n[i+w]=255&u,w+=S,u/=256,o-=8);for(f=f<<o|u,m+=o;m>0;n[i+w]=255&f,w+=S,f/=256,m-=8);n[i+w-S]|=128*O}},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 a(o,l,f){o.copy(l,f)}e.exports=function(){function o(){(function(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")})(this,o),this.head=null,this.tail=null,this.length=0}return o.prototype.push=function(l){var f={data:l,next:null};this.length>0?this.tail.next=f:this.head=f,this.tail=f,++this.length},o.prototype.unshift=function(l){var f={data:l,next:this.head};this.length===0&&(this.tail=f),this.head=f,++this.length},o.prototype.shift=function(){if(this.length!==0){var l=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,l}},o.prototype.clear=function(){this.head=this.tail=null,this.length=0},o.prototype.join=function(l){if(this.length===0)return"";for(var f=this.head,u=""+f.data;f=f.next;)u+=l+f.data;return u},o.prototype.concat=function(l){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;for(var f=r.allocUnsafe(l>>>0),u=this.head,h=0;u;)a(u.data,f,h),h+=u.data.length,u=u.next;return f},o}(),i&&i.inspect&&i.inspect.custom&&(e.exports.prototype[i.inspect.custom]=function(){var o=i.inspect({length:this.length});return this.constructor.name+" "+o})},function(e,t){},function(e,t,n){(function(r){function i(a){try{if(!r.localStorage)return!1}catch{return!1}var o=r.localStorage[a];return o!=null&&String(o).toLowerCase()==="true"}e.exports=function(a,o){if(i("noDeprecation"))return a;var l=!1;return function(){if(!l){if(i("throwDeprecation"))throw new Error(o);i("traceDeprecation")?console.trace(o):console.warn(o),l=!0}return a.apply(this,arguments)}}}).call(this,n(0))},function(e,t,n){e.exports=a;var r=n(27),i=n(5);function a(o){if(!(this instanceof a))return new a(o);r.call(this,o)}i.inherits=n(2),i.inherits(a,r),a.prototype._transform=function(o,l,f){f(null,o)}},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 a in r||(r={}),r)r.hasOwnProperty(a)&&(Array.isArray(r[a])?i[a]=[].concat(r[a]):i[a]=r[a]);return i}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.initParseRuntime=function(r){var i=r.parseParam,a={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&&(a.needProcessIgnoreColumn=!0),i.includeColumns&&(a.needProcessIncludeColumn=!0),a}},function(e,t,n){(function(r){var i=this&&this.__extends||function(){var S=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(O,C){O.__proto__=C}||function(O,C){for(var T in C)C.hasOwnProperty(T)&&(O[T]=C[T])};return function(O,C){function T(){this.constructor=O}S(O,C),O.prototype=C===null?Object.create(C):(T.prototype=C.prototype,new T)}}(),a=this&&this.__importDefault||function(S){return S&&S.__esModule?S:{default:S}};Object.defineProperty(t,"__esModule",{value:!0});var o=n(53),l=a(n(15)),f=n(54),u=a(n(16)),h=n(57),m=n(28),v=n(58),_=a(n(59)),x=a(n(29)),w=function(S){function O(){var C=S!==null&&S.apply(this,arguments)||this;return C.rowSplit=new v.RowSplit(C.converter),C.eolEmitted=!1,C._needEmitEol=void 0,C.headEmitted=!1,C._needEmitHead=void 0,C}return i(O,S),O.prototype.flush=function(){var C=this;if(this.runtime.csvLineBuffer&&this.runtime.csvLineBuffer.length>0){var T=this.runtime.csvLineBuffer;return this.runtime.csvLineBuffer=void 0,this.process(T,!0).then(function(j){return C.runtime.csvLineBuffer&&C.runtime.csvLineBuffer.length>0?l.default.reject(x.default.unclosed_quote(C.runtime.parsedLineNumber,C.runtime.csvLineBuffer.toString())):l.default.resolve(j)})}return l.default.resolve([])},O.prototype.destroy=function(){return l.default.resolve()},Object.defineProperty(O.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(O.prototype,"needEmitHead",{get:function(){return this._needEmitHead===void 0&&(this._needEmitHead=this.converter.listeners("header").length>0),this._needEmitHead},enumerable:!0,configurable:!0}),O.prototype.process=function(C,T){var j,P=this;return T===void 0&&(T=!1),j=T?C.toString():f.prepareData(C,this.converter.parseRuntime),l.default.resolve().then(function(){return P.runtime.preRawDataHook?P.runtime.preRawDataHook(j):j}).then(function(R){return R&&R.length>0?P.processCSV(R,T):l.default.resolve([])})},O.prototype.processCSV=function(C,T){var j=this,P=this.params,R=this.runtime;R.eol||u.default(C,R),this.needEmitEol&&!this.eolEmitted&&R.eol&&(this.converter.emit("eol",R.eol),this.eolEmitted=!0),P.ignoreEmpty&&!R.started&&(C=m.trimLeft(C));var $=h.stringToLines(C,R);return T?($.lines.push($.partial),$.partial=""):this.prependLeftBuf(m.bufFromString($.partial)),$.lines.length>0?(R.preFileLineHook?this.runPreLineHook($.lines):l.default.resolve($.lines)).then(function(q){return R.started||j.runtime.headers?j.processCSVBody(q):j.processDataWithHead(q)}):l.default.resolve([])},O.prototype.processDataWithHead=function(C){if(this.params.noheader)this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=[];else{for(var T="",j=[];C.length;){var P=T+C.shift(),R=this.rowSplit.parse(P);if(R.closed){j=R.cells,T="";break}T=P+u.default(P,this.runtime)}if(this.prependLeftBuf(m.bufFromString(T)),j.length===0)return[];this.params.headers?this.runtime.headers=this.params.headers:this.runtime.headers=j}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(C)},O.prototype.filterHeader=function(){if(this.runtime.selectedColumns=[],this.runtime.headers){for(var C=this.runtime.headers,T=0;T<C.length;T++)if(this.params.ignoreColumns)if(this.params.ignoreColumns.test(C[T])){if(!this.params.includeColumns||!this.params.includeColumns.test(C[T]))continue;this.runtime.selectedColumns.push(T)}else this.runtime.selectedColumns.push(T);else this.params.includeColumns?this.params.includeColumns.test(C[T])&&this.runtime.selectedColumns.push(T):this.runtime.selectedColumns.push(T);this.runtime.headers=m.filterArray(this.runtime.headers,this.runtime.selectedColumns)}},O.prototype.processCSVBody=function(C){if(this.params.output==="line")return C;var T=this.rowSplit.parseMultiLines(C);return this.prependLeftBuf(m.bufFromString(T.partial)),this.params.output==="csv"?T.rowsCells:_.default(T.rowsCells,this.converter)},O.prototype.prependLeftBuf=function(C){C&&(this.runtime.csvLineBuffer?this.runtime.csvLineBuffer=r.concat([C,this.runtime.csvLineBuffer]):this.runtime.csvLineBuffer=C)},O.prototype.runPreLineHook=function(C){var T=this;return new l.default(function(j,P){(function R($,q,K,H){if(K>=$.length)H();else if(q.preFileLineHook){var G=$[K],te=q.preFileLineHook(G,q.parsedLineNumber+K);if(K++,te&&te.then)te.then(function(ie){$[K-1]=ie,R($,q,K,H)});else{for($[K-1]=te;K<$.length;)$[K]=q.preFileLineHook($[K],q.parsedLineNumber+K),K++;H()}}else H()})(C,T.runtime,0,function(R){R?P(R):j(C)})})},O}(o.Processor);t.ProcessorLocal=w}).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(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n(55));t.prepareData=function(o,l){var f=function(h,m){return m.csvLineBuffer&&m.csvLineBuffer.length>0?r.concat([m.csvLineBuffer,h]):h}(o,l);l.csvLineBuffer=void 0;var u=function(h,m){var v=h.length-1;if((128&h[v])!=0){for(;(192&h[v])==128;)v--;v--}return v!=h.length-1?(m.csvLineBuffer=h.slice(v+1),h.slice(0,v+1)):h}(f,l).toString("utf8");return l.started===!1?a.default(u):u}}).call(this,n(3).Buffer)},function(e,t,n){(function(r){var i=n(56);e.exports=function(a){return typeof a=="string"&&a.charCodeAt(0)===65279?a.slice(1):r.isBuffer(a)&&i(a)&&a[0]===239&&a[1]===187&&a[2]===191?a.slice(3):a}}).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(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.stringToLines=function(a,o){var l=i.default(a,o),f=a.split(l);return{lines:f,partial:f.pop()||""}}},function(e,t,n){var r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16)),a=n(28),o=[",","|"," ",";",":"],l=function(){function f(u){this.conv=u,this.cachedRegExp={},this.delimiterEmitted=!1,this._needEmitDelimiter=void 0,this.quote=u.parseParam.quote,this.trim=u.parseParam.trim,this.escape=u.parseParam.escape}return Object.defineProperty(f.prototype,"needEmitDelimiter",{get:function(){return this._needEmitDelimiter===void 0&&(this._needEmitDelimiter=this.conv.listeners("delimiter").length>0),this._needEmitDelimiter},enumerable:!0,configurable:!0}),f.prototype.parse=function(u){if(u.length===0||this.conv.parseParam.ignoreEmpty&&u.trim().length===0)return{cells:[],closed:!0};var h=this.quote,m=this.trim;this.escape,(this.conv.parseRuntime.delimiter instanceof Array||this.conv.parseRuntime.delimiter.toLowerCase()==="auto")&&(this.conv.parseRuntime.delimiter=this.getDelimiter(u)),this.needEmitDelimiter&&!this.delimiterEmitted&&(this.conv.emit("delimiter",this.conv.parseRuntime.delimiter),this.delimiterEmitted=!0);var v=this.conv.parseRuntime.delimiter,_=u.split(v);if(h==="off"){if(m)for(var x=0;x<_.length;x++)_[x]=_[x].trim();return{cells:_,closed:!0}}return this.toCSVRow(_,m,h,v)},f.prototype.toCSVRow=function(u,h,m,v){for(var _=[],x=!1,w="",S=0,O=u.length;S<O;S++){var C=u[S];!x&&h&&(C=a.trimLeft(C));var T=C.length;if(x)this.isQuoteClose(C)?(x=!1,w+=v+(C=C.substr(0,T-1)),w=this.escapeQuote(w),h&&(w=a.trimRight(w)),_.push(w),w=""):w+=v+C;else{if(T===2&&C===this.quote+this.quote){_.push("");continue}if(this.isQuoteOpen(C)){if(C=C.substr(1),this.isQuoteClose(C)){C=C.substring(0,C.lastIndexOf(m)),C=this.escapeQuote(C),_.push(C);continue}if(C.indexOf(m)!==-1){for(var j=0,P="",R=0,$=C;R<$.length;R++){var q=$[R];q===m&&P!==this.escape?(j++,P=""):P=q}if(j%2==1){h&&(C=a.trimRight(C)),_.push(m+C);continue}x=!0,w+=C;continue}x=!0,w+=C;continue}h&&(C=a.trimRight(C)),_.push(C)}}return{cells:_,closed:!x}},f.prototype.getDelimiter=function(u){var h;if(this.conv.parseParam.delimiter==="auto")h=o;else{if(!(this.conv.parseParam.delimiter instanceof Array))return this.conv.parseParam.delimiter;h=this.conv.parseParam.delimiter}var m=0,v=",";return h.forEach(function(_){var x=u.split(_).length;x>m&&(v=_,m=x)}),v},f.prototype.isQuoteOpen=function(u){var h=this.quote,m=this.escape;return u[0]===h&&(u[1]!==h||u[1]===m&&(u[2]===h||u.length===2))},f.prototype.isQuoteClose=function(u){var h=this.quote,m=this.escape;this.conv.parseParam.trim&&(u=a.trimRight(u));for(var v=0,_=u.length-1;u[_]===h||u[_]===m;)_--,v++;return v%2!=0},f.prototype.escapeQuote=function(u){var h="es|"+this.quote+"|"+this.escape;this.cachedRegExp[h]===void 0&&(this.cachedRegExp[h]=new RegExp("\\"+this.escape+"\\"+this.quote,"g"));var m=this.cachedRegExp[h];return u.replace(m,this.quote)},f.prototype.parseMultiLines=function(u){for(var h=[],m="";u.length;){var v=m+u.shift(),_=this.parse(v);_.cells.length===0&&this.conv.parseParam.ignoreEmpty||(_.closed||this.conv.parseParam.alwaysSplitAtEOL?(this.conv.parseRuntime.selectedColumns?h.push(a.filterArray(_.cells,this.conv.parseRuntime.selectedColumns)):h.push(_.cells),m=""):m=v+(i.default(v,this.conv.parseRuntime)||`
`))}return{rowsCells:h,partial:m}},f}();t.RowSplit=l},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(29)),a=r(n(60)),o=/^[-+]?[0-9]*\.?[0-9]+([eE][-+]?[0-9]+)?$/;function l(O,C,T){if(C.parseParam.checkColumn&&C.parseRuntime.headers&&O.length!==C.parseRuntime.headers.length)throw i.default.column_mismatched(C.parseRuntime.parsedLineNumber+T);return function(j,P,R){for(var $=!1,q={},K=0,H=j.length;K<H;K++){var G=j[K];if(!R.parseParam.ignoreEmpty||G!==""){$=!0;var te=P[K];te&&te!==""||(te=P[K]="field"+(K+1));var ie=u(te,K,R);if(ie){var X=ie(G,te,q,j,K);X!==void 0&&h(q,te,X,R,K)}else R.parseParam.checkType&&(G=_(G,te,K,R)(G)),G!==void 0&&h(q,te,G,R,K)}}return $?q:null}(O,C.parseRuntime.headers||[],C)||null}t.default=function(O,C){for(var T=[],j=0,P=O.length;j<P;j++){var R=l(O[j],C,j);R&&T.push(R)}return T};var f={string:w,number:x,omit:function(){}};function u(O,C,T){if(T.parseRuntime.columnConv[C]!==void 0)return T.parseRuntime.columnConv[C];var j=T.parseParam.colParser[O];if(j===void 0)return T.parseRuntime.columnConv[C]=null;if(typeof j=="object"&&(j=j.cellParser||"string"),typeof j=="string"){j=j.trim().toLowerCase();var P=f[j];return T.parseRuntime.columnConv[C]=P||null}return T.parseRuntime.columnConv[C]=typeof j=="function"?j:null}function h(O,C,T,j,P){if(!j.parseRuntime.columnValueSetter[P])if(j.parseParam.flatKeys)j.parseRuntime.columnValueSetter[P]=m;else if(C.indexOf(".")>-1){for(var R=C.split("."),$=!0;R.length>0;)if(R.shift().length===0){$=!1;break}!$||j.parseParam.colParser[C]&&j.parseParam.colParser[C].flat?j.parseRuntime.columnValueSetter[P]=m:j.parseRuntime.columnValueSetter[P]=v}else j.parseRuntime.columnValueSetter[P]=m;j.parseParam.nullObject===!0&&T==="null"&&(T=null),j.parseRuntime.columnValueSetter[P](O,C,T)}function m(O,C,T){O[C]=T}function v(O,C,T){a.default(O,C,T)}function _(O,C,T,j){return j.parseRuntime.headerType[T]?j.parseRuntime.headerType[T]:C.indexOf("number#!")>-1?j.parseRuntime.headerType[T]=x:C.indexOf("string#!")>-1?j.parseRuntime.headerType[T]=w:j.parseParam.checkType?j.parseRuntime.headerType[T]=S:j.parseRuntime.headerType[T]=w}function x(O){var C=parseFloat(O);return isNaN(C)?O:C}function w(O){return O.toString()}function S(O){var C=O.trim();return C===""?w(O):o.test(C)?x(O):C.length===5&&C.toLowerCase()==="false"||C.length===4&&C.toLowerCase()==="true"?function(T){var j=T.trim();return j.length!==5||j.toLowerCase()!=="false"}(O):C[0]==="{"&&C[C.length-1]==="}"||C[0]==="["&&C[C.length-1]==="]"?function(T){try{return JSON.parse(T)}catch{return T}}(O):w(O)}},function(e,t,n){var r=n(61);e.exports=function(i,a,o){return i==null?i:r(i,a,o)}},function(e,t,n){var r=n(62),i=n(74),a=n(103),o=n(20),l=n(104);e.exports=function(f,u,h,m){if(!o(f))return f;for(var v=-1,_=(u=i(u,f)).length,x=_-1,w=f;w!=null&&++v<_;){var S=l(u[v]),O=h;if(v!=x){var C=w[S];(O=m?m(C,S,w):void 0)===void 0&&(O=o(C)?C:a(u[v+1])?[]:{})}r(w,S,O),w=w[S]}return f}},function(e,t,n){var r=n(63),i=n(31),a=Object.prototype.hasOwnProperty;e.exports=function(o,l,f){var u=o[l];a.call(o,l)&&i(u,f)&&(f!==void 0||l in o)||r(o,l,f)}},function(e,t,n){var r=n(64);e.exports=function(i,a,o){a=="__proto__"&&r?r(i,a,{configurable:!0,enumerable:!0,value:o,writable:!0}):i[a]=o}},function(e,t,n){var r=n(17),i=function(){try{var a=r(Object,"defineProperty");return a({},"",{}),a}catch{}}();e.exports=i},function(e,t,n){var r=n(66),i=n(70),a=n(20),o=n(72),l=/^\[object .+?Constructor\]$/,f=Function.prototype,u=Object.prototype,h=f.toString,m=u.hasOwnProperty,v=RegExp("^"+h.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(_){return!(!a(_)||i(_))&&(r(_)?v:l).test(o(_))}},function(e,t,n){var r=n(30),i=n(20);e.exports=function(a){if(!i(a))return!1;var o=r(a);return o=="[object Function]"||o=="[object GeneratorFunction]"||o=="[object AsyncFunction]"||o=="[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,a=i.hasOwnProperty,o=i.toString,l=r?r.toStringTag:void 0;e.exports=function(f){var u=a.call(f,l),h=f[l];try{f[l]=void 0;var m=!0}catch{}var v=o.call(f);return m&&(u?f[l]=h:delete f[l]),v}},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 a=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||"");return a?"Symbol(src)_1."+a:""}();e.exports=function(a){return!!i&&i in a}},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==null?void 0:n[r]}},function(e,t,n){var r=n(21),i=n(75),a=n(77),o=n(100);e.exports=function(l,f){return r(l)?l:i(l,f)?[l]:a(o(l))}},function(e,t,n){var r=n(21),i=n(22),a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(l,f){if(r(l))return!1;var u=typeof l;return!(u!="number"&&u!="symbol"&&u!="boolean"&&l!=null&&!i(l))||o.test(l)||!a.test(l)||f!=null&&l in Object(f)}},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,a=n(78)(function(o){var l=[];return o.charCodeAt(0)===46&&l.push(""),o.replace(r,function(f,u,h,m){l.push(h?m.replace(i,"$1"):u||f)}),l});e.exports=a},function(e,t,n){var r=n(79);e.exports=function(i){var a=r(i,function(l){return o.size===500&&o.clear(),l}),o=a.cache;return a}},function(e,t,n){var r=n(80),i="Expected a function";function a(o,l){if(typeof o!="function"||l!=null&&typeof l!="function")throw new TypeError(i);var f=function(){var u=arguments,h=l?l.apply(this,u):u[0],m=f.cache;if(m.has(h))return m.get(h);var v=o.apply(this,u);return f.cache=m.set(h,v)||m,v};return f.cache=new(a.Cache||r),f}a.Cache=r,e.exports=a},function(e,t,n){var r=n(81),i=n(95),a=n(97),o=n(98),l=n(99);function f(u){var h=-1,m=u==null?0:u.length;for(this.clear();++h<m;){var v=u[h];this.set(v[0],v[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=o,f.prototype.set=l,e.exports=f},function(e,t,n){var r=n(82),i=n(88),a=n(94);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(a||i),string:new r}}},function(e,t,n){var r=n(83),i=n(84),a=n(85),o=n(86),l=n(87);function f(u){var h=-1,m=u==null?0:u.length;for(this.clear();++h<m;){var v=u[h];this.set(v[0],v[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=o,f.prototype.set=l,e.exports=f},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(a){var o=this.__data__;if(r){var l=o[a];return l==="__lodash_hash_undefined__"?void 0:l}return i.call(o,a)?o[a]:void 0}},function(e,t,n){var r=n(8),i=Object.prototype.hasOwnProperty;e.exports=function(a){var o=this.__data__;return r?o[a]!==void 0:i.call(o,a)}},function(e,t,n){var r=n(8);e.exports=function(i,a){var o=this.__data__;return this.size+=this.has(i)?0:1,o[i]=r&&a===void 0?"__lodash_hash_undefined__":a,this}},function(e,t,n){var r=n(89),i=n(90),a=n(91),o=n(92),l=n(93);function f(u){var h=-1,m=u==null?0:u.length;for(this.clear();++h<m;){var v=u[h];this.set(v[0],v[1])}}f.prototype.clear=r,f.prototype.delete=i,f.prototype.get=a,f.prototype.has=o,f.prototype.set=l,e.exports=f},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(a){var o=this.__data__,l=r(o,a);return!(l<0||(l==o.length-1?o.pop():i.call(o,l,1),--this.size,0))}},function(e,t,n){var r=n(9);e.exports=function(i){var a=this.__data__,o=r(a,i);return o<0?void 0:a[o][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,a){var o=this.__data__,l=r(o,i);return l<0?(++this.size,o.push([i,a])):o[l][1]=a,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 a=r(this,i).delete(i);return this.size-=a?1:0,a}},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,a){var o=r(this,i),l=o.size;return o.set(i,a),this.size+=o.size==l?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),a=n(21),o=n(22),l=r?r.prototype:void 0,f=l?l.toString:void 0;e.exports=function u(h){if(typeof h=="string")return h;if(a(h))return i(h,u)+"";if(o(h))return f?f.call(h):"";var m=h+"";return m=="0"&&1/h==-1/0?"-0":m}},function(e,t){e.exports=function(n,r){for(var i=-1,a=n==null?0:n.length,o=Array(a);++i<a;)o[i]=r(n[i],i,n);return o}},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(r,i){var a=typeof r;return!!(i=i??9007199254740991)&&(a=="number"||a!="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 a=i+"";return a=="0"&&1/i==-1/0?"-0":a}},function(e,t,n){var r=this&&this.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(15)),a=n(106),o=function(){function f(u){this.converter=u,this.finalResult=[]}return Object.defineProperty(f.prototype,"needEmitLine",{get:function(){return!!this.converter.parseRuntime.subscribe&&!!this.converter.parseRuntime.subscribe.onNext||this.needPushDownstream},enumerable:!0,configurable:!0}),Object.defineProperty(f.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(f.prototype,"needEmitAll",{get:function(){return!!this.converter.parseRuntime.then&&this.converter.parseParam.needEmitAll},enumerable:!0,configurable:!0}),f.prototype.processResult=function(u){var h=this,m=this.converter.parseRuntime.parsedLineNumber;return this.needPushDownstream&&this.converter.parseParam.downstreamFormat==="array"&&m===0&&l(this.converter,"["+a.EOL),new i.default(function(v,_){h.needEmitLine?function x(w,S,O,C,T){if(O>=w.length)T();else if(S.parseRuntime.subscribe&&S.parseRuntime.subscribe.onNext){var j=S.parseRuntime.subscribe.onNext,P=w[O],R=j(P,S.parseRuntime.parsedLineNumber+O);if(O++,R&&R.then)R.then(function(){(function(q,K,H,G,te,ie,X){te&&l(H,X),x(q,H,G,te,ie)})(w,0,S,O,C,T,P)},T);else{for(C&&l(S,P);O<w.length;){var $=w[O];j($,S.parseRuntime.parsedLineNumber+O),O++,C&&l(S,$)}T()}}else{if(C)for(;O<w.length;)$=w[O++],l(S,$);T()}}(u,h.converter,0,h.needPushDownstream,function(x){x?_(x):(h.appendFinalResult(u),v())}):(h.appendFinalResult(u),v())})},f.prototype.appendFinalResult=function(u){this.needEmitAll&&(this.finalResult=this.finalResult.concat(u)),this.converter.parseRuntime.parsedLineNumber+=u.length},f.prototype.processError=function(u){this.converter.parseRuntime.subscribe&&this.converter.parseRuntime.subscribe.onError&&this.converter.parseRuntime.subscribe.onError(u),this.converter.parseRuntime.then&&this.converter.parseRuntime.then.onrejected&&this.converter.parseRuntime.then.onrejected(u)},f.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"&&l(this.converter,"]"+a.EOL)},f}();function l(f,u){if(typeof u!="object"||f.options.objectMode)f.push(u);else{var h=JSON.stringify(u);f.push(h+(f.parseParam.downstreamFormat==="array"?","+a.EOL:a.EOL),"utf8")}}t.Result=o},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"/"}}])),pE}var u6e=l6e();const c6e=Nt(u6e),f6e=e=>new Promise(t=>{c6e().fromString(e).then(t)}),d6e=new MF,h6e=e=>d6e.parse(e),p6e="shlink",Y9=e=>`${p6e}.${e}`;class m6e{constructor(t){bf(this,"get",t=>{const n=this.localStorage.getItem(Y9(t));return n?JSON.parse(n):void 0});bf(this,"set",(t,n)=>this.localStorage.setItem(Y9(t),JSON.stringify(n)));this.localStorage=t}}class v6e{constructor(t){this.storage=t}getTagColors(){return this.storage.get("colors")??{}}storeTagColors(t){this.storage.set("colors",t)}}const g6e=e=>{e.constant("localStorage",window.localStorage),e.service("Storage",m6e,"localStorage"),e.service("TagColorsStorage",v6e,"Storage"),e.constant("csvToJson",f6e),e.constant("jsonToCsv",h6e),e.serviceFactory("useTimeoutToggle",()=>b3)},jc=new RB,{container:O4}=jc,y6e=(e,t)=>(...n)=>e[t](...n),b6e=(e,t)=>({...e,[t]:y6e(O4,t)}),w6e=e=>t=>Object.fromEntries(e.map(n=>[n,t[n]])),Ew=(e,t=[])=>iB(e?w6e(e):null,t.reduce(b6e,{}));Kue(jc,Ew);pNe(jc,Ew);KQ(jc);e6e(jc,Ew);g6e(jc);s6e(jc,Ew);var mE={},Wy={exports:{}},K9;function _6e(){return K9||(K9=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 u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return r.apply(void 0,u)}t.main=n,n.clone=a,n.isPlainObject=o,n.recursive=i;function r(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return f(u[0]===!0,!1,u)}t.merge=r;function i(){for(var u=[],h=0;h<arguments.length;h++)u[h]=arguments[h];return f(u[0]===!0,!0,u)}t.recursive=i;function a(u){if(Array.isArray(u)){for(var h=[],m=0;m<u.length;++m)h.push(a(u[m]));return h}else if(o(u)){var h={};for(var m in u)h[m]=a(u[m]);return h}else return u}t.clone=a;function o(u){return u&&typeof u=="object"&&!Array.isArray(u)}t.isPlainObject=o;function l(u,h){if(!o(u))return h;for(var m in h)m==="__proto__"||m==="constructor"||m==="prototype"||(u[m]=o(u[m])&&o(h[m])?l(u[m],h[m]):h[m]);return u}function f(u,h,m){var v;(u||!o(v=m.shift()))&&(v={});for(var _=0;_<m.length;++_){var x=m[_];if(o(x)){for(var w in x)if(!(w==="__proto__"||w==="constructor"||w==="prototype")){var S=u?a(x[w]):x[w];v[w]=h?l(v[w],S):S}}}return v}}(Wy,Wy.exports)),Wy.exports}var Z9;function x6e(){return Z9||(Z9=1,function(e){var t=n(_6e());Object.defineProperty(e,"__esModule",{value:!0}),e.clear=ie,e.combineLoads=te,e.load=G,e.save=H;function n(F){return F&&F.__esModule?F:{default:F}}function r(F,M){return f(F)||l(F,M)||a(F,M)||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 a(F,M){if(F){if(typeof F=="string")return o(F,M);var I=Object.prototype.toString.call(F).slice(8,-1);return I==="Object"&&F.constructor&&(I=F.constructor.name),I==="Map"||I==="Set"?Array.from(F):I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I)?o(F,M):void 0}}function o(F,M){(M==null||M>F.length)&&(M=F.length);for(var I=0,J=Array(M);I<M;I++)J[I]=F[I];return J}function l(F,M){var I=F==null?null:typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(I!=null){var J,Y,ae=[],de=!0,fe=!1;try{for(I=I.call(F);!(de=(J=I.next()).done)&&(ae.push(J.value),!(M&&ae.length===M));de=!0);}catch(be){fe=!0,Y=be}finally{try{de||I.return==null||I.return()}finally{if(fe)throw Y}}return ae}}function f(F){if(Array.isArray(F))return F}function u(F){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(M){return typeof M}:function(M){return M&&typeof Symbol=="function"&&M.constructor===Symbol&&M!==Symbol.prototype?"symbol":typeof M},u(F)}function h(F,M,I){return M in F?Object.defineProperty(F,M,{value:I,enumerable:!0,configurable:!0,writable:!0}):F[M]=I,F}var m="[Redux-LocalStorage-Simple]",v="redux_localstorage_simple",_="_",x=[],w=[],S=0,O=!1,C=!1,T=new Map;function j(F){console.warn(m,F)}function P(){}var R=function(F){return F?P:j};function $(F,M){return M===void 0?null:F.length===1?M[F[0]]:$(F.slice(1),M[F[0]])}function q(F){function M(J,Y){return J.length===0?Y:M(J.slice(1),h({},J[0],Y))}var I=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{};return M(F.split(".").reverse(),I)}function K(F){this.warnFn=F||j}Object.defineProperty(K.prototype,"length",{get:function(){try{return localStorage.length}catch(F){this.warnFn(F)}return 0},configurable:!0,enumerable:!0}),K.prototype.key=function(F){try{return localStorage.key(F)}catch(M){this.warnFn(M)}return null},K.prototype.setItem=function(F,M){try{localStorage.setItem(F,JSON.stringify(M))}catch(I){this.warnFn(I)}},K.prototype.getItem=function(F){try{return JSON.parse(localStorage.getItem(F))}catch(M){this.warnFn(M)}return null},K.prototype.removeItem=function(F){try{localStorage.removeItem(F)}catch(M){this.warnFn(M)}};function H(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=F.states,I=M===void 0?x:M,J=F.ignoreStates,Y=J===void 0?w:J,ae=F.namespace,de=ae===void 0?v:ae,fe=F.namespaceSeparator,be=fe===void 0?_:fe,z=F.debounce,V=z===void 0?S:z,ne=F.disableWarnings,ce=ne===void 0?C:ne;return function(Q){return function(le){return function(pe){function ye($e,Fe){return 1<$e.split(".").length?$($e.split("."),Fe):$([$e],Fe)}function me(){I.length===0?ze.setItem(de,xe):I.forEach(function($e){var Fe=de+be+$e,we=ye($e,xe);we?ze.setItem(Fe,we):ze.removeItem(Fe)})}var xe,Ae=R(ce),De=le(pe);X(I)||(console.error(m,"'states' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),I=x),X(Y)||(console.error(m,"'ignoreStates' parameter in 'save()' method was passed a non-array value. Setting default value instead. Check your 'save()' method."),Y=w),0<Y.length&&(Y=Y.filter(function($e){return ee($e)?$e:void console.error(m,"'ignoreStates' array contains a non-string value. Ignoring this value. Check your 'ignoreStates' array.")})),ee(de)||(console.error(m,"'namespace' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),de=v),ee(be)||(console.error(m,"'namespaceSeparator' parameter in 'save()' method was passed a non-string value. Setting default value instead. Check your 'save()' method."),be=_),W(V)||(console.error(m,"'debounce' parameter in 'save()' method was passed a non-integer value. Setting default value instead. Check your 'save()' method."),V=S),xe=0<Y.length?U(Y,Q.getState()):Q.getState();var ze=new K(Ae);return V?(T.get(I+de)&&clearTimeout(T.get(I+de)),T.set(I+de,setTimeout(function(){me()},V))):me(),De}}}}function G(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=F.states,I=M===void 0?x:M,J=F.immutablejs,Y=J===void 0?O:J,ae=F.namespace,de=ae===void 0?v:ae,fe=F.namespaceSeparator,be=fe===void 0?_:fe,z=F.preloadedState,V=z===void 0?{}:z,ne=F.disableWarnings,ce=ne===void 0?C:ne,Q=R(ce);X(I)||(console.error(m,"'states' parameter in 'load()' method was passed a non-array value. Setting default value instead. Check your 'load()' method."),I=x),ee(de)||(console.error(m,"'namespace' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),de=v),ee(be)||(console.error(m,"'namespaceSeparator' parameter in 'load()' method was passed a non-string value. Setting default value instead. Check your 'load()' method."),be=_),Y===!0&&Q("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 le=new K(Q),pe=V;if(I.length===0){var ye=le.getItem(de);ye&&(pe=ye)}else I.forEach(function(me){var xe=de+be+me,Ae=le.getItem(xe);Ae?pe=t.default.recursive(pe,q(me,Ae)):Q("Invalid load '"+xe+"' 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 pe}function te(){for(var F={},M=arguments.length,I=Array(M),J=0;J<M;J++)I[J]=arguments[J];return I.forEach(function(Y){for(var ae in B(Y)||(console.error(m,"One or more loads provided to 'combineLoads()' is not a valid object. Ignoring the invalid load/s. Check your 'combineLoads()' method."),Y={}),Y)F[ae]=Y[ae]}),F}function ie(){var F=0<arguments.length&&arguments[0]!==void 0?arguments[0]:{},M=F.namespace,I=M===void 0?v:M,J=F.disableWarnings,Y=J===void 0?C:J,ae=R(Y);ee(I)||(console.error(m,"'namespace' parameter in 'clear()' method was passed a non-string value. Setting default value instead. Check your 'clear()' method."),I=v);for(var de,fe=new K(ae),be=fe.length,z=0;z<be;z++)de=fe.key(z),de&&de.slice(0,I.length)===I&&fe.removeItem(de)}function X(F){return Object.prototype.toString.call(F)==="[object Array]"}function ee(F){return typeof F=="string"}function W(F){return typeof F=="number"&&isFinite(F)&&Math.floor(F)===F}function B(F){return F!==null&&u(F)==="object"}function U(F,M){var I=Object.entries(M).reduce(function(J,Y){var ae=r(Y,2),de=ae[0];return ae[1],F.indexOf(de)===-1&&(J[de]=M[de]),J},{});return I}}(mE)),mE}var OY=x6e();const S6e=e=>R3({appUpdated:Yue,servers:INe,selectedServer:e.selectedServerReducer,settings:a6e}),O6e=e=>(e.settings&&e.settings.visits&&e.settings.visits.defaultInterval==="last180days"&&(e.settings.visits.defaultInterval="last180Days"),e),CY={states:["settings","servers"],namespace:"shlink",namespaceSeparator:".",debounce:300},C6e=O6e(OY.load(CY)),E6e=e=>Gz({devTools:!1,reducer:S6e(e),preloadedState:C6e,middleware:t=>t({immutableCheck:!1,serializableCheck:!1}).concat(OY.save(CY))}),T6e=!!(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 A6e(e){if("serviceWorker"in navigator){if(new URL(s0.homepage,window.location.href).origin!==window.location.origin)return;window.addEventListener("load",()=>{const n=`${s0.homepage}/service-worker.js`;T6e?(j6e(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")})):EY(n,e)})}}function EY(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 j6e(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()})}):EY(e,t)}).catch(()=>{console.log("No internet connection found. App is running in offline mode.")})}const TY=E6e(O4),{App:P6e,ScrollToTop:R6e,ErrorHandler:M6e,appUpdateAvailable:N6e}=O4;JK.createRoot(document.getElementById("root")).render(g.jsx(aB,{store:TY,children:g.jsx(yB,{basename:s0.homepage,children:g.jsx(M6e,{children:g.jsx(R6e,{children:g.jsx(P6e,{})})})})}));A6e({onUpdate(){TY.dispatch(N6e())}});